@moises.ai/design-system 3.9.19 → 3.9.21
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/index.js +311 -310
- package/package.json +1 -1
- package/src/components/AdditionalItems/AdditionalItems.jsx +1 -1
- package/src/components/ProductsList/ProductsList.jsx +1 -1
- package/src/components/ProfileMenu/ProfileMenu.jsx +1 -1
- package/src/components/SetlistList/SetlistList.jsx +1 -1
- package/src/components/Sidebar/Sidebar.jsx +20 -16
- package/src/components/Sidebar/Sidebar.module.css +4 -1
package/package.json
CHANGED
|
@@ -54,7 +54,7 @@ export const AdditionalItems = ({
|
|
|
54
54
|
</Flex>
|
|
55
55
|
)
|
|
56
56
|
return collapsed ? (
|
|
57
|
-
<Tooltip key={item.id || index} content={item.label} side="right">
|
|
57
|
+
<Tooltip key={item.id || index} content={item.label} side="right" sideOffset={5}>
|
|
58
58
|
{navItem}
|
|
59
59
|
</Tooltip>
|
|
60
60
|
) : (
|
|
@@ -40,7 +40,7 @@ function SetlistExpandButton({ onExpand, className, style, collapsed = false, to
|
|
|
40
40
|
</button>
|
|
41
41
|
)
|
|
42
42
|
return collapsed && tooltip ? (
|
|
43
|
-
<Tooltip content={tooltip} side="right">
|
|
43
|
+
<Tooltip content={tooltip} side="right" sideOffset={15}>
|
|
44
44
|
{button}
|
|
45
45
|
</Tooltip>
|
|
46
46
|
) : (
|
|
@@ -149,15 +149,16 @@ export const Sidebar = ({
|
|
|
149
149
|
onMouseLeave={handleMouseLeave}
|
|
150
150
|
>
|
|
151
151
|
{effectiveCollapsed ? (
|
|
152
|
-
<
|
|
153
|
-
<
|
|
154
|
-
<
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
152
|
+
<div className={styles.headerWrapper}>
|
|
153
|
+
<Tooltip content={tooltip} side="right" sideOffset={5} align="center" alignOffset={0}>
|
|
154
|
+
<div className={styles.tooltipTriggerWrapper}>
|
|
155
|
+
<Flex
|
|
156
|
+
align="center"
|
|
157
|
+
justify="between"
|
|
158
|
+
className={classNames(styles.header, {
|
|
159
|
+
[styles.headerCollapsed]: effectiveCollapsed,
|
|
160
|
+
})}
|
|
161
|
+
>
|
|
161
162
|
<Flex
|
|
162
163
|
align="center"
|
|
163
164
|
gap="2"
|
|
@@ -179,14 +180,16 @@ export const Sidebar = ({
|
|
|
179
180
|
</Flex>
|
|
180
181
|
</div>
|
|
181
182
|
</Tooltip>
|
|
183
|
+
</div>
|
|
182
184
|
) : (
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
<div className={styles.headerWrapper}>
|
|
186
|
+
<Flex
|
|
187
|
+
align="center"
|
|
188
|
+
justify="between"
|
|
189
|
+
className={classNames(styles.header, {
|
|
190
|
+
[styles.headerCollapsed]: effectiveCollapsed,
|
|
191
|
+
})}
|
|
192
|
+
>
|
|
190
193
|
<Flex
|
|
191
194
|
align="center"
|
|
192
195
|
gap="2"
|
|
@@ -206,6 +209,7 @@ export const Sidebar = ({
|
|
|
206
209
|
<SidebarLeftIcon width={16} height={16} />
|
|
207
210
|
</Flex>
|
|
208
211
|
</Flex>
|
|
212
|
+
</div>
|
|
209
213
|
)}
|
|
210
214
|
<Flex direction="column" className={styles.content}>
|
|
211
215
|
{children}
|
|
@@ -247,12 +247,15 @@
|
|
|
247
247
|
align-items: center;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
.headerWrapper {
|
|
251
|
+
margin-top: 18px;
|
|
252
|
+
}
|
|
253
|
+
|
|
250
254
|
.header {
|
|
251
255
|
display: flex;
|
|
252
256
|
align-items: center;
|
|
253
257
|
justify-content: space-between;
|
|
254
258
|
padding: 24px;
|
|
255
|
-
margin-top: 18px;
|
|
256
259
|
height: 48px;
|
|
257
260
|
transition: padding 280ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
258
261
|
}
|