@moises.ai/design-system 4.17.9 → 4.17.11
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
|
@@ -73,7 +73,8 @@
|
|
|
73
73
|
|
|
74
74
|
/* hover (native + forced via data-state='hover' for documentation/Storybook) */
|
|
75
75
|
.card[data-state='default']:hover,
|
|
76
|
-
.card[data-state='hover']
|
|
76
|
+
.card[data-state='hover'],
|
|
77
|
+
.card[data-state='disabled']:hover {
|
|
77
78
|
border-color: var(--neutral-alpha-6, rgba(214, 235, 253, 0.19));
|
|
78
79
|
background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
|
|
79
80
|
}
|
|
@@ -86,14 +87,22 @@
|
|
|
86
87
|
|
|
87
88
|
/* disabled / locked — same border/background as default; text + lock are muted, icon stays */
|
|
88
89
|
.card[data-state='disabled'] {
|
|
89
|
-
cursor:
|
|
90
|
+
cursor: pointer;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
|
|
93
|
+
|
|
93
94
|
.card[data-state='disabled'] .lockIcon {
|
|
94
95
|
color: var(--neutral-alpha-5);
|
|
95
96
|
}
|
|
96
97
|
|
|
98
|
+
.card[data-state='disabled'] .cardText {
|
|
99
|
+
color: var(--neutral-alpha-12);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.card[data-state='disabled'] .cardIcon {
|
|
103
|
+
color: var(--neutral-alpha-7);
|
|
104
|
+
}
|
|
105
|
+
|
|
97
106
|
.card[data-state='disabled-checked'] {
|
|
98
107
|
border-color: rgba(0, 220, 253, 0.20);
|
|
99
108
|
background: var(--neutral-alpha-2, rgba(216, 244, 246, 0.04));
|
|
@@ -15,6 +15,7 @@ const ProjectItem = ({
|
|
|
15
15
|
loading = false,
|
|
16
16
|
failed = false,
|
|
17
17
|
children,
|
|
18
|
+
labels = {},
|
|
18
19
|
...props
|
|
19
20
|
}) => {
|
|
20
21
|
const {
|
|
@@ -121,7 +122,7 @@ const ProjectItem = ({
|
|
|
121
122
|
<Button variant="ghost" color="gray" style={{ flex: '1' }}
|
|
122
123
|
onClick={handleInsertAllTracks}
|
|
123
124
|
>
|
|
124
|
-
<ArrowLeftIcon width={16} height={16} /> Insert all
|
|
125
|
+
<ArrowLeftIcon width={16} height={16} /> {labels.insertAll || 'Insert all'}
|
|
125
126
|
</Button>
|
|
126
127
|
|
|
127
128
|
{allTracks.length > 6 && (
|
|
@@ -129,7 +130,7 @@ const ProjectItem = ({
|
|
|
129
130
|
<Separator orientation="vertical" />
|
|
130
131
|
|
|
131
132
|
<Button variant="ghost" color="gray" style={{ flex: '1' }} onClick={handleClickShowAllTracks}>
|
|
132
|
-
{showAllTracks ? 'Show less' : 'Show more'}
|
|
133
|
+
{showAllTracks ? labels.showLess || 'Show less' : labels.showMore || 'Show more'}
|
|
133
134
|
{showAllTracks ? <ChevronUpIcon width={16} height={16} /> : <ChevronDownIcon width={16} height={16} />}
|
|
134
135
|
</Button>
|
|
135
136
|
</>
|
|
@@ -10,7 +10,8 @@ export const ProjectsList = ({
|
|
|
10
10
|
projects = [],
|
|
11
11
|
onClickTrack,
|
|
12
12
|
onInsertAllTracks,
|
|
13
|
-
onProjectClick
|
|
13
|
+
onProjectClick,
|
|
14
|
+
labels = {}
|
|
14
15
|
}) => {
|
|
15
16
|
const [openedItem, setOpenedItem] = useState(null)
|
|
16
17
|
|
|
@@ -27,7 +28,7 @@ export const ProjectsList = ({
|
|
|
27
28
|
>
|
|
28
29
|
<Flex direction="column" width="100%">
|
|
29
30
|
{projects.map((project) => (
|
|
30
|
-
<ProjectItem key={project.id} {...project}>
|
|
31
|
+
<ProjectItem key={project.id} {...project} labels={labels}>
|
|
31
32
|
{children}
|
|
32
33
|
</ProjectItem>
|
|
33
34
|
))}
|