@cmgfi/clear-ds 1.2.4 → 1.2.5
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.cjs +36 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -23
- package/dist/index.mjs +3318 -3315
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1891,29 +1891,6 @@ export declare interface RuleFilterValue {
|
|
|
1891
1891
|
rules: FilterRule[];
|
|
1892
1892
|
}
|
|
1893
1893
|
|
|
1894
|
-
/**
|
|
1895
|
-
* Select — Clear Design System
|
|
1896
|
-
*
|
|
1897
|
-
* A single-value dropdown. Selecting an option closes the dropdown immediately.
|
|
1898
|
-
* Supports an optional live-search filter, three sizes, and full state coverage:
|
|
1899
|
-
* idle, hover, active/open, filled, invalid, and disabled.
|
|
1900
|
-
*
|
|
1901
|
-
* @example
|
|
1902
|
-
*
|
|
1903
|
-
* ```tsx
|
|
1904
|
-
* <Select options={opts} value={val} onChange={setVal} label="Loan type" />
|
|
1905
|
-
* ```
|
|
1906
|
-
* @example
|
|
1907
|
-
*
|
|
1908
|
-
* ```tsx
|
|
1909
|
-
* <Select options={opts} value={val} onChange={setVal} required invalid helperText="Required." />
|
|
1910
|
-
* ```
|
|
1911
|
-
* @example
|
|
1912
|
-
*
|
|
1913
|
-
* ```tsx
|
|
1914
|
-
* <Select options={opts} value={val} onChange={setVal} filter size="lg" />
|
|
1915
|
-
* ```
|
|
1916
|
-
*/
|
|
1917
1894
|
export declare const Select: ForwardRefExoticComponent<SelectProps & RefAttributes<HTMLDivElement>>;
|
|
1918
1895
|
|
|
1919
1896
|
/**
|
|
@@ -2042,6 +2019,8 @@ export declare interface SelectProps {
|
|
|
2042
2019
|
filterPlaceholder?: string;
|
|
2043
2020
|
/** Size variant. sm = 10px / md = 12px (default) / lg = 14px. */
|
|
2044
2021
|
size?: 'sm' | 'md' | 'lg';
|
|
2022
|
+
/** Icon rendered on the left side of the trigger. Pass `true` for the default search icon, or any React node for a custom icon. */
|
|
2023
|
+
leadingIcon?: React.ReactNode | boolean;
|
|
2045
2024
|
className?: string;
|
|
2046
2025
|
style?: React.CSSProperties;
|
|
2047
2026
|
}
|