@discourser/design-system 0.27.0 → 0.28.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 (36) hide show
  1. package/dist/{chunk-AZ6QU2L2.cjs → chunk-5H764SHY.cjs} +251 -4
  2. package/dist/chunk-5H764SHY.cjs.map +1 -0
  3. package/dist/{chunk-MAVUSE4F.js → chunk-7N32LXVA.js} +18 -17
  4. package/dist/chunk-7N32LXVA.js.map +1 -0
  5. package/dist/{chunk-EBDNCZF6.cjs → chunk-BTI7U4DO.cjs} +18 -17
  6. package/dist/chunk-BTI7U4DO.cjs.map +1 -0
  7. package/dist/{chunk-4XOWPACJ.js → chunk-WMHVCIDI.js} +251 -4
  8. package/dist/chunk-WMHVCIDI.js.map +1 -0
  9. package/dist/components/Breadcrumb.d.ts.map +1 -1
  10. package/dist/components/StudioControls/StudioControls.d.ts +1 -1
  11. package/dist/components/StudioControls/StudioControls.d.ts.map +1 -1
  12. package/dist/components/StudioControls/types.d.ts +3 -0
  13. package/dist/components/StudioControls/types.d.ts.map +1 -1
  14. package/dist/components/index.cjs +76 -76
  15. package/dist/components/index.js +1 -1
  16. package/dist/figma-codex.json +9 -3
  17. package/dist/index.cjs +80 -80
  18. package/dist/index.js +2 -2
  19. package/dist/panda.buildinfo.json +856 -0
  20. package/dist/preset/index.cjs +2 -2
  21. package/dist/preset/index.d.ts.map +1 -1
  22. package/dist/preset/index.js +1 -1
  23. package/dist/preset/recipes/studio-controls.d.ts.map +1 -1
  24. package/docs/component-catalog.md +2 -2
  25. package/package.json +3 -2
  26. package/src/components/Breadcrumb.figma.tsx +68 -17
  27. package/src/components/Breadcrumb.tsx +4 -3
  28. package/src/components/StudioControls/StudioControls.tsx +13 -12
  29. package/src/components/StudioControls/types.ts +4 -0
  30. package/src/preset/index.ts +2 -0
  31. package/src/preset/recipes/breadcrumb.ts +1 -1
  32. package/src/preset/recipes/studio-controls.ts +8 -11
  33. package/dist/chunk-4XOWPACJ.js.map +0 -1
  34. package/dist/chunk-AZ6QU2L2.cjs.map +0 -1
  35. package/dist/chunk-EBDNCZF6.cjs.map +0 -1
  36. package/dist/chunk-MAVUSE4F.js.map +0 -1
@@ -2102,8 +2102,8 @@ var breadcrumb = dev.defineSlotRecipe({
2102
2102
  },
2103
2103
  link: {
2104
2104
  color: "fg.subtle",
2105
+ textStyle: "bodyMedium",
2105
2106
  fontWeight: "medium",
2106
- fontSize: "lg",
2107
2107
  _hover: { color: "fg.default" },
2108
2108
  _currentPage: { color: "fg.default", fontWeight: "semibold" }
2109
2109
  },
@@ -4481,6 +4481,252 @@ var scenarioSettings = dev.defineSlotRecipe({
4481
4481
  }
4482
4482
  }
4483
4483
  });
