loseta 0.15.0 → 0.16.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 (298) hide show
  1. package/package.json +1 -1
  2. package/registry/components/alert-dialog.css +7 -0
  3. package/registry/components/alert.css +2 -0
  4. package/registry/components/avatar.css +11 -2
  5. package/registry/components/button-group.css +33 -18
  6. package/registry/components/button.css +6 -0
  7. package/registry/components/checkbox.css +17 -2
  8. package/registry/components/command.css +7 -0
  9. package/registry/components/context-menu.css +8 -0
  10. package/registry/components/dialog.css +24 -1
  11. package/registry/components/drawer.css +4 -0
  12. package/registry/components/empty.css +2 -0
  13. package/registry/components/field.css +8 -3
  14. package/registry/components/input-group.css +12 -1
  15. package/registry/components/input-otp.css +6 -0
  16. package/registry/components/input.css +5 -0
  17. package/registry/components/navigation-menu.css +18 -1
  18. package/registry/components/radio.css +19 -4
  19. package/registry/components/sheet.css +10 -0
  20. package/registry/components/sidebar.css +68 -0
  21. package/registry/components/slider.css +1 -1
  22. package/registry/components/switch.css +14 -0
  23. package/registry/components/table.css +4 -4
  24. package/registry/components/textarea.css +6 -0
  25. package/registry/components/toggle-group.css +8 -0
  26. package/registry/components/tooltip.css +106 -78
  27. package/registry/examples/alert-dialog.html +133 -7
  28. package/registry/examples/alert.html +50 -3
  29. package/registry/examples/aspect-ratio.html +5 -0
  30. package/registry/examples/attachment.html +12 -0
  31. package/registry/examples/avatar.html +49 -4
  32. package/registry/examples/badge.html +3 -0
  33. package/registry/examples/bubble.html +5 -0
  34. package/registry/examples/button-group.html +140 -12
  35. package/registry/examples/button.html +60 -15
  36. package/registry/examples/checkbox.html +107 -4
  37. package/registry/examples/code-block.html +5 -0
  38. package/registry/examples/combobox.html +13 -0
  39. package/registry/examples/command.html +322 -1
  40. package/registry/examples/context-menu.html +170 -1
  41. package/registry/examples/dialog.html +166 -5
  42. package/registry/examples/drawer.html +198 -10
  43. package/registry/examples/dropdown-menu.html +259 -2
  44. package/registry/examples/empty.html +107 -1
  45. package/registry/examples/field.html +232 -0
  46. package/registry/examples/input-group.html +101 -5
  47. package/registry/examples/input-otp.html +74 -2
  48. package/registry/examples/input.html +75 -4
  49. package/registry/examples/item.html +12 -0
  50. package/registry/examples/marker.html +6 -0
  51. package/registry/examples/menubar.html +338 -9
  52. package/registry/examples/message.html +16 -0
  53. package/registry/examples/navigation-menu.html +166 -17
  54. package/registry/examples/popover.html +153 -6
  55. package/registry/examples/progress.html +66 -3
  56. package/registry/examples/questionnaire.html +33 -0
  57. package/registry/examples/radio.html +121 -9
  58. package/registry/examples/resizable.html +11 -0
  59. package/registry/examples/scroll-area.html +9 -0
  60. package/registry/examples/separator.html +3 -0
  61. package/registry/examples/sheet.html +205 -7
  62. package/registry/examples/sidebar.html +377 -1
  63. package/registry/examples/slider.html +52 -5
  64. package/registry/examples/spinner.html +3 -0
  65. package/registry/examples/switch.html +68 -0
  66. package/registry/examples/table.html +192 -8
  67. package/registry/examples/textarea.html +33 -3
  68. package/registry/examples/toggle-group.html +72 -12
  69. package/registry/examples/toggle.html +34 -7
  70. package/registry/examples/tooltip.html +99 -2
  71. package/registry/examples/trace.html +13 -1
  72. package/registry/primitives/menu.css +10 -0
  73. package/registry/primitives/popover.css +38 -6
  74. package/registry/registry.json +116 -32
  75. package/registry/styles/luma/accordion.css +1 -1
  76. package/registry/styles/luma/alert-dialog.css +8 -0
  77. package/registry/styles/luma/alert.css +1 -17
  78. package/registry/styles/luma/avatar.css +44 -1
  79. package/registry/styles/luma/button-group.css +5 -17
  80. package/registry/styles/luma/button.css +8 -8
  81. package/registry/styles/luma/checkbox.css +6 -0
  82. package/registry/styles/luma/collapsible.css +1 -1
  83. package/registry/styles/luma/command.css +6 -0
  84. package/registry/styles/luma/drawer.css +8 -0
  85. package/registry/styles/luma/empty.css +2 -4
  86. package/registry/styles/luma/field.css +1 -1
  87. package/registry/styles/luma/input-group.css +14 -2
  88. package/registry/styles/luma/input-otp.css +8 -0
  89. package/registry/styles/luma/input.css +5 -0
  90. package/registry/styles/luma/kbd.css +1 -1
  91. package/registry/styles/luma/label.css +4 -0
  92. package/registry/styles/luma/menubar.css +1 -1
  93. package/registry/styles/luma/navigation-menu.css +11 -0
  94. package/registry/styles/luma/primitives/menu.css +8 -4
  95. package/registry/styles/luma/progress.css +26 -1
  96. package/registry/styles/luma/radio.css +3 -1
  97. package/registry/styles/luma/sheet.css +20 -0
  98. package/registry/styles/luma/sidebar.css +114 -1
  99. package/registry/styles/luma/switch.css +39 -10
  100. package/registry/styles/luma/table.css +6 -2
  101. package/registry/styles/luma/textarea.css +5 -0
  102. package/registry/styles/luma/toggle-group.css +11 -0
  103. package/registry/styles/lyra/accordion.css +1 -1
  104. package/registry/styles/lyra/alert-dialog.css +8 -0
  105. package/registry/styles/lyra/alert.css +1 -17
  106. package/registry/styles/lyra/avatar.css +44 -1
  107. package/registry/styles/lyra/button-group.css +5 -17
  108. package/registry/styles/lyra/button.css +8 -8
  109. package/registry/styles/lyra/checkbox.css +6 -0
  110. package/registry/styles/lyra/collapsible.css +1 -1
  111. package/registry/styles/lyra/command.css +6 -0
  112. package/registry/styles/lyra/drawer.css +8 -0
  113. package/registry/styles/lyra/empty.css +2 -4
  114. package/registry/styles/lyra/field.css +1 -1
  115. package/registry/styles/lyra/input-group.css +15 -3
  116. package/registry/styles/lyra/input-otp.css +8 -0
  117. package/registry/styles/lyra/input.css +5 -0
  118. package/registry/styles/lyra/kbd.css +1 -1
  119. package/registry/styles/lyra/label.css +4 -0
  120. package/registry/styles/lyra/menubar.css +1 -1
  121. package/registry/styles/lyra/navigation-menu.css +11 -0
  122. package/registry/styles/lyra/primitives/menu.css +8 -4
  123. package/registry/styles/lyra/progress.css +26 -1
  124. package/registry/styles/lyra/radio.css +3 -1
  125. package/registry/styles/lyra/sheet.css +20 -0
  126. package/registry/styles/lyra/sidebar.css +114 -1
  127. package/registry/styles/lyra/switch.css +37 -8
  128. package/registry/styles/lyra/table.css +6 -2
  129. package/registry/styles/lyra/textarea.css +5 -1
  130. package/registry/styles/maia/accordion.css +1 -1
  131. package/registry/styles/maia/alert-dialog.css +8 -0
  132. package/registry/styles/maia/alert.css +1 -17
  133. package/registry/styles/maia/avatar.css +44 -1
  134. package/registry/styles/maia/button-group.css +5 -17
  135. package/registry/styles/maia/button.css +8 -8
  136. package/registry/styles/maia/checkbox.css +6 -0
  137. package/registry/styles/maia/collapsible.css +1 -1
  138. package/registry/styles/maia/command.css +6 -0
  139. package/registry/styles/maia/drawer.css +8 -0
  140. package/registry/styles/maia/empty.css +2 -4
  141. package/registry/styles/maia/field.css +1 -1
  142. package/registry/styles/maia/input-group.css +14 -2
  143. package/registry/styles/maia/input-otp.css +8 -0
  144. package/registry/styles/maia/input.css +5 -0
  145. package/registry/styles/maia/kbd.css +1 -1
  146. package/registry/styles/maia/label.css +4 -0
  147. package/registry/styles/maia/menubar.css +1 -1
  148. package/registry/styles/maia/navigation-menu.css +11 -0
  149. package/registry/styles/maia/primitives/menu.css +8 -4
  150. package/registry/styles/maia/progress.css +26 -1
  151. package/registry/styles/maia/radio.css +3 -1
  152. package/registry/styles/maia/sheet.css +20 -0
  153. package/registry/styles/maia/sidebar.css +114 -1
  154. package/registry/styles/maia/switch.css +37 -8
  155. package/registry/styles/maia/table.css +6 -2
  156. package/registry/styles/maia/textarea.css +5 -0
  157. package/registry/styles/maia/toggle-group.css +11 -0
  158. package/registry/styles/mira/accordion.css +1 -1
  159. package/registry/styles/mira/alert-dialog.css +8 -0
  160. package/registry/styles/mira/alert.css +1 -17
  161. package/registry/styles/mira/avatar.css +44 -1
  162. package/registry/styles/mira/button-group.css +5 -17
  163. package/registry/styles/mira/button.css +8 -8
  164. package/registry/styles/mira/checkbox.css +6 -0
  165. package/registry/styles/mira/collapsible.css +1 -1
  166. package/registry/styles/mira/command.css +6 -0
  167. package/registry/styles/mira/drawer.css +8 -0
  168. package/registry/styles/mira/empty.css +2 -4
  169. package/registry/styles/mira/field.css +1 -1
  170. package/registry/styles/mira/input-group.css +14 -2
  171. package/registry/styles/mira/input-otp.css +8 -0
  172. package/registry/styles/mira/input.css +7 -2
  173. package/registry/styles/mira/kbd.css +1 -1
  174. package/registry/styles/mira/label.css +4 -0
  175. package/registry/styles/mira/menubar.css +1 -1
  176. package/registry/styles/mira/navigation-menu.css +11 -0
  177. package/registry/styles/mira/primitives/menu.css +8 -4
  178. package/registry/styles/mira/progress.css +26 -1
  179. package/registry/styles/mira/radio.css +3 -1
  180. package/registry/styles/mira/sheet.css +20 -0
  181. package/registry/styles/mira/sidebar.css +113 -0
  182. package/registry/styles/mira/switch.css +39 -10
  183. package/registry/styles/mira/table.css +7 -3
  184. package/registry/styles/mira/textarea.css +6 -2
  185. package/registry/styles/mira/toggle-group.css +11 -0
  186. package/registry/styles/nova/accordion.css +1 -1
  187. package/registry/styles/nova/alert-dialog.css +8 -0
  188. package/registry/styles/nova/alert.css +1 -17
  189. package/registry/styles/nova/avatar.css +44 -1
  190. package/registry/styles/nova/button-group.css +5 -17
  191. package/registry/styles/nova/button.css +8 -8
  192. package/registry/styles/nova/checkbox.css +6 -0
  193. package/registry/styles/nova/collapsible.css +1 -1
  194. package/registry/styles/nova/command.css +8 -0
  195. package/registry/styles/nova/drawer.css +8 -0
  196. package/registry/styles/nova/empty.css +2 -4
  197. package/registry/styles/nova/field.css +1 -1
  198. package/registry/styles/nova/input-group.css +15 -3
  199. package/registry/styles/nova/input-otp.css +8 -0
  200. package/registry/styles/nova/input.css +5 -0
  201. package/registry/styles/nova/kbd.css +1 -1
  202. package/registry/styles/nova/label.css +4 -0
  203. package/registry/styles/nova/menubar.css +1 -1
  204. package/registry/styles/nova/navigation-menu.css +11 -0
  205. package/registry/styles/nova/primitives/menu.css +8 -4
  206. package/registry/styles/nova/progress.css +26 -1
  207. package/registry/styles/nova/radio.css +3 -1
  208. package/registry/styles/nova/sheet.css +20 -0
  209. package/registry/styles/nova/sidebar.css +114 -1
  210. package/registry/styles/nova/switch.css +37 -8
  211. package/registry/styles/nova/table.css +6 -2
  212. package/registry/styles/nova/textarea.css +5 -0
  213. package/registry/styles/nova/toggle.css +2 -0
  214. package/registry/styles/rhea/accordion.css +1 -1
  215. package/registry/styles/rhea/alert-dialog.css +8 -0
  216. package/registry/styles/rhea/alert.css +1 -17
  217. package/registry/styles/rhea/avatar.css +44 -1
  218. package/registry/styles/rhea/button-group.css +5 -17
  219. package/registry/styles/rhea/button.css +8 -8
  220. package/registry/styles/rhea/checkbox.css +6 -0
  221. package/registry/styles/rhea/collapsible.css +1 -1
  222. package/registry/styles/rhea/command.css +6 -0
  223. package/registry/styles/rhea/drawer.css +8 -0
  224. package/registry/styles/rhea/empty.css +2 -4
  225. package/registry/styles/rhea/field.css +1 -1
  226. package/registry/styles/rhea/input-group.css +15 -3
  227. package/registry/styles/rhea/input-otp.css +8 -0
  228. package/registry/styles/rhea/input.css +5 -0
  229. package/registry/styles/rhea/kbd.css +1 -1
  230. package/registry/styles/rhea/label.css +4 -0
  231. package/registry/styles/rhea/menubar.css +1 -1
  232. package/registry/styles/rhea/navigation-menu.css +11 -0
  233. package/registry/styles/rhea/primitives/menu.css +8 -4
  234. package/registry/styles/rhea/primitives/popover.css +1 -1
  235. package/registry/styles/rhea/progress.css +25 -0
  236. package/registry/styles/rhea/radio.css +3 -1
  237. package/registry/styles/rhea/sheet.css +20 -0
  238. package/registry/styles/rhea/sidebar.css +114 -1
  239. package/registry/styles/rhea/switch.css +39 -10
  240. package/registry/styles/rhea/table.css +6 -2
  241. package/registry/styles/rhea/textarea.css +5 -0
  242. package/registry/styles/rhea/toggle-group.css +11 -0
  243. package/registry/styles/sera/accordion.css +1 -1
  244. package/registry/styles/sera/alert-dialog.css +8 -0
  245. package/registry/styles/sera/alert.css +1 -17
  246. package/registry/styles/sera/avatar.css +44 -1
  247. package/registry/styles/sera/button-group.css +5 -17
  248. package/registry/styles/sera/button.css +8 -8
  249. package/registry/styles/sera/checkbox.css +6 -0
  250. package/registry/styles/sera/collapsible.css +1 -1
  251. package/registry/styles/sera/command.css +6 -0
  252. package/registry/styles/sera/drawer.css +8 -0
  253. package/registry/styles/sera/empty.css +2 -4
  254. package/registry/styles/sera/field.css +1 -1
  255. package/registry/styles/sera/input-group.css +14 -2
  256. package/registry/styles/sera/input-otp.css +8 -0
  257. package/registry/styles/sera/input.css +5 -0
  258. package/registry/styles/sera/kbd.css +1 -1
  259. package/registry/styles/sera/label.css +4 -0
  260. package/registry/styles/sera/menubar.css +1 -1
  261. package/registry/styles/sera/navigation-menu.css +11 -0
  262. package/registry/styles/sera/primitives/menu.css +8 -4
  263. package/registry/styles/sera/progress.css +26 -1
  264. package/registry/styles/sera/radio.css +3 -1
  265. package/registry/styles/sera/sheet.css +20 -0
  266. package/registry/styles/sera/sidebar.css +117 -0
  267. package/registry/styles/sera/switch.css +37 -8
  268. package/registry/styles/sera/table.css +6 -2
  269. package/registry/styles/sera/textarea.css +5 -0
  270. package/registry/styles/sera/toggle-group.css +10 -0
  271. package/registry/styles/vega/accordion.css +1 -1
  272. package/registry/styles/vega/alert-dialog.css +8 -0
  273. package/registry/styles/vega/alert.css +1 -17
  274. package/registry/styles/vega/avatar.css +44 -1
  275. package/registry/styles/vega/button-group.css +5 -17
  276. package/registry/styles/vega/button.css +8 -8
  277. package/registry/styles/vega/checkbox.css +6 -0
  278. package/registry/styles/vega/collapsible.css +1 -1
  279. package/registry/styles/vega/command.css +6 -0
  280. package/registry/styles/vega/drawer.css +8 -0
  281. package/registry/styles/vega/empty.css +2 -4
  282. package/registry/styles/vega/field.css +1 -1
  283. package/registry/styles/vega/input-group.css +14 -2
  284. package/registry/styles/vega/input-otp.css +8 -0
  285. package/registry/styles/vega/input.css +5 -0
  286. package/registry/styles/vega/kbd.css +1 -1
  287. package/registry/styles/vega/label.css +4 -0
  288. package/registry/styles/vega/menubar.css +1 -1
  289. package/registry/styles/vega/navigation-menu.css +11 -0
  290. package/registry/styles/vega/primitives/menu.css +8 -4
  291. package/registry/styles/vega/progress.css +26 -1
  292. package/registry/styles/vega/radio.css +3 -1
  293. package/registry/styles/vega/sheet.css +20 -0
  294. package/registry/styles/vega/sidebar.css +114 -1
  295. package/registry/styles/vega/switch.css +37 -8
  296. package/registry/styles/vega/table.css +6 -2
  297. package/registry/styles/vega/textarea.css +5 -0
  298. package/registry/styles/vega/toggle-group.css +11 -0
