@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.mjs
CHANGED
|
@@ -39,6 +39,7 @@ var typographyStyles_default = {
|
|
|
39
39
|
"label-medium": "typographyStyles_label-medium",
|
|
40
40
|
"label-medium--margins": "typographyStyles_label-medium--margins",
|
|
41
41
|
legend: "typographyStyles_legend",
|
|
42
|
+
caption: "typographyStyles_caption",
|
|
42
43
|
"caption--withMargins": "typographyStyles_caption--withMargins",
|
|
43
44
|
bold: "typographyStyles_bold",
|
|
44
45
|
italic: "typographyStyles_italic",
|
|
@@ -2884,8 +2885,8 @@ function useTranslation() {
|
|
|
2884
2885
|
const t = (text) => text[lang];
|
|
2885
2886
|
return { t, lang };
|
|
2886
2887
|
}
|
|
2887
|
-
function createTexts(
|
|
2888
|
-
return
|
|
2888
|
+
function createTexts(texts26) {
|
|
2889
|
+
return texts26;
|
|
2889
2890
|
}
|
|
2890
2891
|
|
|
2891
2892
|
// src/DdsProvider/DdsProvider.tsx
|
|
@@ -3291,6 +3292,7 @@ var Typography = (props) => {
|
|
|
3291
3292
|
typographyStyles_default[typographyCn],
|
|
3292
3293
|
withMargins && typographyStyles_default[`${typographyCn}--margins`],
|
|
3293
3294
|
isLegend(as) && typographyStyles_default.legend,
|
|
3295
|
+
isCaption(as) && typographyStyles_default.caption,
|
|
3294
3296
|
isCaption(as) && withMargins && typographyStyles_default["caption--withMargins"],
|
|
3295
3297
|
bold && typographyStyles_default.bold,
|
|
3296
3298
|
underline && typographyStyles_default.underline,
|
|
@@ -5608,20 +5610,19 @@ import { useRef as useRef11 } from "react";
|
|
|
5608
5610
|
// src/components/date-inputs/common/DateInput.module.css
|
|
5609
5611
|
var DateInput_default = {
|
|
5610
5612
|
"date-input": "DateInput_date-input",
|
|
5611
|
-
"date-input--medium": "DateInput_date-input--medium",
|
|
5612
|
-
"date-input--small": "DateInput_date-input--small",
|
|
5613
|
-
"date-input--xsmall": "DateInput_date-input--xsmall",
|
|
5613
|
+
"date-input--medium--clearable": "DateInput_date-input--medium--clearable",
|
|
5614
|
+
"date-input--small--clearable": "DateInput_date-input--small--clearable",
|
|
5615
|
+
"date-input--xsmall--clearable": "DateInput_date-input--xsmall--clearable",
|
|
5614
5616
|
"date-segment-container": "DateInput_date-segment-container",
|
|
5615
5617
|
segment: "DateInput_segment",
|
|
5616
5618
|
segment__placeholder: "DateInput_segment__placeholder",
|
|
5617
5619
|
"segment__placeholder--invisible": "DateInput_segment__placeholder--invisible",
|
|
5618
|
-
"
|
|
5620
|
+
"clear-button": "DateInput_clear-button",
|
|
5621
|
+
"clear-button--inactive": "DateInput_clear-button--inactive",
|
|
5622
|
+
icon: "DateInput_icon",
|
|
5623
|
+
"popover-button": "DateInput_popover-button",
|
|
5619
5624
|
"icon-wrapper--disabled": "DateInput_icon-wrapper--disabled",
|
|
5620
5625
|
"icon-wrapper--readonly": "DateInput_icon-wrapper--readonly",
|
|
5621
|
-
"icon-wrapper--small": "DateInput_icon-wrapper--small",
|
|
5622
|
-
"icon-wrapper--medium": "DateInput_icon-wrapper--medium",
|
|
5623
|
-
"popover-button": "DateInput_popover-button",
|
|
5624
|
-
disabled: "DateInput_disabled",
|
|
5625
5626
|
"popover-button--readonly": "DateInput_popover-button--readonly",
|
|
5626
5627
|
popover: "DateInput_popover",
|
|
5627
5628
|
"modal-close-button-wrapper": "DateInput_modal-close-button-wrapper",
|
|
@@ -6167,7 +6168,32 @@ import { useRef as useRef15 } from "react";
|
|
|
6167
6168
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6168
6169
|
import { useButton } from "@react-aria/button";
|
|
6169
6170
|
import { useRef as useRef13 } from "react";
|
|
6171
|
+
|
|
6172
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
6173
|
+
var InlineIconButton_default = {
|
|
6174
|
+
button: "InlineIconButton_button"
|
|
6175
|
+
};
|
|
6176
|
+
|
|
6177
|
+
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
6170
6178
|
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
6179
|
+
var InlineIconButton = ({
|
|
6180
|
+
className,
|
|
6181
|
+
size: size2,
|
|
6182
|
+
icon,
|
|
6183
|
+
color,
|
|
6184
|
+
...rest
|
|
6185
|
+
}) => /* @__PURE__ */ jsx228(
|
|
6186
|
+
StylelessButton,
|
|
6187
|
+
{
|
|
6188
|
+
className: cn(className, InlineIconButton_default.button, focusable),
|
|
6189
|
+
...rest,
|
|
6190
|
+
children: /* @__PURE__ */ jsx228(Icon, { icon, iconSize: size2, color })
|
|
6191
|
+
}
|
|
6192
|
+
);
|
|
6193
|
+
InlineIconButton.displayName = "InlineIconButton";
|
|
6194
|
+
|
|
6195
|
+
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6196
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
6171
6197
|
function CalendarButton({
|
|
6172
6198
|
componentSize,
|
|
6173
6199
|
isReadOnly,
|
|
@@ -6176,22 +6202,20 @@ function CalendarButton({
|
|
|
6176
6202
|
const ref = useRef13(null);
|
|
6177
6203
|
const { buttonProps } = useButton(props, ref);
|
|
6178
6204
|
const size2 = componentSize === "xsmall" ? "small" : "medium";
|
|
6179
|
-
return /* @__PURE__ */
|
|
6180
|
-
|
|
6205
|
+
return /* @__PURE__ */ jsx229(
|
|
6206
|
+
InlineIconButton,
|
|
6181
6207
|
{
|
|
6182
6208
|
...buttonProps,
|
|
6183
6209
|
ref,
|
|
6184
6210
|
type: "button",
|
|
6185
6211
|
className: cn(
|
|
6186
6212
|
buttonProps.className,
|
|
6187
|
-
DateInput_default["icon-wrapper"],
|
|
6188
|
-
DateInput_default[`icon-wrapper--${size2}`],
|
|
6189
6213
|
DateInput_default["popover-button"],
|
|
6190
6214
|
isReadOnly && DateInput_default["popover-button--readonly"],
|
|
6191
|
-
!props.isDisabled && focusable
|
|
6192
|
-
props.isDisabled && "disabled"
|
|
6215
|
+
!props.isDisabled && focusable
|
|
6193
6216
|
),
|
|
6194
|
-
|
|
6217
|
+
icon: CalendarIcon,
|
|
6218
|
+
size: size2
|
|
6195
6219
|
}
|
|
6196
6220
|
);
|
|
6197
6221
|
}
|
|
@@ -6199,7 +6223,7 @@ function CalendarButton({
|
|
|
6199
6223
|
// src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
|
|
6200
6224
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6201
6225
|
import { useRef as useRef14 } from "react";
|
|
6202
|
-
import { jsx as
|
|
6226
|
+
import { jsx as jsx230, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6203
6227
|
var typographyTypes = {
|
|
6204
6228
|
medium: "bodyMedium",
|
|
6205
6229
|
small: "bodySmall",
|
|
@@ -6228,7 +6252,7 @@ function DateSegment({
|
|
|
6228
6252
|
minWidth: segment.maxValue != null ? String(segment.maxValue).length + "ch" : void 0
|
|
6229
6253
|
},
|
|
6230
6254
|
children: [
|
|
6231
|
-
/* @__PURE__ */
|
|
6255
|
+
/* @__PURE__ */ jsx230(
|
|
6232
6256
|
"span",
|
|
6233
6257
|
{
|
|
6234
6258
|
"aria-hidden": "true",
|
|
@@ -6247,6 +6271,22 @@ function DateSegment({
|
|
|
6247
6271
|
}
|
|
6248
6272
|
DateSegment.displayName = "DateSegment";
|
|
6249
6273
|
|
|
6274
|
+
// src/components/helpers/ClearButton/ClearButton.tsx
|
|
6275
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
6276
|
+
var ClearButton = ({
|
|
6277
|
+
className,
|
|
6278
|
+
absolute = true,
|
|
6279
|
+
...rest
|
|
6280
|
+
}) => /* @__PURE__ */ jsx231(
|
|
6281
|
+
InlineIconButton,
|
|
6282
|
+
{
|
|
6283
|
+
className: cn(className, absolute && utilStyles_default["center-absolute-y"]),
|
|
6284
|
+
icon: CloseSmallIcon,
|
|
6285
|
+
...rest
|
|
6286
|
+
}
|
|
6287
|
+
);
|
|
6288
|
+
ClearButton.displayName = "ClearButton";
|
|
6289
|
+
|
|
6250
6290
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6251
6291
|
import { useContext as useContext12 } from "react";
|
|
6252
6292
|
|
|
@@ -6269,18 +6309,18 @@ var Input_default = {
|
|
|
6269
6309
|
};
|
|
6270
6310
|
|
|
6271
6311
|
// src/components/helpers/Input/Input.tsx
|
|
6272
|
-
import { jsx as
|
|
6312
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
6273
6313
|
var Input = ({
|
|
6274
6314
|
className,
|
|
6275
6315
|
...rest
|
|
6276
|
-
}) => /* @__PURE__ */
|
|
6316
|
+
}) => /* @__PURE__ */ jsx232("input", { className: cn(className, Input_default.input, focusable), ...rest });
|
|
6277
6317
|
Input.displayName = "Input";
|
|
6278
6318
|
var StatefulInput = ({
|
|
6279
6319
|
className,
|
|
6280
6320
|
componentSize = "medium",
|
|
6281
6321
|
hasErrorMessage,
|
|
6282
6322
|
...rest
|
|
6283
|
-
}) => /* @__PURE__ */
|
|
6323
|
+
}) => /* @__PURE__ */ jsx232(
|
|
6284
6324
|
Input,
|
|
6285
6325
|
{
|
|
6286
6326
|
className: cn(
|
|
@@ -6319,7 +6359,7 @@ function getInputWidth(width, defaultW) {
|
|
|
6319
6359
|
}
|
|
6320
6360
|
|
|
6321
6361
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6322
|
-
import { jsx as
|
|
6362
|
+
import { jsx as jsx233, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6323
6363
|
function DateInput({
|
|
6324
6364
|
errorMessage,
|
|
6325
6365
|
tip,
|
|
@@ -6333,10 +6373,12 @@ function DateInput({
|
|
|
6333
6373
|
required,
|
|
6334
6374
|
children,
|
|
6335
6375
|
prefix: button,
|
|
6376
|
+
suffix: suffixEl,
|
|
6336
6377
|
labelProps,
|
|
6337
6378
|
fieldProps,
|
|
6338
6379
|
groupProps,
|
|
6339
6380
|
width,
|
|
6381
|
+
clearable,
|
|
6340
6382
|
ref,
|
|
6341
6383
|
...props
|
|
6342
6384
|
}) {
|
|
@@ -6353,7 +6395,7 @@ function DateInput({
|
|
|
6353
6395
|
className: cn(className, Input_default.container),
|
|
6354
6396
|
ref,
|
|
6355
6397
|
children: [
|
|
6356
|
-
hasLabel && /* @__PURE__ */
|
|
6398
|
+
hasLabel && /* @__PURE__ */ jsx233(
|
|
6357
6399
|
Label,
|
|
6358
6400
|
{
|
|
6359
6401
|
...labelProps,
|
|
@@ -6377,7 +6419,7 @@ function DateInput({
|
|
|
6377
6419
|
Input_default[`input--${componentSize}`],
|
|
6378
6420
|
hasErrorMessage && Input_default["input--stateful-danger"],
|
|
6379
6421
|
DateInput_default["date-input"],
|
|
6380
|
-
DateInput_default[`date-input--${componentSize}`],
|
|
6422
|
+
clearable && DateInput_default[`date-input--${componentSize}--clearable`],
|
|
6381
6423
|
focus_default["focusable-within"],
|
|
6382
6424
|
isOpen && focus_default.focused,
|
|
6383
6425
|
disabled && "disabled",
|
|
@@ -6388,11 +6430,12 @@ function DateInput({
|
|
|
6388
6430
|
),
|
|
6389
6431
|
children: [
|
|
6390
6432
|
button,
|
|
6391
|
-
/* @__PURE__ */
|
|
6433
|
+
/* @__PURE__ */ jsx233("div", { className: DateInput_default["date-segment-container"], children }),
|
|
6434
|
+
suffixEl
|
|
6392
6435
|
]
|
|
6393
6436
|
}
|
|
6394
6437
|
),
|
|
6395
|
-
hasMessage && /* @__PURE__ */
|
|
6438
|
+
hasMessage && /* @__PURE__ */ jsx233(
|
|
6396
6439
|
InputMessage,
|
|
6397
6440
|
{
|
|
6398
6441
|
messageType: hasErrorMessage ? "error" : "tip",
|
|
@@ -6406,15 +6449,17 @@ function DateInput({
|
|
|
6406
6449
|
DateInput.displayName = "DateInput";
|
|
6407
6450
|
|
|
6408
6451
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6409
|
-
import { jsx as
|
|
6452
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
6410
6453
|
function DateField({
|
|
6411
6454
|
componentSize = "medium",
|
|
6412
6455
|
buttonProps,
|
|
6413
6456
|
groupProps,
|
|
6414
6457
|
ref,
|
|
6458
|
+
clearable,
|
|
6415
6459
|
...props
|
|
6416
6460
|
}) {
|
|
6417
6461
|
const { locale: locale2 } = useLocale3();
|
|
6462
|
+
const { t } = useTranslation();
|
|
6418
6463
|
const state = useDateFieldState({
|
|
6419
6464
|
...props,
|
|
6420
6465
|
locale: locale2,
|
|
@@ -6423,7 +6468,16 @@ function DateField({
|
|
|
6423
6468
|
const internalRef = useRef15(null);
|
|
6424
6469
|
const { labelProps, fieldProps } = useDateField(props, state, internalRef);
|
|
6425
6470
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6426
|
-
|
|
6471
|
+
const showClearButton = clearable && !disabled && !props.isReadOnly;
|
|
6472
|
+
const hasPartialValue = state.segments.some(
|
|
6473
|
+
(segment) => segment.type !== "literal" && segment.placeholder !== segment.text
|
|
6474
|
+
);
|
|
6475
|
+
const hasValue = !!state.value || hasPartialValue;
|
|
6476
|
+
const clearButtonSize = componentSize === "medium" ? "medium" : "small";
|
|
6477
|
+
const clearDate = () => {
|
|
6478
|
+
state.setValue(null);
|
|
6479
|
+
};
|
|
6480
|
+
return /* @__PURE__ */ jsx234(
|
|
6427
6481
|
DateInput,
|
|
6428
6482
|
{
|
|
6429
6483
|
...props,
|
|
@@ -6432,10 +6486,11 @@ function DateField({
|
|
|
6432
6486
|
label: props.label,
|
|
6433
6487
|
disabled,
|
|
6434
6488
|
required: props.isRequired,
|
|
6489
|
+
clearable,
|
|
6435
6490
|
ref,
|
|
6436
6491
|
internalRef,
|
|
6437
6492
|
readOnly: props.isReadOnly,
|
|
6438
|
-
prefix: /* @__PURE__ */
|
|
6493
|
+
prefix: /* @__PURE__ */ jsx234(
|
|
6439
6494
|
CalendarButton,
|
|
6440
6495
|
{
|
|
6441
6496
|
componentSize,
|
|
@@ -6444,9 +6499,23 @@ function DateField({
|
|
|
6444
6499
|
isDisabled: disabled || props.isReadOnly
|
|
6445
6500
|
}
|
|
6446
6501
|
),
|
|
6502
|
+
suffix: showClearButton && /* @__PURE__ */ jsx234(
|
|
6503
|
+
ClearButton,
|
|
6504
|
+
{
|
|
6505
|
+
absolute: false,
|
|
6506
|
+
"aria-label": t(texts7.clearDate),
|
|
6507
|
+
"aria-hidden": !hasValue,
|
|
6508
|
+
className: cn(
|
|
6509
|
+
DateInput_default["clear-button"],
|
|
6510
|
+
!hasValue && DateInput_default["clear-button--inactive"]
|
|
6511
|
+
),
|
|
6512
|
+
size: clearButtonSize,
|
|
6513
|
+
onClick: clearDate
|
|
6514
|
+
}
|
|
6515
|
+
),
|
|
6447
6516
|
labelProps,
|
|
6448
6517
|
fieldProps,
|
|
6449
|
-
children: state.segments.map((segment, i) => /* @__PURE__ */
|
|
6518
|
+
children: state.segments.map((segment, i) => /* @__PURE__ */ jsx234(
|
|
6450
6519
|
DateSegment,
|
|
6451
6520
|
{
|
|
6452
6521
|
"aria-readonly": props.isReadOnly,
|
|
@@ -6460,6 +6529,14 @@ function DateField({
|
|
|
6460
6529
|
);
|
|
6461
6530
|
}
|
|
6462
6531
|
DateField.displayName = "DateField";
|
|
6532
|
+
var texts7 = createTexts({
|
|
6533
|
+
clearDate: {
|
|
6534
|
+
en: "Clear date",
|
|
6535
|
+
nb: "T\xF8m dato",
|
|
6536
|
+
no: "T\xF8m dato",
|
|
6537
|
+
nn: "T\xF8m dato"
|
|
6538
|
+
}
|
|
6539
|
+
});
|
|
6463
6540
|
|
|
6464
6541
|
// src/components/date-inputs/utils/useFocusManagerRef.ts
|
|
6465
6542
|
import { createFocusManager } from "@react-aria/focus";
|
|
@@ -6483,7 +6560,7 @@ function createDOMRef(ref) {
|
|
|
6483
6560
|
}
|
|
6484
6561
|
|
|
6485
6562
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6486
|
-
import { jsx as
|
|
6563
|
+
import { jsx as jsx235, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
6487
6564
|
var refIsFocusable = (ref) => {
|
|
6488
6565
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6489
6566
|
};
|
|
@@ -6495,6 +6572,7 @@ function DatePicker({
|
|
|
6495
6572
|
width,
|
|
6496
6573
|
smallScreenBreakpoint,
|
|
6497
6574
|
showWeekNumbers = true,
|
|
6575
|
+
clearable = false,
|
|
6498
6576
|
ref,
|
|
6499
6577
|
...props
|
|
6500
6578
|
}) {
|
|
@@ -6507,14 +6585,14 @@ function DatePicker({
|
|
|
6507
6585
|
state,
|
|
6508
6586
|
internalRef
|
|
6509
6587
|
);
|
|
6510
|
-
return /* @__PURE__ */
|
|
6588
|
+
return /* @__PURE__ */ jsx235(I18nProvider, { locale, children: /* @__PURE__ */ jsxs47(
|
|
6511
6589
|
CalendarPopover,
|
|
6512
6590
|
{
|
|
6513
6591
|
isOpen: state.isOpen,
|
|
6514
6592
|
onClose: state.close,
|
|
6515
6593
|
showWeekNumbers,
|
|
6516
6594
|
children: [
|
|
6517
|
-
/* @__PURE__ */
|
|
6595
|
+
/* @__PURE__ */ jsx235(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx235(
|
|
6518
6596
|
DateField,
|
|
6519
6597
|
{
|
|
6520
6598
|
...fieldProps,
|
|
@@ -6526,10 +6604,11 @@ function DatePicker({
|
|
|
6526
6604
|
errorMessage,
|
|
6527
6605
|
buttonProps,
|
|
6528
6606
|
style,
|
|
6529
|
-
width
|
|
6607
|
+
width,
|
|
6608
|
+
clearable
|
|
6530
6609
|
}
|
|
6531
6610
|
) }),
|
|
6532
|
-
/* @__PURE__ */
|
|
6611
|
+
/* @__PURE__ */ jsx235(CalendarPopoverContent, { smallScreenBreakpoint, children: /* @__PURE__ */ jsx235(Calendar, { ...calendarProps }) })
|
|
6533
6612
|
]
|
|
6534
6613
|
}
|
|
6535
6614
|
) });
|
|
@@ -6540,7 +6619,7 @@ DatePicker.displayName = "DatePicker";
|
|
|
6540
6619
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6541
6620
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6542
6621
|
import { useRef as useRef18 } from "react";
|
|
6543
|
-
import { jsx as
|
|
6622
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
6544
6623
|
function TimePicker({
|
|
6545
6624
|
componentSize = "medium",
|
|
6546
6625
|
width,
|
|
@@ -6559,7 +6638,7 @@ function TimePicker({
|
|
|
6559
6638
|
);
|
|
6560
6639
|
const iconSize = componentSize === "xsmall" ? "small" : "medium";
|
|
6561
6640
|
const disabled = props.isDisabled || !!fieldProps["aria-disabled"];
|
|
6562
|
-
return /* @__PURE__ */
|
|
6641
|
+
return /* @__PURE__ */ jsx236(
|
|
6563
6642
|
DateInput,
|
|
6564
6643
|
{
|
|
6565
6644
|
...props,
|
|
@@ -6572,19 +6651,19 @@ function TimePicker({
|
|
|
6572
6651
|
readOnly: props.isReadOnly,
|
|
6573
6652
|
labelProps,
|
|
6574
6653
|
fieldProps,
|
|
6575
|
-
prefix: /* @__PURE__ */
|
|
6576
|
-
|
|
6654
|
+
prefix: /* @__PURE__ */ jsx236(
|
|
6655
|
+
Icon,
|
|
6577
6656
|
{
|
|
6657
|
+
icon: TimeIcon,
|
|
6658
|
+
iconSize,
|
|
6578
6659
|
className: cn(
|
|
6579
|
-
DateInput_default
|
|
6660
|
+
DateInput_default.icon,
|
|
6580
6661
|
disabled && DateInput_default["icon-wrapper--disabled"],
|
|
6581
|
-
props.isReadOnly && DateInput_default["icon-wrapper--readonly"]
|
|
6582
|
-
|
|
6583
|
-
),
|
|
6584
|
-
children: /* @__PURE__ */ jsx234(Icon, { icon: TimeIcon, iconSize })
|
|
6662
|
+
props.isReadOnly && DateInput_default["icon-wrapper--readonly"]
|
|
6663
|
+
)
|
|
6585
6664
|
}
|
|
6586
6665
|
),
|
|
6587
|
-
children: state.segments.map((segment, i) => /* @__PURE__ */
|
|
6666
|
+
children: state.segments.map((segment, i) => /* @__PURE__ */ jsx236(
|
|
6588
6667
|
DateSegment,
|
|
6589
6668
|
{
|
|
6590
6669
|
componentSize,
|
|
@@ -6643,7 +6722,7 @@ var DescriptionList_default = {
|
|
|
6643
6722
|
};
|
|
6644
6723
|
|
|
6645
6724
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6646
|
-
import { jsx as
|
|
6725
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
6647
6726
|
var DescriptionList = ({
|
|
6648
6727
|
appearance = "default",
|
|
6649
6728
|
direction = "column",
|
|
@@ -6652,7 +6731,7 @@ var DescriptionList = ({
|
|
|
6652
6731
|
className,
|
|
6653
6732
|
htmlProps,
|
|
6654
6733
|
...rest
|
|
6655
|
-
}) => /* @__PURE__ */
|
|
6734
|
+
}) => /* @__PURE__ */ jsx237(
|
|
6656
6735
|
VStack,
|
|
6657
6736
|
{
|
|
6658
6737
|
as: "dl",
|
|
@@ -6677,14 +6756,14 @@ var DescriptionList = ({
|
|
|
6677
6756
|
DescriptionList.displayName = "DescriptionList";
|
|
6678
6757
|
|
|
6679
6758
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6680
|
-
import { jsx as
|
|
6759
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
6681
6760
|
var DescriptionListTerm = (props) => {
|
|
6682
|
-
return /* @__PURE__ */
|
|
6761
|
+
return /* @__PURE__ */ jsx238("dt", { ...props });
|
|
6683
6762
|
};
|
|
6684
6763
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6685
6764
|
|
|
6686
6765
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6687
|
-
import { jsx as
|
|
6766
|
+
import { jsx as jsx239, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
6688
6767
|
var DescriptionListDesc = ({
|
|
6689
6768
|
children,
|
|
6690
6769
|
icon,
|
|
@@ -6693,14 +6772,14 @@ var DescriptionListDesc = ({
|
|
|
6693
6772
|
htmlProps,
|
|
6694
6773
|
...rest
|
|
6695
6774
|
}) => /* @__PURE__ */ jsxs48("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
|
|
6696
|
-
icon && /* @__PURE__ */
|
|
6775
|
+
icon && /* @__PURE__ */ jsx239(Icon, { icon }),
|
|
6697
6776
|
" ",
|
|
6698
6777
|
children
|
|
6699
6778
|
] });
|
|
6700
6779
|
DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
6701
6780
|
|
|
6702
6781
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6703
|
-
import { jsx as
|
|
6782
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
6704
6783
|
var DescriptionListGroup = ({
|
|
6705
6784
|
children,
|
|
6706
6785
|
margin,
|
|
@@ -6710,7 +6789,7 @@ var DescriptionListGroup = ({
|
|
|
6710
6789
|
className,
|
|
6711
6790
|
htmlProps,
|
|
6712
6791
|
...rest
|
|
6713
|
-
}) => /* @__PURE__ */
|
|
6792
|
+
}) => /* @__PURE__ */ jsx240(
|
|
6714
6793
|
"div",
|
|
6715
6794
|
{
|
|
6716
6795
|
...getBaseHTMLProps(id, cn(className, DescriptionList_default.group), htmlProps, rest),
|
|
@@ -6741,7 +6820,7 @@ var DetailListContext = createContext10({});
|
|
|
6741
6820
|
var useDetailListContext = () => useContext13(DetailListContext);
|
|
6742
6821
|
|
|
6743
6822
|
// src/components/DetailList/DetailList.tsx
|
|
6744
|
-
import { jsx as
|
|
6823
|
+
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
6745
6824
|
var DetailList = ({
|
|
6746
6825
|
id,
|
|
6747
6826
|
className,
|
|
@@ -6751,7 +6830,7 @@ var DetailList = ({
|
|
|
6751
6830
|
size: size2 = "medium",
|
|
6752
6831
|
smallScreenBreakpoint,
|
|
6753
6832
|
...rest
|
|
6754
|
-
}) => /* @__PURE__ */
|
|
6833
|
+
}) => /* @__PURE__ */ jsx241(DetailListContext, { value: { smallScreenBreakpoint }, children: /* @__PURE__ */ jsx241(
|
|
6755
6834
|
"dl",
|
|
6756
6835
|
{
|
|
6757
6836
|
...getBaseHTMLProps(
|
|
@@ -6772,17 +6851,17 @@ var DetailList = ({
|
|
|
6772
6851
|
DetailList.displayName = "DetailList";
|
|
6773
6852
|
|
|
6774
6853
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6775
|
-
import { jsx as
|
|
6776
|
-
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */
|
|
6854
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
6855
|
+
var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx242("dd", { className: cn(className, DetailList_default.cell), ...rest });
|
|
6777
6856
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6778
6857
|
|
|
6779
6858
|
// src/components/DetailList/DetailListRow.tsx
|
|
6780
|
-
import { Fragment as Fragment5, jsx as
|
|
6859
|
+
import { Fragment as Fragment5, jsx as jsx243, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
6781
6860
|
var DetailListRow = ({ className, ...rest }) => {
|
|
6782
6861
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
6783
6862
|
const hasBp = !!bp;
|
|
6784
6863
|
return /* @__PURE__ */ jsxs49(Fragment5, { children: [
|
|
6785
|
-
/* @__PURE__ */
|
|
6864
|
+
/* @__PURE__ */ jsx243(
|
|
6786
6865
|
Box,
|
|
6787
6866
|
{
|
|
6788
6867
|
display: "table-row",
|
|
@@ -6791,7 +6870,7 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6791
6870
|
...rest
|
|
6792
6871
|
}
|
|
6793
6872
|
),
|
|
6794
|
-
hasBp && /* @__PURE__ */
|
|
6873
|
+
hasBp && /* @__PURE__ */ jsx243(
|
|
6795
6874
|
Box,
|
|
6796
6875
|
{
|
|
6797
6876
|
display: "flex",
|
|
@@ -6806,8 +6885,8 @@ var DetailListRow = ({ className, ...rest }) => {
|
|
|
6806
6885
|
DetailListRow.displayName = "DetailListRow";
|
|
6807
6886
|
|
|
6808
6887
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6809
|
-
import { jsx as
|
|
6810
|
-
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */
|
|
6888
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
6889
|
+
var DetailListTerm = ({ className, ...rest }) => /* @__PURE__ */ jsx244("dt", { className: cn(className, DetailList_default.cell, DetailList_default.term), ...rest });
|
|
6811
6890
|
DetailListTerm.displayName = "DetailListTerm";
|
|
6812
6891
|
|
|
6813
6892
|
// src/components/Drawer/Drawer.tsx
|
|
@@ -6838,7 +6917,7 @@ var DrawerContext = createContext11({});
|
|
|
6838
6917
|
var useDrawerContext = () => useContext14(DrawerContext);
|
|
6839
6918
|
|
|
6840
6919
|
// src/components/Drawer/Drawer.tsx
|
|
6841
|
-
import { jsx as
|
|
6920
|
+
import { jsx as jsx245, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
6842
6921
|
var DRAWER_SIZES = createSizes("small", "medium", "large");
|
|
6843
6922
|
var Drawer = ({
|
|
6844
6923
|
children,
|
|
@@ -6943,8 +7022,8 @@ var Drawer = ({
|
|
|
6943
7022
|
paddingInline: "var(--dds-drawer-content-container-padding)",
|
|
6944
7023
|
className: Drawer_default["drawer-header"],
|
|
6945
7024
|
children: [
|
|
6946
|
-
hasHeader && /* @__PURE__ */
|
|
6947
|
-
/* @__PURE__ */
|
|
7025
|
+
hasHeader && /* @__PURE__ */ jsx245("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx245(Heading, { level: 2, typographyType: "headingLarge", children: header }) : header }),
|
|
7026
|
+
/* @__PURE__ */ jsx245(
|
|
6948
7027
|
Button,
|
|
6949
7028
|
{
|
|
6950
7029
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -6959,7 +7038,7 @@ var Drawer = ({
|
|
|
6959
7038
|
]
|
|
6960
7039
|
}
|
|
6961
7040
|
),
|
|
6962
|
-
/* @__PURE__ */
|
|
7041
|
+
/* @__PURE__ */ jsx245(
|
|
6963
7042
|
VStack,
|
|
6964
7043
|
{
|
|
6965
7044
|
gap: "x1",
|
|
@@ -6971,7 +7050,7 @@ var Drawer = ({
|
|
|
6971
7050
|
]
|
|
6972
7051
|
}
|
|
6973
7052
|
);
|
|
6974
|
-
const component = withBackdrop ? /* @__PURE__ */
|
|
7053
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx245(
|
|
6975
7054
|
Backdrop,
|
|
6976
7055
|
{
|
|
6977
7056
|
zIndex: "drawer",
|
|
@@ -6994,7 +7073,7 @@ import {
|
|
|
6994
7073
|
useRef as useRef20,
|
|
6995
7074
|
useState as useState13
|
|
6996
7075
|
} from "react";
|
|
6997
|
-
import { jsx as
|
|
7076
|
+
import { jsx as jsx246 } from "react/jsx-runtime";
|
|
6998
7077
|
var DrawerGroup = ({
|
|
6999
7078
|
children,
|
|
7000
7079
|
isInitiallyOpen,
|
|
@@ -7038,7 +7117,7 @@ var DrawerGroup = ({
|
|
|
7038
7117
|
onClick: handleOpen
|
|
7039
7118
|
}) : child);
|
|
7040
7119
|
});
|
|
7041
|
-
return /* @__PURE__ */
|
|
7120
|
+
return /* @__PURE__ */ jsx246(
|
|
7042
7121
|
DrawerContext,
|
|
7043
7122
|
{
|
|
7044
7123
|
value: {
|
|
@@ -7054,14 +7133,14 @@ var DrawerGroup = ({
|
|
|
7054
7133
|
DrawerGroup.displayName = "DrawerGroup";
|
|
7055
7134
|
|
|
7056
7135
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
7057
|
-
import { jsx as
|
|
7136
|
+
import { jsx as jsx247, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
7058
7137
|
function EmptyContent({
|
|
7059
7138
|
headerText,
|
|
7060
7139
|
message,
|
|
7061
7140
|
headerHeadingLevel = 2,
|
|
7062
7141
|
...rest
|
|
7063
7142
|
}) {
|
|
7064
|
-
return /* @__PURE__ */
|
|
7143
|
+
return /* @__PURE__ */ jsx247(
|
|
7065
7144
|
Paper,
|
|
7066
7145
|
{
|
|
7067
7146
|
display: "flex",
|
|
@@ -7075,8 +7154,8 @@ function EmptyContent({
|
|
|
7075
7154
|
borderRadius: "surface",
|
|
7076
7155
|
...rest,
|
|
7077
7156
|
children: /* @__PURE__ */ jsxs51(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
|
|
7078
|
-
headerText && /* @__PURE__ */
|
|
7079
|
-
/* @__PURE__ */
|
|
7157
|
+
headerText && /* @__PURE__ */ jsx247(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
|
|
7158
|
+
/* @__PURE__ */ jsx247(Paragraph, { color: "text-medium", children: message })
|
|
7080
7159
|
] })
|
|
7081
7160
|
}
|
|
7082
7161
|
);
|
|
@@ -7096,7 +7175,7 @@ var FavStar_default = {
|
|
|
7096
7175
|
};
|
|
7097
7176
|
|
|
7098
7177
|
// src/components/FavStar/FavStar.tsx
|
|
7099
|
-
import { jsx as
|
|
7178
|
+
import { jsx as jsx248, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
7100
7179
|
var FAVSTAR_SIZES = createSizes("medium", "large");
|
|
7101
7180
|
var FavStar = ({
|
|
7102
7181
|
id,
|
|
@@ -7134,7 +7213,7 @@ var FavStar = ({
|
|
|
7134
7213
|
style,
|
|
7135
7214
|
htmlFor: id != null ? id : generatedId,
|
|
7136
7215
|
children: [
|
|
7137
|
-
/* @__PURE__ */
|
|
7216
|
+
/* @__PURE__ */ jsx248(
|
|
7138
7217
|
HiddenInput,
|
|
7139
7218
|
{
|
|
7140
7219
|
...props,
|
|
@@ -7142,11 +7221,11 @@ var FavStar = ({
|
|
|
7142
7221
|
checked,
|
|
7143
7222
|
onChange: (e) => setChecked(e.target.checked),
|
|
7144
7223
|
type: "checkbox",
|
|
7145
|
-
"aria-label": (_a = props["aria-label"]) != null ? _a : t(
|
|
7224
|
+
"aria-label": (_a = props["aria-label"]) != null ? _a : t(texts8.favourite)
|
|
7146
7225
|
}
|
|
7147
7226
|
),
|
|
7148
|
-
/* @__PURE__ */
|
|
7149
|
-
/* @__PURE__ */
|
|
7227
|
+
/* @__PURE__ */ jsx248(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
7228
|
+
/* @__PURE__ */ jsx248(
|
|
7150
7229
|
Icon,
|
|
7151
7230
|
{
|
|
7152
7231
|
iconSize: size2,
|
|
@@ -7159,7 +7238,7 @@ var FavStar = ({
|
|
|
7159
7238
|
);
|
|
7160
7239
|
};
|
|
7161
7240
|
FavStar.displayName = "FavStar";
|
|
7162
|
-
var
|
|
7241
|
+
var texts8 = createTexts({
|
|
7163
7242
|
favourite: {
|
|
7164
7243
|
nb: "Favoriser",
|
|
7165
7244
|
no: "Favoriser",
|
|
@@ -7204,7 +7283,7 @@ var CharCounter_default = {
|
|
|
7204
7283
|
};
|
|
7205
7284
|
|
|
7206
7285
|
// src/components/helpers/CharCounter/CharCounter.tsx
|
|
7207
|
-
import { jsx as
|
|
7286
|
+
import { jsx as jsx249, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
7208
7287
|
function CharCounter(props) {
|
|
7209
7288
|
const { t } = useTranslation();
|
|
7210
7289
|
const { current, max, id } = props;
|
|
@@ -7224,16 +7303,16 @@ function CharCounter(props) {
|
|
|
7224
7303
|
"/",
|
|
7225
7304
|
max
|
|
7226
7305
|
] }),
|
|
7227
|
-
/* @__PURE__ */
|
|
7306
|
+
/* @__PURE__ */ jsx249(VisuallyHidden, { children: t(texts9.charsWritten(current, max, max - current)) })
|
|
7228
7307
|
]
|
|
7229
7308
|
}
|
|
7230
7309
|
);
|
|
7231
7310
|
}
|
|
7232
7311
|
var renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
7233
7312
|
if (!!maxLength && Number.isInteger(maxLength) && maxLength > 0 && isShown)
|
|
7234
|
-
return /* @__PURE__ */
|
|
7313
|
+
return /* @__PURE__ */ jsx249(CharCounter, { id, max: maxLength, current: textLength });
|
|
7235
7314
|
};
|
|
7236
|
-
var
|
|
7315
|
+
var texts9 = createTexts({
|
|
7237
7316
|
charsWritten: (current, max, remain) => ({
|
|
7238
7317
|
nb: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
7239
7318
|
no: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
@@ -7243,7 +7322,7 @@ var texts8 = createTexts({
|
|
|
7243
7322
|
});
|
|
7244
7323
|
|
|
7245
7324
|
// src/components/TextArea/TextArea.tsx
|
|
7246
|
-
import { jsx as
|
|
7325
|
+
import { jsx as jsx250, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
7247
7326
|
var TextArea = ({
|
|
7248
7327
|
id,
|
|
7249
7328
|
value,
|
|
@@ -7294,7 +7373,7 @@ var TextArea = ({
|
|
|
7294
7373
|
const showRequiredStyling = required || !!ariaRequired;
|
|
7295
7374
|
const inputWidth = getInputWidth(width);
|
|
7296
7375
|
return /* @__PURE__ */ jsxs54("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
|
|
7297
|
-
hasLabel && /* @__PURE__ */
|
|
7376
|
+
hasLabel && /* @__PURE__ */ jsx250(
|
|
7298
7377
|
Label,
|
|
7299
7378
|
{
|
|
7300
7379
|
showRequiredStyling,
|
|
@@ -7304,7 +7383,7 @@ var TextArea = ({
|
|
|
7304
7383
|
children: label
|
|
7305
7384
|
}
|
|
7306
7385
|
),
|
|
7307
|
-
/* @__PURE__ */
|
|
7386
|
+
/* @__PURE__ */ jsx250(
|
|
7308
7387
|
Box,
|
|
7309
7388
|
{
|
|
7310
7389
|
as: "textarea",
|
|
@@ -7362,7 +7441,7 @@ TextArea.displayName = "TextArea";
|
|
|
7362
7441
|
var getIconSize = (layout) => layout === "vertical" ? "large" : "medium";
|
|
7363
7442
|
|
|
7364
7443
|
// src/components/Feedback/CommentComponent.tsx
|
|
7365
|
-
import { jsx as
|
|
7444
|
+
import { jsx as jsx251, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
7366
7445
|
var CommentComponent = ({
|
|
7367
7446
|
layout,
|
|
7368
7447
|
rating,
|
|
@@ -7378,7 +7457,7 @@ var CommentComponent = ({
|
|
|
7378
7457
|
const { t } = useTranslation();
|
|
7379
7458
|
return /* @__PURE__ */ jsxs55(VStack, { gap: "x1", children: [
|
|
7380
7459
|
/* @__PURE__ */ jsxs55("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
7381
|
-
/* @__PURE__ */
|
|
7460
|
+
/* @__PURE__ */ jsx251(
|
|
7382
7461
|
Icon,
|
|
7383
7462
|
{
|
|
7384
7463
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -7391,7 +7470,7 @@ var CommentComponent = ({
|
|
|
7391
7470
|
" "
|
|
7392
7471
|
] })
|
|
7393
7472
|
] }),
|
|
7394
|
-
/* @__PURE__ */
|
|
7473
|
+
/* @__PURE__ */ jsx251(
|
|
7395
7474
|
TextArea,
|
|
7396
7475
|
{
|
|
7397
7476
|
value: feedbackText,
|
|
@@ -7400,19 +7479,19 @@ var CommentComponent = ({
|
|
|
7400
7479
|
tip: textAreaTip
|
|
7401
7480
|
}
|
|
7402
7481
|
),
|
|
7403
|
-
/* @__PURE__ */
|
|
7482
|
+
/* @__PURE__ */ jsx251(
|
|
7404
7483
|
Button,
|
|
7405
7484
|
{
|
|
7406
7485
|
purpose: "secondary",
|
|
7407
7486
|
size: "small",
|
|
7408
7487
|
onClick: handleSubmit,
|
|
7409
7488
|
loading,
|
|
7410
|
-
children: t(
|
|
7489
|
+
children: t(texts10.send)
|
|
7411
7490
|
}
|
|
7412
7491
|
)
|
|
7413
7492
|
] });
|
|
7414
7493
|
};
|
|
7415
|
-
var
|
|
7494
|
+
var texts10 = createTexts({
|
|
7416
7495
|
send: {
|
|
7417
7496
|
nb: "Send inn",
|
|
7418
7497
|
no: "Send inn",
|
|
@@ -7421,29 +7500,6 @@ var texts9 = createTexts({
|
|
|
7421
7500
|
}
|
|
7422
7501
|
});
|
|
7423
7502
|
|
|
7424
|
-
// src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
7425
|
-
var InlineIconButton_default = {
|
|
7426
|
-
button: "InlineIconButton_button"
|
|
7427
|
-
};
|
|
7428
|
-
|
|
7429
|
-
// src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
7430
|
-
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
7431
|
-
var InlineIconButton = ({
|
|
7432
|
-
className,
|
|
7433
|
-
size: size2,
|
|
7434
|
-
icon,
|
|
7435
|
-
color,
|
|
7436
|
-
...rest
|
|
7437
|
-
}) => /* @__PURE__ */ jsx250(
|
|
7438
|
-
StylelessButton,
|
|
7439
|
-
{
|
|
7440
|
-
className: cn(className, InlineIconButton_default.button, focusable),
|
|
7441
|
-
...rest,
|
|
7442
|
-
children: /* @__PURE__ */ jsx250(Icon, { icon, iconSize: size2, color })
|
|
7443
|
-
}
|
|
7444
|
-
);
|
|
7445
|
-
InlineIconButton.displayName = "InlineIconButton";
|
|
7446
|
-
|
|
7447
7503
|
// src/components/Tooltip/Tooltip.tsx
|
|
7448
7504
|
import {
|
|
7449
7505
|
Children as ReactChildren3,
|
|
@@ -7463,7 +7519,7 @@ var Tooltip_default = {
|
|
|
7463
7519
|
};
|
|
7464
7520
|
|
|
7465
7521
|
// src/components/Tooltip/Tooltip.tsx
|
|
7466
|
-
import { jsx as
|
|
7522
|
+
import { jsx as jsx252, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
7467
7523
|
var Tooltip = ({
|
|
7468
7524
|
text,
|
|
7469
7525
|
placement = "bottom",
|
|
@@ -7586,15 +7642,15 @@ var Tooltip = ({
|
|
|
7586
7642
|
),
|
|
7587
7643
|
children: [
|
|
7588
7644
|
text,
|
|
7589
|
-
/* @__PURE__ */
|
|
7590
|
-
/* @__PURE__ */
|
|
7645
|
+
/* @__PURE__ */ jsx252("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs56("svg", { width: "36", height: "9", children: [
|
|
7646
|
+
/* @__PURE__ */ jsx252(
|
|
7591
7647
|
"path",
|
|
7592
7648
|
{
|
|
7593
7649
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
7594
7650
|
className: Tooltip_default["svg-arrow__background"]
|
|
7595
7651
|
}
|
|
7596
7652
|
),
|
|
7597
|
-
/* @__PURE__ */
|
|
7653
|
+
/* @__PURE__ */ jsx252(
|
|
7598
7654
|
"path",
|
|
7599
7655
|
{
|
|
7600
7656
|
fillRule: "evenodd",
|
|
@@ -7614,7 +7670,7 @@ var Tooltip = ({
|
|
|
7614
7670
|
Tooltip.displayName = "Tooltip";
|
|
7615
7671
|
|
|
7616
7672
|
// src/components/Feedback/RatingComponent.tsx
|
|
7617
|
-
import { jsx as
|
|
7673
|
+
import { jsx as jsx253, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
7618
7674
|
var RatingComponent = ({
|
|
7619
7675
|
layout,
|
|
7620
7676
|
ratingLabel,
|
|
@@ -7624,7 +7680,7 @@ var RatingComponent = ({
|
|
|
7624
7680
|
handleRatingChange
|
|
7625
7681
|
}) => {
|
|
7626
7682
|
const { t } = useTranslation();
|
|
7627
|
-
const button = (rating, layout2, tooltip) => /* @__PURE__ */
|
|
7683
|
+
const button = (rating, layout2, tooltip) => /* @__PURE__ */ jsx253(
|
|
7628
7684
|
InlineIconButton,
|
|
7629
7685
|
{
|
|
7630
7686
|
"aria-label": tooltip,
|
|
@@ -7642,16 +7698,16 @@ var RatingComponent = ({
|
|
|
7642
7698
|
Feedback_default[`rating-container--${layout}`]
|
|
7643
7699
|
),
|
|
7644
7700
|
children: [
|
|
7645
|
-
/* @__PURE__ */
|
|
7646
|
-
loading ? /* @__PURE__ */
|
|
7647
|
-
/* @__PURE__ */
|
|
7648
|
-
/* @__PURE__ */
|
|
7701
|
+
/* @__PURE__ */ jsx253("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
|
|
7702
|
+
loading ? /* @__PURE__ */ jsx253(Spinner, { tooltip: t(texts11.uploadingFeedback) }) : /* @__PURE__ */ jsxs57(HStack, { gap: "x1", children: [
|
|
7703
|
+
/* @__PURE__ */ jsx253(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
|
|
7704
|
+
/* @__PURE__ */ jsx253(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx253("div", { children: button("negative", layout, thumbDownTooltip) }) })
|
|
7649
7705
|
] })
|
|
7650
7706
|
]
|
|
7651
7707
|
}
|
|
7652
7708
|
);
|
|
7653
7709
|
};
|
|
7654
|
-
var
|
|
7710
|
+
var texts11 = createTexts({
|
|
7655
7711
|
uploadingFeedback: {
|
|
7656
7712
|
nb: "Laster opp tilbakemelding...",
|
|
7657
7713
|
no: "Laster opp tilbakemelding...",
|
|
@@ -7661,7 +7717,7 @@ var texts10 = createTexts({
|
|
|
7661
7717
|
});
|
|
7662
7718
|
|
|
7663
7719
|
// src/components/Feedback/Feedback.tsx
|
|
7664
|
-
import { jsx as
|
|
7720
|
+
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
7665
7721
|
var Feedback = ({
|
|
7666
7722
|
layout = "vertical",
|
|
7667
7723
|
ratingLabel,
|
|
@@ -7685,14 +7741,14 @@ var Feedback = ({
|
|
|
7685
7741
|
const [rating, setRating] = useState16(null);
|
|
7686
7742
|
const [feedbackText, setFeedbackText] = useState16();
|
|
7687
7743
|
const [isFeedbackSubmitted, setIsFeedbackSubmitted] = useState16(false);
|
|
7688
|
-
const tRatingLabel = ratingLabel != null ? ratingLabel : t(
|
|
7689
|
-
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(
|
|
7690
|
-
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(
|
|
7691
|
-
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(
|
|
7692
|
-
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(
|
|
7693
|
-
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(
|
|
7694
|
-
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(
|
|
7695
|
-
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(
|
|
7744
|
+
const tRatingLabel = ratingLabel != null ? ratingLabel : t(texts12.ratingQuestion);
|
|
7745
|
+
const tPositiveFeedbackLabel = positiveFeedbackLabel != null ? positiveFeedbackLabel : t(texts12.improvalQuestion);
|
|
7746
|
+
const tNegativeFeedbackLabel = negativeFeedbackLabel != null ? negativeFeedbackLabel : t(texts12.improvalQuestion);
|
|
7747
|
+
const tRatingSubmittedTitle = ratingSubmittedTitle != null ? ratingSubmittedTitle : t(texts12.thanks);
|
|
7748
|
+
const tSubmittedTitle = submittedTitle != null ? submittedTitle : t(texts12.thanks);
|
|
7749
|
+
const tTextAreaTip = textAreaTip != null ? textAreaTip : t(texts12.sensitiveInfo);
|
|
7750
|
+
const tThumbUpTooltip = thumbUpTooltip != null ? thumbUpTooltip : t(texts12.good);
|
|
7751
|
+
const tThumbDownTooltip = thumbDownTooltip != null ? thumbDownTooltip : t(texts12.bad);
|
|
7696
7752
|
useEffect22(() => {
|
|
7697
7753
|
if (ratingProp !== void 0) setRating(ratingProp);
|
|
7698
7754
|
}, [ratingProp]);
|
|
@@ -7716,7 +7772,7 @@ var Feedback = ({
|
|
|
7716
7772
|
if (isSubmittedProp === void 0) setIsFeedbackSubmitted(true);
|
|
7717
7773
|
};
|
|
7718
7774
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7719
|
-
return /* @__PURE__ */
|
|
7775
|
+
return /* @__PURE__ */ jsx254(
|
|
7720
7776
|
RatingComponent,
|
|
7721
7777
|
{
|
|
7722
7778
|
layout,
|
|
@@ -7729,7 +7785,7 @@ var Feedback = ({
|
|
|
7729
7785
|
);
|
|
7730
7786
|
}
|
|
7731
7787
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7732
|
-
return /* @__PURE__ */
|
|
7788
|
+
return /* @__PURE__ */ jsx254(
|
|
7733
7789
|
CommentComponent,
|
|
7734
7790
|
{
|
|
7735
7791
|
layout,
|
|
@@ -7745,9 +7801,9 @@ var Feedback = ({
|
|
|
7745
7801
|
}
|
|
7746
7802
|
);
|
|
7747
7803
|
}
|
|
7748
|
-
return /* @__PURE__ */
|
|
7804
|
+
return /* @__PURE__ */ jsx254(Paragraph, { children: tSubmittedTitle });
|
|
7749
7805
|
};
|
|
7750
|
-
var
|
|
7806
|
+
var texts12 = createTexts({
|
|
7751
7807
|
ratingQuestion: {
|
|
7752
7808
|
nb: "Hva syns du om tjenesten?",
|
|
7753
7809
|
no: "Hva syns du om tjenesten?",
|
|
@@ -7790,13 +7846,13 @@ var texts11 = createTexts({
|
|
|
7790
7846
|
var container = "Fieldset_container";
|
|
7791
7847
|
|
|
7792
7848
|
// src/components/Fieldset/Fieldset.tsx
|
|
7793
|
-
import { jsx as
|
|
7849
|
+
import { jsx as jsx255 } from "react/jsx-runtime";
|
|
7794
7850
|
var Fieldset = ({
|
|
7795
7851
|
id,
|
|
7796
7852
|
className,
|
|
7797
7853
|
htmlProps,
|
|
7798
7854
|
...rest
|
|
7799
|
-
}) => /* @__PURE__ */
|
|
7855
|
+
}) => /* @__PURE__ */ jsx255(
|
|
7800
7856
|
"fieldset",
|
|
7801
7857
|
{
|
|
7802
7858
|
...getBaseHTMLProps(id, cn(className, container), htmlProps, rest)
|
|
@@ -7805,27 +7861,27 @@ var Fieldset = ({
|
|
|
7805
7861
|
Fieldset.displayName = "Fieldset";
|
|
7806
7862
|
|
|
7807
7863
|
// src/components/Fieldset/FieldsetGroup.tsx
|
|
7808
|
-
import { jsx as
|
|
7864
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
7809
7865
|
var FieldsetGroup = ({
|
|
7810
7866
|
id,
|
|
7811
7867
|
className,
|
|
7812
7868
|
htmlProps,
|
|
7813
7869
|
...rest
|
|
7814
|
-
}) => /* @__PURE__ */
|
|
7870
|
+
}) => /* @__PURE__ */ jsx256(VStack, { gap: "x1.5", ...getBaseHTMLProps(id, className, htmlProps, rest) });
|
|
7815
7871
|
FieldsetGroup.displayName = "FieldsetGroup";
|
|
7816
7872
|
|
|
7817
7873
|
// src/components/FileUploader/FileUploader.tsx
|
|
7818
7874
|
import { useId as useId14 } from "react";
|
|
7819
7875
|
|
|
7820
7876
|
// src/components/FileUploader/ErrorList.tsx
|
|
7821
|
-
import { jsx as
|
|
7877
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
7822
7878
|
var ErrorList = (props) => {
|
|
7823
7879
|
const { errors } = props;
|
|
7824
7880
|
if (errors.length < 1) {
|
|
7825
7881
|
return null;
|
|
7826
7882
|
}
|
|
7827
7883
|
if (errors.length === 1) {
|
|
7828
|
-
return /* @__PURE__ */
|
|
7884
|
+
return /* @__PURE__ */ jsx257(
|
|
7829
7885
|
InputMessage,
|
|
7830
7886
|
{
|
|
7831
7887
|
id: errors[0].id,
|
|
@@ -7834,8 +7890,8 @@ var ErrorList = (props) => {
|
|
|
7834
7890
|
}
|
|
7835
7891
|
);
|
|
7836
7892
|
}
|
|
7837
|
-
return /* @__PURE__ */
|
|
7838
|
-
return /* @__PURE__ */
|
|
7893
|
+
return /* @__PURE__ */ jsx257(StylelessList, { children: errors.map(({ id, message }) => {
|
|
7894
|
+
return /* @__PURE__ */ jsx257("li", { children: /* @__PURE__ */ jsx257(
|
|
7839
7895
|
InputMessage,
|
|
7840
7896
|
{
|
|
7841
7897
|
id,
|
|
@@ -7860,7 +7916,7 @@ var FileUploader_default = {
|
|
|
7860
7916
|
};
|
|
7861
7917
|
|
|
7862
7918
|
// src/components/FileUploader/File.tsx
|
|
7863
|
-
import { jsx as
|
|
7919
|
+
import { jsx as jsx258, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
7864
7920
|
var File = (props) => {
|
|
7865
7921
|
const { t } = useTranslation();
|
|
7866
7922
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
@@ -7882,21 +7938,21 @@ var File = (props) => {
|
|
|
7882
7938
|
background: "surface-subtle",
|
|
7883
7939
|
className: cn(!isValid && FileUploader_default["file--invalid"]),
|
|
7884
7940
|
children: [
|
|
7885
|
-
/* @__PURE__ */
|
|
7941
|
+
/* @__PURE__ */ jsx258(
|
|
7886
7942
|
"span",
|
|
7887
7943
|
{
|
|
7888
7944
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-medium"]),
|
|
7889
7945
|
children: stateFile.file.name
|
|
7890
7946
|
}
|
|
7891
7947
|
),
|
|
7892
|
-
/* @__PURE__ */
|
|
7948
|
+
/* @__PURE__ */ jsx258(
|
|
7893
7949
|
Icon,
|
|
7894
7950
|
{
|
|
7895
7951
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
7896
7952
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
7897
7953
|
}
|
|
7898
7954
|
),
|
|
7899
|
-
/* @__PURE__ */
|
|
7955
|
+
/* @__PURE__ */ jsx258(
|
|
7900
7956
|
Button,
|
|
7901
7957
|
{
|
|
7902
7958
|
size: "small",
|
|
@@ -7905,9 +7961,9 @@ var File = (props) => {
|
|
|
7905
7961
|
onClick: removeFile,
|
|
7906
7962
|
icon: CloseIcon,
|
|
7907
7963
|
htmlProps: {
|
|
7908
|
-
"aria-label": t(
|
|
7964
|
+
"aria-label": t(texts13.removeFile(stateFile.file.name)),
|
|
7909
7965
|
"aria-invalid": !isValid ? true : void 0,
|
|
7910
|
-
"aria-errormessage": !isValid ? t(
|
|
7966
|
+
"aria-errormessage": !isValid ? t(texts13.invalidFile) : void 0,
|
|
7911
7967
|
"aria-describedby": spaceSeparatedIdListGenerator(
|
|
7912
7968
|
errorsList.map((e) => e.id)
|
|
7913
7969
|
)
|
|
@@ -7917,10 +7973,10 @@ var File = (props) => {
|
|
|
7917
7973
|
]
|
|
7918
7974
|
}
|
|
7919
7975
|
),
|
|
7920
|
-
/* @__PURE__ */
|
|
7976
|
+
/* @__PURE__ */ jsx258(ErrorList, { errors: errorsList })
|
|
7921
7977
|
] });
|
|
7922
7978
|
};
|
|
7923
|
-
var
|
|
7979
|
+
var texts13 = createTexts({
|
|
7924
7980
|
removeFile: (file) => ({
|
|
7925
7981
|
nb: `Fjern fil ${file}`,
|
|
7926
7982
|
no: `Fjern fil ${file}`,
|
|
@@ -8220,7 +8276,7 @@ var useFileUploader = (props) => {
|
|
|
8220
8276
|
};
|
|
8221
8277
|
|
|
8222
8278
|
// src/components/FileUploader/FileUploader.tsx
|
|
8223
|
-
import { jsx as
|
|
8279
|
+
import { jsx as jsx259, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
8224
8280
|
var FileUploader = (props) => {
|
|
8225
8281
|
const {
|
|
8226
8282
|
id,
|
|
@@ -8243,7 +8299,7 @@ var FileUploader = (props) => {
|
|
|
8243
8299
|
...rest
|
|
8244
8300
|
} = props;
|
|
8245
8301
|
const { t } = useTranslation();
|
|
8246
|
-
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(
|
|
8302
|
+
const tDropAreaLabel = dropAreaLabel != null ? dropAreaLabel : t(texts14.dragAndDropOr);
|
|
8247
8303
|
const generatedId = useId14();
|
|
8248
8304
|
const uniqueId = id != null ? id : `${generatedId}-fileUploader`;
|
|
8249
8305
|
const {
|
|
@@ -8270,7 +8326,7 @@ var FileUploader = (props) => {
|
|
|
8270
8326
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
8271
8327
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
8272
8328
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
8273
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
8329
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx259(
|
|
8274
8330
|
File,
|
|
8275
8331
|
{
|
|
8276
8332
|
parentId: uniqueId,
|
|
@@ -8285,7 +8341,7 @@ var FileUploader = (props) => {
|
|
|
8285
8341
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
8286
8342
|
message: e
|
|
8287
8343
|
}));
|
|
8288
|
-
const button = /* @__PURE__ */
|
|
8344
|
+
const button = /* @__PURE__ */ jsx259(
|
|
8289
8345
|
Button,
|
|
8290
8346
|
{
|
|
8291
8347
|
...getButtonProps(),
|
|
@@ -8313,7 +8369,7 @@ var FileUploader = (props) => {
|
|
|
8313
8369
|
width,
|
|
8314
8370
|
...rest,
|
|
8315
8371
|
children: [
|
|
8316
|
-
hasLabel && /* @__PURE__ */
|
|
8372
|
+
hasLabel && /* @__PURE__ */ jsx259(
|
|
8317
8373
|
Label,
|
|
8318
8374
|
{
|
|
8319
8375
|
id: labelId,
|
|
@@ -8322,7 +8378,7 @@ var FileUploader = (props) => {
|
|
|
8322
8378
|
children: label
|
|
8323
8379
|
}
|
|
8324
8380
|
),
|
|
8325
|
-
hasTip && /* @__PURE__ */
|
|
8381
|
+
hasTip && /* @__PURE__ */ jsx259(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8326
8382
|
withDragAndDrop ? /* @__PURE__ */ jsxs59(
|
|
8327
8383
|
VStack,
|
|
8328
8384
|
{
|
|
@@ -8335,7 +8391,7 @@ var FileUploader = (props) => {
|
|
|
8335
8391
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
8336
8392
|
),
|
|
8337
8393
|
children: [
|
|
8338
|
-
/* @__PURE__ */
|
|
8394
|
+
/* @__PURE__ */ jsx259(
|
|
8339
8395
|
"input",
|
|
8340
8396
|
{
|
|
8341
8397
|
...getInputProps(),
|
|
@@ -8344,22 +8400,22 @@ var FileUploader = (props) => {
|
|
|
8344
8400
|
}
|
|
8345
8401
|
),
|
|
8346
8402
|
tDropAreaLabel,
|
|
8347
|
-
/* @__PURE__ */
|
|
8403
|
+
/* @__PURE__ */ jsx259(VisuallyHidden, { children: t(texts14.uploadFileWithButton) }),
|
|
8348
8404
|
button
|
|
8349
8405
|
]
|
|
8350
8406
|
}
|
|
8351
8407
|
) : /* @__PURE__ */ jsxs59("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
8352
|
-
/* @__PURE__ */
|
|
8408
|
+
/* @__PURE__ */ jsx259("input", { ...getInputProps(), id: inputId }),
|
|
8353
8409
|
button
|
|
8354
8410
|
] }),
|
|
8355
|
-
/* @__PURE__ */
|
|
8356
|
-
!hideFileList && /* @__PURE__ */
|
|
8411
|
+
/* @__PURE__ */ jsx259(ErrorList, { errors: rootErrorsList }),
|
|
8412
|
+
!hideFileList && /* @__PURE__ */ jsx259(StylelessList, { children: fileListElements })
|
|
8357
8413
|
]
|
|
8358
8414
|
}
|
|
8359
8415
|
);
|
|
8360
8416
|
};
|
|
8361
8417
|
FileUploader.displayName = "FileUploader";
|
|
8362
|
-
var
|
|
8418
|
+
var texts14 = createTexts({
|
|
8363
8419
|
dragAndDropOr: {
|
|
8364
8420
|
nb: "Dra og slipp filer her eller",
|
|
8365
8421
|
no: "Dra og slipp filer her eller",
|
|
@@ -8385,25 +8441,25 @@ var Footer_default = {
|
|
|
8385
8441
|
};
|
|
8386
8442
|
|
|
8387
8443
|
// src/components/Footer/Footer.tsx
|
|
8388
|
-
import { jsx as
|
|
8389
|
-
var Footer = ({ className, ...rest }) => /* @__PURE__ */
|
|
8444
|
+
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
8445
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ jsx260(Contrast, { as: "footer", className: cn(className, Footer_default.container), ...rest });
|
|
8390
8446
|
|
|
8391
8447
|
// src/components/Footer/FooterListHeader.tsx
|
|
8392
|
-
import { jsx as
|
|
8393
|
-
var FooterListHeader = (props) => /* @__PURE__ */
|
|
8448
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
8449
|
+
var FooterListHeader = (props) => /* @__PURE__ */ jsx261(Heading, { level: 2, typographyType: "headingSmall", ...props });
|
|
8394
8450
|
|
|
8395
8451
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
8396
8452
|
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';
|
|
8397
8453
|
|
|
8398
8454
|
// src/components/Footer/FooterLogo.tsx
|
|
8399
|
-
import { jsx as
|
|
8455
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
8400
8456
|
var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
8401
|
-
return /* @__PURE__ */
|
|
8457
|
+
return /* @__PURE__ */ jsx262(
|
|
8402
8458
|
Box,
|
|
8403
8459
|
{
|
|
8404
8460
|
hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
|
|
8405
8461
|
width: "fit-content",
|
|
8406
|
-
children: /* @__PURE__ */
|
|
8462
|
+
children: /* @__PURE__ */ jsx262(
|
|
8407
8463
|
"img",
|
|
8408
8464
|
{
|
|
8409
8465
|
height: 80,
|
|
@@ -8418,33 +8474,33 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
|
8418
8474
|
};
|
|
8419
8475
|
|
|
8420
8476
|
// src/components/Footer/FooterList.tsx
|
|
8421
|
-
import { jsx as
|
|
8422
|
-
var FooterList = ({ className, ...rest }) => /* @__PURE__ */
|
|
8477
|
+
import { jsx as jsx263 } from "react/jsx-runtime";
|
|
8478
|
+
var FooterList = ({ className, ...rest }) => /* @__PURE__ */ jsx263(StylelessList, { className: cn(className, Footer_default.list), ...rest });
|
|
8423
8479
|
|
|
8424
8480
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8425
|
-
import { jsx as
|
|
8481
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
8426
8482
|
var FooterSocialsList = ({
|
|
8427
8483
|
className,
|
|
8428
8484
|
...rest
|
|
8429
|
-
}) => /* @__PURE__ */
|
|
8485
|
+
}) => /* @__PURE__ */ jsx264(StylelessList, { className: cn(className, Footer_default["socials-list"]), ...rest });
|
|
8430
8486
|
|
|
8431
8487
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8432
|
-
import { jsx as
|
|
8488
|
+
import { jsx as jsx265 } from "react/jsx-runtime";
|
|
8433
8489
|
var FooterSocialsGroup = ({
|
|
8434
8490
|
className,
|
|
8435
8491
|
...rest
|
|
8436
|
-
}) => /* @__PURE__ */
|
|
8492
|
+
}) => /* @__PURE__ */ jsx265("div", { className: cn(className, Footer_default["socials-group"]), ...rest });
|
|
8437
8493
|
|
|
8438
8494
|
// src/components/Footer/FooterListGroup.tsx
|
|
8439
|
-
import { jsx as
|
|
8495
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
8440
8496
|
var FooterListGroup = ({
|
|
8441
8497
|
className,
|
|
8442
8498
|
...rest
|
|
8443
|
-
}) => /* @__PURE__ */
|
|
8499
|
+
}) => /* @__PURE__ */ jsx266("div", { className: cn(className, Footer_default["list-group"]), ...rest });
|
|
8444
8500
|
|
|
8445
8501
|
// src/components/Footer/FooterLeft.tsx
|
|
8446
|
-
import { jsx as
|
|
8447
|
-
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */
|
|
8502
|
+
import { jsx as jsx267 } from "react/jsx-runtime";
|
|
8503
|
+
var FooterLeft = ({ className, ...rest }) => /* @__PURE__ */ jsx267("div", { className: cn(className, Footer_default["left"]), ...rest });
|
|
8448
8504
|
|
|
8449
8505
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8450
8506
|
import { useState as useState17 } from "react";
|
|
@@ -8461,7 +8517,7 @@ var GlobalMessage_default = {
|
|
|
8461
8517
|
};
|
|
8462
8518
|
|
|
8463
8519
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8464
|
-
import { jsx as
|
|
8520
|
+
import { jsx as jsx268, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
8465
8521
|
var icons = {
|
|
8466
8522
|
info: InfoIcon,
|
|
8467
8523
|
danger: ErrorIcon,
|
|
@@ -8500,12 +8556,12 @@ var GlobalMessage = ({
|
|
|
8500
8556
|
{
|
|
8501
8557
|
className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
|
|
8502
8558
|
children: [
|
|
8503
|
-
/* @__PURE__ */
|
|
8504
|
-
children != null ? children : /* @__PURE__ */
|
|
8559
|
+
/* @__PURE__ */ jsx268(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8560
|
+
children != null ? children : /* @__PURE__ */ jsx268("span", { children: message })
|
|
8505
8561
|
]
|
|
8506
8562
|
}
|
|
8507
8563
|
),
|
|
8508
|
-
closable && /* @__PURE__ */
|
|
8564
|
+
closable && /* @__PURE__ */ jsx268(
|
|
8509
8565
|
Button,
|
|
8510
8566
|
{
|
|
8511
8567
|
icon: CloseIcon,
|
|
@@ -8530,8 +8586,8 @@ var InlineButton_default = {
|
|
|
8530
8586
|
};
|
|
8531
8587
|
|
|
8532
8588
|
// src/components/InlineButton/InlineButton.tsx
|
|
8533
|
-
import { jsx as
|
|
8534
|
-
var InlineButton = ({ className, ...rest }) => /* @__PURE__ */
|
|
8589
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
8590
|
+
var InlineButton = ({ className, ...rest }) => /* @__PURE__ */ jsx269(
|
|
8535
8591
|
StylelessButton,
|
|
8536
8592
|
{
|
|
8537
8593
|
className: cn(
|
|
@@ -8553,7 +8609,7 @@ import {
|
|
|
8553
8609
|
useContext as useContext16,
|
|
8554
8610
|
useState as useState18
|
|
8555
8611
|
} from "react";
|
|
8556
|
-
import { jsx as
|
|
8612
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
8557
8613
|
var InlineEditContext = createContext12(
|
|
8558
8614
|
{}
|
|
8559
8615
|
);
|
|
@@ -8597,7 +8653,7 @@ var InlineEditContextProvider = (props) => {
|
|
|
8597
8653
|
useOnKeyDown(["Enter"], () => onExitHandler());
|
|
8598
8654
|
useOnKeyDown(["Escape"], () => onExitHandler());
|
|
8599
8655
|
useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
|
|
8600
|
-
return /* @__PURE__ */
|
|
8656
|
+
return /* @__PURE__ */ jsx270(
|
|
8601
8657
|
InlineEditContext,
|
|
8602
8658
|
{
|
|
8603
8659
|
value: {
|
|
@@ -8636,11 +8692,11 @@ import { jsxs as jsxs61 } from "react/jsx-runtime";
|
|
|
8636
8692
|
var inlineEditVisuallyHidden = (id, clearable) => {
|
|
8637
8693
|
const { t } = useTranslation();
|
|
8638
8694
|
return /* @__PURE__ */ jsxs61(VisuallyHidden, { id, children: [
|
|
8639
|
-
t(
|
|
8640
|
-
!clearable && t(
|
|
8695
|
+
t(texts15.inlineEditInfo),
|
|
8696
|
+
!clearable && t(texts15.notClearable)
|
|
8641
8697
|
] });
|
|
8642
8698
|
};
|
|
8643
|
-
var
|
|
8699
|
+
var texts15 = createTexts({
|
|
8644
8700
|
inlineEditInfo: {
|
|
8645
8701
|
nb: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
8646
8702
|
no: "Escape, Enter eller Tab for \xE5 lagre.",
|
|
@@ -8700,18 +8756,6 @@ function createClearChangeEvent(elementId) {
|
|
|
8700
8756
|
return clearChangeEvent;
|
|
8701
8757
|
}
|
|
8702
8758
|
|
|
8703
|
-
// src/components/helpers/ClearButton/ClearButton.tsx
|
|
8704
|
-
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
8705
|
-
var ClearButton = ({ className, ...rest }) => /* @__PURE__ */ jsx270(
|
|
8706
|
-
InlineIconButton,
|
|
8707
|
-
{
|
|
8708
|
-
className: cn(className, utilStyles_default["center-absolute-y"]),
|
|
8709
|
-
icon: CloseSmallIcon,
|
|
8710
|
-
...rest
|
|
8711
|
-
}
|
|
8712
|
-
);
|
|
8713
|
-
ClearButton.displayName = "ClearButton";
|
|
8714
|
-
|
|
8715
8759
|
// src/components/InlineEdit/InlineField.tsx
|
|
8716
8760
|
import { Fragment as Fragment6, jsx as jsx271, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
8717
8761
|
function InlineField(props) {
|
|
@@ -8980,7 +9024,7 @@ var InternalHeader = (props) => {
|
|
|
8980
9024
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8981
9025
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8982
9026
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8983
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx276("nav", { "aria-label": t(
|
|
9027
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx276("nav", { "aria-label": t(texts16.siteNavigation), children: /* @__PURE__ */ jsx276(
|
|
8984
9028
|
ShowHide,
|
|
8985
9029
|
{
|
|
8986
9030
|
as: StylelessList,
|
|
@@ -9044,7 +9088,7 @@ var InternalHeader = (props) => {
|
|
|
9044
9088
|
{
|
|
9045
9089
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
9046
9090
|
purpose: "tertiary",
|
|
9047
|
-
"aria-label": t(
|
|
9091
|
+
"aria-label": t(texts16.openMenu)
|
|
9048
9092
|
}
|
|
9049
9093
|
),
|
|
9050
9094
|
/* @__PURE__ */ jsxs63(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
|
|
@@ -9053,7 +9097,7 @@ var InternalHeader = (props) => {
|
|
|
9053
9097
|
ShowHide,
|
|
9054
9098
|
{
|
|
9055
9099
|
as: "nav",
|
|
9056
|
-
"aria-label": t(
|
|
9100
|
+
"aria-label": t(texts16.siteNavigation),
|
|
9057
9101
|
showBelow: smallScreenBreakpoint,
|
|
9058
9102
|
children: /* @__PURE__ */ jsx276(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx276(OverflowMenuLink, { ...item })) })
|
|
9059
9103
|
}
|
|
@@ -9082,7 +9126,7 @@ var InternalHeader = (props) => {
|
|
|
9082
9126
|
);
|
|
9083
9127
|
};
|
|
9084
9128
|
InternalHeader.displayName = "InternalHeader";
|
|
9085
|
-
var
|
|
9129
|
+
var texts16 = createTexts({
|
|
9086
9130
|
openMenu: {
|
|
9087
9131
|
nb: "\xC5pne meny",
|
|
9088
9132
|
no: "\xC5pne meny",
|
|
@@ -10127,7 +10171,8 @@ var NativeSelect = ({
|
|
|
10127
10171
|
setHasValue(false);
|
|
10128
10172
|
onChange == null ? void 0 : onChange(clearChangeEvent);
|
|
10129
10173
|
};
|
|
10130
|
-
const iconSize = componentSize === "
|
|
10174
|
+
const iconSize = componentSize === "medium" ? "medium" : "small";
|
|
10175
|
+
const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
|
|
10131
10176
|
return /* @__PURE__ */ jsxs68("div", { className, style, children: [
|
|
10132
10177
|
hasLabel && /* @__PURE__ */ jsx285(
|
|
10133
10178
|
Label,
|
|
@@ -10174,13 +10219,13 @@ var NativeSelect = ({
|
|
|
10174
10219
|
children
|
|
10175
10220
|
}
|
|
10176
10221
|
),
|
|
10177
|
-
|
|
10222
|
+
showClearButton && /* @__PURE__ */ jsx285(
|
|
10178
10223
|
ClearButton,
|
|
10179
10224
|
{
|
|
10180
10225
|
"aria-label": t(commonTexts.clearSelect),
|
|
10181
10226
|
onClick: clearInput,
|
|
10182
10227
|
size: iconSize,
|
|
10183
|
-
className:
|
|
10228
|
+
className: NativeSelect_default[`clear-button--${iconSize}`]
|
|
10184
10229
|
}
|
|
10185
10230
|
),
|
|
10186
10231
|
!multiple && /* @__PURE__ */ jsx285(
|
|
@@ -10188,7 +10233,7 @@ var NativeSelect = ({
|
|
|
10188
10233
|
{
|
|
10189
10234
|
icon: ChevronDownIcon,
|
|
10190
10235
|
iconSize,
|
|
10191
|
-
className: NativeSelect_default.icon
|
|
10236
|
+
className: cn(utilStyles_default["center-absolute-y"], NativeSelect_default.icon)
|
|
10192
10237
|
}
|
|
10193
10238
|
)
|
|
10194
10239
|
] }),
|
|
@@ -10258,7 +10303,7 @@ var Pagination = ({
|
|
|
10258
10303
|
onClick: (event) => {
|
|
10259
10304
|
onPageChange(event, item);
|
|
10260
10305
|
},
|
|
10261
|
-
"aria-label": isActive ? t(
|
|
10306
|
+
"aria-label": isActive ? t(texts17.currentPage(item)) : t(texts17.page(item)),
|
|
10262
10307
|
children: item
|
|
10263
10308
|
}
|
|
10264
10309
|
) : /* @__PURE__ */ jsx286(
|
|
@@ -10278,7 +10323,7 @@ var Pagination = ({
|
|
|
10278
10323
|
onClick: (event) => {
|
|
10279
10324
|
onPageChange(event, activePage - 1);
|
|
10280
10325
|
},
|
|
10281
|
-
"aria-label": t(
|
|
10326
|
+
"aria-label": t(texts17.previousPage)
|
|
10282
10327
|
}
|
|
10283
10328
|
);
|
|
10284
10329
|
const nextPageButton = /* @__PURE__ */ jsx286(
|
|
@@ -10290,7 +10335,7 @@ var Pagination = ({
|
|
|
10290
10335
|
onClick: (event) => {
|
|
10291
10336
|
onPageChange(event, activePage + 1);
|
|
10292
10337
|
},
|
|
10293
|
-
"aria-label": t(
|
|
10338
|
+
"aria-label": t(texts17.nextPage)
|
|
10294
10339
|
}
|
|
10295
10340
|
);
|
|
10296
10341
|
const isOnFirstPage = activePage === 1;
|
|
@@ -10300,7 +10345,7 @@ var Pagination = ({
|
|
|
10300
10345
|
{
|
|
10301
10346
|
as: "nav",
|
|
10302
10347
|
ref,
|
|
10303
|
-
"aria-label": t(
|
|
10348
|
+
"aria-label": t(texts17.pagination),
|
|
10304
10349
|
display: "flex",
|
|
10305
10350
|
alignItems: "center",
|
|
10306
10351
|
...!withSelect && !withCounter && {
|
|
@@ -10364,7 +10409,7 @@ var Pagination = ({
|
|
|
10364
10409
|
onClick: (event) => {
|
|
10365
10410
|
onPageChange(event, 1);
|
|
10366
10411
|
},
|
|
10367
|
-
"aria-label": t(
|
|
10412
|
+
"aria-label": t(texts17.firstPage)
|
|
10368
10413
|
}
|
|
10369
10414
|
)
|
|
10370
10415
|
}
|
|
@@ -10418,7 +10463,7 @@ var Pagination = ({
|
|
|
10418
10463
|
onClick: (event) => {
|
|
10419
10464
|
onPageChange(event, pagesLength);
|
|
10420
10465
|
},
|
|
10421
|
-
"aria-label": t(
|
|
10466
|
+
"aria-label": t(texts17.lastPage)
|
|
10422
10467
|
}
|
|
10423
10468
|
)
|
|
10424
10469
|
}
|
|
@@ -10456,11 +10501,11 @@ var Pagination = ({
|
|
|
10456
10501
|
isClearable: false,
|
|
10457
10502
|
onChange: handleSelectChange,
|
|
10458
10503
|
componentSize: "small",
|
|
10459
|
-
"aria-label": t(
|
|
10504
|
+
"aria-label": t(texts17.itemsPerPage)
|
|
10460
10505
|
}
|
|
10461
10506
|
),
|
|
10462
10507
|
withCounter && /* @__PURE__ */ jsx286(Paragraph, { children: t(
|
|
10463
|
-
|
|
10508
|
+
texts17.showsAmountOfTotalItems(
|
|
10464
10509
|
activePageFirstItem,
|
|
10465
10510
|
activePageLastItem,
|
|
10466
10511
|
itemsAmount
|
|
@@ -10473,7 +10518,7 @@ var Pagination = ({
|
|
|
10473
10518
|
);
|
|
10474
10519
|
};
|
|
10475
10520
|
Pagination.displayName = "Pagination";
|
|
10476
|
-
var
|
|
10521
|
+
var texts17 = createTexts({
|
|
10477
10522
|
pagination: {
|
|
10478
10523
|
nb: "Paginering",
|
|
10479
10524
|
no: "Paginering",
|
|
@@ -10996,8 +11041,8 @@ var PhoneInput = ({
|
|
|
10996
11041
|
}) => {
|
|
10997
11042
|
var _a;
|
|
10998
11043
|
const { t } = useTranslation();
|
|
10999
|
-
const tGroupLabel = groupLabel != null ? groupLabel : t(
|
|
11000
|
-
const tSelectLabel = selectLabel != null ? selectLabel : t(
|
|
11044
|
+
const tGroupLabel = groupLabel != null ? groupLabel : t(texts18.countryCodeAndPhoneNumber);
|
|
11045
|
+
const tSelectLabel = selectLabel != null ? selectLabel : t(texts18.countryCode);
|
|
11001
11046
|
const generatedId = useId19();
|
|
11002
11047
|
const uniqueId = (_a = props.id) != null ? _a : generatedId;
|
|
11003
11048
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
@@ -11175,7 +11220,7 @@ var getCallingCode = (s) => {
|
|
|
11175
11220
|
var _a;
|
|
11176
11221
|
return (_a = s.substring(s.indexOf("+"), s.length)) != null ? _a : "";
|
|
11177
11222
|
};
|
|
11178
|
-
var
|
|
11223
|
+
var texts18 = createTexts({
|
|
11179
11224
|
countryCode: {
|
|
11180
11225
|
nb: "Landskode",
|
|
11181
11226
|
no: "Landskode",
|
|
@@ -11567,9 +11612,9 @@ var ProgressTrackerItem = (props) => {
|
|
|
11567
11612
|
typographyStyles_default["body-medium"]
|
|
11568
11613
|
),
|
|
11569
11614
|
children: [
|
|
11570
|
-
/* @__PURE__ */ jsx290(VisuallyHidden, { children: t(
|
|
11615
|
+
/* @__PURE__ */ jsx290(VisuallyHidden, { children: t(texts19.stepTextBefore(index + 1)) }),
|
|
11571
11616
|
children,
|
|
11572
|
-
/* @__PURE__ */ jsx290(VisuallyHidden, { children: completed ? t(
|
|
11617
|
+
/* @__PURE__ */ jsx290(VisuallyHidden, { children: completed ? t(texts19.completed) : t(texts19.uncompleted) })
|
|
11573
11618
|
]
|
|
11574
11619
|
}
|
|
11575
11620
|
)
|
|
@@ -11610,7 +11655,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11610
11655
|
);
|
|
11611
11656
|
};
|
|
11612
11657
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11613
|
-
var
|
|
11658
|
+
var texts19 = createTexts({
|
|
11614
11659
|
stepTextBefore: (index) => ({
|
|
11615
11660
|
nb: `${index}. trinn, `,
|
|
11616
11661
|
no: `${index}. trinn, `,
|
|
@@ -11673,7 +11718,7 @@ var ProgressTracker = (() => {
|
|
|
11673
11718
|
children: /* @__PURE__ */ jsx291(
|
|
11674
11719
|
"nav",
|
|
11675
11720
|
{
|
|
11676
|
-
"aria-label": ariaLabel != null ? ariaLabel : t(
|
|
11721
|
+
"aria-label": ariaLabel != null ? ariaLabel : t(texts20.stepProgression),
|
|
11677
11722
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
11678
11723
|
children: /* @__PURE__ */ jsx291(
|
|
11679
11724
|
Box,
|
|
@@ -11711,7 +11756,7 @@ function passIndexPropToProgressTrackerItem(children) {
|
|
|
11711
11756
|
})
|
|
11712
11757
|
);
|
|
11713
11758
|
}
|
|
11714
|
-
var
|
|
11759
|
+
var texts20 = createTexts({
|
|
11715
11760
|
stepProgression: {
|
|
11716
11761
|
nb: "Stegprogresjon",
|
|
11717
11762
|
no: "Stegprogresjon",
|
|
@@ -11933,7 +11978,7 @@ var SearchSuggestions = ({
|
|
|
11933
11978
|
{
|
|
11934
11979
|
index,
|
|
11935
11980
|
focus: focus === index && showSuggestions,
|
|
11936
|
-
"aria-label": t(
|
|
11981
|
+
"aria-label": t(texts21.search(suggestion)),
|
|
11937
11982
|
onClick: onSuggestionClick,
|
|
11938
11983
|
"aria-setsize": suggestionsToRender.length,
|
|
11939
11984
|
"aria-posinset": index,
|
|
@@ -11947,7 +11992,7 @@ var SearchSuggestions = ({
|
|
|
11947
11992
|
);
|
|
11948
11993
|
};
|
|
11949
11994
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
11950
|
-
var
|
|
11995
|
+
var texts21 = createTexts({
|
|
11951
11996
|
search: (suggestion) => ({
|
|
11952
11997
|
no: `${suggestion} s\xF8k`,
|
|
11953
11998
|
nb: `${suggestion} s\xF8k`,
|
|
@@ -12094,13 +12139,13 @@ var Search = ({
|
|
|
12094
12139
|
componentSize
|
|
12095
12140
|
}
|
|
12096
12141
|
),
|
|
12097
|
-
/* @__PURE__ */ jsx295(VisuallyHidden, { id: suggestionsDescriptionId, children: t(
|
|
12142
|
+
/* @__PURE__ */ jsx295(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts22.useArrowKeys) })
|
|
12098
12143
|
] }),
|
|
12099
12144
|
hasValue && /* @__PURE__ */ jsx295(
|
|
12100
12145
|
ClearButton,
|
|
12101
12146
|
{
|
|
12102
12147
|
size: getIconSize2(componentSize),
|
|
12103
|
-
"aria-label": t(
|
|
12148
|
+
"aria-label": t(texts22.clearSearch),
|
|
12104
12149
|
onClick: clearInput,
|
|
12105
12150
|
className: Search_default["clear-button"]
|
|
12106
12151
|
}
|
|
@@ -12129,7 +12174,7 @@ var Search = ({
|
|
|
12129
12174
|
size: componentSize,
|
|
12130
12175
|
onClick,
|
|
12131
12176
|
...otherButtonProps,
|
|
12132
|
-
children: buttonLabel != null ? buttonLabel :
|
|
12177
|
+
children: buttonLabel != null ? buttonLabel : t(texts22.search)
|
|
12133
12178
|
}
|
|
12134
12179
|
)
|
|
12135
12180
|
]
|
|
@@ -12140,13 +12185,19 @@ var Search = ({
|
|
|
12140
12185
|
] });
|
|
12141
12186
|
};
|
|
12142
12187
|
Search.displayName = "Search";
|
|
12143
|
-
var
|
|
12188
|
+
var texts22 = createTexts({
|
|
12144
12189
|
clearSearch: {
|
|
12145
12190
|
nb: "T\xF8m s\xF8k",
|
|
12146
12191
|
no: "T\xF8m s\xF8k",
|
|
12147
12192
|
nn: "T\xF8m s\xF8k",
|
|
12148
12193
|
en: "Clear search"
|
|
12149
12194
|
},
|
|
12195
|
+
search: {
|
|
12196
|
+
nb: "S\xF8k",
|
|
12197
|
+
no: "S\xF8k",
|
|
12198
|
+
nn: "S\xF8k",
|
|
12199
|
+
en: "Search"
|
|
12200
|
+
},
|
|
12150
12201
|
useArrowKeys: {
|
|
12151
12202
|
nb: "Bruk piltastene for \xE5 navigere i forslagene n\xE5r listen er utvidet",
|
|
12152
12203
|
no: "Bruk piltastene for \xE5 navigere i forslagene n\xE5r listen er utvidet",
|
|
@@ -12347,7 +12398,7 @@ var SplitButton = ({
|
|
|
12347
12398
|
{
|
|
12348
12399
|
...buttonStyleProps,
|
|
12349
12400
|
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
12350
|
-
"aria-label": t(
|
|
12401
|
+
"aria-label": t(texts23.moreActions),
|
|
12351
12402
|
purpose,
|
|
12352
12403
|
className: cn(
|
|
12353
12404
|
SplitButton_default.option,
|
|
@@ -12361,7 +12412,7 @@ var SplitButton = ({
|
|
|
12361
12412
|
] });
|
|
12362
12413
|
};
|
|
12363
12414
|
SplitButton.displayName = "SplitButton";
|
|
12364
|
-
var
|
|
12415
|
+
var texts23 = createTexts({
|
|
12365
12416
|
moreActions: {
|
|
12366
12417
|
nb: "Flere handlinger",
|
|
12367
12418
|
no: "Flere handlinger",
|
|
@@ -12526,7 +12577,7 @@ var SortCell = ({
|
|
|
12526
12577
|
StylelessButton,
|
|
12527
12578
|
{
|
|
12528
12579
|
onClick,
|
|
12529
|
-
"aria-description": t(
|
|
12580
|
+
"aria-description": t(texts24.changeSort),
|
|
12530
12581
|
className: cn(Table_default["sort-button"], focusable),
|
|
12531
12582
|
children: [
|
|
12532
12583
|
children,
|
|
@@ -12539,7 +12590,7 @@ var SortCell = ({
|
|
|
12539
12590
|
);
|
|
12540
12591
|
};
|
|
12541
12592
|
SortCell.displayName = "Table.SortCell";
|
|
12542
|
-
var
|
|
12593
|
+
var texts24 = createTexts({
|
|
12543
12594
|
changeSort: {
|
|
12544
12595
|
nb: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
12545
12596
|
no: "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|
|
@@ -12692,8 +12743,8 @@ var CollapsibleRow = ({
|
|
|
12692
12743
|
return /* @__PURE__ */ jsx308(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment11, { children: [
|
|
12693
12744
|
definingColumnCells,
|
|
12694
12745
|
/* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
|
|
12695
|
-
t(
|
|
12696
|
-
/* @__PURE__ */ jsx308(VisuallyHidden, { children: t(
|
|
12746
|
+
t(texts25.expand),
|
|
12747
|
+
/* @__PURE__ */ jsx308(VisuallyHidden, { children: t(texts25.row) })
|
|
12697
12748
|
] })
|
|
12698
12749
|
] }) });
|
|
12699
12750
|
};
|
|
@@ -12730,7 +12781,7 @@ var CollapsibleRow = ({
|
|
|
12730
12781
|
] }) : /* @__PURE__ */ jsx308(Row, { ref, ...rowProps(), children });
|
|
12731
12782
|
};
|
|
12732
12783
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
12733
|
-
var
|
|
12784
|
+
var texts25 = createTexts({
|
|
12734
12785
|
expand: {
|
|
12735
12786
|
nb: "Utvid",
|
|
12736
12787
|
no: "Utvid",
|
|
@@ -13129,11 +13180,12 @@ var TabPanel = ({
|
|
|
13129
13180
|
id,
|
|
13130
13181
|
className,
|
|
13131
13182
|
htmlProps,
|
|
13183
|
+
padding = "x0.25",
|
|
13132
13184
|
...rest
|
|
13133
13185
|
}) => /* @__PURE__ */ jsx315(
|
|
13134
13186
|
Box,
|
|
13135
13187
|
{
|
|
13136
|
-
padding
|
|
13188
|
+
padding,
|
|
13137
13189
|
...getBaseHTMLProps(id, cn(className, focusable), htmlProps, rest),
|
|
13138
13190
|
tabIndex: 0,
|
|
13139
13191
|
role: "tabpanel",
|
|
@@ -13164,7 +13216,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
|
|
|
13164
13216
|
}
|
|
13165
13217
|
});
|
|
13166
13218
|
});
|
|
13167
|
-
return /* @__PURE__ */ jsx316(
|
|
13219
|
+
return /* @__PURE__ */ jsx316(Box, { ref: combinedRef, ...rest, children: panelChildren });
|
|
13168
13220
|
};
|
|
13169
13221
|
TabPanels.displayName = "TabPanels";
|
|
13170
13222
|
|