@zimyo/ui 1.6.4 → 1.7.1
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/DatePicker/index.esm.js +2 -2
- package/dist/DatePicker/index.js +2 -2
- package/dist/DateRangePicker/index.esm.js +1 -1
- package/dist/DateRangePicker/index.js +2 -2
- package/dist/Form/index.esm.js +1 -1
- package/dist/Form/index.js +4 -4
- package/dist/Input/index.d.ts +2 -1
- package/dist/Input/index.esm.js +1 -1
- package/dist/Input/index.js +1 -1
- package/dist/Modal/index.d.ts +1 -0
- package/dist/Modal/index.esm.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/Notice/index.esm.js +1 -1
- package/dist/Notice/index.js +1 -1
- package/dist/PopupConfirm/index.d.ts +36 -0
- package/dist/PopupConfirm/index.esm.js +27 -0
- package/dist/PopupConfirm/index.js +27 -0
- package/dist/Select/index.esm.js +2 -2
- package/dist/Select/index.js +2 -2
- package/dist/index.d.ts +39 -5
- package/dist/index.esm.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +7 -1
package/dist/index.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ interface ModalProps {
|
|
|
144
144
|
fullWidth?: boolean;
|
|
145
145
|
fullScreen?: boolean;
|
|
146
146
|
className?: string;
|
|
147
|
+
allowActionBorder?: boolean;
|
|
147
148
|
}
|
|
148
149
|
declare const Modal: React$1.FC<ModalProps>;
|
|
149
150
|
|
|
@@ -179,9 +180,9 @@ interface BadgeProps extends VariantProps<typeof badgeVariants> {
|
|
|
179
180
|
className?: string;
|
|
180
181
|
}
|
|
181
182
|
declare const badgeVariants: (props?: ({
|
|
182
|
-
variant?: "text" | "
|
|
183
|
+
variant?: "text" | "outlined" | "contained" | null | undefined;
|
|
183
184
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
184
|
-
type?: "default" | "
|
|
185
|
+
type?: "default" | "success" | "error" | "info" | "warning" | null | undefined;
|
|
185
186
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
186
187
|
declare const Badge: ({ label, icon, iconPosition, dot, dotPosition, variant, size, type, color, className, }: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
187
188
|
|
|
@@ -201,8 +202,9 @@ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
|
201
202
|
onRightIconClick?: () => void;
|
|
202
203
|
debounceDelay?: number;
|
|
203
204
|
onDebouncedChange?: (value: string) => void;
|
|
205
|
+
wordLimit?: number;
|
|
204
206
|
}
|
|
205
|
-
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
207
|
+
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
|
|
206
208
|
|
|
207
209
|
type NoticeVariant = 'success' | 'error' | 'warning' | 'info';
|
|
208
210
|
type NoticeSize = 'sm' | 'md' | 'lg';
|
|
@@ -360,6 +362,38 @@ interface RadioProps {
|
|
|
360
362
|
labelSx?: SxProps;
|
|
361
363
|
}
|
|
362
364
|
|
|
365
|
+
interface PopupConfirmProps {
|
|
366
|
+
open: boolean;
|
|
367
|
+
onClose: () => void;
|
|
368
|
+
title?: string | React__default.ReactNode;
|
|
369
|
+
message: string | React__default.ReactNode;
|
|
370
|
+
description?: string;
|
|
371
|
+
confirmText?: string;
|
|
372
|
+
cancelText?: string;
|
|
373
|
+
confirmVariant?: 'text' | 'outlined' | 'contained';
|
|
374
|
+
cancelVariant?: 'text' | 'outlined' | 'contained';
|
|
375
|
+
confirmColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success';
|
|
376
|
+
cancelColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success';
|
|
377
|
+
loading?: boolean;
|
|
378
|
+
loadingText?: string;
|
|
379
|
+
icon?: React__default.ReactNode;
|
|
380
|
+
maxWidth?: false | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
381
|
+
fullWidth?: boolean;
|
|
382
|
+
showCloseIcon?: boolean;
|
|
383
|
+
confirmSize?: 'small' | 'medium' | 'large';
|
|
384
|
+
cancelSize?: 'small' | 'medium' | 'large';
|
|
385
|
+
onConfirm: () => void | Promise<void>;
|
|
386
|
+
onCancel?: () => void;
|
|
387
|
+
children?: React__default.ReactNode;
|
|
388
|
+
className?: string;
|
|
389
|
+
actionsClassName?: string;
|
|
390
|
+
messageClassName?: string;
|
|
391
|
+
reverseActions?: boolean;
|
|
392
|
+
singleAction?: boolean;
|
|
393
|
+
variant?: 'default' | 'delete' | 'save' | 'warning' | 'info' | 'success' | 'error';
|
|
394
|
+
}
|
|
395
|
+
declare const PopupConfirm: React__default.FC<PopupConfirmProps>;
|
|
396
|
+
|
|
363
397
|
interface UILibraryThemeProviderProps {
|
|
364
398
|
children: React__default.ReactNode;
|
|
365
399
|
primaryColor?: string;
|
|
@@ -454,5 +488,5 @@ declare const designTokens: {
|
|
|
454
488
|
declare function cn(...inputs: ClassValue[]): string;
|
|
455
489
|
declare function useStableId(prefix?: string): string;
|
|
456
490
|
|
|
457
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Badge, Blockquote, Button, Caption, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, Heading, Input, Lead, Modal, Muted, Notice, RadioGroup, Select, Strong, Switch, Text, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
|
|
458
|
-
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, BadgeProps, ButtonProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, InputProps, ModalProps, NoticeProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, ThemeConfig, UILibraryThemeProviderProps };
|
|
491
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Badge, Blockquote, Button, Caption, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, Heading, Input, Lead, Modal, Muted, Notice, PopupConfirm, RadioGroup, Select, Strong, Switch, Text, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
|
|
492
|
+
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, BadgeProps, ButtonProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, InputProps, ModalProps, NoticeProps, PopupConfirmProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, ThemeConfig, UILibraryThemeProviderProps };
|