@accelint/design-toolkit 6.0.0 → 7.0.1

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 (570) hide show
  1. package/README.md +2 -0
  2. package/catalog-info.yaml +18 -18
  3. package/dist/components/accordion/context.d.ts +10 -0
  4. package/dist/components/accordion/context.js +4 -0
  5. package/dist/components/accordion/context.js.map +1 -0
  6. package/dist/components/accordion/group.d.ts +11 -0
  7. package/dist/components/accordion/group.js +4 -0
  8. package/dist/components/accordion/group.js.map +1 -0
  9. package/dist/components/accordion/header.d.ts +11 -0
  10. package/dist/components/accordion/header.js +4 -0
  11. package/dist/components/accordion/header.js.map +1 -0
  12. package/dist/components/accordion/index.d.ts +22 -46
  13. package/dist/components/accordion/index.js +1 -1
  14. package/dist/components/accordion/index.js.map +1 -1
  15. package/dist/components/accordion/panel.d.ts +11 -0
  16. package/dist/components/accordion/panel.js +4 -0
  17. package/dist/components/accordion/panel.js.map +1 -0
  18. package/dist/components/accordion/trigger.d.ts +11 -0
  19. package/dist/components/accordion/trigger.js +4 -0
  20. package/dist/components/accordion/trigger.js.map +1 -0
  21. package/dist/components/accordion/types.d.ts +1 -1
  22. package/dist/components/action-bar/index.d.ts +0 -3
  23. package/dist/components/action-bar/index.js +1 -1
  24. package/dist/components/action-bar/index.js.map +1 -1
  25. package/dist/components/avatar/context.d.ts +14 -0
  26. package/dist/components/avatar/context.js +4 -0
  27. package/dist/components/avatar/context.js.map +1 -0
  28. package/dist/components/avatar/index.d.ts +2 -13
  29. package/dist/components/avatar/index.js +1 -1
  30. package/dist/components/avatar/index.js.map +1 -1
  31. package/dist/components/badge/context.d.ts +13 -0
  32. package/dist/components/badge/context.js +4 -0
  33. package/dist/components/badge/context.js.map +1 -0
  34. package/dist/components/badge/index.d.ts +2 -13
  35. package/dist/components/badge/index.js +1 -1
  36. package/dist/components/badge/index.js.map +1 -1
  37. package/dist/components/breadcrumbs/index.d.ts +2 -11
  38. package/dist/components/breadcrumbs/index.js +1 -1
  39. package/dist/components/breadcrumbs/index.js.map +1 -1
  40. package/dist/components/breadcrumbs/item.d.ts +7 -0
  41. package/dist/components/breadcrumbs/item.js +4 -0
  42. package/dist/components/breadcrumbs/item.js.map +1 -0
  43. package/dist/components/button/context.d.ts +17 -0
  44. package/dist/components/button/context.js +4 -0
  45. package/dist/components/button/context.js.map +1 -0
  46. package/dist/components/button/index.d.ts +5 -104
  47. package/dist/components/button/index.js +1 -1
  48. package/dist/components/button/index.js.map +1 -1
  49. package/dist/components/button/link.d.ts +46 -0
  50. package/dist/components/button/link.js +4 -0
  51. package/dist/components/button/link.js.map +1 -0
  52. package/dist/components/button/toggle.d.ts +48 -0
  53. package/dist/components/button/toggle.js +4 -0
  54. package/dist/components/button/toggle.js.map +1 -0
  55. package/dist/components/checkbox/context.d.ts +10 -0
  56. package/dist/components/checkbox/context.js +4 -0
  57. package/dist/components/checkbox/context.js.map +1 -0
  58. package/dist/components/checkbox/group.d.ts +10 -0
  59. package/dist/components/checkbox/group.js +4 -0
  60. package/dist/components/checkbox/group.js.map +1 -0
  61. package/dist/components/checkbox/index.d.ts +6 -16
  62. package/dist/components/checkbox/index.js +1 -1
  63. package/dist/components/checkbox/index.js.map +1 -1
  64. package/dist/components/checkbox/styles.js +1 -1
  65. package/dist/components/checkbox/styles.js.map +1 -1
  66. package/dist/components/chip/context.d.ts +13 -0
  67. package/dist/components/chip/context.js +4 -0
  68. package/dist/components/chip/context.js.map +1 -0
  69. package/dist/components/chip/deletable.d.ts +11 -0
  70. package/dist/components/chip/deletable.js +4 -0
  71. package/dist/components/chip/deletable.js.map +1 -0
  72. package/dist/components/chip/index.d.ts +14 -39
  73. package/dist/components/chip/index.js +1 -1
  74. package/dist/components/chip/index.js.map +1 -1
  75. package/dist/components/chip/list.d.ts +12 -0
  76. package/dist/components/chip/list.js +4 -0
  77. package/dist/components/chip/list.js.map +1 -0
  78. package/dist/components/chip/selectable.d.ts +11 -0
  79. package/dist/components/chip/selectable.js +4 -0
  80. package/dist/components/chip/selectable.js.map +1 -0
  81. package/dist/components/chip/styles.js +1 -1
  82. package/dist/components/chip/styles.js.map +1 -1
  83. package/dist/components/chip/types.d.ts +2 -2
  84. package/dist/components/classification-badge/context.d.ts +12 -0
  85. package/dist/components/classification-badge/context.js +4 -0
  86. package/dist/components/classification-badge/context.js.map +1 -0
  87. package/dist/components/classification-badge/index.d.ts +2 -13
  88. package/dist/components/classification-badge/index.js +1 -1
  89. package/dist/components/classification-badge/index.js.map +1 -1
  90. package/dist/components/classification-banner/context.d.ts +12 -0
  91. package/dist/components/classification-banner/context.js +4 -0
  92. package/dist/components/classification-banner/context.js.map +1 -0
  93. package/dist/components/classification-banner/index.d.ts +2 -13
  94. package/dist/components/classification-banner/index.js +1 -1
  95. package/dist/components/classification-banner/index.js.map +1 -1
  96. package/dist/components/clock/index.d.ts +0 -3
  97. package/dist/components/clock/index.js +1 -1
  98. package/dist/components/clock/index.js.map +1 -1
  99. package/dist/components/color-picker/index.d.ts +0 -3
  100. package/dist/components/color-picker/index.js +1 -1
  101. package/dist/components/color-picker/index.js.map +1 -1
  102. package/dist/components/color-picker/styles.js +1 -1
  103. package/dist/components/color-picker/styles.js.map +1 -1
  104. package/dist/components/combobox-field/context.d.ts +16 -0
  105. package/dist/components/combobox-field/context.js +4 -0
  106. package/dist/components/combobox-field/context.js.map +1 -0
  107. package/dist/components/combobox-field/index.d.ts +4 -8
  108. package/dist/components/combobox-field/index.js +1 -1
  109. package/dist/components/combobox-field/index.js.map +1 -1
  110. package/dist/components/combobox-field/styles.d.ts +3 -3
  111. package/dist/components/date-field/index.js +1 -1
  112. package/dist/components/date-field/index.js.map +1 -1
  113. package/dist/components/details-list/context.d.ts +12 -0
  114. package/dist/components/details-list/context.js +4 -0
  115. package/dist/components/details-list/context.js.map +1 -0
  116. package/dist/components/details-list/index.d.ts +15 -35
  117. package/dist/components/details-list/index.js +1 -1
  118. package/dist/components/details-list/index.js.map +1 -1
  119. package/dist/components/details-list/label.d.ts +10 -0
  120. package/dist/components/details-list/label.js +4 -0
  121. package/dist/components/details-list/label.js.map +1 -0
  122. package/dist/components/details-list/value.d.ts +10 -0
  123. package/dist/components/details-list/value.js +4 -0
  124. package/dist/components/details-list/value.js.map +1 -0
  125. package/dist/components/dialog/content.d.ts +6 -0
  126. package/dist/components/dialog/content.js +4 -0
  127. package/dist/components/dialog/content.js.map +1 -0
  128. package/dist/components/dialog/context.d.ts +7 -0
  129. package/dist/components/dialog/context.js +4 -0
  130. package/dist/components/dialog/context.js.map +1 -0
  131. package/dist/components/dialog/footer.d.ts +6 -0
  132. package/dist/components/dialog/footer.js +4 -0
  133. package/dist/components/dialog/footer.js.map +1 -0
  134. package/dist/components/dialog/index.d.ts +9 -30
  135. package/dist/components/dialog/index.js +1 -1
  136. package/dist/components/dialog/index.js.map +1 -1
  137. package/dist/components/dialog/styles.d.ts +3 -3
  138. package/dist/components/dialog/title.d.ts +6 -0
  139. package/dist/components/dialog/title.js +4 -0
  140. package/dist/components/dialog/title.js.map +1 -0
  141. package/dist/components/dialog/trigger.d.ts +1 -0
  142. package/dist/components/dialog/trigger.js +2 -0
  143. package/dist/components/dialog/trigger.js.map +1 -0
  144. package/dist/components/dialog/types.d.ts +3 -2
  145. package/dist/components/divider/context.d.ts +10 -0
  146. package/dist/components/divider/context.js +4 -0
  147. package/dist/components/divider/context.js.map +1 -0
  148. package/dist/components/divider/index.d.ts +2 -13
  149. package/dist/components/divider/index.js +1 -1
  150. package/dist/components/divider/index.js.map +1 -1
  151. package/dist/components/drawer/back.d.ts +5 -0
  152. package/dist/components/drawer/back.js +4 -0
  153. package/dist/components/drawer/back.js.map +1 -0
  154. package/dist/components/drawer/close.d.ts +5 -0
  155. package/dist/components/drawer/close.js +4 -0
  156. package/dist/components/drawer/close.js.map +1 -0
  157. package/dist/components/drawer/content.d.ts +6 -0
  158. package/dist/components/drawer/content.js +4 -0
  159. package/dist/components/drawer/content.js.map +1 -0
  160. package/dist/components/drawer/context.d.ts +38 -0
  161. package/dist/components/drawer/context.js +4 -0
  162. package/dist/components/drawer/context.js.map +1 -0
  163. package/dist/components/drawer/footer.d.ts +6 -0
  164. package/dist/components/drawer/footer.js +4 -0
  165. package/dist/components/drawer/footer.js.map +1 -0
  166. package/dist/components/drawer/header-title.d.ts +25 -0
  167. package/dist/components/drawer/header-title.js +4 -0
  168. package/dist/components/drawer/header-title.js.map +1 -0
  169. package/dist/components/drawer/header.d.ts +6 -0
  170. package/dist/components/drawer/header.js +4 -0
  171. package/dist/components/drawer/header.js.map +1 -0
  172. package/dist/components/drawer/index.d.ts +19 -112
  173. package/dist/components/drawer/index.js +1 -1
  174. package/dist/components/drawer/index.js.map +1 -1
  175. package/dist/components/drawer/layout-main.d.ts +6 -0
  176. package/dist/components/drawer/layout-main.js +4 -0
  177. package/dist/components/drawer/layout-main.js.map +1 -0
  178. package/dist/components/drawer/layout.d.ts +20 -0
  179. package/dist/components/drawer/layout.js +4 -0
  180. package/dist/components/drawer/layout.js.map +1 -0
  181. package/dist/components/drawer/menu-item.d.ts +20 -0
  182. package/dist/components/drawer/menu-item.js +4 -0
  183. package/dist/components/drawer/menu-item.js.map +1 -0
  184. package/dist/components/drawer/menu.d.ts +20 -0
  185. package/dist/components/drawer/menu.js +4 -0
  186. package/dist/components/drawer/menu.js.map +1 -0
  187. package/dist/components/drawer/panel.d.ts +6 -0
  188. package/dist/components/drawer/panel.js +4 -0
  189. package/dist/components/drawer/panel.js.map +1 -0
  190. package/dist/components/drawer/styles.d.ts +9 -9
  191. package/dist/components/drawer/trigger.d.ts +20 -0
  192. package/dist/components/drawer/trigger.js +4 -0
  193. package/dist/components/drawer/trigger.js.map +1 -0
  194. package/dist/components/drawer/types.d.ts +3 -3
  195. package/dist/components/drawer/view.d.ts +11 -0
  196. package/dist/components/drawer/view.js +4 -0
  197. package/dist/components/drawer/view.js.map +1 -0
  198. package/dist/components/hero/context.d.ts +7 -0
  199. package/dist/components/hero/context.js +4 -0
  200. package/dist/components/hero/context.js.map +1 -0
  201. package/dist/components/hero/index.d.ts +8 -16
  202. package/dist/components/hero/index.js +1 -1
  203. package/dist/components/hero/index.js.map +1 -1
  204. package/dist/components/hero/subtitle.d.ts +6 -0
  205. package/dist/components/hero/subtitle.js +4 -0
  206. package/dist/components/hero/subtitle.js.map +1 -0
  207. package/dist/components/hero/title.d.ts +6 -0
  208. package/dist/components/hero/title.js +4 -0
  209. package/dist/components/hero/title.js.map +1 -0
  210. package/dist/components/hotkey/context.d.ts +12 -0
  211. package/dist/components/hotkey/context.js +4 -0
  212. package/dist/components/hotkey/context.js.map +1 -0
  213. package/dist/components/hotkey/hotkey-set.d.ts +9 -0
  214. package/dist/components/hotkey/hotkey-set.js +4 -0
  215. package/dist/components/hotkey/hotkey-set.js.map +1 -0
  216. package/dist/components/hotkey/index.d.ts +7 -23
  217. package/dist/components/hotkey/index.js +1 -1
  218. package/dist/components/hotkey/index.js.map +1 -1
  219. package/dist/components/icon/context.d.ts +10 -0
  220. package/dist/components/icon/context.js +4 -0
  221. package/dist/components/icon/context.js.map +1 -0
  222. package/dist/components/icon/index.d.ts +2 -13
  223. package/dist/components/icon/index.js +1 -1
  224. package/dist/components/icon/index.js.map +1 -1
  225. package/dist/components/input/context.d.ts +13 -0
  226. package/dist/components/input/context.js +4 -0
  227. package/dist/components/input/context.js.map +1 -0
  228. package/dist/components/input/index.d.ts +3 -7
  229. package/dist/components/input/index.js +1 -1
  230. package/dist/components/input/index.js.map +1 -1
  231. package/dist/components/label/context.d.ts +10 -0
  232. package/dist/components/label/context.js +4 -0
  233. package/dist/components/label/context.js.map +1 -0
  234. package/dist/components/label/index.d.ts +3 -13
  235. package/dist/components/label/index.js +1 -1
  236. package/dist/components/label/index.js.map +1 -1
  237. package/dist/components/link/context.d.ts +9 -0
  238. package/dist/components/link/context.js +4 -0
  239. package/dist/components/link/context.js.map +1 -0
  240. package/dist/components/link/index.d.ts +0 -9
  241. package/dist/components/link/index.js +1 -1
  242. package/dist/components/link/index.js.map +1 -1
  243. package/dist/components/menu/context.d.ts +10 -0
  244. package/dist/components/menu/context.js +4 -0
  245. package/dist/components/menu/context.js.map +1 -0
  246. package/dist/components/menu/index.d.ts +31 -63
  247. package/dist/components/menu/index.js +1 -1
  248. package/dist/components/menu/index.js.map +1 -1
  249. package/dist/components/menu/item-description.d.ts +6 -0
  250. package/dist/components/menu/item-description.js +4 -0
  251. package/dist/components/menu/item-description.js.map +1 -0
  252. package/dist/components/menu/item-label.d.ts +6 -0
  253. package/dist/components/menu/item-label.js +4 -0
  254. package/dist/components/menu/item-label.js.map +1 -0
  255. package/dist/components/menu/item.d.ts +11 -0
  256. package/dist/components/menu/item.js +4 -0
  257. package/dist/components/menu/item.js.map +1 -0
  258. package/dist/components/menu/section.d.ts +11 -0
  259. package/dist/components/menu/section.js +4 -0
  260. package/dist/components/menu/section.js.map +1 -0
  261. package/dist/components/menu/separator.d.ts +6 -0
  262. package/dist/components/menu/separator.js +4 -0
  263. package/dist/components/menu/separator.js.map +1 -0
  264. package/dist/components/menu/styles.js +1 -1
  265. package/dist/components/menu/styles.js.map +1 -1
  266. package/dist/components/menu/submenu.d.ts +6 -0
  267. package/dist/components/menu/submenu.js +4 -0
  268. package/dist/components/menu/submenu.js.map +1 -0
  269. package/dist/components/menu/trigger.d.ts +1 -0
  270. package/dist/components/menu/trigger.js +4 -0
  271. package/dist/components/menu/trigger.js.map +1 -0
  272. package/dist/components/menu/types.d.ts +1 -1
  273. package/dist/components/notice/index.d.ts +1 -5
  274. package/dist/components/notice/index.js +1 -1
  275. package/dist/components/notice/index.js.map +1 -1
  276. package/dist/components/notice/list.d.ts +16 -0
  277. package/dist/components/notice/list.js +4 -0
  278. package/dist/components/notice/list.js.map +1 -0
  279. package/dist/components/notice/notice-icon.d.ts +16 -0
  280. package/dist/components/notice/notice-icon.js +4 -0
  281. package/dist/components/notice/notice-icon.js.map +1 -0
  282. package/dist/components/notice/styles.d.ts +3 -3
  283. package/dist/components/notice/utils.d.ts +3 -0
  284. package/dist/components/notice/utils.js +4 -0
  285. package/dist/components/notice/utils.js.map +1 -0
  286. package/dist/components/options/context.d.ts +8 -0
  287. package/dist/components/options/context.js +4 -0
  288. package/dist/components/options/context.js.map +1 -0
  289. package/dist/components/options/index.d.ts +22 -51
  290. package/dist/components/options/index.js +1 -1
  291. package/dist/components/options/index.js.map +1 -1
  292. package/dist/components/options/item-content.d.ts +9 -0
  293. package/dist/components/options/item-content.js +4 -0
  294. package/dist/components/options/item-content.js.map +1 -0
  295. package/dist/components/options/item-description.d.ts +9 -0
  296. package/dist/components/options/item-description.js +4 -0
  297. package/dist/components/options/item-description.js.map +1 -0
  298. package/dist/components/options/item-label.d.ts +9 -0
  299. package/dist/components/options/item-label.js +4 -0
  300. package/dist/components/options/item-label.js.map +1 -0
  301. package/dist/components/options/item.d.ts +9 -0
  302. package/dist/components/options/item.js +4 -0
  303. package/dist/components/options/item.js.map +1 -0
  304. package/dist/components/options/section.d.ts +9 -0
  305. package/dist/components/options/section.js +4 -0
  306. package/dist/components/options/section.js.map +1 -0
  307. package/dist/components/options/styles.d.ts +3 -3
  308. package/dist/components/options/styles.js +1 -1
  309. package/dist/components/options/styles.js.map +1 -1
  310. package/dist/components/options/types.d.ts +2 -2
  311. package/dist/components/popover/body.d.ts +8 -0
  312. package/dist/components/popover/body.js +4 -0
  313. package/dist/components/popover/body.js.map +1 -0
  314. package/dist/components/popover/content.d.ts +8 -0
  315. package/dist/components/popover/content.js +4 -0
  316. package/dist/components/popover/content.js.map +1 -0
  317. package/dist/components/popover/footer.d.ts +9 -0
  318. package/dist/components/popover/footer.js +4 -0
  319. package/dist/components/popover/footer.js.map +1 -0
  320. package/dist/components/popover/index.d.ts +16 -39
  321. package/dist/components/popover/index.js +1 -1
  322. package/dist/components/popover/index.js.map +1 -1
  323. package/dist/components/popover/title.d.ts +8 -0
  324. package/dist/components/popover/title.js +4 -0
  325. package/dist/components/popover/title.js.map +1 -0
  326. package/dist/components/popover/trigger.d.ts +8 -0
  327. package/dist/components/popover/trigger.js +4 -0
  328. package/dist/components/popover/trigger.js.map +1 -0
  329. package/dist/components/popover/types.d.ts +1 -1
  330. package/dist/components/query-builder/action-element.js +1 -1
  331. package/dist/components/query-builder/action-element.js.map +1 -1
  332. package/dist/components/query-builder/actions.d.ts +8 -0
  333. package/dist/components/query-builder/actions.js +4 -0
  334. package/dist/components/query-builder/actions.js.map +1 -0
  335. package/dist/components/query-builder/combinator-selector.d.ts +6 -0
  336. package/dist/components/query-builder/combinator-selector.js +4 -0
  337. package/dist/components/query-builder/combinator-selector.js.map +1 -0
  338. package/dist/components/query-builder/index.d.ts +1 -21
  339. package/dist/components/query-builder/index.js +3 -1
  340. package/dist/components/query-builder/index.js.map +1 -1
  341. package/dist/components/query-builder/{group.js → rule-group.js} +2 -2
  342. package/dist/components/query-builder/rule-group.js.map +1 -0
  343. package/dist/components/query-builder/rule.js +1 -1
  344. package/dist/components/query-builder/rule.js.map +1 -1
  345. package/dist/components/query-builder/styles.d.ts +152 -0
  346. package/dist/components/query-builder/styles.js +2 -0
  347. package/dist/components/query-builder/styles.js.map +1 -0
  348. package/dist/components/query-builder/utils.d.ts +1 -10
  349. package/dist/components/query-builder/utils.js +1 -1
  350. package/dist/components/query-builder/utils.js.map +1 -1
  351. package/dist/components/query-builder/value-editor.js +1 -1
  352. package/dist/components/query-builder/value-editor.js.map +1 -1
  353. package/dist/components/query-builder/value-selector.js +3 -1
  354. package/dist/components/query-builder/value-selector.js.map +1 -1
  355. package/dist/components/radio/context.d.ts +13 -0
  356. package/dist/components/radio/context.js +4 -0
  357. package/dist/components/radio/context.js.map +1 -0
  358. package/dist/components/radio/group.d.ts +15 -0
  359. package/dist/components/radio/group.js +4 -0
  360. package/dist/components/radio/group.js.map +1 -0
  361. package/dist/components/radio/index.d.ts +10 -19
  362. package/dist/components/radio/index.js +1 -1
  363. package/dist/components/radio/index.js.map +1 -1
  364. package/dist/components/radio/styles.js +1 -1
  365. package/dist/components/radio/styles.js.map +1 -1
  366. package/dist/components/radio/types.d.ts +1 -1
  367. package/dist/components/search-field/context.d.ts +26 -0
  368. package/dist/components/search-field/context.js +4 -0
  369. package/dist/components/search-field/context.js.map +1 -0
  370. package/dist/components/search-field/index.d.ts +4 -20
  371. package/dist/components/search-field/index.js +1 -1
  372. package/dist/components/search-field/index.js.map +1 -1
  373. package/dist/components/select-field/context.d.ts +15 -0
  374. package/dist/components/select-field/context.js +4 -0
  375. package/dist/components/select-field/context.js.map +1 -0
  376. package/dist/components/select-field/index.d.ts +12 -21
  377. package/dist/components/select-field/index.js +1 -1
  378. package/dist/components/select-field/index.js.map +1 -1
  379. package/dist/components/select-field/styles.d.ts +9 -3
  380. package/dist/components/select-field/styles.js +1 -1
  381. package/dist/components/select-field/styles.js.map +1 -1
  382. package/dist/components/select-field/types.d.ts +2 -2
  383. package/dist/components/sidenav/avatar.d.ts +16 -0
  384. package/dist/components/sidenav/avatar.js +4 -0
  385. package/dist/components/sidenav/avatar.js.map +1 -0
  386. package/dist/components/sidenav/content.d.ts +16 -0
  387. package/dist/components/sidenav/content.js +4 -0
  388. package/dist/components/sidenav/content.js.map +1 -0
  389. package/dist/components/sidenav/context.d.ts +10 -0
  390. package/dist/components/sidenav/context.js +4 -0
  391. package/dist/components/sidenav/context.js.map +1 -0
  392. package/dist/components/sidenav/footer.d.ts +16 -0
  393. package/dist/components/sidenav/footer.js +4 -0
  394. package/dist/components/sidenav/footer.js.map +1 -0
  395. package/dist/components/sidenav/header.d.ts +16 -0
  396. package/dist/components/sidenav/header.js +4 -0
  397. package/dist/components/sidenav/header.js.map +1 -0
  398. package/dist/components/sidenav/index.d.ts +28 -76
  399. package/dist/components/sidenav/index.js +1 -1
  400. package/dist/components/sidenav/index.js.map +1 -1
  401. package/dist/components/sidenav/item.d.ts +16 -0
  402. package/dist/components/sidenav/item.js +4 -0
  403. package/dist/components/sidenav/item.js.map +1 -0
  404. package/dist/components/sidenav/link.d.ts +16 -0
  405. package/dist/components/sidenav/link.js +4 -0
  406. package/dist/components/sidenav/link.js.map +1 -0
  407. package/dist/components/sidenav/menu-item.d.ts +16 -0
  408. package/dist/components/sidenav/menu-item.js +4 -0
  409. package/dist/components/sidenav/menu-item.js.map +1 -0
  410. package/dist/components/sidenav/menu.d.ts +16 -0
  411. package/dist/components/sidenav/menu.js +4 -0
  412. package/dist/components/sidenav/menu.js.map +1 -0
  413. package/dist/components/sidenav/styles.d.ts +9 -9
  414. package/dist/components/sidenav/trigger.d.ts +16 -0
  415. package/dist/components/sidenav/trigger.js +4 -0
  416. package/dist/components/sidenav/trigger.js.map +1 -0
  417. package/dist/components/sidenav/types.d.ts +1 -1
  418. package/dist/components/skeleton/index.d.ts +0 -3
  419. package/dist/components/skeleton/index.js +1 -1
  420. package/dist/components/skeleton/index.js.map +1 -1
  421. package/dist/components/slider/index.d.ts +1 -1
  422. package/dist/components/slider/index.js +1 -1
  423. package/dist/components/slider/index.js.map +1 -1
  424. package/dist/components/slider/styles.d.ts +3 -3
  425. package/dist/components/slider/styles.js +1 -1
  426. package/dist/components/slider/styles.js.map +1 -1
  427. package/dist/components/switch/context.d.ts +20 -0
  428. package/dist/components/switch/context.js +4 -0
  429. package/dist/components/switch/context.js.map +1 -0
  430. package/dist/components/switch/index.d.ts +3 -13
  431. package/dist/components/switch/index.js +1 -1
  432. package/dist/components/switch/index.js.map +1 -1
  433. package/dist/components/switch/styles.js +1 -1
  434. package/dist/components/switch/styles.js.map +1 -1
  435. package/dist/components/table/body.js +2 -0
  436. package/dist/components/table/body.js.map +1 -0
  437. package/dist/components/table/cell.js +2 -0
  438. package/dist/components/table/cell.js.map +1 -0
  439. package/dist/components/table/constants/table.d.ts +17 -0
  440. package/dist/components/table/constants/table.js +2 -0
  441. package/dist/components/table/constants/table.js.map +1 -0
  442. package/dist/components/table/context.js +1 -1
  443. package/dist/components/table/context.js.map +1 -1
  444. package/dist/components/table/{table-header-cell.d.ts → header-cell.d.ts} +2 -2
  445. package/dist/components/table/header-cell.js +2 -0
  446. package/dist/components/table/header-cell.js.map +1 -0
  447. package/dist/components/table/header.js +2 -0
  448. package/dist/components/table/header.js.map +1 -0
  449. package/dist/components/table/index.d.ts +1 -14
  450. package/dist/components/table/index.js +1 -1
  451. package/dist/components/table/index.js.map +1 -1
  452. package/dist/components/table/row.js +2 -0
  453. package/dist/components/table/row.js.map +1 -0
  454. package/dist/components/table/types.d.ts +25 -2
  455. package/dist/components/tabs/context.d.ts +20 -0
  456. package/dist/components/tabs/context.js +4 -0
  457. package/dist/components/tabs/context.js.map +1 -0
  458. package/dist/components/tabs/index.d.ts +25 -51
  459. package/dist/components/tabs/index.js +1 -1
  460. package/dist/components/tabs/index.js.map +1 -1
  461. package/dist/components/tabs/list.d.ts +11 -0
  462. package/dist/components/tabs/list.js +4 -0
  463. package/dist/components/tabs/list.js.map +1 -0
  464. package/dist/components/tabs/panel.d.ts +11 -0
  465. package/dist/components/tabs/panel.js +4 -0
  466. package/dist/components/tabs/panel.js.map +1 -0
  467. package/dist/components/tabs/tab.d.ts +11 -0
  468. package/dist/components/tabs/tab.js +4 -0
  469. package/dist/components/tabs/tab.js.map +1 -0
  470. package/dist/components/text-area-field/context.d.ts +20 -0
  471. package/dist/components/text-area-field/context.js +4 -0
  472. package/dist/components/text-area-field/context.js.map +1 -0
  473. package/dist/components/text-area-field/index.d.ts +3 -13
  474. package/dist/components/text-area-field/index.js +1 -1
  475. package/dist/components/text-area-field/index.js.map +1 -1
  476. package/dist/components/text-field/context.d.ts +17 -0
  477. package/dist/components/text-field/context.js +4 -0
  478. package/dist/components/text-field/context.js.map +1 -0
  479. package/dist/components/text-field/index.d.ts +4 -13
  480. package/dist/components/text-field/index.js +1 -1
  481. package/dist/components/text-field/index.js.map +1 -1
  482. package/dist/components/time-field/index.js +1 -1
  483. package/dist/components/time-field/index.js.map +1 -1
  484. package/dist/components/tooltip/context.d.ts +7 -0
  485. package/dist/components/tooltip/context.js +4 -0
  486. package/dist/components/tooltip/context.js.map +1 -0
  487. package/dist/components/tooltip/index.d.ts +10 -19
  488. package/dist/components/tooltip/index.js +1 -1
  489. package/dist/components/tooltip/index.js.map +1 -1
  490. package/dist/components/tooltip/trigger.d.ts +8 -0
  491. package/dist/components/tooltip/trigger.js +4 -0
  492. package/dist/components/tooltip/trigger.js.map +1 -0
  493. package/dist/components/tooltip/types.d.ts +1 -1
  494. package/dist/components/tree/context.d.ts +18 -0
  495. package/dist/components/tree/context.js +4 -0
  496. package/dist/components/tree/context.js.map +1 -0
  497. package/dist/components/tree/index.d.ts +11 -50
  498. package/dist/components/tree/index.js +1 -1
  499. package/dist/components/tree/index.js.map +1 -1
  500. package/dist/components/tree/item-actions.d.ts +13 -0
  501. package/dist/components/tree/item-actions.js +2 -0
  502. package/dist/components/tree/item-actions.js.map +1 -0
  503. package/dist/components/tree/item-content.d.ts +17 -0
  504. package/dist/components/tree/item-content.js +2 -0
  505. package/dist/components/tree/item-content.js.map +1 -0
  506. package/dist/components/tree/item-description.d.ts +11 -0
  507. package/dist/components/tree/item-description.js +2 -0
  508. package/dist/components/tree/item-description.js.map +1 -0
  509. package/dist/components/tree/item-label.d.ts +11 -0
  510. package/dist/components/tree/item-label.js +2 -0
  511. package/dist/components/tree/item-label.js.map +1 -0
  512. package/dist/components/tree/item-prefix-icon.d.ts +12 -0
  513. package/dist/components/tree/item-prefix-icon.js +2 -0
  514. package/dist/components/tree/item-prefix-icon.js.map +1 -0
  515. package/dist/components/tree/item.d.ts +17 -0
  516. package/dist/components/tree/item.js +4 -0
  517. package/dist/components/tree/item.js.map +1 -0
  518. package/dist/components/tree/lines.d.ts +8 -0
  519. package/dist/components/tree/lines.js +2 -0
  520. package/dist/components/tree/lines.js.map +1 -0
  521. package/dist/components/tree/styles.js +1 -1
  522. package/dist/components/tree/styles.js.map +1 -1
  523. package/dist/components/tree/types.d.ts +1 -1
  524. package/dist/components/view-stack/context.d.ts +31 -0
  525. package/dist/components/view-stack/context.js +4 -0
  526. package/dist/components/view-stack/context.js.map +1 -0
  527. package/dist/components/view-stack/index.d.ts +12 -38
  528. package/dist/components/view-stack/index.js +1 -1
  529. package/dist/components/view-stack/index.js.map +1 -1
  530. package/dist/components/view-stack/trigger.d.ts +16 -0
  531. package/dist/components/view-stack/trigger.js +4 -0
  532. package/dist/components/view-stack/trigger.js.map +1 -0
  533. package/dist/components/view-stack/view.d.ts +16 -0
  534. package/dist/components/view-stack/view.js +4 -0
  535. package/dist/components/view-stack/view.js.map +1 -0
  536. package/dist/hooks/use-tree/state/index.js +2 -0
  537. package/dist/icons/catalog.d.ts +14 -0
  538. package/dist/icons/catalog.js +1 -1
  539. package/dist/icons/catalog.js.map +1 -1
  540. package/dist/index.css +0 -49
  541. package/dist/index.d.ts +143 -44
  542. package/dist/index.js +1 -1
  543. package/dist/metafile-esm.json +1 -1
  544. package/dist/providers/theme-provider.js +1 -1
  545. package/dist/providers/theme-provider.js.map +1 -1
  546. package/dist/styles.css +965 -243
  547. package/dist/tokens/themes.css +1 -1
  548. package/dist/tokens/themes.d.ts +1 -2
  549. package/dist/tokens/tokens.js +1 -1
  550. package/dist/tokens/tokens.js.map +1 -1
  551. package/package.json +98 -95
  552. package/dist/components/query-builder/group.js.map +0 -1
  553. package/dist/components/table/table-body.js +0 -2
  554. package/dist/components/table/table-body.js.map +0 -1
  555. package/dist/components/table/table-cell.js +0 -2
  556. package/dist/components/table/table-cell.js.map +0 -1
  557. package/dist/components/table/table-header-cell.js +0 -2
  558. package/dist/components/table/table-header-cell.js.map +0 -1
  559. package/dist/components/table/table-header.js +0 -2
  560. package/dist/components/table/table-header.js.map +0 -1
  561. package/dist/components/table/table-row.js +0 -2
  562. package/dist/components/table/table-row.js.map +0 -1
  563. package/dist/lib/react.d.ts +0 -59
  564. package/dist/lib/react.js +0 -9
  565. package/dist/lib/react.js.map +0 -1
  566. /package/dist/components/query-builder/{group.d.ts → rule-group.d.ts} +0 -0
  567. /package/dist/components/table/{table-body.d.ts → body.d.ts} +0 -0
  568. /package/dist/components/table/{table-cell.d.ts → cell.d.ts} +0 -0
  569. /package/dist/components/table/{table-header.d.ts → header.d.ts} +0 -0
  570. /package/dist/components/table/{table-row.d.ts → row.d.ts} +0 -0
