@supersoniks/concorde 5.0.5 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/.github/workflows/ci.yml +21 -0
  2. package/.github-export-ignore +30 -0
  3. package/.tmp-cem/custom-elements.json +13705 -0
  4. package/CONTRIBUTING.md +59 -0
  5. package/DEV.md +54 -0
  6. package/LICENSE +21 -0
  7. package/OPEN_SOURCE_CHECKPOINT.md +133 -0
  8. package/build-infos.json +1 -1
  9. package/concorde-3d.bundle.js +3960 -0
  10. package/concorde-3d.es.js +33433 -0
  11. package/concorde-core.bundle.js +196 -196
  12. package/concorde-core.es.js +3685 -3405
  13. package/concorde-hugging-face-infer.bundle.js +32 -0
  14. package/concorde-hugging-face-infer.es.js +2952 -0
  15. package/concorde-interactive.bundle.js +1157 -0
  16. package/concorde-interactive.es.js +10734 -0
  17. package/concorde-shader.bundle.js +116 -0
  18. package/concorde-shader.es.js +8353 -0
  19. package/concorde-webgpu.bundle.js +307 -0
  20. package/concorde-webgpu.es.js +8627 -0
  21. package/custom-elements-manifest.config.mjs +14 -0
  22. package/dist/concorde-core.bundle.js +196 -196
  23. package/dist/concorde-core.es.js +3685 -3405
  24. package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
  25. package/docs/assets/index-DiD0qYvE.css +1 -0
  26. package/docs/crawl/core/components/ui/alert/alert.html +71 -172
  27. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
  28. package/docs/crawl/core/components/ui/badge/badge.html +79 -157
  29. package/docs/crawl/core/components/ui/button/button.html +0 -1
  30. package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
  31. package/docs/crawl/core/components/ui/card/card.html +68 -222
  32. package/docs/crawl/core/components/ui/divider/divider.html +31 -117
  33. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
  34. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
  35. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
  36. package/docs/crawl/core/components/ui/form/input/input.html +3 -3
  37. package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
  38. package/docs/crawl/core/components/ui/group/group.html +38 -60
  39. package/docs/crawl/core/components/ui/icon/icon.html +47 -136
  40. package/docs/crawl/core/components/ui/image/image.html +56 -244
  41. package/docs/crawl/core/components/ui/link/link.html +9 -67
  42. package/docs/crawl/core/components/ui/loader/loader.html +23 -97
  43. package/docs/crawl/core/components/ui/menu/menu.html +90 -162
  44. package/docs/crawl/core/components/ui/modal/modal.html +50 -275
  45. package/docs/crawl/core/components/ui/pop/pop.html +66 -260
  46. package/docs/crawl/core/components/ui/progress/progress.html +30 -103
  47. package/docs/crawl/core/components/ui/table/table.html +171 -303
  48. package/docs/crawl/core/components/ui/toast/toast.html +59 -170
  49. package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
  50. package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
  51. package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
  52. package/docs/crawl/docs/_getting-started/start.html +1 -1
  53. package/docs/crawl/docs/_getting-started/theming.html +63 -311
  54. package/docs/crawl/hubs/form-components.html +53 -75
  55. package/docs/crawl/index.html +6 -7
  56. package/docs/docs-mock-api-sw.js +0 -2
  57. package/docs/docs-mock-api-sw.js.map +2 -2
  58. package/docs/index.html +7 -9
  59. package/docs/llms-full.txt +456 -1703
  60. package/docs/llms.txt +32 -25
  61. package/docs/sitemap.xml +0 -3
  62. package/docs/src/core/components/functional/fetch/fetch.md +0 -0
  63. package/docs/src/core/components/functional/if/if.md +0 -0
  64. package/docs/src/core/components/functional/list/list.md +0 -0
  65. package/docs/src/core/components/functional/router/router.md +0 -0
  66. package/docs/src/core/components/functional/sdui/sdui.md +0 -0
  67. package/docs/src/core/components/functional/states/states.md +0 -0
  68. package/docs/src/core/components/functional/submit/submit.md +0 -0
  69. package/docs/src/core/components/ui/alert/alert.md +72 -147
  70. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
  71. package/docs/src/core/components/ui/badge/badge.md +80 -141
  72. package/docs/src/core/components/ui/button/button.md +0 -1
  73. package/docs/src/core/components/ui/captcha/captcha.md +6 -65
  74. package/docs/src/core/components/ui/card/card.md +65 -183
  75. package/docs/src/core/components/ui/divider/divider.md +13 -107
  76. package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
  77. package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
  78. package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
  79. package/docs/src/core/components/ui/form/input/input.md +1 -1
  80. package/docs/src/core/components/ui/form/radio/radio.md +0 -0
  81. package/docs/src/core/components/ui/form/select/select.md +0 -0
  82. package/docs/src/core/components/ui/form/switch/switch.md +0 -0
  83. package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
  84. package/docs/src/core/components/ui/group/group.md +36 -36
  85. package/docs/src/core/components/ui/icon/icon.md +43 -132
  86. package/docs/src/core/components/ui/image/image.md +53 -179
  87. package/docs/src/core/components/ui/link/link.md +7 -45
  88. package/docs/src/core/components/ui/loader/loader.md +22 -79
  89. package/docs/src/core/components/ui/menu/menu.md +92 -133
  90. package/docs/src/core/components/ui/modal/modal.md +47 -163
  91. package/docs/src/core/components/ui/pop/pop.md +64 -262
  92. package/docs/src/core/components/ui/progress/progress.md +30 -76
  93. package/docs/src/core/components/ui/table/table.md +171 -147
  94. package/docs/src/core/components/ui/toast/toast.md +58 -108
  95. package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
  96. package/docs/src/docs/_core-concept/subscriber.md +0 -0
  97. package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
  98. package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
  99. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
  100. package/docs/src/docs/_getting-started/pubsub.md +0 -0
  101. package/docs/src/docs/_getting-started/start.md +1 -1
  102. package/docs/src/docs/_getting-started/theming.md +61 -223
  103. package/docs/src/docs/search/docs-search.json +348 -3083
  104. package/docs/src/tsconfig.declarations.json +22 -0
  105. package/docs/src/tsconfig.emit.json +23 -0
  106. package/docs/src/tsconfig.json +3 -63
  107. package/gitlab/job_github_mirror.sh +39 -0
  108. package/package.json +36 -2
  109. package/scripts/generate-sdui-catalog.mjs +250 -0
  110. package/scripts/generate-sdui-catalog.spec.ts +91 -0
  111. package/scripts/github-export.mjs +150 -0
  112. package/scripts/post-build-docs.js +0 -0
  113. package/scripts/post-build.mjs +0 -0
  114. package/scripts/pre-build.mjs +15 -0
  115. package/src/core/components/functional/fetch/fetch.md +0 -0
  116. package/src/core/components/functional/if/if.md +0 -0
  117. package/src/core/components/functional/if/if.ts +0 -0
  118. package/src/core/components/functional/list/list.demo.ts +0 -0
  119. package/src/core/components/functional/list/list.md +0 -0
  120. package/src/core/components/functional/router/router.md +0 -0
  121. package/src/core/components/functional/router/router.ts +0 -0
  122. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
  123. package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
  124. package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
  125. package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
  126. package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
  127. package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
  128. package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
  129. package/src/core/components/functional/sdui/component-catalog.json +3103 -0
  130. package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
  131. package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
  132. package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
  133. package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
  134. package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
  135. package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
  136. package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
  137. package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
  138. package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
  139. package/src/core/components/functional/sdui/sdui.md +122 -0
  140. package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
  141. package/src/core/components/functional/sdui/sdui.ts +442 -34
  142. package/src/core/components/functional/sdui/types.ts +49 -0
  143. package/src/core/components/functional/states/states.md +0 -0
  144. package/src/core/components/functional/submit/submit.md +0 -0
  145. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  146. package/src/core/components/functional/value/value.ts +0 -0
  147. package/src/core/components/ui/_css/size.ts +0 -0
  148. package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
  149. package/src/core/components/ui/form/radio/radio.md +0 -0
  150. package/src/core/components/ui/form/select/select.md +0 -0
  151. package/src/core/components/ui/form/switch/switch.md +0 -0
  152. package/src/core/mixins/Subscriber.ts +0 -0
  153. package/src/core/utils/DataBindObserver.ts +0 -0
  154. package/src/core/utils/Objects.ts +0 -0
  155. package/src/core/utils/route.ts +0 -0
  156. package/src/css.d.ts +19 -0
  157. package/src/docs/_core-concept/subscriber.md +0 -0
  158. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  159. package/src/docs/_getting-started/pubsub.md +0 -0
  160. package/src/docs/example/users.ts +0 -0
  161. package/src/docs/search/page.ts +0 -0
  162. package/src/tsconfig.declarations.json +22 -0
  163. package/src/tsconfig.emit.json +23 -0
  164. package/src/tsconfig.json +90 -0
  165. package/src/tsconfig.tsbuildinfo +1 -1
  166. package/docs/assets/index-CD4WyL6o.css +0 -1
  167. package/docs/crawl/core/components/ui/theme/theme.html +0 -131
  168. package/docs/src/core/components/ui/theme/theme.md +0 -122
