@esportsplus/ui 0.0.121 → 0.1.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 (237) hide show
  1. package/.editorconfig +9 -0
  2. package/.gitattributes +2 -0
  3. package/build/assets/0af89c10df9bc2f8d646.woff2 +0 -0
  4. package/build/assets/109e3207d9afea8524be.woff2 +0 -0
  5. package/build/assets/16663c3f6ab1da2d6c86.woff +0 -0
  6. package/build/assets/16e8721ef5837bc6375e.woff +0 -0
  7. package/build/assets/2a3e005f58bfca9c117e.woff +0 -0
  8. package/build/assets/58a8d7ebc386843b62c5.woff2 +0 -0
  9. package/build/assets/593de7c561e5ffe80c3e.woff2 +0 -0
  10. package/build/assets/68b7982c2b30b51bf932.woff2 +0 -0
  11. package/build/assets/a04b5e24af93da353f0e.woff +0 -0
  12. package/build/assets/bf331673b91821715c08.woff +0 -0
  13. package/build/assets/c54b0f4340f2914802d1.woff +0 -0
  14. package/build/assets/dd8646a41e4397b77fc4.woff2 +0 -0
  15. package/build/assets/e06c107cc50506570954.woff2 +0 -0
  16. package/build/assets/ecdfe4c05425592708aa.woff2 +0 -0
  17. package/build/assets/f0032576ac7462ccbd0c.woff +0 -0
  18. package/build/assets/f872e621917a45943fbc.woff +0 -0
  19. package/build/components/alert/index.d.ts +10 -0
  20. package/build/components/alert/index.js +124 -0
  21. package/build/components/export/clipboard.d.ts +2 -0
  22. package/build/components/export/clipboard.js +10 -0
  23. package/build/components/export/index.d.ts +5 -0
  24. package/build/components/export/index.js +8 -0
  25. package/build/components/export/json.d.ts +2 -0
  26. package/build/components/export/json.js +10 -0
  27. package/build/components/field/checkbox.d.ts +17 -0
  28. package/build/components/field/checkbox.js +46 -0
  29. package/build/components/field/description.d.ts +4 -0
  30. package/build/components/field/description.js +11 -0
  31. package/build/components/field/error.d.ts +4 -0
  32. package/build/components/field/error.js +13 -0
  33. package/build/components/field/file.d.ts +18 -0
  34. package/build/components/field/file.js +50 -0
  35. package/build/components/field/index.d.ts +222 -0
  36. package/build/components/field/index.js +13 -0
  37. package/build/components/field/optional.d.ts +92 -0
  38. package/build/components/field/optional.js +21 -0
  39. package/build/components/field/select.d.ts +32 -0
  40. package/build/components/field/select.js +110 -0
  41. package/build/components/field/switch.d.ts +3 -0
  42. package/build/components/field/switch.js +11 -0
  43. package/build/components/field/text.d.ts +21 -0
  44. package/build/components/field/text.js +51 -0
  45. package/build/components/field/textarea.d.ts +3 -0
  46. package/build/components/field/textarea.js +10 -0
  47. package/build/components/field/title.d.ts +5 -0
  48. package/build/components/field/title.js +24 -0
  49. package/build/components/form/action.d.ts +5 -0
  50. package/build/components/form/action.js +51 -0
  51. package/build/components/form/index.d.ts +23 -0
  52. package/build/components/form/index.js +9 -0
  53. package/build/components/form/input.d.ts +9 -0
  54. package/build/components/form/input.js +12 -0
  55. package/build/components/form/layout.d.ts +12 -0
  56. package/build/components/form/layout.js +14 -0
  57. package/build/components/form/types.d.ts +12 -0
  58. package/build/components/form/types.js +2 -0
  59. package/build/components/number/index.d.ts +8 -0
  60. package/build/components/number/index.js +20 -0
  61. package/build/components/page/index.d.ts +22 -0
  62. package/build/components/page/index.js +16 -0
  63. package/build/components/root/index.d.ts +9 -0
  64. package/build/components/root/index.js +9 -0
  65. package/build/components/root/onclick.d.ts +5 -0
  66. package/build/components/root/onclick.js +16 -0
  67. package/build/components/scrollbar/index.d.ts +11 -0
  68. package/build/components/scrollbar/index.js +38 -0
  69. package/build/components/site/index.d.ts +9 -0
  70. package/build/components/site/index.js +20 -0
  71. package/build/components/styles.css +1 -0
  72. package/build/components/tooltip/index.d.ts +58 -0
  73. package/build/components/tooltip/index.js +75 -0
  74. package/build/components/tooltip/menu.d.ts +25 -0
  75. package/build/components/tooltip/menu.js +46 -0
  76. package/build/components/variables.css +1 -0
  77. package/build/fonts/montserrat.css +1 -0
  78. package/build/index.d.ts +9 -0
  79. package/build/index.js +24 -0
  80. package/build/normalizer.css +1 -0
  81. package/build/utilities/styles.css +1 -0
  82. package/build/utilities/variables.css +1 -0
  83. package/package.json +1 -5
  84. package/src/components/accordion/scss/index.scss +16 -0
  85. package/src/components/accordion/scss/variables.scss +4 -0
  86. package/src/components/alert/index.ts +157 -0
  87. package/src/components/alert/scss/index.scss +55 -0
  88. package/src/components/alert/scss/variables.scss +8 -0
  89. package/src/components/anchor/scss/index.scss +41 -0
  90. package/src/components/anchor/scss/variables.scss +5 -0
  91. package/src/components/banner/scss/index.scss +40 -0
  92. package/src/components/banner/scss/variables.scss +6 -0
  93. package/src/components/border/scss/index.scss +10 -0
  94. package/src/components/border/scss/variables.scss +6 -0
  95. package/src/components/bubble/scss/index.scss +30 -0
  96. package/src/components/bubble/scss/variables.scss +19 -0
  97. package/src/components/button/scss/index.scss +92 -0
  98. package/src/components/button/scss/variables.scss +69 -0
  99. package/src/components/card/scss/index.scss +35 -0
  100. package/src/components/card/scss/variables.scss +42 -0
  101. package/src/components/container/scss/index.scss +10 -0
  102. package/src/components/container/scss/variables.scss +5 -0
  103. package/src/components/ellipsis/scss/index.scss +72 -0
  104. package/src/components/ellipsis/scss/variables.scss +3 -0
  105. package/src/components/export/clipboard.ts +12 -0
  106. package/src/components/export/index.ts +5 -0
  107. package/src/components/export/json.ts +15 -0
  108. package/src/components/field/checkbox.ts +61 -0
  109. package/src/components/field/description.ts +12 -0
  110. package/src/components/field/error.ts +14 -0
  111. package/src/components/field/file.ts +64 -0
  112. package/src/components/field/index.ts +10 -0
  113. package/src/components/field/optional.ts +27 -0
  114. package/src/components/field/scss/_check.scss +225 -0
  115. package/src/components/field/scss/_normalize.scss +36 -0
  116. package/src/components/field/scss/_text.scss +106 -0
  117. package/src/components/field/scss/index.scss +159 -0
  118. package/src/components/field/scss/variables.scss +138 -0
  119. package/src/components/field/select.ts +151 -0
  120. package/src/components/field/switch.ts +9 -0
  121. package/src/components/field/text.ts +68 -0
  122. package/src/components/field/textarea.ts +8 -0
  123. package/src/components/field/title.ts +23 -0
  124. package/src/components/form/action.ts +68 -0
  125. package/src/components/form/index.ts +6 -0
  126. package/src/components/form/input.ts +15 -0
  127. package/src/components/form/layout.ts +26 -0
  128. package/src/components/form/types.ts +16 -0
  129. package/src/components/group/scss/index.scss +36 -0
  130. package/src/components/group/scss/variables.scss +17 -0
  131. package/src/components/icon/scss/index.scss +17 -0
  132. package/src/components/icon/scss/variables.scss +7 -0
  133. package/src/components/link/scss/index.scss +28 -0
  134. package/src/components/link/scss/variables.scss +47 -0
  135. package/src/components/loading/scss/index.scss +24 -0
  136. package/src/components/loading/scss/variables.scss +31 -0
  137. package/src/components/modal/scss/index.scss +32 -0
  138. package/src/components/modal/scss/variables.scss +10 -0
  139. package/src/components/number/index.ts +24 -0
  140. package/src/components/page/index.ts +15 -0
  141. package/src/components/page/scss/index.scss +27 -0
  142. package/src/components/page/scss/variables.scss +27 -0
  143. package/src/components/processing/scss/index.scss +47 -0
  144. package/src/components/processing/scss/variables.scss +11 -0
  145. package/src/components/root/index.ts +5 -0
  146. package/src/components/root/onclick.ts +21 -0
  147. package/src/components/root/scss/index.scss +93 -0
  148. package/src/components/root/scss/variables.scss +55 -0
  149. package/src/components/row/scss/index.scss +7 -0
  150. package/src/components/scrollbar/index.ts +44 -0
  151. package/src/components/scrollbar/scss/index.scss +59 -0
  152. package/src/components/scrollbar/scss/variables.scss +6 -0
  153. package/src/components/sidebar/scss/index.scss +50 -0
  154. package/src/components/sidebar/scss/variables.scss +21 -0
  155. package/src/components/site/index.ts +27 -0
  156. package/src/components/site/scss/index.scss +3 -0
  157. package/src/components/text/scss/index.scss +12 -0
  158. package/src/components/text/scss/variables.scss +9 -0
  159. package/src/components/thumbnail/scss/index.scss +7 -0
  160. package/src/components/thumbnail/scss/variables.scss +7 -0
  161. package/src/components/tooltip/index.ts +94 -0
  162. package/src/components/tooltip/menu.ts +71 -0
  163. package/src/components/tooltip/scss/_center.scss +13 -0
  164. package/src/components/tooltip/scss/_east.scss +34 -0
  165. package/src/components/tooltip/scss/_north.scss +34 -0
  166. package/src/components/tooltip/scss/_south.scss +35 -0
  167. package/src/components/tooltip/scss/_west.scss +34 -0
  168. package/src/components/tooltip/scss/index.scss +93 -0
  169. package/src/components/tooltip/scss/variables.scss +25 -0
  170. package/src/css-utilities/[margin,padding]/scss/index.scss +41 -0
  171. package/src/css-utilities/[margin,padding]/scss/variables.scss +54 -0
  172. package/src/css-utilities/absolute/scss/index.scss +59 -0
  173. package/src/css-utilities/background/scss/variables.scss +27 -0
  174. package/src/css-utilities/border/scss/index.scss +21 -0
  175. package/src/css-utilities/border/scss/variables.scss +66 -0
  176. package/src/css-utilities/color/scss/variables.scss +31 -0
  177. package/src/css-utilities/disabled/scss/index.scss +4 -0
  178. package/src/css-utilities/flex/scss/index.scss +65 -0
  179. package/src/css-utilities/glass/scss/index.scss +3 -0
  180. package/src/css-utilities/glass/scss/variables.scss +3 -0
  181. package/src/css-utilities/hidden/scss/index.scss +28 -0
  182. package/src/css-utilities/index.scss +14 -0
  183. package/src/css-utilities/inline/scss/index.scss +7 -0
  184. package/src/css-utilities/line-height/scss/variables.scss +10 -0
  185. package/src/css-utilities/not-allowed/scss/index.scss +7 -0
  186. package/src/css-utilities/overflow/scss/index.scss +5 -0
  187. package/src/css-utilities/pointer/scss/index.scss +5 -0
  188. package/src/css-utilities/size/scss/variables.scss +12 -0
  189. package/src/css-utilities/slide/scss/index.scss +20 -0
  190. package/src/css-utilities/slide/scss/variables.scss +6 -0
  191. package/src/css-utilities/text/scss/index.scss +93 -0
  192. package/src/css-utilities/text/scss/variables.scss +31 -0
  193. package/src/css-utilities/transition/scss/variables.scss +14 -0
  194. package/src/css-utilities/viewport/scss/index.scss +5 -0
  195. package/src/css-utilities/width/scss/index.scss +3 -0
  196. package/src/css-utilities/width/scss/variables.scss +9 -0
  197. package/src/index.ts +11 -0
  198. package/src/lib/index.scss +7 -0
  199. package/src/lib/scss/breakpoint.scss +41 -0
  200. package/src/lib/scss/color.scss +1 -0
  201. package/src/lib/scss/css-variables.scss +13 -0
  202. package/src/lib/scss/list.scss +76 -0
  203. package/src/lib/scss/map.scss +1 -0
  204. package/src/lib/scss/position.scss +77 -0
  205. package/src/lib/scss/string.scss +33 -0
  206. package/src/tokens/index.scss +11 -0
  207. package/src/tokens/scss/border-radius.scss +12 -0
  208. package/src/tokens/scss/border-width.scss +6 -0
  209. package/src/tokens/scss/box-shadow.scss +13 -0
  210. package/src/tokens/scss/color.scss +64 -0
  211. package/src/tokens/scss/font-size.scss +12 -0
  212. package/src/tokens/scss/font-weight.scss +6 -0
  213. package/src/tokens/scss/line-height.scss +6 -0
  214. package/src/tokens/scss/size.scss +13 -0
  215. package/src/tokens/scss/spacer.scss +8 -0
  216. package/src/tokens/scss/state.scss +86 -0
  217. package/src/tokens/scss/transition-duration.scss +5 -0
  218. package/storage/fonts/montserrat/Montserrat-Bold.woff +0 -0
  219. package/storage/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
  220. package/storage/fonts/montserrat/Montserrat-BoldItalic.woff +0 -0
  221. package/storage/fonts/montserrat/Montserrat-BoldItalic.woff2 +0 -0
  222. package/storage/fonts/montserrat/Montserrat-Italic.woff +0 -0
  223. package/storage/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
  224. package/storage/fonts/montserrat/Montserrat-Medium.woff +0 -0
  225. package/storage/fonts/montserrat/Montserrat-Medium.woff2 +0 -0
  226. package/storage/fonts/montserrat/Montserrat-MediumItalic.woff +0 -0
  227. package/storage/fonts/montserrat/Montserrat-MediumItalic.woff2 +0 -0
  228. package/storage/fonts/montserrat/Montserrat-Regular.woff +0 -0
  229. package/storage/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
  230. package/storage/fonts/montserrat/Montserrat-SemiBold.woff +0 -0
  231. package/storage/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
  232. package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff +0 -0
  233. package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff2 +0 -0
  234. package/storage/fonts/montserrat/index.css +79 -0
  235. package/storage/psd/Color Palette.psd +0 -0
  236. package/tsconfig.json +11 -0
  237. package/webpack.config.ts +23 -0
