@moises.ai/design-system 4.20.1 → 4.20.2

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": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -77,9 +77,6 @@
77
77
  --mint-dark-alpha-11: rgba(120, 255, 190, 1);
78
78
  --mint-dark-alpha-12: rgba(166, 254, 205, 1);
79
79
 
80
-
81
- --panel-solid: #18191B;
82
-
83
80
  --white: rgba(255, 255, 255, 1);
84
81
  --black: rgba(28, 32, 36, 1);
85
82
 
@@ -106,31 +103,34 @@
106
103
  --Colors-Neutral-Neutral-Alpha-10: var(--colors-neutral-neutral-alpha-10);
107
104
  --Colors-Neutral-Neutral-1: var(--colors-neutral-neutral-1);
108
105
 
109
- --neutral-1: #101013;
110
- --neutral-2: #16181C;
111
- --neutral-3: #1F2126;
112
- --neutral-4: #25292E;
113
- --neutral-5: #2B2F35;
114
- --neutral-6: #32383F;
115
- --neutral-7: #3F464E;
116
- --neutral-8: #565F69;
117
- --neutral-9: #656C77;
118
- --neutral-10: #737884;
119
- --neutral-11: #ACB4BF;
120
- --neutral-12: #E6EAF0;
106
+ --neutral-1: #101213;
107
+ --neutral-2: #161A1D;
108
+ --neutral-3: #1D2125;
109
+ --neutral-4: #24292D;
110
+ --neutral-5: #2B3136;
111
+ --neutral-6: #343B42;
112
+ --neutral-7: #414A53;
113
+ --neutral-8: #56616C;
114
+ --neutral-9: #636E79;
115
+ --neutral-10: #737C87;
116
+ --neutral-11: #ACB5BF;
117
+ --neutral-12: #E7EBEF;
118
+
119
+ --neutral-alpha-1: rgba(162, 196, 230, 0.02);
120
+ --neutral-alpha-2: rgba(168, 212, 255, 0.04);
121
+ --neutral-alpha-3: rgba(175, 214, 253, 0.08);
122
+ --neutral-alpha-4: rgba(194, 222, 250, 0.12);
123
+ --neutral-alpha-5: rgba(204, 228, 255, 0.15);
124
+ --neutral-alpha-6: rgba(194, 222, 250, 0.20);
125
+ --neutral-alpha-7: rgba(200, 227, 254, 0.27);
126
+ --neutral-alpha-8: rgba(199, 226, 249, 0.38);
127
+ --neutral-alpha-9: rgba(206, 230, 253, 0.44);
128
+ --neutral-alpha-10: rgba(215, 235, 254, 0.49);
129
+ --neutral-alpha-11: rgba(225, 237, 249, 0.75);
130
+ --neutral-alpha-12: rgba(245, 250, 255, 0.94);
131
+
132
+ --panel-solid: var(--neutral-2);
121
133
 
122
- --neutral-alpha-1: rgba(207, 234, 236, 0.02);
123
- --neutral-alpha-2: rgba(197, 239, 246, 0.04);
124
- --neutral-alpha-3: rgba(206, 222, 248, 0.08);
125
- --neutral-alpha-4: rgba(196, 228, 248, 0.11);
126
- --neutral-alpha-5: rgba(201, 226, 254, 0.15);
127
- --neutral-alpha-6: rgba(200, 228, 253, 0.19);
128
- --neutral-alpha-7: rgba(204, 231, 255, 0.25);
129
- --neutral-alpha-8: rgba(204, 231, 255, 0.36);
130
- --neutral-alpha-9: rgba(207, 226, 253, 0.43);
131
- --neutral-alpha-10: rgba(218, 229, 253, 0.48);
132
- --neutral-alpha-11: rgba(229, 240, 254, 0.75);
133
- --neutral-alpha-12: rgba(242, 247, 255, 0.94);
134
134
 
135
135
  /* Neutral Extras */
136
136
  --neutral-alpha-0-50: rgba(17, 17, 19, 0.50);
