@qwanyx/stack 0.2.23 → 0.2.25
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/components/ComboBox.d.ts +5 -1
- package/dist/index.cjs.js +25 -25
- package/dist/index.esm.js +1353 -1315
- package/package.json +1 -1
|
@@ -20,6 +20,10 @@ export interface ComboBoxProps {
|
|
|
20
20
|
allowCreate?: boolean;
|
|
21
21
|
/** Called when a new option is created (can be async) */
|
|
22
22
|
onCreate?: (label: string) => ComboBoxOption | Promise<ComboBoxOption> | void;
|
|
23
|
+
/** Allow deleting options */
|
|
24
|
+
allowDelete?: boolean;
|
|
25
|
+
/** Called when an option is deleted */
|
|
26
|
+
onDelete?: (id: string) => void | Promise<void>;
|
|
23
27
|
/** Label above the input */
|
|
24
28
|
label?: string;
|
|
25
29
|
/** Disabled state */
|
|
@@ -41,4 +45,4 @@ export interface ComboBoxTheme {
|
|
|
41
45
|
chipText?: string;
|
|
42
46
|
hoverBackground?: string;
|
|
43
47
|
}
|
|
44
|
-
export declare function ComboBox({ options, value, onChange, placeholder, allowCreate, onCreate, label, disabled, max, theme: themeProp, className, }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function ComboBox({ options, value, onChange, placeholder, allowCreate, onCreate, allowDelete, onDelete, label, disabled, max, theme: themeProp, className, }: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|