@moises.ai/design-system 3.5.2 → 3.5.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/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Flex, Text, Separator
|
|
1
|
+
import { Flex, Text, Separator } from '@radix-ui/themes'
|
|
2
2
|
import styles from './ProjectsList.module.css'
|
|
3
3
|
import { useState } from 'react'
|
|
4
4
|
import { ArrowLeftIcon, NoMusicIcon, ChevronDownIcon, ChevronUpIcon } from '../../icons'
|
|
5
5
|
import { getIconFromTrackId } from './utils'
|
|
6
|
+
import { Button } from '../Button/Button'
|
|
6
7
|
|
|
7
8
|
export const ProjectsList = ({
|
|
8
9
|
projects = [],
|
|
@@ -100,7 +101,7 @@ export const ProjectsList = ({
|
|
|
100
101
|
))}
|
|
101
102
|
|
|
102
103
|
<Flex direction="row" gap="3" p="2" align="center" justify="center">
|
|
103
|
-
<Button variant="ghost" color="
|
|
104
|
+
<Button variant="ghost" color="neutral" style={{ flex: '1' }}
|
|
104
105
|
onClick={(e) => {
|
|
105
106
|
e.stopPropagation()
|
|
106
107
|
onInsertAllTracks?.(project.tracks)
|
|
@@ -23,48 +23,48 @@ import {
|
|
|
23
23
|
export const getIconFromTrackId = (trackId) => {
|
|
24
24
|
switch (trackId) {
|
|
25
25
|
case 'original':
|
|
26
|
-
return <SpliterIcon />
|
|
26
|
+
return <SpliterIcon width={16} height={16} />
|
|
27
27
|
case 'vocals':
|
|
28
|
-
return <VocalIcon />
|
|
28
|
+
return <VocalIcon width={16} height={16} />
|
|
29
29
|
case 'backing_vocals':
|
|
30
|
-
return <VocalsBackgroundIcon />
|
|
30
|
+
return <VocalsBackgroundIcon width={16} height={16} />
|
|
31
31
|
case 'drums':
|
|
32
|
-
return <DrumsIcon />
|
|
32
|
+
return <DrumsIcon width={16} height={16} />
|
|
33
33
|
case 'bass':
|
|
34
|
-
return <BassIcon />
|
|
34
|
+
return <BassIcon width={16} height={16} />
|
|
35
35
|
case 'guitars':
|
|
36
|
-
return <ElectricGuitarIcon />
|
|
36
|
+
return <ElectricGuitarIcon width={16} height={16} />
|
|
37
37
|
case 'other_kit':
|
|
38
|
-
return <IsolateDrumsIcon />
|
|
38
|
+
return <IsolateDrumsIcon width={16} height={16} />
|
|
39
39
|
case "piano":
|
|
40
|
-
return <PianoIcon />
|
|
40
|
+
return <PianoIcon width={16} height={16} />
|
|
41
41
|
case "wind":
|
|
42
|
-
return <WindIcon />
|
|
42
|
+
return <WindIcon width={16} height={16} />
|
|
43
43
|
case "strings":
|
|
44
|
-
return <StringsIcon />
|
|
44
|
+
return <StringsIcon width={16} height={16} />
|
|
45
45
|
case "keys":
|
|
46
|
-
return <KeysIcon />
|
|
46
|
+
return <KeysIcon width={16} height={16} />
|
|
47
47
|
case "kick":
|
|
48
|
-
return <KickdrumIcon />
|
|
48
|
+
return <KickdrumIcon width={16} height={16} />
|
|
49
49
|
case "snare":
|
|
50
|
-
return <SnareIcon />
|
|
50
|
+
return <SnareIcon width={16} height={16} />
|
|
51
51
|
case "toms":
|
|
52
|
-
return <TomsIcon />
|
|
52
|
+
return <TomsIcon width={16} height={16} />
|
|
53
53
|
case "hat":
|
|
54
|
-
return <HiHatIcon />
|
|
54
|
+
return <HiHatIcon width={16} height={16} />
|
|
55
55
|
case "cymbals":
|
|
56
|
-
return <CymbalsIcon />
|
|
56
|
+
return <CymbalsIcon width={16} height={16} />
|
|
57
57
|
case "rhythm":
|
|
58
|
-
return <ElectricGuitarIcon />
|
|
58
|
+
return <ElectricGuitarIcon width={16} height={16} />
|
|
59
59
|
case "lead":
|
|
60
|
-
return <ElectricGuitarIcon />
|
|
60
|
+
return <ElectricGuitarIcon width={16} height={16} />
|
|
61
61
|
case "electric":
|
|
62
|
-
return <AcousticGuitarIcon />
|
|
62
|
+
return <AcousticGuitarIcon width={16} height={16} />
|
|
63
63
|
case "acoustic":
|
|
64
|
-
return <AcousticGuitarIcon />
|
|
64
|
+
return <AcousticGuitarIcon width={16} height={16} />
|
|
65
65
|
case 'other':
|
|
66
|
-
return <MusicIcon />
|
|
66
|
+
return <MusicIcon width={16} height={16} />
|
|
67
67
|
default:
|
|
68
|
-
return <SparkBarsIcon />
|
|
68
|
+
return <SparkBarsIcon width={16} height={16} />
|
|
69
69
|
}
|
|
70
70
|
}
|