@vygruppen/spor-react 12.5.6 → 12.6.0

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,4 +1,4 @@
1
- import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group as Group$1, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, defineSlotRecipe, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, InputElement, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
1
+ import { useSlotRecipe, Accordion as Accordion$1, Stack, Box, HStack, Progress, defineRecipe, chakra, Text, useRecipe, Circle, Skeleton as Skeleton$1, Button as Button$1, Group as Group$1, Badge as Badge$1, Code as Code$1, Clipboard as Clipboard$1, IconButton as IconButton$1, useDisclosure, Alert as Alert$1, Span, Flex, Breadcrumb as Breadcrumb$1, ClientOnly as ClientOnly$1, Field, defineStyle, PopoverAnchor, useFieldContext, Popover as Popover$1, Portal, Dialog, createContext as createContext$1, Drawer as Drawer$1, Grid, GridItem, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Fieldset as Fieldset$1, Input as Input$1, InputElement, NativeSelect as NativeSelect$1, useControllableState, createListCollection, RadioGroup as RadioGroup$1, Select as Select$1, useSelectContext, Switch as Switch$1, Textarea as Textarea$1, RadioCard as RadioCard$1, Separator as Separator$1, Link, List as List$1, Center, PopoverCloseTrigger, Pagination as Pagination$1, usePaginationContext, createToaster, Tabs as Tabs$1, Table as Table$1, defineSemanticTokens, defineSlotRecipe, defineTokens, defineAnimationStyles, defineGlobalStyles, defineTextStyles, createSystem, defaultBaseConfig, VisuallyHidden, defineConfig, ListItem, ChakraProvider, Toaster as Toaster$1, Toast, Icon } from '@chakra-ui/react';
2
2
  export { Box, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, ClientOnly, Collapsible, Container, Em, Flex, For, FormatByte, FormatNumber, Grid, GridItem, HStack, Image, Kbd, LocaleProvider, Portal, Show, SimpleGrid, Spacer, Span, Stack, TableBody, TableCaption, TableCell, TableColumn, TableColumnGroup, TableColumnHeader, TableFooter, TableHeader, TableRoot, TableRow, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
3
3
  import { DropdownDownFill24Icon, CopyOutline18Icon, CheckmarkFill18Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, ServiceFill24Icon, QuestionFill24Icon, ErrorOutline24Icon, ErrorFill24Icon, AltTransportFill24Icon, WarningFill24Icon, SuccessFill24Icon, InformationFill24Icon, DropdownDownFill18Icon, DropdownRightFill18Icon, CalendarOutline24Icon, ArrowLeftFill24Icon, CloseOutline24Icon, SearchOutline24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, DropdownLeftFill18Icon, SuccessFill18Icon } from '@vygruppen/spor-icon-react';
4
4
  import * as React28 from 'react';
@@ -8,13 +8,11 @@ import { spinnerColorData, inlineLoaderColorData, contentLoaderData, fullScreenL
8
8
  import ReactLottie from 'lottie-react';
9
9
  import { useInterval } from 'usehooks-ts';
10
10
  export { useIsClient, useMap, useOnClickOutside } from 'usehooks-ts';
11
- import { useProgressBar, useDateSegment, useDateField, useDatePicker, I18nProvider, usePopover, DismissButton, Overlay, useCalendar, useCalendarGrid, useCalendarCell, useButton, useId as useId$1, useDateRangePicker, useFilter, useComboBox, useListBox, useOption, useListBoxSection, useRangeCalendar, useTimeField } from 'react-aria';
11
+ import { useProgressBar, useDateSegment, useDateField, useDatePicker, I18nProvider, usePopover, DismissButton, Overlay, useCalendar, useCalendarGrid, useCalendarCell, useButton, useRangeCalendar, useId as useId$1, useDateRangePicker, useFilter, useComboBox, useListBox, useOption, useListBoxSection, useTimeField } from 'react-aria';
12
12
  import { useTheme, ThemeProvider } from 'next-themes';
13
13
  import { LuMoon, LuSun } from 'react-icons/lu';
14
- import { useDateFieldState, useDatePickerState, useCalendarState, useDateRangePickerState, useTimeFieldState, useComboBoxState, useRangeCalendarState } from 'react-stately';
14
+ import { useDateFieldState, useDatePickerState, useCalendarState, useRangeCalendarState, useDateRangePickerState, useTimeFieldState, useComboBoxState } from 'react-stately';
15
15
  export { Item, Section } from 'react-stately';
16
- import { createAnatomy } from '@ark-ui/react/anatomy';
17
- import { popoverAnatomy as popoverAnatomy$1 } from '@ark-ui/react/popover';
18
16
  import { GregorianCalendar, createCalendar, getLocalTimeZone, endOfMonth, getWeeksInMonth, isSameMonth, isToday, parseTime } from '@internationalized/date';
19
17
  export { Time } from '@internationalized/date';
20
18
  import { getSupportedCallingCodes } from 'awesome-phonenumber';
@@ -23,6 +21,8 @@ import * as tokens23 from '@vygruppen/spor-design-tokens';
23
21
  export { tokens23 as tokens };
24
22
  import { Global } from '@emotion/react';
25
23
  import tokens4 from '@vygruppen/spor-design-tokens/raw-tokens';
24
+ import { createAnatomy } from '@ark-ui/react/anatomy';
25
+ import { popoverAnatomy as popoverAnatomy$1 } from '@ark-ui/react/popover';
26
26
 
27
27
  // src/accordion/Accordion.tsx
28
28
 
@@ -488,61 +488,8 @@ var texts = createTexts({
488
488
  en: `${value}% done`
489
489
  })
490
490
  });
