@delightui/components 0.1.134 → 0.1.136
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.presenter.d.ts +1 -0
- package/dist/cjs/components/molecules/Select/Select.types.d.ts +8 -0
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Select/Select.presenter.d.ts +1 -0
- package/dist/esm/components/molecules/Select/Select.types.d.ts +8 -0
- package/dist/esm/library.js +1 -1
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
|
@@ -288,5 +288,6 @@ declare const usePresenter: (props: SelectProps) => {
|
|
|
288
288
|
};
|
|
289
289
|
onOptionsOpen: () => void;
|
|
290
290
|
onOptionsClose: () => void;
|
|
291
|
+
displayValue: string | number | true | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | undefined;
|
|
291
292
|
};
|
|
292
293
|
export default usePresenter;
|
|
@@ -20,6 +20,14 @@ 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 a value-label pair from Option components.
|
|
25
|
+
*/
|
|
26
|
+
registerOption: (value: FieldValue, label: React.ReactNode) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Function to get the display label for a value.
|
|
29
|
+
*/
|
|
30
|
+
getDisplayLabel: (value: FieldValue) => React.ReactNode | undefined;
|
|
23
31
|
/**
|
|
24
32
|
* Indicates whether the field is in an invalid state.
|
|
25
33
|
*/
|