@@ -1,3 +1,49 @@
1
+ <!-- Default -->
2
+ <div class="command" style="width: 100%; max-width: 24rem">
3
+ <div class="input-group" role="group" aria-label="Search commands">
4
+ <input class="input" type="text" placeholder="Type a command..." aria-label="Search commands">
5
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
6
+ </div>
7
+ <div role="listbox" aria-label="Commands">
8
+ <div role="group" aria-labelledby="demo-command-default-suggestions">
9
+ <div data-slot="label" id="demo-command-default-suggestions">Suggestions</div>
10
+ <div role="option">
11
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
12
+ <span data-slot="text">Documents</span>
13
+ <span data-slot="shortcut">⌘D</span>
14
+ </div>
15
+ <div role="option">
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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
17
+ <span data-slot="text">Folders</span>
18
+ </div>
19
+ <div role="option">
20
+ <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="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
21
+ <span data-slot="text">Messages</span>
22
+ </div>
23
+ </div>
24
+ <div role="separator" aria-hidden="true"></div>
25
+ <div role="group" aria-labelledby="demo-command-default-account">
26
+ <div data-slot="label" id="demo-command-default-account">Account</div>
27
+ <div role="option">
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="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
29
+ <span data-slot="text">Profile</span>
30
+ <span data-slot="shortcut">⌘P</span>
31
+ </div>
32
+ <div role="option">
33
+ <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"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg>
34
+ <span data-slot="text">Billing</span>
35
+ <span data-slot="shortcut">⌘B</span>
36
+ </div>
37
+ <div role="option">
38
+ <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="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
39
+ <span data-slot="text">Settings</span>
40
+ <span data-slot="shortcut">⌘S</span>
41
+ </div>
42
+ </div>
43
+ <div data-slot="empty" hidden>No commands found.</div>
44
+ </div>
45
+ </div>
46
+
1
47
  <!-- Dialog -->
