cekat-ui 1.3.17 → 1.3.18
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 +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.mjs +5839 -5775
- package/dist/index.umd.js +16 -16
- package/dist/style.css +0 -6
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1673,6 +1673,30 @@ export { SelectionIndicator }
|
|
|
1673
1673
|
*/
|
|
1674
1674
|
export declare function SelectItem<T extends object>({ className, ...props }: ListBoxItemProps<T>): JSX_2.Element;
|
|
1675
1675
|
|
|
1676
|
+
/**
|
|
1677
|
+
* `Popover` + `ListBox`, with a search field filtering `items` in between. The query is read
|
|
1678
|
+
* from `useSelectSearchContext` rather than local state — see `select.context.ts` for why.
|
|
1679
|
+
*/
|
|
1680
|
+
export declare function SelectPopover<T extends object>({ items, children, getTextValue, filter, searchPlaceholder, searchAriaLabel, emptyState, className, }: SelectPopoverProps<T>): JSX_2.Element;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Drop-in replacement for a plain `Popover` + `ListBox` pair (see `Calendar.tsx` for that bare
|
|
1684
|
+
* composition) that adds a search field above the list, filtering `items` client-side — the
|
|
1685
|
+
* same shape as `MultiSelectPopover`, adapted for `Select`'s single-value case. The query itself
|
|
1686
|
+
* lives in `Select`, not here — see `select.context.ts`.
|
|
1687
|
+
*/
|
|
1688
|
+
export declare interface SelectPopoverProps<T extends object> {
|
|
1689
|
+
items: Iterable<T>;
|
|
1690
|
+
children: (item: T) => React_2.ReactElement;
|
|
1691
|
+
getTextValue: (item: T) => string;
|
|
1692
|
+
filter?: (item: T, query: string) => boolean;
|
|
1693
|
+
searchPlaceholder?: string;
|
|
1694
|
+
/** `aria-label` on the search field — it has no visible label. Default `'Search options'`. */
|
|
1695
|
+
searchAriaLabel?: string;
|
|
1696
|
+
emptyState?: React_2.ReactNode;
|
|
1697
|
+
className?: ClassValue;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1676
1700
|
/**
|
|
1677
1701
|
* Single-value by construction — RAC's `Select` also supports `selectionMode: 'multiple'`,
|
|
1678
1702
|
* deliberately not exposed here. A multi-value trigger is a different interaction (chips, no
|
package/dist/index.d.ts
CHANGED
|
@@ -1673,6 +1673,30 @@ export { SelectionIndicator }
|
|
|
1673
1673
|
*/
|
|
1674
1674
|
export declare function SelectItem<T extends object>({ className, ...props }: ListBoxItemProps<T>): JSX_2.Element;
|
|
1675
1675
|
|
|
1676
|
+
/**
|
|
1677
|
+
* `Popover` + `ListBox`, with a search field filtering `items` in between. The query is read
|
|
1678
|
+
* from `useSelectSearchContext` rather than local state — see `select.context.ts` for why.
|
|
1679
|
+
*/
|
|
1680
|
+
export declare function SelectPopover<T extends object>({ items, children, getTextValue, filter, searchPlaceholder, searchAriaLabel, emptyState, className, }: SelectPopoverProps<T>): JSX_2.Element;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Drop-in replacement for a plain `Popover` + `ListBox` pair (see `Calendar.tsx` for that bare
|
|
1684
|
+
* composition) that adds a search field above the list, filtering `items` client-side — the
|
|
1685
|
+
* same shape as `MultiSelectPopover`, adapted for `Select`'s single-value case. The query itself
|
|
1686
|
+
* lives in `Select`, not here — see `select.context.ts`.
|
|
1687
|
+
*/
|
|
1688
|
+
export declare interface SelectPopoverProps<T extends object> {
|
|
1689
|
+
items: Iterable<T>;
|
|
1690
|
+
children: (item: T) => React_2.ReactElement;
|
|
1691
|
+
getTextValue: (item: T) => string;
|
|
1692
|
+
filter?: (item: T, query: string) => boolean;
|
|
1693
|
+
searchPlaceholder?: string;
|
|
1694
|
+
/** `aria-label` on the search field — it has no visible label. Default `'Search options'`. */
|
|
1695
|
+
searchAriaLabel?: string;
|
|
1696
|
+
emptyState?: React_2.ReactNode;
|
|
1697
|
+
className?: ClassValue;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1676
1700
|
/**
|
|
1677
1701
|
* Single-value by construction — RAC's `Select` also supports `selectionMode: 'multiple'`,
|
|
1678
1702
|
* deliberately not exposed here. A multi-value trigger is a different interaction (chips, no
|