@supersoniks/concorde 5.0.3 → 5.0.5
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/.agents/skills/concorde-component-docs/SKILL.md +194 -0
- package/.agents/skills/concorde-component-docs/template.md +45 -0
- package/ai/cursor/rules/concorde-theme.mdc +1 -1
- package/ai/cursor/rules/concorde.mdc +1 -1
- package/ai/skills/concorde/SKILL.md +1 -1
- package/ai/skills/concorde-theme/SKILL.md +21 -10
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +515 -521
- package/concorde-core.es.js +5151 -5056
- package/dist/concorde-core.bundle.js +515 -521
- package/dist/concorde-core.es.js +5151 -5056
- package/dist/docs-mock-api-sw.js +2 -0
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/docs/assets/index-CD4WyL6o.css +1 -0
- package/docs/assets/{index-BnK6OS7w.js → index-wVZpLVYW.js} +815 -808
- package/docs/crawl/core/components/ui/alert/alert.html +76 -5
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +113 -5
- package/docs/crawl/core/components/ui/badge/badge.html +57 -8
- package/docs/crawl/core/components/ui/captcha/captcha.html +90 -8
- package/docs/crawl/core/components/ui/card/card.html +122 -12
- package/docs/crawl/core/components/ui/divider/divider.html +117 -31
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +232 -101
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +95 -52
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +97 -38
- package/docs/crawl/core/components/ui/group/group.html +60 -38
- package/docs/crawl/core/components/ui/icon/icon.html +136 -47
- package/docs/crawl/core/components/ui/image/image.html +118 -6
- package/docs/crawl/core/components/ui/link/link.html +65 -7
- package/docs/crawl/core/components/ui/loader/loader.html +97 -23
- package/docs/crawl/core/components/ui/menu/menu.html +162 -90
- package/docs/crawl/core/components/ui/modal/modal.html +275 -50
- package/docs/crawl/core/components/ui/pop/pop.html +242 -124
- package/docs/crawl/core/components/ui/progress/progress.html +103 -30
- package/docs/crawl/core/components/ui/table/table.html +303 -171
- package/docs/crawl/core/components/ui/theme/theme.html +131 -0
- package/docs/crawl/core/components/ui/toast/toast.html +170 -59
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +90 -29
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +3 -2
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +311 -63
- package/docs/crawl/hubs/form-components.html +71 -49
- package/docs/crawl/index.html +7 -6
- package/docs/docs-mock-api-sw.js +2 -0
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +6 -4
- package/docs/llms-full.txt +1468 -405
- package/docs/llms.txt +23 -30
- package/docs/sitemap.xml +3 -0
- package/docs/src/core/components/ui/alert/alert.md +21 -2
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/docs/src/core/components/ui/badge/badge.md +19 -6
- package/docs/src/core/components/ui/captcha/captcha.md +65 -6
- package/docs/src/core/components/ui/card/card.md +73 -10
- package/docs/src/core/components/ui/divider/divider.md +107 -13
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +175 -99
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +75 -52
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +109 -34
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +132 -43
- package/docs/src/core/components/ui/image/image.md +35 -3
- package/docs/src/core/components/ui/link/link.md +43 -5
- package/docs/src/core/components/ui/loader/loader.md +79 -22
- package/docs/src/core/components/ui/menu/menu.md +133 -92
- package/docs/src/core/components/ui/modal/modal.md +163 -47
- package/docs/src/core/components/ui/pop/pop.md +217 -123
- package/docs/src/core/components/ui/progress/progress.md +76 -30
- package/docs/src/core/components/ui/table/table.md +147 -171
- package/docs/src/core/components/ui/theme/theme.md +122 -0
- package/docs/src/core/components/ui/toast/toast.md +108 -58
- package/docs/src/core/components/ui/tooltip/tooltip.md +68 -26
- package/docs/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +223 -61
- package/docs/src/docs/search/docs-search.json +2504 -399
- package/docs/src/tsconfig.json +18 -0
- package/index.html +4 -2
- package/package.json +7 -1
- package/public/docs-mock-api-sw.js +2 -0
- package/public/docs-mock-api-sw.js.map +2 -2
- package/src/core/components/ui/_css/align.ts +1 -0
- package/src/core/components/ui/_css/type.ts +86 -8
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +8 -0
- package/src/core/components/ui/alert/alert.md +21 -2
- package/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/src/core/components/ui/badge/badge.md +19 -6
- package/src/core/components/ui/badge/badge.ts +8 -9
- package/src/core/components/ui/button/button.ts +5 -15
- package/src/core/components/ui/captcha/captcha.md +65 -6
- package/src/core/components/ui/card/card.md +73 -10
- package/src/core/components/ui/card/card.ts +24 -22
- package/src/core/components/ui/divider/divider.md +107 -13
- package/src/core/components/ui/divider/divider.ts +40 -33
- package/src/core/components/ui/form/fieldset/fieldset.md +175 -99
- package/src/core/components/ui/form/fieldset/fieldset.ts +15 -28
- package/src/core/components/ui/form/fieldset/legend.ts +13 -13
- package/src/core/components/ui/form/form-actions/form-actions.md +75 -52
- package/src/core/components/ui/form/form-actions/form-actions.ts +7 -5
- package/src/core/components/ui/form/form-layout/form-layout.md +109 -34
- package/src/core/components/ui/form/form-layout/form-layout.ts +27 -24
- package/src/core/components/ui/form/textarea/textarea.ts +4 -3
- package/src/core/components/ui/group/group.md +36 -36
- package/src/core/components/ui/group/group.ts +5 -10
- package/src/core/components/ui/icon/icon.md +132 -43
- package/src/core/components/ui/image/image.md +35 -3
- package/src/core/components/ui/link/link.md +43 -5
- package/src/core/components/ui/loader/loader.md +79 -22
- package/src/core/components/ui/loader/loader.ts +67 -27
- package/src/core/components/ui/loader/styles/fixed.ts +6 -11
- package/src/core/components/ui/menu/menu.md +133 -92
- package/src/core/components/ui/menu/menu.ts +53 -58
- package/src/core/components/ui/modal/modal.md +163 -47
- package/src/core/components/ui/modal/modal.ts +2 -4
- package/src/core/components/ui/pop/pop.md +217 -123
- package/src/core/components/ui/pop/pop.ts +0 -1
- package/src/core/components/ui/progress/progress.md +76 -30
- package/src/core/components/ui/progress/progress.ts +25 -56
- package/src/core/components/ui/table/table-caption.ts +2 -2
- package/src/core/components/ui/table/table-tbody.ts +3 -3
- package/src/core/components/ui/table/table-td.ts +23 -18
- package/src/core/components/ui/table/table-th.ts +8 -8
- package/src/core/components/ui/table/table-tr.ts +4 -4
- package/src/core/components/ui/table/table.md +147 -171
- package/src/core/components/ui/table/table.ts +20 -19
- package/src/core/components/ui/theme/theme-collection/auto.ts +15 -0
- package/src/core/components/ui/theme/theme-collection/core-variables.ts +8 -31
- package/src/core/components/ui/theme/theme-collection/dark.ts +1 -7
- package/src/core/components/ui/theme/theme-collection/light.ts +30 -26
- package/src/core/components/ui/theme/theme.md +122 -0
- package/src/core/components/ui/theme/theme.ts +30 -7
- package/src/core/components/ui/toast/toast-item.ts +6 -9
- package/src/core/components/ui/toast/toast.md +108 -58
- package/src/core/components/ui/toast/types.ts +1 -1
- package/src/core/components/ui/tooltip/tooltip.md +68 -26
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- package/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/start.md +1 -1
- package/src/docs/_getting-started/theming.md +223 -61
- package/src/docs/code.ts +125 -58
- package/src/docs/header/header.ts +62 -54
- package/src/docs/mock-api/router.ts +2 -0
- package/src/docs/navigation/navigation.ts +6 -3
- package/src/docs/search/docs-search.json +2504 -399
- package/src/docs/search/markdown-renderer.ts +6 -6
- package/src/docs/search/search.ts +4 -4
- package/src/docs/tailwind/css/tailwind.css +6 -5
- package/src/tsconfig.json +18 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +19 -0
- package/docs/assets/index--GpD7R7a.css +0 -1
|
@@ -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="sonic-fieldset groups related form controls with a bordered container and an accessible <fieldset> semantics layer. Put fields in the default slot; add a title with sonic-legend or the shorthand label">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/fieldset/fieldset, fieldset, Fieldset, UI component, form, sonic-fieldset, web component, , sonic-legend, label, description, iconName, variant, default, sonic-form-layout, ghost">
|
|
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,119 +15,250 @@
|
|
|
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>. sonic-fieldset groups related form controls with a bordered container and an accessible <fieldset> semantics layer. Put fields in the default slot; add a title with sonic-legend or the shorthand label <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, , sonic-legend, label, description, iconName, variant, default, sonic-form-layout, ghost. 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
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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>
|
|
26
28
|
</sonic-fieldset>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
</code></pre>
|
|
30
|
+
<h2 id="variant">Variant</h2>
|
|
31
|
+
<p><strong><code>ghost</code></strong> and <strong><code>shadow</code></strong> use a transparent border; <strong><code>shadow</code></strong> also applies <strong><code>--sc-shadow-lg</code></strong>.</p>
|
|
32
|
+
<pre><code><div class="grid gap-4">
|
|
33
|
+
<sonic-fieldset variant="default">
|
|
34
|
+
<sonic-legend label="Default"></sonic-legend>
|
|
35
|
+
<sonic-input label="Field" name="a"></sonic-input>
|
|
36
|
+
</sonic-fieldset>
|
|
37
|
+
<sonic-fieldset variant="ghost">
|
|
38
|
+
<sonic-legend label="Ghost"></sonic-legend>
|
|
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>
|
|
29
52
|
</sonic-fieldset>
|
|
30
53
|
</code></pre>
|
|
31
54
|
<h2 id="legend">Legend</h2>
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<sonic-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
55
|
+
<p>Use <strong><code>sonic-legend</code></strong> for the group title. Set <strong><code>label</code></strong> and <strong><code>description</code></strong> for simple copy, or use the <strong>default slot</strong> for custom markup. Add secondary text with <strong><code>sonic-legend-description</code></strong>. Place actions in <strong><code>slot="suffix"</code></strong> on the legend.</p>
|
|
56
|
+
<p>Attribute values on <strong><code>sonic-legend</code></strong> are rendered as HTML—use only trusted content.</p>
|
|
57
|
+
<pre><code><div class="grid gap-4">
|
|
58
|
+
<sonic-fieldset>
|
|
59
|
+
<sonic-legend label="Attributes" description="Short description via attributes"></sonic-legend>
|
|
60
|
+
<sonic-input label="Field" name="attr"></sonic-input>
|
|
61
|
+
</sonic-fieldset>
|
|
62
|
+
<sonic-fieldset>
|
|
63
|
+
<sonic-legend iconLibrary="iconoir" iconName="pin-alt">
|
|
64
|
+
Custom title in the default slot
|
|
65
|
+
<sonic-legend-description>Description via sonic-legend-description</sonic-legend-description>
|
|
66
|
+
</sonic-legend>
|
|
67
|
+
<sonic-input label="Field" name="slot"></sonic-input>
|
|
68
|
+
</sonic-fieldset>
|
|
69
|
+
</div>
|
|
44
70
|
</code></pre>
|
|
45
|
-
<h2 id="
|
|
71
|
+
<h2 id="shorthand-legend-on-the-fieldset">Shorthand legend on the fieldset</h2>
|
|
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>
|
|
46
73
|
<pre><code><sonic-fieldset
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
74
|
+
label="Account"
|
|
75
|
+
description="Basic profile fields"
|
|
76
|
+
iconLibrary="iconoir"
|
|
77
|
+
iconName="user"
|
|
78
|
+
>
|
|
79
|
+
<sonic-input label="Display name" name="display_name"></sonic-input>
|
|
80
|
+
</sonic-fieldset>
|
|
52
81
|
</code></pre>
|
|
53
|
-
<h2 id="
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
<sonic-
|
|
57
|
-
<sonic-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
>
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</sonic-
|
|
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>
|
|
101
|
+
</code></pre>
|
|
102
|
+
<h2 id="form-association-and-disabled-state">Form association and disabled state</h2>
|
|
103
|
+
<h3 id="associating-a-distant-form">Associating a distant <code>form</code></h3>
|
|
104
|
+
<p>Set <strong><code>form</code></strong> on <strong><code>sonic-fieldset</code></strong> to the <strong><code>id</code></strong> of a <strong><code><form></code></strong> elsewhere in the page (same as the native <strong><code>form</code></strong> attribute on <strong><code><fieldset></code></strong>). Named fields in the fieldset then belong to that form for submit and constraint validation—for example a toolbar <strong><code>form</code></strong> and a field group rendered lower on the layout.</p>
|
|
105
|
+
<pre><code><div class="grid gap-4">
|
|
106
|
+
<form id="billing-form" class="flex flex-wrap items-center gap-2">
|
|
107
|
+
<sonic-button submit type="primary">Save billing</sonic-button>
|
|
108
|
+
</form>
|
|
109
|
+
<sonic-fieldset form="billing-form" label="Billing address">
|
|
70
110
|
<sonic-form-layout>
|
|
71
|
-
<sonic-input
|
|
72
|
-
<sonic-input
|
|
73
|
-
<sonic-
|
|
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>
|
|
111
|
+
<sonic-input label="Street" name="street" autocomplete="street-address"></sonic-input>
|
|
112
|
+
<sonic-input label="Postal code" required name="postal_code" autocomplete="postal-code"></sonic-input>
|
|
113
|
+
<sonic-input label="City" name="city" autocomplete="address-level2"></sonic-input>
|
|
95
114
|
</sonic-form-layout>
|
|
96
115
|
</sonic-fieldset>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
116
|
+
</div>
|
|
117
|
+
</code></pre>
|
|
118
|
+
<h3 id="disabling-a-group">Disabling a group</h3>
|
|
119
|
+
<p>Set <strong><code>disabled</code></strong> on <strong><code>sonic-fieldset</code></strong> to disable the inner <strong><code><fieldset></code></strong> and every control in the group (same as a native fieldset). Use it for read-only steps or sections gated by permissions.</p>
|
|
120
|
+
<pre><code><div class="grid gap-4">
|
|
121
|
+
<sonic-fieldset label="Editable">
|
|
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>
|
|
103
126
|
</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
127
|
</div>
|
|
129
|
-
</sonic-div>
|
|
130
128
|
</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>
|
|
131
262
|
|
|
132
263
|
</article>
|
|
133
264
|
</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="sonic-form-actions lays out submit / cancel and other form footer controls in a wrapping flex row with a small fixed gap. Place it inside sonic-form-layout (full-width row) or any block that should en">
|
|
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, sonic-form-layout, direction, row, justify, flex-start, alignItems, center, justify-content">
|
|
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,63 +15,106 @@
|
|
|
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
|
-
<
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Form actions</strong>. sonic-form-actions lays out submit / cancel and other form footer controls in a wrapping flex row with a small fixed gap. Place it inside sonic-form-layout (full-width row) or any block that should en <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, sonic-form-layout, direction, row, justify, flex-start, alignItems, center, justify-content. 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
|
+
<p><strong><code>sonic-form-actions</code></strong> lays out submit / cancel and other <strong>form footer controls</strong> in a <strong>wrapping flex row</strong> with a small fixed gap. Place it inside <strong><code>sonic-form-layout</code></strong> (full-width row) or any block that should end with actions. Defaults: <strong><code>direction</code></strong> <code>row</code> · <strong><code>justify</code></strong> <code>flex-start</code> · <strong><code>alignItems</code></strong> <code>center</code>.</p>
|
|
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>
|
|
21
23
|
<pre><code><form>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
<sonic-form-layout>
|
|
25
|
+
<sonic-input label="First name"></sonic-input>
|
|
26
|
+
<sonic-input label="Last name"></sonic-input>
|
|
27
|
+
<sonic-form-actions>
|
|
28
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
29
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
30
|
+
</sonic-form-actions>
|
|
31
|
+
</sonic-form-layout>
|
|
32
|
+
</form>
|
|
31
33
|
</code></pre>
|
|
32
|
-
<h2 id="justify">Justify</h2>
|
|
34
|
+
<h2 id="justify-content">Justify content</h2>
|
|
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>
|
|
33
36
|
<pre><code><form>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
<sonic-form-layout>
|
|
38
|
+
<sonic-input label="First name"></sonic-input>
|
|
39
|
+
<sonic-input label="Last name"></sonic-input>
|
|
40
|
+
<sonic-form-actions justify="flex-end">
|
|
41
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
42
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
43
|
+
</sonic-form-actions>
|
|
44
|
+
</sonic-form-layout>
|
|
45
|
+
</form>
|
|
43
46
|
</code></pre>
|
|
44
|
-
<h2 id="direction">
|
|
47
|
+
<h2 id="flex-direction">Flex direction</h2>
|
|
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>
|
|
45
49
|
<pre><code><form>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
<sonic-form-layout>
|
|
51
|
+
<sonic-input label="First name"></sonic-input>
|
|
52
|
+
<sonic-input label="Last name"></sonic-input>
|
|
53
|
+
<sonic-form-actions direction="row-reverse">
|
|
54
|
+
<sonic-button type="success"><sonic-icon name="check" library="iconoir"></sonic-icon> Submit</sonic-button>
|
|
55
|
+
<sonic-button type="danger" variant="ghost"><sonic-icon name="undo" library="iconoir"></sonic-icon> Cancel</sonic-button>
|
|
56
|
+
</sonic-form-actions>
|
|
57
|
+
</sonic-form-layout>
|
|
58
|
+
</form>
|
|
55
59
|
</code></pre>
|
|
56
|
-
<h2 id="
|
|
60
|
+
<h2 id="mixed-controls">Mixed controls</h2>
|
|
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>
|
|
57
62
|
<pre><code><form>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
<sonic-form-layout>
|
|
64
|
+
<sonic-input label="First name"></sonic-input>
|
|
65
|
+
<sonic-input label="Last name"></sonic-input>
|
|
66
|
+
<sonic-form-actions justify="center">
|
|
67
|
+
<sonic-button type="info" minWidth="12rem">
|
|
68
|
+
<sonic-icon name="nav-arrow-left" library="iconoir" slot="prefix"></sonic-icon>
|
|
69
|
+
Left seats
|
|
70
|
+
</sonic-button>
|
|
71
|
+
<sonic-divider vertical></sonic-divider>
|
|
72
|
+
<sonic-button type="info" minWidth="12rem">
|
|
73
|
+
<sonic-icon name="nav-arrow-right" library="iconoir" slot="suffix"></sonic-icon>
|
|
74
|
+
Right seats
|
|
75
|
+
</sonic-button>
|
|
76
|
+
</sonic-form-actions>
|
|
77
|
+
</sonic-form-layout>
|
|
78
|
+
</form>
|
|
74
79
|
</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>
|
|
75
118
|
|
|
76
119
|
</article>
|
|
77
120
|
</main>
|