@moises.ai/design-system 4.18.14 → 4.18.16
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/{ChordGrid4Icon-2Br7uolD.js → SampleIcon-B4pWzhXY.js} +1169 -1074
- package/dist/icons.js +678 -674
- package/dist/index.js +156 -156
- package/package.json +1 -1
- package/src/components/ProjectsList/ProjectItem/ProjectItem.jsx +7 -2
- package/src/components/ProjectsList/ProjectTrackVoice/ProjectTrackVoice.jsx +1 -1
- package/src/icons/AutomationIcon.jsx +17 -0
- package/src/icons/BarsIcon.jsx +5 -17
- package/src/icons/KeysIcon.jsx +5 -16
- package/src/icons/Record1Icon.jsx +11 -0
- package/src/icons/SampleIcon.jsx +10 -0
- package/src/icons/StemsIcon.jsx +11 -0
- package/src/icons.jsx +4 -0
package/package.json
CHANGED
|
@@ -53,9 +53,14 @@ const ProjectItem = ({
|
|
|
53
53
|
|
|
54
54
|
const handleInsertAllTracks = useCallback((e) => {
|
|
55
55
|
e.stopPropagation()
|
|
56
|
-
|
|
56
|
+
let tracksFiltered = []
|
|
57
|
+
if (type === 'voice') {
|
|
58
|
+
tracksFiltered = allTracks.filter((track) => !track.loading && track.transfers?.length > 0)
|
|
59
|
+
} else {
|
|
60
|
+
tracksFiltered = allTracks.filter((track) => !track.loading && track.audioUrl)
|
|
61
|
+
}
|
|
57
62
|
onInsertAllTracks?.(tracksFiltered)
|
|
58
|
-
}, [onInsertAllTracks, allTracks])
|
|
63
|
+
}, [onInsertAllTracks, allTracks, type])
|
|
59
64
|
|
|
60
65
|
return (
|
|
61
66
|
<Flex
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export const AutomationIcon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width={width}
|
|
5
|
+
height={height}
|
|
6
|
+
viewBox="0 0 16 16"
|
|
7
|
+
fill="none"
|
|
8
|
+
className={className}
|
|
9
|
+
{...props}
|
|
10
|
+
aria-label="Automation Icon">
|
|
11
|
+
<path
|
|
12
|
+
d="M1.33331 11.4C1.00194 11.4 0.733313 11.6686 0.733313 12C0.733313 12.3314 1.00194 12.6 1.33331 12.6V12V11.4ZM14.6666 4.6C14.998 4.6 15.2666 4.33137 15.2666 4C15.2666 3.66863 14.998 3.4 14.6666 3.4V4V4.6ZM7.99998 4H7.39998H7.39998H7.99998ZM9.99998 2V1.4V1.4V2ZM9.99998 6V6.6V6.6V6ZM5.99998 10V9.4V9.4V10ZM7.99998 12H8.59998V12H7.99998ZM5.99998 14V14.6V14.6V14ZM8.99998 5.66667L8.44849 5.43032L6.44849 10.097L6.99998 10.3333L7.55147 10.5697L9.55147 5.90302L8.99998 5.66667ZM1.33331 12V12.6H3.99998V12V11.4H1.33331V12ZM12 4V4.6L14.6666 4.6V4V3.4L12 3.4V4ZM7.99998 4H8.59998C8.59998 3.2268 9.22678 2.6 9.99998 2.6V2V1.4C8.56404 1.4 7.39998 2.56406 7.39998 4H7.99998ZM9.99998 2V2.6C10.7732 2.6 11.4 3.2268 11.4 4H12H12.6C12.6 2.56406 11.4359 1.4 9.99998 1.4V2ZM12 4H11.4C11.4 4.7732 10.7732 5.4 9.99998 5.4V6V6.6C11.4359 6.6 12.6 5.43594 12.6 4H12ZM9.99998 6V5.4C9.22678 5.4 8.59998 4.7732 8.59998 4H7.99998H7.39998C7.39998 5.43594 8.56404 6.6 9.99998 6.6V6ZM3.99998 12H4.59998C4.59998 11.2268 5.22678 10.6 5.99998 10.6V10V9.4C4.56404 9.4 3.39998 10.5641 3.39998 12H3.99998ZM5.99998 10V10.6C6.77318 10.6 7.39998 11.2268 7.39998 12H7.99998H8.59998C8.59998 10.5641 7.43592 9.4 5.99998 9.4V10ZM7.99998 12H7.39998C7.39998 12.7732 6.77318 13.4 5.99998 13.4V14V14.6C7.43592 14.6 8.59998 13.4359 8.59998 12H7.99998ZM5.99998 14V13.4C5.22678 13.4 4.59998 12.7732 4.59998 12H3.99998H3.39998C3.39998 13.4359 4.56404 14.6 5.99998 14.6V14Z"
|
|
13
|
+
fill="currentColor" />
|
|
14
|
+
</svg>
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
AutomationIcon.displayName = 'AutomationIcon'
|
package/src/icons/BarsIcon.jsx
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
export const BarsIcon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
-
<svg
|
|
3
|
-
|
|
4
|
-
width={width}
|
|
5
|
-
height={height}
|
|
6
|
-
viewBox="0 0 24 24"
|
|
7
|
-
fill="none"
|
|
8
|
-
className={className}
|
|
9
|
-
{...props}
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 16 16" fill="none" className={className} {...props}
|
|
3
|
+
aria-label="BarsIcon"
|
|
10
4
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
stroke="currentColor"
|
|
15
|
-
strokeWidth="1.5"
|
|
16
|
-
strokeLinecap="round"
|
|
17
|
-
/>
|
|
18
|
-
</g>
|
|
19
|
-
</svg>
|
|
5
|
+
<path d="M8 5.33203L8 10.6654M11 3.33203V12.6654M5 3.33203V12.6654M14 6.66536V9.33203M2 6.66536L2 9.33203"
|
|
6
|
+
stroke="currentColor" strokeWidth="1.2" strokeMiterlimit="10" strokeLinecap="round"/>
|
|
7
|
+
</svg>
|
|
20
8
|
)
|
|
21
9
|
|
|
22
10
|
BarsIcon.displayName = 'BarsIcon'
|
package/src/icons/KeysIcon.jsx
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
1
|
export const KeysIcon = ({ width, height, className, ...props }) => (
|
|
2
|
-
<svg
|
|
3
|
-
|
|
4
|
-
width={width}
|
|
5
|
-
height={height}
|
|
6
|
-
viewBox="0 0 16 16"
|
|
7
|
-
fill="none"
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 16 16" fill="none" className={className} {...props}
|
|
3
|
+
aria-label="KeysIcon"
|
|
8
4
|
>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
/>
|
|
13
|
-
<path d="M4.75 1.66895H7.08333V9.34342H4.75V1.66895Z" fill="currentColor" />
|
|
14
|
-
<path
|
|
15
|
-
d="M8.91333 1.66895H11.2467V9.34342H8.91333V1.66895Z"
|
|
16
|
-
fill="currentColor"
|
|
17
|
-
/>
|
|
18
|
-
</svg>
|
|
5
|
+
<path d="M14.0001 8.0013H2.00008M4.66675 8.0013V10.668M8.00008 8.0013V10.668M11.3334 8.0013V10.668M3.66675 13.3346H12.3334C13.438 13.3346 14.3334 12.4392 14.3334 11.3346V4.66797C14.3334 3.5634 13.438 2.66797 12.3334 2.66797H3.66675C2.56218 2.66797 1.66675 3.5634 1.66675 4.66797V11.3346C1.66675 12.4392 2.56218 13.3346 3.66675 13.3346Z"
|
|
6
|
+
stroke="currentColor" strokeWidth="1.2" strokeMiterlimit="10" strokeLinecap="round"/>
|
|
7
|
+
</svg>
|
|
19
8
|
)
|
|
20
9
|
|
|
21
10
|
KeysIcon.displayName = 'KeysIcon'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const Record1Icon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 16 16" fill="none" className={className} {...props}
|
|
4
|
+
aria-label="Record1Icon"
|
|
5
|
+
>
|
|
6
|
+
<path d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z"
|
|
7
|
+
stroke="currentColor" strokeWidth="1.2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
8
|
+
</svg>
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
Record1Icon.displayName = 'Record1Icon'
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const SampleIcon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 16 16" fill="none" className={className} {...props}
|
|
3
|
+
aria-label="SampleIcon"
|
|
4
|
+
>
|
|
5
|
+
<path d="M3.8 13.3346C2.80589 13.3346 2 12.5287 2 11.5346V4.46797C2 3.47386 2.80589 2.66797 3.8 2.66797M12.2 13.3346C13.1941 13.3346 14 12.5287 14 11.5346V4.46797C14 3.47386 13.1941 2.66797 12.2 2.66797M8 5.66797V10.3346M10.6667 7.33464V8.66797M5.33333 7.33464V8.66797"
|
|
6
|
+
stroke="currentColor" strokeWidth="1.2" strokeMiterlimit="10" strokeLinecap="round"/>
|
|
7
|
+
</svg>
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
SampleIcon.displayName = 'SampleIcon'
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const StemsIcon = ({ width = 16, height = 16, className, ...props }) => (
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 16 16" fill="none" className={className} {...props}
|
|
3
|
+
aria-label="StemsIcon"
|
|
4
|
+
>
|
|
5
|
+
<path
|
|
6
|
+
d="M14.6666 7.9987V12.6654C14.6666 13.7699 13.7712 14.6654 12.6666 14.6654H3.33325C2.22868 14.6654 1.33325 13.7699 1.33325 12.6654V7.9987M6.66659 3.9987V7.9987M9.33325 4.7487V7.2487M3.99992 5.4987V6.4987M11.9999 5.4987V6.4987M3.33325 10.6654H12.6666C13.7712 10.6654 14.6666 9.76993 14.6666 8.66536V3.33203C14.6666 2.22746 13.7712 1.33203 12.6666 1.33203H3.33325C2.22868 1.33203 1.33325 2.22746 1.33325 3.33203V8.66536C1.33325 9.76993 2.22868 10.6654 3.33325 10.6654Z"
|
|
7
|
+
stroke="currentColor" strokeWidth="1.2" strokeMiterlimit="10" strokeLinecap="round"/>
|
|
8
|
+
</svg>
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
StemsIcon.displayName = 'StemsIcon'
|
package/src/icons.jsx
CHANGED
|
@@ -448,3 +448,7 @@ export { ChordDiagramGridIcon } from './icons/ChordDiagramGridIcon'
|
|
|
448
448
|
export { DynamicMicrophone2Icon } from './icons/DynamicMicrophone2Icon'
|
|
449
449
|
export { Sections2Icon } from './icons/Sections2Icon'
|
|
450
450
|
export { ChordGrid4Icon } from './icons/ChordGrid4Icon'
|
|
451
|
+
export { AutomationIcon } from './icons/AutomationIcon'
|
|
452
|
+
export { Record1Icon } from './icons/Record1Icon'
|
|
453
|
+
export { StemsIcon } from './icons/StemsIcon'
|
|
454
|
+
export { SampleIcon } from './icons/SampleIcon'
|