@esportsplus/ui 0.0.114 → 0.0.117

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 (216) hide show
  1. package/package.json +8 -4
  2. package/src/components/export/clipboard.ts +12 -0
  3. package/src/components/export/index.ts +5 -0
  4. package/src/components/export/json.ts +15 -0
  5. package/src/components/index.ts +1 -0
  6. package/.editorconfig +0 -9
  7. package/.gitattributes +0 -2
  8. package/assets/0af89c10df9bc2f8d646.woff2 +0 -0
  9. package/assets/109e3207d9afea8524be.woff2 +0 -0
  10. package/assets/16663c3f6ab1da2d6c86.woff +0 -0
  11. package/assets/16e8721ef5837bc6375e.woff +0 -0
  12. package/assets/2a3e005f58bfca9c117e.woff +0 -0
  13. package/assets/58a8d7ebc386843b62c5.woff2 +0 -0
  14. package/assets/593de7c561e5ffe80c3e.woff2 +0 -0
  15. package/assets/68b7982c2b30b51bf932.woff2 +0 -0
  16. package/assets/a04b5e24af93da353f0e.woff +0 -0
  17. package/assets/bf331673b91821715c08.woff +0 -0
  18. package/assets/c54b0f4340f2914802d1.woff +0 -0
  19. package/assets/dd8646a41e4397b77fc4.woff2 +0 -0
  20. package/assets/e06c107cc50506570954.woff2 +0 -0
  21. package/assets/ecdfe4c05425592708aa.woff2 +0 -0
  22. package/assets/f0032576ac7462ccbd0c.woff +0 -0
  23. package/assets/f872e621917a45943fbc.woff +0 -0
  24. package/build/components/alert/index.d.ts +0 -10
  25. package/build/components/alert/index.js +0 -124
  26. package/build/components/field/checkbox.d.ts +0 -17
  27. package/build/components/field/checkbox.js +0 -46
  28. package/build/components/field/description.d.ts +0 -4
  29. package/build/components/field/description.js +0 -11
  30. package/build/components/field/error.d.ts +0 -4
  31. package/build/components/field/error.js +0 -13
  32. package/build/components/field/file.d.ts +0 -18
  33. package/build/components/field/file.js +0 -50
  34. package/build/components/field/index.d.ts +0 -222
  35. package/build/components/field/index.js +0 -13
  36. package/build/components/field/optional.d.ts +0 -92
  37. package/build/components/field/optional.js +0 -21
  38. package/build/components/field/select.d.ts +0 -32
  39. package/build/components/field/select.js +0 -108
  40. package/build/components/field/switch.d.ts +0 -3
  41. package/build/components/field/switch.js +0 -11
  42. package/build/components/field/text.d.ts +0 -21
  43. package/build/components/field/text.js +0 -51
  44. package/build/components/field/textarea.d.ts +0 -3
  45. package/build/components/field/textarea.js +0 -10
  46. package/build/components/field/title.d.ts +0 -5
  47. package/build/components/field/title.js +0 -21
  48. package/build/components/form/action.d.ts +0 -5
  49. package/build/components/form/action.js +0 -51
  50. package/build/components/form/index.d.ts +0 -23
  51. package/build/components/form/index.js +0 -9
  52. package/build/components/form/input.d.ts +0 -9
  53. package/build/components/form/input.js +0 -12
  54. package/build/components/form/layout.d.ts +0 -12
  55. package/build/components/form/layout.js +0 -14
  56. package/build/components/form/types.d.ts +0 -12
  57. package/build/components/form/types.js +0 -2
  58. package/build/components/index.d.ts +0 -9
  59. package/build/components/index.js +0 -24
  60. package/build/components/number/index.d.ts +0 -8
  61. package/build/components/number/index.js +0 -20
  62. package/build/components/overlay/index.d.ts +0 -6
  63. package/build/components/overlay/index.js +0 -8
  64. package/build/components/page/header.d.ts +0 -6
  65. package/build/components/page/header.js +0 -22
  66. package/build/components/page/index.d.ts +0 -22
  67. package/build/components/page/index.js +0 -16
  68. package/build/components/page/layout.d.ts +0 -5
  69. package/build/components/page/layout.js +0 -8
  70. package/build/components/root/index.d.ts +0 -9
  71. package/build/components/root/index.js +0 -9
  72. package/build/components/root/onclick.d.ts +0 -5
  73. package/build/components/root/onclick.js +0 -16
  74. package/build/components/scrollbar/index.d.ts +0 -11
  75. package/build/components/scrollbar/index.js +0 -38
  76. package/build/components/site/index.d.ts +0 -9
  77. package/build/components/site/index.js +0 -17
  78. package/build/components/tooltip/index.d.ts +0 -58
  79. package/build/components/tooltip/index.js +0 -75
  80. package/build/components/tooltip/menu.d.ts +0 -25
  81. package/build/components/tooltip/menu.js +0 -46
  82. package/build/index.d.ts +0 -2
  83. package/css/components/styles.css +0 -1
  84. package/css/components/variables.css +0 -1
  85. package/css/fonts/montserrat.css +0 -1
  86. package/css/normalizer.css +0 -1
  87. package/css/utilities/styles.css +0 -1
  88. package/css/utilities/variables.css +0 -1
  89. package/lib.scss +0 -3
  90. package/src/components/accordion/scss/index.scss +0 -16
  91. package/src/components/accordion/scss/variables.scss +0 -4
  92. package/src/components/alert/scss/index.scss +0 -55
  93. package/src/components/alert/scss/variables.scss +0 -8
  94. package/src/components/anchor/scss/index.scss +0 -41
  95. package/src/components/anchor/scss/variables.scss +0 -5
  96. package/src/components/banner/scss/index.scss +0 -40
  97. package/src/components/banner/scss/variables.scss +0 -6
  98. package/src/components/border/scss/index.scss +0 -10
  99. package/src/components/border/scss/variables.scss +0 -6
  100. package/src/components/bubble/scss/index.scss +0 -30
  101. package/src/components/bubble/scss/variables.scss +0 -19
  102. package/src/components/button/scss/index.scss +0 -92
  103. package/src/components/button/scss/variables.scss +0 -69
  104. package/src/components/card/scss/index.scss +0 -35
  105. package/src/components/card/scss/variables.scss +0 -42
  106. package/src/components/container/scss/index.scss +0 -10
  107. package/src/components/container/scss/variables.scss +0 -5
  108. package/src/components/ellipsis/scss/index.scss +0 -72
  109. package/src/components/ellipsis/scss/variables.scss +0 -3
  110. package/src/components/field/scss/_check.scss +0 -225
  111. package/src/components/field/scss/_normalize.scss +0 -36
  112. package/src/components/field/scss/_text.scss +0 -106
  113. package/src/components/field/scss/index.scss +0 -159
  114. package/src/components/field/scss/variables.scss +0 -138
  115. package/src/components/group/scss/index.scss +0 -36
  116. package/src/components/group/scss/variables.scss +0 -17
  117. package/src/components/icon/scss/index.scss +0 -17
  118. package/src/components/icon/scss/variables.scss +0 -7
  119. package/src/components/link/scss/index.scss +0 -28
  120. package/src/components/link/scss/variables.scss +0 -47
  121. package/src/components/loading/scss/index.scss +0 -24
  122. package/src/components/loading/scss/variables.scss +0 -31
  123. package/src/components/modal/scss/index.scss +0 -32
  124. package/src/components/modal/scss/variables.scss +0 -10
  125. package/src/components/page/scss/index.scss +0 -27
  126. package/src/components/page/scss/variables.scss +0 -27
  127. package/src/components/processing/scss/index.scss +0 -47
  128. package/src/components/processing/scss/variables.scss +0 -11
  129. package/src/components/root/scss/index.scss +0 -93
  130. package/src/components/root/scss/variables.scss +0 -55
  131. package/src/components/row/scss/index.scss +0 -7
  132. package/src/components/scrollbar/scss/index.scss +0 -59
  133. package/src/components/scrollbar/scss/variables.scss +0 -6
  134. package/src/components/sidebar/scss/index.scss +0 -50
  135. package/src/components/sidebar/scss/variables.scss +0 -21
  136. package/src/components/site/scss/index.scss +0 -3
  137. package/src/components/text/scss/index.scss +0 -12
  138. package/src/components/text/scss/variables.scss +0 -9
  139. package/src/components/thumbnail/scss/index.scss +0 -7
  140. package/src/components/thumbnail/scss/variables.scss +0 -7
  141. package/src/components/tooltip/scss/_center.scss +0 -13
  142. package/src/components/tooltip/scss/_east.scss +0 -34
  143. package/src/components/tooltip/scss/_north.scss +0 -34
  144. package/src/components/tooltip/scss/_south.scss +0 -35
  145. package/src/components/tooltip/scss/_west.scss +0 -34
  146. package/src/components/tooltip/scss/index.scss +0 -93
  147. package/src/components/tooltip/scss/variables.scss +0 -25
  148. package/src/css-utilities/[margin,padding]/scss/index.scss +0 -41
  149. package/src/css-utilities/[margin,padding]/scss/variables.scss +0 -54
  150. package/src/css-utilities/absolute/scss/index.scss +0 -59
  151. package/src/css-utilities/background/scss/variables.scss +0 -27
  152. package/src/css-utilities/border/scss/index.scss +0 -21
  153. package/src/css-utilities/border/scss/variables.scss +0 -66
  154. package/src/css-utilities/color/scss/variables.scss +0 -31
  155. package/src/css-utilities/disabled/scss/index.scss +0 -4
  156. package/src/css-utilities/flex/scss/index.scss +0 -65
  157. package/src/css-utilities/glass/scss/index.scss +0 -3
  158. package/src/css-utilities/glass/scss/variables.scss +0 -3
  159. package/src/css-utilities/hidden/scss/index.scss +0 -28
  160. package/src/css-utilities/index.scss +0 -14
  161. package/src/css-utilities/inline/scss/index.scss +0 -7
  162. package/src/css-utilities/line-height/scss/variables.scss +0 -10
  163. package/src/css-utilities/not-allowed/scss/index.scss +0 -7
  164. package/src/css-utilities/overflow/scss/index.scss +0 -5
  165. package/src/css-utilities/pointer/scss/index.scss +0 -5
  166. package/src/css-utilities/size/scss/variables.scss +0 -12
  167. package/src/css-utilities/slide/scss/index.scss +0 -20
  168. package/src/css-utilities/slide/scss/variables.scss +0 -6
  169. package/src/css-utilities/text/scss/index.scss +0 -93
  170. package/src/css-utilities/text/scss/variables.scss +0 -31
  171. package/src/css-utilities/transition/scss/variables.scss +0 -14
  172. package/src/css-utilities/viewport/scss/index.scss +0 -5
  173. package/src/css-utilities/width/scss/index.scss +0 -3
  174. package/src/css-utilities/width/scss/variables.scss +0 -9
  175. package/src/index.ts +0 -2
  176. package/src/lib/index.scss +0 -7
  177. package/src/lib/scss/breakpoint.scss +0 -41
  178. package/src/lib/scss/color.scss +0 -1
  179. package/src/lib/scss/css-variables.scss +0 -13
  180. package/src/lib/scss/list.scss +0 -76
  181. package/src/lib/scss/map.scss +0 -1
  182. package/src/lib/scss/position.scss +0 -77
  183. package/src/lib/scss/string.scss +0 -33
  184. package/src/tokens/index.scss +0 -11
  185. package/src/tokens/scss/border-radius.scss +0 -12
  186. package/src/tokens/scss/border-width.scss +0 -6
  187. package/src/tokens/scss/box-shadow.scss +0 -13
  188. package/src/tokens/scss/color.scss +0 -64
  189. package/src/tokens/scss/font-size.scss +0 -12
  190. package/src/tokens/scss/font-weight.scss +0 -6
  191. package/src/tokens/scss/line-height.scss +0 -6
  192. package/src/tokens/scss/size.scss +0 -13
  193. package/src/tokens/scss/spacer.scss +0 -8
  194. package/src/tokens/scss/state.scss +0 -86
  195. package/src/tokens/scss/transition-duration.scss +0 -5
  196. package/storage/fonts/montserrat/Montserrat-Bold.woff +0 -0
  197. package/storage/fonts/montserrat/Montserrat-Bold.woff2 +0 -0
  198. package/storage/fonts/montserrat/Montserrat-BoldItalic.woff +0 -0
  199. package/storage/fonts/montserrat/Montserrat-BoldItalic.woff2 +0 -0
  200. package/storage/fonts/montserrat/Montserrat-Italic.woff +0 -0
  201. package/storage/fonts/montserrat/Montserrat-Italic.woff2 +0 -0
  202. package/storage/fonts/montserrat/Montserrat-Medium.woff +0 -0
  203. package/storage/fonts/montserrat/Montserrat-Medium.woff2 +0 -0
  204. package/storage/fonts/montserrat/Montserrat-MediumItalic.woff +0 -0
  205. package/storage/fonts/montserrat/Montserrat-MediumItalic.woff2 +0 -0
  206. package/storage/fonts/montserrat/Montserrat-Regular.woff +0 -0
  207. package/storage/fonts/montserrat/Montserrat-Regular.woff2 +0 -0
  208. package/storage/fonts/montserrat/Montserrat-SemiBold.woff +0 -0
  209. package/storage/fonts/montserrat/Montserrat-SemiBold.woff2 +0 -0
  210. package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff +0 -0
  211. package/storage/fonts/montserrat/Montserrat-SemiBoldItalic.woff2 +0 -0
  212. package/storage/fonts/montserrat/index.css +0 -79
  213. package/storage/psd/Color Palette.psd +0 -0
  214. package/tokens.scss +0 -3
  215. package/tsconfig.json +0 -11
  216. package/webpack.config.ts +0 -33
