@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
@@ -1,5 +1,5 @@
1
1
  import { RefAttributes } from 'react';
2
- import { Key, ListBoxProps, ListBoxItemProps, TextProps, ListBoxSectionProps } from 'react-aria-components';
2
+ import { Key, ListBoxProps, TextProps, ListBoxItemProps, ListBoxSectionProps } from 'react-aria-components';
3
3
  import { IconProps } from '../icon/types.js';
4
4
 
5
5
  type OptionsDataItem = {
@@ -12,7 +12,7 @@ type OptionsItemProps<T extends OptionsDataItem> = Omit<ListBoxItemProps<T>, 'cl
12
12
  item?: ListBoxItemProps['className'];
13
13
  icon?: IconProps['className'];
14
14
  };
15
- color?: 'info' | 'serious';
15
+ color?: 'info' | 'serious' | 'critical';
16
16
  };
17
17
  type OptionsProps<T extends OptionsDataItem> = Omit<ListBoxProps<T>, 'orientation' | 'layout'> & RefAttributes<HTMLDivElement> & {
18
18
  size?: 'small' | 'large';
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PopoverBodyProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+
6
+ declare function PopoverBody({ children, className }: PopoverBodyProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopoverBody };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {PopoverStyles}from'./styles.js';const{body:e}=PopoverStyles();function d({children:o,className:p}){return jsx("div",{className:e({className:p}),children:o})}export{d as PopoverBody};//# sourceMappingURL=body.js.map
4
+ //# sourceMappingURL=body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/popover/body.tsx"],"names":["PopoverStyles","r","t"],"mappings":"gGAkBA,UAAiBA,CAAAA,CAAc,CAAA,CAExBC,yBAAuB,CAAA,CAAA,CAAA,oBAAyC,CACrE,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,KAAI,CAAA,CAAA,SAAkB,aAAW,CAAI,CAAA,CAAA,CAAA,CAAA,QAC/C,CAAA,CAAA,CAAA,CAAA","file":"body.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\n'use client';\n\nimport 'client-only';\nimport { PopoverStyles } from './styles';\nimport type { PopoverBodyProps } from './types';\n\nconst { body } = PopoverStyles();\n\nexport function PopoverBody({ children, className }: PopoverBodyProps) {\n return <div className={body({ className })}>{children}</div>;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PopoverContentProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+
6
+ declare function PopoverContent({ children, className, ...rest }: PopoverContentProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopoverContent };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Popover,Dialog}from'react-aria-components';import {PopoverStyles}from'./styles.js';const{content:a}=PopoverStyles();function v({children:r,className:t,...e}){return jsx(Popover,{className:a({className:t}),...e,children:jsx(Dialog,{children:r})})}export{v as PopoverContent};//# sourceMappingURL=content.js.map
4
+ //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/popover/content.tsx"],"names":["PopoverStyles","n","rest","o","i","p"],"mappings":"mJAsBA,KAAQ,CAAA,OAAYA,EAAc,CAAA,CAE3BC,aAAA,EAAA,CAAA,SACL,CAAA,CAAA,CAAA,oBAEA,CAAA,CAAGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OACGC,GAAY,CAAAC,OAAA,CAAA,CAAA,SAAqB,CAAA,CAAA,CAAA,CAAA,SAAW,CAAI,CAAA,CAAA,CAAGF,CAAAA,GAElD,CAAA,CAAA,SAACC,GAAY,CAAAE,MAAA,CAAA,CAAA,QAAS,CACxB,CAEJ,CAAA,CAAA,CAAA,CAAA","file":"content.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\n'use client';\n\nimport 'client-only';\nimport {\n Dialog as AriaDialog,\n Popover as AriaPopover,\n} from 'react-aria-components';\nimport { PopoverStyles } from './styles';\nimport type { PopoverContentProps } from './types';\n\nconst { content } = PopoverStyles();\n\nexport function PopoverContent({\n children,\n className,\n ...rest\n}: PopoverContentProps) {\n return (\n <AriaPopover className={content({ className })} {...rest}>\n {/* @ts-expect-error package version mismatch TODO */}\n <AriaDialog>{children}</AriaDialog>\n </AriaPopover>\n );\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ declare function PopoverFooter({ children, className, }: {
5
+ children: ReactNode;
6
+ className?: string;
7
+ }): react_jsx_runtime.JSX.Element;
8
+
9
+ export { PopoverFooter };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {PopoverStyles}from'./styles.js';const{footer:r}=PopoverStyles();function s({children:o,className:e}){return jsx("div",{className:r({className:e}),children:o})}export{s as PopoverFooter};//# sourceMappingURL=footer.js.map
4
+ //# sourceMappingURL=footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/popover/footer.tsx"],"names":["PopoverStyles","t","c"],"mappings":"gGAkBA,YAAmBA,CAAAA,CAAc,CAAA,CAE1BC,yBACL,CAAA,CAAA,CAAA,oBAKC,CACD,CAAA,CAAA,CAAA,CAAA,OAAQC,GAAA,CAAA,KAAI,CAAA,CAAA,SAAoB,aAAW,CAAI,CAAA,CAAA,CAAA,CAAA,QACjD,CAAA,CAAA,CAAA,CAAA","file":"footer.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\n'use client';\n\nimport 'client-only';\nimport { PopoverStyles } from './styles';\nimport type { ReactNode } from 'react';\n\nconst { footer } = PopoverStyles();\n\nexport function PopoverFooter({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) {\n return <div className={footer({ className })}>{children}</div>;\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode } from 'react';
3
- import { PopoverProps, PopoverTitleProps, PopoverContentProps, PopoverBodyProps, PopoverTriggerProps } from './types.js';
2
+ import { PopoverProps } from './types.js';
3
+ import 'react';
4
4
  import 'react-aria-components';
5
5
 
6
6
  /**
@@ -13,54 +13,31 @@ import 'react-aria-components';
13
13
  * @example
14
14
  * // Basic popover
15
15
  * <Popover>
16
- * <Popover.Trigger>
16
+ * <PopoverTrigger>
17
17
  * <Button>Show Info</Button>
18
- * </Popover.Trigger>
19
- * <Popover.Content>
20
- * <Popover.Body>
18
+ * </PopoverTrigger>
19
+ * <PopoverContent>
20
+ * <PopoverBody>
21
21
  * <p>Additional information appears here</p>
22
- * </Popover.Body>
23
- * </Popover.Content>
22
+ * </PopoverBody>
23
+ * </PopoverContent>
24
24
  * </Popover>
25
25
  *
26
26
  * @example
27
27
  * // Popover with title and actions
28
28
  * <Popover placement="top">
29
- * <Popover.Trigger>
29
+ * <PopoverTrigger>
30
30
  * <Button>Options</Button>
31
- * </Popover.Trigger>
32
- * <Popover.Content>
33
- * <Popover.Title>Quick Actions</Popover.Title>
34
- * <Popover.Body>
31
+ * </PopoverTrigger>
32
+ * <PopoverContent>
33
+ * <PopoverTitle>Quick Actions</PopoverTitle>
34
+ * <PopoverBody>
35
35
  * <Button>Edit</Button>
36
36
  * <Button>Delete</Button>
37
- * </Popover.Body>
38
- * </Popover.Content>
37
+ * </PopoverBody>
38
+ * </PopoverContent>
39
39
  * </Popover>
40
40
  */
