@worldresources/wri-design-systems 2.198.0 → 2.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +62 -62
- package/dist/index.d.ts +146 -12
- package/dist/index.esm.js +116 -116
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,6 +117,21 @@ type TextInputLabels = {
|
|
|
117
117
|
*/
|
|
118
118
|
optionalSuffix: ReactNodeLabel;
|
|
119
119
|
};
|
|
120
|
+
/** Labels for Combobox internal UI strings. */
|
|
121
|
+
type ComboboxLabels = {
|
|
122
|
+
/** Accessible label for the required (*) indicator. Must be string (aria-label). Default: "required" */
|
|
123
|
+
requiredSymbolLabel: string;
|
|
124
|
+
/** Suffix appended after the field label when optional. Rendered as JSX child. Default: " (Optional)" */
|
|
125
|
+
optionalSuffix: ReactNodeLabel;
|
|
126
|
+
/** Fallback aria-label on the combobox input when label/placeholder are not provided. Default: "Combobox input" */
|
|
127
|
+
defaultInputAriaLabel: string;
|
|
128
|
+
/** aria-label on the clear selection trigger. Default: "Clear selection" */
|
|
129
|
+
clearSelectionLabel: string;
|
|
130
|
+
/** aria-label on the open/close options trigger. Default: "Toggle options" */
|
|
131
|
+
toggleOptionsLabel: string;
|
|
132
|
+
/** Visible text shown when no results match. Rendered as JSX child. Default: "No items found" */
|
|
133
|
+
noItemsFoundLabel: ReactNodeLabel;
|
|
134
|
+
};
|
|
120
135
|
/** Labels for CloseButton internal UI strings. */
|
|
121
136
|
type CloseButtonLabels = {
|
|
122
137
|
/** Fallback aria-label when none is provided via props. Default: "Close" */
|
|
@@ -127,6 +142,26 @@ type ToastLabels = {
|
|
|
127
142
|
/** aria-label on the dismiss button. Default: "Dismiss" */
|
|
128
143
|
dismissLabel: string;
|
|
129
144
|
};
|
|
145
|
+
/** Labels for AlertBanner internal UI strings. */
|
|
146
|
+
type AlertBannerLabels = {
|
|
147
|
+
/** aria-label on the close action button. Default: "Close alert" */
|
|
148
|
+
closeAlertLabel: string;
|
|
149
|
+
};
|
|
150
|
+
/** Labels for Badge internal UI strings. */
|
|
151
|
+
type BadgeLabels = {
|
|
152
|
+
/** Builds aria-label text for the notification count. Default: (count) => `${count} unread ${count === 1 ? 'message' : 'messages'}` */
|
|
153
|
+
unreadMessagesLabel: (count: number) => string;
|
|
154
|
+
};
|
|
155
|
+
/** Labels for Avatar internal UI strings. */
|
|
156
|
+
type AvatarLabels = {
|
|
157
|
+
/** Builds aria-label text for the notification count. Default: (count) => `${count} unread ${count === 1 ? 'message' : 'messages'}` */
|
|
158
|
+
unreadMessagesLabel: (count: number) => string;
|
|
159
|
+
};
|
|
160
|
+
/** Labels for ProgressBar internal UI strings. */
|
|
161
|
+
type ProgressBarLabels = {
|
|
162
|
+
/** Builds aria-label text for progress value. Default: (progress) => `Progress: ${progress}%` */
|
|
163
|
+
progressAriaLabel: (progress: number) => string;
|
|
164
|
+
};
|
|
130
165
|
/** Labels for InlineMessage internal UI strings. */
|
|
131
166
|
type InlineMessageLabels = {
|
|
132
167
|
/** aria-roledescription on the root element. Default: "Note" */
|
|
@@ -134,9 +169,20 @@ type InlineMessageLabels = {
|
|
|
134
169
|
};
|
|
135
170
|
/** Labels for MapPopUp internal UI strings. */
|
|
136
171
|
type MapPopUpLabels = {
|
|
172
|
+
/** aria-label on the popup dialog container. Default: "Map popup dialog" */
|
|
173
|
+
dialogAriaLabel: string;
|
|
137
174
|
/** aria-label on the close button. Default: "Close" */
|
|
138
175
|
closeLabel: string;
|
|
139
176
|
};
|
|
177
|
+
/** Labels for MapMarker internal UI strings. */
|
|
178
|
+
type MapMarkerLabels = {
|
|
179
|
+
/** aria-label builder for cluster markers when count is provided. Default: (count) => `Cluster of ${count} locations` */
|
|
180
|
+
clusterAriaLabel: (count: number) => string;
|
|
181
|
+
/** aria-label for simple pin marker variant. Default: "Map pin location" */
|
|
182
|
+
pinAriaLabel: string;
|
|
183
|
+
/** fallback aria-label for non-pin markers. Default: "Map point" */
|
|
184
|
+
pointAriaLabel: string;
|
|
185
|
+
};
|
|
140
186
|
/** Labels for AnalysisWidget internal UI strings. */
|
|
141
187
|
type AnalysisWidgetLabels = {
|
|
142
188
|
/** aria-label on the collapsible section trigger. Default: "Toggle section" */
|
|
@@ -148,6 +194,10 @@ type TableLabels = {
|
|
|
148
194
|
ascendingLabel: string;
|
|
149
195
|
/** aria-label on the descending sort icon button. Default: "Descending" */
|
|
150
196
|
descendingLabel: string;
|
|
197
|
+
/** aria-label on the header checkbox that selects all rows. Default: "Select all rows" */
|
|
198
|
+
selectAllRowsLabel: string;
|
|
199
|
+
/** aria-label template for each row checkbox. Default: (name, id) => (name || id ? `Select row ${name || id}` : 'Select row') */
|
|
200
|
+
selectRowLabel: (name?: string, id?: string | number) => string;
|
|
151
201
|
};
|
|
152
202
|
/** Labels for Button internal UI strings. */
|
|
153
203
|
type ButtonLabels = {
|
|
@@ -183,6 +233,50 @@ type MobileSearchLabels = {
|
|
|
183
233
|
/** Label text inside the InlineMessage shown when no query. Default: "Label" */
|
|
184
234
|
infoLabel: string;
|
|
185
235
|
};
|
|
236
|
+
/** Labels for MobileTabBar internal UI strings. */
|
|
237
|
+
type MobileTabBarLabels = {
|
|
238
|
+
/** Builds screen-reader status text for tab position. Default: (index, total) => `tab ${index} of ${total}` */
|
|
239
|
+
tabPositionStatus: (index: number, total: number) => string;
|
|
240
|
+
/** Screen-reader status when the tab is selected. Default: "selected" */
|
|
241
|
+
selectedStatus: string;
|
|
242
|
+
/** Screen-reader status when the tab is not selected. Default: "not selected" */
|
|
243
|
+
notSelectedStatus: string;
|
|
244
|
+
/** Screen-reader status appended when the tab is disabled. Default: "disabled" */
|
|
245
|
+
disabledStatus: string;
|
|
246
|
+
};
|
|
247
|
+
/** Labels for Switch internal UI strings. */
|
|
248
|
+
type SwitchLabels = {
|
|
249
|
+
/** Fallback aria-label when no aria-label prop is provided. Default: (name) => name */
|
|
250
|
+
defaultAriaLabel: (name: string) => string;
|
|
251
|
+
};
|
|
252
|
+
/** Labels for Tag internal UI strings. */
|
|
253
|
+
type TagLabels = {
|
|
254
|
+
/** aria-label builder for the close trigger. Default: (label) => `${label} tag close button` */
|
|
255
|
+
closeButtonAriaLabel: (label: string) => string;
|
|
256
|
+
};
|
|
257
|
+
/** Labels for Menu internal UI strings. */
|
|
258
|
+
type MenuLabels = {
|
|
259
|
+
/** Fallback aria-label for the menu content when no trigger label is provided. Default: "Menu" */
|
|
260
|
+
menuAriaLabel: string;
|
|
261
|
+
/** Builds aria-label for submenu content. Default: (label) => `${label} submenu` */
|
|
262
|
+
submenuAriaLabel: (label: string) => string;
|
|
263
|
+
/** Prefix used for command aria-label text. Default: "Shortcut" */
|
|
264
|
+
shortcutPrefix: string;
|
|
265
|
+
};
|
|
266
|
+
/** Labels for Modal internal UI strings. */
|
|
267
|
+
type ModalLabels = {
|
|
268
|
+
/** aria-label on the dialog content. Default: "Modal dialog" */
|
|
269
|
+
dialogAriaLabel: string;
|
|
270
|
+
};
|
|
271
|
+
/** Labels for Sheet internal UI strings. */
|
|
272
|
+
type SheetLabels = {
|
|
273
|
+
/** aria-label for the grabber button when collapsed/minimized. Default: "Expand sheet" */
|
|
274
|
+
expandSheetLabel: string;
|
|
275
|
+
/** aria-label for the grabber button at intermediate snap points. Default: "Make full screen" */
|
|
276
|
+
makeFullScreenLabel: string;
|
|
277
|
+
/** aria-label for the grabber button when fully expanded. Default: "Expanded sheet" */
|
|
278
|
+
expandedSheetLabel: string;
|
|
279
|
+
};
|
|
186
280
|
/** Labels for RadioList internal UI strings. */
|
|
187
281
|
type RadioListLabels = {
|
|
188
282
|
/** " Required." appended to the group aria-label. Default: "Required." */
|
|
@@ -384,6 +478,11 @@ type LayerGroupLabels = {
|
|
|
384
478
|
/** Full aria-label builder for the group container. Default fn provided. */
|
|
385
479
|
groupAriaLabel: (label: string, activeCount: number, caption?: string) => string;
|
|
386
480
|
};
|
|
481
|
+
/** Labels for LayerItem internal UI strings. */
|
|
482
|
+
type LayerItemLabels = {
|
|
483
|
+
/** Default label on the optional info button. Default: "About data" */
|
|
484
|
+
aboutDataLabel: string;
|
|
485
|
+
};
|
|
387
486
|
/** Labels for QualitativeAttribute internal UI strings. */
|
|
388
487
|
type QualitativeAttributeLabels = {
|
|
389
488
|
/**
|
|
@@ -500,16 +599,28 @@ type DesignSystemLabels = {
|
|
|
500
599
|
CheckboxList?: Partial<CheckboxListLabels>;
|
|
501
600
|
Password?: Partial<PasswordLabels>;
|
|
502
601
|
TextInput?: Partial<TextInputLabels>;
|
|
602
|
+
Combobox?: Partial<ComboboxLabels>;
|
|
503
603
|
CloseButton?: Partial<CloseButtonLabels>;
|
|
504
604
|
Toast?: Partial<ToastLabels>;
|
|
605
|
+
AlertBanner?: Partial<AlertBannerLabels>;
|
|
606
|
+
Badge?: Partial<BadgeLabels>;
|
|
607
|
+
Avatar?: Partial<AvatarLabels>;
|
|
608
|
+
ProgressBar?: Partial<ProgressBarLabels>;
|
|
505
609
|
InlineMessage?: Partial<InlineMessageLabels>;
|
|
506
610
|
MapPopUp?: Partial<MapPopUpLabels>;
|
|
611
|
+
MapMarker?: Partial<MapMarkerLabels>;
|
|
507
612
|
AnalysisWidget?: Partial<AnalysisWidgetLabels>;
|
|
508
613
|
Table?: Partial<TableLabels>;
|
|
509
614
|
Button?: Partial<ButtonLabels>;
|
|
510
615
|
BaseMap?: Partial<BaseMapLabels>;
|
|
511
616
|
Search?: Partial<SearchLabels>;
|
|
512
617
|
MobileSearch?: Partial<MobileSearchLabels>;
|
|
618
|
+
MobileTabBar?: Partial<MobileTabBarLabels>;
|
|
619
|
+
Switch?: Partial<SwitchLabels>;
|
|
620
|
+
Tag?: Partial<TagLabels>;
|
|
621
|
+
Menu?: Partial<MenuLabels>;
|
|
622
|
+
Modal?: Partial<ModalLabels>;
|
|
623
|
+
Sheet?: Partial<SheetLabels>;
|
|
513
624
|
RadioList?: Partial<RadioListLabels>;
|
|
514
625
|
Select?: Partial<SelectLabels>;
|
|
515
626
|
NavigationRail?: Partial<NavigationRailLabels>;
|
|
@@ -521,6 +632,7 @@ type DesignSystemLabels = {
|
|
|
521
632
|
Pagination?: Partial<PaginationLabels>;
|
|
522
633
|
ItemCount?: Partial<ItemCountLabels>;
|
|
523
634
|
LayerGroup?: Partial<LayerGroupLabels>;
|
|
635
|
+
LayerItem?: Partial<LayerItemLabels>;
|
|
524
636
|
QualitativeAttribute?: Partial<QualitativeAttributeLabels>;
|
|
525
637
|
MapControlsToolbar?: Partial<MapControlsToolbarLabels>;
|
|
526
638
|
StepProgressIndicator?: Partial<StepProgressIndicatorLabels>;
|
|
@@ -706,9 +818,11 @@ type MenuProps = {
|
|
|
706
818
|
/** Values that are checked by default on first render. */
|
|
707
819
|
defaultSelectedValues?: string[];
|
|
708
820
|
menuWidth?: string | 'content';
|
|
821
|
+
/** Override internal UI labels for internationalization support. */
|
|
822
|
+
labels?: Partial<MenuLabels>;
|
|
709
823
|
};
|
|
710
824
|
|
|
711
|
-
declare const Menu: ({ theme, label, hideArrow, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, menuWidth, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
825
|
+
declare const Menu: ({ theme, label, hideArrow, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, menuWidth, labels, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
712
826
|
|
|
713
827
|
type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
|
714
828
|
variant?: 'primary' | 'secondary';
|
|
@@ -868,15 +982,17 @@ type SliderProps = Omit<SliderRootProps, 'size' | 'variant' | 'colorPalette' | '
|
|
|
868
982
|
isCentred?: boolean;
|
|
869
983
|
};
|
|
870
984
|
|
|
871
|
-
type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'invalid' | 'onCheckedChange' | 'onChange'> & {
|
|
985
|
+
type SwitchProps = Omit<Switch$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'invalid' | 'onCheckedChange' | 'onChange' | 'labels'> & {
|
|
872
986
|
name: string;
|
|
873
987
|
onChange?: (name: string, checked: boolean) => void;
|
|
874
988
|
defaultChecked?: boolean;
|
|
875
989
|
disabled?: boolean;
|
|
876
990
|
isLabelOnLeft?: boolean;
|
|
991
|
+
/** Override internal UI labels for internationalization support. */
|
|
992
|
+
labels?: Partial<SwitchLabels>;
|
|
877
993
|
};
|
|
878
994
|
|
|
879
|
-
declare const Switch: ({ name, defaultChecked, onChange, disabled, isLabelOnLeft, children, ...rest }: SwitchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
995
|
+
declare const Switch: ({ name, defaultChecked, onChange, disabled, isLabelOnLeft, children, labels, ...rest }: SwitchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
880
996
|
|
|
881
997
|
type CheckboxListLabel = string | {
|
|
882
998
|
type: 'checkbox';
|
|
@@ -1050,7 +1166,7 @@ type ComboboxProps = {
|
|
|
1050
1166
|
size?: 'small' | 'default';
|
|
1051
1167
|
disabled?: boolean;
|
|
1052
1168
|
placeholder?: string;
|
|
1053
|
-
labels?: Partial<
|
|
1169
|
+
labels?: Partial<ComboboxLabels>;
|
|
1054
1170
|
noMarginBottom?: boolean;
|
|
1055
1171
|
multiple?: boolean;
|
|
1056
1172
|
showSelectedItems?: boolean;
|
|
@@ -1066,9 +1182,11 @@ type TagProps = Omit<Tag$1.RootProps, 'size' | 'variant' | 'colorPalette' | 'chi
|
|
|
1066
1182
|
icon?: React.ReactNode;
|
|
1067
1183
|
onClose?: VoidFunction;
|
|
1068
1184
|
closable?: boolean;
|
|
1185
|
+
/** Override internal UI labels for internationalization support. */
|
|
1186
|
+
labels?: Partial<TagLabels>;
|
|
1069
1187
|
};
|
|
1070
1188
|
|
|
1071
|
-
declare const Tag: ({ label, size, variant, disabled, icon, onClose, closable, ...rest }: TagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1189
|
+
declare const Tag: ({ label, size, variant, disabled, icon, onClose, closable, labels, ...rest }: TagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1072
1190
|
|
|
1073
1191
|
type AdditionalSettingsProps = {
|
|
1074
1192
|
label: string;
|
|
@@ -1109,6 +1227,8 @@ type MapMarkerProps = {
|
|
|
1109
1227
|
count?: number;
|
|
1110
1228
|
mode?: 'dark' | 'light';
|
|
1111
1229
|
variant?: 'cluster' | 'simple-pin' | 'icon';
|
|
1230
|
+
/** Override internal UI labels for internationalization support. */
|
|
1231
|
+
labels?: Partial<MapMarkerLabels>;
|
|
1112
1232
|
};
|
|
1113
1233
|
|
|
1114
1234
|
declare const MapMarker: React$1.ForwardRefExoticComponent<MapMarkerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1167,6 +1287,8 @@ type LayerItemProps = {
|
|
|
1167
1287
|
onInfoClick?: () => void;
|
|
1168
1288
|
isDefaultSelected?: boolean;
|
|
1169
1289
|
onChange?: (name: string, checked: boolean, selectedValue?: string) => void;
|
|
1290
|
+
/** Override internal UI labels for internationalization support. */
|
|
1291
|
+
labels?: Partial<LayerItemLabels>;
|
|
1170
1292
|
};
|
|
1171
1293
|
|
|
1172
1294
|
type LayerGroupContainerProps = Omit<Accordion.RootProps, 'onChange' | 'colorPalette' | 'variant' | 'size' | 'multiple' | 'collapsible'> & {
|
|
@@ -1186,7 +1308,7 @@ declare const LayerGroup: ({ label, caption, value, layerItems, onChangeForRadio
|
|
|
1186
1308
|
|
|
1187
1309
|
declare const LayerGroupContainer: ({ children, defaultValue, ...rest }: LayerGroupContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1188
1310
|
|
|
1189
|
-
declare const LayerItem: ({ name, label, caption, showInfoButton, infoButtonLabel, variant, disabled, onInfoClick, isDefaultSelected, onChange, }: LayerItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1311
|
+
declare const LayerItem: ({ name, label, caption, showInfoButton, infoButtonLabel, variant, disabled, onInfoClick, isDefaultSelected, onChange, labels, }: LayerItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1190
1312
|
|
|
1191
1313
|
type LayerParametersProps = {
|
|
1192
1314
|
label: string;
|
|
@@ -1359,9 +1481,10 @@ type ModalProps = {
|
|
|
1359
1481
|
width?: SizeValue;
|
|
1360
1482
|
height?: SizeValue;
|
|
1361
1483
|
maxHeight?: SizeValue;
|
|
1484
|
+
labels?: Partial<ModalLabels>;
|
|
1362
1485
|
};
|
|
1363
1486
|
|
|
1364
|
-
declare const Modal: ({ header, content, footer, size, width, height, maxHeight, draggable, blocking, open, onClose, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1487
|
+
declare const Modal: ({ header, content, footer, size, width, height, maxHeight, draggable, blocking, open, onClose, labels, }: ModalProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1365
1488
|
|
|
1366
1489
|
type PanelProps = {
|
|
1367
1490
|
header?: React.ReactNode;
|
|
@@ -1386,9 +1509,10 @@ type SheetProps = {
|
|
|
1386
1509
|
className?: string;
|
|
1387
1510
|
blocking?: boolean;
|
|
1388
1511
|
zIndex?: number;
|
|
1512
|
+
labels?: Partial<SheetLabels>;
|
|
1389
1513
|
};
|
|
1390
1514
|
|
|
1391
|
-
declare const Sheet: ({ header, content, footer, open, onClose, minimizedHeight, midHeight, maxFullHeight, defaultSnap, className, blocking, zIndex, }: SheetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1515
|
+
declare const Sheet: ({ header, content, footer, open, onClose, minimizedHeight, midHeight, maxFullHeight, defaultSnap, className, blocking, zIndex, labels, }: SheetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1392
1516
|
|
|
1393
1517
|
type MobileSearchProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'defaultChecked'> & {
|
|
1394
1518
|
value?: string;
|
|
@@ -1444,9 +1568,11 @@ type MobileTabBarProps = {
|
|
|
1444
1568
|
onTabClick?: (tabValue: string) => void;
|
|
1445
1569
|
hideLabels?: boolean;
|
|
1446
1570
|
activationMode?: 'automatic' | 'manual';
|
|
1571
|
+
/** Override internal UI labels for internationalization support. */
|
|
1572
|
+
labels?: Partial<MobileTabBarLabels>;
|
|
1447
1573
|
};
|
|
1448
1574
|
|
|
1449
|
-
declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, hideLabels, activationMode, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1575
|
+
declare const MobileTabBar: ({ defaultValue, tabs, onTabClick, hideLabels, activationMode, labels, }: MobileTabBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1450
1576
|
|
|
1451
1577
|
type NavbarNavigationItemsProps = {
|
|
1452
1578
|
label: string;
|
|
@@ -1562,6 +1688,8 @@ type AvatarProps = {
|
|
|
1562
1688
|
notificationCount?: number;
|
|
1563
1689
|
disabled?: boolean;
|
|
1564
1690
|
customBackgroundColor?: string;
|
|
1691
|
+
/** Override internal UI labels for internationalization support. */
|
|
1692
|
+
labels?: Partial<AvatarLabels>;
|
|
1565
1693
|
};
|
|
1566
1694
|
|
|
1567
1695
|
declare const Avatar: React$1.ForwardRefExoticComponent<AvatarProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -1570,9 +1698,11 @@ type BadgeProps = {
|
|
|
1570
1698
|
hasNotification?: boolean;
|
|
1571
1699
|
notificationCount?: number;
|
|
1572
1700
|
label?: string;
|
|
1701
|
+
/** Override internal UI labels for internationalization support. */
|
|
1702
|
+
labels?: Partial<BadgeLabels>;
|
|
1573
1703
|
};
|
|
1574
1704
|
|
|
1575
|
-
declare const Badge: ({ hasNotification, notificationCount, label }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1705
|
+
declare const Badge: ({ hasNotification, notificationCount, label, labels, }: BadgeProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1576
1706
|
|
|
1577
1707
|
type InlineMessageProps = {
|
|
1578
1708
|
label: string;
|
|
@@ -1596,6 +1726,8 @@ interface AlertProps extends Omit<Alert.RootProps, 'title' | 'variant'> {
|
|
|
1596
1726
|
icon?: React.ReactElement;
|
|
1597
1727
|
onClose?: () => void;
|
|
1598
1728
|
variant?: 'general-white' | 'general-grey' | 'information' | 'success' | 'warning' | 'error';
|
|
1729
|
+
/** Override internal UI labels for internationalization support. */
|
|
1730
|
+
labels?: Partial<AlertBannerLabels>;
|
|
1599
1731
|
}
|
|
1600
1732
|
|
|
1601
1733
|
/** @jsxImportSource @emotion/react */
|
|
@@ -1604,9 +1736,11 @@ declare const AlertBanner: React$1.ForwardRefExoticComponent<AlertProps & React$
|
|
|
1604
1736
|
|
|
1605
1737
|
type ProgressBarProps = {
|
|
1606
1738
|
progress: number;
|
|
1739
|
+
/** Override internal UI labels for internationalization support. */
|
|
1740
|
+
labels?: Partial<ProgressBarLabels>;
|
|
1607
1741
|
};
|
|
1608
1742
|
|
|
1609
|
-
declare const ProgressBar: ({ progress }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1743
|
+
declare const ProgressBar: ({ progress, labels }: ProgressBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1610
1744
|
|
|
1611
1745
|
type StepProgressIndicatorProps = {
|
|
1612
1746
|
steps: {
|
|
@@ -1649,4 +1783,4 @@ declare const Toast: React__default.FC<ToastComponentProps>;
|
|
|
1649
1783
|
declare const showToast: (props: ToastProps) => void;
|
|
1650
1784
|
declare const closeToast: (id?: string) => void;
|
|
1651
1785
|
|
|
1652
|
-
export { AlertBanner, type AlertProps, AnalysisWidget, type AnalysisWidgetActionsProps, type AnalysisWidgetLabels, type AnalysisWidgetProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseMap, type BaseMapLabels, type BaseMapOptionProps, type BaseMapProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonLabels, type ButtonProps, Checkbox, CheckboxList, type CheckboxListLabel, type CheckboxListLabels, type CheckboxListProps, CheckboxOptionCard, type CheckboxOptionCardItemProps, type CheckboxOptionCardProps, type CheckboxProps, CloseButton, type CloseButtonLabels, type CloseButtonProps, ClusterPoint, Combobox, type ComboboxProps, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, type ExtendableCardProps, Footer, type FooterProps, FormContainer, type FormContainerProps, IconButton, type IconButtonProps, InlineMessage, type InlineMessageLabels, type InlineMessageProps, InputWithUnits, type InputWithUnitsProps, ItemCount, type ItemCountLabels, type ItemCountProps, LayerGroup, LayerGroupContainer, type LayerGroupContainerProps, type LayerGroupLabels, type LayerGroupProps, LayerItem, type LayerItemProps, LayerParameters, type LayerParametersProps, LegendItem, type LegendItemLabels, type LegendItemProps, List, type ListItemProps, type ListItemVariant, type ListProps, MapControlsToolbar, type MapControlsToolbarLabels, type MapControlsToolbarProps, MapMarker, type MapMarkerProps, MapMarkers, MapPopUp, type MapPopUpLabels, type MapPopUpProps, Menu, type MenuItemProps, type MenuProps, MobileSearch, type MobileSearchLabels, type MobileSearchProps, MobileTabBar, type MobileTabBarItemProps, type MobileTabBarProps, Modal, type ModalProps, MultiActionButton, type MultiActionButtonProps, Navbar, type NavbarLabels, type NavbarNavigationItemsProps, type NavbarProps, NavigationRail, type NavigationRailLabels, type NavigationRailProps, type NavigationRailTabProps, type OpacityControlLabels, OptionCard, type OptionCardItemProps, type OptionCardProps, Pagination, type PaginationLabels, type PaginationProps, Panel, type PanelProps, Password, type PasswordLabels, type PasswordProps, ProgressBar, type ProgressBarProps, QualitativeAttribute, type QualitativeAttributeLabels, type QualitativeAttributeProps, Radio, RadioGroup, type RadioGroupProps, RadioList, type RadioListLabels, type RadioListProps, type RadioProps, RichTextEditor, type RichTextEditorControlKey, type RichTextEditorLabels, type RichTextEditorProps, type RichTextEditorSize, SSOButtons, ScaleBar, type ScaleBarProps, Search, type SearchLabels, type SearchProps, Select, type SelectItemProps, type SelectLabels, type SelectProps, Sheet, type SheetProps, SimpleMapPin, Slider, SliderInput, type SliderInputProps, type SliderMarksProps, type SliderProps, StepProgressIndicator, type StepProgressIndicatorLabels, type StepProgressIndicatorProps, type StrengthLevel, Switch, type SwitchProps, TabBar, type TabBarItemProps, type TabBarProps, Table, TableCell, type TableLabels, type TableProps, TableRow, Tag, type TagProps, TextInput, type TextInputLabels, type TextInputProps, Textarea, type TextareaLabels, type TextareaProps, Toast, type ToastComponentProps, type ToastLabels, type ToastProps, Toolbar, type ToolbarButtonProps, type ToolbarItem, type ToolbarLabels, type ToolbarProps, Tooltip, type TooltipProps, closeToast, designSystemStyles, designSystemStylesForTailwind, getThemedBorderWidth, getThemedColor, getThemedFontSize, getThemedLineHeight, getThemedRadius, getThemedSpacing, showToast };
|
|
1786
|
+
export { AlertBanner, type AlertBannerLabels, type AlertProps, AnalysisWidget, type AnalysisWidgetActionsProps, type AnalysisWidgetLabels, type AnalysisWidgetProps, Avatar, type AvatarLabels, type AvatarProps, Badge, type BadgeLabels, type BadgeProps, BaseMap, type BaseMapLabels, type BaseMapOptionProps, type BaseMapProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonLabels, type ButtonProps, Checkbox, CheckboxList, type CheckboxListLabel, type CheckboxListLabels, type CheckboxListProps, CheckboxOptionCard, type CheckboxOptionCardItemProps, type CheckboxOptionCardProps, type CheckboxProps, CloseButton, type CloseButtonLabels, type CloseButtonProps, ClusterPoint, Combobox, type ComboboxLabels, type ComboboxProps, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, type ExtendableCardProps, Footer, type FooterProps, FormContainer, type FormContainerProps, IconButton, type IconButtonProps, InlineMessage, type InlineMessageLabels, type InlineMessageProps, InputWithUnits, type InputWithUnitsProps, ItemCount, type ItemCountLabels, type ItemCountProps, LayerGroup, LayerGroupContainer, type LayerGroupContainerProps, type LayerGroupLabels, type LayerGroupProps, LayerItem, type LayerItemLabels, type LayerItemProps, LayerParameters, type LayerParametersProps, LegendItem, type LegendItemLabels, type LegendItemProps, List, type ListItemProps, type ListItemVariant, type ListProps, MapControlsToolbar, type MapControlsToolbarLabels, type MapControlsToolbarProps, MapMarker, type MapMarkerLabels, type MapMarkerProps, MapMarkers, MapPopUp, type MapPopUpLabels, type MapPopUpProps, Menu, type MenuItemProps, type MenuLabels, type MenuProps, MobileSearch, type MobileSearchLabels, type MobileSearchProps, MobileTabBar, type MobileTabBarItemProps, type MobileTabBarLabels, type MobileTabBarProps, Modal, type ModalLabels, type ModalProps, MultiActionButton, type MultiActionButtonProps, Navbar, type NavbarLabels, type NavbarNavigationItemsProps, type NavbarProps, NavigationRail, type NavigationRailLabels, type NavigationRailProps, type NavigationRailTabProps, type OpacityControlLabels, OptionCard, type OptionCardItemProps, type OptionCardProps, Pagination, type PaginationLabels, type PaginationProps, Panel, type PanelProps, Password, type PasswordLabels, type PasswordProps, ProgressBar, type ProgressBarLabels, type ProgressBarProps, QualitativeAttribute, type QualitativeAttributeLabels, type QualitativeAttributeProps, Radio, RadioGroup, type RadioGroupProps, RadioList, type RadioListLabels, type RadioListProps, type RadioProps, RichTextEditor, type RichTextEditorControlKey, type RichTextEditorLabels, type RichTextEditorProps, type RichTextEditorSize, SSOButtons, ScaleBar, type ScaleBarProps, Search, type SearchLabels, type SearchProps, Select, type SelectItemProps, type SelectLabels, type SelectProps, Sheet, type SheetLabels, type SheetProps, SimpleMapPin, Slider, SliderInput, type SliderInputProps, type SliderMarksProps, type SliderProps, StepProgressIndicator, type StepProgressIndicatorLabels, type StepProgressIndicatorProps, type StrengthLevel, Switch, type SwitchLabels, type SwitchProps, TabBar, type TabBarItemProps, type TabBarProps, Table, TableCell, type TableLabels, type TableProps, TableRow, Tag, type TagLabels, type TagProps, TextInput, type TextInputLabels, type TextInputProps, Textarea, type TextareaLabels, type TextareaProps, Toast, type ToastComponentProps, type ToastLabels, type ToastProps, Toolbar, type ToolbarButtonProps, type ToolbarItem, type ToolbarLabels, type ToolbarProps, Tooltip, type TooltipProps, closeToast, designSystemStyles, designSystemStylesForTailwind, getThemedBorderWidth, getThemedColor, getThemedFontSize, getThemedLineHeight, getThemedRadius, getThemedSpacing, showToast };
|