@moises.ai/design-system 3.9.18 → 3.9.19
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
|
@@ -119,10 +119,11 @@
|
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.textNewSetlist {
|
|
122
|
-
max-width:
|
|
122
|
+
max-width: 126px;
|
|
123
123
|
opacity: 1;
|
|
124
124
|
transition: opacity 360ms ease-in-out;
|
|
125
125
|
white-space: nowrap;
|
|
126
|
+
color: var(--neutral-alpha-11);
|
|
126
127
|
}
|
|
127
128
|
|
|
128
129
|
.collapsed .textNewSetlist {
|
|
@@ -66,16 +66,14 @@ export const Sidebar = ({
|
|
|
66
66
|
[styles.logoInContainerHidden]: effectiveCollapsed && isHovered,
|
|
67
67
|
})}
|
|
68
68
|
/>
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/>
|
|
78
|
-
</Tooltip>
|
|
69
|
+
<SidebarLeftIcon
|
|
70
|
+
width={16}
|
|
71
|
+
height={16}
|
|
72
|
+
className={classNames(styles.toggleInContainer, {
|
|
73
|
+
[styles.toggleInContainerVisible]:
|
|
74
|
+
effectiveCollapsed && isHovered,
|
|
75
|
+
})}
|
|
76
|
+
/>
|
|
79
77
|
</div>
|
|
80
78
|
<MoisesIcon
|
|
81
79
|
height={12.269}
|
|
@@ -150,32 +148,65 @@ export const Sidebar = ({
|
|
|
150
148
|
onMouseEnter={handleMouseEnter}
|
|
151
149
|
onMouseLeave={handleMouseLeave}
|
|
152
150
|
>
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
151
|
+
{effectiveCollapsed ? (
|
|
152
|
+
<Tooltip content={tooltip} side="right">
|
|
153
|
+
<div className={styles.tooltipTriggerWrapper}>
|
|
154
|
+
<Flex
|
|
155
|
+
align="center"
|
|
156
|
+
justify="between"
|
|
157
|
+
className={classNames(styles.header, {
|
|
158
|
+
[styles.headerCollapsed]: effectiveCollapsed,
|
|
159
|
+
})}
|
|
160
|
+
>
|
|
161
|
+
<Flex
|
|
162
|
+
align="center"
|
|
163
|
+
gap="2"
|
|
164
|
+
onClick={handleLogoClick}
|
|
165
|
+
style={{ cursor: 'pointer' }}
|
|
166
|
+
>
|
|
167
|
+
{logoContent}
|
|
168
|
+
</Flex>
|
|
169
|
+
<Flex
|
|
170
|
+
align="center"
|
|
171
|
+
justify="center"
|
|
172
|
+
onClick={handleToggleCollapse}
|
|
173
|
+
className={classNames(styles.toggleButton, {
|
|
174
|
+
[styles.toggleButtonHidden]: effectiveCollapsed,
|
|
175
|
+
})}
|
|
176
|
+
>
|
|
177
|
+
<SidebarLeftIcon width={16} height={16} />
|
|
178
|
+
</Flex>
|
|
179
|
+
</Flex>
|
|
180
|
+
</div>
|
|
181
|
+
</Tooltip>
|
|
182
|
+
) : (
|
|
160
183
|
<Flex
|
|
161
184
|
align="center"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
>
|
|
166
|
-
{logoContent}
|
|
167
|
-
</Flex>
|
|
168
|
-
<Flex
|
|
169
|
-
align="center"
|
|
170
|
-
justify="center"
|
|
171
|
-
onClick={handleToggleCollapse}
|
|
172
|
-
className={classNames(styles.toggleButton, {
|
|
173
|
-
[styles.toggleButtonHidden]: effectiveCollapsed,
|
|
185
|
+
justify="between"
|
|
186
|
+
className={classNames(styles.header, {
|
|
187
|
+
[styles.headerCollapsed]: effectiveCollapsed,
|
|
174
188
|
})}
|
|
175
189
|
>
|
|
176
|
-
<
|
|
190
|
+
<Flex
|
|
191
|
+
align="center"
|
|
192
|
+
gap="2"
|
|
193
|
+
onClick={handleLogoClick}
|
|
194
|
+
style={{ cursor: 'pointer' }}
|
|
195
|
+
>
|
|
196
|
+
{logoContent}
|
|
197
|
+
</Flex>
|
|
198
|
+
<Flex
|
|
199
|
+
align="center"
|
|
200
|
+
justify="center"
|
|
201
|
+
onClick={handleToggleCollapse}
|
|
202
|
+
className={classNames(styles.toggleButton, {
|
|
203
|
+
[styles.toggleButtonHidden]: effectiveCollapsed,
|
|
204
|
+
})}
|
|
205
|
+
>
|
|
206
|
+
<SidebarLeftIcon width={16} height={16} />
|
|
207
|
+
</Flex>
|
|
177
208
|
</Flex>
|
|
178
|
-
|
|
209
|
+
)}
|
|
179
210
|
<Flex direction="column" className={styles.content}>
|
|
180
211
|
{children}
|
|
181
212
|
</Flex>
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
.tooltipTriggerWrapper {
|
|
7
|
+
display: block;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
.root {
|
|
7
12
|
background-color: var(--neutral-1);
|
|
8
13
|
width: 240px;
|
|
@@ -81,11 +86,13 @@
|
|
|
81
86
|
opacity: 0;
|
|
82
87
|
pointer-events: none;
|
|
83
88
|
transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
89
|
+
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
.toggleInContainerVisible {
|
|
87
93
|
opacity: 1;
|
|
88
94
|
pointer-events: auto;
|
|
95
|
+
padding: 4px
|
|
89
96
|
}
|
|
90
97
|
|
|
91
98
|
.toggleButton {
|