@supersoniks/concorde 5.0.3 → 5.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/.agents/skills/concorde-component-docs/SKILL.md +194 -0
  2. package/.agents/skills/concorde-component-docs/template.md +45 -0
  3. package/ai/cursor/rules/concorde-theme.mdc +1 -1
  4. package/ai/cursor/rules/concorde.mdc +1 -1
  5. package/ai/skills/concorde/SKILL.md +1 -1
  6. package/ai/skills/concorde-theme/SKILL.md +21 -10
  7. package/build-infos.json +1 -1
  8. package/concorde-core.bundle.js +515 -521
  9. package/concorde-core.es.js +5151 -5056
  10. package/dist/concorde-core.bundle.js +515 -521
  11. package/dist/concorde-core.es.js +5151 -5056
  12. package/dist/docs-mock-api-sw.js +2 -0
  13. package/dist/docs-mock-api-sw.js.map +2 -2
  14. package/docs/assets/index-CD4WyL6o.css +1 -0
  15. package/docs/assets/{index-BnK6OS7w.js → index-wVZpLVYW.js} +815 -808
  16. package/docs/crawl/core/components/ui/alert/alert.html +76 -5
  17. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +113 -5
  18. package/docs/crawl/core/components/ui/badge/badge.html +57 -8
  19. package/docs/crawl/core/components/ui/captcha/captcha.html +90 -8
  20. package/docs/crawl/core/components/ui/card/card.html +122 -12
  21. package/docs/crawl/core/components/ui/divider/divider.html +117 -31
  22. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +232 -101
  23. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +95 -52
  24. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +97 -38
  25. package/docs/crawl/core/components/ui/group/group.html +60 -38
  26. package/docs/crawl/core/components/ui/icon/icon.html +136 -47
  27. package/docs/crawl/core/components/ui/image/image.html +118 -6
  28. package/docs/crawl/core/components/ui/link/link.html +65 -7
  29. package/docs/crawl/core/components/ui/loader/loader.html +97 -23
  30. package/docs/crawl/core/components/ui/menu/menu.html +162 -90
  31. package/docs/crawl/core/components/ui/modal/modal.html +275 -50
  32. package/docs/crawl/core/components/ui/pop/pop.html +242 -124
  33. package/docs/crawl/core/components/ui/progress/progress.html +103 -30
  34. package/docs/crawl/core/components/ui/table/table.html +303 -171
  35. package/docs/crawl/core/components/ui/theme/theme.html +131 -0
  36. package/docs/crawl/core/components/ui/toast/toast.html +170 -59
  37. package/docs/crawl/core/components/ui/tooltip/tooltip.html +90 -29
  38. package/docs/crawl/docs/_decorators/ancestor-attribute.html +3 -2
  39. package/docs/crawl/docs/_getting-started/start.html +1 -1
  40. package/docs/crawl/docs/_getting-started/theming.html +311 -63
  41. package/docs/crawl/hubs/form-components.html +71 -49
  42. package/docs/crawl/index.html +7 -6
  43. package/docs/docs-mock-api-sw.js +2 -0
  44. package/docs/docs-mock-api-sw.js.map +2 -2
  45. package/docs/index.html +6 -4
  46. package/docs/llms-full.txt +1468 -405
  47. package/docs/llms.txt +23 -30
  48. package/docs/sitemap.xml +3 -0
  49. package/docs/src/core/components/ui/alert/alert.md +21 -2
  50. package/docs/src/core/components/ui/alert-messages/alert-messages.md +85 -0
  51. package/docs/src/core/components/ui/badge/badge.md +19 -6
  52. package/docs/src/core/components/ui/captcha/captcha.md +65 -6
  53. package/docs/src/core/components/ui/card/card.md +73 -10
  54. package/docs/src/core/components/ui/divider/divider.md +107 -13
  55. package/docs/src/core/components/ui/form/fieldset/fieldset.md +175 -99
  56. package/docs/src/core/components/ui/form/form-actions/form-actions.md +75 -52
  57. package/docs/src/core/components/ui/form/form-layout/form-layout.md +109 -34
  58. package/docs/src/core/components/ui/group/group.md +36 -36
  59. package/docs/src/core/components/ui/icon/icon.md +132 -43
  60. package/docs/src/core/components/ui/image/image.md +35 -3
  61. package/docs/src/core/components/ui/link/link.md +43 -5
  62. package/docs/src/core/components/ui/loader/loader.md +79 -22
  63. package/docs/src/core/components/ui/menu/menu.md +133 -92
  64. package/docs/src/core/components/ui/modal/modal.md +163 -47
  65. package/docs/src/core/components/ui/pop/pop.md +217 -123
  66. package/docs/src/core/components/ui/progress/progress.md +76 -30
  67. package/docs/src/core/components/ui/table/table.md +147 -171
  68. package/docs/src/core/components/ui/theme/theme.md +122 -0
  69. package/docs/src/core/components/ui/toast/toast.md +108 -58
  70. package/docs/src/core/components/ui/tooltip/tooltip.md +68 -26
  71. package/docs/src/docs/_decorators/ancestor-attribute.md +3 -2
  72. package/docs/src/docs/_getting-started/start.md +1 -1
  73. package/docs/src/docs/_getting-started/theming.md +223 -61
  74. package/docs/src/docs/search/docs-search.json +2504 -399
  75. package/docs/src/tsconfig.json +18 -0
  76. package/index.html +4 -2
  77. package/package.json +7 -1
  78. package/public/docs-mock-api-sw.js +2 -0
  79. package/public/docs-mock-api-sw.js.map +2 -2
  80. package/src/core/components/ui/_css/align.ts +1 -0
  81. package/src/core/components/ui/_css/type.ts +86 -8
  82. package/src/core/components/ui/_i18n/ui-aria-labels.ts +8 -0
  83. package/src/core/components/ui/alert/alert.md +21 -2
  84. package/src/core/components/ui/alert-messages/alert-messages.md +85 -0
  85. package/src/core/components/ui/badge/badge.md +19 -6
  86. package/src/core/components/ui/badge/badge.ts +8 -9
  87. package/src/core/components/ui/button/button.ts +5 -15
  88. package/src/core/components/ui/captcha/captcha.md +65 -6
  89. package/src/core/components/ui/card/card.md +73 -10
  90. package/src/core/components/ui/card/card.ts +24 -22
  91. package/src/core/components/ui/divider/divider.md +107 -13
  92. package/src/core/components/ui/divider/divider.ts +40 -33
  93. package/src/core/components/ui/form/fieldset/fieldset.md +175 -99
  94. package/src/core/components/ui/form/fieldset/fieldset.ts +15 -28
  95. package/src/core/components/ui/form/fieldset/legend.ts +13 -13
  96. package/src/core/components/ui/form/form-actions/form-actions.md +75 -52
  97. package/src/core/components/ui/form/form-actions/form-actions.ts +7 -5
  98. package/src/core/components/ui/form/form-layout/form-layout.md +109 -34
  99. package/src/core/components/ui/form/form-layout/form-layout.ts +27 -24
  100. package/src/core/components/ui/form/textarea/textarea.ts +4 -3
  101. package/src/core/components/ui/group/group.md +36 -36
  102. package/src/core/components/ui/group/group.ts +5 -10
  103. package/src/core/components/ui/icon/icon.md +132 -43
  104. package/src/core/components/ui/image/image.md +35 -3
  105. package/src/core/components/ui/link/link.md +43 -5
  106. package/src/core/components/ui/loader/loader.md +79 -22
  107. package/src/core/components/ui/loader/loader.ts +67 -27
  108. package/src/core/components/ui/loader/styles/fixed.ts +6 -11
  109. package/src/core/components/ui/menu/menu.md +133 -92
  110. package/src/core/components/ui/menu/menu.ts +53 -58
  111. package/src/core/components/ui/modal/modal.md +163 -47
  112. package/src/core/components/ui/modal/modal.ts +2 -4
  113. package/src/core/components/ui/pop/pop.md +217 -123
  114. package/src/core/components/ui/pop/pop.ts +0 -1
  115. package/src/core/components/ui/progress/progress.md +76 -30
  116. package/src/core/components/ui/progress/progress.ts +25 -56
  117. package/src/core/components/ui/table/table-caption.ts +2 -2
  118. package/src/core/components/ui/table/table-tbody.ts +3 -3
  119. package/src/core/components/ui/table/table-td.ts +23 -18
  120. package/src/core/components/ui/table/table-th.ts +8 -8
  121. package/src/core/components/ui/table/table-tr.ts +4 -4
  122. package/src/core/components/ui/table/table.md +147 -171
  123. package/src/core/components/ui/table/table.ts +20 -19
  124. package/src/core/components/ui/theme/theme-collection/auto.ts +15 -0
  125. package/src/core/components/ui/theme/theme-collection/core-variables.ts +8 -31
  126. package/src/core/components/ui/theme/theme-collection/dark.ts +1 -7
  127. package/src/core/components/ui/theme/theme-collection/light.ts +30 -26
  128. package/src/core/components/ui/theme/theme.md +122 -0
  129. package/src/core/components/ui/theme/theme.ts +30 -7
  130. package/src/core/components/ui/toast/toast-item.ts +6 -9
  131. package/src/core/components/ui/toast/toast.md +108 -58
  132. package/src/core/components/ui/toast/types.ts +1 -1
  133. package/src/core/components/ui/tooltip/tooltip.md +68 -26
  134. package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
  135. package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
  136. package/src/core/utils/AncestorAttributeObserver.ts +183 -70
  137. package/src/docs/_decorators/ancestor-attribute.md +3 -2
  138. package/src/docs/_getting-started/start.md +1 -1
  139. package/src/docs/_getting-started/theming.md +223 -61
  140. package/src/docs/code.ts +125 -58
  141. package/src/docs/header/header.ts +62 -54
  142. package/src/docs/mock-api/router.ts +2 -0
  143. package/src/docs/navigation/navigation.ts +6 -3
  144. package/src/docs/search/docs-search.json +2504 -399
  145. package/src/docs/search/markdown-renderer.ts +6 -6
  146. package/src/docs/search/search.ts +4 -4
  147. package/src/docs/tailwind/css/tailwind.css +6 -5
  148. package/src/tsconfig.json +18 -0
  149. package/src/tsconfig.tsbuildinfo +1 -1
  150. package/tailwind.config.js +19 -0
  151. package/docs/assets/index--GpD7R7a.css +0 -1
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Card — Concorde</title>
7
- <meta name="description" content="A surface for grouped content: padding, radius, shadow, and semantic type colors via shared theme tokens. Compose sonic-card-header, sonic-card-main, and sonic-card-footer inside the card, or put any ">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, sonic-card-header, sonic-card-main, sonic-card-footer, base, light, invert, neutral, primary">
7
+ <meta name="description" content="Cards group related content on a padded surface with radius, theme type colors, and elevation. Default shadow is lg. Compose sonic-card-header / sonic-card-main / sonic-card-footer, or place any marku">
8
+ <meta name="keywords" content="Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, shadow, lg, sonic-card-header, sonic-card-main, sonic-card-footer, base, default, light">
9
9
  <meta name="concorde-doc-id" content="core/components/ui/card/card">
