@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.
- package/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3960 -0
- package/concorde-3d.es.js +33433 -0
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3685 -3405
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-interactive.bundle.js +1157 -0
- package/concorde-interactive.es.js +10734 -0
- package/concorde-shader.bundle.js +116 -0
- package/concorde-shader.es.js +8353 -0
- package/concorde-webgpu.bundle.js +307 -0
- package/concorde-webgpu.es.js +8627 -0
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3685 -3405
- package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -172
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
- package/docs/crawl/core/components/ui/badge/badge.html +79 -157
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
- package/docs/crawl/core/components/ui/card/card.html +68 -222
- package/docs/crawl/core/components/ui/divider/divider.html +31 -117
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +38 -60
- package/docs/crawl/core/components/ui/icon/icon.html +47 -136
- package/docs/crawl/core/components/ui/image/image.html +56 -244
- package/docs/crawl/core/components/ui/link/link.html +9 -67
- package/docs/crawl/core/components/ui/loader/loader.html +23 -97
- package/docs/crawl/core/components/ui/menu/menu.html +90 -162
- package/docs/crawl/core/components/ui/modal/modal.html +50 -275
- package/docs/crawl/core/components/ui/pop/pop.html +66 -260
- package/docs/crawl/core/components/ui/progress/progress.html +30 -103
- package/docs/crawl/core/components/ui/table/table.html +171 -303
- package/docs/crawl/core/components/ui/toast/toast.html +59 -170
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +63 -311
- package/docs/crawl/hubs/form-components.html +53 -75
- package/docs/crawl/index.html +6 -7
- package/docs/docs-mock-api-sw.js +0 -2
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +7 -9
- package/docs/llms-full.txt +456 -1703
- package/docs/llms.txt +32 -25
- package/docs/sitemap.xml +0 -3
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +72 -147
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +80 -141
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +6 -65
- package/docs/src/core/components/ui/card/card.md +65 -183
- package/docs/src/core/components/ui/divider/divider.md +13 -107
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +43 -132
- package/docs/src/core/components/ui/image/image.md +53 -179
- package/docs/src/core/components/ui/link/link.md +7 -45
- package/docs/src/core/components/ui/loader/loader.md +22 -79
- package/docs/src/core/components/ui/menu/menu.md +92 -133
- package/docs/src/core/components/ui/modal/modal.md +47 -163
- package/docs/src/core/components/ui/pop/pop.md +64 -262
- package/docs/src/core/components/ui/progress/progress.md +30 -76
- package/docs/src/core/components/ui/table/table.md +171 -147
- package/docs/src/core/components/ui/toast/toast.md +58 -108
- package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +61 -223
- package/docs/src/docs/search/docs-search.json +348 -3083
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -63
- package/gitlab/job_github_mirror.sh +39 -0
- package/package.json +36 -2
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
- package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
- package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
- package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
- package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
- package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
- package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
- package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
- package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
- package/src/core/components/functional/sdui/sdui.md +122 -0
- package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
- package/src/core/components/functional/sdui/sdui.ts +442 -34
- package/src/core/components/functional/sdui/types.ts +49 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/css.d.ts +19 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +90 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- 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="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/pop/pop, pop, Pop, UI component, sonic-pop, web component
|
|
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>.
|
|
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
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
<sonic-button>Notifications</sonic-button>
|
|
20
|
+
<h2 id="placement">Placement</h2>
|
|
21
|
+
<pre><code><sonic-pop class="inline-block" placement="left">
|
|
22
|
+
<sonic-button>Left</sonic-button>
|
|
24
23
|
<sonic-menu slot="content">
|
|
25
|
-
<sonic-menu-item>
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
25
|
+
</sonic-menu>
|
|
26
|
+
</sonic-pop>
|
|
27
|
+
<sonic-pop class="inline-block" placement="right">
|
|
28
|
+
<sonic-button>Right</sonic-button>
|
|
29
|
+
<sonic-menu slot="content">
|
|
30
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
31
|
+
</sonic-menu>
|
|
32
|
+
</sonic-pop>
|
|
33
|
+
<sonic-pop class="inline-block" placement="top">
|
|
34
|
+
<sonic-button>Top</sonic-button>
|
|
35
|
+
<sonic-menu slot="content">
|
|
36
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
37
|
+
</sonic-menu>
|
|
38
|
+
</sonic-pop>
|
|
39
|
+
<sonic-pop class="inline-block" placement="bottom">
|
|
40
|
+
<sonic-button>Bottom</sonic-button>
|
|
41
|
+
<sonic-menu slot="content">
|
|
42
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
33
43
|
</sonic-menu>
|
|
34
44
|
</sonic-pop>
|
|
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="bottom center"</code>) still works but is deprecated—prefer <strong><code>bottom-center</code></strong>.</p>
|
|
38
|
-
<pre><code><div class="flex flex-wrap gap-2">
|
|
39
|
-
<sonic-pop class="inline-block" placement="left">
|
|
40
|
-
<sonic-button>Left</sonic-button>
|
|
41
|
-
<sonic-menu slot="content">
|
|
42
|
-
<sonic-menu-item>
|
|
43
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
44
|
-
Notifications
|
|
45
|
-
</sonic-menu-item>
|
|
46
|
-
</sonic-menu>
|
|
47
|
-
</sonic-pop>
|
|
48
|
-
<sonic-pop class="inline-block" placement="right">
|
|
49
|
-
<sonic-button>Right</sonic-button>
|
|
50
|
-
<sonic-menu slot="content">
|
|
51
|
-
<sonic-menu-item>
|
|
52
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
53
|
-
Notifications
|
|
54
|
-
</sonic-menu-item>
|
|
55
|
-
</sonic-menu>
|
|
56
|
-
</sonic-pop>
|
|
57
|
-
<sonic-pop class="inline-block" placement="top">
|
|
58
|
-
<sonic-button>Top</sonic-button>
|
|
59
|
-
<sonic-menu slot="content">
|
|
60
|
-
<sonic-menu-item>
|
|
61
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
62
|
-
Notifications
|
|
63
|
-
</sonic-menu-item>
|
|
64
|
-
</sonic-menu>
|
|
65
|
-
</sonic-pop>
|
|
66
|
-
<sonic-pop class="inline-block" placement="bottom">
|
|
67
|
-
<sonic-button>Bottom</sonic-button>
|
|
68
|
-
<sonic-menu slot="content">
|
|
69
|
-
<sonic-menu-item>
|
|
70
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
71
|
-
Notifications
|
|
72
|
-
</sonic-menu-item>
|
|
73
|
-
</sonic-menu>
|
|
74
|
-
</sonic-pop>
|
|
75
|
-
</div>
|
|
76
|
-
</code></pre>
|
|
77
|
-
<h3 id="center-aligned-sides">Center-aligned sides</h3>
|
|
78
|
-
<pre><code><div class="flex flex-wrap gap-2">
|
|
79
|
-
<sonic-pop class="inline-block" placement="bottom-center">
|
|
80
|
-
<sonic-button>Bottom center</sonic-button>
|
|
81
|
-
<sonic-menu slot="content">
|
|
82
|
-
<sonic-menu-item>
|
|
83
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
84
|
-
Notifications
|
|
85
|
-
</sonic-menu-item>
|
|
86
|
-
</sonic-menu>
|
|
87
|
-
</sonic-pop>
|
|
88
|
-
<sonic-pop class="inline-block" placement="top-center">
|
|
89
|
-
<sonic-button>Top center</sonic-button>
|
|
90
|
-
<sonic-menu slot="content">
|
|
91
|
-
<sonic-menu-item>
|
|
92
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
93
|
-
Notifications
|
|
94
|
-
</sonic-menu-item>
|
|
95
|
-
</sonic-menu>
|
|
96
|
-
</sonic-pop>
|
|
97
|
-
<sonic-pop class="inline-block" placement="left-center">
|
|
98
|
-
<sonic-button>Left center</sonic-button>
|
|
99
|
-
<sonic-menu slot="content">
|
|
100
|
-
<sonic-menu-item>
|
|
101
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
102
|
-
Notifications
|
|
103
|
-
</sonic-menu-item>
|
|
104
|
-
</sonic-menu>
|
|
105
|
-
</sonic-pop>
|
|
106
|
-
<sonic-pop class="inline-block" placement="right-center">
|
|
107
|
-
<sonic-button>Right center</sonic-button>
|
|
108
|
-
<sonic-menu slot="content">
|
|
109
|
-
<sonic-menu-item>
|
|
110
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
111
|
-
Notifications
|
|
112
|
-
</sonic-menu-item>
|
|
113
|
-
</sonic-menu>
|
|
114
|
-
</sonic-pop>
|
|
115
|
-
</div>
|
|
116
45
|
</code></pre>
|
|
117
46
|
<h2 id="shadow">Shadow</h2>
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
<sonic-
|
|
121
|
-
<sonic-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</sonic-menu>
|
|
128
|
-
</sonic-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</sonic-
|
|
138
|
-
<sonic-
|
|
139
|
-
<sonic-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
143
|
-
Notifications
|
|
144
|
-
</sonic-menu-item>
|
|
145
|
-
</sonic-menu>
|
|
146
|
-
</sonic-pop>
|
|
147
|
-
<sonic-pop class="inline-block" shadow="lg" placement="top">
|
|
148
|
-
<sonic-button>Large</sonic-button>
|
|
149
|
-
<sonic-menu slot="content">
|
|
150
|
-
<sonic-menu-item>
|
|
151
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
152
|
-
Notifications
|
|
153
|
-
</sonic-menu-item>
|
|
154
|
-
</sonic-menu>
|
|
155
|
-
</sonic-pop>
|
|
156
|
-
</div>
|
|
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><p>
|
|
161
|
-
The Concorde flew from Paris to
|
|
162
|
-
<sonic-pop inline>
|
|
163
|
-
<sonic-button variant="link">New York</sonic-button>
|
|
164
|
-
<sonic-menu slot="content">
|
|
165
|
-
<sonic-menu-item>See flights</sonic-menu-item>
|
|
166
|
-
<sonic-menu-item>Book a seat</sonic-menu-item>
|
|
167
|
-
</sonic-menu>
|
|
168
|
-
</sonic-pop>
|
|
169
|
-
in about 3.5 hours.
|
|
170
|
-
</p>
|
|
47
|
+
<pre><code><sonic-pop class="inline-block" shadow="none" placement='top' >
|
|
48
|
+
<sonic-button>None</sonic-button>
|
|
49
|
+
<sonic-menu slot="content">
|
|
50
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
51
|
+
</sonic-menu>
|
|
52
|
+
</sonic-pop>
|
|
53
|
+
<sonic-pop class="inline-block" shadow="sm" placement='top'>
|
|
54
|
+
<sonic-button>Small</sonic-button>
|
|
55
|
+
<sonic-menu slot="content">
|
|
56
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
57
|
+
</sonic-menu>
|
|
58
|
+
</sonic-pop>
|
|
59
|
+
<sonic-pop class="inline-block" shadow="md" placement='top'>
|
|
60
|
+
<sonic-button>Medium</sonic-button>
|
|
61
|
+
<sonic-menu slot="content">
|
|
62
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
63
|
+
</sonic-menu>
|
|
64
|
+
</sonic-pop>
|
|
65
|
+
<sonic-pop class="inline-block" shadow="lg" placement='top'>
|
|
66
|
+
<sonic-button>Large</sonic-button>
|
|
67
|
+
<sonic-menu slot="content">
|
|
68
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
69
|
+
</sonic-menu>
|
|
70
|
+
</sonic-pop>
|
|
171
71
|
</code></pre>
|
|
172
|
-
<h2 id="
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
<sonic-
|
|
176
|
-
<sonic-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</sonic-menu>
|
|
183
|
-
</sonic-
|
|
184
|
-
|
|
185
|
-
<sonic-button>Default toggle on click</sonic-button>
|
|
186
|
-
<sonic-menu slot="content">
|
|
187
|
-
<sonic-menu-item>
|
|
188
|
-
<sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>
|
|
189
|
-
Notifications
|
|
190
|
-
</sonic-menu-item>
|
|
191
|
-
</sonic-menu>
|
|
192
|
-
</sonic-pop>
|
|
193
|
-
</div>
|
|
72
|
+
<h2 id="notoggle">noToggle</h2>
|
|
73
|
+
<pre><code><sonic-pop class="inline-block" noToggle>
|
|
74
|
+
<sonic-button>No toggle on click</sonic-button>
|
|
75
|
+
<sonic-menu slot="content">
|
|
76
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
77
|
+
</sonic-menu>
|
|
78
|
+
</sonic-pop>
|
|
79
|
+
<sonic-pop class="inline-block" >
|
|
80
|
+
<sonic-button>Default toggle on click</sonic-button>
|
|
81
|
+
<sonic-menu slot="content">
|
|
82
|
+
<sonic-menu-item><sonic-icon library="iconoir" name="bell-notification" slot="prefix"></sonic-icon>Notifications</sonic-menu-item>
|
|
83
|
+
</sonic-menu>
|
|
84
|
+
</sonic-pop>
|
|
194
85
|
</code></pre>
|
|
195
|
-
<h2 id="manual
|
|
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><sonic-pop class="inline-block" manual id="manualPop">
|
|
199
|
-
<sonic-button onclick="alert('
|
|
88
|
+
<sonic-button onclick="alert('customAction without opening Pop content')">Manual doesn't open on click</sonic-button>
|
|
200
89
|
<sonic-menu slot="content">
|
|
201
|
-
<sonic-menu-item>
|
|
90
|
+
<sonic-menu-item>Hourra !</sonic-menu-item>
|
|
202
91
|
</sonic-menu>
|
|
203
92
|
</sonic-pop>
|
|
204
|
-
<sonic-button onclick="document.getElementById('manualPop').show()" class="ml-5"
|
|
93
|
+
<sonic-button onclick="document.getElementById('manualPop').show()" class="ml-5" variant="outline">
|
|
205
94
|
<sonic-icon name="sparkles" library="custom"></sonic-icon>
|
|
206
95
|
Click to open pop
|
|
207
96
|
</sonic-button>
|
|
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="keep"</code></strong> on the panel or a descendant to keep it open while selecting checkboxes, toggles, or menu items.</p>
|
|
211
|
-
<pre><code><div class="flex flex-wrap gap-2">
|
|
212
|
-
<sonic-pop class="inline-block">
|
|
213
|
-
<sonic-button>Closes on select</sonic-button>
|
|
214
|
-
<div slot="content" class="grid gap-2 p-3">
|
|
215
|
-
<sonic-checkbox>Option A</sonic-checkbox>
|
|
216
|
-
<sonic-checkbox>Option B</sonic-checkbox>
|
|
217
|
-
</div>
|
|
218
|
-
</sonic-pop>
|
|
219
|
-
<sonic-pop class="inline-block">
|
|
220
|
-
<sonic-button>Stays open on select</sonic-button>
|
|
221
|
-
<div slot="content" class="grid gap-2 p-3" data-on-select="keep">
|
|
222
|
-
<sonic-checkbox>Option A</sonic-checkbox>
|
|
223
|
-
<sonic-checkbox>Option B</sonic-checkbox>
|
|
224
|
-
</div>
|
|
225
|
-
</sonic-pop>
|
|
226
|
-
</div>
|
|
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><sonic-pop class="inline-block">
|
|
231
|
-
<sonic-button>Focus me — ArrowDown opens, Escape closes</sonic-button>
|
|
232
|
-
<sonic-menu slot="content">
|
|
233
|
-
<sonic-menu-item>First item</sonic-menu-item>
|
|
234
|
-
<sonic-menu-item>Second item</sonic-menu-item>
|
|
235
|
-
</sonic-menu>
|
|
236
|
-
</sonic-pop>
|
|
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="0"</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="keep"</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="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/progress/progress, progress, Progress, UI component, sonic-progress, web component
|
|
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>.
|
|
19
|
-
<h1 id="progress">Progress</h1>
|
|
20
|
-
<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><sonic-progress value="50">50%</sonic-progress>
|
|
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><sonic-progress></sonic-progress>
|
|
28
23
|
</code></pre>
|
|
29
|
-
<h2 id="
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<sonic-progress type="primary" value="50">50%</sonic-progress>
|
|
34
|
-
<sonic-progress type="neutral" value="50">50%</sonic-progress>
|
|
35
|
-
<sonic-progress type="info" value="50">50%</sonic-progress>
|
|
36
|
-
<sonic-progress type="warning" value="50">50%</sonic-progress>
|
|
37
|
-
<sonic-progress type="success" value="50">50%</sonic-progress>
|
|
38
|
-
<sonic-progress type="danger" value="50">50%</sonic-progress>
|
|
39
|
-
</div>
|
|
24
|
+
<h2 id="remaining">Remaining</h2>
|
|
25
|
+
<pre><code><sonic-progress type="danger" value="80">
|
|
26
|
+
80% Used <span slot="remaining">20% left</span>
|
|
27
|
+
</sonic-progress>
|
|
40
28
|
</code></pre>
|
|
41
|
-
<h2 id="
|
|
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><div class="grid gap-3">
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
<sonic-progress size="2xs" value="25">25%</sonic-progress>
|
|
32
|
+
<sonic-progress size="xs" value="25">25%</sonic-progress>
|
|
33
|
+
<sonic-progress size="sm" value="25">25%</sonic-progress>
|
|
34
|
+
<sonic-progress size="md" value="25">25%</sonic-progress>
|
|
35
|
+
<sonic-progress size="lg" value="25">25%</sonic-progress>
|
|
36
|
+
<sonic-progress size="xl" value="25">25%</sonic-progress>
|
|
37
|
+
<sonic-progress size="2xl" value="25">25%</sonic-progress>
|
|
38
|
+
</div>
|
|
52
39
|
</code></pre>
|
|
53
|
-
<h2 id="
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
40
|
+
<h2 id="type">Type</h2>
|
|
41
|
+
<pre><code><div class="grid gap-3">
|
|
42
|
+
<sonic-progress value="50">50%</sonic-progress>
|
|
43
|
+
<sonic-progress type="info" value="50">50%</sonic-progress>
|
|
44
|
+
<sonic-progress type="warning" value="50">50%</sonic-progress>
|
|
45
|
+
<sonic-progress type="success" value="50">50%</sonic-progress>
|
|
46
|
+
<sonic-progress type="danger" value="50">50%</sonic-progress>
|
|
47
|
+
</div>
|
|
58
48
|
</code></pre>
|
|
59
49
|
<h2 id="invert">Invert</h2>
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<sonic-progress invert type="info" value="50">50%</sonic-progress>
|
|
64
|
-
</sonic-card>
|
|
65
|
-
<sonic-card type="warning">
|
|
66
|
-
<sonic-progress invert type="warning" value="50">50%</sonic-progress>
|
|
67
|
-
</sonic-card>
|
|
68
|
-
<sonic-card type="success">
|
|
69
|
-
<sonic-progress invert type="success" value="50">50%</sonic-progress>
|
|
70
|
-
</sonic-card>
|
|
71
|
-
<sonic-card type="danger">
|
|
72
|
-
<sonic-progress invert type="danger" value="50">50%</sonic-progress>
|
|
73
|
-
</sonic-card>
|
|
74
|
-
</div>
|
|
50
|
+
<pre><code><div class="bg-neutral-900 p-4 rounded-md">
|
|
51
|
+
<sonic-progress type="invert" value="50">50%</sonic-progress>
|
|
52
|
+
</div>
|
|
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>
|