@lumx/react 3.0.7 → 3.0.8

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.
@@ -285,4 +285,4 @@ declare const ThumbnailVariant: {
285
285
  };
286
286
  declare type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
287
287
 
288
- export { Alignment as A, Comp as C, Emphasis as E, Falsy as F, GenericProps as G, HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, ValueOf as V, HorizontalAlignment as a, Color as b, Callback as c, ColorPalette as d, VerticalAlignment as e, ColorVariant as f, TextElement as g, HeadingElement as h, AspectRatio as i, FocusPoint as j, ThumbnailSize as k, ThumbnailVariant as l, HasAriaLabelOrLabelledBy as m, GlobalSize as n, TypographyInterface as o, Theme as p, TypographyTitleCustom as q, TypographyCustom as r, ThumbnailAspectRatio as s };
288
+ export { Alignment as A, Comp as C, Emphasis as E, Falsy as F, GenericProps as G, HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, ValueOf as V, HorizontalAlignment as a, ColorPalette as b, Callback as c, VerticalAlignment as d, ColorVariant as e, TextElement as f, HeadingElement as g, AspectRatio as h, FocusPoint as i, ThumbnailSize as j, ThumbnailVariant as k, HasAriaLabelOrLabelledBy as l, GlobalSize as m, TypographyInterface as n, Color as o, Theme as p, TypographyTitleCustom as q, TypographyCustom as r, ThumbnailAspectRatio as s };
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import React, { ReactNode, SyntheticEvent, ReactElement, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, Ref, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
2
- import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as Color, E as Emphasis, V as ValueOf, c as Callback, d as ColorPalette, A as Alignment, e as VerticalAlignment, O as Orientation, f as ColorVariant, T as Typography, g as TextElement, h as HeadingElement, i as AspectRatio, F as Falsy, j as FocusPoint, k as ThumbnailSize, l as ThumbnailVariant, m as HasAriaLabelOrLabelledBy, n as GlobalSize, o as TypographyInterface } from './_internal/types.js';
3
- export { A as Alignment, i as AspectRatio, c as Callback, b as Color, d as ColorPalette, f as ColorVariant, E as Emphasis, j as FocusPoint, G as GenericProps, n as GlobalSize, h as HeadingElement, a as HorizontalAlignment, K as Kind, O as Orientation, S as Size, g as TextElement, p as Theme, s as ThumbnailAspectRatio, k as ThumbnailSize, l as ThumbnailVariant, T as Typography, r as TypographyCustom, o as TypographyInterface, q as TypographyTitleCustom, e as VerticalAlignment } from './_internal/types.js';
2
+ import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as ColorPalette, E as Emphasis, V as ValueOf, c as Callback, A as Alignment, d as VerticalAlignment, O as Orientation, e as ColorVariant, T as Typography, f as TextElement, g as HeadingElement, h as AspectRatio, F as Falsy, i as FocusPoint, j as ThumbnailSize, k as ThumbnailVariant, l as HasAriaLabelOrLabelledBy, m as GlobalSize, n as TypographyInterface } from './_internal/types.js';
3
+ export { A as Alignment, h as AspectRatio, c as Callback, o as Color, b as ColorPalette, e as ColorVariant, E as Emphasis, i as FocusPoint, G as GenericProps, m as GlobalSize, g as HeadingElement, a as HorizontalAlignment, K as Kind, O as Orientation, S as Size, f as TextElement, p as Theme, s as ThumbnailAspectRatio, j as ThumbnailSize, k as ThumbnailVariant, T as Typography, r as TypographyCustom, n as TypographyInterface, q as TypographyTitleCustom, d as VerticalAlignment } from './_internal/types.js';
4
4
 
5
5
  interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
6
6
  /** Message variant. */
@@ -261,7 +261,7 @@ interface BadgeProps extends GenericProps {
261
261
  /** Badge content. */
262
262
  children?: ReactNode;
263
263
  /** Color variant. */
264
- color?: Color;
264
+ color?: ColorPalette;
265
265
  }
266
266
  /**
267
267
  * Badge component.
@@ -279,7 +279,7 @@ declare type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButton
279
279
  declare type ButtonSize = Extract<Size, 's' | 'm'>;
280
280
  interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasTheme {
281
281
  /** Color variant. */
282
- color?: Color;
282
+ color?: ColorPalette;
283
283
  /** Emphasis variant. */
284
284
  emphasis?: Emphasis;
285
285
  /** Whether or not the button has a background color in low emphasis. */
