@mmb-digital/design-system-web 0.1.151 → 0.1.152
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 +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -9
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -266,6 +266,7 @@ interface SpanButtonProps extends DesignSystemBaseProps {
|
|
|
266
266
|
ariaDisabled?: boolean;
|
|
267
267
|
ariaLabel?: string;
|
|
268
268
|
children?: ReactNode;
|
|
269
|
+
className?: string;
|
|
269
270
|
disabled?: boolean;
|
|
270
271
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
271
272
|
}
|
|
@@ -528,38 +529,40 @@ interface TooltipDelays {
|
|
|
528
529
|
/** ms */
|
|
529
530
|
openDelay?: number;
|
|
530
531
|
}
|
|
532
|
+
interface BaseTooltipInfoProps {
|
|
533
|
+
closeButtonAriaLabel?: string;
|
|
534
|
+
tooltipActivatorAriaLabel?: string;
|
|
535
|
+
}
|
|
531
536
|
|
|
532
|
-
interface TooltipInfoDisplayableCheckProps {
|
|
537
|
+
interface TooltipInfoDisplayableCheckProps extends BaseTooltipInfoProps, DesignSystemBaseProps {
|
|
533
538
|
body: FormattedHtmlMessageProps;
|
|
534
|
-
colorScheme?: ColorScheme;
|
|
535
539
|
displayMethod: TooltipInfoDisplayMethod;
|
|
536
540
|
title?: FormattedHtmlMessageProps | undefined;
|
|
537
541
|
}
|
|
542
|
+
declare const TooltipInfoDisplayableCheck: (props: TooltipInfoDisplayableCheckProps) => React__default.JSX.Element | null;
|
|
538
543
|
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
interface TooltipInfoConditionalProps {
|
|
542
|
-
colorScheme?: ColorScheme;
|
|
544
|
+
interface TooltipInfoConditionalProps extends DesignSystemBaseProps, BaseTooltipInfoProps {
|
|
543
545
|
displayMethod: TooltipInfoDisplayMethod;
|
|
544
546
|
floatingElement?: Partial<TooltipFloatingElement> | undefined;
|
|
545
547
|
}
|
|
546
|
-
|
|
547
|
-
declare const TooltipInfoConditional: React__default.FC<TooltipInfoConditionalProps>;
|
|
548
|
+
declare const TooltipInfoConditional: (props: TooltipInfoConditionalProps) => React__default.JSX.Element | null;
|
|
548
549
|
|
|
549
550
|
type CreateTooltipFloatingElementHookReturnFunction = (body: FormattedHtmlMessageProps, title?: MessageDescriptor | undefined) => TooltipFloatingElement | undefined;
|
|
550
551
|
|
|
551
552
|
declare const useCreateTooltipFloatingElement: () => CreateTooltipFloatingElementHookReturnFunction;
|
|
552
553
|
|
|
553
|
-
interface TooltipInfoProps extends DesignSystemBaseProps, TooltipDelays {
|
|
554
|
+
interface TooltipInfoProps extends DesignSystemBaseProps, TooltipDelays, BaseTooltipInfoProps {
|
|
554
555
|
floatingElement: TooltipFloatingElement;
|
|
555
556
|
}
|
|
556
557
|
declare const TooltipInfo: (props: TooltipInfoProps) => React__default.JSX.Element;
|
|
557
558
|
|
|
558
559
|
interface TooltipGeneralProps extends DesignSystemBaseProps, TooltipDelays {
|
|
560
|
+
closeButtonAriaLabel?: string;
|
|
559
561
|
floatingElement: TooltipFloatingElement;
|
|
560
562
|
onClose?: (() => void) | undefined;
|
|
561
563
|
onOpen?: (() => void) | undefined;
|
|
562
564
|
placement?: TooltipPlacement | undefined;
|
|
565
|
+
portalRootElement?: HTMLElement | React__default.MutableRefObject<HTMLElement | null> | null;
|
|
563
566
|
renderParent: TooltipRenderParent;
|
|
564
567
|
}
|
|
565
568
|
declare const TooltipGeneral: (props: TooltipGeneralProps) => React__default.JSX.Element;
|