@lumx/core 3.20.1-alpha.44 → 3.20.1-alpha.46
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/js/constants/className/index.d.ts +4 -0
- package/js/constants/className/index.js +6 -0
- package/js/constants/components/index.d.ts +24 -0
- package/js/constants/components/index.js +26 -0
- package/js/constants/enums/index.d.ts +200 -0
- package/js/constants/enums/index.js +155 -0
- package/js/constants/index.d.ts +3 -231
- package/js/constants/index.js +4 -188
- package/js/utils/{color → _internal/color}/resolveColorWithVariants.d.ts +1 -1
- package/js/utils/className/color/index.js +2 -2
- package/js/utils/className/visually-hidden/index.js +2 -1
- package/js/utils/index.d.ts +0 -1
- package/js/utils/index.js +0 -1
- package/lumx.css +11 -11
- package/package.json +1 -1
- package/scss/components/text-field/_index.scss +4 -6
- package/js/constants/design-tokens.d.ts +0 -5421
- package/js/constants/design-tokens.js +0 -2325
- package/js/custom-colors.d.ts +0 -25
- package/js/custom-colors.js +0 -43
- package/js/types/Callback.js +0 -1
- package/js/types/Direction.js +0 -1
- package/js/types/Falsy.js +0 -1
- package/js/types/GenericProps.js +0 -1
- package/js/types/HasAriaLabelOrLabelledBy.js +0 -1
- package/js/types/HasClassName.js +0 -1
- package/js/types/HasCloseMode.js +0 -1
- package/js/types/HasTheme.js +0 -1
- package/js/types/HeadingElement.js +0 -1
- package/js/types/KebabCase.js +0 -1
- package/js/types/LumxClassName.js +0 -1
- package/js/types/Point.js +0 -1
- package/js/types/Predicate.js +0 -1
- package/js/types/RectSize.js +0 -1
- package/js/types/Spacing.js +0 -1
- package/js/types/TextElement.js +0 -1
- package/js/types/ValueOf.js +0 -1
- package/js/utils/color/index.js +0 -1
- package/js/utils/color/resolveColorWithVariants.js +0 -9
- /package/js/constants/{keycodes.d.ts → keycodes/index.d.ts} +0 -0
- /package/js/constants/{keycodes.js → keycodes/index.js} +0 -0
- /package/js/utils/{color → _internal/color}/index.d.ts +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
3
|
+
* you need to update their scss counterpart as well
|
|
4
|
+
*/
|
|
5
|
+
export declare const DIALOG_TRANSITION_DURATION = 400;
|
|
6
|
+
export declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
7
|
+
export declare const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
8
|
+
export declare const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
9
|
+
/**
|
|
10
|
+
* Delay on hover after which we open or close the tooltip.
|
|
11
|
+
* Only applies to devices supporting pointer hover.
|
|
12
|
+
*/
|
|
13
|
+
export declare const TOOLTIP_HOVER_DELAY: {
|
|
14
|
+
open: number;
|
|
15
|
+
close: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Delay on long press after which we open or close the tooltip.
|
|
19
|
+
* Only applies to devices not supporting pointer hover.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TOOLTIP_LONG_PRESS_DELAY: {
|
|
22
|
+
open: number;
|
|
23
|
+
close: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Animation duration constants. Take into consideration that if you change one of these variables,
|
|
3
|
+
* you need to update their scss counterpart as well
|
|
4
|
+
*/
|
|
5
|
+
const DIALOG_TRANSITION_DURATION = 400;
|
|
6
|
+
const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
7
|
+
const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
8
|
+
const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
9
|
+
/**
|
|
10
|
+
* Delay on hover after which we open or close the tooltip.
|
|
11
|
+
* Only applies to devices supporting pointer hover.
|
|
12
|
+
*/
|
|
13
|
+
const TOOLTIP_HOVER_DELAY = {
|
|
14
|
+
open: 500,
|
|
15
|
+
close: 500,
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Delay on long press after which we open or close the tooltip.
|
|
19
|
+
* Only applies to devices not supporting pointer hover.
|
|
20
|
+
*/
|
|
21
|
+
const TOOLTIP_LONG_PRESS_DELAY = {
|
|
22
|
+
open: 250,
|
|
23
|
+
close: 3000,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { DIALOG_TRANSITION_DURATION, EXPANSION_PANEL_TRANSITION_DURATION, NOTIFICATION_TRANSITION_DURATION, SLIDESHOW_TRANSITION_DURATION, TOOLTIP_HOVER_DELAY, TOOLTIP_LONG_PRESS_DELAY };
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import type { ValueOf } from '@lumx/core/js/types';
|
|
2
|
+
/**
|
|
3
|
+
* Alignments.
|
|
4
|
+
*/
|
|
5
|
+
export declare const Alignment: {
|
|
6
|
+
readonly bottom: "bottom";
|
|
7
|
+
readonly center: "center";
|
|
8
|
+
readonly end: "end";
|
|
9
|
+
readonly left: "left";
|
|
10
|
+
readonly right: "right";
|
|
11
|
+
readonly spaceAround: "space-around";
|
|
12
|
+
readonly spaceBetween: "space-between";
|
|
13
|
+
readonly spaceEvenly: "space-evenly";
|
|
14
|
+
readonly start: "start";
|
|
15
|
+
readonly top: "top";
|
|
16
|
+
};
|
|
17
|
+
export type Alignment = ValueOf<typeof Alignment>;
|
|
18
|
+
export type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
19
|
+
export type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
20
|
+
export declare const Theme: {
|
|
21
|
+
readonly light: "light";
|
|
22
|
+
readonly dark: "dark";
|
|
23
|
+
};
|
|
24
|
+
export type Theme = ValueOf<typeof Theme>;
|
|
25
|
+
export declare const Size: {
|
|
26
|
+
readonly xxs: "xxs";
|
|
27
|
+
readonly xs: "xs";
|
|
28
|
+
readonly s: "s";
|
|
29
|
+
readonly m: "m";
|
|
30
|
+
readonly l: "l";
|
|
31
|
+
readonly xl: "xl";
|
|
32
|
+
readonly xxl: "xxl";
|
|
33
|
+
readonly tiny: "tiny";
|
|
34
|
+
readonly regular: "regular";
|
|
35
|
+
readonly medium: "medium";
|
|
36
|
+
readonly big: "big";
|
|
37
|
+
readonly huge: "huge";
|
|
38
|
+
};
|
|
39
|
+
export type Size = ValueOf<typeof Size>;
|
|
40
|
+
export type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
41
|
+
export declare const Orientation: {
|
|
42
|
+
readonly horizontal: "horizontal";
|
|
43
|
+
readonly vertical: "vertical";
|
|
44
|
+
};
|
|
45
|
+
export type Orientation = ValueOf<typeof Orientation>;
|
|
46
|
+
export declare const Emphasis: {
|
|
47
|
+
readonly low: "low";
|
|
48
|
+
readonly medium: "medium";
|
|
49
|
+
readonly high: "high";
|
|
50
|
+
};
|
|
51
|
+
export type Emphasis = ValueOf<typeof Emphasis>;
|
|
52
|
+
/**
|
|
53
|
+
* List of typographies that can't be customized.
|
|
54
|
+
*/
|
|
55
|
+
export declare const TypographyInterface: {
|
|
56
|
+
readonly overline: "overline";
|
|
57
|
+
readonly caption: "caption";
|
|
58
|
+
readonly body1: "body1";
|
|
59
|
+
readonly body2: "body2";
|
|
60
|
+
readonly subtitle1: "subtitle1";
|
|
61
|
+
readonly subtitle2: "subtitle2";
|
|
62
|
+
readonly title: "title";
|
|
63
|
+
readonly headline: "headline";
|
|
64
|
+
readonly display1: "display1";
|
|
65
|
+
};
|
|
66
|
+
export type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
67
|
+
/**
|
|
68
|
+
* List of title typographies that can be customized (via CSS variables).
|
|
69
|
+
*/
|
|
70
|
+
export declare const TypographyTitleCustom: {
|
|
71
|
+
readonly title1: "custom-title1";
|
|
72
|
+
readonly title2: "custom-title2";
|
|
73
|
+
readonly title3: "custom-title3";
|
|
74
|
+
readonly title4: "custom-title4";
|
|
75
|
+
readonly title5: "custom-title5";
|
|
76
|
+
readonly title6: "custom-title6";
|
|
77
|
+
};
|
|
78
|
+
export type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;
|
|
79
|
+
/**
|
|
80
|
+
* List of typographies that can be customized (via CSS variables).
|
|
81
|
+
*/
|
|
82
|
+
export declare const TypographyCustom: {
|
|
83
|
+
readonly intro: "custom-intro";
|
|
84
|
+
readonly 'body-large': "custom-body-large";
|
|
85
|
+
readonly body: "custom-body";
|
|
86
|
+
readonly quote: "custom-quote";
|
|
87
|
+
readonly 'publish-info': "custom-publish-info";
|
|
88
|
+
readonly button: "custom-button";
|
|
89
|
+
readonly title1: "custom-title1";
|
|
90
|
+
readonly title2: "custom-title2";
|
|
91
|
+
readonly title3: "custom-title3";
|
|
92
|
+
readonly title4: "custom-title4";
|
|
93
|
+
readonly title5: "custom-title5";
|
|
94
|
+
readonly title6: "custom-title6";
|
|
95
|
+
};
|
|
96
|
+
export type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
97
|
+
/**
|
|
98
|
+
* List of all typographies.
|
|
99
|
+
*/
|
|
100
|
+
export declare const Typography: {
|
|
101
|
+
readonly custom: {
|
|
102
|
+
readonly intro: "custom-intro";
|
|
103
|
+
readonly 'body-large': "custom-body-large";
|
|
104
|
+
readonly body: "custom-body";
|
|
105
|
+
readonly quote: "custom-quote";
|
|
106
|
+
readonly 'publish-info': "custom-publish-info";
|
|
107
|
+
readonly button: "custom-button";
|
|
108
|
+
readonly title1: "custom-title1";
|
|
109
|
+
readonly title2: "custom-title2";
|
|
110
|
+
readonly title3: "custom-title3";
|
|
111
|
+
readonly title4: "custom-title4";
|
|
112
|
+
readonly title5: "custom-title5";
|
|
113
|
+
readonly title6: "custom-title6";
|
|
114
|
+
};
|
|
115
|
+
readonly overline: "overline";
|
|
116
|
+
readonly caption: "caption";
|
|
117
|
+
readonly body1: "body1";
|
|
118
|
+
readonly body2: "body2";
|
|
119
|
+
readonly subtitle1: "subtitle1";
|
|
120
|
+
readonly subtitle2: "subtitle2";
|
|
121
|
+
readonly title: "title";
|
|
122
|
+
readonly headline: "headline";
|
|
123
|
+
readonly display1: "display1";
|
|
124
|
+
};
|
|
125
|
+
export type Typography = TypographyInterface | TypographyCustom;
|
|
126
|
+
/**
|
|
127
|
+
* All available aspect ratios.
|
|
128
|
+
*/
|
|
129
|
+
export declare const AspectRatio: {
|
|
130
|
+
/** Intrinsic content ratio. */
|
|
131
|
+
readonly original: "original";
|
|
132
|
+
/** Ratio 3:1 */
|
|
133
|
+
readonly panoramic: "panoramic";
|
|
134
|
+
/** Ratio 16:9 */
|
|
135
|
+
readonly wide: "wide";
|
|
136
|
+
/** Ratio 3:2 */
|
|
137
|
+
readonly horizontal: "horizontal";
|
|
138
|
+
/** Ratio 3:2 */
|
|
139
|
+
readonly vertical: "vertical";
|
|
140
|
+
/** Ratio 1:1 */
|
|
141
|
+
readonly square: "square";
|
|
142
|
+
/** Ratio constrained by the parent. */
|
|
143
|
+
readonly free: "free";
|
|
144
|
+
};
|
|
145
|
+
export type AspectRatio = ValueOf<typeof AspectRatio>;
|
|
146
|
+
/**
|
|
147
|
+
* Semantic info about the purpose of the component
|
|
148
|
+
*/
|
|
149
|
+
export declare const Kind: {
|
|
150
|
+
readonly info: "info";
|
|
151
|
+
readonly success: "success";
|
|
152
|
+
readonly warning: "warning";
|
|
153
|
+
readonly error: "error";
|
|
154
|
+
};
|
|
155
|
+
export type Kind = ValueOf<typeof Kind>;
|
|
156
|
+
/**
|
|
157
|
+
* All available white-space values
|
|
158
|
+
* */
|
|
159
|
+
export declare const WhiteSpace: {
|
|
160
|
+
normal: string;
|
|
161
|
+
nowrap: string;
|
|
162
|
+
pre: string;
|
|
163
|
+
'pre-wrap': string;
|
|
164
|
+
'pre-line': string;
|
|
165
|
+
'break-spaces': string;
|
|
166
|
+
};
|
|
167
|
+
export type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
168
|
+
/**
|
|
169
|
+
* See SCSS variable $lumx-color-palette
|
|
170
|
+
*/
|
|
171
|
+
export declare const ColorPalette: {
|
|
172
|
+
readonly primary: "primary";
|
|
173
|
+
readonly secondary: "secondary";
|
|
174
|
+
readonly blue: "blue";
|
|
175
|
+
readonly dark: "dark";
|
|
176
|
+
readonly green: "green";
|
|
177
|
+
readonly yellow: "yellow";
|
|
178
|
+
readonly red: "red";
|
|
179
|
+
readonly light: "light";
|
|
180
|
+
readonly grey: "grey";
|
|
181
|
+
};
|
|
182
|
+
export type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
183
|
+
export type Color = ColorPalette | string;
|
|
184
|
+
/**
|
|
185
|
+
* See SCSS variable $lumx-color-variants
|
|
186
|
+
*/
|
|
187
|
+
export declare const ColorVariant: {
|
|
188
|
+
readonly D1: "D1";
|
|
189
|
+
readonly D2: "D2";
|
|
190
|
+
readonly L1: "L1";
|
|
191
|
+
readonly L2: "L2";
|
|
192
|
+
readonly L3: "L3";
|
|
193
|
+
readonly L4: "L4";
|
|
194
|
+
readonly L5: "L5";
|
|
195
|
+
readonly L6: "L6";
|
|
196
|
+
readonly N: "N";
|
|
197
|
+
};
|
|
198
|
+
export type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
199
|
+
/** ColorPalette with all possible color variant combination */
|
|
200
|
+
export type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alignments.
|
|
3
|
+
*/
|
|
4
|
+
const Alignment = {
|
|
5
|
+
bottom: 'bottom',
|
|
6
|
+
center: 'center',
|
|
7
|
+
end: 'end',
|
|
8
|
+
left: 'left',
|
|
9
|
+
right: 'right',
|
|
10
|
+
spaceAround: 'space-around',
|
|
11
|
+
spaceBetween: 'space-between',
|
|
12
|
+
spaceEvenly: 'space-evenly',
|
|
13
|
+
start: 'start',
|
|
14
|
+
top: 'top',
|
|
15
|
+
};
|
|
16
|
+
const Theme = {
|
|
17
|
+
light: 'light',
|
|
18
|
+
dark: 'dark',
|
|
19
|
+
};
|
|
20
|
+
const Size = {
|
|
21
|
+
xxs: 'xxs',
|
|
22
|
+
xs: 'xs',
|
|
23
|
+
s: 's',
|
|
24
|
+
m: 'm',
|
|
25
|
+
l: 'l',
|
|
26
|
+
xl: 'xl',
|
|
27
|
+
xxl: 'xxl',
|
|
28
|
+
tiny: 'tiny',
|
|
29
|
+
regular: 'regular',
|
|
30
|
+
medium: 'medium',
|
|
31
|
+
big: 'big',
|
|
32
|
+
huge: 'huge',
|
|
33
|
+
};
|
|
34
|
+
const Orientation = {
|
|
35
|
+
horizontal: 'horizontal',
|
|
36
|
+
vertical: 'vertical',
|
|
37
|
+
};
|
|
38
|
+
const Emphasis = {
|
|
39
|
+
low: 'low',
|
|
40
|
+
medium: 'medium',
|
|
41
|
+
high: 'high',
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* List of typographies that can't be customized.
|
|
45
|
+
*/
|
|
46
|
+
const TypographyInterface = {
|
|
47
|
+
overline: 'overline',
|
|
48
|
+
caption: 'caption',
|
|
49
|
+
body1: 'body1',
|
|
50
|
+
body2: 'body2',
|
|
51
|
+
subtitle1: 'subtitle1',
|
|
52
|
+
subtitle2: 'subtitle2',
|
|
53
|
+
title: 'title',
|
|
54
|
+
headline: 'headline',
|
|
55
|
+
display1: 'display1',
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* List of title typographies that can be customized (via CSS variables).
|
|
59
|
+
*/
|
|
60
|
+
const TypographyTitleCustom = {
|
|
61
|
+
title1: 'custom-title1',
|
|
62
|
+
title2: 'custom-title2',
|
|
63
|
+
title3: 'custom-title3',
|
|
64
|
+
title4: 'custom-title4',
|
|
65
|
+
title5: 'custom-title5',
|
|
66
|
+
title6: 'custom-title6',
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* List of typographies that can be customized (via CSS variables).
|
|
70
|
+
*/
|
|
71
|
+
const TypographyCustom = {
|
|
72
|
+
...TypographyTitleCustom,
|
|
73
|
+
intro: 'custom-intro',
|
|
74
|
+
'body-large': 'custom-body-large',
|
|
75
|
+
body: 'custom-body',
|
|
76
|
+
quote: 'custom-quote',
|
|
77
|
+
'publish-info': 'custom-publish-info',
|
|
78
|
+
button: 'custom-button',
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* List of all typographies.
|
|
82
|
+
*/
|
|
83
|
+
const Typography = {
|
|
84
|
+
...TypographyInterface,
|
|
85
|
+
custom: TypographyCustom,
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* All available aspect ratios.
|
|
89
|
+
*/
|
|
90
|
+
const AspectRatio = {
|
|
91
|
+
/** Intrinsic content ratio. */
|
|
92
|
+
original: 'original',
|
|
93
|
+
/** Ratio 3:1 */
|
|
94
|
+
panoramic: 'panoramic',
|
|
95
|
+
/** Ratio 16:9 */
|
|
96
|
+
wide: 'wide',
|
|
97
|
+
/** Ratio 3:2 */
|
|
98
|
+
horizontal: 'horizontal',
|
|
99
|
+
/** Ratio 3:2 */
|
|
100
|
+
vertical: 'vertical',
|
|
101
|
+
/** Ratio 1:1 */
|
|
102
|
+
square: 'square',
|
|
103
|
+
/** Ratio constrained by the parent. */
|
|
104
|
+
free: 'free',
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Semantic info about the purpose of the component
|
|
108
|
+
*/
|
|
109
|
+
const Kind = {
|
|
110
|
+
info: 'info',
|
|
111
|
+
success: 'success',
|
|
112
|
+
warning: 'warning',
|
|
113
|
+
error: 'error',
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* All available white-space values
|
|
117
|
+
* */
|
|
118
|
+
const WhiteSpace = {
|
|
119
|
+
normal: 'normal',
|
|
120
|
+
nowrap: 'nowrap',
|
|
121
|
+
pre: 'pre',
|
|
122
|
+
'pre-wrap': 'pre-wrap',
|
|
123
|
+
'pre-line': 'pre-line',
|
|
124
|
+
'break-spaces': 'break-spaces',
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* See SCSS variable $lumx-color-palette
|
|
128
|
+
*/
|
|
129
|
+
const ColorPalette = {
|
|
130
|
+
primary: 'primary',
|
|
131
|
+
secondary: 'secondary',
|
|
132
|
+
blue: 'blue',
|
|
133
|
+
dark: 'dark',
|
|
134
|
+
green: 'green',
|
|
135
|
+
yellow: 'yellow',
|
|
136
|
+
red: 'red',
|
|
137
|
+
light: 'light',
|
|
138
|
+
grey: 'grey',
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* See SCSS variable $lumx-color-variants
|
|
142
|
+
*/
|
|
143
|
+
const ColorVariant = {
|
|
144
|
+
D1: 'D1',
|
|
145
|
+
D2: 'D2',
|
|
146
|
+
L1: 'L1',
|
|
147
|
+
L2: 'L2',
|
|
148
|
+
L3: 'L3',
|
|
149
|
+
L4: 'L4',
|
|
150
|
+
L5: 'L5',
|
|
151
|
+
L6: 'L6',
|
|
152
|
+
N: 'N',
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export { Alignment, AspectRatio, ColorPalette, ColorVariant, Emphasis, Kind, Orientation, Size, Theme, Typography, TypographyCustom, TypographyInterface, TypographyTitleCustom, WhiteSpace };
|
package/js/constants/index.d.ts
CHANGED
|
@@ -1,232 +1,4 @@
|
|
|
1
|
-
import { ValueOf } from '../types/ValueOf';
|
|
2
|
-
/**
|
|
3
|
-
* Key codes.
|
|
4
|
-
*/
|
|
5
1
|
export * from './keycodes';
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export declare const DIALOG_TRANSITION_DURATION = 400;
|
|
11
|
-
export declare const EXPANSION_PANEL_TRANSITION_DURATION = 400;
|
|
12
|
-
export declare const NOTIFICATION_TRANSITION_DURATION = 200;
|
|
13
|
-
export declare const SLIDESHOW_TRANSITION_DURATION = 5000;
|
|
14
|
-
/**
|
|
15
|
-
* Delay on hover after which we open or close the tooltip.
|
|
16
|
-
* Only applies to devices supporting pointer hover.
|
|
17
|
-
*/
|
|
18
|
-
export declare const TOOLTIP_HOVER_DELAY: {
|
|
19
|
-
open: number;
|
|
20
|
-
close: number;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Delay on long press after which we open or close the tooltip.
|
|
24
|
-
* Only applies to devices not supporting pointer hover.
|
|
25
|
-
*/
|
|
26
|
-
export declare const TOOLTIP_LONG_PRESS_DELAY: {
|
|
27
|
-
open: number;
|
|
28
|
-
close: number;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Alignments.
|
|
32
|
-
*/
|
|
33
|
-
export declare const Alignment: {
|
|
34
|
-
readonly bottom: "bottom";
|
|
35
|
-
readonly center: "center";
|
|
36
|
-
readonly end: "end";
|
|
37
|
-
readonly left: "left";
|
|
38
|
-
readonly right: "right";
|
|
39
|
-
readonly spaceAround: "space-around";
|
|
40
|
-
readonly spaceBetween: "space-between";
|
|
41
|
-
readonly spaceEvenly: "space-evenly";
|
|
42
|
-
readonly start: "start";
|
|
43
|
-
readonly top: "top";
|
|
44
|
-
};
|
|
45
|
-
export type Alignment = ValueOf<typeof Alignment>;
|
|
46
|
-
export type VerticalAlignment = Extract<Alignment, 'top' | 'center' | 'bottom'>;
|
|
47
|
-
export type HorizontalAlignment = Extract<Alignment, 'right' | 'center' | 'left'>;
|
|
48
|
-
export declare const Theme: {
|
|
49
|
-
readonly light: "light";
|
|
50
|
-
readonly dark: "dark";
|
|
51
|
-
};
|
|
52
|
-
export type Theme = ValueOf<typeof Theme>;
|
|
53
|
-
export declare const Size: {
|
|
54
|
-
readonly xxs: "xxs";
|
|
55
|
-
readonly xs: "xs";
|
|
56
|
-
readonly s: "s";
|
|
57
|
-
readonly m: "m";
|
|
58
|
-
readonly l: "l";
|
|
59
|
-
readonly xl: "xl";
|
|
60
|
-
readonly xxl: "xxl";
|
|
61
|
-
readonly tiny: "tiny";
|
|
62
|
-
readonly regular: "regular";
|
|
63
|
-
readonly medium: "medium";
|
|
64
|
-
readonly big: "big";
|
|
65
|
-
readonly huge: "huge";
|
|
66
|
-
};
|
|
67
|
-
export type Size = ValueOf<typeof Size>;
|
|
68
|
-
export type GlobalSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
69
|
-
export declare const Orientation: {
|
|
70
|
-
readonly horizontal: "horizontal";
|
|
71
|
-
readonly vertical: "vertical";
|
|
72
|
-
};
|
|
73
|
-
export type Orientation = ValueOf<typeof Orientation>;
|
|
74
|
-
export declare const Emphasis: {
|
|
75
|
-
readonly low: "low";
|
|
76
|
-
readonly medium: "medium";
|
|
77
|
-
readonly high: "high";
|
|
78
|
-
};
|
|
79
|
-
export type Emphasis = ValueOf<typeof Emphasis>;
|
|
80
|
-
/**
|
|
81
|
-
* List of typographies that can't be customized.
|
|
82
|
-
*/
|
|
83
|
-
export declare const TypographyInterface: {
|
|
84
|
-
readonly overline: "overline";
|
|
85
|
-
readonly caption: "caption";
|
|
86
|
-
readonly body1: "body1";
|
|
87
|
-
readonly body2: "body2";
|
|
88
|
-
readonly subtitle1: "subtitle1";
|
|
89
|
-
readonly subtitle2: "subtitle2";
|
|
90
|
-
readonly title: "title";
|
|
91
|
-
readonly headline: "headline";
|
|
92
|
-
readonly display1: "display1";
|
|
93
|
-
};
|
|
94
|
-
export type TypographyInterface = ValueOf<typeof TypographyInterface>;
|
|
95
|
-
/**
|
|
96
|
-
* List of title typographies that can be customized (via CSS variables).
|
|
97
|
-
*/
|
|
98
|
-
export declare const TypographyTitleCustom: {
|
|
99
|
-
readonly title1: "custom-title1";
|
|
100
|
-
readonly title2: "custom-title2";
|
|
101
|
-
readonly title3: "custom-title3";
|
|
102
|
-
readonly title4: "custom-title4";
|
|
103
|
-
readonly title5: "custom-title5";
|
|
104
|
-
readonly title6: "custom-title6";
|
|
105
|
-
};
|
|
106
|
-
export type TypographyTitleCustom = ValueOf<typeof TypographyTitleCustom>;
|
|
107
|
-
/**
|
|
108
|
-
* List of typographies that can be customized (via CSS variables).
|
|
109
|
-
*/
|
|
110
|
-
export declare const TypographyCustom: {
|
|
111
|
-
readonly intro: "custom-intro";
|
|
112
|
-
readonly 'body-large': "custom-body-large";
|
|
113
|
-
readonly body: "custom-body";
|
|
114
|
-
readonly quote: "custom-quote";
|
|
115
|
-
readonly 'publish-info': "custom-publish-info";
|
|
116
|
-
readonly button: "custom-button";
|
|
117
|
-
readonly title1: "custom-title1";
|
|
118
|
-
readonly title2: "custom-title2";
|
|
119
|
-
readonly title3: "custom-title3";
|
|
120
|
-
readonly title4: "custom-title4";
|
|
121
|
-
readonly title5: "custom-title5";
|
|
122
|
-
readonly title6: "custom-title6";
|
|
123
|
-
};
|
|
124
|
-
export type TypographyCustom = ValueOf<typeof TypographyCustom>;
|
|
125
|
-
/**
|
|
126
|
-
* List of all typographies.
|
|
127
|
-
*/
|
|
128
|
-
export declare const Typography: {
|
|
129
|
-
readonly custom: {
|
|
130
|
-
readonly intro: "custom-intro";
|
|
131
|
-
readonly 'body-large': "custom-body-large";
|
|
132
|
-
readonly body: "custom-body";
|
|
133
|
-
readonly quote: "custom-quote";
|
|
134
|
-
readonly 'publish-info': "custom-publish-info";
|
|
135
|
-
readonly button: "custom-button";
|
|
136
|
-
readonly title1: "custom-title1";
|
|
137
|
-
readonly title2: "custom-title2";
|
|
138
|
-
readonly title3: "custom-title3";
|
|
139
|
-
readonly title4: "custom-title4";
|
|
140
|
-
readonly title5: "custom-title5";
|
|
141
|
-
readonly title6: "custom-title6";
|
|
142
|
-
};
|
|
143
|
-
readonly overline: "overline";
|
|
144
|
-
readonly caption: "caption";
|
|
145
|
-
readonly body1: "body1";
|
|
146
|
-
readonly body2: "body2";
|
|
147
|
-
readonly subtitle1: "subtitle1";
|
|
148
|
-
readonly subtitle2: "subtitle2";
|
|
149
|
-
readonly title: "title";
|
|
150
|
-
readonly headline: "headline";
|
|
151
|
-
readonly display1: "display1";
|
|
152
|
-
};
|
|
153
|
-
export type Typography = TypographyInterface | TypographyCustom;
|
|
154
|
-
/**
|
|
155
|
-
* All available aspect ratios.
|
|
156
|
-
*/
|
|
157
|
-
export declare const AspectRatio: {
|
|
158
|
-
/** Intrinsic content ratio. */
|
|
159
|
-
readonly original: "original";
|
|
160
|
-
/** Ratio 3:1 */
|
|
161
|
-
readonly panoramic: "panoramic";
|
|
162
|
-
/** Ratio 16:9 */
|
|
163
|
-
readonly wide: "wide";
|
|
164
|
-
/** Ratio 3:2 */
|
|
165
|
-
readonly horizontal: "horizontal";
|
|
166
|
-
/** Ratio 3:2 */
|
|
167
|
-
readonly vertical: "vertical";
|
|
168
|
-
/** Ratio 1:1 */
|
|
169
|
-
readonly square: "square";
|
|
170
|
-
/** Ratio constrained by the parent. */
|
|
171
|
-
readonly free: "free";
|
|
172
|
-
};
|
|
173
|
-
export type AspectRatio = ValueOf<typeof AspectRatio>;
|
|
174
|
-
/**
|
|
175
|
-
* Semantic info about the purpose of the component
|
|
176
|
-
*/
|
|
177
|
-
export declare const Kind: {
|
|
178
|
-
readonly info: "info";
|
|
179
|
-
readonly success: "success";
|
|
180
|
-
readonly warning: "warning";
|
|
181
|
-
readonly error: "error";
|
|
182
|
-
};
|
|
183
|
-
export type Kind = ValueOf<typeof Kind>;
|
|
184
|
-
/**
|
|
185
|
-
* All available white-space values
|
|
186
|
-
* */
|
|
187
|
-
export declare const WhiteSpace: {
|
|
188
|
-
normal: string;
|
|
189
|
-
nowrap: string;
|
|
190
|
-
pre: string;
|
|
191
|
-
'pre-wrap': string;
|
|
192
|
-
'pre-line': string;
|
|
193
|
-
'break-spaces': string;
|
|
194
|
-
};
|
|
195
|
-
export type WhiteSpace = ValueOf<typeof WhiteSpace>;
|
|
196
|
-
/**
|
|
197
|
-
* See SCSS variable $lumx-color-palette
|
|
198
|
-
*/
|
|
199
|
-
export declare const ColorPalette: {
|
|
200
|
-
readonly primary: "primary";
|
|
201
|
-
readonly secondary: "secondary";
|
|
202
|
-
readonly blue: "blue";
|
|
203
|
-
readonly dark: "dark";
|
|
204
|
-
readonly green: "green";
|
|
205
|
-
readonly yellow: "yellow";
|
|
206
|
-
readonly red: "red";
|
|
207
|
-
readonly light: "light";
|
|
208
|
-
readonly grey: "grey";
|
|
209
|
-
};
|
|
210
|
-
export type ColorPalette = ValueOf<typeof ColorPalette>;
|
|
211
|
-
export type Color = ColorPalette | string;
|
|
212
|
-
/**
|
|
213
|
-
* See SCSS variable $lumx-color-variants
|
|
214
|
-
*/
|
|
215
|
-
export declare const ColorVariant: {
|
|
216
|
-
readonly D1: "D1";
|
|
217
|
-
readonly D2: "D2";
|
|
218
|
-
readonly L1: "L1";
|
|
219
|
-
readonly L2: "L2";
|
|
220
|
-
readonly L3: "L3";
|
|
221
|
-
readonly L4: "L4";
|
|
222
|
-
readonly L5: "L5";
|
|
223
|
-
readonly L6: "L6";
|
|
224
|
-
readonly N: "N";
|
|
225
|
-
};
|
|
226
|
-
export type ColorVariant = ValueOf<typeof ColorVariant>;
|
|
227
|
-
/** ColorPalette with all possible color variant combination */
|
|
228
|
-
export type ColorWithVariants = ColorPalette | Exclude<`${ColorPalette}-${ColorVariant}`, `light-D${number}` | `dark-D${number}`>;
|
|
229
|
-
/**
|
|
230
|
-
* Visually hidden a11y utility class name
|
|
231
|
-
*/
|
|
232
|
-
export declare const VISUALLY_HIDDEN = "visually-hidden";
|
|
2
|
+
export * from './components';
|
|
3
|
+
export * from './enums';
|
|
4
|
+
export * from './className';
|