@shytv/ai-chart 0.0.8 → 0.0.9
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.
|
@@ -32051,7 +32051,7 @@ var SK = [
|
|
|
32051
32051
|
size: {
|
|
32052
32052
|
default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
32053
32053
|
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
32054
|
-
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[
|
|
32054
|
+
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[12.8px] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
32055
32055
|
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
32056
32056
|
icon: "size-8",
|
|
32057
32057
|
"icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
@@ -32105,7 +32105,7 @@ function MK(e) {
|
|
|
32105
32105
|
let { className: t, children: n, showCloseButton: r = !0 } = e, i = G(e, EK);
|
|
32106
32106
|
return /* @__PURE__ */ (0, Y.jsxs)(AK, { children: [/* @__PURE__ */ (0, Y.jsx)(jK, {}), /* @__PURE__ */ (0, Y.jsxs)(zG, U(U({
|
|
32107
32107
|
"data-slot": "dialog-content",
|
|
32108
|
-
className: Q("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-
|
|
32108
|
+
className: Q("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-32px)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm 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)
|
|
32109
32109
|
}, i), {}, { children: [n, r && /* @__PURE__ */ (0, Y.jsxs)(jG, {
|
|
32110
32110
|
"data-slot": "dialog-close",
|
|
32111
32111
|
render: /* @__PURE__ */ (0, Y.jsx)(wK, {
|
|
@@ -32447,7 +32447,7 @@ var cq = ({ src: e, name: t }) => {
|
|
|
32447
32447
|
name: r,
|
|
32448
32448
|
children: /* @__PURE__ */ (0, Y.jsxs)(hG, {
|
|
32449
32449
|
render: /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
32450
|
-
className: Q("aui-attachment-tile bg-muted hover:after:bg-foreground/10 focus-visible:ring-ring/50 relative size-14 overflow-hidden rounded-[calc(var(--composer-radius,
|
|
32450
|
+
className: Q("aui-attachment-tile bg-muted hover:after:bg-foreground/10 focus-visible:ring-ring/50 relative size-14 overflow-hidden rounded-[calc(var(--composer-radius,16px)-var(--composer-padding,8px))] transition-transform outline-none after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:ring-1 after:ring-black/10 after:transition-colors after:ring-inset focus-visible:ring-1 motion-reduce:transition-none dark:after:ring-white/10", t ? "cursor-zoom-in active:scale-[0.96]" : "cursor-default", o && "after:ring-destructive/60 dark:after:ring-destructive/60"),
|
|
32451
32451
|
role: t ? "button" : "group",
|
|
32452
32452
|
tabIndex: 0,
|
|
32453
32453
|
"aria-label": `${t ? `Preview ${r}` : `${i} attachment ${r}`}${o ? ", upload failed" : a ? ", uploading" : ""}`
|
|
@@ -32877,7 +32877,7 @@ var Xq = () => {
|
|
|
32877
32877
|
let n = new ResizeObserver(a);
|
|
32878
32878
|
return n.observe(e), n.observe(e.firstElementChild), () => n.disconnect();
|
|
32879
32879
|
}, [a]);
|
|
32880
|
-
let o = `linear-gradient(to right, ${r.left ? "transparent, black
|
|
32880
|
+
let o = `linear-gradient(to right, ${r.left ? "transparent, black 32px" : "black"}, ${r.right ? "black calc(100% - 32px), transparent" : "black"})`;
|
|
32881
32881
|
return /* @__PURE__ */ (0, Y.jsx)("div", {
|
|
32882
32882
|
ref: t,
|
|
32883
32883
|
onScroll: a,
|
|
@@ -42876,9 +42876,9 @@ var m7 = ["className"], h7 = ({ group: e, children: t }) => {
|
|
|
42876
42876
|
return /* @__PURE__ */ (0, Y.jsx)(UP.Root, {
|
|
42877
42877
|
className: "aui-root aui-thread-root bg-background @container flex h-full flex-col",
|
|
42878
42878
|
style: {
|
|
42879
|
-
"--thread-max-width": "
|
|
42879
|
+
"--thread-max-width": "704px",
|
|
42880
42880
|
"--composer-bg": "color-mix(in oklab, var(--color-muted) 30%, transparent)",
|
|
42881
|
-
"--composer-radius": "
|
|
42881
|
+
"--composer-radius": "16px",
|
|
42882
42882
|
"--composer-padding": "8px"
|
|
42883
42883
|
},
|
|
42884
42884
|
children: /* @__PURE__ */ (0, Y.jsx)(UP.Viewport, {
|
|
@@ -43338,7 +43338,7 @@ var m7 = ["className"], h7 = ({ group: e, children: t }) => {
|
|
|
43338
43338
|
side: "bottom",
|
|
43339
43339
|
align: "start",
|
|
43340
43340
|
sideOffset: 6,
|
|
43341
|
-
className: "aui-action-bar-more-content bg-popover text-popover-foreground data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:animate-out data-[side=bottom]:slide-in-from-top-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 z-50 min-w-[
|
|
43341
|
+
className: "aui-action-bar-more-content bg-popover text-popover-foreground data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:animate-out data-[side=bottom]:slide-in-from-top-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 z-50 min-w-[128px] overflow-hidden rounded-xl border p-1.5",
|
|
43342
43342
|
children: /* @__PURE__ */ (0, Y.jsxs)(Vk.ExportMarkdown, {
|
|
43343
43343
|
render: /* @__PURE__ */ (0, Y.jsx)(rA.Item, { className: "aui-action-bar-more-item hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-sm outline-none select-none" }),
|
|
43344
43344
|
children: [/* @__PURE__ */ (0, Y.jsx)(XI, { className: "size-4" }), "导出为 Markdown"]
|