@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,150 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/button/button.html" data-doc-id="core/components/ui/button/button">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Button — Concorde</title>
|
|
7
|
+
<meta name="description" content="The length of the button depends on the size of its content">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/button/button, button, Button, UI component, sonic-button, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/button/button">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/button/button.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/button/button.md/button" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Button</strong>. The length of the button depends on the size of its content <span>Doc ID: <code>core/components/ui/button/button</code>. Keywords: Concorde, supersoniks, core/components/ui/button/button, button, Button, UI component, sonic-button, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/button/button.html">https://concorde.supersoniks.org/crawl/core/components/ui/button/button.html</a>.</span></p>
|
|
19
|
+
<h1 id="button">Button</h1>
|
|
20
|
+
<h2 id="type">Type</h2>
|
|
21
|
+
<pre><code><div class="flex flex-wrap gap-2">
|
|
22
|
+
<sonic-button>Default</sonic-button>
|
|
23
|
+
<sonic-button type="primary">Primary</sonic-button>
|
|
24
|
+
<sonic-button type="neutral">Neutral</sonic-button>
|
|
25
|
+
<sonic-button type="warning">Warning</sonic-button>
|
|
26
|
+
<sonic-button type="info">Info</sonic-button>
|
|
27
|
+
<sonic-button type="success">Success</sonic-button>
|
|
28
|
+
<sonic-button type="danger">Danger</sonic-button>
|
|
29
|
+
<sonic-button type="custom" style="--sc-btn-custom-color: #fde68a; --sc-btn-custom-bg: #5b21b6">Custom</sonic-button>
|
|
30
|
+
</div>
|
|
31
|
+
</code></pre>
|
|
32
|
+
<h2 id="outline">Outline</h2>
|
|
33
|
+
<pre><code><div class="flex flex-wrap gap-2">
|
|
34
|
+
<sonic-button variant="outline">Default</sonic-button>
|
|
35
|
+
<sonic-button variant="outline" type="primary">Primary</sonic-button>
|
|
36
|
+
<sonic-button variant="outline" type="neutral">Neutral</sonic-button>
|
|
37
|
+
<sonic-button variant="outline" type="warning">Warning</sonic-button>
|
|
38
|
+
<sonic-button variant="outline" type="info">Info</sonic-button>
|
|
39
|
+
<sonic-button variant="outline" type="success">Success</sonic-button>
|
|
40
|
+
<sonic-button variant="outline" type="danger">Danger</sonic-button>
|
|
41
|
+
<sonic-button variant="outline" type="custom" style="--sc-btn-custom-bg: #5b21b6">Custom</sonic-button>
|
|
42
|
+
</div>
|
|
43
|
+
</code></pre>
|
|
44
|
+
<h2 id="variant">Variant</h2>
|
|
45
|
+
<pre><code><sonic-button variant="default">Default</sonic-button>
|
|
46
|
+
<sonic-button variant="outline">Outline</sonic-button>
|
|
47
|
+
<sonic-button variant="ghost">Ghost</sonic-button>
|
|
48
|
+
<sonic-button variant="link">Link</sonic-button>
|
|
49
|
+
<sonic-button variant="unstyled">Unstyled</sonic-button>
|
|
50
|
+
</code></pre>
|
|
51
|
+
<h2 id="size">Size</h2>
|
|
52
|
+
<pre><code><sonic-button size="2xs">2Xs button</sonic-button>
|
|
53
|
+
<sonic-button size="xs">Xs button</sonic-button>
|
|
54
|
+
<sonic-button size="sm">Sm button</sonic-button>
|
|
55
|
+
<sonic-button size="md">Md button</sonic-button>
|
|
56
|
+
<sonic-button>Default button</sonic-button>
|
|
57
|
+
<sonic-button size="lg">Lg button</sonic-button>
|
|
58
|
+
<sonic-button size="xl">Xl button</sonic-button>
|
|
59
|
+
<sonic-button size="2xl">2Xl button</sonic-button>
|
|
60
|
+
</code></pre>
|
|
61
|
+
<h2 id="shape">Shape</h2>
|
|
62
|
+
<pre><code><sonic-button shape="circle"> 😂 </sonic-button>
|
|
63
|
+
<sonic-button shape="square"> 🚀 </sonic-button>
|
|
64
|
+
</code></pre>
|
|
65
|
+
<h2 id="loading">Loading</h2>
|
|
66
|
+
<p>The length of the button depends on the size of its content</p>
|
|
67
|
+
<pre><code><sonic-button loading></sonic-button>
|
|
68
|
+
<sonic-button loading>Loading button</sonic-button>
|
|
69
|
+
<sonic-button loading><span slot="prefix">🚀</span>Loading with prefix<span slot="suffix">😂</span></sonic-button>
|
|
70
|
+
</code></pre>
|
|
71
|
+
<h2 id="swap">Swap</h2>
|
|
72
|
+
<pre><code><sonic-button formDataProvider="button_swap_example" name="youpi" value="youpla" type="primary" shape="circle" variant="outline" class="mr-4">
|
|
73
|
+
<sonic-icon library="iconoir" swap="on" name="eye-empty"></sonic-icon>
|
|
74
|
+
<sonic-icon library="iconoir" swap="off" name="eye-off"></sonic-icon>
|
|
75
|
+
</sonic-button>
|
|
76
|
+
<sonic-button formDataProvider="button_swap_example" name="youpi" value="youpla" type="primary" variant="outline">
|
|
77
|
+
<sonic-icon library="iconoir" swap="on" slot="prefix" name="eye-empty"></sonic-icon>
|
|
78
|
+
<sonic-icon library="iconoir" swap="off" slot="prefix" name="eye-off"></sonic-icon>
|
|
79
|
+
Révélez
|
|
80
|
+
<span swap="off">...</span>
|
|
81
|
+
<span swap="on">moi !</span>
|
|
82
|
+
</sonic-button>
|
|
83
|
+
</code></pre>
|
|
84
|
+
<h2 id="reset">Reset</h2>
|
|
85
|
+
<pre><code><div formDataProvider="button-reset-demo" class="mb-2">
|
|
86
|
+
<sonic-checkbox name="aChexbox" value="AValueToSet">Set A value</sonic-checkbox><br>
|
|
87
|
+
<sonic-button reset>Reset current formDataProvider</sonic-button>
|
|
88
|
+
</div>
|
|
89
|
+
<sonic-button reset="button-reset-demo">Reset formDataProvider by name</sonic-button>
|
|
90
|
+
</code></pre>
|
|
91
|
+
<h2 id="goback">GoBack</h2>
|
|
92
|
+
<pre><code><sonic-button goBack type="primary" variant="outline" class="mr-4">
|
|
93
|
+
<sonic-icon library="iconoir" slot="prefix" name="arrow-left"></sonic-icon>
|
|
94
|
+
Retour classique
|
|
95
|
+
</sonic-button>
|
|
96
|
+
<sonic-button goBack="http://la-billetterie.net" type="primary" variant="outline" class="mr-4">
|
|
97
|
+
<sonic-icon library="iconoir" slot="prefix" name="arrow-left"></sonic-icon>
|
|
98
|
+
Retour url prédéfinie
|
|
99
|
+
</sonic-button>
|
|
100
|
+
</code></pre>
|
|
101
|
+
<h2 id="button-with-icon">Button with icon</h2>
|
|
102
|
+
<pre><code><sonic-button goBack type="primary" variant="outline" class="mr-4">
|
|
103
|
+
<sonic-icon library="iconoir" slot="prefix" name="arrow-right" ></sonic-icon>
|
|
104
|
+
Button with icon
|
|
105
|
+
</sonic-button>
|
|
106
|
+
</code></pre>
|
|
107
|
+
<h2 id="button-group">Button group</h2>
|
|
108
|
+
<pre><code><sonic-group label="Code promo" class="mr-4">
|
|
109
|
+
<sonic-input placeholder="Entrez votre code ici..."></sonic-input>
|
|
110
|
+
<sonic-button type="primary" shape="square">
|
|
111
|
+
<sonic-icon library="iconoir" library="iconoir" name="gift"></sonic-icon>
|
|
112
|
+
</sonic-button>
|
|
113
|
+
</sonic-group>
|
|
114
|
+
<sonic-divider size="lg"></sonic-divider>
|
|
115
|
+
<div class="text-lg mb-2">Choose a subscription</div>
|
|
116
|
+
<sonic-group formDataProvider="subscriptionData">
|
|
117
|
+
<sonic-button radio minWidth="10rem" name="subscription" value="standard" type="default"
|
|
118
|
+
>😎 Standard</sonic-button
|
|
119
|
+
>
|
|
120
|
+
<sonic-button radio minWidth="10rem" name="subscription" value="premium" type="default">⭐ Premium</sonic-button>
|
|
121
|
+
<sonic-button radio minWidth="10rem" name="subscription" value="diamond" type="default">💎 Diamond</sonic-button>
|
|
122
|
+
</sonic-group>
|
|
123
|
+
</code></pre>
|
|
124
|
+
<h2 id="aria-label">Aria-label</h2>
|
|
125
|
+
<pre><code><sonic-button data-aria-label="Custom aria label" type="primary" >
|
|
126
|
+
Button with aria label
|
|
127
|
+
</sonic-button>
|
|
128
|
+
<sonic-button data-aria-label="Custom aria label" href="https://google.fr" type="primary" >
|
|
129
|
+
Button link with aria label
|
|
130
|
+
</sonic-button>
|
|
131
|
+
</code></pre>
|
|
132
|
+
<h2 id="custom-styles--active-states-with-tailwind">Custom styles & active states with tailwind</h2>
|
|
133
|
+
<pre><code><div formDataProvider="subscriptionData2">
|
|
134
|
+
<sonic-button
|
|
135
|
+
class="bg-neutral-100 transition-all text-center text-lg text-neutral-400 rounded-md min-w-[8rem] [&[active]]:text-danger-content [&[active]]:min-w-[13rem] [&[active]]:bg-danger [&[active]]:font-black [&[active]]:rounded-full"
|
|
136
|
+
variant="unstyled"
|
|
137
|
+
checkable unique
|
|
138
|
+
name="subscription"
|
|
139
|
+
value="premium"
|
|
140
|
+
type="default">
|
|
141
|
+
<span swap="off" class="inline-block py-2 px-3" >subscribe</span>
|
|
142
|
+
<span swap="on" class="inline-block py-2 px-3" >⭐ Premium</span>
|
|
143
|
+
</sonic-button>
|
|
144
|
+
</div>
|
|
145
|
+
</code></pre>
|
|
146
|
+
|
|
147
|
+
</article>
|
|
148
|
+
</main>
|
|
149
|
+
</body>
|
|
150
|
+
</html>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/captcha/captcha.html" data-doc-id="core/components/ui/captcha/captcha">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Captcha — Concorde</title>
|
|
7
|
+
<meta name="description" content="Captcha: Submit with captcha">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/captcha/captcha, captcha, Captcha, UI component, sonic-captcha, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/captcha/captcha">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/captcha/captcha.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/captcha/captcha.md/captcha" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Captcha</strong>. Captcha: Submit with captcha <span>Doc ID: <code>core/components/ui/captcha/captcha</code>. Keywords: Concorde, supersoniks, core/components/ui/captcha/captcha, captcha, Captcha, UI component, sonic-captcha, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/captcha/captcha.html">https://concorde.supersoniks.org/crawl/core/components/ui/captcha/captcha.html</a>.</span></p>
|
|
19
|
+
<h1 id="captcha">Captcha</h1>
|
|
20
|
+
<pre><code><sonic-captcha formDataProvider="captchaTestDataProvider" key="6Leq5V0iAAAAAB-41DlWN335jDlcIuXmhNtdd00t">
|
|
21
|
+
<sonic-submit serviceURL="/docs-mock-api" endPoint="api/unknown" onclick>
|
|
22
|
+
<sonic-button class="mt-4">Submit with captcha</sonic-button>
|
|
23
|
+
</sonic-submit>
|
|
24
|
+
</sonic-captcha>
|
|
25
|
+
</code></pre>
|
|
26
|
+
|
|
27
|
+
</article>
|
|
28
|
+
</main>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html" data-doc-id="core/components/ui/card/card">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Card — Concorde</title>
|
|
7
|
+
<meta name="description" content="A surface for grouped content: padding, radius, shadow, and semantic type colors via shared theme tokens. Compose sonic-card-header, sonic-card-main, and sonic-card-footer inside the card, or put any ">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, sonic-card-header, sonic-card-main, sonic-card-footer, base, light, invert, neutral, primary">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/card/card">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.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/card/card.md/card" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Card</strong>. A surface for grouped content: padding, radius, shadow, and semantic type colors via shared theme tokens. Compose sonic-card-header, sonic-card-main, and sonic-card-footer inside the card, or put any <span>Doc ID: <code>core/components/ui/card/card</code>. Keywords: Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component, type, sonic-card-header, sonic-card-main, sonic-card-footer, base, light, invert, neutral, primary. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html">https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html</a>.</span></p>
|
|
19
|
+
<h1 id="card">Card</h1>
|
|
20
|
+
<p>A <strong>surface</strong> for grouped content: padding, radius, shadow, and semantic <strong><code>type</code></strong> colors via shared theme tokens. Compose <strong><code>sonic-card-header</code></strong>, <strong><code>sonic-card-main</code></strong>, and <strong><code>sonic-card-footer</code></strong> inside the card, or put any markup in the default slot.</p>
|
|
21
|
+
<p>Default <strong><code>type</code></strong> is <code>base</code> (page background). Use <code>light</code> for a subtle gray panel, <code>invert</code> / <code>neutral</code> for high-contrast blocks, and <code>primary</code>, <code>info</code>, <code>success</code>, <code>warning</code>, or <code>danger</code> for tinted surfaces (divider tokens apply on colored types).</p>
|
|
22
|
+
<h2 id="type">Type</h2>
|
|
23
|
+
<pre><code><div class="flex flex-wrap gap-3">
|
|
24
|
+
<sonic-card type="base" class="min-w-[8rem]">Base</sonic-card>
|
|
25
|
+
<sonic-card type="light" class="min-w-[8rem]">Light</sonic-card>
|
|
26
|
+
<sonic-card type="primary" class="min-w-[8rem]">Primary</sonic-card>
|
|
27
|
+
<sonic-card type="info" class="min-w-[8rem]">Info</sonic-card>
|
|
28
|
+
<sonic-card type="success" class="min-w-[8rem]">Success</sonic-card>
|
|
29
|
+
<sonic-card type="warning" class="min-w-[8rem]">Warning</sonic-card>
|
|
30
|
+
<sonic-card type="danger" class="min-w-[8rem]">Danger</sonic-card>
|
|
31
|
+
<sonic-card type="neutral" class="min-w-[8rem]">Neutral</sonic-card>
|
|
32
|
+
<sonic-card type="invert" class="min-w-[8rem]">Invert</sonic-card>
|
|
33
|
+
</div>
|
|
34
|
+
</code></pre>
|
|
35
|
+
<h2 id="header">Header</h2>
|
|
36
|
+
<p>Quick titles with <strong><code>label</code></strong> and <strong><code>description</code></strong> attributes, or full control through the default slot. <strong><code>slot="suffix"</code></strong> aligns badges or actions on the right; suffix content does not shrink when the title wraps.</p>
|
|
37
|
+
<pre><code><div class="grid gap-4 max-w-xl">
|
|
38
|
+
<sonic-card>
|
|
39
|
+
<sonic-card-header
|
|
40
|
+
label="Account settings"
|
|
41
|
+
description="Manage your profile and preferences."
|
|
42
|
+
></sonic-card-header>
|
|
43
|
+
<p class="m-0 text-sm opacity-80">Body content goes in the card slot or in <code>sonic-card-main</code>.</p>
|
|
44
|
+
</sonic-card>
|
|
45
|
+
|
|
46
|
+
<sonic-card type="neutral">
|
|
47
|
+
<sonic-card-header label="Notifications">
|
|
48
|
+
<sonic-card-header-description>
|
|
49
|
+
Choose what we email you about.
|
|
50
|
+
</sonic-card-header-description>
|
|
51
|
+
<sonic-badge slot="suffix" type="warning" size="xs">3 new</sonic-badge>
|
|
52
|
+
</sonic-card-header>
|
|
53
|
+
</sonic-card>
|
|
54
|
+
|
|
55
|
+
<sonic-card>
|
|
56
|
+
<sonic-card-header label="Team workspace" description="Shared with 12 members">
|
|
57
|
+
<sonic-button
|
|
58
|
+
slot="suffix"
|
|
59
|
+
shape="circle"
|
|
60
|
+
variant="outline"
|
|
61
|
+
size="sm"
|
|
62
|
+
type="default"
|
|
63
|
+
icon
|
|
64
|
+
data-aria-label="Workspace settings"
|
|
65
|
+
>
|
|
66
|
+
<sonic-icon library="iconoir" name="settings"></sonic-icon>
|
|
67
|
+
</sonic-button>
|
|
68
|
+
</sonic-card-header>
|
|
69
|
+
</sonic-card>
|
|
70
|
+
|
|
71
|
+
<sonic-card type="primary">
|
|
72
|
+
<sonic-card-header>
|
|
73
|
+
<div>Custom header</div>
|
|
74
|
+
<sonic-card-header-description>
|
|
75
|
+
Use the header slot when attributes are not enough.
|
|
76
|
+
</sonic-card-header-description>
|
|
77
|
+
<sonic-button slot="suffix" shape="circle" variant="ghost" size="sm" type="primary" icon>
|
|
78
|
+
<sonic-icon library="iconoir" name="nav-arrow-right"></sonic-icon>
|
|
79
|
+
</sonic-button>
|
|
80
|
+
</sonic-card-header>
|
|
81
|
+
</sonic-card>
|
|
82
|
+
</div>
|
|
83
|
+
</code></pre>
|
|
84
|
+
<p><code>label</code> and <code>description</code> accept HTML (rendered as markup). Prefer plain text when possible; use the slot for structured content.</p>
|
|
85
|
+
<h2 id="main">Main</h2>
|
|
86
|
+
<p>Optional wrapper for the primary content area (typography, media, forms).</p>
|
|
87
|
+
<pre><code><sonic-card class="max-w-xl">
|
|
88
|
+
<sonic-card-header label="Release notes" description="Version 2.4"></sonic-card-header>
|
|
89
|
+
<sonic-card-main>
|
|
90
|
+
<p class="mt-0">
|
|
91
|
+
Improved performance on large lists and fixed an issue with keyboard navigation in menus.
|
|
92
|
+
</p>
|
|
93
|
+
<sonic-divider></sonic-divider>
|
|
94
|
+
<p class="mb-0 text-sm opacity-80">See the changelog for details.</p>
|
|
95
|
+
</sonic-card-main>
|
|
96
|
+
</sonic-card>
|
|
97
|
+
</code></pre>
|
|
98
|
+
<h2 id="footer">Footer</h2>
|
|
99
|
+
<p>Optional footer for actions, metadata, or secondary text.</p>
|
|
100
|
+
<pre><code><sonic-card class="max-w-xl">
|
|
101
|
+
<sonic-card-header label="Confirm deletion"></sonic-card-header>
|
|
102
|
+
<sonic-card-main>
|
|
103
|
+
<p class="m-0">This project and all of its data will be removed permanently.</p>
|
|
104
|
+
</sonic-card-main>
|
|
105
|
+
<sonic-card-footer>
|
|
106
|
+
<sonic-divider></sonic-divider>
|
|
107
|
+
<div class="flex flex-wrap gap-2 justify-end">
|
|
108
|
+
<sonic-button variant="ghost" size="sm">Cancel</sonic-button>
|
|
109
|
+
<sonic-button type="danger" size="sm">Delete</sonic-button>
|
|
110
|
+
</div>
|
|
111
|
+
</sonic-card-footer>
|
|
112
|
+
</sonic-card>
|
|
113
|
+
</code></pre>
|
|
114
|
+
<h2 id="full-example">Full example</h2>
|
|
115
|
+
<p>Header, media, body, and footer together.</p>
|
|
116
|
+
<pre><code><sonic-card class="max-w-md">
|
|
117
|
+
<sonic-card-header label="Featured route" description="San Francisco → New York">
|
|
118
|
+
<sonic-icon slot="suffix" library="iconoir" name="airplane"></sonic-icon>
|
|
119
|
+
</sonic-card-header>
|
|
120
|
+
<sonic-card-main>
|
|
121
|
+
<sonic-image
|
|
122
|
+
rounded
|
|
123
|
+
ratio="16/9"
|
|
124
|
+
src="https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=800&q=80"
|
|
125
|
+
alt=""
|
|
126
|
+
></sonic-image>
|
|
127
|
+
<p class="mb-0">
|
|
128
|
+
Nonstop flight with flexible dates. Prices shown include taxes and fees.
|
|
129
|
+
</p>
|
|
130
|
+
</sonic-card-main>
|
|
131
|
+
<sonic-card-footer>
|
|
132
|
+
<div class="flex items-center justify-between gap-3 flex-wrap">
|
|
133
|
+
<span class="text-sm font-semibold">From $249</span>
|
|
134
|
+
<sonic-button type="primary" size="sm">Book</sonic-button>
|
|
135
|
+
</div>
|
|
136
|
+
</sonic-card-footer>
|
|
137
|
+
</sonic-card>
|
|
138
|
+
</code></pre>
|
|
139
|
+
|
|
140
|
+
</article>
|
|
141
|
+
</main>
|
|
142
|
+
</body>
|
|
143
|
+
</html>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html" data-doc-id="core/components/ui/divider/divider">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Divider — Concorde</title>
|
|
7
|
+
<meta name="description" content="Default
|
|
8
|
+
|
|
9
|
+
Align
|
|
10
|
+
|
|
11
|
+
Size
|
|
12
|
+
|
|
13
|
+
Custom
|
|
14
|
+
|
|
15
|
+
Lorem ipsum dolor sit amet +25">
|
|
16
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component">
|
|
17
|
+
<meta name="concorde-doc-id" content="core/components/ui/divider/divider">
|
|
18
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
<header>
|
|
22
|
+
<p><a href="../../../../index.html">Concorde documentation (crawl)</a> · <a href="https://concorde.supersoniks.org/#core/components/ui/divider/divider.md/divider" rel="nofollow">interactive version</a></p>
|
|
23
|
+
</header>
|
|
24
|
+
<main>
|
|
25
|
+
<article>
|
|
26
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Divider</strong>. Default
|
|
27
|
+
|
|
28
|
+
Align
|
|
29
|
+
|
|
30
|
+
Size
|
|
31
|
+
|
|
32
|
+
Custom
|
|
33
|
+
|
|
34
|
+
Lorem ipsum dolor sit amet +25 <span>Doc ID: <code>core/components/ui/divider/divider</code>. Keywords: Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html</a>.</span></p>
|
|
35
|
+
<h1 id="divider">Divider</h1>
|
|
36
|
+
<h2 id="default">Default</h2>
|
|
37
|
+
<pre><code><sonic-divider></sonic-divider>
|
|
38
|
+
</code></pre>
|
|
39
|
+
<h2 id="align">Align</h2>
|
|
40
|
+
<pre><code><sonic-divider label="Default centered label"></sonic-divider>
|
|
41
|
+
<sonic-divider label="Right" align="right"></sonic-divider>
|
|
42
|
+
<sonic-divider label="Center" align="center"></sonic-divider>
|
|
43
|
+
<sonic-divider label="Left" align="left"></sonic-divider>
|
|
44
|
+
</code></pre>
|
|
45
|
+
<h2 id="size">Size</h2>
|
|
46
|
+
<pre><code><sonic-divider size="xs" label="xs"></sonic-divider>
|
|
47
|
+
<sonic-divider size="sm" label="sm"></sonic-divider>
|
|
48
|
+
<sonic-divider size="md" label="md"></sonic-divider>
|
|
49
|
+
<sonic-divider size="lg" label="lg"></sonic-divider>
|
|
50
|
+
</code></pre>
|
|
51
|
+
<h2 id="custom">Custom</h2>
|
|
52
|
+
<pre><code><sonic-divider><span class="mr-2">Lorem ipsum dolor sit amet</span><sonic-badge type="danger">+25</sonic-badge></sonic-divider>
|
|
53
|
+
</code></pre>
|
|
54
|
+
|
|
55
|
+
</article>
|
|
56
|
+
</main>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/form/checkbox/checkbox.html" data-doc-id="core/components/ui/form/checkbox/checkbox">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Checkbox — Concorde</title>
|
|
7
|
+
<meta name="description" content=">Already checked checkbox">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/checkbox/checkbox, checkbox, Checkbox, UI component, form, sonic-checkbox, web component, blacklistFlags, ?blacklistFlags=racist,sexist,…, flags, filterDocsJokes, src/docs/mock-api/fixtures.ts">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/form/checkbox/checkbox">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/checkbox/checkbox.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/form/checkbox/checkbox.md/checkbox" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Checkbox</strong>. >Already checked checkbox <span>Doc ID: <code>core/components/ui/form/checkbox/checkbox</code>. Keywords: Concorde, supersoniks, core/components/ui/form/checkbox/checkbox, checkbox, Checkbox, UI component, form, sonic-checkbox, web component, blacklistFlags, ?blacklistFlags=racist,sexist,…, flags, filterDocsJokes, src/docs/mock-api/fixtures.ts. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/form/checkbox/checkbox.html">https://concorde.supersoniks.org/crawl/core/components/ui/form/checkbox/checkbox.html</a>.</span></p>
|
|
19
|
+
<h1 id="checkbox">Checkbox</h1>
|
|
20
|
+
<h2 id="size">Size</h2>
|
|
21
|
+
<pre><code><div class="grid gap-2">
|
|
22
|
+
<sonic-checkbox size="2xs">2xs checkbox</sonic-checkbox>
|
|
23
|
+
<sonic-checkbox size="xs">xs checkbox</sonic-checkbox>
|
|
24
|
+
<sonic-checkbox size="sm">sm checkbox</sonic-checkbox>
|
|
25
|
+
<sonic-checkbox>default checkbox</sonic-checkbox>
|
|
26
|
+
<sonic-checkbox size="lg">lg checkbox</sonic-checkbox>
|
|
27
|
+
<sonic-checkbox size="xl">xl checkbox</sonic-checkbox>
|
|
28
|
+
<sonic-checkbox size="2xl">2xl checkbox</sonic-checkbox>
|
|
29
|
+
</div>
|
|
30
|
+
</code></pre>
|
|
31
|
+
<h2 id="checked">Checked</h2>
|
|
32
|
+
<pre><code><sonic-checkbox checked
|
|
33
|
+
>Already checked checkbox
|
|
34
|
+
</sonic-checkbox>
|
|
35
|
+
</code></pre>
|
|
36
|
+
<h2 id="disabled">Disabled</h2>
|
|
37
|
+
<pre><code><sonic-checkbox disabled
|
|
38
|
+
>Disabled checkbox
|
|
39
|
+
</sonic-checkbox>
|
|
40
|
+
</code></pre>
|
|
41
|
+
<h2 id="disabled-and-checked">Disabled and checked</h2>
|
|
42
|
+
<pre><code><sonic-checkbox disabled checked
|
|
43
|
+
>Disabled but already checked checkbox
|
|
44
|
+
</sonic-checkbox>
|
|
45
|
+
</code></pre>
|
|
46
|
+
<h2 id="checkbox-with-link">Checkbox with link</h2>
|
|
47
|
+
<pre><code><sonic-checkbox>Checkbox with <sonic-link href="#" class="underline text-info">link</sonic-link>
|
|
48
|
+
</code></pre>
|
|
49
|
+
<h2 id="check-all-checkbox">Check all checkbox</h2>
|
|
50
|
+
<pre><code><div formDataProvider="checkbox-check-all-demo">
|
|
51
|
+
<sonic-checkbox name='someSharedName' value="all" checksAll>All</sonic-checkbox>
|
|
52
|
+
<sonic-divider></sonic-divider>
|
|
53
|
+
<div class="grid gap-2">
|
|
54
|
+
<sonic-checkbox name="someSharedName" value="foo">Foo</sonic-checkbox>
|
|
55
|
+
<sonic-checkbox name="someSharedName" value="bar">Bar</sonic-checkbox>
|
|
56
|
+
</div>
|
|
57
|
+
<sonic-divider></sonic-divider>
|
|
58
|
+
<div>
|
|
59
|
+
<span>Enabling unsetOnDisconect ensures that outdated or irrelevant values are not retained in the form state once their associated inputs are no longer rendered.</span>
|
|
60
|
+
<div id="prunable-checkbox" class="flex gap-2 items-center">
|
|
61
|
+
<sonic-checkbox name="someSharedName" value="baz">Baz</sonic-checkbox>
|
|
62
|
+
<sonic-button variant="ghost" shape="circle" unique name="toggleCheckboxExistance" onclick="document.getElementById('prunable-checkbox').remove();" value="true"><sonic-icon library="fontAwesome" prefix="solid" name="trash"></sonic-icon></sonic-button>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</code></pre>
|
|
66
|
+
<h2 id="example-of-use--blacklist--queue">Example of use — blacklist + queue</h2>
|
|
67
|
+
<p>Checked <strong><code>blacklistFlags</code></strong> values are sent to the mock API (<code>?blacklistFlags=racist,sexist,…</code>), which excludes jokes whose <strong><code>flags</code></strong> match (see <code>filterDocsJokes</code> in <code>src/docs/mock-api/fixtures.ts</code>).</p>
|
|
68
|
+
<p><docs-lit-demo for="docs-joke-blacklist-demo"></docs-lit-demo></p>
|
|
69
|
+
|
|
70
|
+
</article>
|
|
71
|
+
</main>
|
|
72
|
+
</body>
|
|
73
|
+
</html>
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="fr" data-crawl-url="https://concorde.supersoniks.org/crawl/core/components/ui/form/fieldset/fieldset.html" data-doc-id="core/components/ui/form/fieldset/fieldset">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Fieldset — Concorde</title>
|
|
7
|
+
<meta name="description" content="Default">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/fieldset/fieldset, fieldset, Fieldset, UI component, form, sonic-fieldset, web component">
|
|
9
|
+
<meta name="concorde-doc-id" content="core/components/ui/form/fieldset/fieldset">
|
|
10
|
+
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/fieldset/fieldset.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/form/fieldset/fieldset.md/fieldset" rel="nofollow">interactive version</a></p>
|
|
15
|
+
</header>
|
|
16
|
+
<main>
|
|
17
|
+
<article>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Fieldset</strong>. Default <span>Doc ID: <code>core/components/ui/form/fieldset/fieldset</code>. Keywords: Concorde, supersoniks, core/components/ui/form/fieldset/fieldset, fieldset, Fieldset, UI component, form, sonic-fieldset, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/form/fieldset/fieldset.html">https://concorde.supersoniks.org/crawl/core/components/ui/form/fieldset/fieldset.html</a>.</span></p>
|
|
19
|
+
<h1 id="fieldset">Fieldset</h1>
|
|
20
|
+
<h2 id="variant">Variant</h2>
|
|
21
|
+
<pre><code><sonic-fieldset variant="default" >
|
|
22
|
+
Default
|
|
23
|
+
</sonic-fieldset>
|
|
24
|
+
<sonic-fieldset variant="ghost" >
|
|
25
|
+
Ghost
|
|
26
|
+
</sonic-fieldset>
|
|
27
|
+
<sonic-fieldset variant="shadow" >
|
|
28
|
+
Shadow
|
|
29
|
+
</sonic-fieldset>
|
|
30
|
+
</code></pre>
|
|
31
|
+
<h2 id="legend">Legend</h2>
|
|
32
|
+
<pre><code><sonic-fieldset>
|
|
33
|
+
<sonic-legend label="Legend via attribut : label" description="Description via attribut : description">
|
|
34
|
+
</sonic-legend>
|
|
35
|
+
</sonic-fieldset>
|
|
36
|
+
<sonic-fieldset>
|
|
37
|
+
<sonic-legend iconLibrary="iconoir" iconName="pin-alt">
|
|
38
|
+
Custom legend via <b>slot</b>
|
|
39
|
+
<sonic-legend-description>
|
|
40
|
+
Description via composant : sonic-legend-description
|
|
41
|
+
</sonic-legend-description>
|
|
42
|
+
</sonic-legend>
|
|
43
|
+
</sonic-fieldset>
|
|
44
|
+
</code></pre>
|
|
45
|
+
<h2 id="short-hand">Short hand</h2>
|
|
46
|
+
<pre><code><sonic-fieldset
|
|
47
|
+
label="All props on fieldset tag"
|
|
48
|
+
description="Lorem ipsum dolor sit amet, consectetur adipiscing elit"
|
|
49
|
+
iconLibrary="iconoir"
|
|
50
|
+
iconName="user">
|
|
51
|
+
</sonic-fieldset>
|
|
52
|
+
</code></pre>
|
|
53
|
+
<h2 id="example-of-use">Example of use</h2>
|
|
54
|
+
<pre><code><sonic-div formDataProvider="user_create">
|
|
55
|
+
<form action="/inscription?lang=fr" method="POST" class="mb-20" accept-charset="UTF-8" id="youpla">
|
|
56
|
+
<sonic-fieldset form="formid" collapsible="true" collapsed="false">
|
|
57
|
+
<sonic-legend iconLibrary="iconoir" iconName="user">
|
|
58
|
+
Informations personnelles
|
|
59
|
+
<span slot="description">Description du fieldset lorem ipsum dolor</span>
|
|
60
|
+
<sonic-pop class="inline-block" slot="suffix">
|
|
61
|
+
<sonic-button shape="circle" variant="ghost">
|
|
62
|
+
<sonic-icon library="iconoir" size="lg" name="more-vert"></sonic-icon
|
|
63
|
+
></sonic-button>
|
|
64
|
+
<sonic-menu slot="content" minWidth="12rem">
|
|
65
|
+
<sonic-menu-item>Mentions légales</sonic-menu-item>
|
|
66
|
+
<sonic-menu-item>Conditions générales d'utilisation</sonic-menu-item>
|
|
67
|
+
</sonic-menu>
|
|
68
|
+
</sonic-pop>
|
|
69
|
+
</sonic-legend>
|
|
70
|
+
<sonic-form-layout>
|
|
71
|
+
<sonic-input autocomplete="family-name" label="Nom" name="nom"></sonic-input>
|
|
72
|
+
<sonic-input autocomplete="given-name" label="Prénom" name="prenom"></sonic-input>
|
|
73
|
+
<sonic-select autocomplete="sex" label="Sexe" name="sexe">
|
|
74
|
+
<option value="" selected="selected">- Sélectionner -</option>
|
|
75
|
+
<option value="-">Je préfère ne pas le dire</option>
|
|
76
|
+
<option value="Homme">Homme</option>
|
|
77
|
+
<option value="Femme">Femme</option>
|
|
78
|
+
</sonic-select>
|
|
79
|
+
<sonic-input autocomplete="bday" label="Date de naissance" name="date_naissance" type="date"></sonic-input>
|
|
80
|
+
<sonic-divider></sonic-divider>
|
|
81
|
+
<sonic-input autocomplete="email" label="e-mail" name="email" type="email"></sonic-input>
|
|
82
|
+
<sonic-input
|
|
83
|
+
autocomplete="email"
|
|
84
|
+
label="Confirmer votre e-mail"
|
|
85
|
+
name="email_confirmation"
|
|
86
|
+
type="email"
|
|
87
|
+
></sonic-input>
|
|
88
|
+
<sonic-input autocomplete="new-password" label="Mot de passe" name="password" type="password"></sonic-input>
|
|
89
|
+
<sonic-input
|
|
90
|
+
autocomplete="new-password"
|
|
91
|
+
label="Confirmer votre mot de passe"
|
|
92
|
+
name="password_confirmation"
|
|
93
|
+
type="password"
|
|
94
|
+
></sonic-input>
|
|
95
|
+
</sonic-form-layout>
|
|
96
|
+
</sonic-fieldset>
|
|
97
|
+
<sonic-fieldset form="formid" collapsible="true" collapsed="false">
|
|
98
|
+
<sonic-legend iconLibrary="iconoir" iconName="pin-alt"> Coordonnées </sonic-legend>
|
|
99
|
+
<sonic-form-layout>
|
|
100
|
+
<sonic-input autocomplete="postal-code" label="Code postal" name="cp"></sonic-input>
|
|
101
|
+
<sonic-input autocomplete="address-level2" label="Ville" name="ville"></sonic-input>
|
|
102
|
+
</sonic-form-layout>
|
|
103
|
+
</sonic-fieldset>
|
|
104
|
+
<div class="">
|
|
105
|
+
<sonic-button submit type="primary">
|
|
106
|
+
<sonic-icon library="iconoir" name="check"></sonic-icon>
|
|
107
|
+
S'inscrire
|
|
108
|
+
</sonic-button>
|
|
109
|
+
<sonic-tooltip class="inline-flex" label="Vous êtes sûr(e) ? 🙄">
|
|
110
|
+
<sonic-button size="sm" variant="ghost"> Continuer sans m'inscrire </sonic-button>
|
|
111
|
+
</sonic-tooltip>
|
|
112
|
+
</div>
|
|
113
|
+
</form>
|
|
114
|
+
<div dataProvider="user_create" class="my-6 text-neutral-600 p-5 rounded-xl shadow-lg">
|
|
115
|
+
<div class="font-bold text-lg text-neutral-400">Submitted informations...</div>
|
|
116
|
+
<div class="text-lg my-2">
|
|
117
|
+
<sonic-value key="nom" class="font-bold"></sonic-value>
|
|
118
|
+
<sonic-value key="prenom"></sonic-value>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="text-sm">
|
|
121
|
+
<sonic-value key="sexe"></sonic-value>
|
|
122
|
+
<sonic-value key="date_naissance"></sonic-value>
|
|
123
|
+
</div>
|
|
124
|
+
<div class="text-sm">
|
|
125
|
+
<sonic-value key="email"></sonic-value>
|
|
126
|
+
<sonic-value key="cp"></sonic-value>
|
|
127
|
+
<sonic-value key="ville"></sonic-value></div>
|
|
128
|
+
</div>
|
|
129
|
+
</sonic-div>
|
|
130
|
+
</code></pre>
|
|
131
|
+
|
|
132
|
+
</article>
|
|
133
|
+
</main>
|
|
134
|
+
</body>
|
|
135
|
+
</html>
|