@qoretechnologies/reqore 0.76.0-pr.673.gfcc9a9f → 0.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (677) hide show
  1. package/.claude/CLAUDE.md +2 -37
  2. package/dist/components/Accordion/index.js +89 -53
  3. package/dist/components/Accordion/index.js.map +1 -1
  4. package/dist/components/Breadcrumbs/index.js +71 -33
  5. package/dist/components/Breadcrumbs/index.js.map +1 -1
  6. package/dist/components/Breadcrumbs/item.js +13 -8
  7. package/dist/components/Breadcrumbs/item.js.map +1 -1
  8. package/dist/components/Bubble/index.js +93 -53
  9. package/dist/components/Bubble/index.js.map +1 -1
  10. package/dist/components/Button/index.d.ts +11 -1
  11. package/dist/components/Button/index.d.ts.map +1 -1
  12. package/dist/components/Button/index.js +156 -114
  13. package/dist/components/Button/index.js.map +1 -1
  14. package/dist/components/Callout/index.js +84 -45
  15. package/dist/components/Callout/index.js.map +1 -1
  16. package/dist/components/Checkbox/index.js +106 -68
  17. package/dist/components/Checkbox/index.js.map +1 -1
  18. package/dist/components/Collapse/index.js +56 -19
  19. package/dist/components/Collapse/index.js.map +1 -1
  20. package/dist/components/CollapsibleContent/index.js +78 -39
  21. package/dist/components/CollapsibleContent/index.js.map +1 -1
  22. package/dist/components/Collection/index.d.ts +7 -8
  23. package/dist/components/Collection/index.d.ts.map +1 -1
  24. package/dist/components/Collection/index.js +117 -75
  25. package/dist/components/Collection/index.js.map +1 -1
  26. package/dist/components/Collection/item.js +73 -33
  27. package/dist/components/Collection/item.js.map +1 -1
  28. package/dist/components/Columns/column.js +39 -3
  29. package/dist/components/Columns/column.js.map +1 -1
  30. package/dist/components/Columns/index.js +47 -8
  31. package/dist/components/Columns/index.js.map +1 -1
  32. package/dist/components/Comment/index.js +29 -22
  33. package/dist/components/Comment/index.js.map +1 -1
  34. package/dist/components/CommentFeed/index.js +14 -7
  35. package/dist/components/CommentFeed/index.js.map +1 -1
  36. package/dist/components/Content/index.js +48 -10
  37. package/dist/components/Content/index.js.map +1 -1
  38. package/dist/components/Content/wrapper.js +13 -8
  39. package/dist/components/Content/wrapper.js.map +1 -1
  40. package/dist/components/ControlGroup/index.d.ts.map +1 -1
  41. package/dist/components/ControlGroup/index.js +171 -58
  42. package/dist/components/ControlGroup/index.js.map +1 -1
  43. package/dist/components/ControlGroup/item.js +18 -12
  44. package/dist/components/ControlGroup/item.js.map +1 -1
  45. package/dist/components/DataView/helpers.js +53 -37
  46. package/dist/components/DataView/helpers.js.map +1 -1
  47. package/dist/components/DataView/index.js +234 -182
  48. package/dist/components/DataView/index.js.map +1 -1
  49. package/dist/components/DatePicker/MonthYearDropdowns.js +19 -12
  50. package/dist/components/DatePicker/MonthYearDropdowns.js.map +1 -1
  51. package/dist/components/DatePicker/index.js +65 -58
  52. package/dist/components/DatePicker/index.js.map +1 -1
  53. package/dist/components/DescriptionList/index.js +65 -26
  54. package/dist/components/DescriptionList/index.js.map +1 -1
  55. package/dist/components/Drawer/backdrop.js +23 -17
  56. package/dist/components/Drawer/backdrop.js.map +1 -1
  57. package/dist/components/Drawer/index.d.ts +89 -0
  58. package/dist/components/Drawer/index.d.ts.map +1 -1
  59. package/dist/components/Drawer/index.js +236 -69
  60. package/dist/components/Drawer/index.js.map +1 -1
  61. package/dist/components/Dropdown/index.d.ts.map +1 -1
  62. package/dist/components/Dropdown/index.js +23 -18
  63. package/dist/components/Dropdown/index.js.map +1 -1
  64. package/dist/components/Dropdown/item.d.ts +1 -1
  65. package/dist/components/Dropdown/item.d.ts.map +1 -1
  66. package/dist/components/Dropdown/item.js +34 -11
  67. package/dist/components/Dropdown/item.js.map +1 -1
  68. package/dist/components/Dropdown/list.d.ts.map +1 -1
  69. package/dist/components/Dropdown/list.js +96 -74
  70. package/dist/components/Dropdown/list.js.map +1 -1
  71. package/dist/components/Effect/index.d.ts +24 -1
  72. package/dist/components/Effect/index.d.ts.map +1 -1
  73. package/dist/components/Effect/index.js +107 -65
  74. package/dist/components/Effect/index.js.map +1 -1
  75. package/dist/components/EmptyState/index.js +26 -20
  76. package/dist/components/EmptyState/index.js.map +1 -1
  77. package/dist/components/EntityRow/index.js +98 -59
  78. package/dist/components/EntityRow/index.js.map +1 -1
  79. package/dist/components/ErrorBoundary/index.js +15 -12
  80. package/dist/components/ErrorBoundary/index.js.map +1 -1
  81. package/dist/components/ExportModal/index.js +24 -17
  82. package/dist/components/ExportModal/index.js.map +1 -1
  83. package/dist/components/FadeScroller/index.js +29 -23
  84. package/dist/components/FadeScroller/index.js.map +1 -1
  85. package/dist/components/FeatureCard/index.js +84 -45
  86. package/dist/components/FeatureCard/index.js.map +1 -1
  87. package/dist/components/GlobalModalsWrapper/index.js +16 -13
  88. package/dist/components/GlobalModalsWrapper/index.js.map +1 -1
  89. package/dist/components/Header/index.js +33 -21
  90. package/dist/components/Header/index.js.map +1 -1
  91. package/dist/components/Icon/index.js +77 -41
  92. package/dist/components/Icon/index.js.map +1 -1
  93. package/dist/components/IconPicker/index.js +80 -41
  94. package/dist/components/IconPicker/index.js.map +1 -1
  95. package/dist/components/Input/index.js +94 -55
  96. package/dist/components/Input/index.js.map +1 -1
  97. package/dist/components/InputClearButton/index.js +20 -14
  98. package/dist/components/InputClearButton/index.js.map +1 -1
  99. package/dist/components/InternalPopover/index.d.ts +1 -0
  100. package/dist/components/InternalPopover/index.d.ts.map +1 -1
  101. package/dist/components/InternalPopover/index.js +190 -54
  102. package/dist/components/InternalPopover/index.js.map +1 -1
  103. package/dist/components/KeyValueTable/index.js +18 -11
  104. package/dist/components/KeyValueTable/index.js.map +1 -1
  105. package/dist/components/KeyboardShortcut/index.js +28 -22
  106. package/dist/components/KeyboardShortcut/index.js.map +1 -1
  107. package/dist/components/Label/index.js +11 -5
  108. package/dist/components/Label/index.js.map +1 -1
  109. package/dist/components/Layout/content.js +10 -5
  110. package/dist/components/Layout/content.js.map +1 -1
  111. package/dist/components/Layout/index.js +46 -8
  112. package/dist/components/Layout/index.js.map +1 -1
  113. package/dist/components/Link/index.js +63 -24
  114. package/dist/components/Link/index.js.map +1 -1
  115. package/dist/components/Menu/divider.js +56 -20
  116. package/dist/components/Menu/divider.js.map +1 -1
  117. package/dist/components/Menu/index.js +67 -29
  118. package/dist/components/Menu/index.js.map +1 -1
  119. package/dist/components/Menu/item.js +20 -18
  120. package/dist/components/Menu/item.js.map +1 -1
  121. package/dist/components/Menu/section.js +19 -12
  122. package/dist/components/Menu/section.js.map +1 -1
  123. package/dist/components/Message/index.js +33 -28
  124. package/dist/components/Message/index.js.map +1 -1
  125. package/dist/components/Modal/index.js +18 -15
  126. package/dist/components/Modal/index.js.map +1 -1
  127. package/dist/components/MultiSelect/index.d.ts +3 -3
  128. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  129. package/dist/components/MultiSelect/index.js +10 -4
  130. package/dist/components/MultiSelect/index.js.map +1 -1
  131. package/dist/components/NavRail/index.js +145 -106
  132. package/dist/components/NavRail/index.js.map +1 -1
  133. package/dist/components/Navbar/divider.js +14 -9
  134. package/dist/components/Navbar/divider.js.map +1 -1
  135. package/dist/components/Navbar/group.js +45 -9
  136. package/dist/components/Navbar/group.js.map +1 -1
  137. package/dist/components/Navbar/index.js +53 -17
  138. package/dist/components/Navbar/index.js.map +1 -1
  139. package/dist/components/Navbar/item.js +50 -15
  140. package/dist/components/Navbar/item.js.map +1 -1
  141. package/dist/components/Notifications/index.js +44 -9
  142. package/dist/components/Notifications/index.js.map +1 -1
  143. package/dist/components/Notifications/notification.js +125 -79
  144. package/dist/components/Notifications/notification.js.map +1 -1
  145. package/dist/components/Notifications/styles.js +69 -33
  146. package/dist/components/Notifications/styles.js.map +1 -1
  147. package/dist/components/Paging/index.js +63 -24
  148. package/dist/components/Paging/index.js.map +1 -1
  149. package/dist/components/Panel/LabelEditor.js +21 -15
  150. package/dist/components/Panel/LabelEditor.js.map +1 -1
  151. package/dist/components/Panel/NonResponsiveActions.js +15 -9
  152. package/dist/components/Panel/NonResponsiveActions.js.map +1 -1
  153. package/dist/components/Panel/index.d.ts.map +1 -1
  154. package/dist/components/Panel/index.js +228 -180
  155. package/dist/components/Panel/index.js.map +1 -1
  156. package/dist/components/Panel/responsive.d.ts +24 -0
  157. package/dist/components/Panel/responsive.d.ts.map +1 -0
  158. package/dist/components/Panel/responsive.js +30 -0
  159. package/dist/components/Panel/responsive.js.map +1 -0
  160. package/dist/components/Paragraph/index.d.ts +8 -0
  161. package/dist/components/Paragraph/index.d.ts.map +1 -1
  162. package/dist/components/Paragraph/index.js +19 -13
  163. package/dist/components/Paragraph/index.js.map +1 -1
  164. package/dist/components/Popover/index.d.ts +46 -0
  165. package/dist/components/Popover/index.d.ts.map +1 -1
  166. package/dist/components/Popover/index.js +240 -42
  167. package/dist/components/Popover/index.js.map +1 -1
  168. package/dist/components/Progress/index.js +78 -40
  169. package/dist/components/Progress/index.js.map +1 -1
  170. package/dist/components/RadioGroup/index.d.ts.map +1 -1
  171. package/dist/components/RadioGroup/index.js +23 -9
  172. package/dist/components/RadioGroup/index.js.map +1 -1
  173. package/dist/components/Rating/index.js +81 -43
  174. package/dist/components/Rating/index.js.map +1 -1
  175. package/dist/components/RichTextEditor/index.d.ts.map +1 -1
  176. package/dist/components/RichTextEditor/index.js +362 -114
  177. package/dist/components/RichTextEditor/index.js.map +1 -1
  178. package/dist/components/SegmentedControl/index.js +97 -59
  179. package/dist/components/SegmentedControl/index.js.map +1 -1
  180. package/dist/components/Select/index.d.ts +68 -29
  181. package/dist/components/Select/index.d.ts.map +1 -1
  182. package/dist/components/Select/index.js +75 -140
  183. package/dist/components/Select/index.js.map +1 -1
  184. package/dist/components/Select/valuePreview.d.ts +11 -0
  185. package/dist/components/Select/valuePreview.d.ts.map +1 -0
  186. package/dist/components/Select/valuePreview.js +64 -0
  187. package/dist/components/Select/valuePreview.js.map +1 -0
  188. package/dist/components/SeverityRow/index.js +85 -47
  189. package/dist/components/SeverityRow/index.js.map +1 -1
  190. package/dist/components/Skeleton/index.js +46 -9
  191. package/dist/components/Skeleton/index.js.map +1 -1
  192. package/dist/components/Slider/index.js +76 -37
  193. package/dist/components/Slider/index.js.map +1 -1
  194. package/dist/components/Spacer/index.js +61 -25
  195. package/dist/components/Spacer/index.js.map +1 -1
  196. package/dist/components/Span/index.js +19 -13
  197. package/dist/components/Span/index.js.map +1 -1
  198. package/dist/components/Spinner/index.js +16 -9
  199. package/dist/components/Spinner/index.js.map +1 -1
  200. package/dist/components/StackedBar/index.js +69 -34
  201. package/dist/components/StackedBar/index.js.map +1 -1
  202. package/dist/components/Statistic/index.js +73 -35
  203. package/dist/components/Statistic/index.js.map +1 -1
  204. package/dist/components/Table/body.d.ts.map +1 -1
  205. package/dist/components/Table/body.js +107 -48
  206. package/dist/components/Table/body.js.map +1 -1
  207. package/dist/components/Table/cell.d.ts.map +1 -1
  208. package/dist/components/Table/cell.js +68 -29
  209. package/dist/components/Table/cell.js.map +1 -1
  210. package/dist/components/Table/header.js +69 -33
  211. package/dist/components/Table/header.js.map +1 -1
  212. package/dist/components/Table/headerCell.js +65 -26
  213. package/dist/components/Table/headerCell.js.map +1 -1
  214. package/dist/components/Table/helpers.d.ts +62 -28
  215. package/dist/components/Table/helpers.d.ts.map +1 -1
  216. package/dist/components/Table/helpers.js +189 -111
  217. package/dist/components/Table/helpers.js.map +1 -1
  218. package/dist/components/Table/index.d.ts +30 -2
  219. package/dist/components/Table/index.d.ts.map +1 -1
  220. package/dist/components/Table/index.js +142 -95
  221. package/dist/components/Table/index.js.map +1 -1
  222. package/dist/components/Table/row.d.ts +29 -1
  223. package/dist/components/Table/row.d.ts.map +1 -1
  224. package/dist/components/Table/row.js +163 -60
  225. package/dist/components/Table/row.js.map +1 -1
  226. package/dist/components/Table/scrollbar.js +37 -31
  227. package/dist/components/Table/scrollbar.js.map +1 -1
  228. package/dist/components/Table/value.js +15 -9
  229. package/dist/components/Table/value.js.map +1 -1
  230. package/dist/components/Tabs/content.js +17 -12
  231. package/dist/components/Tabs/content.js.map +1 -1
  232. package/dist/components/Tabs/index.js +52 -14
  233. package/dist/components/Tabs/index.js.map +1 -1
  234. package/dist/components/Tabs/item.js +65 -26
  235. package/dist/components/Tabs/item.js.map +1 -1
  236. package/dist/components/Tabs/list.js +101 -60
  237. package/dist/components/Tabs/list.js.map +1 -1
  238. package/dist/components/Tag/group.js +49 -11
  239. package/dist/components/Tag/group.js.map +1 -1
  240. package/dist/components/Tag/index.d.ts +5 -2
  241. package/dist/components/Tag/index.d.ts.map +1 -1
  242. package/dist/components/Tag/index.js +147 -92
  243. package/dist/components/Tag/index.js.map +1 -1
  244. package/dist/components/Testimonial/index.js +82 -44
  245. package/dist/components/Testimonial/index.js.map +1 -1
  246. package/dist/components/Textarea/index.d.ts +10 -0
  247. package/dist/components/Textarea/index.d.ts.map +1 -1
  248. package/dist/components/Textarea/index.js +167 -63
  249. package/dist/components/Textarea/index.js.map +1 -1
  250. package/dist/components/Tier/index.js +58 -19
  251. package/dist/components/Tier/index.js.map +1 -1
  252. package/dist/components/TimeAgo/index.js +16 -9
  253. package/dist/components/TimeAgo/index.js.map +1 -1
  254. package/dist/components/Timeline/index.js +117 -78
  255. package/dist/components/Timeline/index.js.map +1 -1
  256. package/dist/components/TooltipComponent/index.js +10 -7
  257. package/dist/components/TooltipComponent/index.js.map +1 -1
  258. package/dist/components/Tree/index.d.ts +2 -1
  259. package/dist/components/Tree/index.d.ts.map +1 -1
  260. package/dist/components/Tree/index.js +99 -70
  261. package/dist/components/Tree/index.js.map +1 -1
  262. package/dist/components/Tree/modal.js +20 -13
  263. package/dist/components/Tree/modal.js.map +1 -1
  264. package/dist/constants/animations.js +5 -2
  265. package/dist/constants/animations.js.map +1 -1
  266. package/dist/constants/colors.js +5 -2
  267. package/dist/constants/colors.js.map +1 -1
  268. package/dist/constants/fonts.js +10 -6
  269. package/dist/constants/fonts.js.map +1 -1
  270. package/dist/constants/paging.js +6 -2
  271. package/dist/constants/paging.js.map +1 -1
  272. package/dist/constants/sizes.js +55 -51
  273. package/dist/constants/sizes.js.map +1 -1
  274. package/dist/constants/theme.js +22 -19
  275. package/dist/constants/theme.js.map +1 -1
  276. package/dist/containers/Paging.js +16 -13
  277. package/dist/containers/Paging.js.map +1 -1
  278. package/dist/containers/ReqoreProvider.d.ts.map +1 -1
  279. package/dist/containers/ReqoreProvider.js +62 -52
  280. package/dist/containers/ReqoreProvider.js.map +1 -1
  281. package/dist/containers/ThemeProvider.js +13 -8
  282. package/dist/containers/ThemeProvider.js.map +1 -1
  283. package/dist/containers/UIProvider.d.ts.map +1 -1
  284. package/dist/containers/UIProvider.js +63 -31
  285. package/dist/containers/UIProvider.js.map +1 -1
  286. package/dist/context/CustomThemeContext.js +5 -3
  287. package/dist/context/CustomThemeContext.js.map +1 -1
  288. package/dist/context/ReqoreContext.js +6 -4
  289. package/dist/context/ReqoreContext.js.map +1 -1
  290. package/dist/context/ThemeContext.js +5 -3
  291. package/dist/context/ThemeContext.js.map +1 -1
  292. package/dist/helpers/animations.js +5 -2
  293. package/dist/helpers/animations.js.map +1 -1
  294. package/dist/helpers/colors.js +103 -78
  295. package/dist/helpers/colors.js.map +1 -1
  296. package/dist/helpers/dates.js +17 -8
  297. package/dist/helpers/dates.js.map +1 -1
  298. package/dist/helpers/search.js +11 -5
  299. package/dist/helpers/search.js.map +1 -1
  300. package/dist/helpers/selectItem.d.ts +23 -0
  301. package/dist/helpers/selectItem.d.ts.map +1 -0
  302. package/dist/helpers/selectItem.js +147 -0
  303. package/dist/helpers/selectItem.js.map +1 -0
  304. package/dist/helpers/shortcuts.js +14 -7
  305. package/dist/helpers/shortcuts.js.map +1 -1
  306. package/dist/helpers/styled.js +5 -1
  307. package/dist/helpers/styled.js.map +1 -1
  308. package/dist/helpers/time.js +5 -1
  309. package/dist/helpers/time.js.map +1 -1
  310. package/dist/helpers/utils.js +58 -38
  311. package/dist/helpers/utils.js.map +1 -1
  312. package/dist/hooks/useAutoFocus.js +14 -10
  313. package/dist/hooks/useAutoFocus.js.map +1 -1
  314. package/dist/hooks/useCloneThroughFragments.js +45 -8
  315. package/dist/hooks/useCloneThroughFragments.js.map +1 -1
  316. package/dist/hooks/useCombinedRefs.js +11 -5
  317. package/dist/hooks/useCombinedRefs.js.map +1 -1
  318. package/dist/hooks/useComponentTooltip.js +11 -7
  319. package/dist/hooks/useComponentTooltip.js.map +1 -1
  320. package/dist/hooks/useFitTextSize.js +13 -9
  321. package/dist/hooks/useFitTextSize.js.map +1 -1
  322. package/dist/hooks/useFocusTrap.js +10 -7
  323. package/dist/hooks/useFocusTrap.js.map +1 -1
  324. package/dist/hooks/useLatestZIndex.js +8 -6
  325. package/dist/hooks/useLatestZIndex.js.map +1 -1
  326. package/dist/hooks/useMarqueeOnHover.js +34 -25
  327. package/dist/hooks/useMarqueeOnHover.js.map +1 -1
  328. package/dist/hooks/useNarrowContainer.js +12 -8
  329. package/dist/hooks/useNarrowContainer.js.map +1 -1
  330. package/dist/hooks/useOutsideClick.js +6 -4
  331. package/dist/hooks/useOutsideClick.js.map +1 -1
  332. package/dist/hooks/usePaging.js +27 -20
  333. package/dist/hooks/usePaging.js.map +1 -1
  334. package/dist/hooks/useQueryWithDelay.js +12 -8
  335. package/dist/hooks/useQueryWithDelay.js.map +1 -1
  336. package/dist/hooks/useReqore.js +11 -4
  337. package/dist/hooks/useReqore.js.map +1 -1
  338. package/dist/hooks/useReqoreContext.js +11 -4
  339. package/dist/hooks/useReqoreContext.js.map +1 -1
  340. package/dist/hooks/useReqoreEffect.js +9 -5
  341. package/dist/hooks/useReqoreEffect.js.map +1 -1
  342. package/dist/hooks/useScrollFade.js +12 -8
  343. package/dist/hooks/useScrollFade.js.map +1 -1
  344. package/dist/hooks/useTextareaAutoSize.js +5 -3
  345. package/dist/hooks/useTextareaAutoSize.js.map +1 -1
  346. package/dist/hooks/useTheme.js +22 -15
  347. package/dist/hooks/useTheme.js.map +1 -1
  348. package/dist/hooks/useWhyDidYouUpdate.js +7 -4
  349. package/dist/hooks/useWhyDidYouUpdate.js.map +1 -1
  350. package/dist/index.d.ts +2 -0
  351. package/dist/index.d.ts.map +1 -1
  352. package/dist/index.js +284 -107
  353. package/dist/index.js.map +1 -1
  354. package/dist/styles.js +58 -22
  355. package/dist/styles.js.map +1 -1
  356. package/dist/testing/index.d.ts +3 -0
  357. package/dist/testing/index.d.ts.map +1 -0
  358. package/dist/testing/index.js +23 -0
  359. package/dist/testing/index.js.map +1 -0
  360. package/dist/testing/tableGeometry.d.ts +75 -0
  361. package/dist/testing/tableGeometry.d.ts.map +1 -0
  362. package/dist/testing/tableGeometry.js +168 -0
  363. package/dist/testing/tableGeometry.js.map +1 -0
  364. package/dist/types/global.js +2 -1
  365. package/dist/types/icons.js +2 -1
  366. package/package.json +15 -11
  367. package/testing/package.json +7 -0
  368. package/tests.json +1 -0
  369. package/dist/components/Accordion/index.cjs +0 -199
  370. package/dist/components/Accordion/index.cjs.map +0 -1
  371. package/dist/components/Breadcrumbs/index.cjs +0 -239
  372. package/dist/components/Breadcrumbs/index.cjs.map +0 -1
  373. package/dist/components/Breadcrumbs/item.cjs +0 -43
  374. package/dist/components/Breadcrumbs/item.cjs.map +0 -1
  375. package/dist/components/Bubble/index.cjs +0 -281
  376. package/dist/components/Bubble/index.cjs.map +0 -1
  377. package/dist/components/Button/index.cjs +0 -401
  378. package/dist/components/Button/index.cjs.map +0 -1
  379. package/dist/components/Callout/index.cjs +0 -203
  380. package/dist/components/Callout/index.cjs.map +0 -1
  381. package/dist/components/Checkbox/index.cjs +0 -222
  382. package/dist/components/Checkbox/index.cjs.map +0 -1
  383. package/dist/components/Collapse/index.cjs +0 -127
  384. package/dist/components/Collapse/index.cjs.map +0 -1
  385. package/dist/components/CollapsibleContent/index.cjs +0 -244
  386. package/dist/components/CollapsibleContent/index.cjs.map +0 -1
  387. package/dist/components/Collection/index.cjs +0 -362
  388. package/dist/components/Collection/index.cjs.map +0 -1
  389. package/dist/components/Collection/item.cjs +0 -196
  390. package/dist/components/Collection/item.cjs.map +0 -1
  391. package/dist/components/Columns/column.cjs +0 -47
  392. package/dist/components/Columns/column.cjs.map +0 -1
  393. package/dist/components/Columns/index.cjs +0 -79
  394. package/dist/components/Columns/index.cjs.map +0 -1
  395. package/dist/components/Comment/index.cjs +0 -72
  396. package/dist/components/Comment/index.cjs.map +0 -1
  397. package/dist/components/CommentFeed/index.cjs +0 -49
  398. package/dist/components/CommentFeed/index.cjs.map +0 -1
  399. package/dist/components/Content/index.cjs +0 -80
  400. package/dist/components/Content/index.cjs.map +0 -1
  401. package/dist/components/Content/wrapper.cjs +0 -43
  402. package/dist/components/Content/wrapper.cjs.map +0 -1
  403. package/dist/components/ControlGroup/index.cjs +0 -437
  404. package/dist/components/ControlGroup/index.cjs.map +0 -1
  405. package/dist/components/ControlGroup/item.cjs +0 -86
  406. package/dist/components/ControlGroup/item.cjs.map +0 -1
  407. package/dist/components/DataView/helpers.cjs +0 -350
  408. package/dist/components/DataView/helpers.cjs.map +0 -1
  409. package/dist/components/DataView/index.cjs +0 -961
  410. package/dist/components/DataView/index.cjs.map +0 -1
  411. package/dist/components/DatePicker/MonthYearDropdowns.cjs +0 -64
  412. package/dist/components/DatePicker/MonthYearDropdowns.cjs.map +0 -1
  413. package/dist/components/DatePicker/index.cjs +0 -289
  414. package/dist/components/DatePicker/index.cjs.map +0 -1
  415. package/dist/components/DescriptionList/index.cjs +0 -183
  416. package/dist/components/DescriptionList/index.cjs.map +0 -1
  417. package/dist/components/Drawer/backdrop.cjs +0 -73
  418. package/dist/components/Drawer/backdrop.cjs.map +0 -1
  419. package/dist/components/Drawer/index.cjs +0 -302
  420. package/dist/components/Drawer/index.cjs.map +0 -1
  421. package/dist/components/Dropdown/index.cjs +0 -77
  422. package/dist/components/Dropdown/index.cjs.map +0 -1
  423. package/dist/components/Dropdown/item.cjs +0 -42
  424. package/dist/components/Dropdown/item.cjs.map +0 -1
  425. package/dist/components/Dropdown/list.cjs +0 -346
  426. package/dist/components/Dropdown/list.cjs.map +0 -1
  427. package/dist/components/Effect/index.cjs +0 -331
  428. package/dist/components/Effect/index.cjs.map +0 -1
  429. package/dist/components/EmptyState/index.cjs +0 -60
  430. package/dist/components/EmptyState/index.cjs.map +0 -1
  431. package/dist/components/EntityRow/index.cjs +0 -249
  432. package/dist/components/EntityRow/index.cjs.map +0 -1
  433. package/dist/components/ErrorBoundary/index.cjs +0 -118
  434. package/dist/components/ErrorBoundary/index.cjs.map +0 -1
  435. package/dist/components/ExportModal/index.cjs +0 -91
  436. package/dist/components/ExportModal/index.cjs.map +0 -1
  437. package/dist/components/FadeScroller/index.cjs +0 -327
  438. package/dist/components/FadeScroller/index.cjs.map +0 -1
  439. package/dist/components/FeatureCard/index.cjs +0 -168
  440. package/dist/components/FeatureCard/index.cjs.map +0 -1
  441. package/dist/components/GlobalModalsWrapper/index.cjs +0 -46
  442. package/dist/components/GlobalModalsWrapper/index.cjs.map +0 -1
  443. package/dist/components/Header/index.cjs +0 -70
  444. package/dist/components/Header/index.cjs.map +0 -1
  445. package/dist/components/Icon/index.cjs +0 -195
  446. package/dist/components/Icon/index.cjs.map +0 -1
  447. package/dist/components/IconPicker/index.cjs +0 -236
  448. package/dist/components/IconPicker/index.cjs.map +0 -1
  449. package/dist/components/Input/index.cjs +0 -203
  450. package/dist/components/Input/index.cjs.map +0 -1
  451. package/dist/components/InputClearButton/index.cjs +0 -62
  452. package/dist/components/InputClearButton/index.cjs.map +0 -1
  453. package/dist/components/InternalPopover/index.cjs +0 -315
  454. package/dist/components/InternalPopover/index.cjs.map +0 -1
  455. package/dist/components/KeyValueTable/index.cjs +0 -108
  456. package/dist/components/KeyValueTable/index.cjs.map +0 -1
  457. package/dist/components/KeyboardShortcut/index.cjs +0 -69
  458. package/dist/components/KeyboardShortcut/index.cjs.map +0 -1
  459. package/dist/components/Label/index.cjs +0 -24
  460. package/dist/components/Label/index.cjs.map +0 -1
  461. package/dist/components/Layout/content.cjs +0 -41
  462. package/dist/components/Layout/content.cjs.map +0 -1
  463. package/dist/components/Layout/index.cjs +0 -79
  464. package/dist/components/Layout/index.cjs.map +0 -1
  465. package/dist/components/Link/index.cjs +0 -168
  466. package/dist/components/Link/index.cjs.map +0 -1
  467. package/dist/components/Menu/divider.cjs +0 -98
  468. package/dist/components/Menu/divider.cjs.map +0 -1
  469. package/dist/components/Menu/index.cjs +0 -135
  470. package/dist/components/Menu/index.cjs.map +0 -1
  471. package/dist/components/Menu/item.cjs +0 -99
  472. package/dist/components/Menu/item.cjs.map +0 -1
  473. package/dist/components/Menu/section.cjs +0 -59
  474. package/dist/components/Menu/section.cjs.map +0 -1
  475. package/dist/components/Message/index.cjs +0 -78
  476. package/dist/components/Message/index.cjs.map +0 -1
  477. package/dist/components/Modal/index.cjs +0 -67
  478. package/dist/components/Modal/index.cjs.map +0 -1
  479. package/dist/components/MultiSelect/index.cjs +0 -36
  480. package/dist/components/MultiSelect/index.cjs.map +0 -1
  481. package/dist/components/NavRail/index.cjs +0 -666
  482. package/dist/components/NavRail/index.cjs.map +0 -1
  483. package/dist/components/Navbar/divider.cjs +0 -47
  484. package/dist/components/Navbar/divider.cjs.map +0 -1
  485. package/dist/components/Navbar/group.cjs +0 -85
  486. package/dist/components/Navbar/group.cjs.map +0 -1
  487. package/dist/components/Navbar/index.cjs +0 -97
  488. package/dist/components/Navbar/index.cjs.map +0 -1
  489. package/dist/components/Navbar/item.cjs +0 -98
  490. package/dist/components/Navbar/item.cjs.map +0 -1
  491. package/dist/components/Notifications/index.cjs +0 -66
  492. package/dist/components/Notifications/index.cjs.map +0 -1
  493. package/dist/components/Notifications/notification.cjs +0 -343
  494. package/dist/components/Notifications/notification.cjs.map +0 -1
  495. package/dist/components/Notifications/styles.cjs +0 -131
  496. package/dist/components/Notifications/styles.cjs.map +0 -1
  497. package/dist/components/Paging/index.cjs +0 -173
  498. package/dist/components/Paging/index.cjs.map +0 -1
  499. package/dist/components/Panel/LabelEditor.cjs +0 -62
  500. package/dist/components/Panel/LabelEditor.cjs.map +0 -1
  501. package/dist/components/Panel/NonResponsiveActions.cjs +0 -47
  502. package/dist/components/Panel/NonResponsiveActions.cjs.map +0 -1
  503. package/dist/components/Panel/index.cjs +0 -1054
  504. package/dist/components/Panel/index.cjs.map +0 -1
  505. package/dist/components/Paragraph/index.cjs +0 -55
  506. package/dist/components/Paragraph/index.cjs.map +0 -1
  507. package/dist/components/Popover/index.cjs +0 -348
  508. package/dist/components/Popover/index.cjs.map +0 -1
  509. package/dist/components/Progress/index.cjs +0 -187
  510. package/dist/components/Progress/index.cjs.map +0 -1
  511. package/dist/components/RadioGroup/index.cjs +0 -42
  512. package/dist/components/RadioGroup/index.cjs.map +0 -1
  513. package/dist/components/Rating/index.cjs +0 -207
  514. package/dist/components/Rating/index.cjs.map +0 -1
  515. package/dist/components/RichTextEditor/index.cjs +0 -424
  516. package/dist/components/RichTextEditor/index.cjs.map +0 -1
  517. package/dist/components/SegmentedControl/index.cjs +0 -364
  518. package/dist/components/SegmentedControl/index.cjs.map +0 -1
  519. package/dist/components/Select/index.cjs +0 -363
  520. package/dist/components/Select/index.cjs.map +0 -1
  521. package/dist/components/SeverityRow/index.cjs +0 -207
  522. package/dist/components/SeverityRow/index.cjs.map +0 -1
  523. package/dist/components/Skeleton/index.cjs +0 -58
  524. package/dist/components/Skeleton/index.cjs.map +0 -1
  525. package/dist/components/Slider/index.cjs +0 -154
  526. package/dist/components/Slider/index.cjs.map +0 -1
  527. package/dist/components/Spacer/index.cjs +0 -138
  528. package/dist/components/Spacer/index.cjs.map +0 -1
  529. package/dist/components/Span/index.cjs +0 -61
  530. package/dist/components/Span/index.cjs.map +0 -1
  531. package/dist/components/Spinner/index.cjs +0 -44
  532. package/dist/components/Spinner/index.cjs.map +0 -1
  533. package/dist/components/StackedBar/index.cjs +0 -209
  534. package/dist/components/StackedBar/index.cjs.map +0 -1
  535. package/dist/components/Statistic/index.cjs +0 -161
  536. package/dist/components/Statistic/index.cjs.map +0 -1
  537. package/dist/components/Table/body.cjs +0 -265
  538. package/dist/components/Table/body.cjs.map +0 -1
  539. package/dist/components/Table/cell.cjs +0 -179
  540. package/dist/components/Table/cell.cjs.map +0 -1
  541. package/dist/components/Table/header.cjs +0 -170
  542. package/dist/components/Table/header.cjs.map +0 -1
  543. package/dist/components/Table/headerCell.cjs +0 -277
  544. package/dist/components/Table/headerCell.cjs.map +0 -1
  545. package/dist/components/Table/helpers.cjs +0 -386
  546. package/dist/components/Table/helpers.cjs.map +0 -1
  547. package/dist/components/Table/index.cjs +0 -682
  548. package/dist/components/Table/index.cjs.map +0 -1
  549. package/dist/components/Table/row.cjs +0 -345
  550. package/dist/components/Table/row.cjs.map +0 -1
  551. package/dist/components/Table/scrollbar.cjs +0 -201
  552. package/dist/components/Table/scrollbar.cjs.map +0 -1
  553. package/dist/components/Table/value.cjs +0 -26
  554. package/dist/components/Table/value.cjs.map +0 -1
  555. package/dist/components/Tabs/content.cjs +0 -63
  556. package/dist/components/Tabs/content.cjs.map +0 -1
  557. package/dist/components/Tabs/index.cjs +0 -109
  558. package/dist/components/Tabs/index.cjs.map +0 -1
  559. package/dist/components/Tabs/item.cjs +0 -136
  560. package/dist/components/Tabs/item.cjs.map +0 -1
  561. package/dist/components/Tabs/list.cjs +0 -322
  562. package/dist/components/Tabs/list.cjs.map +0 -1
  563. package/dist/components/Tag/group.cjs +0 -107
  564. package/dist/components/Tag/group.cjs.map +0 -1
  565. package/dist/components/Tag/index.cjs +0 -343
  566. package/dist/components/Tag/index.cjs.map +0 -1
  567. package/dist/components/Testimonial/index.cjs +0 -166
  568. package/dist/components/Testimonial/index.cjs.map +0 -1
  569. package/dist/components/Textarea/index.cjs +0 -220
  570. package/dist/components/Textarea/index.cjs.map +0 -1
  571. package/dist/components/Tier/index.cjs +0 -107
  572. package/dist/components/Tier/index.cjs.map +0 -1
  573. package/dist/components/TimeAgo/index.cjs +0 -27
  574. package/dist/components/TimeAgo/index.cjs.map +0 -1
  575. package/dist/components/Timeline/index.cjs +0 -416
  576. package/dist/components/Timeline/index.cjs.map +0 -1
  577. package/dist/components/TooltipComponent/index.cjs +0 -37
  578. package/dist/components/TooltipComponent/index.cjs.map +0 -1
  579. package/dist/components/Tree/index.cjs +0 -321
  580. package/dist/components/Tree/index.cjs.map +0 -1
  581. package/dist/components/Tree/modal.cjs +0 -38
  582. package/dist/components/Tree/modal.cjs.map +0 -1
  583. package/dist/constants/animations.cjs +0 -12
  584. package/dist/constants/animations.cjs.map +0 -1
  585. package/dist/constants/colors.cjs +0 -16
  586. package/dist/constants/colors.cjs.map +0 -1
  587. package/dist/constants/fonts.cjs +0 -28
  588. package/dist/constants/fonts.cjs.map +0 -1
  589. package/dist/constants/paging.cjs +0 -63
  590. package/dist/constants/paging.cjs.map +0 -1
  591. package/dist/constants/sizes.cjs +0 -462
  592. package/dist/constants/sizes.cjs.map +0 -1
  593. package/dist/constants/theme.cjs +0 -43
  594. package/dist/constants/theme.cjs.map +0 -1
  595. package/dist/containers/Paging.cjs +0 -52
  596. package/dist/containers/Paging.cjs.map +0 -1
  597. package/dist/containers/ReqoreProvider.cjs +0 -275
  598. package/dist/containers/ReqoreProvider.cjs.map +0 -1
  599. package/dist/containers/ThemeProvider.cjs +0 -17
  600. package/dist/containers/ThemeProvider.cjs.map +0 -1
  601. package/dist/containers/UIProvider.cjs +0 -96
  602. package/dist/containers/UIProvider.cjs.map +0 -1
  603. package/dist/context/CustomThemeContext.cjs +0 -6
  604. package/dist/context/CustomThemeContext.cjs.map +0 -1
  605. package/dist/context/ReqoreContext.cjs +0 -25
  606. package/dist/context/ReqoreContext.cjs.map +0 -1
  607. package/dist/context/ThemeContext.cjs +0 -6
  608. package/dist/context/ThemeContext.cjs.map +0 -1
  609. package/dist/helpers/animations.cjs +0 -11
  610. package/dist/helpers/animations.cjs.map +0 -1
  611. package/dist/helpers/colors.cjs +0 -273
  612. package/dist/helpers/colors.cjs.map +0 -1
  613. package/dist/helpers/dates.cjs +0 -62
  614. package/dist/helpers/dates.cjs.map +0 -1
  615. package/dist/helpers/portal.cjs +0 -32
  616. package/dist/helpers/portal.cjs.map +0 -1
  617. package/dist/helpers/portal.d.ts +0 -18
  618. package/dist/helpers/portal.d.ts.map +0 -1
  619. package/dist/helpers/portal.js +0 -27
  620. package/dist/helpers/portal.js.map +0 -1
  621. package/dist/helpers/search.cjs +0 -63
  622. package/dist/helpers/search.cjs.map +0 -1
  623. package/dist/helpers/shortcuts.cjs +0 -152
  624. package/dist/helpers/shortcuts.cjs.map +0 -1
  625. package/dist/helpers/styled.cjs +0 -46
  626. package/dist/helpers/styled.cjs.map +0 -1
  627. package/dist/helpers/time.cjs +0 -25
  628. package/dist/helpers/time.cjs.map +0 -1
  629. package/dist/helpers/utils.cjs +0 -294
  630. package/dist/helpers/utils.cjs.map +0 -1
  631. package/dist/hooks/useAutoFocus.cjs +0 -84
  632. package/dist/hooks/useAutoFocus.cjs.map +0 -1
  633. package/dist/hooks/useCloneThroughFragments.cjs +0 -63
  634. package/dist/hooks/useCloneThroughFragments.cjs.map +0 -1
  635. package/dist/hooks/useCombinedRefs.cjs +0 -44
  636. package/dist/hooks/useCombinedRefs.cjs.map +0 -1
  637. package/dist/hooks/useComponentTooltip.cjs +0 -34
  638. package/dist/hooks/useComponentTooltip.cjs.map +0 -1
  639. package/dist/hooks/useFitTextSize.cjs +0 -75
  640. package/dist/hooks/useFitTextSize.cjs.map +0 -1
  641. package/dist/hooks/useFocusTrap.cjs +0 -119
  642. package/dist/hooks/useFocusTrap.cjs.map +0 -1
  643. package/dist/hooks/useLatestZIndex.cjs +0 -12
  644. package/dist/hooks/useLatestZIndex.cjs.map +0 -1
  645. package/dist/hooks/useMarqueeOnHover.cjs +0 -292
  646. package/dist/hooks/useMarqueeOnHover.cjs.map +0 -1
  647. package/dist/hooks/useNarrowContainer.cjs +0 -68
  648. package/dist/hooks/useNarrowContainer.cjs.map +0 -1
  649. package/dist/hooks/useOutsideClick.cjs +0 -19
  650. package/dist/hooks/useOutsideClick.cjs.map +0 -1
  651. package/dist/hooks/usePaging.cjs +0 -152
  652. package/dist/hooks/usePaging.cjs.map +0 -1
  653. package/dist/hooks/useQueryWithDelay.cjs +0 -25
  654. package/dist/hooks/useQueryWithDelay.cjs.map +0 -1
  655. package/dist/hooks/useReqore.cjs +0 -17
  656. package/dist/hooks/useReqore.cjs.map +0 -1
  657. package/dist/hooks/useReqoreContext.cjs +0 -19
  658. package/dist/hooks/useReqoreContext.cjs.map +0 -1
  659. package/dist/hooks/useReqoreEffect.cjs +0 -34
  660. package/dist/hooks/useReqoreEffect.cjs.map +0 -1
  661. package/dist/hooks/useScrollFade.cjs +0 -70
  662. package/dist/hooks/useScrollFade.cjs.map +0 -1
  663. package/dist/hooks/useTextareaAutoSize.cjs +0 -22
  664. package/dist/hooks/useTextareaAutoSize.cjs.map +0 -1
  665. package/dist/hooks/useTheme.cjs +0 -49
  666. package/dist/hooks/useTheme.cjs.map +0 -1
  667. package/dist/hooks/useWhyDidYouUpdate.cjs +0 -46
  668. package/dist/hooks/useWhyDidYouUpdate.cjs.map +0 -1
  669. package/dist/index.cjs +0 -271
  670. package/dist/index.cjs.map +0 -1
  671. package/dist/package.json +0 -3
  672. package/dist/styles.cjs +0 -88
  673. package/dist/styles.cjs.map +0 -1
  674. package/dist/types/global.cjs +0 -3
  675. package/dist/types/global.cjs.map +0 -1
  676. package/dist/types/icons.cjs +0 -3
  677. package/dist/types/icons.cjs.map +0 -1
