@moises.ai/design-system 4.21.15 → 4.21.17

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.21.15",
3
+ "version": "4.21.17",
4
4
  "description": "Design System package based on @radix-ui/themes with custom defaults",
5
5
  "private": false,
6
6
  "type": "module",
@@ -36,7 +36,7 @@ import styles from './InstrumentSelect.module.css'
36
36
  * @property {number | { initial?: string | number, sm?: string | number, md?: string | number, lg?: string | number }} [columns=2] - Horizontal only. Maximum items per row. If the container cannot fit that many at the card's minimum width, the extras wrap onto the next row.
37
37
  * @property {number} [rows] - Vertical only. How many rows to fill before starting another column. Defaults to one column (every item on its own row).
38
38
  * @property {'neutral' | 'cyan'} [variant='neutral'] - Visual variant. `neutral` is the default bordered card. `cyan` uses the accent-tinted background and selection border.
39
- * @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card. `large` is the 148×80 vertical card.
39
+ * @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card (min 150px). `large` is the 160×80 vertical card.
40
40
  * @property {'fixed' | 'fill'} [fit='fixed'] - `fixed` keeps medium and large at their designed width. `fill` stretches each card so a row of `columns` occupies the full container, the same way `small` does.
41
41
  * @property {string} [className]
42
42
  */
@@ -61,13 +61,13 @@ function gridGap(size) {
61
61
 
62
62
  const TRACK_MIN = {
63
63
  small: 140,
64
- medium: 148,
65
- large: 148,
64
+ medium: 150,
65
+ large: 160,
66
66
  }
67
67
 
68
68
  const TRACK_MAX = {
69
69
  medium: 160,
70
- large: 148,
70
+ large: 160,
71
71
  }
72
72
 
73
73
  function resolveColumns(columns) {
@@ -197,9 +197,6 @@
197
197
  .card[data-size="medium"],
198
198
  .card[data-size="large"] {
199
199
  display: flex;
200
- min-width: 148px;
201
- max-width: 160px;
202
-
203
200
  flex-direction: column;
204
201
  justify-content: space-between;
205
202
  align-items: flex-start;
@@ -219,11 +216,15 @@
219
216
  .card[data-size="medium"] {
220
217
  height: 64px;
221
218
  flex: 1 0 0;
219
+ min-width: 150px;
220
+ max-width: 160px;
222
221
  }
223
222
 
224
223
  .card[data-size="large"] {
225
- width: 148px;
224
+ width: 160px;
226
225
  height: 80px;
226
+ min-width: 160px;
227
+ max-width: 160px;
227
228
  }
228
229
 
229
230
  .cardTop,
@@ -241,6 +242,7 @@
241
242
  .cardBottom {
242
243
  justify-content: space-between;
243
244
  gap: 4px;
245
+ align-items: flex-end;
244
246
  }
245
247
 
246
248
  .card[data-size="medium"] .cardText,
@@ -265,6 +267,9 @@
265
267
  }
266
268
 
267
269
  .cardBadge {
270
+ position: absolute;
271
+ right: 6px;
272
+ top: 6px;
268
273
  display: flex;
269
274
  flex-shrink: 0;
270
275
  padding: 2px 6px;
@@ -303,6 +308,7 @@
303
308
  right: auto;
304
309
  transform: none;
305
310
  flex-shrink: 0;
311
+ margin-bottom: 4px;
306
312
  }
307
313
 
308
314
  /* ----- Variant: cyan ----- */
@@ -18,7 +18,7 @@ import styles from './InstrumentSelect.module.css'
18
18
  * @property {boolean} [locked=false] - Marks the card as locked (paywalled). Renders the lock icon and applies the disabled visual state. `onClick` still fires so consumers can trigger a paywall flow.
19
19
  * @property {boolean} [disabled=false] - Marks the card as disabled without showing the lock icon.
20
20
  * @property {'neutral' | 'cyan'} [variant='neutral'] - Visual variant. `neutral` is the default bordered card. `cyan` uses the accent-tinted background and selection border.
21
- * @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card. `large` is the 148×80 vertical card.
21
+ * @property {'small' | 'medium' | 'large'} [size='small'] - Card size. `small` is the compact horizontal card. `medium` is the 64px vertical card (min 150px). `large` is the 160×80 vertical card.
22
22
  * @property {InstrumentSelectCardState} [state] - Force a specific visual state (overrides `selected`/`locked`/`disabled`). Primarily for documentation/Storybook.
23
23
  * @property {(event: React.MouseEvent<HTMLButtonElement>) => void} [onClick]
24
24
  * @property {string} [className]
@@ -8,16 +8,16 @@ export const KeyboardIcon = ({
8
8
  xmlns="http://www.w3.org/2000/svg"
9
9
  width={width}
10
10
  height={height}
11
- viewBox="0 0 24 16"
11
+ viewBox="0 0 24 24"
12
12
  fill="none"
13
13
  className={className}
14
14
  {...props}
15
- >
15
+ aria-label="Keyboard icon">
16
16
  <path
17
- d="M6.75 11.25H16.75M4.25 8.25H4.26M4.25 4.25H4.26M9.25 8.25H9.26M9.26001 4.25H9.27001M14.25 8.25H14.26M14.25 4.25H14.26M19.25 8.25H19.26M19.25 4.25H19.26M1.85 14.75C1.24249 14.75 0.75 14.2678 0.75 13.6731V1.82692C0.75 1.23215 1.24249 0.75 1.85 0.75H21.65C22.2575 0.75 22.75 1.23215 22.75 1.82692V13.6731C22.75 14.2678 22.2575 14.75 21.65 14.75H1.85Z"
18
- stroke="currentColor"
17
+ d="M7 15.5H17M4.5 12.5H4.51M4.5 8.5H4.51M9.5 12.5H9.51M9.51001 8.5H9.52001M14.5 12.5H14.51M14.5 8.5H14.51M19.5 12.5H19.51M19.5 8.5H19.51M2.1 19C1.49249 19 1 18.5178 1 17.9231V6.07692C1 5.48215 1.49249 5 2.1 5H21.9C22.5075 5 23 5.48215 23 6.07692V17.9231C23 18.5178 22.5075 19 21.9 19H2.1Z"
19
18
  strokeWidth="1.5"
20
19
  strokeLinecap="square"
20
+ stroke="currentColor"
21
21
  />
22
22
  </svg>
23
23
  )