themelia-react-ui 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1338) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/LICENSE +21 -0
  3. package/README.md +249 -2
  4. package/THIRD_PARTY_NOTICES.md +65 -0
  5. package/dist/accordion-BRWh3BM1.js +205 -0
  6. package/dist/accordion-BRWh3BM1.js.map +1 -0
  7. package/dist/action-menu-Cx3SdfbN.js +265 -0
  8. package/dist/action-menu-Cx3SdfbN.js.map +1 -0
  9. package/dist/action-presentation.js +11 -0
  10. package/dist/action-presentation.js.map +1 -0
  11. package/dist/affordance-geometry.generated-DXl-Zb3Z.js +23 -0
  12. package/dist/affordance-geometry.generated-DXl-Zb3Z.js.map +1 -0
  13. package/dist/ai-artifact-DkOArd3-.js +1121 -0
  14. package/dist/ai-artifact-DkOArd3-.js.map +1 -0
  15. package/dist/anchored-positioning-DPnKTvNs.js +6 -0
  16. package/dist/anchored-positioning-DPnKTvNs.js.map +1 -0
  17. package/dist/app-shell-BH_bGcE2.js +235 -0
  18. package/dist/app-shell-BH_bGcE2.js.map +1 -0
  19. package/dist/attachment-DsLgNHXt.js +244 -0
  20. package/dist/attachment-DsLgNHXt.js.map +1 -0
  21. package/dist/auth-BDB1V_2q.js +704 -0
  22. package/dist/auth-BDB1V_2q.js.map +1 -0
  23. package/dist/avatar-CsnWaYmt.js +173 -0
  24. package/dist/avatar-CsnWaYmt.js.map +1 -0
  25. package/dist/badge-BZXZT9wd.js +92 -0
  26. package/dist/badge-BZXZT9wd.js.map +1 -0
  27. package/dist/base/accordion.js +3 -0
  28. package/dist/base/action-menu.js +3 -0
  29. package/dist/base/attachment.js +3 -0
  30. package/dist/base/avatar.js +3 -0
  31. package/dist/base/badge.js +3 -0
  32. package/dist/base/buttons.js +3 -0
  33. package/dist/base/cards.js +4 -0
  34. package/dist/base/carousel.js +251 -0
  35. package/dist/base/carousel.js.map +1 -0
  36. package/dist/base/cascader.js +361 -0
  37. package/dist/base/cascader.js.map +1 -0
  38. package/dist/base/chart.js +3 -0
  39. package/dist/base/choice-inputs.js +3 -0
  40. package/dist/base/code-block.js +3 -0
  41. package/dist/base/combobox.js +3 -0
  42. package/dist/base/command.js +3 -0
  43. package/dist/base/copyable.js +3 -0
  44. package/dist/base/date-pickers.js +4 -0
  45. package/dist/base/display.js +8 -0
  46. package/dist/base/feedback.js +4 -0
  47. package/dist/base/forms-numeric.js +3 -0
  48. package/dist/base/forms.js +4 -0
  49. package/dist/base/item.js +3 -0
  50. package/dist/base/media-gallery.js +3 -0
  51. package/dist/base/navigation.js +8 -0
  52. package/dist/base/popover-menu.js +3 -0
  53. package/dist/base/popover.js +3 -0
  54. package/dist/base/qr-code.js +63 -0
  55. package/dist/base/qr-code.js.map +1 -0
  56. package/dist/base/repeaters.js +620 -0
  57. package/dist/base/repeaters.js.map +1 -0
  58. package/dist/base/sheet.js +3 -0
  59. package/dist/base/sidebar.js +3 -0
  60. package/dist/base/signature-pad.js +364 -0
  61. package/dist/base/signature-pad.js.map +1 -0
  62. package/dist/base/skeleton.js +3 -0
  63. package/dist/base/spinner.js +3 -0
  64. package/dist/base/structure.js +3 -0
  65. package/dist/base/table.js +3 -0
  66. package/dist/base/text-inputs.js +4 -0
  67. package/dist/base/toaster.js +102 -0
  68. package/dist/base/toaster.js.map +1 -0
  69. package/dist/base/tree.js +3 -0
  70. package/dist/base/upload-queue.js +3 -0
  71. package/dist/base/upload.js +5 -0
  72. package/dist/base/value-inputs.js +3 -0
  73. package/dist/blocks/admin.js +478 -0
  74. package/dist/blocks/admin.js.map +1 -0
  75. package/dist/blocks/ai.js +1021 -0
  76. package/dist/blocks/ai.js.map +1 -0
  77. package/dist/blocks/analytics.js +1499 -0
  78. package/dist/blocks/analytics.js.map +1 -0
  79. package/dist/blocks/collaboration.js +3 -0
  80. package/dist/blocks/commerce/receipt.js +3 -0
  81. package/dist/blocks/commerce.js +3393 -0
  82. package/dist/blocks/commerce.js.map +1 -0
  83. package/dist/blocks/data-display.js +3 -0
  84. package/dist/blocks/onboarding.js +128 -0
  85. package/dist/blocks/onboarding.js.map +1 -0
  86. package/dist/blocks/timelines.js +3 -0
  87. package/dist/breadcrumbs-DdQ_I5ra.js +127 -0
  88. package/dist/breadcrumbs-DdQ_I5ra.js.map +1 -0
  89. package/dist/button-BS6l5JUw.js +47 -0
  90. package/dist/button-BS6l5JUw.js.map +1 -0
  91. package/dist/buttons-Co6GavvM.js +674 -0
  92. package/dist/buttons-Co6GavvM.js.map +1 -0
  93. package/dist/cards-BMB0laLG.js +66 -0
  94. package/dist/cards-BMB0laLG.js.map +1 -0
  95. package/dist/chart-DVfcwQu6.js +149 -0
  96. package/dist/chart-DVfcwQu6.js.map +1 -0
  97. package/dist/choice-inputs-CavA-SGV.js +644 -0
  98. package/dist/choice-inputs-CavA-SGV.js.map +1 -0
  99. package/dist/code-block-DIlqzoiD.js +183 -0
  100. package/dist/code-block-DIlqzoiD.js.map +1 -0
  101. package/dist/collapsible-DsnktFNv.js +81 -0
  102. package/dist/collapsible-DsnktFNv.js.map +1 -0
  103. package/dist/collection-content-C4fthJV_.js +53 -0
  104. package/dist/collection-content-C4fthJV_.js.map +1 -0
  105. package/dist/combobox-CHD750do.js +850 -0
  106. package/dist/combobox-CHD750do.js.map +1 -0
  107. package/dist/combobox-HDftpzxt.js +273 -0
  108. package/dist/combobox-HDftpzxt.js.map +1 -0
  109. package/dist/command-D0kWBZfd.js +421 -0
  110. package/dist/command-D0kWBZfd.js.map +1 -0
  111. package/dist/comments-CvYeglMS.js +1132 -0
  112. package/dist/comments-CvYeglMS.js.map +1 -0
  113. package/dist/component-vocabulary.js +26 -0
  114. package/dist/component-vocabulary.js.map +1 -0
  115. package/dist/components/base/accordion/accordion-variants.d.ts +36 -0
  116. package/dist/components/base/accordion/accordion.d.ts +20 -0
  117. package/dist/components/base/accordion/accordion.strings.d.ts +15 -0
  118. package/dist/components/base/accordion/accordion.types.d.ts +74 -0
  119. package/dist/components/base/accordion/index.d.ts +4 -0
  120. package/dist/components/base/accordion/smart-accordion.d.ts +7 -0
  121. package/dist/components/base/action-menu/action-menu.d.ts +147 -0
  122. package/dist/components/base/action-menu/action-menu.strings.d.ts +4 -0
  123. package/dist/components/base/action-menu/index.d.ts +11 -0
  124. package/dist/components/base/attachment/attachment.d.ts +17 -0
  125. package/dist/components/base/attachment/attachment.types.d.ts +49 -0
  126. package/dist/components/base/attachment/index.d.ts +2 -0
  127. package/dist/components/base/avatar/avatar.d.ts +24 -0
  128. package/dist/components/base/avatar/index.d.ts +14 -0
  129. package/dist/components/base/avatar/stacked-avatars.d.ts +39 -0
  130. package/dist/components/base/badge/badge.d.ts +22 -0
  131. package/dist/components/base/badge/badge.recipes.d.ts +20 -0
  132. package/dist/components/base/badge/index.d.ts +2 -0
  133. package/dist/components/base/buttons/base-button.d.ts +24 -0
  134. package/dist/components/base/buttons/button-group.d.ts +28 -0
  135. package/dist/components/base/buttons/button-group.recipes.d.ts +6 -0
  136. package/dist/components/base/buttons/button.d.ts +47 -0
  137. package/dist/components/base/buttons/button.recipes.d.ts +23 -0
  138. package/dist/components/base/buttons/button.variants.d.ts +8 -0
  139. package/dist/components/base/buttons/index.d.ts +7 -0
  140. package/dist/components/base/buttons/loader-button.d.ts +40 -0
  141. package/dist/components/base/buttons/text-button.d.ts +19 -0
  142. package/dist/components/base/buttons/tooltip-button.d.ts +7 -0
  143. package/dist/components/base/cards/card-actions.d.ts +41 -0
  144. package/dist/components/base/cards/card.recipes.d.ts +28 -0
  145. package/dist/components/base/cards/index.d.ts +5 -0
  146. package/dist/components/base/cards/partials/card-primitives.d.ts +21 -0
  147. package/dist/components/base/cards/partials/has-renderable-content.d.ts +8 -0
  148. package/dist/components/base/cards/partials/smart-card-actions-menu.d.ts +8 -0
  149. package/dist/components/base/cards/partials/smart-card-alert.d.ts +20 -0
  150. package/dist/components/base/cards/partials/smart-card-header-row.d.ts +33 -0
  151. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +16 -0
  152. package/dist/components/base/cards/smart-card.d.ts +9 -0
  153. package/dist/components/base/cards/smart-card.strings.d.ts +18 -0
  154. package/dist/components/base/cards/smart-card.tokens.d.ts +44 -0
  155. package/dist/components/base/cards/smart-card.types.d.ts +144 -0
  156. package/dist/components/base/carousel/carousel.d.ts +105 -0
  157. package/dist/components/base/carousel/carousel.strings.d.ts +6 -0
  158. package/dist/components/base/carousel/index.d.ts +2 -0
  159. package/dist/components/base/cascader/cascader.d.ts +2 -0
  160. package/dist/components/base/cascader/cascader.types.d.ts +57 -0
  161. package/dist/components/base/cascader/index.d.ts +2 -0
  162. package/dist/components/base/chart/chart.d.ts +99 -0
  163. package/dist/components/base/chart/index.d.ts +9 -0
  164. package/dist/components/base/choice-inputs/card-checkbox-group.d.ts +27 -0
  165. package/dist/components/base/choice-inputs/card-radio-group.d.ts +19 -0
  166. package/dist/components/base/choice-inputs/checkbox.d.ts +17 -0
  167. package/dist/components/base/choice-inputs/choice-types.d.ts +57 -0
  168. package/dist/components/base/choice-inputs/index.d.ts +28 -0
  169. package/dist/components/base/choice-inputs/list-radio-group.d.ts +13 -0
  170. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +27 -0
  171. package/dist/components/base/choice-inputs/select-popup.d.ts +26 -0
  172. package/dist/components/base/choice-inputs/select.d.ts +94 -0
  173. package/dist/components/base/choice-inputs/switch-card.d.ts +36 -0
  174. package/dist/components/base/choice-inputs/switch.d.ts +38 -0
  175. package/dist/components/base/choice-inputs/toggle-field.d.ts +41 -0
  176. package/dist/components/base/code-block/code-block.d.ts +3 -0
  177. package/dist/components/base/code-block/code-block.types.d.ts +46 -0
  178. package/dist/components/base/code-block/index.d.ts +2 -0
  179. package/dist/components/base/code-block/use-code-copy.d.ts +6 -0
  180. package/dist/components/base/combobox/index.d.ts +27 -0
  181. package/dist/components/base/command/command.d.ts +73 -0
  182. package/dist/components/base/command/index.d.ts +1 -0
  183. package/dist/components/base/copyable/copyable.d.ts +36 -0
  184. package/dist/components/base/copyable/index.d.ts +1 -0
  185. package/dist/components/base/date-pickers/date-picker-footer.d.ts +14 -0
  186. package/dist/components/base/date-pickers/date-picker-header.d.ts +10 -0
  187. package/dist/components/base/date-pickers/date-picker-helpers.d.ts +87 -0
  188. package/dist/components/base/date-pickers/date-picker-internals.d.ts +10 -0
  189. package/dist/components/base/date-pickers/date-picker-multiple.d.ts +20 -0
  190. package/dist/components/base/date-pickers/date-picker-range.d.ts +15 -0
  191. package/dist/components/base/date-pickers/date-picker-single.d.ts +15 -0
  192. package/dist/components/base/date-pickers/date-picker.d.ts +3 -0
  193. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +18 -0
  194. package/dist/components/base/date-pickers/date-pickers.strings.d.ts +14 -0
  195. package/dist/components/base/date-pickers/datepicker.types.d.ts +285 -0
  196. package/dist/components/base/date-pickers/index.d.ts +7 -0
  197. package/dist/components/base/date-pickers/month-year-picker.d.ts +4 -0
  198. package/dist/components/base/date-pickers/time-picker.d.ts +70 -0
  199. package/dist/components/base/display/alert-dialog.d.ts +25 -0
  200. package/dist/components/base/display/boolean-indicator.d.ts +25 -0
  201. package/dist/components/base/display/collapsible.d.ts +21 -0
  202. package/dist/components/base/display/content-block.d.ts +73 -0
  203. package/dist/components/base/display/content-block.strings.d.ts +5 -0
  204. package/dist/components/base/display/date-block.d.ts +70 -0
  205. package/dist/components/base/display/dialog.d.ts +35 -0
  206. package/dist/components/base/display/icon-badge/icon-badge.d.ts +45 -0
  207. package/dist/components/base/display/icon-badge/index.d.ts +1 -0
  208. package/dist/components/base/display/icon-size.d.ts +5 -0
  209. package/dist/components/base/display/index.d.ts +31 -0
  210. package/dist/components/base/display/placeholder-pattern.d.ts +7 -0
  211. package/dist/components/base/display/scroll-area.d.ts +12 -0
  212. package/dist/components/base/display/separator.d.ts +10 -0
  213. package/dist/components/base/display/surface-title.d.ts +10 -0
  214. package/dist/components/base/display/tooltip.d.ts +28 -0
  215. package/dist/components/base/display/visually-hidden.d.ts +14 -0
  216. package/dist/components/base/feedback/alert.d.ts +49 -0
  217. package/dist/components/base/feedback/empty.d.ts +48 -0
  218. package/dist/components/base/feedback/index.d.ts +27 -0
  219. package/dist/components/base/feedback/progress.d.ts +81 -0
  220. package/dist/components/base/feedback/progress.strings.d.ts +5 -0
  221. package/dist/components/base/feedback/state-display.d.ts +39 -0
  222. package/dist/components/base/forms/controlled-form-field.d.ts +32 -0
  223. package/dist/components/base/forms/controlled-form-field.strings.d.ts +7 -0
  224. package/dist/components/base/forms/form-field.d.ts +38 -0
  225. package/dist/components/base/forms/form-sizing.d.ts +86 -0
  226. package/dist/components/base/forms/index.d.ts +4 -0
  227. package/dist/components/base/forms/operation-password-form.d.ts +16 -0
  228. package/dist/components/base/forms/workflow.d.ts +68 -0
  229. package/dist/components/base/forms-numeric/coordinates-input.d.ts +47 -0
  230. package/dist/components/base/forms-numeric/currency-input.d.ts +44 -0
  231. package/dist/components/base/forms-numeric/decimal-input.d.ts +53 -0
  232. package/dist/components/base/forms-numeric/dimensions-input.d.ts +79 -0
  233. package/dist/components/base/forms-numeric/index.d.ts +21 -0
  234. package/dist/components/base/forms-numeric/money-input.d.ts +67 -0
  235. package/dist/components/base/forms-numeric/money-input.strings.d.ts +6 -0
  236. package/dist/components/base/forms-numeric/percentage-input.d.ts +8 -0
  237. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +12 -0
  238. package/dist/components/base/forms-numeric/weight-input.d.ts +54 -0
  239. package/dist/components/base/item/index.d.ts +2 -0
  240. package/dist/components/base/item/item.d.ts +12 -0
  241. package/dist/components/base/item/item.types.d.ts +100 -0
  242. package/dist/components/base/media-gallery/index.d.ts +2 -0
  243. package/dist/components/base/media-gallery/media-gallery.d.ts +45 -0
  244. package/dist/components/base/navigation/breadcrumbs.d.ts +37 -0
  245. package/dist/components/base/navigation/dropdown-menu.d.ts +45 -0
  246. package/dist/components/base/navigation/index.d.ts +21 -0
  247. package/dist/components/base/navigation/language-switcher.d.ts +12 -0
  248. package/dist/components/base/navigation/navigation-tabs.d.ts +40 -0
  249. package/dist/components/base/navigation/overflow-tab-bar.d.ts +43 -0
  250. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  251. package/dist/components/base/navigation/page-header/page-header.d.ts +88 -0
  252. package/dist/components/base/navigation/pagination.d.ts +61 -0
  253. package/dist/components/base/navigation/tab-scroll-viewport.d.ts +12 -0
  254. package/dist/components/base/navigation/tabs.d.ts +23 -0
  255. package/dist/components/base/popover/collection-content.d.ts +22 -0
  256. package/dist/components/base/popover/index.d.ts +1 -0
  257. package/dist/components/base/popover/popover.d.ts +54 -0
  258. package/dist/components/base/popover/popover.recipes.d.ts +29 -0
  259. package/dist/components/base/popover-menu/index.d.ts +3 -0
  260. package/dist/components/base/popover-menu/popover-menu.d.ts +82 -0
  261. package/dist/components/base/popover-menu/popover-menu.types.d.ts +30 -0
  262. package/dist/components/base/qr-code/index.d.ts +8 -0
  263. package/dist/components/base/qr-code/qr-code.d.ts +13 -0
  264. package/dist/components/base/repeaters/index.d.ts +21 -0
  265. package/dist/components/base/repeaters/key-value-editor.d.ts +27 -0
  266. package/dist/components/base/repeaters/localized-object-field.d.ts +35 -0
  267. package/dist/components/base/repeaters/localized-string-field.d.ts +25 -0
  268. package/dist/components/base/repeaters/localized-string-repeater.d.ts +44 -0
  269. package/dist/components/base/repeaters/object-repeater.d.ts +66 -0
  270. package/dist/components/base/repeaters/repeater.d.ts +87 -0
  271. package/dist/components/base/repeaters/repeaters.strings.d.ts +16 -0
  272. package/dist/components/base/repeaters/string-repeater.d.ts +65 -0
  273. package/dist/components/base/repeaters/string-repeater.utils.d.ts +2 -0
  274. package/dist/components/base/sheet/index.d.ts +1 -0
  275. package/dist/components/base/sheet/sheet.d.ts +35 -0
  276. package/dist/components/base/sidebar/index.d.ts +6 -0
  277. package/dist/components/base/sidebar/sidebar.d.ts +135 -0
  278. package/dist/components/base/signature-pad/index.d.ts +4 -0
  279. package/dist/components/base/signature-pad/signature-pad.d.ts +4 -0
  280. package/dist/components/base/signature-pad/signature-pad.types.d.ts +66 -0
  281. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +8 -0
  282. package/dist/components/base/skeleton/index.d.ts +14 -0
  283. package/dist/components/base/skeleton/skeleton.d.ts +54 -0
  284. package/dist/components/base/spinner/index.d.ts +1 -0
  285. package/dist/components/base/spinner/spinner.d.ts +32 -0
  286. package/dist/components/base/structure/adaptive-grid.d.ts +3 -0
  287. package/dist/components/base/structure/grid-cell.d.ts +3 -0
  288. package/dist/components/base/structure/grid.d.ts +3 -0
  289. package/dist/components/base/structure/index.d.ts +5 -0
  290. package/dist/components/base/structure/stack.d.ts +3 -0
  291. package/dist/components/base/structure/structure.context.d.ts +6 -0
  292. package/dist/components/base/structure/structure.recipes.d.ts +27 -0
  293. package/dist/components/base/structure/structure.responsive.d.ts +5 -0
  294. package/dist/components/base/structure/structure.types.d.ts +51 -0
  295. package/dist/components/base/table/index.d.ts +18 -0
  296. package/dist/components/base/text-inputs/hooks/index.d.ts +1 -0
  297. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +48 -0
  298. package/dist/components/base/text-inputs/index.d.ts +21 -0
  299. package/dist/components/base/text-inputs/input-group.d.ts +46 -0
  300. package/dist/components/base/text-inputs/input.d.ts +45 -0
  301. package/dist/components/base/text-inputs/password-input.d.ts +28 -0
  302. package/dist/components/base/text-inputs/slug-field.d.ts +21 -0
  303. package/dist/components/base/text-inputs/textarea.d.ts +37 -0
  304. package/dist/components/base/toaster/index.d.ts +1 -0
  305. package/dist/components/base/toaster/toaster.d.ts +6 -0
  306. package/dist/components/base/tree/hierarchy.d.ts +11 -0
  307. package/dist/components/base/tree/index.d.ts +2 -0
  308. package/dist/components/base/tree/tree.d.ts +3 -0
  309. package/dist/components/base/tree/tree.types.d.ts +47 -0
  310. package/dist/components/base/upload/avatar-upload.d.ts +39 -0
  311. package/dist/components/base/upload/dropzone.d.ts +40 -0
  312. package/dist/components/base/upload/file-picker-input.d.ts +15 -0
  313. package/dist/components/base/upload/file-upload.d.ts +9 -0
  314. package/dist/components/base/upload/file-upload.strings.d.ts +18 -0
  315. package/dist/components/base/upload/file-upload.types.d.ts +68 -0
  316. package/dist/components/base/upload/file-upload.validation.d.ts +21 -0
  317. package/dist/components/base/upload/image-upload.d.ts +57 -0
  318. package/dist/components/base/upload/index.d.ts +26 -0
  319. package/dist/components/base/upload/use-file-drop-target.d.ts +22 -0
  320. package/dist/components/base/upload-queue/index.d.ts +3 -0
  321. package/dist/components/base/upload-queue/upload-progress-list.d.ts +55 -0
  322. package/dist/components/base/upload-queue/upload-tray.d.ts +46 -0
  323. package/dist/components/base/value-inputs/color-input.d.ts +26 -0
  324. package/dist/components/base/value-inputs/date-time-input.d.ts +19 -0
  325. package/dist/components/base/value-inputs/index.d.ts +25 -0
  326. package/dist/components/base/value-inputs/phone-input.d.ts +48 -0
  327. package/dist/components/base/value-inputs/slider.d.ts +59 -0
  328. package/dist/components/base/value-inputs/tags-input.d.ts +67 -0
  329. package/dist/components/blocks/admin/action-surfaces/index.d.ts +127 -0
  330. package/dist/components/blocks/admin/admin.strings.d.ts +11 -0
  331. package/dist/components/blocks/admin/api-key-list/api-key-list.d.ts +2 -0
  332. package/dist/components/blocks/admin/api-key-list/api-key-list.strings.d.ts +16 -0
  333. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +58 -0
  334. package/dist/components/blocks/admin/api-key-list/index.d.ts +3 -0
  335. package/dist/components/blocks/admin/index.d.ts +4 -0
  336. package/dist/components/blocks/admin/role-permission/index.d.ts +2 -0
  337. package/dist/components/blocks/admin/role-permission/role-permission.d.ts +5 -0
  338. package/dist/components/blocks/admin/role-permission/types.d.ts +26 -0
  339. package/dist/components/blocks/ai/ai-agent/ai-agent.d.ts +5 -0
  340. package/dist/components/blocks/ai/ai-agent/index.d.ts +2 -0
  341. package/dist/components/blocks/ai/ai-agent/types.d.ts +30 -0
  342. package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +5 -0
  343. package/dist/components/blocks/ai/ai-artifact/index.d.ts +2 -0
  344. package/dist/components/blocks/ai/ai-artifact/types.d.ts +50 -0
  345. package/dist/components/blocks/ai/ai-attachment/ai-attachment.d.ts +5 -0
  346. package/dist/components/blocks/ai/ai-attachment/index.d.ts +2 -0
  347. package/dist/components/blocks/ai/ai-attachment/types.d.ts +35 -0
  348. package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +5 -0
  349. package/dist/components/blocks/ai/ai-chain-of-thought/index.d.ts +2 -0
  350. package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +36 -0
  351. package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +5 -0
  352. package/dist/components/blocks/ai/ai-citation/index.d.ts +2 -0
  353. package/dist/components/blocks/ai/ai-citation/types.d.ts +38 -0
  354. package/dist/components/blocks/ai/ai-classification/ai-classification.d.ts +2 -0
  355. package/dist/components/blocks/ai/ai-classification/index.d.ts +2 -0
  356. package/dist/components/blocks/ai/ai-classification/types.d.ts +27 -0
  357. package/dist/components/blocks/ai/ai-code-block/ai-code-block.d.ts +6 -0
  358. package/dist/components/blocks/ai/ai-code-block/index.d.ts +2 -0
  359. package/dist/components/blocks/ai/ai-code-block/types.d.ts +38 -0
  360. package/dist/components/blocks/ai/ai-confidence/ai-confidence.d.ts +5 -0
  361. package/dist/components/blocks/ai/ai-confidence/index.d.ts +2 -0
  362. package/dist/components/blocks/ai/ai-confidence/types.d.ts +25 -0
  363. package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +5 -0
  364. package/dist/components/blocks/ai/ai-confirmation/index.d.ts +2 -0
  365. package/dist/components/blocks/ai/ai-confirmation/types.d.ts +40 -0
  366. package/dist/components/blocks/ai/ai-feedback/ai-feedback.d.ts +5 -0
  367. package/dist/components/blocks/ai/ai-feedback/index.d.ts +2 -0
  368. package/dist/components/blocks/ai/ai-feedback/types.d.ts +24 -0
  369. package/dist/components/blocks/ai/ai-file-tree/ai-file-tree.d.ts +5 -0
  370. package/dist/components/blocks/ai/ai-file-tree/index.d.ts +2 -0
  371. package/dist/components/blocks/ai/ai-file-tree/types.d.ts +59 -0
  372. package/dist/components/blocks/ai/ai-inline-citation/ai-inline-citation.d.ts +5 -0
  373. package/dist/components/blocks/ai/ai-inline-citation/index.d.ts +2 -0
  374. package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +22 -0
  375. package/dist/components/blocks/ai/ai-message-bubble/ai-message-bubble.d.ts +6 -0
  376. package/dist/components/blocks/ai/ai-message-bubble/index.d.ts +2 -0
  377. package/dist/components/blocks/ai/ai-message-bubble/types.d.ts +35 -0
  378. package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +5 -0
  379. package/dist/components/blocks/ai/ai-package-info/index.d.ts +2 -0
  380. package/dist/components/blocks/ai/ai-package-info/types.d.ts +39 -0
  381. package/dist/components/blocks/ai/ai-prompt-suggestions/ai-prompt-suggestions.d.ts +5 -0
  382. package/dist/components/blocks/ai/ai-prompt-suggestions/index.d.ts +2 -0
  383. package/dist/components/blocks/ai/ai-prompt-suggestions/types.d.ts +26 -0
  384. package/dist/components/blocks/ai/ai-reasoning/ai-reasoning.d.ts +5 -0
  385. package/dist/components/blocks/ai/ai-reasoning/index.d.ts +2 -0
  386. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +32 -0
  387. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +5 -0
  388. package/dist/components/blocks/ai/ai-shimmer/index.d.ts +2 -0
  389. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +11 -0
  390. package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +5 -0
  391. package/dist/components/blocks/ai/ai-sources/index.d.ts +2 -0
  392. package/dist/components/blocks/ai/ai-sources/types.d.ts +44 -0
  393. package/dist/components/blocks/ai/ai-summary/ai-summary.d.ts +2 -0
  394. package/dist/components/blocks/ai/ai-summary/index.d.ts +2 -0
  395. package/dist/components/blocks/ai/ai-summary/types.d.ts +32 -0
  396. package/dist/components/blocks/ai/ai-task/ai-task.d.ts +5 -0
  397. package/dist/components/blocks/ai/ai-task/index.d.ts +2 -0
  398. package/dist/components/blocks/ai/ai-task/types.d.ts +38 -0
  399. package/dist/components/blocks/ai/ai-token-usage/ai-token-usage.d.ts +5 -0
  400. package/dist/components/blocks/ai/ai-token-usage/index.d.ts +2 -0
  401. package/dist/components/blocks/ai/ai-token-usage/types.d.ts +22 -0
  402. package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +5 -0
  403. package/dist/components/blocks/ai/ai-tool-call/index.d.ts +2 -0
  404. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +38 -0
  405. package/dist/components/blocks/ai/ai.strings.d.ts +36 -0
  406. package/dist/components/blocks/ai/index.d.ts +24 -0
  407. package/dist/components/blocks/ai/use-copy-feedback.d.ts +6 -0
  408. package/dist/components/blocks/analytics/activity-heatmap/activity-heatmap.d.ts +5 -0
  409. package/dist/components/blocks/analytics/activity-heatmap/index.d.ts +2 -0
  410. package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +20 -0
  411. package/dist/components/blocks/analytics/analytics.strings.d.ts +35 -0
  412. package/dist/components/blocks/analytics/atoms/metric-skeleton.d.ts +13 -0
  413. package/dist/components/blocks/analytics/atoms/metric-sparkline.d.ts +15 -0
  414. package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +15 -0
  415. package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +42 -0
  416. package/dist/components/blocks/analytics/chart-card/index.d.ts +1 -0
  417. package/dist/components/blocks/analytics/format-metric-value.d.ts +8 -0
  418. package/dist/components/blocks/analytics/index.d.ts +34 -0
  419. package/dist/components/blocks/analytics/metric/index.d.ts +1 -0
  420. package/dist/components/blocks/analytics/metric/metric.d.ts +28 -0
  421. package/dist/components/blocks/analytics/metric-bar/index.d.ts +1 -0
  422. package/dist/components/blocks/analytics/metric-bar/metric-bar.d.ts +22 -0
  423. package/dist/components/blocks/analytics/metric-comparison/index.d.ts +1 -0
  424. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +26 -0
  425. package/dist/components/blocks/analytics/metric-gradient/index.d.ts +1 -0
  426. package/dist/components/blocks/analytics/metric-gradient/metric-gradient.d.ts +19 -0
  427. package/dist/components/blocks/analytics/metric-grid/index.d.ts +1 -0
  428. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +33 -0
  429. package/dist/components/blocks/analytics/metric-micro-grid/index.d.ts +1 -0
  430. package/dist/components/blocks/analytics/metric-micro-grid/metric-micro-grid.d.ts +23 -0
  431. package/dist/components/blocks/analytics/time-ruler/index.d.ts +2 -0
  432. package/dist/components/blocks/analytics/time-ruler/time-ruler.d.ts +5 -0
  433. package/dist/components/blocks/analytics/time-ruler/types.d.ts +32 -0
  434. package/dist/components/blocks/analytics/types.d.ts +83 -0
  435. package/dist/components/blocks/collaboration/index.d.ts +1 -0
  436. package/dist/components/blocks/collaboration/message/index.d.ts +2 -0
  437. package/dist/components/blocks/collaboration/message/message.d.ts +8 -0
  438. package/dist/components/blocks/collaboration/message/message.types.d.ts +30 -0
  439. package/dist/components/blocks/commerce/address-card/address-card.d.ts +5 -0
  440. package/dist/components/blocks/commerce/address-card/index.d.ts +2 -0
  441. package/dist/components/blocks/commerce/address-card/types.d.ts +43 -0
  442. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +12 -0
  443. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +36 -0
  444. package/dist/components/blocks/commerce/booking-calendar-event-card/index.d.ts +2 -0
  445. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +5 -0
  446. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -0
  447. package/dist/components/blocks/commerce/cart-summary/types.d.ts +53 -0
  448. package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +5 -0
  449. package/dist/components/blocks/commerce/coupon-input/index.d.ts +2 -0
  450. package/dist/components/blocks/commerce/coupon-input/types.d.ts +35 -0
  451. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +5 -0
  452. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -0
  453. package/dist/components/blocks/commerce/discount-stack/types.d.ts +27 -0
  454. package/dist/components/blocks/commerce/format-signed-amount.d.ts +22 -0
  455. package/dist/components/blocks/commerce/giftcard-card/giftcard-card.d.ts +62 -0
  456. package/dist/components/blocks/commerce/giftcard-card/index.d.ts +2 -0
  457. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +10 -0
  458. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +9 -0
  459. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +7 -0
  460. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +11 -0
  461. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +10 -0
  462. package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +10 -0
  463. package/dist/components/blocks/commerce/giftcard-card/types.d.ts +83 -0
  464. package/dist/components/blocks/commerce/index.d.ts +34 -0
  465. package/dist/components/blocks/commerce/inventory-level/index.d.ts +3 -0
  466. package/dist/components/blocks/commerce/inventory-level/inventory-level.d.ts +5 -0
  467. package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +10 -0
  468. package/dist/components/blocks/commerce/inventory-level/types.d.ts +20 -0
  469. package/dist/components/blocks/commerce/inventory-section/index.d.ts +2 -0
  470. package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +5 -0
  471. package/dist/components/blocks/commerce/inventory-section/types.d.ts +105 -0
  472. package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -0
  473. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +5 -0
  474. package/dist/components/blocks/commerce/invoice-header/types.d.ts +51 -0
  475. package/dist/components/blocks/commerce/invoice-line-items/index.d.ts +2 -0
  476. package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +5 -0
  477. package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +64 -0
  478. package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -0
  479. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +5 -0
  480. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +28 -0
  481. package/dist/components/blocks/commerce/loyalty-points/index.d.ts +2 -0
  482. package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +5 -0
  483. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +32 -0
  484. package/dist/components/blocks/commerce/order-status/index.d.ts +2 -0
  485. package/dist/components/blocks/commerce/order-status/order-status.d.ts +5 -0
  486. package/dist/components/blocks/commerce/order-status/types.d.ts +35 -0
  487. package/dist/components/blocks/commerce/order-timeline/index.d.ts +2 -0
  488. package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +5 -0
  489. package/dist/components/blocks/commerce/order-timeline/types.d.ts +22 -0
  490. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -0
  491. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +5 -0
  492. package/dist/components/blocks/commerce/payment-method/types.d.ts +33 -0
  493. package/dist/components/blocks/commerce/payment-timeline/index.d.ts +2 -0
  494. package/dist/components/blocks/commerce/payment-timeline/payment-timeline.d.ts +5 -0
  495. package/dist/components/blocks/commerce/payment-timeline/types.d.ts +15 -0
  496. package/dist/components/blocks/commerce/receipt/index.d.ts +3 -0
  497. package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +2 -0
  498. package/dist/components/blocks/commerce/receipt/receipt.d.ts +3 -0
  499. package/dist/components/blocks/commerce/receipt/types.d.ts +42 -0
  500. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -0
  501. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +5 -0
  502. package/dist/components/blocks/commerce/refund-status/types.d.ts +37 -0
  503. package/dist/components/blocks/commerce/seo-listing/index.d.ts +3 -0
  504. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +5 -0
  505. package/dist/components/blocks/commerce/seo-listing/seo-listing-score.d.ts +5 -0
  506. package/dist/components/blocks/commerce/seo-listing/types.d.ts +92 -0
  507. package/dist/components/blocks/commerce/shipment-tracking/index.d.ts +2 -0
  508. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +5 -0
  509. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +44 -0
  510. package/dist/components/blocks/commerce/subscription-summary/index.d.ts +2 -0
  511. package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +5 -0
  512. package/dist/components/blocks/commerce/subscription-summary/types.d.ts +39 -0
  513. package/dist/components/blocks/commerce/tax-breakdown/index.d.ts +2 -0
  514. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +5 -0
  515. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +34 -0
  516. package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -0
  517. package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +29 -0
  518. package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +5 -0
  519. package/dist/components/blocks/commerce/vendor-profile/index.d.ts +3 -0
  520. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +86 -0
  521. package/dist/components/blocks/commerce/vendor-profile/vendor-profile.d.ts +2 -0
  522. package/dist/components/blocks/commerce/voucher-entry/index.d.ts +2 -0
  523. package/dist/components/blocks/commerce/voucher-entry/types.d.ts +33 -0
  524. package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +5 -0
  525. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +6 -0
  526. package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +19 -0
  527. package/dist/components/blocks/data-display/dense-info-card/index.d.ts +7 -0
  528. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +5 -0
  529. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +5 -0
  530. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +5 -0
  531. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +5 -0
  532. package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +5 -0
  533. package/dist/components/blocks/data-display/dense-info-card/types.d.ts +183 -0
  534. package/dist/components/blocks/data-display/empty-state/empty-state.d.ts +2 -0
  535. package/dist/components/blocks/data-display/empty-state/empty-state.strings.d.ts +19 -0
  536. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +86 -0
  537. package/dist/components/blocks/data-display/empty-state/index.d.ts +5 -0
  538. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +9 -0
  539. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +9 -0
  540. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +25 -0
  541. package/dist/components/blocks/data-display/empty-state/partials/illustrations/search-glass.d.ts +9 -0
  542. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +11 -0
  543. package/dist/components/blocks/data-display/empty-state/partials/illustrations/types.d.ts +4 -0
  544. package/dist/components/blocks/data-display/empty-state/partials/illustrations/users-circle.d.ts +9 -0
  545. package/dist/components/blocks/data-display/index.d.ts +6 -0
  546. package/dist/components/blocks/data-display/inline-stat/index.d.ts +1 -0
  547. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +35 -0
  548. package/dist/components/blocks/data-display/metadata/index.d.ts +4 -0
  549. package/dist/components/blocks/data-display/metadata/metadata-list.d.ts +78 -0
  550. package/dist/components/blocks/data-display/metadata/metadata-list.strings.d.ts +18 -0
  551. package/dist/components/blocks/data-display/metadata/metadata-value.d.ts +142 -0
  552. package/dist/components/blocks/data-display/relationship-card-frame.d.ts +40 -0
  553. package/dist/components/blocks/onboarding/checklist/checklist.d.ts +2 -0
  554. package/dist/components/blocks/onboarding/checklist/checklist.strings.d.ts +15 -0
  555. package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +64 -0
  556. package/dist/components/blocks/onboarding/checklist/index.d.ts +4 -0
  557. package/dist/components/blocks/onboarding/checklist/partials/step-status-indicator.d.ts +12 -0
  558. package/dist/components/blocks/onboarding/index.d.ts +7 -0
  559. package/dist/components/blocks/timelines/changelog/changelog-timeline.d.ts +5 -0
  560. package/dist/components/blocks/timelines/changelog/index.d.ts +2 -0
  561. package/dist/components/blocks/timelines/changelog/types.d.ts +33 -0
  562. package/dist/components/blocks/timelines/index.d.ts +5 -0
  563. package/dist/components/blocks/timelines/milestones/index.d.ts +2 -0
  564. package/dist/components/blocks/timelines/milestones/milestones-timeline.d.ts +5 -0
  565. package/dist/components/blocks/timelines/milestones/types.d.ts +32 -0
  566. package/dist/components/blocks/timelines/shared/index.d.ts +1 -0
  567. package/dist/components/blocks/timelines/shared/timeline.d.ts +40 -0
  568. package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -0
  569. package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +9 -0
  570. package/dist/components/blocks/timelines/steps-card/types.d.ts +38 -0
  571. package/dist/components/features/activities/activities-feed.d.ts +5 -0
  572. package/dist/components/features/activities/activities.config.d.ts +6 -0
  573. package/dist/components/features/activities/activities.strings.d.ts +38 -0
  574. package/dist/components/features/activities/activities.types.d.ts +431 -0
  575. package/dist/components/features/activities/activity-event-adapter.d.ts +38 -0
  576. package/dist/components/features/activities/activity-log.d.ts +6 -0
  577. package/dist/components/features/activities/hooks/index.d.ts +2 -0
  578. package/dist/components/features/activities/hooks/use-activity-feed.d.ts +44 -0
  579. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +22 -0
  580. package/dist/components/features/activities/index.d.ts +8 -0
  581. package/dist/components/features/activities/partials/activity-actions-menu.d.ts +11 -0
  582. package/dist/components/features/activities/partials/activity-changes.d.ts +8 -0
  583. package/dist/components/features/activities/partials/activity-date-label.d.ts +9 -0
  584. package/dist/components/features/activities/partials/activity-empty-state.d.ts +9 -0
  585. package/dist/components/features/activities/partials/activity-headline.d.ts +20 -0
  586. package/dist/components/features/activities/partials/activity-marker.d.ts +25 -0
  587. package/dist/components/features/activities/partials/activity-resource-tag.d.ts +11 -0
  588. package/dist/components/features/activities/partials/activity-row.d.ts +68 -0
  589. package/dist/components/features/activities/partials/index.d.ts +8 -0
  590. package/dist/components/features/activities/partials/tone-tokens.d.ts +25 -0
  591. package/dist/components/features/ai-chat/ai-chat.d.ts +81 -0
  592. package/dist/components/features/ai-chat/ai-chat.strings.d.ts +56 -0
  593. package/dist/components/features/ai-chat/ai-chat.types.d.ts +170 -0
  594. package/dist/components/features/ai-chat/hooks/index.d.ts +1 -0
  595. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +15 -0
  596. package/dist/components/features/ai-chat/index.d.ts +5 -0
  597. package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +15 -0
  598. package/dist/components/features/ai-chat/partials/ai-chat-conversation.d.ts +28 -0
  599. package/dist/components/features/ai-chat/partials/ai-chat-empty-state.d.ts +22 -0
  600. package/dist/components/features/ai-chat/partials/ai-chat-message.d.ts +21 -0
  601. package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +59 -0
  602. package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +19 -0
  603. package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +18 -0
  604. package/dist/components/features/ai-chat/partials/index.d.ts +7 -0
  605. package/dist/components/features/async-preview/async-preview.d.ts +84 -0
  606. package/dist/components/features/async-preview/async-preview.strings.d.ts +14 -0
  607. package/dist/components/features/async-preview/async-preview.types.d.ts +133 -0
  608. package/dist/components/features/async-preview/hooks/index.d.ts +1 -0
  609. package/dist/components/features/async-preview/hooks/use-async-preview.d.ts +8 -0
  610. package/dist/components/features/async-preview/index.d.ts +6 -0
  611. package/dist/components/features/async-preview/partials/index.d.ts +1 -0
  612. package/dist/components/features/async-preview/preview-trigger-cell.d.ts +45 -0
  613. package/dist/components/features/combobox/async-resource-combobox.d.ts +94 -0
  614. package/dist/components/features/combobox/combobox.d.ts +20 -0
  615. package/dist/components/features/combobox/combobox.strings.d.ts +14 -0
  616. package/dist/components/features/combobox/components/combobox-dropdown.d.ts +57 -0
  617. package/dist/components/features/combobox/components/error-message.d.ts +15 -0
  618. package/dist/components/features/combobox/components/highlighted-text.d.ts +14 -0
  619. package/dist/components/features/combobox/components/index.d.ts +13 -0
  620. package/dist/components/features/combobox/components/loading-more.d.ts +15 -0
  621. package/dist/components/features/combobox/components/status-content.d.ts +21 -0
  622. package/dist/components/features/combobox/constants.d.ts +19 -0
  623. package/dist/components/features/combobox/hooks/index.d.ts +2 -0
  624. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +30 -0
  625. package/dist/components/features/combobox/hooks/use-debounced-search.d.ts +10 -0
  626. package/dist/components/features/combobox/hooks/use-grouped-items.d.ts +9 -0
  627. package/dist/components/features/combobox/hooks/use-load-more.d.ts +12 -0
  628. package/dist/components/features/combobox/index.d.ts +13 -0
  629. package/dist/components/features/combobox/types.d.ts +184 -0
  630. package/dist/components/features/comments/comments-provider.d.ts +15 -0
  631. package/dist/components/features/comments/comments.d.ts +2 -0
  632. package/dist/components/features/comments/comments.strings.d.ts +91 -0
  633. package/dist/components/features/comments/comments.types.d.ts +369 -0
  634. package/dist/components/features/comments/hooks/index.d.ts +4 -0
  635. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +28 -0
  636. package/dist/components/features/comments/hooks/use-comments.d.ts +34 -0
  637. package/dist/components/features/comments/index.d.ts +8 -0
  638. package/dist/components/features/comments/partials/comment-attachment-chip.d.ts +23 -0
  639. package/dist/components/features/comments/partials/comment-composer.d.ts +12 -0
  640. package/dist/components/features/comments/partials/comment-content.d.ts +13 -0
  641. package/dist/components/features/comments/partials/comment-empty.d.ts +12 -0
  642. package/dist/components/features/comments/partials/comment-item.d.ts +3 -0
  643. package/dist/components/features/comments/partials/comment-timeline.d.ts +3 -0
  644. package/dist/components/features/comments/partials/index.d.ts +9 -0
  645. package/dist/components/features/data-view/data-view-filtering.d.ts +3 -0
  646. package/dist/components/features/data-view/data-view.d.ts +7 -0
  647. package/dist/components/features/data-view/data-view.strings.d.ts +9 -0
  648. package/dist/components/features/data-view/data-view.types.d.ts +191 -0
  649. package/dist/components/features/data-view/hooks/index.d.ts +1 -0
  650. package/dist/components/features/data-view/hooks/use-data-view.d.ts +2 -0
  651. package/dist/components/features/data-view/index.d.ts +4 -0
  652. package/dist/components/features/email-composer/document.d.ts +8 -0
  653. package/dist/components/features/email-composer/email-composer.d.ts +2 -0
  654. package/dist/components/features/email-composer/email-html.d.ts +5 -0
  655. package/dist/components/features/email-composer/engine.d.ts +18 -0
  656. package/dist/components/features/email-composer/http.d.ts +6 -0
  657. package/dist/components/features/email-composer/index.d.ts +6 -0
  658. package/dist/components/features/email-composer/partials/body-editor.d.ts +11 -0
  659. package/dist/components/features/email-composer/partials/data-status.d.ts +8 -0
  660. package/dist/components/features/email-composer/partials/html-preview.d.ts +6 -0
  661. package/dist/components/features/email-composer/partials/recipients.d.ts +14 -0
  662. package/dist/components/features/email-composer/partials/variables.d.ts +11 -0
  663. package/dist/components/features/email-composer/strings.d.ts +79 -0
  664. package/dist/components/features/email-composer/types.d.ts +195 -0
  665. package/dist/components/features/email-composer/use-composer.d.ts +119 -0
  666. package/dist/components/features/event-calendar/colors.d.ts +29 -0
  667. package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +5 -0
  668. package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +5 -0
  669. package/dist/components/features/event-calendar/event-calendar-event-card.d.ts +16 -0
  670. package/dist/components/features/event-calendar/event-calendar-header.d.ts +8 -0
  671. package/dist/components/features/event-calendar/event-calendar-legend.d.ts +5 -0
  672. package/dist/components/features/event-calendar/event-calendar.d.ts +5 -0
  673. package/dist/components/features/event-calendar/event-calendar.types.d.ts +350 -0
  674. package/dist/components/features/event-calendar/index.d.ts +11 -0
  675. package/dist/components/features/event-calendar/use-event-calendar-data.d.ts +15 -0
  676. package/dist/components/features/event-calendar/use-event-calendar.d.ts +24 -0
  677. package/dist/components/features/filters/facets/async-select-facet.d.ts +28 -0
  678. package/dist/components/features/filters/facets/date-facet.d.ts +18 -0
  679. package/dist/components/features/filters/facets/range-facet.d.ts +30 -0
  680. package/dist/components/features/filters/facets/search-facet.d.ts +27 -0
  681. package/dist/components/features/filters/facets/select-facet.d.ts +19 -0
  682. package/dist/components/features/filters/facets/tags-facet.d.ts +27 -0
  683. package/dist/components/features/filters/filter-context.d.ts +61 -0
  684. package/dist/components/features/filters/filter-layout.d.ts +16 -0
  685. package/dist/components/features/filters/filter-query.d.ts +21 -0
  686. package/dist/components/features/filters/filters.strings.d.ts +103 -0
  687. package/dist/components/features/filters/filters.types.d.ts +222 -0
  688. package/dist/components/features/filters/hooks/index.d.ts +3 -0
  689. package/dist/components/features/filters/hooks/use-async-options.d.ts +16 -0
  690. package/dist/components/features/filters/hooks/use-filter-groups.d.ts +16 -0
  691. package/dist/components/features/filters/index.d.ts +42 -0
  692. package/dist/components/features/filters/operator-options.d.ts +9 -0
  693. package/dist/components/features/filters/partials/active-filter-item.d.ts +37 -0
  694. package/dist/components/features/filters/partials/async-filter-content.d.ts +21 -0
  695. package/dist/components/features/filters/partials/date-filter-content.d.ts +14 -0
  696. package/dist/components/features/filters/partials/filter-error-boundary.d.ts +9 -0
  697. package/dist/components/features/filters/partials/filter-list-content.d.ts +24 -0
  698. package/dist/components/features/filters/partials/filter-list-item.d.ts +19 -0
  699. package/dist/components/features/filters/partials/filter-operator-select.d.ts +22 -0
  700. package/dist/components/features/filters/partials/filter-pill.d.ts +26 -0
  701. package/dist/components/features/filters/partials/filter-popover-content.d.ts +36 -0
  702. package/dist/components/features/filters/partials/filter-tabs.d.ts +14 -0
  703. package/dist/components/features/filters/partials/filter-value-display.d.ts +21 -0
  704. package/dist/components/features/filters/partials/filters-button.d.ts +32 -0
  705. package/dist/components/features/filters/partials/index.d.ts +14 -0
  706. package/dist/components/features/filters/partials/regular-filter-content.d.ts +28 -0
  707. package/dist/components/features/filters/partials/search-filters-list.d.ts +25 -0
  708. package/dist/components/features/filters/partials/tags-filter-content.d.ts +28 -0
  709. package/dist/components/features/filters/utils/filter-utils.d.ts +37 -0
  710. package/dist/components/features/filters/validators.d.ts +63 -0
  711. package/dist/components/features/global-search/global-search-dialog.d.ts +13 -0
  712. package/dist/components/features/global-search/global-search.d.ts +52 -0
  713. package/dist/components/features/global-search/global-search.strings.d.ts +36 -0
  714. package/dist/components/features/global-search/global-search.types.d.ts +105 -0
  715. package/dist/components/features/global-search/hooks/index.d.ts +2 -0
  716. package/dist/components/features/global-search/hooks/use-global-search.d.ts +33 -0
  717. package/dist/components/features/global-search/index.d.ts +9 -0
  718. package/dist/components/features/global-search/partials/global-search-empty-state.d.ts +7 -0
  719. package/dist/components/features/global-search/partials/global-search-footer.d.ts +13 -0
  720. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +12 -0
  721. package/dist/components/features/global-search/partials/global-search-input.d.ts +17 -0
  722. package/dist/components/features/global-search/partials/global-search-result-row.d.ts +16 -0
  723. package/dist/components/features/global-search/partials/global-search-tabs.d.ts +13 -0
  724. package/dist/components/features/global-search/partials/index.d.ts +12 -0
  725. package/dist/components/features/global-search/partials/tone-palettes.d.ts +8 -0
  726. package/dist/components/features/kanban/hooks/index.d.ts +1 -0
  727. package/dist/components/features/kanban/hooks/use-kanban.d.ts +32 -0
  728. package/dist/components/features/kanban/index.d.ts +5 -0
  729. package/dist/components/features/kanban/kanban-context.d.ts +25 -0
  730. package/dist/components/features/kanban/kanban-keyboard.d.ts +10 -0
  731. package/dist/components/features/kanban/kanban.d.ts +38 -0
  732. package/dist/components/features/kanban/kanban.strings.d.ts +24 -0
  733. package/dist/components/features/kanban/kanban.types.d.ts +168 -0
  734. package/dist/components/features/map/index.d.ts +13 -0
  735. package/dist/components/features/map/map.d.ts +166 -0
  736. package/dist/components/features/map/place-autocomplete.d.ts +97 -0
  737. package/dist/components/features/map/public-leaflet.types.d.ts +71 -0
  738. package/dist/components/features/map/use-map-color-scheme.d.ts +2 -0
  739. package/dist/components/features/media-library/hooks/index.d.ts +1 -0
  740. package/dist/components/features/media-library/hooks/use-media-library.d.ts +5 -0
  741. package/dist/components/features/media-library/index.d.ts +6 -0
  742. package/dist/components/features/media-library/media-library.d.ts +3 -0
  743. package/dist/components/features/media-library/media-library.strings.d.ts +124 -0
  744. package/dist/components/features/media-library/media-library.types.d.ts +568 -0
  745. package/dist/components/features/media-library/media-resource-gallery.d.ts +2 -0
  746. package/dist/components/features/media-library/partials/index.d.ts +1 -0
  747. package/dist/components/features/media-library/partials/media-library-partials.d.ts +10 -0
  748. package/dist/components/features/mentions/hooks/index.d.ts +2 -0
  749. package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +41 -0
  750. package/dist/components/features/mentions/hooks/use-mentions.d.ts +35 -0
  751. package/dist/components/features/mentions/index.d.ts +5 -0
  752. package/dist/components/features/mentions/mentions.strings.d.ts +26 -0
  753. package/dist/components/features/mentions/mentions.types.d.ts +100 -0
  754. package/dist/components/features/mentions/partials/index.d.ts +4 -0
  755. package/dist/components/features/mentions/partials/mention-chip.d.ts +29 -0
  756. package/dist/components/features/mentions/partials/mention-content.d.ts +22 -0
  757. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +36 -0
  758. package/dist/components/features/mentions/partials/mention-picker.d.ts +31 -0
  759. package/dist/components/features/mentions/utils/build-mention-html.d.ts +24 -0
  760. package/dist/components/features/mentions/utils/index.d.ts +3 -0
  761. package/dist/components/features/mentions/utils/parse-mentions-from-html.d.ts +13 -0
  762. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +16 -0
  763. package/dist/components/features/overlays/alert-dialog.d.ts +4 -0
  764. package/dist/components/features/overlays/dialog.d.ts +4 -0
  765. package/dist/components/features/overlays/drawer.d.ts +4 -0
  766. package/dist/components/features/overlays/hooks/index.d.ts +2 -0
  767. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +24 -0
  768. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +36 -0
  769. package/dist/components/features/overlays/index.d.ts +6 -0
  770. package/dist/components/features/overlays/overlays.strings.d.ts +19 -0
  771. package/dist/components/features/overlays/overlays.types.d.ts +169 -0
  772. package/dist/components/features/products/components/index.d.ts +17 -0
  773. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  774. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  775. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  776. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  777. package/dist/components/features/products/components/product-options-matrix.d.ts +5 -0
  778. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  779. package/dist/components/features/products/components/product-overview.d.ts +5 -0
  780. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  781. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  782. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  783. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  784. package/dist/components/features/products/components/product-variant-action-menu.d.ts +5 -0
  785. package/dist/components/features/products/components/product-variant-details.d.ts +5 -0
  786. package/dist/components/features/products/components/product-variant-editor.d.ts +5 -0
  787. package/dist/components/features/products/components/product-variants-bulk-table.d.ts +5 -0
  788. package/dist/components/features/products/components/product-variants-manager.d.ts +5 -0
  789. package/dist/components/features/products/components/product-variants-table.d.ts +5 -0
  790. package/dist/components/features/products/index.d.ts +3 -0
  791. package/dist/components/features/products/partials/index.d.ts +7 -0
  792. package/dist/components/features/products/partials/product-actions.d.ts +10 -0
  793. package/dist/components/features/products/partials/product-empty-state.d.ts +10 -0
  794. package/dist/components/features/products/partials/product-metric-tile.d.ts +4 -0
  795. package/dist/components/features/products/partials/product-rows.d.ts +35 -0
  796. package/dist/components/features/products/partials/product-tone.d.ts +8 -0
  797. package/dist/components/features/products/partials/product-values.d.ts +1 -0
  798. package/dist/components/features/products/partials/product-variant-table-parts.d.ts +28 -0
  799. package/dist/components/features/products/products.strings.d.ts +308 -0
  800. package/dist/components/features/products/products.types.d.ts +906 -0
  801. package/dist/components/features/questionnaire/index.d.ts +3 -0
  802. package/dist/components/features/questionnaire/questionnaire-control.d.ts +3 -0
  803. package/dist/components/features/questionnaire/questionnaire.d.ts +2 -0
  804. package/dist/components/features/questionnaire/questionnaire.types.d.ts +98 -0
  805. package/dist/components/features/questionnaire/questionnaire.utils.d.ts +5 -0
  806. package/dist/components/features/resource/index.d.ts +3 -0
  807. package/dist/components/features/resource/resource.d.ts +8 -0
  808. package/dist/components/features/resource/resource.strings.d.ts +12 -0
  809. package/dist/components/features/resource/resource.types.d.ts +161 -0
  810. package/dist/components/features/resource-assignment/hooks/index.d.ts +2 -0
  811. package/dist/components/features/resource-assignment/hooks/use-shared-resource-card.d.ts +32 -0
  812. package/dist/components/features/resource-assignment/index.d.ts +6 -0
  813. package/dist/components/features/resource-assignment/partials/default-shared-resource-partials.d.ts +31 -0
  814. package/dist/components/features/resource-assignment/partials/index.d.ts +1 -0
  815. package/dist/components/features/resource-assignment/resource-assignment.d.ts +12 -0
  816. package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +17 -0
  817. package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +193 -0
  818. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +6 -0
  819. package/dist/components/features/rich-text-editor/index.d.ts +5 -0
  820. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +28 -0
  821. package/dist/components/features/rich-text-editor/partials/counts-footer.d.ts +32 -0
  822. package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +7 -0
  823. package/dist/components/features/rich-text-editor/partials/index.d.ts +7 -0
  824. package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +8 -0
  825. package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +3 -0
  826. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +33 -0
  827. package/dist/components/features/rich-text-editor/rich-text-editor.d.ts +3 -0
  828. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  829. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +32 -0
  830. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +111 -0
  831. package/dist/components/features/schema-form/hooks/index.d.ts +1 -0
  832. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +23 -0
  833. package/dist/components/features/schema-form/index.d.ts +5 -0
  834. package/dist/components/features/schema-form/partials/index.d.ts +3 -0
  835. package/dist/components/features/schema-form/partials/schema-form-actions.d.ts +23 -0
  836. package/dist/components/features/schema-form/partials/schema-form-empty.d.ts +12 -0
  837. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +12 -0
  838. package/dist/components/features/schema-form/schema-form.d.ts +5 -0
  839. package/dist/components/features/schema-form/schema-form.strings.d.ts +11 -0
  840. package/dist/components/features/schema-form/schema-form.types.d.ts +271 -0
  841. package/dist/components/features/schema-form/schema-form.utils.d.ts +18 -0
  842. package/dist/components/features/suggestions/hooks/index.d.ts +1 -0
  843. package/dist/components/features/suggestions/hooks/use-suggestions.d.ts +9 -0
  844. package/dist/components/features/suggestions/index.d.ts +4 -0
  845. package/dist/components/features/suggestions/suggestions.d.ts +5 -0
  846. package/dist/components/features/suggestions/suggestions.strings.d.ts +16 -0
  847. package/dist/components/features/suggestions/suggestions.types.d.ts +79 -0
  848. package/dist/components/features/sync/index.d.ts +3 -0
  849. package/dist/components/features/sync/sync-range-dialog-form.d.ts +5 -0
  850. package/dist/components/features/sync/sync.strings.d.ts +18 -0
  851. package/dist/components/features/sync/sync.types.d.ts +44 -0
  852. package/dist/components/features/table/column-visibility-toggle.d.ts +5 -0
  853. package/dist/components/features/table/data-table.d.ts +6 -0
  854. package/dist/components/features/table/filter-bar.d.ts +5 -0
  855. package/dist/components/features/table/hooks.d.ts +47 -0
  856. package/dist/components/features/table/index.d.ts +16 -0
  857. package/dist/components/features/table/pagination.d.ts +5 -0
  858. package/dist/components/features/table/partials/cell-renderers.d.ts +141 -0
  859. package/dist/components/features/table/partials/cell-value.d.ts +121 -0
  860. package/dist/components/features/table/partials/fullscreen-toggle.d.ts +16 -0
  861. package/dist/components/features/table/partials/resource-cell.d.ts +63 -0
  862. package/dist/components/features/table/partials/table-link.d.ts +3 -0
  863. package/dist/components/features/table/table-actions.d.ts +5 -0
  864. package/dist/components/features/table/table-body.d.ts +5 -0
  865. package/dist/components/features/table/table-header.d.ts +6 -0
  866. package/dist/components/features/table/table-helpers.d.ts +39 -0
  867. package/dist/components/features/table/table-toolbar.d.ts +5 -0
  868. package/dist/components/features/table/table.strings.d.ts +3 -0
  869. package/dist/components/features/table/table.types.d.ts +489 -0
  870. package/dist/components/features/theme-tweaker/admin-ui-theme-provider.d.ts +6 -0
  871. package/dist/components/features/theme-tweaker/index.d.ts +10 -0
  872. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +49 -0
  873. package/dist/components/features/theme-tweaker/theme-scope.d.ts +7 -0
  874. package/dist/components/features/theme-tweaker/theme-tweaker.d.ts +2 -0
  875. package/dist/components/features/theme-tweaker/theme-tweaker.fields.d.ts +7 -0
  876. package/dist/components/features/theme-tweaker/theme-tweaker.recipes.d.ts +25 -0
  877. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +75 -0
  878. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +161 -0
  879. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +23 -0
  880. package/dist/components/features/theme-tweaker/use-applied-theme.d.ts +11 -0
  881. package/dist/components/layout/app-shell/app-layout.d.ts +12 -0
  882. package/dist/components/layout/app-shell/app-shell.types.d.ts +151 -0
  883. package/dist/components/layout/app-shell/index.d.ts +6 -0
  884. package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +2 -0
  885. package/dist/components/layout/app-shell/stacked-layout.d.ts +2 -0
  886. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +2 -0
  887. package/dist/components/layout/auth/auth-card.d.ts +2 -0
  888. package/dist/components/layout/auth/auth-footer-links.d.ts +2 -0
  889. package/dist/components/layout/auth/auth-form.d.ts +11 -0
  890. package/dist/components/layout/auth/auth-hooks.d.ts +4 -0
  891. package/dist/components/layout/auth/auth-method-switch.d.ts +4 -0
  892. package/dist/components/layout/auth/auth-shell.d.ts +2 -0
  893. package/dist/components/layout/auth/auth-social-providers.d.ts +3 -0
  894. package/dist/components/layout/auth/auth-split-panel.d.ts +2 -0
  895. package/dist/components/layout/auth/auth.strings.d.ts +21 -0
  896. package/dist/components/layout/auth/auth.types.d.ts +282 -0
  897. package/dist/components/layout/auth/index.d.ts +10 -0
  898. package/dist/components/layout/containers/container.recipes.d.ts +5 -0
  899. package/dist/components/layout/containers/containers.types.d.ts +17 -0
  900. package/dist/components/layout/containers/content-container.d.ts +3 -0
  901. package/dist/components/layout/containers/index.d.ts +5 -0
  902. package/dist/components/layout/containers/page-viewport.d.ts +3 -0
  903. package/dist/components/layout/containers/section.d.ts +3 -0
  904. package/dist/components/layout/containers/two-column-layout.d.ts +27 -0
  905. package/dist/components/layout/header/header.d.ts +2 -0
  906. package/dist/components/layout/header/header.types.d.ts +198 -0
  907. package/dist/components/layout/header/index.d.ts +9 -0
  908. package/dist/components/layout/header/partials/header-breadcrumbs.d.ts +4 -0
  909. package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +2 -0
  910. package/dist/components/layout/header/partials/header-notifications.d.ts +2 -0
  911. package/dist/components/layout/header/partials/header-search.d.ts +2 -0
  912. package/dist/components/layout/header/partials/header-tool-button.d.ts +4 -0
  913. package/dist/components/layout/header/partials/header-tool-popover.d.ts +2 -0
  914. package/dist/components/layout/header/partials/header-user-menu.d.ts +2 -0
  915. package/dist/components/layout/hooks/index.d.ts +3 -0
  916. package/dist/components/layout/hooks/use-active-path.d.ts +1 -0
  917. package/dist/components/layout/hooks/use-command-shortcut.d.ts +7 -0
  918. package/dist/components/layout/hooks/use-layout-link.d.ts +2 -0
  919. package/dist/components/layout/index.d.ts +24 -0
  920. package/dist/components/layout/layout.types.d.ts +91 -0
  921. package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +5 -0
  922. package/dist/components/layout/navigation/breadcrumb-progress/index.d.ts +2 -0
  923. package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +24 -0
  924. package/dist/components/layout/navigation/category-nav/category-nav.d.ts +5 -0
  925. package/dist/components/layout/navigation/category-nav/index.d.ts +2 -0
  926. package/dist/components/layout/navigation/category-nav/types.d.ts +22 -0
  927. package/dist/components/layout/navigation/index.d.ts +17 -0
  928. package/dist/components/layout/navigation/section-nav/index.d.ts +1 -0
  929. package/dist/components/layout/navigation/section-nav/section-nav.d.ts +29 -0
  930. package/dist/components/layout/navigation/side-nav.d.ts +58 -0
  931. package/dist/components/layout/page/index.d.ts +4 -0
  932. package/dist/components/layout/page/page.d.ts +3 -0
  933. package/dist/components/layout/page/page.types.d.ts +138 -0
  934. package/dist/components/layout/page/partials/page-actions.d.ts +2 -0
  935. package/dist/components/layout/page/partials/page-header.d.ts +2 -0
  936. package/dist/components/layout/settings/index.d.ts +1 -0
  937. package/dist/components/layout/settings/settings.d.ts +65 -0
  938. package/dist/components/layout/sidebar/app-sidebar.d.ts +7 -0
  939. package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +4 -0
  940. package/dist/components/layout/sidebar/components/sidebar-logo.d.ts +10 -0
  941. package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +2 -0
  942. package/dist/components/layout/sidebar/components/sidebar-navigation-user.d.ts +23 -0
  943. package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +4 -0
  944. package/dist/components/layout/sidebar/components/sidebar-workspace-dropdown.d.ts +2 -0
  945. package/dist/components/layout/sidebar/index.d.ts +11 -0
  946. package/dist/components/layout/sidebar/sidebar.context.d.ts +17 -0
  947. package/dist/components/layout/sidebar/sidebar.d.ts +9 -0
  948. package/dist/components/layout/sidebar/sidebar.types.d.ts +218 -0
  949. package/dist/components/layout/sidebar/sidebar.utils.d.ts +29 -0
  950. package/dist/components/layout/workspace/index.d.ts +3 -0
  951. package/dist/components/layout/workspace/workspace.d.ts +6 -0
  952. package/dist/components/layout/workspace/workspace.strings.d.ts +18 -0
  953. package/dist/components/layout/workspace/workspace.types.d.ts +141 -0
  954. package/dist/components/primitives/date.d.ts +63 -0
  955. package/dist/components/primitives/dimensions.d.ts +30 -0
  956. package/dist/components/primitives/duration.d.ts +23 -0
  957. package/dist/components/primitives/file-size.d.ts +23 -0
  958. package/dist/components/primitives/index.d.ts +11 -0
  959. package/dist/components/primitives/initials-format.d.ts +21 -0
  960. package/dist/components/primitives/initials.d.ts +16 -0
  961. package/dist/components/primitives/link.d.ts +28 -0
  962. package/dist/components/primitives/money.d.ts +79 -0
  963. package/dist/components/primitives/name.d.ts +16 -0
  964. package/dist/components/primitives/number.d.ts +23 -0
  965. package/dist/components/primitives/value.d.ts +23 -0
  966. package/dist/components/typography/content-typography.d.ts +4 -0
  967. package/dist/components/typography/display-label.d.ts +5 -0
  968. package/dist/components/typography/heading.d.ts +16 -0
  969. package/dist/components/typography/index.d.ts +10 -0
  970. package/dist/components/typography/label.d.ts +8 -0
  971. package/dist/components/typography/rich-text/index.d.ts +2 -0
  972. package/dist/components/typography/rich-text/rich-text.d.ts +6 -0
  973. package/dist/components/typography/text-link.d.ts +7 -0
  974. package/dist/components/typography/text.d.ts +17 -0
  975. package/dist/components/typography/text.styles.d.ts +50 -0
  976. package/dist/components/ui/accordion.d.ts +6 -0
  977. package/dist/components/ui/alert-dialog.d.ts +21 -0
  978. package/dist/components/ui/avatar.d.ts +11 -0
  979. package/dist/components/ui/badge.d.ts +5 -0
  980. package/dist/components/ui/breadcrumb.d.ts +11 -0
  981. package/dist/components/ui/button-group.d.ts +12 -0
  982. package/dist/components/ui/button.d.ts +12 -0
  983. package/dist/components/ui/calendar.d.ts +10 -0
  984. package/dist/components/ui/card.d.ts +11 -0
  985. package/dist/components/ui/checkbox.d.ts +6 -0
  986. package/dist/components/ui/collapsible.d.ts +9 -0
  987. package/dist/components/ui/combobox.d.ts +40 -0
  988. package/dist/components/ui/command.d.ts +50 -0
  989. package/dist/components/ui/dialog.d.ts +26 -0
  990. package/dist/components/ui/disclosure-panel.d.ts +14 -0
  991. package/dist/components/ui/empty.d.ts +11 -0
  992. package/dist/components/ui/input-group.d.ts +18 -0
  993. package/dist/components/ui/input.d.ts +3 -0
  994. package/dist/components/ui/item.d.ts +22 -0
  995. package/dist/components/ui/overlay.recipes.d.ts +2 -0
  996. package/dist/components/ui/pagination.d.ts +17 -0
  997. package/dist/components/ui/popover.d.ts +22 -0
  998. package/dist/components/ui/select.d.ts +18 -0
  999. package/dist/components/ui/separator.d.ts +3 -0
  1000. package/dist/components/ui/sheet.d.ts +25 -0
  1001. package/dist/components/ui/sidebar.d.ts +64 -0
  1002. package/dist/components/ui/skeleton.d.ts +2 -0
  1003. package/dist/components/ui/slot.d.ts +6 -0
  1004. package/dist/components/ui/sonner.d.ts +3 -0
  1005. package/dist/components/ui/switch.d.ts +5 -0
  1006. package/dist/components/ui/table.d.ts +13 -0
  1007. package/dist/components/ui/tabs.d.ts +10 -0
  1008. package/dist/components/ui/textarea.d.ts +3 -0
  1009. package/dist/components/ui/toggle-group.d.ts +12 -0
  1010. package/dist/components/ui/toggle.d.ts +8 -0
  1011. package/dist/components/ui/tooltip.d.ts +13 -0
  1012. package/dist/containers-CPNyNo1_.js +124 -0
  1013. package/dist/containers-CPNyNo1_.js.map +1 -0
  1014. package/dist/content-typography-CnwgMJ37.js +6 -0
  1015. package/dist/content-typography-CnwgMJ37.js.map +1 -0
  1016. package/dist/copyable-B7SBXJMr.js +65 -0
  1017. package/dist/copyable-B7SBXJMr.js.map +1 -0
  1018. package/dist/data-display-b3d1TfL4.js +1129 -0
  1019. package/dist/data-display-b3d1TfL4.js.map +1 -0
  1020. package/dist/date-BFNMnrS5.js +140 -0
  1021. package/dist/date-BFNMnrS5.js.map +1 -0
  1022. package/dist/date-picker-DI6kPNof.js +1521 -0
  1023. package/dist/date-picker-DI6kPNof.js.map +1 -0
  1024. package/dist/date-pickers-ByP6Cv2z.js +224 -0
  1025. package/dist/date-pickers-ByP6Cv2z.js.map +1 -0
  1026. package/dist/disclosure-panel-B0HFNZ9x.js +35 -0
  1027. package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -0
  1028. package/dist/display-ByI5tkqy.js +343 -0
  1029. package/dist/display-ByI5tkqy.js.map +1 -0
  1030. package/dist/dropdown-menu-BlnyHr-9.js +186 -0
  1031. package/dist/dropdown-menu-BlnyHr-9.js.map +1 -0
  1032. package/dist/editable-text-recipe-Bkm6wKHp.js +10 -0
  1033. package/dist/editable-text-recipe-Bkm6wKHp.js.map +1 -0
  1034. package/dist/favicon.svg +1 -0
  1035. package/dist/features/activities.js +1360 -0
  1036. package/dist/features/activities.js.map +1 -0
  1037. package/dist/features/ai-chat.js +567 -0
  1038. package/dist/features/ai-chat.js.map +1 -0
  1039. package/dist/features/async-preview.js +478 -0
  1040. package/dist/features/async-preview.js.map +1 -0
  1041. package/dist/features/combobox.js +3 -0
  1042. package/dist/features/comments.js +3 -0
  1043. package/dist/features/data-view.js +519 -0
  1044. package/dist/features/data-view.js.map +1 -0
  1045. package/dist/features/email-composer/engine.js +2 -0
  1046. package/dist/features/email-composer.js +1099 -0
  1047. package/dist/features/email-composer.js.map +1 -0
  1048. package/dist/features/event-calendar.js +711 -0
  1049. package/dist/features/event-calendar.js.map +1 -0
  1050. package/dist/features/filters.js +3 -0
  1051. package/dist/features/global-search.js +593 -0
  1052. package/dist/features/global-search.js.map +1 -0
  1053. package/dist/features/kanban.js +425 -0
  1054. package/dist/features/kanban.js.map +1 -0
  1055. package/dist/features/map/images/layers-2x.png +0 -0
  1056. package/dist/features/map/images/layers.png +0 -0
  1057. package/dist/features/map/images/marker-icon-2x.png +0 -0
  1058. package/dist/features/map/images/marker-icon.png +0 -0
  1059. package/dist/features/map/images/marker-shadow.png +0 -0
  1060. package/dist/features/map/images/spritesheet-2x.png +0 -0
  1061. package/dist/features/map/images/spritesheet.png +0 -0
  1062. package/dist/features/map/images/spritesheet.svg +156 -0
  1063. package/dist/features/map/style.css +809 -0
  1064. package/dist/features/map.js +1052 -0
  1065. package/dist/features/map.js.map +1 -0
  1066. package/dist/features/media-library.js +2007 -0
  1067. package/dist/features/media-library.js.map +1 -0
  1068. package/dist/features/mentions.js +3 -0
  1069. package/dist/features/overlays.js +3 -0
  1070. package/dist/features/products.js +3076 -0
  1071. package/dist/features/products.js.map +1 -0
  1072. package/dist/features/questionnaire.js +365 -0
  1073. package/dist/features/questionnaire.js.map +1 -0
  1074. package/dist/features/resource-assignment.js +317 -0
  1075. package/dist/features/resource-assignment.js.map +1 -0
  1076. package/dist/features/resource.js +254 -0
  1077. package/dist/features/resource.js.map +1 -0
  1078. package/dist/features/rich-text-editor.js +23 -0
  1079. package/dist/features/rich-text-editor.js.map +1 -0
  1080. package/dist/features/schema-form.js +744 -0
  1081. package/dist/features/schema-form.js.map +1 -0
  1082. package/dist/features/suggestions.js +149 -0
  1083. package/dist/features/suggestions.js.map +1 -0
  1084. package/dist/features/sync.js +136 -0
  1085. package/dist/features/sync.js.map +1 -0
  1086. package/dist/features/table.js +3 -0
  1087. package/dist/features/theme-tweaker.js +2083 -0
  1088. package/dist/features/theme-tweaker.js.map +1 -0
  1089. package/dist/feedback-a9j9J-9A.js +391 -0
  1090. package/dist/feedback-a9j9J-9A.js.map +1 -0
  1091. package/dist/field-affordance-recipes-CHdUtn2Z.js +17 -0
  1092. package/dist/field-affordance-recipes-CHdUtn2Z.js.map +1 -0
  1093. package/dist/field-state-recipes-CBTRt9Bt.js +11 -0
  1094. package/dist/field-state-recipes-CBTRt9Bt.js.map +1 -0
  1095. package/dist/filters-qtrcv1hf.js +2203 -0
  1096. package/dist/filters-qtrcv1hf.js.map +1 -0
  1097. package/dist/form-field-C6W-y2hR.js +48 -0
  1098. package/dist/form-field-C6W-y2hR.js.map +1 -0
  1099. package/dist/form-sizing-39NohSqn.js +99 -0
  1100. package/dist/form-sizing-39NohSqn.js.map +1 -0
  1101. package/dist/format-iamDSqs2.js +110 -0
  1102. package/dist/format-iamDSqs2.js.map +1 -0
  1103. package/dist/forms-BF-HSbff.js +194 -0
  1104. package/dist/forms-BF-HSbff.js.map +1 -0
  1105. package/dist/forms-numeric-Y15Bg5Nr.js +867 -0
  1106. package/dist/forms-numeric-Y15Bg5Nr.js.map +1 -0
  1107. package/dist/header-B8ex54cY.js +452 -0
  1108. package/dist/header-B8ex54cY.js.map +1 -0
  1109. package/dist/hooks/use-debounce.d.ts +1 -0
  1110. package/dist/hooks/use-debounced-callback.d.ts +40 -0
  1111. package/dist/hooks/use-files.d.ts +48 -0
  1112. package/dist/hooks/use-mobile.d.ts +2 -0
  1113. package/dist/hooks/useFormErrors.d.ts +7 -0
  1114. package/dist/hooks-D6UBVzf2.js +88 -0
  1115. package/dist/hooks-D6UBVzf2.js.map +1 -0
  1116. package/dist/http-CLTVJc5I.js +331 -0
  1117. package/dist/http-CLTVJc5I.js.map +1 -0
  1118. package/dist/icon-badge-Dv0RYQwj.js +53 -0
  1119. package/dist/icon-badge-Dv0RYQwj.js.map +1 -0
  1120. package/dist/icon-size-B6PVwjbC.js +18 -0
  1121. package/dist/icon-size-B6PVwjbC.js.map +1 -0
  1122. package/dist/index.d.ts +14 -0
  1123. package/dist/index.js +7 -0
  1124. package/dist/initials-format-CDoQEOd_.js +35 -0
  1125. package/dist/initials-format-CDoQEOd_.js.map +1 -0
  1126. package/dist/input-DMorJiTI.js +202 -0
  1127. package/dist/input-DMorJiTI.js.map +1 -0
  1128. package/dist/input-ci9fIgFH.js +20 -0
  1129. package/dist/input-ci9fIgFH.js.map +1 -0
  1130. package/dist/item-pJ0GsOiJ.js +257 -0
  1131. package/dist/item-pJ0GsOiJ.js.map +1 -0
  1132. package/dist/layout/app-shell.js +3 -0
  1133. package/dist/layout/auth.js +3 -0
  1134. package/dist/layout/containers.js +3 -0
  1135. package/dist/layout/header.js +3 -0
  1136. package/dist/layout/hooks.js +3 -0
  1137. package/dist/layout/navigation.js +3 -0
  1138. package/dist/layout/page.js +3 -0
  1139. package/dist/layout/settings.js +3 -0
  1140. package/dist/layout/sidebar.js +4 -0
  1141. package/dist/layout/workspace.js +3 -0
  1142. package/dist/layout.js +13 -0
  1143. package/dist/layout.types-Cn7aUzJp.js +20 -0
  1144. package/dist/layout.types-Cn7aUzJp.js.map +1 -0
  1145. package/dist/lib/action-presentation.d.ts +15 -0
  1146. package/dist/lib/affordance-geometry.generated.d.ts +18 -0
  1147. package/dist/lib/anchored-positioning.d.ts +5 -0
  1148. package/dist/lib/command-filter.d.ts +1 -0
  1149. package/dist/lib/component-vocabulary.d.ts +12 -0
  1150. package/dist/lib/editable-text-recipe.d.ts +6 -0
  1151. package/dist/lib/email-composer.d.ts +6 -0
  1152. package/dist/lib/field-affordance-recipes.d.ts +20 -0
  1153. package/dist/lib/field-state-recipes.d.ts +10 -0
  1154. package/dist/lib/format.d.ts +53 -0
  1155. package/dist/lib/motion-recipes.d.ts +8 -0
  1156. package/dist/lib/navigation-row-recipes.d.ts +26 -0
  1157. package/dist/lib/overlay-anatomy-recipes.d.ts +8 -0
  1158. package/dist/lib/row-recipes.d.ts +3 -0
  1159. package/dist/lib/sanitize-html.d.ts +8 -0
  1160. package/dist/lib/strings.d.ts +16 -0
  1161. package/dist/lib/strings.js +32 -0
  1162. package/dist/lib/strings.js.map +1 -0
  1163. package/dist/lib/surface-recipes.d.ts +27 -0
  1164. package/dist/lib/theme-scope.d.ts +31 -0
  1165. package/dist/lib/token-merge.generated.d.ts +2 -0
  1166. package/dist/lib/track-recipes.d.ts +4 -0
  1167. package/dist/lib/ui-provider/defaults.d.ts +12 -0
  1168. package/dist/lib/ui-provider/hooks.d.ts +13 -0
  1169. package/dist/lib/ui-provider/index.d.ts +28 -0
  1170. package/dist/lib/ui-provider/provider.d.ts +15 -0
  1171. package/dist/lib/ui-provider/scale.d.ts +5 -0
  1172. package/dist/lib/ui-provider/store.d.ts +11 -0
  1173. package/dist/lib/ui-provider/types.d.ts +157 -0
  1174. package/dist/lib/utils.d.ts +2 -0
  1175. package/dist/lib/utils.js +2 -0
  1176. package/dist/map-demo-tile.svg +1 -0
  1177. package/dist/media-gallery-Ca4YmvBi.js +200 -0
  1178. package/dist/media-gallery-Ca4YmvBi.js.map +1 -0
  1179. package/dist/mentions-CRio8mTm.js +563 -0
  1180. package/dist/mentions-CRio8mTm.js.map +1 -0
  1181. package/dist/message-B5-6LeYl.js +108 -0
  1182. package/dist/message-B5-6LeYl.js.map +1 -0
  1183. package/dist/motion-recipes-B6jKXEcN.js +27 -0
  1184. package/dist/motion-recipes-B6jKXEcN.js.map +1 -0
  1185. package/dist/navigation-BTrEb5u4.js +267 -0
  1186. package/dist/navigation-BTrEb5u4.js.map +1 -0
  1187. package/dist/navigation-DqEITuD2.js +265 -0
  1188. package/dist/navigation-DqEITuD2.js.map +1 -0
  1189. package/dist/navigation-row-recipes-BFpvGPGE.js +29 -0
  1190. package/dist/navigation-row-recipes-BFpvGPGE.js.map +1 -0
  1191. package/dist/number-BNT_BIzJ.js +269 -0
  1192. package/dist/number-BNT_BIzJ.js.map +1 -0
  1193. package/dist/overlay.recipes-BxW5FIfK.js +6 -0
  1194. package/dist/overlay.recipes-BxW5FIfK.js.map +1 -0
  1195. package/dist/overlays-DBqV0J_V.js +982 -0
  1196. package/dist/overlays-DBqV0J_V.js.map +1 -0
  1197. package/dist/page-BMBGjJY8.js +202 -0
  1198. package/dist/page-BMBGjJY8.js.map +1 -0
  1199. package/dist/page-header-BH41wCyY.js +112 -0
  1200. package/dist/page-header-BH41wCyY.js.map +1 -0
  1201. package/dist/pagination-C29vvt3I.js +149 -0
  1202. package/dist/pagination-C29vvt3I.js.map +1 -0
  1203. package/dist/popover-TInGXsjg.js +194 -0
  1204. package/dist/popover-TInGXsjg.js.map +1 -0
  1205. package/dist/popover-menu-BzqXqE72.js +99 -0
  1206. package/dist/popover-menu-BzqXqE72.js.map +1 -0
  1207. package/dist/popover.recipes-zgBhMlUu.js +34 -0
  1208. package/dist/popover.recipes-zgBhMlUu.js.map +1 -0
  1209. package/dist/primitives-DKPOGVpj.js +330 -0
  1210. package/dist/primitives-DKPOGVpj.js.map +1 -0
  1211. package/dist/primitives.js +7 -0
  1212. package/dist/receipt-DYWTQGEc.js +113 -0
  1213. package/dist/receipt-DYWTQGEc.js.map +1 -0
  1214. package/dist/rich-text-B7sBAdDG.js +32 -0
  1215. package/dist/rich-text-B7sBAdDG.js.map +1 -0
  1216. package/dist/rich-text-editor-BZSJchAF.js +575 -0
  1217. package/dist/rich-text-editor-BZSJchAF.js.map +1 -0
  1218. package/dist/rich-text-editor.recipes-DxvOE0Lp.js +72 -0
  1219. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +1 -0
  1220. package/dist/rich-text-editor.strings-BpnIQgMl.js +25 -0
  1221. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +1 -0
  1222. package/dist/row-recipes-DL8n7t_b.js +10 -0
  1223. package/dist/row-recipes-DL8n7t_b.js.map +1 -0
  1224. package/dist/sanitize-html-BG9FGe-j.js +64 -0
  1225. package/dist/sanitize-html-BG9FGe-j.js.map +1 -0
  1226. package/dist/scroll-area-BheMQ270.js +47 -0
  1227. package/dist/scroll-area-BheMQ270.js.map +1 -0
  1228. package/dist/select-B2mb-qN2.js +108 -0
  1229. package/dist/select-B2mb-qN2.js.map +1 -0
  1230. package/dist/separator-DO0EbCEm.js +17 -0
  1231. package/dist/separator-DO0EbCEm.js.map +1 -0
  1232. package/dist/separator-Gk_WXH-l.js +21 -0
  1233. package/dist/separator-Gk_WXH-l.js.map +1 -0
  1234. package/dist/services/actions/action-adapters.d.ts +77 -0
  1235. package/dist/services/actions/action-overlay-outlet.d.ts +3 -0
  1236. package/dist/services/actions/action-provider.d.ts +7 -0
  1237. package/dist/services/actions/action-scope.d.ts +3 -0
  1238. package/dist/services/actions/action-store.d.ts +55 -0
  1239. package/dist/services/actions/actions.strings.d.ts +2 -0
  1240. package/dist/services/actions/actions.types.d.ts +322 -0
  1241. package/dist/services/actions/hooks.d.ts +8 -0
  1242. package/dist/services/actions/index.d.ts +8 -0
  1243. package/dist/services/actions.js +811 -0
  1244. package/dist/services/actions.js.map +1 -0
  1245. package/dist/settings-D9f_wdIC.js +160 -0
  1246. package/dist/settings-D9f_wdIC.js.map +1 -0
  1247. package/dist/sheet-vOUloJ4O.js +205 -0
  1248. package/dist/sheet-vOUloJ4O.js.map +1 -0
  1249. package/dist/sidebar-C3UKkbC5.js +501 -0
  1250. package/dist/sidebar-C3UKkbC5.js.map +1 -0
  1251. package/dist/sidebar-CNBKFDRW.js +598 -0
  1252. package/dist/sidebar-CNBKFDRW.js.map +1 -0
  1253. package/dist/skeleton-BvRhK8y-.js +264 -0
  1254. package/dist/skeleton-BvRhK8y-.js.map +1 -0
  1255. package/dist/slot-CLF9kLrS.js +16 -0
  1256. package/dist/slot-CLF9kLrS.js.map +1 -0
  1257. package/dist/smart-card-B5FcKODh.js +577 -0
  1258. package/dist/smart-card-B5FcKODh.js.map +1 -0
  1259. package/dist/spinner-JtlFJ7Nc.js +78 -0
  1260. package/dist/spinner-JtlFJ7Nc.js.map +1 -0
  1261. package/dist/structure-BvW4vG4H.js +95 -0
  1262. package/dist/structure-BvW4vG4H.js.map +1 -0
  1263. package/dist/structure.recipes-DjqnBpwz.js +548 -0
  1264. package/dist/structure.recipes-DjqnBpwz.js.map +1 -0
  1265. package/dist/style.css +3 -0
  1266. package/dist/surface-recipes-CQfRr-VL.js +27 -0
  1267. package/dist/surface-recipes-CQfRr-VL.js.map +1 -0
  1268. package/dist/table-DnlAJ-xR.js +146 -0
  1269. package/dist/table-DnlAJ-xR.js.map +1 -0
  1270. package/dist/table-ghtAQ-JJ.js +1424 -0
  1271. package/dist/table-ghtAQ-JJ.js.map +1 -0
  1272. package/dist/tabs-DY09eoZg.js +187 -0
  1273. package/dist/tabs-DY09eoZg.js.map +1 -0
  1274. package/dist/text-inputs-BhOcedTo.js +331 -0
  1275. package/dist/text-inputs-BhOcedTo.js.map +1 -0
  1276. package/dist/text.styles-BwB7vAF2.js +64 -0
  1277. package/dist/text.styles-BwB7vAF2.js.map +1 -0
  1278. package/dist/theme-scope-kStaAer0.js +39 -0
  1279. package/dist/theme-scope-kStaAer0.js.map +1 -0
  1280. package/dist/theme.css +872 -0
  1281. package/dist/timelines-CnZ2S_Gr.js +446 -0
  1282. package/dist/timelines-CnZ2S_Gr.js.map +1 -0
  1283. package/dist/track-recipes-LLPNVwFg.js +10 -0
  1284. package/dist/track-recipes-LLPNVwFg.js.map +1 -0
  1285. package/dist/tree-COD9BGdU.js +185 -0
  1286. package/dist/tree-COD9BGdU.js.map +1 -0
  1287. package/dist/types/index.d.ts +11 -0
  1288. package/dist/types/locale.types.d.ts +7 -0
  1289. package/dist/types/pagination.types.d.ts +24 -0
  1290. package/dist/typography/rich-text.js +3 -0
  1291. package/dist/typography-Cv8MT-82.js +96 -0
  1292. package/dist/typography-Cv8MT-82.js.map +1 -0
  1293. package/dist/typography.js +3 -0
  1294. package/dist/ui-provider-CftIB6TY.js +128 -0
  1295. package/dist/ui-provider-CftIB6TY.js.map +1 -0
  1296. package/dist/ui-provider.js +4 -0
  1297. package/dist/upload-DIzw1dx1.js +849 -0
  1298. package/dist/upload-DIzw1dx1.js.map +1 -0
  1299. package/dist/upload-queue-xRJ3qDmd.js +410 -0
  1300. package/dist/upload-queue-xRJ3qDmd.js.map +1 -0
  1301. package/dist/use-debounce-DZ_1ZBPa.js +18 -0
  1302. package/dist/use-debounce-DZ_1ZBPa.js.map +1 -0
  1303. package/dist/use-debounced-callback-Cx1h-hdv.js +30 -0
  1304. package/dist/use-debounced-callback-Cx1h-hdv.js.map +1 -0
  1305. package/dist/use-file-drop-target-BX7GnhoQ.js +39 -0
  1306. package/dist/use-file-drop-target-BX7GnhoQ.js.map +1 -0
  1307. package/dist/use-mobile-vaLKwgyf.js +15 -0
  1308. package/dist/use-mobile-vaLKwgyf.js.map +1 -0
  1309. package/dist/utils-C2EKeIw3.js +72 -0
  1310. package/dist/utils-C2EKeIw3.js.map +1 -0
  1311. package/dist/value-inputs-Co1fu-xv.js +824 -0
  1312. package/dist/value-inputs-Co1fu-xv.js.map +1 -0
  1313. package/dist/workspace-Cbqz4FzN.js +402 -0
  1314. package/dist/workspace-Cbqz4FzN.js.map +1 -0
  1315. package/docs/consumer-skill/SKILL.md +32 -0
  1316. package/docs/consumer-skill/examples/app-layout.tsx +31 -0
  1317. package/docs/consumer-skill/examples/composition.tsx +37 -0
  1318. package/docs/consumer-skill/examples/content-workflow.tsx +13 -0
  1319. package/docs/consumer-skill/examples/destructive-confirm.tsx +42 -0
  1320. package/docs/consumer-skill/examples/detail.tsx +28 -0
  1321. package/docs/consumer-skill/examples/edit.tsx +61 -0
  1322. package/docs/consumer-skill/examples/email-composer.tsx +25 -0
  1323. package/docs/consumer-skill/examples/hierarchy-capture.tsx +25 -0
  1324. package/docs/consumer-skill/examples/index-table.tsx +36 -0
  1325. package/docs/consumer-skill/examples/manifest.json +94 -0
  1326. package/docs/consumer-skill/examples/receipt.tsx +19 -0
  1327. package/docs/consumer-skill/references/composition.md +170 -0
  1328. package/docs/consumer-skill/references/design-contract.md +145 -0
  1329. package/docs/consumer-skill/references/discovery.md +33 -0
  1330. package/docs/consumer-skill/references/installation.md +66 -0
  1331. package/docs/consumer-skill/references/integration.md +57 -0
  1332. package/docs/consumer-skill/references/public-api.json +17527 -0
  1333. package/docs/consumer-skill/references/theming.md +56 -0
  1334. package/docs/consumer-skill/references/tokens.json +422 -0
  1335. package/docs/consumer-skill/references/workflows.md +39 -0
  1336. package/docs/consumer-skill/scripts/discovery.mjs +79 -0
  1337. package/docs/consumer-skill/scripts/find-components.mjs +11 -0
  1338. package/package.json +621 -4
