@vygruppen/spor-react 13.4.2 → 13.4.3
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 +10 -10
- package/.turbo/turbo-postinstall.log +4 -3
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +120 -64
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +120 -64
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- 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/theme/recipes/textarea.ts +2 -0
- package/src/theme/slot-recipes/datepicker.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.4.
|
|
2
|
+
> @vygruppen/spor-react@13.4.3 build /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
CLI Building entry: src/index.tsx, src/icons/index.tsx
|
|
@@ -11,17 +11,17 @@ CLI Cleaning output folder
|
|
|
11
11
|
ESM Build start
|
|
12
12
|
CJS Build start
|
|
13
13
|
DTS Build start
|
|
14
|
-
|
|
15
|
-
ESM dist/icons/index.mjs 110.00 B
|
|
16
|
-
ESM dist/index.mjs.map 745.68 KB
|
|
17
|
-
ESM dist/icons/index.mjs.map 157.00 B
|
|
18
|
-
ESM ⚡️ Build success in 2121ms
|
|
19
|
-
CJS dist/index.cjs 375.08 KB
|
|
14
|
+
CJS dist/index.cjs 376.07 KB
|
|
20
15
|
CJS dist/icons/index.cjs 381.00 B
|
|
21
|
-
CJS dist/index.cjs.map
|
|
16
|
+
CJS dist/index.cjs.map 747.62 KB
|
|
22
17
|
CJS dist/icons/index.cjs.map 157.00 B
|
|
23
|
-
CJS ⚡️ Build success in
|
|
24
|
-
|
|
18
|
+
CJS ⚡️ Build success in 2665ms
|
|
19
|
+
ESM dist/index.mjs 351.48 KB
|
|
20
|
+
ESM dist/icons/index.mjs 110.00 B
|
|
21
|
+
ESM dist/index.mjs.map 747.62 KB
|
|
22
|
+
ESM dist/icons/index.mjs.map 157.00 B
|
|
23
|
+
ESM ⚡️ Build success in 2666ms
|
|
24
|
+
DTS ⚡️ Build success in 22585ms
|
|
25
25
|
DTS dist/icons/index.d.ts 44.00 B
|
|
26
26
|
DTS dist/index.d.ts 154.14 KB
|
|
27
27
|
DTS dist/icons/index.d.cts 44.00 B
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @vygruppen/spor-react@13.4.
|
|
2
|
+
> @vygruppen/spor-react@13.4.3 postinstall /home/runner/work/spor/spor/packages/spor-react
|
|
3
3
|
> chakra typegen src/theme/index.ts
|
|
4
4
|
|
|
5
|
-
◇ injected env (0) from .env // tip: ⌘
|
|
5
|
+
◇ injected env (0) from .env // tip: ⌘ multiple files { path: ['.env.local', '.env'] }
|
|
6
6
|
[90m┌[39m Chakra CLI ⚡️
|
|
7
7
|
[?25l[90m│[39m
|
|
8
|
-
[
|
|
8
|
+
[35m◒[39m Generating conditions types...
|
|
9
|
+
[1G[J[32m◇[39m ✅ Generated conditions typings
|
|
9
10
|
[?25h[?25l[90m│[39m
|
|
10
11
|
[35m◒[39m Generating recipe types...
|
|
11
12
|
[1G[J[32m◇[39m ✅ Generated recipe typings
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @vygruppen/spor-react
|
|
2
2
|
|
|
3
|
+
## 13.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dea15ec: Solve accessibility problems: 1) adjust width of calendar-view in DatePicker to not overflow the screens view. 2) add asterisk to TimePicker when set to required. 3) Remove aria-assertive on errormessage in TimePicker.
|
|
8
|
+
- 3426845: Add aria-labels to dateTime segments in TimePicker
|
|
9
|
+
- dc7f5af: Add paddingleft to textarea and change the color of surface.ghost.hover in Vy-Digital theme
|
|
10
|
+
- Updated dependencies [3b905c8]
|
|
11
|
+
- Updated dependencies [5aabe19]
|
|
12
|
+
- Updated dependencies [dc7f5af]
|
|
13
|
+
- @vygruppen/spor-design-tokens@5.0.5
|
|
14
|
+
|
|
3
15
|
## 13.4.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -227,8 +227,8 @@ function useTranslation() {
|
|
|
227
227
|
};
|
|
228
228
|
return { t, language };
|
|
229
229
|
}
|
|
230
|
-
function createTexts(
|
|
231
|
-
return
|
|
230
|
+
function createTexts(texts29) {
|
|
231
|
+
return texts29;
|
|
232
232
|
}
|
|
233
233
|
function Lottie({ animationData }) {
|
|
234
234
|
const { View } = lottieReact.useLottie({ animationData });
|
|
@@ -2485,7 +2485,7 @@ var DateTimeSegment = ({
|
|
|
2485
2485
|
segment,
|
|
2486
2486
|
state,
|
|
2487
2487
|
ariaLabel,
|
|
2488
|
-
|
|
2488
|
+
ariaLabelledby,
|
|
2489
2489
|
variant
|
|
2490
2490
|
}) => {
|
|
2491
2491
|
const internalRef = React14.useRef(null);
|
|
@@ -2515,8 +2515,8 @@ var DateTimeSegment = ({
|
|
|
2515
2515
|
borderRadius: "xs",
|
|
2516
2516
|
fontSize: ["mobile.sm", "desktop.sm"],
|
|
2517
2517
|
css: styles.dateTimeSegment,
|
|
2518
|
-
"aria-label":
|
|
2519
|
-
"aria-labelledby":
|
|
2518
|
+
"aria-label": ariaLabel,
|
|
2519
|
+
"aria-labelledby": ariaLabelledby,
|
|
2520
2520
|
children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
|
|
2521
2521
|
}
|
|
2522
2522
|
);
|
|
@@ -2565,7 +2565,7 @@ var DateField = ({
|
|
|
2565
2565
|
DateTimeSegment,
|
|
2566
2566
|
{
|
|
2567
2567
|
segment,
|
|
2568
|
-
|
|
2568
|
+
ariaLabel: t(getAriaLabel(segment.type)),
|
|
2569
2569
|
state
|
|
2570
2570
|
},
|
|
2571
2571
|
index
|
|
@@ -2692,7 +2692,7 @@ var DatePicker = ({
|
|
|
2692
2692
|
}
|
|
2693
2693
|
(_a6 = props.onClick) == null ? void 0 : _a6.call(props);
|
|
2694
2694
|
};
|
|
2695
|
-
const popoverContent = /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { minWidth: "
|
|
2695
|
+
const popoverContent = /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsxRuntime.jsx(react.Popover.Body, { minWidth: "18rem", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2696
2696
|
Calendar2,
|
|
2697
2697
|
{
|
|
2698
2698
|
...calendarProps,
|
|
@@ -2901,8 +2901,9 @@ function DateRangePicker({
|
|
|
2901
2901
|
var TimeField = ({ state, ...props }) => {
|
|
2902
2902
|
const ref = React14.useRef(null);
|
|
2903
2903
|
const { labelProps, fieldProps } = reactAria.useTimeField(props, state, ref);
|
|
2904
|
+
const { t } = useTranslation();
|
|
2904
2905
|
return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
|
|
2905
|
-
/* @__PURE__ */ jsxRuntime.
|
|
2906
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2906
2907
|
react.chakra.label,
|
|
2907
2908
|
{
|
|
2908
2909
|
...labelProps,
|
|
@@ -2919,10 +2920,21 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2919
2920
|
overflow: "hidden",
|
|
2920
2921
|
textOverflow: "ellipsis",
|
|
2921
2922
|
maxWidth: "80%",
|
|
2922
|
-
children:
|
|
2923
|
+
children: [
|
|
2924
|
+
props.label,
|
|
2925
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
|
|
2926
|
+
]
|
|
2923
2927
|
}
|
|
2924
2928
|
),
|
|
2925
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2929
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2930
|
+
DateTimeSegment,
|
|
2931
|
+
{
|
|
2932
|
+
segment,
|
|
2933
|
+
state,
|
|
2934
|
+
ariaLabel: t(getAriaLabel2(segment.type))
|
|
2935
|
+
},
|
|
2936
|
+
index
|
|
2937
|
+
)) }),
|
|
2926
2938
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2927
2939
|
"input",
|
|
2928
2940
|
{
|
|
@@ -2933,6 +2945,48 @@ var TimeField = ({ state, ...props }) => {
|
|
|
2933
2945
|
)
|
|
2934
2946
|
] });
|
|
2935
2947
|
};
|
|
2948
|
+
var getAriaLabel2 = (segmentType) => {
|
|
2949
|
+
switch (segmentType) {
|
|
2950
|
+
case "hour": {
|
|
2951
|
+
return texts12.hour;
|
|
2952
|
+
}
|
|
2953
|
+
case "minute": {
|
|
2954
|
+
return texts12.minute;
|
|
2955
|
+
}
|
|
2956
|
+
case "second": {
|
|
2957
|
+
return texts12.second;
|
|
2958
|
+
}
|
|
2959
|
+
default: {
|
|
2960
|
+
return texts12.default;
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
};
|
|
2964
|
+
var texts12 = createTexts({
|
|
2965
|
+
hour: {
|
|
2966
|
+
nb: "Velg time",
|
|
2967
|
+
nn: "Vel time",
|
|
2968
|
+
sv: "V\xE4lj timme",
|
|
2969
|
+
en: "Choose hour"
|
|
2970
|
+
},
|
|
2971
|
+
minute: {
|
|
2972
|
+
nb: "Velg minutt",
|
|
2973
|
+
nn: "Vel minutt",
|
|
2974
|
+
sv: "V\xE4lj minut",
|
|
2975
|
+
en: "Choose minute"
|
|
2976
|
+
},
|
|
2977
|
+
second: {
|
|
2978
|
+
nb: "Velg sekund",
|
|
2979
|
+
nn: "Vel sekund",
|
|
2980
|
+
sv: "V\xE4lj sekund",
|
|
2981
|
+
en: "Choose second"
|
|
2982
|
+
},
|
|
2983
|
+
default: {
|
|
2984
|
+
nb: "Velg tid",
|
|
2985
|
+
nn: "Vel tid",
|
|
2986
|
+
sv: "V\xE4lj tid",
|
|
2987
|
+
en: "Choose time"
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2936
2990
|
var TimePicker = ({
|
|
2937
2991
|
label: externalLabel,
|
|
2938
2992
|
value,
|
|
@@ -2948,7 +3002,7 @@ var TimePicker = ({
|
|
|
2948
3002
|
const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
|
|
2949
3003
|
const { t } = useTranslation();
|
|
2950
3004
|
const locale = useCurrentLocale();
|
|
2951
|
-
const label = externalLabel ?? t(
|
|
3005
|
+
const label = externalLabel ?? t(texts13.time);
|
|
2952
3006
|
const state = reactStately.useTimeFieldState({
|
|
2953
3007
|
value,
|
|
2954
3008
|
defaultValue,
|
|
@@ -2981,15 +3035,15 @@ var TimePicker = ({
|
|
|
2981
3035
|
})
|
|
2982
3036
|
);
|
|
2983
3037
|
};
|
|
2984
|
-
const backwardsLabel = `${t(
|
|
2985
|
-
|
|
3038
|
+
const backwardsLabel = `${t(texts13.backwards)} ${minuteInterval} ${t(
|
|
3039
|
+
texts13.minutes
|
|
2986
3040
|
)}`;
|
|
2987
|
-
const forwardsLabel = `${t(
|
|
2988
|
-
|
|
3041
|
+
const forwardsLabel = `${t(texts13.forwards)} ${minuteInterval} ${t(
|
|
3042
|
+
texts13.minutes
|
|
2989
3043
|
)}`;
|
|
2990
|
-
const inputLabel = label ?? t(
|
|
3044
|
+
const inputLabel = label ?? t(texts13.time);
|
|
2991
3045
|
const ariaLabel = `${inputLabel} \u2013 ${t(
|
|
2992
|
-
|
|
3046
|
+
texts13.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
|
|
2993
3047
|
)}`;
|
|
2994
3048
|
return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2995
3049
|
StyledField,
|
|
@@ -3002,7 +3056,6 @@ var TimePicker = ({
|
|
|
3002
3056
|
opacity: isDisabled ? 0.5 : 1,
|
|
3003
3057
|
pointerEvents: isDisabled ? "none" : "auto",
|
|
3004
3058
|
"aria-disabled": isDisabled,
|
|
3005
|
-
"aria-live": "assertive",
|
|
3006
3059
|
"aria-label": ariaLabel,
|
|
3007
3060
|
position: "relative",
|
|
3008
3061
|
...boxProps,
|
|
@@ -3042,7 +3095,7 @@ var TimePicker = ({
|
|
|
3042
3095
|
}
|
|
3043
3096
|
) });
|
|
3044
3097
|
};
|
|
3045
|
-
var
|
|
3098
|
+
var texts13 = createTexts({
|
|
3046
3099
|
selectedTimeIs: (time) => ({
|
|
3047
3100
|
nb: `Valgt tidspunkt er ${time}`,
|
|
3048
3101
|
nn: `Valt tidspunkt er ${time}`,
|
|
@@ -3184,7 +3237,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
|
|
|
3184
3237
|
{
|
|
3185
3238
|
variant: "ghost",
|
|
3186
3239
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
|
|
3187
|
-
label: t(
|
|
3240
|
+
label: t(texts14.close)
|
|
3188
3241
|
}
|
|
3189
3242
|
) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
|
|
3190
3243
|
};
|
|
@@ -3198,7 +3251,7 @@ var DrawerBackTrigger = ({
|
|
|
3198
3251
|
{
|
|
3199
3252
|
variant: "ghost",
|
|
3200
3253
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
3201
|
-
label: t(
|
|
3254
|
+
label: t(texts14.back)
|
|
3202
3255
|
}
|
|
3203
3256
|
) });
|
|
3204
3257
|
};
|
|
@@ -3230,7 +3283,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
|
|
|
3230
3283
|
var DrawerTitle = react.Drawer.Title;
|
|
3231
3284
|
var DrawerActionTrigger = react.Drawer.ActionTrigger;
|
|
3232
3285
|
var DrawerHeader = react.Drawer.Header;
|
|
3233
|
-
var
|
|
3286
|
+
var texts14 = createTexts({
|
|
3234
3287
|
back: {
|
|
3235
3288
|
en: "Back",
|
|
3236
3289
|
nb: "Tilbake",
|
|
@@ -3260,7 +3313,7 @@ var TextLink = ({
|
|
|
3260
3313
|
}) => {
|
|
3261
3314
|
const { t } = useTranslation();
|
|
3262
3315
|
const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
|
|
3263
|
-
const externalLabel = t ? t(
|
|
3316
|
+
const externalLabel = t ? t(texts15.externalLink) : texts15.externalLink.en;
|
|
3264
3317
|
if (props.asChild && React14.isValidElement(children)) {
|
|
3265
3318
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3266
3319
|
react.Link,
|
|
@@ -3299,7 +3352,7 @@ var TextLink = ({
|
|
|
3299
3352
|
}
|
|
3300
3353
|
);
|
|
3301
3354
|
};
|
|
3302
|
-
var
|
|
3355
|
+
var texts15 = createTexts({
|
|
3303
3356
|
externalLink: {
|
|
3304
3357
|
nb: "Ekstern lenke",
|
|
3305
3358
|
nn: "Ekstern lenke",
|
|
@@ -3685,10 +3738,10 @@ function Autocomplete({
|
|
|
3685
3738
|
}
|
|
3686
3739
|
}
|
|
3687
3740
|
) }),
|
|
3688
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(
|
|
3741
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
|
|
3689
3742
|
] }),
|
|
3690
3743
|
/* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
|
|
3691
|
-
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(
|
|
3744
|
+
!loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts16.noItemsFound) }),
|
|
3692
3745
|
loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
|
|
3693
3746
|
] }) })
|
|
3694
3747
|
] });
|
|
@@ -3747,7 +3800,7 @@ var extractItemsFromChildren = (children) => {
|
|
|
3747
3800
|
});
|
|
3748
3801
|
return items;
|
|
3749
3802
|
};
|
|
3750
|
-
var
|
|
3803
|
+
var texts16 = createTexts({
|
|
3751
3804
|
noItemsFound: {
|
|
3752
3805
|
nb: "Ingen resultater",
|
|
3753
3806
|
nn: "Ingen resultat",
|
|
@@ -4564,7 +4617,7 @@ var NumericStepper = ({
|
|
|
4564
4617
|
{
|
|
4565
4618
|
icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
|
|
4566
4619
|
"aria-label": t(
|
|
4567
|
-
|
|
4620
|
+
texts17.decrementButtonAriaLabel(
|
|
4568
4621
|
clampedStepSize,
|
|
4569
4622
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4570
4623
|
)
|
|
@@ -4591,7 +4644,7 @@ var NumericStepper = ({
|
|
|
4591
4644
|
css: styles.input,
|
|
4592
4645
|
width: `${Math.max(value.toString().length + 1, 3)}ch`,
|
|
4593
4646
|
"aria-live": "assertive",
|
|
4594
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4647
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4595
4648
|
onChange: (event) => {
|
|
4596
4649
|
const numericInput = Number(event.target.value);
|
|
4597
4650
|
if (Number.isNaN(numericInput)) {
|
|
@@ -4612,7 +4665,7 @@ var NumericStepper = ({
|
|
|
4612
4665
|
paddingX: 0.5,
|
|
4613
4666
|
padding: 0,
|
|
4614
4667
|
textAlign: "center",
|
|
4615
|
-
"aria-label": ariaLabelContext.plural === "" ? "" : t(
|
|
4668
|
+
"aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
|
|
4616
4669
|
children: value
|
|
4617
4670
|
}
|
|
4618
4671
|
),
|
|
@@ -4622,7 +4675,7 @@ var NumericStepper = ({
|
|
|
4622
4675
|
ref: addButtonRef,
|
|
4623
4676
|
icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
|
|
4624
4677
|
"aria-label": t(
|
|
4625
|
-
|
|
4678
|
+
texts17.incrementButtonAriaLabel(
|
|
4626
4679
|
clampedStepSize,
|
|
4627
4680
|
stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
|
|
4628
4681
|
)
|
|
@@ -4696,7 +4749,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
|
|
|
4696
4749
|
] }),
|
|
4697
4750
|
stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
|
|
4698
4751
|
] });
|
|
4699
|
-
var
|
|
4752
|
+
var texts17 = createTexts({
|
|
4700
4753
|
currentNumberAriaLabel(ariaContext) {
|
|
4701
4754
|
return {
|
|
4702
4755
|
nb: `Valgt antall ${ariaContext}`,
|
|
@@ -4762,7 +4815,7 @@ var PasswordInput = ({
|
|
|
4762
4815
|
setVisible(!visible);
|
|
4763
4816
|
},
|
|
4764
4817
|
size,
|
|
4765
|
-
children: visible ? t(
|
|
4818
|
+
children: visible ? t(texts18.hidePassword) : t(texts18.showPassword)
|
|
4766
4819
|
}
|
|
4767
4820
|
),
|
|
4768
4821
|
size,
|
|
@@ -4787,7 +4840,7 @@ var VisibilityTrigger = ({
|
|
|
4787
4840
|
}
|
|
4788
4841
|
);
|
|
4789
4842
|
};
|
|
4790
|
-
var
|
|
4843
|
+
var texts18 = createTexts({
|
|
4791
4844
|
showPassword: {
|
|
4792
4845
|
nb: "Vis",
|
|
4793
4846
|
nn: "Vis",
|
|
@@ -4839,7 +4892,7 @@ var CountryCodeSelect = ({
|
|
|
4839
4892
|
positioning: { placement: "bottom", flip: false },
|
|
4840
4893
|
collection: filteredCallingCodes,
|
|
4841
4894
|
lazyMount: true,
|
|
4842
|
-
"aria-label": t(
|
|
4895
|
+
"aria-label": t(texts19.countryCode),
|
|
4843
4896
|
sideRadiusVariant: "rightSideSquare",
|
|
4844
4897
|
size: props.size,
|
|
4845
4898
|
role: "combobox",
|
|
@@ -4847,7 +4900,7 @@ var CountryCodeSelect = ({
|
|
|
4847
4900
|
}
|
|
4848
4901
|
);
|
|
4849
4902
|
};
|
|
4850
|
-
var
|
|
4903
|
+
var texts19 = createTexts({
|
|
4851
4904
|
countryCode: {
|
|
4852
4905
|
nb: "Landkode",
|
|
4853
4906
|
nn: "Landskode",
|
|
@@ -4871,7 +4924,7 @@ var PhoneNumberInput = ({
|
|
|
4871
4924
|
size = "md"
|
|
4872
4925
|
} = props;
|
|
4873
4926
|
const { t } = useTranslation();
|
|
4874
|
-
const label = externalLabel ?? (optional ? t(
|
|
4927
|
+
const label = externalLabel ?? (optional ? t(texts20.phoneNumberOptional) : t(texts20.phoneNumber));
|
|
4875
4928
|
const [value, onChange] = react.useControllableState({
|
|
4876
4929
|
value: externalValue,
|
|
4877
4930
|
onChange: externalOnChange,
|
|
@@ -4927,7 +4980,7 @@ var PhoneNumberInput = ({
|
|
|
4927
4980
|
)
|
|
4928
4981
|
] });
|
|
4929
4982
|
};
|
|
4930
|
-
var
|
|
4983
|
+
var texts20 = createTexts({
|
|
4931
4984
|
phoneNumber: {
|
|
4932
4985
|
nb: "Telefonnummer",
|
|
4933
4986
|
nn: "Telefonnummer",
|
|
@@ -4980,16 +5033,16 @@ var SearchInput = ({
|
|
|
4980
5033
|
variant: "ghost",
|
|
4981
5034
|
type: "button",
|
|
4982
5035
|
size: "sm",
|
|
4983
|
-
"aria-label": t(
|
|
5036
|
+
"aria-label": t(texts21.reset),
|
|
4984
5037
|
icon: size == "md" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline18Icon, {}),
|
|
4985
5038
|
onClick: onReset
|
|
4986
5039
|
}
|
|
4987
5040
|
),
|
|
4988
|
-
label: label ?? t(
|
|
5041
|
+
label: label ?? t(texts21.label)
|
|
4989
5042
|
}
|
|
4990
5043
|
);
|
|
4991
5044
|
};
|
|
4992
|
-
var
|
|
5045
|
+
var texts21 = createTexts({
|
|
4993
5046
|
label: {
|
|
4994
5047
|
nb: "S\xF8k",
|
|
4995
5048
|
nn: "S\xF8k",
|
|
@@ -6043,14 +6096,14 @@ var JumpButton = ({
|
|
|
6043
6096
|
as: "button",
|
|
6044
6097
|
ref,
|
|
6045
6098
|
css: styles.root,
|
|
6046
|
-
"aria-label": direction === "forward" ? t(
|
|
6099
|
+
"aria-label": direction === "forward" ? t(texts22.forward) : t(texts22.backward),
|
|
6047
6100
|
disabled,
|
|
6048
6101
|
...props,
|
|
6049
6102
|
children: direction === "forward" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.Backward15MediaControllerFill30Icon, { css: styles.icon })
|
|
6050
6103
|
}
|
|
6051
6104
|
);
|
|
6052
6105
|
};
|
|
6053
|
-
var
|
|
6106
|
+
var texts22 = createTexts({
|
|
6054
6107
|
forward: {
|
|
6055
6108
|
nb: "15 sekunder frem",
|
|
6056
6109
|
nn: "15 sekunder fram",
|
|
@@ -6078,14 +6131,14 @@ var PlayPauseButton = ({
|
|
|
6078
6131
|
ref,
|
|
6079
6132
|
as: "button",
|
|
6080
6133
|
css: styles.root,
|
|
6081
|
-
"aria-label": playing ? t(
|
|
6134
|
+
"aria-label": playing ? t(texts23.pause) : t(texts23.play),
|
|
6082
6135
|
disabled,
|
|
6083
6136
|
...props,
|
|
6084
6137
|
children: playing ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PlayMediaControllerFill24Icon, { css: styles.icon })
|
|
6085
6138
|
}
|
|
6086
6139
|
);
|
|
6087
6140
|
};
|
|
6088
|
-
var
|
|
6141
|
+
var texts23 = createTexts({
|
|
6089
6142
|
pause: {
|
|
6090
6143
|
nb: "Pause",
|
|
6091
6144
|
nn: "Pause",
|
|
@@ -6113,14 +6166,14 @@ var SkipButton = ({
|
|
|
6113
6166
|
ref,
|
|
6114
6167
|
as: "button",
|
|
6115
6168
|
css: styles.root,
|
|
6116
|
-
"aria-label": direction === "forward" ? t(
|
|
6169
|
+
"aria-label": direction === "forward" ? t(texts24.next) : t(texts24.previous),
|
|
6117
6170
|
disabled,
|
|
6118
6171
|
...props,
|
|
6119
6172
|
children: direction === "forward" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PreviousMediaControllerFill30Icon, { css: styles.icon })
|
|
6120
6173
|
}
|
|
6121
6174
|
);
|
|
6122
6175
|
};
|
|
6123
|
-
var
|
|
6176
|
+
var texts24 = createTexts({
|
|
6124
6177
|
next: {
|
|
6125
6178
|
nb: "Neste",
|
|
6126
6179
|
nn: "Neste",
|
|
@@ -6235,7 +6288,7 @@ var NudgeActions = ({ ...props }) => {
|
|
|
6235
6288
|
var NextButton = ({ isLastStep, onNext }) => {
|
|
6236
6289
|
const { t } = useTranslation();
|
|
6237
6290
|
if (isLastStep)
|
|
6238
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(
|
|
6291
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts25.close) }) });
|
|
6239
6292
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6240
6293
|
Button,
|
|
6241
6294
|
{
|
|
@@ -6243,11 +6296,11 @@ var NextButton = ({ isLastStep, onNext }) => {
|
|
|
6243
6296
|
size: "xs",
|
|
6244
6297
|
rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
|
|
6245
6298
|
onClick: onNext,
|
|
6246
|
-
children: t(
|
|
6299
|
+
children: t(texts25.nextStep)
|
|
6247
6300
|
}
|
|
6248
6301
|
);
|
|
6249
6302
|
};
|
|
6250
|
-
var
|
|
6303
|
+
var texts25 = createTexts({
|
|
6251
6304
|
nextStep: {
|
|
6252
6305
|
nb: "Neste",
|
|
6253
6306
|
nn: "Neste",
|
|
@@ -6323,7 +6376,7 @@ var PaginationItem = ({
|
|
|
6323
6376
|
to: rootProps.getHref(props.value)
|
|
6324
6377
|
},
|
|
6325
6378
|
ref,
|
|
6326
|
-
"aria-label": t(
|
|
6379
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6327
6380
|
...props,
|
|
6328
6381
|
children: props.value
|
|
6329
6382
|
}
|
|
@@ -6334,7 +6387,7 @@ var PaginationItem = ({
|
|
|
6334
6387
|
{
|
|
6335
6388
|
as: props.as ?? "button",
|
|
6336
6389
|
ref,
|
|
6337
|
-
"aria-label": t(
|
|
6390
|
+
"aria-label": t(texts26.pageOf(props.value, totalPages)),
|
|
6338
6391
|
"aria-current": page === props.value,
|
|
6339
6392
|
...props,
|
|
6340
6393
|
children: props.value
|
|
@@ -6364,7 +6417,7 @@ var PaginationPrevTrigger = ({
|
|
|
6364
6417
|
},
|
|
6365
6418
|
ref,
|
|
6366
6419
|
css: styles.item,
|
|
6367
|
-
"aria-label": t(
|
|
6420
|
+
"aria-label": t(texts26.previousPage),
|
|
6368
6421
|
...props,
|
|
6369
6422
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
|
|
6370
6423
|
}
|
|
@@ -6375,7 +6428,7 @@ var PaginationPrevTrigger = ({
|
|
|
6375
6428
|
{
|
|
6376
6429
|
ref,
|
|
6377
6430
|
asChild: true,
|
|
6378
|
-
"aria-label": t(
|
|
6431
|
+
"aria-label": t(texts26.previousPage),
|
|
6379
6432
|
as: props.as || "button",
|
|
6380
6433
|
css: styles.item,
|
|
6381
6434
|
...props,
|
|
@@ -6404,7 +6457,7 @@ var PaginationNextTrigger = ({
|
|
|
6404
6457
|
to: rootProps.getHref(props.value)
|
|
6405
6458
|
},
|
|
6406
6459
|
css: styles.item,
|
|
6407
|
-
"aria-label": t(
|
|
6460
|
+
"aria-label": t(texts26.nextPage),
|
|
6408
6461
|
...props,
|
|
6409
6462
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
6410
6463
|
}
|
|
@@ -6415,7 +6468,7 @@ var PaginationNextTrigger = ({
|
|
|
6415
6468
|
{
|
|
6416
6469
|
ref,
|
|
6417
6470
|
css: styles.item,
|
|
6418
|
-
"aria-label": t(
|
|
6471
|
+
"aria-label": t(texts26.nextPage),
|
|
6419
6472
|
as: props.as || "button",
|
|
6420
6473
|
...props,
|
|
6421
6474
|
children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
|
|
@@ -6442,7 +6495,7 @@ var PaginationItems = (props) => {
|
|
|
6442
6495
|
);
|
|
6443
6496
|
}) });
|
|
6444
6497
|
};
|
|
6445
|
-
var
|
|
6498
|
+
var texts26 = createTexts({
|
|
6446
6499
|
previousPage: {
|
|
6447
6500
|
nb: "Forrige side",
|
|
6448
6501
|
nn: "F\xF8rre side",
|
|
@@ -6542,7 +6595,7 @@ var ProgressIndicator = ({
|
|
|
6542
6595
|
"aria-valuemin": 1,
|
|
6543
6596
|
"aria-valuemax": numberOfSteps,
|
|
6544
6597
|
"aria-valuenow": activeStep,
|
|
6545
|
-
"aria-valuetext": t(
|
|
6598
|
+
"aria-valuetext": t(texts27.stepsOf(activeStep, numberOfSteps)),
|
|
6546
6599
|
ref,
|
|
6547
6600
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6548
6601
|
react.Box,
|
|
@@ -6561,7 +6614,7 @@ var ProgressIndicator = ({
|
|
|
6561
6614
|
}
|
|
6562
6615
|
);
|
|
6563
6616
|
};
|
|
6564
|
-
var
|
|
6617
|
+
var texts27 = createTexts({
|
|
6565
6618
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6566
6619
|
nb: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
6567
6620
|
nn: `Steg ${activeStep} av ${numberOfSteps}`,
|
|
@@ -6757,7 +6810,7 @@ var Stepper = function Stepper2({
|
|
|
6757
6810
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6758
6811
|
IconButton,
|
|
6759
6812
|
{
|
|
6760
|
-
"aria-label": t(
|
|
6813
|
+
"aria-label": t(texts28.back),
|
|
6761
6814
|
icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
|
|
6762
6815
|
variant: "ghost",
|
|
6763
6816
|
size: "sm",
|
|
@@ -6781,7 +6834,7 @@ var Stepper = function Stepper2({
|
|
|
6781
6834
|
children: heading
|
|
6782
6835
|
}
|
|
6783
6836
|
),
|
|
6784
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(
|
|
6837
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts28.stepsOf(activeStep, numberOfSteps)) })
|
|
6785
6838
|
]
|
|
6786
6839
|
}
|
|
6787
6840
|
) }),
|
|
@@ -6800,7 +6853,7 @@ var Stepper = function Stepper2({
|
|
|
6800
6853
|
}
|
|
6801
6854
|
) });
|
|
6802
6855
|
};
|
|
6803
|
-
var
|
|
6856
|
+
var texts28 = createTexts({
|
|
6804
6857
|
stepsOf: (activeStep, numberOfSteps) => ({
|
|
6805
6858
|
nb: `Steg ${activeStep}/${numberOfSteps}`,
|
|
6806
6859
|
nn: `Steg ${activeStep}/${numberOfSteps}`,
|
|
@@ -7687,7 +7740,9 @@ var textareaRecipe = react.defineRecipe({
|
|
|
7687
7740
|
borderTop: "0.8rem solid transparent",
|
|
7688
7741
|
"&:focus-visible, &:not(:placeholder-shown)": {
|
|
7689
7742
|
borderTop: "var(--label-height) solid transparent"
|
|
7690
|
-
}
|
|
7743
|
+
},
|
|
7744
|
+
fontSize: "mobile.md",
|
|
7745
|
+
paddingLeft: 3
|
|
7691
7746
|
},
|
|
7692
7747
|
variants: {
|
|
7693
7748
|
variant: {
|
|
@@ -9010,7 +9065,8 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
|
|
|
9010
9065
|
outlineColor: "outline.floating",
|
|
9011
9066
|
boxShadow: "md",
|
|
9012
9067
|
backgroundColor: "surface.floating",
|
|
9013
|
-
minHeight: "min-content"
|
|
9068
|
+
minHeight: "min-content",
|
|
9069
|
+
maxWidth: "100vw"
|
|
9014
9070
|
},
|
|
9015
9071
|
rangeCalendarPopover: {
|
|
9016
9072
|
width: "43rem",
|