@vygruppen/spor-react 13.6.0 → 13.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
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, List as List$1, Combobox, Fieldset as Fieldset$1, createListCollection, Select as Select$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, Link, InputElement, Input as Input$1, useFilter, useListCollection, useCombobox, useComboboxContext, usePopoverContext, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCard, Tag, ListItem as ListItem$1, 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, 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
- import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ErrorFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, CloseOutline18Icon, SearchOutline24Icon, SearchOutline18Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, 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, ErrorFill18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon } from '@vygruppen/spor-icon-react';
4
+ import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ErrorFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, CloseOutline18Icon, SearchOutline24Icon, SearchOutline18Icon, 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, ErrorFill18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, LinkOutOutline30Icon } from '@vygruppen/spor-icon-react';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
6
  import * as React14 from 'react';
7
7
  import React14__default, { createContext, useContext, useId, cloneElement, isValidElement, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
@@ -673,58 +673,70 @@ var badgeRecipie = defineRecipe({
673
673
  alignItems: "center",
674
674
  justifyContent: "center",
675
675
  height: "fit-content",
676
- gap: "0.5"
676
+ gap: "0.5",
677
+ outline: "1px solid",
678
+ outlineOffset: "-1px"
677
679
  },
678
680
  variants: {
679
681
  colorPalette: {
680
682
  neutral: {
681
683
  backgroundColor: "surface",
682
684
  color: "text",
685
+ outlineColor: "outline",
683
686
  "& svg": { color: "icon" }
684
687
  },
685
688
  grey: {
686
689
  backgroundColor: "surface.neutral",
687
690
  color: "text.neutral",
691
+ outlineColor: "outline.neutral",
688
692
  "& svg": { color: "icon.neutral" }
689
693
  },
690
694
  green: {
691
695
  backgroundColor: "surface.success",
692
696
  color: "text.success",
697
+ outlineColor: "outline.success",
693
698
  "& svg": { color: "icon.success" }
694
699
  },
695
700
  blue: {
696
701
  backgroundColor: "surface.info",
697
702
  color: "text.info",
703
+ outlineColor: "outline.info",
698
704
  "& svg": { color: "icon.info" }
699
705
  },
700
706
  cream: {
701
707
  backgroundColor: "surface.warning",
702
708
  color: "text.warning",
709
+ outlineColor: "outline.warning",
703
710
  "& svg": { color: "icon.warning" }
704
711
  },
705
712
  yellow: {
706
713
  backgroundColor: "surface.notice",
707
714
  color: "text.notice",
715
+ outlineColor: "outline.notice",
708
716
  "& svg": { color: "icon.notice" }
709
717
  },
710
718
  orange: {
711
719
  backgroundColor: "surface.caution",
712
720
  color: "text.caution",
721
+ outlineColor: "outline.caution",
713
722
  "& svg": { color: "icon.caution" }
714
723
  },
715
724
  red: {
716
725
  backgroundColor: "surface.critical",
717
726
  color: "text.critical",
727
+ outlineColor: "outline.critical",
718
728
  "& svg": { color: "icon.critical" }
719
729
  },
720
730
  brightRed: {
721
731
  backgroundColor: { _light: "brightRed", _dark: "brightRed" },
722
732
  color: { _light: "pink", _dark: "pink" },
733
+ outlineColor: "outline.error",
723
734
  "& svg": { color: { _light: "pink", _dark: "pink" } }
724
735
  },
725
736
  disabled: {
726
737
  backgroundColor: "surface.disabled",
727
738
  color: "text.disabled",
739
+ outlineColor: "outline.disabled",
728
740
  "& svg": { color: "icon.disabled" }
729
741
  }
730
742
  },
@@ -767,6 +779,7 @@ var badgeRecipie = defineRecipe({
767
779
  css: {
768
780
  backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
769
781
  color: { _light: "icyBlue", _dark: "royal" },
782
+ outlineColor: { _light: "ocean", _dark: "cloudy" },
770
783
  "& svg": { color: { _light: "royal", _dark: "icyBlue" } }
771
784
  }
772
785
  },
@@ -776,6 +789,7 @@ var badgeRecipie = defineRecipe({
776
789
  css: {
777
790
  backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
778
791
  color: { _light: "mint", _dark: "jungle" },
792
+ outlineColor: { _light: "greenHaze", _dark: "coralGreen" },
779
793
  "& svg": { color: { _light: "mint", _dark: "jungle" } }
780
794
  }
781
795
  },
@@ -785,6 +799,7 @@ var badgeRecipie = defineRecipe({
785
799
  css: {
786
800
  backgroundColor: { _light: "carbon", _dark: "platinum" },
787
801
  color: { _light: "white", _dark: "darkGrey" },
802
+ outlineColor: { _light: "iron", _dark: "silver" },
788
803
  "& svg": { color: { _light: "white", _dark: "darkGrey" } }
789
804
  }
790
805
  },
@@ -795,6 +810,7 @@ var badgeRecipie = defineRecipe({
795
810
  css: {
796
811
  backgroundColor: { _light: "coffee", _dark: "blonde" },
797
812
  color: { _light: "cornsilk", _dark: "coffee" },
813
+ outlineColor: { _light: "bronze", _dark: "banana" },
798
814
  "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
799
815
  }
800
816
  },
@@ -804,6 +820,7 @@ var badgeRecipie = defineRecipe({
804
820
  css: {
805
821
  backgroundColor: { _light: "bronze", _dark: "banana" },
806
822
  color: { _light: "cornsilk", _dark: "coffee" },
823
+ outlineColor: { _light: "golden", _dark: "banana" },
807
824
  "& svg": { color: { _light: "cornsilk", _dark: "coffee" } }
808
825
  }
809
826
  },
@@ -813,6 +830,7 @@ var badgeRecipie = defineRecipe({
813
830
  css: {
814
831
  backgroundColor: { _light: "wood", _dark: "champagne" },
815
832
  color: { _light: "bisque", _dark: "wood" },
833
+ outlineColor: { _light: "russet", _dark: "saffron" },
816
834
  "& svg": { color: { _light: "bisque", _dark: "wood" } }
817
835
  }
818
836
  },
@@ -822,6 +840,7 @@ var badgeRecipie = defineRecipe({
822
840
  css: {
823
841
  backgroundColor: { _light: "burgundy", _dark: "lightRed" },
824
842
  color: { _light: "pink", _dark: "maroon" },
843
+ outlineColor: { _light: "crimson", _dark: "salmon" },
825
844
  "& svg": { color: { _light: "pink", _dark: "maroon" } }
826
845
  }
827
846
  },
@@ -831,6 +850,7 @@ var badgeRecipie = defineRecipe({
831
850
  inverted: true,
832
851
  css: {
833
852
  backgroundColor: { _light: "ink", _dark: "white" },
853
+ outlineColor: { _light: "whiteAlpha.400", _dark: "blackAlpha.400" },
834
854
  color: { _light: "white", _dark: "darkGrey" },
835
855
  "& svg": { color: { _light: "white", _dark: "darkGrey" } }
836
856
  }
@@ -1571,7 +1591,7 @@ var RadioCard = ({
1571
1591
  ),
1572
1592
  /* @__PURE__ */ jsxs(RadioCard$1.ItemControl, { id: itemControlId, "aria-hidden": true, children: [
1573
1593
  showIndicator && /* @__PURE__ */ jsx(RadioCard$1.ItemIndicator, {}),
1574
- children
1594
+ /* @__PURE__ */ jsx(Flex, { direction: "column", children })
1575
1595
  ] })
1576
1596
  ] });
1577
1597
  };
@@ -2089,18 +2109,17 @@ var Field3 = ({
2089
2109
  id,
2090
2110
  gap,
2091
2111
  children: [
2092
- label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, "aria-hidden": true, css: styles.label, children: renderLabelWithIndicator(label, labelAsChild) }),
2093
- children,
2112
+ label && !floatingLabel && /* @__PURE__ */ jsx(Label, { asChild: labelAsChild, css: styles.label, children: renderLabelWithIndicator(label, labelAsChild) }),
2094
2113
  label && floatingLabel && /* @__PURE__ */ jsx(
2095
2114
  FloatingLabel,
2096
2115
  {
2097
2116
  "data-float": shouldFloat ? true : void 0,
2098
2117
  asChild: labelAsChild,
2099
- "aria-hidden": true,
2100
2118
  css: styles.label,
2101
2119
  children: renderLabelWithIndicator(label, labelAsChild)
2102
2120
  }
2103
2121
  ),
2122
+ children,
2104
2123
  errorText && /* @__PURE__ */ jsx(Field.ErrorText, { "aria-live": "polite", children: errorText })
2105
2124
  ]
2106
2125
  }
@@ -3285,10 +3304,29 @@ var texts14 = createTexts({
3285
3304
  var ExternalIcon = ({
3286
3305
  label,
3287
3306
  size
3288
- }) => /* @__PURE__ */ jsxs(Fragment, { children: [
3289
- size === "lg" || size === "md" ? /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" }) : /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true, display: "inline" }),
3290
- /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
3291
- ] });
3307
+ }) => {
3308
+ const getIcon = () => {
3309
+ switch (size) {
3310
+ case "lg": {
3311
+ return /* @__PURE__ */ jsx(LinkOutOutline30Icon, { "aria-hidden": true, display: "inline" });
3312
+ }
3313
+ case "md": {
3314
+ return /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" });
3315
+ }
3316
+ case "sm": {
3317
+ return /* @__PURE__ */ jsx(LinkOutOutline18Icon, { "aria-hidden": true, display: "inline" });
3318
+ }
3319
+ default: {
3320
+ return /* @__PURE__ */ jsx(LinkOutOutline24Icon, { "aria-hidden": true, display: "inline" });
3321
+ }
3322
+ }
3323
+ };
3324
+ return /* @__PURE__ */ jsxs("span", { style: { whiteSpace: "nowrap" }, children: [
3325
+ "\u2060",
3326
+ getIcon(),
3327
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: label })
3328
+ ] });
3329
+ };
3292
3330
  var TextLink = ({
3293
3331
  ref,
3294
3332
  children,
@@ -3649,6 +3687,7 @@ function Autocomplete({
3649
3687
  openOnClick = true,
3650
3688
  openOnFocus = true,
3651
3689
  ref,
3690
+ size = "md",
3652
3691
  ...rest
3653
3692
  }) {
3654
3693
  const { contains } = useFilter({ sensitivity: "base" });
@@ -3707,7 +3746,8 @@ function Autocomplete({
3707
3746
  onFocus == null ? void 0 : onFocus(event);
3708
3747
  if (openOnFocus && filteredChildren.length > 0)
3709
3748
  combobox.setOpen(true);
3710
- }
3749
+ },
3750
+ size
3711
3751
  }
3712
3752
  ) }),
3713
3753
  /* @__PURE__ */ jsx(Combobox.IndicatorGroup, { children: /* @__PURE__ */ jsx(Combobox.ClearTrigger, { asChild: true, "aria-label": t(texts16.clearValue), children: /* @__PURE__ */ jsx(CloseButton, { size: "xs", tabIndex: 0 }) }) })
@@ -6680,31 +6720,38 @@ var createToast = ({
6680
6720
  duration = 6e3,
6681
6721
  width = "sm",
6682
6722
  action,
6683
- closable = false
6723
+ closable = false,
6724
+ inverted = false
6684
6725
  }) => toaster.create({
6685
6726
  description: text,
6686
6727
  type: variant,
6687
6728
  id: id ?? crypto.randomUUID(),
6688
6729
  duration,
6689
6730
  action,
6690
- meta: { width },
6731
+ meta: { width, inverted },
6691
6732
  closable
6692
6733
  });
6693
6734
  var Toaster = () => {
6694
6735
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Toaster$1, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
6695
- var _a6;
6736
+ var _a6, _b5;
6696
6737
  return /* @__PURE__ */ jsxs(
6697
6738
  Toast.Root,
6698
6739
  {
6699
6740
  width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width },
6700
- border: "sm",
6701
- borderColor: `outline.${toast.type}`,
6702
- boxShadow: "sm",
6741
+ "data-inverted": ((_b5 = toast.meta) == null ? void 0 : _b5.inverted) ? "" : void 0,
6703
6742
  role: "alert",
6704
6743
  children: [
6705
6744
  /* @__PURE__ */ jsx(AlertIcon, { variant: toast.type }),
6706
6745
  /* @__PURE__ */ jsx(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsx(Toast.Description, { children: toast.description }) }),
6707
- toast.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { onClick: toast.action.onClick, children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "xs", children: toast.action.label }) }),
6746
+ toast.action && /* @__PURE__ */ jsx(Toast.ActionTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
6747
+ Button,
6748
+ {
6749
+ variant: "ghost",
6750
+ size: "xs",
6751
+ onClick: toast.action.onClick,
6752
+ children: toast.action.label
6753
+ }
6754
+ ) }),
6708
6755
  toast.closable && /* @__PURE__ */ jsx(Toast.CloseTrigger, { children: /* @__PURE__ */ jsx(CloseButton, { size: "xs" }) })
6709
6756
  ]
6710
6757
  }
