@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.
Files changed (111) hide show
  1. package/dist/3d-model-viewer.cjs +7 -7
  2. package/dist/accordion.cjs +3 -3
  3. package/dist/advanced-navigation-bar.cjs +2 -2
  4. package/dist/ai-agents.cjs +29 -29
  5. package/dist/ai-assistant.cjs +7 -7
  6. package/dist/ai-chat.cjs +11 -11
  7. package/dist/ai-code.cjs +28 -28
  8. package/dist/ai-playground.cjs +13 -13
  9. package/dist/ai-tools.cjs +13 -13
  10. package/dist/ai-vision.cjs +22 -22
  11. package/dist/ai-voice-settings.cjs +22 -22
  12. package/dist/ai-voice.cjs +18 -18
  13. package/dist/alert.cjs +6 -6
  14. package/dist/announcement.cjs +2 -2
  15. package/dist/app-switcher-navigation-bar.cjs +2 -2
  16. package/dist/apple-cards-carousel.cjs +3 -3
  17. package/dist/auth.cjs +4 -4
  18. package/dist/avatar.cjs +2 -2
  19. package/dist/badge.cjs +4 -4
  20. package/dist/button.cjs +3 -3
  21. package/dist/chrome.cjs +23 -23
  22. package/dist/code-block.cjs +7 -7
  23. package/dist/code-compare.cjs +16 -16
  24. package/dist/code-diff.cjs +7 -7
  25. package/dist/code-editor.cjs +3 -3
  26. package/dist/code-explorer.cjs +4 -4
  27. package/dist/code-preview.cjs +15 -15
  28. package/dist/code-snippet.cjs +9 -9
  29. package/dist/code-terminal.cjs +9 -9
  30. package/dist/collapsible.cjs +3 -3
  31. package/dist/color-picker.cjs +4 -4
  32. package/dist/combobox.cjs +2 -2
  33. package/dist/communication-navigation-bar.cjs +4 -4
  34. package/dist/dashboard-navigation-bar.cjs +3 -3
  35. package/dist/dialog-stack.cjs +2 -2
  36. package/dist/dialog.cjs +2 -2
  37. package/dist/drawer.cjs +8 -8
  38. package/dist/e-commerce-navigation-bar.cjs +4 -4
  39. package/dist/editor.cjs +5 -5
  40. package/dist/iam.cjs +2 -2
  41. package/dist/icon-button.cjs +2 -2
  42. package/dist/identity.cjs +10 -10
  43. package/dist/image-crop.cjs +5 -5
  44. package/dist/image.cjs +2 -2
  45. package/dist/index.cjs +609 -609
  46. package/dist/input-group.cjs +3 -3
  47. package/dist/item.cjs +2 -2
  48. package/dist/kanban.cjs +15 -15
  49. package/dist/limelight-nav.cjs +4 -4
  50. package/dist/link.cjs +6 -6
  51. package/dist/lux.config.cjs +8 -8
  52. package/dist/menu.cjs +5 -5
  53. package/dist/message-dock.cjs +2 -2
  54. package/dist/mini-calendar.cjs +3 -3
  55. package/dist/music-player.cjs +11 -11
  56. package/dist/next.cjs +5 -5
  57. package/dist/popover.cjs +2 -2
  58. package/dist/progress-circle.cjs +3 -3
  59. package/dist/provider.cjs +5 -5
  60. package/dist/select.cjs +2 -2
  61. package/dist/sidebar.cjs +11 -11
  62. package/dist/site/commerce/ui/context.cjs +3 -3
  63. package/dist/site/components/analytics.cjs +2 -2
  64. package/dist/site/components/auth/callback.cjs +2 -2
  65. package/dist/site/components/auth/login-panel.cjs +4 -4
  66. package/dist/site/components/auth/login.cjs +2 -2
  67. package/dist/site/components/auth/widget.cjs +2 -2
  68. package/dist/site/components/commerce/bag-button.cjs +2 -2
  69. package/dist/site/components/commerce/buy-button.cjs +2 -2
  70. package/dist/site/components/commerce/checkout-button.cjs +2 -2
  71. package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +8 -8
  72. package/dist/site/components/commerce/checkout-panel/index.cjs +3 -3
  73. package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +7 -7
  74. package/dist/site/components/commerce/desktop-bag-popup.cjs +3 -3
  75. package/dist/site/components/commerce/drawer/index.cjs +6 -6
  76. package/dist/site/components/commerce/drawer/micro.cjs +3 -3
  77. package/dist/site/components/commerce/drawer/shell.cjs +2 -2
  78. package/dist/site/components/contact-dialog/index.cjs +2 -2
  79. package/dist/site/components/drawer-margin.cjs +2 -2
  80. package/dist/site/components/footer.cjs +5 -5
  81. package/dist/site/components/header/desktop.cjs +5 -5
  82. package/dist/site/components/header/index.cjs +2 -2
  83. package/dist/site/components/header/mobile-bag-drawer.cjs +1 -1
  84. package/dist/site/components/header/mobile-nav-menu-ai.cjs +2 -28
  85. package/dist/site/components/header/mobile-nav-menu-ai.js +2 -24
  86. package/dist/site/components/header/mobile-nav-menu-item.cjs +4 -4
  87. package/dist/site/components/header/mobile-nav-menu.cjs +2 -2
  88. package/dist/site/components/header/mobile.cjs +11 -34
  89. package/dist/site/components/header/mobile.js +2 -24
  90. package/dist/site/components/icons/index.cjs +15 -15
  91. package/dist/site/components/index.cjs +66 -66
  92. package/dist/site/components/mini-chart/index.cjs +3 -3
  93. package/dist/site/components/mini-chart/wrapper.cjs +1 -1
  94. package/dist/site/components/not-found/index.cjs +3 -3
  95. package/dist/site/components/security/index.cjs +3 -3
  96. package/dist/site/next/analytics/index.cjs +7 -7
  97. package/dist/site/next/analytics/pixel-analytics.cjs +1 -1
  98. package/dist/site/next/index.cjs +6 -6
  99. package/dist/site/root-layout/index.cjs +9 -9
  100. package/dist/site/site-def/footer/community.cjs +10 -10
  101. package/dist/site/site-def/footer/company.d.ts +3 -3
  102. package/dist/site/site-def/footer/index.cjs +7 -7
  103. package/dist/site/site-def/index.cjs +6 -6
  104. package/dist/table.cjs +2 -2
  105. package/dist/tabs.cjs +3 -3
  106. package/dist/tag.cjs +6 -6
  107. package/dist/tags.cjs +2 -2
  108. package/dist/textarea.cjs +3 -3
  109. package/dist/tooltip.cjs +4 -4
  110. package/dist/vite.cjs +3 -3
  111. package/package.json +1 -1
