@lumx/core 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. package/{dist/CONTRIBUTING.md → CONTRIBUTING.md} +0 -0
  2. package/{dist/LICENSE.md → LICENSE.md} +0 -0
  3. package/{dist/css → css}/_retro-compat-v2.css +0 -0
  4. package/{dist/css → css}/design-tokens.css +0 -0
  5. package/{dist/css → css}/material.css +0 -0
  6. package/{dist/js → js}/constants/design-tokens.js +0 -0
  7. package/{dist/js → js}/constants/design-tokens.min.js +0 -0
  8. package/{dist/js → js}/constants/design-tokens.min.js.map +0 -0
  9. package/{dist/js → js}/constants/design-tokens.ts +0 -0
  10. package/{dist/js → js}/constants/index.js +0 -0
  11. package/{dist/js → js}/constants/index.min.js +0 -0
  12. package/{dist/js → js}/constants/index.min.js.map +0 -0
  13. package/{dist/js → js}/constants/index.ts +0 -0
  14. package/{dist/js → js}/constants/keycodes.js +0 -0
  15. package/{dist/js → js}/constants/keycodes.min.js +0 -0
  16. package/{dist/js → js}/constants/keycodes.min.js.map +0 -0
  17. package/{dist/js → js}/constants/keycodes.ts +0 -0
  18. package/{dist/js → js}/custom-colors.js +0 -0
  19. package/{dist/js → js}/custom-colors.min.js +0 -0
  20. package/js/custom-colors.min.js.map +1 -0
  21. package/{dist/js → js}/custom-colors.ts +0 -0
  22. package/{dist/js → js}/date-picker.js +0 -0
  23. package/{dist/js → js}/date-picker.min.js +0 -0
  24. package/js/date-picker.min.js.map +1 -0
  25. package/{dist/js → js}/date-picker.ts +0 -0
  26. package/{dist/js → js}/utils.js +0 -0
  27. package/{dist/js → js}/utils.min.js +0 -0
  28. package/js/utils.min.js.map +1 -0
  29. package/{dist/js → js}/utils.ts +0 -0
  30. package/{dist/lumx.css → lumx.css} +1 -1
  31. package/{dist/lumx.min.css → lumx.min.css} +1 -1
  32. package/package.json +1 -1
  33. package/{dist/scss → scss}/_components.scss +0 -0
  34. package/{dist/scss → scss}/_core.scss +0 -0
  35. package/{dist/scss → scss}/_design-tokens.scss +0 -0
  36. package/{dist/scss → scss}/_retro-compat-v2.scss +0 -0
  37. package/{dist/scss → scss}/components/avatar/_index.scss +0 -0
  38. package/{dist/scss → scss}/components/badge/_index.scss +0 -0
  39. package/{dist/scss → scss}/components/button/_index.scss +0 -0
  40. package/{dist/scss → scss}/components/button/_mixins.scss +0 -0
  41. package/{dist/scss → scss}/components/button/_variables.scss +0 -0
  42. package/{dist/scss → scss}/components/checkbox/_index.scss +0 -0
  43. package/{dist/scss → scss}/components/checkbox/_mixins.scss +0 -0
  44. package/{dist/scss → scss}/components/chip/_index.scss +0 -0
  45. package/{dist/scss → scss}/components/chip/_mixins.scss +0 -0
  46. package/{dist/scss → scss}/components/chip/_variables.scss +0 -0
  47. package/{dist/scss → scss}/components/comment-block/_index.scss +0 -0
  48. package/{dist/scss → scss}/components/date-picker/_index.scss +0 -0
  49. package/{dist/scss → scss}/components/dialog/_index.scss +0 -0
  50. package/{dist/scss → scss}/components/dialog/_variables.scss +0 -0
  51. package/{dist/scss → scss}/components/divider/_index.scss +0 -0
  52. package/{dist/scss → scss}/components/divider/_mixins.scss +0 -0
  53. package/{dist/scss → scss}/components/divider/_variables.scss +0 -0
  54. package/{dist/scss → scss}/components/drag-handle/_index.scss +0 -0
  55. package/{dist/scss → scss}/components/dropdown/_index.scss +0 -0
  56. package/{dist/scss → scss}/components/expansion-panel/_index.scss +0 -0
  57. package/{dist/scss → scss}/components/expansion-panel/_variables.scss +0 -0
  58. package/{dist/scss → scss}/components/flag/_index.scss +0 -0
  59. package/{dist/scss → scss}/components/flex-box/_index.scss +0 -0
  60. package/{dist/scss → scss}/components/generic-block/_index.scss +0 -0
  61. package/{dist/scss → scss}/components/grid/_index.scss +0 -0
  62. package/{dist/scss → scss}/components/grid-column/_index.scss +0 -0
  63. package/{dist/scss → scss}/components/icon/_index.scss +0 -0
  64. package/{dist/scss → scss}/components/icon/_mixins.scss +0 -0
  65. package/{dist/scss → scss}/components/icon/_variables.scss +0 -0
  66. package/{dist/scss → scss}/components/image-block/_index.scss +0 -0
  67. package/{dist/scss → scss}/components/inline-list/_index.scss +0 -0
  68. package/{dist/scss → scss}/components/input-helper/_index.scss +0 -0
  69. package/{dist/scss → scss}/components/input-helper/_mixins.scss +0 -0
  70. package/{dist/scss → scss}/components/input-helper/_variables.scss +0 -0
  71. package/{dist/scss → scss}/components/input-label/_index.scss +0 -0
  72. package/{dist/scss → scss}/components/input-label/_mixins.scss +0 -0
  73. package/{dist/scss → scss}/components/lightbox/_index.scss +0 -0
  74. package/{dist/scss → scss}/components/lightbox/_variables.scss +0 -0
  75. package/{dist/scss → scss}/components/link/_index.scss +0 -0
  76. package/{dist/scss → scss}/components/link/_mixins.scss +0 -0
  77. package/{dist/scss → scss}/components/link-preview/_index.scss +0 -0
  78. package/{dist/scss → scss}/components/list/_index.scss +0 -0
  79. package/{dist/scss → scss}/components/list/_mixins.scss +0 -0
  80. package/{dist/scss → scss}/components/list/_variables.scss +0 -0
  81. package/{dist/scss → scss}/components/message/_index.scss +0 -0
  82. package/{dist/scss → scss}/components/mosaic/_index.scss +0 -0
  83. package/{dist/scss → scss}/components/notification/_index.scss +0 -0
  84. package/{dist/scss → scss}/components/notification/_variables.scss +0 -0
  85. package/{dist/scss → scss}/components/notification-block/_index.scss +0 -0
  86. package/{dist/scss → scss}/components/popover/_index.scss +0 -0
  87. package/{dist/scss → scss}/components/popover/_variables.scss +0 -0
  88. package/{dist/scss → scss}/components/post-block/_index.scss +0 -0
  89. package/{dist/scss → scss}/components/progress/_index.scss +0 -0
  90. package/{dist/scss → scss}/components/progress/_variables.scss +0 -0
  91. package/{dist/scss → scss}/components/progress-tracker/_index.scss +0 -0
  92. package/{dist/scss → scss}/components/progress-tracker/_variables.scss +0 -0
  93. package/{dist/scss → scss}/components/radio-button/_index.scss +0 -0
  94. package/{dist/scss → scss}/components/radio-button/_mixins.scss +0 -0
  95. package/{dist/scss → scss}/components/select/_index.scss +0 -0
  96. package/{dist/scss → scss}/components/select/_mixins.scss +0 -0
  97. package/{dist/scss → scss}/components/side-navigation/_index.scss +0 -0
  98. package/{dist/scss → scss}/components/side-navigation/_mixins.scss +0 -0
  99. package/{dist/scss → scss}/components/skeleton/_index.scss +0 -0
  100. package/{dist/scss → scss}/components/skeleton/_mixins.scss +0 -0
  101. package/{dist/scss → scss}/components/slider/_index.scss +0 -0
  102. package/{dist/scss → scss}/components/slideshow/_index.scss +0 -0
  103. package/{dist/scss → scss}/components/slideshow/_variables.scss +0 -0
  104. package/{dist/scss → scss}/components/switch/_index.scss +0 -0
  105. package/{dist/scss → scss}/components/switch/_mixins.scss +0 -0
  106. package/{dist/scss → scss}/components/table/_index.scss +0 -0
  107. package/{dist/scss → scss}/components/table/_mixins.scss +0 -0
  108. package/{src/scss → scss}/components/tabs/_index.scss +5 -1
  109. package/{dist/scss → scss}/components/tabs/_mixins.scss +0 -0
  110. package/{dist/scss → scss}/components/text/_index.scss +0 -0
  111. package/{dist/scss → scss}/components/text-field/_index.scss +0 -0
  112. package/{dist/scss → scss}/components/text-field/_mixins.scss +0 -0
  113. package/{dist/scss → scss}/components/text-field/_variables.scss +0 -0
  114. package/{dist/scss → scss}/components/thumbnail/_index.scss +0 -0
  115. package/{dist/scss → scss}/components/thumbnail/_variables.scss +0 -0
  116. package/{dist/scss → scss}/components/toolbar/_index.scss +0 -0
  117. package/{dist/scss → scss}/components/toolbar/_variables.scss +0 -0
  118. package/{dist/scss → scss}/components/tooltip/_index.scss +0 -0
  119. package/{dist/scss → scss}/components/tooltip/_variables.scss +0 -0
  120. package/{dist/scss → scss}/components/uploader/_index.scss +0 -0
  121. package/{dist/scss → scss}/components/user-block/_index.scss +0 -0
  122. package/{dist/scss → scss}/core/base/_functions.scss +0 -0
  123. package/{dist/scss → scss}/core/base/_helpers.scss +0 -0
  124. package/{dist/scss → scss}/core/base/_index.scss +0 -0
  125. package/{dist/scss → scss}/core/base/_normalize.scss +0 -0
  126. package/{dist/scss → scss}/core/base/_variables.scss +0 -0
  127. package/{dist/scss → scss}/core/color/_functions.scss +0 -0
  128. package/{dist/scss → scss}/core/color/_index.scss +0 -0
  129. package/{dist/scss → scss}/core/color/_variables.scss +0 -0
  130. package/{dist/scss → scss}/core/elevation/_mixins.scss +0 -0
  131. package/{dist/scss → scss}/core/elevation/_variables.scss +0 -0
  132. package/{dist/scss → scss}/core/size/_variables.scss +0 -0
  133. package/{dist/scss → scss}/core/spacing/_index.scss +0 -0
  134. package/{dist/scss → scss}/core/spacing/_variables.scss +0 -0
  135. package/{dist/scss → scss}/core/state/_mixins.scss +0 -0
  136. package/{dist/scss → scss}/core/state/_variables.scss +0 -0
  137. package/{dist/scss → scss}/core/typography/_index.scss +0 -0
  138. package/{dist/scss → scss}/core/typography/_mixins.scss +0 -0
  139. package/{dist/scss → scss}/core/typography/_variables.scss +0 -0
  140. package/{dist/scss → scss}/lumx.scss +0 -0
  141. package/dist/js/custom-colors.min.js.map +0 -1
  142. package/dist/js/date-picker.min.js.map +0 -1
  143. package/dist/js/utils.min.js.map +0 -1
  144. package/dist/package.json +0 -81
  145. package/dist/scss/components/tabs/_index.scss +0 -111
  146. package/src/css/_retro-compat-v2.css +0 -117
  147. package/src/css/design-tokens.css +0 -544
  148. package/src/css/material.css +0 -62
  149. package/src/js/constants/design-tokens.ts +0 -2157
  150. package/src/js/constants/index.ts +0 -35
  151. package/src/js/constants/keycodes.ts +0 -44
  152. package/src/js/custom-colors.ts +0 -56
  153. package/src/js/date-picker.ts +0 -71
  154. package/src/js/utils.ts +0 -296
  155. package/src/scss/_components.scss +0 -35
  156. package/src/scss/_core.scss +0 -12
  157. package/src/scss/_design-tokens.scss +0 -1667
  158. package/src/scss/_retro-compat-v2.scss +0 -95
  159. package/src/scss/components/avatar/_index.scss +0 -42
  160. package/src/scss/components/badge/_index.scss +0 -47
  161. package/src/scss/components/button/_index.scss +0 -166
  162. package/src/scss/components/button/_mixins.scss +0 -271
  163. package/src/scss/components/button/_variables.scss +0 -6
  164. package/src/scss/components/checkbox/_index.scss +0 -231
  165. package/src/scss/components/checkbox/_mixins.scss +0 -69
  166. package/src/scss/components/chip/_index.scss +0 -156
  167. package/src/scss/components/chip/_mixins.scss +0 -37
  168. package/src/scss/components/chip/_variables.scss +0 -1
  169. package/src/scss/components/comment-block/_index.scss +0 -170
  170. package/src/scss/components/date-picker/_index.scss +0 -67
  171. package/src/scss/components/dialog/_index.scss +0 -169
  172. package/src/scss/components/dialog/_variables.scss +0 -8
  173. package/src/scss/components/divider/_index.scss +0 -39
  174. package/src/scss/components/divider/_mixins.scss +0 -60
  175. package/src/scss/components/divider/_variables.scss +0 -7
  176. package/src/scss/components/drag-handle/_index.scss +0 -7
  177. package/src/scss/components/dropdown/_index.scss +0 -22
  178. package/src/scss/components/expansion-panel/_index.scss +0 -80
  179. package/src/scss/components/expansion-panel/_variables.scss +0 -2
  180. package/src/scss/components/flag/_index.scss +0 -41
  181. package/src/scss/components/flex-box/_index.scss +0 -132
  182. package/src/scss/components/generic-block/_index.scss +0 -11
  183. package/src/scss/components/grid/_index.scss +0 -147
  184. package/src/scss/components/grid-column/_index.scss +0 -18
  185. package/src/scss/components/icon/_index.scss +0 -106
  186. package/src/scss/components/icon/_mixins.scss +0 -42
  187. package/src/scss/components/icon/_variables.scss +0 -6
  188. package/src/scss/components/image-block/_index.scss +0 -108
  189. package/src/scss/components/inline-list/_index.scss +0 -15
  190. package/src/scss/components/input-helper/_index.scss +0 -27
  191. package/src/scss/components/input-helper/_mixins.scss +0 -12
  192. package/src/scss/components/input-helper/_variables.scss +0 -1
  193. package/src/scss/components/input-label/_index.scss +0 -23
  194. package/src/scss/components/input-label/_mixins.scss +0 -12
  195. package/src/scss/components/lightbox/_index.scss +0 -59
  196. package/src/scss/components/lightbox/_variables.scss +0 -1
  197. package/src/scss/components/link/_index.scss +0 -35
  198. package/src/scss/components/link/_mixins.scss +0 -25
  199. package/src/scss/components/link-preview/_index.scss +0 -95
  200. package/src/scss/components/list/_index.scss +0 -96
  201. package/src/scss/components/list/_mixins.scss +0 -128
  202. package/src/scss/components/list/_variables.scss +0 -7
  203. package/src/scss/components/message/_index.scss +0 -36
  204. package/src/scss/components/mosaic/_index.scss +0 -120
  205. package/src/scss/components/notification/_index.scss +0 -78
  206. package/src/scss/components/notification/_variables.scss +0 -3
  207. package/src/scss/components/notification-block/_index.scss +0 -42
  208. package/src/scss/components/popover/_index.scss +0 -64
  209. package/src/scss/components/popover/_variables.scss +0 -1
  210. package/src/scss/components/post-block/_index.scss +0 -101
  211. package/src/scss/components/progress/_index.scss +0 -190
  212. package/src/scss/components/progress/_variables.scss +0 -12
  213. package/src/scss/components/progress-tracker/_index.scss +0 -131
  214. package/src/scss/components/progress-tracker/_variables.scss +0 -2
  215. package/src/scss/components/radio-button/_index.scss +0 -180
  216. package/src/scss/components/radio-button/_mixins.scss +0 -82
  217. package/src/scss/components/select/_index.scss +0 -295
  218. package/src/scss/components/select/_mixins.scss +0 -36
  219. package/src/scss/components/side-navigation/_index.scss +0 -69
  220. package/src/scss/components/side-navigation/_mixins.scss +0 -61
  221. package/src/scss/components/skeleton/_index.scss +0 -143
  222. package/src/scss/components/skeleton/_mixins.scss +0 -9
  223. package/src/scss/components/slider/_index.scss +0 -209
  224. package/src/scss/components/slideshow/_index.scss +0 -171
  225. package/src/scss/components/slideshow/_variables.scss +0 -1
  226. package/src/scss/components/switch/_index.scss +0 -257
  227. package/src/scss/components/switch/_mixins.scss +0 -77
  228. package/src/scss/components/table/_index.scss +0 -138
  229. package/src/scss/components/table/_mixins.scss +0 -115
  230. package/src/scss/components/tabs/_mixins.scss +0 -104
  231. package/src/scss/components/text/_index.scss +0 -29
  232. package/src/scss/components/text-field/_index.scss +0 -323
  233. package/src/scss/components/text-field/_mixins.scss +0 -149
  234. package/src/scss/components/text-field/_variables.scss +0 -2
  235. package/src/scss/components/thumbnail/_index.scss +0 -227
  236. package/src/scss/components/thumbnail/_variables.scss +0 -6
  237. package/src/scss/components/toolbar/_index.scss +0 -38
  238. package/src/scss/components/toolbar/_variables.scss +0 -1
  239. package/src/scss/components/tooltip/_index.scss +0 -91
  240. package/src/scss/components/tooltip/_variables.scss +0 -4
  241. package/src/scss/components/uploader/_index.scss +0 -115
  242. package/src/scss/components/user-block/_index.scss +0 -106
  243. package/src/scss/core/base/_functions.scss +0 -3
  244. package/src/scss/core/base/_helpers.scss +0 -21
  245. package/src/scss/core/base/_index.scss +0 -54
  246. package/src/scss/core/base/_normalize.scss +0 -353
  247. package/src/scss/core/base/_variables.scss +0 -39
  248. package/src/scss/core/color/_functions.scss +0 -7
  249. package/src/scss/core/color/_index.scss +0 -15
  250. package/src/scss/core/color/_variables.scss +0 -4
  251. package/src/scss/core/elevation/_mixins.scss +0 -10
  252. package/src/scss/core/elevation/_variables.scss +0 -7
  253. package/src/scss/core/size/_variables.scss +0 -3
  254. package/src/scss/core/spacing/_index.scss +0 -15
  255. package/src/scss/core/spacing/_variables.scss +0 -22
  256. package/src/scss/core/state/_mixins.scss +0 -127
  257. package/src/scss/core/state/_variables.scss +0 -1
  258. package/src/scss/core/typography/_index.scss +0 -16
  259. package/src/scss/core/typography/_mixins.scss +0 -25
  260. package/src/scss/core/typography/_variables.scss +0 -6
  261. package/src/scss/lumx.scss +0 -69
  262. package/style-dictionary/.eslintignore +0 -1
  263. package/style-dictionary/README.md +0 -19
  264. package/style-dictionary/config/_run.js +0 -12
  265. package/style-dictionary/config/_transform-group.js +0 -16
  266. package/style-dictionary/config/gen-css-variables.js +0 -25
  267. package/style-dictionary/config/gen-scss-variables.js +0 -65
  268. package/style-dictionary/config/gen-ts-variables.js +0 -52
  269. package/style-dictionary/config/utils/_color-attributes.js +0 -24
  270. package/style-dictionary/config/utils/_color-rgba-value.js +0 -22
  271. package/style-dictionary/config/utils/_css-prefer-variable.js +0 -24
  272. package/style-dictionary/config/utils/_genHeader.js +0 -3
  273. package/style-dictionary/config/utils/_lumx-variables.js +0 -12
  274. package/style-dictionary/config/utils/_pickFieldsInTree.js +0 -22
  275. package/style-dictionary/config/utils/_prettier-scss.js +0 -13
  276. package/style-dictionary/config/utils/_prettier-ts.js +0 -13
  277. package/style-dictionary/config/utils/_resolve-structure-alias.js +0 -76
  278. package/style-dictionary/index.js +0 -11
  279. package/style-dictionary/properties/components/button.json +0 -206
  280. package/style-dictionary/properties/components/material.json +0 -64
  281. package/style-dictionary/properties/components/navigation.json +0 -207
  282. package/style-dictionary/properties/components/tabs.json +0 -168
  283. package/style-dictionary/properties/components/text-field.json +0 -167
  284. package/style-dictionary/properties/core/border-radius.json +0 -3
  285. package/style-dictionary/properties/core/color.json +0 -421
  286. package/style-dictionary/properties/core/size.json +0 -11
  287. package/style-dictionary/properties/core/spacing.json +0 -11
  288. package/style-dictionary/properties/core/typography.json +0 -127
  289. package/tsconfig.json +0 -3
  290. package/webpack.config.js +0 -202
