@lumx/react 4.14.0-next.2 → 4.14.0-next.4

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 +97 -4
  2. package/index.js +1004 -676
  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
  */
@@ -1902,6 +1902,8 @@ interface InputLabelProps$1 extends HasClassName, HasTheme {
1902
1902
  isRequired?: boolean;
1903
1903
  /** ref to the root element */
1904
1904
  ref?: CommonRef;
1905
+ /** HTML tag for rendering the label, defaults to `label` */
1906
+ as?: 'label' | 'legend';
1905
1907
  }
1906
1908
 
1907
1909
  /**
@@ -5242,6 +5244,97 @@ declare const Text: Comp<TextProps, HTMLElement>;
5242
5244
 
5243
5245
  declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: { width, height } }: ThumbnailProps, element: HTMLImageElement | undefined, isLoaded: boolean) => CSSProperties;
5244
5246
 
5247
+ /**
5248
+ * A time-of-day (24h), independent of any date or time zone. Canonical
5249
+ * exchange shape for the time utilities and `TimePickerField`.
5250
+ */
5251
+ interface TimeOfDay {
5252
+ /** 0–23 */
5253
+ hour: number;
5254
+ /** 0–59 */
5255
+ minute: number;
5256
+ /** Locale-aware short display string. Populated by `buildTimeList` when `locale` is set. */
5257
+ name?: string;
5258
+ /**
5259
+ * `true` when strictly outside `[minTime, maxTime]`. Set by `buildTimeList`;
5260
+ * consumers typically forward this as `isDisabled` on the rendered option.
5261
+ */
5262
+ outOfRange?: boolean;
5263
+ }
5264
+
5265
+ /**
5266
+ * Component display name.
5267
+ */
5268
+ declare const COMPONENT_NAME = "TimePickerField";
5269
+ /**
5270
+ * Component default class name (BEM root).
5271
+ */
5272
+ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
5273
+ /**
5274
+ * Translations consumed by `TimePickerField` (forwarded as-is to the underlying
5275
+ * `SelectTextField`).
5276
+ */
5277
+ type TimePickerFieldTranslations = Pick<SelectTextFieldTranslations, 'clearLabel' | 'showSuggestionsLabel'>;
5278
+
5279
+ /**
5280
+ * Inherited SelectTextField props (less the parts owned by TimePickerField).
5281
+ */
5282
+ type InheritedSelectTextFieldProps = Omit<SingleSelectTextFieldProps<TimeOfDay>, 'value' | 'onChange' | 'listStatus' | 'translations' | 'options' | 'getOptionId' | 'getOptionName' | 'renderOption' | 'filter' | 'onBlur' | 'onSearch' | 'selectionType'>;
5283
+ /**
5284
+ * `TimePickerField` props.
5285
+ */
5286
+ interface TimePickerFieldProps extends HasClassName$1, HasTheme$1, InheritedSelectTextFieldProps {
5287
+ /**
5288
+ * Currently selected time. Only the time-of-day component is consumed; the
5289
+ * date part is preserved when emitting `onChange`.
5290
+ */
5291
+ value?: Date;
5292
+ /**
5293
+ * Change handler. Called with a new `Date` whose date part is inherited from
5294
+ * the previous `value` (or today, if none) and whose time-of-day matches the
5295
+ * user selection. May also be called with `undefined` when the field is
5296
+ * cleared.
5297
+ */
5298
+ onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
5299
+ /**
5300
+ * BCP-47 locale string (e.g. `'en-US'`, `'fr-FR'`).
5301
+ */
5302
+ locale?: string;
5303
+ /**
5304
+ * Minute interval between option entries.
5305
+ */
5306
+ step?: number;
5307
+ /**
5308
+ * Lower bound. Options strictly before this time remain **visible** in the
5309
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
5310
+ * below this bound is snapped up to it on blur.
5311
+ */
5312
+ minTime?: Date;
5313
+ /**
5314
+ * Upper bound. Options strictly after this time remain **visible** in the
5315
+ * dropdown but are rendered as disabled (cannot be picked). Typed input
5316
+ * above this bound is snapped down to it on blur.
5317
+ */
5318
+ maxTime?: Date;
5319
+ /**
5320
+ * Translations label for clear and show suggestions buttons
5321
+ */
5322
+ translations: TimePickerFieldTranslations;
5323
+ }
5324
+ /**
5325
+ * A select-style picker for choosing a time of day. Wraps `SelectTextField`
5326
+ * with a generated list of times built from `step`, `minTime`, and `maxTime`.
5327
+ *
5328
+ * Out-of-range options (strictly before `minTime` or after `maxTime`) remain
5329
+ * visible in the dropdown but are rendered as disabled.
5330
+ *
5331
+ * Free-form typed input (e.g. `"10:30 PM"`, `"14"`, `"930"`) is parsed on blur.
5332
+ *
5333
+ * @param props Component props.
5334
+ * @return React element.
5335
+ */
5336
+ declare const TimePickerField: React__default.FC<TimePickerFieldProps>;
5337
+
5245
5338
  /**
5246
5339
  * Defines the props of the component.
5247
5340
  */
@@ -5496,5 +5589,5 @@ declare const ThemeProvider: React__default.FC<{
5496
5589
  /** Get the theme in the current context. */
5497
5590
  declare function useTheme(): ThemeContextValue;
5498
5591
 
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 };
5592
+ 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 };
5593
+ 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 };