@@ -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>Pop — Concorde</title>
7
- <meta name="description" content="sonic-pop anchors floating panels to a trigger: put the control in the default slot and the panel in slot=&quot;content&quot; (menus, forms, custom markup). Click toggles open/closed unless manual is set; defau">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/ui/pop/pop, pop, Pop, UI component, sonic-pop, web component, slot=&quot;content&quot;, manual, placement, bottom, top, left, right, -start">
7
+ <meta name="description" content="Click to open pop">
8
+ <meta name="keywords" content="Concorde, supersoniks, core/components/ui/pop/pop, pop, Pop, UI component, sonic-pop, web component">
9
9
  <meta name="concorde-doc-id" content="core/components/ui/pop/pop">
10
10
  <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/pop/pop.html">
11
11
  </head>
@@ -15,280 +15,86 @@
15
15
  </header>
16
16
  <main>
17
17
  <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Pop</strong>. sonic-pop anchors floating panels to a trigger: put the control in the default slot and the panel in slot=&quot;content&quot; (menus, forms, custom markup). Click toggles open/closed unless manual is set; defau <span>Doc ID: <code>core/components/ui/pop/pop</code>. Keywords: Concorde, supersoniks, core/components/ui/pop/pop, pop, Pop, UI component, sonic-pop, web component, slot=&quot;content&quot;, manual, placement, bottom, top, left, right, -start. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/pop/pop.html">https://concorde.supersoniks.org/crawl/core/components/ui/pop/pop.html</a>.</span></p>
