@moises.ai/design-system 4.21.3 → 4.21.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "4.21.3",
3
+ "version": "4.21.5",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -17,6 +17,8 @@ const ProjectItem = ({
17
17
  failed = false,
18
18
  children,
19
19
  labels = {},
20
+ duration: _duration,
21
+ toggleHifi: _toggleHifi,
20
22
  ...props
21
23
  }) => {
22
24
  const {
@@ -19,6 +19,8 @@ const ProjectItemStemSeparation = ({
19
19
  children,
20
20
  labels = {},
21
21
  stemSeparation,
22
+ duration: _duration,
23
+ toggleHifi: _toggleHifi,
22
24
  ...props
23
25
  }) => {
24
26
  const {
@@ -18,7 +18,7 @@ const StemSeparationForm = ({
18
18
  onSubmit,
19
19
  setIsChangingStems,
20
20
  }) => {
21
- const { openedItem, onShowPaywall, lockHifi } = useContext(ProjectsListContext)
21
+ const { openedItem, onShowPaywall, toggleHifi } = useContext(ProjectsListContext)
22
22
 
23
23
  const {
24
24
  stemsSelected,
@@ -56,11 +56,11 @@ const StemSeparationForm = ({
56
56
  onClick={handleSubmit}
57
57
  >
58
58
  {labels.changeStems || 'Change Stems'}
59
- {!lockHifi ? <HiFi1Icon className={styles.hiFiIcon} /> : null}
59
+ {!toggleHifi ? <HiFi1Icon className={styles.hiFiIcon} /> : null}
60
60
  </Button>
61
61
 
62
62
  {
63
- lockHifi ?
63
+ toggleHifi ?
64
64
  <Flex
65
65
  direction="row"
66
66
  justify="between"
@@ -17,7 +17,7 @@ export const ProjectsList = ({
17
17
  onShowPaywall,
18
18
  labels = {},
19
19
  showCover = true,
20
- lockHifi = false
20
+ toggleHifi = false
21
21
  }) => {
22
22
  const [openedItem, setOpenedItem] = useState(null)
23
23
 
@@ -35,7 +35,7 @@ export const ProjectsList = ({
35
35
  setOpenedItem,
36
36
  labels,
37
37
  showCover,
38
- lockHifi,
38
+ toggleHifi,
39
39
  }}
40
40
  >
41
41
  <Flex direction="column" width="100%">
@@ -229,7 +229,7 @@ export const WithTrackSeparate = {
229
229
  onShowPaywall: (paywallId) => {
230
230
  console.log('show-paywall', paywallId)
231
231
  },
232
- lockHifi: false,
232
+ toggleHifi: false,
233
233
  },
234
234
  render: (args) => {
235
235
  return (
@@ -241,7 +241,7 @@ export const WithTrackSeparate = {
241
241
  onProjectClick={args.onProjectClick}
242
242
  onSubmitStemSeparation={args.onSubmitStemSeparation}
243
243
  onShowPaywall={args.onShowPaywall}
244
- lockHifi={args.lockHifi}
244
+ toggleHifi={args.toggleHifi}
245
245
  >
246
246
  {({ projectId, tracks }) =>
247
247
  tracks.map((track) => (
@@ -278,7 +278,7 @@ export const WithTrackSeparateHifi = {
278
278
  onShowPaywall: (paywallId) => {
279
279
  console.log('show-paywall', paywallId)
280
280
  },
281
- lockHifi: true,
281
+ toggleHifi: true,
282
282
  },
283
283
  render: (args) => {
284
284
  return (
@@ -290,7 +290,7 @@ export const WithTrackSeparateHifi = {
290
290
  onProjectClick={args.onProjectClick}
291
291
  onSubmitStemSeparation={args.onSubmitStemSeparation}
292
292
  onShowPaywall={args.onShowPaywall}
293
- lockHifi={args.lockHifi}
293
+ toggleHifi={args.toggleHifi}
294
294
  >
295
295
  {({ projectId, tracks }) =>
296
296
  tracks.map((track) => (
@@ -12,5 +12,5 @@ export const ProjectsListContext = createContext({
12
12
  setOpenedItem: () => { },
13
13
  labels: {},
14
14
  showCover: true,
15
- lockHifi: false,
15
+ toggleHifi: false,
16
16
  })
@@ -356,7 +356,7 @@ export const projects = [
356
356
  cover: null,
357
357
  duration: 19.924,
358
358
  type: 'stems',
359
- lockHifi: true,
359
+ toggleHifi: true,
360
360
  tracks: [
361
361
  {
362
362
  id: 'vocals',
@@ -28,6 +28,8 @@ export const getIconFromTrackId = (trackId) => {
28
28
  return <VocalIcon width={16} height={16} />
29
29
  case 'backing_vocals':
30
30
  return <VocalsBackgroundIcon width={16} height={16} />
31
+ case 'lead_vocals':
32
+ return <VocalsBackgroundIcon width={16} height={16} />
31
33
  case 'drums':
32
34
  return <DrumsIcon width={16} height={16} />
33
35
  case 'bass':