ui-mathilde-web 0.4.0 → 0.5.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/style.css +1 -1
- package/dist/ui-mathilde-web.d.ts +16 -1
- package/dist/ui-mathilde-web.js +256 -212
- package/dist/ui-mathilde-web.umd.cjs +28 -28
- package/package.json +1 -1
|
@@ -147,6 +147,12 @@ declare interface DateRangePickerProps {
|
|
|
147
147
|
|
|
148
148
|
export declare const DropdownButton: ({ label, dismissOnClick, items, size, className, styles, mode, columns, onSelectionChange, selectedItems, activeChevron, icon, iconSize, }: DropdownProps) => JSX_2.Element;
|
|
149
149
|
|
|
150
|
+
declare interface DropdownItem {
|
|
151
|
+
id: string | number;
|
|
152
|
+
label: string;
|
|
153
|
+
value: string | number;
|
|
154
|
+
}
|
|
155
|
+
|
|
150
156
|
declare interface DropdownItemProps {
|
|
151
157
|
label: string;
|
|
152
158
|
value?: string;
|
|
@@ -156,6 +162,15 @@ declare interface DropdownItemProps {
|
|
|
156
162
|
checked?: boolean;
|
|
157
163
|
}
|
|
158
164
|
|
|
165
|
+
export declare const DropdownList: default_2.FC<DropdownListProps>;
|
|
166
|
+
|
|
167
|
+
declare interface DropdownListProps {
|
|
168
|
+
items: DropdownItem[];
|
|
169
|
+
placeholder?: string;
|
|
170
|
+
onSelect: (item: DropdownItem) => void;
|
|
171
|
+
selectedItem?: DropdownItem | null;
|
|
172
|
+
}
|
|
173
|
+
|
|
159
174
|
declare type DropdownMode = 'simple' | 'checkbox';
|
|
160
175
|
|
|
161
176
|
declare interface DropdownProps {
|
|
@@ -204,7 +219,7 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
|
|
|
204
219
|
label?: string;
|
|
205
220
|
error?: string;
|
|
206
221
|
type: string;
|
|
207
|
-
value?: string;
|
|
222
|
+
value?: string | number;
|
|
208
223
|
onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
209
224
|
classInclude?: string;
|
|
210
225
|
min?: number | string;
|