@lumx/core 3.21.1-alpha.0 → 3.21.2-alpha.0

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