@moises.ai/design-system 4.21.7 → 4.21.9

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.
@@ -42,7 +42,7 @@ function getNormalizedLevel(level) {
42
42
  function getPeakHoldColor(peakPct) {
43
43
  if (peakPct >= 88) return 'rgba(254, 78, 84, 0.89)'
44
44
  if (peakPct >= 69) return 'rgb(255, 197, 61)'
45
- return '#00dae8'
45
+ return 'var(--aqua-9)'
46
46
  }
47
47
 
48
48
  function gainToFaderPosition(gain) {
@@ -117,7 +117,7 @@ const MeterThumb = memo(
117
117
  prev &&
118
118
  now - prev.t < THUMB_DOUBLE_TAP_MS &&
119
119
  Math.hypot(e.clientX - prev.x, e.clientY - prev.y) <
120
- THUMB_DOUBLE_TAP_MAX_PX
120
+ THUMB_DOUBLE_TAP_MAX_PX
121
121
  ) {
122
122
  e.preventDefault()
123
123
  e.stopPropagation()
@@ -1,152 +1,163 @@
1
1
  /* ----- Root + Header ----- */
2
2
 
3
3
  .root {
4
- display: flex;
5
- flex-direction: column;
6
- gap: var(--space-2, 8px);
7
- width: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: var(--space-2, 8px);
7
+ width: 100%;
8
8
  }
9
9
 
10
10
  .header {
11
- display: flex;
12
- align-items: center;
13
- gap: var(--space-2, 8px);
11
+ display: flex;
12
+ align-items: center;
13
+ gap: var(--space-2, 8px);
14
14
  }
15
15
 
16
16
  .title {
17
- font-family: var(--default-font-family, 'Articulat', helvetica, arial, sans-serif);
18
- color: var(--neutral-alpha-12);
17
+ font-family: var(
18
+ --default-font-family,
19
+ "Articulat",
20
+ helvetica,
21
+ arial,
22
+ sans-serif
23
+ );
24
+ color: var(--neutral-alpha-12);
19
25
  }
20
26
 
21
27
  .infoIcon {
22
- flex-shrink: 0;
28
+ flex-shrink: 0;
23
29
  }
24
30
 
25
31
  .infoIcon path {
26
- fill: var(--neutral-alpha-7);
27
- transition: fill 0.18s ease;
32
+ fill: var(--neutral-alpha-7);
33
+ transition: fill 0.18s ease;
28
34
  }
29
35
 
30
36
  .infoIcon:hover path {
31
- fill: var(--neutral-alpha-9);
37
+ fill: var(--neutral-alpha-9);
32
38
  }
33
39
 
34
40
  /* ----- Grid ----- */
35
41
 
36
42
  .grid {
37
- display: grid;
38
- grid-template-columns: repeat(2, minmax(0, 1fr));
39
- gap: 4px;
40
- width: 100%;
43
+ display: grid;
44
+ grid-template-columns: repeat(2, minmax(0, 1fr));
45
+ gap: 4px;
46
+ width: 100%;
41
47
  }
42
48
 
43
49
  /* ----- Card ----- */
44
50
 
45
51
  .card {
46
- position: relative;
47
- display: flex;
48
- align-items: center;
49
- gap: var(--space-3, 12px);
50
- min-width: 0;
51
- padding: 10px 8px 10px 12px;
52
- border: 1px solid var(--neutral-alpha-4, rgba(211, 237, 248, 0.11));
53
- border-radius: var(--radius-3, 6px);
54
- background: transparent;
55
- color: var(--neutral-alpha-12);
56
- font-family: var(--default-font-family, 'Articulat', helvetica, arial, sans-serif);
57
- font-size: 14px;
58
- line-height: 20px;
59
- text-align: left;
60
- cursor: pointer;
61
- user-select: none;
62
- box-sizing: border-box;
63
- transition:
64
- background-color 0.18s ease,
65
- border-color 0.18s ease,
66
- color 0.18s ease;
52
+ position: relative;
53
+ display: flex;
54
+ align-items: center;
55
+ gap: var(--space-3, 12px);
56
+ min-width: 0;
57
+ padding: 10px 8px 10px 12px;
58
+ border: 1px solid var(--neutral-alpha-4, rgba(211, 237, 248, 0.11));
59
+ border-radius: var(--radius-3, 6px);
60
+ background: transparent;
61
+ color: var(--neutral-alpha-12);
62
+ font-family: var(
63
+ --default-font-family,
64
+ "Articulat",
65
+ helvetica,
66
+ arial,
67
+ sans-serif
68
+ );
69
+ font-size: 14px;
70
+ line-height: 20px;
71
+ text-align: left;
72
+ cursor: pointer;
73
+ user-select: none;
74
+ box-sizing: border-box;
75
+ transition:
76
+ background-color 0.18s ease,
77
+ border-color 0.18s ease,
78
+ color 0.18s ease;
67
79
  }
68
80
 
69
81
  .card:focus-visible {
70
- outline: 2px solid var(--neutral-alpha-8);
71
- outline-offset: 2px;
82
+ outline: 2px solid var(--neutral-alpha-8);
83
+ outline-offset: 2px;
72
84
  }
73
85
 
74
86
  /* hover (native + forced via data-state='hover' for documentation/Storybook) */
75
- .card[data-state='default']:hover,
76
- .card[data-state='hover'],
77
- .card[data-state='disabled']:hover {
78
- border-color: var(--neutral-alpha-6, rgba(214, 235, 253, 0.19));
79
- background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
87
+ .card[data-state="default"]:hover,
88
+ .card[data-state="hover"],
89
+ .card[data-state="disabled"]:hover {
90
+ border-color: var(--neutral-alpha-6, rgba(214, 235, 253, 0.19));
91
+ background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
80
92
  }
81
93
 
82
94
  /* checked */
83
- .card[data-state='checked'] {
84
- border-color: var(--aqua-9, #00dae8);
85
- background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
95
+ .card[data-state="checked"] {
96
+ border-color: var(--aqua-9);
97
+ background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
86
98
  }
87
99
 
88
100
  /* disabled / locked — same border/background as default; text + lock are muted, icon stays */
89
- .card[data-state='disabled'] {
90
- cursor: pointer;
101
+ .card[data-state="disabled"] {
102
+ cursor: pointer;
91
103
  }
92
104
 
93
-
94
- .card[data-state='disabled'] .lockIcon {
95
- color: var(--neutral-alpha-5);
105
+ .card[data-state="disabled"] .lockIcon {
106
+ color: var(--neutral-alpha-5);
96
107
  }
97
108
 
98
- .card[data-state='disabled'] .cardText {
99
- color: var(--neutral-alpha-12);
109
+ .card[data-state="disabled"] .cardText {
110
+ color: var(--neutral-alpha-12);
100
111
  }
101
112
 
102
- .card[data-state='disabled'] .cardIcon {
103
- color: var(--neutral-alpha-7);
113
+ .card[data-state="disabled"] .cardIcon {
114
+ color: var(--neutral-alpha-7);
104
115
  }
105
116
 
106
- .card[data-state='disabled-checked'] {
107
- border-color: rgba(0, 220, 253, 0.20);
108
- background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
109
- cursor: default;
117
+ .card[data-state="disabled-checked"] {
118
+ border-color: rgba(0, 220, 253, 0.2);
119
+ background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
120
+ cursor: default;
110
121
  }
111
122
 
112
- .card[data-state='disabled-checked'] .cardIcon {
113
- color: rgba(0, 220, 253, 0.20);
123
+ .card[data-state="disabled-checked"] .cardIcon {
124
+ color: rgba(0, 220, 253, 0.2);
114
125
  }
115
126
 
116
- .card[data-state='disabled-checked'] .cardText {
117
- color: var(--neutral-alpha-6);
127
+ .card[data-state="disabled-checked"] .cardText {
128
+ color: var(--neutral-alpha-6);
118
129
  }
119
130
 
120
131
  /* ----- Card slots ----- */
121
132
 
122
133
  .cardIcon {
123
- display: inline-flex;
124
- align-items: center;
125
- justify-content: center;
126
- flex-shrink: 0;
127
- width: 16px;
128
- height: 16px;
129
- color: var(--neutral-alpha-7);
134
+ display: inline-flex;
135
+ align-items: center;
136
+ justify-content: center;
137
+ flex-shrink: 0;
138
+ width: 16px;
139
+ height: 16px;
140
+ color: var(--neutral-alpha-7);
130
141
  }
131
142
 
132
143
  .cardIcon svg {
133
- width: 16px;
134
- height: 16px;
144
+ width: 16px;
145
+ height: 16px;
135
146
  }
136
147
 
137
- .card[data-state='checked'] .cardIcon {
138
- color: var(--aqua-9, #00dae8);
148
+ .card[data-state="checked"] .cardIcon {
149
+ color: var(--aqua-9);
139
150
  }
140
151
 
141
152
  .cardText {
142
- flex: 1 1 auto;
143
- min-width: 0;
144
- font-weight: 400;
145
- letter-spacing: 0;
146
- color: var(--neutral-alpha-12);
147
- overflow: hidden;
148
- text-overflow: ellipsis;
149
- white-space: nowrap;
153
+ flex: 1 1 auto;
154
+ min-width: 0;
155
+ font-weight: 400;
156
+ letter-spacing: 0;
157
+ color: var(--neutral-alpha-12);
158
+ overflow: hidden;
159
+ text-overflow: ellipsis;
160
+ white-space: nowrap;
150
161
  }
151
162
 
152
163
  /*
@@ -155,16 +166,16 @@
155
166
  * card edge - existing card padding-right 8px = ~16px buffer needed (with 1px breathing room).
156
167
  */
157
168
  .card[data-locked] .cardText {
158
- margin-right: 16px;
169
+ margin-right: 16px;
159
170
  }
160
171
 
161
172
  .lockIcon {
162
- position: absolute;
163
- top: 50%;
164
- right: 11px;
165
- width: 12px;
166
- height: 12px;
167
- transform: translateY(-50%);
168
- color: var(--neutral-alpha-5);
169
- pointer-events: none;
170
- }
173
+ position: absolute;
174
+ top: 50%;
175
+ right: 11px;
176
+ width: 12px;
177
+ height: 12px;
178
+ transform: translateY(-50%);
179
+ color: var(--neutral-alpha-5);
180
+ pointer-events: none;
181
+ }
@@ -70,7 +70,7 @@ export const InstrumentSelectCard = forwardRef(function InstrumentSelectCard(
70
70
  const renderIcon = () => {
71
71
  if (!Icon) return null
72
72
  if (typeof Icon === 'function') {
73
- return <Icon width={16} height={16} />
73
+ return <Icon width={16} height={16} aria-hidden="true" />
74
74
  }
75
75
  return Icon
76
76
  }
@@ -89,10 +89,10 @@ export const InstrumentSelectCard = forwardRef(function InstrumentSelectCard(
89
89
  {...props}
90
90
  >
91
91
  {(Icon || showSpinner) && (
92
- <span className={styles.cardIcon}> {renderIcon()} </span>
92
+ <span className={styles.cardIcon}> {renderIcon()} </span>
93
93
  )}
94
94
  {text != null && <span className={styles.cardText}>{text}</span>}
95
- {locked && <LockIcon width={12} height={12} className={styles.lockIcon} />}
95
+ {locked && <LockIcon width={12} height={12} className={styles.lockIcon} aria-hidden="true" />}
96
96
  </button>
97
97
  )
98
98
  })
@@ -1,63 +1,68 @@
1
1
  .container {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- width: 24px;
6
- padding: 2px 0;
7
- border-radius: 4px;
8
- user-select: none;
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: 24px;
6
+ padding: 2px 0;
7
+ border-radius: 4px;
8
+ user-select: none;
9
9
  }
10
10
 
11
11
  .value {
12
- font-size: 12px;
13
- font-weight: 500;
14
- line-height: 16px;
15
- letter-spacing: 0.04px;
16
- white-space: nowrap;
12
+ font-size: 12px;
13
+ font-weight: 500;
14
+ line-height: 16px;
15
+ letter-spacing: 0.04px;
16
+ white-space: nowrap;
17
17
  }
18
18
 
19
19
  .reset {
20
- color: rgba(214, 235, 253, 0.19);
20
+ color: rgba(214, 235, 253, 0.19);
21
21
  }
22
22
 
23
23
  .regular {
24
- color: #00dae8;
24
+ color: var(--aqua-9);
25
25
  }
26
26
 
27
27
  .medium {
28
- color: #ffc53d;
28
+ color: #ffc53d;
29
29
  }
30
30
 
31
31
  .high {
32
- color: #ec5d5e;
32
+ color: #ec5d5e;
33
33
  }
34
34
 
35
35
  .clip {
36
- color: #ec5d5e;
37
- animation: blink 0.6s steps(1) infinite;
36
+ color: #ec5d5e;
37
+ animation: blink 0.6s steps(1) infinite;
38
38
  }
39
39
 
40
40
  @keyframes blink {
41
- 0%, 100% { opacity: 1; }
42
- 50% { opacity: 0.4; }
41
+ 0%,
42
+ 100% {
43
+ opacity: 1;
44
+ }
45
+ 50% {
46
+ opacity: 0.4;
47
+ }
43
48
  }
44
49
 
45
50
  .container:hover .reset {
46
- color: rgba(214, 235, 253, 0.19);
51
+ color: rgba(214, 235, 253, 0.19);
47
52
  }
48
53
 
49
54
  .container:hover .regular {
50
- color: #75ebf5;
55
+ color: #75ebf5;
51
56
  }
52
57
 
53
58
  .container:hover .medium {
54
- color: #ffe7b3;
59
+ color: #ffe7b3;
55
60
  }
56
61
 
57
62
  .container:hover .high {
58
- color: #ff9592;
63
+ color: #ff9592;
59
64
  }
60
65
 
61
66
  .container:hover .clip {
62
- color: #ff9592;
67
+ color: #ff9592;
63
68
  }
@@ -29,7 +29,7 @@ export const Default = {
29
29
  type="button"
30
30
  aria-label="Upgrade"
31
31
  title="Upgrade"
32
- style={{ border: 'none', cursor: 'pointer', backgroundColor: '#00dae8', color: '#061415', fontSize: 12, fontWeight: 500, padding: '4px 8px', borderRadius: 4 }}
32
+ style={{ border: 'none', cursor: 'pointer', backgroundColor: 'var(--aqua-9)', color: '#061415', fontSize: 12, fontWeight: 500, padding: '4px 8px', borderRadius: 4 }}
33
33
  onClick={() => {
34
34
  closeMenu?.()
35
35
  alert('Upgrade clicked')
@@ -0,0 +1,12 @@
1
+ export const SongWritingIcon = ({
2
+ width = 16,
3
+ height = 16,
4
+ className,
5
+ ...props
6
+ }) => (
7
+ <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" fill="none" className={className} {...props} aria-label="Song Writing Icon">
8
+ <path d="M19.0909 10.0849L19.7273 10.7213V10.7213L19.0909 10.0849ZM22.5 11.497H23.4H22.5ZM21.9151 12.9091L22.5515 13.5455V13.5455L21.9151 12.9091ZM13.3833 21.4409L13.6201 22.3092C13.7712 22.268 13.909 22.1881 14.0197 22.0773L13.3833 21.4409ZM9.5 22.5L8.63171 22.2632C8.54673 22.5748 8.63522 22.908 8.8636 23.1364C9.09197 23.3648 9.42521 23.4533 9.7368 23.3683L9.5 22.5ZM10.5591 18.6167L9.92269 17.9803C9.81194 18.091 9.732 18.2288 9.69079 18.3799L10.5591 18.6167ZM6.8125 12.2279H7.7125V10.9699L6.52191 11.3761L6.8125 12.2279ZM3.12415 13.4861L3.41474 14.3379V14.3379L3.12415 13.4861ZM4.61523 18.1165L4.90581 18.9683H4.90581L4.61523 18.1165ZM6.08428 17.6154L5.79369 16.7636H5.79369L6.08428 17.6154ZM5.9125 13.7113C5.9125 14.2083 6.31544 14.6113 6.8125 14.6113C7.30956 14.6113 7.7125 14.2083 7.7125 13.7113H6.8125H5.9125ZM8.26826 3.89536L7.98173 3.04218L7.97738 3.04367L8.26826 3.89536ZM14.4493 1.81951L14.7359 2.67269L14.7402 2.67121L14.4493 1.81951ZM16.3436 6.20654C16.3436 6.7036 16.7465 7.10654 17.2436 7.10654C17.7406 7.10654 18.1436 6.7036 18.1436 6.20654H17.2436H16.3436ZM19.0909 10.0849L19.7273 10.7213C19.8291 10.6194 19.9501 10.5386 20.0832 10.4835L19.7387 9.65201L19.3943 8.82052C19.0428 8.96611 18.7235 9.17951 18.4545 9.44852L19.0909 10.0849ZM19.7387 9.65201L20.0832 10.4835C20.2163 10.4284 20.3589 10.4 20.503 10.4V9.5V8.6C20.1225 8.6 19.7458 8.67493 19.3943 8.82052L19.7387 9.65201ZM20.503 9.5V10.4C20.647 10.4 20.7897 10.4284 20.9228 10.4835L21.2672 9.65201L21.6116 8.82052C21.2601 8.67493 20.8834 8.6 20.503 8.6V9.5ZM21.2672 9.65201L20.9228 10.4835C21.0559 10.5386 21.1768 10.6194 21.2787 10.7213L21.9151 10.0849L22.5515 9.44852C22.2825 9.17951 21.9631 8.96611 21.6116 8.82052L21.2672 9.65201ZM21.9151 10.0849L21.2787 10.7213C21.3806 10.8232 21.4614 10.9441 21.5165 11.0772L22.348 10.7328L23.1795 10.3884C23.0339 10.0369 22.8205 9.71753 22.5515 9.44852L21.9151 10.0849ZM22.348 10.7328L21.5165 11.0772C21.5716 11.2103 21.6 11.353 21.6 11.497H22.5H23.4C23.4 11.1166 23.3251 10.7399 23.1795 10.3884L22.348 10.7328ZM22.5 11.497H21.6C21.6 11.6411 21.5716 11.7837 21.5165 11.9168L22.348 12.2613L23.1795 12.6057C23.3251 12.2542 23.4 11.8775 23.4 11.497H22.5ZM22.348 12.2613L21.5165 11.9168C21.4614 12.0499 21.3806 12.1709 21.2787 12.2727L21.9151 12.9091L22.5515 13.5455C22.8205 13.2765 23.0339 12.9572 23.1795 12.6057L22.348 12.2613ZM21.9151 12.9091L21.2787 12.2727L12.7469 20.8045L13.3833 21.4409L14.0197 22.0773L22.5515 13.5455L21.9151 12.9091ZM13.3833 21.4409L13.1465 20.5726L9.26319 21.6317L9.5 22.5L9.7368 23.3683L13.6201 22.3092L13.3833 21.4409ZM9.5 22.5L10.3683 22.7368L11.4274 18.8535L10.5591 18.6167L9.69079 18.3799L8.63171 22.2632L9.5 22.5ZM10.5591 18.6167L11.1955 19.2531L19.7273 10.7213L19.0909 10.0849L18.4545 9.44852L9.92269 17.9803L10.5591 18.6167ZM6.08428 17.6154L5.79369 16.7636L4.32464 17.2647L4.61523 18.1165L4.90581 18.9683L6.37487 18.4672L6.08428 17.6154ZM3.12415 13.4861L3.41474 14.3379L7.10309 13.0797L6.8125 12.2279L6.52191 11.3761L2.83356 12.6343L3.12415 13.4861ZM6.8125 12.2279H5.9125V16.5773H6.8125H7.7125V12.2279H6.8125ZM1.5 15.8013H2.4C2.4 15.1213 2.82244 14.54 3.41474 14.3379L3.12415 13.4861L2.83356 12.6343C1.48666 13.0938 0.6 14.3787 0.6 15.8013H1.5ZM4.61523 18.1165L4.32464 17.2647C3.40997 17.5768 2.4 16.885 2.4 15.8013H1.5H0.6C0.6 18.0438 2.75307 19.7027 4.90581 18.9683L4.61523 18.1165ZM6.08428 17.6154L6.37487 18.4672C7.18691 18.1901 7.7125 17.42 7.7125 16.5773H6.8125H5.9125C5.9125 16.6774 5.85113 16.744 5.79369 16.7636L6.08428 17.6154ZM6.8125 13.7113H7.7125V5.97126H6.8125H5.9125V13.7113H6.8125ZM8.26826 3.89536L8.55479 4.74853L14.7358 2.67268L14.4493 1.81951L14.1628 0.966338L7.98173 3.04219L8.26826 3.89536ZM14.4493 1.81951L14.7402 2.67121C15.4966 2.41288 16.3436 2.98326 16.3436 3.89541H17.2436H18.1436C18.1436 1.82428 16.153 0.2866 14.1584 0.967812L14.4493 1.81951ZM6.8125 5.97126H7.7125C7.7125 5.39992 8.06716 4.91509 8.55914 4.74706L8.26826 3.89536L7.97738 3.04367C6.73111 3.46931 5.9125 4.65754 5.9125 5.97126H6.8125ZM17.2436 3.89541H16.3436V6.20654H17.2436H18.1436V3.89541H17.2436Z" fill="currentColor" />
9
+ </svg>
10
+ )
11
+
12
+ SongWritingIcon.displayName = 'SongWritingIcon'
package/src/icons.jsx CHANGED
@@ -195,6 +195,7 @@ export { SectionsIcon } from './icons/SectionsIcon'
195
195
  export { NoSectionsIcon } from './icons/NoSectionsIcon'
196
196
  export { SpatialAudioIcon } from './icons/SpatialAudioIcon'
197
197
  export { SongwritingIcon } from './icons/SongwritingIcon'
198
+ export { SongWritingIcon } from './icons/SongWritingIcon1'
198
199
  export { SpeedIcon } from './icons/SpeedIcon'
199
200
  export { SpeedChangerIcon } from './icons/SpeedChangerIcon'
200
201
  export { SpliterIcon } from './icons/SpliterIcon'