@gram-ai/elements 1.27.3 → 1.27.5
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 +72 -60
- package/README.typedoc.md +6 -6
- package/bin/cli.js +74 -74
- package/dist/compat-shims-CO9JXXV4.cjs.map +1 -1
- package/dist/{compat-shims-BPJ7Q68c.js → compat-shims-DxtUrORi.js} +4 -2
- package/dist/compat-shims-DxtUrORi.js.map +1 -0
- package/dist/components/ShareButton/index.d.ts +2 -2
- package/dist/components/assistant-ui/message-feedback.d.ts +1 -1
- package/dist/components/assistant-ui/tooltip-icon-button.d.ts +2 -2
- package/dist/components/ui/avatar.d.ts +2 -2
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +4 -4
- package/dist/components/ui/popover.d.ts +2 -2
- package/dist/components/ui/skeleton.d.ts +1 -1
- package/dist/components/ui/time-range-picker.d.ts +4 -2
- package/dist/components/ui/tool-ui.d.ts +7 -7
- package/dist/components/ui/tooltip.d.ts +2 -2
- package/dist/contexts/ConnectionStatusContext.d.ts +1 -1
- package/dist/elements.cjs +1 -1
- package/dist/elements.css +1 -1
- package/dist/elements.js +2 -2
- package/dist/hooks/useDensity.d.ts +73 -73
- package/dist/hooks/useMCPTools.d.ts +1 -1
- package/dist/hooks/useRadius.d.ts +1 -1
- package/dist/{index-BpJstUh1.cjs → index-C4bFBGfl.cjs} +4 -4
- package/dist/{index-BpJstUh1.cjs.map → index-C4bFBGfl.cjs.map} +1 -1
- package/dist/{index-CUitXazZ.js → index-D93pV0_o.js} +55 -55
- package/dist/{index-CUitXazZ.js.map → index-D93pV0_o.js.map} +1 -1
- package/dist/{index-DBrhzauj.js → index-DuCQRbcQ.js} +6386 -6337
- package/dist/index-DuCQRbcQ.js.map +1 -0
- package/dist/{index-DxfW52oA.cjs → index-y_PNN5vK.cjs} +64 -46
- package/dist/index-y_PNN5vK.cjs.map +1 -0
- package/dist/lib/cassette.d.ts +4 -4
- package/dist/lib/errorTracking.d.ts +1 -1
- package/dist/lib/messageConverter.d.ts +1 -1
- package/dist/lib/models.d.ts +1 -1
- package/dist/plugins/chart/ui/bar-chart.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/accordion-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/accordion.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/action-button.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/alert-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/alert.d.ts +4 -4
- package/dist/plugins/generative-ui/ui/avatar.d.ts +5 -5
- package/dist/plugins/generative-ui/ui/badge.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/button-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/button.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/card-wrapper.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/card.d.ts +8 -8
- package/dist/plugins/generative-ui/ui/checkbox.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/data-table.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/dialog.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/dropdown-menu.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/grid.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/input-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/input.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/label.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/metric.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/pagination.d.ts +6 -6
- package/dist/plugins/generative-ui/ui/popover.d.ts +4 -4
- package/dist/plugins/generative-ui/ui/progress.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/radio-group.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/select.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/separator.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/skeleton.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/stack.d.ts +6 -6
- package/dist/plugins/generative-ui/ui/switch.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/table.d.ts +9 -9
- package/dist/plugins/generative-ui/ui/tabs-wrapper.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/tabs.d.ts +1 -1
- package/dist/plugins/generative-ui/ui/text.d.ts +3 -3
- package/dist/plugins/generative-ui/ui/textarea.d.ts +2 -2
- package/dist/plugins/generative-ui/ui/tooltip.d.ts +1 -1
- package/dist/plugins.cjs +1 -1
- package/dist/plugins.js +1 -1
- package/dist/{profiler-D6ndqfsd.js → profiler-FpBY9eRv.js} +2 -2
- package/dist/{profiler-D6ndqfsd.js.map → profiler-FpBY9eRv.js.map} +1 -1
- package/dist/{profiler-DhnzZ34c.cjs → profiler-_mthyjvo.cjs} +2 -2
- package/dist/{profiler-DhnzZ34c.cjs.map → profiler-_mthyjvo.cjs.map} +1 -1
- package/dist/react-shim.js +1 -1
- package/dist/server/express.cjs.map +1 -1
- package/dist/server/express.js.map +1 -1
- package/dist/{startRecording-BwXmdmy1.cjs → startRecording-NJcpiHw-.cjs} +2 -2
- package/dist/{startRecording-BwXmdmy1.cjs.map → startRecording-NJcpiHw-.cjs.map} +1 -1
- package/dist/{startRecording-B_9CRZ_P.js → startRecording-r5MXQ2Dm.js} +2 -2
- package/dist/{startRecording-B_9CRZ_P.js.map → startRecording-r5MXQ2Dm.js.map} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -5
- package/src/compat-plugin.ts +14 -14
- package/src/compat-shims.ts +33 -31
- package/src/compat.test.ts +48 -48
- package/src/compat.ts +6 -6
- package/src/components/Chat/index.tsx +17 -17
- package/src/components/Chat/stories/Charts.stories.tsx +98 -98
- package/src/components/Chat/stories/Composer.stories.tsx +15 -15
- package/src/components/Chat/stories/ConnectionConfiguration.stories.tsx +44 -44
- package/src/components/Chat/stories/CustomComponents.stories.tsx +17 -17
- package/src/components/Chat/stories/Density.stories.tsx +20 -20
- package/src/components/Chat/stories/ErrorBoundary.stories.tsx +47 -47
- package/src/components/Chat/stories/FrontendTools.stories.tsx +39 -39
- package/src/components/Chat/stories/GenerativeUI.stories.tsx +48 -48
- package/src/components/Chat/stories/MessageFeedback.stories.tsx +52 -52
- package/src/components/Chat/stories/Modal.stories.tsx +28 -28
- package/src/components/Chat/stories/Model.stories.tsx +11 -11
- package/src/components/Chat/stories/Radius.stories.tsx +20 -20
- package/src/components/Chat/stories/Sidecar.stories.tsx +13 -13
- package/src/components/Chat/stories/StyleIsolation.stories.tsx +11 -11
- package/src/components/Chat/stories/Theme.stories.tsx +25 -25
- package/src/components/Chat/stories/Thread.stories.tsx +25 -25
- package/src/components/Chat/stories/ToolApproval.stories.tsx +55 -55
- package/src/components/Chat/stories/ToolMentions.stories.tsx +17 -17
- package/src/components/Chat/stories/Tools.stories.tsx +88 -88
- package/src/components/Chat/stories/Variants.stories.tsx +32 -32
- package/src/components/Chat/stories/Welcome.stories.tsx +14 -14
- package/src/components/ChatHistory.tsx +7 -7
- package/src/components/FrontendTools/index.tsx +5 -5
- package/src/components/Replay.stories.tsx +157 -157
- package/src/components/Replay.tsx +76 -73
- package/src/components/ShadowRoot.tsx +40 -40
- package/src/components/ShareButton/index.tsx +32 -32
- package/src/components/assistant-ui/assistant-modal.tsx +92 -87
- package/src/components/assistant-ui/assistant-sidecar.tsx +35 -35
- package/src/components/assistant-ui/attachment.tsx +80 -80
- package/src/components/assistant-ui/connection-status-indicator.tsx +33 -33
- package/src/components/assistant-ui/error-boundary.tsx +34 -34
- package/src/components/assistant-ui/follow-on-suggestions.tsx +26 -26
- package/src/components/assistant-ui/markdown-text.tsx +69 -69
- package/src/components/assistant-ui/mentioned-tools-badges.tsx +38 -38
- package/src/components/assistant-ui/message-feedback.tsx +74 -61
- package/src/components/assistant-ui/reasoning.tsx +83 -83
- package/src/components/assistant-ui/thread-list.tsx +45 -45
- package/src/components/assistant-ui/thread.tsx +278 -278
- package/src/components/assistant-ui/tool-fallback.tsx +37 -37
- package/src/components/assistant-ui/tool-group.tsx +26 -26
- package/src/components/assistant-ui/tool-mention-autocomplete.tsx +122 -122
- package/src/components/assistant-ui/tooltip-icon-button.tsx +18 -18
- package/src/components/ui/avatar.tsx +12 -12
- package/src/components/ui/button.tsx +12 -12
- package/src/components/ui/buttonVariants.ts +17 -17
- package/src/components/ui/calendar.tsx +106 -106
- package/src/components/ui/charts.stories.tsx +56 -56
- package/src/components/ui/collapsible.tsx +5 -5
- package/src/components/ui/dialog.tsx +30 -30
- package/src/components/ui/generative-ui.stories.tsx +200 -200
- package/src/components/ui/generative-ui.tsx +26 -26
- package/src/components/ui/popover.tsx +14 -14
- package/src/components/ui/skeleton.tsx +5 -5
- package/src/components/ui/time-range-picker.stories.tsx +80 -80
- package/src/components/ui/time-range-picker.tsx +272 -235
- package/src/components/ui/tool-ui.stories.tsx +37 -37
- package/src/components/ui/tool-ui.tsx +221 -215
- package/src/components/ui/tooltip.tsx +15 -15
- package/src/constants/tailwind.ts +1 -1
- package/src/contexts/ChatIdContext.tsx +7 -7
- package/src/contexts/ConnectionStatusContext.tsx +64 -64
- package/src/contexts/ElementsProvider.tsx +222 -211
- package/src/contexts/ReplayContext.ts +3 -3
- package/src/contexts/ToolApprovalContext.tsx +54 -54
- package/src/contexts/ToolExecutionContext.tsx +34 -34
- package/src/contexts/contexts.ts +7 -7
- package/src/contexts/portal-container-context.ts +2 -2
- package/src/contexts/portal-container.tsx +7 -7
- package/src/embedded.ts +1 -1
- package/src/global.css +25 -25
- package/src/hooks/useAuth.ts +72 -72
- package/src/hooks/useDensity.ts +79 -79
- package/src/hooks/useElements.ts +6 -6
- package/src/hooks/useExpanded.ts +12 -12
- package/src/hooks/useFollowOnSuggestions.ts +87 -82
- package/src/hooks/useGramThreadListAdapter.tsx +99 -99
- package/src/hooks/useMCPTools.ts +47 -47
- package/src/hooks/useModel.ts +14 -14
- package/src/hooks/usePluginComponents.ts +11 -11
- package/src/hooks/usePortalContainer.ts +5 -5
- package/src/hooks/useRadius.ts +23 -23
- package/src/hooks/useRecordCassette.ts +34 -34
- package/src/hooks/useSession.ts +11 -11
- package/src/hooks/useThemeProps.ts +13 -13
- package/src/hooks/useThreadId.ts +4 -4
- package/src/hooks/useToolApproval.ts +7 -7
- package/src/hooks/useToolMentions.ts +40 -40
- package/src/index.ts +26 -26
- package/src/lib/api.test.ts +61 -61
- package/src/lib/api.ts +4 -3
- package/src/lib/auth.ts +13 -13
- package/src/lib/cassette.ts +84 -84
- package/src/lib/easing.ts +1 -1
- package/src/lib/errorTracking.config.ts +5 -5
- package/src/lib/errorTracking.ts +29 -29
- package/src/lib/generative-ui.ts +7 -7
- package/src/lib/humanize.ts +3 -3
- package/src/lib/messageConverter.test.ts +130 -127
- package/src/lib/messageConverter.ts +196 -196
- package/src/lib/models.ts +21 -20
- package/src/lib/token.test.ts +56 -56
- package/src/lib/token.ts +14 -14
- package/src/lib/tool-mentions.ts +45 -45
- package/src/lib/tools.ts +66 -62
- package/src/lib/utils.ts +5 -5
- package/src/lib.d.ts +1 -1
- package/src/plugins/README.md +5 -5
- package/src/plugins/chart/catalog.ts +18 -18
- package/src/plugins/chart/chart.test.ts +31 -31
- package/src/plugins/chart/component.tsx +34 -34
- package/src/plugins/chart/index.ts +4 -4
- package/src/plugins/chart/ui/area-chart.tsx +42 -42
- package/src/plugins/chart/ui/bar-chart.tsx +46 -46
- package/src/plugins/chart/ui/donut-chart.tsx +48 -48
- package/src/plugins/chart/ui/index.ts +7 -7
- package/src/plugins/chart/ui/line-chart.tsx +43 -43
- package/src/plugins/chart/ui/pie-chart.tsx +44 -44
- package/src/plugins/chart/ui/radar-chart.tsx +33 -33
- package/src/plugins/chart/ui/scatter-chart.tsx +43 -43
- package/src/plugins/components/MacOSWindowFrame.tsx +15 -15
- package/src/plugins/components/PluginLoadingState.tsx +10 -10
- package/src/plugins/components/index.ts +1 -1
- package/src/plugins/generative-ui/catalog.ts +54 -54
- package/src/plugins/generative-ui/component.tsx +85 -85
- package/src/plugins/generative-ui/index.ts +4 -4
- package/src/plugins/generative-ui/ui/accordion-wrapper.tsx +16 -16
- package/src/plugins/generative-ui/ui/accordion.tsx +16 -16
- package/src/plugins/generative-ui/ui/action-button.tsx +28 -28
- package/src/plugins/generative-ui/ui/alert-wrapper.tsx +8 -8
- package/src/plugins/generative-ui/ui/alert.tsx +20 -20
- package/src/plugins/generative-ui/ui/avatar-wrapper.tsx +7 -7
- package/src/plugins/generative-ui/ui/avatar.tsx +30 -30
- package/src/plugins/generative-ui/ui/badge.tsx +22 -22
- package/src/plugins/generative-ui/ui/button-wrapper.tsx +12 -12
- package/src/plugins/generative-ui/ui/button.tsx +28 -28
- package/src/plugins/generative-ui/ui/card-wrapper.tsx +8 -8
- package/src/plugins/generative-ui/ui/card.tsx +27 -27
- package/src/plugins/generative-ui/ui/checkbox-wrapper.tsx +9 -9
- package/src/plugins/generative-ui/ui/checkbox.tsx +9 -9
- package/src/plugins/generative-ui/ui/data-table.tsx +8 -8
- package/src/plugins/generative-ui/ui/dialog.tsx +31 -31
- package/src/plugins/generative-ui/ui/dropdown-menu.tsx +44 -44
- package/src/plugins/generative-ui/ui/grid.tsx +12 -12
- package/src/plugins/generative-ui/ui/index.ts +40 -40
- package/src/plugins/generative-ui/ui/input-wrapper.tsx +11 -11
- package/src/plugins/generative-ui/ui/input.tsx +9 -9
- package/src/plugins/generative-ui/ui/label.tsx +8 -8
- package/src/plugins/generative-ui/ui/list.tsx +11 -11
- package/src/plugins/generative-ui/ui/metric.tsx +23 -23
- package/src/plugins/generative-ui/ui/pagination.tsx +28 -28
- package/src/plugins/generative-ui/ui/popover.tsx +21 -21
- package/src/plugins/generative-ui/ui/progress.tsx +13 -13
- package/src/plugins/generative-ui/ui/radio-group.tsx +12 -12
- package/src/plugins/generative-ui/ui/select-wrapper.tsx +7 -7
- package/src/plugins/generative-ui/ui/select.tsx +37 -37
- package/src/plugins/generative-ui/ui/separator.tsx +9 -9
- package/src/plugins/generative-ui/ui/skeleton-wrapper.tsx +10 -10
- package/src/plugins/generative-ui/ui/skeleton.tsx +5 -5
- package/src/plugins/generative-ui/ui/stack.tsx +28 -28
- package/src/plugins/generative-ui/ui/switch.tsx +11 -11
- package/src/plugins/generative-ui/ui/table.tsx +32 -32
- package/src/plugins/generative-ui/ui/tabs-wrapper.tsx +11 -11
- package/src/plugins/generative-ui/ui/tabs.tsx +26 -26
- package/src/plugins/generative-ui/ui/text.tsx +12 -12
- package/src/plugins/generative-ui/ui/textarea.tsx +7 -7
- package/src/plugins/generative-ui/ui/tooltip.tsx +12 -12
- package/src/plugins/index.ts +7 -7
- package/src/react-shim.ts +6 -6
- package/src/server/bun.ts +12 -12
- package/src/server/core.ts +25 -25
- package/src/server/express.ts +17 -15
- package/src/server/fastify.ts +14 -14
- package/src/server/hono.ts +9 -9
- package/src/server/nextjs.ts +12 -12
- package/src/server/tanstack-start.ts +12 -12
- package/src/server.ts +27 -27
- package/src/storybook.d.ts +4 -4
- package/src/types/index.ts +122 -122
- package/src/types/plugins.ts +7 -7
- package/src/vite-env.d.ts +12 -12
- package/dist/compat-shims-BPJ7Q68c.js.map +0 -1
- package/dist/index-DBrhzauj.js.map +0 -1
- package/dist/index-DxfW52oA.cjs.map +0 -1
|
@@ -3005,18 +3005,18 @@ const gI = [
|
|
|
3005
3005
|
{
|
|
3006
3006
|
className: ie(
|
|
3007
3007
|
// after:hidden prevents assistant-ui from showing its default code block loading indicator
|
|
3008
|
-
"
|
|
3008
|
+
"w-full overflow-hidden border border-border after:hidden @sm:max-w-md @md:max-w-lg @lg:max-w-xl @xl:max-w-2xl",
|
|
3009
3009
|
n("lg"),
|
|
3010
3010
|
t
|
|
3011
3011
|
),
|
|
3012
3012
|
children: [
|
|
3013
|
-
/* @__PURE__ */ oe("div", { className: "
|
|
3013
|
+
/* @__PURE__ */ oe("div", { className: "flex h-8 items-center gap-2 border-b border-border bg-muted/50 px-3", children: [
|
|
3014
3014
|
/* @__PURE__ */ oe("div", { className: "flex items-center gap-1.5", children: [
|
|
3015
3015
|
/* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#FF5F57]" }),
|
|
3016
3016
|
/* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#FEBC2E]" }),
|
|
3017
3017
|
/* @__PURE__ */ _("div", { className: "size-3 rounded-full bg-[#28C840]" })
|
|
3018
3018
|
] }),
|
|
3019
|
-
r && /* @__PURE__ */ _("span", { className: "
|
|
3019
|
+
r && /* @__PURE__ */ _("span", { className: "flex-1 text-center text-xs font-medium text-muted-foreground", children: r })
|
|
3020
3020
|
] }),
|
|
3021
3021
|
e
|
|
3022
3022
|
]
|
|
@@ -3029,9 +3029,9 @@ const gI = [
|
|
|
3029
3029
|
"div",
|
|
3030
3030
|
{
|
|
3031
3031
|
className: ie(
|
|
3032
|
-
"
|
|
3032
|
+
"relative flex min-h-[400px] items-center justify-center bg-background"
|
|
3033
3033
|
),
|
|
3034
|
-
children: /* @__PURE__ */ _("span", { className: "shimmer text-muted-foreground
|
|
3034
|
+
children: /* @__PURE__ */ _("span", { className: "shimmer text-sm text-muted-foreground", children: e })
|
|
3035
3035
|
}
|
|
3036
3036
|
) });
|
|
3037
3037
|
var cu, Zm;
|
|
@@ -23632,7 +23632,7 @@ var ev = function(t, r, n, i) {
|
|
|
23632
23632
|
const uV = ({ active: e, payload: t }) => {
|
|
23633
23633
|
if (!e || !t || t.length === 0) return null;
|
|
23634
23634
|
const r = t[0]?.value;
|
|
23635
|
-
return /* @__PURE__ */ _("div", { className: "
|
|
23635
|
+
return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: typeof r == "number" ? r.toLocaleString() : r });
|
|
23636
23636
|
}, aS = [
|
|
23637
23637
|
"var(--chart-1)",
|
|
23638
23638
|
"var(--chart-2)",
|
|
@@ -23649,7 +23649,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23649
23649
|
}) => {
|
|
23650
23650
|
const o = r === "horizontal";
|
|
23651
23651
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", a), children: [
|
|
23652
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
23652
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
23653
23653
|
/* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
23654
23654
|
aV,
|
|
23655
23655
|
{
|
|
@@ -23731,7 +23731,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23731
23731
|
}
|
|
23732
23732
|
) }) })
|
|
23733
23733
|
] });
|
|
23734
|
-
}, fV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "
|
|
23734
|
+
}, fV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
|
|
23735
23735
|
/* @__PURE__ */ _(
|
|
23736
23736
|
"span",
|
|
23737
23737
|
{
|
|
@@ -23762,7 +23762,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23762
23762
|
}) => {
|
|
23763
23763
|
const c = Mr(() => r && r.length > 0 ? r : t.length === 0 ? [] : Object.keys(t[0]).filter((l) => l !== "label"), [t, r]);
|
|
23764
23764
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", s), children: [
|
|
23765
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
23765
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
23766
23766
|
/* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
23767
23767
|
iV,
|
|
23768
23768
|
{
|
|
@@ -23818,7 +23818,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23818
23818
|
}
|
|
23819
23819
|
) }) })
|
|
23820
23820
|
] });
|
|
23821
|
-
}, pV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "
|
|
23821
|
+
}, pV = ({ active: e, payload: t }) => !e || !t || t.length === 0 ? null : /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: t.map((r, n) => /* @__PURE__ */ oe("div", { className: "flex items-center gap-2", children: [
|
|
23822
23822
|
/* @__PURE__ */ _(
|
|
23823
23823
|
"span",
|
|
23824
23824
|
{
|
|
@@ -23848,7 +23848,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23848
23848
|
}) => {
|
|
23849
23849
|
const s = Mr(() => r && r.length > 0 ? r : t.length === 0 ? [] : Object.keys(t[0]).filter((u) => u !== "label"), [t, r]);
|
|
23850
23850
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", o), children: [
|
|
23851
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
23851
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
23852
23852
|
/* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
23853
23853
|
cV,
|
|
23854
23854
|
{
|
|
@@ -23907,7 +23907,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23907
23907
|
}, vV = ({ active: e, payload: t }) => {
|
|
23908
23908
|
if (!e || !t || t.length === 0) return null;
|
|
23909
23909
|
const r = t[0];
|
|
23910
|
-
return /* @__PURE__ */ _("div", { className: "
|
|
23910
|
+
return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
|
|
23911
23911
|
}, sS = [
|
|
23912
23912
|
"var(--chart-1)",
|
|
23913
23913
|
"var(--chart-2)",
|
|
@@ -23927,7 +23927,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23927
23927
|
color: o.color
|
|
23928
23928
|
}));
|
|
23929
23929
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", i), children: [
|
|
23930
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
23930
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
23931
23931
|
/* @__PURE__ */ _("div", { className: "h-[320px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
23932
23932
|
Y1,
|
|
23933
23933
|
{
|
|
@@ -23992,7 +23992,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
23992
23992
|
}, yV = ({ active: e, payload: t }) => {
|
|
23993
23993
|
if (!e || !t || t.length === 0) return null;
|
|
23994
23994
|
const r = t[0];
|
|
23995
|
-
return /* @__PURE__ */ _("div", { className: "
|
|
23995
|
+
return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
|
|
23996
23996
|
}, cS = [
|
|
23997
23997
|
"var(--chart-1)",
|
|
23998
23998
|
"var(--chart-2)",
|
|
@@ -24014,7 +24014,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
24014
24014
|
color: c.color
|
|
24015
24015
|
}));
|
|
24016
24016
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", o), children: [
|
|
24017
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
24017
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
24018
24018
|
/* @__PURE__ */ oe("div", { className: "relative h-[320px] w-full", children: [
|
|
24019
24019
|
/* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
24020
24020
|
Y1,
|
|
@@ -24077,15 +24077,15 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
24077
24077
|
}
|
|
24078
24078
|
) }),
|
|
24079
24079
|
(i !== void 0 || a !== void 0) && /* @__PURE__ */ oe("div", { className: "pointer-events-none absolute inset-x-0 top-[45%] flex -translate-y-1/2 flex-col items-center", children: [
|
|
24080
|
-
a !== void 0 && /* @__PURE__ */ _("span", { className: "text-
|
|
24081
|
-
i && /* @__PURE__ */ _("span", { className: "text-muted-foreground
|
|
24080
|
+
a !== void 0 && /* @__PURE__ */ _("span", { className: "text-2xl font-bold text-foreground", children: a }),
|
|
24081
|
+
i && /* @__PURE__ */ _("span", { className: "text-xs text-muted-foreground", children: i })
|
|
24082
24082
|
] })
|
|
24083
24083
|
] })
|
|
24084
24084
|
] });
|
|
24085
24085
|
}, bV = ({ active: e, payload: t }) => {
|
|
24086
24086
|
if (!e || !t || t.length === 0) return null;
|
|
24087
24087
|
const r = t[0]?.payload;
|
|
24088
|
-
return /* @__PURE__ */ oe("div", { className: "
|
|
24088
|
+
return /* @__PURE__ */ oe("div", { className: "rounded-md border border-border bg-background px-2 py-1.5 text-xs text-foreground shadow-sm", children: [
|
|
24089
24089
|
r?.label && /* @__PURE__ */ _("div", { className: "font-medium", children: r.label }),
|
|
24090
24090
|
/* @__PURE__ */ oe("div", { children: [
|
|
24091
24091
|
"x: ",
|
|
@@ -24112,7 +24112,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
24112
24112
|
}) => {
|
|
24113
24113
|
const o = t.some((s) => s.size !== void 0);
|
|
24114
24114
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", a), children: [
|
|
24115
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
24115
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
24116
24116
|
/* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
24117
24117
|
sV,
|
|
24118
24118
|
{
|
|
@@ -24169,7 +24169,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
24169
24169
|
}, wV = ({ active: e, payload: t }) => {
|
|
24170
24170
|
if (!e || !t || t.length === 0) return null;
|
|
24171
24171
|
const r = t[0];
|
|
24172
|
-
return /* @__PURE__ */ _("div", { className: "
|
|
24172
|
+
return /* @__PURE__ */ _("div", { className: "rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground shadow-sm", children: /* @__PURE__ */ _("span", { className: "font-medium", children: typeof r?.value == "number" ? r.value.toLocaleString() : r?.value }) });
|
|
24173
24173
|
}, lS = [
|
|
24174
24174
|
"var(--chart-1)",
|
|
24175
24175
|
"var(--chart-2)",
|
|
@@ -24184,7 +24184,7 @@ const uV = ({ active: e, payload: t }) => {
|
|
|
24184
24184
|
}) => {
|
|
24185
24185
|
const i = t.map((a) => ({ subject: a.label, value: a.value }));
|
|
24186
24186
|
return /* @__PURE__ */ oe("div", { className: ie("flex flex-col gap-2", n), children: [
|
|
24187
|
-
e && /* @__PURE__ */ _("h3", { className: "text-
|
|
24187
|
+
e && /* @__PURE__ */ _("h3", { className: "text-sm font-medium text-foreground", children: e }),
|
|
24188
24188
|
/* @__PURE__ */ _("div", { className: "h-[250px] w-full", children: /* @__PURE__ */ _(bn, { width: "100%", height: "100%", children: /* @__PURE__ */ oe(
|
|
24189
24189
|
oV,
|
|
24190
24190
|
{
|
|
@@ -24251,7 +24251,7 @@ const AV = {
|
|
|
24251
24251
|
};
|
|
24252
24252
|
function _V(e) {
|
|
24253
24253
|
const t = AV[e.type];
|
|
24254
|
-
return t ? /* @__PURE__ */ _(t, { ...e.props ?? {} }) : /* @__PURE__ */ oe("div", { className: "
|
|
24254
|
+
return t ? /* @__PURE__ */ _(t, { ...e.props ?? {} }) : /* @__PURE__ */ oe("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
24255
24255
|
/* @__PURE__ */ _(dA, { className: "size-4" }),
|
|
24256
24256
|
/* @__PURE__ */ oe("span", { children: [
|
|
24257
24257
|
"Unknown chart type: ",
|
|
@@ -24270,7 +24270,7 @@ const PV = ({ code: e }) => {
|
|
|
24270
24270
|
return null;
|
|
24271
24271
|
}
|
|
24272
24272
|
}, [e]), n = Mr(() => SV(), []);
|
|
24273
|
-
return r ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: ie("bg-card
|
|
24273
|
+
return r ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: ie("w-full bg-card", t("p-lg")), children: _V(r) }) }) : /* @__PURE__ */ _(wI, { text: n });
|
|
24274
24274
|
}, EV = {
|
|
24275
24275
|
language: "chart",
|
|
24276
24276
|
prompt: `WHEN TO USE CHARTS:
|
|
@@ -29071,13 +29071,13 @@ function p4({
|
|
|
29071
29071
|
{
|
|
29072
29072
|
"data-slot": "accordion-trigger",
|
|
29073
29073
|
className: ie(
|
|
29074
|
-
"
|
|
29074
|
+
"flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium text-foreground transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
|
|
29075
29075
|
e
|
|
29076
29076
|
),
|
|
29077
29077
|
...r,
|
|
29078
29078
|
children: [
|
|
29079
29079
|
t,
|
|
29080
|
-
/* @__PURE__ */ _(vv, { className: "
|
|
29080
|
+
/* @__PURE__ */ _(vv, { className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200" })
|
|
29081
29081
|
]
|
|
29082
29082
|
}
|
|
29083
29083
|
) });
|
|
@@ -29091,7 +29091,7 @@ function h4({
|
|
|
29091
29091
|
l5,
|
|
29092
29092
|
{
|
|
29093
29093
|
"data-slot": "accordion-content",
|
|
29094
|
-
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down
|
|
29094
|
+
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
29095
29095
|
...r,
|
|
29096
29096
|
children: /* @__PURE__ */ _("div", { className: ie("pt-0 pb-4", e), children: t })
|
|
29097
29097
|
}
|
|
@@ -29177,7 +29177,7 @@ function g4({
|
|
|
29177
29177
|
{
|
|
29178
29178
|
"data-slot": "alert-description",
|
|
29179
29179
|
className: ie(
|
|
29180
|
-
"
|
|
29180
|
+
"col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
|
|
29181
29181
|
e
|
|
29182
29182
|
),
|
|
29183
29183
|
...t
|
|
@@ -29224,7 +29224,7 @@ function w4({
|
|
|
29224
29224
|
{
|
|
29225
29225
|
"data-slot": "avatar-fallback",
|
|
29226
29226
|
className: ie(
|
|
29227
|
-
"
|
|
29227
|
+
"flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
|
|
29228
29228
|
e
|
|
29229
29229
|
),
|
|
29230
29230
|
...t
|
|
@@ -29328,7 +29328,7 @@ function _4({
|
|
|
29328
29328
|
{
|
|
29329
29329
|
"data-slot": "checkbox",
|
|
29330
29330
|
className: ie(
|
|
29331
|
-
"peer
|
|
29331
|
+
"peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-shadow outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
|
|
29332
29332
|
e
|
|
29333
29333
|
),
|
|
29334
29334
|
...t,
|
|
@@ -29445,9 +29445,9 @@ function D4({ className: e, type: t, ...r }) {
|
|
|
29445
29445
|
type: t,
|
|
29446
29446
|
"data-slot": "input",
|
|
29447
29447
|
className: ie(
|
|
29448
|
-
"
|
|
29449
|
-
"focus-visible:border-ring focus-visible:ring-
|
|
29450
|
-
"aria-invalid:
|
|
29448
|
+
"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30",
|
|
29449
|
+
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
|
|
29450
|
+
"aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",
|
|
29451
29451
|
e
|
|
29452
29452
|
),
|
|
29453
29453
|
...r
|
|
@@ -29490,7 +29490,7 @@ function L4({
|
|
|
29490
29490
|
g6,
|
|
29491
29491
|
{
|
|
29492
29492
|
"data-slot": "progress",
|
|
29493
|
-
className: "
|
|
29493
|
+
className: "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",
|
|
29494
29494
|
value: t,
|
|
29495
29495
|
max: n,
|
|
29496
29496
|
...i,
|
|
@@ -29498,7 +29498,7 @@ function L4({
|
|
|
29498
29498
|
b6,
|
|
29499
29499
|
{
|
|
29500
29500
|
"data-slot": "progress-indicator",
|
|
29501
|
-
className: "
|
|
29501
|
+
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
29502
29502
|
style: { transform: `translateX(-${100 - a}%)` }
|
|
29503
29503
|
}
|
|
29504
29504
|
)
|
|
@@ -29528,7 +29528,7 @@ function F4({
|
|
|
29528
29528
|
"data-slot": "select-trigger",
|
|
29529
29529
|
"data-size": t,
|
|
29530
29530
|
className: ie(
|
|
29531
|
-
"
|
|
29531
|
+
"flex w-fit items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[placeholder]:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
29532
29532
|
e
|
|
29533
29533
|
),
|
|
29534
29534
|
...n,
|
|
@@ -29551,7 +29551,7 @@ function z4({
|
|
|
29551
29551
|
{
|
|
29552
29552
|
"data-slot": "select-content",
|
|
29553
29553
|
className: ie(
|
|
29554
|
-
"
|
|
29554
|
+
"relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover text-popover-foreground shadow-md 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 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
29555
29555
|
r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
29556
29556
|
e
|
|
29557
29557
|
),
|
|
@@ -29585,7 +29585,7 @@ function W4({
|
|
|
29585
29585
|
{
|
|
29586
29586
|
"data-slot": "select-item",
|
|
29587
29587
|
className: ie(
|
|
29588
|
-
"
|
|
29588
|
+
"relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus: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 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
29589
29589
|
e
|
|
29590
29590
|
),
|
|
29591
29591
|
...r,
|
|
@@ -29650,7 +29650,7 @@ function HS({
|
|
|
29650
29650
|
decorative: r,
|
|
29651
29651
|
orientation: t,
|
|
29652
29652
|
className: ie(
|
|
29653
|
-
"bg-border
|
|
29653
|
+
"shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
29654
29654
|
e
|
|
29655
29655
|
),
|
|
29656
29656
|
...n
|
|
@@ -29662,7 +29662,7 @@ function K4({ className: e, ...t }) {
|
|
|
29662
29662
|
"div",
|
|
29663
29663
|
{
|
|
29664
29664
|
"data-slot": "skeleton",
|
|
29665
|
-
className: ie("
|
|
29665
|
+
className: ie("animate-pulse rounded-md bg-accent", e),
|
|
29666
29666
|
...t
|
|
29667
29667
|
}
|
|
29668
29668
|
);
|
|
@@ -29710,7 +29710,7 @@ function KS({ className: e, ...t }) {
|
|
|
29710
29710
|
{
|
|
29711
29711
|
"data-slot": "table-row",
|
|
29712
29712
|
className: ie(
|
|
29713
|
-
"hover:bg-muted/50 data-[state=selected]:bg-muted
|
|
29713
|
+
"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",
|
|
29714
29714
|
e
|
|
29715
29715
|
),
|
|
29716
29716
|
...t
|
|
@@ -29723,7 +29723,7 @@ function X4({ className: e, ...t }) {
|
|
|
29723
29723
|
{
|
|
29724
29724
|
"data-slot": "table-head",
|
|
29725
29725
|
className: ie(
|
|
29726
|
-
"
|
|
29726
|
+
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
29727
29727
|
e
|
|
29728
29728
|
),
|
|
29729
29729
|
...t
|
|
@@ -29800,10 +29800,10 @@ function tY({
|
|
|
29800
29800
|
{
|
|
29801
29801
|
"data-slot": "tabs-trigger",
|
|
29802
29802
|
className: ie(
|
|
29803
|
-
"
|
|
29803
|
+
"relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
29804
29804
|
"group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent",
|
|
29805
|
-
"data-[state=active]:bg-background
|
|
29806
|
-
"after:bg-foreground after:
|
|
29805
|
+
"data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground",
|
|
29806
|
+
"after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",
|
|
29807
29807
|
e
|
|
29808
29808
|
),
|
|
29809
29809
|
...t
|
|
@@ -29918,7 +29918,7 @@ function oY({
|
|
|
29918
29918
|
children: l ? "Loading..." : e
|
|
29919
29919
|
}
|
|
29920
29920
|
),
|
|
29921
|
-
h && /* @__PURE__ */ _("span", { className: "text-
|
|
29921
|
+
h && /* @__PURE__ */ _("span", { className: "text-xs text-destructive", children: h })
|
|
29922
29922
|
] });
|
|
29923
29923
|
}
|
|
29924
29924
|
function sY({
|
|
@@ -29956,12 +29956,12 @@ function lY({
|
|
|
29956
29956
|
{
|
|
29957
29957
|
"data-slot": "card-wrapper",
|
|
29958
29958
|
className: ie(
|
|
29959
|
-
"
|
|
29959
|
+
"flex flex-col gap-6 bg-card p-6 text-card-foreground",
|
|
29960
29960
|
t
|
|
29961
29961
|
),
|
|
29962
29962
|
...n,
|
|
29963
29963
|
children: [
|
|
29964
|
-
e && /* @__PURE__ */ _("div", { className: "text-
|
|
29964
|
+
e && /* @__PURE__ */ _("div", { className: "text-lg leading-none font-semibold text-foreground", children: e }),
|
|
29965
29965
|
/* @__PURE__ */ _("div", { className: "flex flex-col gap-6", children: r })
|
|
29966
29966
|
]
|
|
29967
29967
|
}
|
|
@@ -30041,7 +30041,7 @@ function vY({
|
|
|
30041
30041
|
}
|
|
30042
30042
|
function mY({ items: e, ordered: t = !1, className: r }) {
|
|
30043
30043
|
const n = ie(
|
|
30044
|
-
"
|
|
30044
|
+
"space-y-1 pl-4 text-foreground",
|
|
30045
30045
|
t ? "list-decimal" : "list-disc",
|
|
30046
30046
|
r
|
|
30047
30047
|
);
|
|
@@ -30080,8 +30080,8 @@ function gY({
|
|
|
30080
30080
|
className: ie("flex flex-col", n),
|
|
30081
30081
|
...i,
|
|
30082
30082
|
children: [
|
|
30083
|
-
/* @__PURE__ */ _("span", { className: "text-muted-foreground
|
|
30084
|
-
/* @__PURE__ */ _("span", { className: "text-
|
|
30083
|
+
/* @__PURE__ */ _("span", { className: "text-sm text-muted-foreground", children: e }),
|
|
30084
|
+
/* @__PURE__ */ _("span", { className: "text-2xl font-semibold text-foreground", children: yY(t, r) })
|
|
30085
30085
|
]
|
|
30086
30086
|
}
|
|
30087
30087
|
);
|
|
@@ -30225,7 +30225,7 @@ const CY = {
|
|
|
30225
30225
|
function hC(e, t) {
|
|
30226
30226
|
const r = CY[e.type];
|
|
30227
30227
|
if (!r)
|
|
30228
|
-
return /* @__PURE__ */ oe("div", { className: "text-muted-foreground
|
|
30228
|
+
return /* @__PURE__ */ oe("div", { className: "text-xs text-muted-foreground", children: [
|
|
30229
30229
|
"Unknown component: ",
|
|
30230
30230
|
e.type
|
|
30231
30231
|
] }, t);
|
|
@@ -30238,7 +30238,7 @@ const IY = ({ content: e, className: t }) => {
|
|
|
30238
30238
|
"div",
|
|
30239
30239
|
{
|
|
30240
30240
|
className: ie(
|
|
30241
|
-
"
|
|
30241
|
+
"flex items-center gap-2 text-sm text-muted-foreground",
|
|
30242
30242
|
r("p-md"),
|
|
30243
30243
|
t
|
|
30244
30244
|
),
|
|
@@ -30327,7 +30327,7 @@ const RY = () => {
|
|
|
30327
30327
|
"span",
|
|
30328
30328
|
{
|
|
30329
30329
|
className: ie(
|
|
30330
|
-
"shimmer text-muted-foreground
|
|
30330
|
+
"shimmer text-sm text-muted-foreground transition-opacity duration-200",
|
|
30331
30331
|
r ? "opacity-100" : "opacity-0"
|
|
30332
30332
|
),
|
|
30333
30333
|
children: pv[e]
|
|
@@ -30344,7 +30344,7 @@ const RY = () => {
|
|
|
30344
30344
|
return null;
|
|
30345
30345
|
}
|
|
30346
30346
|
}, [e]);
|
|
30347
|
-
return t ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "p-4", children: /* @__PURE__ */ _(IY, { content: t }) }) }) : /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "
|
|
30347
|
+
return t ? /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "p-4", children: /* @__PURE__ */ _(IY, { content: t }) }) }) : /* @__PURE__ */ _(Uo, { children: /* @__PURE__ */ _("div", { className: "flex min-h-[400px] items-center justify-center bg-background", children: /* @__PURE__ */ _(RY, {}) }) });
|
|
30348
30348
|
}, MY = {
|
|
30349
30349
|
language: "ui",
|
|
30350
30350
|
prompt: `Render structured data as visual UI using \`\`\`ui code blocks with valid JSON.
|
|
@@ -30423,4 +30423,4 @@ export {
|
|
|
30423
30423
|
vr as y,
|
|
30424
30424
|
Ne as z
|
|
30425
30425
|
};
|
|
30426
|
-
//# sourceMappingURL=index-
|
|
30426
|
+
//# sourceMappingURL=index-D93pV0_o.js.map
|