@vygruppen/spor-react 13.1.0 → 13.1.2
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/.turbo/turbo-build.log +10 -10
- package/.turbo/turbo-postinstall.log +4 -3
- package/CHANGELOG.md +15 -0
- package/dist/index.cjs +113 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +114 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/input/Menu.tsx +9 -5
- package/src/input/PasswordInput.tsx +1 -2
- package/src/theme/recipes/badge.ts +97 -25
- package/src/toast/toast.tsx +7 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
5
|
-
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1,
|
|
5
|
+
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, ComboboxItemProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuCheckboxItemProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuItemGroupProps as MenuItemGroupProps$1, MenuRadioItemProps, MenuRadioItemGroupProps, MenuSeparatorProps, MenuTriggerItemProps as MenuTriggerItemProps$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SelectLabelProps, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
|
6
6
|
export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, 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';
|
|
7
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
|
8
8
|
import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
|
|
9
9
|
export { Time } from '@internationalized/date';
|
|
10
10
|
import { DOMAttributes, FocusableElement } from '@react-types/shared';
|
|
11
|
-
import {
|
|
11
|
+
import { AriaCalendarProps, DateValue, AriaRangeCalendarProps, AriaButtonProps, AriaDatePickerProps, AriaDateRangePickerProps, RangeCalendarProps as RangeCalendarProps$1, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
|
|
12
12
|
import { CalendarState as CalendarState$1, RangeCalendarState as RangeCalendarState$1, ListState, SelectState } from 'react-stately';
|
|
13
13
|
export { Item, Section } from 'react-stately';
|
|
14
14
|
import { ThemeProviderProps } from 'next-themes';
|
|
@@ -2028,10 +2028,11 @@ declare const MenuContent: ({ children, ref, ...props }: MenuContentProps & {
|
|
|
2028
2028
|
}) => react_jsx_runtime.JSX.Element;
|
|
2029
2029
|
type MenuTriggerProps = {
|
|
2030
2030
|
icon?: ReactNode;
|
|
2031
|
-
|
|
2031
|
+
withChevron?: boolean;
|
|
2032
|
+
} & Omit<ButtonProps, "rightIcon" | "leftIcon"> & {
|
|
2032
2033
|
ref?: Ref<HTMLButtonElement>;
|
|
2033
2034
|
};
|
|
2034
|
-
declare const MenuTrigger: ({ icon, size, children, ref, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
2035
|
+
declare const MenuTrigger: ({ icon, size, children, ref, withChevron, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
2035
2036
|
type MenuItemProps = {
|
|
2036
2037
|
itemCommand?: string;
|
|
2037
2038
|
leftIcon?: React.ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import React__default, { PropsWithChildren, ReactNode, ComponentProps, Ref } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
5
|
-
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, Combobox as Combobox$1,
|
|
5
|
+
import { AccordionRootProps, RecipeVariantProps, Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, BreadcrumbRootProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, SystemStyleObject, RadioCard as RadioCard$1, SeparatorProps, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Box, ComboboxRootProps, ComboboxItemProps, Combobox as Combobox$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, CheckboxCardRootProps, Fieldset as Fieldset$1, Input as Input$1, TagRootProps, ListRootProps, MenuRootProps, MenuCheckboxItemProps, MenuContentProps, MenuItemProps as MenuItemProps$1, MenuItemGroupProps as MenuItemGroupProps$1, MenuRadioItemProps, MenuRadioItemGroupProps, MenuSeparatorProps, MenuTriggerItemProps as MenuTriggerItemProps$1, NativeSelectFieldProps, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, SelectLabelProps, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, LinkProps as LinkProps$1, List as List$1, UseProgressProps, SkeletonProps as SkeletonProps$1, CircleProps, Popover as Popover$1, Pagination as Pagination$1, ChakraProviderProps, SystemContext, TabsRootProps, Tabs as Tabs$1, TableRootProps, TableBodyProps as TableBodyProps$1, TableColumnHeaderProps as TableColumnHeaderProps$1, Tooltip as Tooltip$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
|
|
6
6
|
export { AspectRatio, Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, ClientOnly, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Icon, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, SystemConfig, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnGroup, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, 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';
|
|
7
7
|
import { IconComponent } from '@vygruppen/spor-icon-react';
|
|
8
8
|
import { CalendarDate, DateDuration, DateValue as DateValue$1 } from '@internationalized/date';
|
|
9
9
|
export { Time } from '@internationalized/date';
|
|
10
10
|
import { DOMAttributes, FocusableElement } from '@react-types/shared';
|
|
11
|
-
import {
|
|
11
|
+
import { AriaCalendarProps, DateValue, AriaRangeCalendarProps, AriaButtonProps, AriaDatePickerProps, AriaDateRangePickerProps, RangeCalendarProps as RangeCalendarProps$1, AriaComboBoxProps, AriaListBoxProps } from 'react-aria';
|
|
12
12
|
import { CalendarState as CalendarState$1, RangeCalendarState as RangeCalendarState$1, ListState, SelectState } from 'react-stately';
|
|
13
13
|
export { Item, Section } from 'react-stately';
|
|
14
14
|
import { ThemeProviderProps } from 'next-themes';
|
|
@@ -2028,10 +2028,11 @@ declare const MenuContent: ({ children, ref, ...props }: MenuContentProps & {
|
|
|
2028
2028
|
}) => react_jsx_runtime.JSX.Element;
|
|
2029
2029
|
type MenuTriggerProps = {
|
|
2030
2030
|
icon?: ReactNode;
|
|
2031
|
-
|
|
2031
|
+
withChevron?: boolean;
|
|
2032
|
+
} & Omit<ButtonProps, "rightIcon" | "leftIcon"> & {
|
|
2032
2033
|
ref?: Ref<HTMLButtonElement>;
|
|
2033
2034
|
};
|
|
2034
|
-
declare const MenuTrigger: ({ icon, size, children, ref, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
2035
|
+
declare const MenuTrigger: ({ icon, size, children, ref, withChevron, ...props }: MenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
2035
2036
|
type MenuItemProps = {
|
|
2036
2037
|
itemCommand?: string;
|
|
2037
2038
|
leftIcon?: React.ReactNode;
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as spor_icon_react_star from '@vygruppen/spor-icon-react';
|
|
|
4
4
|
import { DropdownDownFill24Icon, CloseFill18Icon, CloseFill30Icon, CloseFill24Icon, DropdownDownFill18Icon, ServiceFill24Icon, WarningFill24Icon, DropdownRightFill18Icon, CalendarOutline24Icon, DropdownLeftFill18Icon, ArrowLeftFill24Icon, ChangeDirectionOutline24Icon, CheckmarkFill18Icon, CloseOutline24Icon, SearchOutline24Icon, Forward15MediaControllerFill30Icon, Backward15MediaControllerFill30Icon, PauseMediaControllerFill24Icon, PlayMediaControllerFill24Icon, NextMediaControllerFill30Icon, PreviousMediaControllerFill30Icon, ArrowRightFill18Icon, DropdownLeftOutline18Icon, DropdownRightOutline18Icon, ArrowUpFill18Icon, ArrowDownFill18Icon, ChangeDirectionFill18Icon, CopyOutline18Icon, WalkFill30Icon, WalkFill24Icon, WalkFill18Icon, AltTransportFill30Icon, AltTransportFill24Icon, AltTransportFill18Icon, TramFill30Icon, TramFill24Icon, TramFill18Icon, SubwayFill30Icon, SubwayFill24Icon, SubwayFill18Icon, FerryFill30Icon, FerryFill24Icon, FerryFill18Icon, BusFill30Icon, BusFill24Icon, BusFill18Icon, ExpressBusFill30Icon, ExpressBusFill24Icon, ExpressBusFill18Icon, TrainFill30Icon, TrainFill24Icon, TrainFill18Icon, InformationFill24Icon, InformationFill18Icon, WarningFill18Icon, ErrorFill24Icon, ErrorFill18Icon, LinkOutOutline24Icon, LinkOutOutline18Icon, QuestionFill24Icon, ErrorOutline24Icon, SuccessFill24Icon, ArrowLeftOutline24Icon, ArrowRightOutline24Icon } from '@vygruppen/spor-icon-react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import * as React13 from 'react';
|
|
7
|
-
import React13__default, { createContext, useContext, useId,
|
|
7
|
+
import React13__default, { createContext, useContext, useId, isValidElement, cloneElement, useRef, useEffect, useImperativeHandle, useState, useLayoutEffect, useMemo } from 'react';
|
|
8
8
|
import { spinnerColorData, inlineLoaderColorData, contentLoaderData, fullScreenLoaderWhiteData, inlineLoaderDarkData, spinnerLightData, spinnerDarkData, fullScreenLoaderBlackData, inlineLoaderLightData } from '@vygruppen/spor-loader';
|
|
9
9
|
import { useLottie } from 'lottie-react';
|
|
10
10
|
import { useInterval } from 'usehooks-ts';
|
|
@@ -692,7 +692,7 @@ var badgeRecipie = defineRecipe({
|
|
|
692
692
|
}
|
|
693
693
|
},
|
|
694
694
|
green: {
|
|
695
|
-
backgroundColor: "surface.
|
|
695
|
+
backgroundColor: "surface.success",
|
|
696
696
|
color: "text.success",
|
|
697
697
|
"& svg": {
|
|
698
698
|
color: "icon.success"
|
|
@@ -775,10 +775,19 @@ var badgeRecipie = defineRecipe({
|
|
|
775
775
|
colorPalette: "blue",
|
|
776
776
|
inverted: true,
|
|
777
777
|
css: {
|
|
778
|
-
backgroundColor:
|
|
779
|
-
|
|
778
|
+
backgroundColor: {
|
|
779
|
+
_light: "darkBlue",
|
|
780
|
+
_dark: "lightBlue"
|
|
781
|
+
},
|
|
782
|
+
color: {
|
|
783
|
+
_light: "icyBlue",
|
|
784
|
+
_dark: "royal"
|
|
785
|
+
},
|
|
780
786
|
"& svg": {
|
|
781
|
-
color:
|
|
787
|
+
color: {
|
|
788
|
+
_light: "royal",
|
|
789
|
+
_dark: "icyBlue"
|
|
790
|
+
}
|
|
782
791
|
}
|
|
783
792
|
}
|
|
784
793
|
},
|
|
@@ -786,10 +795,19 @@ var badgeRecipie = defineRecipe({
|
|
|
786
795
|
colorPalette: "green",
|
|
787
796
|
inverted: true,
|
|
788
797
|
css: {
|
|
789
|
-
backgroundColor:
|
|
790
|
-
|
|
798
|
+
backgroundColor: {
|
|
799
|
+
_light: "darkTeal",
|
|
800
|
+
_dark: "seaMist"
|
|
801
|
+
},
|
|
802
|
+
color: {
|
|
803
|
+
_light: "mint",
|
|
804
|
+
_dark: "jungle"
|
|
805
|
+
},
|
|
791
806
|
"& svg": {
|
|
792
|
-
color:
|
|
807
|
+
color: {
|
|
808
|
+
_light: "mint",
|
|
809
|
+
_dark: "jungle"
|
|
810
|
+
}
|
|
793
811
|
}
|
|
794
812
|
}
|
|
795
813
|
},
|
|
@@ -797,10 +815,19 @@ var badgeRecipie = defineRecipe({
|
|
|
797
815
|
colorPalette: "grey",
|
|
798
816
|
inverted: true,
|
|
799
817
|
css: {
|
|
800
|
-
backgroundColor:
|
|
801
|
-
|
|
818
|
+
backgroundColor: {
|
|
819
|
+
_light: "carbon",
|
|
820
|
+
_dark: "platinum"
|
|
821
|
+
},
|
|
822
|
+
color: {
|
|
823
|
+
_light: "white",
|
|
824
|
+
_dark: "darkGrey"
|
|
825
|
+
},
|
|
802
826
|
"& svg": {
|
|
803
|
-
color:
|
|
827
|
+
color: {
|
|
828
|
+
_light: "white",
|
|
829
|
+
_dark: "darkGrey"
|
|
830
|
+
}
|
|
804
831
|
}
|
|
805
832
|
}
|
|
806
833
|
},
|
|
@@ -809,10 +836,19 @@ var badgeRecipie = defineRecipe({
|
|
|
809
836
|
colorPalette: "cream",
|
|
810
837
|
inverted: true,
|
|
811
838
|
css: {
|
|
812
|
-
backgroundColor:
|
|
813
|
-
|
|
839
|
+
backgroundColor: {
|
|
840
|
+
_light: "coffee",
|
|
841
|
+
_dark: "blonde"
|
|
842
|
+
},
|
|
843
|
+
color: {
|
|
844
|
+
_light: "cornsilk",
|
|
845
|
+
_dark: "coffee"
|
|
846
|
+
},
|
|
814
847
|
"& svg": {
|
|
815
|
-
color:
|
|
848
|
+
color: {
|
|
849
|
+
_light: "cornsilk",
|
|
850
|
+
_dark: "coffee"
|
|
851
|
+
}
|
|
816
852
|
}
|
|
817
853
|
}
|
|
818
854
|
},
|
|
@@ -820,10 +856,19 @@ var badgeRecipie = defineRecipe({
|
|
|
820
856
|
colorPalette: "yellow",
|
|
821
857
|
inverted: true,
|
|
822
858
|
css: {
|
|
823
|
-
backgroundColor:
|
|
824
|
-
|
|
859
|
+
backgroundColor: {
|
|
860
|
+
_light: "bronze",
|
|
861
|
+
_dark: "banana"
|
|
862
|
+
},
|
|
863
|
+
color: {
|
|
864
|
+
_light: "cornsilk",
|
|
865
|
+
_dark: "coffee"
|
|
866
|
+
},
|
|
825
867
|
"& svg": {
|
|
826
|
-
color:
|
|
868
|
+
color: {
|
|
869
|
+
_light: "cornsilk",
|
|
870
|
+
_dark: "coffee"
|
|
871
|
+
}
|
|
827
872
|
}
|
|
828
873
|
}
|
|
829
874
|
},
|
|
@@ -831,10 +876,19 @@ var badgeRecipie = defineRecipe({
|
|
|
831
876
|
colorPalette: "orange",
|
|
832
877
|
inverted: true,
|
|
833
878
|
css: {
|
|
834
|
-
backgroundColor:
|
|
835
|
-
|
|
879
|
+
backgroundColor: {
|
|
880
|
+
_light: "wood",
|
|
881
|
+
_dark: "champagne"
|
|
882
|
+
},
|
|
883
|
+
color: {
|
|
884
|
+
_light: "bisque",
|
|
885
|
+
_dark: "wood"
|
|
886
|
+
},
|
|
836
887
|
"& svg": {
|
|
837
|
-
color:
|
|
888
|
+
color: {
|
|
889
|
+
_light: "bisque",
|
|
890
|
+
_dark: "wood"
|
|
891
|
+
}
|
|
838
892
|
}
|
|
839
893
|
}
|
|
840
894
|
},
|
|
@@ -842,10 +896,19 @@ var badgeRecipie = defineRecipe({
|
|
|
842
896
|
colorPalette: "red",
|
|
843
897
|
inverted: true,
|
|
844
898
|
css: {
|
|
845
|
-
backgroundColor:
|
|
846
|
-
|
|
899
|
+
backgroundColor: {
|
|
900
|
+
_light: "burgundy",
|
|
901
|
+
_dark: "lightRed"
|
|
902
|
+
},
|
|
903
|
+
color: {
|
|
904
|
+
_light: "pink",
|
|
905
|
+
_dark: "maroon"
|
|
906
|
+
},
|
|
847
907
|
"& svg": {
|
|
848
|
-
color:
|
|
908
|
+
color: {
|
|
909
|
+
_light: "pink",
|
|
910
|
+
_dark: "maroon"
|
|
911
|
+
}
|
|
849
912
|
}
|
|
850
913
|
}
|
|
851
914
|
},
|
|
@@ -854,10 +917,19 @@ var badgeRecipie = defineRecipe({
|
|
|
854
917
|
colorPalette: "neutral",
|
|
855
918
|
inverted: true,
|
|
856
919
|
css: {
|
|
857
|
-
backgroundColor:
|
|
858
|
-
|
|
920
|
+
backgroundColor: {
|
|
921
|
+
_light: "ink",
|
|
922
|
+
_dark: "white"
|
|
923
|
+
},
|
|
924
|
+
color: {
|
|
925
|
+
_light: "white",
|
|
926
|
+
_dark: "darkGrey"
|
|
927
|
+
},
|
|
859
928
|
"& svg": {
|
|
860
|
-
color:
|
|
929
|
+
color: {
|
|
930
|
+
_light: "white",
|
|
931
|
+
_dark: "darkGrey"
|
|
932
|
+
}
|
|
861
933
|
}
|
|
862
934
|
}
|
|
863
935
|
}
|
|
@@ -4105,6 +4177,7 @@ var MenuTrigger = ({
|
|
|
4105
4177
|
size,
|
|
4106
4178
|
children,
|
|
4107
4179
|
ref,
|
|
4180
|
+
withChevron = true,
|
|
4108
4181
|
...props
|
|
4109
4182
|
}) => {
|
|
4110
4183
|
const { variant } = useMenuContext();
|
|
@@ -4124,7 +4197,7 @@ var MenuTrigger = ({
|
|
|
4124
4197
|
variant: getButtonVariant(),
|
|
4125
4198
|
size,
|
|
4126
4199
|
...props,
|
|
4127
|
-
rightIcon: /* @__PURE__ */ jsx(
|
|
4200
|
+
rightIcon: withChevron && /* @__PURE__ */ jsx(
|
|
4128
4201
|
ChevronIcon,
|
|
4129
4202
|
{
|
|
4130
4203
|
transform: open ? "rotate(180deg)" : void 0,
|
|
@@ -6466,10 +6539,20 @@ var createToast = ({
|
|
|
6466
6539
|
var Toaster = () => {
|
|
6467
6540
|
return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Toaster$1, { toaster, insetInline: { mdDown: "4" }, children: (toast) => {
|
|
6468
6541
|
var _a6;
|
|
6469
|
-
return /* @__PURE__ */ jsxs(
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6542
|
+
return /* @__PURE__ */ jsxs(
|
|
6543
|
+
Toast.Root,
|
|
6544
|
+
{
|
|
6545
|
+
width: { md: (_a6 = toast.meta) == null ? void 0 : _a6.width },
|
|
6546
|
+
border: "sm",
|
|
6547
|
+
borderColor: `outline.${toast.type}`,
|
|
6548
|
+
boxShadow: "sm",
|
|
6549
|
+
role: "alert",
|
|
6550
|
+
children: [
|
|
6551
|
+
/* @__PURE__ */ jsx(AlertIcon, { variant: toast.type }),
|
|
6552
|
+
/* @__PURE__ */ jsx(Stack, { gap: "1", flex: "1", maxWidth: "100%", children: /* @__PURE__ */ jsx(Toast.Description, { children: toast.description }) })
|
|
6553
|
+
]
|
|
6554
|
+
}
|
|
6555
|
+
);
|
|
6473
6556
|
} }) });
|
|
6474
6557
|
};
|
|
6475
6558
|
var SporProvider = ({
|