@@ -57,7 +57,7 @@
57
57
  }
58
58
 
59
59
  .root[data-disabled] .thumb {
60
- background-color: #18191b;
60
+ background-color: var(--neutral-2);
61
61
  border: 1px solid var(--neutral-7);
62
62
  box-shadow: none;
63
63
  cursor: default;
@@ -132,11 +132,11 @@ export const ToolsDropdown = memo(
132
132
  </Flex>
133
133
  )}
134
134
 
135
- {showSeparator && <Separator orientation="vertical" className={styles.separator} />}
135
+ {showSeparator && <Separator orientation="vertical" className={styles.separator} size="2"/>}
136
136
 
137
137
  <ChevronDownIcon
138
- width={8}
139
- height={8}
138
+ width={14.4}
139
+ height={14.4}
140
140
  className={classNames(styles.chevron, {
141
141
  [styles.chevronWithoutSeparator]: !showSeparator,
142
142
  })}
@@ -2,11 +2,8 @@
2
2
  display: flex;
3
3
  align-items: center;
4
4
  justify-content: center;
5
- border: 1px solid var(--neutral-alpha-3);
6
- border-radius: 4px;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
5
+ border: 1px solid var(--neutral-alpha-5);
6
+ border-radius: 6px;
10
7
  }
11
8
 
12
9
  .triggerWithClick {
@@ -23,10 +20,10 @@
23
20
  color: var(--neutral-alpha-11);
24
21
 
25
22
  span {
26
- font-family: "Articulat CF";
23
+ font-family: 'Articulat CF', sans-serif;
27
24
  font-size: 14px;
28
25
  font-style: normal;
29
- font-weight: 400;
26
+ font-weight: 500;
30
27
  line-height: 17px;
31
28
  letter-spacing: 0;
32
29
  }
@@ -34,7 +31,7 @@
34
31
  }
35
32
 
36
33
  .container:has(.triggerWithClick) .triggerWithClick {
37
- border-radius: 4px 0 0 4px;
34
+ border-radius: 6px 0 0 6px;
38
35
  }
39
36
 
40
37
  .triggerWithClick:focus-visible {
@@ -76,11 +73,11 @@
76
73
  font: inherit;
77
74
  color: inherit;
78
75
  outline: none;
79
- border-radius: 4px;
76
+ border-radius: 6px;
80
77
  }
81
78
 
82
79
  .container:has(.triggerWithClick) .menuTrigger {
83
- border-radius: 0 4px 4px 0;
80
+ border-radius: 0 6px 6px 0;
84
81
  }
85
82
 
86
83
  .menuTrigger:focus-visible {
@@ -109,13 +106,13 @@
109
106
  .menuPortal {
110
107
  border-radius: 8px;
111
108
  border: 1px solid var(--neutral-alpha-3);
112
- background: #18191b;
109
+ background: var(--panel-solid);
113
110
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.3),
114
111
  0 12px 60px 0 rgba(0, 0, 0, 0.15);
115
112
  }
116
113
 
