@inspirare/design-system 0.0.23 → 0.0.25

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 (297) hide show
  1. package/README.md +82 -61
  2. package/dist/book-logo-filled.svg +55 -0
  3. package/dist/components/ui/accessibility-improvements.js +26 -23
  4. package/dist/components/ui/accordion.js +34 -24
  5. package/dist/components/ui/alert-dialog.js +91 -57
  6. package/dist/components/ui/alert.js +38 -26
  7. package/dist/components/ui/aspect-ratio.js +11 -3
  8. package/dist/components/ui/avatar.js +30 -8
  9. package/dist/components/ui/badge.js +20 -14
  10. package/dist/components/ui/breadcrumb.js +69 -56
  11. package/dist/components/ui/button-group.js +17 -13
  12. package/dist/components/ui/button.js +19 -15
  13. package/dist/components/ui/calendar.js +63 -59
  14. package/dist/components/ui/card.js +11 -9
  15. package/dist/components/ui/carousel.js +70 -75
  16. package/dist/components/ui/chart.js +75 -72
  17. package/dist/components/ui/checkbox.js +4 -5
  18. package/dist/components/ui/collapsible.js +12 -14
  19. package/dist/components/ui/color-picker.js +60 -80
  20. package/dist/components/ui/combobox.js +153 -33
  21. package/dist/components/ui/command.js +50 -48
  22. package/dist/components/ui/context-menu.js +129 -68
  23. package/dist/components/ui/dialog.js +65 -60
  24. package/dist/components/ui/drawer.js +81 -40
  25. package/dist/components/ui/dropdown-menu.js +100 -87
  26. package/dist/components/ui/empty.js +7 -6
  27. package/dist/components/ui/field.js +44 -47
  28. package/dist/components/ui/form.js +22 -23
  29. package/dist/components/ui/hover-card.js +14 -11
  30. package/dist/components/ui/input-group.js +16 -13
  31. package/dist/components/ui/input-otp.js +37 -32
  32. package/dist/components/ui/input.js +9 -7
  33. package/dist/components/ui/item.js +42 -36
  34. package/dist/components/ui/kbd.js +2 -1
  35. package/dist/components/ui/label.js +6 -7
  36. package/dist/components/ui/menubar.js +124 -93
  37. package/dist/components/ui/navigation-menu.js +79 -54
  38. package/dist/components/ui/pagination.js +78 -58
  39. package/dist/components/ui/popover.js +35 -16
  40. package/dist/components/ui/progress.js +37 -13
  41. package/dist/components/ui/radio-group.js +14 -14
  42. package/dist/components/ui/resizable.js +24 -15
  43. package/dist/components/ui/scroll-area.js +29 -11
  44. package/dist/components/ui/select.js +116 -56
  45. package/dist/components/ui/separator.js +5 -7
  46. package/dist/components/ui/sheet.js +47 -42
  47. package/dist/components/ui/sidebar.js +279 -248
  48. package/dist/components/ui/skeleton.js +4 -40
  49. package/dist/components/ui/slider.js +27 -29
  50. package/dist/components/ui/sonner.js +27 -10
  51. package/dist/components/ui/spinner.js +2 -0
  52. package/dist/components/ui/switch.js +3 -4
  53. package/dist/components/ui/table.js +6 -6
  54. package/dist/components/ui/tabs.js +45 -22
  55. package/dist/components/ui/textarea.js +3 -2
  56. package/dist/components/ui/theme-toggle.js +38 -41
  57. package/dist/components/ui/toggle-group.js +30 -21
  58. package/dist/components/ui/toggle.js +8 -9
  59. package/dist/components/ui/tooltip.js +28 -23
  60. package/dist/index.css +1 -1
  61. package/dist/index.d.ts +446 -468
  62. package/dist/index.js +58 -58
  63. package/package.json +38 -37
  64. package/src/App.tsx +28 -34
  65. package/src/components/branding/assets/book-logo-filled.svg +55 -0
  66. package/src/components/branding/logo/logo.tsx +56 -0
  67. package/src/components/ui/accessibility-improvements.stories.tsx +18 -0
  68. package/src/components/ui/accessibility-improvements.test.tsx +13 -0
  69. package/src/components/ui/accessibility-improvements.tsx +16 -6
  70. package/src/components/ui/accordion.stories.tsx +19 -0
  71. package/src/components/ui/accordion.test.tsx +14 -0
  72. package/src/components/ui/accordion.tsx +28 -20
  73. package/src/components/ui/alert-dialog.stories.tsx +19 -0
  74. package/src/components/ui/alert-dialog.test.tsx +14 -0
  75. package/src/components/ui/alert-dialog.tsx +159 -123
  76. package/src/components/ui/alert.stories.tsx +19 -0
  77. package/src/components/ui/alert.test.tsx +14 -0
  78. package/src/components/ui/alert.tsx +60 -41
  79. package/src/components/ui/aspect-ratio.stories.tsx +19 -0
  80. package/src/components/ui/aspect-ratio.test.tsx +14 -0
  81. package/src/components/ui/aspect-ratio.tsx +19 -2
  82. package/src/components/ui/attachment.stories.tsx +19 -0
  83. package/src/components/ui/attachment.test.tsx +14 -0
  84. package/src/components/ui/attachment.tsx +209 -0
  85. package/src/components/ui/avatar.stories.tsx +19 -0
  86. package/src/components/ui/avatar.test.tsx +14 -0
  87. package/src/components/ui/avatar.tsx +73 -17
  88. package/src/components/ui/badge.stories.tsx +19 -0
  89. package/src/components/ui/badge.test.tsx +14 -0
  90. package/src/components/ui/badge.tsx +33 -25
  91. package/src/components/ui/breadcrumb.stories.tsx +19 -0
  92. package/src/components/ui/breadcrumb.test.tsx +14 -0
  93. package/src/components/ui/breadcrumb.tsx +98 -86
  94. package/src/components/ui/bubble.stories.tsx +19 -0
  95. package/src/components/ui/bubble.test.tsx +14 -0
  96. package/src/components/ui/bubble.tsx +130 -0
  97. package/src/components/ui/button-group.stories.tsx +19 -0
  98. package/src/components/ui/button-group.test.tsx +14 -0
  99. package/src/components/ui/button-group.tsx +26 -20
  100. package/src/components/ui/button.stories.tsx +19 -0
  101. package/src/components/ui/button.test.tsx +14 -0
  102. package/src/components/ui/button.tsx +30 -31
  103. package/src/components/ui/calendar.stories.tsx +19 -0
  104. package/src/components/ui/calendar.test.tsx +14 -0
  105. package/src/components/ui/calendar.tsx +28 -26
  106. package/src/components/ui/card.stories.tsx +19 -0
  107. package/src/components/ui/card.test.tsx +14 -0
  108. package/src/components/ui/card.tsx +30 -17
  109. package/src/components/ui/carousel.stories.tsx +19 -0
  110. package/src/components/ui/carousel.test.tsx +14 -0
  111. package/src/components/ui/carousel.tsx +115 -135
  112. package/src/components/ui/chart.stories.tsx +18 -0
  113. package/src/components/ui/chart.test.tsx +13 -0
  114. package/src/components/ui/chart.tsx +220 -216
  115. package/src/components/ui/checkbox.stories.tsx +19 -0
  116. package/src/components/ui/checkbox.test.tsx +14 -0
  117. package/src/components/ui/checkbox.tsx +7 -10
  118. package/src/components/ui/collapsible.stories.tsx +19 -0
  119. package/src/components/ui/collapsible.test.tsx +14 -0
  120. package/src/components/ui/collapsible.tsx +11 -26
  121. package/src/components/ui/color-picker.stories.tsx +19 -0
  122. package/src/components/ui/color-picker.test.tsx +14 -0
  123. package/src/components/ui/color-picker.tsx +36 -26
  124. package/src/components/ui/combobox.stories.tsx +19 -0
  125. package/src/components/ui/combobox.test.tsx +14 -0
  126. package/src/components/ui/combobox.tsx +281 -96
  127. package/src/components/ui/command.stories.tsx +19 -0
  128. package/src/components/ui/command.test.tsx +14 -0
  129. package/src/components/ui/command.tsx +59 -47
  130. package/src/components/ui/context-menu.stories.tsx +19 -0
  131. package/src/components/ui/context-menu.test.tsx +14 -0
  132. package/src/components/ui/context-menu.tsx +231 -160
  133. package/src/components/ui/dialog.stories.tsx +19 -0
  134. package/src/components/ui/dialog.test.tsx +14 -0
  135. package/src/components/ui/dialog.tsx +81 -72
  136. package/src/components/ui/direction.stories.tsx +19 -0
  137. package/src/components/ui/direction.test.tsx +14 -0
  138. package/src/components/ui/direction.tsx +6 -0
  139. package/src/components/ui/drawer.stories.tsx +19 -0
  140. package/src/components/ui/drawer.test.tsx +14 -0
  141. package/src/components/ui/drawer.tsx +143 -64
  142. package/src/components/ui/dropdown-menu.stories.tsx +19 -0
  143. package/src/components/ui/dropdown-menu.test.tsx +14 -0
  144. package/src/components/ui/dropdown-menu.tsx +199 -153
  145. package/src/components/ui/empty.stories.tsx +18 -0
  146. package/src/components/ui/empty.test.tsx +13 -0
  147. package/src/components/ui/empty.tsx +11 -9
  148. package/src/components/ui/field.stories.tsx +18 -0
  149. package/src/components/ui/field.test.tsx +13 -0
  150. package/src/components/ui/field.tsx +26 -32
  151. package/src/components/ui/form.stories.tsx +22 -0
  152. package/src/components/ui/form.test.tsx +15 -0
  153. package/src/components/ui/form.tsx +1 -2
  154. package/src/components/ui/hover-card.stories.tsx +19 -0
  155. package/src/components/ui/hover-card.test.tsx +14 -0
  156. package/src/components/ui/hover-card.tsx +34 -32
  157. package/src/components/ui/input-group.stories.tsx +18 -0
  158. package/src/components/ui/input-group.test.tsx +13 -0
  159. package/src/components/ui/input-group.tsx +21 -28
  160. package/src/components/ui/input-otp.stories.tsx +19 -0
  161. package/src/components/ui/input-otp.test.tsx +14 -0
  162. package/src/components/ui/input-otp.tsx +58 -42
  163. package/src/components/ui/input.stories.tsx +19 -0
  164. package/src/components/ui/input.test.tsx +14 -0
  165. package/src/components/ui/input.tsx +9 -8
  166. package/src/components/ui/item.stories.tsx +18 -0
  167. package/src/components/ui/item.test.tsx +13 -0
  168. package/src/components/ui/item.tsx +38 -28
  169. package/src/components/ui/kbd.stories.tsx +18 -0
  170. package/src/components/ui/kbd.test.tsx +13 -0
  171. package/src/components/ui/kbd.tsx +3 -3
  172. package/src/components/ui/label.stories.tsx +18 -0
  173. package/src/components/ui/label.test.tsx +13 -0
  174. package/src/components/ui/label.tsx +7 -11
  175. package/src/components/ui/marker.stories.tsx +19 -0
  176. package/src/components/ui/marker.test.tsx +14 -0
  177. package/src/components/ui/marker.tsx +73 -0
  178. package/src/components/ui/menubar.stories.tsx +19 -0
  179. package/src/components/ui/menubar.test.tsx +14 -0
  180. package/src/components/ui/menubar.tsx +226 -202
  181. package/src/components/ui/message-scroller.stories.tsx +19 -0
  182. package/src/components/ui/message-scroller.test.tsx +14 -0
  183. package/src/components/ui/message-scroller.tsx +131 -0
  184. package/src/components/ui/message.stories.tsx +19 -0
  185. package/src/components/ui/message.test.tsx +14 -0
  186. package/src/components/ui/message.tsx +94 -0
  187. package/src/components/ui/native-select.stories.tsx +18 -0
  188. package/src/components/ui/native-select.test.tsx +13 -0
  189. package/src/components/ui/native-select.tsx +63 -0
  190. package/src/components/ui/navigation-menu.stories.tsx +19 -0
  191. package/src/components/ui/navigation-menu.test.tsx +14 -0
  192. package/src/components/ui/navigation-menu.tsx +145 -103
  193. package/src/components/ui/pagination.stories.tsx +19 -0
  194. package/src/components/ui/pagination.test.tsx +14 -0
  195. package/src/components/ui/pagination.tsx +114 -83
  196. package/src/components/ui/popover.stories.tsx +19 -0
  197. package/src/components/ui/popover.test.tsx +14 -0
  198. package/src/components/ui/popover.tsx +68 -33
  199. package/src/components/ui/progress.stories.tsx +19 -0
  200. package/src/components/ui/progress.test.tsx +14 -0
  201. package/src/components/ui/progress.tsx +67 -15
  202. package/src/components/ui/questionnaire.stories.tsx +19 -0
  203. package/src/components/ui/questionnaire.test.tsx +14 -0
  204. package/src/components/ui/questionnaire.tsx +324 -0
  205. package/src/components/ui/radio-group.stories.tsx +19 -0
  206. package/src/components/ui/radio-group.test.tsx +14 -0
  207. package/src/components/ui/radio-group.tsx +15 -20
  208. package/src/components/ui/resizable.stories.tsx +19 -0
  209. package/src/components/ui/resizable.test.tsx +14 -0
  210. package/src/components/ui/resizable.tsx +37 -30
  211. package/src/components/ui/scroll-area.stories.tsx +19 -0
  212. package/src/components/ui/scroll-area.test.tsx +14 -0
  213. package/src/components/ui/scroll-area.tsx +41 -19
  214. package/src/components/ui/select.stories.tsx +19 -0
  215. package/src/components/ui/select.test.tsx +32 -0
  216. package/src/components/ui/select.tsx +172 -78
  217. package/src/components/ui/separator.stories.tsx +19 -0
  218. package/src/components/ui/separator.test.tsx +14 -0
  219. package/src/components/ui/separator.tsx +8 -11
  220. package/src/components/ui/sheet.stories.tsx +19 -0
  221. package/src/components/ui/sheet.test.tsx +14 -0
  222. package/src/components/ui/sheet.tsx +56 -71
  223. package/src/components/ui/sidebar.stories.tsx +18 -0
  224. package/src/components/ui/sidebar.test.tsx +13 -0
  225. package/src/components/ui/sidebar.tsx +469 -513
  226. package/src/components/ui/skeleton.stories.tsx +19 -0
  227. package/src/components/ui/skeleton.test.tsx +14 -0
  228. package/src/components/ui/skeleton.tsx +8 -114
  229. package/src/components/ui/slider.stories.tsx +19 -0
  230. package/src/components/ui/slider.test.tsx +14 -0
  231. package/src/components/ui/slider.tsx +31 -40
  232. package/src/components/ui/sonner.stories.tsx +19 -0
  233. package/src/components/ui/sonner.test.tsx +14 -0
  234. package/src/components/ui/sonner.tsx +39 -7
  235. package/src/components/ui/spinner.stories.tsx +18 -0
  236. package/src/components/ui/spinner.test.tsx +13 -0
  237. package/src/components/ui/spinner.tsx +3 -7
  238. package/src/components/ui/switch.stories.tsx +19 -0
  239. package/src/components/ui/switch.test.tsx +14 -0
  240. package/src/components/ui/switch.tsx +4 -7
  241. package/src/components/ui/table.stories.tsx +19 -0
  242. package/src/components/ui/table.test.tsx +14 -0
  243. package/src/components/ui/table.tsx +17 -17
  244. package/src/components/ui/tabs.stories.tsx +19 -0
  245. package/src/components/ui/tabs.test.tsx +14 -0
  246. package/src/components/ui/tabs.tsx +71 -31
  247. package/src/components/ui/textarea.stories.tsx +19 -0
  248. package/src/components/ui/textarea.test.tsx +14 -0
  249. package/src/components/ui/textarea.tsx +7 -5
  250. package/src/components/ui/theme-toggle.stories.tsx +18 -0
  251. package/src/components/ui/theme-toggle.test.tsx +13 -0
  252. package/src/components/ui/theme-toggle.tsx +35 -37
  253. package/src/components/ui/toggle-group.stories.tsx +19 -0
  254. package/src/components/ui/toggle-group.test.tsx +14 -0
  255. package/src/components/ui/toggle-group.tsx +41 -25
  256. package/src/components/ui/toggle.stories.tsx +19 -0
  257. package/src/components/ui/toggle.test.tsx +14 -0
  258. package/src/components/ui/toggle.tsx +17 -19
  259. package/src/components/ui/tooltip.stories.tsx +19 -0
  260. package/src/components/ui/tooltip.test.tsx +14 -0
  261. package/src/components/ui/tooltip.tsx +53 -44
  262. package/src/demo/AIDemo.tsx +50 -0
  263. package/src/demo/ButtonsDemo.tsx +41 -18
  264. package/src/demo/CalendarDemo.tsx +1 -1
  265. package/src/demo/FeedbackDemo.tsx +4 -6
  266. package/src/demo/FormsDemo.tsx +34 -11
  267. package/src/demo/NavigationDemo.tsx +38 -13
  268. package/src/demo/OverlaysDemo.tsx +22 -36
  269. package/src/demo/update-demos.js +82 -0
  270. package/src/index.css +66 -46
  271. package/src/lib/utils.ts +3 -3
  272. package/src/stories/Button.stories.ts +54 -0
  273. package/src/stories/Button.tsx +36 -0
  274. package/src/stories/Configure.mdx +388 -0
  275. package/src/stories/Header.stories.ts +34 -0
  276. package/src/stories/Header.tsx +55 -0
  277. package/src/stories/Page.stories.ts +33 -0
  278. package/src/stories/Page.tsx +73 -0
  279. package/src/stories/assets/accessibility.png +0 -0
  280. package/src/stories/assets/accessibility.svg +1 -0
  281. package/src/stories/assets/addon-library.png +0 -0
  282. package/src/stories/assets/assets.png +0 -0
  283. package/src/stories/assets/avif-test-image.avif +0 -0
  284. package/src/stories/assets/context.png +0 -0
  285. package/src/stories/assets/discord.svg +1 -0
  286. package/src/stories/assets/docs.png +0 -0
  287. package/src/stories/assets/figma-plugin.png +0 -0
  288. package/src/stories/assets/github.svg +1 -0
  289. package/src/stories/assets/share.png +0 -0
  290. package/src/stories/assets/styling.png +0 -0
  291. package/src/stories/assets/testing.png +0 -0
  292. package/src/stories/assets/theming.png +0 -0
  293. package/src/stories/assets/tutorials.svg +1 -0
  294. package/src/stories/assets/youtube.svg +1 -0
  295. package/src/stories/button.css +30 -0
  296. package/src/stories/header.css +32 -0
  297. package/src/stories/page.css +68 -0
