@supersoniks/concorde 5.0.2 → 5.0.3
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/build-infos.json +1 -1
- package/concorde-core.bundle.js +1 -1
- package/concorde-core.es.js +1 -1
- package/dist/concorde-core.bundle.js +1 -1
- package/dist/concorde-core.es.js +1 -1
- package/docs/altcha-widget.js +2662 -0
- package/docs/assets/index--GpD7R7a.css +1 -0
- package/docs/assets/index-BnK6OS7w.js +12115 -0
- package/docs/crawl/core/components/functional/date/date.html +190 -0
- package/docs/crawl/core/components/functional/fetch/fetch.html +109 -0
- package/docs/crawl/core/components/functional/if/if.html +27 -0
- package/docs/crawl/core/components/functional/jsonata/jsonata.html +79 -0
- package/docs/crawl/core/components/functional/list/list.html +70 -0
- package/docs/crawl/core/components/functional/mix/mix.html +45 -0
- package/docs/crawl/core/components/functional/queue/queue.html +96 -0
- package/docs/crawl/core/components/functional/router/router.html +106 -0
- package/docs/crawl/core/components/functional/sdui/sdui.html +269 -0
- package/docs/crawl/core/components/functional/states/states.html +66 -0
- package/docs/crawl/core/components/functional/submit/submit.html +160 -0
- package/docs/crawl/core/components/functional/subscriber/subscriber.html +67 -0
- package/docs/crawl/core/components/functional/value/value.html +51 -0
- package/docs/crawl/core/components/ui/alert/alert.html +140 -0
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +23 -0
- package/docs/crawl/core/components/ui/badge/badge.html +148 -0
- package/docs/crawl/core/components/ui/button/button.html +150 -0
- package/docs/crawl/core/components/ui/captcha/captcha.html +30 -0
- package/docs/crawl/core/components/ui/card/card.html +143 -0
- package/docs/crawl/core/components/ui/divider/divider.html +58 -0
- package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +73 -0
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +135 -0
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +79 -0
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +62 -0
- package/docs/crawl/core/components/ui/form/input/input.html +109 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +38 -0
- package/docs/crawl/core/components/ui/form/radio/radio.html +56 -0
- package/docs/crawl/core/components/ui/form/select/select.html +73 -0
- package/docs/crawl/core/components/ui/form/switch/switch.html +56 -0
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +59 -0
- package/docs/crawl/core/components/ui/group/group.html +82 -0
- package/docs/crawl/core/components/ui/icon/icon.html +133 -0
- package/docs/crawl/core/components/ui/image/image.html +186 -0
- package/docs/crawl/core/components/ui/link/link.html +42 -0
- package/docs/crawl/core/components/ui/loader/loader.html +50 -0
- package/docs/crawl/core/components/ui/menu/menu.html +322 -0
- package/docs/crawl/core/components/ui/modal/modal.html +117 -0
- package/docs/crawl/core/components/ui/pop/pop.html +178 -0
- package/docs/crawl/core/components/ui/progress/progress.html +58 -0
- package/docs/crawl/core/components/ui/table/table.html +413 -0
- package/docs/crawl/core/components/ui/toast/toast.html +122 -0
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +79 -0
- package/docs/crawl/docs/_core-concept/dataFlow.html +177 -0
- package/docs/crawl/docs/_core-concept/overview.html +66 -0
- package/docs/crawl/docs/_core-concept/subscriber.html +75 -0
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +116 -0
- package/docs/crawl/docs/_decorators/auto-subscribe.html +202 -0
- package/docs/crawl/docs/_decorators/bind.html +141 -0
- package/docs/crawl/docs/_decorators/get.html +149 -0
- package/docs/crawl/docs/_decorators/handle.html +165 -0
- package/docs/crawl/docs/_decorators/on-assign.html +355 -0
- package/docs/crawl/docs/_decorators/patch.html +78 -0
- package/docs/crawl/docs/_decorators/post.html +139 -0
- package/docs/crawl/docs/_decorators/publish.html +61 -0
- package/docs/crawl/docs/_decorators/put.html +78 -0
- package/docs/crawl/docs/_decorators/subscribe.html +109 -0
- package/docs/crawl/docs/_decorators/wait-for-ancestors.html +137 -0
- package/docs/crawl/docs/_directives/sub.html +93 -0
- package/docs/crawl/docs/_getting-started/ai-agents.html +173 -0
- package/docs/crawl/docs/_getting-started/concorde-manual-install.html +100 -0
- package/docs/crawl/docs/_getting-started/concorde-outside.html +58 -0
- package/docs/crawl/docs/_getting-started/create-a-component.html +111 -0
- package/docs/crawl/docs/_getting-started/my-first-component.html +189 -0
- package/docs/crawl/docs/_getting-started/my-first-subscriber.html +110 -0
- package/docs/crawl/docs/_getting-started/pubsub.html +62 -0
- package/docs/crawl/docs/_getting-started/start.html +76 -0
- package/docs/crawl/docs/_getting-started/theming.html +85 -0
- package/docs/crawl/docs/_misc/api-configuration.html +149 -0
- package/docs/crawl/docs/_misc/dataProviderKey.html +135 -0
- package/docs/crawl/docs/_misc/docs-mock-api.html +158 -0
- package/docs/crawl/docs/_misc/dynamic-path.html +180 -0
- package/docs/crawl/docs/_misc/endpoint.html +50 -0
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +138 -0
- package/docs/crawl/docs/_misc/html-integration.html +48 -0
- package/docs/crawl/hubs/decorators.html +547 -0
- package/docs/crawl/hubs/form-components.html +359 -0
- package/docs/crawl/hubs/remote-data.html +452 -0
- package/docs/crawl/index.html +101 -0
- package/docs/css/docs.css +0 -0
- package/docs/docs-mock-api-sw.js +724 -0
- package/docs/docs-mock-api-sw.js.map +7 -0
- package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Light.eot +0 -0
- package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff +0 -0
- package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
- package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
- package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
- package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
- package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
- package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
- package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/docs/img/concorde-icon.svg +5 -0
- package/docs/img/concorde-logo.svg +1 -0
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/img/concorde_seuil.png.webp +0 -0
- package/docs/img/concorde_seuil_invert.png +0 -0
- package/docs/img/paul_metrand.jpg +0 -0
- package/docs/img/paul_metrand_xs.jpg +0 -0
- package/docs/index.html +93 -0
- package/docs/llms-full.txt +5945 -0
- package/docs/llms.txt +104 -0
- package/docs/robots.txt +16 -0
- package/docs/sitemap.xml +237 -0
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +125 -0
- package/docs/src/core/components/functional/if/if.md +9 -0
- package/docs/src/core/components/functional/jsonata/jsonata.md +56 -0
- package/docs/src/core/components/functional/list/list.md +65 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +72 -0
- package/docs/src/core/components/functional/router/router.md +94 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +114 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +177 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +175 -0
- package/docs/src/core/components/ui/button/button.md +183 -0
- package/docs/src/core/components/ui/captcha/captcha.md +12 -0
- package/docs/src/core/components/ui/card/card.md +152 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +77 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
- package/docs/src/core/components/ui/form/input/input.md +142 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +29 -0
- package/docs/src/core/components/ui/form/radio/radio.md +57 -0
- package/docs/src/core/components/ui/form/select/select.md +71 -0
- package/docs/src/core/components/ui/form/switch/switch.md +57 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +201 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +55 -0
- package/docs/src/core/components/ui/menu/menu.md +329 -0
- package/docs/src/core/components/ui/modal/modal.md +119 -0
- package/docs/src/core/components/ui/pop/pop.md +200 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/toast/toast.md +166 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/dataFlow.md +88 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +75 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +127 -0
- package/docs/src/docs/_decorators/auto-subscribe.md +202 -0
- package/docs/src/docs/_decorators/bind.md +167 -0
- package/docs/src/docs/_decorators/get.md +162 -0
- package/docs/src/docs/_decorators/handle.md +175 -0
- package/docs/src/docs/_decorators/on-assign.md +390 -0
- package/docs/src/docs/_decorators/patch.md +70 -0
- package/docs/src/docs/_decorators/post.md +146 -0
- package/docs/src/docs/_decorators/publish.md +55 -0
- package/docs/src/docs/_decorators/put.md +70 -0
- package/docs/src/docs/_decorators/subscribe.md +100 -0
- package/docs/src/docs/_decorators/wait-for-ancestors.md +163 -0
- package/docs/src/docs/_directives/sub.md +91 -0
- package/docs/src/docs/_getting-started/ai-agents.md +76 -0
- package/docs/src/docs/_getting-started/concorde-manual-install.md +133 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +33 -0
- package/docs/src/docs/_getting-started/create-a-component.md +139 -0
- package/docs/src/docs/_getting-started/my-first-component.md +236 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +120 -0
- package/docs/src/docs/_getting-started/pubsub.md +37 -0
- package/docs/src/docs/_getting-started/start.md +47 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/_misc/api-configuration.md +81 -0
- package/docs/src/docs/_misc/dataProviderKey.md +168 -0
- package/docs/src/docs/_misc/docs-mock-api.md +63 -0
- package/docs/src/docs/_misc/dynamic-path.md +71 -0
- package/docs/src/docs/_misc/endpoint.md +45 -0
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/docs/src/docs/_misc/html-integration.md +15 -0
- package/docs/src/docs/search/docs-search.json +10137 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +1224 -0
- package/docs/svg/regular/plane.svg +1 -0
- package/docs/svg/solid/plane.svg +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/group/group.html" data-doc-id="core/components/ui/group/group">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Group — Concorde</title>
|
|
7
|
+
<meta name="description" content="Group: 😎 Standard ⭐ Premium 💎 Diamond">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/group/group, group, Group, UI component, sonic-group, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/group/group">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/group/group.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/group/group.md/group" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Group</strong>. Group: 😎 Standard ⭐ Premium 💎 Diamond <span>Doc ID: <code>core/components/ui/group/group</code>. Keywords: Concorde, supersoniks, core/components/ui/group/group, group, Group, UI component, sonic-group, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/group/group.html">https://concorde.supersoniks.org/crawl/core/components/ui/group/group.html</a>.</span></p>
|
|
19
|
+
<h1 id="group">Group</h1>
|
|
20
|
+
<h2 id="radio-group">Radio group</h2>
|
|
21
|
+
<pre><code><sonic-group formDataProvider="subscriptionData">
|
|
22
|
+
<sonic-button radio name="subscription" value="standard" type="default">😎 Standard</sonic-button>
|
|
23
|
+
<sonic-button radio checked name="subscription" value="premium" type="default">⭐ Premium</sonic-button>
|
|
24
|
+
<sonic-button radio name="subscription" value="diamond" type="default">💎 Diamond</sonic-button>
|
|
25
|
+
</sonic-group>
|
|
26
|
+
</code></pre>
|
|
27
|
+
<h2 id="button-group">Button group</h2>
|
|
28
|
+
<pre><code><sonic-group>
|
|
29
|
+
<sonic-button type="info" target="_blank" href="https://wwws.airfrance.fr/">🗼Air France</sonic-button>
|
|
30
|
+
<sonic-button type="success" target="_blank" href="https://www.airtahitinui.com/">🌴 Air Tahiti</sonic-button>
|
|
31
|
+
<sonic-button type="danger" target="_blank" href="https://www.aircorsica.com/">💣 Air Corsica</sonic-button>
|
|
32
|
+
</sonic-group>
|
|
33
|
+
</code></pre>
|
|
34
|
+
<h2 id="input-actions-prefix">Input actions prefix</h2>
|
|
35
|
+
<pre><code><div class="grid grid-cols-3 gap-3">
|
|
36
|
+
<sonic-group>
|
|
37
|
+
<sonic-button type="info" shape="square">
|
|
38
|
+
<sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
|
|
39
|
+
</sonic-button>
|
|
40
|
+
<sonic-input placeholder="placeholder" ></sonic-input>
|
|
41
|
+
</sonic-group>
|
|
42
|
+
<sonic-group label="Label">
|
|
43
|
+
<sonic-button type="info" shape="square">
|
|
44
|
+
<sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
|
|
45
|
+
</sonic-button>
|
|
46
|
+
<sonic-input ></sonic-input>
|
|
47
|
+
</sonic-group>
|
|
48
|
+
<sonic-group description="Description">
|
|
49
|
+
<sonic-button type="info" shape="square">
|
|
50
|
+
<sonic-icon library="iconoir" library="iconoir" name="info-empty"></sonic-icon>
|
|
51
|
+
</sonic-button>
|
|
52
|
+
<sonic-input ></sonic-input>
|
|
53
|
+
</sonic-group>
|
|
54
|
+
</div>
|
|
55
|
+
</code></pre>
|
|
56
|
+
<h2 id="input-actions-suffix">Input actions suffix</h2>
|
|
57
|
+
<pre><code><div class="grid grid-cols-3 gap-3">
|
|
58
|
+
<sonic-group>
|
|
59
|
+
<sonic-input placeholder="placeholder" ></sonic-input>
|
|
60
|
+
<sonic-button type="primary" shape="square">
|
|
61
|
+
<sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
|
|
62
|
+
</sonic-button>
|
|
63
|
+
</sonic-group>
|
|
64
|
+
<sonic-group label="Label">
|
|
65
|
+
<sonic-input ></sonic-input>
|
|
66
|
+
<sonic-button type="primary" shape="square">
|
|
67
|
+
<sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
|
|
68
|
+
</sonic-button>
|
|
69
|
+
</sonic-group>
|
|
70
|
+
<sonic-group description="Description">
|
|
71
|
+
<sonic-input ></sonic-input>
|
|
72
|
+
<sonic-button type="primary" shape="square">
|
|
73
|
+
<sonic-icon library="iconoir" library="iconoir" name="check"></sonic-icon>
|
|
74
|
+
</sonic-button>
|
|
75
|
+
</sonic-group>
|
|
76
|
+
</div>
|
|
77
|
+
</code></pre>
|
|
78
|
+
|
|
79
|
+
</article>
|
|
80
|
+
</main>
|
|
81
|
+
</body>
|
|
82
|
+
</html>
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html" data-doc-id="core/components/ui/icon/icon">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Icon — Concorde</title>
|
|
7
|
+
<meta name="description" content="customIconDefaultPrefix="regular">">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/icon/icon, icon, Icon, UI component, sonic-icon, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/icon/icon">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.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/icon/icon.md/icon" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Icon</strong>. customIconDefaultPrefix="regular"> <span>Doc ID: <code>core/components/ui/icon/icon</code>. Keywords: Concorde, supersoniks, core/components/ui/icon/icon, icon, Icon, UI component, sonic-icon, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html">https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html</a>.</span></p>
|
|
19
|
+
<h1 id="icon">Icon</h1>
|
|
20
|
+
<h2 id="custom">Custom</h2>
|
|
21
|
+
<p >Icons located in the following folder : <span class="text-info">/svg/$prefix/$name.svg<span></p>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<pre><code><sonic-scope customIconLibraryPath="/svg/$prefix/$name.svg"
|
|
26
|
+
customIconDefaultPrefix="regular">
|
|
27
|
+
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
28
|
+
<div class="text-center">
|
|
29
|
+
<sonic-icon library="custom" prefix="regular" name="plane"></sonic-icon>
|
|
30
|
+
<br>
|
|
31
|
+
<div class="text-xs mt-1">regular</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="text-center">
|
|
34
|
+
<sonic-icon library="custom" prefix="solid" name="plane"></sonic-icon>
|
|
35
|
+
<br>
|
|
36
|
+
<div class="text-xs mt-1">solid</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="text-center">
|
|
39
|
+
<sonic-icon library="custom" name="plane"></sonic-icon>
|
|
40
|
+
<br>
|
|
41
|
+
<div class="text-xs mt-1">default prefix</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</sonic-scope>
|
|
45
|
+
</code></pre>
|
|
46
|
+
<h2 id="external">External</h2>
|
|
47
|
+
<pre><code><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
48
|
+
<sonic-link href="https://heroicons.com/" target="_blank" class="text-center underline">
|
|
49
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="lg"></sonic-icon>
|
|
50
|
+
<br>
|
|
51
|
+
<div class="text-xs mt-1">heroicons</div>
|
|
52
|
+
</sonic-link>
|
|
53
|
+
<sonic-link href="https://iconoir.com/" target="_blank" class="text-center underline">
|
|
54
|
+
<sonic-icon library="iconoir" name="2x2-cell" size="lg"></sonic-icon>
|
|
55
|
+
<br>
|
|
56
|
+
<div class="text-xs mt-1">iconoir</div>
|
|
57
|
+
</sonic-link>
|
|
58
|
+
<sonic-link href="https://materialdesignicons.com/" target="_blank" class="text-center underline">
|
|
59
|
+
<sonic-icon library="material" prefix="outline" name="email" size="lg"></sonic-icon>
|
|
60
|
+
<br>
|
|
61
|
+
<div class="text-xs mt-1">material design</div>
|
|
62
|
+
</sonic-link>
|
|
63
|
+
<sonic-link href="https://fontawesome.com/search?o=r&m=free&s=regular" target="_blank" class="text-center underline">
|
|
64
|
+
<sonic-icon library="fontAwesome" prefix="regular" name="user" size="lg"></sonic-icon>
|
|
65
|
+
<br>
|
|
66
|
+
<div class="text-xs mt-1">fontAwesome regular</div>
|
|
67
|
+
</sonic-link>
|
|
68
|
+
<sonic-link href="https://fontawesome.com/search?o=r&m=free&s=solid" target="_blank" class="text-center underline">
|
|
69
|
+
<sonic-icon library="fontAwesome" prefix="solid" name="book" size="lg"></sonic-icon>
|
|
70
|
+
<br>
|
|
71
|
+
<div class="text-xs mt-1">fontAwesome solid</div>
|
|
72
|
+
</sonic-link>
|
|
73
|
+
<sonic-link href="https://feathericons.com/" target="_blank" class="text-center underline">
|
|
74
|
+
<sonic-icon library="feathers" name="activity" size="lg"></sonic-icon>
|
|
75
|
+
<br>
|
|
76
|
+
<div class="text-xs mt-1">feathers</div>
|
|
77
|
+
</sonic-link>
|
|
78
|
+
<sonic-link href="https://lucide.dev/" target="_blank" class="text-center underline">
|
|
79
|
+
<sonic-icon library="lucide" name="album" size="lg"></sonic-icon>
|
|
80
|
+
<br>
|
|
81
|
+
<div class="text-xs mt-1">lucide</div>
|
|
82
|
+
</sonic-link>
|
|
83
|
+
</div>
|
|
84
|
+
</code></pre>
|
|
85
|
+
<h2 id="size">Size</h2>
|
|
86
|
+
<pre><code><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
87
|
+
<div class="text-center">
|
|
88
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="2xs"></sonic-icon>
|
|
89
|
+
<br>
|
|
90
|
+
<div class="text-xs mt-1">2xs</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="text-center">
|
|
93
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="xs"></sonic-icon>
|
|
94
|
+
<br>
|
|
95
|
+
<div class="text-xs mt-1">xs</div>
|
|
96
|
+
</div>
|
|
97
|
+
<div class="text-center">
|
|
98
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="sm"></sonic-icon>
|
|
99
|
+
<br>
|
|
100
|
+
<div class="text-xs mt-1">sm</div>
|
|
101
|
+
</div>
|
|
102
|
+
<div class="text-center">
|
|
103
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap"></sonic-icon>
|
|
104
|
+
<br>
|
|
105
|
+
<div class="text-xs mt-1">default</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="text-center">
|
|
108
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="lg"></sonic-icon>
|
|
109
|
+
<br>
|
|
110
|
+
<div class="text-xs mt-1">lg</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="text-center">
|
|
113
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="xl"></sonic-icon>
|
|
114
|
+
<br>
|
|
115
|
+
<div class="text-xs mt-1">xl</div>
|
|
116
|
+
</div>
|
|
117
|
+
<div class="text-center">
|
|
118
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="2xl"></sonic-icon>
|
|
119
|
+
<br>
|
|
120
|
+
<div class="text-xs mt-1">2xl</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="text-center">
|
|
123
|
+
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="3xl"></sonic-icon>
|
|
124
|
+
<br>
|
|
125
|
+
<div class="text-xs mt-1">3xl</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</code></pre>
|
|
129
|
+
|
|
130
|
+
</article>
|
|
131
|
+
</main>
|
|
132
|
+
</body>
|
|
133
|
+
</html>
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html" data-doc-id="core/components/ui/image/image">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Image — Concorde</title>
|
|
7
|
+
<meta name="description" content="Responsive <img> wrapper: aspect ratio, object-fit: cover, rounded corners, and optional fade-in on load. The host uses a light placeholder background (--sc-placeholder-bg) until the file is ready. De">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component, , object-fit: cover, --sc-placeholder-bg, loading, lazy, loading="eager", rounded, --sc-rounded, sm">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/image/image">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.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/image/image.md/image" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Image</strong>. Responsive <img> wrapper: aspect ratio, object-fit: cover, rounded corners, and optional fade-in on load. The host uses a light placeholder background (--sc-placeholder-bg) until the file is ready. De <span>Doc ID: <code>core/components/ui/image/image</code>. Keywords: Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component, , object-fit: cover, --sc-placeholder-bg, loading, lazy, loading="eager", rounded, --sc-rounded, sm. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html">https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html</a>.</span></p>
|
|
19
|
+
<h1 id="image">Image</h1>
|
|
20
|
+
<p>Responsive <strong><code><img></code></strong> wrapper: aspect ratio, <code>object-fit: cover</code>, rounded corners, and optional fade-in on load. The host uses a light placeholder background (<code>--sc-placeholder-bg</code>) until the file is ready. Default <strong><code>loading</code></strong> is <code>lazy</code>; set <strong><code>loading="eager"</code></strong> for above-the-fold heroes.</p>
|
|
21
|
+
<h2 id="rounded">Rounded</h2>
|
|
22
|
+
<p>Omit <code>rounded</code> for square corners. Boolean <strong><code>rounded</code></strong> uses the theme token <code>--sc-rounded</code>. Sizes: <strong><code>sm</code></strong>, <strong><code>md</code></strong>, <strong><code>lg</code></strong>, <strong><code>xl</code></strong>, <strong><code>full</code></strong> (circle — pair with <code>ratio="1/1"</code>), <strong><code>none</code></strong> (explicit reset).</p>
|
|
23
|
+
<pre><code><div class="grid gap-6 grid-cols-3 lg:grid-cols-4 items-end text-center text-xs ">
|
|
24
|
+
<div>
|
|
25
|
+
<sonic-image
|
|
26
|
+
ratio="1/1"
|
|
27
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
28
|
+
></sonic-image>
|
|
29
|
+
<p class="mt-2">default</p>
|
|
30
|
+
</div>
|
|
31
|
+
<div>
|
|
32
|
+
<sonic-image
|
|
33
|
+
rounded="sm"
|
|
34
|
+
ratio="1/1"
|
|
35
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
36
|
+
></sonic-image>
|
|
37
|
+
<p class="mt-2">sm</p>
|
|
38
|
+
</div>
|
|
39
|
+
<div>
|
|
40
|
+
<sonic-image
|
|
41
|
+
rounded
|
|
42
|
+
ratio="1/1"
|
|
43
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
44
|
+
></sonic-image>
|
|
45
|
+
<p class="mt-2">rounded</p>
|
|
46
|
+
</div>
|
|
47
|
+
<div>
|
|
48
|
+
<sonic-image
|
|
49
|
+
rounded="md"
|
|
50
|
+
ratio="1/1"
|
|
51
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
52
|
+
></sonic-image>
|
|
53
|
+
<p class="mt-2">md</p>
|
|
54
|
+
</div>
|
|
55
|
+
<div>
|
|
56
|
+
<sonic-image
|
|
57
|
+
rounded="lg"
|
|
58
|
+
ratio="1/1"
|
|
59
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
60
|
+
></sonic-image>
|
|
61
|
+
<p class="mt-2">lg</p>
|
|
62
|
+
</div>
|
|
63
|
+
<div>
|
|
64
|
+
<sonic-image
|
|
65
|
+
rounded="xl"
|
|
66
|
+
ratio="1/1"
|
|
67
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
68
|
+
></sonic-image>
|
|
69
|
+
<p class="mt-2">xl</p>
|
|
70
|
+
</div>
|
|
71
|
+
<div >
|
|
72
|
+
<div >
|
|
73
|
+
<sonic-image
|
|
74
|
+
rounded="full"
|
|
75
|
+
ratio="1/1"
|
|
76
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
77
|
+
></sonic-image>
|
|
78
|
+
<p class="mt-2">full</p>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</code></pre>
|
|
83
|
+
<h2 id="aspect-ratio">Aspect ratio</h2>
|
|
84
|
+
<p><strong><code>ratio</code></strong> sets CSS <code>aspect-ratio</code> on the image (default <strong><code>auto</code></strong>). The image still fills the host width (<code>width: 100%</code>).</p>
|
|
85
|
+
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
86
|
+
<sonic-image
|
|
87
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
88
|
+
></sonic-image>
|
|
89
|
+
<sonic-image
|
|
90
|
+
ratio="16/9"
|
|
91
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
92
|
+
></sonic-image>
|
|
93
|
+
<sonic-image
|
|
94
|
+
ratio="1/1"
|
|
95
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
96
|
+
></sonic-image>
|
|
97
|
+
<sonic-image
|
|
98
|
+
ratio="2/3"
|
|
99
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
100
|
+
></sonic-image>
|
|
101
|
+
</div>
|
|
102
|
+
</code></pre>
|
|
103
|
+
<h2 id="object-position">Object position</h2>
|
|
104
|
+
<p><strong><code>objectPosition</code></strong> maps to CSS <code>object-position</code> (default <strong><code>center center</code></strong>). Useful on wide crops when the subject sits off-center.</p>
|
|
105
|
+
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
106
|
+
<sonic-image
|
|
107
|
+
ratio="11/4"
|
|
108
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
109
|
+
></sonic-image>
|
|
110
|
+
<sonic-image
|
|
111
|
+
objectPosition="center top"
|
|
112
|
+
ratio="11/4"
|
|
113
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
114
|
+
></sonic-image>
|
|
115
|
+
</div>
|
|
116
|
+
</code></pre>
|
|
117
|
+
<h2 id="cover">Cover</h2>
|
|
118
|
+
<p><strong><code>cover</code></strong> stretches the image to fill a <strong>positioned</strong> parent (<code>position: relative</code> + fixed height or inset). Aspect ratio on the host is ignored while <code>cover</code> is set.</p>
|
|
119
|
+
<pre><code><div class="h-96 relative rounded-lg overflow-hidden">
|
|
120
|
+
<sonic-image
|
|
121
|
+
cover
|
|
122
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
123
|
+
></sonic-image>
|
|
124
|
+
</div>
|
|
125
|
+
</code></pre>
|
|
126
|
+
<h2 id="load-transition">Load transition</h2>
|
|
127
|
+
<p>Set <strong><code>transition</code></strong> to <strong><code>fade</code></strong> (default when the attribute is present) or <strong><code>fade-scale-out</code></strong>. The image stays at <code>opacity: 0</code> until the browser fires <strong><code>load</code></strong>, then the <strong><code>loaded</code></strong> class runs the animation. Changing <code>src</code> on an existing element does not replay the effect — mount a new <code>sonic-image</code> when you need another entrance (galleries, infinite scroll).</p>
|
|
128
|
+
<p>Click <strong>Add image</strong> to append small thumbnails and replay the transition. <strong>Clear</strong> resets the row.</p>
|
|
129
|
+
<pre><code><div class="flex flex-wrap gap-2 mb-4">
|
|
130
|
+
<sonic-button
|
|
131
|
+
size="sm"
|
|
132
|
+
onclick="(function () {
|
|
133
|
+
var host = document.getElementById('sonic-image-transition-host');
|
|
134
|
+
var img = document.createElement('sonic-image');
|
|
135
|
+
img.transition = 'fade';
|
|
136
|
+
img.ratio = '1/1';
|
|
137
|
+
img.rounded = 'md';
|
|
138
|
+
img.loading = 'eager';
|
|
139
|
+
img.style.width = '5rem';
|
|
140
|
+
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
141
|
+
host.appendChild(img);
|
|
142
|
+
})()"
|
|
143
|
+
>
|
|
144
|
+
Add image (fade)
|
|
145
|
+
</sonic-button>
|
|
146
|
+
<sonic-button
|
|
147
|
+
size="sm"
|
|
148
|
+
variant="outline"
|
|
149
|
+
onclick="(function () {
|
|
150
|
+
var host = document.getElementById('sonic-image-transition-host');
|
|
151
|
+
var img = document.createElement('sonic-image');
|
|
152
|
+
img.transition = 'fade-scale-out';
|
|
153
|
+
img.ratio = '1/1';
|
|
154
|
+
img.rounded = 'md';
|
|
155
|
+
img.loading = 'eager';
|
|
156
|
+
img.style.width = '5rem';
|
|
157
|
+
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
158
|
+
host.appendChild(img);
|
|
159
|
+
})()"
|
|
160
|
+
>
|
|
161
|
+
Add image (fade-scale-out)
|
|
162
|
+
</sonic-button>
|
|
163
|
+
<sonic-button
|
|
164
|
+
size="sm"
|
|
165
|
+
variant="ghost"
|
|
166
|
+
onclick="document.getElementById('sonic-image-transition-host').replaceChildren()"
|
|
167
|
+
>
|
|
168
|
+
Clear
|
|
169
|
+
</sonic-button>
|
|
170
|
+
</div>
|
|
171
|
+
<div id="sonic-image-transition-host" class="flex flex-wrap gap-2 min-h-[5rem]"></div>
|
|
172
|
+
</code></pre>
|
|
173
|
+
<h2 id="accessibility-and-parts">Accessibility and parts</h2>
|
|
174
|
+
<p>Always set meaningful <strong><code>alt</code></strong> text (empty string only for decorative images). </p>
|
|
175
|
+
<pre><code><sonic-image
|
|
176
|
+
rounded="md"
|
|
177
|
+
ratio="16/9"
|
|
178
|
+
alt="Concorde aircraft in flight"
|
|
179
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
180
|
+
></sonic-image>
|
|
181
|
+
</code></pre>
|
|
182
|
+
|
|
183
|
+
</article>
|
|
184
|
+
</main>
|
|
185
|
+
</body>
|
|
186
|
+
</html>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html" data-doc-id="core/components/ui/link/link">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Link — Concorde</title>
|
|
7
|
+
<meta name="description" content="Link: Basic link with href attribute">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/link/link">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.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/link/link.md/link" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Link</strong>. Link: Basic link with href attribute <span>Doc ID: <code>core/components/ui/link/link</code>. Keywords: Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html">https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html</a>.</span></p>
|
|
19
|
+
<h1 id="link">Link</h1>
|
|
20
|
+
<h2 id="href">Href</h2>
|
|
21
|
+
<pre><code><sonic-link href="/">Basic link with href attribute</sonic-link>
|
|
22
|
+
</code></pre>
|
|
23
|
+
<h2 id="target">Target</h2>
|
|
24
|
+
<pre><code><sonic-link href="/" target="_blank">Link with target attribute</sonic-link>
|
|
25
|
+
</code></pre>
|
|
26
|
+
<h2 id="autoactive">AutoActive</h2>
|
|
27
|
+
<pre><code><sonic-link href="/#core/components" class="[&[active]]:text-success">autoActive partial (default)</sonic-link>
|
|
28
|
+
</code></pre>
|
|
29
|
+
<h3 id="autoactive-strict-vs-partial">AutoActive Strict vs partial</h3>
|
|
30
|
+
<pre><code><div class="grid gap-3">
|
|
31
|
+
<sonic-link href="/#core" autoActive="strict" class="[&[active]]:text-success">autoActive strict</sonic-link>
|
|
32
|
+
<sonic-link href="/./link.html#link" autoActive="strict" class="[&[active]]:text-success">autoActive strict</sonic-link>
|
|
33
|
+
</div>
|
|
34
|
+
</code></pre>
|
|
35
|
+
<h3 id="autoactive-disabled">AutoActive disabled</h3>
|
|
36
|
+
<pre><code><sonic-link href="/./link.html#link" autoActive="disabled" class="[&[active]]:text-success">autoActive disabled</sonic-link>
|
|
37
|
+
</code></pre>
|
|
38
|
+
|
|
39
|
+
</article>
|
|
40
|
+
</main>
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
@@ -0,0 +1,50 @@
|
|
|
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="import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader";">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/loader/loader, loader, Loader, UI component, sonic-loader, web component">
|
|
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>. import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader"; <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. 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
|
+
<h2 id="inline-mode">Inline mode</h2>
|
|
21
|
+
<pre><code><sonic-loader mode="inline"></sonic-loader>
|
|
22
|
+
</code></pre>
|
|
23
|
+
<h2 id="currentcolor">CurrentColor</h2>
|
|
24
|
+
<pre><code><sonic-loader mode="inline" currentColor style="color:purple;"></sonic-loader>
|
|
25
|
+
</code></pre>
|
|
26
|
+
<h2 id="align">Align</h2>
|
|
27
|
+
<pre><code><sonic-loader mode="inline" align="left"></sonic-loader>
|
|
28
|
+
<sonic-loader mode="inline" align="center"></sonic-loader>
|
|
29
|
+
<sonic-loader mode="inline" align="right"></sonic-loader>
|
|
30
|
+
</code></pre>
|
|
31
|
+
<h2 id="fixed-mode">Fixed mode</h2>
|
|
32
|
+
<p><docs-lit-demo for="docs-toggle-loader-demo"></docs-lit-demo></p>
|
|
33
|
+
<h2 id="loading-button">Loading button</h2>
|
|
34
|
+
<pre><code><sonic-button loading>A loading button</sonic-button>
|
|
35
|
+
</code></pre>
|
|
36
|
+
<h2 id="hide--show-programmatically">Hide / show programmatically</h2>
|
|
37
|
+
<pre><code class="language-javascript">import {Loader} from "@supersoniks/concorde/core/components/ui/loader/loader";
|
|
38
|
+
// Show
|
|
39
|
+
Loader.show({
|
|
40
|
+
mode:"fixed" // optional : fixed | inline
|
|
41
|
+
container : document.querySelector('#foo') // optional, default : parent sonic-theme || document.body
|
|
42
|
+
});
|
|
43
|
+
// Hide
|
|
44
|
+
Loader.hide();
|
|
45
|
+
</code></pre>
|
|
46
|
+
|
|
47
|
+
</article>
|
|
48
|
+
</main>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|