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