@supersoniks/concorde 5.0.5 → 5.1.1
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/.claude/launch.json +15 -0
- package/.claude/vite.http.config.mjs +7 -0
- package/.taste-skill/after/desktop-fold.jpg +0 -0
- package/.taste-skill/after/desktop-page-01.jpg +0 -0
- package/.taste-skill/after/desktop-page-02.jpg +0 -0
- package/.taste-skill/after/desktop-page-03.jpg +0 -0
- package/.taste-skill/after/mobile-fold.jpg +0 -0
- package/.taste-skill/after/mobile-page-01.jpg +0 -0
- package/.taste-skill/after/report.json +4103 -0
- package/.taste-skill/after/tablet-fold.jpg +0 -0
- package/.taste-skill/after/tablet-page-01.jpg +0 -0
- package/.taste-skill/after/tablet-page-02.jpg +0 -0
- package/.taste-skill/before/desktop-fold.jpg +0 -0
- package/.taste-skill/before/desktop-page-01.jpg +0 -0
- package/.taste-skill/before/desktop-page-02.jpg +0 -0
- package/.taste-skill/before/mobile-fold.jpg +0 -0
- package/.taste-skill/before/mobile-page-01.jpg +0 -0
- package/.taste-skill/before/report.json +2556 -0
- package/.taste-skill/before/tablet-fold.jpg +0 -0
- package/.taste-skill/before/tablet-page-01.jpg +0 -0
- package/.taste-skill/direction.json +510 -0
- package/.taste-skill/notes.md +84 -0
- package/.taste-skill/prod/desktop-fold.jpg +0 -0
- package/.taste-skill/prod/desktop-page-01.jpg +0 -0
- package/.taste-skill/prod/desktop-page-02.jpg +0 -0
- package/.taste-skill/prod/desktop-page-03.jpg +0 -0
- package/.taste-skill/prod/mobile-fold.jpg +0 -0
- package/.taste-skill/prod/mobile-page-01.jpg +0 -0
- package/.taste-skill/prod/mobile-page-02.jpg +0 -0
- package/.taste-skill/prod/report.json +1973 -0
- package/.taste-skill/prod/tablet-fold.jpg +0 -0
- package/.taste-skill/prod/tablet-page-01.jpg +0 -0
- package/.taste-skill/prod/tablet-page-02.jpg +0 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/AUDIT.md +228 -0
- package/PLAN-AMELIORATION.md +220 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3854 -3572
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3854 -3572
- package/dist/img/archive/concorde-001-2cv.webp +0 -0
- package/dist/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
- package/dist/img/archive/concorde-red-arrows-2002.webm +0 -0
- package/dist/img/archive/credits.json +28 -0
- package/docs/assets/index-Bb-_LRyY.js +12280 -0
- package/docs/index.html +1 -1
- package/index.html +27 -63
- package/package.json +44 -3
- package/public/img/archive/concorde-001-2cv.webp +0 -0
- package/public/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
- package/public/img/archive/concorde-red-arrows-2002.webm +0 -0
- package/public/img/archive/credits.json +28 -0
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +2 -2
- 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/ui/modal/modal.ts +14 -11
- package/src/docs/_getting-started/components.md +5 -0
- package/src/docs/_getting-started/theming.md +2 -2
- package/src/docs/code.ts +88 -75
- package/src/docs/components/docs-demo-sources.ts +16 -8
- package/src/docs/components/docs-lit-demo.ts +19 -37
- package/src/docs/docs.ts +5 -0
- package/src/docs/example/docs-boarding-pass-demo.ts +134 -0
- package/src/docs/example/docs-provider-keys.ts +12 -0
- package/src/docs/header/header.ts +233 -69
- package/src/docs/home/catalog.ts +44 -0
- package/src/docs/home/home.ts +513 -0
- package/src/docs/home/mach-stage.ts +389 -0
- package/src/docs/layout.ts +3 -1
- package/src/docs/navigation/components-index.ts +56 -0
- package/src/docs/navigation/navigation.ts +240 -232
- package/src/docs/navigation/pager.ts +67 -0
- package/src/docs/navigation/toc.ts +98 -0
- package/src/docs/search/docs-search.json +330 -20
- package/src/docs/search/markdown-renderer.ts +11 -3
- package/src/docs/shiki/index.ts +109 -0
- package/src/docs/tailwind/css/base/scrollbar.css +22 -0
- package/src/docs/tailwind/css/base/theme.css +96 -0
- package/src/docs/tailwind/css/base/typography.css +4 -0
- package/src/docs/tailwind/css/docs/boarding-pass.css +65 -0
- package/src/docs/tailwind/css/docs/content.css +32 -0
- package/src/docs/tailwind/css/docs/page.css +10 -0
- package/src/docs/tailwind/css/docs.css +9 -0
- package/src/docs/tailwind/css/home/hero.css +210 -0
- package/src/docs/tailwind/css/home/motion.css +84 -0
- package/src/docs/tailwind/css/home/sections.css +416 -0
- package/src/docs/tailwind/css/tailwind.css +7 -185
- package/src/tsconfig.json +113 -2
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +8 -4
- package/docs/assets/index-wVZpLVYW.js +0 -12122
- package/docs/crawl/core/components/functional/date/date.html +0 -190
- package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
- package/docs/crawl/core/components/functional/if/if.html +0 -27
- package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
- package/docs/crawl/core/components/functional/list/list.html +0 -70
- package/docs/crawl/core/components/functional/mix/mix.html +0 -45
- package/docs/crawl/core/components/functional/queue/queue.html +0 -96
- package/docs/crawl/core/components/functional/router/router.html +0 -106
- package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
- package/docs/crawl/core/components/functional/states/states.html +0 -66
- package/docs/crawl/core/components/functional/submit/submit.html +0 -160
- package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
- package/docs/crawl/core/components/functional/value/value.html +0 -51
- package/docs/crawl/core/components/ui/alert/alert.html +0 -211
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -131
- package/docs/crawl/core/components/ui/badge/badge.html +0 -197
- package/docs/crawl/core/components/ui/button/button.html +0 -150
- package/docs/crawl/core/components/ui/captcha/captcha.html +0 -112
- package/docs/crawl/core/components/ui/card/card.html +0 -253
- package/docs/crawl/core/components/ui/divider/divider.html +0 -144
- package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -266
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -122
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -121
- package/docs/crawl/core/components/ui/form/input/input.html +0 -109
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -38
- package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
- package/docs/crawl/core/components/ui/form/select/select.html +0 -73
- package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
- package/docs/crawl/core/components/ui/group/group.html +0 -104
- package/docs/crawl/core/components/ui/icon/icon.html +0 -222
- package/docs/crawl/core/components/ui/image/image.html +0 -298
- package/docs/crawl/core/components/ui/link/link.html +0 -100
- package/docs/crawl/core/components/ui/loader/loader.html +0 -124
- package/docs/crawl/core/components/ui/menu/menu.html +0 -394
- package/docs/crawl/core/components/ui/modal/modal.html +0 -342
- package/docs/crawl/core/components/ui/pop/pop.html +0 -296
- package/docs/crawl/core/components/ui/progress/progress.html +0 -131
- package/docs/crawl/core/components/ui/table/table.html +0 -545
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- package/docs/crawl/core/components/ui/toast/toast.html +0 -233
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -140
- package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
- package/docs/crawl/docs/_core-concept/overview.html +0 -66
- package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -117
- package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
- package/docs/crawl/docs/_decorators/bind.html +0 -141
- package/docs/crawl/docs/_decorators/get.html +0 -149
- package/docs/crawl/docs/_decorators/handle.html +0 -165
- package/docs/crawl/docs/_decorators/on-assign.html +0 -355
- package/docs/crawl/docs/_decorators/patch.html +0 -78
- package/docs/crawl/docs/_decorators/post.html +0 -139
- package/docs/crawl/docs/_decorators/publish.html +0 -61
- package/docs/crawl/docs/_decorators/put.html +0 -78
- package/docs/crawl/docs/_decorators/subscribe.html +0 -109
- package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
- package/docs/crawl/docs/_directives/sub.html +0 -93
- package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
- package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
- package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
- package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
- package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
- package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
- package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
- package/docs/crawl/docs/_getting-started/start.html +0 -76
- package/docs/crawl/docs/_getting-started/theming.html +0 -333
- package/docs/crawl/docs/_misc/api-configuration.html +0 -149
- package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
- package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
- package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
- package/docs/crawl/docs/_misc/endpoint.html +0 -50
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
- package/docs/crawl/docs/_misc/html-integration.html +0 -48
- package/docs/crawl/hubs/decorators.html +0 -547
- package/docs/crawl/hubs/form-components.html +0 -381
- package/docs/crawl/hubs/remote-data.html +0 -452
- package/docs/crawl/index.html +0 -102
- package/docs/llms-full.txt +0 -7008
- package/docs/llms.txt +0 -97
- package/docs/sitemap.xml +0 -240
- package/docs/src/core/components/functional/date/date.md +0 -290
- package/docs/src/core/components/functional/fetch/fetch.md +0 -125
- package/docs/src/core/components/functional/if/if.md +0 -9
- package/docs/src/core/components/functional/jsonata/jsonata.md +0 -56
- package/docs/src/core/components/functional/list/list.md +0 -65
- package/docs/src/core/components/functional/mix/mix.md +0 -41
- package/docs/src/core/components/functional/queue/queue.md +0 -72
- package/docs/src/core/components/functional/router/router.md +0 -94
- package/docs/src/core/components/functional/sdui/default-library.json +0 -108
- package/docs/src/core/components/functional/sdui/example.json +0 -99
- package/docs/src/core/components/functional/sdui/sdui.md +0 -356
- package/docs/src/core/components/functional/states/states.md +0 -87
- package/docs/src/core/components/functional/submit/submit.md +0 -114
- package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
- package/docs/src/core/components/functional/value/value.md +0 -35
- package/docs/src/core/components/ui/alert/alert.md +0 -196
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +0 -188
- package/docs/src/core/components/ui/button/button.md +0 -183
- package/docs/src/core/components/ui/captcha/captcha.md +0 -71
- package/docs/src/core/components/ui/card/card.md +0 -215
- package/docs/src/core/components/ui/divider/divider.md +0 -129
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -77
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -205
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -100
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -119
- package/docs/src/core/components/ui/form/input/input.md +0 -142
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -29
- package/docs/src/core/components/ui/form/radio/radio.md +0 -57
- package/docs/src/core/components/ui/form/select/select.md +0 -71
- package/docs/src/core/components/ui/form/switch/switch.md +0 -57
- package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
- package/docs/src/core/components/ui/group/group.md +0 -75
- package/docs/src/core/components/ui/icon/icon.md +0 -214
- package/docs/src/core/components/ui/icon/icons.json +0 -1
- package/docs/src/core/components/ui/image/image.md +0 -233
- package/docs/src/core/components/ui/link/link.md +0 -81
- package/docs/src/core/components/ui/loader/loader.md +0 -112
- package/docs/src/core/components/ui/menu/menu.md +0 -370
- package/docs/src/core/components/ui/modal/modal.md +0 -235
- package/docs/src/core/components/ui/pop/pop.md +0 -294
- package/docs/src/core/components/ui/progress/progress.md +0 -109
- package/docs/src/core/components/ui/table/table.md +0 -431
- package/docs/src/core/components/ui/theme/theme.md +0 -122
- package/docs/src/core/components/ui/toast/toast.md +0 -216
- package/docs/src/core/components/ui/tooltip/tooltip.md +0 -124
- package/docs/src/docs/_core-concept/dataFlow.md +0 -88
- package/docs/src/docs/_core-concept/overview.md +0 -57
- package/docs/src/docs/_core-concept/subscriber.md +0 -75
- package/docs/src/docs/_decorators/ancestor-attribute.md +0 -128
- package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
- package/docs/src/docs/_decorators/bind.md +0 -167
- package/docs/src/docs/_decorators/get.md +0 -162
- package/docs/src/docs/_decorators/handle.md +0 -175
- package/docs/src/docs/_decorators/on-assign.md +0 -390
- package/docs/src/docs/_decorators/patch.md +0 -70
- package/docs/src/docs/_decorators/post.md +0 -146
- package/docs/src/docs/_decorators/publish.md +0 -55
- package/docs/src/docs/_decorators/put.md +0 -70
- package/docs/src/docs/_decorators/subscribe.md +0 -100
- package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
- package/docs/src/docs/_directives/sub.md +0 -91
- package/docs/src/docs/_getting-started/ai-agents.md +0 -76
- package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
- package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
- package/docs/src/docs/_getting-started/create-a-component.md +0 -139
- package/docs/src/docs/_getting-started/my-first-component.md +0 -236
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
- package/docs/src/docs/_getting-started/pubsub.md +0 -37
- package/docs/src/docs/_getting-started/start.md +0 -47
- package/docs/src/docs/_getting-started/theming.md +0 -253
- package/docs/src/docs/_misc/api-configuration.md +0 -81
- package/docs/src/docs/_misc/dataProviderKey.md +0 -168
- package/docs/src/docs/_misc/docs-mock-api.md +0 -63
- package/docs/src/docs/_misc/dynamic-path.md +0 -71
- package/docs/src/docs/_misc/endpoint.md +0 -45
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
- package/docs/src/docs/_misc/html-integration.md +0 -15
- package/docs/src/docs/search/docs-search.json +0 -12242
- package/docs/src/tag-list.json +0 -1
- package/docs/src/tsconfig-model.json +0 -23
- package/docs/src/tsconfig.json +0 -1242
- package/src/docs/prism/index.ts +0 -6
- package/src/docs/prism/prism.css +0 -158
- package/src/docs/prism/prism.js +0 -1022
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html" data-doc-id="core/components/ui/loader/loader">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Loader — Concorde</title>
|
|
7
|
-
<meta name="description" content="sonic-loader shows a loading animation in the page or as a viewport overlay. Default mode is fixed (centered overlay). Use inline inside lists and fetch placeholders. Pair noDelay when the spinner sho">
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component, mode, fixed, inline, noDelay, sonic-fetch, sonic-list, currentColor">
|
|
9
|
-
<meta name="concorde-doc-id" content="core/components/ui/loader/loader">
|
|
10
|
-
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/ui/loader/loader.md/loader" rel="nofollow">interactive version</a></p>
|
|
15
|
-
</header>
|
|
16
|
-
<main>
|
|
17
|
-
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Loader</strong>. sonic-loader shows a loading animation in the page or as a viewport overlay. Default mode is fixed (centered overlay). Use inline inside lists and fetch placeholders. Pair noDelay when the spinner sho <span>Doc ID: <code>core/components/ui/loader/loader</code>. Keywords: Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component, mode, fixed, inline, noDelay, sonic-fetch, sonic-list, currentColor. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html">https://concorde.supersoniks.org/crawl/core/components/ui/loader/loader.html</a>.</span></p>
|
|
19
|
-
<h1 id="loader">Loader</h1>
|
|
20
|
-
<p><strong><code>sonic-loader</code></strong> shows a loading animation in the page or as a viewport overlay. Default <strong><code>mode</code></strong> is <strong><code>fixed</code></strong> (centered overlay). Use <strong><code>inline</code></strong> inside lists and fetch placeholders. Pair <strong><code>noDelay</code></strong> when the spinner should appear without the default fade-in wait. For <strong><code>sonic-fetch</code></strong> / <strong><code>sonic-list</code></strong>, set the parent <strong><code>loader</code></strong> attribute instead of embedding a tag manually.</p>
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<p>Inline loaders fit content areas; they use the theme primary color unless <strong><code>currentColor</code></strong> is set.</p>
|
|
23
|
-
<pre><code><sonic-loader mode="inline"></sonic-loader>
|
|
24
|
-
</code></pre>
|
|
25
|
-
<h2 id="mode">Mode</h2>
|
|
26
|
-
<p><strong><code>inline</code></strong> — ellipsis animation in the document flow. <strong><code>fixed</code></strong> — centered overlay (<code>position: fixed</code>); default when the tag is omitted.</p>
|
|
27
|
-
<pre><code><sonic-loader mode="inline"></sonic-loader>
|
|
28
|
-
</code></pre>
|
|
29
|
-
<p>Use the checkbox below to toggle a <strong><code>fixed</code></strong> loader over the page (default <strong><code>mode</code></strong> on <strong><code>sonic-loader</code></strong>).</p>
|
|
30
|
-
<p><docs-lit-demo for="docs-toggle-loader-demo"></docs-lit-demo></p>
|
|
31
|
-
<h2 id="inline-alignment-and-color">Inline alignment and color</h2>
|
|
32
|
-
<p><strong><code>align</code></strong> only affects <strong><code>mode="inline"</code></strong>: <strong><code>left</code></strong> · <strong><code>center</code></strong> (default) · <strong><code>right</code></strong>. Set <strong><code>currentColor</code></strong> so dots follow the host <code>color</code> (for example on a purple parent).</p>
|
|
33
|
-
<pre><code><div class="grid gap-4">
|
|
34
|
-
<sonic-loader mode="inline" currentColor style="color: purple;"></sonic-loader>
|
|
35
|
-
<div class="flex flex-col gap-2">
|
|
36
|
-
<sonic-loader mode="inline" align="left"></sonic-loader>
|
|
37
|
-
<sonic-loader mode="inline" align="center"></sonic-loader>
|
|
38
|
-
<sonic-loader mode="inline" align="right"></sonic-loader>
|
|
39
|
-
</div>
|
|
40
|
-
</div>
|
|
41
|
-
</code></pre>
|
|
42
|
-
<h2 id="nodelay"><code>noDelay</code></h2>
|
|
43
|
-
<p>By default <strong><code>mode="fixed"</code></strong> waits briefly before fading in. <strong><code>mode="inline"</code></strong> already skips that wait. Set <strong><code>noDelay</code></strong> on <strong><code>fixed</code></strong> (or pass <strong><code>noDelay: true</code></strong> to <strong><code>Loader.show()</code></strong>) to appear immediately.</p>
|
|
44
|
-
<pre><code><sonic-loader mode="inline" noDelay></sonic-loader>
|
|
45
|
-
</code></pre>
|
|
46
|
-
<h2 id="accessibility-announce">Accessibility (<code>announce</code>)</h2>
|
|
47
|
-
<p>The animation is <strong><code>aria-hidden</code></strong> by default so screen readers are not spammed on every fetch. Set <strong><code>announce</code></strong> when the loader is injected <strong>after</strong> user action (for example a global overlay): the host gets <strong><code>role="status"</code></strong>, <strong><code>aria-live="polite"</code></strong>, and a localized <strong><code>aria-label</code></strong> (“Loading” / “Chargement en cours”, …). For in-button loading, prefer <strong><code>sonic-button</code></strong> <strong><code>loading</code></strong> and <strong><code>aria-busy</code></strong> on the control—not on the loader.</p>
|
|
48
|
-
<pre><code><sonic-loader mode="inline" announce></sonic-loader>
|
|
49
|
-
</code></pre>
|
|
50
|
-
<h2 id="show-and-hide-programmatically">Show and hide programmatically</h2>
|
|
51
|
-
<p>Import <strong><code>Loader</code></strong> and call <strong><code>Loader.show()</code></strong> / <strong><code>Loader.hide()</code></strong>. <strong><code>hide()</code></strong> is reference-counted: call it once per <strong><code>show()</code></strong>. With no <strong><code>container</code></strong>, the loader is appended to the theme pop container and <strong><code>mode</code></strong> is always <strong><code>fixed</code></strong>. Pass <strong><code>container</code></strong> and <strong><code>mode: "inline"</code></strong> to mount an inline instance in a specific element.</p>
|
|
52
|
-
<pre><code class="language-javascript">import { Loader } from "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
53
|
-
|
|
54
|
-
Loader.show({
|
|
55
|
-
mode: "fixed",
|
|
56
|
-
noDelay: false,
|
|
57
|
-
announce: true,
|
|
58
|
-
container: document.querySelector("#foo"),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
Loader.hide();
|
|
62
|
-
</code></pre>
|
|
63
|
-
<h2 id="composition">Composition</h2>
|
|
64
|
-
<p><strong><code>sonic-button</code></strong> <strong><code>loading</code></strong> shows an icon spinner and sets <strong><code>aria-busy</code></strong> on the button. <strong><code>sonic-fetch</code></strong> and <strong><code>sonic-list</code></strong> render <strong><code>sonic-loader</code></strong> when their <strong><code>loader</code></strong> attribute is set: <strong><code>true</code></strong> or an empty string maps to <strong><code>fixed</code></strong>; otherwise use <strong><code>inline</code></strong> or <strong><code>fixed</code></strong>.</p>
|
|
65
|
-
<pre><code><sonic-button loading>Save changes</sonic-button>
|
|
66
|
-
</code></pre>
|
|
67
|
-
<h2 id="api-reference">API reference</h2>
|
|
68
|
-
<table>
|
|
69
|
-
<thead>
|
|
70
|
-
<tr>
|
|
71
|
-
<th>Attribute</th>
|
|
72
|
-
<th>Values</th>
|
|
73
|
-
<th>Description</th>
|
|
74
|
-
</tr>
|
|
75
|
-
</thead>
|
|
76
|
-
<tbody><tr>
|
|
77
|
-
<td><code>mode</code></td>
|
|
78
|
-
<td><code>inline</code> · <code>fixed</code> (default <code>fixed</code>)</td>
|
|
79
|
-
<td>Layout: in-flow ellipsis vs viewport-centered overlay</td>
|
|
80
|
-
</tr>
|
|
81
|
-
<tr>
|
|
82
|
-
<td><code>noDelay</code></td>
|
|
83
|
-
<td>boolean</td>
|
|
84
|
-
<td>Skips the initial fade-in delay before the animation appears</td>
|
|
85
|
-
</tr>
|
|
86
|
-
<tr>
|
|
87
|
-
<td><code>announce</code></td>
|
|
88
|
-
<td>boolean</td>
|
|
89
|
-
<td><strong><code>role="status"</code></strong> and <strong><code>aria-live="polite"</code></strong> with localized loading label when the loader should be announced</td>
|
|
90
|
-
</tr>
|
|
91
|
-
<tr>
|
|
92
|
-
<td><code>align</code></td>
|
|
93
|
-
<td><code>left</code> · <code>center</code> · <code>right</code></td>
|
|
94
|
-
<td>Horizontal alignment for <strong><code>mode="inline"</code></strong> only (attribute selector; default centered)</td>
|
|
95
|
-
</tr>
|
|
96
|
-
<tr>
|
|
97
|
-
<td><code>currentColor</code></td>
|
|
98
|
-
<td>boolean</td>
|
|
99
|
-
<td>Uses <code>currentColor</code> for dot fill instead of <strong><code>--sc-primary</code></strong></td>
|
|
100
|
-
</tr>
|
|
101
|
-
</tbody></table>
|
|
102
|
-
<p>This component has <strong>no slots</strong>. The animation markup is internal.</p>
|
|
103
|
-
<h3 id="static-methods">Static methods</h3>
|
|
104
|
-
<table>
|
|
105
|
-
<thead>
|
|
106
|
-
<tr>
|
|
107
|
-
<th>Method</th>
|
|
108
|
-
<th>Description</th>
|
|
109
|
-
</tr>
|
|
110
|
-
</thead>
|
|
111
|
-
<tbody><tr>
|
|
112
|
-
<td><code>Loader.show(conf?)</code></td>
|
|
113
|
-
<td>Mounts the shared loader instance. <strong><code>conf.mode</code></strong>, <strong><code>conf.noDelay</code></strong>, <strong><code>conf.announce</code></strong>, optional <strong><code>conf.container</code></strong>. Without <strong><code>container</code></strong>, uses the theme pop container and forces <strong><code>fixed</code></strong>.</td>
|
|
114
|
-
</tr>
|
|
115
|
-
<tr>
|
|
116
|
-
<td><code>Loader.hide()</code></td>
|
|
117
|
-
<td>Decrements the show counter and removes the instance from the DOM when it reaches zero.</td>
|
|
118
|
-
</tr>
|
|
119
|
-
</tbody></table>
|
|
120
|
-
|
|
121
|
-
</article>
|
|
122
|
-
</main>
|
|
123
|
-
</body>
|
|
124
|
-
</html>
|
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/menu/menu.html" data-doc-id="core/components/ui/menu/menu">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Menu — Concorde</title>
|
|
7
|
-
<meta name="description" content="sonic-menu lays out navigation or actions as a direction row or column of sonic-menu-item entries (ghost variant and block shape by default), optional sonic-divider separators, and overflow content in">
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/menu/menu, menu, Menu, UI component, sonic-menu, web component, direction, sonic-menu-item, variant, shape, sonic-divider, more, href, pushstate, autoActive">
|
|
9
|
-
<meta name="concorde-doc-id" content="core/components/ui/menu/menu">
|
|
10
|
-
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/menu/menu.html">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/ui/menu/menu.md/menu" rel="nofollow">interactive version</a></p>
|
|
15
|
-
</header>
|
|
16
|
-
<main>
|
|
17
|
-
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Menu</strong>. sonic-menu lays out navigation or actions as a direction row or column of sonic-menu-item entries (ghost variant and block shape by default), optional sonic-divider separators, and overflow content in <span>Doc ID: <code>core/components/ui/menu/menu</code>. Keywords: Concorde, supersoniks, core/components/ui/menu/menu, menu, Menu, UI component, sonic-menu, web component, direction, sonic-menu-item, variant, shape, sonic-divider, more, href, pushstate, autoActive. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/menu/menu.html">https://concorde.supersoniks.org/crawl/core/components/ui/menu/menu.html</a>.</span></p>
|
|
19
|
-
<h1 id="menu">Menu</h1>
|
|
20
|
-
<p><strong><code>sonic-menu</code></strong> lays out navigation or actions as a <strong><code>direction</code></strong> row or column of <strong><code>sonic-menu-item</code></strong> entries (ghost <strong><code>variant</code></strong> and block <strong><code>shape</code></strong> by default), optional <strong><code>sonic-divider</code></strong> separators, and overflow content in the <strong><code>more</code></strong> slot (popover “…” trigger). Set <strong><code>href</code></strong> / <strong><code>pushstate</code></strong> / <strong><code>autoActive</code></strong> on each <strong><code>sonic-menu-item</code></strong>—same API as <strong><code>sonic-button</code></strong>—not on the menu host.</p>
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<pre><code><sonic-menu direction="row">
|
|
23
|
-
<sonic-menu-item variant="ghost">
|
|
24
|
-
<sonic-icon library="iconoir" name="home" slot="prefix"></sonic-icon>
|
|
25
|
-
Home
|
|
26
|
-
</sonic-menu-item>
|
|
27
|
-
<sonic-menu-item>
|
|
28
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
29
|
-
Profile
|
|
30
|
-
</sonic-menu-item>
|
|
31
|
-
<sonic-menu-item type="danger">
|
|
32
|
-
<sonic-icon library="iconoir" name="log-out" slot="prefix"></sonic-icon>
|
|
33
|
-
Log out
|
|
34
|
-
</sonic-menu-item>
|
|
35
|
-
</sonic-menu>
|
|
36
|
-
</code></pre>
|
|
37
|
-
<h2 id="direction">Direction</h2>
|
|
38
|
-
<p>Default <strong><code>direction</code></strong> is <strong><code>column</code></strong>. Use <strong><code>row</code></strong> for horizontal toolbars or tabs.</p>
|
|
39
|
-
<pre><code><sonic-menu direction="row">
|
|
40
|
-
<sonic-menu-item variant="ghost">
|
|
41
|
-
<sonic-icon library="iconoir" name="arrow-right" slot="prefix"></sonic-icon>
|
|
42
|
-
Row
|
|
43
|
-
</sonic-menu-item>
|
|
44
|
-
<sonic-menu-item>
|
|
45
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
46
|
-
Profile
|
|
47
|
-
</sonic-menu-item>
|
|
48
|
-
<sonic-menu-item>
|
|
49
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
50
|
-
History
|
|
51
|
-
</sonic-menu-item>
|
|
52
|
-
<sonic-menu-item>
|
|
53
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
54
|
-
Orders
|
|
55
|
-
</sonic-menu-item>
|
|
56
|
-
<sonic-menu-item type="danger">
|
|
57
|
-
<sonic-icon library="iconoir" name="log-out" slot="prefix"></sonic-icon>
|
|
58
|
-
Log out
|
|
59
|
-
</sonic-menu-item>
|
|
60
|
-
</sonic-menu>
|
|
61
|
-
<sonic-menu direction="column">
|
|
62
|
-
<sonic-menu-item variant="ghost">
|
|
63
|
-
<sonic-icon library="iconoir" name="arrow-down" slot="prefix"></sonic-icon>
|
|
64
|
-
Column
|
|
65
|
-
</sonic-menu-item>
|
|
66
|
-
<sonic-menu-item>
|
|
67
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
68
|
-
Profile
|
|
69
|
-
</sonic-menu-item>
|
|
70
|
-
<sonic-menu-item>
|
|
71
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
72
|
-
History
|
|
73
|
-
</sonic-menu-item>
|
|
74
|
-
<sonic-menu-item>
|
|
75
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
76
|
-
Orders
|
|
77
|
-
</sonic-menu-item>
|
|
78
|
-
<sonic-menu-item type="danger">
|
|
79
|
-
<sonic-icon library="iconoir" name="log-out" slot="prefix"></sonic-icon>
|
|
80
|
-
Log out
|
|
81
|
-
</sonic-menu-item>
|
|
82
|
-
</sonic-menu>
|
|
83
|
-
</code></pre>
|
|
84
|
-
<h2 id="size">Size</h2>
|
|
85
|
-
<p><strong><code>size</code></strong> on the menu propagates to items and the <strong><code>more</code></strong> trigger when they omit their own <strong><code>size</code></strong>.</p>
|
|
86
|
-
<pre><code><div class="grid gap-3">
|
|
87
|
-
<sonic-menu size="xs" direction="row">
|
|
88
|
-
<sonic-menu-item>XS</sonic-menu-item>
|
|
89
|
-
<sonic-menu-item>
|
|
90
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
91
|
-
Profile
|
|
92
|
-
</sonic-menu-item>
|
|
93
|
-
<sonic-menu-item>
|
|
94
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
95
|
-
History
|
|
96
|
-
</sonic-menu-item>
|
|
97
|
-
<sonic-menu-item>
|
|
98
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
99
|
-
Orders
|
|
100
|
-
</sonic-menu-item>
|
|
101
|
-
</sonic-menu>
|
|
102
|
-
<sonic-menu size="sm" direction="row">
|
|
103
|
-
<sonic-menu-item>Small</sonic-menu-item>
|
|
104
|
-
<sonic-menu-item>
|
|
105
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
106
|
-
Profile
|
|
107
|
-
</sonic-menu-item>
|
|
108
|
-
<sonic-menu-item>
|
|
109
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
110
|
-
History
|
|
111
|
-
</sonic-menu-item>
|
|
112
|
-
<sonic-menu-item>
|
|
113
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
114
|
-
Orders
|
|
115
|
-
</sonic-menu-item>
|
|
116
|
-
</sonic-menu>
|
|
117
|
-
<sonic-menu direction="row">
|
|
118
|
-
<sonic-menu-item>Medium</sonic-menu-item>
|
|
119
|
-
<sonic-menu-item>
|
|
120
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
121
|
-
Profile
|
|
122
|
-
</sonic-menu-item>
|
|
123
|
-
<sonic-menu-item>
|
|
124
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
125
|
-
History
|
|
126
|
-
</sonic-menu-item>
|
|
127
|
-
<sonic-menu-item>
|
|
128
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
129
|
-
Orders
|
|
130
|
-
</sonic-menu-item>
|
|
131
|
-
</sonic-menu>
|
|
132
|
-
<sonic-menu size="lg" direction="row">
|
|
133
|
-
<sonic-menu-item>Large</sonic-menu-item>
|
|
134
|
-
<sonic-menu-item>
|
|
135
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
136
|
-
Profile
|
|
137
|
-
</sonic-menu-item>
|
|
138
|
-
<sonic-menu-item>
|
|
139
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
140
|
-
History
|
|
141
|
-
</sonic-menu-item>
|
|
142
|
-
<sonic-menu-item>
|
|
143
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
144
|
-
Orders
|
|
145
|
-
</sonic-menu-item>
|
|
146
|
-
</sonic-menu>
|
|
147
|
-
<sonic-menu size="xl" direction="row">
|
|
148
|
-
<sonic-menu-item>XL</sonic-menu-item>
|
|
149
|
-
<sonic-menu-item>
|
|
150
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
151
|
-
Profile
|
|
152
|
-
</sonic-menu-item>
|
|
153
|
-
<sonic-menu-item>
|
|
154
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
155
|
-
History
|
|
156
|
-
</sonic-menu-item>
|
|
157
|
-
<sonic-menu-item>
|
|
158
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
159
|
-
Orders
|
|
160
|
-
</sonic-menu-item>
|
|
161
|
-
</sonic-menu>
|
|
162
|
-
</div>
|
|
163
|
-
</code></pre>
|
|
164
|
-
<h2 id="shadow">Shadow</h2>
|
|
165
|
-
<p>Optional <strong><code>shadow</code></strong> wraps the menu surface (no shadow when omitted).</p>
|
|
166
|
-
<pre><code><div class="grid gap-3">
|
|
167
|
-
<sonic-menu direction="row">
|
|
168
|
-
<sonic-menu-item>None</sonic-menu-item>
|
|
169
|
-
</sonic-menu>
|
|
170
|
-
<sonic-menu shadow="sm" direction="row">
|
|
171
|
-
<sonic-menu-item>Small</sonic-menu-item>
|
|
172
|
-
</sonic-menu>
|
|
173
|
-
<sonic-menu shadow="md" direction="row">
|
|
174
|
-
<sonic-menu-item>Medium</sonic-menu-item>
|
|
175
|
-
</sonic-menu>
|
|
176
|
-
<sonic-menu shadow="lg" direction="row">
|
|
177
|
-
<sonic-menu-item>Large</sonic-menu-item>
|
|
178
|
-
</sonic-menu>
|
|
179
|
-
</div>
|
|
180
|
-
</code></pre>
|
|
181
|
-
<h2 id="align">Align</h2>
|
|
182
|
-
<p><strong><code>align</code></strong> propagates to items except square / circle <strong><code>shape</code></strong>.</p>
|
|
183
|
-
<pre><code><div class="grid gap-3">
|
|
184
|
-
<sonic-menu align="center">
|
|
185
|
-
<sonic-menu-item variant="ghost">
|
|
186
|
-
<sonic-icon library="iconoir" name="home"></sonic-icon>
|
|
187
|
-
Home
|
|
188
|
-
</sonic-menu-item>
|
|
189
|
-
<sonic-menu-item>
|
|
190
|
-
<sonic-icon library="iconoir" name="user"></sonic-icon>
|
|
191
|
-
Profile
|
|
192
|
-
</sonic-menu-item>
|
|
193
|
-
</sonic-menu>
|
|
194
|
-
<sonic-menu align="left">
|
|
195
|
-
<sonic-menu-item variant="ghost">
|
|
196
|
-
<sonic-icon library="iconoir" name="home"></sonic-icon>
|
|
197
|
-
Home
|
|
198
|
-
</sonic-menu-item>
|
|
199
|
-
<sonic-menu-item>
|
|
200
|
-
<sonic-icon library="iconoir" name="user"></sonic-icon>
|
|
201
|
-
Profile
|
|
202
|
-
</sonic-menu-item>
|
|
203
|
-
</sonic-menu>
|
|
204
|
-
<sonic-menu align="right">
|
|
205
|
-
<sonic-menu-item variant="ghost">
|
|
206
|
-
<sonic-icon library="iconoir" name="home"></sonic-icon>
|
|
207
|
-
Home
|
|
208
|
-
</sonic-menu-item>
|
|
209
|
-
<sonic-menu-item>
|
|
210
|
-
<sonic-icon library="iconoir" name="user"></sonic-icon>
|
|
211
|
-
Profile
|
|
212
|
-
</sonic-menu-item>
|
|
213
|
-
</sonic-menu>
|
|
214
|
-
</div>
|
|
215
|
-
</code></pre>
|
|
216
|
-
<h2 id="more">More</h2>
|
|
217
|
-
<p>Assign nodes to <strong><code>slot="more"</code></strong> to show the overflow popover. The trigger appears only when the slot has content. Icon orientation follows <strong><code>direction</code></strong> (vertical ellipsis in a row menu).</p>
|
|
218
|
-
<pre><code><sonic-menu direction="row">
|
|
219
|
-
<sonic-menu-item variant="ghost">
|
|
220
|
-
<sonic-icon library="iconoir" name="home"></sonic-icon>
|
|
221
|
-
Home
|
|
222
|
-
</sonic-menu-item>
|
|
223
|
-
<sonic-menu-item>
|
|
224
|
-
<sonic-icon library="iconoir" name="user"></sonic-icon>
|
|
225
|
-
Profile
|
|
226
|
-
</sonic-menu-item>
|
|
227
|
-
<sonic-menu-item>
|
|
228
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
229
|
-
History
|
|
230
|
-
</sonic-menu-item>
|
|
231
|
-
<sonic-menu-item>
|
|
232
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
233
|
-
Orders
|
|
234
|
-
</sonic-menu-item>
|
|
235
|
-
<sonic-menu slot="more">
|
|
236
|
-
<sonic-menu-item>
|
|
237
|
-
<sonic-icon library="iconoir" name="settings" slot="prefix"></sonic-icon>
|
|
238
|
-
Settings
|
|
239
|
-
</sonic-menu-item>
|
|
240
|
-
<sonic-menu-item>
|
|
241
|
-
<sonic-icon library="iconoir" name="chat-bubble" slot="prefix"></sonic-icon>
|
|
242
|
-
Messages
|
|
243
|
-
</sonic-menu-item>
|
|
244
|
-
<sonic-divider></sonic-divider>
|
|
245
|
-
<sonic-menu-item type="danger">
|
|
246
|
-
<sonic-icon library="iconoir" name="log-out" slot="prefix"></sonic-icon>
|
|
247
|
-
Log out
|
|
248
|
-
</sonic-menu-item>
|
|
249
|
-
</sonic-menu>
|
|
250
|
-
</sonic-menu>
|
|
251
|
-
</code></pre>
|
|
252
|
-
<h2 id="scrollable">Scrollable</h2>
|
|
253
|
-
<p>With <strong><code>scrollable</code></strong>, the main slot scrolls with edge fade masks; drag-to-scroll works on pointer devices. When exactly one item is <strong><code>active</code></strong>, the menu scrolls it into view.</p>
|
|
254
|
-
<pre><code><sonic-menu direction="row" scrollable>
|
|
255
|
-
<sonic-menu-item variant="ghost">
|
|
256
|
-
<sonic-icon library="iconoir" name="home" slot="prefix"></sonic-icon>
|
|
257
|
-
Home
|
|
258
|
-
</sonic-menu-item>
|
|
259
|
-
<sonic-menu-item>
|
|
260
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
261
|
-
Profile
|
|
262
|
-
</sonic-menu-item>
|
|
263
|
-
<sonic-menu-item>
|
|
264
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
265
|
-
History
|
|
266
|
-
</sonic-menu-item>
|
|
267
|
-
<sonic-menu-item>
|
|
268
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
269
|
-
Orders
|
|
270
|
-
</sonic-menu-item>
|
|
271
|
-
<sonic-menu-item variant="ghost">
|
|
272
|
-
<sonic-icon library="iconoir" name="home" slot="prefix"></sonic-icon>
|
|
273
|
-
Home
|
|
274
|
-
</sonic-menu-item>
|
|
275
|
-
<sonic-menu-item>
|
|
276
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
277
|
-
Profile
|
|
278
|
-
</sonic-menu-item>
|
|
279
|
-
<sonic-menu-item>
|
|
280
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
281
|
-
History
|
|
282
|
-
</sonic-menu-item>
|
|
283
|
-
<sonic-menu-item>
|
|
284
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
285
|
-
Orders
|
|
286
|
-
</sonic-menu-item>
|
|
287
|
-
<sonic-menu-item variant="ghost">
|
|
288
|
-
<sonic-icon library="iconoir" name="home" slot="prefix"></sonic-icon>
|
|
289
|
-
Home
|
|
290
|
-
</sonic-menu-item>
|
|
291
|
-
<sonic-menu-item>
|
|
292
|
-
<sonic-icon library="iconoir" name="user" slot="prefix"></sonic-icon>
|
|
293
|
-
Profile
|
|
294
|
-
</sonic-menu-item>
|
|
295
|
-
<sonic-menu-item>
|
|
296
|
-
<sonic-icon library="iconoir" name="clock-outline" slot="prefix"></sonic-icon>
|
|
297
|
-
History
|
|
298
|
-
</sonic-menu-item>
|
|
299
|
-
<sonic-menu-item>
|
|
300
|
-
<sonic-icon library="iconoir" name="bag" slot="prefix"></sonic-icon>
|
|
301
|
-
Orders
|
|
302
|
-
</sonic-menu-item>
|
|
303
|
-
<sonic-menu-item>
|
|
304
|
-
<sonic-icon library="iconoir" name="settings" slot="prefix"></sonic-icon>
|
|
305
|
-
Settings
|
|
306
|
-
</sonic-menu-item>
|
|
307
|
-
<sonic-menu-item>
|
|
308
|
-
<sonic-icon library="iconoir" name="chat-bubble" slot="prefix"></sonic-icon>
|
|
309
|
-
Messages
|
|
310
|
-
</sonic-menu-item>
|
|
311
|
-
<sonic-menu slot="more">
|
|
312
|
-
<sonic-menu-item>
|
|
313
|
-
<sonic-icon library="iconoir" name="settings" slot="prefix"></sonic-icon>
|
|
314
|
-
Settings
|
|
315
|
-
</sonic-menu-item>
|
|
316
|
-
<sonic-menu-item>
|
|
317
|
-
<sonic-icon library="iconoir" name="chat-bubble" slot="prefix"></sonic-icon>
|
|
318
|
-
Messages
|
|
319
|
-
</sonic-menu-item>
|
|
320
|
-
<sonic-divider></sonic-divider>
|
|
321
|
-
<sonic-menu-item type="danger">
|
|
322
|
-
<sonic-icon library="iconoir" name="log-out" slot="prefix"></sonic-icon>
|
|
323
|
-
Log out
|
|
324
|
-
</sonic-menu-item>
|
|
325
|
-
</sonic-menu>
|
|
326
|
-
</sonic-menu>
|
|
327
|
-
</code></pre>
|
|
328
|
-
<h2 id="api-reference">API reference</h2>
|
|
329
|
-
<table>
|
|
330
|
-
<thead>
|
|
331
|
-
<tr>
|
|
332
|
-
<th>Attribute</th>
|
|
333
|
-
<th>Values</th>
|
|
334
|
-
<th>Description</th>
|
|
335
|
-
</tr>
|
|
336
|
-
</thead>
|
|
337
|
-
<tbody><tr>
|
|
338
|
-
<td><code>direction</code></td>
|
|
339
|
-
<td><code>column</code> (default) · <code>row</code></td>
|
|
340
|
-
<td>Vertical list or horizontal bar</td>
|
|
341
|
-
</tr>
|
|
342
|
-
<tr>
|
|
343
|
-
<td><code>align</code></td>
|
|
344
|
-
<td><code>left</code> (default) · <code>center</code> · <code>right</code></td>
|
|
345
|
-
<td>Alignment propagated to items (except square / circle <strong><code>shape</code></strong>)</td>
|
|
346
|
-
</tr>
|
|
347
|
-
<tr>
|
|
348
|
-
<td><code>size</code></td>
|
|
349
|
-
<td><code>xs</code> · <code>sm</code> · <code>md</code> · <code>lg</code> · <code>xl</code></td>
|
|
350
|
-
<td>Propagated to items and the <strong><code>more</code></strong> trigger when unset on the item</td>
|
|
351
|
-
</tr>
|
|
352
|
-
<tr>
|
|
353
|
-
<td><code>shadow</code></td>
|
|
354
|
-
<td><code>sm</code> · <code>md</code> · <code>lg</code></td>
|
|
355
|
-
<td>Shadow around the menu; omitted for none</td>
|
|
356
|
-
</tr>
|
|
357
|
-
<tr>
|
|
358
|
-
<td><code>minWidth</code></td>
|
|
359
|
-
<td>CSS length</td>
|
|
360
|
-
<td>Minimum width of the container (default <code>0</code>)</td>
|
|
361
|
-
</tr>
|
|
362
|
-
<tr>
|
|
363
|
-
<td><code>scrollable</code></td>
|
|
364
|
-
<td>boolean</td>
|
|
365
|
-
<td>Scroll with edge fade; auto-scroll when a single item is <strong><code>active</code></strong></td>
|
|
366
|
-
</tr>
|
|
367
|
-
<tr>
|
|
368
|
-
<td><code>moreShape</code></td>
|
|
369
|
-
<td><code>circle</code> (default) · <code>square</code></td>
|
|
370
|
-
<td>Shape of the <strong><code>more</code></strong> slot trigger button</td>
|
|
371
|
-
</tr>
|
|
372
|
-
</tbody></table>
|
|
373
|
-
<table>
|
|
374
|
-
<thead>
|
|
375
|
-
<tr>
|
|
376
|
-
<th>Slot</th>
|
|
377
|
-
<th>Description</th>
|
|
378
|
-
</tr>
|
|
379
|
-
</thead>
|
|
380
|
-
<tbody><tr>
|
|
381
|
-
<td><em>(default)</em></td>
|
|
382
|
-
<td>Visible items: <strong><code>sonic-menu-item</code></strong>, <strong><code>sonic-divider</code></strong>, nested <strong><code>sonic-menu</code></strong></td>
|
|
383
|
-
</tr>
|
|
384
|
-
<tr>
|
|
385
|
-
<td><code>more</code></td>
|
|
386
|
-
<td>Popover content for the “…” control; shown only when the slot has assigned nodes</td>
|
|
387
|
-
</tr>
|
|
388
|
-
</tbody></table>
|
|
389
|
-
<p><strong><code>sonic-menu-item</code></strong> extends <strong><code>sonic-button</code></strong> (defaults: <strong><code>variant="ghost"</code></strong>, <strong><code>shape="block"</code></strong>). Use the button docs for <strong><code>type</code></strong>, <strong><code>variant</code></strong>, <strong><code>href</code></strong>, <strong><code>pushstate</code></strong>, <strong><code>autoActive</code></strong>, and item slots.</p>
|
|
390
|
-
|
|
391
|
-
</article>
|
|
392
|
-
</main>
|
|
393
|
-
</body>
|
|
394
|
-
</html>
|