@norges-domstoler/dds-components 21.16.0 → 21.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +76 -18
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +7 -4
- package/dist/index.d.ts +7 -4
- package/dist/index.js +766 -744
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +689 -668
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
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,7 @@ 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
|
-
import { jsx as
|
|
6736
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
6717
6737
|
function TimePicker({
|
|
6718
6738
|
componentSize = "medium",
|
|
6719
6739
|
width,
|
|
@@ -6736,7 +6756,7 @@ function TimePicker({
|
|
|
6736
6756
|
);
|
|
6737
6757
|
const iconSize = componentSize === "xsmall" ? "small" : "medium";
|
|
6738
6758
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6739
|
-
return /* @__PURE__ */
|
|
6759
|
+
return /* @__PURE__ */ jsx238(
|
|
6740
6760
|
DateInput,
|
|
6741
6761
|
{
|
|
6742
6762
|
...props,
|
|
@@ -6749,7 +6769,7 @@ function TimePicker({
|
|
|
6749
6769
|
readOnly: props.isReadOnly,
|
|
6750
6770
|
labelProps,
|
|
6751
6771
|
fieldProps,
|
|
6752
|
-
prefix: /* @__PURE__ */
|
|
6772
|
+
prefix: /* @__PURE__ */ jsx238(
|
|
6753
6773
|
Icon,
|
|
6754
6774
|
{
|
|
6755
6775
|
icon: TimeIcon,
|
|
@@ -6761,7 +6781,7 @@ function TimePicker({
|
|
|
6761
6781
|
)
|
|
6762
6782
|
}
|
|
6763
6783
|
),
|
|
6764
|
-
children: state.segments.map((segment, i) => /* @__PURE__ */
|
|
6784
|
+
children: state.segments.map((segment, i) => /* @__PURE__ */ jsx238(
|
|
6765
6785
|
DateSegment,
|
|
6766
6786
|
{
|
|
6767
6787
|
componentSize,
|
|
@@ -6820,7 +6840,7 @@ var DescriptionList_default = {
|
|
|
6820
6840
|
};
|
|
6821
6841
|
|
|
6822
6842
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6823
|
-
import { jsx as
|
|
6843
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
6824
6844
|
var DescriptionList = ({
|
|
6825
6845
|
appearance = "default",
|
|
6826
6846
|
direction = "column",
|
|
@@ -6829,7 +6849,7 @@ var DescriptionList = ({
|
|
|
6829
6849
|
className,
|
|
6830
6850
|
htmlProps,
|
|
6831
6851
|
...rest
|
|
6832
|
-
}) => /* @__PURE__ */
|
|
6852
|
+
}) => /* @__PURE__ */ jsx239(
|
|
6833
6853
|
VStack,
|
|
6834
6854
|
{
|
|
6835
6855
|
as: "dl",
|
|
@@ -6854,14 +6874,14 @@ var DescriptionList = ({
|
|
|
6854
6874
|
DescriptionList.displayName = "DescriptionList";
|
|
6855
6875
|
|
|
6856
6876
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6857
|
-
import { jsx as
|
|
6877
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
6858
6878
|
var DescriptionListTerm = (props) => {
|
|
6859
|
-
return /* @__PURE__ */
|
|
6879
|
+
return /* @__PURE__ */ jsx240("dt", { ...props });
|
|
6860
6880
|
};
|
|
6861
6881
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6862
6882
|
|
|
6863
6883
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6864
|
-
import { jsx as
|
|
6884
|
+
import { jsx as jsx241, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6865
6885
|
var DescriptionListDesc = ({
|
|
6866
6886
|
children,
|
|
6867
6887
|
icon,
|
|
@@ -6870,14 +6890,14 @@ var DescriptionListDesc = ({
|
|
|
6870
6890
|
htmlProps,
|
|
6871
6891
|
...rest
|
|
6872
6892
|
}) => /* @__PURE__ */ jsxs48("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
|
|
6873
|
-
icon && /* @__PURE__ */
|
|
6893
|
+
icon && /* @__PURE__ */ jsx241(Icon, { icon }),
|
|
6874
6894
|
" ",
|
|
6875
6895
|
children
|
|
6876
6896
|
] });
|
|
6877
6897
|
DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
6878
6898
|
|
|
6879
6899
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6880
|
-
import { jsx as
|
|
6900
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
6881
6901
|
var DescriptionListGroup = ({
|
|
6882
6902
|
children,
|
|
6883
6903
|
margin,
|
|
@@ -6887,7 +6907,7 @@ var DescriptionListGroup = ({
|
|
|
6887
6907
|
className,
|
|
6888
6908
|
htmlProps,
|
|
6889
6909
|
...rest
|
|
6890
|
-
}) => /* @__PURE__ */
|
|
6910
|
+
}) => /* @__PURE__ */ jsx242(
|
|
6891
6911
|
"div",
|
|
6892
6912
|
{
|
|
6893
6913
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
|
|
@@ -6918,7 +6938,7 @@ var DetailListContext = createContext10({});
|
|
|
6918
6938
|
var useDetailListContext = () => useContext13(DetailListContext);
|
|
6919
6939
|
|
|
6920
6940
|
// src/components/DetailList/DetailList.tsx
|
|
6921
|
-
import { jsx as
|
|
6941
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
6922
6942
|
var DetailList = ({
|
|
6923
6943
|
id,
|
|
6924
6944
|
className,
|
|
@@ -6928,7 +6948,7 @@ var DetailList = ({
|
|
|
6928
6948
|
size: size2 = "medium",
|
|
6929
6949
|
smallScreenBreakpoint,
|
|
6930
6950
|
...rest
|
|
6931
|
-
}) => /* @__PURE__ */
|
|
6951
|
+
}) => /* @__PURE__ */ jsx243(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ jsx243(
|
|
6932
6952
|
"dl",
|
|
6933
6953
|
{
|
|
6934
6954
|
...getBaseHTMLProps(
|
|
@@ -6949,17 +6969,17 @@ var DetailList = ({
|
|
|
6949
6969
|
DetailList.displayName = "DetailList";
|
|
6950
6970
|
|
|
6951
6971
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6952
|
-
import { jsx as
|
|
6953
|
-
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */
|
|
6972
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
6973
|
+
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx244("dd", { className: cn(className, DetailList_default.cell), ...rest });
|
|
6954
6974
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6955
6975
|
|
|
6956
6976
|
// src/components/DetailList/DetailListRow.tsx
|
|
6957
|
-
import { Fragment as Fragment6, jsx as
|
|
6977
|
+
import { Fragment as Fragment6, jsx as jsx245, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6958
6978
|
var DetailListRow = ({ className, ...rest }) => {
|
|
6959
6979
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
6960
6980
|
const hasBp = !!bp;
|
|
6961
6981
|
return /* @__PURE__ */ jsxs49(Fragment6, { children: [
|
|
6962
|
-
/* @__PURE__ */
|
|
6982
|
+
/* @__PURE__ */ jsx245(
|
|
6963
6983
|
Box,
|
|
6964
6984
|
{
|
|
6965
6985
|
display: "table-row",
|
|
@@ -6968,7 +6988,7 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6968
6988
|
...rest
|
|
6969
6989
|
}
|
|
6970
6990
|
),
|
|
6971
|
-
hasBp && /* @__PURE__ */
|
|
6991
|
+
hasBp && /* @__PURE__ */ jsx245(
|
|
6972
6992
|
Box,
|
|
6973
6993
|
{
|
|
6974
6994
|
display: "flex",
|
|
@@ -6983,8 +7003,8 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6983
7003
|
DetailListRow.displayName = "DetailListRow";
|
|
6984
7004
|
|
|
6985
7005
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6986
|
-
import { jsx as
|
|
6987
|
-
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */
|
|
7006
|
+
import { jsx as jsx246 } from "react/jsx-runtime";
|
|
7007
|
+
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ jsx246("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
|
|
6988
7008
|
DetailListTerm.displayName = "DetailListTerm";
|
|
6989
7009
|
|
|
6990
7010
|
// src/components/Drawer/Drawer.tsx
|
|
@@ -7015,7 +7035,7 @@ var DrawerContext = createContext11({});
|
|
|
7015
7035
|
var useDrawerContext = () => useContext14(DrawerContext);
|
|
7016
7036
|
|
|
7017
7037
|
// src/components/Drawer/Drawer.tsx
|
|
7018
|
-
import { jsx as
|
|
7038
|
+
import { jsx as jsx247, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7019
7039
|
var DRAWER_SIZES = createSizes("small", "medium", "large");
|
|
7020
7040
|
var Drawer = ({
|
|
7021
7041
|
children,
|
|
@@ -7120,8 +7140,8 @@ var Drawer = ({
|
|
|
7120
7140
|
paddingInline: "var(--dds-drawer-content-container-padding)",
|
|
7121
7141
|
className: Drawer_default["drawer-header"],
|
|
7122
7142
|
children: [
|
|
7123
|
-
hasHeader && /* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7143
|
+
hasHeader && /* @__PURE__ */ jsx247("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx247(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
7144
|
+
/* @__PURE__ */ jsx247(
|
|
7125
7145
|
Button,
|
|
7126
7146
|
{
|
|
7127
7147
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -7136,7 +7156,7 @@ var Drawer = ({
|
|
|
7136
7156
|
]
|
|
7137
7157
|
}
|
|
7138
7158
|
),
|
|
7139
|
-
/* @__PURE__ */
|
|
7159
|
+
/* @__PURE__ */ jsx247(
|
|
7140
7160
|
VStack,
|
|
7141
7161
|
{
|
|
7142
7162
|
gap: "x1",
|
|
@@ -7148,7 +7168,7 @@ var Drawer = ({
|
|
|
7148
7168
|
]
|
|
7149
7169
|
}
|
|
7150
7170
|
);
|
|
7151
|
-
const component = withBackdrop ? /* @__PURE__ */
|
|
7171
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx247(
|
|
7152
7172
|
Backdrop,
|
|
7153
7173
|
{
|
|
7154
7174
|
zIndex: "drawer",
|
|
@@ -7167,11 +7187,11 @@ import {
|
|
|
7167
7187
|
Children as ReactChildren2,
|
|
7168
7188
|
cloneElement as cloneElement2,
|
|
7169
7189
|
isValidElement as isValidElement3,
|
|
7170
|
-
useId as
|
|
7190
|
+
useId as useId10,
|
|
7171
7191
|
useRef as useRef20,
|
|
7172
7192
|
useState as useState13
|
|
7173
7193
|
} from "react";
|
|
7174
|
-
import { jsx as
|
|
7194
|
+
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
7175
7195
|
var DrawerGroup = ({
|
|
7176
7196
|
children,
|
|
7177
7197
|
isInitiallyOpen,
|
|
@@ -7186,7 +7206,7 @@ var DrawerGroup = ({
|
|
|
7186
7206
|
propIsOpen != null ? propIsOpen : internalIsOpen,
|
|
7187
7207
|
propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen
|
|
7188
7208
|
];
|
|
7189
|
-
const generatedId =
|
|
7209
|
+
const generatedId = useId10();
|
|
7190
7210
|
const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
|
|
7191
7211
|
const triggerRef = useRef20(null);
|
|
7192
7212
|
const open = () => setIsOpen(true);
|
|
@@ -7215,7 +7235,7 @@ var DrawerGroup = ({
|
|
|
7215
7235
|
onClick: handleOpen
|
|
7216
7236
|
}) : child);
|
|
7217
7237
|
});
|
|
7218
|
-
return /* @__PURE__ */
|
|
7238
|
+
return /* @__PURE__ */ jsx248(
|
|
7219
7239
|
DrawerContext,
|
|
7220
7240
|
{
|
|
7221
7241
|
value: {
|
|
@@ -7231,14 +7251,14 @@ var DrawerGroup = ({
|
|
|
7231
7251
|
DrawerGroup.displayName = "DrawerGroup";
|
|
7232
7252
|
|
|
7233
7253
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
7234
|
-
import { jsx as
|
|
7254
|
+
import { jsx as jsx249, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7235
7255
|
function EmptyContent({
|
|
7236
7256
|
headerText,
|
|
7237
7257
|
message,
|
|
7238
7258
|
headerHeadingLevel = 2,
|
|
7239
7259
|
...rest
|
|
7240
7260
|
}) {
|
|
7241
|
-
return /* @__PURE__ */
|
|
7261
|
+
return /* @__PURE__ */ jsx249(
|
|
7242
7262
|
Paper,
|
|
7243
7263
|
{
|
|
7244
7264
|
display: "flex",
|
|
@@ -7252,8 +7272,8 @@ function EmptyContent({
|
|
|
7252
7272
|
borderRadius: "surface",
|
|
7253
7273
|
...rest,
|
|
7254
7274
|
children: /* @__PURE__ */ jsxs51(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
|
|
7255
|
-
headerText && /* @__PURE__ */
|
|
7256
|
-
/* @__PURE__ */
|
|
7275
|
+
headerText && /* @__PURE__ */ jsx249(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
|
|
7276
|
+
/* @__PURE__ */ jsx249(Paragraph, { color: "text-medium", children: message })
|
|
7257
7277
|
] })
|
|
7258
7278
|
}
|
|
7259
7279
|
);
|
|
@@ -7261,7 +7281,7 @@ function EmptyContent({
|
|
|
7261
7281
|
EmptyContent.displayName = "EmptyContent";
|
|
7262
7282
|
|
|
7263
7283
|
// src/components/FavStar/FavStar.tsx
|
|
7264
|
-
import { useId as
|
|
7284
|
+
import { useId as useId11 } from "react";
|
|
7265
7285
|
|
|
7266
7286
|
// src/components/FavStar/FavStar.module.css
|
|
7267
7287
|
var FavStar_default = {
|
|
@@ -7273,7 +7293,7 @@ var FavStar_default = {
|
|
|
7273
7293
|
};
|
|
7274
7294
|
|
|
7275
7295
|
// src/components/FavStar/FavStar.tsx
|
|
7276
|
-
import { jsx as
|
|
7296
|
+
import { jsx as jsx250, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7277
7297
|
var FAVSTAR_SIZES = createSizes("medium", "large");
|
|
7278
7298
|
var FavStar = ({
|
|
7279
7299
|
id,
|
|
@@ -7293,7 +7313,7 @@ var FavStar = ({
|
|
|
7293
7313
|
htmlProps,
|
|
7294
7314
|
rest
|
|
7295
7315
|
);
|
|
7296
|
-
const generatedId =
|
|
7316
|
+
const generatedId = useId11();
|
|
7297
7317
|
const [checked, setChecked] = useControllableState({
|
|
7298
7318
|
value: checkedProp,
|
|
7299
7319
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
@@ -7311,7 +7331,7 @@ var FavStar = ({
|
|
|
7311
7331
|
style,
|
|
7312
7332
|
htmlFor: id != null ? id : generatedId,
|
|
7313
7333
|
children: [
|
|
7314
|
-
/* @__PURE__ */
|
|
7334
|
+
/* @__PURE__ */ jsx250(
|
|
7315
7335
|
HiddenInput,
|
|
7316
7336
|
{
|
|
7317
7337
|
...props,
|
|
@@ -7322,8 +7342,8 @@ var FavStar = ({
|
|
|
7322
7342
|
"aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
|
|
7323
7343
|
}
|
|
7324
7344
|
),
|
|
7325
|
-
/* @__PURE__ */
|
|
7326
|
-
/* @__PURE__ */
|
|
7345
|
+
/* @__PURE__ */ jsx250(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7346
|
+
/* @__PURE__ */ jsx250(
|
|
7327
7347
|
Icon,
|
|
7328
7348
|
{
|
|
7329
7349
|
iconSize: size2,
|
|
@@ -7362,7 +7382,7 @@ var Feedback_default = {
|
|
|
7362
7382
|
// src/components/TextArea/TextArea.tsx
|
|
7363
7383
|
import {
|
|
7364
7384
|
useEffect as useEffect20,
|
|
7365
|
-
useId as
|
|
7385
|
+
useId as useId13,
|
|
7366
7386
|
useRef as useRef21,
|
|
7367
7387
|
useState as useState14
|
|
7368
7388
|
} from "react";
|
|
@@ -7373,7 +7393,7 @@ var TextArea_default = {
|
|
|
7373
7393
|
};
|
|
7374
7394
|
|
|
7375
7395
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7376
|
-
import { useId as
|
|
7396
|
+
import { useId as useId12 } from "react";
|
|
7377
7397
|
|
|
7378
7398
|
// src/components/helpers/CharCounter/CharCounter.module.css
|
|
7379
7399
|
var CharCounter_default = {
|
|
@@ -7381,11 +7401,11 @@ var CharCounter_default = {
|
|
|
7381
7401
|
};
|
|
7382
7402
|
|
|
7383
7403
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7384
|
-
import { jsx as
|
|
7404
|
+
import { jsx as jsx251, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7385
7405
|
function CharCounter(props) {
|
|
7386
7406
|
const { t } = useTranslation();
|
|
7387
7407
|
const { current, max, id } = props;
|
|
7388
|
-
const generatedId =
|
|
7408
|
+
const generatedId = useId12();
|
|
7389
7409
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
7390
7410
|
return /* @__PURE__ */ jsxs53(
|
|
7391
7411
|
Typography,
|
|
@@ -7401,14 +7421,14 @@ function CharCounter(props) {
|
|
|
7401
7421
|
"/",
|
|
7402
7422
|
max
|
|
7403
7423
|
] }),
|
|
7404
|
-
/* @__PURE__ */
|
|
7424
|
+
/* @__PURE__ */ jsx251(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
|
|
7405
7425
|
]
|
|
7406
7426
|
}
|
|
7407
7427
|
);
|
|
7408
7428
|
}
|
|
7409
7429
|
var renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
7410
7430
|
if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
|
|
7411
|
-
return /* @__PURE__ */
|
|
7431
|
+
return /* @__PURE__ */ jsx251(CharCounter, { id, max: maxLength, current: textLength });
|
|
7412
7432
|
};
|
|
7413
7433
|
var texts9 = createTexts({
|
|
7414
7434
|
charsWritten: (current, max, remain) => ({
|
|
@@ -7420,7 +7440,7 @@ var texts9 = createTexts({
|
|
|
7420
7440
|
});
|
|
7421
7441
|
|
|
7422
7442
|
// src/components/TextArea/TextArea.tsx
|
|
7423
|
-
import { jsx as
|
|
7443
|
+
import { jsx as jsx252, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7424
7444
|
var TextArea = ({
|
|
7425
7445
|
id,
|
|
7426
7446
|
value,
|
|
@@ -7441,7 +7461,7 @@ var TextArea = ({
|
|
|
7441
7461
|
ref,
|
|
7442
7462
|
...rest
|
|
7443
7463
|
}) => {
|
|
7444
|
-
const generatedId =
|
|
7464
|
+
const generatedId = useId13();
|
|
7445
7465
|
const uniqueId = id != null ? id : `${generatedId}-textArea`;
|
|
7446
7466
|
const textAreaRef = useRef21(null);
|
|
7447
7467
|
const multiRef = useCombinedRef(ref, textAreaRef);
|
|
@@ -7471,7 +7491,7 @@ var TextArea = ({
|
|
|
7471
7491
|
const inputWidth = getInputWidth(width);
|
|
7472
7492
|
return /* @__PURE__ */ jsxs54("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
|
|
7473
7493
|
renderLabel({ label, htmlFor: uniqueId, readOnly, showRequiredStyling }),
|
|
7474
|
-
/* @__PURE__ */
|
|
7494
|
+
/* @__PURE__ */ jsx252(
|
|
7475
7495
|
Box,
|
|
7476
7496
|
{
|
|
7477
7497
|
as: "textarea",
|
|
@@ -7529,7 +7549,7 @@ TextArea.displayName = "TextArea";
|
|
|
7529
7549
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7530
7550
|
|
|
7531
7551
|
// src/components/Feedback/CommentComponent.tsx
|
|
7532
|
-
import { jsx as
|
|
7552
|
+
import { jsx as jsx253, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7533
7553
|
var CommentComponent = ({
|
|
7534
7554
|
layout,
|
|
7535
7555
|
rating,
|
|
@@ -7545,7 +7565,7 @@ var CommentComponent = ({
|
|
|
7545
7565
|
const { t } = useTranslation();
|
|
7546
7566
|
return /* @__PURE__ */ jsxs55(VStack, { gap: "x1", children: [
|
|
7547
7567
|
/* @__PURE__ */ jsxs55("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7548
|
-
/* @__PURE__ */
|
|
7568
|
+
/* @__PURE__ */ jsx253(
|
|
7549
7569
|
Icon,
|
|
7550
7570
|
{
|
|
7551
7571
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -7558,7 +7578,7 @@ var CommentComponent = ({
|
|
|
7558
7578
|
" "
|
|
7559
7579
|
] })
|
|
7560
7580
|
] }),
|
|
7561
|
-
/* @__PURE__ */
|
|
7581
|
+
/* @__PURE__ */ jsx253(
|
|
7562
7582
|
TextArea,
|
|
7563
7583
|
{
|
|
7564
7584
|
value: feedbackText,
|
|
@@ -7567,7 +7587,7 @@ var CommentComponent = ({
|
|
|
7567
7587
|
tip: textAreaTip
|
|
7568
7588
|
}
|
|
7569
7589
|
),
|
|
7570
|
-
/* @__PURE__ */
|
|
7590
|
+
/* @__PURE__ */ jsx253(
|
|
7571
7591
|
Button,
|
|
7572
7592
|
{
|
|
7573
7593
|
purpose: "secondary",
|
|
@@ -7593,7 +7613,7 @@ import {
|
|
|
7593
7613
|
Children as ReactChildren3,
|
|
7594
7614
|
cloneElement as cloneElement3,
|
|
7595
7615
|
useEffect as useEffect21,
|
|
7596
|
-
useId as
|
|
7616
|
+
useId as useId14,
|
|
7597
7617
|
useRef as useRef22,
|
|
7598
7618
|
useState as useState15
|
|
7599
7619
|
} from "react";
|
|
@@ -7607,7 +7627,7 @@ var Tooltip_default = {
|
|
|
7607
7627
|
};
|
|
7608
7628
|
|
|
7609
7629
|
// src/components/Tooltip/Tooltip.tsx
|
|
7610
|
-
import { jsx as
|
|
7630
|
+
import { jsx as jsx254, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7611
7631
|
var Tooltip = ({
|
|
7612
7632
|
text,
|
|
7613
7633
|
placement = "bottom",
|
|
@@ -7624,7 +7644,7 @@ var Tooltip = ({
|
|
|
7624
7644
|
htmlProps,
|
|
7625
7645
|
...rest
|
|
7626
7646
|
}) => {
|
|
7627
|
-
const generatedId =
|
|
7647
|
+
const generatedId = useId14();
|
|
7628
7648
|
const uniqueTooltipId = tooltipId != null ? tooltipId : `${generatedId}-tooltip`;
|
|
7629
7649
|
const [open, setOpen] = useState15(false);
|
|
7630
7650
|
const [inView, setInView] = useState15(keepMounted ? false : true);
|
|
@@ -7730,15 +7750,15 @@ var Tooltip = ({
|
|
|
7730
7750
|
),
|
|
7731
7751
|
children: [
|
|
7732
7752
|
text,
|
|
7733
|
-
/* @__PURE__ */
|
|
7734
|
-
/* @__PURE__ */
|
|
7753
|
+
/* @__PURE__ */ jsx254("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs56("svg", { width: "36", height: "9", children: [
|
|
7754
|
+
/* @__PURE__ */ jsx254(
|
|
7735
7755
|
"path",
|
|
7736
7756
|
{
|
|
7737
7757
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7738
7758
|
className: Tooltip_default["svg-arrow__background"]
|
|
7739
7759
|
}
|
|
7740
7760
|
),
|
|
7741
|
-
/* @__PURE__ */
|
|
7761
|
+
/* @__PURE__ */ jsx254(
|
|
7742
7762
|
"path",
|
|
7743
7763
|
{
|
|
7744
7764
|
fillRule: "evenodd",
|
|
@@ -7758,7 +7778,7 @@ var Tooltip = ({
|
|
|
7758
7778
|
Tooltip.displayName = "Tooltip";
|
|
7759
7779
|
|
|
7760
7780
|
// src/components/Feedback/RatingComponent.tsx
|
|
7761
|
-
import { jsx as
|
|
7781
|
+
import { jsx as jsx255, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7762
7782
|
var RatingComponent = ({
|
|
7763
7783
|
layout,
|
|
7764
7784
|
ratingLabel,
|
|
@@ -7768,7 +7788,7 @@ var RatingComponent = ({
|
|
|
7768
7788
|
handleRatingChange
|
|
7769
7789
|
}) => {
|
|
7770
7790
|
const { t } = useTranslation();
|
|
7771
|
-
const button = (rating, layout2, tooltip) => /* @__PURE__ */
|
|
7791
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx255(
|
|
7772
7792
|
InlineIconButton,
|
|
7773
7793
|
{
|
|
7774
7794
|
"aria-label": tooltip,
|
|
@@ -7786,10 +7806,10 @@ var RatingComponent = ({
|
|
|
7786
7806
|
Feedback_default[`rating-container--${layout}`]
|
|
7787
7807
|
),
|
|
7788
7808
|
children: [
|
|
7789
|
-
/* @__PURE__ */
|
|
7790
|
-
loading ? /* @__PURE__ */
|
|
7791
|
-
/* @__PURE__ */
|
|
7792
|
-
/* @__PURE__ */
|
|
7809
|
+
/* @__PURE__ */ jsx255("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
7810
|
+
loading ? /* @__PURE__ */ jsx255(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ jsxs57(HStack, { gap: "x1", children: [
|
|
7811
|
+
/* @__PURE__ */ jsx255(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
7812
|
+
/* @__PURE__ */ jsx255(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx255("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7793
7813
|
] })
|
|
7794
7814
|
]
|
|
7795
7815
|
}
|
|
@@ -7805,7 +7825,7 @@ var texts11 = createTexts({
|
|
|
7805
7825
|
});
|
|
7806
7826
|
|
|
7807
7827
|
// src/components/Feedback/Feedback.tsx
|
|
7808
|
-
import { jsx as
|
|
7828
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
7809
7829
|
var Feedback = ({
|
|
7810
7830
|
layout = "vertical",
|
|
7811
7831
|
ratingLabel,
|
|
@@ -7860,7 +7880,7 @@ var Feedback = ({
|
|
|
7860
7880
|
if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
|
|
7861
7881
|
};
|
|
7862
7882
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7863
|
-
return /* @__PURE__ */
|
|
7883
|
+
return /* @__PURE__ */ jsx256(
|
|
7864
7884
|
RatingComponent,
|
|
7865
7885
|
{
|
|
7866
7886
|
layout,
|
|
@@ -7873,7 +7893,7 @@ var Feedback = ({
|
|
|
7873
7893
|
);
|
|
7874
7894
|
}
|
|
7875
7895
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7876
|
-
return /* @__PURE__ */
|
|
7896
|
+
return /* @__PURE__ */ jsx256(
|
|
7877
7897
|
CommentComponent,
|
|
7878
7898
|
{
|
|
7879
7899
|
layout,
|
|
@@ -7889,7 +7909,7 @@ var Feedback = ({
|
|
|
7889
7909
|
}
|
|
7890
7910
|
);
|
|
7891
7911
|
}
|
|
7892
|
-
return /* @__PURE__ */
|
|
7912
|
+
return /* @__PURE__ */ jsx256(Paragraph, { children: tSubmittedTitle });
|
|
7893
7913
|
};
|
|
7894
7914
|
var texts12 = createTexts({
|
|
7895
7915
|
ratingQuestion: {
|
|
@@ -7934,13 +7954,13 @@ var texts12 = createTexts({
|
|
|
7934
7954
|
var container = "Fieldset_container";
|
|
7935
7955
|
|
|
7936
7956
|
// src/components/Fieldset/Fieldset.tsx
|
|
7937
|
-
import { jsx as
|
|
7957
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
7938
7958
|
var Fieldset = ({
|
|
7939
7959
|
id,
|
|
7940
7960
|
className,
|
|
7941
7961
|
htmlProps,
|
|
7942
7962
|
...rest
|
|
7943
|
-
}) => /* @__PURE__ */
|
|
7963
|
+
}) => /* @__PURE__ */ jsx257(
|
|
7944
7964
|
"fieldset",
|
|
7945
7965
|
{
|
|
7946
7966
|
...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
|
|
@@ -7949,27 +7969,27 @@ var Fieldset = ({
|
|
|
7949
7969
|
Fieldset.displayName = "Fieldset";
|
|
7950
7970
|
|
|
7951
7971
|
// src/components/Fieldset/FieldsetGroup.tsx
|
|
7952
|
-
import { jsx as
|
|
7972
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
7953
7973
|
var FieldsetGroup = ({
|
|
7954
7974
|
id,
|
|
7955
7975
|
className,
|
|
7956
7976
|
htmlProps,
|
|
7957
7977
|
...rest
|
|
7958
|
-
}) => /* @__PURE__ */
|
|
7978
|
+
}) => /* @__PURE__ */ jsx258(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
|
|
7959
7979
|
FieldsetGroup.displayName = "FieldsetGroup";
|
|
7960
7980
|
|
|
7961
7981
|
// src/components/FileUploader/FileUploader.tsx
|
|
7962
|
-
import { useId as
|
|
7982
|
+
import { useId as useId15 } from "react";
|
|
7963
7983
|
|
|
7964
7984
|
// src/components/FileUploader/ErrorList.tsx
|
|
7965
|
-
import { jsx as
|
|
7985
|
+
import { jsx as jsx259 } from "react/jsx-runtime";
|
|
7966
7986
|
var ErrorList = (props) => {
|
|
7967
7987
|
const { errors } = props;
|
|
7968
7988
|
if (errors.length < 1) {
|
|
7969
7989
|
return null;
|
|
7970
7990
|
}
|
|
7971
7991
|
if (errors.length === 1) {
|
|
7972
|
-
return /* @__PURE__ */
|
|
7992
|
+
return /* @__PURE__ */ jsx259(
|
|
7973
7993
|
InputMessage,
|
|
7974
7994
|
{
|
|
7975
7995
|
id: errors[0].id,
|
|
@@ -7978,8 +7998,8 @@ var ErrorList = (props) => {
|
|
|
7978
7998
|
}
|
|
7979
7999
|
);
|
|
7980
8000
|
}
|
|
7981
|
-
return /* @__PURE__ */
|
|
7982
|
-
return /* @__PURE__ */
|
|
8001
|
+
return /* @__PURE__ */ jsx259(StylelessList, { children: errors.map(({ id, message }) => {
|
|
8002
|
+
return /* @__PURE__ */ jsx259("li", { children: /* @__PURE__ */ jsx259(
|
|
7983
8003
|
InputMessage,
|
|
7984
8004
|
{
|
|
7985
8005
|
id,
|
|
@@ -8004,7 +8024,7 @@ var FileUploader_default = {
|
|
|
8004
8024
|
};
|
|
8005
8025
|
|
|
8006
8026
|
// src/components/FileUploader/File.tsx
|
|
8007
|
-
import { Fragment as Fragment7, jsx as
|
|
8027
|
+
import { Fragment as Fragment7, jsx as jsx260, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
8008
8028
|
var File = (props) => {
|
|
8009
8029
|
const { t } = useTranslation();
|
|
8010
8030
|
const {
|
|
@@ -8035,7 +8055,7 @@ var File = (props) => {
|
|
|
8035
8055
|
background: inactive ? "surface-field-disabled" : "surface-subtle",
|
|
8036
8056
|
className: cn(!isValid && FileUploader_default["file--invalid"]),
|
|
8037
8057
|
children: [
|
|
8038
|
-
/* @__PURE__ */
|
|
8058
|
+
/* @__PURE__ */ jsx260(
|
|
8039
8059
|
Typography,
|
|
8040
8060
|
{
|
|
8041
8061
|
as: "span",
|
|
@@ -8045,14 +8065,14 @@ var File = (props) => {
|
|
|
8045
8065
|
}
|
|
8046
8066
|
),
|
|
8047
8067
|
!inactive && /* @__PURE__ */ jsxs58(Fragment7, { children: [
|
|
8048
|
-
/* @__PURE__ */
|
|
8068
|
+
/* @__PURE__ */ jsx260(
|
|
8049
8069
|
Icon,
|
|
8050
8070
|
{
|
|
8051
8071
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
8052
8072
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
8053
8073
|
}
|
|
8054
8074
|
),
|
|
8055
|
-
/* @__PURE__ */
|
|
8075
|
+
/* @__PURE__ */ jsx260(
|
|
8056
8076
|
Button,
|
|
8057
8077
|
{
|
|
8058
8078
|
size: "small",
|
|
@@ -8074,7 +8094,7 @@ var File = (props) => {
|
|
|
8074
8094
|
]
|
|
8075
8095
|
}
|
|
8076
8096
|
),
|
|
8077
|
-
/* @__PURE__ */
|
|
8097
|
+
/* @__PURE__ */ jsx260(ErrorList, { errors: errorsList })
|
|
8078
8098
|
] });
|
|
8079
8099
|
};
|
|
8080
8100
|
var texts13 = createTexts({
|
|
@@ -8401,7 +8421,7 @@ var texts14 = createTexts({
|
|
|
8401
8421
|
});
|
|
8402
8422
|
|
|
8403
8423
|
// src/components/FileUploader/FileUploader.tsx
|
|
8404
|
-
import { jsx as
|
|
8424
|
+
import { jsx as jsx261, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8405
8425
|
var FileUploader = (props) => {
|
|
8406
8426
|
const {
|
|
8407
8427
|
id,
|
|
@@ -8428,7 +8448,7 @@ var FileUploader = (props) => {
|
|
|
8428
8448
|
} = props;
|
|
8429
8449
|
const { t } = useTranslation();
|
|
8430
8450
|
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts15.dragAndDropOr);
|
|
8431
|
-
const generatedId =
|
|
8451
|
+
const generatedId = useId15();
|
|
8432
8452
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8433
8453
|
const {
|
|
8434
8454
|
state: { files: stateFiles, isDragActive, rootErrors },
|
|
@@ -8458,7 +8478,7 @@ var FileUploader = (props) => {
|
|
|
8458
8478
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8459
8479
|
const fileListId = derivativeIdGenerator(uniqueId, "file-list");
|
|
8460
8480
|
const fileListNameId = derivativeIdGenerator(uniqueId, "file-list-name");
|
|
8461
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
8481
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx261(
|
|
8462
8482
|
File,
|
|
8463
8483
|
{
|
|
8464
8484
|
parentId: uniqueId,
|
|
@@ -8475,7 +8495,7 @@ var FileUploader = (props) => {
|
|
|
8475
8495
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8476
8496
|
message: e
|
|
8477
8497
|
}));
|
|
8478
|
-
const button = /* @__PURE__ */
|
|
8498
|
+
const button = /* @__PURE__ */ jsx261(
|
|
8479
8499
|
Button,
|
|
8480
8500
|
{
|
|
8481
8501
|
...getButtonProps(),
|
|
@@ -8495,7 +8515,7 @@ var FileUploader = (props) => {
|
|
|
8495
8515
|
children: btnLabel
|
|
8496
8516
|
}
|
|
8497
8517
|
);
|
|
8498
|
-
const input = /* @__PURE__ */
|
|
8518
|
+
const input = /* @__PURE__ */ jsx261(
|
|
8499
8519
|
HiddenInput,
|
|
8500
8520
|
{
|
|
8501
8521
|
...getInputProps(),
|
|
@@ -8521,7 +8541,7 @@ var FileUploader = (props) => {
|
|
|
8521
8541
|
readOnly,
|
|
8522
8542
|
afterLabelContent
|
|
8523
8543
|
}),
|
|
8524
|
-
hasTip && /* @__PURE__ */
|
|
8544
|
+
hasTip && /* @__PURE__ */ jsx261(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8525
8545
|
inactive ? input : withDragAndDrop ? /* @__PURE__ */ jsxs59(
|
|
8526
8546
|
VStack,
|
|
8527
8547
|
{
|
|
@@ -8536,7 +8556,7 @@ var FileUploader = (props) => {
|
|
|
8536
8556
|
children: [
|
|
8537
8557
|
input,
|
|
8538
8558
|
tDropAreaLabel,
|
|
8539
|
-
/* @__PURE__ */
|
|
8559
|
+
/* @__PURE__ */ jsx261(VisuallyHidden, { children: t(texts15.uploadFileWithButton) }),
|
|
8540
8560
|
button
|
|
8541
8561
|
]
|
|
8542
8562
|
}
|
|
@@ -8544,7 +8564,7 @@ var FileUploader = (props) => {
|
|
|
8544
8564
|
input,
|
|
8545
8565
|
button
|
|
8546
8566
|
] }),
|
|
8547
|
-
/* @__PURE__ */
|
|
8567
|
+
/* @__PURE__ */ jsx261(ErrorList, { errors: rootErrorsList }),
|
|
8548
8568
|
!hideFileList && /* @__PURE__ */ jsxs59(
|
|
8549
8569
|
"div",
|
|
8550
8570
|
{
|
|
@@ -8554,8 +8574,8 @@ var FileUploader = (props) => {
|
|
|
8554
8574
|
readOnly && FileUploader_default["readonly--file-list"]
|
|
8555
8575
|
),
|
|
8556
8576
|
children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8558
|
-
inactive && fileListElements.length === 0 ? /* @__PURE__ */
|
|
8577
|
+
/* @__PURE__ */ jsx261(VisuallyHidden, { id: fileListNameId, children: t(texts15.uploadedFiles) }),
|
|
8578
|
+
inactive && fileListElements.length === 0 ? /* @__PURE__ */ jsx261(
|
|
8559
8579
|
Typography,
|
|
8560
8580
|
{
|
|
8561
8581
|
italic: true,
|
|
@@ -8563,7 +8583,7 @@ var FileUploader = (props) => {
|
|
|
8563
8583
|
color: disabled ? "text-subtle" : "text-medium",
|
|
8564
8584
|
children: t(texts15.noFiles)
|
|
8565
8585
|
}
|
|
8566
|
-
) : /* @__PURE__ */
|
|
8586
|
+
) : /* @__PURE__ */ jsx261(StylelessList, { "aria-labelledby": fileListNameId, children: fileListElements })
|
|
8567
8587
|
]
|
|
8568
8588
|
}
|
|
8569
8589
|
)
|
|
@@ -8610,25 +8630,25 @@ var Footer_default = {
|
|
|
8610
8630
|
};
|
|
8611
8631
|
|
|
8612
8632
|
// src/components/Footer/Footer.tsx
|
|
8613
|
-
import { jsx as
|
|
8614
|
-
var Footer = ({ className, ...rest }) => /* @__PURE__ */
|
|
8633
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
8634
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx262(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
|
|
8615
8635
|
|
|
8616
8636
|
// src/components/Footer/FooterListHeader.tsx
|
|
8617
|
-
import { jsx as
|
|
8618
|
-
var FooterListHeader = (props) => /* @__PURE__ */
|
|
8637
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
8638
|
+
var FooterListHeader = (props) => /* @__PURE__ */ jsx263(Heading, { level: 2, typographyType: "headingSmall", ...props });
|
|
8619
8639
|
|
|
8620
8640
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
8621
8641
|
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
8642
|
|
|
8623
8643
|
// src/components/Footer/FooterLogo.tsx
|
|
8624
|
-
import { jsx as
|
|
8644
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
8625
8645
|
var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
8626
|
-
return /* @__PURE__ */
|
|
8646
|
+
return /* @__PURE__ */ jsx264(
|
|
8627
8647
|
Box,
|
|
8628
8648
|
{
|
|
8629
8649
|
hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
|
|
8630
8650
|
width: "fit-content",
|
|
8631
|
-
children: /* @__PURE__ */
|
|
8651
|
+
children: /* @__PURE__ */ jsx264(
|
|
8632
8652
|
"img",
|
|
8633
8653
|
{
|
|
8634
8654
|
height: 80,
|
|
@@ -8643,33 +8663,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
|
8643
8663
|
};
|
|
8644
8664
|
|
|
8645
8665
|
// src/components/Footer/FooterList.tsx
|
|
8646
|
-
import { jsx as
|
|
8647
|
-
var FooterList = ({ className, ...rest }) => /* @__PURE__ */
|
|
8666
|
+
import { jsx as jsx265 } from "react/jsx-runtime";
|
|
8667
|
+
var FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx265(StylelessList, { className: cn(className, Footer_default.list), ...rest });
|
|
8648
8668
|
|
|
8649
8669
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8650
|
-
import { jsx as
|
|
8670
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
8651
8671
|
var FooterSocialsList = ({
|
|
8652
8672
|
className,
|
|
8653
8673
|
...rest
|
|
8654
|
-
}) => /* @__PURE__ */
|
|
8674
|
+
}) => /* @__PURE__ */ jsx266(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
|
|
8655
8675
|
|
|
8656
8676
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8657
|
-
import { jsx as
|
|
8677
|
+
import { jsx as jsx267 } from "react/jsx-runtime";
|
|
8658
8678
|
var FooterSocialsGroup = ({
|
|
8659
8679
|
className,
|
|
8660
8680
|
...rest
|
|
8661
|
-
}) => /* @__PURE__ */
|
|
8681
|
+
}) => /* @__PURE__ */ jsx267("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
|
|
8662
8682
|
|
|
8663
8683
|
// src/components/Footer/FooterListGroup.tsx
|
|
8664
|
-
import { jsx as
|
|
8684
|
+
import { jsx as jsx268 } from "react/jsx-runtime";
|
|
8665
8685
|
var FooterListGroup = ({
|
|
8666
8686
|
className,
|
|
8667
8687
|
...rest
|
|
8668
|
-
}) => /* @__PURE__ */
|
|
8688
|
+
}) => /* @__PURE__ */ jsx268("div", { className: cn(className, Footer_default["list-group"]), ...rest });
|
|
8669
8689
|
|
|
8670
8690
|
// src/components/Footer/FooterLeft.tsx
|
|
8671
|
-
import { jsx as
|
|
8672
|
-
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */
|
|
8691
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
8692
|
+
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx269("div", { className: cn(className, Footer_default["left"]), ...rest });
|
|
8673
8693
|
|
|
8674
8694
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8675
8695
|
import { useState as useState17 } from "react";
|
|
@@ -8686,7 +8706,7 @@ var GlobalMessage_default = {
|
|
|
8686
8706
|
};
|
|
8687
8707
|
|
|
8688
8708
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8689
|
-
import { jsx as
|
|
8709
|
+
import { jsx as jsx270, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8690
8710
|
var icons = {
|
|
8691
8711
|
info: InfoIcon,
|
|
8692
8712
|
danger: ErrorIcon,
|
|
@@ -8725,12 +8745,12 @@ var GlobalMessage = ({
|
|
|
8725
8745
|
{
|
|
8726
8746
|
className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
|
|
8727
8747
|
children: [
|
|
8728
|
-
/* @__PURE__ */
|
|
8729
|
-
children != null ? children : /* @__PURE__ */
|
|
8748
|
+
/* @__PURE__ */ jsx270(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8749
|
+
children != null ? children : /* @__PURE__ */ jsx270("span", { children: message })
|
|
8730
8750
|
]
|
|
8731
8751
|
}
|
|
8732
8752
|
),
|
|
8733
|
-
closable && /* @__PURE__ */
|
|
8753
|
+
closable && /* @__PURE__ */ jsx270(
|
|
8734
8754
|
Button,
|
|
8735
8755
|
{
|
|
8736
8756
|
icon: CloseIcon,
|
|
@@ -8755,14 +8775,14 @@ var InlineButton_default = {
|
|
|
8755
8775
|
};
|
|
8756
8776
|
|
|
8757
8777
|
// src/components/InlineButton/InlineButton.tsx
|
|
8758
|
-
import { jsx as
|
|
8778
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
8759
8779
|
var InlineButton = ({
|
|
8760
8780
|
className,
|
|
8761
8781
|
color,
|
|
8762
8782
|
icon,
|
|
8763
8783
|
children,
|
|
8764
8784
|
...rest
|
|
8765
|
-
}) => /* @__PURE__ */
|
|
8785
|
+
}) => /* @__PURE__ */ jsx271(
|
|
8766
8786
|
StylelessButton,
|
|
8767
8787
|
{
|
|
8768
8788
|
className: cn(
|
|
@@ -8773,7 +8793,7 @@ var InlineButton = ({
|
|
|
8773
8793
|
getColorCn(color)
|
|
8774
8794
|
),
|
|
8775
8795
|
...rest,
|
|
8776
|
-
children: icon ? /* @__PURE__ */
|
|
8796
|
+
children: icon ? /* @__PURE__ */ jsx271(Icon, { icon, iconSize: "inherit" }) : children
|
|
8777
8797
|
}
|
|
8778
8798
|
);
|
|
8779
8799
|
|
|
@@ -8786,7 +8806,7 @@ import {
|
|
|
8786
8806
|
useContext as useContext16,
|
|
8787
8807
|
useState as useState18
|
|
8788
8808
|
} from "react";
|
|
8789
|
-
import { jsx as
|
|
8809
|
+
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
8790
8810
|
var InlineEditContext = createContext12(
|
|
8791
8811
|
{}
|
|
8792
8812
|
);
|
|
@@ -8830,7 +8850,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8830
8850
|
useOnKeyDown(["Enter"], () => onExitHandler());
|
|
8831
8851
|
useOnKeyDown(["Escape"], () => onExitHandler());
|
|
8832
8852
|
useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
|
|
8833
|
-
return /* @__PURE__ */
|
|
8853
|
+
return /* @__PURE__ */ jsx272(
|
|
8834
8854
|
InlineEditContext,
|
|
8835
8855
|
{
|
|
8836
8856
|
value: {
|
|
@@ -8848,7 +8868,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8848
8868
|
InlineEditContextProvider.displayName = "InlineEditContextProvider";
|
|
8849
8869
|
|
|
8850
8870
|
// src/components/InlineEdit/InlineField.tsx
|
|
8851
|
-
import { useId as
|
|
8871
|
+
import { useId as useId16, useRef as useRef24 } from "react";
|
|
8852
8872
|
|
|
8853
8873
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8854
8874
|
var InlineEdit_default = {
|
|
@@ -8934,7 +8954,7 @@ function createClearChangeEvent(elementId) {
|
|
|
8934
8954
|
}
|
|
8935
8955
|
|
|
8936
8956
|
// src/components/InlineEdit/InlineField.tsx
|
|
8937
|
-
import { Fragment as Fragment8, jsx as
|
|
8957
|
+
import { Fragment as Fragment8, jsx as jsx273, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8938
8958
|
function InlineField(props) {
|
|
8939
8959
|
const {
|
|
8940
8960
|
elementType,
|
|
@@ -8950,7 +8970,7 @@ function InlineField(props) {
|
|
|
8950
8970
|
} = props;
|
|
8951
8971
|
const { onBlur, onChange, onFocus, isEditing, value, emptiable } = useInlineEditContext();
|
|
8952
8972
|
const { t } = useTranslation();
|
|
8953
|
-
const generatedId =
|
|
8973
|
+
const generatedId = useId16();
|
|
8954
8974
|
const uniqueId = id != null ? id : `${generatedId}-InlineEdit`;
|
|
8955
8975
|
const hasErrorMessage = !!errorMessage;
|
|
8956
8976
|
const hasErrorState = !!error || hasErrorMessage;
|
|
@@ -8980,7 +9000,7 @@ function InlineField(props) {
|
|
|
8980
9000
|
const cnArgs = [hasErrorState, !isEditing && !hideIcon];
|
|
8981
9001
|
const iconSize = "small";
|
|
8982
9002
|
function makeIcon(icon, className2) {
|
|
8983
|
-
return /* @__PURE__ */
|
|
9003
|
+
return /* @__PURE__ */ jsx273(
|
|
8984
9004
|
Icon,
|
|
8985
9005
|
{
|
|
8986
9006
|
iconSize,
|
|
@@ -8995,7 +9015,7 @@ function InlineField(props) {
|
|
|
8995
9015
|
const renderElement = () => {
|
|
8996
9016
|
switch (elementType) {
|
|
8997
9017
|
case "input":
|
|
8998
|
-
return /* @__PURE__ */
|
|
9018
|
+
return /* @__PURE__ */ jsx273(
|
|
8999
9019
|
"input",
|
|
9000
9020
|
{
|
|
9001
9021
|
...rest,
|
|
@@ -9005,7 +9025,7 @@ function InlineField(props) {
|
|
|
9005
9025
|
}
|
|
9006
9026
|
);
|
|
9007
9027
|
case "textarea":
|
|
9008
|
-
return /* @__PURE__ */
|
|
9028
|
+
return /* @__PURE__ */ jsx273(
|
|
9009
9029
|
"textarea",
|
|
9010
9030
|
{
|
|
9011
9031
|
...rest,
|
|
@@ -9016,7 +9036,7 @@ function InlineField(props) {
|
|
|
9016
9036
|
);
|
|
9017
9037
|
case "select":
|
|
9018
9038
|
return /* @__PURE__ */ jsxs62(Fragment8, { children: [
|
|
9019
|
-
/* @__PURE__ */
|
|
9039
|
+
/* @__PURE__ */ jsx273(
|
|
9020
9040
|
"select",
|
|
9021
9041
|
{
|
|
9022
9042
|
...rest,
|
|
@@ -9025,7 +9045,7 @@ function InlineField(props) {
|
|
|
9025
9045
|
className: cn(className, ...inlineSelectCns(...cnArgs, hasValue))
|
|
9026
9046
|
}
|
|
9027
9047
|
),
|
|
9028
|
-
hasValue && emptiable && /* @__PURE__ */
|
|
9048
|
+
hasValue && emptiable && /* @__PURE__ */ jsx273(
|
|
9029
9049
|
ClearButton,
|
|
9030
9050
|
{
|
|
9031
9051
|
"aria-label": t(commonTexts.clearSelect),
|
|
@@ -9051,7 +9071,7 @@ function InlineField(props) {
|
|
|
9051
9071
|
}
|
|
9052
9072
|
|
|
9053
9073
|
// src/components/InlineEdit/InlineEditTextArea/InlineEditTextArea.tsx
|
|
9054
|
-
import { jsx as
|
|
9074
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
9055
9075
|
var InlineEditTextArea = ({
|
|
9056
9076
|
onSetValue,
|
|
9057
9077
|
emptiable,
|
|
@@ -9064,7 +9084,7 @@ var InlineEditTextArea = ({
|
|
|
9064
9084
|
}) => {
|
|
9065
9085
|
const textareaRef = useRef25(null);
|
|
9066
9086
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
9067
|
-
return /* @__PURE__ */
|
|
9087
|
+
return /* @__PURE__ */ jsx274(
|
|
9068
9088
|
InlineEditContextProvider,
|
|
9069
9089
|
{
|
|
9070
9090
|
onSetValue,
|
|
@@ -9074,14 +9094,14 @@ var InlineEditTextArea = ({
|
|
|
9074
9094
|
onFocus,
|
|
9075
9095
|
onChange,
|
|
9076
9096
|
onBlur,
|
|
9077
|
-
children: /* @__PURE__ */
|
|
9097
|
+
children: /* @__PURE__ */ jsx274(InlineField, { elementType: "textarea", ...rest, ref: combinedRef })
|
|
9078
9098
|
}
|
|
9079
9099
|
);
|
|
9080
9100
|
};
|
|
9081
9101
|
|
|
9082
9102
|
// src/components/InlineEdit/InlineEditInput/InlineEditInput.tsx
|
|
9083
9103
|
import { useRef as useRef26 } from "react";
|
|
9084
|
-
import { jsx as
|
|
9104
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
9085
9105
|
var InlineEditInput = ({
|
|
9086
9106
|
onSetValue,
|
|
9087
9107
|
emptiable,
|
|
@@ -9094,7 +9114,7 @@ var InlineEditInput = ({
|
|
|
9094
9114
|
}) => {
|
|
9095
9115
|
const inputRef = useRef26(null);
|
|
9096
9116
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
9097
|
-
return /* @__PURE__ */
|
|
9117
|
+
return /* @__PURE__ */ jsx275(
|
|
9098
9118
|
InlineEditContextProvider,
|
|
9099
9119
|
{
|
|
9100
9120
|
onSetValue,
|
|
@@ -9104,14 +9124,14 @@ var InlineEditInput = ({
|
|
|
9104
9124
|
onFocus,
|
|
9105
9125
|
onChange,
|
|
9106
9126
|
onBlur,
|
|
9107
|
-
children: /* @__PURE__ */
|
|
9127
|
+
children: /* @__PURE__ */ jsx275(InlineField, { elementType: "input", ...rest, ref: combinedRef })
|
|
9108
9128
|
}
|
|
9109
9129
|
);
|
|
9110
9130
|
};
|
|
9111
9131
|
|
|
9112
9132
|
// src/components/InlineEdit/InlineEditSelect/InlineEditSelect.tsx
|
|
9113
9133
|
import { useRef as useRef27 } from "react";
|
|
9114
|
-
import { jsx as
|
|
9134
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
9115
9135
|
var InlineEditSelect = ({
|
|
9116
9136
|
onSetValue,
|
|
9117
9137
|
emptiable,
|
|
@@ -9124,7 +9144,7 @@ var InlineEditSelect = ({
|
|
|
9124
9144
|
}) => {
|
|
9125
9145
|
const inputRef = useRef27(null);
|
|
9126
9146
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
9127
|
-
return /* @__PURE__ */
|
|
9147
|
+
return /* @__PURE__ */ jsx276(
|
|
9128
9148
|
InlineEditContextProvider,
|
|
9129
9149
|
{
|
|
9130
9150
|
onSetValue,
|
|
@@ -9134,7 +9154,7 @@ var InlineEditSelect = ({
|
|
|
9134
9154
|
onFocus,
|
|
9135
9155
|
onChange,
|
|
9136
9156
|
onBlur,
|
|
9137
|
-
children: /* @__PURE__ */
|
|
9157
|
+
children: /* @__PURE__ */ jsx276(InlineField, { elementType: "select", ...rest, ref: combinedRef })
|
|
9138
9158
|
}
|
|
9139
9159
|
);
|
|
9140
9160
|
};
|
|
@@ -9156,8 +9176,8 @@ var InternalHeader_default = {
|
|
|
9156
9176
|
};
|
|
9157
9177
|
|
|
9158
9178
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
9159
|
-
import { jsx as
|
|
9160
|
-
var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */
|
|
9179
|
+
import { jsx as jsx277 } from "react/jsx-runtime";
|
|
9180
|
+
var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx277(
|
|
9161
9181
|
"a",
|
|
9162
9182
|
{
|
|
9163
9183
|
...rest,
|
|
@@ -9172,7 +9192,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx276(
|
|
|
9172
9192
|
);
|
|
9173
9193
|
|
|
9174
9194
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
9175
|
-
import { jsx as
|
|
9195
|
+
import { jsx as jsx278, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9176
9196
|
import { createElement as createElement2 } from "react";
|
|
9177
9197
|
var InternalHeader = (props) => {
|
|
9178
9198
|
const {
|
|
@@ -9202,7 +9222,7 @@ var InternalHeader = (props) => {
|
|
|
9202
9222
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
9203
9223
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
9204
9224
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
9205
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
9225
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx278("nav", { "aria-label": t(texts17.siteNavigation), children: /* @__PURE__ */ jsx278(
|
|
9206
9226
|
ShowHide,
|
|
9207
9227
|
{
|
|
9208
9228
|
as: StylelessList,
|
|
@@ -9211,7 +9231,7 @@ var InternalHeader = (props) => {
|
|
|
9211
9231
|
children: navItems.map((item, i) => {
|
|
9212
9232
|
const { href, ...rest2 } = item;
|
|
9213
9233
|
const isCurrent = href === currentPage;
|
|
9214
|
-
return /* @__PURE__ */
|
|
9234
|
+
return /* @__PURE__ */ jsx278("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx278(
|
|
9215
9235
|
NavigationItem,
|
|
9216
9236
|
{
|
|
9217
9237
|
href,
|
|
@@ -9243,7 +9263,7 @@ var InternalHeader = (props) => {
|
|
|
9243
9263
|
rest
|
|
9244
9264
|
),
|
|
9245
9265
|
children: [
|
|
9246
|
-
/* @__PURE__ */
|
|
9266
|
+
/* @__PURE__ */ jsx278(Typography, { typographyType: "headingSmall", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx278(
|
|
9247
9267
|
"a",
|
|
9248
9268
|
{
|
|
9249
9269
|
href: applicationHref,
|
|
@@ -9252,16 +9272,16 @@ var InternalHeader = (props) => {
|
|
|
9252
9272
|
children: applicationName
|
|
9253
9273
|
}
|
|
9254
9274
|
) : applicationName }),
|
|
9255
|
-
/* @__PURE__ */
|
|
9256
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
9275
|
+
/* @__PURE__ */ jsx278(Typography, { typographyType: "bodyMedium", as: "span", children: applicationDesc }),
|
|
9276
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx278("div", { className: InternalHeader_default["bar-separator"] }),
|
|
9257
9277
|
navigation,
|
|
9258
|
-
hasContextMenu && /* @__PURE__ */
|
|
9278
|
+
hasContextMenu && /* @__PURE__ */ jsx278(
|
|
9259
9279
|
ShowHide,
|
|
9260
9280
|
{
|
|
9261
9281
|
showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
9262
9282
|
className: cn(InternalHeader_default["context-menu-group"]),
|
|
9263
9283
|
children: /* @__PURE__ */ jsxs63(OverflowMenuGroup, { children: [
|
|
9264
|
-
/* @__PURE__ */
|
|
9284
|
+
/* @__PURE__ */ jsx278(
|
|
9265
9285
|
Button,
|
|
9266
9286
|
{
|
|
9267
9287
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
@@ -9270,24 +9290,24 @@ var InternalHeader = (props) => {
|
|
|
9270
9290
|
}
|
|
9271
9291
|
),
|
|
9272
9292
|
/* @__PURE__ */ jsxs63(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
9273
|
-
user && /* @__PURE__ */
|
|
9274
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
9293
|
+
user && /* @__PURE__ */ jsx278(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx278(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx278(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
9294
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx278(
|
|
9275
9295
|
ShowHide,
|
|
9276
9296
|
{
|
|
9277
9297
|
as: "nav",
|
|
9278
9298
|
"aria-label": t(texts17.siteNavigation),
|
|
9279
9299
|
showBelow: smallScreenBreakpoint,
|
|
9280
|
-
children: /* @__PURE__ */
|
|
9300
|
+
children: /* @__PURE__ */ jsx278(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement2(OverflowMenuLink, { ...item, key: `nav-${i}` })) })
|
|
9281
9301
|
}
|
|
9282
9302
|
),
|
|
9283
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
9303
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx278(
|
|
9284
9304
|
ShowHide,
|
|
9285
9305
|
{
|
|
9286
9306
|
as: OverflowMenuDivider,
|
|
9287
9307
|
showBelow: smallScreenBreakpoint
|
|
9288
9308
|
}
|
|
9289
9309
|
),
|
|
9290
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
9310
|
+
hasContextMenuElements && /* @__PURE__ */ jsx278(OverflowMenuList, { children: contextMenuItems.map((item, i) => {
|
|
9291
9311
|
return item.href ? /* @__PURE__ */ createElement2(
|
|
9292
9312
|
OverflowMenuLink,
|
|
9293
9313
|
{
|
|
@@ -9336,7 +9356,7 @@ var List_default = {
|
|
|
9336
9356
|
};
|
|
9337
9357
|
|
|
9338
9358
|
// src/components/List/List.tsx
|
|
9339
|
-
import { jsx as
|
|
9359
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
9340
9360
|
var List = ({
|
|
9341
9361
|
listType = "unordered",
|
|
9342
9362
|
typographyType = "inherit",
|
|
@@ -9347,7 +9367,7 @@ var List = ({
|
|
|
9347
9367
|
...rest
|
|
9348
9368
|
}) => {
|
|
9349
9369
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
9350
|
-
return /* @__PURE__ */
|
|
9370
|
+
return /* @__PURE__ */ jsx279(
|
|
9351
9371
|
List2,
|
|
9352
9372
|
{
|
|
9353
9373
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9363,8 +9383,8 @@ var List = ({
|
|
|
9363
9383
|
List.displayName = "List";
|
|
9364
9384
|
|
|
9365
9385
|
// src/components/List/ListItem.tsx
|
|
9366
|
-
import { jsx as
|
|
9367
|
-
var ListItem = ({ className, ...rest }) => /* @__PURE__ */
|
|
9386
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
9387
|
+
var ListItem = ({ className, ...rest }) => /* @__PURE__ */ jsx280("li", { ...rest, className: cn(className, List_default.li) });
|
|
9368
9388
|
ListItem.displayName = "ListItem";
|
|
9369
9389
|
|
|
9370
9390
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
@@ -9389,7 +9409,7 @@ var LocalMessage_default = {
|
|
|
9389
9409
|
};
|
|
9390
9410
|
|
|
9391
9411
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9392
|
-
import { Fragment as Fragment9, jsx as
|
|
9412
|
+
import { Fragment as Fragment9, jsx as jsx281, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9393
9413
|
var icons2 = {
|
|
9394
9414
|
info: InfoIcon,
|
|
9395
9415
|
danger: ErrorIcon,
|
|
@@ -9413,7 +9433,7 @@ var LocalMessage = ({
|
|
|
9413
9433
|
const { t } = useTranslation();
|
|
9414
9434
|
const [isClosed, setClosed] = useState20(false);
|
|
9415
9435
|
if (isClosed) {
|
|
9416
|
-
return /* @__PURE__ */
|
|
9436
|
+
return /* @__PURE__ */ jsx281(Fragment9, {});
|
|
9417
9437
|
}
|
|
9418
9438
|
return /* @__PURE__ */ jsxs64(
|
|
9419
9439
|
Box,
|
|
@@ -9436,15 +9456,15 @@ var LocalMessage = ({
|
|
|
9436
9456
|
padding: "x0.75 x0.75 x0.75 x0.5",
|
|
9437
9457
|
gap: "x0.5",
|
|
9438
9458
|
children: [
|
|
9439
|
-
/* @__PURE__ */
|
|
9459
|
+
/* @__PURE__ */ jsx281(
|
|
9440
9460
|
Icon,
|
|
9441
9461
|
{
|
|
9442
9462
|
icon: icons2[purpose],
|
|
9443
9463
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
9444
9464
|
}
|
|
9445
9465
|
),
|
|
9446
|
-
/* @__PURE__ */
|
|
9447
|
-
closable && /* @__PURE__ */
|
|
9466
|
+
/* @__PURE__ */ jsx281("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx281("span", { children: message }) }),
|
|
9467
|
+
closable && /* @__PURE__ */ jsx281(
|
|
9448
9468
|
Button,
|
|
9449
9469
|
{
|
|
9450
9470
|
icon: CloseIcon,
|
|
@@ -9468,7 +9488,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
9468
9488
|
import {
|
|
9469
9489
|
useContext as useContext17,
|
|
9470
9490
|
useEffect as useEffect24,
|
|
9471
|
-
useId as
|
|
9491
|
+
useId as useId17,
|
|
9472
9492
|
useRef as useRef28
|
|
9473
9493
|
} from "react";
|
|
9474
9494
|
import { createPortal as createPortal3 } from "react-dom";
|
|
@@ -9484,7 +9504,7 @@ var Modal_default = {
|
|
|
9484
9504
|
};
|
|
9485
9505
|
|
|
9486
9506
|
// src/components/Modal/Modal.tsx
|
|
9487
|
-
import { jsx as
|
|
9507
|
+
import { jsx as jsx282, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9488
9508
|
var Modal = ({
|
|
9489
9509
|
isOpen = false,
|
|
9490
9510
|
parentElement,
|
|
@@ -9500,7 +9520,7 @@ var Modal = ({
|
|
|
9500
9520
|
ref,
|
|
9501
9521
|
...rest
|
|
9502
9522
|
}) => {
|
|
9503
|
-
const generatedId =
|
|
9523
|
+
const generatedId = useId17();
|
|
9504
9524
|
const modalId = id != null ? id : `${generatedId}-modal`;
|
|
9505
9525
|
const headerId = `${modalId}-header`;
|
|
9506
9526
|
const modalRef = useFocusTrap(isOpen, initialFocusRef);
|
|
@@ -9535,7 +9555,7 @@ var Modal = ({
|
|
|
9535
9555
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9536
9556
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9537
9557
|
return (isOpen || hasTransitionedIn) && portalTarget ? createPortal3(
|
|
9538
|
-
/* @__PURE__ */
|
|
9558
|
+
/* @__PURE__ */ jsx282(
|
|
9539
9559
|
Backdrop,
|
|
9540
9560
|
{
|
|
9541
9561
|
zIndex: "modal",
|
|
@@ -9579,8 +9599,8 @@ var Modal = ({
|
|
|
9579
9599
|
width: "100%",
|
|
9580
9600
|
className: Modal_default["header-container"],
|
|
9581
9601
|
children: [
|
|
9582
|
-
!!header && /* @__PURE__ */
|
|
9583
|
-
onClose && /* @__PURE__ */
|
|
9602
|
+
!!header && /* @__PURE__ */ jsx282("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx282(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
9603
|
+
onClose && /* @__PURE__ */ jsx282(
|
|
9584
9604
|
Button,
|
|
9585
9605
|
{
|
|
9586
9606
|
size: "small",
|
|
@@ -9594,7 +9614,7 @@ var Modal = ({
|
|
|
9594
9614
|
]
|
|
9595
9615
|
}
|
|
9596
9616
|
),
|
|
9597
|
-
/* @__PURE__ */
|
|
9617
|
+
/* @__PURE__ */ jsx282(Box, { display: "grid", gap: "x1", children })
|
|
9598
9618
|
]
|
|
9599
9619
|
}
|
|
9600
9620
|
)
|
|
@@ -9606,7 +9626,7 @@ var Modal = ({
|
|
|
9606
9626
|
Modal.displayName = "Modal";
|
|
9607
9627
|
|
|
9608
9628
|
// src/components/Modal/ModalBody.tsx
|
|
9609
|
-
import { jsx as
|
|
9629
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
9610
9630
|
var ModalBody = ({
|
|
9611
9631
|
children,
|
|
9612
9632
|
id,
|
|
@@ -9616,7 +9636,7 @@ var ModalBody = ({
|
|
|
9616
9636
|
height,
|
|
9617
9637
|
...rest
|
|
9618
9638
|
}) => {
|
|
9619
|
-
return /* @__PURE__ */
|
|
9639
|
+
return /* @__PURE__ */ jsx283(
|
|
9620
9640
|
"div",
|
|
9621
9641
|
{
|
|
9622
9642
|
...getBaseHTMLProps(
|
|
@@ -9638,8 +9658,8 @@ var ModalBody = ({
|
|
|
9638
9658
|
ModalBody.displayName = "ModalBody";
|
|
9639
9659
|
|
|
9640
9660
|
// src/components/Modal/ModalActions.tsx
|
|
9641
|
-
import { jsx as
|
|
9642
|
-
var ModalActions = (props) => /* @__PURE__ */
|
|
9661
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
9662
|
+
var ModalActions = (props) => /* @__PURE__ */ jsx284(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
|
|
9643
9663
|
ModalActions.displayName = "ModalActions";
|
|
9644
9664
|
|
|
9645
9665
|
// src/components/Pagination/Pagination.tsx
|
|
@@ -9691,7 +9711,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9691
9711
|
import {
|
|
9692
9712
|
useCallback as useCallback7,
|
|
9693
9713
|
useContext as useContext18,
|
|
9694
|
-
useId as
|
|
9714
|
+
useId as useId18
|
|
9695
9715
|
} from "react";
|
|
9696
9716
|
import {
|
|
9697
9717
|
default as ReactSelect
|
|
@@ -9978,7 +9998,7 @@ import React from "react";
|
|
|
9978
9998
|
import {
|
|
9979
9999
|
components
|
|
9980
10000
|
} from "react-select";
|
|
9981
|
-
import { jsx as
|
|
10001
|
+
import { jsx as jsx285, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9982
10002
|
var {
|
|
9983
10003
|
Option,
|
|
9984
10004
|
NoOptionsMessage,
|
|
@@ -10002,29 +10022,29 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
10002
10022
|
var DDSOption = ({
|
|
10003
10023
|
...props
|
|
10004
10024
|
}) => /* @__PURE__ */ jsxs66(Option, { ...props, children: [
|
|
10005
|
-
props.isSelected && /* @__PURE__ */
|
|
10025
|
+
props.isSelected && /* @__PURE__ */ jsx285(Icon, { icon: CheckIcon, iconSize: "small" }),
|
|
10006
10026
|
props.children
|
|
10007
10027
|
] });
|
|
10008
|
-
var CustomOption = (props) => /* @__PURE__ */
|
|
10028
|
+
var CustomOption = (props) => /* @__PURE__ */ jsx285(Option, { ...props, children: React.createElement(props.customElement, props) });
|
|
10009
10029
|
var CustomSingleValue = ({
|
|
10010
10030
|
id,
|
|
10011
10031
|
Element,
|
|
10012
10032
|
...props
|
|
10013
|
-
}) => /* @__PURE__ */
|
|
10014
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
10033
|
+
}) => /* @__PURE__ */ jsx285(SingleValue, { ...props, children: /* @__PURE__ */ jsx285("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx285(Element, { ...props }) : props.children }) });
|
|
10034
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx285(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
10015
10035
|
var DDSClearIndicator = ({
|
|
10016
10036
|
size: size2,
|
|
10017
10037
|
...props
|
|
10018
|
-
}) => /* @__PURE__ */
|
|
10019
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
10038
|
+
}) => /* @__PURE__ */ jsx285(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx285(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
10039
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx285(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx285(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
10020
10040
|
var DDSDropdownIndicator = (props) => {
|
|
10021
10041
|
const { className, componentSize, ...rest } = props;
|
|
10022
|
-
return /* @__PURE__ */
|
|
10042
|
+
return /* @__PURE__ */ jsx285(
|
|
10023
10043
|
DropdownIndicator,
|
|
10024
10044
|
{
|
|
10025
10045
|
...rest,
|
|
10026
10046
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
10027
|
-
children: /* @__PURE__ */
|
|
10047
|
+
children: /* @__PURE__ */ jsx285(
|
|
10028
10048
|
Icon,
|
|
10029
10049
|
{
|
|
10030
10050
|
icon: ChevronDownIcon,
|
|
@@ -10038,7 +10058,7 @@ var DDSInput = ({
|
|
|
10038
10058
|
ariaInvalid,
|
|
10039
10059
|
ariaDescribedby,
|
|
10040
10060
|
...props
|
|
10041
|
-
}) => /* @__PURE__ */
|
|
10061
|
+
}) => /* @__PURE__ */ jsx285(
|
|
10042
10062
|
Input2,
|
|
10043
10063
|
{
|
|
10044
10064
|
...props,
|
|
@@ -10072,7 +10092,7 @@ function DDSControl(props) {
|
|
|
10072
10092
|
readOnly && Select_default["control--readonly"]
|
|
10073
10093
|
),
|
|
10074
10094
|
children: [
|
|
10075
|
-
icon && /* @__PURE__ */
|
|
10095
|
+
icon && /* @__PURE__ */ jsx285(
|
|
10076
10096
|
Icon,
|
|
10077
10097
|
{
|
|
10078
10098
|
icon,
|
|
@@ -10090,7 +10110,7 @@ function DDSControl(props) {
|
|
|
10090
10110
|
}
|
|
10091
10111
|
|
|
10092
10112
|
// src/components/Select/Select.tsx
|
|
10093
|
-
import { jsx as
|
|
10113
|
+
import { jsx as jsx286, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10094
10114
|
function Select({
|
|
10095
10115
|
id,
|
|
10096
10116
|
label,
|
|
@@ -10127,7 +10147,7 @@ function Select({
|
|
|
10127
10147
|
throw new Error("Select must be used within a ThemeProvider");
|
|
10128
10148
|
}
|
|
10129
10149
|
const portalTarget = menuPortalTarget != null ? menuPortalTarget : themeContext == null ? void 0 : themeContext.el;
|
|
10130
|
-
const generatedId =
|
|
10150
|
+
const generatedId = useId18();
|
|
10131
10151
|
const uniqueId = id != null ? id : `${generatedId}-select`;
|
|
10132
10152
|
const singleValueId = !isMulti ? `${uniqueId}-singleValue` : void 0;
|
|
10133
10153
|
const hasErrorMessage = !!errorMessage;
|
|
@@ -10140,7 +10160,7 @@ function Select({
|
|
|
10140
10160
|
componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
|
|
10141
10161
|
);
|
|
10142
10162
|
const customInput = useCallback7(
|
|
10143
|
-
(props) => /* @__PURE__ */
|
|
10163
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10144
10164
|
DDSInput,
|
|
10145
10165
|
{
|
|
10146
10166
|
...props,
|
|
@@ -10158,7 +10178,7 @@ function Select({
|
|
|
10158
10178
|
[]
|
|
10159
10179
|
);
|
|
10160
10180
|
const customSingleValue = useCallback7(
|
|
10161
|
-
(props) => /* @__PURE__ */
|
|
10181
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10162
10182
|
CustomSingleValue,
|
|
10163
10183
|
{
|
|
10164
10184
|
...props,
|
|
@@ -10169,15 +10189,15 @@ function Select({
|
|
|
10169
10189
|
[]
|
|
10170
10190
|
);
|
|
10171
10191
|
const customClearIndicator = useCallback7(
|
|
10172
|
-
(props) => /* @__PURE__ */
|
|
10192
|
+
(props) => /* @__PURE__ */ jsx286(DDSClearIndicator, { ...props, size: componentSize }),
|
|
10173
10193
|
[componentSize]
|
|
10174
10194
|
);
|
|
10175
10195
|
const customDropdownIndicator = useCallback7(
|
|
10176
|
-
(props) => /* @__PURE__ */
|
|
10196
|
+
(props) => /* @__PURE__ */ jsx286(DDSDropdownIndicator, { ...props, componentSize }),
|
|
10177
10197
|
[componentSize]
|
|
10178
10198
|
);
|
|
10179
10199
|
const customControl = useCallback7(
|
|
10180
|
-
(props) => /* @__PURE__ */
|
|
10200
|
+
(props) => /* @__PURE__ */ jsx286(
|
|
10181
10201
|
DDSControl,
|
|
10182
10202
|
{
|
|
10183
10203
|
...props,
|
|
@@ -10192,9 +10212,9 @@ function Select({
|
|
|
10192
10212
|
const customOptionComponent = useCallback7(
|
|
10193
10213
|
(props) => {
|
|
10194
10214
|
if (customOptionElement) {
|
|
10195
|
-
return /* @__PURE__ */
|
|
10215
|
+
return /* @__PURE__ */ jsx286(CustomOption, { ...props, customElement: customOptionElement });
|
|
10196
10216
|
} else {
|
|
10197
|
-
return /* @__PURE__ */
|
|
10217
|
+
return /* @__PURE__ */ jsx286(DDSOption, { ...props });
|
|
10198
10218
|
}
|
|
10199
10219
|
},
|
|
10200
10220
|
[customOptionElement, componentSize]
|
|
@@ -10208,7 +10228,7 @@ function Select({
|
|
|
10208
10228
|
placeholder: placeholder ? placeholder : "",
|
|
10209
10229
|
closeMenuOnSelect: closeMenuOnSelect ? closeMenuOnSelect : isMulti ? false : true,
|
|
10210
10230
|
isMulti,
|
|
10211
|
-
instanceId: instanceId != null ? instanceId :
|
|
10231
|
+
instanceId: instanceId != null ? instanceId : useId18(),
|
|
10212
10232
|
inputId: uniqueId,
|
|
10213
10233
|
name: uniqueId,
|
|
10214
10234
|
menuPortalTarget: portalTarget,
|
|
@@ -10258,7 +10278,7 @@ function Select({
|
|
|
10258
10278
|
readOnly,
|
|
10259
10279
|
afterLabelContent
|
|
10260
10280
|
}),
|
|
10261
|
-
/* @__PURE__ */
|
|
10281
|
+
/* @__PURE__ */ jsx286(ReactSelect, { ...reactSelectProps, ref }),
|
|
10262
10282
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
10263
10283
|
]
|
|
10264
10284
|
}
|
|
@@ -10267,7 +10287,7 @@ function Select({
|
|
|
10267
10287
|
Select.displayName = "Select";
|
|
10268
10288
|
|
|
10269
10289
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
10270
|
-
import { useEffect as useEffect25, useId as
|
|
10290
|
+
import { useEffect as useEffect25, useId as useId19, useRef as useRef29, useState as useState21 } from "react";
|
|
10271
10291
|
|
|
10272
10292
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
10273
10293
|
var NativeSelect_default = {
|
|
@@ -10285,7 +10305,7 @@ var NativeSelect_default = {
|
|
|
10285
10305
|
};
|
|
10286
10306
|
|
|
10287
10307
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
10288
|
-
import { jsx as
|
|
10308
|
+
import { jsx as jsx287, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10289
10309
|
var NativeSelect = ({
|
|
10290
10310
|
ref,
|
|
10291
10311
|
id,
|
|
@@ -10330,7 +10350,7 @@ var NativeSelect = ({
|
|
|
10330
10350
|
}
|
|
10331
10351
|
}
|
|
10332
10352
|
}, [clearable]);
|
|
10333
|
-
const generatedId =
|
|
10353
|
+
const generatedId = useId19();
|
|
10334
10354
|
const uniqueId = id != null ? id : `${generatedId}-native-select`;
|
|
10335
10355
|
const hasErrorMessage = !!errorMessage;
|
|
10336
10356
|
const hasTip = !!tip;
|
|
@@ -10361,7 +10381,7 @@ var NativeSelect = ({
|
|
|
10361
10381
|
afterLabelContent
|
|
10362
10382
|
}),
|
|
10363
10383
|
/* @__PURE__ */ jsxs68(Box, { position: "relative", width: inputWidth, children: [
|
|
10364
|
-
/* @__PURE__ */
|
|
10384
|
+
/* @__PURE__ */ jsx287(
|
|
10365
10385
|
"select",
|
|
10366
10386
|
{
|
|
10367
10387
|
ref: useCombinedRef(ref, selectRef),
|
|
@@ -10395,7 +10415,7 @@ var NativeSelect = ({
|
|
|
10395
10415
|
children
|
|
10396
10416
|
}
|
|
10397
10417
|
),
|
|
10398
|
-
showClearButton && /* @__PURE__ */
|
|
10418
|
+
showClearButton && /* @__PURE__ */ jsx287(
|
|
10399
10419
|
ClearButton,
|
|
10400
10420
|
{
|
|
10401
10421
|
"aria-label": t(commonTexts.clearSelect),
|
|
@@ -10404,7 +10424,7 @@ var NativeSelect = ({
|
|
|
10404
10424
|
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10405
10425
|
}
|
|
10406
10426
|
),
|
|
10407
|
-
!multiple && /* @__PURE__ */
|
|
10427
|
+
!multiple && /* @__PURE__ */ jsx287(
|
|
10408
10428
|
Icon,
|
|
10409
10429
|
{
|
|
10410
10430
|
icon: ChevronDownIcon,
|
|
@@ -10420,14 +10440,14 @@ var NativeSelectPlaceholder = ({
|
|
|
10420
10440
|
children = "-- Velg fra listen --",
|
|
10421
10441
|
value,
|
|
10422
10442
|
...rest
|
|
10423
|
-
}) => /* @__PURE__ */
|
|
10443
|
+
}) => /* @__PURE__ */ jsx287("option", { value: value != null ? value : "", selected: true, ...rest, children });
|
|
10424
10444
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
10425
10445
|
|
|
10426
10446
|
// src/components/Select/utils.ts
|
|
10427
10447
|
var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
|
|
10428
10448
|
|
|
10429
10449
|
// src/components/Pagination/Pagination.tsx
|
|
10430
|
-
import { jsx as
|
|
10450
|
+
import { jsx as jsx288, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
10431
10451
|
var Pagination = ({
|
|
10432
10452
|
itemsAmount,
|
|
10433
10453
|
defaultItemsPerPage = 10,
|
|
@@ -10480,7 +10500,7 @@ var Pagination = ({
|
|
|
10480
10500
|
};
|
|
10481
10501
|
const listItems = items.length > 0 ? items.map((item, i) => {
|
|
10482
10502
|
const isActive = item === activePage;
|
|
10483
|
-
return /* @__PURE__ */
|
|
10503
|
+
return /* @__PURE__ */ jsx288("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ jsx288(
|
|
10484
10504
|
Button,
|
|
10485
10505
|
{
|
|
10486
10506
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -10491,7 +10511,7 @@ var Pagination = ({
|
|
|
10491
10511
|
"aria-label": isActive ? t(texts18.currentPage(item)) : t(texts18.page(item)),
|
|
10492
10512
|
children: item
|
|
10493
10513
|
}
|
|
10494
|
-
) : /* @__PURE__ */
|
|
10514
|
+
) : /* @__PURE__ */ jsx288(
|
|
10495
10515
|
Icon,
|
|
10496
10516
|
{
|
|
10497
10517
|
icon: MoreHorizontalIcon,
|
|
@@ -10499,7 +10519,7 @@ var Pagination = ({
|
|
|
10499
10519
|
}
|
|
10500
10520
|
) }, `pagination-item-${i}`);
|
|
10501
10521
|
}) : void 0;
|
|
10502
|
-
const previousPageButton = /* @__PURE__ */
|
|
10522
|
+
const previousPageButton = /* @__PURE__ */ jsx288(
|
|
10503
10523
|
Button,
|
|
10504
10524
|
{
|
|
10505
10525
|
purpose: "secondary",
|
|
@@ -10511,7 +10531,7 @@ var Pagination = ({
|
|
|
10511
10531
|
"aria-label": t(texts18.previousPage)
|
|
10512
10532
|
}
|
|
10513
10533
|
);
|
|
10514
|
-
const nextPageButton = /* @__PURE__ */
|
|
10534
|
+
const nextPageButton = /* @__PURE__ */ jsx288(
|
|
10515
10535
|
Button,
|
|
10516
10536
|
{
|
|
10517
10537
|
purpose: "secondary",
|
|
@@ -10544,7 +10564,7 @@ var Pagination = ({
|
|
|
10544
10564
|
hideBelow: smallScreenBreakpoint,
|
|
10545
10565
|
className: Pagination_default.list,
|
|
10546
10566
|
children: [
|
|
10547
|
-
/* @__PURE__ */
|
|
10567
|
+
/* @__PURE__ */ jsx288(
|
|
10548
10568
|
"li",
|
|
10549
10569
|
{
|
|
10550
10570
|
className: cn(
|
|
@@ -10556,7 +10576,7 @@ var Pagination = ({
|
|
|
10556
10576
|
}
|
|
10557
10577
|
),
|
|
10558
10578
|
listItems,
|
|
10559
|
-
/* @__PURE__ */
|
|
10579
|
+
/* @__PURE__ */ jsx288(
|
|
10560
10580
|
"li",
|
|
10561
10581
|
{
|
|
10562
10582
|
className: cn(
|
|
@@ -10577,7 +10597,7 @@ var Pagination = ({
|
|
|
10577
10597
|
showBelow: smallScreenBreakpoint,
|
|
10578
10598
|
className: Pagination_default.list,
|
|
10579
10599
|
children: [
|
|
10580
|
-
/* @__PURE__ */
|
|
10600
|
+
/* @__PURE__ */ jsx288(
|
|
10581
10601
|
"li",
|
|
10582
10602
|
{
|
|
10583
10603
|
className: cn(
|
|
@@ -10585,7 +10605,7 @@ var Pagination = ({
|
|
|
10585
10605
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
10586
10606
|
),
|
|
10587
10607
|
"aria-hidden": isOnFirstPage,
|
|
10588
|
-
children: /* @__PURE__ */
|
|
10608
|
+
children: /* @__PURE__ */ jsx288(
|
|
10589
10609
|
Button,
|
|
10590
10610
|
{
|
|
10591
10611
|
purpose: "secondary",
|
|
@@ -10599,7 +10619,7 @@ var Pagination = ({
|
|
|
10599
10619
|
)
|
|
10600
10620
|
}
|
|
10601
10621
|
),
|
|
10602
|
-
/* @__PURE__ */
|
|
10622
|
+
/* @__PURE__ */ jsx288(
|
|
10603
10623
|
"li",
|
|
10604
10624
|
{
|
|
10605
10625
|
className: cn(
|
|
@@ -10610,7 +10630,7 @@ var Pagination = ({
|
|
|
10610
10630
|
children: previousPageButton
|
|
10611
10631
|
}
|
|
10612
10632
|
),
|
|
10613
|
-
/* @__PURE__ */
|
|
10633
|
+
/* @__PURE__ */ jsx288("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx288(
|
|
10614
10634
|
Button,
|
|
10615
10635
|
{
|
|
10616
10636
|
size: "small",
|
|
@@ -10620,7 +10640,7 @@ var Pagination = ({
|
|
|
10620
10640
|
children: activePage
|
|
10621
10641
|
}
|
|
10622
10642
|
) }),
|
|
10623
|
-
/* @__PURE__ */
|
|
10643
|
+
/* @__PURE__ */ jsx288(
|
|
10624
10644
|
"li",
|
|
10625
10645
|
{
|
|
10626
10646
|
className: cn(
|
|
@@ -10631,7 +10651,7 @@ var Pagination = ({
|
|
|
10631
10651
|
children: nextPageButton
|
|
10632
10652
|
}
|
|
10633
10653
|
),
|
|
10634
|
-
/* @__PURE__ */
|
|
10654
|
+
/* @__PURE__ */ jsx288(
|
|
10635
10655
|
"li",
|
|
10636
10656
|
{
|
|
10637
10657
|
className: cn(
|
|
@@ -10639,7 +10659,7 @@ var Pagination = ({
|
|
|
10639
10659
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
10640
10660
|
),
|
|
10641
10661
|
"aria-hidden": isOnLastPage,
|
|
10642
|
-
children: /* @__PURE__ */
|
|
10662
|
+
children: /* @__PURE__ */ jsx288(
|
|
10643
10663
|
Button,
|
|
10644
10664
|
{
|
|
10645
10665
|
purpose: "secondary",
|
|
@@ -10673,7 +10693,7 @@ var Pagination = ({
|
|
|
10673
10693
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
10674
10694
|
children: [
|
|
10675
10695
|
/* @__PURE__ */ jsxs69("div", { className: Pagination_default.indicators, children: [
|
|
10676
|
-
withSelect && /* @__PURE__ */
|
|
10696
|
+
withSelect && /* @__PURE__ */ jsx288(
|
|
10677
10697
|
Select,
|
|
10678
10698
|
{
|
|
10679
10699
|
options: selectOptions,
|
|
@@ -10689,7 +10709,7 @@ var Pagination = ({
|
|
|
10689
10709
|
"aria-label": t(texts18.itemsPerPage)
|
|
10690
10710
|
}
|
|
10691
10711
|
),
|
|
10692
|
-
withCounter && /* @__PURE__ */
|
|
10712
|
+
withCounter && /* @__PURE__ */ jsx288(Paragraph, { children: t(
|
|
10693
10713
|
texts18.showsAmountOfTotalItems(
|
|
10694
10714
|
activePageFirstItem,
|
|
10695
10715
|
activePageLastItem,
|
|
@@ -10763,7 +10783,7 @@ var texts18 = createTexts({
|
|
|
10763
10783
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10764
10784
|
import {
|
|
10765
10785
|
useEffect as useEffect26,
|
|
10766
|
-
useId as
|
|
10786
|
+
useId as useId20,
|
|
10767
10787
|
useLayoutEffect as useLayoutEffect2,
|
|
10768
10788
|
useRef as useRef30,
|
|
10769
10789
|
useState as useState23
|
|
@@ -11167,7 +11187,7 @@ var PhoneInput_default = {
|
|
|
11167
11187
|
};
|
|
11168
11188
|
|
|
11169
11189
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
11170
|
-
import { jsx as
|
|
11190
|
+
import { jsx as jsx289, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
11171
11191
|
var prioritizedCountries = [
|
|
11172
11192
|
COUNTRIES.NO,
|
|
11173
11193
|
COUNTRIES.SE,
|
|
@@ -11229,7 +11249,7 @@ var PhoneInput = ({
|
|
|
11229
11249
|
const { t } = useTranslation();
|
|
11230
11250
|
const tGroupLabel = groupLabel != null ? groupLabel : t(texts19.countryCodeAndPhoneNumber);
|
|
11231
11251
|
const tSelectLabel = selectLabel != null ? selectLabel : t(texts19.countryCode);
|
|
11232
|
-
const generatedId =
|
|
11252
|
+
const generatedId = useId20();
|
|
11233
11253
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11234
11254
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
11235
11255
|
const phoneNumberId = `${uniqueId}-phone-number`;
|
|
@@ -11326,8 +11346,8 @@ var PhoneInput = ({
|
|
|
11326
11346
|
role: "group",
|
|
11327
11347
|
"aria-label": tGroupLabel,
|
|
11328
11348
|
children: [
|
|
11329
|
-
/* @__PURE__ */
|
|
11330
|
-
/* @__PURE__ */
|
|
11349
|
+
/* @__PURE__ */ jsx289("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
|
|
11350
|
+
/* @__PURE__ */ jsx289(
|
|
11331
11351
|
NativeSelect,
|
|
11332
11352
|
{
|
|
11333
11353
|
width: styleUpToBreakpoint(
|
|
@@ -11348,11 +11368,11 @@ var PhoneInput = ({
|
|
|
11348
11368
|
hasTip ? tipId : void 0,
|
|
11349
11369
|
ariaDescribedby
|
|
11350
11370
|
]),
|
|
11351
|
-
children: countryOptions.map((item, index) => /* @__PURE__ */
|
|
11371
|
+
children: countryOptions.map((item, index) => /* @__PURE__ */ jsx289("option", { value: item.countryCode, children: item.label }, index))
|
|
11352
11372
|
}
|
|
11353
11373
|
),
|
|
11354
11374
|
/* @__PURE__ */ jsxs70(Box, { width: "100%", className: Input_default["input-group"], children: [
|
|
11355
|
-
/* @__PURE__ */
|
|
11375
|
+
/* @__PURE__ */ jsx289(
|
|
11356
11376
|
"span",
|
|
11357
11377
|
{
|
|
11358
11378
|
className: cn(
|
|
@@ -11364,7 +11384,7 @@ var PhoneInput = ({
|
|
|
11364
11384
|
children: callingCode
|
|
11365
11385
|
}
|
|
11366
11386
|
),
|
|
11367
|
-
/* @__PURE__ */
|
|
11387
|
+
/* @__PURE__ */ jsx289(
|
|
11368
11388
|
Box,
|
|
11369
11389
|
{
|
|
11370
11390
|
as: StatefulInput,
|
|
@@ -11421,7 +11441,7 @@ var texts19 = createTexts({
|
|
|
11421
11441
|
import {
|
|
11422
11442
|
useContext as useContext20,
|
|
11423
11443
|
useEffect as useEffect27,
|
|
11424
|
-
useId as
|
|
11444
|
+
useId as useId21
|
|
11425
11445
|
} from "react";
|
|
11426
11446
|
import { createPortal as createPortal4 } from "react-dom";
|
|
11427
11447
|
|
|
@@ -11442,7 +11462,7 @@ var PopoverContext = createContext13({});
|
|
|
11442
11462
|
var usePopoverContext = () => useContext19(PopoverContext);
|
|
11443
11463
|
|
|
11444
11464
|
// src/components/Popover/Popover.tsx
|
|
11445
|
-
import { jsx as
|
|
11465
|
+
import { jsx as jsx290, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
11446
11466
|
var Popover = ({
|
|
11447
11467
|
id,
|
|
11448
11468
|
header,
|
|
@@ -11482,7 +11502,7 @@ var Popover = ({
|
|
|
11482
11502
|
} = context;
|
|
11483
11503
|
const { t } = useTranslation();
|
|
11484
11504
|
const hasContext = !isEmpty(context);
|
|
11485
|
-
const generatedId =
|
|
11505
|
+
const generatedId = useId21();
|
|
11486
11506
|
const uniquePopoverId = id != null ? id : `${generatedId}-popover`;
|
|
11487
11507
|
const [
|
|
11488
11508
|
popoverId,
|
|
@@ -11561,15 +11581,15 @@ var Popover = ({
|
|
|
11561
11581
|
elevation: 3,
|
|
11562
11582
|
border: "border-subtle",
|
|
11563
11583
|
children: [
|
|
11564
|
-
header && /* @__PURE__ */
|
|
11565
|
-
/* @__PURE__ */
|
|
11584
|
+
header && /* @__PURE__ */ jsx290("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx290(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
|
|
11585
|
+
/* @__PURE__ */ jsx290(
|
|
11566
11586
|
"div",
|
|
11567
11587
|
{
|
|
11568
11588
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
|
|
11569
11589
|
children
|
|
11570
11590
|
}
|
|
11571
11591
|
),
|
|
11572
|
-
withCloseButton && /* @__PURE__ */
|
|
11592
|
+
withCloseButton && /* @__PURE__ */ jsx290(
|
|
11573
11593
|
Button,
|
|
11574
11594
|
{
|
|
11575
11595
|
icon: CloseIcon,
|
|
@@ -11592,11 +11612,11 @@ import {
|
|
|
11592
11612
|
Children as ReactChildren4,
|
|
11593
11613
|
cloneElement as cloneElement4,
|
|
11594
11614
|
isValidElement as isValidElement4,
|
|
11595
|
-
useId as
|
|
11615
|
+
useId as useId22,
|
|
11596
11616
|
useRef as useRef31,
|
|
11597
11617
|
useState as useState24
|
|
11598
11618
|
} from "react";
|
|
11599
|
-
import { jsx as
|
|
11619
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
11600
11620
|
var PopoverGroup = ({
|
|
11601
11621
|
isOpen: propIsOpen,
|
|
11602
11622
|
setIsOpen: propSetIsOpen,
|
|
@@ -11610,7 +11630,7 @@ var PopoverGroup = ({
|
|
|
11610
11630
|
const [internalIsOpen, internalSetIsOpen] = useState24(isInitiallyOpen);
|
|
11611
11631
|
const open = propIsOpen != null ? propIsOpen : internalIsOpen;
|
|
11612
11632
|
const setOpen = propSetIsOpen != null ? propSetIsOpen : internalSetIsOpen;
|
|
11613
|
-
const generatedId =
|
|
11633
|
+
const generatedId = useId22();
|
|
11614
11634
|
const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
|
|
11615
11635
|
const [floatOptions, setFloatOptions] = useState24();
|
|
11616
11636
|
const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
|
|
@@ -11657,7 +11677,7 @@ var PopoverGroup = ({
|
|
|
11657
11677
|
ref: combinedAnchorRef
|
|
11658
11678
|
}) : child);
|
|
11659
11679
|
});
|
|
11660
|
-
return /* @__PURE__ */
|
|
11680
|
+
return /* @__PURE__ */ jsx291(
|
|
11661
11681
|
PopoverContext,
|
|
11662
11682
|
{
|
|
11663
11683
|
value: {
|
|
@@ -11715,7 +11735,7 @@ var ProgressTracker_default = {
|
|
|
11715
11735
|
|
|
11716
11736
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11717
11737
|
import { useMemo as useMemo2 } from "react";
|
|
11718
|
-
import { Fragment as Fragment10, jsx as
|
|
11738
|
+
import { Fragment as Fragment10, jsx as jsx292, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11719
11739
|
var toItemState = (active, completed, disabled) => {
|
|
11720
11740
|
if (disabled) {
|
|
11721
11741
|
return "disabled";
|
|
@@ -11759,10 +11779,10 @@ var ProgressTrackerItem = (props) => {
|
|
|
11759
11779
|
};
|
|
11760
11780
|
const stepNumberContent = useMemo2(() => {
|
|
11761
11781
|
if (completed) {
|
|
11762
|
-
return /* @__PURE__ */
|
|
11782
|
+
return /* @__PURE__ */ jsx292(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
11763
11783
|
}
|
|
11764
11784
|
if (icon !== void 0) {
|
|
11765
|
-
return /* @__PURE__ */
|
|
11785
|
+
return /* @__PURE__ */ jsx292(Icon, { icon, iconSize: "small" });
|
|
11766
11786
|
}
|
|
11767
11787
|
return stepNumber;
|
|
11768
11788
|
}, [completed, icon, index]);
|
|
@@ -11772,7 +11792,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11772
11792
|
}
|
|
11773
11793
|
const isInactiveLink = disabled || active;
|
|
11774
11794
|
const stepContent = /* @__PURE__ */ jsxs72(Fragment10, { children: [
|
|
11775
|
-
/* @__PURE__ */
|
|
11795
|
+
/* @__PURE__ */ jsx292(
|
|
11776
11796
|
Box,
|
|
11777
11797
|
{
|
|
11778
11798
|
display: "flex",
|
|
@@ -11787,7 +11807,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11787
11807
|
children: stepNumberContent
|
|
11788
11808
|
}
|
|
11789
11809
|
),
|
|
11790
|
-
/* @__PURE__ */
|
|
11810
|
+
/* @__PURE__ */ jsx292(
|
|
11791
11811
|
Typography,
|
|
11792
11812
|
{
|
|
11793
11813
|
as: "div",
|
|
@@ -11802,14 +11822,14 @@ var ProgressTrackerItem = (props) => {
|
|
|
11802
11822
|
)
|
|
11803
11823
|
] });
|
|
11804
11824
|
const ariaLabel = props["aria-label"] ? props["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts20.completed) : t(texts20.uncompleted)}`;
|
|
11805
|
-
return /* @__PURE__ */
|
|
11825
|
+
return /* @__PURE__ */ jsx292(
|
|
11806
11826
|
Box,
|
|
11807
11827
|
{
|
|
11808
11828
|
as: "li",
|
|
11809
11829
|
display: direction === "row" ? "flex" : void 0,
|
|
11810
11830
|
"aria-current": active ? "step" : void 0,
|
|
11811
11831
|
className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
|
|
11812
|
-
children: handleStepChange ? /* @__PURE__ */
|
|
11832
|
+
children: handleStepChange ? /* @__PURE__ */ jsx292(
|
|
11813
11833
|
Box,
|
|
11814
11834
|
{
|
|
11815
11835
|
as: StylelessButton,
|
|
@@ -11833,7 +11853,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11833
11853
|
disabled,
|
|
11834
11854
|
children: stepContent
|
|
11835
11855
|
}
|
|
11836
|
-
) : /* @__PURE__ */
|
|
11856
|
+
) : /* @__PURE__ */ jsx292(
|
|
11837
11857
|
"div",
|
|
11838
11858
|
{
|
|
11839
11859
|
...getBaseHTMLProps(
|
|
@@ -11866,7 +11886,7 @@ var texts20 = createTexts({
|
|
|
11866
11886
|
});
|
|
11867
11887
|
|
|
11868
11888
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11869
|
-
import { jsx as
|
|
11889
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
11870
11890
|
var ProgressTracker = (() => {
|
|
11871
11891
|
const Res = ({
|
|
11872
11892
|
id,
|
|
@@ -11896,7 +11916,7 @@ var ProgressTracker = (() => {
|
|
|
11896
11916
|
}, [children]);
|
|
11897
11917
|
const isRow = direction === "row";
|
|
11898
11918
|
const { "aria-label": ariaLabel } = htmlProps;
|
|
11899
|
-
return /* @__PURE__ */
|
|
11919
|
+
return /* @__PURE__ */ jsx293(
|
|
11900
11920
|
ProgressTrackerContext,
|
|
11901
11921
|
{
|
|
11902
11922
|
value: {
|
|
@@ -11904,12 +11924,12 @@ var ProgressTracker = (() => {
|
|
|
11904
11924
|
handleStepChange: handleChange,
|
|
11905
11925
|
direction
|
|
11906
11926
|
},
|
|
11907
|
-
children: /* @__PURE__ */
|
|
11927
|
+
children: /* @__PURE__ */ jsx293(
|
|
11908
11928
|
"nav",
|
|
11909
11929
|
{
|
|
11910
11930
|
"aria-label": ariaLabel != null ? ariaLabel : t(texts21.stepProgression),
|
|
11911
11931
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
11912
|
-
children: /* @__PURE__ */
|
|
11932
|
+
children: /* @__PURE__ */ jsx293(
|
|
11913
11933
|
Box,
|
|
11914
11934
|
{
|
|
11915
11935
|
as: StylelessOList,
|
|
@@ -11955,7 +11975,7 @@ var texts21 = createTexts({
|
|
|
11955
11975
|
});
|
|
11956
11976
|
|
|
11957
11977
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11958
|
-
import { useId as
|
|
11978
|
+
import { useId as useId23 } from "react";
|
|
11959
11979
|
|
|
11960
11980
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
11961
11981
|
var ProgressBar_default = {
|
|
@@ -11968,7 +11988,7 @@ var ProgressBar_default = {
|
|
|
11968
11988
|
};
|
|
11969
11989
|
|
|
11970
11990
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11971
|
-
import { jsx as
|
|
11991
|
+
import { jsx as jsx294, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11972
11992
|
var PROGRESS_BAR_SIZES = createSizes("small", "medium");
|
|
11973
11993
|
var ProgressBar = ({
|
|
11974
11994
|
label,
|
|
@@ -11984,7 +12004,7 @@ var ProgressBar = ({
|
|
|
11984
12004
|
style,
|
|
11985
12005
|
...rest
|
|
11986
12006
|
}) => {
|
|
11987
|
-
const generatedId =
|
|
12007
|
+
const generatedId = useId23();
|
|
11988
12008
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
11989
12009
|
const hasErrorMessage = !!errorMessage;
|
|
11990
12010
|
const hasTip = !!tip;
|
|
@@ -11996,7 +12016,7 @@ var ProgressBar = ({
|
|
|
11996
12016
|
const isIndeterminate = !hasValidValue && !hasErrorMessage;
|
|
11997
12017
|
return /* @__PURE__ */ jsxs73(Box, { width: "100%", className, style, children: [
|
|
11998
12018
|
renderLabel({ label, htmlFor: uniqueId }),
|
|
11999
|
-
/* @__PURE__ */
|
|
12019
|
+
/* @__PURE__ */ jsx294(
|
|
12000
12020
|
"progress",
|
|
12001
12021
|
{
|
|
12002
12022
|
id: uniqueId,
|
|
@@ -12012,13 +12032,13 @@ var ProgressBar = ({
|
|
|
12012
12032
|
children: fillPrecentage
|
|
12013
12033
|
}
|
|
12014
12034
|
),
|
|
12015
|
-
/* @__PURE__ */
|
|
12035
|
+
/* @__PURE__ */ jsx294(
|
|
12016
12036
|
Box,
|
|
12017
12037
|
{
|
|
12018
12038
|
width: getInputWidth(width),
|
|
12019
12039
|
height: size2 === "small" ? "x0.75" : "x1.5",
|
|
12020
12040
|
className: cn(ProgressBar_default.progress),
|
|
12021
|
-
children: /* @__PURE__ */
|
|
12041
|
+
children: /* @__PURE__ */ jsx294(
|
|
12022
12042
|
Box,
|
|
12023
12043
|
{
|
|
12024
12044
|
height: "100%",
|
|
@@ -12040,7 +12060,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
12040
12060
|
|
|
12041
12061
|
// src/components/Search/Search.tsx
|
|
12042
12062
|
import {
|
|
12043
|
-
useId as
|
|
12063
|
+
useId as useId24,
|
|
12044
12064
|
useState as useState26
|
|
12045
12065
|
} from "react";
|
|
12046
12066
|
|
|
@@ -12073,7 +12093,7 @@ var typographyTypes2 = {
|
|
|
12073
12093
|
|
|
12074
12094
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
12075
12095
|
import { useEffect as useEffect29, useRef as useRef32 } from "react";
|
|
12076
|
-
import { jsx as
|
|
12096
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
12077
12097
|
var SearchSuggestionItem = ({
|
|
12078
12098
|
focus,
|
|
12079
12099
|
className,
|
|
@@ -12088,7 +12108,7 @@ var SearchSuggestionItem = ({
|
|
|
12088
12108
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
12089
12109
|
}
|
|
12090
12110
|
}, [focus]);
|
|
12091
|
-
return /* @__PURE__ */
|
|
12111
|
+
return /* @__PURE__ */ jsx295(
|
|
12092
12112
|
StylelessButton,
|
|
12093
12113
|
{
|
|
12094
12114
|
ref: combinedRef,
|
|
@@ -12106,7 +12126,7 @@ var SearchSuggestionItem = ({
|
|
|
12106
12126
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
12107
12127
|
|
|
12108
12128
|
// src/components/Search/SearchSuggestions.tsx
|
|
12109
|
-
import { jsx as
|
|
12129
|
+
import { jsx as jsx296, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12110
12130
|
var SearchSuggestions = ({
|
|
12111
12131
|
id,
|
|
12112
12132
|
searchId,
|
|
@@ -12150,7 +12170,7 @@ var SearchSuggestions = ({
|
|
|
12150
12170
|
overflowY: "scroll",
|
|
12151
12171
|
marginBlock: "x0.25 0",
|
|
12152
12172
|
children: [
|
|
12153
|
-
/* @__PURE__ */
|
|
12173
|
+
/* @__PURE__ */ jsx296(
|
|
12154
12174
|
Box,
|
|
12155
12175
|
{
|
|
12156
12176
|
as: "h2",
|
|
@@ -12160,8 +12180,8 @@ var SearchSuggestions = ({
|
|
|
12160
12180
|
children: "S\xF8keforslag"
|
|
12161
12181
|
}
|
|
12162
12182
|
),
|
|
12163
|
-
/* @__PURE__ */
|
|
12164
|
-
return /* @__PURE__ */
|
|
12183
|
+
/* @__PURE__ */ jsx296(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
|
|
12184
|
+
return /* @__PURE__ */ jsx296("li", { role: "option", children: /* @__PURE__ */ jsx296(
|
|
12165
12185
|
SearchSuggestionItem,
|
|
12166
12186
|
{
|
|
12167
12187
|
index,
|
|
@@ -12190,7 +12210,7 @@ var texts22 = createTexts({
|
|
|
12190
12210
|
});
|
|
12191
12211
|
|
|
12192
12212
|
// src/components/Search/Search.tsx
|
|
12193
|
-
import { Fragment as Fragment11, jsx as
|
|
12213
|
+
import { Fragment as Fragment11, jsx as jsx297, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
12194
12214
|
var getIconSize2 = (size2) => {
|
|
12195
12215
|
switch (size2) {
|
|
12196
12216
|
case "large":
|
|
@@ -12237,7 +12257,7 @@ var Search = ({
|
|
|
12237
12257
|
...rest
|
|
12238
12258
|
}) => {
|
|
12239
12259
|
var _a;
|
|
12240
|
-
const generatedId =
|
|
12260
|
+
const generatedId = useId24();
|
|
12241
12261
|
const uniqueId = id != null ? id : `${generatedId}-searchInput`;
|
|
12242
12262
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
12243
12263
|
const suggestionsId = derivativeIdGenerator(uniqueId, "suggestions");
|
|
@@ -12273,7 +12293,7 @@ var Search = ({
|
|
|
12273
12293
|
width: !showSearchButton ? width : void 0,
|
|
12274
12294
|
className: !showSearchButton ? className : void 0,
|
|
12275
12295
|
children: [
|
|
12276
|
-
showIcon && /* @__PURE__ */
|
|
12296
|
+
showIcon && /* @__PURE__ */ jsx297(
|
|
12277
12297
|
Icon,
|
|
12278
12298
|
{
|
|
12279
12299
|
icon: SearchIcon,
|
|
@@ -12284,7 +12304,7 @@ var Search = ({
|
|
|
12284
12304
|
)
|
|
12285
12305
|
}
|
|
12286
12306
|
),
|
|
12287
|
-
/* @__PURE__ */
|
|
12307
|
+
/* @__PURE__ */ jsx297(
|
|
12288
12308
|
Box,
|
|
12289
12309
|
{
|
|
12290
12310
|
as: Input,
|
|
@@ -12314,7 +12334,7 @@ var Search = ({
|
|
|
12314
12334
|
}
|
|
12315
12335
|
),
|
|
12316
12336
|
hasSuggestions && /* @__PURE__ */ jsxs75(Fragment11, { children: [
|
|
12317
|
-
/* @__PURE__ */
|
|
12337
|
+
/* @__PURE__ */ jsx297(
|
|
12318
12338
|
SearchSuggestions,
|
|
12319
12339
|
{
|
|
12320
12340
|
id: suggestionsId,
|
|
@@ -12326,9 +12346,9 @@ var Search = ({
|
|
|
12326
12346
|
componentSize
|
|
12327
12347
|
}
|
|
12328
12348
|
),
|
|
12329
|
-
/* @__PURE__ */
|
|
12349
|
+
/* @__PURE__ */ jsx297(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts23.useArrowKeys) })
|
|
12330
12350
|
] }),
|
|
12331
|
-
hasValue && /* @__PURE__ */
|
|
12351
|
+
hasValue && /* @__PURE__ */ jsx297(
|
|
12332
12352
|
ClearButton,
|
|
12333
12353
|
{
|
|
12334
12354
|
size: getIconSize2(componentSize),
|
|
@@ -12355,7 +12375,7 @@ var Search = ({
|
|
|
12355
12375
|
style,
|
|
12356
12376
|
children: [
|
|
12357
12377
|
inputGroup,
|
|
12358
|
-
/* @__PURE__ */
|
|
12378
|
+
/* @__PURE__ */ jsx297(
|
|
12359
12379
|
Button,
|
|
12360
12380
|
{
|
|
12361
12381
|
size: componentSize,
|
|
@@ -12399,7 +12419,7 @@ import {
|
|
|
12399
12419
|
useRef as useRef33,
|
|
12400
12420
|
useState as useState27
|
|
12401
12421
|
} from "react";
|
|
12402
|
-
import { jsx as
|
|
12422
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
12403
12423
|
var SearchAutocompleteWrapper = (props) => {
|
|
12404
12424
|
const {
|
|
12405
12425
|
value,
|
|
@@ -12475,7 +12495,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12475
12495
|
inputValue,
|
|
12476
12496
|
onSugggestionClick: handleSuggestionClick
|
|
12477
12497
|
};
|
|
12478
|
-
return /* @__PURE__ */
|
|
12498
|
+
return /* @__PURE__ */ jsx298(AutocompleteSearchContext, { value: contextProps, children });
|
|
12479
12499
|
};
|
|
12480
12500
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
12481
12501
|
|
|
@@ -12491,7 +12511,7 @@ var Skeleton_default = {
|
|
|
12491
12511
|
};
|
|
12492
12512
|
|
|
12493
12513
|
// src/components/Skeleton/Skeleton.tsx
|
|
12494
|
-
import { jsx as
|
|
12514
|
+
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
12495
12515
|
var Skeleton = ({
|
|
12496
12516
|
width,
|
|
12497
12517
|
height,
|
|
@@ -12501,7 +12521,7 @@ var Skeleton = ({
|
|
|
12501
12521
|
ref,
|
|
12502
12522
|
...rest
|
|
12503
12523
|
}) => {
|
|
12504
|
-
return /* @__PURE__ */
|
|
12524
|
+
return /* @__PURE__ */ jsx299(
|
|
12505
12525
|
Box,
|
|
12506
12526
|
{
|
|
12507
12527
|
width,
|
|
@@ -12521,7 +12541,7 @@ var SkipToContent_default = {
|
|
|
12521
12541
|
};
|
|
12522
12542
|
|
|
12523
12543
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12524
|
-
import { jsx as
|
|
12544
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
12525
12545
|
var SkipToContent = ({
|
|
12526
12546
|
text = "Til hovedinnhold",
|
|
12527
12547
|
top = 0,
|
|
@@ -12531,12 +12551,12 @@ var SkipToContent = ({
|
|
|
12531
12551
|
...rest
|
|
12532
12552
|
}) => {
|
|
12533
12553
|
const { className: htmlPropsClassName, style, ...restHtmlProps } = htmlProps;
|
|
12534
|
-
return /* @__PURE__ */
|
|
12554
|
+
return /* @__PURE__ */ jsx300(
|
|
12535
12555
|
Contrast,
|
|
12536
12556
|
{
|
|
12537
12557
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
12538
12558
|
style: { ...style, top },
|
|
12539
|
-
children: /* @__PURE__ */
|
|
12559
|
+
children: /* @__PURE__ */ jsx300(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), children: text })
|
|
12540
12560
|
}
|
|
12541
12561
|
);
|
|
12542
12562
|
};
|
|
@@ -12554,7 +12574,7 @@ var SplitButton_default = {
|
|
|
12554
12574
|
};
|
|
12555
12575
|
|
|
12556
12576
|
// src/components/SplitButton/SplitButton.tsx
|
|
12557
|
-
import { jsx as
|
|
12577
|
+
import { jsx as jsx301, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12558
12578
|
var SplitButton = ({
|
|
12559
12579
|
size: size2,
|
|
12560
12580
|
primaryAction,
|
|
@@ -12570,7 +12590,7 @@ var SplitButton = ({
|
|
|
12570
12590
|
size: size2
|
|
12571
12591
|
};
|
|
12572
12592
|
return /* @__PURE__ */ jsxs76("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
12573
|
-
/* @__PURE__ */
|
|
12593
|
+
/* @__PURE__ */ jsx301(
|
|
12574
12594
|
Button,
|
|
12575
12595
|
{
|
|
12576
12596
|
...buttonStyleProps,
|
|
@@ -12580,7 +12600,7 @@ var SplitButton = ({
|
|
|
12580
12600
|
}
|
|
12581
12601
|
),
|
|
12582
12602
|
/* @__PURE__ */ jsxs76(OverflowMenuGroup, { isOpen, setIsOpen, children: [
|
|
12583
|
-
/* @__PURE__ */
|
|
12603
|
+
/* @__PURE__ */ jsx301(
|
|
12584
12604
|
Button,
|
|
12585
12605
|
{
|
|
12586
12606
|
...buttonStyleProps,
|
|
@@ -12594,7 +12614,7 @@ var SplitButton = ({
|
|
|
12594
12614
|
type: "button"
|
|
12595
12615
|
}
|
|
12596
12616
|
),
|
|
12597
|
-
/* @__PURE__ */
|
|
12617
|
+
/* @__PURE__ */ jsx301(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx301(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx301(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
|
|
12598
12618
|
] })
|
|
12599
12619
|
] });
|
|
12600
12620
|
};
|
|
@@ -12627,14 +12647,14 @@ var CollapsibleTableContext = createContext16({
|
|
|
12627
12647
|
var useCollapsibleTableContext = () => useContext23(CollapsibleTableContext);
|
|
12628
12648
|
|
|
12629
12649
|
// src/components/Table/normal/Body.tsx
|
|
12630
|
-
import { jsx as
|
|
12631
|
-
var Body = (props) => /* @__PURE__ */
|
|
12650
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
12651
|
+
var Body = (props) => /* @__PURE__ */ jsx302("tbody", { ...props });
|
|
12632
12652
|
Body.displayName = "Table.Body";
|
|
12633
12653
|
|
|
12634
12654
|
// src/components/Table/normal/Head.tsx
|
|
12635
12655
|
import { createContext as createContext17, useContext as useContext24 } from "react";
|
|
12636
|
-
import { jsx as
|
|
12637
|
-
var Head = ({ children, ...rest }) => /* @__PURE__ */
|
|
12656
|
+
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
12657
|
+
var Head = ({ children, ...rest }) => /* @__PURE__ */ jsx303("thead", { ...rest, children: /* @__PURE__ */ jsx303(HeadContext, { value: true, children }) });
|
|
12638
12658
|
var HeadContext = createContext17(false);
|
|
12639
12659
|
function useIsInTableHead() {
|
|
12640
12660
|
const isInTableHead = useContext24(HeadContext);
|
|
@@ -12667,7 +12687,7 @@ var Table_default = {
|
|
|
12667
12687
|
};
|
|
12668
12688
|
|
|
12669
12689
|
// src/components/Table/normal/Cell.tsx
|
|
12670
|
-
import { jsx as
|
|
12690
|
+
import { jsx as jsx304 } from "react/jsx-runtime";
|
|
12671
12691
|
var Cell = ({
|
|
12672
12692
|
children,
|
|
12673
12693
|
type: _type,
|
|
@@ -12680,7 +12700,7 @@ var Cell = ({
|
|
|
12680
12700
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
12681
12701
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
12682
12702
|
const isComplexLayout = layout === "text and icon";
|
|
12683
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
12703
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx304(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx304(
|
|
12684
12704
|
"th",
|
|
12685
12705
|
{
|
|
12686
12706
|
...rest,
|
|
@@ -12689,26 +12709,26 @@ var Cell = ({
|
|
|
12689
12709
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
12690
12710
|
Table_default["cell--head"]
|
|
12691
12711
|
),
|
|
12692
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12712
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx304("div", { className: Table_default.cell__inner, children }) : children
|
|
12693
12713
|
}
|
|
12694
|
-
) : /* @__PURE__ */
|
|
12714
|
+
) : /* @__PURE__ */ jsx304(
|
|
12695
12715
|
"td",
|
|
12696
12716
|
{
|
|
12697
12717
|
...rest,
|
|
12698
12718
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
12699
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
12719
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx304("div", { className: Table_default.cell__inner, children }) : children
|
|
12700
12720
|
}
|
|
12701
12721
|
);
|
|
12702
12722
|
};
|
|
12703
12723
|
Cell.displayName = "Table.Cell";
|
|
12704
12724
|
|
|
12705
12725
|
// src/components/Table/normal/Foot.tsx
|
|
12706
|
-
import { jsx as
|
|
12707
|
-
var Foot = (props) => /* @__PURE__ */
|
|
12726
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
12727
|
+
var Foot = (props) => /* @__PURE__ */ jsx305("tfoot", { ...props });
|
|
12708
12728
|
Foot.displayName = "Table.Foot";
|
|
12709
12729
|
|
|
12710
12730
|
// src/components/Table/normal/Row.tsx
|
|
12711
|
-
import { jsx as
|
|
12731
|
+
import { jsx as jsx306 } from "react/jsx-runtime";
|
|
12712
12732
|
var Row = ({
|
|
12713
12733
|
type: _type,
|
|
12714
12734
|
mode = "normal",
|
|
@@ -12719,7 +12739,7 @@ var Row = ({
|
|
|
12719
12739
|
}) => {
|
|
12720
12740
|
const isInHeader = useIsInTableHead();
|
|
12721
12741
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
12722
|
-
return /* @__PURE__ */
|
|
12742
|
+
return /* @__PURE__ */ jsx306(
|
|
12723
12743
|
"tr",
|
|
12724
12744
|
{
|
|
12725
12745
|
className: cn(
|
|
@@ -12739,12 +12759,12 @@ var Row = ({
|
|
|
12739
12759
|
Row.displayName = "Table.Row";
|
|
12740
12760
|
|
|
12741
12761
|
// src/components/Table/normal/SortCell.tsx
|
|
12742
|
-
import { jsx as
|
|
12762
|
+
import { jsx as jsx307, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12743
12763
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12744
12764
|
if (!isSorted || !sortOrder) {
|
|
12745
|
-
return /* @__PURE__ */
|
|
12765
|
+
return /* @__PURE__ */ jsx307(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
12746
12766
|
}
|
|
12747
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
12767
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx307(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx307(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12748
12768
|
};
|
|
12749
12769
|
var SortCell = ({
|
|
12750
12770
|
isSorted,
|
|
@@ -12754,7 +12774,7 @@ var SortCell = ({
|
|
|
12754
12774
|
...rest
|
|
12755
12775
|
}) => {
|
|
12756
12776
|
const { t } = useTranslation();
|
|
12757
|
-
return /* @__PURE__ */
|
|
12777
|
+
return /* @__PURE__ */ jsx307(
|
|
12758
12778
|
Cell,
|
|
12759
12779
|
{
|
|
12760
12780
|
type: "head",
|
|
@@ -12787,7 +12807,7 @@ var texts25 = createTexts({
|
|
|
12787
12807
|
});
|
|
12788
12808
|
|
|
12789
12809
|
// src/components/Table/normal/Table.tsx
|
|
12790
|
-
import { jsx as
|
|
12810
|
+
import { jsx as jsx308 } from "react/jsx-runtime";
|
|
12791
12811
|
var Table = ({
|
|
12792
12812
|
size: size2 = "medium",
|
|
12793
12813
|
stickyHeader,
|
|
@@ -12795,7 +12815,7 @@ var Table = ({
|
|
|
12795
12815
|
className,
|
|
12796
12816
|
children,
|
|
12797
12817
|
...rest
|
|
12798
|
-
}) => /* @__PURE__ */
|
|
12818
|
+
}) => /* @__PURE__ */ jsx308(
|
|
12799
12819
|
"table",
|
|
12800
12820
|
{
|
|
12801
12821
|
...rest,
|
|
@@ -12819,7 +12839,7 @@ import {
|
|
|
12819
12839
|
useRef as useRef34,
|
|
12820
12840
|
useState as useState29
|
|
12821
12841
|
} from "react";
|
|
12822
|
-
import { jsx as
|
|
12842
|
+
import { jsx as jsx309 } from "react/jsx-runtime";
|
|
12823
12843
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12824
12844
|
const themeContext = useContext25(ThemeContext);
|
|
12825
12845
|
const container2 = themeContext == null ? void 0 : themeContext.el;
|
|
@@ -12844,7 +12864,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
12844
12864
|
window.addEventListener("resize", handleResize);
|
|
12845
12865
|
return () => window.removeEventListener("resize", handleResize);
|
|
12846
12866
|
});
|
|
12847
|
-
return /* @__PURE__ */
|
|
12867
|
+
return /* @__PURE__ */ jsx309(
|
|
12848
12868
|
"div",
|
|
12849
12869
|
{
|
|
12850
12870
|
ref: wrapperRef,
|
|
@@ -12871,7 +12891,7 @@ Table2.Row = Row;
|
|
|
12871
12891
|
Table2.Foot = Foot;
|
|
12872
12892
|
|
|
12873
12893
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
12874
|
-
import { Fragment as Fragment13, jsx as
|
|
12894
|
+
import { Fragment as Fragment13, jsx as jsx310, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
12875
12895
|
var CollapsibleRow = ({
|
|
12876
12896
|
type: _type,
|
|
12877
12897
|
className,
|
|
@@ -12915,23 +12935,23 @@ var CollapsibleRow = ({
|
|
|
12915
12935
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
12916
12936
|
collapsibleIds.push(id);
|
|
12917
12937
|
return /* @__PURE__ */ jsxs78(Fragment12, { children: [
|
|
12918
|
-
/* @__PURE__ */
|
|
12938
|
+
/* @__PURE__ */ jsx310(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
12919
12939
|
isValidElement6(child) && cloneElement6(child, {
|
|
12920
12940
|
collapsibleProps: { isCollapsibleChild: true }
|
|
12921
12941
|
})
|
|
12922
12942
|
] }, `DL-${index}`);
|
|
12923
12943
|
}) : null;
|
|
12924
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
12944
|
+
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
12945
|
const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
|
|
12926
12946
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
12927
12947
|
});
|
|
12928
12948
|
const headerRow = () => {
|
|
12929
12949
|
if (type !== "head" || !isCollapsed) return null;
|
|
12930
|
-
return /* @__PURE__ */
|
|
12950
|
+
return /* @__PURE__ */ jsx310(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment13, { children: [
|
|
12931
12951
|
definingColumnCells,
|
|
12932
12952
|
/* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12933
12953
|
t(texts26.expand),
|
|
12934
|
-
/* @__PURE__ */
|
|
12954
|
+
/* @__PURE__ */ jsx310(VisuallyHidden, { children: t(texts26.row) })
|
|
12935
12955
|
] })
|
|
12936
12956
|
] }) });
|
|
12937
12957
|
};
|
|
@@ -12940,14 +12960,14 @@ var CollapsibleRow = ({
|
|
|
12940
12960
|
if (type !== "body" || !isCollapsed) return null;
|
|
12941
12961
|
return /* @__PURE__ */ jsxs78(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
12942
12962
|
definingColumnCells,
|
|
12943
|
-
/* @__PURE__ */
|
|
12963
|
+
/* @__PURE__ */ jsx310(Table2.Cell, { children: /* @__PURE__ */ jsx310(
|
|
12944
12964
|
StylelessButton,
|
|
12945
12965
|
{
|
|
12946
12966
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
12947
12967
|
"aria-expanded": !childrenCollapsed,
|
|
12948
12968
|
"aria-controls": idList,
|
|
12949
12969
|
className: cn(Table_default["collapse-button"], focusable),
|
|
12950
|
-
children: /* @__PURE__ */
|
|
12970
|
+
children: /* @__PURE__ */ jsx310(
|
|
12951
12971
|
AnimatedChevronUpDown,
|
|
12952
12972
|
{
|
|
12953
12973
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -12965,7 +12985,7 @@ var CollapsibleRow = ({
|
|
|
12965
12985
|
rowWithChevron(),
|
|
12966
12986
|
childrenCollapsed ? null : collapsedRows
|
|
12967
12987
|
] })
|
|
12968
|
-
] }) : /* @__PURE__ */
|
|
12988
|
+
] }) : /* @__PURE__ */ jsx310(Row, { ref, ...rowProps(), children });
|
|
12969
12989
|
};
|
|
12970
12990
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12971
12991
|
var texts26 = createTexts({
|
|
@@ -12984,14 +13004,14 @@ var texts26 = createTexts({
|
|
|
12984
13004
|
});
|
|
12985
13005
|
|
|
12986
13006
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
12987
|
-
import { jsx as
|
|
13007
|
+
import { jsx as jsx311 } from "react/jsx-runtime";
|
|
12988
13008
|
var CollapsibleTable = ({
|
|
12989
13009
|
isCollapsed,
|
|
12990
13010
|
headerValues,
|
|
12991
13011
|
definingColumnIndex = [0],
|
|
12992
13012
|
...rest
|
|
12993
13013
|
}) => {
|
|
12994
|
-
return /* @__PURE__ */
|
|
13014
|
+
return /* @__PURE__ */ jsx311(
|
|
12995
13015
|
CollapsibleTableContext,
|
|
12996
13016
|
{
|
|
12997
13017
|
value: {
|
|
@@ -12999,7 +13019,7 @@ var CollapsibleTable = ({
|
|
|
12999
13019
|
headerValues,
|
|
13000
13020
|
definingColumnIndex
|
|
13001
13021
|
},
|
|
13002
|
-
children: /* @__PURE__ */
|
|
13022
|
+
children: /* @__PURE__ */ jsx311(Table2, { ...rest })
|
|
13003
13023
|
}
|
|
13004
13024
|
);
|
|
13005
13025
|
};
|
|
@@ -13049,13 +13069,13 @@ import {
|
|
|
13049
13069
|
useContext as useContext27,
|
|
13050
13070
|
useLayoutEffect as useLayoutEffect3
|
|
13051
13071
|
} from "react";
|
|
13052
|
-
import { jsx as
|
|
13072
|
+
import { jsx as jsx312 } from "react/jsx-runtime";
|
|
13053
13073
|
var TabContext = createContext19(null);
|
|
13054
13074
|
function TabWidthContextProvider({
|
|
13055
13075
|
children,
|
|
13056
13076
|
onChangeWidths
|
|
13057
13077
|
}) {
|
|
13058
|
-
return /* @__PURE__ */
|
|
13078
|
+
return /* @__PURE__ */ jsx312(
|
|
13059
13079
|
TabContext,
|
|
13060
13080
|
{
|
|
13061
13081
|
value: {
|
|
@@ -13087,7 +13107,7 @@ function useSetTabWidth(index, width) {
|
|
|
13087
13107
|
}
|
|
13088
13108
|
|
|
13089
13109
|
// src/components/Tabs/AddTabButton.tsx
|
|
13090
|
-
import { jsx as
|
|
13110
|
+
import { jsx as jsx313, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
13091
13111
|
var AddTabButton = ({
|
|
13092
13112
|
ref,
|
|
13093
13113
|
children,
|
|
@@ -13113,8 +13133,8 @@ var AddTabButton = ({
|
|
|
13113
13133
|
focus_default["focusable--inset"]
|
|
13114
13134
|
),
|
|
13115
13135
|
children: [
|
|
13116
|
-
/* @__PURE__ */
|
|
13117
|
-
/* @__PURE__ */
|
|
13136
|
+
/* @__PURE__ */ jsx313(Icon, { icon: PlusIcon, iconSize: "inherit" }),
|
|
13137
|
+
/* @__PURE__ */ jsx313("span", { children })
|
|
13118
13138
|
]
|
|
13119
13139
|
}
|
|
13120
13140
|
);
|
|
@@ -13122,8 +13142,8 @@ var AddTabButton = ({
|
|
|
13122
13142
|
AddTabButton.displayName = "AddTabButton";
|
|
13123
13143
|
|
|
13124
13144
|
// src/components/Tabs/Tabs.tsx
|
|
13125
|
-
import { useEffect as useEffect33, useId as
|
|
13126
|
-
import { jsx as
|
|
13145
|
+
import { useEffect as useEffect33, useId as useId25, useRef as useRef36, useState as useState31 } from "react";
|
|
13146
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
13127
13147
|
var TABS_SIZES = createSizes("small", "medium");
|
|
13128
13148
|
var Tabs = ({
|
|
13129
13149
|
id,
|
|
@@ -13138,7 +13158,7 @@ var Tabs = ({
|
|
|
13138
13158
|
htmlProps,
|
|
13139
13159
|
...rest
|
|
13140
13160
|
}) => {
|
|
13141
|
-
const generatedId =
|
|
13161
|
+
const generatedId = useId25();
|
|
13142
13162
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
13143
13163
|
const [thisActiveTab, setActiveTab] = useState31(activeTab != null ? activeTab : 0);
|
|
13144
13164
|
const [hasTabFocus, setHasTabFocus] = useState31(false);
|
|
@@ -13153,7 +13173,7 @@ var Tabs = ({
|
|
|
13153
13173
|
setActiveTab(activeTab);
|
|
13154
13174
|
}
|
|
13155
13175
|
}, [activeTab, thisActiveTab]);
|
|
13156
|
-
return /* @__PURE__ */
|
|
13176
|
+
return /* @__PURE__ */ jsx314(
|
|
13157
13177
|
TabsContext,
|
|
13158
13178
|
{
|
|
13159
13179
|
value: {
|
|
@@ -13168,7 +13188,7 @@ var Tabs = ({
|
|
|
13168
13188
|
tabContentDirection,
|
|
13169
13189
|
addTabButtonProps
|
|
13170
13190
|
},
|
|
13171
|
-
children: /* @__PURE__ */
|
|
13191
|
+
children: /* @__PURE__ */ jsx314(
|
|
13172
13192
|
Box,
|
|
13173
13193
|
{
|
|
13174
13194
|
...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
|
|
@@ -13187,7 +13207,7 @@ import {
|
|
|
13187
13207
|
useEffect as useEffect34,
|
|
13188
13208
|
useRef as useRef37
|
|
13189
13209
|
} from "react";
|
|
13190
|
-
import { jsx as
|
|
13210
|
+
import { jsx as jsx315, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
13191
13211
|
var Tab = ({
|
|
13192
13212
|
active = false,
|
|
13193
13213
|
icon,
|
|
@@ -13253,8 +13273,8 @@ var Tab = ({
|
|
|
13253
13273
|
onKeyDown: handleOnKeyDown,
|
|
13254
13274
|
tabIndex: focus ? 0 : -1,
|
|
13255
13275
|
children: [
|
|
13256
|
-
icon && /* @__PURE__ */
|
|
13257
|
-
/* @__PURE__ */
|
|
13276
|
+
icon && /* @__PURE__ */ jsx315(Icon, { icon, iconSize: "inherit" }),
|
|
13277
|
+
/* @__PURE__ */ jsx315("span", { children })
|
|
13258
13278
|
]
|
|
13259
13279
|
}
|
|
13260
13280
|
);
|
|
@@ -13268,7 +13288,7 @@ import {
|
|
|
13268
13288
|
isValidElement as isValidElement7,
|
|
13269
13289
|
useState as useState32
|
|
13270
13290
|
} from "react";
|
|
13271
|
-
import { jsx as
|
|
13291
|
+
import { jsx as jsx316, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
13272
13292
|
var TabList = ({
|
|
13273
13293
|
children,
|
|
13274
13294
|
id,
|
|
@@ -13326,7 +13346,7 @@ var TabList = ({
|
|
|
13326
13346
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13327
13347
|
["--dds-tab-widths"]: widths.join(" ")
|
|
13328
13348
|
};
|
|
13329
|
-
return /* @__PURE__ */
|
|
13349
|
+
return /* @__PURE__ */ jsx316(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsxs81(
|
|
13330
13350
|
"div",
|
|
13331
13351
|
{
|
|
13332
13352
|
...rest,
|
|
@@ -13346,7 +13366,7 @@ var TabList = ({
|
|
|
13346
13366
|
style: { ...style, ...customWidths },
|
|
13347
13367
|
children: [
|
|
13348
13368
|
tabListChildren,
|
|
13349
|
-
hasButton && /* @__PURE__ */
|
|
13369
|
+
hasButton && /* @__PURE__ */ jsx316(
|
|
13350
13370
|
AddTabButton,
|
|
13351
13371
|
{
|
|
13352
13372
|
index: tabListChildren ? tabListChildren.length : 0,
|
|
@@ -13360,7 +13380,7 @@ var TabList = ({
|
|
|
13360
13380
|
TabList.displayName = "TabList";
|
|
13361
13381
|
|
|
13362
13382
|
// src/components/Tabs/TabPanel.tsx
|
|
13363
|
-
import { jsx as
|
|
13383
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
13364
13384
|
var TabPanel = ({
|
|
13365
13385
|
active = false,
|
|
13366
13386
|
children,
|
|
@@ -13369,7 +13389,7 @@ var TabPanel = ({
|
|
|
13369
13389
|
htmlProps,
|
|
13370
13390
|
padding = "x0.25",
|
|
13371
13391
|
...rest
|
|
13372
|
-
}) => /* @__PURE__ */
|
|
13392
|
+
}) => /* @__PURE__ */ jsx317(
|
|
13373
13393
|
Box,
|
|
13374
13394
|
{
|
|
13375
13395
|
padding,
|
|
@@ -13388,7 +13408,7 @@ import {
|
|
|
13388
13408
|
cloneElement as cloneElement8,
|
|
13389
13409
|
isValidElement as isValidElement8
|
|
13390
13410
|
} from "react";
|
|
13391
|
-
import { jsx as
|
|
13411
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
13392
13412
|
var TabPanels = ({ children, ref, ...rest }) => {
|
|
13393
13413
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
13394
13414
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -13403,7 +13423,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13403
13423
|
}
|
|
13404
13424
|
});
|
|
13405
13425
|
});
|
|
13406
|
-
return /* @__PURE__ */
|
|
13426
|
+
return /* @__PURE__ */ jsx318(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13407
13427
|
};
|
|
13408
13428
|
TabPanels.displayName = "TabPanels";
|
|
13409
13429
|
|
|
@@ -13424,7 +13444,7 @@ var Tag_default = {
|
|
|
13424
13444
|
};
|
|
13425
13445
|
|
|
13426
13446
|
// src/components/Tag/Tag.tsx
|
|
13427
|
-
import { jsx as
|
|
13447
|
+
import { jsx as jsx319, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
13428
13448
|
var icons3 = {
|
|
13429
13449
|
info: InfoIcon,
|
|
13430
13450
|
danger: ErrorIcon,
|
|
@@ -13460,8 +13480,8 @@ var Tag = ({
|
|
|
13460
13480
|
rest
|
|
13461
13481
|
),
|
|
13462
13482
|
children: [
|
|
13463
|
-
withIcon && icon && /* @__PURE__ */
|
|
13464
|
-
/* @__PURE__ */
|
|
13483
|
+
withIcon && icon && /* @__PURE__ */ jsx319(Icon, { icon, iconSize: "small" }),
|
|
13484
|
+
/* @__PURE__ */ jsx319(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
13465
13485
|
]
|
|
13466
13486
|
}
|
|
13467
13487
|
);
|
|
@@ -13469,7 +13489,7 @@ var Tag = ({
|
|
|
13469
13489
|
Tag.displayName = "Tag";
|
|
13470
13490
|
|
|
13471
13491
|
// src/components/TextInput/TextInput.tsx
|
|
13472
|
-
import { useId as
|
|
13492
|
+
import { useId as useId26, useLayoutEffect as useLayoutEffect4, useRef as useRef38, useState as useState33 } from "react";
|
|
13473
13493
|
|
|
13474
13494
|
// src/components/TextInput/TextInput.module.css
|
|
13475
13495
|
var TextInput_default = {
|
|
@@ -13491,7 +13511,7 @@ var TextInput_default = {
|
|
|
13491
13511
|
};
|
|
13492
13512
|
|
|
13493
13513
|
// src/components/TextInput/TextInput.tsx
|
|
13494
|
-
import { jsx as
|
|
13514
|
+
import { jsx as jsx320, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
13495
13515
|
var TextInput = ({
|
|
13496
13516
|
label,
|
|
13497
13517
|
afterLabelContent,
|
|
@@ -13540,7 +13560,7 @@ var TextInput = ({
|
|
|
13540
13560
|
onChange(event);
|
|
13541
13561
|
}
|
|
13542
13562
|
};
|
|
13543
|
-
const generatedId =
|
|
13563
|
+
const generatedId = useId26();
|
|
13544
13564
|
const uniqueId = id != null ? id : `${generatedId}-textInput`;
|
|
13545
13565
|
const hasErrorMessage = !!errorMessage;
|
|
13546
13566
|
const hasTip = !!tip;
|
|
@@ -13587,7 +13607,7 @@ var TextInput = ({
|
|
|
13587
13607
|
let extendedInput = null;
|
|
13588
13608
|
if (hasIcon) {
|
|
13589
13609
|
extendedInput = /* @__PURE__ */ jsxs83(Box, { className: Input_default["input-group"], width: inputWidth, children: [
|
|
13590
|
-
/* @__PURE__ */
|
|
13610
|
+
/* @__PURE__ */ jsx320(
|
|
13591
13611
|
Icon,
|
|
13592
13612
|
{
|
|
13593
13613
|
icon,
|
|
@@ -13598,7 +13618,7 @@ var TextInput = ({
|
|
|
13598
13618
|
)
|
|
13599
13619
|
}
|
|
13600
13620
|
),
|
|
13601
|
-
/* @__PURE__ */
|
|
13621
|
+
/* @__PURE__ */ jsx320(
|
|
13602
13622
|
StatefulInput,
|
|
13603
13623
|
{
|
|
13604
13624
|
className: cn(
|
|
@@ -13619,7 +13639,7 @@ var TextInput = ({
|
|
|
13619
13639
|
alignItems: "center",
|
|
13620
13640
|
width: inputWidth,
|
|
13621
13641
|
children: [
|
|
13622
|
-
prefix2 && /* @__PURE__ */
|
|
13642
|
+
prefix2 && /* @__PURE__ */ jsx320(
|
|
13623
13643
|
"span",
|
|
13624
13644
|
{
|
|
13625
13645
|
ref: prefixRef,
|
|
@@ -13632,7 +13652,7 @@ var TextInput = ({
|
|
|
13632
13652
|
children: prefix2
|
|
13633
13653
|
}
|
|
13634
13654
|
),
|
|
13635
|
-
/* @__PURE__ */
|
|
13655
|
+
/* @__PURE__ */ jsx320(
|
|
13636
13656
|
StatefulInput,
|
|
13637
13657
|
{
|
|
13638
13658
|
style: {
|
|
@@ -13643,7 +13663,7 @@ var TextInput = ({
|
|
|
13643
13663
|
...generalInputProps
|
|
13644
13664
|
}
|
|
13645
13665
|
),
|
|
13646
|
-
suffix && /* @__PURE__ */
|
|
13666
|
+
suffix && /* @__PURE__ */ jsx320(
|
|
13647
13667
|
"span",
|
|
13648
13668
|
{
|
|
13649
13669
|
ref: suffixRef,
|
|
@@ -13679,7 +13699,7 @@ var TextInput = ({
|
|
|
13679
13699
|
readOnly,
|
|
13680
13700
|
afterLabelContent
|
|
13681
13701
|
}),
|
|
13682
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
13702
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx320(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
|
|
13683
13703
|
hasBottomContainer && /* @__PURE__ */ jsxs83(
|
|
13684
13704
|
Box,
|
|
13685
13705
|
{
|
|
@@ -13705,7 +13725,7 @@ var TextInput = ({
|
|
|
13705
13725
|
TextInput.displayName = "TextInput";
|
|
13706
13726
|
|
|
13707
13727
|
// src/components/Toggle/Toggle.tsx
|
|
13708
|
-
import { useId as
|
|
13728
|
+
import { useId as useId27 } from "react";
|
|
13709
13729
|
|
|
13710
13730
|
// src/components/Toggle/Toggle.module.css
|
|
13711
13731
|
var Toggle_default = {
|
|
@@ -13723,7 +13743,7 @@ var Toggle_default = {
|
|
|
13723
13743
|
};
|
|
13724
13744
|
|
|
13725
13745
|
// src/components/Toggle/Toggle.tsx
|
|
13726
|
-
import { jsx as
|
|
13746
|
+
import { jsx as jsx321, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
13727
13747
|
var TOGGLE_SIZES = createSizes("medium", "large");
|
|
13728
13748
|
var Toggle = ({
|
|
13729
13749
|
id,
|
|
@@ -13740,7 +13760,7 @@ var Toggle = ({
|
|
|
13740
13760
|
...rest
|
|
13741
13761
|
}) => {
|
|
13742
13762
|
const { t } = useTranslation();
|
|
13743
|
-
const generatedId =
|
|
13763
|
+
const generatedId = useId27();
|
|
13744
13764
|
const uniqueId = id != null ? id : `${generatedId}-toggle`;
|
|
13745
13765
|
const iconSize = size2 === "large" ? "medium" : "small";
|
|
13746
13766
|
const [checked, setChecked] = useControllableState({
|
|
@@ -13760,7 +13780,7 @@ var Toggle = ({
|
|
|
13760
13780
|
readOnly && Toggle_default["label--read-only"]
|
|
13761
13781
|
),
|
|
13762
13782
|
children: [
|
|
13763
|
-
/* @__PURE__ */
|
|
13783
|
+
/* @__PURE__ */ jsx321(
|
|
13764
13784
|
HiddenInput,
|
|
13765
13785
|
{
|
|
13766
13786
|
...getBaseHTMLProps(
|
|
@@ -13782,7 +13802,7 @@ var Toggle = ({
|
|
|
13782
13802
|
onClick: readOnlyClickHandler(readOnly || isLoading, htmlProps.onClick)
|
|
13783
13803
|
}
|
|
13784
13804
|
),
|
|
13785
|
-
/* @__PURE__ */
|
|
13805
|
+
/* @__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
13806
|
Icon,
|
|
13787
13807
|
{
|
|
13788
13808
|
className: Toggle_default.checkmark,
|
|
@@ -13791,7 +13811,7 @@ var Toggle = ({
|
|
|
13791
13811
|
}
|
|
13792
13812
|
) }) }),
|
|
13793
13813
|
/* @__PURE__ */ jsxs84("span", { className: cn(readOnly && Toggle_default["labeltext--readonly"]), children: [
|
|
13794
|
-
readOnly && /* @__PURE__ */
|
|
13814
|
+
readOnly && /* @__PURE__ */ jsx321(
|
|
13795
13815
|
Icon,
|
|
13796
13816
|
{
|
|
13797
13817
|
icon: LockIcon,
|
|
@@ -13801,7 +13821,7 @@ var Toggle = ({
|
|
|
13801
13821
|
),
|
|
13802
13822
|
children,
|
|
13803
13823
|
" ",
|
|
13804
|
-
isLoading && /* @__PURE__ */
|
|
13824
|
+
isLoading && /* @__PURE__ */ jsx321(VisuallyHidden, { children: t(commonTexts.loading) })
|
|
13805
13825
|
] })
|
|
13806
13826
|
]
|
|
13807
13827
|
}
|
|
@@ -13810,7 +13830,7 @@ var Toggle = ({
|
|
|
13810
13830
|
Toggle.displayName = "Toggle";
|
|
13811
13831
|
|
|
13812
13832
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13813
|
-
import { useId as
|
|
13833
|
+
import { useId as useId28, useState as useState34 } from "react";
|
|
13814
13834
|
|
|
13815
13835
|
// src/components/ToggleBar/ToggleBar.context.tsx
|
|
13816
13836
|
import { createContext as createContext20, useContext as useContext28 } from "react";
|
|
@@ -13835,7 +13855,7 @@ var ToggleBar_default = {
|
|
|
13835
13855
|
};
|
|
13836
13856
|
|
|
13837
13857
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
13838
|
-
import { jsx as
|
|
13858
|
+
import { jsx as jsx322, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
13839
13859
|
var ToggleBar = (props) => {
|
|
13840
13860
|
const {
|
|
13841
13861
|
children,
|
|
@@ -13850,7 +13870,7 @@ var ToggleBar = (props) => {
|
|
|
13850
13870
|
id,
|
|
13851
13871
|
...rest
|
|
13852
13872
|
} = props;
|
|
13853
|
-
const generatedId =
|
|
13873
|
+
const generatedId = useId28();
|
|
13854
13874
|
const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
|
|
13855
13875
|
const [groupValue, setGroupValue] = useState34(value);
|
|
13856
13876
|
const handleChange = combineHandlers(
|
|
@@ -13858,7 +13878,7 @@ var ToggleBar = (props) => {
|
|
|
13858
13878
|
(e) => onChange && onChange(e, e.target.value)
|
|
13859
13879
|
);
|
|
13860
13880
|
const labelId = label && `${uniqueId}-label`;
|
|
13861
|
-
return /* @__PURE__ */
|
|
13881
|
+
return /* @__PURE__ */ jsx322(
|
|
13862
13882
|
ToggleBarContext,
|
|
13863
13883
|
{
|
|
13864
13884
|
value: {
|
|
@@ -13876,8 +13896,8 @@ var ToggleBar = (props) => {
|
|
|
13876
13896
|
role: "radiogroup",
|
|
13877
13897
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
13878
13898
|
children: [
|
|
13879
|
-
label && /* @__PURE__ */
|
|
13880
|
-
/* @__PURE__ */
|
|
13899
|
+
label && /* @__PURE__ */ jsx322(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
|
|
13900
|
+
/* @__PURE__ */ jsx322("div", { className: ToggleBar_default.bar, children })
|
|
13881
13901
|
]
|
|
13882
13902
|
}
|
|
13883
13903
|
)
|
|
@@ -13887,8 +13907,8 @@ var ToggleBar = (props) => {
|
|
|
13887
13907
|
ToggleBar.displayName = "ToggleBar";
|
|
13888
13908
|
|
|
13889
13909
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
13890
|
-
import { useId as
|
|
13891
|
-
import { jsx as
|
|
13910
|
+
import { useId as useId29 } from "react";
|
|
13911
|
+
import { jsx as jsx323, jsxs as jsxs86 } from "react/jsx-runtime";
|
|
13892
13912
|
var typographyTypes3 = {
|
|
13893
13913
|
large: "bodyLarge",
|
|
13894
13914
|
medium: "bodyMedium",
|
|
@@ -13919,7 +13939,7 @@ var ToggleRadio = ({
|
|
|
13919
13939
|
id,
|
|
13920
13940
|
...rest
|
|
13921
13941
|
}) => {
|
|
13922
|
-
const generatedId =
|
|
13942
|
+
const generatedId = useId29();
|
|
13923
13943
|
const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
|
|
13924
13944
|
const group = useToggleBarContext();
|
|
13925
13945
|
const handleChange = (event) => {
|
|
@@ -13929,7 +13949,7 @@ var ToggleRadio = ({
|
|
|
13929
13949
|
};
|
|
13930
13950
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
13931
13951
|
return /* @__PURE__ */ jsxs86("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
13932
|
-
/* @__PURE__ */
|
|
13952
|
+
/* @__PURE__ */ jsx323(
|
|
13933
13953
|
HiddenInput,
|
|
13934
13954
|
{
|
|
13935
13955
|
...getBaseHTMLProps(
|
|
@@ -13958,8 +13978,8 @@ var ToggleRadio = ({
|
|
|
13958
13978
|
focus_default["focus-styled-sibling"]
|
|
13959
13979
|
),
|
|
13960
13980
|
children: [
|
|
13961
|
-
icon && /* @__PURE__ */
|
|
13962
|
-
label && /* @__PURE__ */
|
|
13981
|
+
icon && /* @__PURE__ */ jsx323(Icon, { icon, iconSize: "inherit" }),
|
|
13982
|
+
label && /* @__PURE__ */ jsx323("span", { children: label })
|
|
13963
13983
|
]
|
|
13964
13984
|
}
|
|
13965
13985
|
)
|
|
@@ -13968,7 +13988,7 @@ var ToggleRadio = ({
|
|
|
13968
13988
|
ToggleRadio.displayName = "ToggleRadio";
|
|
13969
13989
|
|
|
13970
13990
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13971
|
-
import { useId as
|
|
13991
|
+
import { useId as useId30 } from "react";
|
|
13972
13992
|
|
|
13973
13993
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
13974
13994
|
var ToggleButton_default = {
|
|
@@ -13979,7 +13999,7 @@ var ToggleButton_default = {
|
|
|
13979
13999
|
};
|
|
13980
14000
|
|
|
13981
14001
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
13982
|
-
import { jsx as
|
|
14002
|
+
import { jsx as jsx324, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
13983
14003
|
var ToggleButton = ({
|
|
13984
14004
|
id,
|
|
13985
14005
|
label,
|
|
@@ -13989,11 +14009,11 @@ var ToggleButton = ({
|
|
|
13989
14009
|
htmlProps,
|
|
13990
14010
|
...rest
|
|
13991
14011
|
}) => {
|
|
13992
|
-
const generatedId =
|
|
14012
|
+
const generatedId = useId30();
|
|
13993
14013
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
13994
14014
|
const hasIcon = !!icon;
|
|
13995
14015
|
return /* @__PURE__ */ jsxs87(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
|
|
13996
|
-
/* @__PURE__ */
|
|
14016
|
+
/* @__PURE__ */ jsx324(
|
|
13997
14017
|
HiddenInput,
|
|
13998
14018
|
{
|
|
13999
14019
|
...getBaseHTMLProps(
|
|
@@ -14016,7 +14036,7 @@ var ToggleButton = ({
|
|
|
14016
14036
|
focus_default["focus-styled-sibling"]
|
|
14017
14037
|
),
|
|
14018
14038
|
children: [
|
|
14019
|
-
hasIcon && /* @__PURE__ */
|
|
14039
|
+
hasIcon && /* @__PURE__ */ jsx324(Icon, { icon, iconSize: "inherit" }),
|
|
14020
14040
|
" ",
|
|
14021
14041
|
label
|
|
14022
14042
|
]
|
|
@@ -14027,8 +14047,8 @@ var ToggleButton = ({
|
|
|
14027
14047
|
ToggleButton.displayName = "ToggleButton";
|
|
14028
14048
|
|
|
14029
14049
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
14030
|
-
import { useId as
|
|
14031
|
-
import { jsx as
|
|
14050
|
+
import { useId as useId31 } from "react";
|
|
14051
|
+
import { jsx as jsx325, jsxs as jsxs88 } from "react/jsx-runtime";
|
|
14032
14052
|
var ToggleButtonGroup = (props) => {
|
|
14033
14053
|
const {
|
|
14034
14054
|
children,
|
|
@@ -14040,7 +14060,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14040
14060
|
htmlProps,
|
|
14041
14061
|
...rest
|
|
14042
14062
|
} = props;
|
|
14043
|
-
const generatedId =
|
|
14063
|
+
const generatedId = useId31();
|
|
14044
14064
|
const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
|
|
14045
14065
|
return /* @__PURE__ */ jsxs88(
|
|
14046
14066
|
"div",
|
|
@@ -14050,7 +14070,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14050
14070
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
14051
14071
|
children: [
|
|
14052
14072
|
renderGroupLabel({ label, id: uniqueLabelId }),
|
|
14053
|
-
/* @__PURE__ */
|
|
14073
|
+
/* @__PURE__ */ jsx325(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
|
|
14054
14074
|
]
|
|
14055
14075
|
}
|
|
14056
14076
|
);
|
|
@@ -14291,6 +14311,7 @@ export {
|
|
|
14291
14311
|
RedoIcon,
|
|
14292
14312
|
RefreshIcon,
|
|
14293
14313
|
ReplayIcon,
|
|
14314
|
+
ScaleIcon,
|
|
14294
14315
|
ScreenSize,
|
|
14295
14316
|
Search2 as Search,
|
|
14296
14317
|
SearchAutocompleteWrapper,
|