loseta 0.4.0 → 0.6.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.
Files changed (84) hide show
  1. package/README.md +13 -5
  2. package/dist/add-policy.d.ts +15 -0
  3. package/dist/add-policy.js +53 -0
  4. package/dist/add-policy.js.map +1 -0
  5. package/dist/commands/add.d.ts +4 -0
  6. package/dist/commands/add.js +24 -20
  7. package/dist/commands/add.js.map +1 -1
  8. package/dist/commands/list.d.ts +6 -1
  9. package/dist/commands/list.js +23 -5
  10. package/dist/commands/list.js.map +1 -1
  11. package/dist/registry.d.ts +2 -0
  12. package/dist/registry.js +6 -0
  13. package/dist/registry.js.map +1 -1
  14. package/dist/style-switch.js +11 -0
  15. package/dist/style-switch.js.map +1 -1
  16. package/package.json +1 -1
  17. package/registry/components/accordion.css +65 -0
  18. package/registry/components/aspect-ratio.css +25 -0
  19. package/registry/components/avatar.css +54 -0
  20. package/registry/components/breadcrumb.css +57 -0
  21. package/registry/components/context-menu.css +29 -0
  22. package/registry/components/drawer.css +26 -0
  23. package/registry/components/dropdown-menu.css +1 -84
  24. package/registry/components/hover-card.css +18 -0
  25. package/registry/components/menubar.css +52 -0
  26. package/registry/components/navigation-menu.css +35 -0
  27. package/registry/components/pagination.css +49 -0
  28. package/registry/components/progress.css +13 -0
  29. package/registry/components/separator.css +12 -0
  30. package/registry/components/sheet.css +21 -0
  31. package/registry/components/spinner.css +8 -0
  32. package/registry/components/toggle-group.css +17 -0
  33. package/registry/components/toggle.css +31 -0
  34. package/registry/examples/accordion.html +56 -0
  35. package/registry/examples/aspect-ratio.html +9 -0
  36. package/registry/examples/avatar.html +21 -0
  37. package/registry/examples/breadcrumb.html +23 -0
  38. package/registry/examples/context-menu.html +10 -0
  39. package/registry/examples/drawer.html +46 -0
  40. package/registry/examples/hover-card.html +13 -0
  41. package/registry/examples/menubar.html +43 -0
  42. package/registry/examples/navigation-menu.html +58 -0
  43. package/registry/examples/pagination.html +39 -0
  44. package/registry/examples/progress.html +5 -0
  45. package/registry/examples/separator.html +15 -0
  46. package/registry/examples/sheet.html +42 -0
  47. package/registry/examples/spinner.html +12 -0
  48. package/registry/examples/toggle-group.html +13 -0
  49. package/registry/examples/toggle.html +13 -0
  50. package/registry/primitives/dialog-shell.css +54 -1
  51. package/registry/primitives/menu.css +87 -0
  52. package/registry/registry.json +573 -2
  53. package/registry/styles/luma/dropdown-menu.css +0 -96
  54. package/registry/styles/luma/primitives/menu.css +104 -0
  55. package/registry/styles/lyra/dropdown-menu.css +0 -96
  56. package/registry/styles/lyra/primitives/menu.css +104 -0
  57. package/registry/styles/maia/dropdown-menu.css +0 -96
  58. package/registry/styles/maia/primitives/menu.css +104 -0
  59. package/registry/styles/mira/dropdown-menu.css +0 -97
  60. package/registry/styles/mira/primitives/menu.css +105 -0
  61. package/registry/styles/nova/accordion.css +59 -0
  62. package/registry/styles/nova/aspect-ratio.css +6 -0
  63. package/registry/styles/nova/avatar.css +89 -0
  64. package/registry/styles/nova/breadcrumb.css +61 -0
  65. package/registry/styles/nova/context-menu.css +19 -0
  66. package/registry/styles/nova/drawer.css +60 -0
  67. package/registry/styles/nova/dropdown-menu.css +0 -96
  68. package/registry/styles/nova/hover-card.css +22 -0
  69. package/registry/styles/nova/menubar.css +48 -0
  70. package/registry/styles/nova/navigation-menu.css +79 -0
  71. package/registry/styles/nova/pagination.css +46 -0
  72. package/registry/styles/nova/primitives/menu.css +104 -0
  73. package/registry/styles/nova/progress.css +67 -0
  74. package/registry/styles/nova/separator.css +14 -0
  75. package/registry/styles/nova/sheet.css +54 -0
  76. package/registry/styles/nova/spinner.css +35 -0
  77. package/registry/styles/nova/toggle-group.css +48 -0
  78. package/registry/styles/nova/toggle.css +110 -0
  79. package/registry/styles/rhea/dropdown-menu.css +0 -97
  80. package/registry/styles/rhea/primitives/menu.css +105 -0
  81. package/registry/styles/sera/dropdown-menu.css +0 -96
  82. package/registry/styles/sera/primitives/menu.css +104 -0
  83. package/registry/styles/vega/dropdown-menu.css +0 -96
  84. package/registry/styles/vega/primitives/menu.css +104 -0
@@ -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,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,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,13 @@
1
+ /* Progress */
2
+ @layer loseta.components {
3
+ .progress {
4
+ display: block;
5
+ width: 100%;
6
+ appearance: none;
7
+ overflow: hidden;
8
+
9
+ &::-webkit-progress-bar {
10
+ appearance: none;
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,12 @@
1
+ /* Separator */
2
+ @layer loseta.components {
3
+ .separator {
4
+ flex-shrink: 0;
5
+ border-style: solid;
6
+ border-width: 0;
7
+
8
+ &:is([data-orientation='vertical'], [aria-orientation='vertical']) {
9
+ align-self: stretch;
10
+ }
11
+ }
12
+ }
@@ -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,8 @@
1
+ /* Spinner */
2
+ @layer loseta.components {
3
+ .spinner {
4
+ display: inline-block;
5
+ flex-shrink: 0;
6
+ vertical-align: middle;
7
+ }
8
+ }
@@ -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,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,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>