@uxuissk/design-system 0.5.0 → 0.6.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.
@@ -523,6 +523,46 @@ export declare interface FileUploadProps {
523
523
 
524
524
  export declare type FileUploadVariant = "dropzone" | "button" | "avatar";
525
525
 
526
+ export declare function FilterBar({ filters, searchPlaceholder, showSearch, value, onFilterChange, className, }: FilterBarProps): JSX.Element;
527
+
528
+ export declare interface FilterBarProps {
529
+ /** Filter definitions */
530
+ filters?: FilterConfig[];
531
+ /** Search placeholder */
532
+ searchPlaceholder?: string;
533
+ /** Show search field */
534
+ showSearch?: boolean;
535
+ /** Controlled value */
536
+ value?: FilterBarValue;
537
+ /** Callback when any filter/search changes */
538
+ onFilterChange?: (value: FilterBarValue) => void;
539
+ /** Additional className */
540
+ className?: string;
541
+ }
542
+
543
+ export declare interface FilterBarValue {
544
+ search?: string;
545
+ filters: Record<string, FilterValue>;
546
+ }
547
+
548
+ export declare interface FilterConfig {
549
+ /** Unique key for this filter */
550
+ key: string;
551
+ /** Display label for the filter button */
552
+ label: string;
553
+ /** single = one value at a time, multi = multiple values */
554
+ type: "single" | "multi";
555
+ /** Available options */
556
+ options: FilterOption[];
557
+ }
558
+
559
+ export declare interface FilterOption {
560
+ label: string;
561
+ value: string;
562
+ }
563
+
564
+ export declare type FilterValue = string | string[] | [Date | null, Date | null] | null;
565
+
526
566
  export declare function FormError({ message, className }: FormErrorProps): JSX.Element | null;
527
567
 
528
568
  export declare interface FormErrorProps {
@@ -530,13 +570,15 @@ export declare interface FormErrorProps {
530
570
  className?: string;
531
571
  }
532
572
 
533
- export declare function FormField({ name, label, required, error, helperText, children, className, }: FormFieldProps): JSX.Element;
573
+ export declare function FormField({ name, label, required, error, successMessage, helperText, layout, labelWidth, children, className, }: FormFieldProps): JSX.Element;
534
574
 
535
575
  declare interface FormFieldContextValue {
536
576
  name: string;
537
577
  error?: string;
538
578
  }
539
579
 
580
+ export declare type FormFieldLayout = "vertical" | "horizontal";
581
+
540
582
  export declare interface FormFieldProps {
541
583
  /** Field name — used for htmlFor on label */
542
584
  name: string;
@@ -546,8 +588,14 @@ export declare interface FormFieldProps {
546
588
  required?: boolean;
547
589
  /** Error message to display */
548
590
  error?: string;
591
+ /** Success message to display (overrides helperText when present) */
592
+ successMessage?: string;
549
593
  /** Helper/description text below the field */
550
594
  helperText?: string;
595
+ /** Layout direction: vertical (default) or horizontal (label left, input right) */
596
+ layout?: FormFieldLayout;
597
+ /** Label width when layout="horizontal" (default: "160px") */
598
+ labelWidth?: string;
551
599
  /** Field content (input, select, etc.) */
552
600
  children: default_2.ReactNode;
553
601
  /** Additional className */
@@ -570,6 +618,13 @@ export declare interface FormLabelProps {
570
618
  className?: string;
571
619
  }
572
620
 
621
+ export declare function FormSuccess({ message, className }: FormSuccessProps): JSX.Element | null;
622
+
623
+ export declare interface FormSuccessProps {
624
+ message?: string;
625
+ className?: string;
626
+ }
627
+
573
628
  export declare const IconButton: default_2.ForwardRefExoticComponent<IconButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
574
629
 
575
630
  export declare interface IconButtonProps extends default_2.ButtonHTMLAttributes<HTMLButtonElement> {
@@ -740,6 +795,25 @@ export declare interface OTPInputProps {
740
795
 
741
796
  export declare type OTPInputSize = "sm" | "md" | "lg";
742
797
 
798
+ export declare function PageHeader({ title, subtitle, breadcrumb, actions, tabs, sticky, className, }: PageHeaderProps): JSX.Element;
799
+
800
+ export declare interface PageHeaderProps {
801
+ /** Main page title (required) */
802
+ title: string;
803
+ /** Optional subtitle below the title */
804
+ subtitle?: string;
805
+ /** Breadcrumb content — pass a <Breadcrumb /> component */
806
+ breadcrumb?: default_2.ReactNode;
807
+ /** Action buttons — right-aligned (pass DSButton components) */
808
+ actions?: default_2.ReactNode;
809
+ /** Tab navigation below the header — pass a <Tabs /> component */
810
+ tabs?: default_2.ReactNode;
811
+ /** Stick to top of viewport while scrolling */
812
+ sticky?: boolean;
813
+ /** Additional className */
814
+ className?: string;
815
+ }
816
+
743
817
  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;
744
818
 
745
819
  export declare interface PaginationProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxuissk/design-system",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/sellsuki-ds.umd.cjs",