@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
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPFWU7QSM_cjs = require('./chunk-PFWU7QSM.cjs');
|
|
4
|
+
var chunk2P7Z5PVP_cjs = require('./chunk-2P7Z5PVP.cjs');
|
|
5
5
|
require('./chunk-EARF7VDF.cjs');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
|
|
@@ -11,175 +11,219 @@ function cn(...inputs) {
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "activeLanguage", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkPFWU7QSM_cjs.material3Language; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "discourserPandaPreset", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkPFWU7QSM_cjs.discourserPandaPreset; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "transformToPandaTheme", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkPFWU7QSM_cjs.transformToPandaTheme; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "AbsoluteCenter", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2P7Z5PVP_cjs.AbsoluteCenter_exports; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "Accordion", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk2P7Z5PVP_cjs.Accordion_exports; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "AccountIcon", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunk2P7Z5PVP_cjs.AccountIcon; }
|
|
31
35
|
});
|
|
32
36
|
Object.defineProperty(exports, "AddScenarioDialog", {
|
|
33
37
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk2P7Z5PVP_cjs.AddScenarioDialog; }
|
|
35
39
|
});
|
|
36
40
|
Object.defineProperty(exports, "Avatar", {
|
|
37
41
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk2P7Z5PVP_cjs.Avatar_exports; }
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "Badge", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk2P7Z5PVP_cjs.Badge; }
|
|
43
47
|
});
|
|
44
48
|
Object.defineProperty(exports, "Breadcrumb", {
|
|
45
49
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk2P7Z5PVP_cjs.Breadcrumb_exports; }
|
|
47
51
|
});
|
|
48
52
|
Object.defineProperty(exports, "Button", {
|
|
49
53
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk2P7Z5PVP_cjs.Button; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "ButtonGroup", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk2P7Z5PVP_cjs.ButtonGroup; }
|
|
55
59
|
});
|
|
56
60
|
Object.defineProperty(exports, "Card", {
|
|
57
61
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2P7Z5PVP_cjs.Card_exports; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "Checkbox", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2P7Z5PVP_cjs.Checkbox_exports; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "ChevronUpIcon", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunk2P7Z5PVP_cjs.ChevronUpIcon; }
|
|
63
71
|
});
|
|
64
72
|
Object.defineProperty(exports, "ClockIcon", {
|
|
65
73
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2P7Z5PVP_cjs.ClockIcon; }
|
|
67
75
|
});
|
|
68
76
|
Object.defineProperty(exports, "CloseButton", {
|
|
69
77
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2P7Z5PVP_cjs.CloseButton_exports; }
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "ContentCard", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function () { return chunk2P7Z5PVP_cjs.ContentCard_exports; }
|
|
83
|
+
});
|
|
84
|
+
Object.defineProperty(exports, "DashboardIcon", {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: function () { return chunk2P7Z5PVP_cjs.DashboardIcon; }
|
|
71
87
|
});
|
|
72
88
|
Object.defineProperty(exports, "Dialog", {
|
|
73
89
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2P7Z5PVP_cjs.Dialog_exports; }
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "DiscourserLogo", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function () { return chunk2P7Z5PVP_cjs.DiscourserLogo; }
|
|
75
95
|
});
|
|
76
96
|
Object.defineProperty(exports, "Drawer", {
|
|
77
97
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2P7Z5PVP_cjs.Drawer_exports; }
|
|
79
99
|
});
|
|
80
100
|
Object.defineProperty(exports, "GripDotsVerticalIcon", {
|
|
81
101
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2P7Z5PVP_cjs.GripDotsVerticalIcon; }
|
|
83
103
|
});
|
|
84
104
|
Object.defineProperty(exports, "Group", {
|
|
85
105
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2P7Z5PVP_cjs.Group_exports; }
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "Header", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () { return chunk2P7Z5PVP_cjs.Header; }
|
|
87
111
|
});
|
|
88
|
-
Object.defineProperty(exports, "
|
|
112
|
+
Object.defineProperty(exports, "HelpIcon", {
|
|
89
113
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2P7Z5PVP_cjs.HelpIcon; }
|
|
91
115
|
});
|
|
92
116
|
Object.defineProperty(exports, "Icon", {
|
|
93
117
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2P7Z5PVP_cjs.Icon_exports; }
|
|
95
119
|
});
|
|
96
120
|
Object.defineProperty(exports, "IconButton", {
|
|
97
121
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2P7Z5PVP_cjs.IconButton; }
|
|
99
123
|
});
|
|
100
124
|
Object.defineProperty(exports, "Input", {
|
|
101
125
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2P7Z5PVP_cjs.Input; }
|
|
103
127
|
});
|
|
104
128
|
Object.defineProperty(exports, "InputAddon", {
|
|
105
129
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2P7Z5PVP_cjs.InputAddon; }
|
|
107
131
|
});
|
|
108
132
|
Object.defineProperty(exports, "InputGroup", {
|
|
109
133
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2P7Z5PVP_cjs.InputGroup; }
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "NavigationMenu", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function () { return chunk2P7Z5PVP_cjs.NavigationMenu; }
|
|
139
|
+
});
|
|
140
|
+
Object.defineProperty(exports, "NotebookIcon", {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: function () { return chunk2P7Z5PVP_cjs.NotebookIcon; }
|
|
111
143
|
});
|
|
112
144
|
Object.defineProperty(exports, "Popover", {
|
|
113
145
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2P7Z5PVP_cjs.Popover_exports; }
|
|
115
147
|
});
|
|
116
148
|
Object.defineProperty(exports, "Progress", {
|
|
117
149
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2P7Z5PVP_cjs.Progress_exports; }
|
|
119
151
|
});
|
|
120
152
|
Object.defineProperty(exports, "RadioGroup", {
|
|
121
153
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2P7Z5PVP_cjs.RadioGroup_exports; }
|
|
155
|
+
});
|
|
156
|
+
Object.defineProperty(exports, "RightArrowIcon", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function () { return chunk2P7Z5PVP_cjs.RightArrowIcon; }
|
|
123
159
|
});
|
|
124
160
|
Object.defineProperty(exports, "ScenarioCard", {
|
|
125
161
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
162
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioCard; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "ScenarioIcon", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioIcon; }
|
|
127
167
|
});
|
|
128
168
|
Object.defineProperty(exports, "ScenarioQueue", {
|
|
129
169
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
170
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioQueue; }
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "ScenarioSettings", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioSettings; }
|
|
131
175
|
});
|
|
132
176
|
Object.defineProperty(exports, "Select", {
|
|
133
177
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk2P7Z5PVP_cjs.Select_exports; }
|
|
135
179
|
});
|
|
136
180
|
Object.defineProperty(exports, "Skeleton", {
|
|
137
181
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk2P7Z5PVP_cjs.Skeleton_exports; }
|
|
139
183
|
});
|
|
140
184
|
Object.defineProperty(exports, "Slider", {
|
|
141
185
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk2P7Z5PVP_cjs.Slider_exports; }
|
|
143
187
|
});
|
|
144
188
|
Object.defineProperty(exports, "Spinner", {
|
|
145
189
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk2P7Z5PVP_cjs.Spinner; }
|
|
147
191
|
});
|
|
148
192
|
Object.defineProperty(exports, "Stepper", {
|
|
149
193
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk2P7Z5PVP_cjs.Stepper; }
|
|
151
195
|
});
|
|
152
196
|
Object.defineProperty(exports, "Switch", {
|
|
153
197
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk2P7Z5PVP_cjs.Switch_exports; }
|
|
155
199
|
});
|
|
156
200
|
Object.defineProperty(exports, "Tabs", {
|
|
157
201
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk2P7Z5PVP_cjs.Tabs_exports; }
|
|
159
203
|
});
|
|
160
204
|
Object.defineProperty(exports, "Textarea", {
|
|
161
205
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk2P7Z5PVP_cjs.Textarea; }
|
|
163
207
|
});
|
|
164
208
|
Object.defineProperty(exports, "Toaster", {
|
|
165
209
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk2P7Z5PVP_cjs.Toaster; }
|
|
167
211
|
});
|
|
168
212
|
Object.defineProperty(exports, "Tooltip", {
|
|
169
213
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk2P7Z5PVP_cjs.Tooltip_exports; }
|
|
171
215
|
});
|
|
172
216
|
Object.defineProperty(exports, "difficultyColorMap", {
|
|
173
217
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunk2P7Z5PVP_cjs.difficultyColorMap; }
|
|
175
219
|
});
|
|
176
220
|
Object.defineProperty(exports, "difficultyLabel", {
|
|
177
221
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunk2P7Z5PVP_cjs.difficultyLabel; }
|
|
179
223
|
});
|
|
180
224
|
Object.defineProperty(exports, "toaster", {
|
|
181
225
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk2P7Z5PVP_cjs.toaster; }
|
|
183
227
|
});
|
|
184
228
|
exports.cn = cn;
|
|
185
229
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { material3Language as activeLanguage, discourserPandaPreset, transformToPandaTheme } from './chunk-
|
|
2
|
-
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,
|
|
1
|
+
export { material3Language as activeLanguage, discourserPandaPreset, transformToPandaTheme } from './chunk-SNUJBT5R.js';
|
|
2
|
+
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';
|
|
3
3
|
import './chunk-WR5Z5QMQ.js';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
|
package/dist/preset/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPFWU7QSM_cjs = require('../chunk-PFWU7QSM.cjs');
|
|
4
4
|
require('../chunk-EARF7VDF.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "discourserPandaPreset", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkPFWU7QSM_cjs.discourserPandaPreset; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
13
13
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preset/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/preset/index.ts"],"names":[],"mappings":"AA8DA,eAAO,MAAM,qBAAqB,gCAkJhC,CAAC"}
|
package/dist/preset/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/accordion.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/accordion.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,0CA2FpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/breadcrumb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/breadcrumb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,0CA0GrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-card.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/content-card.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,0CAyHtB,CAAC"}
|
|
@@ -8,6 +8,7 @@ export * from './accordion';
|
|
|
8
8
|
export * from './drawer';
|
|
9
9
|
export * from './tabs';
|
|
10
10
|
export * from './breadcrumb';
|
|
11
|
+
export * from './navigation-menu';
|
|
11
12
|
export * from './switch';
|
|
12
13
|
export * from './checkbox';
|
|
13
14
|
export * from './radio-group';
|
|
@@ -26,6 +27,9 @@ export * from './tooltip';
|
|
|
26
27
|
export * from './heading';
|
|
27
28
|
export * from './absolute-center';
|
|
28
29
|
export * from './group';
|
|
30
|
+
export * from './stepper';
|
|
31
|
+
export * from './content-card';
|
|
29
32
|
export * from './scenario-card';
|
|
30
33
|
export * from './scenario-queue';
|
|
34
|
+
export * from './scenario-settings';
|
|
31
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAGvB,cAAc,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAGvB,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AAGxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAG1B,cAAc,WAAW,CAAC;AAG1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/navigation-menu.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,0CA8FzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-settings.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/scenario-settings.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,0CAmL3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discourser/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Aesthetic-agnostic design system with Panda CSS and Ark UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -150,13 +150,29 @@
|
|
|
150
150
|
"types": "./src/components/Stepper/index.ts",
|
|
151
151
|
"import": "./src/components/Stepper/index.ts"
|
|
152
152
|
},
|
|
153
|
+
"./NavigationMenu": {
|
|
154
|
+
"types": "./src/components/NavigationMenu/index.ts",
|
|
155
|
+
"import": "./src/components/NavigationMenu/index.ts"
|
|
156
|
+
},
|
|
153
157
|
"./ScenarioQueue": {
|
|
154
158
|
"types": "./src/components/ScenarioQueue/index.ts",
|
|
155
159
|
"import": "./src/components/ScenarioQueue/index.ts"
|
|
156
160
|
},
|
|
161
|
+
"./ScenarioSettings": {
|
|
162
|
+
"types": "./src/components/ScenarioSettings/index.ts",
|
|
163
|
+
"import": "./src/components/ScenarioSettings/index.ts"
|
|
164
|
+
},
|
|
157
165
|
"./Breadcrumb": {
|
|
158
166
|
"types": "./src/components/Breadcrumb.tsx",
|
|
159
167
|
"import": "./src/components/Breadcrumb.tsx"
|
|
168
|
+
},
|
|
169
|
+
"./ContentCard": {
|
|
170
|
+
"types": "./src/components/ContentCard/index.ts",
|
|
171
|
+
"import": "./src/components/ContentCard/index.ts"
|
|
172
|
+
},
|
|
173
|
+
"./figma-codex": {
|
|
174
|
+
"import": "./dist/figma-codex.json",
|
|
175
|
+
"require": "./dist/figma-codex.json"
|
|
160
176
|
}
|
|
161
177
|
},
|
|
162
178
|
"files": [
|
|
@@ -165,7 +181,7 @@
|
|
|
165
181
|
],
|
|
166
182
|
"scripts": {
|
|
167
183
|
"dev": "pnpm docs:generate && storybook dev -p 6006",
|
|
168
|
-
"build": "pnpm build:panda && pnpm typecheck && pnpm build:lib && pnpm build:types",
|
|
184
|
+
"build": "pnpm build:panda && pnpm typecheck && pnpm build:lib && pnpm build:types && pnpm codex:generate",
|
|
169
185
|
"build:panda": "panda codegen",
|
|
170
186
|
"build:css": "panda cssgen --outfile dist/styles.css",
|
|
171
187
|
"build:lib": "tsup",
|
|
@@ -190,6 +206,10 @@
|
|
|
190
206
|
"verify:lint": "pnpm lint",
|
|
191
207
|
"verify:test": "pnpm test run",
|
|
192
208
|
"verify:build": "pnpm build",
|
|
209
|
+
"codex:generate": "tsx src/figma-codex/generate.ts",
|
|
210
|
+
"codex:watch": "tsx --watch src/figma-codex/generate.ts",
|
|
211
|
+
"figma:connect": "figma connect publish",
|
|
212
|
+
"figma:connect:dry": "figma connect publish --dry-run",
|
|
193
213
|
"changeset": "changeset",
|
|
194
214
|
"version": "changeset version",
|
|
195
215
|
"ci:version": "pnpm exec changeset version",
|
|
@@ -209,6 +229,7 @@
|
|
|
209
229
|
"@changesets/changelog-github": "^0.5.2",
|
|
210
230
|
"@changesets/cli": "^2.29.8",
|
|
211
231
|
"@eslint/js": "^9.39.2",
|
|
232
|
+
"@figma/code-connect": "^1.4.1",
|
|
212
233
|
"@material/material-color-utilities": "^0.3.0",
|
|
213
234
|
"@pandacss/dev": "^1.8.1",
|
|
214
235
|
"@storybook/addon-a11y": "^10.2.8",
|
|
@@ -267,6 +288,9 @@
|
|
|
267
288
|
],
|
|
268
289
|
"*.{json,md}": [
|
|
269
290
|
"prettier --write"
|
|
291
|
+
],
|
|
292
|
+
"*.figma.tsx": [
|
|
293
|
+
"tsx src/figma-codex/generate.ts"
|
|
270
294
|
]
|
|
271
295
|
}
|
|
272
296
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import * as Accordion from './Accordion';
|
|
3
|
+
|
|
4
|
+
figma.connect(
|
|
5
|
+
Accordion.Root,
|
|
6
|
+
'https://www.figma.com/design/GaHmFfmvO4loUzuZS4TgEz/Discourser.AI--V1?node-id=38-8232',
|
|
7
|
+
{
|
|
8
|
+
example: () => (
|
|
9
|
+
<Accordion.Root collapsible>
|
|
10
|
+
<Accordion.Item value="item-1">
|
|
11
|
+
<Accordion.ItemTrigger>
|
|
12
|
+
<span>Trigger</span>
|
|
13
|
+
<Accordion.ItemIndicator />
|
|
14
|
+
</Accordion.ItemTrigger>
|
|
15
|
+
<Accordion.ItemContent>Content</Accordion.ItemContent>
|
|
16
|
+
</Accordion.Item>
|
|
17
|
+
</Accordion.Root>
|
|
18
|
+
),
|
|
19
|
+
},
|
|
20
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import figma from '@figma/code-connect'
|
|
2
|
+
import * as Breadcrumb from './Breadcrumb'
|
|
3
|
+
|
|
4
|
+
figma.connect(Breadcrumb.Root, 'https://www.figma.com/design/GaHmFfmvO4loUzuZS4TgEz/Discourser.AI--V1?node-id=38-7978', {
|
|
5
|
+
example: () => (
|
|
6
|
+
<Breadcrumb.Root>
|
|
7
|
+
<Breadcrumb.List>
|
|
8
|
+
<Breadcrumb.Item>
|
|
9
|
+
<Breadcrumb.Link href="#">Home</Breadcrumb.Link>
|
|
10
|
+
</Breadcrumb.Item>
|
|
11
|
+
<Breadcrumb.Separator />
|
|
12
|
+
<Breadcrumb.Item>
|
|
13
|
+
<Breadcrumb.CurrentLink>Current</Breadcrumb.CurrentLink>
|
|
14
|
+
</Breadcrumb.Item>
|
|
15
|
+
</Breadcrumb.List>
|
|
16
|
+
</Breadcrumb.Root>
|
|
17
|
+
),
|
|
18
|
+
})
|
|
@@ -1,34 +1,52 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { ark } from '@ark-ui/react/factory'
|
|
3
|
-
import type { ComponentProps } from 'react'
|
|
4
|
-
import { createStyleContext } from 'styled-system/jsx'
|
|
5
|
-
import { breadcrumb } from 'styled-system/recipes'
|
|
1
|
+
'use client';
|
|
2
|
+
import { ark } from '@ark-ui/react/factory';
|
|
3
|
+
import type { ComponentProps } from 'react';
|
|
4
|
+
import { createStyleContext } from 'styled-system/jsx';
|
|
5
|
+
import { breadcrumb } from 'styled-system/recipes';
|
|
6
6
|
|
|
7
7
|
const ChevronRightIcon = () => (
|
|
8
|
-
<svg
|
|
8
|
+
<svg
|
|
9
|
+
width="16"
|
|
10
|
+
height="16"
|
|
11
|
+
viewBox="0 0 24 24"
|
|
12
|
+
fill="none"
|
|
13
|
+
stroke="currentColor"
|
|
14
|
+
strokeWidth="2"
|
|
15
|
+
strokeLinecap="round"
|
|
16
|
+
strokeLinejoin="round"
|
|
17
|
+
>
|
|
9
18
|
<path d="m9 18 6-6-6-6"></path>
|
|
10
19
|
</svg>
|
|
11
|
-
)
|
|
20
|
+
);
|
|
12
21
|
|
|
13
|
-
const { withProvider, withContext } = createStyleContext(breadcrumb)
|
|
22
|
+
const { withProvider, withContext } = createStyleContext(breadcrumb);
|
|
14
23
|
|
|
15
|
-
export type RootProps = ComponentProps<typeof Root
|
|
24
|
+
export type RootProps = ComponentProps<typeof Root>;
|
|
16
25
|
|
|
17
|
-
export const Root = withProvider(ark.nav, 'root', {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export const
|
|
26
|
+
export const Root = withProvider(ark.nav, 'root', {
|
|
27
|
+
defaultProps: { 'aria-label': 'breadcrumb' },
|
|
28
|
+
});
|
|
29
|
+
export const List = withContext(ark.ol, 'list');
|
|
30
|
+
export const Item = withContext(ark.li, 'item');
|
|
31
|
+
export const Link = withContext(ark.a, 'link');
|
|
21
32
|
export const Ellipsis = withContext(ark.li, 'ellipsis', {
|
|
22
33
|
defaultProps: {
|
|
23
34
|
role: 'presentation',
|
|
24
35
|
'aria-hidden': true,
|
|
25
36
|
children: '...',
|
|
26
37
|
},
|
|
27
|
-
})
|
|
38
|
+
});
|
|
28
39
|
|
|
29
40
|
export const Separator = withContext(ark.li, 'separator', {
|
|
30
41
|
defaultProps: {
|
|
31
42
|
'aria-hidden': true,
|
|
32
43
|
children: <ChevronRightIcon />,
|
|
33
44
|
},
|
|
34
|
-
})
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/** The current/active page crumb — renders as a span (not a link) with aria-current="page" */
|
|
48
|
+
export const CurrentLink = withContext(ark.span, 'link', {
|
|
49
|
+
defaultProps: {
|
|
50
|
+
'aria-current': 'page',
|
|
51
|
+
},
|
|
52
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import figma from '@figma/code-connect'
|
|
2
|
+
import * as ContentCard from './index'
|
|
3
|
+
|
|
4
|
+
figma.connect(ContentCard.Root, 'https://www.figma.com/design/GaHmFfmvO4loUzuZS4TgEz/Discourser.AI--V1?node-id=478-5957', {
|
|
5
|
+
example: () => (
|
|
6
|
+
<ContentCard.Root>
|
|
7
|
+
<ContentCard.Header>
|
|
8
|
+
<ContentCard.Title>Title</ContentCard.Title>
|
|
9
|
+
<ContentCard.BadgeBar>badges</ContentCard.BadgeBar>
|
|
10
|
+
</ContentCard.Header>
|
|
11
|
+
<ContentCard.Body>Content</ContentCard.Body>
|
|
12
|
+
<ContentCard.Separator />
|
|
13
|
+
<ContentCard.Section>
|
|
14
|
+
<ContentCard.SectionTitle>Section</ContentCard.SectionTitle>
|
|
15
|
+
<ContentCard.List>
|
|
16
|
+
<ContentCard.ListItem>Item</ContentCard.ListItem>
|
|
17
|
+
</ContentCard.List>
|
|
18
|
+
</ContentCard.Section>
|
|
19
|
+
</ContentCard.Root>
|
|
20
|
+
),
|
|
21
|
+
})
|