@vygruppen/spor-react 13.0.1 → 13.0.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.cjs CHANGED
@@ -228,8 +228,8 @@ function useTranslation() {
228
228
  };
229
229
  return { t, language };
230
230
  }
231
- function createTexts(texts28) {
232
- return texts28;
231
+ function createTexts(texts27) {
232
+ return texts27;
233
233
  }
234
234
  function Lottie({ animationData }) {
235
235
  return /* @__PURE__ */ jsxRuntime.jsx(ReactLottie__default.default, { animationData });
@@ -1101,11 +1101,7 @@ var AlertIcon = ({
1101
1101
  variant,
1102
1102
  customIcon: CustomAlertIcon
1103
1103
  }) => {
1104
- const { t } = useTranslation();
1105
- return /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { ref, children: [
1106
- /* @__PURE__ */ jsxRuntime.jsx(reactAria.VisuallyHidden, { children: t(texts5[variant]) }),
1107
- CustomAlertIcon ? /* @__PURE__ */ jsxRuntime.jsx(CustomAlertIcon, { color: `alert.${variant}.icon` }) : /* @__PURE__ */ jsxRuntime.jsx(BaseAlertIcon, { variant })
1108
- ] });
1104
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Box, { ref, children: CustomAlertIcon ? /* @__PURE__ */ jsxRuntime.jsx(CustomAlertIcon, { color: `alert.${variant}.icon` }) : /* @__PURE__ */ jsxRuntime.jsx(BaseAlertIcon, { variant }) });
1109
1105
  };
1110
1106
  var BaseAlertIcon = ({
1111
1107
  variant
@@ -1148,56 +1144,6 @@ var BaseAlertIcon = ({
1148
1144
  }
1149
1145
  }
1150
1146
  };
1151
- var texts5 = createTexts({
1152
- info: {
1153
- nb: "Informasjon",
1154
- nn: "Informasjon",
1155
- sv: "Information",
1156
- en: "Information"
1157
- },
1158
- success: {
1159
- nb: "Suksess",
1160
- nn: "Suksess",
1161
- sv: "Succ\xE9",
1162
- en: "Success"
1163
- },
1164
- important: {
1165
- nb: "Viktig",
1166
- nn: "Viktig",
1167
- sv: "Viktig",
1168
- en: "Important"
1169
- },
1170
- alt: {
1171
- nb: "Alternativ",
1172
- nn: "Alternativ",
1173
- sv: "Alternativ",
1174
- en: "Alternative"
1175
- },
1176
- error: {
1177
- nb: "Feil",
1178
- nn: "Feil",
1179
- sv: "Fel",
1180
- en: "Error"
1181
- },
1182
- "error-secondary": {
1183
- nb: "Feil",
1184
- nn: "Feil",
1185
- sv: "Fel",
1186
- en: "Error"
1187
- },
1188
- neutral: {
1189
- nb: "N\xF8ytral",
1190
- nn: "N\xF8ytral",
1191
- sv: "Neutral",
1192
- en: "Neutral"
1193
- },
1194
- service: {
1195
- nb: "Service",
1196
- nn: "Service",
1197
- sv: "Service",
1198
- en: "Service"
1199
- }
1200
- });
1201
1147
  var Alert = ({
1202
1148
  ref,
1203
1149
  ...props
@@ -1363,7 +1309,7 @@ var ServiceAlert = ({
1363
1309
  maxWidth: contentWidth,
1364
1310
  children: [
1365
1311
  /* @__PURE__ */ jsxRuntime.jsxs(react.HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
1366
- 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"]) }),
1312
+ 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"]) }),
1367
1313
  /* @__PURE__ */ jsxRuntime.jsx(
1368
1314
  react.Span,
1369
1315
  {
@@ -1380,7 +1326,7 @@ var ServiceAlert = ({
1380
1326
  )
1381
1327
  ] }),
1382
1328
  /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
1383
- notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
1329
+ notification && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { css: styles.notificationText, children: t(texts5.notification(notification)) }),
1384
1330
  /* @__PURE__ */ jsxRuntime.jsx(react.Accordion.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownDownFill24Icon, { color: "icon.inverted" }) })
1385
1331
  ] })
1386
1332
  ]
@@ -1391,7 +1337,7 @@ var ServiceAlert = ({
1391
1337
  }
1392
1338
  );
1393
1339
  };
