@moises.ai/design-system 3.9.4 → 3.9.6
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.
package/package.json
CHANGED
|
@@ -16,7 +16,20 @@ export const Countdown = ({
|
|
|
16
16
|
variant = 'lg',
|
|
17
17
|
className,
|
|
18
18
|
showDays = true,
|
|
19
|
+
labels = {},
|
|
19
20
|
}) => {
|
|
21
|
+
const {
|
|
22
|
+
days: daysLabel,
|
|
23
|
+
hours: hoursLabel,
|
|
24
|
+
minutes: minutesLabel,
|
|
25
|
+
seconds: secondsLabel,
|
|
26
|
+
} = {
|
|
27
|
+
days: labels.days ?? i18n._('Days'),
|
|
28
|
+
hours: labels.hours ?? i18n._('Hours'),
|
|
29
|
+
minutes: labels.minutes ?? i18n._('Minutes'),
|
|
30
|
+
seconds: labels.seconds ?? i18n._('Sec'),
|
|
31
|
+
}
|
|
32
|
+
|
|
20
33
|
if (!show || ended) {
|
|
21
34
|
return null
|
|
22
35
|
}
|
|
@@ -51,7 +64,7 @@ export const Countdown = ({
|
|
|
51
64
|
{padZero(days)}
|
|
52
65
|
</p>
|
|
53
66
|
<p className={classNames(styles.labelSmall, themeClass)}>
|
|
54
|
-
{
|
|
67
|
+
{daysLabel}
|
|
55
68
|
</p>
|
|
56
69
|
</div>
|
|
57
70
|
<p className={classNames(styles.colon, themeClass)}>:</p>
|
|
@@ -63,7 +76,7 @@ export const Countdown = ({
|
|
|
63
76
|
{padZero(hours)}
|
|
64
77
|
</p>
|
|
65
78
|
<p className={classNames(styles.labelSmall, themeClass)}>
|
|
66
|
-
{
|
|
79
|
+
{hoursLabel}
|
|
67
80
|
</p>
|
|
68
81
|
</div>
|
|
69
82
|
<p className={classNames(styles.colon, themeClass)}>:</p>
|
|
@@ -73,7 +86,7 @@ export const Countdown = ({
|
|
|
73
86
|
{padZero(minutes)}
|
|
74
87
|
</p>
|
|
75
88
|
<p className={classNames(styles.labelSmall, themeClass)}>
|
|
76
|
-
{
|
|
89
|
+
{minutesLabel}
|
|
77
90
|
</p>
|
|
78
91
|
</div>
|
|
79
92
|
{(days <= 0 || !showDays) && (
|
|
@@ -86,7 +99,7 @@ export const Countdown = ({
|
|
|
86
99
|
{padZero(seconds)}
|
|
87
100
|
</p>
|
|
88
101
|
<p className={classNames(styles.labelSmall, themeClass)}>
|
|
89
|
-
{
|
|
102
|
+
{secondsLabel}
|
|
90
103
|
</p>
|
|
91
104
|
</div>
|
|
92
105
|
)}
|
|
@@ -23,6 +23,10 @@ export default {
|
|
|
23
23
|
options: ['sm', 'md', 'lg'],
|
|
24
24
|
},
|
|
25
25
|
showDays: { control: 'boolean' },
|
|
26
|
+
labels: {
|
|
27
|
+
control: 'object',
|
|
28
|
+
description: 'Labels for days, hours, minutes and seconds',
|
|
29
|
+
},
|
|
26
30
|
},
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -104,5 +108,11 @@ export const Default = {
|
|
|
104
108
|
theme: 'default',
|
|
105
109
|
variant: 'lg',
|
|
106
110
|
showDays: true,
|
|
111
|
+
labels: {
|
|
112
|
+
days: 'Dias',
|
|
113
|
+
hours: 'Horas',
|
|
114
|
+
minutes: 'minutos',
|
|
115
|
+
seconds: 'segundos',
|
|
116
|
+
},
|
|
107
117
|
},
|
|
108
118
|
}
|
|
@@ -375,7 +375,7 @@ export const SetlistList = ({
|
|
|
375
375
|
>
|
|
376
376
|
<div
|
|
377
377
|
ref={hoverRegionRef}
|
|
378
|
-
className={styles.hoverRegion}
|
|
378
|
+
className={classNames(styles.hoverRegion, styles.scrollShadow)}
|
|
379
379
|
onMouseEnter={handleMouseEnter}
|
|
380
380
|
onMouseLeave={handleMouseLeave}
|
|
381
381
|
onFocusCapture={handleFocus}
|
|
@@ -4,44 +4,43 @@
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.newSetlistItem {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
align-items: center;
|
|
15
|
-
width: calc(100% - 24px);
|
|
16
|
-
|
|
17
|
-
&:focus-visible {
|
|
18
|
-
outline: 2px solid var(--neutral-alpha-8);
|
|
19
|
-
outline-offset: -1px;
|
|
20
|
-
}
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
margin: 0 12px;
|
|
9
|
+
padding: 2px;
|
|
10
|
+
border-radius: 6px;
|
|
21
11
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
width: calc(100% - 24px);
|
|
25
16
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.dropdownMenuTrigger {
|
|
30
|
-
color: var(--neutral-alpha-7);
|
|
31
|
-
}
|
|
32
|
-
.dropdownTriggerWrapper {
|
|
33
|
-
opacity: 1;
|
|
34
|
-
pointer-events: auto;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
17
|
+
&:focus-visible {
|
|
18
|
+
outline: 2px solid var(--neutral-alpha-8);
|
|
19
|
+
outline-offset: -1px;
|
|
37
20
|
}
|
|
38
21
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
&:hover,
|
|
23
|
+
&.menuOpen {
|
|
24
|
+
background: #212225 !important;
|
|
25
|
+
|
|
26
|
+
.avatarSetlist {
|
|
27
|
+
background: var(--neutral-alpha-3);
|
|
28
|
+
}
|
|
29
|
+
.dropdownMenuTrigger {
|
|
30
|
+
color: var(--neutral-alpha-7);
|
|
31
|
+
}
|
|
32
|
+
.dropdownTriggerWrapper {
|
|
33
|
+
opacity: 1;
|
|
34
|
+
pointer-events: auto;
|
|
35
|
+
}
|
|
44
36
|
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.collapsed {
|
|
40
|
+
width: fit-content;
|
|
41
|
+
padding: 2px;
|
|
42
|
+
margin: 0 10px;
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
.dropdownTriggerWrapper {
|
|
47
46
|
display: flex;
|
|
@@ -54,19 +53,19 @@
|
|
|
54
53
|
margin-left: auto;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
|
|
56
|
+
/* .dropdownTriggerWrapperMobile {
|
|
58
57
|
padding: 8px;
|
|
59
58
|
} */
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
.collapsed .dropdownTriggerWrapper {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
}
|
|
64
63
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
64
|
+
.dropdownMenuTrigger {
|
|
65
|
+
color: var(--neutral-alpha-7);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* .dropdownTriggerWrapper:hover .dropdownMenuTrigger,
|
|
70
69
|
.menuOpen .dropdownTriggerWrapper .dropdownMenuTrigger {
|
|
71
70
|
color: var(--neutral-alpha-11);
|
|
72
71
|
background-color: rgba(255, 255, 255, 0.07);
|
|
@@ -75,158 +74,178 @@
|
|
|
75
74
|
height: 24px;
|
|
76
75
|
}
|
|
77
76
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
.avatarSetlist {
|
|
78
|
+
display: flex;
|
|
79
|
+
width: 40px;
|
|
80
|
+
height: 40px;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
align-items: center;
|
|
83
|
+
gap: 8px;
|
|
84
|
+
aspect-ratio: 1/1;
|
|
85
|
+
border-radius: 4px;
|
|
86
|
+
background: var(--neutral-2);
|
|
87
|
+
color: var(--neutral-alpha-8);
|
|
88
|
+
flex-shrink: 0;
|
|
90
89
|
position: relative;
|
|
91
90
|
z-index: 1;
|
|
92
|
-
|
|
91
|
+
}
|
|
93
92
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
.avatarClickable {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
97
|
+
.iconGrid {
|
|
98
|
+
display: grid;
|
|
99
|
+
grid-template-columns: 1fr 1fr;
|
|
100
|
+
grid-template-rows: 1fr 1fr;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
border-radius: 4px;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
background: var(--neutral-2);
|
|
106
|
+
}
|
|
108
107
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
.iconGridCell {
|
|
109
|
+
position: relative;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
}
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
113
|
+
.iconGridCell img {
|
|
114
|
+
position: absolute;
|
|
115
|
+
inset: 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
118
|
+
object-fit: cover;
|
|
119
|
+
}
|
|
121
120
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
.textNewSetlist {
|
|
122
|
+
max-width: 115px;
|
|
123
|
+
opacity: 1;
|
|
125
124
|
transition: opacity 360ms ease-in-out;
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
white-space: nowrap;
|
|
126
|
+
}
|
|
128
127
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
.collapsed .textNewSetlist {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
}
|
|
132
131
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
.textSubtitle {
|
|
133
|
+
max-width: 95px;
|
|
134
|
+
color: var(--neutral-alpha-10);
|
|
135
|
+
opacity: 1;
|
|
137
136
|
transition: opacity 360ms ease-in-out;
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
140
139
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
.collapsed .textSubtitle {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
}
|
|
144
143
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
.textSubtitleIcon {
|
|
145
|
+
color: var(--neutral-alpha-10);
|
|
146
|
+
opacity: 1;
|
|
148
147
|
transition: opacity 360ms ease-in-out;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
.collapsed .textSubtitleIcon {
|
|
152
|
-
opacity: 0;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
.navItemSelected {
|
|
157
|
-
border-radius: var(--Radius-3-max, 6px);
|
|
158
|
-
background: var(--neutral-alpha-3);
|
|
148
|
+
}
|
|
159
149
|
|
|
160
|
-
|
|
161
|
-
|
|
150
|
+
.collapsed .textSubtitleIcon {
|
|
151
|
+
opacity: 0;
|
|
152
|
+
}
|
|
162
153
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
154
|
+
.navItemSelected {
|
|
155
|
+
border-radius: var(--Radius-3-max, 6px);
|
|
156
|
+
background: var(--neutral-alpha-3);
|
|
166
157
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
background: transparent !important;
|
|
158
|
+
&.collapsed {
|
|
159
|
+
/* background: transparent; */
|
|
170
160
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
}
|
|
161
|
+
.avatarSetlist {
|
|
162
|
+
background: var(--neutral-2);
|
|
175
163
|
}
|
|
176
164
|
|
|
177
165
|
&:hover,
|
|
178
166
|
&.menuOpen {
|
|
179
|
-
|
|
180
|
-
background: var(--neutral-alpha-3) !important;
|
|
167
|
+
background: transparent !important;
|
|
181
168
|
|
|
182
169
|
.avatarSetlist {
|
|
183
|
-
background: var(--neutral-
|
|
170
|
+
background: var(--neutral-2) !important;
|
|
184
171
|
}
|
|
185
172
|
}
|
|
186
|
-
.avatarSetlist {
|
|
187
|
-
background: var(--neutral-alpha-4);
|
|
188
|
-
}
|
|
189
|
-
.dropdownMenuTrigger {
|
|
190
|
-
color: var(--neutral-alpha-7);
|
|
191
|
-
}
|
|
192
|
-
|
|
193
173
|
}
|
|
194
174
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
175
|
+
&:hover,
|
|
176
|
+
&.menuOpen {
|
|
177
|
+
border-radius: var(--Radius-3-max, 6px);
|
|
178
|
+
background: var(--neutral-alpha-3) !important;
|
|
179
|
+
|
|
180
|
+
.avatarSetlist {
|
|
181
|
+
background: var(--neutral-alpha-4) !important;
|
|
199
182
|
}
|
|
200
183
|
}
|
|
201
|
-
.
|
|
202
|
-
|
|
203
|
-
min-height: 0;
|
|
204
|
-
overflow: hidden;
|
|
184
|
+
.avatarSetlist {
|
|
185
|
+
background: var(--neutral-alpha-4);
|
|
205
186
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
height: 100%;
|
|
209
|
-
padding-right: 6px;
|
|
187
|
+
.dropdownMenuTrigger {
|
|
188
|
+
color: var(--neutral-alpha-7);
|
|
210
189
|
}
|
|
190
|
+
}
|
|
211
191
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
text-transform: uppercase;
|
|
215
|
-
letter-spacing: 1.5px;
|
|
216
|
-
padding: 0 0 8px 4px;
|
|
192
|
+
@media (max-width: 768px) {
|
|
193
|
+
.dropdownTriggerWrapper {
|
|
217
194
|
opacity: 1;
|
|
218
|
-
|
|
195
|
+
pointer-events: auto;
|
|
219
196
|
}
|
|
197
|
+
}
|
|
198
|
+
.setlistsSection {
|
|
199
|
+
flex: 1;
|
|
200
|
+
min-height: 0;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
}
|
|
220
203
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
204
|
+
.setlistsScrollArea {
|
|
205
|
+
height: 100%;
|
|
206
|
+
padding-right: 6px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
sectionTitle {
|
|
210
|
+
color: var(--neutral-alpha-7);
|
|
211
|
+
text-transform: uppercase;
|
|
212
|
+
letter-spacing: 1.5px;
|
|
213
|
+
padding: 0 0 8px 4px;
|
|
214
|
+
opacity: 1;
|
|
215
|
+
transition: opacity 0.2s ease-in-out;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.collapsed .sectionTitle {
|
|
219
|
+
opacity: 0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.setlistsContent {
|
|
223
|
+
/* gap: 4px; */
|
|
224
|
+
margin: 1px 0;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.scrollShadow {
|
|
228
|
+
position: relative;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.scrollShadow::after {
|
|
232
|
+
content: '';
|
|
233
|
+
position: sticky;
|
|
234
|
+
bottom: -2px;
|
|
235
|
+
left: 0;
|
|
236
|
+
right: 0;
|
|
237
|
+
display: block;
|
|
238
|
+
height: 18px;
|
|
239
|
+
pointer-events: none;
|
|
240
|
+
z-index: 1;
|
|
241
|
+
background: linear-gradient(
|
|
242
|
+
to top,
|
|
243
|
+
var(--color-background) 0%,
|
|
244
|
+
transparent 100%
|
|
245
|
+
);
|
|
246
|
+
opacity: 0.35;
|
|
247
|
+
}
|
|
225
248
|
|
|
226
|
-
.setlistsContent {
|
|
227
|
-
/* gap: 4px; */
|
|
228
|
-
margin: 1px 0;
|
|
229
|
-
}
|
|
230
249
|
.collapsedStack {
|
|
231
250
|
gap: 0;
|
|
232
251
|
}
|
|
@@ -265,7 +284,6 @@
|
|
|
265
284
|
.collapsedMask {
|
|
266
285
|
position: relative;
|
|
267
286
|
overflow: hidden;
|
|
268
|
-
padding-top: 2px;
|
|
269
287
|
display: flex;
|
|
270
288
|
max-height: 80vh;
|
|
271
289
|
transition: max-height 260ms ease-in-out;
|
|
@@ -348,10 +366,9 @@
|
|
|
348
366
|
.iconHidden {
|
|
349
367
|
opacity: 0;
|
|
350
368
|
}
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
369
|
+
.newSetlistItemButton {
|
|
370
|
+
color: var(--aqua-dark-alpha-11) !important;
|
|
371
|
+
}
|
|
372
|
+
.plusIcon {
|
|
373
|
+
color: var(--aqua-dark-alpha-11);
|
|
374
|
+
}
|