@luxfi/ui 8.2.7 → 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 (241) hide show
  1. package/dist/3d-model-viewer.cjs +25 -421
  2. package/dist/3d-model-viewer.js +20 -416
  3. package/dist/accordion.cjs +3 -10
  4. package/dist/accordion.js +2 -10
  5. package/dist/advanced-navigation-bar.cjs +5 -401
  6. package/dist/advanced-navigation-bar.js +5 -401
  7. package/dist/ai-agents.cjs +45 -890
  8. package/dist/ai-agents.js +8 -834
  9. package/dist/ai-assistant.cjs +13 -740
  10. package/dist/ai-assistant.js +10 -738
  11. package/dist/ai-chat.cjs +24 -770
  12. package/dist/ai-chat.js +18 -765
  13. package/dist/ai-code.cjs +67 -923
  14. package/dist/ai-code.js +49 -905
  15. package/dist/ai-playground.cjs +25 -801
  16. package/dist/ai-playground.js +18 -795
  17. package/dist/ai-tools.cjs +22 -767
  18. package/dist/ai-tools.js +15 -761
  19. package/dist/ai-vision.cjs +41 -993
  20. package/dist/ai-vision.js +30 -983
  21. package/dist/ai-voice-settings.cjs +35 -1006
  22. package/dist/ai-voice-settings.js +32 -1004
  23. package/dist/ai-voice.cjs +51 -1024
  24. package/dist/ai-voice.js +9 -963
  25. package/dist/alert.cjs +11 -129
  26. package/dist/alert.js +8 -127
  27. package/dist/announcement.cjs +6 -402
  28. package/dist/announcement.js +6 -402
  29. package/dist/app-switcher-navigation-bar.cjs +5 -401
  30. package/dist/app-switcher-navigation-bar.js +5 -401
  31. package/dist/apple-cards-carousel.cjs +84 -480
  32. package/dist/apple-cards-carousel.js +19 -415
  33. package/dist/auth.cjs +10 -387
  34. package/dist/auth.js +7 -385
  35. package/dist/avatar.cjs +2 -9
  36. package/dist/avatar.js +2 -10
  37. package/dist/badge.cjs +8 -228
  38. package/dist/badge.js +5 -210
  39. package/dist/button.cjs +14 -67
  40. package/dist/button.js +12 -65
  41. package/dist/chrome.cjs +29 -493
  42. package/dist/chrome.js +9 -474
  43. package/dist/code-block.cjs +16 -664
  44. package/dist/code-block.js +13 -662
  45. package/dist/code-compare.cjs +28 -1302
  46. package/dist/code-compare.js +18 -1293
  47. package/dist/code-diff.cjs +21 -669
  48. package/dist/code-diff.js +17 -666
  49. package/dist/code-editor.cjs +13 -409
  50. package/dist/code-editor.js +12 -408
  51. package/dist/code-explorer.cjs +14 -456
  52. package/dist/code-explorer.js +13 -456
  53. package/dist/code-preview.cjs +31 -983
  54. package/dist/code-preview.js +23 -976
  55. package/dist/code-snippet.cjs +19 -667
  56. package/dist/code-snippet.js +14 -663
  57. package/dist/code-terminal.cjs +24 -485
  58. package/dist/code-terminal.js +19 -481
  59. package/dist/collapsible.cjs +13 -347
  60. package/dist/collapsible.js +11 -330
  61. package/dist/color-picker.cjs +8 -450
  62. package/dist/color-picker.js +7 -450
  63. package/dist/combobox.cjs +6 -402
  64. package/dist/combobox.js +6 -402
  65. package/dist/communication-navigation-bar.cjs +7 -403
  66. package/dist/communication-navigation-bar.js +5 -401
  67. package/dist/dashboard-navigation-bar.cjs +6 -402
  68. package/dist/dashboard-navigation-bar.js +5 -401
  69. package/dist/dialog-stack.cjs +5 -401
  70. package/dist/dialog-stack.js +5 -401
  71. package/dist/dialog.cjs +13 -70
  72. package/dist/dialog.js +13 -70
  73. package/dist/drawer.cjs +23 -99
  74. package/dist/drawer.js +19 -96
  75. package/dist/e-commerce-navigation-bar.cjs +7 -403
  76. package/dist/e-commerce-navigation-bar.js +5 -401
  77. package/dist/editor.cjs +9 -405
  78. package/dist/editor.js +6 -402
  79. package/dist/iam.cjs +2 -123
  80. package/dist/iam.js +1 -122
  81. package/dist/icon-button.cjs +2 -56
  82. package/dist/icon-button.js +1 -55
  83. package/dist/identity.cjs +28 -242
  84. package/dist/identity.js +20 -235
  85. package/dist/image-crop.cjs +10 -406
  86. package/dist/image-crop.js +7 -403
  87. package/dist/image.cjs +14 -83
  88. package/dist/image.js +13 -67
  89. package/dist/index.cjs +1868 -38770
  90. package/dist/index.js +174 -38320
  91. package/dist/input-group.cjs +3 -10
  92. package/dist/input-group.js +2 -10
  93. package/dist/item.cjs +2 -27
  94. package/dist/item.js +1 -22
  95. package/dist/kanban.cjs +25 -751
  96. package/dist/kanban.js +15 -742
  97. package/dist/limelight-nav.cjs +10 -452
  98. package/dist/limelight-nav.js +9 -452
  99. package/dist/link.cjs +11 -80
  100. package/dist/link.js +6 -60
  101. package/dist/lux.config.cjs +14 -32
  102. package/dist/lux.config.js +3 -26
  103. package/dist/menu.cjs +5 -13
  104. package/dist/menu.js +1 -9
  105. package/dist/message-dock.cjs +5 -401
  106. package/dist/message-dock.js +5 -401
  107. package/dist/mini-calendar.cjs +7 -403
  108. package/dist/mini-calendar.js +6 -402
  109. package/dist/music-player.cjs +30 -528
  110. package/dist/music-player.js +22 -520
  111. package/dist/next.cjs +8 -89
  112. package/dist/next.js +3 -86
  113. package/dist/popover.cjs +17 -74
  114. package/dist/popover.js +16 -73
  115. package/dist/progress-circle.cjs +3 -10
  116. package/dist/progress-circle.js +2 -10
  117. package/dist/provider.cjs +7 -176
  118. package/dist/provider.js +4 -174
  119. package/dist/select.cjs +36 -89
  120. package/dist/select.js +35 -88
  121. package/dist/sidebar.cjs +22 -493
  122. package/dist/sidebar.js +17 -489
  123. package/dist/site/commerce/ui/context.cjs +9 -214
  124. package/dist/site/commerce/ui/context.js +6 -215
  125. package/dist/site/components/analytics.cjs +2 -42
  126. package/dist/site/components/analytics.js +1 -37
  127. package/dist/site/components/auth/callback.cjs +2 -8
  128. package/dist/site/components/auth/callback.js +1 -7
  129. package/dist/site/components/auth/login-panel.cjs +15 -74
  130. package/dist/site/components/auth/login-panel.js +12 -73
  131. package/dist/site/components/auth/login.cjs +2 -6
  132. package/dist/site/components/auth/login.js +1 -5
  133. package/dist/site/components/auth/widget.cjs +2 -6
  134. package/dist/site/components/auth/widget.js +1 -5
  135. package/dist/site/components/commerce/bag-button.cjs +2 -3
  136. package/dist/site/components/commerce/bag-button.js +2 -3
  137. package/dist/site/components/commerce/buy-button.cjs +2 -11
  138. package/dist/site/components/commerce/buy-button.js +1 -10
  139. package/dist/site/components/commerce/checkout-button.cjs +2 -3
  140. package/dist/site/components/commerce/checkout-button.js +2 -3
  141. package/dist/site/components/commerce/checkout-panel/desktop-cp.cjs +15 -173
  142. package/dist/site/components/commerce/checkout-panel/desktop-cp.js +14 -174
  143. package/dist/site/components/commerce/checkout-panel/index.cjs +9 -400
  144. package/dist/site/components/commerce/checkout-panel/index.js +10 -403
  145. package/dist/site/components/commerce/checkout-panel/mobile-cp.cjs +15 -236
  146. package/dist/site/components/commerce/checkout-panel/mobile-cp.js +13 -237
  147. package/dist/site/components/commerce/desktop-bag-popup.cjs +7 -8
  148. package/dist/site/components/commerce/desktop-bag-popup.js +3 -8
  149. package/dist/site/components/commerce/drawer/index.cjs +15 -289
  150. package/dist/site/components/commerce/drawer/index.js +10 -290
  151. package/dist/site/components/commerce/drawer/micro.cjs +8 -115
  152. package/dist/site/components/commerce/drawer/micro.js +4 -115
  153. package/dist/site/components/commerce/drawer/shell.cjs +2 -10
  154. package/dist/site/components/commerce/drawer/shell.js +2 -10
  155. package/dist/site/components/contact-dialog/index.cjs +6 -69
  156. package/dist/site/components/contact-dialog/index.js +7 -71
  157. package/dist/site/components/drawer-margin.cjs +2 -10
  158. package/dist/site/components/drawer-margin.js +2 -10
  159. package/dist/site/components/footer.cjs +11 -81
  160. package/dist/site/components/footer.js +8 -80
  161. package/dist/site/components/header/desktop.cjs +18 -374
  162. package/dist/site/components/header/desktop.js +12 -355
  163. package/dist/site/components/header/index.cjs +9 -674
  164. package/dist/site/components/header/index.js +8 -657
  165. package/dist/site/components/header/mobile-bag-drawer.cjs +6 -71
  166. package/dist/site/components/header/mobile-bag-drawer.js +5 -74
  167. package/dist/site/components/header/mobile-nav-menu-ai.cjs +2 -31
  168. package/dist/site/components/header/mobile-nav-menu-ai.js +1 -26
  169. package/dist/site/components/header/mobile-nav-menu-item.cjs +6 -60
  170. package/dist/site/components/header/mobile-nav-menu-item.js +6 -61
  171. package/dist/site/components/header/mobile-nav-menu.cjs +7 -110
  172. package/dist/site/components/header/mobile-nav-menu.js +7 -112
  173. package/dist/site/components/header/mobile.cjs +25 -330
  174. package/dist/site/components/header/mobile.js +20 -330
  175. package/dist/site/components/icons/index.cjs +34 -35
  176. package/dist/site/components/icons/index.js +5 -33
  177. package/dist/site/components/index.cjs +118 -1961
  178. package/dist/site/components/index.js +23 -1951
  179. package/dist/site/components/mini-chart/index.cjs +7 -90
  180. package/dist/site/components/mini-chart/index.js +1 -92
  181. package/dist/site/components/mini-chart/wrapper.cjs +7 -76
  182. package/dist/site/components/mini-chart/wrapper.js +4 -77
  183. package/dist/site/components/not-found/index.cjs +9 -819
  184. package/dist/site/components/not-found/index.js +8 -802
  185. package/dist/site/components/security/index.cjs +9 -819
  186. package/dist/site/components/security/index.js +8 -802
  187. package/dist/site/next/analytics/index.cjs +16 -49
  188. package/dist/site/next/analytics/index.js +3 -49
  189. package/dist/site/next/analytics/pixel-analytics.cjs +23 -8
  190. package/dist/site/next/analytics/pixel-analytics.js +4 -8
  191. package/dist/site/next/index.cjs +13 -140
  192. package/dist/site/next/index.js +2 -140
  193. package/dist/site/root-layout/index.cjs +12 -1435
  194. package/dist/site/root-layout/index.css +0 -133
  195. package/dist/site/root-layout/index.js +12 -1416
  196. package/dist/site/site-def/footer/community.cjs +11 -27
  197. package/dist/site/site-def/footer/community.js +2 -18
  198. package/dist/site/site-def/footer/company.d.ts +3 -3
  199. package/dist/site/site-def/footer/index.cjs +38 -218
  200. package/dist/site/site-def/footer/index.js +14 -215
  201. package/dist/site/site-def/index.cjs +28 -620
  202. package/dist/site/site-def/index.js +3 -624
  203. package/dist/table.cjs +20 -338
  204. package/dist/table.js +19 -338
  205. package/dist/tabs.cjs +3 -10
  206. package/dist/tabs.js +1 -9
  207. package/dist/tag.cjs +9 -270
  208. package/dist/tag.js +6 -268
  209. package/dist/tags.cjs +6 -314
  210. package/dist/tags.js +5 -314
  211. package/dist/textarea.cjs +4 -50
  212. package/dist/textarea.js +3 -49
  213. package/dist/tooltip.cjs +15 -34
  214. package/dist/tooltip.js +13 -33
  215. package/dist/vite.cjs +3 -82
  216. package/dist/vite.js +1 -80
  217. package/package.json +1 -1
  218. package/dist/index.css +0 -132
  219. package/dist/site/components/auth/login-panel.css +0 -4
  220. package/dist/site/components/commerce/bag-button.css +0 -4
  221. package/dist/site/components/commerce/checkout-button.css +0 -4
  222. package/dist/site/components/commerce/checkout-panel/desktop-cp.css +0 -132
  223. package/dist/site/components/commerce/checkout-panel/index.css +0 -132
  224. package/dist/site/components/commerce/checkout-panel/mobile-cp.css +0 -132
  225. package/dist/site/components/commerce/desktop-bag-popup.css +0 -4
  226. package/dist/site/components/commerce/drawer/index.css +0 -132
  227. package/dist/site/components/commerce/drawer/micro.css +0 -4
  228. package/dist/site/components/header/desktop.css +0 -4
  229. package/dist/site/components/header/index.css +0 -132
  230. package/dist/site/components/header/mobile-bag-drawer.css +0 -4
  231. package/dist/site/components/header/mobile-nav-menu-ai.css +0 -132
  232. package/dist/site/components/header/mobile-nav-menu-item.css +0 -132
  233. package/dist/site/components/header/mobile-nav-menu.css +0 -132
  234. package/dist/site/components/header/mobile.css +0 -132
  235. package/dist/site/components/icons/index.css +0 -4
  236. package/dist/site/components/index.css +0 -132
  237. package/dist/site/components/not-found/index.css +0 -132
  238. package/dist/site/components/security/index.css +0 -132
  239. package/dist/site/site-def/footer/community.css +0 -4
  240. package/dist/site/site-def/footer/index.css +0 -4
  241. package/dist/site/site-def/index.css +0 -4
