@vygruppen/spor-react 13.4.1 → 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/dist/index.mjs CHANGED
@@ -19,9 +19,9 @@ import { LuMoon, LuSun } from 'react-icons/lu';
19
19
  import { useSwipeable } from 'react-swipeable';
20
20
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
21
21
  import { Global } from '@emotion/react';
22
- import tokens22__default from '@vygruppen/spor-design-tokens';
23
- import * as tokens22 from '@vygruppen/spor-design-tokens';
24
- export { tokens22 as tokens };
22
+ import tokens21__default from '@vygruppen/spor-design-tokens';
23
+ import * as tokens21 from '@vygruppen/spor-design-tokens';
24
+ export { tokens21 as tokens };
25
25
  import tokens4 from '@vygruppen/spor-design-tokens/raw-tokens';
26
26
  import { comboboxAnatomy as comboboxAnatomy$1 } from '@ark-ui/react';
27
27
  import { createAnatomy } from '@ark-ui/react/anatomy';
@@ -208,8 +208,8 @@ function useTranslation() {
208
208
  };
209
209
  return { t, language };
210
210
  }
211
- function createTexts(texts28) {
212
- return texts28;
211
+ function createTexts(texts29) {
212
+ return texts29;
213
213
  }
214
214
  function Lottie({ animationData }) {
215
215
  const { View } = useLottie({ animationData });
@@ -2466,7 +2466,7 @@ var DateTimeSegment = ({
2466
2466
  segment,
2467
2467
  state,
2468
2468
  ariaLabel,
2469
- ariaDescription,
2469
+ ariaLabelledby,
2470
2470
  variant
2471
2471
  }) => {
2472
2472
  const internalRef = useRef(null);
@@ -2496,8 +2496,8 @@ var DateTimeSegment = ({
2496
2496
  borderRadius: "xs",
2497
2497
  fontSize: ["mobile.sm", "desktop.sm"],
2498
2498
  css: styles.dateTimeSegment,
2499
- "aria-label": ariaDescription,
2500
- "aria-labelledby": ariaLabel,
2499
+ "aria-label": ariaLabel,
2500
+ "aria-labelledby": ariaLabelledby,
2501
2501
  children: isPaddable(segment.type) ? segment.text.padStart(2, "0") : segment.text
2502
2502
  }
2503
2503
  );
@@ -2546,7 +2546,7 @@ var DateField = ({
2546
2546
  DateTimeSegment,
2547
2547
  {
2548
2548
  segment,
2549
- ariaDescription: t(getAriaLabel(segment.type)),
2549
+ ariaLabel: t(getAriaLabel(segment.type)),
2550
2550
  state
2551
2551
  },
2552
2552
  index
@@ -2673,7 +2673,7 @@ var DatePicker = ({
2673
2673
  }
2674
2674
  (_a6 = props.onClick) == null ? void 0 : _a6.call(props);
2675
2675
  };
2676
- const popoverContent = /* @__PURE__ */ jsx(Popover$1.Positioner, { children: /* @__PURE__ */ jsx(Popover$1.Content, { css: styles.calendarPopover, children: /* @__PURE__ */ jsx(Popover$1.Body, { minWidth: "20rem", children: /* @__PURE__ */ jsx(
2676
+ 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
2677
  Calendar2,
2678
2678
  {
2679
2679
  ...calendarProps,
@@ -2882,8 +2882,9 @@ function DateRangePicker({
2882
2882
  var TimeField = ({ state, ...props }) => {
2883
2883
  const ref = useRef(null);
2884
2884
  const { labelProps, fieldProps } = useTimeField(props, state, ref);
2885
+ const { t } = useTranslation();
2885
2886
  return /* @__PURE__ */ jsxs(Box, { children: [
2886
- /* @__PURE__ */ jsx(
2887
+ /* @__PURE__ */ jsxs(
2887
2888
  chakra.label,
2888
2889
  {
2889
2890
  ...labelProps,
@@ -2900,10 +2901,21 @@ var TimeField = ({ state, ...props }) => {
2900
2901
  overflow: "hidden",
2901
2902
  textOverflow: "ellipsis",
2902
2903
  maxWidth: "80%",
2903
- children: props.label
2904
+ children: [
2905
+ props.label,
2906
+ /* @__PURE__ */ jsx(Field.RequiredIndicator, {})
2907
+ ]
2904
2908
  }
2905
2909
  ),
2906
- /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(DateTimeSegment, { segment, state }, index)) }),
2910
+ /* @__PURE__ */ jsx(Flex, { ...fieldProps, ref, paddingTop: "3", paddingBottom: "0.5", children: state.segments.map((segment, index) => /* @__PURE__ */ jsx(
2911
+ DateTimeSegment,
2912
+ {
2913
+ segment,
2914
+ state,
2915
+ ariaLabel: t(getAriaLabel2(segment.type))
2916
+ },
2917
+ index
2918
+ )) }),
2907
2919
  /* @__PURE__ */ jsx(
2908
2920
  "input",
2909
2921
  {
@@ -2914,6 +2926,48 @@ var TimeField = ({ state, ...props }) => {
2914
2926
  )
2915
2927
  ] });
2916
2928
  };
2929
+ var getAriaLabel2 = (segmentType) => {
2930
+ switch (segmentType) {
2931
+ case "hour": {
2932
+ return texts12.hour;
2933
+ }
2934
+ case "minute": {
2935
+ return texts12.minute;
2936
+ }
2937
+ case "second": {
2938
+ return texts12.second;
2939
+ }
2940
+ default: {
2941
+ return texts12.default;
2942
+ }
2943
+ }
2944
+ };
2945
+ var texts12 = createTexts({
2946
+ hour: {
2947
+ nb: "Velg time",
2948
+ nn: "Vel time",
2949
+ sv: "V\xE4lj timme",
2950
+ en: "Choose hour"
2951
+ },
2952
+ minute: {
2953
+ nb: "Velg minutt",
2954
+ nn: "Vel minutt",
2955
+ sv: "V\xE4lj minut",
2956
+ en: "Choose minute"
2957
+ },
2958
+ second: {
2959
+ nb: "Velg sekund",
2960
+ nn: "Vel sekund",
2961
+ sv: "V\xE4lj sekund",
2962
+ en: "Choose second"
2963
+ },
2964
+ default: {
2965
+ nb: "Velg tid",
2966
+ nn: "Vel tid",
2967
+ sv: "V\xE4lj tid",
2968
+ en: "Choose time"
2969
+ }
2970
+ });
2917
2971
  var TimePicker = ({
2918
2972
  label: externalLabel,
2919
2973
  value,
@@ -2929,7 +2983,7 @@ var TimePicker = ({
2929
2983
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
2930
2984
  const { t } = useTranslation();
2931
2985
  const locale = useCurrentLocale();
2932
- const label = externalLabel ?? t(texts12.time);
2986
+ const label = externalLabel ?? t(texts13.time);
2933
2987
  const state = useTimeFieldState({
2934
2988
  value,
2935
2989
  defaultValue,
@@ -2962,15 +3016,15 @@ var TimePicker = ({
2962
3016
  })
2963
3017
  );
2964
3018
  };
2965
- const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
2966
- texts12.minutes
3019
+ const backwardsLabel = `${t(texts13.backwards)} ${minuteInterval} ${t(
3020
+ texts13.minutes
2967
3021
  )}`;
2968
- const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
2969
- texts12.minutes
3022
+ const forwardsLabel = `${t(texts13.forwards)} ${minuteInterval} ${t(
3023
+ texts13.minutes
2970
3024
  )}`;
2971
- const inputLabel = label ?? t(texts12.time);
3025
+ const inputLabel = label ?? t(texts13.time);
2972
3026
  const ariaLabel = `${inputLabel} \u2013 ${t(
2973
- texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3027
+ texts13.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
2974
3028
  )}`;
2975
3029
  return /* @__PURE__ */ jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxs(
2976
3030
  StyledField,
@@ -2983,7 +3037,6 @@ var TimePicker = ({
2983
3037
  opacity: isDisabled ? 0.5 : 1,
2984
3038
  pointerEvents: isDisabled ? "none" : "auto",
2985
3039
  "aria-disabled": isDisabled,
2986
- "aria-live": "assertive",
2987
3040
  "aria-label": ariaLabel,
2988
3041
  position: "relative",
2989
3042
  ...boxProps,
@@ -3023,7 +3076,7 @@ var TimePicker = ({
3023
3076
  }
3024
3077
  ) });
3025
3078
  };
3026
- var texts12 = createTexts({
3079
+ var texts13 = createTexts({
3027
3080
  selectedTimeIs: (time) => ({
3028
3081
  nb: `Valgt tidspunkt er ${time}`,
3029
3082
  nn: `Valt tidspunkt er ${time}`,
@@ -3064,11 +3117,12 @@ var DialogContent = ({
3064
3117
  portalled = true,
3065
3118
  portalRef,
3066
3119
  backdrop = true,
3120
+ positionerProps,
3067
3121
  ...rest
3068
3122
  } = props;
3069
3123
  return /* @__PURE__ */ jsxs(Portal, { disabled: !portalled, container: portalRef, children: [
3070
3124
  backdrop && /* @__PURE__ */ jsx(Dialog.Backdrop, {}),
3071
- /* @__PURE__ */ jsx(Dialog.Positioner, { children: /* @__PURE__ */ jsx(Dialog.Content, { ref, ...rest, asChild: false, children }) })
3125
+ /* @__PURE__ */ jsx(Dialog.Positioner, { ...positionerProps, children: /* @__PURE__ */ jsx(Dialog.Content, { ref, ...rest, asChild: false, children }) })
3072
3126
  ] });
3073
3127
  };
3074
3128
  var DialogCloseTrigger = function DialogCloseTrigger2({
@@ -3164,7 +3218,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3164
3218
  {
3165
3219
  variant: "ghost",
3166
3220
  icon: /* @__PURE__ */ jsx(CloseFill24Icon, {}),
3167
- label: t(texts13.close)
3221
+ label: t(texts14.close)
3168
3222
  }
3169
3223
  ) : /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
3170
3224
  };
@@ -3178,7 +3232,7 @@ var DrawerBackTrigger = ({
3178
3232
  {
3179
3233
  variant: "ghost",
3180
3234
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
3181
- label: t(texts13.back)
3235
+ label: t(texts14.back)
3182
3236
  }
3183
3237
  ) });
3184
3238
  };
@@ -3210,7 +3264,7 @@ var DrawerBackdrop = Drawer$1.Backdrop;
3210
3264
  var DrawerTitle = Drawer$1.Title;
3211
3265
  var DrawerActionTrigger = Drawer$1.ActionTrigger;
3212
3266
  var DrawerHeader = Drawer$1.Header;
3213
- var texts13 = createTexts({
3267
+ var texts14 = createTexts({
3214
3268
  back: {
3215
3269
  en: "Back",
3216
3270
  nb: "Tilbake",
@@ -3240,7 +3294,7 @@ var TextLink = ({
3240
3294
  }) => {
3241
3295
  const { t } = useTranslation();
3242
3296
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
3243
- const externalLabel = t ? t(texts14.externalLink) : texts14.externalLink.en;
3297
+ const externalLabel = t ? t(texts15.externalLink) : texts15.externalLink.en;
3244
3298
  if (props.asChild && isValidElement(children)) {
3245
3299
  return /* @__PURE__ */ jsx(
3246
3300
  Link,
@@ -3279,7 +3333,7 @@ var TextLink = ({
3279
3333
  }
3280
3334
  );
3281
3335
  };
3282
- var texts14 = createTexts({
3336
+ var texts15 = createTexts({
3283
3337
  externalLink: {
3284
3338
  nb: "Ekstern lenke",
3285
3339
  nn: "Ekstern lenke",
@@ -3344,6 +3398,7 @@ var ErrorSummaryItem = ({
3344
3398
  };
3345
3399
  var AttachedInputs = ({
3346
3400
  ref,
3401
+ flipButtonProps,
3347
3402
  ...props
3348
3403
  }) => {
3349
3404
  const recipe = useRecipe({ key: "attachedInputs" });
@@ -3372,7 +3427,11 @@ var AttachedInputs = ({
3372
3427
  variant: "tertiary",
3373
3428
  size: ["xs", null, "sm"],
3374
3429
  "aria-label": flipAriaLabel,
3375
- onClick: onFlip
3430
+ onClick: onFlip,
3431
+ position: "absolute",
3432
+ bg: "bg",
3433
+ outlineWidth: "1px",
3434
+ ...flipButtonProps
3376
3435
  }
3377
3436
  )
3378
3437
  ] });
@@ -3381,23 +3440,20 @@ var SwitchButton = chakra(
3381
3440
  IconButton,
3382
3441
  defineRecipe({
3383
3442
  base: {
3384
- position: "absolute !important",
3385
- zIndex: "101 !important",
3386
- // eslint-disable-next-line spor/use-semantic-tokens
3387
- bg: "bg !important",
3388
- outlineWidth: "1px !important",
3443
+ zIndex: "101",
3389
3444
  _focus: {
3390
- outlineOffset: "0px !important"
3445
+ outlineOffset: "0px",
3446
+ alignItems: "center"
3391
3447
  }
3392
3448
  },
3393
3449
  variants: {
3394
3450
  orientation: {
3395
3451
  horizontal: {
3396
- top: "calc(50% - 18px)",
3397
- right: "calc(50% - 18px)"
3452
+ top: "calc(50% - 1.1rem)",
3453
+ right: "calc(50% - 1.1rem)"
3398
3454
  },
3399
3455
  vertical: {
3400
- top: "calc(50% - 15px)",
3456
+ top: "calc(50% - 1.1rem)",
3401
3457
  right: "3rem",
3402
3458
  transform: "rotate(90deg)"
3403
3459
  }
@@ -3663,10 +3719,10 @@ function Autocomplete({
3663
3719
  }
3664
3720
  }
3665
3721
  ) }),
3666
- /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts15.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3722
+ /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3667
3723
  ] }),
3668
3724
  /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
3669
- !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts15.noItemsFound) }),
3725
+ !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts16.noItemsFound) }),
3670
3726
  loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3671
3727
  ] }) })
3672
3728
  ] });
@@ -3725,7 +3781,7 @@ var extractItemsFromChildren = (children) => {
3725
3781
  });
3726
3782
  return items;
3727
3783
  };
3728
- var texts15 = createTexts({
3784
+ var texts16 = createTexts({
3729
3785
  noItemsFound: {
3730
3786
  nb: "Ingen resultater",
3731
3787
  nn: "Ingen resultat",
@@ -4542,7 +4598,7 @@ var NumericStepper = ({
4542
4598
  {
4543
4599
  icon: /* @__PURE__ */ jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4544
4600
  "aria-label": t(
4545
- texts16.decrementButtonAriaLabel(
4601
+ texts17.decrementButtonAriaLabel(
4546
4602
  clampedStepSize,
4547
4603
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4548
4604
  )
@@ -4569,7 +4625,7 @@ var NumericStepper = ({
4569
4625
  css: styles.input,
4570
4626
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4571
4627
  "aria-live": "assertive",
4572
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts16.currentNumberAriaLabel(ariaLabelContext.plural)),
4628
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
4573
4629
  onChange: (event) => {
4574
4630
  const numericInput = Number(event.target.value);
4575
4631
  if (Number.isNaN(numericInput)) {
@@ -4590,7 +4646,7 @@ var NumericStepper = ({
4590
4646
  paddingX: 0.5,
4591
4647
  padding: 0,
4592
4648
  textAlign: "center",
4593
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts16.currentNumberAriaLabel(ariaLabelContext.plural)),
4649
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts17.currentNumberAriaLabel(ariaLabelContext.plural)),
4594
4650
  children: value
4595
4651
  }
4596
4652
  ),
@@ -4600,7 +4656,7 @@ var NumericStepper = ({
4600
4656
  ref: addButtonRef,
4601
4657
  icon: /* @__PURE__ */ jsx(AddIcon, { stepLabel: clampedStepSize }),
4602
4658
  "aria-label": t(
4603
- texts16.incrementButtonAriaLabel(
4659
+ texts17.incrementButtonAriaLabel(
4604
4660
  clampedStepSize,
4605
4661
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4606
4662
  )
@@ -4674,7 +4730,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4674
4730
  ] }),
4675
4731
  stepLabel > 1 && /* @__PURE__ */ jsx(chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4676
4732
  ] });
4677
- var texts16 = createTexts({
4733
+ var texts17 = createTexts({
4678
4734
  currentNumberAriaLabel(ariaContext) {
4679
4735
  return {
4680
4736
  nb: `Valgt antall ${ariaContext}`,
@@ -4740,7 +4796,7 @@ var PasswordInput = ({
4740
4796
  setVisible(!visible);
4741
4797
  },
4742
4798
  size,
4743
- children: visible ? t(texts17.hidePassword) : t(texts17.showPassword)
4799
+ children: visible ? t(texts18.hidePassword) : t(texts18.showPassword)
4744
4800
  }
4745
4801
  ),
4746
4802
  size,
@@ -4765,7 +4821,7 @@ var VisibilityTrigger = ({
4765
4821
  }
4766
4822
  );
4767
4823
  };
4768
- var texts17 = createTexts({
4824
+ var texts18 = createTexts({
4769
4825
  showPassword: {
4770
4826
  nb: "Vis",
4771
4827
  nn: "Vis",
@@ -4817,7 +4873,7 @@ var CountryCodeSelect = ({
4817
4873
  positioning: { placement: "bottom", flip: false },
4818
4874
  collection: filteredCallingCodes,
4819
4875
  lazyMount: true,
4820
- "aria-label": t(texts18.countryCode),
4876
+ "aria-label": t(texts19.countryCode),
4821
4877
  sideRadiusVariant: "rightSideSquare",
4822
4878
  size: props.size,
4823
4879
  role: "combobox",
@@ -4825,7 +4881,7 @@ var CountryCodeSelect = ({
4825
4881
  }
4826
4882
  );
4827
4883
  };
4828
- var texts18 = createTexts({
4884
+ var texts19 = createTexts({
4829
4885
  countryCode: {
4830
4886
  nb: "Landkode",
4831
4887
  nn: "Landskode",
@@ -4849,7 +4905,7 @@ var PhoneNumberInput = ({
4849
4905
  size = "md"
4850
4906
  } = props;
4851
4907
  const { t } = useTranslation();
4852
- const label = externalLabel ?? (optional ? t(texts19.phoneNumberOptional) : t(texts19.phoneNumber));
4908
+ const label = externalLabel ?? (optional ? t(texts20.phoneNumberOptional) : t(texts20.phoneNumber));
4853
4909
  const [value, onChange] = useControllableState({
4854
4910
  value: externalValue,
4855
4911
  onChange: externalOnChange,
@@ -4905,7 +4961,7 @@ var PhoneNumberInput = ({
4905
4961
  )
4906
4962
  ] });
4907
4963
  };
4908
- var texts19 = createTexts({
4964
+ var texts20 = createTexts({
4909
4965
  phoneNumber: {
4910
4966
  nb: "Telefonnummer",
4911
4967
  nn: "Telefonnummer",
@@ -4958,16 +5014,16 @@ var SearchInput = ({
4958
5014
  variant: "ghost",
4959
5015
  type: "button",
4960
5016
  size: "sm",
4961
- "aria-label": t(texts20.reset),
5017
+ "aria-label": t(texts21.reset),
4962
5018
  icon: size == "md" ? /* @__PURE__ */ jsx(CloseOutline24Icon, {}) : /* @__PURE__ */ jsx(CloseOutline18Icon, {}),
4963
5019
  onClick: onReset
4964
5020
  }
4965
5021
  ),
4966
- label: label ?? t(texts20.label)
5022
+ label: label ?? t(texts21.label)
4967
5023
  }
4968
5024
  );
4969
5025
  };
4970
- var texts20 = createTexts({
5026
+ var texts21 = createTexts({
4971
5027
  label: {
4972
5028
  nb: "S\xF8k",
4973
5029
  nn: "S\xF8k",
@@ -6021,14 +6077,14 @@ var JumpButton = ({
6021
6077
  as: "button",
6022
6078
  ref,
6023
6079
  css: styles.root,
6024
- "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
6080
+ "aria-label": direction === "forward" ? t(texts22.forward) : t(texts22.backward),
6025
6081
  disabled,
6026
6082
  ...props,
6027
6083
  children: direction === "forward" ? /* @__PURE__ */ jsx(Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(Backward15MediaControllerFill30Icon, { css: styles.icon })
6028
6084
  }
6029
6085
  );
6030
6086
  };
6031
- var texts21 = createTexts({
6087
+ var texts22 = createTexts({
6032
6088
  forward: {
6033
6089
  nb: "15 sekunder frem",
6034
6090
  nn: "15 sekunder fram",
@@ -6056,14 +6112,14 @@ var PlayPauseButton = ({
6056
6112
  ref,
6057
6113
  as: "button",
6058
6114
  css: styles.root,
6059
- "aria-label": playing ? t(texts22.pause) : t(texts22.play),
6115
+ "aria-label": playing ? t(texts23.pause) : t(texts23.play),
6060
6116
  disabled,
6061
6117
  ...props,
6062
6118
  children: playing ? /* @__PURE__ */ jsx(PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PlayMediaControllerFill24Icon, { css: styles.icon })
6063
6119
  }
6064
6120
  );
6065
6121
  };
6066
- var texts22 = createTexts({
6122
+ var texts23 = createTexts({
6067
6123
  pause: {
6068
6124
  nb: "Pause",
6069
6125
  nn: "Pause",
@@ -6091,14 +6147,14 @@ var SkipButton = ({
6091
6147
  ref,
6092
6148
  as: "button",
6093
6149
  css: styles.root,
6094
- "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
6150
+ "aria-label": direction === "forward" ? t(texts24.next) : t(texts24.previous),
6095
6151
  disabled,
6096
6152
  ...props,
6097
6153
  children: direction === "forward" ? /* @__PURE__ */ jsx(NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PreviousMediaControllerFill30Icon, { css: styles.icon })
6098
6154
  }
6099
6155
  );
6100
6156
  };
6101
- var texts23 = createTexts({
6157
+ var texts24 = createTexts({
6102
6158
  next: {
6103
6159
  nb: "Neste",
6104
6160
  nn: "Neste",
@@ -6213,7 +6269,7 @@ var NudgeActions = ({ ...props }) => {
6213
6269
  var NextButton = ({ isLastStep, onNext }) => {
6214
6270
  const { t } = useTranslation();
6215
6271
  if (isLastStep)
6216
- return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6272
+ return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts25.close) }) });
6217
6273
  return /* @__PURE__ */ jsx(
6218
6274
  Button,
6219
6275
  {
@@ -6221,11 +6277,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6221
6277
  size: "xs",
6222
6278
  rightIcon: /* @__PURE__ */ jsx(ArrowRightFill18Icon, {}),
6223
6279
  onClick: onNext,
6224
- children: t(texts24.nextStep)
6280
+ children: t(texts25.nextStep)
6225
6281
  }
6226
6282
  );
6227
6283
  };
6228
- var texts24 = createTexts({
6284
+ var texts25 = createTexts({
6229
6285
  nextStep: {
6230
6286
  nb: "Neste",
6231
6287
  nn: "Neste",
@@ -6301,7 +6357,7 @@ var PaginationItem = ({
6301
6357
  to: rootProps.getHref(props.value)
6302
6358
  },
6303
6359
  ref,
6304
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6360
+ "aria-label": t(texts26.pageOf(props.value, totalPages)),
6305
6361
  ...props,
6306
6362
  children: props.value
6307
6363
  }
@@ -6312,7 +6368,7 @@ var PaginationItem = ({
6312
6368
  {
6313
6369
  as: props.as ?? "button",
6314
6370
  ref,
6315
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6371
+ "aria-label": t(texts26.pageOf(props.value, totalPages)),
6316
6372
  "aria-current": page === props.value,
6317
6373
  ...props,
6318
6374
  children: props.value
@@ -6342,7 +6398,7 @@ var PaginationPrevTrigger = ({
6342
6398
  },
6343
6399
  ref,
6344
6400
  css: styles.item,
6345
- "aria-label": t(texts25.previousPage),
6401
+ "aria-label": t(texts26.previousPage),
6346
6402
  ...props,
6347
6403
  children: /* @__PURE__ */ jsx(DropdownLeftOutline18Icon, {})
6348
6404
  }
@@ -6353,7 +6409,7 @@ var PaginationPrevTrigger = ({
6353
6409
  {
6354
6410
  ref,
6355
6411
  asChild: true,
6356
- "aria-label": t(texts25.previousPage),
6412
+ "aria-label": t(texts26.previousPage),
6357
6413
  as: props.as || "button",
6358
6414
  css: styles.item,
6359
6415
  ...props,
@@ -6382,7 +6438,7 @@ var PaginationNextTrigger = ({
6382
6438
  to: rootProps.getHref(props.value)
6383
6439
  },
6384
6440
  css: styles.item,
6385
- "aria-label": t(texts25.nextPage),
6441
+ "aria-label": t(texts26.nextPage),
6386
6442
  ...props,
6387
6443
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
6388
6444
  }
@@ -6393,7 +6449,7 @@ var PaginationNextTrigger = ({
6393
6449
  {
6394
6450
  ref,
6395
6451
  css: styles.item,
6396
- "aria-label": t(texts25.nextPage),
6452
+ "aria-label": t(texts26.nextPage),
6397
6453
  as: props.as || "button",
6398
6454
  ...props,
6399
6455
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
@@ -6420,7 +6476,7 @@ var PaginationItems = (props) => {
6420
6476
  );
6421
6477
  }) });
6422
6478
  };
6423
- var texts25 = createTexts({
6479
+ var texts26 = createTexts({
6424
6480
  previousPage: {
6425
6481
  nb: "Forrige side",
6426
6482
  nn: "F\xF8rre side",
@@ -6520,7 +6576,7 @@ var ProgressIndicator = ({
6520
6576
  "aria-valuemin": 1,
6521
6577
  "aria-valuemax": numberOfSteps,
6522
6578
  "aria-valuenow": activeStep,
6523
- "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6579
+ "aria-valuetext": t(texts27.stepsOf(activeStep, numberOfSteps)),
6524
6580
  ref,
6525
6581
  children: /* @__PURE__ */ jsx(Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsx(
6526
6582
  Box,
@@ -6539,7 +6595,7 @@ var ProgressIndicator = ({
6539
6595
  }
6540
6596
  );
6541
6597
  };
6542
- var texts26 = createTexts({
6598
+ var texts27 = createTexts({
6543
6599
  stepsOf: (activeStep, numberOfSteps) => ({
6544
6600
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6545
6601
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6549,7 +6605,7 @@ var texts26 = createTexts({
6549
6605
  });
6550
6606
  var fontFaces = `
6551
6607
  @font-face {
6552
- font-family: ${tokens22__default.asset.font["vy-sans"]["light"].name};
6608
+ font-family: ${tokens21__default.asset.font["vy-sans"]["light"].name};
6553
6609
  src: url("https://www.vy.no/styles/font/VySans-Light.woff2") format("woff2"),
6554
6610
  url("https://www.vy.no/styles/font/VySans-Light.woff") format("woff");
6555
6611
  font-style: normal;
@@ -6557,7 +6613,7 @@ var fontFaces = `
6557
6613
  font-display: swap
6558
6614
  }
6559
6615
  @font-face {
6560
- font-family: ${tokens22__default.asset.font["vy-sans"]["light-italic"].name};
6616
+ font-family: ${tokens21__default.asset.font["vy-sans"]["light-italic"].name};
6561
6617
  src: url("https://www.vy.no/styles/font/VySans-LightItalic.woff2")
6562
6618
  format("woff2"),
6563
6619
  url("https://www.vy.no/styles/font/VySans-LightItalic.woff") format("woff");
@@ -6566,7 +6622,7 @@ var fontFaces = `
6566
6622
  font-display: swap
6567
6623
  }
6568
6624
  @font-face {
6569
- font-family: ${tokens22__default.asset.font["vy-sans"]["medium"].name};
6625
+ font-family: ${tokens21__default.asset.font["vy-sans"]["medium"].name};
6570
6626
  src: url("https://www.vy.no/styles/font/VySans-Regular.woff2") format("woff2"),
6571
6627
  url("https://www.vy.no/styles/font/VySans-Regular.woff") format("woff");
6572
6628
  font-style: normal;
@@ -6574,7 +6630,7 @@ var fontFaces = `
6574
6630
  font-display: swap
6575
6631
  }
6576
6632
  @font-face {
6577
- font-family: ${tokens22__default.asset.font["vy-sans"]["medium-italic"].name};
6633
+ font-family: ${tokens21__default.asset.font["vy-sans"]["medium-italic"].name};
6578
6634
  src: url("https://www.vy.no/styles/font/VySans-RegularItalic.woff2")
6579
6635
  format("woff2"),
6580
6636
  url("https://www.vy.no/styles/font/VySans-RegularItalic.woff")
@@ -6584,7 +6640,7 @@ var fontFaces = `
6584
6640
  font-display: swap
6585
6641
  }
6586
6642
  @font-face {
6587
- font-family: ${tokens22__default.asset.font["vy-sans"]["bold"].name};
6643
+ font-family: ${tokens21__default.asset.font["vy-sans"]["bold"].name};
6588
6644
  src: url("https://www.vy.no/styles/font/VySans-Bold.woff2") format("woff2"),
6589
6645
  url("https://www.vy.no/styles/font/VySans-Bold.woff") format("woff");
6590
6646
  font-style: normal;
@@ -6592,7 +6648,7 @@ var fontFaces = `
6592
6648
  font-display: swap
6593
6649
  }
6594
6650
  @font-face {
6595
- font-family: ${tokens22__default.asset.font["vy-sans"]["bold-italic"].name};
6651
+ font-family: ${tokens21__default.asset.font["vy-sans"]["bold-italic"].name};
6596
6652
  src: url("https://www.vy.no/styles/font/VySans-BoldItalic.woff2")
6597
6653
  format("woff2"),
6598
6654
  url("https://www.vy.no/styles/font/VySans-BoldItalic.woff") format("woff");
@@ -6601,7 +6657,7 @@ var fontFaces = `
6601
6657
  font-display: swap
6602
6658
  }
6603
6659
  @font-face {
6604
- font-family: ${tokens22__default.asset.font["vy-display"].name};
6660
+ font-family: ${tokens21__default.asset.font["vy-display"].name};
6605
6661
  src: url("https://www.vy.no/styles/font/VyDisplay-Medium.woff2")
6606
6662
  format("woff2"),
6607
6663
  url("https://www.vy.no/styles/font/VyDisplay-Medium.woff") format("woff");
@@ -6735,7 +6791,7 @@ var Stepper = function Stepper2({
6735
6791
  /* @__PURE__ */ jsx(
6736
6792
  IconButton,
6737
6793
  {
6738
- "aria-label": t(texts27.back),
6794
+ "aria-label": t(texts28.back),
6739
6795
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
6740
6796
  variant: "ghost",
6741
6797
  size: "sm",
@@ -6759,7 +6815,7 @@ var Stepper = function Stepper2({
6759
6815
  children: heading
6760
6816
  }
6761
6817
  ),
6762
- /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6818
+ /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts28.stepsOf(activeStep, numberOfSteps)) })
6763
6819
  ]
6764
6820
  }
6765
6821
  ) }),
@@ -6778,7 +6834,7 @@ var Stepper = function Stepper2({
6778
6834
  }
6779
6835
  ) });
6780
6836
  };
6781
- var texts27 = createTexts({
6837
+ var texts28 = createTexts({
6782
6838
  stepsOf: (activeStep, numberOfSteps) => ({
6783
6839
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6784
6840
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7101,7 +7157,7 @@ var buttonRecipe = defineRecipe({
7101
7157
  background: "surface.disabled"
7102
7158
  },
7103
7159
  _focus: {
7104
- outlineOffset: tokens22__default.size.stroke.md
7160
+ outlineOffset: tokens21__default.size.stroke.md
7105
7161
  }
7106
7162
  },
7107
7163
  variants: {
@@ -7132,19 +7188,19 @@ var buttonRecipe = defineRecipe({
7132
7188
  color: "text.core",
7133
7189
  outline: "solid",
7134
7190
  fontWeight: "normal",
7135
- outlineWidth: tokens22__default.size.stroke.sm,
7191
+ outlineWidth: tokens21__default.size.stroke.sm,
7136
7192
  outlineColor: "outline.core",
7137
7193
  _hover: {
7138
- outlineWidth: tokens22__default.size.stroke.md,
7194
+ outlineWidth: tokens21__default.size.stroke.md,
7139
7195
  outlineColor: "outline.core.hover",
7140
7196
  _active: {
7141
7197
  background: "surface.core.active",
7142
- outlineWidth: tokens22__default.size.stroke.sm,
7198
+ outlineWidth: tokens21__default.size.stroke.sm,
7143
7199
  outlineColor: "outline.core"
7144
7200
  }
7145
7201
  },
7146
7202
  _focus: {
7147
- outlineWidth: tokens22__default.size.stroke.sm
7203
+ outlineWidth: tokens21__default.size.stroke.sm
7148
7204
  }
7149
7205
  },
7150
7206
  ghost: {
@@ -7472,15 +7528,15 @@ var pressableCardRecipe = defineRecipe({
7472
7528
  },
7473
7529
  core: {
7474
7530
  outlineColor: "outline.core",
7475
- outlineWidth: tokens22__default.size.stroke.sm,
7531
+ outlineWidth: tokens21__default.size.stroke.sm,
7476
7532
  outlineStyle: "solid",
7477
7533
  _hover: {
7478
7534
  outlineColor: "outline.core.hover",
7479
- outlineWidth: tokens22__default.size.stroke.md,
7535
+ outlineWidth: tokens21__default.size.stroke.md,
7480
7536
  outlineStyle: "solid",
7481
7537
  _active: {
7482
7538
  backgroundColor: "surface.core.active",
7483
- outlineWidth: tokens22__default.size.stroke.sm
7539
+ outlineWidth: tokens21__default.size.stroke.sm
7484
7540
  }
7485
7541
  }
7486
7542
  },
@@ -7665,7 +7721,9 @@ var textareaRecipe = defineRecipe({
7665
7721
  borderTop: "0.8rem solid transparent",
7666
7722
  "&:focus-visible, &:not(:placeholder-shown)": {
7667
7723
  borderTop: "var(--label-height) solid transparent"
7668
- }
7724
+ },
7725
+ fontSize: "mobile.md",
7726
+ paddingLeft: 3
7669
7727
  },
7670
7728
  variants: {
7671
7729
  variant: {
@@ -7706,34 +7764,34 @@ var cargonetColors = defineSemanticTokens.colors({
7706
7764
  ...tokens4.color["cargonet"].color.cargonet
7707
7765
  });
7708
7766
  var radii = defineSemanticTokens.radii({
7709
- none: { value: tokens22__default.size["border-radius"].none },
7710
- xxs: { value: tokens22__default.size["border-radius"].xxs },
7711
- xs: { value: tokens22__default.size["border-radius"].xs },
7712
- sm: { value: tokens22__default.size["border-radius"].sm },
7713
- md: { value: tokens22__default.size["border-radius"].md },
7714
- lg: { value: tokens22__default.size["border-radius"].lg },
7715
- xl: { value: tokens22__default.size["border-radius"].xl },
7716
- "2xl": { value: tokens22__default.size["border-radius"]["2xl"] },
7767
+ none: { value: tokens21__default.size["border-radius"].none },
7768
+ xxs: { value: tokens21__default.size["border-radius"].xxs },
7769
+ xs: { value: tokens21__default.size["border-radius"].xs },
7770
+ sm: { value: tokens21__default.size["border-radius"].sm },
7771
+ md: { value: tokens21__default.size["border-radius"].md },
7772
+ lg: { value: tokens21__default.size["border-radius"].lg },
7773
+ xl: { value: tokens21__default.size["border-radius"].xl },
7774
+ "2xl": { value: tokens21__default.size["border-radius"]["2xl"] },
7717
7775
  round: { value: "50%" }
7718
7776
  });
7719
7777
  var shadows = defineSemanticTokens.shadows({
7720
7778
  none: { value: "none" },
7721
7779
  sm: {
7722
7780
  value: {
7723
- _light: tokens22__default.depth.shadow.sm.value._light,
7724
- _dark: tokens22__default.depth.shadow.sm.value._dark
7781
+ _light: tokens21__default.depth.shadow.sm.value._light,
7782
+ _dark: tokens21__default.depth.shadow.sm.value._dark
7725
7783
  }
7726
7784
  },
7727
7785
  md: {
7728
7786
  value: {
7729
- _light: tokens22__default.depth.shadow.md.value._light,
7730
- _dark: tokens22__default.depth.shadow.md.value._dark
7787
+ _light: tokens21__default.depth.shadow.md.value._light,
7788
+ _dark: tokens21__default.depth.shadow.md.value._dark
7731
7789
  }
7732
7790
  },
7733
7791
  lg: {
7734
7792
  value: {
7735
- _light: tokens22__default.depth.shadow.lg.value._light,
7736
- _dark: tokens22__default.depth.shadow.lg.value._dark
7793
+ _light: tokens21__default.depth.shadow.lg.value._light,
7794
+ _dark: tokens21__default.depth.shadow.lg.value._dark
7737
7795
  }
7738
7796
  }
7739
7797
  });
@@ -8112,7 +8170,7 @@ var accordionSlotRecipe = defineSlotRecipe({
8112
8170
  core: {
8113
8171
  item: {
8114
8172
  outline: "solid",
8115
- outlineWidth: tokens22__default.size.stroke.sm,
8173
+ outlineWidth: tokens21__default.size.stroke.sm,
8116
8174
  outlineColor: "outline.core"
8117
8175
  },
8118
8176
  itemTrigger: {
@@ -8120,14 +8178,14 @@ var accordionSlotRecipe = defineSlotRecipe({
8120
8178
  borderBottomRadius: "none"
8121
8179
  },
8122
8180
  "&:hover": {
8123
- outlineWidth: tokens22__default.size.stroke.md,
8181
+ outlineWidth: tokens21__default.size.stroke.md,
8124
8182
  outlineColor: "outline.core",
8125
8183
  outline: "2px solid",
8126
8184
  outlineOffset: 0
8127
8185
  },
8128
8186
  "&:active": {
8129
8187
  backgroundColor: "surface.core.active",
8130
- outlineWidth: tokens22__default.size.stroke.sm,
8188
+ outlineWidth: tokens21__default.size.stroke.sm,
8131
8189
  outline: "none"
8132
8190
  }
8133
8191
  }
@@ -8145,7 +8203,7 @@ var accordionSlotRecipe = defineSlotRecipe({
8145
8203
  floating: {
8146
8204
  item: {
8147
8205
  outline: "1px solid",
8148
- outlineWidth: tokens22__default.size.stroke.sm,
8206
+ outlineWidth: tokens21__default.size.stroke.sm,
8149
8207
  boxShadow: "sm",
8150
8208
  outlineColor: "outline.floating"
8151
8209
  },
@@ -8154,14 +8212,14 @@ var accordionSlotRecipe = defineSlotRecipe({
8154
8212
  borderBottomRadius: "none"
8155
8213
  },
8156
8214
  "&:hover": {
8157
- outlineWidth: tokens22__default.size.stroke.md,
8215
+ outlineWidth: tokens21__default.size.stroke.md,
8158
8216
  outline: "1px solid",
8159
8217
  outlineColor: "outline.floating.hover",
8160
8218
  outlineOffset: 1
8161
8219
  },
8162
8220
  "&:active": {
8163
8221
  backgroundColor: "surface.floating.active",
8164
- outlineWidth: tokens22__default.size.stroke.sm,
8222
+ outlineWidth: tokens21__default.size.stroke.sm,
8165
8223
  outline: "none"
8166
8224
  }
8167
8225
  }
@@ -8566,10 +8624,10 @@ var breadcrumbSlotRecipe = defineSlotRecipe({
8566
8624
  },
8567
8625
  link: {
8568
8626
  cursor: "pointer",
8569
- borderRadius: "xs"
8627
+ borderRadius: "xs",
8628
+ textDecoration: "underline"
8570
8629
  },
8571
8630
  currentLink: {
8572
- borderRadius: "xs",
8573
8631
  cursor: "default"
8574
8632
  },
8575
8633
  separator: {
@@ -8583,12 +8641,9 @@ var breadcrumbSlotRecipe = defineSlotRecipe({
8583
8641
  core: {
8584
8642
  link: {
8585
8643
  _hover: {
8586
- outlineColor: "outline.core.hover",
8587
- outlineWidth: tokens22__default.size.stroke.md,
8588
- outlineStyle: "solid",
8644
+ textDecoration: "none",
8589
8645
  _active: {
8590
- backgroundColor: "surface.core.active",
8591
- outline: "none"
8646
+ backgroundColor: "surface.core.active"
8592
8647
  }
8593
8648
  }
8594
8649
  }
@@ -8670,10 +8725,10 @@ var checkboxSlotRecipe = defineSlotRecipe({
8670
8725
  _focus: {
8671
8726
  outlineStyle: "solid",
8672
8727
  outlineColor: "outline.focus",
8673
- outlineOffset: tokens22__default.size.stroke.md,
8674
- outlineWidth: tokens22__default.size.stroke.md,
8728
+ outlineOffset: tokens21__default.size.stroke.md,
8729
+ outlineWidth: tokens21__default.size.stroke.md,
8675
8730
  borderColor: "outline.core",
8676
- borderWidth: tokens22__default.size.stroke.md
8731
+ borderWidth: tokens21__default.size.stroke.md
8677
8732
  }
8678
8733
  },
8679
8734
  label: {
@@ -8991,7 +9046,8 @@ var datePickerSlotRecipe = defineSlotRecipe({
8991
9046
  outlineColor: "outline.floating",
8992
9047
  boxShadow: "md",
8993
9048
  backgroundColor: "surface.floating",
8994
- minHeight: "min-content"
9049
+ minHeight: "min-content",
9050
+ maxWidth: "100vw"
8995
9051
  },
8996
9052
  rangeCalendarPopover: {
8997
9053
  width: "43rem",
@@ -9876,7 +9932,7 @@ var floatingActionButtonSlotRecipe = defineSlotRecipe({
9876
9932
  position: "fixed",
9877
9933
  zIndex: "dropdown",
9878
9934
  _focus: {
9879
- outlineOffset: tokens22__default.size.stroke.lg,
9935
+ outlineOffset: tokens21__default.size.stroke.lg,
9880
9936
  outlineColor: "outline.focus"
9881
9937
  },
9882
9938
  _disabled: {
@@ -11188,25 +11244,25 @@ var radioCardSlotRecipe = defineSlotRecipe({
11188
11244
  core: {
11189
11245
  item: {
11190
11246
  outlineColor: "outline.core",
11191
- outlineWidth: tokens22__default.size.stroke.sm,
11247
+ outlineWidth: tokens21__default.size.stroke.sm,
11192
11248
  outlineStyle: "solid",
11193
11249
  _hover: {
11194
11250
  outlineColor: "outline.core.hover",
11195
- outlineWidth: tokens22__default.size.stroke.md,
11251
+ outlineWidth: tokens21__default.size.stroke.md,
11196
11252
  outlineStyle: "solid",
11197
11253
  _active: {
11198
11254
  backgroundColor: "surface.core.active",
11199
- outlineWidth: tokens22__default.size.stroke.sm
11255
+ outlineWidth: tokens21__default.size.stroke.sm
11200
11256
  }
11201
11257
  },
11202
11258
  _checked: {
11203
11259
  outlineColor: "outline.focus",
11204
- outlineWidth: tokens22__default.size.stroke.md,
11260
+ outlineWidth: tokens21__default.size.stroke.md,
11205
11261
  outlineStyle: "solid",
11206
11262
  backgroundColor: "surface.core.active",
11207
11263
  _focusVisible: {
11208
11264
  outlineStyle: "double",
11209
- outlineWidth: `calc(3 * ${tokens22__default.size.stroke.md})`
11265
+ outlineWidth: `calc(3 * ${tokens21__default.size.stroke.md})`
11210
11266
  // space for double outline
11211
11267
  }
11212
11268
  }
@@ -11231,12 +11287,12 @@ var radioCardSlotRecipe = defineSlotRecipe({
11231
11287
  },
11232
11288
  _checked: {
11233
11289
  outlineColor: "outline.focus",
11234
- outlineWidth: tokens22__default.size.stroke.md,
11290
+ outlineWidth: tokens21__default.size.stroke.md,
11235
11291
  outlineStyle: "solid",
11236
11292
  backgroundColor: "surface.core.active",
11237
11293
  _focusVisible: {
11238
11294
  outlineStyle: "double",
11239
- outlineWidth: `calc(3 * ${tokens22__default.size.stroke.md})`
11295
+ outlineWidth: `calc(3 * ${tokens21__default.size.stroke.md})`
11240
11296
  // space for double outline
11241
11297
  }
11242
11298
  }
@@ -12275,22 +12331,22 @@ var borders = defineTokens.borders({
12275
12331
  value: "0"
12276
12332
  },
12277
12333
  sm: {
12278
- value: `${tokens22__default.size.stroke.sm} solid`
12334
+ value: `${tokens21__default.size.stroke.sm} solid`
12279
12335
  },
12280
12336
  "sm-dashed": {
12281
- value: `${tokens22__default.size.stroke.sm} dashed`
12337
+ value: `${tokens21__default.size.stroke.sm} dashed`
12282
12338
  },
12283
12339
  md: {
12284
- value: `${tokens22__default.size.stroke.md} solid`
12340
+ value: `${tokens21__default.size.stroke.md} solid`
12285
12341
  },
12286
12342
  "md-dashed": {
12287
- value: `${tokens22__default.size.stroke.md} dashed`
12343
+ value: `${tokens21__default.size.stroke.md} dashed`
12288
12344
  },
12289
12345
  lg: {
12290
- value: `${tokens22__default.size.stroke.lg} solid`
12346
+ value: `${tokens21__default.size.stroke.lg} solid`
12291
12347
  },
12292
12348
  "lg-dashed": {
12293
- value: `${tokens22__default.size.stroke.lg} dashed`
12349
+ value: `${tokens21__default.size.stroke.lg} dashed`
12294
12350
  }
12295
12351
  });
12296
12352
  var colors = defineTokens.colors({
@@ -12362,33 +12418,33 @@ var easings = defineTokens.easings({
12362
12418
  }
12363
12419
  });
12364
12420
  var fontSizes = defineTokens.fontSizes({
12365
- "2xs": { value: tokens22__default.size.font.xs.mobile },
12366
- xs: { value: tokens22__default.size.font.sm.mobile },
12367
- sm: { value: tokens22__default.size.font.md.mobile },
12368
- md: { value: tokens22__default.size.font.lg.mobile },
12369
- lg: { value: tokens22__default.size.font.xl.mobile },
12370
- xl: { value: tokens22__default.size.font.xxl.mobile },
12371
- "2xl": { value: tokens22__default.size.font.xl.desktop },
12372
- "3xl": { value: tokens22__default.size.font.xxl.desktop },
12421
+ "2xs": { value: tokens21__default.size.font.xs.mobile },
12422
+ xs: { value: tokens21__default.size.font.sm.mobile },
12423
+ sm: { value: tokens21__default.size.font.md.mobile },
12424
+ md: { value: tokens21__default.size.font.lg.mobile },
12425
+ lg: { value: tokens21__default.size.font.xl.mobile },
12426
+ xl: { value: tokens21__default.size.font.xxl.mobile },
12427
+ "2xl": { value: tokens21__default.size.font.xl.desktop },
12428
+ "3xl": { value: tokens21__default.size.font.xxl.desktop },
12373
12429
  mobile: {
12374
- "2xs": { value: tokens22__default.size.font["2xs"].mobile },
12375
- xs: { value: tokens22__default.size.font.xs.mobile },
12376
- sm: { value: tokens22__default.size.font.sm.mobile },
12377
- md: { value: tokens22__default.size.font.md.mobile },
12378
- "md-lg": { value: tokens22__default.size.font["md-lg"].mobile },
12379
- lg: { value: tokens22__default.size.font.lg.mobile },
12380
- xl: { value: tokens22__default.size.font.xl.mobile },
12381
- xxl: { value: tokens22__default.size.font.xxl.mobile }
12430
+ "2xs": { value: tokens21__default.size.font["2xs"].mobile },
12431
+ xs: { value: tokens21__default.size.font.xs.mobile },
12432
+ sm: { value: tokens21__default.size.font.sm.mobile },
12433
+ md: { value: tokens21__default.size.font.md.mobile },
12434
+ "md-lg": { value: tokens21__default.size.font["md-lg"].mobile },
12435
+ lg: { value: tokens21__default.size.font.lg.mobile },
12436
+ xl: { value: tokens21__default.size.font.xl.mobile },
12437
+ xxl: { value: tokens21__default.size.font.xxl.mobile }
12382
12438
  },
12383
12439
  desktop: {
12384
- "2xs": { value: tokens22__default.size.font["2xs"].desktop },
12385
- xs: { value: tokens22__default.size.font.xs.desktop },
12386
- sm: { value: tokens22__default.size.font.sm.desktop },
12387
- md: { value: tokens22__default.size.font.md.desktop },
12388
- "md-lg": { value: tokens22__default.size.font["md-lg"].desktop },
12389
- lg: { value: tokens22__default.size.font.lg.desktop },
12390
- xl: { value: tokens22__default.size.font.xl.desktop },
12391
- xxl: { value: tokens22__default.size.font.xxl.desktop }
12440
+ "2xs": { value: tokens21__default.size.font["2xs"].desktop },
12441
+ xs: { value: tokens21__default.size.font.xs.desktop },
12442
+ sm: { value: tokens21__default.size.font.sm.desktop },
12443
+ md: { value: tokens21__default.size.font.md.desktop },
12444
+ "md-lg": { value: tokens21__default.size.font["md-lg"].desktop },
12445
+ lg: { value: tokens21__default.size.font.lg.desktop },
12446
+ xl: { value: tokens21__default.size.font.xl.desktop },
12447
+ xxl: { value: tokens21__default.size.font.xxl.desktop }
12392
12448
  }
12393
12449
  });
12394
12450
  var fontWeights = defineTokens.fontWeights({
@@ -12421,9 +12477,9 @@ var fontWeights = defineTokens.fontWeights({
12421
12477
  }
12422
12478
  });
12423
12479
  var fonts = defineTokens.fonts({
12424
- body: { value: `${tokens22__default.font.family.body}, arial, sans-serif` },
12425
- heading: { value: `${tokens22__default.font.family.heading}, arial, sans-serif` },
12426
- mono: { value: `${tokens22__default.font.family.monospace}, monospace` }
12480
+ body: { value: `${tokens21__default.font.family.body}, arial, sans-serif` },
12481
+ heading: { value: `${tokens21__default.font.family.heading}, arial, sans-serif` },
12482
+ mono: { value: `${tokens21__default.font.family.monospace}, monospace` }
12427
12483
  });
12428
12484
  var letterSpacings = defineTokens.letterSpacings({
12429
12485
  tighter: {
@@ -12460,32 +12516,32 @@ var lineHeights = defineTokens.lineHeights({
12460
12516
  }
12461
12517
  });
12462
12518
  var radii2 = defineTokens.radii({
12463
- none: { value: tokens22__default.size["border-radius"].none },
12464
- xs: { value: tokens22__default.size["border-radius"].xs },
12465
- sm: { value: tokens22__default.size["border-radius"].sm },
12466
- md: { value: tokens22__default.size["border-radius"].md },
12467
- lg: { value: tokens22__default.size["border-radius"].lg },
12468
- xl: { value: tokens22__default.size["border-radius"].xl },
12469
- "2xl": { value: tokens22__default.size["border-radius"]["2xl"] },
12519
+ none: { value: tokens21__default.size["border-radius"].none },
12520
+ xs: { value: tokens21__default.size["border-radius"].xs },
12521
+ sm: { value: tokens21__default.size["border-radius"].sm },
12522
+ md: { value: tokens21__default.size["border-radius"].md },
12523
+ lg: { value: tokens21__default.size["border-radius"].lg },
12524
+ xl: { value: tokens21__default.size["border-radius"].xl },
12525
+ "2xl": { value: tokens21__default.size["border-radius"]["2xl"] },
12470
12526
  round: { value: "50%" }
12471
12527
  });
12472
12528
  var spacing = defineTokens.spacing({
12473
- 0: { value: tokens22__default.size.spacing["0"] },
12474
- 0.5: { value: tokens22__default.size.spacing["0.5"] },
12475
- 1: { value: tokens22__default.size.spacing["1"] },
12476
- 1.5: { value: tokens22__default.size.spacing["1.5"] },
12477
- 2: { value: tokens22__default.size.spacing["2"] },
12478
- 3: { value: tokens22__default.size.spacing["3"] },
12479
- 4: { value: tokens22__default.size.spacing["4"] },
12480
- 5: { value: tokens22__default.size.spacing["5"] },
12481
- 6: { value: tokens22__default.size.spacing["6"] },
12482
- 7: { value: tokens22__default.size.spacing["7"] },
12483
- 8: { value: tokens22__default.size.spacing["8"] },
12484
- 9: { value: tokens22__default.size.spacing["9"] },
12485
- 10: { value: tokens22__default.size.spacing["10"] },
12486
- 11: { value: tokens22__default.size.spacing["11"] },
12487
- 12: { value: tokens22__default.size.spacing["12"] },
12488
- 13: { value: tokens22__default.size.spacing["13"] }
12529
+ 0: { value: tokens21__default.size.spacing["0"] },
12530
+ 0.5: { value: tokens21__default.size.spacing["0.5"] },
12531
+ 1: { value: tokens21__default.size.spacing["1"] },
12532
+ 1.5: { value: tokens21__default.size.spacing["1.5"] },
12533
+ 2: { value: tokens21__default.size.spacing["2"] },
12534
+ 3: { value: tokens21__default.size.spacing["3"] },
12535
+ 4: { value: tokens21__default.size.spacing["4"] },
12536
+ 5: { value: tokens21__default.size.spacing["5"] },
12537
+ 6: { value: tokens21__default.size.spacing["6"] },
12538
+ 7: { value: tokens21__default.size.spacing["7"] },
12539
+ 8: { value: tokens21__default.size.spacing["8"] },
12540
+ 9: { value: tokens21__default.size.spacing["9"] },
12541
+ 10: { value: tokens21__default.size.spacing["10"] },
12542
+ 11: { value: tokens21__default.size.spacing["11"] },
12543
+ 12: { value: tokens21__default.size.spacing["12"] },
12544
+ 13: { value: tokens21__default.size.spacing["13"] }
12489
12545
  });
12490
12546
 
12491
12547
  // src/theme/tokens/sizes.ts
@@ -12522,10 +12578,10 @@ var namedSizes = defineTokens.sizes({
12522
12578
  });
12523
12579
  var container = defineTokens.sizes({
12524
12580
  base: { value: 0 },
12525
- sm: { value: tokens22__default.size.breakpoint.sm },
12526
- md: { value: tokens22__default.size.breakpoint.md },
12527
- lg: { value: tokens22__default.size.breakpoint.lg },
12528
- xl: { value: tokens22__default.size.breakpoint.xl }
12581
+ sm: { value: tokens21__default.size.breakpoint.sm },
12582
+ md: { value: tokens21__default.size.breakpoint.md },
12583
+ lg: { value: tokens21__default.size.breakpoint.lg },
12584
+ xl: { value: tokens21__default.size.breakpoint.xl }
12529
12585
  });
12530
12586
  var sizes = {
12531
12587
  ...largeSizes,
@@ -12534,22 +12590,22 @@ var sizes = {
12534
12590
  container
12535
12591
  };
12536
12592
  var zIndex = defineTokens.zIndex({
12537
- hide: { value: tokens22__default.depth["z-index"].hide },
12593
+ hide: { value: tokens21__default.depth["z-index"].hide },
12538
12594
  auto: { value: "auto" },
12539
- base: { value: tokens22__default.depth["z-index"].base },
12540
- docked: { value: tokens22__default.depth["z-index"].docked },
12541
- dropdown: { value: tokens22__default.depth["z-index"].dropdown },
12542
- sticky: { value: tokens22__default.depth["z-index"].sticky },
12543
- banner: { value: tokens22__default.depth["z-index"].banner },
12544
- overlay: { value: tokens22__default.depth["z-index"].overlay },
12545
- modal: { value: tokens22__default.depth["z-index"].modal },
12546
- popover: { value: tokens22__default.depth["z-index"].popover },
12547
- skipLink: { value: tokens22__default.depth["z-index"].skipLink },
12548
- toast: { value: tokens22__default.depth["z-index"].toast }
12595
+ base: { value: tokens21__default.depth["z-index"].base },
12596
+ docked: { value: tokens21__default.depth["z-index"].docked },
12597
+ dropdown: { value: tokens21__default.depth["z-index"].dropdown },
12598
+ sticky: { value: tokens21__default.depth["z-index"].sticky },
12599
+ banner: { value: tokens21__default.depth["z-index"].banner },
12600
+ overlay: { value: tokens21__default.depth["z-index"].overlay },
12601
+ modal: { value: tokens21__default.depth["z-index"].modal },
12602
+ popover: { value: tokens21__default.depth["z-index"].popover },
12603
+ skipLink: { value: tokens21__default.depth["z-index"].skipLink },
12604
+ toast: { value: tokens21__default.depth["z-index"].toast }
12549
12605
  });
12550
12606
 
12551
12607
  // src/theme/tokens/index.ts
12552
- var tokens20 = {
12608
+ var tokens19 = {
12553
12609
  aspectRatios,
12554
12610
  animations,
12555
12611
  blurs,
@@ -12617,10 +12673,10 @@ var animationStyles = defineAnimationStyles({
12617
12673
  }
12618
12674
  });
12619
12675
  var breakpoints = {
12620
- sm: tokens22__default.size.breakpoint.sm,
12621
- md: tokens22__default.size.breakpoint.md,
12622
- lg: tokens22__default.size.breakpoint.lg,
12623
- xl: tokens22__default.size.breakpoint.xl
12676
+ sm: tokens21__default.size.breakpoint.sm,
12677
+ md: tokens21__default.size.breakpoint.md,
12678
+ lg: tokens21__default.size.breakpoint.lg,
12679
+ xl: tokens21__default.size.breakpoint.xl
12624
12680
  };
12625
12681
 
12626
12682
  // src/theme/tokens/config.ts
@@ -12910,91 +12966,91 @@ var textStyles = defineTextStyles({
12910
12966
  xxl: {
12911
12967
  value: {
12912
12968
  fontSize: [
12913
- tokens22__default.font.style.xxl["font-size"].mobile,
12914
- tokens22__default.font.style.xxl["font-size"].desktop
12969
+ tokens21__default.font.style.xxl["font-size"].mobile,
12970
+ tokens21__default.font.style.xxl["font-size"].desktop
12915
12971
  ],
12916
- fontFamily: tokens22__default.font.style.xxl["font-family"],
12917
- lineHeight: tokens22__default.font.style.xxl["line-height"]
12972
+ fontFamily: tokens21__default.font.style.xxl["font-family"],
12973
+ lineHeight: tokens21__default.font.style.xxl["line-height"]
12918
12974
  }
12919
12975
  },
12920
12976
  "xl-display": {
12921
12977
  value: {
12922
12978
  fontSize: [
12923
- tokens22__default.font.style["xl-display"]["font-size"].mobile,
12924
- tokens22__default.font.style["xl-display"]["font-size"].desktop
12979
+ tokens21__default.font.style["xl-display"]["font-size"].mobile,
12980
+ tokens21__default.font.style["xl-display"]["font-size"].desktop
12925
12981
  ],
12926
- fontFamily: tokens22__default.font.style["xl-display"]["font-family"],
12927
- lineHeight: tokens22__default.font.style["xl-display"]["line-height"]
12982
+ fontFamily: tokens21__default.font.style["xl-display"]["font-family"],
12983
+ lineHeight: tokens21__default.font.style["xl-display"]["line-height"]
12928
12984
  }
12929
12985
  },
12930
12986
  "xl-sans": {
12931
12987
  value: {
12932
12988
  fontSize: [
12933
- tokens22__default.font.style["xl-sans"]["font-size"].mobile,
12934
- tokens22__default.font.style["xl-sans"]["font-size"].desktop
12989
+ tokens21__default.font.style["xl-sans"]["font-size"].mobile,
12990
+ tokens21__default.font.style["xl-sans"]["font-size"].desktop
12935
12991
  ],
12936
- fontFamily: tokens22__default.font.style["xl-sans"]["font-family"],
12937
- lineHeight: tokens22__default.font.style["xl-sans"]["line-height"]
12992
+ fontFamily: tokens21__default.font.style["xl-sans"]["font-family"],
12993
+ lineHeight: tokens21__default.font.style["xl-sans"]["line-height"]
12938
12994
  }
12939
12995
  },
12940
12996
  lg: {
12941
12997
  value: {
12942
12998
  fontSize: [
12943
- tokens22__default.font.style.lg["font-size"].mobile,
12944
- tokens22__default.font.style.lg["font-size"].desktop
12999
+ tokens21__default.font.style.lg["font-size"].mobile,
13000
+ tokens21__default.font.style.lg["font-size"].desktop
12945
13001
  ],
12946
- fontFamily: tokens22__default.font.style.lg["font-family"],
12947
- lineHeight: tokens22__default.font.style.lg["line-height"]
13002
+ fontFamily: tokens21__default.font.style.lg["font-family"],
13003
+ lineHeight: tokens21__default.font.style.lg["line-height"]
12948
13004
  }
12949
13005
  },
12950
13006
  "md-lg": {
12951
13007
  value: {
12952
13008
  fontSize: [
12953
- tokens22__default.font.style["md-lg"]["font-size"].mobile,
12954
- tokens22__default.font.style["md-lg"]["font-size"].desktop
13009
+ tokens21__default.font.style["md-lg"]["font-size"].mobile,
13010
+ tokens21__default.font.style["md-lg"]["font-size"].desktop
12955
13011
  ],
12956
- fontFamily: tokens22__default.font.style["md-lg"]["font-family"],
12957
- lineHeight: tokens22__default.font.style["md-lg"]["line-height"]
13012
+ fontFamily: tokens21__default.font.style["md-lg"]["font-family"],
13013
+ lineHeight: tokens21__default.font.style["md-lg"]["line-height"]
12958
13014
  }
12959
13015
  },
12960
13016
  md: {
12961
13017
  value: {
12962
13018
  fontSize: [
12963
- tokens22__default.font.style.md["font-size"].mobile,
12964
- tokens22__default.font.style.md["font-size"].desktop
13019
+ tokens21__default.font.style.md["font-size"].mobile,
13020
+ tokens21__default.font.style.md["font-size"].desktop
12965
13021
  ],
12966
- fontFamily: tokens22__default.font.style.md["font-family"],
12967
- lineHeight: tokens22__default.font.style.md["line-height"]
13022
+ fontFamily: tokens21__default.font.style.md["font-family"],
13023
+ lineHeight: tokens21__default.font.style.md["line-height"]
12968
13024
  }
12969
13025
  },
12970
13026
  sm: {
12971
13027
  value: {
12972
13028
  fontSize: [
12973
- tokens22__default.font.style.sm["font-size"].mobile,
12974
- tokens22__default.font.style.sm["font-size"].desktop
13029
+ tokens21__default.font.style.sm["font-size"].mobile,
13030
+ tokens21__default.font.style.sm["font-size"].desktop
12975
13031
  ],
12976
- fontFamily: tokens22__default.font.style.sm["font-family"],
12977
- lineHeight: tokens22__default.font.style.sm["line-height"]
13032
+ fontFamily: tokens21__default.font.style.sm["font-family"],
13033
+ lineHeight: tokens21__default.font.style.sm["line-height"]
12978
13034
  }
12979
13035
  },
12980
13036
  xs: {
12981
13037
  value: {
12982
13038
  fontSize: [
12983
- tokens22__default.font.style.xs["font-size"].mobile,
12984
- tokens22__default.font.style.xs["font-size"].desktop
13039
+ tokens21__default.font.style.xs["font-size"].mobile,
13040
+ tokens21__default.font.style.xs["font-size"].desktop
12985
13041
  ],
12986
- fontFamily: tokens22__default.font.style.xs["font-family"],
12987
- lineHeight: tokens22__default.font.style.xs["line-height"]
13042
+ fontFamily: tokens21__default.font.style.xs["font-family"],
13043
+ lineHeight: tokens21__default.font.style.xs["line-height"]
12988
13044
  }
12989
13045
  },
12990
13046
  "2xs": {
12991
13047
  value: {
12992
13048
  fontSize: [
12993
- tokens22__default.font.style["2xs"]["font-size"].mobile,
12994
- tokens22__default.font.style["2xs"]["font-size"].desktop
13049
+ tokens21__default.font.style["2xs"]["font-size"].mobile,
13050
+ tokens21__default.font.style["2xs"]["font-size"].desktop
12995
13051
  ],
12996
- fontFamily: tokens22__default.font.style["2xs"]["font-family"],
12997
- lineHeight: tokens22__default.font.style["2xs"]["line-height"]
13052
+ fontFamily: tokens21__default.font.style["2xs"]["font-family"],
13053
+ lineHeight: tokens21__default.font.style["2xs"]["line-height"]
12998
13054
  }
12999
13055
  }
13000
13056
  });
@@ -13005,7 +13061,7 @@ var generateTheme = (brand) => {
13005
13061
  theme: {
13006
13062
  breakpoints,
13007
13063
  keyframes,
13008
- tokens: tokens20,
13064
+ tokens: tokens19,
13009
13065
  semanticTokens: semanticTokens[brand],
13010
13066
  recipes,
13011
13067
  slotRecipes,