@discourser/design-system 0.15.1 → 0.17.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 (179) hide show
  1. package/dist/{chunk-UNWXE6UB.cjs → chunk-2P7Z5PVP.cjs} +817 -16
  2. package/dist/chunk-2P7Z5PVP.cjs.map +1 -0
  3. package/dist/{chunk-ABC7N32K.cjs → chunk-PFWU7QSM.cjs} +464 -8
  4. package/dist/chunk-PFWU7QSM.cjs.map +1 -0
  5. package/dist/{chunk-GD6Q2FUE.js → chunk-QC7LGFM3.js} +808 -18
  6. package/dist/chunk-QC7LGFM3.js.map +1 -0
  7. package/dist/{chunk-SBKRSXSZ.js → chunk-SNUJBT5R.js} +464 -8
  8. package/dist/chunk-SNUJBT5R.js.map +1 -0
  9. package/dist/components/Accordion.figma.d.ts +2 -0
  10. package/dist/components/Accordion.figma.d.ts.map +1 -0
  11. package/dist/components/Breadcrumb.d.ts +2 -0
  12. package/dist/components/Breadcrumb.d.ts.map +1 -1
  13. package/dist/components/Breadcrumb.figma.d.ts +2 -0
  14. package/dist/components/Breadcrumb.figma.d.ts.map +1 -0
  15. package/dist/components/ContentCard/ContentCard.d.ts +13 -0
  16. package/dist/components/ContentCard/ContentCard.d.ts.map +1 -0
  17. package/dist/components/ContentCard/ContentCard.figma.d.ts +2 -0
  18. package/dist/components/ContentCard/ContentCard.figma.d.ts.map +1 -0
  19. package/dist/components/ContentCard/index.d.ts +2 -0
  20. package/dist/components/ContentCard/index.d.ts.map +1 -0
  21. package/dist/components/{Heading.d.ts → Header.d.ts} +3 -3
  22. package/dist/components/Header.d.ts.map +1 -0
  23. package/dist/components/Header.figma.d.ts +2 -0
  24. package/dist/components/Header.figma.d.ts.map +1 -0
  25. package/dist/components/Icons/AccountIcon.d.ts +6 -0
  26. package/dist/components/Icons/AccountIcon.d.ts.map +1 -0
  27. package/dist/components/Icons/ChevronUpIcon.d.ts +6 -0
  28. package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
  29. package/dist/components/Icons/ClockIcon.d.ts.map +1 -1
  30. package/dist/components/Icons/DashboardIcon.d.ts +6 -0
  31. package/dist/components/Icons/DashboardIcon.d.ts.map +1 -0
  32. package/dist/components/Icons/DiscourserLogo.d.ts +6 -0
  33. package/dist/components/Icons/DiscourserLogo.d.ts.map +1 -0
  34. package/dist/components/Icons/DiscourserLogo.figma.d.ts +2 -0
  35. package/dist/components/Icons/DiscourserLogo.figma.d.ts.map +1 -0
  36. package/dist/components/Icons/GripDotsVerticalIcon.d.ts.map +1 -1
  37. package/dist/components/Icons/HelpIcon.d.ts +6 -0
  38. package/dist/components/Icons/HelpIcon.d.ts.map +1 -0
  39. package/dist/components/Icons/NotebookIcon.d.ts +6 -0
  40. package/dist/components/Icons/NotebookIcon.d.ts.map +1 -0
  41. package/dist/components/Icons/RightArrowIcon.d.ts +6 -0
  42. package/dist/components/Icons/RightArrowIcon.d.ts.map +1 -0
  43. package/dist/components/Icons/ScenarioIcon.d.ts +6 -0
  44. package/dist/components/Icons/ScenarioIcon.d.ts.map +1 -0
  45. package/dist/components/Icons/index.d.ts +9 -1
  46. package/dist/components/Icons/index.d.ts.map +1 -1
  47. package/dist/components/NavigationMenu/NavigationMenu.d.ts +3 -0
  48. package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -0
  49. package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts +2 -0
  50. package/dist/components/NavigationMenu/NavigationMenu.figma.d.ts.map +1 -0
  51. package/dist/components/NavigationMenu/index.d.ts +3 -0
  52. package/dist/components/NavigationMenu/index.d.ts.map +1 -0
  53. package/dist/components/NavigationMenu/types.d.ts +25 -0
  54. package/dist/components/NavigationMenu/types.d.ts.map +1 -0
  55. package/dist/components/QuickStartPage/QuickStartPage.d.ts +21 -0
  56. package/dist/components/QuickStartPage/QuickStartPage.d.ts.map +1 -0
  57. package/dist/components/QuickStartPage/index.d.ts +3 -0
  58. package/dist/components/QuickStartPage/index.d.ts.map +1 -0
  59. package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts +2 -0
  60. package/dist/components/ScenarioQueue/ScenarioQueue.figma.d.ts.map +1 -0
  61. package/dist/components/ScenarioSettings/ScenarioSettings.d.ts +3 -0
  62. package/dist/components/ScenarioSettings/ScenarioSettings.d.ts.map +1 -0
  63. package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts +2 -0
  64. package/dist/components/ScenarioSettings/ScenarioSettings.figma.d.ts.map +1 -0
  65. package/dist/components/ScenarioSettings/index.d.ts +3 -0
  66. package/dist/components/ScenarioSettings/index.d.ts.map +1 -0
  67. package/dist/components/ScenarioSettings/types.d.ts +54 -0
  68. package/dist/components/ScenarioSettings/types.d.ts.map +1 -0
  69. package/dist/components/index.cjs +86 -42
  70. package/dist/components/index.d.ts +14 -3
  71. package/dist/components/index.d.ts.map +1 -1
  72. package/dist/components/index.js +1 -1
  73. package/dist/figma-codex/config.d.ts +8 -0
  74. package/dist/figma-codex/config.d.ts.map +1 -0
  75. package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts +6 -0
  76. package/dist/figma-codex/fixtures/CompoundComponent/CompoundComponent.d.ts.map +1 -0
  77. package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts +2 -0
  78. package/dist/figma-codex/fixtures/CompoundComponent/index.d.ts.map +1 -0
  79. package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts +2 -0
  80. package/dist/figma-codex/fixtures/CompoundComponent.figma.d.ts.map +1 -0
  81. package/dist/figma-codex/fixtures/SimpleComponent.d.ts +8 -0
  82. package/dist/figma-codex/fixtures/SimpleComponent.d.ts.map +1 -0
  83. package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts +2 -0
  84. package/dist/figma-codex/fixtures/SimpleComponent.figma.d.ts.map +1 -0
  85. package/dist/figma-codex/generate.d.ts +6 -0
  86. package/dist/figma-codex/generate.d.ts.map +1 -0
  87. package/dist/figma-codex/parser.d.ts +18 -0
  88. package/dist/figma-codex/parser.d.ts.map +1 -0
  89. package/dist/figma-codex/resolver.d.ts +5 -0
  90. package/dist/figma-codex/resolver.d.ts.map +1 -0
  91. package/dist/figma-codex/schema.d.ts +60 -0
  92. package/dist/figma-codex/schema.d.ts.map +1 -0
  93. package/dist/figma-codex/writer.d.ts +8 -0
  94. package/dist/figma-codex/writer.d.ts.map +1 -0
  95. package/dist/figma-codex.json +373 -0
  96. package/dist/index.cjs +90 -46
  97. package/dist/index.js +2 -2
  98. package/dist/preset/index.cjs +2 -2
  99. package/dist/preset/index.d.ts.map +1 -1
  100. package/dist/preset/index.js +1 -1
  101. package/dist/preset/recipes/accordion.d.ts.map +1 -1
  102. package/dist/preset/recipes/breadcrumb.d.ts.map +1 -1
  103. package/dist/preset/recipes/content-card.d.ts +2 -0
  104. package/dist/preset/recipes/content-card.d.ts.map +1 -0
  105. package/dist/preset/recipes/index.d.ts +4 -0
  106. package/dist/preset/recipes/index.d.ts.map +1 -1
  107. package/dist/preset/recipes/navigation-menu.d.ts +2 -0
  108. package/dist/preset/recipes/navigation-menu.d.ts.map +1 -0
  109. package/dist/preset/recipes/scenario-settings.d.ts +2 -0
  110. package/dist/preset/recipes/scenario-settings.d.ts.map +1 -0
  111. package/package.json +26 -2
  112. package/src/components/Accordion.figma.tsx +20 -0
  113. package/src/components/Breadcrumb.figma.tsx +18 -0
  114. package/src/components/Breadcrumb.tsx +33 -15
  115. package/src/components/ContentCard/ContentCard.figma.tsx +21 -0
  116. package/src/components/ContentCard/ContentCard.test.tsx +197 -0
  117. package/src/components/ContentCard/ContentCard.tsx +19 -0
  118. package/src/components/ContentCard/index.ts +13 -0
  119. package/src/components/Header.figma.tsx +25 -0
  120. package/src/components/{Heading.tsx → Header.tsx} +2 -2
  121. package/src/components/Icons/AccountIcon.tsx +26 -0
  122. package/src/components/Icons/ChevronUpIcon.tsx +24 -0
  123. package/src/components/Icons/ClockIcon.tsx +6 -6
  124. package/src/components/Icons/DashboardIcon.tsx +47 -0
  125. package/src/components/Icons/Discourser-Logo.svg +14 -0
  126. package/src/components/Icons/DiscourserLogo.figma.tsx +10 -0
  127. package/src/components/Icons/DiscourserLogo.tsx +72 -0
  128. package/src/components/Icons/GripDotsVerticalIcon.tsx +6 -6
  129. package/src/components/Icons/HelpIcon.tsx +26 -0
  130. package/src/components/Icons/NotebookIcon.tsx +26 -0
  131. package/src/components/Icons/RightArrowIcon.tsx +23 -0
  132. package/src/components/Icons/ScenarioIcon.tsx +26 -0
  133. package/src/components/Icons/index.ts +13 -2
  134. package/src/components/NavigationMenu/NavigationMenu.figma.tsx +26 -0
  135. package/src/components/NavigationMenu/NavigationMenu.test.tsx +524 -0
  136. package/src/components/NavigationMenu/NavigationMenu.tsx +102 -0
  137. package/src/components/NavigationMenu/index.ts +2 -0
  138. package/src/components/NavigationMenu/types.ts +27 -0
  139. package/src/components/QuickStartPage/QuickStartPage.tsx +627 -0
  140. package/src/components/QuickStartPage/index.ts +2 -0
  141. package/src/components/ScenarioQueue/ScenarioQueue.figma.tsx +37 -0
  142. package/src/components/ScenarioSettings/ScenarioSettings.figma.tsx +12 -0
  143. package/src/components/ScenarioSettings/ScenarioSettings.test.tsx +406 -0
  144. package/src/components/ScenarioSettings/ScenarioSettings.tsx +386 -0
  145. package/src/components/ScenarioSettings/index.ts +11 -0
  146. package/src/components/ScenarioSettings/types.ts +70 -0
  147. package/src/components/__tests__/Breadcrumb.test.tsx +94 -0
  148. package/src/components/index.ts +38 -4
  149. package/src/figma-codex/README.md +186 -0
  150. package/src/figma-codex/__tests__/config.test.ts +63 -0
  151. package/src/figma-codex/__tests__/generate.test.ts +78 -0
  152. package/src/figma-codex/__tests__/parser.test.ts +138 -0
  153. package/src/figma-codex/__tests__/resolver.test.ts +196 -0
  154. package/src/figma-codex/__tests__/writer.test.ts +111 -0
  155. package/src/figma-codex/config.ts +42 -0
  156. package/src/figma-codex/fixtures/CompoundComponent/CompoundComponent.tsx +17 -0
  157. package/src/figma-codex/fixtures/CompoundComponent/index.ts +1 -0
  158. package/src/figma-codex/fixtures/CompoundComponent.figma.tsx +14 -0
  159. package/src/figma-codex/fixtures/SimpleComponent.figma.tsx +10 -0
  160. package/src/figma-codex/fixtures/SimpleComponent.tsx +10 -0
  161. package/src/figma-codex/fixtures/expected-output.json +78 -0
  162. package/src/figma-codex/generate.ts +106 -0
  163. package/src/figma-codex/parser.ts +138 -0
  164. package/src/figma-codex/resolver.ts +280 -0
  165. package/src/figma-codex/schema.ts +79 -0
  166. package/src/figma-codex/writer.ts +54 -0
  167. package/src/preset/index.ts +6 -0
  168. package/src/preset/recipes/accordion.ts +8 -5
  169. package/src/preset/recipes/breadcrumb.ts +34 -2
  170. package/src/preset/recipes/content-card.ts +124 -0
  171. package/src/preset/recipes/index.ts +4 -0
  172. package/src/preset/recipes/navigation-menu.ts +97 -0
  173. package/src/preset/recipes/scenario-settings.ts +182 -0
  174. package/src/test/setup.ts +12 -9
  175. package/dist/chunk-ABC7N32K.cjs.map +0 -1
  176. package/dist/chunk-GD6Q2FUE.js.map +0 -1
  177. package/dist/chunk-SBKRSXSZ.js.map +0 -1
  178. package/dist/chunk-UNWXE6UB.cjs.map +0 -1
  179. package/dist/components/Heading.d.ts.map +0 -1