@@ -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 button_js = require('./button.js');
7
+ var button_cjs = require('./button.cjs');
8
8
  var jsxRuntime = require('react/jsx-runtime');
9
9
 
10
10
  function _interopNamespace(e) {
@@ -351,7 +351,7 @@ var ModelViewer3D = React__namespace.forwardRef(
351
351
  error && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "absolute inset-0 bg-background/80 backdrop-blur-sm flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "text-center space-y-2", children: [
352
352
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "p", className: "text-sm text-destructive", children: error }),
353
353
  /* @__PURE__ */ jsxRuntime.jsx(
354
- button_js.Button,
354
+ button_cjs.Button,
355
355
  {
356
356
  variant: "outline",
357
357
  size: "sm",
@@ -362,7 +362,7 @@ var ModelViewer3D = React__namespace.forwardRef(
362
362
  ] }) }),
363
363
  showControls && !isLoading && !error && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "absolute top-4 right-4 flex flex-col space-y-2", children: [
364
364
  /* @__PURE__ */ jsxRuntime.jsx(
365
- button_js.Button,
365
+ button_cjs.Button,
366
366
  {
367
367
  variant: "outline",
368
368
  size: "icon",
@@ -373,7 +373,7 @@ var ModelViewer3D = React__namespace.forwardRef(
373
373
  ),
374
374
  enableZoom && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
375
375
  /* @__PURE__ */ jsxRuntime.jsx(
376
- button_js.Button,
376
+ button_cjs.Button,
377
377
  {
378
378
  variant: "outline",
379
379
  size: "icon",
@@ -383,7 +383,7 @@ var ModelViewer3D = React__namespace.forwardRef(
383
383
  }
384
384
  ),
385
385
  /* @__PURE__ */ jsxRuntime.jsx(
386
- button_js.Button,
386
+ button_cjs.Button,
387
387
  {
388
388
  variant: "outline",
389
389
  size: "icon",
@@ -394,7 +394,7 @@ var ModelViewer3D = React__namespace.forwardRef(
394
394
  )
395
395
  ] }),
396
396
  /* @__PURE__ */ jsxRuntime.jsx(
397
- button_js.Button,
397
+ button_cjs.Button,
398
398
  {
399
399
  variant: "outline",
400
400
  size: "icon",
@@ -407,7 +407,7 @@ var ModelViewer3D = React__namespace.forwardRef(
407
407
  }
408
408
  ),
409
409
  /* @__PURE__ */ jsxRuntime.jsx(
410
- button_js.Button,
410
+ button_cjs.Button,
411
411
  {
412
412
  variant: "outline",
413
413
  size: "icon",
@@ -3,7 +3,7 @@
3
3
 
4
4
  var gui = require('@hanzo/gui');
5
5
  var React = require('react');
6
- var ink_js = require('./ink.js');
6
+ var ink_cjs = require('./ink.cjs');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
9
  function _interopNamespace(e) {
@@ -103,7 +103,7 @@ var AccordionItemTrigger = ({
103
103
  ...rest,
104
104
  children: (({ open }) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
105
105
  placement === "start" && !noIndicator && /* @__PURE__ */ jsxRuntime.jsx(Indicator, { open, variant }),
106
- ink_js.ink(children, void 0, { color: "inherit", textAlign: "left" }),
106
+ ink_cjs.ink(children, void 0, { color: "inherit", textAlign: "left" }),
107
107
  placement === "end" && !noIndicator && /* @__PURE__ */ jsxRuntime.jsx(Indicator, { open, variant })
108
108
  ] }))
109
109
  }
@@ -117,7 +117,7 @@ var AccordionItemContent = ({ children, ...rest }) => /* @__PURE__ */ jsxRuntime
117
117
  paddingBottom: 12,
118
118
  backgroundColor: "transparent",
119
119
  ...rest,
120
- children: ink_js.ink(children, void 0, { color: "var(--color-text-primary)" })
120
+ children: ink_cjs.ink(children, void 0, { color: "var(--color-text-primary)" })
121
121
  }
122
122
  );
123
123
  function useAccordion(items) {
@@ -3,7 +3,7 @@
3
3
 
4
4
  var React = require('react');
5
5
  var ui = require('@hanzo/ui');
6
- var button_js = require('./button.js');
6
+ var button_cjs = require('./button.cjs');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
8
 
9
9
  function _interopNamespace(e) {
@@ -53,7 +53,7 @@ var AdvancedNavigationBar = React__namespace.forwardRef(({ className, items, log
53
53
  ]
54
54
  }
55
55
  ) }) }, childIndex)) }) })
