ui-mathilde-web 0.4.0 → 0.5.1
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 +19 -1
- package/dist/ui-mathilde-web.js +906 -836
- package/dist/ui-mathilde-web.umd.cjs +29 -29
- 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,18 @@ 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
|
+
fetchItems?: (query: string) => Promise<DropdownItem[]>;
|
|
173
|
+
minCharsToSearch?: number;
|
|
174
|
+
debounceMs?: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
159
177
|
declare type DropdownMode = 'simple' | 'checkbox';
|
|
160
178
|
|
|
161
179
|
declare interface DropdownProps {
|
|
@@ -204,7 +222,7 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
|
|
|
204
222
|
label?: string;
|
|
205
223
|
error?: string;
|
|
206
224
|
type: string;
|
|
207
|
-
value?: string;
|
|
225
|
+
value?: string | number;
|
|
208
226
|
onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
209
227
|
classInclude?: string;
|
|
210
228
|
min?: number | string;
|