@supersoniks/concorde 5.0.3 → 5.0.4
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/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-core.bundle.js +66 -66
- package/concorde-core.es.js +1368 -1318
- package/dist/concorde-core.bundle.js +66 -66
- package/dist/concorde-core.es.js +1368 -1318
- package/docs/assets/{index-BnK6OS7w.js → index-D8MVWqY6.js} +1144 -1008
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -101
- package/docs/crawl/core/components/ui/badge/badge.html +77 -106
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/card/card.html +68 -112
- 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/image/image.html +56 -132
- package/docs/crawl/core/components/ui/link/link.html +4 -4
- package/docs/crawl/core/components/ui/pop/pop.html +3 -79
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/hubs/form-components.html +4 -4
- package/docs/index.html +5 -5
- package/docs/llms-full.txt +97 -281
- package/docs/llms.txt +8 -8
- 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 -128
- package/docs/src/core/components/ui/badge/badge.md +78 -126
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +0 -0
- package/docs/src/core/components/ui/card/card.md +65 -120
- 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/image/image.md +53 -147
- package/docs/src/core/components/ui/link/link.md +2 -2
- package/docs/src/core/components/ui/loader/loader.md +0 -0
- package/docs/src/core/components/ui/menu/menu.md +0 -0
- package/docs/src/core/components/ui/modal/modal.md +0 -0
- package/docs/src/core/components/ui/pop/pop.md +1 -105
- package/docs/src/core/components/ui/table/table.md +0 -0
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- 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 +0 -0
- package/docs/src/docs/search/docs-search.json +25 -655
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -45
- package/gitlab/job_github_mirror.sh +39 -0
- package/gitlab/job_tests.sh +0 -0
- package/package.json +1 -1
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -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/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/sdui.md +0 -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/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/captcha/captcha.md +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/components/ui/loader/loader.md +0 -0
- package/src/core/components/ui/menu/menu.md +0 -0
- package/src/core/components/ui/modal/modal.md +0 -0
- package/src/core/components/ui/table/table-caption.ts +0 -0
- package/src/core/components/ui/table/table.md +0 -0
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- 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/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/_getting-started/start.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.tsbuildinfo +1 -1
- 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>Card — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component
|
|
7
|
+
<meta name="description" content="Suffix">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/card/card, card, Card, UI component, sonic-card, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/card/card">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/card/card.html">
|
|
11
11
|
</head>
|
|
@@ -15,126 +15,82 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Card</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Card</strong>. Suffix <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. 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
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
20
|
<h2 id="type">Type</h2>
|
|
23
|
-
<pre><code><div class="
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
21
|
+
<pre><code><div class="grid grid-cols-3 gap-3">
|
|
22
|
+
<sonic-card type="base">Base</sonic-card>
|
|
23
|
+
<sonic-card type="light">Light</sonic-card>
|
|
24
|
+
<sonic-card type="primary">Primary</sonic-card>
|
|
25
|
+
<sonic-card type="warning">Warning</sonic-card>
|
|
26
|
+
<sonic-card type="danger">Danger</sonic-card>
|
|
27
|
+
<sonic-card type="success">Success</sonic-card>
|
|
28
|
+
<sonic-card type="info">Info</sonic-card>
|
|
29
|
+
<sonic-card type="neutral">Neutral</sonic-card>
|
|
30
|
+
<sonic-card type="invert">Invert</sonic-card>
|
|
31
|
+
</div>
|
|
34
32
|
</code></pre>
|
|
35
33
|
<h2 id="header">Header</h2>
|
|
36
|
-
<
|
|
37
|
-
|
|
38
|
-
<sonic-card>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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>
|
|
34
|
+
<pre><code><div class="grid grid-cols-1 gap-3">
|
|
35
|
+
<sonic-card >
|
|
36
|
+
<sonic-card-header label="Header simple, titre géré via l'attribut : label" description="Description via l'attribut : description">
|
|
37
|
+
</sonic-card-header>
|
|
38
|
+
</sonic-card>
|
|
39
|
+
<sonic-card type="neutral">
|
|
40
|
+
<sonic-card-header label="Header composé">
|
|
41
|
+
<sonic-card-header-description>Description rendu via le composant : "sonic-card-header-description"</sonic-card-header-description>
|
|
42
|
+
<div slot="suffix" class="flex">
|
|
43
|
+
Suffix
|
|
44
|
+
</div>
|
|
45
|
+
</sonic-card-header>
|
|
46
|
+
</sonic-card>
|
|
47
|
+
<sonic-card type="invert">
|
|
48
|
+
<sonic-card-header>
|
|
49
|
+
<div>Header custom</div>
|
|
50
|
+
<div class="text-lg text-danger">Tout le contenu excepté l'icône ✈ passe par le slot du header</div>
|
|
51
|
+
<span slot="suffix" >✈</span>
|
|
52
|
+
</sonic-card-header>
|
|
53
|
+
</sonic-card>
|
|
54
|
+
</div>
|
|
83
55
|
</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
56
|
<h2 id="main">Main</h2>
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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>
|
|
57
|
+
<pre><code><sonic-card >
|
|
58
|
+
<sonic-card-main >
|
|
59
|
+
<h3>Main area</h3>
|
|
60
|
+
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iure id dolor debitis deleniti eligendi natus dolorem a commodi sunt dicta? Ipsa asperiores magni consequuntur dolor voluptatibus. Maxime, nemo? Facere, odio.</p>
|
|
61
|
+
<iframe width="560" height="315" src="https://www.youtube.com/embed/aqz-KE-bpKQ" title="Big Buck Bunny (Blender Foundation)" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
|
|
62
|
+
</sonic-card-main>
|
|
63
|
+
</sonic-card>
|
|
97
64
|
</code></pre>
|
|
98
65
|
<h2 id="footer">Footer</h2>
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
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>
|
|
66
|
+
<pre><code><sonic-card >
|
|
67
|
+
<sonic-card-footer >
|
|
68
|
+
<div >
|
|
69
|
+
<h4 class="mb-0">Footer area</h4>
|
|
70
|
+
<small>Debitis deleniti eligendi natus dolorem aufdh.</small>
|
|
71
|
+
<div>
|
|
72
|
+
🛫 ✈ ✈ ✈ ✈ ✈ 🛬
|
|
110
73
|
</div>
|
|
111
|
-
</
|
|
112
|
-
</sonic-card>
|
|
74
|
+
</div>
|
|
75
|
+
</sonic-card-footer>
|
|
76
|
+
</sonic-card>
|
|
113
77
|
</code></pre>
|
|
114
|
-
<h2 id="
|
|
115
|
-
<
|
|
116
|
-
|
|
117
|
-
<sonic-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
<sonic-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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>
|
|
78
|
+
<h2 id="example-of-use">Example of use</h2>
|
|
79
|
+
<pre><code><sonic-card >
|
|
80
|
+
<sonic-card-header label="Header" description="Header description">
|
|
81
|
+
<sonic-icon library="iconoir" name="nav-arrow-right" slot="suffix" ></sonic-icon>
|
|
82
|
+
</sonic-card-header>
|
|
83
|
+
<sonic-card-main >
|
|
84
|
+
<sonic-image rounded ratio="11/4" src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg">
|
|
85
|
+
</sonic-image>
|
|
86
|
+
<p><b>Main</b> - Lorem ipsum dolor sit, amet consectetur adipisicing elit. Iure id dolor debitis deleniti eligendi natus dolorem a commodi sunt dicta? Ipsa asperiores magni consequuntur dolor voluptatibus. Maxime, nemo? Facere, odio.</p>
|
|
87
|
+
</sonic-card-main>
|
|
88
|
+
<sonic-card-footer>
|
|
89
|
+
<div>
|
|
90
|
+
<i>Footer</i> - Amet consectetur adipisicing
|
|
91
|
+
</div>
|
|
92
|
+
</sonic-card-footer>
|
|
93
|
+
</sonic-card>
|
|
138
94
|
</code></pre>
|
|
139
95
|
|
|
140
96
|
</article>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Input — Concorde</title>
|
|
7
|
-
<meta name="description" content="Native
|
|
7
|
+
<meta name="description" content="Native attibutes list">
|
|
8
8
|
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/input/input, input, Input, UI component, form, sonic-input, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/form/input/input">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/input/input.html">
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Input</strong>. Native
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Input</strong>. Native attibutes list <span>Doc ID: <code>core/components/ui/form/input/input</code>. Keywords: Concorde, supersoniks, core/components/ui/form/input/input, input, Input, UI component, form, sonic-input, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/form/input/input.html">https://concorde.supersoniks.org/crawl/core/components/ui/form/input/input.html</a>.</span></p>
|
|
19
19
|
<h1 id="input">Input</h1>
|
|
20
20
|
<sonic-button type="info" size="sm" target="_blank" href="https://www.w3schools.com/tags/tag_input.asp#midcontentadcontainer">
|
|
21
21
|
<sonic-icon library="iconoir" name="open-new-window" slot="prefix" ></sonic-icon>
|
|
22
|
-
Native
|
|
22
|
+
Native attibutes list
|
|
23
23
|
</sonic-button>
|
|
24
24
|
|
|
25
25
|
<h2 id="label">Label</h2>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Textarea — Concorde</title>
|
|
7
|
-
<meta name="description" content="Native
|
|
7
|
+
<meta name="description" content="Native attibutes list">
|
|
8
8
|
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/form/textarea/textarea, textarea, Textarea, UI component, form, sonic-textarea, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/form/textarea/textarea">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/form/textarea/textarea.html">
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Textarea</strong>. Native
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Textarea</strong>. Native attibutes list <span>Doc ID: <code>core/components/ui/form/textarea/textarea</code>. Keywords: Concorde, supersoniks, core/components/ui/form/textarea/textarea, textarea, Textarea, UI component, form, sonic-textarea, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/form/textarea/textarea.html">https://concorde.supersoniks.org/crawl/core/components/ui/form/textarea/textarea.html</a>.</span></p>
|
|
19
19
|
<h1 id="textarea">Textarea</h1>
|
|
20
20
|
<sonic-button type="info" size="sm" target="_blank" href="https://www.w3schools.com/tags/tag_textarea.asp#midcontentadcontainer">
|
|
21
21
|
<sonic-icon library="iconoir" name="open-new-window" slot="prefix" ></sonic-icon>
|
|
22
|
-
Native
|
|
22
|
+
Native attibutes list
|
|
23
23
|
</sonic-button>
|
|
24
24
|
|
|
25
25
|
|
|
@@ -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>Image — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component
|
|
7
|
+
<meta name="description" content="src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/image/image">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html">
|
|
11
11
|
</head>
|
|
@@ -15,169 +15,93 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Image</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Image</strong>. src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg" <span>Doc ID: <code>core/components/ui/image/image</code>. Keywords: Concorde, supersoniks, core/components/ui/image/image, image, Image, UI component, sonic-image, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html">https://concorde.supersoniks.org/crawl/core/components/ui/image/image.html</a>.</span></p>
|
|
19
19
|
<h1 id="image">Image</h1>
|
|
20
|
-
<p>Responsive <strong><code><img></code></strong> wrapper: aspect ratio, <code>object-fit: cover</code>, rounded corners, and optional fade-in on load. The host uses a light placeholder background (<code>--sc-placeholder-bg</code>) until the file is ready. Default <strong><code>loading</code></strong> is <code>lazy</code>; set <strong><code>loading="eager"</code></strong> for above-the-fold heroes.</p>
|
|
21
20
|
<h2 id="rounded">Rounded</h2>
|
|
22
|
-
<
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
&
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
&
|
|
37
|
-
|
|
38
|
-
&
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
&
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
ratio="1/1"
|
|
59
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
60
|
-
></sonic-image>
|
|
61
|
-
<p class="mt-2">lg</p>
|
|
62
|
-
</div>
|
|
63
|
-
<div>
|
|
64
|
-
<sonic-image
|
|
65
|
-
rounded="xl"
|
|
66
|
-
ratio="1/1"
|
|
67
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
68
|
-
></sonic-image>
|
|
69
|
-
<p class="mt-2">xl</p>
|
|
70
|
-
</div>
|
|
71
|
-
<div >
|
|
72
|
-
<div >
|
|
73
|
-
<sonic-image
|
|
74
|
-
rounded="full"
|
|
75
|
-
ratio="1/1"
|
|
76
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
77
|
-
></sonic-image>
|
|
78
|
-
<p class="mt-2">full</p>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
21
|
+
<pre><code><div class="grid gap-8 grid-cols-3 items-center">
|
|
22
|
+
<sonic-image
|
|
23
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
24
|
+
ratio="1/1"
|
|
25
|
+
>
|
|
26
|
+
</sonic-image>
|
|
27
|
+
<sonic-image
|
|
28
|
+
rounded="sm"
|
|
29
|
+
ratio="1/1"
|
|
30
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
31
|
+
>
|
|
32
|
+
</sonic-image>
|
|
33
|
+
<sonic-image
|
|
34
|
+
rounded
|
|
35
|
+
ratio="1/1"
|
|
36
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
37
|
+
>
|
|
38
|
+
</sonic-image>
|
|
39
|
+
<sonic-image
|
|
40
|
+
rounded="md"
|
|
41
|
+
ratio="1/1"
|
|
42
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
43
|
+
>
|
|
44
|
+
</sonic-image>
|
|
45
|
+
<sonic-image
|
|
46
|
+
rounded="lg"
|
|
47
|
+
ratio="1/1"
|
|
48
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
49
|
+
>
|
|
50
|
+
</sonic-image>
|
|
51
|
+
<sonic-image
|
|
52
|
+
rounded="full"
|
|
53
|
+
ratio="1/1"
|
|
54
|
+
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
55
|
+
>
|
|
56
|
+
</sonic-image>
|
|
81
57
|
</div>
|
|
82
58
|
</code></pre>
|
|
83
|
-
<h2 id="
|
|
84
|
-
<p><strong><code>ratio</code></strong> sets CSS <code>aspect-ratio</code> on the image (default <strong><code>auto</code></strong>). The image still fills the host width (<code>width: 100%</code>).</p>
|
|
59
|
+
<h2 id="ratio">Ratio</h2>
|
|
85
60
|
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
86
61
|
<sonic-image
|
|
87
62
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
88
|
-
>
|
|
63
|
+
>
|
|
64
|
+
</sonic-image>
|
|
89
65
|
<sonic-image
|
|
90
66
|
ratio="16/9"
|
|
91
67
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
92
|
-
>
|
|
68
|
+
>
|
|
69
|
+
</sonic-image>
|
|
93
70
|
<sonic-image
|
|
94
71
|
ratio="1/1"
|
|
95
72
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
96
|
-
>
|
|
73
|
+
>
|
|
74
|
+
</sonic-image>
|
|
97
75
|
<sonic-image
|
|
98
76
|
ratio="2/3"
|
|
99
77
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
100
|
-
>
|
|
78
|
+
>
|
|
79
|
+
</sonic-image>
|
|
101
80
|
</div>
|
|
102
81
|
</code></pre>
|
|
103
82
|
<h2 id="object-position">Object position</h2>
|
|
104
|
-
<p><strong><code>objectPosition</code></strong> maps to CSS <code>object-position</code> (default <strong><code>center center</code></strong>). Useful on wide crops when the subject sits off-center.</p>
|
|
105
83
|
<pre><code><div class="grid gap-8 grid-cols-2 items-center">
|
|
106
84
|
<sonic-image
|
|
107
|
-
ratio="11/4"
|
|
108
85
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
109
|
-
|
|
86
|
+
ratio="11/4"
|
|
87
|
+
>
|
|
88
|
+
</sonic-image>
|
|
110
89
|
<sonic-image
|
|
111
90
|
objectPosition="center top"
|
|
112
|
-
ratio="11/4"
|
|
113
91
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
114
|
-
|
|
92
|
+
ratio="11/4"
|
|
93
|
+
>
|
|
94
|
+
</sonic-image>
|
|
115
95
|
</div>
|
|
116
96
|
</code></pre>
|
|
117
97
|
<h2 id="cover">Cover</h2>
|
|
118
|
-
<
|
|
119
|
-
<pre><code><div class="h-96 relative rounded-lg overflow-hidden">
|
|
98
|
+
<pre><code><div class="h-96 relative">
|
|
120
99
|
<sonic-image
|
|
121
100
|
cover
|
|
122
101
|
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
123
|
-
></sonic-image>
|
|
124
|
-
</div>
|
|
125
|
-
</code></pre>
|
|
126
|
-
<h2 id="load-transition">Load transition</h2>
|
|
127
|
-
<p>Set <strong><code>transition</code></strong> to <strong><code>fade</code></strong> (default when the attribute is present) or <strong><code>fade-scale-out</code></strong>. The image stays at <code>opacity: 0</code> until the browser fires <strong><code>load</code></strong>, then the <strong><code>loaded</code></strong> class runs the animation. Changing <code>src</code> on an existing element does not replay the effect — mount a new <code>sonic-image</code> when you need another entrance (galleries, infinite scroll).</p>
|
|
128
|
-
<p>Click <strong>Add image</strong> to append small thumbnails and replay the transition. <strong>Clear</strong> resets the row.</p>
|
|
129
|
-
<pre><code><div class="flex flex-wrap gap-2 mb-4">
|
|
130
|
-
<sonic-button
|
|
131
|
-
size="sm"
|
|
132
|
-
onclick="(function () {
|
|
133
|
-
var host = document.getElementById('sonic-image-transition-host');
|
|
134
|
-
var img = document.createElement('sonic-image');
|
|
135
|
-
img.transition = 'fade';
|
|
136
|
-
img.ratio = '1/1';
|
|
137
|
-
img.rounded = 'md';
|
|
138
|
-
img.loading = 'eager';
|
|
139
|
-
img.style.width = '5rem';
|
|
140
|
-
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
141
|
-
host.appendChild(img);
|
|
142
|
-
})()"
|
|
143
|
-
>
|
|
144
|
-
Add image (fade)
|
|
145
|
-
</sonic-button>
|
|
146
|
-
<sonic-button
|
|
147
|
-
size="sm"
|
|
148
|
-
variant="outline"
|
|
149
|
-
onclick="(function () {
|
|
150
|
-
var host = document.getElementById('sonic-image-transition-host');
|
|
151
|
-
var img = document.createElement('sonic-image');
|
|
152
|
-
img.transition = 'fade-scale-out';
|
|
153
|
-
img.ratio = '1/1';
|
|
154
|
-
img.rounded = 'md';
|
|
155
|
-
img.loading = 'eager';
|
|
156
|
-
img.style.width = '5rem';
|
|
157
|
-
img.src = 'https://picsum.photos/seed/' + Date.now() + '/120/120';
|
|
158
|
-
host.appendChild(img);
|
|
159
|
-
})()"
|
|
160
102
|
>
|
|
161
|
-
|
|
162
|
-
</sonic-button>
|
|
163
|
-
<sonic-button
|
|
164
|
-
size="sm"
|
|
165
|
-
variant="ghost"
|
|
166
|
-
onclick="document.getElementById('sonic-image-transition-host').replaceChildren()"
|
|
167
|
-
>
|
|
168
|
-
Clear
|
|
169
|
-
</sonic-button>
|
|
103
|
+
</sonic-image>
|
|
170
104
|
</div>
|
|
171
|
-
<div id="sonic-image-transition-host" class="flex flex-wrap gap-2 min-h-[5rem]"></div>
|
|
172
|
-
</code></pre>
|
|
173
|
-
<h2 id="accessibility-and-parts">Accessibility and parts</h2>
|
|
174
|
-
<p>Always set meaningful <strong><code>alt</code></strong> text (empty string only for decorative images). </p>
|
|
175
|
-
<pre><code><sonic-image
|
|
176
|
-
rounded="md"
|
|
177
|
-
ratio="16/9"
|
|
178
|
-
alt="Concorde aircraft in flight"
|
|
179
|
-
src="https://thegoodlife.fr/wp-content/uploads/sites/2/2022/03/compagnies-aeriennes-nostalgie-coeur-insert-03-dr.jpg"
|
|
180
|
-
></sonic-image>
|
|
181
105
|
</code></pre>
|
|
182
106
|
|
|
183
107
|
</article>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Link — Concorde</title>
|
|
7
|
-
<meta name="description" content="Link: Basic link with href
|
|
7
|
+
<meta name="description" content="Link: Basic link with href attibute">
|
|
8
8
|
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/link/link">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html">
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Link</strong>. Link: Basic link with href
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Link</strong>. Link: Basic link with href attibute <span>Doc ID: <code>core/components/ui/link/link</code>. Keywords: Concorde, supersoniks, core/components/ui/link/link, link, Link, UI component, sonic-link, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html">https://concorde.supersoniks.org/crawl/core/components/ui/link/link.html</a>.</span></p>
|
|
19
19
|
<h1 id="link">Link</h1>
|
|
20
20
|
<h2 id="href">Href</h2>
|
|
21
|
-
<pre><code><sonic-link href="/">Basic link with href
|
|
21
|
+
<pre><code><sonic-link href="/">Basic link with href attibute</sonic-link>
|
|
22
22
|
</code></pre>
|
|
23
23
|
<h2 id="target">Target</h2>
|
|
24
|
-
<pre><code><sonic-link href="/" target="_blank">Link with target
|
|
24
|
+
<pre><code><sonic-link href="/" target="_blank">Link with target attibute</sonic-link>
|
|
25
25
|
</code></pre>
|
|
26
26
|
<h2 id="autoactive">AutoActive</h2>
|
|
27
27
|
<pre><code><sonic-link href="/#core/components" class="[&[active]]:text-success">autoActive partial (default)</sonic-link>
|