56
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(ui.NavigationMenuLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { variant: "ghost", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: item.href, children: item.title }) }) }) }, index)) }) })
56
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(ui.NavigationMenuLink, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: item.href, children: item.title }) }) }) }, index)) }) })
57
57
  ]
58
58
  }
59
59
  );
@@ -6,12 +6,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var react = require('react');
7
7
  var lucideReact = require('lucide-react');
8
8
  var ui = require('@hanzo/ui');
9
- var badge_js = require('./badge.js');
10
- var button_js = require('./button.js');
11
- var input_js = require('./input.js');
12
- var progress_js = require('./progress.js');
13
- var separator_js = require('./separator.js');
14
- var textarea_js = require('./textarea.js');
9
+ var badge_cjs = require('./badge.cjs');
10
+ var button_cjs = require('./button.cjs');
11
+ var input_cjs = require('./input.cjs');
12
+ var progress_cjs = require('./progress.cjs');
13
+ var separator_cjs = require('./separator.cjs');
14
+ var textarea_cjs = require('./textarea.cjs');
15
15
  var jsxRuntime = require('react/jsx-runtime');
16
16
 
17
17
  var agentTypeConfig = {
@@ -228,7 +228,7 @@ var AgentCard = ({
228
228
  ] }),
229
229
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-1", children: [
230
230
  /* @__PURE__ */ jsxRuntime.jsx(
231
- button_js.Button,
231
+ button_cjs.Button,
232
232
  {
233
233
  variant: "ghost",
234
234
  size: "sm",
@@ -240,7 +240,7 @@ var AgentCard = ({
240
240
  }
241
241
  ),
242
242
  /* @__PURE__ */ jsxRuntime.jsx(
243
- button_js.Button,
243
+ button_cjs.Button,
244
244
  {
245
245
  variant: "ghost",
246
246
  size: "sm",
@@ -260,11 +260,11 @@ var AgentCard = ({
260
260
  ] }),
261
261
  agent.currentTask && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "bg-muted p-2 rounded text-xs", children: [
262
262
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-medium", children: agent.currentTask.title }),
263
- /* @__PURE__ */ jsxRuntime.jsx(progress_js.Progress, { value: agent.currentTask.progress, ...ui.sx("mt-1 h-1") })
263
+ /* @__PURE__ */ jsxRuntime.jsx(progress_cjs.Progress, { value: agent.currentTask.progress, ...ui.sx("mt-1 h-1") })
264
264
  ] }),
265
265
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-wrap gap-1", children: [
266
- agent.capabilities.slice(0, 3).map((capability) => /* @__PURE__ */ jsxRuntime.jsx(badge_js.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: capability }, capability)),
267
- agent.capabilities.length > 3 && /* @__PURE__ */ jsxRuntime.jsxs(badge_js.Badge, { variant: "outline", ...ui.sx("text-xs"), children: [
266
+ agent.capabilities.slice(0, 3).map((capability) => /* @__PURE__ */ jsxRuntime.jsx(badge_cjs.Badge, { colorPalette: "gray", ...ui.sx("text-xs"), children: capability }, capability)),
267
+ agent.capabilities.length > 3 && /* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { variant: "outline", ...ui.sx("text-xs"), children: [
268
268
  "+",
269
269
  agent.capabilities.length - 3
270
270
  ] })
@@ -312,7 +312,7 @@ var CreateAgentDialog = ({ onAgentCreate }) => {
312
312
  setOpen(false);
313
313
  };
314
314
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, onOpenChange: setOpen, children: [
315
- /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_js.Button, { children: [
315
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { children: [
316
316
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { style: ui.css("h-4 w-4 mr-2") }),
317
317
  "Create Agent"
318
318
  ] }) }),
@@ -325,7 +325,7 @@ var CreateAgentDialog = ({ onAgentCreate }) => {
325
325
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
326
326
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "name", children: "Agent Name" }),
327
327
  /* @__PURE__ */ jsxRuntime.jsx(
328
- input_js.Input,
328
+ input_cjs.Input,
329
329
  {
330
330
  id: "name",
331
331
  value: formData.name,
@@ -357,7 +357,7 @@ var CreateAgentDialog = ({ onAgentCreate }) => {
357
357
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
358
358
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "description", children: "Description" }),
359
359
  /* @__PURE__ */ jsxRuntime.jsx(
360
- textarea_js.Textarea,
360
+ textarea_cjs.Textarea,
361
361
  {
362
362
  id: "description",
363
363
  value: formData.description,
@@ -370,8 +370,8 @@ var CreateAgentDialog = ({ onAgentCreate }) => {
370
370
  )
371
371
  ] }),
372
372
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-end gap-2", children: [
373
- /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
374
- /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { onClick: handleSubmit, disabled: !formData.name, children: "Create Agent" })
373
+ /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
374
+ /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { onClick: handleSubmit, disabled: !formData.name, children: "Create Agent" })
375
375
  ] })