@@ -0,0 +1,152 @@
1
+ import * as tailwind_merge from 'tailwind-merge';
2
+ import * as tailwind_variants from 'tailwind-variants';
3
+
4
+ declare const QueryBuilderStylesDefaults: {};
5
+ declare const QueryBuilderStyles: tailwind_variants.TVReturnType<{
6
+ variant: {
7
+ horizontal: {
8
+ rule: string;
9
+ };
10
+ vertical: {
11
+ rule: string;
12
+ };
13
+ };
14
+ showRuleLines: {
15
+ true: {
16
+ body: string;
17
+ };
18
+ false: {
19
+ body: string;
20
+ };
21
+ };
22
+ }, {
23
+ queryBuilder: string;
24
+ ruleGroup: string;
25
+ header: string;
26
+ body: string;
27
+ combinators: string;
28
+ addRule: string;
29
+ addGroup: string;
30
+ cloneRule: string;
31
+ cloneGroup: string;
32
+ removeGroup: string;
33
+ rule: string;
34
+ fields: string;
35
+ operators: string;
36
+ value: string;
37
+ removeRule: string;
38
+ valid: string;
39
+ invalid: string;
40
+ disabled: string;
41
+ lockRule: string;
42
+ lockGroup: string;
43
+ valueSource: string;
44
+ valueListItem: string;
45
+ }, undefined, {
46
+ variant: {
47
+ horizontal: {
48
+ rule: string;
49
+ };
50
+ vertical: {
51
+ rule: string;
52
+ };
53
+ };
54
+ showRuleLines: {
55
+ true: {
56
+ body: string;
57
+ };
58
+ false: {
59
+ body: string;
60
+ };
61
+ };
62
+ }, {
63
+ queryBuilder: string;
64
+ ruleGroup: string;
65
+ header: string;
66
+ body: string;
67
+ combinators: string;
68
+ addRule: string;
69
+ addGroup: string;
70
+ cloneRule: string;
71
+ cloneGroup: string;
72
+ removeGroup: string;
73
+ rule: string;
74
+ fields: string;
75
+ operators: string;
76
+ value: string;
77
+ removeRule: string;
78
+ valid: string;
79
+ invalid: string;
80
+ disabled: string;
81
+ lockRule: string;
82
+ lockGroup: string;
83
+ valueSource: string;
84
+ valueListItem: string;
85
+ }, tailwind_variants.TVReturnType<{
86
+ variant: {
87
+ horizontal: {
88
+ rule: string;
89
+ };
90
+ vertical: {
91
+ rule: string;
92
+ };
93
+ };
94
+ showRuleLines: {
95
+ true: {
96
+ body: string;
97
+ };
98
+ false: {
99
+ body: string;
100
+ };
101
+ };
102
+ }, {
103
+ queryBuilder: string;
104
+ ruleGroup: string;
105
+ header: string;
106
+ body: string;
107
+ combinators: string;
108
+ addRule: string;
109
+ addGroup: string;
110
+ cloneRule: string;
111
+ cloneGroup: string;
112
+ removeGroup: string;
113
+ rule: string;
114
+ fields: string;
115
+ operators: string;
116
+ value: string;
117
+ removeRule: string;
118
+ valid: string;
119
+ invalid: string;
120
+ disabled: string;
121
+ lockRule: string;
122
+ lockGroup: string;
123
+ valueSource: string;
124
+ valueListItem: string;
125
+ }, undefined, unknown, unknown>>;
126
+ declare const RuleStyles: tailwind_variants.TVReturnType<{
127
+ [key: string]: {
128
+ [key: string]: tailwind_merge.ClassNameValue | {
129
+ lines?: tailwind_merge.ClassNameValue;
130
+ };
131
+ };
132
+ } | {
133
+ [x: string]: {
134
+ [x: string]: tailwind_merge.ClassNameValue | {
135
+ lines?: tailwind_merge.ClassNameValue;
136
+ };
137
+ };
138
+ } | {}, {
139
+ lines: string;
140
+ }, undefined, {
141
+ [key: string]: {
142
+ [key: string]: tailwind_merge.ClassNameValue | {
143
+ lines?: tailwind_merge.ClassNameValue;
144
+ };
145
+ };
146
+ } | {}, {
147
+ lines: string;
148
+ }, tailwind_variants.TVReturnType<unknown, {
149
+ lines: string;
150
+ }, undefined, unknown, unknown>>;
151
+
152
+ export { QueryBuilderStyles, QueryBuilderStylesDefaults, RuleStyles };
@@ -0,0 +1,2 @@
1
+ import {tv}from'./../../lib/utils.js';const o={},r=tv({slots:{queryBuilder:"outline outline-transparent",ruleGroup:"group col-span-full flex flex-col gap-s rounded-medium p-s outline outline-info-bold",header:"flex gap-s",body:"group grid gap-x-s empty:hidden",combinators:"my-s",addRule:"",addGroup:"",cloneRule:"fg-info-bold hover:fg-info-hover",cloneGroup:"fg-info-bold hover:fg-info-hover",removeGroup:"",rule:"flex gap-xs py-s",fields:"w-full",operators:"",value:"w-full",removeRule:"",valid:"",invalid:"",disabled:"",lockRule:"fg-info-bold hover:fg-info-hover",lockGroup:"fg-info-bold hover:fg-info-hover",valueSource:"",valueListItem:""},variants:{variant:{horizontal:{rule:"min-h-[50px]"},vertical:{rule:"flex-col"}},showRuleLines:{true:{body:"grid-cols-[10px_minmax(100px,_1fr)_min-content]"},false:{body:"grid-cols-[minmax(100px,_1fr)_min-content]"}}},defaultVariants:o}),i=tv({slots:{lines:"min-h-[46px] w-[20px]"}});export{r as QueryBuilderStyles,o as QueryBuilderStylesDefaults,i as RuleStyles};//# sourceMappingURL=styles.js.map
2
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/query-builder/styles.tsx"],"names":["e"],"mappings":"sCAgBqC,MACnC,MAAO,CACLA,EAAA,CAAA,CAAA,KAAA,CAAA,CAAA,0CACA,CACE,SAAA,CAAA,sFACM,CAAA,MAAA,CAAA,YACF,CAAA,IAAA,CAAA,iCACN,CAAA,WACA,CAAA,cACA,CAAA,EAAU,CAAA,YACC,SAAA,CAAA,kCACX,CAAA,6CACA,CAAA,WACM,CAAA,EAAA,CAAA,IAAA,CAAA,kBACE,CAAA,MACR,UAAW,SACJ,SACP,CAAA,QAAA,CAAA,UACO,CAAA,EACP,CAAA,KAAA,CAAA,EAAS,CAAA,OACT,CAAA,EAAU,CAAA,QACV,CAAA,EAAU,4CACV,CAAW,SAAA,CAAA,8CAEX,CAAA,EAAA,CAAA,aAEF,CAAA,EAAA,CAAU,CACR,QAAS,CACP,yCAGA,CAAU,CACR,QAAM,CAAA,CAAA,IAAA,CACR,UAEF,CAAA,CAAA,CAAA,aACU,CAAA,CAAA,4DACC,CAAA,CAAA,KAAM,CAAA,CAAA,IAAA,CAAA,4CAGnB,CAAA,CAAA,CAAA,CAAA,eAIA,MAAO,CACLA,EAAA,CAAA,CAAA,KAAO,CAAA,CAAA,KAAA,CAAA,uBAEV,CAAA,CAAA","file":"styles.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { tv } from '@/lib/utils';\n\nexport const QueryBuilderStylesDefaults = {} as const;\n\nexport const QueryBuilderStyles = tv({\n slots: {\n queryBuilder: 'outline outline-transparent',\n ruleGroup:\n 'group col-span-full flex flex-col gap-s rounded-medium p-s outline outline-info-bold',\n header: 'flex gap-s',\n body: 'group grid gap-x-s empty:hidden',\n combinators: 'my-s',\n addRule: '',\n addGroup: '',\n cloneRule: 'fg-info-bold hover:fg-info-hover',\n cloneGroup: 'fg-info-bold hover:fg-info-hover',\n removeGroup: '',\n rule: 'flex gap-xs py-s',\n fields: 'w-full',\n operators: '',\n value: 'w-full',\n removeRule: '',\n valid: '',\n invalid: '',\n disabled: '',\n lockRule: 'fg-info-bold hover:fg-info-hover',\n lockGroup: 'fg-info-bold hover:fg-info-hover',\n valueSource: '',\n valueListItem: '',\n },\n variants: {\n variant: {\n horizontal: {\n rule: 'min-h-[50px]',\n },\n vertical: {\n rule: 'flex-col',\n },\n },\n showRuleLines: {\n true: { body: 'grid-cols-[10px_minmax(100px,_1fr)_min-content]' },\n false: { body: 'grid-cols-[minmax(100px,_1fr)_min-content]' },\n },\n },\n defaultVariants: QueryBuilderStylesDefaults,\n});\n\nexport const RuleStyles = tv({\n slots: {\n lines: 'min-h-[46px] w-[20px]',\n },\n});\n"]}
@@ -1,14 +1,5 @@
1
- import { PressEvent } from '@react-types/shared';
2
- import { MouseEvent } from 'react';
3
1
  import { RuleType, RuleValidator, ValidationResult } from 'react-querybuilder';