10
10
  <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html">
11
11
  </head>
@@ -15,14 +15,20 @@
15
15
  </header>
16
16
  <main>
17
17
  <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Card</strong>. A surface for grouped content: padding, radius, shadow, and semantic type colors via shared theme tokens. Compose sonic-card-header, sonic-card-main, and sonic-card-footer inside the card, or put any <span>Doc ID: <code>core/components/ui/card/card</code>. Keywords: Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, sonic-card-header, sonic-card-main, sonic-card-footer, base, light, invert, neutral, primary. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html">https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html</a>.</span></p>
18
+ <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Card</strong>. Cards group related content on a padded surface with radius, theme type colors, and elevation. Default shadow is lg. Compose sonic-card-header / sonic-card-main / sonic-card-footer, or place any marku <span>Doc ID: <code>core/components/ui/card/card</code>. Keywords: Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, shadow, lg, sonic-card-header, sonic-card-main, sonic-card-footer, base, default, light. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html">https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html</a>.</span></p>
19
19
  <h1 id="card">Card</h1>
20
- <p>A <strong>surface</strong> for grouped content: padding, radius, shadow, and semantic <strong><code>type</code></strong> colors via shared theme tokens. Compose <strong><code>sonic-card-header</code></strong>, <strong><code>sonic-card-main</code></strong>, and <strong><code>sonic-card-footer</code></strong> inside the card, or put any markup in the default slot.</p>
21
- <p>Default <strong><code>type</code></strong> is <code>base</code> (page background). Use <code>light</code> for a subtle gray panel, <code>invert</code> / <code>neutral</code> for high-contrast blocks, and <code>primary</code>, <code>info</code>, <code>success</code>, <code>warning</code>, or <code>danger</code> for tinted surfaces (divider tokens apply on colored types).</p>
20
+ <p>Cards <strong>group related content</strong> on a padded surface with radius, theme <strong><code>type</code></strong> colors, and elevation. Default <strong><code>shadow</code></strong> is <code>lg</code>. Compose <strong><code>sonic-card-header</code></strong> / <strong><code>sonic-card-main</code></strong> / <strong><code>sonic-card-footer</code></strong>, or place any markup in the default slot.</p>
21
+ <h2 id="basic-example">Basic example</h2>
22
+ <pre><code>&lt;sonic-card class=&quot;max-w-sm&quot;&gt;
23
+ &lt;p class=&quot;m-0&quot;&gt;Related content on a raised surface.&lt;/p&gt;
24
+ &lt;/sonic-card&gt;
25
+ </code></pre>
22
26
  <h2 id="type">Type</h2>
