@pactor-app/ui 1.41.0 → 1.43.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.
- package/dist/{chunk-IBMIQXOM.js → chunk-7OBUSV5S.js} +1 -1
- package/dist/{chunk-XRPL536L.js → chunk-H6E53JL2.js} +2 -2
- package/dist/{chunk-UWKDHCV5.js → chunk-HKQMSEQB.js} +3211 -1272
- package/dist/{chunk-F5JY3PBE.js → chunk-HU2RFIWH.js} +1 -1
- package/dist/{chunk-PWXXEJ4J.js → chunk-QIOYKSN4.js} +11 -2
- package/dist/{chunk-PRXLVTBS.js → chunk-T3TGKYAB.js} +8 -4
- package/dist/{chunk-HAOAXDTW.js → chunk-YVHPJHW3.js} +1 -1
- package/dist/components/index.cjs +3882 -1932
- package/dist/components/index.d.cts +626 -22
- package/dist/components/index.d.ts +626 -22
- package/dist/components/index.js +9 -5
- package/dist/index.cjs +4028 -2078
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -7
- package/dist/interaction/index.cjs +1 -1
- package/dist/interaction/index.js +2 -2
- package/dist/layout/index.cjs +7 -2
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +9 -5
- package/dist/ui/index.d.cts +9 -2
- package/dist/ui/index.d.ts +9 -2
- package/dist/ui/index.js +3 -3
- package/package.json +6 -6
- package/styles.css +52 -2
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TooltipTrigger,
|
|
17
17
|
useIsMobile,
|
|
18
18
|
useSidebar
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7OBUSV5S.js";
|
|
20
20
|
import {
|
|
21
21
|
cn
|
|
22
22
|
} from "./chunk-WKJUCGV4.js";
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
ArrowRight,
|
|
29
29
|
ArrowUp,
|
|
30
30
|
ArrowUpRight,
|
|
31
|
+
AudioLines,
|
|
31
32
|
Bell,
|
|
32
33
|
Bookmark,
|
|
33
34
|
Brain,
|
|
@@ -86,6 +87,7 @@ import {
|
|
|
86
87
|
Menu,
|
|
87
88
|
MessageCircle,
|
|
88
89
|
MessageSquare,
|
|
90
|
+
Mic,
|
|
89
91
|
Minus,
|
|
90
92
|
Moon,
|
|
91
93
|
Package,
|
|
@@ -95,10 +97,12 @@ import {
|
|
|
95
97
|
Paperclip,
|
|
96
98
|
Pencil,
|
|
97
99
|
Phone,
|
|
100
|
+
Play,
|
|
98
101
|
Plus,
|
|
99
102
|
Quote,
|
|
100
103
|
RefreshCcw,
|
|
101
104
|
RotateCcw,
|
|
105
|
+
RotateCw,
|
|
102
106
|
Save,
|
|
103
107
|
Search,
|
|
104
108
|
Send,
|
|
@@ -256,7 +260,12 @@ var ICONS = {
|
|
|
256
260
|
"zoom-in": ZoomIn,
|
|
257
261
|
"zoom-out": ZoomOut,
|
|
258
262
|
video: Video,
|
|
259
|
-
music: Music
|
|
263
|
+
music: Music,
|
|
264
|
+
// 录音 / 音频场景(spec: chat-page 录音模板):波形、麦克风、播放控制
|
|
265
|
+
"audio-lines": AudioLines,
|
|
266
|
+
mic: Mic,
|
|
267
|
+
play: Play,
|
|
268
|
+
"rotate-cw": RotateCw
|
|
260
269
|
};
|
|
261
270
|
function normalizeIconName(name) {
|
|
262
271
|
return name.replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Popover,
|
|
3
3
|
PopoverContent,
|
|
4
4
|
PopoverTrigger
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7OBUSV5S.js";
|
|
6
6
|
import {
|
|
7
7
|
Button,
|
|
8
8
|
buttonVariants,
|
|
@@ -101,7 +101,7 @@ function AlertDialogOverlay({
|
|
|
101
101
|
{
|
|
102
102
|
"data-slot": "alert-dialog-overlay",
|
|
103
103
|
className: cn(
|
|
104
|
-
"fixed inset-0 z-50 bg-(--overlay-background) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0",
|
|
104
|
+
"fixed inset-0 z-50 bg-(--overlay-background) duration-200 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0",
|
|
105
105
|
className
|
|
106
106
|
),
|
|
107
107
|
...props
|
|
@@ -760,6 +760,8 @@ function Combobox({
|
|
|
760
760
|
function ComboboxTrigger({
|
|
761
761
|
className,
|
|
762
762
|
children,
|
|
763
|
+
endAdornment,
|
|
764
|
+
iconClassName,
|
|
763
765
|
...props
|
|
764
766
|
}) {
|
|
765
767
|
return /* @__PURE__ */ jsxs5(
|
|
@@ -773,7 +775,8 @@ function ComboboxTrigger({
|
|
|
773
775
|
...props,
|
|
774
776
|
children: [
|
|
775
777
|
/* @__PURE__ */ jsx12("span", { className: "min-w-0 flex-1 truncate text-left", children }),
|
|
776
|
-
|
|
778
|
+
endAdornment,
|
|
779
|
+
/* @__PURE__ */ jsx12(ChevronsUpDownIcon, { className: cn("size-4 shrink-0 opacity-50", iconClassName) })
|
|
777
780
|
]
|
|
778
781
|
}
|
|
779
782
|
);
|
|
@@ -2201,6 +2204,7 @@ function SelectTrigger({
|
|
|
2201
2204
|
className,
|
|
2202
2205
|
size = "default",
|
|
2203
2206
|
children,
|
|
2207
|
+
iconClassName,
|
|
2204
2208
|
...props
|
|
2205
2209
|
}) {
|
|
2206
2210
|
return /* @__PURE__ */ jsxs13(
|
|
@@ -2218,7 +2222,7 @@ function SelectTrigger({
|
|
|
2218
2222
|
/* @__PURE__ */ jsx35(
|
|
2219
2223
|
SelectPrimitive.Icon,
|
|
2220
2224
|
{
|
|
2221
|
-
render: /* @__PURE__ */ jsx35(ChevronDownIcon3, { className: "size-4 opacity-50" })
|
|
2225
|
+
render: /* @__PURE__ */ jsx35(ChevronDownIcon3, { className: cn("size-4 opacity-50", iconClassName) })
|
|
2222
2226
|
}
|
|
2223
2227
|
)
|
|
2224
2228
|
]
|
|
@@ -35,7 +35,7 @@ function DialogOverlay({
|
|
|
35
35
|
{
|
|
36
36
|
"data-slot": "dialog-overlay",
|
|
37
37
|
className: cn(
|
|
38
|
-
"fixed inset-0 z-50 bg-(--overlay-background) data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards",
|
|
38
|
+
"fixed inset-0 z-50 bg-(--overlay-background) duration-200 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 data-closed:fill-mode-forwards",
|
|
39
39
|
className
|
|
40
40
|
),
|
|
41
41
|
...props
|