@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.mjs CHANGED
@@ -1,10 +1,10 @@
1
- import { Accordion as Accordion$1, defineRecipe, chakra, Code as Code$1, Clipboard as Clipboard$1, RadioCard as RadioCard$1, defineStyle, Field, Dialog, createContext as createContext$1, Drawer as Drawer$1, Combobox, Fieldset as Fieldset$1, createListCollection, Select as Select$1, List as List$1, Popover as Popover$1, createToaster, Tabs as Tabs$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, Tooltip as Tooltip$1, IconButton as IconButton$1, defineConfig, Center, Box, ClientOnly, VisuallyHidden, useSlotRecipe, Stack, HStack, Progress, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group, Badge as Badge$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, Separator as Separator$1, useFieldContext, PopoverAnchor, Portal, useDialogContext, InputElement, Input as Input$1, useFilter, useListCollection, useCombobox, useComboboxContext, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, ListItem, Menu as Menu$1, useMenuContext as useMenuContext$1, NativeSelect as NativeSelect$1, useControllableState, RadioGroup as RadioGroup$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, Link, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, ChakraProvider, Table as Table$1, Toaster as Toaster$1, Toast } from '@chakra-ui/react';
1
+ import { Accordion as Accordion$1, defineRecipe, chakra, Code as Code$1, Clipboard as Clipboard$1, RadioCard as RadioCard$1, defineStyle, Field, Dialog, createContext as createContext$1, Drawer as Drawer$1, Combobox, Fieldset as Fieldset$1, createListCollection, Select as Select$1, List as List$1, Popover as Popover$1, createToaster, Tabs as Tabs$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, Tooltip as Tooltip$1, IconButton as IconButton$1, defineConfig, Center, Box, ClientOnly, VisuallyHidden, useSlotRecipe, Stack, HStack, Progress, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group, Badge as Badge$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, Separator as Separator$1, useFieldContext, PopoverAnchor, Portal, useDialogContext, InputElement, Input as Input$1, useFilter, useListCollection, useCombobox, useComboboxContext, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Tag, ListItem, Menu as Menu$1, useMenuContext as useMenuContext$1, NativeSelect as NativeSelect$1, useControllableState, RadioGroup as RadioGroup$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, Link, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, ChakraProvider, Table as Table$1, Toaster as Toaster$1, Toast } from '@chakra-ui/react';
2
2
  export { AspectRatio, Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, ClientOnly, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Icon, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableCaption, TableCell, TableColumn, TableColumnGroup, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, Wrap, createIcon, createListCollection, createSystem, defineConfig, defineRecipe, defineSlotRecipe, defineStyle, mergeConfigs, chakra as spor, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useRecipe, useSlotRecipe, useToken } from '@chakra-ui/react';
3
3
  import * as spor_icon_react_star from '@vygruppen/spor-icon-react';
4
4
  import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, SearchOutline24Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill24Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, InformationFill24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon } from '@vygruppen/spor-icon-react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import * as React13 from 'react';