2
48
  <button type="button" class="btn" data-variant="outline">
3
49
  Open command
@@ -12,33 +58,308 @@
12
58
  <section>
13
59
  <div class="command">
14
60
  <div class="input-group" role="group" aria-label="Search commands">
15
- <span data-slot="addon" data-align="inline-start" 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"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
16
61
  <input class="input" type="text" placeholder="Type a command..." aria-label="Search commands" autofocus>
62
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
17
63
  </div>
18
64
  <div role="listbox" aria-label="Commands">
19
65
  <div role="group" aria-labelledby="command-group-navigation">
20
66
  <div data-slot="label" id="command-group-navigation">Navigation</div>
21
67
  <div role="option">
68
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
22
69
  <span data-slot="text">Go home</span>
23
70
  <span data-slot="shortcut">⌘H</span>
24
71
  </div>
25
72
  <div role="option">
73
+ <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="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
74
+ <span data-slot="text">Open inbox</span>
75
+ <span data-slot="shortcut">⌘I</span>
76
+ </div>
77
+ <div role="option">
78
+ <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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
26
79
  <span data-slot="text">Open settings</span>
27
80
  <span data-slot="shortcut">⌘,</span>
28
81
  </div>
29
82
  </div>
83
+ <div role="separator" aria-hidden="true"></div>
30
84
  <div role="group" aria-labelledby="command-group-actions">
