@moises.ai/design-system 3.12.1 → 3.12.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.
package/package.json
CHANGED
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
opacity: 0.5;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.button.autoMute
|
|
41
|
+
.button.autoMute {
|
|
42
42
|
background: var(--Colors-Neutral-Neutral-Alpha-2, rgba(216, 244, 246, 0.04));
|
|
43
|
-
color: var(--warning-alpha-
|
|
43
|
+
color: var(--colors-semantic-warning-alpha-9);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.button.autoMute:
|
|
46
|
+
.button.autoMute:hover:not(:disabled) {
|
|
47
47
|
background: var(--Colors-Neutral-Neutral-Alpha-3, rgba(221, 234, 248, 0.08));
|
|
48
|
-
color:
|
|
48
|
+
color: var(--colors-semantic-warning-alpha-9);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
.button.autoMute:
|
|
51
|
+
.button.autoMute:active:not(:disabled) {
|
|
52
52
|
background: var(--Colors-Neutral-Neutral-Alpha-4, rgba(211, 237, 248, 0.11));
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -76,21 +76,6 @@
|
|
|
76
76
|
filter: brightness(0.92);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
.button.active.autoMute {
|
|
80
|
-
background-color: var(--warning-alpha-12);
|
|
81
|
-
color: var(--colors-neutral-neutral-1);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.button.active.autoMute:hover:not(:disabled) {
|
|
85
|
-
background-color: color-mix(in srgb, var(--warning-alpha-12) 78%, var(--colors-semantic-warning-alpha-9));
|
|
86
|
-
color: var(--colors-neutral-neutral-1);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.button.active.autoMute:active:not(:disabled) {
|
|
90
|
-
background-color: color-mix(in srgb, var(--warning-alpha-12) 62%, var(--colors-semantic-warning-alpha-9));
|
|
91
|
-
color: var(--colors-neutral-neutral-1);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
79
|
.button.active.solo {
|
|
95
80
|
background-color: var(--colors-accent-accent-10);
|
|
96
81
|
color: var(--colors-neutral-neutral-1);
|
|
@@ -8,7 +8,8 @@ export default {
|
|
|
8
8
|
layout: 'centered',
|
|
9
9
|
docs: {
|
|
10
10
|
description: {
|
|
11
|
-
component:
|
|
11
|
+
component:
|
|
12
|
+
'Toggle button for track controls (Record, Mute, Auto Mute, and Solo). For `type="autoMute"`, o Figma define um único visual (amarelo em fundo alpha-2); `selected` só afeta `aria-pressed`, não as cores.',
|
|
12
13
|
},
|
|
13
14
|
},
|
|
14
15
|
},
|
|
@@ -98,7 +99,7 @@ export const MuteSelected = {
|
|
|
98
99
|
},
|
|
99
100
|
}
|
|
100
101
|
|
|
101
|
-
export const
|
|
102
|
+
export const AutoMute = {
|
|
102
103
|
args: {
|
|
103
104
|
type: 'autoMute',
|
|
104
105
|
selected: true,
|
|
@@ -109,22 +110,12 @@ export const AutoMuteSelected = {
|
|
|
109
110
|
},
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
export const AutoMuteInactive = {
|
|
113
|
-
args: {
|
|
114
|
-
type: 'autoMute',
|
|
115
|
-
selected: false,
|
|
116
|
-
tooltipContent: {
|
|
117
|
-
text: 'Muted by solo (inactive)',
|
|
118
|
-
shortcut: 'M',
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
}
|
|
122
|
-
|
|
123
113
|
export const AllStates = {
|
|
124
114
|
parameters: {
|
|
125
115
|
docs: {
|
|
126
116
|
description: {
|
|
127
|
-
story:
|
|
117
|
+
story:
|
|
118
|
+
'Shows all states with and without tooltip. Click any toggle to switch `aria-pressed`; `autoMute` mantém o mesmo visual do Figma.',
|
|
128
119
|
},
|
|
129
120
|
},
|
|
130
121
|
},
|
|
@@ -151,7 +142,15 @@ export const AllStates = {
|
|
|
151
142
|
{...args}
|
|
152
143
|
type={type}
|
|
153
144
|
selected={states[type]}
|
|
154
|
-
tooltipContent={
|
|
145
|
+
tooltipContent={
|
|
146
|
+
withTooltip
|
|
147
|
+
? {
|
|
148
|
+
text: `${type}`,
|
|
149
|
+
shortcut:
|
|
150
|
+
type === 'record' ? 'R' : type === 'solo' ? 'S' : 'M',
|
|
151
|
+
}
|
|
152
|
+
: undefined
|
|
153
|
+
}
|
|
155
154
|
onClick={() => {
|
|
156
155
|
args.onClick?.()
|
|
157
156
|
toggleState(type)
|