loseta 0.5.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 (40) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/registry/components/context-menu.css +29 -0
  4. package/registry/components/drawer.css +26 -0
  5. package/registry/components/dropdown-menu.css +1 -84
  6. package/registry/components/hover-card.css +18 -0
  7. package/registry/components/menubar.css +52 -0
  8. package/registry/components/navigation-menu.css +35 -0
  9. package/registry/components/sheet.css +21 -0
  10. package/registry/examples/context-menu.html +10 -0
  11. package/registry/examples/drawer.html +46 -0
  12. package/registry/examples/hover-card.html +13 -0
  13. package/registry/examples/menubar.html +43 -0
  14. package/registry/examples/navigation-menu.html +58 -0
  15. package/registry/examples/sheet.html +42 -0
  16. package/registry/primitives/dialog-shell.css +54 -1
  17. package/registry/primitives/menu.css +87 -0
  18. package/registry/registry.json +266 -2
  19. package/registry/styles/luma/dropdown-menu.css +0 -96
  20. package/registry/styles/luma/primitives/menu.css +104 -0
  21. package/registry/styles/lyra/dropdown-menu.css +0 -96
  22. package/registry/styles/lyra/primitives/menu.css +104 -0
  23. package/registry/styles/maia/dropdown-menu.css +0 -96
  24. package/registry/styles/maia/primitives/menu.css +104 -0
  25. package/registry/styles/mira/dropdown-menu.css +0 -97
  26. package/registry/styles/mira/primitives/menu.css +105 -0
  27. package/registry/styles/nova/context-menu.css +19 -0
  28. package/registry/styles/nova/drawer.css +60 -0
  29. package/registry/styles/nova/dropdown-menu.css +0 -96
  30. package/registry/styles/nova/hover-card.css +22 -0
  31. package/registry/styles/nova/menubar.css +48 -0
  32. package/registry/styles/nova/navigation-menu.css +79 -0
  33. package/registry/styles/nova/primitives/menu.css +104 -0
  34. package/registry/styles/nova/sheet.css +54 -0
  35. package/registry/styles/rhea/dropdown-menu.css +0 -97
  36. package/registry/styles/rhea/primitives/menu.css +105 -0
  37. package/registry/styles/sera/dropdown-menu.css +0 -96
  38. package/registry/styles/sera/primitives/menu.css +104 -0
  39. package/registry/styles/vega/dropdown-menu.css +0 -96
  40. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loseta",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Native CSS component scaffolds with the shadcn feel.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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,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,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,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>
@@ -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>
@@ -0,0 +1,42 @@
1
+ <!-- Right -->
2
+ <button type="button" class="btn" data-variant="outline">
3
+ Open sheet
4
+ </button>
5
+
6
+ <dialog class="sheet" id="demo-sheet" data-side="inline-end" aria-labelledby="sheet-title" aria-describedby="sheet-description">
7
+ <div>
8
+ <header>
9
+ <h2 data-slot="title" id="sheet-title">Edit profile</h2>
10
+ <p data-slot="description" id="sheet-description">Make changes to your profile here.</p>
11
+ </header>
12
+ <section>
13
+ <div class="field">
14
+ <label class="label" for="sheet-name">Name</label>
15
+ <input class="input" id="sheet-name" value="Ada Lovelace">
16
+ </div>
17
+ </section>
18
+ <footer>
19
+ <button type="button" class="btn" data-variant="outline">Cancel</button>
20
+ <button type="button" class="btn">Save changes</button>
21
+ </footer>
22
+ </div>
23
+ </dialog>
24
+
25
+ <!-- Left, small -->
26
+ <button type="button" class="btn" data-variant="outline">
27
+ Open left sheet
28
+ </button>
29
+
30
+ <dialog class="sheet" id="demo-sheet-left" data-side="inline-start" data-size="sm" aria-labelledby="sheet-left-title">
31
+ <div>
32
+ <header>
33
+ <h2 data-slot="title" id="sheet-left-title">Navigation</h2>
34
+ </header>
35
+ <section>
36
+ <p>Use the left sheet for navigation or secondary controls.</p>
37
+ </section>
38
+ <footer>
39
+ <button type="button" class="btn" data-variant="outline">Close</button>
40
+ </footer>
41
+ </div>
42
+ </dialog>
@@ -1,7 +1,9 @@
1
1
  /* Dialog shell */