27
+ <p>Default <strong><code>type</code></strong> is <code>base</code>. <strong><code>default</code></strong> and <strong><code>light</code></strong> share the same surface tokens.</p>
23
28
  <pre><code>&lt;div class=&quot;flex flex-wrap gap-3&quot;&gt;
24
29
  &lt;sonic-card type=&quot;base&quot; class=&quot;min-w-[8rem]&quot;&gt;Base&lt;/sonic-card&gt;
25
30
  &lt;sonic-card type=&quot;light&quot; class=&quot;min-w-[8rem]&quot;&gt;Light&lt;/sonic-card&gt;
31
+ &lt;sonic-card type=&quot;default&quot; class=&quot;min-w-[8rem]&quot;&gt;Default&lt;/sonic-card&gt;
26
32
  &lt;sonic-card type=&quot;primary&quot; class=&quot;min-w-[8rem]&quot;&gt;Primary&lt;/sonic-card&gt;
27
33
  &lt;sonic-card type=&quot;info&quot; class=&quot;min-w-[8rem]&quot;&gt;Info&lt;/sonic-card&gt;
28
34
  &lt;sonic-card type=&quot;success&quot; class=&quot;min-w-[8rem]&quot;&gt;Success&lt;/sonic-card&gt;
@@ -32,8 +38,18 @@
32
38
  &lt;sonic-card type=&quot;invert&quot; class=&quot;min-w-[8rem]&quot;&gt;Invert&lt;/sonic-card&gt;