31
85
  <div data-slot="label" id="command-group-actions">Actions</div>
32
86
  <div role="option">
87
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
33
88
  <span data-slot="text">Copy link</span>
34
89
  </div>
35
90
  <div role="option">
91
+ <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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
36
92
  <span data-slot="text">Download</span>
37
93
  </div>
38
94
  </div>
95
+ <div role="separator" aria-hidden="true"></div>
96
+ <div role="group" aria-labelledby="command-group-account">
97
+ <div data-slot="label" id="command-group-account">Account</div>
98
+ <div role="option">
99
+ <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="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
100
+ <span data-slot="text">Profile</span>
101
+ <span data-slot="shortcut">⌘P</span>
102
+ </div>
103
+ <div role="option">
104
+ <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"><rect width="20" height="14" x="2" y="5" rx="2"/><line x1="2" x2="22" y1="10" y2="10"/></svg>
105
+ <span data-slot="text">Billing</span>
106
+ <span data-slot="shortcut">⌘B</span>
107
+ </div>
108
+ <div role="option">
109
+ <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="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
110
+ <span data-slot="text">Settings</span>
111
+ <span data-slot="shortcut">⌘S</span>
112
+ </div>
113
+ </div>
114
+ <div data-slot="empty" hidden>No commands found.</div>
115
+ </div>
116
+ </div>
117
+ </section>
118
+ </div>
119
+ </dialog>
120
+
121
+ <!-- Shortcuts -->
122
+ <button type="button" class="btn" data-variant="outline">
123
+ Open shortcuts
124
+ </button>
125
+
126
+ <dialog class="dialog" id="demo-command-shortcuts" aria-labelledby="command-shortcuts-title" aria-describedby="command-shortcuts-description">
127
+ <div>
128
+ <header>
129
+ <h2 data-slot="title" id="command-shortcuts-title">Keyboard shortcuts</h2>
130
+ <p data-slot="description" id="command-shortcuts-description">Jump to a command without leaving the keyboard.</p>
131
+ </header>
132
+ <section>
133
+ <div class="command">
134
+ <div class="input-group" role="group" aria-label="Search shortcuts">
135
+ <input class="input" type="text" placeholder="Search shortcuts..." aria-label="Search shortcuts" autofocus>
136
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
137
+ </div>
138
+ <div role="listbox" aria-label="Shortcuts">
139
+ <div role="group" aria-labelledby="command-shortcuts-navigation">
140
+ <div data-slot="label" id="command-shortcuts-navigation">Navigation</div>
141
+ <div role="option">
142
+ <span data-slot="text">Go home</span>
143
+ <span data-slot="shortcut">⌘H</span>
144
+ </div>
145
+ <div role="option">
146
+ <span data-slot="text">Open inbox</span>
147
+ <span data-slot="shortcut">⌘I</span>
148
+ </div>
149
+ <div role="option">
150
+ <span data-slot="text">Open documents</span>
151
+ <span data-slot="shortcut">⌘D</span>
152
+ </div>
153
+ </div>
154
+ <div role="separator" aria-hidden="true"></div>
155
+ <div role="group" aria-labelledby="command-shortcuts-editing">
156
+ <div data-slot="label" id="command-shortcuts-editing">Editing</div>
157
+ <div role="option">
158
+ <span data-slot="text">New file</span>
159
+ <span data-slot="shortcut">⌘N</span>
160
+ </div>
161
+ <div role="option">
162
+ <span data-slot="text">Copy</span>
163
+ <span data-slot="shortcut">⌘C</span>
164
+ </div>
165
+ <div role="option">
166
+ <span data-slot="text">Paste</span>
167
+ <span data-slot="shortcut">⌘V</span>
168
+ </div>
169
+ <div role="option">
170
+ <span data-slot="text">Select all</span>
171
+ <span data-slot="shortcut">⌘A</span>
172
+ </div>
173
+ </div>
174
+ <div data-slot="empty" hidden>No shortcuts found.</div>
175
+ </div>
176
+ </div>
177
+ </section>
178
+ </div>
179
+ </dialog>
180
+
181
+ <!-- Scrollable -->
182
+ <button type="button" class="btn" data-variant="outline">
183
+ Open all commands
184
+ </button>
185
+
186
+ <dialog class="dialog" id="demo-command-scrollable" aria-labelledby="command-scrollable-title" aria-describedby="command-scrollable-description">
187
+ <div>
188
+ <header>
189
+ <h2 data-slot="title" id="command-scrollable-title">All commands</h2>
190
+ <p data-slot="description" id="command-scrollable-description">The list scrolls when the commands exceed its height.</p>
191
+ </header>
192
+ <section>
193
+ <div class="command">
194
+ <div class="input-group" role="group" aria-label="Search commands">
195
+ <input class="input" type="text" placeholder="Type a command..." aria-label="Search commands" autofocus>
196
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
197
+ </div>
198
+ <div role="listbox" aria-label="Commands">
199
+ <div role="group" aria-labelledby="command-scrollable-navigation">
200
+ <div data-slot="label" id="command-scrollable-navigation">Navigation</div>
201
+ <div role="option"><span data-slot="text">Go home</span><span data-slot="shortcut">⌘H</span></div>
202
+ <div role="option"><span data-slot="text">Open inbox</span><span data-slot="shortcut">⌘I</span></div>
203
+ <div role="option"><span data-slot="text">Open documents</span><span data-slot="shortcut">⌘D</span></div>
204
+ <div role="option"><span data-slot="text">Open folders</span><span data-slot="shortcut">⌘F</span></div>
205
+ <div role="option"><span data-slot="text">Open messages</span><span data-slot="shortcut">⌘M</span></div>
206
+ </div>
207
+ <div role="separator" aria-hidden="true"></div>
208
+ <div role="group" aria-labelledby="command-scrollable-actions">
209
+ <div data-slot="label" id="command-scrollable-actions">Actions</div>
210
+ <div role="option"><span data-slot="text">New file</span><span data-slot="shortcut">⌘N</span></div>
211
+ <div role="option"><span data-slot="text">New folder</span><span data-slot="shortcut">⇧⌘N</span></div>
212
+ <div role="option"><span data-slot="text">Copy</span><span data-slot="shortcut">⌘C</span></div>
213
+ <div role="option"><span data-slot="text">Cut</span><span data-slot="shortcut">⌘X</span></div>
214
+ <div role="option"><span data-slot="text">Paste</span><span data-slot="shortcut">⌘V</span></div>
215
+ <div role="option"><span data-slot="text">Delete</span><span data-slot="shortcut">⌫</span></div>
216
+ </div>
217
+ <div role="separator" aria-hidden="true"></div>
218
+ <div role="group" aria-labelledby="command-scrollable-view">
219
+ <div data-slot="label" id="command-scrollable-view">View</div>
220
+ <div role="option"><span data-slot="text">Grid view</span></div>
221
+ <div role="option"><span data-slot="text">List view</span></div>
222
+ <div role="option"><span data-slot="text">Zoom in</span><span data-slot="shortcut">⌘+</span></div>
223
+ <div role="option"><span data-slot="text">Zoom out</span><span data-slot="shortcut">⌘-</span></div>
224
+ </div>
225
+ <div role="separator" aria-hidden="true"></div>
226
+ <div role="group" aria-labelledby="command-scrollable-account">
227
+ <div data-slot="label" id="command-scrollable-account">Account</div>
228
+ <div role="option"><span data-slot="text">Profile</span><span data-slot="shortcut">⌘P</span></div>
229
+ <div role="option"><span data-slot="text">Billing</span><span data-slot="shortcut">⌘B</span></div>
230
+ <div role="option"><span data-slot="text">Notifications</span></div>
231
+ <div role="option"><span data-slot="text">Help and support</span></div>
232
+ </div>
39
233
  <div data-slot="empty" hidden>No commands found.</div>
