@uxuissk/design-system 0.4.0 → 0.5.0
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/sellsuki-ds.css +1 -1
- package/dist/sellsuki-ds.js +1628 -1990
- package/dist/sellsuki-ds.js.map +1 -1
- package/dist/sellsuki-ds.umd.cjs +70 -322
- package/dist/sellsuki-ds.umd.cjs.map +1 -1
- package/dist/types/index.d.ts +117 -9
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -405,9 +405,11 @@ export declare type DropdownState = "default" | "error" | "success" | "warning";
|
|
|
405
405
|
|
|
406
406
|
export declare type DropdownVariant = "default" | "outlined" | "filled" | "ghost";
|
|
407
407
|
|
|
408
|
-
|
|
408
|
+
declare const DSButton: default_2.ForwardRefExoticComponent<DSButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
409
|
+
export { DSButton as Button }
|
|
410
|
+
export { DSButton }
|
|
409
411
|
|
|
410
|
-
|
|
412
|
+
declare interface DSButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
411
413
|
variant?: ButtonVariant;
|
|
412
414
|
size?: ButtonSize;
|
|
413
415
|
loading?: boolean;
|
|
@@ -417,12 +419,18 @@ export declare interface DSButtonProps extends default_2.ButtonHTMLAttributes<HT
|
|
|
417
419
|
fullWidth?: boolean;
|
|
418
420
|
active?: boolean;
|
|
419
421
|
}
|
|
422
|
+
export { DSButtonProps as ButtonProps }
|
|
423
|
+
export { DSButtonProps }
|
|
420
424
|
|
|
421
|
-
|
|
425
|
+
declare function DSCheckbox({ checked: controlledChecked, indeterminate, defaultChecked, onChange, label, description, size, disabled, error, className, id: propId, }: CheckboxProps): JSX.Element;
|
|
426
|
+
export { DSCheckbox as Checkbox }
|
|
427
|
+
export { DSCheckbox }
|
|
422
428
|
|
|
423
|
-
|
|
429
|
+
declare const DSInput: default_2.ForwardRefExoticComponent<DSInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
430
|
+
export { DSInput }
|
|
431
|
+
export { DSInput as Input }
|
|
424
432
|
|
|
425
|
-
|
|
433
|
+
declare interface DSInputProps extends Omit<default_2.InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
426
434
|
label?: string;
|
|
427
435
|
helperText?: string;
|
|
428
436
|
errorMessage?: string;
|
|
@@ -441,14 +449,22 @@ export declare interface DSInputProps extends Omit<default_2.InputHTMLAttributes
|
|
|
441
449
|
required?: boolean;
|
|
442
450
|
onClear?: () => void;
|
|
443
451
|
}
|
|
452
|
+
export { DSInputProps }
|
|
453
|
+
export { DSInputProps as InputProps }
|
|
444
454
|
|
|
445
|
-
|
|
455
|
+
declare function DSRadio({ value, label, description, disabled: localDisabled, size: localSize, className }: RadioProps): JSX.Element;
|
|
456
|
+
export { DSRadio }
|
|
457
|
+
export { DSRadio as Radio }
|
|
446
458
|
|
|
447
|
-
|
|
459
|
+
declare function DSTable<T extends Record<string, any>>({ columns, data, size, striped, hoverable, bordered, selectable, selectedRows: controlledSelected, onSelectionChange, loading, emptyMessage, stickyHeader, className, }: TableProps<T>): JSX.Element;
|
|
460
|
+
export { DSTable }
|
|
461
|
+
export { DSTable as Table }
|
|
448
462
|
|
|
449
|
-
|
|
463
|
+
declare const DSTextarea: default_2.ForwardRefExoticComponent<DSTextareaProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
464
|
+
export { DSTextarea }
|
|
465
|
+
export { DSTextarea as Textarea }
|
|
450
466
|
|
|
451
|
-
|
|
467
|
+
declare interface DSTextareaProps extends Omit<default_2.TextareaHTMLAttributes<HTMLTextAreaElement>, ""> {
|
|
452
468
|
label?: string;
|
|
453
469
|
helperText?: string;
|
|
454
470
|
errorMessage?: string;
|
|
@@ -460,6 +476,8 @@ export declare interface DSTextareaProps extends Omit<default_2.TextareaHTMLAttr
|
|
|
460
476
|
maxLength?: number;
|
|
461
477
|
required?: boolean;
|
|
462
478
|
}
|
|
479
|
+
export { DSTextareaProps }
|
|
480
|
+
export { DSTextareaProps as TextareaProps }
|
|
463
481
|
|
|
464
482
|
export declare function EmptyState({ icon, title, description, action, secondaryAction, size, }: EmptyStateProps): JSX.Element;
|
|
465
483
|
|
|
@@ -505,6 +523,53 @@ export declare interface FileUploadProps {
|
|
|
505
523
|
|
|
506
524
|
export declare type FileUploadVariant = "dropzone" | "button" | "avatar";
|
|
507
525
|
|
|
526
|
+
export declare function FormError({ message, className }: FormErrorProps): JSX.Element | null;
|
|
527
|
+
|
|
528
|
+
export declare interface FormErrorProps {
|
|
529
|
+
message?: string;
|
|
530
|
+
className?: string;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export declare function FormField({ name, label, required, error, helperText, children, className, }: FormFieldProps): JSX.Element;
|
|
534
|
+
|
|
535
|
+
declare interface FormFieldContextValue {
|
|
536
|
+
name: string;
|
|
537
|
+
error?: string;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
export declare interface FormFieldProps {
|
|
541
|
+
/** Field name — used for htmlFor on label */
|
|
542
|
+
name: string;
|
|
543
|
+
/** Label text */
|
|
544
|
+
label?: string;
|
|
545
|
+
/** Whether the field is required */
|
|
546
|
+
required?: boolean;
|
|
547
|
+
/** Error message to display */
|
|
548
|
+
error?: string;
|
|
549
|
+
/** Helper/description text below the field */
|
|
550
|
+
helperText?: string;
|
|
551
|
+
/** Field content (input, select, etc.) */
|
|
552
|
+
children: default_2.ReactNode;
|
|
553
|
+
/** Additional className */
|
|
554
|
+
className?: string;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export declare function FormHelperText({ children, className }: FormHelperTextProps): JSX.Element;
|
|
558
|
+
|
|
559
|
+
export declare interface FormHelperTextProps {
|
|
560
|
+
children: default_2.ReactNode;
|
|
561
|
+
className?: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
export declare function FormLabel({ htmlFor, required, children, className, }: FormLabelProps): JSX.Element;
|
|
565
|
+
|
|
566
|
+
export declare interface FormLabelProps {
|
|
567
|
+
htmlFor?: string;
|
|
568
|
+
required?: boolean;
|
|
569
|
+
children: default_2.ReactNode;
|
|
570
|
+
className?: string;
|
|
571
|
+
}
|
|
572
|
+
|
|
508
573
|
export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
509
574
|
|
|
510
575
|
export declare interface IconButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -634,6 +699,47 @@ export declare interface NotificationProps {
|
|
|
634
699
|
|
|
635
700
|
export declare type NotificationType = "info" | "success" | "warning" | "error";
|
|
636
701
|
|
|
702
|
+
export declare function NumberInput({ value, defaultValue, onChange, min, max, step, disabled, size, label, placeholder, error, className, }: NumberInputProps): JSX.Element;
|
|
703
|
+
|
|
704
|
+
export declare interface NumberInputProps {
|
|
705
|
+
value?: number;
|
|
706
|
+
defaultValue?: number;
|
|
707
|
+
onChange?: (value: number) => void;
|
|
708
|
+
min?: number;
|
|
709
|
+
max?: number;
|
|
710
|
+
step?: number;
|
|
711
|
+
disabled?: boolean;
|
|
712
|
+
size?: NumberInputSize;
|
|
713
|
+
label?: string;
|
|
714
|
+
placeholder?: string;
|
|
715
|
+
error?: string;
|
|
716
|
+
className?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export declare type NumberInputSize = "sm" | "md" | "lg";
|
|
720
|
+
|
|
721
|
+
export declare function OTPInput({ length, value, onChange, onComplete, disabled, error, size, label, masked, className, }: OTPInputProps): JSX.Element;
|
|
722
|
+
|
|
723
|
+
export declare interface OTPInputProps {
|
|
724
|
+
/** Number of OTP digits */
|
|
725
|
+
length?: number;
|
|
726
|
+
/** Controlled value */
|
|
727
|
+
value?: string;
|
|
728
|
+
/** Called when the OTP value changes */
|
|
729
|
+
onChange?: (value: string) => void;
|
|
730
|
+
/** Called when all digits are filled */
|
|
731
|
+
onComplete?: (value: string) => void;
|
|
732
|
+
disabled?: boolean;
|
|
733
|
+
error?: string;
|
|
734
|
+
size?: OTPInputSize;
|
|
735
|
+
label?: string;
|
|
736
|
+
/** Mask input (show dots instead of digits) */
|
|
737
|
+
masked?: boolean;
|
|
738
|
+
className?: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
export declare type OTPInputSize = "sm" | "md" | "lg";
|
|
742
|
+
|
|
637
743
|
export declare function Pagination({ currentPage, totalPages, onPageChange, siblingCount, showFirstLast, showPrevNext, showPageSize, pageSizeOptions, pageSize, onPageSizeChange, totalItems, size, variant, disabled, showPageInfo, showItemsInfo, prevLabel, nextLabel, }: PaginationProps): JSX.Element;
|
|
638
744
|
|
|
639
745
|
export declare interface PaginationProps {
|
|
@@ -1217,4 +1323,6 @@ export declare interface UploadedFile {
|
|
|
1217
1323
|
status: "uploading" | "done" | "error";
|
|
1218
1324
|
}
|
|
1219
1325
|
|
|
1326
|
+
export declare function useFormField(): FormFieldContextValue;
|
|
1327
|
+
|
|
1220
1328
|
export { }
|