@underverse-ui/underverse 0.2.42 → 0.2.44

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.cts CHANGED
@@ -640,33 +640,21 @@ interface PaginationProps {
640
640
  onChange: (page: number) => void;
641
641
  className?: string;
642
642
  size?: "sm" | "md" | "lg";
643
- variant?: "default" | "outline" | "ghost";
644
643
  showFirstLast?: boolean;
645
644
  showPrevNext?: boolean;
646
645
  showPageNumbers?: boolean;
647
646
  showInfo?: boolean;
648
647
  disabled?: boolean;
649
- alignment?: "left" | "center" | "right";
650
648
  pageSize?: number;
651
649
  pageSizeOptions?: number[];
652
650
  onPageSizeChange?: (size: number) => void;
653
651
  totalItems?: number;
654
652
  labels?: {
655
653
  navigationLabel?: string;
656
- showingResults?: (ctx: {
657
- startItem: number;
658
- endItem: number;
659
- totalItems?: number;
660
- }) => string;
661
654
  firstPage?: string;
662
655
  previousPage?: string;
663
- previous?: string;
664
656
  nextPage?: string;
665
- next?: string;
666
657
  lastPage?: string;
667
- itemsPerPage?: string;
668
- search?: string;
669
- noOptions?: string;
670
658
  pageNumber?: (page: number) => string;
671
659
  };
672
660
  }
@@ -677,7 +665,6 @@ interface SimplePaginationProps {
677
665
  onChange: (page: number) => void;
678
666
  className?: string;
679
667
  size?: "sm" | "md" | "lg";
680
- variant?: "default" | "outline" | "ghost";
681
668
  disabled?: boolean;
682
669
  showInfo?: boolean;
683
670
  totalItems?: number;
@@ -689,7 +676,6 @@ interface CompactPaginationProps {
689
676
  totalPages: number;
690
677
  onChange: (page: number) => void;
691
678
  className?: string;
692
- variant?: "default" | "outline" | "ghost";
693
679
  disabled?: boolean;
694
680
  }
695
681
  declare const CompactPagination: React$1.FC<CompactPaginationProps>;
@@ -730,6 +716,8 @@ interface DatePickerProps {
730
716
  todayLabel?: string;
731
717
  clearLabel?: string;
732
718
  weekdayLabels?: string[];
719
+ /** Disable selecting past dates (before today) */
720
+ disablePastDates?: boolean;
733
721
  }
734
722
  declare const DatePicker: React$1.FC<DatePickerProps>;
735
723
  declare const DateRangePicker: React$1.FC<{
@@ -738,6 +726,8 @@ declare const DateRangePicker: React$1.FC<{
738
726
  onChange: (start: Date, end: Date) => void;
739
727
  placeholder?: string;
740
728
  className?: string;
729
+ /** Disable selecting past dates (before today) */
730
+ disablePastDates?: boolean;
741
731
  }>;
742
732
 
743
733
  type TimeFormat = "24" | "12";
@@ -1004,14 +994,26 @@ interface Category {
1004
994
  name: string;
1005
995
  parent_id?: number | null;
1006
996
  }
997
+ interface CategoryTreeSelectLabels {
998
+ /** Text shown when no categories available */
999
+ emptyText?: string;
1000
+ /** Text shown when categories are selected, receives count as parameter */
1001
+ selectedText?: (count: number) => string;
1002
+ }
1007
1003
  interface CategoryTreeSelectProps {
1008
1004
  categories: Category[];
1009
- value: number[];
1010
- onChange: (selectedIds: number[]) => void;
1005
+ value?: number[];
1006
+ onChange?: (selectedIds: number[]) => void;
1011
1007
  placeholder?: string;
1012
1008
  disabled?: boolean;
1013
- }
1014
- declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
1009
+ /** When true, renders as a read-only tree view without select functionality */
1010
+ viewOnly?: boolean;
1011
+ /** Default expanded state for all nodes in viewOnly mode */
1012
+ defaultExpanded?: boolean;
1013
+ /** i18n labels for localization */
1014
+ labels?: CategoryTreeSelectLabels;
1015
+ }
1016
+ declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled, viewOnly, defaultExpanded, labels, }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
1015
1017
 
1016
1018
  type Fit = "cover" | "contain";
