@lax-wp/design-system 0.3.58 → 0.3.59
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import CreatableSelect from "react-select/creatable";
|
|
1
2
|
import type { LabelType } from "../../data-display/label/Label";
|
|
3
|
+
import type { ComponentProps } from "react";
|
|
2
4
|
/**
|
|
3
5
|
* Option type for the CreatableSelect component
|
|
4
6
|
*/
|
|
@@ -56,7 +58,7 @@ export type TProps = {
|
|
|
56
58
|
/** Whether the component is in dark mode */
|
|
57
59
|
isDarkMode?: boolean;
|
|
58
60
|
};
|
|
59
|
-
export type CreatableSelectProps = TProps
|
|
61
|
+
export type CreatableSelectProps = TProps & ComponentProps<typeof CreatableSelect>;
|
|
60
62
|
/**
|
|
61
63
|
* A creatable select component with label, validation, and styling support.
|
|
62
64
|
* Features dark mode support, accessibility enhancements, and comprehensive prop support.
|
|
@@ -79,6 +81,6 @@ export type CreatableSelectProps = TProps;
|
|
|
79
81
|
* ```
|
|
80
82
|
*/
|
|
81
83
|
export declare const CreatableSelectField: {
|
|
82
|
-
({ id, label, errorMessage, selectOptions, loading, isClearable, multiSelect, selectedValues, disabled, required, value, className, tooltip, tags, originalCase, onChange, filterOption, placeholder, isDarkMode, ...props }: TProps): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
({ id, label, errorMessage, selectOptions, loading, isClearable, multiSelect, selectedValues, disabled, required, value, className, tooltip, tags, originalCase, onChange, filterOption, placeholder, isDarkMode, ...props }: TProps & ComponentProps<typeof CreatableSelect>): import("react/jsx-runtime").JSX.Element;
|
|
83
85
|
displayName: string;
|
|
84
86
|
};
|