@@ -1,8 +0,0 @@
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
- );
@@ -1,86 +0,0 @@
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
- }
@@ -1,5 +0,0 @@
1
- $transition-duration: (
2
- 300: 0.08s,
3
- 400: 0.16s,
4
- 500: 0.24s
5
- );
@@ -1,79 +0,0 @@
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/tokens.scss DELETED
@@ -1,3 +0,0 @@
1
- // Necessary to expose lib for 3rd party use
2
- // - Dart sass doesn't support changing root directory for the package to 'src'
3
- @forward './src/tokens';
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
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
- }
package/webpack.config.ts DELETED
@@ -1,33 +0,0 @@
1
- import { config, entry } from '@esportsplus/webpack';
2
-
3
-
4
- export default (env: { production?: boolean | string }) => {
5
- let production = env.production !== 'false';
6
-
7
- return config.web({
8
- cache: false,
9
- contenthash: false,
10
- entry: {
11
- css: {
12
- components: {
13
- styles: entry.css('src/components/**/index.scss'),
14
- variables: entry.css('src/components/**/variables.scss')
15
- },
16
- fonts: {
17
- montserrat: entry.css('storage/fonts/montserrat/index.css')
18
- },
19
- normalizer: entry.css('modern-normalize/modern-normalize.css'),
20
- utilities: {
21
- styles: entry.css('src/css-utilities/**/index.scss'),
22
- variables: entry.css('src/css-utilities/**/variables.scss')
23
- }
24
- }
25
- },
26
- mode: production ? 'production': 'development',
27
- // Temporary output until css root directory can be set through
28
- // package.json or similar ( like 'main' key )
29
- output: {
30
- path: '.'
31
- }
32
- });
33
- };