-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: typescript errors, optimize icons (#1967)
* chore(deps): lock file maintenance * fix: explicitly map icon colors, to avoid unchecked types * refactor: clean up icons IDs * fix: typescript errors * docs: changeset * refactor: do not use id selectors in icons * docs: changeset * refactor(svgr): plugin prefixIds is enabled by default Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Nicola Molinari <[email protected]>
- Loading branch information
1 parent
52cd68b
commit 64e4bc8
Showing
186 changed files
with
8,683 additions
and
7,107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
'@commercetools-uikit/avatar': patch | ||
'@commercetools-uikit/secondary-button': patch | ||
'@commercetools-uikit/field-errors': patch | ||
'@commercetools-uikit/field-label': patch | ||
'@commercetools-uikit/icons': patch | ||
'@commercetools-uikit/checkbox-input': patch | ||
'@commercetools-uikit/multiline-text-input': patch | ||
'@commercetools-uikit/number-input': patch | ||
'@commercetools-uikit/password-input': patch | ||
'@commercetools-uikit/radio-input': patch | ||
'@commercetools-uikit/rich-text-utils': patch | ||
'@commercetools-uikit/text-input': patch | ||
'@commercetools-uikit/tag': patch | ||
'@commercetools-uikit/tooltip': patch | ||
'@commercetools-uikit/hooks': patch | ||
--- | ||
|
||
Fix TypeScript export declarations from package entry point. Migrate missing TS files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@commercetools-uikit/data-table': patch | ||
'@commercetools-uikit/icons': patch | ||
'@commercetools-uikit/checkbox-input': patch | ||
'@commercetools-uikit/radio-input': patch | ||
'@commercetools-uikit/rich-text-utils': patch | ||
--- | ||
|
||
Fix generated icon components: selected colors are not explicitly mapped, unused IDs are removed (via SVGO), do not use IDs as style selectors. | ||
|
||
This is an internal refactoring and should not affect the usage of the components. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
'@commercetools-uikit/avatar': patch | ||
'@commercetools-uikit/secondary-button': patch | ||
'@commercetools-uikit/field-errors': patch | ||
'@commercetools-uikit/field-label': patch | ||
'@commercetools-uikit/icons': patch | ||
'@commercetools-uikit/multiline-text-input': patch | ||
'@commercetools-uikit/number-input': patch | ||
'@commercetools-uikit/password-input': patch | ||
'@commercetools-uikit/text-input': patch | ||
'@commercetools-uikit/tag': patch | ||
'@commercetools-uikit/tooltip': patch | ||
'@commercetools-uikit/hooks': patch | ||
--- | ||
|
||
Some files were not migrated to TypeScript. Also, each package entry point should not contain any TypeScript syntax (as it does not play well with preconstruct). | ||
Instead, explicit export types are defined in a `export-types.ts` file, which is then re-exported from the entry point. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { TAvatarProps as AvatarProps } from './avatar'; | ||
|
||
export type TAvatarProps = AvatarProps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
import type { TAvatarProps as AvatarProps } from './avatar'; | ||
|
||
export { default } from './avatar'; | ||
export { default as version } from './version'; | ||
|
||
export type TAvatarProps = AvatarProps; | ||
export * from './export-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { | ||
TFieldErrorsProps as FieldErrorsProps, | ||
TFieldErrors as FieldErrors, | ||
} from './field-errors'; | ||
|
||
export type TFieldErrorsProps = FieldErrorsProps; | ||
export type TFieldErrors = FieldErrors; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { default } from './field-errors'; | ||
export { default as version } from './version'; | ||
export type { TFieldErrorsProps, TFieldErrors } from './field-errors'; | ||
export * from './export-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { TFieldLabelProps as FieldLabelProps } from './field-label'; | ||
|
||
export type TFieldLabelProps = FieldLabelProps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import type { TFieldLabelProps as FieldLabelProps } from './field-label'; | ||
|
||
export { default } from './field-label'; | ||
export { default as version } from './version'; | ||
export type TFieldLabelProps = FieldLabelProps; | ||
export * from './export-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 41 additions & 24 deletions
65
packages/components/icons/src/generated/AngleDownReact.tsx
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
66 changes: 41 additions & 25 deletions
66
packages/components/icons/src/generated/AngleLeftReact.tsx
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
64e4bc8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: