@moises.ai/design-system 3.9.5 → 3.9.7

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.9.5",
3
+ "version": "3.9.7",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -35,6 +35,7 @@ export const NumberPicker = ({
35
35
  type="button"
36
36
  aria-label="increment"
37
37
  onClick={onDecrement}
38
+ disabled={min != null && value <= min}
38
39
  style={{
39
40
  backgroundColor: 'var(--neutral-alpha-3 )',
40
41
  }}
@@ -59,6 +60,7 @@ export const NumberPicker = ({
59
60
  type="button"
60
61
  aria-label="decrement"
61
62
  onClick={onIncrement}
63
+ disabled={max != null && value >= max}
62
64
  style={{
63
65
  backgroundColor: 'var(--neutral-alpha-3 )',
64
66
  }}
@@ -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
- cursor: pointer;
8
- margin: 0 12px;
9
- padding: 2px;
10
- border-radius: 6px;
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
- &:hover,
23
- &.menuOpen {
24
- background: #212225 !important;
12
+ display: flex;
13
+ justify-content: space-between;
14
+ align-items: center;
15
+ width: calc(100% - 24px);
25
16
 
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
- }
36
- }
17
+ &:focus-visible {
18
+ outline: 2px solid var(--neutral-alpha-8);
19
+ outline-offset: -1px;
37
20
  }
38
21
 
39
- .collapsed {
40
- width: fit-content;
41
- padding: 2px;
42
- margin: 0 10px;
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
- /* .dropdownTriggerWrapperMobile {
56
+ /* .dropdownTriggerWrapperMobile {
58
57
  padding: 8px;
59
58
  } */
60
59
 
61
- .collapsed .dropdownTriggerWrapper {
62
- opacity: 0;
63
- }
60
+ .collapsed .dropdownTriggerWrapper {
61
+ opacity: 0;
62
+ }
64
63
 
65
- .dropdownMenuTrigger {
66
- color: var(--neutral-alpha-7);
67
- }
68
-
69
- /* .dropdownTriggerWrapper:hover .dropdownMenuTrigger,
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
- .avatarSetlist {
79
- display: flex;
80
- width: 40px;
81
- height: 40px;
82
- justify-content: center;
83
- align-items: center;
84
- gap: 8px;
85
- aspect-ratio: 1/1;
86
- border-radius:4px;
87
- background: var(--neutral-2);
88
- color: var(--neutral-alpha-8);
89
- flex-shrink: 0;
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
- .avatarClickable {
95
- cursor: pointer;
96
- }
93
+ .avatarClickable {
94
+ cursor: pointer;
95
+ }
97
96
 
98
- .iconGrid {
99
- display: grid;
100
- grid-template-columns: 1fr 1fr;
101
- grid-template-rows: 1fr 1fr;
102
- width: 100%;
103
- height: 100%;
104
- border-radius: 4px;
105
- overflow: hidden;
106
- background: var(--neutral-2);
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
- .iconGridCell {
110
- position: relative;
111
- overflow: hidden;
112
- }
108
+ .iconGridCell {
109
+ position: relative;
110
+ overflow: hidden;
111
+ }
113
112
 
114
- .iconGridCell img {
115
- position: absolute;
116
- inset: 0;
117
- width: 100%;
118
- height: 100%;
119
- object-fit: cover;
120
- }
113
+ .iconGridCell img {
114
+ position: absolute;
115
+ inset: 0;
116
+ width: 100%;
117
+ height: 100%;
118
+ object-fit: cover;
119
+ }
121
120
 
122
- .textNewSetlist {
123
- max-width: 115px;
124
- opacity: 1;
121
+ .textNewSetlist {
122
+ max-width: 115px;
123
+ opacity: 1;
125
124
  transition: opacity 360ms ease-in-out;
126
- white-space: nowrap;
127
- }
125
+ white-space: nowrap;
126
+ }
128
127
 
129
- .collapsed .textNewSetlist {
130
- opacity: 0;
131
- }
128
+ .collapsed .textNewSetlist {
129
+ opacity: 0;
130
+ }
132
131
 
133
- .textSubtitle {
134
- max-width: 95px;
135
- color: var(--neutral-alpha-10);
136
- opacity: 1;
132
+ .textSubtitle {
133
+ max-width: 95px;
134
+ color: var(--neutral-alpha-10);
135
+ opacity: 1;
137
136
  transition: opacity 360ms ease-in-out;
138
- white-space: nowrap;
139
- }
137
+ white-space: nowrap;
138
+ }
140
139
 
141
- .collapsed .textSubtitle {
142
- opacity: 0;
143
- }
140
+ .collapsed .textSubtitle {
141
+ opacity: 0;
142
+ }
144
143
 
145
- .textSubtitleIcon {
146
- color: var(--neutral-alpha-10);
147
- opacity: 1;
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
- &.collapsed {
161
- /* background: transparent; */
150
+ .collapsed .textSubtitleIcon {
151
+ opacity: 0;
152
+ }
162
153
 
163
- .avatarSetlist {
164
- background: var(--neutral-2);
165
- }
154
+ .navItemSelected {
155
+ border-radius: var(--Radius-3-max, 6px);
156
+ background: var(--neutral-alpha-3);
166
157
 
167
- &:hover,
168
- &.menuOpen {
169
- background: transparent !important;
158
+ &.collapsed {
159
+ /* background: transparent; */
170
160
 
171
- .avatarSetlist {
172
- background: var(--neutral-2) !important;
173
- }
174
- }
161
+ .avatarSetlist {
162
+ background: var(--neutral-2);
175
163
  }
176
164
 
177
165
  &:hover,
178
166
  &.menuOpen {
179
- border-radius: var(--Radius-3-max, 6px);
180
- background: var(--neutral-alpha-3) !important;
167
+ background: transparent !important;
181
168
 
182
169
  .avatarSetlist {
183
- background: var(--neutral-alpha-4) !important;
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
- @media (max-width: 768px) {
196
- .dropdownTriggerWrapper {
197
- opacity: 1;
198
- pointer-events: auto;
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
- .setlistsSection {
202
- flex: 1;
203
- min-height: 0;
204
- overflow: hidden;
184
+ .avatarSetlist {
185
+ background: var(--neutral-alpha-4);
205
186
  }
206
-
207
- .setlistsScrollArea {
208
- height: 100%;
209
- padding-right: 6px;
187
+ .dropdownMenuTrigger {
188
+ color: var(--neutral-alpha-7);
210
189
  }
190
+ }
211
191
 
212
- sectionTitle {
213
- color: var(--neutral-alpha-7);
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
- transition: opacity 0.2s ease-in-out;
195
+ pointer-events: auto;
219
196
  }
197
+ }
198
+ .setlistsSection {
199
+ flex: 1;
200
+ min-height: 0;
201
+ overflow: hidden;
202
+ }
220
203
 
221
- .collapsed .sectionTitle {
222
- opacity: 0;
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
- .newSetlistItemButton {
352
- color: var(--aqua-dark-alpha-11) !important;
353
- }
354
- .plusIcon {
355
- color: var(--aqua-dark-alpha-11);
356
- }
357
-
369
+ .newSetlistItemButton {
370
+ color: var(--aqua-dark-alpha-11) !important;
371
+ }
372
+ .plusIcon {
373
+ color: var(--aqua-dark-alpha-11);
374
+ }