@vygruppen/spor-react 12.3.0 → 12.3.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 +11 -11
- package/.turbo/turbo-typegen.log +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/index.d.mts +44 -42
- package/dist/index.d.ts +44 -42
- package/dist/index.js +236 -225
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +241 -230
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/alert/AlertIcon.tsx +17 -11
- package/src/button/Button.tsx +1 -1
- package/src/button/CloseButton.tsx +6 -3
- package/src/button/IconButton.tsx +1 -1
- package/src/datepicker/CalendarTriggerButton.tsx +2 -2
- package/src/datepicker/DatePicker.tsx +5 -1
- package/src/datepicker/DateRangePicker.tsx +4 -1
- package/src/input/Combobox.tsx +149 -157
- package/src/input/ListBox.tsx +27 -34
- package/src/input/NumericStepper.tsx +2 -2
- package/src/input/Switch.tsx +35 -33
- package/src/linjetag/LineIcon.tsx +14 -10
- package/src/loader/ProgressLoader.tsx +12 -8
- package/src/progress-indicator/ProgressIndicator.tsx +2 -1
- package/src/theme/slot-recipes/table.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
|
-
> @vygruppen/spor-react@12.3.
|
2
|
+
> @vygruppen/spor-react@12.3.2 build /home/runner/work/spor/spor/packages/spor-react
|
3
3
|
> pnpm typegen && tsup
|
4
4
|
|
5
5
|
|
6
|
-
> @vygruppen/spor-react@12.3.
|
6
|
+
> @vygruppen/spor-react@12.3.2 typegen /home/runner/work/spor/spor/packages/spor-react
|
7
7
|
> npx @chakra-ui/cli typegen src/theme/index.ts
|
8
8
|
|
9
9
|
[90m┌[39m Chakra CLI ⚡️
|
@@ -31,12 +31,12 @@ CLI Target: node16
|
|
31
31
|
CJS Build start
|
32
32
|
ESM Build start
|
33
33
|
DTS Build start
|
34
|
-
CJS dist/index.js 315.
|
35
|
-
CJS dist/index.js.map 633.
|
36
|
-
CJS ⚡️ Build success in
|
37
|
-
ESM dist/index.mjs 294.
|
38
|
-
ESM dist/index.mjs.map 633.
|
39
|
-
ESM ⚡️ Build success in
|
40
|
-
DTS ⚡️ Build success in
|
41
|
-
DTS dist/index.d.ts 129.
|
42
|
-
DTS dist/index.d.mts 129.
|
34
|
+
CJS dist/index.js 315.42 KB
|
35
|
+
CJS dist/index.js.map 633.63 KB
|
36
|
+
CJS ⚡️ Build success in 1999ms
|
37
|
+
ESM dist/index.mjs 294.79 KB
|
38
|
+
ESM dist/index.mjs.map 633.63 KB
|
39
|
+
ESM ⚡️ Build success in 1999ms
|
40
|
+
DTS ⚡️ Build success in 20706ms
|
41
|
+
DTS dist/index.d.ts 129.65 KB
|
42
|
+
DTS dist/index.d.mts 129.65 KB
|
package/.turbo/turbo-typegen.log
CHANGED
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @vygruppen/spor-react
|
2
2
|
|
3
|
+
## 12.3.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- a1eb48e: Add positioning props for calendar
|
8
|
+
- a72d19f: Fix Issues with unused ref in forwardref functions creating console errors for users.
|
9
|
+
- a7b9a27: Fix scaling of loading indicator.
|
10
|
+
|
11
|
+
## 12.3.1
|
12
|
+
|
13
|
+
### Patch Changes
|
14
|
+
|
15
|
+
- d137429: Table: Fix width styling on tableCell.
|
16
|
+
|
3
17
|
## 12.3.0
|
4
18
|
|
5
19
|
### Minor 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,
|
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:
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
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:
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
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,
|
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:
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
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:
|
1249
|
-
|
1250
|
-
|
1251
|
-
|
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
|
*
|