@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>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,237 +15,83 @@
|
|
|
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>Cards <strong>group related content</strong> on a padded surface with radius, theme <strong><code>type</code></strong> colors, and elevation. Default <strong><code>shadow</code></strong> is <code>lg</code>. Compose <strong><code>sonic-card-header</code></strong> / <strong><code>sonic-card-main</code></strong> / <strong><code>sonic-card-footer</code></strong>, or place any markup in the default slot.</p>
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<pre><code><sonic-card class="max-w-sm">
|
|
23
|
-
<p class="m-0">Related content on a raised surface.</p>
|
|
24
|
-
</sonic-card>
|
|
25
|
-
</code></pre>
|
|
26
20
|
<h2 id="type">Type</h2>
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<sonic-card type="invert" class="min-w-[8rem]">Invert</sonic-card>
|
|
39
|
-
</div>
|
|
40
|
-
</code></pre>
|
|
41
|
-
<h2 id="shadow">Shadow</h2>
|
|
42
|
-
<p>Set <strong><code>shadow</code></strong> to control elevation. Default is <code>lg</code>.</p>
|
|
43
|
-
<pre><code><div class="grid gap-4 sm:grid-cols-2 max-w-2xl">
|
|
44
|
-
<sonic-card shadow="none" class="min-h-[5rem] flex items-center justify-center">None</sonic-card>
|
|
45
|
-
<sonic-card shadow="sm" class="min-h-[5rem] flex items-center justify-center">Small</sonic-card>
|
|
46
|
-
<sonic-card shadow="md" class="min-h-[5rem] flex items-center justify-center">Medium</sonic-card>
|
|
47
|
-
<sonic-card shadow="lg" class="min-h-[5rem] flex items-center justify-center">Large</sonic-card>
|
|
48
|
-
</div>
|
|
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>
|
|
49
32
|
</code></pre>
|
|
50
33
|
<h2 id="header">Header</h2>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
></sonic-card-header>
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</
|
|
69
|
-
</sonic-card>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<sonic-card-header label="Team workspace" description="Shared with 12 members">
|
|
73
|
-
<sonic-button
|
|
74
|
-
slot="suffix"
|
|
75
|
-
shape="circle"
|
|
76
|
-
variant="outline"
|
|
77
|
-
size="sm"
|
|
78
|
-
type="default"
|
|
79
|
-
icon
|
|
80
|
-
data-aria-label="Workspace settings"
|
|
81
|
-
>
|
|
82
|
-
<sonic-icon library="iconoir" name="settings"></sonic-icon>
|
|
83
|
-
</sonic-button>
|
|
84
|
-
</sonic-card-header>
|
|
85
|
-
</sonic-card>
|
|
86
|
-
|
|
87
|
-
<sonic-card type="primary">
|
|
88
|
-
<sonic-card-header>
|
|
89
|
-
<div>Custom header</div>
|
|
90
|
-
<sonic-card-header-description>
|
|
91
|
-
Use the header slot when attributes are not enough.
|
|
92
|
-
</sonic-card-header-description>
|
|
93
|
-
<sonic-button slot="suffix" shape="circle" variant="ghost" size="sm" type="primary" icon>
|
|
94
|
-
<sonic-icon library="iconoir" name="nav-arrow-right"></sonic-icon>
|
|
95
|
-
</sonic-button>
|
|
96
|
-
</sonic-card-header>
|
|
97
|
-
</sonic-card>
|
|
98
|
-
</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>
|
|
99
55
|
</code></pre>
|
|
100
56
|
<h2 id="main">Main</h2>
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<sonic-divider></sonic-divider>
|
|
109
|
-
<p class="mb-0 text-sm opacity-80">See the changelog for details.</p>
|
|
110
|
-
</sonic-card-main>
|
|
111
|
-
</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>
|
|
112
64
|
</code></pre>
|
|
113
65
|
<h2 id="footer">Footer</h2>
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
<sonic-divider></sonic-divider>
|
|
122
|
-
<div class="flex flex-wrap gap-2 justify-end">
|
|
123
|
-
<sonic-button variant="ghost" size="sm">Cancel</sonic-button>
|
|
124
|
-
<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
|
+
🛫 ✈ ✈ ✈ ✈ ✈ 🛬
|
|
125
73
|
</div>
|
|
126
|
-
</
|
|
127
|
-
</sonic-card>
|
|
74
|
+
</div>
|
|
75
|
+
</sonic-card-footer>
|
|
76
|
+
</sonic-card>
|
|
128
77
|
</code></pre>
|
|
129
|
-
<h2 id="
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
<sonic-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<sonic-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
</sonic-card-main>
|
|
146
|
-
<sonic-card-footer>
|
|
147
|
-
<div class="flex items-center justify-between gap-3 flex-wrap">
|
|
148
|
-
<span class="text-sm font-semibold">From $249</span>
|
|
149
|
-
<sonic-button type="primary" size="sm">Book</sonic-button>
|
|
150
|
-
</div>
|
|
151
|
-
</sonic-card-footer>
|
|
152
|
-
</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>
|
|
153
94
|
</code></pre>
|
|
154
|
-
<h2 id="api-reference">API reference</h2>
|
|
155
|
-
<h3 id="sonic-card"><code>sonic-card</code></h3>
|
|
156
|
-
<table>
|
|
157
|
-
<thead>
|
|
158
|
-
<tr>
|
|
159
|
-
<th>Attribute</th>
|
|
160
|
-
<th>Values</th>
|
|
161
|
-
<th>Description</th>
|
|
162
|
-
</tr>
|
|
163
|
-
</thead>
|
|
164
|
-
<tbody><tr>
|
|
165
|
-
<td><code>type</code></td>
|
|
166
|
-
<td><code>base</code> (default) · <code>light</code> · <code>invert</code> · <code>default</code> · <code>primary</code> · <code>warning</code> · <code>danger</code> · <code>success</code> · <code>info</code> · <code>neutral</code></td>
|
|
167
|
-
<td>Semantic background and text (<code>default</code> and <code>light</code> share the same surface)</td>
|
|
168
|
-
</tr>
|
|
169
|
-
<tr>
|
|
170
|
-
<td><code>shadow</code></td>
|
|
171
|
-
<td><code>none</code> · <code>sm</code> · <code>md</code> · <code>lg</code> (default <code>lg</code>)</td>
|
|
172
|
-
<td>Elevation on the card surface</td>
|
|
173
|
-
</tr>
|
|
174
|
-
</tbody></table>
|
|
175
|
-
<table>
|
|
176
|
-
<thead>
|
|
177
|
-
<tr>
|
|
178
|
-
<th>Slot</th>
|
|
179
|
-
<th>Description</th>
|
|
180
|
-
</tr>
|
|
181
|
-
</thead>
|
|
182
|
-
<tbody><tr>
|
|
183
|
-
<td><em>(default)</em></td>
|
|
184
|
-
<td>Free-form content (header, main, footer, or direct markup)</td>
|
|
185
|
-
</tr>
|
|
186
|
-
</tbody></table>
|
|
187
|
-
<h3 id="sonic-card-header"><code>sonic-card-header</code></h3>
|
|
188
|
-
<table>
|
|
189
|
-
<thead>
|
|
190
|
-
<tr>
|
|
191
|
-
<th>Attribute</th>
|
|
192
|
-
<th>Values</th>
|
|
193
|
-
<th>Description</th>
|
|
194
|
-
</tr>
|
|
195
|
-
</thead>
|
|
196
|
-
<tbody><tr>
|
|
197
|
-
<td><code>label</code></td>
|
|
198
|
-
<td>HTML</td>
|
|
199
|
-
<td>Title (rendered as markup)</td>
|
|
200
|
-
</tr>
|
|
201
|
-
<tr>
|
|
202
|
-
<td><code>description</code></td>
|
|
203
|
-
<td>HTML</td>
|
|
204
|
-
<td>Subtitle below the title</td>
|
|
205
|
-
</tr>
|
|
206
|
-
</tbody></table>
|
|
207
|
-
<table>
|
|
208
|
-
<thead>
|
|
209
|
-
<tr>
|
|
210
|
-
<th>Slot</th>
|
|
211
|
-
<th>Description</th>
|
|
212
|
-
</tr>
|
|
213
|
-
</thead>
|
|
214
|
-
<tbody><tr>
|
|
215
|
-
<td><em>(default)</em></td>
|
|
216
|
-
<td>Custom title / description when attributes are not enough</td>
|
|
217
|
-
</tr>
|
|
218
|
-
<tr>
|
|
219
|
-
<td><code>suffix</code></td>
|
|
220
|
-
<td>Actions or badges aligned on the right (does not shrink)</td>
|
|
221
|
-
</tr>
|
|
222
|
-
</tbody></table>
|
|
223
|
-
<h3 id="sonic-card-header-description"><code>sonic-card-header-description</code></h3>
|
|
224
|
-
<table>
|
|
225
|
-
<thead>
|
|
226
|
-
<tr>
|
|
227
|
-
<th>Slot</th>
|
|
228
|
-
<th>Description</th>
|
|
229
|
-
</tr>
|
|
230
|
-
</thead>
|
|
231
|
-
<tbody><tr>
|
|
232
|
-
<td><em>(default)</em></td>
|
|
233
|
-
<td>Subtitle text; styled below the title when slotted in <strong><code>sonic-card-header</code></strong></td>
|
|
234
|
-
</tr>
|
|
235
|
-
</tbody></table>
|
|
236
|
-
<h3 id="sonic-card-main--sonic-card-footer"><code>sonic-card-main</code> · <code>sonic-card-footer</code></h3>
|
|
237
|
-
<table>
|
|
238
|
-
<thead>
|
|
239
|
-
<tr>
|
|
240
|
-
<th>Slot</th>
|
|
241
|
-
<th>Description</th>
|
|
242
|
-
</tr>
|
|
243
|
-
</thead>
|
|
244
|
-
<tbody><tr>
|
|
245
|
-
<td><em>(default)</em></td>
|
|
246
|
-
<td>Primary content (<code>main</code>) or actions / metadata (<code>footer</code>)</td>
|
|
247
|
-
</tr>
|
|
248
|
-
</tbody></table>
|
|
249
95
|
|
|
250
96
|
</article>
|
|
251
97
|
</main>
|
|
@@ -4,8 +4,16 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Divider — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
|
|
7
|
+
<meta name="description" content="Default
|
|
8
|
+
|
|
9
|
+
Align
|
|
10
|
+
|
|
11
|
+
Size
|
|
12
|
+
|
|
13
|
+
Custom
|
|
14
|
+
|
|
15
|
+
Lorem ipsum dolor sit amet +25">
|
|
16
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component">
|
|
9
17
|
<meta name="concorde-doc-id" content="core/components/ui/divider/divider">
|
|
10
18
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">
|
|
11
19
|
</head>
|
|
@@ -15,128 +23,34 @@
|
|
|
15
23
|
</header>
|
|
16
24
|
<main>
|
|
17
25
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Divider</strong>.
|
|
26
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Divider</strong>. Default
|
|
27
|
+
|
|
28
|
+
Align
|
|
29
|
+
|
|
30
|
+
Size
|
|
31
|
+
|
|
32
|
+
Custom
|
|
33
|
+
|
|
34
|
+
Lorem ipsum dolor sit amet +25 <span>Doc ID: <code>core/components/ui/divider/divider</code>. Keywords: Concorde, supersoniks, core/components/ui/divider/divider, divider, Divider, UI component, sonic-divider, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html">https://concorde.supersoniks.org/crawl/core/components/ui/divider/divider.html</a>.</span></p>
|
|
19
35
|
<h1 id="divider">Divider</h1>
|
|
20
|
-
<
|
|
21
|
-
<h2 id="basic-example">Basic example</h2>
|
|
22
|
-
<p>A bare divider is a full-width line with vertical margin. Omit <strong><code>size</code></strong> to use the host default spacing (<code>0.5rem</code> block margin).</p>
|
|
36
|
+
<h2 id="default">Default</h2>
|
|
23
37
|
<pre><code><sonic-divider></sonic-divider>
|
|
24
38
|
</code></pre>
|
|
25
|
-
<h2 id="
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<sonic-divider label="Center" align="center"></sonic-divider>
|
|
31
|
-
<sonic-divider label="Right" align="right"></sonic-divider>
|
|
32
|
-
</div>
|
|
39
|
+
<h2 id="align">Align</h2>
|
|
40
|
+
<pre><code><sonic-divider label="Default centered label"></sonic-divider>
|
|
41
|
+
<sonic-divider label="Right" align="right"></sonic-divider>
|
|
42
|
+
<sonic-divider label="Center" align="center"></sonic-divider>
|
|
43
|
+
<sonic-divider label="Left" align="left"></sonic-divider>
|
|
33
44
|
</code></pre>
|
|
34
45
|
<h2 id="size">Size</h2>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<sonic-divider size="sm" label="sm"></sonic-divider>
|
|
40
|
-
<sonic-divider size="md" label="md"></sonic-divider>
|
|
41
|
-
<sonic-divider size="lg" label="lg"></sonic-divider>
|
|
42
|
-
<sonic-divider size="xl" label="xl"></sonic-divider>
|
|
43
|
-
<sonic-divider size="2xl" label="2xl"></sonic-divider>
|
|
44
|
-
</div>
|
|
45
|
-
</code></pre>
|
|
46
|
-
<h2 id="line-style">Line style</h2>
|
|
47
|
-
<p><strong><code>lineStyle</code></strong> sets the stroke of the rule (<code>solid</code> · <code>dashed</code> · <code>dotted</code>). In HTML use the reflected attribute <strong><code>linestyle</code></strong> (case-insensitive).</p>
|
|
48
|
-
<pre><code><div class="grid gap-4">
|
|
49
|
-
<sonic-divider label="Solid"></sonic-divider>
|
|
50
|
-
<sonic-divider label="Dashed" lineStyle="dashed"></sonic-divider>
|
|
51
|
-
<sonic-divider label="Dotted" lineStyle="dotted"></sonic-divider>
|
|
52
|
-
</div>
|
|
53
|
-
</code></pre>
|
|
54
|
-
<h2 id="vertical-and-margin">Vertical and margin</h2>
|
|
55
|
-
<p>Set <strong><code>vertical</code></strong> for a column rule (for example between toolbar actions). <strong><code>noMargin</code></strong> removes host margin when a parent layout already provides spacing.</p>
|
|
56
|
-
<pre><code><div class="flex items-stretch gap-2" style="min-height: 3rem;">
|
|
57
|
-
<span class="flex items-center px-2">Before</span>
|
|
58
|
-
<sonic-divider vertical noMargin></sonic-divider>
|
|
59
|
-
<span class="flex items-center px-2">After</span>
|
|
60
|
-
</div>
|
|
61
|
-
</code></pre>
|
|
62
|
-
<h2 id="default-slot">Default slot</h2>
|
|
63
|
-
<p>Slotted content replaces or augments <strong><code>label</code></strong>. Useful for badges, icons, or mixed markup in menus.</p>
|
|
64
|
-
<pre><code><sonic-divider>
|
|
65
|
-
<span class="mr-2">Section title</span>
|
|
66
|
-
<sonic-badge type="danger">+25</sonic-badge>
|
|
67
|
-
</sonic-divider>
|
|
46
|
+
<pre><code><sonic-divider size="xs" label="xs"></sonic-divider>
|
|
47
|
+
<sonic-divider size="sm" label="sm"></sonic-divider>
|
|
48
|
+
<sonic-divider size="md" label="md"></sonic-divider>
|
|
49
|
+
<sonic-divider size="lg" label="lg"></sonic-divider>
|
|
68
50
|
</code></pre>
|
|
69
|
-
<h2 id="
|
|
70
|
-
<
|
|
71
|
-
<pre><code><div class="grid gap-4 max-w-xl">
|
|
72
|
-
<sonic-card type="danger">
|
|
73
|
-
<div>This action cannot be undone.</div>
|
|
74
|
-
<sonic-divider label="Affected resources"></sonic-divider>
|
|
75
|
-
<ul class="m-0 pl-5 text-sm">
|
|
76
|
-
<li>Project files</li>
|
|
77
|
-
<li>Shared links</li>
|
|
78
|
-
</ul>
|
|
79
|
-
</sonic-card>
|
|
80
|
-
<sonic-card type="info">
|
|
81
|
-
<div>Maintenance is scheduled for tonight.</div>
|
|
82
|
-
<sonic-divider></sonic-divider>
|
|
83
|
-
<div class="opacity-60">Expected downtime: about 15 minutes.</div>
|
|
84
|
-
</sonic-card>
|
|
85
|
-
</div>
|
|
51
|
+
<h2 id="custom">Custom</h2>
|
|
52
|
+
<pre><code><sonic-divider><span class="mr-2">Lorem ipsum dolor sit amet</span><sonic-badge type="danger">+25</sonic-badge></sonic-divider>
|
|
86
53
|
</code></pre>
|
|
87
|
-
<h2 id="api-reference">API reference</h2>
|
|
88
|
-
<table>
|
|
89
|
-
<thead>
|
|
90
|
-
<tr>
|
|
91
|
-
<th>Attribute</th>
|
|
92
|
-
<th>Values</th>
|
|
93
|
-
<th>Description</th>
|
|
94
|
-
</tr>
|
|
95
|
-
</thead>
|
|
96
|
-
<tbody><tr>
|
|
97
|
-
<td><code>label</code></td>
|
|
98
|
-
<td>string (HTML)</td>
|
|
99
|
-
<td>Caption centered on the rule; combined with default-slot content when both are set</td>
|
|
100
|
-
</tr>
|
|
101
|
-
<tr>
|
|
102
|
-
<td><code>align</code></td>
|
|
103
|
-
<td><code>left</code> · <code>center</code> · <code>right</code> (default <code>center</code>)</td>
|
|
104
|
-
<td>Hides the leading or trailing line segment for left/right alignment</td>
|
|
105
|
-
</tr>
|
|
106
|
-
<tr>
|
|
107
|
-
<td><code>size</code></td>
|
|
108
|
-
<td><code>2xs</code> · <code>xs</code> · <code>sm</code> · <code>md</code> · <code>lg</code> · <code>xl</code> · <code>2xl</code> · <code>inherit</code></td>
|
|
109
|
-
<td>Vertical margin and label <code>font-size</code>; omit for host defaults</td>
|
|
110
|
-
</tr>
|
|
111
|
-
<tr>
|
|
112
|
-
<td><code>lineStyle</code></td>
|
|
113
|
-
<td><code>solid</code> · <code>dashed</code> · <code>dotted</code> (default <code>solid</code>)</td>
|
|
114
|
-
<td>Stroke style of the rule (HTML attribute <code>linestyle</code>)</td>
|
|
115
|
-
</tr>
|
|
116
|
-
<tr>
|
|
117
|
-
<td><code>vertical</code></td>
|
|
118
|
-
<td>boolean</td>
|
|
119
|
-
<td>Renders a vertical rule; swap block/inline margins</td>
|
|
120
|
-
</tr>
|
|
121
|
-
<tr>
|
|
122
|
-
<td><code>noMargin</code></td>
|
|
123
|
-
<td>boolean</td>
|
|
124
|
-
<td>Sets host margin to <code>0</code></td>
|
|
125
|
-
</tr>
|
|
126
|
-
</tbody></table>
|
|
127
|
-
<table>
|
|
128
|
-
<thead>
|
|
129
|
-
<tr>
|
|
130
|
-
<th>Slot</th>
|
|
131
|
-
<th>Description</th>
|
|
132
|
-
</tr>
|
|
133
|
-
</thead>
|
|
134
|
-
<tbody><tr>
|
|
135
|
-
<td><em>(default)</em></td>
|
|
136
|
-
<td>Label markup when <strong><code>label</code></strong> is insufficient or empty</td>
|
|
137
|
-
</tr>
|
|
138
|
-
</tbody></table>
|
|
139
|
-
<p>The inner flex container exposes <strong><code>part="divider"</code></strong> for theme overrides.</p>
|
|
140
54
|
|
|
141
55
|
</article>
|
|
142
56
|
</main>
|