@getsoren/design-system 4.76.0 → 4.78.0
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/main.cjs +57 -57
- package/dist/main.js +1691 -1647
- package/dist/src/components/Inputs/ChipQuantityEditor/ChipQuantityEditor.d.ts +20 -0
- package/dist/src/config/theme.d.ts +1 -0
- package/dist/src/main.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ChipQuantityEditorProps {
|
|
2
|
+
/**
|
|
3
|
+
* The current quantity displayed in the chip.
|
|
4
|
+
*/
|
|
5
|
+
quantity: number;
|
|
6
|
+
/**
|
|
7
|
+
* Optional unit appended after the quantity (e.g. "m", "kg").
|
|
8
|
+
*/
|
|
9
|
+
unit?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Indicates if the editor is disabled. A disabled chip is not clickable.
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Called with the new quantity when the user commits a valid change (strictly positive integer).
|
|
16
|
+
*/
|
|
17
|
+
onChange: (quantity: number) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const ChipQuantityEditor: ({ quantity, unit, disabled, onChange }: ChipQuantityEditorProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default ChipQuantityEditor;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ export * from './components/Inputs/CheckboxCard/CheckboxCard';
|
|
|
72
72
|
export { default as CheckboxCard } from './components/Inputs/CheckboxCard/CheckboxCard';
|
|
73
73
|
export * from './components/Inputs/ChipFilter/ChipFilter';
|
|
74
74
|
export { default as ChipFilter } from './components/Inputs/ChipFilter/ChipFilter';
|
|
75
|
+
export * from './components/Inputs/ChipQuantityEditor/ChipQuantityEditor';
|
|
76
|
+
export { default as ChipQuantityEditor } from './components/Inputs/ChipQuantityEditor/ChipQuantityEditor';
|
|
75
77
|
export * from './components/Inputs/CountryAutocomplete/CountryAutocomplete';
|
|
76
78
|
export { default as CountryAutocomplete } from './components/Inputs/CountryAutocomplete/CountryAutocomplete';
|
|
77
79
|
export * from './components/Inputs/File';
|