themelia-react-ui 2.0.5 → 2.0.6

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 (489) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/MIGRATION.md +119 -0
  3. package/README.md +13 -6
  4. package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
  5. package/dist/accordion-0tQUZ20r.js.map +1 -0
  6. package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
  7. package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
  8. package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
  9. package/dist/ai-artifact-CGGpQryR.js.map +1 -0
  10. package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
  11. package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
  12. package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
  13. package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
  14. package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
  15. package/dist/auth-B0girIk_.js.map +1 -0
  16. package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
  17. package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
  18. package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
  19. package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
  20. package/dist/base/accordion.js +1 -1
  21. package/dist/base/action-menu.js +1 -1
  22. package/dist/base/attachment.js +1 -1
  23. package/dist/base/avatar.js +1 -1
  24. package/dist/base/badge.js +1 -1
  25. package/dist/base/batch-action-bar.js +1 -1
  26. package/dist/base/buttons.js +1 -1
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +3 -3
  29. package/dist/base/cascader.js +1 -1
  30. package/dist/base/chart.js +1 -1
  31. package/dist/base/choice-inputs.js +2 -2
  32. package/dist/base/code-block.js +1 -1
  33. package/dist/base/combobox.js +1 -1
  34. package/dist/base/command.js +1 -1
  35. package/dist/base/copyable.js +1 -1
  36. package/dist/base/date-pickers.js +2 -2
  37. package/dist/base/display.js +6 -6
  38. package/dist/base/feedback.js +4 -4
  39. package/dist/base/forms-numeric.js +1 -1
  40. package/dist/base/forms.js +2 -2
  41. package/dist/base/inline-edit.js +8 -8
  42. package/dist/base/item.js +1 -1
  43. package/dist/base/media-gallery.js +1 -1
  44. package/dist/base/metadata-list.js +1 -1
  45. package/dist/base/navigation.js +6 -6
  46. package/dist/base/popover-menu.js +1 -1
  47. package/dist/base/popover.js +1 -1
  48. package/dist/base/qr-code.js +1 -1
  49. package/dist/base/repeaters.js +195 -188
  50. package/dist/base/repeaters.js.map +1 -1
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +2 -2
  53. package/dist/base/signature-pad.js +7 -7
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +5 -5
  56. package/dist/base/spinner.js.map +1 -1
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +1 -1
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
  66. package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
  67. package/dist/blocks/admin.js +17 -17
  68. package/dist/blocks/ai.js +227 -221
  69. package/dist/blocks/ai.js.map +1 -1
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +424 -449
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +225 -220
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
  82. package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
  83. package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
  84. package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
  85. package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
  86. package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
  87. package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
  88. package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
  89. package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
  90. package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
  91. package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
  92. package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
  93. package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
  94. package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
  95. package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
  96. package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
  97. package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
  98. package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
  99. package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
  100. package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
  101. package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
  102. package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
  103. package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
  104. package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
  105. package/dist/combobox-C2JiSQPc.js +915 -0
  106. package/dist/combobox-C2JiSQPc.js.map +1 -0
  107. package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
  108. package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
  109. package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
  110. package/dist/comments-BsgErEqd.js.map +1 -0
  111. package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
  112. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
  113. package/dist/components/base/combobox/combobox-field.d.ts +2 -2
  114. package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
  115. package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
  116. package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
  117. package/dist/components/base/feedback/state-display.d.ts +5 -1
  118. package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
  119. package/dist/components/base/forms/form-field.d.ts +7 -2
  120. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
  121. package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
  122. package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
  123. package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
  124. package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
  125. package/dist/components/base/navigation/language-switcher.d.ts +12 -4
  126. package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
  127. package/dist/components/base/sidebar/sidebar.d.ts +2 -0
  128. package/dist/components/base/upload/avatar-upload.d.ts +2 -1
  129. package/dist/components/base/upload/image-upload.d.ts +2 -1
  130. package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
  131. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
  132. package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
  133. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
  134. package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
  135. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  136. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
  137. package/dist/components/blocks/analytics/types.d.ts +2 -2
  138. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  139. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
  140. package/dist/components/features/activities/activities.types.d.ts +18 -11
  141. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
  142. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
  143. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
  144. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
  145. package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
  146. package/dist/components/features/combobox/combobox.d.ts +2 -2
  147. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
  148. package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
  149. package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
  150. package/dist/components/features/combobox/types.d.ts +37 -8
  151. package/dist/components/features/email-composer/types.d.ts +3 -1
  152. package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
  153. package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
  154. package/dist/components/features/filters/filters.types.d.ts +3 -3
  155. package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
  156. package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
  157. package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
  158. package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
  159. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  160. package/dist/components/features/media-library/media-library.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  162. package/dist/components/features/media-library/media-library.types.d.ts +36 -8
  163. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  164. package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
  165. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
  166. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
  167. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
  168. package/dist/components/features/products/products.types.d.ts +2 -2
  169. package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
  170. package/dist/components/features/resource/resource.d.ts +1 -1
  171. package/dist/components/features/resource/resource.types.d.ts +2 -0
  172. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
  173. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
  174. package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
  175. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
  176. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  177. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
  178. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
  179. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
  180. package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
  181. package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
  182. package/dist/components/features/table/data-table.d.ts +1 -1
  183. package/dist/components/features/table/index.d.ts +1 -0
  184. package/dist/components/features/table/table-body.d.ts +1 -1
  185. package/dist/components/features/table/table-helpers.d.ts +6 -3
  186. package/dist/components/features/table/table.strings.d.ts +3 -0
  187. package/dist/components/features/table/table.types.d.ts +17 -1
  188. package/dist/components/layout/header/header.types.d.ts +3 -2
  189. package/dist/components/layout/layout.types.d.ts +5 -3
  190. package/dist/components/layout/navigation/side-nav.d.ts +3 -2
  191. package/dist/components/layout/normalize-layout-path.d.ts +1 -0
  192. package/dist/components/layout/settings/settings.d.ts +1 -1
  193. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  194. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
  195. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
  196. package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
  197. package/dist/components/primitives/link.d.ts +3 -2
  198. package/dist/components/primitives/money.d.ts +1 -1
  199. package/dist/components/primitives/number.d.ts +1 -1
  200. package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
  201. package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
  202. package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
  203. package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
  204. package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
  205. package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
  206. package/dist/data-display-Cmj-xZYl.js.map +1 -0
  207. package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
  208. package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
  209. package/dist/date-picker-CyQlFYsP.js +1617 -0
  210. package/dist/date-picker-CyQlFYsP.js.map +1 -0
  211. package/dist/date-pickers-tj2MXmXd.js +185 -0
  212. package/dist/date-pickers-tj2MXmXd.js.map +1 -0
  213. package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
  214. package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
  215. package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
  216. package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
  217. package/dist/features/activities.js +283 -270
  218. package/dist/features/activities.js.map +1 -1
  219. package/dist/features/ai-chat.js +40 -27
  220. package/dist/features/ai-chat.js.map +1 -1
  221. package/dist/features/appointment-calendar.js +126 -126
  222. package/dist/features/appointment-calendar.js.map +1 -1
  223. package/dist/features/async-preview.js +9 -9
  224. package/dist/features/combobox.js +1 -1
  225. package/dist/features/comments.js +1 -1
  226. package/dist/features/data-view.js +10 -10
  227. package/dist/features/email-composer.js +24 -19
  228. package/dist/features/email-composer.js.map +1 -1
  229. package/dist/features/event-calendar.js +129 -125
  230. package/dist/features/event-calendar.js.map +1 -1
  231. package/dist/features/filters.js +2 -2
  232. package/dist/features/global-search.js +16 -20
  233. package/dist/features/global-search.js.map +1 -1
  234. package/dist/features/kanban.js +18 -28
  235. package/dist/features/kanban.js.map +1 -1
  236. package/dist/features/map/style.css +15 -0
  237. package/dist/features/map.js +331 -314
  238. package/dist/features/map.js.map +1 -1
  239. package/dist/features/media-library.js +1044 -866
  240. package/dist/features/media-library.js.map +1 -1
  241. package/dist/features/mentions.js +2 -2
  242. package/dist/features/overlays.js +1 -1
  243. package/dist/features/products.js +978 -964
  244. package/dist/features/products.js.map +1 -1
  245. package/dist/features/questionnaire.js +159 -152
  246. package/dist/features/questionnaire.js.map +1 -1
  247. package/dist/features/resource-assignment.js +8 -8
  248. package/dist/features/resource.js +74 -71
  249. package/dist/features/resource.js.map +1 -1
  250. package/dist/features/rich-text-editor.js +28 -19
  251. package/dist/features/rich-text-editor.js.map +1 -1
  252. package/dist/features/schema-form.js +297 -256
  253. package/dist/features/schema-form.js.map +1 -1
  254. package/dist/features/suggestions.js +57 -50
  255. package/dist/features/suggestions.js.map +1 -1
  256. package/dist/features/sync.js +3 -3
  257. package/dist/features/table.js +1 -1
  258. package/dist/features/theme-tweaker.js +400 -399
  259. package/dist/features/theme-tweaker.js.map +1 -1
  260. package/dist/feedback-Dzo1xtAU.js +246 -0
  261. package/dist/feedback-Dzo1xtAU.js.map +1 -0
  262. package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
  263. package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
  264. package/dist/field-control-attributes-B6i335wr.js +18 -0
  265. package/dist/field-control-attributes-B6i335wr.js.map +1 -0
  266. package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
  267. package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
  268. package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
  269. package/dist/filters-Dl80yYtN.js.map +1 -0
  270. package/dist/form-field-CAPdwdnZ.js +74 -0
  271. package/dist/form-field-CAPdwdnZ.js.map +1 -0
  272. package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
  273. package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
  274. package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
  275. package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
  276. package/dist/forms-numeric-CwjQJe-O.js +991 -0
  277. package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
  278. package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
  279. package/dist/header-ZIIsRKxP.js.map +1 -0
  280. package/dist/hooks/use-files.d.ts +2 -0
  281. package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
  282. package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
  283. package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
  284. package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
  285. package/dist/index.js +1 -1
  286. package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
  287. package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
  288. package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
  289. package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
  290. package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
  291. package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
  292. package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
  293. package/dist/item-FfWnaYST.js.map +1 -0
  294. package/dist/layout/app-shell.js +1 -1
  295. package/dist/layout/auth.js +1 -1
  296. package/dist/layout/containers.js +1 -1
  297. package/dist/layout/header.js +1 -1
  298. package/dist/layout/hooks.js +1 -1
  299. package/dist/layout/navigation.js +1 -1
  300. package/dist/layout/page.js +1 -1
  301. package/dist/layout/settings.js +1 -1
  302. package/dist/layout/sidebar.js +2 -2
  303. package/dist/layout/workspace.js +1 -1
  304. package/dist/layout.js +11 -11
  305. package/dist/layout.types-E_GAApzO.js +30 -0
  306. package/dist/layout.types-E_GAApzO.js.map +1 -0
  307. package/dist/lib/field-control-attributes.d.ts +11 -0
  308. package/dist/lib/field-state-recipes.d.ts +2 -0
  309. package/dist/lib/format.d.ts +1 -0
  310. package/dist/lib/surface-recipes.d.ts +1 -1
  311. package/dist/lib/token-merge.generated.d.ts +6 -6
  312. package/dist/lib/utils.js +1 -1
  313. package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
  314. package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
  315. package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
  316. package/dist/mentions-qOnedSt4.js.map +1 -0
  317. package/dist/message-BJHnn43M.js +135 -0
  318. package/dist/message-BJHnn43M.js.map +1 -0
  319. package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
  320. package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
  321. package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
  322. package/dist/navigation-BgtPJAhi.js.map +1 -0
  323. package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
  324. package/dist/navigation-Bt-v7rWP.js.map +1 -0
  325. package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
  326. package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
  327. package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
  328. package/dist/number-CYqBcrSj.js.map +1 -0
  329. package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
  330. package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
  331. package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
  332. package/dist/overlays-CC8zI3Du.js.map +1 -0
  333. package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
  334. package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
  335. package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
  336. package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
  337. package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
  338. package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
  339. package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
  340. package/dist/popover-k8TdUcAt.js.map +1 -0
  341. package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
  342. package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
  343. package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
  344. package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
  345. package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
  346. package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
  347. package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
  348. package/dist/primitives-BkkQjYl7.js.map +1 -0
  349. package/dist/primitives.js +4 -4
  350. package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
  351. package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
  352. package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
  353. package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
  354. package/dist/rich-text-BnTzZjIo.js +45 -0
  355. package/dist/rich-text-BnTzZjIo.js.map +1 -0
  356. package/dist/rich-text-editor-CAurDwT5.js +1273 -0
  357. package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
  358. package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
  359. package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
  360. package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
  361. package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
  362. package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
  363. package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
  364. package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
  365. package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
  366. package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
  367. package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
  368. package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
  369. package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
  370. package/dist/services/actions.js +1 -1
  371. package/dist/settings-DZPHgpx4.js +155 -0
  372. package/dist/settings-DZPHgpx4.js.map +1 -0
  373. package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
  374. package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
  375. package/dist/sidebar-C8BnDwTH.js +709 -0
  376. package/dist/sidebar-C8BnDwTH.js.map +1 -0
  377. package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
  378. package/dist/sidebar-CmD6a-HK.js.map +1 -0
  379. package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
  380. package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
  381. package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
  382. package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
  383. package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
  384. package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
  385. package/dist/style.css +1 -1
  386. package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
  387. package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
  388. package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
  389. package/dist/table-CBonSdTp.js.map +1 -0
  390. package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
  391. package/dist/table-CXSPHH25.js.map +1 -0
  392. package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
  393. package/dist/tabs-C4Kr_hCr.js.map +1 -0
  394. package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
  395. package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
  396. package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
  397. package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
  398. package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
  399. package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
  400. package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
  401. package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
  402. package/dist/typography/rich-text.js +1 -1
  403. package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
  404. package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
  405. package/dist/typography.js +1 -1
  406. package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
  407. package/dist/upload-Hdm5gObf.js.map +1 -0
  408. package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
  409. package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
  410. package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
  411. package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
  412. package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
  413. package/dist/utils-DhuoqFy4.js.map +1 -0
  414. package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
  415. package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
  416. package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
  417. package/dist/value-typography-uSzzG9Gf.js.map +1 -0
  418. package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
  419. package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
  420. package/docs/consumer-skill/examples/edit.tsx +3 -3
  421. package/docs/consumer-skill/references/agents-md.md +19 -19
  422. package/docs/consumer-skill/references/analytics.md +15 -0
  423. package/docs/consumer-skill/references/component-contracts.json +14724 -13057
  424. package/docs/consumer-skill/references/composition.md +21 -4
  425. package/docs/consumer-skill/references/design-contract.md +1 -0
  426. package/docs/consumer-skill/references/installation.md +51 -8
  427. package/docs/consumer-skill/references/integration.md +24 -1
  428. package/docs/consumer-skill/references/public-api.json +172 -34
  429. package/docs/consumer-skill/references/review.md +51 -11
  430. package/docs/consumer-skill/references/rhf-workflows.md +72 -0
  431. package/docs/consumer-skill/references/theming.md +7 -2
  432. package/docs/consumer-skill/references/tokens.json +1 -1
  433. package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
  434. package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
  435. package/package.json +4 -2
  436. package/templates/admin-shell-template.tsx +1 -2
  437. package/templates/customers-template.tsx +18 -16
  438. package/dist/accordion-B9MHG0cT.js.map +0 -1
  439. package/dist/ai-artifact-C58tQcBy.js.map +0 -1
  440. package/dist/auth-DTkkshS8.js.map +0 -1
  441. package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
  442. package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
  443. package/dist/combobox-BwzoXFSG.js +0 -884
  444. package/dist/combobox-BwzoXFSG.js.map +0 -1
  445. package/dist/comments-Dmpp0YIc.js.map +0 -1
  446. package/dist/data-display-BdgCAw8T.js.map +0 -1
  447. package/dist/date-picker-RlIzKom_.js +0 -1551
  448. package/dist/date-picker-RlIzKom_.js.map +0 -1
  449. package/dist/date-pickers-DY-CpXS1.js +0 -179
  450. package/dist/date-pickers-DY-CpXS1.js.map +0 -1
  451. package/dist/feedback-Dm4izqFn.js +0 -240
  452. package/dist/feedback-Dm4izqFn.js.map +0 -1
  453. package/dist/filters-DzgSJpMK.js.map +0 -1
  454. package/dist/form-field-BriWAXyg.js +0 -63
  455. package/dist/form-field-BriWAXyg.js.map +0 -1
  456. package/dist/forms-numeric-DIhghX1Q.js +0 -910
  457. package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
  458. package/dist/header-DMMxG__r.js.map +0 -1
  459. package/dist/item-DjCcM18E.js.map +0 -1
  460. package/dist/layout.types-Cn7aUzJp.js +0 -20
  461. package/dist/layout.types-Cn7aUzJp.js.map +0 -1
  462. package/dist/mentions-0_4nWuI-.js.map +0 -1
  463. package/dist/message-g8p7eVtN.js +0 -128
  464. package/dist/message-g8p7eVtN.js.map +0 -1
  465. package/dist/navigation-C90-oQFq.js.map +0 -1
  466. package/dist/navigation-DaRjthVk.js.map +0 -1
  467. package/dist/number-CRU3kGuk.js.map +0 -1
  468. package/dist/overlays-BSgCtM2v.js.map +0 -1
  469. package/dist/popover-B85RenIl.js.map +0 -1
  470. package/dist/primitives-ByWgGUgt.js.map +0 -1
  471. package/dist/rich-text-Dth5E882.js +0 -78
  472. package/dist/rich-text-Dth5E882.js.map +0 -1
  473. package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
  474. package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
  475. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
  476. package/dist/safe-image-src-C6kQSMBZ.js +0 -17
  477. package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
  478. package/dist/sanitize-html-DsQmI48u.js.map +0 -1
  479. package/dist/settings-Bar5wiSo.js +0 -167
  480. package/dist/settings-Bar5wiSo.js.map +0 -1
  481. package/dist/sidebar-D-JYMMbY.js +0 -686
  482. package/dist/sidebar-D-JYMMbY.js.map +0 -1
  483. package/dist/sidebar-f9gRWXIR.js.map +0 -1
  484. package/dist/table-B4TE7iOV.js.map +0 -1
  485. package/dist/table-CFOWY9pQ.js.map +0 -1
  486. package/dist/tabs-e7ko9S2o.js.map +0 -1
  487. package/dist/upload-BOW6U2tI.js.map +0 -1
  488. package/dist/utils-B6kKb8jB.js.map +0 -1
  489. package/dist/value-typography-uAmWUAL1.js.map +0 -1