117
114
  .chevron {
118
- padding: 4px;
115
+ padding: 4px 3px;
119
116
  color: var(--neutral-alpha-7);
120
117
 
121
118
  &:hover {
@@ -128,7 +125,7 @@
128
125
  }
129
126
 
130
127
  .chevronWithoutSeparator {
131
- padding: 4px 4px 4px 0 !important;
128
+ padding: 4px 3px 4px 0 !important;
132
129
  }
133
130
 
134
131
  .customContentClassName {
@@ -141,6 +138,15 @@
141
138
 
142
139
  .triggerWithoutClick {
143
140
  color: var(--neutral-alpha-11);
141
+ padding: 4px 0 4px 3px;
142
+
143
+ span {
144
+ padding: 0 8px;
145
+ }
146
+
147
+ svg {
148
+ padding: 3px 7px 3px 4px;
149
+ }
144
150
 
145
151
  &:hover {
146
152
  color: var(--neutral-alpha-12);
@@ -149,4 +155,8 @@
149
155
  &:active {
150
156
  color: var(--neutral-alpha-11);
151
157
  }
158
+ }
159
+
160
+ .separator {
161
+ background: var(--neutral-alpha-5);
152
162
  }
@@ -55,7 +55,7 @@ export const Default = {
55
55
 
56
56
  export const WithCustomAction = {
57
57
  args: {
58
- trigger: <MetronomeIcon width={16} height={16} />,
58
+ trigger: <MetronomeIcon width={18} height={18} />,
59
59
  onTriggerClick: () => alert('Metronome toggled'),
60
60
  },
61
61
  render: (args) => (
@@ -81,7 +81,7 @@ export const WithRenderProp = {
81
81
  <>
82
82
  <Flex direction="column" gap="3" width="220px">
83
83
  <IconButton >
84
- <MetronomeIcon width={16} height={16} />
84
+ <MetronomeIcon width={18} height={18} />
85
85
  </IconButton>
86
86
  <Text size="2">Show chord diagrams</Text>
87
87
  <Switch
@@ -143,7 +143,7 @@ export const WithoutSeparator = {
143
143
  showSeparator: false,
144
144
  },
145
145
  render: (args) => (
146
- <ToolsDropdown {...args} trigger={<MetronomeIcon width={16} height={16} />}>
146
+ <ToolsDropdown {...args} trigger={<MetronomeIcon width={18} height={18} />}>
147
147
  <Text size="2">Tool settings panel</Text>
148
148
  </ToolsDropdown>
149
149
  ),
@@ -1,7 +1,7 @@
1
1
  .popoverPortal {
2
2
  border-radius: 8px;
3
3
  border: 1px solid var(--neutral-alpha-3);
4
- background: #18191b;
4
+ background: var(--panel-solid);
5
5
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.3),
6
6
  0 12px 60px 0 rgba(0, 0, 0, 0.15);
7
7
  }
@@ -4,7 +4,7 @@
4
4
  border-radius: var(--radius-4, 8px);
5
5
  border: 1px solid
6
6
  var(--colors-neutral-neutral-alpha-3, rgba(221, 234, 248, 0.08));
7
- background: var(--panel-solid, #18191b);
7
+ background: var(--panel-solid);
8
8
 
9
9
  /* Shadows/shadow-5 */
10
10
  box-shadow:
@@ -6,7 +6,7 @@ export const BassIcon = ({ width = 16, height = 16, className, ...props }) => (
6
6
  <path d="M4.27273 6.13381C3.9515 6.45503 3.4307 6.45503 3.10947 6.13381C2.78825 5.81258 2.78825 5.29177 3.10947 4.97055C3.4307 4.64933 3.9515 4.64933 4.27273 4.97055C4.59395 5.29177 4.59395 5.81258 4.27273 6.13381Z" fill="currentColor"/>
7
7
  <path d="M2.41162 7.995C2.0904 8.31622 1.56959 8.31622 1.24836 7.995C0.92714 7.67377 0.92714 7.15297 1.24836 6.83174C1.56959 6.51052 2.0904 6.51052 2.41162 6.83174C2.73285 7.15297 2.73285 7.67377 2.41162 7.995Z" fill="currentColor"/>
8
8
  <path d="M2.83337 14.2084V11.2046C2.83337 10.5906 3.07728 10.0018 3.51145 9.56761L9.6173 3.46175C10.5396 2.53945 12.0379 2.54237 12.9602 3.46467C13.7982 4.30271 13.8366 5.65259 13.0442 6.53392C12.7714 6.83731 12.4117 7.0491 12.014 7.14037L11.8842 7.17017C11.4331 7.27372 11.0816 7.62726 10.9807 8.07898L10.1836 11.6463C10.1232 11.9169 9.90304 12.1228 9.62898 12.1652C8.65956 12.3149 7.8995 13.0765 7.75171 14.0462L7.72699 14.2084"
9
- stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
9
+ stroke="currentColor" strokeWidth="1.2" strokeLinecap="round"/>
10
10
  </svg>
11
11
  )
12
12
 
@@ -5,7 +5,7 @@ export const MusicAddIcon = ({
5
5
  ...props
6
6
  }) => (
7
7
  <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" fill="none" className={className} {...props} aria-label="Music Add Icon">
8
- <path d="M20.5 11.0556V9.67989C20.5 8.35152 19.8405 7.10981 18.74 6.36593L15.28 4.02722C14.9479 3.80278 14.5 4.04068 14.5 4.44147V18M6.5 10.5L6.5 6.5M6.5 6.5V2.5M6.5 6.5H2.5M6.5 6.5H10.5M14.5 14.5L10.1217 15.9594C9.15324 16.2823 8.5 17.1886 8.5 18.2094C8.5 19.8283 10.086 20.9713 11.6217 20.4594L13.8162 19.7279C14.2246 19.5918 14.5 19.2097 14.5 18.7792V14.5Z" stroke="white" stroke-width="1.8" stroke-miterlimit="10" stroke-linecap="round"/>
8
+ <path d="M20.5 11.0556V9.67989C20.5 8.35152 19.8405 7.10981 18.74 6.36593L15.28 4.02722C14.9479 3.80278 14.5 4.04068 14.5 4.44147V18M6.5 10.5L6.5 6.5M6.5 6.5V2.5M6.5 6.5H2.5M6.5 6.5H10.5M14.5 14.5L10.1217 15.9594C9.15324 16.2823 8.5 17.1886 8.5 18.2094C8.5 19.8283 10.086 20.9713 11.6217 20.4594L13.8162 19.7279C14.2246 19.5918 14.5 19.2097 14.5 18.7792V14.5Z" stroke="white" strokeWidth="1.8" strokeMiterlimit="10" strokeLinecap="round"/>
9
9
  </svg>
10
10
  )
11
11
 
@@ -5,7 +5,7 @@ export const NoVolume2Icon = ({
5
5
  ...props
6
6
  }) => (
7
7
  <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" fill="none" className={className} {...props} aria-label="No Volume 2 Icon">
8
- <path d="M20 20L4 4M18.6063 6.21988C20.139 7.75303 21 9.83214 21 12C21 14.1679 20.139 16.247 18.6063 17.7801M15.723 10C16.2523 10.5294 16.5496 11.2474 16.5496 11.9959C16.5496 12.7445 16.2523 13.4624 15.723 13.9918M4 8.00002C3.44772 8.00002 3 8.44774 3 9.00002V15C3 15.5523 3.44772 16 4 16H6L10.8519 20.0432C11.3078 20.4232 12 20.099 12 19.5055V15.7528M7.1038 7.08019L10.8519 3.9568C11.3078 3.57685 12 3.90107 12 4.49455V12" stroke="white" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
8
+ <path d="M20 20L4 4M18.6063 6.21988C20.139 7.75303 21 9.83214 21 12C21 14.1679 20.139 16.247 18.6063 17.7801M15.723 10C16.2523 10.5294 16.5496 11.2474 16.5496 11.9959C16.5496 12.7445 16.2523 13.4624 15.723 13.9918M4 8.00002C3.44772 8.00002 3 8.44774 3 9.00002V15C3 15.5523 3.44772 16 4 16H6L10.8519 20.0432C11.3078 20.4232 12 20.099 12 19.5055V15.7528M7.1038 7.08019L10.8519 3.9568C11.3078 3.57685 12 3.90107 12 4.49455V12" stroke="white" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
9
9
  </svg>
10
10
  )
11
11
 
@@ -85,7 +85,7 @@
85
85
  .menuPortal {
86
86
  border-radius: 8px;
87
87
  border: 1px solid var(--neutral-alpha-3);
88
- background: #18191b;
88
+ background: var(--panel-solid);
89
89
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.3),
90
90
  0 12px 60px 0 rgba(0, 0, 0, 0.15);
91
91
  }