7
- import React13__default, { createContext, useId, isValidElement, cloneElement, useContext, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
7
+ import React13__default, { createContext, useContext, useId, cloneElement, isValidElement, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
8
8
  import { spinnerColorData, inlineLoaderColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, spinnerLightData, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData } from '@vygruppen/spor-loader';
9
9
  import ReactLottie from 'lottie-react';
10
10
  import { useInterval } from 'usehooks-ts';
@@ -208,8 +208,8 @@ function useTranslation() {
208
208
  };
209
209
  return { t, language };
210
210
  }
211
- function createTexts(texts28) {
212
- return texts28;
211
+ function createTexts(texts27) {
212
+ return texts27;
213
213
  }
214
214
  function Lottie({ animationData }) {
215
215
  return /* @__PURE__ */ jsx(ReactLottie, { animationData });
@@ -1081,11 +1081,7 @@ var AlertIcon = ({
1081
1081
  variant,
1082
1082
  customIcon: CustomAlertIcon
1083
1083
  }) => {
1084
- const { t } = useTranslation();
1085
- return /* @__PURE__ */ jsxs(Box, { ref, children: [
1086
- /* @__PURE__ */ jsx(VisuallyHidden$1, { children: t(texts5[variant]) }),
1087
- CustomAlertIcon ? /* @__PURE__ */ jsx(CustomAlertIcon, { color: `alert.${variant}.icon` }) : /* @__PURE__ */ jsx(BaseAlertIcon, { variant })
1088
- ] });
1084
+ return /* @__PURE__ */ jsx(Box, { ref, children: CustomAlertIcon ? /* @__PURE__ */ jsx(CustomAlertIcon, { color: `alert.${variant}.icon` }) : /* @__PURE__ */ jsx(BaseAlertIcon, { variant }) });
1089
1085
  };
1090
1086
  var BaseAlertIcon = ({
1091
1087
  variant
@@ -1128,56 +1124,6 @@ var BaseAlertIcon = ({
1128
1124
  }
1129
1125
  }
1130
1126
  };
1131
- var texts5 = createTexts({
1132
- info: {
1133
- nb: "Informasjon",
1134
- nn: "Informasjon",
1135
- sv: "Information",
1136
- en: "Information"
1137
- },
1138
- success: {
1139
- nb: "Suksess",
1140
- nn: "Suksess",
1141
- sv: "Succ\xE9",
1142
- en: "Success"
1143
- },
1144
- important: {
1145
- nb: "Viktig",
1146
- nn: "Viktig",
1147
- sv: "Viktig",
1148
- en: "Important"
1149
- },
1150
- alt: {
1151
- nb: "Alternativ",
1152
- nn: "Alternativ",
1153
- sv: "Alternativ",
1154
- en: "Alternative"
1155
- },
1156
- error: {
1157
- nb: "Feil",
1158
- nn: "Feil",
1159
- sv: "Fel",
1160
- en: "Error"
1161
- },
1162
- "error-secondary": {
1163
- nb: "Feil",
1164
- nn: "Feil",
1165
- sv: "Fel",
1166
- en: "Error"
1167
- },
1168
- neutral: {
1169
- nb: "N\xF8ytral",
1170
- nn: "N\xF8ytral",
1171
- sv: "Neutral",
1172
- en: "Neutral"
1173
- },
1174
- service: {
1175
- nb: "Service",
1176
- nn: "Service",
1177
- sv: "Service",
1178
- en: "Service"
1179
- }
1180
- });
1181
1127
  var Alert = ({
1182
1128
  ref,
1183
1129
  ...props
@@ -1343,7 +1289,7 @@ var ServiceAlert = ({
1343
1289
  maxWidth: contentWidth,
1344
1290
  children: [
1345
1291
  /* @__PURE__ */ jsxs(HStack, { as: headingLevel, alignItems: "center", gap: "1", children: [
1346
- variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(texts6.service) }) : /* @__PURE__ */ jsx(WarningFill24Icon, { "aria-label": t(texts6["global-deviation"]) }),
1292
+ variant === "service" ? /* @__PURE__ */ jsx(ServiceFill24Icon, { "aria-label": t(texts5.service) }) : /* @__PURE__ */ jsx(WarningFill24Icon, { "aria-label": t(texts5["global-deviation"]) }),
1347
1293
  /* @__PURE__ */ jsx(
1348
1294
  Span,
1349
1295
  {
@@ -1360,7 +1306,7 @@ var ServiceAlert = ({
1360
1306
  )
1361
1307
  ] }),
1362
1308
  /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: [0.5, null, null, 1], children: [
1363
- notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(texts6.notification(notification)) }),
1309
+ notification && /* @__PURE__ */ jsx(Text, { css: styles.notificationText, children: t(texts5.notification(notification)) }),
1364
1310
  /* @__PURE__ */ jsx(Accordion$1.ItemIndicator, { children: /* @__PURE__ */ jsx(DropdownDownFill24Icon, { color: "icon.inverted" }) })
1365
1311
  ] })
1366
1312
  ]
@@ -1371,7 +1317,7 @@ var ServiceAlert = ({
1371
1317
  }
1372
1318
  );
1373
1319
  };
1374
- var texts6 = createTexts({
1320
+ var texts5 = createTexts({
1375
1321
  notification: (notification) => {
1376
1322
  const numberNotification = Number(notification);
1377
1323
  return {
@@ -1638,7 +1584,7 @@ var Separator = ({
1638
1584
  ref,
1639
1585
  ...props
1640
1586
  }) => {
1641
- return /* @__PURE__ */ jsx(Separator$1, { ...props, ref, "data-": true });
1587
+ return /* @__PURE__ */ jsx(Separator$1, { "aria-hidden": "true", ...props, ref, "data-": true });
1642
1588
  };
1643
1589
  var StaticCard = ({
1644
1590
  ref,
@@ -1831,7 +1777,7 @@ function CalendarHeader({ dualView }) {
1831
1777
  variant: "ghost",
1832
1778
  marginLeft: 1,
1833
1779
  disabled: prevButtonProps.isDisabled,
1834
- "aria-label": t(texts7.previousMonth),
1780
+ "aria-label": t(texts6.previousMonth),
1835
1781
  icon: /* @__PURE__ */ jsx(icons_exports.DropdownLeftFill24Icon, {})
1836
1782
  }
1837
1783
  ),
@@ -1873,7 +1819,7 @@ function CalendarHeader({ dualView }) {
1873
1819
  marginRight: 1,
1874
1820
  variant: "ghost",
1875
1821
  disabled: nextButtonProps.isDisabled,
1876
- "aria-label": t(texts7.nextMonth),
1822
+ "aria-label": t(texts6.nextMonth),
1877
1823
  icon: /* @__PURE__ */ jsx(icons_exports.DropdownRightFill24Icon, {})
1878
1824
  }
1879
1825
  )
@@ -1881,7 +1827,7 @@ function CalendarHeader({ dualView }) {
1881
1827
  }
1882
1828
  );
1883
1829
  }
1884
- var texts7 = createTexts({
1830
+ var texts6 = createTexts({
1885
1831
  previousMonth: {
1886
1832
  nb: "Forrige m\xE5ned",
1887
1833
  nn: "F\xF8rre m\xE5nad",
@@ -2366,7 +2312,7 @@ var CalendarNavigator = ({
2366
2312
  onPress: onPrevious,
2367
2313
  isDisabled: isPreviousDisabled,
2368
2314
  icon: /* @__PURE__ */ jsx(ArrowLeftOutline24Icon, {}),
2369
- "aria-label": `${t(texts8.previous)} ${t(texts8[unit])}`
2315
+ "aria-label": `${t(texts7.previous)} ${t(texts7[unit])}`
2370
2316
  }
2371
2317
  ),
2372
2318
  /* @__PURE__ */ jsx(
@@ -2387,12 +2333,12 @@ var CalendarNavigator = ({
2387
2333
  onPress: onNext,
2388
2334
  isDisabled: isNextDisabled,
2389
2335
  icon: /* @__PURE__ */ jsx(ArrowRightOutline24Icon, {}),
2390
- "aria-label": `${t(texts8.next)} ${t(texts8[unit])}`
2336
+ "aria-label": `${t(texts7.next)} ${t(texts7[unit])}`
2391
2337
  }
2392
2338
  )
2393
2339
  ] });
2394
2340
  };
2395
- var texts8 = createTexts({
2341
+ var texts7 = createTexts({
2396
2342
  previous: {
2397
2343
  nb: "Forrige",
2398
2344
  nn: "Forrige",
@@ -2437,7 +2383,7 @@ function Calendar2({
2437
2383
  const styles = recipe({ variant });
2438
2384
  const { calendarProps } = useCalendar$1(props, state);
2439
2385
  const calendarAriaLabel = calendarProps["aria-label"];
2440
- const ariaLabel = t(texts9.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2386
+ const ariaLabel = t(texts8.calendar) + (calendarAriaLabel ? ` ${calendarAriaLabel}` : "");
2441
2387
  return /* @__PURE__ */ jsxs(
2442
2388
  Box,
2443
2389
  {
@@ -2451,7 +2397,7 @@ function Calendar2({
2451
2397
  }
2452
2398
  );
2453
2399
  }
2454
- var texts9 = createTexts({
2400
+ var texts8 = createTexts({
2455
2401
  calendar: {
2456
2402
  nb: "Kalender",
2457
2403
  nn: "Kalender",
@@ -2477,14 +2423,14 @@ var CalendarTriggerButton = ({
2477
2423
  IconButton,
2478
2424
  {
2479
2425
  icon: /* @__PURE__ */ jsx(CalendarOutline24Icon, {}),
2480
- "aria-label": t(texts10.openCalendar),
2426
+ "aria-label": t(texts9.openCalendar),
2481
2427
  css: styles.calendarTriggerButton,
2482
2428
  variant: "ghost",
2483
2429
  disabled
2484
2430
  }
2485
2431
  ) });
2486
2432
  };
2487
- var texts10 = createTexts({
2433
+ var texts9 = createTexts({
2488
2434
  openCalendar: {
2489
2435
  nb: "\xC5pne kalender",
2490
2436
  nn: "\xC5pne kalendar",
@@ -2593,7 +2539,7 @@ var DateField = ({
2593
2539
  )
2594
2540
  ] });
2595
2541
  };
2596
- var texts11 = createTexts({
2542
+ var texts10 = createTexts({
2597
2543
  day: {
2598
2544
  nb: "Velg dag",
2599
2545
  nn: "Vel dag",
@@ -2616,16 +2562,16 @@ var texts11 = createTexts({
2616
2562
  var getAriaLabel = (segmentType) => {
2617
2563
  switch (segmentType) {
2618
2564
  case "day": {
2619
- return texts11.day;
2565
+ return texts10.day;
2620
2566
  }
2621
2567
  case "month": {
2622
- return texts11.month;
2568
+ return texts10.month;
2623
2569
  }
2624
2570
  case "year": {
2625
- return texts11.year;
2571
+ return texts10.year;
2626
2572
  }
2627
2573
  default: {
2628
- return texts11.day;
2574
+ return texts10.day;
2629
2575
  }
2630
2576
  }
2631
2577
  };
@@ -2960,7 +2906,7 @@ var TimePicker = ({
2960
2906
  const isDisabled = isDisabledExternally ?? fieldDisabled ?? false;
2961
2907
  const { t } = useTranslation();
2962
2908
  const locale = useCurrentLocale();
2963
- const label = externalLabel ?? t(texts12.time);
2909
+ const label = externalLabel ?? t(texts11.time);
2964
2910
  const state = useTimeFieldState({
2965
2911
  value,
2966
2912
  defaultValue,
@@ -2993,15 +2939,15 @@ var TimePicker = ({
2993
2939
  })
2994
2940
  );
2995
2941
  };
2996
- const backwardsLabel = `${t(texts12.backwards)} ${minuteInterval} ${t(
2997
- texts12.minutes
2942
+ const backwardsLabel = `${t(texts11.backwards)} ${minuteInterval} ${t(
2943
+ texts11.minutes
2998
2944
  )}`;
2999
- const forwardsLabel = `${t(texts12.forwards)} ${minuteInterval} ${t(
3000
- texts12.minutes
2945
+ const forwardsLabel = `${t(texts11.forwards)} ${minuteInterval} ${t(
2946
+ texts11.minutes
3001
2947
  )}`;
3002
- const inputLabel = label ?? t(texts12.time);
2948
+ const inputLabel = label ?? t(texts11.time);
3003
2949
  const ariaLabel = `${inputLabel} \u2013 ${t(
3004
- texts12.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
2950
+ texts11.selectedTimeIs(`${(dateTime == null ? void 0 : dateTime.hour) ?? 0} ${(dateTime == null ? void 0 : dateTime.minute) ?? 0}`)
3005
2951
  )}`;
3006
2952
  return /* @__PURE__ */ jsx(Field3, { as: "time", ...boxProps, children: /* @__PURE__ */ jsxs(
3007
2953
  StyledField,
@@ -3054,7 +3000,7 @@ var TimePicker = ({
3054
3000
  }
3055
3001
  ) });
3056
3002
  };
3057
- var texts12 = createTexts({
3003
+ var texts11 = createTexts({
3058
3004
  selectedTimeIs: (time) => ({
3059
3005
  nb: `Valgt tidspunkt er ${time}`,
3060
3006
  nn: `Valt tidspunkt er ${time}`,
@@ -3195,7 +3141,7 @@ var DrawerCloseTrigger = function DrawerCloseTrigger2({
3195
3141
  {
3196
3142
  variant: "ghost",
3197
3143
  icon: /* @__PURE__ */ jsx(CloseFill24Icon, {}),
3198
- label: t(texts13.close)
3144
+ label: t(texts12.close)
3199
3145
  }
3200
3146
  ) : /* @__PURE__ */ jsx(CloseButton, { size: "md" }) });
3201
3147
  };
@@ -3209,7 +3155,7 @@ var DrawerBackTrigger = ({
3209
3155
  {
3210
3156
  variant: "ghost",
3211
3157
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
3212
- label: t(texts13.back)
3158
+ label: t(texts12.back)
3213
3159
  }
3214
3160
  ) });
3215
3161
  };
@@ -3241,7 +3187,7 @@ var DrawerBackdrop = Drawer$1.Backdrop;
3241
3187
  var DrawerTitle = Drawer$1.Title;
3242
3188
  var DrawerActionTrigger = Drawer$1.ActionTrigger;
3243
3189
  var DrawerHeader = Drawer$1.Header;
3244
- var texts13 = createTexts({
3190
+ var texts12 = createTexts({
3245
3191
  back: {
3246
3192
  en: "Back",
3247
3193
  nb: "Tilbake",
@@ -3557,10 +3503,10 @@ function Autocomplete({
3557
3503
  }
3558
3504
  }
3559
3505
  ) }),
3560
- /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts14.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3506
+ /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts13.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
3561
3507
  ] }),
3562
3508
  /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [
3563
- !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts14.noItemsFound) }),
3509
+ !loading && /* @__PURE__ */ jsx(Combobox.Empty, { children: emptyLabel ?? t(texts13.noItemsFound) }),
3564
3510
  loading ? /* @__PURE__ */ jsx(ColorSpinner, { width: "1.5rem", p: "2" }) : filteredChildren
3565
3511
  ] }) })
3566
3512
  ] });
@@ -3619,7 +3565,7 @@ var extractItemsFromChildren = (children) => {
3619
3565
  });
3620
3566
  return items;
3621
3567
  };
3622
- var texts14 = createTexts({
3568
+ var texts13 = createTexts({
3623
3569
  noItemsFound: {
3624
3570
  nb: "Ingen resultater",
3625
3571
  nn: "Ingen resultat",
@@ -3987,6 +3933,19 @@ var FieldsetLegend = Fieldset$1.Legend;
3987
3933
  var FieldsetContent = Fieldset$1.Content;
3988
3934
  var FieldsetHelperText = Fieldset$1.HelperText;
3989
3935
  var FieldsetErrorText = Fieldset$1.ErrorText;
3936
+ var InputChip = ({
3937
+ startIcon,
3938
+ endIcon,
3939
+ children,
3940
+ ref,
3941
+ ...rest
3942
+ }) => {
3943
+ return /* @__PURE__ */ jsxs(Tag.Root, { ref, ...rest, as: "button", children: [
3944
+ startIcon && /* @__PURE__ */ jsx(Tag.StartElement, { children: /* @__PURE__ */ jsx(Box, { as: startIcon }) }),
3945
+ /* @__PURE__ */ jsx(Tag.Label, { children }),
3946
+ endIcon && /* @__PURE__ */ jsx(Tag.EndElement, { children: /* @__PURE__ */ jsx(Box, { as: endIcon }) })
3947
+ ] });
3948
+ };
3990
3949
  var ListBox = (props) => {
3991
3950
  const { loading, listBoxRef, state, maxWidth, variant, children } = props;
3992
3951
  const { listBoxProps } = useListBox(props, state, listBoxRef);
@@ -4358,7 +4317,7 @@ var NumericStepper = ({
4358
4317
  {
4359
4318
  icon: /* @__PURE__ */ jsx(SubtractIcon, { stepLabel: clampedStepSize }),
4360
4319
  "aria-label": t(
4361
- texts15.decrementButtonAriaLabel(
4320
+ texts14.decrementButtonAriaLabel(
4362
4321
  clampedStepSize,
4363
4322
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4364
4323
  )
@@ -4385,7 +4344,7 @@ var NumericStepper = ({
4385
4344
  css: styles.input,
4386
4345
  width: `${Math.max(value.toString().length + 1, 3)}ch`,
4387
4346
  "aria-live": "assertive",
4388
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4347
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4389
4348
  onChange: (event) => {
4390
4349
  const numericInput = Number(event.target.value);
4391
4350
  if (Number.isNaN(numericInput)) {
@@ -4403,7 +4362,7 @@ var NumericStepper = ({
4403
4362
  {
4404
4363
  "aria-live": "assertive",
4405
4364
  paddingX: "0.95rem",
4406
- "aria-label": ariaLabelContext.plural === "" ? "" : t(texts15.currentNumberAriaLabel(ariaLabelContext.plural)),
4365
+ "aria-label": ariaLabelContext.plural === "" ? "" : t(texts14.currentNumberAriaLabel(ariaLabelContext.plural)),
4407
4366
  children: value
4408
4367
  }
4409
4368
  ),
@@ -4413,7 +4372,7 @@ var NumericStepper = ({
4413
4372
  ref: addButtonRef,
4414
4373
  icon: /* @__PURE__ */ jsx(AddIcon, { stepLabel: clampedStepSize }),
4415
4374
  "aria-label": t(
4416
- texts15.incrementButtonAriaLabel(
4375
+ texts14.incrementButtonAriaLabel(
4417
4376
  clampedStepSize,
4418
4377
  stepSize === 1 ? ariaLabelContext.singular : ariaLabelContext.plural
4419
4378
  )
@@ -4487,7 +4446,7 @@ var AddIcon = ({ stepLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
4487
4446
  ] }),
4488
4447
  stepLabel > 1 && /* @__PURE__ */ jsx(chakra.span, { paddingRight: "1", children: stepLabel.toString() })
4489
4448
  ] });
4490
- var texts15 = createTexts({
4449
+ var texts14 = createTexts({
4491
4450
  currentNumberAriaLabel(ariaContext) {
4492
4451
  return {
4493
4452
  nb: `Valgt antall ${ariaContext}`,
@@ -4551,7 +4510,7 @@ var PasswordInput = ({
4551
4510
  event.preventDefault();
4552
4511
  setVisible(!visible);
4553
4512
  },
4554
- children: visible ? t(texts16.hidePassword) : t(texts16.showPassword)
4513
+ children: visible ? t(texts15.hidePassword) : t(texts15.showPassword)
4555
4514
  }
4556
4515
  ),
4557
4516
  ...rest
@@ -4576,7 +4535,7 @@ var VisibilityTrigger = ({
4576
4535
  }
4577
4536
  );
4578
4537
  };
4579
- var texts16 = createTexts({
4538
+ var texts15 = createTexts({
4580
4539
  showPassword: {
4581
4540
  nb: "Vis",
4582
4541
  nn: "Vis",
@@ -4628,14 +4587,14 @@ var CountryCodeSelect = ({
4628
4587
  positioning: { placement: "bottom", flip: false },
4629
4588
  collection: filteredCallingCodes,
4630
4589
  lazyMount: true,
4631
- "aria-label": t(texts17.countryCode),
4590
+ "aria-label": t(texts16.countryCode),
4632
4591
  sideRadiusVariant: "rightSideSquare",
4633
4592
  role: "combobox",
4634
4593
  children: filteredCallingCodes.items.map((code) => /* @__PURE__ */ jsx(SelectItem, { item: code, children: code.label }, code.label))
4635
4594
  }
4636
4595
  );
4637
4596
  };
4638
- var texts17 = createTexts({
4597
+ var texts16 = createTexts({
4639
4598
  countryCode: {
4640
4599
  nb: "Landkode",
4641
4600
  nn: "Landskode",
@@ -4658,7 +4617,7 @@ var PhoneNumberInput = ({
4658
4617
  errorText
4659
4618
  } = props;
4660
4619
  const { t } = useTranslation();
4661
- const label = externalLabel ?? (optional ? t(texts18.phoneNumberOptional) : t(texts18.phoneNumber));
4620
+ const label = externalLabel ?? (optional ? t(texts17.phoneNumberOptional) : t(texts17.phoneNumber));
4662
4621
  const [value, onChange] = useControllableState({
4663
4622
  value: externalValue,
4664
4623
  onChange: externalOnChange,
@@ -4713,7 +4672,7 @@ var PhoneNumberInput = ({
4713
4672
  )
4714
4673
  ] });
4715
4674
  };
4716
- var texts18 = createTexts({
4675
+ var texts17 = createTexts({
4717
4676
  phoneNumber: {
4718
4677
  nb: "Telefonnummer",
4719
4678
  nn: "Telefonnummer",
@@ -4765,16 +4724,16 @@ var SearchInput = ({
4765
4724
  variant: "ghost",
4766
4725
  type: "button",
4767
4726
  size: "sm",
4768
- "aria-label": t(texts19.reset),
4727
+ "aria-label": t(texts18.reset),
4769
4728
  icon: /* @__PURE__ */ jsx(CloseOutline24Icon, {}),
4770
4729
  onClick: onReset
4771
4730
  }
4772
4731
  ),
4773
- label: label ?? t(texts19.label)
4732
+ label: label ?? t(texts18.label)
4774
4733
  }
4775
4734
  );
4776
4735
  };
4777
- var texts19 = createTexts({
4736
+ var texts18 = createTexts({
4778
4737
  label: {
4779
4738
  nb: "S\xF8k",
4780
4739
  nn: "S\xF8k",
@@ -4824,7 +4783,7 @@ var Select = ({
4824
4783
  css: styles.root,
4825
4784
  position: "relative",
4826
4785
  children: [
4827
- /* @__PURE__ */ jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsx(SelectValueText, { withPlaceholder: label ? true : false }) }),
4786
+ /* @__PURE__ */ jsx(SelectTrigger, { "data-attachable": true, children: /* @__PURE__ */ jsx(SelectValueText, { withPlaceholder: !!label }) }),
4828
4787
  label && /* @__PURE__ */ jsx(SelectLabel, { css: styles.label, children: label }),
4829
4788
  /* @__PURE__ */ jsx(SelectContent, { css: styles.selectContent, baseStyle: css, children })
4830
4789
  ]
@@ -4839,7 +4798,7 @@ var SelectLabel = (props) => {
4839
4798
  Select$1.Label,
4840
4799
  {
4841
4800
  ...props,
4842
- "data-selected": value.length > 0 ? true : void 0
4801
+ "data-selected": value.length > 0 || void 0
4843
4802
  }
4844
4803
  );
4845
4804
  };
@@ -4850,14 +4809,19 @@ var SelectItem = ({
4850
4809
  const { item, children, description, ...rest } = props;
4851
4810
  const recipe = useSlotRecipe({ key: "select" });
4852
4811
  const styles = recipe();
4812
+ const selectContext = useSelectContext();
4813
+ const multiple = selectContext.multiple;
4814
+ const isSelected = selectContext.value.includes(item.value);
4853
4815
  return /* @__PURE__ */ jsxs(Select$1.Item, { item, ...rest, ref, css: styles.item, children: [
4816
+ multiple && /* @__PURE__ */ jsx(Checkbox$1.Root, { checked: isSelected, pointerEvents: "none", children: /* @__PURE__ */ jsx(Checkbox$1.Control, { children: /* @__PURE__ */ jsx(Checkbox$1.Indicator, {}) }) }),
4854
4817
  /* @__PURE__ */ jsxs(Box, { width: "100%", children: [
4855
4818
  /* @__PURE__ */ jsx(Select$1.ItemText, { display: "flex", children }),
4856
4819
  description && /* @__PURE__ */ jsx(Box, { "data-part": "item-description", css: styles.itemDescription, children: description })
4857
4820
  ] }),
4858
- /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckmarkFill18Icon, {}) })
4821
+ !multiple && /* @__PURE__ */ jsx(Select$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckmarkFill18Icon, {}) })
4859
4822
  ] });
4860
4823
  };
4824
+ SelectItem.displayName = "SelectItem";
4861
4825
  var SelectItemGroup = function SelectItemGroup2({
4862
4826
  ref,
4863
4827
  ...props
@@ -4916,6 +4880,8 @@ var SelectValueText = function SelectValueText2({
4916
4880
  ...props
4917
4881
  }) {
4918
4882
  const { children, withPlaceholder, placeholder, ...rest } = props;
4883
+ const selectContext = useSelectContext();
4884
+ const multiple = selectContext.multiple;
4919
4885
  return /* @__PURE__ */ jsx(
4920
4886
  Select$1.ValueText,
4921
4887
  {
@@ -4929,9 +4895,20 @@ var SelectValueText = function SelectValueText2({
4929
4895
  return placeholder;
4930
4896
  if (children)
4931
4897
  return children(items);
4932
- if (items.length === 1)
4898
+ if (multiple) {
4899
+ return /* @__PURE__ */ jsx(Flex, { gap: 0.5, marginBottom: 1, children: items.map((item) => /* @__PURE__ */ jsx(
4900
+ Badge,
4901
+ {
4902
+ size: "sm",
4903
+ colorPalette: "green",
4904
+ children: select.collection.stringifyItem(item)
4905
+ },
4906
+ select.collection.stringifyItem(item)
4907
+ )) });
4908
+ }
4909
+ if (items.length === 1) {
4933
4910
  return select.collection.stringifyItem(items[0]);
4934
- return `${items.length} selected`;
4911
+ }
4935
4912
  } })
4936
4913
  }
4937
4914
  );
@@ -4950,6 +4927,9 @@ var Switch = ({
4950
4927
  errorText,
4951
4928
  helperText,
4952
4929
  css,
4930
+ "aria-label": ariaLabel,
4931
+ "aria-labelledby": ariaLabelledby,
4932
+ "aria-describedby": ariaDescribedby,
4953
4933
  ...rest
4954
4934
  } = props;
4955
4935
  const recipe = useSlotRecipe({ key: "switch" });
@@ -4972,7 +4952,15 @@ var Switch = ({
4972
4952
  checked: props.checked,
4973
4953
  css: styles.root,
4974
4954
  children: [
4975
- /* @__PURE__ */ jsx(Switch$1.HiddenInput, { ref }),
4955
+ /* @__PURE__ */ jsx(
4956
+ Switch$1.HiddenInput,
4957
+ {
4958
+ ref,
4959
+ "aria-label": ariaLabel,
4960
+ "aria-labelledby": ariaLabelledby,
4961
+ "aria-describedby": ariaDescribedby
4962
+ }
4963
+ ),
4976
4964
  /* @__PURE__ */ jsx(Switch$1.Control, { css: styles.control, children: /* @__PURE__ */ jsx(Switch$1.Thumb, {}) }),
4977
4965
  label && /* @__PURE__ */ jsx(Switch$1.Label, { children: label })
4978
4966
  ]
@@ -5297,7 +5285,7 @@ var TextLink = ({
5297
5285
  }) => {
5298
5286
  const { t } = useTranslation();
5299
5287
  const isExternal = external ?? Boolean((href == null ? void 0 : href.startsWith("http://")) || (href == null ? void 0 : href.startsWith("https://")));
5300
- const externalLabel = t ? t(texts20.externalLink) : texts20.externalLink.en;
5288
+ const externalLabel = t ? t(texts19.externalLink) : texts19.externalLink.en;
5301
5289
  if (props.asChild && isValidElement(children)) {
5302
5290
  return /* @__PURE__ */ jsx(
5303
5291
  Link,
@@ -5336,7 +5324,7 @@ var TextLink = ({
5336
5324
  }
5337
5325
  );
5338
5326
  };
5339
- var texts20 = createTexts({
5327
+ var texts19 = createTexts({
5340
5328
  externalLink: {
5341
5329
  nb: "Ekstern lenke",
5342
5330
  nn: "Ekstern lenke",
@@ -5853,14 +5841,14 @@ var JumpButton = ({
5853
5841
  as: "button",
5854
5842
  ref,
5855
5843
  css: styles.root,
5856
- "aria-label": direction === "forward" ? t(texts21.forward) : t(texts21.backward),
5844
+ "aria-label": direction === "forward" ? t(texts20.forward) : t(texts20.backward),
5857
5845
  disabled,
5858
5846
  ...props,
5859
5847
  children: direction === "forward" ? /* @__PURE__ */ jsx(Forward15MediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(Backward15MediaControllerFill30Icon, { css: styles.icon })
5860
5848
  }
5861
5849
  );
5862
5850
  };
5863
- var texts21 = createTexts({
5851
+ var texts20 = createTexts({
5864
5852
  forward: {
5865
5853
  nb: "15 sekunder frem",
5866
5854
  nn: "15 sekunder fram",
@@ -5888,14 +5876,14 @@ var PlayPauseButton = ({
5888
5876
  ref,
5889
5877
  as: "button",
5890
5878
  css: styles.root,
5891
- "aria-label": playing ? t(texts22.pause) : t(texts22.play),
5879
+ "aria-label": playing ? t(texts21.pause) : t(texts21.play),
5892
5880
  disabled,
5893
5881
  ...props,
5894
5882
  children: playing ? /* @__PURE__ */ jsx(PauseMediaControllerFill24Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PlayMediaControllerFill24Icon, { css: styles.icon })
5895
5883
  }
5896
5884
  );
5897
5885
  };
5898
- var texts22 = createTexts({
5886
+ var texts21 = createTexts({
5899
5887
  pause: {
5900
5888
  nb: "Pause",
5901
5889
  nn: "Pause",
@@ -5923,14 +5911,14 @@ var SkipButton = ({
5923
5911
  ref,
5924
5912
  as: "button",
5925
5913
  css: styles.root,
5926
- "aria-label": direction === "forward" ? t(texts23.next) : t(texts23.previous),
5914
+ "aria-label": direction === "forward" ? t(texts22.next) : t(texts22.previous),
5927
5915
  disabled,
5928
5916
  ...props,
5929
5917
  children: direction === "forward" ? /* @__PURE__ */ jsx(NextMediaControllerFill30Icon, { css: styles.icon }) : /* @__PURE__ */ jsx(PreviousMediaControllerFill30Icon, { css: styles.icon })
5930
5918
  }
5931
5919
  );
5932
5920
  };
5933
- var texts23 = createTexts({
5921
+ var texts22 = createTexts({
5934
5922
  next: {
5935
5923
  nb: "Neste",
5936
5924
  nn: "Neste",
@@ -6045,7 +6033,7 @@ var NudgeActions = ({ ...props }) => {
6045
6033
  var NextButton = ({ isLastStep, onNext }) => {
6046
6034
  const { t } = useTranslation();
6047
6035
  if (isLastStep)
6048
- return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts24.close) }) });
6036
+ return /* @__PURE__ */ jsx(PopoverCloseTrigger, { children: /* @__PURE__ */ jsx(Button, { variant: "tertiary", size: "xs", children: t(texts23.close) }) });
6049
6037
  return /* @__PURE__ */ jsx(
6050
6038
  Button,
6051
6039
  {
@@ -6053,11 +6041,11 @@ var NextButton = ({ isLastStep, onNext }) => {
6053
6041
  size: "xs",
6054
6042
  rightIcon: /* @__PURE__ */ jsx(ArrowRightFill18Icon, {}),
6055
6043
  onClick: onNext,
6056
- children: t(texts24.nextStep)
6044
+ children: t(texts23.nextStep)
6057
6045
  }
6058
6046
  );
6059
6047
  };
6060
- var texts24 = createTexts({
6048
+ var texts23 = createTexts({
6061
6049
  nextStep: {
6062
6050
  nb: "Neste",
6063
6051
  nn: "Neste",
@@ -6133,7 +6121,7 @@ var PaginationItem = ({
6133
6121
  to: rootProps.getHref(props.value)
6134
6122
  },
6135
6123
  ref,
6136
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6124
+ "aria-label": t(texts24.pageOf(props.value, totalPages)),
6137
6125
  ...props,
6138
6126
  children: props.value
6139
6127
  }
@@ -6144,7 +6132,7 @@ var PaginationItem = ({
6144
6132
  {
6145
6133
  as: props.as ?? "button",
6146
6134
  ref,
6147
- "aria-label": t(texts25.pageOf(props.value, totalPages)),
6135
+ "aria-label": t(texts24.pageOf(props.value, totalPages)),
6148
6136
  "aria-current": page === props.value,
6149
6137
  ...props,
6150
6138
  children: props.value
@@ -6174,7 +6162,7 @@ var PaginationPrevTrigger = ({
6174
6162
  },
6175
6163
  ref,
6176
6164
  css: styles.item,
6177
- "aria-label": t(texts25.previousPage),
6165
+ "aria-label": t(texts24.previousPage),
6178
6166
  ...props,
6179
6167
  children: /* @__PURE__ */ jsx(DropdownLeftOutline18Icon, {})
6180
6168
  }
@@ -6185,7 +6173,7 @@ var PaginationPrevTrigger = ({
6185
6173
  {
6186
6174
  ref,
6187
6175
  asChild: true,
6188
- "aria-label": t(texts25.previousPage),
6176
+ "aria-label": t(texts24.previousPage),
6189
6177
  as: props.as || "button",
6190
6178
  css: styles.item,
6191
6179
  ...props,
@@ -6214,7 +6202,7 @@ var PaginationNextTrigger = ({
6214
6202
  to: rootProps.getHref(props.value)
6215
6203
  },
6216
6204
  css: styles.item,
6217
- "aria-label": t(texts25.nextPage),
6205
+ "aria-label": t(texts24.nextPage),
6218
6206
  ...props,
6219
6207
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
6220
6208
  }
@@ -6225,7 +6213,7 @@ var PaginationNextTrigger = ({
6225
6213
  {
6226
6214
  ref,
6227
6215
  css: styles.item,
6228
- "aria-label": t(texts25.nextPage),
6216
+ "aria-label": t(texts24.nextPage),
6229
6217
  as: props.as || "button",
6230
6218
  ...props,
6231
6219
  children: /* @__PURE__ */ jsx(DropdownRightOutline18Icon, {})
@@ -6252,7 +6240,7 @@ var PaginationItems = (props) => {
6252
6240
  );
6253
6241
  }) });
6254
6242
  };
6255
- var texts25 = createTexts({
6243
+ var texts24 = createTexts({
6256
6244
  previousPage: {
6257
6245
  nb: "Forrige side",
6258
6246
  nn: "F\xF8rre side",
@@ -6343,7 +6331,7 @@ var ProgressIndicator = ({
6343
6331
  "aria-valuemin": 1,
6344
6332
  "aria-valuemax": numberOfSteps,
6345
6333
  "aria-valuenow": activeStep,
6346
- "aria-valuetext": t(texts26.stepsOf(activeStep, numberOfSteps)),
6334
+ "aria-valuetext": t(texts25.stepsOf(activeStep, numberOfSteps)),
6347
6335
  ref,
6348
6336
  children: /* @__PURE__ */ jsx(Box, { css: { ...styles.container, ...css }, children: Array.from({ length: numberOfSteps }, (_, index) => /* @__PURE__ */ jsx(
6349
6337
  Box,
@@ -6362,7 +6350,7 @@ var ProgressIndicator = ({
6362
6350
  }
6363
6351
  );
6364
6352
  };
6365
- var texts26 = createTexts({
6353
+ var texts25 = createTexts({
6366
6354
  stepsOf: (activeStep, numberOfSteps) => ({
6367
6355
  nb: `Steg ${activeStep} av ${numberOfSteps}`,
6368
6356
  nn: `Steg ${activeStep} av ${numberOfSteps}`,
@@ -6452,18 +6440,23 @@ var createToast = ({
6452
6440
  text,
6453
6441
  variant,
6454
6442
  id,
6455
- duration = 6e3
6443
+ duration = 6e3,
6444
+ width = "sm"
6456
6445
  }) => toaster.create({
6457
6446
  description: text,
6458
6447
  type: variant,
6459
6448
  id: id ?? crypto.randomUUID(),
6460
- duration
6449
+ duration,
6450
+ meta: { width }
6461
6451
  });
6462
6452
  var Toaster = () => {
6463
- return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Toaster$1, { toaster, insetInline: { mdDown: "4" }, children: (toast) => /* @__PURE__ */ jsxs(Toast.Root, { width: { md: "sm" }, role: "alert", children: [
6464
- /* @__PURE__ */ jsx(AlertIcon, { variant: toast.type }),
6465
- /* @__PURE__ */ jsx(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsx(Toast.Description, { children: toast.description }) })
6466
- ] }) }) });
6453
+ return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Toaster$1, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
6454
+ var _a6;
6455
+ return /* @__PURE__ */ jsxs(Toast.Root, { width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width }, role: "alert", children: [
6456
+ /* @__PURE__ */ jsx(AlertIcon, { variant: toast.type }),
6457
+ /* @__PURE__ */ jsx(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsx(Toast.Description, { children: toast.description }) })
6458
+ ] });
6459
+ } }) });
6467
6460
  };
6468
6461
  var SporProvider = ({
6469
6462
  language = "nb" /* NorwegianBokmal */,
@@ -6543,7 +6536,7 @@ var Stepper = function Stepper2({
6543
6536
  /* @__PURE__ */ jsx(
6544
6537
  IconButton,
6545
6538
  {
6546
- "aria-label": t(texts27.back),
6539
+ "aria-label": t(texts26.back),
6547
6540
  icon: /* @__PURE__ */ jsx(ArrowLeftFill24Icon, {}),
6548
6541
  variant: "ghost",
6549
6542
  size: "sm",
@@ -6567,7 +6560,7 @@ var Stepper = function Stepper2({
6567
6560
  children: heading
6568
6561
  }
6569
6562
  ),
6570
- /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts27.stepsOf(activeStep, numberOfSteps)) })
6563
+ /* @__PURE__ */ jsx(Box, { css: style.stepCounter, "data-part": "step-counter", children: t(texts26.stepsOf(activeStep, numberOfSteps)) })
6571
6564
  ]
6572
6565
  }
6573
6566
  ) }),
@@ -6586,7 +6579,7 @@ var Stepper = function Stepper2({
6586
6579
  }
6587
6580
  ) });
6588
6581
  };
6589
- var texts27 = createTexts({
6582
+ var texts26 = createTexts({
6590
6583
  stepsOf: (activeStep, numberOfSteps) => ({
6591
6584
  nb: `Steg ${activeStep}/${numberOfSteps}`,
6592
6585
  nn: `Steg ${activeStep}/${numberOfSteps}`,
@@ -7175,6 +7168,7 @@ var linkRecipe = defineRecipe({
7175
7168
  paddingX: "0.5",
7176
7169
  whiteSpace: "normal",
7177
7170
  wordBreak: "break-word",
7171
+ paddingInline: 0,
7178
7172
  _hover: {
7179
7173
  textDecoration: "none"
7180
7174
  },
@@ -7806,6 +7800,7 @@ var comboboxAnatomy = comboboxAnatomy$1.extendWith(
7806
7800
  "indicatorGroup",
7807
7801
  "empty"
7808
7802
  );
7803
+ var tagAnatomy = createAnatomy("tag").parts("root");
7809
7804
  var menuAnatomy = createAnatomy("menu").parts(
7810
7805
  "trigger",
7811
7806
  "content",
@@ -9756,6 +9751,120 @@ var infoTagSlotRecipe = defineSlotRecipe({
9756
9751
  size: "md"
9757
9752
  }
9758
9753
  });
9754
+ var inputChipSlotRecipe = defineSlotRecipe({
9755
+ slots: tagAnatomy.keys(),
9756
+ className: "chakra-tag",
9757
+ base: {
9758
+ root: {
9759
+ display: "flex",
9760
+ direction: "row",
9761
+ width: "fit-content",
9762
+ height: "fit-content",
9763
+ alignItems: "center",
9764
+ justifyContent: "center",
9765
+ gap: "1",
9766
+ outline: "none",
9767
+ "&:focus": {
9768
+ outline: "2px solid",
9769
+ outlineColor: "outline.focus"
9770
+ }
9771
+ }
9772
+ },
9773
+ variants: {
9774
+ variant: {
9775
+ core: {
9776
+ root: {
9777
+ backgroundColor: "surface",
9778
+ border: "1px solid",
9779
+ borderColor: "outline",
9780
+ "&:hover": {
9781
+ outline: "2px solid",
9782
+ outlineColor: "core.outline.hover"
9783
+ },
9784
+ "&:active": {
9785
+ outline: "none",
9786
+ backgroundColor: "core.surface.active"
9787
+ }
9788
+ }
9789
+ },
9790
+ accent: {
9791
+ root: {
9792
+ backgroundColor: "accent.surface",
9793
+ color: "text.highlight",
9794
+ "& svg": {
9795
+ color: "icon.highlight"
9796
+ },
9797
+ "&:hover": {
9798
+ backgroundColor: "accent.surface.hover"
9799
+ },
9800
+ "&:active": {
9801
+ backgroundColor: "accent.surface.active",
9802
+ outline: "none"
9803
+ }
9804
+ }
9805
+ },
9806
+ brand: {
9807
+ root: {
9808
+ backgroundColor: "brand.surface",
9809
+ color: "text.inverted",
9810
+ "& svg": {
9811
+ color: "icon.inverted"
9812
+ },
9813
+ "&:hover": {
9814
+ backgroundColor: "brand.surface.hover"
9815
+ },
9816
+ "&:active": {
9817
+ backgroundColor: "brand.surface.active",
9818
+ outline: "none"
9819
+ }
9820
+ }
9821
+ }
9822
+ },
9823
+ size: {
9824
+ xs: {
9825
+ root: {
9826
+ fontSize: "desktop.xs",
9827
+ paddingX: "1.5",
9828
+ paddingY: "0",
9829
+ fontWeight: "normal",
9830
+ borderRadius: "xs"
9831
+ }
9832
+ },
9833
+ sm: {
9834
+ root: {
9835
+ fontSize: "desktop.sm",
9836
+ paddingX: "2",
9837
+ paddingY: "0.5",
9838
+ fontWeight: "bold",
9839
+ borderRadius: "9px"
9840
+ }
9841
+ },
9842
+ md: {
9843
+ root: {
9844
+ padding: 5,
9845
+ fontSize: "desktop.md",
9846
+ paddingX: "2",
9847
+ paddingY: "1",
9848
+ fontWeight: "bold",
9849
+ borderRadius: "sm"
9850
+ }
9851
+ },
9852
+ lg: {
9853
+ root: {
9854
+ fontSize: "desktop.md",
9855
+ paddingX: "2",
9856
+ paddingY: "3",
9857
+ fontWeight: "bold",
9858
+ borderRadius: "md"
9859
+ }
9860
+ }
9861
+ }
9862
+ },
9863
+ defaultVariants: {
9864
+ variant: "core",
9865
+ size: "sm"
9866
+ }
9867
+ });
9759
9868
  var lineIconSlotRecipe = defineSlotRecipe({
9760
9869
  slots: linjetagAnatomy.keys(),
9761
9870
  className: "spor-line-icon",
@@ -10783,7 +10892,7 @@ var selectSlotRecipe = defineSlotRecipe({
10783
10892
  outlineOffset: "2px",
10784
10893
  outline: "2px solid",
10785
10894
  outlineColor: "outline.focus",
10786
- backgroundColor: "ghost.surface.hover"
10895
+ backgroundColor: "accent.surface.hover"
10787
10896
  },
10788
10897
  "&[data-highlighted]": {
10789
10898
  outlineOffset: "2px",
@@ -10791,7 +10900,7 @@ var selectSlotRecipe = defineSlotRecipe({
10791
10900
  outlineColor: "outline.focus"
10792
10901
  },
10793
10902
  _active: {
10794
- backgroundColor: "ghost.surface.active"
10903
+ backgroundColor: "accent.surface.active"
10795
10904
  },
10796
10905
  _highlighted: {
10797
10906
  _active: {
@@ -10799,12 +10908,12 @@ var selectSlotRecipe = defineSlotRecipe({
10799
10908
  }
10800
10909
  },
10801
10910
  _hover: {
10802
- backgroundColor: "ghost.surface.hover",
10911
+ backgroundColor: "accent.surface.hover",
10803
10912
  outline: "2px solid core.outline",
10804
10913
  outlineOffset: "2px"
10805
10914
  },
10806
10915
  _selected: {
10807
- backgroundColor: "ghost.surface.active"
10916
+ backgroundColor: "accent.surface"
10808
10917
  },
10809
10918
  _icon: {
10810
10919
  width: 3,
@@ -11572,6 +11681,7 @@ var slotRecipes = {
11572
11681
  checkboxCard: choiceChipSlotRecipe,
11573
11682
  collapsible: collapsibleSlotRecipe,
11574
11683
  tooltip: popoverSlotRecipe,
11684
+ tag: inputChipSlotRecipe,
11575
11685
  menu: menuSlotRecipe
11576
11686
  };
11577
11687
  var animations = defineTokens.animations({
@@ -12419,6 +12529,6 @@ var TooltipContent = ({
12419
12529
  ] }) }) });
12420
12530
  };
12421
12531
 
12422
- export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FloatingActionButton, Heading, IconButton, InfoTag, Input, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
12532
+ export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Autocomplete, AutocompleteItem, AutocompleteItemGroup, AutocompleteItemGroupLabel, Badge, Brand, Breadcrumb, Button, ButtonGroup, Calendar, CalendarCell, CalendarGrid, CalendarHeader, CalendarProvider, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, Combobox2 as Combobox, ContentLoader, DarkFullScreenLoader, DarkInlineLoader, DarkSpinner, DatePicker, DateRangePicker, DialogActionTrigger, DialogBackdrop, DialogBody, DialogCloseTrigger, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger, Drawer, DrawerActionTrigger, DrawerBackTrigger, DrawerBackdrop, DrawerBody, DrawerCloseTrigger, DrawerContent, DrawerFooter, DrawerFullScreenHeader, DrawerHeader, DrawerTitle, DrawerTrigger, Expandable, ExpandableAlert, ExpandableItem, Field3 as Field, FieldErrorText, FieldLabel, Fieldset, FieldsetContent, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FloatingActionButton, Heading, IconButton, InfoTag, Input, InputChip, ItemDescription, ItemLabel, JumpButton, Language, LanguageProvider, LightFullScreenLoader, LightInlineLoader, LightSpinner, LineIcon, List, ListBox, ListIndicator, ListItem2 as ListItem, Menu, MenuCheckboxItem, MenuContent, MenuItem, MenuItemGroup, MenuRadioItem, MenuRadioItemGroup, MenuSeparator, MenuTrigger, MenuTriggerItem, NativeSelect, Nudge, NudgeActions, NudgeCloseTrigger, NudgeContent, NudgeTrigger, NudgeWizardStep, NumericStepper, Pagination, PaginationEllipsis, PaginationItem, PaginationItems, PaginationNextTrigger, PaginationPrevTrigger, PasswordInput, PhoneNumberInput, PlayPauseButton, Popover2 as Popover, PopoverContent, PopoverTrigger, PressableCard, ProgressBar, ProgressIndicator, ProgressLoader, Radio, RadioCard, RadioCardGroup, RadioCardLabel, RadioGroup, RangeCalendar, ScrollCalendar, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, TableBody, TableColumnHeader, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, Tooltip, TooltipContent, TooltipTrigger, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useCalendar, useColorMode, useColorModeValue, useMenuContext, useTableSort, useTranslation };
12423
12533
  //# sourceMappingURL=out.js.map
12424
12534
  //# sourceMappingURL=index.mjs.map