@iress-oss/ids-components 6.0.0-alpha.0 → 6.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/README.md +1 -1
  2. package/dist/Autocomplete-CLvWVHp6.js +358 -0
  3. package/dist/{Button-BXzmntRi.js → Button-D6AL0bia.js} +86 -85
  4. package/dist/Provider-BXQiO7Gp.js +64 -0
  5. package/dist/{TableProvider-D8SQKIG8.js → TableProvider-_4Whj6P5.js} +11 -11
  6. package/dist/components/Alert/Alert.js +34 -35
  7. package/dist/components/Alert/Alert.styles.js +1 -1
  8. package/dist/components/Alert/index.js +4 -5
  9. package/dist/components/Autocomplete/Autocomplete.js +17 -82
  10. package/dist/components/Autocomplete/Autocomplete.styles.js +1 -1
  11. package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +36 -35
  12. package/dist/components/Autocomplete/index.js +6 -4
  13. package/dist/components/Badge/Badge.js +3 -3
  14. package/dist/components/Badge/Badge.styles.js +1 -1
  15. package/dist/components/Button/Button.js +3 -3
  16. package/dist/components/Button/CloseButton/CloseButton.js +1 -1
  17. package/dist/components/Button/index.js +1 -1
  18. package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
  19. package/dist/components/ButtonGroup/ButtonGroup.styles.js +1 -1
  20. package/dist/components/ButtonGroup/hooks/useButtonGroupItem.js +11 -12
  21. package/dist/components/Card/Card.js +2 -2
  22. package/dist/components/Card/Card.styles.js +1 -1
  23. package/dist/components/Checkbox/Checkbox.js +85 -86
  24. package/dist/components/Checkbox/Checkbox.styles.js +1 -1
  25. package/dist/components/CheckboxGroup/CheckboxGroup.js +69 -74
  26. package/dist/components/CheckboxGroup/CheckboxGroup.styles.js +1 -1
  27. package/dist/components/CheckboxMark/CheckboxMark.js +2 -2
  28. package/dist/components/CheckboxMark/CheckboxMark.styles.js +2 -2
  29. package/dist/components/Col/Col.js +1 -1
  30. package/dist/components/Col/Col.styles.js +1 -1
  31. package/dist/components/Container/Container.js +1 -1
  32. package/dist/components/Container/Container.styles.js +3 -2
  33. package/dist/components/Divider/Divider.js +2 -2
  34. package/dist/components/Divider/Divider.styles.js +1 -1
  35. package/dist/components/Expander/Expander.js +46 -41
  36. package/dist/components/Expander/Expander.styles.js +2 -2
  37. package/dist/components/Field/Field.js +55 -54
  38. package/dist/components/Field/Field.styles.js +10 -3
  39. package/dist/components/Field/FieldGroup/FieldGroup.js +40 -40
  40. package/dist/components/Field/FieldGroup/FieldGroup.styles.js +1 -1
  41. package/dist/components/Field/components/FieldFooter.js +32 -32
  42. package/dist/components/Field/components/FieldHint.js +2 -2
  43. package/dist/components/Filter/Filter.js +213 -100
  44. package/dist/components/Filter/Filter.styles.js +1 -1
  45. package/dist/components/Filter/components/FilterResetButton.js +17 -18
  46. package/dist/components/Filter/components/FilterResultsDescriptor.js +6 -6
  47. package/dist/components/Filter/components/FilterSearch.js +18 -19
  48. package/dist/components/Filter/index.js +2 -2
  49. package/dist/components/Hide/Hide.js +1 -1
  50. package/dist/components/Icon/Icon.js +1 -1
  51. package/dist/components/Icon/Icon.styles.js +1 -1
  52. package/dist/components/Image/Image.js +1 -1
  53. package/dist/components/Image/Image.styles.js +1 -1
  54. package/dist/components/Inline/Inline.js +1 -1
  55. package/dist/components/Inline/Inline.styles.js +1 -1
  56. package/dist/components/Input/Input.js +98 -102
  57. package/dist/components/Input/Input.styles.js +1 -1
  58. package/dist/components/Input/InputBase/InputBase.js +23 -23
  59. package/dist/components/Label/Label.styles.js +1 -1
  60. package/dist/components/Label/LabelBase/LabelBase.js +32 -32
  61. package/dist/components/Link/Link.js +50 -51
  62. package/dist/components/Link/Link.styles.js +2 -1
  63. package/dist/components/Menu/Menu.js +51 -51
  64. package/dist/components/Menu/Menu.styles.js +1 -1
  65. package/dist/components/Menu/MenuDivider/MenuDivider.js +13 -13
  66. package/dist/components/Menu/MenuItem/MenuItem.js +144 -146
  67. package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +5 -5
  68. package/dist/components/Menu/MenuText/MenuText.js +38 -38
  69. package/dist/components/Modal/Modal.js +119 -123
  70. package/dist/components/Modal/Modal.styles.js +15 -6
  71. package/dist/components/Modal/ModalProvider.js +20 -22
  72. package/dist/components/Modal/hooks/useModal.js +9 -7
  73. package/dist/components/Modal/hooks/useProviderModal.js +8 -8
  74. package/dist/components/Modal/index.js +7 -6
  75. package/dist/components/Panel/Panel.js +1 -1
  76. package/dist/components/Panel/Panel.styles.js +1 -1
  77. package/dist/components/Placeholder/Placeholder.js +14 -14
  78. package/dist/components/Placeholder/Placeholder.styles.js +1 -1
  79. package/dist/components/Popover/InputPopover/InputPopover.js +89 -14
  80. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +31 -34
  81. package/dist/components/Popover/Popover.js +44 -43
  82. package/dist/components/Popover/Popover.styles.js +2 -2
  83. package/dist/components/Popover/components/NestedPopoverActivator.js +1 -1
  84. package/dist/components/Popover/components/PopoverActivator.js +48 -53
  85. package/dist/components/Popover/components/PopoverContent.js +33 -33
  86. package/dist/components/Popover/helpers/composeFloatingProps.js +23 -26
  87. package/dist/components/Popover/helpers/handlePopoverTabKey.js +11 -14
  88. package/dist/components/Popover/hooks/usePopover.js +79 -75
  89. package/dist/components/Popover/hooks/usePopoverActivatorInteractions.js +23 -26
  90. package/dist/components/Popover/hooks/usePopoverItem.js +16 -17
  91. package/dist/components/Popover/hooks/usePopoverNavigation.js +22 -22
  92. package/dist/components/Popover/index.js +6 -6
  93. package/dist/components/Progress/Progress.js +4 -4
  94. package/dist/components/Progress/Progress.styles.js +1 -1
  95. package/dist/components/Provider/Provider.js +12 -35
  96. package/dist/components/Provider/index.js +1 -1
  97. package/dist/components/Radio/Radio.js +79 -80
  98. package/dist/components/Radio/Radio.styles.js +1 -1
  99. package/dist/components/RadioGroup/RadioGroup.js +69 -77
  100. package/dist/components/RadioGroup/RadioGroup.styles.js +1 -1
  101. package/dist/components/Readonly/Readonly.js +44 -43
  102. package/dist/components/Readonly/Readonly.styles.js +8 -13
  103. package/dist/components/RichSelect/RichSelect.js +21 -86
  104. package/dist/components/RichSelect/RichSelect.styles.js +1 -1
  105. package/dist/components/RichSelect/SelectBody/SelectBody.js +23 -117
  106. package/dist/components/RichSelect/SelectBody/SelectBody.styles.js +1 -1
  107. package/dist/components/RichSelect/SelectCreate/SelectCreate.js +25 -114
  108. package/dist/components/RichSelect/SelectHeading/SelectHeading.js +67 -97
  109. package/dist/components/RichSelect/SelectLabel/SelectLabel.js +19 -19
  110. package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +1 -1
  111. package/dist/components/RichSelect/SelectMenu/SelectMenu.js +69 -69
  112. package/dist/components/RichSelect/SelectMenu/SelectMenu.styles.js +1 -1
  113. package/dist/components/RichSelect/SelectMenu/SelectMenuItem.js +52 -46
  114. package/dist/components/RichSelect/SelectSearch/SelectSearch.js +43 -98
  115. package/dist/components/RichSelect/SelectSearch/SelectSearch.styles.js +1 -1
  116. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.js +31 -32
  117. package/dist/components/RichSelect/SelectSearchInput/SelectSearchInput.styles.js +1 -1
  118. package/dist/components/RichSelect/SelectTags/SelectTags.js +161 -105
  119. package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +1 -1
  120. package/dist/components/RichSelect/components/SelectActivator.js +63 -6
  121. package/dist/components/RichSelect/components/SelectOptions.js +201 -95
  122. package/dist/components/RichSelect/index.js +18 -15
  123. package/dist/components/Row/Row.js +1 -1
  124. package/dist/components/Row/Row.styles.js +1 -1
  125. package/dist/components/Select/Select.js +71 -71
  126. package/dist/components/Select/Select.styles.js +1 -1
  127. package/dist/components/Select/SelectOption/SelectOption.js +1 -1
  128. package/dist/components/Select/components/SelectControl.js +1 -1
  129. package/dist/components/Select/components/SelectReadonly.js +30 -33
  130. package/dist/components/Select/helpers/nodesToSelectOptions.js +19 -20
  131. package/dist/components/Skeleton/Skeleton.styles.js +1 -1
  132. package/dist/components/SkipLink/SkipLink.js +1 -1
  133. package/dist/components/SkipLink/SkipLink.styles.js +2 -2
  134. package/dist/components/Slideout/Slideout.js +155 -160
  135. package/dist/components/Slideout/Slideout.styles.js +1 -1
  136. package/dist/components/Slideout/SlideoutProvider.js +18 -20
  137. package/dist/components/Slideout/components/SlideoutInner.js +3 -3
  138. package/dist/components/Slideout/hooks/useProviderSlideout.js +8 -8
  139. package/dist/components/Slideout/hooks/usePushElement.js +27 -27
  140. package/dist/components/Slideout/hooks/useSlideout.js +11 -9
  141. package/dist/components/Slideout/index.js +7 -6
  142. package/dist/components/Slider/Slider.js +76 -76
  143. package/dist/components/Slider/Slider.styles.js +1 -1
  144. package/dist/components/Slider/components/SliderTicks.js +15 -16
  145. package/dist/components/Spinner/Spinner.styles.js +1 -1
  146. package/dist/components/Stack/Stack.js +1 -1
  147. package/dist/components/Stack/Stack.styles.js +3 -3
  148. package/dist/components/TabSet/Tab/Tab.js +88 -88
  149. package/dist/components/TabSet/Tab/Tab.styles.js +1 -1
  150. package/dist/components/TabSet/TabSet.js +69 -59
  151. package/dist/components/TabSet/TabSet.styles.js +1 -1
  152. package/dist/components/TabSet/TabSetProvider.js +43 -43
  153. package/dist/components/Table/Table.js +39 -39
  154. package/dist/components/Table/Table.styles.js +10 -8
  155. package/dist/components/Table/TableBody/TableBody.js +76 -76
  156. package/dist/components/Table/TableFormattedValue/TableFormattedValue.js +8 -18
  157. package/dist/components/Table/TableProvider.js +2 -2
  158. package/dist/components/Table/components/TableEmpty.js +8 -8
  159. package/dist/components/Table/components/TableHeader.js +31 -32
  160. package/dist/components/Table/components/TableHeaderCell.js +23 -24
  161. package/dist/components/Table/components/TableRows.js +38 -38
  162. package/dist/components/Table/components/TableSortButton.js +6 -6
  163. package/dist/components/Table/helpers/composeTableColumnDefs.js +1 -1
  164. package/dist/components/Table/helpers/composeTableInitialSorting.js +4 -4
  165. package/dist/components/Table/hooks/useTableColumnSort.js +12 -12
  166. package/dist/components/Table/hooks/useTableColumnStyles.js +13 -14
  167. package/dist/components/Table/index.js +2 -3
  168. package/dist/components/Tag/Tag.js +29 -32
  169. package/dist/components/Tag/Tag.styles.js +1 -2
  170. package/dist/components/Tag/TagInput/TagInput.js +120 -104
  171. package/dist/components/Tag/TagInput/TagInput.styles.js +26 -0
  172. package/dist/components/Text/Text.js +16 -36
  173. package/dist/components/Text/Text.styles.js +2 -2
  174. package/dist/components/Text/index.js +1 -2
  175. package/dist/components/Toaster/Toaster.js +59 -11
  176. package/dist/components/Toaster/Toaster.styles.js +1 -1
  177. package/dist/components/Toaster/ToasterProvider.js +49 -6
  178. package/dist/components/Toaster/components/Toast/Toast.js +46 -47
  179. package/dist/components/Toaster/components/Toast/Toast.styles.js +1 -1
  180. package/dist/components/Toaster/components/Toast/ToastAnimated.js +36 -37
  181. package/dist/components/Toaster/hooks/useToaster.js +24 -22
  182. package/dist/components/Toaster/index.js +5 -4
  183. package/dist/components/Toggle/Toggle.js +42 -42
  184. package/dist/components/Toggle/Toggle.styles.js +1 -1
  185. package/dist/components/Tooltip/Tooltip.js +2 -2
  186. package/dist/components/Tooltip/Tooltip.styles.js +1 -1
  187. package/dist/components/ValidationMessage/ValidationMessage.js +25 -26
  188. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +1 -1
  189. package/dist/{composeTableColumnDefs-CeWqgpKW.js → composeTableColumnDefs-Hmd6yfdj.js} +99 -99
  190. package/dist/constants.js +10 -10
  191. package/dist/{create-recipe-BqEnhJ30.js → create-recipe-C-ASk1Hy.js} +11 -10
  192. package/dist/css-fGu_jDvv.js +228 -0
  193. package/dist/cva-JiDXAa83.js +63 -0
  194. package/dist/enums.js +7 -7
  195. package/dist/factory-oPXoMw9H.js +58 -0
  196. package/dist/{floating-ui.react-CPN4oQCc.js → floating-ui.react-CmSaAiNF.js} +1153 -1151
  197. package/dist/fuzzysort-DKAolWVP.js +397 -0
  198. package/dist/helpers/dom/closestCrossShadow.js +16 -17
  199. package/dist/helpers/dom/focusableElements.js +6 -6
  200. package/dist/helpers/dom/getActiveElement.js +5 -6
  201. package/dist/helpers/formatting/formatDateTime.js +9 -10
  202. package/dist/helpers/label-value/composeLabelValueDescriptor.js +8 -8
  203. package/dist/helpers/label-value/getQueryRangeExclusive.js +1 -1
  204. package/dist/helpers/label-value/getValueFromLabelValues.js +5 -6
  205. package/dist/helpers/label-value/highlightQueryInLabel.js +4 -7
  206. package/dist/helpers/label-value/highlightQueryInLabelValue.js +6 -5
  207. package/dist/helpers/label-value/searchLabelValues.js +1 -1
  208. package/dist/helpers/responsive/getResponsiveLayoutModifiers.js +4 -4
  209. package/dist/helpers/styling/iressCss.js +2 -2
  210. package/dist/helpers/transition/getTransitionDuration.js +5 -8
  211. package/dist/hooks/useAriaRelationship.js +19 -21
  212. package/dist/hooks/useBreakpoint.js +8 -11
  213. package/dist/hooks/useControlledState.js +37 -35
  214. package/dist/{index-DlGwAtoO.js → index-CvOVcYUc.js} +40 -14
  215. package/dist/{index.esm-BnSuefUA.js → index.esm-8uZEha-3.js} +1 -1
  216. package/dist/{index.esm-BdbWn-w_.js → index.esm-B6vzbp0e.js} +5 -5
  217. package/dist/is-valid-prop-Ce0wiweq.js +7 -0
  218. package/dist/main.js +298 -292
  219. package/dist/patterns/Form/Form.js +1 -1
  220. package/dist/patterns/Form/Form.styles.js +1 -1
  221. package/dist/patterns/Form/FormField/FormField.js +41 -44
  222. package/dist/patterns/Form/FormField/FormFieldset.js +41 -44
  223. package/dist/patterns/Form/FormField/helpers/getErrorTypeMessage.js +10 -10
  224. package/dist/patterns/Form/FormField/hooks/useFieldRenderProps.js +26 -26
  225. package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +55 -56
  226. package/dist/patterns/Form/HookForm/HookForm.js +72 -75
  227. package/dist/patterns/Form/components/LongForm.js +1 -1
  228. package/dist/patterns/Form/components/ShortForm.js +12 -12
  229. package/dist/patterns/Loading/Loading.styles.js +19 -7
  230. package/dist/patterns/Loading/LoadingSuspense.js +26 -26
  231. package/dist/patterns/Loading/components/ComponentLoading.js +49 -49
  232. package/dist/patterns/Loading/components/DefaultLoading.js +1 -1
  233. package/dist/patterns/Loading/components/LongLoading.js +45 -45
  234. package/dist/patterns/Loading/components/PageLoading.js +63 -60
  235. package/dist/patterns/Loading/components/StartUpLoading.js +61 -59
  236. package/dist/patterns/Loading/components/ValidateLoading.js +2 -2
  237. package/dist/patterns/Loading/hooks/useShowIndicator.js +11 -11
  238. package/dist/patterns/Shadow/Shadow.js +32235 -0
  239. package/dist/patterns/Shadow/index.js +4 -0
  240. package/dist/src/components/Alert/Alert.d.ts +0 -1
  241. package/dist/src/components/Alert/Alert.styles.d.ts +1 -1
  242. package/dist/src/components/Autocomplete/Autocomplete.d.ts +1 -1
  243. package/dist/src/components/Autocomplete/hooks/useAutocompleteSearch.d.ts +1 -1
  244. package/dist/src/components/Autocomplete/index.d.ts +1 -0
  245. package/dist/src/components/Checkbox/Checkbox.d.ts +3 -1
  246. package/dist/src/components/Field/Field.styles.d.ts +8 -1
  247. package/dist/src/components/Field/FieldGroup/FieldGroup.styles.d.ts +1 -1
  248. package/dist/src/components/Label/Label.styles.d.ts +1 -1
  249. package/dist/src/components/Modal/Modal.styles.d.ts +6 -0
  250. package/dist/src/components/Modal/ModalProvider.d.ts +0 -16
  251. package/dist/src/components/Modal/hooks/useModal.d.ts +17 -0
  252. package/dist/src/components/Popover/Popover.styles.d.ts +1 -1
  253. package/dist/src/components/Popover/components/NestedPopoverActivator.d.ts +1 -1
  254. package/dist/src/components/Popover/hooks/usePopover.d.ts +4 -0
  255. package/dist/src/components/Popover/hooks/usePopoverNavigation.d.ts +1 -1
  256. package/dist/src/components/Readonly/Readonly.styles.d.ts +1 -1
  257. package/dist/src/components/RichSelect/RichSelect.d.ts +11 -1
  258. package/dist/src/components/RichSelect/SelectBody/SelectBody.d.ts +1 -1
  259. package/dist/src/components/RichSelect/SelectMenu/SelectMenu.d.ts +2 -2
  260. package/dist/src/components/RichSelect/SelectMenu/SelectMenuItem.d.ts +1 -1
  261. package/dist/src/components/RichSelect/SelectSearch/SelectSearch.d.ts +1 -1
  262. package/dist/src/components/RichSelect/SelectSearchInput/SelectSearchInput.d.ts +1 -2
  263. package/dist/src/components/RichSelect/SelectTags/SelectTags.d.ts +1 -1
  264. package/dist/src/components/RichSelect/SelectTags/SelectTags.styles.d.ts +1 -1
  265. package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
  266. package/dist/src/components/Slideout/SlideoutProvider.d.ts +0 -6
  267. package/dist/src/components/Slideout/hooks/useSlideout.d.ts +7 -0
  268. package/dist/src/components/TabSet/TabSet.d.ts +10 -1
  269. package/dist/src/components/Table/TableFormattedValue/TableFormattedValue.d.ts +2 -3
  270. package/dist/src/components/Table/helpers/composeTableColumnDefs.d.ts +1 -1
  271. package/dist/src/components/Tag/TagInput/TagInput.styles.d.ts +1 -0
  272. package/dist/src/components/Text/Text.d.ts +1 -2
  273. package/dist/src/components/Toaster/ToasterProvider.d.ts +0 -2
  274. package/dist/src/components/Toaster/components/Toast/Toast.d.ts +1 -2
  275. package/dist/src/components/Toaster/hooks/useToaster.d.ts +7 -6
  276. package/dist/src/enums.d.ts +1 -9
  277. package/dist/src/interfaces.d.ts +1 -0
  278. package/dist/src/main.d.ts +1 -1
  279. package/dist/src/patterns/Form/hooks/useNoDefaultValueInForms.d.ts +1 -1
  280. package/dist/src/patterns/Loading/Loading.styles.d.ts +1 -0
  281. package/dist/src/patterns/Loading/components/PageLoading.d.ts +5 -1
  282. package/dist/src/patterns/Loading/components/StartUpLoading.d.ts +8 -3
  283. package/dist/src/patterns/Loading/components/ValidateLoading.d.ts +1 -1
  284. package/dist/src/patterns/Shadow/Shadow.d.ts +34 -0
  285. package/dist/src/patterns/Shadow/index.d.ts +1 -0
  286. package/dist/src/patterns/Shadow/meta/Thumbnail.d.ts +2 -0
  287. package/dist/src/patterns/Shadow/meta/index.d.ts +7 -0
  288. package/dist/src/styled-system/jsx/create-style-context.d.ts +47 -0
  289. package/dist/src/styled-system/jsx/index.d.ts +1 -0
  290. package/dist/src/styled-system/patterns/aspect-ratio.d.ts +0 -1
  291. package/dist/src/styled-system/patterns/bleed.d.ts +0 -1
  292. package/dist/src/styled-system/patterns/box.d.ts +0 -1
  293. package/dist/src/styled-system/patterns/center.d.ts +0 -1
  294. package/dist/src/styled-system/patterns/circle.d.ts +0 -1
  295. package/dist/src/styled-system/patterns/container.d.ts +0 -1
  296. package/dist/src/styled-system/patterns/cq.d.ts +0 -1
  297. package/dist/src/styled-system/patterns/divider.d.ts +0 -1
  298. package/dist/src/styled-system/patterns/flex.d.ts +0 -1
  299. package/dist/src/styled-system/patterns/float.d.ts +0 -1
  300. package/dist/src/styled-system/patterns/grid-item.d.ts +0 -1
  301. package/dist/src/styled-system/patterns/grid.d.ts +0 -1
  302. package/dist/src/styled-system/patterns/hstack.d.ts +0 -1
  303. package/dist/src/styled-system/patterns/link-overlay.d.ts +0 -1
  304. package/dist/src/styled-system/patterns/spacer.d.ts +0 -1
  305. package/dist/src/styled-system/patterns/square.d.ts +0 -1
  306. package/dist/src/styled-system/patterns/stack.d.ts +0 -1
  307. package/dist/src/styled-system/patterns/visually-hidden.d.ts +0 -1
  308. package/dist/src/styled-system/patterns/vstack.d.ts +0 -1
  309. package/dist/src/styled-system/patterns/wrap.d.ts +0 -1
  310. package/dist/src/styled-system/recipes/button.d.ts +4 -3
  311. package/dist/src/styled-system/recipes/table.d.ts +4 -1
  312. package/dist/src/styled-system/recipes/text.d.ts +3 -2
  313. package/dist/src/styled-system/tokens/tokens.d.ts +4 -4
  314. package/dist/src/styled-system/types/composition.d.ts +83 -23
  315. package/dist/src/styled-system/types/conditions.d.ts +15 -11
  316. package/dist/src/styled-system/types/jsx.d.ts +21 -6
  317. package/dist/src/styled-system/types/prop-type.d.ts +9 -2
  318. package/dist/src/styled-system/types/style-props.d.ts +14 -1
  319. package/dist/src/styled-system/types/system-types.d.ts +76 -0
  320. package/dist/style.css +1 -1
  321. package/dist/sva-OmxClA9g.js +34 -0
  322. package/package.json +68 -46
  323. package/dist/Filter-Bwk7SIlJ.js +0 -1103
  324. package/dist/InputPopover-BWWuoQZ2.js +0 -132
  325. package/dist/ToasterProvider-XqpAGfRs.js +0 -112
  326. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  327. package/dist/cva-B2x59Dph.js +0 -294
  328. package/dist/factory-DHLOr79I.js +0 -53
  329. package/dist/fuzzysort-eoXOpoo6.js +0 -395
  330. package/dist/helpers/utility/generateScopedName.js +0 -9
  331. package/dist/is-valid-prop-DFFvE05x.js +0 -7
  332. package/dist/panda.config.d.ts +0 -4
  333. package/dist/src/helpers/utility/generateScopedName.d.ts +0 -8
  334. package/dist/sva-TRyehFkb.js +0 -32
  335. package/dist/theme-preset/config-recipes/button.d.ts +0 -6
  336. package/dist/theme-preset/config-recipes/table.d.ts +0 -1
  337. package/dist/theme-preset/config-recipes/text.d.ts +0 -1
  338. package/dist/theme-preset/globalCss.d.ts +0 -1
  339. package/dist/theme-preset/index.d.ts +0 -2
  340. package/dist/theme-preset/staticCss.d.ts +0 -2
  341. package/dist/theme-preset/storybook.d.ts +0 -4
  342. package/dist/theme-preset/tokens/animationStyles.d.ts +0 -1
  343. package/dist/theme-preset/tokens/borders.d.ts +0 -50
  344. package/dist/theme-preset/tokens/breakpoints.d.ts +0 -8
  345. package/dist/theme-preset/tokens/colors.d.ts +0 -156
  346. package/dist/theme-preset/tokens/keyframes.d.ts +0 -1
  347. package/dist/theme-preset/tokens/layerStyles.d.ts +0 -40
  348. package/dist/theme-preset/tokens/radii.d.ts +0 -42
  349. package/dist/theme-preset/tokens/sizes.d.ts +0 -246
  350. package/dist/theme-preset/tokens/spacing.d.ts +0 -100
  351. package/dist/theme-preset/tokens/textStyles.d.ts +0 -5
  352. package/dist/theme-preset/tokens/zIndex.d.ts +0 -23
  353. package/dist/theme-preset/utilities/chevron.d.ts +0 -3
  354. package/dist/theme-preset/utilities/focusable.d.ts +0 -1
  355. package/dist/theme-preset/utilities/gutter.d.ts +0 -1
  356. package/dist/theme-preset/utilities/hide.d.ts +0 -1
  357. package/dist/theme-preset/utilities/noGutter.d.ts +0 -1
  358. package/dist/theme-preset/utilities/offset.d.ts +0 -75
  359. package/dist/theme-preset/utilities/sliderThumb.d.ts +0 -1
  360. package/dist/theme-preset/utilities/span.d.ts +0 -120
  361. package/dist/theme-preset/utilities/stretch.d.ts +0 -1
  362. package/dist/theme-preset/utilities/topLeftTriangle.d.ts +0 -2
  363. package/dist/typography--vGt_ztU.js +0 -12
  364. package/dist/vite.config.d.ts +0 -2
  365. package/dist/vitest.config.d.ts +0 -2
  366. package/dist/vitest.setup.d.ts +0 -0
  367. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { jsx as pe } from "react/jsx-runtime";
