@esportsplus/ui 0.0.121 → 0.0.122

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,41 @@
1
+ @mixin breakpoint($function, $param: null) {
2
+ @if $function == min-width or $function == min-height {
3
+ @media only screen and ($function: $param + 1px) {
4
+ @content;
5
+ }
6
+ }
7
+ @else if $function == max-width or $function == max-height {
8
+ @media only screen and ($function: $param) {
9
+ @content;
10
+ }
11
+ }
12
+ @else if $function == between-width {
13
+ @media only screen and (min-width: nth($param, 1) + 1px) and (max-width: nth($param, 2)) {
14
+ @content;
15
+ }
16
+ }
17
+ @else if $function == orientation {
18
+ @if $param == landscape {
19
+ @media only screen and (min-aspect-ratio: 13/9) {
20
+ @content;
21
+ }
22
+ }
23
+ @else if $param == portrait {
24
+ @media only screen and (max-aspect-ratio: 13/9) {
25
+ @content;
26
+ }
27
+ }
28
+ }
29
+ @else if $function == retina {
30
+ @media
31
+ only screen and (-webkit-min-device-pixel-ratio: 1.25),
32
+ only screen and ( min--moz-device-pixel-ratio: 1.25),
33
+ only screen and ( -o-min-device-pixel-ratio: 1.25/1),
34
+ only screen and ( min-device-pixel-ratio: 1.25),
35
+ only screen and ( min-resolution: 200dpi),
36
+ only screen and ( min-resolution: 1.25dppx)
37
+ {
38
+ @content;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1 @@
1
+ @forward 'sass:color';
@@ -0,0 +1,13 @@
1
+ @mixin css-variables($prefix, $tokens) {
2
+ @each $key, $value in $tokens {
3
+ @if type-of($value) == 'map' {
4
+ @each $subkey, $subvalue in $value {
5
+ --#{$prefix}-#{$key}-#{$subkey}: #{$subvalue};
6
+ }
7
+ }
8
+ @else {
9
+ --#{$prefix}-#{$key}: #{$value};
10
+ }
11
+ }
12
+ }
13
+
@@ -0,0 +1,76 @@
1
+ @use 'sass:list';
2
+ @use 'sass:string';
3
+
4
+ @forward 'sass:list';
5
+
6
+ @function contains($needles, $haystack) {
7
+ $haystack: to-list($haystack);
8
+ $needles: to-list($needles);
9
+
10
+ @each $needle in $needles {
11
+ @if list.index($haystack, $needle) {
12
+ @return true;
13
+ }
14
+ }
15
+
16
+ @return false;
17
+ }
18
+
19
+ @function implode($glue, $list) {
20
+ $list: unique($list);
21
+ $output: null;
22
+
23
+ @if type-of($list) != list {
24
+ @error "#{$list} Is Not A Valid List";
25
+ }
26
+
27
+ @for $i from 1 through list.length($list) {
28
+ $m: nth($list, $i);
29
+
30
+ // If $k Is A List Flatten By Running Through Function Again
31
+ @if type-of($m) == list {
32
+ $output: string.unquote("#{$output}#{$glue}#{implode($glue, $m)}");
33
+ }
34
+ // Piece Together String
35
+ @else {
36
+ $output: string.unquote("#{$output}#{$glue}#{$m}");
37
+ }
38
+ }
39
+
40
+ @if $output != null {
41
+ $output: string.slice($output, string.length($glue) + 1, -1);
42
+ }
43
+
44
+ @return $output;
45
+ }
46
+
47
+ @function to-list($input) {
48
+ $output: $input;
49
+
50
+ @if type-of($input) != list {
51
+ $output: ($input,);
52
+ }
53
+
54
+ @return $output;
55
+ }
56
+
57
+ @function unique($list, $recursive: false) {
58
+ $result: ();
59
+
60
+ @if type-of($list) != list {
61
+ @error "#{$list} Is Not A Valid List";
62
+ }
63
+
64
+ @each $item in $list {
65
+ @if not list.index($result, $item) and $item != '' {
66
+ @if list.length($item) > 1 and $recursive {
67
+ $result: list.append($result, unique($item, $recursive));
68
+ }
69
+ @else {
70
+ $result: list.append($result, $item);
71
+ }
72
+ }
73
+ }
74
+
75
+ @return $result;
76
+ }
@@ -0,0 +1 @@
1
+ @forward 'sass:map';
@@ -0,0 +1,77 @@
1
+ @use 'list';
2
+
3
+ @mixin position($position, $value: null) {
4
+ position: $position;
5
+
6
+ @if list.contains($value, center vertical) {
7
+ bottom: 50%;
8
+ }
9
+ @if list.contains($value, center horizontal) {
10
+ right: 50%;
11
+ }
12
+
13
+
14
+ @if $value == center {
15
+ transform: translate(50%, 50%);
16
+ }
17
+ @else if $value == horizontal {
18
+ transform: translateX(50%);
19
+ }
20
+ @else if $value == vertical {
21
+ transform: translateY(50%);
22
+ }
23
+
24
+
25
+ @if $value == full {
26
+ $value: 0 0 0 0;
27
+ }
28
+ @else if $value == top {
29
+ $value: 0 0 null 0;
30
+ }
31
+ @else if $value == right {
32
+ $value: 0 0 0 null;
33
+ }
34
+ @else if $value == bottom {
35
+ $value: null 0 0 0;
36
+ }
37
+ @else if $value == left {
38
+ $value: 0 null 0 0;
39
+ }
40
+
41
+
42
+ @if $value and type-of($value) == list {
43
+ $length: list.length($value);
44
+
45
+ @if $length > 0 {
46
+ $v: nth($value, 1);
47
+
48
+ @if $v != null {
49
+ top: $v;
50
+ }
51
+ }
52
+
53
+ @if $length > 1 {
54
+ $v: nth($value, 2);
55
+
56
+ @if $v != null {
57
+ right: $v;
58
+ }
59
+ }
60
+
61
+ @if $length > 2 {
62
+ $v: nth($value, 3);
63
+
64
+ @if $v != null {
65
+ bottom: $v;
66
+ }
67
+ }
68
+
69
+ @if $length > 3 {
70
+ $v: nth($value, 4);
71
+
72
+ @if $v != null {
73
+ left: $v;
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,33 @@
1
+ @use 'list';
2
+ @use 'sass:string';
3
+
4
+ @forward 'sass:string';
5
+
6
+ @function contains($needles, $haystack) {
7
+ $haystack: string.quote($haystack);
8
+ $needles: list.to-list($needles);
9
+
10
+ @each $needle in $needles {
11
+ $needle: string.quote($needle);
12
+
13
+ @if string.index($haystack, $needle) != null {
14
+ @return true;
15
+ }
16
+ }
17
+
18
+ @return false;
19
+ }
20
+
21
+ @function replace($find, $replace, $haystack) {
22
+ @if type-of($haystack) != string {
23
+ @error "#{$haystack} Is Not A Valid String";
24
+ }
25
+
26
+ $index: string.index($haystack, string.quote($find));
27
+
28
+ @if $index {
29
+ $haystack: string.slice($haystack, 1, $index - 1) + $replace + replace($find, $replace, string.slice($haystack, $index + string.length($find)));
30
+ }
31
+
32
+ @return $haystack;
33
+ }
@@ -0,0 +1,11 @@
1
+ @forward 'scss/border-radius';
2
+ @forward 'scss/border-width';
3
+ @forward 'scss/box-shadow';
4
+ @forward 'scss/color';
5
+ @forward 'scss/font-size';
6
+ @forward 'scss/font-weight';
7
+ @forward 'scss/line-height';
8
+ @forward 'scss/size';
9
+ @forward 'scss/spacer';
10
+ @forward 'scss/state';
11
+ @forward 'scss/transition-duration';
@@ -0,0 +1,12 @@
1
+ $border-radius: (
2
+ 0px: 0px,
3
+ circle: 100%,
4
+ curved: 240px,
5
+
6
+ 100: 2px,
7
+ 200: 4px,
8
+ 300: 6px,
9
+ 400: 8px,
10
+ 500: 12px,
11
+ 600: 16px
12
+ );
@@ -0,0 +1,6 @@
1
+ $border-width: (
2
+ 400: 1px,
3
+ 500: 2px,
4
+ 600: 3px,
5
+ 700: 4px
6
+ );
@@ -0,0 +1,13 @@
1
+ $box-shadow: (
2
+ 300: #{
3
+ 0px 8px 16px -4px rgba(0, 3, 19, 0.016),
4
+ 0px 4px 8px -2px rgba(0, 3, 19, 0.008)
5
+ },
6
+ 400: #{
7
+ 0px 16px 24px -4px rgba(0, 3, 19, 0.048),
8
+ 0px 8px 8px -4px rgba(0, 3, 19, 0.024)
9
+ },
10
+ 500: #{
11
+ 0px 16px 32px -8px rgba(0, 3, 19, 0.16)
12
+ }
13
+ );
@@ -0,0 +1,64 @@
1
+ @use '../../lib';
2
+
3
+ $color: (
4
+ 'black': (
5
+ 300: #0f1325,
6
+ 400: #04081a,
7
+ 500: #000313
8
+ ),
9
+ 'blue': (
10
+ 300: #3453ff,
11
+ 400: #2a4bff,
12
+ 500: #2343f8
13
+ ),
14
+ 'border': (
15
+ 300: #c4c9df,
16
+ 400: #b4b9d2,
17
+ 500: #a5a9c3
18
+ ),
19
+ 'green': (
20
+ 300: #5fff81,
21
+ 400: #2aff57,
22
+ 500: #23f850
23
+ ),
24
+ 'grey': (
25
+ 300: #f2f9ff,
26
+ 400: #e7f1fa,
27
+ 500: #dde8f0
28
+ ),
29
+ 'purple': (
30
+ 300: #6634ff,
31
+ 400: #5e2aff,
32
+ 500: #5723f8
33
+ ),
34
+ 'red': (
35
+ 300: #ff3446,
36
+ 400: #ff2a3d,
37
+ 500: #f82336
38
+ ),
39
+ 'text': (
40
+ 300: #676c84,
41
+ 400: #393d57,
42
+ 500: #1f2542
43
+ ),
44
+ 'white': (
45
+ 300: #fff,
46
+ 400: #fff,
47
+ 500: #fff
48
+ ),
49
+ 'yellow': (
50
+ 300: #fff95f,
51
+ 400: #fff92a,
52
+ 500: #f8f123
53
+ )
54
+ );
55
+
56
+ @function color($keys, $opacity) {
57
+ $c: $color;
58
+
59
+ @each $key in $keys {
60
+ $c: lib.map-get($c, $key);
61
+ }
62
+
63
+ @return lib.color-change($c, $alpha: $opacity);
64
+ }
@@ -0,0 +1,12 @@
1
+ $font-size: (
2
+ 100: 8px,
3
+ 200: 10px,
4
+ 300: 12px,
5
+ 400: 14px,
6
+
7
+ // Primarily Used For Headers h1 - h4
8
+ 500: 16px,
9
+ 600: 24px,
10
+ 700: 32px,
11
+ 800: 40px
12
+ );
@@ -0,0 +1,6 @@
1
+ $font-weight: (
2
+ 300: 400,
3
+ 400: 500,
4
+ 500: 600,
5
+ 600: 700
6
+ );
@@ -0,0 +1,6 @@
1
+ $line-height: (
2
+ 100: 1,
3
+ 200: 1.2,
4
+ 300: 1.4,
5
+ 400: 1.6
6
+ );
@@ -0,0 +1,13 @@
1
+ $size: (
2
+ 0px: 0px,
3
+
4
+ 100: 4px,
5
+ 200: 8px,
6
+ 300: 12px,
7
+ 400: 16px,
8
+ 500: 20px,
9
+ 600: 24px,
10
+ 700: 32px,
11
+ 800: 40px,
12
+ 900: 48px
13
+ );
@@ -0,0 +1,8 @@
1
+ @use '../../lib';
2
+ @use 'size';
3
+
4
+ $spacer: (
5
+ 300: lib.map-get(size.$size, 900) * 1,
6
+ 400: lib.map-get(size.$size, 900) * 2,
7
+ 500: lib.map-get(size.$size, 900) * 3
8
+ );
@@ -0,0 +1,86 @@
1
+ /**
2
+ *------------------------------------------------------------------------------
3
+ *
4
+ * Buttons, Links, And Other Modules Display CSS Properties Based On Module
5
+ * 'State' ( :hover, :active, etc. )
6
+ *
7
+ * Desired Result:
8
+ * - Default Colors Assigned To Element;
9
+ * - On 'highlight' Or ':hover' Display A Slightly Brighter Version Of
10
+ * The Default Color;
11
+ * - On 'pressed' Or ':active' Display Slightly Darker Version Of The
12
+ * Default Color;
13
+ *
14
+ * End Product Gives Off The Illusion Of A Static -> Hovering -> Pressed
15
+ * Button Without Dealing With Transforms To Shift Elements.
16
+ *
17
+ * Mixin Also Handles Removing Duplicate List Keys
18
+ *
19
+ */
20
+
21
+ @use '../../lib';
22
+
23
+ $state: (
24
+ active: '&.--active',
25
+ inactive: '&:not(.--active)',
26
+
27
+ disabled: '&.--disabled',
28
+ enabled: '&:not(.--disabled)',
29
+
30
+ default: '&:not(.--active):not(:hover)',
31
+ hover: '&:not(.--active):hover',
32
+ pressed: '&:not(.--active):active'
33
+ );
34
+
35
+
36
+ @function state($key, $replace: null) {
37
+ $selector: lib.map-get($state, $key);
38
+
39
+ // To Avoid Overcomplicating The Responsibility Of This Function Limit
40
+ // Replace Parameter To String Values Only
41
+ @if $replace {
42
+ @if type-of($replace) != 'string' or type-of($selector) != 'string' {
43
+ @error "'lib.string-replace' Cannot Be Used On A List!";
44
+ }
45
+
46
+ $selector: lib.string-replace('&', $replace, $selector);
47
+ }
48
+
49
+ @return $selector;
50
+ }
51
+
52
+
53
+ @mixin state($states) {
54
+ $selector: ();
55
+
56
+ @each $s in lib.list-to-list($states) {
57
+ $section: state($s);
58
+
59
+ @if $section {
60
+ $selector: lib.list-append($selector, $section);
61
+ }
62
+ }
63
+
64
+ #{lib.list-implode(',', lib.list-unique($selector))} {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ @mixin state-utility($class, $property, $values) {
70
+ $keys: $values;
71
+
72
+ @if type-of($keys) == 'map' {
73
+ $keys: lib.map-keys($keys);
74
+ }
75
+
76
+ #{$class} {
77
+ @each $key in $keys {
78
+ &-#{$key} {
79
+ --#{$property}-active: var(--color-#{$key}-300);
80
+ --#{$property}-default: var(--color-#{$key}-400);
81
+ --#{$property}-hover: var(--color-#{$key}-300);
82
+ --#{$property}-pressed: var(--color-#{$key}-500);
83
+ }
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,5 @@
1
+ $transition-duration: (
2
+ 300: 0.08s,
3
+ 400: 0.16s,
4
+ 500: 0.24s
5
+ );
@@ -0,0 +1,79 @@
1
+ @font-face {
2
+ font-display: swap;
3
+ font-family: 'Montserrat';
4
+ font-style: normal;
5
+ font-weight: 400;
6
+ src: local('Montserrat Regular'), local('Montserrat-Regular'),
7
+ url('Montserrat-Regular.woff2') format('woff2'),
8
+ url('Montserrat-Regular.woff') format('woff');
9
+ }
10
+
11
+ @font-face {
12
+ font-display: swap;
13
+ font-family: 'Montserrat';
14
+ font-style: italic;
15
+ font-weight: 400;
16
+ src: local('Montserrat Italic'), local('Montserrat-Italic'),
17
+ url('Montserrat-Italic.woff2') format('woff2'),
18
+ url('Montserrat-Italic.woff') format('woff');
19
+ }
20
+
21
+ @font-face {
22
+ font-display: swap;
23
+ font-family: 'Montserrat';
24
+ font-style: normal;
25
+ font-weight: 500;
26
+ src: local('Montserrat Medium'), local('Montserrat-Medium'),
27
+ url('Montserrat-Medium.woff2') format('woff2'),
28
+ url('Montserrat-Medium.woff') format('woff');
29
+ }
30
+
31
+ @font-face {
32
+ font-display: swap;
33
+ font-family: 'Montserrat';
34
+ font-style: italic;
35
+ font-weight: 500;
36
+ src: local('Montserrat MediumItalic'), local('Montserrat-MediumItalic'),
37
+ url('Montserrat-MediumItalic.woff2') format('woff2'),
38
+ url('Montserrat-MediumItalic.woff') format('woff');
39
+ }
40
+
41
+ @font-face {
42
+ font-display: swap;
43
+ font-family: 'Montserrat';
44
+ font-style: normal;
45
+ font-weight: 600;
46
+ src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
47
+ url('Montserrat-SemiBold.woff2') format('woff2'),
48
+ url('Montserrat-SemiBold.woff') format('woff');
49
+ }
50
+
51
+ @font-face {
52
+ font-display: swap;
53
+ font-family: 'Montserrat';
54
+ font-style: italic;
55
+ font-weight: 600;
56
+ src: local('Montserrat SemiBoldItalic'), local('Montserrat-SemiBoldItalic'),
57
+ url('Montserrat-SemiBoldItalic.woff2') format('woff2'),
58
+ url('Montserrat-SemiBoldItalic.woff') format('woff');
59
+ }
60
+
61
+ @font-face {
62
+ font-display: swap;
63
+ font-family: 'Montserrat';
64
+ font-style: normal;
65
+ font-weight: 700;
66
+ src: local('Montserrat Bold'), local('Montserrat Bold'),
67
+ url('Montserrat-Bold.woff2') format('woff2'),
68
+ url('Montserrat-Bold.woff') format('woff');
69
+ }
70
+
71
+ @font-face {
72
+ font-display: swap;
73
+ font-family: 'Montserrat';
74
+ font-style: italic;
75
+ font-weight: 700;
76
+ src: local('Montserrat BoldItalic'), local('Montserrat-BoldItalic'),
77
+ url('Montserrat-BoldItalic.woff2') format('woff2'),
78
+ url('Montserrat-BoldItalic.woff') format('woff');
79
+ }
Binary file
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "declaration": true,
5
+ "declarationDir": "build",
6
+ "outDir": "build"
7
+ },
8
+ "exclude": ["node_modules"],
9
+ "extends": "./node_modules/@esportsplus/typescript/tsconfig.base.json",
10
+ "include": ["src"]
11
+ }
@@ -0,0 +1,23 @@
1
+ import { config, entry } from '@esportsplus/webpack';
2
+
3
+
4
+ export default ({ production }: { production?: string }) => {
5
+ return config.web({
6
+ contenthash: false,
7
+ entry: {
8
+ components: {
9
+ styles: entry.css('src/components/**/index.scss'),
10
+ variables: entry.css('src/components/**/variables.scss')
11
+ },
12
+ fonts: {
13
+ montserrat: entry.css('storage/fonts/montserrat/index.css')
14
+ },
15
+ normalizer: entry.css('modern-normalize/modern-normalize.css'),
16
+ utilities: {
17
+ styles: entry.css('src/css-utilities/**/index.scss'),
18
+ variables: entry.css('src/css-utilities/**/variables.scss')
19
+ }
20
+ },
21
+ mode: production !== 'false' ? 'production': 'development',
22
+ });
23
+ };