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