@delightui/components 0.1.11 → 0.1.13
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
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import type { HTMLAttributes, ReactNode, MouseEvent } from 'react';
|
|
2
2
|
export type ButtonTypeEnum = 'Filled' | 'Outlined' | 'Ghost';
|
|
3
|
+
export type ButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
3
4
|
export type ButtonStyleEnum = 'Primary' | 'Secondary' | 'Destructive';
|
|
4
5
|
export type ButtonSizeEnum = 'Small' | 'Medium' | 'Large';
|
|
5
6
|
export type ButtonActionTypeEnum = 'button' | 'submit' | 'reset';
|
|
6
7
|
export type ButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, 'style'> & {
|
|
8
|
+
/**
|
|
9
|
+
* Appearance of the button.
|
|
10
|
+
* @default 'Default'
|
|
11
|
+
*/
|
|
12
|
+
appearance?: ButtonAppearanceEnum;
|
|
7
13
|
/**
|
|
8
14
|
* Type of the button.
|
|
9
15
|
* @default 'Filled'
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ButtonProps } from '../Button/Button.types';
|
|
3
|
+
export type IconButtonAppearanceEnum = 'Default' | 'Inverse';
|
|
3
4
|
export type IconButtonStyleEnum = 'Primary' | 'Secondary';
|
|
4
5
|
export type IconButtonSizeEnum = 'Small' | 'Medium';
|
|
5
6
|
export interface IconButtonProps extends Omit<ButtonProps, 'leadingIcon' | 'trailingIcon' | 'style' | 'size'> {
|
|
7
|
+
/**
|
|
8
|
+
* Appearance of the button.
|
|
9
|
+
* @default 'Default'
|
|
10
|
+
*/
|
|
11
|
+
appearance?: IconButtonAppearanceEnum;
|
|
6
12
|
/**
|
|
7
13
|
* The icon to be displayed.
|
|
8
14
|
*/
|