@@ -0,0 +1,54 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ @each $property in margin padding {
5
+ .--#{$property} {
6
+ @each $direction in 'horizontal' 'vertical' {
7
+ &,
8
+ &-#{$direction} {
9
+ @each $key in lib.map-keys(tokens.$border-width) {
10
+ &-border-width {
11
+ --#{$property}-#{$direction}: var(--border-width-400);
12
+
13
+ &-#{$key} {
14
+ --#{$property}-#{$direction}: var(--border-width-#{$key});
15
+ }
16
+ }
17
+ }
18
+
19
+ @each $key in lib.map-keys(tokens.$spacer) {
20
+ &-spacer {
21
+ --#{$property}-#{$direction}: var(--spacer-400);
22
+
23
+ &-#{$key} {
24
+ --#{$property}-#{$direction}: var(--spacer-#{$key});
25
+ }
26
+ }
27
+ }
28
+
29
+ @each $key in lib.map-keys(tokens.$size) {
30
+ &-#{$key} {
31
+ --#{$property}-#{$direction}: var(--size-#{$key});
32
+ }
33
+ }
34
+
35
+ &-inherit {
36
+ --#{$property}-#{$direction}: inherit;
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ @each $property in margin {
44
+ .--#{$property} {
45
+ @each $direction in 'horizontal' 'vertical' {
46
+ &,
47
+ &-#{$direction} {
48
+ &-auto {
49
+ --#{$property}-#{$direction}: auto;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,59 @@
1
+ @use '/lib';
2
+
3
+ .--absolute {
4
+ &-bottom,
5
+ &-top {
6
+ left: 0;
7
+ position: absolute;
8
+ right: 0;
9
+ }
10
+
11
+ &-left,
12
+ &-right {
13
+ bottom: 0;
14
+ position: absolute;
15
+ top: 0;
16
+ }
17
+
18
+ &-center {
19
+ @include lib.position(absolute, center);
20
+ }
21
+
22
+ &-full {
23
+ @include lib.position(absolute, full);
24
+ }
25
+
26
+ &-horizontal {
27
+ &,
28
+ &-bottom,
29
+ &-top {
30
+ @include lib.position(absolute, horizontal);
31
+ }
32
+ }
33
+
34
+ &-vertical {
35
+ &,
36
+ &-left,
37
+ &-right {
38
+ @include lib.position(absolute, vertical);
39
+ }
40
+ }
41
+
42
+ @each $direction in 'bottom' 'top' {
43
+ &,
44
+ &-horizontal {
45
+ &-#{$direction} {
46
+ #{$direction}: 0;
47
+ }
48
+ }
49
+ }
50
+
51
+ @each $direction in 'left' 'right' {
52
+ &,
53
+ &-vertical {
54
+ &-#{$direction} {
55
+ #{$direction}: 0;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,27 @@
1
+ @use '/tokens';
2
+
3
+ .--background {
4
+ &-state {
5
+ --background: var(--background-default);
6
+ --background-active: var(--background-default);
7
+ --background-default: transparent;
8
+ --background-hover: var(--background-default);
9
+ --background-pressed: var(--background-default);
10
+
11
+ @include tokens.state(active) {
12
+ --background: var(--background-active);
13
+ }
14
+
15
+ @include tokens.state(hover) {
16
+ --background: var(--background-hover);
17
+ }
18
+
19
+ @include tokens.state(pressed) {
20
+ --background: var(--background-pressed);
21
+ }
22
+ }
23
+ }
24
+
25
+ @mixin css-variables($colors) {
26
+ @include tokens.state-utility('.--background', 'background', $colors);
27
+ }
@@ -0,0 +1,21 @@
1
+ .--border {
2
+ border: var(--border-width) var(--border-style) var(--border-color);
3
+
4
+ @each $key in 'bottom' 'left' 'right' 'top' {
5
+ &-#{$key} {
6
+ border-#{$key}: var(--border-width) var(--border-style) var(--border-color);
7
+ }
8
+ }
9
+
10
+ &-offset {
11
+ @each $key in 'bottom' 'left' 'right' 'top' {
12
+ &-#{$key} {
13
+ margin-#{$key}: calc(var(--border-width) * -1);
14
+ }
15
+ }
16
+ }
17
+
18
+ &-radius {
19
+ border-radius: var(--border-radius);
20
+ }
21
+ }
@@ -0,0 +1,66 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--border {
5
+ &,
6
+ &-bottom,
7
+ &-left,
8
+ &-right,
9
+ &-top {
10
+ --border-color: var(--border-color-default);
11
+ --border-style: solid;
12
+ --border-width: var(--border-width-400);
13
+ }
14
+
15
+ &-dashed {
16
+ --border-style: dashed;
17
+ }
18
+
19
+ &-dotted {
20
+ --border-style: dotted;
21
+ }
22
+
23
+ &-radius {
24
+ --border-radius: var(--border-radius-400);
25
+
26
+ @each $key in lib.map-keys(tokens.$border-radius) {
27
+ &-#{$key} {
28
+ --border-radius: var(--border-radius-#{$key});
29
+ }
30
+ }
31
+ }
32
+
33
+ &-state {
34
+ --border-color: var(--border-color-default);
35
+ --border-color-active: var(--border-color-default);
36
+ --border-color-default: transparent;
37
+ --border-color-hover: var(--border-color-default);
38
+ --border-color-pressed: var(--border-color-default);
39
+
40
+ @include tokens.state(active) {
41
+ --border-color: var(--border-color-active);
42
+ }
43
+
44
+ @include tokens.state(hover) {
45
+ --border-color: var(--border-color-hover);
46
+ }
47
+
48
+ @include tokens.state(pressed) {
49
+ --border-color: var(--border-color-pressed);
50
+ }
51
+ }
52
+
53
+ &-width {
54
+ --border-width: var(--border-width-400);
55
+
56
+ @each $key in lib.map-keys(tokens.$border-width) {
57
+ &-#{$key} {
58
+ --border-width: var(--border-width-#{$key});
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ @mixin css-variables($colors) {
65
+ @include tokens.state-utility('.--border', 'border-color', $colors);
66
+ }
@@ -0,0 +1,31 @@
1
+ @use '/tokens';
2
+
3
+ .--color {
4
+ &-inherit {
5
+ --color: inherit;
6
+ }
7
+
8
+ &-state {
9
+ --color: var(--color-default);
10
+ --color-active: var(--color-default);
11
+ --color-default: var(--color-text-400);
12
+ --color-hover: var(--color-default);
13
+ --color-pressed: var(--color-default);
14
+
15
+ @include tokens.state(active) {
16
+ --color: var(--color-active);
17
+ }
18
+
19
+ @include tokens.state(hover) {
20
+ --color: var(--color-hover);
21
+ }
22
+
23
+ @include tokens.state(pressed) {
24
+ --color: var(--color-pressed);
25
+ }
26
+ }
27
+ }
28
+
29
+ @mixin css-variables($colors) {
30
+ @include tokens.state-utility('.--color', 'color', $colors);
31
+ }
@@ -0,0 +1,4 @@
1
+ .--disabled {
2
+ opacity: 0.64;
3
+ pointer-events: none;
4
+ }
@@ -0,0 +1,65 @@
1
+ .--flex {
2
+ &-center {
3
+ align-content: center;
4
+ display: flex;
5
+ flex-wrap: wrap;
6
+ justify-content: center;
7
+ }
8
+
9
+ &-column {
10
+ display: flex;
11
+ flex-flow: column;
12
+ }
13
+
14
+ &-end {
15
+ display: flex;
16
+ flex-wrap: wrap;
17
+ justify-content: flex-end;
18
+ }
19
+
20
+ &-fill {
21
+ display: flex;
22
+ flex: 1;
23
+ min-width: 0;
24
+ }
25
+
26
+ &-fixed {
27
+ display: flex;
28
+ flex: 0 0 var(--width);
29
+ }
30
+
31
+ &-horizontal {
32
+ display: flex;
33
+ flex-wrap: wrap;
34
+ justify-content: center;
35
+
36
+ &-space-between {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ justify-content: space-between;
40
+ }
41
+ }
42
+
43
+ &-row {
44
+ display: flex;
45
+ flex-flow: row;
46
+ }
47
+
48
+ &-start {
49
+ display: flex;
50
+ flex-wrap: wrap;
51
+ justify-content: flex-start;
52
+ }
53
+
54
+ &-vertical {
55
+ align-items: center;
56
+ display: flex;
57
+ flex-wrap: wrap;
58
+
59
+ &-space-between {
60
+ align-items: space-between;
61
+ display: flex;
62
+ flex-wrap: wrap;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,3 @@
1
+ .--glass {
2
+ backdrop-filter: blur(var(--blur));
3
+ }
@@ -0,0 +1,3 @@
1
+ .--glass {
2
+ --blur: 16px;
3
+ }
@@ -0,0 +1,28 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--hidden {
5
+ display: none;
6
+
7
+ &-active {
8
+ @include tokens.state(active) {
9
+ display: none;
10
+ }
11
+ }
12
+
13
+ &-inactive {
14
+ @include tokens.state(inactive) {
15
+ display: none;
16
+ }
17
+ }
18
+
19
+ &-visibility {
20
+ @include lib.position(absolute, 0 null null 0);
21
+ appearance: none;
22
+ height: 0px;
23
+ opacity: 0;
24
+ pointer-events: none;
25
+ width: 0px;
26
+ z-index: -1;
27
+ }
28
+ }
@@ -0,0 +1,14 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+ @use 'background/scss/variables' as background;
4
+ @use 'border/scss/variables' as border;
5
+ @use 'color/scss/variables' as color;
6
+
7
+
8
+ @mixin css-variables($colors) {
9
+ @include background.css-variables($colors);
10
+ @include border.css-variables($colors);
11
+ @include color.css-variables($colors);
12
+ }
13
+
14
+ @include css-variables(lib.list-join(primary secondary, lib.map-keys(tokens.$color)));
@@ -0,0 +1,7 @@
1
+ .--inline {
2
+ display: inline;
3
+ font-size: inherit;
4
+ line-height: inherit;
5
+ margin: 0;
6
+ padding: 0;
7
+ }
@@ -0,0 +1,10 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--line-height {
5
+ @each $key in lib.map-keys(tokens.$line-height) {
6
+ &-#{$key} {
7
+ --line-height: var(--line-height-#{$key});
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ .--not-allowed {
2
+ cursor: not-allowed;
3
+
4
+ * {
5
+ pointer-events: none;
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ .--overflow {
2
+ &-hidden {
3
+ overflow: hidden;
4
+ }
5
+ }
@@ -0,0 +1,5 @@
1
+ .--pointer {
2
+ &-none {
3
+ pointer-events: none;
4
+ }
5
+ }
@@ -0,0 +1,12 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--size {
5
+ --size: var(--size-400);
6
+
7
+ @each $key in lib.map-keys(tokens.$size) {
8
+ &-#{$key} {
9
+ --size: var(--size-#{$key});
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,20 @@
1
+ .--slide {
2
+ &-in {
3
+ animation-duration: var(--transition-duration);
4
+ animation-name: --slide-in;
5
+ animation-timing-function: ease-in-out;
6
+ transform-origin: top center;
7
+
8
+ @keyframes --slide-in {
9
+ from {
10
+ opacity: 0;
11
+ transform: translateY(var(--translateY));
12
+ }
13
+
14
+ to {
15
+ opacity: 1;
16
+ transform: translateY(0);
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ .--slide {
2
+ &-in {
3
+ --transition-duration: var(--transition-duration-400);
4
+ --translateY: var(--size-400);
5
+ }
6
+ }
@@ -0,0 +1,93 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--text {
5
+ &-bold {
6
+ font-weight: var(--font-weight-500);
7
+
8
+ @each $key in lib.map-keys(tokens.$font-weight) {
9
+ @if $key > 500 {
10
+ &-#{$key} {
11
+ font-weight: var(--font-weight-#{$key});
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ &-center {
18
+ text-align: center;
19
+ }
20
+
21
+ &-crop {
22
+ &::after,
23
+ &::before,
24
+ &-bottom::after,
25
+ &-top::before {
26
+ content: '';
27
+ display: block;
28
+ height: 0;
29
+ width: 100%;
30
+ }
31
+
32
+ &::after,
33
+ &-bottom::after {
34
+ margin-bottom: calc((1 - var(--line-height)) * 0.618em);
35
+ }
36
+
37
+ &::before,
38
+ &-top::before {
39
+ margin-top: calc((1 - var(--line-height)) * 0.618em);
40
+ }
41
+ }
42
+
43
+ &-italic {
44
+ font-style: italic;
45
+ }
46
+
47
+ &-linethrough {
48
+ text-decoration: line-through;
49
+ }
50
+
51
+ &-multiplier {
52
+ font-size: calc(var(--font-size) * var(--text-multiplier));
53
+ }
54
+
55
+ &-outline {
56
+ color: var(--color);
57
+ word-break: break-word;
58
+ word-wrap: break-word;
59
+
60
+ @supports (-webkit-text-stroke-width: 1px) {
61
+ color: transparent;
62
+ -webkit-text-fill-color: transparent;
63
+ -webkit-text-stroke-color: var(--color);
64
+ -webkit-text-stroke-width: var(--stroke-width);
65
+ }
66
+ }
67
+
68
+ &-strike-through {
69
+ text-decoration: line-through;
70
+ text-decoration-thickness: var(--line-width);
71
+ }
72
+
73
+ &-truncate {
74
+ line-height: var(--size);
75
+ max-width: 100%;
76
+ overflow: hidden;
77
+ text-overflow: ellipsis;
78
+ white-space: nowrap;
79
+ }
80
+
81
+ &-underline {
82
+ text-decoration: underline;
83
+
84
+ &-dotted {
85
+ text-decoration: underline;
86
+ text-decoration-style: dotted;
87
+ }
88
+ }
89
+
90
+ &-uppercase {
91
+ text-transform: uppercase;
92
+ }
93
+ }
@@ -0,0 +1,31 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--text {
5
+ @each $key in lib.map-keys(tokens.$font-size) {
6
+ &-#{$key} {
7
+ --font-size: var(--font-size-#{$key});
8
+ }
9
+ }
10
+
11
+ &-outline {
12
+ --color: inherit;
13
+ --stroke-width: var(--border-width-400);
14
+
15
+ @each $key in lib.map-keys(tokens.$border-width) {
16
+ &-#{$key} {
17
+ --stroke-width: var(--border-width-#{$key});
18
+ }
19
+ }
20
+ }
21
+
22
+ &-strike-through {
23
+ --line-width: var(--border-width-400);
24
+
25
+ @each $key in lib.map-keys(tokens.$border-width) {
26
+ &-#{$key} {
27
+ --line-width: var(--border-width-#{$key});
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,14 @@
1
+ @use '/lib';
2
+ @use '/tokens';
3
+
4
+ .--transition {
5
+ &-duration {
6
+ --transition-duration: var(--transition-duration-400);
7
+
8
+ @each $key in lib.map-keys(tokens.$transition-duration) {
9
+ &-#{$key} {
10
+ --transition-duration: var(--transition-duration-#{$key});
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,5 @@
1
+ .--viewport {
2
+ overflow: hidden;
3
+ height: calc(100svh - var(--margin-vertical, 0px) * 2);
4
+ width: calc(100vw - var(--margin-horizontal, 0px) * 2);
5
+ }
@@ -0,0 +1,3 @@
1
+ .--width {
2
+ width: var(--width);
3
+ }
@@ -0,0 +1,9 @@
1
+ .--width {
2
+ &-full {
3
+ --width: 100%;
4
+ }
5
+
6
+ &-half {
7
+ --width: 50%;
8
+ }
9
+ }
package/src/index.ts ADDED
@@ -0,0 +1,11 @@
1
+ // Required for `tsc-alias` to work
2
+ // - `package.json` exports makes this file innaccesible to avoid barrel imports
3
+ export { default as alert }from './components/alert';
4
+ export { default as field }from './components/field';
5
+ export { default as form }from './components/form';
6
+ export { default as number }from './components/number';
7
+ export { default as page }from './components/page';
8
+ export { default as root }from './components/root';
9
+ export { default as scrollbar }from './components/scrollbar';
10
+ export { default as site }from './components/site';
11
+ export { default as tooltip }from './components/tooltip';
@@ -0,0 +1,7 @@
1
+ @forward 'scss/breakpoint';
2
+ @forward 'scss/color' as color-*;
3
+ @forward 'scss/css-variables';
4
+ @forward 'scss/list' as list-*;
5
+ @forward 'scss/map' as map-*;
6
+ @forward 'scss/position';
7
+ @forward 'scss/string' as string-*;