package/dist/next.cjs CHANGED
@@ -2,96 +2,12 @@
2
2
  'use strict';
3
3
 
4
4
  var module$1 = require('module');
5
+ var engine_cjs = require('./engine.cjs');
5
6
 
6
- // src/engine.ts
7
- var GUI_PACKAGES = [
8
- "@hanzo/gui",
9
- "@hanzogui/accordion",
10
- "@hanzogui/adapt",
11
- "@hanzogui/alert-dialog",
12
- "@hanzogui/animate",
13
- "@hanzogui/animate-presence",
14
- "@hanzogui/avatar",
15
- "@hanzogui/button",
16
- "@hanzogui/card",
17
- "@hanzogui/checkbox",
18
- "@hanzogui/collapsible",
19
- "@hanzogui/component-helpers",
20
- "@hanzogui/compose-refs",
21
- "@hanzogui/config",
22
- "@hanzogui/context-menu",
23
- "@hanzogui/core",
24
- "@hanzogui/create-context",
25
- "@hanzogui/create-menu",
26
- "@hanzogui/dialog",
27
- "@hanzogui/dismissable",
28
- "@hanzogui/element",
29
- "@hanzogui/elements",
30
- "@hanzogui/floating",
31
- "@hanzogui/focus-scope",
32
- "@hanzogui/font-size",
33
- "@hanzogui/form",
34
- "@hanzogui/get-token",
35
- "@hanzogui/group",
36
- "@hanzogui/helpers",
37
- "@hanzogui/image",
38
- "@hanzogui/input",
39
- "@hanzogui/label",
40
- "@hanzogui/list-item",
41
- "@hanzogui/menu",
42
- "@hanzogui/popover",
43
- "@hanzogui/popper",
44
- "@hanzogui/portal",
45
- "@hanzogui/progress",
46
- "@hanzogui/radio-group",
47
- "@hanzogui/react-native-media-driver",
48
- "@hanzogui/remove-scroll",
49
- "@hanzogui/scroll-view",
50
- "@hanzogui/select",
51
- "@hanzogui/separator",
52
- "@hanzogui/shapes",
53
- "@hanzogui/sheet",
54
- "@hanzogui/slider",
55
- "@hanzogui/spacer",
56
- "@hanzogui/spinner",
57
- "@hanzogui/stacks",
58
- "@hanzogui/switch",
59
- "@hanzogui/tabs",
60
- "@hanzogui/text",
61
- "@hanzogui/theme",
62
- "@hanzogui/toast",
63
- "@hanzogui/toggle-group",
64
- "@hanzogui/tooltip",
65
- "@hanzogui/use-controllable-state",
66
- "@hanzogui/use-debounce",
67
- "@hanzogui/use-force-update",
68
- "@hanzogui/use-presence",
69
- "@hanzogui/use-window-dimensions",
70
- "@hanzogui/visually-hidden",
71
- "@hanzogui/web",
72
- "@hanzogui/z-index-stack",
73
- "@luxfi/ui"
74
- ];
75
- var GUI_DEFINES = {
76
- "process.env.EXPO_OS": JSON.stringify("web"),
77
- "process.env.IS_WEB": JSON.stringify("true")
78
- };
79
- [
80
- "react",
81
- "react-dom",
82
- "@tanstack/react-query",
83
- ...GUI_PACKAGES
84
- ];
85
- var ALIASABLE = [
86
- "@tanstack/react-query",
87
- ...GUI_PACKAGES
88
- ];
89
-
90
- // src/next.ts
91
7
  function guiAliases(from) {
92
8
  const require_ = module$1.createRequire(`${from.replace(/\/?$/, "/")}noop.js`);
93
9
  const alias = {};
94
- for (const pkg of ALIASABLE) {
10
+ for (const pkg of engine_cjs.ALIASABLE) {
95
11
  try {
96
12
  alias[`${pkg}$`] = require_.resolve(pkg);
97
13
  } catch {
@@ -105,7 +21,7 @@ function withLuxUi(config = {}) {
105
21
  const { dir: _dir, ...rest } = config;
106
22
  return {
107
23
  ...rest,
108
- transpilePackages: [.../* @__PURE__ */ new Set([...config.transpilePackages ?? [], ...GUI_PACKAGES])],
24
+ transpilePackages: [.../* @__PURE__ */ new Set([...config.transpilePackages ?? [], ...engine_cjs.GUI_PACKAGES])],
109
25
  turbopack: {
110
26
  ...config.turbopack,
111
27
  resolveAlias: {
@@ -126,12 +42,15 @@ function withLuxUi(config = {}) {
126
42
  };
127
43
  const webpackModule = context?.webpack;
128
44
  if (webpackModule?.DefinePlugin) {
129
- next.plugins = [...next.plugins ?? [], new webpackModule.DefinePlugin({ ...GUI_DEFINES })];
45
+ next.plugins = [...next.plugins ?? [], new webpackModule.DefinePlugin({ ...engine_cjs.GUI_DEFINES })];
130
46
  }
131
47
  return next;
132
48
  }
133
49
  };
134
50
  }
135
51
 
136
- exports.GUI_PACKAGES = GUI_PACKAGES;
52
+ Object.defineProperty(exports, "GUI_PACKAGES", {
53
+ enumerable: true,
54
+ get: function () { return engine_cjs.GUI_PACKAGES; }
55
+ });
137
56
  exports.withLuxUi = withLuxUi;
package/dist/next.js CHANGED
@@ -1,91 +1,8 @@
1
1
  'use client';
2
2
  import { createRequire } from 'module';
3
+ import { GUI_DEFINES, GUI_PACKAGES, ALIASABLE } from './engine.js';
4
+ export { GUI_PACKAGES } from './engine.js';
3
5
 
4
- // src/engine.ts
5
- var GUI_PACKAGES = [
6
- "@hanzo/gui",
7
- "@hanzogui/accordion",
8
- "@hanzogui/adapt",
9
- "@hanzogui/alert-dialog",
10
- "@hanzogui/animate",
11
- "@hanzogui/animate-presence",
12
- "@hanzogui/avatar",
13
- "@hanzogui/button",
14
- "@hanzogui/card",
15
- "@hanzogui/checkbox",
16
- "@hanzogui/collapsible",
17
- "@hanzogui/component-helpers",
18
- "@hanzogui/compose-refs",
19
- "@hanzogui/config",
20
- "@hanzogui/context-menu",
21
- "@hanzogui/core",
22
- "@hanzogui/create-context",
23
- "@hanzogui/create-menu",
24
- "@hanzogui/dialog",
25
- "@hanzogui/dismissable",
26
- "@hanzogui/element",
27
- "@hanzogui/elements",
28
- "@hanzogui/floating",
29
- "@hanzogui/focus-scope",
30
- "@hanzogui/font-size",
31
- "@hanzogui/form",
32
- "@hanzogui/get-token",
33
- "@hanzogui/group",
34
- "@hanzogui/helpers",
35
- "@hanzogui/image",
36
- "@hanzogui/input",
37
- "@hanzogui/label",
38
- "@hanzogui/list-item",
39
- "@hanzogui/menu",
40
- "@hanzogui/popover",
41
- "@hanzogui/popper",
42
- "@hanzogui/portal",
43
- "@hanzogui/progress",
44
- "@hanzogui/radio-group",
45
- "@hanzogui/react-native-media-driver",
46
- "@hanzogui/remove-scroll",
47
- "@hanzogui/scroll-view",
48
- "@hanzogui/select",
49
- "@hanzogui/separator",
50
- "@hanzogui/shapes",
51
- "@hanzogui/sheet",
52
- "@hanzogui/slider",
53
- "@hanzogui/spacer",
54
- "@hanzogui/spinner",
55
- "@hanzogui/stacks",
56
- "@hanzogui/switch",
57
- "@hanzogui/tabs",
58
- "@hanzogui/text",
59
- "@hanzogui/theme",
60
- "@hanzogui/toast",
61
- "@hanzogui/toggle-group",
62
- "@hanzogui/tooltip",
63
- "@hanzogui/use-controllable-state",
64
- "@hanzogui/use-debounce",
65
- "@hanzogui/use-force-update",
66
- "@hanzogui/use-presence",
67
- "@hanzogui/use-window-dimensions",
68
- "@hanzogui/visually-hidden",
69
- "@hanzogui/web",
70
- "@hanzogui/z-index-stack",
71
- "@luxfi/ui"
72
- ];
73
- var GUI_DEFINES = {
74
- "process.env.EXPO_OS": JSON.stringify("web"),
75
- "process.env.IS_WEB": JSON.stringify("true")
76
- };
77
- [
78
- "react",
79
- "react-dom",
80
- "@tanstack/react-query",
81
- ...GUI_PACKAGES
82
- ];
83
- var ALIASABLE = [
84
- "@tanstack/react-query",
85
- ...GUI_PACKAGES
86
- ];
87
-
88
- // src/next.ts
89
6
  function guiAliases(from) {
90
7
  const require_ = createRequire(`${from.replace(/\/?$/, "/")}noop.js`);
91
8
  const alias = {};
@@ -131,4 +48,4 @@ function withLuxUi(config = {}) {
131
48
  };
132
49
  }
133
50
 
134
- export { GUI_PACKAGES, withLuxUi };
51
+ export { withLuxUi };
package/dist/popover.cjs CHANGED
@@ -3,7 +3,8 @@
3
3
 
4
4
  var gui = require('@hanzo/gui');
5
5
  var ui = require('@hanzo/ui');
6
- var React2 = require('react');
6
+ var React = require('react');
7
+ var closeButton_cjs = require('./close-button.cjs');
7
8
  var jsxRuntime = require('react/jsx-runtime');
8
9
 
9
10
  function _interopNamespace(e) {
@@ -24,66 +25,8 @@ function _interopNamespace(e) {
24
25
  return Object.freeze(n);
25
26
  }
26
27
 
27
- var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
28
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
29
 
29
- var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
30
- var CloseButtonFrame = gui.styled(gui.View, {
31
- name: "LuxCloseButton",
32
- render: /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", "aria-label": "Close" }),
33
- role: "button",
34
- cursor: "pointer",
35
- display: "inline-flex",
36
- alignItems: "center",
37
- justifyContent: "center",
38
- width: 20,
39
- height: 20,
40
- minWidth: 0,
41
- flexShrink: 1,
42
- padding: 0,
43
- borderRadius: 4,
44
- borderWidth: 0,
45
- overflow: "hidden",
46
- backgroundColor: "transparent",
47
- hoverStyle: {
48
- backgroundColor: "transparent"
49
- },
50
- variants: {
51
- disabled: {
52
- true: {
53
- opacity: 0.4,
54
- pointerEvents: "none"
55
- }
56
- }
57
- }
58
- });
59
- var CloseButton = React2__namespace.forwardRef(function CloseButton2(props, ref) {
60
- const { variant: _variant, size: _size, className, children, ...rest } = props;
61
- return /* @__PURE__ */ jsxRuntime.jsx(
62
- CloseButtonFrame,
63
- {
64
- ref,
65
- className,
66
- ...rest,
67
- children: children ?? /* @__PURE__ */ jsxRuntime.jsx(
68
- "svg",
69
- {
70
- width: 20,
71
- height: 20,
72
- viewBox: "0 0 20 20",
73
- fill: "none",
74
- "aria-hidden": "true",
75
- children: /* @__PURE__ */ jsxRuntime.jsx(
76
- "path",
77
- {
78
- d: CLOSE_ICON_PATH,
79
- fill: "currentColor"
80
- }
81
- )
82
- }
83
- )
84
- }
85
- );
86
- });
87
30
  function parsePlacement(placement) {
88
31
  if (!placement) {
89
32
  return { side: "bottom", align: "start" };
@@ -99,7 +42,7 @@ function parsePlacement(placement) {
99
42
  }
100
43
  return { side, align };
101
44
  }
102
- var PositioningContext = React2__namespace.createContext({
45
+ var PositioningContext = React__namespace.createContext({
103
46
  side: "bottom",
104
47
  align: "start",
105
48
  sideOffset: 4,
@@ -133,7 +76,7 @@ var PopoverRoot = (props) => {
133
76
  }
134
77
  };
135
78
  const { side, align } = parsePlacement(mergedPositioning.placement);
136
- const positioningValue = React2__namespace.useMemo(() => ({
79
+ const positioningValue = React__namespace.useMemo(() => ({
137
80
  side,
138
81
  align,
139
82
  sideOffset: mergedPositioning.offset?.mainAxis ?? 4,
@@ -150,7 +93,7 @@ var PopoverRoot = (props) => {
150
93
  autoFocus,
151
94
  closeOnInteractOutside
152
95
  ]);
153
- const handleOpenChange = React2__namespace.useCallback((isOpen) => {
96
+ const handleOpenChange = React__namespace.useCallback((isOpen) => {
154
97
  onOpenChange?.({ open: isOpen });
155
98
  }, [onOpenChange]);
156
99
  const placement = mergedPositioning.placement ?? "bottom-start";
@@ -168,11 +111,11 @@ var PopoverRoot = (props) => {
168
111
  }
169
112
  ) });
170
113
  };
171
- var PopoverTrigger = React2__namespace.forwardRef(function PopoverTrigger2(props, ref) {
114
+ var PopoverTrigger = React__namespace.forwardRef(function PopoverTrigger2(props, ref) {
172
115
  const { asChild = true, ...rest } = props;
173
116
  return /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Trigger, { asChild: asChild ? "except-style" : void 0, ref, ...rest });
174
117
  });
175
- var PopoverContent = React2__namespace.forwardRef(function PopoverContent2(props, ref) {
118
+ var PopoverContent = React__namespace.forwardRef(function PopoverContent2(props, ref) {
176
119
  const { portalled = true, portalRef: _portalRef, className, w, minW, maxW, paddingTop, style: styleProp, ...rest } = props;
177
120
  const resolvedW = typeof w === "object" ? w.base ?? w.lg : w;
178
121
  const contentStyle = {
@@ -203,7 +146,7 @@ var PopoverContent = React2__namespace.forwardRef(function PopoverContent2(props
203
146
  }
204
147
  );
205
148
  });
206
- var PopoverArrow = React2__namespace.forwardRef(function PopoverArrow2(props, ref) {
149
+ var PopoverArrow = React__namespace.forwardRef(function PopoverArrow2(props, ref) {
207
150
  const { className, ...rest } = props;
208
151
  return /* @__PURE__ */ jsxRuntime.jsx(
209
152
  gui.Popover.Arrow,
@@ -215,7 +158,7 @@ var PopoverArrow = React2__namespace.forwardRef(function PopoverArrow2(props, re
215
158
  }
216
159
  );
217
160
  });
218
- var PopoverCloseTrigger = React2__namespace.forwardRef(function PopoverCloseTrigger2(props, ref) {
161
+ var PopoverCloseTrigger = React__namespace.forwardRef(function PopoverCloseTrigger2(props, ref) {
219
162
  const { className, ...rest } = props;
220
163
  return /* @__PURE__ */ jsxRuntime.jsx(
221
164
  gui.Popover.Close,
@@ -225,18 +168,18 @@ var PopoverCloseTrigger = React2__namespace.forwardRef(function PopoverCloseTrig
225
168
  ...rest,
226
169
  asChild: true,
227
170
  ref,
228
- children: /* @__PURE__ */ jsxRuntime.jsx(CloseButton, {})
171
+ children: /* @__PURE__ */ jsxRuntime.jsx(closeButton_cjs.CloseButton, {})
229
172
  }
230
173
  );
231
174
  });
232
- var PopoverCloseTriggerWrapper = React2__namespace.forwardRef(function PopoverCloseTriggerWrapper2(props, ref) {
175
+ var PopoverCloseTriggerWrapper = React__namespace.forwardRef(function PopoverCloseTriggerWrapper2(props, ref) {
233
176
  const { disabled, children, ...rest } = props;
234
177
  if (disabled) {
235
178
  return children;
236
179
  }
237
180
  return /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Close, { ref, ...rest, asChild: true, children });
238
181
  });
239
- var PopoverBody = React2__namespace.forwardRef(function PopoverBody2(props, ref) {
182
+ var PopoverBody = React__namespace.forwardRef(function PopoverBody2(props, ref) {
240
183
  const {
241
184
  className,
242
185
  style: styleProp,
@@ -274,7 +217,7 @@ var PopoverBody = React2__namespace.forwardRef(function PopoverBody2(props, ref)
274
217
  }
275
218
  );
276
219
  });
277
- var PopoverHeader = React2__namespace.forwardRef(function PopoverHeader2(props, ref) {
220
+ var PopoverHeader = React__namespace.forwardRef(function PopoverHeader2(props, ref) {
278
221
  const { className, ...rest } = props;
279
222
  return /* @__PURE__ */ jsxRuntime.jsx(
280
223
  ui.Box,
@@ -285,7 +228,7 @@ var PopoverHeader = React2__namespace.forwardRef(function PopoverHeader2(props,
285
228
  }
286
229
  );
287
230
  });
288
- var PopoverFooter = React2__namespace.forwardRef(function PopoverFooter2(props, ref) {
231
+ var PopoverFooter = React__namespace.forwardRef(function PopoverFooter2(props, ref) {
289
232
  const { className, ...rest } = props;
290
233
  return /* @__PURE__ */ jsxRuntime.jsx(
291
234
  ui.Box,
@@ -296,7 +239,7 @@ var PopoverFooter = React2__namespace.forwardRef(function PopoverFooter2(props,
296
239
  }
297
240
  );
298
241
  });
299
- var PopoverTitle = React2__namespace.forwardRef(function PopoverTitle2(props, ref) {
242
+ var PopoverTitle = React__namespace.forwardRef(function PopoverTitle2(props, ref) {
300
243
  const { className, ...rest } = props;
301
244
  return /* @__PURE__ */ jsxRuntime.jsx(
302
245
  ui.Box,
@@ -308,7 +251,7 @@ var PopoverTitle = React2__namespace.forwardRef(function PopoverTitle2(props, re
308
251
  }
309
252
  );
310
253
  });
311
- var PopoverDescription = React2__namespace.forwardRef(function PopoverDescription2(props, ref) {
254
+ var PopoverDescription = React__namespace.forwardRef(function PopoverDescription2(props, ref) {
312
255
  const { className, ...rest } = props;
313
256
  return /* @__PURE__ */ jsxRuntime.jsx(
314
257
  ui.Box,
package/dist/popover.js CHANGED
@@ -1,67 +1,10 @@
1
1
  'use client';
2
- import { styled, View, Popover } from '@hanzo/gui';
2
+ import { Popover } from '@hanzo/gui';
3
3
  import { sx, Box, cn } from '@hanzo/ui';
4
- import * as React2 from 'react';
4
+ import * as React from 'react';
5
+ import { CloseButton } from './close-button.js';
5
6
  import { jsx } from 'react/jsx-runtime';
6
7
 
7
- var CLOSE_ICON_PATH = "M9.44 8.035a.791.791 0 0 0 1.12 0l3.802-3.803a.791.791 0 0 1 1.119 0l.287.287a.79.79 0 0 1 0 1.119L11.965 9.44a.79.79 0 0 0 0 1.118l3.803 3.803a.791.791 0 0 1 0 1.119l-.287.287a.791.791 0 0 1-1.119 0l-3.803-3.803a.79.79 0 0 0-1.118 0l-3.803 3.803a.79.79 0 0 1-1.119 0l-.287-.287a.791.791 0 0 1 0-1.119l3.803-3.803a.791.791 0 0 0 0-1.118L4.232 5.638a.791.791 0 0 1 0-1.119l.287-.287a.791.791 0 0 1 1.119 0L9.44 8.035Z";
8
- var CloseButtonFrame = styled(View, {
9
- name: "LuxCloseButton",
10
- render: /* @__PURE__ */ jsx("button", { type: "button", "aria-label": "Close" }),
11
- role: "button",
12
- cursor: "pointer",
13
- display: "inline-flex",
14
- alignItems: "center",
15
- justifyContent: "center",
16
- width: 20,
17
- height: 20,
18
- minWidth: 0,
19
- flexShrink: 1,
20
- padding: 0,
21
- borderRadius: 4,
22
- borderWidth: 0,
23
- overflow: "hidden",
24
- backgroundColor: "transparent",
25
- hoverStyle: {
26
- backgroundColor: "transparent"
27
- },
28
- variants: {
29
- disabled: {
30
- true: {
31
- opacity: 0.4,
32
- pointerEvents: "none"
33
- }
34
- }
35
- }
36
- });
37
- var CloseButton = React2.forwardRef(function CloseButton2(props, ref) {
38
- const { variant: _variant, size: _size, className, children, ...rest } = props;
39
- return /* @__PURE__ */ jsx(
40
- CloseButtonFrame,
41
- {
42
- ref,
43
- className,
44
- ...rest,
45
- children: children ?? /* @__PURE__ */ jsx(
46
- "svg",
47
- {
48
- width: 20,
49
- height: 20,
50
- viewBox: "0 0 20 20",
51
- fill: "none",
52
- "aria-hidden": "true",
53
- children: /* @__PURE__ */ jsx(
54
- "path",
55
- {
56
- d: CLOSE_ICON_PATH,
57
- fill: "currentColor"
58
- }
59
- )
60
- }
61
- )
62
- }
63
- );
64
- });
65
8
  function parsePlacement(placement) {
66
9
  if (!placement) {
67
10
  return { side: "bottom", align: "start" };
@@ -77,7 +20,7 @@ function parsePlacement(placement) {
77
20
  }
78
21
  return { side, align };
79
22
  }
80
- var PositioningContext = React2.createContext({
23
+ var PositioningContext = React.createContext({
81
24
  side: "bottom",
82
25
  align: "start",
83
26
  sideOffset: 4,
@@ -111,7 +54,7 @@ var PopoverRoot = (props) => {
111
54
  }
112
55
  };
113
56
  const { side, align } = parsePlacement(mergedPositioning.placement);
114
- const positioningValue = React2.useMemo(() => ({
57
+ const positioningValue = React.useMemo(() => ({
115
58
  side,
116
59
  align,
117
60
  sideOffset: mergedPositioning.offset?.mainAxis ?? 4,
@@ -128,7 +71,7 @@ var PopoverRoot = (props) => {
128
71
  autoFocus,
129
72
  closeOnInteractOutside
130
73
  ]);
131
- const handleOpenChange = React2.useCallback((isOpen) => {
74
+ const handleOpenChange = React.useCallback((isOpen) => {
132
75
  onOpenChange?.({ open: isOpen });
133
76
  }, [onOpenChange]);
134
77
  const placement = mergedPositioning.placement ?? "bottom-start";
@@ -146,11 +89,11 @@ var PopoverRoot = (props) => {
146
89
  }
147
90
  ) });
148
91
  };
149
- var PopoverTrigger = React2.forwardRef(function PopoverTrigger2(props, ref) {
92
+ var PopoverTrigger = React.forwardRef(function PopoverTrigger2(props, ref) {
150
93
  const { asChild = true, ...rest } = props;
151
94
  return /* @__PURE__ */ jsx(Popover.Trigger, { asChild: asChild ? "except-style" : void 0, ref, ...rest });
152
95
  });
153
- var PopoverContent = React2.forwardRef(function PopoverContent2(props, ref) {
96
+ var PopoverContent = React.forwardRef(function PopoverContent2(props, ref) {
154
97
  const { portalled = true, portalRef: _portalRef, className, w, minW, maxW, paddingTop, style: styleProp, ...rest } = props;
155
98
  const resolvedW = typeof w === "object" ? w.base ?? w.lg : w;
156
99
  const contentStyle = {
@@ -181,7 +124,7 @@ var PopoverContent = React2.forwardRef(function PopoverContent2(props, ref) {
181
124
  }
182
125
  );
183
126
  });
184
- var PopoverArrow = React2.forwardRef(function PopoverArrow2(props, ref) {
127
+ var PopoverArrow = React.forwardRef(function PopoverArrow2(props, ref) {
185
128
  const { className, ...rest } = props;
186
129
  return /* @__PURE__ */ jsx(
187
130
  Popover.Arrow,
@@ -193,7 +136,7 @@ var PopoverArrow = React2.forwardRef(function PopoverArrow2(props, ref) {
193
136
  }
194
137
  );
195
138
  });
196
- var PopoverCloseTrigger = React2.forwardRef(function PopoverCloseTrigger2(props, ref) {
139
+ var PopoverCloseTrigger = React.forwardRef(function PopoverCloseTrigger2(props, ref) {
197
140
  const { className, ...rest } = props;
198
141
  return /* @__PURE__ */ jsx(
199
142
  Popover.Close,
@@ -207,14 +150,14 @@ var PopoverCloseTrigger = React2.forwardRef(function PopoverCloseTrigger2(props,
207
150
  }
208
151
  );
209
152
  });
210
- var PopoverCloseTriggerWrapper = React2.forwardRef(function PopoverCloseTriggerWrapper2(props, ref) {
153
+ var PopoverCloseTriggerWrapper = React.forwardRef(function PopoverCloseTriggerWrapper2(props, ref) {
211
154
  const { disabled, children, ...rest } = props;
212
155
  if (disabled) {
213
156
  return children;
214
157
  }
215
158
  return /* @__PURE__ */ jsx(Popover.Close, { ref, ...rest, asChild: true, children });
216
159
  });
217
- var PopoverBody = React2.forwardRef(function PopoverBody2(props, ref) {
160
+ var PopoverBody = React.forwardRef(function PopoverBody2(props, ref) {
218
161
  const {
219
162
  className,
220
163
  style: styleProp,
@@ -252,7 +195,7 @@ var PopoverBody = React2.forwardRef(function PopoverBody2(props, ref) {
252
195
  }
253
196
  );
254
197
  });
255
- var PopoverHeader = React2.forwardRef(function PopoverHeader2(props, ref) {
198
+ var PopoverHeader = React.forwardRef(function PopoverHeader2(props, ref) {
256
199
  const { className, ...rest } = props;
257
200
  return /* @__PURE__ */ jsx(
258
201
  Box,
@@ -263,7 +206,7 @@ var PopoverHeader = React2.forwardRef(function PopoverHeader2(props, ref) {
263
206
  }
264
207
  );
265
208
  });
266
- var PopoverFooter = React2.forwardRef(function PopoverFooter2(props, ref) {
209
+ var PopoverFooter = React.forwardRef(function PopoverFooter2(props, ref) {
267
210
  const { className, ...rest } = props;
268
211
  return /* @__PURE__ */ jsx(
269
212
  Box,
@@ -274,7 +217,7 @@ var PopoverFooter = React2.forwardRef(function PopoverFooter2(props, ref) {
274
217
  }
275
218
  );
276
219
  });
277
- var PopoverTitle = React2.forwardRef(function PopoverTitle2(props, ref) {
220
+ var PopoverTitle = React.forwardRef(function PopoverTitle2(props, ref) {
278
221
  const { className, ...rest } = props;
279
222
  return /* @__PURE__ */ jsx(
280
223
  Box,
@@ -286,7 +229,7 @@ var PopoverTitle = React2.forwardRef(function PopoverTitle2(props, ref) {
286
229
  }
287
230
  );
288
231
  });
289
- var PopoverDescription = React2.forwardRef(function PopoverDescription2(props, ref) {
232
+ var PopoverDescription = React.forwardRef(function PopoverDescription2(props, ref) {
290
233
  const { className, ...rest } = props;
291
234
  return /* @__PURE__ */ jsx(
292
235
  Box,
@@ -4,6 +4,7 @@
4
4
  var gui = require('@hanzo/gui');
5
5
  var ui = require('@hanzo/ui');
6
6
  var React = require('react');
7
+ var ink_cjs = require('./ink.cjs');
7
8
  var jsxRuntime = require('react/jsx-runtime');
8
9
 
9
10
  function _interopNamespace(e) {
@@ -26,14 +27,6 @@ function _interopNamespace(e) {
26
27
 
27
28
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
28
29
 
29
- var ink = (children, Wrap = gui.Text, props = {}) => {
30
- let hasText = false;
31
- React.Children.forEach(children, (child) => {
32
- if (typeof child === "string" || typeof child === "number") hasText = true;
33
- });
34
- if (!hasText) return children;
35
- return React.Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? React.createElement(Wrap, props, child) : child);
36
- };
37
30
  var SIZE_MAP = {
38
31
  xs: { size: 24, thickness: 4, fontSize: 10 },
39
32
  sm: { size: 32, thickness: 5, fontSize: 10 },
@@ -71,7 +64,7 @@ var ProgressCircleRoot = React__namespace.forwardRef(function ProgressCircleRoot
71
64
  style: { display: "inline-flex", fontSize: 14 },
72
65
  className,
73
66
  ...rest,
74
- children: ink(children)
67
+ children: ink_cjs.ink(children)
75
68
  }
76
69
  ) });
77
70
  });
@@ -156,7 +149,7 @@ var ProgressCircleValueText = React__namespace.forwardRef(function ProgressCircl
156
149
  },
157
150
  className,
158
151
  ...rest,
159
- children: ink(children ?? `${Math.round(value ?? 0)}%`)
152
+ children: ink_cjs.ink(children ?? `${Math.round(value ?? 0)}%`)
160
153
  }
161
154
  );
162
155
  });
@@ -1,18 +1,10 @@
1
1
  'use client';
2
- import { View, Text } from '@hanzo/gui';
2
+ import { View } from '@hanzo/gui';
3
3
  import { css, cn } from '@hanzo/ui';
4
4
  import * as React from 'react';
5
- import { Children, createElement } from 'react';
5
+ import { ink } from './ink.js';
6
6
  import { jsx, jsxs } from 'react/jsx-runtime';
7
7
 
8
- var ink = (children, Wrap = Text, props = {}) => {
9
- let hasText = false;
10
- Children.forEach(children, (child) => {
11
- if (typeof child === "string" || typeof child === "number") hasText = true;
12
- });
13
- if (!hasText) return children;
14
- return Children.map(children, (child) => typeof child === "string" || typeof child === "number" ? createElement(Wrap, props, child) : child);
15
- };
16
8
  var SIZE_MAP = {
17
9
  xs: { size: 24, thickness: 4, fontSize: 10 },
18
10
  sm: { size: 32, thickness: 5, fontSize: 10 },