groovinads-ui 1.0.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 (66) hide show
  1. package/.babelrc +3 -0
  2. package/.storybook/main.js +19 -0
  3. package/.storybook/preview.js +13 -0
  4. package/.yarn/install-state.gz +0 -0
  5. package/.yarn/releases/yarn-4.1.1.cjs +893 -0
  6. package/.yarnrc.yml +3 -0
  7. package/package.json +40 -0
  8. package/src/components/Button/Button.jsx +104 -0
  9. package/src/components/Button/index.jsx +3 -0
  10. package/src/index.jsx +3 -0
  11. package/src/scss/abstracts/_borders-radius.scss +6 -0
  12. package/src/scss/abstracts/_colors.scss +33 -0
  13. package/src/scss/abstracts/_fonts.scss +8 -0
  14. package/src/scss/abstracts/_helpers.scss +7 -0
  15. package/src/scss/abstracts/_media-queries.scss +6 -0
  16. package/src/scss/abstracts/_mixins.scss +143 -0
  17. package/src/scss/abstracts/_spinner-duration.scss +1 -0
  18. package/src/scss/abstracts/_variables.scss +2 -0
  19. package/src/scss/animations/_alertToUp.scss +10 -0
  20. package/src/scss/animations/_aurora.scss +17 -0
  21. package/src/scss/animations/_colors.scss +15 -0
  22. package/src/scss/animations/_dash.scss +13 -0
  23. package/src/scss/animations/_fadeCopyFromLeft.scss +10 -0
  24. package/src/scss/animations/_goAndBack.scss +8 -0
  25. package/src/scss/animations/_inputUp.scss +10 -0
  26. package/src/scss/animations/_shake.scss +22 -0
  27. package/src/scss/animations/_showIn.scss +8 -0
  28. package/src/scss/animations/_showMenu.scss +12 -0
  29. package/src/scss/animations/_statusLine.scss +9 -0
  30. package/src/scss/animations/_toDown.scss +8 -0
  31. package/src/scss/animations/_toastFromLeft.scss +10 -0
  32. package/src/scss/animations/_toastFromRight.scss +10 -0
  33. package/src/scss/base/_base.scss +14 -0
  34. package/src/scss/base/_typography.scss +188 -0
  35. package/src/scss/components/_alerts.scss +115 -0
  36. package/src/scss/components/_breadcrumb.scss +30 -0
  37. package/src/scss/components/_buttons.scss +808 -0
  38. package/src/scss/components/_checks.scss +105 -0
  39. package/src/scss/components/_dropdown-deck.scss +115 -0
  40. package/src/scss/components/_dropdowns.scss +131 -0
  41. package/src/scss/components/_img-404.scss +6 -0
  42. package/src/scss/components/_inputs.scss +279 -0
  43. package/src/scss/components/_login-source.scss +19 -0
  44. package/src/scss/components/_modals.scss +89 -0
  45. package/src/scss/components/_nav-tabs.scss +38 -0
  46. package/src/scss/components/_pills.scss +88 -0
  47. package/src/scss/components/_radio.scss +102 -0
  48. package/src/scss/components/_shadows.scss +18 -0
  49. package/src/scss/components/_spinner.scss +20 -0
  50. package/src/scss/components/_status-icon.scss +61 -0
  51. package/src/scss/components/_switch.scss +77 -0
  52. package/src/scss/components/_tabulator.scss +386 -0
  53. package/src/scss/components/_textareas.scss +22 -0
  54. package/src/scss/components/_toast.scss +129 -0
  55. package/src/scss/custom/_campaign-id.scss +56 -0
  56. package/src/scss/custom/_img-not-found.scss +7 -0
  57. package/src/scss/custom/_modal-edit.scss +10 -0
  58. package/src/scss/index.jsx +0 -0
  59. package/src/scss/index.scss +9 -0
  60. package/src/scss/layout/_aurora.scss +39 -0
  61. package/src/scss/layout/_authentication.scss +65 -0
  62. package/src/scss/layout/_footer.scss +21 -0
  63. package/src/scss/layout/_main.scss +41 -0
  64. package/src/scss/layout/_navbar.scss +64 -0
  65. package/src/scss/views/_skeleton.scss +266 -0
  66. package/src/stories/Button.stories.jsx +11 -0
