@lumx/react 4.27.0 → 4.27.1-alpha.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/index.d.ts +37 -34
- package/index.js +805 -662
- package/index.js.map +1 -1
- package/package.json +9 -8
package/index.d.ts
CHANGED
|
@@ -1543,38 +1543,40 @@ interface ComboboxPopoverComponentProps extends ComboboxPopoverProps {
|
|
|
1543
1543
|
children: ReactNode;
|
|
1544
1544
|
}
|
|
1545
1545
|
|
|
1546
|
-
/** Map of
|
|
1547
|
-
interface
|
|
1548
|
-
/** Fired when the active descendant changes (visual focus). Payload: the
|
|
1546
|
+
/** Map of composite event names to their payload types. */
|
|
1547
|
+
interface CompositeEventMap {
|
|
1548
|
+
/** Fired when the active descendant changes (visual focus). Payload: the active item id or null. */
|
|
1549
1549
|
activeDescendantChange: string | null;
|
|
1550
1550
|
/**
|
|
1551
|
-
* Fired when the visible
|
|
1552
|
-
* Payload: the number of visible
|
|
1551
|
+
* Fired when the visible item count changes.
|
|
1552
|
+
* Payload: the number of visible items plus the current input value (combobox only), and whether
|
|
1553
|
+
* the item count must not be announced (set by the composite specialization).
|
|
1553
1554
|
*/
|
|
1554
1555
|
optionsChange: {
|
|
1555
1556
|
optionsLength: number;
|
|
1556
1557
|
inputValue?: string;
|
|
1558
|
+
isCountHidden?: boolean;
|
|
1557
1559
|
} | undefined;
|
|
1558
1560
|
/**
|
|
1559
|
-
* Fired immediately when the aggregate loading state changes (skeleton count transitions
|
|
1560
|
-
* between 0 and >0). Used for empty suppression in
|
|
1561
|
+
* Fired immediately when the aggregate loading state changes (root skeleton count transitions
|
|
1562
|
+
* between 0 and >0). Used for empty suppression in the status and for `aria-busy` on the list.
|
|
1561
1563
|
*/
|
|
1562
1564
|
loadingChange: boolean;
|
|
1563
1565
|
/**
|
|
1564
|
-
* Fired after a 500ms debounce when loading persists while the
|
|
1566
|
+
* Fired after a 500ms debounce when loading persists while the items are visible,
|
|
1565
1567
|
* or immediately when loading ends. Used to control the loading message text in the live region.
|
|
1566
1568
|
*/
|
|
1567
1569
|
loadingAnnouncement: boolean;
|
|
1568
1570
|
/**
|
|
1569
|
-
* Fired when the
|
|
1570
|
-
* Inside a combobox, this is the combobox open state. A standalone
|
|
1571
|
-
* creation and never closes.
|
|
1571
|
+
* Fired when the items become visible or hidden (see {@link CompositeHandle.setOpen}).
|
|
1572
|
+
* Inside a combobox, this is the combobox open state. A standalone composite is open from
|
|
1573
|
+
* creation and never closes.
|
|
1572
1574
|
*/
|
|
1573
1575
|
open: boolean;
|
|
1574
1576
|
/**
|
|
1575
|
-
* Fired only when this
|
|
1577
|
+
* Fired only when this item becomes the active descendant (true)
|
|
1576
1578
|
* or stops being the active descendant (false).
|
|
1577
|
-
* Build the key with optionActiveEvent(
|
|
1579
|
+
* Build the key with optionActiveEvent(itemId).
|
|
1578
1580
|
*/
|
|
1579
1581
|
[event: OptionActiveEvent]: boolean;
|
|
1580
1582
|
}
|
|
@@ -1908,9 +1910,9 @@ declare namespace ComboboxProvider {
|
|
|
1908
1910
|
* Hook to subscribe to a combobox event (`open`, `optionsChange`, `loadingChange`,
|
|
1909
1911
|
* `activeDescendantChange`, …). Must be used within a `Combobox.Provider`.
|
|
1910
1912
|
*
|
|
1911
|
-
* The events are dispatched by the listbox handle of the combobox (see {@link
|
|
1913
|
+
* The events are dispatched by the listbox handle of the combobox (see {@link useCompositeEvent}).
|
|
1912
1914
|
*/
|
|
1913
|
-
declare function useComboboxEvent<K extends keyof
|
|
1915
|
+
declare function useComboboxEvent<K extends keyof CompositeEventMap>(event: K, initialValue: CompositeEventMap[K]): CompositeEventMap[K];
|
|
1914
1916
|
|
|
1915
1917
|
/**
|
|
1916
1918
|
* Props for Combobox.Button component.
|
|
@@ -2047,9 +2049,10 @@ interface TooltipProps extends GenericProps$1, TooltipProps$1 {
|
|
|
2047
2049
|
declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
|
|
2048
2050
|
|
|
2049
2051
|
/**
|
|
2050
|
-
* Props forwarded to the
|
|
2052
|
+
* Props forwarded to the action element (button or link) of a composite item (`Combobox.Option`, `TreeListItem`).
|
|
2051
2053
|
*/
|
|
2052
|
-
type
|
|
2054
|
+
type CompositeItemActionProps<E extends ElementType$1 = 'button'> = HasPolymorphicAs$1<E> & HasRequiredLinkHref$1<E>;
|
|
2055
|
+
|
|
2053
2056
|
/**
|
|
2054
2057
|
* Props for Combobox.Option component.
|
|
2055
2058
|
*/
|
|
@@ -2069,7 +2072,7 @@ interface ListboxOptionProps extends GenericProps$1, ReactToJSX<ListboxOptionPro
|
|
|
2069
2072
|
/** Props forwarded to a Tooltip wrapping the role="option" / role="gridcell" trigger element. */
|
|
2070
2073
|
tooltipProps?: Partial<TooltipProps>;
|
|
2071
2074
|
/** Props forwarded to the inner action element (e.g. `{ as: 'a', href: '/foo' }`). */
|
|
2072
|
-
actionProps?:
|
|
2075
|
+
actionProps?: CompositeItemActionProps<any>;
|
|
2073
2076
|
}
|
|
2074
2077
|
|
|
2075
2078
|
/**
|
|
@@ -2183,7 +2186,7 @@ interface ListboxSectionProps$1 extends HasClassName {
|
|
|
2183
2186
|
/**
|
|
2184
2187
|
* When true, the section is visually rendered (label + content) but hidden from assistive
|
|
2185
2188
|
* technology. Used for skeleton-only sections: the visual skeleton provides feedback to
|
|
2186
|
-
* sighted users, while the live region (`
|
|
2189
|
+
* sighted users, while the live region (`CompositeStatus`) handles the loading announcement.
|
|
2187
2190
|
*/
|
|
2188
2191
|
'aria-hidden'?: boolean;
|
|
2189
2192
|
}
|
|
@@ -2202,21 +2205,21 @@ interface ListboxSectionProps extends GenericProps$1, ReactToJSX<ListboxSectionP
|
|
|
2202
2205
|
}
|
|
2203
2206
|
|
|
2204
2207
|
/**
|
|
2205
|
-
* Defines the props for the core
|
|
2208
|
+
* Defines the props for the core CompositeStatus template.
|
|
2206
2209
|
*/
|
|
2207
|
-
interface
|
|
2210
|
+
interface CompositeStatusProps$1 {
|
|
2208
2211
|
/**
|
|
2209
|
-
* Message to display when the
|
|
2212
|
+
* Message to display when the composite has no visible items.
|
|
2210
2213
|
* Can be a plain string or a function receiving the current input value (for dynamic messages).
|
|
2211
2214
|
* When omitted, the empty state is not shown.
|
|
2212
2215
|
*/
|
|
2213
2216
|
emptyMessage?: string | ((inputValue: string) => string);
|
|
2214
2217
|
/**
|
|
2215
|
-
* Message callback to display the number of available
|
|
2216
|
-
* Called with the current visible
|
|
2218
|
+
* Message callback to display the number of available items.
|
|
2219
|
+
* Called with the current visible item count and should return a human-readable string
|
|
2217
2220
|
* (e.g. `(n) => \`${n} result(s) available\``).
|
|
2218
|
-
* Displayed when the
|
|
2219
|
-
* When omitted, no
|
|
2221
|
+
* Displayed when the composite is open, not empty, not loading, and not in error.
|
|
2222
|
+
* When omitted, no item count message is shown.
|
|
2220
2223
|
*/
|
|
2221
2224
|
nbOptionMessage?: (optionsLength: number) => string;
|
|
2222
2225
|
/**
|
|
@@ -2236,12 +2239,12 @@ interface ListboxStateProps$1 {
|
|
|
2236
2239
|
*/
|
|
2237
2240
|
loadingMessage?: string;
|
|
2238
2241
|
/**
|
|
2239
|
-
*
|
|
2242
|
+
* Composite state
|
|
2240
2243
|
*/
|
|
2241
2244
|
state?: {
|
|
2242
2245
|
/**
|
|
2243
|
-
* The number of currently visible
|
|
2244
|
-
* Driven by the framework wrapper via the
|
|
2246
|
+
* The number of currently visible items.
|
|
2247
|
+
* Driven by the framework wrapper via the composite handle's `optionsChange` event.
|
|
2245
2248
|
*/
|
|
2246
2249
|
optionsLength?: number;
|
|
2247
2250
|
/**
|
|
@@ -2264,9 +2267,9 @@ interface ListboxStateProps$1 {
|
|
|
2264
2267
|
}
|
|
2265
2268
|
|
|
2266
2269
|
/**
|
|
2267
|
-
* Props
|
|
2270
|
+
* Props of the composite status (`Combobox.State`, `Listbox.State`).
|
|
2268
2271
|
*/
|
|
2269
|
-
interface
|
|
2272
|
+
interface CompositeStatusProps extends ReactToJSX<CompositeStatusProps$1, 'state'> {
|
|
2270
2273
|
/** Additional content rendered after the state message. */
|
|
2271
2274
|
children?: ReactNode;
|
|
2272
2275
|
}
|
|
@@ -2330,9 +2333,9 @@ declare const Combobox: {
|
|
|
2330
2333
|
Section: Comp<ListboxSectionProps, HTMLLIElement>;
|
|
2331
2334
|
/** Displays empty, error, and loading state messages for the combobox list. */
|
|
2332
2335
|
State: {
|
|
2333
|
-
(props:
|
|
2336
|
+
(props: CompositeStatusProps): react_jsx_runtime.JSX.Element;
|
|
2334
2337
|
displayName: string;
|
|
2335
|
-
className: "lumx-
|
|
2338
|
+
className: "lumx-composite-status";
|
|
2336
2339
|
};
|
|
2337
2340
|
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
2338
2341
|
Divider: Comp<ListDividerProps, HTMLLIElement>;
|
|
@@ -6018,4 +6021,4 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
6018
6021
|
declare function useTheme(): ThemeContextValue;
|
|
6019
6022
|
|
|
6020
6023
|
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME$2 as CLASSNAME, COMPONENT_NAME$2 as COMPONENT_NAME, Card, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS$1 as DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, DialogHeading, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, InputRequiredLegend, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, MenuButton, ListDivider as MenuDivider, MenuItem, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectButton, SelectMultiple, SelectMultipleField, SelectTextField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, CLASSNAME as TIME_PICKER_FIELD_CLASSNAME, COMPONENT_NAME as TIME_PICKER_FIELD_COMPONENT_NAME, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, TimePickerField, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
6021
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CardProps, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ListboxListProps as ComboboxListProps, ListboxOptionActionProps as ComboboxOptionActionProps, ListboxOptionMoreInfoProps as ComboboxOptionMoreInfoProps, ListboxOptionProps as ComboboxOptionProps, ListboxOptionSkeletonProps as ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ListboxSectionProps as ComboboxSectionProps,
|
|
6024
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CardProps, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ListboxListProps as ComboboxListProps, ListboxOptionActionProps as ComboboxOptionActionProps, ListboxOptionMoreInfoProps as ComboboxOptionMoreInfoProps, ListboxOptionProps as ComboboxOptionProps, ListboxOptionSkeletonProps as ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ListboxSectionProps as ComboboxSectionProps, CompositeStatusProps as ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogHeadingProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GenericBlockSectionProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, InputRequiredLegendProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MenuButtonProps, ListDividerProps as MenuDividerProps, MenuItemActionProps, MenuItemProps, MessageProps, MosaicProps, MultipleSelectButtonProps, MultipleSelectTextFieldProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverHeight, PopoverProps, PopoverWidth, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectButtonProps, SelectListStatus as SelectButtonStatus, SelectButtonTranslations, SelectListStatus, SelectMultipleProps, SelectProps, SelectTextFieldProps, SelectListStatus as SelectTextFieldStatus, SelectTextFieldTranslations, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SingleSelectButtonProps, SingleSelectTextFieldProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, TimePickerFieldProps, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|