@discourser/design-system 0.11.0 → 0.13.0

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.
Files changed (54) hide show
  1. package/dist/{chunk-GUJTU4IH.js → chunk-BQAXPMOR.js} +12 -8
  2. package/dist/chunk-BQAXPMOR.js.map +1 -0
  3. package/dist/{chunk-X4PNKWSA.cjs → chunk-MIBEMJNS.cjs} +12 -8
  4. package/dist/chunk-MIBEMJNS.cjs.map +1 -0
  5. package/dist/{chunk-ESTQ62GZ.cjs → chunk-XSX6TKJZ.cjs} +211 -3
  6. package/dist/chunk-XSX6TKJZ.cjs.map +1 -0
  7. package/dist/{chunk-GMAXQBON.js → chunk-ZNAYN5UV.js} +211 -3
  8. package/dist/chunk-ZNAYN5UV.js.map +1 -0
  9. package/dist/components/Stepper/Stepper.d.ts +5 -1
  10. package/dist/components/Stepper/Stepper.d.ts.map +1 -1
  11. package/dist/components/index.cjs +33 -33
  12. package/dist/components/index.js +1 -1
  13. package/dist/index.cjs +37 -638
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +3 -598
  18. package/dist/index.js.map +1 -1
  19. package/dist/preset/index.cjs +2 -2
  20. package/dist/preset/index.d.ts.map +1 -1
  21. package/dist/preset/index.js +1 -1
  22. package/dist/{recipes/stepper.recipe.d.ts → preset/recipes/stepper.d.ts} +2 -2
  23. package/dist/preset/recipes/stepper.d.ts.map +1 -0
  24. package/package.json +7 -2
  25. package/src/components/Stepper/Stepper.tsx +12 -2
  26. package/src/index.ts +0 -3
  27. package/src/preset/index.ts +6 -0
  28. package/src/{recipes/stepper.recipe.ts → preset/recipes/stepper.ts} +16 -2
  29. package/dist/chunk-ESTQ62GZ.cjs.map +0 -1
  30. package/dist/chunk-GMAXQBON.js.map +0 -1
  31. package/dist/chunk-GUJTU4IH.js.map +0 -1
  32. package/dist/chunk-X4PNKWSA.cjs.map +0 -1
  33. package/dist/recipes/button.recipe.d.ts +0 -2
  34. package/dist/recipes/button.recipe.d.ts.map +0 -1
  35. package/dist/recipes/card.recipe.d.ts +0 -2
  36. package/dist/recipes/card.recipe.d.ts.map +0 -1
  37. package/dist/recipes/dialog.recipe.d.ts +0 -2
  38. package/dist/recipes/dialog.recipe.d.ts.map +0 -1
  39. package/dist/recipes/icon-button.recipe.d.ts +0 -2
  40. package/dist/recipes/icon-button.recipe.d.ts.map +0 -1
  41. package/dist/recipes/index.d.ts +0 -7
  42. package/dist/recipes/index.d.ts.map +0 -1
  43. package/dist/recipes/input.recipe.d.ts +0 -2
  44. package/dist/recipes/input.recipe.d.ts.map +0 -1
  45. package/dist/recipes/stepper.recipe.d.ts.map +0 -1
  46. package/dist/recipes/switch.recipe.d.ts +0 -2
  47. package/dist/recipes/switch.recipe.d.ts.map +0 -1
  48. package/src/recipes/button.recipe.ts +0 -120
  49. package/src/recipes/card.recipe.ts +0 -50
  50. package/src/recipes/dialog.recipe.ts +0 -130
  51. package/src/recipes/icon-button.recipe.ts +0 -96
  52. package/src/recipes/index.ts +0 -6
  53. package/src/recipes/input.recipe.ts +0 -93
  54. package/src/recipes/switch.recipe.ts +0 -117
@@ -3285,6 +3285,212 @@ var heading = defineRecipe({
3285
3285
  }
3286
3286
  }
3287
3287
  });
