@moises.ai/design-system 4.20.1 → 4.20.3
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/dist/{WavefolderIcon-C3okN-6j.js → WavefolderIcon-BbOoIpHc.js} +4 -4
- package/dist/colors/custom-styles.css +26 -27
- package/dist/icons.js +1 -1
- package/dist/index.js +1275 -1274
- package/package.json +1 -1
- package/src/colors/custom-styles.css +26 -27
- package/src/components/SliderLibrary/SliderLibrary.module.css +1 -1
- package/src/components/ToolsDropdown/ToolsDropdown.jsx +3 -3
- package/src/components/ToolsDropdown/ToolsDropdown.module.css +23 -13
- package/src/components/ToolsDropdown/ToolsDropdown.stories.jsx +3 -3
- package/src/components/ToolsPopover/ToolsPopover.module.css +1 -1
- package/src/components/TrackHeader/RecordSettingsPopover.module.css +1 -1
- package/src/icons/BassIcon.jsx +1 -1
- package/src/icons/MusicAddIcon.jsx +1 -1
- package/src/icons/NoVolume2Icon.jsx +1 -1
- package/src/lib/menu/Menu.module.css +1 -1
package/package.json
CHANGED
|
@@ -77,9 +77,6 @@
|
|
|
77
77
|
--mint-dark-alpha-11: rgba(120, 255, 190, 1);
|
|
78
78
|
--mint-dark-alpha-12: rgba(166, 254, 205, 1);
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
--panel-solid: #18191B;
|
|
82
|
-
|
|
83
80
|
--white: rgba(255, 255, 255, 1);
|
|
84
81
|
--black: rgba(28, 32, 36, 1);
|
|
85
82
|
|
|
@@ -106,31 +103,33 @@
|
|
|
106
103
|
--Colors-Neutral-Neutral-Alpha-10: var(--colors-neutral-neutral-alpha-10);
|
|
107
104
|
--Colors-Neutral-Neutral-1: var(--colors-neutral-neutral-1);
|
|
108
105
|
|
|
109
|
-
--neutral-1: #
|
|
110
|
-
--neutral-2: #
|
|
111
|
-
--neutral-3: #
|
|
112
|
-
--neutral-4: #
|
|
113
|
-
--neutral-5: #
|
|
114
|
-
--neutral-6: #
|
|
115
|
-
--neutral-7: #
|
|
116
|
-
--neutral-8: #
|
|
117
|
-
--neutral-9: #
|
|
118
|
-
--neutral-10: #
|
|
119
|
-
--neutral-11: #
|
|
120
|
-
--neutral-12: #
|
|
106
|
+
--neutral-1: #101213;
|
|
107
|
+
--neutral-2: #17191C;
|
|
108
|
+
--neutral-3: #1F2226;
|
|
109
|
+
--neutral-4: #26292E;
|
|
110
|
+
--neutral-5: #2C3036;
|
|
111
|
+
--neutral-6: #353A41;
|
|
112
|
+
--neutral-7: #434951;
|
|
113
|
+
--neutral-8: #58606A;
|
|
114
|
+
--neutral-9: #656D78;
|
|
115
|
+
--neutral-10: #737C87;
|
|
116
|
+
--neutral-11: #ACB5BF;
|
|
117
|
+
--neutral-12: #E9EEF5;
|
|
118
|
+
|
|
119
|
+
--neutral-alpha-1: rgba(163, 193, 230, 0.02);
|
|
120
|
+
--neutral-alpha-2: rgba(204, 227, 255, 0.04);
|
|
121
|
+
--neutral-alpha-3: rgba(202, 224, 250, 0.08);
|
|
122
|
+
--neutral-alpha-4: rgba(203, 221, 242, 0.12);
|
|
123
|
+
--neutral-alpha-5: rgba(198, 219, 245, 0.15);
|
|
124
|
+
--neutral-alpha-6: rgba(196, 216, 242, 0.20);
|
|
125
|
+
--neutral-alpha-7: rgba(203, 223, 247, 0.27);
|
|
126
|
+
--neutral-alpha-8: rgba(203, 223, 247, 0.38);
|
|
127
|
+
--neutral-alpha-9: rgba(205, 224, 247, 0.44);
|
|
128
|
+
--neutral-alpha-10: rgba(216, 233, 254, 0.49);
|
|
129
|
+
--neutral-alpha-11: rgba(225, 236, 249, 0.75);
|
|
130
|
+
--neutral-alpha-12: rgba(239, 246, 255, 0.97);
|
|
131
|
+
--panel-solid: var(--neutral-2);
|
|
121
132
|
|
|
122
|
-
--neutral-alpha-1: rgba(207, 234, 236, 0.02);
|
|
123
|
-
--neutral-alpha-2: rgba(197, 239, 246, 0.04);
|
|
124
|
-
--neutral-alpha-3: rgba(206, 222, 248, 0.08);
|
|
125
|
-
--neutral-alpha-4: rgba(196, 228, 248, 0.11);
|
|
126
|
-
--neutral-alpha-5: rgba(201, 226, 254, 0.15);
|
|
127
|
-
--neutral-alpha-6: rgba(200, 228, 253, 0.19);
|
|
128
|
-
--neutral-alpha-7: rgba(204, 231, 255, 0.25);
|
|
129
|
-
--neutral-alpha-8: rgba(204, 231, 255, 0.36);
|
|
130
|
-
--neutral-alpha-9: rgba(207, 226, 253, 0.43);
|
|
131
|
-
--neutral-alpha-10: rgba(218, 229, 253, 0.48);
|
|
132
|
-
--neutral-alpha-11: rgba(229, 240, 254, 0.75);
|
|
133
|
-
--neutral-alpha-12: rgba(242, 247, 255, 0.94);
|
|
134
133
|
|
|
135
134
|
/* Neutral Extras */
|
|
136
135
|
--neutral-alpha-0-50: rgba(17, 17, 19, 0.50);
|
|
@@ -132,11 +132,11 @@ export const ToolsDropdown = memo(
|
|
|
132
132
|
</Flex>
|
|
133
133
|
)}
|
|
134
134
|
|
|
135
|
-
{showSeparator && <Separator orientation="vertical" className={styles.separator} />}
|
|
135
|
+
{showSeparator && <Separator orientation="vertical" className={styles.separator} size="2"/>}
|
|
136
136
|
|
|
137
137
|
<ChevronDownIcon
|
|
138
|
-
width={
|
|
139
|
-
height={
|
|
138
|
+
width={14.4}
|
|
139
|
+
height={14.4}
|
|
140
140
|
className={classNames(styles.chevron, {
|
|
141
141
|
[styles.chevronWithoutSeparator]: !showSeparator,
|
|
142
142
|
})}
|
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
justify-content: center;
|
|
5
|
-
border: 1px solid var(--neutral-alpha-
|
|
6
|
-
border-radius:
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
justify-content: center;
|
|
5
|
+
border: 1px solid var(--neutral-alpha-5);
|
|
6
|
+
border-radius: 6px;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
9
|
.triggerWithClick {
|
|
@@ -23,10 +20,10 @@
|
|
|
23
20
|
color: var(--neutral-alpha-11);
|
|
24
21
|
|
|
25
22
|
span {
|
|
26
|
-
font-family:
|
|
23
|
+
font-family: 'Articulat CF', sans-serif;
|
|
27
24
|
font-size: 14px;
|
|
28
25
|
font-style: normal;
|
|
29
|
-
font-weight:
|
|
26
|
+
font-weight: 500;
|
|
30
27
|
line-height: 17px;
|
|
31
28
|
letter-spacing: 0;
|
|
32
29
|
}
|
|
@@ -34,7 +31,7 @@
|
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
.container:has(.triggerWithClick) .triggerWithClick {
|
|
37
|
-
border-radius:
|
|
34
|
+
border-radius: 6px 0 0 6px;
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
.triggerWithClick:focus-visible {
|
|
@@ -76,11 +73,11 @@
|
|
|
76
73
|
font: inherit;
|
|
77
74
|
color: inherit;
|
|
78
75
|
outline: none;
|
|
79
|
-
border-radius:
|
|
76
|
+
border-radius: 6px;
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
.container:has(.triggerWithClick) .menuTrigger {
|
|
83
|
-
border-radius: 0
|
|
80
|
+
border-radius: 0 6px 6px 0;
|
|
84
81
|
}
|
|
85
82
|
|
|
86
83
|
.menuTrigger:focus-visible {
|
|
@@ -109,13 +106,13 @@
|
|
|
109
106
|
.menuPortal {
|
|
110
107
|
border-radius: 8px;
|
|
111
108
|
border: 1px solid var(--neutral-alpha-3);
|
|
112
|
-
background:
|
|
109
|
+
background: var(--panel-solid);
|
|
113
110
|
box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.3),
|
|
114
111
|
0 12px 60px 0 rgba(0, 0, 0, 0.15);
|
|
115
112
|
}
|
|
116
113
|
|
|
117
114
|
.chevron {
|
|
118
|
-
padding: 4px;
|
|
115
|
+
padding: 4px 3px;
|
|
119
116
|
color: var(--neutral-alpha-7);
|
|
120
117
|
|
|
121
118
|
&:hover {
|
|
@@ -128,7 +125,7 @@
|
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
.chevronWithoutSeparator {
|
|
131
|
-
padding: 4px
|
|
128
|
+
padding: 4px 3px 4px 0 !important;
|
|
132
129
|
}
|
|
133
130
|
|
|
134
131
|
.customContentClassName {
|
|
@@ -141,6 +138,15 @@
|
|
|
141
138
|
|
|
142
139
|
.triggerWithoutClick {
|
|
143
140
|
color: var(--neutral-alpha-11);
|
|
141
|
+
padding: 4px 0 4px 3px;
|
|
142
|
+
|
|
143
|
+
span {
|
|
144
|
+
padding: 0 8px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
svg {
|
|
148
|
+
padding: 3px 7px 3px 4px;
|
|
149
|
+
}
|
|
144
150
|
|
|
145
151
|
&:hover {
|
|
146
152
|
color: var(--neutral-alpha-12);
|
|
@@ -149,4 +155,8 @@
|
|
|
149
155
|
&:active {
|
|
150
156
|
color: var(--neutral-alpha-11);
|
|
151
157
|
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.separator {
|
|
161
|
+
background: var(--neutral-alpha-5);
|
|
152
162
|
}
|
|
@@ -55,7 +55,7 @@ export const Default = {
|
|
|
55
55
|
|
|
56
56
|
export const WithCustomAction = {
|
|
57
57
|
args: {
|
|
58
|
-
trigger: <MetronomeIcon width={
|
|
58
|
+
trigger: <MetronomeIcon width={18} height={18} />,
|
|
59
59
|
onTriggerClick: () => alert('Metronome toggled'),
|
|
60
60
|
},
|
|
61
61
|
render: (args) => (
|
|
@@ -81,7 +81,7 @@ export const WithRenderProp = {
|
|
|
81
81
|
<>
|
|
82
82
|
<Flex direction="column" gap="3" width="220px">
|
|
83
83
|
<IconButton >
|
|
84
|
-
<MetronomeIcon width={
|
|
84
|
+
<MetronomeIcon width={18} height={18} />
|
|
85
85
|
</IconButton>
|
|
86
86
|
<Text size="2">Show chord diagrams</Text>
|
|
87
87
|
<Switch
|
|
@@ -143,7 +143,7 @@ export const WithoutSeparator = {
|
|
|
143
143
|
showSeparator: false,
|
|
144
144
|
},
|
|
145
145
|
render: (args) => (
|
|
146
|
-
<ToolsDropdown {...args} trigger={<MetronomeIcon width={
|
|
146
|
+
<ToolsDropdown {...args} trigger={<MetronomeIcon width={18} height={18} />}>
|
|
147
147
|
<Text size="2">Tool settings panel</Text>
|
|
148
148
|
</ToolsDropdown>
|
|
149
149
|
),
|
package/src/icons/BassIcon.jsx
CHANGED
|
@@ -6,7 +6,7 @@ export const BassIcon = ({ width = 16, height = 16, className, ...props }) => (
|
|
|
6
6
|
<path d="M4.27273 6.13381C3.9515 6.45503 3.4307 6.45503 3.10947 6.13381C2.78825 5.81258 2.78825 5.29177 3.10947 4.97055C3.4307 4.64933 3.9515 4.64933 4.27273 4.97055C4.59395 5.29177 4.59395 5.81258 4.27273 6.13381Z" fill="currentColor"/>
|
|
7
7
|
<path d="M2.41162 7.995C2.0904 8.31622 1.56959 8.31622 1.24836 7.995C0.92714 7.67377 0.92714 7.15297 1.24836 6.83174C1.56959 6.51052 2.0904 6.51052 2.41162 6.83174C2.73285 7.15297 2.73285 7.67377 2.41162 7.995Z" fill="currentColor"/>
|
|
8
8
|
<path d="M2.83337 14.2084V11.2046C2.83337 10.5906 3.07728 10.0018 3.51145 9.56761L9.6173 3.46175C10.5396 2.53945 12.0379 2.54237 12.9602 3.46467C13.7982 4.30271 13.8366 5.65259 13.0442 6.53392C12.7714 6.83731 12.4117 7.0491 12.014 7.14037L11.8842 7.17017C11.4331 7.27372 11.0816 7.62726 10.9807 8.07898L10.1836 11.6463C10.1232 11.9169 9.90304 12.1228 9.62898 12.1652C8.65956 12.3149 7.8995 13.0765 7.75171 14.0462L7.72699 14.2084"
|
|
9
|
-
stroke="currentColor"
|
|
9
|
+
stroke="currentColor" strokeWidth="1.2" strokeLinecap="round"/>
|
|
10
10
|
</svg>
|
|
11
11
|
)
|
|
12
12
|
|
|
@@ -5,7 +5,7 @@ export const MusicAddIcon = ({
|
|
|
5
5
|
...props
|
|
6
6
|
}) => (
|
|
7
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="Music Add Icon">
|
|
8
|
-
<path d="M20.5 11.0556V9.67989C20.5 8.35152 19.8405 7.10981 18.74 6.36593L15.28 4.02722C14.9479 3.80278 14.5 4.04068 14.5 4.44147V18M6.5 10.5L6.5 6.5M6.5 6.5V2.5M6.5 6.5H2.5M6.5 6.5H10.5M14.5 14.5L10.1217 15.9594C9.15324 16.2823 8.5 17.1886 8.5 18.2094C8.5 19.8283 10.086 20.9713 11.6217 20.4594L13.8162 19.7279C14.2246 19.5918 14.5 19.2097 14.5 18.7792V14.5Z" stroke="white"
|
|
8
|
+
<path d="M20.5 11.0556V9.67989C20.5 8.35152 19.8405 7.10981 18.74 6.36593L15.28 4.02722C14.9479 3.80278 14.5 4.04068 14.5 4.44147V18M6.5 10.5L6.5 6.5M6.5 6.5V2.5M6.5 6.5H2.5M6.5 6.5H10.5M14.5 14.5L10.1217 15.9594C9.15324 16.2823 8.5 17.1886 8.5 18.2094C8.5 19.8283 10.086 20.9713 11.6217 20.4594L13.8162 19.7279C14.2246 19.5918 14.5 19.2097 14.5 18.7792V14.5Z" stroke="white" strokeWidth="1.8" strokeMiterlimit="10" strokeLinecap="round"/>
|
|
9
9
|
</svg>
|
|
10
10
|
)
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ export const NoVolume2Icon = ({
|
|
|
5
5
|
...props
|
|
6
6
|
}) => (
|
|
7
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="No Volume 2 Icon">
|
|
8
|
-
<path d="M20 20L4 4M18.6063 6.21988C20.139 7.75303 21 9.83214 21 12C21 14.1679 20.139 16.247 18.6063 17.7801M15.723 10C16.2523 10.5294 16.5496 11.2474 16.5496 11.9959C16.5496 12.7445 16.2523 13.4624 15.723 13.9918M4 8.00002C3.44772 8.00002 3 8.44774 3 9.00002V15C3 15.5523 3.44772 16 4 16H6L10.8519 20.0432C11.3078 20.4232 12 20.099 12 19.5055V15.7528M7.1038 7.08019L10.8519 3.9568C11.3078 3.57685 12 3.90107 12 4.49455V12" stroke="white"
|
|
8
|
+
<path d="M20 20L4 4M18.6063 6.21988C20.139 7.75303 21 9.83214 21 12C21 14.1679 20.139 16.247 18.6063 17.7801M15.723 10C16.2523 10.5294 16.5496 11.2474 16.5496 11.9959C16.5496 12.7445 16.2523 13.4624 15.723 13.9918M4 8.00002C3.44772 8.00002 3 8.44774 3 9.00002V15C3 15.5523 3.44772 16 4 16H6L10.8519 20.0432C11.3078 20.4232 12 20.099 12 19.5055V15.7528M7.1038 7.08019L10.8519 3.9568C11.3078 3.57685 12 3.90107 12 4.49455V12" stroke="white" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
|
|
9
9
|
</svg>
|
|
10
10
|
)
|
|
11
11
|
|