@@ -0,0 +1,188 @@
1
+ // Use
2
+ @use '../abstracts/helpers' as h;
3
+
4
+ // Fonts import
5
+ @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&family=Roboto+Mono&family=Roboto:wght@400;700&display=swap');
6
+
7
+ :root {
8
+ font-size: h.$font-size !important;
9
+ }
10
+
11
+ h1 {
12
+ @include h.font-family(h.$font-family-primary, 2.618rem, h.$secondary-blue, 700);
13
+ letter-spacing: -0.03em;
14
+ line-height: 2.618rem;
15
+ position: relative;
16
+
17
+ span {
18
+ &.highlighted {
19
+ background: linear-gradient(
20
+ 90deg,
21
+ h.$ga-brand-light,
22
+ h.$ga-brand-midtone,
23
+ h.$ga-brand-light
24
+ );
25
+ -webkit-background-clip: text;
26
+ background-clip: text;
27
+ color: transparent;
28
+ background-size: 300%;
29
+ background-position: -150%;
30
+ animation: grooveText 5s infinite alternate-reverse;
31
+ }
32
+ }
33
+ }
34
+
35
+ .text-center {
36
+ h1 {
37
+ &::after {
38
+ width: 8%;
39
+ left: 50%;
40
+ transform: translateX(-50%);
41
+ }
42
+ }
43
+ }
44
+
45
+ .text-lg-start {
46
+ h1 {
47
+ &::after {
48
+ @include h.respond-to(h.$lg) {
49
+ left: 0;
50
+ transform: none;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ h2 {
57
+ @include h.font-family(h.$font-family-secondary, 1.618rem, h.$secondary-blue, 700);
58
+ line-height: 1.2;
59
+ }
60
+
61
+ h3 {
62
+ @include h.font-family(h.$font-family-secondary, 1.1rem, h.$secondary-blue, 700);
63
+ line-height: 1.618rem;
64
+ }
65
+
66
+ h4 {
67
+ @include h.font-family(h.$font-family-secondary, 0.75rem, h.$secondary-blue, 700);
68
+ line-height: 0.75rem;
69
+ letter-spacing: 1.25px;
70
+ text-transform: uppercase;
71
+ margin-bottom: 0;
72
+ }
73
+
74
+ h5 {
75
+ @include h.font-family(h.$font-family-secondary, 1rem, h.$secondary-blue, 700);
76
+ line-height: 1.2em;
77
+ margin-bottom: 0;
78
+ }
79
+
80
+ p {
81
+ @include h.font-family(h.$font-family-secondary, 1rem, h.$grey-dark, 400);
82
+ line-height: 1.618rem;
83
+
84
+ &.highlighted {
85
+ padding: 0.618em 1.618em;
86
+ border-radius: 1.618rem;
87
+ font-size: 1rem;
88
+ line-height: 1.618em;
89
+
90
+ @include h.respond-to(h.$lg) {
91
+ padding: 1.618em 2.618em;
92
+ font-size: 1.618rem;
93
+ }
94
+
95
+ &.violet {
96
+ color: h.$ga-brand-midtone;
97
+ background-color: lighten(h.$ga-brand-midtone, 50%);
98
+ }
99
+ }
100
+
101
+ &.small {
102
+ font-size: 0.8rem;
103
+ line-height: 1.2;
104
+ }
105
+
106
+ &.link {
107
+ color: h.$ga-brand-light;
108
+ text-decoration: underline;
109
+ }
110
+ }
111
+
112
+ a {
113
+ color: h.$ga-brand-light;
114
+ @include h.transition(color, 0.15s, ease-in-out);
115
+
116
+ &:hover {
117
+ color: h.$ga-brand-midtone;
118
+ }
119
+ }
120
+
121
+ strong {
122
+ &.pill {
123
+ @include h.font-family(h.$font-family-secondary, 0.618rem, h.$ga-brand-dark, 700);
124
+ text-transform: uppercase;
125
+ letter-spacing: 0.1em;
126
+ padding: 0.382em 1em;
127
+ border-radius: h.$border-radius-sm;
128
+ display: inline-block;
129
+
130
+ &.grey {
131
+ color: h.$secondary-dark;
132
+ background-color: rgba(h.$secondary-dark, 0.2);
133
+ }
134
+
135
+ &.blue {
136
+ color: h.$secondary-blue-light;
137
+ background-color: rgba(h.$secondary-blue-light, 0.2);
138
+ }
139
+
140
+ &.cyan {
141
+ color: h.$ga-brand-light;
142
+ background-color: rgba(h.$ga-brand-light, 0.2);
143
+ }
144
+
145
+ &.violet {
146
+ color: h.$ga-brand-midtone;
147
+ background-color: lighten(h.$ga-brand-midtone, 50%);
148
+ }
149
+
150
+ &.white {
151
+ color: h.$white;
152
+ background-color: rgba(h.$white, 0.2);
153
+ }
154
+
155
+ &.pill-xl {
156
+ display: inline-block;
157
+ @include h.font-family(h.$font-family-primary, 2.618rem, h.$secondary-violet, 400);
158
+ line-height: 2.618rem;
159
+ letter-spacing: -0.03em;
160
+ padding: 0.618rem;
161
+ text-align: center;
162
+ margin-bottom: 1.618rem;
163
+ }
164
+ }
165
+ }
166
+
167
+ label {
168
+ @include h.font-family(h.$font-family-secondary, 1rem, h.$grey-dark, 400);
169
+ }
170
+
171
+ .form-control {
172
+ @include h.font-family(h.$font-family-secondary, 1rem, h.$ga-brand-dark, 400);
173
+
174
+ &::placeholder {
175
+ @include h.font-family(h.$font-family-secondary, 1rem, h.$grey-dark, 400);
176
+ }
177
+ }
178
+
179
+ .small,
180
+ small {
181
+ @include h.font-family(h.$font-family-secondary, 0.75rem, h.$grey-dark, 400);
182
+ line-height: 1;
183
+ }
184
+
185
+ .text-muted {
186
+ opacity: 1;
187
+ color: h.$grey-dark !important;
188
+ }
@@ -0,0 +1,115 @@
1
+ // Use
2
+ @use '../abstracts/helpers' as h;
3
+
4
+ // Forwards
5
+ @forward '../animations/alertToUp';
6
+
7
+ .alert {
8
+ padding: 0.5rem 1rem;
9
+ @include h.font-family(h.$font-family-secondary, 0.875rem, h.$grey-dark, 400);
10
+ line-height: 1;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ margin-bottom: 1rem;
15
+
16
+ .btn-close {
17
+ background: transparent;
18
+ padding: 0;
19
+ opacity: 1;
20
+ box-shadow: none;
21
+ border-radius: h.$border-radius-xs;
22
+ @include h.transition(background-color opacity box-shadow, 0.15s, ease-in-out);
23
+
24
+ &:hover,
25
+ &:focus {
26
+ box-shadow: 0 0 0.25rem rgba(13, 110, 253, 0.25);
27
+ }
28
+ }
29
+
30
+ .alert-wrapper {
31
+ display: flex;
32
+ align-items: center;
33
+ gap: 1em;
34
+ }
35
+
36
+ &.alert-danger {
37
+ color: h.$white;
38
+ background-color: h.$error;
39
+ border-color: h.$error;
40
+
41
+ .btn-close {
42
+ color: h.$white;
43
+
44
+ &:hover,
45
+ &:focus {
46
+ background-color: rgba(h.$white, 0.25);
47
+ box-shadow: 0 0 0.25rem rgba(h.$white, 0.25);
48
+ }
49
+ }
50
+ }
51
+
52
+ &.alert-warning {
53
+ color: h.$safeWarning;
54
+ background-color: h.$warning-bg;
55
+ border-color: h.$safeWarning;
56
+
57
+ .btn-close {
58
+ color: h.$safeWarning;
59
+
60
+ &:hover,
61
+ &:focus {
62
+ background-color: rgba(h.$safeWarning, 0.25);
63
+ box-shadow: 0 0 0.25rem rgba(h.$safeWarning, 0.25);
64
+ }
65
+ }
66
+ }
67
+
68
+ &.alert-success {
69
+ color: h.$safeSuccess;
70
+ background-color: h.$success-bg;
71
+ border-color: h.$safeSuccess;
72
+
73
+ .btn-close {
74
+ color: h.$safeSuccess;
75
+
76
+ &:hover,
77
+ &:focus {
78
+ background-color: rgba(h.$safeSuccess, 0.25);
79
+ box-shadow: 0 0 0.25rem rgba(h.$safeSuccess, 0.25);
80
+ }
81
+ }
82
+ }
83
+
84
+ &.alert-info {
85
+ color: h.$secondary-blue-light;
86
+ background-color: lighten(h.$secondary-blue-light, 40%);
87
+ border-color: h.$secondary-blue-light;
88
+
89
+ .btn-close {
90
+ color: h.$secondary-blue-light;
91
+
92
+ &:hover,
93
+ &:focus {
94
+ background-color: rgba(h.$secondary-blue-light, 0.25);
95
+ box-shadow: 0 0 0.25rem rgba(h.$secondary-blue-light, 0.25);
96
+ }
97
+ }
98
+ }
99
+
100
+ // Animation
101
+ &.alert-animation {
102
+ animation: alertToUp 0.25s ease-out both;
103
+ }
104
+
105
+ // Sizes
106
+ &.alert-xs {
107
+ font-size: 0.75rem;
108
+ padding: 0.5em 1em;
109
+ }
110
+
111
+ &.alert-lg {
112
+ font-size: 2rem;
113
+ padding: 0.4689em 1em;
114
+ }
115
+ }
@@ -0,0 +1,30 @@
1
+ // Use
2
+ @use '../abstracts/helpers' as h;
3
+
4
+ .breadcrumb {
5
+ .breadcrumb-item {
6
+ @include h.font-family(h.$font-family-secondary, 0.75rem, h.$grey-dark, 700);
7
+ line-height: 0.75rem;
8
+ letter-spacing: 1.25px;
9
+ text-transform: uppercase;
10
+ margin-bottom: 0;
11
+ padding-left: 1em;
12
+ display: flex;
13
+ align-items: center;
14
+ gap: 0.75rem;
15
+
16
+ &:first-child {
17
+ padding-left: 0;
18
+ }
19
+
20
+ &:nth-child(2) {
21
+ &::before {
22
+ display: none;
23
+ }
24
+ }
25
+
26
+ a {
27
+ color: h.$grey-dark;
28
+ }
29
+ }
30
+ }