@vygruppen/spor-react 13.4.2 → 13.4.4
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/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-postinstall.log +4 -3
- package/CHANGELOG.md +21 -0
- package/dist/index.cjs +128 -93
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +128 -93
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/alert/AlertIcon.tsx +7 -16
- package/src/datepicker/DateField.tsx +1 -1
- package/src/datepicker/DatePicker.tsx +1 -1
- package/src/datepicker/DateTimeSegment.tsx +4 -4
- package/src/datepicker/TimeField.tsx +54 -2
- package/src/datepicker/TimePicker.tsx +0 -1
- package/src/error-summary/index.tsx +1 -11
- package/src/theme/recipes/textarea.ts +2 -0
- package/src/theme/slot-recipes/datepicker.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -208,8 +208,8 @@ function useTranslation() {
|
|
|
208
208
|
};
|
|
209
209
|
return { t, language };
|
|
210
210
|
}
|
|
211
|
-
function createTexts(
|
|
212
|
-
return
|
|
211
|
+
function createTexts(texts29) {
|
|
212
|
+
return texts29;
|
|
213
213
|
}
|
|
214
214
|
function Lottie({ animationData }) {
|
|
215
215
|
const { View } = useLottie({ animationData });
|
|
@@ -1075,41 +1075,33 @@ var AlertIcon = ({
|
|
|
1075
1075
|
var BaseAlertIcon = ({
|
|
1076
1076
|
variant
|
|
1077
1077
|
}) => {
|
|
1078
|
-
const css = {
|
|
1079
|
-
"& path:first-of-type": {
|
|
1080
|
-
fill: `icon.${variant}`
|
|
1081
|
-
},
|
|
1082
|
-
"& path:not(:first-of-type)": {
|
|
1083
|
-
fill: `surface.${variant}`
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
1078
|
switch (variant) {
|
|
1087
1079
|
case "info": {
|
|
1088
|
-
return /* @__PURE__ */ jsx(InformationFill24Icon, {
|
|
1080
|
+
return /* @__PURE__ */ jsx(InformationFill24Icon, {});
|
|
1089
1081
|
}
|
|
1090
1082
|
case "success": {
|
|
1091
|
-
return /* @__PURE__ */ jsx(SuccessFill24Icon, {
|
|
1083
|
+
return /* @__PURE__ */ jsx(SuccessFill24Icon, {});
|
|
1092
1084
|
}
|
|
1093
1085
|
case "important": {
|
|
1094
1086
|
return /* @__PURE__ */ jsx(WarningFill24Icon, {});
|
|
1095
1087
|
}
|
|
1096
1088
|
case "alt": {
|
|
1097
|
-
return /* @__PURE__ */ jsx(AltTransportFill24Icon, {
|
|
1089
|
+
return /* @__PURE__ */ jsx(AltTransportFill24Icon, {});
|
|
1098
1090
|
}
|
|
1099
1091
|
case "error": {
|
|
1100
|
-
return /* @__PURE__ */ jsx(ErrorFill24Icon, {
|
|
1092
|
+
return /* @__PURE__ */ jsx(ErrorFill24Icon, {});
|
|
1101
1093
|
}
|
|
1102
1094
|
case "error-secondary": {
|
|
1103
|
-
return /* @__PURE__ */ jsx(ErrorOutline24Icon, {
|
|
1095
|
+
return /* @__PURE__ */ jsx(ErrorOutline24Icon, {});
|
|
1104
1096
|
}
|
|
1105
1097
|
case "neutral": {
|
|
1106
|
-
return /* @__PURE__ */ jsx(QuestionFill24Icon, {
|
|
1098
|
+
return /* @__PURE__ */ jsx(QuestionFill24Icon, {});
|
|
1107
1099
|
}
|
|
1108
1100
|
case "service": {
|
|
1109
1101
|
return /* @__PURE__ */ jsx(ServiceFill24Icon, {});
|
|
1110
1102
|
}
|
|
1111
1103
|
default: {
|
|
1112
|
-
return /* @__PURE__ */ jsx(InformationFill24Icon, {
|
|
1104
|
+
return /* @__PURE__ */ jsx(InformationFill24Icon, {});
|
|
1113
1105
|
}
|
|
1114
1106
|
}
|
|
1115
1107
|
};
|
|
@@ -2466,7 +2458,7 @@ var DateTimeSegment = ({
|
|
|
2466
2458
|
segment,
|
|
2467
2459
|
state,
|
|
2468
2460
|
ariaLabel,
|
|
2469
|
-
|
|
2461
|
+
ariaLabelledby,
|
|
2470
2462
|
variant
|
|
2471
2463
|
}) => {
|
|
2472
2464
|
const internalRef = useRef(null);
|
|
@@ -2496,8 +2488,8 @@ var DateTimeSegment = ({
|
|
|
2496
2488
|
borderRadius: "xs",
|
|
2497
2489
|
fontSize: ["mobile.sm", "desktop.sm"],
|
|
2498
2490
|
css: styles.dateTimeSegment,
|
|
2499
|
-
"aria-label":
|
|
2500
|
-
"aria-labelledby":
|
|
2491
|
+
"aria-label": ariaLabel,
|
|
2492
|
+
"aria-labelledby": ariaLabelledby,
|
|
2501
2493
|
children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
|
2502
2494
|
}
|
|
2503
2495
|
);
|
|
@@ -2546,7 +2538,7 @@ var DateField = ({
|
|
|
2546
2538
|
DateTimeSegment,
|
|
2547
2539
|
{
|
|
2548
2540
|
segment,
|
|
2549
|
-
|
|
2541
|
+
ariaLabel: t(getAriaLabel(segment.type)),
|
|
2550
2542
|
state
|
|
2551
2543
|
},
|
|
2552
2544
|
index
|
|
@@ -2673,7 +2665,7 @@ var DatePicker = ({
|
|
|
2673
2665
|
}
|
|
2674
2666
|
(_a6 = props.onClick) == null ? void 0 : _a6.call(props);
|
|
2675
2667
|
};
|
|
2676
|
-
const popoverContent = /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsx(Popover$1.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsx(Popover$1.Body, { minWidth: "
|
|
2668
|
+
const popoverContent = /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsx(Popover$1.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsx(Popover$1.Body, { minWidth: "18rem", children: /* @__PURE__ */ jsx(
|
|
2677
2669
|
Calendar2,
|
|
2678
2670
|
{
|
|
2679
2671
|
...calendarProps,
|
|
@@ -2882,8 +2874,9 @@ function DateRangePicker({
|
|
|
2882
2874
|
var TimeField = ({ state, ...props }) => {
|
|
2883
2875
|
const ref = useRef(null);
|
|
2884
2876
|
const { labelProps, fieldProps } = useTimeField(props, state, ref);
|
|
2877
|
+
const { t } = useTranslation();
|
|
2885
2878
|
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
2886
|
-
/* @__PURE__ */
|
|
2879
|
+
/* @__PURE__ */ jsxs(
|
|
2887
2880
|
chakra.label,
|
|
2888
2881
|
{
|
|
2889
2882
|
...labelProps,
|
|
@@ -2900,10 +2893,21 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2900
2893
|
overflow: "hidden",
|
|
2901
2894
|
textOverflow: "ellipsis",
|
|
2902
2895
|
maxWidth: "80%",
|
|
2903
|
-
children:
|
|
2896
|
+
children: [
|
|
2897
|
+
props.label,
|
|
2898
|
+
/* @__PURE__ */ jsx(Field.RequiredIndicator, {})
|
|
2899
|
+
]
|
|
2904
2900
|
}
|
|
2905
2901
|
),
|
|
2906
|
-
/* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(
|
|
2902
|
+
/* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(
|
|
2903
|
+
DateTimeSegment,
|
|
2904
|
+
{
|
|
2905
|
+
segment,
|
|
2906
|
+
state,
|
|
2907
|
+
ariaLabel: t(getAriaLabel2(segment.type))
|
|
2908
|
+
},
|
|
2909
|
+
index
|
|
2910
|
+
)) }),
|
|
2907
2911
|
/* @__PURE__ */ jsx(
|
|
2908
2912
|
"input",
|
|
2909
2913
|
{
|
|
@@ -2914,6 +2918,48 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2914
2918
|
)
|
|
2915
2919
|
] });
|
|
2916
2920
|
};
|
|
2921
|
+
var getAriaLabel2 = (segmentType) => {
|
|
2922
|
+
switch (segmentType) {
|
|
2923
|
+
case "hour": {
|
|
2924
|
+
return texts12.hour;
|
|
2925
|
+
}
|
|
2926
|
+
case "minute": {
|
|
2927
|
+
return texts12.minute;
|
|
2928
|
+
}
|
|
2929
|
+
case "second": {
|
|
2930
|
+
return texts12.second;
|
|
2931
|
+
}
|
|
2932
|
+
default: {
|
|
2933
|
+
return texts12.default;
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2936
|
+
};
|
|
2937
|
+
var texts12 = createTexts({
|
|
2938
|
+
hour: {
|
|
2939
|
+
nb: "Velg time",
|
|
2940
|
+
nn: "Vel time",
|
|
2941
|
+
sv: "V\xE4lj timme",
|
|
2942
|
+
en: "Choose hour"
|
|
2943
|
+
},
|
|
2944
|
+
minute: {
|
|
2945
|
+
nb: "Velg minutt",
|
|
2946
|
+
nn: "Vel minutt",
|
|
2947
|
+
sv: "V\xE4lj minut",
|
|
2948
|
+
en: "Choose minute"
|
|
2949
|
+
},
|
|
2950
|
+
second: {
|
|
2951
|
+
nb: "Velg sekund",
|
|
2952
|
+
nn: "Vel sekund",
|
|
2953
|
+
sv: "V\xE4lj sekund",
|
|
2954
|
+
en: "Choose second"
|
|
2955
|
+
},
|
|
2956
|
+
default: {
|
|
2957
|
+
nb: "Velg tid",
|
|
2958
|
+
nn: "Vel tid",
|
|
2959
|
+
sv: "V\xE4lj tid",
|
|
2960
|
+
en: "Choose time"
|
|
2961
|
+
}
|
|
2962
|
+
});
|
|
2917
2963
|
var TimePicker = ({
|
|
2918
2964
|
label: externalLabel,
|
|
2919
2965
|
value,
|
|
@@ -2929,7 +2975,7 @@ var TimePicker = ({
|
|
|
2929
2975
|
const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
|
|
2930
2976
|
const { t } = useTranslation();
|
|
2931
2977
|
const locale = useCurrentLocale();
|
|
2932
|
-
const label = externalLabel ?? t(
|
|
2978
|
+
const label = externalLabel ?? t(texts13.time);
|
|
2933
2979
|
const state = useTimeFieldState({
|
|
2934
2980
|
value,
|
|
2935
2981
|
defaultValue,
|
|
@@ -2962,15 +3008,15 @@ var TimePicker = ({
|
|
|
2962
3008
|
})
|
|
2963
3009
|
);
|
|
2964
3010
|
};
|
|
2965
|
-
const backwardsLabel = `${t(
|
|
2966
|
-
|
|
3011
|
+
const backwardsLabel = `${t(texts13.backwards)} ${minuteInterval} ${t(
|
|
3012
|
+
texts13.minutes
|
|
2967
3013
|
)}`;
|
|
2968
|
-
const forwardsLabel = `${t(
|
|
2969
|
-
|
|
3014
|
+
const forwardsLabel = `${t(texts13.forwards)} ${minuteInterval} ${t(
|
|
3015
|
+
texts13.minutes
|
|
2970
3016
|
)}`;
|
|
2971
|
-
const inputLabel = label ?? t(
|
|
3017
|
+
const inputLabel = label ?? t(texts13.time);
|
|
2972
3018
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
|
2973
|
-
|
|
3019
|
+
texts13.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
|
2974
3020
|
)}`;
|
|
2975
3021
|
return /* @__PURE__ */ jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxs(
|
|
2976
3022
|
StyledField,
|
|
@@ -2983,7 +3029,6 @@ var TimePicker = ({
|
|
|
2983
3029
|
opacity: isDisabled ? 0.5 : 1,
|
|
2984
3030
|
pointerEvents: isDisabled ? "none" : "auto",
|
|
2985
3031
|
"aria-disabled": isDisabled,
|
|
2986
|
-
"aria-live": "assertive",
|
|
2987
3032
|
"aria-label": ariaLabel,
|
|
2988
3033
|
position: "relative",
|
|
2989
3034
|
...boxProps,
|
|
@@ -3023,7 +3068,7 @@ var TimePicker = ({
|
|
|
3023
3068
|
}
|
|
3024
3069
|
) });
|
|
3025
3070
|
};
|
|
3026
|
-
var
|
|
3071
|
+
var texts13 = createTexts({
|
|
3027
3072
|
selectedTimeIs: (time) => ({
|
|
3028
3073
|
nb: `Valgt tidspunkt er ${time}`,
|
|
3029
3074
|
nn: `Valt tidspunkt er ${time}`,
|
|
@@ -3165,7 +3210,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
|
|
|
3165
3210
|
{
|
|
3166
3211
|
variant: "ghost",
|
|
3167
3212
|
icon: /* @__PURE__ */ jsx(CloseFill24Icon, {}),
|
|
3168
|
-
label: t(
|
|
3213
|
+
label: t(texts14.close)
|
|
3169
3214
|
}
|
|
3170
3215
|
) : /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
|
|
3171
3216
|
};
|
|
@@ -3179,7 +3224,7 @@ var DrawerBackTrigger = ({
|
|
|
3179
3224
|
{
|
|
3180
3225
|
variant: "ghost",
|
|
3181
3226
|
icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
|
|
3182
|
-
label: t(
|
|
3227
|
+
label: t(texts14.back)
|
|
3183
3228
|
}
|
|
3184
3229
|
) });
|
|
3185
3230
|
};
|
|
@@ -3211,7 +3256,7 @@ var DrawerBackdrop = Drawer$1.Backdrop;
|
|
|
3211
3256
|
var DrawerTitle = Drawer$1.Title;
|
|
3212
3257
|
var DrawerActionTrigger = Drawer$1.ActionTrigger;
|
|
3213
3258
|
var DrawerHeader = Drawer$1.Header;
|
|
3214
|
-
var
|
|
3259
|
+
var texts14 = createTexts({
|
|
3215
3260
|
back: {
|
|
3216
3261
|
en: "Back",
|
|
3217
3262
|
nb: "Tilbake",
|
|
@@ -3241,7 +3286,7 @@ var TextLink = ({
|
|
|
3241
3286
|
}) => {
|
|
3242
3287
|
const { t } = useTranslation();
|
|
3243
3288
|
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
|
3244
|
-
const externalLabel = t ? t(
|
|
3289
|
+
const externalLabel = t ? t(texts15.externalLink) : texts15.externalLink.en;
|
|
3245
3290
|
if (props.asChild && isValidElement(children)) {
|
|
3246
3291
|
return /* @__PURE__ */ jsx(
|
|
3247
3292
|
Link,
|
|
@@ -3280,7 +3325,7 @@ var TextLink = ({
|
|
|
3280
3325
|
}
|
|
3281
3326
|
);
|
|
3282
3327
|
};
|
|
3283
|
-
var
|
|
3328
|
+
var texts15 = createTexts({
|
|
3284
3329
|
externalLink: {
|
|
3285
3330
|
nb: "Ekstern lenke",
|
|
3286
3331
|
nn: "Ekstern lenke",
|
|
@@ -3313,20 +3358,7 @@ var ErrorSummary = ({
|
|
|
3313
3358
|
tabIndex: -1,
|
|
3314
3359
|
children: [
|
|
3315
3360
|
heading && /* @__PURE__ */ jsxs(Flex, { css: styles.heading, children: [
|
|
3316
|
-
/* @__PURE__ */ jsx(
|
|
3317
|
-
ErrorFill24Icon,
|
|
3318
|
-
{
|
|
3319
|
-
css: {
|
|
3320
|
-
flexShrink: 0,
|
|
3321
|
-
"& path:first-of-type": {
|
|
3322
|
-
fill: `icon.critical`
|
|
3323
|
-
},
|
|
3324
|
-
"& path:not(:first-of-type)": {
|
|
3325
|
-
fill: `surface.critical`
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3329
|
-
),
|
|
3361
|
+
/* @__PURE__ */ jsx(ErrorFill24Icon, {}),
|
|
3330
3362
|
/* @__PURE__ */ jsx(Heading, { as: headingLevel, variant: "md", autoId: true, ref: headingRef, children: heading })
|
|
3331
3363
|
] }),
|
|
3332
3364
|
/* @__PURE__ */ jsx(List, { css: styles.list, gap: 2, children })
|
|
@@ -3666,10 +3698,10 @@ function Autocomplete({
|
|
|
3666
3698
|
}
|
|
3667
3699
|
}
|
|
3668
3700
|
) }),
|
|
3669
|
-
/* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(
|
|
3701
|
+
/* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
|
|
3670
3702
|
] }),
|
|
3671
3703
|
/* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
|
|
3672
|
-
!loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(
|
|
3704
|
+
!loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts16.noItemsFound) }),
|
|
3673
3705
|
loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3674
3706
|
] }) })
|
|
3675
3707
|
] });
|
|
@@ -3728,7 +3760,7 @@ var extractItemsFromChildren = (children) => {
|
|
|
3728
3760
|
});
|
|
3729
3761
|
return items;
|
|
3730
3762
|
};
|
|
3731
|
-
var
|
|
3763
|
+
var texts16 = createTexts({
|
|
3732
3764
|
noItemsFound: {
|
|
3733
3765
|
nb: "Ingen resultater",
|
|
3734
3766
|
nn: "Ingen resultat",
|
|
@@ -4545,7 +4577,7 @@ var NumericStepper = ({
|
|
|
4545
4577
|
{
|
|
4546
4578
|
icon: /* @__PURE__ */ jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
4547
4579
|
"aria-label": t(
|
|
4548
|
-
|
|
4580
|
+
texts17.decrementButtonAriaLabel(
|
|
4549
4581
|
clampedStepSize,
|
|
4550
4582
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4551
4583
|
)
|
|
@@ -4572,7 +4604,7 @@ var NumericStepper = ({
|
|
|
4572
4604
|
css: styles.input,
|
|
4573
4605
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4574
4606
|
"aria-live": "assertive",
|
|
4575
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4607
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4576
4608
|
onChange: (event) => {
|
|
4577
4609
|
const numericInput = Number(event.target.value);
|
|
4578
4610
|
if (Number.isNaN(numericInput)) {
|
|
@@ -4593,7 +4625,7 @@ var NumericStepper = ({
|
|
|
4593
4625
|
paddingX: 0.5,
|
|
4594
4626
|
padding: 0,
|
|
4595
4627
|
textAlign: "center",
|
|
4596
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4628
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4597
4629
|
children: value
|
|
4598
4630
|
}
|
|
4599
4631
|
),
|
|
@@ -4603,7 +4635,7 @@ var NumericStepper = ({
|
|
|
4603
4635
|
ref: addButtonRef,
|
|
4604
4636
|
icon: /* @__PURE__ */ jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
4605
4637
|
"aria-label": t(
|
|
4606
|
-
|
|
4638
|
+
texts17.incrementButtonAriaLabel(
|
|
4607
4639
|
clampedStepSize,
|
|
4608
4640
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4609
4641
|
)
|
|
@@ -4677,7 +4709,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
|
4677
4709
|
] }),
|
|
4678
4710
|
stepLabel > 1 && /* @__PURE__ */ jsx(chakra.span, { paddingRight: "1", children: stepLabel.toString() })
|
|
4679
4711
|
] });
|
|
4680
|
-
var
|
|
4712
|
+
var texts17 = createTexts({
|
|
4681
4713
|
currentNumberAriaLabel(ariaContext) {
|
|
4682
4714
|
return {
|
|
4683
4715
|
nb: `Valgt antall ${ariaContext}`,
|
|
@@ -4743,7 +4775,7 @@ var PasswordInput = ({
|
|
|
4743
4775
|
setVisible(!visible);
|
|
4744
4776
|
},
|
|
4745
4777
|
size,
|
|
4746
|
-
children: visible ? t(
|
|
4778
|
+
children: visible ? t(texts18.hidePassword) : t(texts18.showPassword)
|
|
4747
4779
|
}
|
|
4748
4780
|
),
|
|
4749
4781
|
size,
|
|
@@ -4768,7 +4800,7 @@ var VisibilityTrigger = ({
|
|
|
4768
4800
|
}
|
|
4769
4801
|
);
|
|
4770
4802
|
};
|
|
4771
|
-
var
|
|
4803
|
+
var texts18 = createTexts({
|
|
4772
4804
|
showPassword: {
|
|
4773
4805
|
nb: "Vis",
|
|
4774
4806
|
nn: "Vis",
|
|
@@ -4820,7 +4852,7 @@ var CountryCodeSelect = ({
|
|
|
4820
4852
|
positioning: { placement: "bottom", flip: false },
|
|
4821
4853
|
collection: filteredCallingCodes,
|
|
4822
4854
|
lazyMount: true,
|
|
4823
|
-
"aria-label": t(
|
|
4855
|
+
"aria-label": t(texts19.countryCode),
|
|
4824
4856
|
sideRadiusVariant: "rightSideSquare",
|
|
4825
4857
|
size: props.size,
|
|
4826
4858
|
role: "combobox",
|
|
@@ -4828,7 +4860,7 @@ var CountryCodeSelect = ({
|
|
|
4828
4860
|
}
|
|
4829
4861
|
);
|
|
4830
4862
|
};
|
|
4831
|
-
var
|
|
4863
|
+
var texts19 = createTexts({
|
|
4832
4864
|
countryCode: {
|
|
4833
4865
|
nb: "Landkode",
|
|
4834
4866
|
nn: "Landskode",
|
|
@@ -4852,7 +4884,7 @@ var PhoneNumberInput = ({
|
|
|
4852
4884
|
size = "md"
|
|
4853
4885
|
} = props;
|
|
4854
4886
|
const { t } = useTranslation();
|
|
4855
|
-
const label = externalLabel ?? (optional ? t(
|
|
4887
|
+
const label = externalLabel ?? (optional ? t(texts20.phoneNumberOptional) : t(texts20.phoneNumber));
|
|
4856
4888
|
const [value, onChange] = useControllableState({
|
|
4857
4889
|
value: externalValue,
|
|
4858
4890
|
onChange: externalOnChange,
|
|
@@ -4908,7 +4940,7 @@ var PhoneNumberInput = ({
|
|
|
4908
4940
|
)
|
|
4909
4941
|
] });
|
|
4910
4942
|
};
|
|
4911
|
-
var
|
|
4943
|
+
var texts20 = createTexts({
|
|
4912
4944
|
phoneNumber: {
|
|
4913
4945
|
nb: "Telefonnummer",
|
|
4914
4946
|
nn: "Telefonnummer",
|
|
@@ -4961,16 +4993,16 @@ var SearchInput = ({
|
|
|
4961
4993
|
variant: "ghost",
|
|
4962
4994
|
type: "button",
|
|
4963
4995
|
size: "sm",
|
|
4964
|
-
"aria-label": t(
|
|
4996
|
+
"aria-label": t(texts21.reset),
|
|
4965
4997
|
icon: size == "md" ? /* @__PURE__ */ jsx(CloseOutline24Icon, {}) : /* @__PURE__ */ jsx(CloseOutline18Icon, {}),
|
|
4966
4998
|
onClick: onReset
|
|
4967
4999
|
}
|
|
4968
5000
|
),
|
|
4969
|
-
label: label ?? t(
|
|
5001
|
+
label: label ?? t(texts21.label)
|
|
4970
5002
|
}
|
|
4971
5003
|
);
|
|
4972
5004
|
};
|
|
4973
|
-
var
|
|
5005
|
+
var texts21 = createTexts({
|
|
4974
5006
|
label: {
|
|
4975
5007
|
nb: "S\xF8k",
|
|
4976
5008
|
nn: "S\xF8k",
|
|
@@ -6024,14 +6056,14 @@ var JumpButton = ({
|
|
|
6024
6056
|
as: "button",
|
|
6025
6057
|
ref,
|
|
6026
6058
|
css: styles.root,
|
|
6027
|
-
"aria-label": direction === "forward" ? t(
|
|
6059
|
+
"aria-label": direction === "forward" ? t(texts22.forward) : t(texts22.backward),
|
|
6028
6060
|
disabled,
|
|
6029
6061
|
...props,
|
|
6030
6062
|
children: direction === "forward" ? /* @__PURE__ */ jsx(Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(Backward15MediaControllerFill30Icon, { css: styles.icon })
|
|
6031
6063
|
}
|
|
6032
6064
|
);
|
|
6033
6065
|
};
|
|
6034
|
-
var
|
|
6066
|
+
var texts22 = createTexts({
|
|
6035
6067
|
forward: {
|
|
6036
6068
|
nb: "15 sekunder frem",
|
|
6037
6069
|
nn: "15 sekunder fram",
|
|
@@ -6059,14 +6091,14 @@ var PlayPauseButton = ({
|
|
|
6059
6091
|
ref,
|
|
6060
6092
|
as: "button",
|
|
6061
6093
|
css: styles.root,
|
|
6062
|
-
"aria-label": playing ? t(
|
|
6094
|
+
"aria-label": playing ? t(texts23.pause) : t(texts23.play),
|
|
6063
6095
|
disabled,
|
|
6064
6096
|
...props,
|
|
6065
6097
|
children: playing ? /* @__PURE__ */ jsx(PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PlayMediaControllerFill24Icon, { css: styles.icon })
|
|
6066
6098
|
}
|
|
6067
6099
|
);
|
|
6068
6100
|
};
|
|
6069
|
-
var
|
|
6101
|
+
var texts23 = createTexts({
|
|
6070
6102
|
pause: {
|
|
6071
6103
|
nb: "Pause",
|
|
6072
6104
|
nn: "Pause",
|
|
@@ -6094,14 +6126,14 @@ var SkipButton = ({
|
|
|
6094
6126
|
ref,
|
|
6095
6127
|
as: "button",
|
|
6096
6128
|
css: styles.root,
|
|
6097
|
-
"aria-label": direction === "forward" ? t(
|
|
6129
|
+
"aria-label": direction === "forward" ? t(texts24.next) : t(texts24.previous),
|
|
6098
6130
|
disabled,
|
|
6099
6131
|
...props,
|
|
6100
6132
|
children: direction === "forward" ? /* @__PURE__ */ jsx(NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PreviousMediaControllerFill30Icon, { css: styles.icon })
|
|
6101
6133
|
}
|
|
6102
6134
|
);
|
|
6103
6135
|
};
|
|
6104
|
-
var
|
|
6136
|
+
var texts24 = createTexts({
|
|
6105
6137
|
next: {
|
|
6106
6138
|
nb: "Neste",
|
|
6107
6139
|
nn: "Neste",
|
|
@@ -6216,7 +6248,7 @@ var NudgeActions = ({ ...props }) => {
|
|
|
6216
6248
|
var NextButton = ({ isLastStep, onNext }) => {
|
|
6217
6249
|
const { t } = useTranslation();
|
|
6218
6250
|
if (isLastStep)
|
|
6219
|
-
return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(
|
|
6251
|
+
return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts25.close) }) });
|
|
6220
6252
|
return /* @__PURE__ */ jsx(
|
|
6221
6253
|
Button,
|
|
6222
6254
|
{
|
|
@@ -6224,11 +6256,11 @@ var NextButton = ({ isLastStep, onNext }) => {
|
|
|
6224
6256
|
size: "xs",
|
|
6225
6257
|
rightIcon: /* @__PURE__ */ jsx(ArrowRightFill18Icon, {}),
|
|
6226
6258
|
onClick: onNext,
|
|
6227
|
-
children: t(
|
|
6259
|
+
children: t(texts25.nextStep)
|
|
6228
6260
|
}
|
|
6229
6261
|
);
|
|
6230
6262
|
};
|
|
6231
|
-
var
|
|
6263
|
+
var texts25 = createTexts({
|
|
6232
6264
|
nextStep: {
|
|
6233
6265
|
nb: "Neste",
|
|
6234
6266
|
nn: "Neste",
|
|
@@ -6304,7 +6336,7 @@ var PaginationItem = ({
|
|
|
6304
6336
|
to: rootProps.getHref(props.value)
|
|
6305
6337
|
},
|
|
6306
6338
|
ref,
|
|
6307
|
-
"aria-label": t(
|
|
6339
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6308
6340
|
...props,
|
|
6309
6341
|
children: props.value
|
|
6310
6342
|
}
|
|
@@ -6315,7 +6347,7 @@ var PaginationItem = ({
|
|
|
6315
6347
|
{
|
|
6316
6348
|
as: props.as ?? "button",
|
|
6317
6349
|
ref,
|
|
6318
|
-
"aria-label": t(
|
|
6350
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6319
6351
|
"aria-current": page === props.value,
|
|
6320
6352
|
...props,
|
|
6321
6353
|
children: props.value
|
|
@@ -6345,7 +6377,7 @@ var PaginationPrevTrigger = ({
|
|
|
6345
6377
|
},
|
|
6346
6378
|
ref,
|
|
6347
6379
|
css: styles.item,
|
|
6348
|
-
"aria-label": t(
|
|
6380
|
+
"aria-label": t(texts26.previousPage),
|
|
6349
6381
|
...props,
|
|
6350
6382
|
children: /* @__PURE__ */ jsx(DropdownLeftOutline18Icon, {})
|
|
6351
6383
|
}
|
|
@@ -6356,7 +6388,7 @@ var PaginationPrevTrigger = ({
|
|
|
6356
6388
|
{
|
|
6357
6389
|
ref,
|
|
6358
6390
|
asChild: true,
|
|
6359
|
-
"aria-label": t(
|
|
6391
|
+
"aria-label": t(texts26.previousPage),
|
|
6360
6392
|
as: props.as || "button",
|
|
6361
6393
|
css: styles.item,
|
|
6362
6394
|
...props,
|
|
@@ -6385,7 +6417,7 @@ var PaginationNextTrigger = ({
|
|
|
6385
6417
|
to: rootProps.getHref(props.value)
|
|
6386
6418
|
},
|
|
6387
6419
|
css: styles.item,
|
|
6388
|
-
"aria-label": t(
|
|
6420
|
+
"aria-label": t(texts26.nextPage),
|
|
6389
6421
|
...props,
|
|
6390
6422
|
children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
|
|
6391
6423
|
}
|
|
@@ -6396,7 +6428,7 @@ var PaginationNextTrigger = ({
|
|
|
6396
6428
|
{
|
|
6397
6429
|
ref,
|
|
6398
6430
|
css: styles.item,
|
|
6399
|
-
"aria-label": t(
|
|
6431
|
+
"aria-label": t(texts26.nextPage),
|
|
6400
6432
|
as: props.as || "button",
|
|
6401
6433
|
...props,
|
|
6402
6434
|
children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
|
|
@@ -6423,7 +6455,7 @@ var PaginationItems = (props) => {
|
|
|
6423
6455
|
);
|
|
6424
6456
|
}) });
|
|
6425
6457
|
};
|
|
6426
|
-
var
|
|
6458
|
+
var texts26 = createTexts({
|
|
6427
6459
|
previousPage: {
|
|
6428
6460
|
nb: "Forrige side",
|
|
6429
6461
|
nn: "F\xF8rre side",
|
|
@@ -6523,7 +6555,7 @@ var ProgressIndicator = ({
|
|
|
6523
6555
|
"aria-valuemin": 1,
|
|
6524
6556
|
"aria-valuemax": numberOfSteps,
|
|
6525
6557
|
"aria-valuenow": activeStep,
|
|
6526
|
-
"aria-valuetext": t(
|
|
6558
|
+
"aria-valuetext": t(texts27.stepsOf(activeStep, numberOfSteps)),
|
|
6527
6559
|
ref,
|
|
6528
6560
|
children: /* @__PURE__ */ jsx(Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsx(
|
|
6529
6561
|
Box,
|
|
@@ -6542,7 +6574,7 @@ var ProgressIndicator = ({
|
|
|
6542
6574
|
}
|
|
6543
6575
|
);
|
|
6544
6576
|
};
|
|
6545
|
-
var
|
|
6577
|
+
var texts27 = createTexts({
|
|
6546
6578
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6547
6579
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
6548
6580
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
@@ -6738,7 +6770,7 @@ var Stepper = function Stepper2({
|
|
|
6738
6770
|
/* @__PURE__ */ jsx(
|
|
6739
6771
|
IconButton,
|
|
6740
6772
|
{
|
|
6741
|
-
"aria-label": t(
|
|
6773
|
+
"aria-label": t(texts28.back),
|
|
6742
6774
|
icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
|
|
6743
6775
|
variant: "ghost",
|
|
6744
6776
|
size: "sm",
|
|
@@ -6762,7 +6794,7 @@ var Stepper = function Stepper2({
|
|
|
6762
6794
|
children: heading
|
|
6763
6795
|
}
|
|
6764
6796
|
),
|
|
6765
|
-
/* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(
|
|
6797
|
+
/* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts28.stepsOf(activeStep, numberOfSteps)) })
|
|
6766
6798
|
]
|
|
6767
6799
|
}
|
|
6768
6800
|
) }),
|
|
@@ -6781,7 +6813,7 @@ var Stepper = function Stepper2({
|
|
|
6781
6813
|
}
|
|
6782
6814
|
) });
|
|
6783
6815
|
};
|
|
6784
|
-
var
|
|
6816
|
+
var texts28 = createTexts({
|
|
6785
6817
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6786
6818
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
|
6787
6819
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
|
@@ -7668,7 +7700,9 @@ var textareaRecipe = defineRecipe({
|
|
|
7668
7700
|
borderTop: "0.8rem solid transparent",
|
|
7669
7701
|
"&:focus-visible, &:not(:placeholder-shown)": {
|
|
7670
7702
|
borderTop: "var(--label-height) solid transparent"
|
|
7671
|
-
}
|
|
7703
|
+
},
|
|
7704
|
+
fontSize: "mobile.md",
|
|
7705
|
+
paddingLeft: 3
|
|
7672
7706
|
},
|
|
7673
7707
|
variants: {
|
|
7674
7708
|
variant: {
|
|
@@ -8991,7 +9025,8 @@ var datePickerSlotRecipe = defineSlotRecipe({
|
|
|
8991
9025
|
outlineColor: "outline.floating",
|
|
8992
9026
|
boxShadow: "md",
|
|
8993
9027
|
backgroundColor: "surface.floating",
|
|
8994
|
-
minHeight: "min-content"
|
|
9028
|
+
minHeight: "min-content",
|
|
9029
|
+
maxWidth: "100vw"
|
|
8995
9030
|
},
|
|
8996
9031
|
rangeCalendarPopover: {
|
|
8997
9032
|
width: "43rem",
|