@@ -1,169 +1,213 @@
1
1
  'use strict';
2
2
 
3
- var chunkUNWXE6UB_cjs = require('../chunk-UNWXE6UB.cjs');
3
+ var chunk2P7Z5PVP_cjs = require('../chunk-2P7Z5PVP.cjs');
4
4
  require('../chunk-EARF7VDF.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "AbsoluteCenter", {
9
9
  enumerable: true,
10
- get: function () { return chunkUNWXE6UB_cjs.AbsoluteCenter_exports; }
10
+ get: function () { return chunk2P7Z5PVP_cjs.AbsoluteCenter_exports; }
11
11
  });
12
12
  Object.defineProperty(exports, "Accordion", {
13
13
  enumerable: true,
14
- get: function () { return chunkUNWXE6UB_cjs.Accordion_exports; }
14
+ get: function () { return chunk2P7Z5PVP_cjs.Accordion_exports; }
15
+ });
16
+ Object.defineProperty(exports, "AccountIcon", {
17
+ enumerable: true,
18
+ get: function () { return chunk2P7Z5PVP_cjs.AccountIcon; }
15
19
  });
16
20
  Object.defineProperty(exports, "AddScenarioDialog", {
17
21
  enumerable: true,
18
- get: function () { return chunkUNWXE6UB_cjs.AddScenarioDialog; }
22
+ get: function () { return chunk2P7Z5PVP_cjs.AddScenarioDialog; }
19
23
  });
