@luxfi/ui 8.2.8 → 8.2.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.
- package/dist/3d-model-viewer.cjs +7 -7
- package/dist/accordion.cjs +3 -3
- package/dist/advanced-navigation-bar.cjs +2 -2
- package/dist/ai-agents.cjs +29 -29
- package/dist/ai-assistant.cjs +7 -7
- package/dist/ai-chat.cjs +11 -11
- package/dist/ai-code.cjs +28 -28
- package/dist/ai-playground.cjs +13 -13
- package/dist/ai-tools.cjs +13 -13
- package/dist/ai-vision.cjs +22 -22
- package/dist/ai-voice-settings.cjs +22 -22
- package/dist/ai-voice.cjs +18 -18
- package/dist/alert.cjs +6 -6
- package/dist/announcement.cjs +2 -2
- package/dist/app-switcher-navigation-bar.cjs +2 -2
- package/dist/apple-cards-carousel.cjs +3 -3
- package/dist/auth.cjs +4 -4
- package/dist/avatar.cjs +2 -2
- package/dist/badge.cjs +4 -4
- package/dist/button.cjs +3 -3
- package/dist/chrome.cjs +23 -23
- package/dist/code-block.cjs +7 -7
- package/dist/code-compare.cjs +16 -16
- package/dist/code-diff.cjs +7 -7
- package/dist/code-editor.cjs +3 -3
- package/dist/code-explorer.cjs +4 -4
- package/dist/code-preview.cjs +15 -15
- package/dist/code-snippet.cjs +9 -9
- package/dist/code-terminal.cjs +9 -9
- package/dist/collapsible.cjs +3 -3
- package/dist/color-picker.cjs +4 -4
- package/dist/combobox.cjs +2 -2
- package/dist/communication-navigation-bar.cjs +4 -4
- package/dist/dashboard-navigation-bar.cjs +3 -3
- package/dist/dialog-stack.cjs +2 -2
- package/dist/dialog.cjs +2 -2
- package/dist/drawer.cjs +8 -8
- package/dist/e-commerce-navigation-bar.cjs +4 -4
- package/dist/editor.cjs +5 -5
- package/dist/iam.cjs +2 -2
- package/dist/icon-button.cjs +2 -2
- package/dist/identity.cjs +10 -10
- package/dist/image-crop.cjs +5 -5
- package/dist/image.cjs +2 -2
- package/dist/index.cjs +609 -609
- package/dist/input-group.cjs +3 -3
- package/dist/item.cjs +2 -2
- package/dist/kanban.cjs +15 -15
- package/dist/limelight-nav.cjs +4 -4
- package/dist/link.cjs +6 -6
- package/dist/lux.config.cjs +8 -8
- package/dist/menu.cjs +5 -5
- package/dist/message-dock.cjs +2 -2
- package/dist/mini-calendar.cjs +3 -3
- package/dist/music-player.cjs +11 -11
- package/dist/next.cjs +5 -5
- package/dist/popover.cjs +2 -2
- package/dist/progress-circle.cjs +3 -3
- package/dist/provider.cjs +5 -5
- package/dist/select.cjs +2 -2
- package/dist/sidebar.cjs +11 -11
- package/dist/site/commerce/ui/context.cjs +3 -3
- package/dist/site/components/analytics.cjs +2 -2
- package/dist/site/components/auth/callback.cjs +2 -2
- package/dist/site/components/auth/login-panel.cjs +4 -4
- package/dist/site/components/auth/login.cjs +2 -2
- package/dist/site/components/auth/widget.cjs +2 -2
- package/dist/site/components/commerce/bag-button.cjs +2 -2
- package/dist/site/components/commerce/buy-button.cjs +2 -2
- package/dist/site/components/commerce/checkout-button.cjs +2 -2
- package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +8 -8
- package/dist/site/components/commerce/checkout-panel/index.cjs +3 -3
- package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +7 -7
- package/dist/site/components/commerce/desktop-bag-popup.cjs +3 -3
- package/dist/site/components/commerce/drawer/index.cjs +6 -6
- package/dist/site/components/commerce/drawer/micro.cjs +3 -3
- package/dist/site/components/commerce/drawer/shell.cjs +2 -2
- package/dist/site/components/contact-dialog/index.cjs +2 -2
- package/dist/site/components/drawer-margin.cjs +2 -2
- package/dist/site/components/footer.cjs +5 -5
- package/dist/site/components/header/desktop.cjs +5 -5
- package/dist/site/components/header/index.cjs +2 -2
- package/dist/site/components/header/mobile-bag-drawer.cjs +1 -1
- package/dist/site/components/header/mobile-nav-menu-ai.cjs +2 -28
- package/dist/site/components/header/mobile-nav-menu-ai.js +2 -24
- package/dist/site/components/header/mobile-nav-menu-item.cjs +4 -4
- package/dist/site/components/header/mobile-nav-menu.cjs +2 -2
- package/dist/site/components/header/mobile.cjs +11 -34
- package/dist/site/components/header/mobile.js +2 -24
- package/dist/site/components/icons/index.cjs +15 -15
- package/dist/site/components/index.cjs +66 -66
- package/dist/site/components/mini-chart/index.cjs +3 -3
- package/dist/site/components/mini-chart/wrapper.cjs +1 -1
- package/dist/site/components/not-found/index.cjs +3 -3
- package/dist/site/components/security/index.cjs +3 -3
- package/dist/site/next/analytics/index.cjs +7 -7
- package/dist/site/next/analytics/pixel-analytics.cjs +1 -1
- package/dist/site/next/index.cjs +6 -6
- package/dist/site/root-layout/index.cjs +9 -9
- package/dist/site/site-def/footer/community.cjs +10 -10
- package/dist/site/site-def/footer/company.d.ts +3 -3
- package/dist/site/site-def/footer/index.cjs +7 -7
- package/dist/site/site-def/index.cjs +6 -6
- package/dist/table.cjs +2 -2
- package/dist/tabs.cjs +3 -3
- package/dist/tag.cjs +6 -6
- package/dist/tags.cjs +2 -2
- package/dist/textarea.cjs +3 -3
- package/dist/tooltip.cjs +4 -4
- package/dist/vite.cjs +3 -3
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var ui = require('@hanzo/ui');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -41,7 +41,7 @@ var AppSwitcherNavigationBar = React__namespace.forwardRef(({ className, apps, c
|
|
|
41
41
|
...props,
|
|
42
42
|
children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-4", children: [
|
|
43
43
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
|
|
44
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
44
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "outline", ...ui.sx("flex items-center gap-2"), children: [
|
|
45
45
|
current?.icon,
|
|
46
46
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: current?.name }),
|
|
47
47
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { style: ui.css("h-4 w-4") })
|
|
@@ -5,7 +5,7 @@ var React4 = require('react');
|
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
var
|
|
8
|
+
var button_cjs = require('./button.cjs');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -8888,7 +8888,7 @@ function AppleCardsCarousel({
|
|
|
8888
8888
|
}) }) }),
|
|
8889
8889
|
showArrows && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
8890
8890
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8891
|
-
|
|
8891
|
+
button_cjs.Button,
|
|
8892
8892
|
{
|
|
8893
8893
|
variant: "ghost",
|
|
8894
8894
|
size: "icon",
|
|
@@ -8906,7 +8906,7 @@ function AppleCardsCarousel({
|
|
|
8906
8906
|
}
|
|
8907
8907
|
),
|
|
8908
8908
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
8909
|
-
|
|
8909
|
+
button_cjs.Button,
|
|
8910
8910
|
{
|
|
8911
8911
|
variant: "ghost",
|
|
8912
8912
|
size: "icon",
|
package/dist/auth.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var browser = require('@hanzo/iam/browser');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var identity_cjs = require('./identity.cjs');
|
|
8
|
+
var provider_cjs = require('./provider.cjs');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function _interopNamespace(e) {
|
|
@@ -41,7 +41,7 @@ function configureAuth(wl) {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function useAuth(defaultRedirect = "/") {
|
|
44
|
-
const whiteLabel =
|
|
44
|
+
const whiteLabel = provider_cjs.useWhiteLabel();
|
|
45
45
|
configureAuth(whiteLabel);
|
|
46
46
|
return React__namespace.useMemo(() => ({
|
|
47
47
|
signIn: (redirect = defaultRedirect) => void browser.startLogin({ redirect }),
|
|
@@ -59,7 +59,7 @@ var AuthProvider = ({ children, redirect = "/", onSignOut }) => {
|
|
|
59
59
|
auth.signOut();
|
|
60
60
|
}
|
|
61
61
|
}), [auth, redirect, onSignOut]);
|
|
62
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
62
|
+
return /* @__PURE__ */ jsxRuntime.jsx(identity_cjs.IdentityProvider, { auth: identityAuth, children });
|
|
63
63
|
};
|
|
64
64
|
var AuthCallback = ({
|
|
65
65
|
onSignedIn,
|
package/dist/avatar.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
6
|
+
var ink_cjs = require('./ink.cjs');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
@@ -119,7 +119,7 @@ var AvatarFallback = React__namespace.forwardRef(
|
|
|
119
119
|
alignItems: "center",
|
|
120
120
|
justifyContent: "center",
|
|
121
121
|
...rest,
|
|
122
|
-
children:
|
|
122
|
+
children: ink_cjs.ink(children ?? (name != null ? getInitials(name) : icon), void 0, { fontWeight: "500" })
|
|
123
123
|
}
|
|
124
124
|
);
|
|
125
125
|
}
|
package/dist/badge.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var gui = require('@hanzo/gui');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
6
|
+
var tooltip_cjs = require('./tooltip.cjs');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -12,7 +12,7 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
12
12
|
|
|
13
13
|
// src/badge.tsx
|
|
14
14
|
function TruncatedTextTooltip({ label, children }) {
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip_cjs.Tooltip, { content: label, positioning: { placement: "top" }, children });
|
|
16
16
|
}
|
|
17
17
|
var SIZE = {
|
|
18
18
|
sm: { padding: 4, height: 18, minHeight: 18 },
|
|
@@ -109,7 +109,7 @@ var Badge = React__default.default.forwardRef(
|
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
111
|
if (loading) {
|
|
112
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading, asChild: true, children: badgeElement });
|
|
113
113
|
}
|
|
114
114
|
return badgeElement;
|
|
115
115
|
}
|
package/dist/button.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
7
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -303,7 +303,7 @@ var Button = React__namespace.forwardRef(
|
|
|
303
303
|
}
|
|
304
304
|
);
|
|
305
305
|
if (loadingSkeleton) {
|
|
306
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
306
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
|
|
307
307
|
}
|
|
308
308
|
return button;
|
|
309
309
|
}
|
|
@@ -352,7 +352,7 @@ var ButtonGroupRadio = React__namespace.forwardRef(
|
|
|
352
352
|
});
|
|
353
353
|
});
|
|
354
354
|
const childrenLength = React__namespace.Children.count(children);
|
|
355
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
355
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
356
356
|
ui.Box,
|
|
357
357
|
{
|
|
358
358
|
ref,
|
package/dist/chrome.cjs
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
7
|
+
var drawer_cjs = require('./drawer.cjs');
|
|
8
|
+
var identity_cjs = require('./identity.cjs');
|
|
9
|
+
var menu_cjs = require('./menu.cjs');
|
|
10
|
+
var useNarrow_cjs = require('./use-narrow.cjs');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
@@ -64,7 +64,7 @@ var Row = ({ item, onDone, menu }) => {
|
|
|
64
64
|
className
|
|
65
65
|
};
|
|
66
66
|
const control = item.href ? /* @__PURE__ */ jsxRuntime.jsx("a", { href: item.href, ...shared, onClick: onDone, children: body }) : /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", ...shared, onClick: activate, children: body });
|
|
67
|
-
return menu ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
return menu ? /* @__PURE__ */ jsxRuntime.jsx(menu_cjs.MenuItem, { value: item.id, asChild: true, children: control }) : control;
|
|
68
68
|
};
|
|
69
69
|
var Switcher = ({
|
|
70
70
|
title,
|
|
@@ -81,7 +81,7 @@ var Switcher = ({
|
|
|
81
81
|
testId
|
|
82
82
|
}) => {
|
|
83
83
|
const [open, setOpen] = React__namespace.useState(false);
|
|
84
|
-
const narrow =
|
|
84
|
+
const narrow = useNarrow_cjs.useIsNarrow();
|
|
85
85
|
const close = React__namespace.useCallback(() => setOpen(false), []);
|
|
86
86
|
const message = status === "loading" ? "Loading\u2026" : status === "error" ? error ?? "Could not reach IAM." : status === "anonymous" ? null : items.length === 0 ? empty : null;
|
|
87
87
|
const rows = status === "anonymous" && onSignIn ? [{ id: "sign-in", label: signInLabel, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { "aria-hidden": "true", style: ui.css("h-4 w-4") }), onSelect: onSignIn }] : status === "ready" ? items : [];
|
|
@@ -90,7 +90,7 @@ var Switcher = ({
|
|
|
90
90
|
message ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { "data-testid": "chrome-message", className: "px-2 py-2 text-sm opacity-70", children: message }) : null,
|
|
91
91
|
rows.map((item) => /* @__PURE__ */ jsxRuntime.jsx(Row, { item, onDone: close, menu }, item.id)),
|
|
92
92
|
footer.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
93
|
-
menu ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
93
|
+
menu ? /* @__PURE__ */ jsxRuntime.jsx(menu_cjs.MenuSeparator, { ...ui.sx("my-1 h-px bg-[var(--color-border-divider,rgba(127,127,127,0.25))]") }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "my-1 h-px bg-[var(--color-border-divider,rgba(127,127,127,0.25))]" }),
|
|
94
94
|
footer.map((item) => /* @__PURE__ */ jsxRuntime.jsx(Row, { item, onDone: close, menu }, item.id))
|
|
95
95
|
] }) : null
|
|
96
96
|
] });
|
|
@@ -115,29 +115,29 @@ var Switcher = ({
|
|
|
115
115
|
}
|
|
116
116
|
);
|
|
117
117
|
if (narrow) {
|
|
118
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
118
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(drawer_cjs.DrawerRoot, { open, onOpenChange: (d) => setOpen(d.open), placement: "bottom", size: "md", children: [
|
|
119
119
|
React__namespace.cloneElement(trigger, { onClick: () => setOpen(true) }),
|
|
120
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
121
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
122
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
/* @__PURE__ */ jsxRuntime.jsxs(drawer_cjs.DrawerContent, { "data-testid": testId ? `${testId}-panel` : void 0, children: [
|
|
121
|
+
/* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerTitle, { children: title }) }),
|
|
122
|
+
/* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerBody, { children: panel(false) })
|
|
123
123
|
] })
|
|
124
124
|
] });
|
|
125
125
|
}
|
|
126
126
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
127
|
-
|
|
127
|
+
menu_cjs.MenuRoot,
|
|
128
128
|
{
|
|
129
129
|
open,
|
|
130
130
|
onOpenChange: (d) => setOpen(d.open),
|
|
131
131
|
positioning: { placement: align === "end" ? "bottom-end" : "bottom-start" },
|
|
132
132
|
children: [
|
|
133
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
133
|
+
/* @__PURE__ */ jsxRuntime.jsx(menu_cjs.MenuTrigger, { asChild: true, children: trigger }),
|
|
134
|
+
/* @__PURE__ */ jsxRuntime.jsx(menu_cjs.MenuContent, { minW: "16rem", "data-testid": testId ? `${testId}-panel` : void 0, children: panel(true) })
|
|
135
135
|
]
|
|
136
136
|
}
|
|
137
137
|
);
|
|
138
138
|
};
|
|
139
139
|
var OrgSwitcher = () => {
|
|
140
|
-
const id =
|
|
140
|
+
const id = identity_cjs.useIdentity();
|
|
141
141
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
142
142
|
Switcher,
|
|
143
143
|
{
|
|
@@ -161,7 +161,7 @@ var OrgSwitcher = () => {
|
|
|
161
161
|
);
|
|
162
162
|
};
|
|
163
163
|
var ProjectSwitcher = () => {
|
|
164
|
-
const id =
|
|
164
|
+
const id = identity_cjs.useIdentity();
|
|
165
165
|
if (id.status === "ready" && id.projects.length === 0) return null;
|
|
166
166
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
167
|
Switcher,
|
|
@@ -185,7 +185,7 @@ var ProjectSwitcher = () => {
|
|
|
185
185
|
);
|
|
186
186
|
};
|
|
187
187
|
var UserMenu = ({ items = [] }) => {
|
|
188
|
-
const id =
|
|
188
|
+
const id = identity_cjs.useIdentity();
|
|
189
189
|
const who = id.account?.displayName || id.account?.email || id.account?.name || "Account";
|
|
190
190
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
191
191
|
Switcher,
|
|
@@ -230,8 +230,8 @@ var AppNav = ({
|
|
|
230
230
|
userItems,
|
|
231
231
|
children
|
|
232
232
|
}) => {
|
|
233
|
-
const id =
|
|
234
|
-
const narrow =
|
|
233
|
+
const id = identity_cjs.useIdentity();
|
|
234
|
+
const narrow = useNarrow_cjs.useIsNarrow();
|
|
235
235
|
const [menu, setMenu] = React__namespace.useState(false);
|
|
236
236
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
237
237
|
ui.Box,
|
|
@@ -240,7 +240,7 @@ var AppNav = ({
|
|
|
240
240
|
"data-testid": "app-nav",
|
|
241
241
|
className: "sticky top-0 z-50 border-b border-[var(--color-border-divider,rgba(127,127,127,0.25))] bg-[var(--color-bg-body,inherit)]",
|
|
242
242
|
children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "mx-auto flex h-14 max-w-7xl items-center gap-2 px-4", children: [
|
|
243
|
-
narrow && links.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
243
|
+
narrow && links.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(drawer_cjs.DrawerRoot, { open: menu, onOpenChange: (d) => setMenu(d.open), placement: "bottom", size: "md", children: [
|
|
244
244
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
245
245
|
ui.Box,
|
|
246
246
|
{
|
|
@@ -253,9 +253,9 @@ var AppNav = ({
|
|
|
253
253
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Menu, { "aria-hidden": "true", style: ui.css("h-5 w-5") })
|
|
254
254
|
}
|
|
255
255
|
),
|
|
256
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
257
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsxs(drawer_cjs.DrawerContent, { "data-testid": "nav-menu-panel", children: [
|
|
257
|
+
/* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerHeader, { children: /* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerTitle, { children: "Menu" }) }),
|
|
258
|
+
/* @__PURE__ */ jsxRuntime.jsx(drawer_cjs.DrawerBody, { children: links.map((l) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
259
|
ui.Box,
|
|
260
260
|
{
|
|
261
261
|
tag: "a",
|
package/dist/code-block.cjs
CHANGED
|
@@ -5,9 +5,9 @@ var React = require('react');
|
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var shiki = require('shiki');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var badge_cjs = require('./badge.cjs');
|
|
9
|
+
var button_cjs = require('./button.cjs');
|
|
10
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
@@ -175,10 +175,10 @@ var CodeBlock = React__namespace.forwardRef(
|
|
|
175
175
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { style: ui.css("h-3.5 w-3.5 text-muted-foreground") }),
|
|
176
176
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: filename })
|
|
177
177
|
] }),
|
|
178
|
-
language && /* @__PURE__ */ jsxRuntime.jsx(
|
|
178
|
+
language && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: language })
|
|
179
179
|
] }),
|
|
180
180
|
showCopyButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
181
|
-
|
|
181
|
+
button_cjs.Button,
|
|
182
182
|
{
|
|
183
183
|
variant: "ghost",
|
|
184
184
|
size: "sm",
|
|
@@ -192,8 +192,8 @@ var CodeBlock = React__namespace.forwardRef(
|
|
|
192
192
|
)
|
|
193
193
|
] }),
|
|
194
194
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "overflow-auto", style: { maxHeight }, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "p-4 space-y-2", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-4", children: [
|
|
195
|
-
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(
|
|
196
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
195
|
+
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { "data-testid": "skeleton", ...ui.sx("h-4 w-8") }),
|
|
196
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { "data-testid": "skeleton", ...ui.sx("h-4 flex-1") })
|
|
197
197
|
] }, i)) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-mono", children: lines.map((line, index) => {
|
|
198
198
|
const lineNumber = index + 1;
|
|
199
199
|
const isHighlighted = highlightLines.includes(lineNumber);
|
package/dist/code-compare.cjs
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var ui = require('@hanzo/ui');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
7
|
+
var badge_cjs = require('./badge.cjs');
|
|
8
|
+
var button_cjs = require('./button.cjs');
|
|
9
|
+
var codeDiff_cjs = require('./code-diff.cjs');
|
|
10
|
+
var codeSnippet_cjs = require('./code-snippet.cjs');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
@@ -143,7 +143,7 @@ ${file.content}` : "";
|
|
|
143
143
|
);
|
|
144
144
|
const renderFileSelector = () => /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-2 flex-wrap", children: files.map((file, index) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
145
145
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
146
|
-
|
|
146
|
+
button_cjs.Button,
|
|
147
147
|
{
|
|
148
148
|
variant: selectedFiles.includes(file.id) ? "default" : "outline",
|
|
149
149
|
size: "sm",
|
|
@@ -168,7 +168,7 @@ ${file.content}` : "";
|
|
|
168
168
|
...ui.sx("gap-2"),
|
|
169
169
|
children: [
|
|
170
170
|
file.label || file.filename,
|
|
171
|
-
file.version && /* @__PURE__ */ jsxRuntime.jsx(
|
|
171
|
+
file.version && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: file.version })
|
|
172
172
|
]
|
|
173
173
|
}
|
|
174
174
|
),
|
|
@@ -199,7 +199,7 @@ ${file.content}` : "";
|
|
|
199
199
|
] })
|
|
200
200
|
] }) }),
|
|
201
201
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex-1 min-h-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
202
|
-
|
|
202
|
+
codeDiff_cjs.CodeDiff,
|
|
203
203
|
{
|
|
204
204
|
oldCode: file1.content,
|
|
205
205
|
newCode: file2.content,
|
|
@@ -221,7 +221,7 @@ ${file.content}` : "";
|
|
|
221
221
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center justify-center h-32 text-muted-foreground", children: "Select two files to compare" });
|
|
222
222
|
}
|
|
223
223
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
224
|
-
|
|
224
|
+
codeDiff_cjs.CodeDiff,
|
|
225
225
|
{
|
|
226
226
|
oldCode: file1.content,
|
|
227
227
|
newCode: file2.content,
|
|
@@ -259,7 +259,7 @@ ${file.content}` : "";
|
|
|
259
259
|
handleScroll("base", target.scrollTop);
|
|
260
260
|
},
|
|
261
261
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
262
|
-
|
|
262
|
+
codeSnippet_cjs.CodeSnippet,
|
|
263
263
|
{
|
|
264
264
|
code: base.content,
|
|
265
265
|
language: base.language,
|
|
@@ -290,7 +290,7 @@ ${file.content}` : "";
|
|
|
290
290
|
handleScroll("current", target.scrollTop);
|
|
291
291
|
},
|
|
292
292
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
293
|
-
|
|
293
|
+
codeSnippet_cjs.CodeSnippet,
|
|
294
294
|
{
|
|
295
295
|
code: current.content,
|
|
296
296
|
language: current.language,
|
|
@@ -321,7 +321,7 @@ ${file.content}` : "";
|
|
|
321
321
|
handleScroll("incoming", target.scrollTop);
|
|
322
322
|
},
|
|
323
323
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
-
|
|
324
|
+
codeSnippet_cjs.CodeSnippet,
|
|
325
325
|
{
|
|
326
326
|
code: incoming.content,
|
|
327
327
|
language: incoming.language,
|
|
@@ -341,7 +341,7 @@ ${file.content}` : "";
|
|
|
341
341
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-t bg-muted/30", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "px-4 py-2", children: [
|
|
342
342
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
|
|
343
343
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: "Merge Conflicts" }),
|
|
344
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
344
|
+
/* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "red", ...ui.sx("text-xs"), children: mergeState.conflicts.length })
|
|
345
345
|
] }),
|
|
346
346
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "mt-2 space-y-2", children: mergeState.conflicts.map((conflict, index) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 text-xs", children: [
|
|
347
347
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
@@ -352,7 +352,7 @@ ${file.content}` : "";
|
|
|
352
352
|
] }),
|
|
353
353
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-1", children: [
|
|
354
354
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
355
|
-
|
|
355
|
+
button_cjs.Button,
|
|
356
356
|
{
|
|
357
357
|
variant: "outline",
|
|
358
358
|
size: "sm",
|
|
@@ -362,7 +362,7 @@ ${file.content}` : "";
|
|
|
362
362
|
}
|
|
363
363
|
),
|
|
364
364
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
365
|
-
|
|
365
|
+
button_cjs.Button,
|
|
366
366
|
{
|
|
367
367
|
variant: "outline",
|
|
368
368
|
size: "sm",
|
|
@@ -392,7 +392,7 @@ ${file.content}` : "";
|
|
|
392
392
|
/* @__PURE__ */ jsxRuntime.jsx(ui.TabsTrigger, { value: "three-way", ...ui.sx("text-xs"), children: "Three-way" })
|
|
393
393
|
] }) }),
|
|
394
394
|
showCopyButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
395
|
-
|
|
395
|
+
button_cjs.Button,
|
|
396
396
|
{
|
|
397
397
|
variant: "ghost",
|
|
398
398
|
size: "sm",
|
|
@@ -402,7 +402,7 @@ ${file.content}` : "";
|
|
|
402
402
|
}
|
|
403
403
|
),
|
|
404
404
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
|
|
405
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
405
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "sm", ...ui.sx("h-8 w-8 p-0"), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { style: ui.css("h-3.5 w-3.5") }) }) }),
|
|
406
406
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenuContent, { align: "end", children: [
|
|
407
407
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
408
408
|
ui.DropdownMenuItem,
|
package/dist/code-diff.cjs
CHANGED
|
@@ -5,9 +5,9 @@ var ui = require('@hanzo/ui');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var shiki = require('shiki');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
8
|
+
var badge_cjs = require('./badge.cjs');
|
|
9
|
+
var button_cjs = require('./button.cjs');
|
|
10
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
function _interopNamespace(e) {
|
|
@@ -368,7 +368,7 @@ ${newCode}`;
|
|
|
368
368
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
369
369
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.GitCompare, { style: ui.css("h-4 w-4 text-muted-foreground") }),
|
|
370
370
|
filename && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: filename }),
|
|
371
|
-
language && /* @__PURE__ */ jsxRuntime.jsx(
|
|
371
|
+
language && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: language })
|
|
372
372
|
] }),
|
|
373
373
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 text-xs text-muted-foreground", children: [
|
|
374
374
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { tag: "span", className: "flex items-center gap-1", children: [
|
|
@@ -396,7 +396,7 @@ ${newCode}`;
|
|
|
396
396
|
}
|
|
397
397
|
),
|
|
398
398
|
showCopyButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
399
|
-
|
|
399
|
+
button_cjs.Button,
|
|
400
400
|
{
|
|
401
401
|
variant: "ghost",
|
|
402
402
|
size: "sm",
|
|
@@ -411,8 +411,8 @@ ${newCode}`;
|
|
|
411
411
|
] })
|
|
412
412
|
] }),
|
|
413
413
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "overflow-auto", style: { maxHeight }, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "p-4 space-y-2", children: Array.from({ length: 10 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-4", children: [
|
|
414
|
-
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(
|
|
415
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
414
|
+
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { ...ui.sx("h-4 w-8") }),
|
|
415
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { ...ui.sx("h-4 flex-1") })
|
|
416
416
|
] }, i)) }) : view === "unified" ? renderUnifiedView() : renderSplitView() })
|
|
417
417
|
]
|
|
418
418
|
}
|
package/dist/code-editor.cjs
CHANGED
|
@@ -7,7 +7,7 @@ var lucideReact = require('lucide-react');
|
|
|
7
7
|
var nextThemes = require('next-themes');
|
|
8
8
|
var sonner = require('sonner');
|
|
9
9
|
var ui = require('@hanzo/ui');
|
|
10
|
-
var
|
|
10
|
+
var button_cjs = require('./button.cjs');
|
|
11
11
|
var jsxRuntime = require('react/jsx-runtime');
|
|
12
12
|
|
|
13
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -151,7 +151,7 @@ var CodeEditor = React__namespace.forwardRef(
|
|
|
151
151
|
(showLanguageSelector || showCopyButton) && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between border-b bg-muted/50 px-3 py-2", children: [
|
|
152
152
|
showLanguageSelector && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
|
|
153
153
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
154
|
-
|
|
154
|
+
button_cjs.Button,
|
|
155
155
|
{
|
|
156
156
|
variant: "ghost",
|
|
157
157
|
size: "sm",
|
|
@@ -180,7 +180,7 @@ var CodeEditor = React__namespace.forwardRef(
|
|
|
180
180
|
)
|
|
181
181
|
] }),
|
|
182
182
|
showCopyButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
183
|
-
|
|
183
|
+
button_cjs.Button,
|
|
184
184
|
{
|
|
185
185
|
variant: "ghost",
|
|
186
186
|
size: "sm",
|
package/dist/code-explorer.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var ui = require('@hanzo/ui');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
|
+
var input_cjs = require('./input.cjs');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function _interopNamespace(e) {
|
|
@@ -227,7 +227,7 @@ var CodeExplorer = React__namespace.forwardRef(
|
|
|
227
227
|
showSearch && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-2 border-b px-4 py-2", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "relative flex-1", children: [
|
|
228
228
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { style: ui.css("absolute left-2 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground") }),
|
|
229
229
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
|
|
230
|
+
input_cjs.Input,
|
|
231
231
|
{
|
|
232
232
|
value: searchTerm,
|
|
233
233
|
onChange: (e) => setSearchTerm(e.target.value),
|
|
@@ -236,7 +236,7 @@ var CodeExplorer = React__namespace.forwardRef(
|
|
|
236
236
|
}
|
|
237
237
|
),
|
|
238
238
|
searchTerm && /* @__PURE__ */ jsxRuntime.jsx(
|
|
239
|
-
|
|
239
|
+
button_cjs.Button,
|
|
240
240
|
{
|
|
241
241
|
variant: "ghost",
|
|
242
242
|
size: "sm",
|
package/dist/code-preview.cjs
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
7
|
+
var badge_cjs = require('./badge.cjs');
|
|
8
|
+
var button_cjs = require('./button.cjs');
|
|
9
|
+
var codeSnippet_cjs = require('./code-snippet.cjs');
|
|
10
|
+
var separator_cjs = require('./separator.cjs');
|
|
11
|
+
var toggle_cjs = require('./toggle.cjs');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
|
|
14
14
|
function _interopNamespace(e) {
|
|
@@ -200,10 +200,10 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
200
200
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
201
201
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Terminal, { style: ui.css("h-4 w-4") }),
|
|
202
202
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: "Console" }),
|
|
203
|
-
results.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
203
|
+
results.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: results.length })
|
|
204
204
|
] }),
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
206
|
-
|
|
206
|
+
button_cjs.Button,
|
|
207
207
|
{
|
|
208
208
|
variant: "ghost",
|
|
209
209
|
size: "sm",
|
|
@@ -253,9 +253,9 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
253
253
|
...ui.sx("relative flex items-center gap-2 data-[state=active]:bg-muted"),
|
|
254
254
|
children: [
|
|
255
255
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: file.filename }),
|
|
256
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { variant: "outline", ...ui.sx("text-xs"), children: file.language }),
|
|
257
257
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
258
|
-
|
|
258
|
+
button_cjs.Button,
|
|
259
259
|
{
|
|
260
260
|
variant: "ghost",
|
|
261
261
|
size: "sm",
|
|
@@ -275,7 +275,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
275
275
|
),
|
|
276
276
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
277
277
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
278
|
-
|
|
278
|
+
toggle_cjs.Toggle,
|
|
279
279
|
{
|
|
280
280
|
pressed: isPreviewVisible,
|
|
281
281
|
onPressedChange: setIsPreviewVisible,
|
|
@@ -285,7 +285,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
285
285
|
}
|
|
286
286
|
),
|
|
287
287
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
288
|
-
|
|
288
|
+
toggle_cjs.Toggle,
|
|
289
289
|
{
|
|
290
290
|
pressed: isConsoleVisible,
|
|
291
291
|
onPressedChange: setIsConsoleVisible,
|
|
@@ -295,7 +295,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
295
295
|
}
|
|
296
296
|
),
|
|
297
297
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
298
|
-
|
|
298
|
+
button_cjs.Button,
|
|
299
299
|
{
|
|
300
300
|
variant: "outline",
|
|
301
301
|
size: "sm",
|
|
@@ -309,7 +309,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
allowFullscreen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
312
|
-
|
|
312
|
+
button_cjs.Button,
|
|
313
313
|
{
|
|
314
314
|
variant: "ghost",
|
|
315
315
|
size: "sm",
|
|
@@ -327,7 +327,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
327
327
|
value: file.filename,
|
|
328
328
|
...ui.sx("m-0 h-full"),
|
|
329
329
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
330
|
-
|
|
330
|
+
codeSnippet_cjs.CodeSnippet,
|
|
331
331
|
{
|
|
332
332
|
code: file.content,
|
|
333
333
|
language: file.language,
|
|
@@ -342,7 +342,7 @@ var CodePreview = React__namespace.forwardRef(
|
|
|
342
342
|
file.filename
|
|
343
343
|
)) }) }),
|
|
344
344
|
(isPreviewVisible || isConsoleVisible) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
345
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
345
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
346
346
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-col lg:flex-row min-h-0", children: [
|
|
347
347
|
isPreviewVisible && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
348
348
|
ui.Box,
|