@lumx/react 4.0.1-alpha.2 → 4.0.1-alpha.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.
package/index.d.ts CHANGED
@@ -5,6 +5,8 @@ import { GenericProps, HasTheme, ValueOf, HasCloseMode, TextElement, HeadingElem
5
5
  export * from '@lumx/core/js/types';
6
6
  import * as React$1 from 'react';
7
7
  import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType, ComponentProps } from 'react';
8
+ import { IconProps } from '@lumx/core/js/components/Icon';
9
+ export { IconProps, IconSizes } from '@lumx/core/js/components/Icon';
8
10
 
9
11
  /** LumX Component Type. */
10
12
  type Comp<P, T = HTMLElement> = {
@@ -1312,27 +1314,6 @@ interface GridColumnProps extends GenericProps {
1312
1314
  */
1313
1315
  declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
1314
1316
 
1315
- type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
1316
- /**
1317
- * Defines the props of the component.
1318
- */
1319
- interface IconProps extends GenericProps, HasTheme {
1320
- /** Color variant. */
1321
- color?: ColorWithVariants;
1322
- /** Lightened or darkened variant of the selected icon color. */
1323
- colorVariant?: ColorVariant;
1324
- /** Whether the icon has a shape. */
1325
- hasShape?: boolean;
1326
- /**
1327
- * Icon (SVG path) draw code (`d` property of the `<path>` SVG element).
1328
- * See https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths
1329
- */
1330
- icon: string;
1331
- /** Size variant. */
1332
- size?: IconSizes;
1333
- /** Sets an alternative text on the svg. Will set an `img` role to the svg. */
1334
- alt?: string;
1335
- }
1336
1317
  /**
1337
1318
  * Icon component.
1338
1319
  *
@@ -2494,8 +2475,6 @@ declare const clamp: (value: number, min: number, max: number) => number;
2494
2475
  * Defines the props of the component.
2495
2476
  */
2496
2477
  interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 'slidesId' | 'id' | 'theme' | 'fillHeight' | 'groupBy' | 'slideGroupLabel'> {
2497
- /** Whether to use CSS transform or native scroll snap. */
2498
- mode?: 'transform' | 'scroll-snap';
2499
2478
  /** current slide active */
2500
2479
  activeIndex?: SlidesProps['activeIndex'];
2501
2480
  /** Interval between each slide when automatic rotation is enabled. */
@@ -2642,7 +2621,7 @@ declare const SlideshowControls: Comp<SlideshowControlsProps, HTMLDivElement> &
2642
2621
  };
2643
2622
  };
2644
2623
 
2645
- interface SlidesCommonProps extends GenericProps, HasTheme {
2624
+ interface SlidesProps extends GenericProps, HasTheme {
2646
2625
  /** current slide active */
2647
2626
  activeIndex: number;
2648
2627
  /** slides id to be added to the wrapper */
@@ -2671,14 +2650,6 @@ interface SlidesCommonProps extends GenericProps, HasTheme {
2671
2650
  /** Children */
2672
2651
  children?: React__default.ReactNode;
2673
2652
  }
2674
- interface SlidesTransformProps extends SlidesCommonProps {
2675
- mode?: 'transform';
2676
- }
2677
- interface SlidesScrollSnapProps extends SlidesCommonProps {
2678
- mode: 'scroll-snap';
2679
- onChange: (index: number) => void;
2680
- }
2681
- type SlidesProps = SlidesTransformProps | SlidesScrollSnapProps;
2682
2653
  /**
2683
2654
  * Slides component.
2684
2655
  *
@@ -3195,4 +3166,4 @@ declare const ThemeProvider: React__default.FC<{
3195
3166
  declare function useTheme(): ThemeContextValue;
3196
3167
 
3197
3168
  export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, 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, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
3198
- export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesCommonProps, 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 };
3169
+ export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SideNavigationItemProps, SideNavigationProps, 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 };