@moises.ai/design-system 3.6.6 → 3.6.7

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.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -54,11 +54,6 @@
54
54
  background-color: var(--neutral-1) !important;
55
55
  }
56
56
 
57
- .DataTable :global(.rt-TableBody) {
58
- position: relative;
59
- top: var(--datatable-sticky-body-offset, 0px) !important;
60
- }
61
-
62
57
 
63
58
  .DataTable :global(.rt-TableHeader) :global(.rt-TableRow) {
64
59
  background-color: var(--neutral-1) !important;
@@ -79,7 +74,7 @@
79
74
  .DataTable :global(.rt-TableBody)::before {
80
75
  content: '';
81
76
  display: block;
82
- height: 16px;
77
+ height: calc(16px + var(--datatable-sticky-body-offset, 0px));
83
78
  background-color: var(--neutral-1);
84
79
  pointer-events: none;
85
80
  }
@@ -357,4 +352,4 @@
357
352
  .dropdownTriggerWrapperIcon {
358
353
  opacity: 1;
359
354
  }
360
- }
355
+ }
@@ -1,4 +1,6 @@
1
1
  import * as TooltipPrimitive from '@radix-ui/react-tooltip'
2
+ import { Text } from '../Text/Text'
3
+ import { Theme } from '../theme/Theme'
2
4
  import styles from './Tooltip.module.css'
3
5
  import classNames from 'classnames'
4
6
 
@@ -39,25 +41,27 @@ export const Tooltip = ({
39
41
  {children}
40
42
  </TooltipPrimitive.Trigger>
41
43
  <TooltipPrimitive.Portal>
42
- <TooltipPrimitive.Content
43
- className={classNames(
44
- styles.TooltipContent,
45
- styles[`TooltipContent--${color}`]
46
- )}
47
- sideOffset={5}
48
- {...restContentProps}
49
- >
50
- <span className={styles.TooltipText}>{content}</span>
51
- {shortcut && (
52
- <span className={classNames(
53
- styles.TooltipShortcut,
54
- styles[`TooltipShortcut--${color}`]
55
- )}>
56
- {shortcut}
57
- </span>
58
- )}
59
- <TooltipPrimitive.Arrow className={styles.TooltipArrow} />
60
- </TooltipPrimitive.Content>
44
+ <Theme asChild>
45
+ <TooltipPrimitive.Content
46
+ className={classNames(
47
+ styles.TooltipContent,
48
+ styles[`TooltipContent--${color}`]
49
+ )}
50
+ sideOffset={5}
51
+ {...restContentProps}
52
+ >
53
+ <Text size='1' className={styles.TooltipText}>{content}</Text>
54
+ {shortcut && (
55
+ <Text size='0' className={classNames(
56
+ styles.TooltipShortcut,
57
+ styles[`TooltipShortcut--${color}`]
58
+ )}>
59
+ {shortcut}
60
+ </Text>
61
+ )}
62
+ <TooltipPrimitive.Arrow className={styles.TooltipArrow} />
63
+ </TooltipPrimitive.Content>
64
+ </Theme>
61
65
  </TooltipPrimitive.Portal>
62
66
  </TooltipPrimitive.Root>
63
67
  </TooltipPrimitive.Provider>
@@ -1,15 +1,9 @@
1
1
  .TooltipContent {
2
2
  display: flex;
3
3
  align-items: center;
4
- gap: 8px;
4
+ gap: 2px;
5
5
  padding: 6px 12px;
6
6
  text-align: center;
7
- font-family: var(--Typography-Font-family-text, "Articulat CF");
8
- font-size: var(--Typography-Font-size-1, 12px);
9
- font-style: normal;
10
- font-weight: 400;
11
- line-height: var(--Typography-Line-height-1, 16px);
12
- letter-spacing: var(--Typography-Letter-spacing-1, 0.04px);
13
7
  z-index: 9999;
14
8
  animation-duration: 0.15s;
15
9
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
@@ -78,16 +72,16 @@
78
72
 
79
73
  /* White variant */
80
74
  .TooltipContent--white {
81
- border-radius: var(--Radius-1, 3px);
82
- background: var(--Colors-Neutral-Neutral-12, #EDEEF0);
83
- color: var(--Colors-Neutral-Neutral-1, #111113);
75
+ border-radius: 3px;
76
+ background: #EDEEF0;
77
+ color: #111113;
84
78
  }
85
79
 
86
80
  /* Gray variant */
87
81
  .TooltipContent--gray {
88
- border-radius: var(--Radius-1, 3px);
89
- background: var(--Colors-Neutral-Neutral-4, #272A2D);
90
- color: var(--Colors-Neutral-Neutral-Alpha-12, rgba(252, 253, 255, 0.94));
82
+ border-radius: 3px;
83
+ background: #272A2D;
84
+ color: rgba(252, 253, 255, 0.94);
91
85
  }
92
86
 
93
87
  .TooltipText {
@@ -95,31 +89,25 @@
95
89
  }
96
90
 
97
91
  .TooltipShortcut {
98
- font-family: var(--Typography-Font-family-text, "Articulat CF");
99
- font-size: var(--Typography-Font-size-0, 11px);
100
- font-style: normal;
101
- font-weight: 400;
102
- line-height: var(--Typography-Line-height-0, 11px);
103
- letter-spacing: var(--Typography-Letter-spacing-0, 0);
104
92
  white-space: nowrap;
105
93
  }
106
94
 
107
95
  /* White shortcut */
108
96
  .TooltipShortcut--white {
109
- color: var(--Colors-Neutral-Neutral-8, #5A6169);
97
+ color: #5A6169;
110
98
  }
111
99
 
112
100
  /* Gray shortcut */
113
101
  .TooltipShortcut--gray {
114
- color: var(--Colors-Neutral-Neutral-Alpha-10, rgba(229, 237, 253, 0.48));
102
+ color: rgba(229, 237, 253, 0.48);
115
103
  }
116
104
 
117
105
  .TooltipArrow {
118
- fill: var(--Colors-Neutral-Neutral-4, #272A2D);
106
+ fill: #272A2D;
119
107
  }
120
108
 
121
109
  .TooltipContent--white .TooltipArrow {
122
- fill: var(--Colors-Neutral-Neutral-12, #EDEEF0);
110
+ fill: #EDEEF0;
123
111
  }
124
112
 
125
113
  .TooltipContent {
@@ -28,6 +28,7 @@ export const GrayVariant = {
28
28
  args: {
29
29
  content: 'Tooltip',
30
30
  color: 'gray',
31
+ open: true,
31
32
  children: <Button>Hover me</Button>,
32
33
  },
33
34
  }
@@ -43,6 +44,7 @@ export const WhiteVariant = {
43
44
  export const WithShortcutGray = {
44
45
  args: {
45
46
  content: 'Tooltip',
47
+ open: true,
46
48
  shortcut: '⌘ C',
47
49
  color: 'gray',
48
50
  children: <Button>Hover me</Button>,