@delightui/components 0.1.137 → 0.1.139
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/cjs/components/molecules/Select/Select.types.d.ts +4 -0
- package/dist/cjs/components/molecules/Select/Select.utils.d.ts +0 -7
- package/dist/cjs/library.css +1 -0
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Select/Select.types.d.ts +4 -0
- package/dist/esm/components/molecules/Select/Select.utils.d.ts +0 -7
- package/dist/esm/library.css +1 -0
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -20,6 +20,10 @@ export type SelectContextType = {
|
|
|
20
20
|
* Function to reset the selected value to its default state.
|
|
21
21
|
*/
|
|
22
22
|
resetSelectedValue: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Function to register an option's value-label pair.
|
|
25
|
+
*/
|
|
26
|
+
registerOption: (optionValue: FieldValue, label: React.ReactNode) => void;
|
|
23
27
|
/**
|
|
24
28
|
* Function to get the display label for a value.
|
|
25
29
|
*/
|
|
@@ -33,10 +33,3 @@ export declare const handleSelectionChange: (newValue: string | number, selected
|
|
|
33
33
|
* @returns Whether the option is selected or not.
|
|
34
34
|
*/
|
|
35
35
|
export declare const checkIsSelected: (optionValue?: string, selectedValue?: FieldValue) => boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Utility to recursively find Option components and extract their props
|
|
38
|
-
*/
|
|
39
|
-
export declare const extractOptionProps: (children: React.ReactNode, OptionComponent: React.ComponentType<any>) => Array<{
|
|
40
|
-
value: FieldValue;
|
|
41
|
-
label: React.ReactNode;
|
|
42
|
-
}>;
|
package/dist/cjs/library.css
CHANGED