@med-o/design-tokens 0.7.2 → 0.8.1

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.
@@ -295,6 +295,18 @@
295
295
  --medo-size-icon-sm: 1rem;
296
296
  --medo-size-icon-md: 1.25rem;
297
297
  --medo-size-icon-lg: 1.5rem;
298
+ --medo-size-width-3xs: 5rem;
299
+ --medo-size-width-2xs: 7.5rem;
300
+ --medo-size-width-xs: 10rem;
301
+ --medo-size-width-sm: 12.5rem;
302
+ --medo-size-width-md: 15rem;
303
+ --medo-size-width-lg: 17.5rem;
304
+ --medo-size-width-xl: 20rem;
305
+ --medo-size-width-2xl: 25rem;
306
+ --medo-size-width-3xl: 30rem;
307
+ --medo-size-width-4xl: 35rem;
308
+ --medo-size-width-5xl: 40rem;
309
+ --medo-size-width-6xl: 45rem;
298
310
  --medo-border-width-thin: 1px;
299
311
  --medo-border-width-thick: 2px;
300
312
  --medo-focus-ring-width: 2px;
@@ -3392,6 +3392,150 @@
3392
3392
  "cssVar": "--medo-size-icon-lg",
3393
3393
  "value": "1.5rem"
3394
3394
  },
