@norges-domstoler/dds-components 21.16.0 → 21.17.1
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.css +76 -18
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +798 -745
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +721 -669
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -1646,6 +1646,7 @@ __export(icons_exports, {
|
|
|
1646
1646
|
RedoIcon: () => RedoIcon,
|
|
1647
1647
|
RefreshIcon: () => RefreshIcon,
|
|
1648
1648
|
ReplayIcon: () => ReplayIcon,
|
|
1649
|
+
ScaleIcon: () => ScaleIcon,
|
|
1649
1650
|
SearchIcon: () => SearchIcon,
|
|
1650
1651
|
SettingsIcon: () => SettingsIcon,
|
|
1651
1652
|
SmsIcon: () => SmsIcon,
|
|
@@ -2601,209 +2602,215 @@ function ReplayIcon(props) {
|
|
|
2601
2602
|
return /* @__PURE__ */ jsx141(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx141("path", { d: "M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" }) });
|
|
2602
2603
|
}
|
|
2603
2604
|
|
|
2604
|
-
// src/components/Icon/icons/
|
|
2605
|
+
// src/components/Icon/icons/scale.tsx
|
|
2605
2606
|
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
2607
|
+
function ScaleIcon(props) {
|
|
2608
|
+
return /* @__PURE__ */ jsx142(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx142("path", { d: "M13 7.83C13.85 7.53 14.53 6.85 14.83 6H18L15 13C15 14.66 16.57 16 18.5 16C20.43 16 22 14.66 22 13L19 6H21V4H14.83C14.42 2.83 13.31 2 12 2C10.69 2 9.58 2.83 9.17 4H3V6H5L2 13C2 14.66 3.57 16 5.5 16C7.43 16 9 14.66 9 13L6 6H9.17C9.47 6.85 10.15 7.53 11 7.83V19H2V21H22V19H13V7.83ZM20.37 13H16.63L18.5 8.64L20.37 13ZM7.37 13H3.63L5.5 8.64L7.37 13ZM12 6C11.45 6 11 5.55 11 5C11 4.45 11.45 4 12 4C12.55 4 13 4.45 13 5C13 5.55 12.55 6 12 6Z" }) });
|
|
2609
|
+
}
|
|
2610
|
+
|
|
2611
|
+
// src/components/Icon/icons/search.tsx
|
|
2612
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
2606
2613
|
function SearchIcon(props) {
|
|
2607
|
-
return /* @__PURE__ */
|
|
2614
|
+
return /* @__PURE__ */ jsx143(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx143("path", { d: "M9 2C5.146 2 2 5.146 2 9s3.146 7 7 7a6.958 6.958 0 004.574-1.719l.426.426V16l6 6 2-2-6-6h-1.293l-.426-.426A6.958 6.958 0 0016 9c0-3.854-3.146-7-7-7zm0 2c2.773 0 5 2.227 5 5s-2.227 5-5 5-5-2.227-5-5 2.227-5 5-5z" }) });
|
|
2608
2615
|
}
|
|
2609
2616
|
|
|
2610
2617
|
// src/components/Icon/icons/settings.tsx
|
|
2611
|
-
import { jsx as
|
|
2618
|
+
import { jsx as jsx144 } from "react/jsx-runtime";
|
|
2612
2619
|
function SettingsIcon(props) {
|
|
2613
|
-
return /* @__PURE__ */
|
|
2620
|
+
return /* @__PURE__ */ jsx144(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx144("path", { d: "M9.666 2l-.451 2.477.014-.006.128-.041c-.05.012-.093.033-.142.047-.918.26-1.639.741-2.256 1.255l-.033.03h-.002l-2.389-.758-2.297 3.982 1.873 1.762.008-.045.01-.045C3.99 11.21 4 11.7 4 12c0 .3-.001.796.12 1.396l-.013-.064-1.882 1.66 2.328 4.035 2.39-.869.02.02.082.054c.643.429 1.388.856 2.162 1.188l.004.002L9.658 22h4.676l.451-2.477-.014.006-.128.041c.05-.012.093-.033.142-.047.918-.26 1.639-.741 2.256-1.255l.033-.03h.002l2.4.764 2.29-4.12-1.873-1.652-.012.067-.01.045C20.01 12.79 20 12.3 20 12c0-.3.01-.79-.129-1.342l.006.026 1.898-1.676-2.328-4.035-2.39.869-.02-.02-.082-.054a13.73 13.73 0 00-2.162-1.188l-.004-.002L14.342 2H9.666zm1.668 2h1.324l.352 2.021 1.02.407-.024-.008c.605.26 1.234.62 1.78.978l.757.76 2.01-.732.672 1.166-1.502 1.326.197 1.186.01.039c.062.247.07.557.07.857 0 .3-.008.61-.07.857l-.006.024-.217 1.088 1.527 1.35-.71 1.28-2-.636-.778.777c-.543.451-.983.738-1.588.889l-.066.017-1.076.43-.35 1.924h-1.324l-.352-2.021-1.02-.407.024.008c-.605-.26-1.234-.62-1.78-.978l-.757-.76-2.01.732-.672-1.166 1.518-1.34-.213-1.064C6 12.604 6 12.3 6 12c0-.3.008-.61.07-.857l.006-.024.213-1.066-1.527-1.44.703-1.217 2.012.641.777-.777c.543-.451.983-.738 1.588-.889l.066-.017 1.076-.43.35-1.924zM12 8c-1.25 0-2.315.505-2.998 1.273C8.319 10.043 8 11.028 8 12s.319 1.958 1.002 2.727C9.685 15.495 10.75 16 12 16c1.25 0 2.315-.505 2.998-1.273C15.681 13.957 16 12.972 16 12s-.319-1.958-1.002-2.727C14.315 8.505 13.25 8 12 8zm0 2c.75 0 1.185.245 1.502.602.317.356.498.87.498 1.398 0 .528-.181 1.042-.498 1.398-.317.357-.752.602-1.502.602s-1.185-.245-1.502-.602C10.181 13.042 10 12.528 10 12c0-.528.181-1.042.498-1.398.317-.357.752-.602 1.502-.602z" }) });
|
|
2614
2621
|
}
|
|
2615
2622
|
|
|
2616
2623
|
// src/components/Icon/icons/sms.tsx
|
|
2617
|
-
import { jsx as
|
|
2624
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
2618
2625
|
function SmsIcon(props) {
|
|
2619
|
-
return /* @__PURE__ */
|
|
2626
|
+
return /* @__PURE__ */ jsx145(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx145("path", { d: "M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7V9zm8 0h2v2h-2V9zm-4 0h2v2h-2V9z" }) });
|
|
2620
2627
|
}
|
|
2621
2628
|
|
|
2622
2629
|
// src/components/Icon/icons/star.tsx
|
|
2623
|
-
import { jsx as
|
|
2630
|
+
import { jsx as jsx146 } from "react/jsx-runtime";
|
|
2624
2631
|
function StarIcon(props) {
|
|
2625
|
-
return /* @__PURE__ */
|
|
2632
|
+
return /* @__PURE__ */ jsx146(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx146("path", { d: "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" }) });
|
|
2626
2633
|
}
|
|
2627
2634
|
|
|
2628
2635
|
// src/components/Icon/icons/starFilled.tsx
|
|
2629
|
-
import { jsx as
|
|
2636
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
2630
2637
|
function StarFilledIcon(props) {
|
|
2631
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ jsx147(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx147("path", { d: "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z" }) });
|
|
2632
2639
|
}
|
|
2633
2640
|
|
|
2634
2641
|
// src/components/Icon/icons/starHalfFilled.tsx
|
|
2635
|
-
import { jsx as
|
|
2642
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
2636
2643
|
function StarHalfFilled(props) {
|
|
2637
|
-
return /* @__PURE__ */
|
|
2644
|
+
return /* @__PURE__ */ jsx148(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx148("path", { d: "m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" }) });
|
|
2638
2645
|
}
|
|
2639
2646
|
|
|
2640
2647
|
// src/components/Icon/icons/sync.tsx
|
|
2641
|
-
import { jsx as
|
|
2648
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
2642
2649
|
function SyncIcon(props) {
|
|
2643
|
-
return /* @__PURE__ */
|
|
2650
|
+
return /* @__PURE__ */ jsx149(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx149("path", { d: "M12 0L8 4l4 4V5c3.859 0 7 3.14 7 7 0 .88-.17 1.72-.469 2.496l1.516 1.514A8.931 8.931 0 0021 12c0-4.962-4.037-9-9-9V0zM3.953 7.99A8.931 8.931 0 003 12c0 4.962 4.037 9 9 9v3l4-4-4-4v3c-3.859 0-7-3.14-7-7 0-.88.17-1.72.469-2.496L3.953 7.99z" }) });
|
|
2644
2651
|
}
|
|
2645
2652
|
|
|
2646
2653
|
// src/components/Icon/icons/thumbdown.tsx
|
|
2647
|
-
import { jsx as
|
|
2654
|
+
import { jsx as jsx150 } from "react/jsx-runtime";
|
|
2648
2655
|
function ThumbDownIcon(props) {
|
|
2649
|
-
return /* @__PURE__ */
|
|
2656
|
+
return /* @__PURE__ */ jsx150(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx150("path", { d: "m10.89 18.28.57-2.89c.12-.59-.04-1.2-.42-1.66-.38-.46-.94-.73-1.54-.73H4v-1.08L6.57 6h8.09c.18 0 .34.16.34.34v7.84l-4.11 4.1M10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22zm10-7h2V4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1z" }) });
|
|
2650
2657
|
}
|
|
2651
2658
|
|
|
2652
2659
|
// src/components/Icon/icons/thumbdownFilled.tsx
|
|
2653
|
-
import { jsx as
|
|
2660
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
2654
2661
|
function ThumbDownFilledIcon(props) {
|
|
2655
|
-
return /* @__PURE__ */
|
|
2662
|
+
return /* @__PURE__ */ jsx151(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx151("path", { d: "M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15z" }) });
|
|
2656
2663
|
}
|
|
2657
2664
|
|
|
2658
2665
|
// src/components/Icon/icons/thumbup.tsx
|
|
2659
|
-
import { jsx as
|
|
2666
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
2660
2667
|
function ThumbUpIcon(props) {
|
|
2661
|
-
return /* @__PURE__ */
|
|
2668
|
+
return /* @__PURE__ */ jsx152(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx152("path", { d: "m13.11 5.72-.57 2.89c-.12.59.04 1.2.42 1.66.38.46.94.73 1.54.73H20v1.08L17.43 18H9.34c-.18 0-.34-.16-.34-.34V9.82l4.11-4.1M14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.83C7 18.95 8.05 20 9.34 20h8.1c.71 0 1.36-.37 1.72-.97l2.67-6.15c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2zM4 9H2v11h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1z" }) });
|
|
2662
2669
|
}
|
|
2663
2670
|
|
|
2664
2671
|
// src/components/Icon/icons/thumbupFilled.tsx
|
|
2665
|
-
import { jsx as
|
|
2672
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
2666
2673
|
function ThumbUpFilledIcon(props) {
|
|
2667
|
-
return /* @__PURE__ */
|
|
2674
|
+
return /* @__PURE__ */ jsx153(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx153("path", { d: "M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z" }) });
|
|
2668
2675
|
}
|
|
2669
2676
|
|
|
2670
2677
|
// src/components/Icon/icons/time.tsx
|
|
2671
|
-
import { jsx as
|
|
2678
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
2672
2679
|
function TimeIcon(props) {
|
|
2673
|
-
return /* @__PURE__ */
|
|
2680
|
+
return /* @__PURE__ */ jsx154(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx154("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67V7z" }) });
|
|
2674
2681
|
}
|
|
2675
2682
|
|
|
2676
2683
|
// src/components/Icon/icons/tingrett.tsx
|
|
2677
|
-
import { jsx as
|
|
2684
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
2678
2685
|
function TingrettIcon(props) {
|
|
2679
|
-
return /* @__PURE__ */
|
|
2686
|
+
return /* @__PURE__ */ jsx155(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx155("path", { d: "M12 16.615c4.418 0 8-3.857 8-8.615H4c0 4.758 3.582 8.615 8 8.615z" }) });
|
|
2680
2687
|
}
|
|
2681
2688
|
|
|
2682
2689
|
// src/components/Icon/icons/tip.tsx
|
|
2683
|
-
import { jsx as
|
|
2690
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
2684
2691
|
function TipIcon(props) {
|
|
2685
|
-
return /* @__PURE__ */
|
|
2692
|
+
return /* @__PURE__ */ jsx156(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx156("path", { d: "M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 017 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z" }) });
|
|
2686
2693
|
}
|
|
2687
2694
|
|
|
2688
2695
|
// src/components/Icon/icons/trash.tsx
|
|
2689
|
-
import { jsx as
|
|
2696
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
2690
2697
|
function TrashIcon(props) {
|
|
2691
|
-
return /* @__PURE__ */
|
|
2698
|
+
return /* @__PURE__ */ jsx157(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx157("path", { d: "M16 9v10H8V9h8zm-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }) });
|
|
2692
2699
|
}
|
|
2693
2700
|
|
|
2694
2701
|
// src/components/Icon/icons/undo.tsx
|
|
2695
|
-
import { jsx as
|
|
2702
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
2696
2703
|
function UndoIcon(props) {
|
|
2697
|
-
return /* @__PURE__ */
|
|
2704
|
+
return /* @__PURE__ */ jsx158(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx158("path", { d: "M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" }) });
|
|
2698
2705
|
}
|
|
2699
2706
|
|
|
2700
2707
|
// src/components/Icon/icons/unfoldLess.tsx
|
|
2701
|
-
import { jsx as
|
|
2708
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
2702
2709
|
function UnfoldLessIcon(props) {
|
|
2703
|
-
return /* @__PURE__ */
|
|
2710
|
+
return /* @__PURE__ */ jsx159(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx159("path", { d: "M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z" }) });
|
|
2704
2711
|
}
|
|
2705
2712
|
|
|
2706
2713
|
// src/components/Icon/icons/unfoldMore.tsx
|
|
2707
|
-
import { jsx as
|
|
2714
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
2708
2715
|
function UnfoldMoreIcon(props) {
|
|
2709
|
-
return /* @__PURE__ */
|
|
2716
|
+
return /* @__PURE__ */ jsx160(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx160("path", { d: "M11.59 18.17L8.42 15l-1.41 1.41L11.59 21l4.59-4.59L14.76 15l-3.17 3.17zm0-12.34L14.76 9l1.41-1.41L11.59 3 7 7.59 8.42 9l3.17-3.17z" }) });
|
|
2710
2717
|
}
|
|
2711
2718
|
|
|
2712
2719
|
// src/components/Icon/icons/upload.tsx
|
|
2713
|
-
import { jsx as
|
|
2720
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
2714
2721
|
function UploadIcon(props) {
|
|
2715
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ jsx161(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx161("path", { d: "M9 16h6v-6h4l-7-7-7 7h4v6zm2-2V8H9.828L12 5.828 14.172 8H13v6h-2zm-6 4h14v2H5v-2z" }) });
|
|
2716
2723
|
}
|
|
2717
2724
|
|
|
2718
2725
|
// src/components/Icon/icons/visibilityOff.tsx
|
|
2719
|
-
import { jsx as
|
|
2726
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
2720
2727
|
function VisibilityOffIcon(props) {
|
|
2721
|
-
return /* @__PURE__ */
|
|
2728
|
+
return /* @__PURE__ */ jsx162(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx162("path", { d: "M12 6a9.77 9.77 0 018.82 5.5 9.648 9.648 0 01-2.41 3.12l1.41 1.41c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l1.65 1.65C10.66 6.09 11.32 6 12 6zm-1.07 1.14L13 9.21c.57.25 1.03.71 1.28 1.28l2.07 2.07c.08-.34.14-.7.14-1.07C16.5 9.01 14.48 7 12 7c-.37 0-.72.05-1.07.14zM2.01 3.87l2.68 2.68C3.04 7.841 1.766 9.55 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.98-.29 4.32-.82l3.42 3.42 1.41-1.41L3.42 2.45 2.01 3.87zm7.5 7.5l2.61 2.61c-.04.01-.08.02-.12.02a2.5 2.5 0 01-2.5-2.5c0-.05.01-.08.01-.13zm-3.4-3.4l1.75 1.75a4.6 4.6 0 00-.36 1.78 4.507 4.507 0 006.27 4.14l.98.98c-.88.24-1.8.38-2.75.38a9.77 9.77 0 01-8.82-5.5c.7-1.43 1.72-2.61 2.93-3.53z" }) });
|
|
2722
2729
|
}
|
|
2723
2730
|
|
|
2724
2731
|
// src/components/Icon/icons/visibilityOn.tsx
|
|
2725
|
-
import { jsx as
|
|
2732
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
2726
2733
|
function VisibilityOnIcon(props) {
|
|
2727
|
-
return /* @__PURE__ */
|
|
2734
|
+
return /* @__PURE__ */ jsx163(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx163("path", { d: "M12 6a9.77 9.77 0 018.82 5.5A9.77 9.77 0 0112 17a9.77 9.77 0 01-8.82-5.5A9.77 9.77 0 0112 6zm0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5a2.5 2.5 0 110 5 2.5 2.5 0 010-5zm0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z" }) });
|
|
2728
2735
|
}
|
|
2729
2736
|
|
|
2730
2737
|
// src/components/Icon/icons/warning.tsx
|
|
2731
|
-
import { jsx as
|
|
2738
|
+
import { jsx as jsx164, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2732
2739
|
function WarningIcon(props) {
|
|
2733
2740
|
return /* @__PURE__ */ jsxs18(SvgWrapper, { ...props, children: [
|
|
2734
|
-
/* @__PURE__ */
|
|
2735
|
-
/* @__PURE__ */
|
|
2741
|
+
/* @__PURE__ */ jsx164("path", { d: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM19 14.9L14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1v5.8z" }),
|
|
2742
|
+
/* @__PURE__ */ jsx164("path", { d: "M12 17a1 1 0 100-2 1 1 0 000 2zM11 7h2v7h-2V7z" })
|
|
2736
2743
|
] });
|
|
2737
2744
|
}
|
|
2738
2745
|
|
|
2739
2746
|
// src/components/Icon/icons/webex.tsx
|
|
2740
|
-
import { jsx as
|
|
2747
|
+
import { jsx as jsx165, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2741
2748
|
function WebexIcon(props) {
|
|
2742
2749
|
return /* @__PURE__ */ jsxs19(SvgWrapper, { ...props, children: [
|
|
2743
|
-
/* @__PURE__ */
|
|
2744
|
-
/* @__PURE__ */
|
|
2745
|
-
/* @__PURE__ */
|
|
2750
|
+
/* @__PURE__ */ jsx165("path", { d: "M7.16445 3.02741C5.37251 3.2006 4.00929 4.54287 3.55167 5.19235C5.71934 5.89286 5.1413 9.08924 5.71934 10.6047C6.00836 9.73873 6.65866 7.71812 7.67024 7.71812C10.3525 7.71812 9.18761 21.2516 16.3409 20.9964C22.4104 20.7799 24 10.0274 24 8.00678C24 5.83103 21.8323 5.6975 21.8323 5.6975C21.8323 5.6975 23.2325 7.80594 22.5 9.73872C21.7039 11.8393 19.3034 11.615 18.9421 11.3985C18.5086 13.1305 17.5693 16.3057 16.3409 16.3057C14.5 16.3057 14.1251 8.65625 12.1501 5.6975C10.9458 3.89338 9.40437 2.81091 7.16445 3.02741Z" }),
|
|
2751
|
+
/* @__PURE__ */ jsx165("path", { d: "M16.2687 3.0274C14.1732 3.18241 12.9449 4.20609 12.3669 4.83152C14 6.5 14.679 10.6047 14.679 10.6047C14.8958 9.30573 15.4714 7.64595 16.2687 7.64595C17.0659 7.64595 17.3525 8.00677 18.0028 9.73872C18.5644 11.2344 22.6151 11.0722 21.9046 7.79027C21.3265 5.12018 18.6531 2.851 16.2687 3.0274Z" }),
|
|
2752
|
+
/* @__PURE__ */ jsx165("path", { d: "M8.03151 20.9243C9.91016 20.9243 11.4998 19.1923 11.4998 19.1923C9.98242 16.883 9.33212 13.6356 9.33212 13.6356C9.33212 13.6356 8.75685 16.3057 7.81475 16.3057C5.93611 16.3057 4.82819 10.4844 4.34648 7.35728C4.12972 6.41914 3.306 5.42327 1.74528 5.76966C0.184558 6.11605 -0.0611107 7.54972 0.0111449 8.22326C0.251997 10.6288 0.950471 15.0068 3.04588 18.2542C4.62908 20.7078 6.36963 20.9243 8.03151 20.9243Z" })
|
|
2746
2753
|
] });
|
|
2747
2754
|
}
|
|
2748
2755
|
|
|
2749
2756
|
// src/components/Icon/icons/x.tsx
|
|
2750
|
-
import { jsx as
|
|
2757
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
2751
2758
|
function XIcon(props) {
|
|
2752
|
-
return /* @__PURE__ */
|
|
2759
|
+
return /* @__PURE__ */ jsx166(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx166("path", { d: "M17.7508 3H20.8175L14.1175 10.6583L22 21.0775H15.8283L10.995 14.7575L5.46333 21.0775H2.395L9.56167 12.8858L2 3.00083H8.32833L12.6975 8.7775L17.7508 3ZM16.675 19.2425H18.3742L7.405 4.73917H5.58167L16.675 19.2425Z" }) });
|
|
2753
2760
|
}
|
|
2754
2761
|
|
|
2755
2762
|
// src/components/Icon/icons/zoomIn.tsx
|
|
2756
|
-
import { jsx as
|
|
2763
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
2757
2764
|
function ZoomInIcon(props) {
|
|
2758
|
-
return /* @__PURE__ */
|
|
2765
|
+
return /* @__PURE__ */ jsx167(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx167("path", { d: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zm.5-7H9v2H7v1h2v2h1v-2h2V9h-2V7z" }) });
|
|
2759
2766
|
}
|
|
2760
2767
|
|
|
2761
2768
|
// src/components/Icon/icons/zoomOut.tsx
|
|
2762
|
-
import { jsx as
|
|
2769
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
2763
2770
|
function ZoomOutIcon(props) {
|
|
2764
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx168(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx168("path", { d: "M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14zM7 9h5v1H7V9z" }) });
|
|
2765
2772
|
}
|
|
2766
2773
|
|
|
2767
2774
|
// src/components/Icon/icons/barChart.tsx
|
|
2768
|
-
import { jsx as
|
|
2775
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
2769
2776
|
function BarChartIcon(props) {
|
|
2770
|
-
return /* @__PURE__ */
|
|
2777
|
+
return /* @__PURE__ */ jsx169(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx169("path", { d: "M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z" }) });
|
|
2771
2778
|
}
|
|
2772
2779
|
|
|
2773
2780
|
// src/components/Icon/icons/barChartBoxed.tsx
|
|
2774
|
-
import { jsx as
|
|
2781
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
2775
2782
|
function BarChartBoxedIcon(props) {
|
|
2776
|
-
return /* @__PURE__ */
|
|
2783
|
+
return /* @__PURE__ */ jsx170(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx170("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7v-7zm4-3h2v10h-2V7zm4 6h2v4h-2v-4z" }) });
|
|
2777
2784
|
}
|
|
2778
2785
|
|
|
2779
2786
|
// src/components/Icon/icons/lineChart.tsx
|
|
2780
|
-
import { jsx as
|
|
2787
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
2781
2788
|
function LineChartIcon(props) {
|
|
2782
|
-
return /* @__PURE__ */
|
|
2789
|
+
return /* @__PURE__ */ jsx171(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx171("path", { d: "M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99l1.5 1.5z" }) });
|
|
2783
2790
|
}
|
|
2784
2791
|
|
|
2785
2792
|
// src/components/Icon/icons/trendingUp.tsx
|
|
2786
|
-
import { jsx as
|
|
2793
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
2787
2794
|
function TrendingUpIcon(props) {
|
|
2788
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ jsx172(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx172("path", { d: "M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6h-6z" }) });
|
|
2789
2796
|
}
|
|
2790
2797
|
|
|
2791
2798
|
// src/components/Icon/icons/trendingDown.tsx
|
|
2792
|
-
import { jsx as
|
|
2799
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
2793
2800
|
function TrendingDownIcon(props) {
|
|
2794
|
-
return /* @__PURE__ */
|
|
2801
|
+
return /* @__PURE__ */ jsx173(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx173("path", { d: "M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6h-6z" }) });
|
|
2795
2802
|
}
|
|
2796
2803
|
|
|
2797
2804
|
// src/components/Icon/icons/libraryAdd.tsx
|
|
2798
|
-
import { jsx as
|
|
2805
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
2799
2806
|
function LibraryAddIcon(props) {
|
|
2800
|
-
return /* @__PURE__ */
|
|
2807
|
+
return /* @__PURE__ */ jsx174(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx174("path", { d: "M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3v3z" }) });
|
|
2801
2808
|
}
|
|
2802
2809
|
|
|
2803
2810
|
// src/components/Icon/icons/helpSimple.tsx
|
|
2804
|
-
import { jsx as
|
|
2811
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
2805
2812
|
function HelpSimpleIcon(props) {
|
|
2806
|
-
return /* @__PURE__ */
|
|
2813
|
+
return /* @__PURE__ */ jsx175(SvgWrapper, { ...props, children: /* @__PURE__ */ jsx175("path", { d: "M13.25 21H10.75V18.5714H13.25V21ZM15.8375 11.5893L14.7125 12.7064C13.8125 13.5929 13.25 14.3214 13.25 16.1429H10.75V15.5357C10.75 14.2 11.3125 12.9857 12.2125 12.0993L13.7625 10.5693C14.225 10.1321 14.5 9.525 14.5 8.85714C14.5 7.52143 13.375 6.42857 12 6.42857C10.625 6.42857 9.5 7.52143 9.5 8.85714H7C7 6.17357 9.2375 4 12 4C14.7625 4 17 6.17357 17 8.85714C17 9.92571 16.55 10.8971 15.8375 11.5893Z" }) });
|
|
2807
2814
|
}
|
|
2808
2815
|
|
|
2809
2816
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
@@ -2823,7 +2830,7 @@ var ThemeProvider_default = {
|
|
|
2823
2830
|
};
|
|
2824
2831
|
|
|
2825
2832
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
2826
|
-
import { jsx as
|
|
2833
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
2827
2834
|
var defaultTheme = "core";
|
|
2828
2835
|
var ThemeContext = createContext(
|
|
2829
2836
|
void 0
|
|
@@ -2837,7 +2844,7 @@ function ThemeProvider({
|
|
|
2837
2844
|
useEffect12(() => {
|
|
2838
2845
|
setElement(themeRef.current);
|
|
2839
2846
|
}, []);
|
|
2840
|
-
return /* @__PURE__ */
|
|
2847
|
+
return /* @__PURE__ */ jsx176(
|
|
2841
2848
|
"div",
|
|
2842
2849
|
{
|
|
2843
2850
|
ref: themeRef,
|
|
@@ -2847,7 +2854,7 @@ function ThemeProvider({
|
|
|
2847
2854
|
ThemeProvider_default["global-styles"],
|
|
2848
2855
|
"dds-themed"
|
|
2849
2856
|
),
|
|
2850
|
-
children: /* @__PURE__ */
|
|
2857
|
+
children: /* @__PURE__ */ jsx176(ThemeContext, { value: { theme, el: element }, children })
|
|
2851
2858
|
}
|
|
2852
2859
|
);
|
|
2853
2860
|
}
|
|
@@ -2865,7 +2872,7 @@ function useTheme() {
|
|
|
2865
2872
|
|
|
2866
2873
|
// src/i18n/LanguageProvider.tsx
|
|
2867
2874
|
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
2868
|
-
import { jsx as
|
|
2875
|
+
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
2869
2876
|
var LanguageContext = createContext2(
|
|
2870
2877
|
void 0
|
|
2871
2878
|
);
|
|
@@ -2875,7 +2882,7 @@ function LanguageProvider({
|
|
|
2875
2882
|
/**Selve applikasjonen. */
|
|
2876
2883
|
children
|
|
2877
2884
|
}) {
|
|
2878
|
-
return /* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ jsx177(LanguageContext, { value: { language }, children });
|
|
2879
2886
|
}
|
|
2880
2887
|
function useLanguage() {
|
|
2881
2888
|
var _a;
|
|
@@ -2897,9 +2904,9 @@ function createTexts(texts27) {
|
|
|
2897
2904
|
}
|
|
2898
2905
|
|
|
2899
2906
|
// src/DdsProvider/DdsProvider.tsx
|
|
2900
|
-
import { jsx as
|
|
2907
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
2901
2908
|
function DdsProvider({ language, theme, children }) {
|
|
2902
|
-
return /* @__PURE__ */
|
|
2909
|
+
return /* @__PURE__ */ jsx178(LanguageProvider, { language, children: /* @__PURE__ */ jsx178(ThemeProvider, { theme, children }) });
|
|
2903
2910
|
}
|
|
2904
2911
|
|
|
2905
2912
|
// src/components/Accordion/Accordion.module.css
|
|
@@ -3009,13 +3016,13 @@ import {
|
|
|
3009
3016
|
createContext as createContext3,
|
|
3010
3017
|
useContext as useContext3
|
|
3011
3018
|
} from "react";
|
|
3012
|
-
import { jsx as
|
|
3019
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
3013
3020
|
var AccordionContext = createContext3({});
|
|
3014
3021
|
var AccordionContextProvider = ({
|
|
3015
3022
|
children,
|
|
3016
3023
|
...values
|
|
3017
3024
|
}) => {
|
|
3018
|
-
return /* @__PURE__ */
|
|
3025
|
+
return /* @__PURE__ */ jsx179(AccordionContext, { value: values, children });
|
|
3019
3026
|
};
|
|
3020
3027
|
var useAccordionContext = () => {
|
|
3021
3028
|
const context = useContext3(AccordionContext);
|
|
@@ -3028,7 +3035,7 @@ var useAccordionContext = () => {
|
|
|
3028
3035
|
};
|
|
3029
3036
|
|
|
3030
3037
|
// src/components/Accordion/Accordion.tsx
|
|
3031
|
-
import { jsx as
|
|
3038
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
3032
3039
|
var Accordion = ({
|
|
3033
3040
|
isExpanded = false,
|
|
3034
3041
|
onChange,
|
|
@@ -3046,7 +3053,7 @@ var Accordion = ({
|
|
|
3046
3053
|
headerProps,
|
|
3047
3054
|
bodyProps
|
|
3048
3055
|
} = useAccordion({ initiallyExpanded: isExpanded, onChange, id });
|
|
3049
|
-
return /* @__PURE__ */
|
|
3056
|
+
return /* @__PURE__ */ jsx180(
|
|
3050
3057
|
"div",
|
|
3051
3058
|
{
|
|
3052
3059
|
...getBaseHTMLProps(
|
|
@@ -3055,7 +3062,7 @@ var Accordion = ({
|
|
|
3055
3062
|
htmlProps,
|
|
3056
3063
|
rest
|
|
3057
3064
|
),
|
|
3058
|
-
children: /* @__PURE__ */
|
|
3065
|
+
children: /* @__PURE__ */ jsx180(
|
|
3059
3066
|
AccordionContextProvider,
|
|
3060
3067
|
{
|
|
3061
3068
|
headerProps,
|
|
@@ -3091,18 +3098,18 @@ var TextOverflowEllipsis_default = {
|
|
|
3091
3098
|
};
|
|
3092
3099
|
|
|
3093
3100
|
// src/components/Typography/Typography/TextOverflowEllipsis/TextOverflowEllipsis.tsx
|
|
3094
|
-
import { jsx as
|
|
3101
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
3095
3102
|
function TextOverflowEllipsisWrapper({
|
|
3096
3103
|
className,
|
|
3097
3104
|
...rest
|
|
3098
3105
|
}) {
|
|
3099
|
-
return /* @__PURE__ */
|
|
3106
|
+
return /* @__PURE__ */ jsx181("span", { ...rest, className: cn(className, TextOverflowEllipsis_default.wrapper) });
|
|
3100
3107
|
}
|
|
3101
3108
|
function TextOverflowEllipsisInner({
|
|
3102
3109
|
className,
|
|
3103
3110
|
...rest
|
|
3104
3111
|
}) {
|
|
3105
|
-
return /* @__PURE__ */
|
|
3112
|
+
return /* @__PURE__ */ jsx181("span", { ...rest, className: cn(className, TextOverflowEllipsis_default.inner) });
|
|
3106
3113
|
}
|
|
3107
3114
|
|
|
3108
3115
|
// src/components/Typography/Typography/Typography.module.css
|
|
@@ -3256,7 +3263,7 @@ function Icon(props) {
|
|
|
3256
3263
|
Icon.displayName = "Icon";
|
|
3257
3264
|
|
|
3258
3265
|
// src/components/Typography/Typography/Typography.tsx
|
|
3259
|
-
import { jsx as
|
|
3266
|
+
import { jsx as jsx182, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3260
3267
|
var isAnchorProps = (props) => props.typographyType === "a";
|
|
3261
3268
|
var Typography = (props) => {
|
|
3262
3269
|
const {
|
|
@@ -3319,7 +3326,7 @@ var Typography = (props) => {
|
|
|
3319
3326
|
target: targetProp,
|
|
3320
3327
|
children: [
|
|
3321
3328
|
children,
|
|
3322
|
-
externalLinkProp && /* @__PURE__ */
|
|
3329
|
+
externalLinkProp && /* @__PURE__ */ jsx182(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
|
|
3323
3330
|
]
|
|
3324
3331
|
}
|
|
3325
3332
|
);
|
|
@@ -3327,7 +3334,7 @@ var Typography = (props) => {
|
|
|
3327
3334
|
Typography.displayName = "Typography";
|
|
3328
3335
|
|
|
3329
3336
|
// src/components/Typography/Caption/Caption.tsx
|
|
3330
|
-
import { jsx as
|
|
3337
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
3331
3338
|
var Caption = ({
|
|
3332
3339
|
id,
|
|
3333
3340
|
className,
|
|
@@ -3335,7 +3342,7 @@ var Caption = ({
|
|
|
3335
3342
|
children,
|
|
3336
3343
|
...rest
|
|
3337
3344
|
}) => {
|
|
3338
|
-
return /* @__PURE__ */
|
|
3345
|
+
return /* @__PURE__ */ jsx183(
|
|
3339
3346
|
Typography,
|
|
3340
3347
|
{
|
|
3341
3348
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3348,7 +3355,7 @@ var Caption = ({
|
|
|
3348
3355
|
Caption.displayName = "Caption";
|
|
3349
3356
|
|
|
3350
3357
|
// src/components/Typography/Heading/Heading.tsx
|
|
3351
|
-
import { jsx as
|
|
3358
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
3352
3359
|
var getHeadingElement = (level) => `h${level}`;
|
|
3353
3360
|
var getDefaultTypographyType = (h) => {
|
|
3354
3361
|
switch (h) {
|
|
@@ -3379,7 +3386,7 @@ var Heading = ({
|
|
|
3379
3386
|
}) => {
|
|
3380
3387
|
const headingElement = getHeadingElement(level);
|
|
3381
3388
|
const standardTypographyType = typographyType != null ? typographyType : getDefaultTypographyType(headingElement);
|
|
3382
|
-
return /* @__PURE__ */
|
|
3389
|
+
return /* @__PURE__ */ jsx184(
|
|
3383
3390
|
Typography,
|
|
3384
3391
|
{
|
|
3385
3392
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3398,7 +3405,7 @@ var Label_default = {
|
|
|
3398
3405
|
};
|
|
3399
3406
|
|
|
3400
3407
|
// src/components/Typography/Label/Label.tsx
|
|
3401
|
-
import { Fragment, jsx as
|
|
3408
|
+
import { Fragment, jsx as jsx185, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3402
3409
|
var Label = ({
|
|
3403
3410
|
showRequiredStyling,
|
|
3404
3411
|
readOnly,
|
|
@@ -3410,7 +3417,7 @@ var Label = ({
|
|
|
3410
3417
|
...rest
|
|
3411
3418
|
}) => {
|
|
3412
3419
|
const content = /* @__PURE__ */ jsxs21(Fragment, { children: [
|
|
3413
|
-
readOnly && /* @__PURE__ */
|
|
3420
|
+
readOnly && /* @__PURE__ */ jsx185(
|
|
3414
3421
|
Icon,
|
|
3415
3422
|
{
|
|
3416
3423
|
icon: LockIcon,
|
|
@@ -3419,7 +3426,7 @@ var Label = ({
|
|
|
3419
3426
|
}
|
|
3420
3427
|
),
|
|
3421
3428
|
children,
|
|
3422
|
-
showRequiredStyling && /* @__PURE__ */
|
|
3429
|
+
showRequiredStyling && /* @__PURE__ */ jsx185(RequiredMarker, {})
|
|
3423
3430
|
] });
|
|
3424
3431
|
const labelProps = {
|
|
3425
3432
|
...getBaseHTMLProps(
|
|
@@ -3436,7 +3443,7 @@ var Label = ({
|
|
|
3436
3443
|
as: "div",
|
|
3437
3444
|
withMargins: rest.withMargins,
|
|
3438
3445
|
children: [
|
|
3439
|
-
/* @__PURE__ */
|
|
3446
|
+
/* @__PURE__ */ jsx185(
|
|
3440
3447
|
Typography,
|
|
3441
3448
|
{
|
|
3442
3449
|
...labelProps,
|
|
@@ -3448,13 +3455,13 @@ var Label = ({
|
|
|
3448
3455
|
afterLabelContent
|
|
3449
3456
|
]
|
|
3450
3457
|
}
|
|
3451
|
-
) : /* @__PURE__ */
|
|
3458
|
+
) : /* @__PURE__ */ jsx185(Typography, { ...labelProps, typographyType: "labelMedium", children: content });
|
|
3452
3459
|
return render;
|
|
3453
3460
|
};
|
|
3454
3461
|
Label.displayName = "Label";
|
|
3455
3462
|
|
|
3456
3463
|
// src/components/Typography/Legend/Legend.tsx
|
|
3457
|
-
import { jsx as
|
|
3464
|
+
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
3458
3465
|
var Legend = ({
|
|
3459
3466
|
id,
|
|
3460
3467
|
className,
|
|
@@ -3462,7 +3469,7 @@ var Legend = ({
|
|
|
3462
3469
|
typographyType = "headingLarge",
|
|
3463
3470
|
...rest
|
|
3464
3471
|
}) => {
|
|
3465
|
-
return /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ jsx186(
|
|
3466
3473
|
Typography,
|
|
3467
3474
|
{
|
|
3468
3475
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3474,7 +3481,7 @@ var Legend = ({
|
|
|
3474
3481
|
Legend.displayName = "Legend";
|
|
3475
3482
|
|
|
3476
3483
|
// src/components/Typography/Link/Link.tsx
|
|
3477
|
-
import { jsx as
|
|
3484
|
+
import { jsx as jsx187, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3478
3485
|
var Link = ({
|
|
3479
3486
|
id,
|
|
3480
3487
|
className,
|
|
@@ -3519,7 +3526,7 @@ var Link = ({
|
|
|
3519
3526
|
},
|
|
3520
3527
|
children: [
|
|
3521
3528
|
children,
|
|
3522
|
-
external && /* @__PURE__ */
|
|
3529
|
+
external && /* @__PURE__ */ jsx187(Icon, { iconSize: "inherit", icon: OpenExternalIcon })
|
|
3523
3530
|
]
|
|
3524
3531
|
}
|
|
3525
3532
|
);
|
|
@@ -3527,7 +3534,7 @@ var Link = ({
|
|
|
3527
3534
|
Link.displayName = "Link";
|
|
3528
3535
|
|
|
3529
3536
|
// src/components/Typography/Paragraph/Paragraph.tsx
|
|
3530
|
-
import { jsx as
|
|
3537
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
3531
3538
|
var Paragraph = ({
|
|
3532
3539
|
id,
|
|
3533
3540
|
className,
|
|
@@ -3536,7 +3543,7 @@ var Paragraph = ({
|
|
|
3536
3543
|
typographyType = "bodyMedium",
|
|
3537
3544
|
...rest
|
|
3538
3545
|
}) => {
|
|
3539
|
-
return /* @__PURE__ */
|
|
3546
|
+
return /* @__PURE__ */ jsx188(
|
|
3540
3547
|
Typography,
|
|
3541
3548
|
{
|
|
3542
3549
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3548,7 +3555,7 @@ var Paragraph = ({
|
|
|
3548
3555
|
Paragraph.displayName = "Paragraph";
|
|
3549
3556
|
|
|
3550
3557
|
// src/components/Accordion/AccordionHeader.tsx
|
|
3551
|
-
import { jsx as
|
|
3558
|
+
import { jsx as jsx189, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
3552
3559
|
var AccordionHeader = ({
|
|
3553
3560
|
children,
|
|
3554
3561
|
className,
|
|
@@ -3578,13 +3585,13 @@ var AccordionHeader = ({
|
|
|
3578
3585
|
),
|
|
3579
3586
|
...restHeaderProps,
|
|
3580
3587
|
children: [
|
|
3581
|
-
/* @__PURE__ */
|
|
3588
|
+
/* @__PURE__ */ jsx189(
|
|
3582
3589
|
Box,
|
|
3583
3590
|
{
|
|
3584
3591
|
as: "span",
|
|
3585
3592
|
marginInline: "x0 x0.5",
|
|
3586
3593
|
className: AccordionBase_default.header__chevron,
|
|
3587
|
-
children: /* @__PURE__ */
|
|
3594
|
+
children: /* @__PURE__ */ jsx189(
|
|
3588
3595
|
AnimatedChevronUpDown,
|
|
3589
3596
|
{
|
|
3590
3597
|
width: "var(--dds-icon-size-medium)",
|
|
@@ -3594,7 +3601,7 @@ var AccordionHeader = ({
|
|
|
3594
3601
|
)
|
|
3595
3602
|
}
|
|
3596
3603
|
),
|
|
3597
|
-
/* @__PURE__ */
|
|
3604
|
+
/* @__PURE__ */ jsx189(
|
|
3598
3605
|
"div",
|
|
3599
3606
|
{
|
|
3600
3607
|
className: cn(
|
|
@@ -3612,7 +3619,7 @@ var AccordionHeader = ({
|
|
|
3612
3619
|
AccordionHeader.displayName = "AccordionHeader";
|
|
3613
3620
|
|
|
3614
3621
|
// src/components/Accordion/AccordionBody.tsx
|
|
3615
|
-
import { jsx as
|
|
3622
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
3616
3623
|
var AccordionBody = ({
|
|
3617
3624
|
children,
|
|
3618
3625
|
className,
|
|
@@ -3630,7 +3637,7 @@ var AccordionBody = ({
|
|
|
3630
3637
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3631
3638
|
["--dds-card-accordion-body-height"]: height + "px"
|
|
3632
3639
|
};
|
|
3633
|
-
return /* @__PURE__ */
|
|
3640
|
+
return /* @__PURE__ */ jsx190(
|
|
3634
3641
|
"div",
|
|
3635
3642
|
{
|
|
3636
3643
|
...getBaseHTMLProps(
|
|
@@ -3641,7 +3648,7 @@ var AccordionBody = ({
|
|
|
3641
3648
|
),
|
|
3642
3649
|
...restBodyProps,
|
|
3643
3650
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables },
|
|
3644
|
-
children: /* @__PURE__ */
|
|
3651
|
+
children: /* @__PURE__ */ jsx190(Box, { ref: bodyContentRef, padding: "x0.5 x1.5 x2 x1", children })
|
|
3645
3652
|
}
|
|
3646
3653
|
);
|
|
3647
3654
|
};
|
|
@@ -3653,10 +3660,10 @@ var BackLink_default = {
|
|
|
3653
3660
|
};
|
|
3654
3661
|
|
|
3655
3662
|
// src/components/BackLink/BackLink.tsx
|
|
3656
|
-
import { jsx as
|
|
3663
|
+
import { jsx as jsx191, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
3657
3664
|
var BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
3658
3665
|
const { t } = useTranslation();
|
|
3659
|
-
return /* @__PURE__ */
|
|
3666
|
+
return /* @__PURE__ */ jsx191("nav", { ref, "aria-label": t(texts.goBack), children: /* @__PURE__ */ jsxs24(
|
|
3660
3667
|
ElementAs,
|
|
3661
3668
|
{
|
|
3662
3669
|
as,
|
|
@@ -3664,7 +3671,7 @@ var BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
|
3664
3671
|
rel: "noopener noreferer",
|
|
3665
3672
|
...rest,
|
|
3666
3673
|
children: [
|
|
3667
|
-
/* @__PURE__ */
|
|
3674
|
+
/* @__PURE__ */ jsx191(
|
|
3668
3675
|
Icon,
|
|
3669
3676
|
{
|
|
3670
3677
|
icon: ArrowLeftIcon,
|
|
@@ -3688,15 +3695,15 @@ var texts = createTexts({
|
|
|
3688
3695
|
});
|
|
3689
3696
|
|
|
3690
3697
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
3691
|
-
import { jsx as
|
|
3698
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
3692
3699
|
var isAnchorTypographyProps = (props) => {
|
|
3693
3700
|
return props.href != void 0;
|
|
3694
3701
|
};
|
|
3695
3702
|
var Breadcrumb = ({ children, ref, ...rest }) => {
|
|
3696
3703
|
if (isAnchorTypographyProps(rest)) {
|
|
3697
|
-
return /* @__PURE__ */
|
|
3704
|
+
return /* @__PURE__ */ jsx192(Link, { ref, htmlProps: rest, children });
|
|
3698
3705
|
}
|
|
3699
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ jsx192("span", { ref, ...rest, children });
|
|
3700
3707
|
};
|
|
3701
3708
|
Breadcrumb.displayName = "Breadcrumb";
|
|
3702
3709
|
|
|
@@ -3743,9 +3750,9 @@ import { useId as useId2, useRef as useRef7 } from "react";
|
|
|
3743
3750
|
// src/components/Spinner/Spinner.module.css
|
|
3744
3751
|
var Spinner_default = {
|
|
3745
3752
|
svg: "Spinner_svg",
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3753
|
+
jordskifterett: "Spinner_jordskifterett",
|
|
3754
|
+
lagmannsrett: "Spinner_lagmannsrett",
|
|
3755
|
+
tingrett: "Spinner_tingrett"
|
|
3749
3756
|
};
|
|
3750
3757
|
|
|
3751
3758
|
// src/i18n/commonTexts.tsx
|
|
@@ -3777,7 +3784,7 @@ var commonTexts = createTexts({
|
|
|
3777
3784
|
});
|
|
3778
3785
|
|
|
3779
3786
|
// src/components/Spinner/Spinner.tsx
|
|
3780
|
-
import { jsx as
|
|
3787
|
+
import { jsx as jsx193, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
3781
3788
|
function Spinner(props) {
|
|
3782
3789
|
const {
|
|
3783
3790
|
size: size2 = "var(--dds-icon-size-medium)",
|
|
@@ -3790,38 +3797,57 @@ function Spinner(props) {
|
|
|
3790
3797
|
} = props;
|
|
3791
3798
|
const { t } = useTranslation();
|
|
3792
3799
|
const mountTime = useRef7(Date.now());
|
|
3793
|
-
const
|
|
3794
|
-
const
|
|
3800
|
+
const animationDelay = -(mountTime.current % 1500);
|
|
3801
|
+
const styleVariables = {
|
|
3802
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3803
|
+
["--dds-spinner-animation-delay"]: animationDelay
|
|
3804
|
+
};
|
|
3795
3805
|
const generatedId = useId2();
|
|
3796
3806
|
const uniqueId = `${generatedId}-spinnerTitle`;
|
|
3797
3807
|
return /* @__PURE__ */ jsxs25(
|
|
3798
3808
|
"svg",
|
|
3799
3809
|
{
|
|
3800
|
-
viewBox: "0 0
|
|
3810
|
+
viewBox: "0 0 25 25",
|
|
3801
3811
|
role: "progressbar",
|
|
3802
3812
|
"aria-labelledby": uniqueId,
|
|
3803
3813
|
...getBaseHTMLProps(id, cn(className, Spinner_default.svg), htmlProps, rest),
|
|
3804
3814
|
style: {
|
|
3805
3815
|
...htmlProps == null ? void 0 : htmlProps.style,
|
|
3806
|
-
animationDelay: outerAnimationDelay + "ms",
|
|
3807
3816
|
width: size2,
|
|
3808
3817
|
height: size2
|
|
3809
3818
|
},
|
|
3810
3819
|
children: [
|
|
3811
|
-
/* @__PURE__ */
|
|
3812
|
-
/* @__PURE__ */
|
|
3820
|
+
/* @__PURE__ */ jsx193("title", { id: uniqueId, children: tooltip != null ? tooltip : t(commonTexts.loading) }),
|
|
3821
|
+
/* @__PURE__ */ jsx193(
|
|
3813
3822
|
"circle",
|
|
3814
3823
|
{
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3824
|
+
cx: "12",
|
|
3825
|
+
cy: "12.25",
|
|
3826
|
+
r: "6",
|
|
3827
|
+
fill: getTextColor(color),
|
|
3828
|
+
className: Spinner_default.jordskifterett,
|
|
3829
|
+
style: styleVariables
|
|
3830
|
+
}
|
|
3831
|
+
),
|
|
3832
|
+
/* @__PURE__ */ jsx193(
|
|
3833
|
+
"rect",
|
|
3834
|
+
{
|
|
3835
|
+
x: "4",
|
|
3836
|
+
y: "10.25",
|
|
3837
|
+
width: "16",
|
|
3838
|
+
height: "4",
|
|
3839
|
+
fill: getTextColor(color),
|
|
3840
|
+
className: Spinner_default.lagmannsrett,
|
|
3841
|
+
style: styleVariables
|
|
3842
|
+
}
|
|
3843
|
+
),
|
|
3844
|
+
/* @__PURE__ */ jsx193(
|
|
3845
|
+
"path",
|
|
3846
|
+
{
|
|
3847
|
+
d: "M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z",
|
|
3848
|
+
fill: getTextColor(color),
|
|
3849
|
+
className: Spinner_default.tingrett,
|
|
3850
|
+
style: styleVariables
|
|
3825
3851
|
}
|
|
3826
3852
|
)
|
|
3827
3853
|
]
|
|
@@ -3831,7 +3857,7 @@ function Spinner(props) {
|
|
|
3831
3857
|
Spinner.displayName = "Spinner";
|
|
3832
3858
|
|
|
3833
3859
|
// src/components/Button/Button.tsx
|
|
3834
|
-
import { Fragment as Fragment2, jsx as
|
|
3860
|
+
import { Fragment as Fragment2, jsx as jsx194, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
3835
3861
|
var Button = ({
|
|
3836
3862
|
children,
|
|
3837
3863
|
purpose = "primary",
|
|
@@ -3873,7 +3899,7 @@ var Button = ({
|
|
|
3873
3899
|
typographyStyles_default[`body-${size2}`],
|
|
3874
3900
|
focusable
|
|
3875
3901
|
);
|
|
3876
|
-
const iconElement = hasIcon && /* @__PURE__ */
|
|
3902
|
+
const iconElement = hasIcon && /* @__PURE__ */ jsx194(
|
|
3877
3903
|
Icon,
|
|
3878
3904
|
{
|
|
3879
3905
|
icon,
|
|
@@ -3884,11 +3910,11 @@ var Button = ({
|
|
|
3884
3910
|
const content = /* @__PURE__ */ jsxs26(Fragment2, { children: [
|
|
3885
3911
|
hasLabel && /* @__PURE__ */ jsxs26(Fragment2, { children: [
|
|
3886
3912
|
iconPosition === "left" && iconElement,
|
|
3887
|
-
/* @__PURE__ */
|
|
3913
|
+
/* @__PURE__ */ jsx194("span", { "aria-hidden": loading, className: cn(loading && invisible), children }),
|
|
3888
3914
|
iconPosition === "right" && iconElement
|
|
3889
3915
|
] }),
|
|
3890
3916
|
isIconButton && iconElement,
|
|
3891
|
-
loading && /* @__PURE__ */
|
|
3917
|
+
loading && /* @__PURE__ */ jsx194("span", { className: cn(!noContent && Button_default["spinner-wrapper--absolute"]), children: /* @__PURE__ */ jsx194(
|
|
3892
3918
|
Spinner,
|
|
3893
3919
|
{
|
|
3894
3920
|
size: "1em",
|
|
@@ -3899,7 +3925,7 @@ var Button = ({
|
|
|
3899
3925
|
) })
|
|
3900
3926
|
] });
|
|
3901
3927
|
if (!href)
|
|
3902
|
-
return /* @__PURE__ */
|
|
3928
|
+
return /* @__PURE__ */ jsx194(
|
|
3903
3929
|
"button",
|
|
3904
3930
|
{
|
|
3905
3931
|
ref,
|
|
@@ -3912,7 +3938,7 @@ var Button = ({
|
|
|
3912
3938
|
}
|
|
3913
3939
|
);
|
|
3914
3940
|
else if (href)
|
|
3915
|
-
return /* @__PURE__ */
|
|
3941
|
+
return /* @__PURE__ */ jsx194(
|
|
3916
3942
|
"a",
|
|
3917
3943
|
{
|
|
3918
3944
|
ref,
|
|
@@ -3948,7 +3974,7 @@ import {
|
|
|
3948
3974
|
useEffect as useEffect14,
|
|
3949
3975
|
useState as useState8
|
|
3950
3976
|
} from "react";
|
|
3951
|
-
import { jsx as
|
|
3977
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
3952
3978
|
var OverflowMenuContext = createContext5({
|
|
3953
3979
|
isOpen: false,
|
|
3954
3980
|
registerItem: () => null,
|
|
@@ -3966,7 +3992,7 @@ function OverflowMenuContextProvider({
|
|
|
3966
3992
|
var _a, _b;
|
|
3967
3993
|
(_b = (_a = items[focusIndex]) == null ? void 0 : _a.current) == null ? void 0 : _b.focus();
|
|
3968
3994
|
}, [focusIndex]);
|
|
3969
|
-
return /* @__PURE__ */
|
|
3995
|
+
return /* @__PURE__ */ jsx195(
|
|
3970
3996
|
OverflowMenuContext,
|
|
3971
3997
|
{
|
|
3972
3998
|
value: {
|
|
@@ -3996,7 +4022,7 @@ var OverflowMenu_default = {
|
|
|
3996
4022
|
};
|
|
3997
4023
|
|
|
3998
4024
|
// src/components/OverflowMenu/OverflowMenu.tsx
|
|
3999
|
-
import { jsx as
|
|
4025
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
4000
4026
|
var OverflowMenu = ({
|
|
4001
4027
|
placement = "bottom-end",
|
|
4002
4028
|
offset = 2,
|
|
@@ -4011,7 +4037,7 @@ var OverflowMenu = ({
|
|
|
4011
4037
|
}, [placement, offset]);
|
|
4012
4038
|
const { style = {}, ...restHTMLProps } = htmlProps;
|
|
4013
4039
|
const openCn = isOpen ? "open" : "closed";
|
|
4014
|
-
return /* @__PURE__ */
|
|
4040
|
+
return /* @__PURE__ */ jsx196(
|
|
4015
4041
|
Paper,
|
|
4016
4042
|
{
|
|
4017
4043
|
overflowY: "auto",
|
|
@@ -4042,7 +4068,7 @@ OverflowMenu.displayName = "OverflowMenu";
|
|
|
4042
4068
|
|
|
4043
4069
|
// src/components/OverflowMenu/components/OverflowMenuButton.tsx
|
|
4044
4070
|
import { useEffect as useEffect16, useRef as useRef8, useState as useState9 } from "react";
|
|
4045
|
-
import { jsx as
|
|
4071
|
+
import { jsx as jsx197, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4046
4072
|
var OverflowMenuButton = ({
|
|
4047
4073
|
id,
|
|
4048
4074
|
icon,
|
|
@@ -4081,7 +4107,7 @@ var OverflowMenuButton = ({
|
|
|
4081
4107
|
onClose == null ? void 0 : onClose();
|
|
4082
4108
|
}
|
|
4083
4109
|
};
|
|
4084
|
-
return /* @__PURE__ */
|
|
4110
|
+
return /* @__PURE__ */ jsx197("li", { children: /* @__PURE__ */ jsxs27(
|
|
4085
4111
|
"button",
|
|
4086
4112
|
{
|
|
4087
4113
|
ref: combinedRef,
|
|
@@ -4101,14 +4127,14 @@ var OverflowMenuButton = ({
|
|
|
4101
4127
|
...rest,
|
|
4102
4128
|
tabIndex: focusedRef === itemRef ? 0 : -1,
|
|
4103
4129
|
children: [
|
|
4104
|
-
isLoading && /* @__PURE__ */
|
|
4130
|
+
isLoading && /* @__PURE__ */ jsx197("span", { className: cn(utilStyles_default["center-absolute"]), children: /* @__PURE__ */ jsx197(
|
|
4105
4131
|
Spinner,
|
|
4106
4132
|
{
|
|
4107
4133
|
size: "var(--dds-icon-size-medium)",
|
|
4108
4134
|
tooltip: loadingTooltip
|
|
4109
4135
|
}
|
|
4110
4136
|
) }),
|
|
4111
|
-
icon && /* @__PURE__ */
|
|
4137
|
+
icon && /* @__PURE__ */ jsx197(
|
|
4112
4138
|
Icon,
|
|
4113
4139
|
{
|
|
4114
4140
|
className: cn(isLoading && invisible),
|
|
@@ -4116,7 +4142,7 @@ var OverflowMenuButton = ({
|
|
|
4116
4142
|
icon
|
|
4117
4143
|
}
|
|
4118
4144
|
),
|
|
4119
|
-
/* @__PURE__ */
|
|
4145
|
+
/* @__PURE__ */ jsx197("span", { className: cn(isLoading && invisible), children })
|
|
4120
4146
|
]
|
|
4121
4147
|
}
|
|
4122
4148
|
) });
|
|
@@ -4125,7 +4151,7 @@ OverflowMenuButton.displayName = "OverflowMenuButton";
|
|
|
4125
4151
|
|
|
4126
4152
|
// src/components/OverflowMenu/components/OverflowMenuLink.tsx
|
|
4127
4153
|
import { useEffect as useEffect17, useRef as useRef9 } from "react";
|
|
4128
|
-
import { jsx as
|
|
4154
|
+
import { jsx as jsx198, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4129
4155
|
var OverflowMenuLink = ({
|
|
4130
4156
|
id,
|
|
4131
4157
|
href,
|
|
@@ -4144,7 +4170,7 @@ var OverflowMenuLink = ({
|
|
|
4144
4170
|
registerItem(itemRef);
|
|
4145
4171
|
return () => unregisterItem(itemRef);
|
|
4146
4172
|
}, []);
|
|
4147
|
-
return /* @__PURE__ */
|
|
4173
|
+
return /* @__PURE__ */ jsx198("li", { children: /* @__PURE__ */ jsxs28(
|
|
4148
4174
|
"a",
|
|
4149
4175
|
{
|
|
4150
4176
|
ref: combinedRef,
|
|
@@ -4166,7 +4192,7 @@ var OverflowMenuLink = ({
|
|
|
4166
4192
|
...rest,
|
|
4167
4193
|
tabIndex: focusedRef === itemRef ? 0 : -1,
|
|
4168
4194
|
children: [
|
|
4169
|
-
icon && /* @__PURE__ */
|
|
4195
|
+
icon && /* @__PURE__ */ jsx198(Icon, { iconSize: "inherit", icon }),
|
|
4170
4196
|
children
|
|
4171
4197
|
]
|
|
4172
4198
|
}
|
|
@@ -4183,7 +4209,7 @@ var Divider_default = {
|
|
|
4183
4209
|
};
|
|
4184
4210
|
|
|
4185
4211
|
// src/components/Divider/Divider.tsx
|
|
4186
|
-
import { jsx as
|
|
4212
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
4187
4213
|
var Divider = ({
|
|
4188
4214
|
color = "default",
|
|
4189
4215
|
id,
|
|
@@ -4191,7 +4217,7 @@ var Divider = ({
|
|
|
4191
4217
|
htmlProps,
|
|
4192
4218
|
...rest
|
|
4193
4219
|
}) => {
|
|
4194
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsx199(
|
|
4195
4221
|
"hr",
|
|
4196
4222
|
{
|
|
4197
4223
|
...getBaseHTMLProps(
|
|
@@ -4205,14 +4231,14 @@ var Divider = ({
|
|
|
4205
4231
|
};
|
|
4206
4232
|
|
|
4207
4233
|
// src/components/OverflowMenu/components/OverflowMenuDivider.tsx
|
|
4208
|
-
import { jsx as
|
|
4234
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
4209
4235
|
var OverflowMenuDivider = ({
|
|
4210
4236
|
id,
|
|
4211
4237
|
className,
|
|
4212
4238
|
htmlProps,
|
|
4213
4239
|
...rest
|
|
4214
4240
|
}) => {
|
|
4215
|
-
return /* @__PURE__ */
|
|
4241
|
+
return /* @__PURE__ */ jsx200(
|
|
4216
4242
|
Box,
|
|
4217
4243
|
{
|
|
4218
4244
|
as: Divider,
|
|
@@ -4226,18 +4252,18 @@ var OverflowMenuDivider = ({
|
|
|
4226
4252
|
OverflowMenuDivider.displayName = "OverflowMenuDivider";
|
|
4227
4253
|
|
|
4228
4254
|
// src/components/OverflowMenu/components/OverflowMenuList.tsx
|
|
4229
|
-
import { jsx as
|
|
4230
|
-
var OverflowMenuList = (props) => /* @__PURE__ */
|
|
4255
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
4256
|
+
var OverflowMenuList = (props) => /* @__PURE__ */ jsx201(StylelessList, { ...props });
|
|
4231
4257
|
|
|
4232
4258
|
// src/components/OverflowMenu/components/OverflowMenuSpan.tsx
|
|
4233
|
-
import { jsx as
|
|
4259
|
+
import { jsx as jsx202, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4234
4260
|
var OverflowMenuSpan = ({
|
|
4235
4261
|
icon,
|
|
4236
4262
|
children,
|
|
4237
4263
|
className,
|
|
4238
4264
|
purpose = "default",
|
|
4239
4265
|
...rest
|
|
4240
|
-
}) => /* @__PURE__ */
|
|
4266
|
+
}) => /* @__PURE__ */ jsx202("li", { children: /* @__PURE__ */ jsxs29(
|
|
4241
4267
|
"span",
|
|
4242
4268
|
{
|
|
4243
4269
|
className: cn(
|
|
@@ -4248,7 +4274,7 @@ var OverflowMenuSpan = ({
|
|
|
4248
4274
|
),
|
|
4249
4275
|
...rest,
|
|
4250
4276
|
children: [
|
|
4251
|
-
icon && /* @__PURE__ */
|
|
4277
|
+
icon && /* @__PURE__ */ jsx202(Icon, { iconSize: "inherit", icon }),
|
|
4252
4278
|
children
|
|
4253
4279
|
]
|
|
4254
4280
|
}
|
|
@@ -4256,11 +4282,11 @@ var OverflowMenuSpan = ({
|
|
|
4256
4282
|
OverflowMenuSpan.displayName = "OverflowMenuSpan";
|
|
4257
4283
|
|
|
4258
4284
|
// src/components/OverflowMenu/components/OverflowMenuListHeader.tsx
|
|
4259
|
-
import { jsx as
|
|
4285
|
+
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
4260
4286
|
var OverflowMenuListHeader = ({
|
|
4261
4287
|
className,
|
|
4262
4288
|
...rest
|
|
4263
|
-
}) => /* @__PURE__ */
|
|
4289
|
+
}) => /* @__PURE__ */ jsx203(
|
|
4264
4290
|
Box,
|
|
4265
4291
|
{
|
|
4266
4292
|
as: "h2",
|
|
@@ -4281,7 +4307,7 @@ import {
|
|
|
4281
4307
|
useRef as useRef10,
|
|
4282
4308
|
useState as useState10
|
|
4283
4309
|
} from "react";
|
|
4284
|
-
import { jsx as
|
|
4310
|
+
import { jsx as jsx204 } from "react/jsx-runtime";
|
|
4285
4311
|
var OverflowMenuGroup = ({
|
|
4286
4312
|
children,
|
|
4287
4313
|
onClose,
|
|
@@ -4342,7 +4368,7 @@ var OverflowMenuGroup = ({
|
|
|
4342
4368
|
ref: combinedAnchorRef
|
|
4343
4369
|
}) : child);
|
|
4344
4370
|
});
|
|
4345
|
-
return /* @__PURE__ */
|
|
4371
|
+
return /* @__PURE__ */ jsx204(
|
|
4346
4372
|
OverflowMenuContextProvider,
|
|
4347
4373
|
{
|
|
4348
4374
|
isOpen,
|
|
@@ -4358,7 +4384,7 @@ var OverflowMenuGroup = ({
|
|
|
4358
4384
|
OverflowMenuGroup.displayName = "OverflowMenuGroup";
|
|
4359
4385
|
|
|
4360
4386
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
4361
|
-
import { Fragment as Fragment3, jsx as
|
|
4387
|
+
import { Fragment as Fragment3, jsx as jsx205, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
4362
4388
|
var Breadcrumbs = ({
|
|
4363
4389
|
children,
|
|
4364
4390
|
smallScreenBreakpoint,
|
|
@@ -4367,7 +4393,7 @@ var Breadcrumbs = ({
|
|
|
4367
4393
|
htmlProps,
|
|
4368
4394
|
...rest
|
|
4369
4395
|
}) => {
|
|
4370
|
-
const chevronIcon = /* @__PURE__ */
|
|
4396
|
+
const chevronIcon = /* @__PURE__ */ jsx205(
|
|
4371
4397
|
Icon,
|
|
4372
4398
|
{
|
|
4373
4399
|
className: cn(Breadcrumbs_default.icon),
|
|
@@ -4400,17 +4426,17 @@ var Breadcrumbs = ({
|
|
|
4400
4426
|
const bChildrenTruncated = childrenArray.length > 2 ? childrenArray.slice(1, childrenArray.length - 1).map((item, index) => {
|
|
4401
4427
|
if (isValidElement2(item)) {
|
|
4402
4428
|
if (isAnchorTypographyProps(item.props)) {
|
|
4403
|
-
return /* @__PURE__ */
|
|
4429
|
+
return /* @__PURE__ */ jsx205(OverflowMenuLink, { href: item.props.href, children: item.props.children }, index);
|
|
4404
4430
|
} else
|
|
4405
|
-
return /* @__PURE__ */
|
|
4431
|
+
return /* @__PURE__ */ jsx205(OverflowMenuSpan, { children: item.props.children }, index);
|
|
4406
4432
|
}
|
|
4407
4433
|
}) : [];
|
|
4408
4434
|
const bChildrenSmallScreen = /* @__PURE__ */ jsxs30(Fragment3, { children: [
|
|
4409
|
-
/* @__PURE__ */
|
|
4435
|
+
/* @__PURE__ */ jsx205(HStack, { ...responsiveLiProps, children: childrenArray[0] }),
|
|
4410
4436
|
bChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs30(HStack, { ...responsiveLiProps, children: [
|
|
4411
4437
|
chevronIcon,
|
|
4412
4438
|
/* @__PURE__ */ jsxs30(OverflowMenuGroup, { children: [
|
|
4413
|
-
/* @__PURE__ */
|
|
4439
|
+
/* @__PURE__ */ jsx205(
|
|
4414
4440
|
Button,
|
|
4415
4441
|
{
|
|
4416
4442
|
size: "xsmall",
|
|
@@ -4419,7 +4445,7 @@ var Breadcrumbs = ({
|
|
|
4419
4445
|
"aria-label": bChildrenTruncated.length > 1 ? t(texts2.showHiddenTo(bChildren.length - 1)) : t(texts2.showHidden)
|
|
4420
4446
|
}
|
|
4421
4447
|
),
|
|
4422
|
-
/* @__PURE__ */
|
|
4448
|
+
/* @__PURE__ */ jsx205(OverflowMenu, { children: /* @__PURE__ */ jsx205(OverflowMenuList, { children: bChildrenTruncated }) })
|
|
4423
4449
|
] })
|
|
4424
4450
|
] }),
|
|
4425
4451
|
/* @__PURE__ */ jsxs30(HStack, { ...responsiveLiProps, children: [
|
|
@@ -4440,7 +4466,7 @@ var Breadcrumbs = ({
|
|
|
4440
4466
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
4441
4467
|
"aria-label": t(texts2.breadcrumbs),
|
|
4442
4468
|
children: [
|
|
4443
|
-
/* @__PURE__ */
|
|
4469
|
+
/* @__PURE__ */ jsx205(
|
|
4444
4470
|
HStack,
|
|
4445
4471
|
{
|
|
4446
4472
|
...responsiveListProps,
|
|
@@ -4448,7 +4474,7 @@ var Breadcrumbs = ({
|
|
|
4448
4474
|
children: bChildren
|
|
4449
4475
|
}
|
|
4450
4476
|
),
|
|
4451
|
-
hasSmallScreenBreakpoint && /* @__PURE__ */
|
|
4477
|
+
hasSmallScreenBreakpoint && /* @__PURE__ */ jsx205(HStack, { ...responsiveListProps, showBelow: smallScreenBreakpoint, children: bChildrenSmallScreen })
|
|
4452
4478
|
]
|
|
4453
4479
|
}
|
|
4454
4480
|
);
|
|
@@ -4483,7 +4509,7 @@ var ButtonGroup_default = {
|
|
|
4483
4509
|
};
|
|
4484
4510
|
|
|
4485
4511
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
4486
|
-
import { jsx as
|
|
4512
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
4487
4513
|
var ButtonGroup = ({
|
|
4488
4514
|
children,
|
|
4489
4515
|
id,
|
|
@@ -4493,7 +4519,7 @@ var ButtonGroup = ({
|
|
|
4493
4519
|
buttonSize = "medium",
|
|
4494
4520
|
role = "group",
|
|
4495
4521
|
...rest
|
|
4496
|
-
}) => /* @__PURE__ */
|
|
4522
|
+
}) => /* @__PURE__ */ jsx206(ButtonGroupContext, { value: { size: buttonSize, purpose: "secondary" }, children: /* @__PURE__ */ jsx206(
|
|
4497
4523
|
"div",
|
|
4498
4524
|
{
|
|
4499
4525
|
role,
|
|
@@ -4519,7 +4545,7 @@ var Card_default = {
|
|
|
4519
4545
|
};
|
|
4520
4546
|
|
|
4521
4547
|
// src/components/Card/Card.tsx
|
|
4522
|
-
import { jsx as
|
|
4548
|
+
import { jsx as jsx207 } from "react/jsx-runtime";
|
|
4523
4549
|
var Card = (props) => {
|
|
4524
4550
|
const {
|
|
4525
4551
|
appearance = "filled",
|
|
@@ -4538,7 +4564,7 @@ var Card = (props) => {
|
|
|
4538
4564
|
);
|
|
4539
4565
|
if (cardType === "navigation") {
|
|
4540
4566
|
const { href, target } = props;
|
|
4541
|
-
return /* @__PURE__ */
|
|
4567
|
+
return /* @__PURE__ */ jsx207(
|
|
4542
4568
|
"a",
|
|
4543
4569
|
{
|
|
4544
4570
|
...getBaseHTMLProps(
|
|
@@ -4553,7 +4579,7 @@ var Card = (props) => {
|
|
|
4553
4579
|
}
|
|
4554
4580
|
);
|
|
4555
4581
|
}
|
|
4556
|
-
return /* @__PURE__ */
|
|
4582
|
+
return /* @__PURE__ */ jsx207("div", { ...getBaseHTMLProps(id, classNames, htmlProps, rest), ref: cardRef });
|
|
4557
4583
|
};
|
|
4558
4584
|
Card.displayName = "Card";
|
|
4559
4585
|
|
|
@@ -4568,7 +4594,7 @@ var CardExpandable_default = {
|
|
|
4568
4594
|
};
|
|
4569
4595
|
|
|
4570
4596
|
// src/components/Card/CardExpandable/CardExpandable.tsx
|
|
4571
|
-
import { jsx as
|
|
4597
|
+
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
4572
4598
|
var CardExpandable = ({
|
|
4573
4599
|
isExpanded = false,
|
|
4574
4600
|
onChange,
|
|
@@ -4586,7 +4612,7 @@ var CardExpandable = ({
|
|
|
4586
4612
|
headerProps,
|
|
4587
4613
|
bodyProps
|
|
4588
4614
|
} = useAccordion({ initiallyExpanded: isExpanded, onChange, id });
|
|
4589
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ jsx208(
|
|
4590
4616
|
"div",
|
|
4591
4617
|
{
|
|
4592
4618
|
...getBaseHTMLProps(
|
|
@@ -4595,7 +4621,7 @@ var CardExpandable = ({
|
|
|
4595
4621
|
htmlProps,
|
|
4596
4622
|
rest
|
|
4597
4623
|
),
|
|
4598
|
-
children: /* @__PURE__ */
|
|
4624
|
+
children: /* @__PURE__ */ jsx208(
|
|
4599
4625
|
AccordionContextProvider,
|
|
4600
4626
|
{
|
|
4601
4627
|
headerProps,
|
|
@@ -4612,7 +4638,7 @@ var CardExpandable = ({
|
|
|
4612
4638
|
CardExpandable.displayName = "CardExpandable";
|
|
4613
4639
|
|
|
4614
4640
|
// src/components/Card/CardExpandable/CardExpandableHeader.tsx
|
|
4615
|
-
import { jsx as
|
|
4641
|
+
import { jsx as jsx209, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
4616
4642
|
var CardExpandableHeader = ({
|
|
4617
4643
|
children,
|
|
4618
4644
|
className,
|
|
@@ -4628,7 +4654,7 @@ var CardExpandableHeader = ({
|
|
|
4628
4654
|
["--dds-card-accordion-header-container-padding"]: padding != null ? padding : "var(--dds-spacing-x1) var(--dds-spacing-x0-75) var(--dds-spacing-x1) var(--dds-spacing-x1-5)"
|
|
4629
4655
|
};
|
|
4630
4656
|
const { id, ...restHeaderProps } = headerProps != null ? headerProps : {};
|
|
4631
|
-
return /* @__PURE__ */
|
|
4657
|
+
return /* @__PURE__ */ jsx209(
|
|
4632
4658
|
StylelessButton,
|
|
4633
4659
|
{
|
|
4634
4660
|
...getBaseHTMLProps(
|
|
@@ -4655,15 +4681,15 @@ var CardExpandableHeader = ({
|
|
|
4655
4681
|
bold && typographyStyles_default.bold
|
|
4656
4682
|
),
|
|
4657
4683
|
children: [
|
|
4658
|
-
/* @__PURE__ */
|
|
4659
|
-
/* @__PURE__ */
|
|
4684
|
+
/* @__PURE__ */ jsx209("div", { className: AccordionBase_default.header__content, children }),
|
|
4685
|
+
/* @__PURE__ */ jsx209(
|
|
4660
4686
|
"span",
|
|
4661
4687
|
{
|
|
4662
4688
|
className: cn(
|
|
4663
4689
|
AccordionBase_default.header__chevron,
|
|
4664
4690
|
CardExpandable_default["header-container__chevron"]
|
|
4665
4691
|
),
|
|
4666
|
-
children: /* @__PURE__ */
|
|
4692
|
+
children: /* @__PURE__ */ jsx209(
|
|
4667
4693
|
AnimatedChevronUpDown,
|
|
4668
4694
|
{
|
|
4669
4695
|
width: "var(--dds-icon-size-medium)",
|
|
@@ -4682,7 +4708,7 @@ var CardExpandableHeader = ({
|
|
|
4682
4708
|
CardExpandableHeader.displayName = "CardExpandableHeader";
|
|
4683
4709
|
|
|
4684
4710
|
// src/components/Card/CardExpandable/CardExpandableBody.tsx
|
|
4685
|
-
import { jsx as
|
|
4711
|
+
import { jsx as jsx210 } from "react/jsx-runtime";
|
|
4686
4712
|
var CardExpandableBody = ({
|
|
4687
4713
|
children,
|
|
4688
4714
|
className,
|
|
@@ -4705,7 +4731,7 @@ var CardExpandableBody = ({
|
|
|
4705
4731
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4706
4732
|
["--dds-card-accordion-body-content-padding"]: padding != null ? padding : "var(--dds-spacing-x1) calc(var(--dds-spacing-x2) + var(--dds-spacing-x0-75)) var(--dds-spacing-x2) var(--dds-spacing-x1-5)"
|
|
4707
4733
|
};
|
|
4708
|
-
return /* @__PURE__ */
|
|
4734
|
+
return /* @__PURE__ */ jsx210(
|
|
4709
4735
|
"div",
|
|
4710
4736
|
{
|
|
4711
4737
|
...getBaseHTMLProps(
|
|
@@ -4716,7 +4742,7 @@ var CardExpandableBody = ({
|
|
|
4716
4742
|
),
|
|
4717
4743
|
...restBodyProps,
|
|
4718
4744
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables },
|
|
4719
|
-
children: /* @__PURE__ */
|
|
4745
|
+
children: /* @__PURE__ */ jsx210(
|
|
4720
4746
|
"div",
|
|
4721
4747
|
{
|
|
4722
4748
|
ref: bodyContentRef,
|
|
@@ -4755,12 +4781,12 @@ var SelectionControl_default = {
|
|
|
4755
4781
|
};
|
|
4756
4782
|
|
|
4757
4783
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
4758
|
-
import { jsx as
|
|
4784
|
+
import { jsx as jsx211, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
4759
4785
|
var SelectionControl = ({
|
|
4760
4786
|
controlType,
|
|
4761
4787
|
className,
|
|
4762
4788
|
...rest
|
|
4763
|
-
}) => /* @__PURE__ */
|
|
4789
|
+
}) => /* @__PURE__ */ jsx211(
|
|
4764
4790
|
"span",
|
|
4765
4791
|
{
|
|
4766
4792
|
className: cn(
|
|
@@ -4778,7 +4804,7 @@ var Label2 = ({
|
|
|
4778
4804
|
className,
|
|
4779
4805
|
...rest
|
|
4780
4806
|
}) => {
|
|
4781
|
-
return /* @__PURE__ */
|
|
4807
|
+
return /* @__PURE__ */ jsx211(
|
|
4782
4808
|
Box,
|
|
4783
4809
|
{
|
|
4784
4810
|
as: "label",
|
|
@@ -4816,7 +4842,7 @@ var renderGroupLabel = ({
|
|
|
4816
4842
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
4817
4843
|
withMargins: true,
|
|
4818
4844
|
children: [
|
|
4819
|
-
readOnly && /* @__PURE__ */
|
|
4845
|
+
readOnly && /* @__PURE__ */ jsx211(
|
|
4820
4846
|
Icon,
|
|
4821
4847
|
{
|
|
4822
4848
|
icon: LockIcon,
|
|
@@ -4826,7 +4852,7 @@ var renderGroupLabel = ({
|
|
|
4826
4852
|
),
|
|
4827
4853
|
label,
|
|
4828
4854
|
" ",
|
|
4829
|
-
showRequiredStyling && /* @__PURE__ */
|
|
4855
|
+
showRequiredStyling && /* @__PURE__ */ jsx211(RequiredMarker, {})
|
|
4830
4856
|
]
|
|
4831
4857
|
}
|
|
4832
4858
|
);
|
|
@@ -4843,7 +4869,7 @@ var selectionControlTypographyProps = {
|
|
|
4843
4869
|
};
|
|
4844
4870
|
|
|
4845
4871
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
4846
|
-
import { jsx as
|
|
4872
|
+
import { jsx as jsx212, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
4847
4873
|
var Checkbox = ({
|
|
4848
4874
|
id,
|
|
4849
4875
|
name,
|
|
@@ -4877,7 +4903,7 @@ var Checkbox = ({
|
|
|
4877
4903
|
className: cn(className, htmlPropsClassName),
|
|
4878
4904
|
style,
|
|
4879
4905
|
children: [
|
|
4880
|
-
/* @__PURE__ */
|
|
4906
|
+
/* @__PURE__ */ jsx212(
|
|
4881
4907
|
HiddenInput,
|
|
4882
4908
|
{
|
|
4883
4909
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -4903,14 +4929,14 @@ var Checkbox = ({
|
|
|
4903
4929
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
4904
4930
|
}
|
|
4905
4931
|
),
|
|
4906
|
-
/* @__PURE__ */
|
|
4932
|
+
/* @__PURE__ */ jsx212(
|
|
4907
4933
|
SelectionControl,
|
|
4908
4934
|
{
|
|
4909
4935
|
controlType: "checkbox",
|
|
4910
4936
|
className: focus_default["focus-styled-sibling"]
|
|
4911
4937
|
}
|
|
4912
4938
|
),
|
|
4913
|
-
hasChildren ? children : hasLabel ? /* @__PURE__ */
|
|
4939
|
+
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx212(Typography, { ...selectionControlTypographyProps, children: label }) : null
|
|
4914
4940
|
]
|
|
4915
4941
|
}
|
|
4916
4942
|
);
|
|
@@ -4939,7 +4965,7 @@ var InputMessage_default = {
|
|
|
4939
4965
|
};
|
|
4940
4966
|
|
|
4941
4967
|
// src/components/InputMessage/InputMessage.tsx
|
|
4942
|
-
import { Fragment as Fragment4, jsx as
|
|
4968
|
+
import { Fragment as Fragment4, jsx as jsx213, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
4943
4969
|
var InputMessage = ({
|
|
4944
4970
|
message,
|
|
4945
4971
|
messageType,
|
|
@@ -4959,8 +4985,8 @@ var InputMessage = ({
|
|
|
4959
4985
|
rest
|
|
4960
4986
|
),
|
|
4961
4987
|
children: [
|
|
4962
|
-
isError && /* @__PURE__ */
|
|
4963
|
-
/* @__PURE__ */
|
|
4988
|
+
isError && /* @__PURE__ */ jsx213(Icon, { icon: ErrorIcon, iconSize: "small", className: InputMessage_default.icon }),
|
|
4989
|
+
/* @__PURE__ */ jsx213(
|
|
4964
4990
|
Typography,
|
|
4965
4991
|
{
|
|
4966
4992
|
typographyType: isError ? "bodySmall" : "bodyXsmall",
|
|
@@ -4975,7 +5001,7 @@ var InputMessage = ({
|
|
|
4975
5001
|
};
|
|
4976
5002
|
InputMessage.displayName = "InputMessage";
|
|
4977
5003
|
var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs34(Fragment4, { children: [
|
|
4978
|
-
errorMessage && errorMessageId && /* @__PURE__ */
|
|
5004
|
+
errorMessage && errorMessageId && /* @__PURE__ */ jsx213(
|
|
4979
5005
|
InputMessage,
|
|
4980
5006
|
{
|
|
4981
5007
|
message: errorMessage,
|
|
@@ -4983,11 +5009,11 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
|
|
|
4983
5009
|
id: errorMessageId
|
|
4984
5010
|
}
|
|
4985
5011
|
),
|
|
4986
|
-
tip && tipId && !errorMessage && /* @__PURE__ */
|
|
5012
|
+
tip && tipId && !errorMessage && /* @__PURE__ */ jsx213(InputMessage, { message: tip, messageType: "tip", id: tipId })
|
|
4987
5013
|
] });
|
|
4988
5014
|
|
|
4989
5015
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
4990
|
-
import { jsx as
|
|
5016
|
+
import { jsx as jsx214, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4991
5017
|
var CheckboxGroup = (props) => {
|
|
4992
5018
|
const {
|
|
4993
5019
|
label,
|
|
@@ -5036,7 +5062,7 @@ var CheckboxGroup = (props) => {
|
|
|
5036
5062
|
showRequiredStyling
|
|
5037
5063
|
}),
|
|
5038
5064
|
renderInputMessage(tip, tipId),
|
|
5039
|
-
/* @__PURE__ */
|
|
5065
|
+
/* @__PURE__ */ jsx214(CheckboxGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx214(
|
|
5040
5066
|
"div",
|
|
5041
5067
|
{
|
|
5042
5068
|
role: "group",
|
|
@@ -5064,7 +5090,7 @@ var useRadioButtonGroup = () => {
|
|
|
5064
5090
|
};
|
|
5065
5091
|
|
|
5066
5092
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
5067
|
-
import { jsx as
|
|
5093
|
+
import { jsx as jsx215, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
5068
5094
|
var getIsChecked = ({
|
|
5069
5095
|
value,
|
|
5070
5096
|
groupValue,
|
|
@@ -5129,7 +5155,7 @@ var RadioButton = ({
|
|
|
5129
5155
|
htmlFor: uniqueId,
|
|
5130
5156
|
controlType: "radio",
|
|
5131
5157
|
children: [
|
|
5132
|
-
/* @__PURE__ */
|
|
5158
|
+
/* @__PURE__ */ jsx215(
|
|
5133
5159
|
HiddenInput,
|
|
5134
5160
|
{
|
|
5135
5161
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -5152,14 +5178,14 @@ var RadioButton = ({
|
|
|
5152
5178
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
5153
5179
|
}
|
|
5154
5180
|
),
|
|
5155
|
-
/* @__PURE__ */
|
|
5181
|
+
/* @__PURE__ */ jsx215(
|
|
5156
5182
|
SelectionControl,
|
|
5157
5183
|
{
|
|
5158
5184
|
controlType: "radio",
|
|
5159
5185
|
className: focus_default["focus-styled-sibling"]
|
|
5160
5186
|
}
|
|
5161
5187
|
),
|
|
5162
|
-
hasChildren ? children : hasLabel ? /* @__PURE__ */
|
|
5188
|
+
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx215(Typography, { ...selectionControlTypographyProps, children: label }) : null
|
|
5163
5189
|
]
|
|
5164
5190
|
}
|
|
5165
5191
|
);
|
|
@@ -5168,7 +5194,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
5168
5194
|
|
|
5169
5195
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
5170
5196
|
import { useId as useId7 } from "react";
|
|
5171
|
-
import { jsx as
|
|
5197
|
+
import { jsx as jsx216, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
5172
5198
|
var RadioButtonGroup = ({
|
|
5173
5199
|
name,
|
|
5174
5200
|
label,
|
|
@@ -5228,7 +5254,7 @@ var RadioButtonGroup = ({
|
|
|
5228
5254
|
showRequiredStyling
|
|
5229
5255
|
}),
|
|
5230
5256
|
renderInputMessage(tip, tipId),
|
|
5231
|
-
/* @__PURE__ */
|
|
5257
|
+
/* @__PURE__ */ jsx216(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx216(
|
|
5232
5258
|
"div",
|
|
5233
5259
|
{
|
|
5234
5260
|
role: "radiogroup",
|
|
@@ -5252,7 +5278,7 @@ var CardSelectableContext = createContext8({});
|
|
|
5252
5278
|
var useCardSelectableContext = () => useContext8(CardSelectableContext);
|
|
5253
5279
|
|
|
5254
5280
|
// src/components/Card/CardSelectionControl/CardSelectable.tsx
|
|
5255
|
-
import { jsx as
|
|
5281
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
5256
5282
|
var CardSelectable = (props) => {
|
|
5257
5283
|
const {
|
|
5258
5284
|
appearance = "filled",
|
|
@@ -5322,13 +5348,13 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
|
|
|
5322
5348
|
error,
|
|
5323
5349
|
"aria-describedby": spaceSeparatedIdListGenerator([tipId, ariaDescribedby])
|
|
5324
5350
|
};
|
|
5325
|
-
return cardType === "radio" ? /* @__PURE__ */
|
|
5351
|
+
return cardType === "radio" ? /* @__PURE__ */ jsx217(RadioButton, { ...sharedProps, ...radioContextProps }) : cardType === "checkbox" ? /* @__PURE__ */ jsx217(Checkbox, { ...sharedProps }) : null;
|
|
5326
5352
|
};
|
|
5327
5353
|
CardSelectable.displayName = "CardSelectable";
|
|
5328
5354
|
|
|
5329
5355
|
// src/components/Card/CardSelectionControl/CardSelectableGroup.tsx
|
|
5330
5356
|
import { useId as useId8 } from "react";
|
|
5331
|
-
import { jsx as
|
|
5357
|
+
import { jsx as jsx218, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
5332
5358
|
var CardSelectableGroup = ({
|
|
5333
5359
|
name,
|
|
5334
5360
|
cardType,
|
|
@@ -5372,7 +5398,7 @@ var CardSelectableGroup = ({
|
|
|
5372
5398
|
cardType,
|
|
5373
5399
|
tipId
|
|
5374
5400
|
};
|
|
5375
|
-
const mainContent = /* @__PURE__ */
|
|
5401
|
+
const mainContent = /* @__PURE__ */ jsx218(
|
|
5376
5402
|
Box,
|
|
5377
5403
|
{
|
|
5378
5404
|
...getBaseHTMLProps(
|
|
@@ -5384,7 +5410,7 @@ var CardSelectableGroup = ({
|
|
|
5384
5410
|
role: cardType === "radio" ? "radiogroup" : "group",
|
|
5385
5411
|
"aria-describedby": spaceSeparatedIdListGenerator([tipId, ariaDescribedby]),
|
|
5386
5412
|
"aria-errormessage": errorMessageId,
|
|
5387
|
-
children: /* @__PURE__ */
|
|
5413
|
+
children: /* @__PURE__ */ jsx218(CardSelectableContext, { value: generalContextProps, children: cardType === "radio" ? /* @__PURE__ */ jsx218(RadioButtonGroupContext, { value: contextProps, children }) : cardType === "checkbox" ? /* @__PURE__ */ jsx218(CheckboxGroupContext, { value: contextProps, children }) : null })
|
|
5388
5414
|
}
|
|
5389
5415
|
);
|
|
5390
5416
|
return hasErrorMessage ? /* @__PURE__ */ jsxs38("div", { children: [
|
|
@@ -5403,7 +5429,7 @@ var Chip_default = {
|
|
|
5403
5429
|
};
|
|
5404
5430
|
|
|
5405
5431
|
// src/components/Chip/Chip.tsx
|
|
5406
|
-
import { jsx as
|
|
5432
|
+
import { jsx as jsx219, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
5407
5433
|
var Chip = ({
|
|
5408
5434
|
text,
|
|
5409
5435
|
onClose,
|
|
@@ -5429,8 +5455,8 @@ var Chip = ({
|
|
|
5429
5455
|
rest
|
|
5430
5456
|
),
|
|
5431
5457
|
children: [
|
|
5432
|
-
/* @__PURE__ */
|
|
5433
|
-
/* @__PURE__ */
|
|
5458
|
+
/* @__PURE__ */ jsx219(TextOverflowEllipsisInner, { className: cn(typographyStyles_default["body-small"]), children: text }),
|
|
5459
|
+
/* @__PURE__ */ jsx219(
|
|
5434
5460
|
Button,
|
|
5435
5461
|
{
|
|
5436
5462
|
size: "xsmall",
|
|
@@ -5456,10 +5482,10 @@ var texts3 = createTexts({
|
|
|
5456
5482
|
|
|
5457
5483
|
// src/components/Chip/ChipGroup.tsx
|
|
5458
5484
|
import { Children as Children2 } from "react";
|
|
5459
|
-
import { jsx as
|
|
5485
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
5460
5486
|
var ChipGroup = ({ children, ...rest }) => {
|
|
5461
5487
|
const childrenArray = Children2.toArray(children);
|
|
5462
|
-
return /* @__PURE__ */
|
|
5488
|
+
return /* @__PURE__ */ jsx220(HStack, { as: StylelessList, ...rest, gap: "x0.75", children: childrenArray.map((item, index) => /* @__PURE__ */ jsx220("li", { children: item }, `chip-${index}`)) });
|
|
5463
5489
|
};
|
|
5464
5490
|
ChipGroup.displayName = "ChipGroup";
|
|
5465
5491
|
|
|
@@ -5469,13 +5495,13 @@ var Contrast_default = {
|
|
|
5469
5495
|
};
|
|
5470
5496
|
|
|
5471
5497
|
// src/components/Contrast/Contrast.tsx
|
|
5472
|
-
import { jsx as
|
|
5498
|
+
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
5473
5499
|
var Contrast = ({
|
|
5474
5500
|
className,
|
|
5475
5501
|
as = "div",
|
|
5476
5502
|
...rest
|
|
5477
5503
|
}) => {
|
|
5478
|
-
return /* @__PURE__ */
|
|
5504
|
+
return /* @__PURE__ */ jsx221(
|
|
5479
5505
|
ElementAs,
|
|
5480
5506
|
{
|
|
5481
5507
|
as,
|
|
@@ -5486,7 +5512,7 @@ var Contrast = ({
|
|
|
5486
5512
|
};
|
|
5487
5513
|
|
|
5488
5514
|
// src/components/CookieBanner/CookieBanner.tsx
|
|
5489
|
-
import { useState as useState12 } from "react";
|
|
5515
|
+
import { useId as useId9, useState as useState12 } from "react";
|
|
5490
5516
|
|
|
5491
5517
|
// src/components/CookieBanner/CookieBanner.module.css
|
|
5492
5518
|
var CookieBanner_default = {
|
|
@@ -5494,7 +5520,7 @@ var CookieBanner_default = {
|
|
|
5494
5520
|
};
|
|
5495
5521
|
|
|
5496
5522
|
// src/components/CookieBanner/CookieBannerCheckbox.tsx
|
|
5497
|
-
import { jsx as
|
|
5523
|
+
import { jsx as jsx222, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
5498
5524
|
function CookieBannerCheckbox({
|
|
5499
5525
|
headerText,
|
|
5500
5526
|
description,
|
|
@@ -5503,7 +5529,7 @@ function CookieBannerCheckbox({
|
|
|
5503
5529
|
htmlProps,
|
|
5504
5530
|
...rest
|
|
5505
5531
|
}) {
|
|
5506
|
-
return /* @__PURE__ */
|
|
5532
|
+
return /* @__PURE__ */ jsx222(
|
|
5507
5533
|
Checkbox,
|
|
5508
5534
|
{
|
|
5509
5535
|
...getBaseHTMLProps(
|
|
@@ -5513,7 +5539,7 @@ function CookieBannerCheckbox({
|
|
|
5513
5539
|
rest
|
|
5514
5540
|
),
|
|
5515
5541
|
children: /* @__PURE__ */ jsxs40(VStack, { gap: "x0.5", children: [
|
|
5516
|
-
/* @__PURE__ */
|
|
5542
|
+
/* @__PURE__ */ jsx222(Typography, { as: "span", typographyType: "headingSmall", children: headerText }),
|
|
5517
5543
|
/* @__PURE__ */ jsxs40(Typography, { as: "span", children: [
|
|
5518
5544
|
" ",
|
|
5519
5545
|
description,
|
|
@@ -5526,7 +5552,7 @@ function CookieBannerCheckbox({
|
|
|
5526
5552
|
CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
|
|
5527
5553
|
|
|
5528
5554
|
// src/components/CookieBanner/CookieBanner.tsx
|
|
5529
|
-
import { jsx as
|
|
5555
|
+
import { jsx as jsx223, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
5530
5556
|
import { createElement } from "react";
|
|
5531
5557
|
function CookieBanner({
|
|
5532
5558
|
headerText,
|
|
@@ -5536,7 +5562,6 @@ function CookieBanner({
|
|
|
5536
5562
|
id,
|
|
5537
5563
|
className,
|
|
5538
5564
|
htmlProps,
|
|
5539
|
-
"aria-label": ariaLabel,
|
|
5540
5565
|
maxHeight = "calc(100vh - 100px)",
|
|
5541
5566
|
width = "fit-content",
|
|
5542
5567
|
children,
|
|
@@ -5544,11 +5569,12 @@ function CookieBanner({
|
|
|
5544
5569
|
...rest
|
|
5545
5570
|
}) {
|
|
5546
5571
|
const { t } = useTranslation();
|
|
5547
|
-
const tAriaLabel = ariaLabel != null ? ariaLabel : t(texts4.consent);
|
|
5548
5572
|
const hasBp = !!collapsedBreakpoint;
|
|
5549
5573
|
const [isCollapsedOnBreakpoint, setIsCollapsedOnBreakpoint] = useState12(hasBp);
|
|
5550
|
-
const
|
|
5551
|
-
|
|
5574
|
+
const generatedId = useId9();
|
|
5575
|
+
const headingId = headerText && (id != null ? id : `cookie-banner-${generatedId}-heading`);
|
|
5576
|
+
const heading = headerText ? /* @__PURE__ */ jsx223(Heading, { level: 2, typographyType: "headingMedium", id: headingId, children: headerText }) : "";
|
|
5577
|
+
return /* @__PURE__ */ jsx223(
|
|
5552
5578
|
Paper,
|
|
5553
5579
|
{
|
|
5554
5580
|
...getBaseHTMLProps(
|
|
@@ -5558,7 +5584,7 @@ function CookieBanner({
|
|
|
5558
5584
|
rest
|
|
5559
5585
|
),
|
|
5560
5586
|
role: "region",
|
|
5561
|
-
"aria-
|
|
5587
|
+
"aria-labelledby": headingId,
|
|
5562
5588
|
padding: styleUpToBreakpoint("x1", "sm", "x1.5"),
|
|
5563
5589
|
width,
|
|
5564
5590
|
maxHeight,
|
|
@@ -5567,7 +5593,7 @@ function CookieBanner({
|
|
|
5567
5593
|
children: /* @__PURE__ */ jsxs41(VStack, { maxWidth: "70ch", gap: "x1", children: [
|
|
5568
5594
|
hasBp && isCollapsedOnBreakpoint ? /* @__PURE__ */ jsxs41(HStack, { alignItems: "center", justifyContent: "space-between", gap: "x1", children: [
|
|
5569
5595
|
heading,
|
|
5570
|
-
/* @__PURE__ */
|
|
5596
|
+
/* @__PURE__ */ jsx223(
|
|
5571
5597
|
ShowHide,
|
|
5572
5598
|
{
|
|
5573
5599
|
as: Button,
|
|
@@ -5587,9 +5613,9 @@ function CookieBanner({
|
|
|
5587
5613
|
hideBelow: isCollapsedOnBreakpoint ? collapsedBreakpoint : void 0,
|
|
5588
5614
|
children: [
|
|
5589
5615
|
children,
|
|
5590
|
-
description && /* @__PURE__ */
|
|
5591
|
-
checkboxes && /* @__PURE__ */
|
|
5592
|
-
buttons && /* @__PURE__ */
|
|
5616
|
+
description && /* @__PURE__ */ jsx223("div", { children: description }),
|
|
5617
|
+
checkboxes && /* @__PURE__ */ jsx223(VStack, { gap: "x1", children: checkboxes.map((props, index) => /* @__PURE__ */ createElement(CookieBannerCheckbox, { ...props, key: index })) }),
|
|
5618
|
+
buttons && /* @__PURE__ */ jsx223(
|
|
5593
5619
|
HStack,
|
|
5594
5620
|
{
|
|
5595
5621
|
gap: styleUpToBreakpoint("x1", "sm", "x1.5"),
|
|
@@ -5612,12 +5638,6 @@ var texts4 = createTexts({
|
|
|
5612
5638
|
no: "Utvid samtykke for bruk av informasjonskapsler",
|
|
5613
5639
|
nn: "Utvid samtykke for bruk av informasjonskapslar",
|
|
5614
5640
|
en: "Expand consent for the use of cookies"
|
|
5615
|
-
},
|
|
5616
|
-
consent: {
|
|
5617
|
-
nb: "Samtykke for bruk av informasjonskapsler",
|
|
5618
|
-
no: "Samtykke for bruk av informasjonskapsler",
|
|
5619
|
-
nn: "Samtykke for bruk av informasjonskapslar",
|
|
5620
|
-
en: "Consent for the use of cookies"
|
|
5621
5641
|
}
|
|
5622
5642
|
});
|
|
5623
5643
|
|
|
@@ -5689,7 +5709,7 @@ var LOCALE = {
|
|
|
5689
5709
|
var timezone = "Europe/Oslo";
|
|
5690
5710
|
|
|
5691
5711
|
// src/components/date-inputs/DatePicker/Calendar/CalendarCell.tsx
|
|
5692
|
-
import { jsx as
|
|
5712
|
+
import { jsx as jsx224 } from "react/jsx-runtime";
|
|
5693
5713
|
function CalendarCell({ date, state, onClose }) {
|
|
5694
5714
|
const ref = useRef11(null);
|
|
5695
5715
|
const {
|
|
@@ -5702,7 +5722,7 @@ function CalendarCell({ date, state, onClose }) {
|
|
|
5702
5722
|
isUnavailable
|
|
5703
5723
|
} = useCalendarCell({ date }, state, ref);
|
|
5704
5724
|
if (isDisabled) {
|
|
5705
|
-
return /* @__PURE__ */
|
|
5725
|
+
return /* @__PURE__ */ jsx224("td", { ...cellProps });
|
|
5706
5726
|
}
|
|
5707
5727
|
const variant = isSelected ? "selected" : isUnavailable || isDisabled ? "unavailable" : "default";
|
|
5708
5728
|
const closeOnKeyboardBlurForward = (event) => {
|
|
@@ -5710,7 +5730,7 @@ function CalendarCell({ date, state, onClose }) {
|
|
|
5710
5730
|
onClose();
|
|
5711
5731
|
}
|
|
5712
5732
|
};
|
|
5713
|
-
return /* @__PURE__ */
|
|
5733
|
+
return /* @__PURE__ */ jsx224("td", { ...cellProps, children: /* @__PURE__ */ jsx224(
|
|
5714
5734
|
"button",
|
|
5715
5735
|
{
|
|
5716
5736
|
...buttonProps,
|
|
@@ -5733,7 +5753,7 @@ function CalendarCell({ date, state, onClose }) {
|
|
|
5733
5753
|
CalendarCell.displayName = "CalendarCell";
|
|
5734
5754
|
|
|
5735
5755
|
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
5736
|
-
import { jsx as
|
|
5756
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
5737
5757
|
var VisuallyHidden = ({
|
|
5738
5758
|
id,
|
|
5739
5759
|
as: asProp,
|
|
@@ -5742,7 +5762,7 @@ var VisuallyHidden = ({
|
|
|
5742
5762
|
...rest
|
|
5743
5763
|
}) => {
|
|
5744
5764
|
const as = asProp != null ? asProp : "span";
|
|
5745
|
-
return /* @__PURE__ */
|
|
5765
|
+
return /* @__PURE__ */ jsx225(
|
|
5746
5766
|
ElementAs,
|
|
5747
5767
|
{
|
|
5748
5768
|
as,
|
|
@@ -5804,7 +5824,7 @@ import {
|
|
|
5804
5824
|
useRef as useRef12
|
|
5805
5825
|
} from "react";
|
|
5806
5826
|
import { createPortal } from "react-dom";
|
|
5807
|
-
import { Fragment as Fragment5, jsx as
|
|
5827
|
+
import { Fragment as Fragment5, jsx as jsx226, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
5808
5828
|
var CalendarPopoverContext = createContext9({
|
|
5809
5829
|
anchorRef: null,
|
|
5810
5830
|
closeButtonRef: null,
|
|
@@ -5820,7 +5840,7 @@ var CalendarPopover = ({
|
|
|
5820
5840
|
const anchorRef = useRef12(null);
|
|
5821
5841
|
const closeButtonRef = useRef12(null);
|
|
5822
5842
|
useOnKeyDown("Escape", onClose);
|
|
5823
|
-
return /* @__PURE__ */
|
|
5843
|
+
return /* @__PURE__ */ jsx226(
|
|
5824
5844
|
CalendarPopoverContext,
|
|
5825
5845
|
{
|
|
5826
5846
|
value: { anchorRef, closeButtonRef, onClose, ...props },
|
|
@@ -5832,7 +5852,7 @@ var CalendarPopoverAnchor = ({
|
|
|
5832
5852
|
children
|
|
5833
5853
|
}) => {
|
|
5834
5854
|
const { anchorRef } = useContext9(CalendarPopoverContext);
|
|
5835
|
-
return /* @__PURE__ */
|
|
5855
|
+
return /* @__PURE__ */ jsx226("div", { ref: anchorRef != null ? anchorRef : void 0, children });
|
|
5836
5856
|
};
|
|
5837
5857
|
var CalendarPopoverContent = ({
|
|
5838
5858
|
children,
|
|
@@ -5886,14 +5906,14 @@ var CalendarPopoverContent = ({
|
|
|
5886
5906
|
};
|
|
5887
5907
|
return /* @__PURE__ */ jsxs42(Fragment5, { children: [
|
|
5888
5908
|
portalTarget && hasBreakpoint && createPortal(
|
|
5889
|
-
/* @__PURE__ */
|
|
5909
|
+
/* @__PURE__ */ jsx226(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx226(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs42(
|
|
5890
5910
|
Paper,
|
|
5891
5911
|
{
|
|
5892
5912
|
ref: modalRef,
|
|
5893
5913
|
className: cn(DateInput_default.popover, className),
|
|
5894
5914
|
...paperStyleProps,
|
|
5895
5915
|
children: [
|
|
5896
|
-
/* @__PURE__ */
|
|
5916
|
+
/* @__PURE__ */ jsx226("div", { className: DateInput_default["modal-close-button-wrapper"], children: /* @__PURE__ */ jsx226(
|
|
5897
5917
|
Button,
|
|
5898
5918
|
{
|
|
5899
5919
|
ref: closeButtonRef,
|
|
@@ -5911,7 +5931,7 @@ var CalendarPopoverContent = ({
|
|
|
5911
5931
|
) }) }),
|
|
5912
5932
|
portalTarget
|
|
5913
5933
|
),
|
|
5914
|
-
/* @__PURE__ */
|
|
5934
|
+
/* @__PURE__ */ jsx226(
|
|
5915
5935
|
Paper,
|
|
5916
5936
|
{
|
|
5917
5937
|
ref: combinedRef,
|
|
@@ -5926,7 +5946,7 @@ var CalendarPopoverContent = ({
|
|
|
5926
5946
|
};
|
|
5927
5947
|
|
|
5928
5948
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
5929
|
-
import { jsx as
|
|
5949
|
+
import { jsx as jsx227, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
5930
5950
|
function CalendarGrid({ state, ...props }) {
|
|
5931
5951
|
const { t } = useTranslation();
|
|
5932
5952
|
const { locale } = useLocale();
|
|
@@ -5961,28 +5981,28 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5961
5981
|
},
|
|
5962
5982
|
cellPadding: "0",
|
|
5963
5983
|
children: [
|
|
5964
|
-
/* @__PURE__ */
|
|
5984
|
+
/* @__PURE__ */ jsx227("thead", { ...headerProps, children: /* @__PURE__ */ jsxs43("tr", { children: [
|
|
5965
5985
|
showWeekNumbers && /* @__PURE__ */ jsxs43(
|
|
5966
5986
|
"th",
|
|
5967
5987
|
{
|
|
5968
5988
|
className: cn(DateInput_default["calendar__grid-element"], ...typographyCn),
|
|
5969
5989
|
children: [
|
|
5970
|
-
/* @__PURE__ */
|
|
5971
|
-
/* @__PURE__ */
|
|
5990
|
+
/* @__PURE__ */ jsx227("span", { "aria-hidden": true, children: "#" }),
|
|
5991
|
+
/* @__PURE__ */ jsx227(VisuallyHidden, { children: t(texts5.weekNumber) })
|
|
5972
5992
|
]
|
|
5973
5993
|
}
|
|
5974
5994
|
),
|
|
5975
5995
|
weekDays.map((day, index) => /* @__PURE__ */ jsxs43("th", { className: cn(...typographyCn), children: [
|
|
5976
|
-
/* @__PURE__ */
|
|
5977
|
-
/* @__PURE__ */
|
|
5996
|
+
/* @__PURE__ */ jsx227("span", { "aria-hidden": true, children: day.short }),
|
|
5997
|
+
/* @__PURE__ */ jsx227(VisuallyHidden, { children: day.full })
|
|
5978
5998
|
] }, index))
|
|
5979
5999
|
] }) }),
|
|
5980
|
-
/* @__PURE__ */
|
|
6000
|
+
/* @__PURE__ */ jsx227("tbody", { children: [...new Array(weeksInMonth).keys()].map((weekIndex) => {
|
|
5981
6001
|
const datesInWeek = state.getDatesInWeek(weekIndex);
|
|
5982
6002
|
const firstExistingDay = datesInWeek.find(Boolean);
|
|
5983
6003
|
const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
|
|
5984
6004
|
return /* @__PURE__ */ jsxs43("tr", { children: [
|
|
5985
|
-
showWeekNumbers && /* @__PURE__ */
|
|
6005
|
+
showWeekNumbers && /* @__PURE__ */ jsx227(
|
|
5986
6006
|
"td",
|
|
5987
6007
|
{
|
|
5988
6008
|
className: cn(
|
|
@@ -5994,7 +6014,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
5994
6014
|
}
|
|
5995
6015
|
),
|
|
5996
6016
|
datesInWeek.map(
|
|
5997
|
-
(date, i) => date ? /* @__PURE__ */
|
|
6017
|
+
(date, i) => date ? /* @__PURE__ */ jsx227(
|
|
5998
6018
|
CalendarCell,
|
|
5999
6019
|
{
|
|
6000
6020
|
state,
|
|
@@ -6002,7 +6022,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6002
6022
|
onClose
|
|
6003
6023
|
},
|
|
6004
6024
|
i
|
|
6005
|
-
) : /* @__PURE__ */
|
|
6025
|
+
) : /* @__PURE__ */ jsx227("td", {}, i)
|
|
6006
6026
|
)
|
|
6007
6027
|
] }, weekIndex);
|
|
6008
6028
|
}) })
|
|
@@ -6105,7 +6125,7 @@ var texts5 = createTexts({
|
|
|
6105
6125
|
});
|
|
6106
6126
|
|
|
6107
6127
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
6108
|
-
import { jsx as
|
|
6128
|
+
import { jsx as jsx228, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6109
6129
|
function createCalendar(identifier) {
|
|
6110
6130
|
switch (identifier) {
|
|
6111
6131
|
case "gregory":
|
|
@@ -6139,7 +6159,7 @@ function Calendar(props) {
|
|
|
6139
6159
|
};
|
|
6140
6160
|
return /* @__PURE__ */ jsxs44("div", { ...calendarProps, className: DateInput_default.calendar, children: [
|
|
6141
6161
|
/* @__PURE__ */ jsxs44(HStack, { justifyContent: "space-between", alignItems: "center", children: [
|
|
6142
|
-
/* @__PURE__ */
|
|
6162
|
+
/* @__PURE__ */ jsx228(
|
|
6143
6163
|
Button,
|
|
6144
6164
|
{
|
|
6145
6165
|
type: "button",
|
|
@@ -6152,7 +6172,7 @@ function Calendar(props) {
|
|
|
6152
6172
|
className: DateInput_default["calendar__month-button"]
|
|
6153
6173
|
}
|
|
6154
6174
|
),
|
|
6155
|
-
/* @__PURE__ */
|
|
6175
|
+
/* @__PURE__ */ jsx228(
|
|
6156
6176
|
Heading,
|
|
6157
6177
|
{
|
|
6158
6178
|
level: 2,
|
|
@@ -6161,7 +6181,7 @@ function Calendar(props) {
|
|
|
6161
6181
|
children: title
|
|
6162
6182
|
}
|
|
6163
6183
|
),
|
|
6164
|
-
/* @__PURE__ */
|
|
6184
|
+
/* @__PURE__ */ jsx228(
|
|
6165
6185
|
Button,
|
|
6166
6186
|
{
|
|
6167
6187
|
type: "button",
|
|
@@ -6174,7 +6194,7 @@ function Calendar(props) {
|
|
|
6174
6194
|
}
|
|
6175
6195
|
)
|
|
6176
6196
|
] }),
|
|
6177
|
-
/* @__PURE__ */
|
|
6197
|
+
/* @__PURE__ */ jsx228(CalendarGrid, { state })
|
|
6178
6198
|
] });
|
|
6179
6199
|
}
|
|
6180
6200
|
Calendar.displayName = "Calendar";
|
|
@@ -6220,25 +6240,25 @@ var InlineIconButton_default = {
|
|
|
6220
6240
|
};
|
|
6221
6241
|
|
|
6222
6242
|
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
6223
|
-
import { jsx as
|
|
6243
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
6224
6244
|
var InlineIconButton = ({
|
|
6225
6245
|
className,
|
|
6226
6246
|
size: size2,
|
|
6227
6247
|
icon,
|
|
6228
6248
|
color,
|
|
6229
6249
|
...rest
|
|
6230
|
-
}) => /* @__PURE__ */
|
|
6250
|
+
}) => /* @__PURE__ */ jsx229(
|
|
6231
6251
|
StylelessButton,
|
|
6232
6252
|
{
|
|
6233
6253
|
className: cn(className, InlineIconButton_default.button, focusable),
|
|
6234
6254
|
...rest,
|
|
6235
|
-
children: /* @__PURE__ */
|
|
6255
|
+
children: /* @__PURE__ */ jsx229(Icon, { icon, iconSize: size2, color })
|
|
6236
6256
|
}
|
|
6237
6257
|
);
|
|
6238
6258
|
InlineIconButton.displayName = "InlineIconButton";
|
|
6239
6259
|
|
|
6240
6260
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6241
|
-
import { jsx as
|
|
6261
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
6242
6262
|
function CalendarButton({
|
|
6243
6263
|
componentSize = "medium",
|
|
6244
6264
|
isReadOnly,
|
|
@@ -6246,7 +6266,7 @@ function CalendarButton({
|
|
|
6246
6266
|
}) {
|
|
6247
6267
|
const ref = useRef13(null);
|
|
6248
6268
|
const { buttonProps } = useButton(props, ref);
|
|
6249
|
-
return /* @__PURE__ */
|
|
6269
|
+
return /* @__PURE__ */ jsx230(
|
|
6250
6270
|
InlineIconButton,
|
|
6251
6271
|
{
|
|
6252
6272
|
...buttonProps,
|
|
@@ -6300,7 +6320,7 @@ function formatDateFieldSegments(segments) {
|
|
|
6300
6320
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6301
6321
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6302
6322
|
import { useRef as useRef14 } from "react";
|
|
6303
|
-
import { jsx as
|
|
6323
|
+
import { jsx as jsx231, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6304
6324
|
var typographyTypes = {
|
|
6305
6325
|
medium: "bodyMedium",
|
|
6306
6326
|
small: "bodySmall",
|
|
@@ -6328,7 +6348,7 @@ function DateSegment({
|
|
|
6328
6348
|
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6329
6349
|
},
|
|
6330
6350
|
children: [
|
|
6331
|
-
/* @__PURE__ */
|
|
6351
|
+
/* @__PURE__ */ jsx231(
|
|
6332
6352
|
"span",
|
|
6333
6353
|
{
|
|
6334
6354
|
"aria-hidden": "true",
|
|
@@ -6348,12 +6368,12 @@ function DateSegment({
|
|
|
6348
6368
|
DateSegment.displayName = "DateSegment";
|
|
6349
6369
|
|
|
6350
6370
|
// src/components/helpers/ClearButton/ClearButton.tsx
|
|
6351
|
-
import { jsx as
|
|
6371
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
6352
6372
|
var ClearButton = ({
|
|
6353
6373
|
className,
|
|
6354
6374
|
absolute = true,
|
|
6355
6375
|
...rest
|
|
6356
|
-
}) => /* @__PURE__ */
|
|
6376
|
+
}) => /* @__PURE__ */ jsx232(
|
|
6357
6377
|
InlineIconButton,
|
|
6358
6378
|
{
|
|
6359
6379
|
className: cn(className, absolute && utilStyles_default["center-absolute-y"]),
|
|
@@ -6385,18 +6405,18 @@ var Input_default = {
|
|
|
6385
6405
|
};
|
|
6386
6406
|
|
|
6387
6407
|
// src/components/helpers/Input/Input.tsx
|
|
6388
|
-
import { jsx as
|
|
6408
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
6389
6409
|
var Input = ({
|
|
6390
6410
|
className,
|
|
6391
6411
|
...rest
|
|
6392
|
-
}) => /* @__PURE__ */
|
|
6412
|
+
}) => /* @__PURE__ */ jsx233("input", { className: cn(className, Input_default.input, focusable), ...rest });
|
|
6393
6413
|
Input.displayName = "Input";
|
|
6394
6414
|
var StatefulInput = ({
|
|
6395
6415
|
className,
|
|
6396
6416
|
componentSize = "medium",
|
|
6397
6417
|
hasErrorMessage,
|
|
6398
6418
|
...rest
|
|
6399
|
-
}) => /* @__PURE__ */
|
|
6419
|
+
}) => /* @__PURE__ */ jsx233(
|
|
6400
6420
|
Input,
|
|
6401
6421
|
{
|
|
6402
6422
|
className: cn(
|
|
@@ -6435,17 +6455,17 @@ function getInputWidth(width, defaultW) {
|
|
|
6435
6455
|
}
|
|
6436
6456
|
|
|
6437
6457
|
// src/components/Typography/Label/Label.utils.tsx
|
|
6438
|
-
import { jsx as
|
|
6458
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
6439
6459
|
function renderLabel(props) {
|
|
6440
6460
|
const { label, ...rest } = props;
|
|
6441
6461
|
const hasLabel = !!label;
|
|
6442
6462
|
if (hasLabel)
|
|
6443
|
-
return /* @__PURE__ */
|
|
6463
|
+
return /* @__PURE__ */ jsx234(Label, { ...rest, withMargins: true, children: label });
|
|
6444
6464
|
return null;
|
|
6445
6465
|
}
|
|
6446
6466
|
|
|
6447
6467
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6448
|
-
import { jsx as
|
|
6468
|
+
import { jsx as jsx235, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6449
6469
|
function DateInput({
|
|
6450
6470
|
errorMessage,
|
|
6451
6471
|
tip,
|
|
@@ -6511,7 +6531,7 @@ function DateInput({
|
|
|
6511
6531
|
),
|
|
6512
6532
|
children: [
|
|
6513
6533
|
button,
|
|
6514
|
-
/* @__PURE__ */
|
|
6534
|
+
/* @__PURE__ */ jsx235(
|
|
6515
6535
|
"div",
|
|
6516
6536
|
{
|
|
6517
6537
|
...fieldProps,
|
|
@@ -6524,7 +6544,7 @@ function DateInput({
|
|
|
6524
6544
|
]
|
|
6525
6545
|
}
|
|
6526
6546
|
),
|
|
6527
|
-
hasMessage && /* @__PURE__ */
|
|
6547
|
+
hasMessage && /* @__PURE__ */ jsx235(
|
|
6528
6548
|
InputMessage,
|
|
6529
6549
|
{
|
|
6530
6550
|
messageType: hasErrorMessage ? "error" : "tip",
|
|
@@ -6538,7 +6558,7 @@ function DateInput({
|
|
|
6538
6558
|
DateInput.displayName = "DateInput";
|
|
6539
6559
|
|
|
6540
6560
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6541
|
-
import { jsx as
|
|
6561
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
6542
6562
|
function DateField({
|
|
6543
6563
|
componentSize = "medium",
|
|
6544
6564
|
buttonProps,
|
|
@@ -6567,7 +6587,7 @@ function DateField({
|
|
|
6567
6587
|
state.setValue(null);
|
|
6568
6588
|
};
|
|
6569
6589
|
const formattedSegments = formatDateFieldSegments(state.segments);
|
|
6570
|
-
return /* @__PURE__ */
|
|
6590
|
+
return /* @__PURE__ */ jsx236(
|
|
6571
6591
|
DateInput,
|
|
6572
6592
|
{
|
|
6573
6593
|
...props,
|
|
@@ -6580,7 +6600,7 @@ function DateField({
|
|
|
6580
6600
|
ref,
|
|
6581
6601
|
internalRef,
|
|
6582
6602
|
readOnly: props.isReadOnly,
|
|
6583
|
-
prefix: /* @__PURE__ */
|
|
6603
|
+
prefix: /* @__PURE__ */ jsx236(
|
|
6584
6604
|
CalendarButton,
|
|
6585
6605
|
{
|
|
6586
6606
|
componentSize,
|
|
@@ -6589,7 +6609,7 @@ function DateField({
|
|
|
6589
6609
|
isDisabled: disabled || props.isReadOnly
|
|
6590
6610
|
}
|
|
6591
6611
|
),
|
|
6592
|
-
suffix: showClearButton && /* @__PURE__ */
|
|
6612
|
+
suffix: showClearButton && /* @__PURE__ */ jsx236(
|
|
6593
6613
|
ClearButton,
|
|
6594
6614
|
{
|
|
6595
6615
|
absolute: false,
|
|
@@ -6605,7 +6625,7 @@ function DateField({
|
|
|
6605
6625
|
),
|
|
6606
6626
|
labelProps,
|
|
6607
6627
|
fieldProps,
|
|
6608
|
-
children: formattedSegments.map((segment, i) => /* @__PURE__ */
|
|
6628
|
+
children: formattedSegments.map((segment, i) => /* @__PURE__ */ jsx236(
|
|
6609
6629
|
DateSegment,
|
|
6610
6630
|
{
|
|
6611
6631
|
"aria-readonly": props.isReadOnly,
|
|
@@ -6650,7 +6670,7 @@ function createDOMRef(ref) {
|
|
|
6650
6670
|
}
|
|
6651
6671
|
|
|
6652
6672
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6653
|
-
import { jsx as
|
|
6673
|
+
import { jsx as jsx237, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
6654
6674
|
var refIsFocusable = (ref) => {
|
|
6655
6675
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6656
6676
|
};
|
|
@@ -6679,14 +6699,14 @@ function DatePicker({
|
|
|
6679
6699
|
state,
|
|
6680
6700
|
internalRef
|
|
6681
6701
|
);
|
|
6682
|
-
return /* @__PURE__ */
|
|
6702
|
+
return /* @__PURE__ */ jsx237(I18nProvider, { locale: LOCALE[lang], children: /* @__PURE__ */ jsxs47(
|
|
6683
6703
|
CalendarPopover,
|
|
6684
6704
|
{
|
|
6685
6705
|
isOpen: state.isOpen,
|
|
6686
6706
|
onClose: state.close,
|
|
6687
6707
|
showWeekNumbers,
|
|
6688
6708
|
children: [
|
|
6689
|
-
/* @__PURE__ */
|
|
6709
|
+
/* @__PURE__ */ jsx237(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx237(
|
|
6690
6710
|
DateField,
|
|
6691
6711
|
{
|
|
6692
6712
|
...fieldProps,
|
|
@@ -6702,7 +6722,7 @@ function DatePicker({
|
|
|
6702
6722
|
clearable
|
|
6703
6723
|
}
|
|
6704
6724
|
) }),
|
|
6705
|
-
/* @__PURE__ */
|
|
6725
|
+
/* @__PURE__ */ jsx237(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ jsx237(Calendar, { ...calendarProps }) })
|
|
6706
6726
|
]
|
|
6707
6727
|
}
|
|
6708
6728
|
) });
|
|
@@ -6713,7 +6733,37 @@ DatePicker.displayName = "DatePicker";
|
|
|
6713
6733
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6714
6734
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6715
6735
|
import { useRef as useRef18 } from "react";
|
|
6716
|
-
|
|
6736
|
+
|
|
6737
|
+
// src/components/date-inputs/TimePicker/TimePicker.utils.ts
|
|
6738
|
+
function formatTimeSegments(segments) {
|
|
6739
|
+
const hourSegment = segments.find((segment) => segment.type === "hour");
|
|
6740
|
+
const minuteSegment = segments.find((segment) => segment.type === "minute");
|
|
6741
|
+
const separatorSegment = segments.find(
|
|
6742
|
+
(segment) => segment.type === "literal" && segment.isPlaceholder === void 0
|
|
6743
|
+
);
|
|
6744
|
+
if (!hourSegment || !minuteSegment || !separatorSegment) {
|
|
6745
|
+
throw new Error("Invalid time segments");
|
|
6746
|
+
}
|
|
6747
|
+
const formattedHourSegment = {
|
|
6748
|
+
...hourSegment,
|
|
6749
|
+
text: hourSegment.text.padStart(2, "0"),
|
|
6750
|
+
placeholder: "\u2013\u2013"
|
|
6751
|
+
};
|
|
6752
|
+
const formattedMinuteSegment = {
|
|
6753
|
+
...minuteSegment,
|
|
6754
|
+
text: minuteSegment.text.padStart(2, "0"),
|
|
6755
|
+
placeholder: "\u2013\u2013"
|
|
6756
|
+
};
|
|
6757
|
+
const formattedSeparatorSegment = { ...separatorSegment, text: ":" };
|
|
6758
|
+
return [
|
|
6759
|
+
formattedHourSegment,
|
|
6760
|
+
formattedSeparatorSegment,
|
|
6761
|
+
formattedMinuteSegment
|
|
6762
|
+
];
|
|
6763
|
+
}
|
|
6764
|
+
|
|
6765
|
+
// src/components/date-inputs/TimePicker/TimePicker.tsx
|
|
6766
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
6717
6767
|
function TimePicker({
|
|
6718
6768
|
componentSize = "medium",
|
|
6719
6769
|
width,
|
|
@@ -6722,7 +6772,7 @@ function TimePicker({
|
|
|
6722
6772
|
}) {
|
|
6723
6773
|
const lang = useLanguage();
|
|
6724
6774
|
if (!lang) {
|
|
6725
|
-
throw new Error("
|
|
6775
|
+
throw new Error("TimePicker must be used within a DdsProvider");
|
|
6726
6776
|
}
|
|
6727
6777
|
const internalRef = useRef18(null);
|
|
6728
6778
|
const state = useTimeFieldState({
|
|
@@ -6736,7 +6786,8 @@ function TimePicker({
|
|
|
6736
6786
|
);
|
|
6737
6787
|
const iconSize = componentSize === "xsmall" ? "small" : "medium";
|
|
6738
6788
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6739
|
-
|
|
6789
|
+
const formattedSegments = formatTimeSegments(state.segments);
|
|
6790
|
+
return /* @__PURE__ */ jsx238(
|
|
6740
6791
|
DateInput,
|
|
6741
6792
|
{
|
|
6742
6793
|
...props,
|
|
@@ -6749,7 +6800,7 @@ function TimePicker({
|
|
|
6749
6800
|
readOnly: props.isReadOnly,
|
|
6750
6801
|
labelProps,
|
|
6751
6802
|
fieldProps,
|
|
6752
|
-
prefix: /* @__PURE__ */
|
|
6803
|
+
prefix: /* @__PURE__ */ jsx238(
|
|
6753
6804
|
Icon,
|
|
6754
6805
|
{
|
|
6755
6806
|
icon: TimeIcon,
|
|
@@ -6761,7 +6812,7 @@ function TimePicker({
|
|
|
6761
6812
|
)
|
|
6762
6813
|
}
|
|
6763
6814
|
),
|
|
6764
|
-
children:
|
|
6815
|
+
children: formattedSegments.map((segment, i) => /* @__PURE__ */ jsx238(
|
|
6765
6816
|
DateSegment,
|
|
6766
6817
|
{
|
|
6767
6818
|
componentSize,
|
|
@@ -6820,7 +6871,7 @@ var DescriptionList_default = {
|
|
|
6820
6871
|
};
|
|
6821
6872
|
|
|
6822
6873
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6823
|
-
import { jsx as
|
|
6874
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
6824
6875
|
var DescriptionList = ({
|
|
6825
6876
|
appearance = "default",
|
|
6826
6877
|
direction = "column",
|
|
@@ -6829,7 +6880,7 @@ var DescriptionList = ({
|
|
|
6829
6880
|
className,
|
|
6830
6881
|
htmlProps,
|
|
6831
6882
|
...rest
|
|
6832
|
-
}) => /* @__PURE__ */
|
|
6883
|
+
}) => /* @__PURE__ */ jsx239(
|
|
6833
6884
|
VStack,
|
|
6834
6885
|
{
|
|
6835
6886
|
as: "dl",
|
|
@@ -6854,14 +6905,14 @@ var DescriptionList = ({
|
|
|
6854
6905
|
DescriptionList.displayName = "DescriptionList";
|
|
6855
6906
|
|
|
6856
6907
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6857
|
-
import { jsx as
|
|
6908
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
6858
6909
|
var DescriptionListTerm = (props) => {
|
|
6859
|
-
return /* @__PURE__ */
|
|
6910
|
+
return /* @__PURE__ */ jsx240("dt", { ...props });
|
|
6860
6911
|
};
|
|
6861
6912
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6862
6913
|
|
|
6863
6914
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6864
|
-
import { jsx as
|
|
6915
|
+
import { jsx as jsx241, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6865
6916
|
var DescriptionListDesc = ({
|
|
6866
6917
|
children,
|
|
6867
6918
|
icon,
|
|
@@ -6870,14 +6921,14 @@ var DescriptionListDesc = ({
|
|
|
6870
6921
|
htmlProps,
|
|
6871
6922
|
...rest
|
|
6872
6923
|
}) => /* @__PURE__ */ jsxs48("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
|
|
6873
|
-
icon && /* @__PURE__ */
|
|
6924
|
+
icon && /* @__PURE__ */ jsx241(Icon, { icon }),
|
|
6874
6925
|
" ",
|
|
6875
6926
|
children
|
|
6876
6927
|
] });
|
|
6877
6928
|
DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
6878
6929
|
|
|
6879
6930
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6880
|
-
import { jsx as
|
|
6931
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
6881
6932
|
var DescriptionListGroup = ({
|
|
6882
6933
|
children,
|
|
6883
6934
|
margin,
|
|
@@ -6887,7 +6938,7 @@ var DescriptionListGroup = ({
|
|
|
6887
6938
|
className,
|
|
6888
6939
|
htmlProps,
|
|
6889
6940
|
...rest
|
|
6890
|
-
}) => /* @__PURE__ */
|
|
6941
|
+
}) => /* @__PURE__ */ jsx242(
|
|
6891
6942
|
"div",
|
|
6892
6943
|
{
|
|
6893
6944
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
|
|
@@ -6918,7 +6969,7 @@ var DetailListContext = createContext10({});
|
|
|
6918
6969
|
var useDetailListContext = () => useContext13(DetailListContext);
|
|
6919
6970
|
|
|
6920
6971
|
// src/components/DetailList/DetailList.tsx
|
|
6921
|
-
import { jsx as
|
|
6972
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
6922
6973
|
var DetailList = ({
|
|
6923
6974
|
id,
|
|
6924
6975
|
className,
|
|
@@ -6928,7 +6979,7 @@ var DetailList = ({
|
|
|
6928
6979
|
size: size2 = "medium",
|
|
6929
6980
|
smallScreenBreakpoint,
|
|
6930
6981
|
...rest
|
|
6931
|
-
}) => /* @__PURE__ */
|
|
6982
|
+
}) => /* @__PURE__ */ jsx243(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ jsx243(
|
|
6932
6983
|
"dl",
|
|
6933
6984
|
{
|
|
6934
6985
|
...getBaseHTMLProps(
|
|
@@ -6949,17 +7000,17 @@ var DetailList = ({
|
|
|
6949
7000
|
DetailList.displayName = "DetailList";
|
|
6950
7001
|
|
|
6951
7002
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6952
|
-
import { jsx as
|
|
6953
|
-
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */
|
|
7003
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
7004
|
+
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx244("dd", { className: cn(className, DetailList_default.cell), ...rest });
|
|
6954
7005
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6955
7006
|
|
|
6956
7007
|
// src/components/DetailList/DetailListRow.tsx
|
|
6957
|
-
import { Fragment as Fragment6, jsx as
|
|
7008
|
+
import { Fragment as Fragment6, jsx as jsx245, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6958
7009
|
var DetailListRow = ({ className, ...rest }) => {
|
|
6959
7010
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
6960
7011
|
const hasBp = !!bp;
|
|
6961
7012
|
return /* @__PURE__ */ jsxs49(Fragment6, { children: [
|
|
6962
|
-
/* @__PURE__ */
|
|
7013
|
+
/* @__PURE__ */ jsx245(
|
|
6963
7014
|
Box,
|
|
6964
7015
|
{
|
|
6965
7016
|
display: "table-row",
|
|
@@ -6968,7 +7019,7 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6968
7019
|
...rest
|
|
6969
7020
|
}
|
|
6970
7021
|
),
|
|
6971
|
-
hasBp && /* @__PURE__ */
|
|
7022
|
+
hasBp && /* @__PURE__ */ jsx245(
|
|
6972
7023
|
Box,
|
|
6973
7024
|
{
|
|
6974
7025
|
display: "flex",
|
|
@@ -6983,8 +7034,8 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6983
7034
|
DetailListRow.displayName = "DetailListRow";
|
|
6984
7035
|
|
|
6985
7036
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6986
|
-
import { jsx as
|
|
6987
|
-
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */
|
|
7037
|
+
import { jsx as jsx246 } from "react/jsx-runtime";
|
|
7038
|
+
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ jsx246("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
|
|
6988
7039
|
DetailListTerm.displayName = "DetailListTerm";
|
|
6989
7040
|
|
|
6990
7041
|
// src/components/Drawer/Drawer.tsx
|
|
@@ -7015,7 +7066,7 @@ var DrawerContext = createContext11({});
|
|
|
7015
7066
|
var useDrawerContext = () => useContext14(DrawerContext);
|
|
7016
7067
|
|
|
7017
7068
|
// src/components/Drawer/Drawer.tsx
|
|
7018
|
-
import { jsx as
|
|
7069
|
+
import { jsx as jsx247, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7019
7070
|
var DRAWER_SIZES = createSizes("small", "medium", "large");
|
|
7020
7071
|
var Drawer = ({
|
|
7021
7072
|
children,
|
|
@@ -7120,8 +7171,8 @@ var Drawer = ({
|
|
|
7120
7171
|
paddingInline: "var(--dds-drawer-content-container-padding)",
|
|
7121
7172
|
className: Drawer_default["drawer-header"],
|
|
7122
7173
|
children: [
|
|
7123
|
-
hasHeader && /* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7174
|
+
hasHeader && /* @__PURE__ */ jsx247("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx247(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
7175
|
+
/* @__PURE__ */ jsx247(
|
|
7125
7176
|
Button,
|
|
7126
7177
|
{
|
|
7127
7178
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -7136,7 +7187,7 @@ var Drawer = ({
|
|
|
7136
7187
|
]
|
|
7137
7188
|
}
|
|
7138
7189
|
),
|
|
7139
|
-
/* @__PURE__ */
|
|
7190
|
+
/* @__PURE__ */ jsx247(
|
|
7140
7191
|
VStack,
|
|
7141
7192
|
{
|
|
7142
7193
|
gap: "x1",
|
|
@@ -7148,7 +7199,7 @@ var Drawer = ({
|
|
|
7148
7199
|
]
|
|
7149
7200
|
}
|
|
7150
7201
|
);
|
|
7151
|
-
const component = withBackdrop ? /* @__PURE__ */
|
|
7202
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx247(
|
|
7152
7203
|
Backdrop,
|
|
7153
7204
|
{
|
|
7154
7205
|
zIndex: "drawer",
|
|
@@ -7167,11 +7218,11 @@ import {
|
|
|
7167
7218
|
Children as ReactChildren2,
|
|
7168
7219
|
cloneElement as cloneElement2,
|
|
7169
7220
|
isValidElement as isValidElement3,
|
|
7170
|
-
useId as
|
|
7221
|
+
useId as useId10,
|
|
7171
7222
|
useRef as useRef20,
|
|
7172
7223
|
useState as useState13
|
|
7173
7224
|
} from "react";
|
|
7174
|
-
import { jsx as
|
|
7225
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
7175
7226
|
var DrawerGroup = ({
|
|
7176
7227
|
children,
|
|
7177
7228
|
isInitiallyOpen,
|
|
@@ -7186,7 +7237,7 @@ var DrawerGroup = ({
|
|
|
7186
7237
|
propIsOpen != null ? propIsOpen : internalIsOpen,
|
|
7187
7238
|
propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen
|
|
7188
7239
|
];
|
|
7189
|
-
const generatedId =
|
|
7240
|
+
const generatedId = useId10();
|
|
7190
7241
|
const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
|
|
7191
7242
|
const triggerRef = useRef20(null);
|
|
7192
7243
|
const open = () => setIsOpen(true);
|
|
@@ -7215,7 +7266,7 @@ var DrawerGroup = ({
|
|
|
7215
7266
|
onClick: handleOpen
|
|
7216
7267
|
}) : child);
|
|
7217
7268
|
});
|
|
7218
|
-
return /* @__PURE__ */
|
|
7269
|
+
return /* @__PURE__ */ jsx248(
|
|
7219
7270
|
DrawerContext,
|
|
7220
7271
|
{
|
|
7221
7272
|
value: {
|
|
@@ -7231,14 +7282,14 @@ var DrawerGroup = ({
|
|
|
7231
7282
|
DrawerGroup.displayName = "DrawerGroup";
|
|
7232
7283
|
|
|
7233
7284
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
7234
|
-
import { jsx as
|
|
7285
|
+
import { jsx as jsx249, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7235
7286
|
function EmptyContent({
|
|
7236
7287
|
headerText,
|
|
7237
7288
|
message,
|
|
7238
7289
|
headerHeadingLevel = 2,
|
|
7239
7290
|
...rest
|
|
7240
7291
|
}) {
|
|
7241
|
-
return /* @__PURE__ */
|
|
7292
|
+
return /* @__PURE__ */ jsx249(
|
|
7242
7293
|
Paper,
|
|
7243
7294
|
{
|
|
7244
7295
|
display: "flex",
|
|
@@ -7252,8 +7303,8 @@ function EmptyContent({
|
|
|
7252
7303
|
borderRadius: "surface",
|
|
7253
7304
|
...rest,
|
|
7254
7305
|
children: /* @__PURE__ */ jsxs51(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
|
|
7255
|
-
headerText && /* @__PURE__ */
|
|
7256
|
-
/* @__PURE__ */
|
|
7306
|
+
headerText && /* @__PURE__ */ jsx249(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
|
|
7307
|
+
/* @__PURE__ */ jsx249(Paragraph, { color: "text-medium", children: message })
|
|
7257
7308
|
] })
|
|
7258
7309
|
}
|
|
7259
7310
|
);
|
|
@@ -7261,7 +7312,7 @@ function EmptyContent({
|
|
|
7261
7312
|
EmptyContent.displayName = "EmptyContent";
|
|
7262
7313
|
|
|
7263
7314
|
// src/components/FavStar/FavStar.tsx
|
|
7264
|
-
import { useId as
|
|
7315
|
+
import { useId as useId11 } from "react";
|
|
7265
7316
|
|
|
7266
7317
|
// src/components/FavStar/FavStar.module.css
|
|
7267
7318
|
var FavStar_default = {
|
|
@@ -7273,7 +7324,7 @@ var FavStar_default = {
|
|
|
7273
7324
|
};
|
|
7274
7325
|
|
|
7275
7326
|
// src/components/FavStar/FavStar.tsx
|
|
7276
|
-
import { jsx as
|
|
7327
|
+
import { jsx as jsx250, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7277
7328
|
var FAVSTAR_SIZES = createSizes("medium", "large");
|
|
7278
7329
|
var FavStar = ({
|
|
7279
7330
|
id,
|
|
@@ -7293,7 +7344,7 @@ var FavStar = ({
|
|
|
7293
7344
|
htmlProps,
|
|
7294
7345
|
rest
|
|
7295
7346
|
);
|
|
7296
|
-
const generatedId =
|
|
7347
|
+
const generatedId = useId11();
|
|
7297
7348
|
const [checked, setChecked] = useControllableState({
|
|
7298
7349
|
value: checkedProp,
|
|
7299
7350
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
@@ -7311,7 +7362,7 @@ var FavStar = ({
|
|
|
7311
7362
|
style,
|
|
7312
7363
|
htmlFor: id != null ? id : generatedId,
|
|
7313
7364
|
children: [
|
|
7314
|
-
/* @__PURE__ */
|
|
7365
|
+
/* @__PURE__ */ jsx250(
|
|
7315
7366
|
HiddenInput,
|
|
7316
7367
|
{
|
|
7317
7368
|
...props,
|
|
@@ -7322,8 +7373,8 @@ var FavStar = ({
|
|
|
7322
7373
|
"aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
|
|
7323
7374
|
}
|
|
7324
7375
|
),
|
|
7325
|
-
/* @__PURE__ */
|
|
7326
|
-
/* @__PURE__ */
|
|
7376
|
+
/* @__PURE__ */ jsx250(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7377
|
+
/* @__PURE__ */ jsx250(
|
|
7327
7378
|
Icon,
|
|
7328
7379
|
{
|
|
7329
7380
|
iconSize: size2,
|
|
@@ -7362,7 +7413,7 @@ var Feedback_default = {
|
|
|
7362
7413
|
// src/components/TextArea/TextArea.tsx
|
|
7363
7414
|
import {
|
|
7364
7415
|
useEffect as useEffect20,
|
|
7365
|
-
useId as
|
|
7416
|
+
useId as useId13,
|
|
7366
7417
|
useRef as useRef21,
|
|
7367
7418
|
useState as useState14
|
|
7368
7419
|
} from "react";
|
|
@@ -7373,7 +7424,7 @@ var TextArea_default = {
|
|
|
7373
7424
|
};
|
|
7374
7425
|
|
|
7375
7426
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7376
|
-
import { useId as
|
|
7427
|
+
import { useId as useId12 } from "react";
|
|
7377
7428
|
|
|
7378
7429
|
// src/components/helpers/CharCounter/CharCounter.module.css
|
|
7379
7430
|
var CharCounter_default = {
|
|
@@ -7381,11 +7432,11 @@ var CharCounter_default = {
|
|
|
7381
7432
|
};
|
|
7382
7433
|
|
|
7383
7434
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7384
|
-
import { jsx as
|
|
7435
|
+
import { jsx as jsx251, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7385
7436
|
function CharCounter(props) {
|
|
7386
7437
|
const { t } = useTranslation();
|
|
7387
7438
|
const { current, max, id } = props;
|
|
7388
|
-
const generatedId =
|
|
7439
|
+
const generatedId = useId12();
|
|
7389
7440
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
7390
7441
|
return /* @__PURE__ */ jsxs53(
|
|
7391
7442
|
Typography,
|
|
@@ -7401,14 +7452,14 @@ function CharCounter(props) {
|
|
|
7401
7452
|
"/",
|
|
7402
7453
|
max
|
|
7403
7454
|
] }),
|
|
7404
|
-
/* @__PURE__ */
|
|
7455
|
+
/* @__PURE__ */ jsx251(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
|
|
7405
7456
|
]
|
|
7406
7457
|
}
|
|
7407
7458
|
);
|
|
7408
7459
|
}
|
|
7409
7460
|
var renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
7410
7461
|
if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
|
|
7411
|
-
return /* @__PURE__ */
|
|
7462
|
+
return /* @__PURE__ */ jsx251(CharCounter, { id, max: maxLength, current: textLength });
|
|
7412
7463
|
};
|
|
7413
7464
|
var texts9 = createTexts({
|
|
7414
7465
|
charsWritten: (current, max, remain) => ({
|
|
@@ -7420,7 +7471,7 @@ var texts9 = createTexts({
|
|
|
7420
7471
|
});
|
|
7421
7472
|
|
|
7422
7473
|
// src/components/TextArea/TextArea.tsx
|
|
7423
|
-
import { jsx as
|
|
7474
|
+
import { jsx as jsx252, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7424
7475
|
var TextArea = ({
|
|
7425
7476
|
id,
|
|
7426
7477
|
value,
|
|
@@ -7441,7 +7492,7 @@ var TextArea = ({
|
|
|
7441
7492
|
ref,
|
|
7442
7493
|
...rest
|
|
7443
7494
|
}) => {
|
|
7444
|
-
const generatedId =
|
|
7495
|
+
const generatedId = useId13();
|
|
7445
7496
|
const uniqueId = id != null ? id : `${generatedId}-textArea`;
|
|
7446
7497
|
const textAreaRef = useRef21(null);
|
|
7447
7498
|
const multiRef = useCombinedRef(ref, textAreaRef);
|
|
@@ -7471,7 +7522,7 @@ var TextArea = ({
|
|
|
7471
7522
|
const inputWidth = getInputWidth(width);
|
|
7472
7523
|
return /* @__PURE__ */ jsxs54("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
|
|
7473
7524
|
renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
|
|
7474
|
-
/* @__PURE__ */
|
|
7525
|
+
/* @__PURE__ */ jsx252(
|
|
7475
7526
|
Box,
|
|
7476
7527
|
{
|
|
7477
7528
|
as: "textarea",
|
|
@@ -7529,7 +7580,7 @@ TextArea.displayName = "TextArea";
|
|
|
7529
7580
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7530
7581
|
|
|
7531
7582
|
// src/components/Feedback/CommentComponent.tsx
|
|
7532
|
-
import { jsx as
|
|
7583
|
+
import { jsx as jsx253, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7533
7584
|
var CommentComponent = ({
|
|
7534
7585
|
layout,
|
|
7535
7586
|
rating,
|
|
@@ -7545,7 +7596,7 @@ var CommentComponent = ({
|
|
|
7545
7596
|
const { t } = useTranslation();
|
|
7546
7597
|
return /* @__PURE__ */ jsxs55(VStack, { gap: "x1", children: [
|
|
7547
7598
|
/* @__PURE__ */ jsxs55("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7548
|
-
/* @__PURE__ */
|
|
7599
|
+
/* @__PURE__ */ jsx253(
|
|
7549
7600
|
Icon,
|
|
7550
7601
|
{
|
|
7551
7602
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -7558,7 +7609,7 @@ var CommentComponent = ({
|
|
|
7558
7609
|
" "
|
|
7559
7610
|
] })
|
|
7560
7611
|
] }),
|
|
7561
|
-
/* @__PURE__ */
|
|
7612
|
+
/* @__PURE__ */ jsx253(
|
|
7562
7613
|
TextArea,
|
|
7563
7614
|
{
|
|
7564
7615
|
value: feedbackText,
|
|
@@ -7567,7 +7618,7 @@ var CommentComponent = ({
|
|
|
7567
7618
|
tip: textAreaTip
|
|
7568
7619
|
}
|
|
7569
7620
|
),
|
|
7570
|
-
/* @__PURE__ */
|
|
7621
|
+
/* @__PURE__ */ jsx253(
|
|
7571
7622
|
Button,
|
|
7572
7623
|
{
|
|
7573
7624
|
purpose: "secondary",
|
|
@@ -7593,7 +7644,7 @@ import {
|
|
|
7593
7644
|
Children as ReactChildren3,
|
|
7594
7645
|
cloneElement as cloneElement3,
|
|
7595
7646
|
useEffect as useEffect21,
|
|
7596
|
-
useId as
|
|
7647
|
+
useId as useId14,
|
|
7597
7648
|
useRef as useRef22,
|
|
7598
7649
|
useState as useState15
|
|
7599
7650
|
} from "react";
|
|
@@ -7607,7 +7658,7 @@ var Tooltip_default = {
|
|
|
7607
7658
|
};
|
|
7608
7659
|
|
|
7609
7660
|
// src/components/Tooltip/Tooltip.tsx
|
|
7610
|
-
import { jsx as
|
|
7661
|
+
import { jsx as jsx254, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7611
7662
|
var Tooltip = ({
|
|
7612
7663
|
text,
|
|
7613
7664
|
placement = "bottom",
|
|
@@ -7624,7 +7675,7 @@ var Tooltip = ({
|
|
|
7624
7675
|
htmlProps,
|
|
7625
7676
|
...rest
|
|
7626
7677
|
}) => {
|
|
7627
|
-
const generatedId =
|
|
7678
|
+
const generatedId = useId14();
|
|
7628
7679
|
const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
|
|
7629
7680
|
const [open, setOpen] = useState15(false);
|
|
7630
7681
|
const [inView, setInView] = useState15(keepMounted ? false : true);
|
|
@@ -7730,15 +7781,15 @@ var Tooltip = ({
|
|
|
7730
7781
|
),
|
|
7731
7782
|
children: [
|
|
7732
7783
|
text,
|
|
7733
|
-
/* @__PURE__ */
|
|
7734
|
-
/* @__PURE__ */
|
|
7784
|
+
/* @__PURE__ */ jsx254("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs56("svg", { width: "36", height: "9", children: [
|
|
7785
|
+
/* @__PURE__ */ jsx254(
|
|
7735
7786
|
"path",
|
|
7736
7787
|
{
|
|
7737
7788
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7738
7789
|
className: Tooltip_default["svg-arrow__background"]
|
|
7739
7790
|
}
|
|
7740
7791
|
),
|
|
7741
|
-
/* @__PURE__ */
|
|
7792
|
+
/* @__PURE__ */ jsx254(
|
|
7742
7793
|
"path",
|
|
7743
7794
|
{
|
|
7744
7795
|
fillRule: "evenodd",
|
|
@@ -7758,7 +7809,7 @@ var Tooltip = ({
|
|
|
7758
7809
|
Tooltip.displayName = "Tooltip";
|
|
7759
7810
|
|
|
7760
7811
|
// src/components/Feedback/RatingComponent.tsx
|
|
7761
|
-
import { jsx as
|
|
7812
|
+
import { jsx as jsx255, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7762
7813
|
var RatingComponent = ({
|
|
7763
7814
|
layout,
|
|
7764
7815
|
ratingLabel,
|
|
@@ -7768,7 +7819,7 @@ var RatingComponent = ({
|
|
|
7768
7819
|
handleRatingChange
|
|
7769
7820
|
}) => {
|
|
7770
7821
|
const { t } = useTranslation();
|
|
7771
|
-
const button = (rating, layout2, tooltip) => /* @__PURE__ */
|
|
7822
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx255(
|
|
7772
7823
|
InlineIconButton,
|
|
7773
7824
|
{
|
|
7774
7825
|
"aria-label": tooltip,
|
|
@@ -7786,10 +7837,10 @@ var RatingComponent = ({
|
|
|
7786
7837
|
Feedback_default[`rating-container--${layout}`]
|
|
7787
7838
|
),
|
|
7788
7839
|
children: [
|
|
7789
|
-
/* @__PURE__ */
|
|
7790
|
-
loading ? /* @__PURE__ */
|
|
7791
|
-
/* @__PURE__ */
|
|
7792
|
-
/* @__PURE__ */
|
|
7840
|
+
/* @__PURE__ */ jsx255("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
7841
|
+
loading ? /* @__PURE__ */ jsx255(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ jsxs57(HStack, { gap: "x1", children: [
|
|
7842
|
+
/* @__PURE__ */ jsx255(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
7843
|
+
/* @__PURE__ */ jsx255(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx255("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7793
7844
|
] })
|
|
7794
7845
|
]
|
|
7795
7846
|
}
|
|
@@ -7805,7 +7856,7 @@ var texts11 = createTexts({
|
|
|
7805
7856
|
});
|
|
7806
7857
|
|
|
7807
7858
|
// src/components/Feedback/Feedback.tsx
|
|
7808
|
-
import { jsx as
|
|
7859
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
7809
7860
|
var Feedback = ({
|
|
7810
7861
|
layout = "vertical",
|
|
7811
7862
|
ratingLabel,
|
|
@@ -7860,7 +7911,7 @@ var Feedback = ({
|
|
|
7860
7911
|
if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
|
|
7861
7912
|
};
|
|
7862
7913
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7863
|
-
return /* @__PURE__ */
|
|
7914
|
+
return /* @__PURE__ */ jsx256(
|
|
7864
7915
|
RatingComponent,
|
|
7865
7916
|
{
|
|
7866
7917
|
layout,
|
|
@@ -7873,7 +7924,7 @@ var Feedback = ({
|
|
|
7873
7924
|
);
|
|
7874
7925
|
}
|
|
7875
7926
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7876
|
-
return /* @__PURE__ */
|
|
7927
|
+
return /* @__PURE__ */ jsx256(
|
|
7877
7928
|
CommentComponent,
|
|
7878
7929
|
{
|
|
7879
7930
|
layout,
|
|
@@ -7889,7 +7940,7 @@ var Feedback = ({
|
|
|
7889
7940
|
}
|
|
7890
7941
|
);
|
|
7891
7942
|
}
|
|
7892
|
-
return /* @__PURE__ */
|
|
7943
|
+
return /* @__PURE__ */ jsx256(Paragraph, { children: tSubmittedTitle });
|
|
7893
7944
|
};
|
|
7894
7945
|
var texts12 = createTexts({
|
|
7895
7946
|
ratingQuestion: {
|
|
@@ -7934,13 +7985,13 @@ var texts12 = createTexts({
|
|
|
7934
7985
|
var container = "Fieldset_container";
|
|
7935
7986
|
|
|
7936
7987
|
// src/components/Fieldset/Fieldset.tsx
|
|
7937
|
-
import { jsx as
|
|
7988
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
7938
7989
|
var Fieldset = ({
|
|
7939
7990
|
id,
|
|
7940
7991
|
className,
|
|
7941
7992
|
htmlProps,
|
|
7942
7993
|
...rest
|
|
7943
|
-
}) => /* @__PURE__ */
|
|
7994
|
+
}) => /* @__PURE__ */ jsx257(
|
|
7944
7995
|
"fieldset",
|
|
7945
7996
|
{
|
|
7946
7997
|
...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
|
|
@@ -7949,27 +8000,27 @@ var Fieldset = ({
|
|
|
7949
8000
|
Fieldset.displayName = "Fieldset";
|
|
7950
8001
|
|
|
7951
8002
|
// src/components/Fieldset/FieldsetGroup.tsx
|
|
7952
|
-
import { jsx as
|
|
8003
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
7953
8004
|
var FieldsetGroup = ({
|
|
7954
8005
|
id,
|
|
7955
8006
|
className,
|
|
7956
8007
|
htmlProps,
|
|
7957
8008
|
...rest
|
|
7958
|
-
}) => /* @__PURE__ */
|
|
8009
|
+
}) => /* @__PURE__ */ jsx258(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
|
|
7959
8010
|
FieldsetGroup.displayName = "FieldsetGroup";
|
|
7960
8011
|
|
|
7961
8012
|
// src/components/FileUploader/FileUploader.tsx
|
|
7962
|
-
import { useId as
|
|
8013
|
+
import { useId as useId15 } from "react";
|
|
7963
8014
|
|
|
7964
8015
|
// src/components/FileUploader/ErrorList.tsx
|
|
7965
|
-
import { jsx as
|
|
8016
|
+
import { jsx as jsx259 } from "react/jsx-runtime";
|
|
7966
8017
|
var ErrorList = (props) => {
|
|
7967
8018
|
const { errors } = props;
|
|
7968
8019
|
if (errors.length < 1) {
|
|
7969
8020
|
return null;
|
|
7970
8021
|
}
|
|
7971
8022
|
if (errors.length === 1) {
|
|
7972
|
-
return /* @__PURE__ */
|
|
8023
|
+
return /* @__PURE__ */ jsx259(
|
|
7973
8024
|
InputMessage,
|
|
7974
8025
|
{
|
|
7975
8026
|
id: errors[0].id,
|
|
@@ -7978,8 +8029,8 @@ var ErrorList = (props) => {
|
|
|
7978
8029
|
}
|
|
7979
8030
|
);
|
|
7980
8031
|
}
|
|
7981
|
-
return /* @__PURE__ */
|
|
7982
|
-
return /* @__PURE__ */
|
|
8032
|
+
return /* @__PURE__ */ jsx259(StylelessList, { children: errors.map(({ id, message }) => {
|
|
8033
|
+
return /* @__PURE__ */ jsx259("li", { children: /* @__PURE__ */ jsx259(
|
|
7983
8034
|
InputMessage,
|
|
7984
8035
|
{
|
|
7985
8036
|
id,
|
|
@@ -8004,7 +8055,7 @@ var FileUploader_default = {
|
|
|
8004
8055
|
};
|
|
8005
8056
|
|
|
8006
8057
|
// src/components/FileUploader/File.tsx
|
|
8007
|
-
import { Fragment as Fragment7, jsx as
|
|
8058
|
+
import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8008
8059
|
var File = (props) => {
|
|
8009
8060
|
const { t } = useTranslation();
|
|
8010
8061
|
const {
|
|
@@ -8035,7 +8086,7 @@ var File = (props) => {
|
|
|
8035
8086
|
background: inactive ? "surface-field-disabled" : "surface-subtle",
|
|
8036
8087
|
className: cn(!isValid && FileUploader_default["file--invalid"]),
|
|
8037
8088
|
children: [
|
|
8038
|
-
/* @__PURE__ */
|
|
8089
|
+
/* @__PURE__ */ jsx260(
|
|
8039
8090
|
Typography,
|
|
8040
8091
|
{
|
|
8041
8092
|
as: "span",
|
|
@@ -8045,14 +8096,14 @@ var File = (props) => {
|
|
|
8045
8096
|
}
|
|
8046
8097
|
),
|
|
8047
8098
|
!inactive && /* @__PURE__ */ jsxs58(Fragment7, { children: [
|
|
8048
|
-
/* @__PURE__ */
|
|
8099
|
+
/* @__PURE__ */ jsx260(
|
|
8049
8100
|
Icon,
|
|
8050
8101
|
{
|
|
8051
8102
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
8052
8103
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
8053
8104
|
}
|
|
8054
8105
|
),
|
|
8055
|
-
/* @__PURE__ */
|
|
8106
|
+
/* @__PURE__ */ jsx260(
|
|
8056
8107
|
Button,
|
|
8057
8108
|
{
|
|
8058
8109
|
size: "small",
|
|
@@ -8074,7 +8125,7 @@ var File = (props) => {
|
|
|
8074
8125
|
]
|
|
8075
8126
|
}
|
|
8076
8127
|
),
|
|
8077
|
-
/* @__PURE__ */
|
|
8128
|
+
/* @__PURE__ */ jsx260(ErrorList, { errors: errorsList })
|
|
8078
8129
|
] });
|
|
8079
8130
|
};
|
|
8080
8131
|
var texts13 = createTexts({
|
|
@@ -8401,7 +8452,7 @@ var texts14 = createTexts({
|
|
|
8401
8452
|
});
|
|
8402
8453
|
|
|
8403
8454
|
// src/components/FileUploader/FileUploader.tsx
|
|
8404
|
-
import { jsx as
|
|
8455
|
+
import { jsx as jsx261, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8405
8456
|
var FileUploader = (props) => {
|
|
8406
8457
|
const {
|
|
8407
8458
|
id,
|
|
@@ -8428,7 +8479,7 @@ var FileUploader = (props) => {
|
|
|
8428
8479
|
} = props;
|
|
8429
8480
|
const { t } = useTranslation();
|
|
8430
8481
|
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts15.dragAndDropOr);
|
|
8431
|
-
const generatedId =
|
|
8482
|
+
const generatedId = useId15();
|
|
8432
8483
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8433
8484
|
const {
|
|
8434
8485
|
state: { files: stateFiles, isDragActive, rootErrors },
|
|
@@ -8458,7 +8509,7 @@ var FileUploader = (props) => {
|
|
|
8458
8509
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8459
8510
|
const fileListId = derivativeIdGenerator(uniqueId, "file-list");
|
|
8460
8511
|
const fileListNameId = derivativeIdGenerator(uniqueId, "file-list-name");
|
|
8461
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
8512
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx261(
|
|
8462
8513
|
File,
|
|
8463
8514
|
{
|
|
8464
8515
|
parentId: uniqueId,
|
|
@@ -8475,7 +8526,7 @@ var FileUploader = (props) => {
|
|
|
8475
8526
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8476
8527
|
message: e
|
|
8477
8528
|
}));
|
|
8478
|
-
const button = /* @__PURE__ */
|
|
8529
|
+
const button = /* @__PURE__ */ jsx261(
|
|
8479
8530
|
Button,
|
|
8480
8531
|
{
|
|
8481
8532
|
...getButtonProps(),
|
|
@@ -8495,7 +8546,7 @@ var FileUploader = (props) => {
|
|
|
8495
8546
|
children: btnLabel
|
|
8496
8547
|
}
|
|
8497
8548
|
);
|
|
8498
|
-
const input = /* @__PURE__ */
|
|
8549
|
+
const input = /* @__PURE__ */ jsx261(
|
|
8499
8550
|
HiddenInput,
|
|
8500
8551
|
{
|
|
8501
8552
|
...getInputProps(),
|
|
@@ -8521,7 +8572,7 @@ var FileUploader = (props) => {
|
|
|
8521
8572
|
readOnly,
|
|
8522
8573
|
afterLabelContent
|
|
8523
8574
|
}),
|
|
8524
|
-
hasTip && /* @__PURE__ */
|
|
8575
|
+
hasTip && /* @__PURE__ */ jsx261(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8525
8576
|
inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs59(
|
|
8526
8577
|
VStack,
|
|
8527
8578
|
{
|
|
@@ -8536,7 +8587,7 @@ var FileUploader = (props) => {
|
|
|
8536
8587
|
children: [
|
|
8537
8588
|
input,
|
|
8538
8589
|
tDropAreaLabel,
|
|
8539
|
-
/* @__PURE__ */
|
|
8590
|
+
/* @__PURE__ */ jsx261(VisuallyHidden, { children: t(texts15.uploadFileWithButton) }),
|
|
8540
8591
|
button
|
|
8541
8592
|
]
|
|
8542
8593
|
}
|
|
@@ -8544,7 +8595,7 @@ var FileUploader = (props) => {
|
|
|
8544
8595
|
input,
|
|
8545
8596
|
button
|
|
8546
8597
|
] }),
|
|
8547
|
-
/* @__PURE__ */
|
|
8598
|
+
/* @__PURE__ */ jsx261(ErrorList, { errors: rootErrorsList }),
|
|
8548
8599
|
!hideFileList && /* @__PURE__ */ jsxs59(
|
|
8549
8600
|
"div",
|
|
8550
8601
|
{
|
|
@@ -8554,8 +8605,8 @@ var FileUploader = (props) => {
|
|
|
8554
8605
|
readOnly && FileUploader_default["readonly--file-list"]
|
|
8555
8606
|
),
|
|
8556
8607
|
children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
inactive && fileListElements.length === 0 ? /* @__PURE__ */
|
|
8608
|
+
/* @__PURE__ */ jsx261(VisuallyHidden, { id: fileListNameId, children: t(texts15.uploadedFiles) }),
|
|
8609
|
+
inactive && fileListElements.length === 0 ? /* @__PURE__ */ jsx261(
|
|
8559
8610
|
Typography,
|
|
8560
8611
|
{
|
|
8561
8612
|
italic: true,
|
|
@@ -8563,7 +8614,7 @@ var FileUploader = (props) => {
|
|
|
8563
8614
|
color: disabled ? "text-subtle" : "text-medium",
|
|
8564
8615
|
children: t(texts15.noFiles)
|
|
8565
8616
|
}
|
|
8566
|
-
) : /* @__PURE__ */
|
|
8617
|
+
) : /* @__PURE__ */ jsx261(StylelessList, { "aria-labelledby": fileListNameId, children: fileListElements })
|
|
8567
8618
|
]
|
|
8568
8619
|
}
|
|
8569
8620
|
)
|
|
@@ -8610,25 +8661,25 @@ var Footer_default = {
|
|
|
8610
8661
|
};
|
|
8611
8662
|
|
|
8612
8663
|
// src/components/Footer/Footer.tsx
|
|
8613
|
-
import { jsx as
|
|
8614
|
-
var Footer = ({ className, ...rest }) => /* @__PURE__ */
|
|
8664
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
8665
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx262(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
|
|
8615
8666
|
|
|
8616
8667
|
// src/components/Footer/FooterListHeader.tsx
|
|
8617
|
-
import { jsx as
|
|
8618
|
-
var FooterListHeader = (props) => /* @__PURE__ */
|
|
8668
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
8669
|
+
var FooterListHeader = (props) => /* @__PURE__ */ jsx263(Heading, { level: 2, typographyType: "headingSmall", ...props });
|
|
8619
8670
|
|
|
8620
8671
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
8621
8672
|
var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
|
|
8622
8673
|
|
|
8623
8674
|
// src/components/Footer/FooterLogo.tsx
|
|
8624
|
-
import { jsx as
|
|
8675
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
8625
8676
|
var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
8626
|
-
return /* @__PURE__ */
|
|
8677
|
+
return /* @__PURE__ */ jsx264(
|
|
8627
8678
|
Box,
|
|
8628
8679
|
{
|
|
8629
8680
|
hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
|
|
8630
8681
|
width: "fit-content",
|
|
8631
|
-
children: /* @__PURE__ */
|
|
8682
|
+
children: /* @__PURE__ */ jsx264(
|
|
8632
8683
|
"img",
|
|
8633
8684
|
{
|
|
8634
8685
|
height: 80,
|
|
@@ -8643,33 +8694,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
|
8643
8694
|
};
|
|
8644
8695
|
|
|
8645
8696
|
// src/components/Footer/FooterList.tsx
|
|
8646
|
-
import { jsx as
|
|
8647
|
-
var FooterList = ({ className, ...rest }) => /* @__PURE__ */
|
|
8697
|
+
import { jsx as jsx265 } from "react/jsx-runtime";
|
|
8698
|
+
var FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx265(StylelessList, { className: cn(className, Footer_default.list), ...rest });
|
|
8648
8699
|
|
|
8649
8700
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8650
|
-
import { jsx as
|
|
8701
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
8651
8702
|
var FooterSocialsList = ({
|
|
8652
8703
|
className,
|
|
8653
8704
|
...rest
|
|
8654
|
-
}) => /* @__PURE__ */
|
|
8705
|
+
}) => /* @__PURE__ */ jsx266(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
|
|
8655
8706
|
|
|
8656
8707
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8657
|
-
import { jsx as
|
|
8708
|
+
import { jsx as jsx267 } from "react/jsx-runtime";
|
|
8658
8709
|
var FooterSocialsGroup = ({
|
|
8659
8710
|
className,
|
|
8660
8711
|
...rest
|
|
8661
|
-
}) => /* @__PURE__ */
|
|
8712
|
+
}) => /* @__PURE__ */ jsx267("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
|
|
8662
8713
|
|
|
8663
8714
|
// src/components/Footer/FooterListGroup.tsx
|
|
8664
|
-
import { jsx as
|
|
8715
|
+
import { jsx as jsx268 } from "react/jsx-runtime";
|
|
8665
8716
|
var FooterListGroup = ({
|
|
8666
8717
|
className,
|
|
8667
8718
|
...rest
|
|
8668
|
-
}) => /* @__PURE__ */
|
|
8719
|
+
}) => /* @__PURE__ */ jsx268("div", { className: cn(className, Footer_default["list-group"]), ...rest });
|
|
8669
8720
|
|
|
8670
8721
|
// src/components/Footer/FooterLeft.tsx
|
|
8671
|
-
import { jsx as
|
|
8672
|
-
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */
|
|
8722
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
8723
|
+
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx269("div", { className: cn(className, Footer_default["left"]), ...rest });
|
|
8673
8724
|
|
|
8674
8725
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8675
8726
|
import { useState as useState17 } from "react";
|
|
@@ -8686,7 +8737,7 @@ var GlobalMessage_default = {
|
|
|
8686
8737
|
};
|
|
8687
8738
|
|
|
8688
8739
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8689
|
-
import { jsx as
|
|
8740
|
+
import { jsx as jsx270, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8690
8741
|
var icons = {
|
|
8691
8742
|
info: InfoIcon,
|
|
8692
8743
|
danger: ErrorIcon,
|
|
@@ -8725,12 +8776,12 @@ var GlobalMessage = ({
|
|
|
8725
8776
|
{
|
|
8726
8777
|
className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
|
|
8727
8778
|
children: [
|
|
8728
|
-
/* @__PURE__ */
|
|
8729
|
-
children != null ? children : /* @__PURE__ */
|
|
8779
|
+
/* @__PURE__ */ jsx270(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8780
|
+
children != null ? children : /* @__PURE__ */ jsx270("span", { children: message })
|
|
8730
8781
|
]
|
|
8731
8782
|
}
|
|
8732
8783
|
),
|
|
8733
|
-
closable && /* @__PURE__ */
|
|
8784
|
+
closable && /* @__PURE__ */ jsx270(
|
|
8734
8785
|
Button,
|
|
8735
8786
|
{
|
|
8736
8787
|
icon: CloseIcon,
|
|
@@ -8755,14 +8806,14 @@ var InlineButton_default = {
|
|
|
8755
8806
|
};
|
|
8756
8807
|
|
|
8757
8808
|
// src/components/InlineButton/InlineButton.tsx
|
|
8758
|
-
import { jsx as
|
|
8809
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
8759
8810
|
var InlineButton = ({
|
|
8760
8811
|
className,
|
|
8761
8812
|
color,
|
|
8762
8813
|
icon,
|
|
8763
8814
|
children,
|
|
8764
8815
|
...rest
|
|
8765
|
-
}) => /* @__PURE__ */
|
|
8816
|
+
}) => /* @__PURE__ */ jsx271(
|
|
8766
8817
|
StylelessButton,
|
|
8767
8818
|
{
|
|
8768
8819
|
className: cn(
|
|
@@ -8773,7 +8824,7 @@ var InlineButton = ({
|
|
|
8773
8824
|
getColorCn(color)
|
|
8774
8825
|
),
|
|
8775
8826
|
...rest,
|
|
8776
|
-
children: icon ? /* @__PURE__ */
|
|
8827
|
+
children: icon ? /* @__PURE__ */ jsx271(Icon, { icon, iconSize: "inherit" }) : children
|
|
8777
8828
|
}
|
|
8778
8829
|
);
|
|
8779
8830
|
|
|
@@ -8786,7 +8837,7 @@ import {
|
|
|
8786
8837
|
useContext as useContext16,
|
|
8787
8838
|
useState as useState18
|
|
8788
8839
|
} from "react";
|
|
8789
|
-
import { jsx as
|
|
8840
|
+
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
8790
8841
|
var InlineEditContext = createContext12(
|
|
8791
8842
|
{}
|
|
8792
8843
|
);
|
|
@@ -8830,7 +8881,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8830
8881
|
useOnKeyDown(["Enter"], () => onExitHandler());
|
|
8831
8882
|
useOnKeyDown(["Escape"], () => onExitHandler());
|
|
8832
8883
|
useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
|
|
8833
|
-
return /* @__PURE__ */
|
|
8884
|
+
return /* @__PURE__ */ jsx272(
|
|
8834
8885
|
InlineEditContext,
|
|
8835
8886
|
{
|
|
8836
8887
|
value: {
|
|
@@ -8848,7 +8899,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8848
8899
|
InlineEditContextProvider.displayName = "InlineEditContextProvider";
|
|
8849
8900
|
|
|
8850
8901
|
// src/components/InlineEdit/InlineField.tsx
|
|
8851
|
-
import { useId as
|
|
8902
|
+
import { useId as useId16, useRef as useRef24 } from "react";
|
|
8852
8903
|
|
|
8853
8904
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8854
8905
|
var InlineEdit_default = {
|
|
@@ -8934,7 +8985,7 @@ function createClearChangeEvent(elementId) {
|
|
|
8934
8985
|
}
|
|
8935
8986
|
|
|
8936
8987
|
// src/components/InlineEdit/InlineField.tsx
|
|
8937
|
-
import { Fragment as Fragment8, jsx as
|
|
8988
|
+
import { Fragment as Fragment8, jsx as jsx273, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8938
8989
|
function InlineField(props) {
|
|
8939
8990
|
const {
|
|
8940
8991
|
elementType,
|
|
@@ -8950,7 +9001,7 @@ function InlineField(props) {
|
|
|
8950
9001
|
} = props;
|
|
8951
9002
|
const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
|
|
8952
9003
|
const { t } = useTranslation();
|
|
8953
|
-
const generatedId =
|
|
9004
|
+
const generatedId = useId16();
|
|
8954
9005
|
const uniqueId = id != null ? id : `${generatedId}-InlineEdit`;
|
|
8955
9006
|
const hasErrorMessage = !!errorMessage;
|
|
8956
9007
|
const hasErrorState = !!error || hasErrorMessage;
|
|
@@ -8980,7 +9031,7 @@ function InlineField(props) {
|
|
|
8980
9031
|
const cnArgs = [hasErrorState, !isEditing && !hideIcon];
|
|
8981
9032
|
const iconSize = "small";
|
|
8982
9033
|
function makeIcon(icon, className2) {
|
|
8983
|
-
return /* @__PURE__ */
|
|
9034
|
+
return /* @__PURE__ */ jsx273(
|
|
8984
9035
|
Icon,
|
|
8985
9036
|
{
|
|
8986
9037
|
iconSize,
|
|
@@ -8995,7 +9046,7 @@ function InlineField(props) {
|
|
|
8995
9046
|
const renderElement = () => {
|
|
8996
9047
|
switch (elementType) {
|
|
8997
9048
|
case "input":
|
|
8998
|
-
return /* @__PURE__ */
|
|
9049
|
+
return /* @__PURE__ */ jsx273(
|
|
8999
9050
|
"input",
|
|
9000
9051
|
{
|
|
9001
9052
|
...rest,
|
|
@@ -9005,7 +9056,7 @@ function InlineField(props) {
|
|
|
9005
9056
|
}
|
|
9006
9057
|
);
|
|
9007
9058
|
case "textarea":
|
|
9008
|
-
return /* @__PURE__ */
|
|
9059
|
+
return /* @__PURE__ */ jsx273(
|
|
9009
9060
|
"textarea",
|
|
9010
9061
|
{
|
|
9011
9062
|
...rest,
|
|
@@ -9016,7 +9067,7 @@ function InlineField(props) {
|
|
|
9016
9067
|
);
|
|
9017
9068
|
case "select":
|
|
9018
9069
|
return /* @__PURE__ */ jsxs62(Fragment8, { children: [
|
|
9019
|
-
/* @__PURE__ */
|
|
9070
|
+
/* @__PURE__ */ jsx273(
|
|
9020
9071
|
"select",
|
|
9021
9072
|
{
|
|
9022
9073
|
...rest,
|
|
@@ -9025,7 +9076,7 @@ function InlineField(props) {
|
|
|
9025
9076
|
className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
|
|
9026
9077
|
}
|
|
9027
9078
|
),
|
|
9028
|
-
hasValue && emptiable && /* @__PURE__ */
|
|
9079
|
+
hasValue && emptiable && /* @__PURE__ */ jsx273(
|
|
9029
9080
|
ClearButton,
|
|
9030
9081
|
{
|
|
9031
9082
|
"aria-label": t(commonTexts.clearSelect),
|
|
@@ -9051,7 +9102,7 @@ function InlineField(props) {
|
|
|
9051
9102
|
}
|
|
9052
9103
|
|
|
9053
9104
|
// src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
|
|
9054
|
-
import { jsx as
|
|
9105
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
9055
9106
|
var InlineEditTextArea = ({
|
|
9056
9107
|
onSetValue,
|
|
9057
9108
|
emptiable,
|
|
@@ -9064,7 +9115,7 @@ var InlineEditTextArea = ({
|
|
|
9064
9115
|
}) => {
|
|
9065
9116
|
const textareaRef = useRef25(null);
|
|
9066
9117
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
9067
|
-
return /* @__PURE__ */
|
|
9118
|
+
return /* @__PURE__ */ jsx274(
|
|
9068
9119
|
InlineEditContextProvider,
|
|
9069
9120
|
{
|
|
9070
9121
|
onSetValue,
|
|
@@ -9074,14 +9125,14 @@ var InlineEditTextArea = ({
|
|
|
9074
9125
|
onFocus,
|
|
9075
9126
|
onChange,
|
|
9076
9127
|
onBlur,
|
|
9077
|
-
children: /* @__PURE__ */
|
|
9128
|
+
children: /* @__PURE__ */ jsx274(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
|
|
9078
9129
|
}
|
|
9079
9130
|
);
|
|
9080
9131
|
};
|
|
9081
9132
|
|
|
9082
9133
|
// src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
|
|
9083
9134
|
import { useRef as useRef26 } from "react";
|
|
9084
|
-
import { jsx as
|
|
9135
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
9085
9136
|
var InlineEditInput = ({
|
|
9086
9137
|
onSetValue,
|
|
9087
9138
|
emptiable,
|
|
@@ -9094,7 +9145,7 @@ var InlineEditInput = ({
|
|
|
9094
9145
|
}) => {
|
|
9095
9146
|
const inputRef = useRef26(null);
|
|
9096
9147
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
9097
|
-
return /* @__PURE__ */
|
|
9148
|
+
return /* @__PURE__ */ jsx275(
|
|
9098
9149
|
InlineEditContextProvider,
|
|
9099
9150
|
{
|
|
9100
9151
|
onSetValue,
|
|
@@ -9104,14 +9155,14 @@ var InlineEditInput = ({
|
|
|
9104
9155
|
onFocus,
|
|
9105
9156
|
onChange,
|
|
9106
9157
|
onBlur,
|
|
9107
|
-
children: /* @__PURE__ */
|
|
9158
|
+
children: /* @__PURE__ */ jsx275(InlineField, { elementType: "input", ...rest, ref: combinedRef })
|
|
9108
9159
|
}
|
|
9109
9160
|
);
|
|
9110
9161
|
};
|
|
9111
9162
|
|
|
9112
9163
|
// src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
|
|
9113
9164
|
import { useRef as useRef27 } from "react";
|
|
9114
|
-
import { jsx as
|
|
9165
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
9115
9166
|
var InlineEditSelect = ({
|
|
9116
9167
|
onSetValue,
|
|
9117
9168
|
emptiable,
|
|
@@ -9124,7 +9175,7 @@ var InlineEditSelect = ({
|
|
|
9124
9175
|
}) => {
|
|
9125
9176
|
const inputRef = useRef27(null);
|
|
9126
9177
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
9127
|
-
return /* @__PURE__ */
|
|
9178
|
+
return /* @__PURE__ */ jsx276(
|
|
9128
9179
|
InlineEditContextProvider,
|
|
9129
9180
|
{
|
|
9130
9181
|
onSetValue,
|
|
@@ -9134,7 +9185,7 @@ var InlineEditSelect = ({
|
|
|
9134
9185
|
onFocus,
|
|
9135
9186
|
onChange,
|
|
9136
9187
|
onBlur,
|
|
9137
|
-
children: /* @__PURE__ */
|
|
9188
|
+
children: /* @__PURE__ */ jsx276(InlineField, { elementType: "select", ...rest, ref: combinedRef })
|
|
9138
9189
|
}
|
|
9139
9190
|
);
|
|
9140
9191
|
};
|
|
@@ -9156,8 +9207,8 @@ var InternalHeader_default = {
|
|
|
9156
9207
|
};
|
|
9157
9208
|
|
|
9158
9209
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
9159
|
-
import { jsx as
|
|
9160
|
-
var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */
|
|
9210
|
+
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
9211
|
+
var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx277(
|
|
9161
9212
|
"a",
|
|
9162
9213
|
{
|
|
9163
9214
|
...rest,
|
|
@@ -9172,7 +9223,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx276(
|
|
|
9172
9223
|
);
|
|
9173
9224
|
|
|
9174
9225
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
9175
|
-
import { jsx as
|
|
9226
|
+
import { jsx as jsx278, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9176
9227
|
import { createElement as createElement2 } from "react";
|
|
9177
9228
|
var InternalHeader = (props) => {
|
|
9178
9229
|
const {
|
|
@@ -9202,7 +9253,7 @@ var InternalHeader = (props) => {
|
|
|
9202
9253
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
9203
9254
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
9204
9255
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
9205
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
9256
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx278("nav", { "aria-label": t(texts17.siteNavigation), children: /* @__PURE__ */ jsx278(
|
|
9206
9257
|
ShowHide,
|
|
9207
9258
|
{
|
|
9208
9259
|
as: StylelessList,
|
|
@@ -9211,7 +9262,7 @@ var InternalHeader = (props) => {
|
|
|
9211
9262
|
children: navItems.map((item, i) => {
|
|
9212
9263
|
const { href, ...rest2 } = item;
|
|
9213
9264
|
const isCurrent = href === currentPage;
|
|
9214
|
-
return /* @__PURE__ */
|
|
9265
|
+
return /* @__PURE__ */ jsx278("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx278(
|
|
9215
9266
|
NavigationItem,
|
|
9216
9267
|
{
|
|
9217
9268
|
href,
|
|
@@ -9243,7 +9294,7 @@ var InternalHeader = (props) => {
|
|
|
9243
9294
|
rest
|
|
9244
9295
|
),
|
|
9245
9296
|
children: [
|
|
9246
|
-
/* @__PURE__ */
|
|
9297
|
+
/* @__PURE__ */ jsx278(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx278(
|
|
9247
9298
|
"a",
|
|
9248
9299
|
{
|
|
9249
9300
|
href: applicationHref,
|
|
@@ -9252,16 +9303,16 @@ var InternalHeader = (props) => {
|
|
|
9252
9303
|
children: applicationName
|
|
9253
9304
|
}
|
|
9254
9305
|
) : applicationName }),
|
|
9255
|
-
/* @__PURE__ */
|
|
9256
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
9306
|
+
/* @__PURE__ */ jsx278(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
|
|
9307
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx278("div", { className: InternalHeader_default["bar-separator"] }),
|
|
9257
9308
|
navigation,
|
|
9258
|
-
hasContextMenu && /* @__PURE__ */
|
|
9309
|
+
hasContextMenu && /* @__PURE__ */ jsx278(
|
|
9259
9310
|
ShowHide,
|
|
9260
9311
|
{
|
|
9261
9312
|
showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
9262
9313
|
className: cn(InternalHeader_default["context-menu-group"]),
|
|
9263
9314
|
children: /* @__PURE__ */ jsxs63(OverflowMenuGroup, { children: [
|
|
9264
|
-
/* @__PURE__ */
|
|
9315
|
+
/* @__PURE__ */ jsx278(
|
|
9265
9316
|
Button,
|
|
9266
9317
|
{
|
|
9267
9318
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
@@ -9270,24 +9321,24 @@ var InternalHeader = (props) => {
|
|
|
9270
9321
|
}
|
|
9271
9322
|
),
|
|
9272
9323
|
/* @__PURE__ */ jsxs63(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
9273
|
-
user && /* @__PURE__ */
|
|
9274
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
9324
|
+
user && /* @__PURE__ */ jsx278(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx278(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx278(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
9325
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx278(
|
|
9275
9326
|
ShowHide,
|
|
9276
9327
|
{
|
|
9277
9328
|
as: "nav",
|
|
9278
9329
|
"aria-label": t(texts17.siteNavigation),
|
|
9279
9330
|
showBelow: smallScreenBreakpoint,
|
|
9280
|
-
children: /* @__PURE__ */
|
|
9331
|
+
children: /* @__PURE__ */ jsx278(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement2(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
|
|
9281
9332
|
}
|
|
9282
9333
|
),
|
|
9283
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
9334
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx278(
|
|
9284
9335
|
ShowHide,
|
|
9285
9336
|
{
|
|
9286
9337
|
as: OverflowMenuDivider,
|
|
9287
9338
|
showBelow: smallScreenBreakpoint
|
|
9288
9339
|
}
|
|
9289
9340
|
),
|
|
9290
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
9341
|
+
hasContextMenuElements && /* @__PURE__ */ jsx278(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
|
|
9291
9342
|
return item.href ? /* @__PURE__ */ createElement2(
|
|
9292
9343
|
OverflowMenuLink,
|
|
9293
9344
|
{
|
|
@@ -9336,7 +9387,7 @@ var List_default = {
|
|
|
9336
9387
|
};
|
|
9337
9388
|
|
|
9338
9389
|
// src/components/List/List.tsx
|
|
9339
|
-
import { jsx as
|
|
9390
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
9340
9391
|
var List = ({
|
|
9341
9392
|
listType = "unordered",
|
|
9342
9393
|
typographyType = "inherit",
|
|
@@ -9347,7 +9398,7 @@ var List = ({
|
|
|
9347
9398
|
...rest
|
|
9348
9399
|
}) => {
|
|
9349
9400
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
9350
|
-
return /* @__PURE__ */
|
|
9401
|
+
return /* @__PURE__ */ jsx279(
|
|
9351
9402
|
List2,
|
|
9352
9403
|
{
|
|
9353
9404
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9363,8 +9414,8 @@ var List = ({
|
|
|
9363
9414
|
List.displayName = "List";
|
|
9364
9415
|
|
|
9365
9416
|
// src/components/List/ListItem.tsx
|
|
9366
|
-
import { jsx as
|
|
9367
|
-
var ListItem = ({ className, ...rest }) => /* @__PURE__ */
|
|
9417
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
9418
|
+
var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx280("li", { ...rest, className: cn(className, List_default.li) });
|
|
9368
9419
|
ListItem.displayName = "ListItem";
|
|
9369
9420
|
|
|
9370
9421
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
@@ -9389,7 +9440,7 @@ var LocalMessage_default = {
|
|
|
9389
9440
|
};
|
|
9390
9441
|
|
|
9391
9442
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9392
|
-
import { Fragment as Fragment9, jsx as
|
|
9443
|
+
import { Fragment as Fragment9, jsx as jsx281, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9393
9444
|
var icons2 = {
|
|
9394
9445
|
info: InfoIcon,
|
|
9395
9446
|
danger: ErrorIcon,
|
|
@@ -9413,7 +9464,7 @@ var LocalMessage = ({
|
|
|
9413
9464
|
const { t } = useTranslation();
|
|
9414
9465
|
const [isClosed, setClosed] = useState20(false);
|
|
9415
9466
|
if (isClosed) {
|
|
9416
|
-
return /* @__PURE__ */
|
|
9467
|
+
return /* @__PURE__ */ jsx281(Fragment9, {});
|
|
9417
9468
|
}
|
|
9418
9469
|
return /* @__PURE__ */ jsxs64(
|
|
9419
9470
|
Box,
|
|
@@ -9436,15 +9487,15 @@ var LocalMessage = ({
|
|
|
9436
9487
|
padding: "x0.75 x0.75 x0.75 x0.5",
|
|
9437
9488
|
gap: "x0.5",
|
|
9438
9489
|
children: [
|
|
9439
|
-
/* @__PURE__ */
|
|
9490
|
+
/* @__PURE__ */ jsx281(
|
|
9440
9491
|
Icon,
|
|
9441
9492
|
{
|
|
9442
9493
|
icon: icons2[purpose],
|
|
9443
9494
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
9444
9495
|
}
|
|
9445
9496
|
),
|
|
9446
|
-
/* @__PURE__ */
|
|
9447
|
-
closable && /* @__PURE__ */
|
|
9497
|
+
/* @__PURE__ */ jsx281("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx281("span", { children: message }) }),
|
|
9498
|
+
closable && /* @__PURE__ */ jsx281(
|
|
9448
9499
|
Button,
|
|
9449
9500
|
{
|
|
9450
9501
|
icon: CloseIcon,
|
|
@@ -9468,7 +9519,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
9468
9519
|
import {
|
|
9469
9520
|
useContext as useContext17,
|
|
9470
9521
|
useEffect as useEffect24,
|
|
9471
|
-
useId as
|
|
9522
|
+
useId as useId17,
|
|
9472
9523
|
useRef as useRef28
|
|
9473
9524
|
} from "react";
|
|
9474
9525
|
import { createPortal as createPortal3 } from "react-dom";
|
|
@@ -9484,7 +9535,7 @@ var Modal_default = {
|
|
|
9484
9535
|
};
|
|
9485
9536
|
|
|
9486
9537
|
// src/components/Modal/Modal.tsx
|
|
9487
|
-
import { jsx as
|
|
9538
|
+
import { jsx as jsx282, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9488
9539
|
var Modal = ({
|
|
9489
9540
|
isOpen = false,
|
|
9490
9541
|
parentElement,
|
|
@@ -9500,7 +9551,7 @@ var Modal = ({
|
|
|
9500
9551
|
ref,
|
|
9501
9552
|
...rest
|
|
9502
9553
|
}) => {
|
|
9503
|
-
const generatedId =
|
|
9554
|
+
const generatedId = useId17();
|
|
9504
9555
|
const modalId = id != null ? id : `${generatedId}-modal`;
|
|
9505
9556
|
const headerId = `${modalId}-header`;
|
|
9506
9557
|
const modalRef = useFocusTrap(isOpen, initialFocusRef);
|
|
@@ -9535,7 +9586,7 @@ var Modal = ({
|
|
|
9535
9586
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9536
9587
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9537
9588
|
return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(
|
|
9538
|
-
/* @__PURE__ */
|
|
9589
|
+
/* @__PURE__ */ jsx282(
|
|
9539
9590
|
Backdrop,
|
|
9540
9591
|
{
|
|
9541
9592
|
zIndex: "modal",
|
|
@@ -9579,8 +9630,8 @@ var Modal = ({
|
|
|
9579
9630
|
width: "100%",
|
|
9580
9631
|
className: Modal_default["header-container"],
|
|
9581
9632
|
children: [
|
|
9582
|
-
!!header && /* @__PURE__ */
|
|
9583
|
-
onClose && /* @__PURE__ */
|
|
9633
|
+
!!header && /* @__PURE__ */ jsx282("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx282(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
9634
|
+
onClose && /* @__PURE__ */ jsx282(
|
|
9584
9635
|
Button,
|
|
9585
9636
|
{
|
|
9586
9637
|
size: "small",
|
|
@@ -9594,7 +9645,7 @@ var Modal = ({
|
|
|
9594
9645
|
]
|
|
9595
9646
|
}
|
|
9596
9647
|
),
|
|
9597
|
-
/* @__PURE__ */
|
|
9648
|
+
/* @__PURE__ */ jsx282(Box, { display: "grid", gap: "x1", children })
|
|
9598
9649
|
]
|
|
9599
9650
|
}
|
|
9600
9651
|
)
|
|
@@ -9606,7 +9657,7 @@ var Modal = ({
|
|
|
9606
9657
|
Modal.displayName = "Modal";
|
|
9607
9658
|
|
|
9608
9659
|
// src/components/Modal/ModalBody.tsx
|
|
9609
|
-
import { jsx as
|
|
9660
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
9610
9661
|
var ModalBody = ({
|
|
9611
9662
|
children,
|
|
9612
9663
|
id,
|
|
@@ -9616,7 +9667,7 @@ var ModalBody = ({
|
|
|
9616
9667
|
height,
|
|
9617
9668
|
...rest
|
|
9618
9669
|
}) => {
|
|
9619
|
-
return /* @__PURE__ */
|
|
9670
|
+
return /* @__PURE__ */ jsx283(
|
|
9620
9671
|
"div",
|
|
9621
9672
|
{
|
|
9622
9673
|
...getBaseHTMLProps(
|
|
@@ -9638,8 +9689,8 @@ var ModalBody = ({
|
|
|
9638
9689
|
ModalBody.displayName = "ModalBody";
|
|
9639
9690
|
|
|
9640
9691
|
// src/components/Modal/ModalActions.tsx
|
|
9641
|
-
import { jsx as
|
|
9642
|
-
var ModalActions = (props) => /* @__PURE__ */
|
|
9692
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
9693
|
+
var ModalActions = (props) => /* @__PURE__ */ jsx284(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
|
|
9643
9694
|
ModalActions.displayName = "ModalActions";
|
|
9644
9695
|
|
|
9645
9696
|
// src/components/Pagination/Pagination.tsx
|
|
@@ -9691,7 +9742,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9691
9742
|
import {
|
|
9692
9743
|
useCallback as useCallback7,
|
|
9693
9744
|
useContext as useContext18,
|
|
9694
|
-
useId as
|
|
9745
|
+
useId as useId18
|
|
9695
9746
|
} from "react";
|
|
9696
9747
|
import {
|
|
9697
9748
|
default as ReactSelect
|
|
@@ -9978,7 +10029,7 @@ import React from "react";
|
|
|
9978
10029
|
import {
|
|
9979
10030
|
components
|
|
9980
10031
|
} from "react-select";
|
|
9981
|
-
import { jsx as
|
|
10032
|
+
import { jsx as jsx285, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9982
10033
|
var {
|
|
9983
10034
|
Option,
|
|
9984
10035
|
NoOptionsMessage,
|
|
@@ -10002,29 +10053,29 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
10002
10053
|
var DDSOption = ({
|
|
10003
10054
|
...props
|
|
10004
10055
|
}) => /* @__PURE__ */ jsxs66(Option, { ...props, children: [
|
|
10005
|
-
props.isSelected && /* @__PURE__ */
|
|
10056
|
+
props.isSelected && /* @__PURE__ */ jsx285(Icon, { icon: CheckIcon, iconSize: "small" }),
|
|
10006
10057
|
props.children
|
|
10007
10058
|
] });
|
|
10008
|
-
var CustomOption = (props) => /* @__PURE__ */
|
|
10059
|
+
var CustomOption = (props) => /* @__PURE__ */ jsx285(Option, { ...props, children: React.createElement(props.customElement, props) });
|
|
10009
10060
|
var CustomSingleValue = ({
|
|
10010
10061
|
id,
|
|
10011
10062
|
Element,
|
|
10012
10063
|
...props
|
|
10013
|
-
}) => /* @__PURE__ */
|
|
10014
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
10064
|
+
}) => /* @__PURE__ */ jsx285(SingleValue, { ...props, children: /* @__PURE__ */ jsx285("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx285(Element, { ...props }) : props.children }) });
|
|
10065
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx285(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
10015
10066
|
var DDSClearIndicator = ({
|
|
10016
10067
|
size: size2,
|
|
10017
10068
|
...props
|
|
10018
|
-
}) => /* @__PURE__ */
|
|
10019
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
10069
|
+
}) => /* @__PURE__ */ jsx285(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx285(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
10070
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx285(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx285(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
10020
10071
|
var DDSDropdownIndicator = (props) => {
|
|
10021
10072
|
const { className, componentSize, ...rest } = props;
|
|
10022
|
-
return /* @__PURE__ */
|
|
10073
|
+
return /* @__PURE__ */ jsx285(
|
|
10023
10074
|
DropdownIndicator,
|
|
10024
10075
|
{
|
|
10025
10076
|
...rest,
|
|
10026
10077
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
10027
|
-
children: /* @__PURE__ */
|
|
10078
|
+
children: /* @__PURE__ */ jsx285(
|
|
10028
10079
|
Icon,
|
|
10029
10080
|
{
|
|
10030
10081
|
icon: ChevronDownIcon,
|
|
@@ -10038,7 +10089,7 @@ var DDSInput = ({
|
|
|
10038
10089
|
ariaInvalid,
|
|
10039
10090
|
ariaDescribedby,
|
|
10040
10091
|
...props
|
|
10041
|
-
}) => /* @__PURE__ */
|
|
10092
|
+
}) => /* @__PURE__ */ jsx285(
|
|
10042
10093
|
Input2,
|
|
10043
10094
|
{
|
|
10044
10095
|
...props,
|
|
@@ -10072,7 +10123,7 @@ function DDSControl(props) {
|
|
|
10072
10123
|
readOnly && Select_default["control--readonly"]
|
|
10073
10124
|
),
|
|
10074
10125
|
children: [
|
|
10075
|
-
icon && /* @__PURE__ */
|
|
10126
|
+
icon && /* @__PURE__ */ jsx285(
|
|
10076
10127
|
Icon,
|
|
10077
10128
|
{
|
|
10078
10129
|
icon,
|
|
@@ -10090,7 +10141,7 @@ function DDSControl(props) {
|
|
|
10090
10141
|
}
|
|
10091
10142
|
|
|
10092
10143
|
// src/components/Select/Select.tsx
|
|
10093
|
-
import { jsx as
|
|
10144
|
+
import { jsx as jsx286, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10094
10145
|
function Select({
|
|
10095
10146
|
id,
|
|
10096
10147
|
label,
|
|
@@ -10127,7 +10178,7 @@ function Select({
|
|
|
10127
10178
|
throw new Error("Select must be used within a ThemeProvider");
|
|
10128
10179
|
}
|
|
10129
10180
|
const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
|
|
10130
|
-
const generatedId =
|
|
10181
|
+
const generatedId = useId18();
|
|
10131
10182
|
const uniqueId = id != null ? id : `${generatedId}-select`;
|
|
10132
10183
|
const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
|
|
10133
10184
|
const hasErrorMessage = !!errorMessage;
|
|
@@ -10140,7 +10191,7 @@ function Select({
|
|
|
10140
10191
|
componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
|
|
10141
10192
|
);
|
|
10142
10193
|
const customInput = useCallback7(
|
|
10143
|
-
(props) => /* @__PURE__ */
|
|
10194
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10144
10195
|
DDSInput,
|
|
10145
10196
|
{
|
|
10146
10197
|
...props,
|
|
@@ -10158,7 +10209,7 @@ function Select({
|
|
|
10158
10209
|
[]
|
|
10159
10210
|
);
|
|
10160
10211
|
const customSingleValue = useCallback7(
|
|
10161
|
-
(props) => /* @__PURE__ */
|
|
10212
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10162
10213
|
CustomSingleValue,
|
|
10163
10214
|
{
|
|
10164
10215
|
...props,
|
|
@@ -10169,15 +10220,15 @@ function Select({
|
|
|
10169
10220
|
[]
|
|
10170
10221
|
);
|
|
10171
10222
|
const customClearIndicator = useCallback7(
|
|
10172
|
-
(props) => /* @__PURE__ */
|
|
10223
|
+
(props) => /* @__PURE__ */ jsx286(DDSClearIndicator, { ...props, size: componentSize }),
|
|
10173
10224
|
[componentSize]
|
|
10174
10225
|
);
|
|
10175
10226
|
const customDropdownIndicator = useCallback7(
|
|
10176
|
-
(props) => /* @__PURE__ */
|
|
10227
|
+
(props) => /* @__PURE__ */ jsx286(DDSDropdownIndicator, { ...props, componentSize }),
|
|
10177
10228
|
[componentSize]
|
|
10178
10229
|
);
|
|
10179
10230
|
const customControl = useCallback7(
|
|
10180
|
-
(props) => /* @__PURE__ */
|
|
10231
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10181
10232
|
DDSControl,
|
|
10182
10233
|
{
|
|
10183
10234
|
...props,
|
|
@@ -10192,9 +10243,9 @@ function Select({
|
|
|
10192
10243
|
const customOptionComponent = useCallback7(
|
|
10193
10244
|
(props) => {
|
|
10194
10245
|
if (customOptionElement) {
|
|
10195
|
-
return /* @__PURE__ */
|
|
10246
|
+
return /* @__PURE__ */ jsx286(CustomOption, { ...props, customElement: customOptionElement });
|
|
10196
10247
|
} else {
|
|
10197
|
-
return /* @__PURE__ */
|
|
10248
|
+
return /* @__PURE__ */ jsx286(DDSOption, { ...props });
|
|
10198
10249
|
}
|
|
10199
10250
|
},
|
|
10200
10251
|
[customOptionElement, componentSize]
|
|
@@ -10208,7 +10259,7 @@ function Select({
|
|
|
10208
10259
|
placeholder: placeholder ? placeholder : "",
|
|
10209
10260
|
closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
|
|
10210
10261
|
isMulti,
|
|
10211
|
-
instanceId: instanceId != null ? instanceId :
|
|
10262
|
+
instanceId: instanceId != null ? instanceId : useId18(),
|
|
10212
10263
|
inputId: uniqueId,
|
|
10213
10264
|
name: uniqueId,
|
|
10214
10265
|
menuPortalTarget: portalTarget,
|
|
@@ -10258,7 +10309,7 @@ function Select({
|
|
|
10258
10309
|
readOnly,
|
|
10259
10310
|
afterLabelContent
|
|
10260
10311
|
}),
|
|
10261
|
-
/* @__PURE__ */
|
|
10312
|
+
/* @__PURE__ */ jsx286(ReactSelect, { ...reactSelectProps, ref }),
|
|
10262
10313
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
10263
10314
|
]
|
|
10264
10315
|
}
|
|
@@ -10267,7 +10318,7 @@ function Select({
|
|
|
10267
10318
|
Select.displayName = "Select";
|
|
10268
10319
|
|
|
10269
10320
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
10270
|
-
import { useEffect as useEffect25, useId as
|
|
10321
|
+
import { useEffect as useEffect25, useId as useId19, useRef as useRef29, useState as useState21 } from "react";
|
|
10271
10322
|
|
|
10272
10323
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
10273
10324
|
var NativeSelect_default = {
|
|
@@ -10285,7 +10336,7 @@ var NativeSelect_default = {
|
|
|
10285
10336
|
};
|
|
10286
10337
|
|
|
10287
10338
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
10288
|
-
import { jsx as
|
|
10339
|
+
import { jsx as jsx287, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10289
10340
|
var NativeSelect = ({
|
|
10290
10341
|
ref,
|
|
10291
10342
|
id,
|
|
@@ -10330,7 +10381,7 @@ var NativeSelect = ({
|
|
|
10330
10381
|
}
|
|
10331
10382
|
}
|
|
10332
10383
|
}, [clearable]);
|
|
10333
|
-
const generatedId =
|
|
10384
|
+
const generatedId = useId19();
|
|
10334
10385
|
const uniqueId = id != null ? id : `${generatedId}-native-select`;
|
|
10335
10386
|
const hasErrorMessage = !!errorMessage;
|
|
10336
10387
|
const hasTip = !!tip;
|
|
@@ -10361,7 +10412,7 @@ var NativeSelect = ({
|
|
|
10361
10412
|
afterLabelContent
|
|
10362
10413
|
}),
|
|
10363
10414
|
/* @__PURE__ */ jsxs68(Box, { position: "relative", width: inputWidth, children: [
|
|
10364
|
-
/* @__PURE__ */
|
|
10415
|
+
/* @__PURE__ */ jsx287(
|
|
10365
10416
|
"select",
|
|
10366
10417
|
{
|
|
10367
10418
|
ref: useCombinedRef(ref, selectRef),
|
|
@@ -10395,7 +10446,7 @@ var NativeSelect = ({
|
|
|
10395
10446
|
children
|
|
10396
10447
|
}
|
|
10397
10448
|
),
|
|
10398
|
-
showClearButton && /* @__PURE__ */
|
|
10449
|
+
showClearButton && /* @__PURE__ */ jsx287(
|
|
10399
10450
|
ClearButton,
|
|
10400
10451
|
{
|
|
10401
10452
|
"aria-label": t(commonTexts.clearSelect),
|
|
@@ -10404,7 +10455,7 @@ var NativeSelect = ({
|
|
|
10404
10455
|
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10405
10456
|
}
|
|
10406
10457
|
),
|
|
10407
|
-
!multiple && /* @__PURE__ */
|
|
10458
|
+
!multiple && /* @__PURE__ */ jsx287(
|
|
10408
10459
|
Icon,
|
|
10409
10460
|
{
|
|
10410
10461
|
icon: ChevronDownIcon,
|
|
@@ -10420,14 +10471,14 @@ var NativeSelectPlaceholder = ({
|
|
|
10420
10471
|
children = "-- Velg fra listen --",
|
|
10421
10472
|
value,
|
|
10422
10473
|
...rest
|
|
10423
|
-
}) => /* @__PURE__ */
|
|
10474
|
+
}) => /* @__PURE__ */ jsx287("option", { value: value != null ? value : "", selected: true, ...rest, children });
|
|
10424
10475
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
10425
10476
|
|
|
10426
10477
|
// src/components/Select/utils.ts
|
|
10427
10478
|
var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
|
|
10428
10479
|
|
|
10429
10480
|
// src/components/Pagination/Pagination.tsx
|
|
10430
|
-
import { jsx as
|
|
10481
|
+
import { jsx as jsx288, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
10431
10482
|
var Pagination = ({
|
|
10432
10483
|
itemsAmount,
|
|
10433
10484
|
defaultItemsPerPage = 10,
|
|
@@ -10480,7 +10531,7 @@ var Pagination = ({
|
|
|
10480
10531
|
};
|
|
10481
10532
|
const listItems = items.length > 0 ? items.map((item, i) => {
|
|
10482
10533
|
const isActive = item === activePage;
|
|
10483
|
-
return /* @__PURE__ */
|
|
10534
|
+
return /* @__PURE__ */ jsx288("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx288(
|
|
10484
10535
|
Button,
|
|
10485
10536
|
{
|
|
10486
10537
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -10491,7 +10542,7 @@ var Pagination = ({
|
|
|
10491
10542
|
"aria-label": isActive ? t(texts18.currentPage(item)) : t(texts18.page(item)),
|
|
10492
10543
|
children: item
|
|
10493
10544
|
}
|
|
10494
|
-
) : /* @__PURE__ */
|
|
10545
|
+
) : /* @__PURE__ */ jsx288(
|
|
10495
10546
|
Icon,
|
|
10496
10547
|
{
|
|
10497
10548
|
icon: MoreHorizontalIcon,
|
|
@@ -10499,7 +10550,7 @@ var Pagination = ({
|
|
|
10499
10550
|
}
|
|
10500
10551
|
) }, `pagination-item-${i}`);
|
|
10501
10552
|
}) : void 0;
|
|
10502
|
-
const previousPageButton = /* @__PURE__ */
|
|
10553
|
+
const previousPageButton = /* @__PURE__ */ jsx288(
|
|
10503
10554
|
Button,
|
|
10504
10555
|
{
|
|
10505
10556
|
purpose: "secondary",
|
|
@@ -10511,7 +10562,7 @@ var Pagination = ({
|
|
|
10511
10562
|
"aria-label": t(texts18.previousPage)
|
|
10512
10563
|
}
|
|
10513
10564
|
);
|
|
10514
|
-
const nextPageButton = /* @__PURE__ */
|
|
10565
|
+
const nextPageButton = /* @__PURE__ */ jsx288(
|
|
10515
10566
|
Button,
|
|
10516
10567
|
{
|
|
10517
10568
|
purpose: "secondary",
|
|
@@ -10544,7 +10595,7 @@ var Pagination = ({
|
|
|
10544
10595
|
hideBelow: smallScreenBreakpoint,
|
|
10545
10596
|
className: Pagination_default.list,
|
|
10546
10597
|
children: [
|
|
10547
|
-
/* @__PURE__ */
|
|
10598
|
+
/* @__PURE__ */ jsx288(
|
|
10548
10599
|
"li",
|
|
10549
10600
|
{
|
|
10550
10601
|
className: cn(
|
|
@@ -10556,7 +10607,7 @@ var Pagination = ({
|
|
|
10556
10607
|
}
|
|
10557
10608
|
),
|
|
10558
10609
|
listItems,
|
|
10559
|
-
/* @__PURE__ */
|
|
10610
|
+
/* @__PURE__ */ jsx288(
|
|
10560
10611
|
"li",
|
|
10561
10612
|
{
|
|
10562
10613
|
className: cn(
|
|
@@ -10577,7 +10628,7 @@ var Pagination = ({
|
|
|
10577
10628
|
showBelow: smallScreenBreakpoint,
|
|
10578
10629
|
className: Pagination_default.list,
|
|
10579
10630
|
children: [
|
|
10580
|
-
/* @__PURE__ */
|
|
10631
|
+
/* @__PURE__ */ jsx288(
|
|
10581
10632
|
"li",
|
|
10582
10633
|
{
|
|
10583
10634
|
className: cn(
|
|
@@ -10585,7 +10636,7 @@ var Pagination = ({
|
|
|
10585
10636
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
10586
10637
|
),
|
|
10587
10638
|
"aria-hidden": isOnFirstPage,
|
|
10588
|
-
children: /* @__PURE__ */
|
|
10639
|
+
children: /* @__PURE__ */ jsx288(
|
|
10589
10640
|
Button,
|
|
10590
10641
|
{
|
|
10591
10642
|
purpose: "secondary",
|
|
@@ -10599,7 +10650,7 @@ var Pagination = ({
|
|
|
10599
10650
|
)
|
|
10600
10651
|
}
|
|
10601
10652
|
),
|
|
10602
|
-
/* @__PURE__ */
|
|
10653
|
+
/* @__PURE__ */ jsx288(
|
|
10603
10654
|
"li",
|
|
10604
10655
|
{
|
|
10605
10656
|
className: cn(
|
|
@@ -10610,7 +10661,7 @@ var Pagination = ({
|
|
|
10610
10661
|
children: previousPageButton
|
|
10611
10662
|
}
|
|
10612
10663
|
),
|
|
10613
|
-
/* @__PURE__ */
|
|
10664
|
+
/* @__PURE__ */ jsx288("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx288(
|
|
10614
10665
|
Button,
|
|
10615
10666
|
{
|
|
10616
10667
|
size: "small",
|
|
@@ -10620,7 +10671,7 @@ var Pagination = ({
|
|
|
10620
10671
|
children: activePage
|
|
10621
10672
|
}
|
|
10622
10673
|
) }),
|
|
10623
|
-
/* @__PURE__ */
|
|
10674
|
+
/* @__PURE__ */ jsx288(
|
|
10624
10675
|
"li",
|
|
10625
10676
|
{
|
|
10626
10677
|
className: cn(
|
|
@@ -10631,7 +10682,7 @@ var Pagination = ({
|
|
|
10631
10682
|
children: nextPageButton
|
|
10632
10683
|
}
|
|
10633
10684
|
),
|
|
10634
|
-
/* @__PURE__ */
|
|
10685
|
+
/* @__PURE__ */ jsx288(
|
|
10635
10686
|
"li",
|
|
10636
10687
|
{
|
|
10637
10688
|
className: cn(
|
|
@@ -10639,7 +10690,7 @@ var Pagination = ({
|
|
|
10639
10690
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
10640
10691
|
),
|
|
10641
10692
|
"aria-hidden": isOnLastPage,
|
|
10642
|
-
children: /* @__PURE__ */
|
|
10693
|
+
children: /* @__PURE__ */ jsx288(
|
|
10643
10694
|
Button,
|
|
10644
10695
|
{
|
|
10645
10696
|
purpose: "secondary",
|
|
@@ -10673,7 +10724,7 @@ var Pagination = ({
|
|
|
10673
10724
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
10674
10725
|
children: [
|
|
10675
10726
|
/* @__PURE__ */ jsxs69("div", { className: Pagination_default.indicators, children: [
|
|
10676
|
-
withSelect && /* @__PURE__ */
|
|
10727
|
+
withSelect && /* @__PURE__ */ jsx288(
|
|
10677
10728
|
Select,
|
|
10678
10729
|
{
|
|
10679
10730
|
options: selectOptions,
|
|
@@ -10689,7 +10740,7 @@ var Pagination = ({
|
|
|
10689
10740
|
"aria-label": t(texts18.itemsPerPage)
|
|
10690
10741
|
}
|
|
10691
10742
|
),
|
|
10692
|
-
withCounter && /* @__PURE__ */
|
|
10743
|
+
withCounter && /* @__PURE__ */ jsx288(Paragraph, { children: t(
|
|
10693
10744
|
texts18.showsAmountOfTotalItems(
|
|
10694
10745
|
activePageFirstItem,
|
|
10695
10746
|
activePageLastItem,
|
|
@@ -10763,7 +10814,7 @@ var texts18 = createTexts({
|
|
|
10763
10814
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10764
10815
|
import {
|
|
10765
10816
|
useEffect as useEffect26,
|
|
10766
|
-
useId as
|
|
10817
|
+
useId as useId20,
|
|
10767
10818
|
useLayoutEffect as useLayoutEffect2,
|
|
10768
10819
|
useRef as useRef30,
|
|
10769
10820
|
useState as useState23
|
|
@@ -11167,7 +11218,7 @@ var PhoneInput_default = {
|
|
|
11167
11218
|
};
|
|
11168
11219
|
|
|
11169
11220
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
11170
|
-
import { jsx as
|
|
11221
|
+
import { jsx as jsx289, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
11171
11222
|
var prioritizedCountries = [
|
|
11172
11223
|
COUNTRIES.NO,
|
|
11173
11224
|
COUNTRIES.SE,
|
|
@@ -11229,7 +11280,7 @@ var PhoneInput = ({
|
|
|
11229
11280
|
const { t } = useTranslation();
|
|
11230
11281
|
const tGroupLabel = groupLabel != null ? groupLabel : t(texts19.countryCodeAndPhoneNumber);
|
|
11231
11282
|
const tSelectLabel = selectLabel != null ? selectLabel : t(texts19.countryCode);
|
|
11232
|
-
const generatedId =
|
|
11283
|
+
const generatedId = useId20();
|
|
11233
11284
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11234
11285
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
11235
11286
|
const phoneNumberId = `${uniqueId}-phone-number`;
|
|
@@ -11326,8 +11377,8 @@ var PhoneInput = ({
|
|
|
11326
11377
|
role: "group",
|
|
11327
11378
|
"aria-label": tGroupLabel,
|
|
11328
11379
|
children: [
|
|
11329
|
-
/* @__PURE__ */
|
|
11330
|
-
/* @__PURE__ */
|
|
11380
|
+
/* @__PURE__ */ jsx289("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
|
|
11381
|
+
/* @__PURE__ */ jsx289(
|
|
11331
11382
|
NativeSelect,
|
|
11332
11383
|
{
|
|
11333
11384
|
width: styleUpToBreakpoint(
|
|
@@ -11348,11 +11399,11 @@ var PhoneInput = ({
|
|
|
11348
11399
|
hasTip ? tipId : void 0,
|
|
11349
11400
|
ariaDescribedby
|
|
11350
11401
|
]),
|
|
11351
|
-
children: countryOptions.map((item, index) => /* @__PURE__ */
|
|
11402
|
+
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx289("option", { value: item.countryCode, children: item.label }, index))
|
|
11352
11403
|
}
|
|
11353
11404
|
),
|
|
11354
11405
|
/* @__PURE__ */ jsxs70(Box, { width: "100%", className: Input_default["input-group"], children: [
|
|
11355
|
-
/* @__PURE__ */
|
|
11406
|
+
/* @__PURE__ */ jsx289(
|
|
11356
11407
|
"span",
|
|
11357
11408
|
{
|
|
11358
11409
|
className: cn(
|
|
@@ -11364,7 +11415,7 @@ var PhoneInput = ({
|
|
|
11364
11415
|
children: callingCode
|
|
11365
11416
|
}
|
|
11366
11417
|
),
|
|
11367
|
-
/* @__PURE__ */
|
|
11418
|
+
/* @__PURE__ */ jsx289(
|
|
11368
11419
|
Box,
|
|
11369
11420
|
{
|
|
11370
11421
|
as: StatefulInput,
|
|
@@ -11421,7 +11472,7 @@ var texts19 = createTexts({
|
|
|
11421
11472
|
import {
|
|
11422
11473
|
useContext as useContext20,
|
|
11423
11474
|
useEffect as useEffect27,
|
|
11424
|
-
useId as
|
|
11475
|
+
useId as useId21
|
|
11425
11476
|
} from "react";
|
|
11426
11477
|
import { createPortal as createPortal4 } from "react-dom";
|
|
11427
11478
|
|
|
@@ -11442,7 +11493,7 @@ var PopoverContext = createContext13({});
|
|
|
11442
11493
|
var usePopoverContext = () => useContext19(PopoverContext);
|
|
11443
11494
|
|
|
11444
11495
|
// src/components/Popover/Popover.tsx
|
|
11445
|
-
import { jsx as
|
|
11496
|
+
import { jsx as jsx290, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
11446
11497
|
var Popover = ({
|
|
11447
11498
|
id,
|
|
11448
11499
|
header,
|
|
@@ -11482,7 +11533,7 @@ var Popover = ({
|
|
|
11482
11533
|
} = context;
|
|
11483
11534
|
const { t } = useTranslation();
|
|
11484
11535
|
const hasContext = !isEmpty(context);
|
|
11485
|
-
const generatedId =
|
|
11536
|
+
const generatedId = useId21();
|
|
11486
11537
|
const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
|
|
11487
11538
|
const [
|
|
11488
11539
|
popoverId,
|
|
@@ -11561,15 +11612,15 @@ var Popover = ({
|
|
|
11561
11612
|
elevation: 3,
|
|
11562
11613
|
border: "border-subtle",
|
|
11563
11614
|
children: [
|
|
11564
|
-
header && /* @__PURE__ */
|
|
11565
|
-
/* @__PURE__ */
|
|
11615
|
+
header && /* @__PURE__ */ jsx290("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx290(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
|
|
11616
|
+
/* @__PURE__ */ jsx290(
|
|
11566
11617
|
"div",
|
|
11567
11618
|
{
|
|
11568
11619
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
|
|
11569
11620
|
children
|
|
11570
11621
|
}
|
|
11571
11622
|
),
|
|
11572
|
-
withCloseButton && /* @__PURE__ */
|
|
11623
|
+
withCloseButton && /* @__PURE__ */ jsx290(
|
|
11573
11624
|
Button,
|
|
11574
11625
|
{
|
|
11575
11626
|
icon: CloseIcon,
|
|
@@ -11592,11 +11643,11 @@ import {
|
|
|
11592
11643
|
Children as ReactChildren4,
|
|
11593
11644
|
cloneElement as cloneElement4,
|
|
11594
11645
|
isValidElement as isValidElement4,
|
|
11595
|
-
useId as
|
|
11646
|
+
useId as useId22,
|
|
11596
11647
|
useRef as useRef31,
|
|
11597
11648
|
useState as useState24
|
|
11598
11649
|
} from "react";
|
|
11599
|
-
import { jsx as
|
|
11650
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
11600
11651
|
var PopoverGroup = ({
|
|
11601
11652
|
isOpen: propIsOpen,
|
|
11602
11653
|
setIsOpen: propSetIsOpen,
|
|
@@ -11610,7 +11661,7 @@ var PopoverGroup = ({
|
|
|
11610
11661
|
const [internalIsOpen, internalSetIsOpen] = useState24(isInitiallyOpen);
|
|
11611
11662
|
const open = propIsOpen != null ? propIsOpen : internalIsOpen;
|
|
11612
11663
|
const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
|
|
11613
|
-
const generatedId =
|
|
11664
|
+
const generatedId = useId22();
|
|
11614
11665
|
const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
|
|
11615
11666
|
const [floatOptions, setFloatOptions] = useState24();
|
|
11616
11667
|
const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
|
|
@@ -11657,7 +11708,7 @@ var PopoverGroup = ({
|
|
|
11657
11708
|
ref: combinedAnchorRef
|
|
11658
11709
|
}) : child);
|
|
11659
11710
|
});
|
|
11660
|
-
return /* @__PURE__ */
|
|
11711
|
+
return /* @__PURE__ */ jsx291(
|
|
11661
11712
|
PopoverContext,
|
|
11662
11713
|
{
|
|
11663
11714
|
value: {
|
|
@@ -11715,7 +11766,7 @@ var ProgressTracker_default = {
|
|
|
11715
11766
|
|
|
11716
11767
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11717
11768
|
import { useMemo as useMemo2 } from "react";
|
|
11718
|
-
import { Fragment as Fragment10, jsx as
|
|
11769
|
+
import { Fragment as Fragment10, jsx as jsx292, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11719
11770
|
var toItemState = (active, completed, disabled) => {
|
|
11720
11771
|
if (disabled) {
|
|
11721
11772
|
return "disabled";
|
|
@@ -11759,10 +11810,10 @@ var ProgressTrackerItem = (props) => {
|
|
|
11759
11810
|
};
|
|
11760
11811
|
const stepNumberContent = useMemo2(() => {
|
|
11761
11812
|
if (completed) {
|
|
11762
|
-
return /* @__PURE__ */
|
|
11813
|
+
return /* @__PURE__ */ jsx292(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
11763
11814
|
}
|
|
11764
11815
|
if (icon !== void 0) {
|
|
11765
|
-
return /* @__PURE__ */
|
|
11816
|
+
return /* @__PURE__ */ jsx292(Icon, { icon, iconSize: "small" });
|
|
11766
11817
|
}
|
|
11767
11818
|
return stepNumber;
|
|
11768
11819
|
}, [completed, icon, index]);
|
|
@@ -11772,7 +11823,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11772
11823
|
}
|
|
11773
11824
|
const isInactiveLink = disabled || active;
|
|
11774
11825
|
const stepContent = /* @__PURE__ */ jsxs72(Fragment10, { children: [
|
|
11775
|
-
/* @__PURE__ */
|
|
11826
|
+
/* @__PURE__ */ jsx292(
|
|
11776
11827
|
Box,
|
|
11777
11828
|
{
|
|
11778
11829
|
display: "flex",
|
|
@@ -11787,7 +11838,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11787
11838
|
children: stepNumberContent
|
|
11788
11839
|
}
|
|
11789
11840
|
),
|
|
11790
|
-
/* @__PURE__ */
|
|
11841
|
+
/* @__PURE__ */ jsx292(
|
|
11791
11842
|
Typography,
|
|
11792
11843
|
{
|
|
11793
11844
|
as: "div",
|
|
@@ -11802,14 +11853,14 @@ var ProgressTrackerItem = (props) => {
|
|
|
11802
11853
|
)
|
|
11803
11854
|
] });
|
|
11804
11855
|
const ariaLabel = props["aria-label"] ? props["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts20.completed) : t(texts20.uncompleted)}`;
|
|
11805
|
-
return /* @__PURE__ */
|
|
11856
|
+
return /* @__PURE__ */ jsx292(
|
|
11806
11857
|
Box,
|
|
11807
11858
|
{
|
|
11808
11859
|
as: "li",
|
|
11809
11860
|
display: direction === "row" ? "flex" : void 0,
|
|
11810
11861
|
"aria-current": active ? "step" : void 0,
|
|
11811
11862
|
className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
|
|
11812
|
-
children: handleStepChange ? /* @__PURE__ */
|
|
11863
|
+
children: handleStepChange ? /* @__PURE__ */ jsx292(
|
|
11813
11864
|
Box,
|
|
11814
11865
|
{
|
|
11815
11866
|
as: StylelessButton,
|
|
@@ -11833,7 +11884,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11833
11884
|
disabled,
|
|
11834
11885
|
children: stepContent
|
|
11835
11886
|
}
|
|
11836
|
-
) : /* @__PURE__ */
|
|
11887
|
+
) : /* @__PURE__ */ jsx292(
|
|
11837
11888
|
"div",
|
|
11838
11889
|
{
|
|
11839
11890
|
...getBaseHTMLProps(
|
|
@@ -11866,7 +11917,7 @@ var texts20 = createTexts({
|
|
|
11866
11917
|
});
|
|
11867
11918
|
|
|
11868
11919
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11869
|
-
import { jsx as
|
|
11920
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
11870
11921
|
var ProgressTracker = (() => {
|
|
11871
11922
|
const Res = ({
|
|
11872
11923
|
id,
|
|
@@ -11896,7 +11947,7 @@ var ProgressTracker = (() => {
|
|
|
11896
11947
|
}, [children]);
|
|
11897
11948
|
const isRow = direction === "row";
|
|
11898
11949
|
const { "aria-label": ariaLabel } = htmlProps;
|
|
11899
|
-
return /* @__PURE__ */
|
|
11950
|
+
return /* @__PURE__ */ jsx293(
|
|
11900
11951
|
ProgressTrackerContext,
|
|
11901
11952
|
{
|
|
11902
11953
|
value: {
|
|
@@ -11904,12 +11955,12 @@ var ProgressTracker = (() => {
|
|
|
11904
11955
|
handleStepChange: handleChange,
|
|
11905
11956
|
direction
|
|
11906
11957
|
},
|
|
11907
|
-
children: /* @__PURE__ */
|
|
11958
|
+
children: /* @__PURE__ */ jsx293(
|
|
11908
11959
|
"nav",
|
|
11909
11960
|
{
|
|
11910
11961
|
"aria-label": ariaLabel != null ? ariaLabel : t(texts21.stepProgression),
|
|
11911
11962
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
11912
|
-
children: /* @__PURE__ */
|
|
11963
|
+
children: /* @__PURE__ */ jsx293(
|
|
11913
11964
|
Box,
|
|
11914
11965
|
{
|
|
11915
11966
|
as: StylelessOList,
|
|
@@ -11955,7 +12006,7 @@ var texts21 = createTexts({
|
|
|
11955
12006
|
});
|
|
11956
12007
|
|
|
11957
12008
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11958
|
-
import { useId as
|
|
12009
|
+
import { useId as useId23 } from "react";
|
|
11959
12010
|
|
|
11960
12011
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
11961
12012
|
var ProgressBar_default = {
|
|
@@ -11968,7 +12019,7 @@ var ProgressBar_default = {
|
|
|
11968
12019
|
};
|
|
11969
12020
|
|
|
11970
12021
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11971
|
-
import { jsx as
|
|
12022
|
+
import { jsx as jsx294, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11972
12023
|
var PROGRESS_BAR_SIZES = createSizes("small", "medium");
|
|
11973
12024
|
var ProgressBar = ({
|
|
11974
12025
|
label,
|
|
@@ -11984,7 +12035,7 @@ var ProgressBar = ({
|
|
|
11984
12035
|
style,
|
|
11985
12036
|
...rest
|
|
11986
12037
|
}) => {
|
|
11987
|
-
const generatedId =
|
|
12038
|
+
const generatedId = useId23();
|
|
11988
12039
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
11989
12040
|
const hasErrorMessage = !!errorMessage;
|
|
11990
12041
|
const hasTip = !!tip;
|
|
@@ -11996,7 +12047,7 @@ var ProgressBar = ({
|
|
|
11996
12047
|
const isIndeterminate = !hasValidValue && !hasErrorMessage;
|
|
11997
12048
|
return /* @__PURE__ */ jsxs73(Box, { width: "100%", className, style, children: [
|
|
11998
12049
|
renderLabel({ label, htmlFor: uniqueId }),
|
|
11999
|
-
/* @__PURE__ */
|
|
12050
|
+
/* @__PURE__ */ jsx294(
|
|
12000
12051
|
"progress",
|
|
12001
12052
|
{
|
|
12002
12053
|
id: uniqueId,
|
|
@@ -12012,13 +12063,13 @@ var ProgressBar = ({
|
|
|
12012
12063
|
children: fillPrecentage
|
|
12013
12064
|
}
|
|
12014
12065
|
),
|
|
12015
|
-
/* @__PURE__ */
|
|
12066
|
+
/* @__PURE__ */ jsx294(
|
|
12016
12067
|
Box,
|
|
12017
12068
|
{
|
|
12018
12069
|
width: getInputWidth(width),
|
|
12019
12070
|
height: size2 === "small" ? "x0.75" : "x1.5",
|
|
12020
12071
|
className: cn(ProgressBar_default.progress),
|
|
12021
|
-
children: /* @__PURE__ */
|
|
12072
|
+
children: /* @__PURE__ */ jsx294(
|
|
12022
12073
|
Box,
|
|
12023
12074
|
{
|
|
12024
12075
|
height: "100%",
|
|
@@ -12040,7 +12091,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
12040
12091
|
|
|
12041
12092
|
// src/components/Search/Search.tsx
|
|
12042
12093
|
import {
|
|
12043
|
-
useId as
|
|
12094
|
+
useId as useId24,
|
|
12044
12095
|
useState as useState26
|
|
12045
12096
|
} from "react";
|
|
12046
12097
|
|
|
@@ -12073,7 +12124,7 @@ var typographyTypes2 = {
|
|
|
12073
12124
|
|
|
12074
12125
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
12075
12126
|
import { useEffect as useEffect29, useRef as useRef32 } from "react";
|
|
12076
|
-
import { jsx as
|
|
12127
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
12077
12128
|
var SearchSuggestionItem = ({
|
|
12078
12129
|
focus,
|
|
12079
12130
|
className,
|
|
@@ -12088,7 +12139,7 @@ var SearchSuggestionItem = ({
|
|
|
12088
12139
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
12089
12140
|
}
|
|
12090
12141
|
}, [focus]);
|
|
12091
|
-
return /* @__PURE__ */
|
|
12142
|
+
return /* @__PURE__ */ jsx295(
|
|
12092
12143
|
StylelessButton,
|
|
12093
12144
|
{
|
|
12094
12145
|
ref: combinedRef,
|
|
@@ -12106,7 +12157,7 @@ var SearchSuggestionItem = ({
|
|
|
12106
12157
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
12107
12158
|
|
|
12108
12159
|
// src/components/Search/SearchSuggestions.tsx
|
|
12109
|
-
import { jsx as
|
|
12160
|
+
import { jsx as jsx296, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12110
12161
|
var SearchSuggestions = ({
|
|
12111
12162
|
id,
|
|
12112
12163
|
searchId,
|
|
@@ -12150,7 +12201,7 @@ var SearchSuggestions = ({
|
|
|
12150
12201
|
overflowY: "scroll",
|
|
12151
12202
|
marginBlock: "x0.25 0",
|
|
12152
12203
|
children: [
|
|
12153
|
-
/* @__PURE__ */
|
|
12204
|
+
/* @__PURE__ */ jsx296(
|
|
12154
12205
|
Box,
|
|
12155
12206
|
{
|
|
12156
12207
|
as: "h2",
|
|
@@ -12160,8 +12211,8 @@ var SearchSuggestions = ({
|
|
|
12160
12211
|
children: "S\xF8keforslag"
|
|
12161
12212
|
}
|
|
12162
12213
|
),
|
|
12163
|
-
/* @__PURE__ */
|
|
12164
|
-
return /* @__PURE__ */
|
|
12214
|
+
/* @__PURE__ */ jsx296(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
|
|
12215
|
+
return /* @__PURE__ */ jsx296("li", { role: "option", children: /* @__PURE__ */ jsx296(
|
|
12165
12216
|
SearchSuggestionItem,
|
|
12166
12217
|
{
|
|
12167
12218
|
index,
|
|
@@ -12190,7 +12241,7 @@ var texts22 = createTexts({
|
|
|
12190
12241
|
});
|
|
12191
12242
|
|
|
12192
12243
|
// src/components/Search/Search.tsx
|
|
12193
|
-
import { Fragment as Fragment11, jsx as
|
|
12244
|
+
import { Fragment as Fragment11, jsx as jsx297, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
12194
12245
|
var getIconSize2 = (size2) => {
|
|
12195
12246
|
switch (size2) {
|
|
12196
12247
|
case "large":
|
|
@@ -12237,7 +12288,7 @@ var Search = ({
|
|
|
12237
12288
|
...rest
|
|
12238
12289
|
}) => {
|
|
12239
12290
|
var _a;
|
|
12240
|
-
const generatedId =
|
|
12291
|
+
const generatedId = useId24();
|
|
12241
12292
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
12242
12293
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
12243
12294
|
const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
|
|
@@ -12273,7 +12324,7 @@ var Search = ({
|
|
|
12273
12324
|
width: !showSearchButton ? width : void 0,
|
|
12274
12325
|
className: !showSearchButton ? className : void 0,
|
|
12275
12326
|
children: [
|
|
12276
|
-
showIcon && /* @__PURE__ */
|
|
12327
|
+
showIcon && /* @__PURE__ */ jsx297(
|
|
12277
12328
|
Icon,
|
|
12278
12329
|
{
|
|
12279
12330
|
icon: SearchIcon,
|
|
@@ -12284,7 +12335,7 @@ var Search = ({
|
|
|
12284
12335
|
)
|
|
12285
12336
|
}
|
|
12286
12337
|
),
|
|
12287
|
-
/* @__PURE__ */
|
|
12338
|
+
/* @__PURE__ */ jsx297(
|
|
12288
12339
|
Box,
|
|
12289
12340
|
{
|
|
12290
12341
|
as: Input,
|
|
@@ -12314,7 +12365,7 @@ var Search = ({
|
|
|
12314
12365
|
}
|
|
12315
12366
|
),
|
|
12316
12367
|
hasSuggestions && /* @__PURE__ */ jsxs75(Fragment11, { children: [
|
|
12317
|
-
/* @__PURE__ */
|
|
12368
|
+
/* @__PURE__ */ jsx297(
|
|
12318
12369
|
SearchSuggestions,
|
|
12319
12370
|
{
|
|
12320
12371
|
id: suggestionsId,
|
|
@@ -12326,9 +12377,9 @@ var Search = ({
|
|
|
12326
12377
|
componentSize
|
|
12327
12378
|
}
|
|
12328
12379
|
),
|
|
12329
|
-
/* @__PURE__ */
|
|
12380
|
+
/* @__PURE__ */ jsx297(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts23.useArrowKeys) })
|
|
12330
12381
|
] }),
|
|
12331
|
-
hasValue && /* @__PURE__ */
|
|
12382
|
+
hasValue && /* @__PURE__ */ jsx297(
|
|
12332
12383
|
ClearButton,
|
|
12333
12384
|
{
|
|
12334
12385
|
size: getIconSize2(componentSize),
|
|
@@ -12355,7 +12406,7 @@ var Search = ({
|
|
|
12355
12406
|
style,
|
|
12356
12407
|
children: [
|
|
12357
12408
|
inputGroup,
|
|
12358
|
-
/* @__PURE__ */
|
|
12409
|
+
/* @__PURE__ */ jsx297(
|
|
12359
12410
|
Button,
|
|
12360
12411
|
{
|
|
12361
12412
|
size: componentSize,
|
|
@@ -12399,7 +12450,7 @@ import {
|
|
|
12399
12450
|
useRef as useRef33,
|
|
12400
12451
|
useState as useState27
|
|
12401
12452
|
} from "react";
|
|
12402
|
-
import { jsx as
|
|
12453
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
12403
12454
|
var SearchAutocompleteWrapper = (props) => {
|
|
12404
12455
|
const {
|
|
12405
12456
|
value,
|
|
@@ -12475,7 +12526,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12475
12526
|
inputValue,
|
|
12476
12527
|
onSugggestionClick: handleSuggestionClick
|
|
12477
12528
|
};
|
|
12478
|
-
return /* @__PURE__ */
|
|
12529
|
+
return /* @__PURE__ */ jsx298(AutocompleteSearchContext, { value: contextProps, children });
|
|
12479
12530
|
};
|
|
12480
12531
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
12481
12532
|
|
|
@@ -12491,7 +12542,7 @@ var Skeleton_default = {
|
|
|
12491
12542
|
};
|
|
12492
12543
|
|
|
12493
12544
|
// src/components/Skeleton/Skeleton.tsx
|
|
12494
|
-
import { jsx as
|
|
12545
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
12495
12546
|
var Skeleton = ({
|
|
12496
12547
|
width,
|
|
12497
12548
|
height,
|
|
@@ -12501,7 +12552,7 @@ var Skeleton = ({
|
|
|
12501
12552
|
ref,
|
|
12502
12553
|
...rest
|
|
12503
12554
|
}) => {
|
|
12504
|
-
return /* @__PURE__ */
|
|
12555
|
+
return /* @__PURE__ */ jsx299(
|
|
12505
12556
|
Box,
|
|
12506
12557
|
{
|
|
12507
12558
|
width,
|
|
@@ -12521,7 +12572,7 @@ var SkipToContent_default = {
|
|
|
12521
12572
|
};
|
|
12522
12573
|
|
|
12523
12574
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12524
|
-
import { jsx as
|
|
12575
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
12525
12576
|
var SkipToContent = ({
|
|
12526
12577
|
text = "Til hovedinnhold",
|
|
12527
12578
|
top = 0,
|
|
@@ -12531,12 +12582,12 @@ var SkipToContent = ({
|
|
|
12531
12582
|
...rest
|
|
12532
12583
|
}) => {
|
|
12533
12584
|
const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
|
|
12534
|
-
return /* @__PURE__ */
|
|
12585
|
+
return /* @__PURE__ */ jsx300(
|
|
12535
12586
|
Contrast,
|
|
12536
12587
|
{
|
|
12537
12588
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
12538
12589
|
style: { ...style, top },
|
|
12539
|
-
children: /* @__PURE__ */
|
|
12590
|
+
children: /* @__PURE__ */ jsx300(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
|
|
12540
12591
|
}
|
|
12541
12592
|
);
|
|
12542
12593
|
};
|
|
@@ -12554,7 +12605,7 @@ var SplitButton_default = {
|
|
|
12554
12605
|
};
|
|
12555
12606
|
|
|
12556
12607
|
// src/components/SplitButton/SplitButton.tsx
|
|
12557
|
-
import { jsx as
|
|
12608
|
+
import { jsx as jsx301, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12558
12609
|
var SplitButton = ({
|
|
12559
12610
|
size: size2,
|
|
12560
12611
|
primaryAction,
|
|
@@ -12570,7 +12621,7 @@ var SplitButton = ({
|
|
|
12570
12621
|
size: size2
|
|
12571
12622
|
};
|
|
12572
12623
|
return /* @__PURE__ */ jsxs76("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
12573
|
-
/* @__PURE__ */
|
|
12624
|
+
/* @__PURE__ */ jsx301(
|
|
12574
12625
|
Button,
|
|
12575
12626
|
{
|
|
12576
12627
|
...buttonStyleProps,
|
|
@@ -12580,7 +12631,7 @@ var SplitButton = ({
|
|
|
12580
12631
|
}
|
|
12581
12632
|
),
|
|
12582
12633
|
/* @__PURE__ */ jsxs76(OverflowMenuGroup, { isOpen, setIsOpen, children: [
|
|
12583
|
-
/* @__PURE__ */
|
|
12634
|
+
/* @__PURE__ */ jsx301(
|
|
12584
12635
|
Button,
|
|
12585
12636
|
{
|
|
12586
12637
|
...buttonStyleProps,
|
|
@@ -12594,7 +12645,7 @@ var SplitButton = ({
|
|
|
12594
12645
|
type: "button"
|
|
12595
12646
|
}
|
|
12596
12647
|
),
|
|
12597
|
-
/* @__PURE__ */
|
|
12648
|
+
/* @__PURE__ */ jsx301(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx301(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx301(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
|
|
12598
12649
|
] })
|
|
12599
12650
|
] });
|
|
12600
12651
|
};
|
|
@@ -12627,14 +12678,14 @@ var CollapsibleTableContext = createContext16({
|
|
|
12627
12678
|
var useCollapsibleTableContext = () => useContext23(CollapsibleTableContext);
|
|
12628
12679
|
|
|
12629
12680
|
// src/components/Table/normal/Body.tsx
|
|
12630
|
-
import { jsx as
|
|
12631
|
-
var Body = (props) => /* @__PURE__ */
|
|
12681
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
12682
|
+
var Body = (props) => /* @__PURE__ */ jsx302("tbody", { ...props });
|
|
12632
12683
|
Body.displayName = "Table.Body";
|
|
12633
12684
|
|
|
12634
12685
|
// src/components/Table/normal/Head.tsx
|
|
12635
12686
|
import { createContext as createContext17, useContext as useContext24 } from "react";
|
|
12636
|
-
import { jsx as
|
|
12637
|
-
var Head = ({ children, ...rest }) => /* @__PURE__ */
|
|
12687
|
+
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
12688
|
+
var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx303("thead", { ...rest, children: /* @__PURE__ */ jsx303(HeadContext, { value: true, children }) });
|
|
12638
12689
|
var HeadContext = createContext17(false);
|
|
12639
12690
|
function useIsInTableHead() {
|
|
12640
12691
|
const isInTableHead = useContext24(HeadContext);
|
|
@@ -12667,7 +12718,7 @@ var Table_default = {
|
|
|
12667
12718
|
};
|
|
12668
12719
|
|
|
12669
12720
|
// src/components/Table/normal/Cell.tsx
|
|
12670
|
-
import { jsx as
|
|
12721
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
12671
12722
|
var Cell = ({
|
|
12672
12723
|
children,
|
|
12673
12724
|
type: _type,
|
|
@@ -12680,7 +12731,7 @@ var Cell = ({
|
|
|
12680
12731
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
12681
12732
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
12682
12733
|
const isComplexLayout = layout === "text and icon";
|
|
12683
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
12734
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx304(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx304(
|
|
12684
12735
|
"th",
|
|
12685
12736
|
{
|
|
12686
12737
|
...rest,
|
|
@@ -12689,26 +12740,26 @@ var Cell = ({
|
|
|
12689
12740
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
12690
12741
|
Table_default["cell--head"]
|
|
12691
12742
|
),
|
|
12692
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12743
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx304("div", { className: Table_default.cell__inner, children }) : children
|
|
12693
12744
|
}
|
|
12694
|
-
) : /* @__PURE__ */
|
|
12745
|
+
) : /* @__PURE__ */ jsx304(
|
|
12695
12746
|
"td",
|
|
12696
12747
|
{
|
|
12697
12748
|
...rest,
|
|
12698
12749
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
12699
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12750
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx304("div", { className: Table_default.cell__inner, children }) : children
|
|
12700
12751
|
}
|
|
12701
12752
|
);
|
|
12702
12753
|
};
|
|
12703
12754
|
Cell.displayName = "Table.Cell";
|
|
12704
12755
|
|
|
12705
12756
|
// src/components/Table/normal/Foot.tsx
|
|
12706
|
-
import { jsx as
|
|
12707
|
-
var Foot = (props) => /* @__PURE__ */
|
|
12757
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
12758
|
+
var Foot = (props) => /* @__PURE__ */ jsx305("tfoot", { ...props });
|
|
12708
12759
|
Foot.displayName = "Table.Foot";
|
|
12709
12760
|
|
|
12710
12761
|
// src/components/Table/normal/Row.tsx
|
|
12711
|
-
import { jsx as
|
|
12762
|
+
import { jsx as jsx306 } from "react/jsx-runtime";
|
|
12712
12763
|
var Row = ({
|
|
12713
12764
|
type: _type,
|
|
12714
12765
|
mode = "normal",
|
|
@@ -12719,7 +12770,7 @@ var Row = ({
|
|
|
12719
12770
|
}) => {
|
|
12720
12771
|
const isInHeader = useIsInTableHead();
|
|
12721
12772
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
12722
|
-
return /* @__PURE__ */
|
|
12773
|
+
return /* @__PURE__ */ jsx306(
|
|
12723
12774
|
"tr",
|
|
12724
12775
|
{
|
|
12725
12776
|
className: cn(
|
|
@@ -12739,12 +12790,12 @@ var Row = ({
|
|
|
12739
12790
|
Row.displayName = "Table.Row";
|
|
12740
12791
|
|
|
12741
12792
|
// src/components/Table/normal/SortCell.tsx
|
|
12742
|
-
import { jsx as
|
|
12793
|
+
import { jsx as jsx307, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12743
12794
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12744
12795
|
if (!isSorted || !sortOrder) {
|
|
12745
|
-
return /* @__PURE__ */
|
|
12796
|
+
return /* @__PURE__ */ jsx307(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
12746
12797
|
}
|
|
12747
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
12798
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx307(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx307(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12748
12799
|
};
|
|
12749
12800
|
var SortCell = ({
|
|
12750
12801
|
isSorted,
|
|
@@ -12754,7 +12805,7 @@ var SortCell = ({
|
|
|
12754
12805
|
...rest
|
|
12755
12806
|
}) => {
|
|
12756
12807
|
const { t } = useTranslation();
|
|
12757
|
-
return /* @__PURE__ */
|
|
12808
|
+
return /* @__PURE__ */ jsx307(
|
|
12758
12809
|
Cell,
|
|
12759
12810
|
{
|
|
12760
12811
|
type: "head",
|
|
@@ -12787,7 +12838,7 @@ var texts25 = createTexts({
|
|
|
12787
12838
|
});
|
|
12788
12839
|
|
|
12789
12840
|
// src/components/Table/normal/Table.tsx
|
|
12790
|
-
import { jsx as
|
|
12841
|
+
import { jsx as jsx308 } from "react/jsx-runtime";
|
|
12791
12842
|
var Table = ({
|
|
12792
12843
|
size: size2 = "medium",
|
|
12793
12844
|
stickyHeader,
|
|
@@ -12795,7 +12846,7 @@ var Table = ({
|
|
|
12795
12846
|
className,
|
|
12796
12847
|
children,
|
|
12797
12848
|
...rest
|
|
12798
|
-
}) => /* @__PURE__ */
|
|
12849
|
+
}) => /* @__PURE__ */ jsx308(
|
|
12799
12850
|
"table",
|
|
12800
12851
|
{
|
|
12801
12852
|
...rest,
|
|
@@ -12819,7 +12870,7 @@ import {
|
|
|
12819
12870
|
useRef as useRef34,
|
|
12820
12871
|
useState as useState29
|
|
12821
12872
|
} from "react";
|
|
12822
|
-
import { jsx as
|
|
12873
|
+
import { jsx as jsx309 } from "react/jsx-runtime";
|
|
12823
12874
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12824
12875
|
const themeContext = useContext25(ThemeContext);
|
|
12825
12876
|
const container2 = themeContext == null ? void 0 : themeContext.el;
|
|
@@ -12844,7 +12895,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
12844
12895
|
window.addEventListener("resize", handleResize);
|
|
12845
12896
|
return () => window.removeEventListener("resize", handleResize);
|
|
12846
12897
|
});
|
|
12847
|
-
return /* @__PURE__ */
|
|
12898
|
+
return /* @__PURE__ */ jsx309(
|
|
12848
12899
|
"div",
|
|
12849
12900
|
{
|
|
12850
12901
|
ref: wrapperRef,
|
|
@@ -12871,7 +12922,7 @@ Table2.Row = Row;
|
|
|
12871
12922
|
Table2.Foot = Foot;
|
|
12872
12923
|
|
|
12873
12924
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
12874
|
-
import { Fragment as Fragment13, jsx as
|
|
12925
|
+
import { Fragment as Fragment13, jsx as jsx310, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
12875
12926
|
var CollapsibleRow = ({
|
|
12876
12927
|
type: _type,
|
|
12877
12928
|
className,
|
|
@@ -12915,23 +12966,23 @@ var CollapsibleRow = ({
|
|
|
12915
12966
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
12916
12967
|
collapsibleIds.push(id);
|
|
12917
12968
|
return /* @__PURE__ */ jsxs78(Fragment12, { children: [
|
|
12918
|
-
/* @__PURE__ */
|
|
12969
|
+
/* @__PURE__ */ jsx310(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
12919
12970
|
isValidElement6(child) && cloneElement6(child, {
|
|
12920
12971
|
collapsibleProps: { isCollapsibleChild: true }
|
|
12921
12972
|
})
|
|
12922
12973
|
] }, `DL-${index}`);
|
|
12923
12974
|
}) : null;
|
|
12924
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
12975
|
+
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx310(Row, { ...rowProps(), children: /* @__PURE__ */ jsx310(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx310(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
|
|
12925
12976
|
const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
|
|
12926
12977
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
12927
12978
|
});
|
|
12928
12979
|
const headerRow = () => {
|
|
12929
12980
|
if (type !== "head" || !isCollapsed) return null;
|
|
12930
|
-
return /* @__PURE__ */
|
|
12981
|
+
return /* @__PURE__ */ jsx310(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment13, { children: [
|
|
12931
12982
|
definingColumnCells,
|
|
12932
12983
|
/* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12933
12984
|
t(texts26.expand),
|
|
12934
|
-
/* @__PURE__ */
|
|
12985
|
+
/* @__PURE__ */ jsx310(VisuallyHidden, { children: t(texts26.row) })
|
|
12935
12986
|
] })
|
|
12936
12987
|
] }) });
|
|
12937
12988
|
};
|
|
@@ -12940,14 +12991,14 @@ var CollapsibleRow = ({
|
|
|
12940
12991
|
if (type !== "body" || !isCollapsed) return null;
|
|
12941
12992
|
return /* @__PURE__ */ jsxs78(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
12942
12993
|
definingColumnCells,
|
|
12943
|
-
/* @__PURE__ */
|
|
12994
|
+
/* @__PURE__ */ jsx310(Table2.Cell, { children: /* @__PURE__ */ jsx310(
|
|
12944
12995
|
StylelessButton,
|
|
12945
12996
|
{
|
|
12946
12997
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
12947
12998
|
"aria-expanded": !childrenCollapsed,
|
|
12948
12999
|
"aria-controls": idList,
|
|
12949
13000
|
className: cn(Table_default["collapse-button"], focusable),
|
|
12950
|
-
children: /* @__PURE__ */
|
|
13001
|
+
children: /* @__PURE__ */ jsx310(
|
|
12951
13002
|
AnimatedChevronUpDown,
|
|
12952
13003
|
{
|
|
12953
13004
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -12965,7 +13016,7 @@ var CollapsibleRow = ({
|
|
|
12965
13016
|
rowWithChevron(),
|
|
12966
13017
|
childrenCollapsed ? null : collapsedRows
|
|
12967
13018
|
] })
|
|
12968
|
-
] }) : /* @__PURE__ */
|
|
13019
|
+
] }) : /* @__PURE__ */ jsx310(Row, { ref, ...rowProps(), children });
|
|
12969
13020
|
};
|
|
12970
13021
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12971
13022
|
var texts26 = createTexts({
|
|
@@ -12984,14 +13035,14 @@ var texts26 = createTexts({
|
|
|
12984
13035
|
});
|
|
12985
13036
|
|
|
12986
13037
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
12987
|
-
import { jsx as
|
|
13038
|
+
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
12988
13039
|
var CollapsibleTable = ({
|
|
12989
13040
|
isCollapsed,
|
|
12990
13041
|
headerValues,
|
|
12991
13042
|
definingColumnIndex = [0],
|
|
12992
13043
|
...rest
|
|
12993
13044
|
}) => {
|
|
12994
|
-
return /* @__PURE__ */
|
|
13045
|
+
return /* @__PURE__ */ jsx311(
|
|
12995
13046
|
CollapsibleTableContext,
|
|
12996
13047
|
{
|
|
12997
13048
|
value: {
|
|
@@ -12999,7 +13050,7 @@ var CollapsibleTable = ({
|
|
|
12999
13050
|
headerValues,
|
|
13000
13051
|
definingColumnIndex
|
|
13001
13052
|
},
|
|
13002
|
-
children: /* @__PURE__ */
|
|
13053
|
+
children: /* @__PURE__ */ jsx311(Table2, { ...rest })
|
|
13003
13054
|
}
|
|
13004
13055
|
);
|
|
13005
13056
|
};
|
|
@@ -13049,13 +13100,13 @@ import {
|
|
|
13049
13100
|
useContext as useContext27,
|
|
13050
13101
|
useLayoutEffect as useLayoutEffect3
|
|
13051
13102
|
} from "react";
|
|
13052
|
-
import { jsx as
|
|
13103
|
+
import { jsx as jsx312 } from "react/jsx-runtime";
|
|
13053
13104
|
var TabContext = createContext19(null);
|
|
13054
13105
|
function TabWidthContextProvider({
|
|
13055
13106
|
children,
|
|
13056
13107
|
onChangeWidths
|
|
13057
13108
|
}) {
|
|
13058
|
-
return /* @__PURE__ */
|
|
13109
|
+
return /* @__PURE__ */ jsx312(
|
|
13059
13110
|
TabContext,
|
|
13060
13111
|
{
|
|
13061
13112
|
value: {
|
|
@@ -13087,7 +13138,7 @@ function useSetTabWidth(index, width) {
|
|
|
13087
13138
|
}
|
|
13088
13139
|
|
|
13089
13140
|
// src/components/Tabs/AddTabButton.tsx
|
|
13090
|
-
import { jsx as
|
|
13141
|
+
import { jsx as jsx313, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
13091
13142
|
var AddTabButton = ({
|
|
13092
13143
|
ref,
|
|
13093
13144
|
children,
|
|
@@ -13113,8 +13164,8 @@ var AddTabButton = ({
|
|
|
13113
13164
|
focus_default["focusable--inset"]
|
|
13114
13165
|
),
|
|
13115
13166
|
children: [
|
|
13116
|
-
/* @__PURE__ */
|
|
13117
|
-
/* @__PURE__ */
|
|
13167
|
+
/* @__PURE__ */ jsx313(Icon, { icon: PlusIcon, iconSize: "inherit" }),
|
|
13168
|
+
/* @__PURE__ */ jsx313("span", { children })
|
|
13118
13169
|
]
|
|
13119
13170
|
}
|
|
13120
13171
|
);
|
|
@@ -13122,8 +13173,8 @@ var AddTabButton = ({
|
|
|
13122
13173
|
AddTabButton.displayName = "AddTabButton";
|
|
13123
13174
|
|
|
13124
13175
|
// src/components/Tabs/Tabs.tsx
|
|
13125
|
-
import { useEffect as useEffect33, useId as
|
|
13126
|
-
import { jsx as
|
|
13176
|
+
import { useEffect as useEffect33, useId as useId25, useRef as useRef36, useState as useState31 } from "react";
|
|
13177
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
13127
13178
|
var TABS_SIZES = createSizes("small", "medium");
|
|
13128
13179
|
var Tabs = ({
|
|
13129
13180
|
id,
|
|
@@ -13138,7 +13189,7 @@ var Tabs = ({
|
|
|
13138
13189
|
htmlProps,
|
|
13139
13190
|
...rest
|
|
13140
13191
|
}) => {
|
|
13141
|
-
const generatedId =
|
|
13192
|
+
const generatedId = useId25();
|
|
13142
13193
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
13143
13194
|
const [thisActiveTab, setActiveTab] = useState31(activeTab != null ? activeTab : 0);
|
|
13144
13195
|
const [hasTabFocus, setHasTabFocus] = useState31(false);
|
|
@@ -13153,7 +13204,7 @@ var Tabs = ({
|
|
|
13153
13204
|
setActiveTab(activeTab);
|
|
13154
13205
|
}
|
|
13155
13206
|
}, [activeTab, thisActiveTab]);
|
|
13156
|
-
return /* @__PURE__ */
|
|
13207
|
+
return /* @__PURE__ */ jsx314(
|
|
13157
13208
|
TabsContext,
|
|
13158
13209
|
{
|
|
13159
13210
|
value: {
|
|
@@ -13168,7 +13219,7 @@ var Tabs = ({
|
|
|
13168
13219
|
tabContentDirection,
|
|
13169
13220
|
addTabButtonProps
|
|
13170
13221
|
},
|
|
13171
|
-
children: /* @__PURE__ */
|
|
13222
|
+
children: /* @__PURE__ */ jsx314(
|
|
13172
13223
|
Box,
|
|
13173
13224
|
{
|
|
13174
13225
|
...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
|
|
@@ -13187,7 +13238,7 @@ import {
|
|
|
13187
13238
|
useEffect as useEffect34,
|
|
13188
13239
|
useRef as useRef37
|
|
13189
13240
|
} from "react";
|
|
13190
|
-
import { jsx as
|
|
13241
|
+
import { jsx as jsx315, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
13191
13242
|
var Tab = ({
|
|
13192
13243
|
active = false,
|
|
13193
13244
|
icon,
|
|
@@ -13253,8 +13304,8 @@ var Tab = ({
|
|
|
13253
13304
|
onKeyDown: handleOnKeyDown,
|
|
13254
13305
|
tabIndex: focus ? 0 : -1,
|
|
13255
13306
|
children: [
|
|
13256
|
-
icon && /* @__PURE__ */
|
|
13257
|
-
/* @__PURE__ */
|
|
13307
|
+
icon && /* @__PURE__ */ jsx315(Icon, { icon, iconSize: "inherit" }),
|
|
13308
|
+
/* @__PURE__ */ jsx315("span", { children })
|
|
13258
13309
|
]
|
|
13259
13310
|
}
|
|
13260
13311
|
);
|
|
@@ -13268,7 +13319,7 @@ import {
|
|
|
13268
13319
|
isValidElement as isValidElement7,
|
|
13269
13320
|
useState as useState32
|
|
13270
13321
|
} from "react";
|
|
13271
|
-
import { jsx as
|
|
13322
|
+
import { jsx as jsx316, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
13272
13323
|
var TabList = ({
|
|
13273
13324
|
children,
|
|
13274
13325
|
id,
|
|
@@ -13326,7 +13377,7 @@ var TabList = ({
|
|
|
13326
13377
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13327
13378
|
["--dds-tab-widths"]: widths.join(" ")
|
|
13328
13379
|
};
|
|
13329
|
-
return /* @__PURE__ */
|
|
13380
|
+
return /* @__PURE__ */ jsx316(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs81(
|
|
13330
13381
|
"div",
|
|
13331
13382
|
{
|
|
13332
13383
|
...rest,
|
|
@@ -13346,7 +13397,7 @@ var TabList = ({
|
|
|
13346
13397
|
style: { ...style, ...customWidths },
|
|
13347
13398
|
children: [
|
|
13348
13399
|
tabListChildren,
|
|
13349
|
-
hasButton && /* @__PURE__ */
|
|
13400
|
+
hasButton && /* @__PURE__ */ jsx316(
|
|
13350
13401
|
AddTabButton,
|
|
13351
13402
|
{
|
|
13352
13403
|
index: tabListChildren ? tabListChildren.length : 0,
|
|
@@ -13360,7 +13411,7 @@ var TabList = ({
|
|
|
13360
13411
|
TabList.displayName = "TabList";
|
|
13361
13412
|
|
|
13362
13413
|
// src/components/Tabs/TabPanel.tsx
|
|
13363
|
-
import { jsx as
|
|
13414
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
13364
13415
|
var TabPanel = ({
|
|
13365
13416
|
active = false,
|
|
13366
13417
|
children,
|
|
@@ -13369,7 +13420,7 @@ var TabPanel = ({
|
|
|
13369
13420
|
htmlProps,
|
|
13370
13421
|
padding = "x0.25",
|
|
13371
13422
|
...rest
|
|
13372
|
-
}) => /* @__PURE__ */
|
|
13423
|
+
}) => /* @__PURE__ */ jsx317(
|
|
13373
13424
|
Box,
|
|
13374
13425
|
{
|
|
13375
13426
|
padding,
|
|
@@ -13388,7 +13439,7 @@ import {
|
|
|
13388
13439
|
cloneElement as cloneElement8,
|
|
13389
13440
|
isValidElement as isValidElement8
|
|
13390
13441
|
} from "react";
|
|
13391
|
-
import { jsx as
|
|
13442
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
13392
13443
|
var TabPanels = ({ children, ref, ...rest }) => {
|
|
13393
13444
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
13394
13445
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -13403,7 +13454,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13403
13454
|
}
|
|
13404
13455
|
});
|
|
13405
13456
|
});
|
|
13406
|
-
return /* @__PURE__ */
|
|
13457
|
+
return /* @__PURE__ */ jsx318(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13407
13458
|
};
|
|
13408
13459
|
TabPanels.displayName = "TabPanels";
|
|
13409
13460
|
|
|
@@ -13424,7 +13475,7 @@ var Tag_default = {
|
|
|
13424
13475
|
};
|
|
13425
13476
|
|
|
13426
13477
|
// src/components/Tag/Tag.tsx
|
|
13427
|
-
import { jsx as
|
|
13478
|
+
import { jsx as jsx319, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
13428
13479
|
var icons3 = {
|
|
13429
13480
|
info: InfoIcon,
|
|
13430
13481
|
danger: ErrorIcon,
|
|
@@ -13460,8 +13511,8 @@ var Tag = ({
|
|
|
13460
13511
|
rest
|
|
13461
13512
|
),
|
|
13462
13513
|
children: [
|
|
13463
|
-
withIcon && icon && /* @__PURE__ */
|
|
13464
|
-
/* @__PURE__ */
|
|
13514
|
+
withIcon && icon && /* @__PURE__ */ jsx319(Icon, { icon, iconSize: "small" }),
|
|
13515
|
+
/* @__PURE__ */ jsx319(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
13465
13516
|
]
|
|
13466
13517
|
}
|
|
13467
13518
|
);
|
|
@@ -13469,7 +13520,7 @@ var Tag = ({
|
|
|
13469
13520
|
Tag.displayName = "Tag";
|
|
13470
13521
|
|
|
13471
13522
|
// src/components/TextInput/TextInput.tsx
|
|
13472
|
-
import { useId as
|
|
13523
|
+
import { useId as useId26, useLayoutEffect as useLayoutEffect4, useRef as useRef38, useState as useState33 } from "react";
|
|
13473
13524
|
|
|
13474
13525
|
// src/components/TextInput/TextInput.module.css
|
|
13475
13526
|
var TextInput_default = {
|
|
@@ -13491,7 +13542,7 @@ var TextInput_default = {
|
|
|
13491
13542
|
};
|
|
13492
13543
|
|
|
13493
13544
|
// src/components/TextInput/TextInput.tsx
|
|
13494
|
-
import { jsx as
|
|
13545
|
+
import { jsx as jsx320, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
13495
13546
|
var TextInput = ({
|
|
13496
13547
|
label,
|
|
13497
13548
|
afterLabelContent,
|
|
@@ -13540,7 +13591,7 @@ var TextInput = ({
|
|
|
13540
13591
|
onChange(event);
|
|
13541
13592
|
}
|
|
13542
13593
|
};
|
|
13543
|
-
const generatedId =
|
|
13594
|
+
const generatedId = useId26();
|
|
13544
13595
|
const uniqueId = id != null ? id : `${generatedId}-textInput`;
|
|
13545
13596
|
const hasErrorMessage = !!errorMessage;
|
|
13546
13597
|
const hasTip = !!tip;
|
|
@@ -13587,7 +13638,7 @@ var TextInput = ({
|
|
|
13587
13638
|
let extendedInput = null;
|
|
13588
13639
|
if (hasIcon) {
|
|
13589
13640
|
extendedInput = /* @__PURE__ */ jsxs83(Box, { className: Input_default["input-group"], width: inputWidth, children: [
|
|
13590
|
-
/* @__PURE__ */
|
|
13641
|
+
/* @__PURE__ */ jsx320(
|
|
13591
13642
|
Icon,
|
|
13592
13643
|
{
|
|
13593
13644
|
icon,
|
|
@@ -13598,7 +13649,7 @@ var TextInput = ({
|
|
|
13598
13649
|
)
|
|
13599
13650
|
}
|
|
13600
13651
|
),
|
|
13601
|
-
/* @__PURE__ */
|
|
13652
|
+
/* @__PURE__ */ jsx320(
|
|
13602
13653
|
StatefulInput,
|
|
13603
13654
|
{
|
|
13604
13655
|
className: cn(
|
|
@@ -13619,7 +13670,7 @@ var TextInput = ({
|
|
|
13619
13670
|
alignItems: "center",
|
|
13620
13671
|
width: inputWidth,
|
|
13621
13672
|
children: [
|
|
13622
|
-
prefix2 && /* @__PURE__ */
|
|
13673
|
+
prefix2 && /* @__PURE__ */ jsx320(
|
|
13623
13674
|
"span",
|
|
13624
13675
|
{
|
|
13625
13676
|
ref: prefixRef,
|
|
@@ -13632,7 +13683,7 @@ var TextInput = ({
|
|
|
13632
13683
|
children: prefix2
|
|
13633
13684
|
}
|
|
13634
13685
|
),
|
|
13635
|
-
/* @__PURE__ */
|
|
13686
|
+
/* @__PURE__ */ jsx320(
|
|
13636
13687
|
StatefulInput,
|
|
13637
13688
|
{
|
|
13638
13689
|
style: {
|
|
@@ -13643,7 +13694,7 @@ var TextInput = ({
|
|
|
13643
13694
|
...generalInputProps
|
|
13644
13695
|
}
|
|
13645
13696
|
),
|
|
13646
|
-
suffix && /* @__PURE__ */
|
|
13697
|
+
suffix && /* @__PURE__ */ jsx320(
|
|
13647
13698
|
"span",
|
|
13648
13699
|
{
|
|
13649
13700
|
ref: suffixRef,
|
|
@@ -13679,7 +13730,7 @@ var TextInput = ({
|
|
|
13679
13730
|
readOnly,
|
|
13680
13731
|
afterLabelContent
|
|
13681
13732
|
}),
|
|
13682
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
13733
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx320(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
|
|
13683
13734
|
hasBottomContainer && /* @__PURE__ */ jsxs83(
|
|
13684
13735
|
Box,
|
|
13685
13736
|
{
|
|
@@ -13705,7 +13756,7 @@ var TextInput = ({
|
|
|
13705
13756
|
TextInput.displayName = "TextInput";
|
|
13706
13757
|
|
|
13707
13758
|
// src/components/Toggle/Toggle.tsx
|
|
13708
|
-
import { useId as
|
|
13759
|
+
import { useId as useId27 } from "react";
|
|
13709
13760
|
|
|
13710
13761
|
// src/components/Toggle/Toggle.module.css
|
|
13711
13762
|
var Toggle_default = {
|
|
@@ -13723,7 +13774,7 @@ var Toggle_default = {
|
|
|
13723
13774
|
};
|
|
13724
13775
|
|
|
13725
13776
|
// src/components/Toggle/Toggle.tsx
|
|
13726
|
-
import { jsx as
|
|
13777
|
+
import { jsx as jsx321, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
13727
13778
|
var TOGGLE_SIZES = createSizes("medium", "large");
|
|
13728
13779
|
var Toggle = ({
|
|
13729
13780
|
id,
|
|
@@ -13740,7 +13791,7 @@ var Toggle = ({
|
|
|
13740
13791
|
...rest
|
|
13741
13792
|
}) => {
|
|
13742
13793
|
const { t } = useTranslation();
|
|
13743
|
-
const generatedId =
|
|
13794
|
+
const generatedId = useId27();
|
|
13744
13795
|
const uniqueId = id != null ? id : `${generatedId}-toggle`;
|
|
13745
13796
|
const iconSize = size2 === "large" ? "medium" : "small";
|
|
13746
13797
|
const [checked, setChecked] = useControllableState({
|
|
@@ -13760,7 +13811,7 @@ var Toggle = ({
|
|
|
13760
13811
|
readOnly && Toggle_default["label--read-only"]
|
|
13761
13812
|
),
|
|
13762
13813
|
children: [
|
|
13763
|
-
/* @__PURE__ */
|
|
13814
|
+
/* @__PURE__ */ jsx321(
|
|
13764
13815
|
HiddenInput,
|
|
13765
13816
|
{
|
|
13766
13817
|
...getBaseHTMLProps(
|
|
@@ -13782,7 +13833,7 @@ var Toggle = ({
|
|
|
13782
13833
|
onClick: readOnlyClickHandler(readOnly || isLoading, htmlProps.onClick)
|
|
13783
13834
|
}
|
|
13784
13835
|
),
|
|
13785
|
-
/* @__PURE__ */
|
|
13836
|
+
/* @__PURE__ */ jsx321("span", { className: cn(Toggle_default.track, focus_default["focus-styled-sibling"]), children: /* @__PURE__ */ jsx321("span", { className: Toggle_default.thumb, children: isLoading ? /* @__PURE__ */ jsx321(Spinner, { size: `var(--dds-icon-size-${size2})` }) : /* @__PURE__ */ jsx321(
|
|
13786
13837
|
Icon,
|
|
13787
13838
|
{
|
|
13788
13839
|
className: Toggle_default.checkmark,
|
|
@@ -13791,7 +13842,7 @@ var Toggle = ({
|
|
|
13791
13842
|
}
|
|
13792
13843
|
) }) }),
|
|
13793
13844
|
/* @__PURE__ */ jsxs84("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
|
|
13794
|
-
readOnly && /* @__PURE__ */
|
|
13845
|
+
readOnly && /* @__PURE__ */ jsx321(
|
|
13795
13846
|
Icon,
|
|
13796
13847
|
{
|
|
13797
13848
|
icon: LockIcon,
|
|
@@ -13801,7 +13852,7 @@ var Toggle = ({
|
|
|
13801
13852
|
),
|
|
13802
13853
|
children,
|
|
13803
13854
|
" ",
|
|
13804
|
-
isLoading && /* @__PURE__ */
|
|
13855
|
+
isLoading && /* @__PURE__ */ jsx321(VisuallyHidden, { children: t(commonTexts.loading) })
|
|
13805
13856
|
] })
|
|
13806
13857
|
]
|
|
13807
13858
|
}
|
|
@@ -13810,7 +13861,7 @@ var Toggle = ({
|
|
|
13810
13861
|
Toggle.displayName = "Toggle";
|
|
13811
13862
|
|
|
13812
13863
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13813
|
-
import { useId as
|
|
13864
|
+
import { useId as useId28, useState as useState34 } from "react";
|
|
13814
13865
|
|
|
13815
13866
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
13816
13867
|
import { createContext as createContext20, useContext as useContext28 } from "react";
|
|
@@ -13835,7 +13886,7 @@ var ToggleBar_default = {
|
|
|
13835
13886
|
};
|
|
13836
13887
|
|
|
13837
13888
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13838
|
-
import { jsx as
|
|
13889
|
+
import { jsx as jsx322, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
13839
13890
|
var ToggleBar = (props) => {
|
|
13840
13891
|
const {
|
|
13841
13892
|
children,
|
|
@@ -13850,7 +13901,7 @@ var ToggleBar = (props) => {
|
|
|
13850
13901
|
id,
|
|
13851
13902
|
...rest
|
|
13852
13903
|
} = props;
|
|
13853
|
-
const generatedId =
|
|
13904
|
+
const generatedId = useId28();
|
|
13854
13905
|
const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
|
|
13855
13906
|
const [groupValue, setGroupValue] = useState34(value);
|
|
13856
13907
|
const handleChange = combineHandlers(
|
|
@@ -13858,7 +13909,7 @@ var ToggleBar = (props) => {
|
|
|
13858
13909
|
(e) => onChange && onChange(e, e.target.value)
|
|
13859
13910
|
);
|
|
13860
13911
|
const labelId = label && `${uniqueId}-label`;
|
|
13861
|
-
return /* @__PURE__ */
|
|
13912
|
+
return /* @__PURE__ */ jsx322(
|
|
13862
13913
|
ToggleBarContext,
|
|
13863
13914
|
{
|
|
13864
13915
|
value: {
|
|
@@ -13876,8 +13927,8 @@ var ToggleBar = (props) => {
|
|
|
13876
13927
|
role: "radiogroup",
|
|
13877
13928
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
13878
13929
|
children: [
|
|
13879
|
-
label && /* @__PURE__ */
|
|
13880
|
-
/* @__PURE__ */
|
|
13930
|
+
label && /* @__PURE__ */ jsx322(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
|
|
13931
|
+
/* @__PURE__ */ jsx322("div", { className: ToggleBar_default.bar, children })
|
|
13881
13932
|
]
|
|
13882
13933
|
}
|
|
13883
13934
|
)
|
|
@@ -13887,8 +13938,8 @@ var ToggleBar = (props) => {
|
|
|
13887
13938
|
ToggleBar.displayName = "ToggleBar";
|
|
13888
13939
|
|
|
13889
13940
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
13890
|
-
import { useId as
|
|
13891
|
-
import { jsx as
|
|
13941
|
+
import { useId as useId29 } from "react";
|
|
13942
|
+
import { jsx as jsx323, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
13892
13943
|
var typographyTypes3 = {
|
|
13893
13944
|
large: "bodyLarge",
|
|
13894
13945
|
medium: "bodyMedium",
|
|
@@ -13919,7 +13970,7 @@ var ToggleRadio = ({
|
|
|
13919
13970
|
id,
|
|
13920
13971
|
...rest
|
|
13921
13972
|
}) => {
|
|
13922
|
-
const generatedId =
|
|
13973
|
+
const generatedId = useId29();
|
|
13923
13974
|
const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
|
|
13924
13975
|
const group = useToggleBarContext();
|
|
13925
13976
|
const handleChange = (event) => {
|
|
@@ -13929,7 +13980,7 @@ var ToggleRadio = ({
|
|
|
13929
13980
|
};
|
|
13930
13981
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
13931
13982
|
return /* @__PURE__ */ jsxs86("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
13932
|
-
/* @__PURE__ */
|
|
13983
|
+
/* @__PURE__ */ jsx323(
|
|
13933
13984
|
HiddenInput,
|
|
13934
13985
|
{
|
|
13935
13986
|
...getBaseHTMLProps(
|
|
@@ -13958,8 +14009,8 @@ var ToggleRadio = ({
|
|
|
13958
14009
|
focus_default["focus-styled-sibling"]
|
|
13959
14010
|
),
|
|
13960
14011
|
children: [
|
|
13961
|
-
icon && /* @__PURE__ */
|
|
13962
|
-
label && /* @__PURE__ */
|
|
14012
|
+
icon && /* @__PURE__ */ jsx323(Icon, { icon, iconSize: "inherit" }),
|
|
14013
|
+
label && /* @__PURE__ */ jsx323("span", { children: label })
|
|
13963
14014
|
]
|
|
13964
14015
|
}
|
|
13965
14016
|
)
|
|
@@ -13968,7 +14019,7 @@ var ToggleRadio = ({
|
|
|
13968
14019
|
ToggleRadio.displayName = "ToggleRadio";
|
|
13969
14020
|
|
|
13970
14021
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13971
|
-
import { useId as
|
|
14022
|
+
import { useId as useId30 } from "react";
|
|
13972
14023
|
|
|
13973
14024
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
13974
14025
|
var ToggleButton_default = {
|
|
@@ -13979,7 +14030,7 @@ var ToggleButton_default = {
|
|
|
13979
14030
|
};
|
|
13980
14031
|
|
|
13981
14032
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13982
|
-
import { jsx as
|
|
14033
|
+
import { jsx as jsx324, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
13983
14034
|
var ToggleButton = ({
|
|
13984
14035
|
id,
|
|
13985
14036
|
label,
|
|
@@ -13989,11 +14040,11 @@ var ToggleButton = ({
|
|
|
13989
14040
|
htmlProps,
|
|
13990
14041
|
...rest
|
|
13991
14042
|
}) => {
|
|
13992
|
-
const generatedId =
|
|
14043
|
+
const generatedId = useId30();
|
|
13993
14044
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
13994
14045
|
const hasIcon = !!icon;
|
|
13995
14046
|
return /* @__PURE__ */ jsxs87(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
|
|
13996
|
-
/* @__PURE__ */
|
|
14047
|
+
/* @__PURE__ */ jsx324(
|
|
13997
14048
|
HiddenInput,
|
|
13998
14049
|
{
|
|
13999
14050
|
...getBaseHTMLProps(
|
|
@@ -14016,7 +14067,7 @@ var ToggleButton = ({
|
|
|
14016
14067
|
focus_default["focus-styled-sibling"]
|
|
14017
14068
|
),
|
|
14018
14069
|
children: [
|
|
14019
|
-
hasIcon && /* @__PURE__ */
|
|
14070
|
+
hasIcon && /* @__PURE__ */ jsx324(Icon, { icon, iconSize: "inherit" }),
|
|
14020
14071
|
" ",
|
|
14021
14072
|
label
|
|
14022
14073
|
]
|
|
@@ -14027,8 +14078,8 @@ var ToggleButton = ({
|
|
|
14027
14078
|
ToggleButton.displayName = "ToggleButton";
|
|
14028
14079
|
|
|
14029
14080
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
14030
|
-
import { useId as
|
|
14031
|
-
import { jsx as
|
|
14081
|
+
import { useId as useId31 } from "react";
|
|
14082
|
+
import { jsx as jsx325, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
14032
14083
|
var ToggleButtonGroup = (props) => {
|
|
14033
14084
|
const {
|
|
14034
14085
|
children,
|
|
@@ -14040,7 +14091,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14040
14091
|
htmlProps,
|
|
14041
14092
|
...rest
|
|
14042
14093
|
} = props;
|
|
14043
|
-
const generatedId =
|
|
14094
|
+
const generatedId = useId31();
|
|
14044
14095
|
const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
|
|
14045
14096
|
return /* @__PURE__ */ jsxs88(
|
|
14046
14097
|
"div",
|
|
@@ -14050,7 +14101,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14050
14101
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
14051
14102
|
children: [
|
|
14052
14103
|
renderGroupLabel({ label, id: uniqueLabelId }),
|
|
14053
|
-
/* @__PURE__ */
|
|
14104
|
+
/* @__PURE__ */ jsx325(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
|
|
14054
14105
|
]
|
|
14055
14106
|
}
|
|
14056
14107
|
);
|
|
@@ -14291,6 +14342,7 @@ export {
|
|
|
14291
14342
|
RedoIcon,
|
|
14292
14343
|
RefreshIcon,
|
|
14293
14344
|
ReplayIcon,
|
|
14345
|
+
ScaleIcon,
|
|
14294
14346
|
ScreenSize,
|
|
14295
14347
|
Search2 as Search,
|
|
14296
14348
|
SearchAutocompleteWrapper,
|