1394
- var texts6 = createTexts({
1340
+ var texts5 = createTexts({
1395
1341
  notification: (notification) => {
1396
1342
  const numberNotification = Number(notification);
1397
1343
  return {
@@ -1658,7 +1604,7 @@ var Separator = ({
1658
1604
  ref,
1659
1605
  ...props
1660
1606
  }) => {
1661
- return /* @__PURE__ */ jsxRuntime.jsx(react.Separator, { ...props, ref, "data-": true });
1607
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Separator, { "aria-hidden": "true", ...props, ref, "data-": true });
1662
1608
  };
1663
1609
  var StaticCard = ({
1664
1610
  ref,
@@ -1851,7 +1797,7 @@ function CalendarHeader({ dualView }) {
1851
1797
  variant: "ghost",
1852
1798
  marginLeft: 1,
1853
1799
  disabled: prevButtonProps.isDisabled,
1854
- "aria-label": t(texts7.previousMonth),
1800
+ "aria-label": t(texts6.previousMonth),
1855
1801
  icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownLeftFill24Icon, {})
1856
1802
  }
1857
1803
  ),
@@ -1893,7 +1839,7 @@ function CalendarHeader({ dualView }) {
1893
1839
  marginRight: 1,
1894
1840
  variant: "ghost",
1895
1841
  disabled: nextButtonProps.isDisabled,
1896
- "aria-label": t(texts7.nextMonth),
1842
+ "aria-label": t(texts6.nextMonth),
1897
1843
  icon: /* @__PURE__ */ jsxRuntime.jsx(icons_exports.DropdownRightFill24Icon, {})
1898
1844
  }
1899
1845
  )
@@ -1901,7 +1847,7 @@ function CalendarHeader({ dualView }) {
1901
1847
  }
1902
1848
  );
1903
1849
  }
1904
- var texts7 = createTexts({
1850
+ var texts6 = createTexts({
1905
1851
  previousMonth: {
1906
1852
  nb: "Forrige m\xE5ned",
1907
1853
  nn: "F\xF8rre m\xE5nad",
@@ -2386,7 +2332,7 @@ var CalendarNavigator = ({
2386
2332
  onPress: onPrevious,
2387
2333
  isDisabled: isPreviousDisabled,
2388
2334
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftOutline24Icon, {}),
2389
- "aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
2335
+ "aria-label": `${t(texts7.previous)} ${t(texts7[unit])}`
2390
2336
  }
2391
2337
  ),
2392
2338
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2407,12 +2353,12 @@ var CalendarNavigator = ({
2407
2353
  onPress: onNext,
2408
2354
  isDisabled: isNextDisabled,
2409
2355
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightOutline24Icon, {}),
2410
- "aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
2356
+ "aria-label": `${t(texts7.next)} ${t(texts7[unit])}`
2411
2357
  }
2412
2358
  )
2413
2359
  ] });
2414
2360
  };
2415
- var texts8 = createTexts({
2361
+ var texts7 = createTexts({
2416
2362
  previous: {
2417
2363
  nb: "Forrige",
2418
2364
  nn: "Forrige",
@@ -2457,7 +2403,7 @@ function Calendar2({
2457
2403
  const styles = recipe({ variant });
2458
2404
  const { calendarProps } = reactAria.useCalendar(props, state);
2459
2405
  const calendarAriaLabel = calendarProps["aria-label"];
2460
- const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2406
+ const ariaLabel = t(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2461
2407
  return /* @__PURE__ */ jsxRuntime.jsxs(
2462
2408
  react.Box,
2463
2409
  {
@@ -2471,7 +2417,7 @@ function Calendar2({
2471
2417
  }
2472
2418
  );
2473
2419
  }
2474
- var texts9 = createTexts({
2420
+ var texts8 = createTexts({
2475
2421
  calendar: {
2476
2422
  nb: "Kalender",
2477
2423
  nn: "Kalender",
@@ -2497,14 +2443,14 @@ var CalendarTriggerButton = ({
2497
2443
  IconButton,
2498
2444
  {
2499
2445
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CalendarOutline24Icon, {}),
2500
- "aria-label": t(texts10.openCalendar),
2446
+ "aria-label": t(texts9.openCalendar),
2501
2447
  css: styles.calendarTriggerButton,
2502
2448
  variant: "ghost",
2503
2449
  disabled
2504
2450
  }
2505
2451
  ) });
2506
2452
  };
2507
- var texts10 = createTexts({
2453
+ var texts9 = createTexts({
2508
2454
  openCalendar: {
2509
2455
  nb: "\xC5pne kalender",
2510
2456
  nn: "\xC5pne kalendar",
@@ -2613,7 +2559,7 @@ var DateField = ({
2613
2559
  )
2614
2560
  ] });
2615
2561
  };
2616
- var texts11 = createTexts({
2562
+ var texts10 = createTexts({
2617
2563
  day: {
2618
2564
  nb: "Velg dag",
2619
2565
  nn: "Vel dag",
@@ -2636,16 +2582,16 @@ var texts11 = createTexts({
2636
2582
  var getAriaLabel = (segmentType) => {
2637
2583
  switch (segmentType) {
2638
2584
  case "day": {
2639
- return texts11.day;
2585
+ return texts10.day;
2640
2586
  }
2641
2587
  case "month": {
2642
- return texts11.month;
2588
+ return texts10.month;
2643
2589
  }
2644
2590
  case "year": {
2645
- return texts11.year;
2591
+ return texts10.year;
2646
2592
  }
2647
2593
  default: {
2648
- return texts11.day;
2594
+ return texts10.day;
2649
2595
  }
2650
2596
  }
2651
2597
  };
@@ -2980,7 +2926,7 @@ var TimePicker = ({
2980
2926
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
2981
2927
  const { t } = useTranslation();
2982
2928
  const locale = useCurrentLocale();
2983
- const label = externalLabel ?? t(texts12.time);
2929
+ const label = externalLabel ?? t(texts11.time);
2984
2930
  const state = reactStately.useTimeFieldState({
2985
2931
  value,
2986
2932
  defaultValue,
@@ -3013,15 +2959,15 @@ var TimePicker = ({
3013
2959
  })
3014
2960
  );
3015
2961
  };
3016
- const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
3017
- texts12.minutes
2962
+ const backwardsLabel = `${t(texts11.backwards)} ${minuteInterval} ${t(
2963
+ texts11.minutes
3018
2964
  )}`;
3019
- const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
3020
- texts12.minutes
2965
+ const forwardsLabel = `${t(texts11.forwards)} ${minuteInterval} ${t(
2966
+ texts11.minutes
3021
2967
  )}`;
3022
- const inputLabel = label ?? t(texts12.time);
2968
+ const inputLabel = label ?? t(texts11.time);
3023
2969
  const ariaLabel = `${inputLabel} \u2013 ${t(
3024
- texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
2970
+ texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3025
2971
  )}`;
3026
2972
  return /* @__PURE__ */ jsxRuntime.jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(
3027
2973
  StyledField,
@@ -3074,7 +3020,7 @@ var TimePicker = ({
3074
3020
  }
3075
3021
  ) });
3076
3022
  };
3077
- var texts12 = createTexts({
3023
+ var texts11 = createTexts({
3078
3024
  selectedTimeIs: (time) => ({
3079
3025
  nb: `Valgt tidspunkt er ${time}`,
3080
3026
  nn: `Valt tidspunkt er ${time}`,
@@ -3215,7 +3161,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3215
3161
  {
3216
3162
  variant: "ghost",
3217
3163
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseFill24Icon, {}),
3218
- label: t(texts13.close)
3164
+ label: t(texts12.close)
3219
3165
  }
3220
3166
  ) : /* @__PURE__ */ jsxRuntime.jsx(CloseButton, { size: "md" }) });
3221
3167
  };
@@ -3229,7 +3175,7 @@ var DrawerBackTrigger = ({
3229
3175
  {
3230
3176
  variant: "ghost",
3231
3177
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
3232
- label: t(texts13.back)
3178
+ label: t(texts12.back)
3233
3179
  }
3234
3180
  ) });
3235
3181
  };
@@ -3261,7 +3207,7 @@ var DrawerBackdrop = react.Drawer.Backdrop;
3261
3207
  var DrawerTitle = react.Drawer.Title;
3262
3208
  var DrawerActionTrigger = react.Drawer.ActionTrigger;
3263
3209
  var DrawerHeader = react.Drawer.Header;
3264
- var texts13 = createTexts({
3210
+ var texts12 = createTexts({
3265
3211
  back: {
3266
3212
  en: "Back",
3267
3213
  nb: "Tilbake",
@@ -3577,10 +3523,10 @@ function Autocomplete({
3577
3523
  }
3578
3524
  }
3579
3525
  ) }),
3580
- /* @__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 }) }) })
3526
+ /* @__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 }) }) })
3581
3527
  ] }),
3582
3528
  /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Positioner, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Combobox.Content, { children: [
3583
- !loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
3529
+ !loading && /* @__PURE__ */ jsxRuntime.jsx(react.Combobox.Empty, { children: emptyLabel ?? t(texts13.noItemsFound) }),
3584
3530
  loading ? /* @__PURE__ */ jsxRuntime.jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3585
3531
  ] }) })
3586
3532
  ] });
@@ -3639,7 +3585,7 @@ var extractItemsFromChildren = (children) => {
3639
3585
  });
3640
3586
  return items;
3641
3587
  };
3642
- var texts14 = createTexts({
3588
+ var texts13 = createTexts({
3643
3589
  noItemsFound: {
3644
3590
  nb: "Ingen resultater",
3645
3591
  nn: "Ingen resultat",
@@ -4007,6 +3953,19 @@ var FieldsetLegend = react.Fieldset.Legend;
4007
3953
  var FieldsetContent = react.Fieldset.Content;
4008
3954
  var FieldsetHelperText = react.Fieldset.HelperText;
4009
3955
  var FieldsetErrorText = react.Fieldset.ErrorText;
3956
+ var InputChip = ({
3957
+ startIcon,
3958
+ endIcon,
3959
+ children,
3960
+ ref,
3961
+ ...rest
3962
+ }) => {
3963
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Tag.Root, { ref, ...rest, as: "button", children: [
3964
+ startIcon && /* @__PURE__ */ jsxRuntime.jsx(react.Tag.StartElement, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: startIcon }) }),
3965
+ /* @__PURE__ */ jsxRuntime.jsx(react.Tag.Label, { children }),
3966
+ endIcon && /* @__PURE__ */ jsxRuntime.jsx(react.Tag.EndElement, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { as: endIcon }) })
3967
+ ] });
3968
+ };
4010
3969
  var ListBox = (props) => {
4011
3970
  const { loading, listBoxRef, state, maxWidth, variant, children } = props;
4012
3971
  const { listBoxProps } = reactAria.useListBox(props, state, listBoxRef);
@@ -4378,7 +4337,7 @@ var NumericStepper = ({
4378
4337
  {
4379
4338
  icon: /* @__PURE__ */ jsxRuntime.jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4380
4339
  "aria-label": t(
4381
- texts15.decrementButtonAriaLabel(
4340
+ texts14.decrementButtonAriaLabel(
4382
4341
  clampedStepSize,
4383
4342
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4384
4343
  )
@@ -4405,7 +4364,7 @@ var NumericStepper = ({
4405
4364
  css: styles.input,
4406
4365
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4407
4366
  "aria-live": "assertive",
4408
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4367
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4409
4368
  onChange: (event) => {
4410
4369
  const numericInput = Number(event.target.value);
4411
4370
  if (Number.isNaN(numericInput)) {
@@ -4423,7 +4382,7 @@ var NumericStepper = ({
4423
4382
  {
4424
4383
  "aria-live": "assertive",
4425
4384
  paddingX: "0.95rem",
4426
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4385
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4427
4386
  children: value
4428
4387
  }
4429
4388
  ),
@@ -4433,7 +4392,7 @@ var NumericStepper = ({
4433
4392
  ref: addButtonRef,
4434
4393
  icon: /* @__PURE__ */ jsxRuntime.jsx(AddIcon, { stepLabel: clampedStepSize }),
4435
4394
  "aria-label": t(
4436
- texts15.incrementButtonAriaLabel(
4395
+ texts14.incrementButtonAriaLabel(
4437
4396
  clampedStepSize,
4438
4397
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4439
4398
  )
@@ -4507,7 +4466,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Frag
4507
4466
  ] }),
4508
4467
  stepLabel > 1 && /* @__PURE__ */ jsxRuntime.jsx(react.chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4509
4468
  ] });
4510
- var texts15 = createTexts({
4469
+ var texts14 = createTexts({
4511
4470
  currentNumberAriaLabel(ariaContext) {
4512
4471
  return {
4513
4472
  nb: `Valgt antall ${ariaContext}`,
@@ -4571,7 +4530,7 @@ var PasswordInput = ({
4571
4530
  event.preventDefault();
4572
4531
  setVisible(!visible);
4573
4532
  },
4574
- children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
4533
+ children: visible ? t(texts15.hidePassword) : t(texts15.showPassword)
4575
4534
  }
4576
4535
  ),
4577
4536
  ...rest
@@ -4596,7 +4555,7 @@ var VisibilityTrigger = ({
4596
4555
  }
4597
4556
  );
4598
4557
  };
4599
- var texts16 = createTexts({
4558
+ var texts15 = createTexts({
4600
4559
  showPassword: {
4601
4560
  nb: "Vis",
4602
4561
  nn: "Vis",
@@ -4648,14 +4607,14 @@ var CountryCodeSelect = ({
4648
4607
  positioning: { placement: "bottom", flip: false },
4649
4608
  collection: filteredCallingCodes,
4650
4609
  lazyMount: true,
4651
- "aria-label": t(texts17.countryCode),
4610
+ "aria-label": t(texts16.countryCode),
4652
4611
  sideRadiusVariant: "rightSideSquare",
4653
4612
  role: "combobox",
4654
4613
  children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsxRuntime.jsx(SelectItem, { item: code, children: code.label }, code.label))
4655
4614
  }
4656
4615
  );
4657
4616
  };
4658
- var texts17 = createTexts({
4617
+ var texts16 = createTexts({
4659
4618
  countryCode: {
4660
4619
  nb: "Landkode",
4661
4620
  nn: "Landskode",
@@ -4678,7 +4637,7 @@ var PhoneNumberInput = ({
4678
4637
  errorText
4679
4638
  } = props;
4680
4639
  const { t } = useTranslation();
4681
- const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
4640
+ const label = externalLabel ?? (optional ? t(texts17.phoneNumberOptional) : t(texts17.phoneNumber));
4682
4641
  const [value, onChange] = react.useControllableState({
4683
4642
  value: externalValue,
4684
4643
  onChange: externalOnChange,
@@ -4733,7 +4692,7 @@ var PhoneNumberInput = ({
4733
4692
  )
4734
4693
  ] });
4735
4694
  };
4736
- var texts18 = createTexts({
4695
+ var texts17 = createTexts({
4737
4696
  phoneNumber: {
4738
4697
  nb: "Telefonnummer",
4739
4698
  nn: "Telefonnummer",
@@ -4785,16 +4744,16 @@ var SearchInput = ({
4785
4744
  variant: "ghost",
4786
4745
  type: "button",
4787
4746
  size: "sm",
4788
- "aria-label": t(texts19.reset),
4747
+ "aria-label": t(texts18.reset),
4789
4748
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CloseOutline24Icon, {}),
4790
4749
  onClick: onReset
4791
4750
  }
4792
4751
  ),
4793
- label: label ?? t(texts19.label)
4752
+ label: label ?? t(texts18.label)
4794
4753
  }
4795
4754
  );
4796
4755
  };
4797
- var texts19 = createTexts({
4756
+ var texts18 = createTexts({
4798
4757
  label: {
4799
4758
  nb: "S\xF8k",
4800
4759
  nn: "S\xF8k",
@@ -4844,7 +4803,7 @@ var Select = ({
4844
4803
  css: styles.root,
4845
4804
  position: "relative",
4846
4805
  children: [
4847
- /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsxRuntime.jsx(SelectValueText, { withPlaceholder: label ? true : false }) }),
4806
+ /* @__PURE__ */ jsxRuntime.jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsxRuntime.jsx(SelectValueText, { withPlaceholder: !!label }) }),
4848
4807
  label && /* @__PURE__ */ jsxRuntime.jsx(SelectLabel, { css: styles.label, children: label }),
4849
4808
  /* @__PURE__ */ jsxRuntime.jsx(SelectContent, { css: styles.selectContent, baseStyle: css, children })
4850
4809
  ]
@@ -4859,7 +4818,7 @@ var SelectLabel = (props) => {
4859
4818
  react.Select.Label,
4860
4819
  {
4861
4820
  ...props,
4862
- "data-selected": value.length > 0 ? true : void 0
4821
+ "data-selected": value.length > 0 || void 0
4863
4822
  }
4864
4823
  );
4865
4824
  };
@@ -4870,14 +4829,19 @@ var SelectItem = ({
4870
4829
  const { item, children, description, ...rest } = props;
4871
4830
  const recipe = react.useSlotRecipe({ key: "select" });
4872
4831
  const styles = recipe();
4832
+ const selectContext = react.useSelectContext();
4833
+ const multiple = selectContext.multiple;
4834
+ const isSelected = selectContext.value.includes(item.value);
4873
4835
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Select.Item, { item, ...rest, ref, css: styles.item, children: [
4836
+ multiple && /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Root, { checked: isSelected, pointerEvents: "none", children: /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Control, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Checkbox.Indicator, {}) }) }),
4874
4837
  /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { width: "100%", children: [
4875
4838
  /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemText, { display: "flex", children }),
4876
4839
  description && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { "data-part": "item-description", css: styles.itemDescription, children: description })
4877
4840
  ] }),
4878
- /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CheckmarkFill18Icon, {}) })
4841
+ !multiple && /* @__PURE__ */ jsxRuntime.jsx(react.Select.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.CheckmarkFill18Icon, {}) })
4879
4842
  ] });
4880
4843
  };
4844
+ SelectItem.displayName = "SelectItem";
4881
4845
  var SelectItemGroup = function SelectItemGroup2({
4882
4846
  ref,
4883
4847
  ...props
@@ -4936,6 +4900,8 @@ var SelectValueText = function SelectValueText2({
4936
4900
  ...props
4937
4901
  }) {
4938
4902
  const { children, withPlaceholder, placeholder, ...rest } = props;
4903
+ const selectContext = react.useSelectContext();
4904
+ const multiple = selectContext.multiple;
4939
4905
  return /* @__PURE__ */ jsxRuntime.jsx(
4940
4906
  react.Select.ValueText,
4941
4907
  {
@@ -4949,9 +4915,20 @@ var SelectValueText = function SelectValueText2({
4949
4915
  return placeholder;
4950
4916
  if (children)
4951
4917
  return children(items);
4952
- if (items.length === 1)
4918
+ if (multiple) {
4919
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { gap: 0.5, marginBottom: 1, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
4920
+ Badge,
4921
+ {
4922
+ size: "sm",
4923
+ colorPalette: "green",
4924
+ children: select.collection.stringifyItem(item)
4925
+ },
4926
+ select.collection.stringifyItem(item)
4927
+ )) });
4928
+ }
4929
+ if (items.length === 1) {
4953
4930
  return select.collection.stringifyItem(items[0]);
4954
- return `${items.length} selected`;
4931
+ }
4955
4932
  } })
4956
4933
  }
4957
4934
  );
@@ -4970,6 +4947,9 @@ var Switch = ({
4970
4947
  errorText,
4971
4948
  helperText,
4972
4949
  css,
4950
+ "aria-label": ariaLabel,
4951
+ "aria-labelledby": ariaLabelledby,
4952
+ "aria-describedby": ariaDescribedby,
4973
4953
  ...rest
4974
4954
  } = props;
4975
4955
  const recipe = react.useSlotRecipe({ key: "switch" });
@@ -4992,7 +4972,15 @@ var Switch = ({
4992
4972
  checked: props.checked,
4993
4973
  css: styles.root,
4994
4974
  children: [
4995
- /* @__PURE__ */ jsxRuntime.jsx(react.Switch.HiddenInput, { ref }),
4975
+ /* @__PURE__ */ jsxRuntime.jsx(
4976
+ react.Switch.HiddenInput,
4977
+ {
4978
+ ref,
4979
+ "aria-label": ariaLabel,
4980
+ "aria-labelledby": ariaLabelledby,
4981
+ "aria-describedby": ariaDescribedby
4982
+ }
4983
+ ),
4996
4984
  /* @__PURE__ */ jsxRuntime.jsx(react.Switch.Control, { css: styles.control, children: /* @__PURE__ */ jsxRuntime.jsx(react.Switch.Thumb, {}) }),
4997
4985
  label && /* @__PURE__ */ jsxRuntime.jsx(react.Switch.Label, { children: label })
4998
4986
  ]
@@ -5317,7 +5305,7 @@ var TextLink = ({
5317
5305
  }) => {
5318
5306
  const { t } = useTranslation();
5319
5307
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
5320
- const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
5308
+ const externalLabel = t ? t(texts19.externalLink) : texts19.externalLink.en;
5321
5309
  if (props.asChild && React13.isValidElement(children)) {
5322
5310
  return /* @__PURE__ */ jsxRuntime.jsx(
5323
5311
  react.Link,
@@ -5356,7 +5344,7 @@ var TextLink = ({
5356
5344
  }
5357
5345
  );
5358
5346
  };
5359
- var texts20 = createTexts({
5347
+ var texts19 = createTexts({
5360
5348
  externalLink: {
5361
5349
  nb: "Ekstern lenke",
5362
5350
  nn: "Ekstern lenke",
@@ -5873,14 +5861,14 @@ var JumpButton = ({
5873
5861
  as: "button",
5874
5862
  ref,
5875
5863
  css: styles.root,
5876
- "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
5864
+ "aria-label": direction === "forward" ? t(texts20.forward) : t(texts20.backward),
5877
5865
  disabled,
5878
5866
  ...props,
5879
5867
  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 })
5880
5868
  }
5881
5869
  );
5882
5870
  };
5883
- var texts21 = createTexts({
5871
+ var texts20 = createTexts({
5884
5872
  forward: {
5885
5873
  nb: "15 sekunder frem",
5886
5874
  nn: "15 sekunder fram",
@@ -5908,14 +5896,14 @@ var PlayPauseButton = ({
5908
5896
  ref,
5909
5897
  as: "button",
5910
5898
  css: styles.root,
5911
- "aria-label": playing ? t(texts22.pause) : t(texts22.play),
5899
+ "aria-label": playing ? t(texts21.pause) : t(texts21.play),
5912
5900
  disabled,
5913
5901
  ...props,
5914
5902
  children: playing ? /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.PlayMediaControllerFill24Icon, { css: styles.icon })
5915
5903
  }
5916
5904
  );
5917
5905
  };
5918
- var texts22 = createTexts({
5906
+ var texts21 = createTexts({
5919
5907
  pause: {
5920
5908
  nb: "Pause",
5921
5909
  nn: "Pause",
@@ -5943,14 +5931,14 @@ var SkipButton = ({
5943
5931
  ref,
5944
5932
  as: "button",
5945
5933
  css: styles.root,
5946
- "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
5934
+ "aria-label": direction === "forward" ? t(texts22.next) : t(texts22.previous),
5947
5935
  disabled,
5948
5936
  ...props,
5949
5937
  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 })
5950
5938
  }
5951
5939
  );
5952
5940
  };
5953
- var texts23 = createTexts({
5941
+ var texts22 = createTexts({
5954
5942
  next: {
5955
5943
  nb: "Neste",
5956
5944
  nn: "Neste",
@@ -6065,7 +6053,7 @@ var NudgeActions = ({ ...props }) => {
6065
6053
  var NextButton = ({ isLastStep, onNext }) => {
6066
6054
  const { t } = useTranslation();
6067
6055
  if (isLastStep)
6068
- return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6056
+ return /* @__PURE__ */ jsxRuntime.jsx(react.PopoverCloseTrigger, { children: /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "xs", children: t(texts23.close) }) });
6069
6057
  return /* @__PURE__ */ jsxRuntime.jsx(
6070
6058
  Button,
6071
6059
  {
@@ -6073,11 +6061,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6073
6061
  size: "xs",
6074
6062
  rightIcon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowRightFill18Icon, {}),
6075
6063
  onClick: onNext,
6076
- children: t(texts24.nextStep)
6064
+ children: t(texts23.nextStep)
6077
6065
  }
6078
6066
  );
6079
6067
  };
6080
- var texts24 = createTexts({
6068
+ var texts23 = createTexts({
6081
6069
  nextStep: {
6082
6070
  nb: "Neste",
6083
6071
  nn: "Neste",
@@ -6153,7 +6141,7 @@ var PaginationItem = ({
6153
6141
  to: rootProps.getHref(props.value)
6154
6142
  },
6155
6143
  ref,
6156
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6144
+ "aria-label": t(texts24.pageOf(props.value, totalPages)),
6157
6145
  ...props,
6158
6146
  children: props.value
6159
6147
  }
@@ -6164,7 +6152,7 @@ var PaginationItem = ({
6164
6152
  {
6165
6153
  as: props.as ?? "button",
6166
6154
  ref,
6167
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6155
+ "aria-label": t(texts24.pageOf(props.value, totalPages)),
6168
6156
  "aria-current": page === props.value,
6169
6157
  ...props,
6170
6158
  children: props.value
@@ -6194,7 +6182,7 @@ var PaginationPrevTrigger = ({
6194
6182
  },
6195
6183
  ref,
6196
6184
  css: styles.item,
6197
- "aria-label": t(texts25.previousPage),
6185
+ "aria-label": t(texts24.previousPage),
6198
6186
  ...props,
6199
6187
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownLeftOutline18Icon, {})
6200
6188
  }
@@ -6205,7 +6193,7 @@ var PaginationPrevTrigger = ({
6205
6193
  {
6206
6194
  ref,
6207
6195
  asChild: true,
6208
- "aria-label": t(texts25.previousPage),
6196
+ "aria-label": t(texts24.previousPage),
6209
6197
  as: props.as || "button",
6210
6198
  css: styles.item,
6211
6199
  ...props,
@@ -6234,7 +6222,7 @@ var PaginationNextTrigger = ({
6234
6222
  to: rootProps.getHref(props.value)
6235
6223
  },
6236
6224
  css: styles.item,
6237
- "aria-label": t(texts25.nextPage),
6225
+ "aria-label": t(texts24.nextPage),
6238
6226
  ...props,
6239
6227
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
6240
6228
  }
@@ -6245,7 +6233,7 @@ var PaginationNextTrigger = ({
6245
6233
  {
6246
6234
  ref,
6247
6235
  css: styles.item,
6248
- "aria-label": t(texts25.nextPage),
6236
+ "aria-label": t(texts24.nextPage),
6249
6237
  as: props.as || "button",
6250
6238
  ...props,
6251
6239
  children: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.DropdownRightOutline18Icon, {})
@@ -6272,7 +6260,7 @@ var PaginationItems = (props) => {
6272
6260
  );
6273
6261
  }) });
6274
6262
  };
6275
- var texts25 = createTexts({
6263
+ var texts24 = createTexts({
6276
6264
  previousPage: {
6277
6265
  nb: "Forrige side",
6278
6266
  nn: "F\xF8rre side",
@@ -6363,7 +6351,7 @@ var ProgressIndicator = ({
6363
6351
  "aria-valuemin": 1,
6364
6352
  "aria-valuemax": numberOfSteps,
6365
6353
  "aria-valuenow": activeStep,
6366
- "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6354
+ "aria-valuetext": t(texts25.stepsOf(activeStep, numberOfSteps)),
6367
6355
  ref,
6368
6356
  children: /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsxRuntime.jsx(
6369
6357
  react.Box,
@@ -6382,7 +6370,7 @@ var ProgressIndicator = ({
6382
6370
  }
6383
6371
  );
6384
6372
  };
6385
- var texts26 = createTexts({
6373
+ var texts25 = createTexts({
6386
6374
  stepsOf: (activeStep, numberOfSteps) => ({
6387
6375
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6388
6376
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6472,18 +6460,23 @@ var createToast = ({
6472
6460
  text,
6473
6461
  variant,
6474
6462
  id,
6475
- duration = 6e3
6463
+ duration = 6e3,
6464
+ width = "sm"
6476
6465
  }) => toaster.create({
6477
6466
  description: text,
6478
6467
  type: variant,
6479
6468
  id: id ?? crypto.randomUUID(),
6480
- duration
6469
+ duration,
6470
+ meta: { width }
6481
6471
  });
6482
6472
  var Toaster = () => {
6483
- return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Toaster, { toaster, insetInline: { mdDown: "4" }, children: (toast) => /* @__PURE__ */ jsxRuntime.jsxs(react.Toast.Root, { width: { md: "sm" }, role: "alert", children: [
6484
- /* @__PURE__ */ jsxRuntime.jsx(AlertIcon, { variant: toast.type }),
6485
- /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(react.Toast.Description, { children: toast.description }) })
6486
- ] }) }) });
6473
+ return /* @__PURE__ */ jsxRuntime.jsx(react.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(react.Toaster, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
6474
+ var _a6;
6475
+ return /* @__PURE__ */ jsxRuntime.jsxs(react.Toast.Root, { width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width }, role: "alert", children: [
6476
+ /* @__PURE__ */ jsxRuntime.jsx(AlertIcon, { variant: toast.type }),
6477
+ /* @__PURE__ */ jsxRuntime.jsx(react.Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsxRuntime.jsx(react.Toast.Description, { children: toast.description }) })
6478
+ ] });
6479
+ } }) });
6487
6480
  };
6488
6481
  var SporProvider = ({
6489
6482
  language = "nb" /* NorwegianBokmal */,
@@ -6563,7 +6556,7 @@ var Stepper = function Stepper2({
6563
6556
  /* @__PURE__ */ jsxRuntime.jsx(
6564
6557
  IconButton,
6565
6558
  {
6566
- "aria-label": t(texts27.back),
6559
+ "aria-label": t(texts26.back),
6567
6560
  icon: /* @__PURE__ */ jsxRuntime.jsx(spor_icon_react_star.ArrowLeftFill24Icon, {}),
6568
6561
  variant: "ghost",
6569
6562
  size: "sm",
@@ -6587,7 +6580,7 @@ var Stepper = function Stepper2({
6587
6580
  children: heading
6588
6581
  }
6589
6582
  ),
6590
- /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6583
+ /* @__PURE__ */ jsxRuntime.jsx(react.Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts26.stepsOf(activeStep, numberOfSteps)) })
6591
6584
  ]
6592
6585
  }
6593
6586
  ) }),
@@ -6606,7 +6599,7 @@ var Stepper = function Stepper2({
6606
6599
  }
6607
6600
  ) });
6608
6601
  };
6609
- var texts27 = createTexts({
6602
+ var texts26 = createTexts({
6610
6603
  stepsOf: (activeStep, numberOfSteps) => ({
6611
6604
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6612
6605
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7195,6 +7188,7 @@ var linkRecipe = react.defineRecipe({
7195
7188
  paddingX: "0.5",
7196
7189
  whiteSpace: "normal",
7197
7190
  wordBreak: "break-word",
7191
+ paddingInline: 0,
7198
7192
  _hover: {
7199
7193
  textDecoration: "none"
7200
7194
  },
@@ -7826,6 +7820,7 @@ var comboboxAnatomy = react$1.comboboxAnatomy.extendWith(
7826
7820
  "indicatorGroup",
7827
7821
  "empty"
7828
7822
  );
7823
+ var tagAnatomy = anatomy.createAnatomy("tag").parts("root");
7829
7824
  var menuAnatomy = anatomy.createAnatomy("menu").parts(
7830
7825
  "trigger",
7831
7826
  "content",
@@ -9776,6 +9771,120 @@ var infoTagSlotRecipe = react.defineSlotRecipe({
9776
9771
  size: "md"
9777
9772
  }
9778
9773
  });
9774
+ var inputChipSlotRecipe = react.defineSlotRecipe({
9775
+ slots: tagAnatomy.keys(),
9776
+ className: "chakra-tag",
9777
+ base: {
9778
+ root: {
9779
+ display: "flex",
9780
+ direction: "row",
9781
+ width: "fit-content",
9782
+ height: "fit-content",
9783
+ alignItems: "center",
9784
+ justifyContent: "center",
9785
+ gap: "1",
9786
+ outline: "none",
9787
+ "&:focus": {
9788
+ outline: "2px solid",
9789
+ outlineColor: "outline.focus"
9790
+ }
9791
+ }
9792
+ },
9793
+ variants: {
9794
+ variant: {
9795
+ core: {
9796
+ root: {
9797
+ backgroundColor: "surface",
9798
+ border: "1px solid",
9799
+ borderColor: "outline",
9800
+ "&:hover": {
9801
+ outline: "2px solid",
9802
+ outlineColor: "core.outline.hover"
9803
+ },
9804
+ "&:active": {
9805
+ outline: "none",
9806
+ backgroundColor: "core.surface.active"
9807
+ }
9808
+ }
9809
+ },
9810
+ accent: {
9811
+ root: {
9812
+ backgroundColor: "accent.surface",
9813
+ color: "text.highlight",
9814
+ "& svg": {
9815
+ color: "icon.highlight"
9816
+ },
9817
+ "&:hover": {
9818
+ backgroundColor: "accent.surface.hover"
9819
+ },
9820
+ "&:active": {
9821
+ backgroundColor: "accent.surface.active",
9822
+ outline: "none"
9823
+ }
9824
+ }
9825
+ },
9826
+ brand: {
9827
+ root: {
9828
+ backgroundColor: "brand.surface",
9829
+ color: "text.inverted",
9830
+ "& svg": {
9831
+ color: "icon.inverted"
9832
+ },
9833
+ "&:hover": {
9834
+ backgroundColor: "brand.surface.hover"
9835
+ },
9836
+ "&:active": {
9837
+ backgroundColor: "brand.surface.active",
9838
+ outline: "none"
9839
+ }
9840
+ }
9841
+ }
9842
+ },
9843
+ size: {
9844
+ xs: {
9845
+ root: {
9846
+ fontSize: "desktop.xs",
9847
+ paddingX: "1.5",
9848
+ paddingY: "0",
9849
+ fontWeight: "normal",
9850
+ borderRadius: "xs"
9851
+ }
9852
+ },
9853
+ sm: {
9854
+ root: {
9855
+ fontSize: "desktop.sm",
9856
+ paddingX: "2",
9857
+ paddingY: "0.5",
9858
+ fontWeight: "bold",
9859
+ borderRadius: "9px"
9860
+ }
9861
+ },
9862
+ md: {
9863
+ root: {
9864
+ padding: 5,
9865
+ fontSize: "desktop.md",
9866
+ paddingX: "2",
9867
+ paddingY: "1",
9868
+ fontWeight: "bold",
9869
+ borderRadius: "sm"
9870
+ }
9871
+ },
9872
+ lg: {
9873
+ root: {
9874
+ fontSize: "desktop.md",
9875
+ paddingX: "2",
9876
+ paddingY: "3",
9877
+ fontWeight: "bold",
9878
+ borderRadius: "md"
9879
+ }
9880
+ }
9881
+ }
9882
+ },
9883
+ defaultVariants: {
9884
+ variant: "core",
9885
+ size: "sm"
9886
+ }
9887
+ });
9779
9888
  var lineIconSlotRecipe = react.defineSlotRecipe({
9780
9889
  slots: linjetagAnatomy.keys(),
9781
9890
  className: "spor-line-icon",
@@ -10803,7 +10912,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10803
10912
  outlineOffset: "2px",
10804
10913
  outline: "2px solid",
10805
10914
  outlineColor: "outline.focus",
10806
- backgroundColor: "ghost.surface.hover"
10915
+ backgroundColor: "accent.surface.hover"
10807
10916
  },
10808
10917
  "&[data-highlighted]": {
10809
10918
  outlineOffset: "2px",
@@ -10811,7 +10920,7 @@ var selectSlotRecipe = react.defineSlotRecipe({
10811
10920
  outlineColor: "outline.focus"
10812
10921
  },
10813
10922
  _active: {
10814
- backgroundColor: "ghost.surface.active"
10923
+ backgroundColor: "accent.surface.active"
10815
10924
  },
10816
10925
  _highlighted: {
10817
10926
  _active: {
@@ -10819,12 +10928,12 @@ var selectSlotRecipe = react.defineSlotRecipe({
10819
10928
  }
10820
10929
  },
10821
10930
  _hover: {
10822
- backgroundColor: "ghost.surface.hover",
10931
+ backgroundColor: "accent.surface.hover",
10823
10932
  outline: "2px solid core.outline",
10824
10933
  outlineOffset: "2px"
10825
10934
  },
10826
10935
  _selected: {
10827
- backgroundColor: "ghost.surface.active"
10936
+ backgroundColor: "accent.surface"
10828
10937
  },
10829
10938
  _icon: {
10830
10939
  width: 3,
@@ -11592,6 +11701,7 @@ var slotRecipes = {
11592
11701
  checkboxCard: choiceChipSlotRecipe,
11593
11702
  collapsible: collapsibleSlotRecipe,
11594
11703
  tooltip: popoverSlotRecipe,
11704
+ tag: inputChipSlotRecipe,
11595
11705
  menu: menuSlotRecipe
11596
11706
  };
11597
11707
  var animations = react.defineTokens.animations({
@@ -12771,6 +12881,7 @@ exports.Heading = Heading;
12771
12881
  exports.IconButton = IconButton;
12772
12882
  exports.InfoTag = InfoTag;
12773
12883
  exports.Input = Input;
12884
+ exports.InputChip = InputChip;
12774
12885
  exports.ItemDescription = ItemDescription;
12775
12886
  exports.ItemLabel = ItemLabel;
12776
12887
  exports.JumpButton = JumpButton;