@@ -0,0 +1,2203 @@
1
+ "use client";
2
+ import { useStrings as e } from "./lib/strings.js";
3
+ import { t } from "./utils-C2EKeIw3.js";
4
+ import { n } from "./buttons-Co6GavvM.js";
5
+ import { a as r, n as i, r as a } from "./typography-Cv8MT-82.js";
6
+ import { r as o, t as s } from "./structure-BvW4vG4H.js";
7
+ import { n as c, t as l } from "./feedback-a9j9J-9A.js";
8
+ import { _ as u, g as d, m as f } from "./primitives-DKPOGVpj.js";
9
+ import { t as p } from "./number-BNT_BIzJ.js";
10
+ import { n as m, t as h } from "./date-BFNMnrS5.js";
11
+ import { t as g } from "./badge-BZXZT9wd.js";
12
+ import { a as _, i as v, n as y, o as b, r as x, s as S, t as C } from "./command-D0kWBZfd.js";
13
+ import { t as w } from "./input-DMorJiTI.js";
14
+ import { t as T } from "./date-picker-DI6kPNof.js";
15
+ import { a as E, c as D, i as O, o as k, r as A, t as j } from "./popover-TInGXsjg.js";
16
+ import { i as M, r as N, t as P } from "./tabs-DY09eoZg.js";
17
+ import { t as F } from "./popover-menu-BzqXqE72.js";
18
+ import { t as I } from "./use-debounced-callback-Cx1h-hdv.js";
19
+ import { t as L } from "./use-debounce-DZ_1ZBPa.js";
20
+ import R, { Component as ee, createContext as te, useCallback as z, useContext as ne, useEffect as B, useId as re, useMemo as V, useRef as H, useState as U } from "react";
21
+ import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
22
+ import { CalendarIcon as ie, Check as ae, ChevronDown as oe, ChevronLeft as se, ChevronsUpDown as ce, Filter as le, Loader2 as ue, Plus as de, X as q } from "lucide-react";
23
+ import { format as fe, isValid as J, parse as pe } from "date-fns";
24
+ //#region src/components/features/filters/filters.strings.ts
25
+ var me = {
26
+ loading: "Loading",
27
+ loadingOptions: "Loading {filterLabel} options...",
28
+ addFilter: "Add filter",
29
+ clear: "Clear",
30
+ confirm: "Confirm",
31
+ clearFilters: "Clear filters",
32
+ clearAll: "Clear all",
33
+ selectDate: "Select date",
34
+ selectDateRange: "Select date range",
35
+ calendar: {
36
+ dateSelected: "Date selected",
37
+ notDateSelected: "No date selected",
38
+ notDateRangeSelected: "No date range selected",
39
+ selectedEndDate: "Select end date",
40
+ today: "Today",
41
+ yesterday: "Yesterday",
42
+ lastSevenDays: "Last 7 days",
43
+ lastThirtyDays: "Last 30 days",
44
+ thisMonth: "This month",
45
+ lastMonth: "Last month",
46
+ thisYear: "This year",
47
+ lastYear: "Last year",
48
+ customRange: "Custom range"
49
+ },
50
+ selectValues: "Select values",
51
+ searchPlaceholder: "Search {filterLabel}...",
52
+ noOptionsFound: "No options found",
53
+ selected: "{count} {filterLabel} selected",
54
+ nothingSelected: "Nothing selected",
55
+ enterTag: "Enter tag",
56
+ addTag: "Add tag",
57
+ removeTag: "Remove",
58
+ tag: "tag",
59
+ tags: "tags",
60
+ enterTags: "Enter tags",
61
+ searchFilters: "Search filters...",
62
+ noFiltersAvailable: "No filters available",
63
+ availableFilters: "Available filters",
64
+ activeFilters: "Active filters",
65
+ clearSearch: "Clear search",
66
+ backToFilters: "Back to filters",
67
+ select: "Select",
68
+ options: "options",
69
+ operator: "Operator",
70
+ operators: {
71
+ contains: "contains",
72
+ equals: "is",
73
+ notContains: "does not contain",
74
+ is: "is",
75
+ isNot: "is not",
76
+ greaterThan: "greater than",
77
+ lessThan: "less than",
78
+ before: "before",
79
+ after: "after",
80
+ between: "between",
81
+ has: "has",
82
+ hasAny: "has any",
83
+ hasAll: "has all"
84
+ },
85
+ min: "Min",
86
+ max: "Max",
87
+ fetchError: "Failed to load options",
88
+ retryFetch: "Retry",
89
+ minQueryHint: "Type at least {min} characters...",
90
+ searching: "Searching...",
91
+ error: {
92
+ title: "Filter error",
93
+ descriptionWithKey: "There was a problem with \"{filterKey}\" filter.",
94
+ generic: "There was a problem loading this filter.",
95
+ unknown: "Unknown error"
96
+ },
97
+ validation: {
98
+ required: "This filter is required",
99
+ minValue: "Value must be at least {min}",
100
+ maxValue: "Value must be at most {max}",
101
+ invalidFormat: "Invalid format"
102
+ }
103
+ };
104
+ function Y(e, t) {
105
+ return e.replace(/{(\w+)}/g, (e, n) => String(t[n] ?? e)).replace(/:(\w+)/g, (e, n) => t[n] === void 0 ? e : String(t[n]));
106
+ }
107
+ function he(e, t, n) {
108
+ let r = t.split("."), i = e;
109
+ for (let e of r) {
110
+ if (typeof i != "object" || !i) return t;
111
+ i = i[e];
112
+ }
113
+ return typeof i == "string" ? n ? Y(i, n) : i : t;
114
+ }
115
+ //#endregion
116
+ //#region src/components/features/filters/filters.types.ts
117
+ var ge = "h-control", X = {
118
+ SELECT: "select",
119
+ MULTI_SELECT: "multi_select",
120
+ ASYNC_SELECT: "async_select",
121
+ SEARCH: "search",
122
+ RANGE: "range",
123
+ DATE: "date",
124
+ TAGS: "tags"
125
+ }, Z = {
126
+ EQUALS: "equals",
127
+ CONTAINS: "contains",
128
+ IN: "in",
129
+ NOT_IN: "not_in",
130
+ NOT: "not",
131
+ BEFORE: "before",
132
+ AFTER: "after",
133
+ BETWEEN: "between",
134
+ GT: "gt",
135
+ LT: "lt",
136
+ GTE: "gte",
137
+ LTE: "lte",
138
+ HAS: "has",
139
+ HAS_ANY: "has_any",
140
+ HAS_ALL: "has_all"
141
+ };
142
+ function _e(e) {
143
+ return e;
144
+ }
145
+ //#endregion
146
+ //#region src/components/features/filters/operator-options.ts
147
+ function ve(e) {
148
+ return [
149
+ {
150
+ label: e.contains,
151
+ value: Z.CONTAINS
152
+ },
153
+ {
154
+ label: e.equals,
155
+ value: Z.EQUALS
156
+ },
157
+ {
158
+ label: e.notContains,
159
+ value: Z.NOT
160
+ }
161
+ ];
162
+ }
163
+ function ye(e) {
164
+ return [{
165
+ label: e.is,
166
+ value: Z.EQUALS
167
+ }, {
168
+ label: e.isNot,
169
+ value: Z.NOT
170
+ }];
171
+ }
172
+ function be(e) {
173
+ return [
174
+ {
175
+ label: e.equals,
176
+ value: Z.EQUALS
177
+ },
178
+ {
179
+ label: e.greaterThan,
180
+ value: Z.GT
181
+ },
182
+ {
183
+ label: e.lessThan,
184
+ value: Z.LT
185
+ }
186
+ ];
187
+ }
188
+ function xe(e) {
189
+ return [
190
+ {
191
+ label: e.before,
192
+ value: Z.BEFORE
193
+ },
194
+ {
195
+ label: e.after,
196
+ value: Z.AFTER
197
+ },
198
+ {
199
+ label: e.between,
200
+ value: Z.BETWEEN
201
+ }
202
+ ];
203
+ }
204
+ function Se(e) {
205
+ return [{
206
+ label: e.equals,
207
+ value: Z.EQUALS
208
+ }];
209
+ }
210
+ function Ce(e, t) {
211
+ switch (e) {
212
+ case X.SEARCH: return ve(t);
213
+ case X.TAGS: return [
214
+ {
215
+ label: t.has,
216
+ value: Z.HAS
217
+ },
218
+ {
219
+ label: t.hasAny,
220
+ value: Z.HAS_ANY
221
+ },
222
+ {
223
+ label: t.hasAll,
224
+ value: Z.HAS_ALL
225
+ }
226
+ ];
227
+ case X.SELECT:
228
+ case X.ASYNC_SELECT: return ye(t);
229
+ case X.RANGE: return be(t);
230
+ case X.DATE: return xe(t);
231
+ default: return ve(t);
232
+ }
233
+ }
234
+ function we(e) {
235
+ switch (e) {
236
+ case X.SEARCH: return Z.CONTAINS;
237
+ case X.TAGS: return Z.HAS;
238
+ case X.SELECT:
239
+ case X.ASYNC_SELECT: return Z.EQUALS;
240
+ case X.RANGE: return Z.EQUALS;
241
+ case X.DATE: return Z.BEFORE;
242
+ default: return Z.EQUALS;
243
+ }
244
+ }
245
+ //#endregion
246
+ //#region src/components/features/filters/utils/filter-utils.ts
247
+ function Te(e, t, n) {
248
+ if (e.type === "date" && Array.isArray(t) && t.every((e) => typeof e == "string")) return !0;
249
+ if (e.validation?.required && (!t || Array.isArray(t) && t.length === 0)) return n("validation.required");
250
+ if (typeof t == "number") {
251
+ if (e.validation?.min !== void 0 && t < e.validation.min) return n("validation.minValue").replace("{min}", String(e.validation.min));
252
+ if (e.validation?.max !== void 0 && t > e.validation.max) return n("validation.maxValue").replace("{max}", String(e.validation.max));
253
+ }
254
+ if (e.validation?.pattern && typeof t == "string" && !new RegExp(e.validation.pattern).test(t)) return n("validation.invalidFormat");
255
+ if (e.validation?.custom) {
256
+ let n = e.validation.custom(t);
257
+ if (typeof n == "string" || !n) return n;
258
+ }
259
+ return !0;
260
+ }
261
+ //#endregion
262
+ //#region src/components/features/filters/filter-context.tsx
263
+ var Ee = te(void 0);
264
+ function De({ children: t, filters: n, activeFilters: r, onFilterChange: i, navigating: a = !1, strings: o, onError: s }) {
265
+ let c = H(n), l = H(i), u = H(s);
266
+ u.current = s;
267
+ let [d, f] = U(0), p = H(/* @__PURE__ */ new Map()), m = V(() => {
268
+ let e = /* @__PURE__ */ new Map();
269
+ for (let t of n) {
270
+ if (t.type !== X.ASYNC_SELECT) continue;
271
+ let n = t.asyncConfig?.fetcher, r = t.asyncConfig?.mapToOption, i = t.asyncConfig?.limit ?? 10, a = p.current.get(t.key), o = a && a.fetcher === n && a.mapToOption === r;
272
+ e.set(t.key, o && a.limit === i ? a : {
273
+ fetcher: n,
274
+ mapToOption: r,
275
+ limit: i,
276
+ options: o ? a.options : /* @__PURE__ */ new Map()
277
+ });
278
+ }
279
+ return e.size === p.current.size && [...e].every(([e, t]) => p.current.get(e) === t) ? p.current : (p.current = e, e);
280
+ }, [n]), h = JSON.stringify(r.filter((e) => m.has(e.key)).map(({ key: e, value: t }) => [e, t])), g = e(me, o);
281
+ B(() => {
282
+ c.current = n;
283
+ }, [n]), B(() => {
284
+ l.current = i;
285
+ }, [i]);
286
+ let _ = z((e) => {
287
+ let t = [...r, e];
288
+ l.current(t);
289
+ }, [r]), v = z((e) => {
290
+ let t = r.filter((t) => t.id !== e && t.key !== e);
291
+ l.current(t);
292
+ }, [r]), y = z((e, t) => {
293
+ let n = r.map((n) => n.id === e || n.key === e ? {
294
+ ...n,
295
+ ...t
296
+ } : n);
297
+ l.current(n);
298
+ }, [r]), b = z(() => {
299
+ l.current([]);
300
+ }, []), x = z((e) => {
301
+ l.current(e);
302
+ }, []), S = z((e) => c.current.find((t) => t.key === e), []), C = z((e) => r.find((t) => t.key === e)?.value || [], [r]), w = z((e, t) => {
303
+ let n = r.find((t) => t.key === e);
304
+ if (t.length === 0) n && v(e);
305
+ else if (n) y(e, { value: t });
306
+ else {
307
+ let n = c.current.find((t) => t.key === e), r = n?.operator ?? n?.operators?.[0]?.value ?? (n ? we(n.type) : "equals");
308
+ _({
309
+ id: e,
310
+ key: e,
311
+ value: t,
312
+ operator: r
313
+ });
314
+ }
315
+ }, [
316
+ r,
317
+ _,
318
+ v,
319
+ y
320
+ ]), T = z((e) => r.some((t) => t.key === e && t.value.length > 0), [r]), E = z((e) => r.find((t) => t.key === e)?.operator || "equals", [r]), D = z((e, t) => {
321
+ r.find((t) => t.key === e) && y(e, { operator: t });
322
+ }, [r, y]), O = z((e, t) => {
323
+ let n = c.current.find((t) => t.key === e);
324
+ return n ? Te(n, t, (e) => he(g, e)) : !1;
325
+ }, [g]), k = z((e) => c.current.filter((t) => t.dependencies?.some((t) => t.key === e)), []), A = z((e, t) => {
326
+ let n = m.get(e)?.options;
327
+ if (!n) return;
328
+ let r = !1;
329
+ for (let e of t) n.get(e.value)?.label !== e.label && (r = !0), n.set(e.value, e);
330
+ r && f((e) => e + 1);
331
+ }, [m]), j = z((e, t) => m.get(e)?.options.get(t)?.label, [m, d]), M = z((e, t) => {
332
+ u.current?.(e, t);
333
+ }, []);
334
+ B(() => {
335
+ let e = new AbortController(), t = (t, n) => {
336
+ e.signal.aborted || t && t.name === "AbortError" || u.current?.(t, {
337
+ phase: "fetch-options",
338
+ filterKey: n
339
+ });
340
+ }, n = new Map(JSON.parse(h));
341
+ for (let [r, i] of m) {
342
+ let a = n.get(r);
343
+ if (!a || a.length === 0 || a.every((e) => i.options.has(e))) continue;
344
+ let { fetcher: o, mapToOption: s, limit: c } = i;
345
+ o && s && o({
346
+ query: "",
347
+ limit: c,
348
+ signal: e.signal
349
+ }).then((t) => {
350
+ e.signal.aborted || A(r, t.map(s));
351
+ }).catch((e) => t(e, r));
352
+ }
353
+ return () => e.abort();
354
+ }, [
355
+ h,
356
+ m,
357
+ A
358
+ ]);
359
+ let N = V(() => ({
360
+ activeFilters: r,
361
+ filters: n,
362
+ addFilter: _,
363
+ removeFilter: v,
364
+ updateFilter: y,
365
+ clearFilters: b,
366
+ replaceFilters: x,
367
+ getFilterByKey: S,
368
+ getFilterValue: C,
369
+ setFilterValue: w,
370
+ isFilterActive: T,
371
+ getFilterOperator: E,
372
+ setFilterOperator: D,
373
+ validateFilter: O,
374
+ getDependentFilters: k,
375
+ isNavigating: a,
376
+ strings: g,
377
+ cacheAsyncOptions: A,
378
+ getAsyncOptionLabel: j,
379
+ reportError: M
380
+ }), [
381
+ r,
382
+ n,
383
+ _,
384
+ v,
385
+ y,
386
+ b,
387
+ x,
388
+ S,
389
+ C,
390
+ w,
391
+ T,
392
+ E,
393
+ D,
394
+ O,
395
+ k,
396
+ a,
397
+ g,
398
+ A,
399
+ j,
400
+ M
401
+ ]);
402
+ return /* @__PURE__ */ G(Ee.Provider, {
403
+ value: N,
404
+ children: t
405
+ });
406
+ }
407
+ function Q() {
408
+ let e = ne(Ee);
409
+ if (!e) throw Error("useFilters must be used within a FilterProvider");
410
+ return e;
411
+ }
412
+ //#endregion
413
+ //#region src/components/features/filters/hooks/use-filter-groups.ts
414
+ function Oe(e = {}) {
415
+ let { dynamicFilterOptions: t } = e, { filters: n, isFilterActive: r } = Q(), i = V(() => t ? n.map((e) => {
416
+ let n = t[e.key];
417
+ return Array.isArray(n) ? {
418
+ ...e,
419
+ options: n
420
+ } : e;
421
+ }) : n, [n, t]);
422
+ return V(() => {
423
+ let e = i.filter((e) => e.type === X.SEARCH), t = i.filter((e) => !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden"), n = i.filter((e) => e.type !== X.SEARCH && !e.displayConfig?.hidden && e.displayConfig?.display !== "hidden" && r(e.key)), a = t.filter((e) => e.type !== X.SEARCH && !r(e.key) && e.displayConfig?.display === "always"), o = t.filter((e) => e.type !== X.SEARCH && !r(e.key) && e.displayConfig?.display !== "always"), s = n.map((e) => e.key);
424
+ return {
425
+ processedFilters: i,
426
+ searchFilters: e,
427
+ alwaysVisibleFilters: a,
428
+ activeRegularFilters: n,
429
+ popoverFilters: o,
430
+ activeFilterKeys: s,
431
+ hasActive: s.length > 0
432
+ };
433
+ }, [i, r]);
434
+ }
435
+ //#endregion
436
+ //#region src/components/features/filters/partials/filter-operator-select.tsx
437
+ function ke({ operator: e, operators: i, onOperatorChange: o, segmentResetClass: s }) {
438
+ let [c, l] = U(!1), { strings: u } = Q(), d = i.find((t) => t.value === e)?.label || e;
439
+ return /* @__PURE__ */ G(F, {
440
+ open: c,
441
+ onOpenChange: l,
442
+ search: !1,
443
+ contentLabel: u.operator,
444
+ trigger: /* @__PURE__ */ G(n, {
445
+ tone: "secondary",
446
+ buttonStyle: "ghost",
447
+ className: t("filter-operator-select--component", s, "h-full px-control text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
448
+ onClick: (e) => {
449
+ e.stopPropagation();
450
+ },
451
+ type: "button",
452
+ children: /* @__PURE__ */ G(r, {
453
+ tag: "span",
454
+ type: "secondary",
455
+ children: d
456
+ })
457
+ }),
458
+ header: /* @__PURE__ */ G(a, {
459
+ tag: "span",
460
+ children: u.operator
461
+ }),
462
+ contentClassName: "w-48",
463
+ items: i.map((t) => ({
464
+ value: t.value,
465
+ label: t.label,
466
+ selected: t.value === e
467
+ })),
468
+ onSelect: (e) => {
469
+ o(e.value), l(!1);
470
+ }
471
+ });
472
+ }
473
+ //#endregion
474
+ //#region src/components/features/filters/partials/filter-value-display.tsx
475
+ function Ae({ filter: e, value: t }) {
476
+ let { strings: n } = Q();
477
+ return t.length === 0 && e.type !== X.DATE ? /* @__PURE__ */ G(r, {
478
+ tag: "span",
479
+ type: "secondary",
480
+ className: "filter-value-display--component leading-none",
481
+ children: n.nothingSelected
482
+ }) : e.type === X.ASYNC_SELECT && !e.options?.length ? /* @__PURE__ */ G(r, {
483
+ tag: "span",
484
+ weight: "semibold",
485
+ className: "filter-value-display--component leading-none",
486
+ children: Me(e, t, n)
487
+ }) : e.options && e.type !== X.DATE ? /* @__PURE__ */ K(s, {
488
+ direction: "horizontal",
489
+ gap: "xs",
490
+ wrap: !1,
491
+ className: "filter-value-display--component",
492
+ children: [/* @__PURE__ */ K("div", {
493
+ className: "relative flex",
494
+ children: [t.slice(0, 2).map((t, n) => {
495
+ let r = e.options?.find((e) => e.value === t);
496
+ return r?.icon ? /* @__PURE__ */ G("div", {
497
+ className: `${n > 0 ? "-ml-space-sm" : ""} border-background bg-background relative rounded-full border`,
498
+ style: { zIndex: 10 - n },
499
+ children: r.icon
500
+ }, t) : null;
501
+ }), t.length > 2 && /* @__PURE__ */ G("div", {
502
+ className: "bg-muted border-background relative -ml-space-sm flex size-icon items-center justify-center rounded-full border",
503
+ children: /* @__PURE__ */ K(r, {
504
+ tag: "span",
505
+ size: "xs",
506
+ weight: "medium",
507
+ children: ["+", /* @__PURE__ */ G(p, {
508
+ value: t.length - 2,
509
+ size: "inherit",
510
+ align: "center"
511
+ })]
512
+ })
513
+ })]
514
+ }), /* @__PURE__ */ G(r, {
515
+ tag: "span",
516
+ weight: "semibold",
517
+ className: "truncate leading-none",
518
+ children: Ne(e, t, n)
519
+ })]
520
+ }) : e.type === X.DATE ? /* @__PURE__ */ K(s, {
521
+ direction: "horizontal",
522
+ gap: "xs",
523
+ wrap: !1,
524
+ className: "filter-value-display--component",
525
+ children: [/* @__PURE__ */ G(ie, { className: "text-muted-foreground size-icon-sm" }), je(e, t, n)]
526
+ }) : /* @__PURE__ */ G(r, {
527
+ tag: "span",
528
+ weight: "semibold",
529
+ className: "filter-value-display--component truncate leading-none",
530
+ children: Ne(e, t, n)
531
+ });
532
+ }
533
+ function je(e, t, n) {
534
+ return e.operator === "between" && t.length === 2 ? Ie(t[0], t[1], e.dateFormat?.display) : t.length === 1 ? Fe(t[0], e.dateFormat?.display) : t.length === 2 ? Ie(t[0], t[1], e.dateFormat?.display) : /* @__PURE__ */ G(u, {
535
+ weight: "semibold",
536
+ className: "truncate leading-none",
537
+ children: e.datePickerConfig?.noDatePlaceholder || n.calendar.notDateSelected
538
+ });
539
+ }
540
+ function Me(e, t, n) {
541
+ return t.length === 0 ? "" : Y(n.selected, {
542
+ count: t.length,
543
+ filterLabel: (t.length > 1 ? e.pluralLabel : e.label) ?? e.label
544
+ });
545
+ }
546
+ function Ne(e, t, n) {
547
+ return t.length > 1 ? Y(n.selected, {
548
+ count: t.length,
549
+ filterLabel: e.pluralLabel ?? e.label
550
+ }) : t.map((t) => e.options?.find((e) => e.value === t)?.label || t).join(", ");
551
+ }
552
+ function Pe(e) {
553
+ let t = new Date(e);
554
+ return !Number.isNaN(t.getTime());
555
+ }
556
+ function Fe(e, t) {
557
+ return Pe(e) ? /* @__PURE__ */ G(h, {
558
+ value: e,
559
+ format: t,
560
+ weight: "semibold",
561
+ className: "truncate leading-none"
562
+ }) : /* @__PURE__ */ G(u, {
563
+ weight: "semibold",
564
+ className: "truncate leading-none",
565
+ children: e
566
+ });
567
+ }
568
+ function Ie(e, t, n) {
569
+ return Pe(e) && Pe(t) ? /* @__PURE__ */ G(m, {
570
+ from: e,
571
+ to: t,
572
+ format: n,
573
+ weight: "semibold",
574
+ className: "truncate leading-none"
575
+ }) : /* @__PURE__ */ K("span", {
576
+ className: "inline-flex min-w-0 items-center gap-space-xs truncate leading-none",
577
+ children: [
578
+ Fe(e, n),
579
+ /* @__PURE__ */ G(u, {
580
+ weight: "semibold",
581
+ children: "–"
582
+ }),
583
+ Fe(t, n)
584
+ ]
585
+ });
586
+ }
587
+ //#endregion
588
+ //#region src/components/features/filters/partials/active-filter-item.tsx
589
+ function Le({ filter: e, value: i, active: a, popoverOpen: o, triggerRef: s, operators: c, operator: l, onOperatorChange: u, onFilterClear: d, onFilterClick: f }) {
590
+ let { strings: p } = Q(), m = R.useId(), h = R.useId(), g = "!border-0 !rounded-none !shadow-none focus-visible:!ring-0 focus-visible:!border-transparent", _ = () => /* @__PURE__ */ G("div", {
591
+ "aria-hidden": !0,
592
+ className: "w-px self-stretch bg-border"
593
+ });
594
+ return /* @__PURE__ */ K("div", {
595
+ role: "group",
596
+ "aria-label": e.label,
597
+ "data-active": a || void 0,
598
+ className: t("active-filter-item--component", `border-input bg-background flex ${ge} items-center overflow-hidden rounded-radius border`, e.displayConfig?.className),
599
+ children: [
600
+ /* @__PURE__ */ K(n, {
601
+ type: "button",
602
+ tone: "secondary",
603
+ buttonStyle: "ghost",
604
+ className: t(g, "flex h-full items-center gap-space-sm px-control hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
605
+ ref: s,
606
+ "aria-haspopup": "dialog",
607
+ "aria-expanded": o,
608
+ onClick: f,
609
+ children: [
610
+ !!e.icon && /* @__PURE__ */ G("span", {
611
+ className: "flex items-center text-muted-foreground",
612
+ children: e.icon
613
+ }),
614
+ /* @__PURE__ */ G(r, {
615
+ id: m,
616
+ tag: "span",
617
+ weight: "semibold",
618
+ children: e.label
619
+ }),
620
+ /* @__PURE__ */ G(oe, { className: "size-icon-sm" })
621
+ ]
622
+ }),
623
+ /* @__PURE__ */ G(_, {}),
624
+ /* @__PURE__ */ G(ke, {
625
+ operator: l,
626
+ operators: c,
627
+ onOperatorChange: u,
628
+ segmentResetClass: g
629
+ }),
630
+ /* @__PURE__ */ G(_, {}),
631
+ /* @__PURE__ */ G(n, {
632
+ type: "button",
633
+ tone: "secondary",
634
+ buttonStyle: "ghost",
635
+ "aria-labelledby": `${m} ${h}`,
636
+ "aria-haspopup": "dialog",
637
+ "aria-expanded": o,
638
+ onClick: f,
639
+ className: t(g, "flex h-full min-w-0 flex-1 items-center justify-start px-control hover:bg-accent hover:text-accent-foreground focus-visible:bg-accent focus-visible:text-accent-foreground"),
640
+ children: /* @__PURE__ */ G("span", {
641
+ id: h,
642
+ className: "min-w-0",
643
+ children: /* @__PURE__ */ G(Ae, {
644
+ filter: e,
645
+ value: i
646
+ })
647
+ })
648
+ }),
649
+ !!a && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(_, {}), /* @__PURE__ */ K(n, {
650
+ type: "button",
651
+ tone: "secondary",
652
+ buttonStyle: "ghost",
653
+ className: t(g, "flex h-full shrink-0 items-center justify-center px-space-sm text-muted-foreground hover:bg-accent hover:text-foreground"),
654
+ onClick: (e) => {
655
+ e.stopPropagation(), e.preventDefault(), d();
656
+ },
657
+ children: [/* @__PURE__ */ G(q, {
658
+ "aria-hidden": "true",
659
+ className: "size-icon"
660
+ }), /* @__PURE__ */ G(r, {
661
+ tag: "span",
662
+ className: "sr-only",
663
+ children: p.clear
664
+ })]
665
+ })] })
666
+ ]
667
+ });
668
+ }
669
+ //#endregion
670
+ //#region src/components/features/filters/hooks/use-async-options.ts
671
+ function Re(e, t, n) {
672
+ for (let [t, r] of e) Date.now() - r.timestamp > n && e.delete(t);
673
+ return e.get(t);
674
+ }
675
+ function ze(e, t, n, r = {}) {
676
+ let { asyncConfig: i } = e, a = i?.fetcher, o = i?.mapToOption, s = V(() => /* @__PURE__ */ new Map(), [
677
+ e.key,
678
+ a,
679
+ o
680
+ ]), c = H(r.onError);
681
+ c.current = r.onError;
682
+ let l = i?.debounceMs ?? e.delay ?? 300, u = (L(t, l) ?? "").trim(), d = i?.limit ?? 10, f = i?.minQueryLength ?? 0, p = i?.preload ?? !0, m = i?.staleTime ?? 6e4, h = i?.gcTime ?? 3e5, g = u.length === 0 && p, _ = u.length >= f, v = !!i?.fetcher && n && (g || u.length > 0 && _), y = n && !g && u.length > 0 && u.length < f, b = V(() => i?.queryKey ? JSON.stringify(i.queryKey({
683
+ query: u,
684
+ limit: d
685
+ })) : JSON.stringify([
686
+ "filter",
687
+ e.key,
688
+ u,
689
+ d
690
+ ]), [
691
+ i,
692
+ e.key,
693
+ u,
694
+ d
695
+ ]), x = z(async (e) => a && o ? (await a({
696
+ query: u,
697
+ limit: d,
698
+ signal: e
699
+ })).map(o) : [], [
700
+ a,
701
+ o,
702
+ u,
703
+ d
704
+ ]), [S, C] = U(() => {
705
+ let e = Re(s, b, h);
706
+ return {
707
+ cache: s,
708
+ data: e?.data ?? [],
709
+ loading: !1,
710
+ fetching: !1,
711
+ error: !1
712
+ };
713
+ }), [w, T] = U(0), E = z(() => T((e) => e + 1), []), D = H(0);
714
+ return B(() => {
715
+ let t = D.current !== w;
716
+ if (D.current = w, !v) return;
717
+ let n = Re(s, b, h), r = n !== void 0 && Date.now() - n.timestamp < m, i = new AbortController();
718
+ if (r && !t) return C({
719
+ cache: s,
720
+ data: n.data,
721
+ loading: !1,
722
+ fetching: !1,
723
+ error: !1
724
+ }), () => i.abort();
725
+ C((e) => ({
726
+ cache: s,
727
+ data: n?.data ?? (e.cache === s ? e.data : []),
728
+ loading: n === void 0,
729
+ fetching: !0,
730
+ error: !1
731
+ }));
732
+ let a = !1;
733
+ return x(i.signal).then((e) => {
734
+ a || (s.set(b, {
735
+ timestamp: Date.now(),
736
+ data: e
737
+ }), C({
738
+ cache: s,
739
+ data: e,
740
+ loading: !1,
741
+ fetching: !1,
742
+ error: !1
743
+ }));
744
+ }).catch((t) => {
745
+ a || i.signal.aborted || t && t.name === "AbortError" || (C((e) => ({
746
+ cache: s,
747
+ data: e.cache === s ? e.data : [],
748
+ loading: !1,
749
+ fetching: !1,
750
+ error: !0
751
+ })), c.current?.(t, {
752
+ phase: "fetch-options",
753
+ filterKey: e.key
754
+ }));
755
+ }), () => {
756
+ a = !0, i.abort();
757
+ };
758
+ }, [
759
+ s,
760
+ b,
761
+ x,
762
+ v,
763
+ m,
764
+ h,
765
+ w,
766
+ e.key
767
+ ]), {
768
+ options: v && S.cache === s ? S.data : [],
769
+ isLoading: v && S.cache === s && S.loading,
770
+ isFetching: v && S.cache === s && S.fetching,
771
+ isError: v && S.cache === s && S.error,
772
+ refetch: E,
773
+ isBelowMinQuery: y,
774
+ minQueryLength: f
775
+ };
776
+ }
777
+ //#endregion
778
+ //#region src/components/features/filters/partials/async-filter-content.tsx
779
+ function Be({ filter: e, value: t, onFilterChange: i, onBackToFilterList: a, onClose: o, triggerSource: u = "chip" }) {
780
+ let { strings: d, cacheAsyncOptions: f, getAsyncOptionLabel: p, reportError: m } = Q(), [h, g] = U(""), [S, w] = U(t ?? []), T = H(t);
781
+ if (t !== T.current) {
782
+ let e = T.current ?? [], n = t ?? [];
783
+ T.current = t, (n.length !== e.length || n.some((t, n) => t !== e[n])) && w(n);
784
+ }
785
+ let { options: E, isLoading: D, isFetching: k, isError: j, refetch: M, isBelowMinQuery: N, minQueryLength: P } = ze(e, h, !0, { onError: m });
786
+ B(() => {
787
+ E.length > 0 && f(e.key, E);
788
+ }, [
789
+ f,
790
+ e.key,
791
+ E
792
+ ]);
793
+ let F = e.multiple !== !1, I = e.maxSelected, L = u === "toolbar", R = S.length !== t.length || S.some((e) => !t.includes(e)), ee = V(() => {
794
+ let t = new Set(S), n = new Set(E.map((e) => e.value)), r = [];
795
+ for (let t of S) if (!n.has(t)) {
796
+ let n = p(e.key, t);
797
+ n && r.push({
798
+ value: t,
799
+ label: n,
800
+ icon: e.icon
801
+ });
802
+ }
803
+ return [...r, ...E].sort((e, n) => +!t.has(e.value) - !t.has(n.value));
804
+ }, [
805
+ E,
806
+ S,
807
+ e.key,
808
+ e.icon,
809
+ p
810
+ ]), te = (t) => {
811
+ if (F) {
812
+ if (S.includes(t)) w(S.filter((e) => e !== t));
813
+ else {
814
+ if (I && S.length >= I) return;
815
+ w([...S, t]);
816
+ }
817
+ } else w([t]), e.closeOnSelect === !0 && (i([t]), o());
818
+ }, z = () => {
819
+ i(S), o();
820
+ }, ne = V(() => D || k ? /* @__PURE__ */ G(c, { label: d.searching }) : j ? /* @__PURE__ */ G(l, {
821
+ variant: "inline",
822
+ title: d.fetchError,
823
+ action: /* @__PURE__ */ G(n, {
824
+ tone: "secondary",
825
+ buttonStyle: "outline",
826
+ size: "sm",
827
+ onClick: (e) => {
828
+ e.stopPropagation(), M();
829
+ },
830
+ children: d.retryFetch
831
+ })
832
+ }) : N ? /* @__PURE__ */ G("div", {
833
+ className: "text-muted-foreground flex items-center justify-center py-space-xl",
834
+ children: /* @__PURE__ */ G(r, {
835
+ tag: "span",
836
+ size: "xs",
837
+ type: "secondary",
838
+ children: Y(d.minQueryHint, { min: P })
839
+ })
840
+ }) : d.noOptionsFound, [
841
+ D,
842
+ k,
843
+ j,
844
+ N,
845
+ P,
846
+ d,
847
+ M
848
+ ]);
849
+ return /* @__PURE__ */ K(W, { children: [
850
+ /* @__PURE__ */ K(O, {
851
+ start: L ? /* @__PURE__ */ G(n, {
852
+ tone: "secondary",
853
+ buttonStyle: "ghost",
854
+ size: "sm",
855
+ iconOnly: !0,
856
+ className: "shrink-0",
857
+ onClick: a,
858
+ "aria-label": d.backToFilters,
859
+ children: /* @__PURE__ */ G(se, {
860
+ "aria-hidden": "true",
861
+ className: "size-icon-sm rtl:rotate-180"
862
+ })
863
+ }) : void 0,
864
+ children: [/* @__PURE__ */ G(r, {
865
+ tag: "span",
866
+ weight: "semibold",
867
+ children: e.label
868
+ }), /* @__PURE__ */ G(r, {
869
+ tag: "span",
870
+ size: "xs",
871
+ type: "secondary",
872
+ children: d.selectValues
873
+ })]
874
+ }),
875
+ /* @__PURE__ */ K(C, {
876
+ shouldFilter: !1,
877
+ inset: "flush",
878
+ className: "rounded-none",
879
+ children: [/* @__PURE__ */ G(v, {
880
+ placeholder: Y(d.searchPlaceholder, { filterLabel: e.label.toLowerCase() }),
881
+ value: h,
882
+ onValueChange: g
883
+ }), /* @__PURE__ */ G(b, { children: ee.length === 0 ? /* @__PURE__ */ G(y, { children: ne }) : /* @__PURE__ */ K(x, { children: [!(!k || D) && /* @__PURE__ */ K(s, {
884
+ direction: "horizontal",
885
+ gap: "sm",
886
+ wrap: !1,
887
+ className: "px-control-sm py-space-xs",
888
+ children: [/* @__PURE__ */ G(ue, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ G(r, {
889
+ tag: "span",
890
+ size: "xs",
891
+ type: "secondary",
892
+ children: d.searching
893
+ })]
894
+ }), ee.map((e) => /* @__PURE__ */ K(_, {
895
+ onSelect: () => te(e.value),
896
+ "data-checked": S.includes(e.value) || void 0,
897
+ disabled: e.disabled || !!I && S.length >= I && !S.includes(e.value),
898
+ className: "flex items-center gap-space-sm",
899
+ children: [e.icon, /* @__PURE__ */ G(r, {
900
+ tag: "span",
901
+ lineHeight: "tight",
902
+ children: e.label
903
+ })]
904
+ }, e.value))] }) })]
905
+ }),
906
+ R && /* @__PURE__ */ G(A, {
907
+ caption: Y(d.selected, {
908
+ count: S.length,
909
+ filterLabel: (S.length > 1 ? e.pluralLabel : e.label) ?? e.label
910
+ }),
911
+ children: /* @__PURE__ */ G(n, {
912
+ tone: "primary",
913
+ size: "sm",
914
+ onClick: z,
915
+ children: d.confirm
916
+ })
917
+ })
918
+ ] });
919
+ }
920
+ //#endregion
921
+ //#region src/components/features/filters/facets/date-facet.tsx
922
+ var Ve = [];
923
+ function He({ filter: e, value: n, onValueChange: r, className: i }) {
924
+ let { strings: a } = Q(), o = e.operators?.some((e) => e.value === "between") || e.operator === "between" || e.key.toLowerCase().includes("range") || e.key.toLowerCase().includes("between"), s = e.dateFormat?.param ?? "yyyy-MM-dd", c = e.dateFormat?.display ?? "PPP", l = o ? e.datePickerConfig?.noRangePlaceholder ?? e.placeholder ?? a.calendar.notDateRangeSelected : e.datePickerConfig?.noDatePlaceholder ?? e.placeholder ?? a.calendar.notDateSelected, u = !!e.datePickerConfig?.showConfirmButton, d = e.datePickerConfig?.autoApply ?? !u, f = e.datePickerConfig?.showShortcuts ?? !0, p = o && (n.start || n.end) ? {
925
+ from: n.start,
926
+ to: n.end
927
+ } : void 0, m = !o && n.start && J(n.start) ? n.start : void 0, h = {
928
+ format: s,
929
+ readableFormat: c,
930
+ placeholder: l,
931
+ disablePortal: !0,
932
+ numberOfMonths: 1,
933
+ className: t("date-facet--component", "w-full", i)
934
+ };
935
+ return o ? /* @__PURE__ */ G(T, {
936
+ mode: "range",
937
+ value: p,
938
+ onValueChange: (e) => {
939
+ r({
940
+ start: e.range?.from ?? void 0,
941
+ end: e.range?.to ?? void 0
942
+ });
943
+ },
944
+ withConfirm: u,
945
+ closeOnSelect: d,
946
+ presets: f ? void 0 : Ve,
947
+ ...h
948
+ }) : /* @__PURE__ */ G(T, {
949
+ mode: "single",
950
+ value: m,
951
+ onValueChange: (e) => {
952
+ r({
953
+ start: e.date ?? void 0,
954
+ end: void 0
955
+ });
956
+ },
957
+ closeOnSelect: d,
958
+ ...h
959
+ });
960
+ }
961
+ //#endregion
962
+ //#region src/components/features/filters/partials/date-filter-content.tsx
963
+ function Ue({ filter: e, value: t, onFilterChange: r, onBackToFilterList: i, triggerSource: a = "chip" }) {
964
+ let { strings: o } = Q(), s = (t) => {
965
+ if (!t) return;
966
+ if (e.dateFormat?.param) {
967
+ let n = pe(t, e.dateFormat.param, /* @__PURE__ */ new Date());
968
+ return J(n) ? n : void 0;
969
+ }
970
+ let n = new Date(t);
971
+ return J(n) ? n : void 0;
972
+ }, c = s(t[0]), l = s(t[1]), u = (t) => {
973
+ if (t && J(t)) return fe(t, e.dateFormat?.param ?? "yyyy-MM-dd");
974
+ }, d = ({ start: e, end: t }) => {
975
+ let n = [], i = u(e), a = u(t);
976
+ i && n.push(i), a && n.push(a), r(n);
977
+ }, f = a === "toolbar", p = {
978
+ start: c,
979
+ end: l
980
+ };
981
+ return /* @__PURE__ */ K("div", {
982
+ className: "flex flex-col",
983
+ children: [/* @__PURE__ */ G(O, {
984
+ start: f ? /* @__PURE__ */ G(n, {
985
+ type: "button",
986
+ tone: "secondary",
987
+ buttonStyle: "ghost",
988
+ size: "sm",
989
+ iconOnly: !0,
990
+ onClick: i,
991
+ className: "shrink-0",
992
+ "aria-label": o.backToFilters,
993
+ children: /* @__PURE__ */ G(se, {
994
+ "aria-hidden": "true",
995
+ className: "size-icon-sm rtl:rotate-180"
996
+ })
997
+ }) : void 0,
998
+ children: /* @__PURE__ */ G(E, { children: e.label })
999
+ }), /* @__PURE__ */ G("div", {
1000
+ className: "p-surface",
1001
+ children: /* @__PURE__ */ G(He, {
1002
+ filter: e,
1003
+ value: p,
1004
+ onValueChange: d
1005
+ })
1006
+ })]
1007
+ });
1008
+ }
1009
+ //#endregion
1010
+ //#region src/components/features/filters/partials/filter-error-boundary.tsx
1011
+ var We = class extends ee {
1012
+ state = {
1013
+ hasError: !1,
1014
+ error: null
1015
+ };
1016
+ static getDerivedStateFromError(e) {
1017
+ return {
1018
+ hasError: !0,
1019
+ error: e
1020
+ };
1021
+ }
1022
+ componentDidCatch(e, t) {
1023
+ this.props.onError(e, {
1024
+ phase: "render",
1025
+ filterKey: this.props.filterKey
1026
+ });
1027
+ }
1028
+ handleReset = () => {
1029
+ this.setState({
1030
+ hasError: !1,
1031
+ error: null
1032
+ });
1033
+ };
1034
+ render() {
1035
+ if (this.state.hasError) {
1036
+ let { fallback: e, filterKey: t, labels: i } = this.props;
1037
+ return e ? /* @__PURE__ */ G("div", {
1038
+ className: "filter-error-boundary--component contents",
1039
+ children: e
1040
+ }) : /* @__PURE__ */ K("div", {
1041
+ className: "filter-error-boundary--component rounded-radius-md border border-destructive/30 bg-destructive/10 p-surface-xs text-destructive",
1042
+ children: [
1043
+ /* @__PURE__ */ K("div", {
1044
+ className: "mb-space-xs flex items-center justify-between",
1045
+ children: [/* @__PURE__ */ G(r, {
1046
+ tag: "span",
1047
+ weight: "semibold",
1048
+ children: i.title
1049
+ }), /* @__PURE__ */ G(n, {
1050
+ type: "button",
1051
+ tone: "destructive",
1052
+ buttonStyle: "ghost",
1053
+ size: "sm",
1054
+ iconOnly: !0,
1055
+ onClick: this.handleReset,
1056
+ className: "rounded-full p-0",
1057
+ "aria-label": i.reset,
1058
+ children: /* @__PURE__ */ G(q, { className: "size-icon-sm" })
1059
+ })]
1060
+ }),
1061
+ /* @__PURE__ */ G(r, { children: i.getDescription(t) }),
1062
+ /* @__PURE__ */ G(f, {
1063
+ size: "xs",
1064
+ className: "mt-space-xs text-destructive",
1065
+ children: this.state.error?.message || i.unknownError
1066
+ })
1067
+ ]
1068
+ });
1069
+ }
1070
+ return /* @__PURE__ */ G("div", {
1071
+ className: "filter-error-boundary--component contents",
1072
+ children: this.props.children
1073
+ });
1074
+ }
1075
+ };
1076
+ function $(e) {
1077
+ let { strings: t, reportError: n } = Q(), r = V(() => ({
1078
+ title: t.error.title,
1079
+ reset: t.clear,
1080
+ getDescription: (e) => e ? Y(t.error.descriptionWithKey, { filterKey: e }) : t.error.generic,
1081
+ unknownError: t.error.unknown
1082
+ }), [t]);
1083
+ return /* @__PURE__ */ G(We, {
1084
+ ...e,
1085
+ labels: r,
1086
+ onError: n
1087
+ });
1088
+ }
1089
+ //#endregion
1090
+ //#region src/components/features/filters/partials/filter-list-item.tsx
1091
+ function Ge({ filter: e, onSelect: t }) {
1092
+ let { strings: n } = Q(), i = e.type === X.DATE ? e.operator === "between" ? n?.selectDateRange : n?.selectDate : e.options ? `${e.options.length} ${n?.options ?? ""}`.trim() : null;
1093
+ return /* @__PURE__ */ K(_, {
1094
+ onSelect: t,
1095
+ children: [!!e.icon && /* @__PURE__ */ G("span", {
1096
+ className: "shrink-0 text-muted-foreground [&_svg]:size-icon",
1097
+ children: e.icon
1098
+ }), /* @__PURE__ */ K("div", {
1099
+ className: "flex min-w-0 flex-col gap-dense leading-tight",
1100
+ children: [/* @__PURE__ */ G(r, {
1101
+ tag: "span",
1102
+ lineHeight: "tight",
1103
+ weight: "medium",
1104
+ className: "truncate",
1105
+ children: e.label
1106
+ }), !!i && /* @__PURE__ */ G(r, {
1107
+ tag: "span",
1108
+ lineHeight: "tight",
1109
+ size: "xs",
1110
+ type: "secondary",
1111
+ className: "truncate",
1112
+ children: i
1113
+ })]
1114
+ })]
1115
+ }, e.key);
1116
+ }
1117
+ //#endregion
1118
+ //#region src/components/features/filters/partials/filter-list-content.tsx
1119
+ function Ke({ availableFilters: e, activeFilters: t, onFilterSelect: n }) {
1120
+ let { strings: r } = Q(), i = (e) => {
1121
+ n(e);
1122
+ };
1123
+ return /* @__PURE__ */ K(C, {
1124
+ inset: "compact",
1125
+ className: "rounded-none",
1126
+ children: [/* @__PURE__ */ G(v, { placeholder: r.searchFilters }), /* @__PURE__ */ K(b, { children: [
1127
+ /* @__PURE__ */ G(y, { children: r.noFiltersAvailable }),
1128
+ e.length > 0 && /* @__PURE__ */ G(x, {
1129
+ heading: r.availableFilters,
1130
+ children: e.map((e) => /* @__PURE__ */ G(Ge, {
1131
+ filter: e,
1132
+ onSelect: () => i(e)
1133
+ }, e.key))
1134
+ }),
1135
+ t.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(S, {}), /* @__PURE__ */ G(x, {
1136
+ heading: r.activeFilters,
1137
+ children: t.map((e) => /* @__PURE__ */ G(Ge, {
1138
+ filter: e,
1139
+ onSelect: () => i(e)
1140
+ }, e.key))
1141
+ })] })
1142
+ ] })]
1143
+ });
1144
+ }
1145
+ //#endregion
1146
+ //#region src/components/features/filters/partials/regular-filter-content.tsx
1147
+ function qe({ filter: e, value: t, onFilterChange: i, onBackToFilterList: a, onClose: o, triggerSource: s = "chip" }) {
1148
+ let { strings: c, reportError: l } = Q(), u = e.multiple === !0 || e.type === X.MULTI_SELECT, d = s === "toolbar", [f, p] = U(t || []);
1149
+ B(() => {
1150
+ p(t || []);
1151
+ }, [t]);
1152
+ let m = (t) => {
1153
+ if (u) {
1154
+ let e = f.includes(t) ? f.filter((e) => e !== t) : [...f, t];
1155
+ p(e);
1156
+ } else p([t]), e.closeOnSelect === !0 && (i([t]), o());
1157
+ }, h = () => {
1158
+ try {
1159
+ i(f), o();
1160
+ } catch (t) {
1161
+ l(t, {
1162
+ phase: "apply",
1163
+ filterKey: e.key
1164
+ });
1165
+ }
1166
+ }, g = JSON.stringify(f.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
1167
+ return /* @__PURE__ */ K("div", {
1168
+ className: "flex flex-col",
1169
+ children: [
1170
+ /* @__PURE__ */ G(O, {
1171
+ start: d ? /* @__PURE__ */ G(n, {
1172
+ type: "button",
1173
+ tone: "secondary",
1174
+ buttonStyle: "ghost",
1175
+ size: "sm",
1176
+ iconOnly: !0,
1177
+ onClick: a,
1178
+ className: "shrink-0",
1179
+ "aria-label": c.backToFilters,
1180
+ children: /* @__PURE__ */ G(se, {
1181
+ "aria-hidden": "true",
1182
+ className: "size-icon-sm rtl:rotate-180"
1183
+ })
1184
+ }) : void 0,
1185
+ children: /* @__PURE__ */ G(r, {
1186
+ tag: "span",
1187
+ weight: "semibold",
1188
+ children: e.label
1189
+ })
1190
+ }),
1191
+ /* @__PURE__ */ K(C, {
1192
+ inset: "flush",
1193
+ className: "rounded-none",
1194
+ children: [/* @__PURE__ */ G(v, { placeholder: Y(c.searchPlaceholder, { filterLabel: e.label.toLowerCase() }) }), /* @__PURE__ */ K(b, {
1195
+ className: "max-h-64",
1196
+ children: [/* @__PURE__ */ G(y, { children: /* @__PURE__ */ G(r, {
1197
+ type: "secondary",
1198
+ align: "center",
1199
+ className: "py-space-xl",
1200
+ children: c.noOptionsFound
1201
+ }) }), /* @__PURE__ */ G(x, { children: e.options?.map((e) => {
1202
+ let t = f.includes(e.value);
1203
+ return /* @__PURE__ */ K(_, {
1204
+ onSelect: () => m(e.value),
1205
+ "data-checked": t || void 0,
1206
+ disabled: e.disabled,
1207
+ className: "data-[checked=true]:**:[svg]:text-primary-accent",
1208
+ children: [!!e.icon && /* @__PURE__ */ G("span", {
1209
+ className: "shrink-0 text-muted-foreground [&_svg]:size-icon",
1210
+ children: e.icon
1211
+ }), /* @__PURE__ */ K("div", {
1212
+ className: "flex min-w-0 flex-1 flex-col leading-tight",
1213
+ children: [/* @__PURE__ */ G(r, {
1214
+ tag: "span",
1215
+ lineHeight: "tight",
1216
+ weight: t ? "medium" : "regular",
1217
+ className: "truncate",
1218
+ children: e.label
1219
+ }), !!e.description && /* @__PURE__ */ G(r, {
1220
+ tag: "span",
1221
+ size: "xs",
1222
+ lineHeight: "tight",
1223
+ type: "secondary",
1224
+ className: "truncate mt-space-2xs",
1225
+ children: e.description
1226
+ })]
1227
+ })]
1228
+ }, e.value);
1229
+ }) })]
1230
+ })]
1231
+ }),
1232
+ !!g && /* @__PURE__ */ G(A, {
1233
+ caption: Y(c.selected, {
1234
+ count: f.length,
1235
+ filterLabel: (f.length > 1 ? e.pluralLabel : e.label) ?? e.label
1236
+ }),
1237
+ children: /* @__PURE__ */ G(n, {
1238
+ tone: "primary",
1239
+ size: "sm",
1240
+ onClick: h,
1241
+ children: c.confirm
1242
+ })
1243
+ })
1244
+ ]
1245
+ });
1246
+ }
1247
+ //#endregion
1248
+ //#region src/components/features/filters/facets/tags-facet.tsx
1249
+ function Je({ filter: e, value: i, onValueChange: a, className: o }) {
1250
+ let { strings: c } = Q(), [l, u] = U(""), d = z(() => {
1251
+ let e = l.trim();
1252
+ e && !i.includes(e) && (a([...i, e]), u(""));
1253
+ }, [
1254
+ l,
1255
+ i,
1256
+ a
1257
+ ]), f = z((e) => {
1258
+ a(i.filter((t) => t !== e));
1259
+ }, [i, a]), p = (e) => {
1260
+ e.key === "Enter" && (e.preventDefault(), d());
1261
+ }, m = z(() => {
1262
+ a([]), u("");
1263
+ }, [a]), h = i.length > 0, _ = i.length === 1 ? c.tag : c.tags, v = h ? /* @__PURE__ */ K(s, {
1264
+ gap: "md",
1265
+ className: "tags-facet--summary",
1266
+ children: [/* @__PURE__ */ K(s, {
1267
+ direction: "horizontal",
1268
+ gap: "sm",
1269
+ justify: "between",
1270
+ wrap: !1,
1271
+ children: [/* @__PURE__ */ K(r, {
1272
+ tag: "span",
1273
+ size: "xs",
1274
+ type: "secondary",
1275
+ children: [
1276
+ i.length,
1277
+ " ",
1278
+ _
1279
+ ]
1280
+ }), /* @__PURE__ */ G(n, {
1281
+ onClick: m,
1282
+ tone: "secondary",
1283
+ buttonStyle: "ghost",
1284
+ size: "sm",
1285
+ className: "h-auto px-space-sm py-0 text-muted-foreground hover:text-foreground",
1286
+ type: "button",
1287
+ "aria-label": c.clearAll,
1288
+ children: c.clearAll
1289
+ })]
1290
+ }), /* @__PURE__ */ G(s, {
1291
+ direction: "horizontal",
1292
+ gap: "md",
1293
+ children: i.map((e) => /* @__PURE__ */ K(g, {
1294
+ tone: "secondary",
1295
+ className: "flex items-center gap-space-sm py-space-2xs pl-space-md pr-space-sm",
1296
+ children: [/* @__PURE__ */ G(r, {
1297
+ tag: "span",
1298
+ size: "xs",
1299
+ children: e
1300
+ }), /* @__PURE__ */ G(n, {
1301
+ onClick: () => f(e),
1302
+ tone: "secondary",
1303
+ buttonStyle: "ghost",
1304
+ size: "sm",
1305
+ iconOnly: !0,
1306
+ className: "ml-space-sm size-icon rounded-full p-0 hover:bg-muted-foreground/20",
1307
+ type: "button",
1308
+ "aria-label": `${c.removeTag} ${e}`,
1309
+ children: /* @__PURE__ */ G(q, { className: "size-icon-sm" })
1310
+ })]
1311
+ }, e))
1312
+ })]
1313
+ }) : null;
1314
+ return /* @__PURE__ */ K(s, {
1315
+ gap: "lg",
1316
+ className: t("tags-facet--component", o),
1317
+ children: [/* @__PURE__ */ K(s, {
1318
+ direction: "horizontal",
1319
+ gap: "md",
1320
+ wrap: !1,
1321
+ children: [/* @__PURE__ */ G("div", {
1322
+ className: "relative flex-1",
1323
+ children: /* @__PURE__ */ G(w, {
1324
+ type: "text",
1325
+ value: l,
1326
+ onChange: (e) => u(e.target.value),
1327
+ onKeyDown: p,
1328
+ placeholder: e.placeholder ?? c.enterTag,
1329
+ className: ge
1330
+ })
1331
+ }), /* @__PURE__ */ K(n, {
1332
+ onClick: d,
1333
+ disabled: !l.trim(),
1334
+ size: "md",
1335
+ className: ge,
1336
+ type: "button",
1337
+ children: [/* @__PURE__ */ G(de, { className: "size-icon" }), /* @__PURE__ */ G(r, {
1338
+ tag: "span",
1339
+ size: "pxs",
1340
+ className: "sr-only",
1341
+ children: c.addTag
1342
+ })]
1343
+ })]
1344
+ }), v]
1345
+ });
1346
+ }
1347
+ var Ye = R.memo(Je);
1348
+ Ye.displayName = "TagsFacet";
1349
+ //#endregion
1350
+ //#region src/components/features/filters/partials/tags-filter-content.tsx
1351
+ function Xe({ filter: e, value: t, onFilterChange: r, onBackToFilterList: i, onClose: a, triggerSource: o = "chip" }) {
1352
+ let { strings: s, reportError: c } = Q(), [l, u] = U(t || []), f = o === "toolbar", p = l.length === 1 ? s.tag : s.tags;
1353
+ B(() => {
1354
+ u(t || []);
1355
+ }, [t]);
1356
+ let m = () => {
1357
+ try {
1358
+ r(l), a();
1359
+ } catch (t) {
1360
+ c(t, {
1361
+ phase: "apply",
1362
+ filterKey: e.key
1363
+ });
1364
+ }
1365
+ }, h = JSON.stringify(l.slice().sort()) !== JSON.stringify((t ?? []).slice().sort());
1366
+ return /* @__PURE__ */ K("div", {
1367
+ className: "flex flex-col",
1368
+ children: [
1369
+ /* @__PURE__ */ G(O, {
1370
+ start: f ? /* @__PURE__ */ G(n, {
1371
+ type: "button",
1372
+ tone: "secondary",
1373
+ buttonStyle: "ghost",
1374
+ size: "sm",
1375
+ iconOnly: !0,
1376
+ onClick: i,
1377
+ className: "shrink-0",
1378
+ "aria-label": s.backToFilters,
1379
+ children: /* @__PURE__ */ G(se, {
1380
+ "aria-hidden": "true",
1381
+ className: "size-icon-sm rtl:rotate-180"
1382
+ })
1383
+ }) : void 0,
1384
+ children: /* @__PURE__ */ G(E, { children: e.label })
1385
+ }),
1386
+ /* @__PURE__ */ G("div", {
1387
+ className: "p-surface",
1388
+ children: /* @__PURE__ */ G(Ye, {
1389
+ filter: e,
1390
+ value: l,
1391
+ onValueChange: u
1392
+ })
1393
+ }),
1394
+ !!h && /* @__PURE__ */ G(A, {
1395
+ caption: /* @__PURE__ */ K(d, {
1396
+ size: "xs",
1397
+ className: "tabular-nums",
1398
+ children: [
1399
+ l.length,
1400
+ " ",
1401
+ p
1402
+ ]
1403
+ }),
1404
+ children: /* @__PURE__ */ G(n, {
1405
+ tone: "primary",
1406
+ size: "sm",
1407
+ onClick: m,
1408
+ children: s.confirm
1409
+ })
1410
+ })
1411
+ ]
1412
+ });
1413
+ }
1414
+ //#endregion
1415
+ //#region src/components/features/filters/partials/filter-popover-content.tsx
1416
+ function Ze({ activeFilterInPopover: e, availableFilters: n, activeFilters: r, getFilterValue: i, setFilterValue: a, onFilterSelect: o, onBackToFilterList: s, onClose: c, triggerSource: l = "chip", finalFocus: u }) {
1417
+ let { strings: d } = Q(), f = e?.type === X.DATE || e?.type === X.TAGS ? "w-auto min-w-80 gap-0 overflow-hidden" : e?.type === X.ASYNC_SELECT ? "w-72 gap-0 overflow-hidden" : "w-64 gap-0 overflow-hidden", p = (e, t) => {
1418
+ a(e, t);
1419
+ };
1420
+ return /* @__PURE__ */ G(j, {
1421
+ finalFocus: u,
1422
+ type: e?.type === X.DATE || e?.type === X.TAGS ? "display" : "menu",
1423
+ "aria-label": e?.label ?? d.addFilter,
1424
+ inset: "flush",
1425
+ className: t("filter-popover-content--component", f),
1426
+ align: "start",
1427
+ children: e ? e.type === X.DATE ? /* @__PURE__ */ G(Ue, {
1428
+ filter: e,
1429
+ value: i(e.key),
1430
+ onFilterChange: (t) => p(e.key, t),
1431
+ onBackToFilterList: s,
1432
+ triggerSource: l
1433
+ }) : e.type === X.TAGS ? /* @__PURE__ */ G(Xe, {
1434
+ filter: e,
1435
+ value: i(e.key),
1436
+ onFilterChange: (t) => p(e.key, t),
1437
+ onBackToFilterList: s,
1438
+ onClose: c,
1439
+ triggerSource: l
1440
+ }) : e.type === X.ASYNC_SELECT ? /* @__PURE__ */ G(Be, {
1441
+ filter: e,
1442
+ value: i(e.key),
1443
+ onFilterChange: (t) => p(e.key, t),
1444
+ onBackToFilterList: s,
1445
+ onClose: c,
1446
+ triggerSource: l
1447
+ }) : /* @__PURE__ */ G(qe, {
1448
+ filter: e,
1449
+ value: i(e.key),
1450
+ onFilterChange: (t) => p(e.key, t),
1451
+ onBackToFilterList: s,
1452
+ onClose: c,
1453
+ triggerSource: l
1454
+ }) : /* @__PURE__ */ G(Ke, {
1455
+ availableFilters: n,
1456
+ activeFilters: r,
1457
+ onFilterSelect: o
1458
+ })
1459
+ });
1460
+ }
1461
+ //#endregion
1462
+ //#region src/components/features/filters/partials/filter-pill.tsx
1463
+ function Qe({ filter: e, value: t, active: n, operator: r, operators: i, onOperatorChange: a, onValueChange: o, onClear: s, availableFilters: c, activeFilters: l, operatorChangeRef: u }) {
1464
+ let d = H(!1), f = u ?? d, [p, m] = U(!1), h = H(null), g = H(null);
1465
+ return /* @__PURE__ */ G($, {
1466
+ filterKey: e.key,
1467
+ children: /* @__PURE__ */ K(k, {
1468
+ open: p,
1469
+ onOpenChange: (e) => {
1470
+ e && f.current || m(e);
1471
+ },
1472
+ children: [/* @__PURE__ */ K("div", {
1473
+ className: "filter-pill--component filter-pill--anchor relative",
1474
+ children: [/* @__PURE__ */ G(D, {
1475
+ render: /* @__PURE__ */ G("span", {}),
1476
+ nativeButton: !1,
1477
+ tabIndex: -1,
1478
+ "aria-hidden": "true",
1479
+ className: "pointer-events-none absolute inset-0"
1480
+ }), /* @__PURE__ */ G(Le, {
1481
+ filter: e,
1482
+ popoverOpen: p,
1483
+ triggerRef: h,
1484
+ value: t,
1485
+ active: n,
1486
+ operators: i,
1487
+ operator: r,
1488
+ onOperatorChange: (e) => {
1489
+ f.current = !0, a(e), m(!1), setTimeout(() => {
1490
+ f.current = !1;
1491
+ }, 100);
1492
+ },
1493
+ onFilterClear: () => {
1494
+ m(!1), s(), h.current?.focus();
1495
+ },
1496
+ onFilterClick: (e) => {
1497
+ f.current || (g.current = e?.currentTarget ?? h.current, m(!0));
1498
+ }
1499
+ })]
1500
+ }), /* @__PURE__ */ G(Ze, {
1501
+ finalFocus: g,
1502
+ activeFilterInPopover: e,
1503
+ availableFilters: c,
1504
+ activeFilters: l,
1505
+ getFilterValue: () => t,
1506
+ setFilterValue: (e, t) => o(t),
1507
+ onFilterSelect: () => {},
1508
+ onBackToFilterList: () => {},
1509
+ onClose: () => m(!1),
1510
+ triggerSource: "chip"
1511
+ })]
1512
+ })
1513
+ });
1514
+ }
1515
+ Qe.displayName = "FilterPill";
1516
+ //#endregion
1517
+ //#region src/components/features/filters/partials/filters-button.tsx
1518
+ function $e({ triggerRef: e, availableFilters: t, activeFilters: r, activeFilterInPopover: i, getFilterValue: a, setFilterValue: o, setActiveFilterInPopover: s }) {
1519
+ let [c, l] = U(!1), { strings: u } = Q();
1520
+ return B(() => {
1521
+ c || s(null);
1522
+ }, [c, s]), /* @__PURE__ */ K(k, {
1523
+ open: c,
1524
+ onOpenChange: l,
1525
+ children: [/* @__PURE__ */ G(D, {
1526
+ asChild: !0,
1527
+ children: /* @__PURE__ */ G(n, {
1528
+ ref: e,
1529
+ tone: "secondary",
1530
+ buttonStyle: "outline",
1531
+ size: "md",
1532
+ iconOnly: !0,
1533
+ "aria-label": u.addFilter,
1534
+ className: "filters-button--component shrink-0",
1535
+ children: /* @__PURE__ */ G(le, { className: "size-icon-sm" })
1536
+ })
1537
+ }), /* @__PURE__ */ G(Ze, {
1538
+ activeFilterInPopover: i,
1539
+ availableFilters: t,
1540
+ activeFilters: r,
1541
+ getFilterValue: a,
1542
+ setFilterValue: o,
1543
+ onFilterSelect: (e) => {
1544
+ s(e);
1545
+ },
1546
+ onBackToFilterList: () => {
1547
+ s(null);
1548
+ },
1549
+ onClose: () => {
1550
+ s(null), l(!1);
1551
+ },
1552
+ triggerSource: "toolbar"
1553
+ })]
1554
+ });
1555
+ }
1556
+ //#endregion
1557
+ //#region src/components/features/filters/partials/filter-tabs.tsx
1558
+ function et({ tabs: e }) {
1559
+ let { activeFilters: n, filters: i, replaceFilters: a } = Q(), o = V(() => n.filter((e) => i.find((t) => t.key === e.key)?.type !== X.SEARCH), [n, i]), s = V(() => n.filter((e) => i.find((t) => t.key === e.key)?.type === X.SEARCH), [n, i]), c = V(() => {
1560
+ for (let t of e) {
1561
+ if (t.presets.length === 0) {
1562
+ if (o.length === 0) return t.id;
1563
+ continue;
1564
+ }
1565
+ if (t.presets.length === o.length && t.presets.every((e) => {
1566
+ let t = o.find((t) => t.key === e.key);
1567
+ if (!t) return !1;
1568
+ let n = [...e.value].sort(), r = [...t.value].sort();
1569
+ return !(n.length !== r.length || n.some((e, t) => e !== r[t]) || e.operator && t.operator !== e.operator);
1570
+ })) return t.id;
1571
+ }
1572
+ return null;
1573
+ }, [e, o]), l = z((e) => {
1574
+ if (e.presets.length === 0) {
1575
+ a([...s]);
1576
+ return;
1577
+ }
1578
+ let t = e.presets.map((e) => {
1579
+ let t = i.find((t) => t.key === e.key), n = e.operator ?? t?.operator ?? (t ? we(t.type) : "equals");
1580
+ return {
1581
+ id: e.key,
1582
+ key: e.key,
1583
+ value: e.value,
1584
+ operator: n
1585
+ };
1586
+ });
1587
+ a([...s, ...t]);
1588
+ }, [
1589
+ i,
1590
+ s,
1591
+ a
1592
+ ]);
1593
+ return e.length === 0 ? null : /* @__PURE__ */ G(P, {
1594
+ value: c,
1595
+ onValueChange: (t) => {
1596
+ let n = e.find((e) => e.id === t);
1597
+ n && l(n);
1598
+ },
1599
+ className: "filter-tabs--component",
1600
+ children: /* @__PURE__ */ G(N, {
1601
+ role: "group",
1602
+ "aria-orientation": void 0,
1603
+ activateOnFocus: !0,
1604
+ className: "h-auto! flex-wrap justify-start gap-space-md bg-transparent p-0",
1605
+ children: e.map((e) => {
1606
+ let n = c === e.id;
1607
+ return /* @__PURE__ */ K(M, {
1608
+ value: e.id,
1609
+ role: "button",
1610
+ "aria-selected": void 0,
1611
+ "aria-controls": void 0,
1612
+ "aria-pressed": n,
1613
+ className: t("h-action-sm flex-none rounded-radius-md px-control-sm py-0 transition-colors after:hidden data-active:bg-foreground data-active:text-background data-active:hover:bg-foreground data-active:hover:text-background", n ? "bg-foreground text-background" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"),
1614
+ children: [/* @__PURE__ */ G(r, {
1615
+ tag: "span",
1616
+ weight: "semibold",
1617
+ className: "text-inherit",
1618
+ children: e.label
1619
+ }), e.count !== void 0 && /* @__PURE__ */ G(r, {
1620
+ tag: "span",
1621
+ size: "xs",
1622
+ weight: "semibold",
1623
+ numeric: !0,
1624
+ className: t("ml-space-sm text-inherit", n ? "text-background" : "text-muted-foreground"),
1625
+ children: e.count
1626
+ })]
1627
+ }, e.id);
1628
+ })
1629
+ })
1630
+ });
1631
+ }
1632
+ //#endregion
1633
+ //#region src/components/features/filters/facets/search-facet.tsx
1634
+ function tt({ filter: e, value: r, onValueChange: i, className: a }) {
1635
+ let { strings: o, isNavigating: s } = Q(), [c, l] = U(r[0] || ""), u = H(c);
1636
+ u.current = c;
1637
+ let d = H(r[0] || null), f = H(!1);
1638
+ B(() => {
1639
+ if (f.current || s) return;
1640
+ let e = u.current;
1641
+ if (!r.length || r[0] === "") {
1642
+ e !== "" && (l(""), d.current = "");
1643
+ return;
1644
+ }
1645
+ r[0] !== void 0 && r[0] !== e && r[0] !== d.current && (l(r[0]), d.current = r[0]);
1646
+ }, [r, s]);
1647
+ let p = I((e) => {
1648
+ d.current = e, f.current = !1, i([e]);
1649
+ }, e.delay ?? 300), m = (e) => {
1650
+ d.current !== e && p(e);
1651
+ };
1652
+ return /* @__PURE__ */ K("div", {
1653
+ className: t("search-facet--component", "search-facet relative w-full min-w-0 rounded-radius bg-background", a),
1654
+ children: [
1655
+ /* @__PURE__ */ G(w, {
1656
+ type: "text",
1657
+ "aria-label": e.label,
1658
+ value: c,
1659
+ onChange: (e) => {
1660
+ f.current = !0;
1661
+ let t = e.target.value;
1662
+ l(t), m(t);
1663
+ },
1664
+ onFocus: () => {
1665
+ f.current = !0;
1666
+ },
1667
+ onBlur: () => {
1668
+ setTimeout(() => {
1669
+ f.current = !1;
1670
+ }, 100);
1671
+ },
1672
+ placeholder: e.placeholder ?? (() => {
1673
+ let t = e.label.trim().toLowerCase();
1674
+ return !t || t === "search" ? Y(o.searchPlaceholder, { filterLabel: "" }).replace(/\s+([….?!])/g, "$1").replace(/\s{2,}/g, " ").trim() : Y(o.searchPlaceholder, { filterLabel: t });
1675
+ })(),
1676
+ className: "w-full pr-9"
1677
+ }),
1678
+ c.trim() !== "" && !s && /* @__PURE__ */ G(n, {
1679
+ type: "button",
1680
+ tone: "secondary",
1681
+ buttonStyle: "ghost",
1682
+ size: "sm",
1683
+ iconOnly: !0,
1684
+ onClick: () => {
1685
+ f.current = !0, l(""), m("");
1686
+ },
1687
+ className: "absolute right-control-gap-small top-1/2 -translate-y-1/2",
1688
+ "aria-label": o.clearSearch,
1689
+ children: /* @__PURE__ */ G(q, { className: "size-icon-sm" })
1690
+ }),
1691
+ !!s && /* @__PURE__ */ G("span", {
1692
+ className: "text-muted-foreground absolute right-control-px top-1/2 -translate-y-1/2",
1693
+ children: /* @__PURE__ */ G(ue, { className: "size-icon animate-spin" })
1694
+ })
1695
+ ]
1696
+ });
1697
+ }
1698
+ var nt = R.memo(tt);
1699
+ nt.displayName = "SearchFacet";
1700
+ //#endregion
1701
+ //#region src/components/features/filters/partials/search-filters-list.tsx
1702
+ function rt({ filters: e, getFilterValue: n, setFilterValue: i, className: a }) {
1703
+ return /* @__PURE__ */ G(W, { children: e.map((e) => /* @__PURE__ */ K(s, {
1704
+ gap: "lg",
1705
+ className: t("search-filters-list--component", "w-full min-w-0 sm:w-64 sm:flex-none", e.displayConfig.className, a),
1706
+ children: [/* @__PURE__ */ G(nt, {
1707
+ filter: e,
1708
+ value: n(e.key),
1709
+ onValueChange: (t) => i(e.key, t)
1710
+ }), !!e.description && /* @__PURE__ */ G(r, {
1711
+ size: "xs",
1712
+ type: "secondary",
1713
+ children: e.description
1714
+ })]
1715
+ }, e.key)) });
1716
+ }
1717
+ //#endregion
1718
+ //#region src/components/features/filters/filter-layout.tsx
1719
+ var it = {
1720
+ compact: "lg",
1721
+ default: "xl"
1722
+ }, at = {
1723
+ compact: "sm",
1724
+ default: "md"
1725
+ };
1726
+ function ot({ className: e, dynamicFilterOptions: i = {}, loadingFilters: a = {}, variant: o = "default", showClearFilters: c = !1, tabs: l }) {
1727
+ let { getFilterValue: u, setFilterValue: d, isFilterActive: f, clearFilters: p, getFilterOperator: m, setFilterOperator: h, isNavigating: g, strings: _ } = Q(), { processedFilters: v, searchFilters: y, alwaysVisibleFilters: b, activeRegularFilters: x, popoverFilters: S, hasActive: C } = Oe({ dynamicFilterOptions: i }), [w, T] = U(null), E = v.find((e) => e.key === w) ?? null, D = z((e) => {
1728
+ T(e?.key ?? null);
1729
+ }, []);
1730
+ B(() => {
1731
+ w !== null && E === null && T(null);
1732
+ }, [w, E]);
1733
+ let O = H(null), k = H(null);
1734
+ function A(e, t) {
1735
+ t.length === 0 && e.displayConfig?.display !== "always" && (k.current = e.key), d(e.key, t);
1736
+ }
1737
+ B(() => {
1738
+ let e = k.current;
1739
+ e !== null && !f(e) && (O.current?.focus(), k.current = null);
1740
+ }, [f]);
1741
+ function j(e) {
1742
+ return e.operators && e.operators.length > 0 ? e.operators : Ce(e.type, _.operators);
1743
+ }
1744
+ function M(e, t) {
1745
+ h(e, t);
1746
+ }
1747
+ return /* @__PURE__ */ K(s, {
1748
+ gap: it[o],
1749
+ className: t("filter-layout--component", e),
1750
+ children: [!!l && l.length > 0 && /* @__PURE__ */ G(et, { tabs: l }), /* @__PURE__ */ K(s, {
1751
+ direction: "horizontal",
1752
+ gap: at[o],
1753
+ children: [/* @__PURE__ */ G($, {
1754
+ filterKey: "search-filters",
1755
+ children: /* @__PURE__ */ G(rt, {
1756
+ filters: y,
1757
+ getFilterValue: u,
1758
+ setFilterValue: d
1759
+ })
1760
+ }), /* @__PURE__ */ K("div", {
1761
+ className: t("contents", g && "pointer-events-none opacity-60"),
1762
+ children: [
1763
+ Object.entries(a).filter(([, e]) => e).map(([e]) => {
1764
+ let t = v.find((t) => t.key === e)?.label || e;
1765
+ return /* @__PURE__ */ K(s, {
1766
+ direction: "horizontal",
1767
+ gap: "sm",
1768
+ wrap: !1,
1769
+ className: "rounded-radius-md bg-muted/50 px-control-sm py-space-xs",
1770
+ children: [/* @__PURE__ */ G("div", { className: "border-muted-foreground/30 border-t-primary size-icon-sm animate-spin rounded-full border-2" }), /* @__PURE__ */ G(r, {
1771
+ tag: "span",
1772
+ type: "secondary",
1773
+ children: Y(_.loadingOptions, { filterLabel: t })
1774
+ })]
1775
+ }, `loading-${e}`);
1776
+ }),
1777
+ [...b, ...x].map((e) => /* @__PURE__ */ G(Qe, {
1778
+ filter: e,
1779
+ value: u(e.key) ?? [],
1780
+ active: f(e.key),
1781
+ operator: m(e.key) || "equals",
1782
+ operators: j(e),
1783
+ onOperatorChange: (t) => M(e.key, t),
1784
+ onValueChange: (t) => A(e, t),
1785
+ onClear: () => A(e, []),
1786
+ availableFilters: S,
1787
+ activeFilters: [...x, ...b]
1788
+ }, e.key)),
1789
+ S.length > 0 && /* @__PURE__ */ G($, {
1790
+ filterKey: "filters-button",
1791
+ children: /* @__PURE__ */ G($e, {
1792
+ triggerRef: O,
1793
+ availableFilters: S,
1794
+ activeFilters: x,
1795
+ activeFilterInPopover: E,
1796
+ getFilterValue: u,
1797
+ setFilterValue: d,
1798
+ setActiveFilterInPopover: D
1799
+ })
1800
+ }),
1801
+ !!c && C && /* @__PURE__ */ G(n, {
1802
+ tone: "secondary",
1803
+ buttonStyle: "ghost",
1804
+ size: "md",
1805
+ onClick: p,
1806
+ className: "text-muted-foreground ml-auto",
1807
+ children: _.clearFilters
1808
+ })
1809
+ ]
1810
+ })]
1811
+ })]
1812
+ });
1813
+ }
1814
+ //#endregion
1815
+ //#region src/components/features/filters/filter-query.ts
1816
+ var st = "__op", ct = ["page"], lt = new Set(Object.values(Z));
1817
+ function ut(e) {
1818
+ let t = {};
1819
+ if (!e) return t;
1820
+ if (e instanceof URLSearchParams) return e.forEach((e, n) => {
1821
+ t[n] = [...t[n] ?? [], e];
1822
+ }), t;
1823
+ for (let [n, r] of Object.entries(e)) {
1824
+ let e = (Array.isArray(r) ? r : [r]).filter((e) => e != null && String(e).length > 0).map((e) => String(e));
1825
+ e.length > 0 && (t[n] = e);
1826
+ }
1827
+ return t;
1828
+ }
1829
+ function dt(e) {
1830
+ let t = {};
1831
+ for (let [n, r] of Object.entries(e)) r.length !== 0 && (t[n] = r.length === 1 ? r[0] : r);
1832
+ return t;
1833
+ }
1834
+ function ft(e, t, n) {
1835
+ let r = e[t] ?? [];
1836
+ return n === "comma" ? r.flatMap((e) => e.split(",")) : r;
1837
+ }
1838
+ function pt(e, t) {
1839
+ return t.map((e) => e.trim()).filter((e) => e.length > 0).map((t) => {
1840
+ if (!e.parse) return t;
1841
+ let n = e.parse(t);
1842
+ return n == null ? "" : String(n);
1843
+ }).filter((e) => e.length > 0);
1844
+ }
1845
+ function mt(e, t) {
1846
+ return t.map((t) => {
1847
+ let n = e.transform ? e.transform(t) : t, r = e.format ? e.format(n) : n;
1848
+ return r == null ? "" : String(r);
1849
+ }).filter((e) => e.length > 0);
1850
+ }
1851
+ function ht(e) {
1852
+ return e.operator ?? e.operators?.[0]?.value ?? we(e.type);
1853
+ }
1854
+ function gt(e, t, n) {
1855
+ let [r] = t[`${e.key}${n}`] ?? [];
1856
+ return r && lt.has(r) ? r : ht(e);
1857
+ }
1858
+ function _t(e, t, n) {
1859
+ return e === "always" || e !== "never" && t !== n;
1860
+ }
1861
+ function vt(e) {
1862
+ return e.type === X.MULTI_SELECT || e.type === X.TAGS || e.multiple === !0;
1863
+ }
1864
+ function yt(e, t, n = {}) {
1865
+ let r = n.operatorSuffix ?? st, i = n.arrayFormat ?? "repeat", a = ut(t);
1866
+ return e.flatMap((e) => {
1867
+ let t = pt(e, ft(a, e.key, i));
1868
+ return t.length === 0 ? [] : [{
1869
+ id: e.key,
1870
+ key: e.key,
1871
+ operator: gt(e, a, r),
1872
+ value: vt(e) ? t : [t[0]]
1873
+ }];
1874
+ });
1875
+ }
1876
+ function bt(e, t, n, r = {}) {
1877
+ let i = r.operatorSuffix ?? st, a = r.arrayFormat ?? "repeat", o = r.preserveUnrelated ?? !0, s = r.includeOperators ?? "changed", c = r.resetPageKeys ?? ct, l = o ? ut(n) : {}, u = new Map(e.map((e) => [e.key, e]));
1878
+ for (let t of e) delete l[t.key], delete l[`${t.key}${i}`];
1879
+ for (let e of c) delete l[e];
1880
+ for (let e of t) {
1881
+ let t = u.get(e.key);
1882
+ if (!t) continue;
1883
+ let n = mt(t, e.value);
1884
+ if (n.length === 0) continue;
1885
+ l[e.key] = a === "comma" ? [n.join(",")] : n;
1886
+ let r = ht(t);
1887
+ _t(s, e.operator, r) && (l[`${e.key}${i}`] = [e.operator]);
1888
+ }
1889
+ return dt(l);
1890
+ }
1891
+ function xt(e, t, n = {}) {
1892
+ let r = n.preserveUnrelated ?? !0, i = n.resetPageKeys ?? ct, a = r ? ut(e) : {}, o = ut(t);
1893
+ for (let e of i) delete a[e];
1894
+ for (let [e, t] of Object.entries(o)) t.length === 0 ? delete a[e] : a[e] = t;
1895
+ return dt(a);
1896
+ }
1897
+ //#endregion
1898
+ //#region src/components/features/filters/facets/select-facet.tsx
1899
+ function St({ filter: e, value: i, onValueChange: a, className: o }) {
1900
+ let { strings: s } = Q(), [c, l] = U(!1), [u, d] = U(""), f = i.length > 0, p = e.options, m = (t) => {
1901
+ e.multiple ? i.includes(t) ? a(i.filter((e) => e !== t)) : a([...i, t]) : (a([t]), e.closeOnSelect !== !1 && l(!1));
1902
+ }, h = (e) => p?.find((t) => t.value === e)?.label ?? e, g = V(() => (p ?? []).map((e) => ({
1903
+ value: e.value,
1904
+ label: e.label,
1905
+ description: e.description,
1906
+ icon: e.icon,
1907
+ selected: i.includes(e.value),
1908
+ disabled: e.disabled
1909
+ })), [p, i]), _ = Y(s.searchPlaceholder, { filterLabel: e.label.toLowerCase() });
1910
+ return /* @__PURE__ */ G("div", {
1911
+ className: t("select-facet--component", "relative", o),
1912
+ children: /* @__PURE__ */ G(F, {
1913
+ open: c,
1914
+ onOpenChange: l,
1915
+ search: !0,
1916
+ searchValue: u,
1917
+ onSearchChange: d,
1918
+ strings: {
1919
+ searchPlaceholder: _,
1920
+ empty: s.noOptionsFound
1921
+ },
1922
+ contentClassName: "w-(--anchor-width) min-w-56",
1923
+ trigger: /* @__PURE__ */ K(n, {
1924
+ tone: "secondary",
1925
+ buttonStyle: "outline",
1926
+ size: "md",
1927
+ role: "combobox",
1928
+ "aria-expanded": c,
1929
+ className: "w-full justify-between",
1930
+ children: [f ? i.length === 1 ? /* @__PURE__ */ G(r, {
1931
+ tag: "span",
1932
+ weight: "semibold",
1933
+ className: "truncate",
1934
+ children: h(i[0])
1935
+ }) : /* @__PURE__ */ G(r, {
1936
+ tag: "span",
1937
+ weight: "semibold",
1938
+ children: Y(s.selected, {
1939
+ count: i.length,
1940
+ filterLabel: (i.length > 1 ? e.pluralLabel : e.label) ?? e.label
1941
+ })
1942
+ }) : /* @__PURE__ */ G(r, {
1943
+ tag: "span",
1944
+ type: "secondary",
1945
+ children: e.placeholder ?? s.select
1946
+ }), /* @__PURE__ */ G(ce, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
1947
+ }),
1948
+ items: g,
1949
+ onSelect: (e) => m(e.value)
1950
+ })
1951
+ });
1952
+ }
1953
+ //#endregion
1954
+ //#region src/components/features/filters/facets/async-select-facet.tsx
1955
+ function Ct({ filter: e, value: i, onValueChange: a, className: o }) {
1956
+ let { strings: u, cacheAsyncOptions: d, getAsyncOptionLabel: f, reportError: p } = Q(), [m, h] = U(!1), [g, S] = U(""), w = V(() => /* @__PURE__ */ new Map(), [
1957
+ e.key,
1958
+ e.asyncConfig?.fetcher,
1959
+ e.asyncConfig?.mapToOption
1960
+ ]), { options: T, isLoading: E, isFetching: O, isError: A, refetch: M, isBelowMinQuery: N, minQueryLength: P } = ze(e, g, m, { onError: p });
1961
+ B(() => {
1962
+ if (T.length !== 0) {
1963
+ for (let e of T) w.set(e.value, e);
1964
+ d(e.key, T);
1965
+ }
1966
+ }, [
1967
+ d,
1968
+ e.key,
1969
+ w,
1970
+ T
1971
+ ]);
1972
+ let F = e.multiple !== !1, I = e.maxSelected, L = V(() => e.options ?? [], [e.options]), R = V(() => {
1973
+ let t = new Set(i), n = new Set([...L, ...T].map((e) => e.value)), r = [];
1974
+ for (let t of i) if (!n.has(t)) {
1975
+ let n = w.get(t);
1976
+ if (n) r.push(n);
1977
+ else {
1978
+ let n = L.find((e) => e.value === t);
1979
+ if (n) {
1980
+ r.push(n);
1981
+ continue;
1982
+ }
1983
+ let i = f(e.key, t);
1984
+ i && r.push({
1985
+ value: t,
1986
+ label: i,
1987
+ icon: e.icon
1988
+ });
1989
+ }
1990
+ }
1991
+ return [
1992
+ ...r,
1993
+ ...L,
1994
+ ...T
1995
+ ].sort((e, n) => +!t.has(e.value) - !t.has(n.value));
1996
+ }, [
1997
+ L,
1998
+ T,
1999
+ i,
2000
+ e.key,
2001
+ e.icon,
2002
+ w,
2003
+ f
2004
+ ]), ee = (t) => {
2005
+ if (F) {
2006
+ if (i.includes(t)) a(i.filter((e) => e !== t));
2007
+ else {
2008
+ if (I && i.length >= I) return;
2009
+ a([...i, t]);
2010
+ }
2011
+ } else a([t]), e.closeOnSelect !== !1 && h(!1);
2012
+ }, te = (t) => {
2013
+ let n = T.find((e) => e.value === t);
2014
+ if (n) return n.label;
2015
+ let r = L.find((e) => e.value === t);
2016
+ if (r) return r.label;
2017
+ let i = w.get(t);
2018
+ return i ? i.label : f(e.key, t) ?? t;
2019
+ }, z = i.length > 0, ne = V(() => E || O ? /* @__PURE__ */ G(c, {
2020
+ className: "async-select-facet--component",
2021
+ label: u.searching
2022
+ }) : A ? /* @__PURE__ */ G(l, {
2023
+ variant: "inline",
2024
+ title: u.fetchError,
2025
+ action: /* @__PURE__ */ G(n, {
2026
+ tone: "secondary",
2027
+ buttonStyle: "outline",
2028
+ size: "sm",
2029
+ onClick: (e) => {
2030
+ e.stopPropagation(), M();
2031
+ },
2032
+ children: u.retryFetch
2033
+ })
2034
+ }) : N ? /* @__PURE__ */ G("div", {
2035
+ className: "text-muted-foreground flex items-center justify-center py-space-xl",
2036
+ children: /* @__PURE__ */ G(r, {
2037
+ tag: "span",
2038
+ size: "xs",
2039
+ type: "secondary",
2040
+ children: Y(u.minQueryHint, { min: P })
2041
+ })
2042
+ }) : /* @__PURE__ */ G(r, {
2043
+ tag: "span",
2044
+ type: "secondary",
2045
+ children: u.noOptionsFound
2046
+ }), [
2047
+ E,
2048
+ O,
2049
+ A,
2050
+ N,
2051
+ P,
2052
+ u,
2053
+ M
2054
+ ]);
2055
+ return /* @__PURE__ */ G("div", {
2056
+ className: t("async-select-facet--component relative", o),
2057
+ children: /* @__PURE__ */ K(k, {
2058
+ open: m,
2059
+ onOpenChange: (e) => {
2060
+ h(e), e || S("");
2061
+ },
2062
+ children: [/* @__PURE__ */ G(D, { render: /* @__PURE__ */ K(n, {
2063
+ tone: "secondary",
2064
+ buttonStyle: "outline",
2065
+ size: "md",
2066
+ role: "combobox",
2067
+ "aria-expanded": m,
2068
+ className: "w-full justify-between",
2069
+ children: [z ? i.length === 1 ? /* @__PURE__ */ G(r, {
2070
+ tag: "span",
2071
+ weight: "semibold",
2072
+ className: "truncate",
2073
+ children: te(i[0])
2074
+ }) : /* @__PURE__ */ G(r, {
2075
+ tag: "span",
2076
+ weight: "semibold",
2077
+ children: Y(u.selected, {
2078
+ count: i.length,
2079
+ filterLabel: (i.length > 1 ? e.pluralLabel : e.label) ?? e.label
2080
+ })
2081
+ }) : /* @__PURE__ */ G(r, {
2082
+ tag: "span",
2083
+ type: "secondary",
2084
+ children: e.placeholder ?? u.select
2085
+ }), /* @__PURE__ */ G(ce, { className: "ml-control-gap-small size-icon-sm shrink-0 opacity-50" })]
2086
+ }) }), /* @__PURE__ */ G(j, {
2087
+ type: "menu",
2088
+ inset: "flush",
2089
+ className: "w-full min-w-70 gap-0",
2090
+ children: /* @__PURE__ */ K(C, {
2091
+ shouldFilter: !1,
2092
+ inset: "flush",
2093
+ className: "rounded-none",
2094
+ children: [/* @__PURE__ */ G(v, {
2095
+ placeholder: Y(u.searchPlaceholder, { filterLabel: e.label }),
2096
+ value: g,
2097
+ onValueChange: S
2098
+ }), /* @__PURE__ */ G(b, { children: R.length === 0 ? /* @__PURE__ */ G(y, { children: ne }) : /* @__PURE__ */ K(x, { children: [!(!O || E) && /* @__PURE__ */ K(s, {
2099
+ direction: "horizontal",
2100
+ gap: "sm",
2101
+ wrap: !1,
2102
+ className: "px-control-sm py-space-xs",
2103
+ children: [/* @__PURE__ */ G(ue, { className: "text-muted-foreground size-icon-sm animate-spin" }), /* @__PURE__ */ G(r, {
2104
+ tag: "span",
2105
+ size: "xs",
2106
+ type: "secondary",
2107
+ children: u.searching
2108
+ })]
2109
+ }), R.map((e) => /* @__PURE__ */ K(_, {
2110
+ value: e.value,
2111
+ onSelect: () => ee(e.value),
2112
+ disabled: e.disabled || !!I && i.length >= I && !i.includes(e.value),
2113
+ children: [
2114
+ /* @__PURE__ */ G(ae, { className: t("mr-control-gap size-icon-sm", i.includes(e.value) ? "opacity-100" : "opacity-0") }),
2115
+ !!e.icon && /* @__PURE__ */ G("span", {
2116
+ className: "mr-1.5",
2117
+ children: e.icon
2118
+ }),
2119
+ /* @__PURE__ */ G(r, {
2120
+ tag: "span",
2121
+ children: e.label
2122
+ })
2123
+ ]
2124
+ }, e.value))] }) })]
2125
+ })
2126
+ })]
2127
+ })
2128
+ });
2129
+ }
2130
+ //#endregion
2131
+ //#region src/components/features/filters/facets/range-facet.tsx
2132
+ function wt({ filter: e, value: n, onValueChange: r, className: a }) {
2133
+ let { strings: c } = Q(), [l, u] = U(n.min?.toString() ?? ""), [d, f] = U(n.max?.toString() ?? ""), p = re(), m = I((e) => {
2134
+ (e.min !== n.min || e.max !== n.max) && r(e);
2135
+ }, e.delay ?? 300);
2136
+ return B(() => (m({
2137
+ min: l ? Number(l) : void 0,
2138
+ max: d ? Number(d) : void 0
2139
+ }), m.cancel), [
2140
+ l,
2141
+ d,
2142
+ m
2143
+ ]), /* @__PURE__ */ G(s, {
2144
+ gap: "md",
2145
+ className: t("range-facet--component", a),
2146
+ children: /* @__PURE__ */ K(o, {
2147
+ columns: {
2148
+ base: 1,
2149
+ sm: 2
2150
+ },
2151
+ gap: "md",
2152
+ children: [/* @__PURE__ */ K(s, {
2153
+ gap: "xs",
2154
+ children: [/* @__PURE__ */ G(i, {
2155
+ htmlFor: `${p}-min`,
2156
+ children: c.min
2157
+ }), /* @__PURE__ */ G(w, {
2158
+ id: `${p}-min`,
2159
+ type: "text",
2160
+ value: l,
2161
+ onChange: (e) => {
2162
+ let t = e.target.value;
2163
+ (t === "" || /^\d*\.?\d*$/.test(t)) && u(t);
2164
+ },
2165
+ placeholder: c.min,
2166
+ className: "w-full"
2167
+ })]
2168
+ }), /* @__PURE__ */ K(s, {
2169
+ gap: "xs",
2170
+ children: [/* @__PURE__ */ G(i, {
2171
+ htmlFor: `${p}-max`,
2172
+ children: c.max
2173
+ }), /* @__PURE__ */ G(w, {
2174
+ id: `${p}-max`,
2175
+ type: "text",
2176
+ value: d,
2177
+ onChange: (e) => {
2178
+ let t = e.target.value;
2179
+ (t === "" || /^\d*\.?\d*$/.test(t)) && f(t);
2180
+ },
2181
+ placeholder: c.max,
2182
+ className: "w-full"
2183
+ })]
2184
+ })]
2185
+ })
2186
+ });
2187
+ }
2188
+ //#endregion
2189
+ //#region src/components/features/filters/validators.ts
2190
+ function Tt(e) {
2191
+ return (t) => {
2192
+ if (t == null || typeof t == "string" && t.length === 0) return !0;
2193
+ let n = e.safeParse(t);
2194
+ return n.success ? !0 : n.error?.issues?.[0]?.message ?? n.error?.message ?? !1;
2195
+ };
2196
+ }
2197
+ function Et(e, t) {
2198
+ return (n) => e(n) ? !0 : t;
2199
+ }
2200
+ //#endregion
2201
+ export { Ce as A, Oe as C, xe as D, Se as E, _e as F, me as I, he as L, ve as M, Z as N, we as O, X as P, Y as R, ke as S, Q as T, $ as _, St as a, Le as b, bt as c, nt as d, et as f, Ye as g, Ze as h, Ct as i, ye as j, be as k, ot as l, Qe as m, Tt as n, xt as o, $e as p, wt as r, yt as s, Et as t, rt as u, He as v, De as w, Ae as x, ze as y };
2202
+
2203
+ //# sourceMappingURL=filters-qtrcv1hf.js.map