@worldresources/wri-design-systems 2.0.0 → 2.118.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/README.md +27 -8
- package/dist/index.cjs.js +2208 -0
- package/dist/index.d.ts +216 -34
- package/dist/index.esm.js +2208 -0
- package/package.json +12 -14
- package/dist/cjs/index.js +0 -1730
- package/dist/cjs/index.js.map +0 -1
- package/dist/esm/index.js +0 -1730
- package/dist/esm/index.js.map +0 -1
package/dist/index.d.ts
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
import
|
2
|
-
import
|
1
|
+
import { SystemContext, ButtonProps as ButtonProps$1, Checkbox as Checkbox$1, RadioCardRootProps, RadioGroup as RadioGroup$1, Slider as Slider$1, Switch as Switch$1, SelectRootProps, SliderRootProps, TextareaProps as TextareaProps$1, InputProps, Tag as Tag$1, Accordion, Tabs, Table as Table$1 } from '@chakra-ui/react';
|
2
|
+
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
3
3
|
import React$1 from 'react';
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
5
|
+
|
6
|
+
declare const designSystemStyles: SystemContext;
|
7
|
+
declare const getThemedColor: (variant: "neutral" | "primary" | "secondary" | "success" | "warning" | "error", index: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900, stylesSystem?: SystemContext) => string;
|
4
8
|
|
5
9
|
type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
6
10
|
label?: string;
|
@@ -12,20 +16,32 @@ type ButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'ch
|
|
12
16
|
rightIcon?: React$1.ReactNode;
|
13
17
|
};
|
14
18
|
|
15
|
-
declare const Button: ({ label, loading, variant, size, disabled, leftIcon, rightIcon, ...rest }: ButtonProps) =>
|
19
|
+
declare const Button: ({ label, loading, variant, size, disabled, leftIcon, rightIcon, ...rest }: ButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
16
20
|
|
17
21
|
type CloseButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
|
18
22
|
disabled?: boolean;
|
19
23
|
};
|
20
24
|
|
21
|
-
declare const CloseButton: ({ disabled, ...rest }: CloseButtonProps) =>
|
25
|
+
declare const CloseButton: ({ disabled, ...rest }: CloseButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
22
26
|
|
23
27
|
type IconButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children' | '_loading'> & {
|
24
28
|
icon: React$1.ReactNode;
|
25
29
|
disabled?: boolean;
|
26
30
|
};
|
27
31
|
|
28
|
-
declare const IconButton: ({ icon, disabled, ...rest }: IconButtonProps) =>
|
32
|
+
declare const IconButton: ({ icon, disabled, ...rest }: IconButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
33
|
+
|
34
|
+
type MapControlProps = {
|
35
|
+
items: {
|
36
|
+
icon: React.ReactNode;
|
37
|
+
onClick?: () => void;
|
38
|
+
disabled?: boolean;
|
39
|
+
ariaLabel: string;
|
40
|
+
}[];
|
41
|
+
vertical?: boolean;
|
42
|
+
};
|
43
|
+
|
44
|
+
declare const MapControl: ({ items, vertical }: MapControlProps) => _emotion_react_jsx_runtime.JSX.Element;
|
29
45
|
|
30
46
|
type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
31
47
|
variant?: 'primary' | 'secondary';
|
@@ -40,7 +56,7 @@ type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPal
|
|
40
56
|
disabled?: boolean;
|
41
57
|
};
|
42
58
|
|
43
|
-
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, ...rest }: MultiActionButtonProps) =>
|
59
|
+
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
44
60
|
|
45
61
|
type CheckboxProps = Omit<Checkbox$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'icon' | 'iconColor' | 'iconSize' | 'spacing' | 'invalid'> & {
|
46
62
|
name?: string;
|
@@ -54,7 +70,7 @@ type CheckboxProps = Omit<Checkbox$1.RootProps, 'size' | 'variant' | 'colorPalet
|
|
54
70
|
}) => void;
|
55
71
|
};
|
56
72
|
|
57
|
-
declare const Checkbox: ({ name, value, checked, defaultChecked, disabled, indeterminate, onCheckedChange, children, ...rest }: CheckboxProps) =>
|
73
|
+
declare const Checkbox: ({ name, value, checked, defaultChecked, disabled, indeterminate, onCheckedChange, children, ...rest }: CheckboxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
58
74
|
|
59
75
|
type OptionCardProps = {
|
60
76
|
label: string;
|
@@ -72,7 +88,7 @@ type OptionCardGroupProps = Omit<RadioCardRootProps, 'colorPalette' | 'size' | '
|
|
72
88
|
}) => void;
|
73
89
|
};
|
74
90
|
|
75
|
-
declare const OptionCard: ({ label, caption, icon, variant, disabled, children, value, }: OptionCardProps) =>
|
91
|
+
declare const OptionCard: ({ label, caption, icon, variant, disabled, children, value, }: OptionCardProps) => _emotion_react_jsx_runtime.JSX.Element;
|
76
92
|
|
77
93
|
declare const OptionCardGroup: ({ children, ...rest }: OptionCardGroupProps) => react_jsx_runtime.JSX.Element;
|
78
94
|
|
@@ -80,18 +96,21 @@ type RadioProps = Omit<RadioGroup$1.ItemProps, 'size' | 'variant' | 'colorPalett
|
|
80
96
|
value: string;
|
81
97
|
disabled?: boolean;
|
82
98
|
};
|
83
|
-
type RadioGroupProps = Omit<RadioGroup$1.ItemProps, 'size' | 'variant' | 'colorPalette' | 'value' | 'onChange'> & {
|
99
|
+
type RadioGroupProps = Omit<RadioGroup$1.ItemProps, 'size' | 'variant' | 'colorPalette' | 'value' | 'onChange' | 'children'> & {
|
84
100
|
name: string;
|
85
101
|
defaultValue?: string;
|
86
102
|
horizontal?: boolean;
|
87
103
|
onChange?: (name: string, selectedValue: string) => void;
|
88
104
|
customGap?: string;
|
105
|
+
children?: React.ReactNode;
|
89
106
|
};
|
90
107
|
|
91
|
-
declare const Radio: ({ children, value, disabled, ...rest }: RadioProps) =>
|
108
|
+
declare const Radio: ({ children, value, disabled, ...rest }: RadioProps) => _emotion_react_jsx_runtime.JSX.Element;
|
92
109
|
|
93
110
|
declare const RadioGroup: ({ children, horizontal, name, defaultValue, onChange, customGap, ...rest }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
94
111
|
|
112
|
+
/** @jsxImportSource @emotion/react */
|
113
|
+
|
95
114
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<Slider$1.RootProps, "size" | "variant" | "colorPalette" | "label" | "defaultChecked" | "defaultValue" | "origin" | "thumbAlignment" | "thumbSize"> & {
|
96
115
|
width?: string;
|
97
116
|
min?: number;
|
@@ -120,7 +139,7 @@ type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette'
|
|
120
139
|
isLabelOnLeft?: boolean;
|
121
140
|
};
|
122
141
|
|
123
|
-
declare const Switch: ({ name, defaultChecked, onChange, disabled, isLabelOnLeft, children, ...rest }: SwitchProps) =>
|
142
|
+
declare const Switch: ({ name, defaultChecked, onChange, disabled, isLabelOnLeft, children, ...rest }: SwitchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
124
143
|
|
125
144
|
type CheckboxListProps = {
|
126
145
|
label: string;
|
@@ -135,7 +154,49 @@ type CheckboxListProps = {
|
|
135
154
|
required?: boolean;
|
136
155
|
};
|
137
156
|
|
138
|
-
declare const CheckboxList: ({ label, caption, checkboxes, defaultValue, onCheckedChange, errorMessage, horizontal, required, }: CheckboxListProps) =>
|
157
|
+
declare const CheckboxList: ({ label, caption, checkboxes, defaultValue, onCheckedChange, errorMessage, horizontal, required, }: CheckboxListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
158
|
+
|
159
|
+
type InputWithUnitsProps = {
|
160
|
+
label: string;
|
161
|
+
caption?: string;
|
162
|
+
errorMessage?: string;
|
163
|
+
units: {
|
164
|
+
label: string;
|
165
|
+
value: string;
|
166
|
+
}[];
|
167
|
+
unitsPosition?: 'start' | 'end';
|
168
|
+
defaultValue?: string;
|
169
|
+
defaultUnit?: string;
|
170
|
+
onChange?: (value: string) => void;
|
171
|
+
required?: boolean;
|
172
|
+
disabled?: boolean;
|
173
|
+
};
|
174
|
+
|
175
|
+
declare const InputWithUnits: ({ label, caption, errorMessage, units, unitsPosition, defaultUnit, defaultValue, onChange, required, disabled, }: InputWithUnitsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
176
|
+
|
177
|
+
type PasswordProps = {
|
178
|
+
label: string;
|
179
|
+
caption?: string;
|
180
|
+
required?: boolean;
|
181
|
+
onChange?: ({ strength, length, uppercase, lowercase, numbers, specialCharacters, }: {
|
182
|
+
strength: string;
|
183
|
+
length: boolean;
|
184
|
+
uppercase: boolean;
|
185
|
+
lowercase: boolean;
|
186
|
+
numbers: boolean;
|
187
|
+
specialCharacters: boolean;
|
188
|
+
}) => void;
|
189
|
+
disabledRules?: {
|
190
|
+
uppercase?: boolean;
|
191
|
+
lowercase?: boolean;
|
192
|
+
numbers?: boolean;
|
193
|
+
specialCharacters?: boolean;
|
194
|
+
};
|
195
|
+
minLength?: number;
|
196
|
+
hideValidations?: boolean;
|
197
|
+
};
|
198
|
+
|
199
|
+
declare const Password: ({ label, caption, required, disabledRules, onChange, minLength, hideValidations, }: PasswordProps) => _emotion_react_jsx_runtime.JSX.Element;
|
139
200
|
|
140
201
|
type RadioListProps = {
|
141
202
|
label: string;
|
@@ -149,7 +210,7 @@ type RadioListProps = {
|
|
149
210
|
required?: boolean;
|
150
211
|
};
|
151
212
|
|
152
|
-
declare const RadioList: ({ label, caption, name, radios, defaultValue, onCheckedChange, errorMessage, horizontal, required, }: RadioListProps) =>
|
213
|
+
declare const RadioList: ({ label, caption, name, radios, defaultValue, onCheckedChange, errorMessage, horizontal, required, }: RadioListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
153
214
|
|
154
215
|
type SelectItemProps = {
|
155
216
|
label: string;
|
@@ -159,7 +220,7 @@ type SelectItemProps = {
|
|
159
220
|
type SelectProps = Omit<SelectRootProps, 'collection' | 'size' | 'colorPalette' | 'variant' | 'onValueChange' | 'onChange' | 'defaultChecked' | 'invalid'> & {
|
160
221
|
label?: string;
|
161
222
|
caption?: string;
|
162
|
-
placeholder
|
223
|
+
placeholder?: string;
|
163
224
|
defaultValue?: string[];
|
164
225
|
items: SelectItemProps[];
|
165
226
|
size?: 'default' | 'small';
|
@@ -170,7 +231,7 @@ type SelectProps = Omit<SelectRootProps, 'collection' | 'size' | 'colorPalette'
|
|
170
231
|
multiple?: boolean;
|
171
232
|
};
|
172
233
|
|
173
|
-
declare const Select: ({ label, caption, placeholder, items, size, required, disabled, onChange, errorMessage, multiple, ...rest }: SelectProps) =>
|
234
|
+
declare const Select: ({ label, caption, placeholder, items, size, required, disabled, onChange, errorMessage, multiple, ...rest }: SelectProps) => _emotion_react_jsx_runtime.JSX.Element;
|
174
235
|
|
175
236
|
type ValueChangeDetails = {
|
176
237
|
value: number[];
|
@@ -200,10 +261,10 @@ type SliderInputProps = {
|
|
200
261
|
onChange?: (value: number[]) => void;
|
201
262
|
};
|
202
263
|
|
203
|
-
declare const SliderInput: ({ label, caption, size, sliderItem, required, onChange, }: SliderInputProps) =>
|
264
|
+
declare const SliderInput: ({ label, caption, size, sliderItem, required, onChange, }: SliderInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
204
265
|
|
205
266
|
type TextareaProps = Omit<TextareaProps$1, 'size' | 'variant' | 'colorPalette' | 'defaultChecked'> & {
|
206
|
-
label
|
267
|
+
label?: string;
|
207
268
|
caption?: string;
|
208
269
|
placeholder?: string;
|
209
270
|
errorMessage?: string;
|
@@ -216,7 +277,7 @@ type TextareaProps = Omit<TextareaProps$1, 'size' | 'variant' | 'colorPalette' |
|
|
216
277
|
maxLength?: number;
|
217
278
|
};
|
218
279
|
|
219
|
-
declare const Textarea: ({ label, caption, placeholder, errorMessage, required, disabled, size, defaultValue, onChange, minLength, maxLength, ...rest }: TextareaProps) =>
|
280
|
+
declare const Textarea: ({ label, caption, placeholder, errorMessage, required, disabled, size, defaultValue, onChange, minLength, maxLength, ...rest }: TextareaProps) => _emotion_react_jsx_runtime.JSX.Element;
|
220
281
|
|
221
282
|
type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'defaultChecked'> & {
|
222
283
|
label?: string;
|
@@ -230,7 +291,7 @@ type TextInputProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'de
|
|
230
291
|
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
231
292
|
};
|
232
293
|
|
233
|
-
declare const TextInput: ({ label, caption, placeholder, errorMessage, required, disabled, size, defaultValue, onChange, ...rest }: TextInputProps) =>
|
294
|
+
declare const TextInput: ({ label, caption, placeholder, errorMessage, required, disabled, size, defaultValue, onChange, ...rest }: TextInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
234
295
|
|
235
296
|
type TagProps = Omit<Tag$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
236
297
|
label: string;
|
@@ -242,7 +303,16 @@ type TagProps = Omit<Tag$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'chi
|
|
242
303
|
closable?: boolean;
|
243
304
|
};
|
244
305
|
|
245
|
-
declare const Tag: ({ label, size, variant, disabled, icon, onClose, closable, ...rest }: TagProps) =>
|
306
|
+
declare const Tag: ({ label, size, variant, disabled, icon, onClose, closable, ...rest }: TagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
307
|
+
|
308
|
+
type IconMarkerProps = {
|
309
|
+
ariaLabel: string;
|
310
|
+
icon: React.ReactNode;
|
311
|
+
backgroundColor?: string;
|
312
|
+
onClick?: () => void;
|
313
|
+
};
|
314
|
+
|
315
|
+
declare const IconMarker: ({ ariaLabel, icon, backgroundColor, onClick, }: IconMarkerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
246
316
|
|
247
317
|
type LayerItemProps = {
|
248
318
|
name: string;
|
@@ -268,11 +338,11 @@ type LayerGroupProps = {
|
|
268
338
|
onChangeForRadioVariant?: (name: string, checked: boolean, selectedValue?: string) => void;
|
269
339
|
};
|
270
340
|
|
271
|
-
declare const LayerGroup: ({ label, caption, value, layerItems, onChangeForRadioVariant, }: LayerGroupProps) =>
|
341
|
+
declare const LayerGroup: ({ label, caption, value, layerItems, onChangeForRadioVariant, }: LayerGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
|
272
342
|
|
273
|
-
declare const LayerGroupContainer: ({ children, defaultValue, ...rest }: LayerGroupContainerProps) =>
|
343
|
+
declare const LayerGroupContainer: ({ children, defaultValue, ...rest }: LayerGroupContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
274
344
|
|
275
|
-
declare const LayerItem: ({ name, label, caption, showInfoButton, infoButtonLabel, variant, disabled, onInfoClick, isDefaultSelected, onChange, }: LayerItemProps) =>
|
345
|
+
declare const LayerItem: ({ name, label, caption, showInfoButton, infoButtonLabel, variant, disabled, onInfoClick, isDefaultSelected, onChange, }: LayerItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
276
346
|
|
277
347
|
type TabBarItemProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
278
348
|
label: string;
|
@@ -297,7 +367,7 @@ type LayerPanelProps = {
|
|
297
367
|
children: React.ReactNode;
|
298
368
|
};
|
299
369
|
|
300
|
-
declare const LayerPanel: ({ title, description, tabBarVariant, buttonTabs, defaultValue, onTabClick, children, }: LayerPanelProps) =>
|
370
|
+
declare const LayerPanel: ({ title, description, tabBarVariant, buttonTabs, defaultValue, onTabClick, children, }: LayerPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
301
371
|
|
302
372
|
type LayerParametersProps = {
|
303
373
|
label: string;
|
@@ -305,7 +375,7 @@ type LayerParametersProps = {
|
|
305
375
|
openedByDefault?: boolean;
|
306
376
|
};
|
307
377
|
|
308
|
-
declare const LayerParameters: ({ label, children, openedByDefault, }: LayerParametersProps) =>
|
378
|
+
declare const LayerParameters: ({ label, children, openedByDefault, }: LayerParametersProps) => _emotion_react_jsx_runtime.JSX.Element;
|
309
379
|
|
310
380
|
type LegendItemProps = {
|
311
381
|
layerName: string;
|
@@ -319,7 +389,7 @@ type LegendItemProps = {
|
|
319
389
|
onOpacityChanged: (value: number) => void;
|
320
390
|
};
|
321
391
|
|
322
|
-
declare const LegendItem: ({ layerName, dataUnit, onDrag, onUpClick, onDownClick, onRemoveClick, children, onInfoClick, onOpacityChanged, }: LegendItemProps) =>
|
392
|
+
declare const LegendItem: ({ layerName, dataUnit, onDrag, onUpClick, onDownClick, onRemoveClick, children, onInfoClick, onOpacityChanged, }: LegendItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
323
393
|
|
324
394
|
type LegendPanelProps = {
|
325
395
|
legendContent: React$1.ReactElement[];
|
@@ -327,7 +397,7 @@ type LegendPanelProps = {
|
|
327
397
|
onTabClick?: (tabValue: string) => void;
|
328
398
|
};
|
329
399
|
|
330
|
-
declare const LegendPanel: ({ legendContent, analysisContent, onTabClick, }: LegendPanelProps) =>
|
400
|
+
declare const LegendPanel: ({ legendContent, analysisContent, onTabClick, }: LegendPanelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
331
401
|
|
332
402
|
type QualitativeAttributeProps = {
|
333
403
|
type: 'raster' | 'line' | 'point';
|
@@ -339,7 +409,7 @@ type QualitativeAttributeProps = {
|
|
339
409
|
pointIcon?: React.ReactNode;
|
340
410
|
};
|
341
411
|
|
342
|
-
declare const QualitativeAttribute: ({ type, label, caption, color, onActionClick, showActionButton, pointIcon, }: QualitativeAttributeProps) =>
|
412
|
+
declare const QualitativeAttribute: ({ type, label, caption, color, onActionClick, showActionButton, pointIcon, }: QualitativeAttributeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
343
413
|
|
344
414
|
type ScaleBarProps = {
|
345
415
|
colors: string[];
|
@@ -348,7 +418,81 @@ type ScaleBarProps = {
|
|
348
418
|
isGradient?: boolean;
|
349
419
|
};
|
350
420
|
|
351
|
-
declare const ScaleBar: ({ colors, values, subLabels, isGradient }: ScaleBarProps) =>
|
421
|
+
declare const ScaleBar: ({ colors, values, subLabels, isGradient }: ScaleBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
422
|
+
|
423
|
+
type ItemCountProps = {
|
424
|
+
pageSize: number;
|
425
|
+
currentPage: number;
|
426
|
+
totalItems: number;
|
427
|
+
onPageSizeChange?: (pageSize: number) => void;
|
428
|
+
};
|
429
|
+
|
430
|
+
declare const ItemCount: ({ pageSize, currentPage, totalItems, onPageSizeChange, }: ItemCountProps) => _emotion_react_jsx_runtime.JSX.Element;
|
431
|
+
|
432
|
+
type PaginationProps = {
|
433
|
+
currentPage: number;
|
434
|
+
totalItems: number;
|
435
|
+
pageSize: number;
|
436
|
+
compact?: boolean;
|
437
|
+
onPageChange?: (page: number) => void;
|
438
|
+
};
|
439
|
+
|
440
|
+
declare const Pagination: ({ totalItems, pageSize, currentPage, compact, onPageChange, }: PaginationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
441
|
+
|
442
|
+
type TableProps = {
|
443
|
+
columns: {
|
444
|
+
key: string;
|
445
|
+
label: string;
|
446
|
+
sortable?: boolean;
|
447
|
+
}[];
|
448
|
+
data: any;
|
449
|
+
renderRow: any;
|
450
|
+
striped?: boolean;
|
451
|
+
stickyHeader?: boolean;
|
452
|
+
selectable?: boolean;
|
453
|
+
selectedRows?: any;
|
454
|
+
pagination?: {
|
455
|
+
totalItems: number;
|
456
|
+
currentPage: number;
|
457
|
+
pageSize: number;
|
458
|
+
showItemCount?: boolean;
|
459
|
+
};
|
460
|
+
onSortColumn: (sortColumn: {
|
461
|
+
key: string;
|
462
|
+
order: string;
|
463
|
+
}) => void;
|
464
|
+
onPageSizeChange: (pageSize: number) => void;
|
465
|
+
onPageChange: (page: number) => void;
|
466
|
+
onAllItemsSelected?: (checked: boolean) => void;
|
467
|
+
};
|
468
|
+
|
469
|
+
declare const Table: ({ columns, data, renderRow, striped, stickyHeader, pagination, selectable, selectedRows, onSortColumn, onPageSizeChange, onPageChange, onAllItemsSelected, }: TableProps) => _emotion_react_jsx_runtime.JSX.Element;
|
470
|
+
|
471
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<Table$1.RowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
472
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<Table$1.CellProps & React$1.RefAttributes<HTMLTableCellElement>>;
|
473
|
+
|
474
|
+
type BreadcrumbProps = {
|
475
|
+
links: {
|
476
|
+
label: string;
|
477
|
+
link: string;
|
478
|
+
icon?: React.ReactNode;
|
479
|
+
}[];
|
480
|
+
separator?: React.ReactNode;
|
481
|
+
maxItems?: number;
|
482
|
+
linkRouter: any;
|
483
|
+
};
|
484
|
+
|
485
|
+
declare const Breadcrumb: ({ links, separator, maxItems, linkRouter, }: BreadcrumbProps) => _emotion_react_jsx_runtime.JSX.Element;
|
486
|
+
|
487
|
+
type FooterProps = {
|
488
|
+
children: React.ReactNode;
|
489
|
+
label?: string;
|
490
|
+
fixed?: boolean;
|
491
|
+
filled?: boolean;
|
492
|
+
maxWidth?: number;
|
493
|
+
};
|
494
|
+
|
495
|
+
declare const Footer: ({ children, label, fixed, filled, maxWidth, }: FooterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
352
496
|
|
353
497
|
type NavigationRailTabProps = Omit<Tabs.TriggerProps, 'asChild'> & {
|
354
498
|
label: string;
|
@@ -362,11 +506,19 @@ type NavigationRailProps = {
|
|
362
506
|
onTabClick?: (selectedValue: string) => void;
|
363
507
|
children?: React.ReactNode;
|
364
508
|
onOpenChange?: (open: boolean) => void;
|
509
|
+
customHeight?: string;
|
365
510
|
};
|
366
511
|
|
367
|
-
declare const NavigationRail: ({ tabs, defaultValue, onTabClick, children, onOpenChange, }: NavigationRailProps) =>
|
512
|
+
declare const NavigationRail: ({ tabs, defaultValue, onTabClick, children, onOpenChange, customHeight, }: NavigationRailProps) => _emotion_react_jsx_runtime.JSX.Element;
|
513
|
+
|
514
|
+
declare const TabBar: ({ variant, defaultValue, tabs, onTabClick, }: TabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
515
|
+
|
516
|
+
type BadgeProps = {
|
517
|
+
hasNotification?: boolean;
|
518
|
+
notificationCount?: number;
|
519
|
+
};
|
368
520
|
|
369
|
-
declare const
|
521
|
+
declare const Badge: ({ hasNotification, notificationCount }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
370
522
|
|
371
523
|
type InlineMessageProps = {
|
372
524
|
label: string;
|
@@ -379,7 +531,11 @@ type InlineMessageProps = {
|
|
379
531
|
isButtonRight?: boolean;
|
380
532
|
};
|
381
533
|
|
382
|
-
declare const InlineMessage: ({ label, caption, variant, size, icon, onActionClick, actionLabel, isButtonRight, }: InlineMessageProps) =>
|
534
|
+
declare const InlineMessage: ({ label, caption, variant, size, icon, onActionClick, actionLabel, isButtonRight, }: InlineMessageProps) => _emotion_react_jsx_runtime.JSX.Element;
|
535
|
+
|
536
|
+
/** @jsxImportSource @emotion/react */
|
537
|
+
|
538
|
+
declare const Toast: React$1.FC;
|
383
539
|
|
384
540
|
type ToastProps = {
|
385
541
|
label: string;
|
@@ -397,6 +553,32 @@ type ToastProps = {
|
|
397
553
|
};
|
398
554
|
|
399
555
|
declare const showToast: (props: ToastProps) => void;
|
400
|
-
declare const Toast: () => react_jsx_runtime.JSX.Element[];
|
401
556
|
|
402
|
-
|
557
|
+
type ZoomProps = {
|
558
|
+
onZoomInClick: () => void;
|
559
|
+
onZoomOutClick: () => void;
|
560
|
+
vertical?: boolean;
|
561
|
+
};
|
562
|
+
type GenericMapControlProps = {
|
563
|
+
onClick: () => void;
|
564
|
+
};
|
565
|
+
declare const MapControls: {
|
566
|
+
Zoom: ({ onZoomInClick, onZoomOutClick, vertical }: ZoomProps) => react_jsx_runtime.JSX.Element;
|
567
|
+
Expand: ({ onClick }: GenericMapControlProps) => react_jsx_runtime.JSX.Element;
|
568
|
+
Share: ({ onClick }: GenericMapControlProps) => react_jsx_runtime.JSX.Element;
|
569
|
+
Print: ({ onClick }: GenericMapControlProps) => react_jsx_runtime.JSX.Element;
|
570
|
+
Settings: ({ onClick }: GenericMapControlProps) => react_jsx_runtime.JSX.Element;
|
571
|
+
Question: ({ onClick }: GenericMapControlProps) => react_jsx_runtime.JSX.Element;
|
572
|
+
};
|
573
|
+
|
574
|
+
type GenericIconMarkersProps = {
|
575
|
+
ariaLabel?: string;
|
576
|
+
onClick?: () => void;
|
577
|
+
};
|
578
|
+
declare const IconMarkers: {
|
579
|
+
Paper: ({ ariaLabel, onClick }: GenericIconMarkersProps) => react_jsx_runtime.JSX.Element;
|
580
|
+
Drop: ({ ariaLabel, onClick }: GenericIconMarkersProps) => react_jsx_runtime.JSX.Element;
|
581
|
+
Plant: ({ ariaLabel, onClick }: GenericIconMarkersProps) => react_jsx_runtime.JSX.Element;
|
582
|
+
};
|
583
|
+
|
584
|
+
export { Badge, Breadcrumb, Button, Checkbox, CheckboxList, CloseButton, Footer, IconButton, IconMarker, IconMarkers, InlineMessage, InputWithUnits, ItemCount, LayerGroup, LayerGroupContainer, LayerItem, LayerPanel, LayerParameters, LegendItem, LegendPanel, MapControl, MapControls, MultiActionButton, NavigationRail, OptionCard, OptionCardGroup, Pagination, Password, QualitativeAttribute, Radio, RadioGroup, RadioList, ScaleBar, Select, Slider, SliderInput, Switch, TabBar, Table, TableCell, TableRow, Tag, TextInput, Textarea, Toast, designSystemStyles, getThemedColor, showToast };
|