@lumx/react 4.14.0-next.2 → 4.14.0-next.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.
Files changed (4) hide show
  1. package/index.d.ts +95 -4
  2. package/index.js +1001 -675
  3. package/index.js.map +1 -1
  4. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -792,11 +792,11 @@ interface ButtonProps$1 extends BaseButtonProps {
792
792
  /**
793
793
  * Component display name.
794
794
  */
795
- declare const COMPONENT_NAME = "Button";
795
+ declare const COMPONENT_NAME$1 = "Button";
796
796
  /**
797
797
  * Component default class name and class prefix.
798
798
  */
799
- declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
799
+ declare const CLASSNAME$1: LumxClassName<typeof COMPONENT_NAME$1>;
800
800
  /**
801
801
  * Component default props.
802
802
  */
@@ -5242,6 +5242,97 @@ declare const Text: Comp<TextProps, HTMLElement>;
5242
5242
 
5243
5243
  declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: { width, height } }: ThumbnailProps, element: HTMLImageElement | undefined, isLoaded: boolean) => CSSProperties;
5244
5244
 
5245
+ /**
5246
+ * A time-of-day (24h), independent of any date or time zone. Canonical
5247
+ * exchange shape for the time utilities and `TimePickerField`.
5248
+ */
5249
+ interface TimeOfDay {
5250
+ /** 0–23 */
5251
+ hour: number;
5252
+ /** 0–59 */
5253
+ minute: number;
5254
+ /** Locale-aware short display string. Populated by `buildTimeList` when `locale` is set. */
5255
+ name?: string;
5256
+ /**
5257
+ * `true` when strictly outside `[minTime, maxTime]`. Set by `buildTimeList`;
5258
+ * consumers typically forward this as `isDisabled` on the rendered option.
5259
+ */
5260
+ outOfRange?: boolean;
5261
+ }
5262
+
5263
+ /**
5264
+ * Component display name.
5265
+ */
5266
+ declare const COMPONENT_NAME = "TimePickerField";
5267
+ /**
5268
+ * Component default class name (BEM root).
5269
+ */
5270
+ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
5271
+ /**
5272
+ * Translations consumed by `TimePickerField` (forwarded as-is to the underlying
5273
+ * `SelectTextField`).
5274
+ */
5275
+ type TimePickerFieldTranslations = Pick<SelectTextFieldTranslations, 'clearLabel' | 'showSuggestionsLabel'>;
5276
+
5277
+ /**
5278
+ * Inherited SelectTextField props (less the parts owned by TimePickerField).
5279
+ */
5280
+ type InheritedSelectTextFieldProps = Omit<SingleSelectTextFieldProps<TimeOfDay>, 'value' | 'onChange' | 'listStatus' | 'translations' | 'options' | 'getOptionId' | 'getOptionName' | 'renderOption' | 'filter' | 'onBlur' | 'onSearch' | 'selectionType'>;
5281
+ /**
5282
+ * `TimePickerField` props.
5283
+ */
5284
+ interface TimePickerFieldProps extends HasClassName$1, HasTheme$1, InheritedSelectTextFieldProps {
5285
+ /**
5286
+ * Currently selected time. Only the time-of-day component is consumed; the
5287
+ * date part is preserved when emitting `onChange`.
5288
+ */
5289
+ value?: Date;
5290
+ /**
5291
+ * Change handler. Called with a new `Date` whose date part is inherited from
5292
+ * the previous `value` (or today, if none) and whose time-of-day matches the
5293
+ * user selection. May also be called with `undefined` when the field is
5294
+ * cleared.
5295
+ */
5296
+ onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
5297
+ /**
5298
+ * BCP-47 locale string (e.g. `'en-US'`, `'fr-FR'`).
5299
+ */
5300
+ locale?: string;
5301
+ /**
5302
+ * Minute interval between option entries.
5303
+ */
5304
+ step?: number;
5305
+ /**
5306
+ * Lower bound. Options strictly before this time remain **visible** in the
5307
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
5308
+ * below this bound is snapped up to it on blur.
5309
+ */
5310
+ minTime?: Date;
5311
+ /**
5312
+ * Upper bound. Options strictly after this time remain **visible** in the
5313
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
5314
+ * above this bound is snapped down to it on blur.
5315
+ */
5316
+ maxTime?: Date;
5317
+ /**
5318
+ * Translations label for clear and show suggestions buttons
5319
+ */
5320
+ translations: TimePickerFieldTranslations;
5321
+ }
5322
+ /**
5323
+ * A select-style picker for choosing a time of day. Wraps `SelectTextField`
5324
+ * with a generated list of times built from `step`, `minTime`, and `maxTime`.
5325
+ *
5326
+ * Out-of-range options (strictly before `minTime` or after `maxTime`) remain
5327
+ * visible in the dropdown but are rendered as disabled.
5328
+ *
5329
+ * Free-form typed input (e.g. `"10:30 PM"`, `"14"`, `"930"`) is parsed on blur.
5330
+ *
5331
+ * @param props Component props.
5332
+ * @return React element.
5333
+ */
5334
+ declare const TimePickerField: React__default.FC<TimePickerFieldProps>;
5335
+
5245
5336
  /**
5246
5337
  * Defines the props of the component.
5247
5338
  */
@@ -5496,5 +5587,5 @@ declare const ThemeProvider: React__default.FC<{
5496
5587
  /** Get the theme in the current context. */
5497
5588
  declare function useTheme(): ThemeContextValue;
5498
5589
 
5499
- export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, 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, 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, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
5500
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListProps, ComboboxOptionActionProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ComboboxSectionProps, ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, 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, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, MultipleSelectButtonProps, MultipleSelectTextFieldProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectButtonProps, SelectButtonTranslations, SelectMultipleProps, SelectProps, SelectTextFieldProps, 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, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
5590
+ export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME$1 as CLASSNAME, COMPONENT_NAME$1 as COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, 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 };
5591
+ export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListProps, ComboboxOptionActionProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ComboboxSectionProps, ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, 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, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, MultipleSelectButtonProps, MultipleSelectTextFieldProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectButtonProps, SelectButtonTranslations, SelectMultipleProps, SelectProps, SelectTextFieldProps, 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 };