@@ -1,353 +0,0 @@
1
- /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
-
3
- /* Document
4
- ========================================================================== */
5
-
6
- /**
7
- * 1. Correct the line height in all browsers.
8
- * 2. Prevent adjustments of font size after orientation changes in iOS.
9
- */
10
-
11
- html {
12
- line-height: 1.15; /* 1 */
13
- -webkit-text-size-adjust: 100%; /* 2 */
14
- }
15
-
16
- /* Sections
17
- ========================================================================== */
18
-
19
- /**
20
- * Remove the margin in all browsers.
21
- */
22
-
23
- body {
24
- margin: 0;
25
- }
26
-
27
- /**
28
- * Render the `main` element consistently in IE.
29
- */
30
-
31
- main {
32
- display: block;
33
- }
34
-
35
- /**
36
- * Correct the font size and margin on `h1` elements within `section` and
37
- * `article` contexts in Chrome, Firefox, and Safari.
38
- */
39
-
40
- h1 {
41
- margin: 0.67em 0;
42
- font-size: 2em;
43
- }
44
-
45
- /* Grouping content
46
- ========================================================================== */
47
-
48
- /**
49
- * 1. Add the correct box sizing in Firefox.
50
- * 2. Show the overflow in Edge and IE.
51
- */
52
-
53
- hr {
54
- overflow: visible; /* 2 */
55
- height: 0; /* 1 */
56
- box-sizing: content-box; /* 1 */
57
- }
58
-
59
- /**
60
- * 1. Correct the inheritance and scaling of font size in all browsers.
61
- * 2. Correct the odd `em` font sizing in all browsers.
62
- */
63
-
64
- pre {
65
- /* stylelint-disable-next-line font-family-no-duplicate-names */
66
- font-family: monospace, monospace; /* 1 */
67
- font-size: 1em; /* 2 */
68
- }
69
-
70
- /* Text-level semantics
71
- ========================================================================== */
72
-
73
- /**
74
- * Remove the gray background on active links in IE 10.
75
- */
76
-
77
- a {
78
- background-color: transparent;
79
- }
80
-
81
- /**
82
- * 1. Remove the bottom border in Chrome 57-
83
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
84
- */
85
-
86
- abbr[title] {
87
- border-bottom: none; /* 1 */
88
- text-decoration: underline; /* 2 */
89
- text-decoration: underline dotted; /* 2 */
90
- }
91
-
92
- /**
93
- * Add the correct font weight in Chrome, Edge, and Safari.
94
- */
95
-
96
- b,
97
- strong {
98
- font-weight: bolder;
99
- }
100
-
101
- /**
102
- * 1. Correct the inheritance and scaling of font size in all browsers.
103
- * 2. Correct the odd `em` font sizing in all browsers.
104
- */
105
-
106
- code,
107
- kbd,
108
- samp {
109
- /* stylelint-disable-next-line font-family-no-duplicate-names */
110
- font-family: monospace, monospace; /* 1 */
111
- font-size: 1em; /* 2 */
112
- }
113
-
114
- /**
115
- * Add the correct font size in all browsers.
116
- */
117
-
118
- small {
119
- font-size: 80%;
120
- }
121
-
122
- /**
123
- * Prevent `sub` and `sup` elements from affecting the line height in
124
- * all browsers.
125
- */
126
-
127
- sub,
128
- sup {
129
- position: relative;
130
- font-size: 75%;
131
- line-height: 0;
132
- vertical-align: baseline;
133
- }
134
-
135
- sub {
136
- bottom: -0.25em;
137
- }
138
-
139
- sup {
140
- top: -0.5em;
141
- }
142
-
143
- /* Embedded content
144
- ========================================================================== */
145
-
146
- /**
147
- * Remove the border on images inside links in IE 10.
148
- */
149
-
150
- img {
151
- border-style: none;
152
- }
153
-
154
- /* Forms
155
- ========================================================================== */
156
-
157
- /**
158
- * 1. Change the font styles in all browsers.
159
- * 2. Remove the margin in Firefox and Safari.
160
- */
161
-
162
- button,
163
- input,
164
- optgroup,
165
- select,
166
- textarea {
167
- margin: 0; /* 2 */
168
- font-family: inherit; /* 1 */
169
- font-size: 100%; /* 1 */
170
- line-height: 1.15; /* 1 */
171
- }
172
-
173
- /**
174
- * Show the overflow in IE.
175
- * 1. Show the overflow in Edge.
176
- */
177
-
178
- button,
179
- input {
180
- /* 1 */
181
- overflow: visible;
182
- }
183
-
184
- /**
185
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
186
- * 1. Remove the inheritance of text transform in Firefox.
187
- */
188
-
189
- button,
190
- select {
191
- /* 1 */
192
- text-transform: none;
193
- }
194
-
195
- /**
196
- * Correct the inability to style clickable types in iOS and Safari.
197
- */
198
-
199
- button,
200
- [type='button'],
201
- [type='reset'],
202
- [type='submit'] {
203
- -webkit-appearance: button;
204
- }
205
-
206
- /**
207
- * Remove the inner border and padding in Firefox.
208
- */
209
-
210
- button::-moz-focus-inner,
211
- [type='button']::-moz-focus-inner,
212
- [type='reset']::-moz-focus-inner,
213
- [type='submit']::-moz-focus-inner {
214
- padding: 0;
215
- border-style: none;
216
- }
217
-
218
- /**
219
- * Restore the focus styles unset by the previous rule.
220
- */
221
-
222
- button:-moz-focusring,
223
- [type='button']:-moz-focusring,
224
- [type='reset']:-moz-focusring,
225
- [type='submit']:-moz-focusring {
226
- outline: 1px dotted ButtonText;
227
- }
228
-
229
- /**
230
- * Correct the padding in Firefox.
231
- */
232
-
233
- fieldset {
234
- padding: 0.35em 0.75em 0.625em;
235
- }
236
-
237
- /**
238
- * 1. Correct the text wrapping in Edge and IE.
239
- * 2. Correct the color inheritance from `fieldset` elements in IE.
240
- * 3. Remove the padding so developers are not caught out when they zero out
241
- * `fieldset` elements in all browsers.
242
- */
243
-
244
- legend {
245
- display: table; /* 1 */
246
- max-width: 100%; /* 1 */
247
- box-sizing: border-box; /* 1 */
248
- padding: 0; /* 3 */
249
- color: inherit; /* 2 */
250
- white-space: normal; /* 1 */
251
- }
252
-
253
- /**
254
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
255
- */
256
-
257
- progress {
258
- vertical-align: baseline;
259
- }
260
-
261
- /**
262
- * Remove the default vertical scrollbar in IE 10+.
263
- */
264
-
265
- textarea {
266
- overflow: auto;
267
- }
268
-
269
- /**
270
- * 1. Add the correct box sizing in IE 10.
271
- * 2. Remove the padding in IE 10.
272
- */
273
-
274
- [type='checkbox'],
275
- [type='radio'] {
276
- box-sizing: border-box; /* 1 */
277
- padding: 0; /* 2 */
278
- }
279
-
280
- /**
281
- * Correct the cursor style of increment and decrement buttons in Chrome.
282
- */
283
-
284
- [type='number']::-webkit-inner-spin-button,
285
- [type='number']::-webkit-outer-spin-button {
286
- height: auto;
287
- }
288
-
289
- /**
290
- * 1. Correct the odd appearance in Chrome and Safari.
291
- * 2. Correct the outline style in Safari.
292
- */
293
-
294
- [type='search'] {
295
- -webkit-appearance: textfield; /* 1 */
296
- outline-offset: -2px; /* 2 */
297
- }
298
-
299
- /**
300
- * Remove the inner padding in Chrome and Safari on macOS.
301
- */
302
-
303
- [type='search']::-webkit-search-decoration {
304
- -webkit-appearance: none;
305
- }
306
-
307
- /**
308
- * 1. Correct the inability to style clickable types in iOS and Safari.
309
- * 2. Change font properties to `inherit` in Safari.
310
- */
311
-
312
- ::-webkit-file-upload-button {
313
- -webkit-appearance: button; /* 1 */
314
- font: inherit; /* 2 */
315
- }
316
-
317
- /* Interactive
318
- ========================================================================== */
319
-
320
- /*
321
- * Add the correct display in Edge, IE 10+, and Firefox.
322
- */
323
-
324
- details {
325
- display: block;
326
- }
327
-
328
- /*
329
- * Add the correct display in all browsers.
330
- */
331
-
332
- summary {
333
- display: list-item;
334
- }
335
-
336
- /* Misc
337
- ========================================================================== */
338
-
339
- /**
340
- * Add the correct display in IE 10+.
341
- */
342
-
343
- template {
344
- display: none;
345
- }
346
-
347
- /**
348
- * Add the correct display in IE 10.
349
- */
350
-
351
- [hidden] {
352
- display: none;
353
- }
@@ -1,39 +0,0 @@
1
- $lumx-base-prefix: "lumx";
2
- $lumx-base-constants: (
3
- "emphasis": (
4
- "HIGH": "emphasis-high",
5
- "MEDIUM": "emphasis-medium",
6
- "LOW": "emphasis-low",
7
- "SELECTED": "emphasis-selected",
8
- ),
9
- "position": (
10
- "TOP": "position-top",
11
- "RIGHT": "position-right",
12
- "BOTTOM": "position-bottom",
13
- "LEFT": "position-left",
14
- "CENTER": "position-center",
15
- ),
16
- "size": (
17
- "XXS": "xxs",
18
- "XS": "xs",
19
- "S": "s",
20
- "M": "m",
21
- "L": "l",
22
- "XL": "xl",
23
- "XXL": "xxl",
24
- ),
25
- "state": (
26
- "DEFAULT": "state-default",
27
- "HOVER": "state-hover",
28
- "ACTIVE": "state-active",
29
- "FOCUS": "state-focus",
30
- ),
31
- "theme": (
32
- "LIGHT": "theme-light",
33
- "DARK": "theme-dark",
34
- ),
35
- );
36
- $lumx-base-layers: (
37
- "high": 999,
38
- "higher": 9999,
39
- );
@@ -1,7 +0,0 @@
1
- @function lumx-color-variant($color, $variant) {
2
- @if map-has-key($lumx-color-palette, $color) {
3
- @return var(--lumx-color-#{$color}-#{$variant});
4
- } @else {
5
- @return var(--lumx-color-dark-N);
6
- }
7
- }
@@ -1,15 +0,0 @@
1
- /* ==========================================================================
2
- Color (font & background)
3
- ========================================================================== */
4
-
5
- @each $color-key, $color in $lumx-color-palette {
6
- @each $color-variant in $lumx-color-variants {
7
- .#{$lumx-base-prefix}-color-background-#{$color-key}-#{$color-variant} {
8
- background-color: lumx-color-variant($color-key, $color-variant);
9
- }
10
-
11
- .#{$lumx-base-prefix}-color-font-#{$color-key}-#{$color-variant} {
12
- color: lumx-color-variant($color-key, $color-variant);
13
- }
14
- }
15
- }
@@ -1,4 +0,0 @@
1
- @use "sass:map";
2
-
3
- $lumx-color-palette: map.get($lumx-design-tokens, "color") !default;
4
- $lumx-color-variants: ("D2", "D1", "N", "L1", "L2", "L3", "L4", "L5", "L6");
@@ -1,10 +0,0 @@
1
- @use "sass:map";
2
- @use "sass:string";
3
-
4
- @mixin lumx-elevation($elevation, $variant: "L4") {
5
- @if $elevation == 0 {
6
- box-shadow: none;
7
- } @else {
8
- box-shadow: string.unquote(map.get($lumx-elevation-shadows, $elevation)) lumx-color-variant("dark", $variant);
9
- }
10
- }
@@ -1,7 +0,0 @@
1
- $lumx-elevation-shadows: (
2
- 1: "0 0 2px 0",
3
- 2: "0 1px 4px 0",
4
- 3: "0 2px 8px 0",
5
- 4: "0 4px 16px 0",
6
- 5: "0 8px 32px 0",
7
- );
@@ -1,3 +0,0 @@
1
- @use "sass:map";
2
-
3
- $lumx-sizes: map.get($lumx-design-tokens, "size");
@@ -1,15 +0,0 @@
1
- /* ==========================================================================
2
- Spacing
3
- ========================================================================== */
4
-
5
- @each $property-namespace, $property in $lumx-spacing-properties {
6
- @each $direction-namespace, $direction-rules in $lumx-spacing-directions {
7
- @each $size-namespace, $size in $lumx-spacing-sizes {
8
- .#{$lumx-base-prefix}-spacing-#{$property-namespace}#{$direction-namespace}#{$size-namespace} {
9
- @each $direction in $direction-rules {
10
- #{$property}#{$direction}: $size !important;
11
- }
12
- }
13
- }
14
- }
15
- }
@@ -1,22 +0,0 @@
1
- $lumx-spacing-unit: $lumx-spacing-unit-regular;
2
- $lumx-spacing-directions: (
3
- null: null,
4
- "-top": "-top",
5
- "-right": "-right",
6
- "-bottom": "-bottom",
7
- "-left": "-left",
8
- "-horizontal": "-left" "-right",
9
- "-vertical": "-top" "-bottom",
10
- );
11
- $lumx-spacing-properties: (
12
- "padding": "padding",
13
- "margin": "margin",
14
- );
15
- $lumx-spacing-sizes: (
16
- null: $lumx-spacing-unit-regular,
17
- "-tiny": $lumx-spacing-unit-tiny,
18
- "-regular": $lumx-spacing-unit-regular,
19
- "-big": $lumx-spacing-unit-big,
20
- "-huge": $lumx-spacing-unit-huge,
21
- "-none": 0,
22
- );
@@ -1,127 +0,0 @@
1
- @mixin lumx-state-high($state, $color, $theme) {
2
- @if $state == lumx-base-const("state", "DEFAULT") {
3
- @if $theme == lumx-base-const("theme", "LIGHT") {
4
- background-color: lumx-color-variant($color, "N");
5
-
6
- @if $color == "yellow" {
7
- color: lumx-color-variant("dark", "L1");
8
- } @else {
9
- color: lumx-color-variant("light", "N");
10
- }
11
- } @else if $theme == lumx-base-const("theme", "DARK") {
12
- color: lumx-color-variant($color, "N");
13
- background-color: lumx-color-variant("light", "N");
14
- }
15
- } @else if $state == lumx-base-const("state", "HOVER") {
16
- @if $theme == lumx-base-const("theme", "LIGHT") {
17
- background-color: lumx-color-variant($color, "D1");
18
- } @else if $theme == lumx-base-const("theme", "DARK") {
19
- background-color: lumx-color-variant("light", "L1");
20
- }
21
- } @else if $state == lumx-base-const("state", "ACTIVE") {
22
- @if $theme == lumx-base-const("theme", "LIGHT") {
23
- background-color: lumx-color-variant($color, "D2");
24
- } @else if $theme == lumx-base-const("theme", "DARK") {
25
- background-color: lumx-color-variant("light", "L2");
26
- }
27
- } @else if $state == lumx-base-const("state", "FOCUS") {
28
- outline-offset: 2px;
29
-
30
- @if $theme == lumx-base-const("theme", "LIGHT") {
31
- outline: 2px solid lumx-color-variant("dark", "N");
32
- } @else if $theme == lumx-base-const("theme", "DARK") {
33
- outline: 2px solid lumx-color-variant("light", "N");
34
- }
35
- }
36
- }
37
-
38
- @mixin lumx-state-medium($state, $color) {
39
- @if $state == lumx-base-const("state", "DEFAULT") {
40
- background-color: lumx-color-variant($color, "L5");
41
-
42
- @if $color == "yellow" {
43
- color: lumx-color-variant("dark", "L1");
44
- } @else {
45
- color: lumx-color-variant($color, "N");
46
- }
47
- } @else if $state == lumx-base-const("state", "HOVER") {
48
- background-color: lumx-color-variant($color, "L4");
49
- } @else if $state == lumx-base-const("state", "ACTIVE") {
50
- background-color: lumx-color-variant($color, "L3");
51
- } @else if $state == lumx-base-const("state", "FOCUS") {
52
- outline: 2px solid lumx-color-variant($color, "N");
53
- outline-offset: 2px;
54
- }
55
- }
56
-
57
- @mixin lumx-state-as-selected($state, $theme) {
58
- @if $theme == lumx-base-const("theme", "LIGHT") {
59
- @if $state == lumx-base-const("state", "DEFAULT") {
60
- color: lumx-color-variant("primary", "D2");
61
- background-color: lumx-color-variant("primary", "L5");
62
- } @else if $state == lumx-base-const("state", "HOVER") {
63
- background-color: lumx-color-variant("primary", "L4");
64
- } @else if $state == lumx-base-const("state", "ACTIVE") {
65
- background-color: lumx-color-variant("primary", "L3");
66
- } @else if $state == lumx-base-const("state", "FOCUS") {
67
- outline: 2px solid lumx-color-variant("dark", "N");
68
- outline-offset: 2px;
69
- }
70
- } @else if $theme == lumx-base-const("theme", "DARK") {
71
- @if $state == lumx-base-const("state", "DEFAULT") {
72
- color: lumx-color-variant("light", "N");
73
- background-color: lumx-color-variant("light", "L3");
74
- } @else if $state == lumx-base-const("state", "HOVER") {
75
- background-color: lumx-color-variant("light", "L4");
76
- } @else if $state == lumx-base-const("state", "ACTIVE") {
77
- background-color: lumx-color-variant("light", "L5");
78
- } @else if $state == lumx-base-const("state", "FOCUS") {
79
- outline: 2px solid lumx-color-variant("light", "N");
80
- outline-offset: 2px;
81
- }
82
- }
83
- }
84
-
85
- @mixin lumx-state-low($state, $color) {
86
- @if $state == lumx-base-const("state", "DEFAULT") {
87
- color: lumx-color-variant($color, "N");
88
- background-color: transparent;
89
- } @else if $state == lumx-base-const("state", "HOVER") {
90
- background-color: lumx-color-variant($color, "L5");
91
- } @else if $state == lumx-base-const("state", "ACTIVE") {
92
- background-color: lumx-color-variant($color, "L4");
93
- } @else if $state == lumx-base-const("state", "FOCUS") {
94
- outline: 2px solid lumx-color-variant($color, "N");
95
- outline-offset: 2px;
96
- }
97
- }
98
-
99
- @mixin lumx-state-disabled-text($theme) {
100
- pointer-events: none;
101
-
102
- @if $theme == lumx-base-const("theme", "LIGHT") {
103
- color: lumx-color-variant("dark", "L3");
104
- } @else if $theme == lumx-base-const("theme", "DARK") {
105
- color: lumx-color-variant("light", "L3");
106
- }
107
- }
108
-
109
- @mixin lumx-state-disabled-input() {
110
- pointer-events: none;
111
- opacity: 0.5;
112
- }
113
-
114
- @mixin lumx-state($state, $emphasis, $color, $theme: null) {
115
- @if $emphasis == lumx-base-const("emphasis", "HIGH") {
116
- @include lumx-state-high($state, $color, $theme);
117
- } @else if $emphasis == lumx-base-const("emphasis", "MEDIUM") or $emphasis == lumx-base-const("emphasis", "SELECTED") {
118
- @include lumx-state-medium($state, $color);
119
- } @else if $emphasis == lumx-base-const("emphasis", "LOW") {
120
- @include lumx-state-low($state, $color);
121
- }
122
- }
123
-
124
- @mixin lumx-state-transition() {
125
- transition-duration: $lumx-state-transition-duration;
126
- transition-property: background-color, box-shadow, color;
127
- }
@@ -1 +0,0 @@
1
- $lumx-state-transition-duration: 150ms;
@@ -1,16 +0,0 @@
1
- /* ==========================================================================
2
- Typography
3
- ========================================================================== */
4
-
5
- @each $key, $style in $lumx-typography-interface {
6
- .#{$lumx-base-prefix}-typography-#{$key},
7
- .#{$lumx-base-prefix}-typography-interface-#{$key} {
8
- @include lumx-typography($key);
9
- }
10
- }
11
-
12
- @each $key, $style in $lumx-typography-custom {
13
- .#{$lumx-base-prefix}-typography-custom-#{$key} {
14
- @include lumx-typography($key, "custom");
15
- }
16
- }
@@ -1,25 +0,0 @@
1
- @use "sass:map";
2
-
3
- @mixin lumx-typography-base() {
4
- font-family: var(--lumx-typography-font-family);
5
- -moz-osx-font-smoothing: grayscale;
6
- -webkit-font-smoothing: antialiased;
7
- }
8
-
9
- @mixin lumx-typography($key, $type: "interface") {
10
- @if $type == "custom" {
11
- font-family: var(--lumx-typography-custom-#{$key}-font-family);
12
- font-size: var(--lumx-typography-custom-#{$key}-font-size);
13
- font-style: var(--lumx-typography-custom-#{$key}-font-style);
14
- font-weight: var(--lumx-typography-custom-#{$key}-font-weight);
15
- line-height: var(--lumx-typography-custom-#{$key}-line-height);
16
- } @else if $type == "interface" {
17
- font-size: map.get(map.get($lumx-typography-interface, $key), "font-size");
18
- font-weight: var(--lumx-typography-interface-#{$key}-font-weight);
19
- line-height: map.get(map.get($lumx-typography-interface, $key), "line-height");
20
- }
21
-
22
- @if $key == "overline" {
23
- text-transform: uppercase;
24
- }
25
- }
@@ -1,6 +0,0 @@
1
- @use "sass:map";
2
-
3
- $lumx-typography-default-font-size: 16px;
4
- $lumx-typography-default-line-height: 24px;
5
- $lumx-typography-interface: map.get(map.get($lumx-design-tokens, "typography"), "interface");
6
- $lumx-typography-custom: map.get(map.get($lumx-design-tokens, "typography"), "custom");