3395
+ {
3396
+ "name": "size/width/3xs",
3397
+ "path": [
3398
+ "size",
3399
+ "width",
3400
+ "3xs"
3401
+ ],
3402
+ "type": "dimension",
3403
+ "cssVar": "--medo-size-width-3xs",
3404
+ "value": "5rem",
3405
+ "description": "Smallest fixed width."
3406
+ },
3407
+ {
3408
+ "name": "size/width/2xs",
3409
+ "path": [
3410
+ "size",
3411
+ "width",
3412
+ "2xs"
3413
+ ],
3414
+ "type": "dimension",
3415
+ "cssVar": "--medo-size-width-2xs",
3416
+ "value": "7.5rem",
3417
+ "description": "Small illustration (Empty State sm)."
3418
+ },
3419
+ {
3420
+ "name": "size/width/xs",
3421
+ "path": [
3422
+ "size",
3423
+ "width",
3424
+ "xs"
3425
+ ],
3426
+ "type": "dimension",
3427
+ "cssVar": "--medo-size-width-xs",
3428
+ "value": "10rem",
3429
+ "description": "Medium illustration, narrow layout column."
3430
+ },
3431
+ {
3432
+ "name": "size/width/sm",
3433
+ "path": [
3434
+ "size",
3435
+ "width",
3436
+ "sm"
3437
+ ],
3438
+ "type": "dimension",
3439
+ "cssVar": "--medo-size-width-sm",
3440
+ "value": "12.5rem",
3441
+ "description": "Where labels are cut (Tag, Breadcrumbs)."
3442
+ },
3443
+ {
3444
+ "name": "size/width/md",
3445
+ "path": [
3446
+ "size",
3447
+ "width",
3448
+ "md"
3449
+ ],
3450
+ "type": "dimension",
3451
+ "cssVar": "--medo-size-width-md",
3452
+ "value": "15rem",
3453
+ "description": "Tooltip, small Popover, Menu; min width of a column in a responsive grid."
3454
+ },
3455
+ {
3456
+ "name": "size/width/lg",
3457
+ "path": [
3458
+ "size",
3459
+ "width",
3460
+ "lg"
3461
+ ],
3462
+ "type": "dimension",
3463
+ "cssVar": "--medo-size-width-lg",
3464
+ "value": "17.5rem",
3465
+ "description": "Side navigation, navigation drawer, Toast min."
3466
+ },
3467
+ {
3468
+ "name": "size/width/xl",
3469
+ "path": [
3470
+ "size",
3471
+ "width",
3472
+ "xl"
3473
+ ],
3474
+ "type": "dimension",
3475
+ "cssVar": "--medo-size-width-xl",
3476
+ "value": "20rem",
3477
+ "description": "Popover, small Drawer, Menu max, Listbox max height; a single field in examples."
3478
+ },
3479
+ {
3480
+ "name": "size/width/2xl",
3481
+ "path": [
3482
+ "size",
3483
+ "width",
3484
+ "2xl"
3485
+ ],
3486
+ "type": "dimension",
3487
+ "cssVar": "--medo-size-width-2xl",
3488
+ "value": "25rem",
3489
+ "description": "Small Dialog, Drawer, large Popover, Toast; a form in examples."
3490
+ },
3491
+ {
3492
+ "name": "size/width/3xl",
3493
+ "path": [
3494
+ "size",
3495
+ "width",
3496
+ "3xl"
3497
+ ],
3498
+ "type": "dimension",
3499
+ "cssVar": "--medo-size-width-3xl",
3500
+ "value": "30rem",
3501
+ "description": "Media in examples."
3502
+ },
3503
+ {
3504
+ "name": "size/width/4xl",
3505
+ "path": [
3506
+ "size",
3507
+ "width",
3508
+ "4xl"
3509
+ ],
3510
+ "type": "dimension",
3511
+ "cssVar": "--medo-size-width-4xl",
3512
+ "value": "35rem",
3513
+ "description": "Dialog, large Drawer, Toast max."
3514
+ },
3515
+ {
3516
+ "name": "size/width/5xl",
3517
+ "path": [
3518
+ "size",
3519
+ "width",
3520
+ "5xl"
3521
+ ],
3522
+ "type": "dimension",
3523
+ "cssVar": "--medo-size-width-5xl",
3524
+ "value": "40rem",
3525
+ "description": "Quick search."
3526
+ },
3527
+ {
3528
+ "name": "size/width/6xl",
3529
+ "path": [
3530
+ "size",
3531
+ "width",
3532
+ "6xl"
3533
+ ],
3534
+ "type": "dimension",
3535
+ "cssVar": "--medo-size-width-6xl",
3536
+ "value": "45rem",
3537
+ "description": "Large Dialog."
3538
+ },
3395
3539
  {
3396
3540
  "name": "border-width/thin",
3397
3541
  "path": [
package/dist/js/tokens.js CHANGED
@@ -286,6 +286,18 @@ export const tokens = {
286
286
  "size-icon-sm": "1rem",
287
287
  "size-icon-md": "1.25rem",
288
288
  "size-icon-lg": "1.5rem",
289
+ "size-width-3xs": "5rem",
290
+ "size-width-2xs": "7.5rem",
291
+ "size-width-xs": "10rem",
292
+ "size-width-sm": "12.5rem",
293
+ "size-width-md": "15rem",
294
+ "size-width-lg": "17.5rem",
295
+ "size-width-xl": "20rem",
296
+ "size-width-2xl": "25rem",
297
+ "size-width-3xl": "30rem",
298
+ "size-width-4xl": "35rem",
299
+ "size-width-5xl": "40rem",
300
+ "size-width-6xl": "45rem",
289
301
  "border-width-thin": "1px",
290
302
  "border-width-thick": "2px",
291
303
  "focus-ring-width": "2px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@med-o/design-tokens",
3
- "version": "0.7.2",
3
+ "version": "0.8.1",
4
4
  "description": "Design tokens of the med.o Design System (DTCG source, CSS variables, Tailwind v4 theme, JS).",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -196,6 +196,104 @@
196
196
  "unit": "px"
197
197
  }
198
198
  }
199
+ },
200
+ "width": {
201
+ "3xs": {
202
+ "$type": "dimension",
203
+ "$value": {
204
+ "value": 80,
205
+ "unit": "px"
206
+ },
207
+ "$description": "Smallest fixed width."
208
+ },
209
+ "2xs": {
210
+ "$type": "dimension",
211
+ "$value": {
212
+ "value": 120,
213
+ "unit": "px"
214
+ },
215
+ "$description": "Small illustration (Empty State sm)."
216
+ },
217
+ "xs": {
218
+ "$type": "dimension",
219
+ "$value": {
220
+ "value": 160,
221
+ "unit": "px"
222
+ },
223
+ "$description": "Medium illustration, narrow layout column."
224
+ },
225
+ "sm": {
226
+ "$type": "dimension",
227
+ "$value": {
228
+ "value": 200,
229
+ "unit": "px"
230
+ },
231
+ "$description": "Where labels are cut (Tag, Breadcrumbs)."
232
+ },
233
+ "md": {
234
+ "$type": "dimension",
235
+ "$value": {
236
+ "value": 240,
237
+ "unit": "px"
238
+ },
239
+ "$description": "Tooltip, small Popover, Menu; min width of a column in a responsive grid."
240
+ },
241
+ "lg": {
242
+ "$type": "dimension",
243
+ "$value": {
244
+ "value": 280,
245
+ "unit": "px"
246
+ },
247
+ "$description": "Side navigation, navigation drawer, Toast min."
248
+ },
249
+ "xl": {
250
+ "$type": "dimension",
251
+ "$value": {
252
+ "value": 320,
253
+ "unit": "px"
254
+ },
255
+ "$description": "Popover, small Drawer, Menu max, Listbox max height; a single field in examples."
256
+ },
257
+ "2xl": {
258
+ "$type": "dimension",
259
+ "$value": {
260
+ "value": 400,
261
+ "unit": "px"
262
+ },
263
+ "$description": "Small Dialog, Drawer, large Popover, Toast; a form in examples."
264
+ },
265
+ "3xl": {
266
+ "$type": "dimension",
267
+ "$value": {
268
+ "value": 480,
269
+ "unit": "px"
270
+ },
271
+ "$description": "Media in examples."
272
+ },
273
+ "4xl": {
274
+ "$type": "dimension",
275
+ "$value": {
276
+ "value": 560,
277
+ "unit": "px"
278
+ },
279
+ "$description": "Dialog, large Drawer, Toast max."
280
+ },
281
+ "5xl": {
282
+ "$type": "dimension",
283
+ "$value": {
284
+ "value": 640,
285
+ "unit": "px"
286
+ },
287
+ "$description": "Quick search."
288
+ },
289
+ "6xl": {
290
+ "$type": "dimension",
291
+ "$value": {
292
+ "value": 720,
293
+ "unit": "px"
294
+ },
295
+ "$description": "Large Dialog."
296
+ }
199
297
  }
200
298
  },
201
299
  "border-width": {