20
24
  Object.defineProperty(exports, "Avatar", {
21
25
  enumerable: true,
22
- get: function () { return chunkUNWXE6UB_cjs.Avatar_exports; }
26
+ get: function () { return chunk2P7Z5PVP_cjs.Avatar_exports; }
23
27
  });
24
28
  Object.defineProperty(exports, "Badge", {
25
29
  enumerable: true,
26
- get: function () { return chunkUNWXE6UB_cjs.Badge; }
30
+ get: function () { return chunk2P7Z5PVP_cjs.Badge; }
27
31
  });
28
32
  Object.defineProperty(exports, "Breadcrumb", {
29
33
  enumerable: true,
30
- get: function () { return chunkUNWXE6UB_cjs.Breadcrumb_exports; }
34
+ get: function () { return chunk2P7Z5PVP_cjs.Breadcrumb_exports; }
31
35
  });
32
36
  Object.defineProperty(exports, "Button", {
33
37
  enumerable: true,
34
- get: function () { return chunkUNWXE6UB_cjs.Button; }
38
+ get: function () { return chunk2P7Z5PVP_cjs.Button; }
35
39
  });
36
40
  Object.defineProperty(exports, "ButtonGroup", {
37
41
  enumerable: true,
38
- get: function () { return chunkUNWXE6UB_cjs.ButtonGroup; }
42
+ get: function () { return chunk2P7Z5PVP_cjs.ButtonGroup; }
39
43
  });