@@ -3,121 +3,101 @@ import { cn as e } from "../../lib/utils.js";
3
3
  import { Button as t } from "./button.js";
4
4
  import { Input as n } from "./input.js";
5
5
  import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "./popover.js";
6
- import { useState as o } from "react";
7
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { HexColorPicker as l } from "react-colorful";
6
+ import { Tooltip as o, TooltipContent as s, TooltipTrigger as c } from "./tooltip.js";
7
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
+ import { useState as d } from "react";
9
+ import { HexColorPicker as f } from "react-colorful";
9
10
  //#region src/components/ui/color-picker.tsx
10
- function u({ value: u, onChange: d, className: f, disabled: p = !1 }) {
11
- let [m, h] = o(u), [g, _] = o(!1), v = (e) => {
12
- h(e), d(e);
11
+ function p({ value: p, onChange: m, className: h, disabled: g = !1 }) {
12
+ let [_, v] = d(p), [y, b] = d(!1), x = (e) => {
13
+ v(e), m(e);
13
14
  };
14
- return /* @__PURE__ */ c(r, {
15
- open: g,
16
- onOpenChange: _,
17
- children: [/* @__PURE__ */ s(a, {
18
- asChild: !0,
19
- children: /* @__PURE__ */ c(t, {
15
+ return /* @__PURE__ */ u(r, {
16
+ open: y,
17
+ onOpenChange: b,
18
+ children: [/* @__PURE__ */ u(a, {
19
+ render: /* @__PURE__ */ l(t, {
20
20
  variant: "outline",
21
- className: e("w-[200px] justify-start text-left font-normal border-border hover:border-primary/50 transition-colors gap-2 px-3", !m && "text-muted-foreground", f),
22
- disabled: p,
23
- children: [/* @__PURE__ */ s("div", {
24
- className: "w-4 h-4 rounded border border-border shadow-sm shrink-0",
25
- style: { backgroundColor: m || "#ffffff" }
26
- }), /* @__PURE__ */ s("span", {
27
- className: "truncate flex-1",
28
- children: m ? /* @__PURE__ */ s("span", {
29
- className: "font-mono text-xs",
30
- children: m.toUpperCase()
31
- }) : "Selecionar cor"
32
- })]
33
- })
34
- }), /* @__PURE__ */ s(i, {
21
+ className: e("w-[200px] justify-start text-left font-normal border-border hover:border-primary/50 transition-colors gap-2 px-3", !_ && "text-muted-foreground", h),
22
+ disabled: g
23
+ }),
24
+ children: [/* @__PURE__ */ l("div", {
25
+ className: "w-4 h-4 rounded border border-border shadow-sm shrink-0",
26
+ style: { backgroundColor: _ || "#ffffff" }
27
+ }), /* @__PURE__ */ l("span", {
28
+ className: "truncate flex-1",
29
+ children: _ ? /* @__PURE__ */ l("span", {
30
+ className: "font-mono text-xs",
31
+ children: _.toUpperCase()
32
+ }) : "Selecionar cor"
33
+ })]
34
+ }), /* @__PURE__ */ l(i, {
35
35
  className: "w-80 p-0",
36
- children: /* @__PURE__ */ c("div", {
36
+ children: /* @__PURE__ */ u("div", {
37
37
  className: "p-4 space-y-4",
38
38
  children: [
39
- /* @__PURE__ */ s("div", {
39
+ /* @__PURE__ */ l("div", {
40
40
  className: "text-sm font-medium text-foreground pb-2 border-b border-border",
41
41
  children: "Seletor de Cor"
42
42
  }),
43
- /* @__PURE__ */ c("div", {
43
+ /* @__PURE__ */ u("div", {
44
44
  className: "space-y-3",
45
- children: [/* @__PURE__ */ s(l, {
46
- color: m || "#ffffff",
47
- onChange: v,
45
+ children: [/* @__PURE__ */ l(f, {
46
+ color: _ || "#ffffff",
47
+ onChange: x,
48
48
  className: "w-full !h-32"
49
- }), /* @__PURE__ */ c("div", {
49
+ }), /* @__PURE__ */ u("div", {
50
50
  className: "space-y-1",
51
- children: [/* @__PURE__ */ s("label", {
51
+ children: [/* @__PURE__ */ l("label", {
52
+ htmlFor: "color-picker-hex",
52
53
  className: "text-xs font-medium text-muted-foreground",
53
54
  children: "Código Hexadecimal"
54
- }), /* @__PURE__ */ s(n, {
55
- value: m || "",
55
+ }), /* @__PURE__ */ l(n, {
56
+ id: "color-picker-hex",
57
+ value: _ || "",
56
58
  onChange: (e) => {
57
59
  let t = e.target.value;
58
- (/^#[0-9A-F]{6}$/i.test(t) || t === "") && (h(t), t !== "" && d(t));
60
+ (/^#[0-9A-F]{6}$/i.test(t) || t === "") && (v(t), t !== "" && m(t));
59
61
  },
60
62
  placeholder: "#000000",
61
63
  className: "font-mono text-sm border-border focus:border-primary/50 focus:ring-primary/20 bg-background text-foreground"
62
64
  })]
63
65
  })]
64
66
  }),
65
- /* @__PURE__ */ c("div", {
67
+ /* @__PURE__ */ u("div", {
66
68
  className: "space-y-2",
67
- children: [/* @__PURE__ */ s("label", {
69
+ children: [/* @__PURE__ */ l("span", {
70
+ id: "color-picker-presets-label",
68
71
  className: "text-xs font-medium text-muted-foreground",
69
72
  children: "Cores Predefinidas"
70
- }), /* @__PURE__ */ s("div", {
73
+ }), /* @__PURE__ */ l("div", {
71
74
  className: "grid grid-cols-8 gap-1.5",
72
- children: [
73
- "#9192FA",
74
- "#60A5FA",
75
- "#e0e7ff",
76
- "#dbeafe",
77
- "#1f2937",
78
- "#374151",
79
- "#6b7280",
80
- "#9ca3af",
81
- "#d1d5db",
82
- "#f3f4f6",
83
- "#ffffff",
84
- "#000000",
85
- "#dc2626",
86
- "#ea580c",
87
- "#d97706",
88
- "#16a34a",
89
- "#2563eb",
90
- "#4f46e5",
91
- "#9333ea",
92
- "#e11d48",
93
- "#fef3c7",
94
- "#d1fae5",
95
- "#fce7f3",
96
- "#e9d5ff"
97
- ].map((t) => /* @__PURE__ */ s("button", {
98
- className: e("w-7 h-7 rounded border cursor-pointer transition-all duration-200 hover:scale-110 hover:shadow-md", m === t ? "border-primary ring-2 ring-primary/20" : "border-border hover:border-muted-foreground/50"),
75
+ role: "group",
76
+ "aria-labelledby": "color-picker-presets-label",
77
+ children: (/* @__PURE__ */ "#2C2C2C.#FCEED7.#F4F4F5.#E3AC8E.#FF9876.#DC663E.#FF7512.#1f2937.#374151.#6b7280.#9ca3af.#d1d5db.#f3f4f6.#ffffff.#000000.#dc2626.#ea580c.#d97706.#16a34a.#2563eb.#4f46e5.#9333ea.#e11d48.#fef3c7.#d1fae5.#fce7f3.#e9d5ff".split(".")).map((t) => /* @__PURE__ */ u(o, { children: [/* @__PURE__ */ l(c, { render: /* @__PURE__ */ l("button", {
78
+ className: e("w-7 h-7 rounded border cursor-pointer transition-all duration-200 hover:scale-110 hover:shadow-md", _ === t ? "border-primary ring-2 ring-primary/20" : "border-border hover:border-muted-foreground/50"),
99
79
  style: { backgroundColor: t },
100
- onClick: () => v(t),
101
- title: t.toUpperCase()
102
- }, t))
80
+ onClick: () => x(t),
81
+ "aria-label": t.toUpperCase()
82
+ }) }), /* @__PURE__ */ l(s, { children: t.toUpperCase() })] }, t))
103
83
  })]
104
84
  }),
105
- m && /* @__PURE__ */ c("div", {
85
+ _ && /* @__PURE__ */ u("div", {
106
86
  className: "pt-2 border-t border-border",
107
- children: [/* @__PURE__ */ s("div", {
87
+ children: [/* @__PURE__ */ l("div", {
108
88
  className: "text-xs font-medium text-muted-foreground mb-2",
109
89
  children: "Cor Atual"
110
- }), /* @__PURE__ */ c("div", {
90
+ }), /* @__PURE__ */ u("div", {
111
91
  className: "flex items-center gap-3 p-2 bg-muted/50 rounded-md cursor-pointer hover:bg-muted transition-colors",
112
- children: [/* @__PURE__ */ s("div", {
92
+ children: [/* @__PURE__ */ l("div", {
113
93
  className: "w-8 h-8 rounded border border-border shadow-sm shrink-0",
114
- style: { backgroundColor: m }
115
- }), /* @__PURE__ */ c("div", {
94
+ style: { backgroundColor: _ }
95
+ }), /* @__PURE__ */ u("div", {
116
96
  className: "flex-1",
117
- children: [/* @__PURE__ */ s("div", {
97
+ children: [/* @__PURE__ */ l("div", {
118
98
  className: "font-mono text-sm font-medium text-foreground",
119
- children: m.toUpperCase()
120
- }), /* @__PURE__ */ s("div", {
99
+ children: _.toUpperCase()
100
+ }), /* @__PURE__ */ l("div", {
121
101
  className: "text-xs text-muted-foreground",
122
102
  children: "Clique para copiar"
123
103
  })]
@@ -130,4 +110,4 @@ function u({ value: u, onChange: d, className: f, disabled: p = !1 }) {
130
110
  });
131
111
  }
132
112
  //#endregion
133
- export { u as ColorPicker };
113
+ export { p as ColorPicker };
@@ -1,42 +1,162 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
3
  import { Button as t } from "./button.js";
4
- import { Popover as n, PopoverContent as r, PopoverTrigger as i } from "./popover.js";
5
- import { Command as a, CommandEmpty as o, CommandGroup as s, CommandInput as c, CommandItem as l, CommandList as u } from "./command.js";
4
+ import { InputGroup as n, InputGroupAddon as r, InputGroupButton as i, InputGroupInput as a } from "./input-group.js";
5
+ import { CheckIcon as o, ChevronDownIcon as s, XIcon as c } from "lucide-react";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
6
7
  import * as d from "react";
7
- import { Check as f, ChevronsUpDown as p } from "lucide-react";
8
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
8
+ import { Combobox as f } from "@base-ui/react";
9
9
  //#region src/components/ui/combobox.tsx
10
- function g({ options: g, value: _, onChange: v, placeholder: y = "Select option...", searchPlaceholder: b = "Search...", emptyMessage: x = "No option found.", className: S, buttonClassName: C, contentClassName: w, disabled: T = !1 }) {
11
- let [E, D] = d.useState(!1), O = d.useMemo(() => g.find((e) => e.value === _)?.label, [g, _]);
12
- return /* @__PURE__ */ h(n, {
13
- open: E,
14
- onOpenChange: D,
15
- children: [/* @__PURE__ */ m(i, {
16
- asChild: !0,
17
- children: /* @__PURE__ */ h(t, {
18
- variant: "outline",
19
- role: "combobox",
20
- "aria-expanded": E,
21
- disabled: T,
22
- className: e("w-full justify-between", !_ && "text-muted-foreground", C),
23
- children: [O || y, /* @__PURE__ */ m(p, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
24
- })
25
- }), /* @__PURE__ */ m(r, {
26
- className: e("w-full p-0", w),
27
- align: "start",
28
- children: /* @__PURE__ */ h(a, {
29
- className: S,
30
- children: [/* @__PURE__ */ m(c, { placeholder: b }), /* @__PURE__ */ h(u, { children: [/* @__PURE__ */ m(o, { children: x }), /* @__PURE__ */ m(s, { children: g.map((t) => /* @__PURE__ */ h(l, {
31
- value: t.value,
32
- onSelect: (e) => {
33
- v?.(e === _ ? "" : e), D(!1);
34
- },
35
- children: [/* @__PURE__ */ m(f, { className: e("mr-2 h-4 w-4", _ === t.value ? "opacity-100" : "opacity-0") }), t.label]
36
- }, t.value)) })] })]
37
- })
10
+ var p = f.Root;
11
+ function m({ ...e }) {
12
+ return /* @__PURE__ */ l(f.Value, {
13
+ "data-slot": "combobox-value",
14
+ ...e
15
+ });
16
+ }
17
+ function h({ className: t, children: n, ...r }) {
18
+ return /* @__PURE__ */ u(f.Trigger, {
19
+ "data-slot": "combobox-trigger",
20
+ className: e("[&_svg:not([class*='size-'])]:size-4", t),
21
+ ...r,
22
+ children: [n, /* @__PURE__ */ l(s, { className: "pointer-events-none size-4 text-muted-foreground" })]
23
+ });
24
+ }
25
+ function g({ className: t, ...n }) {
26
+ return /* @__PURE__ */ l(f.Clear, {
27
+ "data-slot": "combobox-clear",
28
+ render: /* @__PURE__ */ l(i, {
29
+ variant: "ghost",
30
+ size: "icon-xs"
31
+ }),
32
+ className: e(t),
33
+ ...n,
34
+ children: /* @__PURE__ */ l(c, { className: "pointer-events-none" })
35
+ });
36
+ }
37
+ function _({ className: t, children: o, disabled: s = !1, showTrigger: c = !0, showClear: d = !1, ...p }) {
38
+ return /* @__PURE__ */ u(n, {
39
+ className: e("w-auto", t),
40
+ children: [
41
+ /* @__PURE__ */ l(f.Input, {
42
+ render: /* @__PURE__ */ l(a, { disabled: s }),
43
+ ...p
44
+ }),
45
+ /* @__PURE__ */ u(r, {
46
+ align: "inline-end",
47
+ children: [c && /* @__PURE__ */ l(i, {
48
+ size: "icon-xs",
49
+ variant: "ghost",
50
+ render: /* @__PURE__ */ l(h, {}),
51
+ "data-slot": "input-group-button",
52
+ className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
53
+ disabled: s
54
+ }), d && /* @__PURE__ */ l(g, { disabled: s })]
55
+ }),
56
+ o
57
+ ]
58
+ });
59
+ }
60
+ function v({ className: t, side: n = "bottom", sideOffset: r = 6, align: i = "start", alignOffset: a = 0, anchor: o, ...s }) {
61
+ return /* @__PURE__ */ l(f.Portal, { children: /* @__PURE__ */ l(f.Positioner, {
62
+ side: n,
63
+ sideOffset: r,
64
+ align: i,
65
+ alignOffset: a,
66
+ anchor: o,
67
+ className: "isolate z-50",
68
+ children: /* @__PURE__ */ l(f.Popup, {
69
+ "data-slot": "combobox-content",
70
+ "data-chips": !!o,
71
+ className: e("group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[chips=true]:min-w-(--anchor-width) data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:border-input/30 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:shadow-none data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", t),
72
+ ...s
73
+ })
74
+ }) });
75
+ }
76
+ function y({ className: t, ...n }) {
77
+ return /* @__PURE__ */ l(f.List, {
78
+ "data-slot": "combobox-list",
79
+ className: e("no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0", t),
80
+ ...n
81
+ });
82
+ }
83
+ function b({ className: t, children: n, ...r }) {
84
+ return /* @__PURE__ */ u(f.Item, {
85
+ "data-slot": "combobox-item",
86
+ className: e("relative flex w-full cursor-pointer items-center gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
87
+ ...r,
88
+ children: [n, /* @__PURE__ */ l(f.ItemIndicator, {
89
+ render: /* @__PURE__ */ l("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
90
+ children: /* @__PURE__ */ l(o, { className: "pointer-events-none" })
38
91
  })]
39
92
  });
40
93
  }
94
+ function x({ className: t, ...n }) {
95
+ return /* @__PURE__ */ l(f.Group, {
96
+ "data-slot": "combobox-group",
97
+ className: e(t),
98
+ ...n
99
+ });
100
+ }
101
+ function S({ className: t, ...n }) {
102
+ return /* @__PURE__ */ l(f.GroupLabel, {
103
+ "data-slot": "combobox-label",
104
+ className: e("px-2 py-1.5 text-xs text-muted-foreground", t),
105
+ ...n
106
+ });
107
+ }
108
+ function C({ ...e }) {
109
+ return /* @__PURE__ */ l(f.Collection, {
110
+ "data-slot": "combobox-collection",
111
+ ...e
112
+ });
113
+ }
114
+ function w({ className: t, ...n }) {
115
+ return /* @__PURE__ */ l(f.Empty, {
116
+ "data-slot": "combobox-empty",
117
+ className: e("hidden w-full justify-center py-2 text-center text-sm text-muted-foreground group-data-empty/combobox-content:flex", t),
118
+ ...n
119
+ });
120
+ }
121
+ function T({ className: t, ...n }) {
122
+ return /* @__PURE__ */ l(f.Separator, {
123
+ "data-slot": "combobox-separator",
124
+ className: e("-mx-1 my-1 h-px bg-border", t),
125
+ ...n
126
+ });
127
+ }
128
+ function E({ className: t, ...n }) {
129
+ return /* @__PURE__ */ l(f.Chips, {
130
+ "data-slot": "combobox-chips",
131
+ className: e("flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40", t),
132
+ ...n
133
+ });
134
+ }
135
+ function D({ className: n, children: r, showRemove: i = !0, ...a }) {
136
+ return /* @__PURE__ */ u(f.Chip, {
137
+ "data-slot": "combobox-chip",
138
+ className: e("flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm bg-muted px-1.5 text-xs font-medium whitespace-nowrap text-foreground has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0", n),
139
+ ...a,
140
+ children: [r, i && /* @__PURE__ */ l(f.ChipRemove, {
141
+ render: /* @__PURE__ */ l(t, {
142
+ variant: "ghost",
143
+ size: "icon-xs"
144
+ }),
145
+ className: "-ml-1 opacity-50 hover:opacity-100",
146
+ "data-slot": "combobox-chip-remove",
147
+ children: /* @__PURE__ */ l(c, { className: "pointer-events-none" })
148
+ })]
149
+ });
150
+ }
151
+ function O({ className: t, ...n }) {
152
+ return /* @__PURE__ */ l(f.Input, {
153
+ "data-slot": "combobox-chip-input",
154
+ className: e("min-w-16 flex-1 outline-none", t),
155
+ ...n
156
+ });
157
+ }
158
+ function k() {
159
+ return d.useRef(null);
160
+ }
41
161
  //#endregion
42
- export { g as Combobox };
162
+ export { p as Combobox, D as ComboboxChip, E as ComboboxChips, O as ComboboxChipsInput, C as ComboboxCollection, v as ComboboxContent, w as ComboboxEmpty, x as ComboboxGroup, _ as ComboboxInput, b as ComboboxItem, S as ComboboxLabel, y as ComboboxList, T as ComboboxSeparator, h as ComboboxTrigger, m as ComboboxValue, k as useComboboxAnchor };
@@ -1,86 +1,88 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../lib/utils.js";
3
- import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a } from "./dialog.js";
3
+ import { InputGroup as t, InputGroupAddon as n } from "./input-group.js";
4
+ import { Dialog as r, DialogContent as i, DialogDescription as a, DialogHeader as o, DialogTitle as s } from "./dialog.js";
5
+ import { CheckIcon as c, SearchIcon as l } from "lucide-react";
6
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
4
7
  import "react";
5
- import { SearchIcon as o } from "lucide-react";
6
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- import { Command as l } from "cmdk";
8
+ import { Command as f } from "cmdk";
8
9
  //#region src/components/ui/command.tsx
9
- function u({ className: t, ...n }) {
10
- return /* @__PURE__ */ s(l, {
10
+ function p({ className: t, ...n }) {
11
+ return /* @__PURE__ */ u(f, {
11
12
  "data-slot": "command",
12
- className: e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", t),
13
+ className: e("flex size-full flex-col overflow-hidden rounded-xl! bg-popover p-1 text-popover-foreground", t),
13
14
  ...n
14
15
  });
15
16
  }
16
- function d({ title: o = "Command Palette", description: l = "Search for a command to run...", children: d, className: f, showCloseButton: p = !0, ...m }) {
17
- return /* @__PURE__ */ c(t, {
18
- ...m,
19
- children: [/* @__PURE__ */ c(i, {
17
+ function m({ title: t = "Command Palette", description: n = "Search for a command to run...", children: c, className: l, showCloseButton: f = !1, ...p }) {
18
+ return /* @__PURE__ */ d(r, {
19
+ ...p,
20
+ children: [/* @__PURE__ */ d(o, {
20
21
  className: "sr-only",
21
- children: [/* @__PURE__ */ s(a, { children: o }), /* @__PURE__ */ s(r, { children: l })]
22
- }), /* @__PURE__ */ s(n, {
23
- className: e("overflow-hidden p-0", f),
24
- showCloseButton: p,
25
- children: /* @__PURE__ */ s(u, {
26
- className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
27
- children: d
28
- })
22
+ children: [/* @__PURE__ */ u(s, { children: t }), /* @__PURE__ */ u(a, { children: n })]
23
+ }), /* @__PURE__ */ u(i, {
24
+ className: e("top-1/3 translate-y-0 overflow-hidden rounded-xl! p-0", l),
25
+ showCloseButton: f,
26
+ children: c
29
27
  })]
30
28
  });
31
29
  }
32
- function f({ className: t, ...n }) {
33
- return /* @__PURE__ */ c("div", {
30
+ function h({ className: r, ...i }) {
31
+ return /* @__PURE__ */ u("div", {
34
32
  "data-slot": "command-input-wrapper",
35
- className: "flex h-9 items-center gap-2 border-b px-3",
36
- children: [/* @__PURE__ */ s(o, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ s(l.Input, {
37
- "data-slot": "command-input",
38
- className: e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", t),
39
- ...n
40
- })]
33
+ className: "p-1 pb-0",
34
+ children: /* @__PURE__ */ d(t, {
35
+ className: "h-8! rounded-lg! border-input/30 bg-input/30 shadow-none! *:data-[slot=input-group-addon]:pl-2!",
36
+ children: [/* @__PURE__ */ u(f.Input, {
37
+ "data-slot": "command-input",
38
+ className: e("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", r),
39
+ ...i
40
+ }), /* @__PURE__ */ u(n, { children: /* @__PURE__ */ u(l, { className: "size-4 shrink-0 opacity-50" }) })]
41
+ })
41
42
  });
42
43
  }
43
- function p({ className: t, ...n }) {
44
- return /* @__PURE__ */ s(l.List, {
44
+ function g({ className: t, ...n }) {
45
+ return /* @__PURE__ */ u(f.List, {
45
46
  "data-slot": "command-list",
46
- className: e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", t),
47
+ className: e("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", t),
47
48
  ...n
48
49
  });
49
50
  }
50
- function m({ ...e }) {
51
- return /* @__PURE__ */ s(l.Empty, {
51
+ function _({ className: t, ...n }) {
52
+ return /* @__PURE__ */ u(f.Empty, {
52
53
  "data-slot": "command-empty",
53
- className: "py-6 text-center text-sm",
54
- ...e
54
+ className: e("py-6 text-center text-sm", t),
55
+ ...n
55
56
  });
56
57
  }
57
- function h({ className: t, ...n }) {
58
- return /* @__PURE__ */ s(l.Group, {
58
+ function v({ className: t, ...n }) {
59
+ return /* @__PURE__ */ u(f.Group, {
59
60
  "data-slot": "command-group",
60
- className: e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", t),
61
+ className: e("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", t),
61
62
  ...n
62
63
  });
63
64
  }
64
- function g({ className: t, ...n }) {
65
- return /* @__PURE__ */ s(l.Separator, {
65
+ function y({ className: t, ...n }) {
66
+ return /* @__PURE__ */ u(f.Separator, {
66
67
  "data-slot": "command-separator",
67
- className: e("bg-border -mx-1 h-px", t),
68
+ className: e("-mx-1 h-px bg-border", t),
68
69
  ...n
69
70
  });
70
71
  }
71
- function _({ className: t, ...n }) {
72
- return /* @__PURE__ */ s(l.Item, {
72
+ function b({ className: t, children: n, ...r }) {
73
+ return /* @__PURE__ */ d(f.Item, {
73
74
  "data-slot": "command-item",
74
- className: e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
75
- ...n
75
+ className: e("group/command-item relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-lg! data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground", t),
76
+ ...r,
77
+ children: [n, /* @__PURE__ */ u(c, { className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100" })]
76
78
  });
77
79
  }
78
- function v({ className: t, ...n }) {
79
- return /* @__PURE__ */ s("span", {
80
+ function x({ className: t, ...n }) {
81
+ return /* @__PURE__ */ u("span", {
80
82
  "data-slot": "command-shortcut",
81
- className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
83
+ className: e("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", t),
82
84
  ...n
83
85
  });
84
86
  }
85
87
  //#endregion
86
- export { u as Command, d as CommandDialog, m as CommandEmpty, h as CommandGroup, f as CommandInput, _ as CommandItem, p as CommandList, g as CommandSeparator, v as CommandShortcut };
88
+ export { p as Command, m as CommandDialog, _ as CommandEmpty, v as CommandGroup, h as CommandInput, b as CommandItem, g as CommandList, y as CommandSeparator, x as CommandShortcut };