@delightui/components 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/cjs/components/atoms/IconButton/IconButton.types.d.ts +6 -0
- package/dist/cjs/library.css +22480 -13094
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Button/Button.types.d.ts +6 -0
- package/dist/esm/components/atoms/IconButton/IconButton.types.d.ts +6 -0
- package/dist/esm/library.css +22480 -13094
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,10 +90,16 @@ type ActionImageProps = ImageProps & {
|
|
|
90
90
|
declare const ActionImage: (props: ActionImageProps) => React$1.JSX.Element;
|
|
91
91
|
|
|
92
92
|
type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
|
|
93
|
+
type ButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
93
94
|
type ButtonStyleEnum = 'Primary' | 'Secondary' | 'Destructive';
|
|
94
95
|
type ButtonSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
95
96
|
type ButtonActionTypeEnum = 'button' | 'submit' | 'reset';
|
|
96
97
|
type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
|
|
98
|
+
/**
|
|
99
|
+
* Appearance of the button.
|
|
100
|
+
* @default 'Default'
|
|
101
|
+
*/
|
|
102
|
+
appearance?: ButtonAppearanceEnum;
|
|
97
103
|
/**
|
|
98
104
|
* Type of the button.
|
|
99
105
|
* @default 'Filled'
|
|
@@ -188,9 +194,15 @@ interface IconProps {
|
|
|
188
194
|
|
|
189
195
|
declare const Icon: (props: IconProps) => React$1.JSX.Element | null;
|
|
190
196
|
|
|
197
|
+
type IconButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
191
198
|
type IconButtonStyleEnum = 'Primary' | 'Secondary';
|
|
192
199
|
type IconButtonSizeEnum = 'Small' | 'Medium';
|
|
193
200
|
interface IconButtonProps extends Omit<ButtonProps, 'leadingIcon' | 'trailingIcon' | 'style' | 'size'> {
|
|
201
|
+
/**
|
|
202
|
+
* Appearance of the button.
|
|
203
|
+
* @default 'Default'
|
|
204
|
+
*/
|
|
205
|
+
appearance?: IconButtonAppearanceEnum;
|
|
194
206
|
/**
|
|
195
207
|
* The icon to be displayed.
|
|
196
208
|
*/
|