18
+ <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Pop</strong>. Click to open pop <span>Doc ID: <code>core/components/ui/pop/pop</code>. Keywords: Concorde, supersoniks, core/components/ui/pop/pop, pop, Pop, UI component, sonic-pop, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/pop/pop.html">https://concorde.supersoniks.org/crawl/core/components/ui/pop/pop.html</a>.</span></p>
19
19
  <h1 id="pop">Pop</h1>
20
- <p><strong><code>sonic-pop</code></strong> anchors floating panels to a trigger: put the control in the <strong>default slot</strong> and the panel in <strong><code>slot=&quot;content&quot;</code></strong> (menus, forms, custom markup). Click toggles open/closed unless <strong><code>manual</code></strong> is set; default <strong><code>placement</code></strong> is <strong><code>bottom</code></strong> (start-aligned). Position updates while open and flips inside the viewport when space is tight.</p>
21
- <h2 id="basic-example">Basic example</h2>
22
- <pre><code>&lt;sonic-pop class=&quot;inline-block&quot;&gt;
23
- &lt;sonic-button&gt;Notifications&lt;/sonic-button&gt;
20
+ <h2 id="placement">Placement</h2>
21
+ <pre><code>&lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;left&quot;&gt;
22
+ &lt;sonic-button&gt;Left&lt;/sonic-button&gt;
24
23
  &lt;sonic-menu slot=&quot;content&quot;&gt;
25
- &lt;sonic-menu-item&gt;
26
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
27
- Notifications
28
- &lt;/sonic-menu-item&gt;
29
- &lt;sonic-menu-item&gt;
30
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;settings&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
31
- Settings
32
- &lt;/sonic-menu-item&gt;
24
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
25
+ &lt;/sonic-menu&gt;
26
+ &lt;/sonic-pop&gt;
27
+ &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;right&quot;&gt;
28
+ &lt;sonic-button&gt;Right&lt;/sonic-button&gt;
29
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
30
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
31
+ &lt;/sonic-menu&gt;
32
+ &lt;/sonic-pop&gt;
33
+ &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;top&quot;&gt;
34
+ &lt;sonic-button&gt;Top&lt;/sonic-button&gt;
35
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
36
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
37
+ &lt;/sonic-menu&gt;
38
+ &lt;/sonic-pop&gt;
39
+ &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;bottom&quot;&gt;
40
+ &lt;sonic-button&gt;Bottom&lt;/sonic-button&gt;
41
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
42
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
33
43
  &lt;/sonic-menu&gt;
34
44
  &lt;/sonic-pop&gt;
35
- </code></pre>
36
- <h2 id="placement">Placement</h2>
37
- <p>Use <strong><code>top</code></strong> · <strong><code>bottom</code></strong> · <strong><code>left</code></strong> · <strong><code>right</code></strong> for the main axis. Add <strong><code>-start</code></strong> · <strong><code>-center</code></strong> · <strong><code>-end</code></strong> to align along the trigger edge. With no align suffix, content aligns to <strong><code>start</code></strong>. Legacy space syntax (<code>placement=&quot;bottom center&quot;</code>) still works but is deprecated—prefer <strong><code>bottom-center</code></strong>.</p>
38
- <pre><code>&lt;div class=&quot;flex flex-wrap gap-2&quot;&gt;
39
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;left&quot;&gt;
40
- &lt;sonic-button&gt;Left&lt;/sonic-button&gt;
41
- &lt;sonic-menu slot=&quot;content&quot;&gt;
42
- &lt;sonic-menu-item&gt;
43
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
44
- Notifications
45
- &lt;/sonic-menu-item&gt;
46
- &lt;/sonic-menu&gt;
47
- &lt;/sonic-pop&gt;
48
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;right&quot;&gt;
49
- &lt;sonic-button&gt;Right&lt;/sonic-button&gt;
50
- &lt;sonic-menu slot=&quot;content&quot;&gt;
51
- &lt;sonic-menu-item&gt;
52
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
53
- Notifications
54
- &lt;/sonic-menu-item&gt;
55
- &lt;/sonic-menu&gt;
56
- &lt;/sonic-pop&gt;
57
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;top&quot;&gt;
58
- &lt;sonic-button&gt;Top&lt;/sonic-button&gt;
59
- &lt;sonic-menu slot=&quot;content&quot;&gt;
60
- &lt;sonic-menu-item&gt;
61
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
62
- Notifications
63
- &lt;/sonic-menu-item&gt;
64
- &lt;/sonic-menu&gt;
65
- &lt;/sonic-pop&gt;
66
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;bottom&quot;&gt;
67
- &lt;sonic-button&gt;Bottom&lt;/sonic-button&gt;
68
- &lt;sonic-menu slot=&quot;content&quot;&gt;
69
- &lt;sonic-menu-item&gt;
70
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
71
- Notifications
72
- &lt;/sonic-menu-item&gt;
73
- &lt;/sonic-menu&gt;
74
- &lt;/sonic-pop&gt;
75
- &lt;/div&gt;
76
- </code></pre>
77
- <h3 id="center-aligned-sides">Center-aligned sides</h3>
78
- <pre><code>&lt;div class=&quot;flex flex-wrap gap-2&quot;&gt;
79
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;bottom-center&quot;&gt;
80
- &lt;sonic-button&gt;Bottom center&lt;/sonic-button&gt;
81
- &lt;sonic-menu slot=&quot;content&quot;&gt;
82
- &lt;sonic-menu-item&gt;
83
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
84
- Notifications
85
- &lt;/sonic-menu-item&gt;
86
- &lt;/sonic-menu&gt;
87
- &lt;/sonic-pop&gt;
88
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;top-center&quot;&gt;
89
- &lt;sonic-button&gt;Top center&lt;/sonic-button&gt;
90
- &lt;sonic-menu slot=&quot;content&quot;&gt;
91
- &lt;sonic-menu-item&gt;
92
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
93
- Notifications
94
- &lt;/sonic-menu-item&gt;
95
- &lt;/sonic-menu&gt;
96
- &lt;/sonic-pop&gt;
97
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;left-center&quot;&gt;
98
- &lt;sonic-button&gt;Left center&lt;/sonic-button&gt;
99
- &lt;sonic-menu slot=&quot;content&quot;&gt;
100
- &lt;sonic-menu-item&gt;
101
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
102
- Notifications
103
- &lt;/sonic-menu-item&gt;
104
- &lt;/sonic-menu&gt;
105
- &lt;/sonic-pop&gt;
106
- &lt;sonic-pop class=&quot;inline-block&quot; placement=&quot;right-center&quot;&gt;
107
- &lt;sonic-button&gt;Right center&lt;/sonic-button&gt;
108
- &lt;sonic-menu slot=&quot;content&quot;&gt;
109
- &lt;sonic-menu-item&gt;
110
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
111
- Notifications
112
- &lt;/sonic-menu-item&gt;
113
- &lt;/sonic-menu&gt;
114
- &lt;/sonic-pop&gt;
115
- &lt;/div&gt;
116
45
  </code></pre>
