@adres/mgda-ui 0.0.0-stage → 0.0.2
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/brand-knowledge.json +451 -0
- package/knowledge/accordion.md +135 -0
- package/knowledge/activity-rings.md +123 -0
- package/knowledge/alert.md +184 -0
- package/knowledge/answer-actions.md +217 -0
- package/knowledge/aspect-ratio.md +82 -0
- package/knowledge/avatar.md +158 -0
- package/knowledge/badge.md +172 -0
- package/knowledge/bar-graph.md +167 -0
- package/knowledge/bento-grid.md +115 -0
- package/knowledge/blockquote.md +153 -0
- package/knowledge/box-list.md +177 -0
- package/knowledge/bullet-list.md +128 -0
- package/knowledge/button-group.md +179 -0
- package/knowledge/button.md +231 -0
- package/knowledge/calendar.md +168 -0
- package/knowledge/card.md +321 -0
- package/knowledge/cards-nav.md +170 -0
- package/knowledge/chain-of-thought.md +164 -0
- package/knowledge/chat-container.md +135 -0
- package/knowledge/chat-message.md +224 -0
- package/knowledge/checkbox-card.md +172 -0
- package/knowledge/checkbox.md +111 -0
- package/knowledge/citations.md +241 -0
- package/knowledge/combobox.md +265 -0
- package/knowledge/countdown-pill.md +153 -0
- package/knowledge/cta.md +118 -0
- package/knowledge/data-list.md +173 -0
- package/knowledge/data-table.md +220 -0
- package/knowledge/dialog.md +249 -0
- package/knowledge/drawer.md +236 -0
- package/knowledge/dropdown-menu.md +238 -0
- package/knowledge/dropzone.md +153 -0
- package/knowledge/email-chips-input.md +161 -0
- package/knowledge/empty-state.md +106 -0
- package/knowledge/entity-header.md +166 -0
- package/knowledge/feature-grid.md +120 -0
- package/knowledge/feedback-bar.md +127 -0
- package/knowledge/footer.md +116 -0
- package/knowledge/heading.md +189 -0
- package/knowledge/hero.md +361 -0
- package/knowledge/input-button.md +187 -0
- package/knowledge/input-group.md +185 -0
- package/knowledge/input.md +256 -0
- package/knowledge/inset.md +177 -0
- package/knowledge/kpi-card.md +206 -0
- package/knowledge/list-nav.md +181 -0
- package/knowledge/logo-cloud.md +102 -0
- package/knowledge/media-gallery.md +158 -0
- package/knowledge/message-actions.md +175 -0
- package/knowledge/nav-sidebar.md +225 -0
- package/knowledge/number-stepper.md +159 -0
- package/knowledge/page-header.md +109 -0
- package/knowledge/pagination.md +225 -0
- package/knowledge/popover.md +159 -0
- package/knowledge/pricing.md +132 -0
- package/knowledge/progress.md +156 -0
- package/knowledge/prompt-input.md +337 -0
- package/knowledge/prompt-suggestions.md +168 -0
- package/knowledge/quota-bar.md +160 -0
- package/knowledge/quote.md +116 -0
- package/knowledge/radio-card.md +172 -0
- package/knowledge/radio-group.md +135 -0
- package/knowledge/reasoning.md +142 -0
- package/knowledge/search.md +131 -0
- package/knowledge/section-nav.md +162 -0
- package/knowledge/segmented-control.md +181 -0
- package/knowledge/select-button.md +205 -0
- package/knowledge/select.md +210 -0
- package/knowledge/separator.md +75 -0
- package/knowledge/shimmer-text.md +140 -0
- package/knowledge/sidebar.md +227 -0
- package/knowledge/skeleton.md +142 -0
- package/knowledge/slider.md +133 -0
- package/knowledge/slideshow.md +159 -0
- package/knowledge/source.md +156 -0
- package/knowledge/spinner.md +120 -0
- package/knowledge/stat-strip.md +128 -0
- package/knowledge/stats.md +117 -0
- package/knowledge/step-indicator.md +157 -0
- package/knowledge/switch.md +88 -0
- package/knowledge/table.md +190 -0
- package/knowledge/tabs.md +169 -0
- package/knowledge/testimonials.md +115 -0
- package/knowledge/text-link.md +192 -0
- package/knowledge/text.md +194 -0
- package/knowledge/thinking-bar.md +115 -0
- package/knowledge/thinking-steps.md +140 -0
- package/knowledge/toaster.md +127 -0
- package/knowledge/toggle.md +113 -0
- package/knowledge/tool-call-card.md +241 -0
- package/knowledge/tooltip.md +120 -0
- package/knowledge/top-nav.md +138 -0
- package/knowledge.json +19854 -0
- package/package.json +94 -4
- package/src/components/accordion.stories.tsx +46 -0
- package/src/components/accordion.tsx +74 -0
- package/src/components/activity-rings.stories.tsx +73 -0
- package/src/components/activity-rings.tsx +121 -0
- package/src/components/alert.stories.tsx +43 -0
- package/src/components/alert.tsx +132 -0
- package/src/components/answer-actions.stories.tsx +54 -0
- package/src/components/answer-actions.test.tsx +37 -0
- package/src/components/answer-actions.tsx +313 -0
- package/src/components/aspect-ratio.stories.tsx +32 -0
- package/src/components/aspect-ratio.tsx +5 -0
- package/src/components/avatar.stories.tsx +40 -0
- package/src/components/avatar.tsx +154 -0
- package/src/components/badge.stories.tsx +27 -0
- package/src/components/badge.tsx +63 -0
- package/src/components/bar-graph.stories.tsx +28 -0
- package/src/components/bar-graph.tsx +204 -0
- package/src/components/bento-grid.stories.tsx +23 -0
- package/src/components/bento-grid.tsx +67 -0
- package/src/components/blockquote.stories.tsx +28 -0
- package/src/components/blockquote.tsx +88 -0
- package/src/components/box-list.stories.tsx +25 -0
- package/src/components/box-list.tsx +108 -0
- package/src/components/bullet-list.stories.tsx +22 -0
- package/src/components/bullet-list.tsx +101 -0
- package/src/components/button-group.stories.tsx +31 -0
- package/src/components/button-group.tsx +156 -0
- package/src/components/button.stories.tsx +66 -0
- package/src/components/button.test.ts +17 -0
- package/src/components/button.tsx +139 -0
- package/src/components/calendar.stories.tsx +25 -0
- package/src/components/calendar.tsx +367 -0
- package/src/components/card.stories.tsx +44 -0
- package/src/components/card.tsx +392 -0
- package/src/components/cards-nav.stories.tsx +35 -0
- package/src/components/cards-nav.tsx +115 -0
- package/src/components/chain-of-thought.stories.tsx +67 -0
- package/src/components/chain-of-thought.test.tsx +50 -0
- package/src/components/chain-of-thought.tsx +170 -0
- package/src/components/chat-container.stories.tsx +47 -0
- package/src/components/chat-container.test.tsx +49 -0
- package/src/components/chat-container.tsx +222 -0
- package/src/components/chat-message.stories.tsx +52 -0
- package/src/components/chat-message.test.tsx +36 -0
- package/src/components/chat-message.tsx +163 -0
- package/src/components/checkbox-card.stories.tsx +27 -0
- package/src/components/checkbox-card.tsx +200 -0
- package/src/components/checkbox.stories.tsx +26 -0
- package/src/components/checkbox.tsx +61 -0
- package/src/components/citations.stories.tsx +64 -0
- package/src/components/citations.test.tsx +61 -0
- package/src/components/citations.tsx +220 -0
- package/src/components/combobox.stories.tsx +184 -0
- package/src/components/combobox.test.tsx +82 -0
- package/src/components/combobox.tsx +407 -0
- package/src/components/countdown-pill.stories.tsx +24 -0
- package/src/components/countdown-pill.tsx +129 -0
- package/src/components/cta.stories.tsx +29 -0
- package/src/components/cta.tsx +52 -0
- package/src/components/data-list.stories.tsx +50 -0
- package/src/components/data-list.test.tsx +35 -0
- package/src/components/data-list.tsx +181 -0
- package/src/components/data-table.stories.tsx +29 -0
- package/src/components/data-table.tsx +200 -0
- package/src/components/dialog.stories.tsx +42 -0
- package/src/components/dialog.tsx +200 -0
- package/src/components/drawer.stories.tsx +48 -0
- package/src/components/drawer.tsx +385 -0
- package/src/components/dropdown-menu.stories.tsx +41 -0
- package/src/components/dropdown-menu.tsx +252 -0
- package/src/components/dropzone.stories.tsx +19 -0
- package/src/components/dropzone.tsx +250 -0
- package/src/components/email-chips-input.stories.tsx +135 -0
- package/src/components/email-chips-input.tsx +210 -0
- package/src/components/empty-state.stories.tsx +22 -0
- package/src/components/empty-state.tsx +35 -0
- package/src/components/entity-header.stories.tsx +43 -0
- package/src/components/entity-header.test.tsx +35 -0
- package/src/components/entity-header.tsx +92 -0
- package/src/components/feature-grid.stories.tsx +25 -0
- package/src/components/feature-grid.tsx +87 -0
- package/src/components/feedback-bar.stories.tsx +25 -0
- package/src/components/feedback-bar.test.tsx +24 -0
- package/src/components/feedback-bar.tsx +62 -0
- package/src/components/footer.stories.tsx +23 -0
- package/src/components/footer.tsx +78 -0
- package/src/components/heading.stories.tsx +45 -0
- package/src/components/heading.test.tsx +22 -0
- package/src/components/heading.tsx +77 -0
- package/src/components/hero.stories.tsx +38 -0
- package/src/components/hero.tsx +498 -0
- package/src/components/input-button.stories.tsx +19 -0
- package/src/components/input-button.tsx +112 -0
- package/src/components/input-group.stories.tsx +38 -0
- package/src/components/input-group.tsx +157 -0
- package/src/components/input.stories.tsx +31 -0
- package/src/components/input.tsx +284 -0
- package/src/components/inset.stories.tsx +29 -0
- package/src/components/inset.tsx +70 -0
- package/src/components/kpi-card.stories.tsx +29 -0
- package/src/components/kpi-card.tsx +284 -0
- package/src/components/list-nav.stories.tsx +22 -0
- package/src/components/list-nav.tsx +145 -0
- package/src/components/logo-cloud.stories.tsx +23 -0
- package/src/components/logo-cloud.tsx +42 -0
- package/src/components/media-gallery.stories.tsx +25 -0
- package/src/components/media-gallery.tsx +347 -0
- package/src/components/message-actions.stories.tsx +45 -0
- package/src/components/message-actions.test.tsx +32 -0
- package/src/components/message-actions.tsx +119 -0
- package/src/components/nav-sidebar.stories.tsx +58 -0
- package/src/components/nav-sidebar.test.tsx +54 -0
- package/src/components/nav-sidebar.tsx +462 -0
- package/src/components/number-stepper.stories.tsx +19 -0
- package/src/components/number-stepper.tsx +158 -0
- package/src/components/page-header.stories.tsx +25 -0
- package/src/components/page-header.tsx +64 -0
- package/src/components/pagination.stories.tsx +110 -0
- package/src/components/pagination.test.tsx +46 -0
- package/src/components/pagination.tsx +144 -0
- package/src/components/popover.stories.tsx +26 -0
- package/src/components/popover.tsx +62 -0
- package/src/components/pricing.stories.tsx +42 -0
- package/src/components/pricing.tsx +130 -0
- package/src/components/progress.stories.tsx +22 -0
- package/src/components/progress.tsx +189 -0
- package/src/components/prompt-input.stories.tsx +62 -0
- package/src/components/prompt-input.test.tsx +106 -0
- package/src/components/prompt-input.tsx +343 -0
- package/src/components/prompt-suggestions.stories.tsx +53 -0
- package/src/components/prompt-suggestions.test.tsx +37 -0
- package/src/components/prompt-suggestions.tsx +122 -0
- package/src/components/quota-bar.stories.tsx +19 -0
- package/src/components/quota-bar.tsx +191 -0
- package/src/components/quote.stories.tsx +18 -0
- package/src/components/quote.tsx +43 -0
- package/src/components/radio-card.stories.tsx +27 -0
- package/src/components/radio-card.tsx +225 -0
- package/src/components/radio-group.stories.tsx +32 -0
- package/src/components/radio-group.tsx +68 -0
- package/src/components/reasoning.stories.tsx +50 -0
- package/src/components/reasoning.test.tsx +48 -0
- package/src/components/reasoning.tsx +143 -0
- package/src/components/search.stories.tsx +18 -0
- package/src/components/search.tsx +133 -0
- package/src/components/section-nav.stories.tsx +59 -0
- package/src/components/section-nav.test.tsx +36 -0
- package/src/components/section-nav.tsx +146 -0
- package/src/components/segmented-control.stories.tsx +22 -0
- package/src/components/segmented-control.tsx +301 -0
- package/src/components/select-button.stories.tsx +27 -0
- package/src/components/select-button.tsx +174 -0
- package/src/components/select.stories.tsx +27 -0
- package/src/components/select.tsx +198 -0
- package/src/components/separator.stories.tsx +22 -0
- package/src/components/separator.tsx +23 -0
- package/src/components/shimmer-text.stories.tsx +23 -0
- package/src/components/shimmer-text.test.tsx +35 -0
- package/src/components/shimmer-text.tsx +43 -0
- package/src/components/sidebar.stories.tsx +25 -0
- package/src/components/sidebar.tsx +234 -0
- package/src/components/skeleton.stories.tsx +22 -0
- package/src/components/skeleton.tsx +96 -0
- package/src/components/slider.stories.tsx +20 -0
- package/src/components/slider.tsx +176 -0
- package/src/components/slideshow.stories.tsx +30 -0
- package/src/components/slideshow.tsx +291 -0
- package/src/components/source.stories.tsx +32 -0
- package/src/components/source.test.tsx +40 -0
- package/src/components/source.tsx +161 -0
- package/src/components/spinner.stories.tsx +19 -0
- package/src/components/spinner.tsx +76 -0
- package/src/components/stat-strip.stories.tsx +36 -0
- package/src/components/stat-strip.test.tsx +25 -0
- package/src/components/stat-strip.tsx +85 -0
- package/src/components/stats.stories.tsx +24 -0
- package/src/components/stats.tsx +83 -0
- package/src/components/step-indicator.stories.tsx +18 -0
- package/src/components/step-indicator.test.tsx +18 -0
- package/src/components/step-indicator.tsx +286 -0
- package/src/components/switch.stories.tsx +26 -0
- package/src/components/switch.tsx +32 -0
- package/src/components/table.stories.tsx +38 -0
- package/src/components/table.tsx +220 -0
- package/src/components/tabs.stories.tsx +25 -0
- package/src/components/tabs.tsx +276 -0
- package/src/components/testimonials.stories.tsx +22 -0
- package/src/components/testimonials.tsx +109 -0
- package/src/components/text-link.stories.tsx +47 -0
- package/src/components/text-link.test.tsx +18 -0
- package/src/components/text-link.tsx +88 -0
- package/src/components/text.stories.tsx +49 -0
- package/src/components/text.tsx +105 -0
- package/src/components/thinking-bar.stories.tsx +19 -0
- package/src/components/thinking-bar.test.tsx +27 -0
- package/src/components/thinking-bar.tsx +64 -0
- package/src/components/thinking-steps.stories.tsx +44 -0
- package/src/components/thinking-steps.test.tsx +42 -0
- package/src/components/thinking-steps.tsx +92 -0
- package/src/components/toaster.stories.tsx +80 -0
- package/src/components/toaster.tsx +36 -0
- package/src/components/toggle.stories.tsx +21 -0
- package/src/components/toggle.tsx +103 -0
- package/src/components/tool-call-card.stories.tsx +97 -0
- package/src/components/tool-call-card.test.tsx +88 -0
- package/src/components/tool-call-card.tsx +231 -0
- package/src/components/tooltip.stories.tsx +25 -0
- package/src/components/tooltip.tsx +43 -0
- package/src/components/top-nav.stories.tsx +20 -0
- package/src/components/top-nav.tsx +76 -0
- package/src/docs/Colors.stories.tsx +192 -0
- package/src/docs/GettingStarted.mdx +72 -0
- package/src/docs/Mcp.mdx +52 -0
- package/src/docs/Typography.stories.tsx +114 -0
- package/src/hooks/use-in-view.ts +32 -0
- package/src/hooks/use-reduced-motion.ts +26 -0
- package/src/index.ts +343 -0
- package/src/lib/cn.test.ts +67 -0
- package/src/lib/cn.ts +81 -0
- package/src/lib/motion.ts +109 -0
- package/src/lib/prefix-utilities.test.ts +56 -0
- package/src/lib/prefix-utilities.ts +50 -0
- package/src/styles/base.css +489 -0
- package/src/styles/motion.css +69 -0
- package/src/styles/overrides.css +44 -0
- package/src/styles/typography.css +173 -0
- package/src/theme/theme.css +391 -0
- package/src/theme/tokens.ts +29 -0
- package/src/theme/types.ts +26 -0
- package/README.md +0 -3
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"generatedBy": "scripts/sync-brand-knowledge.mjs",
|
|
4
|
+
"requiredSemanticCssVars": [
|
|
5
|
+
"--background",
|
|
6
|
+
"--foreground",
|
|
7
|
+
"--foreground-muted",
|
|
8
|
+
"--card",
|
|
9
|
+
"--card-foreground",
|
|
10
|
+
"--popover",
|
|
11
|
+
"--popover-foreground",
|
|
12
|
+
"--primary",
|
|
13
|
+
"--primary-foreground",
|
|
14
|
+
"--secondary",
|
|
15
|
+
"--secondary-foreground",
|
|
16
|
+
"--accent",
|
|
17
|
+
"--accent-foreground",
|
|
18
|
+
"--muted",
|
|
19
|
+
"--muted-foreground",
|
|
20
|
+
"--destructive",
|
|
21
|
+
"--destructive-foreground",
|
|
22
|
+
"--success",
|
|
23
|
+
"--success-foreground",
|
|
24
|
+
"--warning",
|
|
25
|
+
"--warning-foreground",
|
|
26
|
+
"--border",
|
|
27
|
+
"--border-strong",
|
|
28
|
+
"--input",
|
|
29
|
+
"--ring",
|
|
30
|
+
"--font-family-sans",
|
|
31
|
+
"--radius-sm",
|
|
32
|
+
"--radius",
|
|
33
|
+
"--radius-md",
|
|
34
|
+
"--radius-lg",
|
|
35
|
+
"--radius-full",
|
|
36
|
+
"--surface-n1",
|
|
37
|
+
"--surface-0",
|
|
38
|
+
"--surface-1",
|
|
39
|
+
"--surface-2",
|
|
40
|
+
"--surface-3",
|
|
41
|
+
"--radius-badge",
|
|
42
|
+
"--button-radius",
|
|
43
|
+
"--input-radius"
|
|
44
|
+
],
|
|
45
|
+
"brands": [
|
|
46
|
+
{
|
|
47
|
+
"id": "mgda",
|
|
48
|
+
"packageDir": "design-system",
|
|
49
|
+
"importPath": "@adres/mgda-ui",
|
|
50
|
+
"meta": {
|
|
51
|
+
"name": "MGDA",
|
|
52
|
+
"description": "MGDA brand tokens. Vivid blue primary, pale cyan secondary, cool blue-gray neutrals, Gilroy typography.",
|
|
53
|
+
"id": "mgda"
|
|
54
|
+
},
|
|
55
|
+
"cssVars": {
|
|
56
|
+
"light": {
|
|
57
|
+
"--accent": "38 90% 55%",
|
|
58
|
+
"--accent-100": "38 90% 89%",
|
|
59
|
+
"--accent-200": "38 90% 80%",
|
|
60
|
+
"--accent-300": "38 90% 72%",
|
|
61
|
+
"--accent-400": "38 90% 63%",
|
|
62
|
+
"--accent-50": "38 90% 97%",
|
|
63
|
+
"--accent-500": "38 90% 55%",
|
|
64
|
+
"--accent-600": "38 90% 45%",
|
|
65
|
+
"--accent-700": "38 90% 35%",
|
|
66
|
+
"--accent-800": "38 90% 25%",
|
|
67
|
+
"--accent-900": "38 90% 15%",
|
|
68
|
+
"--accent-950": "38 90% 5%",
|
|
69
|
+
"--accent-foreground": "38 90% 35%",
|
|
70
|
+
"--accent-muted": "38 90% 97%",
|
|
71
|
+
"--accent-strong": "38 90% 35%",
|
|
72
|
+
"--accent-stronger": "38 90% 25%",
|
|
73
|
+
"--accent-strongest": "38 90% 15%",
|
|
74
|
+
"--accent-weak": "38 90% 72%",
|
|
75
|
+
"--accent-weaker": "38 90% 80%",
|
|
76
|
+
"--accent-weakest": "38 90% 89%",
|
|
77
|
+
"--background": "220 20% 97%",
|
|
78
|
+
"--border": "220 20% 86%",
|
|
79
|
+
"--border-strong": "220 20% 74%",
|
|
80
|
+
"--button-radius": "0.375rem",
|
|
81
|
+
"--card": "0 0% 100%",
|
|
82
|
+
"--card-foreground": "220 20% 30%",
|
|
83
|
+
"--chart-1": "211 36% 48%",
|
|
84
|
+
"--chart-10": "20 10% 70%",
|
|
85
|
+
"--chart-2": "30 88% 56%",
|
|
86
|
+
"--chart-3": "359 70% 61%",
|
|
87
|
+
"--chart-4": "175 31% 59%",
|
|
88
|
+
"--chart-5": "113 34% 47%",
|
|
89
|
+
"--chart-6": "47 82% 61%",
|
|
90
|
+
"--chart-7": "316 25% 58%",
|
|
91
|
+
"--chart-8": "354 100% 81%",
|
|
92
|
+
"--chart-9": "22 24% 49%",
|
|
93
|
+
"--destructive": "0 80% 62%",
|
|
94
|
+
"--destructive-100": "0 80% 94%",
|
|
95
|
+
"--destructive-200": "0 80% 88%",
|
|
96
|
+
"--destructive-300": "0 80% 80%",
|
|
97
|
+
"--destructive-400": "0 80% 75%",
|
|
98
|
+
"--destructive-50": "0 80% 97%",
|
|
99
|
+
"--destructive-500": "0 80% 62%",
|
|
100
|
+
"--destructive-600": "0 80% 44%",
|
|
101
|
+
"--destructive-700": "0 80% 32%",
|
|
102
|
+
"--destructive-800": "0 80% 18%",
|
|
103
|
+
"--destructive-900": "0 80% 10%",
|
|
104
|
+
"--destructive-950": "0 80% 6%",
|
|
105
|
+
"--destructive-foreground": "0 80% 32%",
|
|
106
|
+
"--destructive-muted": "0 80% 97%",
|
|
107
|
+
"--destructive-strong": "0 80% 32%",
|
|
108
|
+
"--destructive-stronger": "0 80% 18%",
|
|
109
|
+
"--destructive-strongest": "0 80% 10%",
|
|
110
|
+
"--destructive-weak": "0 80% 80%",
|
|
111
|
+
"--destructive-weaker": "0 80% 88%",
|
|
112
|
+
"--destructive-weakest": "0 80% 94%",
|
|
113
|
+
"--font-family-sans": "var(--font-gilroy, \"Gilroy\"), \"Gilroy\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
114
|
+
"--foreground": "220 20% 30%",
|
|
115
|
+
"--foreground-muted": "220 20% 45%",
|
|
116
|
+
"--foreground-strong": "220 20% 10%",
|
|
117
|
+
"--input": "220 20% 74%",
|
|
118
|
+
"--input-radius": "0.375rem",
|
|
119
|
+
"--muted": "220 20% 92%",
|
|
120
|
+
"--muted-foreground": "220 20% 45%",
|
|
121
|
+
"--neutral": "220 20% 45%",
|
|
122
|
+
"--neutral-100": "220 20% 92%",
|
|
123
|
+
"--neutral-200": "220 20% 86%",
|
|
124
|
+
"--neutral-300": "220 20% 74%",
|
|
125
|
+
"--neutral-400": "220 20% 60%",
|
|
126
|
+
"--neutral-50": "220 20% 97%",
|
|
127
|
+
"--neutral-500": "220 20% 45%",
|
|
128
|
+
"--neutral-600": "220 20% 40%",
|
|
129
|
+
"--neutral-700": "220 20% 30%",
|
|
130
|
+
"--neutral-800": "220 20% 20%",
|
|
131
|
+
"--neutral-900": "220 20% 10%",
|
|
132
|
+
"--neutral-950": "220 20% 5%",
|
|
133
|
+
"--neutral-muted": "220 20% 97%",
|
|
134
|
+
"--neutral-strong": "220 20% 30%",
|
|
135
|
+
"--neutral-stronger": "220 20% 20%",
|
|
136
|
+
"--neutral-strongest": "220 20% 10%",
|
|
137
|
+
"--neutral-weak": "220 20% 74%",
|
|
138
|
+
"--neutral-weaker": "220 20% 86%",
|
|
139
|
+
"--neutral-weakest": "220 20% 92%",
|
|
140
|
+
"--popover": "0 0% 100%",
|
|
141
|
+
"--popover-foreground": "220 20% 30%",
|
|
142
|
+
"--primary": "208 100% 50%",
|
|
143
|
+
"--primary-100": "208 100% 92%",
|
|
144
|
+
"--primary-200": "208 100% 86%",
|
|
145
|
+
"--primary-300": "208 100% 74%",
|
|
146
|
+
"--primary-400": "208 100% 59%",
|
|
147
|
+
"--primary-50": "208 100% 97%",
|
|
148
|
+
"--primary-500": "208 100% 50%",
|
|
149
|
+
"--primary-600": "208 100% 41%",
|
|
150
|
+
"--primary-700": "208 100% 32%",
|
|
151
|
+
"--primary-800": "208 100% 23%",
|
|
152
|
+
"--primary-900": "208 100% 14%",
|
|
153
|
+
"--primary-950": "208 100% 5%",
|
|
154
|
+
"--primary-foreground": "208 100% 41%",
|
|
155
|
+
"--primary-muted": "208 100% 97%",
|
|
156
|
+
"--primary-strong": "208 100% 32%",
|
|
157
|
+
"--primary-stronger": "208 100% 23%",
|
|
158
|
+
"--primary-strongest": "208 100% 14%",
|
|
159
|
+
"--primary-weak": "208 100% 74%",
|
|
160
|
+
"--primary-weaker": "208 100% 86%",
|
|
161
|
+
"--primary-weakest": "208 100% 92%",
|
|
162
|
+
"--radius": "0.375rem",
|
|
163
|
+
"--radius-badge": "0.25rem",
|
|
164
|
+
"--radius-full": "9999px",
|
|
165
|
+
"--radius-lg": "0.75rem",
|
|
166
|
+
"--radius-md": "0.5rem",
|
|
167
|
+
"--radius-sm": "0.25rem",
|
|
168
|
+
"--radius-xl": "1rem",
|
|
169
|
+
"--radius-xs": "0.125rem",
|
|
170
|
+
"--ring": "208 100% 50%",
|
|
171
|
+
"--secondary": "184 100% 64%",
|
|
172
|
+
"--secondary-100": "184 100% 94%",
|
|
173
|
+
"--secondary-200": "184 100% 90%",
|
|
174
|
+
"--secondary-300": "184 100% 84%",
|
|
175
|
+
"--secondary-400": "184 100% 76%",
|
|
176
|
+
"--secondary-50": "184 100% 97%",
|
|
177
|
+
"--secondary-500": "184 100% 64%",
|
|
178
|
+
"--secondary-600": "184 100% 50%",
|
|
179
|
+
"--secondary-700": "184 100% 38%",
|
|
180
|
+
"--secondary-800": "184 100% 26%",
|
|
181
|
+
"--secondary-900": "184 100% 16%",
|
|
182
|
+
"--secondary-950": "184 100% 10%",
|
|
183
|
+
"--secondary-foreground": "184 100% 38%",
|
|
184
|
+
"--secondary-muted": "184 100% 97%",
|
|
185
|
+
"--secondary-strong": "184 100% 38%",
|
|
186
|
+
"--secondary-stronger": "184 100% 26%",
|
|
187
|
+
"--secondary-strongest": "184 100% 16%",
|
|
188
|
+
"--secondary-weak": "184 100% 84%",
|
|
189
|
+
"--secondary-weaker": "184 100% 90%",
|
|
190
|
+
"--secondary-weakest": "184 100% 94%",
|
|
191
|
+
"--selected": "220 20% 86%",
|
|
192
|
+
"--success": "158 80% 62%",
|
|
193
|
+
"--success-100": "158 80% 94%",
|
|
194
|
+
"--success-200": "158 80% 88%",
|
|
195
|
+
"--success-300": "158 80% 80%",
|
|
196
|
+
"--success-400": "158 80% 75%",
|
|
197
|
+
"--success-50": "158 80% 97%",
|
|
198
|
+
"--success-500": "158 80% 62%",
|
|
199
|
+
"--success-600": "158 80% 44%",
|
|
200
|
+
"--success-700": "158 80% 32%",
|
|
201
|
+
"--success-800": "158 80% 18%",
|
|
202
|
+
"--success-900": "158 80% 10%",
|
|
203
|
+
"--success-950": "158 80% 6%",
|
|
204
|
+
"--success-foreground": "158 80% 32%",
|
|
205
|
+
"--success-muted": "158 80% 97%",
|
|
206
|
+
"--success-strong": "158 80% 32%",
|
|
207
|
+
"--success-stronger": "158 80% 18%",
|
|
208
|
+
"--success-strongest": "158 80% 10%",
|
|
209
|
+
"--success-weak": "158 80% 80%",
|
|
210
|
+
"--success-weaker": "158 80% 88%",
|
|
211
|
+
"--success-weakest": "158 80% 94%",
|
|
212
|
+
"--surface-0": "220 20% 92%",
|
|
213
|
+
"--surface-1": "0 0% 100%",
|
|
214
|
+
"--surface-2": "0 0% 100%",
|
|
215
|
+
"--surface-3": "220 20% 74%",
|
|
216
|
+
"--surface-n1": "220 20% 86%",
|
|
217
|
+
"--warning": "32 92% 62%",
|
|
218
|
+
"--warning-100": "32 92% 94%",
|
|
219
|
+
"--warning-200": "32 92% 88%",
|
|
220
|
+
"--warning-300": "32 92% 80%",
|
|
221
|
+
"--warning-400": "32 92% 75%",
|
|
222
|
+
"--warning-50": "32 92% 97%",
|
|
223
|
+
"--warning-500": "32 92% 62%",
|
|
224
|
+
"--warning-600": "32 92% 44%",
|
|
225
|
+
"--warning-700": "32 92% 32%",
|
|
226
|
+
"--warning-800": "32 92% 18%",
|
|
227
|
+
"--warning-900": "38 55% 10%",
|
|
228
|
+
"--warning-950": "32 92% 6%",
|
|
229
|
+
"--warning-foreground": "32 92% 32%",
|
|
230
|
+
"--warning-muted": "32 92% 97%",
|
|
231
|
+
"--warning-strong": "32 92% 32%",
|
|
232
|
+
"--warning-stronger": "32 92% 18%",
|
|
233
|
+
"--warning-strongest": "38 55% 10%",
|
|
234
|
+
"--warning-weak": "32 92% 80%",
|
|
235
|
+
"--warning-weaker": "32 92% 88%",
|
|
236
|
+
"--warning-weakest": "32 92% 94%"
|
|
237
|
+
},
|
|
238
|
+
"dark": {
|
|
239
|
+
"--accent": "38 90% 55%",
|
|
240
|
+
"--accent-100": "38 90% 89%",
|
|
241
|
+
"--accent-200": "38 90% 80%",
|
|
242
|
+
"--accent-300": "38 90% 72%",
|
|
243
|
+
"--accent-400": "38 90% 63%",
|
|
244
|
+
"--accent-50": "38 90% 97%",
|
|
245
|
+
"--accent-500": "38 90% 55%",
|
|
246
|
+
"--accent-600": "38 90% 45%",
|
|
247
|
+
"--accent-700": "38 90% 35%",
|
|
248
|
+
"--accent-800": "38 90% 25%",
|
|
249
|
+
"--accent-900": "38 90% 15%",
|
|
250
|
+
"--accent-950": "38 90% 5%",
|
|
251
|
+
"--accent-foreground": "38 90% 55%",
|
|
252
|
+
"--accent-muted": "38 90% 15%",
|
|
253
|
+
"--accent-strong": "38 90% 72%",
|
|
254
|
+
"--accent-stronger": "38 90% 80%",
|
|
255
|
+
"--accent-strongest": "38 90% 89%",
|
|
256
|
+
"--accent-weak": "38 90% 45%",
|
|
257
|
+
"--accent-weaker": "38 90% 35%",
|
|
258
|
+
"--accent-weakest": "38 90% 25%",
|
|
259
|
+
"--background": "220 20% 10%",
|
|
260
|
+
"--border": "220 20% 20%",
|
|
261
|
+
"--border-strong": "220 20% 30%",
|
|
262
|
+
"--button-radius": "0.375rem",
|
|
263
|
+
"--card": "220 20% 5%",
|
|
264
|
+
"--card-foreground": "220 20% 74%",
|
|
265
|
+
"--chart-1": "211 70% 65%",
|
|
266
|
+
"--chart-10": "220 15% 72%",
|
|
267
|
+
"--chart-2": "30 95% 63%",
|
|
268
|
+
"--chart-3": "359 85% 70%",
|
|
269
|
+
"--chart-4": "175 55% 65%",
|
|
270
|
+
"--chart-5": "113 50% 58%",
|
|
271
|
+
"--chart-6": "47 90% 68%",
|
|
272
|
+
"--chart-7": "316 50% 68%",
|
|
273
|
+
"--chart-8": "354 100% 85%",
|
|
274
|
+
"--chart-9": "22 55% 62%",
|
|
275
|
+
"--destructive": "0 80% 62%",
|
|
276
|
+
"--destructive-100": "0 80% 94%",
|
|
277
|
+
"--destructive-200": "0 80% 88%",
|
|
278
|
+
"--destructive-300": "0 80% 80%",
|
|
279
|
+
"--destructive-400": "0 80% 75%",
|
|
280
|
+
"--destructive-50": "0 80% 97%",
|
|
281
|
+
"--destructive-500": "0 80% 62%",
|
|
282
|
+
"--destructive-600": "0 80% 44%",
|
|
283
|
+
"--destructive-700": "0 80% 32%",
|
|
284
|
+
"--destructive-800": "0 80% 18%",
|
|
285
|
+
"--destructive-900": "0 80% 10%",
|
|
286
|
+
"--destructive-950": "0 80% 6%",
|
|
287
|
+
"--destructive-foreground": "0 80% 62%",
|
|
288
|
+
"--destructive-muted": "0 80% 10%",
|
|
289
|
+
"--destructive-strong": "0 80% 80%",
|
|
290
|
+
"--destructive-stronger": "0 80% 88%",
|
|
291
|
+
"--destructive-strongest": "0 80% 94%",
|
|
292
|
+
"--destructive-weak": "0 80% 44%",
|
|
293
|
+
"--destructive-weaker": "0 80% 32%",
|
|
294
|
+
"--destructive-weakest": "0 80% 18%",
|
|
295
|
+
"--font-family-sans": "var(--font-gilroy, \"Gilroy\"), \"Gilroy\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif",
|
|
296
|
+
"--foreground": "220 20% 74%",
|
|
297
|
+
"--foreground-muted": "220 20% 45%",
|
|
298
|
+
"--foreground-strong": "220 20% 92%",
|
|
299
|
+
"--input": "220 20% 30%",
|
|
300
|
+
"--input-radius": "0.375rem",
|
|
301
|
+
"--muted": "220 20% 20%",
|
|
302
|
+
"--muted-foreground": "220 20% 45%",
|
|
303
|
+
"--neutral": "220 20% 45%",
|
|
304
|
+
"--neutral-100": "220 20% 92%",
|
|
305
|
+
"--neutral-200": "220 20% 86%",
|
|
306
|
+
"--neutral-300": "220 20% 74%",
|
|
307
|
+
"--neutral-400": "220 20% 60%",
|
|
308
|
+
"--neutral-50": "220 20% 97%",
|
|
309
|
+
"--neutral-500": "220 20% 45%",
|
|
310
|
+
"--neutral-600": "220 20% 40%",
|
|
311
|
+
"--neutral-700": "220 20% 30%",
|
|
312
|
+
"--neutral-800": "220 20% 20%",
|
|
313
|
+
"--neutral-900": "220 20% 10%",
|
|
314
|
+
"--neutral-950": "220 20% 5%",
|
|
315
|
+
"--neutral-muted": "220 20% 5%",
|
|
316
|
+
"--neutral-strong": "220 20% 74%",
|
|
317
|
+
"--neutral-stronger": "220 20% 86%",
|
|
318
|
+
"--neutral-strongest": "220 20% 92%",
|
|
319
|
+
"--neutral-weak": "220 20% 30%",
|
|
320
|
+
"--neutral-weaker": "220 20% 20%",
|
|
321
|
+
"--neutral-weakest": "220 20% 10%",
|
|
322
|
+
"--popover": "220 20% 5%",
|
|
323
|
+
"--popover-foreground": "220 20% 74%",
|
|
324
|
+
"--primary": "208 100% 50%",
|
|
325
|
+
"--primary-100": "208 100% 92%",
|
|
326
|
+
"--primary-200": "208 100% 86%",
|
|
327
|
+
"--primary-300": "208 100% 74%",
|
|
328
|
+
"--primary-400": "208 100% 59%",
|
|
329
|
+
"--primary-50": "208 100% 97%",
|
|
330
|
+
"--primary-500": "208 100% 50%",
|
|
331
|
+
"--primary-600": "208 100% 41%",
|
|
332
|
+
"--primary-700": "208 100% 32%",
|
|
333
|
+
"--primary-800": "208 100% 23%",
|
|
334
|
+
"--primary-900": "208 100% 14%",
|
|
335
|
+
"--primary-950": "208 100% 5%",
|
|
336
|
+
"--primary-foreground": "208 100% 50%",
|
|
337
|
+
"--primary-muted": "208 100% 14%",
|
|
338
|
+
"--primary-strong": "208 100% 74%",
|
|
339
|
+
"--primary-stronger": "208 100% 86%",
|
|
340
|
+
"--primary-strongest": "208 100% 92%",
|
|
341
|
+
"--primary-weak": "208 100% 41%",
|
|
342
|
+
"--primary-weaker": "208 100% 32%",
|
|
343
|
+
"--primary-weakest": "208 100% 23%",
|
|
344
|
+
"--radius": "0.375rem",
|
|
345
|
+
"--radius-badge": "0.25rem",
|
|
346
|
+
"--radius-full": "9999px",
|
|
347
|
+
"--radius-lg": "0.75rem",
|
|
348
|
+
"--radius-md": "0.5rem",
|
|
349
|
+
"--radius-sm": "0.25rem",
|
|
350
|
+
"--radius-xl": "1rem",
|
|
351
|
+
"--radius-xs": "0.125rem",
|
|
352
|
+
"--ring": "208 100% 50%",
|
|
353
|
+
"--secondary": "184 100% 64%",
|
|
354
|
+
"--secondary-100": "184 100% 94%",
|
|
355
|
+
"--secondary-200": "184 100% 90%",
|
|
356
|
+
"--secondary-300": "184 100% 84%",
|
|
357
|
+
"--secondary-400": "184 100% 76%",
|
|
358
|
+
"--secondary-50": "184 100% 97%",
|
|
359
|
+
"--secondary-500": "184 100% 64%",
|
|
360
|
+
"--secondary-600": "184 100% 50%",
|
|
361
|
+
"--secondary-700": "184 100% 38%",
|
|
362
|
+
"--secondary-800": "184 100% 26%",
|
|
363
|
+
"--secondary-900": "184 100% 16%",
|
|
364
|
+
"--secondary-950": "184 100% 10%",
|
|
365
|
+
"--secondary-foreground": "184 100% 84%",
|
|
366
|
+
"--secondary-muted": "184 100% 10%",
|
|
367
|
+
"--secondary-strong": "184 100% 84%",
|
|
368
|
+
"--secondary-stronger": "184 100% 90%",
|
|
369
|
+
"--secondary-strongest": "184 100% 94%",
|
|
370
|
+
"--secondary-weak": "184 100% 38%",
|
|
371
|
+
"--secondary-weaker": "184 100% 26%",
|
|
372
|
+
"--secondary-weakest": "184 100% 16%",
|
|
373
|
+
"--selected": "220 20% 20%",
|
|
374
|
+
"--success": "158 80% 62%",
|
|
375
|
+
"--success-100": "158 80% 94%",
|
|
376
|
+
"--success-200": "158 80% 88%",
|
|
377
|
+
"--success-300": "158 80% 80%",
|
|
378
|
+
"--success-400": "158 80% 75%",
|
|
379
|
+
"--success-50": "158 80% 97%",
|
|
380
|
+
"--success-500": "158 80% 62%",
|
|
381
|
+
"--success-600": "158 80% 44%",
|
|
382
|
+
"--success-700": "158 80% 32%",
|
|
383
|
+
"--success-800": "158 80% 18%",
|
|
384
|
+
"--success-900": "158 80% 10%",
|
|
385
|
+
"--success-950": "158 80% 6%",
|
|
386
|
+
"--success-foreground": "158 80% 62%",
|
|
387
|
+
"--success-muted": "158 80% 10%",
|
|
388
|
+
"--success-strong": "158 80% 80%",
|
|
389
|
+
"--success-stronger": "158 80% 88%",
|
|
390
|
+
"--success-strongest": "158 80% 94%",
|
|
391
|
+
"--success-weak": "158 80% 44%",
|
|
392
|
+
"--success-weaker": "158 80% 32%",
|
|
393
|
+
"--success-weakest": "158 80% 18%",
|
|
394
|
+
"--surface-0": "220 20% 5%",
|
|
395
|
+
"--surface-1": "220 20% 10%",
|
|
396
|
+
"--surface-2": "220 20% 20%",
|
|
397
|
+
"--surface-3": "220 20% 30%",
|
|
398
|
+
"--surface-n1": "220 20% 10%",
|
|
399
|
+
"--warning": "32 92% 62%",
|
|
400
|
+
"--warning-100": "32 92% 94%",
|
|
401
|
+
"--warning-200": "32 92% 88%",
|
|
402
|
+
"--warning-300": "32 92% 80%",
|
|
403
|
+
"--warning-400": "32 92% 75%",
|
|
404
|
+
"--warning-50": "32 92% 97%",
|
|
405
|
+
"--warning-500": "32 92% 62%",
|
|
406
|
+
"--warning-600": "32 92% 44%",
|
|
407
|
+
"--warning-700": "32 92% 32%",
|
|
408
|
+
"--warning-800": "32 92% 18%",
|
|
409
|
+
"--warning-900": "38 55% 10%",
|
|
410
|
+
"--warning-950": "32 92% 6%",
|
|
411
|
+
"--warning-foreground": "32 92% 62%",
|
|
412
|
+
"--warning-muted": "38 55% 10%",
|
|
413
|
+
"--warning-strong": "32 92% 80%",
|
|
414
|
+
"--warning-stronger": "32 92% 88%",
|
|
415
|
+
"--warning-strongest": "32 92% 94%",
|
|
416
|
+
"--warning-weak": "32 92% 44%",
|
|
417
|
+
"--warning-weaker": "32 92% 32%",
|
|
418
|
+
"--warning-weakest": "32 92% 18%"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"tokens": {
|
|
422
|
+
"shape": {
|
|
423
|
+
"softBg": false,
|
|
424
|
+
"cardBorderless": false,
|
|
425
|
+
"cardElevation": "sm",
|
|
426
|
+
"tabsRounded": false
|
|
427
|
+
},
|
|
428
|
+
"voice": {
|
|
429
|
+
"personality": [
|
|
430
|
+
"Clear",
|
|
431
|
+
"Structured",
|
|
432
|
+
"Institutional",
|
|
433
|
+
"Trustworthy"
|
|
434
|
+
],
|
|
435
|
+
"avoid": [
|
|
436
|
+
"Decorative",
|
|
437
|
+
"Noisy",
|
|
438
|
+
"Off-brand whimsy"
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
"hasOverrides": false,
|
|
443
|
+
"hasTypography": false
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"index": {
|
|
447
|
+
"byId": {
|
|
448
|
+
"mgda": 0
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
---
|
|
2
|
+
# >>> DERIVED - regenerated by `npm run knowledge:sync`. Do not edit. <<<
|
|
3
|
+
derived:
|
|
4
|
+
schemaVersion: 1
|
|
5
|
+
id: accordion
|
|
6
|
+
sourceFile: packages/design-system/src/components/accordion.tsx
|
|
7
|
+
client: true
|
|
8
|
+
category: web-app-data
|
|
9
|
+
categoryFromBarrel: web-app-data
|
|
10
|
+
barrelExported: true
|
|
11
|
+
importPath: "@adres/mgda-ui"
|
|
12
|
+
exports:
|
|
13
|
+
- name: Accordion
|
|
14
|
+
kind: component
|
|
15
|
+
radixSource: "@radix-ui/react-accordion#Root"
|
|
16
|
+
typeText: "ForwardRefExoticComponent<(AccordionSingleProps | AccordionMultipleProps) & RefAttributes<HTMLDivElement>>"
|
|
17
|
+
- name: AccordionContent
|
|
18
|
+
kind: component
|
|
19
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionContentProps & RefAttributes<HTMLDivElement>, \"ref\"> & RefAttributes<HTMLDivElement>>"
|
|
20
|
+
- name: AccordionItem
|
|
21
|
+
kind: component
|
|
22
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionItemProps & RefAttributes<HTMLDivElement>, \"ref\"> & RefAttributes<HTMLDivElement>>"
|
|
23
|
+
- name: AccordionProps
|
|
24
|
+
kind: type
|
|
25
|
+
- name: AccordionTrigger
|
|
26
|
+
kind: component
|
|
27
|
+
typeText: "ForwardRefExoticComponent<Omit<AccordionTriggerProps & RefAttributes<HTMLButtonElement>, \"ref\"> & RefAttributes<HTMLButtonElement>>"
|
|
28
|
+
primaryExport: Accordion
|
|
29
|
+
subcomponents:
|
|
30
|
+
- AccordionContent
|
|
31
|
+
- AccordionItem
|
|
32
|
+
- AccordionTrigger
|
|
33
|
+
props: {}
|
|
34
|
+
extendsProps: []
|
|
35
|
+
variants: {}
|
|
36
|
+
variantSource: none
|
|
37
|
+
compoundVariants: []
|
|
38
|
+
sizeMaps: []
|
|
39
|
+
dataSlots: []
|
|
40
|
+
dependsOn:
|
|
41
|
+
internal: []
|
|
42
|
+
lib:
|
|
43
|
+
- cn
|
|
44
|
+
hooks: []
|
|
45
|
+
external:
|
|
46
|
+
- "@radix-ui/react-accordion"
|
|
47
|
+
- lucide-react
|
|
48
|
+
- react
|
|
49
|
+
contexts: []
|
|
50
|
+
stories:
|
|
51
|
+
- exportName: Default
|
|
52
|
+
id: components-accordion--default
|
|
53
|
+
- exportName: Multiple
|
|
54
|
+
id: components-accordion--multiple
|
|
55
|
+
storybookTitle: Components/Accordion
|
|
56
|
+
docsId: components-accordion--documentation
|
|
57
|
+
argTypeOptions: {}
|
|
58
|
+
resolvedCleanly: true
|
|
59
|
+
contractHash: "79b72715fcd7"
|
|
60
|
+
factsHash: "781b4b74c41d"
|
|
61
|
+
# >>> AUTHORED - humans own everything below this line. <<<
|
|
62
|
+
status: stable
|
|
63
|
+
summary: "A vertical stack of expand/collapse sections built on Radix Accordion, single or multi-open."
|
|
64
|
+
useWhen:
|
|
65
|
+
- "a list of items where only the relevant one(s) need to be expanded at a time - FAQs, collapsible settings groups, progressive disclosure of detail"
|
|
66
|
+
useInstead:
|
|
67
|
+
- id: data-list
|
|
68
|
+
when: "the content is a flat set of label/value pairs, not sections that expand and collapse"
|
|
69
|
+
- id: table
|
|
70
|
+
when: "the content is genuinely tabular (multiple columns of comparable data), not a list of expandable sections"
|
|
71
|
+
related:
|
|
72
|
+
- data-list
|
|
73
|
+
- table
|
|
74
|
+
a11y:
|
|
75
|
+
notes:
|
|
76
|
+
- "AccordionTrigger renders inside a Radix header wrapper, giving each section heading semantics for free - do not wrap it in your own heading element too."
|
|
77
|
+
- "Radix manages aria-expanded and the content's visibility/ARIA relationship automatically - no extra ARIA is needed on AccordionItem/AccordionContent."
|
|
78
|
+
keyboard:
|
|
79
|
+
- "Native Radix accordion keyboard behavior: arrow keys move focus between triggers, Home/End jump to the first/last trigger, Enter/Space toggles the focused section."
|
|
80
|
+
radixHandles: true
|
|
81
|
+
pitfalls:
|
|
82
|
+
- "type=\"single\" needs collapsible to allow closing the currently-open item - without it, exactly one item is always open and clicking the open item's own trigger does nothing."
|
|
83
|
+
- "type is a required, mode-changing prop - single allows at most one open item at a time, multiple allows any number open simultaneously; the shape of value/defaultValue (a string vs. a string array) depends on which mode is chosen."
|
|
84
|
+
- "className, type, collapsible, and value cannot be demonstrated in this file's machine-checked canonicalSnippet, because Accordion is a bare Radix re-export with no resolvable props - the same gap as separator/aspect-ratio in 15b-ii. See the fuller example in ## Usage."
|
|
85
|
+
canonicalSnippet: |
|
|
86
|
+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@adres/mgda-ui"
|
|
87
|
+
|
|
88
|
+
<Accordion>
|
|
89
|
+
<AccordionItem>
|
|
90
|
+
<AccordionTrigger>What is Adres?</AccordionTrigger>
|
|
91
|
+
<AccordionContent>
|
|
92
|
+
Adres is a multi-brand design system for property and education products.
|
|
93
|
+
</AccordionContent>
|
|
94
|
+
</AccordionItem>
|
|
95
|
+
</Accordion>
|
|
96
|
+
reviewedAt: 2026-09-01
|
|
97
|
+
reviewedAgainstContractHash: "79b72715fcd7"
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Usage
|
|
101
|
+
|
|
102
|
+
`Accordion` stacks expandable sections vertically - reach for it for FAQs,
|
|
103
|
+
collapsible settings groups, or any progressive-disclosure list where only
|
|
104
|
+
the relevant section(s) need to stay expanded. Reach for `DataList` instead
|
|
105
|
+
when the content is flat label/value pairs with nothing to expand, and
|
|
106
|
+
`Table` when the content is genuinely tabular.
|
|
107
|
+
|
|
108
|
+
`type` (`"single"` or `"multiple"`) is required and changes both behavior and
|
|
109
|
+
the shape of `value`/`defaultValue` (a single string vs. a string array).
|
|
110
|
+
With `type="single"`, also pass `collapsible` if the open item should be
|
|
111
|
+
closeable - without it, exactly one item stays open at all times.
|
|
112
|
+
|
|
113
|
+
`type`, `collapsible`, and `value` cannot appear in this file's
|
|
114
|
+
machine-checked `canonicalSnippet` above (see the pitfall on why). The real,
|
|
115
|
+
recommended usage:
|
|
116
|
+
|
|
117
|
+
```tsx
|
|
118
|
+
<Accordion type="single" collapsible className="ax:w-full ax:max-w-md">
|
|
119
|
+
<AccordionItem value="item-1">
|
|
120
|
+
<AccordionTrigger>What is Adres?</AccordionTrigger>
|
|
121
|
+
<AccordionContent>
|
|
122
|
+
Adres is a multi-brand design system for property and education products.
|
|
123
|
+
</AccordionContent>
|
|
124
|
+
</AccordionItem>
|
|
125
|
+
</Accordion>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Anatomy
|
|
129
|
+
|
|
130
|
+
| Part | Role |
|
|
131
|
+
| --- | --- |
|
|
132
|
+
| `Accordion` | Root. Holds `type` (single/multiple) and the open value(s). A direct Radix `Root` re-export. |
|
|
133
|
+
| `AccordionItem` | One section. Requires a unique `value` used to identify it as open or closed. |
|
|
134
|
+
| `AccordionTrigger` | The clickable header. Renders inside a Radix heading wrapper and rotates a chevron on open. |
|
|
135
|
+
| `AccordionContent` | The collapsible body. Animates open and closed via `data-state`, respecting reduced-motion. |
|