33
39
  &lt;/div&gt;
34
40
  </code></pre>
41
+ <h2 id="shadow">Shadow</h2>
42
+ <p>Set <strong><code>shadow</code></strong> to control elevation. Default is <code>lg</code>.</p>
43
+ <pre><code>&lt;div class=&quot;grid gap-4 sm:grid-cols-2 max-w-2xl&quot;&gt;
44
+ &lt;sonic-card shadow=&quot;none&quot; class=&quot;min-h-[5rem] flex items-center justify-center&quot;&gt;None&lt;/sonic-card&gt;
45
+ &lt;sonic-card shadow=&quot;sm&quot; class=&quot;min-h-[5rem] flex items-center justify-center&quot;&gt;Small&lt;/sonic-card&gt;
46
+ &lt;sonic-card shadow=&quot;md&quot; class=&quot;min-h-[5rem] flex items-center justify-center&quot;&gt;Medium&lt;/sonic-card&gt;
47
+ &lt;sonic-card shadow=&quot;lg&quot; class=&quot;min-h-[5rem] flex items-center justify-center&quot;&gt;Large&lt;/sonic-card&gt;
48
+ &lt;/div&gt;
49
+ </code></pre>
35
50
  <h2 id="header">Header</h2>
36
- <p>Quick titles with <strong><code>label</code></strong> and <strong><code>description</code></strong> attributes, or full control through the default slot. <strong><code>slot=&quot;suffix&quot;</code></strong> aligns badges or actions on the right; suffix content does not shrink when the title wraps.</p>
51
+ <p>Quick titles with <strong><code>label</code></strong> and <strong><code>description</code></strong>, or full control through the default slot. <strong><code>slot=&quot;suffix&quot;</code></strong> aligns badges or actions on the right; suffix content does not shrink when the title wraps.</p>
52
+ <p><code>label</code> and <code>description</code> accept HTML (rendered as markup). Prefer plain text when possible; use <strong><code>sonic-card-header-description</code></strong> or the default slot for structured content.</p>
37
53
  <pre><code>&lt;div class=&quot;grid gap-4 max-w-xl&quot;&gt;
38
54
  &lt;sonic-card&gt;
39
55
  &lt;sonic-card-header
@@ -48,7 +64,7 @@
48
64
  &lt;sonic-card-header-description&gt;
49
65
  Choose what we email you about.
50
66
  &lt;/sonic-card-header-description&gt;
51
- &lt;sonic-badge slot=&quot;suffix&quot; type=&quot;warning&quot; size=&quot;xs&quot;&gt;3 new&lt;/sonic-badge&gt;
67
+ &lt;sonic-badge slot=&quot;suffix&quot; type=&quot;warning&quot; size=&quot;xs&quot;&gt;3 new&lt;/sonic-badge&gt;
52
68
  &lt;/sonic-card-header&gt;
53
69
  &lt;/sonic-card&gt;
54
70
 
@@ -81,7 +97,6 @@
81
97
  &lt;/sonic-card&gt;
82
98
  &lt;/div&gt;
83
99
  </code></pre>
84
- <p><code>label</code> and <code>description</code> accept HTML (rendered as markup). Prefer plain text when possible; use the slot for structured content.</p>
85
100
  <h2 id="main">Main</h2>
86
101
  <p>Optional wrapper for the primary content area (typography, media, forms).</p>
87
102
  <pre><code>&lt;sonic-card class=&quot;max-w-xl&quot;&gt;
@@ -103,7 +118,7 @@
103
118
  &lt;p class=&quot;m-0&quot;&gt;This project and all of its data will be removed permanently.&lt;/p&gt;
104
119
  &lt;/sonic-card-main&gt;
