@groupeactual/ui-kit 1.7.9 → 1.8.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/cjs/index.js +9 -9
- package/dist/es/index.d.ts +68 -56
- package/dist/es/index.js +8 -8
- package/dist/es/src/components/Modal/Drawer/Drawer.d.ts +2 -2
- package/dist/es/src/components/Modal/modal.interface.d.ts +4 -1
- package/dist/es/src/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +11 -0
- package/dist/es/src/components/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/es/src/components/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/components/Modal/Drawer/Drawer.tsx +21 -14
- package/src/components/Modal/modal.interface.ts +4 -1
- package/src/components/ToggleButtonGroup/ToggleButtonGroup.tsx +31 -0
- package/src/components/ToggleButtonGroup/index.ts +1 -0
- package/src/components/index.ts +1 -0
package/dist/es/index.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import React, { ReactNode, FocusEventHandler, BaseSyntheticEvent, MouseEventHandler, MouseEvent, PropsWithChildren } from 'react';
|
|
2
|
-
import { TypographyProps, LinkProps, ButtonProps, TextFieldProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, BoxProps, ChipProps, TooltipProps, AutocompleteProps, MenuItemProps, AlertProps, SxProps, Theme as Theme$1, CardProps, SwitchProps, IconButtonProps } from '@mui/material';
|
|
2
|
+
import { TypographyProps, LinkProps, ButtonProps, TextFieldProps, SelectProps, CheckboxProps, RadioGroupProps, AccordionProps, BreadcrumbsProps, BoxProps, ChipProps, TooltipProps, AutocompleteProps, MenuItemProps, AlertProps, SxProps, Theme as Theme$1, CardProps, SwitchProps, IconButtonProps, ToggleButtonGroupProps } from '@mui/material';
|
|
3
3
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
4
4
|
import { CustomContentProps } from 'notistack';
|
|
5
5
|
import { ModalProps as ModalProps$1 } from '@mui/material/Modal';
|
|
6
6
|
import { DatePickerProps } from '@mui/x-date-pickers-pro';
|
|
7
7
|
import { Dayjs } from 'dayjs';
|
|
8
8
|
|
|
9
|
-
interface Props$
|
|
9
|
+
interface Props$r extends Omit<TypographyProps, 'variant'> {
|
|
10
10
|
variant?: 'bigNumber' | 'body1' | 'body1Regular' | 'body1Medium' | 'body1Bold' | 'body2' | 'body2Regular' | 'body2Medium' | 'body2Bold' | 'caption' | 'buttonNotif' | 'header1' | 'header2' | 'header3' | 'header4' | 'h1' | 'h2' | 'h3' | 'h4' | 'link1' | 'link2';
|
|
11
11
|
component?: any;
|
|
12
12
|
}
|
|
13
|
-
declare const Text: (props: Props$
|
|
13
|
+
declare const Text: (props: Props$r) => React.JSX.Element;
|
|
14
14
|
|
|
15
|
-
interface Props$
|
|
15
|
+
interface Props$q extends Omit<LinkProps, 'variant'> {
|
|
16
16
|
variant?: 'link1' | 'link2';
|
|
17
17
|
component?: any;
|
|
18
18
|
}
|
|
19
|
-
declare const Link: (props: Props$
|
|
19
|
+
declare const Link: (props: Props$q) => React.JSX.Element;
|
|
20
20
|
|
|
21
|
-
interface Props$
|
|
21
|
+
interface Props$p extends Omit<ButtonProps, 'variant' | 'children'> {
|
|
22
22
|
variant?: 'primary' | 'secondary';
|
|
23
23
|
children?: ReactNode;
|
|
24
24
|
}
|
|
25
|
-
declare const Button: ({ variant, children, ...props }: Props$
|
|
25
|
+
declare const Button: ({ variant, children, ...props }: Props$p) => React.JSX.Element;
|
|
26
26
|
|
|
27
|
-
interface Props$
|
|
27
|
+
interface Props$o extends Omit<TextFieldProps, 'error'> {
|
|
28
28
|
error?: string;
|
|
29
29
|
label?: string;
|
|
30
30
|
value?: string | unknown;
|
|
@@ -40,9 +40,9 @@ interface Props$n extends Omit<TextFieldProps, 'error'> {
|
|
|
40
40
|
onBlur?: FocusEventHandler<unknown>;
|
|
41
41
|
onChange?: (_e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
42
42
|
}
|
|
43
|
-
declare const TextField: React.ForwardRefExoticComponent<Props$
|
|
43
|
+
declare const TextField: React.ForwardRefExoticComponent<Props$o & React.RefAttributes<HTMLDivElement>>;
|
|
44
44
|
|
|
45
|
-
interface Props$
|
|
45
|
+
interface Props$n<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color' | 'error'> {
|
|
46
46
|
options: T[];
|
|
47
47
|
placeholder?: string;
|
|
48
48
|
disabled?: boolean;
|
|
@@ -59,9 +59,9 @@ interface Props$m<T> extends Omit<SelectProps<T>, 'value' | 'onChange' | 'color'
|
|
|
59
59
|
onBlur?: (_event: BaseSyntheticEvent) => void;
|
|
60
60
|
onClick?: (_event: BaseSyntheticEvent) => void;
|
|
61
61
|
}
|
|
62
|
-
declare const Select: <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, popupIcon, onChange, getRenderValue, ...props }: Props$
|
|
62
|
+
declare const Select: <T>({ value, label, options, color, error, placeholder, helperText, width, disabled, popupIcon, onChange, getRenderValue, ...props }: Props$n<T>) => React.JSX.Element;
|
|
63
63
|
|
|
64
|
-
interface Props$
|
|
64
|
+
interface Props$m<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'value' | 'color' | 'error'> {
|
|
65
65
|
label: string;
|
|
66
66
|
options: T[] | [];
|
|
67
67
|
helperText?: string;
|
|
@@ -77,9 +77,9 @@ interface Props$l<T> extends Omit<SelectProps<T[]>, 'value' | 'onChange' | 'valu
|
|
|
77
77
|
getRenderValue: (_option: T) => string;
|
|
78
78
|
getKeyValue: (_option: T) => string;
|
|
79
79
|
}
|
|
80
|
-
declare const MultiSelect: <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props$
|
|
80
|
+
declare const MultiSelect: <T>({ value, label, options, color, error, placeholder, helperText, width, getRenderValue, getKeyValue, onChange, disabled, ...props }: Props$m<T>) => React.JSX.Element;
|
|
81
81
|
|
|
82
|
-
interface Props$
|
|
82
|
+
interface Props$l {
|
|
83
83
|
name: string;
|
|
84
84
|
value: boolean;
|
|
85
85
|
label: ReactNode;
|
|
@@ -89,7 +89,7 @@ interface Props$k {
|
|
|
89
89
|
infoBubbleContent?: string;
|
|
90
90
|
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
91
91
|
}
|
|
92
|
-
declare const Checkbox: ({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props$
|
|
92
|
+
declare const Checkbox: ({ name, value, error, helperText, label, infoBubbleContent, infoBubblePosition, onChange, disabled, ...props }: CheckboxProps & Props$l) => React.JSX.Element;
|
|
93
93
|
|
|
94
94
|
interface CheckboxItemType {
|
|
95
95
|
label: ReactNode;
|
|
@@ -115,7 +115,7 @@ interface ItemType<T> {
|
|
|
115
115
|
infoBubbleContent?: string;
|
|
116
116
|
infoBubblePosition?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
117
117
|
}
|
|
118
|
-
interface Props$
|
|
118
|
+
interface Props$k<T> extends Omit<RadioGroupProps, 'onChange'> {
|
|
119
119
|
label: string;
|
|
120
120
|
options: ItemType<T>[];
|
|
121
121
|
onChange: (_value: T) => void;
|
|
@@ -123,9 +123,9 @@ interface Props$j<T> extends Omit<RadioGroupProps, 'onChange'> {
|
|
|
123
123
|
helperText?: string;
|
|
124
124
|
disabled?: boolean;
|
|
125
125
|
}
|
|
126
|
-
declare const RadioGroup: <T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props$
|
|
126
|
+
declare const RadioGroup: <T>({ options, value, label, onChange, helperText, disabled, error, ...props }: Props$k<T>) => React.JSX.Element;
|
|
127
127
|
|
|
128
|
-
interface Props$
|
|
128
|
+
interface Props$j extends AccordionProps {
|
|
129
129
|
title?: string;
|
|
130
130
|
summaryHeight?: number;
|
|
131
131
|
expanded?: boolean;
|
|
@@ -133,17 +133,17 @@ interface Props$i extends AccordionProps {
|
|
|
133
133
|
disabled?: boolean;
|
|
134
134
|
onClick?: MouseEventHandler;
|
|
135
135
|
}
|
|
136
|
-
declare const Accordion: ({ title, summaryHeight, expanded, onClick, children, ...props }: Props$
|
|
136
|
+
declare const Accordion: ({ title, summaryHeight, expanded, onClick, children, ...props }: Props$j) => React.JSX.Element;
|
|
137
137
|
|
|
138
138
|
interface LinkItem {
|
|
139
139
|
link: string;
|
|
140
140
|
title: string;
|
|
141
141
|
}
|
|
142
|
-
interface Props$
|
|
142
|
+
interface Props$i extends BreadcrumbsProps {
|
|
143
143
|
PageName: string;
|
|
144
144
|
links?: LinkItem[];
|
|
145
145
|
}
|
|
146
|
-
declare const Breadcrumbs: ({ PageName, links, ...props }: Props$
|
|
146
|
+
declare const Breadcrumbs: ({ PageName, links, ...props }: Props$i) => React.JSX.Element;
|
|
147
147
|
|
|
148
148
|
declare const FontSizes: {
|
|
149
149
|
xs: number;
|
|
@@ -154,15 +154,15 @@ declare const FontSizes: {
|
|
|
154
154
|
xxl: number;
|
|
155
155
|
xxxl: number;
|
|
156
156
|
};
|
|
157
|
-
interface Props$
|
|
157
|
+
interface Props$h {
|
|
158
158
|
variant?: 'square' | 'none';
|
|
159
159
|
icon: IconDefinition;
|
|
160
160
|
color?: string;
|
|
161
161
|
size?: number | keyof typeof FontSizes;
|
|
162
162
|
}
|
|
163
|
-
declare const IconProvider: ({ variant, icon, color, size, sx, ...props }: Props$
|
|
163
|
+
declare const IconProvider: ({ variant, icon, color, size, sx, ...props }: Props$h & BoxProps) => JSX.Element;
|
|
164
164
|
|
|
165
|
-
interface Props$
|
|
165
|
+
interface Props$g {
|
|
166
166
|
totalString: string;
|
|
167
167
|
totalPerPageString: string;
|
|
168
168
|
totalRows: number;
|
|
@@ -173,9 +173,9 @@ interface Props$f {
|
|
|
173
173
|
setPage?: (_page: number) => void;
|
|
174
174
|
setLimit?: (_limit: number) => void;
|
|
175
175
|
}
|
|
176
|
-
declare const Pagination: ({ totalString, totalPerPageString, hideTotal, limitsPerPage, page, totalRows, limit, setLimit, setPage, }: Props$
|
|
176
|
+
declare const Pagination: ({ totalString, totalPerPageString, hideTotal, limitsPerPage, page, totalRows, limit, setLimit, setPage, }: Props$g) => React.JSX.Element;
|
|
177
177
|
|
|
178
|
-
interface Props$
|
|
178
|
+
interface Props$f extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'onDeleteIcon' | 'variant'> {
|
|
179
179
|
variant: 'filled' | 'outlined' | 'status' | 'statusFilled';
|
|
180
180
|
label: string;
|
|
181
181
|
prefixIcon?: IconDefinition;
|
|
@@ -186,27 +186,27 @@ interface Props$e extends Omit<ChipProps, 'suffix' | 'prefix' | 'onDelete' | 'on
|
|
|
186
186
|
maxWidth?: string | number;
|
|
187
187
|
maxLength?: number;
|
|
188
188
|
}
|
|
189
|
-
declare const Chip: ({ variant, label, prefixIcon, suffixIcon, suffixTooltip, suffixAction, tooltip, maxWidth, ...props }: Props$
|
|
189
|
+
declare const Chip: ({ variant, label, prefixIcon, suffixIcon, suffixTooltip, suffixAction, tooltip, maxWidth, ...props }: Props$f) => React.JSX.Element;
|
|
190
190
|
|
|
191
|
-
interface Props$
|
|
191
|
+
interface Props$e extends BoxProps {
|
|
192
192
|
variant: 'warning' | 'error' | 'success' | 'infos';
|
|
193
193
|
title: string;
|
|
194
194
|
text?: ReactNode;
|
|
195
195
|
actionButton?: ReactNode;
|
|
196
196
|
}
|
|
197
|
-
declare const EmbeddedNotification: ({ title, text, variant, actionButton, ...props }: Props$
|
|
197
|
+
declare const EmbeddedNotification: ({ title, text, variant, actionButton, ...props }: Props$e) => React.JSX.Element;
|
|
198
198
|
|
|
199
199
|
type Placement = 'right' | 'bottom' | 'left' | 'top' | 'bottom-end' | 'bottom-start' | 'left-end' | 'left-start' | 'right-end' | 'right-start' | 'top-end' | 'top-start' | undefined;
|
|
200
200
|
|
|
201
|
-
interface Props$
|
|
201
|
+
interface Props$d extends Omit<TooltipProps, 'icon' | 'children' | 'placement'> {
|
|
202
202
|
title: ReactNode;
|
|
203
203
|
children: ReactNode;
|
|
204
204
|
placement?: Placement;
|
|
205
205
|
placementMargin?: number;
|
|
206
206
|
}
|
|
207
|
-
declare const Tooltip: ({ title, placement, children, placementMargin, ...tooltipProps }: Props$
|
|
207
|
+
declare const Tooltip: ({ title, placement, children, placementMargin, ...tooltipProps }: Props$d) => React.JSX.Element;
|
|
208
208
|
|
|
209
|
-
interface Props$
|
|
209
|
+
interface Props$c<T> extends Omit<AutocompleteProps<T, false, false, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'getOptionLabel'> {
|
|
210
210
|
label: string;
|
|
211
211
|
options: T[];
|
|
212
212
|
helperText?: string;
|
|
@@ -219,7 +219,7 @@ interface Props$b<T> extends Omit<AutocompleteProps<T, false, false, false>, 'on
|
|
|
219
219
|
error?: string;
|
|
220
220
|
searchIcon?: boolean;
|
|
221
221
|
}
|
|
222
|
-
declare const AutoCompleteSingle: <T>({ value, label, placeholder, options, disabled, getOptionLabel, onChange, width, color, helperText, error, searchIcon, ...props }: Props$
|
|
222
|
+
declare const AutoCompleteSingle: <T>({ value, label, placeholder, options, disabled, getOptionLabel, onChange, width, color, helperText, error, searchIcon, ...props }: Props$c<T>) => React.JSX.Element;
|
|
223
223
|
|
|
224
224
|
interface AutocompleteMultipleSelectProps<T> extends Omit<AutocompleteProps<T, true, true, false>, 'onChange' | 'value' | 'options' | 'renderInput' | 'error' | 'autocomplete' | 'searchIcon'> {
|
|
225
225
|
value: T[] | undefined;
|
|
@@ -253,7 +253,7 @@ interface FileDataType {
|
|
|
253
253
|
driveAccessToken?: string;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
interface Props$
|
|
256
|
+
interface Props$b {
|
|
257
257
|
title?: string;
|
|
258
258
|
subTitle?: string;
|
|
259
259
|
titleAddButton?: string;
|
|
@@ -276,29 +276,29 @@ interface Props$a {
|
|
|
276
276
|
onTouched?: () => void;
|
|
277
277
|
onFilesDataChange?: (_fileData: FileDataType[] | undefined) => void;
|
|
278
278
|
}
|
|
279
|
-
declare const FileUploader: ({ title, subTitle, titleAddButton, helperText, titleTooltip, files, isMulti, accept, acceptText, orText, fromLocalText, fromGoogleDriveText, disabled, error, enableGoogleDrive, googleAuthClientId, googleApiKey, _isDroppingFile, validateFile, onTouched, onFilesDataChange, }: Props$
|
|
279
|
+
declare const FileUploader: ({ title, subTitle, titleAddButton, helperText, titleTooltip, files, isMulti, accept, acceptText, orText, fromLocalText, fromGoogleDriveText, disabled, error, enableGoogleDrive, googleAuthClientId, googleApiKey, _isDroppingFile, validateFile, onTouched, onFilesDataChange, }: Props$b) => React.JSX.Element;
|
|
280
280
|
|
|
281
|
-
interface Props$
|
|
281
|
+
interface Props$a extends Omit<MenuItemProps, 'onClick'> {
|
|
282
282
|
onClick: (_event?: React.MouseEvent<HTMLElement>) => void;
|
|
283
283
|
children: NonNullable<ReactNode>;
|
|
284
284
|
testId?: string;
|
|
285
285
|
disabled?: boolean;
|
|
286
286
|
}
|
|
287
|
-
declare const MenuItem: ({ onClick, children, testId, disabled, ...props }: Props$
|
|
287
|
+
declare const MenuItem: ({ onClick, children, testId, disabled, ...props }: Props$a) => React.JSX.Element;
|
|
288
288
|
|
|
289
|
-
interface Props$
|
|
289
|
+
interface Props$9 extends Omit<AlertProps, 'severity' | 'text'> {
|
|
290
290
|
text: string | React.ReactNode;
|
|
291
291
|
severity: 'success' | 'warning' | 'error' | 'info';
|
|
292
292
|
}
|
|
293
|
-
declare const Snackbar: ({ text, severity }: Props$
|
|
293
|
+
declare const Snackbar: ({ text, severity }: Props$9) => React.JSX.Element;
|
|
294
294
|
|
|
295
295
|
declare const NotistackAdapter: React.ForwardRefExoticComponent<CustomContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
296
296
|
|
|
297
|
-
interface Props$
|
|
297
|
+
interface Props$8 extends AlertProps {
|
|
298
298
|
text: string;
|
|
299
299
|
onClose?: () => void;
|
|
300
300
|
}
|
|
301
|
-
declare const BannerNotification: ({ text, severity, onClose }: Props$
|
|
301
|
+
declare const BannerNotification: ({ text, severity, onClose }: Props$8) => React.JSX.Element;
|
|
302
302
|
|
|
303
303
|
interface StepperItem {
|
|
304
304
|
label: string;
|
|
@@ -312,39 +312,42 @@ interface Step {
|
|
|
312
312
|
icon: IconDefinition;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
interface Props$
|
|
315
|
+
interface Props$7 {
|
|
316
316
|
steps: Step[];
|
|
317
317
|
canNavigate: boolean;
|
|
318
318
|
onNavigate?: (_url: string) => void;
|
|
319
319
|
sx?: SxProps<Theme$1>;
|
|
320
320
|
}
|
|
321
|
-
declare const Stepper: ({ steps, canNavigate, onNavigate, sx, }: Props$
|
|
321
|
+
declare const Stepper: ({ steps, canNavigate, onNavigate, sx, }: Props$7) => React.JSX.Element;
|
|
322
322
|
|
|
323
323
|
interface ModalProps extends Omit<ModalProps$1, 'component' | 'open' | 'className' | 'onClose'> {
|
|
324
324
|
open: boolean;
|
|
325
325
|
title?: string;
|
|
326
326
|
size?: 'small' | 'large';
|
|
327
|
-
component: ReactNode | null;
|
|
328
327
|
footer?: ReactNode | null;
|
|
329
328
|
cardProps?: Partial<CardProps>;
|
|
330
329
|
className?: string;
|
|
331
330
|
icon?: IconDefinition;
|
|
332
331
|
onClose?: () => void;
|
|
333
332
|
}
|
|
333
|
+
interface DrawerProps extends Omit<ModalProps, 'icon'> {
|
|
334
|
+
titleLeftComponent?: ReactNode;
|
|
335
|
+
hideCloseButton?: boolean;
|
|
336
|
+
}
|
|
334
337
|
|
|
335
|
-
declare const Drawer: ({ title, open,
|
|
338
|
+
declare const Drawer: ({ title, open, hideCloseButton, titleLeftComponent, footer, cardProps, size, children, onClose, ...props }: DrawerProps) => React.JSX.Element;
|
|
336
339
|
|
|
337
340
|
declare const Dialog: ({ title, open, onClose, children, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size" | "component">) => React.JSX.Element;
|
|
338
341
|
|
|
339
|
-
interface Props$
|
|
342
|
+
interface Props$6 {
|
|
340
343
|
label: string;
|
|
341
344
|
checked: boolean;
|
|
342
345
|
leftSideLabel?: string;
|
|
343
346
|
onClick: () => void;
|
|
344
347
|
}
|
|
345
|
-
declare const Switch: ({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props$
|
|
348
|
+
declare const Switch: ({ label, checked, leftSideLabel, onClick, ...props }: SwitchProps & Props$6) => React.JSX.Element;
|
|
346
349
|
|
|
347
|
-
interface Props$
|
|
350
|
+
interface Props$5<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
|
|
348
351
|
value: T | null | undefined;
|
|
349
352
|
onChange: (_value: T | null | undefined) => void;
|
|
350
353
|
error?: string;
|
|
@@ -353,9 +356,9 @@ interface Props$4<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' |
|
|
|
353
356
|
width?: string;
|
|
354
357
|
locale?: 'fr' | 'en';
|
|
355
358
|
}
|
|
356
|
-
declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$
|
|
359
|
+
declare const DatePicker: <T extends Dayjs>({ value, onChange, error, success, helperText, width, locale, ...props }: Props$5<T>) => React.JSX.Element;
|
|
357
360
|
|
|
358
|
-
interface Props$
|
|
361
|
+
interface Props$4 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
359
362
|
value: Dayjs | undefined;
|
|
360
363
|
onChange?: (_time: string | Dayjs | undefined) => void;
|
|
361
364
|
onTouched?: () => void;
|
|
@@ -370,7 +373,7 @@ interface Props$3 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
|
370
373
|
locale?: 'fr' | 'en';
|
|
371
374
|
color?: 'success';
|
|
372
375
|
}
|
|
373
|
-
declare const TimePicker: ({ value, label, helperText, error, disabled, minTime, maxTime, timeStep, locale, width, color, onTouched, onChange, ...props }: Props$
|
|
376
|
+
declare const TimePicker: ({ value, label, helperText, error, disabled, minTime, maxTime, timeStep, locale, width, color, onTouched, onChange, ...props }: Props$4) => React.JSX.Element;
|
|
374
377
|
|
|
375
378
|
type Order = 'asc' | 'desc';
|
|
376
379
|
interface SortInfo {
|
|
@@ -424,15 +427,15 @@ type WithDetailsProps<T, D> = {
|
|
|
424
427
|
type WithoutDetailsProps<T> = {
|
|
425
428
|
onLoad: () => Promise<DatatableDataSet<T>>;
|
|
426
429
|
};
|
|
427
|
-
type Props$
|
|
430
|
+
type Props$3<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
|
|
428
431
|
|
|
429
|
-
declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, isTableLayoutFixed, ...props }: Props$
|
|
432
|
+
declare const Datatable: <T extends object>({ onLoad, onSort, sortInfo, withHeader, withPagination, columns, isTableLayoutFixed, ...props }: Props$3<T>) => React.JSX.Element;
|
|
430
433
|
|
|
431
434
|
declare const DatatableCellRender: ({ data }: {
|
|
432
435
|
data: string;
|
|
433
436
|
}) => JSX.Element;
|
|
434
437
|
|
|
435
|
-
interface Props$
|
|
438
|
+
interface Props$2 extends Omit<IconButtonProps, 'color'> {
|
|
436
439
|
icon: IconDefinition;
|
|
437
440
|
variant?: 'default' | 'table';
|
|
438
441
|
positionGroup?: 'left' | 'middle' | 'right';
|
|
@@ -443,7 +446,16 @@ interface Props$1 extends Omit<IconButtonProps, 'color'> {
|
|
|
443
446
|
color?: string;
|
|
444
447
|
onClick?: MouseEventHandler | undefined;
|
|
445
448
|
}
|
|
446
|
-
declare const IconButton: ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, color, onClick, ...iconButtonProps }: Props$
|
|
449
|
+
declare const IconButton: ({ icon, variant, positionGroup, tooltipText, tooltipPosition, size, color, onClick, ...iconButtonProps }: Props$2) => React.JSX.Element;
|
|
450
|
+
|
|
451
|
+
interface Props$1 extends ToggleButtonGroupProps {
|
|
452
|
+
selectedValue: string | string[];
|
|
453
|
+
options: {
|
|
454
|
+
value: string;
|
|
455
|
+
label: string;
|
|
456
|
+
}[];
|
|
457
|
+
}
|
|
458
|
+
declare const ToggleButtonGroup: ({ selectedValue, options, ...props }: Props$1) => React.JSX.Element;
|
|
447
459
|
|
|
448
460
|
type Theme = 'Default' | 'Ep';
|
|
449
461
|
interface DesignSystemContextValues {
|
|
@@ -509,4 +521,4 @@ interface PaletteDS {
|
|
|
509
521
|
};
|
|
510
522
|
}
|
|
511
523
|
|
|
512
|
-
export { type AcceptTextType, Accordion, AutocompleteMultipleSelect as AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, type CheckboxItemType, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, type DesignSystemContextValues, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, type FileDataType, FileUploader, IconButton, IconProvider, Link, MenuItem, MultiSelect, NotistackAdapter, Pagination, type PaletteDS, RadioGroup, Select, Snackbar, Stepper, Switch, Text, TextField, TimePicker, Tooltip };
|
|
524
|
+
export { type AcceptTextType, Accordion, AutocompleteMultipleSelect as AutoCompleteMulti, AutoCompleteSingle, BannerNotification, Breadcrumbs, Button, Checkbox, CheckboxGroup, type CheckboxItemType, Chip, Datatable, DatatableCellRender, DatePicker, DesignSystemContext, type DesignSystemContextValues, DesignSystemProvider, Dialog, Drawer, EmbeddedNotification, type FileDataType, FileUploader, IconButton, IconProvider, Link, MenuItem, MultiSelect, NotistackAdapter, Pagination, type PaletteDS, RadioGroup, Select, Snackbar, Stepper, Switch, Text, TextField, TimePicker, ToggleButtonGroup, Tooltip };
|