40
44
  Object.defineProperty(exports, "Card", {
41
45
  enumerable: true,
42
- get: function () { return chunkUNWXE6UB_cjs.Card_exports; }
46
+ get: function () { return chunk2P7Z5PVP_cjs.Card_exports; }
43
47
  });
44
48
  Object.defineProperty(exports, "Checkbox", {
45
49
  enumerable: true,
46
- get: function () { return chunkUNWXE6UB_cjs.Checkbox_exports; }
50
+ get: function () { return chunk2P7Z5PVP_cjs.Checkbox_exports; }
51
+ });
52
+ Object.defineProperty(exports, "ChevronUpIcon", {
53
+ enumerable: true,
54
+ get: function () { return chunk2P7Z5PVP_cjs.ChevronUpIcon; }
47
55
  });
48
56
  Object.defineProperty(exports, "ClockIcon", {
49
57
  enumerable: true,
50
- get: function () { return chunkUNWXE6UB_cjs.ClockIcon; }
58
+ get: function () { return chunk2P7Z5PVP_cjs.ClockIcon; }
51
59
  });
52
60
  Object.defineProperty(exports, "CloseButton", {
53
61
  enumerable: true,
54
- get: function () { return chunkUNWXE6UB_cjs.CloseButton_exports; }
62
+ get: function () { return chunk2P7Z5PVP_cjs.CloseButton_exports; }
63
+ });
64
+ Object.defineProperty(exports, "ContentCard", {
65
+ enumerable: true,
66
+ get: function () { return chunk2P7Z5PVP_cjs.ContentCard_exports; }
67
+ });
68
+ Object.defineProperty(exports, "DashboardIcon", {
69
+ enumerable: true,
70
+ get: function () { return chunk2P7Z5PVP_cjs.DashboardIcon; }
55
71
  });
56
72
  Object.defineProperty(exports, "Dialog", {
57
73
  enumerable: true,
58
- get: function () { return chunkUNWXE6UB_cjs.Dialog_exports; }
74
+ get: function () { return chunk2P7Z5PVP_cjs.Dialog_exports; }
75
+ });
76
+ Object.defineProperty(exports, "DiscourserLogo", {
77
+ enumerable: true,
78
+ get: function () { return chunk2P7Z5PVP_cjs.DiscourserLogo; }
59
79
  });
60
80
  Object.defineProperty(exports, "Drawer", {
61
81
  enumerable: true,
62
- get: function () { return chunkUNWXE6UB_cjs.Drawer_exports; }
82
+ get: function () { return chunk2P7Z5PVP_cjs.Drawer_exports; }
63
83
  });
64
84
  Object.defineProperty(exports, "GripDotsVerticalIcon", {
65
85
  enumerable: true,
66
- get: function () { return chunkUNWXE6UB_cjs.GripDotsVerticalIcon; }
86
+ get: function () { return chunk2P7Z5PVP_cjs.GripDotsVerticalIcon; }
67
87
  });
68
88
  Object.defineProperty(exports, "Group", {
69
89
  enumerable: true,
70
- get: function () { return chunkUNWXE6UB_cjs.Group_exports; }
90
+ get: function () { return chunk2P7Z5PVP_cjs.Group_exports; }
91
+ });
92
+ Object.defineProperty(exports, "Header", {
93
+ enumerable: true,
94
+ get: function () { return chunk2P7Z5PVP_cjs.Header; }
71
95
  });
