@worldresources/wri-design-systems 2.207.0 → 2.208.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 +26 -19
- package/dist/index.d.ts +11 -1
- package/dist/index.esm.js +26 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -220,6 +220,13 @@ type ButtonLabels = {
|
|
|
220
220
|
/** aria-label applied to the button during loading state. Default: "Loading" */
|
|
221
221
|
loadingLabel: string;
|
|
222
222
|
};
|
|
223
|
+
/** Labels for MultiActionButton internal UI strings. */
|
|
224
|
+
type MultiActionButtonLabels = {
|
|
225
|
+
/** aria-label on the dropdown trigger. Default: (label) => `Open ${label} options` */
|
|
226
|
+
openOptionsLabel: (label: string) => string;
|
|
227
|
+
/** aria-label on the whole control when disabled. Default: (label) => `${label} action button with menu, disabled` */
|
|
228
|
+
disabledAriaLabel: (label: string) => string;
|
|
229
|
+
};
|
|
223
230
|
/** Labels for BaseMap internal UI strings. */
|
|
224
231
|
type BaseMapLabels = {
|
|
225
232
|
/**
|
|
@@ -629,6 +636,7 @@ type DesignSystemLabels = {
|
|
|
629
636
|
AnalysisWidget?: Partial<AnalysisWidgetLabels>;
|
|
630
637
|
Table?: Partial<TableLabels>;
|
|
631
638
|
Button?: Partial<ButtonLabels>;
|
|
639
|
+
MultiActionButton?: Partial<MultiActionButtonLabels>;
|
|
632
640
|
BaseMap?: Partial<BaseMapLabels>;
|
|
633
641
|
Search?: Partial<SearchLabels>;
|
|
634
642
|
MobileSearch?: Partial<MobileSearchLabels>;
|
|
@@ -852,9 +860,11 @@ type MultiActionButtonProps = Omit<ButtonProps, 'label' | 'leftIcon' | 'rightIco
|
|
|
852
860
|
onClick: VoidFunction;
|
|
853
861
|
disabled?: boolean;
|
|
854
862
|
}[];
|
|
863
|
+
/** Override internal UI labels for internationalization support. */
|
|
864
|
+
labels?: Partial<MultiActionButtonLabels>;
|
|
855
865
|
};
|
|
856
866
|
|
|
857
|
-
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, disabled: isDisabledProp, mainActionLeftIcon, mainActionRightIcon, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
867
|
+
declare const MultiActionButton: ({ variant, size, mainActionLabel, mainActionOnClick, otherActions, disabled: isDisabledProp, mainActionLeftIcon, mainActionRightIcon, labels, ...rest }: MultiActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
858
868
|
|
|
859
869
|
type TooltipProps = {
|
|
860
870
|
children: React.ReactNode;
|