@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/dist/index.cjs CHANGED
@@ -227,8 +227,8 @@ function useTranslation() {
227
227
  };
228
228
  return { t, language };
229
229
  }
230
- function createTexts(texts28) {
231
- return texts28;
230
+ function createTexts(texts29) {
231
+ return texts29;
232
232
  }
233
233
  function Lottie({ animationData }) {
234
234
  const { View } = lottieReact.useLottie({ animationData });
@@ -1094,41 +1094,33 @@ var AlertIcon = ({
1094
1094
  var BaseAlertIcon = ({
1095
1095
  variant
1096
1096
  }) => {
1097
- const css = {
1098
- "& path:first-of-type": {
1099
- fill: `icon.${variant}`
1100
- },
1101
- "& path:not(:first-of-type)": {
1102
- fill: `surface.${variant}`
1103
- }
1104
- };
1105
1097
  switch (variant) {
1106
1098
  case "info": {
1107
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, { css });
1099
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, {});
1108
1100
  }
1109
1101
  case "success": {
1110
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.SuccessFill24Icon, { css });
1102
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.SuccessFill24Icon, {});
1111
1103
  }
1112
1104
  case "important": {
1113
1105
  return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.WarningFill24Icon, {});
1114
1106
  }
1115
1107
  case "alt": {
1116
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.AltTransportFill24Icon, { css });
1108
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.AltTransportFill24Icon, {});
1117
1109
  }
1118
1110
  case "error": {
1119
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, { css });
1111
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, {});
1120
1112
  }
1121
1113
  case "error-secondary": {
1122
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorOutline24Icon, { css });
1114
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorOutline24Icon, {});
1123
1115
  }
1124
1116
  case "neutral": {
1125
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.QuestionFill24Icon, { css });
1117
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.QuestionFill24Icon, {});
1126
1118
  }
1127
1119
  case "service": {
1128
1120
  return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, {});
1129
1121
  }
1130
1122
  default: {
1131
- return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, { css });
1123
+ return /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.InformationFill24Icon, {});
1132
1124
  }
1133
1125
  }
1134
1126
  };
