@moises.ai/design-system 4.21.15 → 4.21.16

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.16",
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,
@@ -303,6 +305,7 @@
303
305
  right: auto;
304
306
  transform: none;
305
307
  flex-shrink: 0;
308
+ margin-bottom: 4px;
306
309
  }
307
310
 
308
311
  /* ----- 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]