3288
+ var stepper = defineSlotRecipe({
3289
+ className: "stepper",
3290
+ description: "Multi-step progress indicator for guided workflows",
3291
+ slots: [
3292
+ "root",
3293
+ "list",
3294
+ "item",
3295
+ "trigger",
3296
+ "indicator",
3297
+ "label",
3298
+ "separator",
3299
+ "content",
3300
+ "progress",
3301
+ "prevTrigger",
3302
+ "nextTrigger"
3303
+ ],
3304
+ base: {
3305
+ root: {
3306
+ display: "flex",
3307
+ flexDirection: "column",
3308
+ gap: "lg",
3309
+ colorPalette: "primary"
3310
+ },
3311
+ list: {
3312
+ display: "flex",
3313
+ alignItems: "center",
3314
+ gap: "0",
3315
+ position: "relative"
3316
+ },
3317
+ item: {
3318
+ display: "flex",
3319
+ alignItems: "center",
3320
+ flex: "1",
3321
+ position: "relative",
3322
+ "&:last-child": {
3323
+ flex: "0"
3324
+ }
3325
+ },
3326
+ trigger: {
3327
+ display: "flex",
3328
+ flexDirection: "column",
3329
+ alignItems: "center",
3330
+ gap: "xs",
3331
+ background: "transparent",
3332
+ border: "none",
3333
+ cursor: "pointer",
3334
+ padding: "0",
3335
+ position: "relative",
3336
+ zIndex: "2",
3337
+ flexShrink: "0",
3338
+ _disabled: {
3339
+ cursor: "not-allowed",
3340
+ opacity: 0.5
3341
+ }
3342
+ },
3343
+ indicator: {
3344
+ display: "flex",
3345
+ alignItems: "center",
3346
+ justifyContent: "center",
3347
+ width: "48px",
3348
+ height: "48px",
3349
+ borderRadius: "full",
3350
+ fontWeight: "medium",
3351
+ fontSize: "lg",
3352
+ transition: "all",
3353
+ transitionDuration: "normal",
3354
+ position: "relative",
3355
+ zIndex: "3",
3356
+ // Upcoming state (default)
3357
+ bg: "neutral.subtle.bg",
3358
+ color: "fg.muted",
3359
+ borderWidth: "2px",
3360
+ borderColor: "border",
3361
+ // Current state
3362
+ _current: {
3363
+ bg: "colorPalette.solid.bg",
3364
+ color: "colorPalette.solid.fg",
3365
+ borderColor: "colorPalette.solid.bg",
3366
+ shadow: "sm"
3367
+ },
3368
+ // Completed state
3369
+ _complete: {
3370
+ bg: "colorPalette.subtle.bg",
3371
+ color: "colorPalette.subtle.fg",
3372
+ borderColor: "colorPalette.subtle.bg"
3373
+ },
3374
+ _focusVisible: {
3375
+ outline: "2px solid",
3376
+ outlineColor: "colorPalette.solid.bg",
3377
+ outlineOffset: "2px"
3378
+ }
3379
+ },
3380
+ label: {
3381
+ whiteSpace: "nowrap",
3382
+ textAlign: "center",
3383
+ fontSize: "sm",
3384
+ fontWeight: "medium",
3385
+ color: "fg.default",
3386
+ maxWidth: "120px",
3387
+ overflow: "hidden",
3388
+ textOverflow: "ellipsis"
3389
+ },
3390
+ separator: {
3391
+ flex: "1",
3392
+ minWidth: "40px",
3393
+ height: "2px",
3394
+ bg: "neutral.surface.border",
3395
+ transition: "background",
3396
+ transitionDuration: "normal",
3397
+ marginInline: "4",
3398
+ position: "relative",
3399
+ zIndex: "1",
3400
+ // Completed separator
3401
+ _complete: {
3402
+ bg: "colorPalette.solid.bg"
3403
+ }
3404
+ },
3405
+ content: {
3406
+ display: "none",
3407
+ _current: {
3408
+ display: "block"
3409
+ }
3410
+ },
3411
+ progress: {
3412
+ display: "none",
3413
+ _complete: {
3414
+ display: "block"
3415
+ }
3416
+ },
3417
+ prevTrigger: {},
3418
+ nextTrigger: {}
3419
+ },
3420
+ variants: {
3421
+ size: {
3422
+ sm: {
3423
+ indicator: {
3424
+ width: "32px",
3425
+ height: "32px",
3426
+ fontSize: "sm"
3427
+ },
3428
+ separator: {
3429
+ height: "1px"
3430
+ }
3431
+ },
3432
+ md: {
3433
+ indicator: {
3434
+ width: "48px",
3435
+ height: "48px",
3436
+ fontSize: "lg"
3437
+ },
3438
+ separator: {
3439
+ height: "2px"
3440
+ }
3441
+ },
3442
+ lg: {
3443
+ indicator: {
3444
+ width: "56px",
3445
+ height: "56px",
3446
+ fontSize: "xl"
3447
+ },
3448
+ separator: {
3449
+ height: "3px"
3450
+ }
3451
+ }
3452
+ },
3453
+ orientation: {
3454
+ horizontal: {
3455
+ root: {
3456
+ flexDirection: "column"
3457
+ },
3458
+ list: {
3459
+ flexDirection: "row"
3460
+ }
3461
+ },
3462
+ vertical: {
3463
+ root: {
3464
+ flexDirection: "row"
3465
+ },
3466
+ list: {
3467
+ flexDirection: "column",
3468
+ alignItems: "flex-start"
3469
+ },
3470
+ item: {
3471
+ flexDirection: "column"
3472
+ },
3473
+ separator: {
3474
+ width: "2px",
3475
+ height: "32px",
3476
+ marginBlock: "4"
3477
+ }
3478
+ }
3479
+ },
3480
+ colorPalette: {
3481
+ primary: {},
3482
+ secondary: {},
3483
+ tertiary: {},
3484
+ error: {},
3485
+ neutral: {}
3486
+ }
3487
+ },
3488
+ defaultVariants: {
3489
+ size: "md",
3490
+ orientation: "horizontal",
3491
+ colorPalette: "primary"
3492
+ }
3493
+ });
3288
3494
  var layerStyles = defineLayerStyles({
3289
3495
  disabled: {
3290
3496
  value: {
@@ -3467,7 +3673,9 @@ var discourserPandaPreset = definePreset({
3467
3673
  // Overlays
3468
3674
  dialog,
3469
3675
  popover,
3470
- tooltip
3676
+ tooltip,
3677
+ // Custom Components
3678
+ stepper
3471
3679
  }
3472
3680
  }
3473
3681
  },
@@ -3489,5 +3697,5 @@ var discourserPandaPreset = definePreset({
3489
3697
  });
3490
3698
 
3491
3699
  export { discourserPandaPreset, material3Language, transformToPandaTheme };
3492
- //# sourceMappingURL=chunk-GMAXQBON.js.map
3493
- //# sourceMappingURL=chunk-GMAXQBON.js.map
3700
+ //# sourceMappingURL=chunk-ZNAYN5UV.js.map
3701
+ //# sourceMappingURL=chunk-ZNAYN5UV.js.map