diditui 1.0.21 → 1.0.23
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/diditui.cjs +20 -20
- package/dist/diditui.d.ts +7 -6
- package/dist/diditui.js +685 -668
- package/package.json +3 -3
package/dist/diditui.d.ts
CHANGED
|
@@ -89,11 +89,12 @@ declare type Handler = (event: MouseEvent) => void;
|
|
|
89
89
|
|
|
90
90
|
export declare function Icon({ type, size, className, ...props }: IconProps): JSX_2.Element;
|
|
91
91
|
|
|
92
|
-
export declare function IconButton({ icon, label, size, variant, withBorder, className, ...props }: IconButtonProps): JSX_2.Element;
|
|
92
|
+
export declare function IconButton({ icon, label, isLoading, size, variant, withBorder, className, ...props }: IconButtonProps): JSX_2.Element;
|
|
93
93
|
|
|
94
94
|
declare type IconButtonProps = ComponentProps<'button'> & VariantProps<typeof iconButtonStyles> & {
|
|
95
95
|
icon?: IconType;
|
|
96
96
|
label?: string;
|
|
97
|
+
isLoading?: boolean;
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
declare const iconButtonStyles: (props?: ({
|
|
@@ -110,7 +111,7 @@ declare const iconStyles: (props?: ({
|
|
|
110
111
|
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
111
112
|
} & ClassProp) | undefined) => string;
|
|
112
113
|
|
|
113
|
-
export declare type IconType = 'settings' | 'info' | 'arrowRight' | 'scan' | 'scan2' | 'warning' | 'check' | 'copy' | 'connect' | 'passKey' | 'didit' | 'diditNameLogo' | 'close' | 'diditLogo' | 'idCard' | 'car' | 'passport' | 'closeCircle' | 'closeCircleBold' | 'checkCircle' | 'checkCircleBold' | 'refresh' | 'chevronLeft' | 'eye' | 'eyeSlash' | 'email' | 'face' | 'location' | 'scan2' | 'shieldSearch' | 'search' | 'slack' | 'wifi' | 'external' | 'chevronDown' | 'settings2' | 'play' | 'chart' | 'addCircle' | 'addCircleBold' | 'document' | 'profile' | 'securitySafe' | 'moreCircles' | 'logout' | 'edit' | 'trash' | 'filterAdd' | 'filterRemove';
|
|
114
|
+
export declare type IconType = 'settings' | 'info' | 'arrowRight' | 'scan' | 'scan2' | 'warning' | 'check' | 'copy' | 'connect' | 'passKey' | 'didit' | 'diditNameLogo' | 'close' | 'diditLogo' | 'idCard' | 'car' | 'passport' | 'closeCircle' | 'closeCircleBold' | 'checkCircle' | 'checkCircleBold' | 'refresh' | 'chevronLeft' | 'eye' | 'eyeSlash' | 'email' | 'face' | 'location' | 'scan2' | 'shieldSearch' | 'search' | 'slack' | 'wifi' | 'external' | 'chevronDown' | 'settings2' | 'play' | 'chart' | 'addCircle' | 'addCircleBold' | 'document' | 'profile' | 'securitySafe' | 'moreCircles' | 'logout' | 'edit' | 'trash' | 'filterAdd' | 'filterRemove' | 'warningBold';
|
|
114
115
|
|
|
115
116
|
/**
|
|
116
117
|
* Allows for inheriting the props from the specified element type so that
|
|
@@ -241,19 +242,19 @@ declare type SpinnerProps = ComponentProps<'span'> & VariantProps<typeof spinner
|
|
|
241
242
|
|
|
242
243
|
declare const spinnerStyles: (props?: ({
|
|
243
244
|
variant?: "default" | "primary" | "soft" | "accent" | "error" | null | undefined;
|
|
244
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
245
|
+
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
245
246
|
} & ClassProp) | undefined) => string;
|
|
246
247
|
|
|
247
248
|
export declare function StatusLabel({ label, icon, variant, className, ...props }: StatusLabelProps): JSX_2.Element;
|
|
248
249
|
|
|
249
|
-
declare type StatusLabelProps = ComponentProps<'div'> & VariantProps<typeof statusLabelStyles> & {
|
|
250
|
+
declare type StatusLabelProps = ComponentProps<'div'> & Omit<VariantProps<typeof statusLabelStyles>, 'hasIcon'> & {
|
|
250
251
|
label: string;
|
|
251
252
|
icon?: IconType;
|
|
252
253
|
};
|
|
253
254
|
|
|
254
255
|
declare const statusLabelStyles: (props?: ({
|
|
255
|
-
variant?: "default" | "warning" | "primary" | "accent" | "error" | "success" | null | undefined;
|
|
256
|
-
|
|
256
|
+
variant?: "default" | "warning" | "primary" | "soft" | "accent" | "error" | "success" | null | undefined;
|
|
257
|
+
hasIcon?: boolean | null | undefined;
|
|
257
258
|
} & ClassProp) | undefined) => string;
|
|
258
259
|
|
|
259
260
|
declare type SVGIcon = FC<React.SVGProps<SVGElement>>;
|