loseta 0.5.0 → 0.7.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 +1 -1
- package/package.json +1 -1
- package/registry/components/collapsible.css +57 -0
- package/registry/components/context-menu.css +29 -0
- package/registry/components/drawer.css +26 -0
- package/registry/components/dropdown-menu.css +1 -84
- package/registry/components/hover-card.css +18 -0
- package/registry/components/input-group.css +45 -0
- package/registry/components/input-otp.css +20 -0
- package/registry/components/menubar.css +52 -0
- package/registry/components/navigation-menu.css +35 -0
- package/registry/components/scroll-area.css +16 -0
- package/registry/components/sheet.css +21 -0
- package/registry/components/slider.css +13 -0
- package/registry/examples/collapsible.html +22 -0
- package/registry/examples/context-menu.html +10 -0
- package/registry/examples/drawer.html +46 -0
- package/registry/examples/hover-card.html +13 -0
- package/registry/examples/input-group.html +14 -0
- package/registry/examples/input-otp.html +5 -0
- package/registry/examples/menubar.html +43 -0
- package/registry/examples/navigation-menu.html +58 -0
- package/registry/examples/scroll-area.html +25 -0
- package/registry/examples/sheet.html +42 -0
- package/registry/examples/slider.html +9 -0
- package/registry/primitives/dialog-shell.css +54 -1
- package/registry/primitives/menu.css +87 -0
- package/registry/registry.json +420 -2
- package/registry/styles/luma/dropdown-menu.css +0 -96
- package/registry/styles/luma/primitives/menu.css +104 -0
- package/registry/styles/lyra/dropdown-menu.css +0 -96
- package/registry/styles/lyra/primitives/menu.css +104 -0
- package/registry/styles/maia/dropdown-menu.css +0 -96
- package/registry/styles/maia/primitives/menu.css +104 -0
- package/registry/styles/mira/dropdown-menu.css +0 -97
- package/registry/styles/mira/primitives/menu.css +105 -0
- package/registry/styles/nova/collapsible.css +50 -0
- package/registry/styles/nova/context-menu.css +19 -0
- package/registry/styles/nova/drawer.css +60 -0
- package/registry/styles/nova/dropdown-menu.css +0 -96
- package/registry/styles/nova/hover-card.css +22 -0
- package/registry/styles/nova/input-group.css +86 -0
- package/registry/styles/nova/input-otp.css +51 -0
- package/registry/styles/nova/menubar.css +48 -0
- package/registry/styles/nova/navigation-menu.css +79 -0
- package/registry/styles/nova/primitives/menu.css +104 -0
- package/registry/styles/nova/scroll-area.css +30 -0
- package/registry/styles/nova/sheet.css +54 -0
- package/registry/styles/nova/slider.css +15 -0
- package/registry/styles/rhea/dropdown-menu.css +0 -97
- package/registry/styles/rhea/primitives/menu.css +105 -0
- package/registry/styles/sera/dropdown-menu.css +0 -96
- package/registry/styles/sera/primitives/menu.css +104 -0
- package/registry/styles/vega/dropdown-menu.css +0 -96
- package/registry/styles/vega/primitives/menu.css +104 -0
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ registry/
|
|
|
38
38
|
reset.css # preflight-style reset
|
|
39
39
|
base.css # element defaults
|
|
40
40
|
utilities.css # sr-only
|
|
41
|
-
primitives/ # shared popover and dialog shells
|
|
41
|
+
primitives/ # shared popover, menu and dialog shells
|
|
42
42
|
components/ # structural CSS per component
|
|
43
43
|
styles/ # visual CSS per declared style
|
|
44
44
|
examples/ # example markup used by `add --html`
|
package/package.json
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Collapsible */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.collapsible {
|
|
4
|
+
> summary {
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
list-style-type: none;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
outline-style: none;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
|
|
15
|
+
@media (forced-colors: active) {
|
|
16
|
+
outline: 2px solid transparent;
|
|
17
|
+
outline-offset: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::-webkit-details-marker {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
> svg:last-child {
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
transition-property: rotate;
|
|
28
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
29
|
+
transition-duration: 150ms;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[open] > summary > svg:last-child {
|
|
34
|
+
rotate: 180deg;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[inert] > summary {
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
opacity: 50%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> :not(summary) {
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::details-content {
|
|
47
|
+
block-size: 0;
|
|
48
|
+
display: block;
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[open]::details-content {
|
|
53
|
+
block-size: auto;
|
|
54
|
+
block-size: calc-size(auto, size);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* Context Menu */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.context-menu {
|
|
4
|
+
position: fixed;
|
|
5
|
+
left: var(--context-x, 0);
|
|
6
|
+
top: var(--context-y, 0);
|
|
7
|
+
z-index: 50;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
outline-style: none;
|
|
11
|
+
|
|
12
|
+
@media (forced-colors: active) {
|
|
13
|
+
outline: 2px solid transparent;
|
|
14
|
+
outline-offset: 2px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[aria-hidden='true'] {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
opacity: 0%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
23
|
+
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
24
|
+
background-color: var(--accent);
|
|
25
|
+
color: var(--accent-foreground);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Drawer */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.drawer {
|
|
4
|
+
> * {
|
|
5
|
+
> [data-slot='handle'] {
|
|
6
|
+
display: block;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> header {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
> section {
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> footer {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: flex-end;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -4,90 +4,7 @@
|
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
|
|
7
|
-
[role='menu'] {
|
|
8
|
-
outline-style: none;
|
|
9
|
-
|
|
10
|
-
@media (forced-colors: active) {
|
|
11
|
-
outline: 2px solid transparent;
|
|
12
|
-
outline-offset: 2px;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
17
|
-
position: relative;
|
|
18
|
-
display: flex;
|
|
19
|
-
width: 100%;
|
|
20
|
-
cursor: default;
|
|
21
|
-
align-items: center;
|
|
22
|
-
white-space: normal;
|
|
23
|
-
outline-style: none;
|
|
24
|
-
|
|
25
|
-
@media (forced-colors: active) {
|
|
26
|
-
outline: 2px solid transparent;
|
|
27
|
-
outline-offset: 2px;
|
|
28
|
-
}
|
|
29
|
-
-webkit-user-select: none;
|
|
30
|
-
user-select: none;
|
|
31
|
-
|
|
32
|
-
&:disabled {
|
|
33
|
-
pointer-events: none;
|
|
34
|
-
opacity: 50%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&[aria-disabled='true'] {
|
|
38
|
-
pointer-events: none;
|
|
39
|
-
opacity: 50%;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&[aria-hidden='true'] {
|
|
43
|
-
display: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
& svg {
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
flex-shrink: 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
[role='menu'] [role='heading'] {
|
|
53
|
-
display: flex;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
[role='separator'] {
|
|
57
|
-
border-style: solid;
|
|
58
|
-
border-width: 0px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
|
|
62
|
-
margin-inline-start: auto;
|
|
63
|
-
flex-shrink: 0;
|
|
64
|
-
text-align: end;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
[data-slot='shortcut'] {
|
|
68
|
-
padding-inline-start: 2rem;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:is(kbd:last-child, .kbd:last-child):not([data-slot='shortcut']) {
|
|
72
|
-
padding-inline-start: 2rem;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
[data-slot='indicator'] {
|
|
76
|
-
pointer-events: none;
|
|
77
|
-
visibility: hidden;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-slot='indicator'] {
|
|
81
|
-
visibility: visible;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
[data-rtl-flip] {
|
|
85
|
-
&:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *) {
|
|
86
|
-
rotate: 180deg;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&:not([data-dropdown-menu-initialized]) :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
7
|
+
&:not([data-dropdown-menu-initialized]) [role='menu'] :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
91
8
|
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
92
9
|
background-color: var(--accent);
|
|
93
10
|
color: var(--accent-foreground);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* Hover Card */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.hover-card {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
|
|
7
|
+
> [data-popover] {
|
|
8
|
+
visibility: hidden;
|
|
9
|
+
opacity: 0%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:hover > [data-popover],
|
|
13
|
+
&:focus-within > [data-popover] {
|
|
14
|
+
visibility: visible;
|
|
15
|
+
opacity: 100%;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* Input Group */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.input-group {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
min-width: 0;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
&:has(> [data-align='block-start'], > [data-align='block-end']) {
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: stretch;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> :is(input, textarea) {
|
|
15
|
+
flex: 1 1 auto;
|
|
16
|
+
width: auto;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
height: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
> [data-slot='addon'] {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-shrink: 0;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
gap: 0.25rem;
|
|
27
|
+
|
|
28
|
+
&[data-align='inline-start'],
|
|
29
|
+
&[data-align='block-start'] {
|
|
30
|
+
order: -1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-align='inline-end'],
|
|
34
|
+
&[data-align='block-end'] {
|
|
35
|
+
order: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-align='block-start'],
|
|
39
|
+
&[data-align='block-end'] {
|
|
40
|
+
width: 100%;
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Input OTP */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.input-otp {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
outline-style: none;
|
|
7
|
+
text-align: center;
|
|
8
|
+
font-variant-numeric: tabular-nums;
|
|
9
|
+
|
|
10
|
+
&::placeholder {
|
|
11
|
+
color: var(--muted-foreground);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:disabled {
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
cursor: not-allowed;
|
|
17
|
+
opacity: 50%;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* Menubar */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.menubar {
|
|
4
|
+
display: flex;
|
|
5
|
+
width: fit-content;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
> .menubar-item {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[role='menuitem'] {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
outline-style: none;
|
|
19
|
+
-webkit-user-select: none;
|
|
20
|
+
user-select: none;
|
|
21
|
+
|
|
22
|
+
@media (forced-colors: active) {
|
|
23
|
+
outline: 2px solid transparent;
|
|
24
|
+
outline-offset: 2px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:disabled {
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
opacity: 50%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[aria-disabled='true'] {
|
|
33
|
+
pointer-events: none;
|
|
34
|
+
opacity: 50%;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& svg {
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
flex-shrink: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
[role='menu'] {
|
|
44
|
+
:is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
|
|
45
|
+
&:not([aria-disabled='true']):not(:disabled):hover {
|
|
46
|
+
background-color: var(--accent);
|
|
47
|
+
color: var(--accent-foreground);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* Navigation Menu */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.navigation-menu {
|
|
4
|
+
> ul {
|
|
5
|
+
margin: 0;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
list-style-type: none;
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
> ul > li {
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:is(a, button) {
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
white-space: nowrap;
|
|
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='title'],
|
|
31
|
+
[data-slot='description'] {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Scroll Area */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.scroll-area {
|
|
4
|
+
overflow: auto;
|
|
5
|
+
|
|
6
|
+
&[data-orientation='horizontal'] {
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
overflow-y: hidden;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-orientation='vertical'] {
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* Sheet */
|
|
2
|
+
@layer loseta.components {
|
|
3
|
+
.sheet {
|
|
4
|
+
> * {
|
|
5
|
+
> header {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
> section {
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
> footer {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<details class="collapsible">
|
|
3
|
+
<summary>
|
|
4
|
+
Show details
|
|
5
|
+
<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>
|
|
6
|
+
</summary>
|
|
7
|
+
<div>
|
|
8
|
+
<p>This content is revealed with the native details element.</p>
|
|
9
|
+
</div>
|
|
10
|
+
</details>
|
|
11
|
+
|
|
12
|
+
<!-- Open -->
|
|
13
|
+
<details class="collapsible" open>
|
|
14
|
+
<summary>
|
|
15
|
+
Shipping information
|
|
16
|
+
<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>
|
|
17
|
+
</summary>
|
|
18
|
+
<div>
|
|
19
|
+
<p>Orders placed before 14:00 ship the same day.</p>
|
|
20
|
+
<p>Tracking details arrive by email.</p>
|
|
21
|
+
</div>
|
|
22
|
+
</details>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
|
|
3
|
+
<p>Right-click anywhere in this area.</p>
|
|
4
|
+
<div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
|
|
5
|
+
<button type="button" role="menuitem">Profile</button>
|
|
6
|
+
<button type="button" role="menuitem">Billing</button>
|
|
7
|
+
<div role="separator"></div>
|
|
8
|
+
<button type="button" role="menuitem" data-variant="destructive">Delete account</button>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<button type="button" class="btn" data-variant="outline">
|
|
3
|
+
Open drawer
|
|
4
|
+
</button>
|
|
5
|
+
|
|
6
|
+
<dialog class="drawer" id="demo-drawer" data-side="block-end" aria-labelledby="drawer-title">
|
|
7
|
+
<div>
|
|
8
|
+
<span data-slot="handle" aria-hidden="true"></span>
|
|
9
|
+
<header>
|
|
10
|
+
<h2 data-slot="title" id="drawer-title">Edit profile</h2>
|
|
11
|
+
<p data-slot="description">Make changes to your profile here.</p>
|
|
12
|
+
</header>
|
|
13
|
+
<section>
|
|
14
|
+
<div class="field">
|
|
15
|
+
<label class="label" for="drawer-name">Name</label>
|
|
16
|
+
<input class="input" id="drawer-name" value="Ada Lovelace">
|
|
17
|
+
</div>
|
|
18
|
+
</section>
|
|
19
|
+
<footer>
|
|
20
|
+
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
21
|
+
<button type="button" class="btn">Save changes</button>
|
|
22
|
+
</footer>
|
|
23
|
+
</div>
|
|
24
|
+
</dialog>
|
|
25
|
+
|
|
26
|
+
<!-- Large -->
|
|
27
|
+
<button type="button" class="btn" data-variant="outline">
|
|
28
|
+
Open large drawer
|
|
29
|
+
</button>
|
|
30
|
+
|
|
31
|
+
<dialog class="drawer" id="demo-drawer-large" data-side="block-end" data-size="lg" aria-labelledby="drawer-large-title">
|
|
32
|
+
<div>
|
|
33
|
+
<span data-slot="handle" aria-hidden="true"></span>
|
|
34
|
+
<header>
|
|
35
|
+
<h2 data-slot="title" id="drawer-large-title">Filters</h2>
|
|
36
|
+
<p data-slot="description">Narrow the results to the records you need.</p>
|
|
37
|
+
</header>
|
|
38
|
+
<section>
|
|
39
|
+
<p>Use the controls in your application to filter this content.</p>
|
|
40
|
+
</section>
|
|
41
|
+
<footer>
|
|
42
|
+
<button type="button" class="btn" data-variant="outline">Cancel</button>
|
|
43
|
+
<button type="button" class="btn">Apply</button>
|
|
44
|
+
</footer>
|
|
45
|
+
</div>
|
|
46
|
+
</dialog>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div style="display: flex; align-items: center; justify-content: center; min-height: 14rem">
|
|
3
|
+
<span class="hover-card">
|
|
4
|
+
<a href="#" aria-describedby="hover-card-profile">@loseta</a>
|
|
5
|
+
<div data-popover data-side="bottom" data-align="start" id="hover-card-profile">
|
|
6
|
+
<div>
|
|
7
|
+
<h3>loseta</h3>
|
|
8
|
+
<p>Native CSS component scaffolds with the shadcn feel.</p>
|
|
9
|
+
</div>
|
|
10
|
+
<p>Joined November 2026</p>
|
|
11
|
+
</div>
|
|
12
|
+
</span>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Inline addons -->
|
|
2
|
+
<div class="input-group" role="group" aria-label="Email">
|
|
3
|
+
<span data-slot="addon" data-align="inline-start" aria-hidden="true">@</span>
|
|
4
|
+
<input class="input" type="email" placeholder="you@example.com" aria-label="Email">
|
|
5
|
+
<span data-slot="addon" data-align="inline-end">
|
|
6
|
+
<button type="button" class="btn" data-variant="ghost" data-size="icon-xs" aria-label="Copy email"><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"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg></button>
|
|
7
|
+
</span>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<!-- Block addon -->
|
|
11
|
+
<div class="input-group" role="group" aria-label="Message">
|
|
12
|
+
<span data-slot="addon" data-align="block-start">Message</span>
|
|
13
|
+
<textarea class="textarea" placeholder="Type your message here." aria-label="Message"></textarea>
|
|
14
|
+
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<input class="input-otp" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]*" aria-label="One-time code" placeholder="000000">
|
|
3
|
+
|
|
4
|
+
<!-- Large -->
|
|
5
|
+
<input class="input-otp" data-size="lg" type="text" inputmode="numeric" autocomplete="one-time-code" maxlength="6" pattern="[0-9]*" aria-label="One-time code" placeholder="000000">
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div style="display: flex; align-items: flex-start; justify-content: center; min-height: 16rem; padding-top: 1rem">
|
|
3
|
+
<div class="menubar" role="menubar" aria-label="Main">
|
|
4
|
+
<div class="menubar-item" role="none">
|
|
5
|
+
<button type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false">File</button>
|
|
6
|
+
<div data-popover data-side="bottom" aria-hidden="true">
|
|
7
|
+
<div role="menu">
|
|
8
|
+
<button type="button" role="menuitem">New tab <span class="kbd">⌘T</span></button>
|
|
9
|
+
<button type="button" role="menuitem">New window <span class="kbd">⌘N</span></button>
|
|
10
|
+
<div role="separator"></div>
|
|
11
|
+
<button type="button" role="menuitem">Print <span class="kbd">⌘P</span></button>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="menubar-item" role="none">
|
|
16
|
+
<button type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false">Edit</button>
|
|
17
|
+
<div data-popover data-side="bottom" aria-hidden="true">
|
|
18
|
+
<div role="menu">
|
|
19
|
+
<button type="button" role="menuitem">Undo <span class="kbd">⌘Z</span></button>
|
|
20
|
+
<button type="button" role="menuitem">Redo <span class="kbd">⇧⌘Z</span></button>
|
|
21
|
+
<div role="separator"></div>
|
|
22
|
+
<button type="button" role="menuitem">Cut</button>
|
|
23
|
+
<button type="button" role="menuitem">Copy</button>
|
|
24
|
+
<button type="button" role="menuitem">Paste</button>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="menubar-item" role="none">
|
|
29
|
+
<button type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false">View</button>
|
|
30
|
+
<div data-popover data-side="bottom" aria-hidden="true">
|
|
31
|
+
<div role="menu">
|
|
32
|
+
<button type="button" role="menuitem">Zoom in</button>
|
|
33
|
+
<button type="button" role="menuitem">Zoom out</button>
|
|
34
|
+
<div role="separator"></div>
|
|
35
|
+
<button type="button" role="menuitemcheckbox" aria-checked="true">
|
|
36
|
+
<span data-slot="indicator">✓</span>
|
|
37
|
+
Show sidebar
|
|
38
|
+
</button>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!-- Default -->
|
|
2
|
+
<div style="display: flex; justify-content: center; min-height: 18rem; padding-top: 1rem">
|
|
3
|
+
<nav class="navigation-menu" aria-label="Main">
|
|
4
|
+
<ul>
|
|
5
|
+
<li>
|
|
6
|
+
<button type="button" aria-expanded="false" aria-controls="nav-products">
|
|
7
|
+
Products
|
|
8
|
+
<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>
|
|
9
|
+
</button>
|
|
10
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="nav-products">
|
|
11
|
+
<ul>
|
|
12
|
+
<li>
|
|
13
|
+
<a href="#">
|
|
14
|
+
<span data-slot="title">Components</span>
|
|
15
|
+
<span data-slot="description">Copy-paste CSS components.</span>
|
|
16
|
+
</a>
|
|
17
|
+
</li>
|
|
18
|
+
<li>
|
|
19
|
+
<a href="#">
|
|
20
|
+
<span data-slot="title">Styles</span>
|
|
21
|
+
<span data-slot="description">Eight visual interpretations.</span>
|
|
22
|
+
</a>
|
|
23
|
+
</li>
|
|
24
|
+
<li>
|
|
25
|
+
<a href="#">
|
|
26
|
+
<span data-slot="title">CLI</span>
|
|
27
|
+
<span data-slot="description">Install only what you use.</span>
|
|
28
|
+
</a>
|
|
29
|
+
</li>
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
</li>
|
|
33
|
+
<li>
|
|
34
|
+
<button type="button" aria-expanded="false" aria-controls="nav-resources">
|
|
35
|
+
Resources
|
|
36
|
+
<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>
|
|
37
|
+
</button>
|
|
38
|
+
<div data-popover data-side="bottom" aria-hidden="true" id="nav-resources">
|
|
39
|
+
<ul>
|
|
40
|
+
<li>
|
|
41
|
+
<a href="#">
|
|
42
|
+
<span data-slot="title">Docs</span>
|
|
43
|
+
<span data-slot="description">Installation and component contracts.</span>
|
|
44
|
+
</a>
|
|
45
|
+
</li>
|
|
46
|
+
<li>
|
|
47
|
+
<a href="#">
|
|
48
|
+
<span data-slot="title">GitHub</span>
|
|
49
|
+
<span data-slot="description">Source and issue tracker.</span>
|
|
50
|
+
</a>
|
|
51
|
+
</li>
|
|
52
|
+
</ul>
|
|
53
|
+
</div>
|
|
54
|
+
</li>
|
|
55
|
+
<li><a href="#">Docs</a></li>
|
|
56
|
+
</ul>
|
|
57
|
+
</nav>
|
|
58
|
+
</div>
|