@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.
- package/README.md +82 -61
- package/dist/book-logo-filled.svg +55 -0
- package/dist/components/ui/accessibility-improvements.js +26 -23
- package/dist/components/ui/accordion.js +34 -24
- package/dist/components/ui/alert-dialog.js +91 -57
- package/dist/components/ui/alert.js +38 -26
- package/dist/components/ui/aspect-ratio.js +11 -3
- package/dist/components/ui/avatar.js +30 -8
- package/dist/components/ui/badge.js +20 -14
- package/dist/components/ui/breadcrumb.js +69 -56
- package/dist/components/ui/button-group.js +17 -13
- package/dist/components/ui/button.js +19 -15
- package/dist/components/ui/calendar.js +63 -59
- package/dist/components/ui/card.js +11 -9
- package/dist/components/ui/carousel.js +70 -75
- package/dist/components/ui/chart.js +75 -72
- package/dist/components/ui/checkbox.js +4 -5
- package/dist/components/ui/collapsible.js +12 -14
- package/dist/components/ui/color-picker.js +60 -80
- package/dist/components/ui/combobox.js +153 -33
- package/dist/components/ui/command.js +50 -48
- package/dist/components/ui/context-menu.js +129 -68
- package/dist/components/ui/dialog.js +65 -60
- package/dist/components/ui/drawer.js +81 -40
- package/dist/components/ui/dropdown-menu.js +100 -87
- package/dist/components/ui/empty.js +7 -6
- package/dist/components/ui/field.js +44 -47
- package/dist/components/ui/form.js +22 -23
- package/dist/components/ui/hover-card.js +14 -11
- package/dist/components/ui/input-group.js +16 -13
- package/dist/components/ui/input-otp.js +37 -32
- package/dist/components/ui/input.js +9 -7
- package/dist/components/ui/item.js +42 -36
- package/dist/components/ui/kbd.js +2 -1
- package/dist/components/ui/label.js +6 -7
- package/dist/components/ui/menubar.js +124 -93
- package/dist/components/ui/navigation-menu.js +79 -54
- package/dist/components/ui/pagination.js +78 -58
- package/dist/components/ui/popover.js +35 -16
- package/dist/components/ui/progress.js +37 -13
- package/dist/components/ui/radio-group.js +14 -14
- package/dist/components/ui/resizable.js +24 -15
- package/dist/components/ui/scroll-area.js +29 -11
- package/dist/components/ui/select.js +116 -56
- package/dist/components/ui/separator.js +5 -7
- package/dist/components/ui/sheet.js +47 -42
- package/dist/components/ui/sidebar.js +279 -248
- package/dist/components/ui/skeleton.js +4 -40
- package/dist/components/ui/slider.js +27 -29
- package/dist/components/ui/sonner.js +27 -10
- package/dist/components/ui/spinner.js +2 -0
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/table.js +6 -6
- package/dist/components/ui/tabs.js +45 -22
- package/dist/components/ui/textarea.js +3 -2
- package/dist/components/ui/theme-toggle.js +38 -41
- package/dist/components/ui/toggle-group.js +30 -21
- package/dist/components/ui/toggle.js +8 -9
- package/dist/components/ui/tooltip.js +28 -23
- package/dist/index.css +1 -1
- package/dist/index.d.ts +446 -468
- package/dist/index.js +58 -58
- package/package.json +38 -37
- package/src/App.tsx +28 -34
- package/src/components/branding/assets/book-logo-filled.svg +55 -0
- package/src/components/branding/logo/logo.tsx +56 -0
- package/src/components/ui/accessibility-improvements.stories.tsx +18 -0
- package/src/components/ui/accessibility-improvements.test.tsx +13 -0
- package/src/components/ui/accessibility-improvements.tsx +16 -6
- package/src/components/ui/accordion.stories.tsx +19 -0
- package/src/components/ui/accordion.test.tsx +14 -0
- package/src/components/ui/accordion.tsx +28 -20
- package/src/components/ui/alert-dialog.stories.tsx +19 -0
- package/src/components/ui/alert-dialog.test.tsx +14 -0
- package/src/components/ui/alert-dialog.tsx +159 -123
- package/src/components/ui/alert.stories.tsx +19 -0
- package/src/components/ui/alert.test.tsx +14 -0
- package/src/components/ui/alert.tsx +60 -41
- package/src/components/ui/aspect-ratio.stories.tsx +19 -0
- package/src/components/ui/aspect-ratio.test.tsx +14 -0
- package/src/components/ui/aspect-ratio.tsx +19 -2
- package/src/components/ui/attachment.stories.tsx +19 -0
- package/src/components/ui/attachment.test.tsx +14 -0
- package/src/components/ui/attachment.tsx +209 -0
- package/src/components/ui/avatar.stories.tsx +19 -0
- package/src/components/ui/avatar.test.tsx +14 -0
- package/src/components/ui/avatar.tsx +73 -17
- package/src/components/ui/badge.stories.tsx +19 -0
- package/src/components/ui/badge.test.tsx +14 -0
- package/src/components/ui/badge.tsx +33 -25
- package/src/components/ui/breadcrumb.stories.tsx +19 -0
- package/src/components/ui/breadcrumb.test.tsx +14 -0
- package/src/components/ui/breadcrumb.tsx +98 -86
- package/src/components/ui/bubble.stories.tsx +19 -0
- package/src/components/ui/bubble.test.tsx +14 -0
- package/src/components/ui/bubble.tsx +130 -0
- package/src/components/ui/button-group.stories.tsx +19 -0
- package/src/components/ui/button-group.test.tsx +14 -0
- package/src/components/ui/button-group.tsx +26 -20
- package/src/components/ui/button.stories.tsx +19 -0
- package/src/components/ui/button.test.tsx +14 -0
- package/src/components/ui/button.tsx +30 -31
- package/src/components/ui/calendar.stories.tsx +19 -0
- package/src/components/ui/calendar.test.tsx +14 -0
- package/src/components/ui/calendar.tsx +28 -26
- package/src/components/ui/card.stories.tsx +19 -0
- package/src/components/ui/card.test.tsx +14 -0
- package/src/components/ui/card.tsx +30 -17
- package/src/components/ui/carousel.stories.tsx +19 -0
- package/src/components/ui/carousel.test.tsx +14 -0
- package/src/components/ui/carousel.tsx +115 -135
- package/src/components/ui/chart.stories.tsx +18 -0
- package/src/components/ui/chart.test.tsx +13 -0
- package/src/components/ui/chart.tsx +220 -216
- package/src/components/ui/checkbox.stories.tsx +19 -0
- package/src/components/ui/checkbox.test.tsx +14 -0
- package/src/components/ui/checkbox.tsx +7 -10
- package/src/components/ui/collapsible.stories.tsx +19 -0
- package/src/components/ui/collapsible.test.tsx +14 -0
- package/src/components/ui/collapsible.tsx +11 -26
- package/src/components/ui/color-picker.stories.tsx +19 -0
- package/src/components/ui/color-picker.test.tsx +14 -0
- package/src/components/ui/color-picker.tsx +36 -26
- package/src/components/ui/combobox.stories.tsx +19 -0
- package/src/components/ui/combobox.test.tsx +14 -0
- package/src/components/ui/combobox.tsx +281 -96
- package/src/components/ui/command.stories.tsx +19 -0
- package/src/components/ui/command.test.tsx +14 -0
- package/src/components/ui/command.tsx +59 -47
- package/src/components/ui/context-menu.stories.tsx +19 -0
- package/src/components/ui/context-menu.test.tsx +14 -0
- package/src/components/ui/context-menu.tsx +231 -160
- package/src/components/ui/dialog.stories.tsx +19 -0
- package/src/components/ui/dialog.test.tsx +14 -0
- package/src/components/ui/dialog.tsx +81 -72
- package/src/components/ui/direction.stories.tsx +19 -0
- package/src/components/ui/direction.test.tsx +14 -0
- package/src/components/ui/direction.tsx +6 -0
- package/src/components/ui/drawer.stories.tsx +19 -0
- package/src/components/ui/drawer.test.tsx +14 -0
- package/src/components/ui/drawer.tsx +143 -64
- package/src/components/ui/dropdown-menu.stories.tsx +19 -0
- package/src/components/ui/dropdown-menu.test.tsx +14 -0
- package/src/components/ui/dropdown-menu.tsx +199 -153
- package/src/components/ui/empty.stories.tsx +18 -0
- package/src/components/ui/empty.test.tsx +13 -0
- package/src/components/ui/empty.tsx +11 -9
- package/src/components/ui/field.stories.tsx +18 -0
- package/src/components/ui/field.test.tsx +13 -0
- package/src/components/ui/field.tsx +26 -32
- package/src/components/ui/form.stories.tsx +22 -0
- package/src/components/ui/form.test.tsx +15 -0
- package/src/components/ui/form.tsx +1 -2
- package/src/components/ui/hover-card.stories.tsx +19 -0
- package/src/components/ui/hover-card.test.tsx +14 -0
- package/src/components/ui/hover-card.tsx +34 -32
- package/src/components/ui/input-group.stories.tsx +18 -0
- package/src/components/ui/input-group.test.tsx +13 -0
- package/src/components/ui/input-group.tsx +21 -28
- package/src/components/ui/input-otp.stories.tsx +19 -0
- package/src/components/ui/input-otp.test.tsx +14 -0
- package/src/components/ui/input-otp.tsx +58 -42
- package/src/components/ui/input.stories.tsx +19 -0
- package/src/components/ui/input.test.tsx +14 -0
- package/src/components/ui/input.tsx +9 -8
- package/src/components/ui/item.stories.tsx +18 -0
- package/src/components/ui/item.test.tsx +13 -0
- package/src/components/ui/item.tsx +38 -28
- package/src/components/ui/kbd.stories.tsx +18 -0
- package/src/components/ui/kbd.test.tsx +13 -0
- package/src/components/ui/kbd.tsx +3 -3
- package/src/components/ui/label.stories.tsx +18 -0
- package/src/components/ui/label.test.tsx +13 -0
- package/src/components/ui/label.tsx +7 -11
- package/src/components/ui/marker.stories.tsx +19 -0
- package/src/components/ui/marker.test.tsx +14 -0
- package/src/components/ui/marker.tsx +73 -0
- package/src/components/ui/menubar.stories.tsx +19 -0
- package/src/components/ui/menubar.test.tsx +14 -0
- package/src/components/ui/menubar.tsx +226 -202
- package/src/components/ui/message-scroller.stories.tsx +19 -0
- package/src/components/ui/message-scroller.test.tsx +14 -0
- package/src/components/ui/message-scroller.tsx +131 -0
- package/src/components/ui/message.stories.tsx +19 -0
- package/src/components/ui/message.test.tsx +14 -0
- package/src/components/ui/message.tsx +94 -0
- package/src/components/ui/native-select.stories.tsx +18 -0
- package/src/components/ui/native-select.test.tsx +13 -0
- package/src/components/ui/native-select.tsx +63 -0
- package/src/components/ui/navigation-menu.stories.tsx +19 -0
- package/src/components/ui/navigation-menu.test.tsx +14 -0
- package/src/components/ui/navigation-menu.tsx +145 -103
- package/src/components/ui/pagination.stories.tsx +19 -0
- package/src/components/ui/pagination.test.tsx +14 -0
- package/src/components/ui/pagination.tsx +114 -83
- package/src/components/ui/popover.stories.tsx +19 -0
- package/src/components/ui/popover.test.tsx +14 -0
- package/src/components/ui/popover.tsx +68 -33
- package/src/components/ui/progress.stories.tsx +19 -0
- package/src/components/ui/progress.test.tsx +14 -0
- package/src/components/ui/progress.tsx +67 -15
- package/src/components/ui/questionnaire.stories.tsx +19 -0
- package/src/components/ui/questionnaire.test.tsx +14 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.stories.tsx +19 -0
- package/src/components/ui/radio-group.test.tsx +14 -0
- package/src/components/ui/radio-group.tsx +15 -20
- package/src/components/ui/resizable.stories.tsx +19 -0
- package/src/components/ui/resizable.test.tsx +14 -0
- package/src/components/ui/resizable.tsx +37 -30
- package/src/components/ui/scroll-area.stories.tsx +19 -0
- package/src/components/ui/scroll-area.test.tsx +14 -0
- package/src/components/ui/scroll-area.tsx +41 -19
- package/src/components/ui/select.stories.tsx +19 -0
- package/src/components/ui/select.test.tsx +32 -0
- package/src/components/ui/select.tsx +172 -78
- package/src/components/ui/separator.stories.tsx +19 -0
- package/src/components/ui/separator.test.tsx +14 -0
- package/src/components/ui/separator.tsx +8 -11
- package/src/components/ui/sheet.stories.tsx +19 -0
- package/src/components/ui/sheet.test.tsx +14 -0
- package/src/components/ui/sheet.tsx +56 -71
- package/src/components/ui/sidebar.stories.tsx +18 -0
- package/src/components/ui/sidebar.test.tsx +13 -0
- package/src/components/ui/sidebar.tsx +469 -513
- package/src/components/ui/skeleton.stories.tsx +19 -0
- package/src/components/ui/skeleton.test.tsx +14 -0
- package/src/components/ui/skeleton.tsx +8 -114
- package/src/components/ui/slider.stories.tsx +19 -0
- package/src/components/ui/slider.test.tsx +14 -0
- package/src/components/ui/slider.tsx +31 -40
- package/src/components/ui/sonner.stories.tsx +19 -0
- package/src/components/ui/sonner.test.tsx +14 -0
- package/src/components/ui/sonner.tsx +39 -7
- package/src/components/ui/spinner.stories.tsx +18 -0
- package/src/components/ui/spinner.test.tsx +13 -0
- package/src/components/ui/spinner.tsx +3 -7
- package/src/components/ui/switch.stories.tsx +19 -0
- package/src/components/ui/switch.test.tsx +14 -0
- package/src/components/ui/switch.tsx +4 -7
- package/src/components/ui/table.stories.tsx +19 -0
- package/src/components/ui/table.test.tsx +14 -0
- package/src/components/ui/table.tsx +17 -17
- package/src/components/ui/tabs.stories.tsx +19 -0
- package/src/components/ui/tabs.test.tsx +14 -0
- package/src/components/ui/tabs.tsx +71 -31
- package/src/components/ui/textarea.stories.tsx +19 -0
- package/src/components/ui/textarea.test.tsx +14 -0
- package/src/components/ui/textarea.tsx +7 -5
- package/src/components/ui/theme-toggle.stories.tsx +18 -0
- package/src/components/ui/theme-toggle.test.tsx +13 -0
- package/src/components/ui/theme-toggle.tsx +35 -37
- package/src/components/ui/toggle-group.stories.tsx +19 -0
- package/src/components/ui/toggle-group.test.tsx +14 -0
- package/src/components/ui/toggle-group.tsx +41 -25
- package/src/components/ui/toggle.stories.tsx +19 -0
- package/src/components/ui/toggle.test.tsx +14 -0
- package/src/components/ui/toggle.tsx +17 -19
- package/src/components/ui/tooltip.stories.tsx +19 -0
- package/src/components/ui/tooltip.test.tsx +14 -0
- package/src/components/ui/tooltip.tsx +53 -44
- package/src/demo/AIDemo.tsx +50 -0
- package/src/demo/ButtonsDemo.tsx +41 -18
- package/src/demo/CalendarDemo.tsx +1 -1
- package/src/demo/FeedbackDemo.tsx +4 -6
- package/src/demo/FormsDemo.tsx +34 -11
- package/src/demo/NavigationDemo.tsx +38 -13
- package/src/demo/OverlaysDemo.tsx +22 -36
- package/src/demo/update-demos.js +82 -0
- package/src/index.css +66 -46
- package/src/lib/utils.ts +3 -3
- package/src/stories/Button.stories.ts +54 -0
- package/src/stories/Button.tsx +36 -0
- package/src/stories/Configure.mdx +388 -0
- package/src/stories/Header.stories.ts +34 -0
- package/src/stories/Header.tsx +55 -0
- package/src/stories/Page.stories.ts +33 -0
- package/src/stories/Page.tsx +73 -0
- package/src/stories/assets/accessibility.png +0 -0
- package/src/stories/assets/accessibility.svg +1 -0
- package/src/stories/assets/addon-library.png +0 -0
- package/src/stories/assets/assets.png +0 -0
- package/src/stories/assets/avif-test-image.avif +0 -0
- package/src/stories/assets/context.png +0 -0
- package/src/stories/assets/discord.svg +1 -0
- package/src/stories/assets/docs.png +0 -0
- package/src/stories/assets/figma-plugin.png +0 -0
- package/src/stories/assets/github.svg +1 -0
- package/src/stories/assets/share.png +0 -0
- package/src/stories/assets/styling.png +0 -0
- package/src/stories/assets/testing.png +0 -0
- package/src/stories/assets/theming.png +0 -0
- package/src/stories/assets/tutorials.svg +1 -0
- package/src/stories/assets/youtube.svg +1 -0
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- 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 {
|
|
7
|
-
import { jsx as
|
|
8
|
-
import {
|
|
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
|
|
11
|
-
let [
|
|
12
|
-
|
|
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__ */
|
|
15
|
-
open:
|
|
16
|
-
onOpenChange:
|
|
17
|
-
children: [/* @__PURE__ */
|
|
18
|
-
|
|
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", !
|
|
22
|
-
disabled:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
})
|
|
33
|
-
})
|
|
34
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
36
|
+
children: /* @__PURE__ */ u("div", {
|
|
37
37
|
className: "p-4 space-y-4",
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
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__ */
|
|
43
|
+
/* @__PURE__ */ u("div", {
|
|
44
44
|
className: "space-y-3",
|
|
45
|
-
children: [/* @__PURE__ */
|
|
46
|
-
color:
|
|
47
|
-
onChange:
|
|
45
|
+
children: [/* @__PURE__ */ l(f, {
|
|
46
|
+
color: _ || "#ffffff",
|
|
47
|
+
onChange: x,
|
|
48
48
|
className: "w-full !h-32"
|
|
49
|
-
}), /* @__PURE__ */
|
|
49
|
+
}), /* @__PURE__ */ u("div", {
|
|
50
50
|
className: "space-y-1",
|
|
51
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
55
|
-
|
|
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 === "") && (
|
|
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__ */
|
|
67
|
+
/* @__PURE__ */ u("div", {
|
|
66
68
|
className: "space-y-2",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
73
|
+
}), /* @__PURE__ */ l("div", {
|
|
71
74
|
className: "grid grid-cols-8 gap-1.5",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
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: () =>
|
|
101
|
-
|
|
102
|
-
}, t))
|
|
80
|
+
onClick: () => x(t),
|
|
81
|
+
"aria-label": t.toUpperCase()
|
|
82
|
+
}) }), /* @__PURE__ */ l(s, { children: t.toUpperCase() })] }, t))
|
|
103
83
|
})]
|
|
104
84
|
}),
|
|
105
|
-
|
|
85
|
+
_ && /* @__PURE__ */ u("div", {
|
|
106
86
|
className: "pt-2 border-t border-border",
|
|
107
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ l("div", {
|
|
108
88
|
className: "text-xs font-medium text-muted-foreground mb-2",
|
|
109
89
|
children: "Cor Atual"
|
|
110
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
92
|
+
children: [/* @__PURE__ */ l("div", {
|
|
113
93
|
className: "w-8 h-8 rounded border border-border shadow-sm shrink-0",
|
|
114
|
-
style: { backgroundColor:
|
|
115
|
-
}), /* @__PURE__ */
|
|
94
|
+
style: { backgroundColor: _ }
|
|
95
|
+
}), /* @__PURE__ */ u("div", {
|
|
116
96
|
className: "flex-1",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ l("div", {
|
|
118
98
|
className: "font-mono text-sm font-medium text-foreground",
|
|
119
|
-
children:
|
|
120
|
-
}), /* @__PURE__ */
|
|
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 {
|
|
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 {
|
|
5
|
-
import {
|
|
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 {
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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 {
|
|
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 {
|
|
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 {
|
|
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
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
function p({ className: t, ...n }) {
|
|
11
|
+
return /* @__PURE__ */ u(f, {
|
|
11
12
|
"data-slot": "command",
|
|
12
|
-
className: e("
|
|
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
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
...
|
|
19
|
-
children: [/* @__PURE__ */
|
|
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
|
|
22
|
-
}), /* @__PURE__ */
|
|
23
|
-
className: e("overflow-hidden p-0",
|
|
24
|
-
showCloseButton:
|
|
25
|
-
children:
|
|
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
|
|
33
|
-
return /* @__PURE__ */
|
|
30
|
+
function h({ className: r, ...i }) {
|
|
31
|
+
return /* @__PURE__ */ u("div", {
|
|
34
32
|
"data-slot": "command-input-wrapper",
|
|
35
|
-
className: "
|
|
36
|
-
children:
|
|
37
|
-
"data-slot
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
function g({ className: t, ...n }) {
|
|
45
|
+
return /* @__PURE__ */ u(f.List, {
|
|
45
46
|
"data-slot": "command-list",
|
|
46
|
-
className: e("max-h-
|
|
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
|
|
51
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
54
|
+
className: e("py-6 text-center text-sm", t),
|
|
55
|
+
...n
|
|
55
56
|
});
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
function v({ className: t, ...n }) {
|
|
59
|
+
return /* @__PURE__ */ u(f.Group, {
|
|
59
60
|
"data-slot": "command-group",
|
|
60
|
-
className: e("
|
|
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
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
function y({ className: t, ...n }) {
|
|
66
|
+
return /* @__PURE__ */ u(f.Separator, {
|
|
66
67
|
"data-slot": "command-separator",
|
|
67
|
-
className: e("
|
|
68
|
+
className: e("-mx-1 h-px bg-border", t),
|
|
68
69
|
...n
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
function b({ className: t, children: n, ...r }) {
|
|
73
|
+
return /* @__PURE__ */ d(f.Item, {
|
|
73
74
|
"data-slot": "command-item",
|
|
74
|
-
className: e("
|
|
75
|
-
...
|
|
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
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
+
function x({ className: t, ...n }) {
|
|
81
|
+
return /* @__PURE__ */ u("span", {
|
|
80
82
|
"data-slot": "command-shortcut",
|
|
81
|
-
className: e("
|
|
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 {
|
|
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 };
|