105
120
  &lt;sonic-card-footer&gt;
106
- &lt;sonic-divider&gt;&lt;/sonic-divider&gt;
121
+ &lt;sonic-divider&gt;&lt;/sonic-divider&gt;
107
122
  &lt;div class=&quot;flex flex-wrap gap-2 justify-end&quot;&gt;
108
123
  &lt;sonic-button variant=&quot;ghost&quot; size=&quot;sm&quot;&gt;Cancel&lt;/sonic-button&gt;
109
124
  &lt;sonic-button type=&quot;danger&quot; size=&quot;sm&quot;&gt;Delete&lt;/sonic-button&gt;
@@ -115,14 +130,14 @@
115
130
  <p>Header, media, body, and footer together.</p>
116
131
  <pre><code>&lt;sonic-card class=&quot;max-w-md&quot;&gt;
117
132
  &lt;sonic-card-header label=&quot;Featured route&quot; description=&quot;San Francisco → New York&quot;&gt;
118
- &lt;sonic-icon slot=&quot;suffix&quot; library=&quot;iconoir&quot; name=&quot;airplane&quot;&gt;&lt;/sonic-icon&gt;
133
+ &lt;sonic-icon slot=&quot;suffix&quot; library=&quot;iconoir&quot; name=&quot;airplane&quot; aria-hidden=&quot;true&quot;&gt;&lt;/sonic-icon&gt;
119
134
  &lt;/sonic-card-header&gt;
120
135
  &lt;sonic-card-main&gt;
121
136
  &lt;sonic-image
122
137
  rounded
123
138
  ratio=&quot;16/9&quot;
124
- src=&quot;https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=800&amp;q=80&quot;
125
- alt=&quot;&quot;
139
+ src=&quot;https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg&quot;
140
+ alt=&quot;Airplane wing above the clouds&quot;
126
141
  &gt;&lt;/sonic-image&gt;
127
142
  &lt;p class=&quot;mb-0&quot;&gt;
128
143
  Nonstop flight with flexible dates. Prices shown include taxes and fees.
@@ -136,6 +151,101 @@
136
151
  &lt;/sonic-card-footer&gt;
137
152
  &lt;/sonic-card&gt;
138
153
  </code></pre>
154
+ <h2 id="api-reference">API reference</h2>
155
+ <h3 id="sonic-card"><code>sonic-card</code></h3>
156
+ <table>
157
+ <thead>
158
+ <tr>
159
+ <th>Attribute</th>
160
+ <th>Values</th>
161
+ <th>Description</th>
162
+ </tr>
163
+ </thead>
164
+ <tbody><tr>
165
+ <td><code>type</code></td>
166
+ <td><code>base</code> (default) · <code>light</code> · <code>invert</code> · <code>default</code> · <code>primary</code> · <code>warning</code> · <code>danger</code> · <code>success</code> · <code>info</code> · <code>neutral</code></td>
167
+ <td>Semantic background and text (<code>default</code> and <code>light</code> share the same surface)</td>
168
+ </tr>
169
+ <tr>
170
+ <td><code>shadow</code></td>
171
+ <td><code>none</code> · <code>sm</code> · <code>md</code> · <code>lg</code> (default <code>lg</code>)</td>
172
+ <td>Elevation on the card surface</td>
173
+ </tr>
174
+ </tbody></table>
175
+ <table>
176
+ <thead>
177
+ <tr>
178
+ <th>Slot</th>
179
+ <th>Description</th>
180
+ </tr>
181
+ </thead>
182
+ <tbody><tr>
183
+ <td><em>(default)</em></td>
184
+ <td>Free-form content (header, main, footer, or direct markup)</td>
185
+ </tr>
186
+ </tbody></table>
187
+ <h3 id="sonic-card-header"><code>sonic-card-header</code></h3>
188
+ <table>
189
+ <thead>
190
+ <tr>
191
+ <th>Attribute</th>
192
+ <th>Values</th>
193
+ <th>Description</th>
194
+ </tr>
195
+ </thead>
196
+ <tbody><tr>
197
+ <td><code>label</code></td>
198
+ <td>HTML</td>
199
+ <td>Title (rendered as markup)</td>
200
+ </tr>
201
+ <tr>
202
+ <td><code>description</code></td>
203
+ <td>HTML</td>
204
+ <td>Subtitle below the title</td>
205
+ </tr>
206
+ </tbody></table>
207
+ <table>
208
+ <thead>
209
+ <tr>
210
+ <th>Slot</th>
211
+ <th>Description</th>
212
+ </tr>
213
+ </thead>
214
+ <tbody><tr>
215
+ <td><em>(default)</em></td>
216
+ <td>Custom title / description when attributes are not enough</td>
217
+ </tr>
218
+ <tr>
219
+ <td><code>suffix</code></td>
220
+ <td>Actions or badges aligned on the right (does not shrink)</td>
221
+ </tr>
222
+ </tbody></table>
223
+ <h3 id="sonic-card-header-description"><code>sonic-card-header-description</code></h3>
224
+ <table>
225
+ <thead>
226
+ <tr>
227
+ <th>Slot</th>
228
+ <th>Description</th>
229
+ </tr>
230
+ </thead>
231
+ <tbody><tr>
232
+ <td><em>(default)</em></td>
233
+ <td>Subtitle text; styled below the title when slotted in <strong><code>sonic-card-header</code></strong></td>
234
+ </tr>
235
+ </tbody></table>
236
+ <h3 id="sonic-card-main--sonic-card-footer"><code>sonic-card-main</code> · <code>sonic-card-footer</code></h3>
237
+ <table>
238
+ <thead>
239
+ <tr>
240
+ <th>Slot</th>
241
+ <th>Description</th>
242
+ </tr>
243
+ </thead>
244
+ <tbody><tr>
245
+ <td><em>(default)</em></td>
246
+ <td>Primary content (<code>main</code>) or actions / metadata (<code>footer</code>)</td>
247
+ </tr>
248
+ </tbody></table>
139
249
 
