loseta 0.4.0 → 0.5.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/README.md +12 -4
- package/dist/add-policy.d.ts +15 -0
- package/dist/add-policy.js +53 -0
- package/dist/add-policy.js.map +1 -0
- package/dist/commands/add.d.ts +4 -0
- package/dist/commands/add.js +24 -20
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/list.d.ts +6 -1
- package/dist/commands/list.js +23 -5
- package/dist/commands/list.js.map +1 -1
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +6 -0
- package/dist/registry.js.map +1 -1
- package/dist/style-switch.js +11 -0
- package/dist/style-switch.js.map +1 -1
- package/package.json +1 -1
- package/registry/components/accordion.css +65 -0
- package/registry/components/aspect-ratio.css +25 -0
- package/registry/components/avatar.css +54 -0
- package/registry/components/breadcrumb.css +57 -0
- package/registry/components/pagination.css +49 -0
- package/registry/components/progress.css +13 -0
- package/registry/components/separator.css +12 -0
- package/registry/components/spinner.css +8 -0
- package/registry/components/toggle-group.css +17 -0
- package/registry/components/toggle.css +31 -0
- package/registry/examples/accordion.html +56 -0
- package/registry/examples/aspect-ratio.html +9 -0
- package/registry/examples/avatar.html +21 -0
- package/registry/examples/breadcrumb.html +23 -0
- package/registry/examples/pagination.html +39 -0
- package/registry/examples/progress.html +5 -0
- package/registry/examples/separator.html +15 -0
- package/registry/examples/spinner.html +12 -0
- package/registry/examples/toggle-group.html +13 -0
- package/registry/examples/toggle.html +13 -0
- package/registry/registry.json +308 -1
- package/registry/styles/nova/accordion.css +59 -0
- package/registry/styles/nova/aspect-ratio.css +6 -0
- package/registry/styles/nova/avatar.css +89 -0
- package/registry/styles/nova/breadcrumb.css +61 -0
- package/registry/styles/nova/pagination.css +46 -0
- package/registry/styles/nova/progress.css +67 -0
- package/registry/styles/nova/separator.css +14 -0
- package/registry/styles/nova/spinner.css +35 -0
- package/registry/styles/nova/toggle-group.css +48 -0
- package/registry/styles/nova/toggle.css +110 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Pagination */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.pagination {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
|
|
8
|
+
> ul {
|
|
9
|
+
margin: 0;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: center;
|
|
13
|
+
list-style-type: none;
|
|
14
|
+
padding: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
> ul > li {
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
> ul > li > :is(a, button) {
|
|
22
|
+
outline-style: none;
|
|
23
|
+
|
|
24
|
+
@media (forced-colors: active) {
|
|
25
|
+
outline: 2px solid transparent;
|
|
26
|
+
outline-offset: 2px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[data-slot='ellipsis'] {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
-webkit-user-select: none;
|
|
35
|
+
user-select: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
svg {
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[data-rtl-flip] {
|
|
44
|
+
&:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *) {
|
|
45
|
+
rotate: 180deg;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* Toggle Group */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.toggle-group {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
&[data-orientation='vertical'] {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: stretch;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
> .toggle {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* Toggle */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.toggle {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
white-space: nowrap;
|
|
9
|
+
outline-style: none;
|
|
10
|
+
-webkit-user-select: none;
|
|
11
|
+
user-select: none;
|
|
12
|
+
transition-property: all;
|
|
13
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
14
|
+
transition-duration: 150ms;
|
|
15
|
+
|
|
16
|
+
@media (forced-colors: active) {
|
|
17
|
+
outline: 2px solid transparent;
|
|
18
|
+
outline-offset: 2px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:disabled {
|
|
22
|
+
pointer-events: none;
|
|
23
|
+
opacity: 50%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> svg {
|
|
27
|
+
pointer-events: none;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div class="accordion">
|
|
3
|
+
<details open>
|
|
4
|
+
<summary>
|
|
5
|
+
Is it accessible?
|
|
6
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
7
|
+
</summary>
|
|
8
|
+
<div>
|
|
9
|
+
<p>Yes. It uses native details and summary elements.</p>
|
|
10
|
+
</div>
|
|
11
|
+
</details>
|
|
12
|
+
<details>
|
|
13
|
+
<summary>
|
|
14
|
+
Can I style it?
|
|
15
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
16
|
+
</summary>
|
|
17
|
+
<div>
|
|
18
|
+
<p>Yes. The base file owns the anatomy and the Nova style owns the surface.</p>
|
|
19
|
+
</div>
|
|
20
|
+
</details>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
<!-- Exclusive -->
|
|
24
|
+
<div class="accordion">
|
|
25
|
+
<details name="demo-accordion" open>
|
|
26
|
+
<summary>
|
|
27
|
+
Shipping
|
|
28
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
29
|
+
</summary>
|
|
30
|
+
<div>
|
|
31
|
+
<p>Orders placed before 14:00 ship the same day.</p>
|
|
32
|
+
</div>
|
|
33
|
+
</details>
|
|
34
|
+
<details name="demo-accordion">
|
|
35
|
+
<summary>
|
|
36
|
+
Returns
|
|
37
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
38
|
+
</summary>
|
|
39
|
+
<div>
|
|
40
|
+
<p>Returns are accepted within 30 days of delivery.</p>
|
|
41
|
+
</div>
|
|
42
|
+
</details>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<!-- Disabled -->
|
|
46
|
+
<div class="accordion">
|
|
47
|
+
<details inert>
|
|
48
|
+
<summary>
|
|
49
|
+
Archived section
|
|
50
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"/></svg>
|
|
51
|
+
</summary>
|
|
52
|
+
<div>
|
|
53
|
+
<p>This section cannot be opened.</p>
|
|
54
|
+
</div>
|
|
55
|
+
</details>
|
|
56
|
+
</div>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!-- 16 / 9 -->
|
|
2
|
+
<div class="aspect-ratio" style="--ratio: 16 / 9">
|
|
3
|
+
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2394a3b8'/%3E%3Cstop offset='1' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ctext x='80' y='49' text-anchor='middle' font-family='sans-serif' font-size='12' fill='%23334155'%3E16:9%3C/text%3E%3C/svg%3E" alt="A 16 by 9 media placeholder" />
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
<!-- Square, contain -->
|
|
7
|
+
<div class="aspect-ratio" style="--ratio: 1 / 1; max-width: 16rem" data-fit="contain">
|
|
8
|
+
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2394a3b8'/%3E%3Cstop offset='1' stop-color='%23e2e8f0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23g)'/%3E%3Ctext x='80' y='49' text-anchor='middle' font-family='sans-serif' font-size='12' fill='%23334155'%3E16:9%3C/text%3E%3C/svg%3E" alt="A wide media placeholder inside a square frame" />
|
|
9
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Sizes -->
|
|
2
|
+
<div style="display: flex; align-items: center; gap: 0.75rem">
|
|
3
|
+
<span class="avatar" data-size="sm"><span data-slot="fallback">SM</span></span>
|
|
4
|
+
<span class="avatar"><span data-slot="fallback">AV</span></span>
|
|
5
|
+
<span class="avatar" data-size="lg"><span data-slot="fallback">LG</span></span>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<!-- Image and badge -->
|
|
9
|
+
<span class="avatar" data-size="lg">
|
|
10
|
+
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23cbd5e1'/%3E%3Ccircle cx='32' cy='24' r='11' fill='%23475569'/%3E%3Cpath d='M10 64c0-12 10-22 22-22s22 10 22 22z' fill='%23475569'/%3E%3C/svg%3E" alt="Ada Lovelace" />
|
|
11
|
+
<span data-slot="fallback" aria-hidden="true">AL</span>
|
|
12
|
+
<span data-slot="badge" aria-hidden="true"></span>
|
|
13
|
+
</span>
|
|
14
|
+
|
|
15
|
+
<!-- Group -->
|
|
16
|
+
<div class="avatar-group">
|
|
17
|
+
<span class="avatar"><span data-slot="fallback">AL</span></span>
|
|
18
|
+
<span class="avatar"><span data-slot="fallback">GR</span></span>
|
|
19
|
+
<span class="avatar"><span data-slot="fallback">TS</span></span>
|
|
20
|
+
<span class="avatar"><span data-slot="fallback">+3</span></span>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<nav class="breadcrumb" aria-label="breadcrumb">
|
|
3
|
+
<ol>
|
|
4
|
+
<li><a href="#">Home</a></li>
|
|
5
|
+
<li role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></li>
|
|
6
|
+
<li><a href="#">Components</a></li>
|
|
7
|
+
<li role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></li>
|
|
8
|
+
<li><span aria-current="page">Breadcrumb</span></li>
|
|
9
|
+
</ol>
|
|
10
|
+
</nav>
|
|
11
|
+
|
|
12
|
+
<!-- Collapsed -->
|
|
13
|
+
<nav class="breadcrumb" aria-label="breadcrumb">
|
|
14
|
+
<ol>
|
|
15
|
+
<li><a href="#">Home</a></li>
|
|
16
|
+
<li role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></li>
|
|
17
|
+
<li><span data-slot="ellipsis" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg></span></li>
|
|
18
|
+
<li role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></li>
|
|
19
|
+
<li><a href="#">Components</a></li>
|
|
20
|
+
<li role="presentation" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></li>
|
|
21
|
+
<li><span aria-current="page">Breadcrumb</span></li>
|
|
22
|
+
</ol>
|
|
23
|
+
</nav>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<nav class="pagination" aria-label="pagination">
|
|
3
|
+
<ul>
|
|
4
|
+
<li>
|
|
5
|
+
<a class="btn" data-variant="ghost" data-size="icon" href="#" aria-label="Go to previous page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg></a>
|
|
6
|
+
</li>
|
|
7
|
+
<li><a class="btn" data-variant="ghost" href="#" aria-current="page">1</a></li>
|
|
8
|
+
<li><a class="btn" data-variant="ghost" href="#">2</a></li>
|
|
9
|
+
<li><a class="btn" data-variant="ghost" href="#">3</a></li>
|
|
10
|
+
<li>
|
|
11
|
+
<a class="btn" data-variant="ghost" data-size="icon" href="#" aria-label="Go to next page"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg></a>
|
|
12
|
+
</li>
|
|
13
|
+
</ul>
|
|
14
|
+
</nav>
|
|
15
|
+
|
|
16
|
+
<!-- With ellipsis -->
|
|
17
|
+
<nav class="pagination" aria-label="pagination">
|
|
18
|
+
<ul>
|
|
19
|
+
<li>
|
|
20
|
+
<a class="btn" data-variant="ghost" href="#" aria-label="Go to previous page">
|
|
21
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 18-6-6 6-6"/></svg>
|
|
22
|
+
<span data-slot="label" aria-hidden="true">Previous</span>
|
|
23
|
+
</a>
|
|
24
|
+
</li>
|
|
25
|
+
<li><a class="btn" data-variant="ghost" href="#">1</a></li>
|
|
26
|
+
<li><a class="btn" data-variant="ghost" href="#">2</a></li>
|
|
27
|
+
<li><a class="btn" data-variant="ghost" href="#">3</a></li>
|
|
28
|
+
<li><span data-slot="ellipsis" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg></span></li>
|
|
29
|
+
<li><a class="btn" data-variant="ghost" href="#">8</a></li>
|
|
30
|
+
<li><a class="btn" data-variant="ghost" href="#">9</a></li>
|
|
31
|
+
<li><a class="btn" data-variant="ghost" href="#" aria-current="page">10</a></li>
|
|
32
|
+
<li>
|
|
33
|
+
<a class="btn" data-variant="ghost" href="#" aria-label="Go to next page">
|
|
34
|
+
<span data-slot="label" aria-hidden="true">Next</span>
|
|
35
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 18 6-6-6-6"/></svg>
|
|
36
|
+
</a>
|
|
37
|
+
</li>
|
|
38
|
+
</ul>
|
|
39
|
+
</nav>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Horizontal -->
|
|
2
|
+
<div style="display: grid; gap: 0.75rem">
|
|
3
|
+
<p>loseta components</p>
|
|
4
|
+
<hr class="separator" />
|
|
5
|
+
<p>Native CSS with copy-paste distribution.</p>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<!-- Vertical -->
|
|
9
|
+
<div style="display: flex; align-items: center; gap: 1rem; height: 1.5rem">
|
|
10
|
+
<span>Blog</span>
|
|
11
|
+
<div class="separator" role="separator" aria-orientation="vertical" data-orientation="vertical"></div>
|
|
12
|
+
<span>Docs</span>
|
|
13
|
+
<div class="separator" role="separator" aria-orientation="vertical" data-orientation="vertical"></div>
|
|
14
|
+
<span>Source</span>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!-- Sizes -->
|
|
2
|
+
<div style="display: flex; align-items: center; gap: 1rem">
|
|
3
|
+
<span class="spinner" data-size="sm" role="status"><span class="sr-only">Loading</span></span>
|
|
4
|
+
<span class="spinner" role="status"><span class="sr-only">Loading</span></span>
|
|
5
|
+
<span class="spinner" data-size="lg" role="status"><span class="sr-only">Loading</span></span>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<!-- With a label -->
|
|
9
|
+
<div style="display: flex; align-items: center; gap: 0.5rem">
|
|
10
|
+
<span class="spinner" data-size="sm" aria-hidden="true"></span>
|
|
11
|
+
<span>Loading results…</span>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Joined -->
|
|
2
|
+
<div class="toggle-group" role="group" aria-label="Text alignment" data-spacing="joined">
|
|
3
|
+
<button type="button" class="toggle" aria-pressed="true" aria-label="Align left"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="21" x2="3" y1="6" y2="6"/><line x1="15" x2="3" y1="12" y2="12"/><line x1="17" x2="3" y1="18" y2="18"/></svg></button>
|
|
4
|
+
<button type="button" class="toggle" aria-pressed="false" aria-label="Align center"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="21" x2="3" y1="6" y2="6"/><line x1="17" x2="7" y1="12" y2="12"/><line x1="19" x2="5" y1="18" y2="18"/></svg></button>
|
|
5
|
+
<button type="button" class="toggle" aria-pressed="false" aria-label="Align right"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="21" x2="3" y1="6" y2="6"/><line x1="21" x2="9" y1="12" y2="12"/><line x1="21" x2="7" y1="18" y2="18"/></svg></button>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<!-- Vertical outline -->
|
|
9
|
+
<div class="toggle-group" role="group" aria-label="View density" data-orientation="vertical" data-variant="outline" data-size="sm">
|
|
10
|
+
<button type="button" class="toggle" aria-pressed="true">Compact</button>
|
|
11
|
+
<button type="button" class="toggle" aria-pressed="false">Default</button>
|
|
12
|
+
<button type="button" class="toggle" aria-pressed="false">Comfortable</button>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Variants -->
|
|
2
|
+
<div style="display: flex; flex-wrap: wrap; gap: 0.5rem">
|
|
3
|
+
<button type="button" class="toggle" aria-pressed="false">Bold</button>
|
|
4
|
+
<button type="button" class="toggle" data-variant="outline" aria-pressed="true">Italic</button>
|
|
5
|
+
<button type="button" class="toggle" data-variant="outline" aria-pressed="false" disabled>Underline</button>
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<!-- Sizes -->
|
|
9
|
+
<div style="display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem">
|
|
10
|
+
<button type="button" class="toggle" data-size="sm" aria-pressed="false">Small</button>
|
|
11
|
+
<button type="button" class="toggle" aria-pressed="false">Default</button>
|
|
12
|
+
<button type="button" class="toggle" data-size="lg" aria-pressed="false">Large</button>
|
|
13
|
+
</div>
|