@koide-labs/ui 0.0.15 → 0.1.0

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 (310) hide show
  1. package/dist/-utils.d.ts +2 -2
  2. package/dist/-utils.js +1 -1
  3. package/dist/{Button-DrPFFzo7.js → Button-BmcVHRRW.js} +2 -2
  4. package/dist/{CompositeRoot-CVk5a-pR.js → CompositeRoot-CCgh2M64.js} +6 -6
  5. package/dist/{FloatingPortal-tWyuKRSN.js → FloatingPortal-BQsQhvIr.js} +27 -27
  6. package/dist/{FloatingPortalLite-DVyq6YhV.js → FloatingPortalLite-_ECdFE7b.js} +1 -1
  7. package/dist/{InternalBackdrop-jYAiOJ8v.js → InternalBackdrop-BSMKU-hc.js} +13 -13
  8. package/dist/{LabelableContext-BMvjVwor.js → LabelableContext-Be1u-eFg.js} +2 -2
  9. package/dist/accordion.css +1 -0
  10. package/dist/alert-dialog.css +1 -0
  11. package/dist/anchor.css +1 -0
  12. package/dist/avatar.css +1 -0
  13. package/dist/badge.css +1 -0
  14. package/dist/button.css +1 -0
  15. package/dist/checkbox.css +1 -0
  16. package/dist/code.css +1 -0
  17. package/dist/collapse.css +1 -0
  18. package/dist/command.css +1 -0
  19. package/dist/components/accordion/accordion.d.ts +19 -0
  20. package/dist/components/accordion/accordion.js +701 -0
  21. package/dist/components/accordion/index.d.ts +1 -12
  22. package/dist/components/accordion/index.js +2 -697
  23. package/dist/components/alert-dialog/alert-dialog.d.ts +36 -0
  24. package/dist/components/alert-dialog/alert-dialog.js +138 -0
  25. package/dist/components/alert-dialog/index.d.ts +1 -26
  26. package/dist/components/alert-dialog/index.js +2 -134
  27. package/dist/components/anchor/anchor.d.ts +12 -0
  28. package/dist/components/anchor/anchor.js +21 -0
  29. package/dist/components/anchor/index.d.ts +1 -8
  30. package/dist/components/anchor/index.js +2 -19
  31. package/dist/components/avatar/avatar.d.ts +25 -0
  32. package/dist/components/avatar/avatar.js +161 -0
  33. package/dist/components/avatar/index.d.ts +1 -21
  34. package/dist/components/avatar/index.js +2 -159
  35. package/dist/components/badge/badge.d.ts +20 -0
  36. package/dist/components/badge/badge.js +42 -0
  37. package/dist/components/badge/index.d.ts +1 -16
  38. package/dist/components/badge/index.js +2 -40
  39. package/dist/components/button/button.d.ts +27 -0
  40. package/dist/components/button/button.js +47 -0
  41. package/dist/components/button/index.d.ts +1 -24
  42. package/dist/components/button/index.js +2 -45
  43. package/dist/components/checkbox/checkbox.d.ts +13 -0
  44. package/dist/components/checkbox/checkbox.js +269 -0
  45. package/dist/components/checkbox/index.d.ts +1 -9
  46. package/dist/components/checkbox/index.js +2 -267
  47. package/dist/components/code/code.d.ts +13 -0
  48. package/dist/components/code/code.js +1206 -0
  49. package/dist/components/code/index.d.ts +1 -9
  50. package/dist/components/code/index.js +2 -1204
  51. package/dist/components/collapse/collapse.d.ts +14 -0
  52. package/dist/components/collapse/collapse.js +35 -0
  53. package/dist/components/collapse/index.d.ts +1 -11
  54. package/dist/components/collapse/index.js +2 -33
  55. package/dist/components/command/command.d.ts +36 -0
  56. package/dist/components/command/command.js +1695 -0
  57. package/dist/components/command/index.d.ts +1 -15
  58. package/dist/components/command/index.js +2 -1693
  59. package/dist/components/context-menu/context-menu.d.ts +82 -0
  60. package/dist/components/context-menu/context-menu.js +1445 -0
  61. package/dist/components/context-menu/index.d.ts +1 -42
  62. package/dist/components/context-menu/index.js +2 -1442
  63. package/dist/components/dialog/dialog.d.ts +22 -0
  64. package/dist/components/dialog/dialog.js +140 -0
  65. package/dist/components/dialog/dialog.types.d.ts +38 -0
  66. package/dist/components/dialog/index.d.ts +1 -48
  67. package/dist/components/dialog/index.js +2 -136
  68. package/dist/components/heading/heading.d.ts +25 -0
  69. package/dist/components/heading/heading.js +36 -0
  70. package/dist/components/heading/index.d.ts +1 -44
  71. package/dist/components/heading/index.js +2 -49
  72. package/dist/components/icon/icon.d.ts +28 -0
  73. package/dist/components/icon/icon.js +43 -0
  74. package/dist/components/icon/{icon-names.d.ts → icon.types.d.ts} +4 -0
  75. package/dist/components/icon/icon.types.js +1 -0
  76. package/dist/components/icon/index.d.ts +2 -24
  77. package/dist/components/icon/index.js +2 -41
  78. package/dist/components/icon-button/icon-button.d.ts +16 -0
  79. package/dist/components/icon-button/icon-button.js +46 -0
  80. package/dist/components/icon-button/index.d.ts +1 -12
  81. package/dist/components/icon-button/index.js +2 -44
  82. package/dist/components/inline-code/index.d.ts +1 -6
  83. package/dist/components/inline-code/index.js +2 -20
  84. package/dist/components/inline-code/inline-code.d.ts +10 -0
  85. package/dist/components/inline-code/inline-code.js +25 -0
  86. package/dist/components/input/index.d.ts +1 -3
  87. package/dist/components/input/index.js +2 -117
  88. package/dist/components/input/input.d.ts +9 -0
  89. package/dist/components/input/input.js +126 -0
  90. package/dist/components/meter/index.d.ts +1 -18
  91. package/dist/components/meter/index.js +2 -163
  92. package/dist/components/meter/meter.d.ts +22 -0
  93. package/dist/components/meter/meter.js +165 -0
  94. package/dist/components/multiline-input/index.d.ts +1 -6
  95. package/dist/components/multiline-input/index.js +2 -98
  96. package/dist/components/multiline-input/multiline-input.d.ts +10 -0
  97. package/dist/components/multiline-input/multiline-input.js +100 -0
  98. package/dist/components/number-input/index.d.ts +1 -10
  99. package/dist/components/number-input/index.js +2 -1167
  100. package/dist/components/number-input/number-input.d.ts +14 -0
  101. package/dist/components/number-input/number-input.js +1169 -0
  102. package/dist/components/password-input/index.d.ts +1 -2
  103. package/dist/components/password-input/index.js +2 -27
  104. package/dist/components/password-input/password-input.d.ts +7 -0
  105. package/dist/components/password-input/password-input.js +29 -0
  106. package/dist/components/pill/index.d.ts +1 -13
  107. package/dist/components/pill/index.js +2 -36
  108. package/dist/components/pill/pill.d.ts +17 -0
  109. package/dist/components/pill/pill.js +38 -0
  110. package/dist/components/popover/index.d.ts +1 -21
  111. package/dist/components/popover/index.js +2 -634
  112. package/dist/components/popover/popover.d.ts +22 -0
  113. package/dist/components/popover/popover.js +634 -0
  114. package/dist/components/preview-card/index.d.ts +1 -17
  115. package/dist/components/preview-card/index.js +2 -400
  116. package/dist/components/preview-card/preview-card.d.ts +21 -0
  117. package/dist/components/preview-card/preview-card.js +402 -0
  118. package/dist/components/radio-group/index.d.ts +1 -0
  119. package/dist/components/radio-group/index.js +5 -0
  120. package/dist/components/radio-group/radio-group.d.ts +25 -0
  121. package/dist/components/{radio/index.js → radio-group/radio-group.js} +91 -90
  122. package/dist/components/search-bar/index.d.ts +1 -12
  123. package/dist/components/search-bar/index.js +2 -46
  124. package/dist/components/search-bar/search-bar.d.ts +16 -0
  125. package/dist/components/search-bar/search-bar.js +43 -0
  126. package/dist/components/select/index.d.ts +1 -16
  127. package/dist/components/select/index.js +2 -1261
  128. package/dist/components/select/select.d.ts +22 -0
  129. package/dist/components/select/select.js +1263 -0
  130. package/dist/components/separator/index.d.ts +1 -7
  131. package/dist/components/separator/index.js +2 -4
  132. package/dist/components/separator/separator.d.ts +10 -0
  133. package/dist/components/separator/separator.js +6 -0
  134. package/dist/components/slider/index.d.ts +1 -5
  135. package/dist/components/slider/index.js +2 -900
  136. package/dist/components/slider/slider.d.ts +10 -0
  137. package/dist/components/slider/slider.js +899 -0
  138. package/dist/components/spinner/index.d.ts +1 -2
  139. package/dist/components/spinner/index.js +2 -11
  140. package/dist/components/spinner/spinner.d.ts +7 -0
  141. package/dist/components/spinner/spinner.js +13 -0
  142. package/dist/components/stacked-avatars/index.d.ts +1 -14
  143. package/dist/components/stacked-avatars/index.js +2 -90
  144. package/dist/components/stacked-avatars/stacked-avatars.d.ts +18 -0
  145. package/dist/components/stacked-avatars/stacked-avatars.js +92 -0
  146. package/dist/components/status-banner/index.d.ts +1 -17
  147. package/dist/components/status-banner/index.js +2 -69
  148. package/dist/components/status-banner/status-banner.d.ts +22 -0
  149. package/dist/components/status-banner/status-banner.js +71 -0
  150. package/dist/components/surface/index.d.ts +2 -27
  151. package/dist/components/surface/index.js +2 -39
  152. package/dist/components/surface/surface.d.ts +26 -0
  153. package/dist/components/surface/surface.js +36 -0
  154. package/dist/components/surface/surface.types.d.ts +1 -0
  155. package/dist/components/surface/surface.types.js +1 -0
  156. package/dist/components/switch/index.d.ts +1 -5
  157. package/dist/components/switch/index.js +2 -194
  158. package/dist/components/switch/switch.d.ts +10 -0
  159. package/dist/components/switch/switch.js +193 -0
  160. package/dist/components/tabs/index.d.ts +1 -18
  161. package/dist/components/tabs/index.js +2 -507
  162. package/dist/components/tabs/tabs.d.ts +28 -0
  163. package/dist/components/tabs/tabs.js +511 -0
  164. package/dist/components/text/index.d.ts +1 -26
  165. package/dist/components/text/index.js +2 -46
  166. package/dist/components/text/text.d.ts +29 -0
  167. package/dist/components/text/text.js +48 -0
  168. package/dist/components/theme-provider/index.d.ts +1 -1
  169. package/dist/components/theme-provider/theme-provider.d.ts +8 -4
  170. package/dist/components/theme-provider/theme-provider.js +3 -3
  171. package/dist/components/timestamp/index.d.ts +1 -23
  172. package/dist/components/timestamp/index.js +2 -1390
  173. package/dist/components/timestamp/timestamp.d.ts +26 -0
  174. package/dist/components/timestamp/timestamp.js +1391 -0
  175. package/dist/components/toaster/index.d.ts +2 -0
  176. package/dist/components/toaster/index.js +7 -0
  177. package/dist/components/toaster/toaster.d.ts +7 -0
  178. package/dist/components/toaster/toaster.js +923 -0
  179. package/dist/components/{toast → toaster}/use-toast-manager.d.ts +3 -3
  180. package/dist/components/tooltip/index.d.ts +1 -14
  181. package/dist/components/tooltip/index.js +2 -710
  182. package/dist/components/tooltip/tooltip.d.ts +24 -0
  183. package/dist/components/tooltip/tooltip.js +9 -0
  184. package/dist/components/view/index.d.ts +2 -30
  185. package/dist/components/view/index.js +2 -79
  186. package/dist/components/view/view.d.ts +31 -0
  187. package/dist/components/view/view.js +83 -0
  188. package/dist/components/view/view.types.d.ts +5 -0
  189. package/dist/components/view/view.types.js +1 -0
  190. package/dist/components/visually-hidden/index.d.ts +5 -1
  191. package/dist/{composite-Bx7Szd_T.js → composite-BZzP-LlG.js} +3 -3
  192. package/dist/{composite-C9L5QmZL.js → composite-BwEK5cWH.js} +1 -1
  193. package/dist/context-menu.css +1 -0
  194. package/dist/{createBaseUIEventDetails-D8M2Yl-a.js → createBaseUIEventDetails-CCSfZ2vM.js} +7 -7
  195. package/dist/{detectBrowser-I-s3yzIE.js → detectBrowser-Bl8Ki_1I.js} +2 -2
  196. package/dist/dialog.css +1 -1
  197. package/dist/{dialog.module-BeF-6XAo.js → dialog.module-DsbQRp-d.js} +55 -55
  198. package/dist/{element-CZEOj04G.js → element-u5WgOZX1.js} +7 -7
  199. package/dist/{event-CKoGyQEJ.js → event-B89-Ng5h.js} +4 -4
  200. package/dist/{floating-ui.utils-C7pRWMZ_.js → floating-ui.utils-DUVaIF3G.js} +7 -7
  201. package/dist/{floating-ui.utils.dom-C7FS5id0.js → floating-ui.utils.dom-cbi420Pg.js} +4 -4
  202. package/dist/{getDisabledMountTransitionStyles-YfHPge6T.js → getDisabledMountTransitionStyles-E2x-_lte.js} +7 -7
  203. package/dist/heading.css +1 -0
  204. package/dist/icon-button.css +1 -0
  205. package/dist/icon.css +1 -0
  206. package/dist/index.d.ts +10 -10
  207. package/dist/index.js +86 -104
  208. package/dist/{inertValue-BCYGsdmf.js → inertValue-BTpPjX30.js} +1 -1
  209. package/dist/inline-code.css +1 -0
  210. package/dist/input.css +1 -1
  211. package/dist/input.module-CtE19OH8.js +8 -0
  212. package/dist/integrations/react-markdown/index.js +12 -12
  213. package/dist/meter.css +1 -0
  214. package/dist/number-input.css +1 -0
  215. package/dist/password-input.css +1 -0
  216. package/dist/pill.css +1 -0
  217. package/dist/popover.css +1 -0
  218. package/dist/preview-card.css +1 -0
  219. package/dist/radio-group.css +1 -0
  220. package/dist/safePolygon-DnkzOIur.js +558 -0
  221. package/dist/search-bar.css +1 -0
  222. package/dist/select.css +1 -0
  223. package/dist/{index-DVjyPAD4.js → separator-fh_wDZNf.js} +7 -11
  224. package/dist/separator.css +1 -0
  225. package/dist/slider.css +1 -0
  226. package/dist/spinner.css +1 -0
  227. package/dist/stacked-avatars.css +1 -0
  228. package/dist/status-banner.css +1 -0
  229. package/dist/styles/core.css +1 -1
  230. package/dist/surface.css +1 -0
  231. package/dist/switch.css +1 -0
  232. package/dist/tabs.css +1 -0
  233. package/dist/text.css +1 -0
  234. package/dist/timestamp.css +1 -0
  235. package/dist/toaster.css +1 -0
  236. package/dist/tooltip-oCp-elli.js +765 -0
  237. package/dist/tooltip.css +1 -0
  238. package/dist/transitions.css +1 -1
  239. package/dist/{transitions.module-CWX8e5cx.js → transitions.module-D9mMAtfI.js} +11 -11
  240. package/dist/{useAnimationFrame-451ugS_6.js → useAnimationFrame-DvK1s63A.js} +1 -1
  241. package/dist/{useButton-DfIwsdb8.js → useButton-d3_JgBNr.js} +3 -3
  242. package/dist/{useCompositeListItem-OkcAim_1.js → useCompositeListItem-CZp9WTnF.js} +2 -2
  243. package/dist/{useLabelableId-Ci_jDvmv.js → useLabelableId-CX4tcfzK.js} +3 -3
  244. package/dist/{useOpenChangeComplete-Dse9kY9E.js → useOpenChangeComplete-BHd-N7Ig.js} +5 -5
  245. package/dist/{useRender-CLx7dR_1.js → useRender-C3vlzS3t.js} +1 -1
  246. package/dist/{useRenderElement-DwToLA61.js → useRenderElement-DngNDu_P.js} +2 -2
  247. package/dist/{useRole-oDBdbuwQ.js → useRole-BD3OL1rr.js} +3 -3
  248. package/dist/{useStableCallback-CkTrVkNX.js → useStableCallback-DKZHlUAT.js} +1 -1
  249. package/dist/{useSyncedFloatingRootContext-Dorsv-jf.js → useSyncedFloatingRootContext-BB1vwkV-.js} +20 -20
  250. package/dist/{useTimeout-CflX-kz3.js → useTimeout-BNni6aw5.js} +1 -1
  251. package/dist/{useTransitionStatus-CUfcuGAV.js → useTransitionStatus-CmMyUh74.js} +1 -1
  252. package/dist/{useTypeahead-D85V2IUx.js → useTypeahead-BiL5IAVb.js} +11 -11
  253. package/dist/{useValueAsRef-HURLzret.js → useValueAsRef-B4EriRsI.js} +1 -1
  254. package/dist/{useValueChanged-DL757-yD.js → useValueChanged-MJRmEWz1.js} +1 -1
  255. package/dist/view.css +1 -1
  256. package/dist/view.module-Dj7wj0kk.js +6 -0
  257. package/dist/view2.css +1 -0
  258. package/package.json +1 -1
  259. package/dist/components/radio/index.d.ts +0 -13
  260. package/dist/components/toast/index.d.ts +0 -2
  261. package/dist/components/toast/index.js +0 -8
  262. package/dist/components/toast/toast.d.ts +0 -2
  263. package/dist/components/toast/toast.js +0 -921
  264. package/dist/components/tooltip/tooltip-arrow.d.ts +0 -3
  265. package/dist/components/tooltip/tooltip-arrow.js +0 -6
  266. package/dist/index10.css +0 -1
  267. package/dist/index11.css +0 -1
  268. package/dist/index12.css +0 -1
  269. package/dist/index13.css +0 -1
  270. package/dist/index14.css +0 -1
  271. package/dist/index15.css +0 -1
  272. package/dist/index16.css +0 -1
  273. package/dist/index17.css +0 -1
  274. package/dist/index18.css +0 -1
  275. package/dist/index19.css +0 -1
  276. package/dist/index20.css +0 -1
  277. package/dist/index21.css +0 -1
  278. package/dist/index22.css +0 -1
  279. package/dist/index23.css +0 -1
  280. package/dist/index24.css +0 -1
  281. package/dist/index25.css +0 -1
  282. package/dist/index26.css +0 -1
  283. package/dist/index27.css +0 -1
  284. package/dist/index28.css +0 -1
  285. package/dist/index29.css +0 -1
  286. package/dist/index3.css +0 -1
  287. package/dist/index30.css +0 -1
  288. package/dist/index31.css +0 -1
  289. package/dist/index32.css +0 -1
  290. package/dist/index33.css +0 -1
  291. package/dist/index34.css +0 -1
  292. package/dist/index35.css +0 -1
  293. package/dist/index36.css +0 -1
  294. package/dist/index37.css +0 -1
  295. package/dist/index4.css +0 -1
  296. package/dist/index5.css +0 -1
  297. package/dist/index6.css +0 -1
  298. package/dist/index7.css +0 -1
  299. package/dist/index8.css +0 -1
  300. package/dist/index9.css +0 -1
  301. package/dist/input.module-DDQY_Ij6.js +0 -7
  302. package/dist/safePolygon-DWy1dGKJ.js +0 -308
  303. package/dist/toast.css +0 -1
  304. package/dist/tooltip-arrow-cs6vjjqZ.js +0 -24
  305. package/dist/tooltip-arrow.css +0 -1
  306. package/dist/useHoverReferenceInteraction-SfOBPoXM.js +0 -264
  307. package/dist/usePopupAutoResize-CNR6Ekmx.js +0 -85
  308. package/dist/view.module-DfDLgJE0.js +0 -6
  309. /package/dist/components/{icon/icon-names.js → dialog/dialog.types.js} +0 -0
  310. /package/dist/components/{toast → toaster}/use-toast-manager.js +0 -0
