Skip to content

Commit

Permalink
feat(icon types): allow for unknown props to be passed to TIconProps …
Browse files Browse the repository at this point in the history
…type for compatibility with classnames/style props passage in downstream apps
  • Loading branch information
ByronDWall committed Jan 17, 2025
1 parent 94a387d commit cb1c5ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion design-system/src/icon-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { css } from '@emotion/react';
import designTokens from './design-tokens';

export type TIconProps = {
export type TIconProps = Record<string, unknown> & {
color?:
| 'solid'
| 'neutral60'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@babel/runtime": "^7.20.13",
"@babel/runtime-corejs3": "^7.20.13",
"@commercetools-uikit/async-creatable-select-input": "19.22.0",
"@commercetools-uikit/design-system": "19.22.0",
"@commercetools-uikit/constraints": "19.22.0",
"@commercetools-uikit/field-errors": "19.22.0",
"@commercetools-uikit/field-label": "19.22.0",
"@commercetools-uikit/field-warnings": "19.22.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/components/spacings/spacings-inline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"@babel/runtime": "^7.20.13",
"@babel/runtime-corejs3": "^7.20.13",
"@commercetools-uikit/design-system": "19.22.0",
"@commercetools-uikit/utils": "19.22.0"
"@commercetools-uikit/utils": "19.22.0",
"@emotion/react": "^11.10.5"
},
"devDependencies": {
"react": "19.0.0"
Expand Down

0 comments on commit cb1c5ec

Please sign in to comment.