376
376
  ] })
377
377
  ] })
@@ -409,7 +409,7 @@ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
409
409
  setOpen(false);
410
410
  };
411
411
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Dialog, { open, onOpenChange: setOpen, children: [
412
- /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_js.Button, { variant: "outline", children: [
412
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "outline", children: [
413
413
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessageSquare, { style: ui.css("h-4 w-4 mr-2") }),
414
414
  "Assign Task"
415
415
  ] }) }),
@@ -422,7 +422,7 @@ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
422
422
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
423
423
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "title", children: "Task Title" }),
424
424
  /* @__PURE__ */ jsxRuntime.jsx(
425
- input_js.Input,
425
+ input_cjs.Input,
426
426
  {
427
427
  id: "title",
428
428
  value: taskData.title,
@@ -434,7 +434,7 @@ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
434
434
  /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
435
435
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "description", children: "Description" }),
436
436
  /* @__PURE__ */ jsxRuntime.jsx(
437
- textarea_js.Textarea,
437
+ textarea_cjs.Textarea,
438
438
  {
439
439
  id: "description",
440
440
  value: taskData.description,
@@ -468,7 +468,7 @@ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
468
468
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex-1", children: [
469
469
  /* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "estimatedTime", children: "Estimated Time (hours)" }),
470
470
  /* @__PURE__ */ jsxRuntime.jsx(
471
- input_js.Input,
471
+ input_cjs.Input,
472
472
  {
473
473
  id: "estimatedTime",
474
474
  type: "number",
@@ -508,9 +508,9 @@ var TaskAssignmentDialog = ({ agents, onTaskAssign }) => {
508
508
  )
509
509
  ] }),
510
510
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-end gap-2", children: [
511
- /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
511
+ /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "outline", onClick: () => setOpen(false), children: "Cancel" }),
512
512
  /* @__PURE__ */ jsxRuntime.jsx(
513
- button_js.Button,
513
+ button_cjs.Button,
514
514
  {
515
515
  onClick: handleSubmit,
516
516
  disabled: !taskData.title || !taskData.assignedTo,
@@ -698,9 +698,9 @@ var AIAgents = ({
698
698
  onTaskAssign: handleTaskAssign
699
699
  }
700
700
  ),
701
- /* @__PURE__ */ jsxRuntime.jsx(separator_js.Separator, { orientation: "vertical", ...ui.sx("h-6") }),
701
+ /* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, { orientation: "vertical", ...ui.sx("h-6") }),
702
702
  /* @__PURE__ */ jsxRuntime.jsx(
703
- button_js.Button,
703
+ button_cjs.Button,
704
704
  {
705
705
  variant: isWorkflowRunning ? "destructive" : "default",
706
706
  onClick: handleWorkflowToggle,
@@ -713,7 +713,7 @@ var AIAgents = ({
713
713
  ] })
714
714
  }
715
715
  ),
716
- /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { variant: "outline", onClick: handleSaveWorkflow, children: "Save Workflow" })
716
+ /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "outline", onClick: handleSaveWorkflow, children: "Save Workflow" })
717
717
  ] })
