@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
@@ -2069,8 +2069,8 @@ var ParentItem = ({
2069
2069
  }) => {
2070
2070
  const styles = css({
2071
2071
  color: "fg.subtle",
2072
- textStyle: "sm",
2073
- fontWeight: "normal",
2072
+ textStyle: "bodyMedium",
2073
+ fontWeight: "light",
2074
2074
  textDecoration: "none",
2075
2075
  _hover: href ? { color: "fg.default", textDecoration: "underline" } : void 0
2076
2076
  });
@@ -2085,7 +2085,8 @@ var ParentSeparator = () => /* @__PURE__ */ jsx(
2085
2085
  "aria-hidden": "true",
2086
2086
  className: css({
2087
2087
  color: "fg.subtle",
2088
- textStyle: "sm",
2088
+ textStyle: "bodyMedium",
2089
+ fontWeight: "light",
2089
2090
  mx: "0.5"
2090
2091
  }),
2091
2092
  children: "/"
@@ -2321,7 +2322,6 @@ function SettingsPopover({
2321
2322
  borderTopStyle: "solid",
2322
2323
  borderTopColor: "neutral.3",
2323
2324
  borderRadius: "0",
2324
- boxShadow: "0px -1px 2px rgba(0, 0, 0, 0.3), 0px -2px 6px 2px rgba(0, 0, 0, 0.15)",
2325
2325
  cursor: "pointer",
2326
2326
  transition: "background 0.2s",
2327
2327
  _hover: {
@@ -2373,7 +2373,7 @@ function SettingsPopover({
2373
2373
  p: "0",
2374
2374
  w: "275px",
2375
2375
  borderRadius: "l3",
2376
- boxShadow: "level2",
2376
+ boxShadow: "md",
2377
2377
  overflow: "hidden"
2378
2378
  }),
2379
2379
  children: [
@@ -2838,6 +2838,10 @@ var ALL_SECTION_IDS2 = [
2838
2838
  "display-timer",
2839
2839
  "hide-interviewers"
2840
2840
  ];
2841
+ var DEFAULT_TRIGGER_CSS = {
2842
+ fontSize: "sm",
2843
+ fontWeight: "semibold"
2844
+ };
2841
2845
  function StudioControls({
2842
2846
  scenarioName,
2843
2847
  scenarioFocus,
@@ -2847,12 +2851,14 @@ function StudioControls({
2847
2851
  defaultRecordingMode = "no-recording",
2848
2852
  defaultShowTimer = true,
2849
2853
  defaultHideInterviewers = false,
2854
+ triggerCss,
2850
2855
  onAudioLevelChange,
2851
2856
  onMicLevelChange,
2852
2857
  onRecordingModeChange,
2853
2858
  onTimerChange,
2854
2859
  onInterviewersChange
2855
2860
  }) {
2861
+ const resolvedTriggerCss = { ...DEFAULT_TRIGGER_CSS, ...triggerCss };
2856
2862
  const styles = studioControls();
2857
2863
  const [audioLevel, setAudioLevel] = useState(defaultAudioLevel);
2858
2864
  const [micLevel, setMicLevel] = useState(defaultMicLevel);
@@ -2864,8 +2870,7 @@ function StudioControls({
2864
2870
  {
2865
2871
  className: styles.sectionTrigger,
2866
2872
  css: {
2867
- fontSize: "lg",
2868
- fontWeight: "medium",
2873
+ ...resolvedTriggerCss,
2869
2874
  borderRadius: "0",
2870
2875
  py: "4",
2871
2876
  bg: "neutral.1",
@@ -2919,8 +2924,7 @@ function StudioControls({
2919
2924
  {
2920
2925
  className: styles.sectionTrigger,
2921
2926
  css: {
2922
- fontSize: "lg",
2923
- fontWeight: "medium",
2927
+ ...resolvedTriggerCss,
2924
2928
  borderRadius: "0",
2925
2929
  py: "4",
2926
2930
  bg: "neutral.1",
@@ -2973,8 +2977,7 @@ function StudioControls({
2973
2977
  {
2974
2978
  className: styles.sectionTrigger,
2975
2979
  css: {
2976
- fontSize: "lg",
2977
- fontWeight: "medium",
2980
+ ...resolvedTriggerCss,
2978
2981
  borderRadius: "0",
2979
2982
  py: "4",
2980
2983
  bg: "neutral.1",
@@ -3027,8 +3030,7 @@ function StudioControls({
3027
3030
  {
3028
3031
  className: styles.sectionTrigger,
3029
3032
  css: {
3030
- fontSize: "lg",
3031
- fontWeight: "medium",
3033
+ ...resolvedTriggerCss,
3032
3034
  borderRadius: "0",
3033
3035
  py: "4",
3034
3036
  bg: "neutral.1",
@@ -3077,7 +3079,8 @@ function StudioControls({
3077
3079
  /* @__PURE__ */ jsx(
3078
3080
  ItemText,
3079
3081
  {
3080
- css: { fontSize: "md", fontWeight: "medium" },
3082
+ css: { textStyle: "bodyMedium" },
3083
+ style: { fontWeight: "var(--font-weights-normal)" },
3081
3084
  children: option.label
3082
3085
  }
3083
3086
  ),
@@ -3092,8 +3095,7 @@ function StudioControls({
3092
3095
  {
3093
3096
  className: styles.sectionTrigger,
3094
3097
  css: {
3095
- fontSize: "lg",
3096
- fontWeight: "medium",
3098
+ ...resolvedTriggerCss,
3097
3099
  borderRadius: "0",
3098
3100
  py: "4",
3099
3101
  bg: "neutral.1",
@@ -3136,8 +3138,7 @@ function StudioControls({
3136
3138
  {
3137
3139
  className: styles.sectionTrigger,
3138
3140
  css: {
3139
- fontSize: "lg",
3140
- fontWeight: "medium",
3141
+ ...resolvedTriggerCss,
3141
3142
  borderRadius: "0",
3142
3143
  py: "4",
3143
3144
  bg: "neutral.1",
@@ -3520,5 +3521,5 @@ function ScenarioQueue({
3520
3521
  }
3521
3522
 
3522
3523
  export { AbsoluteCenter_exports, Accordion_exports, AccountIcon, AddScenarioDialog, AudienceIcon, AudioSpeakerIcon, Avatar_exports, Badge, BookmarkPlusIcon, Breadcrumb_exports, Button, ButtonGroup, Card_exports, Checkbox_exports, ChevronUpDownIcon, ChevronUpIcon, ClipBoardIcon, ClockIcon, CloseButton_exports, ContentCard_exports, DashboardIcon, Dialog_exports, DiscourserLogo, Divider, Drawer_exports, ExitStudioIcon, GripDotsVerticalIcon, Group_exports, Header, HelpIcon, IconButton, Icon_exports, Input, InputAddon, InputGroup2 as InputGroup, LeftArrowIcon, LoginIcon, LogoutIcon, MicrophoneIcon, NavigationMenu, NotebookIcon, NotebookPenIcon, PausePlayIcon, PlayIcon, Popover_exports, Progress_exports, RadioGroup_exports, RecordIcon, RepeatQuestionIcon, RightArrowIcon, ScenarioCard, ScenarioIcon, ScenarioQueue, ScenarioSettings, ScrollTextIcon, Select_exports, SettingsPopover, Skeleton_exports, Slider_exports, SparklesIcon, SpeechIcon, Spinner, Stepper, StopPlayIcon, StudioControls, Switch_exports, Tabs_exports, Textarea, TimerIcon, Toaster, Tooltip_exports, UserProfileIcon, difficultyColorMap, difficultyLabel, toaster };
3523
- //# sourceMappingURL=chunk-MAVUSE4F.js.map
3524
- //# sourceMappingURL=chunk-MAVUSE4F.js.map
3524
+ //# sourceMappingURL=chunk-JDERS7J6.js.map
3525
+ //# sourceMappingURL=chunk-JDERS7J6.js.map