@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/ai-playground.cjs
CHANGED
|
@@ -5,10 +5,10 @@ var gui = require('@hanzo/gui');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var lucideReact = require('lucide-react');
|
|
7
7
|
var ui = require('@hanzo/ui');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
8
|
+
var alert_cjs = require('./alert.cjs');
|
|
9
|
+
var button_cjs = require('./button.cjs');
|
|
10
|
+
var slider_cjs = require('./slider.cjs');
|
|
11
|
+
var textarea_cjs = require('./textarea.cjs');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
|
|
14
14
|
function _interopNamespace(e) {
|
|
@@ -142,7 +142,7 @@ Your message: "${userMessage.content}"`;
|
|
|
142
142
|
] }),
|
|
143
143
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
144
144
|
messages.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
145
|
-
|
|
145
|
+
button_cjs.Button,
|
|
146
146
|
{
|
|
147
147
|
variant: "outline",
|
|
148
148
|
size: "sm",
|
|
@@ -155,7 +155,7 @@ Your message: "${userMessage.content}"`;
|
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
157
|
showSettings && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
158
|
-
|
|
158
|
+
button_cjs.Button,
|
|
159
159
|
{
|
|
160
160
|
variant: "outline",
|
|
161
161
|
size: "sm",
|
|
@@ -195,7 +195,7 @@ Your message: "${userMessage.content}"`;
|
|
|
195
195
|
config.maxTokens
|
|
196
196
|
] }),
|
|
197
197
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
198
|
-
|
|
198
|
+
slider_cjs.Slider,
|
|
199
199
|
{
|
|
200
200
|
id: "max-tokens",
|
|
201
201
|
min: 100,
|
|
@@ -214,7 +214,7 @@ Your message: "${userMessage.content}"`;
|
|
|
214
214
|
config.temperature.toFixed(1)
|
|
215
215
|
] }),
|
|
216
216
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
217
|
-
|
|
217
|
+
slider_cjs.Slider,
|
|
218
218
|
{
|
|
219
219
|
id: "temperature",
|
|
220
220
|
min: 0,
|
|
@@ -230,7 +230,7 @@ Your message: "${userMessage.content}"`;
|
|
|
230
230
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
231
231
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "system-prompt", children: "System Prompt" }),
|
|
232
232
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
233
|
-
|
|
233
|
+
textarea_cjs.Textarea,
|
|
234
234
|
{
|
|
235
235
|
id: "system-prompt",
|
|
236
236
|
placeholder: "Enter system prompt...",
|
|
@@ -244,7 +244,7 @@ Your message: "${userMessage.content}"`;
|
|
|
244
244
|
)
|
|
245
245
|
] })
|
|
246
246
|
] }),
|
|
247
|
-
error && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
247
|
+
error && /* @__PURE__ */ jsxRuntime.jsxs(alert_cjs.Alert, { children: [
|
|
248
248
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { style: ui.css("h-4 w-4") }),
|
|
249
249
|
/* @__PURE__ */ jsxRuntime.jsx(gui.Text, { children: error })
|
|
250
250
|
] }),
|
|
@@ -276,7 +276,7 @@ Your message: "${userMessage.content}"`;
|
|
|
276
276
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2 mt-2", children: [
|
|
277
277
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs opacity-50", children: message.timestamp.toLocaleTimeString() }),
|
|
278
278
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
279
|
-
|
|
279
|
+
button_cjs.Button,
|
|
280
280
|
{
|
|
281
281
|
variant: "ghost",
|
|
282
282
|
size: "sm",
|
|
@@ -297,7 +297,7 @@ Your message: "${userMessage.content}"`;
|
|
|
297
297
|
] }) }),
|
|
298
298
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
|
|
299
299
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
300
|
-
|
|
300
|
+
textarea_cjs.Textarea,
|
|
301
301
|
{
|
|
302
302
|
ref: textareaRef,
|
|
303
303
|
placeholder: "Type your message...",
|
|
@@ -309,7 +309,7 @@ Your message: "${userMessage.content}"`;
|
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-col gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
312
|
-
|
|
312
|
+
button_cjs.Button,
|
|
313
313
|
{
|
|
314
314
|
onClick: handleSend,
|
|
315
315
|
disabled: !input.trim() || isLoading,
|
package/dist/ai-tools.cjs
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var ui = require('@hanzo/ui');
|
|
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 input_cjs = require('./input.cjs');
|
|
10
|
+
var separator_cjs = require('./separator.cjs');
|
|
11
|
+
var textarea_cjs = require('./textarea.cjs');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
|
|
14
14
|
function _interopNamespace(e) {
|
|
@@ -166,12 +166,12 @@ var AITools = React__namespace.forwardRef(
|
|
|
166
166
|
),
|
|
167
167
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
168
168
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { ...ui.sx("text-sm font-medium"), children: tool.name }),
|
|
169
|
-
tool.category && /* @__PURE__ */ jsxRuntime.jsx(
|
|
169
|
+
tool.category && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { variant: "outline", ...ui.sx("text-xs mt-1"), children: tool.category })
|
|
170
170
|
] })
|
|
171
171
|
] }),
|
|
172
172
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
|
|
173
173
|
onToolToggle && /* @__PURE__ */ jsxRuntime.jsx(
|
|
174
|
-
|
|
174
|
+
button_cjs.Button,
|
|
175
175
|
{
|
|
176
176
|
variant: "ghost",
|
|
177
177
|
size: "sm",
|
|
@@ -200,7 +200,7 @@ var AITools = React__namespace.forwardRef(
|
|
|
200
200
|
Object.entries(params).map(([paramName, paramValue]) => /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-1", children: [
|
|
201
201
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "label", className: "text-xs font-medium capitalize", children: paramName.replace(/_/g, " ") }),
|
|
202
202
|
typeof paramValue === "string" && paramValue.length > 50 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
203
|
-
|
|
203
|
+
textarea_cjs.Textarea,
|
|
204
204
|
{
|
|
205
205
|
value: params[paramName] || "",
|
|
206
206
|
onChange: (e) => handleParameterChange(
|
|
@@ -213,7 +213,7 @@ var AITools = React__namespace.forwardRef(
|
|
|
213
213
|
rows: 3
|
|
214
214
|
}
|
|
215
215
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
216
|
-
|
|
216
|
+
input_cjs.Input,
|
|
217
217
|
{
|
|
218
218
|
value: params[paramName] || "",
|
|
219
219
|
onChange: (e) => handleParameterChange(
|
|
@@ -227,7 +227,7 @@ var AITools = React__namespace.forwardRef(
|
|
|
227
227
|
)
|
|
228
228
|
] }, paramName)),
|
|
229
229
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
-
|
|
230
|
+
button_cjs.Button,
|
|
231
231
|
{
|
|
232
232
|
onClick: (e) => {
|
|
233
233
|
e.stopPropagation();
|
|
@@ -255,13 +255,13 @@ var AITools = React__namespace.forwardRef(
|
|
|
255
255
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center justify-between", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
|
|
256
256
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wrench, { style: ui.css("h-5 w-5") }),
|
|
257
257
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h3", className: "font-semibold", children: "AI Tools" }),
|
|
258
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
258
|
+
/* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { colorPalette: "gray", children: [
|
|
259
259
|
tools.filter((t) => t.enabled).length,
|
|
260
260
|
" enabled"
|
|
261
261
|
] })
|
|
262
262
|
] }) }),
|
|
263
263
|
searchable && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
264
|
-
|
|
264
|
+
input_cjs.Input,
|
|
265
265
|
{
|
|
266
266
|
placeholder: "Search tools...",
|
|
267
267
|
value: searchQuery,
|
|
@@ -277,7 +277,7 @@ var AITools = React__namespace.forwardRef(
|
|
|
277
277
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
|
|
278
278
|
/* @__PURE__ */ jsxRuntime.jsx(CategoryIcon, { style: ui.css("h-4 w-4 text-muted-foreground") }),
|
|
279
279
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h4", className: "font-medium text-sm", children: category }),
|
|
280
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, { ...ui.sx("flex-1") })
|
|
281
281
|
] }),
|
|
282
282
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-2 pl-6", children: categoryTools.map((tool) => /* @__PURE__ */ jsxRuntime.jsx(ToolCard, { tool }, tool.name)) })
|
|
283
283
|
] }, category);
|
package/dist/ai-vision.cjs
CHANGED
|
@@ -5,12 +5,12 @@ var React = require('react');
|
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var sonner = require('sonner');
|
|
7
7
|
var ui = require('@hanzo/ui');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
8
|
+
var badge_cjs = require('./badge.cjs');
|
|
9
|
+
var button_cjs = require('./button.cjs');
|
|
10
|
+
var input_cjs = require('./input.cjs');
|
|
11
|
+
var slider_cjs = require('./slider.cjs');
|
|
12
|
+
var switch_cjs = require('./switch.cjs');
|
|
13
|
+
var textarea_cjs = require('./textarea.cjs');
|
|
14
14
|
var jsxRuntime = require('react/jsx-runtime');
|
|
15
15
|
|
|
16
16
|
function _interopNamespace(e) {
|
|
@@ -178,7 +178,7 @@ var ResultsPanel = ({
|
|
|
178
178
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
|
|
179
179
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "h3", className: "text-lg font-semibold", children: "Analysis Results" }),
|
|
180
180
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
|
|
181
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
181
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "outline", size: "sm", children: [
|
|
182
182
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Download, { style: ui.css("h-4 w-4 mr-2") }),
|
|
183
183
|
"Export"
|
|
184
184
|
] }) }),
|
|
@@ -210,7 +210,7 @@ var ResultsPanel = ({
|
|
|
210
210
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { children: [
|
|
211
211
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm", children: results.description }),
|
|
212
212
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
213
|
-
|
|
213
|
+
button_cjs.Button,
|
|
214
214
|
{
|
|
215
215
|
variant: "ghost",
|
|
216
216
|
size: "sm",
|
|
@@ -226,7 +226,7 @@ var ResultsPanel = ({
|
|
|
226
226
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Tag, { style: ui.css("h-4 w-4 mr-2") }),
|
|
227
227
|
"Tags"
|
|
228
228
|
] }) }),
|
|
229
|
-
/* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-2", children: results.tags.map((tag, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
229
|
+
/* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-2", children: results.tags.map((tag, index) => /* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: [
|
|
230
230
|
tag.label,
|
|
231
231
|
" (",
|
|
232
232
|
Math.round(tag.confidence * 100),
|
|
@@ -241,7 +241,7 @@ var ResultsPanel = ({
|
|
|
241
241
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
242
242
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
|
|
243
243
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm", children: "Emotion:" }),
|
|
244
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
244
|
+
/* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { children: results.sentiment.emotion })
|
|
245
245
|
] }),
|
|
246
246
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
|
|
247
247
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm", children: "Confidence:" }),
|
|
@@ -265,7 +265,7 @@ var ResultsPanel = ({
|
|
|
265
265
|
),
|
|
266
266
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: obj.label })
|
|
267
267
|
] }),
|
|
268
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
268
|
+
/* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { variant: "outline", children: [
|
|
269
269
|
Math.round(obj.confidence * 100),
|
|
270
270
|
"%"
|
|
271
271
|
] })
|
|
@@ -294,7 +294,7 @@ var ResultsPanel = ({
|
|
|
294
294
|
] })
|
|
295
295
|
] }),
|
|
296
296
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
297
|
-
|
|
297
|
+
button_cjs.Button,
|
|
298
298
|
{
|
|
299
299
|
variant: "ghost",
|
|
300
300
|
size: "sm",
|
|
@@ -342,7 +342,7 @@ var ResultsPanel = ({
|
|
|
342
342
|
"Face ",
|
|
343
343
|
index + 1
|
|
344
344
|
] }),
|
|
345
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
345
|
+
/* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { variant: "outline", children: [
|
|
346
346
|
Math.round(face.confidence * 100),
|
|
347
347
|
"%"
|
|
348
348
|
] })
|
|
@@ -666,7 +666,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
666
666
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
|
|
667
667
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "bounding-boxes", ...ui.sx("text-sm"), children: "Show Overlays" }),
|
|
668
668
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
669
|
-
|
|
669
|
+
switch_cjs.Switch,
|
|
670
670
|
{
|
|
671
671
|
id: "bounding-boxes",
|
|
672
672
|
checked: showBoundingBoxes,
|
|
@@ -723,7 +723,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
723
723
|
) }),
|
|
724
724
|
enableUrl && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "url", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex space-x-2", children: [
|
|
725
725
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
726
|
-
|
|
726
|
+
input_cjs.Input,
|
|
727
727
|
{
|
|
728
728
|
placeholder: "Enter image URL...",
|
|
729
729
|
value: urlInput,
|
|
@@ -732,7 +732,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
732
732
|
}
|
|
733
733
|
),
|
|
734
734
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
735
|
-
|
|
735
|
+
button_cjs.Button,
|
|
736
736
|
{
|
|
737
737
|
onClick: handleUrlSubmit,
|
|
738
738
|
disabled: !urlInput.trim(),
|
|
@@ -740,7 +740,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
740
740
|
}
|
|
741
741
|
)
|
|
742
742
|
] }) }),
|
|
743
|
-
enableCamera && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "camera", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-4", children: !isCameraActive ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
743
|
+
enableCamera && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "camera", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "space-y-4", children: !isCameraActive ? /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { onClick: startCamera, ...ui.sx("w-full"), children: [
|
|
744
744
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Camera, { style: ui.css("h-4 w-4 mr-2") }),
|
|
745
745
|
"Start Camera"
|
|
746
746
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
@@ -753,11 +753,11 @@ var AIVision = React__namespace.forwardRef(
|
|
|
753
753
|
className: "w-full rounded-lg border"
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
756
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { onClick: capturePhoto, ...ui.sx("w-full"), children: "Capture Photo" })
|
|
757
757
|
] }) }) }),
|
|
758
758
|
enableGeneration && /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "generate", ...ui.sx("mt-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-3", children: [
|
|
759
759
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
760
|
-
|
|
760
|
+
textarea_cjs.Textarea,
|
|
761
761
|
{
|
|
762
762
|
placeholder: "Describe the image you want to generate...",
|
|
763
763
|
value: generationPrompt,
|
|
@@ -766,7 +766,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
766
766
|
}
|
|
767
767
|
),
|
|
768
768
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
769
|
-
|
|
769
|
+
button_cjs.Button,
|
|
770
770
|
{
|
|
771
771
|
onClick: generateImage,
|
|
772
772
|
disabled: !generationPrompt.trim() || isGenerating,
|
|
@@ -823,7 +823,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
823
823
|
"%"
|
|
824
824
|
] }),
|
|
825
825
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
826
|
-
|
|
826
|
+
slider_cjs.Slider,
|
|
827
827
|
{
|
|
828
828
|
value: [confidenceThreshold],
|
|
829
829
|
onValueChange: ([value]) => setConfidenceThreshold(value),
|
|
@@ -841,7 +841,7 @@ var AIVision = React__namespace.forwardRef(
|
|
|
841
841
|
{ key: "text", label: "Text", icon: lucideReact.Type },
|
|
842
842
|
{ key: "faces", label: "Faces", icon: lucideReact.Smile }
|
|
843
843
|
].map(({ key, label, icon: Icon }) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
844
|
-
|
|
844
|
+
button_cjs.Button,
|
|
845
845
|
{
|
|
846
846
|
variant: selectedTypes.includes(key) ? "default" : "outline",
|
|
847
847
|
size: "sm",
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var ui = require('@hanzo/ui');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
7
|
+
var badge_cjs = require('./badge.cjs');
|
|
8
|
+
var button_cjs = require('./button.cjs');
|
|
9
|
+
var input_cjs = require('./input.cjs');
|
|
10
|
+
var separator_cjs = require('./separator.cjs');
|
|
11
|
+
var slider_cjs = require('./slider.cjs');
|
|
12
|
+
var switch_cjs = require('./switch.cjs');
|
|
13
|
+
var textarea_cjs = require('./textarea.cjs');
|
|
14
14
|
var jsxRuntime = require('react/jsx-runtime');
|
|
15
15
|
|
|
16
16
|
function _interopNamespace(e) {
|
|
@@ -141,7 +141,7 @@ var VoiceSelector = React__namespace.forwardRef(
|
|
|
141
141
|
/* @__PURE__ */ jsxRuntime.jsx(ui.SelectTrigger, { id: "voice", children: /* @__PURE__ */ jsxRuntime.jsx(ui.SelectValue, { placeholder: "Select voice" }) }),
|
|
142
142
|
/* @__PURE__ */ jsxRuntime.jsx(ui.SelectContent, { children: customVoices.map((voice) => /* @__PURE__ */ jsxRuntime.jsx(ui.SelectItem, { value: voice.value, children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
143
143
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: voice.label }),
|
|
144
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
144
|
+
/* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { variant: "outline", ...ui.sx("text-xs"), children: voice.gender })
|
|
145
145
|
] }) }, voice.value)) })
|
|
146
146
|
] }),
|
|
147
147
|
showDescription && selected && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: selected.description })
|
|
@@ -203,7 +203,7 @@ var SpeedControl = React__namespace.forwardRef(
|
|
|
203
203
|
] })
|
|
204
204
|
] }),
|
|
205
205
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
206
|
-
|
|
206
|
+
slider_cjs.Slider,
|
|
207
207
|
{
|
|
208
208
|
id: "speed",
|
|
209
209
|
min,
|
|
@@ -241,7 +241,7 @@ var PitchControl = React__namespace.forwardRef(
|
|
|
241
241
|
] })
|
|
242
242
|
] }),
|
|
243
243
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
244
|
-
|
|
244
|
+
slider_cjs.Slider,
|
|
245
245
|
{
|
|
246
246
|
id: "pitch",
|
|
247
247
|
min,
|
|
@@ -277,7 +277,7 @@ var WakeWordInput = React__namespace.forwardRef(
|
|
|
277
277
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { ref, className: "space-y-2", children: [
|
|
278
278
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "wakeWord", children: "Wake Word" }),
|
|
279
279
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
-
|
|
280
|
+
input_cjs.Input,
|
|
281
281
|
{
|
|
282
282
|
id: "wakeWord",
|
|
283
283
|
placeholder,
|
|
@@ -300,7 +300,7 @@ var CustomInstructions = React__namespace.forwardRef(
|
|
|
300
300
|
return /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { ref, className: "space-y-2", children: [
|
|
301
301
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "customInstructions", children: "Custom Instructions" }),
|
|
302
302
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
303
|
-
|
|
303
|
+
textarea_cjs.Textarea,
|
|
304
304
|
{
|
|
305
305
|
id: "customInstructions",
|
|
306
306
|
placeholder,
|
|
@@ -321,7 +321,7 @@ var AutoListenToggle = React__namespace.forwardRef(({ checked, onCheckedChange }
|
|
|
321
321
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: "Automatically start listening after each response" })
|
|
322
322
|
] }),
|
|
323
323
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
324
|
-
|
|
324
|
+
switch_cjs.Switch,
|
|
325
325
|
{
|
|
326
326
|
id: "autoListen",
|
|
327
327
|
checked,
|
|
@@ -338,7 +338,7 @@ var NoiseCancellationToggle = React__namespace.forwardRef(({ checked, onCheckedC
|
|
|
338
338
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-xs text-muted-foreground", children: "Filter background noise for clearer recognition" })
|
|
339
339
|
] }),
|
|
340
340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
341
|
-
|
|
341
|
+
switch_cjs.Switch,
|
|
342
342
|
{
|
|
343
343
|
id: "noiseCancellation",
|
|
344
344
|
checked,
|
|
@@ -445,7 +445,7 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
445
445
|
onValueChange: (value) => updateSetting("speed", value)
|
|
446
446
|
}
|
|
447
447
|
),
|
|
448
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
448
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
449
449
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
450
450
|
PitchControl,
|
|
451
451
|
{
|
|
@@ -453,9 +453,9 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
453
453
|
onValueChange: (value) => updateSetting("pitch", value)
|
|
454
454
|
}
|
|
455
455
|
),
|
|
456
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
456
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
457
457
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
458
|
-
|
|
458
|
+
button_cjs.Button,
|
|
459
459
|
{
|
|
460
460
|
variant: "outline",
|
|
461
461
|
...ui.sx("w-full"),
|
|
@@ -479,7 +479,7 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
479
479
|
onValueChange: (value) => updateSetting("wakeWord", value)
|
|
480
480
|
}
|
|
481
481
|
),
|
|
482
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
482
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
483
483
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
484
484
|
CustomInstructions,
|
|
485
485
|
{
|
|
@@ -487,7 +487,7 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
487
487
|
onValueChange: (value) => updateSetting("customInstructions", value)
|
|
488
488
|
}
|
|
489
489
|
),
|
|
490
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
490
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
491
491
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
|
|
492
492
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
493
493
|
AutoListenToggle,
|
|
@@ -496,7 +496,7 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
496
496
|
onCheckedChange: (checked) => updateSetting("autoListen", checked)
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
499
|
+
/* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
|
|
500
500
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
501
501
|
NoiseCancellationToggle,
|
|
502
502
|
{
|
|
@@ -517,8 +517,8 @@ var AIVoiceSettings = React__namespace.forwardRef(
|
|
|
517
517
|
] })
|
|
518
518
|
] }),
|
|
519
519
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "mt-6 flex justify-end gap-3", children: [
|
|
520
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
521
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
520
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "outline", onClick: handleReset, children: "Reset to Defaults" }),
|
|
521
|
+
/* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { onClick: handleSave, children: "Save Settings" })
|
|
522
522
|
] })
|
|
523
523
|
] });
|
|
524
524
|
}
|
package/dist/ai-voice.cjs
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var lucideReact = require('lucide-react');
|
|
6
6
|
var ui = require('@hanzo/ui');
|
|
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 slider_cjs = require('./slider.cjs');
|
|
10
|
+
var switch_cjs = require('./switch.cjs');
|
|
11
|
+
var textarea_cjs = require('./textarea.cjs');
|
|
12
12
|
var jsxRuntime = require('react/jsx-runtime');
|
|
13
13
|
|
|
14
14
|
var defaultVoices = [
|
|
@@ -334,7 +334,7 @@ function AIVoice({
|
|
|
334
334
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.CardTitle, { ...ui.sx("flex items-center justify-between"), children: [
|
|
335
335
|
"AI Voice Interface",
|
|
336
336
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
337
|
-
|
|
337
|
+
button_cjs.Button,
|
|
338
338
|
{
|
|
339
339
|
variant: "outline",
|
|
340
340
|
size: "sm",
|
|
@@ -358,7 +358,7 @@ function AIVoice({
|
|
|
358
358
|
] }),
|
|
359
359
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-center gap-4", children: [
|
|
360
360
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
361
|
-
|
|
361
|
+
button_cjs.Button,
|
|
362
362
|
{
|
|
363
363
|
variant: isListening ? "destructive" : "default",
|
|
364
364
|
size: "lg",
|
|
@@ -377,7 +377,7 @@ function AIVoice({
|
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
379
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
380
|
-
|
|
380
|
+
button_cjs.Button,
|
|
381
381
|
{
|
|
382
382
|
variant: isSpeaking ? "destructive" : "outline",
|
|
383
383
|
size: "lg",
|
|
@@ -389,7 +389,7 @@ function AIVoice({
|
|
|
389
389
|
]
|
|
390
390
|
}
|
|
391
391
|
),
|
|
392
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
392
|
+
/* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "outline", size: "lg", onClick: clearTranscript, children: [
|
|
393
393
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RotateCcw, { style: ui.css("h-4 w-4") }),
|
|
394
394
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "ml-2", children: "Clear" })
|
|
395
395
|
] })
|
|
@@ -404,7 +404,7 @@ function AIVoice({
|
|
|
404
404
|
] })
|
|
405
405
|
] }),
|
|
406
406
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
407
|
-
|
|
407
|
+
switch_cjs.Switch,
|
|
408
408
|
{
|
|
409
409
|
checked: isWakeWordActive,
|
|
410
410
|
onCheckedChange: setIsWakeWordActive
|
|
@@ -412,10 +412,10 @@ function AIVoice({
|
|
|
412
412
|
)
|
|
413
413
|
] }),
|
|
414
414
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
|
|
415
|
-
isListening && /* @__PURE__ */ jsxRuntime.jsx(
|
|
416
|
-
isSpeaking && /* @__PURE__ */ jsxRuntime.jsx(
|
|
417
|
-
isWakeWordActive && /* @__PURE__ */ jsxRuntime.jsx(
|
|
418
|
-
audioLevel > 0.1 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
415
|
+
isListening && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { variant: "solid", ...ui.sx("animate-pulse"), children: "Listening" }),
|
|
416
|
+
isSpeaking && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("animate-pulse"), children: "Speaking" }),
|
|
417
|
+
isWakeWordActive && /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { variant: "outline", children: "Wake Word Active" }),
|
|
418
|
+
audioLevel > 0.1 && /* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { variant: "outline", children: [
|
|
419
419
|
"Audio: ",
|
|
420
420
|
Math.round(audioLevel * 100),
|
|
421
421
|
"%"
|
|
@@ -428,7 +428,7 @@ function AIVoice({
|
|
|
428
428
|
/* @__PURE__ */ jsxRuntime.jsx(ui.CardHeader, { ...ui.sx("pb-3"), children: /* @__PURE__ */ jsxRuntime.jsx(ui.CardTitle, { ...ui.sx("text-lg"), children: "Transcript" }) }),
|
|
429
429
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.CardContent, { children: [
|
|
430
430
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
431
|
-
|
|
431
|
+
textarea_cjs.Textarea,
|
|
432
432
|
{
|
|
433
433
|
value: finalTranscript + (transcript ? ` ${transcript}` : ""),
|
|
434
434
|
onChange: (e) => setFinalTranscript(e.target.value),
|
|
@@ -470,7 +470,7 @@ function AIVoice({
|
|
|
470
470
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
471
471
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "label", className: "text-sm font-medium", children: "Speed" }),
|
|
472
472
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
473
|
-
|
|
473
|
+
slider_cjs.Slider,
|
|
474
474
|
{
|
|
475
475
|
value: [speechSpeed],
|
|
476
476
|
onValueChange: ([value]) => setSpeechSpeed(value),
|
|
@@ -488,7 +488,7 @@ function AIVoice({
|
|
|
488
488
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
489
489
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "label", className: "text-sm font-medium", children: "Pitch" }),
|
|
490
490
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
491
|
-
|
|
491
|
+
slider_cjs.Slider,
|
|
492
492
|
{
|
|
493
493
|
value: [speechPitch],
|
|
494
494
|
onValueChange: ([value]) => setSpeechPitch(value),
|
|
@@ -506,7 +506,7 @@ function AIVoice({
|
|
|
506
506
|
/* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
|
|
507
507
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "label", className: "text-sm font-medium", children: "Volume" }),
|
|
508
508
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
509
|
-
|
|
509
|
+
slider_cjs.Slider,
|
|
510
510
|
{
|
|
511
511
|
value: [speechVolume],
|
|
512
512
|
onValueChange: ([value]) => setSpeechVolume(value),
|
package/dist/alert.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 skeleton_cjs = require('./skeleton.cjs');
|
|
9
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
10
|
|
|
11
11
|
function _interopNamespace(e) {
|
|
@@ -132,7 +132,7 @@ var Alert = React__namespace.forwardRef(
|
|
|
132
132
|
...descColumnGap !== void 0 ? { columnGap: typeof descColumnGap === "number" ? `${descColumnGap * 4}px` : descColumnGap } : {}
|
|
133
133
|
};
|
|
134
134
|
const ContentFrame = inline ? gui.XStack : gui.YStack;
|
|
135
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
135
|
+
return /* @__PURE__ */ jsxRuntime.jsx(skeleton_cjs.Skeleton, { loading, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
136
136
|
gui.XStack,
|
|
137
137
|
{
|
|
138
138
|
ref,
|
|
@@ -153,12 +153,12 @@ var Alert = React__namespace.forwardRef(
|
|
|
153
153
|
className: descClassName,
|
|
154
154
|
style: Object.keys(descStyle).length > 0 ? descStyle : void 0,
|
|
155
155
|
...descRest,
|
|
156
|
-
children:
|
|
156
|
+
children: ink_cjs.ink(children, void 0, { fontSize, color: ALERT_FG })
|
|
157
157
|
}
|
|
158
158
|
)
|
|
159
159
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, fontWeight: "600", fontSize, color: ALERT_FG, children: title }),
|
|
160
160
|
endElement,
|
|
161
|
-
closable && /* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "relative", alignSelf: "flex-start", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
161
|
+
closable && /* @__PURE__ */ jsxRuntime.jsx(gui.View, { position: "relative", alignSelf: "flex-start", children: /* @__PURE__ */ jsxRuntime.jsx(closeButton_cjs.CloseButton, { onClick: handleClose }) })
|
|
162
162
|
]
|
|
163
163
|
}
|
|
164
164
|
) });
|
package/dist/announcement.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 Announcement = React__namespace.forwardRef(
|
|
|
47
47
|
children: [
|
|
48
48
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex-1", children }),
|
|
49
49
|
dismissible && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
50
|
-
|
|
50
|
+
button_cjs.Button,
|
|
51
51
|
{
|
|
52
52
|
variant: "ghost",
|
|
53
53
|
size: "icon",
|