design-zystem 1.0.209 → 1.0.211
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/index.d.mts +28 -13
- package/dist/index.d.ts +28 -13
- package/dist/index.js +496 -367
- package/dist/index.mjs +439 -311
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -292,10 +292,11 @@ interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
292
292
|
fontWeight?: string;
|
|
293
293
|
onClick?: () => void;
|
|
294
294
|
disabled?: boolean;
|
|
295
|
+
noHover?: boolean;
|
|
295
296
|
style?: CSSProperties;
|
|
296
297
|
className?: string;
|
|
297
298
|
}
|
|
298
|
-
declare const Button: ({ label, children, iconLeft, iconRight, iconColor, variant, outline, size, width, isLoading, fontWeight, onClick, disabled, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
299
|
+
declare const Button: ({ label, children, iconLeft, iconRight, iconColor, variant, outline, size, width, isLoading, fontWeight, onClick, disabled, noHover, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
299
300
|
|
|
300
301
|
interface SelectOption<T> {
|
|
301
302
|
value: T;
|
|
@@ -419,6 +420,20 @@ interface ColorPickerProps {
|
|
|
419
420
|
}
|
|
420
421
|
declare const ColorPicker: react.ForwardRefExoticComponent<ColorPickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
421
422
|
|
|
423
|
+
interface SliderInputProps {
|
|
424
|
+
value?: number;
|
|
425
|
+
onChange?: (value: number, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
426
|
+
min?: number;
|
|
427
|
+
max?: number;
|
|
428
|
+
step?: number;
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
label?: string;
|
|
431
|
+
showValue?: boolean;
|
|
432
|
+
formatValue?: (value: number) => string;
|
|
433
|
+
id?: string;
|
|
434
|
+
}
|
|
435
|
+
declare const SliderInput: react.ForwardRefExoticComponent<SliderInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
436
|
+
|
|
422
437
|
interface ListProps extends HTMLAttributes<HTMLDivElement> {
|
|
423
438
|
children?: ReactNode;
|
|
424
439
|
width?: string;
|
|
@@ -582,19 +597,13 @@ interface OptionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>
|
|
|
582
597
|
}
|
|
583
598
|
declare const Options: ({ icon, options, value, defaultId, onChange, disabled, }: OptionsProps) => react_jsx_runtime.JSX.Element;
|
|
584
599
|
|
|
585
|
-
interface StepperStep {
|
|
586
|
-
label: string;
|
|
587
|
-
icon?: string;
|
|
588
|
-
onClick?: (index: number) => void;
|
|
589
|
-
}
|
|
590
600
|
interface StepperProps extends HTMLAttributes<HTMLElement> {
|
|
591
|
-
|
|
601
|
+
numberOfSteps: number;
|
|
592
602
|
current?: number;
|
|
593
603
|
size?: number;
|
|
594
|
-
spacing?: number;
|
|
595
604
|
className?: string;
|
|
596
605
|
}
|
|
597
|
-
declare const Stepper: ({
|
|
606
|
+
declare const Stepper: ({ numberOfSteps, current, size, className, }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
598
607
|
|
|
599
608
|
interface TabItem {
|
|
600
609
|
id: string | number;
|
|
@@ -704,6 +713,10 @@ declare const Pagination: ({ currentPage, totalItems, itemsPerPage, onPageChange
|
|
|
704
713
|
interface FileUploadZoneProps {
|
|
705
714
|
/** Called with the validated File when the user drops/selects a file */
|
|
706
715
|
onSave?: (file: File) => void;
|
|
716
|
+
/** Accept multiple files at once. When true, onSave receives File[] instead of File. */
|
|
717
|
+
multiple?: boolean;
|
|
718
|
+
/** Called with validated File[] when multiple=true */
|
|
719
|
+
onSaveMultiple?: (files: File[]) => void;
|
|
707
720
|
/** Called when the user clicks the remove button (preview mode) */
|
|
708
721
|
onRemove?: () => void;
|
|
709
722
|
/** Called with an error message when validation fails — use for toastr etc. */
|
|
@@ -723,9 +736,11 @@ interface FileUploadZoneProps {
|
|
|
723
736
|
/** Disables the drop zone */
|
|
724
737
|
disabled?: boolean;
|
|
725
738
|
/** When true, shows built-in preview after file selection. Defaults to true.
|
|
726
|
-
* Set to false when the parent handles preview (e.g. cropping flow).
|
|
739
|
+
* Set to false when the parent handles preview (e.g. cropping flow).
|
|
740
|
+
* Ignored when multiple=true (preview is always skipped in multi mode). */
|
|
727
741
|
showPreview?: boolean;
|
|
728
|
-
/** Controlled preview URL — when provided, the component shows preview mode
|
|
742
|
+
/** Controlled preview URL — when provided, the component shows preview mode.
|
|
743
|
+
* Ignored when multiple=true. */
|
|
729
744
|
previewUrl?: string;
|
|
730
745
|
/** Makes the component stretch to 100% width */
|
|
731
746
|
fullWidth?: boolean;
|
|
@@ -736,7 +751,7 @@ interface FileUploadZoneProps {
|
|
|
736
751
|
/** Shows the selected file name below the drop zone after upload */
|
|
737
752
|
showFileName?: boolean;
|
|
738
753
|
}
|
|
739
|
-
declare const FileUploadZone: ({ onSave, onRemove, onError, accept, acceptOnlyPdf, maxSizeMB, label, sublabel, browseLabel, disabled, showPreview, previewUrl: controlledPreviewUrl, fullWidth, compact, icon, showFileName, }: FileUploadZoneProps) => react_jsx_runtime.JSX.Element;
|
|
754
|
+
declare const FileUploadZone: ({ onSave, multiple, onSaveMultiple, onRemove, onError, accept, acceptOnlyPdf, maxSizeMB, label, sublabel, browseLabel, disabled, showPreview, previewUrl: controlledPreviewUrl, fullWidth, compact, icon, showFileName, }: FileUploadZoneProps) => react_jsx_runtime.JSX.Element;
|
|
740
755
|
|
|
741
756
|
interface SpinnerProps {
|
|
742
757
|
size?: 's' | 'm' | 'l';
|
|
@@ -836,4 +851,4 @@ declare const colors: {
|
|
|
836
851
|
readonly light_blue: "#F1F5F9";
|
|
837
852
|
};
|
|
838
853
|
|
|
839
|
-
export { Accordion, type AccordionItem, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, ColorPicker, DatePicker, Divider, Drawer, FileUploadZone, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Tooltip, colors, formatDate, formatDistance, formatDuration, truncateFileName, truncateText };
|
|
854
|
+
export { Accordion, type AccordionItem, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, ColorPicker, DatePicker, Divider, Drawer, FileUploadZone, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Tooltip, colors, formatDate, formatDistance, formatDuration, truncateFileName, truncateText };
|
package/dist/index.d.ts
CHANGED
|
@@ -292,10 +292,11 @@ interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
292
292
|
fontWeight?: string;
|
|
293
293
|
onClick?: () => void;
|
|
294
294
|
disabled?: boolean;
|
|
295
|
+
noHover?: boolean;
|
|
295
296
|
style?: CSSProperties;
|
|
296
297
|
className?: string;
|
|
297
298
|
}
|
|
298
|
-
declare const Button: ({ label, children, iconLeft, iconRight, iconColor, variant, outline, size, width, isLoading, fontWeight, onClick, disabled, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
299
|
+
declare const Button: ({ label, children, iconLeft, iconRight, iconColor, variant, outline, size, width, isLoading, fontWeight, onClick, disabled, noHover, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
299
300
|
|
|
300
301
|
interface SelectOption<T> {
|
|
301
302
|
value: T;
|
|
@@ -419,6 +420,20 @@ interface ColorPickerProps {
|
|
|
419
420
|
}
|
|
420
421
|
declare const ColorPicker: react.ForwardRefExoticComponent<ColorPickerProps & react.RefAttributes<HTMLInputElement>>;
|
|
421
422
|
|
|
423
|
+
interface SliderInputProps {
|
|
424
|
+
value?: number;
|
|
425
|
+
onChange?: (value: number, e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
426
|
+
min?: number;
|
|
427
|
+
max?: number;
|
|
428
|
+
step?: number;
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
label?: string;
|
|
431
|
+
showValue?: boolean;
|
|
432
|
+
formatValue?: (value: number) => string;
|
|
433
|
+
id?: string;
|
|
434
|
+
}
|
|
435
|
+
declare const SliderInput: react.ForwardRefExoticComponent<SliderInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
436
|
+
|
|
422
437
|
interface ListProps extends HTMLAttributes<HTMLDivElement> {
|
|
423
438
|
children?: ReactNode;
|
|
424
439
|
width?: string;
|
|
@@ -582,19 +597,13 @@ interface OptionsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'>
|
|
|
582
597
|
}
|
|
583
598
|
declare const Options: ({ icon, options, value, defaultId, onChange, disabled, }: OptionsProps) => react_jsx_runtime.JSX.Element;
|
|
584
599
|
|
|
585
|
-
interface StepperStep {
|
|
586
|
-
label: string;
|
|
587
|
-
icon?: string;
|
|
588
|
-
onClick?: (index: number) => void;
|
|
589
|
-
}
|
|
590
600
|
interface StepperProps extends HTMLAttributes<HTMLElement> {
|
|
591
|
-
|
|
601
|
+
numberOfSteps: number;
|
|
592
602
|
current?: number;
|
|
593
603
|
size?: number;
|
|
594
|
-
spacing?: number;
|
|
595
604
|
className?: string;
|
|
596
605
|
}
|
|
597
|
-
declare const Stepper: ({
|
|
606
|
+
declare const Stepper: ({ numberOfSteps, current, size, className, }: StepperProps) => react_jsx_runtime.JSX.Element;
|
|
598
607
|
|
|
599
608
|
interface TabItem {
|
|
600
609
|
id: string | number;
|
|
@@ -704,6 +713,10 @@ declare const Pagination: ({ currentPage, totalItems, itemsPerPage, onPageChange
|
|
|
704
713
|
interface FileUploadZoneProps {
|
|
705
714
|
/** Called with the validated File when the user drops/selects a file */
|
|
706
715
|
onSave?: (file: File) => void;
|
|
716
|
+
/** Accept multiple files at once. When true, onSave receives File[] instead of File. */
|
|
717
|
+
multiple?: boolean;
|
|
718
|
+
/** Called with validated File[] when multiple=true */
|
|
719
|
+
onSaveMultiple?: (files: File[]) => void;
|
|
707
720
|
/** Called when the user clicks the remove button (preview mode) */
|
|
708
721
|
onRemove?: () => void;
|
|
709
722
|
/** Called with an error message when validation fails — use for toastr etc. */
|
|
@@ -723,9 +736,11 @@ interface FileUploadZoneProps {
|
|
|
723
736
|
/** Disables the drop zone */
|
|
724
737
|
disabled?: boolean;
|
|
725
738
|
/** When true, shows built-in preview after file selection. Defaults to true.
|
|
726
|
-
* Set to false when the parent handles preview (e.g. cropping flow).
|
|
739
|
+
* Set to false when the parent handles preview (e.g. cropping flow).
|
|
740
|
+
* Ignored when multiple=true (preview is always skipped in multi mode). */
|
|
727
741
|
showPreview?: boolean;
|
|
728
|
-
/** Controlled preview URL — when provided, the component shows preview mode
|
|
742
|
+
/** Controlled preview URL — when provided, the component shows preview mode.
|
|
743
|
+
* Ignored when multiple=true. */
|
|
729
744
|
previewUrl?: string;
|
|
730
745
|
/** Makes the component stretch to 100% width */
|
|
731
746
|
fullWidth?: boolean;
|
|
@@ -736,7 +751,7 @@ interface FileUploadZoneProps {
|
|
|
736
751
|
/** Shows the selected file name below the drop zone after upload */
|
|
737
752
|
showFileName?: boolean;
|
|
738
753
|
}
|
|
739
|
-
declare const FileUploadZone: ({ onSave, onRemove, onError, accept, acceptOnlyPdf, maxSizeMB, label, sublabel, browseLabel, disabled, showPreview, previewUrl: controlledPreviewUrl, fullWidth, compact, icon, showFileName, }: FileUploadZoneProps) => react_jsx_runtime.JSX.Element;
|
|
754
|
+
declare const FileUploadZone: ({ onSave, multiple, onSaveMultiple, onRemove, onError, accept, acceptOnlyPdf, maxSizeMB, label, sublabel, browseLabel, disabled, showPreview, previewUrl: controlledPreviewUrl, fullWidth, compact, icon, showFileName, }: FileUploadZoneProps) => react_jsx_runtime.JSX.Element;
|
|
740
755
|
|
|
741
756
|
interface SpinnerProps {
|
|
742
757
|
size?: 's' | 'm' | 'l';
|
|
@@ -836,4 +851,4 @@ declare const colors: {
|
|
|
836
851
|
readonly light_blue: "#F1F5F9";
|
|
837
852
|
};
|
|
838
853
|
|
|
839
|
-
export { Accordion, type AccordionItem, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, ColorPicker, DatePicker, Divider, Drawer, FileUploadZone, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Tooltip, colors, formatDate, formatDistance, formatDuration, truncateFileName, truncateText };
|
|
854
|
+
export { Accordion, type AccordionItem, Box, Bubble, Bulk, Button, CardSkeleton, Checkbox, Col, ColorPicker, DatePicker, Divider, Drawer, FileUploadZone, Grid, Icon, IconTabs, Image, Input, Link, List, ListItem, MetricCard, Modal, ModalConfirmation, MultiSelect, NewModal, Options, PageContainer, Pagination, Popover, Radio, Row, Select, type SelectOption, type SelectProps, SkeletonRow, SliderInput, Spinner, Stepper, Switch, Table, TableBody, TableCell, TableFooter, TableFooterCell, TableFooterRow, TableHeader, TableHeaderCell, TableHeaderRow, TableRow, Tabs, TagBubble, Text, Tooltip, colors, formatDate, formatDistance, formatDuration, truncateFileName, truncateText };
|