@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.cjs CHANGED
@@ -227,8 +227,8 @@ function useTranslation() {
227
227
  };
228
228
  return { t, language };
229
229
  }
230
- function createTexts(texts27) {
231
- return texts27;
230
+ function createTexts(texts28) {
231
+ return texts28;
232
232
  }
233
233
  function Lottie({ animationData }) {
234
234
  const { View } = lottieReact.useLottie({ animationData });
@@ -751,25 +751,41 @@ var badgeRecipie = react.defineRecipe({
751
751
  "& svg": {
752
752
  color: "icon.critical"
753
753
  }
754
+ },
755
+ brightRed: {
756
+ backgroundColor: {
757
+ _light: "brightRed",
758
+ _dark: "brightRed"
759
+ },
760
+ color: {
761
+ _light: "pink",
762
+ _dark: "pink"
763
+ },
764
+ "& svg": {
765
+ color: {
766
+ _light: "pink",
767
+ _dark: "pink"
768
+ }
769
+ }
754
770
  }
755
771
  },
756
772
  size: {
757
773
  sm: {
758
- fontSize: "desktop.xs",
774
+ fontSize: "desktop.2xs",
759
775
  paddingX: "0.5",
760
776
  paddingY: "0",
761
777
  fontWeight: "normal",
762
778
  borderRadius: "xxs"
763
779
  },
764
780
  md: {
765
- fontSize: "desktop.xs",
781
+ fontSize: "desktop.2xs",
766
782
  paddingX: "1",
767
783
  paddingY: "0.5",
768
784
  fontWeight: "bold",
769
785
  borderRadius: "xs"
770
786
  },
771
787
  lg: {
772
- fontSize: "desktop.sm",
788
+ fontSize: "desktop.xs",
773
789
  paddingX: "1.5",
774
790
  paddingY: "0.5",
775
791
  fontWeight: "bold",
@@ -1243,15 +1259,27 @@ var Alert = ({
1243
1259
  children
1244
1260
  } = props;
1245
1261
  const { open, onClose } = react.useDisclosure({ defaultOpen: true });
1262
+ const { t } = useTranslation();
1246
1263
  const handleAlertClose = () => {
1247
1264
  onClose();
1248
1265
  onAlertClose == null ? void 0 : onAlertClose();
1249
1266
  };
1250
1267
  const recipe = react.useSlotRecipe({ key: "alert" });
1251
1268
  const styles = recipe({ variant: props.variant });
1269
+ const getAriaLabelText = () => {
1270
+ const variant = props.variant;
1271
+ if (variant === "important" || variant === "alt")
1272
+ return texts5.ariaLabelAlertWarning;
1273
+ if (variant === "error" || variant === "error-secondary")
1274
+ return texts5.ariaLabelAlertError;
1275
+ if (variant === "success")
1276
+ return texts5.ariaLabelAlertSuccess;
1277
+ return texts5.ariaLabelAlertInformative;
1278
+ };
1279
+ const ariaLabel = t(getAriaLabelText());
1252
1280
  if (!open)
1253
1281
  return null;
1254
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Alert.Root, { ref, ...props, children: [
1282
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Alert.Root, { ref, role: "alert", "aria-label": ariaLabel, ...props, children: [
1255
1283
  /* @__PURE__ */ jsxRuntime.jsxs(
1256
1284
  react.Alert.Content,
1257
1285
  {
@@ -1296,6 +1324,32 @@ var Alert = ({
1296
1324
  )
1297
1325
  ] });
1298
1326
  };
1327
+ var texts5 = createTexts({
1328
+ ariaLabelAlertInformative: {
1329
+ en: "Announcement",
1330
+ nb: "Kunngj\xF8ring",
1331
+ nn: "Kunngjering",
1332
+ sv: "Meddelande"
1333
+ },
1334
+ ariaLabelAlertWarning: {
1335
+ en: "Warning",
1336
+ nb: "Advarsel",
1337
+ nn: "Varsel",
1338
+ sv: "Varning"
1339
+ },
1340
+ ariaLabelAlertError: {
1341
+ en: "Error",
1342
+ nb: "Feil",
1343
+ nn: "Feil",
1344
+ sv: "Fel"
1345
+ },
1346
+ ariaLabelAlertSuccess: {
1347
+ en: "Success",
1348
+ nb: "Suksess",
1349
+ nn: "Suksess",
1350
+ sv: "Framg\xE5ng"
1351
+ }
1352
+ });
1299
1353
  var ExpandableAlert = ({
1300
1354
  ref,
1301
1355
  ...props
@@ -1396,7 +1450,7 @@ var ServiceAlert = ({
1396
1450
  maxWidth: contentWidth,
1397
1451
  children: [
1398
1452
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
1399
- variant === "service" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, { "aria-label": t(texts5.service) }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.WarningFill24Icon, { "aria-label": t(texts5["global-deviation"]) }),
1453
+ variant === "service" ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ServiceFill24Icon, { "aria-label": t(texts6.service) }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.WarningFill24Icon, { "aria-label": t(texts6["global-deviation"]) }),
1400
1454
  /* @__PURE__ */ jsxRuntime.jsx(
1401
1455
  react.Span,
1402
1456
  {
@@ -1413,7 +1467,7 @@ var ServiceAlert = ({
1413
1467
  )
1414
1468
  ] }),
1415
1469
  /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
1416
- notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts5.notification(notification)) }),
1470
+ notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
1417
1471
  /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownDownFill24Icon, { color: "icon.brand" }) })
1418
1472
  ] })
1419
1473
  ]
@@ -1424,7 +1478,7 @@ var ServiceAlert = ({
1424
1478
  }
1425
1479
  );
1426
1480
  };