117
46
  <h2 id="shadow">Shadow</h2>
118
- <p>Default <strong><code>shadow</code></strong> is <strong><code>lg</code></strong>. The shadow applies to the floating <strong><code>content</code></strong> panel.</p>
119
- <pre><code>&lt;div class=&quot;flex flex-wrap gap-2&quot;&gt;
120
- &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;none&quot; placement=&quot;top&quot;&gt;
121
- &lt;sonic-button&gt;None&lt;/sonic-button&gt;
122
- &lt;sonic-menu slot=&quot;content&quot;&gt;
123
- &lt;sonic-menu-item&gt;
124
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
125
- Notifications
126
- &lt;/sonic-menu-item&gt;
127
- &lt;/sonic-menu&gt;
128
- &lt;/sonic-pop&gt;
129
- &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;sm&quot; placement=&quot;top&quot;&gt;
130
- &lt;sonic-button&gt;Small&lt;/sonic-button&gt;
131
- &lt;sonic-menu slot=&quot;content&quot;&gt;
132
- &lt;sonic-menu-item&gt;
133
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
134
- Notifications
135
- &lt;/sonic-menu-item&gt;
136
- &lt;/sonic-menu&gt;
137
- &lt;/sonic-pop&gt;
138
- &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;md&quot; placement=&quot;top&quot;&gt;
139
- &lt;sonic-button&gt;Medium&lt;/sonic-button&gt;
140
- &lt;sonic-menu slot=&quot;content&quot;&gt;
141
- &lt;sonic-menu-item&gt;
142
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
143
- Notifications
144
- &lt;/sonic-menu-item&gt;
145
- &lt;/sonic-menu&gt;
146
- &lt;/sonic-pop&gt;
147
- &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;lg&quot; placement=&quot;top&quot;&gt;
148
- &lt;sonic-button&gt;Large&lt;/sonic-button&gt;
149
- &lt;sonic-menu slot=&quot;content&quot;&gt;
150
- &lt;sonic-menu-item&gt;
151
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
152
- Notifications
153
- &lt;/sonic-menu-item&gt;
154
- &lt;/sonic-menu&gt;
155
- &lt;/sonic-pop&gt;
156
- &lt;/div&gt;
157
- </code></pre>
158
- <h2 id="inline">Inline</h2>
159
- <p>By default the host is middle-aligned with siblings. Set <strong><code>inline</code></strong> to baseline-align the trigger inside running text.</p>
160
- <pre><code>&lt;p&gt;
161
- The Concorde flew from Paris to
162
- &lt;sonic-pop inline&gt;
163
- &lt;sonic-button variant=&quot;link&quot;&gt;New York&lt;/sonic-button&gt;
164
- &lt;sonic-menu slot=&quot;content&quot;&gt;
165
- &lt;sonic-menu-item&gt;See flights&lt;/sonic-menu-item&gt;
166
- &lt;sonic-menu-item&gt;Book a seat&lt;/sonic-menu-item&gt;
167
- &lt;/sonic-menu&gt;
168
- &lt;/sonic-pop&gt;
169
- in about 3.5 hours.
170
- &lt;/p&gt;
47
+ <pre><code>&lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;none&quot; placement=&#39;top&#39; &gt;
48
+ &lt;sonic-button&gt;None&lt;/sonic-button&gt;
49
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
50
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
51
+ &lt;/sonic-menu&gt;
52
+ &lt;/sonic-pop&gt;
53
+ &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;sm&quot; placement=&#39;top&#39;&gt;
54
+ &lt;sonic-button&gt;Small&lt;/sonic-button&gt;
55
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
56
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
57
+ &lt;/sonic-menu&gt;
58
+ &lt;/sonic-pop&gt;
59
+ &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;md&quot; placement=&#39;top&#39;&gt;
60
+ &lt;sonic-button&gt;Medium&lt;/sonic-button&gt;
61
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
62
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
63
+ &lt;/sonic-menu&gt;
64
+ &lt;/sonic-pop&gt;
65
+ &lt;sonic-pop class=&quot;inline-block&quot; shadow=&quot;lg&quot; placement=&#39;top&#39;&gt;
66
+ &lt;sonic-button&gt;Large&lt;/sonic-button&gt;
67
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
68
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
69
+ &lt;/sonic-menu&gt;
70
+ &lt;/sonic-pop&gt;
171
71
  </code></pre>