4
2
 
5
3
  declare const getValidationResult: (rule: RuleType, validator?: RuleValidator) => ValidationResult;
6
- /**
7
- * This is required because the design system Button supports an onPress event but
8
- * QueryBuilder provides a callback that expects a MouseEvent and will error
9
- * out if preventDefault is not available as a method.
10
- * @param event
11
- */
12
- declare const pressToMouseEvent: (event: PressEvent) => MouseEvent;
13
4
 
14
- export { getValidationResult, pressToMouseEvent };
5
+ export { getValidationResult };
@@ -1,2 +1,2 @@
1
- import {noop}from'@accelint/core';const s=(t,o)=>{if(!o)return {valid:true};const e=o(t);return typeof e=="boolean"?{valid:e}:{valid:e.valid,reasons:e.valid?[]:e.reasons}},n=t=>({...t,preventDefault:noop,stopPropagation:noop});export{s as getValidationResult,n as pressToMouseEvent};//# sourceMappingURL=utils.js.map
1
+ const a=(l,t)=>{if(!t)return {valid:true};const e=t(l);return typeof e=="boolean"?{valid:e}:{valid:e.valid,reasons:e.valid?[]:e.reasons}};export{a as getValidationResult};//# sourceMappingURL=utils.js.map
2
2
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/utils.ts"],"names":["getValidationResult","rule","validator","result","pressToMouseEvent","event","noop"],"mappings":"kCAsBO,MAAMA,EAAsB,CACjCC,CAAAA,CACAC,CAAAA,GACqB,CACrB,GAAI,CAACA,EACH,OAAO,CAAE,KAAA,CAAO,IAAK,CAAA,CAGvB,MAAMC,EAASD,CAAAA,CAAUD,CAAI,CAAA,CAE7B,OAAI,OAAOE,CAAAA,EAAW,UACb,CAAE,KAAA,CAAOA,CAAO,CAAA,CAGlB,CACL,KAAA,CAAOA,EAAO,KAAA,CACd,OAAA,CAASA,CAAAA,CAAO,KAAA,CAAQ,EAAC,CAAIA,EAAO,OACtC,CACF,CAAA,CAQaC,CAAAA,CAAqBC,CAAAA,GAC/B,CACC,GAAGA,CAAAA,CACH,cAAA,CAAgBC,IAAAA,CAChB,eAAA,CAAiBA,IACnB,CAAA","file":"utils.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { noop } from '@accelint/core';\nimport type { PressEvent } from '@react-types/shared';\nimport type { MouseEvent } from 'react';\nimport type {\n RuleType,\n RuleValidator,\n ValidationResult,\n} from 'react-querybuilder';\n\nexport const getValidationResult = (\n rule: RuleType,\n validator?: RuleValidator,\n): ValidationResult => {\n if (!validator) {\n return { valid: true };\n }\n\n const result = validator(rule);\n\n if (typeof result === 'boolean') {\n return { valid: result };\n }\n\n return {\n valid: result.valid,\n reasons: result.valid ? [] : result.reasons,\n };\n};\n\n/**\n * This is required because the design system Button supports an onPress event but\n * QueryBuilder provides a callback that expects a MouseEvent and will error\n * out if preventDefault is not available as a method.\n * @param event\n */\nexport const pressToMouseEvent = (event: PressEvent) =>\n ({\n ...event,\n preventDefault: noop,\n stopPropagation: noop,\n }) as unknown as MouseEvent;\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/utils.ts"],"names":["getValidationResult","rule","validator","result"],"mappings":"AAmBO,MAAMA,EAAsB,CACjCC,CAAAA,CACAC,CAAAA,GACqB,CACrB,GAAI,CAACA,CAAAA,CACH,OAAO,CAAE,MAAO,IAAK,CAAA,CAGvB,MAAMC,CAAAA,CAASD,EAAUD,CAAI,CAAA,CAE7B,OAAI,OAAOE,GAAW,SAAA,CACb,CAAE,KAAA,CAAOA,CAAO,EAGlB,CACL,KAAA,CAAOA,CAAAA,CAAO,KAAA,CACd,QAASA,CAAAA,CAAO,KAAA,CAAQ,EAAC,CAAIA,CAAAA,CAAO,OACtC,CACF","file":"utils.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport type {\n RuleType,\n RuleValidator,\n ValidationResult,\n} from 'react-querybuilder';\n\nexport const getValidationResult = (\n rule: RuleType,\n validator?: RuleValidator,\n): ValidationResult => {\n if (!validator) {\n return { valid: true };\n }\n\n const result = validator(rule);\n\n if (typeof result === 'boolean') {\n return { valid: result };\n }\n\n return {\n valid: result.valid,\n reasons: result.valid ? [] : result.reasons,\n };\n};\n"]}
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx,Fragment}from'react/jsx-runtime';import'client-only';import {useCallback}from'react';import {useValueEditor}from'react-querybuilder';import {Checkbox}from'../checkbox/index.js';import {Radio}from'../radio/index.js';import {Switch}from'../switch/index.js';import {TextAreaField}from'../text-area-field/index.js';import {TextField}from'../text-field/index.js';import {multiValueOperators}from'./constants.js';import {getValidationResult}from'./utils.js';import {ValueSelector}from'./value-selector.js';function k({disabled:a,fieldData:{name:e,validator:t},handleOnChange:i,rule:o,value:r}){const{valid:l}=getValidationResult(o,t);return jsx(Checkbox,{isDisabled:a,isSelected:r,onChange:i,"aria-invalid":!l,"aria-label":e})}function x({disabled:a,fieldData:{name:e,validator:t},handleOnChange:i,rule:o,value:r,values:l}){const{valid:d}=getValidationResult(o,t);return jsx(Radio.Group,{value:r,isDisabled:a,onChange:i,"aria-invalid":!d,"aria-label":e,"aria-labelledby":e,children:l?.map(n=>jsx(Radio,{value:n.value,children:n.label},n.name))})}const R=[];function S({disabled:a,fieldData:{name:e,validator:t},handleOnChange:i,rule:o,type:r,value:l,values:d=R,...n}){const{valid:c}=getValidationResult(o,t);return jsx(ValueSelector,{...n,disabled:a,multiple:r==="multiselect",options:d,title:e,validation:!c,value:l,handleOnChange:i,"aria-labelledby":e})}function T({disabled:a,fieldData:{name:e,validator:t},handleOnChange:i,rule:o,value:r}){const{valid:l}=getValidationResult(o,t);return jsx(Switch,{isDisabled:a,isSelected:!!r,onChange:i,"aria-invalid":!l,"aria-label":e,"aria-labelledby":e})}function w({disabled:a,fieldData:{name:e,placeholder:t,validator:i},handleOnChange:o,inputType:r,rule:l,value:d}){const{valid:n,reasons:c}=getValidationResult(l,i);return jsx(TextField,{inputProps:{placeholder:t,type:r??"text"},size:"small",value:d,isDisabled:a,isInvalid:!n,onChange:o,"aria-invalid":!n,"aria-label":e,"aria-labelledby":e,errorMessage:c?.join("/n")})}function I({disabled:a,fieldData:{name:e,placeholder:t,validator:i},handleOnChange:o,rule:r,value:l}){const{valid:d,reasons:n}=getValidationResult(r,i);return jsx(TextAreaField,{size:"small",errorMessage:n?.join("/n"),inputProps:{placeholder:t},value:l,isDisabled:a,isInvalid:!d,onChange:o,"aria-label":e,"aria-invalid":!d,"aria-labelledby":e})}const O={checkbox:k,radio:x,select:S,switch:T,text:w,textarea:I};function J(a){const{fieldData:{name:e,valueEditorType:t},operator:i,rule:o}=a,{valueAsArray:r,multiValueHandler:l}=useValueEditor({...a,skipHook:true}),d=useCallback(s=>({...o,value:r[s]}),[o,r]),n=useCallback(s=>l(s,0),[l]),c=useCallback(s=>l(s,1),[l]),E=(typeof t=="function"?t(i):t)??"text",f=O?.[E];return i==="null"||i==="notNull"||!f?null:multiValueOperators.includes(i)?jsx(Fragment,{children:["start","end"].map((s,m)=>jsx("div",{children:jsx(f,{...a,rule:d(m),value:r[m],handleOnChange:m?c:n})},`${e}-${s}`))}):jsx("div",{children:jsx(f,{...a})})}export{J as ValueEditor};//# sourceMappingURL=value-editor.js.map
3
+ import {jsx,Fragment}from'react/jsx-runtime';import'client-only';import {useCallback}from'react';import {useValueEditor}from'react-querybuilder';import {Checkbox}from'../checkbox/index.js';import {Radio}from'../radio/index.js';import {RadioGroup}from'../radio/group.js';import {Switch}from'../switch/index.js';import {TextAreaField}from'../text-area-field/index.js';import {TextField}from'../text-field/index.js';import {multiValueOperators}from'./constants.js';import {getValidationResult}from'./utils.js';import {ValueSelector}from'./value-selector.js';function x({disabled:a,fieldData:{name:e,validator:l},handleOnChange:i,rule:o,value:r}){const{valid:t}=getValidationResult(o,l);return jsx(Checkbox,{isDisabled:a,isSelected:r,onChange:i,"aria-invalid":!t,"aria-label":e})}function R({disabled:a,fieldData:{name:e,validator:l},handleOnChange:i,rule:o,value:r,values:t}){const{valid:d}=getValidationResult(o,l);return jsx(RadioGroup,{value:r,isDisabled:a,onChange:i,"aria-invalid":!d,"aria-label":e,"aria-labelledby":e,children:t?.map(n=>jsx(Radio,{value:n.value,children:n.label},n.name))})}const S=[];function T({disabled:a,fieldData:{name:e,validator:l},handleOnChange:i,rule:o,type:r,value:t,values:d=S,...n}){const{valid:c}=getValidationResult(o,l);return jsx(ValueSelector,{...n,disabled:a,multiple:r==="multiselect",options:d,title:e,validation:!c,value:t,handleOnChange:i,"aria-labelledby":e})}function w({disabled:a,fieldData:{name:e,validator:l},handleOnChange:i,rule:o,value:r}){const{valid:t}=getValidationResult(o,l);return jsx(Switch,{isDisabled:a,isSelected:!!r,onChange:i,"aria-invalid":!t,"aria-label":e,"aria-labelledby":e})}function I({disabled:a,fieldData:{name:e,placeholder:l,validator:i},handleOnChange:o,inputType:r,rule:t,value:d}){const{valid:n,reasons:c}=getValidationResult(t,i);return jsx(TextField,{inputProps:{placeholder:l,type:r??"text"},size:"small",value:d,isDisabled:a,isInvalid:!n,onChange:o,"aria-invalid":!n,"aria-label":e,"aria-labelledby":e,errorMessage:c?.join("/n")})}function O({disabled:a,fieldData:{name:e,placeholder:l,validator:i},handleOnChange:o,rule:r,value:t}){const{valid:d,reasons:n}=getValidationResult(r,i);return jsx(TextAreaField,{size:"small",errorMessage:n?.join("/n"),inputProps:{placeholder:l},value:t,isDisabled:a,isInvalid:!d,onChange:o,"aria-label":e,"aria-invalid":!d,"aria-labelledby":e})}const A={checkbox:x,radio:R,select:T,switch:w,text:I,textarea:O};function L(a){const{fieldData:{name:e,valueEditorType:l},operator:i,rule:o}=a,{valueAsArray:r,multiValueHandler:t}=useValueEditor({...a,skipHook:true}),d=useCallback(s=>({...o,value:r[s]}),[o,r]),n=useCallback(s=>t(s,0),[t]),c=useCallback(s=>t(s,1),[t]),b=(typeof l=="function"?l(i):l)??"text",f=A?.[b];return i==="null"||i==="notNull"||!f?null:multiValueOperators.includes(i)?jsx(Fragment,{children:["start","end"].map((s,m)=>jsx("div",{children:jsx(f,{...a,rule:d(m),value:r[m],handleOnChange:m?c:n})},`${e}-${s}`))}):jsx("div",{children:jsx(f,{...a})})}export{L as ValueEditor};//# sourceMappingURL=value-editor.js.map
4
4
  //# sourceMappingURL=value-editor.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/value-editor.tsx"],"names":["value","valid","getValidationResult","disabled","p","u","y","rule","validator","b","name","values","defaultOptions","type","jsx","h","handleOnChange","inputType","TextField","placeholder","P","TextareaValueEditor","TextAreaField","g","valueEditors","CheckboxValueEditor","SelectValueEditor","ruleProp","props","valueAsArray","useValueEditor","useCallback","index","multiValueHandler","v","valueEditorType","operator","Editor","multiValueOperators","Fragment","C","A","handleRangeStartChange","term"],"mappings":"ggBA+BE,SACA,CAAA,CAAA,CAAA,QACA,CAAA,CAAAA,CACF,SACU,CAAA,CAAA,IAAAC,CAAM,CAAA,CAAIC,2BAId,CAAA,CAAA,CAAYC,IACZ,CAAA,CAAA,CAAA,KAAA,CAAYH,CAAAA,CACZ,CAAA,CAAA,KAAA,CAAA,KACA,CAAA,CAAA,CAAA,CAAAI,mBAAA,CAAA,CAA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,CAAA,CAAA","file":"value-editor.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useCallback } from 'react';\nimport { useValueEditor, type ValueEditorProps } from 'react-querybuilder';\nimport { Checkbox } from '../checkbox';\nimport { Radio } from '../radio';\nimport { Switch } from '../switch';\nimport { TextAreaField } from '../text-area-field';\nimport { TextField } from '../text-field';\nimport { multiValueOperators } from './constants';\nimport { getValidationResult } from './utils';\nimport { ValueSelector } from './value-selector';\nimport type { InputProps } from '../input/types';\nimport type { QueryBuilderValueEditors } from './types';\n\nfunction CheckboxValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Checkbox\n isDisabled={disabled}\n isSelected={value}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n />\n );\n}\n\nfunction RadioGroupValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n values,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Radio.Group\n value={value}\n isDisabled={disabled}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n >\n {values?.map((option) => (\n <Radio key={option.name} value={option.value}>\n {option.label}\n </Radio>\n ))}\n </Radio.Group>\n );\n}\n\nconst defaultOptions: unknown[] = [];\n\nfunction SelectValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n type,\n value,\n values = defaultOptions,\n ...rest\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <ValueSelector\n {...rest}\n disabled={disabled}\n multiple={type === 'multiselect'}\n options={values}\n title={name}\n validation={!valid}\n value={value}\n handleOnChange={handleOnChange}\n aria-labelledby={name}\n />\n );\n}\n\nfunction SwitchValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Switch\n isDisabled={disabled}\n isSelected={Boolean(value)}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n />\n );\n}\n\nfunction TextValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n inputType,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextField\n inputProps={{\n placeholder,\n type: (inputType as InputProps['type']) ?? 'text',\n }}\n size='small'\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n errorMessage={reasons?.join('/n')}\n />\n );\n}\n\nfunction TextareaValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextAreaField\n size='small'\n errorMessage={reasons?.join('/n')}\n inputProps={{ placeholder }}\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-label={name}\n aria-invalid={!valid}\n aria-labelledby={name}\n />\n );\n}\n\nconst valueEditors: QueryBuilderValueEditors = {\n checkbox: CheckboxValueEditor,\n radio: RadioGroupValueEditor,\n select: SelectValueEditor,\n switch: SwitchValueEditor,\n text: TextValueEditor,\n textarea: TextareaValueEditor,\n};\n\nexport function ValueEditor(props: ValueEditorProps) {\n const {\n fieldData: { name, valueEditorType },\n operator,\n rule: ruleProp,\n } = props;\n\n const { valueAsArray, multiValueHandler } = useValueEditor({\n ...props,\n skipHook: true,\n });\n\n const rule = useCallback(\n (index: number) => ({\n ...ruleProp,\n value: valueAsArray[index],\n }),\n [ruleProp, valueAsArray],\n );\n\n const handleRangeStartChange = useCallback(\n (value: string) => multiValueHandler(value, 0),\n [multiValueHandler],\n );\n\n const handleRangeEndChange = useCallback(\n (value: string) => multiValueHandler(value, 1),\n [multiValueHandler],\n );\n\n const type =\n (typeof valueEditorType === 'function'\n ? valueEditorType(operator)\n : valueEditorType) ?? 'text';\n\n const Editor = valueEditors?.[type];\n\n if (operator === 'null' || operator === 'notNull' || !Editor) {\n return null;\n }\n\n if (multiValueOperators.includes(operator)) {\n return (\n <>\n {['start', 'end'].map((term, index) => (\n <div key={`${name}-${term}`}>\n <Editor\n {...props}\n rule={rule(index)}\n value={valueAsArray[index]}\n handleOnChange={\n index ? handleRangeEndChange : handleRangeStartChange\n }\n />\n </div>\n ))}\n </>\n );\n }\n\n return (\n <div>\n <Editor {...props} />\n </div>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/value-editor.tsx"],"names":["rule","valid","validator","jsx","Checkbox","p","u","V","value","disabled","handleOnChange","name","values","option","defaultOptions","SelectValueEditor","rest","ValueSelector","type","k","getValidationResult","Switch","g","TextValueEditor","inputType","C","reasons","placeholder","P","RadioGroupValueEditor","SwitchValueEditor","TextareaValueEditor","ValueEditor","valueEditorType","operator","props","useCallback","index","valueAsArray","multiValueHandler","Editor","valueEditors","v","multiValueOperators","Fragment","D","handleRangeEndChange","handleRangeStartChange"],"mappings":"2iBAgCE,SACA,CAAAA,CAAAA,CACA,QACF,CAAqB,CACnB,CAAA,SAAQ,CAAA,CAAAC,KAA8BD,CAAAA,CAAME,SAE5C,CACEC,CAAAA,CAACC,CAAAA,eAEC,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,KACA,CAAA,CAAA,CAAA,CAAA,CAAA,KACA,CAAA,KAA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CAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA7B,GAAA,CAAA,KAAA,CAAA,CAAA,QAAA,CAAAA,GAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"value-editor.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useCallback } from 'react';\nimport { useValueEditor, type ValueEditorProps } from 'react-querybuilder';\nimport { Checkbox } from '../checkbox';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Switch } from '../switch';\nimport { TextAreaField } from '../text-area-field';\nimport { TextField } from '../text-field';\nimport { multiValueOperators } from './constants';\nimport { getValidationResult } from './utils';\nimport { ValueSelector } from './value-selector';\nimport type { InputProps } from '../input/types';\nimport type { QueryBuilderValueEditors } from './types';\n\nfunction CheckboxValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Checkbox\n isDisabled={disabled}\n isSelected={value}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n />\n );\n}\n\nfunction RadioGroupValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n values,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <RadioGroup\n value={value}\n isDisabled={disabled}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n >\n {values?.map((option) => (\n <Radio key={option.name} value={option.value}>\n {option.label}\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n\nconst defaultOptions: unknown[] = [];\n\nfunction SelectValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n type,\n value,\n values = defaultOptions,\n ...rest\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <ValueSelector\n {...rest}\n disabled={disabled}\n multiple={type === 'multiselect'}\n options={values}\n title={name}\n validation={!valid}\n value={value}\n handleOnChange={handleOnChange}\n aria-labelledby={name}\n />\n );\n}\n\nfunction SwitchValueEditor({\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Switch\n isDisabled={disabled}\n isSelected={Boolean(value)}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n />\n );\n}\n\nfunction TextValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n inputType,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextField\n inputProps={{\n placeholder,\n type: (inputType as InputProps['type']) ?? 'text',\n }}\n size='small'\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n errorMessage={reasons?.join('/n')}\n />\n );\n}\n\nfunction TextareaValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextAreaField\n size='small'\n errorMessage={reasons?.join('/n')}\n inputProps={{ placeholder }}\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-label={name}\n aria-invalid={!valid}\n aria-labelledby={name}\n />\n );\n}\n\nconst valueEditors: QueryBuilderValueEditors = {\n checkbox: CheckboxValueEditor,\n radio: RadioGroupValueEditor,\n select: SelectValueEditor,\n switch: SwitchValueEditor,\n text: TextValueEditor,\n textarea: TextareaValueEditor,\n};\n\nexport function ValueEditor(props: ValueEditorProps) {\n const {\n fieldData: { name, valueEditorType },\n operator,\n rule: ruleProp,\n } = props;\n\n const { valueAsArray, multiValueHandler } = useValueEditor({\n ...props,\n skipHook: true,\n });\n\n const rule = useCallback(\n (index: number) => ({\n ...ruleProp,\n value: valueAsArray[index],\n }),\n [ruleProp, valueAsArray],\n );\n\n const handleRangeStartChange = useCallback(\n (value: string) => multiValueHandler(value, 0),\n [multiValueHandler],\n );\n\n const handleRangeEndChange = useCallback(\n (value: string) => multiValueHandler(value, 1),\n [multiValueHandler],\n );\n\n const type =\n (typeof valueEditorType === 'function'\n ? valueEditorType(operator)\n : valueEditorType) ?? 'text';\n\n const Editor = valueEditors?.[type];\n\n if (operator === 'null' || operator === 'notNull' || !Editor) {\n return null;\n }\n\n if (multiValueOperators.includes(operator)) {\n return (\n <>\n {['start', 'end'].map((term, index) => (\n <div key={`${name}-${term}`}>\n <Editor\n {...props}\n rule={rule(index)}\n value={valueAsArray[index]}\n handleOnChange={\n index ? handleRangeEndChange : handleRangeStartChange\n }\n />\n </div>\n ))}\n </>\n );\n }\n\n return (\n <div>\n <Editor {...props} />\n </div>\n );\n}\n"]}
