@empreint/ui 1.1.0 → 1.2.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/README.md +39 -9
- package/dist/components/breadcrumb/breadcrumb.js +29 -0
- package/dist/components/breadcrumb/breadcrumb.module.js +8 -0
- package/dist/components/button/button.js +14 -0
- package/dist/components/button/button.module.js +3 -0
- package/dist/components/card/card.js +23 -0
- package/dist/components/card/card.module.js +8 -0
- package/dist/components/checkbox/checkbox.js +18 -0
- package/dist/components/checkbox/checkbox.module.js +7 -0
- package/dist/components/chip/chip.js +25 -0
- package/dist/components/chip/chip.module.js +6 -0
- package/dist/components/collapsible/collapsible.js +51 -0
- package/dist/components/collapsible/collapsible.module.js +9 -0
- package/dist/components/container/container.js +12 -0
- package/dist/components/container/container.module.js +3 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +59 -0
- package/dist/components/dropdown-menu/dropdown-menu.module.js +8 -0
- package/dist/components/dropzone/dropzone.js +99 -0
- package/dist/components/dropzone/dropzone.module.js +9 -0
- package/dist/components/flex/flex.js +17 -0
- package/dist/components/flex/flex.module.js +3 -0
- package/dist/components/grid/grid.js +16 -0
- package/dist/components/grid/grid.module.js +3 -0
- package/dist/components/input/input.js +44 -0
- package/dist/components/input/input.module.js +8 -0
- package/dist/components/language-selector/language-selector.js +19 -0
- package/dist/components/language-selector/language-selector.module.js +3 -0
- package/dist/components/list/list.js +15 -0
- package/dist/components/list/list.module.js +6 -0
- package/dist/components/loader/loader.js +21 -0
- package/dist/components/loader/loader.module.js +8 -0
- package/dist/components/modal/modal.js +69 -0
- package/dist/components/modal/modal.module.js +10 -0
- package/dist/components/pagination/pagination.js +77 -0
- package/dist/components/pagination/pagination.module.js +6 -0
- package/dist/components/popover/popover.js +38 -0
- package/dist/components/popover/popover.module.js +7 -0
- package/dist/components/radio-group/radio-group.js +43 -0
- package/dist/components/radio-group/radio-group.module.js +8 -0
- package/dist/components/select/select.js +75 -0
- package/dist/components/select/select.module.js +10 -0
- package/dist/components/separator/separator.js +14 -0
- package/dist/components/separator/separator.module.js +3 -0
- package/dist/components/sidebar/sidebar.js +31 -0
- package/dist/components/sidebar/sidebar.module.js +9 -0
- package/dist/components/slot/slot.js +39 -0
- package/dist/components/table/table.js +45 -0
- package/dist/components/table/table.module.js +10 -0
- package/dist/components/tabs/tabs.js +45 -0
- package/dist/components/tabs/tabs.module.js +8 -0
- package/dist/components/text/text.js +14 -0
- package/dist/components/text/text.module.js +3 -0
- package/dist/components/title/title.js +15 -0
- package/dist/components/title/title.module.js +3 -0
- package/dist/components/wizard/wizard.js +108 -0
- package/dist/components/wizard/wizard.module.js +8 -0
- package/dist/hooks/use-breadcrumb/use-breadcrumb.js +13 -0
- package/dist/hooks/use-disclosure/use-disclosure.js +20 -0
- package/dist/hooks/use-match-device/use-match-device.js +13 -0
- package/dist/hooks/use-match-resolution/use-match-resolution.js +53 -0
- package/dist/hooks/use-outside-alerter/use-outside-alerter.js +20 -0
- package/dist/hooks/use-pagination/use-pagination.js +31 -0
- package/dist/hooks/use-scroll-to/use-scroll-to.js +6 -0
- package/dist/hooks/use-visible/use-visible.js +13 -0
- package/dist/hooks/use-wizard/use-wizard.js +14 -0
- package/dist/index.d.ts +183 -297
- package/dist/index.js +40 -0
- package/dist/styles.css +2 -0
- package/package.json +20 -32
- package/LICENSE.md +0 -674
- package/dist/empreint.css +0 -2
- package/dist/empreint.js +0 -958
package/dist/index.d.ts
CHANGED
|
@@ -3,35 +3,24 @@ import { ElementType } from 'react';
|
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
4
|
import { JSX } from 'react/jsx-runtime';
|
|
5
5
|
import { JSXElementConstructor } from 'react';
|
|
6
|
-
import { PropsWithChildren } from 'react';
|
|
7
6
|
import { ReactElement } from 'react';
|
|
8
7
|
import { ReactNode } from 'react';
|
|
9
8
|
import { Ref } from 'react';
|
|
10
9
|
import { RefObject } from 'react';
|
|
10
|
+
import { SVGAttributes } from 'react';
|
|
11
11
|
|
|
12
12
|
declare type AnyProps = Record<string, unknown>;
|
|
13
13
|
|
|
14
|
-
export declare const Breadcrumb: {
|
|
15
|
-
({ children, className, ...rest }: ComponentProps<"nav">): JSX.Element;
|
|
16
|
-
Item: ({ children, current, className }: BreadcrumbItemProps) => JSX.Element;
|
|
17
|
-
Separator: ({ children, className }: BreadcrumbSeparatorProps) => JSX.Element;
|
|
18
|
-
};
|
|
14
|
+
export declare const Breadcrumb: ({ children, className, ...rest }: ComponentProps<"nav">) => JSX.Element;
|
|
19
15
|
|
|
20
|
-
export declare
|
|
21
|
-
label: string;
|
|
22
|
-
url: string;
|
|
23
|
-
};
|
|
16
|
+
export declare const BreadcrumbItem: ({ children, current, className, ...rest }: BreadcrumbItemProps) => JSX.Element;
|
|
24
17
|
|
|
25
|
-
export declare type BreadcrumbItemProps = {
|
|
18
|
+
export declare type BreadcrumbItemProps = HTMLAttributes<HTMLElement> & {
|
|
26
19
|
children: ReactElement;
|
|
27
20
|
current?: boolean;
|
|
28
|
-
className?: string;
|
|
29
21
|
};
|
|
30
22
|
|
|
31
|
-
export declare
|
|
32
|
-
children?: ReactNode;
|
|
33
|
-
className?: string;
|
|
34
|
-
};
|
|
23
|
+
export declare const BreadcrumbSeparator: ({ children, className, ...rest }: ComponentProps<"li">) => JSX.Element;
|
|
35
24
|
|
|
36
25
|
export declare type Breakpoints = {
|
|
37
26
|
desktop: string;
|
|
@@ -56,16 +45,17 @@ export declare type ButtonProps = ComponentProps<"button"> & {
|
|
|
56
45
|
size?: ButtonSize;
|
|
57
46
|
};
|
|
58
47
|
|
|
59
|
-
export declare type ButtonSize = "
|
|
48
|
+
export declare type ButtonSize = "1" | "2" | "3" | "4" | "5";
|
|
60
49
|
|
|
61
50
|
export declare type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
|
|
62
51
|
|
|
63
|
-
export declare const Card: {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
export declare const Card: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
53
|
+
|
|
54
|
+
export declare const CardBody: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
55
|
+
|
|
56
|
+
export declare const CardFooter: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
57
|
+
|
|
58
|
+
export declare const CardHeader: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
69
59
|
|
|
70
60
|
export declare const Checkbox: ({ children, size, className, ...rest }: CheckboxProps) => JSX.Element;
|
|
71
61
|
|
|
@@ -87,32 +77,18 @@ export declare type ChipProps = ComponentProps<"div"> & {
|
|
|
87
77
|
|
|
88
78
|
export declare type ChipSize = "sm" | "md" | "lg";
|
|
89
79
|
|
|
90
|
-
export declare const Collapsible: {
|
|
91
|
-
({ children, className }: CollapsibleProps): JSX.Element;
|
|
92
|
-
Trigger: ({ children, icon: Icon, className, }: CollapsibleTriggerProps) => JSX.Element;
|
|
93
|
-
Content: ({ children, className }: CollapsibleContentProps) => false | JSX.Element | undefined;
|
|
94
|
-
Item: ({ children, className }: CollapsibleItemProps) => JSX.Element;
|
|
95
|
-
};
|
|
80
|
+
export declare const Collapsible: ({ children, className, ...rest }: CollapsibleProps) => JSX.Element;
|
|
96
81
|
|
|
97
|
-
export declare
|
|
98
|
-
children: ReactNode;
|
|
99
|
-
className?: string;
|
|
100
|
-
};
|
|
82
|
+
export declare const CollapsibleContent: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
101
83
|
|
|
102
|
-
export declare
|
|
103
|
-
children: ReactNode;
|
|
104
|
-
className?: string;
|
|
105
|
-
};
|
|
84
|
+
export declare const CollapsibleItem: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
106
85
|
|
|
107
|
-
declare type CollapsibleProps =
|
|
108
|
-
children: ReactNode;
|
|
109
|
-
className?: string;
|
|
110
|
-
};
|
|
86
|
+
export declare type CollapsibleProps = ComponentProps<"div">;
|
|
111
87
|
|
|
112
|
-
export declare
|
|
113
|
-
|
|
88
|
+
export declare const CollapsibleTrigger: ({ children, icon: Icon, className, ...rest }: CollapsibleTriggerProps) => JSX.Element;
|
|
89
|
+
|
|
90
|
+
export declare type CollapsibleTriggerProps = ComponentProps<"button"> & {
|
|
114
91
|
icon?: ElementType;
|
|
115
|
-
className?: string;
|
|
116
92
|
};
|
|
117
93
|
|
|
118
94
|
export declare type Column = {
|
|
@@ -120,6 +96,17 @@ export declare type Column = {
|
|
|
120
96
|
label: string;
|
|
121
97
|
};
|
|
122
98
|
|
|
99
|
+
export declare const Container: ({ children, size, className, ...rest }: ContainerProps) => JSX.Element;
|
|
100
|
+
|
|
101
|
+
export declare type ContainerProps = ComponentProps<"div"> & {
|
|
102
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export declare type Crumb = {
|
|
106
|
+
label: string;
|
|
107
|
+
url: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
123
110
|
export declare const defaultBreakpoints: Breakpoints;
|
|
124
111
|
|
|
125
112
|
export declare type Device = {
|
|
@@ -129,72 +116,48 @@ export declare type Device = {
|
|
|
129
116
|
isDesktop: boolean;
|
|
130
117
|
};
|
|
131
118
|
|
|
132
|
-
export declare const DropdownMenu: {
|
|
133
|
-
({ children, className }: DropdownMenuProps): JSX.Element;
|
|
134
|
-
Trigger: ({ children, icon: Icon, className, }: DropdownMenuTrigger) => JSX.Element;
|
|
135
|
-
Content: ({ children, className }: DropdownMenuContent) => false | JSX.Element | undefined;
|
|
136
|
-
Item: ({ children, onClick, className }: DropdownMenuItemProps) => JSX.Element;
|
|
137
|
-
};
|
|
119
|
+
export declare const DropdownMenu: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
138
120
|
|
|
139
|
-
export declare
|
|
140
|
-
|
|
141
|
-
|
|
121
|
+
export declare const DropdownMenuContent: ({ children, className, ...rest }: ComponentProps<"ul">) => false | JSX.Element | undefined;
|
|
122
|
+
|
|
123
|
+
export declare const DropdownMenuIcon: ({ icon: Icon, className, ...rest }: DropdownMenuIconProps) => JSX.Element;
|
|
124
|
+
|
|
125
|
+
export declare type DropdownMenuIconProps = SVGAttributes<SVGElement> & {
|
|
126
|
+
icon?: ElementType;
|
|
142
127
|
};
|
|
143
128
|
|
|
144
|
-
export declare
|
|
145
|
-
|
|
129
|
+
export declare const DropdownMenuItem: ({ children, onClick, className, ...rest }: DropdownMenuItemProps) => JSX.Element;
|
|
130
|
+
|
|
131
|
+
export declare type DropdownMenuItemProps = Omit<ComponentProps<"button">, "onClick"> & {
|
|
146
132
|
onClick: () => void;
|
|
147
|
-
className?: string;
|
|
148
133
|
};
|
|
149
134
|
|
|
150
|
-
export declare
|
|
151
|
-
children: ReactNode;
|
|
152
|
-
className?: string;
|
|
153
|
-
};
|
|
135
|
+
export declare const DropdownMenuTrigger: ({ children, ...rest }: DropdownMenuTriggerProps) => JSX.Element;
|
|
154
136
|
|
|
155
|
-
export declare type
|
|
156
|
-
children:
|
|
157
|
-
icon?: ElementType;
|
|
158
|
-
className?: string;
|
|
137
|
+
export declare type DropdownMenuTriggerProps = HTMLAttributes<HTMLElement> & {
|
|
138
|
+
children: ReactElement;
|
|
159
139
|
};
|
|
160
140
|
|
|
161
|
-
export declare const Dropzone: {
|
|
162
|
-
({ children, onChange, className }: DropzoneProps): JSX.Element;
|
|
163
|
-
Label: ({ children, className }: DropzoneLabelProps) => JSX.Element;
|
|
164
|
-
Area: ({ children, className }: DropzoneAreaProps) => JSX.Element;
|
|
165
|
-
Empty: ({ children, className }: DropzoneEmptyProps) => JSX.Element | null;
|
|
166
|
-
Preview: ({ className }: DropzonePreviewProps) => JSX.Element | null;
|
|
167
|
-
Remove: ({ children, className }: DropzoneRemoveProps) => JSX.Element | null;
|
|
168
|
-
};
|
|
141
|
+
export declare const Dropzone: ({ children, onChange, className, ...rest }: DropzoneProps) => JSX.Element;
|
|
169
142
|
|
|
170
|
-
export declare
|
|
171
|
-
children: ReactNode;
|
|
172
|
-
className?: string;
|
|
173
|
-
};
|
|
143
|
+
export declare const DropzoneArea: ({ children, className, ...rest }: DropzoneAreaProps) => JSX.Element;
|
|
174
144
|
|
|
175
|
-
export declare type
|
|
176
|
-
children: ReactNode;
|
|
177
|
-
className?: string;
|
|
178
|
-
};
|
|
145
|
+
export declare type DropzoneAreaProps = Omit<ComponentProps<"button">, "onClick" | "onDrop" | "onDragOver" | "onDragLeave">;
|
|
179
146
|
|
|
180
|
-
export declare
|
|
181
|
-
children: ReactNode;
|
|
182
|
-
className?: string;
|
|
183
|
-
};
|
|
147
|
+
export declare const DropzoneEmpty: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element | null;
|
|
184
148
|
|
|
185
|
-
export declare
|
|
186
|
-
className?: string;
|
|
187
|
-
};
|
|
149
|
+
export declare const DropzoneLabel: ({ children, className, ...rest }: ComponentProps<"label">) => JSX.Element;
|
|
188
150
|
|
|
189
|
-
export declare
|
|
190
|
-
|
|
151
|
+
export declare const DropzonePreview: ({ className, ...rest }: ComponentProps<"div">) => JSX.Element | null;
|
|
152
|
+
|
|
153
|
+
export declare type DropzoneProps = Omit<ComponentProps<"div">, "onChange"> & {
|
|
191
154
|
onChange: (file: File | undefined) => void;
|
|
192
|
-
className?: string;
|
|
193
155
|
};
|
|
194
156
|
|
|
195
|
-
export declare
|
|
157
|
+
export declare const DropzoneRemove: ({ children, className, ...rest }: DropzoneRemoveProps) => JSX.Element | null;
|
|
158
|
+
|
|
159
|
+
export declare type DropzoneRemoveProps = HTMLAttributes<HTMLElement> & {
|
|
196
160
|
children: ReactElement;
|
|
197
|
-
className?: string;
|
|
198
161
|
};
|
|
199
162
|
|
|
200
163
|
export declare const Flex: ({ children, direction, justify, align, wrap, gap, inline, className, ...rest }: FlexProps) => JSX.Element;
|
|
@@ -204,31 +167,27 @@ export declare type FlexProps = ComponentProps<"div"> & {
|
|
|
204
167
|
justify?: "start" | "center" | "end" | "between" | "around" | "evenly" | "stretch";
|
|
205
168
|
align?: "start" | "center" | "end" | "stretch" | "baseline";
|
|
206
169
|
wrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
207
|
-
gap?: "
|
|
170
|
+
gap?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12";
|
|
208
171
|
inline?: boolean;
|
|
209
172
|
};
|
|
210
173
|
|
|
211
|
-
export declare const
|
|
212
|
-
({ children, status, className }: InputProps): JSX.Element;
|
|
213
|
-
Field: ({ className, ...rest }: ComponentProps<"input">) => JSX.Element;
|
|
214
|
-
Label: ({ children, className }: InputLabelProps) => JSX.Element;
|
|
215
|
-
Message: ({ children, className }: InputMessageProps) => JSX.Element;
|
|
216
|
-
};
|
|
174
|
+
export declare const Grid: ({ children, cols, gap, className, style, ...rest }: GridProps) => JSX.Element;
|
|
217
175
|
|
|
218
|
-
export declare type
|
|
219
|
-
|
|
220
|
-
|
|
176
|
+
export declare type GridProps = ComponentProps<"div"> & {
|
|
177
|
+
cols?: number | string;
|
|
178
|
+
gap?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
221
179
|
};
|
|
222
180
|
|
|
223
|
-
export declare
|
|
224
|
-
children: ReactNode;
|
|
225
|
-
className?: string;
|
|
226
|
-
};
|
|
181
|
+
export declare const Input: ({ children, status, className, ...rest }: InputProps) => JSX.Element;
|
|
227
182
|
|
|
228
|
-
export declare
|
|
229
|
-
|
|
183
|
+
export declare const InputField: ({ className, ...rest }: ComponentProps<"input">) => JSX.Element;
|
|
184
|
+
|
|
185
|
+
export declare const InputLabel: ({ children, className, ...rest }: ComponentProps<"label">) => JSX.Element;
|
|
186
|
+
|
|
187
|
+
export declare const InputMessage: ({ children, className, ...rest }: ComponentProps<"p">) => JSX.Element;
|
|
188
|
+
|
|
189
|
+
export declare type InputProps = ComponentProps<"div"> & {
|
|
230
190
|
status?: InputStatus;
|
|
231
|
-
className?: string;
|
|
232
191
|
};
|
|
233
192
|
|
|
234
193
|
export declare type InputStatus = "default" | "success" | "warning" | "error";
|
|
@@ -239,24 +198,16 @@ export declare type LanguageSelectorProps = {
|
|
|
239
198
|
languages: string[];
|
|
240
199
|
};
|
|
241
200
|
|
|
242
|
-
export declare const List: {
|
|
243
|
-
({ className, children }: ListProps): JSX.Element;
|
|
244
|
-
Item: ({ children, className }: ListItemProps) => JSX.Element;
|
|
245
|
-
};
|
|
201
|
+
export declare const List: ({ children, className, ...rest }: ComponentProps<"ul">) => JSX.Element;
|
|
246
202
|
|
|
247
|
-
export declare
|
|
248
|
-
children: ReactNode;
|
|
249
|
-
className?: string;
|
|
250
|
-
};
|
|
203
|
+
export declare const ListItem: ({ children, className, ...rest }: ComponentProps<"li">) => JSX.Element;
|
|
251
204
|
|
|
252
|
-
export declare
|
|
253
|
-
children: ReactNode;
|
|
254
|
-
className?: string;
|
|
255
|
-
};
|
|
205
|
+
export declare const Loader: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
256
206
|
|
|
257
|
-
export declare const
|
|
258
|
-
|
|
259
|
-
|
|
207
|
+
export declare const LoaderSpinner: ({ size, className, ...rest }: LoaderSpinnerProps) => JSX.Element;
|
|
208
|
+
|
|
209
|
+
export declare type LoaderSpinnerProps = ComponentProps<"svg"> & {
|
|
210
|
+
size?: "sm" | "md" | "lg";
|
|
260
211
|
};
|
|
261
212
|
|
|
262
213
|
export declare type MatchResolution = {
|
|
@@ -265,56 +216,28 @@ export declare type MatchResolution = {
|
|
|
265
216
|
match: (query: string) => boolean;
|
|
266
217
|
};
|
|
267
218
|
|
|
268
|
-
export declare const Modal: {
|
|
269
|
-
({ children, className }: ModalProps): JSX.Element;
|
|
270
|
-
Trigger: ({ children, className }: ModalTriggerProps) => JSX.Element;
|
|
271
|
-
Content: ({ children, className }: ModalContentProps) => JSX.Element | null;
|
|
272
|
-
Overlay: ({ className }: ModalOverlayProps) => false | JSX.Element | undefined;
|
|
273
|
-
Close: ({ children, className }: ModalCloseProps) => JSX.Element;
|
|
274
|
-
Body: ({ children, className }: ModalBodyProps) => JSX.Element;
|
|
275
|
-
Header: ({ children, className }: ModalHeaderProps) => JSX.Element;
|
|
276
|
-
Footer: ({ children, className }: ModalFooterProps) => JSX.Element;
|
|
277
|
-
};
|
|
219
|
+
export declare const Modal: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
278
220
|
|
|
279
|
-
export declare
|
|
280
|
-
children: ReactNode;
|
|
281
|
-
className?: string;
|
|
282
|
-
};
|
|
221
|
+
export declare const ModalBody: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
283
222
|
|
|
284
|
-
export declare
|
|
223
|
+
export declare const ModalClose: ({ children, className, ...rest }: ModalCloseProps) => JSX.Element;
|
|
224
|
+
|
|
225
|
+
export declare type ModalCloseProps = HTMLAttributes<HTMLElement> & {
|
|
285
226
|
children: ReactElement;
|
|
286
|
-
className?: string;
|
|
287
227
|
};
|
|
288
228
|
|
|
289
|
-
export declare
|
|
290
|
-
children: ReactNode;
|
|
291
|
-
className?: string;
|
|
292
|
-
};
|
|
229
|
+
export declare const ModalContent: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element | null;
|
|
293
230
|
|
|
294
|
-
export declare
|
|
295
|
-
children: ReactNode;
|
|
296
|
-
className?: string;
|
|
297
|
-
};
|
|
231
|
+
export declare const ModalFooter: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
298
232
|
|
|
299
|
-
export declare
|
|
300
|
-
children: ReactNode;
|
|
301
|
-
className?: string;
|
|
302
|
-
};
|
|
233
|
+
export declare const ModalHeader: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
303
234
|
|
|
304
|
-
export declare
|
|
305
|
-
className?: string;
|
|
306
|
-
};
|
|
235
|
+
export declare const ModalOverlay: ({ className, ...rest }: ComponentProps<"div">) => false | JSX.Element | undefined;
|
|
307
236
|
|
|
308
|
-
export declare
|
|
309
|
-
children: ReactNode;
|
|
310
|
-
className?: string;
|
|
311
|
-
};
|
|
312
|
-
|
|
313
|
-
export declare const ModalTrigger: ({ children, className }: ModalTriggerProps) => JSX.Element;
|
|
237
|
+
export declare const ModalTrigger: ({ children, className, ...rest }: ModalTriggerProps) => JSX.Element;
|
|
314
238
|
|
|
315
|
-
export declare type ModalTriggerProps = {
|
|
239
|
+
export declare type ModalTriggerProps = HTMLAttributes<HTMLElement> & {
|
|
316
240
|
children: ReactElement;
|
|
317
|
-
className?: string;
|
|
318
241
|
};
|
|
319
242
|
|
|
320
243
|
export declare type ObjectLiteral<T = Primitive> = {
|
|
@@ -332,20 +255,10 @@ export declare type OutsideAlerter = {
|
|
|
332
255
|
onReset: () => void;
|
|
333
256
|
};
|
|
334
257
|
|
|
335
|
-
export declare const Pagination: {
|
|
336
|
-
({ children, className, ...rest }: PaginationProps): JSX.Element;
|
|
337
|
-
First: ({ children, className }: PaginationButtonProps) => JSX.Element | null;
|
|
338
|
-
Previous: ({ children, className }: PaginationButtonProps) => JSX.Element | null;
|
|
339
|
-
Items: ({ className }: {
|
|
340
|
-
className?: string;
|
|
341
|
-
}) => JSX.Element[] | undefined;
|
|
342
|
-
Next: ({ children, className }: PaginationButtonProps) => JSX.Element | null;
|
|
343
|
-
Last: ({ children, className }: PaginationButtonProps) => JSX.Element | null;
|
|
344
|
-
};
|
|
258
|
+
export declare const Pagination: ({ children, className, page, totalRecords, maxRecordsPerPage, itemNeighbours, minItems, onChange, ...rest }: PaginationProps) => JSX.Element;
|
|
345
259
|
|
|
346
|
-
export declare type PaginationButtonProps = {
|
|
260
|
+
export declare type PaginationButtonProps = Omit<ComponentProps<"button">, "onClick"> & {
|
|
347
261
|
children: ReactElement;
|
|
348
|
-
className?: string;
|
|
349
262
|
};
|
|
350
263
|
|
|
351
264
|
export declare type PaginationData = {
|
|
@@ -360,49 +273,43 @@ export declare type PaginationData = {
|
|
|
360
273
|
goToLast: () => void;
|
|
361
274
|
};
|
|
362
275
|
|
|
363
|
-
export declare
|
|
364
|
-
children: ReactNode;
|
|
365
|
-
className?: string;
|
|
366
|
-
};
|
|
276
|
+
export declare const PaginationFirst: ({ children, className, ...rest }: PaginationButtonProps) => JSX.Element | null;
|
|
367
277
|
|
|
368
|
-
export declare const
|
|
369
|
-
({ children }: PopoverProps): JSX.Element;
|
|
370
|
-
Trigger: ({ children }: PopoverTriggerProps) => JSX.Element;
|
|
371
|
-
Content: ({ children, className }: PopoverContentProps) => JSX.Element | null;
|
|
372
|
-
};
|
|
278
|
+
export declare const PaginationItems: ({ className, ...rest }: Omit<ComponentProps<"button">, "onClick" | "children" | "key">) => JSX.Element[] | undefined;
|
|
373
279
|
|
|
374
|
-
declare
|
|
375
|
-
children: ReactNode;
|
|
376
|
-
className?: string;
|
|
377
|
-
};
|
|
280
|
+
export declare const PaginationLast: ({ children, className, ...rest }: PaginationButtonProps) => JSX.Element | null;
|
|
378
281
|
|
|
379
|
-
export declare
|
|
380
|
-
|
|
381
|
-
};
|
|
282
|
+
export declare const PaginationNext: ({ children, className, ...rest }: PaginationButtonProps) => JSX.Element | null;
|
|
283
|
+
|
|
284
|
+
export declare const PaginationPrevious: ({ children, className, ...rest }: PaginationButtonProps) => JSX.Element | null;
|
|
285
|
+
|
|
286
|
+
export declare type PaginationProps = Omit<ComponentProps<"nav">, "onChange"> & usePaginationProps;
|
|
287
|
+
|
|
288
|
+
export declare const Popover: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
382
289
|
|
|
383
|
-
declare
|
|
290
|
+
export declare const PopoverContent: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element | null;
|
|
291
|
+
|
|
292
|
+
export declare const PopoverTrigger: ({ children, className, ...rest }: PopoverTriggerProps) => JSX.Element;
|
|
293
|
+
|
|
294
|
+
export declare type PopoverTriggerProps = HTMLAttributes<HTMLElement> & {
|
|
384
295
|
children: ReactElement;
|
|
385
296
|
};
|
|
386
297
|
|
|
387
298
|
export declare type Primitive = string | number | boolean | undefined | null;
|
|
388
299
|
|
|
389
|
-
export declare const RadioGroup: {
|
|
390
|
-
|
|
391
|
-
|
|
300
|
+
export declare const RadioGroup: ({ children, onChange, defaultValue, orientation, className, ...rest }: RadioGroupProps) => JSX.Element;
|
|
301
|
+
|
|
302
|
+
export declare const RadioGroupItem: ({ children, value, className, ...rest }: RadioGroupItemProps) => JSX.Element;
|
|
303
|
+
|
|
304
|
+
export declare type RadioGroupItemProps = Omit<ComponentProps<"input">, "type" | "name" | "checked" | "onChange"> & {
|
|
305
|
+
value: string;
|
|
392
306
|
};
|
|
393
307
|
|
|
394
|
-
declare type RadioGroupProps = {
|
|
395
|
-
children: ReactNode;
|
|
308
|
+
export declare type RadioGroupProps = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
|
|
396
309
|
defaultValue: string;
|
|
397
310
|
value?: string;
|
|
311
|
+
orientation?: "horizontal" | "vertical";
|
|
398
312
|
onChange?: (value: string) => void;
|
|
399
|
-
className?: string;
|
|
400
|
-
};
|
|
401
|
-
|
|
402
|
-
export declare type RadioItemProps = Omit<ComponentProps<"input">, "type" | "name" | "checked" | "onChange"> & {
|
|
403
|
-
children: ReactNode;
|
|
404
|
-
value: string;
|
|
405
|
-
className?: string;
|
|
406
313
|
};
|
|
407
314
|
|
|
408
315
|
export declare type Resolution = {
|
|
@@ -425,69 +332,47 @@ export declare type ScrollEvents = {
|
|
|
425
332
|
scrollToTop: () => void;
|
|
426
333
|
};
|
|
427
334
|
|
|
428
|
-
export declare const Select: {
|
|
429
|
-
({ children, defaultValue, onChange, className }: SelectProps): JSX.Element;
|
|
430
|
-
Trigger: ({ icon: Icon, className }: SelectTriggerProps) => JSX.Element;
|
|
431
|
-
Content: ({ children, className }: SelectContentProps) => JSX.Element;
|
|
432
|
-
Item: ({ children, value, className }: SelectItemProps) => JSX.Element;
|
|
433
|
-
};
|
|
335
|
+
export declare const Select: ({ children, defaultValue, onChange, className, ...rest }: SelectProps) => JSX.Element;
|
|
434
336
|
|
|
435
|
-
export declare
|
|
436
|
-
children: ReactNode;
|
|
437
|
-
className?: string;
|
|
438
|
-
};
|
|
337
|
+
export declare const SelectContent: ({ children, className, ...rest }: ComponentProps<"ul">) => JSX.Element;
|
|
439
338
|
|
|
440
|
-
export declare
|
|
441
|
-
|
|
339
|
+
export declare const SelectItem: ({ children, value, className, ...rest }: SelectItemProps) => JSX.Element;
|
|
340
|
+
|
|
341
|
+
export declare type SelectItemProps = ComponentProps<"li"> & {
|
|
442
342
|
value: string;
|
|
443
|
-
className?: string;
|
|
444
343
|
};
|
|
445
344
|
|
|
446
|
-
export declare type SelectProps = {
|
|
447
|
-
children: ReactNode;
|
|
345
|
+
export declare type SelectProps = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
|
|
448
346
|
defaultValue: string;
|
|
449
347
|
onChange?: (option: Option_2) => void;
|
|
450
|
-
className?: string;
|
|
451
348
|
};
|
|
452
349
|
|
|
453
|
-
export declare
|
|
350
|
+
export declare const SelectTrigger: ({ icon: Icon, className, ...rest }: SelectTriggerProps) => JSX.Element;
|
|
351
|
+
|
|
352
|
+
export declare type SelectTriggerProps = Omit<ComponentProps<"button">, "onClick"> & {
|
|
454
353
|
icon?: ElementType;
|
|
455
|
-
className?: string;
|
|
456
354
|
};
|
|
457
355
|
|
|
458
|
-
export declare const
|
|
459
|
-
({ children, className }: SidebarProps): JSX.Element;
|
|
460
|
-
Header: ({ children, className }: SidebarHeaderProps) => JSX.Element;
|
|
461
|
-
Group: ({ children, className }: SidebarGroupProps) => JSX.Element;
|
|
462
|
-
Link: ({ children, isActive, className }: SidebarLinkProps) => JSX.Element;
|
|
463
|
-
Item: ({ children, onClick, className }: SidebarItemProps) => JSX.Element;
|
|
464
|
-
};
|
|
356
|
+
export declare const Separator: ({ children, orientation, size, className, ...rest }: SeparatorProps) => JSX.Element;
|
|
465
357
|
|
|
466
|
-
export declare type
|
|
467
|
-
|
|
468
|
-
|
|
358
|
+
export declare type SeparatorProps = ComponentProps<"div"> & {
|
|
359
|
+
orientation?: "horizontal" | "vertical";
|
|
360
|
+
size?: "sm" | "md" | "lg";
|
|
469
361
|
};
|
|
470
362
|
|
|
471
|
-
export declare
|
|
472
|
-
children: ReactNode;
|
|
473
|
-
className?: string;
|
|
474
|
-
};
|
|
363
|
+
export declare const Sidebar: ({ children, className, ...rest }: ComponentProps<"nav">) => JSX.Element;
|
|
475
364
|
|
|
476
|
-
export declare
|
|
477
|
-
children: ReactNode;
|
|
478
|
-
onClick?: () => void;
|
|
479
|
-
className?: string;
|
|
480
|
-
};
|
|
365
|
+
export declare const SidebarGroup: ({ children, className, ...rest }: ComponentProps<"ul">) => JSX.Element;
|
|
481
366
|
|
|
482
|
-
export declare
|
|
367
|
+
export declare const SidebarHeader: ({ children, className, ...rest }: ComponentProps<"header">) => JSX.Element;
|
|
368
|
+
|
|
369
|
+
export declare const SidebarItem: ({ children, className, ...rest }: ComponentProps<"button">) => JSX.Element;
|
|
370
|
+
|
|
371
|
+
export declare const SidebarLink: ({ children, isActive, className, ...rest }: SidebarLinkProps) => JSX.Element;
|
|
372
|
+
|
|
373
|
+
export declare type SidebarLinkProps = HTMLAttributes<HTMLElement> & {
|
|
483
374
|
children: ReactElement;
|
|
484
375
|
isActive?: boolean;
|
|
485
|
-
className?: string;
|
|
486
|
-
};
|
|
487
|
-
|
|
488
|
-
export declare type SidebarProps = {
|
|
489
|
-
children: ReactNode;
|
|
490
|
-
className?: string;
|
|
491
376
|
};
|
|
492
377
|
|
|
493
378
|
export declare const Slot: ({ children, ref, ...slotProps }: SlotProps) => ReactElement<AnyProps, string | JSXElementConstructor<any>> | null;
|
|
@@ -497,23 +382,14 @@ export declare type SlotProps = HTMLAttributes<HTMLElement> & {
|
|
|
497
382
|
ref?: Ref<HTMLElement>;
|
|
498
383
|
};
|
|
499
384
|
|
|
500
|
-
export declare type SpinnerProps = ComponentProps<"svg"> & {
|
|
501
|
-
size?: "sm" | "md" | "lg";
|
|
502
|
-
};
|
|
503
|
-
|
|
504
385
|
export declare type Step = {
|
|
505
386
|
name: string;
|
|
506
387
|
title: string;
|
|
507
388
|
};
|
|
508
389
|
|
|
509
|
-
export declare const Table: {
|
|
510
|
-
<T extends ObjectLiteral>({ className, columns, records, uniqueKey, renderHeader, renderFooter, renderColumnsCell, renderRecordsCell, renderRecordsEmptyCell, renderNoRecords, }: TableProps<T>): JSX.Element;
|
|
511
|
-
Th: ({ children }: PropsWithChildren) => JSX.Element;
|
|
512
|
-
Tr: ({ children }: PropsWithChildren) => JSX.Element;
|
|
513
|
-
Td: ({ children }: PropsWithChildren) => JSX.Element;
|
|
514
|
-
};
|
|
390
|
+
export declare const Table: <T extends ObjectLiteral>({ className, columns, records, uniqueKey, renderHeader, renderFooter, renderColumnsCell, renderRecordsCell, renderRecordsEmptyCell, renderNoRecords, ...rest }: TableProps<T>) => JSX.Element;
|
|
515
391
|
|
|
516
|
-
export declare type TableProps<T extends ObjectLiteral> = {
|
|
392
|
+
export declare type TableProps<T extends ObjectLiteral> = Omit<ComponentProps<"div">, "children"> & {
|
|
517
393
|
columns: Column[];
|
|
518
394
|
records: T[];
|
|
519
395
|
uniqueKey?: string;
|
|
@@ -523,7 +399,33 @@ export declare type TableProps<T extends ObjectLiteral> = {
|
|
|
523
399
|
renderRecordsCell?: (cell: Primitive, key: string) => ReactNode;
|
|
524
400
|
renderRecordsEmptyCell?: (key: string) => ReactNode;
|
|
525
401
|
renderNoRecords?: () => ReactNode;
|
|
526
|
-
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
export declare const TableTd: ({ children, className, ...rest }: ComponentProps<"td">) => JSX.Element;
|
|
405
|
+
|
|
406
|
+
export declare const TableTh: ({ children, className, ...rest }: ComponentProps<"th">) => JSX.Element;
|
|
407
|
+
|
|
408
|
+
export declare const TableTr: ({ children, className, ...rest }: ComponentProps<"tr">) => JSX.Element;
|
|
409
|
+
|
|
410
|
+
export declare const Tabs: ({ children, defaultValue, onChange, className, ...rest }: TabsProps) => JSX.Element;
|
|
411
|
+
|
|
412
|
+
export declare const TabsContent: ({ children, value, className, ...rest }: TabsContentProps) => JSX.Element | null;
|
|
413
|
+
|
|
414
|
+
export declare type TabsContentProps = ComponentProps<"div"> & {
|
|
415
|
+
value: string;
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
export declare const TabsItem: ({ children, value, className, ...rest }: TabsItemProps) => JSX.Element;
|
|
419
|
+
|
|
420
|
+
export declare type TabsItemProps = ComponentProps<"li"> & {
|
|
421
|
+
value: string;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export declare const TabsItems: ({ children, className, ...rest }: ComponentProps<"ul">) => JSX.Element;
|
|
425
|
+
|
|
426
|
+
export declare type TabsProps = Omit<ComponentProps<"div">, "onChange" | "defaultValue"> & {
|
|
427
|
+
defaultValue: string;
|
|
428
|
+
onChange?: (value: string) => void;
|
|
527
429
|
};
|
|
528
430
|
|
|
529
431
|
declare const Text_2: ({ children, as: TextAs, size, align, weight, className, ...rest }: TextProps) => JSX.Element;
|
|
@@ -531,7 +433,7 @@ export { Text_2 as Text }
|
|
|
531
433
|
|
|
532
434
|
export declare type TextProps = HTMLAttributes<HTMLElement> & {
|
|
533
435
|
as?: "span" | "p";
|
|
534
|
-
size?: "
|
|
436
|
+
size?: "1" | "2" | "3" | "4" | "5" | "6";
|
|
535
437
|
align?: "start" | "center" | "end" | "justify";
|
|
536
438
|
weight?: "normal" | "medium" | "semibold" | "bold";
|
|
537
439
|
};
|
|
@@ -540,12 +442,12 @@ export declare const Title: ({ children, as: TitleAs, size, align, weight, class
|
|
|
540
442
|
|
|
541
443
|
export declare type TitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
542
444
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
543
|
-
size?: "
|
|
445
|
+
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10";
|
|
544
446
|
align?: "start" | "center" | "end";
|
|
545
447
|
weight?: "normal" | "medium" | "semibold" | "bold";
|
|
546
448
|
};
|
|
547
449
|
|
|
548
|
-
export declare const useBreadcrumb: ({ url, mapping, }: useBreadcrumbProps) =>
|
|
450
|
+
export declare const useBreadcrumb: ({ url, mapping, }: useBreadcrumbProps) => Crumb[];
|
|
549
451
|
|
|
550
452
|
export declare type useBreadcrumbProps = {
|
|
551
453
|
url?: URL;
|
|
@@ -572,7 +474,7 @@ export declare const useMatchResolution: (UA: string, breakpoints?: Breakpoints)
|
|
|
572
474
|
|
|
573
475
|
export declare const useOutsideAlerter: (ref: RefObject<HTMLElement | null>) => OutsideAlerter;
|
|
574
476
|
|
|
575
|
-
export declare const usePagination: ({ page, totalRecords, maxRecordsPerPage, itemNeighbours, minItems, }: usePaginationProps) => {
|
|
477
|
+
export declare const usePagination: ({ page, totalRecords, maxRecordsPerPage, itemNeighbours, minItems, onChange, }: usePaginationProps) => {
|
|
576
478
|
currentPage: number;
|
|
577
479
|
total: number;
|
|
578
480
|
items: number[];
|
|
@@ -591,6 +493,7 @@ export declare type usePaginationProps = {
|
|
|
591
493
|
maxRecordsPerPage?: number;
|
|
592
494
|
itemNeighbours?: number;
|
|
593
495
|
minItems?: number;
|
|
496
|
+
onChange?: (page: number) => void;
|
|
594
497
|
};
|
|
595
498
|
|
|
596
499
|
export declare const useScrollTo: (target: RefObject<HTMLElement | null>) => ScrollEvents;
|
|
@@ -610,53 +513,36 @@ export declare type useWizardOptions = {
|
|
|
610
513
|
step?: number;
|
|
611
514
|
};
|
|
612
515
|
|
|
613
|
-
export declare const Wizard: {
|
|
614
|
-
({ children, initialStep, className }: WizardProps): JSX.Element;
|
|
615
|
-
Header: ({ children, className }: WizardHeaderProps) => JSX.Element;
|
|
616
|
-
Title: ({ className }: WizardTitleProps) => JSX.Element;
|
|
617
|
-
Indicator: () => JSX.Element | null;
|
|
618
|
-
Step: ({ children, name, title, className }: WizardStepProps) => JSX.Element | null;
|
|
619
|
-
Footer: ({ children, className }: WizardFooterProps) => JSX.Element;
|
|
620
|
-
Next: ({ children, onClick, className }: WizardButtonProps) => JSX.Element | null;
|
|
621
|
-
Previous: ({ children, onClick, className }: WizardButtonProps) => JSX.Element | null;
|
|
622
|
-
Finalize: ({ children, onClick, className }: WizardButtonProps) => JSX.Element | null;
|
|
623
|
-
};
|
|
516
|
+
export declare const Wizard: ({ children, initialStep, className, ...rest }: WizardProps) => JSX.Element;
|
|
624
517
|
|
|
625
|
-
export declare type WizardButtonProps = {
|
|
518
|
+
export declare type WizardButtonProps = Omit<HTMLAttributes<HTMLElement>, "onClick"> & {
|
|
626
519
|
children: ReactElement;
|
|
627
520
|
onClick?: () => void;
|
|
628
|
-
className?: string;
|
|
629
521
|
};
|
|
630
522
|
|
|
631
|
-
export declare
|
|
632
|
-
children: ReactNode;
|
|
633
|
-
className?: string;
|
|
634
|
-
};
|
|
523
|
+
export declare const WizardFinalize: ({ children, onClick, className, ...rest }: WizardButtonProps) => JSX.Element | null;
|
|
635
524
|
|
|
636
|
-
export declare
|
|
637
|
-
children: ReactNode;
|
|
638
|
-
className?: string;
|
|
639
|
-
};
|
|
525
|
+
export declare const WizardFooter: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
640
526
|
|
|
641
|
-
export declare
|
|
642
|
-
className?: string;
|
|
643
|
-
};
|
|
527
|
+
export declare const WizardHeader: ({ children, className, ...rest }: ComponentProps<"div">) => JSX.Element;
|
|
644
528
|
|
|
645
|
-
export declare
|
|
646
|
-
|
|
529
|
+
export declare const WizardIndicator: ({ className, ...rest }: ComponentProps<"span">) => JSX.Element | null;
|
|
530
|
+
|
|
531
|
+
export declare const WizardNext: ({ children, onClick, className, ...rest }: WizardButtonProps) => JSX.Element | null;
|
|
532
|
+
|
|
533
|
+
export declare const WizardPrevious: ({ children, onClick, className, ...rest }: WizardButtonProps) => JSX.Element | null;
|
|
534
|
+
|
|
535
|
+
export declare type WizardProps = ComponentProps<"div"> & {
|
|
647
536
|
initialStep?: number;
|
|
648
|
-
className?: string;
|
|
649
537
|
};
|
|
650
538
|
|
|
651
|
-
export declare
|
|
652
|
-
|
|
539
|
+
export declare const WizardStep: ({ children, name, title, className, ...rest }: WizardStepProps) => JSX.Element | null;
|
|
540
|
+
|
|
541
|
+
export declare type WizardStepProps = ComponentProps<"div"> & {
|
|
653
542
|
name: string;
|
|
654
543
|
title: string;
|
|
655
|
-
className?: string;
|
|
656
544
|
};
|
|
657
545
|
|
|
658
|
-
export declare
|
|
659
|
-
className?: string;
|
|
660
|
-
};
|
|
546
|
+
export declare const WizardTitle: ({ className, ...rest }: ComponentProps<typeof Title>) => JSX.Element;
|
|
661
547
|
|
|
662
548
|
export { }
|