@norges-domstoler/dds-components 18.2.0 → 18.3.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 +2 -2
- package/dist/index.css +41 -20
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +40 -10
- package/dist/index.d.ts +40 -10
- package/dist/index.js +310 -244
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +205 -136
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -95,6 +95,8 @@ import { forwardRef } from "react";
|
|
|
95
95
|
// src/components/helpers/Backdrop/Backdrop.module.css
|
|
96
96
|
var Backdrop_default = {
|
|
97
97
|
backdrop: "Backdrop_backdrop",
|
|
98
|
+
drawer: "Backdrop_drawer",
|
|
99
|
+
modal: "Backdrop_modal",
|
|
98
100
|
"backdrop--visible": "Backdrop_backdrop--visible",
|
|
99
101
|
"backdrop--hidden": "Backdrop_backdrop--hidden"
|
|
100
102
|
};
|
|
@@ -287,13 +289,17 @@ function useElementHeight(element) {
|
|
|
287
289
|
// src/components/helpers/Backdrop/Backdrop.tsx
|
|
288
290
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
289
291
|
var Backdrop = forwardRef(
|
|
290
|
-
({ isMounted, ...props }, ref) => {
|
|
292
|
+
({ isMounted, zIndex, ...props }, ref) => {
|
|
291
293
|
const isMountedCn = isMounted ? "visible" : "hidden";
|
|
292
294
|
return /* @__PURE__ */ jsx2(
|
|
293
295
|
"div",
|
|
294
296
|
{
|
|
295
297
|
ref,
|
|
296
|
-
className: cn(
|
|
298
|
+
className: cn(
|
|
299
|
+
Backdrop_default.backdrop,
|
|
300
|
+
Backdrop_default[zIndex],
|
|
301
|
+
Backdrop_default[`backdrop--${isMountedCn}`]
|
|
302
|
+
),
|
|
297
303
|
...props
|
|
298
304
|
}
|
|
299
305
|
);
|
|
@@ -3367,6 +3373,8 @@ var OverflowMenu_default = {
|
|
|
3367
3373
|
container: "OverflowMenu_container",
|
|
3368
3374
|
list: "OverflowMenu_list",
|
|
3369
3375
|
list__item: "OverflowMenu_list__item",
|
|
3376
|
+
default: "OverflowMenu_default",
|
|
3377
|
+
danger: "OverflowMenu_danger",
|
|
3370
3378
|
"list__item--link": "OverflowMenu_list__item--link",
|
|
3371
3379
|
icon: "OverflowMenu_icon",
|
|
3372
3380
|
divider: "OverflowMenu_divider",
|
|
@@ -3463,7 +3471,15 @@ OverflowMenu.displayName = "OverflowMenu";
|
|
|
3463
3471
|
import { forwardRef as forwardRef20, useEffect as useEffect13, useRef as useRef6 } from "react";
|
|
3464
3472
|
import { jsx as jsx187, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
3465
3473
|
var OverflowMenuButton = forwardRef20((props, ref) => {
|
|
3466
|
-
const {
|
|
3474
|
+
const {
|
|
3475
|
+
id,
|
|
3476
|
+
icon,
|
|
3477
|
+
children,
|
|
3478
|
+
className,
|
|
3479
|
+
onClick,
|
|
3480
|
+
purpose = "default",
|
|
3481
|
+
...rest
|
|
3482
|
+
} = props;
|
|
3467
3483
|
const itemRef = useRef6(null);
|
|
3468
3484
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
3469
3485
|
const { onToggle, onClose, registerItem, unregisterItem, focusedRef } = useOverflowMenu();
|
|
@@ -3480,6 +3496,7 @@ var OverflowMenuButton = forwardRef20((props, ref) => {
|
|
|
3480
3496
|
className: cn(
|
|
3481
3497
|
className,
|
|
3482
3498
|
OverflowMenu_default.list__item,
|
|
3499
|
+
OverflowMenu_default[purpose],
|
|
3483
3500
|
typographyStyles_default["body-small"],
|
|
3484
3501
|
OverflowMenu_default["list__item--link"],
|
|
3485
3502
|
focus_default["focusable--inset"]
|
|
@@ -3504,7 +3521,16 @@ OverflowMenuButton.displayName = "OverflowMenuButton";
|
|
|
3504
3521
|
import { forwardRef as forwardRef21, useEffect as useEffect14, useRef as useRef7 } from "react";
|
|
3505
3522
|
import { jsx as jsx188, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
3506
3523
|
var OverflowMenuLink = forwardRef21((props, ref) => {
|
|
3507
|
-
const {
|
|
3524
|
+
const {
|
|
3525
|
+
id,
|
|
3526
|
+
href,
|
|
3527
|
+
icon,
|
|
3528
|
+
className,
|
|
3529
|
+
onClick,
|
|
3530
|
+
children,
|
|
3531
|
+
purpose = "default",
|
|
3532
|
+
...rest
|
|
3533
|
+
} = props;
|
|
3508
3534
|
const itemRef = useRef7(null);
|
|
3509
3535
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
3510
3536
|
const { onToggle, onClose, registerItem, unregisterItem, focusedRef } = useOverflowMenu();
|
|
@@ -3521,6 +3547,7 @@ var OverflowMenuLink = forwardRef21((props, ref) => {
|
|
|
3521
3547
|
className: cn(
|
|
3522
3548
|
className,
|
|
3523
3549
|
OverflowMenu_default.list__item,
|
|
3550
|
+
OverflowMenu_default[purpose],
|
|
3524
3551
|
typographyStyles_default["body-small"],
|
|
3525
3552
|
OverflowMenu_default["list__item--link"],
|
|
3526
3553
|
focus_default["focusable--inset"]
|
|
@@ -3608,7 +3635,7 @@ var OverflowMenuList = forwardRef24((props, ref) => {
|
|
|
3608
3635
|
import { forwardRef as forwardRef25 } from "react";
|
|
3609
3636
|
import { jsx as jsx192, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
3610
3637
|
var OverflowMenuSpan = forwardRef25((props, ref) => {
|
|
3611
|
-
const { icon, children, className, ...rest } = props;
|
|
3638
|
+
const { icon, children, className, purpose = "default", ...rest } = props;
|
|
3612
3639
|
return /* @__PURE__ */ jsx192("li", { children: /* @__PURE__ */ jsxs30(
|
|
3613
3640
|
"span",
|
|
3614
3641
|
{
|
|
@@ -3616,6 +3643,7 @@ var OverflowMenuSpan = forwardRef25((props, ref) => {
|
|
|
3616
3643
|
className: cn(
|
|
3617
3644
|
className,
|
|
3618
3645
|
OverflowMenu_default.list__item,
|
|
3646
|
+
OverflowMenu_default[purpose],
|
|
3619
3647
|
typographyStyles_default["body-small"]
|
|
3620
3648
|
),
|
|
3621
3649
|
...rest,
|
|
@@ -5386,7 +5414,16 @@ var Drawer = forwardRef48((props, ref) => {
|
|
|
5386
5414
|
]
|
|
5387
5415
|
}
|
|
5388
5416
|
);
|
|
5389
|
-
const component = withBackdrop ? /* @__PURE__ */ jsx225(
|
|
5417
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx225(
|
|
5418
|
+
Backdrop,
|
|
5419
|
+
{
|
|
5420
|
+
zIndex: "drawer",
|
|
5421
|
+
isMounted,
|
|
5422
|
+
ref: backdropRef,
|
|
5423
|
+
onClick: onBackdropClick,
|
|
5424
|
+
children: drawer
|
|
5425
|
+
}
|
|
5426
|
+
) : drawer;
|
|
5390
5427
|
return (isOpen || hasTransitionedIn) && portalTarget ? createPortal(component, portalTarget) : null;
|
|
5391
5428
|
});
|
|
5392
5429
|
Drawer.displayName = "Drawer";
|
|
@@ -6010,59 +6047,63 @@ var Tooltip = forwardRef52(
|
|
|
6010
6047
|
"aria-describedby": uniqueTooltipId
|
|
6011
6048
|
})
|
|
6012
6049
|
);
|
|
6013
|
-
const containerProps = {
|
|
6014
|
-
...getBaseHTMLProps(id, cn(className, Tooltip_default.container), htmlProps, rest),
|
|
6015
|
-
style,
|
|
6016
|
-
onMouseLeave: combineHandlers(closeTooltip, onMouseLeave),
|
|
6017
|
-
onMouseOver: combineHandlers(openTooltip, onMouseOver)
|
|
6018
|
-
};
|
|
6019
|
-
const wrapperProps = {
|
|
6020
|
-
id: uniqueTooltipId,
|
|
6021
|
-
ref: combinedRef,
|
|
6022
|
-
role: "tooltip",
|
|
6023
|
-
"aria-hidden": !open,
|
|
6024
|
-
open: open && inView,
|
|
6025
|
-
style: { ...positionStyles.floating }
|
|
6026
|
-
};
|
|
6027
6050
|
const openCn = open && inView ? "open" : "closed";
|
|
6028
|
-
return /* @__PURE__ */ jsxs47(
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
+
return /* @__PURE__ */ jsxs47(
|
|
6052
|
+
"div",
|
|
6053
|
+
{
|
|
6054
|
+
...getBaseHTMLProps(
|
|
6055
|
+
id,
|
|
6056
|
+
cn(className, Tooltip_default.container),
|
|
6057
|
+
htmlProps,
|
|
6058
|
+
rest
|
|
6059
|
+
),
|
|
6060
|
+
style,
|
|
6061
|
+
onMouseLeave: combineHandlers(closeTooltip, onMouseLeave),
|
|
6062
|
+
onMouseOver: combineHandlers(openTooltip, onMouseOver),
|
|
6063
|
+
children: [
|
|
6064
|
+
anchorElement,
|
|
6065
|
+
/* @__PURE__ */ jsxs47(
|
|
6066
|
+
Paper,
|
|
6067
|
+
{
|
|
6068
|
+
id: uniqueTooltipId,
|
|
6069
|
+
ref: combinedRef,
|
|
6070
|
+
role: "tooltip",
|
|
6071
|
+
"aria-hidden": !open,
|
|
6072
|
+
style: { ...positionStyles.floating },
|
|
6073
|
+
elevation: 1,
|
|
6074
|
+
border: "subtle",
|
|
6075
|
+
className: cn(
|
|
6076
|
+
Tooltip_default.paper,
|
|
6077
|
+
typographyStyles_default["body-medium"],
|
|
6078
|
+
utilStyles_default["visibility-transition"],
|
|
6079
|
+
utilStyles_default[`visibility-transition--${openCn}`]
|
|
6051
6080
|
),
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
{
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6081
|
+
children: [
|
|
6082
|
+
text,
|
|
6083
|
+
/* @__PURE__ */ jsx232("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs47("svg", { width: "36", height: "9", children: [
|
|
6084
|
+
/* @__PURE__ */ jsx232(
|
|
6085
|
+
"path",
|
|
6086
|
+
{
|
|
6087
|
+
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
6088
|
+
className: Tooltip_default["svg-arrow__background"]
|
|
6089
|
+
}
|
|
6090
|
+
),
|
|
6091
|
+
/* @__PURE__ */ jsx232(
|
|
6092
|
+
"path",
|
|
6093
|
+
{
|
|
6094
|
+
fillRule: "evenodd",
|
|
6095
|
+
clipRule: "evenodd",
|
|
6096
|
+
d: "M26.5.5l-6.732 6.94a2.5 2.5 0 01-3.536 0L9.5.5H11l5.94 6.232a1.5 1.5 0 002.12 0L25 .5h1.5z",
|
|
6097
|
+
className: Tooltip_default["svg-arrow__border"]
|
|
6098
|
+
}
|
|
6099
|
+
)
|
|
6100
|
+
] }) })
|
|
6101
|
+
]
|
|
6102
|
+
}
|
|
6103
|
+
)
|
|
6104
|
+
]
|
|
6105
|
+
}
|
|
6106
|
+
);
|
|
6066
6107
|
}
|
|
6067
6108
|
);
|
|
6068
6109
|
Tooltip.displayName = "Tooltip";
|
|
@@ -7867,6 +7908,7 @@ var Modal = forwardRef72((props, ref) => {
|
|
|
7867
7908
|
/* @__PURE__ */ jsx261(
|
|
7868
7909
|
Backdrop,
|
|
7869
7910
|
{
|
|
7911
|
+
zIndex: "modal",
|
|
7870
7912
|
isMounted: isOpen && hasTransitionedIn,
|
|
7871
7913
|
ref: backdropRef,
|
|
7872
7914
|
onClick: onBackdropClick,
|
|
@@ -9549,7 +9591,7 @@ var getCallingCode = (s) => {
|
|
|
9549
9591
|
};
|
|
9550
9592
|
|
|
9551
9593
|
// src/components/Popover/Popover.tsx
|
|
9552
|
-
import { forwardRef as forwardRef79 } from "react";
|
|
9594
|
+
import { forwardRef as forwardRef79, useEffect as useEffect25 } from "react";
|
|
9553
9595
|
|
|
9554
9596
|
// src/components/Popover/Popover.module.css
|
|
9555
9597
|
var Popover_default = {
|
|
@@ -9559,6 +9601,14 @@ var Popover_default = {
|
|
|
9559
9601
|
"close-button": "Popover_close-button"
|
|
9560
9602
|
};
|
|
9561
9603
|
|
|
9604
|
+
// src/components/Popover/Popover.context.tsx
|
|
9605
|
+
import {
|
|
9606
|
+
createContext as createContext5,
|
|
9607
|
+
useContext as useContext12
|
|
9608
|
+
} from "react";
|
|
9609
|
+
var PopoverContext = createContext5({});
|
|
9610
|
+
var usePopoverContext = () => useContext12(PopoverContext);
|
|
9611
|
+
|
|
9562
9612
|
// src/components/Popover/Popover.tsx
|
|
9563
9613
|
import { jsx as jsx269, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9564
9614
|
var Popover = forwardRef79(
|
|
@@ -9576,17 +9626,12 @@ var Popover = forwardRef79(
|
|
|
9576
9626
|
offset = 8,
|
|
9577
9627
|
sizeProps,
|
|
9578
9628
|
returnFocusOnBlur = true,
|
|
9579
|
-
id,
|
|
9580
9629
|
className,
|
|
9581
9630
|
htmlProps = {},
|
|
9582
9631
|
...rest
|
|
9583
9632
|
} = props;
|
|
9584
9633
|
const hasTransitionedIn = useMountTransition(isOpen, 400);
|
|
9585
|
-
const {
|
|
9586
|
-
placement,
|
|
9587
|
-
offset
|
|
9588
|
-
});
|
|
9589
|
-
refs.setReference(anchorElement || null);
|
|
9634
|
+
const { floatStyling, setFloatOptions, floatingRef, popoverId } = usePopoverContext();
|
|
9590
9635
|
const popoverRef = useReturnFocusOnBlur(
|
|
9591
9636
|
isOpen && hasTransitionedIn && returnFocusOnBlur,
|
|
9592
9637
|
() => {
|
|
@@ -9595,23 +9640,27 @@ var Popover = forwardRef79(
|
|
|
9595
9640
|
},
|
|
9596
9641
|
anchorElement && anchorElement
|
|
9597
9642
|
);
|
|
9598
|
-
const multiRef = useCombinedRef(ref, popoverRef,
|
|
9643
|
+
const multiRef = useCombinedRef(ref, popoverRef, floatingRef);
|
|
9644
|
+
useEffect25(() => {
|
|
9645
|
+
setFloatOptions && setFloatOptions({ placement, offset });
|
|
9646
|
+
}, []);
|
|
9599
9647
|
const elements = [popoverRef.current];
|
|
9600
9648
|
if (anchorElement) elements.push(anchorElement);
|
|
9601
9649
|
const hasTitle = !!title;
|
|
9602
9650
|
useOnClickOutside(elements, () => {
|
|
9603
9651
|
if (isOpen) onClose && onClose();
|
|
9604
9652
|
});
|
|
9653
|
+
const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
|
|
9605
9654
|
return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs63(
|
|
9606
9655
|
Paper,
|
|
9607
9656
|
{
|
|
9608
9657
|
...getBaseHTMLProps(
|
|
9609
|
-
|
|
9658
|
+
popoverId,
|
|
9610
9659
|
cn(
|
|
9611
9660
|
className,
|
|
9612
9661
|
Popover_default.container,
|
|
9613
9662
|
utilStyles_default["visibility-transition"],
|
|
9614
|
-
|
|
9663
|
+
utilStyles_default[`visibility-transition--${openCn}`],
|
|
9615
9664
|
focus_default.focusable
|
|
9616
9665
|
),
|
|
9617
9666
|
htmlProps,
|
|
@@ -9619,7 +9668,11 @@ var Popover = forwardRef79(
|
|
|
9619
9668
|
),
|
|
9620
9669
|
ref: multiRef,
|
|
9621
9670
|
tabIndex: -1,
|
|
9622
|
-
style: {
|
|
9671
|
+
style: {
|
|
9672
|
+
...htmlProps.style,
|
|
9673
|
+
...floatStyling,
|
|
9674
|
+
...sizeProps
|
|
9675
|
+
},
|
|
9623
9676
|
role: "dialog",
|
|
9624
9677
|
elevation: 3,
|
|
9625
9678
|
border: "subtle",
|
|
@@ -9659,7 +9712,7 @@ import {
|
|
|
9659
9712
|
useRef as useRef31,
|
|
9660
9713
|
useState as useState21
|
|
9661
9714
|
} from "react";
|
|
9662
|
-
import {
|
|
9715
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
9663
9716
|
var PopoverGroup = ({
|
|
9664
9717
|
isOpen = false,
|
|
9665
9718
|
onCloseButtonClick,
|
|
@@ -9670,6 +9723,8 @@ var PopoverGroup = ({
|
|
|
9670
9723
|
const [open, setOpen] = useState21(isOpen);
|
|
9671
9724
|
const generatedId = useId18();
|
|
9672
9725
|
const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
|
|
9726
|
+
const [floatOptions, setFloatOptions] = useState21();
|
|
9727
|
+
const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
|
|
9673
9728
|
const handleOnCloseButtonClick = () => {
|
|
9674
9729
|
setOpen(false);
|
|
9675
9730
|
onCloseButtonClick && onCloseButtonClick();
|
|
@@ -9679,7 +9734,8 @@ var PopoverGroup = ({
|
|
|
9679
9734
|
onTriggerClick && onTriggerClick();
|
|
9680
9735
|
};
|
|
9681
9736
|
const buttonRef = useRef31(null);
|
|
9682
|
-
const
|
|
9737
|
+
const anchorRef = refs.setReference;
|
|
9738
|
+
const combinedRef = useCombinedRef(buttonRef, anchorRef);
|
|
9683
9739
|
useOnKeyDown(["Esc", "Escape"], () => {
|
|
9684
9740
|
var _a;
|
|
9685
9741
|
if (open) {
|
|
@@ -9688,47 +9744,57 @@ var PopoverGroup = ({
|
|
|
9688
9744
|
}
|
|
9689
9745
|
});
|
|
9690
9746
|
const handleClose = () => setOpen(false);
|
|
9747
|
+
const isAnchorChild = (i) => i === 0;
|
|
9691
9748
|
const Children8 = ReactChildren5.map(children, (child, childIndex) => {
|
|
9692
|
-
return isValidElement7(child) && (childIndex
|
|
9749
|
+
return isValidElement7(child) && (isAnchorChild(childIndex) ? cloneElement6(child, {
|
|
9693
9750
|
"aria-haspopup": "dialog",
|
|
9694
9751
|
"aria-controls": uniquePopoverId,
|
|
9695
9752
|
"aria-expanded": open,
|
|
9696
9753
|
onClick: handleOnTriggerClick,
|
|
9697
|
-
ref:
|
|
9754
|
+
ref: combinedRef
|
|
9698
9755
|
}) : cloneElement6(child, {
|
|
9699
9756
|
isOpen: open,
|
|
9700
9757
|
"aria-hidden": !open,
|
|
9701
|
-
id: uniquePopoverId,
|
|
9702
9758
|
onCloseButtonClick: handleOnCloseButtonClick,
|
|
9703
9759
|
anchorElement: buttonRef.current,
|
|
9704
|
-
ref: popoverRef,
|
|
9705
9760
|
onClose: handleClose
|
|
9706
9761
|
}));
|
|
9707
9762
|
});
|
|
9708
|
-
return /* @__PURE__ */ jsx270(
|
|
9763
|
+
return /* @__PURE__ */ jsx270(
|
|
9764
|
+
PopoverContext.Provider,
|
|
9765
|
+
{
|
|
9766
|
+
value: {
|
|
9767
|
+
floatStyling: positionStyles.floating,
|
|
9768
|
+
setFloatOptions,
|
|
9769
|
+
floatingRef: refs.setFloating,
|
|
9770
|
+
popoverId: uniquePopoverId
|
|
9771
|
+
},
|
|
9772
|
+
children: Children8
|
|
9773
|
+
}
|
|
9774
|
+
);
|
|
9709
9775
|
};
|
|
9710
9776
|
PopoverGroup.displayName = "PopoverGroup";
|
|
9711
9777
|
|
|
9712
9778
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
9713
9779
|
import {
|
|
9714
9780
|
Children as Children4,
|
|
9715
|
-
Fragment as
|
|
9781
|
+
Fragment as Fragment10,
|
|
9716
9782
|
cloneElement as cloneElement7,
|
|
9717
9783
|
forwardRef as forwardRef80,
|
|
9718
9784
|
isValidElement as isValidElement8,
|
|
9719
|
-
useEffect as
|
|
9785
|
+
useEffect as useEffect26,
|
|
9720
9786
|
useMemo as useMemo3,
|
|
9721
9787
|
useState as useState22
|
|
9722
9788
|
} from "react";
|
|
9723
9789
|
|
|
9724
9790
|
// src/components/ProgressTracker/ProgressTracker.context.tsx
|
|
9725
|
-
import { createContext as
|
|
9726
|
-
var ProgressTrackerContext =
|
|
9791
|
+
import { createContext as createContext6, useContext as useContext13 } from "react";
|
|
9792
|
+
var ProgressTrackerContext = createContext6(
|
|
9727
9793
|
{
|
|
9728
9794
|
activeStep: 0
|
|
9729
9795
|
}
|
|
9730
9796
|
);
|
|
9731
|
-
var useProgressTrackerContext = () =>
|
|
9797
|
+
var useProgressTrackerContext = () => useContext13(ProgressTrackerContext);
|
|
9732
9798
|
|
|
9733
9799
|
// src/components/ProgressTracker/ProgressTracker.module.css
|
|
9734
9800
|
var ProgressTracker_default = {
|
|
@@ -9753,7 +9819,7 @@ var ProgressTracker_default = {
|
|
|
9753
9819
|
|
|
9754
9820
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
9755
9821
|
import { useMemo as useMemo2 } from "react";
|
|
9756
|
-
import { Fragment as
|
|
9822
|
+
import { Fragment as Fragment9, jsx as jsx271, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9757
9823
|
var toItemState = (active, completed, disabled) => {
|
|
9758
9824
|
if (disabled) {
|
|
9759
9825
|
return "disabled";
|
|
@@ -9803,7 +9869,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
9803
9869
|
}
|
|
9804
9870
|
return index + 1;
|
|
9805
9871
|
}, [completed, icon, index]);
|
|
9806
|
-
const stepContent = /* @__PURE__ */ jsxs64(
|
|
9872
|
+
const stepContent = /* @__PURE__ */ jsxs64(Fragment9, { children: [
|
|
9807
9873
|
/* @__PURE__ */ jsx271(
|
|
9808
9874
|
"div",
|
|
9809
9875
|
{
|
|
@@ -9877,7 +9943,7 @@ var ProgressTracker = (() => {
|
|
|
9877
9943
|
setActiveStep(step);
|
|
9878
9944
|
onStepChange && onStepChange(step);
|
|
9879
9945
|
};
|
|
9880
|
-
|
|
9946
|
+
useEffect26(() => {
|
|
9881
9947
|
if (activeStep !== void 0 && activeStep != thisActiveStep) {
|
|
9882
9948
|
setActiveStep(activeStep);
|
|
9883
9949
|
}
|
|
@@ -9923,7 +9989,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
9923
9989
|
if (index === 0) {
|
|
9924
9990
|
return child;
|
|
9925
9991
|
}
|
|
9926
|
-
return /* @__PURE__ */ jsxs65(
|
|
9992
|
+
return /* @__PURE__ */ jsxs65(Fragment10, { children: [
|
|
9927
9993
|
/* @__PURE__ */ jsx272("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
|
|
9928
9994
|
child
|
|
9929
9995
|
] }, index);
|
|
@@ -10034,12 +10100,12 @@ import {
|
|
|
10034
10100
|
|
|
10035
10101
|
// src/components/Search/AutocompleteSearch.context.tsx
|
|
10036
10102
|
import {
|
|
10037
|
-
createContext as
|
|
10038
|
-
useContext as
|
|
10103
|
+
createContext as createContext7,
|
|
10104
|
+
useContext as useContext14
|
|
10039
10105
|
} from "react";
|
|
10040
|
-
var AutocompleteSearchContext =
|
|
10106
|
+
var AutocompleteSearchContext = createContext7({});
|
|
10041
10107
|
var useAutocompleteSearch = () => {
|
|
10042
|
-
return
|
|
10108
|
+
return useContext14(AutocompleteSearchContext);
|
|
10043
10109
|
};
|
|
10044
10110
|
|
|
10045
10111
|
// src/components/Search/Search.module.css
|
|
@@ -10094,7 +10160,7 @@ import { forwardRef as forwardRef83 } from "react";
|
|
|
10094
10160
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
10095
10161
|
import {
|
|
10096
10162
|
forwardRef as forwardRef82,
|
|
10097
|
-
useEffect as
|
|
10163
|
+
useEffect as useEffect27,
|
|
10098
10164
|
useRef as useRef32
|
|
10099
10165
|
} from "react";
|
|
10100
10166
|
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
@@ -10102,7 +10168,7 @@ var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
|
10102
10168
|
const { focus, className, ...rest } = props;
|
|
10103
10169
|
const itemRef = useRef32(null);
|
|
10104
10170
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
10105
|
-
|
|
10171
|
+
useEffect27(() => {
|
|
10106
10172
|
var _a;
|
|
10107
10173
|
if (focus) {
|
|
10108
10174
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
@@ -10207,7 +10273,7 @@ var SearchSuggestions = forwardRef83((props, ref) => {
|
|
|
10207
10273
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
10208
10274
|
|
|
10209
10275
|
// src/components/Search/Search.tsx
|
|
10210
|
-
import { Fragment as
|
|
10276
|
+
import { Fragment as Fragment11, jsx as jsx276, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10211
10277
|
var getIconSize2 = (size2) => {
|
|
10212
10278
|
switch (size2) {
|
|
10213
10279
|
case "large":
|
|
@@ -10313,7 +10379,7 @@ var Search = forwardRef84(
|
|
|
10313
10379
|
)
|
|
10314
10380
|
}
|
|
10315
10381
|
),
|
|
10316
|
-
hasSuggestions && /* @__PURE__ */ jsxs68(
|
|
10382
|
+
hasSuggestions && /* @__PURE__ */ jsxs68(Fragment11, { children: [
|
|
10317
10383
|
/* @__PURE__ */ jsx276(
|
|
10318
10384
|
SearchSuggestions,
|
|
10319
10385
|
{
|
|
@@ -10361,7 +10427,7 @@ Search.displayName = "Search";
|
|
|
10361
10427
|
|
|
10362
10428
|
// src/components/Search/SearchAutocompleteWrapper.tsx
|
|
10363
10429
|
import {
|
|
10364
|
-
useEffect as
|
|
10430
|
+
useEffect as useEffect28,
|
|
10365
10431
|
useRef as useRef33,
|
|
10366
10432
|
useState as useState24
|
|
10367
10433
|
} from "react";
|
|
@@ -10381,7 +10447,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
10381
10447
|
const [showSuggestions, setShowSuggestions] = useState24(false);
|
|
10382
10448
|
const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
|
|
10383
10449
|
const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
|
|
10384
|
-
|
|
10450
|
+
useEffect28(() => {
|
|
10385
10451
|
if (suggestions.length > 0) {
|
|
10386
10452
|
openSuggestions();
|
|
10387
10453
|
} else {
|
|
@@ -10454,10 +10520,10 @@ Search2.Suggestions = SearchSuggestions;
|
|
|
10454
10520
|
import { forwardRef as forwardRef86, useId as useId21 } from "react";
|
|
10455
10521
|
|
|
10456
10522
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
10457
|
-
import { createContext as
|
|
10458
|
-
var CheckboxGroupContext =
|
|
10523
|
+
import { createContext as createContext8, useContext as useContext15 } from "react";
|
|
10524
|
+
var CheckboxGroupContext = createContext8(null);
|
|
10459
10525
|
var useCheckboxGroup = () => {
|
|
10460
|
-
return
|
|
10526
|
+
return useContext15(CheckboxGroupContext);
|
|
10461
10527
|
};
|
|
10462
10528
|
|
|
10463
10529
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
@@ -10707,10 +10773,10 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
10707
10773
|
import { forwardRef as forwardRef87, useId as useId23 } from "react";
|
|
10708
10774
|
|
|
10709
10775
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
10710
|
-
import { createContext as
|
|
10711
|
-
var RadioButtonGroupContext =
|
|
10776
|
+
import { createContext as createContext9, useContext as useContext16 } from "react";
|
|
10777
|
+
var RadioButtonGroupContext = createContext9(null);
|
|
10712
10778
|
var useRadioButtonGroup = () => {
|
|
10713
|
-
return
|
|
10779
|
+
return useContext16(RadioButtonGroupContext);
|
|
10714
10780
|
};
|
|
10715
10781
|
|
|
10716
10782
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
@@ -11060,21 +11126,21 @@ SplitButton.displayName = "SplitButton";
|
|
|
11060
11126
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
11061
11127
|
import {
|
|
11062
11128
|
Children as Children5,
|
|
11063
|
-
Fragment as
|
|
11129
|
+
Fragment as Fragment12,
|
|
11064
11130
|
cloneElement as cloneElement8,
|
|
11065
11131
|
forwardRef as forwardRef99,
|
|
11066
11132
|
isValidElement as isValidElement9,
|
|
11067
|
-
useEffect as
|
|
11133
|
+
useEffect as useEffect30,
|
|
11068
11134
|
useState as useState28
|
|
11069
11135
|
} from "react";
|
|
11070
11136
|
|
|
11071
11137
|
// src/components/Table/collapsible/Table.context.tsx
|
|
11072
|
-
import { createContext as
|
|
11073
|
-
var CollapsibleTableContext =
|
|
11138
|
+
import { createContext as createContext10, useContext as useContext17 } from "react";
|
|
11139
|
+
var CollapsibleTableContext = createContext10({
|
|
11074
11140
|
headerValues: [],
|
|
11075
11141
|
definingColumnIndex: [0]
|
|
11076
11142
|
});
|
|
11077
|
-
var useCollapsibleTableContext = () =>
|
|
11143
|
+
var useCollapsibleTableContext = () => useContext17(CollapsibleTableContext);
|
|
11078
11144
|
|
|
11079
11145
|
// src/components/Table/normal/Body.tsx
|
|
11080
11146
|
import { forwardRef as forwardRef92 } from "react";
|
|
@@ -11093,9 +11159,9 @@ import {
|
|
|
11093
11159
|
|
|
11094
11160
|
// src/components/Table/normal/Head.tsx
|
|
11095
11161
|
import {
|
|
11096
|
-
createContext as
|
|
11162
|
+
createContext as createContext11,
|
|
11097
11163
|
forwardRef as forwardRef93,
|
|
11098
|
-
useContext as
|
|
11164
|
+
useContext as useContext18
|
|
11099
11165
|
} from "react";
|
|
11100
11166
|
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
11101
11167
|
var Head = forwardRef93(
|
|
@@ -11104,9 +11170,9 @@ var Head = forwardRef93(
|
|
|
11104
11170
|
}
|
|
11105
11171
|
);
|
|
11106
11172
|
Head.displayName = "Table.Head";
|
|
11107
|
-
var HeadContext =
|
|
11173
|
+
var HeadContext = createContext11(false);
|
|
11108
11174
|
function useIsInTableHead() {
|
|
11109
|
-
const isInTableHead =
|
|
11175
|
+
const isInTableHead = useContext18(HeadContext);
|
|
11110
11176
|
return isInTableHead;
|
|
11111
11177
|
}
|
|
11112
11178
|
|
|
@@ -11287,14 +11353,14 @@ Table.displayName = "Table";
|
|
|
11287
11353
|
|
|
11288
11354
|
// src/components/Table/normal/TableWrapper.tsx
|
|
11289
11355
|
import {
|
|
11290
|
-
useContext as
|
|
11291
|
-
useEffect as
|
|
11356
|
+
useContext as useContext19,
|
|
11357
|
+
useEffect as useEffect29,
|
|
11292
11358
|
useRef as useRef34,
|
|
11293
11359
|
useState as useState27
|
|
11294
11360
|
} from "react";
|
|
11295
11361
|
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
11296
11362
|
var TableWrapper = ({ className, ...rest }) => {
|
|
11297
|
-
const themeContext =
|
|
11363
|
+
const themeContext = useContext19(ThemeContext);
|
|
11298
11364
|
const container = themeContext == null ? void 0 : themeContext.el;
|
|
11299
11365
|
const containerWidth = container ? container.clientWidth : 0;
|
|
11300
11366
|
const [overflowX, setOverflowX] = useState27(false);
|
|
@@ -11303,14 +11369,14 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
11303
11369
|
return event.offsetWidth < event.scrollWidth;
|
|
11304
11370
|
}
|
|
11305
11371
|
const wrapperRef = useRef34(null);
|
|
11306
|
-
|
|
11372
|
+
useEffect29(() => {
|
|
11307
11373
|
if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
|
|
11308
11374
|
setOverflowX(true);
|
|
11309
11375
|
return;
|
|
11310
11376
|
}
|
|
11311
11377
|
setOverflowX(false);
|
|
11312
11378
|
}, [themeContainerWidth]);
|
|
11313
|
-
|
|
11379
|
+
useEffect29(() => {
|
|
11314
11380
|
function handleResize() {
|
|
11315
11381
|
setThemeContainerWidth(containerWidth);
|
|
11316
11382
|
}
|
|
@@ -11344,7 +11410,7 @@ Table2.Row = Row;
|
|
|
11344
11410
|
Table2.Foot = Foot;
|
|
11345
11411
|
|
|
11346
11412
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
11347
|
-
import { Fragment as
|
|
11413
|
+
import { Fragment as Fragment13, jsx as jsx294, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
11348
11414
|
var CollapsibleRow = forwardRef99(
|
|
11349
11415
|
({
|
|
11350
11416
|
type: _type,
|
|
@@ -11359,7 +11425,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
11359
11425
|
const type = _type != null ? _type : isInHead ? "head" : "body";
|
|
11360
11426
|
const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
|
|
11361
11427
|
const [childrenCollapsed, setChildrenCollapsed] = useState28(true);
|
|
11362
|
-
|
|
11428
|
+
useEffect30(() => {
|
|
11363
11429
|
!isCollapsed && setChildrenCollapsed(true);
|
|
11364
11430
|
}, [isCollapsed]);
|
|
11365
11431
|
const rowProps = (isOpenCollapsibleHeader) => {
|
|
@@ -11386,7 +11452,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
11386
11452
|
const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
|
|
11387
11453
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
11388
11454
|
collapsibleIds.push(id);
|
|
11389
|
-
return /* @__PURE__ */ jsxs75(
|
|
11455
|
+
return /* @__PURE__ */ jsxs75(Fragment12, { children: [
|
|
11390
11456
|
/* @__PURE__ */ jsx294(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
11391
11457
|
isValidElement9(child) && cloneElement8(child, {
|
|
11392
11458
|
collapsibleProps: { isCollapsibleChild: true }
|
|
@@ -11399,7 +11465,7 @@ var CollapsibleRow = forwardRef99(
|
|
|
11399
11465
|
});
|
|
11400
11466
|
const headerRow = () => {
|
|
11401
11467
|
if (type !== "head" || !isCollapsed) return null;
|
|
11402
|
-
return /* @__PURE__ */ jsx294(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs75(
|
|
11468
|
+
return /* @__PURE__ */ jsx294(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs75(Fragment13, { children: [
|
|
11403
11469
|
definingColumnCells,
|
|
11404
11470
|
/* @__PURE__ */ jsxs75(Table2.Cell, { type: "head", layout: "center", children: [
|
|
11405
11471
|
"Utvid",
|
|
@@ -11436,9 +11502,9 @@ var CollapsibleRow = forwardRef99(
|
|
|
11436
11502
|
) })
|
|
11437
11503
|
] });
|
|
11438
11504
|
};
|
|
11439
|
-
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs75(
|
|
11505
|
+
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs75(Fragment13, { children: [
|
|
11440
11506
|
headerRow(),
|
|
11441
|
-
type === "body" && /* @__PURE__ */ jsxs75(
|
|
11507
|
+
type === "body" && /* @__PURE__ */ jsxs75(Fragment13, { children: [
|
|
11442
11508
|
rowWithChevron(),
|
|
11443
11509
|
childrenCollapsed ? null : collapsedRows
|
|
11444
11510
|
] })
|
|
@@ -11478,15 +11544,15 @@ CollapsibleTable2.Row = CollapsibleRow;
|
|
|
11478
11544
|
// src/components/Tabs/Tabs.tsx
|
|
11479
11545
|
import {
|
|
11480
11546
|
forwardRef as forwardRef101,
|
|
11481
|
-
useEffect as
|
|
11547
|
+
useEffect as useEffect31,
|
|
11482
11548
|
useId as useId25,
|
|
11483
11549
|
useRef as useRef35,
|
|
11484
11550
|
useState as useState29
|
|
11485
11551
|
} from "react";
|
|
11486
11552
|
|
|
11487
11553
|
// src/components/Tabs/Tabs.context.tsx
|
|
11488
|
-
import { createContext as
|
|
11489
|
-
var TabsContext =
|
|
11554
|
+
import { createContext as createContext12, useContext as useContext20 } from "react";
|
|
11555
|
+
var TabsContext = createContext12({
|
|
11490
11556
|
activeTab: 0,
|
|
11491
11557
|
tabsId: "",
|
|
11492
11558
|
handleTabChange: () => null,
|
|
@@ -11496,7 +11562,7 @@ var TabsContext = createContext11({
|
|
|
11496
11562
|
setHasTabFocus: () => null,
|
|
11497
11563
|
tabContentDirection: "row"
|
|
11498
11564
|
});
|
|
11499
|
-
var useTabsContext = () =>
|
|
11565
|
+
var useTabsContext = () => useContext20(TabsContext);
|
|
11500
11566
|
|
|
11501
11567
|
// src/components/Tabs/Tabs.module.css
|
|
11502
11568
|
var Tabs_default = {
|
|
@@ -11535,7 +11601,7 @@ var Tabs = forwardRef101((props, ref) => {
|
|
|
11535
11601
|
setActiveTab(index);
|
|
11536
11602
|
onChange && onChange(index);
|
|
11537
11603
|
};
|
|
11538
|
-
|
|
11604
|
+
useEffect31(() => {
|
|
11539
11605
|
if (activeTab !== void 0 && activeTab !== thisActiveTab) {
|
|
11540
11606
|
setActiveTab(activeTab);
|
|
11541
11607
|
}
|
|
@@ -11580,18 +11646,18 @@ Tabs.displayName = "Tabs";
|
|
|
11580
11646
|
import {
|
|
11581
11647
|
forwardRef as forwardRef102,
|
|
11582
11648
|
useCallback as useCallback7,
|
|
11583
|
-
useEffect as
|
|
11649
|
+
useEffect as useEffect32,
|
|
11584
11650
|
useRef as useRef36
|
|
11585
11651
|
} from "react";
|
|
11586
11652
|
|
|
11587
11653
|
// src/components/Tabs/TabWidthContext.tsx
|
|
11588
11654
|
import {
|
|
11589
|
-
createContext as
|
|
11590
|
-
useContext as
|
|
11655
|
+
createContext as createContext13,
|
|
11656
|
+
useContext as useContext21,
|
|
11591
11657
|
useLayoutEffect as useLayoutEffect3
|
|
11592
11658
|
} from "react";
|
|
11593
11659
|
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
11594
|
-
var TabContext =
|
|
11660
|
+
var TabContext = createContext13(null);
|
|
11595
11661
|
function TabWidthContextProvider({
|
|
11596
11662
|
children,
|
|
11597
11663
|
onChangeWidths
|
|
@@ -11620,7 +11686,7 @@ function TabWidthContextProvider({
|
|
|
11620
11686
|
);
|
|
11621
11687
|
}
|
|
11622
11688
|
function useSetTabWidth(index, width) {
|
|
11623
|
-
const context =
|
|
11689
|
+
const context = useContext21(TabContext);
|
|
11624
11690
|
useLayoutEffect3(() => {
|
|
11625
11691
|
context == null ? void 0 : context.updateWidth(index, width);
|
|
11626
11692
|
return () => context == null ? void 0 : context.removeTab(index);
|
|
@@ -11649,7 +11715,7 @@ var Tab = forwardRef102((props, ref) => {
|
|
|
11649
11715
|
const itemRef = useRef36(null);
|
|
11650
11716
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
11651
11717
|
const { tabContentDirection } = useTabsContext();
|
|
11652
|
-
|
|
11718
|
+
useEffect32(() => {
|
|
11653
11719
|
var _a;
|
|
11654
11720
|
if (focus) {
|
|
11655
11721
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
@@ -12274,11 +12340,11 @@ Toggle.displayName = "Toggle";
|
|
|
12274
12340
|
import { useId as useId28, useState as useState32 } from "react";
|
|
12275
12341
|
|
|
12276
12342
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
12277
|
-
import { createContext as
|
|
12278
|
-
var ToggleBarContext =
|
|
12343
|
+
import { createContext as createContext14, useContext as useContext22 } from "react";
|
|
12344
|
+
var ToggleBarContext = createContext14({
|
|
12279
12345
|
size: "medium"
|
|
12280
12346
|
});
|
|
12281
|
-
var useToggleBarContext = () =>
|
|
12347
|
+
var useToggleBarContext = () => useContext22(ToggleBarContext);
|
|
12282
12348
|
|
|
12283
12349
|
// src/components/ToggleBar/ToggleBar.module.css
|
|
12284
12350
|
var ToggleBar_default = {
|
|
@@ -12454,13 +12520,15 @@ var ToggleButton_default = {
|
|
|
12454
12520
|
"group--column": "ToggleButton_group--column",
|
|
12455
12521
|
container: "ToggleButton_container",
|
|
12456
12522
|
content: "ToggleButton_content",
|
|
12523
|
+
small: "ToggleButton_small",
|
|
12524
|
+
xsmall: "ToggleButton_xsmall",
|
|
12457
12525
|
"content--with-icon": "ToggleButton_content--with-icon"
|
|
12458
12526
|
};
|
|
12459
12527
|
|
|
12460
12528
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
12461
12529
|
import { jsx as jsx307, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
12462
12530
|
var ToggleButton = forwardRef110(
|
|
12463
|
-
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
12531
|
+
({ id, label, icon, size: size2 = "small", className, htmlProps, ...rest }, ref) => {
|
|
12464
12532
|
const generatedId = useId30();
|
|
12465
12533
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
12466
12534
|
const hasIcon = !!icon;
|
|
@@ -12487,8 +12555,9 @@ var ToggleButton = forwardRef110(
|
|
|
12487
12555
|
{
|
|
12488
12556
|
className: cn(
|
|
12489
12557
|
ToggleButton_default.content,
|
|
12558
|
+
ToggleButton_default[size2],
|
|
12490
12559
|
hasIcon && ToggleButton_default["content--with-icon"],
|
|
12491
|
-
typographyStyles_default[
|
|
12560
|
+
typographyStyles_default[`body-${size2}`],
|
|
12492
12561
|
focus_default["focus-styled-sibling"]
|
|
12493
12562
|
),
|
|
12494
12563
|
children: [
|