4484
+ var studioControls = dev.defineSlotRecipe({
4485
+ className: "studio-controls",
4486
+ // ── Token mappings for Conversation Studio right-panel accordion ──
4487
+ // Figma file: GaHmFfmvO4loUzuZS4TgEz node 38:8232
4488
+ // Root/panel bg: neutral.1 (#FDFCF5) — Figma var(--neutral/99) — NOT surface.container.highest
4489
+ slots: [
4490
+ "root",
4491
+ "section",
4492
+ "sectionTrigger",
4493
+ "triggerIcon",
4494
+ "triggerLabel",
4495
+ "sectionIndicator",
4496
+ "sectionContent",
4497
+ // Scenario info panel (section 1)
4498
+ "infoPanel",
4499
+ "scenarioMeta",
4500
+ "scenarioName",
4501
+ "scenarioFocus",
4502
+ "settingsCard",
4503
+ "settingsCardHeading",
4504
+ "settingsList",
4505
+ "settingsRow",
4506
+ "settingsRowLabel",
4507
+ "settingsBadge",
4508
+ "levelButtonRow",
4509
+ "levelButton",
4510
+ // Slider panels (sections 2-3)
4511
+ "sliderPanel",
4512
+ "sliderLabel",
4513
+ "sliderLabelText",
4514
+ "levelBadge",
4515
+ "sliderTrack",
4516
+ // Radio panel (section 4)
4517
+ "radioPanel",
4518
+ // Toggle panels (sections 5-6)
4519
+ "togglePanel",
4520
+ "toggleDescription"
4521
+ ],
4522
+ base: {
4523
+ root: {
4524
+ display: "flex",
4525
+ flexDirection: "column",
4526
+ width: "full",
4527
+ cursor: "default",
4528
+ bg: "neutral.1"
4529
+ },
4530
+ section: {
4531
+ borderBottom: "none",
4532
+ width: "full"
4533
+ },
4534
+ sectionTrigger: {
4535
+ display: "flex",
4536
+ alignItems: "center",
4537
+ justifyContent: "space-between",
4538
+ gap: "4",
4539
+ width: "full",
4540
+ pl: "1",
4541
+ pr: "5",
4542
+ cursor: "pointer"
4543
+ },
4544
+ triggerIcon: {
4545
+ flexShrink: 0,
4546
+ display: "flex",
4547
+ alignItems: "center",
4548
+ justifyContent: "flex-start",
4549
+ width: "10",
4550
+ // 40px container — matches Figma 40×40 icon area
4551
+ height: "10",
4552
+ color: "primary.40",
4553
+ // M3 tonal 40 — darker/bolder than 50, higher contrast
4554
+ fontSize: "32px"
4555
+ // SVGs use width/height: 1em → renders at 32×32px
4556
+ },
4557
+ triggerLabel: {
4558
+ flex: 1,
4559
+ textAlign: "start",
4560
+ overflow: "hidden",
4561
+ textOverflow: "ellipsis",
4562
+ whiteSpace: "nowrap"
4563
+ },
4564
+ sectionIndicator: {
4565
+ flexShrink: 0,
4566
+ _open: {
4567
+ rotate: "180deg"
4568
+ }
4569
+ },
4570
+ sectionContent: {
4571
+ overflow: "hidden",
4572
+ borderRadius: "0",
4573
+ width: "full"
4574
+ },
4575
+ // ── Scenario Info Panel (section 1) ─────────────────────────────────────
4576
+ infoPanel: {
4577
+ display: "flex",
4578
+ flexDirection: "column",
4579
+ gap: "4",
4580
+ px: "15px",
4581
+ py: "5",
4582
+ bg: "neutral.1",
4583
+ width: "full"
4584
+ },
4585
+ scenarioMeta: {
4586
+ display: "flex",
4587
+ flexDirection: "column",
4588
+ gap: "1"
4589
+ },
4590
+ scenarioName: {
4591
+ textStyle: "bodyMedium",
4592
+ fontWeight: "semibold",
4593
+ color: "onSurface"
4594
+ },
4595
+ scenarioFocus: {
4596
+ textStyle: "bodyMedium",
4597
+ fontWeight: "medium",
4598
+ color: "onSurface"
4599
+ },
4600
+ // Stone-bg inner card — Figma: #F5F1EB ≈ surface.container
4601
+ settingsCard: {
4602
+ display: "flex",
4603
+ flexDirection: "column",
4604
+ gap: "3",
4605
+ bg: "surface.container",
4606
+ borderRadius: "sm",
4607
+ px: "5",
4608
+ py: "2.5"
4609
+ },
4610
+ settingsCardHeading: {
4611
+ textStyle: "bodyMedium",
4612
+ fontWeight: "medium",
4613
+ color: "onSurface"
4614
+ },
4615
+ settingsList: {
4616
+ display: "flex",
4617
+ flexDirection: "column",
4618
+ gap: "2.5"
4619
+ },
4620
+ settingsRow: {
4621
+ display: "flex",
4622
+ alignItems: "center",
4623
+ justifyContent: "space-between",
4624
+ width: "full"
4625
+ },
4626
+ settingsRowLabel: {
4627
+ textStyle: "bodyMedium",
4628
+ fontWeight: "medium",
4629
+ color: "onSurface",
4630
+ flex: 1
4631
+ },
4632
+ // Badge: Figma rgba(192,209,92,0.4) ≈ inversePrimary
4633
+ settingsBadge: {
4634
+ display: "inline-flex",
4635
+ alignItems: "center",
4636
+ px: "2.5",
4637
+ py: "1",
4638
+ bg: "inversePrimary",
4639
+ color: "fg.default",
4640
+ borderRadius: "sm",
4641
+ fontSize: "xs",
4642
+ fontWeight: "normal",
4643
+ whiteSpace: "nowrap"
4644
+ },
4645
+ levelButtonRow: {
4646
+ display: "flex",
4647
+ justifyContent: "flex-end",
4648
+ width: "full"
4649
+ },
4650
+ // Figma: bg secondary/50 (#6C7D56) ≈ secondary.7
4651
+ levelButton: {
4652
+ display: "inline-flex",
4653
+ alignItems: "center",
4654
+ gap: "2",
4655
+ px: "4",
4656
+ py: "2",
4657
+ bg: "secondary.7",
4658
+ color: "white",
4659
+ borderRadius: "sm",
4660
+ fontSize: "sm",
4661
+ fontWeight: "medium",
4662
+ cursor: "pointer"
4663
+ },
4664
+ // ── Slider Panels (sections 2-3) ──────────────────────────────────────────
4665
+ sliderPanel: {
4666
+ display: "flex",
4667
+ flexDirection: "column",
4668
+ gap: "4",
4669
+ px: "15px",
4670
+ py: "5",
4671
+ bg: "neutral.1",
4672
+ width: "full"
4673
+ },
4674
+ sliderLabel: {
4675
+ display: "flex",
4676
+ alignItems: "center",
4677
+ justifyContent: "space-between",
4678
+ width: "full"
4679
+ },
4680
+ sliderLabelText: {
4681
+ textStyle: "bodyMedium",
4682
+ fontWeight: "medium",
4683
+ color: "onSurface"
4684
+ },
4685
+ levelBadge: {
4686
+ display: "inline-flex",
4687
+ alignItems: "center",
4688
+ px: "3",
4689
+ py: "1",
4690
+ bg: "inversePrimary",
4691
+ color: "fg.default",
4692
+ borderRadius: "full",
4693
+ fontSize: "xs",
4694
+ fontWeight: "normal",
4695
+ lineHeight: "1",
4696
+ whiteSpace: "nowrap"
4697
+ },
4698
+ sliderTrack: {
4699
+ width: "full"
4700
+ },
4701
+ // ── Radio Panel (section 4) ───────────────────────────────────────────────
4702
+ radioPanel: {
4703
+ display: "flex",
4704
+ flexDirection: "column",
4705
+ gap: "4",
4706
+ px: "15px",
4707
+ py: "5",
4708
+ bg: "neutral.1",
4709
+ width: "full"
4710
+ },
4711
+ // ── Toggle Panels (sections 5-6) ──────────────────────────────────────────
4712
+ togglePanel: {
4713
+ display: "flex",
4714
+ alignItems: "center",
4715
+ justifyContent: "space-between",
4716
+ gap: "4",
4717
+ px: "15px",
4718
+ py: "5",
4719
+ bg: "neutral.1",
4720
+ width: "full"
4721
+ },
4722
+ toggleDescription: {
4723
+ textStyle: "bodyMedium",
4724
+ fontWeight: "medium",
4725
+ color: "onSurface",
4726
+ flex: 1
4727
+ }
4728
+ }
4729
+ });
4484
4730
  var layerStyles = dev.defineLayerStyles({
4485
4731
  disabled: {
4486
4732
  value: {
@@ -4658,7 +4904,8 @@ var discourserPandaPreset = dev.definePreset({
4658
4904
  contentCard,
4659
4905
  scenarioCard,
4660
4906
  scenarioQueue,
4661
- scenarioSettings
4907
+ scenarioSettings,
4908
+ studioControls
4662
4909
  }
4663
4910
  }
4664
4911
  },
@@ -4682,5 +4929,5 @@ var discourserPandaPreset = dev.definePreset({
4682
4929
  exports.discourserPandaPreset = discourserPandaPreset;
4683
4930
  exports.material3Language = material3Language;
4684
4931
  exports.transformToPandaTheme = transformToPandaTheme;
4685
- //# sourceMappingURL=chunk-AZ6QU2L2.cjs.map
4686
- //# sourceMappingURL=chunk-AZ6QU2L2.cjs.map
4932
+ //# sourceMappingURL=chunk-5H764SHY.cjs.map
4933
+ //# sourceMappingURL=chunk-5H764SHY.cjs.map