40
234
  </div>
41
235
  </div>
42
236
  </section>
43
237
  </div>
44
238
  </dialog>
239
+
240
+ <!-- Card -->
241
+ <div class="card" data-size="sm" style="width: 100%; max-width: 24rem">
242
+ <header>
243
+ <h2 data-slot="title">Quick actions</h2>
244
+ <p data-slot="description">Search the workspace from this card.</p>
245
+ </header>
246
+ <section>
247
+ <div class="command">
248
+ <div class="input-group" role="group" aria-label="Search commands">
249
+ <input class="input" type="text" placeholder="Type a command..." aria-label="Search commands">
250
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
251
+ </div>
252
+ <div role="listbox" aria-label="Commands">
253
+ <div role="group" aria-labelledby="command-card-files">
254
+ <div data-slot="label" id="command-card-files">Files</div>
255
+ <div role="option">
256
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
257
+ <span data-slot="text">Documents</span>
258
+ <span data-slot="shortcut">⌘D</span>
259
+ </div>
260
+ <div role="option">
261
+ <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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
262
+ <span data-slot="text">Folders</span>
263
+ </div>
264
+ </div>
265
+ <div role="separator" aria-hidden="true"></div>
266
+ <div role="group" aria-labelledby="command-card-account">
267
+ <div data-slot="label" id="command-card-account">Account</div>
268
+ <div role="option">
269
+ <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="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
270
+ <span data-slot="text">Profile</span>
271
+ <span data-slot="shortcut">⌘P</span>
272
+ </div>
273
+ <div role="option">
274
+ <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="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
275
+ <span data-slot="text">Settings</span>
276
+ <span data-slot="shortcut">⌘S</span>
277
+ </div>
278
+ </div>
279
+ <div data-slot="empty" hidden>No commands found.</div>
280
+ </div>
281
+ </div>
282
+ </section>
283
+ </div>
284
+
285
+ <!-- Popover -->
286
+ <div style="display: flex; align-items: flex-start; justify-content: center; min-height: 20rem">
287
+ <div class="popover">
288
+ <button type="button" class="btn" data-variant="outline" aria-haspopup="dialog" aria-expanded="false" aria-controls="demo-command-popover-panel">
289
+ Open command menu
290
+ </button>
291
+ <div data-popover data-side="bottom" data-align="start" id="demo-command-popover-panel" role="dialog" tabindex="-1" aria-labelledby="demo-command-popover-title" aria-hidden="true">
292
+ <header data-slot="header">
293
+ <h3 data-slot="title" id="demo-command-popover-title">Commands</h3>
294
+ </header>
295
+ <div class="command">
296
+ <div class="input-group" role="group" aria-label="Search commands">
297
+ <input class="input" type="text" placeholder="Type a command..." aria-label="Search commands">
298
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
299
+ </div>
300
+ <div role="listbox" aria-label="Commands">
301
+ <div role="group" aria-labelledby="command-popover-files">
302
+ <div data-slot="label" id="command-popover-files">Files</div>
303
+ <div role="option">
304
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
305
+ <span data-slot="text">Documents</span>
306
+ </div>
307
+ <div role="option">
308
+ <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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
309
+ <span data-slot="text">Folders</span>
310
+ </div>
311
+ </div>
312
+ <div role="separator" aria-hidden="true"></div>
313
+ <div role="group" aria-labelledby="command-popover-account">
314
+ <div data-slot="label" id="command-popover-account">Account</div>
315
+ <div role="option">
316
+ <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="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
317
+ <span data-slot="text">Settings</span>
318
+ <span data-slot="shortcut">⌘S</span>
319
+ </div>
320
+ </div>
321
+ <div data-slot="empty" hidden>No commands found.</div>
322
+ </div>
323
+ </div>
324
+ </div>
325
+ </div>
326
+ </div>
327
+
328
+ <!-- Right-to-left -->
329
+ <div dir="rtl" lang="ar" style="width: 100%; max-width: 24rem">
330
+ <div class="command">
331
+ <div class="input-group" role="group" aria-label="ابحث عن الأوامر">
332
+ <input class="input" type="text" placeholder="اكتب أمرًا..." aria-label="ابحث عن الأوامر">
333
+ <span data-slot="addon" data-align="inline-start" 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="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/></svg></span>
334
+ </div>
335
+ <div role="listbox" aria-label="الأوامر">
336
+ <div role="group" aria-labelledby="command-rtl-suggestions">
337
+ <div data-slot="label" id="command-rtl-suggestions">اقتراحات</div>
338
+ <div role="option">
339
+ <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 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg>
340
+ <span data-slot="text">المستندات</span>
341
+ <span data-slot="shortcut">⌘D</span>
342
+ </div>
343
+ <div role="option">
344
+ <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="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/></svg>
345
+ <span data-slot="text">المجلدات</span>
346
+ </div>
347
+ </div>
348
+ <div role="separator" aria-hidden="true"></div>
349
+ <div role="group" aria-labelledby="command-rtl-account">
350
+ <div data-slot="label" id="command-rtl-account">الحساب</div>
351
+ <div role="option">
352
+ <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="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
353
+ <span data-slot="text">الملف الشخصي</span>
354
+ <span data-slot="shortcut">⌘P</span>
355
+ </div>
356
+ <div role="option">
357
+ <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="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>
358
+ <span data-slot="text">الإعدادات</span>
359
+ <span data-slot="shortcut">⌘S</span>
360
+ </div>
361
+ </div>
362
+ <div data-slot="empty" hidden>لا توجد نتائج.</div>
363
+ </div>
364
+ </div>
365
+ </div>
@@ -4,7 +4,176 @@
4
4
  <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
