-
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(various): update files that manipulate icons in react.cloneElemen…
…t to type the icon props with TIconProps and export TIconProps in those packages as a convenience, remove unnecessary import of ui-kit/design-system from all fields, remove use of babel-plugin-typescript-to-prop-types in build tool as prop-types are no longer supported in react 19, remove patches and patch commit step related to prop types babel plugin
- Loading branch information
1 parent
479b49c
commit 0d17c42
Showing
75 changed files
with
543 additions
and
876 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
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
interface AvengerProps { | ||
/** | ||
* The name of an Avenger. | ||
*/ | ||
name: string; | ||
/** | ||
* The real identity of this Avenger, if known. | ||
*/ | ||
identity?: { | ||
firstName?: string; | ||
lastName?: string; | ||
age?: number; | ||
}; | ||
/** | ||
* A callback function, called when the component is clicked. | ||
* <br> | ||
* Signature: `(event) => void` | ||
*/ | ||
onClick?(...args: unknown[]): unknown; | ||
/** | ||
* List the abilities of this Avenger. | ||
*/ | ||
abilities: { | ||
/** | ||
* The name of the ability. | ||
*/ | ||
name: string; | ||
description?: string; | ||
/** | ||
* Set this to `true` to mark this ability as new. | ||
* | ||
* @@defaultValue@@: false | ||
*/ | ||
isNew?: boolean; | ||
}[]; | ||
/** | ||
* The list of movies where this Avenger appears in. | ||
* It can either be just the name of the movie or a more detailed | ||
* information about the movie. | ||
*/ | ||
movies: unknown | unknown[]; | ||
/** | ||
* Define the power for this Avenger, from a scale of 1-10. | ||
*/ | ||
power: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; | ||
isAlive?: boolean; | ||
} | ||
|
||
const Avenger = (props: AvengerProps) => <div>{`Avenger: ${props.name}`}</div>; | ||
Avenger.defaultProps = { | ||
power: 1, | ||
isAlive: true, | ||
}; | ||
|
||
export default Avenger; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export type { TFlatButtonProps } from './flat-button'; | ||
export type { TIconProps } from '@commercetools-uikit/design-system'; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export type { TLinkButtonProps } from './link-button'; | ||
export type { TIconProps } from '@commercetools-uikit/design-system'; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export type { TPrimaryButtonProps } from './primary-button'; | ||
export type { TIconProps } from '@commercetools-uikit/design-system'; |
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
1 change: 1 addition & 0 deletions
1
packages/components/buttons/secondary-button/src/export-types.ts
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 +1,2 @@ | ||
export type { TSecondaryButtonProps } from './secondary-button'; | ||
export type { TIconProps } from '@commercetools-uikit/design-system'; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
export type { TFieldLabelProps, TFieldLabelHintIconProps } from './field-label'; | ||
export type { TFieldLabelProps } from './field-label'; | ||
export type { TIconProps } from '@commercetools-uikit/design-system'; |
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
Oops, something went wrong.