@@ -1,39 +1,40 @@
1
1
  "use client";
2
2
  import { S as e, d as t } from "./ui-provider-C-74NVLc.js";
3
- import { t as n } from "./utils-B6kKb8jB.js";
4
- import { n as r } from "./buttons-BedGfygC.js";
5
- import { c as i, o as a, t as o } from "./typography-BQnine1k.js";
3
+ import { t as n } from "./utils-DhuoqFy4.js";
4
+ import { n as r } from "./buttons-DeW0bQeK.js";
5
+ import { c as i, o as a, t as o } from "./typography-C7-YMW1S.js";
6
6
  import { t as s } from "./focus-recipes-B653VaLq.js";
7
- import { t as c } from "./structure-DuxKl954.js";
8
- import { i as l } from "./popover.recipes-DdiEp0rd.js";
9
- import { n as u, t as d } from "./action-menu-Dr8K-ghE.js";
10
- import { t as f } from "./interaction-recipes-XR9ZpVYL.js";
11
- import { _ as p, c as m, d as h, g, h as _, i as v, l as y, m as b, o as x, p as S, s as C, u as w } from "./primitives-ByWgGUgt.js";
12
- import { t as T } from "./initials-format-CDoQEOd_.js";
13
- import { n as ee, r as te, t as E } from "./number-CRU3kGuk.js";
14
- import { a as ne, i as re, r as ie, s as ae, t as oe } from "./date-Cq8ioE4o.js";
15
- import { i as se, n as ce, s as le } from "./avatar-CeZaFmNH.js";
16
- import { t as D } from "./badge-xIiV_E7f.js";
17
- import { t as ue } from "./batch-action-bar-Cb8cuvyy.js";
18
- import { t as de } from "./separator-Ct_WSWTJ.js";
19
- import { t as fe } from "./input-CvyDQlY7.js";
20
- import { t as pe } from "./checkbox-fflqmODR.js";
21
- import { r as O, t as me } from "./control-group-recipes-fMuFo0H7.js";
22
- import { a as he, c as ge, i as _e, n as ve, o as ye, r as be, s as xe, t as Se } from "./pagination-CgCjElfu.js";
23
- import { c as k, i as A, n as j, o as Ce, s as we, t as Te } from "./table-B4TE7iOV.js";
24
- import { s as Ee } from "./data-display-BdgCAw8T.js";
25
- import M, { createContext as De, isValidElement as N, useCallback as P, useContext as Oe, useEffect as F, useMemo as I, useRef as L, useState as R } from "react";
26
- import { Fragment as ke, jsx as z, jsxs as B } from "react/jsx-runtime";
27
- import { ArrowDown as Ae, ArrowUp as je, Calendar as Me, ChevronLeft as V, ChevronRight as Ne, ChevronsUpDown as Pe, Mail as Fe, Maximize2 as Ie, Minimize2 as Le, PackageOpen as Re, Settings2 as ze } from "lucide-react";
28
- import { flexRender as H, getCoreRowModel as Be, getFilteredRowModel as Ve, getSortedRowModel as He, useReactTable as Ue } from "@tanstack/react-table";
7
+ import { t as c } from "./structure-DZJ2wbAU.js";
8
+ import { i as l } from "./popover.recipes-DJ0AkUan.js";
9
+ import { n as u, t as d } from "./action-menu-C0gjzLyE.js";
10
+ import { r as f } from "./skeleton-DDgdhmu9.js";
11
+ import { t as p } from "./interaction-recipes-4wZ2tvfb.js";
12
+ import { _ as m, c as h, d as g, g as _, h as v, i as y, l as b, m as x, o as S, p as C, s as w, u as T } from "./primitives-BkkQjYl7.js";
13
+ import { t as ee } from "./initials-format-CDoQEOd_.js";
14
+ import { n as E, r as D, t as O } from "./number-CYqBcrSj.js";
15
+ import { a as k, i as te, r as ne, s as re, t as ie } from "./date-Br0FicVv.js";
16
+ import { i as ae, n as oe, s as se } from "./avatar-B9Jnp-T-.js";
17
+ import { t as ce } from "./badge-wWauMgAt.js";
18
+ import { t as le } from "./batch-action-bar-BoqWIIpV.js";
19
+ import { t as ue } from "./separator-DM6gs2vu.js";
20
+ import { t as de } from "./input-7KAc7XQL.js";
21
+ import { t as fe } from "./checkbox-MoyHIAPs.js";
22
+ import { r as A, t as pe } from "./control-group-recipes-fMuFo0H7.js";
23
+ import { a as me, c as he, i as ge, n as _e, o as ve, r as ye, s as be, t as xe } from "./pagination-Br8TdV9A.js";
24
+ import { c as j, i as Se, n as M, o as N, s as Ce, t as we } from "./table-CXSPHH25.js";
25
+ import { s as Te } from "./data-display-Cmj-xZYl.js";
26
+ import Ee, { createContext as P, isValidElement as De, useCallback as F, useContext as Oe, useEffect as I, useMemo as L, useRef as R, useState as z } from "react";
27
+ import { Fragment as ke, jsx as B, jsxs as V } from "react/jsx-runtime";
28
+ import { ArrowDown as Ae, ArrowUp as je, Calendar as Me, ChevronLeft as Ne, ChevronRight as H, ChevronsUpDown as Pe, Mail as Fe, Maximize2 as Ie, Minimize2 as Le, PackageOpen as Re, Settings2 as ze } from "lucide-react";
29
+ import { flexRender as Be, getCoreRowModel as Ve, getFilteredRowModel as He, getSortedRowModel as Ue, useReactTable as We } from "@tanstack/react-table";
29
30
  //#region src/components/features/table/hooks.ts