491
- var skeletonRecipe = defineRecipe({
492
- className: "chakra-skeleton",
493
- variants: {
494
- loading: {
495
- true: {
496
- borderRadius: "xs",
497
- boxShadow: "none",
498
- backgroundClip: "padding-box",
499
- cursor: "default",
500
- color: "transparent",
501
- pointerEvents: "none",
502
- userSelect: "none",
503
- flexShrink: "0",
504
- "&::before, &::after, *": {
505
- visibility: "hidden"
506
- }
507
- },
508
- false: {
509
- background: "unset",
510
- animation: "fade-in var(--fade-duration, 0.1s) ease-out !important"
511
- }
512
- },
513
- variant: {
514
- pulse: {
515
- background: {
516
- _light: "silver",
517
- _dark: "darkGrey"
518
- },
519
- animation: "pulse",
520
- animationDuration: "var(--duration, 1.2s)"
521
- },
522
- shine: {
523
- "--animate-from": "200%",
524
- "--animate-to": "-200%",
525
- "--start-color": {
526
- _light: "colors.lightGrey",
527
- _dark: "colors.dimGrey"
528
- },
529
- "--end-color": {
530
- _light: "colors.platinum",
531
- _dark: "colors.darkGrey"
532
- },
533
- backgroundImage: "linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",
534
- backgroundSize: "400% 100%",
535
- animation: "bg-position var(--duration, 5s) ease-in-out infinite"
536
- },
537
- none: {
538
- animation: "none",
539
- background: "steel"
540
- }
541
- }
542
- }
543
- });
544
491
  var SkeletonCircle = React28.forwardRef(function SkeletonCircle2(props, ref) {
545
- const recipe = useRecipe({ recipe: skeletonRecipe });
492
+ const recipe = useRecipe({ key: "skeleton" });
546
493
  const [recipeProps, restProps] = recipe.splitVariantProps({
547
494
  loading: true,
548
495
  variant: "pulse",
@@ -553,7 +500,7 @@ var SkeletonCircle = React28.forwardRef(function SkeletonCircle2(props, ref) {
553
500
  });
554
501
  var SkeletonText = forwardRef(
555
502
  function SkeletonText2(props, ref) {
556
- const recipe = useRecipe({ recipe: skeletonRecipe });
503
+ const recipe = useRecipe({ key: "skeleton" });
557
504
  const [recipeProps, restProps] = recipe.splitVariantProps({
558
505
  loading: true,
559
506
  variant: "pulse",
@@ -574,7 +521,7 @@ var SkeletonText = forwardRef(
574
521
  );
575
522
  var Skeleton = forwardRef(
576
523
  function SkeletonText3(props, ref) {
577
- const recipe = useRecipe({ recipe: skeletonRecipe });
524
+ const recipe = useRecipe({ key: "skeleton" });
578
525
  const [recipeProps, restProps] = recipe.splitVariantProps({
579
526
  loading: true,
580
527
  variant: "pulse",
@@ -835,10 +782,26 @@ var Heading = forwardRef(
835
782
  return /* @__PURE__ */ jsx(Text, { as, textStyle: variant, id, ref, ...rest });
836
783
  }
837
784
  );
785
+ function resolveTextProps({
786
+ variant,
787
+ fontSize,
788
+ lineHeight
789
+ }) {
790
+ if (variant)
791
+ return { textStyle: variant };
792
+ if (!fontSize && !lineHeight)
793
+ return { textStyle: "sm" };
794
+ if (lineHeight && !fontSize)
795
+ return { lineHeight, fontSize: "sm" };
796
+ if (fontSize && !lineHeight)
797
+ return { fontSize };
798
+ return { fontSize, lineHeight };
799
+ }
838
800
  var Text3 = forwardRef(
839
801
  function Text4(props, ref) {
840
- const { variant = "sm", ...rest } = props;
841
- return /* @__PURE__ */ jsx(Text, { ...rest, textStyle: variant, ref });
802
+ const { variant, lineHeight, fontSize, ...rest } = props;
803
+ const resolvedProps = resolveTextProps({ variant, fontSize, lineHeight });
804
+ return /* @__PURE__ */ jsx(Text, { ...resolvedProps, ...rest, ref });
842
805
  }
843
806
  );
844
807
  var ClipboardIcon = React28.forwardRef((props, ref) => {
@@ -1129,7 +1092,7 @@ var Alert = forwardRef((props, ref) => {
1129
1092
  return /* @__PURE__ */ jsxs(Alert$1.Root, { ref, ...props, children: [
1130
1093
  /* @__PURE__ */ jsxs(Alert$1.Content, { flexDirection: title ? "column" : "row", children: [
1131
1094
  /* @__PURE__ */ jsxs(HStack, { gap: "1", alignItems: "flex-start", children: [
1132
- showIndicator && /* @__PURE__ */ jsx(Alert$1.Indicator, { asChild: true, children: /* @__PURE__ */ jsx(AlertIcon, { variant: props.variant, customIcon: icon }) }),
1095
+ showIndicator && /* @__PURE__ */ jsx(Alert$1.Indicator, { asChild: true, children: /* @__PURE__ */ jsx(AlertIcon, { variant: props.variant ?? "info", customIcon: icon }) }),
1133
1096
  title && /* @__PURE__ */ jsx(Alert$1.Title, { paddingRight: closable ? 6 : 0, children: title })
1134
1097
  ] }),
1135
1098
  children && /* @__PURE__ */ jsx(
@@ -1464,463 +1427,6 @@ var FieldErrorText = React28.forwardRef((props, ref) => {
1464
1427
  });
1465
1428
  FieldErrorText.displayName = "FieldErrorText";
1466
1429
  var FieldLabel = Field.Label;
1467
- var accordionAnatomy = createAnatomy("accordion").parts(
1468
- "root",
1469
- "itemTrigger",
1470
- "item",
1471
- "itemBody",
1472
- "itemContent",
1473
- "itemIndicator"
1474
- );
1475
- var alertAnatomy = createAnatomy("alert").parts(
1476
- "root",
1477
- "indicator",
1478
- "title",
1479
- "closeButton",
1480
- "content",
1481
- "description"
1482
- );
1483
- var alertExpandableAnatomy = createAnatomy("alert-expandable").parts(
1484
- "root",
1485
- "itemTrigger",
1486
- "itemContent",
1487
- "indicator",
1488
- "title",
1489
- "itemIndicator"
1490
- );
1491
- var alertServiceAnatomy = createAnatomy("service-alert").parts(
1492
- "root",
1493
- "itemTrigger",
1494
- "itemTriggerTitle",
1495
- "notificationText",
1496
- "itemContent",
1497
- "itemBody"
1498
- );
1499
- var listAnatomy = createAnatomy("list").parts(
1500
- "root",
1501
- "item",
1502
- "icon",
1503
- "indicator"
1504
- );
1505
- var tableAnatomy = createAnatomy("table").parts(
1506
- "root",
1507
- "body",
1508
- "row",
1509
- "cell",
1510
- "columnHeader",
1511
- "caption",
1512
- "footer",
1513
- "header"
1514
- );
1515
- var fieldAnatomy = createAnatomy("field").parts(
1516
- "root",
1517
- "label",
1518
- "requiredIndicator",
1519
- "helperText",
1520
- "errorText"
1521
- );
1522
- var dialogAnatomy = createAnatomy("dialog").parts(
1523
- "header",
1524
- "body",
1525
- "footer",
1526
- "backdrop",
1527
- "positioner",
1528
- "content",
1529
- "title",
1530
- "description",
1531
- "closeTrigger"
1532
- );
1533
- var paginationAnatomy = createAnatomy("pagination").parts(
1534
- "list",
1535
- "item"
1536
- );
1537
- var linjetagAnatomy = createAnatomy("linjetag").parts(
1538
- "iconContainer",
1539
- "icon",
1540
- "root",
1541
- "title",
1542
- "desc"
1543
- );
1544
- var infoTagAnatomy = createAnatomy("info-tag").parts(
1545
- "container",
1546
- "iconContainer",
1547
- "icon",
1548
- "textContainer",
1549
- "title",
1550
- "description",
1551
- "walk"
1552
- );
1553
- var travelTagAnatomy = createAnatomy("travel-tag").parts(
1554
- "container",
1555
- "iconContainer",
1556
- "icon",
1557
- "textContainer",
1558
- "title",
1559
- "description",
1560
- "deviationIcon"
1561
- );
1562
- var drawerAnatomy = createAnatomy("drawer").parts(
1563
- "header",
1564
- "body",
1565
- "backdrop",
1566
- "positioner",
1567
- "content",
1568
- "footer",
1569
- "title",
1570
- "description",
1571
- "closeTrigger"
1572
- );
1573
- var checkboxAnatomy = createAnatomy("checkbox").parts(
1574
- "root",
1575
- "control",
1576
- "label",
1577
- "description",
1578
- "addon",
1579
- "indicator",
1580
- "content"
1581
- );
1582
- var breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
1583
- "link",
1584
- "currentLink",
1585
- "list",
1586
- "separator"
1587
- );
1588
- var stepperAnatomy = createAnatomy("stepper").parts(
1589
- "root",
1590
- "container",
1591
- "innerContainer",
1592
- "title",
1593
- "stepCounter",
1594
- "stepContainer",
1595
- "stepButton",
1596
- "stepNumber",
1597
- "stepTitle",
1598
- "closeButton",
1599
- "backButton"
1600
- );
1601
- var radioCardAnatomy = createAnatomy("radio-card").parts(
1602
- "root",
1603
- "item",
1604
- "label",
1605
- "itemText",
1606
- "itemDescription",
1607
- "itemContent"
1608
- );
1609
- var radioAnatomy = createAnatomy("radio").parts(
1610
- "root",
1611
- "item",
1612
- "itemControl",
1613
- "itemText",
1614
- "label"
1615
- );
1616
- var listBoxAnatomy = createAnatomy("listbox").parts(
1617
- "root",
1618
- "item",
1619
- "label",
1620
- "description"
1621
- );
1622
- var NativeSelectAnatomy = createAnatomy("native-select").parts(
1623
- "root",
1624
- "field",
1625
- "icon"
1626
- );
1627
- var tabsAnatomy = createAnatomy("tabs").parts(
1628
- "root",
1629
- "list",
1630
- "trigger",
1631
- "content",
1632
- "indicator"
1633
- );
1634
- var switchAnatomy = createAnatomy("switch").parts(
1635
- "root",
1636
- "thumb",
1637
- "control",
1638
- "label"
1639
- );
1640
- var selectAnatomy = createAnatomy("select").parts(
1641
- "root",
1642
- "trigger",
1643
- "indicatorGroup",
1644
- "indicator",
1645
- "selectContent",
1646
- "item",
1647
- "control",
1648
- "itemText",
1649
- "itemDescription",
1650
- "itemGroup",
1651
- "itemGroupLabel",
1652
- "label",
1653
- "valueText"
1654
- );
1655
- createAnatomy("card-select").parts(
1656
- "trigger",
1657
- "card"
1658
- );
1659
- var numericStepperAnatomy = createAnatomy("numeric-stepper").parts(
1660
- "root",
1661
- "container",
1662
- "input",
1663
- "text",
1664
- "button"
1665
- );
1666
- var mediaControllerAnatomy = createAnatomy(
1667
- "media-controller-button"
1668
- ).parts("root", "icon");
1669
- var progressBarAnotomy = createAnatomy("progress-bar").parts(
1670
- "container",
1671
- "background",
1672
- "progress",
1673
- "description",
1674
- "disabledBackground"
1675
- );
1676
- var toastAnatomy = createAnatomy("toast").parts(
1677
- "root",
1678
- "title",
1679
- "description",
1680
- "indicator",
1681
- "closeTrigger",
1682
- "actionTrigger"
1683
- );
1684
- var floatingActionButtonAnatomy = createAnatomy(
1685
- "floating-action-button"
1686
- ).parts("root", "icon", "text");
1687
- var popoverAnatomy = popoverAnatomy$1.extendWith(
1688
- "header",
1689
- "body",
1690
- "footer"
1691
- );
1692
- var datepickerAnatomy = createAnatomy("datepicker").parts(
1693
- "wrapper",
1694
- "calendarTriggerButton",
1695
- "arrow",
1696
- "calendarPopover",
1697
- "calendar",
1698
- "weekdays",
1699
- "weekend",
1700
- "dateCell",
1701
- "inputLabel",
1702
- "dateTimeSegment",
1703
- "cell",
1704
- "box",
1705
- "rangeCalendarPopover"
1706
- );
1707
- var checkboxCardAnatomy = createAnatomy("checkbox-card", [
1708
- "root",
1709
- "control",
1710
- "label",
1711
- "description",
1712
- "addon",
1713
- "indicator",
1714
- "content"
1715
- ]);
1716
-
1717
- // src/theme/slot-recipes/datepicker.ts
1718
- var datePickerSlotRecipe = defineSlotRecipe({
1719
- slots: datepickerAnatomy.keys(),
1720
- className: "spor-datepicker",
1721
- base: {
1722
- wrapper: {
1723
- transitionProperty: "box-shadow",
1724
- transitionDuration: "fast",
1725
- borderRadius: "sm",
1726
- display: "flex",
1727
- flex: 1,
1728
- paddingY: 0.5,
1729
- alignItems: "center",
1730
- _hover: {
1731
- zIndex: "docked"
1732
- },
1733
- _disabled: {
1734
- pointerEvents: "none",
1735
- backgroundColor: "surface.disabled",
1736
- outline: "1px solid",
1737
- outlineColor: "outline.disabled",
1738
- color: "text.disabled"
1739
- },
1740
- _focusWithin: {
1741
- outline: "2px solid",
1742
- outlineColor: "outline.focus"
1743
- }
1744
- },
1745
- inputLabel: {
1746
- fontSize: "mobile.xs",
1747
- margin: 0,
1748
- cursor: "text"
1749
- },
1750
- dateTimeSegment: {
1751
- _focus: {
1752
- backgroundColor: "ghost.surface.active",
1753
- color: "text.default"
1754
- }
1755
- },
1756
- box: {
1757
- width: "100%"
1758
- },
1759
- calendarTriggerButton: {
1760
- position: "relative",
1761
- borderRadius: "xl",
1762
- display: "flex",
1763
- alignItems: "center",
1764
- justifyContent: "center",
1765
- transitionProperty: "box-shadow, background-color",
1766
- right: "0.5rem",
1767
- _hover: {
1768
- backgroundColor: "ghost.surface.hover"
1769
- },
1770
- _active: {
1771
- backgroundColor: "ghost.surface.active"
1772
- },
1773
- _invalid: {
1774
- outline: "2px solid",
1775
- outlineColor: "outline.error"
1776
- }
1777
- },
1778
- arrow: {
1779
- backgroundColor: "surface"
1780
- },
1781
- calendarPopover: {
1782
- color: "core.text",
1783
- outline: "1px solid",
1784
- outlineColor: "floating.outline",
1785
- boxShadow: "md",
1786
- backgroundColor: "floating.surface"
1787
- },
1788
- rangeCalendarPopover: {
1789
- width: "43rem",
1790
- maxWidth: "100vw"
1791
- },
1792
- weekdays: {
1793
- color: "core.text",
1794
- fontWeight: "bold"
1795
- },
1796
- weekend: {
1797
- color: "accent.text",
1798
- fontWeight: "bold"
1799
- },
1800
- cell: {
1801
- '&[aria-selected="true"] + [aria-selected="true"] > button': {
1802
- "&::before": {
1803
- content: '""',
1804
- display: "block",
1805
- height: "100%",
1806
- position: "absolute",
1807
- left: "-50%",
1808
- top: 0,
1809
- bottom: 0,
1810
- zIndex: -1,
1811
- backgroundColor: "brand.surface"
1812
- }
1813
- }
1814
- },
1815
- dateCell: {
1816
- color: "core.text",
1817
- borderRadius: "xl",
1818
- position: "relative",
1819
- transition: ".1s ease-in-out",
1820
- userSelect: "none",
1821
- width: [6, 7],
1822
- height: [6, 7],
1823
- transitionProperty: "common",
1824
- _hover: {
1825
- backgroundColor: "ghost.surface.hover"
1826
- },
1827
- _active: {
1828
- backgroundColor: "ghost.surface.active"
1829
- },
1830
- _disabled: {
1831
- backgroundColor: "surface.disabled",
1832
- color: "text.disabled",
1833
- pointerEvents: "none"
1834
- },
1835
- _selected: {
1836
- backgroundColor: "brand.surface",
1837
- color: "brand.text",
1838
- _active: {
1839
- backgroundColor: "brand.surface.active",
1840
- color: "brand.text"
1841
- }
1842
- },
1843
- "&[data-today]": {
1844
- outline: "1px solid",
1845
- outlineColor: "core.outline"
1846
- },
1847
- "&[data-unavailable]": {
1848
- pointerEvents: "none",
1849
- borderRadius: "xl",
1850
- backgroundColor: "surface.disabled",
1851
- color: "text.disabled"
1852
- }
1853
- }
1854
- },
1855
- variants: {
1856
- variant: {
1857
- core: {
1858
- wrapper: {
1859
- outline: "1px solid",
1860
- outlineColor: "core.outline",
1861
- backgroundColor: "core.surface",
1862
- _hover: {
1863
- outline: "2px solid",
1864
- outlineColor: "core.outline.hover",
1865
- _active: {
1866
- backgroundColor: "ghost.surface.active",
1867
- outline: "1px solid",
1868
- outlineColor: "core.outline"
1869
- }
1870
- },
1871
- _invalid: {
1872
- outline: "2px solid",
1873
- outlineColor: "outline.error"
1874
- }
1875
- }
1876
- },
1877
- floating: {
1878
- wrapper: {
1879
- backgroundColor: {
1880
- _light: "bg",
1881
- _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
1882
- },
1883
- outline: "1px solid",
1884
- outlineColor: "floating.outline",
1885
- boxShadow: "sm",
1886
- _hover: {
1887
- outline: "1px solid",
1888
- outlineColor: "floating.outline.hover",
1889
- _active: {
1890
- backgroundColor: "ghost.surface.active",
1891
- outline: "1px solid",
1892
- outlineColor: "core.outline"
1893
- }
1894
- },
1895
- _invalid: {
1896
- outline: "2px solid",
1897
- outlineColor: "outline.error"
1898
- }
1899
- }
1900
- },
1901
- ghost: {
1902
- wrapper: {
1903
- _hover: {
1904
- outline: "2px solid",
1905
- outlineColor: "core.outline.hover",
1906
- _active: {
1907
- backgroundColor: "ghost.surface.active",
1908
- outline: "1px solid",
1909
- outlineColor: "core.outline"
1910
- }
1911
- },
1912
- _invalid: {
1913
- outline: "2px solid",
1914
- outlineColor: "outline.error"
1915
- }
1916
- }
1917
- }
1918
- }
1919
- },
1920
- defaultVariants: {
1921
- variant: "core"
1922
- }
1923
- });
1924
1430
  function CalendarCell({
1925
1431
  state,
1926
1432
  date,
@@ -1938,8 +1444,7 @@ function CalendarCell({
1938
1444
  } = useCalendarCell({ date }, state, ref);
1939
1445
  const isOutsideMonth = !isSameMonth(currentMonth, date);
1940
1446
  const recipe = useSlotRecipe({
1941
- key: "datePicker",
1942
- recipe: datePickerSlotRecipe
1447
+ key: "datePicker"
1943
1448
  });
1944
1449
  const styles = recipe({ variant });
1945
1450
  const stateProps = {};
@@ -2030,8 +1535,7 @@ function CalendarGrid({
2030
1535
  const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);
2031
1536
  const weeksInMonthRange = Array.from({ length: weeksInMonth }).fill(0).map((_, i) => i);
2032
1537
  const recipe = useSlotRecipe({
2033
- key: "datePicker",
2034
- recipe: datePickerSlotRecipe
1538
+ key: "datePicker"
2035
1539
  });
2036
1540
  const styles = recipe({ variant });
2037
1541
  return /* @__PURE__ */ jsxs(Box, { as: "table", ...gridProps, css: styles.box, children: [
@@ -2207,8 +1711,7 @@ function Calendar({
2207
1711
  createCalendar
2208
1712
  });
2209
1713
  const recipe = useSlotRecipe({
2210
- key: "datePicker",
2211
- recipe: datePickerSlotRecipe
1714
+ key: "datePicker"
2212
1715
  });
2213
1716
  const styles = recipe({ variant });
2214
1717
  const { calendarProps } = useCalendar(props, state);
@@ -2230,8 +1733,7 @@ var texts8 = createTexts({
2230
1733
  var CalendarTriggerButton = forwardRef(({ variant, disabled, ariaLabelledby, ...buttonProps }, ref) => {
2231
1734
  const { t } = useTranslation();
2232
1735
  const recipe = useSlotRecipe({
2233
- key: "datePicker",
2234
- recipe: datePickerSlotRecipe
1736
+ key: "datePicker"
2235
1737
  });
2236
1738
  const styles = recipe({ variant });
2237
1739
  return /* @__PURE__ */ jsx(PopoverAnchor, { ...buttonProps, ref, children: /* @__PURE__ */ jsx(
@@ -2265,8 +1767,7 @@ var DateTimeSegment = forwardRef(
2265
1767
  ref
2266
1768
  );
2267
1769
  const recipe = useSlotRecipe({
2268
- key: "datePicker",
2269
- recipe: datePickerSlotRecipe
1770
+ key: "datePicker"
2270
1771
  });
2271
1772
  const styles = recipe({
2272
1773
  isPlaceholder: segment.isPlaceholder,
@@ -2310,8 +1811,7 @@ var DateField = forwardRef(
2310
1811
  var _a5;
2311
1812
  const locale = useCurrentLocale();
2312
1813
  const recipe = useSlotRecipe({
2313
- key: "datePicker",
2314
- recipe: datePickerSlotRecipe
1814
+ key: "datePicker"
2315
1815
  });
2316
1816
  const styles = recipe({});
2317
1817
  const state = useDateFieldState({
@@ -2403,8 +1903,7 @@ var StyledField = forwardRef(
2403
1903
  const { invalid } = useFieldContext() ?? {
2404
1904
  };
2405
1905
  const recipe = useSlotRecipe({
2406
- key: "datePicker",
2407
- recipe: datePickerSlotRecipe
1906
+ key: "datePicker"
2408
1907
  });
2409
1908
  const styles = recipe({ variant });
2410
1909
  return /* @__PURE__ */ jsx(
@@ -2452,8 +1951,7 @@ var DatePicker = forwardRef(
2452
1951
  const labelId = `label-${useId()}`;
2453
1952
  const inputGroupId = `input-group-${useId()}`;
2454
1953
  const recipe = useSlotRecipe({
2455
- key: "datePicker",
2456
- recipe: datePickerSlotRecipe
1954
+ key: "datePicker"
2457
1955
  });
2458
1956
  const styles = recipe({ variant });
2459
1957
  const locale = useCurrentLocale();
@@ -2537,8 +2035,7 @@ function RangeCalendar(props) {
2537
2035
  createCalendar: createCalendar
2538
2036
  });
2539
2037
  const recipe = useSlotRecipe({
2540
- key: "datePicker",
2541
- recipe: datePickerSlotRecipe
2038
+ key: "datePicker"
2542
2039
  });
2543
2040
  const styles = recipe({});
2544
2041
  const ref = useRef(null);
@@ -2591,8 +2088,7 @@ function DateRangePicker({
2591
2088
  calendarProps
2592
2089
  } = useDateRangePicker(props, state, ref);
2593
2090
  const recipe = useSlotRecipe({
2594
- key: "datePicker",
2595
- recipe: datePickerSlotRecipe
2091
+ key: "datePicker"
2596
2092
  });
2597
2093
  const styles = recipe({ variant });
2598
2094
  const locale = useCurrentLocale();
@@ -3513,96 +3009,46 @@ function Option({ item, state }) {
3513
3009
  (event) => {
3514
3010
  event.preventDefault();
3515
3011
  },
3516
- { passive: false, once: true }
3517
- );
3518
- }, []);
3519
- return /* @__PURE__ */ jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsx(ListItem, { ...optionProps, ...dataFields, ref, css: styles.item, children: item.rendered }) });
3520
- }
3521
- var OptionContext = React28__default.createContext({
3522
- labelProps: {},
3523
- descriptionProps: {}
3524
- });
3525
- var useOptionContext = () => {
3526
- return useContext(OptionContext);
3527
- };
3528
- function ListBoxSection({ section, state }) {
3529
- var _a5, _b4;
3530
- const { itemProps, headingProps, groupProps } = useListBoxSection({
3531
- heading: section.rendered,
3532
- "aria-label": section["aria-label"]
3533
- });
3534
- const isFirstSection = section.key === state.collection.getFirstKey();
3535
- const titleColor = useColorModeValue("darkGrey", "white");
3536
- return /* @__PURE__ */ jsx(List, { children: /* @__PURE__ */ jsxs(ListItem, { ...itemProps, listStyleType: "none", children: [
3537
- section.rendered && /* @__PURE__ */ jsx(
3538
- Box,
3539
- {
3540
- fontSize: "mobile.xs",
3541
- color: titleColor,
3542
- paddingX: 3,
3543
- paddingTop: 1,
3544
- marginTop: isFirstSection ? 0 : 2,
3545
- textTransform: "uppercase",
3546
- fontWeight: "bold",
3547
- ...headingProps,
3548
- children: section.rendered
3549
- }
3550
- ),
3551
- /* @__PURE__ */ jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
3552
- (item) => /* @__PURE__ */ jsx(Option, { item, state }, item.key)
3553
- ) })
3554
- ] }) });
3555
- }
3556
- var _a2, _b;
3557
- var nativeSelectSlotRecipe = defineSlotRecipe({
3558
- slots: NativeSelectAnatomy.keys(),
3559
- className: "spor-nativeSelect",
3560
- base: {
3561
- root: {
3562
- width: "100%",
3563
- height: "fit-content",
3564
- position: "relative"
3565
- },
3566
- field: {
3567
- ...inputRecipe.base
3568
- },
3569
- icon: {
3570
- width: 5,
3571
- height: 5,
3572
- right: " 0.5rem",
3573
- strokeLinecap: "round",
3574
- position: "absolute",
3575
- display: "inline-flex",
3576
- boxAlign: "center",
3577
- alignItems: "center",
3578
- boxPack: "center",
3579
- justifyContent: "center",
3580
- pointerEvents: "none",
3581
- top: "50%",
3582
- transform: "translateY(-50%)",
3583
- insetEnd: "0.5rem",
3584
- color: "currentColor",
3585
- fontSize: "sm",
3586
- _disabled: {
3587
- color: "text.disabled"
3588
- }
3589
- }
3590
- },
3591
- variants: {
3592
- variant: {
3593
- core: {
3594
- field: {
3595
- ...(_a2 = inputRecipe.variants) == null ? void 0 : _a2.variant.core
3596
- }
3597
- },
3598
- floating: {
3599
- field: {
3600
- ...(_b = inputRecipe.variants) == null ? void 0 : _b.variant.floating
3601
- }
3602
- }
3603
- }
3604
- }
3012
+ { passive: false, once: true }
3013
+ );
3014
+ }, []);
3015
+ return /* @__PURE__ */ jsx(OptionContext.Provider, { value: { labelProps, descriptionProps }, children: /* @__PURE__ */ jsx(ListItem, { ...optionProps, ...dataFields, ref, css: styles.item, children: item.rendered }) });
3016
+ }
3017
+ var OptionContext = React28__default.createContext({
3018
+ labelProps: {},
3019
+ descriptionProps: {}
3605
3020
  });
3021
+ var useOptionContext = () => {
3022
+ return useContext(OptionContext);
3023
+ };
3024
+ function ListBoxSection({ section, state }) {
3025
+ var _a5, _b4;
3026
+ const { itemProps, headingProps, groupProps } = useListBoxSection({
3027
+ heading: section.rendered,
3028
+ "aria-label": section["aria-label"]
3029
+ });
3030
+ const isFirstSection = section.key === state.collection.getFirstKey();
3031
+ const titleColor = useColorModeValue("darkGrey", "white");
3032
+ return /* @__PURE__ */ jsx(List, { children: /* @__PURE__ */ jsxs(ListItem, { ...itemProps, listStyleType: "none", children: [
3033
+ section.rendered && /* @__PURE__ */ jsx(
3034
+ Box,
3035
+ {
3036
+ fontSize: "mobile.xs",
3037
+ color: titleColor,
3038
+ paddingX: 3,
3039
+ paddingTop: 1,
3040
+ marginTop: isFirstSection ? 0 : 2,
3041
+ textTransform: "uppercase",
3042
+ fontWeight: "bold",
3043
+ ...headingProps,
3044
+ children: section.rendered
3045
+ }
3046
+ ),
3047
+ /* @__PURE__ */ jsx(List, { ...groupProps, padding: 0, listStyleType: "none", children: [...((_b4 = (_a5 = state.collection).getChildren) == null ? void 0 : _b4.call(_a5, section.key)) ?? []].map(
3048
+ (item) => /* @__PURE__ */ jsx(Option, { item, state }, item.key)
3049
+ ) })
3050
+ ] }) });
3051
+ }
3606
3052
  var NativeSelect = React28.forwardRef(function NativeSelect2(props, ref) {
3607
3053
  const {
3608
3054
  children,
@@ -3615,7 +3061,7 @@ var NativeSelect = React28.forwardRef(function NativeSelect2(props, ref) {
3615
3061
  errorText,
3616
3062
  ...rest
3617
3063
  } = props;
3618
- const recipe = useSlotRecipe({ recipe: nativeSelectSlotRecipe });
3064
+ const recipe = useSlotRecipe({ key: "nativeSelect" });
3619
3065
  const styles = recipe({ variant });
3620
3066
  return /* @__PURE__ */ jsx(
3621
3067
  Field3,
@@ -3650,67 +3096,6 @@ var NativeSelect = React28.forwardRef(function NativeSelect2(props, ref) {
3650
3096
  }
3651
3097
  );
3652
3098
  });
3653
- var numericStepperRecipe = defineSlotRecipe({
3654
- slots: numericStepperAnatomy.keys(),
3655
- className: "spor-numeric-stepper",
3656
- base: {
3657
- root: {
3658
- "& > div": {
3659
- display: "flex",
3660
- flexDirection: "row",
3661
- alignItems: "center"
3662
- }
3663
- },
3664
- input: {
3665
- fontSize: "sm",
3666
- fontWeight: "bold",
3667
- marginX: 0.5,
3668
- padding: 0,
3669
- paddingX: 0.5,
3670
- borderRadius: "xs",
3671
- outline: "none",
3672
- height: "auto",
3673
- textAlign: "center",
3674
- transitionProperty: "common",
3675
- transitionDuration: "fast",
3676
- color: "core.text",
3677
- backgroundColor: "transparent",
3678
- _focus: {
3679
- backgroundColor: "surface",
3680
- outline: "2px solid",
3681
- outlineColor: "outline.focus"
3682
- },
3683
- _active: {
3684
- backgroundColor: "accent.surface.active"
3685
- },
3686
- _disabled: {
3687
- pointerEvents: "none",
3688
- opacity: 0.5
3689
- },
3690
- _hover: {
3691
- outline: "1px solid",
3692
- outlineColor: "core.outline"
3693
- }
3694
- },
3695
- text: {
3696
- fontSize: "sm",
3697
- fontWeight: "bold",
3698
- marginX: 1,
3699
- paddingX: 1,
3700
- textAlign: "center",
3701
- width: "4ch",
3702
- color: "core.text"
3703
- },
3704
- button: {
3705
- outlineOffset: "-2px",
3706
- width: "auto",
3707
- _icon: {
3708
- width: "1.2rem",
3709
- height: "1.2rem"
3710
- }
3711
- }
3712
- }
3713
- });
3714
3099
  var NumericStepper = React28__default.forwardRef((props, ref) => {
3715
3100
  const {
3716
3101
  name: nameProp,
@@ -3729,7 +3114,7 @@ var NumericStepper = React28__default.forwardRef((props, ref) => {
3729
3114
  } = props;
3730
3115
  const addButtonRef = useRef(null);
3731
3116
  const { t } = useTranslation();
3732
- const recipe = useSlotRecipe({ recipe: numericStepperRecipe });
3117
+ const recipe = useSlotRecipe({ key: "numericStepper" });
3733
3118
  const styles = recipe();
3734
3119
  const [value, onChange] = useControllableState({
3735
3120
  value: valueProp,
@@ -3819,7 +3204,7 @@ var NumericStepper = React28__default.forwardRef((props, ref) => {
3819
3204
  });
3820
3205
  NumericStepper.displayName = "NumericStepper";
3821
3206
  var VerySmallButton = React28__default.forwardRef((props, ref) => {
3822
- const recipe = useSlotRecipe({ recipe: numericStepperRecipe });
3207
+ const recipe = useSlotRecipe({ key: "numericStepper" });
3823
3208
  const styles = recipe({ colorPalette: "default" });
3824
3209
  return /* @__PURE__ */ jsx(
3825
3210
  IconButton,
@@ -4449,160 +3834,80 @@ var pressableCardRecipe = defineRecipe({
4449
3834
  backgroundColor: "core.surface.active",
4450
3835
  outlineWidth: tokens23__default.size.stroke.sm
4451
3836
  }
4452
- }
4453
- },
4454
- accent: {
4455
- boxShadow: "0px 1px 3px 0px var(--shadow-color)",
4456
- shadowColor: "surface.disabled",
4457
- background: "alert.success.surface",
4458
- _hover: {
4459
- background: "alert.success.surface.hover",
4460
- boxShadow: "0px 2px 6px 0px var(--shadow-color)",
4461
- _active: {
4462
- background: "alert.success.surface.active",
4463
- boxShadow: "none"
4464
- }
4465
- }
4466
- }
4467
- }
4468
- },
4469
- defaultVariants: {
4470
- variant: "core"
4471
- }
4472
- });
4473
- var PressableCardButton = chakra("button", pressableCardRecipe);
4474
- var PressableCard = forwardRef(
4475
- (props, ref) => {
4476
- return /* @__PURE__ */ jsx(PressableCardButton, { ...props, ref });
4477
- }
4478
- );
4479
- PressableCard.displayName = "PressableCard";
4480
- var RadioCard = forwardRef(
4481
- (props, ref) => {
4482
- const { inputProps, children, value, ariaLabel } = props;
4483
- return /* @__PURE__ */ jsxs(RadioCard$1.Item, { ...props, children: [
4484
- /* @__PURE__ */ jsx(
4485
- RadioCard$1.ItemHiddenInput,
4486
- {
4487
- "aria-label": ariaLabel ?? value,
4488
- ref,
4489
- ...inputProps
4490
- }
4491
- ),
4492
- /* @__PURE__ */ jsx(RadioCard$1.ItemControl, { children })
4493
- ] });
4494
- }
4495
- );
4496
- RadioCard.displayName = "RadioCard";
4497
- var RadioCardGroup = forwardRef(
4498
- (props, ref) => {
4499
- const {
4500
- children,
4501
- variant,
4502
- gap = 2,
4503
- direction = "column",
4504
- display = "flex",
4505
- ...rest
4506
- } = props;
4507
- const recipe = useSlotRecipe({ key: "radio-card" });
4508
- const styles = recipe({ variant });
4509
- return /* @__PURE__ */ jsx(
4510
- RadioCard$1.Root,
4511
- {
4512
- ref,
4513
- variant,
4514
- css: styles,
4515
- display,
4516
- gap,
4517
- flexDirection: direction,
4518
- ...rest,
4519
- children
4520
- }
4521
- );
4522
- }
4523
- );
4524
- RadioCardGroup.displayName = "RadioCardGroup";
4525
- var RadioCardLabel = RadioCard$1.Label;
4526
- var separatorRecipe = defineRecipe({
4527
- className: "spor-separator",
4528
- base: {
4529
- borderColor: "outline.disabled",
4530
- display: "block",
4531
- borderRadius: "xl"
4532
- },
4533
- variants: {
4534
- variant: {
4535
- solid: {
4536
- borderStyle: "solid"
4537
- },
4538
- dashed: {
4539
- width: "100%",
4540
- borderWidth: "0px"
4541
- }
4542
- },
4543
- size: {
4544
- sm: {
4545
- borderBottomWidth: "1px",
4546
- height: "1px"
4547
- },
4548
- md: {
4549
- borderBottomWidth: "2px",
4550
- height: "2px"
4551
- },
4552
- lg: {
4553
- borderBottomWidth: "3px",
4554
- height: "3px"
4555
- }
4556
- },
4557
- orientation: {
4558
- horizontal: {
4559
- width: "100%"
4560
- },
4561
- vertical: {
4562
- height: "100%",
4563
- borderLeftWidth: "1px"
4564
- }
4565
- }
4566
- },
4567
- compoundVariants: [
4568
- {
4569
- variant: "dashed",
4570
- size: "sm",
4571
- css: {
4572
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 1px, transparent 1px, transparent 4px)",
4573
- backgroundSize: "4px 1px",
4574
- backgroundRepeat: "repeat-x"
4575
- }
4576
- },
4577
- {
4578
- variant: "dashed",
4579
- size: "md",
4580
- css: {
4581
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 6px)",
4582
- backgroundSize: "9px 2px",
4583
- backgroundRepeat: "repeat-x"
4584
- }
4585
- },
4586
- {
4587
- variant: "dashed",
4588
- size: "lg",
4589
- css: {
4590
- background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 9px)",
4591
- backgroundSize: "9px 3px",
4592
- backgroundRepeat: "repeat-x"
4593
- }
4594
- },
4595
- {
4596
- variant: "dashed",
4597
- orientation: "vertical",
4598
- css: {
4599
- background: "0",
4600
- width: "0%",
4601
- height: "100%"
3837
+ }
3838
+ },
3839
+ accent: {
3840
+ boxShadow: "0px 1px 3px 0px var(--shadow-color)",
3841
+ shadowColor: "surface.disabled",
3842
+ background: "alert.success.surface",
3843
+ _hover: {
3844
+ background: "alert.success.surface.hover",
3845
+ boxShadow: "0px 2px 6px 0px var(--shadow-color)",
3846
+ _active: {
3847
+ background: "alert.success.surface.active",
3848
+ boxShadow: "none"
3849
+ }
3850
+ }
4602
3851
  }
4603
3852
  }
4604
- ]
3853
+ },
3854
+ defaultVariants: {
3855
+ variant: "core"
3856
+ }
4605
3857
  });
3858
+ var PressableCardButton = chakra("button", pressableCardRecipe);
3859
+ var PressableCard = forwardRef(
3860
+ (props, ref) => {
3861
+ return /* @__PURE__ */ jsx(PressableCardButton, { ...props, ref });
3862
+ }
3863
+ );
3864
+ PressableCard.displayName = "PressableCard";
3865
+ var RadioCard = forwardRef(
3866
+ (props, ref) => {
3867
+ const { inputProps, children, value, ariaLabel } = props;
3868
+ return /* @__PURE__ */ jsxs(RadioCard$1.Item, { ...props, children: [
3869
+ /* @__PURE__ */ jsx(
3870
+ RadioCard$1.ItemHiddenInput,
3871
+ {
3872
+ "aria-label": ariaLabel ?? value,
3873
+ ref,
3874
+ ...inputProps
3875
+ }
3876
+ ),
3877
+ /* @__PURE__ */ jsx(RadioCard$1.ItemControl, { children })
3878
+ ] });
3879
+ }
3880
+ );
3881
+ RadioCard.displayName = "RadioCard";
3882
+ var RadioCardGroup = forwardRef(
3883
+ (props, ref) => {
3884
+ const {
3885
+ children,
3886
+ variant,
3887
+ gap = 2,
3888
+ direction = "column",
3889
+ display = "flex",
3890
+ ...rest
3891
+ } = props;
3892
+ const recipe = useSlotRecipe({ key: "radio-card" });
3893
+ const styles = recipe({ variant });
3894
+ return /* @__PURE__ */ jsx(
3895
+ RadioCard$1.Root,
3896
+ {
3897
+ ref,
3898
+ variant,
3899
+ css: styles,
3900
+ display,
3901
+ gap,
3902
+ flexDirection: direction,
3903
+ ...rest,
3904
+ children
3905
+ }
3906
+ );
3907
+ }
3908
+ );
3909
+ RadioCardGroup.displayName = "RadioCardGroup";
3910
+ var RadioCardLabel = RadioCard$1.Label;
4606
3911
  var Separator = forwardRef(
4607
3912
  (props, ref) => {
4608
3913
  const {
@@ -4610,7 +3915,7 @@ var Separator = forwardRef(
4610
3915
  variant = "solid",
4611
3916
  orientation = "horizontal"
4612
3917
  } = props;
4613
- const recipe = useRecipe({ recipe: separatorRecipe });
3918
+ const recipe = useRecipe({ key: "seperator" });
4614
3919
  const styles = recipe({ size, variant, orientation });
4615
3920
  return /* @__PURE__ */ jsx(Separator$1, { css: styles, ...props, ref });
4616
3921
  }
@@ -6147,256 +5452,61 @@ var StepperStep = ({
6147
5452
  const disabled = state !== "active" && disabledOverride || state === "disabled";
6148
5453
  return /* @__PURE__ */ jsxs(Box, { css: style.stepContainer, children: [
6149
5454
  stepNumber > 1 && /* @__PURE__ */ jsx(
6150
- DropdownRightFill18Icon,
6151
- {
6152
- marginX: 5,
6153
- display: ["none", null, "block"],
6154
- color: iconColor
6155
- }
6156
- ),
6157
- disabled ? /* @__PURE__ */ jsx(
6158
- Text3,
6159
- {
6160
- variant: "xs",
6161
- fontSize: "1rem",
6162
- color: disabledTextColor,
6163
- cursor: "default",
6164
- paddingX: 2,
6165
- children
6166
- }
6167
- ) : /* @__PURE__ */ jsx(
6168
- Button,
6169
- {
6170
- size: "xs",
6171
- variant: state === "active" ? "primary" : "ghost",
6172
- onClick: state === "completed" ? () => onClick(stepNumber) : void 0,
6173
- pointerEvents: state === "active" ? "none" : "auto",
6174
- tabIndex: state === "active" ? -1 : void 0,
6175
- disabled,
6176
- "aria-current": state === "active" ? "step" : void 0,
6177
- css: state === "active" ? style.stepButton._currentStep : style.stepButton,
6178
- fontWeight: state === "active" ? "bold" : void 0,
6179
- children
6180
- }
6181
- )
6182
- ] });
6183
- };
6184
- var getState = (stepNumber, activeStep) => {
6185
- if (stepNumber < activeStep) {
6186
- return "completed";
6187
- }
6188
- if (stepNumber === activeStep) {
6189
- return "active";
6190
- }
6191
- return "disabled";
6192
- };
6193
- var Tabs = forwardRef((props, ref) => {
6194
- const { variant = "core", size = "sm" } = props;
6195
- return /* @__PURE__ */ jsx(Tabs$1.Root, { ...props, ref, variant, size });
6196
- });
6197
- Tabs.displayName = "Tabs";
6198
- var TabsList = Tabs$1.List;
6199
- var TabsTrigger = Tabs$1.Trigger;
6200
- var TabsIndicator = Tabs$1.Indicator;
6201
- var TabsContent = Tabs$1.Content;
6202
- var numericStyles = {
6203
- "&[data-is-numeric=true]": {
6204
- textAlign: "right"
6205
- }
6206
- };
6207
- var tableSlotRecipe = defineSlotRecipe({
6208
- className: "spor-table",
6209
- slots: tableAnatomy.keys(),
6210
- base: {
6211
- root: {
6212
- tableLayout: "fixed",
6213
- borderCollapse: "collapse",
6214
- width: "100%",
6215
- minWidth: "36rem",
6216
- overflowX: "auto"
6217
- },
6218
- columnHeader: {
6219
- fontWeight: "bold",
6220
- textAlign: "start",
6221
- ...numericStyles,
6222
- paddingX: 1.5,
6223
- paddingY: 1
6224
- },
6225
- row: {
6226
- ...numericStyles
6227
- },
6228
- cell: {
6229
- ...numericStyles,
6230
- paddingX: 1.5,
6231
- paddingY: 1,
6232
- width: "100%"
6233
- },
6234
- footer: {
6235
- fontWeight: "medium"
6236
- }
6237
- },
6238
- variants: {
6239
- colorPalette: {
6240
- green: {
6241
- root: {
6242
- backgroundColor: "bg"
6243
- },
6244
- header: {
6245
- backgroundColor: "bg.tertiary"
6246
- },
6247
- columnHeader: {
6248
- color: "text.secondary"
6249
- }
6250
- },
6251
- grey: {
6252
- root: {
6253
- backgroundColor: "bg"
6254
- },
6255
- columnHeader: {
6256
- color: "brand.text.inverted",
6257
- backgroundColor: "surface.disabled",
6258
- _hover: {
6259
- backgroundColor: "surface.disabled"
6260
- }
6261
- }
6262
- },
6263
- white: {
6264
- root: {
6265
- backgroundColor: "bg"
6266
- },
6267
- columnHeader: {
6268
- color: "text",
6269
- backgroundColor: "bg"
6270
- }
6271
- }
6272
- },
6273
- variant: {
6274
- ghost: {
6275
- header: {
6276
- backgroundColor: "none"
6277
- },
6278
- columnHeader: {
6279
- borderBottom: "sm",
6280
- borderColor: "outline.disabled",
6281
- backgroundColor: "none",
6282
- color: "text"
6283
- },
6284
- cell: {
6285
- ...numericStyles
6286
- },
6287
- row: {
6288
- borderBottom: "sm",
6289
- borderColor: "outline.disabled",
6290
- ...numericStyles
6291
- }
6292
- },
6293
- core: {
6294
- root: {
6295
- boxShadow: "0 0 0 1px var(--shadow-color)",
6296
- shadowColor: "outline.disabled",
6297
- borderRadius: "sm"
6298
- },
6299
- table: {
6300
- overflow: "hidden"
6301
- },
6302
- cell: {
6303
- ...numericStyles,
6304
- borderRight: "sm",
6305
- borderColor: "outline.disabled",
6306
- _last: {
6307
- borderRight: "none"
6308
- }
6309
- },
6310
- columnHeader: {
6311
- ...numericStyles,
6312
- borderRight: "sm",
6313
- borderColor: "outline.disabled",
6314
- _first: {
6315
- borderTopLeftRadius: "sm"
6316
- },
6317
- _last: {
6318
- borderTopRightRadius: "sm",
6319
- borderRight: "none"
6320
- }
6321
- },
6322
- header: {
6323
- borderBottom: "sm",
6324
- borderColor: "outline.disabled"
6325
- },
6326
- row: {
6327
- ...numericStyles,
6328
- borderBottom: "sm",
6329
- borderColor: "outline.disabled",
6330
- _last: {
6331
- borderBottom: "none"
6332
- }
6333
- }
5455
+ DropdownRightFill18Icon,
5456
+ {
5457
+ marginX: 5,
5458
+ display: ["none", null, "block"],
5459
+ color: iconColor
6334
5460
  }
6335
- },
6336
- size: {
6337
- sm: {
6338
- table: {
6339
- fontSize: "mobile.sm"
6340
- },
6341
- cell: {
6342
- paddingX: 1,
6343
- paddingY: 0.5,
6344
- fontSize: "mobile.sm"
6345
- },
6346
- columnHeader: {
6347
- paddingX: 1,
6348
- paddingY: 0.5
6349
- },
6350
- caption: {
6351
- paddingX: 1,
6352
- paddingY: 0.5
6353
- }
6354
- },
6355
- md: {
6356
- table: {
6357
- fontSize: "mobile.md"
6358
- },
6359
- cell: {
6360
- paddingX: 1.5,
6361
- paddingY: 1,
6362
- fontSize: "mobile.md"
6363
- },
6364
- columnHeader: {
6365
- paddingX: 1.5,
6366
- paddingY: 1,
6367
- fontSize: "mobile.md"
6368
- },
6369
- caption: {
6370
- paddingX: 1.5,
6371
- paddingY: 1,
6372
- fontSize: "mobile.md"
6373
- }
6374
- },
6375
- lg: {
6376
- table: {
6377
- fontSize: "mobile.md"
6378
- },
6379
- cell: {
6380
- paddingX: 3,
6381
- paddingY: 3,
6382
- fontSize: "mobile.md"
6383
- },
6384
- columnHeader: {
6385
- paddingX: 3,
6386
- paddingY: 2,
6387
- fontSize: "mobile.md"
6388
- },
6389
- caption: {
6390
- paddingX: 3,
6391
- paddingY: 2
6392
- }
5461
+ ),
5462
+ disabled ? /* @__PURE__ */ jsx(
5463
+ Text3,
5464
+ {
5465
+ variant: "xs",
5466
+ fontSize: "1rem",
5467
+ color: disabledTextColor,
5468
+ cursor: "default",
5469
+ paddingX: 2,
5470
+ children
6393
5471
  }
6394
- }
5472
+ ) : /* @__PURE__ */ jsx(
5473
+ Button,
5474
+ {
5475
+ size: "xs",
5476
+ variant: state === "active" ? "primary" : "ghost",
5477
+ onClick: state === "completed" ? () => onClick(stepNumber) : void 0,
5478
+ pointerEvents: state === "active" ? "none" : "auto",
5479
+ tabIndex: state === "active" ? -1 : void 0,
5480
+ disabled,
5481
+ "aria-current": state === "active" ? "step" : void 0,
5482
+ css: state === "active" ? style.stepButton._currentStep : style.stepButton,
5483
+ fontWeight: state === "active" ? "bold" : void 0,
5484
+ children
5485
+ }
5486
+ )
5487
+ ] });
5488
+ };
5489
+ var getState = (stepNumber, activeStep) => {
5490
+ if (stepNumber < activeStep) {
5491
+ return "completed";
5492
+ }
5493
+ if (stepNumber === activeStep) {
5494
+ return "active";
6395
5495
  }
5496
+ return "disabled";
5497
+ };
5498
+ var Tabs = forwardRef((props, ref) => {
5499
+ const { variant = "core", size = "sm" } = props;
5500
+ return /* @__PURE__ */ jsx(Tabs$1.Root, { ...props, ref, variant, size });
6396
5501
  });
5502
+ Tabs.displayName = "Tabs";
5503
+ var TabsList = Tabs$1.List;
5504
+ var TabsTrigger = Tabs$1.Trigger;
5505
+ var TabsIndicator = Tabs$1.Indicator;
5506
+ var TabsContent = Tabs$1.Content;
6397
5507
  var Table = forwardRef((props, ref) => {
6398
5508
  const { variant = "ghost", size, colorPalette = "green", children } = props;
6399
- const recipe = useSlotRecipe({ recipe: tableSlotRecipe });
5509
+ const recipe = useSlotRecipe({ key: "table" });
6400
5510
  const styles = recipe({ variant, size });
6401
5511
  return /* @__PURE__ */ jsx(
6402
5512
  Table$1.Root,
@@ -6652,7 +5762,140 @@ var linkRecipe = defineRecipe({
6652
5762
  size: "sm"
6653
5763
  }
6654
5764
  });
6655
- var _a3, _b2;
5765
+ var separatorRecipe = defineRecipe({
5766
+ className: "spor-separator",
5767
+ base: {
5768
+ borderColor: "outline.disabled",
5769
+ display: "block",
5770
+ borderRadius: "xl"
5771
+ },
5772
+ variants: {
5773
+ variant: {
5774
+ solid: {
5775
+ borderStyle: "solid"
5776
+ },
5777
+ dashed: {
5778
+ width: "100%",
5779
+ borderWidth: "0px"
5780
+ }
5781
+ },
5782
+ size: {
5783
+ sm: {
5784
+ borderBottomWidth: "1px",
5785
+ height: "1px"
5786
+ },
5787
+ md: {
5788
+ borderBottomWidth: "2px",
5789
+ height: "2px"
5790
+ },
5791
+ lg: {
5792
+ borderBottomWidth: "3px",
5793
+ height: "3px"
5794
+ }
5795
+ },
5796
+ orientation: {
5797
+ horizontal: {
5798
+ width: "100%"
5799
+ },
5800
+ vertical: {
5801
+ height: "100%",
5802
+ borderLeftWidth: "1px"
5803
+ }
5804
+ }
5805
+ },
5806
+ compoundVariants: [
5807
+ {
5808
+ variant: "dashed",
5809
+ size: "sm",
5810
+ css: {
5811
+ background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 1px, transparent 1px, transparent 4px)",
5812
+ backgroundSize: "4px 1px",
5813
+ backgroundRepeat: "repeat-x"
5814
+ }
5815
+ },
5816
+ {
5817
+ variant: "dashed",
5818
+ size: "md",
5819
+ css: {
5820
+ background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 6px)",
5821
+ backgroundSize: "9px 2px",
5822
+ backgroundRepeat: "repeat-x"
5823
+ }
5824
+ },
5825
+ {
5826
+ variant: "dashed",
5827
+ size: "lg",
5828
+ css: {
5829
+ background: "linear-gradient(to left, var(--spor-colors-outline-disabled), var(--spor-colors-outline-disabled) 3px, transparent 3px, transparent 9px)",
5830
+ backgroundSize: "9px 3px",
5831
+ backgroundRepeat: "repeat-x"
5832
+ }
5833
+ },
5834
+ {
5835
+ variant: "dashed",
5836
+ orientation: "vertical",
5837
+ css: {
5838
+ background: "0",
5839
+ width: "0%",
5840
+ height: "100%"
5841
+ }
5842
+ }
5843
+ ]
5844
+ });
5845
+ var skeletonRecipe = defineRecipe({
5846
+ className: "chakra-skeleton",
5847
+ variants: {
5848
+ loading: {
5849
+ true: {
5850
+ borderRadius: "xs",
5851
+ boxShadow: "none",
5852
+ backgroundClip: "padding-box",
5853
+ cursor: "default",
5854
+ color: "transparent",
5855
+ pointerEvents: "none",
5856
+ userSelect: "none",
5857
+ flexShrink: "0",
5858
+ "&::before, &::after, *": {
5859
+ visibility: "hidden"
5860
+ }
5861
+ },
5862
+ false: {
5863
+ background: "unset",
5864
+ animation: "fade-in var(--fade-duration, 0.1s) ease-out !important"
5865
+ }
5866
+ },
5867
+ variant: {
5868
+ pulse: {
5869
+ background: {
5870
+ _light: "silver",
5871
+ _dark: "darkGrey"
5872
+ },
5873
+ animation: "pulse",
5874
+ animationDuration: "var(--duration, 1.2s)"
5875
+ },
5876
+ shine: {
5877
+ "--animate-from": "200%",
5878
+ "--animate-to": "-200%",
5879
+ "--start-color": {
5880
+ _light: "colors.lightGrey",
5881
+ _dark: "colors.dimGrey"
5882
+ },
5883
+ "--end-color": {
5884
+ _light: "colors.platinum",
5885
+ _dark: "colors.darkGrey"
5886
+ },
5887
+ backgroundImage: "linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",
5888
+ backgroundSize: "400% 100%",
5889
+ animation: "bg-position var(--duration, 5s) ease-in-out infinite"
5890
+ },
5891
+ none: {
5892
+ animation: "none",
5893
+ background: "steel"
5894
+ }
5895
+ }
5896
+ }
5897
+ });
5898
+ var _a2, _b;
6656
5899
  var textareaRecipe = defineRecipe({
6657
5900
  className: "spor-textarea",
6658
5901
  base: {
@@ -6669,10 +5912,10 @@ var textareaRecipe = defineRecipe({
6669
5912
  variants: {
6670
5913
  variant: {
6671
5914
  core: {
6672
- ...(_a3 = inputRecipe.variants) == null ? void 0 : _a3.variant.core
5915
+ ...(_a2 = inputRecipe.variants) == null ? void 0 : _a2.variant.core
6673
5916
  },
6674
5917
  floating: {
6675
- ...(_b2 = inputRecipe.variants) == null ? void 0 : _b2.variant.floating
5918
+ ...(_b = inputRecipe.variants) == null ? void 0 : _b.variant.floating
6676
5919
  }
6677
5920
  }
6678
5921
  }
@@ -6721,33 +5964,284 @@ var shadows = defineSemanticTokens.shadows({
6721
5964
  sm: {
6722
5965
  value: tokens23__default.depth.shadow.sm.value
6723
5966
  },
6724
- md: {
6725
- value: tokens23__default.depth.shadow.md.value
5967
+ md: {
5968
+ value: tokens23__default.depth.shadow.md.value
5969
+ },
5970
+ lg: {
5971
+ value: tokens23__default.depth.shadow.lg.value
5972
+ }
5973
+ });
5974
+
5975
+ // src/theme/semantic-tokens/index.ts
5976
+ var baseSemanticTokens = {
5977
+ shadows,
5978
+ radii
5979
+ };
5980
+ var semanticTokens = {
5981
+ ["VyUtvikling" /* VyUtvikling */]: {
5982
+ ...baseSemanticTokens,
5983
+ colors: vyUtviklingColors
5984
+ },
5985
+ ["CargoNet" /* CargoNet */]: {
5986
+ ...baseSemanticTokens,
5987
+ colors: cargonetColors
6726
5988
  },
6727
- lg: {
6728
- value: tokens23__default.depth.shadow.lg.value
5989
+ ["VyDigital" /* VyDigital */]: {
5990
+ ...baseSemanticTokens,
5991
+ colors: vyDigitalColors
6729
5992
  }
6730
- });
5993
+ };
5994
+ var accordionAnatomy = createAnatomy("accordion").parts(
5995
+ "root",
5996
+ "itemTrigger",
5997
+ "item",
5998
+ "itemBody",
5999
+ "itemContent",
6000
+ "itemIndicator"
6001
+ );
6002
+ var alertAnatomy = createAnatomy("alert").parts(
6003
+ "root",
6004
+ "indicator",
6005
+ "title",
6006
+ "closeButton",
6007
+ "content",
6008
+ "description"
6009
+ );
6010
+ var alertExpandableAnatomy = createAnatomy("alert-expandable").parts(
6011
+ "root",
6012
+ "itemTrigger",
6013
+ "itemContent",
6014
+ "indicator",
6015
+ "title",
6016
+ "itemIndicator"
6017
+ );
6018
+ var alertServiceAnatomy = createAnatomy("service-alert").parts(
6019
+ "root",
6020
+ "itemTrigger",
6021
+ "itemTriggerTitle",
6022
+ "notificationText",
6023
+ "itemContent",
6024
+ "itemBody"
6025
+ );
6026
+ var listAnatomy = createAnatomy("list").parts(
6027
+ "root",
6028
+ "item",
6029
+ "icon",
6030
+ "indicator"
6031
+ );
6032
+ var tableAnatomy = createAnatomy("table").parts(
6033
+ "root",
6034
+ "body",
6035
+ "row",
6036
+ "cell",
6037
+ "columnHeader",
6038
+ "caption",
6039
+ "footer",
6040
+ "header"
6041
+ );
6042
+ var fieldAnatomy = createAnatomy("field").parts(
6043
+ "root",
6044
+ "label",
6045
+ "requiredIndicator",
6046
+ "helperText",
6047
+ "errorText"
6048
+ );
6049
+ var dialogAnatomy = createAnatomy("dialog").parts(
6050
+ "header",
6051
+ "body",
6052
+ "footer",
6053
+ "backdrop",
6054
+ "positioner",
6055
+ "content",
6056
+ "title",
6057
+ "description",
6058
+ "closeTrigger"
6059
+ );
6060
+ var paginationAnatomy = createAnatomy("pagination").parts(
6061
+ "list",
6062
+ "item"
6063
+ );
6064
+ var linjetagAnatomy = createAnatomy("linjetag").parts(
6065
+ "iconContainer",
6066
+ "icon",
6067
+ "root",
6068
+ "title",
6069
+ "desc"
6070
+ );
6071
+ var infoTagAnatomy = createAnatomy("info-tag").parts(
6072
+ "container",
6073
+ "iconContainer",
6074
+ "icon",
6075
+ "textContainer",
6076
+ "title",
6077
+ "description",
6078
+ "walk"
6079
+ );
6080
+ var travelTagAnatomy = createAnatomy("travel-tag").parts(
6081
+ "container",
6082
+ "iconContainer",
6083
+ "icon",
6084
+ "textContainer",
6085
+ "title",
6086
+ "description",
6087
+ "deviationIcon"
6088
+ );
6089
+ var drawerAnatomy = createAnatomy("drawer").parts(
6090
+ "header",
6091
+ "body",
6092
+ "backdrop",
6093
+ "positioner",
6094
+ "content",
6095
+ "footer",
6096
+ "title",
6097
+ "description",
6098
+ "closeTrigger"
6099
+ );
6100
+ var checkboxAnatomy = createAnatomy("checkbox").parts(
6101
+ "root",
6102
+ "control",
6103
+ "label",
6104
+ "description",
6105
+ "addon",
6106
+ "indicator",
6107
+ "content"
6108
+ );
6109
+ var breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
6110
+ "link",
6111
+ "currentLink",
6112
+ "list",
6113
+ "separator"
6114
+ );
6115
+ var stepperAnatomy = createAnatomy("stepper").parts(
6116
+ "root",
6117
+ "container",
6118
+ "innerContainer",
6119
+ "title",
6120
+ "stepCounter",
6121
+ "stepContainer",
6122
+ "stepButton",
6123
+ "stepNumber",
6124
+ "stepTitle",
6125
+ "closeButton",
6126
+ "backButton"
6127
+ );
6128
+ var radioCardAnatomy = createAnatomy("radio-card").parts(
6129
+ "root",
6130
+ "item",
6131
+ "label",
6132
+ "itemText",
6133
+ "itemDescription",
6134
+ "itemContent"
6135
+ );
6136
+ var radioAnatomy = createAnatomy("radio").parts(
6137
+ "root",
6138
+ "item",
6139
+ "itemControl",
6140
+ "itemText",
6141
+ "label"
6142
+ );
6143
+ var listBoxAnatomy = createAnatomy("listbox").parts(
6144
+ "root",
6145
+ "item",
6146
+ "label",
6147
+ "description"
6148
+ );
6149
+ var NativeSelectAnatomy = createAnatomy("native-select").parts(
6150
+ "root",
6151
+ "field",
6152
+ "icon"
6153
+ );
6154
+ var tabsAnatomy = createAnatomy("tabs").parts(
6155
+ "root",
6156
+ "list",
6157
+ "trigger",
6158
+ "content",
6159
+ "indicator"
6160
+ );
6161
+ var switchAnatomy = createAnatomy("switch").parts(
6162
+ "root",
6163
+ "thumb",
6164
+ "control",
6165
+ "label"
6166
+ );
6167
+ var selectAnatomy = createAnatomy("select").parts(
6168
+ "root",
6169
+ "trigger",
6170
+ "indicatorGroup",
6171
+ "indicator",
6172
+ "selectContent",
6173
+ "item",
6174
+ "control",
6175
+ "itemText",
6176
+ "itemDescription",
6177
+ "itemGroup",
6178
+ "itemGroupLabel",
6179
+ "label",
6180
+ "valueText"
6181
+ );
6182
+ createAnatomy("card-select").parts(
6183
+ "trigger",
6184
+ "card"
6185
+ );
6186
+ var numericStepperAnatomy = createAnatomy("numeric-stepper").parts(
6187
+ "root",
6188
+ "container",
6189
+ "input",
6190
+ "text",
6191
+ "button"
6192
+ );
6193
+ var mediaControllerAnatomy = createAnatomy(
6194
+ "media-controller-button"
6195
+ ).parts("root", "icon");
6196
+ var progressBarAnotomy = createAnatomy("progress-bar").parts(
6197
+ "container",
6198
+ "background",
6199
+ "progress",
6200
+ "description",
6201
+ "disabledBackground"
6202
+ );
6203
+ var toastAnatomy = createAnatomy("toast").parts(
6204
+ "root",
6205
+ "title",
6206
+ "description",
6207
+ "indicator",
6208
+ "closeTrigger",
6209
+ "actionTrigger"
6210
+ );
6211
+ var floatingActionButtonAnatomy = createAnatomy(
6212
+ "floating-action-button"
6213
+ ).parts("root", "icon", "text");
6214
+ var popoverAnatomy = popoverAnatomy$1.extendWith(
6215
+ "header",
6216
+ "body",
6217
+ "footer"
6218
+ );
6219
+ var datepickerAnatomy = createAnatomy("datepicker").parts(
6220
+ "wrapper",
6221
+ "calendarTriggerButton",
6222
+ "arrow",
6223
+ "calendarPopover",
6224
+ "calendar",
6225
+ "weekdays",
6226
+ "weekend",
6227
+ "dateCell",
6228
+ "inputLabel",
6229
+ "dateTimeSegment",
6230
+ "cell",
6231
+ "box",
6232
+ "rangeCalendarPopover"
6233
+ );
6234
+ var checkboxCardAnatomy = createAnatomy("checkbox-card", [
6235
+ "root",
6236
+ "control",
6237
+ "label",
6238
+ "description",
6239
+ "addon",
6240
+ "indicator",
6241
+ "content"
6242
+ ]);
6731
6243
 
6732
- // src/theme/semantic-tokens/index.ts
6733
- var baseSemanticTokens = {
6734
- shadows,
6735
- radii
6736
- };
6737
- var semanticTokens = {
6738
- ["VyUtvikling" /* VyUtvikling */]: {
6739
- ...baseSemanticTokens,
6740
- colors: vyUtviklingColors
6741
- },
6742
- ["CargoNet" /* CargoNet */]: {
6743
- ...baseSemanticTokens,
6744
- colors: cargonetColors
6745
- },
6746
- ["VyDigital" /* VyDigital */]: {
6747
- ...baseSemanticTokens,
6748
- colors: vyDigitalColors
6749
- }
6750
- };
6244
+ // src/theme/slot-recipes/accordion.ts
6751
6245
  var accordionSlotRecipe = defineSlotRecipe({
6752
6246
  className: "spor-accordion",
6753
6247
  slots: accordionAnatomy.keys(),
@@ -7300,139 +6794,345 @@ var choiceChipSlotRecipe = defineSlotRecipe({
7300
6794
  }
7301
6795
  }
7302
6796
  },
7303
- _focusVisible: {
7304
- outline: "2px solid",
7305
- outlineColor: "outline.focus",
7306
- outlineOffset: "1px"
6797
+ _focusVisible: {
6798
+ outline: "2px solid",
6799
+ outlineColor: "outline.focus",
6800
+ outlineOffset: "1px"
6801
+ },
6802
+ _disabled: {
6803
+ pointerEvents: "none",
6804
+ boxShadow: "none",
6805
+ backgroundColor: "surface.disabled",
6806
+ color: "text.disabled",
6807
+ outline: "none",
6808
+ _hover: {
6809
+ backgroundColor: "core.surface.disabled",
6810
+ boxShadow: "none",
6811
+ color: "core.text.disabled"
6812
+ },
6813
+ _checked: {
6814
+ cursor: "not-allowed",
6815
+ boxShadow: "none",
6816
+ color: "core.text.disabled",
6817
+ backgroundColor: "core.surface.disabled",
6818
+ _hover: {
6819
+ backgroundColor: "core.surface.disabled",
6820
+ boxShadow: "none",
6821
+ color: "core.text.disabled"
6822
+ }
6823
+ }
6824
+ }
6825
+ },
6826
+ label: {
6827
+ display: "flex",
6828
+ alignItems: "center",
6829
+ fontSize: "xs"
6830
+ }
6831
+ },
6832
+ variants: {
6833
+ size: {
6834
+ xs: {
6835
+ root: {
6836
+ _checked: {
6837
+ borderRadius: "0.563rem"
6838
+ },
6839
+ height: 5,
6840
+ paddingX: 1.5
6841
+ }
6842
+ },
6843
+ sm: {
6844
+ root: {
6845
+ _checked: {
6846
+ borderRadius: "sm"
6847
+ },
6848
+ height: 6,
6849
+ paddingX: 2
6850
+ }
6851
+ },
6852
+ md: {
6853
+ root: {
6854
+ _checked: {
6855
+ borderRadius: "sm"
6856
+ },
6857
+ height: 7,
6858
+ paddingX: 2
6859
+ }
6860
+ },
6861
+ lg: {
6862
+ root: {
6863
+ _checked: {
6864
+ borderRadius: "md"
6865
+ },
6866
+ height: 8,
6867
+ paddingX: 3
6868
+ }
6869
+ }
6870
+ },
6871
+ variant: {
6872
+ core: {
6873
+ root: {
6874
+ color: "core.text",
6875
+ outlineColor: "core.outline",
6876
+ _hover: {
6877
+ outline: "2px solid",
6878
+ outlineColor: "core.outline.hover",
6879
+ _active: {
6880
+ outline: "1px solid",
6881
+ outlineColor: "core.outline",
6882
+ backgroundColor: "core.surface.active"
6883
+ }
6884
+ }
6885
+ }
6886
+ },
6887
+ accent: {
6888
+ root: {
6889
+ backgroundColor: "accent.surface",
6890
+ color: "accent.text",
6891
+ outline: "none",
6892
+ _hover: {
6893
+ backgroundColor: "accent.surface.hover",
6894
+ _active: {
6895
+ backgroundColor: "accent.surface.active"
6896
+ }
6897
+ }
6898
+ }
6899
+ },
6900
+ floating: {
6901
+ root: {
6902
+ backgroundColor: "floating.surface",
6903
+ outline: "1px solid",
6904
+ outlineColor: "floating.outline",
6905
+ color: "floating.text",
6906
+ boxShadow: "sm",
6907
+ _hover: {
6908
+ backgroundColor: "floating.surface.hover",
6909
+ outline: "1px solid",
6910
+ outlineColor: "floating.outline.hover",
6911
+ _active: {
6912
+ backgroundColor: "floating.surface.active",
6913
+ outline: "1px solid",
6914
+ outlineColor: "floating.outline"
6915
+ }
6916
+ }
6917
+ }
6918
+ }
6919
+ },
6920
+ chipType: {
6921
+ icon: {},
6922
+ choice: {},
6923
+ filter: {}
6924
+ }
6925
+ },
6926
+ defaultVariants: {
6927
+ size: "md",
6928
+ variant: "core",
6929
+ chipType: "choice"
6930
+ }
6931
+ });
6932
+ var datePickerSlotRecipe = defineSlotRecipe({
6933
+ slots: datepickerAnatomy.keys(),
6934
+ className: "spor-datepicker",
6935
+ base: {
6936
+ wrapper: {
6937
+ transitionProperty: "box-shadow",
6938
+ transitionDuration: "fast",
6939
+ borderRadius: "sm",
6940
+ display: "flex",
6941
+ flex: 1,
6942
+ paddingY: 0.5,
6943
+ alignItems: "center",
6944
+ _hover: {
6945
+ zIndex: "docked"
6946
+ },
6947
+ _disabled: {
6948
+ pointerEvents: "none",
6949
+ backgroundColor: "surface.disabled",
6950
+ outline: "1px solid",
6951
+ outlineColor: "outline.disabled",
6952
+ color: "text.disabled"
6953
+ },
6954
+ _focusWithin: {
6955
+ outline: "2px solid",
6956
+ outlineColor: "outline.focus"
6957
+ }
6958
+ },
6959
+ inputLabel: {
6960
+ fontSize: "mobile.xs",
6961
+ margin: 0,
6962
+ cursor: "text"
6963
+ },
6964
+ dateTimeSegment: {
6965
+ _focus: {
6966
+ backgroundColor: "ghost.surface.active",
6967
+ color: "text.default"
6968
+ }
6969
+ },
6970
+ box: {
6971
+ width: "100%"
6972
+ },
6973
+ calendarTriggerButton: {
6974
+ position: "relative",
6975
+ borderRadius: "xl",
6976
+ display: "flex",
6977
+ alignItems: "center",
6978
+ justifyContent: "center",
6979
+ transitionProperty: "box-shadow, background-color",
6980
+ right: "0.5rem",
6981
+ _hover: {
6982
+ backgroundColor: "ghost.surface.hover"
6983
+ },
6984
+ _active: {
6985
+ backgroundColor: "ghost.surface.active"
6986
+ },
6987
+ _invalid: {
6988
+ outline: "2px solid",
6989
+ outlineColor: "outline.error"
6990
+ }
6991
+ },
6992
+ arrow: {
6993
+ backgroundColor: "surface"
6994
+ },
6995
+ calendarPopover: {
6996
+ color: "core.text",
6997
+ outline: "1px solid",
6998
+ outlineColor: "floating.outline",
6999
+ boxShadow: "md",
7000
+ backgroundColor: "floating.surface"
7001
+ },
7002
+ rangeCalendarPopover: {
7003
+ width: "43rem",
7004
+ maxWidth: "100vw"
7005
+ },
7006
+ weekdays: {
7007
+ color: "core.text",
7008
+ fontWeight: "bold"
7009
+ },
7010
+ weekend: {
7011
+ color: "accent.text",
7012
+ fontWeight: "bold"
7013
+ },
7014
+ cell: {
7015
+ '&[aria-selected="true"] + [aria-selected="true"] > button': {
7016
+ "&::before": {
7017
+ content: '""',
7018
+ display: "block",
7019
+ height: "100%",
7020
+ position: "absolute",
7021
+ left: "-50%",
7022
+ top: 0,
7023
+ bottom: 0,
7024
+ zIndex: -1,
7025
+ backgroundColor: "brand.surface"
7026
+ }
7027
+ }
7028
+ },
7029
+ dateCell: {
7030
+ color: "core.text",
7031
+ borderRadius: "xl",
7032
+ position: "relative",
7033
+ transition: ".1s ease-in-out",
7034
+ userSelect: "none",
7035
+ width: [6, 7],
7036
+ height: [6, 7],
7037
+ transitionProperty: "common",
7038
+ _hover: {
7039
+ backgroundColor: "ghost.surface.hover"
7040
+ },
7041
+ _active: {
7042
+ backgroundColor: "ghost.surface.active"
7307
7043
  },
7308
7044
  _disabled: {
7309
- pointerEvents: "none",
7310
- boxShadow: "none",
7311
7045
  backgroundColor: "surface.disabled",
7312
7046
  color: "text.disabled",
7313
- outline: "none",
7314
- _hover: {
7315
- backgroundColor: "core.surface.disabled",
7316
- boxShadow: "none",
7317
- color: "core.text.disabled"
7318
- },
7319
- _checked: {
7320
- cursor: "not-allowed",
7321
- boxShadow: "none",
7322
- color: "core.text.disabled",
7323
- backgroundColor: "core.surface.disabled",
7324
- _hover: {
7325
- backgroundColor: "core.surface.disabled",
7326
- boxShadow: "none",
7327
- color: "core.text.disabled"
7328
- }
7329
- }
7330
- }
7331
- },
7332
- label: {
7333
- display: "flex",
7334
- alignItems: "center",
7335
- fontSize: "xs"
7336
- }
7337
- },
7338
- variants: {
7339
- size: {
7340
- xs: {
7341
- root: {
7342
- _checked: {
7343
- borderRadius: "0.563rem"
7344
- },
7345
- height: 5,
7346
- paddingX: 1.5
7347
- }
7047
+ pointerEvents: "none"
7348
7048
  },
7349
- sm: {
7350
- root: {
7351
- _checked: {
7352
- borderRadius: "sm"
7353
- },
7354
- height: 6,
7355
- paddingX: 2
7049
+ _selected: {
7050
+ backgroundColor: "brand.surface",
7051
+ color: "brand.text",
7052
+ _active: {
7053
+ backgroundColor: "brand.surface.active",
7054
+ color: "brand.text"
7356
7055
  }
7357
7056
  },
7358
- md: {
7359
- root: {
7360
- _checked: {
7361
- borderRadius: "sm"
7362
- },
7363
- height: 7,
7364
- paddingX: 2
7365
- }
7057
+ "&[data-today]": {
7058
+ outline: "1px solid",
7059
+ outlineColor: "core.outline"
7366
7060
  },
7367
- lg: {
7368
- root: {
7369
- _checked: {
7370
- borderRadius: "md"
7371
- },
7372
- height: 8,
7373
- paddingX: 3
7374
- }
7061
+ "&[data-unavailable]": {
7062
+ pointerEvents: "none",
7063
+ borderRadius: "xl",
7064
+ backgroundColor: "surface.disabled",
7065
+ color: "text.disabled"
7375
7066
  }
7376
- },
7067
+ }
7068
+ },
7069
+ variants: {
7377
7070
  variant: {
7378
7071
  core: {
7379
- root: {
7380
- color: "core.text",
7072
+ wrapper: {
7073
+ outline: "1px solid",
7381
7074
  outlineColor: "core.outline",
7075
+ backgroundColor: "core.surface",
7382
7076
  _hover: {
7383
7077
  outline: "2px solid",
7384
7078
  outlineColor: "core.outline.hover",
7385
7079
  _active: {
7080
+ backgroundColor: "ghost.surface.active",
7386
7081
  outline: "1px solid",
7387
- outlineColor: "core.outline",
7388
- backgroundColor: "core.surface.active"
7389
- }
7390
- }
7391
- }
7392
- },
7393
- accent: {
7394
- root: {
7395
- backgroundColor: "accent.surface",
7396
- color: "accent.text",
7397
- outline: "none",
7398
- _hover: {
7399
- backgroundColor: "accent.surface.hover",
7400
- _active: {
7401
- backgroundColor: "accent.surface.active"
7082
+ outlineColor: "core.outline"
7402
7083
  }
7084
+ },
7085
+ _invalid: {
7086
+ outline: "2px solid",
7087
+ outlineColor: "outline.error"
7403
7088
  }
7404
7089
  }
7405
7090
  },
7406
7091
  floating: {
7407
- root: {
7408
- backgroundColor: "floating.surface",
7092
+ wrapper: {
7093
+ backgroundColor: {
7094
+ _light: "bg",
7095
+ _dark: `color-mix(in srgb, white 10%, var(--spor-colors-bg))`
7096
+ },
7409
7097
  outline: "1px solid",
7410
7098
  outlineColor: "floating.outline",
7411
- color: "floating.text",
7412
7099
  boxShadow: "sm",
7413
7100
  _hover: {
7414
- backgroundColor: "floating.surface.hover",
7415
7101
  outline: "1px solid",
7416
7102
  outlineColor: "floating.outline.hover",
7417
7103
  _active: {
7418
- backgroundColor: "floating.surface.active",
7104
+ backgroundColor: "ghost.surface.active",
7419
7105
  outline: "1px solid",
7420
- outlineColor: "floating.outline"
7106
+ outlineColor: "core.outline"
7107
+ }
7108
+ },
7109
+ _invalid: {
7110
+ outline: "2px solid",
7111
+ outlineColor: "outline.error"
7112
+ }
7113
+ }
7114
+ },
7115
+ ghost: {
7116
+ wrapper: {
7117
+ _hover: {
7118
+ outline: "2px solid",
7119
+ outlineColor: "core.outline.hover",
7120
+ _active: {
7121
+ backgroundColor: "ghost.surface.active",
7122
+ outline: "1px solid",
7123
+ outlineColor: "core.outline"
7421
7124
  }
7125
+ },
7126
+ _invalid: {
7127
+ outline: "2px solid",
7128
+ outlineColor: "outline.error"
7422
7129
  }
7423
7130
  }
7424
7131
  }
7425
- },
7426
- chipType: {
7427
- icon: {},
7428
- choice: {},
7429
- filter: {}
7430
7132
  }
7431
7133
  },
7432
7134
  defaultVariants: {
7433
- size: "md",
7434
- variant: "core",
7435
- chipType: "choice"
7135
+ variant: "core"
7436
7136
  }
7437
7137
  });
7438
7138
  var dialogSlotRecipe = defineSlotRecipe({
@@ -8216,7 +7916,7 @@ var travelTagSlotRecipe = defineSlotRecipe({
8216
7916
  });
8217
7917
 
8218
7918
  // src/theme/slot-recipes/info-tag.ts
8219
- var _a4, _b3, _c, _d;
7919
+ var _a3, _b2, _c, _d;
8220
7920
  var infoTagSlotRecipe = defineSlotRecipe({
8221
7921
  slots: infoTagAnatomy.keys(),
8222
7922
  className: "spor-info-tag",
@@ -8253,9 +7953,9 @@ var infoTagSlotRecipe = defineSlotRecipe({
8253
7953
  "local-bus": {}
8254
7954
  },
8255
7955
  size: {
8256
- ...(_a4 = travelTagSlotRecipe.variants) == null ? void 0 : _a4.size,
7956
+ ...(_a3 = travelTagSlotRecipe.variants) == null ? void 0 : _a3.size,
8257
7957
  sm: {
8258
- ...(_b3 = travelTagSlotRecipe.variants) == null ? void 0 : _b3.size.sm,
7958
+ ...(_b2 = travelTagSlotRecipe.variants) == null ? void 0 : _b2.size.sm,
8259
7959
  iconContainer: {
8260
7960
  borderRadius: "0.375rem"
8261
7961
  }
@@ -8628,29 +8328,140 @@ var mediaControllerSlotRecipe = defineSlotRecipe({
8628
8328
  }
8629
8329
  }
8630
8330
  },
8631
- {
8632
- variant: "jumpSkip",
8633
- size: "sm",
8634
- css: {
8635
- root: {
8636
- fontSize: 24
8637
- }
8638
- }
8331
+ {
8332
+ variant: "jumpSkip",
8333
+ size: "sm",
8334
+ css: {
8335
+ root: {
8336
+ fontSize: 24
8337
+ }
8338
+ }
8339
+ },
8340
+ {
8341
+ variant: "jumpSkip",
8342
+ size: "lg",
8343
+ css: {
8344
+ root: {
8345
+ fontSize: 38
8346
+ },
8347
+ icon: {
8348
+ margin: 1,
8349
+ transform: "scale(1.4)"
8350
+ }
8351
+ }
8352
+ }
8353
+ ]
8354
+ });
8355
+ var _a4, _b3;
8356
+ var nativeSelectSlotRecipe = defineSlotRecipe({
8357
+ slots: NativeSelectAnatomy.keys(),
8358
+ className: "spor-nativeSelect",
8359
+ base: {
8360
+ root: {
8361
+ width: "100%",
8362
+ height: "fit-content",
8363
+ position: "relative"
8364
+ },
8365
+ field: {
8366
+ ...inputRecipe.base
8367
+ },
8368
+ icon: {
8369
+ width: 5,
8370
+ height: 5,
8371
+ right: " 0.5rem",
8372
+ strokeLinecap: "round",
8373
+ position: "absolute",
8374
+ display: "inline-flex",
8375
+ boxAlign: "center",
8376
+ alignItems: "center",
8377
+ boxPack: "center",
8378
+ justifyContent: "center",
8379
+ pointerEvents: "none",
8380
+ top: "50%",
8381
+ transform: "translateY(-50%)",
8382
+ insetEnd: "0.5rem",
8383
+ color: "currentColor",
8384
+ fontSize: "sm",
8385
+ _disabled: {
8386
+ color: "text.disabled"
8387
+ }
8388
+ }
8389
+ },
8390
+ variants: {
8391
+ variant: {
8392
+ core: {
8393
+ field: {
8394
+ ...(_a4 = inputRecipe.variants) == null ? void 0 : _a4.variant.core
8395
+ }
8396
+ },
8397
+ floating: {
8398
+ field: {
8399
+ ...(_b3 = inputRecipe.variants) == null ? void 0 : _b3.variant.floating
8400
+ }
8401
+ }
8402
+ }
8403
+ }
8404
+ });
8405
+ var numericStepperRecipe = defineSlotRecipe({
8406
+ slots: numericStepperAnatomy.keys(),
8407
+ className: "spor-numeric-stepper",
8408
+ base: {
8409
+ root: {
8410
+ "& > div": {
8411
+ display: "flex",
8412
+ flexDirection: "row",
8413
+ alignItems: "center"
8414
+ }
8415
+ },
8416
+ input: {
8417
+ fontSize: "sm",
8418
+ fontWeight: "bold",
8419
+ marginX: 0.5,
8420
+ padding: 0,
8421
+ paddingX: 0.5,
8422
+ borderRadius: "xs",
8423
+ outline: "none",
8424
+ height: "auto",
8425
+ textAlign: "center",
8426
+ transitionProperty: "common",
8427
+ transitionDuration: "fast",
8428
+ color: "core.text",
8429
+ backgroundColor: "transparent",
8430
+ _focus: {
8431
+ backgroundColor: "surface",
8432
+ outline: "2px solid",
8433
+ outlineColor: "outline.focus"
8434
+ },
8435
+ _active: {
8436
+ backgroundColor: "accent.surface.active"
8437
+ },
8438
+ _disabled: {
8439
+ pointerEvents: "none",
8440
+ opacity: 0.5
8441
+ },
8442
+ _hover: {
8443
+ outline: "1px solid",
8444
+ outlineColor: "core.outline"
8445
+ }
8446
+ },
8447
+ text: {
8448
+ fontSize: "sm",
8449
+ fontWeight: "bold",
8450
+ marginX: 1,
8451
+ paddingX: 1,
8452
+ textAlign: "center",
8453
+ width: "4ch",
8454
+ color: "core.text"
8639
8455
  },
8640
- {
8641
- variant: "jumpSkip",
8642
- size: "lg",
8643
- css: {
8644
- root: {
8645
- fontSize: 38
8646
- },
8647
- icon: {
8648
- margin: 1,
8649
- transform: "scale(1.4)"
8650
- }
8456
+ button: {
8457
+ outlineOffset: "-2px",
8458
+ width: "auto",
8459
+ _icon: {
8460
+ width: "1.2rem",
8461
+ height: "1.2rem"
8651
8462
  }
8652
8463
  }
8653
- ]
8464
+ }
8654
8465
  });
8655
8466
  var paginationSlotRecipe = defineSlotRecipe({
8656
8467
  slots: paginationAnatomy.keys(),
@@ -9454,6 +9265,201 @@ var switchSlotRecipe = defineSlotRecipe({
9454
9265
  }
9455
9266
  }
9456
9267
  });
9268
+ var numericStyles = {
9269
+ "&[data-is-numeric=true]": {
9270
+ textAlign: "right"
9271
+ }
9272
+ };
9273
+ var tableSlotRecipe = defineSlotRecipe({
9274
+ className: "spor-table",
9275
+ slots: tableAnatomy.keys(),
9276
+ base: {
9277
+ root: {
9278
+ tableLayout: "fixed",
9279
+ borderCollapse: "collapse",
9280
+ width: "100%",
9281
+ minWidth: "36rem",
9282
+ overflowX: "auto"
9283
+ },
9284
+ columnHeader: {
9285
+ fontWeight: "bold",
9286
+ textAlign: "start",
9287
+ ...numericStyles,
9288
+ paddingX: 1.5,
9289
+ paddingY: 1
9290
+ },
9291
+ row: {
9292
+ ...numericStyles
9293
+ },
9294
+ cell: {
9295
+ ...numericStyles,
9296
+ paddingX: 1.5,
9297
+ paddingY: 1,
9298
+ width: "100%"
9299
+ },
9300
+ footer: {
9301
+ fontWeight: "medium"
9302
+ }
9303
+ },
9304
+ variants: {
9305
+ colorPalette: {
9306
+ green: {
9307
+ root: {
9308
+ backgroundColor: "bg"
9309
+ },
9310
+ header: {
9311
+ backgroundColor: "bg.tertiary"
9312
+ },
9313
+ columnHeader: {
9314
+ color: "text.secondary"
9315
+ }
9316
+ },
9317
+ grey: {
9318
+ root: {
9319
+ backgroundColor: "bg"
9320
+ },
9321
+ columnHeader: {
9322
+ color: "brand.text.inverted",
9323
+ backgroundColor: "surface.disabled",
9324
+ _hover: {
9325
+ backgroundColor: "surface.disabled"
9326
+ }
9327
+ }
9328
+ },
9329
+ white: {
9330
+ root: {
9331
+ backgroundColor: "bg"
9332
+ },
9333
+ columnHeader: {
9334
+ color: "text",
9335
+ backgroundColor: "bg"
9336
+ }
9337
+ }
9338
+ },
9339
+ variant: {
9340
+ ghost: {
9341
+ header: {
9342
+ backgroundColor: "none"
9343
+ },
9344
+ columnHeader: {
9345
+ borderBottom: "sm",
9346
+ borderColor: "outline.disabled",
9347
+ backgroundColor: "none",
9348
+ color: "text"
9349
+ },
9350
+ cell: {
9351
+ ...numericStyles
9352
+ },
9353
+ row: {
9354
+ borderBottom: "sm",
9355
+ borderColor: "outline.disabled",
9356
+ ...numericStyles
9357
+ }
9358
+ },
9359
+ core: {
9360
+ root: {
9361
+ boxShadow: "0 0 0 1px var(--shadow-color)",
9362
+ shadowColor: "outline.disabled",
9363
+ borderRadius: "sm"
9364
+ },
9365
+ table: {
9366
+ overflow: "hidden"
9367
+ },
9368
+ cell: {
9369
+ ...numericStyles,
9370
+ borderRight: "sm",
9371
+ borderColor: "outline.disabled",
9372
+ _last: {
9373
+ borderRight: "none"
9374
+ }
9375
+ },
9376
+ columnHeader: {
9377
+ ...numericStyles,
9378
+ borderRight: "sm",
9379
+ borderColor: "outline.disabled",
9380
+ _first: {
9381
+ borderTopLeftRadius: "sm"
9382
+ },
9383
+ _last: {
9384
+ borderTopRightRadius: "sm",
9385
+ borderRight: "none"
9386
+ }
9387
+ },
9388
+ header: {
9389
+ borderBottom: "sm",
9390
+ borderColor: "outline.disabled"
9391
+ },
9392
+ row: {
9393
+ ...numericStyles,
9394
+ borderBottom: "sm",
9395
+ borderColor: "outline.disabled",
9396
+ _last: {
9397
+ borderBottom: "none"
9398
+ }
9399
+ }
9400
+ }
9401
+ },
9402
+ size: {
9403
+ sm: {
9404
+ table: {
9405
+ fontSize: "mobile.sm"
9406
+ },
9407
+ cell: {
9408
+ paddingX: 1,
9409
+ paddingY: 0.5,
9410
+ fontSize: "mobile.sm"
9411
+ },
9412
+ columnHeader: {
9413
+ paddingX: 1,
9414
+ paddingY: 0.5
9415
+ },
9416
+ caption: {
9417
+ paddingX: 1,
9418
+ paddingY: 0.5
9419
+ }
9420
+ },
9421
+ md: {
9422
+ table: {
9423
+ fontSize: "mobile.md"
9424
+ },
9425
+ cell: {
9426
+ paddingX: 1.5,
9427
+ paddingY: 1,
9428
+ fontSize: "mobile.md"
9429
+ },
9430
+ columnHeader: {
9431
+ paddingX: 1.5,
9432
+ paddingY: 1,
9433
+ fontSize: "mobile.md"
9434
+ },
9435
+ caption: {
9436
+ paddingX: 1.5,
9437
+ paddingY: 1,
9438
+ fontSize: "mobile.md"
9439
+ }
9440
+ },
9441
+ lg: {
9442
+ table: {
9443
+ fontSize: "mobile.md"
9444
+ },
9445
+ cell: {
9446
+ paddingX: 3,
9447
+ paddingY: 3,
9448
+ fontSize: "mobile.md"
9449
+ },
9450
+ columnHeader: {
9451
+ paddingX: 3,
9452
+ paddingY: 2,
9453
+ fontSize: "mobile.md"
9454
+ },
9455
+ caption: {
9456
+ paddingX: 3,
9457
+ paddingY: 2
9458
+ }
9459
+ }
9460
+ }
9461
+ }
9462
+ });
9457
9463
  var tabsSlotRecipe = defineSlotRecipe({
9458
9464
  slots: tabsAnatomy.keys(),
9459
9465
  className: "spor-tabs",
@@ -10519,6 +10525,6 @@ var themes = {
10519
10525
  };
10520
10526
  var system = themes["VyDigital" /* VyDigital */];
10521
10527
 
10522
- export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Badge, Brand, Breadcrumb, Button, ButtonGroup, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, 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, 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, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useColorMode, useColorModeValue, useTranslation };
10528
+ export { Accordion, AccordionItem, AccordionItemContent, AccordionItemTrigger, Alert, AttachedInputs, Badge, Brand, Breadcrumb, Button, ButtonGroup, CardSelect, CardSelectContent, CardSelectTrigger, CargonetLogo, Checkbox, CheckboxGroup, ChoiceChip, Clipboard, ClipboardButton, CloseButton, CloseDrawerLine, Code, ColorInlineLoader, ColorModeButton, ColorModeIcon, ColorModeProvider, ColorSpinner, 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, 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, SearchInput, Select, SelectContent, SelectItem, SelectItemGroup, SelectItemText, SelectLabel, SelectRoot, SelectTrigger, SelectValueText, Separator, ServiceAlert, Skeleton, SkeletonCircle, SkeletonText, SkipButton, SporProvider, StaticCard, Stepper, StepperStep, SvgBox, Switch, Table, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Text3 as Text, TextLink, Textarea, TimePicker, TravelTag, VyLogo, VyLogoPride, createTexts, createToast, fontFaces, slugify, system, themes, useColorMode, useColorModeValue, useTranslation };
10523
10529
  //# sourceMappingURL=out.js.map
10524
10530
  //# sourceMappingURL=index.mjs.map