laif-ds 1.1.3 → 1.1.4

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.ts CHANGED
@@ -623,9 +623,18 @@ export declare interface AppRadioGroupProps {
623
623
 
624
624
  export declare function AppSelect(props: AppSelectProps): JSX.Element;
625
625
 
626
+ /**
627
+ * Any other HTML attribute (aria-*, data-*, title, event handlers, style…) is
628
+ * forwarded to the trigger. Excluded: the component's own props, attributes
629
+ * the trigger needs to work as a combobox (role, tabIndex, the aria state Radix
630
+ * and the component manage), and div attributes that clash with the select API.
631
+ */
632
+ declare type AppSelectHTMLProps = Omit<React.HTMLAttributes<HTMLDivElement>, keyof OwnBaseProps | "children" | "dangerouslySetInnerHTML" | "contentEditable" | "defaultValue" | "defaultChecked" | "onChange" | "role" | "tabIndex" | "aria-expanded" | "aria-haspopup" | "aria-controls" | "aria-disabled" | "aria-required">;
633
+
626
634
  export declare interface AppSelectOption {
627
635
  value: string | number;
628
636
  label: string | React.ReactNode;
637
+ keywords?: string[];
629
638
  disabled?: boolean;
630
639
  group?: string;
631
640
  fixed?: boolean;
@@ -906,33 +915,7 @@ declare type BaseColumnFields = {
906
915
  headerClassName?: string;
907
916
  } & HeaderConfig;
908
917
 
909
- declare type BaseProps = {
910
- options: AppSelectOption[];
911
- placeholder?: string;
912
- searchPlaceholder?: string;
913
- emptyPlaceholder?: string;
914
- addItemPlaceholder?: string;
915
- noGroupLabel?: string;
916
- itemCountMessage?: (selected: number) => string;
917
- maxSelectedMessage?: (max: number) => string;
918
- label?: string | React.ReactNode;
919
- className?: string;
920
- labelClassName?: string;
921
- wrpClassName?: string;
922
- searchable?: boolean;
923
- creatable?: boolean;
924
- isSingleSelectClearable?: boolean;
925
- disabled?: boolean;
926
- maxSelected?: number;
927
- showChipsInsteadOfCount?: boolean;
928
- size?: SelectSizeType;
929
- onClear?: () => void;
930
- id?: string;
931
- "data-testid"?: string;
932
- "aria-label"?: string;
933
- "aria-labelledby"?: string;
934
- portalContainer?: HTMLElement | null;
935
- };
918
+ declare type BaseProps = OwnBaseProps & AppSelectHTMLProps;
936
919
 
937
920
  export declare interface BottomNavItem {
938
921
  /**
@@ -8501,6 +8484,36 @@ declare interface Option_3 {
8501
8484
  [key: string]: string | boolean | undefined;
8502
8485
  }
8503
8486
 
8487
+ declare type OwnBaseProps = {
8488
+ options: AppSelectOption[];
8489
+ placeholder?: string;
8490
+ searchPlaceholder?: string;
8491
+ emptyPlaceholder?: string;
8492
+ addItemPlaceholder?: string;
8493
+ noGroupLabel?: string;
8494
+ itemCountMessage?: (selected: number) => string;
8495
+ maxSelectedMessage?: (max: number) => string;
8496
+ label?: string | React.ReactNode;
8497
+ className?: string;
8498
+ labelClassName?: string;
8499
+ wrpClassName?: string;
8500
+ searchable?: boolean;
8501
+ creatable?: boolean;
8502
+ isSingleSelectClearable?: boolean;
8503
+ disabled?: boolean;
8504
+ maxSelected?: number;
8505
+ showChipsInsteadOfCount?: boolean;
8506
+ size?: SelectSizeType;
8507
+ onClear?: () => void;
8508
+ required?: boolean;
8509
+ "aria-invalid"?: boolean;
8510
+ id?: string;
8511
+ "data-testid"?: string;
8512
+ "aria-label"?: string;
8513
+ "aria-labelledby"?: string;
8514
+ portalContainer?: HTMLElement | null;
8515
+ };
8516
+
8504
8517
  export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
8505
8518
 
8506
8519
  export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;