themelia-react-ui 1.0.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (748) hide show
  1. package/CHANGELOG.md +632 -1
  2. package/README.md +31 -13
  3. package/dist/accordion-B6a3vVgA.js +207 -0
  4. package/dist/accordion-B6a3vVgA.js.map +1 -0
  5. package/dist/action-menu-TzCoSlwL.js +280 -0
  6. package/dist/action-menu-TzCoSlwL.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
  13. package/dist/attachment-BtfhGm8i.js +245 -0
  14. package/dist/attachment-BtfhGm8i.js.map +1 -0
  15. package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
  18. package/dist/avatar-BBnEJIx8.js.map +1 -0
  19. package/dist/badge-MrKVNzW9.js +93 -0
  20. package/dist/badge-MrKVNzW9.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +3 -0
  27. package/dist/base/buttons.js +2 -3
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +19 -19
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +234 -224
  32. package/dist/base/cascader.js.map +1 -1
  33. package/dist/base/chart.js +1 -1
  34. package/dist/base/choice-inputs.js +3 -3
  35. package/dist/base/code-block.js +1 -1
  36. package/dist/base/combobox.js +1 -1
  37. package/dist/base/command.js +1 -1
  38. package/dist/base/copyable.js +1 -1
  39. package/dist/base/date-pickers.js +2 -2
  40. package/dist/base/display.js +7 -7
  41. package/dist/base/feedback.js +3 -3
  42. package/dist/base/forms-numeric.js +1 -1
  43. package/dist/base/forms.js +2 -2
  44. package/dist/base/inline-edit.js +81 -76
  45. package/dist/base/inline-edit.js.map +1 -1
  46. package/dist/base/item.js +1 -1
  47. package/dist/base/media-gallery.js +1 -1
  48. package/dist/base/metadata-list.js +3 -0
  49. package/dist/base/navigation.js +7 -7
  50. package/dist/base/popover-menu.js +1 -1
  51. package/dist/base/popover.js +1 -1
  52. package/dist/base/qr-code.js +7 -4
  53. package/dist/base/qr-code.js.map +1 -1
  54. package/dist/base/repeaters.js +175 -174
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +148 -138
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +1 -1
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +4 -4
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +2 -2
  71. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  72. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  73. package/dist/blocks/admin.js +264 -253
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +293 -323
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +596 -587
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +2246 -1693
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +3 -2
  85. package/dist/blocks/onboarding.js +50 -49
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +82 -91
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/breadcrumbs-D5t7I023.js +129 -0
  91. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  92. package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
  93. package/dist/button-QYwiyhD2.js.map +1 -0
  94. package/dist/buttons-SbIcm1HJ.js +661 -0
  95. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  96. package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
  97. package/dist/cards-CiiHpKYd.js.map +1 -0
  98. package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
  99. package/dist/chart-QfrARkXl.js.map +1 -0
  100. package/dist/checkbox-DhB6K0bK.js +36 -0
  101. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  102. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  103. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  104. package/dist/code-block-Dgbu-CU3.js +185 -0
  105. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  106. package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
  107. package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  108. package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
  109. package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
  110. package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
  111. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  112. package/dist/combobox-DLl0bfiq.js +867 -0
  113. package/dist/combobox-DLl0bfiq.js.map +1 -0
  114. package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
  115. package/dist/command-kNR20o7x.js.map +1 -0
  116. package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
  117. package/dist/comments-BpDuCUUu.js.map +1 -0
  118. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  119. package/dist/components/base/action-menu/action-menu.d.ts +27 -5
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  123. package/dist/components/base/badge/badge.d.ts +1 -1
  124. package/dist/components/base/badge/badge.recipes.d.ts +6 -6
  125. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  126. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  127. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  128. package/dist/components/base/buttons/base-button.d.ts +7 -0
  129. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  130. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  131. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  132. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  133. package/dist/components/base/buttons/text-button.d.ts +2 -2
  134. package/dist/components/base/carousel/carousel.d.ts +3 -1
  135. package/dist/components/base/chart/chart.d.ts +7 -7
  136. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  137. package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
  138. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  139. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  140. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  141. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  142. package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
  143. package/dist/components/base/display/alert-dialog.d.ts +10 -3
  144. package/dist/components/base/display/content-block.d.ts +4 -2
  145. package/dist/components/base/display/date-block.d.ts +1 -1
  146. package/dist/components/base/display/dialog.d.ts +8 -5
  147. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  148. package/dist/components/base/display/surface-title.d.ts +6 -1
  149. package/dist/components/base/feedback/alert.d.ts +1 -1
  150. package/dist/components/base/feedback/state-display.d.ts +5 -4
  151. package/dist/components/base/forms/form-sizing.d.ts +43 -8
  152. package/dist/components/base/forms/workflow.d.ts +2 -0
  153. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  154. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  155. package/dist/components/base/metadata-list/index.d.ts +12 -0
  156. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  157. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  158. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  159. package/dist/components/base/navigation/index.d.ts +1 -1
  160. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  161. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  162. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  163. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  164. package/dist/components/base/navigation/page-header/page-header.d.ts +30 -4
  165. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  166. package/dist/components/base/sheet/index.d.ts +29 -1
  167. package/dist/components/base/sheet/sheet.d.ts +10 -5
  168. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  169. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  170. package/dist/components/base/spinner/spinner.d.ts +3 -2
  171. package/dist/components/base/structure/structure.types.d.ts +1 -1
  172. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  173. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  174. package/dist/components/base/upload/upload.recipes.d.ts +33 -0
  175. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  176. package/dist/components/base/value-inputs/index.d.ts +5 -5
  177. package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
  178. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  179. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  180. package/dist/components/blocks/analytics/index.d.ts +1 -1
  181. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  182. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  183. package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
  184. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  185. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  186. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  187. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  188. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  189. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  190. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  191. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  192. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  193. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  194. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  195. package/dist/components/blocks/commerce/index.d.ts +13 -5
  196. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  197. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  198. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  199. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  200. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  201. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  202. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  203. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  204. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  205. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  206. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  207. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  208. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  209. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  210. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  211. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  212. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  213. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  214. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  215. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  216. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  217. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  218. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  219. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  220. package/dist/components/blocks/commerce/payment-method/types.d.ts +14 -1
  221. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  222. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  223. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  224. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  225. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  226. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  227. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  228. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  229. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  230. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  231. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  232. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  233. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  234. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  235. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  236. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  237. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  238. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  239. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  240. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  241. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  242. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  243. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  244. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  245. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  246. package/dist/components/features/kanban/kanban.d.ts +1 -1
  247. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  248. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  249. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  250. package/dist/components/features/media-library/index.d.ts +1 -1
  251. package/dist/components/features/media-library/media-library.d.ts +1 -1
  252. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  253. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  254. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  255. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  256. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  257. package/dist/components/features/overlays/dialog.d.ts +1 -1
  258. package/dist/components/features/overlays/drawer.d.ts +1 -1
  259. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  260. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  261. package/dist/components/features/overlays/index.d.ts +1 -1
  262. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  263. package/dist/components/features/overlays/overlays.types.d.ts +62 -19
  264. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  265. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  266. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  267. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  268. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  269. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  270. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  271. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  272. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  273. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  274. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  275. package/dist/components/features/products/partials/index.d.ts +1 -1
  276. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  277. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  278. package/dist/components/features/products/products.types.d.ts +11 -3
  279. package/dist/components/features/resource/index.d.ts +1 -1
  280. package/dist/components/features/resource/resource.d.ts +1 -1
  281. package/dist/components/features/resource/resource.types.d.ts +34 -6
  282. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  283. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  284. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  285. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  286. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  287. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  288. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  289. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  290. package/dist/components/features/sync/index.d.ts +26 -3
  291. package/dist/components/features/table/data-table.d.ts +1 -1
  292. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  293. package/dist/components/features/table/table.types.d.ts +32 -7
  294. package/dist/components/layout/page/index.d.ts +1 -1
  295. package/dist/components/layout/page/page.types.d.ts +51 -4
  296. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  297. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  298. package/dist/components/layout/settings/settings.d.ts +16 -2
  299. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  300. package/dist/components/primitives/date.d.ts +16 -3
  301. package/dist/components/primitives/dimensions.d.ts +6 -0
  302. package/dist/components/primitives/duration.d.ts +6 -0
  303. package/dist/components/primitives/file-size.d.ts +6 -0
  304. package/dist/components/primitives/index.d.ts +1 -1
  305. package/dist/components/primitives/initials.d.ts +11 -2
  306. package/dist/components/primitives/link.d.ts +7 -0
  307. package/dist/components/primitives/money.d.ts +29 -7
  308. package/dist/components/primitives/number.d.ts +17 -0
  309. package/dist/components/primitives/value-typography.d.ts +54 -0
  310. package/dist/components/primitives/value.d.ts +31 -6
  311. package/dist/components/typography/heading.d.ts +9 -1
  312. package/dist/components/typography/label.d.ts +3 -0
  313. package/dist/components/typography/rich-text/index.d.ts +1 -1
  314. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  315. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  316. package/dist/components/typography/running-text.d.ts +12 -0
  317. package/dist/components/typography/text-link.d.ts +24 -1
  318. package/dist/components/typography/text.d.ts +12 -0
  319. package/dist/components/typography/text.styles.d.ts +35 -13
  320. package/dist/components/ui/button.d.ts +1 -1
  321. package/dist/components/ui/checkbox.d.ts +6 -0
  322. package/dist/components/ui/overlay.recipes.d.ts +6 -2
  323. package/dist/components/ui/select.d.ts +3 -1
  324. package/dist/components/ui/switch.d.ts +5 -0
  325. package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
  326. package/dist/containers-DmWiJa2I.js.map +1 -0
  327. package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
  328. package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  329. package/dist/data-display-DafIvCl5.js +960 -0
  330. package/dist/data-display-DafIvCl5.js.map +1 -0
  331. package/dist/date-BgK3bTdo.js +144 -0
  332. package/dist/date-BgK3bTdo.js.map +1 -0
  333. package/dist/date-picker-CF-DtUpF.js +1529 -0
  334. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  335. package/dist/date-pickers-BmzxJl5l.js +174 -0
  336. package/dist/date-pickers-BmzxJl5l.js.map +1 -0
  337. package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
  338. package/dist/display-DsQTVzMz.js.map +1 -0
  339. package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
  340. package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
  341. package/dist/features/activities.js +437 -521
  342. package/dist/features/activities.js.map +1 -1
  343. package/dist/features/ai-chat.js +174 -172
  344. package/dist/features/ai-chat.js.map +1 -1
  345. package/dist/features/async-preview.js +8 -8
  346. package/dist/features/async-preview.js.map +1 -1
  347. package/dist/features/combobox.js +1 -1
  348. package/dist/features/comments.js +1 -1
  349. package/dist/features/data-view.js +139 -138
  350. package/dist/features/data-view.js.map +1 -1
  351. package/dist/features/email-composer/engine.js +1 -1
  352. package/dist/features/email-composer.js +353 -352
  353. package/dist/features/email-composer.js.map +1 -1
  354. package/dist/features/event-calendar.js +262 -269
  355. package/dist/features/event-calendar.js.map +1 -1
  356. package/dist/features/filters.js +1 -1
  357. package/dist/features/global-search.js +307 -310
  358. package/dist/features/global-search.js.map +1 -1
  359. package/dist/features/kanban.js +95 -97
  360. package/dist/features/kanban.js.map +1 -1
  361. package/dist/features/map.js +56 -57
  362. package/dist/features/map.js.map +1 -1
  363. package/dist/features/media-library.js +914 -824
  364. package/dist/features/media-library.js.map +1 -1
  365. package/dist/features/mentions.js +1 -1
  366. package/dist/features/overlays.js +1 -1
  367. package/dist/features/products.js +1272 -1311
  368. package/dist/features/products.js.map +1 -1
  369. package/dist/features/questionnaire.js +204 -194
  370. package/dist/features/questionnaire.js.map +1 -1
  371. package/dist/features/resource-assignment.js +103 -95
  372. package/dist/features/resource-assignment.js.map +1 -1
  373. package/dist/features/resource.js +77 -69
  374. package/dist/features/resource.js.map +1 -1
  375. package/dist/features/rich-text-editor.js +30 -11
  376. package/dist/features/rich-text-editor.js.map +1 -1
  377. package/dist/features/schema-form.js +193 -189
  378. package/dist/features/schema-form.js.map +1 -1
  379. package/dist/features/suggestions.js +3 -3
  380. package/dist/features/sync.js +7 -7
  381. package/dist/features/sync.js.map +1 -1
  382. package/dist/features/table.js +1 -1
  383. package/dist/features/theme-tweaker.js +455 -455
  384. package/dist/features/theme-tweaker.js.map +1 -1
  385. package/dist/feedback-qNuMBtRH.js +233 -0
  386. package/dist/feedback-qNuMBtRH.js.map +1 -0
  387. package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
  388. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  389. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  390. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  391. package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
  392. package/dist/filters-BkHH53uv.js.map +1 -0
  393. package/dist/focus-recipes-B653VaLq.js +12 -0
  394. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  395. package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
  396. package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
  397. package/dist/form-sizing-By94KzXE.js +130 -0
  398. package/dist/form-sizing-By94KzXE.js.map +1 -0
  399. package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
  400. package/dist/forms-Bzha-Y3B.js.map +1 -0
  401. package/dist/forms-numeric-C0bvjRPZ.js +906 -0
  402. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  403. package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
  404. package/dist/header-BOefOKd1.js.map +1 -0
  405. package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
  406. package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
  407. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  408. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  409. package/dist/icon-badge-CAuKupo9.js +55 -0
  410. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  411. package/dist/index.js +7 -7
  412. package/dist/input-DWhBBBww.js +262 -0
  413. package/dist/input-DWhBBBww.js.map +1 -0
  414. package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
  415. package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
  416. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  417. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  418. package/dist/item-DEmDiTlD.js +265 -0
  419. package/dist/item-DEmDiTlD.js.map +1 -0
  420. package/dist/layer-recipes-CCpklYME.js +13 -0
  421. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  422. package/dist/layout/app-shell.js +1 -1
  423. package/dist/layout/auth.js +1 -1
  424. package/dist/layout/containers.js +1 -1
  425. package/dist/layout/header.js +1 -1
  426. package/dist/layout/hooks.js +1 -1
  427. package/dist/layout/navigation.js +1 -1
  428. package/dist/layout/page.js +1 -1
  429. package/dist/layout/settings.js +1 -1
  430. package/dist/layout/sidebar.js +2 -2
  431. package/dist/layout/workspace.js +1 -1
  432. package/dist/layout.js +10 -10
  433. package/dist/lib/affordance-geometry.generated.d.ts +7 -1
  434. package/dist/lib/field-affordance-recipes.d.ts +41 -1
  435. package/dist/lib/field-state-recipes.d.ts +9 -6
  436. package/dist/lib/focus-recipes.d.ts +24 -0
  437. package/dist/lib/format.d.ts +9 -0
  438. package/dist/lib/interaction-recipes.d.ts +35 -0
  439. package/dist/lib/layer-recipes.d.ts +19 -0
  440. package/dist/lib/money-format.d.ts +30 -0
  441. package/dist/lib/motion-recipes.d.ts +1 -0
  442. package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
  443. package/dist/lib/safe-image-src.d.ts +10 -0
  444. package/dist/lib/sanitize-html.d.ts +15 -3
  445. package/dist/lib/surface-recipes.d.ts +48 -6
  446. package/dist/lib/token-merge.generated.d.ts +17 -14
  447. package/dist/lib/tone-recipes.d.ts +79 -0
  448. package/dist/lib/track-recipes.d.ts +1 -1
  449. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  450. package/dist/lib/ui-provider/index.d.ts +2 -2
  451. package/dist/lib/ui-provider/provider.d.ts +7 -2
  452. package/dist/lib/ui-provider/store.d.ts +6 -2
  453. package/dist/lib/ui-provider/types.d.ts +14 -2
  454. package/dist/lib/utils.js +1 -1
  455. package/dist/media-gallery-DcTtAaeC.js +203 -0
  456. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  457. package/dist/mentions-D-uyCh01.js +568 -0
  458. package/dist/mentions-D-uyCh01.js.map +1 -0
  459. package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
  460. package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
  461. package/dist/metadata-list-X5rYAKSB.js +394 -0
  462. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  463. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  464. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  465. package/dist/navigation-D3KwXmaq.js +145 -0
  466. package/dist/navigation-D3KwXmaq.js.map +1 -0
  467. package/dist/navigation-HJf5zxlH.js +268 -0
  468. package/dist/navigation-HJf5zxlH.js.map +1 -0
  469. package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
  470. package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  471. package/dist/number-DMhe-Vsk.js +352 -0
  472. package/dist/number-DMhe-Vsk.js.map +1 -0
  473. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  474. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  475. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  476. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  477. package/dist/overlays-I0axtYA6.js +999 -0
  478. package/dist/overlays-I0axtYA6.js.map +1 -0
  479. package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
  480. package/dist/page-B5dTH9gE.js.map +1 -0
  481. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  482. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  483. package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
  484. package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
  485. package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
  486. package/dist/popover-Di55PyAI.js.map +1 -0
  487. package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
  488. package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  489. package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
  490. package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  491. package/dist/primitives-B-CkiEMU.js +379 -0
  492. package/dist/primitives-B-CkiEMU.js.map +1 -0
  493. package/dist/primitives.js +5 -5
  494. package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
  495. package/dist/progress-rnS8-uAW.js.map +1 -0
  496. package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
  497. package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
  498. package/dist/rich-text-DvGulsNJ.js +78 -0
  499. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  500. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  501. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  502. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  503. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  504. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  505. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  506. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  507. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  508. package/dist/sanitize-html-DsQmI48u.js +92 -0
  509. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  510. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  511. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  512. package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
  513. package/dist/separator-C8DlRGwF.js.map +1 -0
  514. package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
  515. package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
  516. package/dist/services/actions/action-adapters.d.ts +22 -0
  517. package/dist/services/actions/index.d.ts +1 -1
  518. package/dist/services/actions.js +23 -6
  519. package/dist/services/actions.js.map +1 -1
  520. package/dist/settings-CQW3b-Cu.js +170 -0
  521. package/dist/settings-CQW3b-Cu.js.map +1 -0
  522. package/dist/sheet-4SEvVYzA.js +210 -0
  523. package/dist/sheet-4SEvVYzA.js.map +1 -0
  524. package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
  525. package/dist/sidebar-C7WWR29L.js.map +1 -0
  526. package/dist/sidebar-d7Dg80ln.js +511 -0
  527. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  528. package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
  529. package/dist/skeleton-Cz890JZF.js.map +1 -0
  530. package/dist/smart-card-lFKxn5Hu.js +595 -0
  531. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  532. package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
  533. package/dist/spinner-fa3h1Aif.js.map +1 -0
  534. package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
  535. package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
  536. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  537. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  538. package/dist/style.css +1 -1
  539. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  540. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  541. package/dist/table-CIKyLUsy.js +163 -0
  542. package/dist/table-CIKyLUsy.js.map +1 -0
  543. package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
  544. package/dist/table-CrcLN9Io.js.map +1 -0
  545. package/dist/tabs-DwBJfjxX.js +190 -0
  546. package/dist/tabs-DwBJfjxX.js.map +1 -0
  547. package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
  548. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  549. package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
  550. package/dist/text.styles-g4He6UIW.js.map +1 -0
  551. package/dist/theme.css +16 -12
  552. package/dist/themes/green.css +24 -0
  553. package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
  554. package/dist/timelines-C_SBwHNP.js.map +1 -0
  555. package/dist/tone-recipes-CPoExcTE.js +70 -0
  556. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  557. package/dist/tooltip-CsfgrfS7.js +111 -0
  558. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  559. package/dist/track-recipes-CDcKmndW.js +10 -0
  560. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  561. package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
  562. package/dist/tree-BiKhg8AY.js.map +1 -0
  563. package/dist/typography/rich-text.js +1 -1
  564. package/dist/typography-DTRkE9zL.js +117 -0
  565. package/dist/typography-DTRkE9zL.js.map +1 -0
  566. package/dist/typography.js +2 -2
  567. package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
  568. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  569. package/dist/ui-provider.js +3 -3
  570. package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
  571. package/dist/upload-BO8-CLN6.js.map +1 -0
  572. package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
  573. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  574. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  575. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  576. package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
  577. package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
  578. package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
  579. package/dist/utils-l5LpDw2z.js.map +1 -0
  580. package/dist/value-inputs-TAYMX111.js +947 -0
  581. package/dist/value-inputs-TAYMX111.js.map +1 -0
  582. package/dist/value-typography-b8wpz1eX.js +116 -0
  583. package/dist/value-typography-b8wpz1eX.js.map +1 -0
  584. package/dist/workspace-DH0v0KcB.js +407 -0
  585. package/dist/workspace-DH0v0KcB.js.map +1 -0
  586. package/docs/consumer-skill/SKILL.md +62 -50
  587. package/docs/consumer-skill/examples/app-layout.tsx +3 -5
  588. package/docs/consumer-skill/examples/composition.tsx +3 -3
  589. package/docs/consumer-skill/examples/detail.tsx +59 -13
  590. package/docs/consumer-skill/examples/edit.tsx +2 -2
  591. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  592. package/docs/consumer-skill/examples/manifest.json +28 -6
  593. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  594. package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
  595. package/docs/consumer-skill/examples/website.tsx +1 -1
  596. package/docs/consumer-skill/references/agents-md.md +33 -0
  597. package/docs/consumer-skill/references/analytics.md +1 -1
  598. package/docs/consumer-skill/references/composition.md +139 -24
  599. package/docs/consumer-skill/references/design-contract.md +12 -3
  600. package/docs/consumer-skill/references/discovery.md +4 -0
  601. package/docs/consumer-skill/references/installation.md +33 -1
  602. package/docs/consumer-skill/references/integration.md +32 -1
  603. package/docs/consumer-skill/references/public-api.json +1051 -610
  604. package/docs/consumer-skill/references/review.md +44 -8
  605. package/docs/consumer-skill/references/theming.md +14 -4
  606. package/docs/consumer-skill/references/tokens.json +5 -2
  607. package/docs/consumer-skill/references/workflows.md +30 -9
  608. package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
  609. package/docs/consumer-skill/scripts/discovery.mjs +11 -3
  610. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  611. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  612. package/package.json +13 -3
  613. package/dist/accordion-BRTcsp8J.js +0 -205
  614. package/dist/accordion-BRTcsp8J.js.map +0 -1
  615. package/dist/action-menu-Drxw_vJk.js +0 -265
  616. package/dist/action-menu-Drxw_vJk.js.map +0 -1
  617. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
  618. package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
  619. package/dist/attachment-DbjUWsP0.js +0 -244
  620. package/dist/attachment-DbjUWsP0.js.map +0 -1
  621. package/dist/auth-CAQcasMV.js.map +0 -1
  622. package/dist/avatar-Bu2HhitA.js.map +0 -1
  623. package/dist/badge-CzId1Wlm.js +0 -92
  624. package/dist/badge-CzId1Wlm.js.map +0 -1
  625. package/dist/breadcrumbs-BuYz5SDU.js +0 -128
  626. package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
  627. package/dist/button-BZDasD04.js +0 -651
  628. package/dist/button-BZDasD04.js.map +0 -1
  629. package/dist/button-BZyfTvwm.js.map +0 -1
  630. package/dist/buttons-D_6KJvEE.js +0 -99
  631. package/dist/buttons-D_6KJvEE.js.map +0 -1
  632. package/dist/cards-qGSErLw_.js.map +0 -1
  633. package/dist/chart-Bsc5BICK.js.map +0 -1
  634. package/dist/checkbox-BQNDjUCh.js +0 -34
  635. package/dist/checkbox-BQNDjUCh.js.map +0 -1
  636. package/dist/choice-inputs-Mk3iWbhr.js +0 -725
  637. package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
  638. package/dist/code-block-DzHKRybS.js +0 -183
  639. package/dist/code-block-DzHKRybS.js.map +0 -1
  640. package/dist/combobox-BFnbJJp3.js.map +0 -1
  641. package/dist/combobox-hozNwUcc.js +0 -847
  642. package/dist/combobox-hozNwUcc.js.map +0 -1
  643. package/dist/command-BnmSchli.js.map +0 -1
  644. package/dist/comments-u5L0OGip.js.map +0 -1
  645. package/dist/containers-DqB-bSYE.js.map +0 -1
  646. package/dist/data-display-Bihs9Ven.js +0 -1342
  647. package/dist/data-display-Bihs9Ven.js.map +0 -1
  648. package/dist/date-DOKhJPu7.js +0 -140
  649. package/dist/date-DOKhJPu7.js.map +0 -1
  650. package/dist/date-picker-DzP5HQq7.js +0 -1541
  651. package/dist/date-picker-DzP5HQq7.js.map +0 -1
  652. package/dist/date-pickers-BpgGz7S-.js +0 -196
  653. package/dist/date-pickers-BpgGz7S-.js.map +0 -1
  654. package/dist/display-CS6Hbk18.js.map +0 -1
  655. package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
  656. package/dist/feedback-CJkUAapr.js +0 -233
  657. package/dist/feedback-CJkUAapr.js.map +0 -1
  658. package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
  659. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
  660. package/dist/field-state-recipes-DQQpiLWC.js +0 -11
  661. package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
  662. package/dist/filters-D6FF8L6s.js.map +0 -1
  663. package/dist/form-sizing-QP8aIRaW.js +0 -103
  664. package/dist/form-sizing-QP8aIRaW.js.map +0 -1
  665. package/dist/format-iamDSqs2.js +0 -110
  666. package/dist/format-iamDSqs2.js.map +0 -1
  667. package/dist/forms-B5NCbkSC.js.map +0 -1
  668. package/dist/forms-numeric-Crrm80Lm.js +0 -867
  669. package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
  670. package/dist/header-kxruN3RM.js.map +0 -1
  671. package/dist/icon-badge-Btc6pQrp.js +0 -53
  672. package/dist/icon-badge-Btc6pQrp.js.map +0 -1
  673. package/dist/input-SX9V0AL3.js +0 -255
  674. package/dist/input-SX9V0AL3.js.map +0 -1
  675. package/dist/item-DE4YnuJx.js +0 -258
  676. package/dist/item-DE4YnuJx.js.map +0 -1
  677. package/dist/media-gallery-DLp3HAz0.js +0 -201
  678. package/dist/media-gallery-DLp3HAz0.js.map +0 -1
  679. package/dist/mentions-Cl0Kt_Pd.js +0 -565
  680. package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
  681. package/dist/navigation-DnQSNMT0.js +0 -276
  682. package/dist/navigation-DnQSNMT0.js.map +0 -1
  683. package/dist/navigation-DyytsLRB.js +0 -265
  684. package/dist/navigation-DyytsLRB.js.map +0 -1
  685. package/dist/number-DasMFWEG.js +0 -269
  686. package/dist/number-DasMFWEG.js.map +0 -1
  687. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  688. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  689. package/dist/overlays-DUbs1KEi.js +0 -1011
  690. package/dist/overlays-DUbs1KEi.js.map +0 -1
  691. package/dist/page-hGmT4nWK.js.map +0 -1
  692. package/dist/page-header-D8nERkn5.js +0 -112
  693. package/dist/page-header-D8nERkn5.js.map +0 -1
  694. package/dist/popover-CghIYdQf.js.map +0 -1
  695. package/dist/primitives-C7ff0QaI.js +0 -337
  696. package/dist/primitives-C7ff0QaI.js.map +0 -1
  697. package/dist/progress-BroqrAyV.js.map +0 -1
  698. package/dist/rich-text-DlxDOtf4.js +0 -32
  699. package/dist/rich-text-DlxDOtf4.js.map +0 -1
  700. package/dist/rich-text-editor-BKyG7rWz.js +0 -574
  701. package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
  702. package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
  703. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +0 -1
  704. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  705. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  706. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  707. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  708. package/dist/scroll-area-D-pIhEKl.js +0 -47
  709. package/dist/scroll-area-D-pIhEKl.js.map +0 -1
  710. package/dist/separator-BNIgG3au.js.map +0 -1
  711. package/dist/settings-DOTOzeZ2.js +0 -161
  712. package/dist/settings-DOTOzeZ2.js.map +0 -1
  713. package/dist/sheet-BFhrNehm.js +0 -205
  714. package/dist/sheet-BFhrNehm.js.map +0 -1
  715. package/dist/sidebar-CyR4XKwR.js.map +0 -1
  716. package/dist/sidebar-SvGJ0Zwi.js +0 -506
  717. package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
  718. package/dist/skeleton-3F0uhYn3.js.map +0 -1
  719. package/dist/smart-card-DjGVV2xr.js +0 -584
  720. package/dist/smart-card-DjGVV2xr.js.map +0 -1
  721. package/dist/spinner-Cpf7oRkF.js.map +0 -1
  722. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  723. package/dist/surface-recipes-Dd__PD-w.js +0 -28
  724. package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
  725. package/dist/table-CLtJTxoR.js +0 -147
  726. package/dist/table-CLtJTxoR.js.map +0 -1
  727. package/dist/table-CcRDZiLP.js.map +0 -1
  728. package/dist/tabs-BNgu7g0u.js +0 -188
  729. package/dist/tabs-BNgu7g0u.js.map +0 -1
  730. package/dist/text-inputs-DsR56TR-.js.map +0 -1
  731. package/dist/text.styles-Q4sGAIgA.js.map +0 -1
  732. package/dist/timelines-D1pkt3se.js.map +0 -1
  733. package/dist/track-recipes-LLPNVwFg.js +0 -10
  734. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  735. package/dist/tree-BtmYyMZV.js.map +0 -1
  736. package/dist/typography-BxQgiZyw.js +0 -96
  737. package/dist/typography-BxQgiZyw.js.map +0 -1
  738. package/dist/ui-provider-DRPn3qNl.js.map +0 -1
  739. package/dist/upload-CDbYw1WN.js.map +0 -1
  740. package/dist/upload-queue-CNd_hH_a.js.map +0 -1
  741. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  742. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  743. package/dist/utils-BvH9PSmq.js.map +0 -1
  744. package/dist/value-inputs-D0KCrfVC.js +0 -840
  745. package/dist/value-inputs-D0KCrfVC.js.map +0 -1
  746. package/dist/workspace-CcR8r-Nt.js +0 -395
  747. package/dist/workspace-CcR8r-Nt.js.map +0 -1
  748. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,34 +1,37 @@
