@supersoniks/concorde 5.0.5 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3960 -0
- package/concorde-3d.es.js +33433 -0
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3685 -3405
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-interactive.bundle.js +1157 -0
- package/concorde-interactive.es.js +10734 -0
- package/concorde-shader.bundle.js +116 -0
- package/concorde-shader.es.js +8353 -0
- package/concorde-webgpu.bundle.js +307 -0
- package/concorde-webgpu.es.js +8627 -0
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3685 -3405
- package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -172
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
- package/docs/crawl/core/components/ui/badge/badge.html +79 -157
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
- package/docs/crawl/core/components/ui/card/card.html +68 -222
- package/docs/crawl/core/components/ui/divider/divider.html +31 -117
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +38 -60
- package/docs/crawl/core/components/ui/icon/icon.html +47 -136
- package/docs/crawl/core/components/ui/image/image.html +56 -244
- package/docs/crawl/core/components/ui/link/link.html +9 -67
- package/docs/crawl/core/components/ui/loader/loader.html +23 -97
- package/docs/crawl/core/components/ui/menu/menu.html +90 -162
- package/docs/crawl/core/components/ui/modal/modal.html +50 -275
- package/docs/crawl/core/components/ui/pop/pop.html +66 -260
- package/docs/crawl/core/components/ui/progress/progress.html +30 -103
- package/docs/crawl/core/components/ui/table/table.html +171 -303
- package/docs/crawl/core/components/ui/toast/toast.html +59 -170
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +63 -311
- package/docs/crawl/hubs/form-components.html +53 -75
- package/docs/crawl/index.html +6 -7
- package/docs/docs-mock-api-sw.js +0 -2
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +7 -9
- package/docs/llms-full.txt +456 -1703
- package/docs/llms.txt +32 -25
- package/docs/sitemap.xml +0 -3
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +72 -147
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +80 -141
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +6 -65
- package/docs/src/core/components/ui/card/card.md +65 -183
- package/docs/src/core/components/ui/divider/divider.md +13 -107
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +43 -132
- package/docs/src/core/components/ui/image/image.md +53 -179
- package/docs/src/core/components/ui/link/link.md +7 -45
- package/docs/src/core/components/ui/loader/loader.md +22 -79
- package/docs/src/core/components/ui/menu/menu.md +92 -133
- package/docs/src/core/components/ui/modal/modal.md +47 -163
- package/docs/src/core/components/ui/pop/pop.md +64 -262
- package/docs/src/core/components/ui/progress/progress.md +30 -76
- package/docs/src/core/components/ui/table/table.md +171 -147
- package/docs/src/core/components/ui/toast/toast.md +58 -108
- package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +61 -223
- package/docs/src/docs/search/docs-search.json +348 -3083
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -63
- package/gitlab/job_github_mirror.sh +39 -0
- package/package.json +36 -2
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
- package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
- package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
- package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
- package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
- package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
- package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
- package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
- package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
- package/src/core/components/functional/sdui/sdui.md +122 -0
- package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
- package/src/core/components/functional/sdui/sdui.ts +442 -34
- package/src/core/components/functional/sdui/types.ts +49 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/css.d.ts +19 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +90 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- package/docs/src/core/components/ui/theme/theme.md +0 -122
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Fieldset — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/fieldset/fieldset, fieldset, Fieldset, UI component, form, sonic-fieldset, web component
|
|
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
9
|
<meta name="concorde-doc-id" content="core/components/ui/form/fieldset/fieldset">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/fieldset/fieldset.html">
|
|
11
11
|
</head>
|
|
@@ -15,250 +15,119 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Fieldset</strong>.
|
|
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
19
|
<h1 id="fieldset">Fieldset</h1>
|
|
20
|
-
<p><strong><code>sonic-fieldset</code></strong> groups related form controls with a bordered container and an accessible <strong><code><fieldset></code></strong> semantics layer. Put fields in the <strong>default slot</strong>; add a title with <strong><code>sonic-legend</code></strong> or the shorthand <strong><code>label</code></strong> / <strong><code>description</code></strong> / <strong><code>iconName</code></strong> attributes. Default <strong><code>variant</code></strong> is <code>default</code>. Pair the body with <strong><code>sonic-form-layout</code></strong> for responsive columns.</p>
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<pre><code><sonic-fieldset>
|
|
23
|
-
<sonic-legend label="Contact details"></sonic-legend>
|
|
24
|
-
<sonic-form-layout>
|
|
25
|
-
<sonic-input autocomplete="email" label="Email" name="email" type="email"></sonic-input>
|
|
26
|
-
<sonic-input autocomplete="tel" label="Phone" name="phone" type="tel"></sonic-input>
|
|
27
|
-
</sonic-form-layout>
|
|
28
|
-
</sonic-fieldset>
|
|
29
|
-
</code></pre>
|
|
30
20
|
<h2 id="variant">Variant</h2>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<sonic-input label="Field" name="b"></sonic-input>
|
|
40
|
-
</sonic-fieldset>
|
|
41
|
-
<sonic-fieldset variant="shadow">
|
|
42
|
-
<sonic-legend label="Shadow"></sonic-legend>
|
|
43
|
-
<sonic-input label="Field" name="c"></sonic-input>
|
|
44
|
-
</sonic-fieldset>
|
|
45
|
-
</div>
|
|
46
|
-
</code></pre>
|
|
47
|
-
<h2 id="tight-layout">Tight layout</h2>
|
|
48
|
-
<p>Set <strong><code>tight</code></strong> to remove horizontal padding and side borders (flat strip inside a parent).</p>
|
|
49
|
-
<pre><code><sonic-fieldset tight variant="ghost">
|
|
50
|
-
<sonic-legend label="Tight fieldset"></sonic-legend>
|
|
51
|
-
<sonic-input label="Field" name="tight"></sonic-input>
|
|
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
|
|
52
29
|
</sonic-fieldset>
|
|
53
30
|
</code></pre>
|
|
54
31
|
<h2 id="legend">Legend</h2>
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
</
|
|
62
|
-
<sonic-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<sonic-input label="Field" name="slot"></sonic-input>
|
|
68
|
-
</sonic-fieldset>
|
|
69
|
-
</div>
|
|
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>
|
|
70
44
|
</code></pre>
|
|
71
|
-
<h2 id="
|
|
72
|
-
<p>When <strong><code>label</code></strong> is set on <strong><code>sonic-fieldset</code></strong>, the component renders <strong><code>sonic-legend</code></strong> for you. Pass <strong><code>description</code></strong> <strong><code>iconName</code></strong> <strong><code>iconLibrary</code></strong> and <strong><code>iconPrefix</code></strong> the same way. Do not combine shorthand <strong><code>label</code></strong> with a separate slotted <strong><code>sonic-legend</code></strong>—you will get two legends.</p>
|
|
45
|
+
<h2 id="short-hand">Short hand</h2>
|
|
73
46
|
<pre><code><sonic-fieldset
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<sonic-input label="Display name" name="display_name"></sonic-input>
|
|
80
|
-
</sonic-fieldset>
|
|
81
|
-
</code></pre>
|
|
82
|
-
<h2 id="legend-actions">Legend actions</h2>
|
|
83
|
-
<p>Use <strong><code>slot="suffix"</code></strong> on <strong><code>sonic-legend</code></strong> for menus or icon buttons aligned to the end of the legend row.</p>
|
|
84
|
-
<pre><code><sonic-fieldset>
|
|
85
|
-
<sonic-legend label="Personal information">
|
|
86
|
-
<sonic-pop class="inline-block" slot="suffix">
|
|
87
|
-
<sonic-button shape="circle" variant="ghost">
|
|
88
|
-
<sonic-icon library="iconoir" size="lg" name="more-vert"></sonic-icon>
|
|
89
|
-
</sonic-button>
|
|
90
|
-
<sonic-menu slot="content" minWidth="12rem">
|
|
91
|
-
<sonic-menu-item>Legal notice</sonic-menu-item>
|
|
92
|
-
<sonic-menu-item>Terms of use</sonic-menu-item>
|
|
93
|
-
</sonic-menu>
|
|
94
|
-
</sonic-pop>
|
|
95
|
-
</sonic-legend>
|
|
96
|
-
<sonic-form-layout>
|
|
97
|
-
<sonic-input autocomplete="family-name" label="Last name" name="last_name"></sonic-input>
|
|
98
|
-
<sonic-input autocomplete="given-name" label="First name" name="first_name"></sonic-input>
|
|
99
|
-
</sonic-form-layout>
|
|
100
|
-
</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>
|
|
101
52
|
</code></pre>
|
|
102
|
-
<h2 id="
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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>
|
|
110
70
|
<sonic-form-layout>
|
|
111
|
-
<sonic-input
|
|
112
|
-
<sonic-input
|
|
113
|
-
<sonic-
|
|
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>
|
|
114
95
|
</sonic-form-layout>
|
|
115
96
|
</sonic-fieldset>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<sonic-input label="Display name" name="display_name"></sonic-input>
|
|
123
|
-
</sonic-fieldset>
|
|
124
|
-
<sonic-fieldset label="Locked" disabled>
|
|
125
|
-
<sonic-input label="Account ID" name="account_id" value="acct_42"></sonic-input>
|
|
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>
|
|
126
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>
|
|
127
128
|
</div>
|
|
129
|
+
</sonic-div>
|
|
128
130
|
</code></pre>
|
|
129
|
-
<h2 id="accessibility">Accessibility</h2>
|
|
130
|
-
<p>The inner <strong><code><fieldset></code></strong> carries grouping semantics. <strong><code>disabled</code></strong> is applied on that element so nested controls are disabled in the usual way. <strong><code>sonic-legend</code></strong> renders a native <strong><code><legend></code></strong> for the group label.</p>
|
|
131
|
-
<h2 id="api-reference">API reference</h2>
|
|
132
|
-
<h3 id="sonic-fieldset"><code>sonic-fieldset</code></h3>
|
|
133
|
-
<table>
|
|
134
|
-
<thead>
|
|
135
|
-
<tr>
|
|
136
|
-
<th>Attribute</th>
|
|
137
|
-
<th>Values</th>
|
|
138
|
-
<th>Description</th>
|
|
139
|
-
</tr>
|
|
140
|
-
</thead>
|
|
141
|
-
<tbody><tr>
|
|
142
|
-
<td><code>variant</code></td>
|
|
143
|
-
<td><code>default</code> · <code>ghost</code> · <code>shadow</code> (default <code>default</code>)</td>
|
|
144
|
-
<td>Border and shadow treatment</td>
|
|
145
|
-
</tr>
|
|
146
|
-
<tr>
|
|
147
|
-
<td><code>tight</code></td>
|
|
148
|
-
<td>boolean</td>
|
|
149
|
-
<td>Removes horizontal padding and side borders</td>
|
|
150
|
-
</tr>
|
|
151
|
-
<tr>
|
|
152
|
-
<td><code>label</code></td>
|
|
153
|
-
<td>string</td>
|
|
154
|
-
<td>Shorthand legend title; renders <strong><code>sonic-legend</code></strong> when set</td>
|
|
155
|
-
</tr>
|
|
156
|
-
<tr>
|
|
157
|
-
<td><code>description</code></td>
|
|
158
|
-
<td>string</td>
|
|
159
|
-
<td>Shorthand legend description (HTML)</td>
|
|
160
|
-
</tr>
|
|
161
|
-
<tr>
|
|
162
|
-
<td><code>iconName</code></td>
|
|
163
|
-
<td>string</td>
|
|
164
|
-
<td>Shorthand legend icon <strong><code>name</code></strong></td>
|
|
165
|
-
</tr>
|
|
166
|
-
<tr>
|
|
167
|
-
<td><code>iconLibrary</code></td>
|
|
168
|
-
<td>string</td>
|
|
169
|
-
<td>Shorthand legend icon <strong><code>library</code></strong></td>
|
|
170
|
-
</tr>
|
|
171
|
-
<tr>
|
|
172
|
-
<td><code>iconPrefix</code></td>
|
|
173
|
-
<td>string</td>
|
|
174
|
-
<td>Shorthand legend icon <strong><code>prefix</code></strong></td>
|
|
175
|
-
</tr>
|
|
176
|
-
<tr>
|
|
177
|
-
<td><code>disabled</code></td>
|
|
178
|
-
<td>boolean</td>
|
|
179
|
-
<td>Disables the native <strong><code><fieldset></code></strong> and its controls</td>
|
|
180
|
-
</tr>
|
|
181
|
-
<tr>
|
|
182
|
-
<td><code>form</code></td>
|
|
183
|
-
<td>string</td>
|
|
184
|
-
<td><strong><code>id</code></strong> of an associated <strong><code>form</code></strong></td>
|
|
185
|
-
</tr>
|
|
186
|
-
<tr>
|
|
187
|
-
<td><code>dataProvider</code></td>
|
|
188
|
-
<td>string</td>
|
|
189
|
-
<td>Subscriber key; can autofill properties that match publisher fields (e.g. <strong><code>label</code></strong>)</td>
|
|
190
|
-
</tr>
|
|
191
|
-
</tbody></table>
|
|
192
|
-
<table>
|
|
193
|
-
<thead>
|
|
194
|
-
<tr>
|
|
195
|
-
<th>Slot</th>
|
|
196
|
-
<th>Description</th>
|
|
197
|
-
</tr>
|
|
198
|
-
</thead>
|
|
199
|
-
<tbody><tr>
|
|
200
|
-
<td><em>(default)</em></td>
|
|
201
|
-
<td>Legend (optional) and field group content in visual order</td>
|
|
202
|
-
</tr>
|
|
203
|
-
</tbody></table>
|
|
204
|
-
<h3 id="sonic-legend"><code>sonic-legend</code></h3>
|
|
205
|
-
<table>
|
|
206
|
-
<thead>
|
|
207
|
-
<tr>
|
|
208
|
-
<th>Attribute</th>
|
|
209
|
-
<th>Values</th>
|
|
210
|
-
<th>Description</th>
|
|
211
|
-
</tr>
|
|
212
|
-
</thead>
|
|
213
|
-
<tbody><tr>
|
|
214
|
-
<td><code>label</code></td>
|
|
215
|
-
<td>string</td>
|
|
216
|
-
<td>Title HTML when not using the default slot</td>
|
|
217
|
-
</tr>
|
|
218
|
-
<tr>
|
|
219
|
-
<td><code>description</code></td>
|
|
220
|
-
<td>string</td>
|
|
221
|
-
<td>Description HTML (wrapped in <strong><code>sonic-legend-description</code></strong>)</td>
|
|
222
|
-
</tr>
|
|
223
|
-
<tr>
|
|
224
|
-
<td><code>iconName</code></td>
|
|
225
|
-
<td>string</td>
|
|
226
|
-
<td>Leading <strong><code>sonic-icon</code></strong> <strong><code>name</code></strong></td>
|
|
227
|
-
</tr>
|
|
228
|
-
<tr>
|
|
229
|
-
<td><code>iconLibrary</code></td>
|
|
230
|
-
<td>string</td>
|
|
231
|
-
<td>Icon <strong><code>library</code></strong></td>
|
|
232
|
-
</tr>
|
|
233
|
-
<tr>
|
|
234
|
-
<td><code>iconPrefix</code></td>
|
|
235
|
-
<td>string</td>
|
|
236
|
-
<td>Icon <strong><code>prefix</code></strong></td>
|
|
237
|
-
</tr>
|
|
238
|
-
<tr>
|
|
239
|
-
<td><code>forceAutoFill</code></td>
|
|
240
|
-
<td>boolean</td>
|
|
241
|
-
<td>Allows Subscriber autofill to override attribute-backed <strong><code>label</code></strong> / <strong><code>description</code></strong></td>
|
|
242
|
-
</tr>
|
|
243
|
-
</tbody></table>
|
|
244
|
-
<table>
|
|
245
|
-
<thead>
|
|
246
|
-
<tr>
|
|
247
|
-
<th>Slot</th>
|
|
248
|
-
<th>Description</th>
|
|
249
|
-
</tr>
|
|
250
|
-
</thead>
|
|
251
|
-
<tbody><tr>
|
|
252
|
-
<td><em>(default)</em></td>
|
|
253
|
-
<td>Legend title and description components</td>
|
|
254
|
-
</tr>
|
|
255
|
-
<tr>
|
|
256
|
-
<td><code>suffix</code></td>
|
|
257
|
-
<td>Trailing actions (menus, icon buttons)</td>
|
|
258
|
-
</tr>
|
|
259
|
-
</tbody></table>
|
|
260
|
-
<h3 id="sonic-legend-description"><code>sonic-legend-description</code></h3>
|
|
261
|
-
<p>Muted description line below the legend title. No attributes—project content through the <strong>default slot</strong>.</p>
|
|
262
131
|
|
|
263
132
|
</article>
|
|
264
133
|
</main>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>Form
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/form-actions/form-actions, form-actions, Form
|
|
6
|
+
<title>Form-actions — Concorde</title>
|
|
7
|
+
<meta name="description" content="Left seats">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/form-actions/form-actions, form-actions, Form-actions, UI component, form, sonic-form-actions, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/form/form-actions/form-actions">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/form-actions/form-actions.html">
|
|
11
11
|
</head>
|
|
@@ -15,106 +15,63 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Form
|
|
19
|
-
<h1 id="form-actions">Form
|
|
20
|
-
<
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<p>With no attributes, actions align to the <strong>start</strong> of the row (typical for left-to-right forms).</p>
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Form-actions</strong>. Left seats <span>Doc ID: <code>core/components/ui/form/form-actions/form-actions</code>. Keywords: Concorde, supersoniks, core/components/ui/form/form-actions/form-actions, form-actions, Form-actions, UI component, form, sonic-form-actions, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/form/form-actions/form-actions.html">https://concorde.supersoniks.org/crawl/core/components/ui/form/form-actions/form-actions.html</a>.</span></p>
|
|
19
|
+
<h1 id="form-actions">Form-actions</h1>
|
|
20
|
+
<h2 id="left-by-default">Left by default</h2>
|
|
23
21
|
<pre><code><form>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
22
|
+
<sonic-form-layout>
|
|
23
|
+
<sonic-input label="First name"></sonic-input>
|
|
24
|
+
<sonic-input label="Last name"></sonic-input>
|
|
25
|
+
<sonic-form-actions>
|
|
26
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
27
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
28
|
+
</sonic-form-actions>
|
|
29
|
+
</sonic-form-layout>
|
|
30
|
+
</form >
|
|
33
31
|
</code></pre>
|
|
34
|
-
<h2 id="justify
|
|
35
|
-
<p><strong><code>justify</code></strong> maps to CSS <strong><code>justify-content</code></strong>. Use <strong><code>flex-end</code></strong> for dialog-style footers or <strong><code>center</code></strong> for balanced toolbars.</p>
|
|
32
|
+
<h2 id="justify">Justify</h2>
|
|
36
33
|
<pre><code><form>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
34
|
+
<sonic-form-layout>
|
|
35
|
+
<sonic-input label="First name"></sonic-input>
|
|
36
|
+
<sonic-input label="Last name"></sonic-input>
|
|
37
|
+
<sonic-form-actions justify="flex-end">
|
|
38
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
39
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
40
|
+
</sonic-form-actions>
|
|
41
|
+
</sonic-form-layout>
|
|
42
|
+
</form >
|
|
46
43
|
</code></pre>
|
|
47
|
-
<h2 id="
|
|
48
|
-
<p><strong><code>direction</code></strong> maps to <strong><code>flex-direction</code></strong>. <strong><code>row-reverse</code></strong> swaps visual order while keeping DOM order (focus order unchanged).</p>
|
|
44
|
+
<h2 id="direction">Direction</h2>
|
|
49
45
|
<pre><code><form>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
<sonic-form-layout>
|
|
47
|
+
<sonic-input label="First name"></sonic-input>
|
|
48
|
+
<sonic-input label="Last name"></sonic-input>
|
|
49
|
+
<sonic-form-actions direction="row-reverse">
|
|
50
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
51
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
52
|
+
</sonic-form-actions>
|
|
53
|
+
</sonic-form-layout>
|
|
54
|
+
</form >
|
|
59
55
|
</code></pre>
|
|
60
|
-
<h2 id="
|
|
61
|
-
<p>Combine <strong><code>sonic-button</code></strong> with <strong><code>sonic-divider vertical</code></strong> or other slotted content. Default <strong><code>alignItems</code></strong> <code>center</code> keeps unlike heights aligned on the cross axis.</p>
|
|
56
|
+
<h2 id="center">Center</h2>
|
|
62
57
|
<pre><code><form>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
58
|
+
<sonic-form-layout>
|
|
59
|
+
<sonic-input label="First name"></sonic-input>
|
|
60
|
+
<sonic-input label="Last name"></sonic-input>
|
|
61
|
+
<sonic-form-actions justify="center" >
|
|
62
|
+
<sonic-button type="info" minWidth="12rem">
|
|
63
|
+
<sonic-icon name="nav-arrow-left" library="iconoir" slot="prefix"></sonic-icon>
|
|
64
|
+
Left seats
|
|
65
|
+
</sonic-button>
|
|
66
|
+
<sonic-divider vertical></sonic-divider>
|
|
67
|
+
<sonic-button type="info" minWidth="12rem">
|
|
68
|
+
<sonic-icon name="nav-arrow-right" library="iconoir" slot="suffix"></sonic-icon>
|
|
69
|
+
Right seats
|
|
70
|
+
</sonic-button>
|
|
71
|
+
</sonic-form-actions>
|
|
72
|
+
</sonic-form-layout>
|
|
73
|
+
</form >
|
|
79
74
|
</code></pre>
|
|
80
|
-
<h2 id="api-reference">API reference</h2>
|
|
81
|
-
<table>
|
|
82
|
-
<thead>
|
|
83
|
-
<tr>
|
|
84
|
-
<th>Attribute</th>
|
|
85
|
-
<th>Values</th>
|
|
86
|
-
<th>Description</th>
|
|
87
|
-
</tr>
|
|
88
|
-
</thead>
|
|
89
|
-
<tbody><tr>
|
|
90
|
-
<td><code>direction</code></td>
|
|
91
|
-
<td><code>row</code> (default) · <code>column</code> · <code>row-reverse</code> · <code>column-reverse</code></td>
|
|
92
|
-
<td>Main-axis layout of slotted controls</td>
|
|
93
|
-
</tr>
|
|
94
|
-
<tr>
|
|
95
|
-
<td><code>justify</code></td>
|
|
96
|
-
<td>CSS justify-content (default <code>flex-start</code>)</td>
|
|
97
|
-
<td>Distribution along the main axis</td>
|
|
98
|
-
</tr>
|
|
99
|
-
<tr>
|
|
100
|
-
<td><code>alignItems</code></td>
|
|
101
|
-
<td>CSS align-items (default <code>center</code>)</td>
|
|
102
|
-
<td>Cross-axis alignment when items differ in height</td>
|
|
103
|
-
</tr>
|
|
104
|
-
</tbody></table>
|
|
105
|
-
<p>The component exposes a single unnamed slot; there are no named slots. Slotted nodes use the host’s flex <strong><code>gap</code></strong> (<code>0.3rem</code>) and <strong><code>flex-wrap</code></strong>.</p>
|
|
106
|
-
<table>
|
|
107
|
-
<thead>
|
|
108
|
-
<tr>
|
|
109
|
-
<th>Slot</th>
|
|
110
|
-
<th>Description</th>
|
|
111
|
-
</tr>
|
|
112
|
-
</thead>
|
|
113
|
-
<tbody><tr>
|
|
114
|
-
<td><em>(default)</em></td>
|
|
115
|
-
<td>Footer actions (<strong><code>sonic-button</code></strong> and related controls)</td>
|
|
116
|
-
</tr>
|
|
117
|
-
</tbody></table>
|
|
118
75
|
|
|
119
76
|
</article>
|
|
120
77
|
</main>
|