@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moises.ai/design-system",
3
- "version": "3.9.19",
3
+ "version": "3.9.21",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -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
  ) : (
@@ -66,7 +66,7 @@ export const ProductsList = ({
66
66
  </Flex>
67
67
  )
68
68
  return collapsed ? (
69
- <Tooltip key={product.id} content={product.label} side="right">
69
+ <Tooltip key={product.id} content={product.label} side="right" sideOffset={5}>
70
70
  {navItem}
71
71
  </Tooltip>
72
72
  ) : (
@@ -31,7 +31,7 @@ export const ProfileMenu = ({
31
31
  trigger={
32
32
  collapsed && tooltip ? (
33
33
  <div>
34
- <Tooltip content={tooltip} side="right">
34
+ <Tooltip content={tooltip} side="right" sideOffset={5}>
35
35
  {trigger}
36
36
  </Tooltip>
37
37
  </div>
@@ -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
- <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
- >
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
- <Flex
184
- align="center"
185
- justify="between"
186
- className={classNames(styles.header, {
187
- [styles.headerCollapsed]: effectiveCollapsed,
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
  }