@lumx/react 3.9.7-alpha.1 → 3.9.7-alpha.2
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/_internal/{types.d.ts → index.d.ts} +1 -44
- package/index.d.ts +46 -3
- package/index.js +174 -204
- package/index.js.map +1 -1
- package/package.json +11 -12
- package/utils/index.d.ts +1 -1
- package/utils/index.js +96 -1
- package/utils/index.js.map +1 -1
- package/_internal/ClickAwayProvider.js +0 -97
- package/_internal/ClickAwayProvider.js.map +0 -1
|
@@ -282,47 +282,4 @@ declare const WhiteSpace: {
|
|
|
282
282
|
};
|
|
283
283
|
type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
284
284
|
|
|
285
|
-
|
|
286
|
-
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
287
|
-
*/
|
|
288
|
-
type FocusPoint = {
|
|
289
|
-
x?: number;
|
|
290
|
-
y?: number;
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Loading attribute is not yet supported in typescript, so we need
|
|
294
|
-
* to add it in order to avoid a ts error.
|
|
295
|
-
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
296
|
-
*/
|
|
297
|
-
declare module 'react' {
|
|
298
|
-
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
299
|
-
loading?: 'eager' | 'lazy';
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* All available aspect ratios.
|
|
304
|
-
* @deprecated
|
|
305
|
-
*/
|
|
306
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
307
|
-
/**
|
|
308
|
-
* Thumbnail sizes.
|
|
309
|
-
*/
|
|
310
|
-
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
311
|
-
/**
|
|
312
|
-
* Thumbnail variants.
|
|
313
|
-
*/
|
|
314
|
-
declare const ThumbnailVariant: {
|
|
315
|
-
readonly squared: "squared";
|
|
316
|
-
readonly rounded: "rounded";
|
|
317
|
-
};
|
|
318
|
-
type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
319
|
-
/**
|
|
320
|
-
* Thumbnail object fit.
|
|
321
|
-
*/
|
|
322
|
-
declare const ThumbnailObjectFit: {
|
|
323
|
-
readonly cover: "cover";
|
|
324
|
-
readonly contain: "contain";
|
|
325
|
-
};
|
|
326
|
-
type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
|
|
327
|
-
|
|
328
|
-
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, WhiteSpace as W, HorizontalAlignment as a, ColorPalette as b, VerticalAlignment as c, ColorVariant as d, TextElement as e, HeadingElement as f, AspectRatio as g, FocusPoint as h, ThumbnailObjectFit as i, ThumbnailSize as j, ThumbnailVariant as k, HasClassName as l, HasAriaLabelOrLabelledBy as m, ComponentRef as n, HasCloseMode as o, GlobalSize as p, TypographyInterface as q, Color as r, Theme as s, TypographyTitleCustom as t, TypographyCustom as u, Callback as v, ThumbnailAspectRatio as w };
|
|
285
|
+
export { Alignment as A, type Comp as C, Emphasis as E, type Falsy as F, type GenericProps as G, type HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, type ValueOf as V, WhiteSpace as W, type HorizontalAlignment as a, ColorPalette as b, type VerticalAlignment as c, ColorVariant as d, type TextElement as e, type HeadingElement as f, AspectRatio as g, type HasClassName as h, type HasAriaLabelOrLabelledBy as i, type ComponentRef as j, type HasCloseMode as k, type GlobalSize as l, TypographyInterface as m, type Color as n, Theme as o, TypographyTitleCustom as p, TypographyCustom as q, type Callback as r };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
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, A as Alignment, c as VerticalAlignment, O as Orientation, d as ColorVariant, T as Typography, e as TextElement, W as WhiteSpace, f as HeadingElement, g as AspectRatio, F as Falsy, h as
|
|
2
|
-
export {
|
|
1
|
+
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, A as Alignment, c as VerticalAlignment, O as Orientation, d as ColorVariant, T as Typography, e as TextElement, W as WhiteSpace, f as HeadingElement, g as AspectRatio, F as Falsy, h as HasClassName, i as HasAriaLabelOrLabelledBy, j as ComponentRef, k as HasCloseMode, l as GlobalSize, m as TypographyInterface } from './_internal/index.js';
|
|
2
|
+
export { r as Callback, n as Color, o as Theme, q as TypographyCustom, p as TypographyTitleCustom } from './_internal/index.js';
|
|
3
3
|
import React, { ReactNode, SyntheticEvent, ReactElement, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, Ref, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
|
|
4
4
|
|
|
5
5
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
@@ -1274,6 +1274,49 @@ interface IconProps extends GenericProps, HasTheme {
|
|
|
1274
1274
|
*/
|
|
1275
1275
|
declare const Icon: Comp<IconProps, HTMLElement>;
|
|
1276
1276
|
|
|
1277
|
+
/**
|
|
1278
|
+
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
1279
|
+
*/
|
|
1280
|
+
type FocusPoint = {
|
|
1281
|
+
x?: number;
|
|
1282
|
+
y?: number;
|
|
1283
|
+
};
|
|
1284
|
+
/**
|
|
1285
|
+
* Loading attribute is not yet supported in typescript, so we need
|
|
1286
|
+
* to add it in order to avoid a ts error.
|
|
1287
|
+
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
1288
|
+
*/
|
|
1289
|
+
declare module 'react' {
|
|
1290
|
+
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
1291
|
+
loading?: 'eager' | 'lazy';
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* All available aspect ratios.
|
|
1296
|
+
* @deprecated
|
|
1297
|
+
*/
|
|
1298
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Thumbnail sizes.
|
|
1301
|
+
*/
|
|
1302
|
+
type ThumbnailSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1303
|
+
/**
|
|
1304
|
+
* Thumbnail variants.
|
|
1305
|
+
*/
|
|
1306
|
+
declare const ThumbnailVariant: {
|
|
1307
|
+
readonly squared: "squared";
|
|
1308
|
+
readonly rounded: "rounded";
|
|
1309
|
+
};
|
|
1310
|
+
type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Thumbnail object fit.
|
|
1313
|
+
*/
|
|
1314
|
+
declare const ThumbnailObjectFit: {
|
|
1315
|
+
readonly cover: "cover";
|
|
1316
|
+
readonly contain: "contain";
|
|
1317
|
+
};
|
|
1318
|
+
type ThumbnailObjectFit = ValueOf<typeof ThumbnailObjectFit>;
|
|
1319
|
+
|
|
1277
1320
|
type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
1278
1321
|
/**
|
|
1279
1322
|
* Defines the props of the component.
|
|
@@ -2993,4 +3036,4 @@ interface UserBlockProps extends GenericProps, HasTheme {
|
|
|
2993
3036
|
*/
|
|
2994
3037
|
declare const UserBlock: Comp<UserBlockProps, HTMLDivElement>;
|
|
2995
3038
|
|
|
2996
|
-
export { AlertDialog, AlertDialogProps, Autocomplete, AutocompleteMultiple, AutocompleteMultipleProps, AutocompleteProps, Avatar, AvatarProps, AvatarSize, Badge, BadgeProps, BadgeWrapper, BadgeWrapperProps, 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, ImageLightbox, ImageLightboxProps, 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, Navigation, NavigationProps, 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 };
|
|
3039
|
+
export { AlertDialog, type AlertDialogProps, Alignment, AspectRatio, Autocomplete, AutocompleteMultiple, type AutocompleteMultipleProps, type AutocompleteProps, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, BadgeWrapper, type BadgeWrapperProps, type BaseButtonProps, Button, ButtonEmphasis, ButtonGroup, type ButtonGroupProps, type ButtonProps, type ButtonSize, Checkbox, type CheckboxProps, Chip, ChipGroup, type ChipGroupProps, type ChipProps, ColorPalette, ColorVariant, CommentBlock, type CommentBlockProps, CommentBlockVariant, DatePicker, DatePickerControlled, type DatePickerControlledProps, DatePickerField, type DatePickerFieldProps, type DatePickerProps, Dialog, type DialogProps, type DialogSizes, Divider, type DividerProps, DragHandle, type DragHandleProps, Dropdown, type DropdownProps, type Elevation, Emphasis, ExpansionPanel, type ExpansionPanelProps, Flag, type FlagProps, FlexBox, type FlexBoxProps, type FlexHorizontalAlignment, type FlexVerticalAlignment, type FocusPoint, type GapSize, GenericBlock, GenericBlockGapSize, type GenericBlockProps, GenericProps, GlobalSize, Grid, GridColumn, type GridColumnGapSize, type GridColumnProps, GridItem, type GridItemProps, type GridProps, Heading, HeadingElement, HeadingLevelProvider, type HeadingLevelProviderProps, type HeadingProps, HorizontalAlignment, Icon, IconButton, type IconButtonProps, type IconProps, type IconSizes, ImageBlock, ImageBlockCaptionPosition, type ImageBlockProps, type ImageBlockSize, ImageLightbox, type ImageLightboxProps, InlineList, type InlineListProps, InputHelper, type InputHelperProps, InputLabel, type InputLabelProps, Kind, Lightbox, type LightboxProps, Link, LinkPreview, type LinkPreviewProps, type LinkProps, List, ListDivider, type ListDividerProps, ListItem, type ListItemProps, type ListItemSize, type ListProps, ListSubheader, type ListSubheaderProps, type MarginAutoAlignment, Message, type MessageProps, Mosaic, type MosaicProps, Navigation, type NavigationProps, Notification, type NotificationProps, type Offset, Orientation, Placement, Popover, PopoverDialog, type PopoverDialogProps, type PopoverProps, PostBlock, type PostBlockProps, Progress, ProgressCircular, type ProgressCircularProps, type ProgressCircularSize, ProgressLinear, type ProgressLinearProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, ProgressTrackerProvider, type ProgressTrackerProviderProps, ProgressTrackerStep, ProgressTrackerStepPanel, type ProgressTrackerStepPanelProps, type ProgressTrackerStepProps, ProgressVariant, RadioButton, type RadioButtonProps, RadioGroup, type RadioGroupProps, Select, SelectMultiple, SelectMultipleField, type SelectMultipleProps, type SelectProps, SelectVariant, SideNavigation, SideNavigationItem, type SideNavigationItemProps, type SideNavigationProps, Size, SkeletonCircle, type SkeletonCircleProps, SkeletonRectangle, type SkeletonRectangleProps, SkeletonRectangleVariant, SkeletonTypography, type SkeletonTypographyProps, Slider, type SliderProps, Slides, type SlidesProps, Slideshow, SlideshowControls, type SlideshowControlsProps, SlideshowItem, type SlideshowItemProps, type SlideshowProps, Switch, type SwitchProps, Tab, TabList, TabListLayout, type TabListProps, TabPanel, type TabPanelProps, type TabProps, TabProvider, type TabProviderProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableCellVariant, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Text, TextElement, TextField, type TextFieldProps, type TextProps, ThOrder, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, type ThumbnailProps, type ThumbnailSize, ThumbnailVariant, Toolbar, type ToolbarProps, Tooltip, type TooltipPlacement, type TooltipProps, Typography, TypographyInterface, Uploader, type UploaderProps, type UploaderSize, UploaderVariant, UserBlock, type UserBlockProps, type UserBlockSize, VerticalAlignment, WhiteSpace, clamp, isClickable, useFocusPointStyle, useHeadingLevel };
|