1
1
  "use client";
2
- import { _ as e, s as t } from "./ui-provider-DRPn3qNl.js";
3
- import { t as n } from "./utils-BvH9PSmq.js";
4
- import { a as r, r as i, t as a } from "./typography-BxQgiZyw.js";
5
- import { t as o } from "./button-BZDasD04.js";
6
- import { t as s } from "./structure-CRdqVawd.js";
7
- import { n as c, t as l } from "./action-menu-Drxw_vJk.js";
8
- import { _ as u, c as d, d as f, g as p, h as m, i as h, l as g, m as _, o as v, p as y, s as b } from "./primitives-C7ff0QaI.js";
9
- import { t as x } from "./initials-format-CDoQEOd_.js";
10
- import { n as S, r as C, t as w } from "./number-DasMFWEG.js";
11
- import { a as T, i as E, r as ee, s as D, t as O } from "./date-DOKhJPu7.js";
12
- import { t as te } from "./badge-CzId1Wlm.js";
13
- import { t as ne } from "./separator-BNIgG3au.js";
14
- import { t as re } from "./input-SX9V0AL3.js";
15
- import { t as ie } from "./checkbox-BQNDjUCh.js";
16
- import { a as ae, c as k, i as oe, n as se, o as ce, r as le, s as ue, t as de } from "./pagination-NLGqRirf.js";
17
- import { c as A, i as fe, n as pe, o as me, s as he, t as ge } from "./table-CLtJTxoR.js";
18
- import { l as _e } from "./data-display-Bihs9Ven.js";
19
- import { r as j, t as ve } from "./control-group-recipes-DBXmfh2E.js";
20
- import { createContext as ye, isValidElement as be, useCallback as M, useContext as xe, useEffect as N, useMemo as P, useRef as F, useState as I } from "react";
21
- import { Fragment as Se, jsx as L, jsxs as R } from "react/jsx-runtime";
22
- import { ArrowDown as Ce, ArrowUp as we, Calendar as z, ChevronLeft as Te, ChevronRight as B, ChevronsUpDown as Ee, Mail as De, Maximize2 as Oe, Minimize2 as ke, MoreHorizontal as Ae, PackageOpen as je, Settings2 as Me } from "lucide-react";
23
- import { flexRender as V, getCoreRowModel as Ne, getFilteredRowModel as Pe, getSortedRowModel as Fe, useReactTable as Ie } from "@tanstack/react-table";
2
+ import { s as e, v as t } from "./ui-provider-1D_NSYzO.js";
3
+ import { t as n } from "./utils-l5LpDw2z.js";
4
+ import { n as r } from "./buttons-SbIcm1HJ.js";
5
+ import { a as i, s as a, t as o } from "./typography-DTRkE9zL.js";
6
+ import { t as s } from "./focus-recipes-B653VaLq.js";
7
+ import { t as c } from "./structure-DC2dygdA.js";
8
+ import { n as l, t as u } from "./action-menu-TzCoSlwL.js";
9
+ import { t as d } from "./interaction-recipes-CHr0dJUs.js";
10
+ import { _ as f, c as p, d as m, g as h, h as g, i as _, l as v, m as y, o as b, p as x, s as S } from "./primitives-B-CkiEMU.js";
11
+ import { t as C } from "./initials-format-CDoQEOd_.js";
12
+ import { n as w, r as T, t as ee } from "./number-DMhe-Vsk.js";
13
+ import { a as te, i as E, r as ne, s as re, t as D } from "./date-BgK3bTdo.js";
14
+ import { t as O } from "./badge-MrKVNzW9.js";
15
+ import { t as ie } from "./batch-action-bar-BZGDG-Si.js";
16
+ import { t as ae } from "./separator-C8DlRGwF.js";
17
+ import { t as oe } from "./input-DWhBBBww.js";
18
+ import { t as se } from "./checkbox-DhB6K0bK.js";
19
+ import { r as k, t as ce } from "./control-group-recipes-DBXmfh2E.js";
20
+ import { a as le, c as ue, i as de, n as fe, o as pe, r as me, s as he, t as ge } from "./pagination-3bPA_a6K.js";
21
+ import { c as A, i as _e, n as ve, o as ye, s as be, t as xe } from "./table-CIKyLUsy.js";
22
+ import { s as Se } from "./data-display-DafIvCl5.js";
23
+ import { createContext as Ce, isValidElement as j, useCallback as M, useContext as we, useEffect as N, useMemo as P, useRef as F, useState as I } from "react";
24
+ import { Fragment as Te, jsx as L, jsxs as R } from "react/jsx-runtime";
25
+ import { ArrowDown as Ee, ArrowUp as z, Calendar as De, ChevronLeft as Oe, ChevronRight as ke, ChevronsUpDown as Ae, Mail as je, Maximize2 as Me, Minimize2 as Ne, PackageOpen as B, Settings2 as Pe } from "lucide-react";
26
+ import { flexRender as Fe, getCoreRowModel as Ie, getFilteredRowModel as Le, getSortedRowModel as Re, useReactTable as ze } from "@tanstack/react-table";
24
27
  //#region src/components/features/table/hooks.ts