1017
1019
  interface SmartImageProps {
package/dist/index.d.ts CHANGED
@@ -640,33 +640,21 @@ interface PaginationProps {
640
640
  onChange: (page: number) => void;
641
641
  className?: string;
642
642
  size?: "sm" | "md" | "lg";
643
- variant?: "default" | "outline" | "ghost";
644
643
  showFirstLast?: boolean;
645
644
  showPrevNext?: boolean;
646
645
  showPageNumbers?: boolean;
647
646
  showInfo?: boolean;
648
647
  disabled?: boolean;
649
- alignment?: "left" | "center" | "right";
650
648
  pageSize?: number;
651
649
  pageSizeOptions?: number[];
652
650
  onPageSizeChange?: (size: number) => void;
653
651
  totalItems?: number;
654
652
  labels?: {
655
653
  navigationLabel?: string;
656
- showingResults?: (ctx: {
657
- startItem: number;
658
- endItem: number;
659
- totalItems?: number;
660
- }) => string;
661
654
  firstPage?: string;
662
655
  previousPage?: string;
663
- previous?: string;
664
656
  nextPage?: string;
665
- next?: string;
666
657
  lastPage?: string;
667
- itemsPerPage?: string;
668
- search?: string;
669
- noOptions?: string;
670
658
  pageNumber?: (page: number) => string;
671
659
  };
672
660
  }
@@ -677,7 +665,6 @@ interface SimplePaginationProps {
677
665
  onChange: (page: number) => void;
678
666
  className?: string;
679
667
  size?: "sm" | "md" | "lg";
680
- variant?: "default" | "outline" | "ghost";
681
668
  disabled?: boolean;
682
669
  showInfo?: boolean;
683
670
  totalItems?: number;
@@ -689,7 +676,6 @@ interface CompactPaginationProps {
689
676
  totalPages: number;
690
677
  onChange: (page: number) => void;
691
678
  className?: string;
692
- variant?: "default" | "outline" | "ghost";
693
679
  disabled?: boolean;
694
680
  }
695
681
  declare const CompactPagination: React$1.FC<CompactPaginationProps>;
@@ -730,6 +716,8 @@ interface DatePickerProps {
730
716
  todayLabel?: string;
731
717
  clearLabel?: string;
732
718
  weekdayLabels?: string[];
719
+ /** Disable selecting past dates (before today) */
720
+ disablePastDates?: boolean;
733
721
  }
734
722
  declare const DatePicker: React$1.FC<DatePickerProps>;
735
723
  declare const DateRangePicker: React$1.FC<{
@@ -738,6 +726,8 @@ declare const DateRangePicker: React$1.FC<{
738
726
  onChange: (start: Date, end: Date) => void;
739
727
  placeholder?: string;
740
728
  className?: string;
729
+ /** Disable selecting past dates (before today) */
730
+ disablePastDates?: boolean;
741
731
  }>;
742
732
 
743
733
  type TimeFormat = "24" | "12";
@@ -1004,14 +994,26 @@ interface Category {
1004
994
  name: string;
1005
995
  parent_id?: number | null;
1006
996
  }
997
+ interface CategoryTreeSelectLabels {
998
+ /** Text shown when no categories available */
999
+ emptyText?: string;
1000
+ /** Text shown when categories are selected, receives count as parameter */
1001
+ selectedText?: (count: number) => string;
1002
+ }
1007
1003
  interface CategoryTreeSelectProps {
1008
1004
  categories: Category[];
1009
- value: number[];
1010
- onChange: (selectedIds: number[]) => void;
1005
+ value?: number[];
1006
+ onChange?: (selectedIds: number[]) => void;
1011
1007
  placeholder?: string;
1012
1008
  disabled?: boolean;
1013
- }
1014
- declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
1009
+ /** When true, renders as a read-only tree view without select functionality */
1010
+ viewOnly?: boolean;
1011
+ /** Default expanded state for all nodes in viewOnly mode */
1012
+ defaultExpanded?: boolean;
1013
+ /** i18n labels for localization */
1014
+ labels?: CategoryTreeSelectLabels;
1015
+ }
1016
+ declare function CategoryTreeSelect({ categories, value, onChange, placeholder, disabled, viewOnly, defaultExpanded, labels, }: CategoryTreeSelectProps): react_jsx_runtime.JSX.Element;
1015
1017
 
1016
1018
  type Fit = "cover" | "contain";
1017
1019
  interface SmartImageProps {