@discourser/design-system 0.15.1 → 0.18.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-UNWXE6UB.cjs → chunk-2P7Z5PVP.cjs} +817 -16
- package/dist/chunk-2P7Z5PVP.cjs.map +1 -0
- package/dist/{chunk-ABC7N32K.cjs → chunk-PFWU7QSM.cjs} +464 -8
- package/dist/chunk-PFWU7QSM.cjs.map +1 -0
- package/dist/{chunk-GD6Q2FUE.js → chunk-QC7LGFM3.js} +808 -18
- package/dist/chunk-QC7LGFM3.js.map +1 -0
- package/dist/{chunk-SBKRSXSZ.js → chunk-SNUJBT5R.js} +464 -8
- package/dist/chunk-SNUJBT5R.js.map +1 -0
- package/dist/components/Accordion.figma.d.ts +2 -0
- package/dist/components/Accordion.figma.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +2 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb.figma.d.ts +2 -0
- package/dist/components/Breadcrumb.figma.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.d.ts +13 -0
- package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
- package/dist/components/ContentCard/ContentCard.figma.d.ts +2 -0
- package/dist/components/ContentCard/ContentCard.figma.d.ts.map +1 -0
- package/dist/components/ContentCard/index.d.ts +2 -0
- package/dist/components/ContentCard/index.d.ts.map +1 -0
- package/dist/components/{Heading.d.ts → Header.d.ts} +3 -3
- package/dist/components/Header.d.ts.map +1 -0
- package/dist/components/Header.figma.d.ts +2 -0
- package/dist/components/Header.figma.d.ts.map +1 -0
- package/dist/components/Icons/AccountIcon.d.ts +6 -0
- package/dist/components/Icons/AccountIcon.d.ts.map +1 -0
- package/dist/components/Icons/AudienceIcon.d.ts +6 -0
- package/dist/components/Icons/AudienceIcon.d.ts.map +1 -0
- package/dist/components/Icons/AudienceIcon.figma.d.ts +2 -0
- package/dist/components/Icons/AudienceIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/AudioSpeakerIcon.d.ts +6 -0
- package/dist/components/Icons/AudioSpeakerIcon.d.ts.map +1 -0
- package/dist/components/Icons/AudioSpeakerIcon.figma.d.ts +2 -0
- package/dist/components/Icons/AudioSpeakerIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/BookmarkPlusIcon.d.ts +6 -0
- package/dist/components/Icons/BookmarkPlusIcon.d.ts.map +1 -0
- package/dist/components/Icons/BookmarkPlusIcon.figma.d.ts +2 -0
- package/dist/components/Icons/BookmarkPlusIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/ChevronUpIcon.d.ts +6 -0
- package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/components/Icons/ClipBoardIcon.d.ts +6 -0
- package/dist/components/Icons/ClipBoardIcon.d.ts.map +1 -0
- package/dist/components/Icons/ClipBoardIcon.figma.d.ts +2 -0
- package/dist/components/Icons/ClipBoardIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/ClockIcon.d.ts.map +1 -1
- package/dist/components/Icons/DashboardIcon.d.ts +6 -0
- package/dist/components/Icons/DashboardIcon.d.ts.map +1 -0
- package/dist/components/Icons/DiscourserLogo.d.ts +6 -0
- package/dist/components/Icons/DiscourserLogo.d.ts.map +1 -0
- package/dist/components/Icons/DiscourserLogo.figma.d.ts +2 -0
- package/dist/components/Icons/DiscourserLogo.figma.d.ts.map +1 -0
- package/dist/components/Icons/ExitStudioIcon.d.ts +6 -0
- package/dist/components/Icons/ExitStudioIcon.d.ts.map +1 -0
- package/dist/components/Icons/ExitStudioIcon.figma.d.ts +2 -0
- package/dist/components/Icons/ExitStudioIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/GripDotsVerticalIcon.d.ts.map +1 -1
- package/dist/components/Icons/HelpIcon.d.ts +6 -0
- package/dist/components/Icons/HelpIcon.d.ts.map +1 -0
- package/dist/components/Icons/MicrophoneIcon.d.ts +6 -0
- package/dist/components/Icons/MicrophoneIcon.d.ts.map +1 -0
- package/dist/components/Icons/MicrophoneIcon.figma.d.ts +2 -0
- package/dist/components/Icons/MicrophoneIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/NotebookIcon.d.ts +6 -0
- package/dist/components/Icons/NotebookIcon.d.ts.map +1 -0
- package/dist/components/Icons/NotebookPenIcon.d.ts +6 -0
- package/dist/components/Icons/NotebookPenIcon.d.ts.map +1 -0
- package/dist/components/Icons/NotebookPenIcon.figma.d.ts +2 -0
- package/dist/components/Icons/NotebookPenIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/PausePlayIcon.d.ts +6 -0
- package/dist/components/Icons/PausePlayIcon.d.ts.map +1 -0
- package/dist/components/Icons/PausePlayIcon.figma.d.ts +2 -0
- package/dist/components/Icons/PausePlayIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/PlayIcon.d.ts +6 -0
- package/dist/components/Icons/PlayIcon.d.ts.map +1 -0
- package/dist/components/Icons/PlayIcon.figma.d.ts +2 -0
- package/dist/components/Icons/PlayIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/RecordIcon.d.ts +6 -0
- package/dist/components/Icons/RecordIcon.d.ts.map +1 -0
- package/dist/components/Icons/RecordIcon.figma.d.ts +2 -0
- package/dist/components/Icons/RecordIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/RepeatQuestionIcon.d.ts +6 -0
- package/dist/components/Icons/RepeatQuestionIcon.d.ts.map +1 -0
- package/dist/components/Icons/RepeatQuestionIcon.figma.d.ts +2 -0
- package/dist/components/Icons/RepeatQuestionIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/RightArrowIcon.d.ts +6 -0
- package/dist/components/Icons/RightArrowIcon.d.ts.map +1 -0
- package/dist/components/Icons/ScenarioIcon.d.ts +6 -0
- package/dist/components/Icons/ScenarioIcon.d.ts.map +1 -0
- package/dist/components/Icons/ScrollTextIcon.d.ts +6 -0
- package/dist/components/Icons/ScrollTextIcon.d.ts.map +1 -0
- package/dist/components/Icons/ScrollTextIcon.figma.d.ts +2 -0
- package/dist/components/Icons/ScrollTextIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/SparklesIcon.d.ts +6 -0
- package/dist/components/Icons/SparklesIcon.d.ts.map +1 -0
- package/dist/components/Icons/SparklesIcon.figma.d.ts +2 -0
- package/dist/components/Icons/SparklesIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/SpeechIcon.d.ts +6 -0
- package/dist/components/Icons/SpeechIcon.d.ts.map +1 -0
- package/dist/components/Icons/SpeechIcon.figma.d.ts +2 -0
- package/dist/components/Icons/SpeechIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/StopPlayIcon.d.ts +6 -0
- package/dist/components/Icons/StopPlayIcon.d.ts.map +1 -0
- package/dist/components/Icons/StopPlayIcon.figma.d.ts +2 -0
- package/dist/components/Icons/StopPlayIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/TimerIcon.d.ts +6 -0
- package/dist/components/Icons/TimerIcon.d.ts.map +1 -0
- package/dist/components/Icons/TimerIcon.figma.d.ts +2 -0
- package/dist/components/Icons/TimerIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/UserProfileIcon.d.ts +6 -0
- package/dist/components/Icons/UserProfileIcon.d.ts.map +1 -0
- package/dist/components/Icons/UserProfileIcon.figma.d.ts +2 -0
- package/dist/components/Icons/UserProfileIcon.figma.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +26 -1
- package/dist/components/Icons/index.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +3 -0
- package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
- package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts +2 -0
- package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts.map +1 -0
- package/dist/components/NavigationMenu/index.d.ts +3 -0
- package/dist/components/NavigationMenu/index.d.ts.map +1 -0
- package/dist/components/NavigationMenu/types.d.ts +25 -0
- package/dist/components/NavigationMenu/types.d.ts.map +1 -0
- package/dist/components/QuickStartPage/QuickStartPage.d.ts +21 -0
- package/dist/components/QuickStartPage/QuickStartPage.d.ts.map +1 -0
- package/dist/components/QuickStartPage/index.d.ts +3 -0
- package/dist/components/QuickStartPage/index.d.ts.map +1 -0
- package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts +2 -0
- package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts.map +1 -0
- package/dist/components/ScenarioSettings/ScenarioSettings.d.ts +3 -0
- package/dist/components/ScenarioSettings/ScenarioSettings.d.ts.map +1 -0
- package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts +2 -0
- package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts.map +1 -0
- package/dist/components/ScenarioSettings/index.d.ts +3 -0
- package/dist/components/ScenarioSettings/index.d.ts.map +1 -0
- package/dist/components/ScenarioSettings/types.d.ts +54 -0
- package/dist/components/ScenarioSettings/types.d.ts.map +1 -0
- package/dist/components/index.cjs +86 -42
- package/dist/components/index.d.ts +14 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/figma-codex/config.d.ts +8 -0
- package/dist/figma-codex/config.d.ts.map +1 -0
- package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts +6 -0
- package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts.map +1 -0
- package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts +2 -0
- package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts.map +1 -0
- package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts +2 -0
- package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts.map +1 -0
- package/dist/figma-codex/fixtures/SimpleComponent.d.ts +8 -0
- package/dist/figma-codex/fixtures/SimpleComponent.d.ts.map +1 -0
- package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts +2 -0
- package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts.map +1 -0
- package/dist/figma-codex/generate.d.ts +6 -0
- package/dist/figma-codex/generate.d.ts.map +1 -0
- package/dist/figma-codex/parser.d.ts +18 -0
- package/dist/figma-codex/parser.d.ts.map +1 -0
- package/dist/figma-codex/resolver.d.ts +5 -0
- package/dist/figma-codex/resolver.d.ts.map +1 -0
- package/dist/figma-codex/schema.d.ts +60 -0
- package/dist/figma-codex/schema.d.ts.map +1 -0
- package/dist/figma-codex/writer.d.ts +8 -0
- package/dist/figma-codex/writer.d.ts.map +1 -0
- package/dist/figma-codex.json +679 -0
- package/dist/index.cjs +90 -46
- package/dist/index.js +2 -2
- 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/preset/recipes/accordion.d.ts.map +1 -1
- package/dist/preset/recipes/breadcrumb.d.ts.map +1 -1
- package/dist/preset/recipes/content-card.d.ts +2 -0
- package/dist/preset/recipes/content-card.d.ts.map +1 -0
- package/dist/preset/recipes/index.d.ts +4 -0
- package/dist/preset/recipes/index.d.ts.map +1 -1
- package/dist/preset/recipes/navigation-menu.d.ts +2 -0
- package/dist/preset/recipes/navigation-menu.d.ts.map +1 -0
- package/dist/preset/recipes/scenario-settings.d.ts +2 -0
- package/dist/preset/recipes/scenario-settings.d.ts.map +1 -0
- package/package.json +26 -2
- package/src/components/Accordion.figma.tsx +20 -0
- package/src/components/Breadcrumb.figma.tsx +18 -0
- package/src/components/Breadcrumb.tsx +33 -15
- package/src/components/ContentCard/ContentCard.figma.tsx +21 -0
- package/src/components/ContentCard/ContentCard.test.tsx +197 -0
- package/src/components/ContentCard/ContentCard.tsx +19 -0
- package/src/components/ContentCard/index.ts +13 -0
- package/src/components/Header.figma.tsx +25 -0
- package/src/components/{Heading.tsx → Header.tsx} +2 -2
- package/src/components/Icons/AccountIcon.tsx +26 -0
- package/src/components/Icons/AudienceIcon.figma.tsx +10 -0
- package/src/components/Icons/AudienceIcon.tsx +20 -0
- package/src/components/Icons/AudioSpeakerIcon.figma.tsx +10 -0
- package/src/components/Icons/AudioSpeakerIcon.tsx +26 -0
- package/src/components/Icons/BookmarkPlusIcon.figma.tsx +10 -0
- package/src/components/Icons/BookmarkPlusIcon.tsx +26 -0
- package/src/components/Icons/ChevronUpIcon.tsx +24 -0
- package/src/components/Icons/ClipBoardIcon.figma.tsx +10 -0
- package/src/components/Icons/ClipBoardIcon.tsx +61 -0
- package/src/components/Icons/ClockIcon.tsx +6 -6
- package/src/components/Icons/DashboardIcon.tsx +47 -0
- package/src/components/Icons/Discourser-Logo.svg +14 -0
- package/src/components/Icons/DiscourserLogo.figma.tsx +10 -0
- package/src/components/Icons/DiscourserLogo.tsx +72 -0
- package/src/components/Icons/ExitStudioIcon.figma.tsx +10 -0
- package/src/components/Icons/ExitStudioIcon.tsx +34 -0
- package/src/components/Icons/GripDotsVerticalIcon.tsx +6 -6
- package/src/components/Icons/HelpIcon.tsx +26 -0
- package/src/components/Icons/MicrophoneIcon.figma.tsx +10 -0
- package/src/components/Icons/MicrophoneIcon.tsx +40 -0
- package/src/components/Icons/NotebookIcon.tsx +26 -0
- package/src/components/Icons/NotebookPenIcon.figma.tsx +10 -0
- package/src/components/Icons/NotebookPenIcon.tsx +26 -0
- package/src/components/Icons/PausePlayIcon.figma.tsx +10 -0
- package/src/components/Icons/PausePlayIcon.tsx +41 -0
- package/src/components/Icons/PlayIcon.figma.tsx +10 -0
- package/src/components/Icons/PlayIcon.tsx +33 -0
- package/src/components/Icons/RecordIcon.figma.tsx +10 -0
- package/src/components/Icons/RecordIcon.tsx +41 -0
- package/src/components/Icons/RepeatQuestionIcon.figma.tsx +10 -0
- package/src/components/Icons/RepeatQuestionIcon.tsx +26 -0
- package/src/components/Icons/RightArrowIcon.tsx +23 -0
- package/src/components/Icons/ScenarioIcon.tsx +26 -0
- package/src/components/Icons/ScrollTextIcon.figma.tsx +10 -0
- package/src/components/Icons/ScrollTextIcon.tsx +26 -0
- package/src/components/Icons/SparklesIcon.figma.tsx +10 -0
- package/src/components/Icons/SparklesIcon.tsx +26 -0
- package/src/components/Icons/SpeechIcon.figma.tsx +10 -0
- package/src/components/Icons/SpeechIcon.tsx +26 -0
- package/src/components/Icons/StopPlayIcon.figma.tsx +10 -0
- package/src/components/Icons/StopPlayIcon.tsx +35 -0
- package/src/components/Icons/TimerIcon.figma.tsx +10 -0
- package/src/components/Icons/TimerIcon.tsx +26 -0
- package/src/components/Icons/UserProfileIcon.figma.tsx +10 -0
- package/src/components/Icons/UserProfileIcon.tsx +26 -0
- package/src/components/Icons/index.ts +39 -2
- package/src/components/NavigationMenu/NavigationMenu.figma.tsx +26 -0
- package/src/components/NavigationMenu/NavigationMenu.test.tsx +524 -0
- package/src/components/NavigationMenu/NavigationMenu.tsx +102 -0
- package/src/components/NavigationMenu/index.ts +2 -0
- package/src/components/NavigationMenu/types.ts +27 -0
- package/src/components/QuickStartPage/QuickStartPage.tsx +627 -0
- package/src/components/QuickStartPage/index.ts +2 -0
- package/src/components/ScenarioQueue/ScenarioQueue.figma.tsx +37 -0
- package/src/components/ScenarioSettings/ScenarioSettings.figma.tsx +12 -0
- package/src/components/ScenarioSettings/ScenarioSettings.test.tsx +406 -0
- package/src/components/ScenarioSettings/ScenarioSettings.tsx +386 -0
- package/src/components/ScenarioSettings/index.ts +11 -0
- package/src/components/ScenarioSettings/types.ts +70 -0
- package/src/components/__tests__/Breadcrumb.test.tsx +94 -0
- package/src/components/index.ts +38 -4
- package/src/figma-codex/README.md +186 -0
- package/src/figma-codex/__tests__/config.test.ts +63 -0
- package/src/figma-codex/__tests__/generate.test.ts +78 -0
- package/src/figma-codex/__tests__/parser.test.ts +138 -0
- package/src/figma-codex/__tests__/resolver.test.ts +196 -0
- package/src/figma-codex/__tests__/writer.test.ts +111 -0
- package/src/figma-codex/config.ts +42 -0
- package/src/figma-codex/fixtures/CompoundComponent/CompoundComponent.tsx +17 -0
- package/src/figma-codex/fixtures/CompoundComponent/index.ts +1 -0
- package/src/figma-codex/fixtures/CompoundComponent.figma.tsx +14 -0
- package/src/figma-codex/fixtures/SimpleComponent.figma.tsx +10 -0
- package/src/figma-codex/fixtures/SimpleComponent.tsx +10 -0
- package/src/figma-codex/fixtures/expected-output.json +78 -0
- package/src/figma-codex/generate.ts +106 -0
- package/src/figma-codex/parser.ts +138 -0
- package/src/figma-codex/resolver.ts +280 -0
- package/src/figma-codex/schema.ts +79 -0
- package/src/figma-codex/writer.ts +54 -0
- package/src/preset/index.ts +6 -0
- package/src/preset/recipes/accordion.ts +8 -5
- package/src/preset/recipes/breadcrumb.ts +34 -2
- package/src/preset/recipes/content-card.ts +124 -0
- package/src/preset/recipes/index.ts +4 -0
- package/src/preset/recipes/navigation-menu.ts +97 -0
- package/src/preset/recipes/scenario-settings.ts +182 -0
- package/src/test/setup.ts +12 -9
- package/dist/chunk-ABC7N32K.cjs.map +0 -1
- package/dist/chunk-GD6Q2FUE.js.map +0 -1
- package/dist/chunk-SBKRSXSZ.js.map +0 -1
- package/dist/chunk-UNWXE6UB.cjs.map +0 -1
- package/dist/components/Heading.d.ts.map +0 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const navigationMenu = defineSlotRecipe({
|
|
4
|
+
className: 'navigation-menu',
|
|
5
|
+
slots: [
|
|
6
|
+
'root',
|
|
7
|
+
'section',
|
|
8
|
+
'sectionTrigger',
|
|
9
|
+
'sectionIcon',
|
|
10
|
+
'sectionTitle',
|
|
11
|
+
'sectionIndicator',
|
|
12
|
+
'sectionContent',
|
|
13
|
+
'itemList',
|
|
14
|
+
'item',
|
|
15
|
+
'itemLink',
|
|
16
|
+
],
|
|
17
|
+
base: {
|
|
18
|
+
// ── Token mappings verified against Figma MCP output (node 38:4046) ──
|
|
19
|
+
// Figma file: GaHmFfmvO4loUzuZS4TgEz
|
|
20
|
+
root: {
|
|
21
|
+
bg: 'surface.dim', // Figma: #f5f1eb warm sage sidebar bg
|
|
22
|
+
width: 'full',
|
|
23
|
+
py: '2',
|
|
24
|
+
},
|
|
25
|
+
section: {
|
|
26
|
+
borderBottom: 'none',
|
|
27
|
+
},
|
|
28
|
+
sectionTrigger: {
|
|
29
|
+
// Layout-only props — no conflicts with accordion recipe here
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'space-between',
|
|
33
|
+
width: 'full',
|
|
34
|
+
cursor: 'pointer',
|
|
35
|
+
// NOTE: fontSize, fontWeight, borderRadius, p, bg, color are applied via
|
|
36
|
+
// css={{}} on Accordion.ItemTrigger in the component (utilities layer > recipes layer).
|
|
37
|
+
// See ScenarioCard.tsx for the same pattern.
|
|
38
|
+
_hover: {
|
|
39
|
+
bg: 'surface.container.high',
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
sectionIcon: {
|
|
43
|
+
flexShrink: 0,
|
|
44
|
+
display: 'flex',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
justifyContent: 'center',
|
|
47
|
+
width: '6', // 24px container
|
|
48
|
+
height: '6',
|
|
49
|
+
color: 'primary.50', // olive green icons — Figma: #518500
|
|
50
|
+
fontSize: '20px', // icon SVGs use width/height: 1em → sets 20×20px
|
|
51
|
+
},
|
|
52
|
+
sectionTitle: {
|
|
53
|
+
flex: 1,
|
|
54
|
+
textAlign: 'start',
|
|
55
|
+
// Font styles inherited from trigger's css={{}} utility overrides
|
|
56
|
+
},
|
|
57
|
+
sectionIndicator: {
|
|
58
|
+
// color set via css={{}} on Accordion.ItemIndicator (utilities > recipes)
|
|
59
|
+
_open: {
|
|
60
|
+
rotate: '180deg',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
sectionContent: {
|
|
64
|
+
overflow: 'hidden',
|
|
65
|
+
borderRadius: '0', // override accordion's default border-radius
|
|
66
|
+
},
|
|
67
|
+
itemList: {
|
|
68
|
+
display: 'flex',
|
|
69
|
+
flexDirection: 'column',
|
|
70
|
+
gap: '0.5',
|
|
71
|
+
pt: '1',
|
|
72
|
+
pb: '2',
|
|
73
|
+
},
|
|
74
|
+
item: {},
|
|
75
|
+
itemLink: {
|
|
76
|
+
display: 'block',
|
|
77
|
+
py: '2', // Figma: 5px top/bottom
|
|
78
|
+
pl: '8', // Figma: 30px left indent → spacing.8 = 32px
|
|
79
|
+
pr: '2', // Figma: 5px right padding
|
|
80
|
+
borderRadius: 'l3', // Figma: 8px
|
|
81
|
+
textDecoration: 'none',
|
|
82
|
+
fontSize: 'md', // Figma: 16px
|
|
83
|
+
fontWeight: 'norma', // Figma: Inter Medium 500
|
|
84
|
+
lineHeight: '1',
|
|
85
|
+
color: 'onSurface', // Figma: #363636
|
|
86
|
+
cursor: 'pointer',
|
|
87
|
+
_hover: {
|
|
88
|
+
bg: 'surface.container.high', // Figma: #ebe7e1
|
|
89
|
+
},
|
|
90
|
+
// Figma active state: surface.container.low (NOT primary.container)
|
|
91
|
+
'&[data-active="true"]': {
|
|
92
|
+
bg: 'surface.container.low', // Figma: #f3f4e9 → surfaceContainerLow
|
|
93
|
+
color: 'onSurface',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
});
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev';
|
|
2
|
+
|
|
3
|
+
export const scenarioSettings = defineSlotRecipe({
|
|
4
|
+
className: 'scenario-settings',
|
|
5
|
+
// ── Token mappings verified against Figma MCP output (node 38:4186) ──
|
|
6
|
+
// Figma file: GaHmFfmvO4loUzuZS4TgEz — "Discourser Queue Right Accordion"
|
|
7
|
+
slots: [
|
|
8
|
+
'root',
|
|
9
|
+
'section',
|
|
10
|
+
'sectionTrigger',
|
|
11
|
+
'triggerLabel',
|
|
12
|
+
'sectionIndicator',
|
|
13
|
+
'sectionContent',
|
|
14
|
+
// Info panels (sections 1-4): surfacevariant bg, explanation card, adjustments
|
|
15
|
+
'infoPanel',
|
|
16
|
+
'explanationCard',
|
|
17
|
+
'explanationTitle',
|
|
18
|
+
'explanationList',
|
|
19
|
+
'explanationItem',
|
|
20
|
+
'levelLabel',
|
|
21
|
+
'adjustmentsRow',
|
|
22
|
+
// Radio panels (sections 5-6): neutral.1 bg, radio group, badge
|
|
23
|
+
'radioPanel',
|
|
24
|
+
'radioPanelTitle',
|
|
25
|
+
'radioCurrentRow',
|
|
26
|
+
'radioCurrentLabel',
|
|
27
|
+
'currentlyBadge',
|
|
28
|
+
],
|
|
29
|
+
base: {
|
|
30
|
+
root: {
|
|
31
|
+
display: 'flex',
|
|
32
|
+
flexDirection: 'column',
|
|
33
|
+
width: 'full',
|
|
34
|
+
cursor: 'default',
|
|
35
|
+
},
|
|
36
|
+
section: {
|
|
37
|
+
// Remove the accordion's default borderBottom
|
|
38
|
+
borderBottom: 'none',
|
|
39
|
+
width: 'full',
|
|
40
|
+
},
|
|
41
|
+
sectionTrigger: {
|
|
42
|
+
// Layout — non-conflicting props only.
|
|
43
|
+
// fontSize, fontWeight, borderRadius, bg, color, py applied via css={{}} in component.
|
|
44
|
+
display: 'flex',
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
justifyContent: 'space-between',
|
|
47
|
+
gap: '4',
|
|
48
|
+
width: 'full',
|
|
49
|
+
px: '5', // 20px — Figma spec
|
|
50
|
+
cursor: 'pointer',
|
|
51
|
+
},
|
|
52
|
+
triggerLabel: {
|
|
53
|
+
flex: 1,
|
|
54
|
+
textAlign: 'start',
|
|
55
|
+
overflow: 'hidden',
|
|
56
|
+
textOverflow: 'ellipsis',
|
|
57
|
+
whiteSpace: 'nowrap',
|
|
58
|
+
},
|
|
59
|
+
sectionIndicator: {
|
|
60
|
+
// color applied via css={{}} on ItemIndicator
|
|
61
|
+
flexShrink: 0,
|
|
62
|
+
_open: {
|
|
63
|
+
rotate: '180deg',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
sectionContent: {
|
|
67
|
+
overflow: 'hidden',
|
|
68
|
+
borderRadius: '0',
|
|
69
|
+
width: 'full',
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
// ── Info Panel (sections 1-4) ─────────────────────────────────────────────
|
|
73
|
+
// Figma: bg = surfacevariant (#E1E4D5) — closest token: surface.container.highest (#E2E3D8)
|
|
74
|
+
infoPanel: {
|
|
75
|
+
display: 'flex',
|
|
76
|
+
flexDirection: 'column',
|
|
77
|
+
gap: '5', // 20px — Figma spec
|
|
78
|
+
p: '5', // 20px — Figma spec
|
|
79
|
+
bg: 'surface.container.highest',
|
|
80
|
+
width: 'full',
|
|
81
|
+
},
|
|
82
|
+
|
|
83
|
+
// Figma: bg = neutral/99 (#FDFCF5), border = surfacevariant, rounded-8, p-20
|
|
84
|
+
explanationCard: {
|
|
85
|
+
display: 'flex',
|
|
86
|
+
flexDirection: 'column',
|
|
87
|
+
gap: '4', // 16px
|
|
88
|
+
p: '5', // 20px
|
|
89
|
+
bg: 'neutral.1', // neutral[99] = #FDFCF5 ✓
|
|
90
|
+
borderWidth: '1px',
|
|
91
|
+
borderStyle: 'solid',
|
|
92
|
+
borderColor: 'surface.container.highest',
|
|
93
|
+
borderRadius: 'l3', // 8px
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
// Figma: Inter Medium 20px, --dark-surfacecontainerhigh (#282b24 ≈ onSurface)
|
|
97
|
+
explanationTitle: {
|
|
98
|
+
fontSize: 'lg',
|
|
99
|
+
fontWeight: 'semibold',
|
|
100
|
+
color: 'onSurface',
|
|
101
|
+
lineHeight: '1',
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
explanationList: {
|
|
105
|
+
display: 'flex',
|
|
106
|
+
flexDirection: 'column',
|
|
107
|
+
gap: '3', // 12px between items
|
|
108
|
+
listStyleType: 'disc',
|
|
109
|
+
pl: '5', // indent for disc markers
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
explanationItem: {
|
|
113
|
+
fontSize: 'sm', // 16px — Figma spec
|
|
114
|
+
lineHeight: '1.4',
|
|
115
|
+
color: 'fg.default',
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
// Figma: Inter Bold — the "Beginner:", "Intermediate:", "Advanced:" labels
|
|
119
|
+
levelLabel: {
|
|
120
|
+
fontWeight: 'bold',
|
|
121
|
+
color: 'fg.default',
|
|
122
|
+
},
|
|
123
|
+
|
|
124
|
+
adjustmentsRow: {
|
|
125
|
+
display: 'flex',
|
|
126
|
+
alignItems: 'center',
|
|
127
|
+
justifyContent: 'center',
|
|
128
|
+
width: 'full',
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
// ── Radio Panel (sections 5-6) ────────────────────────────────────────────
|
|
132
|
+
// Figma: bg = neutral/99 (#FDFCF5)
|
|
133
|
+
radioPanel: {
|
|
134
|
+
display: 'flex',
|
|
135
|
+
flexDirection: 'column',
|
|
136
|
+
gap: '6', // 24px
|
|
137
|
+
p: '5', // 20px
|
|
138
|
+
bg: 'neutral.1', // neutral[99] = #FDFCF5 ✓
|
|
139
|
+
width: 'full',
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
// Figma: Inter Medium 20px, #363636 ≈ onSurface
|
|
143
|
+
radioPanelTitle: {
|
|
144
|
+
fontSize: 'lg',
|
|
145
|
+
fontWeight: 'semibold',
|
|
146
|
+
color: 'onSurface',
|
|
147
|
+
lineHeight: '1',
|
|
148
|
+
},
|
|
149
|
+
|
|
150
|
+
radioCurrentRow: {
|
|
151
|
+
display: 'flex',
|
|
152
|
+
alignItems: 'center',
|
|
153
|
+
gap: '2.5', // 10px — Figma spec
|
|
154
|
+
mt: '2.5', // space below panel title
|
|
155
|
+
},
|
|
156
|
+
|
|
157
|
+
// Figma: Inter SemiBold 18px, #363636
|
|
158
|
+
radioCurrentLabel: {
|
|
159
|
+
fontSize: 'md',
|
|
160
|
+
fontWeight: 'semibold',
|
|
161
|
+
color: 'onSurface',
|
|
162
|
+
whiteSpace: 'nowrap',
|
|
163
|
+
},
|
|
164
|
+
|
|
165
|
+
// Figma: bg = dark-primary (#B1D18A) = inversePrimary, fully rounded pill
|
|
166
|
+
// px-16, py-6, font: Geist/12px, color: #2c2a27 ≈ fg.default
|
|
167
|
+
currentlyBadge: {
|
|
168
|
+
display: 'inline-flex',
|
|
169
|
+
alignItems: 'center',
|
|
170
|
+
gap: '1.5',
|
|
171
|
+
px: '4', // 16px
|
|
172
|
+
py: '1.5', // 6px
|
|
173
|
+
bg: 'inversePrimary', // #B1D18A light mode ✓
|
|
174
|
+
color: 'fg.default',
|
|
175
|
+
borderRadius: 'full',
|
|
176
|
+
fontSize: 'xs', // 12px
|
|
177
|
+
fontWeight: 'normal',
|
|
178
|
+
lineHeight: '1',
|
|
179
|
+
whiteSpace: 'nowrap',
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
});
|
package/src/test/setup.ts
CHANGED
|
@@ -8,15 +8,18 @@ expect.extend(toHaveNoViolations);
|
|
|
8
8
|
|
|
9
9
|
// Mock ResizeObserver — JSDOM does not implement it, but @zag-js/tabs requires
|
|
10
10
|
// it to sync the active tab indicator rectangle position.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
11
|
+
// Guard for Node.js environment (e.g. figma-codex tests with @vitest-environment node)
|
|
12
|
+
if (typeof window !== 'undefined') {
|
|
13
|
+
Object.defineProperty(window, 'ResizeObserver', {
|
|
14
|
+
writable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
value: class ResizeObserver {
|
|
17
|
+
observe() {}
|
|
18
|
+
unobserve() {}
|
|
19
|
+
disconnect() {}
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
}
|
|
20
23
|
|
|
21
24
|
// Cleanup after each test
|
|
22
25
|
afterEach(() => {
|