140
250
  </article>
141
251
  </main>
@@ -4,16 +4,8 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Divider — Concorde</title>
7
- <meta name="description" content="Default
8
-
9
- Align
10
-
11
- Size
12
-
13
- Custom
14
-
15
- Lorem ipsum dolor sit amet +25">
16
- <meta name="keywords" content="Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component">
7
+ <meta name="description" content="sonic-divider draws a horizontal or vertical rule with optional centered label copy. Use it to separate sections in forms, cards, and sonic-menu. Set label for simple HTML captions or use the default ">
8
+ <meta name="keywords" content="Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component, sonic-menu, label, align, center, lineStyle, solid, size, 0.5rem">
17
9
  <meta name="concorde-doc-id" content="core/components/ui/divider/divider">
18
10
  <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">
19
11
  </head>
@@ -23,34 +15,128 @@ Custom
23
15
  </header>
24
16
  <main>
25
17
  <article>
26
- <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Divider</strong>. Default
27
-
28
- Align
29
-
30
- Size
31
-
32
- Custom
33
-
34
- Lorem ipsum dolor sit amet +25 <span>Doc ID: <code>core/components/ui/divider/divider</code>. Keywords: Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html</a>.</span></p>
18
+ <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Divider</strong>. sonic-divider draws a horizontal or vertical rule with optional centered label copy. Use it to separate sections in forms, cards, and sonic-menu. Set label for simple HTML captions or use the default <span>Doc ID: <code>core/components/ui/divider/divider</code>. Keywords: Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component, sonic-menu, label, align, center, lineStyle, solid, size, 0.5rem. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html</a>.</span></p>
35
19
  <h1 id="divider">Divider</h1>
36
- <h2 id="default">Default</h2>
20
+ <p><strong><code>sonic-divider</code></strong> draws a horizontal or vertical rule with optional <strong>centered label</strong> copy. Use it to separate sections in forms, cards, and <strong><code>sonic-menu</code></strong>. Set <strong><code>label</code></strong> for simple HTML captions or use the <strong>default slot</strong> for richer markup; default <strong><code>align</code></strong> is <strong><code>center</code></strong> and default <strong><code>lineStyle</code></strong> is <strong><code>solid</code></strong>.</p>
21
+ <h2 id="basic-example">Basic example</h2>
22
+ <p>A bare divider is a full-width line with vertical margin. Omit <strong><code>size</code></strong> to use the host default spacing (<code>0.5rem</code> block margin).</p>
37
23
  <pre><code>&lt;sonic-divider&gt;&lt;/sonic-divider&gt;
38
24
  </code></pre>
39
- <h2 id="align">Align</h2>
40
- <pre><code>&lt;sonic-divider label=&quot;Default centered label&quot;&gt;&lt;/sonic-divider&gt;
41
- &lt;sonic-divider label=&quot;Right&quot; align=&quot;right&quot;&gt;&lt;/sonic-divider&gt;
42
- &lt;sonic-divider label=&quot;Center&quot; align=&quot;center&quot;&gt;&lt;/sonic-divider&gt;
43
- &lt;sonic-divider label=&quot;Left&quot; align=&quot;left&quot;&gt;&lt;/sonic-divider&gt;
25
+ <h2 id="label-and-align">Label and align</h2>
26
+ <p><strong><code>label</code></strong> renders inside the line (HTML via the same pipeline as other form labels). <strong><code>align</code></strong> controls which side(s) of the line remain visible: <strong><code>left</code></strong> drops the leading segment, <strong><code>right</code></strong> drops the trailing segment, <strong><code>center</code></strong> keeps both.</p>
27
+ <pre><code>&lt;div class=&quot;grid gap-4&quot;&gt;
28
+ &lt;sonic-divider label=&quot;Default centered label&quot;&gt;&lt;/sonic-divider&gt;
29
+ &lt;sonic-divider label=&quot;Left&quot; align=&quot;left&quot;&gt;&lt;/sonic-divider&gt;
30
+ &lt;sonic-divider label=&quot;Center&quot; align=&quot;center&quot;&gt;&lt;/sonic-divider&gt;
31
+ &lt;sonic-divider label=&quot;Right&quot; align=&quot;right&quot;&gt;&lt;/sonic-divider&gt;
32
+ &lt;/div&gt;
44
33
  </code></pre>