30
- var We = 300;
31
- function U(e) {
31
+ var U = 300;
32
+ function Ge(e) {
32
33
  return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
33
34
  }
34
- function Ge(e, t = {}) {
35
- let { stepPx: n = We, deps: r = [] } = t, [i, a] = R(!1), [o, s] = R(!1), c = L(0), l = P(() => {
36
- let t = U(e.current);
35
+ function Ke(e, t = {}) {
36
+ let { stepPx: n = U, deps: r = [] } = t, [i, a] = z(!1), [o, s] = z(!1), c = R(0), l = F(() => {
37
+ let t = Ge(e.current);
37
38
  if (!t) {
38
39
  a(!1), s(!1);
39
40
  return;
@@ -41,10 +42,10 @@ function Ge(e, t = {}) {
41
42
  let { scrollLeft: n, scrollWidth: r, clientWidth: i } = t;
42
43
  a(n > 1), s(n + i < r - 1);
43
44
  }, [e]);
44
- F(() => {
45
+ I(() => {
45
46
  let t, n = window.setTimeout(() => {
46
47
  l();
47
- let n = U(e.current);
48
+ let n = Ge(e.current);
48
49
  if (!n) return;
49
50
  let r = () => {
50
51
  cancelAnimationFrame(c.current), c.current = requestAnimationFrame(l);
@@ -63,8 +64,8 @@ function Ge(e, t = {}) {
63
64
  l,
64
65
  ...r
65
66
  ]);
66
- let u = P((t) => {
67
- U(e.current)?.scrollBy({
67
+ let u = F((t) => {
68
+ Ge(e.current)?.scrollBy({
68
69
  left: t,
69
70
  behavior: "smooth"
70
71
  });
@@ -73,15 +74,15 @@ function Ge(e, t = {}) {
73
74
  canScrollLeft: i,
74
75
  canScrollRight: o,
75
76
  scrollBy: u,
76
- scrollLeft: P(() => u(-n), [u, n]),
77
- scrollRight: P(() => u(n), [u, n])
77
+ scrollLeft: F(() => u(-n), [u, n]),
78
+ scrollRight: F(() => u(n), [u, n])
78
79
  };
79
80
  }
80
- var W = /* @__PURE__ */ new Set([
81
+ var qe = /* @__PURE__ */ new Set([
81
82
  "",
82
83
  "true",
83
84
  "plaintext-only"
84
- ]), Ke = [
85
+ ]), W = [
85
86
  "a[href]",
86
87
  "button:not([disabled])",
87
88
  "input:not([disabled])",
@@ -91,7 +92,7 @@ var W = /* @__PURE__ */ new Set([
91
92
  "[contenteditable]",
92
93
  "[tabindex]:not([tabindex=\"-1\"])"
93
94
  ].join(",");
94
- function G(e) {
95
+ function Je(e) {
95
96
  let t = [e];
96
97
  for (let n = 0; n < t.length; n++) for (let r of t[n].querySelectorAll("[aria-controls]:not([aria-expanded=\"false\"])")) for (let n of (r.getAttribute("aria-controls") ?? "").split(/\s+/)) {
97
98
  let r = e.ownerDocument.getElementById(n);
@@ -99,13 +100,13 @@ function G(e) {
99
100
  }
100
101
  return t;
101
102
  }
102
- function qe(e, t, n) {
103
- let r = L(n);
104
- r.current = n, F(() => {
103
+ function Ye(e, t, n) {
104
+ let r = R(n);
105
+ r.current = n, I(() => {
105
106
  if (!e || typeof document > "u") return;
106
107
  let n = document.activeElement, i = document.body.style.overflow;
107
108
  document.body.style.overflow = "hidden";
108
- let a, o = !0, s = (e, t) => t instanceof Node && G(e).some((e) => e.contains(t)), c = (e) => Array.from(e.querySelectorAll(Ke)).filter((e) => (e.tabIndex >= 0 || W.has(e.getAttribute("contenteditable")?.toLowerCase() ?? "false") && !e.hasAttribute("tabindex") && !e.parentElement?.isContentEditable) && !e.matches(":disabled") && !e.closest("[inert], [hidden]") && !["hidden", "collapse"].includes(getComputedStyle(e).visibility) && (e.offsetParent !== null || e === document.activeElement)), l = (e, t) => {
109
+ let a, o = !0, s = (e, t) => t instanceof Node && Je(e).some((e) => e.contains(t)), c = (e) => Array.from(e.querySelectorAll(W)).filter((e) => (e.tabIndex >= 0 || qe.has(e.getAttribute("contenteditable")?.toLowerCase() ?? "false") && !e.hasAttribute("tabindex") && !e.parentElement?.isContentEditable) && !e.matches(":disabled") && !e.closest("[inert], [hidden]") && !["hidden", "collapse"].includes(getComputedStyle(e).visibility) && (e.offsetParent !== null || e === document.activeElement)), l = (e, t) => {
109
110
  let n = e?.closest("[role=\"dialog\"], [role=\"alertdialog\"], [aria-modal=\"true\"]");
110
111
  return !!n && n !== t;
111
112
  }, u = (e) => {
@@ -141,10 +142,11 @@ function qe(e, t, n) {
141
142
  }
142
143
  //#endregion
143
144
  //#region src/components/features/table/table.strings.ts
144
- var Je = (e) => {
145
+ var G = (e) => {
145
146
  let t = e.replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
146
147
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : "Column";
147
148
  }, K = {
149
+ loading: { label: "Loading records" },
148
150
  emptyState: {
149
151
  message: "No results found.",
150
152
  ariaLabel: "Empty state"
@@ -161,7 +163,7 @@ var Je = (e) => {
161
163
  columnVisibility: {
162
164
  title: "Toggle columns",
163
165
  triggerLabel: "Columns",
164
- formatLabel: (e, t) => t && t.trim().length > 0 ? t : Je(e)
166
+ formatLabel: (e, t) => t && t.trim().length > 0 ? t : G(e)
165
167
  },
166
168
  toolbar: {
167
169
  scrollLeft: "Scroll left",
@@ -201,7 +203,8 @@ var Je = (e) => {
201
203
  }, q = (e, t) => ({
202
204
  ...e,
203
205
  ...t
204
- }), Ye = (e) => e ? {
206
+ }), Xe = (e) => e ? {
207
+ loading: q(K.loading, e.loading),
205
208
  emptyState: q(K.emptyState, e.emptyState),
206
209
  actions: {
207
210
  ...q(K.actions, e.actions),
@@ -216,7 +219,7 @@ var Je = (e) => {
216
219
  } : K;
217
220
  //#endregion
218
221
  //#region src/components/features/table/pagination.tsx
219
- function Xe(e, t) {
222
+ function Ze(e, t) {
220
223
  if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
221
224
  let n = [1];
222
225
  e > 3 && n.push("ellipsis");
@@ -224,11 +227,11 @@ function Xe(e, t) {
224
227
  for (let e = r; e <= i; e++) n.push(e);
225
228
  return e < t - 2 && n.push("ellipsis"), n.push(t), n;
226
229
  }
227
- function Ze(e, t, n) {
230
+ function Qe(e, t, n) {
228
231
  let r = new URLSearchParams();
229
232
  return r.set(n, String(t)), `${e}?${r.toString()}`;
230
233
  }
231
- function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
234
+ function $e({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
232
235
  let a = {
233
236
  ...K.pagination,
234
237
  ...r
@@ -236,26 +239,26 @@ function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
236
239
  navigationLabel: a.ariaLabel,
237
240
  previous: a.previous,
238
241
  next: a.next,
239
- previousLabel: a.previousLabel ?? ge.previousLabel,
240
- nextLabel: a.nextLabel ?? ge.nextLabel,
241
- morePages: a.morePages ?? ge.morePages
242
- }, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = P((n, r) => {
242
+ previousLabel: a.previousLabel ?? he.previousLabel,
243
+ nextLabel: a.nextLabel ?? he.nextLabel,
244
+ morePages: a.morePages ?? he.morePages
245
+ }, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = F((n, r) => {
243
246
  r && t?.(n, r, e.path || "");
244
- }, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, p = Xe(e.current_page, e.last_page);
245
- return /* @__PURE__ */ B("div", {
247
+ }, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, p = Ze(e.current_page, e.last_page);
248
+ return /* @__PURE__ */ V("div", {
246
249
  className: n("pagination--component", "flex flex-col items-start gap-space-md px-surface py-row-y-lg sm:flex-row sm:items-center sm:justify-between sm:gap-0"),
247
- children: [/* @__PURE__ */ B(g, {
250
+ children: [/* @__PURE__ */ V(_, {
248
251
  size: "xs",
249
252
  className: "tabular-nums tracking-tight",
250
253
  children: [
251
- /* @__PURE__ */ z(E, {
254
+ /* @__PURE__ */ B(O, {
252
255
  value: c,
253
256
  size: "xs",
254
257
  weight: "medium",
255
258
  align: "left"
256
259
  }),
257
260
  "–",
258
- /* @__PURE__ */ z(E, {
261
+ /* @__PURE__ */ B(O, {
259
262
  value: l,
260
263
  size: "xs",
261
264
  weight: "medium",
@@ -264,7 +267,7 @@ function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
264
267
  " ",
265
268
  a.of,
266
269
  " ",
267
- /* @__PURE__ */ z(E, {
270
+ /* @__PURE__ */ B(O, {
268
271
  value: e.total,
269
272
  size: "xs",
270
273
  weight: "medium",
@@ -273,13 +276,13 @@ function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
273
276
  " ",
274
277
  a.entries
275
278
  ]
276
- }), /* @__PURE__ */ z(xe, {
279
+ }), /* @__PURE__ */ B(be, {
277
280
  strings: o,
278
281
  className: "mx-0 w-full justify-start sm:w-auto sm:justify-center",
279
- children: /* @__PURE__ */ B(Se, {
282
+ children: /* @__PURE__ */ V(xe, {
280
283
  className: "gap-0 sm:gap-space-2xs",
281
284
  children: [
282
- /* @__PURE__ */ z(be, { children: /* @__PURE__ */ z(ye, {
285
+ /* @__PURE__ */ B(ye, { children: /* @__PURE__ */ B(ve, {
283
286
  size: "sm",
284
287
  text: a.previous,
285
288
  href: "#",
@@ -291,18 +294,18 @@ function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
291
294
  }) }),
292
295
  p.map((t, n) => {
293
296
  let r = t === "ellipsis", i = r ? `ellipsis-${e.current_page}-${n}` : `page-${t}`;
294
- return /* @__PURE__ */ z(be, { children: r ? /* @__PURE__ */ z(ve, { size: "sm" }) : /* @__PURE__ */ z(_e, {
297
+ return /* @__PURE__ */ B(ye, { children: r ? /* @__PURE__ */ B(_e, { size: "sm" }) : /* @__PURE__ */ B(ge, {
295
298
  size: "sm",
296
299
  href: "#",
297
300
  active: t === e.current_page,
298
301
  onClick: (n) => {
299
- n.preventDefault(), u(t, Ze(e.path, t, s));
302
+ n.preventDefault(), u(t, Qe(e.path, t, s));
300
303
  },
301
304
  className: "size-action-sm text-pxs",
302
305
  children: t
303
306
  }) }, i);
304
307
  }),
305
- /* @__PURE__ */ z(be, { children: /* @__PURE__ */ z(he, {
308
+ /* @__PURE__ */ B(ye, { children: /* @__PURE__ */ B(me, {
306
309
  size: "sm",
307
310
  text: a.next,
308
311
  href: "#",
@@ -317,14 +320,14 @@ function Qe({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
317
320
  })]
318
321
  });
319
322
  }
320
- Qe.displayName = "Pagination";
323
+ $e.displayName = "Pagination";
321
324
  //#endregion
322
325
  //#region src/components/features/table/table-actions.tsx
323
- function $e(e) {
324
- let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, c = s ?? K, l = i ?? c.actions.menuLabel ?? c.actions.triggerLabel, f = I(() => {
326
+ function et(e) {
327
+ let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, c = s ?? K, l = i ?? c.actions.menuLabel ?? c.actions.triggerLabel, f = L(() => {
325
328
  let e = typeof r == "function" ? r(t) : r;
326
329
  return Array.isArray(e) ? e : [];
327
- }, [r, t]), p = I(() => {
330
+ }, [r, t]), p = L(() => {
328
331
  let e = (e) => typeof e == "function" ? e(t) : e;
329
332
  return f.flatMap((t) => {
330
333
  let n = e(t.visible) ?? !0;
@@ -334,8 +337,8 @@ function $e(e) {
334
337
  disabled: e(t.disabled) ?? !1
335
338
  }] : [];
336
339
  });
337
- }, [f, t]), m = p.length > 0, [h, g] = R(!1), _ = p.filter((e) => e.tone !== "destructive"), v = p.filter((e) => e.tone === "destructive"), y = [..._, ...v];
338
- if (F(() => {
340
+ }, [f, t]), m = p.length > 0, [h, g] = z(!1), _ = p.filter((e) => e.tone !== "destructive"), v = p.filter((e) => e.tone === "destructive"), y = [..._, ...v];
341
+ if (I(() => {
339
342
  if (a !== "auto" || !m) {
340
343
  g(!1);
341
344
  return;
@@ -362,43 +365,46 @@ function $e(e) {
362
365
  buttonStyle: e.buttonStyle,
363
366
  onClick: () => e.onClick?.(t)
364
367
  }));
365
- return b === "inline" ? /* @__PURE__ */ z(d, {
368
+ return b === "inline" ? /* @__PURE__ */ B(d, {
366
369
  actions: x,
367
370
  className: n("table-actions--component")
368
- }) : /* @__PURE__ */ z(u, {
371
+ }) : /* @__PURE__ */ B(u, {
369
372
  actions: x,
370
373
  srText: l || c.actions.srLabel,
371
374
  closeOnSelect: !0,
372
375
  align: "end"
373
376
  });
374
377
  }
375
- $e.displayName = "DataTableActions";
378
+ et.displayName = "DataTableActions";
376
379
  //#endregion
377
380
  //#region src/components/features/table/table-helpers.tsx
378
- var et = (e, t, n) => {
381
+ function J(e) {
382
+ return e.options.meta?.themeliaDataTable;
383
+ }
384
+ var tt = (e, t, n) => {
379
385
  typeof e == "function" ? t((t) => {
380
386
  let r = e(t);
381
387
  return n && n(r), r;
382
388
  }) : (t(e), n && n(e));
383
- }, tt = (e, t, n) => {
389
+ }, nt = (e, t, n) => {
384
390
  typeof e == "function" ? t((t) => {
385
391
  let r = e(t);
386
392
  return n && n(r), r;
387
393
  }) : (t(e), n && n(e));
388
- }, nt = (e, t, n) => {
394
+ }, rt = (e, t, n) => {
389
395
  typeof e == "function" ? t((t) => {
390
396
  let r = e(t);
391
397
  return n && n(r), r;
392
398
  }) : (t(e), n && n(e));
393
- }, rt = (e, t, n, r) => {
399
+ }, it = (e, t, n, r) => {
394
400
  let i = "";
395
401
  return r && (i += "bg-muted "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
396
- }, it = (e, t, n, r, i) => {
402
+ }, at = (e, t, n, r, i) => {
397
403
  let a = "";
398
404
  return typeof n == "string" ? a = n : n && (a = n(e, t)), r && i ? `${a} sticky start-0 z-10 bg-card shadow-[1px_0_0_0_var(--border)] rtl:shadow-[-1px_0_0_0_var(--border)]` : a;
399
- }, at = (e) => e.getSelectedRowModel().rows.map((e) => e.original), J = (e, t = K) => /* @__PURE__ */ z("div", {
405
+ }, ot = (e) => e.getSelectedRowModel().rows.map((e) => e.original), st = (e, t = K) => /* @__PURE__ */ B("div", {
400
406
  className: "flex items-center px-space-sm",
401
- children: /* @__PURE__ */ z(pe, {
407
+ children: /* @__PURE__ */ B(fe, {
402
408
  className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
403
409
  checked: e.getIsSelected(),
404
410
  disabled: !e.getCanSelect(),
@@ -406,100 +412,122 @@ var et = (e, t, n) => {
406
412
  onClick: (e) => e.stopPropagation(),
407
413
  "aria-label": t.selection.row(e.index)
408
414
  })
409
- }), Y = (e, t = K) => /* @__PURE__ */ z("div", {
415
+ }), Y = (e, t = K) => /* @__PURE__ */ B("div", {
410
416
  className: "flex items-center px-space-sm",
411
- children: /* @__PURE__ */ z(pe, {
417
+ children: /* @__PURE__ */ B(fe, {
412
418
  className: "size-icon cursor-pointer",
413
419
  checked: e.getIsAllPageRowsSelected(),
414
420
  indeterminate: e.getIsSomePageRowsSelected() && !e.getIsAllPageRowsSelected(),
415
421
  onCheckedChange: (t) => e.toggleAllPageRowsSelected(t === !0),
416
422
  "aria-label": t.selection.selectAll
417
423
  })
418
- }), ot = (e, t = K) => [{
424
+ });
425
+ function ct({ table: e }) {
426
+ return Y(e, J(e)?.strings);
427
+ }
428
+ function X({ table: e, row: t }) {
429
+ return st(t, J(e)?.strings);
430
+ }
431
+ var lt = (e, t) => [{
419
432
  id: "selection",
420
- header: ({ table: e }) => Y(e, t),
421
- cell: ({ row: e }) => J(e, t),
433
+ header: t ? ({ table: e }) => Y(e, t) : ct,
434
+ cell: t ? ({ row: e }) => st(e, t) : X,
422
435
  enableSorting: !1,
423
436
  enableResizing: !1,
424
437
  enableHiding: !1,
425
438
  size: 40
426
- }, ...e], st = [
439
+ }, ...e], Z = [
427
440
  "button, a[href], input, select, textarea, summary, label, [tabindex]",
428
441
  "[role=\"button\"], [role=\"link\"], [role=\"checkbox\"], [role=\"switch\"], [role=\"radio\"]",
429
442
  "[role=\"menuitem\"], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"], [role=\"tab\"]",
430
443
  "[role=\"combobox\"], [role=\"textbox\"], [role=\"slider\"], [role=\"spinbutton\"]",
431
444
  "[contenteditable]:not([contenteditable=\"false\"])"
432
445
  ].join(",");
433
- function ct({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i, cellClassName: a = "", rowClassName: o = "", stickyFirstColumn: c = !1, striped: l = !1, strings: u }) {
434
- let d = e.getRowModel().rows, p = r ?? u?.emptyState.message ?? K.emptyState.message;
435
- return d.length ? /* @__PURE__ */ z(j, { children: d.map((e, r) => {
436
- let i = e.getIsSelected(), u = e.getVisibleCells(), d = rt(e, r, o, i), p = l && r % 2 != 0 ? f.tableStripe : "", m = t ? "cursor-pointer" : "", h = n(d, p, "transition-colors duration-150", `${f.tableRowHover} ${f.tableRowSelected}`, m, t && `focus-visible:outline-none ${s.inset}`, "border-b border-border/60 last:border-b-0");
437
- return /* @__PURE__ */ z(k, {
438
- "data-state": i ? "selected" : null,
446
+ function ut({ loading: e = !1, loadingRows: t = 6, table: r, onRowClick: i, emptyStateMessage: a, emptyStateAction: o, cellClassName: c = "", rowClassName: l = "", stickyFirstColumn: u = !1, striped: d = !1, strings: m }) {
447
+ let h = r.getRowModel().rows, g = a ?? m?.emptyState.message ?? K.emptyState.message;
448
+ if (e) {
449
+ let e = Number.isFinite(t) ? Math.max(1, Math.min(20, Math.floor(t))) : 6, n = r.getVisibleLeafColumns();
450
+ return /* @__PURE__ */ B(M, {
451
+ className: "table-body--component",
452
+ "data-loading": "true",
453
+ children: Array.from({ length: e }, (e, t) => /* @__PURE__ */ B(j, {
454
+ "aria-hidden": "true",
455
+ className: "hover:bg-transparent",
456
+ children: n.map((e, t) => /* @__PURE__ */ B(Se, {
457
+ className: at(e.id, null, c, u, t === 0),
458
+ children: /* @__PURE__ */ B(f, { className: "h-4 w-full" })
459
+ }, e.id))
460
+ }, t))
461
+ });
462
+ }
463
+ return h.length ? /* @__PURE__ */ B(M, { children: h.map((e, t) => {
464
+ let r = e.getIsSelected(), a = e.getVisibleCells(), o = it(e, t, l, r), f = d && t % 2 != 0 ? p.tableStripe : "", m = i ? "cursor-pointer" : "", h = n(o, f, "transition-colors duration-150", `${p.tableRowHover} ${p.tableRowSelected}`, m, i && `focus-visible:outline-none ${s.inset}`, "border-b border-border/60 last:border-b-0");
465
+ return /* @__PURE__ */ B(j, {
466
+ "data-state": r ? "selected" : null,
439
467
  className: h,
440
- tabIndex: t ? 0 : void 0,
441
- onClick: t ? (n) => {
442
- if (n.defaultPrevented) return;
443
- let r = n.target, i = r instanceof Element ? r.closest(st) : null;
444
- i && i !== n.currentTarget || r instanceof Node && n.currentTarget.contains(r) && t(e.original);
468
+ tabIndex: i ? 0 : void 0,
469
+ onClick: i ? (t) => {
470
+ if (t.defaultPrevented) return;
471
+ let n = t.target, r = n instanceof Element ? n.closest(Z) : null;
472
+ r && r !== t.currentTarget || n instanceof Node && t.currentTarget.contains(n) && i(e.original);
445
473
  } : void 0,
446
- onKeyDown: t ? (n) => {
447
- n.defaultPrevented || n.target !== n.currentTarget || n.key !== "Enter" && n.key !== " " || (n.preventDefault(), n.repeat || t(e.original));
474
+ onKeyDown: i ? (t) => {
475
+ t.defaultPrevented || t.target !== t.currentTarget || t.key !== "Enter" && t.key !== " " || (t.preventDefault(), t.repeat || i(e.original));
448
476
  } : void 0,
449
- children: u.map((t, r) => /* @__PURE__ */ z(A, {
450
- className: n(it(t.column.id, e, a, c, r === 0), t.column.columnDef.meta?.align === "end" && "text-right tabular-nums", t.column.columnDef.meta?.align === "center" && "text-center"),
451
- children: H(t.column.columnDef.cell, t.getContext())
477
+ children: a.map((t, r) => /* @__PURE__ */ B(Se, {
478
+ className: n(at(t.column.id, e, c, u, r === 0), t.column.columnDef.meta?.align === "end" && "text-right tabular-nums", t.column.columnDef.meta?.align === "center" && "text-center"),
479
+ children: Be(t.column.columnDef.cell, t.getContext())
452
480
  }, t.id))
453
481
  }, e.id);
454
- }) }) : /* @__PURE__ */ z(j, {
482
+ }) }) : /* @__PURE__ */ B(M, {
455
483
  className: "table-body--component",
456
- children: /* @__PURE__ */ z(k, {
484
+ children: /* @__PURE__ */ B(j, {
457
485
  className: "hover:bg-transparent",
458
- children: /* @__PURE__ */ z(A, {
459
- className: "p-0! text-center whitespace-normal",
460
- colSpan: e.getAllColumns().length,
461
- children: /* @__PURE__ */ z(Ee, {
462
- strings: { ariaLabel: u?.emptyState.ariaLabel ?? K.emptyState.ariaLabel },
463
- title: p,
486
+ children: /* @__PURE__ */ B(Se, {
487
+ className: "p-0 text-center whitespace-normal",
488
+ colSpan: r.getAllColumns().length,
489
+ children: /* @__PURE__ */ B(Te, {
490
+ strings: { ariaLabel: m?.emptyState.ariaLabel ?? K.emptyState.ariaLabel },
491
+ title: g,
464
492
  description: !1,
465
- media: /* @__PURE__ */ z(Re, { className: "size-icon" }),
493
+ media: /* @__PURE__ */ B(Re, { className: "size-icon" }),
466
494
  mediaVariant: "icon-soft",
467
- actions: i,
495
+ actions: o,
468
496
  className: "data-table--empty-state w-[100cqw] max-w-full"
469
497
  })
470
498
  })
471
499
  })
472
500
  });
473
501
  }
474
- ct.displayName = "DataTableBody";
502
+ ut.displayName = "DataTableBody";
475
503
  //#endregion
476
504
  //#region src/components/features/table/table-header.tsx
477
- function lt({ table: e, enableResizing: t = !1, stickyHeader: i = !1, headerClassName: o = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: d = !1, strings: p }) {
478
- let m = e.getHeaderGroups(), h = M.useId(), g = e.getState().sorting, _ = i ? n("shadow-[0_1px_0_0_var(--border)]", d ? "bg-background" : "bg-muted") : "", v = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
479
- return /* @__PURE__ */ B(we, {
505
+ function dt({ table: e, enableResizing: t = !1, stickyHeader: i = !1, headerClassName: o = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: d = !1, strings: f }) {
506
+ let m = e.getHeaderGroups(), h = Ee.useId(), g = e.getState().sorting, _ = i ? n("shadow-[0_1px_0_0_var(--border)]", d ? "bg-background" : "bg-muted") : "", v = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
507
+ return /* @__PURE__ */ V(Ce, {
480
508
  className: n(i && "sticky top-0 z-20", o),
481
509
  children: [(() => {
482
510
  if (!u || u.length === 0 || m.length === 0) return null;
483
511
  let e = m[0].headers, t = null, r = 0, i = [];
484
512
  return e.forEach((o, s) => {
485
513
  let c = v(o.id)?.header || "";
486
- c === t ? r++ : (t !== null && r > 0 && i.push(/* @__PURE__ */ z(Ce, {
514
+ c === t ? r++ : (t !== null && r > 0 && i.push(/* @__PURE__ */ B(N, {
487
515
  colSpan: r,
488
516
  className: n("border-r border-border/60 bg-muted/50 text-center text-muted-foreground last:border-r-0", _),
489
- children: /* @__PURE__ */ z(a, { children: t || "" })
490
- }, `group-${t}-${i.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && i.push(/* @__PURE__ */ z(Ce, {
517
+ children: /* @__PURE__ */ B(a, { children: t || "" })
518
+ }, `group-${t}-${i.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && i.push(/* @__PURE__ */ B(N, {
491
519
  colSpan: r,
492
520
  className: n("whitespace-nowrap border-r border-border/60 bg-muted/50 text-center text-muted-foreground last:border-r-0", _),
493
- children: /* @__PURE__ */ z(a, { children: t || "" })
521
+ children: /* @__PURE__ */ B(a, { children: t || "" })
494
522
  }, `group-${t}-${i.length}`));
495
- }), /* @__PURE__ */ z(k, {
523
+ }), /* @__PURE__ */ B(j, {
496
524
  className: n("table-header--component", "border-b border-border"),
497
525
  children: i
498
526
  });
499
- })(), m.map((a) => /* @__PURE__ */ z(k, {
500
- className: n("border-b border-border/60", d ? "bg-transparent hover:bg-transparent" : `${f.tableHead} ${f.tableRowHover}`),
527
+ })(), m.map((a) => /* @__PURE__ */ B(j, {
528
+ className: n("border-b border-border/60", d ? "bg-transparent hover:bg-transparent" : `${p.tableHead} ${p.tableRowHover}`),
501
529
  children: a.headers.map((a, o) => {
502
- let u = n(it(a.id, null, c, l, o === 0), "text-muted-foreground font-medium whitespace-nowrap", a.column.columnDef.meta?.align === "end" && "text-right", a.column.columnDef.meta?.align === "center" && "text-center", _, i && l && o === 0 && "z-30", !i && "bg-transparent", t && !(l && o === 0) && "relative"), d = t || a.column.columnDef.size !== void 0 ? { width: a.getSize() } : void 0, f = `${h}-${encodeURIComponent(a.id)}`, m = a.getResizeHandler(), v = a.getLeafHeaders().filter((e) => e.subHeaders.length === 0), y = v.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), b = Math.min(2 ** 53 - 1, v.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), x = (t) => {
530
+ let u = n(at(a.id, null, c, l, o === 0), "text-muted-foreground font-medium whitespace-nowrap", a.column.columnDef.meta?.align === "end" && "text-right", a.column.columnDef.meta?.align === "center" && "text-center", _, i && l && o === 0 && "z-30", !i && "bg-transparent", t && !(l && o === 0) && "relative"), d = t || a.column.columnDef.size !== void 0 ? { width: a.getSize() } : void 0, p = `${h}-${encodeURIComponent(a.id)}`, m = a.getResizeHandler(), v = a.getLeafHeaders().filter((e) => e.subHeaders.length === 0), y = v.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), b = Math.min(2 ** 53 - 1, v.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), x = (t) => {
503
531
  e.setOptions((e) => ({
504
532
  ...e,
505
533
  columnResizeDirection: getComputedStyle(t.currentTarget).direction === "rtl" ? "rtl" : "ltr"
@@ -508,45 +536,45 @@ function lt({ table: e, enableResizing: t = !1, stickyHeader: i = !1, headerClas
508
536
  let e = a.column.columnDef.header;
509
537
  return typeof e == "string" ? e : typeof a.id == "string" ? a.id : "column";
510
538
  })();
511
- return /* @__PURE__ */ z(Ce, {
539
+ return /* @__PURE__ */ B(N, {
512
540
  colSpan: a.colSpan,
513
541
  className: u,
514
542
  style: d,
515
543
  "aria-sort": !a.isPlaceholder && a.subHeaders.length === 0 && a.column.getIsSorted() && a.column.getSortIndex() === 0 ? a.column.getIsSorted() === "asc" ? "ascending" : "descending" : void 0,
516
- children: a.isPlaceholder ? null : /* @__PURE__ */ B("div", {
544
+ children: a.isPlaceholder ? null : /* @__PURE__ */ V("div", {
517
545
  className: n(t && a.column.getCanResize() && "pe-action-sm"),
518
546
  children: [(() => {
519
- let e = a.column.getCanSort(), t = a.column.getIsSorted(), i = H(a.column.columnDef.header, a.getContext()), o = t === "asc" ? je : t === "desc" ? Ae : Pe;
520
- return e ? /* @__PURE__ */ B(r, {
547
+ let e = a.column.getCanSort(), t = a.column.getIsSorted(), i = Be(a.column.columnDef.header, a.getContext()), o = t === "asc" ? je : t === "desc" ? Ae : Pe;
548
+ return e ? /* @__PURE__ */ V(r, {
521
549
  type: "button",
522
550
  tone: "secondary",
523
551
  buttonStyle: "ghost",
524
552
  size: "sm",
525
553
  onClick: a.column.getToggleSortingHandler(),
526
554
  className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-radius px-space-sm", "text-muted-foreground hover:text-foreground transition-colors", `focus-visible:outline-none ${s.edge}`),
527
- "aria-label": (p?.accessibility.sortColumn ?? K.accessibility.sortColumn)(C),
528
- "aria-describedby": t && g.length > 1 ? f : void 0,
555
+ "aria-label": (f?.accessibility.sortColumn ?? K.accessibility.sortColumn)(C),
556
+ "aria-describedby": t && g.length > 1 ? p : void 0,
529
557
  children: [
530
558
  i,
531
- t && g.length > 1 && /* @__PURE__ */ z("span", {
532
- id: f,
559
+ t && g.length > 1 && /* @__PURE__ */ B("span", {
560
+ id: p,
533
561
  className: "sr-only",
534
- children: (p?.accessibility.sortPriority ?? K.accessibility.sortPriority)(t, a.column.getSortIndex() + 1, g.length)
562
+ children: (f?.accessibility.sortPriority ?? K.accessibility.sortPriority)(t, a.column.getSortIndex() + 1, g.length)
535
563
  }),
536
- /* @__PURE__ */ z(o, {
564
+ /* @__PURE__ */ B(o, {
537
565
  className: n("size-icon-sm shrink-0 transition-opacity", t ? "text-foreground opacity-100" : "opacity-30 group-hover:opacity-70"),
538
566
  "aria-hidden": "true"
539
567
  })
540
568
  ]
541
- }) : /* @__PURE__ */ z("div", {
569
+ }) : /* @__PURE__ */ B("div", {
542
570
  className: n("flex items-center", a.column.columnDef.meta?.align === "end" && "justify-end", a.column.columnDef.meta?.align === "center" && "justify-center"),
543
571
  children: i
544
572
  });
545
- })(), !!t && a.column.getCanResize() && /* @__PURE__ */ z("div", {
573
+ })(), !!t && a.column.getCanResize() && /* @__PURE__ */ B("div", {
546
574
  role: "separator",
547
575
  tabIndex: 0,
548
576
  className: n("absolute inset-y-0 end-0 w-action-sm cursor-col-resize select-none touch-none bg-transparent after:absolute after:inset-y-0 after:end-0 after:w-px after:bg-muted-foreground opacity-0 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:after:w-1 focus-visible:after:bg-ring", S && "after:bg-primary-accent!"),
549
- "aria-label": (p?.accessibility.resizeColumn ?? K.accessibility.resizeColumn)(C),
577
+ "aria-label": (f?.accessibility.resizeColumn ?? K.accessibility.resizeColumn)(C),
550
578
  "aria-orientation": "vertical",
551
579
  "aria-valuenow": a.getSize(),
552
580
  "aria-valuemin": y,
@@ -573,10 +601,10 @@ function lt({ table: e, enableResizing: t = !1, stickyHeader: i = !1, headerClas
573
601
  }, a.id))]
574
602
  });
575
603
  }
576
- lt.displayName = "DataTableHeader";
604
+ dt.displayName = "DataTableHeader";
577
605
  //#endregion
578
606
  //#region src/components/features/table/column-visibility-toggle.tsx
579
- function X({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = K }) {
607
+ function Q({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = K }) {
580
608
  let o = e.getAllColumns().filter((e) => e.getCanHide());
581
609
  if (o.length === 0) return null;
582
610
  let s = i !== "hidden", c = o.map((e) => {
@@ -591,7 +619,7 @@ function X({ table: e, className: t, align: r = "end", labelVisibility: i = "hid
591
619
  className: "capitalize"
592
620
  };
593
621
  });
594
- return /* @__PURE__ */ z(u, {
622
+ return /* @__PURE__ */ B(u, {
595
623
  actions: c,
596
624
  icon: ze,
597
625
  label: a.columnVisibility.triggerLabel,
@@ -610,13 +638,13 @@ function X({ table: e, className: t, align: r = "end", labelVisibility: i = "hid
610
638
  preserveOrder: !0
611
639
  });
612
640
  }
613
- X.displayName = "ColumnVisibilityToggle";
641
+ Q.displayName = "ColumnVisibilityToggle";
614
642
  //#endregion
615
643
  //#region src/components/features/table/partials/fullscreen-toggle.tsx
616
- var ut = "text-muted-foreground hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
617
- function dt({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
644
+ var ft = "text-muted-foreground hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
645
+ function pt({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
618
646
  let s = e ? a : i, c = e ? Le : Ie;
619
- return /* @__PURE__ */ z(r, {
647
+ return /* @__PURE__ */ B(r, {
620
648
  type: "button",
621
649
  tone: "secondary",
622
650
  buttonStyle: "ghost",
@@ -625,34 +653,34 @@ function dt({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full
625
653
  "aria-label": s,
626
654
  "aria-pressed": e,
627
655
  onClick: () => t(!e),
628
- className: n("fullscreen-toggle--component", ut, o),
629
- children: /* @__PURE__ */ z(c, { className: "size-icon-sm" })
656
+ className: n("fullscreen-toggle--component", ft, o),
657
+ children: /* @__PURE__ */ B(c, { className: "size-icon-sm" })
630
658
  });
631
659
  }
632
- dt.displayName = "FullscreenToggle";
660
+ pt.displayName = "FullscreenToggle";
633
661
  //#endregion
634
662
  //#region src/components/features/table/table-toolbar.tsx
635
- var ft = 300, pt = "text-muted-foreground transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
636
- function mt({ label: e, onClick: t, disabled: i, className: a, children: o }) {
637
- return /* @__PURE__ */ z(r, {
663
+ var mt = 300, ht = "text-muted-foreground transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
664
+ function gt({ label: e, onClick: t, disabled: i, className: a, children: o }) {
665
+ return /* @__PURE__ */ B(r, {
638
666
  type: "button",
639
667
  tone: "secondary",
640
668
  buttonStyle: "ghost",
641
669
  size: "sm",
642
670
  iconOnly: !0,
643
671
  "aria-label": e,
644
- className: n("table-toolbar--component", pt, O.joinedItem, a),
672
+ className: n("table-toolbar--component", ht, A.joinedItem, a),
645
673
  onClick: t,
646
674
  disabled: i,
647
675
  children: o
648
676
  });
649
677
  }
650
- function ht(e) {
678
+ function _t(e) {
651
679
  return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
652
680
  }
653
- function gt({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = K }) {
654
- let { defaultScale: d } = t(), f = e(void 0, d), [p, m] = R(!1), [h, g] = R(!1), _ = L(0), v = L(null), y = P(() => {
655
- let e = ht(i.current);
681
+ function vt({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = K }) {
682
+ let { defaultScale: d } = t(), f = e(void 0, d), [p, m] = z(!1), [h, g] = z(!1), _ = R(0), v = R(null), y = F(() => {
683
+ let e = _t(i.current);
656
684
  if (!e) {
657
685
  m(!1), g(!1);
658
686
  return;
@@ -660,9 +688,9 @@ function gt({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
660
688
  let { scrollLeft: t, scrollWidth: n, clientWidth: r } = e;
661
689
  m(t > 1), g(t + r < n - 1);
662
690
  }, [i]);
663
- F(() => {
691
+ I(() => {
664
692
  let e = window.setTimeout(() => {
665
- let e = ht(i.current);
693
+ let e = _t(i.current);
666
694
  if (!e || (y(), typeof ResizeObserver > "u")) return;
667
695
  let t = () => {
668
696
  cancelAnimationFrame(_.current), _.current = requestAnimationFrame(y);
@@ -681,82 +709,94 @@ function gt({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
681
709
  y,
682
710
  a
683
711
  ]);
684
- let b = P(() => {
685
- ht(i.current)?.scrollBy({
712
+ let b = F(() => {
713
+ _t(i.current)?.scrollBy({
686
714
  left: -300,
687
715
  behavior: "smooth"
688
716
  });
689
- }, [i]), x = P(() => {
690
- ht(i.current)?.scrollBy({
691
- left: ft,
717
+ }, [i]), x = F(() => {
718
+ _t(i.current)?.scrollBy({
719
+ left: mt,
692
720
  behavior: "smooth"
693
721
  });
694
722
  }, [i]), S = c ? r.getAllColumns().filter((e) => e.getCanHide()) : [], C = p || h, w = S.length > 0, T = s;
695
- return !C && !w && !T ? null : /* @__PURE__ */ B("div", {
696
- className: n(O.joinedFrame, me[f], "bg-card text-card-foreground"),
723
+ return !C && !w && !T ? null : /* @__PURE__ */ V("div", {
724
+ className: n(A.joinedFrame, pe[f], "bg-card text-card-foreground"),
697
725
  children: [
698
- !!C && /* @__PURE__ */ B(ke, { children: [
699
- /* @__PURE__ */ z(mt, {
726
+ !!C && /* @__PURE__ */ V(ke, { children: [
727
+ /* @__PURE__ */ B(gt, {
700
728
  label: u.toolbar.scrollLeft,
701
729
  onClick: b,
702
730
  disabled: !p,
703
- className: O.firstItem,
704
- children: /* @__PURE__ */ z(V, { className: "size-icon-sm" })
731
+ className: A.firstItem,
732
+ children: /* @__PURE__ */ B(Ne, { className: "size-icon-sm" })
705
733
  }),
706
- /* @__PURE__ */ z(mt, {
734
+ /* @__PURE__ */ B(gt, {
707
735
  label: u.toolbar.scrollRight,
708
736
  onClick: x,
709
737
  disabled: !h,
710
- children: /* @__PURE__ */ z(Ne, { className: "size-icon-sm" })
738
+ children: /* @__PURE__ */ B(H, { className: "size-icon-sm" })
711
739
  }),
712
- (w || T) && /* @__PURE__ */ z("div", { className: "h-4 w-px self-center bg-border" })
740
+ (w || T) && /* @__PURE__ */ B("div", { className: "h-4 w-px self-center bg-border" })
713
741
  ] }),
714
- !!w && /* @__PURE__ */ B(ke, { children: [/* @__PURE__ */ z(X, {
742
+ !!w && /* @__PURE__ */ V(ke, { children: [/* @__PURE__ */ B(Q, {
715
743
  table: r,
716
744
  strings: u,
717
745
  labelVisibility: l,
718
- className: n(O.joinedItem, "border-0 shadow-none", !C && O.firstItem, !T && O.lastItem)
719
- }), T && /* @__PURE__ */ z("div", { className: "h-4 w-px self-center bg-border" })] }),
720
- T && /* @__PURE__ */ z(dt, {
746
+ className: n(A.joinedItem, "border-0 shadow-none", !C && A.firstItem, !T && A.lastItem)
747
+ }), T && /* @__PURE__ */ B("div", { className: "h-4 w-px self-center bg-border" })] }),
748
+ T && /* @__PURE__ */ B(pt, {
721
749
  fullscreen: a,
722
750
  onFullscreenChange: o,
723
751
  enterLabel: u.toolbar.enterFullscreen,
724
752
  exitLabel: u.toolbar.exitFullscreen,
725
- className: n(O.joinedItem, O.lastItem, !C && !w && O.firstItem)
753
+ className: n(A.joinedItem, A.lastItem, !C && !w && A.firstItem)
726
754
  })
727
755
  ]
728
756
  });
729
757
  }
730
- gt.displayName = "DataTableToolbar";
758
+ vt.displayName = "DataTableToolbar";
731
759
  //#endregion
732
760
  //#region src/components/features/table/data-table.tsx
733
- var _t = De("sm");
734
- function vt() {
735
- return Oe(_t);
761
+ var yt = P("sm");
762
+ function bt() {
763
+ return Oe(yt);
736
764
  }
737
- var yt = {
765
+ var xt = {
738
766
  sm: "compact",
739
767
  md: "default",
740
768
  lg: "comfortable"
741
- }, bt = {
769
+ }, St = {
742
770
  sm: "sm",
743
771
  md: "sm",
744
772
  lg: "sm"
745
- }, xt = (e) => {
773
+ }, Ct = (e) => {
746
774
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
747
775
  };
748
- function St(e, t) {
776
+ function wt(e, t) {
749
777
  return e.map((e) => "columns" in e && e.columns ? {
750
778
  ...e,
751
- columns: St(e.columns, t)
779
+ columns: wt(e.columns, t)
752
780
  } : (e.id ?? ("accessorKey" in e && typeof e.accessorKey == "string" ? e.accessorKey.replace(/\./g, "_") : void 0) ?? (typeof e.header == "string" ? e.header : void 0)) === t && e.filterFn === void 0 ? {
753
781
  ...e,
754
782
  filterFn: "includesString"
755
783
  } : e);
756
784
  }
757
- function Ct({ size: r, surface: i = "card", headerTransparent: a = !0, columns: o, data: c, columnGroups: l, rowActions: u, rowActionsMenuLabel: d, rowActionsDisplayMode: f, rowActionsBreakpoint: p, enableSorting: m = !1, enableResizing: h = !1, enableFiltering: g = !1, filterColumn: _, filterPlaceholder: v, manualSorting: y = !1, enableColumnVisibility: b = !1, fullscreen: x, defaultFullscreen: S = !1, onFullscreenChange: C, showFullscreenToggle: w = !1, enableRowSelection: T = !1, enableMultiRowSelection: ee = !0, enableSubRowSelection: te = !1, pagination: E, pageQueryKey: ne, onPageChange: re, onSortingChange: ie, onColumnFiltersChange: ae, onRowClick: oe, onRowSelectionChange: se, stickyHeader: ce = !1, stickyToolbar: le = !1, stickyFirstColumn: D = !1, maxBodyHeight: pe, fillAvailableHeight: O = !1, emptyStateMessage: me, emptyStateAction: he, className: ge = "", rowClassName: _e = "", cellClassName: ve = "", headerClassName: ye = "", wrapperClassName: be = "", innerClassName: xe = "", tableContainerClassName: Se = "", getRowId: k, rowSelection: A, sorting: j, defaultSorting: Ce, columnVisibility: we, defaultColumnVisibility: Ee, initialState: M, onColumnVisibilityChange: De, strings: N, topbarContent: Oe, topbarEnd: F, topbarClassName: Ae, toolbarLabelVisibility: je = "hidden", footerContent: Me, selectionToolbar: V, bulkActions: Ne, selectionToolbarClassName: Pe, selectionToolbarPlacement: Fe = "floating", totalRowCount: Ie, storageKey: Le }) {
758
- let { defaultScale: Re } = t(), ze = e(r, Re), H = I(() => Ye(N), [N]), We = n("bg-card text-card-foreground", _e), U = me ?? H.emptyState.message, Ge = ne ?? "page", W = xt(pe), Ke = Array.isArray(o) && o.length === 2 && Array.isArray(o[1]) ? o[0] : o, G = I(() => Le ? `dt.${Le}.columns` : null, [Le]), Je = I(() => {
759
- let e = Ee ?? M?.columnVisibility ?? {};
785
+ function Tt({ table: e }) {
786
+ return J(e)?.strings.actions.triggerLabel ?? K.actions.triggerLabel;
787
+ }
788
+ function Et({ table: e, row: t }) {
789
+ return J(e)?.renderActions?.(t.original) ?? null;
790
+ }
791
+ function Dt(e) {
792
+ let t = e.length === 2 && Array.isArray(e[0]) && Array.isArray(e[1]) ? e : void 0, [n, r] = z(t);
793
+ if (!t) return n && r(void 0), e;
794
+ let i = t[1];
795
+ return n && i.length === n[1].length && i.every((e, t) => Object.is(e, n[1][t])) ? n[0] : (r(t), t[0]);
796
+ }
797
+ function Ot({ size: r, surface: i = "card", headerTransparent: a = !0, columns: o, data: c, loading: l = !1, loadingRows: u, columnGroups: d, rowActions: f, rowActionsMenuLabel: p, rowActionsDisplayMode: m, rowActionsBreakpoint: h, enableSorting: g = !1, enableResizing: _ = !1, enableFiltering: v = !1, filterColumn: y, filterPlaceholder: b, manualSorting: x = !1, enableColumnVisibility: S = !1, fullscreen: C, defaultFullscreen: w = !1, onFullscreenChange: T, showFullscreenToggle: ee = !1, enableRowSelection: E = !1, enableMultiRowSelection: D = !0, enableSubRowSelection: O = !1, pagination: k, pageQueryKey: te, onPageChange: ne, onSortingChange: re, onColumnFiltersChange: ie, onRowClick: ae, onRowSelectionChange: oe, stickyHeader: se = !1, stickyToolbar: ce = !1, stickyFirstColumn: fe = !1, maxBodyHeight: A, fillAvailableHeight: pe = !1, emptyStateMessage: me, emptyStateAction: he, className: ge = "", rowClassName: _e = "", cellClassName: ve = "", headerClassName: ye = "", wrapperClassName: be = "", innerClassName: xe = "", tableContainerClassName: j = "", getRowId: Se, rowSelection: M, sorting: N, defaultSorting: Ce, columnVisibility: Te, defaultColumnVisibility: Ee, initialState: P, onColumnVisibilityChange: De, strings: Oe, topbarContent: I, topbarEnd: Ae, topbarClassName: je, toolbarLabelVisibility: Me = "hidden", footerContent: Ne, selectionToolbar: H, bulkActions: Pe, selectionToolbarClassName: Fe, selectionToolbarPlacement: Ie = "floating", totalRowCount: Le, storageKey: Re }) {
798
+ let { defaultScale: ze } = t(), Be = e(r, ze), U = L(() => Xe(Oe), [Oe]), Ge = n("bg-card text-card-foreground", _e), Ke = me ?? U.emptyState.message, qe = te ?? "page", W = Ct(A), Je = Dt(o), G = L(() => Re ? `dt.${Re}.columns` : null, [Re]), q = L(() => {
799
+ let e = Ee ?? P?.columnVisibility ?? {};
760
800
  if (!G || typeof window > "u") return e;
761
801
  try {
762
802
  let t = window.localStorage.getItem(G);
@@ -770,237 +810,244 @@ function Ct({ size: r, surface: i = "card", headerTransparent: a = !0, columns:
770
810
  }, [
771
811
  Ee,
772
812
  G,
773
- M?.columnVisibility
774
- ]), [K, q] = R(Ce ?? M?.sorting ?? []), [Xe, Ze] = R(M?.columnFilters ?? []), [et, tt] = R(Je), [nt, rt] = R(M?.rowSelection || {}), [it, at] = R(S), J = j ?? K, Y = we ?? et, st = A ?? nt, X = x ?? it, ut = L(null), dt = L(null), ft = I(() => ({ get current() {
775
- let e = dt.current;
776
- return e?.isConnected ? e : ut.current?.querySelector("thead [role=\"checkbox\"]") ?? null;
777
- } }), []), pt = P((e) => {
778
- e.target instanceof HTMLElement && (dt.current = e.target);
779
- }, []), mt = P((e) => {
780
- let t = typeof e == "function" ? e(Xe) : e;
781
- Ze(t), ae?.(t);
782
- }, [Xe, ae]), ht = P((e) => {
813
+ P?.columnVisibility
814
+ ]), [Ze, Qe] = z(Ce ?? P?.sorting ?? []), [J, tt] = z(P?.columnFilters ?? []), [nt, rt] = z(q), [it, at] = z(P?.rowSelection || {}), [ot, st] = z(w), Y = N ?? Ze, ct = Te ?? nt, X = M ?? it, Z = C ?? ot, Q = R(null), ft = R(null), pt = L(() => ({ get current() {
815
+ let e = ft.current;
816
+ return e?.isConnected ? e : Q.current?.querySelector("thead [role=\"checkbox\"]") ?? null;
817
+ } }), []), mt = F((e) => {
818
+ e.target instanceof HTMLElement && (ft.current = e.target);
819
+ }, []), ht = F((e) => {
783
820
  let t = typeof e == "function" ? e(J) : e;
784
- j === void 0 && q(t), ie?.(t);
785
- }, [
786
- j,
787
- ie,
788
- J
789
- ]), vt = P((e) => {
821
+ tt(t), ie?.(t);
822
+ }, [J, ie]), gt = F((e) => {
790
823
  let t = typeof e == "function" ? e(Y) : e;
791
- if (we === void 0 && tt(t), G && typeof window < "u") try {
824
+ N === void 0 && Qe(t), re?.(t);
825
+ }, [
826
+ N,
827
+ re,
828
+ Y
829
+ ]), _t = F((e) => {
830
+ let t = typeof e == "function" ? e(ct) : e;
831
+ if (Te === void 0 && rt(t), G && typeof window < "u") try {
792
832
  window.localStorage.setItem(G, JSON.stringify(t));
793
833
  } catch {}
794
834
  De?.(t);
795
835
  }, [
796
- Y,
797
- we,
836
+ ct,
837
+ Te,
798
838
  G,
799
839
  De
800
- ]), Ct = P((e) => {
801
- let t = typeof e == "function" ? e(st) : e;
802
- A === void 0 && rt(t), se?.(t);
840
+ ]), bt = F((e) => {
841
+ let t = typeof e == "function" ? e(X) : e;
842
+ M === void 0 && at(t), oe?.(t);
803
843
  }, [
804
- A,
805
- se,
806
- st
807
- ]), wt = L(null), Z = P((e) => {
808
- x === void 0 && at(e), C?.(e);
809
- }, [x, C]);
810
- qe(X, wt, P(() => Z(!1), [Z]));
811
- let Tt = P((e) => typeof d == "function" ? d(e) : d ?? H.actions.menuLabel, [d, H.actions.menuLabel]), Et = I(() => {
812
- let e = g && _ ? St(Ke, _) : Ke, t = T ? ot(e, H) : e;
813
- if (!u) return t;
844
+ M,
845
+ oe,
846
+ X
847
+ ]), Ot = R(null), kt = F((e) => {
848
+ C === void 0 && st(e), T?.(e);
849
+ }, [C, T]);
850
+ Ye(Z, Ot, F(() => kt(!1), [kt]));
851
+ let At = F((e) => typeof p == "function" ? p(e) : p ?? U.actions.menuLabel, [p, U.actions.menuLabel]), jt = !!f, Mt = L(() => {
852
+ let e = v && y ? wt(Je, y) : Je, t = E ? lt(e) : e;
853
+ if (!jt) return t;
814
854
  let n = {
815
855
  id: "actions",
816
- header: H.actions.triggerLabel,
817
- cell: ({ row: e }) => /* @__PURE__ */ z($e, {
818
- row: e.original,
819
- actions: u,
820
- menuLabel: Tt(e.original),
821
- displayMode: f,
822
- responsiveBreakpoint: p,
823
- strings: H
824
- }),
856
+ header: Tt,
857
+ cell: Et,
825
858
  enableSorting: !1,
826
859
  enableHiding: !1,
827
860
  size: 40
828
861
  };
829
862
  return [...t, n];
830
863
  }, [
831
- Ke,
832
- g,
833
- _,
834
- T,
835
- u,
836
- Tt,
837
- p,
838
- f,
839
- H
840
- ]), Q = Ue({
864
+ Je,
865
+ v,
866
+ y,
867
+ E,
868
+ jt
869
+ ]), $ = We({
841
870
  data: c,
842
- columns: Et,
871
+ columns: Mt,
872
+ meta: { themeliaDataTable: {
873
+ strings: U,
874
+ renderActions: f ? (e) => /* @__PURE__ */ B(et, {
875
+ row: e,
876
+ actions: f,
877
+ menuLabel: At(e),
878
+ displayMode: m,
879
+ responsiveBreakpoint: h,
880
+ strings: U
881
+ }) : void 0
882
+ } },
843
883
  state: {
844
- sorting: J,
845
- columnVisibility: Y,
846
- rowSelection: st,
847
- columnFilters: Xe
884
+ sorting: Y,
885
+ columnVisibility: ct,
886
+ rowSelection: X,
887
+ columnFilters: J
848
888
  },
849
- enableSorting: m,
850
- enableColumnResizing: h,
889
+ enableSorting: g,
890
+ enableColumnResizing: _,
851
891
  columnResizeMode: "onChange",
852
892
  defaultColumn: { size: void 0 },
853
- enableColumnFilters: g,
854
- manualFiltering: !g,
855
- manualSorting: y,
893
+ enableColumnFilters: v,
894
+ manualFiltering: !v,
895
+ manualSorting: x,
856
896
  autoResetPageIndex: !1,
857
- enableRowSelection: T,
858
- enableMultiRowSelection: ee,
859
- enableSubRowSelection: te,
860
- onSortingChange: m ? ht : void 0,
861
- onRowSelectionChange: T ? Ct : void 0,
862
- onColumnVisibilityChange: vt,
863
- onColumnFiltersChange: mt,
864
- getCoreRowModel: Be(),
865
- getFilteredRowModel: Ve(),
866
- getSortedRowModel: He(),
867
- getRowId: k
868
- }), Dt = g && _ ? Q.getAllLeafColumns().find((e) => e.id === _ && e.getCanFilter()) : void 0, Ot = v ?? H.filter.searchPlaceholder, kt = E && E.last_page > 1, At = Q.getSelectedRowModel().rows.map((e) => e.original), $ = At.length, jt = P(() => {
869
- Q.resetRowSelection();
870
- }, [Q]), Mt = Ie ?? E?.total ?? c.length, Nt = {
871
- table: Q,
872
- selectedRows: At,
873
- selectedRowCount: $,
874
- totalRowCount: Mt,
875
- rowSelection: st,
876
- clearSelection: jt
877
- }, Pt = (() => {
878
- if (!T || V === null || V === !1) return null;
879
- if (V !== void 0) return $ === 0 ? null : typeof V == "function" ? V(Nt) : V;
880
- let e = $ === 0 ? null : typeof Ne == "function" ? Ne(Nt) : Ne, t = /* @__PURE__ */ z(ue, {
881
- selectedCount: $,
882
- totalCount: Mt,
883
- onClear: jt,
884
- placement: Fe,
885
- returnFocusRef: ft,
886
- className: n("data-table-selection-toolbar--component", Pe),
897
+ enableRowSelection: E,
898
+ enableMultiRowSelection: D,
899
+ enableSubRowSelection: O,
900
+ onSortingChange: g ? gt : void 0,
901
+ onRowSelectionChange: E ? bt : void 0,
902
+ onColumnVisibilityChange: _t,
903
+ onColumnFiltersChange: ht,
904
+ getCoreRowModel: Ve(),
905
+ getFilteredRowModel: He(),
906
+ getSortedRowModel: Ue(),
907
+ getRowId: Se
908
+ }), Nt = v && y ? $.getAllLeafColumns().find((e) => e.id === y && e.getCanFilter()) : void 0, Pt = b ?? U.filter.searchPlaceholder, Ft = k && k.last_page > 1, It = $.getSelectedRowModel().rows.map((e) => e.original), Lt = Object.values(X).filter(Boolean).length, Rt = F(() => {
909
+ $.resetRowSelection();
910
+ }, [$]), zt = Le ?? k?.total ?? c.length, Bt = {
911
+ table: $,
912
+ selectedRows: It,
913
+ selectedRowCount: Lt,
914
+ totalRowCount: zt,
915
+ rowSelection: X,
916
+ clearSelection: Rt
917
+ }, Vt = (() => {
918
+ if (!E || H === null || H === !1) return null;
919
+ if (H !== void 0) return Lt === 0 ? null : typeof H == "function" ? H(Bt) : H;
920
+ let e = Lt === 0 ? null : typeof Pe == "function" ? Pe(Bt) : Pe, t = /* @__PURE__ */ B(le, {
921
+ selectedCount: Lt,
922
+ totalCount: zt,
923
+ onClear: Rt,
924
+ placement: Ie,
925
+ returnFocusRef: pt,
926
+ className: n("data-table-selection-toolbar--component", Fe),
887
927
  strings: {
888
- summary: (e, t) => H.selection.summary(e, t ?? Mt),
889
- clear: H.selection.clear,
890
- label: H.selection.label
928
+ summary: (e, t) => U.selection.summary(e, t ?? zt),
929
+ clear: U.selection.clear,
930
+ label: U.selection.label
891
931
  },
892
932
  children: e
893
933
  });
894
- return Fe === "inline" ? /* @__PURE__ */ z("div", {
934
+ return Ie === "inline" ? /* @__PURE__ */ B("div", {
895
935
  "data-slot": "data-table-selection-toolbar",
896
936
  className: "data-table--selection-toolbar px-surface py-row-y empty:hidden",
897
937
  children: t
898
938
  }) : t;
899
- })(), Ft = I(() => {
939
+ })(), Ht = L(() => {
900
940
  if (W) return { "--data-table-body-max-height": W };
901
- }, [W]), It = X || O || W !== void 0, Lt = _t.Provider, Rt = bt[ze];
902
- return /* @__PURE__ */ z(Lt, {
903
- value: Rt,
904
- children: /* @__PURE__ */ B("div", {
905
- ref: wt,
906
- role: X ? "dialog" : void 0,
907
- "aria-modal": X ? !0 : void 0,
908
- "aria-label": X ? H.accessibility.fullscreenRegion : void 0,
909
- className: n("data-table--component @container/data-table box-border", X ? "fixed inset-0 z-50 bg-background text-foreground flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", O && "flex h-full min-h-0 flex-col", i === "card" && "overflow-hidden rounded-surface border border-border bg-card text-card-foreground shadow-xs", i === "glass" && "rounded-surface overflow-hidden border border-border/60", be)),
941
+ }, [W]), Ut = Z || pe || W !== void 0, Wt = yt.Provider, Gt = St[Be];
942
+ return /* @__PURE__ */ B(Wt, {
943
+ value: Gt,
944
+ children: /* @__PURE__ */ V("div", {
945
+ ref: Ot,
946
+ role: Z ? "dialog" : void 0,
947
+ "aria-modal": Z ? !0 : void 0,
948
+ "aria-label": Z ? U.accessibility.fullscreenRegion : void 0,
949
+ className: n("data-table--component @container/data-table box-border", Z ? "fixed inset-0 z-50 bg-background text-foreground flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", pe && "flex h-full min-h-0 flex-col", i === "card" && "overflow-hidden rounded-surface border border-border bg-card text-card-foreground shadow-xs", i === "glass" && "rounded-surface overflow-hidden border border-border/60", be)),
910
950
  children: [
911
- !!(Dt || Oe || F || b || w) && /* @__PURE__ */ B("div", {
912
- className: n("relative", le && "sticky top-0 z-20 bg-card text-card-foreground"),
913
- children: [/* @__PURE__ */ B("div", {
914
- className: n("data-table-topbar grid gap-space-lg px-surface py-surface-sm @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-start", X ? "mb-space-lg shrink-0" : "mb-0", Ae),
915
- children: [/* @__PURE__ */ B("div", {
951
+ !!(Nt || I || Ae || S || ee) && /* @__PURE__ */ V("div", {
952
+ className: n("relative", ce && "sticky top-0 z-20 bg-card text-card-foreground"),
953
+ children: [/* @__PURE__ */ V("div", {
954
+ className: n("data-table-topbar grid gap-space-lg px-surface py-surface-sm @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-start", Z ? "mb-space-lg shrink-0" : "mb-0", je),
955
+ children: [/* @__PURE__ */ V("div", {
916
956
  className: "data-table-topbar-left flex min-w-0 flex-col gap-space-md",
917
- children: [Oe, Dt && /* @__PURE__ */ z("div", {
957
+ children: [I, Nt && /* @__PURE__ */ B("div", {
918
958
  className: "min-w-0 max-w-sm",
919
- children: /* @__PURE__ */ z(fe, {
920
- "aria-label": Ot,
921
- placeholder: Ot,
922
- value: Dt.getFilterValue() ?? "",
923
- onChange: (e) => Dt.setFilterValue(e.target.value)
959
+ children: /* @__PURE__ */ B(de, {
960
+ "aria-label": Pt,
961
+ placeholder: Pt,
962
+ value: Nt.getFilterValue() ?? "",
963
+ onChange: (e) => Nt.setFilterValue(e.target.value)
924
964
  })
925
965
  })]
926
- }), /* @__PURE__ */ B("div", {
966
+ }), /* @__PURE__ */ V("div", {
927
967
  className: "data-table-topbar-right flex flex-wrap items-center justify-end gap-space-md",
928
- children: [F, /* @__PURE__ */ z(gt, {
929
- table: Q,
930
- tableAreaRef: ut,
931
- fullscreen: X,
932
- onFullscreenChange: Z,
933
- showFullscreenToggle: w,
934
- enableColumnVisibility: b,
935
- labelVisibility: je,
936
- strings: H
968
+ children: [Ae, /* @__PURE__ */ B(vt, {
969
+ table: $,
970
+ tableAreaRef: Q,
971
+ fullscreen: Z,
972
+ onFullscreenChange: kt,
973
+ showFullscreenToggle: ee,
974
+ enableColumnVisibility: S,
975
+ labelVisibility: Me,
976
+ strings: U
937
977
  })]
938
978
  })]
939
- }), /* @__PURE__ */ z(de, {})]
979
+ }), /* @__PURE__ */ B(ue, {})]
940
980
  }),
941
- Pt,
942
- /* @__PURE__ */ z("div", {
943
- ref: ut,
944
- style: Ft,
945
- onFocus: T ? pt : void 0,
946
- className: n("min-h-0", It ? "overflow-hidden" : xe, (X || O) && "flex-1"),
947
- children: /* @__PURE__ */ B(Te, {
948
- density: yt[ze],
981
+ Vt,
982
+ /* @__PURE__ */ V("div", {
983
+ ref: Q,
984
+ style: Ht,
985
+ onFocus: E ? mt : void 0,
986
+ className: n("min-h-0", Ut ? "overflow-hidden" : xe, (Z || pe) && "flex-1"),
987
+ children: [!!l && /* @__PURE__ */ B("span", {
988
+ role: "status",
989
+ className: "sr-only",
990
+ children: U.loading?.label ?? K.loading.label
991
+ }), /* @__PURE__ */ V(we, {
992
+ "aria-busy": l || void 0,
993
+ density: xt[Be],
949
994
  containerProps: {
950
995
  role: "region",
951
- "aria-label": H.accessibility.scrollRegion
996
+ "aria-label": U.accessibility.scrollRegion
952
997
  },
953
- style: h ? { width: Q.getTotalSize() } : void 0,
954
- className: n("relative", h && "min-w-full table-fixed", ge),
955
- containerClassName: n(`focus-visible:outline-none ${s.edge}`, It && "overflow-auto", W !== void 0 && "max-h-(--data-table-body-max-height)", (X || O) && "h-full min-h-0", Se),
956
- children: [/* @__PURE__ */ z(lt, {
957
- enableResizing: h,
958
- table: Q,
959
- stickyHeader: ce,
998
+ style: _ ? { width: $.getTotalSize() } : void 0,
999
+ className: n("relative", _ && "min-w-full table-fixed", ge),
1000
+ containerClassName: n(`focus-visible:outline-none ${s.edge}`, Ut && "overflow-auto", W !== void 0 && "max-h-(--data-table-body-max-height)", (Z || pe) && "h-full min-h-0", j),
1001
+ children: [/* @__PURE__ */ B(dt, {
1002
+ enableResizing: _,
1003
+ table: $,
1004
+ stickyHeader: se,
960
1005
  headerClassName: ye,
961
1006
  cellClassName: ve,
962
- stickyFirstColumn: D,
963
- columnGroups: l,
1007
+ stickyFirstColumn: fe,
1008
+ columnGroups: d,
964
1009
  headerTransparent: a,
965
- strings: H
966
- }), /* @__PURE__ */ z(ct, {
967
- table: Q,
968
- onRowClick: oe,
969
- emptyStateMessage: U,
1010
+ strings: U
1011
+ }), /* @__PURE__ */ B(ut, {
1012
+ loading: l,
1013
+ loadingRows: u,
1014
+ table: $,
1015
+ onRowClick: ae,
1016
+ emptyStateMessage: Ke,
970
1017
  emptyStateAction: he,
971
1018
  cellClassName: ve,
972
- rowClassName: We,
973
- stickyFirstColumn: D,
974
- strings: H
1019
+ rowClassName: Ge,
1020
+ stickyFirstColumn: fe,
1021
+ strings: U
975
1022
  })]
976
- })
1023
+ })]
977
1024
  }),
978
- !!kt && /* @__PURE__ */ B(ke, { children: [/* @__PURE__ */ z(de, {}), /* @__PURE__ */ z(Qe, {
979
- pagination: E,
980
- onPageChange: re,
981
- pageQueryKey: Ge,
982
- labels: H.pagination
1025
+ !!Ft && /* @__PURE__ */ V(ke, { children: [/* @__PURE__ */ B(ue, {}), /* @__PURE__ */ B($e, {
1026
+ pagination: k,
1027
+ onPageChange: ne,
1028
+ pageQueryKey: qe,
1029
+ labels: U.pagination
983
1030
  })] }),
984
- !!Me && /* @__PURE__ */ z("div", {
1031
+ !!Ne && /* @__PURE__ */ B("div", {
985
1032
  "data-slot": "data-table-footer",
986
1033
  className: "data-table--footer border-t border-border/60 px-surface py-row-y",
987
- children: Me
1034
+ children: Ne
988
1035
  })
989
1036
  ]
990
1037
  })
991
1038
  });
992
1039
  }
993
- Ct.displayName = "DataTable";
1040
+ Ot.displayName = "DataTable";
994
1041
  //#endregion
995
1042
  //#region src/components/features/table/filter-bar.tsx
996
- function wt({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = K }) {
1043
+ function kt({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = K }) {
997
1044
  if (!t && !i && !a) return null;
998
1045
  let s = r ?? o.filter.searchPlaceholder;
999
- return /* @__PURE__ */ B("div", {
1046
+ return /* @__PURE__ */ V("div", {
1000
1047
  className: n("filter-bar--component", "flex items-center justify-between p-surface"),
1001
- children: [/* @__PURE__ */ B("div", {
1048
+ children: [/* @__PURE__ */ V("div", {
1002
1049
  className: "flex flex-1 items-center space-x-space-md",
1003
- children: [!!t && /* @__PURE__ */ z(fe, {
1050
+ children: [!!t && /* @__PURE__ */ B(de, {
1004
1051
  placeholder: s,
1005
1052
  value: e.getColumn(t)?.getFilterValue() ?? "",
1006
1053
  onChange: (n) => {
@@ -1009,7 +1056,7 @@ function wt({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisib
1009
1056
  },
1010
1057
  className: "max-w-sm"
1011
1058
  }), a]
1012
- }), !!i && /* @__PURE__ */ z(X, {
1059
+ }), !!i && /* @__PURE__ */ B(Q, {
1013
1060
  table: e,
1014
1061
  strings: o,
1015
1062
  labelVisibility: "responsive",
@@ -1017,22 +1064,22 @@ function wt({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisib
1017
1064
  })]
1018
1065
  });
1019
1066
  }
1020
- wt.displayName = "DataTableFilterBar";
1067
+ kt.displayName = "DataTableFilterBar";
1021
1068
  //#endregion
1022
1069
  //#region src/components/features/table/partials/cell-value.tsx
1023
- function Z(e) {
1070
+ function At(e) {
1024
1071
  return e === !1 || e == null || typeof e == "string" && e.trim() === "";
1025
1072
  }
1026
- function Tt(e) {
1073
+ function jt(e) {
1027
1074
  return e == null;
1028
1075
  }
1029
- function Et(e) {
1030
- return typeof e == "object" && !!e && !Array.isArray(e) && !N(e) && !(e instanceof Date);
1076
+ function Mt(e) {
1077
+ return typeof e == "object" && !!e && !Array.isArray(e) && !De(e) && !(e instanceof Date);
1031
1078
  }
1032
- function Q(e) {
1079
+ function $(e) {
1033
1080
  return Array.isArray(e);
1034
1081
  }
1035
- function Dt(e) {
1082
+ function Nt(e) {
1036
1083
  let [t, n, r] = e;
1037
1084
  return {
1038
1085
  ...r,
@@ -1040,32 +1087,32 @@ function Dt(e) {
1040
1087
  kind: n
1041
1088
  };
1042
1089
  }
1043
- function Ot(e) {
1090
+ function Pt(e) {
1044
1091
  if (e === !1) return null;
1045
- if (N(e)) return e;
1046
- if (Q(e)) {
1047
- let t = Dt(e);
1048
- return Z(t.value) && Tt(t.display) ? null : t;
1092
+ if (De(e)) return e;
1093
+ if ($(e)) {
1094
+ let t = Nt(e);
1095
+ return At(t.value) && jt(t.display) ? null : t;
1049
1096
  }
1050
- return Et(e) ? Z(e.value) && Tt(e.display) ? null : e : Z(e) ? null : { value: e };
1097
+ return Mt(e) ? At(e.value) && jt(e.display) ? null : e : At(e) ? null : { value: e };
1051
1098
  }
1052
- function kt(e) {
1099
+ function Ft(e) {
1053
1100
  return e instanceof Date ? e.toISOString() : String(e ?? "");
1054
1101
  }
1055
- function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
1056
- let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? kt(c) : c), u = e.emptyLabel ?? r, d = n(i, e.className), f = o ? a : "regular";
1102
+ function It({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
1103
+ let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? Ft(c) : c), u = e.emptyLabel ?? r, d = n(i, e.className), f = o ? a : "regular";
1057
1104
  switch (s) {
1058
- case "secondary": return /* @__PURE__ */ z(g, {
1105
+ case "secondary": return /* @__PURE__ */ B(_, {
1059
1106
  size: "inherit",
1060
1107
  className: d,
1061
1108
  children: l
1062
1109
  });
1063
- case "muted": return /* @__PURE__ */ z(_, {
1110
+ case "muted": return /* @__PURE__ */ B(v, {
1064
1111
  size: "inherit",
1065
1112
  className: d,
1066
1113
  children: l
1067
1114
  });
1068
- case "name": return /* @__PURE__ */ z(h, {
1115
+ case "name": return /* @__PURE__ */ B(g, {
1069
1116
  type: "inherit",
1070
1117
  value: e.display === void 0 && typeof c == "string" ? c : void 0,
1071
1118
  force: e.force,
@@ -1075,7 +1122,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1075
1122
  className: d,
1076
1123
  children: e.display
1077
1124
  });
1078
- case "mono": return /* @__PURE__ */ z(b, {
1125
+ case "mono": return /* @__PURE__ */ B(x, {
1079
1126
  type: "inherit",
1080
1127
  size: "inherit",
1081
1128
  weight: f,
@@ -1083,33 +1130,33 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1083
1130
  children: l
1084
1131
  });
1085
1132
  case "link": {
1086
- let t = e.href ?? kt(c);
1087
- return /* @__PURE__ */ z(C, {
1133
+ let t = e.href ?? Ft(c);
1134
+ return /* @__PURE__ */ B(w, {
1088
1135
  href: t,
1089
1136
  emptyLabel: u,
1090
1137
  className: d,
1091
1138
  children: l
1092
1139
  });
1093
1140
  }
1094
- case "email": return /* @__PURE__ */ z(x, {
1141
+ case "email": return /* @__PURE__ */ B(S, {
1095
1142
  value: typeof c == "string" ? c : void 0,
1096
1143
  display: e.display,
1097
1144
  emptyLabel: u,
1098
1145
  className: d
1099
1146
  });
1100
- case "phone": return /* @__PURE__ */ z(m, {
1147
+ case "phone": return /* @__PURE__ */ B(h, {
1101
1148
  value: typeof c == "string" ? c : void 0,
1102
1149
  display: e.display,
1103
1150
  emptyLabel: u,
1104
1151
  className: d
1105
1152
  });
1106
- case "url": return /* @__PURE__ */ z(y, {
1153
+ case "url": return /* @__PURE__ */ B(b, {
1107
1154
  value: typeof c == "string" ? c : void 0,
1108
1155
  display: e.display,
1109
1156
  emptyLabel: u,
1110
1157
  className: d
1111
1158
  });
1112
- case "money": return /* @__PURE__ */ z(te, {
1159
+ case "money": return /* @__PURE__ */ B(D, {
1113
1160
  type: "inherit",
1114
1161
  amount: typeof c == "number" || typeof c == "string" ? c : null,
1115
1162
  currency: e.currency,
@@ -1123,7 +1170,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1123
1170
  weight: f,
1124
1171
  className: d
1125
1172
  });
1126
- case "number": return /* @__PURE__ */ z(E, {
1173
+ case "number": return /* @__PURE__ */ B(O, {
1127
1174
  type: "inherit",
1128
1175
  value: typeof c == "number" || typeof c == "string" ? c : null,
1129
1176
  locale: e.locale,
@@ -1133,7 +1180,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1133
1180
  weight: f,
1134
1181
  className: d
1135
1182
  });
1136
- case "percent": return /* @__PURE__ */ z(ee, {
1183
+ case "percent": return /* @__PURE__ */ B(E, {
1137
1184
  type: "inherit",
1138
1185
  value: typeof c == "number" || typeof c == "string" ? c : null,
1139
1186
  locale: e.locale,
@@ -1144,7 +1191,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1144
1191
  weight: f,
1145
1192
  className: d
1146
1193
  });
1147
- case "fileSize": return /* @__PURE__ */ z(v, {
1194
+ case "fileSize": return /* @__PURE__ */ B(y, {
1148
1195
  type: "inherit",
1149
1196
  value: typeof c == "number" ? c : null,
1150
1197
  from: e.from,
@@ -1154,7 +1201,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1154
1201
  weight: f,
1155
1202
  className: d
1156
1203
  });
1157
- case "date": return /* @__PURE__ */ z(oe, {
1204
+ case "date": return /* @__PURE__ */ B(ie, {
1158
1205
  type: "inherit",
1159
1206
  value: c,
1160
1207
  format: e.dateFormat,
@@ -1165,7 +1212,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1165
1212
  weight: f,
1166
1213
  className: d
1167
1214
  });
1168
- case "time": return /* @__PURE__ */ z(ne, {
1215
+ case "time": return /* @__PURE__ */ B(k, {
1169
1216
  type: "inherit",
1170
1217
  value: c,
1171
1218
  format: e.timeFormat,
@@ -1175,7 +1222,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1175
1222
  weight: f,
1176
1223
  className: d
1177
1224
  });
1178
- case "dateTime": return /* @__PURE__ */ z(ie, {
1225
+ case "dateTime": return /* @__PURE__ */ B(ne, {
1179
1226
  type: "inherit",
1180
1227
  value: c,
1181
1228
  format: e.dateFormat,
@@ -1187,7 +1234,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1187
1234
  weight: f,
1188
1235
  className: d
1189
1236
  });
1190
- case "relativeTime": return /* @__PURE__ */ z(re, {
1237
+ case "relativeTime": return /* @__PURE__ */ B(te, {
1191
1238
  value: c,
1192
1239
  locale: e.dateLocale,
1193
1240
  emptyLabel: u,
@@ -1195,7 +1242,7 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1195
1242
  weight: f,
1196
1243
  className: d
1197
1244
  });
1198
- default: return /* @__PURE__ */ z(p, {
1245
+ default: return /* @__PURE__ */ B(m, {
1199
1246
  type: "inherit",
1200
1247
  size: "inherit",
1201
1248
  weight: f,
@@ -1204,13 +1251,13 @@ function At({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1204
1251
  });
1205
1252
  }
1206
1253
  }
1207
- function $({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: u, from: d, force: f, options: m, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: y, fallback: b = "--", missing: x, className: C, children: w }) {
1208
- let T = x ?? Z(e);
1209
- return w === void 0 ? T ? /* @__PURE__ */ z(S, {
1254
+ function Lt({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: u, from: d, force: f, options: p, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: y, fallback: b = "--", missing: x, className: S, children: w }) {
1255
+ let T = x ?? At(e);
1256
+ return w === void 0 ? T ? /* @__PURE__ */ B(C, {
1210
1257
  size: "inherit",
1211
- className: n("cell-value--component", C),
1258
+ className: n("cell-value--component", S),
1212
1259
  children: y ?? b
1213
- }) : At({
1260
+ }) : It({
1214
1261
  descriptor: {
1215
1262
  value: e,
1216
1263
  kind: t,
@@ -1224,7 +1271,7 @@ function $({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimu
1224
1271
  dateLocale: u,
1225
1272
  from: d,
1226
1273
  force: f,
1227
- options: m,
1274
+ options: p,
1228
1275
  scaled: h,
1229
1276
  dateFormat: g,
1230
1277
  datePreset: _,
@@ -1233,30 +1280,30 @@ function $({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimu
1233
1280
  className: "cell-value--component"
1234
1281
  },
1235
1282
  emptyLabel: y ?? b,
1236
- className: C
1237
- }) : /* @__PURE__ */ z(T ? S : p, {
1283
+ className: S
1284
+ }) : /* @__PURE__ */ B(T ? C : m, {
1238
1285
  type: T ? "secondary" : "inherit",
1239
1286
  size: "inherit",
1240
- className: n("cell-value--component", C),
1287
+ className: n("cell-value--component", S),
1241
1288
  children: w
1242
1289
  });
1243
1290
  }
1244
- function jt({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
1245
- let c = e.map(Ot).filter((e) => e !== null).slice(0, 4);
1246
- return c.length === 0 ? /* @__PURE__ */ z(S, {
1291
+ function Rt({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
1292
+ let c = e.map(Pt).filter((e) => e !== null).slice(0, 4);
1293
+ return c.length === 0 ? /* @__PURE__ */ B(C, {
1247
1294
  size: "inherit",
1248
1295
  className: n("cell-stack--component", r),
1249
1296
  children: t
1250
- }) : /* @__PURE__ */ z("div", {
1297
+ }) : /* @__PURE__ */ B("div", {
1251
1298
  className: n("cell-stack--component flex min-w-0 flex-col items-start gap-space-2xs", r),
1252
1299
  children: c.map((e, r) => {
1253
1300
  let c = r === 0, l = n("cell-stack--item min-w-0 max-w-full truncate", !c && "text-xs", i, c ? a : o);
1254
- return N(e) ? /* @__PURE__ */ z("div", {
1301
+ return De(e) ? /* @__PURE__ */ B("div", {
1255
1302
  className: l,
1256
1303
  children: e
1257
- }, r) : /* @__PURE__ */ z("div", {
1304
+ }, r) : /* @__PURE__ */ B("div", {
1258
1305
  className: l,
1259
- children: At({
1306
+ children: It({
1260
1307
  descriptor: e,
1261
1308
  index: r,
1262
1309
  emptyLabel: t,
@@ -1267,39 +1314,39 @@ function jt({ values: e = [], emptyLabel: t = "--", className: r, itemClassName:
1267
1314
  })
1268
1315
  });
1269
1316
  }
1270
- $.displayName = "CellValue", jt.displayName = "CellStack";
1317
+ Lt.displayName = "CellValue", Rt.displayName = "CellStack";
1271
1318
  //#endregion
1272
1319
  //#region src/components/features/table/partials/table-link.tsx
1273
- var Mt = ({ className: e, ...t }) => /* @__PURE__ */ z(C, {
1320
+ var zt = ({ className: e, ...t }) => /* @__PURE__ */ B(w, {
1274
1321
  className: n("table-link--component", "underline decoration-link-color/35 decoration-dotted underline-offset-2 hover:decoration-link-color", e),
1275
1322
  ...t,
1276
1323
  children: t.children
1277
1324
  });
1278
1325
  //#endregion
1279
1326
  //#region src/components/features/table/partials/resource-cell.tsx
1280
- function Nt(e, t) {
1327
+ function Bt(e, t) {
1281
1328
  if (e && typeof e == "object" && !("type" in e) && "label" in e) {
1282
1329
  let n = e.icon;
1283
- return /* @__PURE__ */ B(D, {
1330
+ return /* @__PURE__ */ V(ce, {
1284
1331
  tone: e.tone ?? "secondary",
1285
1332
  dot: e.dot,
1286
- children: [!!n && /* @__PURE__ */ z(n, { className: "size-icon-sm" }), e.label]
1333
+ children: [!!n && /* @__PURE__ */ B(n, { className: "size-icon-sm" }), e.label]
1287
1334
  }, e.id ?? t);
1288
1335
  }
1289
- return /* @__PURE__ */ z("span", { children: e }, t);
1336
+ return /* @__PURE__ */ B("span", { children: e }, t);
1290
1337
  }
1291
- function Pt(e) {
1292
- return e ? Array.isArray(e) ? /* @__PURE__ */ z("span", {
1338
+ function Vt(e) {
1339
+ return e ? Array.isArray(e) ? /* @__PURE__ */ B("span", {
1293
1340
  className: "inline-flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-2xs",
1294
- children: e.map((e, t) => /* @__PURE__ */ B("span", {
1341
+ children: e.map((e, t) => /* @__PURE__ */ V("span", {
1295
1342
  className: "inline-flex min-w-0 items-center gap-space-sm",
1296
- children: [!!e.label && /* @__PURE__ */ z(i, {
1343
+ children: [!!e.label && /* @__PURE__ */ B(i, {
1297
1344
  tag: "span",
1298
1345
  size: "inherit",
1299
1346
  type: "secondary",
1300
1347
  className: "shrink-0",
1301
1348
  children: e.label
1302
- }), /* @__PURE__ */ z(i, {
1349
+ }), /* @__PURE__ */ B(i, {
1303
1350
  tag: "span",
1304
1351
  size: "inherit",
1305
1352
  type: "secondary",
@@ -1309,25 +1356,25 @@ function Pt(e) {
1309
1356
  }, e.id ?? t))
1310
1357
  }) : e : null;
1311
1358
  }
1312
- function Ft({ title: e, subtitle: t, metadata: r, badges: a = [], imageUrl: l, icon: u, fallback: d, href: f, renderLink: p, emptyLabel: m = "—", className: h, mediaShape: g = "circle", mediaClassName: _, contentClassName: v, titleClassName: y, subtitleClassName: b }) {
1313
- if (!e) return /* @__PURE__ */ z(i, {
1359
+ function Ht({ title: e, subtitle: t, metadata: r, badges: a = [], imageUrl: l, icon: u, fallback: d, href: f, renderLink: p, emptyLabel: m = "—", className: h, mediaShape: g = "circle", mediaClassName: _, contentClassName: v, titleClassName: y, subtitleClassName: b }) {
1360
+ if (!e) return /* @__PURE__ */ B(i, {
1314
1361
  size: "inherit",
1315
1362
  type: "secondary",
1316
1363
  className: h,
1317
1364
  children: m
1318
1365
  });
1319
- let x = typeof e == "string" ? e : void 0, S = x ? T(x, { strategy: "first-words" }) : "", C = /* @__PURE__ */ B(c, {
1320
- render: /* @__PURE__ */ z("span", {}),
1366
+ let x = typeof e == "string" ? e : void 0, S = x ? ee(x, { strategy: "first-words" }) : "", C = /* @__PURE__ */ V(c, {
1367
+ render: /* @__PURE__ */ B("span", {}),
1321
1368
  gap: "dense",
1322
1369
  className: n("resource-cell--content", v),
1323
1370
  children: [
1324
- /* @__PURE__ */ B(c, {
1325
- render: /* @__PURE__ */ z("span", {}),
1371
+ /* @__PURE__ */ V(c, {
1372
+ render: /* @__PURE__ */ B("span", {}),
1326
1373
  direction: "horizontal",
1327
1374
  gap: "sm",
1328
1375
  wrap: !1,
1329
1376
  className: "resource-cell--title-row",
1330
- children: [/* @__PURE__ */ z(i, {
1377
+ children: [/* @__PURE__ */ B(i, {
1331
1378
  type: "inherit",
1332
1379
  tag: "span",
1333
1380
  size: "inherit",
@@ -1335,102 +1382,103 @@ function Ft({ title: e, subtitle: t, metadata: r, badges: a = [], imageUrl: l, i
1335
1382
  title: x,
1336
1383
  className: n("resource-cell--title truncate", y),
1337
1384
  children: e
1338
- }), a.length > 0 && /* @__PURE__ */ z("span", {
1385
+ }), a.length > 0 && /* @__PURE__ */ B("span", {
1339
1386
  className: "resource-cell--badges inline-flex shrink-0 items-center gap-space-sm",
1340
- children: a.map(Nt)
1387
+ children: a.map(Bt)
1341
1388
  })]
1342
1389
  }),
1343
- !!t && /* @__PURE__ */ z(i, {
1390
+ !!t && /* @__PURE__ */ B(i, {
1344
1391
  tag: "span",
1345
1392
  size: "inherit",
1346
1393
  type: "secondary",
1347
1394
  className: n("resource-cell--subtitle truncate", b),
1348
1395
  children: t
1349
1396
  }),
1350
- !!r && /* @__PURE__ */ z("span", {
1397
+ !!r && /* @__PURE__ */ B("span", {
1351
1398
  className: "resource-cell--metadata min-w-0",
1352
- children: Pt(r)
1399
+ children: Vt(r)
1353
1400
  })
1354
1401
  ]
1355
- }), ee = d != null && d !== !1 && d !== "", te = !!l || !!u || ee, E = g === "square", ne = /* @__PURE__ */ B("span", {
1402
+ }), w = d != null && d !== !1 && d !== "", E = !!l || !!u || w, D = g === "square", O = /* @__PURE__ */ V("span", {
1356
1403
  className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", h),
1357
- children: [te && /* @__PURE__ */ B(ce, {
1404
+ children: [E && /* @__PURE__ */ V(oe, {
1358
1405
  size: "md",
1359
1406
  "data-shape": g,
1360
- className: n("resource-cell--media", E && "rounded-radius after:rounded-radius", _),
1361
- children: [!!l && /* @__PURE__ */ z(le, {
1407
+ className: n("resource-cell--media", D && "rounded-radius after:rounded-radius", _),
1408
+ children: [!!l && /* @__PURE__ */ B(se, {
1362
1409
  src: l,
1363
1410
  alt: x ?? "",
1364
- className: n(E && "rounded-radius")
1365
- }), /* @__PURE__ */ z(se, {
1366
- className: n(E && "rounded-radius"),
1367
- children: ee ? d : u ? /* @__PURE__ */ z(u, { className: "size-icon" }) : S ? /* @__PURE__ */ z(w, {
1411
+ className: n(D && "rounded-radius")
1412
+ }), /* @__PURE__ */ B(ae, {
1413
+ className: n(D && "rounded-radius"),
1414
+ children: w ? d : u ? /* @__PURE__ */ B(u, { className: "size-icon" }) : S ? /* @__PURE__ */ B(T, {
1368
1415
  value: x,
1369
1416
  strategy: "first-words"
1370
1417
  }) : null
1371
1418
  })]
1372
1419
  }), C]
1373
1420
  });
1374
- if (!f) return ne;
1375
- let re = `resource-cell--link inline-flex min-w-0 rounded-radius outline-none ${s.text}`;
1421
+ if (!f) return O;
1422
+ let k = `resource-cell--link inline-flex min-w-0 rounded-radius outline-none ${s.text}`;
1376
1423
  return p ? p({
1377
1424
  href: f,
1378
- children: ne,
1379
- className: re,
1425
+ children: O,
1426
+ className: k,
1380
1427
  "aria-label": x
1381
- }) : /* @__PURE__ */ z(o, {
1428
+ }) : /* @__PURE__ */ B(o, {
1382
1429
  href: f,
1383
1430
  size: "inherit",
1384
1431
  underline: !1,
1385
- className: re,
1432
+ className: k,
1386
1433
  "aria-label": x,
1387
- children: ne
1434
+ children: O
1388
1435
  });
1389
1436
  }
1390
- Ft.displayName = "ResourceCell";
1437
+ Ht.displayName = "ResourceCell";
1391
1438
  //#endregion
1392
1439
  //#region src/components/features/table/partials/cell-renderers.tsx
1393
- function It({ value: e, map: t, emptyLabel: r = "—", className: a }) {
1394
- if (!e || !(e in t)) return /* @__PURE__ */ z(i, {
1440
+ function Ut({ value: e, map: t, emptyLabel: r = "—", className: a }) {
1441
+ if (!e || !(e in t)) return /* @__PURE__ */ B(i, {
1395
1442
  size: "inherit",
1396
1443
  type: "secondary",
1397
1444
  className: n("status-cell--component", a),
1398
1445
  children: r
1399
1446
  });
1400
1447
  let o = t[e], s = o.icon;
1401
- return /* @__PURE__ */ B(D, {
1448
+ return /* @__PURE__ */ V(ce, {
1402
1449
  tone: o.tone ?? "secondary",
1450
+ dot: o.dot,
1403
1451
  className: n("status-cell--component gap-space-sm", a),
1404
- children: [!!s && /* @__PURE__ */ z(s, { className: "size-icon-sm" }), o.label]
1452
+ children: [!!s && /* @__PURE__ */ B(s, { className: "size-icon-sm" }), o.label]
1405
1453
  });
1406
1454
  }
1407
- It.displayName = "StatusCell";
1408
- function Lt({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: a }) {
1455
+ Ut.displayName = "StatusCell";
1456
+ function Wt({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: a }) {
1409
1457
  let o = e.filter((e) => !e.hidden);
1410
- return o.length === 0 ? /* @__PURE__ */ z(i, {
1458
+ return o.length === 0 ? /* @__PURE__ */ B(i, {
1411
1459
  size: "inherit",
1412
1460
  type: "secondary",
1413
1461
  className: n("status-cluster-cell--component", r),
1414
1462
  children: t
1415
- }) : /* @__PURE__ */ z("span", {
1463
+ }) : /* @__PURE__ */ B("span", {
1416
1464
  className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", r),
1417
1465
  children: o.map((e, t) => {
1418
1466
  let r = e.icon;
1419
- return /* @__PURE__ */ B(D, {
1467
+ return /* @__PURE__ */ V(ce, {
1420
1468
  tone: e.tone ?? "secondary",
1421
1469
  dot: e.dot,
1422
1470
  className: n("shrink-0", a),
1423
- children: [!!r && /* @__PURE__ */ z(r, { className: "size-icon-sm" }), e.label]
1471
+ children: [!!r && /* @__PURE__ */ B(r, { className: "size-icon-sm" }), e.label]
1424
1472
  }, e.id ?? t);
1425
1473
  })
1426
1474
  });
1427
1475
  }
1428
- Lt.displayName = "StatusClusterCell";
1429
- function Rt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l }) {
1430
- let u = ae(e);
1431
- return u ? /* @__PURE__ */ B("span", {
1476
+ Wt.displayName = "StatusClusterCell";
1477
+ function Gt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l }) {
1478
+ let u = re(e);
1479
+ return u ? /* @__PURE__ */ V("span", {
1432
1480
  className: n("date-cell--component inline-flex items-center gap-space-sm", l),
1433
- children: [!!o && /* @__PURE__ */ z(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ z(oe, {
1481
+ children: [!!o && /* @__PURE__ */ B(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ B(ie, {
1434
1482
  value: u,
1435
1483
  format: t,
1436
1484
  preset: r,
@@ -1439,28 +1487,28 @@ function Rt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon:
1439
1487
  size: "inherit",
1440
1488
  type: "secondary"
1441
1489
  })]
1442
- }) : /* @__PURE__ */ z(i, {
1490
+ }) : /* @__PURE__ */ B(i, {
1443
1491
  size: "inherit",
1444
1492
  type: "secondary",
1445
1493
  className: n("date-cell--component", l),
1446
1494
  children: c
1447
1495
  });
1448
1496
  }
1449
- Rt.displayName = "DateCell";
1450
- function zt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
1451
- let p = ae(e);
1452
- if (!p) return /* @__PURE__ */ z(i, {
1497
+ Gt.displayName = "DateCell";
1498
+ function Kt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon: s = Me, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
1499
+ let p = re(e);
1500
+ if (!p) return /* @__PURE__ */ B(i, {
1453
1501
  size: "inherit",
1454
1502
  type: "secondary",
1455
1503
  className: n("date-meta-cell--component", l),
1456
1504
  children: c
1457
1505
  });
1458
1506
  let m = typeof d == "function" ? d(p) : d;
1459
- return /* @__PURE__ */ B("span", {
1507
+ return /* @__PURE__ */ V("span", {
1460
1508
  className: n("date-meta-cell--component inline-flex min-w-0 items-start gap-space-sm", l),
1461
- children: [!!o && /* @__PURE__ */ z(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ B("span", {
1509
+ children: [!!o && /* @__PURE__ */ B(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ V("span", {
1462
1510
  className: "grid min-w-0 gap-space-2xs",
1463
- children: [/* @__PURE__ */ z(oe, {
1511
+ children: [/* @__PURE__ */ B(ie, {
1464
1512
  value: p,
1465
1513
  format: t,
1466
1514
  preset: r,
@@ -1469,7 +1517,7 @@ function zt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon:
1469
1517
  size: "inherit",
1470
1518
  type: "secondary",
1471
1519
  className: n("truncate tabular-nums", u)
1472
- }), !!m && /* @__PURE__ */ z(i, {
1520
+ }), !!m && /* @__PURE__ */ B(i, {
1473
1521
  tag: "span",
1474
1522
  size: "inherit",
1475
1523
  type: "secondary",
@@ -1479,9 +1527,9 @@ function zt({ value: e, format: t, preset: r, locale: a, showIcon: o = !1, icon:
1479
1527
  })]
1480
1528
  });
1481
1529
  }
1482
- zt.displayName = "DateMetaCell";
1483
- function Bt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
1484
- return /* @__PURE__ */ z(te, {
1530
+ Kt.displayName = "DateMetaCell";
1531
+ function qt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
1532
+ return /* @__PURE__ */ B(D, {
1485
1533
  type: "inherit",
1486
1534
  amount: e,
1487
1535
  currency: t,
@@ -1493,34 +1541,34 @@ function Bt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className
1493
1541
  className: n("currency-cell--component tabular-nums", a)
1494
1542
  });
1495
1543
  }
1496
- Bt.displayName = "CurrencyCell";
1497
- function Vt({ name: e, imageUrl: t, icon: r = Fe, subtitle: a, emptyLabel: o = "—", className: s }) {
1498
- return !e || e.trim().length === 0 ? /* @__PURE__ */ z(i, {
1544
+ qt.displayName = "CurrencyCell";
1545
+ function Jt({ name: e, imageUrl: t, icon: r = Fe, subtitle: a, emptyLabel: o = "—", className: s }) {
1546
+ return !e || e.trim().length === 0 ? /* @__PURE__ */ B(i, {
1499
1547
  size: "inherit",
1500
1548
  type: "secondary",
1501
1549
  className: n("avatar-cell--component", s),
1502
1550
  children: o
1503
- }) : /* @__PURE__ */ B("span", {
1551
+ }) : /* @__PURE__ */ V("span", {
1504
1552
  className: n("avatar-cell--component inline-flex items-center gap-space-md", s),
1505
- children: [/* @__PURE__ */ B(ce, {
1553
+ children: [/* @__PURE__ */ V(oe, {
1506
1554
  size: "sm",
1507
1555
  className: "avatar-cell--avatar",
1508
- children: [!!t && /* @__PURE__ */ z(le, {
1556
+ children: [!!t && /* @__PURE__ */ B(se, {
1509
1557
  src: t,
1510
1558
  alt: e
1511
- }), /* @__PURE__ */ z(se, { children: T(e, { strategy: "first-words" }) ? /* @__PURE__ */ z(w, {
1559
+ }), /* @__PURE__ */ B(ae, { children: ee(e, { strategy: "first-words" }) ? /* @__PURE__ */ B(T, {
1512
1560
  value: e,
1513
1561
  strategy: "first-words"
1514
- }) : /* @__PURE__ */ z(r, { className: "size-icon" }) })]
1515
- }), /* @__PURE__ */ B("span", {
1562
+ }) : /* @__PURE__ */ B(r, { className: "size-icon" }) })]
1563
+ }), /* @__PURE__ */ V("span", {
1516
1564
  className: "min-w-0 inline-flex flex-col",
1517
- children: [/* @__PURE__ */ z(i, {
1565
+ children: [/* @__PURE__ */ B(i, {
1518
1566
  type: "inherit",
1519
1567
  size: "inherit",
1520
1568
  weight: "medium",
1521
1569
  className: "truncate",
1522
1570
  children: e
1523
- }), !!a && /* @__PURE__ */ z(i, {
1571
+ }), !!a && /* @__PURE__ */ B(i, {
1524
1572
  size: "inherit",
1525
1573
  type: "secondary",
1526
1574
  className: "truncate",
@@ -1529,8 +1577,8 @@ function Vt({ name: e, imageUrl: t, icon: r = Fe, subtitle: a, emptyLabel: o = "
1529
1577
  })]
1530
1578
  });
1531
1579
  }
1532
- Vt.displayName = "AvatarCell";
1580
+ Jt.displayName = "AvatarCell";
1533
1581
  //#endregion
1534
- export { K as A, rt as C, tt as D, et as E, U as M, Ge as N, $e as O, it as S, nt as T, lt as _, It as a, Y as b, Mt as c, wt as d, Ct as f, X as g, dt as h, zt as i, Ye as j, Qe as k, jt as l, gt as m, Bt as n, Lt as o, vt as p, Rt as r, Ft as s, Vt as t, $ as u, ct as v, at as w, J as x, ot as y };
1582
+ export { K as A, it as C, nt as D, tt as E, Ge as M, Ke as N, et as O, at as S, rt as T, dt as _, Ut as a, Y as b, zt as c, kt as d, Ot as f, Q as g, pt as h, Kt as i, Xe as j, $e as k, Rt as l, vt as m, qt as n, Wt as o, bt as p, Gt as r, Ht as s, Jt as t, Lt as u, ut as v, ot as w, st as x, lt as y };
1535
1583
 
1536
- //# sourceMappingURL=table-CFOWY9pQ.js.map
1584
+ //# sourceMappingURL=table-CBonSdTp.js.map