@esportsplus/ui 0.0.1 → 0.0.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 (88) hide show
  1. package/.gitattributes +2 -2
  2. package/components/accordion/scss/accordion.scss +16 -16
  3. package/components/accordion/scss/variables.scss +4 -4
  4. package/components/anchor/scss/anchor.scss +41 -41
  5. package/components/anchor/scss/anchors.scss +9 -9
  6. package/components/anchor/scss/variables.scss +5 -5
  7. package/components/banner/scss/banner.scss +13 -13
  8. package/components/border/scss/border.scss +10 -10
  9. package/components/border/scss/variables.scss +6 -6
  10. package/components/bubble/scss/bubble.scss +30 -30
  11. package/components/bubble/scss/variables.scss +19 -19
  12. package/components/button/scss/button.scss +93 -93
  13. package/components/button/scss/variables.scss +70 -70
  14. package/components/card/scss/card.scss +36 -36
  15. package/components/card/scss/variables.scss +42 -42
  16. package/components/container/scss/container.scss +10 -10
  17. package/components/container/scss/variables.scss +5 -5
  18. package/components/field/scss/_check.scss +225 -225
  19. package/components/field/scss/_normalize.scss +36 -36
  20. package/components/field/scss/_text.scss +103 -103
  21. package/components/field/scss/field.scss +137 -132
  22. package/components/field/scss/variables.scss +138 -133
  23. package/components/group/scss/group.scss +41 -41
  24. package/components/group/scss/variables.scss +25 -25
  25. package/components/icon/scss/icon.scss +18 -18
  26. package/components/icon/scss/variables.scss +8 -8
  27. package/components/link/scss/link.scss +29 -29
  28. package/components/link/scss/variables.scss +48 -48
  29. package/components/loading/scss/loading.scss +24 -24
  30. package/components/loading/scss/variables.scss +31 -31
  31. package/components/page/scss/page.scss +22 -22
  32. package/components/page/scss/variables.scss +19 -19
  33. package/components/root/scss/root.scss +93 -93
  34. package/components/root/scss/variables.scss +54 -54
  35. package/components/row/scss/row.scss +8 -8
  36. package/components/scrollbar/scss/scrollbar.scss +51 -51
  37. package/components/scrollbar/scss/variables.scss +8 -8
  38. package/components/sidebar/scss/sidebar.scss +50 -50
  39. package/components/sidebar/scss/sidebars.scss +13 -13
  40. package/components/sidebar/scss/variables.scss +25 -25
  41. package/components/text/scss/text.scss +12 -12
  42. package/components/text/scss/variables.scss +9 -9
  43. package/components/thumbnail/scss/thumbnail.scss +7 -7
  44. package/components/thumbnail/scss/variables.scss +7 -7
  45. package/components/tooltip/scss/_center.scss +13 -13
  46. package/components/tooltip/scss/_east.scss +34 -34
  47. package/components/tooltip/scss/_north.scss +34 -34
  48. package/components/tooltip/scss/_south.scss +35 -35
  49. package/components/tooltip/scss/_west.scss +34 -34
  50. package/components/tooltip/scss/tooltip.scss +107 -107
  51. package/components/tooltip/scss/variables.scss +25 -25
  52. package/css-utilities/[margin,padding]/scss/styles.scss +41 -41
  53. package/css-utilities/[margin,padding]/scss/variables.scss +52 -52
  54. package/css-utilities/[max,min]/scss/variables.scss +23 -23
  55. package/css-utilities/absolute/scss/absolute.scss +59 -59
  56. package/css-utilities/background/scss/variables.scss +28 -28
  57. package/css-utilities/border/scss/border.scss +21 -21
  58. package/css-utilities/border/scss/variables.scss +66 -66
  59. package/css-utilities/color/scss/variables.scss +32 -32
  60. package/css-utilities/flex/scss/flex.scss +67 -67
  61. package/css-utilities/hidden/scss/hidden.scss +28 -28
  62. package/css-utilities/index.scss +14 -14
  63. package/css-utilities/pointer/scss/pointer.scss +5 -5
  64. package/css-utilities/size/scss/variables.scss +12 -12
  65. package/css-utilities/slide/scss/slide.scss +20 -20
  66. package/css-utilities/slide/scss/variables.scss +6 -6
  67. package/css-utilities/text/scss/text.scss +93 -93
  68. package/css-utilities/text/scss/variables.scss +31 -31
  69. package/css-utilities/width/scss/variables.scss +12 -12
  70. package/lib/index.scss +7 -7
  71. package/lib/scss/color.scss +8 -8
  72. package/lib/scss/list.scss +112 -112
  73. package/lib/scss/string.scss +54 -54
  74. package/package.json +22 -22
  75. package/storage/fonts/Montserrat/montserrat.css +79 -79
  76. package/tokens/index.scss +11 -11
  77. package/tokens/scss/border-radius.scss +12 -12
  78. package/tokens/scss/border-width.scss +6 -6
  79. package/tokens/scss/box-shadow.scss +13 -13
  80. package/tokens/scss/breakpoints.scss +13 -13
  81. package/tokens/scss/color.scss +71 -71
  82. package/tokens/scss/font-size.scss +12 -12
  83. package/tokens/scss/font-weight.scss +6 -6
  84. package/tokens/scss/line-height.scss +6 -6
  85. package/tokens/scss/size.scss +13 -13
  86. package/tokens/scss/state.scss +93 -93
  87. package/tokens/scss/transition-duration.scss +5 -5
  88. package/webpack.sass.config.js +59 -59