@@ -426,7 +426,7 @@ interface ChipProps extends GenericProps, HasTheme {
426
426
  /** A component to be rendered before the content. */
427
427
  before?: ReactNode;
428
428
  /** Color variant. */
429
- color?: Color;
429
+ color?: ColorPalette;
430
430
  /** Whether the component is clickable or not. */
431
431
  isClickable?: boolean;
432
432
  /** Whether the component is disabled or not. */
@@ -1172,13 +1172,40 @@ interface GridItemProps extends GenericProps {
1172
1172
  */
1173
1173
  declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
1174
1174
 
1175
+ declare type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
1176
+ /**
1177
+ * Defines the props of the component.
1178
+ */
1179
+ interface GridColumnProps extends GenericProps {
1180
+ /** Customize the root element. */
1181
+ as?: React.ElementType;
1182
+ /** Children elements. */
1183
+ children?: ReactNode;
1184
+ /** Space between columns and rows. */
1185
+ gap?: GridColumnGapSize;
1186
+ /** Ideal number of columns. */
1187
+ maxColumns?: number;
1188
+ /** Minimum width for each item, reduce the number of column if there is not enough space. */
1189
+ itemMinWidth?: number;
1190
+ }
1191
+ /**
1192
+ * The GridColumn is a layout component that can display children in a grid
1193
+ * with custom display properties. It also comes with a responsive design,
1194
+ * with a number of column that reduce when there is not enough space for each item.
1195
+ *
1196
+ * @param props Component props.
1197
+ * @param ref Component ref.
1198
+ * @return React element.
1199
+ */
1200
+ declare const GridColumn: Comp<GridColumnProps>;
1201
+
1175
1202
  declare type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1176
1203
  /**
1177
1204
  * Defines the props of the component.
1178
1205
  */
1179
1206
  interface IconProps extends GenericProps, HasTheme {
1180
1207
  /** Color variant. */
1181
- color?: Color;
1208
+ color?: ColorPalette;
1182
1209
  /** Lightened or darkened variant of the selected icon color. */
1183
1210
  colorVariant?: ColorVariant;
1184
1211
  /** Whether the icon has a shape. */
@@ -1403,7 +1430,7 @@ declare type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttribute
1403
1430
  */
1404
1431
  interface LinkProps extends GenericProps {
1405
1432
  /** Color variant. */
1406
- color?: Color;
1433
+ color?: ColorPalette;
1407
1434
  /** Lightened or darkened variant of the selected icon color. */
1408
1435
  colorVariant?: ColorVariant;
1409
1436
  /** Link href. */
@@ -1710,12 +1737,44 @@ interface ProgressProps extends GenericProps, HasTheme {
1710
1737
  /**
1711
1738
  * Progress component.
1712
1739
  *
1740
+ * @deprecated use `ProgressLinear` and `ProgressCircular` instead.
1713
1741
  * @param props Component props.
1714
1742
  * @param ref Component ref.
1715
1743
  * @return React element.
1716
1744
  */
1717
1745
  declare const Progress: Comp<ProgressProps, HTMLDivElement>;
1718
1746
 
1747
+ /**
1748
+ * Progress sizes.
1749
+ */
1750
+ declare type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
1751
+ /**
1752
+ * Defines the props of the component.
1753
+ */
1754
+ interface ProgressCircularProps extends GenericProps, HasTheme {
1755
+ /** Progress circular size. */
1756
+ size?: ProgressCircularSize;
1757
+ }
1758
+ /**
1759
+ * ProgressCircularProps component.
1760
+ *
1761
+ * @param props Component props.
1762
+ * @param ref Component ref.
1763
+ * @return React element.
1764
+ */
1765
+ declare const ProgressCircular: Comp<ProgressCircularProps, HTMLDivElement>;
1766
+
1767
+ interface ProgressLinearProps extends GenericProps, HasTheme {
1768
+ }
1769
+ /**
1770
+ * ProgressLinear component.
1771
+ *
1772
+ * @param props Component props.
1773
+ * @param ref Component ref.
1774
+ * @return React element.
1775
+ */
1776
+ declare const ProgressLinear: Comp<ProgressLinearProps, HTMLDivElement>;
1777
+
1719
1778
  interface ProgressTrackerProviderProps {
1720
1779
  /** Active step index. */
1721
1780
  activeStepIndex?: number;
@@ -2726,4 +2785,4 @@ interface UserBlockProps extends GenericProps, HasTheme {
2726
2785
  */
2727
2786
  declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
2728
2787
 
2729
- export { AlertDialog, AlertDialogProps, Autocomplete, AutocompleteMultiple, AutocompleteMultipleProps, AutocompleteProps, Avatar, AvatarProps, AvatarSize, Badge, BadgeProps, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, Checkbox, CheckboxProps, Chip, ChipGroup, ChipGroupProps, ChipProps, CommentBlock, CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerControlledProps, DatePickerField, DatePickerFieldProps, DatePickerProps, Dialog, DialogProps, DialogSizes, Divider, DividerProps, DragHandle, DragHandleProps, Dropdown, DropdownProps, Elevation, ExpansionPanel, ExpansionPanelProps, Flag, FlagProps, FlexBox, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, GapSize, GenericBlock, GenericBlockGapSize, GenericBlockProps, Grid, GridItem, GridItemProps, GridProps, Heading, HeadingLevelProvider, HeadingLevelProviderProps, HeadingProps, Icon, IconButton, IconButtonProps, IconProps, IconSizes, ImageBlock, ImageBlockCaptionPosition, ImageBlockProps, ImageBlockSize, InlineList, InlineListProps, InputHelper, InputHelperProps, InputLabel, InputLabelProps, Lightbox, LightboxProps, Link, LinkPreview, LinkPreviewProps, LinkProps, List, ListDivider, ListDividerProps, ListItem, ListItemProps, ListItemSize, ListProps, ListSubheader, ListSubheaderProps, MarginAutoAlignment, Message, MessageProps, Mosaic, MosaicProps, Notification, NotificationProps, Offset, Placement, Popover, PopoverDialog, PopoverDialogProps, PopoverProps, PostBlock, PostBlockProps, Progress, ProgressProps, ProgressTracker, ProgressTrackerProps, ProgressTrackerProvider, ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, ProgressVariant, RadioButton, RadioButtonProps, RadioGroup, RadioGroupProps, Select, SelectMultiple, SelectMultipleField, SelectMultipleProps, SelectProps, SelectVariant, SideNavigation, SideNavigationItem, SideNavigationItemProps, SideNavigationProps, SkeletonCircle, SkeletonCircleProps, SkeletonRectangle, SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, SkeletonTypographyProps, Slider, SliderProps, Slides, SlidesProps, Slideshow, SlideshowControls, SlideshowControlsProps, SlideshowItem, SlideshowItemProps, SlideshowProps, Switch, SwitchProps, Tab, TabList, TabListLayout, TabListProps, TabPanel, TabPanelProps, TabProps, TabProvider, TabProviderProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableCellVariant, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Text, TextField, TextFieldProps, TextProps, ThOrder, Thumbnail, ThumbnailProps, Toolbar, ToolbarProps, Tooltip, TooltipPlacement, TooltipProps, Uploader, UploaderProps, UploaderSize, UploaderVariant, UserBlock, UserBlockProps, UserBlockSize, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
2788
+ export { AlertDialog, AlertDialogProps, Autocomplete, AutocompleteMultiple, AutocompleteMultipleProps, AutocompleteProps, Avatar, AvatarProps, AvatarSize, Badge, BadgeProps, BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, Checkbox, CheckboxProps, Chip, ChipGroup, ChipGroupProps, ChipProps, CommentBlock, CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, DatePickerControlledProps, DatePickerField, DatePickerFieldProps, DatePickerProps, Dialog, DialogProps, DialogSizes, Divider, DividerProps, DragHandle, DragHandleProps, Dropdown, DropdownProps, Elevation, ExpansionPanel, ExpansionPanelProps, Flag, FlagProps, FlexBox, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, GapSize, GenericBlock, GenericBlockGapSize, GenericBlockProps, Grid, GridColumn, GridColumnGapSize, GridColumnProps, GridItem, GridItemProps, GridProps, Heading, HeadingLevelProvider, HeadingLevelProviderProps, HeadingProps, Icon, IconButton, IconButtonProps, IconProps, IconSizes, ImageBlock, ImageBlockCaptionPosition, ImageBlockProps, ImageBlockSize, InlineList, InlineListProps, InputHelper, InputHelperProps, InputLabel, InputLabelProps, Lightbox, LightboxProps, Link, LinkPreview, LinkPreviewProps, LinkProps, List, ListDivider, ListDividerProps, ListItem, ListItemProps, ListItemSize, ListProps, ListSubheader, ListSubheaderProps, MarginAutoAlignment, Message, MessageProps, Mosaic, MosaicProps, Notification, NotificationProps, Offset, Placement, Popover, PopoverDialog, PopoverDialogProps, PopoverProps, PostBlock, PostBlockProps, Progress, ProgressCircular, ProgressCircularProps, ProgressCircularSize, ProgressLinear, ProgressLinearProps, ProgressProps, ProgressTracker, ProgressTrackerProps, ProgressTrackerProvider, ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, ProgressVariant, RadioButton, RadioButtonProps, RadioGroup, RadioGroupProps, Select, SelectMultiple, SelectMultipleField, SelectMultipleProps, SelectProps, SelectVariant, SideNavigation, SideNavigationItem, SideNavigationItemProps, SideNavigationProps, SkeletonCircle, SkeletonCircleProps, SkeletonRectangle, SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, SkeletonTypographyProps, Slider, SliderProps, Slides, SlidesProps, Slideshow, SlideshowControls, SlideshowControlsProps, SlideshowItem, SlideshowItemProps, SlideshowProps, Switch, SwitchProps, Tab, TabList, TabListLayout, TabListProps, TabPanel, TabPanelProps, TabProps, TabProvider, TabProviderProps, Table, TableBody, TableBodyProps, TableCell, TableCellProps, TableCellVariant, TableHeader, TableHeaderProps, TableProps, TableRow, TableRowProps, Text, TextField, TextFieldProps, TextProps, ThOrder, Thumbnail, ThumbnailProps, Toolbar, ToolbarProps, Tooltip, TooltipPlacement, TooltipProps, Uploader, UploaderProps, UploaderSize, UploaderVariant, UserBlock, UserBlockProps, UserBlockSize, clamp, isClickable, useFocusPointStyle, useHeadingLevel };