@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
package/dist/code-snippet.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) {
|
|
@@ -155,11 +155,11 @@ var CodeSnippet = React__namespace.forwardRef(
|
|
|
155
155
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileText, { style: ui.css("h-3.5 w-3.5 text-muted-foreground") }),
|
|
156
156
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: filename })
|
|
157
157
|
] }),
|
|
158
|
-
showLanguageBadge && language && /* @__PURE__ */ jsxRuntime.jsx(
|
|
158
|
+
showLanguageBadge && language && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: language })
|
|
159
159
|
] }),
|
|
160
160
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
|
|
161
161
|
expandable && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
162
|
-
|
|
162
|
+
button_cjs.Button,
|
|
163
163
|
{
|
|
164
164
|
variant: "ghost",
|
|
165
165
|
size: "sm",
|
|
@@ -172,7 +172,7 @@ var CodeSnippet = React__namespace.forwardRef(
|
|
|
172
172
|
}
|
|
173
173
|
),
|
|
174
174
|
showCopyButton && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
175
|
-
|
|
175
|
+
button_cjs.Button,
|
|
176
176
|
{
|
|
177
177
|
variant: "ghost",
|
|
178
178
|
size: "sm",
|
|
@@ -195,8 +195,8 @@ var CodeSnippet = React__namespace.forwardRef(
|
|
|
195
195
|
},
|
|
196
196
|
children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "p-4 space-y-2", children: Array.from({ length: Math.min(lines.length || 5, 10) }).map(
|
|
197
197
|
(_, i) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-4", children: [
|
|
198
|
-
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(
|
|
199
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
198
|
+
showLineNumbers && /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { ...ui.sx("h-4 w-8") }),
|
|
199
|
+
/* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { ...ui.sx("h-4 flex-1") })
|
|
200
200
|
] }, i)
|
|
201
201
|
) }) : /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-mono", children: lines.map((line, index) => {
|
|
202
202
|
const lineNumber = index + startLineNumber;
|
|
@@ -230,7 +230,7 @@ var CodeSnippet = React__namespace.forwardRef(
|
|
|
230
230
|
),
|
|
231
231
|
expandable && !isExpanded && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-background to-transparent pointer-events-none" }),
|
|
232
232
|
variant === "minimal" && showCopyButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
233
|
-
|
|
233
|
+
button_cjs.Button,
|
|
234
234
|
{
|
|
235
235
|
variant: "ghost",
|
|
236
236
|
size: "sm",
|
package/dist/code-terminal.cjs
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
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
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
|
+
var input_cjs = require('./input.cjs');
|
|
9
|
+
var separator_cjs = require('./separator.cjs');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
@@ -343,7 +343,7 @@ var CodeTerminal = React__namespace.forwardRef(
|
|
|
343
343
|
] }),
|
|
344
344
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
|
|
345
345
|
allowClear && /* @__PURE__ */ jsxRuntime.jsx(
|
|
346
|
-
|
|
346
|
+
button_cjs.Button,
|
|
347
347
|
{
|
|
348
348
|
variant: "ghost",
|
|
349
349
|
size: "sm",
|
|
@@ -353,7 +353,7 @@ var CodeTerminal = React__namespace.forwardRef(
|
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
355
|
allowCopy && /* @__PURE__ */ jsxRuntime.jsx(
|
|
356
|
-
|
|
356
|
+
button_cjs.Button,
|
|
357
357
|
{
|
|
358
358
|
variant: "ghost",
|
|
359
359
|
size: "sm",
|
|
@@ -363,7 +363,7 @@ var CodeTerminal = React__namespace.forwardRef(
|
|
|
363
363
|
}
|
|
364
364
|
),
|
|
365
365
|
allowDownload && /* @__PURE__ */ jsxRuntime.jsx(
|
|
366
|
-
|
|
366
|
+
button_cjs.Button,
|
|
367
367
|
{
|
|
368
368
|
variant: "ghost",
|
|
369
369
|
size: "sm",
|
|
@@ -373,7 +373,7 @@ var CodeTerminal = React__namespace.forwardRef(
|
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
375
|
allowFullscreen && /* @__PURE__ */ jsxRuntime.jsx(
|
|
376
|
-
|
|
376
|
+
button_cjs.Button,
|
|
377
377
|
{
|
|
378
378
|
variant: "ghost",
|
|
379
379
|
size: "sm",
|
|
@@ -402,12 +402,12 @@ var CodeTerminal = React__namespace.forwardRef(
|
|
|
402
402
|
)
|
|
403
403
|
] }, line.id)) }) }),
|
|
404
404
|
allowInput && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
405
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
405
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
406
406
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "form", onSubmit: handleInputSubmit, className: "p-4", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 font-mono", children: [
|
|
407
407
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { style: ui.css("h-4 w-4 flex-shrink-0") }),
|
|
408
408
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "flex-shrink-0", children: prompt }),
|
|
409
409
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
410
|
-
|
|
410
|
+
input_cjs.Input,
|
|
411
411
|
{
|
|
412
412
|
ref: inputRef,
|
|
413
413
|
value: input,
|
package/dist/collapsible.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 link_cjs = require('./link.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -49,7 +49,7 @@ var CollapsibleDetails = (props) => {
|
|
|
49
49
|
const text = isExpanded ? textProp?.[1] ?? "Hide details" : textProp?.[0] ?? "View details";
|
|
50
50
|
return /* @__PURE__ */ jsxRuntime.jsxs(gui.Collapsible, { open: isExpanded, onOpenChange: setIsExpanded, children: [
|
|
51
51
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
-
|
|
52
|
+
link_cjs.Link,
|
|
53
53
|
{
|
|
54
54
|
...ui.sx("text-sm underline decoration-dashed w-fit"),
|
|
55
55
|
style: ui.css("text-sm underline decoration-dashed w-fit"),
|
|
@@ -83,7 +83,7 @@ var CollapsibleList = (props) => {
|
|
|
83
83
|
return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { width: "100%", ...rest, children: [
|
|
84
84
|
items.slice(0, isExpanded ? void 0 : cutLength).map(renderItem),
|
|
85
85
|
items.length > cutLength && /* @__PURE__ */ jsxRuntime.jsx(
|
|
86
|
-
|
|
86
|
+
link_cjs.Link,
|
|
87
87
|
{
|
|
88
88
|
...ui.sx("text-sm underline decoration-dashed w-fit min-w-0"),
|
|
89
89
|
style: ui.css("text-sm underline decoration-dashed w-fit min-w-0"),
|
package/dist/color-picker.cjs
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var reactColorful = require('react-colorful');
|
|
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) {
|
|
@@ -37,7 +37,7 @@ var ColorPicker = React__namespace.forwardRef(
|
|
|
37
37
|
};
|
|
38
38
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { ref, className: ui.cn("flex items-center gap-2", className), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { children: [
|
|
39
39
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
|
|
40
|
+
button_cjs.Button,
|
|
41
41
|
{
|
|
42
42
|
variant: "outline",
|
|
43
43
|
...ui.sx("w-[220px] justify-start text-left font-normal"),
|
|
@@ -57,7 +57,7 @@ var ColorPicker = React__namespace.forwardRef(
|
|
|
57
57
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverContent, { ...ui.sx("w-auto p-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-3", children: [
|
|
58
58
|
/* @__PURE__ */ jsxRuntime.jsx(reactColorful.HexColorPicker, { color, onChange: handleChange }),
|
|
59
59
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
60
|
-
|
|
60
|
+
input_cjs.Input,
|
|
61
61
|
{
|
|
62
62
|
value: color,
|
|
63
63
|
onChange: (e) => handleChange(e.target.value),
|
package/dist/combobox.cjs
CHANGED
|
@@ -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) {
|
|
@@ -38,7 +38,7 @@ function Combobox({
|
|
|
38
38
|
const [searchValue, setSearchValue] = React__namespace.useState("");
|
|
39
39
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Popover, { open, onOpenChange: setOpen, children: [
|
|
40
40
|
/* @__PURE__ */ jsxRuntime.jsx(ui.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
41
|
-
|
|
41
|
+
button_cjs.Button,
|
|
42
42
|
{
|
|
43
43
|
variant: "outline",
|
|
44
44
|
role: "combobox",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -31,9 +31,9 @@ var CommunicationNavigationBar = React__namespace.forwardRef(({ className, conta
|
|
|
31
31
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "nav", ref, className: ui.cn("border-b", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "container flex h-16 items-center justify-between", children: [
|
|
32
32
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-3", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h2", className: "text-lg font-semibold", children: contactName }) }),
|
|
33
33
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
|
|
34
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Phone, { style: ui.css("h-5 w-5") }) }),
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Video, { style: ui.css("h-5 w-5") }) }),
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { style: ui.css("h-5 w-5") }) })
|
|
37
37
|
] })
|
|
38
38
|
] }) });
|
|
39
39
|
});
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -31,8 +31,8 @@ var DashboardNavigationBar = React__namespace.forwardRef(({ className, title, us
|
|
|
31
31
|
return /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "nav", ref, className: ui.cn("border-b", className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "container flex h-16 items-center justify-between", children: [
|
|
32
32
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h1", className: "text-xl font-semibold", children: title }),
|
|
33
33
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-4", children: [
|
|
34
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { style: ui.css("h-5 w-5") }) }),
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Bell, { style: ui.css("h-5 w-5") }) }),
|
|
36
36
|
user && /* @__PURE__ */ jsxRuntime.jsxs(ui.Avatar, { children: [
|
|
37
37
|
/* @__PURE__ */ jsxRuntime.jsx(ui.AvatarImage, { src: user.avatar }),
|
|
38
38
|
/* @__PURE__ */ jsxRuntime.jsx(ui.AvatarFallback, { children: user.name[0] })
|
package/dist/dialog-stack.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -43,7 +43,7 @@ var DialogStack = React__namespace.forwardRef(
|
|
|
43
43
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "mb-4 flex items-center justify-between", children: [
|
|
44
44
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h3", className: "text-lg font-semibold", children: dialog.title }),
|
|
45
45
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
-
|
|
46
|
+
button_cjs.Button,
|
|
47
47
|
{
|
|
48
48
|
variant: "ghost",
|
|
49
49
|
size: "icon",
|
package/dist/dialog.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 closeButton_cjs = require('./close-button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -151,7 +151,7 @@ var DialogContent = React__namespace.forwardRef(function DialogContent2(props, r
|
|
|
151
151
|
});
|
|
152
152
|
var DialogCloseTrigger = React__namespace.forwardRef(function DialogCloseTrigger2(props, ref) {
|
|
153
153
|
const { className, ...rest } = props;
|
|
154
|
-
return /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
154
|
+
return /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(closeButton_cjs.CloseButton, { ref, className, ...rest, children: props.children }) });
|
|
155
155
|
});
|
|
156
156
|
var DialogHeader = React__namespace.forwardRef(function DialogHeader2(props, ref) {
|
|
157
157
|
const { startElement: startElementProp, onBackToClick, className, children, ...rest } = props;
|
package/dist/drawer.cjs
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
var gui = require('@hanzo/gui');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
6
|
+
var closeButton_cjs = require('./close-button.cjs');
|
|
7
|
+
var ink_cjs = require('./ink.cjs');
|
|
8
|
+
var useNarrow_cjs = require('./use-narrow.cjs');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function _interopNamespace(e) {
|
|
@@ -50,7 +50,7 @@ var DrawerRoot = (props) => {
|
|
|
50
50
|
const [uncontrolled, setUncontrolled] = React__namespace.useState(defaultOpen ?? false);
|
|
51
51
|
const isControlled = open !== void 0;
|
|
52
52
|
const isOpen = isControlled ? open : uncontrolled;
|
|
53
|
-
const narrow =
|
|
53
|
+
const narrow = useNarrow_cjs.useIsNarrow();
|
|
54
54
|
const setOpen = React__namespace.useCallback((nextOpen) => {
|
|
55
55
|
if (!isControlled) setUncontrolled(nextOpen);
|
|
56
56
|
onOpenChange?.({ open: nextOpen });
|
|
@@ -164,7 +164,7 @@ var DrawerCloseTrigger = React__namespace.forwardRef(function DrawerCloseTrigger
|
|
|
164
164
|
return (
|
|
165
165
|
// Placement belongs to the surrounding box, not to the button: CloseButton
|
|
166
166
|
// is a fixed 20px control and has no opinion about where it sits.
|
|
167
|
-
/* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "absolute", top: 28, right: 20, zIndex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
167
|
+
/* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "absolute", top: 28, right: 20, zIndex: 1, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(closeButton_cjs.CloseButton, { ref, ...props }) }) })
|
|
168
168
|
);
|
|
169
169
|
});
|
|
170
170
|
var DrawerTrigger = ({ asChild = true, children, ...rest }) => {
|
|
@@ -174,9 +174,9 @@ var DrawerTrigger = ({ asChild = true, children, ...rest }) => {
|
|
|
174
174
|
}
|
|
175
175
|
return /* @__PURE__ */ jsxRuntime.jsx(gui.Dialog.Trigger, { asChild, ...rest, children });
|
|
176
176
|
};
|
|
177
|
-
var DrawerHeader = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: 6, padding: 24, paddingBottom: 0, ...props, children:
|
|
178
|
-
var DrawerBody = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { flex: 1, overflow: "scroll", padding: 24, ...props, children:
|
|
179
|
-
var DrawerFooter = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { alignItems: "center", justifyContent: "flex-end", gap: 8, padding: 24, paddingTop: 0, ...props, children:
|
|
177
|
+
var DrawerHeader = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: 6, padding: 24, paddingBottom: 0, ...props, children: ink_cjs.ink(children) });
|
|
178
|
+
var DrawerBody = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { flex: 1, overflow: "scroll", padding: 24, ...props, children: ink_cjs.ink(children) });
|
|
179
|
+
var DrawerFooter = ({ children, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { alignItems: "center", justifyContent: "flex-end", gap: 8, padding: 24, paddingTop: 0, ...props, children: ink_cjs.ink(children) });
|
|
180
180
|
var DrawerTitle = gui.Dialog.Title;
|
|
181
181
|
var DrawerDescription = gui.Dialog.Description;
|
|
182
182
|
var DrawerActionTrigger = gui.Dialog.Close;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -32,9 +32,9 @@ var ECommerceNavigationBar = React__namespace.forwardRef(({ className, logo, cat
|
|
|
32
32
|
logo && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-bold", children: logo }),
|
|
33
33
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex gap-6", children: categories.map((cat) => /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "a", href: cat.href, className: "text-sm font-medium", children: cat.label }, cat.href)) }),
|
|
34
34
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { style: ui.css("h-5 w-5") }) }),
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { style: ui.css("h-5 w-5") }) }),
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "ghost", size: "icon", ...ui.sx("relative"), children: [
|
|
38
38
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ShoppingCart, { style: ui.css("h-5 w-5") }),
|
|
39
39
|
cartCount > 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-xs text-primary-foreground", children: cartCount })
|
|
40
40
|
] })
|
package/dist/editor.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -42,7 +42,7 @@ var Editor = React__namespace.forwardRef(
|
|
|
42
42
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { ref, className: ui.cn("space-y-2", className), ...props, children: [
|
|
43
43
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-1 border-b pb-2", children: [
|
|
44
44
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
-
|
|
45
|
+
button_cjs.Button,
|
|
46
46
|
{
|
|
47
47
|
variant: "ghost",
|
|
48
48
|
size: "sm",
|
|
@@ -52,7 +52,7 @@ var Editor = React__namespace.forwardRef(
|
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
54
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
55
|
-
|
|
55
|
+
button_cjs.Button,
|
|
56
56
|
{
|
|
57
57
|
variant: "ghost",
|
|
58
58
|
size: "sm",
|
|
@@ -62,7 +62,7 @@ var Editor = React__namespace.forwardRef(
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
65
|
-
|
|
65
|
+
button_cjs.Button,
|
|
66
66
|
{
|
|
67
67
|
variant: "ghost",
|
|
68
68
|
size: "sm",
|
|
@@ -72,7 +72,7 @@ var Editor = React__namespace.forwardRef(
|
|
|
72
72
|
}
|
|
73
73
|
),
|
|
74
74
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
-
|
|
75
|
+
button_cjs.Button,
|
|
76
76
|
{
|
|
77
77
|
variant: "ghost",
|
|
78
78
|
size: "sm",
|
package/dist/iam.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var whiteLabel_cjs = require('./white-label.cjs');
|
|
4
4
|
|
|
5
5
|
// src/iam.ts
|
|
6
6
|
var IamError = class extends Error {
|
|
@@ -16,7 +16,7 @@ function isSignedOut(status, msg) {
|
|
|
16
16
|
return status === 401 || SIGNED_OUT.test(msg);
|
|
17
17
|
}
|
|
18
18
|
function iamBase(host) {
|
|
19
|
-
const wl = typeof host === "object" && host !== null ? host :
|
|
19
|
+
const wl = typeof host === "object" && host !== null ? host : whiteLabel_cjs.resolveWhiteLabel(host);
|
|
20
20
|
return `${wl.issuer}/v1/iam`;
|
|
21
21
|
}
|
|
22
22
|
async function read(call, verb, params) {
|
package/dist/icon-button.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var gui = require('@hanzo/gui');
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
5
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
8
|
function _interopNamespace(e) {
|
|
@@ -166,7 +166,7 @@ var IconButton = React__namespace.forwardRef(
|
|
|
166
166
|
}
|
|
167
167
|
);
|
|
168
168
|
if (loadingSkeleton) {
|
|
169
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading: loadingSkeleton, asChild: true, ref, children: button });
|
|
170
170
|
}
|
|
171
171
|
return button;
|
|
172
172
|
}
|
package/dist/identity.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var iam_cjs = require('./iam.cjs');
|
|
6
|
+
var provider_cjs = require('./provider.cjs');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
@@ -72,8 +72,8 @@ var IdentityProvider = ({
|
|
|
72
72
|
auth = defaultAuth,
|
|
73
73
|
loginPath = "/login"
|
|
74
74
|
}) => {
|
|
75
|
-
const whiteLabel =
|
|
76
|
-
const base = React__namespace.useMemo(() =>
|
|
75
|
+
const whiteLabel = provider_cjs.useWhiteLabel();
|
|
76
|
+
const base = React__namespace.useMemo(() => iam_cjs.iamBase(whiteLabel), [whiteLabel]);
|
|
77
77
|
const [status, setStatus] = React__namespace.useState("loading");
|
|
78
78
|
const [account, setAccount] = React__namespace.useState(null);
|
|
79
79
|
const [orgs, setOrgs] = React__namespace.useState([]);
|
|
@@ -96,7 +96,7 @@ var IdentityProvider = ({
|
|
|
96
96
|
}
|
|
97
97
|
const call = { base, token, signal: ac.signal };
|
|
98
98
|
try {
|
|
99
|
-
const me = await
|
|
99
|
+
const me = await iam_cjs.iam.account(call);
|
|
100
100
|
if (!live) return;
|
|
101
101
|
if (!me) {
|
|
102
102
|
setStatus("anonymous");
|
|
@@ -105,8 +105,8 @@ var IdentityProvider = ({
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
setAccount(me);
|
|
108
|
-
const rows = await
|
|
109
|
-
if (e instanceof
|
|
108
|
+
const rows = await iam_cjs.iam.organizations(call).catch((e) => {
|
|
109
|
+
if (e instanceof iam_cjs.IamError && !e.unauthenticated) return [{ owner: "admin", name: me.owner }];
|
|
110
110
|
throw e;
|
|
111
111
|
});
|
|
112
112
|
if (!live) return;
|
|
@@ -115,7 +115,7 @@ var IdentityProvider = ({
|
|
|
115
115
|
setError(null);
|
|
116
116
|
} catch (e) {
|
|
117
117
|
if (!live || ac.signal.aborted) return;
|
|
118
|
-
if (e instanceof
|
|
118
|
+
if (e instanceof iam_cjs.IamError && e.unauthenticated) {
|
|
119
119
|
setStatus("anonymous");
|
|
120
120
|
setAccount(null);
|
|
121
121
|
setOrgs([]);
|
|
@@ -145,7 +145,7 @@ var IdentityProvider = ({
|
|
|
145
145
|
void (async () => {
|
|
146
146
|
const token = await (auth.token ?? storedToken)();
|
|
147
147
|
if (!live || !token) return;
|
|
148
|
-
const rows = await
|
|
148
|
+
const rows = await iam_cjs.iam.projects({ base, token, signal: ac.signal }, org.name).catch(() => []);
|
|
149
149
|
if (live) setProjects(rows);
|
|
150
150
|
})();
|
|
151
151
|
return () => {
|
|
@@ -191,7 +191,7 @@ var IdentityProvider = ({
|
|
|
191
191
|
};
|
|
192
192
|
function useIdentity() {
|
|
193
193
|
const ctx = React__namespace.useContext(IdentityContext);
|
|
194
|
-
const whiteLabel =
|
|
194
|
+
const whiteLabel = provider_cjs.useWhiteLabel();
|
|
195
195
|
const fallback = React__namespace.useMemo(() => ({
|
|
196
196
|
status: "anonymous",
|
|
197
197
|
account: null,
|
package/dist/image-crop.cjs
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
|
-
var
|
|
7
|
+
var button_cjs = require('./button.cjs');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -47,7 +47,7 @@ var ImageCrop = React__namespace.forwardRef(
|
|
|
47
47
|
) }),
|
|
48
48
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-center gap-2", children: [
|
|
49
49
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
50
|
-
|
|
50
|
+
button_cjs.Button,
|
|
51
51
|
{
|
|
52
52
|
variant: "outline",
|
|
53
53
|
size: "icon",
|
|
@@ -56,7 +56,7 @@ var ImageCrop = React__namespace.forwardRef(
|
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
59
|
-
|
|
59
|
+
button_cjs.Button,
|
|
60
60
|
{
|
|
61
61
|
variant: "outline",
|
|
62
62
|
size: "icon",
|
|
@@ -65,7 +65,7 @@ var ImageCrop = React__namespace.forwardRef(
|
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
67
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
68
|
-
|
|
68
|
+
button_cjs.Button,
|
|
69
69
|
{
|
|
70
70
|
variant: "outline",
|
|
71
71
|
size: "icon",
|
|
@@ -73,7 +73,7 @@ var ImageCrop = React__namespace.forwardRef(
|
|
|
73
73
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCw, { style: ui.css("h-4 w-4") })
|
|
74
74
|
}
|
|
75
75
|
),
|
|
76
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
76
|
+
/* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { onClick: () => onCrop?.(src), children: [
|
|
77
77
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Crop, { style: ui.css("mr-2 h-4 w-4") }),
|
|
78
78
|
"Crop"
|
|
79
79
|
] })
|
package/dist/image.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
|
-
var
|
|
6
|
+
var skeleton_cjs = require('./skeleton.cjs');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -197,7 +197,7 @@ var Image = React__default.default.forwardRef(
|
|
|
197
197
|
display: loading ? "none" : computedStyle.display || styleProp?.display || "block"
|
|
198
198
|
};
|
|
199
199
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
200
|
-
loading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
200
|
+
loading && /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading: true, ...skeletonProps }),
|
|
201
201
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
202
202
|
ui.Box,
|
|
203
203
|
{
|