5
5
  <button type="button" role="menuitem">Profile</button>
6
6
  <button type="button" role="menuitem">Billing</button>
7
+ <button type="button" role="menuitem">Team</button>
8
+ <button type="button" role="menuitem">Subscription</button>
9
+ </div>
10
+ </div>
11
+
12
+ <!-- Submenu -->
13
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
14
+ <p>Right-click anywhere in this area.</p>
15
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
16
+ <button type="button" role="menuitem">Copy <span data-slot="shortcut">⌘C</span></button>
17
+ <button type="button" role="menuitem">Cut <span data-slot="shortcut">⌘X</span></button>
18
+ <div role="none">
19
+ <button type="button" role="menuitem" aria-haspopup="menu" aria-expanded="false" aria-controls="demo-context-submenu-more">
20
+ More tools
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" data-rtl-flip><path d="m9 18 6-6-6-6"/></svg>
22
+ </button>
23
+ <div data-popover data-side="inline-end" id="demo-context-submenu-more" aria-hidden="true">
24
+ <div role="menu">
25
+ <button type="button" role="menuitem">Save page...</button>
26
+ <button type="button" role="menuitem">Create shortcut...</button>
27
+ <button type="button" role="menuitem">Name window...</button>
28
+ <div role="separator"></div>
29
+ <button type="button" role="menuitem">Developer tools</button>
30
+ <div role="separator"></div>
31
+ <button type="button" role="menuitem" data-variant="destructive">Delete</button>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+
38
+ <!-- Shortcuts -->
39
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
40
+ <p>Right-click anywhere in this area.</p>
41
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
42
+ <button type="button" role="menuitem">Back <span data-slot="shortcut">⌘[</span></button>
43
+ <button type="button" role="menuitem" disabled>Forward <span data-slot="shortcut">⌘]</span></button>
44
+ <button type="button" role="menuitem">Reload <span data-slot="shortcut">⌘R</span></button>
45
+ <div role="separator"></div>
46
+ <button type="button" role="menuitem">Save <span data-slot="shortcut">⌘S</span></button>
47
+ <button type="button" role="menuitem">Save as... <span data-slot="shortcut">⇧⌘S</span></button>
48
+ </div>
49
+ </div>
50
+
51
+ <!-- Groups -->
52
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
53
+ <p>Right-click anywhere in this area.</p>
54
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
55
+ <div role="group" aria-label="File">
56
+ <div role="heading" aria-level="2">File</div>
57
+ <button type="button" role="menuitem">New file <span data-slot="shortcut">⌘N</span></button>
58
+ <button type="button" role="menuitem">Open file <span data-slot="shortcut">⌘O</span></button>
59
+ <button type="button" role="menuitem">Save <span data-slot="shortcut">⌘S</span></button>
60
+ </div>
61
+ <div role="separator"></div>
62
+ <div role="group" aria-label="Edit">
63
+ <div role="heading" aria-level="2">Edit</div>
64
+ <button type="button" role="menuitem">Undo <span data-slot="shortcut">⌘Z</span></button>
65
+ <button type="button" role="menuitem">Redo <span data-slot="shortcut">⇧⌘Z</span></button>
66
+ </div>
67
+ <div role="separator"></div>
68
+ <div role="group" aria-label="Clipboard">
69
+ <button type="button" role="menuitem">Cut <span data-slot="shortcut">⌘X</span></button>
70
+ <button type="button" role="menuitem">Copy <span data-slot="shortcut">⌘C</span></button>
71
+ <button type="button" role="menuitem">Paste <span data-slot="shortcut">⌘V</span></button>
72
+ </div>
73
+ <div role="separator"></div>
74
+ <button type="button" role="menuitem" data-variant="destructive">Delete <span data-slot="shortcut">⌫</span></button>
75
+ </div>
76
+ </div>
77
+
78
+ <!-- Icons -->
79
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
80
+ <p>Right-click anywhere in this area.</p>
81
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
82
+ <button type="button" role="menuitem"><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> Copy</button>
83
+ <button type="button" role="menuitem"><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="6" cy="6" r="3"/><path d="M8.12 8.12 12 12"/><path d="M20 4 8.12 15.88"/><circle cx="6" cy="18" r="3"/><path d="M14.8 14.8 20 20"/></svg> Cut</button>
84
+ <button type="button" role="menuitem"><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"><rect width="8" height="4" x="8" y="2" rx="1" ry="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/><path d="M12 11h4"/><path d="M12 16h4"/><path d="M8 11h.01"/><path d="M8 16h.01"/></svg> Paste</button>
85
+ <div role="separator"></div>
86
+ <button type="button" role="menuitem" data-variant="destructive"><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="M3 6h18"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg> Delete</button>
87
+ </div>
88
+ </div>
89
+
90
+ <!-- Checkboxes -->
91
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
92
+ <p>Right-click anywhere in this area.</p>
93
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
94
+ <button type="button" role="menuitemcheckbox" aria-checked="true">
95
+ Show bookmarks bar
96
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
97
+ </button>
98
+ <button type="button" role="menuitemcheckbox" aria-checked="false">
99
+ Show full URLs
100
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
101
+ </button>
102
+ <button type="button" role="menuitemcheckbox" aria-checked="true">
103
+ Show developer tools
104
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
105
+ </button>
106
+ </div>
107
+ </div>
108
+
109
+ <!-- Radio -->
110
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
111
+ <p>Right-click anywhere in this area.</p>
112
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
113
+ <div role="group" aria-label="People">
114
+ <div role="heading" aria-level="2">People</div>
115
+ <button type="button" role="menuitemradio" aria-checked="true">
116
+ Pedro Duarte
117
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
118
+ </button>
119
+ <button type="button" role="menuitemradio" aria-checked="false">
120
+ Colm Tuite
121
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
122
+ </button>
123
+ </div>
124
+ <div role="separator"></div>
125
+ <div role="group" aria-label="Theme">
126
+ <div role="heading" aria-level="2">Theme</div>
127
+ <button type="button" role="menuitemradio" aria-checked="true">
128
+ Light
129
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
130
+ </button>
131
+ <button type="button" role="menuitemradio" aria-checked="false">
132
+ Dark
133
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
134
+ </button>
135
+ <button type="button" role="menuitemradio" aria-checked="false">
136
+ System
137
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
138
+ </button>
139
+ </div>
140
+ </div>
141
+ </div>
142
+
143
+ <!-- Destructive -->
144
+ <div style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
145
+ <p>Right-click anywhere in this area.</p>
146
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
147
+ <button type="button" role="menuitem"><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="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/><path d="m15 5 4 4"/></svg> Edit</button>
148
+ <button type="button" role="menuitem"><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="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"/><polyline points="16 6 12 2 8 6"/><line x1="12" x2="12" y1="2" y2="15"/></svg> Share</button>
149
+ <div role="separator"></div>
150
+ <button type="button" role="menuitem" data-variant="destructive"><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="M3 6h18"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/></svg> Delete</button>
151
+ </div>
152
+ </div>
153
+
154
+ <!-- Right-to-left -->
155
+ <div dir="rtl" lang="ar" style="display: grid; place-items: center; min-height: 10rem; border: 1px dashed var(--border); border-radius: var(--radius-lg)">
156
+ <p>انقر بزر الماوس الأيمن هنا.</p>
157
+ <div class="context-menu" role="menu" aria-hidden="true" style="--context-x: 0px; --context-y: 0px">
158
+ <button type="button" role="menuitem">رجوع <span data-slot="shortcut">⌘[</span></button>
159
+ <button type="button" role="menuitem" disabled>تقدم <span data-slot="shortcut">⌘]</span></button>
160
+ <button type="button" role="menuitem">إعادة تحميل <span data-slot="shortcut">⌘R</span></button>
161
+ <div role="separator"></div>
162
+ <button type="button" role="menuitemcheckbox" aria-checked="true">
163
+ إظهار الإشارات المرجعية
164
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
165
+ </button>
7
166
  <div role="separator"></div>
8
- <button type="button" role="menuitem" data-variant="destructive">Delete account</button>
167
+ <div role="group" aria-label="الأشخاص">
168
+ <div role="heading" aria-level="2">الأشخاص</div>
169
+ <button type="button" role="menuitemradio" aria-checked="true">
170
+ بيدرو دوارتي
171
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
172
+ </button>
173
+ <button type="button" role="menuitemradio" aria-checked="false">
174
+ كولم تويت
175
+ <span data-slot="indicator" 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="M20 6 9 17l-5-5"/></svg></span>
176
+ </button>
177
+ </div>
9
178
  </div>
10
179
  </div>