@vygruppen/spor-react 13.2.0 → 13.2.1

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
@@ -208,8 +208,8 @@ function useTranslation() {
208
208
  };
209
209
  return { t, language };
210
210
  }
211
- function createTexts(texts27) {
212
- return texts27;
211
+ function createTexts(texts28) {
212
+ return texts28;
213
213
  }
214
214
  function Lottie({ animationData }) {
215
215
  const { View } = useLottie({ animationData });
@@ -732,25 +732,41 @@ var badgeRecipie = defineRecipe({
732
732
  "& svg": {
733
733
  color: "icon.critical"
734
734
  }
735
+ },
736
+ brightRed: {
737
+ backgroundColor: {
738
+ _light: "brightRed",
739
+ _dark: "brightRed"
740
+ },
741
+ color: {
742
+ _light: "pink",
743
+ _dark: "pink"
744
+ },
745
+ "& svg": {
746
+ color: {
747
+ _light: "pink",
748
+ _dark: "pink"
749
+ }
750
+ }
735
751
  }
736
752
  },
737
753
  size: {
738
754
  sm: {
739
- fontSize: "desktop.xs",
755
+ fontSize: "desktop.2xs",
740
756
  paddingX: "0.5",
741
757
  paddingY: "0",
742
758
  fontWeight: "normal",
743
759
  borderRadius: "xxs"
744
760
  },
745
761
  md: {
746
- fontSize: "desktop.xs",
762
+ fontSize: "desktop.2xs",
747
763
  paddingX: "1",
748
764
  paddingY: "0.5",
749
765
  fontWeight: "bold",
750
766
  borderRadius: "xs"
751
767
  },
752
768
  lg: {
753
- fontSize: "desktop.sm",
769
+ fontSize: "desktop.xs",
754
770
  paddingX: "1.5",
755
771
  paddingY: "0.5",
756
772
  fontWeight: "bold",
@@ -1224,15 +1240,27 @@ var Alert = ({
1224
1240
  children
1225
1241
  } = props;
1226
1242
  const { open, onClose } = useDisclosure({ defaultOpen: true });
1243
+ const { t } = useTranslation();
1227
1244
  const handleAlertClose = () => {
1228
1245
  onClose();
1229
1246
  onAlertClose == null ? void 0 : onAlertClose();
1230
1247
  };
1231
1248
  const recipe = useSlotRecipe({ key: "alert" });
1232
1249
  const styles = recipe({ variant: props.variant });
1250
+ const getAriaLabelText = () => {
1251
+ const variant = props.variant;
1252
+ if (variant === "important" || variant === "alt")
1253
+ return texts5.ariaLabelAlertWarning;
1254
+ if (variant === "error" || variant === "error-secondary")
1255
+ return texts5.ariaLabelAlertError;
1256
+ if (variant === "success")
1257
+ return texts5.ariaLabelAlertSuccess;
1258
+ return texts5.ariaLabelAlertInformative;
1259
+ };
1260
+ const ariaLabel = t(getAriaLabelText());
1233
1261
  if (!open)
1234
1262
  return null;
1235
- return /* @__PURE__ */ jsxs(Alert$1.Root, { ref, ...props, children: [
1263
+ return /* @__PURE__ */ jsxs(Alert$1.Root, { ref, role: "alert", "aria-label": ariaLabel, ...props, children: [
1236
1264
  /* @__PURE__ */ jsxs(
1237
1265
  Alert$1.Content,
1238
1266
  {
@@ -1277,6 +1305,32 @@ var Alert = ({
1277
1305
  )
1278
1306
  ] });
1279
1307
  };
1308
+ var texts5 = createTexts({
1309
+ ariaLabelAlertInformative: {
1310
+ en: "Announcement",
1311
+ nb: "Kunngj\xF8ring",
1312
+ nn: "Kunngjering",
1313
+ sv: "Meddelande"
1314
+ },
1315
+ ariaLabelAlertWarning: {
1316
+ en: "Warning",
1317
+ nb: "Advarsel",
1318
+ nn: "Varsel",
1319
+ sv: "Varning"
1320
+ },
1321
+ ariaLabelAlertError: {
1322
+ en: "Error",
1323
+ nb: "Feil",
1324
+ nn: "Feil",
1325
+ sv: "Fel"
1326
+ },
1327
+ ariaLabelAlertSuccess: {
1328
+ en: "Success",
1329
+ nb: "Suksess",
1330
+ nn: "Suksess",
1331
+ sv: "Framg\xE5ng"
1332
+ }
1333
+ });
1280
1334
  var ExpandableAlert = ({
1281
1335
  ref,
1282
1336
  ...props
@@ -1377,7 +1431,7 @@ var ServiceAlert = ({
1377
1431
  maxWidth: contentWidth,
1378
1432
  children: [
1379
1433
  /* @__PURE__ */ jsxs(HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
1380
- variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(texts5.service) }) : /* @__PURE__ */ jsx(WarningFill24Icon, { "aria-label": t(texts5["global-deviation"]) }),
1434
+ variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(texts6.service) }) : /* @__PURE__ */ jsx(WarningFill24Icon, { "aria-label": t(texts6["global-deviation"]) }),
1381
1435
  /* @__PURE__ */ jsx(
1382
1436
  Span,
1383
1437
  {
@@ -1394,7 +1448,7 @@ var ServiceAlert = ({
1394
1448
  )
1395
1449
  ] }),
1396
1450
  /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
1397
- notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(texts5.notification(notification)) }),
1451
+ notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
1398
1452
  /* @__PURE__ */ jsx(Accordion$1.ItemIndicator, { children: /* @__PURE__ */ jsx(DropdownDownFill24Icon, { color: "icon.brand" }) })
1399
1453
  ] })
1400
1454
  ]
@@ -1405,7 +1459,7 @@ var ServiceAlert = ({
1405
1459
  }
1406
1460
  );
1407
1461
  };
1408
- var texts5 = createTexts({
1462
+ var texts6 = createTexts({
1409
1463
  notification: (notification) => {
1410
1464
  const numberNotification = Number(notification);
1411
1465
  return {
@@ -1865,7 +1919,7 @@ function CalendarHeader({ dualView }) {
1865
1919
  variant: "ghost",
1866
1920
  marginLeft: 1,
1867
1921
  disabled: prevButtonProps.isDisabled,
1868
- "aria-label": t(texts6.previousMonth),
1922
+ "aria-label": t(texts7.previousMonth),
1869
1923
  icon: /* @__PURE__ */ jsx(icons_exports.DropdownLeftFill24Icon, {})
1870
1924
  }
1871
1925
  ),
@@ -1907,7 +1961,7 @@ function CalendarHeader({ dualView }) {
1907
1961
  marginRight: 1,
1908
1962
  variant: "ghost",
1909
1963
  disabled: nextButtonProps.isDisabled,
1910
- "aria-label": t(texts6.nextMonth),
1964
+ "aria-label": t(texts7.nextMonth),
1911
1965
  icon: /* @__PURE__ */ jsx(icons_exports.DropdownRightFill24Icon, {})
1912
1966
  }
1913
1967
  )
@@ -1915,7 +1969,7 @@ function CalendarHeader({ dualView }) {
1915
1969
  }
1916
1970
  );
1917
1971
  }
1918
- var texts6 = createTexts({
1972
+ var texts7 = createTexts({
1919
1973
  previousMonth: {
1920
1974
  nb: "Forrige m\xE5ned",
1921
1975
  nn: "F\xF8rre m\xE5nad",
@@ -2143,11 +2197,12 @@ var Field3 = ({
2143
2197
  id,
2144
2198
  shouldFloat,
2145
2199
  labelAsChild,
2200
+ gap,
2146
2201
  ...rest
2147
2202
  } = props;
2148
2203
  const recipe = useSlotRecipe({ key: "field" });
2149
2204
  const styles = recipe();
2150
- return /* @__PURE__ */ jsxs(Stack, { gap: "2", ref, width: "100%", ...rest, children: [
2205
+ return /* @__PURE__ */ jsxs(Stack, { ref, width: "100%", ...rest, children: [
2151
2206
  /* @__PURE__ */ jsxs(
2152
2207
  Field.Root,
2153
2208
  {
@@ -2158,6 +2213,7 @@ var Field3 = ({
2158
2213
  css: styles.root,
2159
2214
  direction,
2160
2215
  id,
2216
+ gap,
2161
2217
  children: [
2162
2218
  label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, "aria-hidden": true, children: renderLabelWithIndicator(label, labelAsChild) }),
2163
2219
  children,
@@ -2400,7 +2456,7 @@ var CalendarNavigator = ({
2400
2456
  onPress: onPrevious,
2401
2457
  isDisabled: isPreviousDisabled,
2402
2458
  icon: /* @__PURE__ */ jsx(ArrowLeftOutline24Icon, {}),
2403
- "aria-label": `${t(texts7.previous)} ${t(texts7[unit])}`
2459
+ "aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
2404
2460
  }
2405
2461
  ),
2406
2462
  /* @__PURE__ */ jsx(
@@ -2421,12 +2477,12 @@ var CalendarNavigator = ({
2421
2477
  onPress: onNext,
2422
2478
  isDisabled: isNextDisabled,
2423
2479
  icon: /* @__PURE__ */ jsx(ArrowRightOutline24Icon, {}),
2424
- "aria-label": `${t(texts7.next)} ${t(texts7[unit])}`
2480
+ "aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
2425
2481
  }
2426
2482
  )
2427
2483
  ] });
2428
2484
  };
2429
- var texts7 = createTexts({
2485
+ var texts8 = createTexts({
2430
2486
  previous: {
2431
2487
  nb: "Forrige",
2432
2488
  nn: "Forrige",
@@ -2471,7 +2527,7 @@ function Calendar2({
2471
2527
  const styles = recipe({ variant });
2472
2528
  const { calendarProps } = useCalendar$1(props, state);
2473
2529
  const calendarAriaLabel = calendarProps["aria-label"];
2474
- const ariaLabel = t(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2530
+ const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2475
2531
  return /* @__PURE__ */ jsxs(
2476
2532
  Box,
2477
2533
  {
@@ -2485,7 +2541,7 @@ function Calendar2({
2485
2541
  }
2486
2542
  );
2487
2543
  }
2488
- var texts8 = createTexts({
2544
+ var texts9 = createTexts({
2489
2545
  calendar: {
2490
2546
  nb: "Kalender",
2491
2547
  nn: "Kalender",
@@ -2511,14 +2567,14 @@ var CalendarTriggerButton = ({
2511
2567
  IconButton,
2512
2568
  {
2513
2569
  icon: /* @__PURE__ */ jsx(CalendarOutline24Icon, {}),
2514
- "aria-label": t(texts9.openCalendar),
2570
+ "aria-label": t(texts10.openCalendar),
2515
2571
  css: styles.calendarTriggerButton,
2516
2572
  variant: "ghost",
2517
2573
  disabled
2518
2574
  }
2519
2575
  ) });
2520
2576
  };
2521
- var texts9 = createTexts({
2577
+ var texts10 = createTexts({
2522
2578
  openCalendar: {
2523
2579
  nb: "\xC5pne kalender",
2524
2580
  nn: "\xC5pne kalendar",
@@ -2627,7 +2683,7 @@ var DateField = ({
2627
2683
  )
2628
2684
  ] });
2629
2685
  };
2630
- var texts10 = createTexts({
2686
+ var texts11 = createTexts({
2631
2687
  day: {
2632
2688
  nb: "Velg dag",
2633
2689
  nn: "Vel dag",
@@ -2650,16 +2706,16 @@ var texts10 = createTexts({
2650
2706
  var getAriaLabel = (segmentType) => {
2651
2707
  switch (segmentType) {
2652
2708
  case "day": {
2653
- return texts10.day;
2709
+ return texts11.day;
2654
2710
  }
2655
2711
  case "month": {
2656
- return texts10.month;
2712
+ return texts11.month;
2657
2713
  }
2658
2714
  case "year": {
2659
- return texts10.year;
2715
+ return texts11.year;
2660
2716
  }
2661
2717
  default: {
2662
- return texts10.day;
2718
+ return texts11.day;
2663
2719
  }
2664
2720
  }
2665
2721
  };
@@ -2994,7 +3050,7 @@ var TimePicker = ({
2994
3050
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
2995
3051
  const { t } = useTranslation();
2996
3052
  const locale = useCurrentLocale();
2997
- const label = externalLabel ?? t(texts11.time);
3053
+ const label = externalLabel ?? t(texts12.time);
2998
3054
  const state = useTimeFieldState({
2999
3055
  value,
3000
3056
  defaultValue,
@@ -3027,15 +3083,15 @@ var TimePicker = ({
3027
3083
  })
3028
3084
  );
3029
3085
  };
3030
- const backwardsLabel = `${t(texts11.backwards)} ${minuteInterval} ${t(
3031
- texts11.minutes
3086
+ const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
3087
+ texts12.minutes
3032
3088
  )}`;
3033
- const forwardsLabel = `${t(texts11.forwards)} ${minuteInterval} ${t(
3034
- texts11.minutes
3089
+ const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
3090
+ texts12.minutes
3035
3091
  )}`;
3036
- const inputLabel = label ?? t(texts11.time);
3092
+ const inputLabel = label ?? t(texts12.time);
3037
3093
  const ariaLabel = `${inputLabel} \u2013 ${t(
3038
- texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3094
+ texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3039
3095
  )}`;
3040
3096
  return /* @__PURE__ */ jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxs(
3041
3097
  StyledField,
@@ -3088,7 +3144,7 @@ var TimePicker = ({
3088
3144
  }
3089
3145
  ) });
3090
3146
  };
3091
- var texts11 = createTexts({
3147
+ var texts12 = createTexts({
3092
3148
  selectedTimeIs: (time) => ({
3093
3149
  nb: `Valgt tidspunkt er ${time}`,
3094
3150
  nn: `Valt tidspunkt er ${time}`,
@@ -3229,7 +3285,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3229
3285
  {
3230
3286
  variant: "ghost",
3231
3287
  icon: /* @__PURE__ */ jsx(CloseFill24Icon, {}),
3232
- label: t(texts12.close)
3288
+ label: t(texts13.close)
3233
3289
  }
3234
3290
  ) : /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
3235
3291
  };
@@ -3243,7 +3299,7 @@ var DrawerBackTrigger = ({
3243
3299
  {
3244
3300
  variant: "ghost",
3245
3301
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
3246
- label: t(texts12.back)
3302
+ label: t(texts13.back)
3247
3303
  }
3248
3304
  ) });
3249
3305
  };
@@ -3275,7 +3331,7 @@ var DrawerBackdrop = Drawer$1.Backdrop;
3275
3331
  var DrawerTitle = Drawer$1.Title;
3276
3332
  var DrawerActionTrigger = Drawer$1.ActionTrigger;
3277
3333
  var DrawerHeader = Drawer$1.Header;
3278
- var texts12 = createTexts({
3334
+ var texts13 = createTexts({
3279
3335
  back: {
3280
3336
  en: "Back",
3281
3337
  nb: "Tilbake",
@@ -3591,10 +3647,10 @@ function Autocomplete({
3591
3647
  }
3592
3648
  }
3593
3649
  ) }),
3594
- /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts13.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3650
+ /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3595
3651
  ] }),
3596
3652
  /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
3597
- !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts13.noItemsFound) }),
3653
+ !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
3598
3654
  loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3599
3655
  ] }) })
3600
3656
  ] });
@@ -3653,7 +3709,7 @@ var extractItemsFromChildren = (children) => {
3653
3709
  });
3654
3710
  return items;
3655
3711
  };
3656
- var texts13 = createTexts({
3712
+ var texts14 = createTexts({
3657
3713
  noItemsFound: {
3658
3714
  nb: "Ingen resultater",
3659
3715
  nn: "Ingen resultat",
@@ -4433,6 +4489,7 @@ var NumericStepper = ({
4433
4489
  label,
4434
4490
  helperText,
4435
4491
  errorText,
4492
+ gap,
4436
4493
  ...rest
4437
4494
  } = props;
4438
4495
  const addButtonRef = useRef(null);
@@ -4461,13 +4518,14 @@ var NumericStepper = ({
4461
4518
  invalid,
4462
4519
  readOnly,
4463
4520
  required,
4521
+ gap,
4464
4522
  children: [
4465
4523
  /* @__PURE__ */ jsx(
4466
4524
  VerySmallButton,
4467
4525
  {
4468
4526
  icon: /* @__PURE__ */ jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4469
4527
  "aria-label": t(
4470
- texts14.decrementButtonAriaLabel(
4528
+ texts15.decrementButtonAriaLabel(
4471
4529
  clampedStepSize,
4472
4530
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4473
4531
  )
@@ -4494,7 +4552,7 @@ var NumericStepper = ({
4494
4552
  css: styles.input,
4495
4553
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4496
4554
  "aria-live": "assertive",
4497
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4555
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4498
4556
  onChange: (event) => {
4499
4557
  const numericInput = Number(event.target.value);
4500
4558
  if (Number.isNaN(numericInput)) {
@@ -4511,8 +4569,11 @@ var NumericStepper = ({
4511
4569
  Text3,
4512
4570
  {
4513
4571
  "aria-live": "assertive",
4514
- paddingX: "0.95rem",
4515
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4572
+ width: `${Math.max(value.toString().length + 1, 3)}ch`,
4573
+ paddingX: 0.5,
4574
+ padding: 0,
4575
+ textAlign: "center",
4576
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4516
4577
  children: value
4517
4578
  }
4518
4579
  ),
@@ -4522,7 +4583,7 @@ var NumericStepper = ({
4522
4583
  ref: addButtonRef,
4523
4584
  icon: /* @__PURE__ */ jsx(AddIcon, { stepLabel: clampedStepSize }),
4524
4585
  "aria-label": t(
4525
- texts14.incrementButtonAriaLabel(
4586
+ texts15.incrementButtonAriaLabel(
4526
4587
  clampedStepSize,
4527
4588
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4528
4589
  )
@@ -4596,7 +4657,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4596
4657
  ] }),
4597
4658
  stepLabel > 1 && /* @__PURE__ */ jsx(chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4598
4659
  ] });
4599
- var texts14 = createTexts({
4660
+ var texts15 = createTexts({
4600
4661
  currentNumberAriaLabel(ariaContext) {
4601
4662
  return {
4602
4663
  nb: `Valgt antall ${ariaContext}`,
@@ -4660,7 +4721,7 @@ var PasswordInput = ({
4660
4721
  event.preventDefault();
4661
4722
  setVisible(!visible);
4662
4723
  },
4663
- children: visible ? t(texts15.hidePassword) : t(texts15.showPassword)
4724
+ children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
4664
4725
  }
4665
4726
  ),
4666
4727
  ...rest
@@ -4685,7 +4746,7 @@ var VisibilityTrigger = ({
4685
4746
  }
4686
4747
  );
4687
4748
  };
4688
- var texts15 = createTexts({
4749
+ var texts16 = createTexts({
4689
4750
  showPassword: {
4690
4751
  nb: "Vis",
4691
4752
  nn: "Vis",
@@ -4737,14 +4798,14 @@ var CountryCodeSelect = ({
4737
4798
  positioning: { placement: "bottom", flip: false },
4738
4799
  collection: filteredCallingCodes,
4739
4800
  lazyMount: true,
4740
- "aria-label": t(texts16.countryCode),
4801
+ "aria-label": t(texts17.countryCode),
4741
4802
  sideRadiusVariant: "rightSideSquare",
4742
4803
  role: "combobox",
4743
4804
  children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsx(SelectItem, { item: code, children: code.label }, code.label))
4744
4805
  }
4745
4806
  );
4746
4807
  };
4747
- var texts16 = createTexts({
4808
+ var texts17 = createTexts({
4748
4809
  countryCode: {
4749
4810
  nb: "Landkode",
4750
4811
  nn: "Landskode",
@@ -4767,7 +4828,7 @@ var PhoneNumberInput = ({
4767
4828
  errorText
4768
4829
  } = props;
4769
4830
  const { t } = useTranslation();
4770
- const label = externalLabel ?? (optional ? t(texts17.phoneNumberOptional) : t(texts17.phoneNumber));
4831
+ const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
4771
4832
  const [value, onChange] = useControllableState({
4772
4833
  value: externalValue,
4773
4834
  onChange: externalOnChange,
@@ -4822,7 +4883,7 @@ var PhoneNumberInput = ({
4822
4883
  )
4823
4884
  ] });
4824
4885
  };
4825
- var texts17 = createTexts({
4886
+ var texts18 = createTexts({
4826
4887
  phoneNumber: {
4827
4888
  nb: "Telefonnummer",
4828
4889
  nn: "Telefonnummer",
@@ -4874,16 +4935,16 @@ var SearchInput = ({
4874
4935
  variant: "ghost",
4875
4936
  type: "button",
4876
4937
  size: "sm",
4877
- "aria-label": t(texts18.reset),
4938
+ "aria-label": t(texts19.reset),
4878
4939
  icon: /* @__PURE__ */ jsx(CloseOutline24Icon, {}),
4879
4940
  onClick: onReset
4880
4941
  }
4881
4942
  ),
4882
- label: label ?? t(texts18.label)
4943
+ label: label ?? t(texts19.label)
4883
4944
  }
4884
4945
  );
4885
4946
  };
4886
- var texts18 = createTexts({
4947
+ var texts19 = createTexts({
4887
4948
  label: {
4888
4949
  nb: "S\xF8k",
4889
4950
  nn: "S\xF8k",
@@ -5435,7 +5496,7 @@ var TextLink = ({
5435
5496
  }) => {
5436
5497
  const { t } = useTranslation();
5437
5498
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
5438
- const externalLabel = t ? t(texts19.externalLink) : texts19.externalLink.en;
5499
+ const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
5439
5500
  if (props.asChild && isValidElement(children)) {
5440
5501
  return /* @__PURE__ */ jsx(
5441
5502
  Link,
@@ -5474,7 +5535,7 @@ var TextLink = ({
5474
5535
  }
5475
5536
  );
5476
5537
  };
5477
- var texts19 = createTexts({
5538
+ var texts20 = createTexts({
5478
5539
  externalLink: {
5479
5540
  nb: "Ekstern lenke",
5480
5541
  nn: "Ekstern lenke",
@@ -6011,14 +6072,14 @@ var JumpButton = ({
6011
6072
  as: "button",
6012
6073
  ref,
6013
6074
  css: styles.root,
6014
- "aria-label": direction === "forward" ? t(texts20.forward) : t(texts20.backward),
6075
+ "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
6015
6076
  disabled,
6016
6077
  ...props,
6017
6078
  children: direction === "forward" ? /* @__PURE__ */ jsx(Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(Backward15MediaControllerFill30Icon, { css: styles.icon })
6018
6079
  }
6019
6080
  );
6020
6081
  };
6021
- var texts20 = createTexts({
6082
+ var texts21 = createTexts({
6022
6083
  forward: {
6023
6084
  nb: "15 sekunder frem",
6024
6085
  nn: "15 sekunder fram",
@@ -6046,14 +6107,14 @@ var PlayPauseButton = ({
6046
6107
  ref,
6047
6108
  as: "button",
6048
6109
  css: styles.root,
6049
- "aria-label": playing ? t(texts21.pause) : t(texts21.play),
6110
+ "aria-label": playing ? t(texts22.pause) : t(texts22.play),
6050
6111
  disabled,
6051
6112
  ...props,
6052
6113
  children: playing ? /* @__PURE__ */ jsx(PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PlayMediaControllerFill24Icon, { css: styles.icon })
6053
6114
  }
6054
6115
  );
6055
6116
  };
6056
- var texts21 = createTexts({
6117
+ var texts22 = createTexts({
6057
6118
  pause: {
6058
6119
  nb: "Pause",
6059
6120
  nn: "Pause",
@@ -6081,14 +6142,14 @@ var SkipButton = ({
6081
6142
  ref,
6082
6143
  as: "button",
6083
6144
  css: styles.root,
6084
- "aria-label": direction === "forward" ? t(texts22.next) : t(texts22.previous),
6145
+ "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
6085
6146
  disabled,
6086
6147
  ...props,
6087
6148
  children: direction === "forward" ? /* @__PURE__ */ jsx(NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PreviousMediaControllerFill30Icon, { css: styles.icon })
6088
6149
  }
6089
6150
  );
6090
6151
  };
6091
- var texts22 = createTexts({
6152
+ var texts23 = createTexts({
6092
6153
  next: {
6093
6154
  nb: "Neste",
6094
6155
  nn: "Neste",
@@ -6203,7 +6264,7 @@ var NudgeActions = ({ ...props }) => {
6203
6264
  var NextButton = ({ isLastStep, onNext }) => {
6204
6265
  const { t } = useTranslation();
6205
6266
  if (isLastStep)
6206
- return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts23.close) }) });
6267
+ return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6207
6268
  return /* @__PURE__ */ jsx(
6208
6269
  Button,
6209
6270
  {
@@ -6211,11 +6272,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6211
6272
  size: "xs",
6212
6273
  rightIcon: /* @__PURE__ */ jsx(ArrowRightFill18Icon, {}),
6213
6274
  onClick: onNext,
6214
- children: t(texts23.nextStep)
6275
+ children: t(texts24.nextStep)
6215
6276
  }
6216
6277
  );
6217
6278
  };
6218
- var texts23 = createTexts({
6279
+ var texts24 = createTexts({
6219
6280
  nextStep: {
6220
6281
  nb: "Neste",
6221
6282
  nn: "Neste",
@@ -6291,7 +6352,7 @@ var PaginationItem = ({
6291
6352
  to: rootProps.getHref(props.value)
6292
6353
  },
6293
6354
  ref,
6294
- "aria-label": t(texts24.pageOf(props.value, totalPages)),
6355
+ "aria-label": t(texts25.pageOf(props.value, totalPages)),
6295
6356
  ...props,
6296
6357
  children: props.value
6297
6358
  }
@@ -6302,7 +6363,7 @@ var PaginationItem = ({
6302
6363
  {
6303
6364
  as: props.as ?? "button",
6304
6365
  ref,
6305
- "aria-label": t(texts24.pageOf(props.value, totalPages)),
6366
+ "aria-label": t(texts25.pageOf(props.value, totalPages)),
6306
6367
  "aria-current": page === props.value,
6307
6368
  ...props,
6308
6369
  children: props.value
@@ -6332,7 +6393,7 @@ var PaginationPrevTrigger = ({
6332
6393
  },
6333
6394
  ref,
6334
6395
  css: styles.item,
6335
- "aria-label": t(texts24.previousPage),
6396
+ "aria-label": t(texts25.previousPage),
6336
6397
  ...props,
6337
6398
  children: /* @__PURE__ */ jsx(DropdownLeftOutline18Icon, {})
6338
6399
  }
@@ -6343,7 +6404,7 @@ var PaginationPrevTrigger = ({
6343
6404
  {
6344
6405
  ref,
6345
6406
  asChild: true,
6346
- "aria-label": t(texts24.previousPage),
6407
+ "aria-label": t(texts25.previousPage),
6347
6408
  as: props.as || "button",
6348
6409
  css: styles.item,
6349
6410
  ...props,
@@ -6372,7 +6433,7 @@ var PaginationNextTrigger = ({
6372
6433
  to: rootProps.getHref(props.value)
6373
6434
  },
6374
6435
  css: styles.item,
6375
- "aria-label": t(texts24.nextPage),
6436
+ "aria-label": t(texts25.nextPage),
6376
6437
  ...props,
6377
6438
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
6378
6439
  }
@@ -6383,7 +6444,7 @@ var PaginationNextTrigger = ({
6383
6444
  {
6384
6445
  ref,
6385
6446
  css: styles.item,
6386
- "aria-label": t(texts24.nextPage),
6447
+ "aria-label": t(texts25.nextPage),
6387
6448
  as: props.as || "button",
6388
6449
  ...props,
6389
6450
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
@@ -6410,7 +6471,7 @@ var PaginationItems = (props) => {
6410
6471
  );
6411
6472
  }) });
6412
6473
  };
6413
- var texts24 = createTexts({
6474
+ var texts25 = createTexts({
6414
6475
  previousPage: {
6415
6476
  nb: "Forrige side",
6416
6477
  nn: "F\xF8rre side",
@@ -6510,7 +6571,7 @@ var ProgressIndicator = ({
6510
6571
  "aria-valuemin": 1,
6511
6572
  "aria-valuemax": numberOfSteps,
6512
6573
  "aria-valuenow": activeStep,
6513
- "aria-valuetext": t(texts25.stepsOf(activeStep, numberOfSteps)),
6574
+ "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6514
6575
  ref,
6515
6576
  children: /* @__PURE__ */ jsx(Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsx(
6516
6577
  Box,
@@ -6529,7 +6590,7 @@ var ProgressIndicator = ({
6529
6590
  }
6530
6591
  );
6531
6592
  };
6532
- var texts25 = createTexts({
6593
+ var texts26 = createTexts({
6533
6594
  stepsOf: (activeStep, numberOfSteps) => ({
6534
6595
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6535
6596
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6725,7 +6786,7 @@ var Stepper = function Stepper2({
6725
6786
  /* @__PURE__ */ jsx(
6726
6787
  IconButton,
6727
6788
  {
6728
- "aria-label": t(texts26.back),
6789
+ "aria-label": t(texts27.back),
6729
6790
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
6730
6791
  variant: "ghost",
6731
6792
  size: "sm",
@@ -6749,7 +6810,7 @@ var Stepper = function Stepper2({
6749
6810
  children: heading
6750
6811
  }
6751
6812
  ),
6752
- /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts26.stepsOf(activeStep, numberOfSteps)) })
6813
+ /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6753
6814
  ]
6754
6815
  }
6755
6816
  ) }),
@@ -6768,7 +6829,7 @@ var Stepper = function Stepper2({
6768
6829
  }
6769
6830
  ) });
6770
6831
  };
6771
- var texts26 = createTexts({
6832
+ var texts27 = createTexts({
6772
6833
  stepsOf: (activeStep, numberOfSteps) => ({
6773
6834
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6774
6835
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7466,12 +7527,12 @@ var pressableCardRecipe = defineRecipe({
7466
7527
  accent: {
7467
7528
  boxShadow: "0px 1px 3px 0px var(--shadow-color)",
7468
7529
  shadowColor: "surface.disabled",
7469
- background: "surface.success",
7530
+ background: "surface.accent",
7470
7531
  _hover: {
7471
- background: "surface.success.hover",
7532
+ background: "surface.accent.hover",
7472
7533
  boxShadow: "0px 2px 6px 0px var(--shadow-color)",
7473
7534
  _active: {
7474
- background: "surface.success.active",
7535
+ background: "surface.accent.active",
7475
7536
  boxShadow: "none"
7476
7537
  }
7477
7538
  }
@@ -10786,17 +10847,18 @@ var numericStepperRecipe = defineSlotRecipe({
10786
10847
  "& > div": {
10787
10848
  display: "flex",
10788
10849
  flexDirection: "row",
10789
- alignItems: "center"
10850
+ alignItems: "center",
10851
+ gap: 1
10790
10852
  }
10791
10853
  },
10792
10854
  input: {
10793
10855
  fontSize: "sm",
10794
10856
  fontWeight: "bold",
10795
- marginX: 0.5,
10796
10857
  padding: 0,
10797
10858
  paddingX: 0.5,
10798
10859
  borderRadius: "xs",
10799
- outline: "none",
10860
+ outline: "1px solid",
10861
+ outlineColor: "outline.core",
10800
10862
  height: "auto",
10801
10863
  textAlign: "center",
10802
10864
  transitionProperty: "common",