172
- <h2 id="no-toggle">No toggle</h2>
173
- <p>With <strong><code>noToggle</code></strong>, a click on the trigger still opens the pop but does not close it when it is already open. Use <strong><code>hide()</code></strong> or an outside click to dismiss.</p>
174
- <pre><code>&lt;div class=&quot;flex flex-wrap gap-2&quot;&gt;
175
- &lt;sonic-pop class=&quot;inline-block&quot; noToggle&gt;
176
- &lt;sonic-button&gt;No toggle on click&lt;/sonic-button&gt;
177
- &lt;sonic-menu slot=&quot;content&quot;&gt;
178
- &lt;sonic-menu-item&gt;
179
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
180
- Notifications
181
- &lt;/sonic-menu-item&gt;
182
- &lt;/sonic-menu&gt;
183
- &lt;/sonic-pop&gt;
184
- &lt;sonic-pop class=&quot;inline-block&quot;&gt;
185
- &lt;sonic-button&gt;Default toggle on click&lt;/sonic-button&gt;
186
- &lt;sonic-menu slot=&quot;content&quot;&gt;
187
- &lt;sonic-menu-item&gt;
188
- &lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;
189
- Notifications
190
- &lt;/sonic-menu-item&gt;
191
- &lt;/sonic-menu&gt;
192
- &lt;/sonic-pop&gt;
193
- &lt;/div&gt;
72
+ <h2 id="notoggle">noToggle</h2>
73
+ <pre><code>&lt;sonic-pop class=&quot;inline-block&quot; noToggle&gt;
74
+ &lt;sonic-button&gt;No toggle on click&lt;/sonic-button&gt;
75
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
76
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
77
+ &lt;/sonic-menu&gt;
78
+ &lt;/sonic-pop&gt;
79
+ &lt;sonic-pop class=&quot;inline-block&quot; &gt;
80
+ &lt;sonic-button&gt;Default toggle on click&lt;/sonic-button&gt;
81
+ &lt;sonic-menu slot=&quot;content&quot;&gt;
82
+ &lt;sonic-menu-item&gt;&lt;sonic-icon library=&quot;iconoir&quot; name=&quot;bell-notification&quot; slot=&quot;prefix&quot;&gt;&lt;/sonic-icon&gt;Notifications&lt;/sonic-menu-item&gt;
83
+ &lt;/sonic-menu&gt;
84
+ &lt;/sonic-pop&gt;
194
85
  </code></pre>
195
- <h2 id="manual-control">Manual control</h2>
196
- <p>Set <strong><code>manual</code></strong> to disable built-in click and keyboard toggle on the trigger. Call <strong><code>show()</code></strong> and <strong><code>hide()</code></strong> on the element instead. The pop dispatches <strong><code>show</code></strong> when it opens and <strong><code>hide</code></strong> when it closes.</p>
197
- <p>Click <strong>Click to open pop</strong> to open the panel programmatically.</p>
86
+ <h2 id="manual">manual</h2>
198
87
  <pre><code>&lt;sonic-pop class=&quot;inline-block&quot; manual id=&quot;manualPop&quot;&gt;
