@groupeactual/ui-kit 1.7.10 → 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 +63 -54
- package/dist/es/index.js +8 -8
- 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/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,13 +312,13 @@ 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;
|
|
@@ -339,15 +339,15 @@ declare const Drawer: ({ title, open, hideCloseButton, titleLeftComponent, foote
|
|
|
339
339
|
|
|
340
340
|
declare const Dialog: ({ title, open, onClose, children, icon, ...props }: Omit<ModalProps, "footer" | "cardProps" | "size" | "component">) => React.JSX.Element;
|
|
341
341
|
|
|
342
|
-
interface Props$
|
|
342
|
+
interface Props$6 {
|
|
343
343
|
label: string;
|
|
344
344
|
checked: boolean;
|
|
345
345
|
leftSideLabel?: string;
|
|
346
346
|
onClick: () => void;
|
|
347
347
|
}
|
|
348
|
-
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;
|
|
349
349
|
|
|
350
|
-
interface Props$
|
|
350
|
+
interface Props$5<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' | 'width'> {
|
|
351
351
|
value: T | null | undefined;
|
|
352
352
|
onChange: (_value: T | null | undefined) => void;
|
|
353
353
|
error?: string;
|
|
@@ -356,9 +356,9 @@ interface Props$4<T extends Dayjs> extends Omit<DatePickerProps<T>, 'onChange' |
|
|
|
356
356
|
width?: string;
|
|
357
357
|
locale?: 'fr' | 'en';
|
|
358
358
|
}
|
|
359
|
-
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;
|
|
360
360
|
|
|
361
|
-
interface Props$
|
|
361
|
+
interface Props$4 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
362
362
|
value: Dayjs | undefined;
|
|
363
363
|
onChange?: (_time: string | Dayjs | undefined) => void;
|
|
364
364
|
onTouched?: () => void;
|
|
@@ -373,7 +373,7 @@ interface Props$3 extends Omit<TextFieldProps, 'error' | 'onChange'> {
|
|
|
373
373
|
locale?: 'fr' | 'en';
|
|
374
374
|
color?: 'success';
|
|
375
375
|
}
|
|
376
|
-
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;
|
|
377
377
|
|
|
378
378
|
type Order = 'asc' | 'desc';
|
|
379
379
|
interface SortInfo {
|
|
@@ -427,15 +427,15 @@ type WithDetailsProps<T, D> = {
|
|
|
427
427
|
type WithoutDetailsProps<T> = {
|
|
428
428
|
onLoad: () => Promise<DatatableDataSet<T>>;
|
|
429
429
|
};
|
|
430
|
-
type Props$
|
|
430
|
+
type Props$3<T extends object> = BaseProps<T> & (WithoutPaginationProps | PaginationProps) & (WithDetailsProps<T, RowDetail> | WithoutDetailsProps<T>);
|
|
431
431
|
|
|
432
|
-
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;
|
|
433
433
|
|
|
434
434
|
declare const DatatableCellRender: ({ data }: {
|
|
435
435
|
data: string;
|
|
436
436
|
}) => JSX.Element;
|
|
437
437
|
|
|
438
|
-
interface Props$
|
|
438
|
+
interface Props$2 extends Omit<IconButtonProps, 'color'> {
|
|
439
439
|
icon: IconDefinition;
|
|
440
440
|
variant?: 'default' | 'table';
|
|
441
441
|
positionGroup?: 'left' | 'middle' | 'right';
|
|
@@ -446,7 +446,16 @@ interface Props$1 extends Omit<IconButtonProps, 'color'> {
|
|
|
446
446
|
color?: string;
|
|
447
447
|
onClick?: MouseEventHandler | undefined;
|
|
448
448
|
}
|
|
449
|
-
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;
|
|
450
459
|
|
|
451
460
|
type Theme = 'Default' | 'Ep';
|
|
452
461
|
interface DesignSystemContextValues {
|
|
@@ -512,4 +521,4 @@ interface PaletteDS {
|
|
|
512
521
|
};
|
|
513
522
|
}
|
|
514
523
|
|
|
515
|
-
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 };
|