@vygruppen/spor-react 12.2.0 → 12.2.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.
@@ -1,12 +1,30 @@
1
1
 
2
- > @vygruppen/spor-react@12.2.0 build /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.2.1 build /home/runner/work/spor/spor/packages/spor-react
3
3
  > pnpm typegen && tsup
4
4
 
5
5
 
6
- > @vygruppen/spor-react@12.2.0 typegen /home/runner/work/spor/spor/packages/spor-react
6
+ > @vygruppen/spor-react@12.2.1 typegen /home/runner/work/spor/spor/packages/spor-react
7
7
  > npx @chakra-ui/cli typegen src/theme/index.ts
8
8
 
9
9
  ┌ Chakra CLI ⚡️
10
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
11
+
12
+ ../spor-design-tokens/package.json:15:6:
13
+ 15 │ "types": "./dist/tokens.d.ts"
14
+ ╵ ~~~~~~~
15
+
16
+ The "import" condition comes earlier and will be used for all "import" statements:
17
+
18
+ ../spor-design-tokens/package.json:13:6:
19
+ 13 │ "import": "./dist/tokens.mjs",
20
+ ╵ ~~~~~~~~
21
+
22
+ The "require" condition comes earlier and will be used for all "require" calls:
23
+
24
+ ../spor-design-tokens/package.json:14:6:
25
+ 14 │ "require": "./dist/tokens.js",
26
+ ╵ ~~~~~~~~~
27
+
10
28
  [?25l│
11
29
  ◒ Generating conditions types...
12
30
  ◇ ✅ Generated conditions typings
@@ -16,7 +34,8 @@
16
34
  [?25h[?25l│
17
35
  ◇ ✅ Generated utility typings
18
36
  [?25h[?25l│
19
- ◇ Generated token typings
37
+ ◒ Generating token types...
38
+ ◇ ✅ Generated token typings
20
39
  [?25h[?25l│
21
40
  ◒ Generating system types...
22
41
  ◇ ✅ Generated system types
@@ -31,12 +50,12 @@ CLI Target: node16
31
50
  CJS Build start
32
51
  ESM Build start
33
52
  DTS Build start
34
- CJS dist/index.js 312.95 KB
35
- CJS dist/index.js.map 629.56 KB
36
- CJS ⚡️ Build success in 2012ms
37
- ESM dist/index.mjs 292.49 KB
38
- ESM dist/index.mjs.map 629.56 KB
39
- ESM ⚡️ Build success in 2013ms
40
- DTS ⚡️ Build success in 22093ms
41
- DTS dist/index.d.ts 132.32 KB
42
- DTS dist/index.d.mts 132.32 KB
53
+ CJS dist/index.js 313.49 KB
54
+ CJS dist/index.js.map 630.43 KB
55
+ CJS ⚡️ Build success in 2275ms
56
+ ESM dist/index.mjs 292.98 KB
57
+ ESM dist/index.mjs.map 630.43 KB
58
+ ESM ⚡️ Build success in 2276ms
59
+ DTS ⚡️ Build success in 25335ms
60
+ DTS dist/index.d.ts 130.88 KB
61
+ DTS dist/index.d.mts 130.88 KB
@@ -1,8 +1,26 @@
1
1
 
2
- > @vygruppen/spor-react@12.2.0 typegen /home/runner/work/spor/spor/packages/spor-react
2
+ > @vygruppen/spor-react@12.2.1 typegen /home/runner/work/spor/spor/packages/spor-react
3
3
  > npx @chakra-ui/cli typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
6
+ ▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
7
+
8
+ ../spor-design-tokens/package.json:15:6:
9
+ 15 │ "types": "./dist/tokens.d.ts"
10
+ ╵ ~~~~~~~
11
+
12
+ The "import" condition comes earlier and will be used for all "import" statements:
13
+
14
+ ../spor-design-tokens/package.json:13:6:
15
+ 13 │ "import": "./dist/tokens.mjs",
16
+ ╵ ~~~~~~~~
17
+
18
+ The "require" condition comes earlier and will be used for all "require" calls:
19
+
20
+ ../spor-design-tokens/package.json:14:6:
21
+ 14 │ "require": "./dist/tokens.js",
22
+ ╵ ~~~~~~~~~
23
+
6
24
  [?25l│
7
25
  ◒ Generating conditions types...
8
26
  ◇ ✅ Generated conditions typings
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 9bc98dd: Rewrite choice-chip. Fixes error where it stalls applications. No breaking changes to props.
8
+ - Updated dependencies [04498c3]
9
+ - @vygruppen/spor-icon-react@4.0.4
10
+
3
11
  ## 12.2.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { PropsWithChildren, ReactNode, ChangeEvent } from 'react';
2
+ import React__default, { PropsWithChildren, ReactNode } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, Field as Field$1, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
4
+ import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Field as Field$1, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -1058,98 +1058,47 @@ type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size"
1058
1058
  */
1059
1059
  declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
1060
1060
 
1061
- declare const choiceChipRecipe: _chakra_ui_react.RecipeDefinition<{
1062
- variant: {
1063
- core: {
1064
- color: "core.text";
1065
- outlineColor: "core.outline";
1066
- _hover: {
1067
- outline: "2px solid";
1068
- outlineColor: "core.outline.hover";
1069
- _active: {
1070
- outline: "1px solid";
1071
- outlineColor: "core.outline";
1072
- backgroundColor: "core.surface.active";
1073
- };
1074
- };
1075
- };
1076
- accent: {
1077
- backgroundColor: "accent.surface";
1078
- color: "accent.text";
1079
- outline: "none";
1080
- _hover: {
1081
- backgroundColor: "accent.surface.hover";
1082
- _active: {
1083
- backgroundColor: "accent.surface.active";
1084
- };
1085
- };
1086
- };
1087
- floating: {
1088
- backgroundColor: "floating.surface";
1089
- outline: "1px solid";
1090
- outlineColor: "floating.outline";
1091
- color: "floating.text";
1092
- boxShadow: "sm";
1093
- _hover: {
1094
- backgroundColor: "floating.surface.hover";
1095
- outline: "1px solid";
1096
- outlineColor: "floating.outline.hover";
1097
- _active: {
1098
- backgroundColor: "floating.surface.active";
1099
- outline: "1px solid";
1100
- outlineColor: "floating.outline";
1101
- };
1102
- };
1103
- };
1104
- };
1105
- size: {
1106
- xs: {
1107
- _checked: {
1108
- borderRadius: "0.563rem";
1109
- };
1110
- height: number;
1111
- paddingX: number;
1112
- };
1113
- sm: {
1114
- _checked: {
1115
- borderRadius: "sm";
1116
- };
1117
- height: number;
1118
- paddingX: number;
1119
- };
1120
- md: {
1121
- _checked: {
1122
- borderRadius: "sm";
1123
- };
1124
- height: number;
1125
- paddingX: number;
1126
- };
1127
- lg: {
1128
- _checked: {
1129
- borderRadius: "md";
1130
- };
1131
- height: number;
1132
- paddingX: number;
1133
- };
1134
- };
1135
- }>;
1136
-
1137
- type ChoiceChipVariantProps = RecipeVariantProps<typeof choiceChipRecipe>;
1138
- type ChoiceChipProps = PropsWithChildren<ChoiceChipVariantProps> & {
1139
- onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
1140
- checked?: boolean;
1141
- disabled?: boolean;
1142
- defaultChecked?: boolean;
1143
- /** The button text */
1144
- children: React__default.ReactNode;
1145
- icon?: {
1146
- default: React__default.ReactNode;
1147
- checked: React__default.ReactNode;
1148
- };
1149
- chipType?: "icon" | "choice" | "filter";
1150
- "aria-label"?: string;
1061
+ type CheckBoxIcon = {
1062
+ default: React__default.ReactNode;
1063
+ checked: React__default.ReactNode;
1064
+ };
1065
+ type ChoiceChipProps = CheckboxCardRootProps & {
1066
+ icon?: CheckBoxIcon;
1151
1067
  };
1152
- declare const ChoiceChip: ({ children, icon, size, chipType, variant, ...props }: ChoiceChipProps) => react_jsx_runtime.JSX.Element;
1068
+ /**
1069
+ * Choice chips are checkboxes that look like selectable buttons.
1070
+ *
1071
+ * Choice chips are available in four different sizes - `xs`, `sm`, `md` and `lg`.
1072
+ *
1073
+ * ```tsx
1074
+ * <Stack flexDirection="row">
1075
+ * <ChoiceChip size="lg">Bus</ChoiceChip>
1076
+ * <ChoiceChip size="lg">Train</ChoiceChip>
1077
+ * </Stack>
1078
+ * ```
1079
+ *
1080
+ * There are also three different chipType - `icon`, `choice` and `filter`.
1081
+ *
1082
+ * ```tsx
1083
+ * <Stack flexDirection="row">
1084
+ * <ChoiceChip chipType="icon" icon={<Bus24Icon />}>Bus</ChoiceChip>
1085
+ * <ChoiceChip chipType="choice" icon={<Bus24Icon />}>Bus</ChoiceChip>
1086
+ * <ChoiceChip chipType="filter" icon={<Bus24Icon />}>Bus</ChoiceChip>
1087
+ * </Stack>
1088
+ *
1089
+ * There are also three different variants - `core`, `accent` and `floating`.
1090
+ *
1091
+ * ```tsx
1092
+ * <Stack flexDirection="row">
1093
+ * <ChoiceChip variant="core">Bus</ChoiceChip>
1094
+ * <ChoiceChip variant="accent">Boat</ChoiceChip>
1095
+ * <ChoiceChip variant="floating">Train</ChoiceChip>
1096
+ * </Stack>
1097
+ * ```
1098
+ */
1099
+ declare const ChoiceChip: React__default.ForwardRefExoticComponent<CheckboxCard.RootProps & {
1100
+ icon?: CheckBoxIcon;
1101
+ } & React__default.RefAttributes<HTMLInputElement>>;
1153
1102
 
1154
1103
  type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size"> & AriaComboBoxProps<T> & {
1155
1104
  /** The label of the combobox */
@@ -3677,7 +3626,7 @@ type ToastProps = {
3677
3626
  variant: Variant;
3678
3627
  id?: string;
3679
3628
  };
3680
- declare const createToast: ({ text, variant, id, duration, }: ToastProps) => string | undefined;
3629
+ declare const createToast: ({ text, variant, id, duration, }: ToastProps) => string;
3681
3630
 
3682
3631
  type BadgeProps = BadgeProps$1 & {
3683
3632
  icon?: IconComponent;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { PropsWithChildren, ReactNode, ChangeEvent } from 'react';
2
+ import React__default, { PropsWithChildren, ReactNode } from 'react';
3
3
  import * as _chakra_ui_react from '@chakra-ui/react';
4
- import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, Field as Field$1, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
4
+ import { Accordion as Accordion$1, Alert as Alert$1, ConditionalValue, Breadcrumb as Breadcrumb$1, RecipeVariantProps, ButtonProps as ButtonProps$1, GroupProps, Clipboard as Clipboard$1, IconButtonProps as IconButtonProps$1, BoxProps, Dialog, Drawer as Drawer$1, InputElementProps, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, Field as Field$1, Fieldset as Fieldset$1, InputProps as InputProps$1, ListRootProps, NativeSelectFieldProps, NativeSelect as NativeSelect$1, RadioGroup as RadioGroup$1, SelectRootProps, Select as Select$1, CollectionItem, Switch as Switch$1, TextareaProps as TextareaProps$1, RadioCard as RadioCard$1, SeparatorProps, 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, Table as Table$1, BadgeProps as BadgeProps$1, CodeProps, HeadingProps as HeadingProps$1, TextProps as TextProps$1 } from '@chakra-ui/react';
5
5
  export { Box, BoxProps, BreadcrumbCurrentLink, BreadcrumbEllipsis, BreadcrumbLink, Center, CenterProps, Collapsible, CollapsibleRootProps, Container, ContainerProps, Em, Flex, FlexProps, For, FormatByte, FormatNumber, Grid, GridItem, GridItemProps, GridProps, HStack, Image, ImageProps, Kbd, LocaleProvider, Portal, PortalProps, Show, SimpleGrid, SimpleGridProps, Spacer, SpacerProps, Span, Stack, TableBody, TableBodyProps, TableCaption, TableCaptionProps, TableCell, TableCellProps, TableColumn, TableColumnHeader, TableColumnHeaderProps, TableColumnProps, TableFooter, TableFooterProps, TableHeader, TableHeaderProps, TableRoot, TableRootProps, TableRow, TableRowProps, UseDisclosureProps, VStack, VisuallyHidden, createListCollection, createSystem, defineConfig, defineRecipe, defineStyle, useBreakpointValue, useCheckbox, useClipboard, useControllableProp, useDisclosure, useMediaQuery, useToken } from '@chakra-ui/react';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
7
7
  import { IconComponent } from '@vygruppen/spor-icon-react';
@@ -1058,98 +1058,47 @@ type CheckboxGroupProps = Exclude<CheckboxGroupProps$1, "colorPalette" | "size"
1058
1058
  */
1059
1059
  declare const CheckboxGroup: React__default.ForwardRefExoticComponent<Omit<CheckboxGroupProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
1060
1060
 
1061
- declare const choiceChipRecipe: _chakra_ui_react.RecipeDefinition<{
1062
- variant: {
1063
- core: {
1064
- color: "core.text";
1065
- outlineColor: "core.outline";
1066
- _hover: {
1067
- outline: "2px solid";
1068
- outlineColor: "core.outline.hover";
1069
- _active: {
1070
- outline: "1px solid";
1071
- outlineColor: "core.outline";
1072
- backgroundColor: "core.surface.active";
1073
- };
1074
- };
1075
- };
1076
- accent: {
1077
- backgroundColor: "accent.surface";
1078
- color: "accent.text";
1079
- outline: "none";
1080
- _hover: {
1081
- backgroundColor: "accent.surface.hover";
1082
- _active: {
1083
- backgroundColor: "accent.surface.active";
1084
- };
1085
- };
1086
- };
1087
- floating: {
1088
- backgroundColor: "floating.surface";
1089
- outline: "1px solid";
1090
- outlineColor: "floating.outline";
1091
- color: "floating.text";
1092
- boxShadow: "sm";
1093
- _hover: {
1094
- backgroundColor: "floating.surface.hover";
1095
- outline: "1px solid";
1096
- outlineColor: "floating.outline.hover";
1097
- _active: {
1098
- backgroundColor: "floating.surface.active";
1099
- outline: "1px solid";
1100
- outlineColor: "floating.outline";
1101
- };
1102
- };
1103
- };
1104
- };
1105
- size: {
1106
- xs: {
1107
- _checked: {
1108
- borderRadius: "0.563rem";
1109
- };
1110
- height: number;
1111
- paddingX: number;
1112
- };
1113
- sm: {
1114
- _checked: {
1115
- borderRadius: "sm";
1116
- };
1117
- height: number;
1118
- paddingX: number;
1119
- };
1120
- md: {
1121
- _checked: {
1122
- borderRadius: "sm";
1123
- };
1124
- height: number;
1125
- paddingX: number;
1126
- };
1127
- lg: {
1128
- _checked: {
1129
- borderRadius: "md";
1130
- };
1131
- height: number;
1132
- paddingX: number;
1133
- };
1134
- };
1135
- }>;
1136
-
1137
- type ChoiceChipVariantProps = RecipeVariantProps<typeof choiceChipRecipe>;
1138
- type ChoiceChipProps = PropsWithChildren<ChoiceChipVariantProps> & {
1139
- onChange?: (value: ChangeEvent<HTMLInputElement>) => void;
1140
- checked?: boolean;
1141
- disabled?: boolean;
1142
- defaultChecked?: boolean;
1143
- /** The button text */
1144
- children: React__default.ReactNode;
1145
- icon?: {
1146
- default: React__default.ReactNode;
1147
- checked: React__default.ReactNode;
1148
- };
1149
- chipType?: "icon" | "choice" | "filter";
1150
- "aria-label"?: string;
1061
+ type CheckBoxIcon = {
1062
+ default: React__default.ReactNode;
1063
+ checked: React__default.ReactNode;
1064
+ };
1065
+ type ChoiceChipProps = CheckboxCardRootProps & {
1066
+ icon?: CheckBoxIcon;
1151
1067
  };
1152
- declare const ChoiceChip: ({ children, icon, size, chipType, variant, ...props }: ChoiceChipProps) => react_jsx_runtime.JSX.Element;
1068
+ /**
1069
+ * Choice chips are checkboxes that look like selectable buttons.
1070
+ *
1071
+ * Choice chips are available in four different sizes - `xs`, `sm`, `md` and `lg`.
1072
+ *
1073
+ * ```tsx
1074
+ * <Stack flexDirection="row">
1075
+ * <ChoiceChip size="lg">Bus</ChoiceChip>
1076
+ * <ChoiceChip size="lg">Train</ChoiceChip>
1077
+ * </Stack>
1078
+ * ```
1079
+ *
1080
+ * There are also three different chipType - `icon`, `choice` and `filter`.
1081
+ *
1082
+ * ```tsx
1083
+ * <Stack flexDirection="row">
1084
+ * <ChoiceChip chipType="icon" icon={<Bus24Icon />}>Bus</ChoiceChip>
1085
+ * <ChoiceChip chipType="choice" icon={<Bus24Icon />}>Bus</ChoiceChip>
1086
+ * <ChoiceChip chipType="filter" icon={<Bus24Icon />}>Bus</ChoiceChip>
1087
+ * </Stack>
1088
+ *
1089
+ * There are also three different variants - `core`, `accent` and `floating`.
1090
+ *
1091
+ * ```tsx
1092
+ * <Stack flexDirection="row">
1093
+ * <ChoiceChip variant="core">Bus</ChoiceChip>
1094
+ * <ChoiceChip variant="accent">Boat</ChoiceChip>
1095
+ * <ChoiceChip variant="floating">Train</ChoiceChip>
1096
+ * </Stack>
1097
+ * ```
1098
+ */
1099
+ declare const ChoiceChip: React__default.ForwardRefExoticComponent<CheckboxCard.RootProps & {
1100
+ icon?: CheckBoxIcon;
1101
+ } & React__default.RefAttributes<HTMLInputElement>>;
1153
1102
 
1154
1103
  type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size"> & AriaComboBoxProps<T> & {
1155
1104
  /** The label of the combobox */
@@ -3677,7 +3626,7 @@ type ToastProps = {
3677
3626
  variant: Variant;
3678
3627
  id?: string;
3679
3628
  };
3680
- declare const createToast: ({ text, variant, id, duration, }: ToastProps) => string | undefined;
3629
+ declare const createToast: ({ text, variant, id, duration, }: ToastProps) => string;
3681
3630
 
3682
3631
  type BadgeProps = BadgeProps$1 & {
3683
3632
  icon?: IconComponent;