2
2
  @layer loseta.components {
3
3
  .dialog,
4
- .alert-dialog {
4
+ .alert-dialog,
5
+ .sheet,
6
+ .drawer {
5
7
  background-color: transparent;
6
8
  padding: 0;
7
9
  color: inherit;
@@ -67,5 +69,56 @@
67
69
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
68
70
  transition-duration: 150ms;
69
71
  }
72
+
73
+ &[data-side='inline-start'],
74
+ &[data-side='inline-end'] {
75
+ > * {
76
+ top: 0;
77
+ bottom: 0;
78
+ left: auto;
79
+ right: auto;
80
+ height: 100%;
81
+ max-height: none;
82
+ width: var(--sheet-width, 24rem);
83
+ max-width: 100%;
84
+ translate: 0 0;
85
+ }
86
+ }
87
+
88
+ &[data-side='inline-start'] > * {
89
+ inset-inline-start: 0;
90
+ inset-inline-end: auto;
91
+ }
92
+
93
+ &[data-side='inline-end'] > * {
94
+ inset-inline-end: 0;
95
+ inset-inline-start: auto;
96
+ }
97
+
98
+ &[data-side='block-start'],
99
+ &[data-side='block-end'] {
100
+ > * {
101
+ left: 0;
102
+ right: 0;
103
+ top: 0;
104
+ bottom: 0;
105
+ width: 100%;
106
+ max-width: none;
107
+ height: auto;
108
+ translate: 0 0;
109
+ }
110
+ }
111
+
112
+ &[data-side='block-start'] > * {
113
+ inset-block-start: 0;
114
+ inset-block-end: auto;
115
+ max-height: var(--drawer-height, 80vh);
116
+ }
117
+
118
+ &[data-side='block-end'] > * {
119
+ inset-block-end: 0;
120
+ inset-block-start: auto;
121
+ max-height: var(--drawer-height, 80vh);
122
+ }
70
123
  }
71
124
  }
@@ -0,0 +1,87 @@
1
+ /* Menu primitive */
2
+ @layer loseta.components {
3
+ [role='menu'] {
4
+ display: flex;
5
+ flex-direction: column;
6
+ outline-style: none;
7
+
8
+ @media (forced-colors: active) {
9
+ outline: 2px solid transparent;
10
+ outline-offset: 2px;
11
+ }
12
+ }
13
+
14
+ [role='menu'] :is([role='menuitem'], [role='menuitemcheckbox'], [role='menuitemradio']) {
15
+ position: relative;
16
+ display: flex;
17
+ width: 100%;
18
+ cursor: default;
19
+ align-items: center;
20
+ white-space: normal;
21
+ outline-style: none;
22
+ -webkit-user-select: none;
23
+ user-select: none;
24
+
25
+ @media (forced-colors: active) {
26
+ outline: 2px solid transparent;
27
+ outline-offset: 2px;
28
+ }
29
+
30
+ &:disabled {
31
+ pointer-events: none;
32
+ opacity: 50%;
33
+ }
34
+
35
+ &[aria-disabled='true'] {
36
+ pointer-events: none;
37
+ opacity: 50%;
38
+ }
39
+
40
+ &[aria-hidden='true'] {
41
+ display: none;
42
+ }
43
+
44
+ & svg {
45
+ pointer-events: none;
46
+ flex-shrink: 0;
47
+ }
48
+ }
49
+
50
+ [role='menu'] [role='heading'] {
51
+ display: flex;
52
+ }
53
+
54
+ [role='menu'] [role='separator'] {
55
+ border-style: solid;
56
+ border-width: 0;
57
+ }
58
+
59
+ [role='menu'] :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child) {
60
+ margin-inline-start: auto;
61
+ flex-shrink: 0;
62
+ text-align: end;
63
+ }
64
+
65
+ [role='menu'] [data-slot='shortcut'] {
66
+ padding-inline-start: 2rem;
67
+ }
68
+
69
+ [role='menu'] :is(kbd:last-child, .kbd:last-child):not([data-slot='shortcut']) {
70
+ padding-inline-start: 2rem;
71
+ }
72
+
73
+ [role='menu'] [data-slot='indicator'] {
74
+ pointer-events: none;
75
+ visibility: hidden;
76
+ }
77
+
78
+ [role='menu'] :is([role='menuitemcheckbox'], [role='menuitemradio'])[aria-checked='true'] [data-slot='indicator'] {
79
+ visibility: visible;
80
+ }
81
+
82
+ [role='menu'] [data-rtl-flip] {
83
+ &:where(:dir(rtl), [dir='rtl'], [dir='rtl'] *) {
84
+ rotate: 180deg;
85
+ }
86
+ }
87
+ }