@@ -1,961 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
- if (k2 === undefined) k2 = k;
19
- var desc = Object.getOwnPropertyDescriptor(m, k);
20
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
21
- desc = { enumerable: true, get: function() { return m[k]; } };
22
- }
23
- Object.defineProperty(o, k2, desc);
24
- }) : (function(o, m, k, k2) {
25
- if (k2 === undefined) k2 = k;
26
- o[k2] = m[k];
27
- }));
28
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
29
- Object.defineProperty(o, "default", { enumerable: true, value: v });
30
- }) : function(o, v) {
31
- o["default"] = v;
32
- });
33
- var __importStar = (this && this.__importStar) || (function () {
34
- var ownKeys = function(o) {
35
- ownKeys = Object.getOwnPropertyNames || function (o) {
36
- var ar = [];
37
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
38
- return ar;
39
- };
40
- return ownKeys(o);
41
- };
42
- return function (mod) {
43
- if (mod && mod.__esModule) return mod;
44
- var result = {};
45
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
46
- __setModuleDefault(result, mod);
47
- return result;
48
- };
49
- })();
50
- var __rest = (this && this.__rest) || function (s, e) {
51
- var t = {};
52
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
53
- t[p] = s[p];
54
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
55
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
56
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
57
- t[p[i]] = s[p[i]];
58
- }
59
- return t;
60
- };
61
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
62
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
63
- if (ar || !(i in from)) {
64
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
65
- ar[i] = from[i];
66
- }
67
- }
68
- return to.concat(ar || Array.prototype.slice.call(from));
69
- };
70
- var __importDefault = (this && this.__importDefault) || function (mod) {
71
- return (mod && mod.__esModule) ? mod : { "default": mod };
72
- };
73
- Object.defineProperty(exports, "__esModule", { value: true });
74
- exports.reqoreUnwrapEnvelope = exports.reqoreSetAtPath = exports.reqoreRenameKeyAtPath = exports.reqoreIsRecord = exports.reqoreIsEnvelope = exports.reqoreHasStructuredValue = exports.reqoreFormatScalar = exports.reqoreEnvelopeType = exports.reqoreDeleteAtPath = exports.reqoreDataValueKind = exports.reqoreDataValueIntent = exports.reqoreCoerceValueToKind = exports.DEFAULT_ENVELOPE = exports.ReqoreDataView = void 0;
75
- var jsx_runtime_1 = require("react/jsx-runtime");
76
- /**
77
- * `ReqoreDataView` — render a structured value (record / array / scalar)
78
- * as a typed, collapsible tree.
79
- *
80
- * Visually adjacent to `ReqoreTree` but optimised for *displaying*
81
- * server payloads (workflow / job / event data, error info, structured
82
- * audit rows) where the operator wants to see types at a glance, drill
83
- * into nested sections, and recognise typed-envelope shapes
84
- * (`{ type, value }`) without an extra layer of rendering noise.
85
- *
86
- * Highlights:
87
- * - Wraps `ReqorePanel`, so the full panel chrome is available —
88
- * label / icon / badge / intent / customTheme / effect / actions /
89
- * collapsible / minimal / flat / rounded / size, etc.
90
- * - Type-aware value chips powered by `ReqoreTag` intents (string /
91
- * number / boolean / date / null / array / object).
92
- * - Envelope detection — opt-in shape that unwraps `{ type, value }`
93
- * style records to render the inner value with the type label as a
94
- * chip. Configurable per call.
95
- * - Pluggable date parser + formatter (default works on ISO strings
96
- * and `Date.parse`able shapes; consumers can plug in stricter or
97
- * domain-specific parsers).
98
- * - Pluggable embedded-string parser — for cases where the server
99
- * hands back a stringified structured payload that should be
100
- * parsed and rendered inline.
101
- * - Scalar arrays inline by default (a list of plain strings reads as
102
- * a wrapping chip row instead of a tall column of cells).
103
- * - Sticky-position scroll preservation when toggling nested sections,
104
- * so the operator doesn't lose their place when expanding deep
105
- * trees.
106
- */
107
- var react_1 = require("react");
108
- var polished_1 = require("polished");
109
- var styled_components_1 = __importStar(require("styled-components"));
110
- var sizes_1 = require("../../constants/sizes.cjs");
111
- var fonts_1 = require("../../constants/fonts.cjs");
112
- var colors_1 = require("../../helpers/colors.cjs");
113
- var useTheme_1 = require("../../hooks/useTheme.cjs");
114
- var Button_1 = __importDefault(require("../Button/index.cjs"));
115
- var Checkbox_1 = __importDefault(require("../Checkbox/index.cjs"));
116
- var ControlGroup_1 = __importDefault(require("../ControlGroup/index.cjs"));
117
- var Dropdown_1 = __importDefault(require("../Dropdown/index.cjs"));
118
- var Input_1 = __importDefault(require("../Input/index.cjs"));
119
- var Paragraph_1 = require("../Paragraph/index.cjs");
120
- var Panel_1 = require("../Panel/index.cjs");
121
- var Tag_1 = __importDefault(require("../Tag/index.cjs"));
122
- var helpers_1 = require("./helpers.cjs");
123
- var SECTION_LABEL = function (kind, count) {
124
- var word = kind === 'Object' ? 'field' : 'item';
125
- return "".concat(kind, " \u00B7 ").concat(count, " ").concat(word).concat(count === 1 ? '' : 's');
126
- };
127
- var Tree = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: ", "px;\n min-width: 0;\n width: 100%;\n font-size: ", "px;\n color: ", ";\n\n /* Force monospace on every tag we render inside the view \u2014 keys,\n values and type labels \u2014 so the tree reads like one consistent\n data-view material rather than a row of disconnected chips.\n Override via the tag's own `effect.textSize` if you need to\n dial it back. `&&` (not `!important`) beats `StyledTag`'s\n `font-family: system-ui` \u2014 both are one generated class deep, so\n without the specificity boost the winner is just whichever\n styled-component happens to mount last. `!important` here would\n tax every downstream consumer trying to override this from their\n own `customTheme` / `effect`. \n Prefer `effect={{ fontFamily: 'mono' }}` on new code \u2014 `StyledTag` now only\n declares its own family when the effect does not, so a tag can simply ask for\n mono. This block stays because the classes below are set on tags this component\n does not own the props of; migrating them is a separate change. */\n && .reqore-data-view-key,\n && .reqore-data-view-key .reqore-tag-content,\n && .reqore-data-view-value,\n && .reqore-data-view-value .reqore-tag-content,\n && .reqore-data-view-type,\n && .reqore-data-view-type .reqore-tag-content {\n font-family: ", ";\n /* Long unbreakable identifiers (UUIDs, snake_case keys, HL7\n payloads with no spaces) need an extra hint to break \u2014 the\n tag's own `wrap` enables breaks at WHITESPACE, but these run\n on continuously. `overflow-wrap: anywhere` is the\n last-resort break point. Only applied here (inside the tag\n content) so the chip's outer geometry isn't affected. */\n overflow-wrap: anywhere;\n word-break: break-word;\n }\n"], ["\n display: flex;\n flex-flow: column;\n gap: ", "px;\n min-width: 0;\n width: 100%;\n font-size: ", "px;\n color: ", ";\n\n /* Force monospace on every tag we render inside the view \u2014 keys,\n values and type labels \u2014 so the tree reads like one consistent\n data-view material rather than a row of disconnected chips.\n Override via the tag's own \\`effect.textSize\\` if you need to\n dial it back. \\`&&\\` (not \\`!important\\`) beats \\`StyledTag\\`'s\n \\`font-family: system-ui\\` \u2014 both are one generated class deep, so\n without the specificity boost the winner is just whichever\n styled-component happens to mount last. \\`!important\\` here would\n tax every downstream consumer trying to override this from their\n own \\`customTheme\\` / \\`effect\\`. \n Prefer \\`effect={{ fontFamily: 'mono' }}\\` on new code \u2014 \\`StyledTag\\` now only\n declares its own family when the effect does not, so a tag can simply ask for\n mono. This block stays because the classes below are set on tags this component\n does not own the props of; migrating them is a separate change. */\n && .reqore-data-view-key,\n && .reqore-data-view-key .reqore-tag-content,\n && .reqore-data-view-value,\n && .reqore-data-view-value .reqore-tag-content,\n && .reqore-data-view-type,\n && .reqore-data-view-type .reqore-tag-content {\n font-family: ", ";\n /* Long unbreakable identifiers (UUIDs, snake_case keys, HL7\n payloads with no spaces) need an extra hint to break \u2014 the\n tag's own \\`wrap\\` enables breaks at WHITESPACE, but these run\n on continuously. \\`overflow-wrap: anywhere\\` is the\n last-resort break point. Only applied here (inside the tag\n content) so the chip's outer geometry isn't affected. */\n overflow-wrap: anywhere;\n word-break: break-word;\n }\n"])), function (_a) {
128
- var $size = _a.$size;
129
- return sizes_1.GAP_FROM_SIZE[$size];
130
- }, function (_a) {
131
- var $size = _a.$size;
132
- return sizes_1.TEXT_FROM_SIZE[$size];
133
- }, function (_a) {
134
- var $theme = _a.$theme;
135
- return $theme.text.color || $theme.main;
136
- }, fonts_1.MONO_FONT);
137
- var TableShell = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n /* Nested containers get a *darker* tint \u2014 visual depth comes from\n the surface itself stepping down a notch for every level of\n nesting, the same pattern the IDE uses. The container's right /\n top / bottom borders are a near-invisible neutral; the LEFT edge\n carries a 2px theme-tinted accent so every group (root *and*\n nested) reads as an indented chunk with a clear left rail. */\n border: 1px solid ", ";\n border-left: 2px solid ", ";\n border-radius: ", "px;\n /* Nested groups need a *visibly* darker fill to read as one level\n deeper. A small alpha bump (0.10 \u2192 0.22) was too subtle on top of\n an already-dark panel surface; 0.45 makes the depth step\n unmistakable while still being a colour darken (so it works on\n both light and dark themes). */\n background: ", ";\n"], ["\n display: flex;\n flex-flow: column;\n min-width: 0;\n max-width: 100%;\n overflow: hidden;\n /* Nested containers get a *darker* tint \u2014 visual depth comes from\n the surface itself stepping down a notch for every level of\n nesting, the same pattern the IDE uses. The container's right /\n top / bottom borders are a near-invisible neutral; the LEFT edge\n carries a 2px theme-tinted accent so every group (root *and*\n nested) reads as an indented chunk with a clear left rail. */\n border: 1px solid ", ";\n border-left: 2px solid ", ";\n border-radius: ", "px;\n /* Nested groups need a *visibly* darker fill to read as one level\n deeper. A small alpha bump (0.10 \u2192 0.22) was too subtle on top of\n an already-dark panel surface; 0.45 makes the depth step\n unmistakable while still being a colour darken (so it works on\n both light and dark themes). */\n background: ", ";\n"])), function (_a) {
138
- var $theme = _a.$theme;
139
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.08);
140
- }, function (_a) {
141
- var $theme = _a.$theme;
142
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.18);
143
- }, function (_a) {
144
- var $size = _a.$size;
145
- return sizes_1.RADIUS_FROM_SIZE[$size];
146
- }, function (_a) {
147
- var $nested = _a.$nested;
148
- return $nested ? 'rgba(0, 0, 0, 0.45)' : 'rgba(0, 0, 0, 0.15)';
149
- });
150
- var Row = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: grid;\n /* Grid columns + named areas together so children land in fixed\n cells regardless of how many children render. Without\n grid-template-areas, a 3-child row (key + value + actions) in a\n 2-column grid would auto-place the value into the actions\n column. */\n grid-template-columns: ", ";\n grid-template-areas: ", ";\n\n & > .reqore-data-view-key,\n & > .reqore-data-view-key-edit-group {\n grid-area: key;\n }\n & > .reqore-data-view-value-cell {\n grid-area: value;\n }\n & > .reqore-data-view-row-actions {\n grid-area: actions;\n }\n gap: ", "px;\n align-items: start;\n min-width: 0;\n padding: ", "px ", "px;\n /* Zebra striping. The stripe tint is derived from the *text* colour\n (the high-contrast colour relative to the panel surface) \u2014 that\n way an alpha lift produces a visible stripe regardless of whether\n the theme is light, dark, or custom. Painting against theme.main\n directly is invisible on a panel whose background is also\n theme.main. */\n background: ", ";\n border-bottom: 1px solid\n ", ";\n\n &:last-child {\n border-bottom: 0;\n }\n\n ", "\n\n /* The key chip's grid behaviour, applied universally \u2014 covers\n two-column rows, complex-value rows AND stacked (narrow\n container) rows in one set of rules:\n - `justify-self: start` stops the grid's default\n `justify-items: stretch` from expanding the chip to fill the\n full grid cell. The chip sizes to its content instead, only\n hitting the column cap when content actually needs it.\n - `min-width: 0` releases ReqoreTag's intrinsic min-content size\n (its longest unbreakable run) so the grid track can honour\n its `minmax(..., 220px)` cap. Without this, snake_case keys\n or UUIDs feed back into the track sizing and expand the\n column past 220px. */\n & > .reqore-data-view-key {\n justify-self: start;\n min-width: 0;\n max-width: 100%;\n }\n"], ["\n display: grid;\n /* Grid columns + named areas together so children land in fixed\n cells regardless of how many children render. Without\n grid-template-areas, a 3-child row (key + value + actions) in a\n 2-column grid would auto-place the value into the actions\n column. */\n grid-template-columns: ", ";\n grid-template-areas: ", ";\n\n & > .reqore-data-view-key,\n & > .reqore-data-view-key-edit-group {\n grid-area: key;\n }\n & > .reqore-data-view-value-cell {\n grid-area: value;\n }\n & > .reqore-data-view-row-actions {\n grid-area: actions;\n }\n gap: ", "px;\n align-items: start;\n min-width: 0;\n padding: ", "px ", "px;\n /* Zebra striping. The stripe tint is derived from the *text* colour\n (the high-contrast colour relative to the panel surface) \u2014 that\n way an alpha lift produces a visible stripe regardless of whether\n the theme is light, dark, or custom. Painting against theme.main\n directly is invisible on a panel whose background is also\n theme.main. */\n background: ", ";\n border-bottom: 1px solid\n ", ";\n\n &:last-child {\n border-bottom: 0;\n }\n\n ", "\n\n /* The key chip's grid behaviour, applied universally \u2014 covers\n two-column rows, complex-value rows AND stacked (narrow\n container) rows in one set of rules:\n - \\`justify-self: start\\` stops the grid's default\n \\`justify-items: stretch\\` from expanding the chip to fill the\n full grid cell. The chip sizes to its content instead, only\n hitting the column cap when content actually needs it.\n - \\`min-width: 0\\` releases ReqoreTag's intrinsic min-content size\n (its longest unbreakable run) so the grid track can honour\n its \\`minmax(..., 220px)\\` cap. Without this, snake_case keys\n or UUIDs feed back into the track sizing and expand the\n column past 220px. */\n & > .reqore-data-view-key {\n justify-self: start;\n min-width: 0;\n max-width: 100%;\n }\n"])), function (_a) {
151
- var $complex = _a.$complex, $stacked = _a.$stacked, $editable = _a.$editable;
152
- var stacked = $complex || $stacked;
153
- if ($editable) {
154
- return stacked
155
- ? 'minmax(0, 1fr) auto'
156
- : 'minmax(120px, min(34%, 220px)) minmax(0, 1fr) auto';
157
- }
158
- return stacked
159
- ? 'minmax(0, 1fr)'
160
- : 'minmax(120px, min(34%, 220px)) minmax(0, 1fr)';
161
- }, function (_a) {
162
- var $complex = _a.$complex, $stacked = _a.$stacked, $editable = _a.$editable;
163
- var stacked = $complex || $stacked;
164
- if ($editable) {
165
- return stacked
166
- ? "'key actions' 'value value'"
167
- : "'key value actions'";
168
- }
169
- return stacked ? "'key' 'value'" : "'key value'";
170
- }, function (_a) {
171
- var $size = _a.$size, $complex = _a.$complex, $stacked = _a.$stacked;
172
- return $complex || $stacked ? sizes_1.GAP_FROM_SIZE[$size] : 8;
173
- }, function (_a) {
174
- var $size = _a.$size;
175
- return sizes_1.PADDING_FROM_SIZE[$size] / 2;
176
- }, function (_a) {
177
- var $size = _a.$size;
178
- return sizes_1.PADDING_FROM_SIZE[$size];
179
- }, function (_a) {
180
- var $theme = _a.$theme, $odd = _a.$odd;
181
- return $odd ? (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.06) : 'transparent';
182
- }, function (_a) {
183
- var $theme = _a.$theme;
184
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.08);
185
- }, function (_a) {
186
- var $complex = _a.$complex;
187
- return $complex && (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n flex-direction: column;\n "], ["\n flex-direction: column;\n "])));
188
- });
189
- var ValueCell = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n min-width: 0;\n max-width: 100%;\n font-family: ", ";\n font-size: ", "px;\n word-break: break-word;\n /* Complex values (records / arrays) get a generous left inset and a\n small top margin so the nested block reads as an indented chunk\n under its key. The left rail itself lives on the nested\n TableShell, NOT here \u2014 that way the root group carries the same\n rail without needing a wrapping ValueCell. */\n ", "\n"], ["\n min-width: 0;\n max-width: 100%;\n font-family: ", ";\n font-size: ", "px;\n word-break: break-word;\n /* Complex values (records / arrays) get a generous left inset and a\n small top margin so the nested block reads as an indented chunk\n under its key. The left rail itself lives on the nested\n TableShell, NOT here \u2014 that way the root group carries the same\n rail without needing a wrapping ValueCell. */\n ", "\n"])), fonts_1.MONO_FONT, function (_a) {
190
- var $size = _a.$size;
191
- return sizes_1.TEXT_FROM_SIZE[$size] - 1;
192
- }, function (_a) {
193
- var $complex = _a.$complex, $size = _a.$size;
194
- return $complex && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n margin-top: 4px;\n padding-left: ", "px;\n "], ["\n margin-top: 4px;\n padding-left: ", "px;\n "])), sizes_1.PADDING_FROM_SIZE[$size] + 6);
195
- });
196
- /** Multiline strings are data documents, not compact scalar labels. Rendering
197
- * them inside a tag creates a very tall pill and makes large text/plain
198
- * payloads difficult to inspect. Keep their original whitespace in a
199
- * bounded, scrollable data surface instead — but keep the same border /
200
- * background language as the neutral (no-intent) value chip in
201
- * `renderScalar` below (a plain `ReqoreTag` with `minimal flat={false}`
202
- * and no `color`) so the block reads as the same value-chip family, just
203
- * taller and pre-formatted, rather than an unrelated visual element. Only
204
- * the font, wrapping and scroll behaviour are new. */
205
- var MultilineValue = styled_components_1.default.pre(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n box-sizing: border-box;\n flex: 1 1 300px;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n max-height: min(320px, 45vh);\n margin: 0;\n padding: ", "px;\n overflow: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n word-break: break-word;\n tab-size: 2;\n border: 1px solid ", ";\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", "px;\n font-variant-ligatures: none;\n line-height: 1.45;\n cursor: ", ";\n\n ", "\n"], ["\n box-sizing: border-box;\n flex: 1 1 300px;\n width: 100%;\n min-width: 0;\n max-width: 100%;\n max-height: min(320px, 45vh);\n margin: 0;\n padding: ", "px;\n overflow: auto;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n word-break: break-word;\n tab-size: 2;\n border: 1px solid ", ";\n border-radius: ", "px;\n background: ", ";\n color: ", ";\n font-family: ", ";\n font-size: ", "px;\n font-variant-ligatures: none;\n line-height: 1.45;\n cursor: ", ";\n\n ", "\n"])), function (_a) {
206
- var $size = _a.$size;
207
- return sizes_1.PADDING_FROM_SIZE[$size];
208
- }, function (_a) {
209
- var $theme = _a.$theme;
210
- return (0, colors_1.changeLightness)($theme.main, 0.2);
211
- }, function (_a) {
212
- var $size = _a.$size;
213
- return sizes_1.RADIUS_FROM_SIZE[$size];
214
- }, (0, polished_1.rgba)((0, colors_1.changeLightness)('#000000', 0.05), 0.3), function (_a) {
215
- var $theme = _a.$theme;
216
- return (0, colors_1.getReadableColorFrom)((0, colors_1.changeLightness)($theme.main, 0.1));
217
- }, fonts_1.MONO_FONT, function (_a) {
218
- var $size = _a.$size;
219
- return sizes_1.TEXT_FROM_SIZE[$size] - 1;
220
- }, function (_a) {
221
- var $interactive = _a.$interactive;
222
- return ($interactive ? 'pointer' : 'text');
223
- }, function (_a) {
224
- var $interactive = _a.$interactive, $theme = _a.$theme;
225
- return $interactive && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:hover,\n &:focus-visible {\n border-color: ", ";\n outline: none;\n }\n "], ["\n &:hover,\n &:focus-visible {\n border-color: ", ";\n outline: none;\n }\n "])), (0, colors_1.changeLightness)($theme.main, 0.35));
226
- });
227
- var ArrayStack = styled_components_1.default.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n flex-flow: column;\n gap: ", "px;\n min-width: 0;\n width: 100%;\n"], ["\n display: flex;\n flex-flow: column;\n gap: ", "px;\n min-width: 0;\n width: 100%;\n"])), function (_a) {
228
- var $size = _a.$size;
229
- return sizes_1.GAP_FROM_SIZE[$size];
230
- });
231
- var ArrayItem = styled_components_1.default.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n min-width: 0;\n max-width: 100%;\n /* Two-column flex layout: content (index + value) on the left,\n hover-revealed action cell on the right. Keeps the actions\n properly inside the item's bounds instead of leaning on absolute\n positioning. */\n display: flex;\n flex-flow: row;\n align-items: start;\n gap: 8px;\n /* More left padding than the other three sides so the item index\n and contents read as visually inset under the parent \u2014 mirrors\n the IDE pattern of \"nested = inset\". */\n padding: ", "px\n ", "px\n ", "px\n ", "px;\n border: 1px solid ", ";\n border-left: 2px solid ", ";\n border-radius: ", "px;\n background: rgba(0, 0, 0, 0.45);\n"], ["\n min-width: 0;\n max-width: 100%;\n /* Two-column flex layout: content (index + value) on the left,\n hover-revealed action cell on the right. Keeps the actions\n properly inside the item's bounds instead of leaning on absolute\n positioning. */\n display: flex;\n flex-flow: row;\n align-items: start;\n gap: 8px;\n /* More left padding than the other three sides so the item index\n and contents read as visually inset under the parent \u2014 mirrors\n the IDE pattern of \"nested = inset\". */\n padding: ", "px\n ", "px\n ", "px\n ", "px;\n border: 1px solid ", ";\n border-left: 2px solid ", ";\n border-radius: ", "px;\n background: rgba(0, 0, 0, 0.45);\n"])), function (_a) {
232
- var $size = _a.$size;
233
- return sizes_1.PADDING_FROM_SIZE[$size];
234
- }, function (_a) {
235
- var $size = _a.$size;
236
- return sizes_1.PADDING_FROM_SIZE[$size];
237
- }, function (_a) {
238
- var $size = _a.$size;
239
- return sizes_1.PADDING_FROM_SIZE[$size];
240
- }, function (_a) {
241
- var $size = _a.$size;
242
- return sizes_1.PADDING_FROM_SIZE[$size] + 6;
243
- }, function (_a) {
244
- var $theme = _a.$theme;
245
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.08);
246
- }, function (_a) {
247
- var $theme = _a.$theme;
248
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.18);
249
- }, function (_a) {
250
- var $size = _a.$size;
251
- return sizes_1.RADIUS_FROM_SIZE[$size];
252
- });
253
- /** Content column for an array item — wraps the item's index +
254
- * rendered value so the flex row's other cell (the action group)
255
- * sits to the right without competing for width. */
256
- var ArrayItemContent = styled_components_1.default.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n flex: 1 1 auto;\n min-width: 0;\n"], ["\n flex: 1 1 auto;\n min-width: 0;\n"])));
257
- var ArrayItemIndex = styled_components_1.default.span(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: inline-block;\n margin-bottom: ", "px;\n padding: 1px 6px;\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 11px;\n opacity: 0.78;\n"], ["\n display: inline-block;\n margin-bottom: ", "px;\n padding: 1px 6px;\n border-radius: 4px;\n background: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 11px;\n opacity: 0.78;\n"])), function (_a) {
258
- var $size = _a.$size;
259
- return sizes_1.GAP_FROM_SIZE[$size];
260
- }, function (_a) {
261
- var $theme = _a.$theme;
262
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)($theme), 0.12);
263
- }, function (_a) {
264
- var $theme = _a.$theme;
265
- return (0, colors_1.getReadableColor)($theme);
266
- }, fonts_1.MONO_FONT);
267
- var ScalarRow = (0, styled_components_1.default)(ControlGroup_1.default)(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n flex-wrap: wrap;\n"], ["\n flex-wrap: wrap;\n"])));
268
- var SectionDetails = styled_components_1.default.details(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n min-width: 0;\n max-width: 100%;\n\n &[open] > summary {\n margin-bottom: ", "px;\n }\n"], ["\n min-width: 0;\n max-width: 100%;\n\n &[open] > summary {\n margin-bottom: ", "px;\n }\n"])), function (_a) {
269
- var $size = _a.$size;
270
- return sizes_1.GAP_FROM_SIZE[$size];
271
- });
272
- var SectionSummary = styled_components_1.default.summary(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: 6px;\n width: fit-content;\n cursor: pointer;\n user-select: none;\n font-family: ", ";\n font-size: ", "px;\n font-weight: 700;\n /* Section labels MUST stay readable \u2014 they're the only way the\n operator knows what's nested below. We derive a high-contrast\n colour from the panel's surface instead of falling back to\n theme.main, which would be the SAME colour as the panel\n background on most themes (invisible). */\n color: ", ";\n opacity: 0.85;\n transition: opacity 0.15s ease-out;\n\n &:hover {\n opacity: 1;\n }\n\n &::-webkit-details-marker {\n display: none;\n }\n\n &::before {\n content: '\u25B8';\n display: inline-block;\n transition: transform 0.15s ease-out;\n transform-origin: 50% 50%;\n }\n\n ", "[open] > &::before {\n transform: rotate(90deg);\n }\n"], ["\n display: inline-flex;\n align-items: center;\n gap: 6px;\n width: fit-content;\n cursor: pointer;\n user-select: none;\n font-family: ", ";\n font-size: ", "px;\n font-weight: 700;\n /* Section labels MUST stay readable \u2014 they're the only way the\n operator knows what's nested below. We derive a high-contrast\n colour from the panel's surface instead of falling back to\n theme.main, which would be the SAME colour as the panel\n background on most themes (invisible). */\n color: ", ";\n opacity: 0.85;\n transition: opacity 0.15s ease-out;\n\n &:hover {\n opacity: 1;\n }\n\n &::-webkit-details-marker {\n display: none;\n }\n\n &::before {\n content: '\u25B8';\n display: inline-block;\n transition: transform 0.15s ease-out;\n transform-origin: 50% 50%;\n }\n\n ", "[open] > &::before {\n transform: rotate(90deg);\n }\n"])), fonts_1.MONO_FONT, function (_a) {
273
- var $size = _a.$size;
274
- return sizes_1.TEXT_FROM_SIZE[$size] - 2;
275
- }, function (_a) {
276
- var $theme = _a.$theme;
277
- return (0, colors_1.getReadableColor)($theme);
278
- }, SectionDetails);
279
- var scrollPattern = /(auto|scroll|overlay)/;
280
- var isScrollable = function (element) {
281
- var style = window.getComputedStyle(element);
282
- return (scrollPattern.test("".concat(style.overflowY, " ").concat(style.overflow)) &&
283
- element.scrollHeight > element.clientHeight);
284
- };
285
- var findScrollTarget = function (element) {
286
- var current = element.parentElement;
287
- while (current && current !== document.body) {
288
- if (isScrollable(current))
289
- return current;
290
- current = current.parentElement;
291
- }
292
- return window;
293
- };
294
- var shiftScroll = function (target, delta) {
295
- if (!delta)
296
- return;
297
- if (target === window) {
298
- window.scrollBy(0, delta);
299
- return;
300
- }
301
- target.scrollTop += delta;
302
- };
303
- var PreservedDetails = (0, react_1.memo)(function (_a) {
304
- var initialOpen = _a.initialOpen, label = _a.label, path = _a.path, size = _a.size, theme = _a.theme, onToggle = _a.onToggle, children = _a.children;
305
- var _b = (0, react_1.useState)(initialOpen), open = _b[0], setOpen = _b[1];
306
- var summaryRef = (0, react_1.useRef)(null);
307
- var pendingTopRef = (0, react_1.useRef)(null);
308
- var scrollTargetRef = (0, react_1.useRef)(null);
309
- var preserveScroll = (0, react_1.useCallback)(function () {
310
- var summary = summaryRef.current;
311
- if (!summary)
312
- return;
313
- pendingTopRef.current = summary.getBoundingClientRect().top;
314
- scrollTargetRef.current = findScrollTarget(summary);
315
- }, []);
316
- var toggle = (0, react_1.useCallback)(function () {
317
- preserveScroll();
318
- setOpen(function (current) {
319
- var next = !current;
320
- onToggle === null || onToggle === void 0 ? void 0 : onToggle(next, path);
321
- return next;
322
- });
323
- }, [onToggle, path, preserveScroll]);
324
- var onSummaryClick = (0, react_1.useCallback)(function (event) {
325
- event.preventDefault();
326
- toggle();
327
- }, [toggle]);
328
- var onSummaryKey = (0, react_1.useCallback)(function (event) {
329
- if (event.key !== 'Enter' && event.key !== ' ')
330
- return;
331
- event.preventDefault();
332
- toggle();
333
- }, [toggle]);
334
- (0, react_1.useLayoutEffect)(function () {
335
- var previous = pendingTopRef.current;
336
- var summary = summaryRef.current;
337
- var target = scrollTargetRef.current;
338
- if (previous === null || !summary || !target)
339
- return;
340
- pendingTopRef.current = null;
341
- scrollTargetRef.current = null;
342
- shiftScroll(target, summary.getBoundingClientRect().top - previous);
343
- }, [open]);
344
- return ((0, jsx_runtime_1.jsxs)(SectionDetails, { "$size": size, "$theme": theme, open: open, children: [(0, jsx_runtime_1.jsx)(SectionSummary, { ref: summaryRef, "$size": size, "$theme": theme, role: 'button', "aria-expanded": open, tabIndex: 0, onClick: onSummaryClick, onKeyDown: onSummaryKey, children: label }), children] }));
345
- });
346
- PreservedDetails.displayName = 'ReqoreDataView.PreservedDetails';
347
- /** Render the read-only value chip for a scalar leaf. Extracted so
348
- * both the read-only view and the click-to-edit cell share one
349
- * rendering — keeps the "before / after" look of an edited row
350
- * perfectly aligned with rows you can't edit. */
351
- var renderScalarChip = function (value, type, ctx, path) {
352
- var scalar = (0, helpers_1.reqoreFormatScalar)(value, type, ctx.scalarOptions);
353
- var kind = type ? (0, helpers_1.reqoreDataValueKind)(value, type) : scalar.kind;
354
- var intent = (0, helpers_1.reqoreDataValueIntent)(kind);
355
- return ((0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: false, minimal: true, wrap: true, label: scalar.display, intent: intent, effect: { weight: 'bold' }, onClick: ctx.onItemClick ? function () { return ctx.onItemClick(value, path); } : undefined, className: 'reqore-data-view-value' }));
356
- };
357
- var EditCellShell = styled_components_1.default.span(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n min-width: 0;\n max-width: 100%;\n cursor: ", ";\n\n /* Subtle hover hint on the chip so operators know it's clickable \u2014\n without shouting. The chip itself doesn't gain border / shadow;\n we just lift its outline a hair. */\n &:not([data-editing='true']):hover .reqore-data-view-value {\n outline: 1px dashed\n ", ";\n outline-offset: 1px;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n min-width: 0;\n max-width: 100%;\n cursor: ", ";\n\n /* Subtle hover hint on the chip so operators know it's clickable \u2014\n without shouting. The chip itself doesn't gain border / shadow;\n we just lift its outline a hair. */\n &:not([data-editing='true']):hover .reqore-data-view-value {\n outline: 1px dashed\n ", ";\n outline-offset: 1px;\n }\n"])), function (_a) {
358
- var $editing = _a.$editing;
359
- return ($editing ? 'text' : 'pointer');
360
- }, function (_a) {
361
- var theme = _a.theme;
362
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)(theme), 0.35);
363
- });
364
- var initialDraftFor = function (value, k) {
365
- if (k === 'boolean')
366
- return value === true;
367
- return value === null || value === undefined ? '' : String(value);
368
- };
369
- var EditableScalarCell = (0, react_1.memo)(function (_a) {
370
- var _b;
371
- var value = _a.value, kind = _a.kind, type = _a.type, ctx = _a.ctx, path = _a.path;
372
- var commit = ctx.commitScalar;
373
- var isNumber = kind === 'number';
374
- var isBoolean = kind === 'boolean';
375
- var _c = (0, react_1.useState)(false), editing = _c[0], setEditing = _c[1];
376
- var _d = (0, react_1.useState)(initialDraftFor(value, kind)), draft = _d[0], setDraft = _d[1];
377
- var inputRef = (0, react_1.useRef)(null);
378
- // Re-sync the local draft when the prop value or kind changes
379
- // externally. Editing keeps its own draft until commit/cancel.
380
- (0, react_1.useLayoutEffect)(function () {
381
- if (editing)
382
- return;
383
- setDraft(initialDraftFor(value, kind));
384
- }, [value, kind, editing]);
385
- // Focus the input when entering edit mode (text / number cells
386
- // only — boolean's checkbox is keyboard-accessible by tab).
387
- (0, react_1.useLayoutEffect)(function () {
388
- var _a;
389
- if (!editing || isBoolean)
390
- return;
391
- var node = inputRef.current;
392
- if (!node)
393
- return;
394
- node.focus();
395
- (_a = node.select) === null || _a === void 0 ? void 0 : _a.call(node);
396
- }, [editing, isBoolean]);
397
- var startEditing = (0, react_1.useCallback)(function () {
398
- if (!commit)
399
- return;
400
- setDraft(initialDraftFor(value, kind));
401
- setEditing(true);
402
- }, [commit, kind, value]);
403
- var cancelEditing = (0, react_1.useCallback)(function () {
404
- setDraft(initialDraftFor(value, kind));
405
- setEditing(false);
406
- }, [kind, value]);
407
- var commitDraft = (0, react_1.useCallback)(function () {
408
- if (!commit) {
409
- setEditing(false);
410
- return;
411
- }
412
- if (isBoolean) {
413
- commit(path, draft === true);
414
- setEditing(false);
415
- return;
416
- }
417
- var text = typeof draft === 'string' ? draft : '';
418
- if (isNumber) {
419
- if (text.trim() === '') {
420
- commit(path, null);
421
- setEditing(false);
422
- return;
423
- }
424
- var parsed = Number(text);
425
- if (Number.isNaN(parsed)) {
426
- cancelEditing();
427
- return;
428
- }
429
- commit(path, parsed);
430
- setEditing(false);
431
- return;
432
- }
433
- // String / null cells. An empty edit on a null leaf is a no-op
434
- // (don't accidentally upgrade null → empty string).
435
- if (text === '' && (value === null || value === undefined)) {
436
- setEditing(false);
437
- return;
438
- }
439
- commit(path, text);
440
- setEditing(false);
441
- }, [cancelEditing, commit, draft, isBoolean, isNumber, path, value]);
442
- if (!editing) {
443
- return ((0, jsx_runtime_1.jsx)(EditCellShell, { "data-editing": 'false', onClick: function (e) {
444
- e.stopPropagation();
445
- startEditing();
446
- }, onKeyDown: function (e) {
447
- if (e.key === 'Enter' || e.key === ' ') {
448
- e.preventDefault();
449
- startEditing();
450
- }
451
- }, role: 'button', tabIndex: 0, "aria-label": 'Edit value', children: renderScalarChip(value, type, ctx, path) }));
452
- }
453
- // Inline type-change. Coerces the CURRENT DRAFT (in its
454
- // canonical form for the current kind — string for text/numeric
455
- // inputs, boolean for the checkbox) to the picked kind. A user
456
- // who has typed `42` and then realises they meant Number keeps
457
- // the `42` they typed; a user who has clicked the checkbox `on`
458
- // and switches to String gets `"true"`.
459
- //
460
- // Picking `string` / `number` / `boolean` keeps the cell in edit
461
- // mode and re-initialises the draft to the coerced value (so the
462
- // input swap doesn't visually drop the user's intent). Picking
463
- // `object` / `array` / `null` commits the coerced value and
464
- // exits so the right control takes over (structural view / "—"
465
- // chip).
466
- var handlePickType = function (newKind) {
467
- var _a;
468
- if (newKind === kind)
469
- return;
470
- var coerced = (0, helpers_1.reqoreCoerceValueToKind)(draft, newKind);
471
- (_a = ctx.commitTypeChange) === null || _a === void 0 ? void 0 : _a.call(ctx, path, newKind);
472
- if (newKind === 'string' || newKind === 'number') {
473
- setDraft(coerced === null || coerced === undefined ? '' : String(coerced));
474
- }
475
- else if (newKind === 'boolean') {
476
- setDraft(coerced === true);
477
- }
478
- else {
479
- setEditing(false);
480
- }
481
- };
482
- var currentTypeItem = TYPE_PICKER_ITEMS.find(function (entry) { return entry.kind === kind; });
483
- return ((0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { gapSize: 'tiny', verticalAlign: 'center', size: ctx.size, className: 'reqore-data-view-edit-group', children: [isBoolean ? ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { checked: draft === true, size: ctx.size,
484
- // Toggle the LOCAL draft only — Save commits, Cancel
485
- // discards. Keeps the edit semantics identical to
486
- // text/number cells.
487
- onClick: function () { return setDraft(!(draft === true)); }, className: 'reqore-data-view-edit-bool' })) : ((0, jsx_runtime_1.jsx)(Input_1.default, { size: ctx.size, type: isNumber ? 'number' : 'text', value: typeof draft === 'string' ? draft : '', ref: (function (node) {
488
- if (node instanceof HTMLElement) {
489
- inputRef.current = node.querySelector('input');
490
- }
491
- }), onChange: function (event) {
492
- return setDraft(event.target.value);
493
- }, onBlur: commitDraft, onKeyDown: function (event) {
494
- if (event.key === 'Enter') {
495
- event.preventDefault();
496
- commitDraft();
497
- }
498
- else if (event.key === 'Escape') {
499
- event.preventDefault();
500
- cancelEditing();
501
- }
502
- }, className: 'reqore-data-view-edit' })), ctx.commitTypeChange ? ((0, jsx_runtime_1.jsx)(Dropdown_1.default, { size: ctx.size, icon: (_b = currentTypeItem === null || currentTypeItem === void 0 ? void 0 : currentTypeItem.icon) !== null && _b !== void 0 ? _b : 'TextWrap', tooltip: 'Change type', className: 'reqore-data-view-edit-type', items: TYPE_PICKER_ITEMS.map(function (entry) { return ({
503
- label: entry.label,
504
- icon: entry.icon,
505
- selected: entry.kind === kind,
506
- onClick: function () { return handlePickType(entry.kind); },
507
- }); }) })) : null, (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CheckLine', intent: 'success', flat: true, minimal: true, tooltip: 'Save (Enter)', onMouseDown: function (e) {
508
- e.preventDefault();
509
- commitDraft();
510
- }, className: 'reqore-data-view-edit-commit' }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CloseLine', flat: true, minimal: true, tooltip: 'Cancel (Esc)', onMouseDown: function (e) {
511
- e.preventDefault();
512
- cancelEditing();
513
- }, className: 'reqore-data-view-edit-cancel' })] }));
514
- });
515
- EditableScalarCell.displayName = 'ReqoreDataView.EditableScalarCell';
516
- var EditableKeyCell = (0, react_1.memo)(function (_a) {
517
- var _b;
518
- var keyName = _a.keyName, siblingKeys = _a.siblingKeys, parentPath = _a.parentPath, ctx = _a.ctx;
519
- var commit = ctx.commitRename;
520
- var _c = (0, react_1.useState)(false), editing = _c[0], setEditing = _c[1];
521
- var _d = (0, react_1.useState)(keyName), draft = _d[0], setDraft = _d[1];
522
- var inputRef = (0, react_1.useRef)(null);
523
- (0, react_1.useLayoutEffect)(function () {
524
- if (editing)
525
- return;
526
- setDraft(keyName);
527
- }, [keyName, editing]);
528
- (0, react_1.useLayoutEffect)(function () {
529
- var _a;
530
- if (!editing)
531
- return;
532
- var node = inputRef.current;
533
- if (!node)
534
- return;
535
- node.focus();
536
- (_a = node.select) === null || _a === void 0 ? void 0 : _a.call(node);
537
- }, [editing]);
538
- var start = (0, react_1.useCallback)(function () {
539
- if (!commit)
540
- return;
541
- setDraft(keyName);
542
- setEditing(true);
543
- }, [commit, keyName]);
544
- var cancel = (0, react_1.useCallback)(function () {
545
- setDraft(keyName);
546
- setEditing(false);
547
- }, [keyName]);
548
- var submit = (0, react_1.useCallback)(function () {
549
- var trimmed = draft.trim();
550
- if (!commit || !trimmed || trimmed === keyName) {
551
- cancel();
552
- return;
553
- }
554
- if (siblingKeys.includes(trimmed)) {
555
- cancel();
556
- return;
557
- }
558
- commit(parentPath, keyName, trimmed);
559
- setEditing(false);
560
- }, [cancel, commit, draft, keyName, parentPath, siblingKeys]);
561
- if (!editing) {
562
- return ((0, jsx_runtime_1.jsx)(EditCellShell, { "data-editing": 'false', onClick: function (e) {
563
- e.stopPropagation();
564
- start();
565
- }, role: 'button', tabIndex: 0, "aria-label": 'Rename key', children: (0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: false, minimal: true, wrap: true, intent: ctx.keyIntent === null ? undefined : (_b = ctx.keyIntent) !== null && _b !== void 0 ? _b : 'info', color: ctx.keyColor, label: keyName, effect: { weight: 'bold' }, className: 'reqore-data-view-key' }) }));
566
- }
567
- return ((0, jsx_runtime_1.jsxs)(ControlGroup_1.default, { gapSize: 'tiny', verticalAlign: 'center', size: ctx.size, className: 'reqore-data-view-key-edit-group', children: [(0, jsx_runtime_1.jsx)(Input_1.default, { size: ctx.size, value: draft, ref: (function (node) {
568
- if (node instanceof HTMLElement) {
569
- inputRef.current = node.querySelector('input');
570
- }
571
- }), onChange: function (e) {
572
- return setDraft(e.target.value);
573
- }, onBlur: submit, onKeyDown: function (e) {
574
- if (e.key === 'Enter') {
575
- e.preventDefault();
576
- submit();
577
- }
578
- else if (e.key === 'Escape') {
579
- e.preventDefault();
580
- cancel();
581
- }
582
- }, className: 'reqore-data-view-key-edit' }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CheckLine', intent: 'success', flat: true, minimal: true, tooltip: 'Rename (Enter)', onMouseDown: function (e) {
583
- e.preventDefault();
584
- submit();
585
- }, className: 'reqore-data-view-key-edit-commit' }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CloseLine', flat: true, minimal: true, tooltip: 'Cancel (Esc)', onMouseDown: function (e) {
586
- e.preventDefault();
587
- cancel();
588
- }, className: 'reqore-data-view-key-edit-cancel' })] }));
589
- });
590
- EditableKeyCell.displayName = 'ReqoreDataView.EditableKeyCell';
591
- /** Hover-revealed row action group — currently the delete button.
592
- * Renders as a normal grid cell at the trailing edge of each row so
593
- * it always sits cleanly inside the row's bounds (no absolute
594
- * positioning, no overflow past the panel's rounded corner). The
595
- * group's `opacity` is `0` by default and promoted to `1` on row
596
- * hover via the parent `Row`'s `:hover` rule. The cell itself stays
597
- * in the layout so the row width doesn't jump as the user hovers. */
598
- var RowActionsContainer = styled_components_1.default.div(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n gap: 4px;\n /* Pad the action cell off the row's right edge a touch so the button\n doesn't kiss the panel's rounded corner. */\n padding-right: 2px;\n opacity: 0;\n transition: opacity 0.12s ease-out;\n pointer-events: none;\n\n .reqore-data-view-row:hover & {\n opacity: 1;\n pointer-events: auto;\n }\n\n /* Keep the actions visible when any child is focused (keyboard\n navigation must reveal them too). */\n &:focus-within {\n opacity: 1;\n pointer-events: auto;\n }\n"], ["\n display: inline-flex;\n align-items: center;\n gap: 4px;\n /* Pad the action cell off the row's right edge a touch so the button\n doesn't kiss the panel's rounded corner. */\n padding-right: 2px;\n opacity: 0;\n transition: opacity 0.12s ease-out;\n pointer-events: none;\n\n .reqore-data-view-row:hover & {\n opacity: 1;\n pointer-events: auto;\n }\n\n /* Keep the actions visible when any child is focused (keyboard\n navigation must reveal them too). */\n &:focus-within {\n opacity: 1;\n pointer-events: auto;\n }\n"])));
599
- var RowActions = (0, react_1.memo)(function (_a) {
600
- var ctx = _a.ctx, path = _a.path, ariaLabel = _a.ariaLabel;
601
- if (!ctx.commitDelete)
602
- return null;
603
- return ((0, jsx_runtime_1.jsx)(RowActionsContainer, { className: 'reqore-data-view-row-actions', onClick: function (e) { return e.stopPropagation(); }, children: (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'DeleteBin6Line', flat: true, minimal: true, tooltip: ariaLabel, intent: 'danger', onClick: function () { return ctx.commitDelete(path); }, className: 'reqore-data-view-row-delete' }) }));
604
- });
605
- RowActions.displayName = 'ReqoreDataView.RowActions';
606
- /** Default value for a new entry of the picked type. */
607
- var defaultForKind = function (kind) {
608
- switch (kind) {
609
- case 'string':
610
- return '';
611
- case 'number':
612
- return 0;
613
- case 'boolean':
614
- return false;
615
- case 'object':
616
- return {};
617
- case 'array':
618
- return [];
619
- case 'null':
620
- default:
621
- return null;
622
- }
623
- };
624
- var TYPE_PICKER_ITEMS = [
625
- { kind: 'string', label: 'String', icon: 'TextWrap' },
626
- { kind: 'number', label: 'Number', icon: 'Hashtag' },
627
- { kind: 'boolean', label: 'Boolean', icon: 'CheckboxLine' },
628
- { kind: 'object', label: 'Object (hash)', icon: 'BracesLine' },
629
- { kind: 'array', label: 'Array (list)', icon: 'BracketsLine' },
630
- { kind: 'null', label: 'Null', icon: 'CircleLine' },
631
- ];
632
- var AddRowShell = styled_components_1.default.div(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n display: flex;\n flex-flow: row wrap;\n gap: 6px;\n align-items: center;\n padding: 8px;\n border-top: 1px dashed\n ", ";\n background: rgba(0, 0, 0, 0.12);\n"], ["\n display: flex;\n flex-flow: row wrap;\n gap: 6px;\n align-items: center;\n padding: 8px;\n border-top: 1px dashed\n ", ";\n background: rgba(0, 0, 0, 0.12);\n"])), function (_a) {
633
- var theme = _a.theme;
634
- return (0, polished_1.rgba)((0, colors_1.getReadableColor)(theme), 0.2);
635
- });
636
- var AddEntryAffordance = (0, react_1.memo)(function (_a) {
637
- var _b;
638
- var ctx = _a.ctx, parentPath = _a.parentPath, context = _a.context;
639
- var _c = (0, react_1.useState)(false), open = _c[0], setOpen = _c[1];
640
- var _d = (0, react_1.useState)(''), key = _d[0], setKey = _d[1];
641
- var _e = (0, react_1.useState)('string'), valueKind = _e[0], setValueKind = _e[1];
642
- if (!ctx.commitAdd)
643
- return null;
644
- var reset = function () {
645
- setOpen(false);
646
- setKey('');
647
- setValueKind('string');
648
- };
649
- var submit = function () {
650
- var initial = defaultForKind(valueKind);
651
- if (context.kind === 'record') {
652
- var trimmed = key.trim();
653
- if (!trimmed)
654
- return;
655
- if (context.existingKeys.includes(trimmed))
656
- return;
657
- ctx.commitAdd(parentPath, trimmed, initial);
658
- }
659
- else {
660
- ctx.commitAdd(parentPath, context.length, initial);
661
- }
662
- reset();
663
- };
664
- if (!open) {
665
- return ((0, jsx_runtime_1.jsx)(AddRowShell, { className: 'reqore-data-view-add-row', "data-state": 'collapsed', children: (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'AddLine', flat: true, minimal: true, onClick: function () { return setOpen(true); }, label: context.kind === 'record' ? 'Add property' : 'Add item' }) }));
666
- }
667
- var typeItem = TYPE_PICKER_ITEMS.find(function (entry) { return entry.kind === valueKind; });
668
- return ((0, jsx_runtime_1.jsxs)(AddRowShell, { className: 'reqore-data-view-add-row', "data-state": 'expanded', onKeyDown: function (e) {
669
- if (e.key === 'Escape') {
670
- e.preventDefault();
671
- reset();
672
- }
673
- }, children: [context.kind === 'record' ? ((0, jsx_runtime_1.jsx)(Input_1.default, { size: ctx.size, placeholder: 'property name', value: key, onChange: function (e) {
674
- return setKey(e.target.value);
675
- }, onKeyDown: function (e) {
676
- if (e.key === 'Enter') {
677
- e.preventDefault();
678
- submit();
679
- }
680
- }, className: 'reqore-data-view-add-key' })) : null, (0, jsx_runtime_1.jsx)(Dropdown_1.default, { size: ctx.size, icon: typeItem === null || typeItem === void 0 ? void 0 : typeItem.icon, label: (_b = typeItem === null || typeItem === void 0 ? void 0 : typeItem.label) !== null && _b !== void 0 ? _b : 'String', className: 'reqore-data-view-add-type', items: TYPE_PICKER_ITEMS.map(function (entry) { return ({
681
- label: entry.label,
682
- icon: entry.icon,
683
- selected: entry.kind === valueKind,
684
- onClick: function () { return setValueKind(entry.kind); },
685
- }); }) }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CheckLine', intent: 'success', flat: true, minimal: true, onClick: submit, label: 'Add', className: 'reqore-data-view-add-commit' }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: ctx.size, icon: 'CloseLine', flat: true, minimal: true, onClick: reset, tooltip: 'Cancel', className: 'reqore-data-view-add-cancel' })] }));
686
- });
687
- AddEntryAffordance.displayName = 'ReqoreDataView.AddEntryAffordance';
688
- var isInlineableScalarValue = function (value, ctx) {
689
- var unwrapped = ctx.envelope === false ? value : (0, helpers_1.reqoreUnwrapEnvelope)(value, ctx.envelope);
690
- if (typeof unwrapped === 'string' && ctx.parseEmbedded && ctx.parseEmbedded(unwrapped)) {
691
- return false;
692
- }
693
- return !Array.isArray(unwrapped) && !(0, helpers_1.reqoreIsRecord)(unwrapped);
694
- };
695
- var renderScalar = function (value, type, ctx, path) {
696
- var scalar = (0, helpers_1.reqoreFormatScalar)(value, type, ctx.scalarOptions);
697
- var kind = type ? (0, helpers_1.reqoreDataValueKind)(value, type) : scalar.kind;
698
- var intent = (0, helpers_1.reqoreDataValueIntent)(kind);
699
- var displayType = type !== null && type !== void 0 ? type : kind;
700
- // Editable mode: render the click-to-edit cell instead of the
701
- // static chip. Date-typed scalars stay read-only until the date
702
- // picker lands.
703
- if (ctx.editable && kind !== 'date' && kind !== 'object' && kind !== 'array') {
704
- var cell = ((0, jsx_runtime_1.jsx)(EditableScalarCell, { value: value, kind: kind, type: type, ctx: ctx, path: path }));
705
- if (!ctx.showTypes || !displayType)
706
- return cell;
707
- return ((0, jsx_runtime_1.jsxs)(ScalarRow, { gapSize: 'tiny', verticalAlign: 'center', size: ctx.size, children: [cell, (0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: true, minimal: true, label: displayType, effect: { uppercase: true, spaced: 1, opacity: 0.6 }, className: 'reqore-data-view-type' })] }));
708
- }
709
- var multiline = kind === 'string' && /[\r\n]/.test(scalar.display);
710
- if (multiline) {
711
- // `white-space: pre-wrap` reliably forces a line break on \n in every
712
- // browser, but a *lone* \r (the actual HL7 v2 segment separator, and
713
- // old-Mac-style line endings generally) is not guaranteed to — Chromium
714
- // renders it as a zero-width no-op, silently fusing the two segments
715
- // together (`...P|2.5` + \r + `OBR|1...` becomes the unreadable
716
- // `2.5OBR`). Normalize every line-ending style to \n before display so
717
- // the break is spec-guaranteed regardless of the source payload's
718
- // original convention.
719
- var displayText = scalar.display.replace(/\r\n?/g, '\n');
720
- var block = ((0, jsx_runtime_1.jsx)(MultilineValue, { "$size": ctx.size, "$theme": ctx.theme, "$interactive": Boolean(ctx.onItemClick), className: 'reqore-data-view-value reqore-data-view-multiline-value', role: ctx.onItemClick ? 'button' : undefined, tabIndex: ctx.onItemClick ? 0 : undefined, onClick: ctx.onItemClick
721
- ? function () { return ctx.onItemClick(value, path); }
722
- : undefined, onKeyDown: ctx.onItemClick
723
- ? function (event) {
724
- if (event.key !== 'Enter' && event.key !== ' ')
725
- return;
726
- event.preventDefault();
727
- ctx.onItemClick(value, path);
728
- }
729
- : undefined, children: displayText }));
730
- if (!ctx.showTypes || !displayType)
731
- return block;
732
- return ((0, jsx_runtime_1.jsxs)(ScalarRow, { gapSize: 'tiny', verticalAlign: 'top', size: ctx.size, fluid: true, children: [block, (0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: true, minimal: true, label: displayType, effect: { uppercase: true, spaced: 1, opacity: 0.6 }, className: 'reqore-data-view-type' })] }));
733
- }
734
- // Value chip: minimal + intent-tinted (so the type is colour-coded
735
- // without shouting), weight bold. We always render with a border
736
- // (flat={false}) — the panel's own `flat` prop affects the outer
737
- // panel chrome, but the inner chips read more cleanly as values
738
- // when they have a visible outline regardless. Consumers who want
739
- // borderless chips can override via a wrapper or via reqore's
740
- // built-in `effect` slot.
741
- var tag = ((0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: false, minimal: true,
742
- // `wrap` is critical for the value chip — without it, a long
743
- // string scalar (an HL7 payload, a stack trace, a UUID-heavy
744
- // identifier) renders as a single non-wrapping pill that
745
- // overflows its column horizontally. With `wrap`, ReqoreTag
746
- // lets the label flow onto multiple lines inside the chip.
747
- wrap: true, label: scalar.display, intent: intent, effect: {
748
- weight: 'bold',
749
- }, onClick: ctx.onItemClick
750
- ? function () { return ctx.onItemClick(value, path); }
751
- : undefined, className: 'reqore-data-view-value' }));
752
- if (!ctx.showTypes || !displayType)
753
- return tag;
754
- return ((0, jsx_runtime_1.jsxs)(ScalarRow, { gapSize: 'tiny', verticalAlign: 'center', size: ctx.size, children: [tag, (0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: true, minimal: true, label: displayType, effect: { uppercase: true, spaced: 1, opacity: 0.6 }, className: 'reqore-data-view-type' })] }));
755
- };
756
- /** Width (in CSS px) below which a `RecordTable` switches its rows
757
- * from a two-column grid (key | value) to a single column (key on
758
- * top, value beneath). Tuned to the point where the 120px-min key
759
- * column + gap + the value column starts squeezing the value into a
760
- * useless sliver. */
761
- var STACK_BELOW_PX = 360;
762
- /**
763
- * Record renderer that observes its own width and switches the row
764
- * layout to vertical (key above value) when narrower than
765
- * `STACK_BELOW_PX`. The observer hooks the actual rendered
766
- * `TableShell` so the layout responds to *the parent panel's* width,
767
- * not the viewport — works inside narrow drawers on a wide monitor.
768
- *
769
- * Lives outside `renderTree` because `renderTree` is a pure function;
770
- * this component is where the `useState` + `ResizeObserver` lifecycle
771
- * live.
772
- */
773
- var RecordTable = (0, react_1.memo)(function (_a) {
774
- var entries = _a.entries, ctx = _a.ctx, theme = _a.theme, depth = _a.depth, path = _a.path;
775
- var shellRef = (0, react_1.useRef)(null);
776
- var _b = (0, react_1.useState)(false), stacked = _b[0], setStacked = _b[1];
777
- (0, react_1.useLayoutEffect)(function () {
778
- var node = shellRef.current;
779
- if (!node || typeof ResizeObserver === 'undefined')
780
- return undefined;
781
- var observer = new ResizeObserver(function (events) {
782
- var _a, _b;
783
- var entry = events[0];
784
- if (!entry)
785
- return;
786
- var width = (_b = (_a = entry.contentRect) === null || _a === void 0 ? void 0 : _a.width) !== null && _b !== void 0 ? _b : node.clientWidth;
787
- setStacked(width > 0 && width < STACK_BELOW_PX);
788
- });
789
- observer.observe(node);
790
- return function () { return observer.disconnect(); };
791
- }, []);
792
- var siblingKeys = entries.map(function (_a) {
793
- var k = _a[0];
794
- return k;
795
- });
796
- return ((0, jsx_runtime_1.jsxs)(TableShell, { ref: shellRef, "$size": ctx.size, "$theme": theme, "$nested": depth > 0, className: 'reqore-data-view-record', children: [entries.map(function (_a, index) {
797
- var _b;
798
- var key = _a[0], item = _a[1];
799
- var complex = (0, helpers_1.reqoreIsRecord)(ctx.envelope === false ? item : (0, helpers_1.reqoreUnwrapEnvelope)(item, ctx.envelope)) ||
800
- (Array.isArray(ctx.envelope === false ? item : (0, helpers_1.reqoreUnwrapEnvelope)(item, ctx.envelope)) &&
801
- !(ctx.inlineScalarArrays &&
802
- (ctx.envelope === false
803
- ? item
804
- : (0, helpers_1.reqoreUnwrapEnvelope)(item, ctx.envelope)).every(function (entry) { return isInlineableScalarValue(entry, ctx); })));
805
- var rowPath = __spreadArray(__spreadArray([], path, true), [key], false);
806
- return ((0, jsx_runtime_1.jsxs)(Row, { "$size": ctx.size, "$theme": theme, "$complex": complex, "$odd": index % 2 === 0, "$stacked": stacked, "$editable": ctx.editable, className: 'reqore-data-view-row', children: [ctx.editable ? ((0, jsx_runtime_1.jsx)(EditableKeyCell, { keyName: key, siblingKeys: siblingKeys, parentPath: path, ctx: ctx })) : ((0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, flat: false, minimal: true, wrap: true, intent: ctx.keyIntent === null ? undefined : (_b = ctx.keyIntent) !== null && _b !== void 0 ? _b : 'info', color: ctx.keyColor, label: key, effect: { weight: 'bold' }, className: 'reqore-data-view-key' })), (0, jsx_runtime_1.jsx)(ValueCell, { "$size": ctx.size, "$theme": theme, "$complex": complex, className: 'reqore-data-view-value-cell', children: renderTree(item, ctx, theme, depth + 1, rowPath) }), ctx.editable ? ((0, jsx_runtime_1.jsx)(RowActions, { ctx: ctx, path: rowPath, ariaLabel: "Remove ".concat(key) })) : null] }, "".concat(path.join('.'), "-").concat(key)));
807
- }), ctx.editable ? ((0, jsx_runtime_1.jsx)(AddEntryAffordance, { ctx: ctx, parentPath: path, context: { kind: 'record', existingKeys: siblingKeys } })) : null] }));
808
- });
809
- RecordTable.displayName = 'ReqoreDataView.RecordTable';
810
- var renderTree = function (value, ctx, theme, depth, path) {
811
- var envelopeType = ctx.envelope === false ? undefined : (0, helpers_1.reqoreEnvelopeType)(value, ctx.envelope);
812
- var unwrapped = ctx.envelope === false ? value : (0, helpers_1.reqoreUnwrapEnvelope)(value, ctx.envelope);
813
- // Embedded string parsing (e.g. JSON inside a string).
814
- if (typeof unwrapped === 'string' && ctx.parseEmbedded) {
815
- var parsed = ctx.parseEmbedded(unwrapped);
816
- if (parsed) {
817
- return ((0, jsx_runtime_1.jsxs)(Tree, { "$size": ctx.size, "$theme": theme, children: [parsed.prefix ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { size: ctx.size, effect: { opacity: 0.72 }, children: parsed.prefix })) : null, renderTree(parsed.data, ctx, theme, depth + 1, __spreadArray(__spreadArray([], path, true), ['<parsed>'], false))] }));
818
- }
819
- }
820
- // Arrays.
821
- if (Array.isArray(unwrapped)) {
822
- // In editable mode, render every array item as its own row so the
823
- // hover-revealed delete + `+ Add item` affordance has a place to
824
- // live. The inline chip-row variant is for read-only density.
825
- var allInlineable = !ctx.editable &&
826
- ctx.inlineScalarArrays &&
827
- unwrapped.every(function (item) { return isInlineableScalarValue(item, ctx); });
828
- if (allInlineable) {
829
- return ((0, jsx_runtime_1.jsxs)(ScalarRow, { size: ctx.size, gapSize: 'small', verticalAlign: 'center', children: [envelopeType ? ((0, jsx_runtime_1.jsx)(Tag_1.default, { size: ctx.size, minimal: true, flat: false, label: envelopeType, effect: { uppercase: true, spaced: 1, opacity: 0.6 }, className: 'reqore-data-view-type' })) : null, unwrapped.map(function (item, index) { return ((0, jsx_runtime_1.jsx)("span", { children: renderScalar(ctx.envelope === false ? item : (0, helpers_1.reqoreUnwrapEnvelope)(item, ctx.envelope), ctx.envelope === false ? undefined : (0, helpers_1.reqoreEnvelopeType)(item, ctx.envelope), ctx, __spreadArray(__spreadArray([], path, true), [String(index)], false)) }, "".concat(path.join('.'), "-").concat(index))); })] }));
830
- }
831
- var content = ((0, jsx_runtime_1.jsxs)(ArrayStack, { "$size": ctx.size, "$theme": theme, className: 'reqore-data-view-array', children: [unwrapped.map(function (item, index) {
832
- var itemPath = __spreadArray(__spreadArray([], path, true), [String(index)], false);
833
- return ((0, jsx_runtime_1.jsxs)(ArrayItem, { "$size": ctx.size, "$theme": theme, className: 'reqore-data-view-array-item reqore-data-view-row', children: [(0, jsx_runtime_1.jsxs)(ArrayItemContent, { children: [unwrapped.length > 1 ? ((0, jsx_runtime_1.jsx)(ArrayItemIndex, { "$size": ctx.size, "$theme": theme, children: index + 1 })) : null, renderTree(item, ctx, theme, depth + 1, itemPath)] }), ctx.editable ? ((0, jsx_runtime_1.jsx)(RowActions, { ctx: ctx, path: itemPath, ariaLabel: "Remove item ".concat(index + 1) })) : null] }, "".concat(path.join('.'), "-").concat(index)));
834
- }), ctx.editable ? ((0, jsx_runtime_1.jsx)(AddEntryAffordance, { ctx: ctx, parentPath: path, context: { kind: 'array', length: unwrapped.length } })) : null] }));
835
- if (depth === 0)
836
- return content;
837
- return ((0, jsx_runtime_1.jsx)(PreservedDetails, { initialOpen: depth < ctx.defaultExpandDepth, label: SECTION_LABEL('List', unwrapped.length), path: path, size: ctx.size, theme: theme, onToggle: ctx.onSectionToggle, children: content }));
838
- }
839
- // Records.
840
- if ((0, helpers_1.reqoreIsRecord)(unwrapped)) {
841
- var entries = Object.entries(unwrapped);
842
- var content = ((0, jsx_runtime_1.jsx)(RecordTable, { entries: entries, ctx: ctx, theme: theme, depth: depth, path: path }));
843
- if (depth === 0)
844
- return content;
845
- return ((0, jsx_runtime_1.jsx)(PreservedDetails, { initialOpen: depth < ctx.defaultExpandDepth, label: SECTION_LABEL('Object', entries.length), path: path, size: ctx.size, theme: theme, onToggle: ctx.onSectionToggle, children: content }));
846
- }
847
- return renderScalar(unwrapped, envelopeType, ctx, path);
848
- };
849
- exports.ReqoreDataView = (0, react_1.memo)((0, react_1.forwardRef)(function (_a, ref) {
850
- var _b;
851
- var data = _a.data, _c = _a.emptyText, emptyText = _c === void 0 ? 'No data.' : _c, _d = _a.collapsibleRoot, collapsibleRoot = _d === void 0 ? true : _d, _e = _a.defaultExpandDepth, defaultExpandDepth = _e === void 0 ? 2 : _e, _f = _a.showTypes, showTypes = _f === void 0 ? false : _f, _g = _a.inlineScalarArrays, inlineScalarArrays = _g === void 0 ? true : _g, _h = _a.envelope, envelope = _h === void 0 ? helpers_1.DEFAULT_ENVELOPE : _h, parseEmbedded = _a.parseEmbedded, parseDate = _a.parseDate, formatDate = _a.formatDate, onItemClick = _a.onItemClick, onSectionToggle = _a.onSectionToggle, keyColor = _a.keyColor, keyIntent = _a.keyIntent, _j = _a.editable, editable = _j === void 0 ? false : _j, onDataChange = _a.onDataChange, onValueChange = _a.onValueChange, onRemoveProperty = _a.onRemoveProperty, onRenameProperty = _a.onRenameProperty, onAddProperty = _a.onAddProperty, onChangeType = _a.onChangeType, _k = _a.size, size = _k === void 0 ? 'normal' : _k, customTheme = _a.customTheme, inheritCustomTheme = _a.inheritCustomTheme, intent = _a.intent, flat = _a.flat, panelProps = __rest(_a, ["data", "emptyText", "collapsibleRoot", "defaultExpandDepth", "showTypes", "inlineScalarArrays", "envelope", "parseEmbedded", "parseDate", "formatDate", "onItemClick", "onSectionToggle", "keyColor", "keyIntent", "editable", "onDataChange", "onValueChange", "onRemoveProperty", "onRenameProperty", "onAddProperty", "onChangeType", "size", "customTheme", "inheritCustomTheme", "intent", "flat"]);
852
- var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme, intent, undefined, inheritCustomTheme);
853
- // In editable mode an empty `{}` or `[]` must still render the
854
- // tree so the `+ Add property` / `+ Add item` affordance is
855
- // reachable — otherwise a from-scratch build is impossible.
856
- // Only fall back to the empty callout when read-only AND the
857
- // value is genuinely empty.
858
- var empty = !editable &&
859
- !(0, helpers_1.reqoreHasStructuredValue)(data, envelope === false ? undefined : envelope);
860
- var dataRef = (0, react_1.useRef)(data);
861
- (0, react_1.useLayoutEffect)(function () {
862
- dataRef.current = data;
863
- }, [data]);
864
- var commitScalar = (0, react_1.useCallback)(function (path, value) {
865
- onValueChange === null || onValueChange === void 0 ? void 0 : onValueChange(path, value);
866
- if (!onDataChange)
867
- return;
868
- var next = (0, helpers_1.reqoreSetAtPath)(dataRef.current, path, value);
869
- onDataChange(next);
870
- }, [onDataChange, onValueChange]);
871
- var commitDelete = (0, react_1.useCallback)(function (path) {
872
- onRemoveProperty === null || onRemoveProperty === void 0 ? void 0 : onRemoveProperty(path);
873
- if (!onDataChange)
874
- return;
875
- var next = (0, helpers_1.reqoreDeleteAtPath)(dataRef.current, path);
876
- onDataChange(next);
877
- }, [onDataChange, onRemoveProperty]);
878
- var commitRename = (0, react_1.useCallback)(function (parentPath, oldKey, newKey) {
879
- onRenameProperty === null || onRenameProperty === void 0 ? void 0 : onRenameProperty(parentPath, oldKey, newKey);
880
- if (!onDataChange)
881
- return;
882
- var next = (0, helpers_1.reqoreRenameKeyAtPath)(dataRef.current, parentPath, oldKey, newKey);
883
- onDataChange(next);
884
- }, [onDataChange, onRenameProperty]);
885
- var commitAdd = (0, react_1.useCallback)(function (parentPath, keyOrIndex, initialValue) {
886
- onAddProperty === null || onAddProperty === void 0 ? void 0 : onAddProperty(parentPath, keyOrIndex, initialValue);
887
- if (!onDataChange)
888
- return;
889
- var next = (0, helpers_1.reqoreSetAtPath)(dataRef.current, __spreadArray(__spreadArray([], parentPath, true), [String(keyOrIndex)], false), initialValue);
890
- onDataChange(next);
891
- }, [onAddProperty, onDataChange]);
892
- var commitTypeChange = (0, react_1.useCallback)(function (path, kind) {
893
- onChangeType === null || onChangeType === void 0 ? void 0 : onChangeType(path, kind);
894
- if (!onDataChange)
895
- return;
896
- // Read the current value at path, coerce it to the target
897
- // kind, and re-emit the tree. The lookup walks the same
898
- // path the set will use, so a missing path is a no-op.
899
- var current = dataRef.current;
900
- for (var _i = 0, path_1 = path; _i < path_1.length; _i++) {
901
- var segment = path_1[_i];
902
- if (current == null)
903
- return;
904
- if (Array.isArray(current)) {
905
- var index = Number.parseInt(segment, 10);
906
- current = Number.isNaN(index) ? undefined : current[index];
907
- }
908
- else if ((0, helpers_1.reqoreIsRecord)(current)) {
909
- current = current[segment];
910
- }
911
- else {
912
- return;
913
- }
914
- }
915
- var next = (0, helpers_1.reqoreSetAtPath)(dataRef.current, path, (0, helpers_1.reqoreCoerceValueToKind)(current, kind));
916
- onDataChange(next);
917
- }, [onChangeType, onDataChange]);
918
- var ctx = {
919
- theme: theme,
920
- envelope: envelope,
921
- parseEmbedded: parseEmbedded,
922
- showTypes: showTypes,
923
- inlineScalarArrays: inlineScalarArrays,
924
- defaultExpandDepth: defaultExpandDepth,
925
- size: size,
926
- scalarOptions: { parseDate: parseDate, formatDate: formatDate },
927
- onItemClick: onItemClick,
928
- onSectionToggle: onSectionToggle,
929
- keyColor: keyColor,
930
- keyIntent: keyIntent,
931
- editable: editable,
932
- commitScalar: editable ? commitScalar : undefined,
933
- commitDelete: editable ? commitDelete : undefined,
934
- commitRename: editable ? commitRename : undefined,
935
- commitAdd: editable ? commitAdd : undefined,
936
- commitTypeChange: editable ? commitTypeChange : undefined,
937
- };
938
- var body = empty ? ((0, jsx_runtime_1.jsx)(Paragraph_1.ReqoreP, { size: size, effect: { opacity: 0.65 }, children: emptyText })) : collapsibleRoot ? ((0, jsx_runtime_1.jsx)(PreservedDetails, { initialOpen: true, label: Array.isArray(data)
939
- ? SECTION_LABEL('List', data.length)
940
- : (0, helpers_1.reqoreIsRecord)(data)
941
- ? SECTION_LABEL('Object', Object.keys(data).length)
942
- : 'Value', path: [], size: size, theme: theme, onToggle: onSectionToggle, children: (0, jsx_runtime_1.jsx)(Tree, { "$size": size, "$theme": theme, className: 'reqore-data-view-root', children: renderTree(data, ctx, theme, 0, []) }) })) : ((0, jsx_runtime_1.jsx)(Tree, { "$size": size, "$theme": theme, className: 'reqore-data-view-root', children: renderTree(data, ctx, theme, 0, []) }));
943
- return ((0, jsx_runtime_1.jsx)(Panel_1.ReqorePanel, __assign({}, panelProps, { ref: ref, size: size, customTheme: customTheme, inheritCustomTheme: inheritCustomTheme, intent: intent, flat: flat, className: "reqore-data-view ".concat((_b = panelProps.className) !== null && _b !== void 0 ? _b : '').trim(), children: body })));
944
- }));
945
- exports.ReqoreDataView.displayName = 'ReqoreDataView';
946
- var helpers_2 = require("./helpers.cjs");
947
- Object.defineProperty(exports, "DEFAULT_ENVELOPE", { enumerable: true, get: function () { return helpers_2.DEFAULT_ENVELOPE; } });
948
- Object.defineProperty(exports, "reqoreCoerceValueToKind", { enumerable: true, get: function () { return helpers_2.reqoreCoerceValueToKind; } });
949
- Object.defineProperty(exports, "reqoreDataValueIntent", { enumerable: true, get: function () { return helpers_2.reqoreDataValueIntent; } });
950
- Object.defineProperty(exports, "reqoreDataValueKind", { enumerable: true, get: function () { return helpers_2.reqoreDataValueKind; } });
951
- Object.defineProperty(exports, "reqoreDeleteAtPath", { enumerable: true, get: function () { return helpers_2.reqoreDeleteAtPath; } });
952
- Object.defineProperty(exports, "reqoreEnvelopeType", { enumerable: true, get: function () { return helpers_2.reqoreEnvelopeType; } });
953
- Object.defineProperty(exports, "reqoreFormatScalar", { enumerable: true, get: function () { return helpers_2.reqoreFormatScalar; } });
954
- Object.defineProperty(exports, "reqoreHasStructuredValue", { enumerable: true, get: function () { return helpers_2.reqoreHasStructuredValue; } });
955
- Object.defineProperty(exports, "reqoreIsEnvelope", { enumerable: true, get: function () { return helpers_2.reqoreIsEnvelope; } });
956
- Object.defineProperty(exports, "reqoreIsRecord", { enumerable: true, get: function () { return helpers_2.reqoreIsRecord; } });
957
- Object.defineProperty(exports, "reqoreRenameKeyAtPath", { enumerable: true, get: function () { return helpers_2.reqoreRenameKeyAtPath; } });
958
- Object.defineProperty(exports, "reqoreSetAtPath", { enumerable: true, get: function () { return helpers_2.reqoreSetAtPath; } });
959
- Object.defineProperty(exports, "reqoreUnwrapEnvelope", { enumerable: true, get: function () { return helpers_2.reqoreUnwrapEnvelope; } });
960
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18;
961
- //# sourceMappingURL=index.cjs.map