45
34
  <h2 id="size">Size</h2>
46
- <pre><code>&lt;sonic-divider size=&quot;xs&quot; label=&quot;xs&quot;&gt;&lt;/sonic-divider&gt;
47
- &lt;sonic-divider size=&quot;sm&quot; label=&quot;sm&quot;&gt;&lt;/sonic-divider&gt;
48
- &lt;sonic-divider size=&quot;md&quot; label=&quot;md&quot;&gt;&lt;/sonic-divider&gt;
49
- &lt;sonic-divider size=&quot;lg&quot; label=&quot;lg&quot;&gt;&lt;/sonic-divider&gt;
35
+ <p><strong><code>size</code></strong> adjusts block margin and label font size. Values follow the shared Concorde scale (<code>2xs</code> … <code>2xl</code>).</p>
36
+ <pre><code>&lt;div class=&quot;grid gap-4&quot;&gt;
37
+ &lt;sonic-divider size=&quot;2xs&quot; label=&quot;2xs&quot;&gt;&lt;/sonic-divider&gt;
38
+ &lt;sonic-divider size=&quot;xs&quot; label=&quot;xs&quot;&gt;&lt;/sonic-divider&gt;
39
+ &lt;sonic-divider size=&quot;sm&quot; label=&quot;sm&quot;&gt;&lt;/sonic-divider&gt;
40
+ &lt;sonic-divider size=&quot;md&quot; label=&quot;md&quot;&gt;&lt;/sonic-divider&gt;
41
+ &lt;sonic-divider size=&quot;lg&quot; label=&quot;lg&quot;&gt;&lt;/sonic-divider&gt;
42
+ &lt;sonic-divider size=&quot;xl&quot; label=&quot;xl&quot;&gt;&lt;/sonic-divider&gt;
43
+ &lt;sonic-divider size=&quot;2xl&quot; label=&quot;2xl&quot;&gt;&lt;/sonic-divider&gt;
44
+ &lt;/div&gt;
45
+ </code></pre>
46
+ <h2 id="line-style">Line style</h2>
47
+ <p><strong><code>lineStyle</code></strong> sets the stroke of the rule (<code>solid</code> · <code>dashed</code> · <code>dotted</code>). In HTML use the reflected attribute <strong><code>linestyle</code></strong> (case-insensitive).</p>
48
+ <pre><code>&lt;div class=&quot;grid gap-4&quot;&gt;
49
+ &lt;sonic-divider label=&quot;Solid&quot;&gt;&lt;/sonic-divider&gt;
50
+ &lt;sonic-divider label=&quot;Dashed&quot; lineStyle=&quot;dashed&quot;&gt;&lt;/sonic-divider&gt;
51
+ &lt;sonic-divider label=&quot;Dotted&quot; lineStyle=&quot;dotted&quot;&gt;&lt;/sonic-divider&gt;
52
+ &lt;/div&gt;
53
+ </code></pre>
54
+ <h2 id="vertical-and-margin">Vertical and margin</h2>
55
+ <p>Set <strong><code>vertical</code></strong> for a column rule (for example between toolbar actions). <strong><code>noMargin</code></strong> removes host margin when a parent layout already provides spacing.</p>
56
+ <pre><code>&lt;div class=&quot;flex items-stretch gap-2&quot; style=&quot;min-height: 3rem;&quot;&gt;
57
+ &lt;span class=&quot;flex items-center px-2&quot;&gt;Before&lt;/span&gt;
58
+ &lt;sonic-divider vertical noMargin&gt;&lt;/sonic-divider&gt;
59
+ &lt;span class=&quot;flex items-center px-2&quot;&gt;After&lt;/span&gt;
60
+ &lt;/div&gt;
61
+ </code></pre>
62
+ <h2 id="default-slot">Default slot</h2>
63
+ <p>Slotted content replaces or augments <strong><code>label</code></strong>. Useful for badges, icons, or mixed markup in menus.</p>
64
+ <pre><code>&lt;sonic-divider&gt;
65
+ &lt;span class=&quot;mr-2&quot;&gt;Section title&lt;/span&gt;
66
+ &lt;sonic-badge type=&quot;danger&quot;&gt;+25&lt;/sonic-badge&gt;
67
+ &lt;/sonic-divider&gt;
50
68
  </code></pre>