718
718
  ] }),
719
719
  /* @__PURE__ */ jsxRuntime.jsx(ui.TabsContent, { value: "workflow", ...ui.sx("flex-1 p-0"), children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -775,7 +775,7 @@ var AIAgents = ({
775
775
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center justify-between", children: [
776
776
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-sm font-medium", children: "Status" }),
777
777
  /* @__PURE__ */ jsxRuntime.jsx(
778
- badge_js.Badge,
778
+ badge_cjs.Badge,
779
779
  {
780
780
  colorPalette: agent.status === "working" ? "gray" : "gray",
781
781
  ...ui.sx("capitalize"),
@@ -788,7 +788,7 @@ var AIAgents = ({
788
788
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "bg-muted p-3 rounded-lg", children: [
789
789
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "font-medium text-sm", children: agent.currentTask.title }),
790
790
  /* @__PURE__ */ jsxRuntime.jsx(
791
- progress_js.Progress,
791
+ progress_cjs.Progress,
792
792
  {
793
793
  value: agent.currentTask.progress,
794
794
  ...ui.sx("mt-2")
@@ -803,7 +803,7 @@ var AIAgents = ({
803
803
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-2", children: [
804
804
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "text-sm font-medium", children: "Capabilities" }),
805
805
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-1", children: agent.capabilities.map((capability) => /* @__PURE__ */ jsxRuntime.jsx(
806
- badge_js.Badge,
806
+ badge_cjs.Badge,
807
807
  {
808
808
  variant: "outline",
809
809
  ...ui.sx("text-xs"),
@@ -856,7 +856,7 @@ var AIAgents = ({
856
856
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex justify-between text-sm", children: [
857
857
  /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Workflow Status" }),
858
858
  /* @__PURE__ */ jsxRuntime.jsx(
859
- badge_js.Badge,
859
+ badge_cjs.Badge,
860
860
  {
861
861
  colorPalette: isWorkflowRunning ? "gray" : "gray",
862
862
  children: isWorkflowRunning ? "Running" : "Stopped"
@@ -4,9 +4,9 @@
4
4
  var React = require('react');
5
5
  var lucideReact = require('lucide-react');
6
6
  var ui = require('@hanzo/ui');
7
- var badge_js = require('./badge.js');
8
- var button_js = require('./button.js');
9
- var textarea_js = require('./textarea.js');
7
+ var badge_cjs = require('./badge.cjs');
8
+ var button_cjs = require('./button.cjs');
9
+ var textarea_cjs = require('./textarea.cjs');
10
10
  var jsxRuntime = require('react/jsx-runtime');
11
11
 
12
12
  function _interopNamespace(e) {
@@ -86,11 +86,11 @@ var AIAssistant = React__namespace.forwardRef(
86
86
  ] })
87
87
  ] }),
88
88
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center space-x-2", children: [
89
- tools.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(badge_js.Badge, { colorPalette: "gray", children: [
89
+ tools.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(badge_cjs.Badge, { colorPalette: "gray", children: [
90
90
  tools.length,
91
91
  " tools"
92
92
  ] }),
93
- /* @__PURE__ */ jsxRuntime.jsx(button_js.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { style: ui.css("h-4 w-4") }) })
93
+ /* @__PURE__ */ jsxRuntime.jsx(button_cjs.Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { style: ui.css("h-4 w-4") }) })
94
94
  ] })
95
95
  ] }),
96
96
  /* @__PURE__ */ jsxRuntime.jsx(ui.ScrollArea, { ref: scrollRef, ...ui.sx("flex-1 p-4"), children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-4", children: [
@@ -147,7 +147,7 @@ var AIAssistant = React__namespace.forwardRef(
147
147
  ] }) }),
148
148
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-t p-4", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex space-x-2", children: [
149
149
  /* @__PURE__ */ jsxRuntime.jsx(
150
- textarea_js.Textarea,
150
+ textarea_cjs.Textarea,
151
151
  {
152
152
  value: input,
153
153
  onChange: (e) => setInput(e.target.value),
@@ -159,7 +159,7 @@ var AIAssistant = React__namespace.forwardRef(
159
159
  }
160
160
  ),
161
161
  /* @__PURE__ */ jsxRuntime.jsx(
162
- button_js.Button,
162
+ button_cjs.Button,
163
163
  {
164
164
  onClick: handleSend,
165
165
  disabled: !input.trim() || isLoading,
package/dist/ai-chat.cjs CHANGED
@@ -6,10 +6,10 @@ var React = require('react');
6
6
  var dateFns = require('date-fns');
7
7
  var lucideReact = require('lucide-react');
8
8
  var sonner = require('sonner');
9
- var badge_js = require('./badge.js');
10
- var button_js = require('./button.js');
11
- var separator_js = require('./separator.js');
12
- var textarea_js = require('./textarea.js');
9
+ var badge_cjs = require('./badge.cjs');
10
+ var button_cjs = require('./button.cjs');
11
+ var separator_cjs = require('./separator.cjs');
12
+ var textarea_cjs = require('./textarea.cjs');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
14
 
15
15
  function _interopNamespace(e) {
@@ -122,7 +122,7 @@ var ChatMessageComponent = React__namespace.forwardRef(
122
122
  ] }),
123
123
  message.role !== "system" && /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
124
124
  /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
125
- button_js.Button,
125
+ button_cjs.Button,
126
126
  {
127
127
  variant: "ghost",
128
128
  size: "icon",
@@ -153,7 +153,7 @@ var ChatMessageComponent = React__namespace.forwardRef(
153
153
  }
154
154
  ),
155
155
  message.attachments && message.attachments.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex flex-wrap gap-2", children: message.attachments.map((attachment) => /* @__PURE__ */ jsxRuntime.jsxs(
156
- badge_js.Badge,
156
+ badge_cjs.Badge,
157
157
  {
158
158
  colorPalette: "gray",
159
159
  ...ui.sx("gap-1"),
@@ -191,7 +191,7 @@ var AttachmentPreview = React__namespace.forwardRef(({ attachment, onRemove, cla
191
191
  ] })
192
192
  ] }),
193
193
  onRemove && /* @__PURE__ */ jsxRuntime.jsxs(
194
- button_js.Button,
194
+ button_cjs.Button,
195
195
  {
196
196
  variant: "ghost",
197
197
  size: "icon",
@@ -334,7 +334,7 @@ var AIChat = React__namespace.forwardRef(
334
334
  /* @__PURE__ */ jsxRuntime.jsx(TypingIndicator, {})
335
335
  ] })
336
336
  ] }) }),
