@lumx/react 3.0.2-alpha-react-utils.2 → 3.0.2-alpha-react-utils.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.
- package/_internal/{6340c129.js → ClickAwayProvider.js} +107 -2
- package/_internal/ClickAwayProvider.js.map +1 -0
- package/_internal/{eca6d4dc.d.ts → types.d.ts} +1 -1
- package/index.d.ts +2627 -56
- package/index.js +12438 -56
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/utils/index.d.ts +1 -1
- package/utils/index.js +1 -1
- package/_internal/0062d1bc.js +0 -220
- package/_internal/0062d1bc.js.map +0 -1
- package/_internal/03e8323d.d.ts +0 -118
- package/_internal/0402f9bc.d.ts +0 -183
- package/_internal/0b370acc.js +0 -796
- package/_internal/0b370acc.js.map +0 -1
- package/_internal/0d154d73.d.ts +0 -67
- package/_internal/113e3b40.d.ts +0 -31
- package/_internal/12ab39e4.js +0 -58
- package/_internal/12ab39e4.js.map +0 -1
- package/_internal/13e759f3.js +0 -343
- package/_internal/13e759f3.js.map +0 -1
- package/_internal/158b46d5.js +0 -151
- package/_internal/158b46d5.js.map +0 -1
- package/_internal/17b74e16.d.ts +0 -31
- package/_internal/1b1530a4.d.ts +0 -43
- package/_internal/20976405.js +0 -87
- package/_internal/20976405.js.map +0 -1
- package/_internal/20b0e9a5.d.ts +0 -77
- package/_internal/26cd9c63.js +0 -118
- package/_internal/26cd9c63.js.map +0 -1
- package/_internal/27f21164.js +0 -79
- package/_internal/27f21164.js.map +0 -1
- package/_internal/288dfd0f.js +0 -13
- package/_internal/288dfd0f.js.map +0 -1
- package/_internal/28aaf23a.d.ts +0 -41
- package/_internal/2c829c0b.d.ts +0 -57
- package/_internal/2cc0aec5.js +0 -86
- package/_internal/2cc0aec5.js.map +0 -1
- package/_internal/2d0a5b28.js +0 -23
- package/_internal/2d0a5b28.js.map +0 -1
- package/_internal/2d4b5a5e.d.ts +0 -92
- package/_internal/2d770113.d.ts +0 -38
- package/_internal/2fe97f00.js +0 -291
- package/_internal/2fe97f00.js.map +0 -1
- package/_internal/31c16fa0.d.ts +0 -37
- package/_internal/329a01d3.js +0 -25
- package/_internal/329a01d3.js.map +0 -1
- package/_internal/3326e990.js +0 -168
- package/_internal/3326e990.js.map +0 -1
- package/_internal/377b2f44.js +0 -70
- package/_internal/377b2f44.js.map +0 -1
- package/_internal/3b8d2a6e.js +0 -124
- package/_internal/3b8d2a6e.js.map +0 -1
- package/_internal/3bd3186e.d.ts +0 -57
- package/_internal/48e40868.js +0 -101
- package/_internal/48e40868.js.map +0 -1
- package/_internal/490ec1da.js +0 -322
- package/_internal/490ec1da.js.map +0 -1
- package/_internal/49127d69.d.ts +0 -52
- package/_internal/4dcd87cb.js +0 -78
- package/_internal/4dcd87cb.js.map +0 -1
- package/_internal/4f44d848.js +0 -157
- package/_internal/4f44d848.js.map +0 -1
- package/_internal/4fc64a2e.js +0 -27
- package/_internal/4fc64a2e.js.map +0 -1
- package/_internal/53a831be.js +0 -108
- package/_internal/53a831be.js.map +0 -1
- package/_internal/55271fa1.d.ts +0 -34
- package/_internal/55d30377.d.ts +0 -22
- package/_internal/56385b04.js +0 -116
- package/_internal/56385b04.js.map +0 -1
- package/_internal/599e250a.d.ts +0 -88
- package/_internal/5a054691.d.ts +0 -33
- package/_internal/5a127b58.js +0 -82
- package/_internal/5a127b58.js.map +0 -1
- package/_internal/5a1c0db4.js +0 -156
- package/_internal/5a1c0db4.js.map +0 -1
- package/_internal/5babcc39.js +0 -147
- package/_internal/5babcc39.js.map +0 -1
- package/_internal/5c1bf4d4.d.ts +0 -81
- package/_internal/5d8ed4ee.js +0 -113
- package/_internal/5d8ed4ee.js.map +0 -1
- package/_internal/616f2912.js +0 -301
- package/_internal/616f2912.js.map +0 -1
- package/_internal/61f915de.d.ts +0 -49
- package/_internal/620081fa.js +0 -122
- package/_internal/620081fa.js.map +0 -1
- package/_internal/6340c129.js.map +0 -1
- package/_internal/6581c863.d.ts +0 -34
- package/_internal/66de4d45.d.ts +0 -32
- package/_internal/6735c5c8.d.ts +0 -62
- package/_internal/69dd1472.js +0 -112
- package/_internal/69dd1472.js.map +0 -1
- package/_internal/6a0e1c77.js +0 -327
- package/_internal/6a0e1c77.js.map +0 -1
- package/_internal/701c20b0.d.ts +0 -24
- package/_internal/7391188a.js +0 -81
- package/_internal/7391188a.js.map +0 -1
- package/_internal/74cb6c26.js +0 -136
- package/_internal/74cb6c26.js.map +0 -1
- package/_internal/761031bf.js +0 -314
- package/_internal/761031bf.js.map +0 -1
- package/_internal/76fed69d.js +0 -50
- package/_internal/76fed69d.js.map +0 -1
- package/_internal/78ef8e34.js +0 -40
- package/_internal/78ef8e34.js.map +0 -1
- package/_internal/7b906e16.d.ts +0 -17
- package/_internal/7be11ddc.d.ts +0 -35
- package/_internal/7d39705e.d.ts +0 -20
- package/_internal/7e03266f.js +0 -47
- package/_internal/7e03266f.js.map +0 -1
- package/_internal/7e8d0ac5.js +0 -84
- package/_internal/7e8d0ac5.js.map +0 -1
- package/_internal/7ffa45f6.js +0 -48
- package/_internal/7ffa45f6.js.map +0 -1
- package/_internal/84c1ec44.js +0 -257
- package/_internal/84c1ec44.js.map +0 -1
- package/_internal/8518279f.js +0 -96
- package/_internal/8518279f.js.map +0 -1
- package/_internal/853713cd.js +0 -25
- package/_internal/853713cd.js.map +0 -1
- package/_internal/86566d75.d.ts +0 -27
- package/_internal/86d22dde.d.ts +0 -57
- package/_internal/8e755ded.d.ts +0 -101
- package/_internal/901471f5.d.ts +0 -37
- package/_internal/935ce959.d.ts +0 -49
- package/_internal/97089888.d.ts +0 -16
- package/_internal/97cc728c.d.ts +0 -26
- package/_internal/9ab3c637.js +0 -2474
- package/_internal/9ab3c637.js.map +0 -1
- package/_internal/9ca3f59c.js +0 -60
- package/_internal/9ca3f59c.js.map +0 -1
- package/_internal/9e95ea38.d.ts +0 -43
- package/_internal/a0108f92.js +0 -84
- package/_internal/a0108f92.js.map +0 -1
- package/_internal/a493a193.d.ts +0 -65
- package/_internal/a521723d.js +0 -120
- package/_internal/a521723d.js.map +0 -1
- package/_internal/a6fad025.d.ts +0 -107
- package/_internal/a8fa525f.js +0 -124
- package/_internal/a8fa525f.js.map +0 -1
- package/_internal/aca2ecf5.js +0 -141
- package/_internal/aca2ecf5.js.map +0 -1
- package/_internal/aef2ef1c.js +0 -53
- package/_internal/aef2ef1c.js.map +0 -1
- package/_internal/af048b0c.js +0 -89
- package/_internal/af048b0c.js.map +0 -1
- package/_internal/af2cd0cd.d.ts +0 -17
- package/_internal/afec6b62.js +0 -864
- package/_internal/afec6b62.js.map +0 -1
- package/_internal/b0eb3a30.js +0 -72
- package/_internal/b0eb3a30.js.map +0 -1
- package/_internal/b89517ea.js +0 -275
- package/_internal/b89517ea.js.map +0 -1
- package/_internal/bafa6fcc.js +0 -116
- package/_internal/bafa6fcc.js.map +0 -1
- package/_internal/bbbeb49e.js +0 -47
- package/_internal/bbbeb49e.js.map +0 -1
- package/_internal/c11f6162.d.ts +0 -52
- package/_internal/c723dab4.js +0 -133
- package/_internal/c723dab4.js.map +0 -1
- package/_internal/c87cc857.d.ts +0 -42
- package/_internal/c97f8d04.js +0 -424
- package/_internal/c97f8d04.js.map +0 -1
- package/_internal/cbb373ea.d.ts +0 -6
- package/_internal/cbef23b6.d.ts +0 -104
- package/_internal/cdf77f06.d.ts +0 -88
- package/_internal/d350f2ff.js +0 -105
- package/_internal/d350f2ff.js.map +0 -1
- package/_internal/d71a8cf7.js +0 -54
- package/_internal/d71a8cf7.js.map +0 -1
- package/_internal/d9337952.js +0 -96
- package/_internal/d9337952.js.map +0 -1
- package/_internal/def14e1a.d.ts +0 -24
- package/_internal/e0cd29c7.d.ts +0 -35
- package/_internal/e354228f.js +0 -145
- package/_internal/e354228f.js.map +0 -1
- package/_internal/e3922a05.d.ts +0 -22
- package/_internal/e3cb6177.d.ts +0 -75
- package/_internal/e810c841.d.ts +0 -182
- package/_internal/ea700b01.d.ts +0 -43
- package/_internal/eed07003.js +0 -122
- package/_internal/eed07003.js.map +0 -1
- package/_internal/f1c9b334.d.ts +0 -22
- package/_internal/f3c3a674.js +0 -281
- package/_internal/f3c3a674.js.map +0 -1
- package/_internal/f571cdcd.js +0 -132
- package/_internal/f571cdcd.js.map +0 -1
- package/_internal/f5bdff7e.js +0 -282
- package/_internal/f5bdff7e.js.map +0 -1
- package/_internal/f851fc00.d.ts +0 -34
- package/_internal/f859b007.d.ts +0 -49
- package/_internal/fb384b79.d.ts +0 -38
- package/_internal/fc4c034b.js +0 -63
- package/_internal/fc4c034b.js.map +0 -1
- package/_internal/fc608bd9.js +0 -16
- package/_internal/fc608bd9.js.map +0 -1
- package/_internal/fd1f4d68.d.ts +0 -36
- package/_internal/fd867c9d.js +0 -346
- package/_internal/fd867c9d.js.map +0 -1
- package/_internal/ff8081e5.js +0 -57
- package/_internal/ff8081e5.js.map +0 -1
- package/_internal/ffd1bfe3.js +0 -123
- package/_internal/ffd1bfe3.js.map +0 -1
- package/components/alert-dialog.d.ts +0 -6
- package/components/alert-dialog.js +0 -2
- package/components/alert-dialog.js.map +0 -1
- package/components/autocomplete.d.ts +0 -8
- package/components/autocomplete.js +0 -2
- package/components/autocomplete.js.map +0 -1
- package/components/avatar.d.ts +0 -4
- package/components/avatar.js +0 -2
- package/components/avatar.js.map +0 -1
- package/components/badge.d.ts +0 -3
- package/components/badge.js +0 -2
- package/components/badge.js.map +0 -1
- package/components/button.d.ts +0 -8
- package/components/button.js +0 -4
- package/components/button.js.map +0 -1
- package/components/checkbox.d.ts +0 -3
- package/components/checkbox.js +0 -2
- package/components/checkbox.js.map +0 -1
- package/components/chip.d.ts +0 -3
- package/components/chip.js +0 -3
- package/components/chip.js.map +0 -1
- package/components/comment-block.d.ts +0 -5
- package/components/comment-block.js +0 -2
- package/components/comment-block.js.map +0 -1
- package/components/date-picker.d.ts +0 -7
- package/components/date-picker.js +0 -2
- package/components/date-picker.js.map +0 -1
- package/components/dialog.d.ts +0 -3
- package/components/dialog.js +0 -2
- package/components/dialog.js.map +0 -1
- package/components/divider.d.ts +0 -3
- package/components/divider.js +0 -2
- package/components/divider.js.map +0 -1
- package/components/drag-handle.d.ts +0 -3
- package/components/drag-handle.js +0 -2
- package/components/drag-handle.js.map +0 -1
- package/components/dropdown.d.ts +0 -4
- package/components/dropdown.js +0 -2
- package/components/dropdown.js.map +0 -1
- package/components/expansion-panel.d.ts +0 -7
- package/components/expansion-panel.js +0 -2
- package/components/expansion-panel.js.map +0 -1
- package/components/flag.d.ts +0 -3
- package/components/flag.js +0 -2
- package/components/flag.js.map +0 -1
- package/components/flex-box.d.ts +0 -3
- package/components/flex-box.js +0 -2
- package/components/flex-box.js.map +0 -1
- package/components/generic-block.d.ts +0 -4
- package/components/generic-block.js +0 -2
- package/components/generic-block.js.map +0 -1
- package/components/grid.d.ts +0 -3
- package/components/grid.js +0 -2
- package/components/grid.js.map +0 -1
- package/components/heading.d.ts +0 -4
- package/components/heading.js +0 -2
- package/components/heading.js.map +0 -1
- package/components/icon.d.ts +0 -3
- package/components/icon.js +0 -2
- package/components/icon.js.map +0 -1
- package/components/image-block.d.ts +0 -4
- package/components/image-block.js +0 -2
- package/components/image-block.js.map +0 -1
- package/components/input-helper.d.ts +0 -3
- package/components/input-helper.js +0 -2
- package/components/input-helper.js.map +0 -1
- package/components/input-label.d.ts +0 -3
- package/components/input-label.js +0 -2
- package/components/input-label.js.map +0 -1
- package/components/lightbox.d.ts +0 -7
- package/components/lightbox.js +0 -2
- package/components/lightbox.js.map +0 -1
- package/components/link-preview.d.ts +0 -5
- package/components/link-preview.js +0 -2
- package/components/link-preview.js.map +0 -1
- package/components/link.d.ts +0 -3
- package/components/link.js +0 -2
- package/components/link.js.map +0 -1
- package/components/list.d.ts +0 -3
- package/components/list.js +0 -3
- package/components/list.js.map +0 -1
- package/components/message.d.ts +0 -3
- package/components/message.js +0 -2
- package/components/message.js.map +0 -1
- package/components/mosaic.d.ts +0 -4
- package/components/mosaic.js +0 -2
- package/components/mosaic.js.map +0 -1
- package/components/notification.d.ts +0 -3
- package/components/notification.js +0 -2
- package/components/notification.js.map +0 -1
- package/components/popover.d.ts +0 -3
- package/components/popover.js +0 -2
- package/components/popover.js.map +0 -1
- package/components/post-block.d.ts +0 -4
- package/components/post-block.js +0 -2
- package/components/post-block.js.map +0 -1
- package/components/progress-tracker.d.ts +0 -3
- package/components/progress-tracker.js +0 -2
- package/components/progress-tracker.js.map +0 -1
- package/components/progress.d.ts +0 -3
- package/components/progress.js +0 -2
- package/components/progress.js.map +0 -1
- package/components/radio-button.d.ts +0 -3
- package/components/radio-button.js +0 -2
- package/components/radio-button.js.map +0 -1
- package/components/select.d.ts +0 -7
- package/components/select.js +0 -2
- package/components/select.js.map +0 -1
- package/components/side-navigation.d.ts +0 -7
- package/components/side-navigation.js +0 -2
- package/components/side-navigation.js.map +0 -1
- package/components/skeleton.d.ts +0 -3
- package/components/skeleton.js +0 -2
- package/components/skeleton.js.map +0 -1
- package/components/slider.d.ts +0 -3
- package/components/slider.js +0 -2
- package/components/slider.js.map +0 -1
- package/components/slideshow.d.ts +0 -7
- package/components/slideshow.js +0 -2
- package/components/slideshow.js.map +0 -1
- package/components/switch.d.ts +0 -3
- package/components/switch.js +0 -2
- package/components/switch.js.map +0 -1
- package/components/table.d.ts +0 -3
- package/components/table.js +0 -2
- package/components/table.js.map +0 -1
- package/components/tabs.d.ts +0 -4
- package/components/tabs.js +0 -2
- package/components/tabs.js.map +0 -1
- package/components/text-field.d.ts +0 -7
- package/components/text-field.js +0 -2
- package/components/text-field.js.map +0 -1
- package/components/text.d.ts +0 -3
- package/components/text.js +0 -2
- package/components/text.js.map +0 -1
- package/components/thumbnail.d.ts +0 -4
- package/components/thumbnail.js +0 -3
- package/components/thumbnail.js.map +0 -1
- package/components/toolbar.d.ts +0 -3
- package/components/toolbar.js +0 -2
- package/components/toolbar.js.map +0 -1
- package/components/tooltip.d.ts +0 -4
- package/components/tooltip.js +0 -2
- package/components/tooltip.js.map +0 -1
- package/components/uploader.d.ts +0 -3
- package/components/uploader.js +0 -2
- package/components/uploader.js.map +0 -1
- package/components/user-block.d.ts +0 -5
- package/components/user-block.js +0 -2
- package/components/user-block.js.map +0 -1
- package/components.d.ts +0 -2
- package/components.js +0 -156
- package/components.js.map +0 -1
package/_internal/e3cb6177.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
import { l as GenericProps, m as HasTheme, G as GlobalSize, C as ColorPalette, k as Comp, n as ValueOf, g as AspectRatio, c as TypographyInterface } from './eca6d4dc.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines the props of the component.
|
|
6
|
-
*/
|
|
7
|
-
interface SkeletonCircleProps extends GenericProps, HasTheme {
|
|
8
|
-
/** Size variant. */
|
|
9
|
-
size: GlobalSize;
|
|
10
|
-
/** The color of the skeleton. */
|
|
11
|
-
color?: ColorPalette;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* SkeletonCircle component.
|
|
15
|
-
*
|
|
16
|
-
* @param props Component props.
|
|
17
|
-
* @param ref Component ref.
|
|
18
|
-
* @return React element.
|
|
19
|
-
*/
|
|
20
|
-
declare const SkeletonCircle: Comp<SkeletonCircleProps, HTMLDivElement>;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Skeleton variants.
|
|
24
|
-
*/
|
|
25
|
-
declare const SkeletonRectangleVariant: {
|
|
26
|
-
readonly squared: "squared";
|
|
27
|
-
readonly rounded: "rounded";
|
|
28
|
-
readonly pill: "pill";
|
|
29
|
-
};
|
|
30
|
-
declare type SkeletonRectangleVariant = ValueOf<typeof SkeletonRectangleVariant>;
|
|
31
|
-
/**
|
|
32
|
-
* Defines the props of the component.
|
|
33
|
-
*/
|
|
34
|
-
interface SkeletonRectangleProps extends GenericProps, HasTheme {
|
|
35
|
-
/** Aspect ratio (use with width and not height). */
|
|
36
|
-
aspectRatio?: Extract<AspectRatio, 'square' | 'horizontal' | 'vertical' | 'wide'>;
|
|
37
|
-
/** Height size. */
|
|
38
|
-
height?: GlobalSize;
|
|
39
|
-
/** Border variant. */
|
|
40
|
-
variant?: SkeletonRectangleVariant;
|
|
41
|
-
/** Width size. */
|
|
42
|
-
width?: GlobalSize;
|
|
43
|
-
/** The color of the skeleton. */
|
|
44
|
-
color?: ColorPalette;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* SkeletonRectangle component.
|
|
48
|
-
*
|
|
49
|
-
* @param props Component props.
|
|
50
|
-
* @param ref Component ref.
|
|
51
|
-
* @return React element.
|
|
52
|
-
*/
|
|
53
|
-
declare const SkeletonRectangle: Comp<SkeletonRectangleProps, HTMLDivElement>;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Defines the props of the component.
|
|
57
|
-
*/
|
|
58
|
-
interface SkeletonTypographyProps extends GenericProps, HasTheme {
|
|
59
|
-
/** Typography variant. */
|
|
60
|
-
typography: TypographyInterface;
|
|
61
|
-
/** Width CSS property. */
|
|
62
|
-
width?: CSSProperties['width'];
|
|
63
|
-
/** The color of the skeleton. */
|
|
64
|
-
color?: ColorPalette;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* SkeletonTypography component.
|
|
68
|
-
*
|
|
69
|
-
* @param props Component props.
|
|
70
|
-
* @param ref Component ref.
|
|
71
|
-
* @return React element.
|
|
72
|
-
*/
|
|
73
|
-
declare const SkeletonTypography: Comp<SkeletonTypographyProps, HTMLDivElement>;
|
|
74
|
-
|
|
75
|
-
export { SkeletonCircleProps as S, SkeletonCircle as a, SkeletonRectangleVariant as b, SkeletonRectangleProps as c, SkeletonRectangle as d, SkeletonTypographyProps as e, SkeletonTypography as f };
|
package/_internal/e810c841.d.ts
DELETED
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { l as GenericProps, m as HasTheme, k as Comp, H as HorizontalAlignment } from './eca6d4dc.js';
|
|
3
|
-
import { I as IconButtonProps } from './2d770113.js';
|
|
4
|
-
import { O as Offset, P as Placement } from './599e250a.js';
|
|
5
|
-
import { T as TextFieldProps } from './0d154d73.js';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Defines the props of the component.
|
|
9
|
-
*/
|
|
10
|
-
interface AutocompleteProps extends GenericProps, HasTheme {
|
|
11
|
-
/**
|
|
12
|
-
* Whether the suggestions list should display anchored to the input or to the wrapper.
|
|
13
|
-
* @see {@link DropdownProps#anchorToInput}
|
|
14
|
-
*/
|
|
15
|
-
anchorToInput?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Props to pass to the clear button (minus those already set by the TextField props).
|
|
18
|
-
* If not specified, the button won't be displayed.
|
|
19
|
-
* @see {@link TextFieldProps#clearButtonProps}
|
|
20
|
-
*/
|
|
21
|
-
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
22
|
-
/**
|
|
23
|
-
* Reference to the <input> or <textarea> element.
|
|
24
|
-
* @see {@link TextFieldProps#inputRef}
|
|
25
|
-
*/
|
|
26
|
-
inputRef?: TextFieldProps['inputRef'];
|
|
27
|
-
/**
|
|
28
|
-
* The offset that will be applied to the Dropdown position.
|
|
29
|
-
* @see {@link DropdownProps#offset}
|
|
30
|
-
*/
|
|
31
|
-
offset?: Offset;
|
|
32
|
-
/**
|
|
33
|
-
* The preferred Dropdown location against the anchor element.
|
|
34
|
-
* @see {@link DropdownProps#placement}
|
|
35
|
-
*/
|
|
36
|
-
placement?: Placement;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the dropdown should fit to the anchor width or not.
|
|
39
|
-
* @see {@link DropdownProps#fitToAnchorWidth}
|
|
40
|
-
*/
|
|
41
|
-
fitToAnchorWidth?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* The error related to the component.
|
|
44
|
-
* @see {@link TextFieldProps#error}
|
|
45
|
-
*/
|
|
46
|
-
error?: string | ReactNode;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the text field is displayed with error style or not.
|
|
49
|
-
* @see {@link TextFieldProps#hasError}
|
|
50
|
-
*/
|
|
51
|
-
hasError?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Whether the text box should be focused upon closing the suggestions or not.
|
|
54
|
-
*/
|
|
55
|
-
shouldFocusOnClose?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* The helper message of the text field.
|
|
58
|
-
* @see {@link TextFieldProps#helper}
|
|
59
|
-
*/
|
|
60
|
-
helper?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The icon of the text field (SVG path).
|
|
63
|
-
* @see {@link TextFieldProps#icon}
|
|
64
|
-
*/
|
|
65
|
-
icon?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Whether the component is disabled or not.
|
|
68
|
-
* @see {@link TextFieldProps#isDisabled}
|
|
69
|
-
*/
|
|
70
|
-
isDisabled?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Whether the component is required or not.
|
|
73
|
-
* @see {@link TextFieldProps#isRequired}
|
|
74
|
-
*/
|
|
75
|
-
isRequired?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Whether the text field is displayed with valid style or not.
|
|
78
|
-
* @see {@link TextFieldProps#isValid}
|
|
79
|
-
*/
|
|
80
|
-
isValid?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* The label of the text field displayed in a label tag.
|
|
83
|
-
* @see {@link TextFieldProps#label}
|
|
84
|
-
*/
|
|
85
|
-
label?: string;
|
|
86
|
-
/**
|
|
87
|
-
* The placeholder message of the text field.
|
|
88
|
-
* @see {@link TextFieldProps#placeholder}
|
|
89
|
-
*/
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
/** List of suggestions to display during autocomplete. */
|
|
92
|
-
children: React.ReactNode;
|
|
93
|
-
/**
|
|
94
|
-
* The list of chips to be displayed before the text field input.
|
|
95
|
-
*/
|
|
96
|
-
chips?: React.ReactNode;
|
|
97
|
-
/**
|
|
98
|
-
* The value of the text field.
|
|
99
|
-
* @see {@link TextFieldProps#value}
|
|
100
|
-
*/
|
|
101
|
-
value: string;
|
|
102
|
-
/**
|
|
103
|
-
* Whether the suggestions from the autocomplete should be displayed or not.
|
|
104
|
-
* @see {@link DropdownProps#isOpen}
|
|
105
|
-
*/
|
|
106
|
-
isOpen: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* The native input name property.
|
|
109
|
-
* @see {@link TextFieldProps#name}
|
|
110
|
-
*/
|
|
111
|
-
name?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Whether a click in the Autocomplete dropdown would close it or not.
|
|
114
|
-
* @see {@link DropdownProps#closeOnClick}
|
|
115
|
-
*/
|
|
116
|
-
closeOnClick?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Whether a click anywhere out of the Autocomplete would close it or not.
|
|
119
|
-
* @see {@link DropdownProps#closeOnClickAway}
|
|
120
|
-
*/
|
|
121
|
-
closeOnClickAway?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Whether an escape key press would close the Autocomplete or not.
|
|
124
|
-
* @see {@link DropdownProps#closeOnEscape}
|
|
125
|
-
*/
|
|
126
|
-
closeOnEscape?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* The function called on blur.
|
|
129
|
-
* @see {@link TextFieldProps#onBlur}
|
|
130
|
-
*/
|
|
131
|
-
onBlur?(event: React.FocusEvent): void;
|
|
132
|
-
/**
|
|
133
|
-
* On change callback.
|
|
134
|
-
* @see {@link TextFieldProps#onChange}
|
|
135
|
-
*/
|
|
136
|
-
onChange(value: string, name?: string, event?: SyntheticEvent): void;
|
|
137
|
-
/**
|
|
138
|
-
* The function called on close.
|
|
139
|
-
* @see {@link DropdownProps#onClose}
|
|
140
|
-
*/
|
|
141
|
-
onClose?(): void;
|
|
142
|
-
/**
|
|
143
|
-
* The function called on focus.
|
|
144
|
-
* @see {@link TextFieldProps#onFocus}
|
|
145
|
-
*/
|
|
146
|
-
onFocus?(event: React.FocusEvent): void;
|
|
147
|
-
/**
|
|
148
|
-
* The function called when the bottom of the dropdown is reached.
|
|
149
|
-
* @see {@link DropdownProps#onInfiniteScroll}
|
|
150
|
-
*/
|
|
151
|
-
onInfiniteScroll?(): void;
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Autocomplete component.
|
|
155
|
-
*
|
|
156
|
-
* @param props Component props.
|
|
157
|
-
* @param ref Component ref.
|
|
158
|
-
* @return React element.
|
|
159
|
-
*/
|
|
160
|
-
declare const Autocomplete: Comp<AutocompleteProps, HTMLDivElement>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Defines the props of the component.
|
|
164
|
-
*/
|
|
165
|
-
interface AutocompleteMultipleProps extends AutocompleteProps {
|
|
166
|
-
/** Selected values. */
|
|
167
|
-
values: any[];
|
|
168
|
-
/** Alignment of the chips in the autocomplete. */
|
|
169
|
-
chipsAlignment?: HorizontalAlignment;
|
|
170
|
-
/** Selected value render function. Default: Renders the value inside of a Chip. */
|
|
171
|
-
selectedChipRender(choice: any, index: number, onClear?: (event: React.MouseEvent, choice: any) => void, isDisabled?: boolean): ReactNode | string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* AutocompleteMultiple component.
|
|
175
|
-
*
|
|
176
|
-
* @param props Component props.
|
|
177
|
-
* @param ref Component ref.
|
|
178
|
-
* @return React element.
|
|
179
|
-
*/
|
|
180
|
-
declare const AutocompleteMultiple: Comp<AutocompleteMultipleProps, HTMLDivElement>;
|
|
181
|
-
|
|
182
|
-
export { AutocompleteProps as A, Autocomplete as a, AutocompleteMultipleProps as b, AutocompleteMultiple as c };
|
package/_internal/ea700b01.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, ReactElement, MouseEventHandler, KeyboardEventHandler } from 'react';
|
|
2
|
-
import { S as Size, l as GenericProps, m as HasTheme, k as Comp } from './eca6d4dc.js';
|
|
3
|
-
import { T as ThumbnailProps } from './3bd3186e.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Avatar sizes.
|
|
7
|
-
*/
|
|
8
|
-
declare type AvatarSize = Extract<Size, 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
9
|
-
/**
|
|
10
|
-
* Defines the props of the component.
|
|
11
|
-
*/
|
|
12
|
-
interface AvatarProps extends GenericProps, HasTheme {
|
|
13
|
-
/** Action toolbar content. */
|
|
14
|
-
actions?: ReactNode;
|
|
15
|
-
/** Image alternative text. */
|
|
16
|
-
alt: string;
|
|
17
|
-
/** Badge. */
|
|
18
|
-
badge?: ReactElement;
|
|
19
|
-
/** Image URL. */
|
|
20
|
-
image: string;
|
|
21
|
-
/** Props to pass to the link wrapping the thumbnail. */
|
|
22
|
-
linkProps?: React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
|
|
23
|
-
/** Custom react component for the link (can be used to inject react router Link). */
|
|
24
|
-
linkAs?: 'a' | any;
|
|
25
|
-
/** On click callback. */
|
|
26
|
-
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
27
|
-
/** On key press callback. */
|
|
28
|
-
onKeyPress?: KeyboardEventHandler<HTMLDivElement>;
|
|
29
|
-
/** Size variant. */
|
|
30
|
-
size?: AvatarSize;
|
|
31
|
-
/** Props to pass to the thumbnail (minus those already set by the Avatar props). */
|
|
32
|
-
thumbnailProps?: Omit<ThumbnailProps, 'image' | 'alt' | 'size' | 'theme' | 'align' | 'fillHeight' | 'variant' | 'aspectRatio'>;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Avatar component.
|
|
36
|
-
*
|
|
37
|
-
* @param props Component props.
|
|
38
|
-
* @param ref Component ref.
|
|
39
|
-
* @return React element.
|
|
40
|
-
*/
|
|
41
|
-
declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
42
|
-
|
|
43
|
-
export { AvatarSize as A, AvatarProps as a, Avatar as b };
|
package/_internal/eed07003.js
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { b as _objectWithoutProperties, a as _defineProperty, c as _extends, _ as _objectSpread2 } from './6340c129.js';
|
|
2
|
-
import { Size, Typography } from '../components.js';
|
|
3
|
-
import React, { forwardRef, useMemo } from 'react';
|
|
4
|
-
import { g as getRootClassName, c as classnames, h as handleBasicClasses } from './fd867c9d.js';
|
|
5
|
-
import { I as Icon } from './a521723d.js';
|
|
6
|
-
import isEmpty from 'lodash/isEmpty';
|
|
7
|
-
import { r as renderLink } from './329a01d3.js';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Component display name.
|
|
11
|
-
*/
|
|
12
|
-
var COMPONENT_NAME = 'Link';
|
|
13
|
-
/**
|
|
14
|
-
* Component default class name and class prefix.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
var CLASSNAME = getRootClassName(COMPONENT_NAME);
|
|
18
|
-
|
|
19
|
-
var getIconSize = function getIconSize(typography) {
|
|
20
|
-
switch (typography) {
|
|
21
|
-
case Typography.display1:
|
|
22
|
-
return Size.m;
|
|
23
|
-
|
|
24
|
-
case Typography.headline:
|
|
25
|
-
case Typography.title:
|
|
26
|
-
case Typography.custom.title1:
|
|
27
|
-
case Typography.custom.title2:
|
|
28
|
-
case Typography.custom.title3:
|
|
29
|
-
case Typography.custom.title4:
|
|
30
|
-
case Typography.custom.title5:
|
|
31
|
-
case Typography.custom.title6:
|
|
32
|
-
case Typography.body2:
|
|
33
|
-
case Typography.subtitle2:
|
|
34
|
-
return Size.s;
|
|
35
|
-
|
|
36
|
-
case Typography.body1:
|
|
37
|
-
case Typography.subtitle1:
|
|
38
|
-
return Size.xs;
|
|
39
|
-
|
|
40
|
-
case Typography.caption:
|
|
41
|
-
case Typography.overline:
|
|
42
|
-
return Size.xxs;
|
|
43
|
-
|
|
44
|
-
default:
|
|
45
|
-
return Size.s;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Link component.
|
|
50
|
-
*
|
|
51
|
-
* @param props Component props.
|
|
52
|
-
* @param ref Component ref.
|
|
53
|
-
* @return React element.
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var Link = forwardRef(function (props, ref) {
|
|
58
|
-
var children = props.children,
|
|
59
|
-
className = props.className,
|
|
60
|
-
color = props.color,
|
|
61
|
-
colorVariant = props.colorVariant,
|
|
62
|
-
disabled = props.disabled,
|
|
63
|
-
_props$isDisabled = props.isDisabled,
|
|
64
|
-
isDisabled = _props$isDisabled === void 0 ? disabled : _props$isDisabled,
|
|
65
|
-
href = props.href,
|
|
66
|
-
leftIcon = props.leftIcon,
|
|
67
|
-
linkAs = props.linkAs,
|
|
68
|
-
rightIcon = props.rightIcon,
|
|
69
|
-
target = props.target,
|
|
70
|
-
typography = props.typography,
|
|
71
|
-
forwardedProps = _objectWithoutProperties(props, ["children", "className", "color", "colorVariant", "disabled", "isDisabled", "href", "leftIcon", "linkAs", "rightIcon", "target", "typography"]);
|
|
72
|
-
|
|
73
|
-
var renderedChildren = useMemo(function () {
|
|
74
|
-
return React.createElement(React.Fragment, null, leftIcon && !isEmpty(leftIcon) && React.createElement(Icon, {
|
|
75
|
-
icon: leftIcon,
|
|
76
|
-
className: "".concat(CLASSNAME, "__left-icon"),
|
|
77
|
-
size: getIconSize(typography)
|
|
78
|
-
}), children && React.createElement("span", {
|
|
79
|
-
className: classnames("".concat(CLASSNAME, "__content"), _defineProperty({}, "lumx-typography-".concat(typography), typography))
|
|
80
|
-
}, children), rightIcon && !isEmpty(rightIcon) && React.createElement(Icon, {
|
|
81
|
-
icon: rightIcon,
|
|
82
|
-
className: "".concat(CLASSNAME, "__right-icon"),
|
|
83
|
-
size: getIconSize(typography)
|
|
84
|
-
}));
|
|
85
|
-
}, [leftIcon, typography, children, rightIcon]);
|
|
86
|
-
/**
|
|
87
|
-
* If there is no linkAs prop and no href, we returned a <button> instead of a <a>.
|
|
88
|
-
* If the component is disabled, we also returned a <button> since disabled is not compatible with <a>.
|
|
89
|
-
*/
|
|
90
|
-
|
|
91
|
-
if (!linkAs && isEmpty(href) || isDisabled) {
|
|
92
|
-
return React.createElement("button", _extends({
|
|
93
|
-
type: "button"
|
|
94
|
-
}, forwardedProps, {
|
|
95
|
-
ref: ref,
|
|
96
|
-
disabled: isDisabled,
|
|
97
|
-
className: classnames(className, handleBasicClasses({
|
|
98
|
-
prefix: CLASSNAME,
|
|
99
|
-
color: color,
|
|
100
|
-
colorVariant: colorVariant
|
|
101
|
-
}))
|
|
102
|
-
}), renderedChildren);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
return renderLink(_objectSpread2({
|
|
106
|
-
linkAs: linkAs
|
|
107
|
-
}, forwardedProps, {
|
|
108
|
-
href: href,
|
|
109
|
-
target: target,
|
|
110
|
-
className: classnames(className, handleBasicClasses({
|
|
111
|
-
prefix: CLASSNAME,
|
|
112
|
-
color: color,
|
|
113
|
-
colorVariant: colorVariant
|
|
114
|
-
})),
|
|
115
|
-
ref: ref
|
|
116
|
-
}), renderedChildren);
|
|
117
|
-
});
|
|
118
|
-
Link.displayName = COMPONENT_NAME;
|
|
119
|
-
Link.className = CLASSNAME;
|
|
120
|
-
|
|
121
|
-
export { Link as L };
|
|
122
|
-
//# sourceMappingURL=eed07003.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eed07003.js","sources":["../../src/components/link/Link.tsx"],"sourcesContent":["import React, { forwardRef, RefObject, useMemo } from 'react';\n\nimport isEmpty from 'lodash/isEmpty';\n\nimport classNames from 'classnames';\n\nimport { Color, ColorVariant, Icon, Size, Typography } from '@lumx/react';\nimport { Comp, GenericProps } from '@lumx/react/utils/type';\nimport { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';\nimport { renderLink } from '@lumx/react/utils/renderLink';\n\ntype HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;\n\n/**\n * Defines the props of the component.\n */\nexport interface LinkProps extends GenericProps {\n /** Color variant. */\n color?: Color;\n /** Lightened or darkened variant of the selected icon color. */\n colorVariant?: ColorVariant;\n /** Link href. */\n href?: HTMLAnchorProps['href'];\n /** Whether the component is disabled or not. */\n isDisabled?: boolean;\n /** Left icon (SVG path). */\n leftIcon?: string;\n /** Custom react component for the link (can be used to inject react router Link). */\n linkAs?: 'a' | any;\n /** Right icon (SVG path). */\n rightIcon?: string;\n /** Link target. */\n target?: HTMLAnchorProps['target'];\n /** Typography variant. */\n typography?: Typography;\n}\n\n/**\n * Component display name.\n */\nconst COMPONENT_NAME = 'Link';\n\n/**\n * Component default class name and class prefix.\n */\nconst CLASSNAME = getRootClassName(COMPONENT_NAME);\n\nconst getIconSize = (typography?: Typography) => {\n switch (typography) {\n case Typography.display1:\n return Size.m;\n\n case Typography.headline:\n case Typography.title:\n case Typography.custom.title1:\n case Typography.custom.title2:\n case Typography.custom.title3:\n case Typography.custom.title4:\n case Typography.custom.title5:\n case Typography.custom.title6:\n case Typography.body2:\n case Typography.subtitle2:\n return Size.s;\n\n case Typography.body1:\n case Typography.subtitle1:\n return Size.xs;\n\n case Typography.caption:\n case Typography.overline:\n return Size.xxs;\n\n default:\n return Size.s;\n }\n};\n\n/**\n * Link component.\n *\n * @param props Component props.\n * @param ref Component ref.\n * @return React element.\n */\nexport const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement> = forwardRef((props, ref) => {\n const {\n children,\n className,\n color,\n colorVariant,\n disabled,\n isDisabled = disabled,\n href,\n leftIcon,\n linkAs,\n rightIcon,\n target,\n typography,\n ...forwardedProps\n } = props;\n const renderedChildren = useMemo(\n () => (\n <>\n {leftIcon && !isEmpty(leftIcon) && (\n <Icon icon={leftIcon} className={`${CLASSNAME}__left-icon`} size={getIconSize(typography)} />\n )}\n\n {children && (\n <span\n className={classNames(`${CLASSNAME}__content`, {\n [`lumx-typography-${typography}`]: typography,\n })}\n >\n {children}\n </span>\n )}\n\n {rightIcon && !isEmpty(rightIcon) && (\n <Icon icon={rightIcon} className={`${CLASSNAME}__right-icon`} size={getIconSize(typography)} />\n )}\n </>\n ),\n [leftIcon, typography, children, rightIcon],\n );\n\n /**\n * If there is no linkAs prop and no href, we returned a <button> instead of a <a>.\n * If the component is disabled, we also returned a <button> since disabled is not compatible with <a>.\n */\n if ((!linkAs && isEmpty(href)) || isDisabled) {\n return (\n <button\n type=\"button\"\n {...forwardedProps}\n ref={ref as RefObject<HTMLButtonElement>}\n disabled={isDisabled}\n className={classNames(className, handleBasicClasses({ prefix: CLASSNAME, color, colorVariant }))}\n >\n {renderedChildren}\n </button>\n );\n }\n return renderLink(\n {\n linkAs,\n ...forwardedProps,\n href,\n target,\n className: classNames(className, handleBasicClasses({ prefix: CLASSNAME, color, colorVariant })),\n ref: ref as RefObject<HTMLAnchorElement>,\n },\n renderedChildren,\n );\n});\nLink.displayName = COMPONENT_NAME;\nLink.className = CLASSNAME;\n"],"names":["COMPONENT_NAME","CLASSNAME","getRootClassName","getIconSize","typography","Typography","display1","Size","m","headline","title","custom","title1","title2","title3","title4","title5","title6","body2","subtitle2","s","body1","subtitle1","xs","caption","overline","xxs","Link","forwardRef","props","ref","children","className","color","colorVariant","disabled","isDisabled","href","leftIcon","linkAs","rightIcon","target","forwardedProps","renderedChildren","useMemo","isEmpty","classNames","handleBasicClasses","prefix","renderLink","displayName"],"mappings":"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"}
|
package/_internal/f1c9b334.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { l as GenericProps, m as HasTheme, k as Comp } from './eca6d4dc.js';
|
|
2
|
-
import { T as ThumbnailProps } from './3bd3186e.js';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Defines the props of the component.
|
|
6
|
-
*/
|
|
7
|
-
interface MosaicProps extends GenericProps, HasTheme {
|
|
8
|
-
/** Thumbnails. */
|
|
9
|
-
thumbnails: ThumbnailProps[];
|
|
10
|
-
/** On image click callback. */
|
|
11
|
-
onImageClick?(index: number): void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Mosaic component.
|
|
15
|
-
*
|
|
16
|
-
* @param props Component props.
|
|
17
|
-
* @param ref Component ref.
|
|
18
|
-
* @return React element.
|
|
19
|
-
*/
|
|
20
|
-
declare const Mosaic: Comp<MosaicProps, HTMLDivElement>;
|
|
21
|
-
|
|
22
|
-
export { MosaicProps as M, Mosaic as a };
|