ui-mathilde-web 0.3.9 → 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 +47 -1
- package/dist/ui-mathilde-web.js +4492 -4368
- package/dist/ui-mathilde-web.umd.cjs +43 -43
- package/package.json +1 -1
|
@@ -6,6 +6,37 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
|
6
6
|
import * as React_2 from 'react';
|
|
7
7
|
import { RefAttributes } from 'react';
|
|
8
8
|
|
|
9
|
+
export declare const Accordion: default_2.FC<AccordionProps>;
|
|
10
|
+
|
|
11
|
+
export declare const AccordionGroup: default_2.FC<AccordionGroupProps>;
|
|
12
|
+
|
|
13
|
+
declare interface AccordionGroupProps {
|
|
14
|
+
items: AccordionItem[];
|
|
15
|
+
mode?: "multi" | "single";
|
|
16
|
+
defaultOpen?: string[];
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare interface AccordionItem {
|
|
21
|
+
id: string;
|
|
22
|
+
title: default_2.ReactNode;
|
|
23
|
+
content: default_2.ReactNode;
|
|
24
|
+
icon?: default_2.ReactNode;
|
|
25
|
+
iconPosition?: "left" | "right";
|
|
26
|
+
variant?: "minimal" | "bordered" | "shadow" | "ghost";
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare interface AccordionProps {
|
|
30
|
+
id: string;
|
|
31
|
+
title: default_2.ReactNode;
|
|
32
|
+
children: default_2.ReactNode;
|
|
33
|
+
isOpen: boolean;
|
|
34
|
+
onToggle?: () => void;
|
|
35
|
+
variant?: "minimal" | "bordered" | "shadow" | "ghost";
|
|
36
|
+
icon?: default_2.ReactNode;
|
|
37
|
+
iconPosition?: "left" | "right";
|
|
38
|
+
}
|
|
39
|
+
|
|
9
40
|
export declare const ButtonFormat: default_2.FC<ButtonFormatProps>;
|
|
10
41
|
|
|
11
42
|
declare interface ButtonFormatProps {
|
|
@@ -116,6 +147,12 @@ declare interface DateRangePickerProps {
|
|
|
116
147
|
|
|
117
148
|
export declare const DropdownButton: ({ label, dismissOnClick, items, size, className, styles, mode, columns, onSelectionChange, selectedItems, activeChevron, icon, iconSize, }: DropdownProps) => JSX_2.Element;
|
|
118
149
|
|
|
150
|
+
declare interface DropdownItem {
|
|
151
|
+
id: string | number;
|
|
152
|
+
label: string;
|
|
153
|
+
value: string | number;
|
|
154
|
+
}
|
|
155
|
+
|
|
119
156
|
declare interface DropdownItemProps {
|
|
120
157
|
label: string;
|
|
121
158
|
value?: string;
|
|
@@ -125,6 +162,15 @@ declare interface DropdownItemProps {
|
|
|
125
162
|
checked?: boolean;
|
|
126
163
|
}
|
|
127
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
|
+
|
|
128
174
|
declare type DropdownMode = 'simple' | 'checkbox';
|
|
129
175
|
|
|
130
176
|
declare interface DropdownProps {
|
|
@@ -173,7 +219,7 @@ declare interface InputFormProps extends default_2.InputHTMLAttributes<HTMLInput
|
|
|
173
219
|
label?: string;
|
|
174
220
|
error?: string;
|
|
175
221
|
type: string;
|
|
176
|
-
value?: string;
|
|
222
|
+
value?: string | number;
|
|
177
223
|
onChange?: (e: default_2.ChangeEvent<HTMLInputElement>) => void;
|
|
178
224
|
classInclude?: string;
|
|
179
225
|
min?: number | string;
|