199
- &lt;sonic-button onclick=&quot;alert(&#39;Custom action without opening the pop&#39;)&quot;&gt;Manual trigger&lt;/sonic-button&gt;
88
+ &lt;sonic-button onclick=&quot;alert(&#39;customAction without opening Pop content&#39;)&quot;&gt;Manual doesn&#39;t open on click&lt;/sonic-button&gt;
200
89
  &lt;sonic-menu slot=&quot;content&quot;&gt;
201
- &lt;sonic-menu-item&gt;It worked!&lt;/sonic-menu-item&gt;
90
+ &lt;sonic-menu-item&gt;Hourra !&lt;/sonic-menu-item&gt;
202
91
  &lt;/sonic-menu&gt;
203
92
  &lt;/sonic-pop&gt;
204
- &lt;sonic-button onclick=&quot;document.getElementById(&#39;manualPop&#39;).show()&quot; class=&quot;ml-5&quot; variant=&quot;outline&quot;&gt;
93
+ &lt;sonic-button onclick=&quot;document.getElementById(&#39;manualPop&#39;).show()&quot; class=&quot;ml-5&quot; variant=&quot;outline&quot;&gt;
205
94
  &lt;sonic-icon name=&quot;sparkles&quot; library=&quot;custom&quot;&gt;&lt;/sonic-icon&gt;
206
95
  Click to open pop
207
96
  &lt;/sonic-button&gt;
208
97
  </code></pre>
209
- <h2 id="keep-open-on-select">Keep open on select</h2>
210
- <p>By default, a click inside <strong><code>content</code></strong> closes the pop (same as an outside click). Set <strong><code>data-on-select=&quot;keep&quot;</code></strong> on the panel or a descendant to keep it open while selecting checkboxes, toggles, or menu items.</p>
211
- <pre><code>&lt;div class=&quot;flex flex-wrap gap-2&quot;&gt;
212
- &lt;sonic-pop class=&quot;inline-block&quot;&gt;
213
- &lt;sonic-button&gt;Closes on select&lt;/sonic-button&gt;
214
- &lt;div slot=&quot;content&quot; class=&quot;grid gap-2 p-3&quot;&gt;
215
- &lt;sonic-checkbox&gt;Option A&lt;/sonic-checkbox&gt;
216
- &lt;sonic-checkbox&gt;Option B&lt;/sonic-checkbox&gt;
217
- &lt;/div&gt;
218
- &lt;/sonic-pop&gt;
219
- &lt;sonic-pop class=&quot;inline-block&quot;&gt;
220
- &lt;sonic-button&gt;Stays open on select&lt;/sonic-button&gt;
221
- &lt;div slot=&quot;content&quot; class=&quot;grid gap-2 p-3&quot; data-on-select=&quot;keep&quot;&gt;
222
- &lt;sonic-checkbox&gt;Option A&lt;/sonic-checkbox&gt;
223
- &lt;sonic-checkbox&gt;Option B&lt;/sonic-checkbox&gt;
224
- &lt;/div&gt;
225
- &lt;/sonic-pop&gt;
226
- &lt;/div&gt;
227
- </code></pre>
228
- <h2 id="keyboard-and-dismissal">Keyboard and dismissal</h2>
229
- <p><strong><code>ArrowDown</code></strong> on the trigger opens the pop when it is closed. <strong><code>Escape</code></strong> closes the most recently opened pop (capture phase, before ancestors such as <strong><code>sonic-modal</code></strong>) and returns focus to that trigger. Multiple pops on the page stack in open order for Escape.</p>
230
- <pre><code>&lt;sonic-pop class=&quot;inline-block&quot;&gt;
231
- &lt;sonic-button&gt;Focus me — ArrowDown opens, Escape closes&lt;/sonic-button&gt;
232
- &lt;sonic-menu slot=&quot;content&quot;&gt;
233
- &lt;sonic-menu-item&gt;First item&lt;/sonic-menu-item&gt;
234
- &lt;sonic-menu-item&gt;Second item&lt;/sonic-menu-item&gt;
235
- &lt;/sonic-menu&gt;
236
- &lt;/sonic-pop&gt;
237
- </code></pre>
238
- <h2 id="api-reference">API reference</h2>
239
- <table>
240
- <thead>
241
- <tr>
242
- <th>Attribute</th>
243
- <th>Values</th>
244
- <th>Description</th>
245
- </tr>
246
- </thead>
247
- <tbody><tr>
248
- <td><code>placement</code></td>
249
- <td><code>bottom</code> (default) · <code>top</code> · <code>left</code> · <code>right</code> · <code>top-start</code> · <code>top-center</code> · <code>top-end</code> · <code>bottom-start</code> · <code>bottom-center</code> · <code>bottom-end</code> · <code>left-start</code> · <code>left-center</code> · <code>left-end</code> · <code>right-start</code> · <code>right-center</code> · <code>right-end</code></td>
250
- <td>Side and alignment relative to the trigger; repositions while open and flips within the viewport</td>
251
- </tr>
252
- <tr>
253
- <td><code>shadow</code></td>
254
- <td><code>none</code> · <code>sm</code> · <code>md</code> · <code>lg</code> (default <code>lg</code>)</td>
255
- <td>Box shadow on the <strong><code>content</code></strong> panel</td>
256
- </tr>
257
- <tr>
258
- <td><code>inline</code></td>
259
- <td>boolean</td>
260
- <td>Baseline-align the host for inline triggers</td>
261
- </tr>
262
- <tr>
263
- <td><code>noToggle</code></td>
264
- <td>boolean</td>
265
- <td>When open, trigger click does not close the pop</td>
266
- </tr>
267
- <tr>
268
- <td><code>manual</code></td>
269
- <td>boolean</td>
270
- <td>Disable default trigger toggle; use <strong><code>show()</code></strong> / <strong><code>hide()</code></strong></td>
271
- </tr>
272
- </tbody></table>
273
- <table>
274
- <thead>
275
- <tr>
276
- <th>Slot</th>
277
- <th>Description</th>
278
- </tr>
279
- </thead>
280
- <tbody><tr>
281
- <td><em>(default)</em></td>
282
- <td>Trigger; listens for <strong><code>click</code></strong> and <strong><code>keydown</code></strong> (<code>ArrowDown</code> opens when closed) unless <strong><code>manual</code></strong></td>
283
- </tr>
284
- <tr>
285
- <td><code>content</code></td>
286
- <td>Floating panel; receives focus <strong><code>tabindex=&quot;0&quot;</code></strong> while open</td>
287
- </tr>
288
- </tbody></table>
289
- <p><strong>Methods:</strong> <strong><code>show()</code></strong> · <strong><code>hide()</code></strong> on the host element.</p>
290
- <p><strong>Events:</strong> <strong><code>show</code></strong> · <strong><code>hide</code></strong> (non-bubbling <strong><code>CustomEvent</code></strong>).</p>
291
- <p><strong>Content attribute:</strong> <strong><code>data-on-select=&quot;keep&quot;</code></strong> on <strong><code>content</code></strong> or descendants prevents close-on-click inside the panel.</p>
292
98
 
293
99
  </article>
294
100
  </main>
@@ -3,9 +3,9 @@
3
3
  <head>
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Progress — Concorde</title>
7
- <meta name="description" content="Shows task completion on a value / max scale via a native &lt;progress&gt; bar. Omit value for an indeterminate loading animation. Put primary copy in the default slot and optional secondary text in remaini">
8
- <meta name="keywords" content="Concorde, supersoniks, core/components/ui/progress/progress, progress, Progress, UI component, sonic-progress, web component, value, max, , remaining, invert, sonic-card, to **, ** (default ">
6
+ <title>Progress bar — Concorde</title>
7
+ <meta name="description" content="Displays an indicator showing the completion progress of a task.">
8
+ <meta name="keywords" content="Concorde, supersoniks, core/components/ui/progress/progress, progress, Progress bar, UI component, sonic-progress, web component">
9
9
  <meta name="concorde-doc-id" content="core/components/ui/progress/progress">
10
10
  <link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/progress/progress.html">
11
11
  </head>
@@ -15,115 +15,42 @@
15
15
  </header>
16
16
  <main>
17
17
  <article>
18
- <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Progress</strong>. Shows task completion on a value / max scale via a native &lt;progress&gt; bar. Omit value for an indeterminate loading animation. Put primary copy in the default slot and optional secondary text in remaini <span>Doc ID: <code>core/components/ui/progress/progress</code>. Keywords: Concorde, supersoniks, core/components/ui/progress/progress, progress, Progress, UI component, sonic-progress, web component, value, max, , remaining, invert, sonic-card, to **, ** (default . URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/progress/progress.html">https://concorde.supersoniks.org/crawl/core/components/ui/progress/progress.html</a>.</span></p>
19
- <h1 id="progress">Progress</h1>
20
- <p>Shows <strong>task completion</strong> on a <strong><code>value</code></strong> / <strong><code>max</code></strong> scale via a native <code>&lt;progress&gt;</code> bar. Omit <strong><code>value</code></strong> for an <strong>indeterminate</strong> loading animation. Put primary copy in the default slot and optional secondary text in <strong><code>remaining</code></strong>; set <strong><code>invert</code></strong> when the bar sits on a colored surface such as <strong><code>sonic-card</code></strong>.</p>
21
- <h2 id="basic-example">Basic example</h2>
22
- <p>Set <strong><code>value</code></strong> from <code>0</code> to <strong><code>max</code></strong> (default <code>100</code>). Label text uses the type color.</p>
23
- <pre><code>&lt;sonic-progress value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
24
- </code></pre>
18
+ <p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Progress bar</strong>. Displays an indicator showing the completion progress of a task. <span>Doc ID: <code>core/components/ui/progress/progress</code>. Keywords: Concorde, supersoniks, core/components/ui/progress/progress, progress, Progress bar, UI component, sonic-progress, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/progress/progress.html">https://concorde.supersoniks.org/crawl/core/components/ui/progress/progress.html</a>.</span></p>
19
+ <h1 id="progress-bar">Progress bar</h1>
20
+ <p>Displays an indicator showing the completion progress of a task.</p>
25
21
  <h2 id="indeterminate">Indeterminate</h2>
26
- <p>With no <strong><code>value</code></strong>, the bar animates until progress is known.</p>
27
22
  <pre><code>&lt;sonic-progress&gt;&lt;/sonic-progress&gt;
28
23
  </code></pre>
29
- <h2 id="type">Type</h2>
30
- <p>Semantic color follows <strong><code>type</code></strong>. With no <strong><code>type</code></strong>, behavior is <code>default</code>.</p>
31
- <pre><code>&lt;div class=&quot;grid gap-3&quot;&gt;
32
- &lt;sonic-progress value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
33
- &lt;sonic-progress type=&quot;primary&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
34
- &lt;sonic-progress type=&quot;neutral&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
35
- &lt;sonic-progress type=&quot;info&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
36
- &lt;sonic-progress type=&quot;warning&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
37
- &lt;sonic-progress type=&quot;success&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
38
- &lt;sonic-progress type=&quot;danger&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
39
- &lt;/div&gt;
24
+ <h2 id="remaining">Remaining</h2>
25
+ <pre><code>&lt;sonic-progress type=&quot;danger&quot; value=&quot;80&quot;&gt;
26
+ 80% Used &lt;span slot=&quot;remaining&quot;&gt;20% left&lt;/span&gt;
27
+ &lt;/sonic-progress&gt;
40
28
  </code></pre>
41
- <h2 id="size">Size</h2>
42
- <p>Bar height scales with typography via <strong><code>size</code></strong>. With no <strong><code>size</code></strong>, font size matches <strong><code>md</code></strong> (<code>1rem</code>).</p>
29
+ <h2 id="sizes">Sizes</h2>
43
30
  <pre><code>&lt;div class=&quot;grid gap-3&quot;&gt;
44
- &lt;sonic-progress size=&quot;2xs&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
45
- &lt;sonic-progress size=&quot;xs&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
46
- &lt;sonic-progress size=&quot;sm&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
47
- &lt;sonic-progress size=&quot;md&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
48
- &lt;sonic-progress size=&quot;lg&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
49
- &lt;sonic-progress size=&quot;xl&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
50
- &lt;sonic-progress size=&quot;2xl&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
51
- &lt;/div&gt;
31
+ &lt;sonic-progress size=&quot;2xs&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
32
+ &lt;sonic-progress size=&quot;xs&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
33
+ &lt;sonic-progress size=&quot;sm&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
34
+ &lt;sonic-progress size=&quot;md&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
35
+ &lt;sonic-progress size=&quot;lg&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
36
+ &lt;sonic-progress size=&quot;xl&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
37
+ &lt;sonic-progress size=&quot;2xl&quot; value=&quot;25&quot;&gt;25%&lt;/sonic-progress&gt;
38
+ &lt;/div&gt;
52
39
  </code></pre>
53
- <h2 id="default-and-remaining-slots">Default and remaining slots</h2>
54
- <p>The default slot is the main label (left). <strong><code>remaining</code></strong> is right-aligned with lighter weight—use it for “left to complete” copy.</p>
55
- <pre><code>&lt;sonic-progress type=&quot;danger&quot; value=&quot;80&quot;&gt;
56
- 80% Used &lt;span slot=&quot;remaining&quot;&gt;20% left&lt;/span&gt;
57
- &lt;/sonic-progress&gt;
40
+ <h2 id="type">Type</h2>
41
+ <pre><code>&lt;div class=&quot;grid gap-3&quot;&gt;
42
+ &lt;sonic-progress value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
43
+ &lt;sonic-progress type=&quot;info&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
44
+ &lt;sonic-progress type=&quot;warning&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
45
+ &lt;sonic-progress type=&quot;success&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
46
+ &lt;sonic-progress type=&quot;danger&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
47
+ &lt;/div&gt;
58
48
  </code></pre>
59
49
  <h2 id="invert">Invert</h2>
60
- <p>On tinted backgrounds, <strong><code>invert</code></strong> adjusts track and fill tokens so the bar stays readable (pair with matching <strong><code>type</code></strong> on <strong><code>sonic-card</code></strong> or similar).</p>
61
- <pre><code>&lt;div class=&quot;grid gap-3&quot;&gt;
62
- &lt;sonic-card type=&quot;info&quot;&gt;
63
- &lt;sonic-progress invert type=&quot;info&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
64
- &lt;/sonic-card&gt;
65
- &lt;sonic-card type=&quot;warning&quot;&gt;
66
- &lt;sonic-progress invert type=&quot;warning&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
67
- &lt;/sonic-card&gt;
68
- &lt;sonic-card type=&quot;success&quot;&gt;
69
- &lt;sonic-progress invert type=&quot;success&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
70
- &lt;/sonic-card&gt;
71
- &lt;sonic-card type=&quot;danger&quot;&gt;
72
- &lt;sonic-progress invert type=&quot;danger&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
73
- &lt;/sonic-card&gt;
74
- &lt;/div&gt;
50
+ <pre><code>&lt;div class=&quot;bg-neutral-900 p-4 rounded-md&quot;&gt;
51
+ &lt;sonic-progress type=&quot;invert&quot; value=&quot;50&quot;&gt;50%&lt;/sonic-progress&gt;
52
+ &lt;/div&gt;
75
53
  </code></pre>
76
- <h2 id="api-reference">API reference</h2>
77
- <table>
78
- <thead>
79
- <tr>
80
- <th>Attribute</th>
81
- <th>Values</th>
82
- <th>Description</th>
83
- </tr>
84
- </thead>
85
- <tbody><tr>
86
- <td><code>value</code></td>
87
- <td>number</td>
88
- <td>Completion amount; omit for indeterminate state</td>
89
- </tr>
90
- <tr>
91
- <td><code>max</code></td>
92
- <td>number (default <code>100</code>)</td>
93
- <td>Upper bound for <strong><code>value</code></strong></td>
94
- </tr>
95
- <tr>
96
- <td><code>type</code></td>
97
- <td><code>default</code> (default) · <code>primary</code> · <code>neutral</code> · <code>warning</code> · <code>info</code> · <code>success</code> · <code>danger</code></td>
98
- <td>Semantic bar and label color</td>
99
- </tr>
100
- <tr>
101
- <td><code>size</code></td>
102
- <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>
103
- <td>Typography scale (bar height follows <code>em</code>)</td>
104
- </tr>
105
- <tr>
106
- <td><code>invert</code></td>
107
- <td>boolean</td>
108
- <td>High-contrast tokens on colored backgrounds</td>
109
- </tr>
110
- </tbody></table>
111
- <table>
112
- <thead>
113
- <tr>
114
- <th>Slot</th>
115
- <th>Description</th>
116
- </tr>
117
- </thead>
118
- <tbody><tr>
119
- <td><em>(default)</em></td>
120
- <td>Primary label below the bar (left)</td>
121
- </tr>
122
- <tr>
123
- <td><code>remaining</code></td>
124
- <td>Secondary label below the bar (right)</td>
125
- </tr>
126
- </tbody></table>
127
54
 
128
55
  </article>
129
56
  </main>