25
- var Le = 300;
26
- function H(e) {
28
+ var Be = 300;
29
+ function Ve(e) {
27
30
  return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
28
31
  }
29
- function Re(e, t = {}) {
30
- let { stepPx: n = Le, deps: r = [] } = t, [i, a] = I(!1), [o, s] = I(!1), c = F(0), l = M(() => {
31
- let t = H(e.current);
32
+ function He(e, t = {}) {
33
+ let { stepPx: n = Be, deps: r = [] } = t, [i, a] = I(!1), [o, s] = I(!1), c = F(0), l = M(() => {
34
+ let t = Ve(e.current);
32
35
  if (!t) {
33
36
  a(!1), s(!1);
34
37
  return;
@@ -39,7 +42,7 @@ function Re(e, t = {}) {
39
42
  N(() => {
40
43
  let t, n = window.setTimeout(() => {
41
44
  l();
42
- let n = H(e.current);
45
+ let n = Ve(e.current);
43
46
  if (!n) return;
44
47
  let r = () => {
45
48
  cancelAnimationFrame(c.current), c.current = requestAnimationFrame(l);
@@ -59,7 +62,7 @@ function Re(e, t = {}) {
59
62
  ...r
60
63
  ]);
61
64
  let u = M((t) => {
62
- H(e.current)?.scrollBy({
65
+ Ve(e.current)?.scrollBy({
63
66
  left: t,
64
67
  behavior: "smooth"
65
68
  });
@@ -72,7 +75,7 @@ function Re(e, t = {}) {
72
75
  scrollRight: M(() => u(n), [u, n])
73
76
  };
74
77
  }
75
- var ze = [
78
+ var Ue = [
76
79
  "a[href]",
77
80
  "button:not([disabled])",
78
81
  "input:not([disabled])",
@@ -80,7 +83,7 @@ var ze = [
80
83
  "textarea:not([disabled])",
81
84
  "[tabindex]:not([tabindex=\"-1\"])"
82
85
  ].join(",");
83
- function Be(e, t, n) {
86
+ function We(e, t, n) {
84
87
  let r = F(n);
85
88
  r.current = n, N(() => {
86
89
  if (!e || typeof document > "u") return;
@@ -94,7 +97,7 @@ function Be(e, t, n) {
94
97
  return;
95
98
  }
96
99
  if (e.key !== "Tab") return;
97
- let i = Array.from(n.querySelectorAll(ze)).filter((e) => e.offsetParent !== null || e === document.activeElement);
100
+ let i = Array.from(n.querySelectorAll(Ue)).filter((e) => e.offsetParent !== null || e === document.activeElement);
98
101
  if (i.length === 0) return;
99
102
  let a = i[0], o = i[i.length - 1], s = document.activeElement, c = s instanceof Node && n.contains(s);
100
103
  e.shiftKey && (!c || s === a) ? (e.preventDefault(), o.focus()) : !e.shiftKey && (!c || s === o) && (e.preventDefault(), a.focus());
@@ -108,14 +111,15 @@ function Be(e, t, n) {
108
111
  }
109
112
  //#endregion
110
113
  //#region src/components/features/table/table.strings.ts
111
- var Ve = (e) => {
114
+ var Ge = (e) => {
112
115
  let t = e.replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim();
113
116
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : "Column";
114
- }, U = {
117
+ }, V = {
115
118
  emptyState: { message: "No results found." },
116
119
  actions: {
117
120
  triggerLabel: "Actions",
118
- srLabel: "Row actions menu"
121
+ srLabel: "Row actions menu",
122
+ menuLabel: "More actions"
119
123
  },
120
124
  filter: {
121
125
  searchPlaceholder: "Filter...",
@@ -124,7 +128,7 @@ var Ve = (e) => {
124
128
  columnVisibility: {
125
129
  title: "Toggle columns",
126
130
  triggerLabel: "Columns",
127
- formatLabel: (e, t) => t && t.trim().length > 0 ? t : Ve(e)
131
+ formatLabel: (e, t) => t && t.trim().length > 0 ? t : Ge(e)
128
132
  },
129
133
  toolbar: {
130
134
  scrollLeft: "Scroll left",
@@ -157,22 +161,25 @@ var Ve = (e) => {
157
161
  scrollRegion: "Table scroll area",
158
162
  fullscreenRegion: "Table, full screen"
159
163
  }
160
- }, W = (e, t) => ({
164
+ }, H = (e, t) => ({
161
165
  ...e,
162
166
  ...t
163
- }), He = (e) => e ? {
164
- emptyState: W(U.emptyState, e.emptyState),
165
- actions: W(U.actions, e.actions),
166
- filter: W(U.filter, e.filter),
167
- columnVisibility: W(U.columnVisibility, e.columnVisibility),
168
- toolbar: W(U.toolbar, e.toolbar),
169
- pagination: W(U.pagination, e.pagination),
170
- selection: W(U.selection, e.selection),
171
- accessibility: W(U.accessibility, e.accessibility)
172
- } : U;
167
+ }), Ke = (e) => e ? {
168
+ emptyState: H(V.emptyState, e.emptyState),
169
+ actions: {
170
+ ...H(V.actions, e.actions),
171
+ ...e.actions?.triggerLabel !== void 0 && e.actions.menuLabel === void 0 ? { menuLabel: e.actions.triggerLabel } : {}
172
+ },
173
+ filter: H(V.filter, e.filter),
174
+ columnVisibility: H(V.columnVisibility, e.columnVisibility),
175
+ toolbar: H(V.toolbar, e.toolbar),
176
+ pagination: H(V.pagination, e.pagination),
177
+ selection: H(V.selection, e.selection),
178
+ accessibility: H(V.accessibility, e.accessibility)
179
+ } : V;
173
180
  //#endregion
174
181
  //#region src/components/features/table/pagination.tsx
175
- function Ue(e, t) {
182
+ function qe(e, t) {
176
183
  if (t <= 7) return Array.from({ length: t }, (e, t) => t + 1);
177
184
  let n = [1];
178
185
  e > 3 && n.push("ellipsis");
@@ -180,38 +187,38 @@ function Ue(e, t) {
180
187
  for (let e = r; e <= i; e++) n.push(e);
181
188
  return e < t - 2 && n.push("ellipsis"), n.push(t), n;
182
189
  }
183
- function We(e, t, n) {
190
+ function Je(e, t, n) {
184
191
  let r = new URLSearchParams();
185
192
  return r.set(n, String(t)), `${e}?${r.toString()}`;
186
193
  }
187
- function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
194
+ function Ye({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i }) {
188
195
  let a = {
189
- ...U.pagination,
196
+ ...V.pagination,
190
197
  ...r
191
198
  }, o = {
192
199
  navigationLabel: a.ariaLabel,
193
200
  previous: a.previous,
194
201
  next: a.next,
195
- previousLabel: a.previousLabel ?? k.previousLabel,
196
- nextLabel: a.nextLabel ?? k.nextLabel,
197
- morePages: a.morePages ?? k.morePages
202
+ previousLabel: a.previousLabel ?? ue.previousLabel,
203
+ nextLabel: a.nextLabel ?? ue.nextLabel,
204
+ morePages: a.morePages ?? ue.morePages
198
205
  }, s = i ?? "page", c = (e.current_page - 1) * e.per_page + 1, l = Math.min(e.current_page * e.per_page, e.total), u = M((n, r) => {
199
206
  r && t?.(n, r, e.path || "");
200
- }, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, m = Ue(e.current_page, e.last_page);
207
+ }, [t, e.path]), d = e.prev_page_url !== null, f = e.next_page_url !== null, p = qe(e.current_page, e.last_page);
201
208
  return /* @__PURE__ */ R("div", {
202
209
  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"),
203
- children: [/* @__PURE__ */ R(p, {
210
+ children: [/* @__PURE__ */ R(h, {
204
211
  size: "xs",
205
212
  className: "tabular-nums tracking-tight",
206
213
  children: [
207
- /* @__PURE__ */ L(w, {
214
+ /* @__PURE__ */ L(ee, {
208
215
  value: c,
209
216
  size: "xs",
210
217
  weight: "medium",
211
218
  align: "left"
212
219
  }),
213
220
  "–",
214
- /* @__PURE__ */ L(w, {
221
+ /* @__PURE__ */ L(ee, {
215
222
  value: l,
216
223
  size: "xs",
217
224
  weight: "medium",
@@ -220,7 +227,7 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
220
227
  " ",
221
228
  a.of,
222
229
  " ",
223
- /* @__PURE__ */ L(w, {
230
+ /* @__PURE__ */ L(ee, {
224
231
  value: e.total,
225
232
  size: "xs",
226
233
  weight: "medium",
@@ -229,13 +236,13 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
229
236
  " ",
230
237
  a.entries
231
238
  ]
232
- }), /* @__PURE__ */ L(ue, {
239
+ }), /* @__PURE__ */ L(he, {
233
240
  strings: o,
234
241
  className: "mx-0 w-full justify-start sm:w-auto sm:justify-center",
235
- children: /* @__PURE__ */ R(de, {
242
+ children: /* @__PURE__ */ R(ge, {
236
243
  className: "gap-0 sm:gap-space-2xs",
237
244
  children: [
238
- /* @__PURE__ */ L(le, { children: /* @__PURE__ */ L(ce, {
245
+ /* @__PURE__ */ L(me, { children: /* @__PURE__ */ L(pe, {
239
246
  text: a.previous,
240
247
  href: "#",
241
248
  onClick: (t) => {
@@ -244,19 +251,19 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
244
251
  "aria-disabled": !d,
245
252
  className: `h-action-sm text-pxs ${d ? "" : "pointer-events-none opacity-40"}`
246
253
  }) }),
247
- m.map((t, n) => {
254
+ p.map((t, n) => {
248
255
  let r = t === "ellipsis", i = r ? `ellipsis-${e.current_page}-${n}` : `page-${t}`;
249
- return /* @__PURE__ */ L(le, { children: r ? /* @__PURE__ */ L(se, { className: "size-action-sm" }) : /* @__PURE__ */ L(oe, {
256
+ return /* @__PURE__ */ L(me, { children: r ? /* @__PURE__ */ L(fe, { className: "size-action-sm" }) : /* @__PURE__ */ L(de, {
250
257
  href: "#",
251
258
  active: t === e.current_page,
252
259
  onClick: (n) => {
253
- n.preventDefault(), u(t, We(e.path, t, s));
260
+ n.preventDefault(), u(t, Je(e.path, t, s));
254
261
  },
255
262
  className: "size-action-sm text-pxs",
256
263
  children: t
257
264
  }) }, i);
258
265
  }),
259
- /* @__PURE__ */ L(le, { children: /* @__PURE__ */ L(ae, {
266
+ /* @__PURE__ */ L(me, { children: /* @__PURE__ */ L(le, {
260
267
  text: a.next,
261
268
  href: "#",
262
269
  onClick: (t) => {
@@ -270,11 +277,11 @@ function Ge({ pagination: e, onPageChange: t, labels: r = {}, pageQueryKey: i })
270
277
  })]
271
278
  });
272
279
  }
273
- Ge.displayName = "Pagination";
280
+ Ye.displayName = "Pagination";
274
281
  //#endregion
275
282
  //#region src/components/features/table/table-actions.tsx
276
- function Ke(e) {
277
- let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, u = s ?? U, d = i ?? u.actions.triggerLabel, f = P(() => {
283
+ function Xe(e) {
284
+ let { row: t, actions: r, menuLabel: i, displayMode: a = "menu", responsiveBreakpoint: o = 1040, strings: s } = e, c = s ?? V, d = i ?? c.actions.menuLabel ?? c.actions.triggerLabel, f = P(() => {
278
285
  let e = typeof r == "function" ? r(t) : r;
279
286
  return Array.isArray(e) ? e : [];
280
287
  }, [r, t]), p = P(() => {
@@ -315,100 +322,98 @@ function Ke(e) {
315
322
  buttonStyle: e.buttonStyle,
316
323
  onClick: () => e.onClick?.(t)
317
324
  }));
318
- return b === "inline" ? /* @__PURE__ */ L(l, {
325
+ return b === "inline" ? /* @__PURE__ */ L(u, {
319
326
  actions: x,
320
327
  className: n("table-actions--component")
321
- }) : /* @__PURE__ */ L(c, {
328
+ }) : /* @__PURE__ */ L(l, {
322
329
  actions: x,
323
- label: void 0,
324
- icon: Ae,
325
- srText: d || u.actions.srLabel,
330
+ srText: d || c.actions.srLabel,
326
331
  closeOnSelect: !0,
327
332
  align: "end",
328
333
  density: "table"
329
334
  });
330
335
  }
331
- Ke.displayName = "DataTableActions";
336
+ Xe.displayName = "DataTableActions";
332
337
  //#endregion
333
338
  //#region src/components/features/table/table-helpers.tsx
334
- var G = (e, t, n) => {
339
+ var U = (e, t, n) => {
335
340
  typeof e == "function" ? t((t) => {
336
341
  let r = e(t);
337
342
  return n && n(r), r;
338
343
  }) : (t(e), n && n(e));
339
- }, qe = (e, t, n) => {
344
+ }, Ze = (e, t, n) => {
340
345
  typeof e == "function" ? t((t) => {
341
346
  let r = e(t);
342
347
  return n && n(r), r;
343
348
  }) : (t(e), n && n(e));
344
- }, K = (e, t, n) => {
349
+ }, W = (e, t, n) => {
345
350
  typeof e == "function" ? t((t) => {
346
351
  let r = e(t);
347
352
  return n && n(r), r;
348
353
  }) : (t(e), n && n(e));
349
- }, Je = (e, t, n, r) => {
354
+ }, Qe = (e, t, n, r) => {
350
355
  let i = "";
351
- return r && (i += "bg-primary/5 "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
352
- }, Ye = (e, t, n, r, i) => {
356
+ return r && (i += "bg-muted "), typeof n == "function" ? i += n(e, t) + " " : n && (i += n + " "), i.trim();
357
+ }, $e = (e, t, n, r, i) => {
353
358
  let a = "";
354
359
  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;
355
- }, Xe = (e) => e.getSelectedRowModel().rows.map((e) => e.original), q = (e, t = U) => /* @__PURE__ */ L("div", {
360
+ }, et = (e) => e.getSelectedRowModel().rows.map((e) => e.original), tt = (e, t = V) => /* @__PURE__ */ L("div", {
356
361
  className: "px-space-sm",
357
- children: /* @__PURE__ */ L(ie, {
358
- className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-40",
362
+ children: /* @__PURE__ */ L(se, {
363
+ className: "size-icon cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",
359
364
  checked: e.getIsSelected(),
360
365
  disabled: !e.getCanSelect(),
361
366
  onCheckedChange: (t) => e.toggleSelected(t === !0),
362
367
  onClick: (e) => e.stopPropagation(),
363
368
  "aria-label": t.selection.row(e.index)
364
369
  })
365
- }), Ze = (e, t = U) => /* @__PURE__ */ L("div", {
370
+ }), nt = (e, t = V) => /* @__PURE__ */ L("div", {
366
371
  className: "px-space-sm",
367
- children: /* @__PURE__ */ L(ie, {
372
+ children: /* @__PURE__ */ L(se, {
368
373
  className: "size-icon cursor-pointer",
369
374
  checked: e.getIsAllPageRowsSelected(),
370
375
  indeterminate: e.getIsSomePageRowsSelected() && !e.getIsAllPageRowsSelected(),
371
376
  onCheckedChange: (t) => e.toggleAllPageRowsSelected(t === !0),
372
377
  "aria-label": t.selection.selectAll
373
378
  })
374
- }), Qe = (e, t = U) => [{
379
+ }), rt = (e, t = V) => [{
375
380
  id: "selection",
376
- header: ({ table: e }) => Ze(e, t),
377
- cell: ({ row: e }) => q(e, t),
381
+ header: ({ table: e }) => nt(e, t),
382
+ cell: ({ row: e }) => tt(e, t),
378
383
  enableSorting: !1,
379
384
  enableResizing: !1,
380
385
  size: 40
381
386
  }, ...e];
382
387
  //#endregion
383
388
  //#region src/components/features/table/table-body.tsx
384
- function $e({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i, cellClassName: a = "", rowClassName: o = "", stickyFirstColumn: s = !1, striped: c = !1, strings: l }) {
385
- let u = e.getRowModel().rows, d = r ?? l?.emptyState.message ?? U.emptyState.message, f = (e) => {
389
+ function it({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i, cellClassName: a = "", rowClassName: o = "", stickyFirstColumn: s = !1, striped: c = !1, strings: l }) {
390
+ let u = e.getRowModel().rows, f = r ?? l?.emptyState.message ?? V.emptyState.message, p = (e) => {
386
391
  t && t(e);
387
392
  };
388
- return u.length ? /* @__PURE__ */ L(pe, { children: u.map((e, r) => {
389
- let i = e.getIsSelected(), l = e.getVisibleCells(), u = Je(e, r, o, i), d = () => {
390
- t && f(e.original);
391
- }, p = c && r % 2 != 0 ? "bg-muted/30" : "", m = n(u, p, "transition-colors duration-150", "hover:bg-muted/35 data-[state=selected]:bg-primary/8", t ? "cursor-pointer" : "", "border-b border-border/50 last:border-b-0");
393
+ return u.length ? /* @__PURE__ */ L(ve, { children: u.map((e, r) => {
394
+ let i = e.getIsSelected(), l = e.getVisibleCells(), u = Qe(e, r, o, i), f = () => {
395
+ t && p(e.original);
396
+ }, m = c && r % 2 != 0 ? d.tableStripe : "", h = t ? "cursor-pointer" : "", g = n(u, m, "transition-colors duration-150", `${d.tableRowHover} ${d.tableRowSelected}`, h, "border-b border-border/60 last:border-b-0");
392
397
  return /* @__PURE__ */ L(A, {
393
398
  "data-state": i ? "selected" : null,
394
- className: m,
395
- onClick: d,
396
- children: l.map((t, r) => /* @__PURE__ */ L(fe, {
397
- className: n(Ye(t.column.id, e, a, s, r === 0), t.column.columnDef.meta?.align === "end" && "text-right", t.column.columnDef.meta?.align === "center" && "text-center"),
398
- children: V(t.column.columnDef.cell, t.getContext())
399
+ className: g,
400
+ onClick: f,
401
+ children: l.map((t, r) => /* @__PURE__ */ L(_e, {
402
+ className: n($e(t.column.id, e, a, s, r === 0), t.column.columnDef.meta?.align === "end" && "text-right", t.column.columnDef.meta?.align === "center" && "text-center"),
403
+ children: Fe(t.column.columnDef.cell, t.getContext())
399
404
  }, t.id))
400
405
  }, e.id);
401
- }) }) : /* @__PURE__ */ L(pe, {
406
+ }) }) : /* @__PURE__ */ L(ve, {
402
407
  className: "table-body--component",
403
408
  children: /* @__PURE__ */ L(A, {
404
409
  className: "hover:bg-transparent",
405
- children: /* @__PURE__ */ L(fe, {
410
+ children: /* @__PURE__ */ L(_e, {
406
411
  className: "p-0! text-center whitespace-normal",
407
412
  colSpan: e.getAllColumns().length,
408
- children: /* @__PURE__ */ L(_e, {
409
- title: d,
413
+ children: /* @__PURE__ */ L(Se, {
414
+ title: f,
410
415
  description: !1,
411
- media: /* @__PURE__ */ L(je, { className: "size-icon" }),
416
+ media: /* @__PURE__ */ L(B, { className: "size-icon" }),
412
417
  mediaVariant: "icon-soft",
413
418
  actions: i,
414
419
  className: "data-table--empty-state w-[100cqw] max-w-full"
@@ -417,81 +422,81 @@ function $e({ table: e, onRowClick: t, emptyStateMessage: r, emptyStateAction: i
417
422
  })
418
423
  });
419
424
  }
420
- $e.displayName = "DataTableBody";
425
+ it.displayName = "DataTableBody";
421
426
  //#endregion
422
427
  //#region src/components/features/table/table-header.tsx
423
- function et({ table: e, enableResizing: t = !1, stickyHeader: r = !1, headerClassName: a = "", cellClassName: s = "", stickyFirstColumn: c = !1, columnGroups: l, headerTransparent: u = !1 }) {
424
- let d = e.getHeaderGroups(), f = r ? n("backdrop-blur-md shadow-[0_1px_0_0_var(--border)]", u ? "bg-background/95" : "bg-muted/95") : "", p = (e) => l ? l.find((t) => t.columns.includes(e)) : null;
425
- return /* @__PURE__ */ R(he, {
426
- className: n(r && "sticky top-0 z-20", a),
428
+ function at({ table: e, enableResizing: t = !1, stickyHeader: a = !1, headerClassName: o = "", cellClassName: c = "", stickyFirstColumn: l = !1, columnGroups: u, headerTransparent: f = !1 }) {
429
+ let p = e.getHeaderGroups(), m = a ? n("shadow-[0_1px_0_0_var(--border)]", f ? "bg-background" : "bg-muted") : "", h = (e) => u ? u.find((t) => t.columns.includes(e)) : null;
430
+ return /* @__PURE__ */ R(be, {
431
+ className: n(a && "sticky top-0 z-20", o),
427
432
  children: [(() => {
428
- if (!l || l.length === 0 || d.length === 0) return null;
429
- let e = d[0].headers, t = null, r = 0, a = [];
433
+ if (!u || u.length === 0 || p.length === 0) return null;
434
+ let e = p[0].headers, t = null, r = 0, a = [];
430
435
  return e.forEach((o, s) => {
431
- let c = p(o.id)?.header || "";
432
- c === t ? r++ : (t !== null && r > 0 && a.push(/* @__PURE__ */ L(me, {
436
+ let c = h(o.id)?.header || "";
437
+ c === t ? r++ : (t !== null && r > 0 && a.push(/* @__PURE__ */ L(ye, {
433
438
  colSpan: r,
434
- className: n("h-12 border-r border-border/60 bg-muted/35 px-surface py-row-y-sm text-center text-muted-foreground/75 last:border-r-0", f),
439
+ className: n("h-12 border-r border-border/60 bg-muted/50 px-surface py-row-y-sm text-center text-muted-foreground last:border-r-0", m),
435
440
  children: /* @__PURE__ */ L(i, { children: t || "" })
436
- }, `group-${t}-${a.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && a.push(/* @__PURE__ */ L(me, {
441
+ }, `group-${t}-${a.length}`)), t = c, r = 1), s === e.length - 1 && r > 0 && a.push(/* @__PURE__ */ L(ye, {
437
442
  colSpan: r,
438
- className: n("h-12 whitespace-nowrap border-r border-border/60 bg-muted/35 px-surface py-row-y-sm text-center text-muted-foreground/75 last:border-r-0", f),
443
+ className: n("h-12 whitespace-nowrap border-r border-border/60 bg-muted/50 px-surface py-row-y-sm text-center text-muted-foreground last:border-r-0", m),
439
444
  children: /* @__PURE__ */ L(i, { children: t || "" })
440
445
  }, `group-${t}-${a.length}`));
441
446
  }), /* @__PURE__ */ L(A, {
442
447
  className: n("table-header--component", "border-b border-border"),
443
448
  children: a
444
449
  });
445
- })(), d.map((i) => /* @__PURE__ */ L(A, {
446
- className: n("border-b border-border/70", u ? "bg-transparent hover:bg-transparent" : "bg-muted/45 hover:bg-muted/45"),
447
- children: i.headers.map((i, a) => {
448
- let l = n(Ye(i.id, null, s, c, a === 0), "h-12", "text-muted-foreground font-medium whitespace-nowrap", i.column.columnDef.meta?.align === "end" && "text-right", i.column.columnDef.meta?.align === "center" && "text-center", f, r && c && a === 0 && "z-30", !r && "bg-transparent", t && !(c && a === 0) && "relative"), u = t ? { width: i.getSize() } : void 0, d = i.getResizeHandler(), p = i.getLeafHeaders().filter((e) => e.subHeaders.length === 0), m = p.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), h = Math.min(2 ** 53 - 1, p.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), g = (t) => {
450
+ })(), p.map((i) => /* @__PURE__ */ L(A, {
451
+ className: n("border-b border-border/60", f ? "bg-transparent hover:bg-transparent" : `${d.tableHead} ${d.tableRowHover}`),
452
+ children: i.headers.map((i, o) => {
453
+ let u = n($e(i.id, null, c, l, o === 0), "h-12", "text-muted-foreground font-medium whitespace-nowrap", i.column.columnDef.meta?.align === "end" && "text-right", i.column.columnDef.meta?.align === "center" && "text-center", m, a && l && o === 0 && "z-30", !a && "bg-transparent", t && !(l && o === 0) && "relative"), d = t ? { width: i.getSize() } : void 0, f = i.getResizeHandler(), p = i.getLeafHeaders().filter((e) => e.subHeaders.length === 0), h = p.reduce((e, t) => e + (t.column.columnDef.minSize ?? 20), 0), g = Math.min(2 ** 53 - 1, p.reduce((e, t) => e + (t.column.columnDef.maxSize ?? 2 ** 53 - 1), 0)), _ = (t) => {
449
454
  e.setOptions((e) => ({
450
455
  ...e,
451
456
  columnResizeDirection: getComputedStyle(t.currentTarget).direction === "rtl" ? "rtl" : "ltr"
452
- })), d(t);
453
- }, _ = i.column.getIsResizing(), v = (() => {
457
+ })), f(t);
458
+ }, v = i.column.getIsResizing(), y = (() => {
454
459
  let e = i.column.columnDef.header;
455
460
  return typeof e == "string" ? e : typeof i.id == "string" ? i.id : "column";
456
461
  })();
457
- return /* @__PURE__ */ L(me, {
462
+ return /* @__PURE__ */ L(ye, {
458
463
  colSpan: i.colSpan,
459
- className: l,
460
- style: u,
464
+ className: u,
465
+ style: d,
461
466
  children: i.isPlaceholder ? null : /* @__PURE__ */ R("div", {
462
467
  className: n(t && i.column.getCanResize() && "pe-action-sm"),
463
468
  children: [(() => {
464
- let e = i.column.getCanSort(), t = i.column.getIsSorted(), r = V(i.column.columnDef.header, i.getContext()), a = t === "asc" ? we : t === "desc" ? Ce : Ee;
465
- return e ? /* @__PURE__ */ R(o, {
469
+ let e = i.column.getCanSort(), t = i.column.getIsSorted(), a = Fe(i.column.columnDef.header, i.getContext()), o = t === "asc" ? z : t === "desc" ? Ee : Ae;
470
+ return e ? /* @__PURE__ */ R(r, {
466
471
  type: "button",
467
472
  tone: "secondary",
468
473
  buttonStyle: "ghost",
469
474
  size: "sm",
470
475
  onClick: i.column.getToggleSortingHandler(),
471
- className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-inner px-space-sm", "hover:text-foreground transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", t && "text-foreground"),
472
- "aria-label": `Sort ${v}`,
473
- children: [r, /* @__PURE__ */ L(a, {
476
+ className: n("group -ml-space-sm inline-flex select-none items-center gap-space-sm rounded-inner px-space-sm", "hover:text-foreground transition-colors", `focus-visible:outline-none ${s.edge}`, t && "text-foreground"),
477
+ "aria-label": `Sort ${y}`,
478
+ children: [a, /* @__PURE__ */ L(o, {
474
479
  className: n("size-icon-sm shrink-0 transition-opacity", t ? "opacity-100" : "opacity-30 group-hover:opacity-70"),
475
480
  "aria-hidden": "true"
476
481
  })]
477
482
  }) : /* @__PURE__ */ L("div", {
478
483
  className: n("flex items-center", i.column.columnDef.meta?.align === "end" && "justify-end", i.column.columnDef.meta?.align === "center" && "justify-center"),
479
- children: r
484
+ children: a
480
485
  });
481
486
  })(), !!t && i.column.getCanResize() && /* @__PURE__ */ L("div", {
482
487
  role: "separator",
483
488
  tabIndex: 0,
484
- 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-foreground/50 opacity-0 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:after:w-1 focus-visible:after:bg-primary-accent", _ && "after:bg-primary-accent!"),
485
- "aria-label": `Resize ${v}`,
489
+ 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", v && "after:bg-primary-accent!"),
490
+ "aria-label": `Resize ${y}`,
486
491
  "aria-orientation": "vertical",
487
492
  "aria-valuenow": i.getSize(),
488
- "aria-valuemin": m,
489
- "aria-valuemax": h,
493
+ "aria-valuemin": h,
494
+ "aria-valuemax": g,
490
495
  onKeyDown: (t) => {
491
496
  let n = getComputedStyle(t.currentTarget).direction === "rtl", r = (t.key === "ArrowRight" ? 10 : t.key === "ArrowLeft" ? -10 : 0) * (n ? -1 : 1);
492
- if (!r && t.key !== "Home" && t.key !== "End" || t.key === "End" && h === 2 ** 53 - 1) return;
497
+ if (!r && t.key !== "Home" && t.key !== "End" || t.key === "End" && g === 2 ** 53 - 1) return;
493
498
  t.preventDefault(), t.stopPropagation();
494
- let a = i.getSize(), o = Math.max(m, Math.min(h, a + r)) / Math.max(1, a);
499
+ let a = i.getSize(), o = Math.max(h, Math.min(g, a + r)) / Math.max(1, a);
495
500
  e.setColumnSizing((e) => ({
496
501
  ...e,
497
502
  ...Object.fromEntries(p.map((e) => {
@@ -500,8 +505,8 @@ function et({ table: e, enableResizing: t = !1, stickyHeader: r = !1, headerClas
500
505
  }))
501
506
  }));
502
507
  },
503
- onMouseDown: g,
504
- onTouchStart: g
508
+ onMouseDown: _,
509
+ onTouchStart: _
505
510
  })]
506
511
  })
507
512
  }, i.id);
@@ -509,13 +514,13 @@ function et({ table: e, enableResizing: t = !1, stickyHeader: r = !1, headerClas
509
514
  }, i.id))]
510
515
  });
511
516
  }
512
- et.displayName = "DataTableHeader";
517
+ at.displayName = "DataTableHeader";
513
518
  //#endregion
514
519
  //#region src/components/features/table/column-visibility-toggle.tsx
515
- function tt({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = U }) {
520
+ function ot({ table: e, className: t, align: r = "end", labelVisibility: i = "hidden", strings: a = V }) {
516
521
  let o = e.getAllColumns().filter((e) => e.getCanHide());
517
522
  if (o.length === 0) return null;
518
- let s = i !== "hidden", l = o.map((e) => {
523
+ let s = i !== "hidden", c = o.map((e) => {
519
524
  let t = e.columnDef.header, n = a.columnVisibility.formatLabel(e.id, typeof t == "string" ? t : void 0);
520
525
  return {
521
526
  id: e.id,
@@ -527,9 +532,9 @@ function tt({ table: e, className: t, align: r = "end", labelVisibility: i = "hi
527
532
  className: "capitalize"
528
533
  };
529
534
  });
530
- return /* @__PURE__ */ L(c, {
531
- actions: l,
532
- icon: Me,
535
+ return /* @__PURE__ */ L(l, {
536
+ actions: c,
537
+ icon: Pe,
533
538
  label: a.columnVisibility.triggerLabel,
534
539
  srText: a.columnVisibility.triggerLabel,
535
540
  align: r,
@@ -547,13 +552,13 @@ function tt({ table: e, className: t, align: r = "end", labelVisibility: i = "hi
547
552
  preserveOrder: !0
548
553
  });
549
554
  }
550
- tt.displayName = "ColumnVisibilityToggle";
555
+ ot.displayName = "ColumnVisibilityToggle";
551
556
  //#endregion
552
557
  //#region src/components/features/table/partials/fullscreen-toggle.tsx
553
- var nt = "text-muted-foreground/70 hover:text-foreground disabled:pointer-events-none disabled:opacity-30";
554
- function rt({ fullscreen: e, onFullscreenChange: t, enterLabel: r = "Enter full screen", exitLabel: i = "Exit full screen", className: a }) {
555
- let s = e ? i : r, c = e ? ke : Oe;
556
- return /* @__PURE__ */ L(o, {
558
+ var st = "text-muted-foreground hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
559
+ function ct({ fullscreen: e, onFullscreenChange: t, enterLabel: i = "Enter full screen", exitLabel: a = "Exit full screen", className: o }) {
560
+ let s = e ? a : i, c = e ? Ne : Me;
561
+ return /* @__PURE__ */ L(r, {
557
562
  type: "button",
558
563
  tone: "secondary",
559
564
  buttonStyle: "ghost",
@@ -562,34 +567,34 @@ function rt({ fullscreen: e, onFullscreenChange: t, enterLabel: r = "Enter full
562
567
  "aria-label": s,
563
568
  "aria-pressed": e,
564
569
  onClick: () => t(!e),
565
- className: n("fullscreen-toggle--component", nt, a),
570
+ className: n("fullscreen-toggle--component", st, o),
566
571
  children: /* @__PURE__ */ L(c, { className: "size-icon-sm" })
567
572
  });
568
573
  }
569
- rt.displayName = "FullscreenToggle";
574
+ ct.displayName = "FullscreenToggle";
570
575
  //#endregion
571
576
  //#region src/components/features/table/table-toolbar.tsx
572
- var it = 300, at = "text-muted-foreground/70 transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-30";
573
- function ot({ label: e, onClick: t, disabled: r, className: i, children: a }) {
574
- return /* @__PURE__ */ L(o, {
577
+ var lt = 300, ut = "text-muted-foreground transition-colors duration-150 hover:text-foreground disabled:pointer-events-none disabled:opacity-50";
578
+ function dt({ label: e, onClick: t, disabled: i, className: a, children: o }) {
579
+ return /* @__PURE__ */ L(r, {
575
580
  type: "button",
576
581
  tone: "secondary",
577
582
  buttonStyle: "ghost",
578
583
  size: "sm",
579
584
  iconOnly: !0,
580
585
  "aria-label": e,
581
- className: n("table-toolbar--component", at, j.joinedItem, i),
586
+ className: n("table-toolbar--component", ut, k.joinedItem, a),
582
587
  onClick: t,
583
- disabled: r,
584
- children: a
588
+ disabled: i,
589
+ children: o
585
590
  });
586
591
  }
587
- function J(e) {
592
+ function G(e) {
588
593
  return e ? e.querySelector("[data-slot=\"table-container\"]") : null;
589
594
  }
590
- function st({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = U }) {
591
- let { defaultScale: d } = t(), f = e(void 0, d), [p, m] = I(!1), [h, g] = I(!1), _ = F(0), v = F(null), y = M(() => {
592
- let e = J(i.current);
595
+ function ft({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, showFullscreenToggle: s = !1, enableColumnVisibility: c = !1, labelVisibility: l = "hidden", strings: u = V }) {
596
+ let { defaultScale: d } = e(), f = t(void 0, d), [p, m] = I(!1), [h, g] = I(!1), _ = F(0), v = F(null), y = M(() => {
597
+ let e = G(i.current);
593
598
  if (!e) {
594
599
  m(!1), g(!1);
595
600
  return;
@@ -599,7 +604,7 @@ function st({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
599
604
  }, [i]);
600
605
  N(() => {
601
606
  let e = window.setTimeout(() => {
602
- let e = J(i.current);
607
+ let e = G(i.current);
603
608
  if (!e || (y(), typeof ResizeObserver > "u")) return;
604
609
  let t = () => {
605
610
  cancelAnimationFrame(_.current), _.current = requestAnimationFrame(y);
@@ -619,84 +624,84 @@ function st({ table: r, tableAreaRef: i, fullscreen: a, onFullscreenChange: o, s
619
624
  a
620
625
  ]);
621
626
  let b = M(() => {
622
- J(i.current)?.scrollBy({
627
+ G(i.current)?.scrollBy({
623
628
  left: -300,
624
629
  behavior: "smooth"
625
630
  });
626
631
  }, [i]), x = M(() => {
627
- J(i.current)?.scrollBy({
628
- left: it,
632
+ G(i.current)?.scrollBy({
633
+ left: lt,
629
634
  behavior: "smooth"
630
635
  });
631
636
  }, [i]), S = c ? r.getAllColumns().filter((e) => e.getCanHide()) : [], C = p || h, w = S.length > 0, T = s;
632
637
  return !C && !w && !T ? null : /* @__PURE__ */ R("div", {
633
- className: n(j.joinedFrame, ve[f], "bg-card"),
638
+ className: n(k.joinedFrame, ce[f], "bg-card"),
634
639
  children: [
635
- !!C && /* @__PURE__ */ R(Se, { children: [
636
- /* @__PURE__ */ L(ot, {
640
+ !!C && /* @__PURE__ */ R(Te, { children: [
641
+ /* @__PURE__ */ L(dt, {
637
642
  label: u.toolbar.scrollLeft,
638
643
  onClick: b,
639
644
  disabled: !p,
640
- className: j.firstItem,
641
- children: /* @__PURE__ */ L(Te, { className: "size-icon-sm" })
645
+ className: k.firstItem,
646
+ children: /* @__PURE__ */ L(Oe, { className: "size-icon-sm" })
642
647
  }),
643
- /* @__PURE__ */ L(ot, {
648
+ /* @__PURE__ */ L(dt, {
644
649
  label: u.toolbar.scrollRight,
645
650
  onClick: x,
646
651
  disabled: !h,
647
- children: /* @__PURE__ */ L(B, { className: "size-icon-sm" })
652
+ children: /* @__PURE__ */ L(ke, { className: "size-icon-sm" })
648
653
  }),
649
654
  (w || T) && /* @__PURE__ */ L("div", { className: "h-4 w-px self-center bg-border" })
650
655
  ] }),
651
- !!w && /* @__PURE__ */ R(Se, { children: [/* @__PURE__ */ L(tt, {
656
+ !!w && /* @__PURE__ */ R(Te, { children: [/* @__PURE__ */ L(ot, {
652
657
  table: r,
653
658
  strings: u,
654
659
  labelVisibility: l,
655
- className: n(j.joinedItem, "border-0 shadow-none", !C && j.firstItem, !T && j.lastItem)
660
+ className: n(k.joinedItem, "border-0 shadow-none", !C && k.firstItem, !T && k.lastItem)
656
661
  }), T && /* @__PURE__ */ L("div", { className: "h-4 w-px self-center bg-border" })] }),
657
- T && /* @__PURE__ */ L(rt, {
662
+ T && /* @__PURE__ */ L(ct, {
658
663
  fullscreen: a,
659
664
  onFullscreenChange: o,
660
665
  enterLabel: u.toolbar.enterFullscreen,
661
666
  exitLabel: u.toolbar.exitFullscreen,
662
- className: n(j.joinedItem, j.lastItem, !C && !w && j.firstItem)
667
+ className: n(k.joinedItem, k.lastItem, !C && !w && k.firstItem)
663
668
  })
664
669
  ]
665
670
  });
666
671
  }
667
- st.displayName = "DataTableToolbar";
672
+ ft.displayName = "DataTableToolbar";
668
673
  //#endregion
669
674
  //#region src/components/features/table/data-table.tsx
670
- var ct = ye("sm");
671
- function lt() {
672
- return xe(ct);
675
+ var pt = Ce("sm");
676
+ function mt() {
677
+ return we(pt);
673
678
  }
674
- var ut = {
679
+ var ht = {
675
680
  sm: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y-sm [&_td]:text-sm",
676
681
  md: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y [&_td]:text-sm",
677
682
  lg: "[&_th]:h-12 [&_th]:px-row-x [&_th]:py-row-y-lg [&_th]:text-sm [&_td]:px-row-x [&_td]:py-row-y-lg [&_td]:text-sm"
678
- }, dt = {
683
+ }, gt = {
679
684
  sm: "sm",
680
685
  md: "sm",
681
686
  lg: "sm"
682
- }, ft = (e) => {
687
+ }, _t = (e) => {
683
688
  if (e !== void 0) return typeof e == "number" ? `${e}px` : e;
684
689
  };
685
- function pt(e, t) {
690
+ function vt(e, t) {
686
691
  return e.map((e) => "columns" in e && e.columns ? {
687
692
  ...e,
688
- columns: pt(e.columns, t)
693
+ columns: vt(e.columns, t)
689
694
  } : (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 ? {
690
695
  ...e,
691
696
  filterFn: "includesString"
692
697
  } : e);
693
698
  }
694
- function Y({ size: i, surface: a = "card", headerTransparent: s = !0, columns: c, data: l, columnGroups: u, rowActions: d, rowActionsMenuLabel: f, rowActionsDisplayMode: p, rowActionsBreakpoint: m, enableSorting: h = !1, enableResizing: g = !1, enableFiltering: _ = !1, filterColumn: v, filterPlaceholder: y, manualSorting: b = !1, enableColumnVisibility: x = !1, fullscreen: S, defaultFullscreen: C = !1, onFullscreenChange: w, showFullscreenToggle: T = !1, enableRowSelection: E = !1, enableMultiRowSelection: ee = !0, enableSubRowSelection: D = !1, pagination: O, pageQueryKey: te, onPageChange: ie, onSortingChange: ae, onColumnFiltersChange: k, onRowClick: oe, onRowSelectionChange: se, stickyHeader: ce = !1, stickyToolbar: le = !1, stickyFirstColumn: ue = !1, maxBodyHeight: de, fillAvailableHeight: A = !1, emptyStateMessage: fe, emptyStateAction: pe, className: me = "", rowClassName: he = "", cellClassName: _e = "", headerClassName: j = "", wrapperClassName: ve = "", innerClassName: ye = "", tableContainerClassName: be = "", getRowId: xe, rowSelection: N, sorting: Ce, defaultSorting: we, columnVisibility: z, defaultColumnVisibility: Te, initialState: B, onColumnVisibilityChange: Ee, strings: De, topbarContent: Oe, topbarEnd: ke, topbarClassName: Ae, toolbarLabelVisibility: je = "hidden", footerContent: Me, selectionToolbar: V, bulkActions: Le, selectionToolbarClassName: H, storageKey: Re }) {
695
- let { defaultScale: ze } = t(), Ve = e(i, ze), U = P(() => He(De), [De]), W = n("bg-card", he), Ue = fe ?? U.emptyState.message, We = te ?? "page", G = ft(de), qe = Array.isArray(c) && c.length === 2 && Array.isArray(c[1]) ? c[0] : c, K = P(() => Re ? `dt.${Re}.columns` : null, [Re]), Je = P(() => {
696
- let e = Te ?? B?.columnVisibility ?? {};
697
- if (!K || typeof window > "u") return e;
699
+ function K({ 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: D, onColumnFiltersChange: O, onRowClick: se, onRowSelectionChange: k, stickyHeader: ce = !1, stickyToolbar: le = !1, stickyFirstColumn: ue = !1, maxBodyHeight: de, fillAvailableHeight: fe = !1, emptyStateMessage: pe, emptyStateAction: me, className: he = "", rowClassName: ge = "", cellClassName: A = "", headerClassName: _e = "", wrapperClassName: ve = "", innerClassName: ye = "", tableContainerClassName: be = "", getRowId: Se, rowSelection: Ce, sorting: j, defaultSorting: we, columnVisibility: N, defaultColumnVisibility: Ee, initialState: z, onColumnVisibilityChange: De, strings: Oe, topbarContent: ke, topbarEnd: Ae, topbarClassName: je, toolbarLabelVisibility: Me = "hidden", footerContent: Ne, selectionToolbar: B, bulkActions: Pe, selectionToolbarClassName: Fe, selectionToolbarPlacement: Be = "floating", totalRowCount: Ve, storageKey: He }) {
700
+ let { defaultScale: Ue } = e(), Ge = t(r, Ue), V = P(() => Ke(Oe), [Oe]), H = n("bg-card", ge), qe = pe ?? V.emptyState.message, Je = ne ?? "page", U = _t(de), Ze = Array.isArray(o) && o.length === 2 && Array.isArray(o[1]) ? o[0] : o, W = P(() => He ? `dt.${He}.columns` : null, [He]), Qe = P(() => {
701
+ let e = Ee ?? z?.columnVisibility ?? {};
702
+ if (!W || typeof window > "u") return e;
698
703
  try {
699
- let t = window.localStorage.getItem(K);
704
+ let t = window.localStorage.getItem(W);
700
705
  return {
701
706
  ...t ? JSON.parse(t) : {},
702
707
  ...e
@@ -705,54 +710,59 @@ function Y({ size: i, surface: a = "card", headerTransparent: s = !0, columns: c
705
710
  return e;
706
711
  }
707
712
  }, [
708
- Te,
709
- K,
710
- B?.columnVisibility
711
- ]), [Ye, Xe] = I(we ?? B?.sorting ?? []), [q, Ze] = I(B?.columnFilters ?? []), [tt, nt] = I(Je), [rt, it] = I(B?.rowSelection || {}), [at, ot] = I(C), J = Ce ?? Ye, lt = z ?? tt, Y = N ?? rt, X = S ?? at, Z = F(null), mt = M((e) => {
712
- let t = typeof e == "function" ? e(q) : e;
713
- Ze(t), k?.(t);
714
- }, [q, k]), ht = M((e) => {
715
- let t = typeof e == "function" ? e(J) : e;
716
- Ce === void 0 && Xe(t), ae?.(t);
713
+ Ee,
714
+ W,
715
+ z?.columnVisibility
716
+ ]), [$e, et] = I(we ?? z?.sorting ?? []), [tt, nt] = I(z?.columnFilters ?? []), [ot, st] = I(Qe), [ct, lt] = I(z?.rowSelection || {}), [ut, dt] = I(S), G = j ?? $e, mt = N ?? ot, K = Ce ?? ct, q = x ?? ut, J = F(null), yt = F(null), bt = P(() => ({ get current() {
717
+ let e = yt.current;
718
+ return e?.isConnected ? e : J.current?.querySelector("thead [role=\"checkbox\"]") ?? null;
719
+ } }), []), xt = M((e) => {
720
+ e.target instanceof HTMLElement && (yt.current = e.target);
721
+ }, []), St = M((e) => {
722
+ let t = typeof e == "function" ? e(tt) : e;
723
+ nt(t), O?.(t);
724
+ }, [tt, O]), Ct = M((e) => {
725
+ let t = typeof e == "function" ? e(G) : e;
726
+ j === void 0 && et(t), D?.(t);
717
727
  }, [
718
- Ce,
719
- ae,
720
- J
721
- ]), gt = M((e) => {
722
- let t = typeof e == "function" ? e(lt) : e;
723
- if (z === void 0 && nt(t), K && typeof window < "u") try {
724
- window.localStorage.setItem(K, JSON.stringify(t));
728
+ j,
729
+ D,
730
+ G
731
+ ]), wt = M((e) => {
732
+ let t = typeof e == "function" ? e(mt) : e;
733
+ if (N === void 0 && st(t), W && typeof window < "u") try {
734
+ window.localStorage.setItem(W, JSON.stringify(t));
725
735
  } catch {}
726
- Ee?.(t);
727
- }, [
728
- lt,
729
- z,
730
- K,
731
- Ee
732
- ]), _t = M((e) => {
733
- let t = typeof e == "function" ? e(Y) : e;
734
- N === void 0 && it(t), se?.(t);
736
+ De?.(t);
735
737
  }, [
738
+ mt,
736
739
  N,
737
- se,
738
- Y
739
- ]), vt = F(null), yt = M((e) => {
740
- S === void 0 && ot(e), w?.(e);
741
- }, [S, w]);
742
- Be(X, vt, M(() => yt(!1), [yt]));
743
- let bt = M((e) => typeof f == "function" ? f(e) : f ?? U.actions.triggerLabel, [f, U.actions.triggerLabel]), xt = P(() => {
744
- let e = _ && v ? pt(qe, v) : qe, t = E ? Qe(e, U) : e;
745
- if (!d) return t;
740
+ W,
741
+ De
742
+ ]), Tt = M((e) => {
743
+ let t = typeof e == "function" ? e(K) : e;
744
+ Ce === void 0 && lt(t), k?.(t);
745
+ }, [
746
+ Ce,
747
+ k,
748
+ K
749
+ ]), Et = F(null), Y = M((e) => {
750
+ x === void 0 && dt(e), C?.(e);
751
+ }, [x, C]);
752
+ We(q, Et, M(() => Y(!1), [Y]));
753
+ let Dt = M((e) => typeof d == "function" ? d(e) : d ?? V.actions.menuLabel, [d, V.actions.menuLabel]), Ot = P(() => {
754
+ let e = g && _ ? vt(Ze, _) : Ze, t = T ? rt(e, V) : e;
755
+ if (!u) return t;
746
756
  let n = {
747
757
  id: "actions",
748
- header: U.actions.triggerLabel,
749
- cell: ({ row: e }) => /* @__PURE__ */ L(Ke, {
758
+ header: V.actions.triggerLabel,
759
+ cell: ({ row: e }) => /* @__PURE__ */ L(Xe, {
750
760
  row: e.original,
751
- actions: d,
752
- menuLabel: bt(e.original),
753
- displayMode: p,
754
- responsiveBreakpoint: m,
755
- strings: U
761
+ actions: u,
762
+ menuLabel: Dt(e.original),
763
+ displayMode: f,
764
+ responsiveBreakpoint: p,
765
+ strings: V
756
766
  }),
757
767
  enableSorting: !1,
758
768
  enableHiding: !1,
@@ -760,171 +770,175 @@ function Y({ size: i, surface: a = "card", headerTransparent: s = !0, columns: c
760
770
  };
761
771
  return [...t, n];
762
772
  }, [
763
- qe,
773
+ Ze,
774
+ g,
764
775
  _,
765
- v,
766
- E,
767
- d,
768
- bt,
769
- m,
776
+ T,
777
+ u,
778
+ Dt,
770
779
  p,
771
- U
772
- ]), Q = Ie({
773
- data: l,
774
- columns: xt,
780
+ f,
781
+ V
782
+ ]), X = ze({
783
+ data: c,
784
+ columns: Ot,
775
785
  state: {
776
- sorting: J,
777
- columnVisibility: lt,
778
- rowSelection: Y,
779
- columnFilters: q
786
+ sorting: G,
787
+ columnVisibility: mt,
788
+ rowSelection: K,
789
+ columnFilters: tt
780
790
  },
781
- enableSorting: h,
782
- enableColumnResizing: g,
791
+ enableSorting: m,
792
+ enableColumnResizing: h,
783
793
  columnResizeMode: "onChange",
784
- enableColumnFilters: _,
785
- manualFiltering: !_,
786
- manualSorting: b,
794
+ enableColumnFilters: g,
795
+ manualFiltering: !g,
796
+ manualSorting: y,
787
797
  autoResetPageIndex: !1,
788
- enableRowSelection: E,
798
+ enableRowSelection: T,
789
799
  enableMultiRowSelection: ee,
790
- enableSubRowSelection: D,
791
- onSortingChange: h ? ht : void 0,
792
- onRowSelectionChange: E ? _t : void 0,
793
- onColumnVisibilityChange: gt,
794
- onColumnFiltersChange: mt,
795
- getCoreRowModel: Ne(),
796
- getFilteredRowModel: Pe(),
797
- getSortedRowModel: Fe(),
798
- getRowId: xe
799
- }), St = _ && v ? Q.getAllLeafColumns().find((e) => e.id === v && e.getCanFilter()) : void 0, Ct = y ?? U.filter.searchPlaceholder, wt = O && O.last_page > 1, Tt = Q.getSelectedRowModel().rows.map((e) => e.original), $ = Tt.length, Et = M(() => {
800
- Q.resetRowSelection();
801
- }, [Q]), Dt = {
802
- table: Q,
803
- selectedRows: Tt,
804
- selectedRowCount: $,
805
- totalRowCount: l.length,
806
- rowSelection: Y,
807
- clearSelection: Et
808
- }, Ot = typeof Le == "function" ? Le(Dt) : Le, kt = $ > 0 ? /* @__PURE__ */ R("div", {
809
- "data-component": "data-table-selection-toolbar",
810
- "data-slot": "data-table-selection-toolbar",
811
- className: n("data-table-selection-toolbar--component flex min-w-0 flex-col gap-space-md border-b border-border/70 bg-muted/35 px-surface py-row-y @2xl/data-table:flex-row @2xl/data-table:items-center @2xl/data-table:justify-between", le && "sticky top-0 z-20 bg-card/95 backdrop-blur", H),
812
- children: [/* @__PURE__ */ L(r, {
813
- className: "data-table-selection-toolbar--summary min-w-0",
814
- children: U.selection.summary($, l.length)
815
- }), /* @__PURE__ */ R("div", {
816
- "data-slot": "data-table-selection-toolbar-actions",
817
- className: "data-table-selection-toolbar--actions flex shrink-0 flex-wrap items-center gap-space-md",
818
- children: [Ot, /* @__PURE__ */ L(o, {
819
- type: "button",
820
- tone: "secondary",
821
- buttonStyle: "ghost",
822
- onClick: Et,
823
- children: U.selection.clear
824
- })]
825
- })]
826
- }) : null, At = !E || $ === 0 || V === null || V === !1 ? null : typeof V == "function" ? V(Dt) : V ?? kt, jt = P(() => {
827
- if (G) return { "--data-table-body-max-height": G };
828
- }, [G]), Mt = X || A || G !== void 0, Nt = ct.Provider, Pt = dt[Ve];
829
- return /* @__PURE__ */ L(Nt, {
830
- value: Pt,
800
+ enableSubRowSelection: te,
801
+ onSortingChange: m ? Ct : void 0,
802
+ onRowSelectionChange: T ? Tt : void 0,
803
+ onColumnVisibilityChange: wt,
804
+ onColumnFiltersChange: St,
805
+ getCoreRowModel: Ie(),
806
+ getFilteredRowModel: Le(),
807
+ getSortedRowModel: Re(),
808
+ getRowId: Se
809
+ }), Z = g && _ ? X.getAllLeafColumns().find((e) => e.id === _ && e.getCanFilter()) : void 0, kt = v ?? V.filter.searchPlaceholder, At = E && E.last_page > 1, jt = X.getSelectedRowModel().rows.map((e) => e.original), Q = jt.length, Mt = M(() => {
810
+ X.resetRowSelection();
811
+ }, [X]), $ = Ve ?? E?.total ?? c.length, Nt = {
812
+ table: X,
813
+ selectedRows: jt,
814
+ selectedRowCount: Q,
815
+ totalRowCount: $,
816
+ rowSelection: K,
817
+ clearSelection: Mt
818
+ }, Pt = (() => {
819
+ if (!T || B === null || B === !1) return null;
820
+ if (B !== void 0) return Q === 0 ? null : typeof B == "function" ? B(Nt) : B;
821
+ let e = Q === 0 ? null : typeof Pe == "function" ? Pe(Nt) : Pe, t = /* @__PURE__ */ L(ie, {
822
+ selectedCount: Q,
823
+ totalCount: $,
824
+ onClear: Mt,
825
+ placement: Be,
826
+ returnFocusRef: bt,
827
+ className: n("data-table-selection-toolbar--component", Fe),
828
+ strings: {
829
+ summary: (e, t) => V.selection.summary(e, t ?? $),
830
+ clear: V.selection.clear
831
+ },
832
+ children: e
833
+ });
834
+ return Be === "inline" ? /* @__PURE__ */ L("div", {
835
+ "data-slot": "data-table-selection-toolbar",
836
+ className: "data-table--selection-toolbar px-surface py-row-y empty:hidden",
837
+ children: t
838
+ }) : t;
839
+ })(), Ft = P(() => {
840
+ if (U) return { "--data-table-body-max-height": U };
841
+ }, [U]), It = q || fe || U !== void 0, Lt = pt.Provider, Rt = gt[Ge];
842
+ return /* @__PURE__ */ L(Lt, {
843
+ value: Rt,
831
844
  children: /* @__PURE__ */ R("div", {
832
- ref: vt,
833
- role: X ? "dialog" : void 0,
834
- "aria-modal": X ? !0 : void 0,
835
- "aria-label": X ? U.accessibility.fullscreenRegion : void 0,
836
- className: n("data-table--component @container/data-table box-border", X ? "fixed inset-0 z-50 bg-background flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", A && "flex h-full min-h-0 flex-col", a === "card" && "overflow-hidden rounded-radius border border-border bg-card shadow-[0_1px_3px_0_color-mix(in_oklch,var(--foreground)_4%,transparent)]", a === "glass" && "rounded-radius overflow-hidden border border-border/60", ve)),
845
+ ref: Et,
846
+ role: q ? "dialog" : void 0,
847
+ "aria-modal": q ? !0 : void 0,
848
+ "aria-label": q ? V.accessibility.fullscreenRegion : void 0,
849
+ className: n("data-table--component @container/data-table box-border", q ? "fixed inset-0 z-50 bg-background flex flex-col overflow-hidden p-surface" : n("w-full min-w-0 max-w-full", fe && "flex h-full min-h-0 flex-col", i === "card" && "overflow-hidden rounded-radius border border-border bg-card shadow-xs", i === "glass" && "rounded-radius overflow-hidden border border-border/60", ve)),
837
850
  children: [
838
- !!(St || Oe || ke || x || T) && /* @__PURE__ */ R("div", {
839
- className: n("relative", le && "sticky top-0 z-20 bg-card/95 backdrop-blur"),
851
+ !!(Z || ke || Ae || b || w) && /* @__PURE__ */ R("div", {
852
+ className: n("relative", le && "sticky top-0 z-20 bg-card"),
840
853
  children: [/* @__PURE__ */ R("div", {
841
- className: n("data-table-topbar grid gap-space-lg px-surface py-row-y @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-end", X ? "mb-space-lg shrink-0" : "mb-0", Ae),
854
+ className: n("data-table-topbar grid gap-space-lg px-surface py-row-y @2xl/data-table:grid-cols-[minmax(0,1fr)_auto] @2xl/data-table:items-end", q ? "mb-space-lg shrink-0" : "mb-0", je),
842
855
  children: [/* @__PURE__ */ R("div", {
843
856
  className: "data-table-topbar-left flex min-w-0 flex-col gap-space-md",
844
- children: [Oe, St && /* @__PURE__ */ L("div", {
857
+ children: [ke, Z && /* @__PURE__ */ L("div", {
845
858
  className: "min-w-0 max-w-sm",
846
- children: /* @__PURE__ */ L(re, {
847
- "aria-label": Ct,
848
- placeholder: Ct,
849
- value: St.getFilterValue() ?? "",
850
- onChange: (e) => St.setFilterValue(e.target.value)
859
+ children: /* @__PURE__ */ L(oe, {
860
+ "aria-label": kt,
861
+ placeholder: kt,
862
+ value: Z.getFilterValue() ?? "",
863
+ onChange: (e) => Z.setFilterValue(e.target.value)
851
864
  })
852
865
  })]
853
866
  }), /* @__PURE__ */ R("div", {
854
867
  className: "data-table-topbar-right flex flex-wrap items-center justify-end gap-space-md",
855
- children: [ke, /* @__PURE__ */ L(st, {
856
- table: Q,
857
- tableAreaRef: Z,
858
- fullscreen: X,
859
- onFullscreenChange: yt,
860
- showFullscreenToggle: T,
861
- enableColumnVisibility: x,
862
- labelVisibility: je,
863
- strings: U
868
+ children: [Ae, /* @__PURE__ */ L(ft, {
869
+ table: X,
870
+ tableAreaRef: J,
871
+ fullscreen: q,
872
+ onFullscreenChange: Y,
873
+ showFullscreenToggle: w,
874
+ enableColumnVisibility: b,
875
+ labelVisibility: Me,
876
+ strings: V
864
877
  })]
865
878
  })]
866
- }), /* @__PURE__ */ L(ne, {})]
879
+ }), /* @__PURE__ */ L(ae, {})]
867
880
  }),
868
- At,
881
+ Pt,
869
882
  /* @__PURE__ */ L("div", {
870
- ref: Z,
871
- style: jt,
872
- className: n("min-h-0", Mt ? "overflow-hidden" : ye, (X || A) && "flex-1"),
873
- children: /* @__PURE__ */ R(ge, {
883
+ ref: J,
884
+ style: Ft,
885
+ onFocus: T ? xt : void 0,
886
+ className: n("min-h-0", It ? "overflow-hidden" : ye, (q || fe) && "flex-1"),
887
+ children: /* @__PURE__ */ R(xe, {
874
888
  containerProps: {
875
889
  role: "region",
876
- "aria-label": U.accessibility.scrollRegion
890
+ "aria-label": V.accessibility.scrollRegion
877
891
  },
878
- style: g ? { width: Q.getTotalSize() } : void 0,
879
- className: n("relative", g && "min-w-full table-fixed", ut[Ve], me),
880
- containerClassName: n("focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", Mt && "overflow-auto", G !== void 0 && "max-h-(--data-table-body-max-height)", (X || A) && "h-full min-h-0", be),
881
- children: [/* @__PURE__ */ L(et, {
882
- enableResizing: g,
883
- table: Q,
892
+ style: h ? { width: X.getTotalSize() } : void 0,
893
+ className: n("relative", h && "min-w-full table-fixed", ht[Ge], he),
894
+ containerClassName: n(`focus-visible:outline-none ${s.edge}`, It && "overflow-auto", U !== void 0 && "max-h-(--data-table-body-max-height)", (q || fe) && "h-full min-h-0", be),
895
+ children: [/* @__PURE__ */ L(at, {
896
+ enableResizing: h,
897
+ table: X,
884
898
  stickyHeader: ce,
885
- headerClassName: j,
886
- cellClassName: _e,
899
+ headerClassName: _e,
900
+ cellClassName: A,
887
901
  stickyFirstColumn: ue,
888
- columnGroups: u,
889
- headerTransparent: s
890
- }), /* @__PURE__ */ L($e, {
891
- table: Q,
892
- onRowClick: oe,
893
- emptyStateMessage: Ue,
894
- emptyStateAction: pe,
895
- cellClassName: _e,
896
- rowClassName: W,
902
+ columnGroups: l,
903
+ headerTransparent: a
904
+ }), /* @__PURE__ */ L(it, {
905
+ table: X,
906
+ onRowClick: se,
907
+ emptyStateMessage: qe,
908
+ emptyStateAction: me,
909
+ cellClassName: A,
910
+ rowClassName: H,
897
911
  stickyFirstColumn: ue,
898
- strings: U
912
+ strings: V
899
913
  })]
900
914
  })
901
915
  }),
902
- !!wt && /* @__PURE__ */ R(Se, { children: [/* @__PURE__ */ L(ne, {}), /* @__PURE__ */ L(Ge, {
903
- pagination: O,
904
- onPageChange: ie,
905
- pageQueryKey: We,
906
- labels: U.pagination
916
+ !!At && /* @__PURE__ */ R(Te, { children: [/* @__PURE__ */ L(ae, {}), /* @__PURE__ */ L(Ye, {
917
+ pagination: E,
918
+ onPageChange: re,
919
+ pageQueryKey: Je,
920
+ labels: V.pagination
907
921
  })] }),
908
- !!Me && /* @__PURE__ */ L("div", {
922
+ !!Ne && /* @__PURE__ */ L("div", {
909
923
  "data-slot": "data-table-footer",
910
- className: "data-table--footer border-t border-border/70 px-surface py-row-y",
911
- children: Me
924
+ className: "data-table--footer border-t border-border/60 px-surface py-row-y",
925
+ children: Ne
912
926
  })
913
927
  ]
914
928
  })
915
929
  });
916
930
  }
917
- Y.displayName = "DataTable";
931
+ K.displayName = "DataTable";
918
932
  //#endregion
919
933
  //#region src/components/features/table/filter-bar.tsx
920
- function X({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = U }) {
934
+ function q({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibility: i = !1, customContent: a, strings: o = V }) {
921
935
  if (!t && !i && !a) return null;
922
936
  let s = r ?? o.filter.searchPlaceholder;
923
937
  return /* @__PURE__ */ R("div", {
924
938
  className: n("filter-bar--component", "flex items-center justify-between p-surface"),
925
939
  children: [/* @__PURE__ */ R("div", {
926
940
  className: "flex flex-1 items-center space-x-space-md",
927
- children: [!!t && /* @__PURE__ */ L(re, {
941
+ children: [!!t && /* @__PURE__ */ L(oe, {
928
942
  placeholder: s,
929
943
  value: e.getColumn(t)?.getFilterValue() ?? "",
930
944
  onChange: (n) => {
@@ -933,7 +947,7 @@ function X({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibi
933
947
  },
934
948
  className: "max-w-sm"
935
949
  }), a]
936
- }), !!i && /* @__PURE__ */ L(tt, {
950
+ }), !!i && /* @__PURE__ */ L(ot, {
937
951
  table: e,
938
952
  strings: o,
939
953
  labelVisibility: "responsive",
@@ -941,22 +955,22 @@ function X({ table: e, filterColumn: t, filterPlaceholder: r, enableColumnVisibi
941
955
  })]
942
956
  });
943
957
  }
944
- X.displayName = "DataTableFilterBar";
958
+ q.displayName = "DataTableFilterBar";
945
959
  //#endregion
946
960
  //#region src/components/features/table/partials/cell-value.tsx
947
- function Z(e) {
961
+ function J(e) {
948
962
  return e === !1 || e == null || typeof e == "string" && e.trim() === "";
949
963
  }
950
- function mt(e) {
964
+ function yt(e) {
951
965
  return e == null;
952
966
  }
953
- function ht(e) {
954
- return typeof e == "object" && !!e && !Array.isArray(e) && !be(e) && !(e instanceof Date);
967
+ function bt(e) {
968
+ return typeof e == "object" && !!e && !Array.isArray(e) && !j(e) && !(e instanceof Date);
955
969
  }
956
- function gt(e) {
970
+ function xt(e) {
957
971
  return Array.isArray(e);
958
972
  }
959
- function _t(e) {
973
+ function St(e) {
960
974
  let [t, n, r] = e;
961
975
  return {
962
976
  ...r,
@@ -964,74 +978,74 @@ function _t(e) {
964
978
  kind: n
965
979
  };
966
980
  }
967
- function vt(e) {
981
+ function Ct(e) {
968
982
  if (e === !1) return null;
969
- if (be(e)) return e;
970
- if (gt(e)) {
971
- let t = _t(e);
972
- return Z(t.value) && mt(t.display) ? null : t;
983
+ if (j(e)) return e;
984
+ if (xt(e)) {
985
+ let t = St(e);
986
+ return J(t.value) && yt(t.display) ? null : t;
973
987
  }
974
- return ht(e) ? Z(e.value) && mt(e.display) ? null : e : Z(e) ? null : { value: e };
988
+ return bt(e) ? J(e.value) && yt(e.display) ? null : e : J(e) ? null : { value: e };
975
989
  }
976
- function yt(e) {
990
+ function wt(e) {
977
991
  return e instanceof Date ? e.toISOString() : String(e ?? "");
978
992
  }
979
- function bt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
980
- let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? yt(c) : c), y = e.emptyLabel ?? r, x = n(i, e.className), D = o ? a : "regular";
993
+ function Tt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryWeight: a = "medium" }) {
994
+ let o = t === 0, s = e.kind ?? (o ? "value" : "secondary"), c = e.value, l = e.display ?? (c instanceof Date ? wt(c) : c), u = e.emptyLabel ?? r, d = n(i, e.className), x = o ? a : "regular";
981
995
  switch (s) {
982
- case "secondary": return /* @__PURE__ */ L(p, {
996
+ case "secondary": return /* @__PURE__ */ L(h, {
983
997
  size: "inherit",
984
- className: x,
998
+ className: d,
985
999
  children: l
986
1000
  });
987
- case "muted": return /* @__PURE__ */ L(m, {
1001
+ case "muted": return /* @__PURE__ */ L(g, {
988
1002
  size: "inherit",
989
- className: x,
1003
+ className: d,
990
1004
  children: l
991
1005
  });
992
- case "name": return /* @__PURE__ */ L(f, {
1006
+ case "name": return /* @__PURE__ */ L(m, {
993
1007
  value: e.display === void 0 && typeof c == "string" ? c : void 0,
994
1008
  force: e.force,
995
- emptyLabel: y,
1009
+ emptyLabel: u,
996
1010
  size: "inherit",
997
- weight: D,
998
- className: x,
1011
+ weight: x,
1012
+ className: d,
999
1013
  children: e.display
1000
1014
  });
1001
- case "mono": return /* @__PURE__ */ L(_, {
1015
+ case "mono": return /* @__PURE__ */ L(y, {
1002
1016
  size: "inherit",
1003
- weight: D,
1004
- className: x,
1017
+ weight: x,
1018
+ className: d,
1005
1019
  children: l
1006
1020
  });
1007
1021
  case "link": {
1008
- let t = e.href ?? yt(c);
1009
- return /* @__PURE__ */ L(b, {
1022
+ let t = e.href ?? wt(c);
1023
+ return /* @__PURE__ */ L(S, {
1010
1024
  href: t,
1011
- emptyLabel: y,
1012
- className: x,
1025
+ emptyLabel: u,
1026
+ className: d,
1013
1027
  children: l
1014
1028
  });
1015
1029
  }
1016
- case "email": return /* @__PURE__ */ L(v, {
1030
+ case "email": return /* @__PURE__ */ L(b, {
1017
1031
  value: typeof c == "string" ? c : void 0,
1018
1032
  display: e.display,
1019
- emptyLabel: y,
1020
- className: x
1033
+ emptyLabel: u,
1034
+ className: d
1021
1035
  });
1022
- case "phone": return /* @__PURE__ */ L(d, {
1036
+ case "phone": return /* @__PURE__ */ L(p, {
1023
1037
  value: typeof c == "string" ? c : void 0,
1024
1038
  display: e.display,
1025
- emptyLabel: y,
1026
- className: x
1039
+ emptyLabel: u,
1040
+ className: d
1027
1041
  });
1028
- case "url": return /* @__PURE__ */ L(g, {
1042
+ case "url": return /* @__PURE__ */ L(v, {
1029
1043
  value: typeof c == "string" ? c : void 0,
1030
1044
  display: e.display,
1031
- emptyLabel: y,
1032
- className: x
1045
+ emptyLabel: u,
1046
+ className: d
1033
1047
  });
1034
- case "money": return /* @__PURE__ */ L(C, {
1048
+ case "money": return /* @__PURE__ */ L(T, {
1035
1049
  amount: typeof c == "number" || typeof c == "string" ? c : null,
1036
1050
  currency: e.currency,
1037
1051
  locale: e.locale,
@@ -1039,92 +1053,92 @@ function bt({ descriptor: e, index: t = 0, emptyLabel: r, className: i, primaryW
1039
1053
  minimumFractionDigits: e.minimumFractionDigits,
1040
1054
  maximumFractionDigits: e.maximumFractionDigits,
1041
1055
  formatMode: e.formatMode,
1042
- emptyLabel: y,
1056
+ emptyLabel: u,
1043
1057
  size: "inherit",
1044
- weight: D,
1045
- className: x
1058
+ weight: x,
1059
+ className: d
1046
1060
  });
1047
- case "number": return /* @__PURE__ */ L(w, {
1061
+ case "number": return /* @__PURE__ */ L(ee, {
1048
1062
  value: typeof c == "number" || typeof c == "string" ? c : null,
1049
1063
  locale: e.locale,
1050
1064
  options: e.options,
1051
- emptyLabel: y,
1065
+ emptyLabel: u,
1052
1066
  size: "inherit",
1053
- weight: D,
1054
- className: x
1067
+ weight: x,
1068
+ className: d
1055
1069
  });
1056
- case "percent": return /* @__PURE__ */ L(S, {
1070
+ case "percent": return /* @__PURE__ */ L(w, {
1057
1071
  value: typeof c == "number" || typeof c == "string" ? c : null,
1058
1072
  locale: e.locale,
1059
1073
  scaled: e.scaled,
1060
1074
  options: e.options,
1061
- emptyLabel: y,
1075
+ emptyLabel: u,
1062
1076
  size: "inherit",
1063
- weight: D,
1064
- className: x
1077
+ weight: x,
1078
+ className: d
1065
1079
  });
1066
- case "fileSize": return /* @__PURE__ */ L(h, {
1080
+ case "fileSize": return /* @__PURE__ */ L(_, {
1067
1081
  value: typeof c == "number" ? c : null,
1068
1082
  from: e.from,
1069
1083
  locale: e.locale,
1070
- emptyLabel: y,
1084
+ emptyLabel: u,
1071
1085
  size: "inherit",
1072
- weight: D,
1073
- className: x
1086
+ weight: x,
1087
+ className: d
1074
1088
  });
1075
- case "date": return /* @__PURE__ */ L(O, {
1089
+ case "date": return /* @__PURE__ */ L(D, {
1076
1090
  value: c,
1077
1091
  format: e.dateFormat,
1078
1092
  preset: e.datePreset,
1079
1093
  locale: e.dateLocale,
1080
- emptyLabel: y,
1094
+ emptyLabel: u,
1081
1095
  size: "inherit",
1082
- weight: D,
1083
- className: x
1096
+ weight: x,
1097
+ className: d
1084
1098
  });
1085
- case "time": return /* @__PURE__ */ L(T, {
1099
+ case "time": return /* @__PURE__ */ L(te, {
1086
1100
  value: c,
1087
1101
  format: e.timeFormat,
1088
1102
  locale: e.dateLocale,
1089
- emptyLabel: y,
1103
+ emptyLabel: u,
1090
1104
  size: "inherit",
1091
- weight: D,
1092
- className: x
1105
+ weight: x,
1106
+ className: d
1093
1107
  });
1094
- case "dateTime": return /* @__PURE__ */ L(ee, {
1108
+ case "dateTime": return /* @__PURE__ */ L(ne, {
1095
1109
  value: c,
1096
1110
  format: e.dateFormat,
1097
1111
  timeFormat: e.timeFormat,
1098
1112
  preset: e.datePreset,
1099
1113
  locale: e.dateLocale,
1100
- emptyLabel: y,
1114
+ emptyLabel: u,
1101
1115
  size: "inherit",
1102
- weight: D,
1103
- className: x
1116
+ weight: x,
1117
+ className: d
1104
1118
  });
1105
1119
  case "relativeTime": return /* @__PURE__ */ L(E, {
1106
1120
  value: c,
1107
1121
  locale: e.dateLocale,
1108
- emptyLabel: y,
1122
+ emptyLabel: u,
1109
1123
  size: "inherit",
1110
- weight: D,
1111
- className: x
1124
+ weight: x,
1125
+ className: d
1112
1126
  });
1113
- default: return /* @__PURE__ */ L(u, {
1127
+ default: return /* @__PURE__ */ L(f, {
1114
1128
  size: "inherit",
1115
- weight: D,
1116
- className: x,
1129
+ weight: x,
1130
+ className: d,
1117
1131
  children: l
1118
1132
  });
1119
1133
  }
1120
1134
  }
1121
- function xt({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: d, from: f, force: p, options: m, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: b, fallback: x = "--", missing: S, className: C, children: w }) {
1122
- let T = S ?? Z(e);
1123
- return w === void 0 ? T ? /* @__PURE__ */ L(y, {
1135
+ function Et({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minimumFractionDigits: o, maximumFractionDigits: s, formatMode: c, locale: l, dateLocale: u, from: d, force: p, options: m, scaled: h, dateFormat: g, datePreset: _, timeFormat: v, emptyLabel: y, fallback: b = "--", missing: S, className: C, children: w }) {
1136
+ let T = S ?? J(e);
1137
+ return w === void 0 ? T ? /* @__PURE__ */ L(x, {
1124
1138
  size: "inherit",
1125
1139
  className: n("cell-value--component", C),
1126
- children: b ?? x
1127
- }) : bt({
1140
+ children: y ?? b
1141
+ }) : Tt({
1128
1142
  descriptor: {
1129
1143
  value: e,
1130
1144
  kind: t,
@@ -1135,28 +1149,28 @@ function xt({ value: e, kind: t, href: r, currency: i, currencyDisplay: a, minim
1135
1149
  maximumFractionDigits: s,
1136
1150
  formatMode: c,
1137
1151
  locale: l,
1138
- dateLocale: d,
1139
- from: f,
1152
+ dateLocale: u,
1153
+ from: d,
1140
1154
  force: p,
1141
1155
  options: m,
1142
1156
  scaled: h,
1143
1157
  dateFormat: g,
1144
1158
  datePreset: _,
1145
1159
  timeFormat: v,
1146
- emptyLabel: b,
1160
+ emptyLabel: y,
1147
1161
  className: "cell-value--component"
1148
1162
  },
1149
- emptyLabel: b ?? x,
1163
+ emptyLabel: y ?? b,
1150
1164
  className: C
1151
- }) : /* @__PURE__ */ L(T ? y : u, {
1165
+ }) : /* @__PURE__ */ L(T ? x : f, {
1152
1166
  size: "inherit",
1153
1167
  className: n("cell-value--component", C),
1154
1168
  children: w
1155
1169
  });
1156
1170
  }
1157
- function Q({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
1158
- let c = e.map(vt).filter((e) => e !== null).slice(0, 4);
1159
- return c.length === 0 ? /* @__PURE__ */ L(y, {
1171
+ function Y({ values: e = [], emptyLabel: t = "--", className: r, itemClassName: i, primaryClassName: a, secondaryClassName: o, primaryWeight: s = "medium" }) {
1172
+ let c = e.map(Ct).filter((e) => e !== null).slice(0, 4);
1173
+ return c.length === 0 ? /* @__PURE__ */ L(x, {
1160
1174
  size: "inherit",
1161
1175
  className: n("cell-stack--component", r),
1162
1176
  children: t
@@ -1164,12 +1178,12 @@ function Q({ values: e = [], emptyLabel: t = "--", className: r, itemClassName:
1164
1178
  className: n("cell-stack--component flex min-w-0 flex-col items-start gap-space-2xs", r),
1165
1179
  children: c.map((e, r) => {
1166
1180
  let c = r === 0, l = n("cell-stack--item min-w-0 max-w-full truncate", !c && "text-xs", i, c ? a : o);
1167
- return be(e) ? /* @__PURE__ */ L("div", {
1181
+ return j(e) ? /* @__PURE__ */ L("div", {
1168
1182
  className: l,
1169
1183
  children: e
1170
1184
  }, r) : /* @__PURE__ */ L("div", {
1171
1185
  className: l,
1172
- children: bt({
1186
+ children: Tt({
1173
1187
  descriptor: e,
1174
1188
  index: r,
1175
1189
  emptyLabel: t,
@@ -1180,20 +1194,20 @@ function Q({ values: e = [], emptyLabel: t = "--", className: r, itemClassName:
1180
1194
  })
1181
1195
  });
1182
1196
  }
1183
- xt.displayName = "CellValue", Q.displayName = "CellStack";
1197
+ Et.displayName = "CellValue", Y.displayName = "CellStack";
1184
1198
  //#endregion
1185
1199
  //#region src/components/features/table/partials/table-link.tsx
1186
- var St = ({ className: e, ...t }) => /* @__PURE__ */ L(b, {
1200
+ var Dt = ({ className: e, ...t }) => /* @__PURE__ */ L(S, {
1187
1201
  className: n("table-link--component", "underline decoration-link-color/35 decoration-dotted underline-offset-2 hover:decoration-link-color", e),
1188
1202
  ...t,
1189
1203
  children: t.children
1190
1204
  });
1191
1205
  //#endregion
1192
1206
  //#region src/components/features/table/partials/resource-cell.tsx
1193
- function Ct(e, t) {
1207
+ function Ot(e, t) {
1194
1208
  if (e && typeof e == "object" && !("type" in e) && "label" in e) {
1195
1209
  let n = e.icon;
1196
- return /* @__PURE__ */ R(te, {
1210
+ return /* @__PURE__ */ R(O, {
1197
1211
  tone: e.tone ?? "secondary",
1198
1212
  dot: e.dot,
1199
1213
  children: [!!n && /* @__PURE__ */ L(n, { className: "size-icon-sm" }), e.label]
@@ -1201,18 +1215,18 @@ function Ct(e, t) {
1201
1215
  }
1202
1216
  return /* @__PURE__ */ L("span", { children: e }, t);
1203
1217
  }
1204
- function wt(e) {
1218
+ function X(e) {
1205
1219
  return e ? Array.isArray(e) ? /* @__PURE__ */ L("span", {
1206
1220
  className: "inline-flex min-w-0 flex-wrap items-center gap-x-space-md gap-y-space-2xs",
1207
1221
  children: e.map((e, t) => /* @__PURE__ */ R("span", {
1208
1222
  className: "inline-flex min-w-0 items-center gap-space-sm",
1209
- children: [!!e.label && /* @__PURE__ */ L(r, {
1223
+ children: [!!e.label && /* @__PURE__ */ L(a, {
1210
1224
  tag: "span",
1211
1225
  size: "inherit",
1212
1226
  type: "secondary",
1213
1227
  className: "shrink-0",
1214
1228
  children: e.label
1215
- }), /* @__PURE__ */ L(r, {
1229
+ }), /* @__PURE__ */ L(a, {
1216
1230
  tag: "span",
1217
1231
  size: "inherit",
1218
1232
  type: "secondary",
@@ -1222,142 +1236,142 @@ function wt(e) {
1222
1236
  }, e.id ?? t))
1223
1237
  }) : e : null;
1224
1238
  }
1225
- function Tt({ title: e, subtitle: t, metadata: i, badges: o = [], imageUrl: c, icon: l = De, fallback: u, href: d, renderLink: f, emptyLabel: p = "—", className: m, mediaClassName: h, contentClassName: g, titleClassName: _, subtitleClassName: v }) {
1226
- if (!e) return /* @__PURE__ */ L(r, {
1239
+ function Z({ title: e, subtitle: t, metadata: r, badges: i = [], imageUrl: l, icon: u = je, fallback: d, href: f, renderLink: p, emptyLabel: m = "—", className: h, mediaClassName: g, contentClassName: _, titleClassName: v, subtitleClassName: y }) {
1240
+ if (!e) return /* @__PURE__ */ L(a, {
1227
1241
  size: "inherit",
1228
1242
  type: "secondary",
1229
- className: m,
1230
- children: p
1243
+ className: h,
1244
+ children: m
1231
1245
  });
1232
- let y = typeof e == "string" ? e : void 0, b = y ? x(y, { strategy: "first-words" }) : "", S = /* @__PURE__ */ R(s, {
1246
+ let b = typeof e == "string" ? e : void 0, x = b ? C(b, { strategy: "first-words" }) : "", S = /* @__PURE__ */ R(c, {
1233
1247
  render: /* @__PURE__ */ L("span", {}),
1234
1248
  gap: "dense",
1235
- className: n("resource-cell--content", g),
1249
+ className: n("resource-cell--content", _),
1236
1250
  children: [
1237
- /* @__PURE__ */ R(s, {
1251
+ /* @__PURE__ */ R(c, {
1238
1252
  render: /* @__PURE__ */ L("span", {}),
1239
1253
  direction: "horizontal",
1240
1254
  gap: "sm",
1241
1255
  wrap: !1,
1242
1256
  className: "resource-cell--title-row",
1243
- children: [/* @__PURE__ */ L(r, {
1257
+ children: [/* @__PURE__ */ L(a, {
1244
1258
  tag: "span",
1245
1259
  size: "inherit",
1246
1260
  weight: "medium",
1247
- className: n("resource-cell--title truncate", _),
1261
+ className: n("resource-cell--title truncate", v),
1248
1262
  children: e
1249
- }), o.length > 0 && /* @__PURE__ */ L("span", {
1263
+ }), i.length > 0 && /* @__PURE__ */ L("span", {
1250
1264
  className: "resource-cell--badges inline-flex shrink-0 items-center gap-space-sm",
1251
- children: o.map(Ct)
1265
+ children: i.map(Ot)
1252
1266
  })]
1253
1267
  }),
1254
- !!t && /* @__PURE__ */ L(r, {
1268
+ !!t && /* @__PURE__ */ L(a, {
1255
1269
  tag: "span",
1256
1270
  size: "inherit",
1257
1271
  type: "secondary",
1258
- className: n("resource-cell--subtitle truncate", v),
1272
+ className: n("resource-cell--subtitle truncate", y),
1259
1273
  children: t
1260
1274
  }),
1261
- !!i && /* @__PURE__ */ L("span", {
1275
+ !!r && /* @__PURE__ */ L("span", {
1262
1276
  className: "resource-cell--metadata min-w-0",
1263
- children: wt(i)
1277
+ children: X(r)
1264
1278
  })
1265
1279
  ]
1266
- }), C = /* @__PURE__ */ R("span", {
1267
- className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", m),
1280
+ }), w = /* @__PURE__ */ R("span", {
1281
+ className: n("resource-cell--component inline-flex min-w-0 items-center gap-space-md", h),
1268
1282
  children: [/* @__PURE__ */ L("span", {
1269
- className: n("resource-cell--media relative inline-flex size-avatar shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground", h),
1270
- children: c ? /* @__PURE__ */ L("img", {
1271
- src: c,
1272
- alt: y ?? "",
1283
+ className: n("resource-cell--media relative inline-flex size-avatar shrink-0 items-center justify-center overflow-hidden rounded-full bg-muted text-muted-foreground", g),
1284
+ children: l ? /* @__PURE__ */ L("img", {
1285
+ src: l,
1286
+ alt: b ?? "",
1273
1287
  className: "absolute inset-0 size-full object-cover"
1274
- }) : u || (b ? /* @__PURE__ */ L(r, {
1288
+ }) : d || (x ? /* @__PURE__ */ L(a, {
1275
1289
  size: "inherit",
1276
1290
  weight: "semibold",
1277
1291
  className: "text-sm leading-none",
1278
- children: b
1279
- }) : /* @__PURE__ */ L(l, { className: "size-icon" }))
1292
+ children: x
1293
+ }) : /* @__PURE__ */ L(u, { className: "size-icon" }))
1280
1294
  }), S]
1281
1295
  });
1282
- if (!d) return C;
1283
- let w = "resource-cell--link inline-flex min-w-0 rounded-inner focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
1284
- return f ? f({
1285
- href: d,
1286
- children: C,
1287
- className: w,
1288
- "aria-label": y
1289
- }) : /* @__PURE__ */ L(a, {
1290
- href: d,
1296
+ if (!f) return w;
1297
+ let T = `resource-cell--link inline-flex min-w-0 rounded-inner outline-none ${s.text}`;
1298
+ return p ? p({
1299
+ href: f,
1300
+ children: w,
1301
+ className: T,
1302
+ "aria-label": b
1303
+ }) : /* @__PURE__ */ L(o, {
1304
+ href: f,
1291
1305
  size: "inherit",
1292
1306
  underline: !1,
1293
- className: w,
1294
- "aria-label": y,
1295
- children: C
1307
+ className: T,
1308
+ "aria-label": b,
1309
+ children: w
1296
1310
  });
1297
1311
  }
1298
- Tt.displayName = "ResourceCell";
1312
+ Z.displayName = "ResourceCell";
1299
1313
  //#endregion
1300
1314
  //#region src/components/features/table/partials/cell-renderers.tsx
1301
- function $({ value: e, map: t, emptyLabel: i = "—", className: a }) {
1302
- if (!e || !(e in t)) return /* @__PURE__ */ L(r, {
1315
+ function kt({ value: e, map: t, emptyLabel: r = "—", className: i }) {
1316
+ if (!e || !(e in t)) return /* @__PURE__ */ L(a, {
1303
1317
  size: "inherit",
1304
1318
  type: "secondary",
1305
- className: n("status-cell--component", a),
1306
- children: i
1319
+ className: n("status-cell--component", i),
1320
+ children: r
1307
1321
  });
1308
1322
  let o = t[e], s = o.icon;
1309
- return /* @__PURE__ */ R(te, {
1323
+ return /* @__PURE__ */ R(O, {
1310
1324
  tone: o.tone ?? "secondary",
1311
- className: n("status-cell--component gap-space-sm", a),
1325
+ className: n("status-cell--component gap-space-sm", i),
1312
1326
  children: [!!s && /* @__PURE__ */ L(s, { className: "size-icon-sm" }), o.label]
1313
1327
  });
1314
1328
  }
1315
- $.displayName = "StatusCell";
1316
- function Et({ items: e = [], emptyLabel: t = "—", className: i, badgeClassName: a }) {
1329
+ kt.displayName = "StatusCell";
1330
+ function At({ items: e = [], emptyLabel: t = "—", className: r, badgeClassName: i }) {
1317
1331
  let o = e.filter((e) => !e.hidden);
1318
- return o.length === 0 ? /* @__PURE__ */ L(r, {
1332
+ return o.length === 0 ? /* @__PURE__ */ L(a, {
1319
1333
  size: "inherit",
1320
1334
  type: "secondary",
1321
- className: n("status-cluster-cell--component", i),
1335
+ className: n("status-cluster-cell--component", r),
1322
1336
  children: t
1323
1337
  }) : /* @__PURE__ */ L("span", {
1324
- className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", i),
1338
+ className: n("status-cluster-cell--component inline-flex min-w-0 flex-wrap items-center gap-space-sm", r),
1325
1339
  children: o.map((e, t) => {
1326
1340
  let r = e.icon;
1327
- return /* @__PURE__ */ R(te, {
1341
+ return /* @__PURE__ */ R(O, {
1328
1342
  tone: e.tone ?? "secondary",
1329
1343
  dot: e.dot,
1330
- className: n("shrink-0", a),
1344
+ className: n("shrink-0", i),
1331
1345
  children: [!!r && /* @__PURE__ */ L(r, { className: "size-icon-sm" }), e.label]
1332
1346
  }, e.id ?? t);
1333
1347
  })
1334
1348
  });
1335
1349
  }
1336
- Et.displayName = "StatusClusterCell";
1337
- function Dt({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon: s = z, emptyLabel: c = "—", className: l }) {
1338
- let u = D(e);
1350
+ At.displayName = "StatusClusterCell";
1351
+ function jt({ value: e, format: t, preset: r, locale: i, showIcon: o = !1, icon: s = De, emptyLabel: c = "—", className: l }) {
1352
+ let u = re(e);
1339
1353
  return u ? /* @__PURE__ */ R("span", {
1340
1354
  className: n("date-cell--component inline-flex items-center gap-space-sm", l),
1341
- children: [!!o && /* @__PURE__ */ L(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ L(O, {
1355
+ children: [!!o && /* @__PURE__ */ L(s, { className: "size-icon text-muted-foreground" }), /* @__PURE__ */ L(D, {
1342
1356
  value: u,
1343
1357
  format: t,
1344
- preset: i,
1345
- locale: a,
1358
+ preset: r,
1359
+ locale: i,
1346
1360
  emptyLabel: c,
1347
1361
  size: "inherit",
1348
1362
  type: "secondary"
1349
1363
  })]
1350
- }) : /* @__PURE__ */ L(r, {
1364
+ }) : /* @__PURE__ */ L(a, {
1351
1365
  size: "inherit",
1352
1366
  type: "secondary",
1353
1367
  className: n("date-cell--component", l),
1354
1368
  children: c
1355
1369
  });
1356
1370
  }
1357
- Dt.displayName = "DateCell";
1358
- function Ot({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon: s = z, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
1359
- let p = D(e);
1360
- if (!p) return /* @__PURE__ */ L(r, {
1371
+ jt.displayName = "DateCell";
1372
+ function Q({ value: e, format: t, preset: r, locale: i, showIcon: o = !1, icon: s = De, emptyLabel: c = "—", className: l, primaryClassName: u, secondary: d, secondaryClassName: f }) {
1373
+ let p = re(e);
1374
+ if (!p) return /* @__PURE__ */ L(a, {
1361
1375
  size: "inherit",
1362
1376
  type: "secondary",
1363
1377
  className: n("date-meta-cell--component", l),
@@ -1368,16 +1382,16 @@ function Ot({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon:
1368
1382
  className: n("date-meta-cell--component inline-flex min-w-0 items-start gap-space-sm", l),
1369
1383
  children: [!!o && /* @__PURE__ */ L(s, { className: "mt-space-2xs size-icon shrink-0 text-muted-foreground" }), /* @__PURE__ */ R("span", {
1370
1384
  className: "grid min-w-0 gap-space-2xs",
1371
- children: [/* @__PURE__ */ L(O, {
1385
+ children: [/* @__PURE__ */ L(D, {
1372
1386
  value: p,
1373
1387
  format: t,
1374
- preset: i,
1375
- locale: a,
1388
+ preset: r,
1389
+ locale: i,
1376
1390
  emptyLabel: c,
1377
1391
  size: "inherit",
1378
1392
  type: "secondary",
1379
1393
  className: n("truncate tabular-nums", u)
1380
- }), !!m && /* @__PURE__ */ L(r, {
1394
+ }), !!m && /* @__PURE__ */ L(a, {
1381
1395
  tag: "span",
1382
1396
  size: "inherit",
1383
1397
  type: "secondary",
@@ -1387,9 +1401,9 @@ function Ot({ value: e, format: t, preset: i, locale: a, showIcon: o = !0, icon:
1387
1401
  })]
1388
1402
  });
1389
1403
  }
1390
- Ot.displayName = "DateMetaCell";
1391
- function kt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
1392
- return /* @__PURE__ */ L(C, {
1404
+ Q.displayName = "DateMetaCell";
1405
+ function Mt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className: a, weight: o = "semibold" }) {
1406
+ return /* @__PURE__ */ L(T, {
1393
1407
  amount: e,
1394
1408
  currency: t,
1395
1409
  locale: r,
@@ -1400,9 +1414,9 @@ function kt({ value: e, currency: t, locale: r, emptyLabel: i = "—", className
1400
1414
  className: n("currency-cell--component tabular-nums", a)
1401
1415
  });
1402
1416
  }
1403
- kt.displayName = "CurrencyCell";
1404
- function At({ name: e, imageUrl: t, icon: i = De, subtitle: a, emptyLabel: o = "—", className: s }) {
1405
- return !e || e.trim().length === 0 ? /* @__PURE__ */ L(r, {
1417
+ Mt.displayName = "CurrencyCell";
1418
+ function $({ name: e, imageUrl: t, icon: r = je, subtitle: i, emptyLabel: o = "—", className: s }) {
1419
+ return !e || e.trim().length === 0 ? /* @__PURE__ */ L(a, {
1406
1420
  size: "inherit",
1407
1421
  type: "secondary",
1408
1422
  className: n("avatar-cell--component", s),
@@ -1415,30 +1429,30 @@ function At({ name: e, imageUrl: t, icon: i = De, subtitle: a, emptyLabel: o = "
1415
1429
  src: t,
1416
1430
  alt: e,
1417
1431
  className: "absolute inset-0 size-full object-cover"
1418
- }) : e.length > 0 ? /* @__PURE__ */ L(r, {
1432
+ }) : e.length > 0 ? /* @__PURE__ */ L(a, {
1419
1433
  size: "inherit",
1420
1434
  weight: "semibold",
1421
1435
  className: "text-sm leading-none",
1422
- children: x(e, { strategy: "first-words" })
1423
- }) : /* @__PURE__ */ L(i, { className: "size-icon" })
1436
+ children: C(e, { strategy: "first-words" })
1437
+ }) : /* @__PURE__ */ L(r, { className: "size-icon" })
1424
1438
  }), /* @__PURE__ */ R("span", {
1425
1439
  className: "min-w-0 inline-flex flex-col",
1426
- children: [/* @__PURE__ */ L(r, {
1440
+ children: [/* @__PURE__ */ L(a, {
1427
1441
  size: "inherit",
1428
1442
  weight: "medium",
1429
1443
  className: "truncate",
1430
1444
  children: e
1431
- }), !!a && /* @__PURE__ */ L(r, {
1445
+ }), !!i && /* @__PURE__ */ L(a, {
1432
1446
  size: "inherit",
1433
1447
  type: "secondary",
1434
1448
  className: "truncate",
1435
- children: a
1449
+ children: i
1436
1450
  })]
1437
1451
  })]
1438
1452
  });
1439
1453
  }
1440
- At.displayName = "AvatarCell";
1454
+ $.displayName = "AvatarCell";
1441
1455
  //#endregion
1442
- export { U as A, Je as C, qe as D, G as E, H as M, Re as N, Ke as O, Ye as S, K as T, et as _, $ as a, Ze as b, St as c, X as d, Y as f, tt as g, rt as h, Ot as i, He as j, Ge as k, Q as l, st as m, kt as n, Et as o, lt as p, Dt as r, Tt as s, At as t, xt as u, $e as v, Xe as w, q as x, Qe as y };
1456
+ export { V as A, Qe as C, Ze as D, U as E, Ve as M, He as N, Xe as O, $e as S, W as T, at as _, kt as a, nt as b, Dt as c, q as d, K as f, ot as g, ct as h, Q as i, Ke as j, Ye as k, Y as l, ft as m, Mt as n, At as o, mt as p, jt as r, Z as s, $ as t, Et as u, it as v, et as w, tt as x, rt as y };
1443
1457
 
1444
- //# sourceMappingURL=table-CcRDZiLP.js.map
1458
+ //# sourceMappingURL=table-CrcLN9Io.js.map