@@ -1,2 +1,4 @@
1
- import {jsx}from'react/jsx-runtime';import'client-only';import {useCallback,useMemo}from'react';import {useValueSelector,isOptionGroupArray}from'react-querybuilder';import {ComboBoxField}from'../combobox-field/index.js';import {Options}from'../options/index.js';function K(s){const{handleOnChange:n,disabled:m,listsAsArrays:p,options:l,multiple:d,title:u,validation:V,value:y,...c}=s,{onChange:i,val:o}=useValueSelector({handleOnChange:n,listsAsArrays:p,multiple:d,value:y}),b=useCallback(e=>{e&&i(`${e}`);},[i]),h=useMemo(()=>isOptionGroupArray(l)?l.map(e=>jsx(Options.Section,{header:e.label,children:e.options.map(t=>jsx(Options.Item,{id:t.name,children:t.label},t.name))},e.label)):l.map(e=>jsx(Options.Item,{textValue:e.label,id:e.name,children:e.label},e.name)),[l]);return jsx(ComboBoxField,{size:"small",isDisabled:m,...c,selectedKey:Array.isArray(o)?o[0]:o,"aria-labelledby":u,onSelectionChange:b,children:h})}export{K as ValueSelector};//# sourceMappingURL=value-selector.js.map
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useCallback,useMemo}from'react';import {useValueSelector,isOptionGroupArray}from'react-querybuilder';import {ComboBoxField}from'../combobox-field/index.js';import {OptionsItem}from'../options/item.js';import {OptionsSection}from'../options/section.js';function B(s){const{handleOnChange:n,disabled:m,listsAsArrays:p,options:l,multiple:d,title:u,validation:g,value:y,...c}=s,{onChange:r,val:a}=useValueSelector({handleOnChange:n,listsAsArrays:p,multiple:d,value:y}),b=useCallback(e=>{e&&r(`${e}`);},[r]),f=useMemo(()=>isOptionGroupArray(l)?l.map(e=>jsx(OptionsSection,{header:e.label,children:e.options.map(t=>jsx(OptionsItem,{id:t.name,children:t.label},t.name))},e.label)):l.map(e=>jsx(OptionsItem,{textValue:e.label,id:e.name,children:e.label},e.name)),[l]);return jsx(ComboBoxField,{size:"small",isDisabled:m,...c,selectedKey:Array.isArray(a)?a[0]:a,"aria-labelledby":u,onSelectionChange:b,children:f})}export{B as ValueSelector};//# sourceMappingURL=value-selector.js.map
2
4
  //# sourceMappingURL=value-selector.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/value-selector.tsx"],"names":["multiple","title","validation","value","onChange","val","useValueSelector","handleOnChange","O","selection","S","options","useMemo","isOptionGroupArray","optionsProp","section","jsx","Options","C","r","option","a","A","disabled","handleSelectionChange"],"mappings":"sQA2BI,SAAA,CAAA,CAAA,CAAA,CAAA,CAAA,oBAEA,CAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,eACAA,C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AAA,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiBtB,CAAAA,CACjB,kBAAmBuB,CAAAA,CAElB,iBAGP,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA","file":"value-selector.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { useCallback, useMemo } from 'react';\nimport {\n isOptionGroupArray,\n useValueSelector,\n type ValueSelectorProps,\n} from 'react-querybuilder';\nimport { ComboBoxField } from '../combobox-field';\nimport { Options } from '../options';\nimport type { Key } from '@react-types/shared';\n\nexport function ValueSelector(props: ValueSelectorProps) {\n const {\n handleOnChange,\n disabled,\n listsAsArrays,\n options: optionsProp,\n multiple,\n title,\n validation,\n value,\n ...rest\n } = props;\n\n const { onChange, val } = useValueSelector({\n handleOnChange,\n listsAsArrays,\n multiple,\n value,\n });\n\n const handleSelectionChange = useCallback(\n (selection: Key | null) => {\n if (selection) {\n onChange(`${selection}`);\n }\n },\n [onChange],\n );\n\n const options = useMemo(\n () =>\n isOptionGroupArray(optionsProp)\n ? optionsProp.map((section) => (\n <Options.Section key={section.label} header={section.label}>\n {section.options.map((option) => (\n <Options.Item id={option.name} key={option.name}>\n {option.label}\n </Options.Item>\n ))}\n </Options.Section>\n ))\n : optionsProp.map((option) => (\n <Options.Item\n textValue={option.label}\n id={option.name}\n key={option.name}\n >\n {option.label}\n </Options.Item>\n )),\n [optionsProp],\n );\n\n return (\n <ComboBoxField\n size='small'\n isDisabled={disabled}\n {...rest}\n selectedKey={Array.isArray(val) ? val[0] : val}\n aria-labelledby={title}\n onSelectionChange={handleSelectionChange}\n >\n {options}\n </ComboBoxField>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/value-selector.tsx"],"names":["title","props","onChange","val","useValueSelector","handleOnChange","listsAsArrays","value","selection","h","options","useMemo","isOptionGroupArray","optionsProp","section","jsx","C","o","V","OptionsItem","option","A","rest","handleSelectionChange"],"mappings":"4TA2BE,SACE,CAAA,CAAA,CAAA,CAAA,CAAA,KACA,eACA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,aACA,CAAA,CAAA,CAAA,SACAA,CAAAA,QACA,CAAA,CAAA,CAAA,KACA,CAAA,CAAA,CAAA,UAEEC,CAEE,CAAE,SAAAC,GAAU,CAAA,CAAA,CAAAC,CAAI,CAAA,CAAIC,QACxB,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,CAAA,CAAAC,gBAAAA,CACA,CAAA,cAAAC,CACA,eACA,CAAA,CAAAC,CACF,QAGGC,CAAAA,CAA0B,CACrBA,KACO,CAAA,CAAA,CAAGA,CAAS,EAAE,CAE3BC,WAAA,CACA,CAACP,EACH,CAAA,CAEMQ,EAAUC,EACd,CAAA,EAAA,CACEC,CAAAA,CAAmBC,EAAW,CAAA,CAC1BA,CAAAA,CAAY,IAAKC,CAAAA,OAAAA,CACfC,IAACC,kBAAmC,SAAgB,CAAA,CAAA,EAAAC,GAAA,CACjDC,sBAAAJ,CAAAA,CAAQ,CAAA,KAAA,CAAA,QACPC,CAAAA,CAACI,CAAAA,OAAuB,CAAA,GAAA,CACrB,sBAAAC,CAAO,CAAA,CAAA,IAAA,CADyBA,QAGpC,CAAA,CALkBN,CAAAA,MAMrB,CACD,CAAA,CACDD,IAAY,CAAA,CAAKO,CAAAA,CAAAA,CACfL,MACE,CAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAWK,CAAAA,mBACX,UAGC,CAAA,CAAA,KAAA,CAAA,EAAAA,CAAO,OAFHA,QAIR,CACP,CAACP,CAAW,KAGd,CAAA,CAAA,CAAA,CAAA,KACG,CACC,CAAA,CAAA,CAAA,CAAA,CAAK,CAAA,OACLI,GAAA,CAAAI,aAAA,CAAA,CAAA,IAAA,CAAA,OACIC,CACJ,YAAa,CAAA,GAAA,CAAA,CAAM,WAAenB,CAAAA,MAClC,OAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAiBH,oBACEuB,iBAKzB,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA","file":"value-selector.js","sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { Key } from '@react-types/shared';\nimport 'client-only';\nimport { useCallback, useMemo } from 'react';\nimport {\n isOptionGroupArray,\n useValueSelector,\n type ValueSelectorProps,\n} from 'react-querybuilder';\nimport { ComboBoxField } from '../combobox-field';\nimport { OptionsItem } from '../options/item';\nimport { OptionsSection } from '../options/section';\n\nexport function ValueSelector(props: ValueSelectorProps) {\n const {\n handleOnChange,\n disabled,\n listsAsArrays,\n options: optionsProp,\n multiple,\n title,\n validation,\n value,\n ...rest\n } = props;\n\n const { onChange, val } = useValueSelector({\n handleOnChange,\n listsAsArrays,\n multiple,\n value,\n });\n\n const handleSelectionChange = useCallback(\n (selection: Key | null) => {\n if (selection) {\n onChange(`${selection}`);\n }\n },\n [onChange],\n );\n\n const options = useMemo(\n () =>\n isOptionGroupArray(optionsProp)\n ? optionsProp.map((section) => (\n <OptionsSection key={section.label} header={section.label}>\n {section.options.map((option) => (\n <OptionsItem id={option.name} key={option.name}>\n {option.label}\n </OptionsItem>\n ))}\n </OptionsSection>\n ))\n : optionsProp.map((option) => (\n <OptionsItem\n textValue={option.label}\n id={option.name}\n key={option.name}\n >\n {option.label}\n </OptionsItem>\n )),\n [optionsProp],\n );\n\n return (\n <ComboBoxField\n size='small'\n isDisabled={disabled}\n {...rest}\n selectedKey={Array.isArray(val) ? val[0] : val}\n aria-labelledby={title}\n onSelectionChange={handleSelectionChange}\n >\n {options}\n </ComboBoxField>\n );\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import * as react from 'react';