41
- declare const Popover: {
42
- ({ placement, children, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
43
- displayName: string;
44
- Title: {
45
- ({ children, className, ...rest }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
46
- displayName: string;
47
- };
48
- Content: {
49
- ({ children, className, ...rest }: PopoverContentProps): react_jsx_runtime.JSX.Element;
50
- displayName: string;
51
- };
52
- Body: {
53
- ({ children, className }: PopoverBodyProps): react_jsx_runtime.JSX.Element;
54
- displayName: string;
55
- };
56
- Footer: {
57
- ({ children, className, }: {
58
- children: ReactNode;
59
- className?: string;
60
- }): react_jsx_runtime.JSX.Element;
61
- displayName: string;
62
- };
63
- Trigger: ({ children, ...props }: PopoverTriggerProps) => react_jsx_runtime.JSX.Element;
64
- };
41
+ declare function Popover({ placement, children, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
65
42
 
66
43
  export { Popover };
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx}from'react/jsx-runtime';import'client-only';import {DialogTrigger,Popover,Dialog,Heading,Pressable}from'react-aria-components';import {PopoverStyles}from'./styles.js';const {content:c,body:y,title:N,footer:T}=PopoverStyles(),e=({placement:r="bottom",children:o,...p})=>jsx(DialogTrigger,{...p,children:o});e.displayName="Popover";const A=({children:r,...o})=>jsx(Pressable,{...o,children:r});e.displayName="Popover.Trigger";const i=({children:r,className:o,...p})=>jsx(Popover,{className:c({className:o}),...p,children:jsx(Dialog,{children:r})});i.displayName="Popover.Content";const a=({children:r,className:o,...p})=>jsx(Heading,{slot:"title",className:N({className:o}),...p,children:r});a.displayName="Popover.Title";const s=({children:r,className:o})=>jsx("div",{className:y({className:o}),children:r});s.displayName="Popover.Body";const P=({children:r,className:o})=>jsx("div",{className:T({className:o}),children:r});P.displayName="Popover.Footer",e.Title=a,e.Content=i,e.Body=s,e.Footer=P,e.Trigger=A;export{e as Popover};//# sourceMappingURL=index.js.map
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {DialogTrigger}from'react-aria-components';function a({placement:p="bottom",children:o,...r}){return jsx(DialogTrigger,{...r,children:o})}export{a as Popover};//# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/popover/index.tsx"],"names":["PopoverStyles","Popover","rest","jsx","t","n","props","g","l","PopoverContent","v","PopoverTitle","PopoverBody","PopoverFooter","PopoverTrigger"],"mappings":"mLAgCQ,MAAA,CAAA,OAAS,CAAA,CAAA,CAAA,YAAa,CAAA,CAAA,CAAA,MAAWA,CAAAA,CAAc,CAAA,CAqC1CC,aAAAA,EAAW,CACtB,aAAY,CAAA,CAAA,CAAA,iBAEZ,CAAA,CAAGC,CACL,GAAA,CACSC,CAAAA,GAACC,GAAmB,CAAAC,aAAA,CAAGH,CAAAA,aAAgB,CAEhDD,EAAQ,EAAA,CAAA,CAAA,WAAc,CAAA,gBAEI,CAAA,CAAA,CAAA,CAAA,UAAaK,CAAM,GAAA,CACpCH,IAACC,GAAW,WAAGE,CAAAA,GA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Ua,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\n'use client';\n\nimport 'client-only';\nimport {\n Dialog as AriaDialog,\n DialogTrigger as AriaDialogTrigger,\n Heading as AriaHeading,\n Popover as AriaPopover,\n Pressable,\n} from 'react-aria-components';\nimport { PopoverStyles } from './styles';\nimport type { ReactNode } from 'react';\nimport type {\n PopoverBodyProps,\n PopoverContentProps,\n PopoverProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n} from './types';\n\nconst { content, body, title, footer } = PopoverStyles();\n\n/**\n * Popover - A floating content container positioned relative to a trigger element\n *\n * Provides accessible popover functionality with flexible positioning and content\n * organization. Perfect for contextual information, menus, or supplementary content\n * that appears on demand without interrupting the user's workflow.\n *\n * @example\n * // Basic popover\n * <Popover>\n * <Popover.Trigger>\n * <Button>Show Info</Button>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Body>\n * <p>Additional information appears here</p>\n * </Popover.Body>\n * </Popover.Content>\n * </Popover>\n *\n * @example\n * // Popover with title and actions\n * <Popover placement=\"top\">\n * <Popover.Trigger>\n * <Button>Options</Button>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Title>Quick Actions</Popover.Title>\n * <Popover.Body>\n * <Button>Edit</Button>\n * <Button>Delete</Button>\n * </Popover.Body>\n * </Popover.Content>\n * </Popover>\n */\nexport const Popover = ({\n placement = 'bottom',\n children,\n ...rest\n}: PopoverProps) => {\n return <AriaDialogTrigger {...rest}>{children}</AriaDialogTrigger>;\n};\nPopover.displayName = 'Popover';\n\nconst PopoverTrigger = ({ children, ...props }: PopoverTriggerProps) => {\n return <Pressable {...props}>{children}</Pressable>;\n};\nPopover.displayName = 'Popover.Trigger';\n\nconst PopoverContent = ({\n children,\n className,\n ...rest\n}: PopoverContentProps) => {\n return (\n <AriaPopover className={content({ className })} {...rest}>\n {/* @ts-expect-error package version mismatch TODO */}\n <AriaDialog>{children}</AriaDialog>\n </AriaPopover>\n );\n};\nPopoverContent.displayName = 'Popover.Content';\n\nconst PopoverTitle = ({ children, className, ...rest }: PopoverTitleProps) => {\n return (\n <AriaHeading slot='title' className={title({ className })} {...rest}>\n {children}\n </AriaHeading>\n );\n};\n\nPopoverTitle.displayName = 'Popover.Title';\n\nconst PopoverBody = ({ children, className }: PopoverBodyProps) => {\n return <div className={body({ className })}>{children}</div>;\n};\nPopoverBody.displayName = 'Popover.Body';\n\nconst PopoverFooter = ({\n children,\n className,\n}: {\n children: ReactNode;\n className?: string;\n}) => {\n return <div className={footer({ className })}>{children}</div>;\n};\nPopoverFooter.displayName = 'Popover.Footer';\n\nPopover.Title = PopoverTitle;\nPopover.Content = PopoverContent;\nPopover.Body = PopoverBody;\nPopover.Footer = PopoverFooter;\nPopover.Trigger = PopoverTrigger;\n"]}
1
+ {"version":3,"sources":["../../../src/components/popover/index.tsx"],"names":["Popover","placement","children","rest","jsx","AriaDialogTrigger"],"mappings":"0GAqDO,SAASA,CAAAA,CAAQ,CACtB,SAAA,CAAAC,CAAAA,CAAY,QAAA,CACZ,QAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAiB,CACf,OAAOC,GAAAA,CAACC,aAAAA,CAAA,CAAmB,GAAGF,CAAAA,CAAO,QAAA,CAAAD,CAAAA,CAAS,CAChD","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\n'use client';\n\nimport 'client-only';\nimport { DialogTrigger as AriaDialogTrigger } from 'react-aria-components';\nimport type { PopoverProps } from './types';\n\n/**\n * Popover - A floating content container positioned relative to a trigger element\n *\n * Provides accessible popover functionality with flexible positioning and content\n * organization. Perfect for contextual information, menus, or supplementary content\n * that appears on demand without interrupting the user's workflow.\n *\n * @example\n * // Basic popover\n * <Popover>\n * <PopoverTrigger>\n * <Button>Show Info</Button>\n * </PopoverTrigger>\n * <PopoverContent>\n * <PopoverBody>\n * <p>Additional information appears here</p>\n * </PopoverBody>\n * </PopoverContent>\n * </Popover>\n *\n * @example\n * // Popover with title and actions\n * <Popover placement=\"top\">\n * <PopoverTrigger>\n * <Button>Options</Button>\n * </PopoverTrigger>\n * <PopoverContent>\n * <PopoverTitle>Quick Actions</PopoverTitle>\n * <PopoverBody>\n * <Button>Edit</Button>\n * <Button>Delete</Button>\n * </PopoverBody>\n * </PopoverContent>\n * </Popover>\n */\nexport function Popover({\n placement = 'bottom',\n children,\n ...rest\n}: PopoverProps) {\n return <AriaDialogTrigger {...rest}>{children}</AriaDialogTrigger>;\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PopoverTitleProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+
6
+ declare function PopoverTitle({ children, className, ...rest }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopoverTitle };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Heading}from'react-aria-components';import {PopoverStyles}from'./styles.js';const{title:p}=PopoverStyles();function n({children:o,className:e,...t}){return jsx(Heading,{slot:"title",className:p({className:e}),...t,children:o})}export{n as PopoverTitle};//# sourceMappingURL=title.js.map
4
+ //# sourceMappingURL=title.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/popover/title.tsx"],"names":["PopoverStyles","i","rest","l","r"],"mappings":"4IAmBA,KAAQ,CAAA,KAAUA,CAAAA,CAAc,CAAA,CAEzBC,aAAA,EAAA,CAAA,SACL,CAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,WACGC,CACL,GACE,CAAA,CAAA,CAAA,CAAA,OACGC,GAAY,CAAAC,OAAA,CAAA,CAAA,IAAK,CAAA,iBAA2B,cAAe,CAAA,CAAA,CAAGF,CAAAA,GAC5D,CAAA,CAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"title.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\n'use client';\n\nimport 'client-only';\nimport { Heading as AriaHeading } from 'react-aria-components';\nimport { PopoverStyles } from './styles';\nimport type { PopoverTitleProps } from './types';\n\nconst { title } = PopoverStyles();\n\nexport function PopoverTitle({\n children,\n className,\n ...rest\n}: PopoverTitleProps) {\n return (\n <AriaHeading slot='title' className={title({ className })} {...rest}>\n {children}\n </AriaHeading>\n );\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { PopoverTriggerProps } from './types.js';
3
+ import 'react';
4
+ import 'react-aria-components';
5
+
6
+ declare function PopoverTrigger({ children, ...props }: PopoverTriggerProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { PopoverTrigger };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Pressable}from'react-aria-components';function t({children:r,...o}){return jsx(Pressable,{...o,children:r})}export{t as PopoverTrigger};//# sourceMappingURL=trigger.js.map
4
+ //# sourceMappingURL=trigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/popover/trigger.tsx"],"names":["PopoverTrigger","children","props","jsx","Pressable"],"mappings":"sGAkBO,SAASA,CAAAA,CAAe,CAAE,QAAA,CAAAC,EAAU,GAAGC,CAAM,CAAA,CAAwB,CAC1E,OAAOC,GAAAA,CAACC,SAAAA,CAAA,CAAW,GAAGF,CAAAA,CAAQ,QAAA,CAAAD,CAAAA,CAAS,CACzC","file":"trigger.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\n'use client';\n\nimport 'client-only';\nimport { Pressable } from 'react-aria-components';\nimport type { PopoverTriggerProps } from './types';\n\nexport function PopoverTrigger({ children, ...props }: PopoverTriggerProps) {\n return <Pressable {...props}>{children}</Pressable>;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode, ComponentProps } from 'react';
2
- import { HeadingProps, PopoverProps as PopoverProps$1, PopoverRenderProps, Pressable } from 'react-aria-components';
2
+ import { PopoverProps as PopoverProps$1, PopoverRenderProps, HeadingProps, Pressable } from 'react-aria-components';
3
3
 
4
4
  interface PopoverProps {
5
5
  placement?: 'left' | 'right' | 'top' | 'bottom';
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsx}from'react/jsx-runtime';import'client-only';import {useCallback,useMemo}from'react';import {Button}from'../button/index.js';import {pressToMouseEvent}from'./utils.js';function E({disabled:e,disabledTranslation:t,title:o,handleOnClick:r}){const s=useCallback(p=>r(pressToMouseEvent(p)),[r]),m=useMemo(()=>t?.title&&e?t.title:o,[t?.title,e,o]);return jsx(Button,{isDisabled:e&&!t,onPress:s,size:"small",variant:"outline",children:m})}export{E as ActionElement};//# sourceMappingURL=action-element.js.map
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useMemo}from'react';import {Button}from'../button/index.js';function l({disabled:o,disabledTranslation:t,title:e,handleOnClick:r}){const i=useMemo(()=>t?.title&&o?t.title:e,[t?.title,o,e]);return jsx(Button,{isDisabled:o&&!t,onPress:()=>r(),size:"small",variant:"outline",children:i})}export{l as ActionElement};//# sourceMappingURL=action-element.js.map
4
4
  //# sourceMappingURL=action-element.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/action-element.tsx"],"names":["handleOnClick","useCallback","event","title","useMemo","disabledTranslation","n","disabled","titleProp","jsx","Button","f","handlePress"],"mappings":"mLAsBE,SACA,CAAA,CAAA,CAAA,QAAA,CAAA,CAAA,CAAA,mBAEA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAAA,aAGoBC,CACjBC,CAAAA,CAAAA,CAAsBF,OAAsC,CAC7D,CAACA,WAAa,CAChB,CAAA,EAEMG,CAAQC,kBACZ,CAAA,CAAA,CAAA,CACEC,CAAAA,CAAAA,CAAqB,CAAA,CAAA,CAAA,CAAA,CAAAC,OAAA,CAASC,IACN,CAAA,EAAA,KAE1B,EAACF,CAAAA,CAAqB,OAAOE,CAAUC,CAAS,CAClD,CAAA,CAEA,OACEC,CAAAA,CAACC,CAAAA,CAAA,CACC,CAAA,CAAA,OAAAC,GAAA,CAAYJ,QAAY,UACxB,CAASK,CAAAA,YACJ,CAAA,CACL,CAAA,IAAA,CAAA,OAAQ,CAAA,OAEP,CAAA,SAGP,CAAA,QAAA,CAAA,CAAA,CAAA,CAAA","file":"action-element.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 { Button } from '../button';\nimport { pressToMouseEvent } from './utils';\nimport type { PressEvent } from '@react-types/shared';\nimport type { ActionProps } from 'react-querybuilder';\n\nexport function ActionElement({\n disabled,\n disabledTranslation,\n title: titleProp,\n handleOnClick,\n}: ActionProps) {\n // TODO: remove pressToMouseEvent when design-system is removed\n const handlePress = useCallback(\n (event: PressEvent) => handleOnClick(pressToMouseEvent(event)),\n [handleOnClick],\n );\n\n const title = useMemo(\n () =>\n disabledTranslation?.title && disabled\n ? disabledTranslation.title\n : titleProp,\n [disabledTranslation?.title, disabled, titleProp],\n );\n\n return (\n <Button\n isDisabled={disabled && !disabledTranslation}\n onPress={handlePress}\n size='small'\n variant='outline'\n >\n {title}\n </Button>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/action-element.tsx"],"names":["ActionElement","disabled","titleProp","title","useMemo","disabledTranslation","m","jsx","Button","n","u"],"mappings":"4HAmBgBA,SACd,CAAA,CAAAC,CAAAA,QACA,CAAA,CAAA,CAAA,mBACOC,CACP,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,aAEA,CAAMC,CAAAA,CAAQC,CAAAA,CACZ,MACEC,CAAqB,CAAAC,OAAA,CAAA,IAASL,CAAAA,EAC1BI,KAAoB,EACpBH,CAAAA,CACN,CAACG,CAAAA,KAAqB,CAAA,CAAA,CAAOJ,CAAAA,CAAUC,EACzC,KAEA,CAAA,CAAA,CAAA,CACEK,CAAAA,CAACC,CAAAA,OACCC,GAAA,CAAAC,MAAA,CAAA,CAAA,UACA,CAAA,CAAA,EAAA,CAAS,CAAA,CAAA,OACT,CAAA,IAAK,CAAA,EAAA,CAAA,IACL,CAAA,OAAQ,CAAA,OAAA,CAEP,SAAAP,CAAAA,QAGP,CAAA,CAAA,CAAA,CAAA","file":"action-element.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 { useMemo } from 'react';\nimport { Button } from '../button';\nimport type { ActionProps } from 'react-querybuilder';\n\nexport function ActionElement({\n disabled,\n disabledTranslation,\n title: titleProp,\n handleOnClick,\n}: ActionProps) {\n const title = useMemo(\n () =>\n disabledTranslation?.title && disabled\n ? disabledTranslation.title\n : titleProp,\n [disabledTranslation?.title, disabled, titleProp],\n );\n\n return (\n <Button\n isDisabled={disabled && !disabledTranslation}\n onPress={() => handleOnClick()}\n size='small'\n variant='outline'\n >\n {title}\n </Button>\n );\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ActionProps } from 'react-querybuilder';
3
+
4
+ declare function RemoveRuleAction({ handleOnClick, className, ...rest }: ActionProps): react_jsx_runtime.JSX.Element;
5
+ declare function LockAction({ handleOnClick, className, ...rest }: ActionProps): react_jsx_runtime.JSX.Element;
6
+ declare function CloneAction({ handleOnClick, className, ...rest }: ActionProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { CloneAction, LockAction, RemoveRuleAction };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {Delete,LockFill,Duplicate}from'@accelint/icons';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';function f({handleOnClick:t,className:n,...r}){return jsx(Button,{size:"small",variant:"icon",onPress:()=>t(),className:n,...r,children:jsx(Icon,{children:jsx(Delete,{})})})}function A({handleOnClick:t,className:n,...r}){return jsx(Button,{size:"small",variant:"icon",onPress:()=>t(),className:n,...r,children:jsx(Icon,{children:jsx(LockFill,{})})})}function P({handleOnClick:t,className:n,...r}){return jsx(Button,{size:"small",variant:"icon",onPress:()=>t(),className:n,...r,children:jsx(Icon,{children:jsx(Duplicate,{})})})}export{P as CloneAction,A as LockAction,f as RemoveRuleAction};//# sourceMappingURL=actions.js.map
4
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/query-builder/actions.tsx"],"names":["Button","o","e","handleOnClick","className","Icon","i","LockAction","rest","CloneAction","s"],"mappings":"4LAoBE,SACA,CAAA,CAAA,CAAA,cAEc,CACd,CAAA,SACGA,CAAA,CACC,CAAA,GAAA,CAAK,CAAA,CAAA,CAAA,OACLC,GAAA,CAAAC,MAAA,CAAA,CAAA,IAAQ,CAAA,OACR,CAAA,OAAeC,CAAAA,MACf,CAAA,OAAWC,CACV,KAED,EAAA,CAAA,SAACC,CAAA,CACC,CAAA,GAAA,CAAA,CAAA,QAAC,CAAOJ,IACVK,IAAA,CACF,CAEJ,QAEO,CAAAL,GAASM,CAAAA,MAAW,CAAE,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,yBAAkC,CAAgB,CAC7E,CAAA,SACGP,CAAA,CACC,CAAA,GAAA,CAAK,CAAA,CAAA,CAAA,OACLC,GAAA,CAAAC,MAAA,CAAA,CAAA,IAAQ,CAAA,OACR,CAAA,OAAeC,CAAAA,MACf,CAAA,OAAWC,CACV,IAAGI,CAEJ,EAAA,CAAA,SAACH,CAAA,CACC,cAAC,CAASJ,GAAA,CACZK,IAAA,CACF,CAEJ,QAEO,CAAAL,GAASQ,SAAY,CAC1B,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,aAEF,CAAgB,CACd,CAAA,SACGT,CAAA,CACC,CAAA,GAAA,CAAK,CAAA,CAAA,CAAA,OACLC,GAAA,CAAAC,MAAA,CAAA,CAAA,YACA,CAAA,OAAeC,CAAAA,MACf,CAAA,OAAWC,CACV,IAAGI,CAEJ,YAACH,CAAA,CACC,CAAA,GAAA,CAAA,CAAA,QAAC,CAAUJ,GAAA,CACbK,KACF,CAEJ,QAAA,CAAAL,GAAA,CAAAS,SAAA,CAAA,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"actions.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 { Delete, Duplicate, LockFill } from '@accelint/icons';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport type { ActionProps } from 'react-querybuilder';\n\nexport function RemoveRuleAction({\n handleOnClick,\n className,\n ...rest\n}: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <Delete />\n </Icon>\n </Button>\n );\n}\n\nexport function LockAction({ handleOnClick, className, ...rest }: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <LockFill />\n </Icon>\n </Button>\n );\n}\n\nexport function CloneAction({\n handleOnClick,\n className,\n ...rest\n}: ActionProps) {\n return (\n <Button\n size='small'\n variant='icon'\n onPress={() => handleOnClick()}\n className={className}\n {...rest}\n >\n <Icon>\n <Duplicate />\n </Icon>\n </Button>\n );\n}\n"]}
@@ -0,0 +1,6 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { CombinatorSelectorProps } from 'react-querybuilder';
3
+
4
+ declare function CombinatorSelector({ options, value, handleOnChange, }: CombinatorSelectorProps): react_jsx_runtime.JSX.Element;
5
+
6
+ export { CombinatorSelector };
@@ -0,0 +1,4 @@
1
+ 'use client';
2
+
3
+ import {jsxs,jsx}from'react/jsx-runtime';import'client-only';import {Label}from'../label/index.js';import {Radio}from'../radio/index.js';import {RadioGroup}from'../radio/group.js';import {Tooltip}from'../tooltip/index.js';import {TooltipTrigger}from'../tooltip/trigger.js';const u={AND:"All rules below must be true for a match",OR:"One of the rules below must be true for a match"};function T({options:e,value:l,handleOnChange:a}){return jsxs(RadioGroup,{value:l,onChange:a,orientation:"horizontal",style:{flexWrap:"nowrap"},children:[jsx(Label,{children:"Combinator"}),e.map(o=>jsx(Radio,{value:o.label,children:jsxs(TooltipTrigger,{children:[jsx("button",{type:"button",children:o.label}),jsx(Tooltip,{placement:"top",children:u[o.label]})]})},o.label))]})}export{T as CombinatorSelector};//# sourceMappingURL=combinator-selector.js.map
4
+ //# sourceMappingURL=combinator-selector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/query-builder/combinator-selector.tsx"],"names":["jsxs","RadioGroup","value","t","p","jsx","Label","option","Radio","TooltipTrigger","b","r","Tooltip","operatorDescriptions","n"],"mappings":"iRAsBO,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,0CACD,CAAA,EAAA,CAAA,iDAMJ,CAAA,CAAA,SACF,CAA4B,CAC1B,QACEA,CAACC,CAAAA,CAAA,KACC,CAAA,CAAOC,CAAAA,cAEP,CAAA,CAAA,CAAA,CAAA,CAAA,OAAYC,IAAA,CAAAC,UAAA,CAAA,CAAA,KAAA,CACZ,UAAS,CAAA,CAAA,CAAA,WAAmB,CAAA,YAE5BC,CAACC,KAAM,CAAA,CAAA,QAAA,CAAA,QAAA,CAAU,SACHC,CAAAA,CACZF,GAAAA,CAACG,KAAAA,CAAA,CAAyB,QAAc,CAAA,YACtC,CAAA,CAAAR,CAAAA,CAACS,CAAAA,kBACCJ,KAAC,CAAA,CAAA,CAAA,cAAY,CAAAF,IAAA,CAAAO,cAAU,CAAA,CAAA,SAAO,CAAAC,GAAA,CAAA,QAC7BC,CAAA,CAAQ,IAAA,CAAA,iBACN,CAAA,CAAA,CAAAC,KAA4B,CAAA,CAAA,CAAAF,GAAK,CAAAG,OACpC,CAAA,CAAA,SALe,CAAA,KASvB,CAEJ,QAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"combinator-selector.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 { Label } from '../label';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Tooltip } from '../tooltip';\nimport { TooltipTrigger } from '../tooltip/trigger';\nimport type { CombinatorSelectorProps } from 'react-querybuilder';\n\nconst operatorDescriptions: Record<string, string> = {\n AND: 'All rules below must be true for a match',\n OR: 'One of the rules below must be true for a match',\n};\n\nexport function CombinatorSelector({\n options,\n value,\n handleOnChange,\n}: CombinatorSelectorProps) {\n return (\n <RadioGroup\n value={value}\n onChange={handleOnChange}\n orientation='horizontal'\n style={{ flexWrap: 'nowrap' }}\n >\n <Label>Combinator</Label>\n {options.map((option) => (\n <Radio key={option.label} value={option.label}>\n <TooltipTrigger>\n <button type='button'>{option.label}</button>\n <Tooltip placement='top'>\n {operatorDescriptions[option.label]}\n </Tooltip>\n </TooltipTrigger>\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n"]}
@@ -1,13 +1,7 @@
1
- import { ValueSelector } from './value-selector.js';
2
- import { ValueEditor } from './value-editor.js';
3
- import * as react_querybuilder from 'react-querybuilder';
4
- import { CombinatorSelectorProps, ActionProps } from 'react-querybuilder';
5
- import { RuleGroup, RuleGroupHeaderComponent, RuleGroupFooterComponent } from './group.js';
6
- import { Rule } from './rule.js';
7
- import { ActionElement } from './action-element.js';
8
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
9
2
  import { QueryBuilderProps } from './types.js';
10
3
  import 'react';
4
+ import 'react-querybuilder';
11
5
  import 'type-fest';
12
6
 
13
7
  /**
@@ -35,19 +29,5 @@ import 'type-fest';
35
29
  * />
36
30
  */
37
31
  declare function QueryBuilder({ controlClassnames, controlElements, orientation, showRuleLines, ...rest }: QueryBuilderProps): react_jsx_runtime.JSX.Element;
38
- declare namespace QueryBuilder {
39
- var CombinatorSelector: ({ options, value, handleOnChange, }: CombinatorSelectorProps) => react_jsx_runtime.JSX.Element;
40
- var RemoveRuleAction: ({ handleOnClick, className, ...rest }: ActionProps) => react_jsx_runtime.JSX.Element;
41
- var LockAction: ({ handleOnClick, className, ...rest }: ActionProps) => react_jsx_runtime.JSX.Element;
42
- var CloneAction: ({ handleOnClick, className, ...rest }: ActionProps) => react_jsx_runtime.JSX.Element;
43
- var ActionElement: typeof ActionElement;
44
- var Rule: typeof Rule;
45
- var RuleGroup: typeof RuleGroup;
46
- var RuleGroupHeaderComponent: typeof RuleGroupHeaderComponent;
47
- var RuleGroupFooterComponent: typeof RuleGroupFooterComponent;
48
- var getValidationResult: (rule: react_querybuilder.RuleType, validator?: react_querybuilder.RuleValidator) => react_querybuilder.ValidationResult;
49
- var ValueEditor: typeof ValueEditor;
50
- var ValueSelector: typeof ValueSelector;
51
- }
52
32
 
53
33
  export { QueryBuilder };
@@ -1,2 +1,4 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';import'client-only';import {LockFill,Delete,Duplicate}from'@accelint/icons';import {useMemo,createContext,useCallback}from'react';import {QueryBuilder}from'react-querybuilder';import {cn}from'../../lib/utils.js';import {Button}from'../button/index.js';import {Icon}from'../icon/index.js';import {Label}from'../label/index.js';import {Radio}from'../radio/index.js';import {Tooltip}from'../tooltip/index.js';import {ActionElement}from'./action-element.js';import {RuleGroup,RuleGroupHeaderComponent,RuleGroupFooterComponent}from'./group.js';import {Rule}from'./rule.js';import {getValidationResult,pressToMouseEvent}from'./utils.js';import {ValueEditor}from'./value-editor.js';import {ValueSelector}from'./value-selector.js';const w={AND:"All rules below must be true for a match",OR:"One of the rules below must be true for a match"};function x({options:r,value:n,handleOnChange:l}){return jsxs(Radio.Group,{value:n,onChange:l,orientation:"horizontal",children:[jsx(Label,{children:"Combinator"}),r.map(o=>jsx(Radio,{value:o.label,children:jsxs(Tooltip.Trigger,{children:[jsx("button",{type:"button",children:o.label}),jsx(Tooltip,{placement:"top",children:w[o.label]})]})},o.label))]})}function C({handleOnClick:r,className:n,...l}){const o=useCallback(i=>r(pressToMouseEvent(i)),[r]);return jsx(Button,{size:"small",variant:"icon",onPress:o,className:n,...l,children:jsx(Icon,{children:jsx(Delete,{})})})}function c({handleOnClick:r,className:n,...l}){const o=useCallback(i=>r(pressToMouseEvent(i)),[r]);return jsx(Button,{size:"small",variant:"icon",onPress:o,className:n,...l,children:jsx(Icon,{children:jsx(LockFill,{})})})}function f({handleOnClick:r,className:n,...l}){const o=useCallback(i=>r(pressToMouseEvent(i)),[r]);return jsx(Button,{size:"small",variant:"icon",onPress:o,className:n,...l,children:jsx(Icon,{children:jsx(Duplicate,{})})})}function t({controlClassnames:r,controlElements:n,orientation:l="horizontal",showRuleLines:o=true,...i}){const B=useMemo(()=>({combinatorSelector:x,cloneGroupAction:f,cloneRuleAction:f,removeRuleAction:C,lockGroupAction:c,lockRuleAction:c,ruleGroup:RuleGroup,rule:Rule,actionElement:ActionElement,valueSelector:ValueSelector,valueEditor:ValueEditor,...n}),[n]),d=useMemo(()=>({queryBuilder:"outline outline-transparent",ruleGroup:"group col-span-full flex flex-col gap-s p-s outline outline-info-bold rounded-medium",header:"flex gap-s",body:cn("group grid gap-x-s empty:hidden",o?"grid-cols-[10px_minmax(100px,_1fr)_min-content]":"grid-cols-[minmax(100px,_1fr)_min-content]"),combinators:"my-s",addRule:"",addGroup:"",cloneRule:"fg-info-bold hover:fg-info-hover",cloneGroup:"fg-info-bold hover:fg-info-hover",removeGroup:"",rule:cn("flex gap-xs py-s",l==="vertical"?"flex-col":"min-height-[50px] items-start"),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:""}),[l,o]),E=useMemo(()=>({...d,...r}),[r,d]),S=createContext({orientation:l,showRuleLines:o});return jsx(QueryBuilder,{showNotToggle:false,showShiftActions:false,enableDragAndDrop:false,controlClassnames:E,controlElements:B,context:S,listsAsArrays:true,...i})}t.CombinatorSelector=x,t.RemoveRuleAction=C,t.LockAction=c,t.CloneAction=f,t.ActionElement=ActionElement,t.Rule=Rule,t.RuleGroup=RuleGroup,t.RuleGroupHeaderComponent=RuleGroupHeaderComponent,t.RuleGroupFooterComponent=RuleGroupFooterComponent,t.getValidationResult=getValidationResult,t.ValueEditor=ValueEditor,t.ValueSelector=ValueSelector;export{t as QueryBuilder};//# sourceMappingURL=index.js.map
1
+ 'use client';
2
+
3
+ import {jsx}from'react/jsx-runtime';import'client-only';import {useMemo,createContext}from'react';import {QueryBuilder}from'react-querybuilder';import {ActionElement}from'./action-element.js';import {LockAction,RemoveRuleAction,CloneAction}from'./actions.js';import {CombinatorSelector}from'./combinator-selector.js';import {Rule}from'./rule.js';import {RuleGroup}from'./rule-group.js';import {QueryBuilderStyles}from'./styles.js';import {ValueEditor}from'./value-editor.js';import {ValueSelector}from'./value-selector.js';const{queryBuilder:b,ruleGroup:Q,header:S,combinators:k,cloneGroup:C,removeGroup:g,cloneRule:h,fields:x,value:E,addRule:T,addGroup:q,operators:D,valueListItem:I,valueSource:L,removeRule:P,valid:V,invalid:w,disabled:z,lockRule:M,lockGroup:N,body:F,rule:H}=QueryBuilderStyles();function oe({controlClassnames:r,controlElements:l,orientation:e="horizontal",showRuleLines:o=true,...m}){const c=useMemo(()=>({combinatorSelector:CombinatorSelector,cloneGroupAction:CloneAction,cloneRuleAction:CloneAction,removeRuleAction:RemoveRuleAction,lockGroupAction:LockAction,lockRuleAction:LockAction,ruleGroup:RuleGroup,rule:Rule,actionElement:ActionElement,valueSelector:ValueSelector,valueEditor:ValueEditor,...l}),[l]),n=useMemo(()=>({queryBuilder:b(),ruleGroup:Q(),header:S(),combinators:k(),fields:x(),operators:D(),value:E(),valueListItem:I(),valueSource:L(),cloneGroup:C(),cloneRule:h(),lockGroup:N(),lockRule:M(),disabled:z(),valid:V(),invalid:w(),removeRule:P(),addRule:T(),addGroup:q(),removeGroup:g(),rule:H({variant:e}),body:F({showRuleLines:o}),...r}),[r,o,e]),a=createContext({orientation:e,showRuleLines:o});return jsx(QueryBuilder,{showNotToggle:false,showShiftActions:false,enableDragAndDrop:false,controlClassnames:n,controlElements:c,context:a,listsAsArrays:true,...m})}export{oe as QueryBuilder};//# sourceMappingURL=index.js.map
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/index.tsx"],"names":["jsx","Label","G","v","options","Radio","jsxs","Tooltip","e","z","b","operatorDescriptions","option","RemoveRuleAction","className","event","handleOnClick","pressToMouseEvent","handlePress","rest","p","Icon","a","LockAction","useCallback","T","CloneAction","k","QueryBuilder","Q","mergedElements","CombinatorSelector","s","defaultClassnames","y","A","R","P","h","g","orientation","mergedClassnames","useMemo","RQBBuilder","D","V","Rule","RuleGroupFooterComponent","getValidationResult","N","ValueSelector"],"mappings":"4vBA2CM,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,0CAKJ,CAAA,EAAA,CAAA,iDAMI,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,OAAA,CAAY,CAAA,CAAA,KAAA,CAAA,CAAA,CAAA,cAEZA,CAACC,CAAAA,CAAA,CAAM,CAAA,OAAAC,IAAA,CAAAC,KAAA,CAAA,KAAA,CAAA,CAAA,KACNC,CAAAA,CAAQ,CAAA,QACNC,CAAAA,CAAA,CAAyB,wBACxBC,CAACC,QAAQ,CAAA,CAARC,GACC,CAAAC,KAAA,CAAA,CAAA,QAAC,CAAA,YAAO,CAAA,CAAK,CAAA,CAAA,CAAA,GAAA,CAAA,CAAA,EAAUD,GAAA,CAAAL,KAAA,CAAA,CAAA,KAAO,CAAA,CAAA,CAAA,KAC9BH,CAAAA,QAAS,CAAAE,IAAA,CAAAQ,OAAA,CAAA,OACN,CAAA,CAAA,QAAAC,CAAqBC,CAAAA,GAAO,CAAA,QAC/B,CACF,CAAA,IANiB,CAAA,QASvB,CAEJ,QAEA,CAAA,CAASC,CAAAA,KAAmB,CAAA,CAAA,CAAAL,GAAA,CAAAE,OAAA,CAAA,CAAA,SAAe,CAAA,KAAAI,CAAAA,QAEzC,CAAA,CAAA,CAAA,CAAA,CAAA,KACGC,CAAAA,CAAAA,CAAsBC,CAAAA,CAAcC,CAAAA,CAAkBF,CAAK,CAAC,CAAA,KAE/D,CAEA,CAAA,CAAA,CAAA,CAAA,CAAA,SAEI,CAAA,CAAA,CAAK,aACL,CAAA,CAAA,CAAQ,SACR,CAAA,CAAA,CAAA,GAASG,CAAA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AA","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 { Delete, Duplicate, LockFill } from '@accelint/icons';\nimport { createContext, useCallback, useMemo } from 'react';\nimport {\n type ActionProps,\n type Classnames,\n type CombinatorSelectorProps,\n QueryBuilder as RQBBuilder,\n} from 'react-querybuilder';\nimport { cn } from '../../lib/utils';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Radio } from '../radio';\nimport { Tooltip } from '../tooltip';\nimport { ActionElement } from './action-element';\nimport {\n RuleGroup,\n RuleGroupFooterComponent,\n RuleGroupHeaderComponent,\n} from './group';\nimport { Rule } from './rule';\nimport { getValidationResult, pressToMouseEvent } from './utils';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { PressEvent } from '@react-types/shared';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\nconst operatorDescriptions: Record<string, string> = {\n AND: 'All rules below must be true for a match',\n OR: 'One of the rules below must be true for a match',\n};\n\nfunction CombinatorSelector({\n options,\n value,\n handleOnChange,\n}: CombinatorSelectorProps) {\n return (\n <Radio.Group\n value={value}\n onChange={handleOnChange}\n orientation='horizontal'\n >\n <Label>Combinator</Label>\n {options.map((option) => (\n <Radio key={option.label} value={option.label}>\n <Tooltip.Trigger>\n <button type='button'>{option.label}</button>\n <Tooltip placement='top'>\n {operatorDescriptions[option.label]}\n </Tooltip>\n </Tooltip.Trigger>\n </Radio>\n ))}\n </Radio.Group>\n );\n}\n\nfunction RemoveRuleAction({ handleOnClick, className, ...rest }: ActionProps) {\n // TODO: remove pressToMouseEvent when design-system is removed\n const handlePress = useCallback(\n (event: PressEvent) => handleOnClick(pressToMouseEvent(event)),\n [handleOnClick],\n );\n\n return (\n <Button\n size='small'\n variant='icon'\n onPress={handlePress}\n className={className}\n {...rest}\n >\n <Icon>\n <Delete />\n </Icon>\n </Button>\n );\n}\n\nfunction LockAction({ handleOnClick, className, ...rest }: ActionProps) {\n // TODO: remove pressToMouseEvent when design-system is removed\n const handlePress = useCallback(\n (event: PressEvent) => handleOnClick(pressToMouseEvent(event)),\n [handleOnClick],\n );\n\n return (\n <Button\n size='small'\n variant='icon'\n onPress={handlePress}\n className={className}\n {...rest}\n >\n <Icon>\n <LockFill />\n </Icon>\n </Button>\n );\n}\n\nfunction CloneAction({ handleOnClick, className, ...rest }: ActionProps) {\n // TODO: remove pressToMouseEvent when design-system is removed\n const handlePress = useCallback(\n (event: PressEvent) => handleOnClick(pressToMouseEvent(event)),\n [handleOnClick],\n );\n\n return (\n <Button\n size='small'\n variant='icon'\n onPress={handlePress}\n className={className}\n {...rest}\n >\n <Icon>\n <Duplicate />\n </Icon>\n </Button>\n );\n}\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @example\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const defaultClassnames: Partial<Classnames> = useMemo(\n () => ({\n queryBuilder: 'outline outline-transparent',\n ruleGroup:\n 'group col-span-full flex flex-col gap-s p-s outline outline-info-bold rounded-medium',\n header: 'flex gap-s',\n body: cn(\n 'group grid gap-x-s empty:hidden',\n showRuleLines\n ? 'grid-cols-[10px_minmax(100px,_1fr)_min-content]'\n : 'grid-cols-[minmax(100px,_1fr)_min-content]',\n ),\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: cn(\n 'flex gap-xs py-s',\n orientation === 'vertical'\n ? 'flex-col'\n : 'min-height-[50px] items-start',\n ),\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 [orientation, showRuleLines],\n );\n\n const mergedClassnames = useMemo(() => {\n return {\n ...defaultClassnames,\n ...controlClassnames,\n };\n }, [controlClassnames, defaultClassnames]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n\nQueryBuilder.CombinatorSelector = CombinatorSelector;\nQueryBuilder.RemoveRuleAction = RemoveRuleAction;\nQueryBuilder.LockAction = LockAction;\nQueryBuilder.CloneAction = CloneAction;\nQueryBuilder.ActionElement = ActionElement;\nQueryBuilder.Rule = Rule;\nQueryBuilder.RuleGroup = RuleGroup;\nQueryBuilder.RuleGroupHeaderComponent = RuleGroupHeaderComponent;\nQueryBuilder.RuleGroupFooterComponent = RuleGroupFooterComponent;\nQueryBuilder.getValidationResult = getValidationResult;\nQueryBuilder.ValueEditor = ValueEditor;\nQueryBuilder.ValueSelector = ValueSelector;\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/index.tsx"],"names":["ruleGroup","operators","invalid","lockRule","lockGroup","body","QueryBuilder","G","controlClassnames","orientation","mergedElements","u","f","t","v","i","R","ValueSelector","ValueEditor","s","useMemo","B","A","queryBuilder","value","valueSource","cloneGroup","valid","showRuleLines","d","J","p","rest"],"mappings":"2gBA4BEA,KACA,CAAA,YACA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,oBAEA,CAAA,CAAA,CAAA,UACA,CAAA,CAAA,CAAA,WAEA,CAAA,CAAA,CAAA,SACA,CAAA,CAAA,CAAA,MACA,CAAA,CAAA,CAAA,KAAA,CAAA,CAAAC,CAAAA,OACA,CAAA,CAAA,CAAA,QACA,CAAA,CAAA,CAAA,UACA,CAAA,CAAA,aACA,CAAA,CAAA,CAAA,WACAC,CAAAA,CACA,CAAA,UACA,CAAA,CAAA,CAAA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAA,CAAA,CAAAC,QACAC,CACA,CAAA,CAAA,QACqB,CAAA,CA0BhB,CAAA,SAASC,CAAAA,CAAa,CAC3B,IAAA,CAAA,CAAA,CAAA,IAAA,CAAA,CAAA,CAAA,CAAAC,kBAAA,EAAAC,CAAAA,SACA,EAAA,CAAA,CAAA,iBACA,CAAAC,CAAAA,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CAAA,CAAA,CAAA,CAAA,GACA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAAmB,CACFC,aAAC,CAAA,CAED,WACG,CACC,CAAA,CAAA,aAAe,CAAA,CACf,CAAA,CAAA,CAAA,OAAAC,GAAA,CAAAC,YAAA,CAAA,CAAA,aACA,CAAA,KAAA,CAAA,gBACA,CAAA,KAAA,CAAA,iBACA,CAAA,KAAA,CAAA,iBAEA,CAAA,CAAA,CAAA,eACC,CAAGC,EACN,OAEJ,CAAA,CAAA,CAAA,aAAA,CAAA,IAAA,CAAA,GAAA,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 { createContext, useMemo } from 'react';\nimport { QueryBuilder as RQBBuilder } from 'react-querybuilder';\nimport { ActionElement } from './action-element';\nimport { CloneAction, LockAction, RemoveRuleAction } from './actions';\nimport { CombinatorSelector } from './combinator-selector';\nimport { Rule } from './rule';\nimport { RuleGroup } from './rule-group';\nimport { QueryBuilderStyles } from './styles';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\nconst {\n queryBuilder,\n ruleGroup,\n header,\n combinators,\n cloneGroup,\n removeGroup,\n cloneRule,\n fields,\n value,\n addRule,\n addGroup,\n operators,\n valueListItem,\n valueSource,\n removeRule,\n valid,\n invalid,\n disabled,\n lockRule,\n lockGroup,\n body,\n rule,\n} = QueryBuilderStyles();\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @example\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const mergedClassnames = useMemo(() => {\n return {\n queryBuilder: queryBuilder(),\n ruleGroup: ruleGroup(),\n header: header(),\n combinators: combinators(),\n fields: fields(),\n operators: operators(),\n value: value(),\n valueListItem: valueListItem(),\n valueSource: valueSource(),\n cloneGroup: cloneGroup(),\n cloneRule: cloneRule(),\n lockGroup: lockGroup(),\n lockRule: lockRule(),\n disabled: disabled(),\n valid: valid(),\n invalid: invalid(),\n removeRule: removeRule(),\n addRule: addRule(),\n addGroup: addGroup(),\n removeGroup: removeGroup(),\n rule: rule({ variant: orientation }),\n body: body({ showRuleLines: showRuleLines }),\n ...controlClassnames,\n };\n }, [controlClassnames, showRuleLines, orientation]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsxs,jsx,Fragment}from'react/jsx-runtime';import'client-only';import {useMemo}from'react';import {useRuleGroup,useStopEventPropagation,TestID}from'react-querybuilder';import {cn}from'./../../lib/utils.js';function O(t){const a=useRuleGroup(t),{schema:{controls:{ruleGroupBodyElements:s}}}=a,{schema:{classNames:n}}=t,c=useStopEventPropagation(a.addRule),i=useStopEventPropagation(a.addGroup),d=useStopEventPropagation(a.cloneGroup),m=useStopEventPropagation(a.toggleLockGroup),p=useStopEventPropagation(a.removeGroup),v=useMemo(()=>({...a,addGroup:i,addRule:c,cloneGroup:d,removeGroup:p,toggleLockGroup:m}),[i,c,d,a,p,m]);return jsxs("div",{className:cn(n.ruleGroup),children:[jsx("div",{className:cn(n.header),children:jsx(C,{...v})}),jsx("div",{className:cn(n.body),children:jsx(s,{...v})}),jsx("div",{className:cn(n.header),children:jsx(N,{...v})})]})}function C(t){const a=t.schema.showLockButtons,s=t.path.length>0,n=t.schema.showCloneButtons&&s,{schema:{controls:{combinatorSelector:c,cloneGroupAction:i,lockGroupAction:d,removeGroupAction:m}}}=t;return jsxs(Fragment,{children:[jsx(c,{testID:TestID.combinators,options:t.schema.combinators,ruleGroup:t.ruleGroup,value:t.combinator,title:t.translations.combinators.title,className:t.classNames.combinators,handleOnChange:t.onCombinatorChange,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,schema:t.schema},TestID.combinators),n&&jsx("div",{children:jsx(i,{testID:TestID.cloneGroup,label:t.translations.cloneRuleGroup.label,title:t.translations.cloneRuleGroup.title,className:t.classNames.cloneGroup,handleOnClick:t.cloneGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.cloneGroup)}),a&&jsx("div",{children:jsx(d,{testID:TestID.lockGroup,label:t.translations.lockGroup.label,title:t.translations.lockGroup.title,className:t.classNames.lockGroup,handleOnClick:t.toggleLockGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,disabledTranslation:t.parentDisabled?void 0:t.translations.lockGroupDisabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.lockGroup)}),s&&jsx("div",{children:jsx(m,{testID:TestID.removeGroup,label:t.translations.removeGroup.label,title:t.translations.removeGroup.title,className:t.classNames.removeGroup,handleOnClick:t.removeGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.removeGroup)})]})}function N(t){const{schema:{controls:{addGroupAction:a,addRuleAction:s}}}=t;return jsxs(Fragment,{children:[jsx(s,{testID:TestID.addRule,label:t.translations.addRule.label,title:t.translations.addRule.title,className:t.classNames.addRule,handleOnClick:t.addRule,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.addRule),jsx(a,{testID:TestID.addGroup,label:t.translations.addGroup.label,title:t.translations.addGroup.title,className:t.classNames.addGroup,handleOnClick:t.addGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.addGroup)]})}export{O as RuleGroup,N as RuleGroupFooterComponent,C as RuleGroupHeaderComponent};//# sourceMappingURL=group.js.map
4
- //# sourceMappingURL=group.js.map
3
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import'client-only';import {useMemo}from'react';import {useRuleGroup,useStopEventPropagation,TestID}from'react-querybuilder';import {cn}from'./../../lib/utils.js';function O(t){const a=useRuleGroup(t),{schema:{controls:{ruleGroupBodyElements:s}}}=a,{schema:{classNames:n}}=t,c=useStopEventPropagation(a.addRule),i=useStopEventPropagation(a.addGroup),d=useStopEventPropagation(a.cloneGroup),m=useStopEventPropagation(a.toggleLockGroup),p=useStopEventPropagation(a.removeGroup),v=useMemo(()=>({...a,addGroup:i,addRule:c,cloneGroup:d,removeGroup:p,toggleLockGroup:m}),[i,c,d,a,p,m]);return jsxs("div",{className:cn(n.ruleGroup),children:[jsx("div",{className:cn(n.header),children:jsx(C,{...v})}),jsx("div",{className:cn(n.body),children:jsx(s,{...v})}),jsx("div",{className:cn(n.header),children:jsx(N,{...v})})]})}function C(t){const a=t.schema.showLockButtons,s=t.path.length>0,n=t.schema.showCloneButtons&&s,{schema:{controls:{combinatorSelector:c,cloneGroupAction:i,lockGroupAction:d,removeGroupAction:m}}}=t;return jsxs(Fragment,{children:[jsx(c,{testID:TestID.combinators,options:t.schema.combinators,ruleGroup:t.ruleGroup,value:t.combinator,title:t.translations.combinators.title,className:t.classNames.combinators,handleOnChange:t.onCombinatorChange,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,schema:t.schema},TestID.combinators),n&&jsx("div",{children:jsx(i,{testID:TestID.cloneGroup,label:t.translations.cloneRuleGroup.label,title:t.translations.cloneRuleGroup.title,className:t.classNames.cloneGroup,handleOnClick:t.cloneGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.cloneGroup)}),a&&jsx("div",{children:jsx(d,{testID:TestID.lockGroup,label:t.translations.lockGroup.label,title:t.translations.lockGroup.title,className:t.classNames.lockGroup,handleOnClick:t.toggleLockGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,disabledTranslation:t.parentDisabled?void 0:t.translations.lockGroupDisabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.lockGroup)}),s&&jsx("div",{children:jsx(m,{testID:TestID.removeGroup,label:t.translations.removeGroup.label,title:t.translations.removeGroup.title,className:t.classNames.removeGroup,handleOnClick:t.removeGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.removeGroup)})]})}function N(t){const{schema:{controls:{addGroupAction:a,addRuleAction:s}}}=t;return jsxs(Fragment,{children:[jsx(s,{testID:TestID.addRule,label:t.translations.addRule.label,title:t.translations.addRule.title,className:t.classNames.addRule,handleOnClick:t.addRule,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.addRule),jsx(a,{testID:TestID.addGroup,label:t.translations.addGroup.label,title:t.translations.addGroup.title,className:t.classNames.addGroup,handleOnClick:t.addGroup,rules:t.ruleGroup.rules,level:t.path.length,path:t.path,disabled:t.disabled,context:t.context,validation:t.validationResult,ruleOrGroup:t.ruleGroup,schema:t.schema},TestID.addGroup)]})}export{O as RuleGroup,N as RuleGroupFooterComponent,C as RuleGroupHeaderComponent};//# sourceMappingURL=rule-group.js.map
4
+ //# sourceMappingURL=rule-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/query-builder/rule-group.tsx"],"names":["RuleGroup","group","useRuleGroup","props","r","useStopEventPropagation","addGroup","l","cloneGroup","addRule","removeGroup","toggleLockGroup","jsxs","b","cn","h","jsx","e","elementProps","RuleGroupHeaderComponent","shouldShowLock","ruleGroup","shouldShowClone","Fragment","R","TestID","o","RuleGroupFooterComponent"],"mappings":"qNAwBgBA,SACd,CAAMC,EAAQC,CAAAA,CAAaC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AWL,SAAU,CAAA,CAAA,CAAA,UACrB,CAAA,OAAA,CAAA,aAAyB,CACzB,SAAiB,CAAA,KAAA,CAAA,CAAA,CAAU,SAC3B,CAAA,KAAiB,CAAA,KAAK,CAAA,CAAA,CAAA,IACtB,CAAA,MAAgB,CAAA,IAChB,CAAA,CAAA,CAAA,IAAUA,CAAAA,QAAU,CAAA,CACpB,CAAA,QAASA,CAAU,OAAA,CACnB,CAAA,CAAA,OAAA,CAAA,UAAsB,CAAA,CAAA,CAAA,gBACtB,CAAA,WAAuB,CAAA,CAAA,CACvB,SAAkB,CAAA,MAAA,CAbbI,EAAO,MAAA,CAcd,CAAAC,MACAV,CAAAA,OAEE,CAAA,CAAAC,GAAA,CAAQQ,CAAAA,CAAO,CAAA,MAAA,CAAAC,MACf,SAAiB,CAAA,KAAA,CAAA,CAAA,CAAA,YAAsB,CAAA,QACvC,CAAA,KAAiB,CAAA,KAAA,CAAA,CAAA,CAAA,YAAsB,SACvC,CAAA,KAAA,CAAWL,SAAU,CAAA,CAAA,CAAA,UACrB,CAAA,QAAA,CAAA,aAAyB,CAAA,CACzB,CAAA,QAAiB,CAAA,KAAA,CAAA,CAAA,CAAU,SAC3B,CAAA,KAAiB,CAAA,KAAK,CAAA,CAAA,CAAA,IACtB,CAAA,WACA,CAAA,CAAA,CAAA,IAAUA,CAAAA,QAAU,CAAA,CACpB,CAAA,QAASA,CAAU,OAAA,CACnB,CAAA,CAAA,OAAA,CAAA,6BACA,CAAA,WAAuB,CAAA,CAAA,CACvB,SAAkB,CAAA,MAAA,CAbbI,CAAAA,CAAO,MAAA,CAAA,CAcdC,eAGN,CAAA,CAAA,CAAA,CAAA","file":"rule-group.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 { useMemo } from 'react';\nimport {\n type RuleGroupProps,\n TestID,\n useRuleGroup,\n useStopEventPropagation,\n} from 'react-querybuilder';\nimport { cn } from '@/lib/utils';\n\nexport function RuleGroup(props: RuleGroupProps) {\n const group = useRuleGroup(props);\n\n const {\n schema: {\n controls: { ruleGroupBodyElements: RuleGroupBodyElements },\n },\n } = group;\n\n const {\n schema: { classNames },\n } = props;\n\n const addRule = useStopEventPropagation(group.addRule);\n const addGroup = useStopEventPropagation(group.addGroup);\n const cloneGroup = useStopEventPropagation(group.cloneGroup);\n const toggleLockGroup = useStopEventPropagation(group.toggleLockGroup);\n const removeGroup = useStopEventPropagation(group.removeGroup);\n\n const elementProps = useMemo(\n () => ({\n ...group,\n addGroup,\n addRule,\n cloneGroup,\n removeGroup,\n toggleLockGroup,\n }),\n [addGroup, addRule, cloneGroup, group, removeGroup, toggleLockGroup],\n );\n\n return (\n <div className={cn(classNames.ruleGroup)}>\n <div className={cn(classNames.header)}>\n <RuleGroupHeaderComponent {...elementProps} />\n </div>\n <div className={cn(classNames.body)}>\n <RuleGroupBodyElements {...elementProps} />\n </div>\n <div className={cn(classNames.header)}>\n <RuleGroupFooterComponent {...elementProps} />\n </div>\n </div>\n );\n}\n\nexport function RuleGroupHeaderComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const shouldShowLock = ruleGroup.schema.showLockButtons;\n const isNotRoot = ruleGroup.path.length > 0;\n const shouldShowClone = ruleGroup.schema.showCloneButtons && isNotRoot;\n\n const {\n schema: {\n controls: {\n combinatorSelector: CombinatorSelectorControlElement,\n cloneGroupAction: CloneGroupActionControlElement,\n lockGroupAction: LockGroupActionControlElement,\n removeGroupAction: RemoveGroupActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <CombinatorSelectorControlElement\n key={TestID.combinators}\n testID={TestID.combinators}\n options={ruleGroup.schema.combinators}\n ruleGroup={ruleGroup.ruleGroup}\n value={ruleGroup.combinator}\n title={ruleGroup.translations.combinators.title}\n className={ruleGroup.classNames.combinators}\n handleOnChange={ruleGroup.onCombinatorChange}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n schema={ruleGroup.schema}\n />\n {shouldShowClone && (\n <div>\n <CloneGroupActionControlElement\n key={TestID.cloneGroup}\n testID={TestID.cloneGroup}\n label={ruleGroup.translations.cloneRuleGroup.label}\n title={ruleGroup.translations.cloneRuleGroup.title}\n className={ruleGroup.classNames.cloneGroup}\n handleOnClick={ruleGroup.cloneGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {shouldShowLock && (\n <div>\n <LockGroupActionControlElement\n key={TestID.lockGroup}\n testID={TestID.lockGroup}\n label={ruleGroup.translations.lockGroup.label}\n title={ruleGroup.translations.lockGroup.title}\n className={ruleGroup.classNames.lockGroup}\n handleOnClick={ruleGroup.toggleLockGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n disabledTranslation={\n ruleGroup.parentDisabled\n ? undefined\n : ruleGroup.translations.lockGroupDisabled\n }\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n {isNotRoot && (\n <div>\n <RemoveGroupActionControlElement\n key={TestID.removeGroup}\n testID={TestID.removeGroup}\n label={ruleGroup.translations.removeGroup.label}\n title={ruleGroup.translations.removeGroup.title}\n className={ruleGroup.classNames.removeGroup}\n handleOnClick={ruleGroup.removeGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </div>\n )}\n </>\n );\n}\n\nexport function RuleGroupFooterComponent(\n ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>,\n) {\n const {\n schema: {\n controls: {\n addGroupAction: AddGroupActionControlElement,\n addRuleAction: AddRuleActionControlElement,\n },\n },\n } = ruleGroup;\n\n return (\n <>\n <AddRuleActionControlElement\n key={TestID.addRule}\n testID={TestID.addRule}\n label={ruleGroup.translations.addRule.label}\n title={ruleGroup.translations.addRule.title}\n className={ruleGroup.classNames.addRule}\n handleOnClick={ruleGroup.addRule}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n <AddGroupActionControlElement\n key={TestID.addGroup}\n testID={TestID.addGroup}\n label={ruleGroup.translations.addGroup.label}\n title={ruleGroup.translations.addGroup.title}\n className={ruleGroup.classNames.addGroup}\n handleOnClick={ruleGroup.addGroup}\n rules={ruleGroup.ruleGroup.rules}\n level={ruleGroup.path.length}\n path={ruleGroup.path}\n disabled={ruleGroup.disabled}\n context={ruleGroup.context}\n validation={ruleGroup.validationResult}\n ruleOrGroup={ruleGroup.ruleGroup}\n schema={ruleGroup.schema}\n />\n </>\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
1
  'use client';
2
2
 
3
- import {jsxs,Fragment,jsx}from'react/jsx-runtime';import'client-only';import {useContext}from'react';import {useRule,useStopEventPropagation,TestID}from'react-querybuilder';function Z(d){const e=useRule(d),v=useContext(d.context),{classNames:r,disabled:C,operators:S,outerClassName:p,rule:{field:u,operator:n,value:f,valueSource:m},schema:{controls:{fieldSelector:N,operatorSelector:g,valueSourceSelector:k,valueEditor:D,cloneRuleAction:O,lockRuleAction:y,removeRuleAction:E},fields:b,listsAsArrays:A,parseNumbers:I,showCloneButtons:T,showLockButtons:x},fieldData:R,generateOnChangeHandler:s,inputType:L,parentDisabled:B,path:h,translations:l,valueEditorType:P,valueEditorSeparator:w,values:G,valueSources:V,valueSourceOptions:H,validationResult:Q}=e,F=useStopEventPropagation(e.cloneRule),q=useStopEventPropagation(e.toggleLockRule),z=useStopEventPropagation(e.removeRule),o={context:v,disabled:C,level:h.length,path:h,schema:e.schema,validation:Q},J=!["null","notNull"].includes(n)&&V.length>1;return jsxs(Fragment,{children:[v.showRuleLines&&jsx("span",{className:"rule-lines relative"}),jsxs("div",{className:p,children:[jsx(N,{testID:TestID.fields,options:b,title:l.fields.title,value:u,operator:n,className:r.fields,handleOnChange:s("field"),rule:e.rule,...o}),jsx(g,{testID:TestID.operators,field:u,fieldData:e.fieldData,title:e.translations.operators.title,options:S,value:n,className:e.classNames.operators,handleOnChange:e.generateOnChangeHandler("operator"),rule:e.rule,...o}),jsx(D,{testID:TestID.valueEditor,field:u,fieldData:R,title:l.value.title,operator:n,value:f,valueSource:m??"value",type:P,inputType:L,values:G,listsAsArrays:A,parseNumbers:I,separator:w,className:r.value,handleOnChange:s("value"),rule:e.rule,...o}),J&&jsx(k,{testID:TestID.valueSourceSelector,field:u,fieldData:R,title:l.valueSourceSelector.title,options:H,value:m??"value",className:r.valueSource,handleOnChange:s("valueSource"),rule:e.rule,...o})]}),jsxs("div",{className:p,children:[jsx(E,{testID:TestID.removeRule,label:l.removeRule.label??"remove",title:l.removeRule.title??"remove",className:r.removeRule,handleOnClick:z,ruleOrGroup:e.rule,...o}),T&&jsx(O,{testID:TestID.cloneRule,label:l.cloneRule.label??"clone",title:l.cloneRule.title??"clone",className:r.cloneRule,handleOnClick:F,ruleOrGroup:e.rule,...o}),x&&jsx(y,{testID:TestID.lockRule,label:l.lockRule.label??"lock",title:l.lockRule.title??"lock",className:r.lockRule,handleOnClick:q,disabledTranslation:B?void 0:l.lockRuleDisabled,ruleOrGroup:e.rule,...o})]})]})}export{Z as Rule};//# sourceMappingURL=rule.js.map
3
+ import {jsx,jsxs,Fragment}from'react/jsx-runtime';import'client-only';import {memo,useContext}from'react';import {useRule,useStopEventPropagation,TestID}from'react-querybuilder';import {Lines}from'../lines/index.js';import {RuleStyles}from'./styles.js';const{lines:Y}=RuleStyles(),Z=memo(function({path:e,props:u,context:o}){const c=e[0]===u.schema.getQuery()?.rules.length-1?"last":"branch";return jsx(Lines,{variant:c,size:"small",isVisible:o.showRuleLines,className:Y()})});function oe(s){const e=useRule(s),u=useContext(s.context),{classNames:o,disabled:R,operators:c,outerClassName:h,rule:{field:n,operator:i,value:S,valueSource:f},schema:{controls:{fieldSelector:y,operatorSelector:g,valueSourceSelector:N,valueEditor:k,cloneRuleAction:D,lockRuleAction:b,removeRuleAction:O},fields:E,listsAsArrays:L,parseNumbers:A,showCloneButtons:x,showLockButtons:I},fieldData:C,generateOnChangeHandler:d,inputType:T,parentDisabled:B,path:p,translations:l,valueEditorType:P,valueEditorSeparator:Q,values:w,valueSources:V,valueSourceOptions:G,validationResult:H}=e,z=useStopEventPropagation(e.cloneRule),F=useStopEventPropagation(e.toggleLockRule),q=useStopEventPropagation(e.removeRule),r={context:u,disabled:R,level:p.length,path:p,schema:e.schema,validation:H},J=!["null","notNull"].includes(i)&&V.length>1;return jsxs(Fragment,{children:[u.showRuleLines&&jsx(Z,{path:p,props:s,context:u}),jsxs("div",{className:h,children:[jsx(y,{testID:TestID.fields,options:E,title:l.fields.title,value:n,operator:i,className:o.fields,handleOnChange:d("field"),rule:e.rule,...r}),jsx(g,{testID:TestID.operators,field:n,fieldData:e.fieldData,title:e.translations.operators.title,options:c,value:i,className:e.classNames.operators,handleOnChange:e.generateOnChangeHandler("operator"),rule:e.rule,...r}),jsx(k,{testID:TestID.valueEditor,field:n,fieldData:C,title:l.value.title,operator:i,value:S,valueSource:f??"value",type:P,inputType:T,values:w,listsAsArrays:L,parseNumbers:A,separator:Q,className:o.value,handleOnChange:d("value"),rule:e.rule,...r}),J&&jsx(N,{testID:TestID.valueSourceSelector,field:n,fieldData:C,title:l.valueSourceSelector.title,options:G,value:f??"value",className:o.valueSource,handleOnChange:d("valueSource"),rule:e.rule,...r})]}),jsxs("div",{className:h,children:[jsx(O,{testID:TestID.removeRule,label:l.removeRule.label??"remove",title:l.removeRule.title??"remove",className:o.removeRule,handleOnClick:q,ruleOrGroup:e.rule,...r}),x&&jsx(D,{testID:TestID.cloneRule,label:l.cloneRule.label??"clone",title:l.cloneRule.title??"clone",className:o.cloneRule,handleOnClick:z,ruleOrGroup:e.rule,...r}),I&&jsx(b,{testID:TestID.lockRule,label:l.lockRule.label??"lock",title:l.lockRule.title??"lock",className:o.lockRule,handleOnClick:F,disabledTranslation:B?void 0:l.lockRuleDisabled,ruleOrGroup:e.rule,...r})]})]})}export{oe as Rule};//# sourceMappingURL=rule.js.map
4
4
  //# sourceMappingURL=rule.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/query-builder/rule.tsx"],"names":["Rule","props","rule","useRule","context","useContext","classNames","disabled","operators","outerClassName","field","operator","value","valueSource","FieldSelectorControlElement","OperatorSelectorControlElement","ValueSourceSelectorControlElement","ValueEditorControlElement","CloneRuleActionControlElement","LockRuleActionControlElement","RemoveRuleActionControlElement","fields","listsAsArrays","parseNumbers","showCloneButtons","showLockButtons","fieldData","generateOnChangeHandler","inputType","parentDisabled","path","translations","valueEditorType","valueEditorSeparator","values","valueSources","valueSourceOptions","validationResult","cloneRule","useStopEventPropagation","toggleLockRule","removeRule","coreRuleProps","renderValueSources","jsxs","Fragment","jsx","TestID"],"mappings":"6KAwBO,SAASA,CAAAA,CAAKC,CAAAA,CAAkB,C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a,SAAA,CAAU,KAAA,EAAS,OAAA,CACvC,MAAOA,CAAAA,CAAa,SAAA,CAAU,OAAS,OAAA,CACvC,SAAA,CAAWzB,EAAW,SAAA,CACtB,aAAA,CAAegC,CAAAA,CACf,WAAA,CAAapC,CAAAA,CAAK,IAAA,CACjB,GAAGwC,CAAAA,CACN,CAAA,CAEDjB,GACCqB,GAAAA,CAAC3B,CAAAA,CAAA,CACC,MAAA,CAAQ4B,MAAAA,CAAO,QAAA,CACf,KAAA,CAAOhB,CAAAA,CAAa,QAAA,CAAS,OAAS,MAAA,CACtC,KAAA,CAAOA,EAAa,QAAA,CAAS,KAAA,EAAS,OACtC,SAAA,CAAWzB,CAAAA,CAAW,QAAA,CACtB,aAAA,CAAekC,CAAAA,CACf,mBAAA,CACEX,EAAiB,MAAA,CAAYE,CAAAA,CAAa,iBAE5C,WAAA,CAAa7B,CAAAA,CAAK,KACjB,GAAGwC,CAAAA,CACN,CAAA,CAAA,CAEJ,CAAA,CAAA,CACF,CAEJ","file":"rule.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 { useContext } from 'react';\nimport {\n type RuleProps,\n TestID,\n useRule,\n useStopEventPropagation,\n} from 'react-querybuilder';\nimport type { QueryBuilderContextType } from './types';\n\nexport function Rule(props: RuleProps) {\n const rule = useRule(props);\n const context: QueryBuilderContextType = useContext(props.context);\n\n const {\n classNames,\n disabled,\n operators,\n outerClassName,\n rule: { field, operator, value, valueSource },\n schema: {\n controls: {\n fieldSelector: FieldSelectorControlElement,\n operatorSelector: OperatorSelectorControlElement,\n valueSourceSelector: ValueSourceSelectorControlElement,\n valueEditor: ValueEditorControlElement,\n cloneRuleAction: CloneRuleActionControlElement,\n lockRuleAction: LockRuleActionControlElement,\n removeRuleAction: RemoveRuleActionControlElement,\n },\n fields,\n listsAsArrays,\n parseNumbers,\n showCloneButtons,\n showLockButtons,\n },\n fieldData,\n generateOnChangeHandler,\n inputType,\n parentDisabled,\n path,\n translations,\n valueEditorType,\n valueEditorSeparator,\n values,\n valueSources,\n valueSourceOptions,\n validationResult,\n } = rule;\n\n const cloneRule = useStopEventPropagation(rule.cloneRule);\n const toggleLockRule = useStopEventPropagation(rule.toggleLockRule);\n const removeRule = useStopEventPropagation(rule.removeRule);\n\n const coreRuleProps = {\n context,\n disabled,\n level: path.length,\n path,\n schema: rule.schema,\n validation: validationResult,\n };\n\n const renderValueSources =\n !['null', 'notNull'].includes(operator) && valueSources.length > 1;\n\n return (\n <>\n {context.showRuleLines && <span className='rule-lines relative' />}\n <div className={outerClassName}>\n <FieldSelectorControlElement\n testID={TestID.fields}\n options={fields}\n title={translations.fields.title}\n value={field}\n operator={operator}\n className={classNames.fields}\n handleOnChange={generateOnChangeHandler('field')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n <OperatorSelectorControlElement\n testID={TestID.operators}\n field={field}\n fieldData={rule.fieldData}\n title={rule.translations.operators.title}\n options={operators}\n value={operator}\n className={rule.classNames.operators}\n handleOnChange={rule.generateOnChangeHandler('operator')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n <ValueEditorControlElement\n testID={TestID.valueEditor}\n field={field}\n fieldData={fieldData}\n title={translations.value.title}\n operator={operator}\n value={value}\n valueSource={valueSource ?? 'value'}\n type={valueEditorType}\n inputType={inputType}\n values={values}\n listsAsArrays={listsAsArrays}\n parseNumbers={parseNumbers}\n separator={valueEditorSeparator}\n className={classNames.value}\n handleOnChange={generateOnChangeHandler('value')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n {renderValueSources && (\n <ValueSourceSelectorControlElement\n testID={TestID.valueSourceSelector}\n field={field}\n fieldData={fieldData}\n title={translations.valueSourceSelector.title}\n options={valueSourceOptions}\n value={valueSource ?? 'value'}\n className={classNames.valueSource}\n handleOnChange={generateOnChangeHandler('valueSource')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n )}\n </div>\n <div className={outerClassName}>\n <RemoveRuleActionControlElement\n testID={TestID.removeRule}\n label={translations.removeRule.label ?? 'remove'}\n title={translations.removeRule.title ?? 'remove'}\n className={classNames.removeRule}\n handleOnClick={removeRule}\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n {showCloneButtons && (\n <CloneRuleActionControlElement\n testID={TestID.cloneRule}\n label={translations.cloneRule.label ?? 'clone'}\n title={translations.cloneRule.title ?? 'clone'}\n className={classNames.cloneRule}\n handleOnClick={cloneRule}\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n )}\n {showLockButtons && (\n <LockRuleActionControlElement\n testID={TestID.lockRule}\n label={translations.lockRule.label ?? 'lock'}\n title={translations.lockRule.title ?? 'lock'}\n className={classNames.lockRule}\n handleOnClick={toggleLockRule}\n disabledTranslation={\n parentDisabled ? undefined : translations.lockRuleDisabled\n }\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n )}\n </div>\n </>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../../src/components/query-builder/rule.tsx"],"names":["QueryBuilderLines","X","props","path","line","W","Rule","useRule","context","U","M","classNames","operators","field","valueSource","FieldSelectorControlElement","ValueEditorControlElement","listsAsArrays","parseNumbers","fieldData","inputType","translations","valueSources","m","toggleLockRule","useStopEventPropagation","coreRuleProps","rule","renderValueSources","v","t","jsxs","TestID","a","jsx","OperatorSelectorControlElement","valueEditorType","valueEditorSeparator","ValueSourceSelectorControlElement","valueSourceOptions","RemoveRuleActionControlElement","removeRule","showCloneButtons","CloneRuleActionControlElement","cloneRule","showLockButtons","LockRuleActionControlElement"],"mappings":"6PA2B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,CAAA,IACC,CAAA,GAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAAV,IAAA,CAAA,KACH,CAAA,CAAA,SAAAK,CAACM,EAAA,QACSR,CAAAA,CAAOF,GAAA,CAAA,CAAA,CAAA,CAAA,MACf,CAAAG,MAAA,CAAA,UAAoB,CAAA,KAAW,CAAA,CAAA,CAAA,UAAS,CAAA,KACxC,EAAA,QAAoB,CAAA,KAAW,CAAA,CAAA,CAAA,UAAS,CAAA,eAClB,CAAA,SACtB,CAAA,CAAA,CAAA,UAAA,CAAeQ,aACf,CAAad,CAAAA,CAAK,WAEpB,CACCe,CAAAA,CAAAA,IACEC,CAAA,QACSX,EAAOF,GAAA,CAAA,CAAA,CAAA,CAAA,MACf,CAAAG,MAAA,CAAA,SAAoB,CAAA,KAAU,CAAA,CAAA,CAAA,SAAS,CAAA,KACvC,EAAOZ,OAAa,CAAA,KAAU,CAAA,CAAA,CAAA,SAAS,CAAA,KACvC,EAAA,iBACA,CAAA,CAAA,CAAA,SAAA,CAAeuB,aACf,CAAajB,CAAAA,CAAK,WAEpB,CAEDkB,CAAAA,CAAAA,IACEC,CAAA,GACC,CAAA,CAAA,CAAA,CAAA,CAAQd,EAAOF,aACf,CAAAG,MAAA,CAAA,QAAoB,CAAA,KAAS,CAAA,CAAA,CAAA,QAAS,CACtC,KAAA,EAAOZ,MAAa,CAAA,KAAS,CAAA,CAAA,CAAA,QAAS,CACtC,KAAA,EAAA,MAAsB,CAAA,SACtB,CAAA,CAAA,CAAA,QAAA,CAAeG,aACf,CAAA,CAAA,CAAA,mBAC4C,CAAA,CAAA,CAAA,MAAA,CAAA,CAAA,CAAA,gBAE/BG,CAAK,WAEpB,CAAA,CAEJ,CAAA,IAGN,CAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA","file":"rule.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 { memo, useContext } from 'react';\nimport {\n type Path,\n type RuleProps,\n TestID,\n useRule,\n useStopEventPropagation,\n} from 'react-querybuilder';\nimport { Lines } from '../lines';\nimport { RuleStyles } from './styles';\nimport type { QueryBuilderContextType } from './types';\n\nconst { lines } = RuleStyles();\n\nconst QueryBuilderLines = memo(function QueryBuilderLines({\n path,\n props,\n context,\n}: {\n path: Path;\n props: RuleProps;\n context: QueryBuilderContextType;\n}) {\n const isLastRule = path[0] === props.schema.getQuery()?.rules.length - 1;\n const line = isLastRule ? 'last' : 'branch';\n\n return (\n <Lines\n variant={line}\n size='small'\n isVisible={context.showRuleLines}\n className={lines()}\n />\n );\n});\n\nexport function Rule(props: RuleProps) {\n const rule = useRule(props);\n const context: QueryBuilderContextType = useContext(props.context);\n\n const {\n classNames,\n disabled,\n operators,\n outerClassName,\n rule: { field, operator, value, valueSource },\n schema: {\n controls: {\n fieldSelector: FieldSelectorControlElement,\n operatorSelector: OperatorSelectorControlElement,\n valueSourceSelector: ValueSourceSelectorControlElement,\n valueEditor: ValueEditorControlElement,\n cloneRuleAction: CloneRuleActionControlElement,\n lockRuleAction: LockRuleActionControlElement,\n removeRuleAction: RemoveRuleActionControlElement,\n },\n fields,\n listsAsArrays,\n parseNumbers,\n showCloneButtons,\n showLockButtons,\n },\n fieldData,\n generateOnChangeHandler,\n inputType,\n parentDisabled,\n path,\n translations,\n valueEditorType,\n valueEditorSeparator,\n values,\n valueSources,\n valueSourceOptions,\n validationResult,\n } = rule;\n\n const cloneRule = useStopEventPropagation(rule.cloneRule);\n const toggleLockRule = useStopEventPropagation(rule.toggleLockRule);\n const removeRule = useStopEventPropagation(rule.removeRule);\n\n const coreRuleProps = {\n context,\n disabled,\n level: path.length,\n path,\n schema: rule.schema,\n validation: validationResult,\n };\n const renderValueSources =\n !['null', 'notNull'].includes(operator) && valueSources.length > 1;\n\n return (\n <>\n {context.showRuleLines && (\n <QueryBuilderLines path={path} props={props} context={context} />\n )}\n <div className={outerClassName}>\n <FieldSelectorControlElement\n testID={TestID.fields}\n options={fields}\n title={translations.fields.title}\n value={field}\n operator={operator}\n className={classNames.fields}\n handleOnChange={generateOnChangeHandler('field')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n <OperatorSelectorControlElement\n testID={TestID.operators}\n field={field}\n fieldData={rule.fieldData}\n title={rule.translations.operators.title}\n options={operators}\n value={operator}\n className={rule.classNames.operators}\n handleOnChange={rule.generateOnChangeHandler('operator')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n <ValueEditorControlElement\n testID={TestID.valueEditor}\n field={field}\n fieldData={fieldData}\n title={translations.value.title}\n operator={operator}\n value={value}\n valueSource={valueSource ?? 'value'}\n type={valueEditorType}\n inputType={inputType}\n values={values}\n listsAsArrays={listsAsArrays}\n parseNumbers={parseNumbers}\n separator={valueEditorSeparator}\n className={classNames.value}\n handleOnChange={generateOnChangeHandler('value')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n {renderValueSources && (\n <ValueSourceSelectorControlElement\n testID={TestID.valueSourceSelector}\n field={field}\n fieldData={fieldData}\n title={translations.valueSourceSelector.title}\n options={valueSourceOptions}\n value={valueSource ?? 'value'}\n className={classNames.valueSource}\n handleOnChange={generateOnChangeHandler('valueSource')}\n rule={rule.rule}\n {...coreRuleProps}\n />\n )}\n </div>\n <div className={outerClassName}>\n <RemoveRuleActionControlElement\n testID={TestID.removeRule}\n label={translations.removeRule.label ?? 'remove'}\n title={translations.removeRule.title ?? 'remove'}\n className={classNames.removeRule}\n handleOnClick={removeRule}\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n {showCloneButtons && (\n <CloneRuleActionControlElement\n testID={TestID.cloneRule}\n label={translations.cloneRule.label ?? 'clone'}\n title={translations.cloneRule.title ?? 'clone'}\n className={classNames.cloneRule}\n handleOnClick={cloneRule}\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n )}\n {showLockButtons && (\n <LockRuleActionControlElement\n testID={TestID.lockRule}\n label={translations.lockRule.label ?? 'lock'}\n title={translations.lockRule.title ?? 'lock'}\n className={classNames.lockRule}\n handleOnClick={toggleLockRule}\n disabledTranslation={\n parentDisabled ? undefined : translations.lockRuleDisabled\n }\n ruleOrGroup={rule.rule}\n {...coreRuleProps}\n />\n )}\n </div>\n </>\n );\n}\n"]}