@@ -7376,6 +7423,10 @@ var inputRecipe = defineRecipe({
7376
7423
  _focus: {
7377
7424
  outline: "2px solid",
7378
7425
  outlineColor: "outline.focus"
7426
+ },
7427
+ "&:-webkit-autofill, &:-webkit-autofill:focus": {
7428
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset",
7429
+ WebkitTextFillColor: "var(--spor-colors-text)"
7379
7430
  }
7380
7431
  },
7381
7432
  floating: {
@@ -7395,6 +7446,10 @@ var inputRecipe = defineRecipe({
7395
7446
  focus: {
7396
7447
  outline: "1px solid",
7397
7448
  outlineColor: "outline.focus"
7449
+ },
7450
+ "&:-webkit-autofill, &:-webkit-autofill:focus": {
7451
+ boxShadow: "0 0 0 1000px var(--spor-colors-surface-info-hover) inset",
7452
+ WebkitTextFillColor: "var(--spor-colors-text)"
7398
7453
  }
7399
7454
  }
7400
7455
  },
@@ -7568,13 +7623,14 @@ var separatorRecipe = defineRecipe({
7568
7623
  borderStyle: "solid"
7569
7624
  },
7570
7625
  dashed: {
7626
+ "--dash-color": "var(--spor-colors-outline)",
7571
7627
  borderImageSlice: 1,
7572
7628
  borderImageSource: `repeating-linear-gradient(
7573
7629
  var(--gradient-direction),
7574
- var(--spor-colors-outline-disabled) 0,
7575
- var(--spor-colors-outline-disabled) var(--dash-size),
7630
+ var(--dash-color) 0,
7631
+ var(--dash-color) var(--dash-size),
7576
7632
  transparent var(--dash-size),
7577
- transparent calc(var(--dash-size) + var(--dash-gap))
7633
+ transparent calc(var(--dash-size) + var(--dash-gap))
7578
7634
  )`
7579
7635
  }
7580
7636
  },
@@ -10348,7 +10404,7 @@ var inputChipSlotRecipe = defineSlotRecipe({
10348
10404
  root: {
10349
10405
  fontSize: "desktop.xs",
10350
10406
  paddingX: "1.5",
10351
- paddingY: "0",
10407
+ height: 5,
10352
10408
  fontWeight: "normal",
10353
10409
  borderRadius: "xs"
10354
10410
  }
@@ -10357,17 +10413,16 @@ var inputChipSlotRecipe = defineSlotRecipe({
10357
10413
  root: {
10358
10414
  fontSize: "desktop.sm",
10359
10415
  paddingX: "2",
10360
- paddingY: "0.5",
10416
+ height: 6,
10361
10417
  fontWeight: "bold",
10362
10418
  borderRadius: "9px"
10363
10419
  }
10364
10420
  },
10365
10421
  md: {
10366
10422
  root: {
10367
- padding: 5,
10368
10423
  fontSize: "desktop.md",
10369
10424
  paddingX: "2",
10370
- paddingY: "1",
10425
+ height: 7,
10371
10426
  fontWeight: "bold",
10372
10427
  borderRadius: "sm"
10373
10428
  }
@@ -10376,7 +10431,7 @@ var inputChipSlotRecipe = defineSlotRecipe({
10376
10431
  root: {
10377
10432
  fontSize: "desktop.md",
10378
10433
  paddingX: "2",
10379
- paddingY: "3",
10434
+ height: "8",
10380
10435
  fontWeight: "bold",
10381
10436
  borderRadius: "md"
10382
10437
  }
@@ -11533,6 +11588,11 @@ var selectSlotRecipe = defineSlotRecipe({
11533
11588
  outlineColor: "outline.error"
11534
11589
  }
11535
11590
  },
11591
+ valueText: {
11592
+ textOverflow: "ellipsis",
11593
+ whiteSpace: "nowrap",
11594
+ overflow: "hidden"
11595
+ },
11536
11596
  itemText: {
11537
11597
  flex: "1",
11538
11598
  alignItems: "center"
@@ -12273,6 +12333,7 @@ var toastSlotRecipe = defineSlotRecipe({
12273
12333
  translate: "var(--x) var(--y)",
12274
12334
  opacity: "var(--opacity)",
12275
12335
  willChange: "translate, opacity, scale",
12336
+ outline: "1px solid",
12276
12337
  borderRadius: "sm",
12277
12338
  transition: "translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",
12278
12339
  transitionTimingFunction: "cubic-bezier(0.21, 1.02, 0.73, 1)",
@@ -12280,16 +12341,52 @@ var toastSlotRecipe = defineSlotRecipe({
12280
12341
  transition: "translate 400ms, scale 400ms, opacity 200ms",
12281
12342
  transitionTimingFunction: "cubic-bezier(0.06, 0.71, 0.55, 1)"
12282
12343
  },
12283
- boxShadow: "xl",
12344
+ boxShadow: "sm",
12284
12345
  color: "text",
12285
12346
  "&[data-type=success]": {
12286
- backgroundColor: "surface.success"
12347
+ backgroundColor: "surface.success",
12348
+ outlineColor: "outline.success"
12287
12349
  },
12288
12350
  "&[data-type=error]": {
12289
- backgroundColor: "surface.critical"
12351
+ backgroundColor: "surface.critical",
12352
+ outlineColor: "outline.critical"
12290
12353
  },
12291
12354
  "&[data-type=info]": {
12292
- backgroundColor: "surface.info"
12355
+ backgroundColor: "surface.info",
12356
+ outlineColor: "outline.info"
12357
+ },
12358
+ "&[data-inverted][data-type=success]": {
12359
+ backgroundColor: { _light: "darkTeal", _dark: "seaMist" },
12360
+ color: { _light: "mint", _dark: "jungle" },
12361
+ outlineColor: { _light: "greenHaze", _dark: "coralGreen" },
12362
+ "& path:first-of-type": {
12363
+ fill: { _light: "mint", _dark: "jungle" }
12364
+ },
12365
+ "& path:not(:first-of-type)": {
12366
+ fill: { _light: "darkTeal", _dark: "seaMist" }
12367
+ }
12368
+ },
12369
+ "&[data-inverted][data-type=error]": {
12370
+ backgroundColor: { _light: "burgundy", _dark: "lightRed" },
12371
+ color: { _light: "pink", _dark: "maroon" },
12372
+ outlineColor: { _light: "crimson", _dark: "salmon" },
12373
+ "& path:first-of-type": {
12374
+ fill: { _light: "pink", _dark: "maroon" }
12375
+ },
12376
+ "& path:not(:first-of-type)": {
12377
+ fill: { _light: "burgundy", _dark: "lightRed" }
12378
+ }
12379
+ },
12380
+ "&[data-inverted][data-type=info]": {
12381
+ backgroundColor: { _light: "darkBlue", _dark: "lightBlue" },
12382
+ color: { _light: "icyBlue", _dark: "royal" },
12383
+ outlineColor: { _light: "ocean", _dark: "cloudy" },
12384
+ "& path:first-of-type": {
12385
+ fill: { _light: "icyBlue", _dark: "navy" }
12386
+ },
12387
+ "& path:not(:first-of-type)": {
12388
+ fill: { _light: "darkBlue", _dark: "lightBlue" }
12389
+ }
12293
12390
  }
12294
12391
  },
12295
12392
  title: {