@@ -2485,7 +2477,7 @@ var DateTimeSegment = ({
2485
2477
  segment,
2486
2478
  state,
2487
2479
  ariaLabel,
2488
- ariaDescription,
2480
+ ariaLabelledby,
2489
2481
  variant
2490
2482
  }) => {
2491
2483
  const internalRef = React14.useRef(null);
@@ -2515,8 +2507,8 @@ var DateTimeSegment = ({
2515
2507
  borderRadius: "xs",
2516
2508
  fontSize: ["mobile.sm", "desktop.sm"],
2517
2509
  css: styles.dateTimeSegment,
2518
- "aria-label": ariaDescription,
2519
- "aria-labelledby": ariaLabel,
2510
+ "aria-label": ariaLabel,
2511
+ "aria-labelledby": ariaLabelledby,
2520
2512
  children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
2521
2513
  }
2522
2514
  );
@@ -2565,7 +2557,7 @@ var DateField = ({
2565
2557
  DateTimeSegment,
2566
2558
  {
2567
2559
  segment,
2568
- ariaDescription: t(getAriaLabel(segment.type)),
2560
+ ariaLabel: t(getAriaLabel(segment.type)),
2569
2561
  state
2570
2562
  },
2571
2563
  index
@@ -2692,7 +2684,7 @@ var DatePicker = ({
2692
2684
  }
2693
2685
  (_a6 = props.onClick) == null ? void 0 : _a6.call(props);
2694
2686
  };
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: "20rem", children: /* @__PURE__ */ jsxRuntime.jsx(
2687
+ 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
2688
  Calendar2,
2697
2689
  {
2698
2690
  ...calendarProps,
@@ -2901,8 +2893,9 @@ function DateRangePicker({
2901
2893
  var TimeField = ({ state, ...props }) => {
2902
2894
  const ref = React14.useRef(null);
2903
2895
  const { labelProps, fieldProps } = reactAria.useTimeField(props, state, ref);
2896
+ const { t } = useTranslation();
2904
2897
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { children: [
2905
- /* @__PURE__ */ jsxRuntime.jsx(
2898
+ /* @__PURE__ */ jsxRuntime.jsxs(
2906
2899
  react.chakra.label,
2907
2900
  {
2908
2901
  ...labelProps,
@@ -2919,10 +2912,21 @@ var TimeField = ({ state, ...props }) => {
2919
2912
  overflow: "hidden",
2920
2913
  textOverflow: "ellipsis",
2921
2914
  maxWidth: "80%",
2922
- children: props.label
2915
+ children: [
2916
+ props.label,
2917
+ /* @__PURE__ */ jsxRuntime.jsx(react.Field.RequiredIndicator, {})
2918
+ ]
2923
2919
  }
2924
2920
  ),
2925
- /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(DateTimeSegment, { segment, state }, index)) }),
2921
+ /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsxRuntime.jsx(
2922
+ DateTimeSegment,
2923
+ {
2924
+ segment,
2925
+ state,
2926
+ ariaLabel: t(getAriaLabel2(segment.type))
2927
+ },
2928
+ index
2929
+ )) }),
2926
2930
  /* @__PURE__ */ jsxRuntime.jsx(
2927
2931
  "input",
2928
2932
  {
@@ -2933,6 +2937,48 @@ var TimeField = ({ state, ...props }) => {
2933
2937
  )
2934
2938
  ] });
2935
2939
  };
2940
+ var getAriaLabel2 = (segmentType) => {
2941
+ switch (segmentType) {
2942
+ case "hour": {
2943
+ return texts12.hour;
2944
+ }
2945
+ case "minute": {
2946
+ return texts12.minute;
2947
+ }
2948
+ case "second": {
2949
+ return texts12.second;
2950
+ }
2951
+ default: {
2952
+ return texts12.default;
2953
+ }
2954
+ }
2955
+ };
2956
+ var texts12 = createTexts({
2957
+ hour: {
2958
+ nb: "Velg time",
2959
+ nn: "Vel time",
2960
+ sv: "V\xE4lj timme",
2961
+ en: "Choose hour"
2962
+ },
2963
+ minute: {
2964
+ nb: "Velg minutt",
2965
+ nn: "Vel minutt",
2966
+ sv: "V\xE4lj minut",
2967
+ en: "Choose minute"
2968
+ },
2969
+ second: {
2970
+ nb: "Velg sekund",
2971
+ nn: "Vel sekund",
2972
+ sv: "V\xE4lj sekund",
2973
+ en: "Choose second"
2974
+ },
2975
+ default: {
2976
+ nb: "Velg tid",
2977
+ nn: "Vel tid",
2978
+ sv: "V\xE4lj tid",
2979
+ en: "Choose time"
2980
+ }
2981
+ });
2936
2982
  var TimePicker = ({
2937
2983
  label: externalLabel,
2938
2984
  value,
@@ -2948,7 +2994,7 @@ var TimePicker = ({
2948
2994
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
2949
2995
  const { t } = useTranslation();
2950
2996
  const locale = useCurrentLocale();
2951
- const label = externalLabel ?? t(texts12.time);
2997
+ const label = externalLabel ?? t(texts13.time);
2952
2998
  const state = reactStately.useTimeFieldState({
2953
2999
  value,
2954
3000
  defaultValue,
@@ -2981,15 +3027,15 @@ var TimePicker = ({
2981
3027
  })
2982
3028
  );
2983
3029
  };
2984
- const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
2985
- texts12.minutes
3030
+ const backwardsLabel = `${t(texts13.backwards)} ${minuteInterval} ${t(
3031
+ texts13.minutes
2986
3032
  )}`;
2987
- const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
2988
- texts12.minutes
3033
+ const forwardsLabel = `${t(texts13.forwards)} ${minuteInterval} ${t(
3034
+ texts13.minutes
2989
3035
  )}`;
2990
- const inputLabel = label ?? t(texts12.time);
3036
+ const inputLabel = label ?? t(texts13.time);
2991
3037
  const ariaLabel = `${inputLabel} \u2013 ${t(
2992
- texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3038
+ texts13.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
2993
3039
  )}`;
2994
3040
  return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
2995
3041
  StyledField,
@@ -3002,7 +3048,6 @@ var TimePicker = ({
3002
3048
  opacity: isDisabled ? 0.5 : 1,
3003
3049
  pointerEvents: isDisabled ? "none" : "auto",
3004
3050
  "aria-disabled": isDisabled,
3005
- "aria-live": "assertive",
3006
3051
  "aria-label": ariaLabel,
3007
3052
  position: "relative",
3008
3053
  ...boxProps,
@@ -3042,7 +3087,7 @@ var TimePicker = ({
3042
3087
  }
3043
3088
  ) });
3044
3089
  };
3045
- var texts12 = createTexts({
3090
+ var texts13 = createTexts({
3046
3091
  selectedTimeIs: (time) => ({
3047
3092
  nb: `Valgt tidspunkt er ${time}`,
3048
3093
  nn: `Valt tidspunkt er ${time}`,
@@ -3184,7 +3229,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3184
3229
  {
3185
3230
  variant: "ghost",
3186
3231
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
3187
- label: t(texts13.close)
3232
+ label: t(texts14.close)
3188
3233
  }
3189
3234
  ) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
3190
3235
  };
@@ -3198,7 +3243,7 @@ var DrawerBackTrigger = ({
3198
3243
  {
3199
3244
  variant: "ghost",
3200
3245
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
3201
- label: t(texts13.back)
3246
+ label: t(texts14.back)
3202
3247
  }
3203
3248
  ) });
3204
3249
  };
@@ -3230,7 +3275,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
3230
3275
  var DrawerTitle = react.Drawer.Title;
3231
3276
  var DrawerActionTrigger = react.Drawer.ActionTrigger;
3232
3277
  var DrawerHeader = react.Drawer.Header;
3233
- var texts13 = createTexts({
3278
+ var texts14 = createTexts({
3234
3279
  back: {
3235
3280
  en: "Back",
3236
3281
  nb: "Tilbake",
@@ -3260,7 +3305,7 @@ var TextLink = ({
3260
3305
  }) => {
3261
3306
  const { t } = useTranslation();
3262
3307
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
3263
- const externalLabel = t ? t(texts14.externalLink) : texts14.externalLink.en;
3308
+ const externalLabel = t ? t(texts15.externalLink) : texts15.externalLink.en;
3264
3309
  if (props.asChild && React14.isValidElement(children)) {
3265
3310
  return /* @__PURE__ */ jsxRuntime.jsx(
3266
3311
  react.Link,
@@ -3299,7 +3344,7 @@ var TextLink = ({
3299
3344
  }
3300
3345
  );
3301
3346
  };
3302
- var texts14 = createTexts({
3347
+ var texts15 = createTexts({
3303
3348
  externalLink: {
3304
3349
  nb: "Ekstern lenke",
3305
3350
  nn: "Ekstern lenke",
@@ -3332,20 +3377,7 @@ var ErrorSummary = ({
3332
3377
  tabIndex: -1,
3333
3378
  children: [
3334
3379
  heading && /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { css: styles.heading, children: [
3335
- /* @__PURE__ */ jsxRuntime.jsx(
3336
- spor_icon_react_star.ErrorFill24Icon,
3337
- {
3338
- css: {
3339
- flexShrink: 0,
3340
- "& path:first-of-type": {
3341
- fill: `icon.critical`
3342
- },
3343
- "& path:not(:first-of-type)": {
3344
- fill: `surface.critical`
3345
- }
3346
- }
3347
- }
3348
- ),
3380
+ /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ErrorFill24Icon, {}),
3349
3381
  /* @__PURE__ */ jsxRuntime.jsx(Heading, { as: headingLevel, variant: "md", autoId: true, ref: headingRef, children: heading })
3350
3382
  ] }),
3351
3383
  /* @__PURE__ */ jsxRuntime.jsx(List, { css: styles.list, gap: 2, children })
@@ -3685,10 +3717,10 @@ function Autocomplete({
3685
3717
  }
3686
3718
  }
3687
3719
  ) }),
3688
- /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts15.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3720
+ /* @__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
3721
  ] }),
3690
3722
  /* @__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(texts15.noItemsFound) }),
3723
+ !loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts16.noItemsFound) }),
3692
3724
  loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3693
3725
  ] }) })
3694
3726
  ] });
@@ -3747,7 +3779,7 @@ var extractItemsFromChildren = (children) => {
3747
3779
  });
3748
3780
  return items;
3749
3781
  };
3750
- var texts15 = createTexts({
3782
+ var texts16 = createTexts({
3751
3783
  noItemsFound: {
3752
3784
  nb: "Ingen resultater",
3753
3785
  nn: "Ingen resultat",
@@ -4564,7 +4596,7 @@ var NumericStepper = ({
4564
4596
  {
4565
4597
  icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4566
4598
  "aria-label": t(
4567
- texts16.decrementButtonAriaLabel(
4599
+ texts17.decrementButtonAriaLabel(
4568
4600
  clampedStepSize,
4569
4601
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4570
4602
  )
@@ -4591,7 +4623,7 @@ var NumericStepper = ({
4591
4623
  css: styles.input,
4592
4624
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4593
4625
  "aria-live": "assertive",
4594
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts16.currentNumberAriaLabel(ariaLabelContext.plural)),
4626
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
4595
4627
  onChange: (event) => {
4596
4628
  const numericInput = Number(event.target.value);
4597
4629
  if (Number.isNaN(numericInput)) {
@@ -4612,7 +4644,7 @@ var NumericStepper = ({
4612
4644
  paddingX: 0.5,
4613
4645
  padding: 0,
4614
4646
  textAlign: "center",
4615
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts16.currentNumberAriaLabel(ariaLabelContext.plural)),
4647
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
4616
4648
  children: value
4617
4649
  }
4618
4650
  ),
@@ -4622,7 +4654,7 @@ var NumericStepper = ({
4622
4654
  ref: addButtonRef,
4623
4655
  icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
4624
4656
  "aria-label": t(
4625
- texts16.incrementButtonAriaLabel(
4657
+ texts17.incrementButtonAriaLabel(
4626
4658
  clampedStepSize,
4627
4659
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4628
4660
  )
@@ -4696,7 +4728,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
4696
4728
  ] }),
4697
4729
  stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4698
4730
  ] });
4699
- var texts16 = createTexts({
4731
+ var texts17 = createTexts({
4700
4732
  currentNumberAriaLabel(ariaContext) {
4701
4733
  return {
4702
4734
  nb: `Valgt antall ${ariaContext}`,
@@ -4762,7 +4794,7 @@ var PasswordInput = ({
4762
4794
  setVisible(!visible);
4763
4795
  },
4764
4796
  size,
4765
- children: visible ? t(texts17.hidePassword) : t(texts17.showPassword)
4797
+ children: visible ? t(texts18.hidePassword) : t(texts18.showPassword)
4766
4798
  }
4767
4799
  ),
4768
4800
  size,
@@ -4787,7 +4819,7 @@ var VisibilityTrigger = ({
4787
4819
  }
4788
4820
  );
4789
4821
  };
4790
- var texts17 = createTexts({
4822
+ var texts18 = createTexts({
4791
4823
  showPassword: {
4792
4824
  nb: "Vis",
4793
4825
  nn: "Vis",
@@ -4839,7 +4871,7 @@ var CountryCodeSelect = ({
4839
4871
  positioning: { placement: "bottom", flip: false },
4840
4872
  collection: filteredCallingCodes,
4841
4873
  lazyMount: true,
4842
- "aria-label": t(texts18.countryCode),
4874
+ "aria-label": t(texts19.countryCode),
4843
4875
  sideRadiusVariant: "rightSideSquare",
4844
4876
  size: props.size,
4845
4877
  role: "combobox",
@@ -4847,7 +4879,7 @@ var CountryCodeSelect = ({
4847
4879
  }
4848
4880
  );
4849
4881
  };
4850
- var texts18 = createTexts({
4882
+ var texts19 = createTexts({
4851
4883
  countryCode: {
4852
4884
  nb: "Landkode",
4853
4885
  nn: "Landskode",
@@ -4871,7 +4903,7 @@ var PhoneNumberInput = ({
4871
4903
  size = "md"
4872
4904
  } = props;
4873
4905
  const { t } = useTranslation();
4874
- const label = externalLabel ?? (optional ? t(texts19.phoneNumberOptional) : t(texts19.phoneNumber));
4906
+ const label = externalLabel ?? (optional ? t(texts20.phoneNumberOptional) : t(texts20.phoneNumber));
4875
4907
  const [value, onChange] = react.useControllableState({
4876
4908
  value: externalValue,
4877
4909
  onChange: externalOnChange,
@@ -4927,7 +4959,7 @@ var PhoneNumberInput = ({
4927
4959
  )
4928
4960
  ] });
4929
4961
  };
4930
- var texts19 = createTexts({
4962
+ var texts20 = createTexts({
4931
4963
  phoneNumber: {
4932
4964
  nb: "Telefonnummer",
4933
4965
  nn: "Telefonnummer",
@@ -4980,16 +5012,16 @@ var SearchInput = ({
4980
5012
  variant: "ghost",
4981
5013
  type: "button",
4982
5014
  size: "sm",
4983
- "aria-label": t(texts20.reset),
5015
+ "aria-label": t(texts21.reset),
4984
5016
  icon: size == "md" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline18Icon, {}),
4985
5017
  onClick: onReset
4986
5018
  }
4987
5019
  ),
4988
- label: label ?? t(texts20.label)
5020
+ label: label ?? t(texts21.label)
4989
5021
  }
4990
5022
  );
4991
5023
  };
4992
- var texts20 = createTexts({
5024
+ var texts21 = createTexts({
4993
5025
  label: {
4994
5026
  nb: "S\xF8k",
4995
5027
  nn: "S\xF8k",
@@ -6043,14 +6075,14 @@ var JumpButton = ({
6043
6075
  as: "button",
6044
6076
  ref,
6045
6077
  css: styles.root,
6046
- "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
6078
+ "aria-label": direction === "forward" ? t(texts22.forward) : t(texts22.backward),
6047
6079
  disabled,
6048
6080
  ...props,
6049
6081
  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
6082
  }
6051
6083
  );
6052
6084
  };
6053
- var texts21 = createTexts({
6085
+ var texts22 = createTexts({
6054
6086
  forward: {
6055
6087
  nb: "15 sekunder frem",
6056
6088
  nn: "15 sekunder fram",
@@ -6078,14 +6110,14 @@ var PlayPauseButton = ({
6078
6110
  ref,
6079
6111
  as: "button",
6080
6112
  css: styles.root,
6081
- "aria-label": playing ? t(texts22.pause) : t(texts22.play),
6113
+ "aria-label": playing ? t(texts23.pause) : t(texts23.play),
6082
6114
  disabled,
6083
6115
  ...props,
6084
6116
  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
6117
  }
6086
6118
  );
6087
6119
  };
6088
- var texts22 = createTexts({
6120
+ var texts23 = createTexts({
6089
6121
  pause: {
6090
6122
  nb: "Pause",
6091
6123
  nn: "Pause",
@@ -6113,14 +6145,14 @@ var SkipButton = ({
6113
6145
  ref,
6114
6146
  as: "button",
6115
6147
  css: styles.root,
6116
- "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
6148
+ "aria-label": direction === "forward" ? t(texts24.next) : t(texts24.previous),
6117
6149
  disabled,
6118
6150
  ...props,
6119
6151
  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
6152
  }
6121
6153
  );
6122
6154
  };
6123
- var texts23 = createTexts({
6155
+ var texts24 = createTexts({
6124
6156
  next: {
6125
6157
  nb: "Neste",
6126
6158
  nn: "Neste",
@@ -6235,7 +6267,7 @@ var NudgeActions = ({ ...props }) => {
6235
6267
  var NextButton = ({ isLastStep, onNext }) => {
6236
6268
  const { t } = useTranslation();
6237
6269
  if (isLastStep)
6238
- return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6270
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts25.close) }) });
6239
6271
  return /* @__PURE__ */ jsxRuntime.jsx(
6240
6272
  Button,
6241
6273
  {
@@ -6243,11 +6275,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6243
6275
  size: "xs",
6244
6276
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
6245
6277
  onClick: onNext,
6246
- children: t(texts24.nextStep)
6278
+ children: t(texts25.nextStep)
6247
6279
  }
6248
6280
  );
6249
6281
  };
6250
- var texts24 = createTexts({
6282
+ var texts25 = createTexts({
6251
6283
  nextStep: {
6252
6284
  nb: "Neste",
6253
6285
  nn: "Neste",
@@ -6323,7 +6355,7 @@ var PaginationItem = ({
6323
6355
  to: rootProps.getHref(props.value)
6324
6356
  },
6325
6357
  ref,
6326
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6358
+ "aria-label": t(texts26.pageOf(props.value, totalPages)),
6327
6359
  ...props,
6328
6360
  children: props.value
6329
6361
  }
@@ -6334,7 +6366,7 @@ var PaginationItem = ({
6334
6366
  {
6335
6367
  as: props.as ?? "button",
6336
6368
  ref,
6337
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6369
+ "aria-label": t(texts26.pageOf(props.value, totalPages)),
6338
6370
  "aria-current": page === props.value,
6339
6371
  ...props,
6340
6372
  children: props.value
@@ -6364,7 +6396,7 @@ var PaginationPrevTrigger = ({
6364
6396
  },
6365
6397
  ref,
6366
6398
  css: styles.item,
6367
- "aria-label": t(texts25.previousPage),
6399
+ "aria-label": t(texts26.previousPage),
6368
6400
  ...props,
6369
6401
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
6370
6402
  }
@@ -6375,7 +6407,7 @@ var PaginationPrevTrigger = ({
6375
6407
  {
6376
6408
  ref,
6377
6409
  asChild: true,
6378
- "aria-label": t(texts25.previousPage),
6410
+ "aria-label": t(texts26.previousPage),
6379
6411
  as: props.as || "button",
6380
6412
  css: styles.item,
6381
6413
  ...props,
@@ -6404,7 +6436,7 @@ var PaginationNextTrigger = ({
6404
6436
  to: rootProps.getHref(props.value)
6405
6437
  },
6406
6438
  css: styles.item,
6407
- "aria-label": t(texts25.nextPage),
6439
+ "aria-label": t(texts26.nextPage),
6408
6440
  ...props,
6409
6441
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
6410
6442
  }
@@ -6415,7 +6447,7 @@ var PaginationNextTrigger = ({
6415
6447
  {
6416
6448
  ref,
6417
6449
  css: styles.item,
6418
- "aria-label": t(texts25.nextPage),
6450
+ "aria-label": t(texts26.nextPage),
6419
6451
  as: props.as || "button",
6420
6452
  ...props,
6421
6453
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
@@ -6442,7 +6474,7 @@ var PaginationItems = (props) => {
6442
6474
  );
6443
6475
  }) });
6444
6476
  };
6445
- var texts25 = createTexts({
6477
+ var texts26 = createTexts({
6446
6478
  previousPage: {
6447
6479
  nb: "Forrige side",
6448
6480
  nn: "F\xF8rre side",
@@ -6542,7 +6574,7 @@ var ProgressIndicator = ({
6542
6574
  "aria-valuemin": 1,
6543
6575
  "aria-valuemax": numberOfSteps,
6544
6576
  "aria-valuenow": activeStep,
6545
- "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6577
+ "aria-valuetext": t(texts27.stepsOf(activeStep, numberOfSteps)),
6546
6578
  ref,
6547
6579
  children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
6548
6580
  react.Box,
@@ -6561,7 +6593,7 @@ var ProgressIndicator = ({
6561
6593
  }
6562
6594
  );
6563
6595
  };
6564
- var texts26 = createTexts({
6596
+ var texts27 = createTexts({
6565
6597
  stepsOf: (activeStep, numberOfSteps) => ({
6566
6598
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6567
6599
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6757,7 +6789,7 @@ var Stepper = function Stepper2({
6757
6789
  /* @__PURE__ */ jsxRuntime.jsx(
6758
6790
  IconButton,
6759
6791
  {
6760
- "aria-label": t(texts27.back),
6792
+ "aria-label": t(texts28.back),
6761
6793
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
6762
6794
  variant: "ghost",
6763
6795
  size: "sm",
@@ -6781,7 +6813,7 @@ var Stepper = function Stepper2({
6781
6813
  children: heading
6782
6814
  }
6783
6815
  ),
6784
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6816
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts28.stepsOf(activeStep, numberOfSteps)) })
6785
6817
  ]
6786
6818
  }
6787
6819
  ) }),
@@ -6800,7 +6832,7 @@ var Stepper = function Stepper2({
6800
6832
  }
6801
6833
  ) });
6802
6834
  };
6803
- var texts27 = createTexts({
6835
+ var texts28 = createTexts({
6804
6836
  stepsOf: (activeStep, numberOfSteps) => ({
6805
6837
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6806
6838
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7687,7 +7719,9 @@ var textareaRecipe = react.defineRecipe({
7687
7719
  borderTop: "0.8rem solid transparent",
7688
7720
  "&:focus-visible, &:not(:placeholder-shown)": {
7689
7721
  borderTop: "var(--label-height) solid transparent"
7690
- }
7722
+ },
7723
+ fontSize: "mobile.md",
7724
+ paddingLeft: 3
7691
7725
  },
7692
7726
  variants: {
7693
7727
  variant: {
@@ -9010,7 +9044,8 @@ var datePickerSlotRecipe = react.defineSlotRecipe({
9010
9044
  outlineColor: "outline.floating",
9011
9045
  boxShadow: "md",
9012
9046
  backgroundColor: "surface.floating",
9013
- minHeight: "min-content"
9047
+ minHeight: "min-content",
9048
+ maxWidth: "100vw"
9014
9049
  },
9015
9050
  rangeCalendarPopover: {
9016
9051
  width: "43rem",