51
- <h2 id="custom">Custom</h2>
52
- <pre><code>&lt;sonic-divider&gt;&lt;span class=&quot;mr-2&quot;&gt;Lorem ipsum dolor sit amet&lt;/span&gt;&lt;sonic-badge type=&quot;danger&quot;&gt;+25&lt;/sonic-badge&gt;&lt;/sonic-divider&gt;
69
+ <h2 id="inside-typed-cards">Inside typed cards</h2>
70
+ <p>On <strong><code>sonic-card</code></strong> with semantic <strong><code>type</code></strong> (<code>primary</code> · <code>warning</code> · <code>danger</code> · <code>info</code> · <code>success</code>), the rule uses the card’s text color at reduced opacity so it stays visible on tinted surfaces. <strong><code>label</code></strong> and slotted captions use the same foreground color as surrounding copy.</p>
71
+ <pre><code>&lt;div class=&quot;grid gap-4 max-w-xl&quot;&gt;
72
+ &lt;sonic-card type=&quot;danger&quot;&gt;
73
+ &lt;div&gt;This action cannot be undone.&lt;/div&gt;
74
+ &lt;sonic-divider label=&quot;Affected resources&quot;&gt;&lt;/sonic-divider&gt;
75
+ &lt;ul class=&quot;m-0 pl-5 text-sm&quot;&gt;
76
+ &lt;li&gt;Project files&lt;/li&gt;
77
+ &lt;li&gt;Shared links&lt;/li&gt;
78
+ &lt;/ul&gt;
79
+ &lt;/sonic-card&gt;
80
+ &lt;sonic-card type=&quot;info&quot;&gt;
81
+ &lt;div&gt;Maintenance is scheduled for tonight.&lt;/div&gt;
82
+ &lt;sonic-divider&gt;&lt;/sonic-divider&gt;
83
+ &lt;div class=&quot;opacity-60&quot;&gt;Expected downtime: about 15 minutes.&lt;/div&gt;
84
+ &lt;/sonic-card&gt;
85
+ &lt;/div&gt;
53
86
  </code></pre>
87
+ <h2 id="api-reference">API reference</h2>
88
+ <table>
89
+ <thead>
90
+ <tr>
91
+ <th>Attribute</th>
92
+ <th>Values</th>
93
+ <th>Description</th>
94
+ </tr>
95
+ </thead>
96
+ <tbody><tr>
97
+ <td><code>label</code></td>
98
+ <td>string (HTML)</td>
99
+ <td>Caption centered on the rule; combined with default-slot content when both are set</td>
100
+ </tr>
101
+ <tr>
102
+ <td><code>align</code></td>
103
+ <td><code>left</code> · <code>center</code> · <code>right</code> (default <code>center</code>)</td>
104
+ <td>Hides the leading or trailing line segment for left/right alignment</td>
105
+ </tr>
106
+ <tr>
107
+ <td><code>size</code></td>
108
+ <td><code>2xs</code> · <code>xs</code> · <code>sm</code> · <code>md</code> · <code>lg</code> · <code>xl</code> · <code>2xl</code> · <code>inherit</code></td>
109
+ <td>Vertical margin and label <code>font-size</code>; omit for host defaults</td>
110
+ </tr>
111
+ <tr>
112
+ <td><code>lineStyle</code></td>
113
+ <td><code>solid</code> · <code>dashed</code> · <code>dotted</code> (default <code>solid</code>)</td>
114
+ <td>Stroke style of the rule (HTML attribute <code>linestyle</code>)</td>
115
+ </tr>
116
+ <tr>
117
+ <td><code>vertical</code></td>
118
+ <td>boolean</td>
119
+ <td>Renders a vertical rule; swap block/inline margins</td>
120
+ </tr>
121
+ <tr>
122
+ <td><code>noMargin</code></td>
123
+ <td>boolean</td>
124
+ <td>Sets host margin to <code>0</code></td>
125
+ </tr>
126
+ </tbody></table>
127
+ <table>
128
+ <thead>
129
+ <tr>
130
+ <th>Slot</th>
131
+ <th>Description</th>
132
+ </tr>
133
+ </thead>
134
+ <tbody><tr>
135
+ <td><em>(default)</em></td>
136
+ <td>Label markup when <strong><code>label</code></strong> is insufficient or empty</td>
137
+ </tr>
138
+ </tbody></table>
139
+ <p>The inner flex container exposes <strong><code>part=&quot;divider&quot;</code></strong> for theme overrides.</p>
54
140
 
55
141
  </article>
56
142
  </main>