2
2
  import { IressTableFormattedValue as Se } from "./components/Table/TableFormattedValue/TableFormattedValue.js";
3
- import { formatObjectKey as Ce } from "./helpers/formatting/formatObjectKey.js";
3
+ import { formatObjectKey as me } from "./helpers/formatting/formatObjectKey.js";
4
4
  /**
5
5
  * table-core
6
6
  *
@@ -11,7 +11,7 @@ import { formatObjectKey as Ce } from "./helpers/formatting/formatObjectKey.js";
11
11
  *
12
12
  * @license MIT
13
13
  */
14
- function me() {
14
+ function Ce() {
15
15
  return {
16
16
  accessor: (e, o) => typeof e == "function" ? {
17
17
  ...o,
@@ -51,7 +51,7 @@ function we(e, o) {
51
51
  };
52
52
  return n(e), t;
53
53
  }
54
- function C(e, o, t) {
54
+ function m(e, o, t) {
55
55
  let n = [], r;
56
56
  return (i) => {
57
57
  let l;
@@ -70,16 +70,16 @@ function C(e, o, t) {
70
70
  console.info(`%c⏱ ${a(S, 5)} /${a(d, 5)} ms`, `
71
71
  font-size: .6rem;
72
72
  font-weight: bold;
73
- color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t == null ? void 0 : t.key);
73
+ color: hsl(${Math.max(0, Math.min(120 - 120 * f, 120))}deg 100% 31%);`, t?.key);
74
74
  }
75
75
  return r;
76
76
  };
77
77
  }
78
- function m(e, o, t, n) {
78
+ function C(e, o, t, n) {
79
79
  return {
80
80
  debug: () => {
81
81
  var r;
82
- return (r = e == null ? void 0 : e.debugAll) != null ? r : e[o];
82
+ return (r = e?.debugAll) != null ? r : e[o];
83
83
  },
84
84
  key: process.env.NODE_ENV === "development" && t,
85
85
  onChange: n
@@ -95,14 +95,14 @@ function ve(e, o, t, n) {
95
95
  column: t,
96
96
  getValue: () => o.getValue(n),
97
97
  renderValue: r,
98
- getContext: C(() => [e, t, o, i], (l, s, u, g) => ({
98
+ getContext: m(() => [e, t, o, i], (l, s, u, g) => ({
99
99
  table: l,
100
100
  column: s,
101
101
  row: u,
102
102
  cell: g,
103
103
  getValue: g.getValue,
104
104
  renderValue: g.renderValue
105
- }), m(e.options, "debugCells", "cell.getContext"))
105
+ }), C(e.options, "debugCells", "cell.getContext"))
106
106
  };
107
107
  return e._features.forEach((l) => {
108
108
  l.createCell == null || l.createCell(i, t, o, e);
@@ -131,18 +131,18 @@ function he(e, o, t, n) {
131
131
  depth: t,
132
132
  columnDef: s,
133
133
  columns: [],
134
- getFlatColumns: C(() => [!0], () => {
134
+ getFlatColumns: m(() => [!0], () => {
135
135
  var f;
136
136
  return [S, ...(f = S.columns) == null ? void 0 : f.flatMap((a) => a.getFlatColumns())];
137
- }, m(e.options, "debugColumns", "column.getFlatColumns")),
138
- getLeafColumns: C(() => [e._getOrderColumnsFn()], (f) => {
137
+ }, C(e.options, "debugColumns", "column.getFlatColumns")),
138
+ getLeafColumns: m(() => [e._getOrderColumnsFn()], (f) => {
139
139
  var a;
140
140
  if ((a = S.columns) != null && a.length) {
141
141
  let c = S.columns.flatMap((p) => p.getLeafColumns());
142
142
  return f(c);
143
143
  }
144
144
  return [S];
145
- }, m(e.options, "debugColumns", "column.getLeafColumns"))
145
+ }, C(e.options, "debugColumns", "column.getLeafColumns"))
146
146
  };
147
147
  for (const f of e._features)
148
148
  f.createColumn == null || f.createColumn(S, e);
@@ -180,31 +180,31 @@ function te(e, o, t) {
180
180
  }
181
181
  const _e = {
182
182
  createTable: (e) => {
183
- e.getHeaderGroups = C(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
183
+ e.getHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => {
184
184
  var i, l;
185
- const s = (i = n == null ? void 0 : n.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? i : [], u = (l = r == null ? void 0 : r.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? l : [], g = t.filter((S) => !(n != null && n.includes(S.id)) && !(r != null && r.includes(S.id)));
185
+ const s = (i = n?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? i : [], u = (l = r?.map((S) => t.find((f) => f.id === S)).filter(Boolean)) != null ? l : [], g = t.filter((S) => !(n != null && n.includes(S.id)) && !(r != null && r.includes(S.id)));
186
186
  return H(o, [...s, ...g, ...u], e);
187
- }, m(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = C(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), H(o, t, e, "center")), m(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = C(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
187
+ }, C(e.options, _, "getHeaderGroups")), e.getCenterHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n, r) => (t = t.filter((i) => !(n != null && n.includes(i.id)) && !(r != null && r.includes(i.id))), H(o, t, e, "center")), C(e.options, _, "getCenterHeaderGroups")), e.getLeftHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.left], (o, t, n) => {
188
188
  var r;
189
- const i = (r = n == null ? void 0 : n.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
189
+ const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
190
190
  return H(o, i, e, "left");
191
- }, m(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = C(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
191
+ }, C(e.options, _, "getLeftHeaderGroups")), e.getRightHeaderGroups = m(() => [e.getAllColumns(), e.getVisibleLeafColumns(), e.getState().columnPinning.right], (o, t, n) => {
192
192
  var r;
193
- const i = (r = n == null ? void 0 : n.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
193
+ const i = (r = n?.map((l) => t.find((s) => s.id === l)).filter(Boolean)) != null ? r : [];
194
194
  return H(o, i, e, "right");
195
- }, m(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = C(() => [e.getHeaderGroups()], (o) => [...o].reverse(), m(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = C(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), m(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = C(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), m(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = C(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), m(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = C(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), m(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = C(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), m(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = C(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), m(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = C(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), m(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = C(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
195
+ }, C(e.options, _, "getRightHeaderGroups")), e.getFooterGroups = m(() => [e.getHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getFooterGroups")), e.getLeftFooterGroups = m(() => [e.getLeftHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getLeftFooterGroups")), e.getCenterFooterGroups = m(() => [e.getCenterHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getCenterFooterGroups")), e.getRightFooterGroups = m(() => [e.getRightHeaderGroups()], (o) => [...o].reverse(), C(e.options, _, "getRightFooterGroups")), e.getFlatHeaders = m(() => [e.getHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getFlatHeaders")), e.getLeftFlatHeaders = m(() => [e.getLeftHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getLeftFlatHeaders")), e.getCenterFlatHeaders = m(() => [e.getCenterHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getCenterFlatHeaders")), e.getRightFlatHeaders = m(() => [e.getRightHeaderGroups()], (o) => o.map((t) => t.headers).flat(), C(e.options, _, "getRightFlatHeaders")), e.getCenterLeafHeaders = m(() => [e.getCenterFlatHeaders()], (o) => o.filter((t) => {
196
196
  var n;
197
197
  return !((n = t.subHeaders) != null && n.length);
198
- }), m(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = C(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
198
+ }), C(e.options, _, "getCenterLeafHeaders")), e.getLeftLeafHeaders = m(() => [e.getLeftFlatHeaders()], (o) => o.filter((t) => {
199
199
  var n;
200
200
  return !((n = t.subHeaders) != null && n.length);
201
- }), m(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = C(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
201
+ }), C(e.options, _, "getLeftLeafHeaders")), e.getRightLeafHeaders = m(() => [e.getRightFlatHeaders()], (o) => o.filter((t) => {
202
202
  var n;
203
203
  return !((n = t.subHeaders) != null && n.length);
204
- }), m(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = C(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
204
+ }), C(e.options, _, "getRightLeafHeaders")), e.getLeafHeaders = m(() => [e.getLeftHeaderGroups(), e.getCenterHeaderGroups(), e.getRightHeaderGroups()], (o, t, n) => {
205
205
  var r, i, l, s, u, g;
206
206
  return [...(r = (i = o[0]) == null ? void 0 : i.headers) != null ? r : [], ...(l = (s = t[0]) == null ? void 0 : s.headers) != null ? l : [], ...(u = (g = n[0]) == null ? void 0 : g.headers) != null ? u : []].map((d) => d.getLeafHeaders()).flat();
207
- }, m(e.options, _, "getLeafHeaders"));
207
+ }, C(e.options, _, "getLeafHeaders"));
208
208
  }
209
209
  };
210
210
  function H(e, o, t, n) {
@@ -227,11 +227,11 @@ function H(e, o, t, n) {
227
227
  f.forEach((w) => {
228
228
  const R = [...p].reverse()[0], v = w.column.depth === c.depth;
229
229
  let h, M = !1;
230
- if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R && (R == null ? void 0 : R.column) === h)
230
+ if (v && w.column.parent ? h = w.column.parent : (h = w.column, M = !0), R && R?.column === h)
231
231
  R.subHeaders.push(w);
232
232
  else {
233
233
  const F = te(t, h, {
234
- id: [n, a, h.id, w == null ? void 0 : w.id].filter(Boolean).join("_"),
234
+ id: [n, a, h.id, w?.id].filter(Boolean).join("_"),
235
235
  isPlaceholder: M,
236
236
  placeholderId: M ? `${p.filter((D) => D.column === h).length}` : void 0,
237
237
  depth: a,
@@ -302,8 +302,8 @@ const Fe = (e, o, t, n, r, i, l) => {
302
302
  }
303
303
  return u.reverse();
304
304
  },
305
- getAllCells: C(() => [e.getAllLeafColumns()], (u) => u.map((g) => ve(e, s, g, g.id)), m(e.options, "debugRows", "getAllCells")),
306
- _getAllCellsByColumnId: C(() => [s.getAllCells()], (u) => u.reduce((g, d) => (g[d.column.id] = d, g), {}), m(e.options, "debugRows", "getAllCellsByColumnId"))
305
+ getAllCells: m(() => [e.getAllLeafColumns()], (u) => u.map((g) => ve(e, s, g, g.id)), C(e.options, "debugRows", "getAllCells")),
306
+ _getAllCellsByColumnId: m(() => [s.getAllCells()], (u) => u.reduce((g, d) => (g[d.column.id] = d, g), {}), C(e.options, "debugRows", "getAllCellsByColumnId"))
307
307
  };
308
308
  for (let u = 0; u < e._features.length; u++) {
309
309
  const g = e._features[u];
@@ -330,7 +330,7 @@ const re = (e, o, t) => {
330
330
  re.autoRemove = (e) => V(e);
331
331
  const ie = (e, o, t) => {
332
332
  var n;
333
- return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === (t == null ? void 0 : t.toLowerCase());
333
+ return ((n = e.getValue(o)) == null || (n = n.toString()) == null ? void 0 : n.toLowerCase()) === t?.toLowerCase();
334
334
  };
335
335
  ie.autoRemove = (e) => V(e);
336
336
  const le = (e, o, t) => {
@@ -395,7 +395,7 @@ const Ve = {
395
395
  }),
396
396
  createColumn: (e, o) => {
397
397
  e.getAutoFilterFn = () => {
398
- const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
398
+ const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
399
399
  return typeof n == "string" ? P.includesString : typeof n == "number" ? P.inNumberRange : typeof n == "boolean" || n !== null && typeof n == "object" ? P.equals : Array.isArray(n) ? P.arrIncludes : P.weakEquals;
400
400
  }, e.getFilterFn = () => {
401
401
  var t, n;
@@ -414,10 +414,10 @@ const Ve = {
414
414
  return (t = (n = o.getState().columnFilters) == null ? void 0 : n.findIndex((r) => r.id === e.id)) != null ? t : -1;
415
415
  }, e.setFilterValue = (t) => {
416
416
  o.setColumnFilters((n) => {
417
- const r = e.getFilterFn(), i = n == null ? void 0 : n.find((d) => d.id === e.id), l = I(t, i ? i.value : void 0);
417
+ const r = e.getFilterFn(), i = n?.find((d) => d.id === e.id), l = I(t, i ? i.value : void 0);
418
418
  if (ne(r, l, e)) {
419
419
  var s;
420
- return (s = n == null ? void 0 : n.filter((d) => d.id !== e.id)) != null ? s : [];
420
+ return (s = n?.filter((d) => d.id !== e.id)) != null ? s : [];
421
421
  }
422
422
  const u = {
423
423
  id: e.id,
@@ -425,7 +425,7 @@ const Ve = {
425
425
  };
426
426
  if (i) {
427
427
  var g;
428
- return (g = n == null ? void 0 : n.map((d) => d.id === e.id ? u : d)) != null ? g : [];
428
+ return (g = n?.map((d) => d.id === e.id ? u : d)) != null ? g : [];
429
429
  }
430
430
  return n != null && n.length ? [...n, u] : [u];
431
431
  });
@@ -539,7 +539,7 @@ const Me = (e, o, t) => t.reduce((n, r) => {
539
539
  t && e.toggleGrouping();
540
540
  };
541
541
  }, e.getAutoAggregationFn = () => {
542
- const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
542
+ const t = o.getCoreRowModel().flatRows[0], n = t?.getValue(e.id);
543
543
  if (typeof n == "number")
544
544
  return z.sum;
545
545
  if (Object.prototype.toString.call(n) === "[object Date]")
@@ -587,7 +587,7 @@ const ze = {
587
587
  onColumnOrderChange: $("columnOrder", e)
588
588
  }),
589
589
  createColumn: (e, o) => {
590
- e.getIndex = C((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), m(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
590
+ e.getIndex = m((t) => [E(o, t)], (t) => t.findIndex((n) => n.id === e.id), C(o.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (t) => {
591
591
  var n;
592
592
  return ((n = E(o, t)[0]) == null ? void 0 : n.id) === e.id;
593
593
  }, e.getIsLastColumn = (t) => {
@@ -600,7 +600,7 @@ const ze = {
600
600
  e.setColumnOrder = (o) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(o), e.resetColumnOrder = (o) => {
601
601
  var t;
602
602
  e.setColumnOrder(o ? [] : (t = e.initialState.columnOrder) != null ? t : []);
603
- }, e._getOrderColumnsFn = C(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
603
+ }, e._getOrderColumnsFn = m(() => [e.getState().columnOrder, e.getState().grouping, e.options.groupedColumnMode], (o, t, n) => (r) => {
604
604
  let i = [];
605
605
  if (!(o != null && o.length))
606
606
  i = r;
@@ -613,7 +613,7 @@ const ze = {
613
613
  i = [...i, ...s];
614
614
  }
615
615
  return Le(i, t, n);
616
- }, m(e.options, "debugTable", "_getOrderColumnsFn"));
616
+ }, C(e.options, "debugTable", "_getOrderColumnsFn"));
617
617
  }
618
618
  }, O = () => ({
619
619
  left: [],
@@ -634,20 +634,20 @@ const ze = {
634
634
  if (t === "right") {
635
635
  var s, u;
636
636
  return {
637
- left: ((s = r == null ? void 0 : r.left) != null ? s : []).filter((S) => !(n != null && n.includes(S))),
638
- right: [...((u = r == null ? void 0 : r.right) != null ? u : []).filter((S) => !(n != null && n.includes(S))), ...n]
637
+ left: ((s = r?.left) != null ? s : []).filter((S) => !(n != null && n.includes(S))),
638
+ right: [...((u = r?.right) != null ? u : []).filter((S) => !(n != null && n.includes(S))), ...n]
639
639
  };
640
640
  }
641
641
  if (t === "left") {
642
642
  var g, d;
643
643
  return {
644
- left: [...((g = r == null ? void 0 : r.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
645
- right: ((d = r == null ? void 0 : r.right) != null ? d : []).filter((S) => !(n != null && n.includes(S)))
644
+ left: [...((g = r?.left) != null ? g : []).filter((S) => !(n != null && n.includes(S))), ...n],
645
+ right: ((d = r?.right) != null ? d : []).filter((S) => !(n != null && n.includes(S)))
646
646
  };
647
647
  }
648
648
  return {
649
- left: ((i = r == null ? void 0 : r.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
650
- right: ((l = r == null ? void 0 : r.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
649
+ left: ((i = r?.left) != null ? i : []).filter((S) => !(n != null && n.includes(S))),
650
+ right: ((l = r?.right) != null ? l : []).filter((S) => !(n != null && n.includes(S)))
651
651
  };
652
652
  });
653
653
  }, e.getCanPin = () => e.getLeafColumns().some((n) => {
@@ -657,7 +657,7 @@ const ze = {
657
657
  const t = e.getLeafColumns().map((s) => s.id), {
658
658
  left: n,
659
659
  right: r
660
- } = o.getState().columnPinning, i = t.some((s) => n == null ? void 0 : n.includes(s)), l = t.some((s) => r == null ? void 0 : r.includes(s));
660
+ } = o.getState().columnPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
661
661
  return i ? "left" : l ? "right" : !1;
662
662
  }, e.getPinnedIndex = () => {
663
663
  var t, n;
@@ -666,16 +666,16 @@ const ze = {
666
666
  };
667
667
  },
668
668
  createRow: (e, o) => {
669
- e.getCenterVisibleCells = C(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
669
+ e.getCenterVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left, o.getState().columnPinning.right], (t, n, r) => {
670
670
  const i = [...n ?? [], ...r ?? []];
671
671
  return t.filter((l) => !i.includes(l.column.id));
672
- }, m(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = C(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
672
+ }, C(o.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.left], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
673
673
  ...i,
674
674
  position: "left"
675
- })), m(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = C(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
675
+ })), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = m(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
676
676
  ...i,
677
677
  position: "right"
678
- })), m(o.options, "debugRows", "getRightVisibleCells"));
678
+ })), C(o.options, "debugRows", "getRightVisibleCells"));
679
679
  },
680
680
  createTable: (e) => {
681
681
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
@@ -689,10 +689,10 @@ const ze = {
689
689
  return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
690
690
  }
691
691
  return !!((t = n[o]) != null && t.length);
692
- }, e.getLeftLeafColumns = C(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), m(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = C(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), m(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = C(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
692
+ }, e.getLeftLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = m(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
693
693
  const r = [...t ?? [], ...n ?? []];
694
694
  return o.filter((i) => !r.includes(i.id));
695
- }, m(e.options, "debugColumns", "getCenterLeafColumns"));
695
+ }, C(e.options, "debugColumns", "getCenterLeafColumns"));
696
696
  }
697
697
  };
698
698
  function Be(e) {
@@ -727,7 +727,7 @@ const G = {
727
727
  var t, n, r;
728
728
  const i = o.getState().columnSizing[e.id];
729
729
  return Math.min(Math.max((t = e.columnDef.minSize) != null ? t : G.minSize, (n = i ?? e.columnDef.size) != null ? n : G.size), (r = e.columnDef.maxSize) != null ? r : G.maxSize);
730
- }, e.getStart = C((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), m(o.options, "debugColumns", "getStart")), e.getAfter = C((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), m(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
730
+ }, e.getStart = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(0, e.getIndex(t)).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getStart")), e.getAfter = m((t) => [t, E(o, t), o.getState().columnSizing], (t, n) => n.slice(e.getIndex(t) + 1).reduce((r, i) => r + i.getSize(), 0), C(o.options, "debugColumns", "getAfter")), e.resetSize = () => {
731
731
  o.setColumnSizing((t) => {
732
732
  let {
733
733
  [e.id]: n,
@@ -759,14 +759,14 @@ const G = {
759
759
  }
760
760
  return 0;
761
761
  }, e.getResizeHandler = (t) => {
762
- const n = o.getColumn(e.column.id), r = n == null ? void 0 : n.getCanResize();
762
+ const n = o.getColumn(e.column.id), r = n?.getCanResize();
763
763
  return (i) => {
764
764
  if (!n || !r || (i.persist == null || i.persist(), T(i) && i.touches && i.touches.length > 1))
765
765
  return;
766
766
  const l = e.getSize(), s = e ? e.getLeafHeaders().map((R) => [R.column.id, R.column.getSize()]) : [[n.id, n.getSize()]], u = T(i) ? Math.round(i.touches[0].clientX) : i.clientX, g = {}, d = (R, v) => {
767
767
  typeof v == "number" && (o.setColumnSizingInfo((h) => {
768
768
  var M, F;
769
- const D = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (v - ((M = h == null ? void 0 : h.startOffset) != null ? M : 0)) * D, b = Math.max(Z / ((F = h == null ? void 0 : h.startSize) != null ? F : 0), -0.999999);
769
+ const D = o.options.columnResizeDirection === "rtl" ? -1 : 1, Z = (v - ((M = h?.startOffset) != null ? M : 0)) * D, b = Math.max(Z / ((F = h?.startSize) != null ? F : 0), -0.999999);
770
770
  return h.columnSizingStart.forEach((fe) => {
771
771
  let [ce, ee] = fe;
772
772
  g[ce] = Math.round(Math.max(ee + ee * b, 0) * 100) / 100;
@@ -792,18 +792,18 @@ const G = {
792
792
  }, a = Be(t), c = {
793
793
  moveHandler: (R) => S(R.clientX),
794
794
  upHandler: (R) => {
795
- a == null || a.removeEventListener("mousemove", c.moveHandler), a == null || a.removeEventListener("mouseup", c.upHandler), f(R.clientX);
795
+ a?.removeEventListener("mousemove", c.moveHandler), a?.removeEventListener("mouseup", c.upHandler), f(R.clientX);
796
796
  }
797
797
  }, p = {
798
798
  moveHandler: (R) => (R.cancelable && (R.preventDefault(), R.stopPropagation()), S(R.touches[0].clientX), !1),
799
799
  upHandler: (R) => {
800
800
  var v;
801
- a == null || a.removeEventListener("touchmove", p.moveHandler), a == null || a.removeEventListener("touchend", p.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((v = R.touches[0]) == null ? void 0 : v.clientX);
801
+ a?.removeEventListener("touchmove", p.moveHandler), a?.removeEventListener("touchend", p.upHandler), R.cancelable && (R.preventDefault(), R.stopPropagation()), f((v = R.touches[0]) == null ? void 0 : v.clientX);
802
802
  }
803
803
  }, w = qe() ? {
804
804
  passive: !1
805
805
  } : !1;
806
- T(i) ? (a == null || a.addEventListener("touchmove", p.moveHandler, w), a == null || a.addEventListener("touchend", p.upHandler, w)) : (a == null || a.addEventListener("mousemove", c.moveHandler, w), a == null || a.addEventListener("mouseup", c.upHandler, w)), o.setColumnSizingInfo((R) => ({
806
+ T(i) ? (a?.addEventListener("touchmove", p.moveHandler, w), a?.addEventListener("touchend", p.upHandler, w)) : (a?.addEventListener("mousemove", c.moveHandler, w), a?.addEventListener("mouseup", c.upHandler, w)), o.setColumnSizingInfo((R) => ({
807
807
  ...R,
808
808
  startOffset: u,
809
809
  startSize: l,
@@ -883,10 +883,10 @@ const Ne = {
883
883
  };
884
884
  },
885
885
  createRow: (e, o) => {
886
- e._getAllVisibleCells = C(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), m(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = C(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], m(o.options, "debugRows", "getVisibleCells"));
886
+ e._getAllVisibleCells = m(() => [e.getAllCells(), o.getState().columnVisibility], (t) => t.filter((n) => n.column.getIsVisible()), C(o.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = m(() => [e.getLeftVisibleCells(), e.getCenterVisibleCells(), e.getRightVisibleCells()], (t, n, r) => [...t, ...n, ...r], C(o.options, "debugRows", "getVisibleCells"));
887
887
  },
888
888
  createTable: (e) => {
889
- const o = (t, n) => C(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), m(e.options, "debugColumns", t));
889
+ const o = (t, n) => m(() => [n(), n().filter((r) => r.getIsVisible()).map((r) => r.id).join("_")], (r) => r.filter((i) => i.getIsVisible == null ? void 0 : i.getIsVisible()), C(e.options, "debugColumns", t));
890
890
  e.getVisibleFlatColumns = o("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = o("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = o("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = o("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = o("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
891
891
  var n;
892
892
  e.setColumnVisibility(t ? {} : (n = e.initialState.columnVisibility) != null ? n : {});
@@ -1016,7 +1016,7 @@ const ke = {
1016
1016
  }, e.getIsExpanded = () => {
1017
1017
  var t;
1018
1018
  const n = o.getState().expanded;
1019
- return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n != null && n[e.id]);
1019
+ return !!((t = o.options.getIsRowExpanded == null ? void 0 : o.options.getIsRowExpanded(e)) != null ? t : n === !0 || n?.[e.id]);
1020
1020
  }, e.getCanExpand = () => {
1021
1021
  var t, n, r;
1022
1022
  return (t = o.options.getRowCanExpand == null ? void 0 : o.options.getRowCanExpand(e)) != null ? t : ((n = o.options.enableExpanding) != null ? n : !0) && !!((r = e.subRows) != null && r.length);
@@ -1040,7 +1040,7 @@ const ke = {
1040
1040
  ...e,
1041
1041
  pagination: {
1042
1042
  ...q(),
1043
- ...e == null ? void 0 : e.pagination
1043
+ ...e?.pagination
1044
1044
  }
1045
1045
  }),
1046
1046
  getDefaultOptions: (e) => ({
@@ -1099,10 +1099,10 @@ const ke = {
1099
1099
  ...r,
1100
1100
  pageCount: l
1101
1101
  };
1102
- }), e.getPageOptions = C(() => [e.getPageCount()], (n) => {
1102
+ }), e.getPageOptions = m(() => [e.getPageCount()], (n) => {
1103
1103
  let r = [];
1104
1104
  return n && n > 0 && (r = [...new Array(n)].fill(null).map((i, l) => l)), r;
1105
- }, m(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1105
+ }, C(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
1106
1106
  const {
1107
1107
  pageIndex: n
1108
1108
  } = e.getState().pagination, r = e.getPageCount();
@@ -1144,20 +1144,20 @@ const ke = {
1144
1144
  if (t === "bottom") {
1145
1145
  var S, f;
1146
1146
  return {
1147
- top: ((S = u == null ? void 0 : u.top) != null ? S : []).filter((p) => !(s != null && s.has(p))),
1148
- bottom: [...((f = u == null ? void 0 : u.bottom) != null ? f : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)]
1147
+ top: ((S = u?.top) != null ? S : []).filter((p) => !(s != null && s.has(p))),
1148
+ bottom: [...((f = u?.bottom) != null ? f : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)]
1149
1149
  };
1150
1150
  }
1151
1151
  if (t === "top") {
1152
1152
  var a, c;
1153
1153
  return {
1154
- top: [...((a = u == null ? void 0 : u.top) != null ? a : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)],
1155
- bottom: ((c = u == null ? void 0 : u.bottom) != null ? c : []).filter((p) => !(s != null && s.has(p)))
1154
+ top: [...((a = u?.top) != null ? a : []).filter((p) => !(s != null && s.has(p))), ...Array.from(s)],
1155
+ bottom: ((c = u?.bottom) != null ? c : []).filter((p) => !(s != null && s.has(p)))
1156
1156
  };
1157
1157
  }
1158
1158
  return {
1159
- top: ((g = u == null ? void 0 : u.top) != null ? g : []).filter((p) => !(s != null && s.has(p))),
1160
- bottom: ((d = u == null ? void 0 : u.bottom) != null ? d : []).filter((p) => !(s != null && s.has(p)))
1159
+ top: ((g = u?.top) != null ? g : []).filter((p) => !(s != null && s.has(p))),
1160
+ bottom: ((d = u?.bottom) != null ? d : []).filter((p) => !(s != null && s.has(p)))
1161
1161
  };
1162
1162
  });
1163
1163
  }, e.getCanPin = () => {
@@ -1171,7 +1171,7 @@ const ke = {
1171
1171
  const t = [e.id], {
1172
1172
  top: n,
1173
1173
  bottom: r
1174
- } = o.getState().rowPinning, i = t.some((s) => n == null ? void 0 : n.includes(s)), l = t.some((s) => r == null ? void 0 : r.includes(s));
1174
+ } = o.getState().rowPinning, i = t.some((s) => n?.includes(s)), l = t.some((s) => r?.includes(s));
1175
1175
  return i ? "top" : l ? "bottom" : !1;
1176
1176
  }, e.getPinnedIndex = () => {
1177
1177
  var t, n;
@@ -1183,7 +1183,7 @@ const ke = {
1183
1183
  } = l;
1184
1184
  return s;
1185
1185
  });
1186
- return (n = i == null ? void 0 : i.indexOf(e.id)) != null ? n : -1;
1186
+ return (n = i?.indexOf(e.id)) != null ? n : -1;
1187
1187
  };
1188
1188
  },
1189
1189
  createTable: (e) => {
@@ -1214,10 +1214,10 @@ const ke = {
1214
1214
  ...l,
1215
1215
  position: n
1216
1216
  }));
1217
- }, e.getTopRows = C(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), m(e.options, "debugRows", "getTopRows")), e.getBottomRows = C(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), m(e.options, "debugRows", "getBottomRows")), e.getCenterRows = C(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1217
+ }, e.getTopRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top], (o, t) => e._getPinnedRows(o, t, "top"), C(e.options, "debugRows", "getTopRows")), e.getBottomRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (o, t) => e._getPinnedRows(o, t, "bottom"), C(e.options, "debugRows", "getBottomRows")), e.getCenterRows = m(() => [e.getRowModel().rows, e.getState().rowPinning.top, e.getState().rowPinning.bottom], (o, t, n) => {
1218
1218
  const r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
1219
1219
  return o.filter((i) => !r.has(i.id));
1220
- }, m(e.options, "debugRows", "getCenterRows"));
1220
+ }, C(e.options, "debugRows", "getCenterRows"));
1221
1221
  }
1222
1222
  }, Je = {
1223
1223
  getInitialState: (e) => ({
@@ -1256,19 +1256,19 @@ const ke = {
1256
1256
  return e.getRowModel().rows.forEach((i) => {
1257
1257
  X(r, i.id, n, !0, e);
1258
1258
  }), r;
1259
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = C(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1259
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = m(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1260
1260
  rows: [],
1261
1261
  flatRows: [],
1262
1262
  rowsById: {}
1263
- }, m(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = C(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1263
+ }, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = m(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1264
1264
  rows: [],
1265
1265
  flatRows: [],
1266
1266
  rowsById: {}
1267
- }, m(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = C(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1267
+ }, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = m(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
1268
1268
  rows: [],
1269
1269
  flatRows: [],
1270
1270
  rowsById: {}
1271
- }, m(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1271
+ }, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
1272
1272
  const o = e.getFilteredRowModel().flatRows, {
1273
1273
  rowSelection: t
1274
1274
  } = e.getState();
@@ -1303,7 +1303,7 @@ const ke = {
1303
1303
  const s = {
1304
1304
  ...i
1305
1305
  };
1306
- return X(s, e.id, t, (l = n == null ? void 0 : n.selectChildren) != null ? l : !0, o), s;
1306
+ return X(s, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), s;
1307
1307
  });
1308
1308
  }, e.getIsSelected = () => {
1309
1309
  const {
@@ -1430,7 +1430,7 @@ const y = {
1430
1430
  const t = o.getFilteredRowModel().flatRows.slice(10);
1431
1431
  let n = !1;
1432
1432
  for (const r of t) {
1433
- const i = r == null ? void 0 : r.getValue(e.id);
1433
+ const i = r?.getValue(e.id);
1434
1434
  if (Object.prototype.toString.call(i) === "[object Date]")
1435
1435
  return y.datetime;
1436
1436
  if (typeof i == "string" && (n = !0, i.split(J).length > 1))
@@ -1439,7 +1439,7 @@ const y = {
1439
1439
  return n ? y.text : y.basic;
1440
1440
  }, e.getAutoSortDir = () => {
1441
1441
  const t = o.getFilteredRowModel().flatRows[0];
1442
- return typeof (t == null ? void 0 : t.getValue(e.id)) == "string" ? "asc" : "desc";
1442
+ return typeof t?.getValue(e.id) == "string" ? "asc" : "desc";
1443
1443
  }, e.getSortingFn = () => {
1444
1444
  var t, n;
1445
1445
  if (!e)
@@ -1448,7 +1448,7 @@ const y = {
1448
1448
  }, e.toggleSorting = (t, n) => {
1449
1449
  const r = e.getNextSortingOrder(), i = typeof t < "u" && t !== null;
1450
1450
  o.setSorting((l) => {
1451
- const s = l == null ? void 0 : l.find((a) => a.id === e.id), u = l == null ? void 0 : l.findIndex((a) => a.id === e.id);
1451
+ const s = l?.find((a) => a.id === e.id), u = l?.findIndex((a) => a.id === e.id);
1452
1452
  let g = [], d, S = i ? t : r === "desc";
1453
1453
  if (l != null && l.length && e.getCanMultiSort() && n ? s ? d = "toggle" : d = "add" : l != null && l.length && u !== l.length - 1 ? d = "replace" : s ? d = "toggle" : d = "replace", d === "toggle" && (i || r || (d = "remove")), d === "add") {
1454
1454
  var f;
@@ -1584,7 +1584,7 @@ function st(e) {
1584
1584
  throw process.env.NODE_ENV !== "production" ? new Error(`getRow could not find row with ID: ${f}`) : new Error();
1585
1585
  return c;
1586
1586
  },
1587
- _getDefaultColumnDef: C(() => [r.options.defaultColumn], (f) => {
1587
+ _getDefaultColumnDef: m(() => [r.options.defaultColumn], (f) => {
1588
1588
  var a;
1589
1589
  return f = (a = f) != null ? a : {}, {
1590
1590
  header: (c) => {
@@ -1599,9 +1599,9 @@ function st(e) {
1599
1599
  ...r._features.reduce((c, p) => Object.assign(c, p.getDefaultColumnDef == null ? void 0 : p.getDefaultColumnDef()), {}),
1600
1600
  ...f
1601
1601
  };
1602
- }, m(e, "debugColumns", "_getDefaultColumnDef")),
1602
+ }, C(e, "debugColumns", "_getDefaultColumnDef")),
1603
1603
  _getColumnDefs: () => r.options.columns,
1604
- getAllColumns: C(() => [r._getColumnDefs()], (f) => {
1604
+ getAllColumns: m(() => [r._getColumnDefs()], (f) => {
1605
1605
  const a = function(c, p, w) {
1606
1606
  return w === void 0 && (w = 0), c.map((R) => {
1607
1607
  const v = he(r, R, w, p), h = R;
@@ -1609,13 +1609,13 @@ function st(e) {
1609
1609
  });
1610
1610
  };
1611
1611
  return a(f);
1612
- }, m(e, "debugColumns", "getAllColumns")),
1613
- getAllFlatColumns: C(() => [r.getAllColumns()], (f) => f.flatMap((a) => a.getFlatColumns()), m(e, "debugColumns", "getAllFlatColumns")),
1614
- _getAllFlatColumnsById: C(() => [r.getAllFlatColumns()], (f) => f.reduce((a, c) => (a[c.id] = c, a), {}), m(e, "debugColumns", "getAllFlatColumnsById")),
1615
- getAllLeafColumns: C(() => [r.getAllColumns(), r._getOrderColumnsFn()], (f, a) => {
1612
+ }, C(e, "debugColumns", "getAllColumns")),
1613
+ getAllFlatColumns: m(() => [r.getAllColumns()], (f) => f.flatMap((a) => a.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
1614
+ _getAllFlatColumnsById: m(() => [r.getAllFlatColumns()], (f) => f.reduce((a, c) => (a[c.id] = c, a), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
1615
+ getAllLeafColumns: m(() => [r.getAllColumns(), r._getOrderColumnsFn()], (f, a) => {
1616
1616
  let c = f.flatMap((p) => p.getLeafColumns());
1617
1617
  return a(c);
1618
- }, m(e, "debugColumns", "getAllLeafColumns")),
1618
+ }, C(e, "debugColumns", "getAllLeafColumns")),
1619
1619
  getColumn: (f) => {
1620
1620
  const a = r._getAllFlatColumnsById()[f];
1621
1621
  return process.env.NODE_ENV !== "production" && !a && console.error(`[Table] Column with id '${f}' does not exist.`), a;
@@ -1629,7 +1629,7 @@ function st(e) {
1629
1629
  return r;
1630
1630
  }
1631
1631
  function ut() {
1632
- return (e) => C(() => [e.options.data], (o) => {
1632
+ return (e) => m(() => [e.options.data], (o) => {
1633
1633
  const t = {
1634
1634
  rows: [],
1635
1635
  flatRows: [],
@@ -1638,7 +1638,7 @@ function ut() {
1638
1638
  i === void 0 && (i = 0);
1639
1639
  const s = [];
1640
1640
  for (let g = 0; g < r.length; g++) {
1641
- const d = Fe(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l == null ? void 0 : l.id);
1641
+ const d = Fe(e, e._getRowId(r[g], g, l), r[g], g, i, void 0, l?.id);
1642
1642
  if (t.flatRows.push(d), t.rowsById[d.id] = d, s.push(d), e.options.getSubRows) {
1643
1643
  var u;
1644
1644
  d.originalSubRows = e.options.getSubRows(r[g], g), (u = d.originalSubRows) != null && u.length && (d.subRows = n(d.originalSubRows, i + 1, d));
@@ -1647,10 +1647,10 @@ function ut() {
1647
1647
  return s;
1648
1648
  };
1649
1649
  return t.rows = n(o), t;
1650
- }, m(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1650
+ }, C(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
1651
1651
  }
1652
1652
  function gt() {
1653
- return (e) => C(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1653
+ return (e) => m(() => [e.getState().sorting, e.getPreSortedRowModel()], (o, t) => {
1654
1654
  if (!t.rows.length || !(o != null && o.length))
1655
1655
  return t;
1656
1656
  const n = e.getState().sorting, r = [], i = n.filter((u) => {
@@ -1672,7 +1672,7 @@ function gt() {
1672
1672
  return g.sort((d, S) => {
1673
1673
  for (let a = 0; a < i.length; a += 1) {
1674
1674
  var f;
1675
- const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c == null ? void 0 : c.desc) != null ? f : !1;
1675
+ const c = i[a], p = l[c.id], w = p.sortUndefined, R = (f = c?.desc) != null ? f : !1;
1676
1676
  let v = 0;
1677
1677
  if (w) {
1678
1678
  const h = d.getValue(c.id), M = S.getValue(c.id), F = h === void 0, D = M === void 0;
@@ -1696,27 +1696,27 @@ function gt() {
1696
1696
  flatRows: r,
1697
1697
  rowsById: t.rowsById
1698
1698
  };
1699
- }, m(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1699
+ }, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
1700
1700
  }
1701
1701
  const at = (e, o) => {
1702
- const t = me();
1702
+ const t = Ce();
1703
1703
  return o ? o.map(
1704
1704
  (r) => [r.key, r]
1705
1705
  ).map(([r, i]) => {
1706
- const l = !!(i != null && i.sort) || !!(i != null && i.sortFn), s = {
1706
+ const l = !!i?.sort || !!i?.sortFn, s = {
1707
1707
  id: r,
1708
1708
  cell: (u) => /* @__PURE__ */ pe(
1709
1709
  Se,
1710
1710
  {
1711
- format: (i == null ? void 0 : i.format) ?? ot(u.getValue()),
1711
+ format: i?.format ?? ot(u.getValue()),
1712
1712
  value: u.getValue(),
1713
1713
  row: u.row.original
1714
1714
  }
1715
1715
  ),
1716
- header: () => i == null ? void 0 : i.label,
1716
+ header: () => i?.label,
1717
1717
  enableSorting: l
1718
1718
  };
1719
- return i != null && i.sortFn && (s.sortingFn = i.sortFn), t.accessor(
1719
+ return i?.sortFn && (s.sortingFn = i.sortFn), t.accessor(
1720
1720
  (u) => u[r],
1721
1721
  s
1722
1722
  // The typing is weird, cannot get it to work without the never cast, its typed properly above anyway
@@ -1725,7 +1725,7 @@ const at = (e, o) => {
1725
1725
  (r) => t.accessor((i) => i[r], {
1726
1726
  id: r,
1727
1727
  cell: (i) => i.getValue(),
1728
- header: () => Ce(r),
1728
+ header: () => me(r),
1729
1729
  enableSorting: !1
1730
1730
  })
1731
1731
  );