72
- Object.defineProperty(exports, "Heading", {
96
+ Object.defineProperty(exports, "HelpIcon", {
73
97
  enumerable: true,
74
- get: function () { return chunkUNWXE6UB_cjs.Heading; }
98
+ get: function () { return chunk2P7Z5PVP_cjs.HelpIcon; }
75
99
  });
76
100
  Object.defineProperty(exports, "Icon", {
77
101
  enumerable: true,
78
- get: function () { return chunkUNWXE6UB_cjs.Icon_exports; }
102
+ get: function () { return chunk2P7Z5PVP_cjs.Icon_exports; }
79
103
  });
80
104
  Object.defineProperty(exports, "IconButton", {
81
105
  enumerable: true,
82
- get: function () { return chunkUNWXE6UB_cjs.IconButton; }
106
+ get: function () { return chunk2P7Z5PVP_cjs.IconButton; }
83
107
  });
84
108
  Object.defineProperty(exports, "Input", {
85
109
  enumerable: true,
86
- get: function () { return chunkUNWXE6UB_cjs.Input; }
110
+ get: function () { return chunk2P7Z5PVP_cjs.Input; }
87
111
  });
88
112
  Object.defineProperty(exports, "InputAddon", {
89
113
  enumerable: true,
90
- get: function () { return chunkUNWXE6UB_cjs.InputAddon; }
114
+ get: function () { return chunk2P7Z5PVP_cjs.InputAddon; }
91
115
  });
92
116
  Object.defineProperty(exports, "InputGroup", {
93
117
  enumerable: true,
94
- get: function () { return chunkUNWXE6UB_cjs.InputGroup; }
118
+ get: function () { return chunk2P7Z5PVP_cjs.InputGroup; }
119
+ });
120
+ Object.defineProperty(exports, "NavigationMenu", {
121
+ enumerable: true,
122
+ get: function () { return chunk2P7Z5PVP_cjs.NavigationMenu; }
123
+ });
124
+ Object.defineProperty(exports, "NotebookIcon", {
125
+ enumerable: true,
126
+ get: function () { return chunk2P7Z5PVP_cjs.NotebookIcon; }
95
127
  });
96
128
  Object.defineProperty(exports, "Popover", {
97
129
  enumerable: true,
98
- get: function () { return chunkUNWXE6UB_cjs.Popover_exports; }
130
+ get: function () { return chunk2P7Z5PVP_cjs.Popover_exports; }
99
131
  });
100
132
  Object.defineProperty(exports, "Progress", {
101
133
  enumerable: true,
102
- get: function () { return chunkUNWXE6UB_cjs.Progress_exports; }
134
+ get: function () { return chunk2P7Z5PVP_cjs.Progress_exports; }
103
135
  });
104
136
  Object.defineProperty(exports, "RadioGroup", {
105
137
  enumerable: true,
106
- get: function () { return chunkUNWXE6UB_cjs.RadioGroup_exports; }
138
+ get: function () { return chunk2P7Z5PVP_cjs.RadioGroup_exports; }
139
+ });
140
+ Object.defineProperty(exports, "RightArrowIcon", {
141
+ enumerable: true,
142
+ get: function () { return chunk2P7Z5PVP_cjs.RightArrowIcon; }
107
143
  });
108
144
  Object.defineProperty(exports, "ScenarioCard", {
109
145
  enumerable: true,
110
- get: function () { return chunkUNWXE6UB_cjs.ScenarioCard; }
146
+ get: function () { return chunk2P7Z5PVP_cjs.ScenarioCard; }
147
+ });
148
+ Object.defineProperty(exports, "ScenarioIcon", {
149
+ enumerable: true,
150
+ get: function () { return chunk2P7Z5PVP_cjs.ScenarioIcon; }
111
151
  });
112
152
  Object.defineProperty(exports, "ScenarioQueue", {
113
153
  enumerable: true,
114
- get: function () { return chunkUNWXE6UB_cjs.ScenarioQueue; }
154
+ get: function () { return chunk2P7Z5PVP_cjs.ScenarioQueue; }
155
+ });
156
+ Object.defineProperty(exports, "ScenarioSettings", {
157
+ enumerable: true,
158
+ get: function () { return chunk2P7Z5PVP_cjs.ScenarioSettings; }
115
159
  });
116
160
  Object.defineProperty(exports, "Select", {
117
161
  enumerable: true,
118
- get: function () { return chunkUNWXE6UB_cjs.Select_exports; }
162
+ get: function () { return chunk2P7Z5PVP_cjs.Select_exports; }
119
163
  });
120
164
  Object.defineProperty(exports, "Skeleton", {
121
165
  enumerable: true,
122
- get: function () { return chunkUNWXE6UB_cjs.Skeleton_exports; }
166
+ get: function () { return chunk2P7Z5PVP_cjs.Skeleton_exports; }
123
167
  });
124
168
  Object.defineProperty(exports, "Slider", {
125
169
  enumerable: true,
126
- get: function () { return chunkUNWXE6UB_cjs.Slider_exports; }
170
+ get: function () { return chunk2P7Z5PVP_cjs.Slider_exports; }
127
171
  });
128
172
  Object.defineProperty(exports, "Spinner", {
129
173
  enumerable: true,
130
- get: function () { return chunkUNWXE6UB_cjs.Spinner; }
174
+ get: function () { return chunk2P7Z5PVP_cjs.Spinner; }
131
175
  });
132
176
  Object.defineProperty(exports, "Stepper", {
133
177
  enumerable: true,
134
- get: function () { return chunkUNWXE6UB_cjs.Stepper; }
178
+ get: function () { return chunk2P7Z5PVP_cjs.Stepper; }
135
179
  });
136
180
  Object.defineProperty(exports, "Switch", {
137
181
  enumerable: true,
138
- get: function () { return chunkUNWXE6UB_cjs.Switch_exports; }
182
+ get: function () { return chunk2P7Z5PVP_cjs.Switch_exports; }
139
183
  });
140
184
  Object.defineProperty(exports, "Tabs", {
141
185
  enumerable: true,
142
- get: function () { return chunkUNWXE6UB_cjs.Tabs_exports; }
186
+ get: function () { return chunk2P7Z5PVP_cjs.Tabs_exports; }
143
187
  });
144
188
  Object.defineProperty(exports, "Textarea", {
145
189
  enumerable: true,
146
- get: function () { return chunkUNWXE6UB_cjs.Textarea; }
190
+ get: function () { return chunk2P7Z5PVP_cjs.Textarea; }
147
191
  });
148
192
  Object.defineProperty(exports, "Toaster", {
149
193
  enumerable: true,
150
- get: function () { return chunkUNWXE6UB_cjs.Toaster; }
194
+ get: function () { return chunk2P7Z5PVP_cjs.Toaster; }
151
195
  });
152
196
  Object.defineProperty(exports, "Tooltip", {
153
197
  enumerable: true,
154
- get: function () { return chunkUNWXE6UB_cjs.Tooltip_exports; }
198
+ get: function () { return chunk2P7Z5PVP_cjs.Tooltip_exports; }
155
199
  });
156
200
  Object.defineProperty(exports, "difficultyColorMap", {
157
201
  enumerable: true,
158
- get: function () { return chunkUNWXE6UB_cjs.difficultyColorMap; }
202
+ get: function () { return chunk2P7Z5PVP_cjs.difficultyColorMap; }
159
203
  });
160
204
  Object.defineProperty(exports, "difficultyLabel", {
161
205
  enumerable: true,
162
- get: function () { return chunkUNWXE6UB_cjs.difficultyLabel; }
206
+ get: function () { return chunk2P7Z5PVP_cjs.difficultyLabel; }
163
207
  });
164
208
  Object.defineProperty(exports, "toaster", {
165
209
  enumerable: true,
166
- get: function () { return chunkUNWXE6UB_cjs.toaster; }
210
+ get: function () { return chunk2P7Z5PVP_cjs.toaster; }
167
211
  });
168
212
  //# sourceMappingURL=index.cjs.map
169
213
  //# sourceMappingURL=index.cjs.map
@@ -4,7 +4,7 @@ export { Input, type InputProps } from './Input';
4
4
  export { InputAddon, type InputAddonProps } from './InputAddon';
5
5
  export { InputGroup, type InputGroupProps } from './InputGroup';
6
6
  export { Textarea, type TextareaProps } from './Textarea';
7
- export { Heading, type HeadingProps } from './Heading';
7
+ export { Header, type HeadingProps } from './Header';
8
8
  export { Badge, type BadgeProps } from './Badge';
9
9
  export { Spinner, type SpinnerProps } from './Spinner';
10
10
  export { Toaster, toaster } from './Toast';
@@ -25,11 +25,22 @@ export * as Popover from './Popover';
25
25
  export * as Tooltip from './Tooltip';
26
26
  export * as CloseButton from './CloseButton';
27
27
  export * as Icon from './Icon';
28
- export { GripDotsVerticalIcon, type GripDotsVerticalIconProps } from './Icons/GripDotsVerticalIcon';
29
- export { ClockIcon, type ClockIconProps } from './Icons/ClockIcon';
30
28
  export * as AbsoluteCenter from './AbsoluteCenter';
31
29
  export * as Group from './Group';
30
+ export { GripDotsVerticalIcon, type GripDotsVerticalIconProps, } from './Icons/GripDotsVerticalIcon';
31
+ export { ClockIcon, type ClockIconProps } from './Icons/ClockIcon';
32
+ export { DashboardIcon, type DashboardIconProps } from './Icons/DashboardIcon';
33
+ export { NotebookIcon, type NotebookIconProps } from './Icons/NotebookIcon';
34
+ export { ScenarioIcon, type ScenarioIconProps } from './Icons/ScenarioIcon';
35
+ export { HelpIcon, type HelpIconProps } from './Icons/HelpIcon';
36
+ export { AccountIcon, type AccountIconProps } from './Icons/AccountIcon';
37
+ export { RightArrowIcon, type RightArrowIconProps, } from './Icons/RightArrowIcon';
38
+ export { ChevronUpIcon, type ChevronUpIconProps } from './Icons/ChevronUpIcon';
39
+ export { DiscourserLogo, type DiscourserLogoProps } from './Icons/DiscourserLogo';
32
40
  export * as Breadcrumb from './Breadcrumb';
41
+ export * as ContentCard from './ContentCard';
33
42
  export { Stepper, type StepperRootProps, type StepItem } from './Stepper';
43
+ export { NavigationMenu, type NavigationMenuProps, type NavSection, type NavItem, } from './NavigationMenu';
44
+ export { ScenarioSettings, type ScenarioSettingsProps, type AdjustableSectionId, type RadioSectionId, type SectionId, type DurationValue, type QuestionCountValue, } from './ScenarioSettings';
34
45
  export { ScenarioQueue, ScenarioCard, AddScenarioDialog, difficultyColorMap, difficultyLabel, type ScenarioQueueProps, type ScenarioCardProps, type Scenario, type Difficulty, type ScenarioStatus, } from './ScenarioQueue';
35
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGvD,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,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GlF,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAG1E,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,OAAO,GACb,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,KAAK,cAAc,GACpB,MAAM,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
- export { AbsoluteCenter_exports as AbsoluteCenter, Accordion_exports as Accordion, AddScenarioDialog, Avatar_exports as Avatar, Badge, Breadcrumb_exports as Breadcrumb, Button, ButtonGroup, Card_exports as Card, Checkbox_exports as Checkbox, ClockIcon, CloseButton_exports as CloseButton, Dialog_exports as Dialog, Drawer_exports as Drawer, GripDotsVerticalIcon, Group_exports as Group, Heading, Icon_exports as Icon, IconButton, Input, InputAddon, InputGroup, Popover_exports as Popover, Progress_exports as Progress, RadioGroup_exports as RadioGroup, ScenarioCard, ScenarioQueue, Select_exports as Select, Skeleton_exports as Skeleton, Slider_exports as Slider, Spinner, Stepper, Switch_exports as Switch, Tabs_exports as Tabs, Textarea, Toaster, Tooltip_exports as Tooltip, difficultyColorMap, difficultyLabel, toaster } from '../chunk-GD6Q2FUE.js';
1
+ export { AbsoluteCenter_exports as AbsoluteCenter, Accordion_exports as Accordion, AccountIcon, AddScenarioDialog, Avatar_exports as Avatar, Badge, Breadcrumb_exports as Breadcrumb, Button, ButtonGroup, Card_exports as Card, Checkbox_exports as Checkbox, ChevronUpIcon, ClockIcon, CloseButton_exports as CloseButton, ContentCard_exports as ContentCard, DashboardIcon, Dialog_exports as Dialog, DiscourserLogo, Drawer_exports as Drawer, GripDotsVerticalIcon, Group_exports as Group, Header, HelpIcon, Icon_exports as Icon, IconButton, Input, InputAddon, InputGroup, NavigationMenu, NotebookIcon, Popover_exports as Popover, Progress_exports as Progress, RadioGroup_exports as RadioGroup, RightArrowIcon, ScenarioCard, ScenarioIcon, ScenarioQueue, ScenarioSettings, Select_exports as Select, Skeleton_exports as Skeleton, Slider_exports as Slider, Spinner, Stepper, Switch_exports as Switch, Tabs_exports as Tabs, Textarea, Toaster, Tooltip_exports as Tooltip, difficultyColorMap, difficultyLabel, toaster } from '../chunk-QC7LGFM3.js';
2
2
  import '../chunk-WR5Z5QMQ.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,8 @@
1
+ export interface FigmaCodexConfig {
2
+ include: string[];
3
+ outputPath: string;
4
+ packageName: string;
5
+ tsconfig: string;
6
+ }
7
+ export declare function loadConfig(projectRoot?: string): FigmaCodexConfig;
8
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/figma-codex/config.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CAClB;AASD,wBAAgB,UAAU,CACxB,WAAW,GAAE,MAAsB,GAClC,gBAAgB,CAsBlB"}
@@ -0,0 +1,6 @@
1
+ import type { FC, ComponentProps } from 'react';
2
+ export type RootProps = ComponentProps<'div'>;
3
+ export declare const Root: FC<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
4
+ export declare const Header: FC<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
5
+ export declare const Body: FC<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
6
+ //# sourceMappingURL=CompoundComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompoundComponent.d.ts","sourceRoot":"","sources":["../../../../src/figma-codex/fixtures/CompoundComponent/CompoundComponent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAUhD,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAC9C,eAAO,MAAM,IAAI,uGAAgC,CAAC;AAClD,eAAO,MAAM,MAAM,uGAAiC,CAAC;AACrD,eAAO,MAAM,IAAI,uGAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Root, Header, Body, type RootProps } from './CompoundComponent';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/figma-codex/fixtures/CompoundComponent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CompoundComponent.figma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompoundComponent.figma.d.ts","sourceRoot":"","sources":["../../../src/figma-codex/fixtures/CompoundComponent.figma.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface SimpleComponentProps {
2
+ /** The display label */
3
+ label: string;
4
+ /** Optional size variant */
5
+ size?: 'sm' | 'md' | 'lg';
6
+ }
7
+ export declare const SimpleComponent: (props: SimpleComponentProps) => import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=SimpleComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleComponent.d.ts","sourceRoot":"","sources":["../../../src/figma-codex/fixtures/SimpleComponent.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,eAAO,MAAM,eAAe,GAAI,OAAO,oBAAoB,4CAE1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=SimpleComponent.figma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleComponent.figma.d.ts","sourceRoot":"","sources":["../../../src/figma-codex/fixtures/SimpleComponent.figma.tsx"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { type FigmaCodexConfig } from './config';
2
+ export interface GenerateOptions extends FigmaCodexConfig {
3
+ projectRoot?: string;
4
+ }
5
+ export declare function generate(options: GenerateOptions): void;
6
+ //# sourceMappingURL=generate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/figma-codex/generate.ts"],"names":[],"mappings":"AAMA,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,UAAU,CAAC;AA0B7D,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAyDvD"}
@@ -0,0 +1,18 @@
1
+ export declare class ParseError extends Error {
2
+ readonly filePath: string;
3
+ constructor(message: string, filePath: string);
4
+ }
5
+ export interface ParsedFigmaFile {
6
+ filePath: string;
7
+ importStyle: 'named' | 'namespace';
8
+ componentName: string;
9
+ importSource: string;
10
+ connectSubComponent?: string;
11
+ figmaUrl: string;
12
+ figmaFileKey: string;
13
+ figmaNodeId: string;
14
+ example: string;
15
+ propsMapping: Record<string, string>;
16
+ }
17
+ export declare function parseFigmaFile(content: string, filePath: string): ParsedFigmaFile;
18
+ //# sourceMappingURL=parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../src/figma-codex/parser.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAW,SAAQ,KAAK;aAGjB,QAAQ,EAAE,MAAM;gBADhC,OAAO,EAAE,MAAM,EACC,QAAQ,EAAE,MAAM;CAKnC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,GAAG,WAAW,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AA0DD,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GACf,eAAe,CAuDjB"}
@@ -0,0 +1,5 @@
1
+ import type { ParsedFigmaFile } from './parser';
2
+ import type { FigmaCodexConfig } from './config';
3
+ import type { ComponentEntry } from './schema';
4
+ export declare function resolveComponent(parsed: ParsedFigmaFile, config: FigmaCodexConfig): ComponentEntry;
5
+ //# sourceMappingURL=resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../src/figma-codex/resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EACV,cAAc,EAGf,MAAM,UAAU,CAAC;AAoMlB,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,gBAAgB,GACvB,cAAc,CAwEhB"}
@@ -0,0 +1,60 @@
1
+ export interface FigmaCodex {
2
+ /** Schema version for forward compatibility */
3
+ version: '1.0.0';
4
+ /** Package name of the design system */
5
+ packageName: string;
6
+ /** ISO timestamp of generation */
7
+ generatedAt: string;
8
+ /** Git commit hash (if available) */
9
+ gitHash?: string;
10
+ /** Source Figma file(s) referenced */
11
+ figmaFiles: Record<string, {
12
+ fileKey: string;
13
+ fileName?: string;
14
+ }>;
15
+ /** The component registry */
16
+ components: Record<string, ComponentEntry>;
17
+ }
18
+ export interface ComponentEntry {
19
+ /** Human-readable component name */
20
+ name: string;
21
+ /** Component type classification */
22
+ type: 'simple' | 'compound' | 'composite';
23
+ /** Figma reference */
24
+ figma: {
25
+ fileKey: string;
26
+ nodeId: string;
27
+ nodeName?: string;
28
+ url: string;
29
+ };
30
+ /** Import information */
31
+ imports: {
32
+ /** Primary import statement */
33
+ primary: string;
34
+ /** Named exports available */
35
+ namedExports: string[];
36
+ /** Package subpath, e.g. '@discourser/design-system/Breadcrumb' */
37
+ subpath?: string;
38
+ };
39
+ /** Prop interface (extracted from TypeScript source) */
40
+ props: PropDefinition[];
41
+ /** Sub-components for compound components */
42
+ subComponents?: SubComponentEntry[];
43
+ /** Example JSX from .figma.tsx */
44
+ example: string;
45
+ /** Source file path relative to project root */
46
+ sourcePath: string;
47
+ }
48
+ export interface PropDefinition {
49
+ name: string;
50
+ type: string;
51
+ required: boolean;
52
+ description?: string;
53
+ defaultValue?: string;
54
+ }
55
+ export interface SubComponentEntry {
56
+ name: string;
57
+ element: string;
58
+ description?: string;
59
+ }
60
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,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C7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,8 @@
1
+ import type { ComponentEntry } from './schema';
2
+ interface WriteOptions {
3
+ packageName: string;
4
+ outputPath: string;
5
+ }
6
+ export declare function writeManifest(components: Record<string, ComponentEntry>, options: WriteOptions, projectRoot: string): void;
7
+ export {};
8
+ //# sourceMappingURL=writer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/figma-codex/writer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,UAAU,CAAC;AAE3D,UAAU,YAAY;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAeD,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,EAC1C,OAAO,EAAE,YAAY,EACrB,WAAW,EAAE,MAAM,GAClB,IAAI,CA0BN"}