337
- /* @__PURE__ */ jsxRuntime.jsx(separator_js.Separator, {}),
337
+ /* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, {}),
338
338
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "p-4", children: [
339
339
  attachments.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "mb-3 space-y-2", children: attachments.map((attachment) => /* @__PURE__ */ jsxRuntime.jsx(
340
340
  AttachmentPreview,
@@ -346,7 +346,7 @@ var AIChat = React__namespace.forwardRef(
346
346
  )) }),
347
347
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
348
348
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex-1", children: /* @__PURE__ */ jsxRuntime.jsx(
349
- textarea_js.Textarea,
349
+ textarea_cjs.Textarea,
350
350
  {
351
351
  ref: textareaRef,
352
352
  value: input,
@@ -361,7 +361,7 @@ var AIChat = React__namespace.forwardRef(
361
361
  ) }),
362
362
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex flex-col gap-2", children: [
363
363
  allowAttachments && /* @__PURE__ */ jsxRuntime.jsxs(
364
- button_js.Button,
364
+ button_cjs.Button,
365
365
  {
366
366
  type: "button",
367
367
  variant: "outline",
@@ -375,7 +375,7 @@ var AIChat = React__namespace.forwardRef(
375
375
  }
376
376
  ),
377
377
  /* @__PURE__ */ jsxRuntime.jsxs(
378
- button_js.Button,
378
+ button_cjs.Button,
379
379
  {
380
380
  onClick: handleSend,
381
381
  disabled: disabled || isGenerating || !input.trim() && attachments.length === 0,
package/dist/ai-code.cjs CHANGED
@@ -7,12 +7,12 @@ var Editor = require('@monaco-editor/react');
7
7
  var lucideReact = require('lucide-react');
8
8
  var nextThemes = require('next-themes');
9
9
  var sonner = require('sonner');
10
- var badge_js = require('./badge.js');
11
- var button_js = require('./button.js');
12
- var progress_js = require('./progress.js');
13
- var resizable_js = require('./resizable.js');
14
- var separator_js = require('./separator.js');
15
- var textarea_js = require('./textarea.js');
10
+ var badge_cjs = require('./badge.cjs');
11
+ var button_cjs = require('./button.cjs');
12
+ var progress_cjs = require('./progress.cjs');
13
+ var resizable_cjs = require('./resizable.cjs');
14
+ var separator_cjs = require('./separator.cjs');
15
+ var textarea_cjs = require('./textarea.cjs');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
17
 
18
18
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -81,7 +81,7 @@ var SecurityPanel = React__namespace.forwardRef(({ issues, onFixIssue, className
81
81
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { style: ui.css("h-4 w-4") }),
82
82
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "font-medium", children: "Security Analysis" }),
83
83
  issues.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
84
- badge_js.Badge,
84
+ badge_cjs.Badge,
85
85
  {
86
86
  colorPalette: issues.some((i) => i.severity === "critical") ? "red" : "gray",
87
87
  children: [
@@ -106,7 +106,7 @@ var SecurityPanel = React__namespace.forwardRef(({ issues, onFixIssue, className
106
106
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "space-y-1", children: [
107
107
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
108
108
  /* @__PURE__ */ jsxRuntime.jsx(
109
- badge_js.Badge,
109
+ badge_cjs.Badge,
110
110
  {
111
111
  colorPalette: issue.severity === "critical" || issue.severity === "high" ? "red" : "gray",
112
112
  ...ui.sx("text-xs"),
@@ -125,7 +125,7 @@ var SecurityPanel = React__namespace.forwardRef(({ issues, onFixIssue, className
125
125
  ] })
126
126
  ] }),
127
127
  onFixIssue && issue.fix && /* @__PURE__ */ jsxRuntime.jsx(
128
- button_js.Button,
128
+ button_cjs.Button,
129
129
  {
130
130
  size: "sm",
131
131
  variant: "outline",
@@ -169,7 +169,7 @@ var SuggestionsPanel = React__namespace.forwardRef(({ suggestions, onApplySugges
169
169
  ] })
170
170
  ] }),
171
171
  onApplySuggestion && /* @__PURE__ */ jsxRuntime.jsx(
172
- button_js.Button,
172
+ button_cjs.Button,
173
173
  {
174
174
  size: "sm",
175
175
  variant: "outline",
@@ -259,7 +259,7 @@ var ChatPanel = React__namespace.forwardRef(
259
259
  ] }) }),
260
260
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "border-t p-3", children: /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex gap-2", children: [
261
261
  /* @__PURE__ */ jsxRuntime.jsx(
262
- textarea_js.Textarea,
262
+ textarea_cjs.Textarea,
263
263
  {
264
264
  value: input,
265
265
  onChange: (e) => setInput(e.target.value),
@@ -271,7 +271,7 @@ var ChatPanel = React__namespace.forwardRef(
271
271
  }
272
272
  ),
273
273
  /* @__PURE__ */ jsxRuntime.jsx(
274
- button_js.Button,
274
+ button_cjs.Button,
275
275
  {
276
276
  size: "icon",
277
277
  onClick: handleSend,
@@ -317,7 +317,7 @@ var FileTabs = React__namespace.forwardRef(
317
317
  children: [
318
318
  /* @__PURE__ */ jsxRuntime.jsxs(ui.ScrollArea, { ...ui.sx("flex-1"), children: [
319
319
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "flex items-center gap-1 py-1", children: files.map((file) => /* @__PURE__ */ jsxRuntime.jsxs(
320
- button_js.Button,
320
+ button_cjs.Button,
321
321
  {
322
322
  variant: activeFile === file.name ? "secondary" : "ghost",
323
323
  size: "sm",
@@ -327,7 +327,7 @@ var FileTabs = React__namespace.forwardRef(
327
327
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.FileCode, { style: ui.css("h-3 w-3") }),
328
328
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs", children: file.name }),
329
329
  onFileDelete && files.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
330
- button_js.Button,
330
+ button_cjs.Button,
331
331
  {
332
332
  variant: "ghost",
333
333
  size: "icon",
@@ -363,7 +363,7 @@ var FileTabs = React__namespace.forwardRef(
363
363
  }
364
364
  ),
365
365
  /* @__PURE__ */ jsxRuntime.jsx(
366
- button_js.Button,
366
+ button_cjs.Button,
367
367
  {
368
368
  size: "icon",
369
369
  ...ui.sx("h-6 w-6"),
@@ -372,7 +372,7 @@ var FileTabs = React__namespace.forwardRef(
372
372
  }
373
373
  )
374
374
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(
375
- button_js.Button,
375
+ button_cjs.Button,
376
376
  {
377
377
  variant: "ghost",
378
378
  size: "icon",
@@ -746,7 +746,7 @@ var AICode = React__namespace.forwardRef(
746
746
  const isActive = feature === "explain" && explanations.length > 0;
747
747
  return /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
748
748
  /* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
749
- button_js.Button,
749
+ button_cjs.Button,
750
750
  {
751
751
  variant: isActive ? "secondary" : "ghost",
752
752
  size: "sm",
@@ -772,10 +772,10 @@ var AICode = React__namespace.forwardRef(
772
772
  ] }) })
773
773
  ] }, feature);
774
774
  }),
775
- /* @__PURE__ */ jsxRuntime.jsx(separator_js.Separator, { orientation: "vertical", ...ui.sx("h-4") }),
775
+ /* @__PURE__ */ jsxRuntime.jsx(separator_cjs.Separator, { orientation: "vertical", ...ui.sx("h-4") }),
776
776
  /* @__PURE__ */ jsxRuntime.jsxs(ui.Tooltip, { children: [
777
777
  /* @__PURE__ */ jsxRuntime.jsx(ui.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
778
- button_js.Button,
778
+ button_cjs.Button,
779
779
  {
780
780
  variant: "ghost",
781
781
  size: "sm",
@@ -795,10 +795,10 @@ var AICode = React__namespace.forwardRef(
795
795
  isProcessing && /* @__PURE__ */ jsxRuntime.jsxs(ui.Box, { className: "flex items-center gap-2", children: [
796
796
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { style: ui.css("h-3 w-3 animate-spin") }),
797
797
  /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { tag: "span", className: "text-xs text-muted-foreground", children: "Processing..." }),
798
- progress > 0 && /* @__PURE__ */ jsxRuntime.jsx(progress_js.Progress, { value: progress, ...ui.sx("w-16 h-1") })
798
+ progress > 0 && /* @__PURE__ */ jsxRuntime.jsx(progress_cjs.Progress, { value: progress, ...ui.sx("w-16 h-1") })
799
799
  ] }),
800
800
  /* @__PURE__ */ jsxRuntime.jsx(
801
- button_js.Button,
801
+ button_cjs.Button,
802
802
  {
803
803
  variant: "ghost",
804
804
  size: "sm",
@@ -808,7 +808,7 @@ var AICode = React__namespace.forwardRef(
808
808
  }
809
809
  ),
810
810
  /* @__PURE__ */ jsxRuntime.jsxs(ui.DropdownMenu, { children: [
811
- /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_js.Button, { variant: "ghost", size: "sm", ...ui.sx("h-8 gap-1"), children: [
811
+ /* @__PURE__ */ jsxRuntime.jsx(ui.DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(button_cjs.Button, { variant: "ghost", size: "sm", ...ui.sx("h-8 gap-1"), children: [
812
812
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { style: ui.css("h-3 w-3") }),
813
813
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { style: ui.css("h-3 w-3") })
814
814
  ] }) }),
@@ -854,8 +854,8 @@ var AICode = React__namespace.forwardRef(
854
854
  onFileDelete: currentFiles.length > 1 ? handleFileDelete : void 0
855
855
  }
856
856
  ),
857
- /* @__PURE__ */ jsxRuntime.jsxs(resizable_js.ResizablePanelGroup, { direction: "horizontal", className: "flex-1", children: [
858
- /* @__PURE__ */ jsxRuntime.jsx(resizable_js.ResizablePanel, { defaultSize: showSidePanel ? 70 : 100, minSize: 30, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
857
+ /* @__PURE__ */ jsxRuntime.jsxs(resizable_cjs.ResizablePanelGroup, { direction: "horizontal", className: "flex-1", children: [
858
+ /* @__PURE__ */ jsxRuntime.jsx(resizable_cjs.ResizablePanel, { defaultSize: showSidePanel ? 70 : 100, minSize: 30, children: /* @__PURE__ */ jsxRuntime.jsx(ui.Box, { className: "h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
859
859
  Editor__default.default,
860
860
  {
861
861
  height,
@@ -895,8 +895,8 @@ var AICode = React__namespace.forwardRef(
895
895
  }
896
896
  ) }) }),
897
897
  showSidePanel && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
898
- /* @__PURE__ */ jsxRuntime.jsx(resizable_js.ResizableHandle, {}),
899
- /* @__PURE__ */ jsxRuntime.jsx(resizable_js.ResizablePanel, { defaultSize: 30, minSize: 20, maxSize: 50, children: /* @__PURE__ */ jsxRuntime.jsxs(
898
+ /* @__PURE__ */ jsxRuntime.jsx(resizable_cjs.ResizableHandle, {}),
899
+ /* @__PURE__ */ jsxRuntime.jsx(resizable_cjs.ResizablePanel, { defaultSize: 30, minSize: 20, maxSize: 50, children: /* @__PURE__ */ jsxRuntime.jsxs(
900
900
  ui.Tabs,
901
901
  {
902
902
  value: sidePanelTab,
@@ -911,7 +911,7 @@ var AICode = React__namespace.forwardRef(
911
911
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Zap, { style: ui.css("h-3 w-3 mr-1") }),
912
912
  "AI",
913
913
  suggestions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
914
- badge_js.Badge,
914
+ badge_cjs.Badge,
915
915
  {
916
916
  colorPalette: "gray",
917
917
  ...ui.sx("ml-1 h-4 text-xs"),
@@ -923,7 +923,7 @@ var AICode = React__namespace.forwardRef(
923
923
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Shield, { style: ui.css("h-3 w-3 mr-1") }),
924
924
  "Security",
925
925
  securityIssues.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
926
- badge_js.Badge,
926
+ badge_cjs.Badge,
927
927
  {
928
928
  colorPalette: securityIssues.some(
929
929
  (i) => i.severity === "critical"