@@ -1,29 +1,28 @@
1
- "use client";
2
1
  import { jsxs as ne, jsx as p } from "react/jsx-runtime";
3
2
  import { c as ue } from "../../clsx-OuTLNxxd.js";
4
3
  import * as o from "react";
5
4
  import { createContext as Ee, useContext as Ne } from "react";
6
- import { Text as Ve } from "../text/index.js";
7
- import { View as Pe } from "../view/index.js";
8
- import { u as Ie } from "../../useControlled-Du4sJyMj.js";
9
- import { E as ce, b as de, u as re, N as F, c as fe, m as ke } from "../../useRenderElement-DwToLA61.js";
10
- import { u as G } from "../../useStableCallback-CkTrVkNX.js";
5
+ import { u as Ve } from "../../useControlled-Du4sJyMj.js";
6
+ import { E as ce, b as de, u as re, N as F, d as fe, m as Pe } from "../../useRenderElement-DngNDu_P.js";
7
+ import { u as w } from "../../useStableCallback-DKZHlUAT.js";
11
8
  import { v as pe } from "../../visuallyHidden-CpJ-mhai.js";
12
9
  import { u as me } from "../../useBaseUiId-B7WyxtIE.js";
13
- import { S as Oe } from "../../composite-C9L5QmZL.js";
14
- import { u as Me, A as Fe, C as Te } from "../../CompositeRoot-CVk5a-pR.js";
15
- import { f as Ce, a as he, u as Re, c as we, b as Se } from "../../LabelableContext-BMvjVwor.js";
16
- import { f as ge } from "../../formatErrorMessage-BqPuTBN-.js";
17
- import { u as Ge } from "../../useValueChanged-DL757-yD.js";
18
- import { f as qe } from "../../element-CZEOj04G.js";
19
- import { t as De, a as Be } from "../../useOpenChangeComplete-Dse9kY9E.js";
20
- import { u as je } from "../../useTransitionStatus-CUfcuGAV.js";
21
- import { u as ze } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
22
- import { c as Ke, n as Le } from "../../createBaseUIEventDetails-D8M2Yl-a.js";
23
- import { u as Ue } from "../../FieldItemContext-DAvk99to.js";
24
- import { u as Ye } from "../../useLabelableId-Ci_jDvmv.js";
25
- import { u as He } from "../../useButton-DfIwsdb8.js";
26
- import '../../index28.css';function Je(e) {
10
+ import { S as Ie } from "../../composite-BwEK5cWH.js";
11
+ import { u as ke, A as Oe, C as Me } from "../../CompositeRoot-CCgh2M64.js";
12
+ import { f as Ce, a as he, u as Re, c as Fe, b as Te } from "../../LabelableContext-Be1u-eFg.js";
13
+ import { f as ye } from "../../formatErrorMessage-BqPuTBN-.js";
14
+ import { u as Ge } from "../../useValueChanged-MJRmEWz1.js";
15
+ import { f as Se } from "../../element-u5WgOZX1.js";
16
+ import { View as we } from "../view/view.js";
17
+ import { Text as qe } from "../text/text.js";
18
+ import { t as De, u as Be } from "../../useOpenChangeComplete-BHd-N7Ig.js";
19
+ import { u as Ke } from "../../useTransitionStatus-CmMyUh74.js";
20
+ import { u as Le } from "../../useIsoLayoutEffect-CIDbvm3Q.js";
21
+ import { c as Ue, n as Ye } from "../../createBaseUIEventDetails-CCSfZ2vM.js";
22
+ import { u as je } from "../../FieldItemContext-DAvk99to.js";
23
+ import { u as ze } from "../../useLabelableId-CX4tcfzK.js";
24
+ import { u as He } from "../../useButton-d3_JgBNr.js";
25
+ import '../../radio-group.css';function Je(e) {
27
26
  const {
28
27
  render: n,
29
28
  className: u,
@@ -33,31 +32,31 @@ import '../../index28.css';function Je(e) {
33
32
  metadata: r,
34
33
  stateAttributesMapping: a,
35
34
  tag: s = "div",
36
- ...g
35
+ ...y
37
36
  } = e, {
38
37
  compositeProps: b,
39
38
  compositeRef: _
40
- } = Me({
39
+ } = ke({
41
40
  metadata: r
42
41
  });
43
42
  return re(s, e, {
44
43
  state: h,
45
44
  ref: [...m, _],
46
- props: [b, ...R, g],
45
+ props: [b, ...R, y],
47
46
  stateAttributesMapping: a
48
47
  });
49
48
  }
50
- const ye = /* @__PURE__ */ o.createContext({
49
+ const ge = /* @__PURE__ */ o.createContext({
51
50
  legendId: void 0,
52
51
  setLegendId: () => {
53
52
  },
54
53
  disabled: void 0
55
54
  });
56
- process.env.NODE_ENV !== "production" && (ye.displayName = "FieldsetRootContext");
55
+ process.env.NODE_ENV !== "production" && (ge.displayName = "FieldsetRootContext");
57
56
  function We(e = !1) {
58
- const n = o.useContext(ye);
57
+ const n = o.useContext(ge);
59
58
  if (!n && !e)
60
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ge(86));
59
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : ye(86));
61
60
  return n;
62
61
  }
63
62
  let le = /* @__PURE__ */ (function(e) {
@@ -94,7 +93,7 @@ process.env.NODE_ENV !== "production" && (se.displayName = "RadioRootContext");
94
93
  function Ae() {
95
94
  const e = o.useContext(se);
96
95
  if (e === void 0)
97
- throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ge(52));
96
+ throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>." : ye(52));
98
97
  return e;
99
98
  }
100
99
  const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
@@ -105,7 +104,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
105
104
  readOnly: r = !1,
106
105
  required: a = !1,
107
106
  value: s,
108
- inputRef: g,
107
+ inputRef: y,
109
108
  nativeButton: b = !1,
110
109
  id: _,
111
110
  ...E
@@ -114,7 +113,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
114
113
  readOnly: V,
115
114
  required: q,
116
115
  checkedValue: T,
117
- setCheckedValue: w,
116
+ setCheckedValue: G,
118
117
  touched: H,
119
118
  setTouched: J,
120
119
  validation: W,
@@ -124,16 +123,16 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
124
123
  validityData: D,
125
124
  setTouched: B,
126
125
  setFilled: I,
127
- state: j,
126
+ state: K,
128
127
  disabled: $
129
- } = he(), A = Ue(), {
130
- labelId: y,
128
+ } = he(), A = je(), {
129
+ labelId: g,
131
130
  getDescriptionProps: v
132
- } = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(g, C);
133
- ze(() => {
131
+ } = Re(), i = $ || A.disabled || N || m, t = V || r, x = q || a, c = T === s, k = o.useRef(null), C = o.useRef(null), S = fe(y, C);
132
+ Le(() => {
134
133
  C.current?.checked && I(!0);
135
134
  }, [I]);
136
- const z = me(), O = Ye({
135
+ const L = me(), O = ze({
137
136
  id: _,
138
137
  implicit: !1,
139
138
  controlRef: k
@@ -143,9 +142,9 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
143
142
  "aria-required": x || void 0,
144
143
  "aria-disabled": i || void 0,
145
144
  "aria-readonly": t || void 0,
146
- "aria-labelledby": y,
147
- [Fe]: c ? "" : void 0,
148
- id: z,
145
+ "aria-labelledby": g,
146
+ [Oe]: c ? "" : void 0,
147
+ id: L,
149
148
  disabled: i,
150
149
  onKeyDown(f) {
151
150
  f.key === "Enter" && f.preventDefault();
@@ -158,7 +157,7 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
158
157
  }
159
158
  }, {
160
159
  getButtonProps: X,
161
- buttonRef: K
160
+ buttonRef: U
162
161
  } = He({
163
162
  disabled: i,
164
163
  native: b
@@ -176,36 +175,36 @@ const be = /* @__PURE__ */ o.forwardRef(function(n, u) {
176
175
  onChange(f) {
177
176
  if (f.nativeEvent.defaultPrevented || i || t || s === void 0)
178
177
  return;
179
- const ie = Ke(Le, f.nativeEvent);
180
- ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), w(s, ie));
178
+ const ie = Ue(Ye, f.nativeEvent);
179
+ ie.isCanceled || (B(!0), l(s !== D.initialValue), I(!0), G(s, ie));
181
180
  },
182
181
  onFocus() {
183
182
  k.current?.focus();
184
183
  }
185
- }), [c, i, O, S, t, x, w, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
186
- ...j,
184
+ }), [c, i, O, S, t, x, G, l, B, I, D.initialValue, s]), M = o.useMemo(() => ({
185
+ ...K,
187
186
  required: x,
188
187
  disabled: i,
189
188
  readOnly: t,
190
189
  checked: c
191
- }), [j, i, t, c, x]), ee = o.useMemo(() => M, [M]), L = w !== F, U = [u, P, k, K], d = [Q, v, W?.getValidationProps ?? ce, E, X], Y = re("span", n, {
192
- enabled: !L,
190
+ }), [K, i, t, c, x]), ee = o.useMemo(() => M, [M]), Y = G !== F, j = [u, P, k, U], d = [Q, v, W?.getValidationProps ?? ce, E, X], z = re("span", n, {
191
+ enabled: !Y,
193
192
  state: M,
194
- ref: U,
193
+ ref: j,
195
194
  props: d,
196
195
  stateAttributesMapping: oe
197
196
  });
198
197
  return /* @__PURE__ */ ne(se.Provider, {
199
198
  value: ee,
200
- children: [L ? /* @__PURE__ */ p(Je, {
199
+ children: [Y ? /* @__PURE__ */ p(Je, {
201
200
  tag: "span",
202
201
  render: h,
203
202
  className: R,
204
203
  state: M,
205
- refs: U,
204
+ refs: j,
206
205
  props: d,
207
206
  stateAttributesMapping: oe
208
- }) : Y, /* @__PURE__ */ p("input", {
207
+ }) : z, /* @__PURE__ */ p("input", {
209
208
  ...Z
210
209
  })]
211
210
  });
@@ -218,12 +217,12 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
218
217
  keepMounted: m = !1,
219
218
  ...r
220
219
  } = n, a = Ae(), s = a.checked, {
221
- transitionStatus: g,
220
+ transitionStatus: y,
222
221
  setMounted: b
223
- } = je(s), _ = o.useMemo(() => ({
222
+ } = Ke(s), _ = o.useMemo(() => ({
224
223
  ...a,
225
- transitionStatus: g
226
- }), [a, g]), E = o.useRef(null), N = m || s, V = re("span", n, {
224
+ transitionStatus: y
225
+ }), [a, y]), E = o.useRef(null), N = m || s, V = re("span", n, {
227
226
  enabled: N,
228
227
  ref: [u, E],
229
228
  state: _,
@@ -239,7 +238,7 @@ const _e = /* @__PURE__ */ o.forwardRef(function(n, u) {
239
238
  }), N ? V : null;
240
239
  });
241
240
  process.env.NODE_ENV !== "production" && (_e.displayName = "RadioIndicator");
242
- const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
241
+ const Qe = [Ie], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
243
242
  const {
244
243
  render: h,
245
244
  className: R,
@@ -247,7 +246,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
247
246
  readOnly: r,
248
247
  required: a,
249
248
  onValueChange: s,
250
- value: g,
249
+ value: y,
251
250
  defaultValue: b,
252
251
  name: _,
253
252
  inputRef: E,
@@ -256,7 +255,7 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
256
255
  } = n, {
257
256
  setTouched: q,
258
257
  setFocused: T,
259
- shouldValidateOnChange: w,
258
+ shouldValidateOnChange: G,
260
259
  validationMode: H,
261
260
  name: J,
262
261
  disabled: W,
@@ -266,20 +265,20 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
266
265
  setFilled: B,
267
266
  validityData: I
268
267
  } = he(), {
269
- labelId: j
268
+ labelId: K
270
269
  } = Re(), {
271
270
  clearErrors: $
272
- } = we(), A = We(!0), y = W || m, v = J ?? _, i = me(N), [t, x] = Ie({
273
- controlled: g,
271
+ } = Fe(), A = We(!0), g = W || m, v = J ?? _, i = me(N), [t, x] = Ve({
272
+ controlled: y,
274
273
  default: b,
275
274
  name: "RadioGroup",
276
275
  state: "value"
277
- }), c = G(s), k = G((d, Y) => {
278
- c(d, Y), !Y.isCanceled && x(d);
279
- }), C = o.useRef(null), S = G((d) => {
276
+ }), c = w(s), k = w((d, z) => {
277
+ c(d, z), !z.isCanceled && x(d);
278
+ }), C = o.useRef(null), S = w((d) => {
280
279
  C.current == null && d != null && (C.current = d);
281
280
  });
282
- Se({
281
+ Te({
283
282
  id: i,
284
283
  commit: l.commit,
285
284
  value: t,
@@ -287,18 +286,18 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
287
286
  name: v,
288
287
  getValue: () => t ?? null
289
288
  }), Ge(t, () => {
290
- $(v), D(t !== I.initialValue), B(t != null), w() ? l.commit(t) : l.commit(t, !0);
289
+ $(v), D(t !== I.initialValue), B(t != null), G() ? l.commit(t) : l.commit(t, !0);
291
290
  });
292
- const [z, O] = o.useState(!1), Q = G((d) => {
293
- qe(d.currentTarget, d.relatedTarget) || (q(!0), T(!1), H === "onBlur" && l.commit(t));
294
- }), X = G((d) => {
291
+ const [L, O] = o.useState(!1), Q = w((d) => {
292
+ Se(d.currentTarget, d.relatedTarget) || (q(!0), T(!1), H === "onBlur" && l.commit(t));
293
+ }), X = w((d) => {
295
294
  d.key.startsWith("Arrow") && (q(!0), O(!0), T(!0));
296
- }), K = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = ke({
297
- value: K,
295
+ }), U = o.useMemo(() => t == null ? "" : typeof t == "string" ? t : JSON.stringify(t), [t]), Z = fe(l.inputRef, E), M = Pe({
296
+ value: U,
298
297
  ref: Z,
299
298
  id: i,
300
- name: K ? v : void 0,
301
- disabled: y,
299
+ name: U ? v : void 0,
300
+ disabled: g,
302
301
  readOnly: r,
303
302
  required: a,
304
303
  "aria-labelledby": V["aria-labelledby"] ?? A?.legendId,
@@ -312,13 +311,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
312
311
  }
313
312
  }, l.getInputValidationProps), ee = o.useMemo(() => ({
314
313
  ...P,
315
- disabled: y ?? !1,
314
+ disabled: g ?? !1,
316
315
  required: a ?? !1,
317
316
  readOnly: r ?? !1
318
- }), [P, y, r, a]), L = o.useMemo(() => ({
317
+ }), [P, g, r, a]), Y = o.useMemo(() => ({
319
318
  ...P,
320
319
  checkedValue: t,
321
- disabled: y,
320
+ disabled: g,
322
321
  validation: l,
323
322
  name: v,
324
323
  onValueChange: c,
@@ -327,13 +326,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
327
326
  required: a,
328
327
  setCheckedValue: k,
329
328
  setTouched: O,
330
- touched: z
331
- }), [t, y, l, P, v, c, r, S, a, k, O, z]), U = {
329
+ touched: L
330
+ }), [t, g, l, P, v, c, r, S, a, k, O, L]), j = {
332
331
  role: "radiogroup",
333
332
  "aria-required": a || void 0,
334
- "aria-disabled": y || void 0,
333
+ "aria-disabled": g || void 0,
335
334
  "aria-readonly": r || void 0,
336
- "aria-labelledby": j,
335
+ "aria-labelledby": K,
337
336
  onFocus() {
338
337
  T(!0);
339
338
  },
@@ -341,12 +340,12 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
341
340
  onKeyDownCapture: X
342
341
  };
343
342
  return /* @__PURE__ */ ne(ae.Provider, {
344
- value: L,
345
- children: [/* @__PURE__ */ p(Te, {
343
+ value: Y,
344
+ children: [/* @__PURE__ */ p(Me, {
346
345
  render: h,
347
346
  className: R,
348
347
  state: ee,
349
- props: [U, l.getValidationProps, V],
348
+ props: [j, l.getValidationProps, V],
350
349
  refs: [u],
351
350
  stateAttributesMapping: Ce,
352
351
  enableHomeAndEndKeys: !1,
@@ -358,13 +357,13 @@ const Qe = [Oe], ve = /* @__PURE__ */ o.forwardRef(function(n, u) {
358
357
  });
359
358
  process.env.NODE_ENV !== "production" && (ve.displayName = "RadioGroup");
360
359
  const Xe = {
361
- "radio-group": "_radio-group_rje5l_1"
362
- }, Ze = "_radio_jgw1z_1", et = "_radio__indicator_jgw1z_8", tt = "_radio__label_jgw1z_31", te = {
360
+ "radio-group": "_radio-group_7ez6e_2"
361
+ }, Ze = "_radio_1fs52_2", et = "_radio__indicator_1fs52_9", tt = "_radio__label_1fs52_32", te = {
363
362
  radio: Ze,
364
363
  radio__indicator: et,
365
364
  radio__label: tt
366
365
  }, xe = Ee("primary");
367
- function Nt({
366
+ function ot({
368
367
  color: e = "primary",
369
368
  className: n,
370
369
  ...u
@@ -377,14 +376,14 @@ function Nt({
377
376
  }
378
377
  ) });
379
378
  }
380
- function Vt({
379
+ function nt({
381
380
  color: e,
382
381
  label: n,
383
382
  className: u,
384
383
  ...h
385
384
  }) {
386
385
  const R = Ne(xe), m = e || R || "primary", r = /* @__PURE__ */ p(
387
- Pe,
386
+ we,
388
387
  {
389
388
  render: /* @__PURE__ */ p(be, { ...h }),
390
389
  interactive: "fill-outline",
@@ -396,10 +395,12 @@ function Vt({
396
395
  return n ? /* @__PURE__ */ ne("label", { className: te.radio__label, children: [
397
396
  r,
398
397
  " ",
399
- /* @__PURE__ */ p(Ve, { children: n })
398
+ /* @__PURE__ */ p(qe, { children: n })
400
399
  ] }) : r;
401
400
  }
401
+ const Pt = Object.assign(ot, {
402
+ Item: nt
403
+ });
402
404
  export {
403
- Vt as Radio,
404
- Nt as RadioGroup
405
+ Pt as RadioGroup
405
406
  };
@@ -1,12 +1 @@
1
- import { default as React } from 'react';
2
- export interface SearchBarProps extends React.ComponentPropsWithoutRef<"input"> {
3
- /**
4
- * Is the search bar loading or processing?
5
- */
6
- loading?: boolean;
7
- /**
8
- * Called when the input is cleared
9
- */
10
- onClear?: () => void;
11
- }
12
- export declare function SearchBar({ loading, onClear, className, ...props }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
1
+ export { SearchBar } from './search-bar';
@@ -1,49 +1,5 @@
1
1
  "use client";
2
- import { jsxs as n, jsx as r } from "react/jsx-runtime";
3
- import { c as _ } from "../../clsx-OuTLNxxd.js";
4
- import "react";
5
- import { Icon as o } from "../icon/index.js";
6
- import { IconButton as m } from "../icon-button/index.js";
7
- import { Input as t } from "../input/index.js";
8
- import { Spinner as h } from "../spinner/index.js";
9
- import { View as s } from "../view/index.js";
10
- import '../../index5.css';const a = {
11
- "search-bar": "_search-bar_1ulql_1",
12
- "search-bar__input": "_search-bar__input_1ulql_6",
13
- "search-bar__icon": "_search-bar__icon_1ulql_14",
14
- "search-bar__icon_close": "_search-bar__icon_close_1ulql_26"
15
- };
16
- function I({
17
- loading: e,
18
- onClear: l,
19
- className: i,
20
- ...c
21
- }) {
22
- return /* @__PURE__ */ n(s, { className: _(a["search-bar"], i), children: [
23
- /* @__PURE__ */ r(t, { className: a["search-bar__input"], ...c }),
24
- !e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(o, { name: "search-line" }) }) : null,
25
- e ? /* @__PURE__ */ r(h, { className: a["search-bar__icon"] }) : null,
26
- !e && c.value ? /* @__PURE__ */ r(
27
- s,
28
- {
29
- className: _(
30
- a["search-bar__icon"],
31
- a["search-bar__icon_close"]
32
- ),
33
- children: /* @__PURE__ */ r(
34
- m,
35
- {
36
- icon: "close-line",
37
- alt: "Clear",
38
- size: "sm",
39
- disabled: c.disabled,
40
- onClick: l
41
- }
42
- )
43
- }
44
- ) : null
45
- ] });
46
- }
2
+ import { SearchBar as a } from "./search-bar.js";
47
3
  export {
48
- I as SearchBar
4
+ a as SearchBar
49
5
  };
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ interface SearchBarProps extends React.ComponentPropsWithoutRef<"input"> {
3
+ /**
4
+ * Is the search bar loading or processing?
5
+ */
6
+ loading?: boolean;
7
+ /**
8
+ * Called when the input is cleared
9
+ */
10
+ onClear?: () => void;
11
+ }
12
+ declare function SearchBar({ loading, onClear, className, ...props }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
13
+ export { SearchBar };
14
+ export declare namespace SearchBar {
15
+ type Props = SearchBarProps;
16
+ }
@@ -0,0 +1,43 @@
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { c as _ } from "../../clsx-OuTLNxxd.js";
3
+ import "react";
4
+ import { View as s } from "../view/view.js";
5
+ import { Input as o } from "../input/input.js";
6
+ import { Icon as m } from "../icon/icon.js";
7
+ import { Spinner as t } from "../spinner/spinner.js";
8
+ import { IconButton as h } from "../icon-button/icon-button.js";
9
+ import '../../search-bar.css';const a = {
10
+ "search-bar": "_search-bar_r8lqs_2",
11
+ "search-bar__input": "_search-bar__input_r8lqs_7",
12
+ "search-bar__icon": "_search-bar__icon_r8lqs_15",
13
+ "search-bar__icon_close": "_search-bar__icon_close_r8lqs_27"
14
+ };
15
+ function I({ loading: e, onClear: l, className: i, ...c }) {
16
+ return /* @__PURE__ */ n(s, { className: _(a["search-bar"], i), children: [
17
+ /* @__PURE__ */ r(o, { className: a["search-bar__input"], ...c }),
18
+ !e && !c.value ? /* @__PURE__ */ r(s, { className: a["search-bar__icon"], children: /* @__PURE__ */ r(m, { name: "search-line" }) }) : null,
19
+ e ? /* @__PURE__ */ r(t, { className: a["search-bar__icon"] }) : null,
20
+ !e && c.value ? /* @__PURE__ */ r(
21
+ s,
22
+ {
23
+ className: _(
24
+ a["search-bar__icon"],
25
+ a["search-bar__icon_close"]
26
+ ),
27
+ children: /* @__PURE__ */ r(
28
+ h,
29
+ {
30
+ icon: "close-line",
31
+ alt: "Clear",
32
+ size: "sm",
33
+ disabled: c.disabled,
34
+ onClick: l
35
+ }
36
+ )
37
+ }
38
+ ) : null
39
+ ] });
40
+ }
41
+ export {
42
+ I as SearchBar
43
+ };
@@ -1,16 +1 @@
1
- import { Select as SelectPrimitive } from '@base-ui/react/select';
2
- import { CSSProperties } from 'react';
3
- export declare function Select<Value>({ placeholder, className, style, ...props }: SelectPrimitive.Root.Props<Value, boolean> & {
4
- /**
5
- * Select placeholder if no value is chosen.
6
- *
7
- * Behaves differently depending on the type of select.
8
- * For a normal select, we simply render an item with a value of null.
9
- * For a `multiple` select, we replace the {@link https://base-ui.com/react/components/select#multiple-selection renderValue} function.
10
- */
11
- placeholder?: string;
12
- /** Apply styles to SelectPrimitive.trigger */
13
- className?: string;
14
- /** Apply styles to SelectPrimitive.trigger */
15
- style?: CSSProperties;
16
- }): import("react/jsx-runtime").JSX.Element;
1
+ export { Select } from './select';