@norges-domstoler/dds-components 21.9.2 → 21.11.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 +54 -66
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +16 -7
- package/dist/index.d.ts +16 -7
- package/dist/index.js +331 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +300 -248
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -433,6 +433,7 @@ var typographyStyles_default = {
|
|
|
433
433
|
"label-medium": "typographyStyles_label-medium",
|
|
434
434
|
"label-medium--margins": "typographyStyles_label-medium--margins",
|
|
435
435
|
legend: "typographyStyles_legend",
|
|
436
|
+
caption: "typographyStyles_caption",
|
|
436
437
|
"caption--withMargins": "typographyStyles_caption--withMargins",
|
|
437
438
|
bold: "typographyStyles_bold",
|
|
438
439
|
italic: "typographyStyles_italic",
|
|
@@ -3259,8 +3260,8 @@ function useTranslation() {
|
|
|
3259
3260
|
const t = (text) => text[lang];
|
|
3260
3261
|
return { t, lang };
|
|
3261
3262
|
}
|
|
3262
|
-
function createTexts(
|
|
3263
|
-
return
|
|
3263
|
+
function createTexts(texts26) {
|
|
3264
|
+
return texts26;
|
|
3264
3265
|
}
|
|
3265
3266
|
|
|
3266
3267
|
// src/DdsProvider/DdsProvider.tsx
|
|
@@ -3656,6 +3657,7 @@ var Typography = (props) => {
|
|
|
3656
3657
|
typographyStyles_default[typographyCn],
|
|
3657
3658
|
withMargins && typographyStyles_default[`${typographyCn}--margins`],
|
|
3658
3659
|
isLegend(as) && typographyStyles_default.legend,
|
|
3660
|
+
isCaption(as) && typographyStyles_default.caption,
|
|
3659
3661
|
isCaption(as) && withMargins && typographyStyles_default["caption--withMargins"],
|
|
3660
3662
|
bold && typographyStyles_default.bold,
|
|
3661
3663
|
underline && typographyStyles_default.underline,
|
|
@@ -5953,20 +5955,19 @@ var import_react38 = require("react");
|
|
|
5953
5955
|
// src/components/date-inputs/common/DateInput.module.css
|
|
5954
5956
|
var DateInput_default = {
|
|
5955
5957
|
"date-input": "DateInput_date-input",
|
|
5956
|
-
"date-input--medium": "DateInput_date-input--medium",
|
|
5957
|
-
"date-input--small": "DateInput_date-input--small",
|
|
5958
|
-
"date-input--xsmall": "DateInput_date-input--xsmall",
|
|
5958
|
+
"date-input--medium--clearable": "DateInput_date-input--medium--clearable",
|
|
5959
|
+
"date-input--small--clearable": "DateInput_date-input--small--clearable",
|
|
5960
|
+
"date-input--xsmall--clearable": "DateInput_date-input--xsmall--clearable",
|
|
5959
5961
|
"date-segment-container": "DateInput_date-segment-container",
|
|
5960
5962
|
segment: "DateInput_segment",
|
|
5961
5963
|
segment__placeholder: "DateInput_segment__placeholder",
|
|
5962
5964
|
"segment__placeholder--invisible": "DateInput_segment__placeholder--invisible",
|
|
5963
|
-
"
|
|
5965
|
+
"clear-button": "DateInput_clear-button",
|
|
5966
|
+
"clear-button--inactive": "DateInput_clear-button--inactive",
|
|
5967
|
+
icon: "DateInput_icon",
|
|
5968
|
+
"popover-button": "DateInput_popover-button",
|
|
5964
5969
|
"icon-wrapper--disabled": "DateInput_icon-wrapper--disabled",
|
|
5965
5970
|
"icon-wrapper--readonly": "DateInput_icon-wrapper--readonly",
|
|
5966
|
-
"icon-wrapper--small": "DateInput_icon-wrapper--small",
|
|
5967
|
-
"icon-wrapper--medium": "DateInput_icon-wrapper--medium",
|
|
5968
|
-
"popover-button": "DateInput_popover-button",
|
|
5969
|
-
disabled: "DateInput_disabled",
|
|
5970
5971
|
"popover-button--readonly": "DateInput_popover-button--readonly",
|
|
5971
5972
|
popover: "DateInput_popover",
|
|
5972
5973
|
"modal-close-button-wrapper": "DateInput_modal-close-button-wrapper",
|
|
@@ -6485,7 +6486,7 @@ var texts6 = createTexts({
|
|
|
6485
6486
|
|
|
6486
6487
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6487
6488
|
var import_datepicker4 = require("@react-aria/datepicker");
|
|
6488
|
-
var
|
|
6489
|
+
var import_i18n14 = require("@react-aria/i18n");
|
|
6489
6490
|
var import_datepicker5 = require("@react-stately/datepicker");
|
|
6490
6491
|
var import_react47 = require("react");
|
|
6491
6492
|
|
|
@@ -6499,7 +6500,32 @@ var import_react45 = require("react");
|
|
|
6499
6500
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6500
6501
|
var import_button = require("@react-aria/button");
|
|
6501
6502
|
var import_react42 = require("react");
|
|
6503
|
+
|
|
6504
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
6505
|
+
var InlineIconButton_default = {
|
|
6506
|
+
button: "InlineIconButton_button"
|
|
6507
|
+
};
|
|
6508
|
+
|
|
6509
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
6502
6510
|
var import_jsx_runtime228 = require("react/jsx-runtime");
|
|
6511
|
+
var InlineIconButton = ({
|
|
6512
|
+
className,
|
|
6513
|
+
size: size2,
|
|
6514
|
+
icon,
|
|
6515
|
+
color,
|
|
6516
|
+
...rest
|
|
6517
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6518
|
+
StylelessButton,
|
|
6519
|
+
{
|
|
6520
|
+
className: cn(className, InlineIconButton_default.button, focusable),
|
|
6521
|
+
...rest,
|
|
6522
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon, { icon, iconSize: size2, color })
|
|
6523
|
+
}
|
|
6524
|
+
);
|
|
6525
|
+
InlineIconButton.displayName = "InlineIconButton";
|
|
6526
|
+
|
|
6527
|
+
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6528
|
+
var import_jsx_runtime229 = require("react/jsx-runtime");
|
|
6503
6529
|
function CalendarButton({
|
|
6504
6530
|
componentSize,
|
|
6505
6531
|
isReadOnly,
|
|
@@ -6508,22 +6534,20 @@ function CalendarButton({
|
|
|
6508
6534
|
const ref = (0, import_react42.useRef)(null);
|
|
6509
6535
|
const { buttonProps } = (0, import_button.useButton)(props, ref);
|
|
6510
6536
|
const size2 = componentSize === "xsmall" ? "small" : "medium";
|
|
6511
|
-
return /* @__PURE__ */ (0,
|
|
6512
|
-
|
|
6537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6538
|
+
InlineIconButton,
|
|
6513
6539
|
{
|
|
6514
6540
|
...buttonProps,
|
|
6515
6541
|
ref,
|
|
6516
6542
|
type: "button",
|
|
6517
6543
|
className: cn(
|
|
6518
6544
|
buttonProps.className,
|
|
6519
|
-
DateInput_default["icon-wrapper"],
|
|
6520
|
-
DateInput_default[`icon-wrapper--${size2}`],
|
|
6521
6545
|
DateInput_default["popover-button"],
|
|
6522
6546
|
isReadOnly && DateInput_default["popover-button--readonly"],
|
|
6523
|
-
!props.isDisabled && focusable
|
|
6524
|
-
props.isDisabled && "disabled"
|
|
6547
|
+
!props.isDisabled && focusable
|
|
6525
6548
|
),
|
|
6526
|
-
|
|
6549
|
+
icon: CalendarIcon,
|
|
6550
|
+
size: size2
|
|
6527
6551
|
}
|
|
6528
6552
|
);
|
|
6529
6553
|
}
|
|
@@ -6531,7 +6555,7 @@ function CalendarButton({
|
|
|
6531
6555
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6532
6556
|
var import_datepicker = require("@react-aria/datepicker");
|
|
6533
6557
|
var import_react43 = require("react");
|
|
6534
|
-
var
|
|
6558
|
+
var import_jsx_runtime230 = require("react/jsx-runtime");
|
|
6535
6559
|
var typographyTypes = {
|
|
6536
6560
|
medium: "bodyMedium",
|
|
6537
6561
|
small: "bodySmall",
|
|
@@ -6545,7 +6569,7 @@ function DateSegment({
|
|
|
6545
6569
|
var _a;
|
|
6546
6570
|
const ref = (0, import_react43.useRef)(null);
|
|
6547
6571
|
const { segmentProps } = (0, import_datepicker.useDateSegment)(segment, state, ref);
|
|
6548
|
-
return /* @__PURE__ */ (0,
|
|
6572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6549
6573
|
"div",
|
|
6550
6574
|
{
|
|
6551
6575
|
...segmentProps,
|
|
@@ -6560,7 +6584,7 @@ function DateSegment({
|
|
|
6560
6584
|
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6561
6585
|
},
|
|
6562
6586
|
children: [
|
|
6563
|
-
/* @__PURE__ */ (0,
|
|
6587
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6564
6588
|
"span",
|
|
6565
6589
|
{
|
|
6566
6590
|
"aria-hidden": "true",
|
|
@@ -6579,6 +6603,22 @@ function DateSegment({
|
|
|
6579
6603
|
}
|
|
6580
6604
|
DateSegment.displayName = "DateSegment";
|
|
6581
6605
|
|
|
6606
|
+
// src/components/helpers/ClearButton/ClearButton.tsx
|
|
6607
|
+
var import_jsx_runtime231 = require("react/jsx-runtime");
|
|
6608
|
+
var ClearButton = ({
|
|
6609
|
+
className,
|
|
6610
|
+
absolute = true,
|
|
6611
|
+
...rest
|
|
6612
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6613
|
+
InlineIconButton,
|
|
6614
|
+
{
|
|
6615
|
+
className: cn(className, absolute && utilStyles_default["center-absolute-y"]),
|
|
6616
|
+
icon: CloseSmallIcon,
|
|
6617
|
+
...rest
|
|
6618
|
+
}
|
|
6619
|
+
);
|
|
6620
|
+
ClearButton.displayName = "ClearButton";
|
|
6621
|
+
|
|
6582
6622
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6583
6623
|
var import_react44 = require("react");
|
|
6584
6624
|
|
|
@@ -6601,18 +6641,18 @@ var Input_default = {
|
|
|
6601
6641
|
};
|
|
6602
6642
|
|
|
6603
6643
|
// src/components/helpers/Input/Input.tsx
|
|
6604
|
-
var
|
|
6644
|
+
var import_jsx_runtime232 = require("react/jsx-runtime");
|
|
6605
6645
|
var Input = ({
|
|
6606
6646
|
className,
|
|
6607
6647
|
...rest
|
|
6608
|
-
}) => /* @__PURE__ */ (0,
|
|
6648
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("input", { className: cn(className, Input_default.input, focusable), ...rest });
|
|
6609
6649
|
Input.displayName = "Input";
|
|
6610
6650
|
var StatefulInput = ({
|
|
6611
6651
|
className,
|
|
6612
6652
|
componentSize = "medium",
|
|
6613
6653
|
hasErrorMessage,
|
|
6614
6654
|
...rest
|
|
6615
|
-
}) => /* @__PURE__ */ (0,
|
|
6655
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6616
6656
|
Input,
|
|
6617
6657
|
{
|
|
6618
6658
|
className: cn(
|
|
@@ -6651,7 +6691,7 @@ function getInputWidth(width, defaultW) {
|
|
|
6651
6691
|
}
|
|
6652
6692
|
|
|
6653
6693
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6654
|
-
var
|
|
6694
|
+
var import_jsx_runtime233 = require("react/jsx-runtime");
|
|
6655
6695
|
function DateInput({
|
|
6656
6696
|
errorMessage,
|
|
6657
6697
|
tip,
|
|
@@ -6665,10 +6705,12 @@ function DateInput({
|
|
|
6665
6705
|
required,
|
|
6666
6706
|
children,
|
|
6667
6707
|
prefix: button,
|
|
6708
|
+
suffix: suffixEl,
|
|
6668
6709
|
labelProps,
|
|
6669
6710
|
fieldProps,
|
|
6670
6711
|
groupProps,
|
|
6671
6712
|
width,
|
|
6713
|
+
clearable,
|
|
6672
6714
|
ref,
|
|
6673
6715
|
...props
|
|
6674
6716
|
}) {
|
|
@@ -6678,14 +6720,14 @@ function DateInput({
|
|
|
6678
6720
|
const hasLabel = props.label != null;
|
|
6679
6721
|
const hasMessage = hasErrorMessage || hasTip;
|
|
6680
6722
|
const { isOpen } = (0, import_react44.useContext)(CalendarPopoverContext);
|
|
6681
|
-
return /* @__PURE__ */ (0,
|
|
6723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6682
6724
|
"div",
|
|
6683
6725
|
{
|
|
6684
6726
|
...groupProps,
|
|
6685
6727
|
className: cn(className, Input_default.container),
|
|
6686
6728
|
ref,
|
|
6687
6729
|
children: [
|
|
6688
|
-
hasLabel && /* @__PURE__ */ (0,
|
|
6730
|
+
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6689
6731
|
Label,
|
|
6690
6732
|
{
|
|
6691
6733
|
...labelProps,
|
|
@@ -6695,7 +6737,7 @@ function DateInput({
|
|
|
6695
6737
|
children: props.label
|
|
6696
6738
|
}
|
|
6697
6739
|
),
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6740
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6699
6741
|
Box,
|
|
6700
6742
|
{
|
|
6701
6743
|
...fieldProps,
|
|
@@ -6709,7 +6751,7 @@ function DateInput({
|
|
|
6709
6751
|
Input_default[`input--${componentSize}`],
|
|
6710
6752
|
hasErrorMessage && Input_default["input--stateful-danger"],
|
|
6711
6753
|
DateInput_default["date-input"],
|
|
6712
|
-
DateInput_default[`date-input--${componentSize}`],
|
|
6754
|
+
clearable && DateInput_default[`date-input--${componentSize}--clearable`],
|
|
6713
6755
|
focus_default["focusable-within"],
|
|
6714
6756
|
isOpen && focus_default.focused,
|
|
6715
6757
|
disabled && "disabled",
|
|
@@ -6720,11 +6762,12 @@ function DateInput({
|
|
|
6720
6762
|
),
|
|
6721
6763
|
children: [
|
|
6722
6764
|
button,
|
|
6723
|
-
/* @__PURE__ */ (0,
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)("div", { className: DateInput_default["date-segment-container"], children }),
|
|
6766
|
+
suffixEl
|
|
6724
6767
|
]
|
|
6725
6768
|
}
|
|
6726
6769
|
),
|
|
6727
|
-
hasMessage && /* @__PURE__ */ (0,
|
|
6770
|
+
hasMessage && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6728
6771
|
InputMessage,
|
|
6729
6772
|
{
|
|
6730
6773
|
messageType: hasErrorMessage ? "error" : "tip",
|
|
@@ -6738,15 +6781,17 @@ function DateInput({
|
|
|
6738
6781
|
DateInput.displayName = "DateInput";
|
|
6739
6782
|
|
|
6740
6783
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6741
|
-
var
|
|
6784
|
+
var import_jsx_runtime234 = require("react/jsx-runtime");
|
|
6742
6785
|
function DateField({
|
|
6743
6786
|
componentSize = "medium",
|
|
6744
6787
|
buttonProps,
|
|
6745
6788
|
groupProps,
|
|
6746
6789
|
ref,
|
|
6790
|
+
clearable,
|
|
6747
6791
|
...props
|
|
6748
6792
|
}) {
|
|
6749
6793
|
const { locale: locale2 } = (0, import_i18n12.useLocale)();
|
|
6794
|
+
const { t } = useTranslation();
|
|
6750
6795
|
const state = (0, import_datepicker3.useDateFieldState)({
|
|
6751
6796
|
...props,
|
|
6752
6797
|
locale: locale2,
|
|
@@ -6755,7 +6800,16 @@ function DateField({
|
|
|
6755
6800
|
const internalRef = (0, import_react45.useRef)(null);
|
|
6756
6801
|
const { labelProps, fieldProps } = (0, import_datepicker2.useDateField)(props, state, internalRef);
|
|
6757
6802
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6758
|
-
|
|
6803
|
+
const showClearButton = clearable && !disabled && !props.isReadOnly;
|
|
6804
|
+
const hasPartialValue = state.segments.some(
|
|
6805
|
+
(segment) => segment.type !== "literal" && segment.placeholder !== segment.text
|
|
6806
|
+
);
|
|
6807
|
+
const hasValue = !!state.value || hasPartialValue;
|
|
6808
|
+
const clearButtonSize = componentSize === "medium" ? "medium" : "small";
|
|
6809
|
+
const clearDate = () => {
|
|
6810
|
+
state.setValue(null);
|
|
6811
|
+
};
|
|
6812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6759
6813
|
DateInput,
|
|
6760
6814
|
{
|
|
6761
6815
|
...props,
|
|
@@ -6764,10 +6818,11 @@ function DateField({
|
|
|
6764
6818
|
label: props.label,
|
|
6765
6819
|
disabled,
|
|
6766
6820
|
required: props.isRequired,
|
|
6821
|
+
clearable,
|
|
6767
6822
|
ref,
|
|
6768
6823
|
internalRef,
|
|
6769
6824
|
readOnly: props.isReadOnly,
|
|
6770
|
-
prefix: /* @__PURE__ */ (0,
|
|
6825
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6771
6826
|
CalendarButton,
|
|
6772
6827
|
{
|
|
6773
6828
|
componentSize,
|
|
@@ -6776,9 +6831,23 @@ function DateField({
|
|
|
6776
6831
|
isDisabled: disabled || props.isReadOnly
|
|
6777
6832
|
}
|
|
6778
6833
|
),
|
|
6834
|
+
suffix: showClearButton && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6835
|
+
ClearButton,
|
|
6836
|
+
{
|
|
6837
|
+
absolute: false,
|
|
6838
|
+
"aria-label": t(texts7.clearDate),
|
|
6839
|
+
"aria-hidden": !hasValue,
|
|
6840
|
+
className: cn(
|
|
6841
|
+
DateInput_default["clear-button"],
|
|
6842
|
+
!hasValue && DateInput_default["clear-button--inactive"]
|
|
6843
|
+
),
|
|
6844
|
+
size: clearButtonSize,
|
|
6845
|
+
onClick: clearDate
|
|
6846
|
+
}
|
|
6847
|
+
),
|
|
6779
6848
|
labelProps,
|
|
6780
6849
|
fieldProps,
|
|
6781
|
-
children: state.segments.map((segment, i) => /* @__PURE__ */ (0,
|
|
6850
|
+
children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6782
6851
|
DateSegment,
|
|
6783
6852
|
{
|
|
6784
6853
|
"aria-readonly": props.isReadOnly,
|
|
@@ -6792,16 +6861,24 @@ function DateField({
|
|
|
6792
6861
|
);
|
|
6793
6862
|
}
|
|
6794
6863
|
DateField.displayName = "DateField";
|
|
6864
|
+
var texts7 = createTexts({
|
|
6865
|
+
clearDate: {
|
|
6866
|
+
en: "Clear date",
|
|
6867
|
+
nb: "T\xF8m dato",
|
|
6868
|
+
no: "T\xF8m dato",
|
|
6869
|
+
nn: "T\xF8m dato"
|
|
6870
|
+
}
|
|
6871
|
+
});
|
|
6795
6872
|
|
|
6796
6873
|
// src/components/date-inputs/utils/useFocusManagerRef.ts
|
|
6797
|
-
var
|
|
6874
|
+
var import_focus17 = require("@react-aria/focus");
|
|
6798
6875
|
var import_react46 = require("react");
|
|
6799
6876
|
function useFocusManagerRef(ref) {
|
|
6800
6877
|
const domRef = (0, import_react46.useRef)(null);
|
|
6801
6878
|
(0, import_react46.useImperativeHandle)(ref, () => ({
|
|
6802
6879
|
...createDOMRef(domRef),
|
|
6803
6880
|
focus() {
|
|
6804
|
-
(0,
|
|
6881
|
+
(0, import_focus17.createFocusManager)(domRef).focusFirst({ tabbable: true });
|
|
6805
6882
|
}
|
|
6806
6883
|
}));
|
|
6807
6884
|
return domRef;
|
|
@@ -6815,7 +6892,7 @@ function createDOMRef(ref) {
|
|
|
6815
6892
|
}
|
|
6816
6893
|
|
|
6817
6894
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6818
|
-
var
|
|
6895
|
+
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
6819
6896
|
var refIsFocusable = (ref) => {
|
|
6820
6897
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6821
6898
|
};
|
|
@@ -6827,6 +6904,7 @@ function DatePicker({
|
|
|
6827
6904
|
width,
|
|
6828
6905
|
smallScreenBreakpoint,
|
|
6829
6906
|
showWeekNumbers = true,
|
|
6907
|
+
clearable = false,
|
|
6830
6908
|
ref,
|
|
6831
6909
|
...props
|
|
6832
6910
|
}) {
|
|
@@ -6839,14 +6917,14 @@ function DatePicker({
|
|
|
6839
6917
|
state,
|
|
6840
6918
|
internalRef
|
|
6841
6919
|
);
|
|
6842
|
-
return /* @__PURE__ */ (0,
|
|
6920
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(import_i18n14.I18nProvider, { locale, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
6843
6921
|
CalendarPopover,
|
|
6844
6922
|
{
|
|
6845
6923
|
isOpen: state.isOpen,
|
|
6846
6924
|
onClose: state.close,
|
|
6847
6925
|
showWeekNumbers,
|
|
6848
6926
|
children: [
|
|
6849
|
-
/* @__PURE__ */ (0,
|
|
6927
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverAnchor, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6850
6928
|
DateField,
|
|
6851
6929
|
{
|
|
6852
6930
|
...fieldProps,
|
|
@@ -6858,10 +6936,11 @@ function DatePicker({
|
|
|
6858
6936
|
errorMessage,
|
|
6859
6937
|
buttonProps,
|
|
6860
6938
|
style,
|
|
6861
|
-
width
|
|
6939
|
+
width,
|
|
6940
|
+
clearable
|
|
6862
6941
|
}
|
|
6863
6942
|
) }),
|
|
6864
|
-
/* @__PURE__ */ (0,
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Calendar, { ...calendarProps }) })
|
|
6865
6944
|
]
|
|
6866
6945
|
}
|
|
6867
6946
|
) });
|
|
@@ -6872,7 +6951,7 @@ DatePicker.displayName = "DatePicker";
|
|
|
6872
6951
|
var import_datepicker6 = require("@react-aria/datepicker");
|
|
6873
6952
|
var import_datepicker7 = require("@react-stately/datepicker");
|
|
6874
6953
|
var import_react48 = require("react");
|
|
6875
|
-
var
|
|
6954
|
+
var import_jsx_runtime236 = require("react/jsx-runtime");
|
|
6876
6955
|
function TimePicker({
|
|
6877
6956
|
componentSize = "medium",
|
|
6878
6957
|
width,
|
|
@@ -6891,7 +6970,7 @@ function TimePicker({
|
|
|
6891
6970
|
);
|
|
6892
6971
|
const iconSize = componentSize === "xsmall" ? "small" : "medium";
|
|
6893
6972
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6894
|
-
return /* @__PURE__ */ (0,
|
|
6973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
6895
6974
|
DateInput,
|
|
6896
6975
|
{
|
|
6897
6976
|
...props,
|
|
@@ -6904,19 +6983,19 @@ function TimePicker({
|
|
|
6904
6983
|
readOnly: props.isReadOnly,
|
|
6905
6984
|
labelProps,
|
|
6906
6985
|
fieldProps,
|
|
6907
|
-
prefix: /* @__PURE__ */ (0,
|
|
6908
|
-
|
|
6986
|
+
prefix: /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
6987
|
+
Icon,
|
|
6909
6988
|
{
|
|
6989
|
+
icon: TimeIcon,
|
|
6990
|
+
iconSize,
|
|
6910
6991
|
className: cn(
|
|
6911
|
-
DateInput_default
|
|
6992
|
+
DateInput_default.icon,
|
|
6912
6993
|
disabled && DateInput_default["icon-wrapper--disabled"],
|
|
6913
|
-
props.isReadOnly && DateInput_default["icon-wrapper--readonly"]
|
|
6914
|
-
|
|
6915
|
-
),
|
|
6916
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon, { icon: TimeIcon, iconSize })
|
|
6994
|
+
props.isReadOnly && DateInput_default["icon-wrapper--readonly"]
|
|
6995
|
+
)
|
|
6917
6996
|
}
|
|
6918
6997
|
),
|
|
6919
|
-
children: state.segments.map((segment, i) => /* @__PURE__ */ (0,
|
|
6998
|
+
children: state.segments.map((segment, i) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
6920
6999
|
DateSegment,
|
|
6921
7000
|
{
|
|
6922
7001
|
componentSize,
|
|
@@ -6971,7 +7050,7 @@ var DescriptionList_default = {
|
|
|
6971
7050
|
};
|
|
6972
7051
|
|
|
6973
7052
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6974
|
-
var
|
|
7053
|
+
var import_jsx_runtime237 = require("react/jsx-runtime");
|
|
6975
7054
|
var DescriptionList = ({
|
|
6976
7055
|
appearance = "default",
|
|
6977
7056
|
direction = "column",
|
|
@@ -6980,7 +7059,7 @@ var DescriptionList = ({
|
|
|
6980
7059
|
className,
|
|
6981
7060
|
htmlProps,
|
|
6982
7061
|
...rest
|
|
6983
|
-
}) => /* @__PURE__ */ (0,
|
|
7062
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
6984
7063
|
VStack,
|
|
6985
7064
|
{
|
|
6986
7065
|
as: "dl",
|
|
@@ -7005,14 +7084,14 @@ var DescriptionList = ({
|
|
|
7005
7084
|
DescriptionList.displayName = "DescriptionList";
|
|
7006
7085
|
|
|
7007
7086
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
7008
|
-
var
|
|
7087
|
+
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
7009
7088
|
var DescriptionListTerm = (props) => {
|
|
7010
|
-
return /* @__PURE__ */ (0,
|
|
7089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)("dt", { ...props });
|
|
7011
7090
|
};
|
|
7012
7091
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
7013
7092
|
|
|
7014
7093
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
7015
|
-
var
|
|
7094
|
+
var import_jsx_runtime239 = require("react/jsx-runtime");
|
|
7016
7095
|
var DescriptionListDesc = ({
|
|
7017
7096
|
children,
|
|
7018
7097
|
icon,
|
|
@@ -7020,15 +7099,15 @@ var DescriptionListDesc = ({
|
|
|
7020
7099
|
className,
|
|
7021
7100
|
htmlProps,
|
|
7022
7101
|
...rest
|
|
7023
|
-
}) => /* @__PURE__ */ (0,
|
|
7024
|
-
icon && /* @__PURE__ */ (0,
|
|
7102
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
|
|
7103
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon, { icon }),
|
|
7025
7104
|
" ",
|
|
7026
7105
|
children
|
|
7027
7106
|
] });
|
|
7028
7107
|
DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
7029
7108
|
|
|
7030
7109
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
7031
|
-
var
|
|
7110
|
+
var import_jsx_runtime240 = require("react/jsx-runtime");
|
|
7032
7111
|
var DescriptionListGroup = ({
|
|
7033
7112
|
children,
|
|
7034
7113
|
margin,
|
|
@@ -7038,7 +7117,7 @@ var DescriptionListGroup = ({
|
|
|
7038
7117
|
className,
|
|
7039
7118
|
htmlProps,
|
|
7040
7119
|
...rest
|
|
7041
|
-
}) => /* @__PURE__ */ (0,
|
|
7120
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7042
7121
|
"div",
|
|
7043
7122
|
{
|
|
7044
7123
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
|
|
@@ -7069,7 +7148,7 @@ var DetailListContext = (0, import_react49.createContext)({});
|
|
|
7069
7148
|
var useDetailListContext = () => (0, import_react49.useContext)(DetailListContext);
|
|
7070
7149
|
|
|
7071
7150
|
// src/components/DetailList/DetailList.tsx
|
|
7072
|
-
var
|
|
7151
|
+
var import_jsx_runtime241 = require("react/jsx-runtime");
|
|
7073
7152
|
var DetailList = ({
|
|
7074
7153
|
id,
|
|
7075
7154
|
className,
|
|
@@ -7079,7 +7158,7 @@ var DetailList = ({
|
|
|
7079
7158
|
size: size2 = "medium",
|
|
7080
7159
|
smallScreenBreakpoint,
|
|
7081
7160
|
...rest
|
|
7082
|
-
}) => /* @__PURE__ */ (0,
|
|
7161
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7083
7162
|
"dl",
|
|
7084
7163
|
{
|
|
7085
7164
|
...getBaseHTMLProps(
|
|
@@ -7100,17 +7179,17 @@ var DetailList = ({
|
|
|
7100
7179
|
DetailList.displayName = "DetailList";
|
|
7101
7180
|
|
|
7102
7181
|
// src/components/DetailList/DetailListDesc.tsx
|
|
7103
|
-
var
|
|
7104
|
-
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
7182
|
+
var import_jsx_runtime242 = require("react/jsx-runtime");
|
|
7183
|
+
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime242.jsx)("dd", { className: cn(className, DetailList_default.cell), ...rest });
|
|
7105
7184
|
DetailListDesc.displayName = "DetailListDesc";
|
|
7106
7185
|
|
|
7107
7186
|
// src/components/DetailList/DetailListRow.tsx
|
|
7108
|
-
var
|
|
7187
|
+
var import_jsx_runtime243 = require("react/jsx-runtime");
|
|
7109
7188
|
var DetailListRow = ({ className, ...rest }) => {
|
|
7110
7189
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
7111
7190
|
const hasBp = !!bp;
|
|
7112
|
-
return /* @__PURE__ */ (0,
|
|
7113
|
-
/* @__PURE__ */ (0,
|
|
7191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(import_jsx_runtime243.Fragment, { children: [
|
|
7192
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7114
7193
|
Box,
|
|
7115
7194
|
{
|
|
7116
7195
|
display: "table-row",
|
|
@@ -7119,7 +7198,7 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
7119
7198
|
...rest
|
|
7120
7199
|
}
|
|
7121
7200
|
),
|
|
7122
|
-
hasBp && /* @__PURE__ */ (0,
|
|
7201
|
+
hasBp && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7123
7202
|
Box,
|
|
7124
7203
|
{
|
|
7125
7204
|
display: "flex",
|
|
@@ -7134,8 +7213,8 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
7134
7213
|
DetailListRow.displayName = "DetailListRow";
|
|
7135
7214
|
|
|
7136
7215
|
// src/components/DetailList/DetailListTerm.tsx
|
|
7137
|
-
var
|
|
7138
|
-
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
7216
|
+
var import_jsx_runtime244 = require("react/jsx-runtime");
|
|
7217
|
+
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
|
|
7139
7218
|
DetailListTerm.displayName = "DetailListTerm";
|
|
7140
7219
|
|
|
7141
7220
|
// src/components/Drawer/Drawer.tsx
|
|
@@ -7162,7 +7241,7 @@ var DrawerContext = (0, import_react50.createContext)({});
|
|
|
7162
7241
|
var useDrawerContext = () => (0, import_react50.useContext)(DrawerContext);
|
|
7163
7242
|
|
|
7164
7243
|
// src/components/Drawer/Drawer.tsx
|
|
7165
|
-
var
|
|
7244
|
+
var import_jsx_runtime245 = require("react/jsx-runtime");
|
|
7166
7245
|
var DRAWER_SIZES = createSizes("small", "medium", "large");
|
|
7167
7246
|
var Drawer = ({
|
|
7168
7247
|
children,
|
|
@@ -7225,7 +7304,7 @@ var Drawer = ({
|
|
|
7225
7304
|
return "800px";
|
|
7226
7305
|
}
|
|
7227
7306
|
};
|
|
7228
|
-
const drawer = /* @__PURE__ */ (0,
|
|
7307
|
+
const drawer = /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7229
7308
|
Paper,
|
|
7230
7309
|
{
|
|
7231
7310
|
ref: combinedRef,
|
|
@@ -7257,7 +7336,7 @@ var Drawer = ({
|
|
|
7257
7336
|
elevation: 4,
|
|
7258
7337
|
"aria-labelledby": headerId,
|
|
7259
7338
|
children: [
|
|
7260
|
-
/* @__PURE__ */ (0,
|
|
7339
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7261
7340
|
HStack,
|
|
7262
7341
|
{
|
|
7263
7342
|
position: "sticky",
|
|
@@ -7267,8 +7346,8 @@ var Drawer = ({
|
|
|
7267
7346
|
paddingInline: "var(--dds-drawer-content-container-padding)",
|
|
7268
7347
|
className: Drawer_default["drawer-header"],
|
|
7269
7348
|
children: [
|
|
7270
|
-
hasHeader && /* @__PURE__ */ (0,
|
|
7271
|
-
/* @__PURE__ */ (0,
|
|
7349
|
+
hasHeader && /* @__PURE__ */ (0, import_jsx_runtime245.jsx)("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
7350
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7272
7351
|
Button,
|
|
7273
7352
|
{
|
|
7274
7353
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -7283,7 +7362,7 @@ var Drawer = ({
|
|
|
7283
7362
|
]
|
|
7284
7363
|
}
|
|
7285
7364
|
),
|
|
7286
|
-
/* @__PURE__ */ (0,
|
|
7365
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7287
7366
|
VStack,
|
|
7288
7367
|
{
|
|
7289
7368
|
gap: "x1",
|
|
@@ -7295,7 +7374,7 @@ var Drawer = ({
|
|
|
7295
7374
|
]
|
|
7296
7375
|
}
|
|
7297
7376
|
);
|
|
7298
|
-
const component = withBackdrop ? /* @__PURE__ */ (0,
|
|
7377
|
+
const component = withBackdrop ? /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7299
7378
|
Backdrop,
|
|
7300
7379
|
{
|
|
7301
7380
|
zIndex: "drawer",
|
|
@@ -7311,7 +7390,7 @@ Drawer.displayName = "Drawer";
|
|
|
7311
7390
|
|
|
7312
7391
|
// src/components/Drawer/DrawerGroup.tsx
|
|
7313
7392
|
var import_react52 = require("react");
|
|
7314
|
-
var
|
|
7393
|
+
var import_jsx_runtime246 = require("react/jsx-runtime");
|
|
7315
7394
|
var DrawerGroup = ({
|
|
7316
7395
|
children,
|
|
7317
7396
|
isInitiallyOpen,
|
|
@@ -7355,7 +7434,7 @@ var DrawerGroup = ({
|
|
|
7355
7434
|
onClick: handleOpen
|
|
7356
7435
|
}) : child);
|
|
7357
7436
|
});
|
|
7358
|
-
return /* @__PURE__ */ (0,
|
|
7437
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7359
7438
|
DrawerContext,
|
|
7360
7439
|
{
|
|
7361
7440
|
value: {
|
|
@@ -7371,14 +7450,14 @@ var DrawerGroup = ({
|
|
|
7371
7450
|
DrawerGroup.displayName = "DrawerGroup";
|
|
7372
7451
|
|
|
7373
7452
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
7374
|
-
var
|
|
7453
|
+
var import_jsx_runtime247 = require("react/jsx-runtime");
|
|
7375
7454
|
function EmptyContent({
|
|
7376
7455
|
headerText,
|
|
7377
7456
|
message,
|
|
7378
7457
|
headerHeadingLevel = 2,
|
|
7379
7458
|
...rest
|
|
7380
7459
|
}) {
|
|
7381
|
-
return /* @__PURE__ */ (0,
|
|
7460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
7382
7461
|
Paper,
|
|
7383
7462
|
{
|
|
7384
7463
|
display: "flex",
|
|
@@ -7391,9 +7470,9 @@ function EmptyContent({
|
|
|
7391
7470
|
background: "surface-medium",
|
|
7392
7471
|
borderRadius: "surface",
|
|
7393
7472
|
...rest,
|
|
7394
|
-
children: /* @__PURE__ */ (0,
|
|
7395
|
-
headerText && /* @__PURE__ */ (0,
|
|
7396
|
-
/* @__PURE__ */ (0,
|
|
7473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
|
|
7474
|
+
headerText && /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
|
|
7475
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Paragraph, { color: "text-medium", children: message })
|
|
7397
7476
|
] })
|
|
7398
7477
|
}
|
|
7399
7478
|
);
|
|
@@ -7413,7 +7492,7 @@ var FavStar_default = {
|
|
|
7413
7492
|
};
|
|
7414
7493
|
|
|
7415
7494
|
// src/components/FavStar/FavStar.tsx
|
|
7416
|
-
var
|
|
7495
|
+
var import_jsx_runtime248 = require("react/jsx-runtime");
|
|
7417
7496
|
var FAVSTAR_SIZES = createSizes("medium", "large");
|
|
7418
7497
|
var FavStar = ({
|
|
7419
7498
|
id,
|
|
@@ -7439,7 +7518,7 @@ var FavStar = ({
|
|
|
7439
7518
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
7440
7519
|
onChange
|
|
7441
7520
|
});
|
|
7442
|
-
return /* @__PURE__ */ (0,
|
|
7521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
7443
7522
|
"label",
|
|
7444
7523
|
{
|
|
7445
7524
|
className: cn(
|
|
@@ -7451,7 +7530,7 @@ var FavStar = ({
|
|
|
7451
7530
|
style,
|
|
7452
7531
|
htmlFor: id != null ? id : generatedId,
|
|
7453
7532
|
children: [
|
|
7454
|
-
/* @__PURE__ */ (0,
|
|
7533
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7455
7534
|
HiddenInput,
|
|
7456
7535
|
{
|
|
7457
7536
|
...props,
|
|
@@ -7459,11 +7538,11 @@ var FavStar = ({
|
|
|
7459
7538
|
checked,
|
|
7460
7539
|
onChange: (e) => setChecked(e.target.checked),
|
|
7461
7540
|
type: "checkbox",
|
|
7462
|
-
"aria-label": (_a = props["aria-label"]) != null ? _a : t(
|
|
7541
|
+
"aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
|
|
7463
7542
|
}
|
|
7464
7543
|
),
|
|
7465
|
-
/* @__PURE__ */ (0,
|
|
7466
|
-
/* @__PURE__ */ (0,
|
|
7544
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7545
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7467
7546
|
Icon,
|
|
7468
7547
|
{
|
|
7469
7548
|
iconSize: size2,
|
|
@@ -7476,7 +7555,7 @@ var FavStar = ({
|
|
|
7476
7555
|
);
|
|
7477
7556
|
};
|
|
7478
7557
|
FavStar.displayName = "FavStar";
|
|
7479
|
-
var
|
|
7558
|
+
var texts8 = createTexts({
|
|
7480
7559
|
favourite: {
|
|
7481
7560
|
nb: "Favoriser",
|
|
7482
7561
|
no: "Favoriser",
|
|
@@ -7516,13 +7595,13 @@ var CharCounter_default = {
|
|
|
7516
7595
|
};
|
|
7517
7596
|
|
|
7518
7597
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7519
|
-
var
|
|
7598
|
+
var import_jsx_runtime249 = require("react/jsx-runtime");
|
|
7520
7599
|
function CharCounter(props) {
|
|
7521
7600
|
const { t } = useTranslation();
|
|
7522
7601
|
const { current, max, id } = props;
|
|
7523
7602
|
const generatedId = (0, import_react54.useId)();
|
|
7524
7603
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
7525
|
-
return /* @__PURE__ */ (0,
|
|
7604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(
|
|
7526
7605
|
Typography,
|
|
7527
7606
|
{
|
|
7528
7607
|
id: uniqueId,
|
|
@@ -7531,21 +7610,21 @@ function CharCounter(props) {
|
|
|
7531
7610
|
typographyType: "bodyXsmall",
|
|
7532
7611
|
color: "textSubtle",
|
|
7533
7612
|
children: [
|
|
7534
|
-
/* @__PURE__ */ (0,
|
|
7613
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsxs)("span", { "aria-hidden": true, children: [
|
|
7535
7614
|
current,
|
|
7536
7615
|
"/",
|
|
7537
7616
|
max
|
|
7538
7617
|
] }),
|
|
7539
|
-
/* @__PURE__ */ (0,
|
|
7618
|
+
/* @__PURE__ */ (0, import_jsx_runtime249.jsx)(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
|
|
7540
7619
|
]
|
|
7541
7620
|
}
|
|
7542
7621
|
);
|
|
7543
7622
|
}
|
|
7544
7623
|
var renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
7545
7624
|
if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
|
|
7546
|
-
return /* @__PURE__ */ (0,
|
|
7625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(CharCounter, { id, max: maxLength, current: textLength });
|
|
7547
7626
|
};
|
|
7548
|
-
var
|
|
7627
|
+
var texts9 = createTexts({
|
|
7549
7628
|
charsWritten: (current, max, remain) => ({
|
|
7550
7629
|
nb: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
7551
7630
|
no: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
@@ -7555,7 +7634,7 @@ var texts8 = createTexts({
|
|
|
7555
7634
|
});
|
|
7556
7635
|
|
|
7557
7636
|
// src/components/TextArea/TextArea.tsx
|
|
7558
|
-
var
|
|
7637
|
+
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
7559
7638
|
var TextArea = ({
|
|
7560
7639
|
id,
|
|
7561
7640
|
value,
|
|
@@ -7605,8 +7684,8 @@ var TextArea = ({
|
|
|
7605
7684
|
);
|
|
7606
7685
|
const showRequiredStyling = required || !!ariaRequired;
|
|
7607
7686
|
const inputWidth = getInputWidth(width);
|
|
7608
|
-
return /* @__PURE__ */ (0,
|
|
7609
|
-
hasLabel && /* @__PURE__ */ (0,
|
|
7687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
|
|
7688
|
+
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7610
7689
|
Label,
|
|
7611
7690
|
{
|
|
7612
7691
|
showRequiredStyling,
|
|
@@ -7616,7 +7695,7 @@ var TextArea = ({
|
|
|
7616
7695
|
children: label
|
|
7617
7696
|
}
|
|
7618
7697
|
),
|
|
7619
|
-
/* @__PURE__ */ (0,
|
|
7698
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7620
7699
|
Box,
|
|
7621
7700
|
{
|
|
7622
7701
|
as: "textarea",
|
|
@@ -7649,7 +7728,7 @@ var TextArea = ({
|
|
|
7649
7728
|
...rest
|
|
7650
7729
|
}
|
|
7651
7730
|
),
|
|
7652
|
-
/* @__PURE__ */ (0,
|
|
7731
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
7653
7732
|
Box,
|
|
7654
7733
|
{
|
|
7655
7734
|
display: "flex",
|
|
@@ -7674,7 +7753,7 @@ TextArea.displayName = "TextArea";
|
|
|
7674
7753
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7675
7754
|
|
|
7676
7755
|
// src/components/Feedback/CommentComponent.tsx
|
|
7677
|
-
var
|
|
7756
|
+
var import_jsx_runtime251 = require("react/jsx-runtime");
|
|
7678
7757
|
var CommentComponent = ({
|
|
7679
7758
|
layout,
|
|
7680
7759
|
rating,
|
|
@@ -7688,9 +7767,9 @@ var CommentComponent = ({
|
|
|
7688
7767
|
handleFeedbackTextChange
|
|
7689
7768
|
}) => {
|
|
7690
7769
|
const { t } = useTranslation();
|
|
7691
|
-
return /* @__PURE__ */ (0,
|
|
7692
|
-
/* @__PURE__ */ (0,
|
|
7693
|
-
/* @__PURE__ */ (0,
|
|
7770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(VStack, { gap: "x1", children: [
|
|
7771
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7772
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
7694
7773
|
Icon,
|
|
7695
7774
|
{
|
|
7696
7775
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -7698,12 +7777,12 @@ var CommentComponent = ({
|
|
|
7698
7777
|
iconSize: getIconSize(layout)
|
|
7699
7778
|
}
|
|
7700
7779
|
),
|
|
7701
|
-
/* @__PURE__ */ (0,
|
|
7780
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Paragraph, { children: [
|
|
7702
7781
|
ratingSubmittedTitle,
|
|
7703
7782
|
" "
|
|
7704
7783
|
] })
|
|
7705
7784
|
] }),
|
|
7706
|
-
/* @__PURE__ */ (0,
|
|
7785
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
7707
7786
|
TextArea,
|
|
7708
7787
|
{
|
|
7709
7788
|
value: feedbackText,
|
|
@@ -7712,19 +7791,19 @@ var CommentComponent = ({
|
|
|
7712
7791
|
tip: textAreaTip
|
|
7713
7792
|
}
|
|
7714
7793
|
),
|
|
7715
|
-
/* @__PURE__ */ (0,
|
|
7794
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
7716
7795
|
Button,
|
|
7717
7796
|
{
|
|
7718
7797
|
purpose: "secondary",
|
|
7719
7798
|
size: "small",
|
|
7720
7799
|
onClick: handleSubmit,
|
|
7721
7800
|
loading,
|
|
7722
|
-
children: t(
|
|
7801
|
+
children: t(texts10.send)
|
|
7723
7802
|
}
|
|
7724
7803
|
)
|
|
7725
7804
|
] });
|
|
7726
7805
|
};
|
|
7727
|
-
var
|
|
7806
|
+
var texts10 = createTexts({
|
|
7728
7807
|
send: {
|
|
7729
7808
|
nb: "Send inn",
|
|
7730
7809
|
no: "Send inn",
|
|
@@ -7733,29 +7812,6 @@ var texts9 = createTexts({
|
|
|
7733
7812
|
}
|
|
7734
7813
|
});
|
|
7735
7814
|
|
|
7736
|
-
// src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
7737
|
-
var InlineIconButton_default = {
|
|
7738
|
-
button: "InlineIconButton_button"
|
|
7739
|
-
};
|
|
7740
|
-
|
|
7741
|
-
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
7742
|
-
var import_jsx_runtime250 = require("react/jsx-runtime");
|
|
7743
|
-
var InlineIconButton = ({
|
|
7744
|
-
className,
|
|
7745
|
-
size: size2,
|
|
7746
|
-
icon,
|
|
7747
|
-
color,
|
|
7748
|
-
...rest
|
|
7749
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7750
|
-
StylelessButton,
|
|
7751
|
-
{
|
|
7752
|
-
className: cn(className, InlineIconButton_default.button, focusable),
|
|
7753
|
-
...rest,
|
|
7754
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon, { icon, iconSize: size2, color })
|
|
7755
|
-
}
|
|
7756
|
-
);
|
|
7757
|
-
InlineIconButton.displayName = "InlineIconButton";
|
|
7758
|
-
|
|
7759
7815
|
// src/components/Tooltip/Tooltip.tsx
|
|
7760
7816
|
var import_react56 = require("react");
|
|
7761
7817
|
|
|
@@ -7768,7 +7824,7 @@ var Tooltip_default = {
|
|
|
7768
7824
|
};
|
|
7769
7825
|
|
|
7770
7826
|
// src/components/Tooltip/Tooltip.tsx
|
|
7771
|
-
var
|
|
7827
|
+
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
7772
7828
|
var Tooltip = ({
|
|
7773
7829
|
text,
|
|
7774
7830
|
placement = "bottom",
|
|
@@ -7859,7 +7915,7 @@ var Tooltip = ({
|
|
|
7859
7915
|
);
|
|
7860
7916
|
const openCn = keepMounted && open && inView || isTransientlyMounted ? "open" : "closed";
|
|
7861
7917
|
const ariaHidden = keepMounted ? !open : void 0;
|
|
7862
|
-
return /* @__PURE__ */ (0,
|
|
7918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
7863
7919
|
"div",
|
|
7864
7920
|
{
|
|
7865
7921
|
...getBaseHTMLProps(
|
|
@@ -7873,7 +7929,7 @@ var Tooltip = ({
|
|
|
7873
7929
|
onMouseOver: combineHandlers(openTooltip, onMouseOver),
|
|
7874
7930
|
children: [
|
|
7875
7931
|
anchorElement,
|
|
7876
|
-
!keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0,
|
|
7932
|
+
!keepMounted && (open || hasTransitionedIn) || keepMounted ? /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
7877
7933
|
Paper,
|
|
7878
7934
|
{
|
|
7879
7935
|
id: uniqueTooltipId,
|
|
@@ -7891,15 +7947,15 @@ var Tooltip = ({
|
|
|
7891
7947
|
),
|
|
7892
7948
|
children: [
|
|
7893
7949
|
text,
|
|
7894
|
-
/* @__PURE__ */ (0,
|
|
7895
|
-
/* @__PURE__ */ (0,
|
|
7950
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("svg", { width: "36", height: "9", children: [
|
|
7951
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
7896
7952
|
"path",
|
|
7897
7953
|
{
|
|
7898
7954
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7899
7955
|
className: Tooltip_default["svg-arrow__background"]
|
|
7900
7956
|
}
|
|
7901
7957
|
),
|
|
7902
|
-
/* @__PURE__ */ (0,
|
|
7958
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
7903
7959
|
"path",
|
|
7904
7960
|
{
|
|
7905
7961
|
fillRule: "evenodd",
|
|
@@ -7919,7 +7975,7 @@ var Tooltip = ({
|
|
|
7919
7975
|
Tooltip.displayName = "Tooltip";
|
|
7920
7976
|
|
|
7921
7977
|
// src/components/Feedback/RatingComponent.tsx
|
|
7922
|
-
var
|
|
7978
|
+
var import_jsx_runtime253 = require("react/jsx-runtime");
|
|
7923
7979
|
var RatingComponent = ({
|
|
7924
7980
|
layout,
|
|
7925
7981
|
ratingLabel,
|
|
@@ -7929,7 +7985,7 @@ var RatingComponent = ({
|
|
|
7929
7985
|
handleRatingChange
|
|
7930
7986
|
}) => {
|
|
7931
7987
|
const { t } = useTranslation();
|
|
7932
|
-
const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0,
|
|
7988
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
7933
7989
|
InlineIconButton,
|
|
7934
7990
|
{
|
|
7935
7991
|
"aria-label": tooltip,
|
|
@@ -7939,7 +7995,7 @@ var RatingComponent = ({
|
|
|
7939
7995
|
color: "icon-medium"
|
|
7940
7996
|
}
|
|
7941
7997
|
);
|
|
7942
|
-
return /* @__PURE__ */ (0,
|
|
7998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
7943
7999
|
"div",
|
|
7944
8000
|
{
|
|
7945
8001
|
className: cn(
|
|
@@ -7947,16 +8003,16 @@ var RatingComponent = ({
|
|
|
7947
8003
|
Feedback_default[`rating-container--${layout}`]
|
|
7948
8004
|
),
|
|
7949
8005
|
children: [
|
|
7950
|
-
/* @__PURE__ */ (0,
|
|
7951
|
-
loading ? /* @__PURE__ */ (0,
|
|
7952
|
-
/* @__PURE__ */ (0,
|
|
7953
|
-
/* @__PURE__ */ (0,
|
|
8006
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
8007
|
+
loading ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(HStack, { gap: "x1", children: [
|
|
8008
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
8009
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7954
8010
|
] })
|
|
7955
8011
|
]
|
|
7956
8012
|
}
|
|
7957
8013
|
);
|
|
7958
8014
|
};
|
|
7959
|
-
var
|
|
8015
|
+
var texts11 = createTexts({
|
|
7960
8016
|
uploadingFeedback: {
|
|
7961
8017
|
nb: "Laster opp tilbakemelding...",
|
|
7962
8018
|
no: "Laster opp tilbakemelding...",
|
|
@@ -7966,7 +8022,7 @@ var texts10 = createTexts({
|
|
|
7966
8022
|
});
|
|
7967
8023
|
|
|
7968
8024
|
// src/components/Feedback/Feedback.tsx
|
|
7969
|
-
var
|
|
8025
|
+
var import_jsx_runtime254 = require("react/jsx-runtime");
|
|
7970
8026
|
var Feedback = ({
|
|
7971
8027
|
layout = "vertical",
|
|
7972
8028
|
ratingLabel,
|
|
@@ -7990,14 +8046,14 @@ var Feedback = ({
|
|
|
7990
8046
|
const [rating, setRating] = (0, import_react57.useState)(null);
|
|
7991
8047
|
const [feedbackText, setFeedbackText] = (0, import_react57.useState)();
|
|
7992
8048
|
const [isFeedbackSubmitted, setIsFeedbackSubmitted] = (0, import_react57.useState)(false);
|
|
7993
|
-
const tRatingLabel = ratingLabel != null ? ratingLabel : t(
|
|
7994
|
-
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(
|
|
7995
|
-
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(
|
|
7996
|
-
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(
|
|
7997
|
-
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(
|
|
7998
|
-
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(
|
|
7999
|
-
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(
|
|
8000
|
-
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(
|
|
8049
|
+
const tRatingLabel = ratingLabel != null ? ratingLabel : t(texts12.ratingQuestion);
|
|
8050
|
+
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(texts12.improvalQuestion);
|
|
8051
|
+
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(texts12.improvalQuestion);
|
|
8052
|
+
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(texts12.thanks);
|
|
8053
|
+
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(texts12.thanks);
|
|
8054
|
+
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(texts12.sensitiveInfo);
|
|
8055
|
+
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(texts12.good);
|
|
8056
|
+
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(texts12.bad);
|
|
8001
8057
|
(0, import_react57.useEffect)(() => {
|
|
8002
8058
|
if (ratingProp !== void 0) setRating(ratingProp);
|
|
8003
8059
|
}, [ratingProp]);
|
|
@@ -8021,7 +8077,7 @@ var Feedback = ({
|
|
|
8021
8077
|
if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
|
|
8022
8078
|
};
|
|
8023
8079
|
if (rating === null && !isFeedbackSubmitted) {
|
|
8024
|
-
return /* @__PURE__ */ (0,
|
|
8080
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8025
8081
|
RatingComponent,
|
|
8026
8082
|
{
|
|
8027
8083
|
layout,
|
|
@@ -8034,7 +8090,7 @@ var Feedback = ({
|
|
|
8034
8090
|
);
|
|
8035
8091
|
}
|
|
8036
8092
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
8037
|
-
return /* @__PURE__ */ (0,
|
|
8093
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
8038
8094
|
CommentComponent,
|
|
8039
8095
|
{
|
|
8040
8096
|
layout,
|
|
@@ -8050,9 +8106,9 @@ var Feedback = ({
|
|
|
8050
8106
|
}
|
|
8051
8107
|
);
|
|
8052
8108
|
}
|
|
8053
|
-
return /* @__PURE__ */ (0,
|
|
8109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Paragraph, { children: tSubmittedTitle });
|
|
8054
8110
|
};
|
|
8055
|
-
var
|
|
8111
|
+
var texts12 = createTexts({
|
|
8056
8112
|
ratingQuestion: {
|
|
8057
8113
|
nb: "Hva syns du om tjenesten?",
|
|
8058
8114
|
no: "Hva syns du om tjenesten?",
|
|
@@ -8095,13 +8151,13 @@ var texts11 = createTexts({
|
|
|
8095
8151
|
var container = "Fieldset_container";
|
|
8096
8152
|
|
|
8097
8153
|
// src/components/Fieldset/Fieldset.tsx
|
|
8098
|
-
var
|
|
8154
|
+
var import_jsx_runtime255 = require("react/jsx-runtime");
|
|
8099
8155
|
var Fieldset = ({
|
|
8100
8156
|
id,
|
|
8101
8157
|
className,
|
|
8102
8158
|
htmlProps,
|
|
8103
8159
|
...rest
|
|
8104
|
-
}) => /* @__PURE__ */ (0,
|
|
8160
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
8105
8161
|
"fieldset",
|
|
8106
8162
|
{
|
|
8107
8163
|
...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
|
|
@@ -8110,27 +8166,27 @@ var Fieldset = ({
|
|
|
8110
8166
|
Fieldset.displayName = "Fieldset";
|
|
8111
8167
|
|
|
8112
8168
|
// src/components/Fieldset/FieldsetGroup.tsx
|
|
8113
|
-
var
|
|
8169
|
+
var import_jsx_runtime256 = require("react/jsx-runtime");
|
|
8114
8170
|
var FieldsetGroup = ({
|
|
8115
8171
|
id,
|
|
8116
8172
|
className,
|
|
8117
8173
|
htmlProps,
|
|
8118
8174
|
...rest
|
|
8119
|
-
}) => /* @__PURE__ */ (0,
|
|
8175
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
|
|
8120
8176
|
FieldsetGroup.displayName = "FieldsetGroup";
|
|
8121
8177
|
|
|
8122
8178
|
// src/components/FileUploader/FileUploader.tsx
|
|
8123
8179
|
var import_react59 = require("react");
|
|
8124
8180
|
|
|
8125
8181
|
// src/components/FileUploader/ErrorList.tsx
|
|
8126
|
-
var
|
|
8182
|
+
var import_jsx_runtime257 = require("react/jsx-runtime");
|
|
8127
8183
|
var ErrorList = (props) => {
|
|
8128
8184
|
const { errors } = props;
|
|
8129
8185
|
if (errors.length < 1) {
|
|
8130
8186
|
return null;
|
|
8131
8187
|
}
|
|
8132
8188
|
if (errors.length === 1) {
|
|
8133
|
-
return /* @__PURE__ */ (0,
|
|
8189
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
8134
8190
|
InputMessage,
|
|
8135
8191
|
{
|
|
8136
8192
|
id: errors[0].id,
|
|
@@ -8139,8 +8195,8 @@ var ErrorList = (props) => {
|
|
|
8139
8195
|
}
|
|
8140
8196
|
);
|
|
8141
8197
|
}
|
|
8142
|
-
return /* @__PURE__ */ (0,
|
|
8143
|
-
return /* @__PURE__ */ (0,
|
|
8198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(StylelessList, { children: errors.map(({ id, message }) => {
|
|
8199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
8144
8200
|
InputMessage,
|
|
8145
8201
|
{
|
|
8146
8202
|
id,
|
|
@@ -8165,7 +8221,7 @@ var FileUploader_default = {
|
|
|
8165
8221
|
};
|
|
8166
8222
|
|
|
8167
8223
|
// src/components/FileUploader/File.tsx
|
|
8168
|
-
var
|
|
8224
|
+
var import_jsx_runtime258 = require("react/jsx-runtime");
|
|
8169
8225
|
var File = (props) => {
|
|
8170
8226
|
const { t } = useTranslation();
|
|
8171
8227
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
@@ -8173,8 +8229,8 @@ var File = (props) => {
|
|
|
8173
8229
|
id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
|
|
8174
8230
|
message: e
|
|
8175
8231
|
}));
|
|
8176
|
-
return /* @__PURE__ */ (0,
|
|
8177
|
-
/* @__PURE__ */ (0,
|
|
8232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)("li", { children: [
|
|
8233
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
8178
8234
|
Paper,
|
|
8179
8235
|
{
|
|
8180
8236
|
display: "flex",
|
|
@@ -8187,21 +8243,21 @@ var File = (props) => {
|
|
|
8187
8243
|
background: "surface-subtle",
|
|
8188
8244
|
className: cn(!isValid && FileUploader_default["file--invalid"]),
|
|
8189
8245
|
children: [
|
|
8190
|
-
/* @__PURE__ */ (0,
|
|
8246
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
8191
8247
|
"span",
|
|
8192
8248
|
{
|
|
8193
8249
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-medium"]),
|
|
8194
8250
|
children: stateFile.file.name
|
|
8195
8251
|
}
|
|
8196
8252
|
),
|
|
8197
|
-
/* @__PURE__ */ (0,
|
|
8253
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
8198
8254
|
Icon,
|
|
8199
8255
|
{
|
|
8200
8256
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
8201
8257
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
8202
8258
|
}
|
|
8203
8259
|
),
|
|
8204
|
-
/* @__PURE__ */ (0,
|
|
8260
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
8205
8261
|
Button,
|
|
8206
8262
|
{
|
|
8207
8263
|
size: "small",
|
|
@@ -8210,9 +8266,9 @@ var File = (props) => {
|
|
|
8210
8266
|
onClick: removeFile,
|
|
8211
8267
|
icon: CloseIcon,
|
|
8212
8268
|
htmlProps: {
|
|
8213
|
-
"aria-label": t(
|
|
8269
|
+
"aria-label": t(texts13.removeFile(stateFile.file.name)),
|
|
8214
8270
|
"aria-invalid": !isValid ? true : void 0,
|
|
8215
|
-
"aria-errormessage": !isValid ? t(
|
|
8271
|
+
"aria-errormessage": !isValid ? t(texts13.invalidFile) : void 0,
|
|
8216
8272
|
"aria-describedby": spaceSeparatedIdListGenerator(
|
|
8217
8273
|
errorsList.map((e) => e.id)
|
|
8218
8274
|
)
|
|
@@ -8222,10 +8278,10 @@ var File = (props) => {
|
|
|
8222
8278
|
]
|
|
8223
8279
|
}
|
|
8224
8280
|
),
|
|
8225
|
-
/* @__PURE__ */ (0,
|
|
8281
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(ErrorList, { errors: errorsList })
|
|
8226
8282
|
] });
|
|
8227
8283
|
};
|
|
8228
|
-
var
|
|
8284
|
+
var texts13 = createTexts({
|
|
8229
8285
|
removeFile: (file) => ({
|
|
8230
8286
|
nb: `Fjern fil ${file}`,
|
|
8231
8287
|
no: `Fjern fil ${file}`,
|
|
@@ -8523,7 +8579,7 @@ var useFileUploader = (props) => {
|
|
|
8523
8579
|
};
|
|
8524
8580
|
|
|
8525
8581
|
// src/components/FileUploader/FileUploader.tsx
|
|
8526
|
-
var
|
|
8582
|
+
var import_jsx_runtime259 = require("react/jsx-runtime");
|
|
8527
8583
|
var FileUploader = (props) => {
|
|
8528
8584
|
const {
|
|
8529
8585
|
id,
|
|
@@ -8546,7 +8602,7 @@ var FileUploader = (props) => {
|
|
|
8546
8602
|
...rest
|
|
8547
8603
|
} = props;
|
|
8548
8604
|
const { t } = useTranslation();
|
|
8549
|
-
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(
|
|
8605
|
+
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts14.dragAndDropOr);
|
|
8550
8606
|
const generatedId = (0, import_react59.useId)();
|
|
8551
8607
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8552
8608
|
const {
|
|
@@ -8573,7 +8629,7 @@ var FileUploader = (props) => {
|
|
|
8573
8629
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
8574
8630
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
8575
8631
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8576
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0,
|
|
8632
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
8577
8633
|
File,
|
|
8578
8634
|
{
|
|
8579
8635
|
parentId: uniqueId,
|
|
@@ -8588,7 +8644,7 @@ var FileUploader = (props) => {
|
|
|
8588
8644
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8589
8645
|
message: e
|
|
8590
8646
|
}));
|
|
8591
|
-
const button = /* @__PURE__ */ (0,
|
|
8647
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
8592
8648
|
Button,
|
|
8593
8649
|
{
|
|
8594
8650
|
...getButtonProps(),
|
|
@@ -8608,7 +8664,7 @@ var FileUploader = (props) => {
|
|
|
8608
8664
|
children: btnLabel
|
|
8609
8665
|
}
|
|
8610
8666
|
);
|
|
8611
|
-
return /* @__PURE__ */ (0,
|
|
8667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
8612
8668
|
Box,
|
|
8613
8669
|
{
|
|
8614
8670
|
id: uniqueId,
|
|
@@ -8616,7 +8672,7 @@ var FileUploader = (props) => {
|
|
|
8616
8672
|
width,
|
|
8617
8673
|
...rest,
|
|
8618
8674
|
children: [
|
|
8619
|
-
hasLabel && /* @__PURE__ */ (0,
|
|
8675
|
+
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
8620
8676
|
Label,
|
|
8621
8677
|
{
|
|
8622
8678
|
id: labelId,
|
|
@@ -8625,8 +8681,8 @@ var FileUploader = (props) => {
|
|
|
8625
8681
|
children: label
|
|
8626
8682
|
}
|
|
8627
8683
|
),
|
|
8628
|
-
hasTip && /* @__PURE__ */ (0,
|
|
8629
|
-
withDragAndDrop ? /* @__PURE__ */ (0,
|
|
8684
|
+
hasTip && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8685
|
+
withDragAndDrop ? /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
8630
8686
|
VStack,
|
|
8631
8687
|
{
|
|
8632
8688
|
gap: "x1",
|
|
@@ -8638,7 +8694,7 @@ var FileUploader = (props) => {
|
|
|
8638
8694
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
8639
8695
|
),
|
|
8640
8696
|
children: [
|
|
8641
|
-
/* @__PURE__ */ (0,
|
|
8697
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
8642
8698
|
"input",
|
|
8643
8699
|
{
|
|
8644
8700
|
...getInputProps(),
|
|
@@ -8647,22 +8703,22 @@ var FileUploader = (props) => {
|
|
|
8647
8703
|
}
|
|
8648
8704
|
),
|
|
8649
8705
|
tDropAreaLabel,
|
|
8650
|
-
/* @__PURE__ */ (0,
|
|
8706
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
|
|
8651
8707
|
button
|
|
8652
8708
|
]
|
|
8653
8709
|
}
|
|
8654
|
-
) : /* @__PURE__ */ (0,
|
|
8655
|
-
/* @__PURE__ */ (0,
|
|
8710
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
8711
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)("input", { ...getInputProps(), id: inputId }),
|
|
8656
8712
|
button
|
|
8657
8713
|
] }),
|
|
8658
|
-
/* @__PURE__ */ (0,
|
|
8659
|
-
!hideFileList && /* @__PURE__ */ (0,
|
|
8714
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ErrorList, { errors: rootErrorsList }),
|
|
8715
|
+
!hideFileList && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(StylelessList, { children: fileListElements })
|
|
8660
8716
|
]
|
|
8661
8717
|
}
|
|
8662
8718
|
);
|
|
8663
8719
|
};
|
|
8664
8720
|
FileUploader.displayName = "FileUploader";
|
|
8665
|
-
var
|
|
8721
|
+
var texts14 = createTexts({
|
|
8666
8722
|
dragAndDropOr: {
|
|
8667
8723
|
nb: "Dra og slipp filer her eller",
|
|
8668
8724
|
no: "Dra og slipp filer her eller",
|
|
@@ -8688,25 +8744,25 @@ var Footer_default = {
|
|
|
8688
8744
|
};
|
|
8689
8745
|
|
|
8690
8746
|
// src/components/Footer/Footer.tsx
|
|
8691
|
-
var
|
|
8692
|
-
var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
8747
|
+
var import_jsx_runtime260 = require("react/jsx-runtime");
|
|
8748
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
|
|
8693
8749
|
|
|
8694
8750
|
// src/components/Footer/FooterListHeader.tsx
|
|
8695
|
-
var
|
|
8696
|
-
var FooterListHeader = (props) => /* @__PURE__ */ (0,
|
|
8751
|
+
var import_jsx_runtime261 = require("react/jsx-runtime");
|
|
8752
|
+
var FooterListHeader = (props) => /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading, { level: 2, typographyType: "headingSmall", ...props });
|
|
8697
8753
|
|
|
8698
8754
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
8699
8755
|
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';
|
|
8700
8756
|
|
|
8701
8757
|
// src/components/Footer/FooterLogo.tsx
|
|
8702
|
-
var
|
|
8758
|
+
var import_jsx_runtime262 = require("react/jsx-runtime");
|
|
8703
8759
|
var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
8704
|
-
return /* @__PURE__ */ (0,
|
|
8760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
8705
8761
|
Box,
|
|
8706
8762
|
{
|
|
8707
8763
|
hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
|
|
8708
8764
|
width: "fit-content",
|
|
8709
|
-
children: /* @__PURE__ */ (0,
|
|
8765
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
8710
8766
|
"img",
|
|
8711
8767
|
{
|
|
8712
8768
|
height: 80,
|
|
@@ -8721,33 +8777,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
|
8721
8777
|
};
|
|
8722
8778
|
|
|
8723
8779
|
// src/components/Footer/FooterList.tsx
|
|
8724
|
-
var
|
|
8725
|
-
var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
8780
|
+
var import_jsx_runtime263 = require("react/jsx-runtime");
|
|
8781
|
+
var FooterList = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime263.jsx)(StylelessList, { className: cn(className, Footer_default.list), ...rest });
|
|
8726
8782
|
|
|
8727
8783
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8728
|
-
var
|
|
8784
|
+
var import_jsx_runtime264 = require("react/jsx-runtime");
|
|
8729
8785
|
var FooterSocialsList = ({
|
|
8730
8786
|
className,
|
|
8731
8787
|
...rest
|
|
8732
|
-
}) => /* @__PURE__ */ (0,
|
|
8788
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
|
|
8733
8789
|
|
|
8734
8790
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8735
|
-
var
|
|
8791
|
+
var import_jsx_runtime265 = require("react/jsx-runtime");
|
|
8736
8792
|
var FooterSocialsGroup = ({
|
|
8737
8793
|
className,
|
|
8738
8794
|
...rest
|
|
8739
|
-
}) => /* @__PURE__ */ (0,
|
|
8795
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime265.jsx)("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
|
|
8740
8796
|
|
|
8741
8797
|
// src/components/Footer/FooterListGroup.tsx
|
|
8742
|
-
var
|
|
8798
|
+
var import_jsx_runtime266 = require("react/jsx-runtime");
|
|
8743
8799
|
var FooterListGroup = ({
|
|
8744
8800
|
className,
|
|
8745
8801
|
...rest
|
|
8746
|
-
}) => /* @__PURE__ */ (0,
|
|
8802
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)("div", { className: cn(className, Footer_default["list-group"]), ...rest });
|
|
8747
8803
|
|
|
8748
8804
|
// src/components/Footer/FooterLeft.tsx
|
|
8749
|
-
var
|
|
8750
|
-
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
8805
|
+
var import_jsx_runtime267 = require("react/jsx-runtime");
|
|
8806
|
+
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime267.jsx)("div", { className: cn(className, Footer_default["left"]), ...rest });
|
|
8751
8807
|
|
|
8752
8808
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8753
8809
|
var import_react60 = require("react");
|
|
@@ -8764,7 +8820,7 @@ var GlobalMessage_default = {
|
|
|
8764
8820
|
};
|
|
8765
8821
|
|
|
8766
8822
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8767
|
-
var
|
|
8823
|
+
var import_jsx_runtime268 = require("react/jsx-runtime");
|
|
8768
8824
|
var icons = {
|
|
8769
8825
|
info: InfoIcon,
|
|
8770
8826
|
danger: ErrorIcon,
|
|
@@ -8783,7 +8839,7 @@ var GlobalMessage = ({
|
|
|
8783
8839
|
}) => {
|
|
8784
8840
|
const { t } = useTranslation();
|
|
8785
8841
|
const [isClosed, setClosed] = (0, import_react60.useState)(false);
|
|
8786
|
-
return !isClosed ? /* @__PURE__ */ (0,
|
|
8842
|
+
return !isClosed ? /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
|
|
8787
8843
|
"div",
|
|
8788
8844
|
{
|
|
8789
8845
|
...getBaseHTMLProps(
|
|
@@ -8798,17 +8854,17 @@ var GlobalMessage = ({
|
|
|
8798
8854
|
rest
|
|
8799
8855
|
),
|
|
8800
8856
|
children: [
|
|
8801
|
-
/* @__PURE__ */ (0,
|
|
8857
|
+
/* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
|
|
8802
8858
|
"div",
|
|
8803
8859
|
{
|
|
8804
8860
|
className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
|
|
8805
8861
|
children: [
|
|
8806
|
-
/* @__PURE__ */ (0,
|
|
8807
|
-
children != null ? children : /* @__PURE__ */ (0,
|
|
8862
|
+
/* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8863
|
+
children != null ? children : /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("span", { children: message })
|
|
8808
8864
|
]
|
|
8809
8865
|
}
|
|
8810
8866
|
),
|
|
8811
|
-
closable && /* @__PURE__ */ (0,
|
|
8867
|
+
closable && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
|
|
8812
8868
|
Button,
|
|
8813
8869
|
{
|
|
8814
8870
|
icon: CloseIcon,
|
|
@@ -8833,8 +8889,8 @@ var InlineButton_default = {
|
|
|
8833
8889
|
};
|
|
8834
8890
|
|
|
8835
8891
|
// src/components/InlineButton/InlineButton.tsx
|
|
8836
|
-
var
|
|
8837
|
-
var InlineButton = ({ className, ...rest }) => /* @__PURE__ */ (0,
|
|
8892
|
+
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
8893
|
+
var InlineButton = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
|
|
8838
8894
|
StylelessButton,
|
|
8839
8895
|
{
|
|
8840
8896
|
className: cn(
|
|
@@ -8852,7 +8908,7 @@ var import_react63 = require("react");
|
|
|
8852
8908
|
|
|
8853
8909
|
// src/components/InlineEdit/InlineEdit.context.tsx
|
|
8854
8910
|
var import_react61 = require("react");
|
|
8855
|
-
var
|
|
8911
|
+
var import_jsx_runtime270 = require("react/jsx-runtime");
|
|
8856
8912
|
var InlineEditContext = (0, import_react61.createContext)(
|
|
8857
8913
|
{}
|
|
8858
8914
|
);
|
|
@@ -8896,7 +8952,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8896
8952
|
useOnKeyDown(["Enter"], () => onExitHandler());
|
|
8897
8953
|
useOnKeyDown(["Escape"], () => onExitHandler());
|
|
8898
8954
|
useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
|
|
8899
|
-
return /* @__PURE__ */ (0,
|
|
8955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
|
|
8900
8956
|
InlineEditContext,
|
|
8901
8957
|
{
|
|
8902
8958
|
value: {
|
|
@@ -8931,15 +8987,15 @@ var InlineEdit_default = {
|
|
|
8931
8987
|
};
|
|
8932
8988
|
|
|
8933
8989
|
// src/components/InlineEdit/InlineEdit.utils.tsx
|
|
8934
|
-
var
|
|
8990
|
+
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
8935
8991
|
var inlineEditVisuallyHidden = (id, clearable) => {
|
|
8936
8992
|
const { t } = useTranslation();
|
|
8937
|
-
return /* @__PURE__ */ (0,
|
|
8938
|
-
t(
|
|
8939
|
-
!clearable && t(
|
|
8993
|
+
return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(VisuallyHidden, { id, children: [
|
|
8994
|
+
t(texts15.inlineEditInfo),
|
|
8995
|
+
!clearable && t(texts15.notClearable)
|
|
8940
8996
|
] });
|
|
8941
8997
|
};
|
|
8942
|
-
var
|
|
8998
|
+
var texts15 = createTexts({
|
|
8943
8999
|
inlineEditInfo: {
|
|
8944
9000
|
nb: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
8945
9001
|
no: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
@@ -8999,18 +9055,6 @@ function createClearChangeEvent(elementId) {
|
|
|
8999
9055
|
return clearChangeEvent;
|
|
9000
9056
|
}
|
|
9001
9057
|
|
|
9002
|
-
// src/components/helpers/ClearButton/ClearButton.tsx
|
|
9003
|
-
var import_jsx_runtime271 = require("react/jsx-runtime");
|
|
9004
|
-
var ClearButton = ({ className, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
|
|
9005
|
-
InlineIconButton,
|
|
9006
|
-
{
|
|
9007
|
-
className: cn(className, utilStyles_default["center-absolute-y"]),
|
|
9008
|
-
icon: CloseSmallIcon,
|
|
9009
|
-
...rest
|
|
9010
|
-
}
|
|
9011
|
-
);
|
|
9012
|
-
ClearButton.displayName = "ClearButton";
|
|
9013
|
-
|
|
9014
9058
|
// src/components/InlineEdit/InlineField.tsx
|
|
9015
9059
|
var import_jsx_runtime272 = require("react/jsx-runtime");
|
|
9016
9060
|
function InlineField(props) {
|
|
@@ -9279,7 +9323,7 @@ var InternalHeader = (props) => {
|
|
|
9279
9323
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
9280
9324
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
9281
9325
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
9282
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("nav", { "aria-label": t(
|
|
9326
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ (0, import_jsx_runtime277.jsx)("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
|
|
9283
9327
|
ShowHide,
|
|
9284
9328
|
{
|
|
9285
9329
|
as: StylelessList,
|
|
@@ -9343,7 +9387,7 @@ var InternalHeader = (props) => {
|
|
|
9343
9387
|
{
|
|
9344
9388
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
9345
9389
|
purpose: "tertiary",
|
|
9346
|
-
"aria-label": t(
|
|
9390
|
+
"aria-label": t(texts16.openMenu)
|
|
9347
9391
|
}
|
|
9348
9392
|
),
|
|
9349
9393
|
/* @__PURE__ */ (0, import_jsx_runtime277.jsxs)(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
@@ -9352,7 +9396,7 @@ var InternalHeader = (props) => {
|
|
|
9352
9396
|
ShowHide,
|
|
9353
9397
|
{
|
|
9354
9398
|
as: "nav",
|
|
9355
|
-
"aria-label": t(
|
|
9399
|
+
"aria-label": t(texts16.siteNavigation),
|
|
9356
9400
|
showBelow: smallScreenBreakpoint,
|
|
9357
9401
|
children: /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(OverflowMenuLink, { ...item })) })
|
|
9358
9402
|
}
|
|
@@ -9381,7 +9425,7 @@ var InternalHeader = (props) => {
|
|
|
9381
9425
|
);
|
|
9382
9426
|
};
|
|
9383
9427
|
InternalHeader.displayName = "InternalHeader";
|
|
9384
|
-
var
|
|
9428
|
+
var texts16 = createTexts({
|
|
9385
9429
|
openMenu: {
|
|
9386
9430
|
nb: "\xC5pne meny",
|
|
9387
9431
|
no: "\xC5pne meny",
|
|
@@ -10413,7 +10457,8 @@ var NativeSelect = ({
|
|
|
10413
10457
|
setHasValue(false);
|
|
10414
10458
|
onChange == null ? void 0 : onChange(clearChangeEvent);
|
|
10415
10459
|
};
|
|
10416
|
-
const iconSize = componentSize === "
|
|
10460
|
+
const iconSize = componentSize === "medium" ? "medium" : "small";
|
|
10461
|
+
const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
|
|
10417
10462
|
return /* @__PURE__ */ (0, import_jsx_runtime286.jsxs)("div", { className, style, children: [
|
|
10418
10463
|
hasLabel && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
|
|
10419
10464
|
Label,
|
|
@@ -10460,13 +10505,13 @@ var NativeSelect = ({
|
|
|
10460
10505
|
children
|
|
10461
10506
|
}
|
|
10462
10507
|
),
|
|
10463
|
-
|
|
10508
|
+
showClearButton && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
|
|
10464
10509
|
ClearButton,
|
|
10465
10510
|
{
|
|
10466
10511
|
"aria-label": t(commonTexts.clearSelect),
|
|
10467
10512
|
onClick: clearInput,
|
|
10468
10513
|
size: iconSize,
|
|
10469
|
-
className:
|
|
10514
|
+
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10470
10515
|
}
|
|
10471
10516
|
),
|
|
10472
10517
|
!multiple && /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(
|
|
@@ -10474,7 +10519,7 @@ var NativeSelect = ({
|
|
|
10474
10519
|
{
|
|
10475
10520
|
icon: ChevronDownIcon,
|
|
10476
10521
|
iconSize,
|
|
10477
|
-
className: NativeSelect_default.icon
|
|
10522
|
+
className: cn(utilStyles_default["center-absolute-y"], NativeSelect_default.icon)
|
|
10478
10523
|
}
|
|
10479
10524
|
)
|
|
10480
10525
|
] }),
|
|
@@ -10544,7 +10589,7 @@ var Pagination = ({
|
|
|
10544
10589
|
onClick: (event) => {
|
|
10545
10590
|
onPageChange(event, item);
|
|
10546
10591
|
},
|
|
10547
|
-
"aria-label": isActive ? t(
|
|
10592
|
+
"aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
|
|
10548
10593
|
children: item
|
|
10549
10594
|
}
|
|
10550
10595
|
) : /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
|
|
@@ -10564,7 +10609,7 @@ var Pagination = ({
|
|
|
10564
10609
|
onClick: (event) => {
|
|
10565
10610
|
onPageChange(event, activePage - 1);
|
|
10566
10611
|
},
|
|
10567
|
-
"aria-label": t(
|
|
10612
|
+
"aria-label": t(texts17.previousPage)
|
|
10568
10613
|
}
|
|
10569
10614
|
);
|
|
10570
10615
|
const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
|
|
@@ -10576,7 +10621,7 @@ var Pagination = ({
|
|
|
10576
10621
|
onClick: (event) => {
|
|
10577
10622
|
onPageChange(event, activePage + 1);
|
|
10578
10623
|
},
|
|
10579
|
-
"aria-label": t(
|
|
10624
|
+
"aria-label": t(texts17.nextPage)
|
|
10580
10625
|
}
|
|
10581
10626
|
);
|
|
10582
10627
|
const isOnFirstPage = activePage === 1;
|
|
@@ -10586,7 +10631,7 @@ var Pagination = ({
|
|
|
10586
10631
|
{
|
|
10587
10632
|
as: "nav",
|
|
10588
10633
|
ref,
|
|
10589
|
-
"aria-label": t(
|
|
10634
|
+
"aria-label": t(texts17.pagination),
|
|
10590
10635
|
display: "flex",
|
|
10591
10636
|
alignItems: "center",
|
|
10592
10637
|
...!withSelect && !withCounter && {
|
|
@@ -10650,7 +10695,7 @@ var Pagination = ({
|
|
|
10650
10695
|
onClick: (event) => {
|
|
10651
10696
|
onPageChange(event, 1);
|
|
10652
10697
|
},
|
|
10653
|
-
"aria-label": t(
|
|
10698
|
+
"aria-label": t(texts17.firstPage)
|
|
10654
10699
|
}
|
|
10655
10700
|
)
|
|
10656
10701
|
}
|
|
@@ -10704,7 +10749,7 @@ var Pagination = ({
|
|
|
10704
10749
|
onClick: (event) => {
|
|
10705
10750
|
onPageChange(event, pagesLength);
|
|
10706
10751
|
},
|
|
10707
|
-
"aria-label": t(
|
|
10752
|
+
"aria-label": t(texts17.lastPage)
|
|
10708
10753
|
}
|
|
10709
10754
|
)
|
|
10710
10755
|
}
|
|
@@ -10742,11 +10787,11 @@ var Pagination = ({
|
|
|
10742
10787
|
isClearable: false,
|
|
10743
10788
|
onChange: handleSelectChange,
|
|
10744
10789
|
componentSize: "small",
|
|
10745
|
-
"aria-label": t(
|
|
10790
|
+
"aria-label": t(texts17.itemsPerPage)
|
|
10746
10791
|
}
|
|
10747
10792
|
),
|
|
10748
10793
|
withCounter && /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(Paragraph, { children: t(
|
|
10749
|
-
|
|
10794
|
+
texts17.showsAmountOfTotalItems(
|
|
10750
10795
|
activePageFirstItem,
|
|
10751
10796
|
activePageLastItem,
|
|
10752
10797
|
itemsAmount
|
|
@@ -10759,7 +10804,7 @@ var Pagination = ({
|
|
|
10759
10804
|
);
|
|
10760
10805
|
};
|
|
10761
10806
|
Pagination.displayName = "Pagination";
|
|
10762
|
-
var
|
|
10807
|
+
var texts17 = createTexts({
|
|
10763
10808
|
pagination: {
|
|
10764
10809
|
nb: "Paginering",
|
|
10765
10810
|
no: "Paginering",
|
|
@@ -11276,8 +11321,8 @@ var PhoneInput = ({
|
|
|
11276
11321
|
}) => {
|
|
11277
11322
|
var _a;
|
|
11278
11323
|
const { t } = useTranslation();
|
|
11279
|
-
const tGroupLabel = groupLabel != null ? groupLabel : t(
|
|
11280
|
-
const tSelectLabel = selectLabel != null ? selectLabel : t(
|
|
11324
|
+
const tGroupLabel = groupLabel != null ? groupLabel : t(texts18.countryCodeAndPhoneNumber);
|
|
11325
|
+
const tSelectLabel = selectLabel != null ? selectLabel : t(texts18.countryCode);
|
|
11281
11326
|
const generatedId = (0, import_react73.useId)();
|
|
11282
11327
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11283
11328
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
@@ -11455,7 +11500,7 @@ var getCallingCode = (s) => {
|
|
|
11455
11500
|
var _a;
|
|
11456
11501
|
return (_a = s.substring(s.indexOf("+"), s.length)) != null ? _a : "";
|
|
11457
11502
|
};
|
|
11458
|
-
var
|
|
11503
|
+
var texts18 = createTexts({
|
|
11459
11504
|
countryCode: {
|
|
11460
11505
|
nb: "Landskode",
|
|
11461
11506
|
no: "Landskode",
|
|
@@ -11826,9 +11871,9 @@ var ProgressTrackerItem = (props) => {
|
|
|
11826
11871
|
typographyStyles_default["body-medium"]
|
|
11827
11872
|
),
|
|
11828
11873
|
children: [
|
|
11829
|
-
/* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: t(
|
|
11874
|
+
/* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
|
|
11830
11875
|
children,
|
|
11831
|
-
/* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: completed ? t(
|
|
11876
|
+
/* @__PURE__ */ (0, import_jsx_runtime291.jsx)(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
|
|
11832
11877
|
]
|
|
11833
11878
|
}
|
|
11834
11879
|
)
|
|
@@ -11869,7 +11914,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11869
11914
|
);
|
|
11870
11915
|
};
|
|
11871
11916
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11872
|
-
var
|
|
11917
|
+
var texts19 = createTexts({
|
|
11873
11918
|
stepTextBefore: (index) => ({
|
|
11874
11919
|
nb: `${index}. trinn, `,
|
|
11875
11920
|
no: `${index}. trinn, `,
|
|
@@ -11932,7 +11977,7 @@ var ProgressTracker = (() => {
|
|
|
11932
11977
|
children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
|
|
11933
11978
|
"nav",
|
|
11934
11979
|
{
|
|
11935
|
-
"aria-label": ariaLabel != null ? ariaLabel : t(
|
|
11980
|
+
"aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
|
|
11936
11981
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
11937
11982
|
children: /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
|
|
11938
11983
|
Box,
|
|
@@ -11970,7 +12015,7 @@ function passIndexPropToProgressTrackerItem(children) {
|
|
|
11970
12015
|
})
|
|
11971
12016
|
);
|
|
11972
12017
|
}
|
|
11973
|
-
var
|
|
12018
|
+
var texts20 = createTexts({
|
|
11974
12019
|
stepProgression: {
|
|
11975
12020
|
nb: "Stegprogresjon",
|
|
11976
12021
|
no: "Stegprogresjon",
|
|
@@ -12186,7 +12231,7 @@ var SearchSuggestions = ({
|
|
|
12186
12231
|
{
|
|
12187
12232
|
index,
|
|
12188
12233
|
focus: focus === index && showSuggestions,
|
|
12189
|
-
"aria-label": t(
|
|
12234
|
+
"aria-label": t(texts21.search(suggestion)),
|
|
12190
12235
|
onClick: onSuggestionClick,
|
|
12191
12236
|
"aria-setsize": suggestionsToRender.length,
|
|
12192
12237
|
"aria-posinset": index,
|
|
@@ -12200,7 +12245,7 @@ var SearchSuggestions = ({
|
|
|
12200
12245
|
);
|
|
12201
12246
|
};
|
|
12202
12247
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
12203
|
-
var
|
|
12248
|
+
var texts21 = createTexts({
|
|
12204
12249
|
search: (suggestion) => ({
|
|
12205
12250
|
no: `${suggestion} s\xF8k`,
|
|
12206
12251
|
nb: `${suggestion} s\xF8k`,
|
|
@@ -12347,13 +12392,13 @@ var Search = ({
|
|
|
12347
12392
|
componentSize
|
|
12348
12393
|
}
|
|
12349
12394
|
),
|
|
12350
|
-
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(
|
|
12395
|
+
/* @__PURE__ */ (0, import_jsx_runtime296.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
|
|
12351
12396
|
] }),
|
|
12352
12397
|
hasValue && /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
|
|
12353
12398
|
ClearButton,
|
|
12354
12399
|
{
|
|
12355
12400
|
size: getIconSize2(componentSize),
|
|
12356
|
-
"aria-label": t(
|
|
12401
|
+
"aria-label": t(texts22.clearSearch),
|
|
12357
12402
|
onClick: clearInput,
|
|
12358
12403
|
className: Search_default["clear-button"]
|
|
12359
12404
|
}
|
|
@@ -12382,7 +12427,7 @@ var Search = ({
|
|
|
12382
12427
|
size: componentSize,
|
|
12383
12428
|
onClick,
|
|
12384
12429
|
...otherButtonProps,
|
|
12385
|
-
children: buttonLabel != null ? buttonLabel :
|
|
12430
|
+
children: buttonLabel != null ? buttonLabel : t(texts22.search)
|
|
12386
12431
|
}
|
|
12387
12432
|
)
|
|
12388
12433
|
]
|
|
@@ -12393,13 +12438,19 @@ var Search = ({
|
|
|
12393
12438
|
] });
|
|
12394
12439
|
};
|
|
12395
12440
|
Search.displayName = "Search";
|
|
12396
|
-
var
|
|
12441
|
+
var texts22 = createTexts({
|
|
12397
12442
|
clearSearch: {
|
|
12398
12443
|
nb: "T\xF8m s\xF8k",
|
|
12399
12444
|
no: "T\xF8m s\xF8k",
|
|
12400
12445
|
nn: "T\xF8m s\xF8k",
|
|
12401
12446
|
en: "Clear search"
|
|
12402
12447
|
},
|
|
12448
|
+
search: {
|
|
12449
|
+
nb: "S\xF8k",
|
|
12450
|
+
no: "S\xF8k",
|
|
12451
|
+
nn: "S\xF8k",
|
|
12452
|
+
en: "Search"
|
|
12453
|
+
},
|
|
12403
12454
|
useArrowKeys: {
|
|
12404
12455
|
nb: "Bruk piltastene for \xE5 navigere i forslagene n\xE5r listen er utvidet",
|
|
12405
12456
|
no: "Bruk piltastene for \xE5 navigere i forslagene n\xE5r listen er utvidet",
|
|
@@ -12596,7 +12647,7 @@ var SplitButton = ({
|
|
|
12596
12647
|
{
|
|
12597
12648
|
...buttonStyleProps,
|
|
12598
12649
|
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
12599
|
-
"aria-label": t(
|
|
12650
|
+
"aria-label": t(texts23.moreActions),
|
|
12600
12651
|
purpose,
|
|
12601
12652
|
className: cn(
|
|
12602
12653
|
SplitButton_default.option,
|
|
@@ -12610,7 +12661,7 @@ var SplitButton = ({
|
|
|
12610
12661
|
] });
|
|
12611
12662
|
};
|
|
12612
12663
|
SplitButton.displayName = "SplitButton";
|
|
12613
|
-
var
|
|
12664
|
+
var texts23 = createTexts({
|
|
12614
12665
|
moreActions: {
|
|
12615
12666
|
nb: "Flere handlinger",
|
|
12616
12667
|
no: "Flere handlinger",
|
|
@@ -12768,7 +12819,7 @@ var SortCell = ({
|
|
|
12768
12819
|
StylelessButton,
|
|
12769
12820
|
{
|
|
12770
12821
|
onClick,
|
|
12771
|
-
"aria-description": t(
|
|
12822
|
+
"aria-description": t(texts24.changeSort),
|
|
12772
12823
|
className: cn(Table_default["sort-button"], focusable),
|
|
12773
12824
|
children: [
|
|
12774
12825
|
children,
|
|
@@ -12781,7 +12832,7 @@ var SortCell = ({
|
|
|
12781
12832
|
);
|
|
12782
12833
|
};
|
|
12783
12834
|
SortCell.displayName = "Table.SortCell";
|
|
12784
|
-
var
|
|
12835
|
+
var texts24 = createTexts({
|
|
12785
12836
|
changeSort: {
|
|
12786
12837
|
nb: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
12787
12838
|
no: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
@@ -12929,8 +12980,8 @@ var CollapsibleRow = ({
|
|
|
12929
12980
|
return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(import_jsx_runtime309.Fragment, { children: [
|
|
12930
12981
|
definingColumnCells,
|
|
12931
12982
|
/* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12932
|
-
t(
|
|
12933
|
-
/* @__PURE__ */ (0, import_jsx_runtime309.jsx)(VisuallyHidden, { children: t(
|
|
12983
|
+
t(texts25.expand),
|
|
12984
|
+
/* @__PURE__ */ (0, import_jsx_runtime309.jsx)(VisuallyHidden, { children: t(texts25.row) })
|
|
12934
12985
|
] })
|
|
12935
12986
|
] }) });
|
|
12936
12987
|
};
|
|
@@ -12967,7 +13018,7 @@ var CollapsibleRow = ({
|
|
|
12967
13018
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Row, { ref, ...rowProps(), children });
|
|
12968
13019
|
};
|
|
12969
13020
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12970
|
-
var
|
|
13021
|
+
var texts25 = createTexts({
|
|
12971
13022
|
expand: {
|
|
12972
13023
|
nb: "Utvid",
|
|
12973
13024
|
no: "Utvid",
|
|
@@ -13353,11 +13404,12 @@ var TabPanel = ({
|
|
|
13353
13404
|
id,
|
|
13354
13405
|
className,
|
|
13355
13406
|
htmlProps,
|
|
13407
|
+
padding = "x0.25",
|
|
13356
13408
|
...rest
|
|
13357
13409
|
}) => /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
|
|
13358
13410
|
Box,
|
|
13359
13411
|
{
|
|
13360
|
-
padding
|
|
13412
|
+
padding,
|
|
13361
13413
|
...getBaseHTMLProps(id, cn(className, focusable), htmlProps, rest),
|
|
13362
13414
|
tabIndex: 0,
|
|
13363
13415
|
role: "tabpanel",
|
|
@@ -13384,7 +13436,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13384
13436
|
}
|
|
13385
13437
|
});
|
|
13386
13438
|
});
|
|
13387
|
-
return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
|
|
13439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13388
13440
|
};
|
|
13389
13441
|
TabPanels.displayName = "TabPanels";
|
|
13390
13442
|
|