@vygruppen/spor-react 12.3.1 → 12.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,6 @@
1
1
 
2
- > @vygruppen/spor-react@12.3.1 build /home/runner/work/spor/spor/packages/spor-react
3
- > pnpm typegen && tsup
4
-
5
-
6
- > @vygruppen/spor-react@12.3.1 typegen /home/runner/work/spor/spor/packages/spor-react
7
- > npx @chakra-ui/cli typegen src/theme/index.ts
8
-
9
- ┌ Chakra CLI ⚡️
10
- [?25l│
11
- ◒ Generating conditions types...
12
- ◇ ✅ Generated conditions typings
13
- [?25h[?25l│
14
- ◒ Generating recipe types...
15
- ◇ ✅ Generated recipe typings
16
- [?25h[?25l│
17
- ◇ ✅ Generated utility typings
18
- [?25h[?25l│
19
- ◇ ✅ Generated token typings
20
- [?25h[?25l│
21
- ◒ Generating system types...
22
- ◇ ✅ Generated system types
23
- [?25h│
24
- └ 🎉 Done!
2
+ > @vygruppen/spor-react@12.3.3 build /home/runner/work/spor/spor/packages/spor-react
3
+ > tsup
25
4
 
26
5
  CLI Building entry: src/index.tsx
27
6
  CLI Using tsconfig: tsconfig.json
@@ -31,12 +10,12 @@ CLI Target: node16
31
10
  CJS Build start
32
11
  ESM Build start
33
12
  DTS Build start
34
- ESM dist/index.mjs 294.73 KB
35
- ESM dist/index.mjs.map 633.25 KB
36
- ESM ⚡️ Build success in 2095ms
37
- CJS dist/index.js 315.33 KB
38
- CJS dist/index.js.map 633.25 KB
39
- CJS ⚡️ Build success in 2098ms
40
- DTS ⚡️ Build success in 21036ms
41
- DTS dist/index.d.ts 129.93 KB
42
- DTS dist/index.d.mts 129.93 KB
13
+ CJS dist/index.js 315.42 KB
14
+ CJS dist/index.js.map 633.63 KB
15
+ CJS ⚡️ Build success in 2799ms
16
+ ESM dist/index.mjs 294.79 KB
17
+ ESM dist/index.mjs.map 633.63 KB
18
+ ESM ⚡️ Build success in 2799ms
19
+ DTS ⚡️ Build success in 23435ms
20
+ DTS dist/index.d.ts 129.65 KB
21
+ DTS dist/index.d.mts 129.65 KB
@@ -1,6 +1,6 @@
1
1
 
2
- > @vygruppen/spor-react@12.3.1 typegen /home/runner/work/spor/spor/packages/spor-react
3
- > npx @chakra-ui/cli typegen src/theme/index.ts
2
+ > @vygruppen/spor-react@12.3.3 postinstall /home/runner/work/spor/spor/packages/spor-react
3
+ > chakra typegen src/theme/index.ts
4
4
 
5
5
  ┌ Chakra CLI ⚡️
6
6
  [?25l│
@@ -10,11 +10,9 @@
10
10
  ◒ Generating recipe types...
11
11
  ◇ ✅ Generated recipe typings
12
12
  [?25h[?25l│
13
- ◒ Generating utility types...
14
- ◇ ✅ Generated utility typings
13
+ ◇ Generated utility typings
15
14
  [?25h[?25l│
16
- ◒ Generating token types...
17
- ◇ ✅ Generated token typings
15
+ ◇ Generated token typings
18
16
  [?25h[?25l│
19
17
  ◒ Generating system types...
20
18
  ◇ ✅ Generated system types
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @vygruppen/spor-react
2
2
 
3
+ ## 12.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - b9fca8b: build: simplify typegen
8
+
9
+ ## 12.3.2
10
+
11
+ ### Patch Changes
12
+
13
+ - a1eb48e: Add positioning props for calendar
14
+ - a72d19f: Fix Issues with unused ref in forwardref functions creating console errors for users.
15
+ - a7b9a27: Fix scaling of loading indicator.
16
+
3
17
  ## 12.3.1
4
18
 
5
19
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
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, Field as Field$1, Dialog, Drawer as Drawer$1, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, 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, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, 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';
@@ -618,6 +618,7 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
618
618
  showYearNavigation?: boolean;
619
619
  withPortal?: boolean;
620
620
  onChange?: (value: DateValue | null) => void;
621
+ positioning?: PopoverRootProps["positioning"];
621
622
  } & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
622
623
 
623
624
  type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
@@ -630,6 +631,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChang
630
631
  start: DateValue$1 | null;
631
632
  end: DateValue$1 | null;
632
633
  } | null) => void;
634
+ positioning?: PopoverRootProps["positioning"];
633
635
  } & FieldBaseProps;
634
636
  /**
635
637
  * A date range picker component.
@@ -639,7 +641,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChang
639
641
  * ```tsx
640
642
  * <DateRangePicker startLabel="From" startName="from" endLabel="To" endName="to" variant="core" />
641
643
  * ```
642
- */ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, errorText, helperText, invalid, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
644
+ */ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, errorText, helperText, invalid, positioning, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
643
645
 
644
646
  type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & FieldBaseProps & {
645
647
  /** The label. Defaults to a localized version of "Time" */
@@ -1163,28 +1165,10 @@ type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size">
1163
1165
  * </Combobox>
1164
1166
  * ```
1165
1167
  */
1166
- declare const Combobox: React__default.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1167
- children?: ReactNode | undefined;
1168
- } & FieldBaseProps & {
1169
- label: ReactNode;
1170
- startElement?: React__default.ReactNode;
1171
- endElement?: React__default.ReactNode;
1172
- } & AriaComboBoxProps<object> & {
1173
- /** The label of the combobox */
1174
- label: string;
1175
- /** Whether or not the combobox is waiting for new suggestions */
1176
- loading?: boolean;
1177
- /** Optional UI to show when there are no matching items */
1178
- emptyContent?: React__default.ReactNode;
1179
- /** A ref to the input field */
1180
- inputRef?: React__default.RefObject<HTMLInputElement>;
1181
- /** If you want to allow an empty collection */
1182
- allowsEmptyCollection?: boolean;
1183
- lefticon?: ReactNode;
1184
- righticon?: ReactNode;
1185
- variant?: "core" | "floating";
1186
- children?: React__default.ReactNode;
1187
- } & React__default.RefAttributes<HTMLDivElement>>;
1168
+ declare const Combobox: {
1169
+ (props: ComboboxProps<object>): react_jsx_runtime.JSX.Element;
1170
+ displayName: string;
1171
+ };
1188
1172
 
1189
1173
  declare const Fieldset: React$1.ForwardRefExoticComponent<Fieldset$1.RootProps & React$1.RefAttributes<HTMLFieldSetElement>>;
1190
1174
  declare const FieldsetLegend: React$1.ForwardRefExoticComponent<Fieldset$1.LegendProps & React$1.RefAttributes<HTMLLegendElement>>;
@@ -1211,6 +1195,38 @@ declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omi
1211
1195
  endElement?: React__default.ReactNode;
1212
1196
  } & React__default.RefAttributes<HTMLInputElement>>;
1213
1197
 
1198
+ declare const listBoxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "description" | "label", {
1199
+ variant: {
1200
+ core: {
1201
+ root: {
1202
+ outline: "1px solid";
1203
+ outlineColor: "core.outline";
1204
+ };
1205
+ };
1206
+ floating: {
1207
+ root: {
1208
+ outline: "1px solid";
1209
+ outlineColor: "floating.outline";
1210
+ };
1211
+ };
1212
+ };
1213
+ }>;
1214
+
1215
+ type ListBoxVariantProps = RecipeVariantProps<typeof listBoxSlotRecipe>;
1216
+ type ListBoxProps<T> = AriaListBoxProps<T> & Omit<BoxProps, "filter" | "autoFocus" | "children"> & PropsWithChildren<ListBoxVariantProps> & Exclude<ListRootProps, "variant"> & {
1217
+ /** External reference to the ListBox itself */
1218
+ listBoxRef: React__default.RefObject<HTMLUListElement>;
1219
+ /** Whether or not the listbox is waiting on new data, i.e. through a autosuggest search */
1220
+ loading?: boolean;
1221
+ /** The state of the listbox, provided externally somehow. */
1222
+ state: ListState<T> | SelectState<unknown>;
1223
+ /** UI to render if the collection is empty */
1224
+ emptyContent?: React__default.ReactNode;
1225
+ maxWidth?: BoxProps["maxWidth"];
1226
+ variant?: "core" | "floating";
1227
+ children: React__default.ReactNode;
1228
+ autoFocus?: boolean;
1229
+ };
1214
1230
  /**
1215
1231
  * A component that renders a list box with selectable options.
1216
1232
  *
@@ -1245,24 +1261,10 @@ declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omi
1245
1261
  * );
1246
1262
  * ```
1247
1263
  */
1248
- declare const ListBox: React__default.ForwardRefExoticComponent<AriaListBoxProps<object> & Omit<BoxProps, "filter" | "autoFocus" | "children"> & {
1249
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1250
- } & {
1251
- children?: React__default.ReactNode | undefined;
1252
- } & ListRootProps & {
1253
- /** External reference to the ListBox itself */
1254
- listBoxRef: React__default.RefObject<HTMLUListElement>;
1255
- /** Whether or not the listbox is waiting on new data, i.e. through a autosuggest search */
1256
- loading?: boolean;
1257
- /** The state of the listbox, provided externally somehow. */
1258
- state: ListState<object> | SelectState<unknown>;
1259
- /** UI to render if the collection is empty */
1260
- emptyContent?: React__default.ReactNode;
1261
- maxWidth?: BoxProps["maxWidth"];
1262
- variant?: "core" | "floating";
1263
- children: React__default.ReactNode;
1264
- autoFocus?: boolean;
1265
- } & React__default.RefAttributes<HTMLDivElement>>;
1264
+ declare const ListBox: {
1265
+ (props: ListBoxProps<object>): react_jsx_runtime.JSX.Element;
1266
+ displayName: string;
1267
+ };
1266
1268
  /**
1267
1269
  * Renders a label for a listbox item.
1268
1270
  *
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
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, Field as Field$1, Dialog, Drawer as Drawer$1, PopoverRootProps, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, 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, Field as Field$1, PopoverRootProps, Dialog, Drawer as Drawer$1, Checkbox as Checkbox$1, CheckboxGroupProps as CheckboxGroupProps$1, CheckboxCardRootProps, CheckboxCard, 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';
@@ -618,6 +618,7 @@ declare const DatePicker: React__default.ForwardRefExoticComponent<Omit<AriaDate
618
618
  showYearNavigation?: boolean;
619
619
  withPortal?: boolean;
620
620
  onChange?: (value: DateValue | null) => void;
621
+ positioning?: PopoverRootProps["positioning"];
621
622
  } & FieldBaseProps & React__default.RefAttributes<HTMLDivElement>>;
622
623
 
623
624
  type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChange" | "errorMessage" | "isInvalid" | "isRequired"> & Pick<BoxProps, "minHeight"> & PropsWithChildren<DatePickerVariantProps> & CalendarVariants & {
@@ -630,6 +631,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChang
630
631
  start: DateValue$1 | null;
631
632
  end: DateValue$1 | null;
632
633
  } | null) => void;
634
+ positioning?: PopoverRootProps["positioning"];
633
635
  } & FieldBaseProps;
634
636
  /**
635
637
  * A date range picker component.
@@ -639,7 +641,7 @@ type DateRangePickerProps = Omit<AriaDateRangePickerProps<DateValue$1>, "onChang
639
641
  * ```tsx
640
642
  * <DateRangePicker startLabel="From" startName="from" endLabel="To" endName="to" variant="core" />
641
643
  * ```
642
- */ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, errorText, helperText, invalid, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
644
+ */ declare function DateRangePicker({ variant, minHeight, startName, endName, withPortal, errorText, helperText, invalid, positioning, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
643
645
 
644
646
  type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> & FieldBaseProps & {
645
647
  /** The label. Defaults to a localized version of "Time" */
@@ -1163,28 +1165,10 @@ type ComboboxProps<T> = Exclude<InputProps, "variant" | "colorPalette" | "size">
1163
1165
  * </Combobox>
1164
1166
  * ```
1165
1167
  */
1166
- declare const Combobox: React__default.ForwardRefExoticComponent<_chakra_ui_react.InputProps & Omit<_chakra_ui_react.FieldRootProps, "label"> & {
1167
- children?: ReactNode | undefined;
1168
- } & FieldBaseProps & {
1169
- label: ReactNode;
1170
- startElement?: React__default.ReactNode;
1171
- endElement?: React__default.ReactNode;
1172
- } & AriaComboBoxProps<object> & {
1173
- /** The label of the combobox */
1174
- label: string;
1175
- /** Whether or not the combobox is waiting for new suggestions */
1176
- loading?: boolean;
1177
- /** Optional UI to show when there are no matching items */
1178
- emptyContent?: React__default.ReactNode;
1179
- /** A ref to the input field */
1180
- inputRef?: React__default.RefObject<HTMLInputElement>;
1181
- /** If you want to allow an empty collection */
1182
- allowsEmptyCollection?: boolean;
1183
- lefticon?: ReactNode;
1184
- righticon?: ReactNode;
1185
- variant?: "core" | "floating";
1186
- children?: React__default.ReactNode;
1187
- } & React__default.RefAttributes<HTMLDivElement>>;
1168
+ declare const Combobox: {
1169
+ (props: ComboboxProps<object>): react_jsx_runtime.JSX.Element;
1170
+ displayName: string;
1171
+ };
1188
1172
 
1189
1173
  declare const Fieldset: React$1.ForwardRefExoticComponent<Fieldset$1.RootProps & React$1.RefAttributes<HTMLFieldSetElement>>;
1190
1174
  declare const FieldsetLegend: React$1.ForwardRefExoticComponent<Fieldset$1.LegendProps & React$1.RefAttributes<HTMLLegendElement>>;
@@ -1211,6 +1195,38 @@ declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omi
1211
1195
  endElement?: React__default.ReactNode;
1212
1196
  } & React__default.RefAttributes<HTMLInputElement>>;
1213
1197
 
1198
+ declare const listBoxSlotRecipe: _chakra_ui_react.SlotRecipeDefinition<"root" | "item" | "description" | "label", {
1199
+ variant: {
1200
+ core: {
1201
+ root: {
1202
+ outline: "1px solid";
1203
+ outlineColor: "core.outline";
1204
+ };
1205
+ };
1206
+ floating: {
1207
+ root: {
1208
+ outline: "1px solid";
1209
+ outlineColor: "floating.outline";
1210
+ };
1211
+ };
1212
+ };
1213
+ }>;
1214
+
1215
+ type ListBoxVariantProps = RecipeVariantProps<typeof listBoxSlotRecipe>;
1216
+ type ListBoxProps<T> = AriaListBoxProps<T> & Omit<BoxProps, "filter" | "autoFocus" | "children"> & PropsWithChildren<ListBoxVariantProps> & Exclude<ListRootProps, "variant"> & {
1217
+ /** External reference to the ListBox itself */
1218
+ listBoxRef: React__default.RefObject<HTMLUListElement>;
1219
+ /** Whether or not the listbox is waiting on new data, i.e. through a autosuggest search */
1220
+ loading?: boolean;
1221
+ /** The state of the listbox, provided externally somehow. */
1222
+ state: ListState<T> | SelectState<unknown>;
1223
+ /** UI to render if the collection is empty */
1224
+ emptyContent?: React__default.ReactNode;
1225
+ maxWidth?: BoxProps["maxWidth"];
1226
+ variant?: "core" | "floating";
1227
+ children: React__default.ReactNode;
1228
+ autoFocus?: boolean;
1229
+ };
1214
1230
  /**
1215
1231
  * A component that renders a list box with selectable options.
1216
1232
  *
@@ -1245,24 +1261,10 @@ declare const Input: React__default.ForwardRefExoticComponent<InputProps$1 & Omi
1245
1261
  * );
1246
1262
  * ```
1247
1263
  */
1248
- declare const ListBox: React__default.ForwardRefExoticComponent<AriaListBoxProps<object> & Omit<BoxProps, "filter" | "autoFocus" | "children"> & {
1249
- variant?: _chakra_ui_react.ConditionalValue<"floating" | "core" | undefined>;
1250
- } & {
1251
- children?: React__default.ReactNode | undefined;
1252
- } & ListRootProps & {
1253
- /** External reference to the ListBox itself */
1254
- listBoxRef: React__default.RefObject<HTMLUListElement>;
1255
- /** Whether or not the listbox is waiting on new data, i.e. through a autosuggest search */
1256
- loading?: boolean;
1257
- /** The state of the listbox, provided externally somehow. */
1258
- state: ListState<object> | SelectState<unknown>;
1259
- /** UI to render if the collection is empty */
1260
- emptyContent?: React__default.ReactNode;
1261
- maxWidth?: BoxProps["maxWidth"];
1262
- variant?: "core" | "floating";
1263
- children: React__default.ReactNode;
1264
- autoFocus?: boolean;
1265
- } & React__default.RefAttributes<HTMLDivElement>>;
1264
+ declare const ListBox: {
1265
+ (props: ListBoxProps<object>): react_jsx_runtime.JSX.Element;
1266
+ displayName: string;
1267
+ };
1266
1268
  /**
1267
1269
  * Renders a label for a listbox item.
1268
1270
  *