1427
- var texts5 = createTexts({
1481
+ var texts6 = createTexts({
1428
1482
  notification: (notification) => {
1429
1483
  const numberNotification = Number(notification);
1430
1484
  return {
@@ -1884,7 +1938,7 @@ function CalendarHeader({ dualView }) {
1884
1938
  variant: "ghost",
1885
1939
  marginLeft: 1,
1886
1940
  disabled: prevButtonProps.isDisabled,
1887
- "aria-label": t(texts6.previousMonth),
1941
+ "aria-label": t(texts7.previousMonth),
1888
1942
  icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownLeftFill24Icon, {})
1889
1943
  }
1890
1944
  ),
@@ -1926,7 +1980,7 @@ function CalendarHeader({ dualView }) {
1926
1980
  marginRight: 1,
1927
1981
  variant: "ghost",
1928
1982
  disabled: nextButtonProps.isDisabled,
1929
- "aria-label": t(texts6.nextMonth),
1983
+ "aria-label": t(texts7.nextMonth),
1930
1984
  icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownRightFill24Icon, {})
1931
1985
  }
1932
1986
  )
@@ -1934,7 +1988,7 @@ function CalendarHeader({ dualView }) {
1934
1988
  }
1935
1989
  );
1936
1990
  }
1937
- var texts6 = createTexts({
1991
+ var texts7 = createTexts({
1938
1992
  previousMonth: {
1939
1993
  nb: "Forrige m\xE5ned",
1940
1994
  nn: "F\xF8rre m\xE5nad",
@@ -2162,11 +2216,12 @@ var Field3 = ({
2162
2216
  id,
2163
2217
  shouldFloat,
2164
2218
  labelAsChild,
2219
+ gap,
2165
2220
  ...rest
2166
2221
  } = props;
2167
2222
  const recipe = react.useSlotRecipe({ key: "field" });
2168
2223
  const styles = recipe();
2169
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { gap: "2", ref, width: "100%", ...rest, children: [
2224
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { ref, width: "100%", ...rest, children: [
2170
2225
  /* @__PURE__ */ jsxRuntime.jsxs(
2171
2226
  react.Field.Root,
2172
2227
  {
@@ -2177,6 +2232,7 @@ var Field3 = ({
2177
2232
  css: styles.root,
2178
2233
  direction,
2179
2234
  id,
2235
+ gap,
2180
2236
  children: [
2181
2237
  label && !floatingLabel && /* @__PURE__ */ jsxRuntime.jsx(Label, { asChild: labelAsChild, "aria-hidden": true, children: renderLabelWithIndicator(label, labelAsChild) }),
2182
2238
  children,
@@ -2419,7 +2475,7 @@ var CalendarNavigator = ({
2419
2475
  onPress: onPrevious,
2420
2476
  isDisabled: isPreviousDisabled,
2421
2477
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftOutline24Icon, {}),
2422
- "aria-label": `${t(texts7.previous)} ${t(texts7[unit])}`
2478
+ "aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
2423
2479
  }
2424
2480
  ),
2425
2481
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2440,12 +2496,12 @@ var CalendarNavigator = ({
2440
2496
  onPress: onNext,
2441
2497
  isDisabled: isNextDisabled,
2442
2498
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightOutline24Icon, {}),
2443
- "aria-label": `${t(texts7.next)} ${t(texts7[unit])}`
2499
+ "aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
2444
2500
  }
2445
2501
  )
2446
2502
  ] });
2447
2503
  };
2448
- var texts7 = createTexts({
2504
+ var texts8 = createTexts({
2449
2505
  previous: {
2450
2506
  nb: "Forrige",
2451
2507
  nn: "Forrige",
@@ -2490,7 +2546,7 @@ function Calendar2({
2490
2546
  const styles = recipe({ variant });
2491
2547
  const { calendarProps } = reactAria.useCalendar(props, state);
2492
2548
  const calendarAriaLabel = calendarProps["aria-label"];
2493
- const ariaLabel = t(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2549
+ const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2494
2550
  return /* @__PURE__ */ jsxRuntime.jsxs(
2495
2551
  react.Box,
2496
2552
  {
@@ -2504,7 +2560,7 @@ function Calendar2({
2504
2560
  }
2505
2561
  );
2506
2562
  }
2507
- var texts8 = createTexts({
2563
+ var texts9 = createTexts({
2508
2564
  calendar: {
2509
2565
  nb: "Kalender",
2510
2566
  nn: "Kalender",
@@ -2530,14 +2586,14 @@ var CalendarTriggerButton = ({
2530
2586
  IconButton,
2531
2587
  {
2532
2588
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
2533
- "aria-label": t(texts9.openCalendar),
2589
+ "aria-label": t(texts10.openCalendar),
2534
2590
  css: styles.calendarTriggerButton,
2535
2591
  variant: "ghost",
2536
2592
  disabled
2537
2593
  }
2538
2594
  ) });
2539
2595
  };
2540
- var texts9 = createTexts({
2596
+ var texts10 = createTexts({
2541
2597
  openCalendar: {
2542
2598
  nb: "\xC5pne kalender",
2543
2599
  nn: "\xC5pne kalendar",
@@ -2646,7 +2702,7 @@ var DateField = ({
2646
2702
  )
2647
2703
  ] });
2648
2704
  };
2649
- var texts10 = createTexts({
2705
+ var texts11 = createTexts({
2650
2706
  day: {
2651
2707
  nb: "Velg dag",
2652
2708
  nn: "Vel dag",
@@ -2669,16 +2725,16 @@ var texts10 = createTexts({
2669
2725
  var getAriaLabel = (segmentType) => {
2670
2726
  switch (segmentType) {
2671
2727
  case "day": {
2672
- return texts10.day;
2728
+ return texts11.day;
2673
2729
  }
2674
2730
  case "month": {
2675
- return texts10.month;
2731
+ return texts11.month;
2676
2732
  }
2677
2733
  case "year": {
2678
- return texts10.year;
2734
+ return texts11.year;
2679
2735
  }
2680
2736
  default: {
2681
- return texts10.day;
2737
+ return texts11.day;
2682
2738
  }
2683
2739
  }
2684
2740
  };
@@ -3013,7 +3069,7 @@ var TimePicker = ({
3013
3069
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
3014
3070
  const { t } = useTranslation();
3015
3071
  const locale = useCurrentLocale();
3016
- const label = externalLabel ?? t(texts11.time);
3072
+ const label = externalLabel ?? t(texts12.time);
3017
3073
  const state = reactStately.useTimeFieldState({
3018
3074
  value,
3019
3075
  defaultValue,
@@ -3046,15 +3102,15 @@ var TimePicker = ({
3046
3102
  })
3047
3103
  );
3048
3104
  };
3049
- const backwardsLabel = `${t(texts11.backwards)} ${minuteInterval} ${t(
3050
- texts11.minutes
3105
+ const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
3106
+ texts12.minutes
3051
3107
  )}`;
3052
- const forwardsLabel = `${t(texts11.forwards)} ${minuteInterval} ${t(
3053
- texts11.minutes
3108
+ const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
3109
+ texts12.minutes
3054
3110
  )}`;
3055
- const inputLabel = label ?? t(texts11.time);
3111
+ const inputLabel = label ?? t(texts12.time);
3056
3112
  const ariaLabel = `${inputLabel} \u2013 ${t(
3057
- texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3113
+ texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3058
3114
  )}`;
3059
3115
  return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
3060
3116
  StyledField,
@@ -3107,7 +3163,7 @@ var TimePicker = ({
3107
3163
  }
3108
3164
  ) });
3109
3165
  };
3110
- var texts11 = createTexts({
3166
+ var texts12 = createTexts({
3111
3167
  selectedTimeIs: (time) => ({
3112
3168
  nb: `Valgt tidspunkt er ${time}`,
3113
3169
  nn: `Valt tidspunkt er ${time}`,
@@ -3248,7 +3304,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3248
3304
  {
3249
3305
  variant: "ghost",
3250
3306
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
3251
- label: t(texts12.close)
3307
+ label: t(texts13.close)
3252
3308
  }
3253
3309
  ) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
3254
3310
  };
@@ -3262,7 +3318,7 @@ var DrawerBackTrigger = ({
3262
3318
  {
3263
3319
  variant: "ghost",
3264
3320
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
3265
- label: t(texts12.back)
3321
+ label: t(texts13.back)
3266
3322
  }
3267
3323
  ) });
3268
3324
  };
@@ -3294,7 +3350,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
3294
3350
  var DrawerTitle = react.Drawer.Title;
3295
3351
  var DrawerActionTrigger = react.Drawer.ActionTrigger;
3296
3352
  var DrawerHeader = react.Drawer.Header;
3297
- var texts12 = createTexts({
3353
+ var texts13 = createTexts({
3298
3354
  back: {
3299
3355
  en: "Back",
3300
3356
  nb: "Tilbake",
@@ -3610,10 +3666,10 @@ function Autocomplete({
3610
3666
  }
3611
3667
  }
3612
3668
  ) }),
3613
- /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts13.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3669
+ /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3614
3670
  ] }),
3615
3671
  /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
3616
- !loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts13.noItemsFound) }),
3672
+ !loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
3617
3673
  loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3618
3674
  ] }) })
3619
3675
  ] });
@@ -3672,7 +3728,7 @@ var extractItemsFromChildren = (children) => {
3672
3728
  });
3673
3729
  return items;
3674
3730
  };
3675
- var texts13 = createTexts({
3731
+ var texts14 = createTexts({
3676
3732
  noItemsFound: {
3677
3733
  nb: "Ingen resultater",
3678
3734
  nn: "Ingen resultat",
@@ -4452,6 +4508,7 @@ var NumericStepper = ({
4452
4508
  label,
4453
4509
  helperText,
4454
4510
  errorText,
4511
+ gap,
4455
4512
  ...rest
4456
4513
  } = props;
4457
4514
  const addButtonRef = React13.useRef(null);
@@ -4480,13 +4537,14 @@ var NumericStepper = ({
4480
4537
  invalid,
4481
4538
  readOnly,
4482
4539
  required,
4540
+ gap,
4483
4541
  children: [
4484
4542
  /* @__PURE__ */ jsxRuntime.jsx(
4485
4543
  VerySmallButton,
4486
4544
  {
4487
4545
  icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4488
4546
  "aria-label": t(
4489
- texts14.decrementButtonAriaLabel(
4547
+ texts15.decrementButtonAriaLabel(
4490
4548
  clampedStepSize,
4491
4549
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4492
4550
  )
@@ -4513,7 +4571,7 @@ var NumericStepper = ({
4513
4571
  css: styles.input,
4514
4572
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4515
4573
  "aria-live": "assertive",
4516
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4574
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4517
4575
  onChange: (event) => {
4518
4576
  const numericInput = Number(event.target.value);
4519
4577
  if (Number.isNaN(numericInput)) {
@@ -4530,8 +4588,11 @@ var NumericStepper = ({
4530
4588
  Text3,
4531
4589
  {
4532
4590
  "aria-live": "assertive",
4533
- paddingX: "0.95rem",
4534
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4591
+ width: `${Math.max(value.toString().length + 1, 3)}ch`,
4592
+ paddingX: 0.5,
4593
+ padding: 0,
4594
+ textAlign: "center",
4595
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4535
4596
  children: value
4536
4597
  }
4537
4598
  ),
@@ -4541,7 +4602,7 @@ var NumericStepper = ({
4541
4602
  ref: addButtonRef,
4542
4603
  icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
4543
4604
  "aria-label": t(
4544
- texts14.incrementButtonAriaLabel(
4605
+ texts15.incrementButtonAriaLabel(
4545
4606
  clampedStepSize,
4546
4607
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4547
4608
  )
@@ -4615,7 +4676,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
4615
4676
  ] }),
4616
4677
  stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4617
4678
  ] });
4618
- var texts14 = createTexts({
4679
+ var texts15 = createTexts({
4619
4680
  currentNumberAriaLabel(ariaContext) {
4620
4681
  return {
4621
4682
  nb: `Valgt antall ${ariaContext}`,
@@ -4679,7 +4740,7 @@ var PasswordInput = ({
4679
4740
  event.preventDefault();
4680
4741
  setVisible(!visible);
4681
4742
  },
4682
- children: visible ? t(texts15.hidePassword) : t(texts15.showPassword)
4743
+ children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
4683
4744
  }
4684
4745
  ),
4685
4746
  ...rest
@@ -4704,7 +4765,7 @@ var VisibilityTrigger = ({
4704
4765
  }
4705
4766
  );
4706
4767
  };
4707
- var texts15 = createTexts({
4768
+ var texts16 = createTexts({
4708
4769
  showPassword: {
4709
4770
  nb: "Vis",
4710
4771
  nn: "Vis",
@@ -4756,14 +4817,14 @@ var CountryCodeSelect = ({
4756
4817
  positioning: { placement: "bottom", flip: false },
4757
4818
  collection: filteredCallingCodes,
4758
4819
  lazyMount: true,
4759
- "aria-label": t(texts16.countryCode),
4820
+ "aria-label": t(texts17.countryCode),
4760
4821
  sideRadiusVariant: "rightSideSquare",
4761
4822
  role: "combobox",
4762
4823
  children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
4763
4824
  }
4764
4825
  );
4765
4826
  };
4766
- var texts16 = createTexts({
4827
+ var texts17 = createTexts({
4767
4828
  countryCode: {
4768
4829
  nb: "Landkode",
4769
4830
  nn: "Landskode",
@@ -4786,7 +4847,7 @@ var PhoneNumberInput = ({
4786
4847
  errorText
4787
4848
  } = props;
4788
4849
  const { t } = useTranslation();
4789
- const label = externalLabel ?? (optional ? t(texts17.phoneNumberOptional) : t(texts17.phoneNumber));
4850
+ const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
4790
4851
  const [value, onChange] = react.useControllableState({
4791
4852
  value: externalValue,
4792
4853
  onChange: externalOnChange,
@@ -4841,7 +4902,7 @@ var PhoneNumberInput = ({
4841
4902
  )
4842
4903
  ] });
4843
4904
  };
4844
- var texts17 = createTexts({
4905
+ var texts18 = createTexts({
4845
4906
  phoneNumber: {
4846
4907
  nb: "Telefonnummer",
4847
4908
  nn: "Telefonnummer",
@@ -4893,16 +4954,16 @@ var SearchInput = ({
4893
4954
  variant: "ghost",
4894
4955
  type: "button",
4895
4956
  size: "sm",
4896
- "aria-label": t(texts18.reset),
4957
+ "aria-label": t(texts19.reset),
4897
4958
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}),
4898
4959
  onClick: onReset
4899
4960
  }
4900
4961
  ),
4901
- label: label ?? t(texts18.label)
4962
+ label: label ?? t(texts19.label)
4902
4963
  }
4903
4964
  );
4904
4965
  };
4905
- var texts18 = createTexts({
4966
+ var texts19 = createTexts({
4906
4967
  label: {
4907
4968
  nb: "S\xF8k",
4908
4969
  nn: "S\xF8k",
@@ -5454,7 +5515,7 @@ var TextLink = ({
5454
5515
  }) => {
5455
5516
  const { t } = useTranslation();
5456
5517
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
5457
- const externalLabel = t ? t(texts19.externalLink) : texts19.externalLink.en;
5518
+ const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
5458
5519
  if (props.asChild && React13.isValidElement(children)) {
5459
5520
  return /* @__PURE__ */ jsxRuntime.jsx(
5460
5521
  react.Link,
@@ -5493,7 +5554,7 @@ var TextLink = ({
5493
5554
  }
5494
5555
  );
5495
5556
  };
5496
- var texts19 = createTexts({
5557
+ var texts20 = createTexts({
5497
5558
  externalLink: {
5498
5559
  nb: "Ekstern lenke",
5499
5560
  nn: "Ekstern lenke",
@@ -6030,14 +6091,14 @@ var JumpButton = ({
6030
6091
  as: "button",
6031
6092
  ref,
6032
6093
  css: styles.root,
6033
- "aria-label": direction === "forward" ? t(texts20.forward) : t(texts20.backward),
6094
+ "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
6034
6095
  disabled,
6035
6096
  ...props,
6036
6097
  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 })
6037
6098
  }
6038
6099
  );
6039
6100
  };
6040
- var texts20 = createTexts({
6101
+ var texts21 = createTexts({
6041
6102
  forward: {
6042
6103
  nb: "15 sekunder frem",
6043
6104
  nn: "15 sekunder fram",
@@ -6065,14 +6126,14 @@ var PlayPauseButton = ({
6065
6126
  ref,
6066
6127
  as: "button",
6067
6128
  css: styles.root,
6068
- "aria-label": playing ? t(texts21.pause) : t(texts21.play),
6129
+ "aria-label": playing ? t(texts22.pause) : t(texts22.play),
6069
6130
  disabled,
6070
6131
  ...props,
6071
6132
  children: playing ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PlayMediaControllerFill24Icon, { css: styles.icon })
6072
6133
  }
6073
6134
  );
6074
6135
  };
6075
- var texts21 = createTexts({
6136
+ var texts22 = createTexts({
6076
6137
  pause: {
6077
6138
  nb: "Pause",
6078
6139
  nn: "Pause",
@@ -6100,14 +6161,14 @@ var SkipButton = ({
6100
6161
  ref,
6101
6162
  as: "button",
6102
6163
  css: styles.root,
6103
- "aria-label": direction === "forward" ? t(texts22.next) : t(texts22.previous),
6164
+ "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
6104
6165
  disabled,
6105
6166
  ...props,
6106
6167
  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 })
6107
6168
  }
6108
6169
  );
6109
6170
  };
6110
- var texts22 = createTexts({
6171
+ var texts23 = createTexts({
6111
6172
  next: {
6112
6173
  nb: "Neste",
6113
6174
  nn: "Neste",
@@ -6222,7 +6283,7 @@ var NudgeActions = ({ ...props }) => {
6222
6283
  var NextButton = ({ isLastStep, onNext }) => {
6223
6284
  const { t } = useTranslation();
6224
6285
  if (isLastStep)
6225
- return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts23.close) }) });
6286
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6226
6287
  return /* @__PURE__ */ jsxRuntime.jsx(
6227
6288
  Button,
6228
6289
  {
@@ -6230,11 +6291,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6230
6291
  size: "xs",
6231
6292
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
6232
6293
  onClick: onNext,
6233
- children: t(texts23.nextStep)
6294
+ children: t(texts24.nextStep)
6234
6295
  }
6235
6296
  );
6236
6297
  };
6237
- var texts23 = createTexts({
6298
+ var texts24 = createTexts({
6238
6299
  nextStep: {
6239
6300
  nb: "Neste",
6240
6301
  nn: "Neste",
@@ -6310,7 +6371,7 @@ var PaginationItem = ({
6310
6371
  to: rootProps.getHref(props.value)
6311
6372
  },
6312
6373
  ref,
6313
- "aria-label": t(texts24.pageOf(props.value, totalPages)),
6374
+ "aria-label": t(texts25.pageOf(props.value, totalPages)),
6314
6375
  ...props,
6315
6376
  children: props.value
6316
6377
  }
@@ -6321,7 +6382,7 @@ var PaginationItem = ({
6321
6382
  {
6322
6383
  as: props.as ?? "button",
6323
6384
  ref,
6324
- "aria-label": t(texts24.pageOf(props.value, totalPages)),
6385
+ "aria-label": t(texts25.pageOf(props.value, totalPages)),
6325
6386
  "aria-current": page === props.value,
6326
6387
  ...props,
6327
6388
  children: props.value
@@ -6351,7 +6412,7 @@ var PaginationPrevTrigger = ({
6351
6412
  },
6352
6413
  ref,
6353
6414
  css: styles.item,
6354
- "aria-label": t(texts24.previousPage),
6415
+ "aria-label": t(texts25.previousPage),
6355
6416
  ...props,
6356
6417
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
6357
6418
  }
@@ -6362,7 +6423,7 @@ var PaginationPrevTrigger = ({
6362
6423
  {
6363
6424
  ref,
6364
6425
  asChild: true,
6365
- "aria-label": t(texts24.previousPage),
6426
+ "aria-label": t(texts25.previousPage),
6366
6427
  as: props.as || "button",
6367
6428
  css: styles.item,
6368
6429
  ...props,
@@ -6391,7 +6452,7 @@ var PaginationNextTrigger = ({
6391
6452
  to: rootProps.getHref(props.value)
6392
6453
  },
6393
6454
  css: styles.item,
6394
- "aria-label": t(texts24.nextPage),
6455
+ "aria-label": t(texts25.nextPage),
6395
6456
  ...props,
6396
6457
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
6397
6458
  }
@@ -6402,7 +6463,7 @@ var PaginationNextTrigger = ({
6402
6463
  {
6403
6464
  ref,
6404
6465
  css: styles.item,
6405
- "aria-label": t(texts24.nextPage),
6466
+ "aria-label": t(texts25.nextPage),
6406
6467
  as: props.as || "button",
6407
6468
  ...props,
6408
6469
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
@@ -6429,7 +6490,7 @@ var PaginationItems = (props) => {
6429
6490
  );
6430
6491
  }) });
6431
6492
  };
6432
- var texts24 = createTexts({
6493
+ var texts25 = createTexts({
6433
6494
  previousPage: {
6434
6495
  nb: "Forrige side",
6435
6496
  nn: "F\xF8rre side",
@@ -6529,7 +6590,7 @@ var ProgressIndicator = ({
6529
6590
  "aria-valuemin": 1,
6530
6591
  "aria-valuemax": numberOfSteps,
6531
6592
  "aria-valuenow": activeStep,
6532
- "aria-valuetext": t(texts25.stepsOf(activeStep, numberOfSteps)),
6593
+ "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6533
6594
  ref,
6534
6595
  children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
6535
6596
  react.Box,
@@ -6548,7 +6609,7 @@ var ProgressIndicator = ({
6548
6609
  }
6549
6610
  );
6550
6611
  };
6551
- var texts25 = createTexts({
6612
+ var texts26 = createTexts({
6552
6613
  stepsOf: (activeStep, numberOfSteps) => ({
6553
6614
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6554
6615
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6744,7 +6805,7 @@ var Stepper = function Stepper2({
6744
6805
  /* @__PURE__ */ jsxRuntime.jsx(
6745
6806
  IconButton,
6746
6807
  {
6747
- "aria-label": t(texts26.back),
6808
+ "aria-label": t(texts27.back),
6748
6809
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
6749
6810
  variant: "ghost",
6750
6811
  size: "sm",
@@ -6768,7 +6829,7 @@ var Stepper = function Stepper2({
6768
6829
  children: heading
6769
6830
  }
6770
6831
  ),
6771
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts26.stepsOf(activeStep, numberOfSteps)) })
6832
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6772
6833
  ]
6773
6834
  }
6774
6835
  ) }),
@@ -6787,7 +6848,7 @@ var Stepper = function Stepper2({
6787
6848
  }
6788
6849
  ) });
6789
6850
  };
6790
- var texts26 = createTexts({
6851
+ var texts27 = createTexts({
6791
6852
  stepsOf: (activeStep, numberOfSteps) => ({
6792
6853
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6793
6854
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7485,12 +7546,12 @@ var pressableCardRecipe = react.defineRecipe({
7485
7546
  accent: {
7486
7547
  boxShadow: "0px 1px 3px 0px var(--shadow-color)",
7487
7548
  shadowColor: "surface.disabled",
7488
- background: "surface.success",
7549
+ background: "surface.accent",
7489
7550
  _hover: {
7490
- background: "surface.success.hover",
7551
+ background: "surface.accent.hover",
7491
7552
  boxShadow: "0px 2px 6px 0px var(--shadow-color)",
7492
7553
  _active: {
7493
- background: "surface.success.active",
7554
+ background: "surface.accent.active",
7494
7555
  boxShadow: "none"
7495
7556
  }
7496
7557
  }
@@ -10805,17 +10866,18 @@ var numericStepperRecipe = react.defineSlotRecipe({
10805
10866
  "& > div": {
10806
10867
  display: "flex",
10807
10868
  flexDirection: "row",
10808
- alignItems: "center"
10869
+ alignItems: "center",
10870
+ gap: 1
10809
10871
  }
10810
10872
  },
10811
10873
  input: {
10812
10874
  fontSize: "sm",
10813
10875
  fontWeight: "bold",
10814
- marginX: 0.5,
10815
10876
  padding: 0,
10816
10877
  paddingX: 0.5,
10817
10878
  borderRadius: "xs",
10818
- outline: "none",
10879
+ outline: "1px solid",
10880
+ outlineColor: "outline.core",
10819
10881
  height: "auto",
10820
10882
  textAlign: "center",
10821
10883
  transitionProperty: "common",