@@ -1,36 +1,36 @@
1
- @mixin normalize() {
2
- button,
3
- input,
4
- select,
5
- textarea {
6
- background: transparent;
7
- border-radius: 0;
8
- border: 0;
9
- font-family: inherit;
10
- font-size: inherit;
11
- line-height: inherit;
12
- margin: 0;
13
- padding: 0;
14
-
15
- &,
16
- &:active,
17
- &:focus,
18
- &:hover {
19
- outline: none;
20
- }
21
-
22
- &:invalid {
23
- box-shadow: none;
24
- }
25
- }
26
-
27
- form {
28
- margin: 0;
29
- padding: 0;
30
- width: 100%;
31
- }
32
-
33
- label {
34
- cursor: pointer;
35
- }
36
- }
1
+ @mixin normalize() {
2
+ button,
3
+ input,
4
+ select,
5
+ textarea {
6
+ background: transparent;
7
+ border-radius: 0;
8
+ border: 0;
9
+ font-family: inherit;
10
+ font-size: inherit;
11
+ line-height: inherit;
12
+ margin: 0;
13
+ padding: 0;
14
+
15
+ &,
16
+ &:active,
17
+ &:focus,
18
+ &:hover {
19
+ outline: none;
20
+ }
21
+
22
+ &:invalid {
23
+ box-shadow: none;
24
+ }
25
+ }
26
+
27
+ form {
28
+ margin: 0;
29
+ padding: 0;
30
+ width: 100%;
31
+ }
32
+
33
+ label {
34
+ cursor: pointer;
35
+ }
36
+ }
@@ -1,103 +1,103 @@
1
- @use 'ui/lib';
2
- @use 'ui/tokens';
3
-
4
- @mixin css() {
5
- &-mask {
6
- &--input,
7
- &--select {
8
- align-items: center;
9
- background: var(--background);
10
- border: var(--border-width) var(--border-style) var(--border-color);
11
- border-radius: var(--border-radius);
12
- display: flex;
13
- flex-wrap: wrap;
14
- font-size: var(--font-size);
15
- line-height: var(--line-height);
16
- position: relative;
17
- width: 100%;
18
-
19
- &:invalid,
20
- &:required {
21
- box-shadow: none;
22
- }
23
-
24
- &,
25
- .field-tag {
26
- color: var(--color);
27
- }
28
- }
29
-
30
- // Truncate Overflowing Text
31
- &--input .field-tag,
32
- &--select .field-text {
33
- overflow: hidden;
34
- text-overflow: ellipsis;
35
- white-space: nowrap;
36
- }
37
-
38
- &--input {
39
- cursor: text;
40
- // Necessary To Maintain Height Of Hidden Password Fields In Floating Modals
41
- // - Password Managers Cause Problems When Fields Are Not Using 'display:hidden' On Password Fields
42
- min-height: calc((var(--padding-vertical) * 2) + var(--size));
43
-
44
- .field-tag {
45
- flex: 1 1 auto;
46
- padding: var(--padding-vertical) var(--padding-horizontal);
47
- min-width: 0;
48
-
49
- &[type='number'] {
50
- appearance: textfield;
51
- }
52
- }
53
- }
54
-
55
- &--select {
56
- cursor: pointer;
57
- padding: var(--padding-vertical) calc((var(--padding-horizontal) / 1.5) + var(--arrow-size)) var(--padding-vertical) var(--padding-horizontal);
58
-
59
- &.--padding {
60
- padding-right: calc((var(--padding-horizontal) * 1.5) + var(--arrow-size));
61
- }
62
- }
63
-
64
- // Down Arrow
65
- &-arrow {
66
- @include lib.position(absolute, null calc(var(--padding-horizontal) + var(--arrow-spacer)) calc(50% + var(--arrow-spacer)) null);
67
- border-color: var(--border-color);
68
- border-style: var(--border-style);
69
- border-width: 0 var(--border-width) var(--border-width) 0;
70
- content: '';
71
- height: var(--arrow-size);
72
- transform: translateY(50%) rotate(45deg);
73
- width: var(--arrow-size);
74
- }
75
- }
76
-
77
- &-text {
78
- padding-right: var(--padding-horizontal);
79
- }
80
- }
81
-
82
- @mixin variables() {
83
- &-mask {
84
- &--input,
85
- &--select {
86
- --font-size: var(--font-size-400);
87
- --line-height: var(--line-height-400);
88
- }
89
-
90
- &--input {
91
- --size: var(--size-400);
92
- }
93
-
94
- &--select {
95
- --arrow-spacer: 1px;
96
- --arrow-size: 6px;
97
- }
98
-
99
- &-arrow {
100
- --border-width: var(--border-width-500);
101
- }
102
- }
103
- }
1
+ @use 'ui/lib';
2
+ @use 'ui/tokens';
3
+
4
+ @mixin css() {
5
+ &-mask {
6
+ &--input,
7
+ &--select {
8
+ align-items: center;
9
+ background: var(--background);
10
+ border: var(--border-width) var(--border-style) var(--border-color);
11
+ border-radius: var(--border-radius);
12
+ display: flex;
13
+ flex-wrap: wrap;
14
+ font-size: var(--font-size);
15
+ line-height: var(--line-height);
16
+ position: relative;
17
+ width: 100%;
18
+
19
+ &:invalid,
20
+ &:required {
21
+ box-shadow: none;
22
+ }
23
+
24
+ &,
25
+ .field-tag {
26
+ color: var(--color);
27
+ }
28
+ }
29
+
30
+ // Truncate Overflowing Text
31
+ &--input .field-tag,
32
+ &--select .field-text {
33
+ overflow: hidden;
34
+ text-overflow: ellipsis;
35
+ white-space: nowrap;
36
+ }
37
+
38
+ &--input {
39
+ cursor: text;
40
+ // Necessary To Maintain Height Of Hidden Password Fields In Floating Modals
41
+ // - Password Managers Cause Problems When Fields Are Not Using 'display:hidden' On Password Fields
42
+ min-height: calc((var(--padding-vertical) * 2) + var(--size));
43
+
44
+ .field-tag {
45
+ flex: 1 1 auto;
46
+ padding: var(--padding-vertical) var(--padding-horizontal);
47
+ min-width: 0;
48
+
49
+ &[type='number'] {
50
+ appearance: textfield;
51
+ }
52
+ }
53
+ }
54
+
55
+ &--select {
56
+ cursor: pointer;
57
+ padding: var(--padding-vertical) calc((var(--padding-horizontal) / 1.5) + var(--arrow-size)) var(--padding-vertical) var(--padding-horizontal);
58
+
59
+ &.--padding {
60
+ padding-right: calc((var(--padding-horizontal) * 1.5) + var(--arrow-size));
61
+ }
62
+ }
63
+
64
+ // Down Arrow
65
+ &-arrow {
66
+ @include lib.position(absolute, null calc(var(--padding-horizontal) + var(--arrow-spacer)) calc(50% + var(--arrow-spacer)) null);
67
+ border-color: var(--border-color);
68
+ border-style: var(--border-style);
69
+ border-width: 0 var(--border-width) var(--border-width) 0;
70
+ content: '';
71
+ height: var(--arrow-size);
72
+ transform: translateY(50%) rotate(45deg);
73
+ width: var(--arrow-size);
74
+ }
75
+ }
76
+
77
+ &-text {
78
+ padding-right: var(--padding-horizontal);
79
+ }
80
+ }
81
+
82
+ @mixin variables() {
83
+ &-mask {
84
+ &--input,
85
+ &--select {
86
+ --font-size: var(--font-size-400);
87
+ --line-height: var(--line-height-400);
88
+ }
89
+
90
+ &--input {
91
+ --size: var(--size-400);
92
+ }
93
+
94
+ &--select {
95
+ --arrow-spacer: 1px;
96
+ --arrow-size: 6px;
97
+ }
98
+
99
+ &-arrow {
100
+ --border-width: var(--border-width-500);
101
+ }
102
+ }
103
+ }
@@ -1,132 +1,137 @@
1
- /**
2
- *------------------------------------------------------------------------------
3
- *
4
- * Form Fields
5
- *
6
- * Fields Were Originally Placed Within A '.form' Selector BUT Fields Are Not
7
- * Always Used Within A Form Tag So Here We Are.
8
- *
9
- */
10
-
11
- @use 'ui/lib';
12
- @use 'ui/tokens';
13
- @use 'check' as check;
14
- @use 'normalize' as *;
15
- @use 'text' as text;
16
-
17
- @include normalize();
18
-
19
- .field {
20
- display: flex;
21
- position: relative;
22
- transition:
23
- background var(--transition-duration) ease-in-out,
24
- border-color var(--transition-duration) ease-in-out,
25
- box-shadow var(--transition-duration) ease-in-out,
26
- color var(--transition-duration) ease-in-out,
27
- opacity var(--transition-duration) ease-in-out;
28
- width: var(--width);
29
- z-index: 1;
30
-
31
- @include tokens.state(hover) {
32
- z-index: 8;
33
- }
34
-
35
- @include tokens.state(active) {
36
- z-index: 9;
37
- }
38
-
39
-
40
- &--optional {
41
- max-height: var(--max-height);
42
- opacity: 0;
43
- pointer-events: none;
44
- transition:
45
- background var(--transition-duration) ease-in-out,
46
- border-color var(--transition-duration) ease-in-out,
47
- box-shadow var(--transition-duration) ease-in-out,
48
- color var(--transition-duration) ease-in-out,
49
- max-height var(--transition-duration) ease-in-out,
50
- opacity var(--transition-duration) ease-in-out;
51
-
52
- #{tokens.state(active, '.field')} & {
53
- opacity: 1;
54
- pointer-events: auto;
55
- }
56
- }
57
-
58
-
59
- &-description,
60
- &-title {
61
- color: var(--color);
62
- font-size: var(--font-size);
63
- position: relative;
64
- width: 100%;
65
- word-wrap: break-word;
66
- }
67
-
68
- &-mask {
69
- // Pseudo Element Box Shadow
70
- &::after {
71
- @include lib.position(absolute, full);
72
- border-radius: inherit;
73
- box-shadow: var(--box-shadow);
74
- content: '';
75
- pointer-events: none;
76
- transition:
77
- box-shadow var(--transition-duration) ease-in-out,
78
- opacity var(--transition-duration) ease-in-out,
79
- transform var(--transition-duration) ease-in-out;
80
- z-index: 0;
81
- }
82
-
83
- &--flat {
84
- &::after {
85
- display: none;
86
- }
87
- }
88
-
89
- &--outline {
90
- &::before {
91
- @include lib.position(absolute, full);
92
- box-shadow: 0 0 0 var(--outline-width) var(--border-color);
93
- border-radius: var(--border-radius);
94
- content: '';
95
- opacity: var(--outline-opacity);
96
- pointer-events: none;
97
- transition:
98
- box-shadow var(--transition-duration) ease-in-out,
99
- opacity var(--transition-duration) ease-in-out;
100
- z-index: 0;
101
- }
102
- }
103
- }
104
-
105
- &-required {
106
- background: var(--background);
107
- border-radius: var(--border-radius);
108
- height: var(--size);
109
- width: var(--size);
110
- }
111
-
112
- &-tag {
113
- &--hidden {
114
- @include lib.position(absolute, 0 null null 0);
115
- appearance: none;
116
- height: 0px;
117
- opacity: 0;
118
- pointer-events: none;
119
- width: 0px;
120
- z-index: -1;
121
- }
122
- }
123
-
124
- &-title {
125
- font-weight: var(--font-weight);
126
- z-index: 1;
127
- }
128
-
129
-
130
- @include check.css();
131
- @include text.css();
132
- }
1
+ /**
2
+ *------------------------------------------------------------------------------
3
+ *
4
+ * Form Fields
5
+ *
6
+ * Fields Were Originally Placed Within A '.form' Selector BUT Fields Are Not
7
+ * Always Used Within A Form Tag So Here We Are.
8
+ *
9
+ */
10
+
11
+ @use 'ui/lib';
12
+ @use 'ui/tokens';
13
+ @use 'check' as check;
14
+ @use 'normalize' as *;
15
+ @use 'text' as text;
16
+
17
+ @include normalize();
18
+
19
+ .field {
20
+ display: flex;
21
+ position: relative;
22
+ transition:
23
+ background var(--transition-duration) ease-in-out,
24
+ border-color var(--transition-duration) ease-in-out,
25
+ box-shadow var(--transition-duration) ease-in-out,
26
+ color var(--transition-duration) ease-in-out,
27
+ opacity var(--transition-duration) ease-in-out;
28
+ width: var(--width);
29
+ z-index: 1;
30
+
31
+ @include tokens.state(hover) {
32
+ z-index: 8;
33
+ }
34
+
35
+ @include tokens.state(active) {
36
+ z-index: 9;
37
+ }
38
+
39
+
40
+ &--optional {
41
+ max-height: var(--max-height);
42
+ opacity: 0;
43
+ pointer-events: none;
44
+ transition:
45
+ background var(--transition-duration) ease-in-out,
46
+ border-color var(--transition-duration) ease-in-out,
47
+ box-shadow var(--transition-duration) ease-in-out,
48
+ color var(--transition-duration) ease-in-out,
49
+ max-height var(--transition-duration) ease-in-out,
50
+ opacity var(--transition-duration) ease-in-out;
51
+
52
+ #{tokens.state(active, '.field')} & {
53
+ opacity: 1;
54
+ pointer-events: auto;
55
+ }
56
+ }
57
+
58
+
59
+ &-description,
60
+ &-error,
61
+ &-title {
62
+ color: var(--color);
63
+ font-size: var(--font-size);
64
+ position: relative;
65
+ width: 100%;
66
+ word-wrap: break-word;
67
+
68
+ &:empty {
69
+ margin: 0;
70
+ }
71
+ }
72
+
73
+ &-mask {
74
+ // Pseudo Element Box Shadow
75
+ &::after {
76
+ @include lib.position(absolute, full);
77
+ border-radius: inherit;
78
+ box-shadow: var(--box-shadow);
79
+ content: '';
80
+ pointer-events: none;
81
+ transition:
82
+ box-shadow var(--transition-duration) ease-in-out,
83
+ opacity var(--transition-duration) ease-in-out,
84
+ transform var(--transition-duration) ease-in-out;
85
+ z-index: 0;
86
+ }
87
+
88
+ &--flat {
89
+ &::after {
90
+ display: none;
91
+ }
92
+ }
93
+
94
+ &--outline {
95
+ &::before {
96
+ @include lib.position(absolute, full);
97
+ box-shadow: 0 0 0 var(--outline-width) var(--border-color);
98
+ border-radius: var(--border-radius);
99
+ content: '';
100
+ opacity: var(--outline-opacity);
101
+ pointer-events: none;
102
+ transition:
103
+ box-shadow var(--transition-duration) ease-in-out,
104
+ opacity var(--transition-duration) ease-in-out;
105
+ z-index: 0;
106
+ }
107
+ }
108
+ }
109
+
110
+ &-required {
111
+ background: var(--background);
112
+ border-radius: var(--border-radius);
113
+ height: var(--size);
114
+ width: var(--size);
115
+ }
116
+
117
+ &-tag {
118
+ &--hidden {
119
+ @include lib.position(absolute, 0 null null 0);
120
+ appearance: none;
121
+ height: 0px;
122
+ opacity: 0;
123
+ pointer-events: none;
124
+ width: 0px;
125
+ z-index: -1;
126
+ }
127
+ }
128
+
129
+ &-title {
130
+ font-weight: var(--font-weight);
131
+ z-index: 1;
132
+ }
133
+
134
+
135
+ @include check.css();
136
+ @include text.css();
137
+ }