2
+ import { ContextValue } from 'react-aria-components';
3
+ import { RadioGroupProps } from './types.js';
4
+ import '../label/types.js';
5
+
6
+ /**
7
+ * Context for RadioGroup component
8
+ *
9
+ * Provides context for RadioGroup component to share state with Radio components
10
+ */
11
+ declare const RadioContext: react.Context<ContextValue<RadioGroupProps, HTMLDivElement>>;
12
+
13
+ export { RadioContext };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import'client-only';import {createContext}from'react';const r=createContext(null);export{r as RadioContext};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/radio/context.tsx"],"names":["RadioContext","createContext"],"mappings":"sDAuBO,MAAMA,CAAAA,CACXC,cAA6D,IAAI","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { RadioGroupProps } from './types';\n\n/**\n * Context for RadioGroup component\n *\n * Provides context for RadioGroup component to share state with Radio components\n */\nexport const RadioContext =\n createContext<ContextValue<RadioGroupProps, HTMLDivElement>>(null);\n"]}
@@ -0,0 +1,15 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { RadioGroupProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+ import '../label/types.js';
6
+
7
+ /**
8
+ * RadioGroup - Container component for Radio buttons
9
+ *
10
+ * Groups related Radio components and manages their selection state.
11
+ * Only one Radio can be selected at a time within a RadioGroup.
12
+ */
13
+ declare function RadioGroup({ ref, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
14
+
15
+ export { RadioGroup };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {useContextProps,RadioGroup,composeRenderProps}from'react-aria-components';import {Label}from'../label/index.js';import {RadioContext}from'./context.js';import {RadioStyles}from'./styles.js';const{group:G,groupLabel:f}=RadioStyles();function C({ref:o,...r}){[r,o]=useContextProps(r,o??null,RadioContext);const{children:t,classNames:e,label:i,...l}=r;return jsx(RadioGroup,{...l,ref:o,className:composeRenderProps(e?.group,a=>G({className:a})),children:composeRenderProps(t,(a,{isDisabled:m,isRequired:u})=>jsxs(Fragment,{children:[i&&jsx(Label,{className:f({className:e?.label}),isDisabled:m,isRequired:u,children:i}),a]}))})}export{C as RadioGroup};//# sourceMappingURL=group.js.map
4
+ //# sourceMappingURL=group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/radio/group.tsx"],"names":["RadioStyles","RadioGroup","b","ref","props","RadioContext","n","children","jsx","AriaRadioGroup","rest","p","d","composeRenderProps","classNames","s","isDisabled","jsxs","Fragment","label","Label","groupLabel","R"],"mappings":"4QAwBe,KAAA,CAAA,KAAeA,CAAY,CAAA,CAQnC,UAASC,CAAW,CAAE,CAAA,CAAAC,WAAA,EAAAC,CAAK,SAC/BC,CAAOD,CAAG,CAAA,GAAoBC,CAAAA,CAAOD,CAAAA,GAAO,CAAA,CAAA,CAAA,CAAME,CAAY,CAAA,CAE/D,CAAA,CAAA,CAAAC,eAAA,CAAM,CAAE,CAAA,CAAA,EAAA,IAAA,CAAAC,YAAAA,CAAU,CAAA,KAAA,CAAA,QAAY,CAAA,CAAA,CAAA,UAAmBH,CAEjD,CAAA,CAAA,KACEI,CAAAA,CAACC,CAAAA,GACE,CAAA,CAAGC,CAAAA,CACJ,CAAA,OACAC,GAAA,CAAAC,UAAA,CAAA,CAAA,GAAWC,CAAAA,CAAmBC,GAAY,CAAA,CAAA,CAAA,SAChC,CAAAC,kBAAA,CAAA,CAAA,EAAA,KAAU,CAAC,CACrB,EAEC,CAAA,CAAA,CAAA,SAAmBR,CAAU,CAACA,CAAAA,CAAU,CAAE,CAAA,QAAA,CAAAQ,kBAAAC,CAAAA,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,UAAW,CAChEC,CAAAA,CAAAC,UACG,CAAA,CAAA,CAAAC,GACCX,IAAAA,CAACY,QAAAA,CAAA,CACC,QAAA,CAAA,CAAWC,CAAAA,EAAaV,GAAA,CAAAW,KAAA,CAAA,CAAA,SAAuB,CAAA,CAAA,CAAA,CAAM,SACrD,CAAA,CAAA,EAAA,KACA,CAAA,CAAA,CAAA,UAEC,CAAA,CAAA,CAAA,UAGJf,CACH,CACD,SAGP,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"group.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport {\n RadioGroup as AriaRadioGroup,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { Label } from '../label';\nimport { RadioContext } from './context';\nimport { RadioStyles } from './styles';\nimport type { RadioGroupProps } from './types';\n\nconst { group, groupLabel } = RadioStyles();\n\n/**\n * RadioGroup - Container component for Radio buttons\n *\n * Groups related Radio components and manages their selection state.\n * Only one Radio can be selected at a time within a RadioGroup.\n */\nexport function RadioGroup({ ref, ...props }: RadioGroupProps) {\n [props, ref] = useContextProps(props, ref ?? null, RadioContext);\n\n const { children, classNames, label, ...rest } = props;\n\n return (\n <AriaRadioGroup\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.group, (className) =>\n group({ className }),\n )}\n >\n {composeRenderProps(children, (children, { isDisabled, isRequired }) => (\n <>\n {label && (\n <Label\n className={groupLabel({ className: classNames?.label })}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {label}\n </Label>\n )}\n {children}\n </>\n ))}\n </AriaRadioGroup>\n );\n}\n"]}
@@ -1,14 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ContextValue } from 'react-aria-components';
4
- import { RadioProps, RadioGroupProps } from './types.js';
2
+ import { RadioProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
5
  import '../label/types.js';
6
6
 
7
- declare const RadioContext: react.Context<ContextValue<RadioGroupProps, HTMLDivElement>>;
8
- declare function RadioGroup({ ref, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
9
- declare namespace RadioGroup {
10
- var displayName: string;
11
- }
12
7
  /**
13
8
  * Radio - A form control for exclusive selection within a group of options
14
9
  *
@@ -18,32 +13,28 @@ declare namespace RadioGroup {
18
13
  *
19
14
  * @example
20
15
  * // Basic radio group
21
- * <Radio.Group label="Choose size">
16
+ * <RadioGroup label="Choose size">
22
17
  * <Radio value="small">Small</Radio>
23
18
  * <Radio value="medium">Medium</Radio>
24
19
  * <Radio value="large">Large</Radio>
25
- * </Radio.Group>
20
+ * </RadioGroup>
26
21
  *
27
22
  * @example
28
23
  * // Radio group with default selection
29
- * <Radio.Group defaultValue="medium" label="Size preference">
24
+ * <RadioGroup defaultValue="medium" label="Size preference">
30
25
  * <Radio value="small">Small (S)</Radio>
31
26
  * <Radio value="medium">Medium (M)</Radio>
32
27
  * <Radio value="large">Large (L)</Radio>
33
- * </Radio.Group>
28
+ * </RadioGroup>
34
29
  *
35
30
  * @example
36
31
  * // Disabled radio options
37
- * <Radio.Group label="Shipping options">
32
+ * <RadioGroup label="Shipping options">
38
33
  * <Radio value="standard">Standard shipping</Radio>
39
34
  * <Radio value="express">Express shipping</Radio>
40
35
  * <Radio value="overnight" isDisabled>Overnight (unavailable)</Radio>
41
- * </Radio.Group>
36
+ * </RadioGroup>
42
37
  */
43
38
  declare function Radio({ classNames, children, ...rest }: RadioProps): react_jsx_runtime.JSX.Element;
44
- declare namespace Radio {
45
- var displayName: string;
46
- var Group: typeof RadioGroup;
47
- }
48
39
 
49
- export { Radio, RadioContext };
40
+ export { Radio };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {createContext}from'react';import {Radio,composeRenderProps,useContextProps,RadioGroup}from'react-aria-components';import {Label}from'../label/index.js';import {RadioStyles}from'./styles.js';const {group:y,groupLabel:C,radio:A,control:L,label:g}=RadioStyles(),D=createContext(null);function p({ref:o,...r}){[r,o]=useContextProps(r,o??null,D);const{children:s,classNames:a,label:t,...m}=r;return jsx(RadioGroup,{...m,ref:o,className:composeRenderProps(a?.group,l=>y({className:l})),children:composeRenderProps(s,(l,{isDisabled:R,isRequired:c})=>jsxs(Fragment,{children:[t&&jsx(Label,{className:C({className:a?.label}),isDisabled:R,isRequired:c,children:t}),l]}))})}p.displayName="Radio.Group";function d({classNames:o,children:r,...s}){return jsx(Radio,{...s,className:composeRenderProps(o?.radio,a=>A({className:a})),children:composeRenderProps(r,a=>jsxs(Fragment,{children:[jsx("span",{className:L({className:o?.control})}),jsx("span",{className:g({className:o?.label}),children:a})]}))})}d.displayName="Radio",d.Group=p;export{d as Radio,D as RadioContext};//# sourceMappingURL=index.js.map
3
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {Radio,composeRenderProps}from'react-aria-components';import {RadioStyles}from'./styles.js';const{radio:l,control:d,label:m}=RadioStyles();function N({classNames:o,children:s,...p}){return jsx(Radio,{...p,className:composeRenderProps(o?.radio,a=>l({className:a})),children:composeRenderProps(s,a=>jsxs(Fragment,{children:[jsx("span",{className:d({className:o?.control})}),jsx("span",{className:m({className:o?.label}),children:a})]}))})}export{N as Radio};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/radio/index.tsx"],"names":["groupLabel","RadioContext","x","G","props","useContextProps","ref","P","classNames","rest","AriaRadioGroup","b","composeRenderProps","className","group","children","i","isDisabled","isRequired","u","label","jsx","e","RadioGroup","AriaRadio","radio"],"mappings":"4QA0Be,MAAA,CAAA,KAAAA,CAAAA,CAAY,CAAA,UAAO,CAAA,CAAA,CAAA,KAAS,CAAA,CAAA,CAAA,OAAsB,EAEpDC,CAAAA,KACkD,CAAA,CAAI,CAAA,CAEnEC,WAAA,EAAA,CAAA,CAAA,CAAAC,aAAA,CAAA,IAAsB,EAAA,SAAc,CAAoB,CACtD,CAACC,GAAU,CAAA,CAAIC,CAAAA,GAAuBC,GAAO,CAAA,CAAA,CAAA,CAAA,CAAML,CAAY,CAAAM,eAE/D,CAAA,CAAA,CAAA,CAAA,EAAQ,IAAA,CAAA,CAAA,CAAA,CAAA,KAAU,CAAA,QAAAC,CAAAA,CAAY,CAAA,UAAUC,CAAK,EAAIL,KAEjD,CAAA,CAAA,CAAA,GACGM,CAA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,CAAA,CAAA,CACF,QAKF,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAc,CAAA,CAAA,WACd,CAAA,OAAQe,CAAAA,CAAAA,CAAAA,KAAAA,CAAAA,CAAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport {\n Radio as AriaRadio,\n RadioGroup as AriaRadioGroup,\n type ContextValue,\n composeRenderProps,\n useContextProps,\n} from 'react-aria-components';\nimport { Label } from '../label';\nimport { RadioStyles } from './styles';\nimport type { RadioGroupProps, RadioProps } from './types';\n\nconst { group, groupLabel, radio, control, label } = RadioStyles();\n\nexport const RadioContext =\n createContext<ContextValue<RadioGroupProps, HTMLDivElement>>(null);\n\nfunction RadioGroup({ ref, ...props }: RadioGroupProps) {\n [props, ref] = useContextProps(props, ref ?? null, RadioContext);\n\n const { children, classNames, label, ...rest } = props;\n\n return (\n <AriaRadioGroup\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.group, (className) =>\n group({ className }),\n )}\n >\n {composeRenderProps(children, (children, { isDisabled, isRequired }) => (\n <>\n {label && (\n <Label\n className={groupLabel({ className: classNames?.label })}\n isDisabled={isDisabled}\n isRequired={isRequired}\n >\n {label}\n </Label>\n )}\n {children}\n </>\n ))}\n </AriaRadioGroup>\n );\n}\nRadioGroup.displayName = 'Radio.Group';\n\n/**\n * Radio - A form control for exclusive selection within a group of options\n *\n * Provides accessible radio button functionality where only one option can be\n * selected at a time within a group. Includes proper labeling, keyboard navigation,\n * and visual feedback for selection states.\n *\n * @example\n * // Basic radio group\n * <Radio.Group label=\"Choose size\">\n * <Radio value=\"small\">Small</Radio>\n * <Radio value=\"medium\">Medium</Radio>\n * <Radio value=\"large\">Large</Radio>\n * </Radio.Group>\n *\n * @example\n * // Radio group with default selection\n * <Radio.Group defaultValue=\"medium\" label=\"Size preference\">\n * <Radio value=\"small\">Small (S)</Radio>\n * <Radio value=\"medium\">Medium (M)</Radio>\n * <Radio value=\"large\">Large (L)</Radio>\n * </Radio.Group>\n *\n * @example\n * // Disabled radio options\n * <Radio.Group label=\"Shipping options\">\n * <Radio value=\"standard\">Standard shipping</Radio>\n * <Radio value=\"express\">Express shipping</Radio>\n * <Radio value=\"overnight\" isDisabled>Overnight (unavailable)</Radio>\n * </Radio.Group>\n */\nexport function Radio({ classNames, children, ...rest }: RadioProps) {\n return (\n <AriaRadio\n {...rest}\n className={composeRenderProps(classNames?.radio, (className) =>\n radio({ className }),\n )}\n >\n {composeRenderProps(children, (children) => (\n <>\n <span className={control({ className: classNames?.control })} />\n <span className={label({ className: classNames?.label })}>\n {children}\n </span>\n </>\n ))}\n </AriaRadio>\n );\n}\nRadio.displayName = 'Radio';\nRadio.Group = RadioGroup;\n"]}
1
+ {"version":3,"sources":["../../../src/components/radio/index.tsx"],"names":["RadioStyles","t","rest","r","e","classNames","radio","children","jsxs","Fragment","c","n","jsx"],"mappings":"yKAkBA,KAAQ,CAAA,eAAgB,CAAA,CAAA,CAAA,KAAUA,CAAAA,CAAY,EAiCvCC,WAAA,EAAA,CAAA,SAAiB,CAAA,CAAA,CAAA,qBAAsB,CAAA,CAAGC,CAAK,GACpD,WACGC,GACE,CAAAC,KAAA,CAAGF,CAAAA,cAC0BG,CAAAA,kBAAY,SACxCC,CAAAA,CAAM,EAAE,CAAA,CAAA,CAAA,SACV,CAAA,CAEC,YAAmBC,CAAWA,oBAC7BC,CAAAA,CAAAC,EAAAC,IACE,CAAAC,QAAA,CAAA,CAAA,QAAC,YAAK,CAAA,CAAA,SAAqB,CAAA,CAAA,CAAA,CAAA,SAAuB,YAClDC,CAAAA,CAAC,CAAA,CAAAT,GAAA,CAAA,iBAAwB,aAAuB,CAAA,CAAA,EAAA,KAC7C,CAAA,CAAA,CAAA,QACH,CAAA,CACF,CACD,EACH,CAEJ,CAAA,CAAA,CAAA,CAAA","file":"index.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { Radio as AriaRadio, composeRenderProps } from 'react-aria-components';\nimport { RadioStyles } from './styles';\nimport type { RadioProps } from './types';\n\nconst { radio, control, label } = RadioStyles();\n\n/**\n * Radio - A form control for exclusive selection within a group of options\n *\n * Provides accessible radio button functionality where only one option can be\n * selected at a time within a group. Includes proper labeling, keyboard navigation,\n * and visual feedback for selection states.\n *\n * @example\n * // Basic radio group\n * <RadioGroup label=\"Choose size\">\n * <Radio value=\"small\">Small</Radio>\n * <Radio value=\"medium\">Medium</Radio>\n * <Radio value=\"large\">Large</Radio>\n * </RadioGroup>\n *\n * @example\n * // Radio group with default selection\n * <RadioGroup defaultValue=\"medium\" label=\"Size preference\">\n * <Radio value=\"small\">Small (S)</Radio>\n * <Radio value=\"medium\">Medium (M)</Radio>\n * <Radio value=\"large\">Large (L)</Radio>\n * </RadioGroup>\n *\n * @example\n * // Disabled radio options\n * <RadioGroup label=\"Shipping options\">\n * <Radio value=\"standard\">Standard shipping</Radio>\n * <Radio value=\"express\">Express shipping</Radio>\n * <Radio value=\"overnight\" isDisabled>Overnight (unavailable)</Radio>\n * </RadioGroup>\n */\nexport function Radio({ classNames, children, ...rest }: RadioProps) {\n return (\n <AriaRadio\n {...rest}\n className={composeRenderProps(classNames?.radio, (className) =>\n radio({ className }),\n )}\n >\n {composeRenderProps(children, (children) => (\n <>\n <span className={control({ className: classNames?.control })} />\n <span className={label({ className: classNames?.label })}>\n {children}\n </span>\n </>\n ))}\n </AriaRadio>\n );\n}\n"]}
@@ -1,2 +1,2 @@
1
- import {tv}from'./../../lib/utils.js';const r=tv({slots:{group:["group/radio-group flex gap-xs","orientation-horizontal:flex-wrap","orientation-vertical:flex-col"],groupLabel:"w-full",radio:["group/radio flex cursor-pointer items-center gap-m group-orientation-horizontal/radio-group:grow group-orientation-horizontal/radio-group:basis-1/3","disabled:cursor-not-allowed"],control:["my-xxs flex size-l items-center justify-center rounded-full outline outline-interactive before:block before:size-s before:rounded-full","group-enabled/radio:group-focus-visible/radio:outline-interactive-hover","group-enabled/radio:group-hover/radio:outline-interactive-hover","group-enabled/radio:group-selected/radio:outline-accent-primary-bold group-enabled/radio:group-selected/radio:before:bg-accent-primary-bold","group-enabled/radio:group-selected/radio:group-focus-visible/radio:outline-interactive-hover","group-enabled/radio:group-selected/radio:group-hover/radio:outline-interactive-hover","group-disabled/radio:outline-interactive-disabled","group-disabled/radio:group-selected/radio:before:bg-interactive-disabled"],label:["fg-primary-bold text-body-s","group-disabled/radio:fg-disabled"]}});export{r as RadioStyles};//# sourceMappingURL=styles.js.map
1
+ import {tv}from'./../../lib/utils.js';const r=tv({slots:{group:["group/radio-group flex gap-xs","orientation-horizontal:flex-wrap","orientation-vertical:flex-col"],groupLabel:"w-full",radio:["group/radio flex cursor-pointer items-center gap-m group-orientation-horizontal/radio-group:grow group-orientation-horizontal/radio-group:basis-1/3","disabled:cursor-not-allowed"],control:["my-xxs flex size-l items-center justify-center rounded-full outline-2 outline-interactive before:block before:size-s before:rounded-full","group-enabled/radio:group-focus-visible/radio:outline-interactive-hover","group-enabled/radio:group-hover/radio:outline-interactive-hover","group-enabled/radio:group-pressed/radio:outline-interactive-pressed","group-enabled/radio:group-selected/radio:outline-1 group-enabled/radio:group-selected/radio:outline-accent-primary-bold group-enabled/radio:group-selected/radio:before:[background-color:var(--fg-accent-primary-bold)]","group-enabled/radio:group-selected/radio:group-focus-visible/radio:outline-accent-primary-hover group-enabled/radio:group-selected/radio:group-focus-visible/radio:before:[background-color:var(--fg-accent-primary-hover)]","group-enabled/radio:group-selected/radio:group-hover/radio:outline-interactive-hover group-enabled/radio:group-selected/radio:group-hover/radio:before:[background-color:var(--fg-accent-primary-hover)]","group-enabled/radio:group-selected/radio:group-pressed/radio:outline-2 group-enabled/radio:group-selected/radio:group-pressed/radio:outline-info-pressed group-enabled/radio:group-selected/radio:group-pressed/radio:before:[background-color:var(--fg-accent-primary-pressed)]","group-disabled/radio:outline-interactive-disabled","group-disabled/radio:group-selected/radio:before:bg-interactive-disabled"],label:["fg-primary-bold text-body-s","group-disabled/radio:fg-disabled"]}});export{r as RadioStyles};//# sourceMappingURL=styles.js.map
2
2
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/radio/styles.ts"],"names":["o"],"mappings":"sCAeE,MAAA,CAAO,CACLA,EAAA,CAAA,CAAA,KACE,CAAA,CAAA,KAAA,CAAA,CAAA,+BACA,CAAA,kEAGF,CAAA,CAAA,UACA,CAAA,QACE,CAAA,KAAA,CAAA,CAAA,qJACA,CAAA,6BAEO,CACP,kJACA,CAAA,yEACA,CAAA,+MAEA,CAAA,8FACA,CAAA,sFACA,CAAA,mDACA,CAAA,gHAEqC,CAAA,kCAE1C,CAAA,CAAA,CAAA","file":"styles.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { tv } from '@/lib/utils';\n\nexport const RadioStyles = tv({\n slots: {\n group: [\n 'group/radio-group flex gap-xs',\n 'orientation-horizontal:flex-wrap',\n 'orientation-vertical:flex-col',\n ],\n groupLabel: 'w-full',\n radio: [\n 'group/radio flex cursor-pointer items-center gap-m group-orientation-horizontal/radio-group:grow group-orientation-horizontal/radio-group:basis-1/3',\n 'disabled:cursor-not-allowed',\n ],\n control: [\n 'my-xxs flex size-l items-center justify-center rounded-full outline outline-interactive before:block before:size-s before:rounded-full',\n 'group-enabled/radio:group-focus-visible/radio:outline-interactive-hover',\n 'group-enabled/radio:group-hover/radio:outline-interactive-hover',\n 'group-enabled/radio:group-selected/radio:outline-accent-primary-bold group-enabled/radio:group-selected/radio:before:bg-accent-primary-bold',\n 'group-enabled/radio:group-selected/radio:group-focus-visible/radio:outline-interactive-hover',\n 'group-enabled/radio:group-selected/radio:group-hover/radio:outline-interactive-hover',\n 'group-disabled/radio:outline-interactive-disabled',\n 'group-disabled/radio:group-selected/radio:before:bg-interactive-disabled',\n ],\n label: ['fg-primary-bold text-body-s', 'group-disabled/radio:fg-disabled'],\n },\n});\n"]}
1
+ {"version":3,"sources":["../../../src/components/radio/styles.ts"],"names":["e"],"mappings":"sCAeE,MAAA,CAAO,CACLA,EAAA,CAAA,CAAA,6CAEE,CAAA,kCACA,CAAA,+BAEF,CAAA,CAAA,UACA,SACE,CAAA,KAAA,CAAA,CAAA,qJACA,CAAA,6BAEO,CACP,CAAA,OAAA,CAAA,CAAA,oNAEA,CAAA,iEACA,CAAA,gSAEA,CAAA,6NACA,CAAA,6dAEA,CAAA,mDACA,CAAA,gHAEqC,CAAA,kCAE1C,CAAA,CAAA,CAAA","file":"styles.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { tv } from '@/lib/utils';\n\nexport const RadioStyles = tv({\n slots: {\n group: [\n 'group/radio-group flex gap-xs',\n 'orientation-horizontal:flex-wrap',\n 'orientation-vertical:flex-col',\n ],\n groupLabel: 'w-full',\n radio: [\n 'group/radio flex cursor-pointer items-center gap-m group-orientation-horizontal/radio-group:grow group-orientation-horizontal/radio-group:basis-1/3',\n 'disabled:cursor-not-allowed',\n ],\n control: [\n 'my-xxs flex size-l items-center justify-center rounded-full outline-2 outline-interactive before:block before:size-s before:rounded-full',\n 'group-enabled/radio:group-focus-visible/radio:outline-interactive-hover',\n 'group-enabled/radio:group-hover/radio:outline-interactive-hover',\n 'group-enabled/radio:group-pressed/radio:outline-interactive-pressed',\n 'group-enabled/radio:group-selected/radio:outline-1 group-enabled/radio:group-selected/radio:outline-accent-primary-bold group-enabled/radio:group-selected/radio:before:[background-color:var(--fg-accent-primary-bold)]',\n 'group-enabled/radio:group-selected/radio:group-focus-visible/radio:outline-accent-primary-hover group-enabled/radio:group-selected/radio:group-focus-visible/radio:before:[background-color:var(--fg-accent-primary-hover)]',\n 'group-enabled/radio:group-selected/radio:group-hover/radio:outline-interactive-hover group-enabled/radio:group-selected/radio:group-hover/radio:before:[background-color:var(--fg-accent-primary-hover)]',\n 'group-enabled/radio:group-selected/radio:group-pressed/radio:outline-2 group-enabled/radio:group-selected/radio:group-pressed/radio:outline-info-pressed group-enabled/radio:group-selected/radio:group-pressed/radio:before:[background-color:var(--fg-accent-primary-pressed)]',\n 'group-disabled/radio:outline-interactive-disabled',\n 'group-disabled/radio:group-selected/radio:before:bg-interactive-disabled',\n ],\n label: ['fg-primary-bold text-body-s', 'group-disabled/radio:fg-disabled'],\n },\n});\n"]}
@@ -1,5 +1,5 @@
1
1
  import { RefAttributes } from 'react';
2
- import { RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1 } from 'react-aria-components';
2
+ import { RadioGroupProps as RadioGroupProps$1, RadioProps as RadioProps$1 } from 'react-aria-components';
3
3
  import { LabelProps } from '../label/types.js';
4
4
 
5
5
  type RadioGroupProps = Omit<RadioGroupProps$1, 'className'> & RefAttributes<HTMLDivElement> & {
@@ -0,0 +1,26 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as react from 'react';
3
+ import { ContextValue } from 'react-aria-components';
4
+ import { ProviderProps } from '../../lib/types.js';
5
+ import { SearchFieldProps } from './types.js';
6
+ import 'tailwind-variants';
7
+ import '../button/types.js';
8
+ import '../button/styles.js';
9
+ import 'tailwind-merge';
10
+ import '../icon/types.js';
11
+ import './styles.js';
12
+
13
+ /**
14
+ * Context for SearchField component
15
+ *
16
+ * Provides context for SearchField component to share props
17
+ */
18
+ declare const SearchFieldContext: react.Context<ContextValue<SearchFieldProps, HTMLDivElement>>;
19
+ /**
20
+ * Provider for SearchField component
21
+ *
22
+ * Allows setting default props for all SearchField components within
23
+ */
24
+ declare function SearchFieldProvider({ children, ...props }: ProviderProps<SearchFieldProps>): react_jsx_runtime.JSX.Element;
25
+
26
+ export { SearchFieldContext, SearchFieldProvider };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {createContext}from'react';const t=createContext(null);function n({children:e,...r}){return jsx(t.Provider,{value:r,children:e})}export{t as SearchFieldContext,n as SearchFieldProvider};//# sourceMappingURL=context.js.map
4
+ //# sourceMappingURL=context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/search-field/context.tsx"],"names":["SearchFieldContext","createContext","SearchFieldProvider","children","props","jsx"],"mappings":"0FAwBO,MAAMA,CAAAA,CACXC,aAAAA,CAA8D,IAAI,EAO7D,SAASC,CAAAA,CAAoB,CAClC,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAoC,CAClC,OACEC,GAAAA,CAACL,CAAAA,CAAmB,QAAA,CAAnB,CAA4B,KAAA,CAAOI,CAAAA,CACjC,QAAA,CAAAD,EACH,CAEJ","file":"context.js","sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { createContext } from 'react';\nimport type { ContextValue } from 'react-aria-components';\nimport type { ProviderProps } from '@/lib/types';\nimport type { SearchFieldProps } from './types';\n\n/**\n * Context for SearchField component\n *\n * Provides context for SearchField component to share props\n */\nexport const SearchFieldContext =\n createContext<ContextValue<SearchFieldProps, HTMLDivElement>>(null);\n\n/**\n * Provider for SearchField component\n *\n * Allows setting default props for all SearchField components within\n */\nexport function SearchFieldProvider({\n children,\n ...props\n}: ProviderProps<SearchFieldProps>) {\n return (\n <SearchFieldContext.Provider value={props}>\n {children}\n </SearchFieldContext.Provider>\n );\n}\n"]}
@@ -1,20 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import { ContextValue } from 'react-aria-components';
4
- import { ProviderProps } from '../../lib/types.js';
5
2
  import { SearchFieldProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
6
5
  import 'tailwind-variants';
7
6
  import '../button/types.js';
7
+ import '../../lib/types.js';
8
8
  import '../button/styles.js';
9
9
  import 'tailwind-merge';
10
10
  import '../icon/types.js';
11
11
  import './styles.js';
12
12
 
13
- declare const SearchFieldContext: react.Context<ContextValue<SearchFieldProps, HTMLDivElement>>;
14
- declare function SearchFieldProvider({ children, ...props }: ProviderProps<SearchFieldProps>): react_jsx_runtime.JSX.Element;
15
- declare namespace SearchFieldProvider {
16
- var displayName: string;
17
- }
18
13
  /**
19
14
  * SearchField - A customizable search input component built on React Aria Components
20
15
  *
@@ -43,18 +38,7 @@ declare namespace SearchFieldProvider {
43
38
  * onSubmit={(value) => console.log('Search:', value)}
44
39
  * onChange={(value) => setQuery(value)}
45
40
  * />
46
- *
47
- * @example
48
- * // Using context provider for default props
49
- * <SearchField.Provider variant="filled">
50
- * <SearchField placeholder="Search 1" />
51
- * <SearchField placeholder="Search 2" />
52
- * </SearchField.Provider>
53
41
  */
54
42
  declare function SearchField({ ref, ...props }: SearchFieldProps): react_jsx_runtime.JSX.Element;
55
- declare namespace SearchField {
56
- var displayName: string;
57
- var Provider: typeof SearchFieldProvider;
58
- }
59
43
 
60
- export { SearchField, SearchFieldContext };
44
+ export { SearchField };