@discourser/design-system 0.15.0 → 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.
- package/dist/chunk-2P7Z5PVP.cjs +2151 -0
- package/dist/chunk-2P7Z5PVP.cjs.map +1 -0
- package/dist/{chunk-QC44JPCA.cjs → chunk-PFWU7QSM.cjs} +777 -15
- package/dist/chunk-PFWU7QSM.cjs.map +1 -0
- package/dist/chunk-QC7LGFM3.js +2099 -0
- package/dist/chunk-QC7LGFM3.js.map +1 -0
- package/dist/{chunk-M7J7WKJY.js → chunk-SNUJBT5R.js} +778 -16
- 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 +11 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb.figma.d.ts +2 -0
- package/dist/components/Breadcrumb.figma.d.ts.map +1 -0
- package/dist/components/Checkbox.d.ts +6 -6
- 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/ChevronUpIcon.d.ts +6 -0
- package/dist/components/Icons/ChevronUpIcon.d.ts.map +1 -0
- package/dist/components/Icons/ClockIcon.d.ts +6 -0
- package/dist/components/Icons/ClockIcon.d.ts.map +1 -0
- 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/GripDotsVerticalIcon.d.ts +6 -0
- package/dist/components/Icons/GripDotsVerticalIcon.d.ts.map +1 -0
- package/dist/components/Icons/HelpIcon.d.ts +6 -0
- package/dist/components/Icons/HelpIcon.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/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/index.d.ts +11 -0
- package/dist/components/Icons/index.d.ts.map +1 -0
- 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/AddScenarioDialog.d.ts +16 -0
- package/dist/components/ScenarioQueue/AddScenarioDialog.d.ts.map +1 -0
- package/dist/components/ScenarioQueue/ScenarioCard.d.ts +10 -0
- package/dist/components/ScenarioQueue/ScenarioCard.d.ts.map +1 -0
- package/dist/components/ScenarioQueue/ScenarioCardDraggable.d.ts +15 -0
- package/dist/components/ScenarioQueue/ScenarioCardDraggable.d.ts.map +1 -0
- package/dist/components/ScenarioQueue/ScenarioQueue.d.ts +3 -0
- package/dist/components/ScenarioQueue/ScenarioQueue.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/ScenarioQueue/index.d.ts +6 -0
- package/dist/components/ScenarioQueue/index.d.ts.map +1 -0
- package/dist/components/ScenarioQueue/types.d.ts +56 -0
- package/dist/components/ScenarioQueue/types.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 +110 -34
- package/dist/components/index.d.ts +16 -1
- 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 +373 -0
- package/dist/index.cjs +114 -38
- 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/avatar.d.ts.map +1 -1
- package/dist/preset/recipes/breadcrumb.d.ts +2 -0
- package/dist/preset/recipes/breadcrumb.d.ts.map +1 -0
- package/dist/preset/recipes/checkbox.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/field.d.ts.map +1 -1
- package/dist/preset/recipes/index.d.ts +7 -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/progress.d.ts.map +1 -1
- package/dist/preset/recipes/radio-group.d.ts.map +1 -1
- package/dist/preset/recipes/scenario-card.d.ts +2 -0
- package/dist/preset/recipes/scenario-card.d.ts.map +1 -0
- package/dist/preset/recipes/scenario-queue.d.ts +2 -0
- package/dist/preset/recipes/scenario-queue.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/dist/preset/recipes/steps.d.ts.map +1 -1
- package/dist/preset/recipes/toast.d.ts.map +1 -1
- package/dist/preset/recipes/tooltip.d.ts.map +1 -1
- package/dist/preset/semantic-tokens.d.ts +12 -0
- package/dist/preset/semantic-tokens.d.ts.map +1 -1
- package/package.json +35 -2
- package/src/components/Accordion.figma.tsx +20 -0
- package/src/components/Breadcrumb.figma.tsx +18 -0
- package/src/components/Breadcrumb.tsx +52 -0
- 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/ChevronUpIcon.tsx +24 -0
- package/src/components/Icons/ClockIcon.tsx +40 -0
- 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/GripDotsVerticalIcon.tsx +26 -0
- package/src/components/Icons/HelpIcon.tsx +26 -0
- package/src/components/Icons/NotebookIcon.tsx +26 -0
- package/src/components/Icons/RightArrowIcon.tsx +23 -0
- package/src/components/Icons/ScenarioIcon.tsx +26 -0
- package/src/components/Icons/index.ts +13 -0
- 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/AddScenarioDialog.tsx +137 -0
- package/src/components/ScenarioQueue/ScenarioCard.tsx +120 -0
- package/src/components/ScenarioQueue/ScenarioCardDraggable.tsx +41 -0
- package/src/components/ScenarioQueue/ScenarioQueue.figma.tsx +37 -0
- package/src/components/ScenarioQueue/ScenarioQueue.test.tsx +398 -0
- package/src/components/ScenarioQueue/ScenarioQueue.tsx +162 -0
- package/src/components/ScenarioQueue/index.ts +11 -0
- package/src/components/ScenarioQueue/types.ts +86 -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 +54 -1
- 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 +15 -0
- package/src/preset/recipes/accordion.ts +8 -5
- package/src/preset/recipes/avatar.ts +1 -2
- package/src/preset/recipes/breadcrumb.ts +109 -0
- package/src/preset/recipes/checkbox.ts +1 -2
- package/src/preset/recipes/content-card.ts +124 -0
- package/src/preset/recipes/field.ts +1 -2
- package/src/preset/recipes/index.ts +11 -0
- package/src/preset/recipes/navigation-menu.ts +97 -0
- package/src/preset/recipes/progress.ts +1 -2
- package/src/preset/recipes/radio-group.ts +1 -2
- package/src/preset/recipes/scenario-card.ts +151 -0
- package/src/preset/recipes/scenario-queue.ts +99 -0
- package/src/preset/recipes/scenario-settings.ts +182 -0
- package/src/preset/recipes/steps.ts +1 -2
- package/src/preset/recipes/toast.ts +1 -2
- package/src/preset/recipes/tooltip.ts +1 -2
- package/src/preset/semantic-tokens.ts +4 -0
- package/src/test/setup.ts +15 -0
- package/dist/chunk-F7LHARS4.js +0 -869
- package/dist/chunk-F7LHARS4.js.map +0 -1
- package/dist/chunk-M7J7WKJY.js.map +0 -1
- package/dist/chunk-QC44JPCA.cjs.map +0 -1
- package/dist/chunk-QP4EJI3G.cjs +0 -902
- package/dist/chunk-QP4EJI3G.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,143 +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; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "AddScenarioDialog", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunk2P7Z5PVP_cjs.AddScenarioDialog; }
|
|
31
39
|
});
|
|
32
40
|
Object.defineProperty(exports, "Avatar", {
|
|
33
41
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk2P7Z5PVP_cjs.Avatar_exports; }
|
|
35
43
|
});
|
|
36
44
|
Object.defineProperty(exports, "Badge", {
|
|
37
45
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk2P7Z5PVP_cjs.Badge; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "Breadcrumb", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk2P7Z5PVP_cjs.Breadcrumb_exports; }
|
|
39
51
|
});
|
|
40
52
|
Object.defineProperty(exports, "Button", {
|
|
41
53
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk2P7Z5PVP_cjs.Button; }
|
|
43
55
|
});
|
|
44
56
|
Object.defineProperty(exports, "ButtonGroup", {
|
|
45
57
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk2P7Z5PVP_cjs.ButtonGroup; }
|
|
47
59
|
});
|
|
48
60
|
Object.defineProperty(exports, "Card", {
|
|
49
61
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2P7Z5PVP_cjs.Card_exports; }
|
|
51
63
|
});
|
|
52
64
|
Object.defineProperty(exports, "Checkbox", {
|
|
53
65
|
enumerable: true,
|
|
54
|
-
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; }
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "ClockIcon", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function () { return chunk2P7Z5PVP_cjs.ClockIcon; }
|
|
55
75
|
});
|
|
56
76
|
Object.defineProperty(exports, "CloseButton", {
|
|
57
77
|
enumerable: true,
|
|
58
|
-
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; }
|
|
59
87
|
});
|
|
60
88
|
Object.defineProperty(exports, "Dialog", {
|
|
61
89
|
enumerable: true,
|
|
62
|
-
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; }
|
|
63
95
|
});
|
|
64
96
|
Object.defineProperty(exports, "Drawer", {
|
|
65
97
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2P7Z5PVP_cjs.Drawer_exports; }
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "GripDotsVerticalIcon", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function () { return chunk2P7Z5PVP_cjs.GripDotsVerticalIcon; }
|
|
67
103
|
});
|
|
68
104
|
Object.defineProperty(exports, "Group", {
|
|
69
105
|
enumerable: true,
|
|
70
|
-
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; }
|
|
71
111
|
});
|
|
72
|
-
Object.defineProperty(exports, "
|
|
112
|
+
Object.defineProperty(exports, "HelpIcon", {
|
|
73
113
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2P7Z5PVP_cjs.HelpIcon; }
|
|
75
115
|
});
|
|
76
116
|
Object.defineProperty(exports, "Icon", {
|
|
77
117
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2P7Z5PVP_cjs.Icon_exports; }
|
|
79
119
|
});
|
|
80
120
|
Object.defineProperty(exports, "IconButton", {
|
|
81
121
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2P7Z5PVP_cjs.IconButton; }
|
|
83
123
|
});
|
|
84
124
|
Object.defineProperty(exports, "Input", {
|
|
85
125
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2P7Z5PVP_cjs.Input; }
|
|
87
127
|
});
|
|
88
128
|
Object.defineProperty(exports, "InputAddon", {
|
|
89
129
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2P7Z5PVP_cjs.InputAddon; }
|
|
91
131
|
});
|
|
92
132
|
Object.defineProperty(exports, "InputGroup", {
|
|
93
133
|
enumerable: true,
|
|
94
|
-
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; }
|
|
95
143
|
});
|
|
96
144
|
Object.defineProperty(exports, "Popover", {
|
|
97
145
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2P7Z5PVP_cjs.Popover_exports; }
|
|
99
147
|
});
|
|
100
148
|
Object.defineProperty(exports, "Progress", {
|
|
101
149
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2P7Z5PVP_cjs.Progress_exports; }
|
|
103
151
|
});
|
|
104
152
|
Object.defineProperty(exports, "RadioGroup", {
|
|
105
153
|
enumerable: true,
|
|
106
|
-
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; }
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "ScenarioCard", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioCard; }
|
|
163
|
+
});
|
|
164
|
+
Object.defineProperty(exports, "ScenarioIcon", {
|
|
165
|
+
enumerable: true,
|
|
166
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioIcon; }
|
|
167
|
+
});
|
|
168
|
+
Object.defineProperty(exports, "ScenarioQueue", {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioQueue; }
|
|
171
|
+
});
|
|
172
|
+
Object.defineProperty(exports, "ScenarioSettings", {
|
|
173
|
+
enumerable: true,
|
|
174
|
+
get: function () { return chunk2P7Z5PVP_cjs.ScenarioSettings; }
|
|
107
175
|
});
|
|
108
176
|
Object.defineProperty(exports, "Select", {
|
|
109
177
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
178
|
+
get: function () { return chunk2P7Z5PVP_cjs.Select_exports; }
|
|
111
179
|
});
|
|
112
180
|
Object.defineProperty(exports, "Skeleton", {
|
|
113
181
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
182
|
+
get: function () { return chunk2P7Z5PVP_cjs.Skeleton_exports; }
|
|
115
183
|
});
|
|
116
184
|
Object.defineProperty(exports, "Slider", {
|
|
117
185
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
186
|
+
get: function () { return chunk2P7Z5PVP_cjs.Slider_exports; }
|
|
119
187
|
});
|
|
120
188
|
Object.defineProperty(exports, "Spinner", {
|
|
121
189
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
190
|
+
get: function () { return chunk2P7Z5PVP_cjs.Spinner; }
|
|
123
191
|
});
|
|
124
192
|
Object.defineProperty(exports, "Stepper", {
|
|
125
193
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
194
|
+
get: function () { return chunk2P7Z5PVP_cjs.Stepper; }
|
|
127
195
|
});
|
|
128
196
|
Object.defineProperty(exports, "Switch", {
|
|
129
197
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
198
|
+
get: function () { return chunk2P7Z5PVP_cjs.Switch_exports; }
|
|
131
199
|
});
|
|
132
200
|
Object.defineProperty(exports, "Tabs", {
|
|
133
201
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunk2P7Z5PVP_cjs.Tabs_exports; }
|
|
135
203
|
});
|
|
136
204
|
Object.defineProperty(exports, "Textarea", {
|
|
137
205
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunk2P7Z5PVP_cjs.Textarea; }
|
|
139
207
|
});
|
|
140
208
|
Object.defineProperty(exports, "Toaster", {
|
|
141
209
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunk2P7Z5PVP_cjs.Toaster; }
|
|
143
211
|
});
|
|
144
212
|
Object.defineProperty(exports, "Tooltip", {
|
|
145
213
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunk2P7Z5PVP_cjs.Tooltip_exports; }
|
|
215
|
+
});
|
|
216
|
+
Object.defineProperty(exports, "difficultyColorMap", {
|
|
217
|
+
enumerable: true,
|
|
218
|
+
get: function () { return chunk2P7Z5PVP_cjs.difficultyColorMap; }
|
|
219
|
+
});
|
|
220
|
+
Object.defineProperty(exports, "difficultyLabel", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
get: function () { return chunk2P7Z5PVP_cjs.difficultyLabel; }
|
|
147
223
|
});
|
|
148
224
|
Object.defineProperty(exports, "toaster", {
|
|
149
225
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunk2P7Z5PVP_cjs.toaster; }
|
|
151
227
|
});
|
|
152
228
|
exports.cn = cn;
|
|
153
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, Avatar_exports as Avatar, Badge, Button, ButtonGroup, Card_exports as Card, Checkbox_exports as Checkbox, CloseButton_exports as CloseButton, Dialog_exports as Dialog, Drawer_exports as Drawer, 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":"avatar.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/avatar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/avatar.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,0CAoJjB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/breadcrumb.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,0CA0GrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/checkbox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/checkbox.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,0CAyGnB,CAAA"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/field.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/field.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,0CAoChB,CAAA"}
|
|
@@ -7,6 +7,8 @@ export * from './card';
|
|
|
7
7
|
export * from './accordion';
|
|
8
8
|
export * from './drawer';
|
|
9
9
|
export * from './tabs';
|
|
10
|
+
export * from './breadcrumb';
|
|
11
|
+
export * from './navigation-menu';
|
|
10
12
|
export * from './switch';
|
|
11
13
|
export * from './checkbox';
|
|
12
14
|
export * from './radio-group';
|
|
@@ -25,4 +27,9 @@ export * from './tooltip';
|
|
|
25
27
|
export * from './heading';
|
|
26
28
|
export * from './absolute-center';
|
|
27
29
|
export * from './group';
|
|
30
|
+
export * from './stepper';
|
|
31
|
+
export * from './content-card';
|
|
32
|
+
export * from './scenario-card';
|
|
33
|
+
export * from './scenario-queue';
|
|
34
|
+
export * from './scenario-settings';
|
|
28
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,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"}
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/progress.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/progress.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,0CAoHnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/radio-group.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/radio-group.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,0CAgGrB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-card.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/scenario-card.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,0CAoJvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scenario-queue.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/scenario-queue.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,0CAgGxB,CAAA"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/steps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/steps.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,0CAIhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/toast.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/toast.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,0CA+ChB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/tooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/preset/recipes/tooltip.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,0CAkClB,CAAA"}
|
|
@@ -187,6 +187,18 @@ export declare const m3SemanticTokens: {
|
|
|
187
187
|
_dark: string;
|
|
188
188
|
};
|
|
189
189
|
};
|
|
190
|
+
inverseSecondary: {
|
|
191
|
+
value: {
|
|
192
|
+
base: string;
|
|
193
|
+
_dark: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
inverseTertiary: {
|
|
197
|
+
value: {
|
|
198
|
+
base: string;
|
|
199
|
+
_dark: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
190
202
|
scrim: {
|
|
191
203
|
value: {
|
|
192
204
|
base: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"semantic-tokens.d.ts","sourceRoot":"","sources":["../../src/preset/semantic-tokens.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"semantic-tokens.d.ts","sourceRoot":"","sources":["../../src/preset/semantic-tokens.ts"],"names":[],"mappings":"AAMA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@discourser/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Aesthetic-agnostic design system with Panda CSS and Ark UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -149,6 +149,30 @@
|
|
|
149
149
|
"./Stepper": {
|
|
150
150
|
"types": "./src/components/Stepper/index.ts",
|
|
151
151
|
"import": "./src/components/Stepper/index.ts"
|
|
152
|
+
},
|
|
153
|
+
"./NavigationMenu": {
|
|
154
|
+
"types": "./src/components/NavigationMenu/index.ts",
|
|
155
|
+
"import": "./src/components/NavigationMenu/index.ts"
|
|
156
|
+
},
|
|
157
|
+
"./ScenarioQueue": {
|
|
158
|
+
"types": "./src/components/ScenarioQueue/index.ts",
|
|
159
|
+
"import": "./src/components/ScenarioQueue/index.ts"
|
|
160
|
+
},
|
|
161
|
+
"./ScenarioSettings": {
|
|
162
|
+
"types": "./src/components/ScenarioSettings/index.ts",
|
|
163
|
+
"import": "./src/components/ScenarioSettings/index.ts"
|
|
164
|
+
},
|
|
165
|
+
"./Breadcrumb": {
|
|
166
|
+
"types": "./src/components/Breadcrumb.tsx",
|
|
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"
|
|
152
176
|
}
|
|
153
177
|
},
|
|
154
178
|
"files": [
|
|
@@ -157,7 +181,7 @@
|
|
|
157
181
|
],
|
|
158
182
|
"scripts": {
|
|
159
183
|
"dev": "pnpm docs:generate && storybook dev -p 6006",
|
|
160
|
-
"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",
|
|
161
185
|
"build:panda": "panda codegen",
|
|
162
186
|
"build:css": "panda cssgen --outfile dist/styles.css",
|
|
163
187
|
"build:lib": "tsup",
|
|
@@ -182,6 +206,10 @@
|
|
|
182
206
|
"verify:lint": "pnpm lint",
|
|
183
207
|
"verify:test": "pnpm test run",
|
|
184
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",
|
|
185
213
|
"changeset": "changeset",
|
|
186
214
|
"version": "changeset version",
|
|
187
215
|
"ci:version": "pnpm exec changeset version",
|
|
@@ -194,12 +222,14 @@
|
|
|
194
222
|
},
|
|
195
223
|
"dependencies": {
|
|
196
224
|
"@ark-ui/react": "^5.31.0",
|
|
225
|
+
"@dnd-kit/react": "^0.3.1",
|
|
197
226
|
"clsx": "^2.1.1"
|
|
198
227
|
},
|
|
199
228
|
"devDependencies": {
|
|
200
229
|
"@changesets/changelog-github": "^0.5.2",
|
|
201
230
|
"@changesets/cli": "^2.29.8",
|
|
202
231
|
"@eslint/js": "^9.39.2",
|
|
232
|
+
"@figma/code-connect": "^1.4.1",
|
|
203
233
|
"@material/material-color-utilities": "^0.3.0",
|
|
204
234
|
"@pandacss/dev": "^1.8.1",
|
|
205
235
|
"@storybook/addon-a11y": "^10.2.8",
|
|
@@ -258,6 +288,9 @@
|
|
|
258
288
|
],
|
|
259
289
|
"*.{json,md}": [
|
|
260
290
|
"prettier --write"
|
|
291
|
+
],
|
|
292
|
+
"*.figma.tsx": [
|
|
293
|
+
"tsx src/figma-codex/generate.ts"
|
|
261
294
|
]
|
|
262
295
|
}
|
|
263
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
|
+
})
|
|
@@ -0,0 +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';
|
|
6
|
+
|
|
7
|
+
const ChevronRightIcon = () => (
|
|
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
|
+
>
|
|
18
|
+
<path d="m9 18 6-6-6-6"></path>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
const { withProvider, withContext } = createStyleContext(breadcrumb);
|
|
23
|
+
|
|
24
|
+
export type RootProps = ComponentProps<typeof Root>;
|
|
25
|
+
|
|
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');
|
|
32
|
+
export const Ellipsis = withContext(ark.li, 'ellipsis', {
|
|
33
|
+
defaultProps: {
|
|
34
|
+
role: 'presentation',
|
|
35
|
+
'aria-hidden': true,
|
|
36
|
+
children: '...',
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export const Separator = withContext(ark.li, 'separator', {
|
|
41
|
+
defaultProps: {
|
|
42
|
+
'aria-hidden': true,
|
|
43
|
+
children: <ChevronRightIcon />,
|
|
44
|
+
},
|
|
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
|
+
});
|