themelia-react-ui 1.0.2 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (748) hide show
  1. package/CHANGELOG.md +632 -1
  2. package/README.md +31 -13
  3. package/dist/accordion-B6a3vVgA.js +207 -0
  4. package/dist/accordion-B6a3vVgA.js.map +1 -0
  5. package/dist/action-menu-TzCoSlwL.js +280 -0
  6. package/dist/action-menu-TzCoSlwL.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
  13. package/dist/attachment-BtfhGm8i.js +245 -0
  14. package/dist/attachment-BtfhGm8i.js.map +1 -0
  15. package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
  18. package/dist/avatar-BBnEJIx8.js.map +1 -0
  19. package/dist/badge-MrKVNzW9.js +93 -0
  20. package/dist/badge-MrKVNzW9.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +3 -0
  27. package/dist/base/buttons.js +2 -3
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +19 -19
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +234 -224
  32. package/dist/base/cascader.js.map +1 -1
  33. package/dist/base/chart.js +1 -1
  34. package/dist/base/choice-inputs.js +3 -3
  35. package/dist/base/code-block.js +1 -1
  36. package/dist/base/combobox.js +1 -1
  37. package/dist/base/command.js +1 -1
  38. package/dist/base/copyable.js +1 -1
  39. package/dist/base/date-pickers.js +2 -2
  40. package/dist/base/display.js +7 -7
  41. package/dist/base/feedback.js +3 -3
  42. package/dist/base/forms-numeric.js +1 -1
  43. package/dist/base/forms.js +2 -2
  44. package/dist/base/inline-edit.js +81 -76
  45. package/dist/base/inline-edit.js.map +1 -1
  46. package/dist/base/item.js +1 -1
  47. package/dist/base/media-gallery.js +1 -1
  48. package/dist/base/metadata-list.js +3 -0
  49. package/dist/base/navigation.js +7 -7
  50. package/dist/base/popover-menu.js +1 -1
  51. package/dist/base/popover.js +1 -1
  52. package/dist/base/qr-code.js +7 -4
  53. package/dist/base/qr-code.js.map +1 -1
  54. package/dist/base/repeaters.js +175 -174
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +148 -138
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +1 -1
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +4 -4
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +2 -2
  71. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  72. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  73. package/dist/blocks/admin.js +264 -253
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +293 -323
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +596 -587
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +2246 -1693
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +3 -2
  85. package/dist/blocks/onboarding.js +50 -49
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +82 -91
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/breadcrumbs-D5t7I023.js +129 -0
  91. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  92. package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
  93. package/dist/button-QYwiyhD2.js.map +1 -0
  94. package/dist/buttons-SbIcm1HJ.js +661 -0
  95. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  96. package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
  97. package/dist/cards-CiiHpKYd.js.map +1 -0
  98. package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
  99. package/dist/chart-QfrARkXl.js.map +1 -0
  100. package/dist/checkbox-DhB6K0bK.js +36 -0
  101. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  102. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  103. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  104. package/dist/code-block-Dgbu-CU3.js +185 -0
  105. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  106. package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
  107. package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  108. package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
  109. package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
  110. package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
  111. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  112. package/dist/combobox-DLl0bfiq.js +867 -0
  113. package/dist/combobox-DLl0bfiq.js.map +1 -0
  114. package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
  115. package/dist/command-kNR20o7x.js.map +1 -0
  116. package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
  117. package/dist/comments-BpDuCUUu.js.map +1 -0
  118. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  119. package/dist/components/base/action-menu/action-menu.d.ts +27 -5
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  123. package/dist/components/base/badge/badge.d.ts +1 -1
  124. package/dist/components/base/badge/badge.recipes.d.ts +6 -6
  125. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  126. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  127. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  128. package/dist/components/base/buttons/base-button.d.ts +7 -0
  129. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  130. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  131. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  132. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  133. package/dist/components/base/buttons/text-button.d.ts +2 -2
  134. package/dist/components/base/carousel/carousel.d.ts +3 -1
  135. package/dist/components/base/chart/chart.d.ts +7 -7
  136. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  137. package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
  138. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  139. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  140. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  141. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  142. package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
  143. package/dist/components/base/display/alert-dialog.d.ts +10 -3
  144. package/dist/components/base/display/content-block.d.ts +4 -2
  145. package/dist/components/base/display/date-block.d.ts +1 -1
  146. package/dist/components/base/display/dialog.d.ts +8 -5
  147. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  148. package/dist/components/base/display/surface-title.d.ts +6 -1
  149. package/dist/components/base/feedback/alert.d.ts +1 -1
  150. package/dist/components/base/feedback/state-display.d.ts +5 -4
  151. package/dist/components/base/forms/form-sizing.d.ts +43 -8
  152. package/dist/components/base/forms/workflow.d.ts +2 -0
  153. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  154. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  155. package/dist/components/base/metadata-list/index.d.ts +12 -0
  156. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  157. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  158. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  159. package/dist/components/base/navigation/index.d.ts +1 -1
  160. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  161. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  162. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  163. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  164. package/dist/components/base/navigation/page-header/page-header.d.ts +30 -4
  165. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  166. package/dist/components/base/sheet/index.d.ts +29 -1
  167. package/dist/components/base/sheet/sheet.d.ts +10 -5
  168. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  169. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  170. package/dist/components/base/spinner/spinner.d.ts +3 -2
  171. package/dist/components/base/structure/structure.types.d.ts +1 -1
  172. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  173. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  174. package/dist/components/base/upload/upload.recipes.d.ts +33 -0
  175. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  176. package/dist/components/base/value-inputs/index.d.ts +5 -5
  177. package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
  178. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  179. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  180. package/dist/components/blocks/analytics/index.d.ts +1 -1
  181. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  182. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  183. package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
  184. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  185. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  186. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  187. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  188. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  189. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  190. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  191. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  192. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  193. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  194. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  195. package/dist/components/blocks/commerce/index.d.ts +13 -5
  196. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  197. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  198. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  199. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  200. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  201. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  202. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  203. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  204. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  205. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  206. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  207. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  208. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  209. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  210. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  211. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  212. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  213. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  214. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  215. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  216. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  217. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  218. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  219. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  220. package/dist/components/blocks/commerce/payment-method/types.d.ts +14 -1
  221. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  222. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  223. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  224. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  225. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  226. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  227. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  228. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  229. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  230. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  231. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  232. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  233. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  234. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  235. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  236. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  237. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  238. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  239. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  240. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  241. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  242. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  243. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  244. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  245. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  246. package/dist/components/features/kanban/kanban.d.ts +1 -1
  247. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  248. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  249. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  250. package/dist/components/features/media-library/index.d.ts +1 -1
  251. package/dist/components/features/media-library/media-library.d.ts +1 -1
  252. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  253. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  254. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  255. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  256. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  257. package/dist/components/features/overlays/dialog.d.ts +1 -1
  258. package/dist/components/features/overlays/drawer.d.ts +1 -1
  259. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  260. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  261. package/dist/components/features/overlays/index.d.ts +1 -1
  262. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  263. package/dist/components/features/overlays/overlays.types.d.ts +62 -19
  264. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  265. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  266. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  267. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  268. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  269. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  270. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  271. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  272. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  273. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  274. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  275. package/dist/components/features/products/partials/index.d.ts +1 -1
  276. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  277. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  278. package/dist/components/features/products/products.types.d.ts +11 -3
  279. package/dist/components/features/resource/index.d.ts +1 -1
  280. package/dist/components/features/resource/resource.d.ts +1 -1
  281. package/dist/components/features/resource/resource.types.d.ts +34 -6
  282. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  283. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  284. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  285. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  286. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  287. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  288. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  289. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  290. package/dist/components/features/sync/index.d.ts +26 -3
  291. package/dist/components/features/table/data-table.d.ts +1 -1
  292. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  293. package/dist/components/features/table/table.types.d.ts +32 -7
  294. package/dist/components/layout/page/index.d.ts +1 -1
  295. package/dist/components/layout/page/page.types.d.ts +51 -4
  296. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  297. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  298. package/dist/components/layout/settings/settings.d.ts +16 -2
  299. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  300. package/dist/components/primitives/date.d.ts +16 -3
  301. package/dist/components/primitives/dimensions.d.ts +6 -0
  302. package/dist/components/primitives/duration.d.ts +6 -0
  303. package/dist/components/primitives/file-size.d.ts +6 -0
  304. package/dist/components/primitives/index.d.ts +1 -1
  305. package/dist/components/primitives/initials.d.ts +11 -2
  306. package/dist/components/primitives/link.d.ts +7 -0
  307. package/dist/components/primitives/money.d.ts +29 -7
  308. package/dist/components/primitives/number.d.ts +17 -0
  309. package/dist/components/primitives/value-typography.d.ts +54 -0
  310. package/dist/components/primitives/value.d.ts +31 -6
  311. package/dist/components/typography/heading.d.ts +9 -1
  312. package/dist/components/typography/label.d.ts +3 -0
  313. package/dist/components/typography/rich-text/index.d.ts +1 -1
  314. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  315. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  316. package/dist/components/typography/running-text.d.ts +12 -0
  317. package/dist/components/typography/text-link.d.ts +24 -1
  318. package/dist/components/typography/text.d.ts +12 -0
  319. package/dist/components/typography/text.styles.d.ts +35 -13
  320. package/dist/components/ui/button.d.ts +1 -1
  321. package/dist/components/ui/checkbox.d.ts +6 -0
  322. package/dist/components/ui/overlay.recipes.d.ts +6 -2
  323. package/dist/components/ui/select.d.ts +3 -1
  324. package/dist/components/ui/switch.d.ts +5 -0
  325. package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
  326. package/dist/containers-DmWiJa2I.js.map +1 -0
  327. package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
  328. package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  329. package/dist/data-display-DafIvCl5.js +960 -0
  330. package/dist/data-display-DafIvCl5.js.map +1 -0
  331. package/dist/date-BgK3bTdo.js +144 -0
  332. package/dist/date-BgK3bTdo.js.map +1 -0
  333. package/dist/date-picker-CF-DtUpF.js +1529 -0
  334. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  335. package/dist/date-pickers-BmzxJl5l.js +174 -0
  336. package/dist/date-pickers-BmzxJl5l.js.map +1 -0
  337. package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
  338. package/dist/display-DsQTVzMz.js.map +1 -0
  339. package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
  340. package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
  341. package/dist/features/activities.js +437 -521
  342. package/dist/features/activities.js.map +1 -1
  343. package/dist/features/ai-chat.js +174 -172
  344. package/dist/features/ai-chat.js.map +1 -1
  345. package/dist/features/async-preview.js +8 -8
  346. package/dist/features/async-preview.js.map +1 -1
  347. package/dist/features/combobox.js +1 -1
  348. package/dist/features/comments.js +1 -1
  349. package/dist/features/data-view.js +139 -138
  350. package/dist/features/data-view.js.map +1 -1
  351. package/dist/features/email-composer/engine.js +1 -1
  352. package/dist/features/email-composer.js +353 -352
  353. package/dist/features/email-composer.js.map +1 -1
  354. package/dist/features/event-calendar.js +262 -269
  355. package/dist/features/event-calendar.js.map +1 -1
  356. package/dist/features/filters.js +1 -1
  357. package/dist/features/global-search.js +307 -310
  358. package/dist/features/global-search.js.map +1 -1
  359. package/dist/features/kanban.js +95 -97
  360. package/dist/features/kanban.js.map +1 -1
  361. package/dist/features/map.js +56 -57
  362. package/dist/features/map.js.map +1 -1
  363. package/dist/features/media-library.js +914 -824
  364. package/dist/features/media-library.js.map +1 -1
  365. package/dist/features/mentions.js +1 -1
  366. package/dist/features/overlays.js +1 -1
  367. package/dist/features/products.js +1272 -1311
  368. package/dist/features/products.js.map +1 -1
  369. package/dist/features/questionnaire.js +204 -194
  370. package/dist/features/questionnaire.js.map +1 -1
  371. package/dist/features/resource-assignment.js +103 -95
  372. package/dist/features/resource-assignment.js.map +1 -1
  373. package/dist/features/resource.js +77 -69
  374. package/dist/features/resource.js.map +1 -1
  375. package/dist/features/rich-text-editor.js +30 -11
  376. package/dist/features/rich-text-editor.js.map +1 -1
  377. package/dist/features/schema-form.js +193 -189
  378. package/dist/features/schema-form.js.map +1 -1
  379. package/dist/features/suggestions.js +3 -3
  380. package/dist/features/sync.js +7 -7
  381. package/dist/features/sync.js.map +1 -1
  382. package/dist/features/table.js +1 -1
  383. package/dist/features/theme-tweaker.js +455 -455
  384. package/dist/features/theme-tweaker.js.map +1 -1
  385. package/dist/feedback-qNuMBtRH.js +233 -0
  386. package/dist/feedback-qNuMBtRH.js.map +1 -0
  387. package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
  388. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  389. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  390. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  391. package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
  392. package/dist/filters-BkHH53uv.js.map +1 -0
  393. package/dist/focus-recipes-B653VaLq.js +12 -0
  394. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  395. package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
  396. package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
  397. package/dist/form-sizing-By94KzXE.js +130 -0
  398. package/dist/form-sizing-By94KzXE.js.map +1 -0
  399. package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
  400. package/dist/forms-Bzha-Y3B.js.map +1 -0
  401. package/dist/forms-numeric-C0bvjRPZ.js +906 -0
  402. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  403. package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
  404. package/dist/header-BOefOKd1.js.map +1 -0
  405. package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
  406. package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
  407. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  408. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  409. package/dist/icon-badge-CAuKupo9.js +55 -0
  410. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  411. package/dist/index.js +7 -7
  412. package/dist/input-DWhBBBww.js +262 -0
  413. package/dist/input-DWhBBBww.js.map +1 -0
  414. package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
  415. package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
  416. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  417. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  418. package/dist/item-DEmDiTlD.js +265 -0
  419. package/dist/item-DEmDiTlD.js.map +1 -0
  420. package/dist/layer-recipes-CCpklYME.js +13 -0
  421. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  422. package/dist/layout/app-shell.js +1 -1
  423. package/dist/layout/auth.js +1 -1
  424. package/dist/layout/containers.js +1 -1
  425. package/dist/layout/header.js +1 -1
  426. package/dist/layout/hooks.js +1 -1
  427. package/dist/layout/navigation.js +1 -1
  428. package/dist/layout/page.js +1 -1
  429. package/dist/layout/settings.js +1 -1
  430. package/dist/layout/sidebar.js +2 -2
  431. package/dist/layout/workspace.js +1 -1
  432. package/dist/layout.js +10 -10
  433. package/dist/lib/affordance-geometry.generated.d.ts +7 -1
  434. package/dist/lib/field-affordance-recipes.d.ts +41 -1
  435. package/dist/lib/field-state-recipes.d.ts +9 -6
  436. package/dist/lib/focus-recipes.d.ts +24 -0
  437. package/dist/lib/format.d.ts +9 -0
  438. package/dist/lib/interaction-recipes.d.ts +35 -0
  439. package/dist/lib/layer-recipes.d.ts +19 -0
  440. package/dist/lib/money-format.d.ts +30 -0
  441. package/dist/lib/motion-recipes.d.ts +1 -0
  442. package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
  443. package/dist/lib/safe-image-src.d.ts +10 -0
  444. package/dist/lib/sanitize-html.d.ts +15 -3
  445. package/dist/lib/surface-recipes.d.ts +48 -6
  446. package/dist/lib/token-merge.generated.d.ts +17 -14
  447. package/dist/lib/tone-recipes.d.ts +79 -0
  448. package/dist/lib/track-recipes.d.ts +1 -1
  449. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  450. package/dist/lib/ui-provider/index.d.ts +2 -2
  451. package/dist/lib/ui-provider/provider.d.ts +7 -2
  452. package/dist/lib/ui-provider/store.d.ts +6 -2
  453. package/dist/lib/ui-provider/types.d.ts +14 -2
  454. package/dist/lib/utils.js +1 -1
  455. package/dist/media-gallery-DcTtAaeC.js +203 -0
  456. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  457. package/dist/mentions-D-uyCh01.js +568 -0
  458. package/dist/mentions-D-uyCh01.js.map +1 -0
  459. package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
  460. package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
  461. package/dist/metadata-list-X5rYAKSB.js +394 -0
  462. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  463. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  464. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  465. package/dist/navigation-D3KwXmaq.js +145 -0
  466. package/dist/navigation-D3KwXmaq.js.map +1 -0
  467. package/dist/navigation-HJf5zxlH.js +268 -0
  468. package/dist/navigation-HJf5zxlH.js.map +1 -0
  469. package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
  470. package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  471. package/dist/number-DMhe-Vsk.js +352 -0
  472. package/dist/number-DMhe-Vsk.js.map +1 -0
  473. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  474. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  475. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  476. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  477. package/dist/overlays-I0axtYA6.js +999 -0
  478. package/dist/overlays-I0axtYA6.js.map +1 -0
  479. package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
  480. package/dist/page-B5dTH9gE.js.map +1 -0
  481. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  482. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  483. package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
  484. package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
  485. package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
  486. package/dist/popover-Di55PyAI.js.map +1 -0
  487. package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
  488. package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  489. package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
  490. package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  491. package/dist/primitives-B-CkiEMU.js +379 -0
  492. package/dist/primitives-B-CkiEMU.js.map +1 -0
  493. package/dist/primitives.js +5 -5
  494. package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
  495. package/dist/progress-rnS8-uAW.js.map +1 -0
  496. package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
  497. package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
  498. package/dist/rich-text-DvGulsNJ.js +78 -0
  499. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  500. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  501. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  502. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  503. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  504. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  505. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  506. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  507. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  508. package/dist/sanitize-html-DsQmI48u.js +92 -0
  509. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  510. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  511. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  512. package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
  513. package/dist/separator-C8DlRGwF.js.map +1 -0
  514. package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
  515. package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
  516. package/dist/services/actions/action-adapters.d.ts +22 -0
  517. package/dist/services/actions/index.d.ts +1 -1
  518. package/dist/services/actions.js +23 -6
  519. package/dist/services/actions.js.map +1 -1
  520. package/dist/settings-CQW3b-Cu.js +170 -0
  521. package/dist/settings-CQW3b-Cu.js.map +1 -0
  522. package/dist/sheet-4SEvVYzA.js +210 -0
  523. package/dist/sheet-4SEvVYzA.js.map +1 -0
  524. package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
  525. package/dist/sidebar-C7WWR29L.js.map +1 -0
  526. package/dist/sidebar-d7Dg80ln.js +511 -0
  527. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  528. package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
  529. package/dist/skeleton-Cz890JZF.js.map +1 -0
  530. package/dist/smart-card-lFKxn5Hu.js +595 -0
  531. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  532. package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
  533. package/dist/spinner-fa3h1Aif.js.map +1 -0
  534. package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
  535. package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
  536. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  537. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  538. package/dist/style.css +1 -1
  539. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  540. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  541. package/dist/table-CIKyLUsy.js +163 -0
  542. package/dist/table-CIKyLUsy.js.map +1 -0
  543. package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
  544. package/dist/table-CrcLN9Io.js.map +1 -0
  545. package/dist/tabs-DwBJfjxX.js +190 -0
  546. package/dist/tabs-DwBJfjxX.js.map +1 -0
  547. package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
  548. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  549. package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
  550. package/dist/text.styles-g4He6UIW.js.map +1 -0
  551. package/dist/theme.css +16 -12
  552. package/dist/themes/green.css +24 -0
  553. package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
  554. package/dist/timelines-C_SBwHNP.js.map +1 -0
  555. package/dist/tone-recipes-CPoExcTE.js +70 -0
  556. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  557. package/dist/tooltip-CsfgrfS7.js +111 -0
  558. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  559. package/dist/track-recipes-CDcKmndW.js +10 -0
  560. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  561. package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
  562. package/dist/tree-BiKhg8AY.js.map +1 -0
  563. package/dist/typography/rich-text.js +1 -1
  564. package/dist/typography-DTRkE9zL.js +117 -0
  565. package/dist/typography-DTRkE9zL.js.map +1 -0
  566. package/dist/typography.js +2 -2
  567. package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
  568. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  569. package/dist/ui-provider.js +3 -3
  570. package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
  571. package/dist/upload-BO8-CLN6.js.map +1 -0
  572. package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
  573. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  574. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  575. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  576. package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
  577. package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
  578. package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
  579. package/dist/utils-l5LpDw2z.js.map +1 -0
  580. package/dist/value-inputs-TAYMX111.js +947 -0
  581. package/dist/value-inputs-TAYMX111.js.map +1 -0
  582. package/dist/value-typography-b8wpz1eX.js +116 -0
  583. package/dist/value-typography-b8wpz1eX.js.map +1 -0
  584. package/dist/workspace-DH0v0KcB.js +407 -0
  585. package/dist/workspace-DH0v0KcB.js.map +1 -0
  586. package/docs/consumer-skill/SKILL.md +62 -50
  587. package/docs/consumer-skill/examples/app-layout.tsx +3 -5
  588. package/docs/consumer-skill/examples/composition.tsx +3 -3
  589. package/docs/consumer-skill/examples/detail.tsx +59 -13
  590. package/docs/consumer-skill/examples/edit.tsx +2 -2
  591. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  592. package/docs/consumer-skill/examples/manifest.json +28 -6
  593. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  594. package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
  595. package/docs/consumer-skill/examples/website.tsx +1 -1
  596. package/docs/consumer-skill/references/agents-md.md +33 -0
  597. package/docs/consumer-skill/references/analytics.md +1 -1
  598. package/docs/consumer-skill/references/composition.md +139 -24
  599. package/docs/consumer-skill/references/design-contract.md +12 -3
  600. package/docs/consumer-skill/references/discovery.md +4 -0
  601. package/docs/consumer-skill/references/installation.md +33 -1
  602. package/docs/consumer-skill/references/integration.md +32 -1
  603. package/docs/consumer-skill/references/public-api.json +1051 -610
  604. package/docs/consumer-skill/references/review.md +44 -8
  605. package/docs/consumer-skill/references/theming.md +14 -4
  606. package/docs/consumer-skill/references/tokens.json +5 -2
  607. package/docs/consumer-skill/references/workflows.md +30 -9
  608. package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
  609. package/docs/consumer-skill/scripts/discovery.mjs +11 -3
  610. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  611. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  612. package/package.json +13 -3
  613. package/dist/accordion-BRTcsp8J.js +0 -205
  614. package/dist/accordion-BRTcsp8J.js.map +0 -1
  615. package/dist/action-menu-Drxw_vJk.js +0 -265
  616. package/dist/action-menu-Drxw_vJk.js.map +0 -1
  617. package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
  618. package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
  619. package/dist/attachment-DbjUWsP0.js +0 -244
  620. package/dist/attachment-DbjUWsP0.js.map +0 -1
  621. package/dist/auth-CAQcasMV.js.map +0 -1
  622. package/dist/avatar-Bu2HhitA.js.map +0 -1
  623. package/dist/badge-CzId1Wlm.js +0 -92
  624. package/dist/badge-CzId1Wlm.js.map +0 -1
  625. package/dist/breadcrumbs-BuYz5SDU.js +0 -128
  626. package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
  627. package/dist/button-BZDasD04.js +0 -651
  628. package/dist/button-BZDasD04.js.map +0 -1
  629. package/dist/button-BZyfTvwm.js.map +0 -1
  630. package/dist/buttons-D_6KJvEE.js +0 -99
  631. package/dist/buttons-D_6KJvEE.js.map +0 -1
  632. package/dist/cards-qGSErLw_.js.map +0 -1
  633. package/dist/chart-Bsc5BICK.js.map +0 -1
  634. package/dist/checkbox-BQNDjUCh.js +0 -34
  635. package/dist/checkbox-BQNDjUCh.js.map +0 -1
  636. package/dist/choice-inputs-Mk3iWbhr.js +0 -725
  637. package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
  638. package/dist/code-block-DzHKRybS.js +0 -183
  639. package/dist/code-block-DzHKRybS.js.map +0 -1
  640. package/dist/combobox-BFnbJJp3.js.map +0 -1
  641. package/dist/combobox-hozNwUcc.js +0 -847
  642. package/dist/combobox-hozNwUcc.js.map +0 -1
  643. package/dist/command-BnmSchli.js.map +0 -1
  644. package/dist/comments-u5L0OGip.js.map +0 -1
  645. package/dist/containers-DqB-bSYE.js.map +0 -1
  646. package/dist/data-display-Bihs9Ven.js +0 -1342
  647. package/dist/data-display-Bihs9Ven.js.map +0 -1
  648. package/dist/date-DOKhJPu7.js +0 -140
  649. package/dist/date-DOKhJPu7.js.map +0 -1
  650. package/dist/date-picker-DzP5HQq7.js +0 -1541
  651. package/dist/date-picker-DzP5HQq7.js.map +0 -1
  652. package/dist/date-pickers-BpgGz7S-.js +0 -196
  653. package/dist/date-pickers-BpgGz7S-.js.map +0 -1
  654. package/dist/display-CS6Hbk18.js.map +0 -1
  655. package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
  656. package/dist/feedback-CJkUAapr.js +0 -233
  657. package/dist/feedback-CJkUAapr.js.map +0 -1
  658. package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
  659. package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
  660. package/dist/field-state-recipes-DQQpiLWC.js +0 -11
  661. package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
  662. package/dist/filters-D6FF8L6s.js.map +0 -1
  663. package/dist/form-sizing-QP8aIRaW.js +0 -103
  664. package/dist/form-sizing-QP8aIRaW.js.map +0 -1
  665. package/dist/format-iamDSqs2.js +0 -110
  666. package/dist/format-iamDSqs2.js.map +0 -1
  667. package/dist/forms-B5NCbkSC.js.map +0 -1
  668. package/dist/forms-numeric-Crrm80Lm.js +0 -867
  669. package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
  670. package/dist/header-kxruN3RM.js.map +0 -1
  671. package/dist/icon-badge-Btc6pQrp.js +0 -53
  672. package/dist/icon-badge-Btc6pQrp.js.map +0 -1
  673. package/dist/input-SX9V0AL3.js +0 -255
  674. package/dist/input-SX9V0AL3.js.map +0 -1
  675. package/dist/item-DE4YnuJx.js +0 -258
  676. package/dist/item-DE4YnuJx.js.map +0 -1
  677. package/dist/media-gallery-DLp3HAz0.js +0 -201
  678. package/dist/media-gallery-DLp3HAz0.js.map +0 -1
  679. package/dist/mentions-Cl0Kt_Pd.js +0 -565
  680. package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
  681. package/dist/navigation-DnQSNMT0.js +0 -276
  682. package/dist/navigation-DnQSNMT0.js.map +0 -1
  683. package/dist/navigation-DyytsLRB.js +0 -265
  684. package/dist/navigation-DyytsLRB.js.map +0 -1
  685. package/dist/number-DasMFWEG.js +0 -269
  686. package/dist/number-DasMFWEG.js.map +0 -1
  687. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  688. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  689. package/dist/overlays-DUbs1KEi.js +0 -1011
  690. package/dist/overlays-DUbs1KEi.js.map +0 -1
  691. package/dist/page-hGmT4nWK.js.map +0 -1
  692. package/dist/page-header-D8nERkn5.js +0 -112
  693. package/dist/page-header-D8nERkn5.js.map +0 -1
  694. package/dist/popover-CghIYdQf.js.map +0 -1
  695. package/dist/primitives-C7ff0QaI.js +0 -337
  696. package/dist/primitives-C7ff0QaI.js.map +0 -1
  697. package/dist/progress-BroqrAyV.js.map +0 -1
  698. package/dist/rich-text-DlxDOtf4.js +0 -32
  699. package/dist/rich-text-DlxDOtf4.js.map +0 -1
  700. package/dist/rich-text-editor-BKyG7rWz.js +0 -574
  701. package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
  702. package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
  703. package/dist/rich-text-editor.recipes-B72Nfuze.js.map +0 -1
  704. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  705. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  706. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  707. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  708. package/dist/scroll-area-D-pIhEKl.js +0 -47
  709. package/dist/scroll-area-D-pIhEKl.js.map +0 -1
  710. package/dist/separator-BNIgG3au.js.map +0 -1
  711. package/dist/settings-DOTOzeZ2.js +0 -161
  712. package/dist/settings-DOTOzeZ2.js.map +0 -1
  713. package/dist/sheet-BFhrNehm.js +0 -205
  714. package/dist/sheet-BFhrNehm.js.map +0 -1
  715. package/dist/sidebar-CyR4XKwR.js.map +0 -1
  716. package/dist/sidebar-SvGJ0Zwi.js +0 -506
  717. package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
  718. package/dist/skeleton-3F0uhYn3.js.map +0 -1
  719. package/dist/smart-card-DjGVV2xr.js +0 -584
  720. package/dist/smart-card-DjGVV2xr.js.map +0 -1
  721. package/dist/spinner-Cpf7oRkF.js.map +0 -1
  722. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  723. package/dist/surface-recipes-Dd__PD-w.js +0 -28
  724. package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
  725. package/dist/table-CLtJTxoR.js +0 -147
  726. package/dist/table-CLtJTxoR.js.map +0 -1
  727. package/dist/table-CcRDZiLP.js.map +0 -1
  728. package/dist/tabs-BNgu7g0u.js +0 -188
  729. package/dist/tabs-BNgu7g0u.js.map +0 -1
  730. package/dist/text-inputs-DsR56TR-.js.map +0 -1
  731. package/dist/text.styles-Q4sGAIgA.js.map +0 -1
  732. package/dist/timelines-D1pkt3se.js.map +0 -1
  733. package/dist/track-recipes-LLPNVwFg.js +0 -10
  734. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  735. package/dist/tree-BtmYyMZV.js.map +0 -1
  736. package/dist/typography-BxQgiZyw.js +0 -96
  737. package/dist/typography-BxQgiZyw.js.map +0 -1
  738. package/dist/ui-provider-DRPn3qNl.js.map +0 -1
  739. package/dist/upload-CDbYw1WN.js.map +0 -1
  740. package/dist/upload-queue-CNd_hH_a.js.map +0 -1
  741. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  742. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  743. package/dist/utils-BvH9PSmq.js.map +0 -1
  744. package/dist/value-inputs-D0KCrfVC.js +0 -840
  745. package/dist/value-inputs-D0KCrfVC.js.map +0 -1
  746. package/dist/workspace-CcR8r-Nt.js +0 -395
  747. package/dist/workspace-CcR8r-Nt.js.map +0 -1
  748. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,22 +1,22 @@
1
1
  "use client";
2
- import { _ as e, c as t, s as n } from "./ui-provider-DRPn3qNl.js";
2
+ import { c as e, s as t, v as n } from "./ui-provider-1D_NSYzO.js";
3
3
  import { useStrings as r } from "./lib/strings.js";
4
- import { t as i } from "./utils-BvH9PSmq.js";
5
- import { a } from "./typography-BxQgiZyw.js";
6
- import { t as o } from "./button-BZDasD04.js";
7
- import { h as s, p as c, v as l } from "./smart-card-DjGVV2xr.js";
8
- import { a as u, i as d } from "./primitives-C7ff0QaI.js";
9
- import { t as f } from "./field-affordance-recipes-uKY4MsZ_.js";
10
- import { o as p } from "./item-DE4YnuJx.js";
11
- import { t as ee } from "./use-file-drop-target-BX7GnhoQ.js";
12
- import { a as te, s as ne } from "./upload-queue-CNd_hH_a.js";
13
- import { a as m, c as h, i as g, n as _, o as v, r as y, t as b } from "./attachment-DbjUWsP0.js";
14
- import * as x from "react";
15
- import S, { forwardRef as C, useCallback as w, useEffect as T, useId as re, useLayoutEffect as ie, useMemo as E, useRef as D, useState as O } from "react";
16
- import { jsx as k, jsxs as A } from "react/jsx-runtime";
17
- import { Camera as j, ImageIcon as ae, Trash2 as oe, Trash2Icon as M, TriangleAlert as se, UploadIcon as N, X as ce } from "lucide-react";
4
+ import { t as i } from "./utils-l5LpDw2z.js";
5
+ import { n as a } from "./buttons-SbIcm1HJ.js";
6
+ import { s as o } from "./typography-DTRkE9zL.js";
7
+ import { h as s, p as c, v as l } from "./smart-card-lFKxn5Hu.js";
8
+ import { a as u, i as d } from "./primitives-B-CkiEMU.js";
9
+ import { n as f } from "./field-affordance-recipes-qQeIf4lG.js";
10
+ import { o as p } from "./item-DEmDiTlD.js";
11
+ import { n as ee, t as m } from "./upload.recipes-BbxTqrCT.js";
12
+ import { a as te, s as ne } from "./upload-queue-EOC8g1gf.js";
13
+ import { a as h, c as g, i as _, n as v, o as y, r as b, t as x } from "./attachment-BtfhGm8i.js";
14
+ import * as S from "react";
15
+ import C, { forwardRef as w, useCallback as T, useEffect as E, useId as re, useLayoutEffect as ie, useMemo as D, useRef as O, useState as k } from "react";
16
+ import { jsx as A, jsxs as j } from "react/jsx-runtime";
17
+ import { Camera as M, ImageIcon as ae, Trash2Icon as N, TriangleAlert as oe, UploadIcon as P, X as se } from "lucide-react";
18
18
  //#region src/components/base/upload/file-upload.strings.ts
19
- var P = {
19
+ var F = {
20
20
  instruction: "Drag files here or click to browse",
21
21
  helper: "",
22
22
  browse: "Browse files",
@@ -35,17 +35,17 @@ var P = {
35
35
  };
36
36
  //#endregion
37
37
  //#region src/components/base/upload/file-upload.validation.ts
38
- function F(e) {
38
+ function I(e) {
39
39
  return `${e.name}\u0000${e.size}\u0000${e.type}\u0000${e.lastModified}`;
40
40
  }
41
- function I(e, t) {
41
+ function ce(e, t) {
42
42
  if (!t?.trim()) return !0;
43
43
  let n = e.name.toLowerCase(), r = e.type.toLowerCase();
44
44
  return t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean).some((e) => e.startsWith(".") ? n.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r === e);
45
45
  }
46
46
  function L(e, t) {
47
47
  let { accept: n, minSizeBytes: r, maxSizeBytes: i, validateFile: a, formatSize: o, strings: s } = t;
48
- if (!I(e, n)) return {
48
+ if (!ce(e, n)) return {
49
49
  file: e,
50
50
  code: "invalid-type",
51
51
  message: s.invalidType(e.name, n ?? "")
@@ -74,8 +74,8 @@ function L(e, t) {
74
74
  };
75
75
  }
76
76
  }
77
- function R({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes: i, maxFiles: a, append: o, validateFile: s, formatSize: c, strings: l }) {
78
- let u = o ? [...t] : [], d = new Set(u.map(F)), f = [], p = [];
77
+ function le({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes: i, maxFiles: a, append: o, validateFile: s, formatSize: c, strings: l }) {
78
+ let u = o ? [...t] : [], d = new Set(u.map(I)), f = [], p = [];
79
79
  for (let t of e) {
80
80
  let e = L(t, {
81
81
  accept: n,
@@ -89,7 +89,7 @@ function R({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes:
89
89
  p.push(e);
90
90
  continue;
91
91
  }
92
- let o = F(t);
92
+ let o = I(t);
93
93
  if (d.has(o)) {
94
94
  p.push({
95
95
  file: t,
@@ -116,7 +116,7 @@ function R({ incoming: e, current: t, accept: n, minSizeBytes: r, maxSizeBytes:
116
116
  }
117
117
  //#endregion
118
118
  //#region src/components/base/upload/file-upload.tsx
119
- function le(e) {
119
+ function R(e) {
120
120
  return Object.prototype.hasOwnProperty.call(e, "value");
121
121
  }
122
122
  function ue(e) {
@@ -130,26 +130,26 @@ function z(e, t, n) {
130
130
  }
131
131
  function fe({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, showReplace: c, onReplace: l, onRemove: u }) {
132
132
  let f = s.replaceFileAria(e.name), p = s.removeFileAria(e.name);
133
- return /* @__PURE__ */ A(b, {
133
+ return /* @__PURE__ */ j(x, {
134
134
  variant: "outline",
135
135
  size: r,
136
136
  className: "file-upload--file flex-nowrap bg-card text-card-foreground",
137
137
  children: [
138
- /* @__PURE__ */ k(v, {
138
+ /* @__PURE__ */ A(y, {
139
139
  variant: "icon",
140
140
  className: "file-upload--file-media self-center group-has-data-[slot=item-description]/item:self-center",
141
- children: /* @__PURE__ */ k(m, { name: e.name })
141
+ children: /* @__PURE__ */ A(h, { name: e.name })
142
142
  }),
143
- /* @__PURE__ */ A(y, {
143
+ /* @__PURE__ */ j(b, {
144
144
  className: "file-upload--file-content min-w-0",
145
- children: [/* @__PURE__ */ k(h, {
145
+ children: [/* @__PURE__ */ A(g, {
146
146
  className: "file-upload--file-name truncate",
147
147
  title: e.name,
148
148
  children: e.name
149
- }), /* @__PURE__ */ k(g, {
149
+ }), /* @__PURE__ */ A(_, {
150
150
  className: "file-upload--file-size",
151
151
  clamp: 1,
152
- children: /* @__PURE__ */ k(d, {
152
+ children: /* @__PURE__ */ A(d, {
153
153
  value: e.size,
154
154
  locale: i,
155
155
  size: "xs",
@@ -158,37 +158,37 @@ function fe({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
158
158
  })
159
159
  })]
160
160
  }),
161
- /* @__PURE__ */ A(_, {
161
+ /* @__PURE__ */ j(v, {
162
162
  className: "file-upload--actions gap-space-xs",
163
- children: [c && /* @__PURE__ */ k(o, {
163
+ children: [c && /* @__PURE__ */ A(a, {
164
164
  type: "button",
165
165
  tone: "secondary",
166
166
  buttonStyle: "ghost",
167
167
  size: "sm",
168
168
  iconOnly: !0,
169
- icon: N,
169
+ icon: P,
170
170
  "aria-label": f,
171
171
  title: f,
172
172
  disabled: n,
173
173
  onClick: l,
174
- children: /* @__PURE__ */ k(a, {
174
+ children: /* @__PURE__ */ A(o, {
175
175
  tag: "span",
176
176
  size: "inherit",
177
177
  className: "sr-only",
178
178
  children: s.replace
179
179
  })
180
- }), /* @__PURE__ */ k(o, {
180
+ }), /* @__PURE__ */ A(a, {
181
181
  type: "button",
182
182
  tone: "destructive",
183
183
  buttonStyle: "ghost",
184
184
  size: "sm",
185
185
  iconOnly: !0,
186
- icon: M,
186
+ icon: N,
187
187
  "aria-label": p,
188
188
  title: p,
189
189
  disabled: n,
190
190
  onClick: () => u(t),
191
- children: /* @__PURE__ */ k(a, {
191
+ children: /* @__PURE__ */ A(o, {
192
192
  tag: "span",
193
193
  size: "inherit",
194
194
  className: "sr-only",
@@ -200,155 +200,155 @@ function fe({ file: e, index: t, disabled: n, size: r, locale: i, strings: s, sh
200
200
  });
201
201
  }
202
202
  function B(d, f) {
203
- let { accept: m, disabled: h = !1, invalid: g = !1, size: _, minSizeBytes: v, maxSizeBytes: y, validateFile: b, onRejectedFiles: x, className: S, strings: C, multiple: T = !1, value: j, defaultValue: ae, onValueChange: oe, selectionMode: M, maxFiles: N, "aria-describedby": ce, "aria-invalid": F, ...I } = d, L = r(P, C), { defaultScale: B } = n(), { locale: V } = t(), H = e(_, B), U = le(d), [pe, me] = O(() => d.multiple ? [...d.defaultValue ?? []] : d.defaultValue ? [d.defaultValue] : []), [W, he] = O([]), G = D(null), K = D(null), q = D(!1), J = D(!1), ge = re(), Y = E(() => U ? d.multiple ? d.value ?? [] : d.value ? [d.value] : [] : pe, [
204
- U,
203
+ let { accept: h, disabled: g = !1, invalid: _ = !1, size: v, minSizeBytes: y, maxSizeBytes: b, validateFile: x, onRejectedFiles: S, className: C, strings: w, multiple: E = !1, value: M, defaultValue: ae, onValueChange: N, selectionMode: P, maxFiles: se, "aria-describedby": I, "aria-invalid": ce, ...L } = d, B = r(F, w), { defaultScale: V } = t(), { locale: H } = e(), U = n(v, V), W = R(d), [pe, me] = k(() => d.multiple ? [...d.defaultValue ?? []] : d.defaultValue ? [d.defaultValue] : []), [G, he] = k([]), K = O(null), q = O(null), J = O(!1), Y = O(!1), ge = re(), X = D(() => W ? d.multiple ? d.value ?? [] : d.value ? [d.value] : [] : pe, [
204
+ W,
205
205
  d.multiple,
206
206
  d.value,
207
207
  pe
208
208
  ]);
209
209
  ie(() => {
210
- if (!q.current) return;
211
- let e = K.current?.querySelector(".file-upload--actions button, .file-upload--dropzone input[type=file], .file-upload--dropzone button");
212
- e && (e.focus(), q.current = !1);
213
- }, [Y]);
214
- let X = d.multiple ? d : void 0, _e = T ? ue(X?.maxFiles) : 1, ve = T && (X?.selectionMode ?? "append") === "append", ye = `${I.id ?? `file-upload-${ge}`}-errors`, be = [ce, W.length > 0 ? ye : void 0].filter(Boolean).join(" ") || void 0, Z = g || W.length > 0, Q = w((e) => {
215
- if (U || me(e), d.multiple) d.onValueChange?.(e);
210
+ if (!J.current) return;
211
+ let e = q.current?.querySelector(".file-upload--actions button, .file-upload--dropzone input[type=file], .file-upload--dropzone button");
212
+ e && (e.focus(), J.current = !1);
213
+ }, [X]);
214
+ let _e = d.multiple ? d : void 0, ve = E ? ue(_e?.maxFiles) : 1, Z = E && (_e?.selectionMode ?? "append") === "append", ye = `${L.id ?? `file-upload-${ge}`}-errors`, be = [I, G.length > 0 ? ye : void 0].filter(Boolean).join(" ") || void 0, Q = _ || G.length > 0, $ = T((e) => {
215
+ if (W || me(e), d.multiple) d.onValueChange?.(e);
216
216
  else {
217
217
  let t = e[0];
218
218
  d.onValueChange?.(t);
219
219
  }
220
- }, [U, d]), xe = w((e) => u(e, { locale: V }) ?? `${e} B`, [V]), $ = w((e) => {
221
- if (h || e.length === 0) return !1;
222
- let t = R({
220
+ }, [W, d]), xe = T((e) => u(e, { locale: H }) ?? `${e} B`, [H]), Se = T((e) => {
221
+ if (g || e.length === 0) return !1;
222
+ let t = le({
223
223
  incoming: e,
224
- current: Y,
225
- accept: m,
226
- minSizeBytes: v,
227
- maxSizeBytes: y,
228
- maxFiles: _e,
229
- append: ve,
230
- validateFile: b,
224
+ current: X,
225
+ accept: h,
226
+ minSizeBytes: y,
227
+ maxSizeBytes: b,
228
+ maxFiles: ve,
229
+ append: Z,
230
+ validateFile: x,
231
231
  formatSize: xe,
232
- strings: L
232
+ strings: B
233
233
  });
234
- return he(t.rejections), t.rejections.length > 0 && x?.(t.rejections), t.accepted.length !== 0 && (q.current = !T && (J.current || !!K.current?.contains(document.activeElement)), J.current = !1, Q(t.nextFiles), t.rejections.length === 0);
234
+ return he(t.rejections), t.rejections.length > 0 && S?.(t.rejections), t.accepted.length !== 0 && (J.current = !E && (Y.current || !!q.current?.contains(document.activeElement)), Y.current = !1, $(t.nextFiles), t.rejections.length === 0);
235
235
  }, [
236
- m,
237
- ve,
238
- Q,
239
236
  h,
240
- T,
241
- Y,
237
+ Z,
238
+ $,
239
+ g,
240
+ E,
241
+ X,
242
242
  xe,
243
- _e,
243
+ ve,
244
+ b,
244
245
  y,
245
- v,
246
- x,
247
- L,
248
- b
249
- ]), Se = w(() => {
250
- G.current && (G.current.value = "");
251
- }, []), Ce = w((e) => {
252
- h || (he([]), Se(), q.current = !!K.current?.contains(document.activeElement), Q(Y.filter((t, n) => n !== e)));
246
+ S,
247
+ B,
248
+ x
249
+ ]), Ce = T(() => {
250
+ K.current && (K.current.value = "");
251
+ }, []), we = T((e) => {
252
+ g || (he([]), Ce(), J.current = !!q.current?.contains(document.activeElement), $(X.filter((t, n) => n !== e)));
253
253
  }, [
254
- Se,
255
- Q,
256
- h,
257
- Y
258
- ]), we = w(() => {
259
- h || (J.current = !!K.current?.contains(document.activeElement), G.current?.click());
260
- }, [h]), { isDragging: Te, dropTargetProps: Ee } = ee({
261
- disabled: h,
262
- onFiles: $
263
- }), De = {
264
- ...I,
265
- accept: m,
266
- multiple: T,
267
- disabled: h,
254
+ Ce,
255
+ $,
256
+ g,
257
+ X
258
+ ]), Te = T(() => {
259
+ g || (Y.current = !!q.current?.contains(document.activeElement), K.current?.click());
260
+ }, [g]), { isDragging: Ee, dropTargetProps: De } = ee({
261
+ disabled: g,
262
+ onFiles: Se
263
+ }), Oe = {
264
+ ...L,
265
+ accept: h,
266
+ multiple: E,
267
+ disabled: g,
268
268
  "aria-describedby": be,
269
- "aria-invalid": Z ? !0 : F
270
- }, Oe = /* @__PURE__ */ k(te, {
271
- ref: (e) => z(e, G, f),
272
- onDrop: $,
273
- accept: m,
274
- multiple: T,
275
- disabled: h,
276
- invalid: Z,
277
- size: H,
269
+ "aria-invalid": Q ? !0 : ce
270
+ }, ke = /* @__PURE__ */ A(te, {
271
+ ref: (e) => z(e, K, f),
272
+ onDrop: Se,
273
+ accept: h,
274
+ multiple: E,
275
+ disabled: g,
276
+ invalid: Q,
277
+ size: U,
278
278
  className: "file-upload--dropzone",
279
- inputProps: De,
279
+ inputProps: Oe,
280
280
  strings: {
281
- instruction: L.instruction,
282
- helper: L.helper,
283
- dragOver: L.dragOver
281
+ instruction: B.instruction,
282
+ helper: B.helper,
283
+ dragOver: B.dragOver
284
284
  },
285
- children: /* @__PURE__ */ k(o, {
285
+ children: /* @__PURE__ */ A(a, {
286
286
  type: "button",
287
287
  tone: "secondary",
288
288
  buttonStyle: "outline",
289
- size: H,
290
- disabled: h,
291
- onClick: we,
292
- children: L.browse
289
+ size: U,
290
+ disabled: g,
291
+ onClick: Te,
292
+ children: B.browse
293
293
  })
294
294
  });
295
- return /* @__PURE__ */ A("div", {
296
- ref: K,
297
- "data-disabled": h || void 0,
298
- "data-invalid": Z || void 0,
299
- className: i("file-upload--component grid gap-space-md", S),
295
+ return /* @__PURE__ */ j("div", {
296
+ ref: q,
297
+ "data-disabled": g || void 0,
298
+ "data-invalid": Q || void 0,
299
+ className: i("file-upload--component grid gap-space-md", C),
300
300
  children: [
301
- (T || Y.length === 0) && Oe,
302
- !T && Y[0] && /* @__PURE__ */ A("div", {
303
- ...Ee,
304
- "data-dragging": Te || void 0,
305
- "data-invalid": Z || void 0,
306
- className: i("file-upload--selected rounded-radius transition-shadow", Z && "[&_.file-upload--file]:border-destructive", !h && Te && (Z ? "ring-2 ring-destructive/50 ring-offset-2" : "ring-2 ring-primary/50 ring-offset-2")),
307
- children: [/* @__PURE__ */ k(ne, {
308
- ...De,
309
- ref: (e) => z(e, G, f),
301
+ (E || X.length === 0) && ke,
302
+ !E && X[0] && /* @__PURE__ */ j("div", {
303
+ ...De,
304
+ "data-dragging": Ee || void 0,
305
+ "data-invalid": Q || void 0,
306
+ className: i("file-upload--selected rounded-radius transition-shadow", Q && "[&_.file-upload--file]:border-destructive", !g && Ee && (Q ? m.invalidDraggingRing : m.draggingRing)),
307
+ children: [/* @__PURE__ */ A(ne, {
308
+ ...Oe,
309
+ ref: (e) => z(e, K, f),
310
310
  tabIndex: -1,
311
311
  className: "file-upload--input",
312
- onFiles: $
313
- }), /* @__PURE__ */ k(fe, {
314
- file: Y[0],
312
+ onFiles: Se
313
+ }), /* @__PURE__ */ A(fe, {
314
+ file: X[0],
315
315
  index: 0,
316
- disabled: h,
317
- size: H,
318
- locale: V,
319
- strings: L,
316
+ disabled: g,
317
+ size: U,
318
+ locale: H,
319
+ strings: B,
320
320
  showReplace: !0,
321
- onReplace: we,
322
- onRemove: Ce
321
+ onReplace: Te,
322
+ onRemove: we
323
323
  })]
324
324
  }),
325
- T && Y.length > 0 && /* @__PURE__ */ k(p, {
325
+ E && X.length > 0 && /* @__PURE__ */ A(p, {
326
326
  className: "file-upload--files",
327
- children: Y.map((e, t) => /* @__PURE__ */ k(fe, {
327
+ children: X.map((e, t) => /* @__PURE__ */ A(fe, {
328
328
  file: e,
329
329
  index: t,
330
- disabled: h,
331
- size: H,
332
- locale: V,
333
- strings: L,
330
+ disabled: g,
331
+ size: U,
332
+ locale: H,
333
+ strings: B,
334
334
  showReplace: !1,
335
- onReplace: we,
336
- onRemove: Ce
335
+ onReplace: Te,
336
+ onRemove: we
337
337
  }, de(e, t)))
338
338
  }),
339
- W.length > 0 && /* @__PURE__ */ A(c, {
339
+ G.length > 0 && /* @__PURE__ */ j(c, {
340
340
  id: ye,
341
341
  tone: "destructive",
342
342
  "aria-live": "polite",
343
- className: i("file-upload--errors", H === "sm" && "p-surface-xs"),
343
+ className: i("file-upload--errors", U === "sm" && "p-surface-xs"),
344
344
  children: [
345
- /* @__PURE__ */ k(se, { "aria-hidden": "true" }),
346
- /* @__PURE__ */ k(l, { children: L.errorsHeading }),
347
- /* @__PURE__ */ k(s, { children: /* @__PURE__ */ k("ul", {
345
+ /* @__PURE__ */ A(oe, { "aria-hidden": "true" }),
346
+ /* @__PURE__ */ A(l, { children: B.errorsHeading }),
347
+ /* @__PURE__ */ A(s, { children: /* @__PURE__ */ A("ul", {
348
348
  className: "m-0 p-0 list-none grid gap-space-2xs",
349
- children: W.map((e, t) => /* @__PURE__ */ k("li", {
349
+ children: G.map((e, t) => /* @__PURE__ */ A("li", {
350
350
  className: "file-upload--error",
351
- children: /* @__PURE__ */ k(a, {
351
+ children: /* @__PURE__ */ A(o, {
352
352
  tag: "span",
353
353
  size: "xs",
354
354
  type: "error",
@@ -361,7 +361,7 @@ function B(d, f) {
361
361
  ]
362
362
  });
363
363
  }
364
- var V = C(B);
364
+ var V = w(B);
365
365
  V.displayName = "FileUpload";
366
366
  //#endregion
367
367
  //#region src/hooks/use-files.ts
@@ -377,30 +377,30 @@ function U(e) {
377
377
  let t = Math.min(Math.floor(Math.log(e) / Math.log(1024)), H.length - 1), n = e / 1024 ** t;
378
378
  return `${t === 0 ? n.toFixed(0) : Number(n.toFixed(1)).toString()} ${H[t]}`;
379
379
  }
380
- var pe = 0;
381
- function me() {
382
- return `${Date.now().toString(36)}-${(pe++).toString(36)}`;
380
+ var W = 0;
381
+ function pe() {
382
+ return `${Date.now().toString(36)}-${(W++).toString(36)}`;
383
383
  }
384
- function W(e) {
384
+ function me(e) {
385
385
  return e.name.split(".").pop()?.toLowerCase() ?? "";
386
386
  }
387
- function he(e) {
387
+ function G(e) {
388
388
  return `${e.name}\u0000${e.size}\u0000${e.type}\u0000${e.lastModified}`;
389
389
  }
390
- function G(e) {
390
+ function he(e) {
391
391
  return {
392
- id: me(),
392
+ id: pe(),
393
393
  file: e,
394
394
  name: e.name,
395
395
  size: e.size,
396
396
  formattedSize: U(e.size),
397
397
  type: e.type,
398
- extension: W(e),
398
+ extension: me(e),
399
399
  lastModified: e.lastModified
400
400
  };
401
401
  }
402
402
  function K(e, t) {
403
- let n = W(e);
403
+ let n = me(e);
404
404
  if (t?.minSize !== void 0 && e.size < t.minSize) return {
405
405
  file: e,
406
406
  code: "too-small",
@@ -434,10 +434,10 @@ function q(e) {
434
434
  return Object.fromEntries(e.map((e) => [e.file.name, e]));
435
435
  }
436
436
  function J(e) {
437
- let [t, n] = O([]), r = D([]), [i, a] = O([]), o = w(U, []), s = w((t, i) => {
438
- let o = Array.isArray(t) ? t : Array.from(t), s = r.current, c = i ? [] : [...s], l = new Set(c.map((e) => he(e.file))), u = [], d = [];
437
+ let [t, n] = k([]), r = O([]), [i, a] = k([]), o = T(U, []), s = T((t, i) => {
438
+ let o = Array.isArray(t) ? t : Array.from(t), s = r.current, c = i ? [] : [...s], l = new Set(c.map((e) => G(e.file))), u = [], d = [];
439
439
  for (let t of o) {
440
- let n = he(t);
440
+ let n = G(t);
441
441
  if (l.has(n)) {
442
442
  d.push({
443
443
  file: t,
@@ -459,7 +459,7 @@ function J(e) {
459
459
  });
460
460
  continue;
461
461
  }
462
- let i = G(t);
462
+ let i = he(t);
463
463
  u.push(i), c.push(i), l.add(n);
464
464
  }
465
465
  return i && u.length === 0 && d.length > 0 && (c = s), r.current = c, n(c), a(d), {
@@ -470,13 +470,13 @@ function J(e) {
470
470
  }, [e]);
471
471
  return {
472
472
  files: t,
473
- addFiles: w((e) => s(e, !1), [s]),
474
- setFiles: w((e) => s(e, !0), [s]),
475
- remove: w((e) => {
473
+ addFiles: T((e) => s(e, !1), [s]),
474
+ setFiles: T((e) => s(e, !0), [s]),
475
+ remove: T((e) => {
476
476
  let t = r.current.filter((t) => t.id !== e);
477
477
  r.current = t, n(t);
478
478
  }, []),
479
- removeAll: w(() => {
479
+ removeAll: T(() => {
480
480
  r.current = [], n([]), a([]);
481
481
  }, []),
482
482
  formatSize: o,
@@ -486,7 +486,7 @@ function J(e) {
486
486
  }
487
487
  //#endregion
488
488
  //#region src/components/base/upload/image-upload.tsx
489
- var ge = 2, Y = {
489
+ var Y = 2, ge = {
490
490
  square: "aspect-square",
491
491
  standard: "aspect-[4/3]",
492
492
  widescreen: "aspect-[16/9]",
@@ -518,8 +518,8 @@ function _e(e, t, n) {
518
518
  case "custom": return a.customMessage ?? t.customValidationFailed(r.name);
519
519
  }
520
520
  }
521
- function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value: n, onValueChange: s, disabled: c, initialPreviewUrl: l, aspectRatio: u = "square", fit: d = "cover", maxWidth: f, layout: p = "stacked", invalid: te, strings: ne }, m) {
522
- let h = r(X, ne), g = re(), _ = D(null), v = E(() => {
521
+ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value: n, onValueChange: s, disabled: c, initialPreviewUrl: l, aspectRatio: u = "square", fit: d = "cover", maxWidth: f, layout: p = "stacked", invalid: te, strings: ne }, h) {
522
+ let g = r(X, ne), _ = re(), v = O(null), y = D(() => {
523
523
  if (!e) return [
524
524
  "png",
525
525
  "jpg",
@@ -537,167 +537,168 @@ function ve({ accept: e = ".png,.jpg,.jpeg,.gif,.svg", multiple: t = !1, value:
537
537
  return e.toLowerCase();
538
538
  }).filter((e) => !!e);
539
539
  if (t.length !== 0) return Array.from(new Set(t));
540
- }, [e]), { files: y, setFiles: b, remove: x, removeAll: S, formatSize: C, rejections: ie } = J(E(() => ({
540
+ }, [e]), { files: b, setFiles: x, remove: S, removeAll: C, formatSize: w, rejections: ie } = J(D(() => ({
541
541
  maxFiles: t ? void 0 : 1,
542
- maxSize: ge * 1024 * 1024,
543
- allowedExtensions: v
544
- }), [t, v]));
545
- T(() => {
546
- n ? b([n]) : (S(), _.current && (_.current.value = ""));
542
+ maxSize: Y * 1024 * 1024,
543
+ allowedExtensions: y
544
+ }), [t, y]));
545
+ E(() => {
546
+ n ? x([n]) : (C(), v.current && (v.current.value = ""));
547
547
  }, [
548
548
  n,
549
- b,
550
- S
549
+ x,
550
+ C
551
551
  ]);
552
- let j = y[0], M = j ? h.change : h.select, [se, N] = O(void 0), ce = E(() => !v || v.length === 0 ? null : v.map((e) => e.toUpperCase()).join(", "), [v]);
553
- T(() => {
554
- let e = j?.file ?? n;
552
+ let M = b[0], N = M ? g.change : g.select, [oe, P] = k(void 0), se = D(() => !y || y.length === 0 ? null : y.map((e) => e.toUpperCase()).join(", "), [y]);
553
+ E(() => {
554
+ let e = M?.file ?? n;
555
555
  if (!e) {
556
- N(void 0);
556
+ P(void 0);
557
557
  return;
558
558
  }
559
559
  let t = URL.createObjectURL(e);
560
- return N(t), () => URL.revokeObjectURL(t);
561
- }, [j, n]);
562
- let P = se ?? l, F = !!P, I = j?.name ?? h.previewAlt ?? X.previewAlt, L = Y[u] ?? Y.square, R = d === "contain" ? "object-contain p-space-sm" : "object-cover", le = f ? typeof f == "number" ? `${f}px` : f : "240px", ue = p === "inline" ? void 0 : { maxWidth: le }, de = p === "inline" ? {
563
- maxWidth: f ? le : "185px",
560
+ return P(t), () => URL.revokeObjectURL(t);
561
+ }, [M, n]);
562
+ let F = oe ?? l, I = !!F, ce = M?.name ?? g.previewAlt ?? X.previewAlt, L = ge[u] ?? ge.square, le = d === "contain" ? "object-contain p-space-sm" : "object-cover", R = f ? typeof f == "number" ? `${f}px` : f : "240px", ue = p === "inline" ? void 0 : { maxWidth: R }, de = p === "inline" ? {
563
+ maxWidth: f ? R : "185px",
564
564
  width: "100%"
565
- } : void 0, z = w((e) => {
565
+ } : void 0, z = T((e) => {
566
566
  if (c || e.length === 0) return;
567
- let t = b(e).accepted[0]?.file;
567
+ let t = x(e).accepted[0]?.file;
568
568
  t && s?.(t);
569
569
  }, [
570
570
  c,
571
- b,
571
+ x,
572
572
  s
573
- ]), fe = w((e) => {
573
+ ]), fe = T((e) => {
574
574
  z(Array.from(e.target.files ?? []));
575
575
  }, [z]), { isDragging: B, dropTargetProps: V } = ee({
576
576
  disabled: c,
577
577
  onFiles: z
578
- }), H = w(() => {
579
- c || _.current?.click();
580
- }, [c]), U = w(() => {
581
- j && x(j.id), s?.(void 0), _.current && (_.current.value = "");
578
+ }), H = T(() => {
579
+ c || v.current?.click();
580
+ }, [c]), U = T(() => {
581
+ M && S(M.id), s?.(void 0), v.current && (v.current.value = "");
582
582
  }, [
583
- j,
584
- x,
583
+ M,
584
+ S,
585
585
  s
586
586
  ]);
587
- return /* @__PURE__ */ A("div", {
587
+ return /* @__PURE__ */ j("div", {
588
588
  className: i("image-upload--component", "grid gap-space-md"),
589
589
  style: ue,
590
590
  children: [
591
- /* @__PURE__ */ k("input", {
591
+ /* @__PURE__ */ A("input", {
592
592
  ref: (e) => {
593
- _.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
593
+ v.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
594
594
  },
595
- id: g,
595
+ id: _,
596
596
  type: "file",
597
597
  className: "sr-only",
598
- "aria-label": M,
598
+ tabIndex: -1,
599
+ "aria-label": N,
599
600
  accept: e,
600
601
  multiple: t,
601
602
  disabled: c,
602
603
  onChange: fe
603
604
  }),
604
- /* @__PURE__ */ A("div", {
605
+ /* @__PURE__ */ j("div", {
605
606
  className: i(p === "inline" ? "flex flex-wrap items-start gap-space-xl" : "grid gap-space-md"),
606
- children: [/* @__PURE__ */ k("div", {
607
+ children: [/* @__PURE__ */ A("div", {
607
608
  ...V,
608
609
  "data-dragging": B || void 0,
609
- className: i("relative overflow-hidden rounded-radius border transition-colors", p === "inline" ? "flex-shrink-0 w-full" : "w-full", L, !c && B && "ring-2 ring-ring", F ? "border-border bg-muted/20" : i("border-dashed bg-background text-muted-foreground ", te ? "border-destructive" : "border-border")),
610
+ className: i("relative overflow-hidden rounded-radius border transition-colors", p === "inline" ? "flex-shrink-0 w-full" : "w-full", L, I ? "border-border bg-muted" : i("border-dashed bg-background text-muted-foreground", m.idle), te && m.invalid, !c && B && m.dragging),
610
611
  style: de,
611
- children: F && P ? /* @__PURE__ */ k("img", {
612
- src: P,
613
- alt: I,
614
- className: i("absolute inset-0 box-border h-full w-full", R)
615
- }) : /* @__PURE__ */ k("div", {
612
+ children: I && F ? /* @__PURE__ */ A("img", {
613
+ src: F,
614
+ alt: ce,
615
+ className: i("absolute inset-0 box-border h-full w-full", le)
616
+ }) : /* @__PURE__ */ A("div", {
616
617
  className: "absolute inset-0 flex items-center justify-center",
617
- children: /* @__PURE__ */ k(ae, {
618
+ children: /* @__PURE__ */ A(ae, {
618
619
  "aria-hidden": !0,
619
620
  className: "size-icon-lg"
620
621
  })
621
622
  })
622
- }), /* @__PURE__ */ A("div", {
623
+ }), /* @__PURE__ */ j("div", {
623
624
  className: i("grid gap-space-sm", p === "inline" && "flex-1 min-w-0 basis-40"),
624
625
  children: [
625
- /* @__PURE__ */ A("div", {
626
+ /* @__PURE__ */ j("div", {
626
627
  className: "flex flex-wrap items-center gap-space-md",
627
- children: [/* @__PURE__ */ k(o, {
628
+ children: [/* @__PURE__ */ A(a, {
628
629
  type: "button",
629
630
  tone: "secondary",
630
631
  buttonStyle: "outline",
631
632
  onClick: H,
632
633
  disabled: c,
633
- children: M
634
- }), !j && !!F && /* @__PURE__ */ k(a, {
634
+ children: N
635
+ }), !M && !!I && /* @__PURE__ */ A(o, {
635
636
  size: "xs",
636
637
  type: "secondary",
637
- children: h.keepCurrent
638
+ children: g.keepCurrent
638
639
  })]
639
640
  }),
640
- !!ce && /* @__PURE__ */ k(a, {
641
+ !!se && /* @__PURE__ */ A(o, {
641
642
  size: "xs",
642
643
  type: "secondary",
643
- children: h.supportsTemplate.replace("{ext}", ce).replace("{size}", String(ge))
644
+ children: g.supportsTemplate.replace("{ext}", se).replace("{size}", String(Y))
644
645
  }),
645
- !!j && /* @__PURE__ */ A("div", {
646
+ !!M && /* @__PURE__ */ j("div", {
646
647
  className: "grid gap-space-2xs",
647
648
  children: [
648
- /* @__PURE__ */ k(a, {
649
+ /* @__PURE__ */ A(o, {
649
650
  weight: "medium",
650
- title: j.name,
651
+ title: M.name,
651
652
  className: "truncate",
652
- children: j.name
653
+ children: M.name
653
654
  }),
654
- /* @__PURE__ */ k(a, {
655
+ /* @__PURE__ */ A(o, {
655
656
  size: "xs",
656
657
  type: "secondary",
657
- children: j.formattedSize
658
+ children: M.formattedSize
658
659
  }),
659
- !!t && y.length > 1 && /* @__PURE__ */ k(a, {
660
+ !!t && b.length > 1 && /* @__PURE__ */ A(o, {
660
661
  size: "xs",
661
662
  type: "secondary",
662
- children: h.moreFiles(y.length - 1)
663
+ children: g.moreFiles(b.length - 1)
663
664
  }),
664
- /* @__PURE__ */ k(o, {
665
+ /* @__PURE__ */ A(a, {
665
666
  type: "button",
666
667
  tone: "destructive",
667
668
  buttonStyle: "ghost",
668
669
  size: "sm",
669
- icon: oe,
670
670
  onClick: U,
671
- children: h.remove
671
+ className: "justify-self-start",
672
+ children: g.remove
672
673
  })
673
674
  ]
674
675
  }),
675
- !j && !F && /* @__PURE__ */ k(a, {
676
+ !M && !I && /* @__PURE__ */ A(o, {
676
677
  size: "xs",
677
678
  type: "secondary",
678
- children: h.noSelection
679
+ children: g.noSelection
679
680
  })
680
681
  ]
681
682
  })]
682
683
  }),
683
- ie.length > 0 && /* @__PURE__ */ k("div", {
684
+ ie.length > 0 && /* @__PURE__ */ A("div", {
684
685
  className: "image-upload--errors grid gap-space-2xs",
685
686
  role: "alert",
686
687
  "aria-live": "polite",
687
- children: ie.map((e, t) => /* @__PURE__ */ k(a, {
688
+ children: ie.map((e, t) => /* @__PURE__ */ A(o, {
688
689
  size: "xs",
689
690
  type: "error",
690
- children: _e(e, h, C)
691
+ children: _e(e, g, w)
691
692
  }, `${e.file.name}-${e.code}-${t}`))
692
693
  })
693
694
  ]
694
695
  });
695
696
  }
696
- var ye = S.forwardRef(ve);
697
- ye.displayName = "ImageUpload";
697
+ var Z = C.forwardRef(ve);
698
+ Z.displayName = "ImageUpload";
698
699
  //#endregion
699
700
  //#region src/components/base/upload/avatar-upload.tsx
700
- var be = {
701
+ var ye = {
701
702
  change: "Change photo",
702
703
  remove: "Remove photo",
703
704
  hint: "Click or drop an image",
@@ -709,7 +710,7 @@ var be = {
709
710
  duplicate: (e) => `${e} is already selected.`,
710
711
  customValidationFailed: (e) => `${e} did not pass validation.`
711
712
  };
712
- function Z(e, t, n) {
713
+ function be(e, t, n) {
713
714
  let { file: r, code: i, details: a } = e;
714
715
  switch (i) {
715
716
  case "invalid-type": return t.invalidType(r.name, a.extension ?? "");
@@ -737,116 +738,116 @@ var Q = {
737
738
  remove: "size-action-lg"
738
739
  }
739
740
  };
740
- function xe({ value: t, onValueChange: o, initialPreviewUrl: s, accept: c = ".png,.jpg,.jpeg,.gif,.webp", disabled: l = !1, invalid: u = !1, size: d, className: p, strings: te, initials: ne }, m) {
741
- let { defaultScale: h } = n(), g = e(d, h), _ = r(be, te), v = re(), y = D(null), b = Q[g], { files: x, setFiles: S, removeAll: C, formatSize: ie, rejections: ae } = J({
741
+ function $({ value: e, onValueChange: a, initialPreviewUrl: s, accept: c = ".png,.jpg,.jpeg,.gif,.webp", disabled: l = !1, invalid: u = !1, size: d, className: p, strings: te, initials: ne }, h) {
742
+ let { defaultScale: g } = t(), _ = n(d, g), v = r(ye, te), y = re(), b = O(null), x = Q[_], { files: S, setFiles: C, removeAll: w, formatSize: ie, rejections: ae } = J({
742
743
  maxFiles: 1,
743
- allowedExtensions: E(() => c.split(",").map((e) => e.trim().replace(/^\./, "").toLowerCase()).filter(Boolean), [c])
744
+ allowedExtensions: D(() => c.split(",").map((e) => e.trim().replace(/^\./, "").toLowerCase()).filter(Boolean), [c])
744
745
  });
745
- T(() => {
746
- t ? S([t]) : C();
747
- }, [t]);
748
- let oe = x[0], [M, se] = O(void 0);
749
- T(() => {
750
- let e = oe?.file ?? t;
751
- if (!e) {
752
- se(void 0);
746
+ E(() => {
747
+ e ? C([e]) : w();
748
+ }, [e]);
749
+ let N = S[0], [oe, P] = k(void 0);
750
+ E(() => {
751
+ let t = N?.file ?? e;
752
+ if (!t) {
753
+ P(void 0);
753
754
  return;
754
755
  }
755
- let n = URL.createObjectURL(e);
756
- return se(n), () => URL.revokeObjectURL(n);
757
- }, [oe, t]);
758
- let N = M ?? s, P = !!N, F = w((e) => {
756
+ let n = URL.createObjectURL(t);
757
+ return P(n), () => URL.revokeObjectURL(n);
758
+ }, [N, e]);
759
+ let F = oe ?? s, I = !!F, ce = T((e) => {
759
760
  let t = e.target.files;
760
761
  if (!t || t.length === 0) return;
761
- let n = S(t).accepted[0]?.file;
762
- n && o?.(n), y.current && (y.current.value = "");
763
- }, [o, S]), I = w(() => {
764
- C(), o?.(void 0), y.current && (y.current.value = "");
765
- }, [o, C]), L = w((e) => {
766
- let t = S(e).accepted[0]?.file;
767
- t && o?.(t);
768
- }, [o, S]), { isDragging: R, dropTargetProps: le } = ee({
762
+ let n = C(t).accepted[0]?.file;
763
+ n && a?.(n), b.current && (b.current.value = "");
764
+ }, [a, C]), L = T(() => {
765
+ w(), a?.(void 0), b.current && (b.current.value = "");
766
+ }, [a, w]), le = T((e) => {
767
+ let t = C(e).accepted[0]?.file;
768
+ t && a?.(t);
769
+ }, [a, C]), { isDragging: R, dropTargetProps: ue } = ee({
769
770
  disabled: l,
770
- onFiles: L
771
+ onFiles: le
771
772
  });
772
- return /* @__PURE__ */ A("div", {
773
- className: i("avatar-upload--component", "inline-flex flex-col items-center gap-space-md", p),
773
+ return /* @__PURE__ */ j("div", {
774
+ className: i("avatar-upload--component", "inline-flex w-fit flex-col items-center gap-space-md self-start", p),
774
775
  children: [
775
- /* @__PURE__ */ A("div", {
776
- ...le,
777
- className: i("group relative flex shrink-0 items-center justify-center rounded-full", "border border-dashed transition-colors duration-150 outline-none", "focus-within:ring-2 focus-within:ring-ring", P ? "border-border/60 bg-muted/20" : i("bg-muted/30 hover:border-primary hover:bg-primary/5", u ? "border-destructive" : "border-muted-foreground/40"), l && "cursor-not-allowed opacity-50", !l && R && "border-primary bg-primary/10", b.box),
776
+ /* @__PURE__ */ j("div", {
777
+ ...ue,
778
+ className: i("group relative flex shrink-0 items-center justify-center rounded-full", "border transition-colors duration-150 outline-none", "has-[input:focus-visible]:ring-3", I ? "border-border bg-muted" : i("border-dashed bg-muted", !l && m.hover, m.idle), u ? i(m.invalid, m.focus.input.invalid) : m.focus.input.valid, l && "cursor-not-allowed opacity-50", !l && R && m.dragging, x.box),
778
779
  children: [
779
- /* @__PURE__ */ k("input", {
780
- id: v,
780
+ /* @__PURE__ */ A("input", {
781
+ id: y,
781
782
  ref: (e) => {
782
- y.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
783
+ b.current = e, typeof h == "function" ? h(e) : h && (h.current = e);
783
784
  },
784
785
  type: "file",
785
786
  className: "absolute inset-0 z-10 size-full cursor-pointer opacity-0 disabled:cursor-not-allowed",
786
- "aria-label": _.change,
787
+ "aria-label": v.change,
787
788
  "aria-invalid": u || void 0,
788
789
  accept: c,
789
790
  disabled: l,
790
- onChange: F
791
+ onChange: ce
791
792
  }),
792
- /* @__PURE__ */ A("div", {
793
+ /* @__PURE__ */ j("div", {
793
794
  className: "pointer-events-none absolute inset-0 flex items-center justify-center overflow-hidden rounded-full",
794
- children: [P && N ? /* @__PURE__ */ k("img", {
795
- src: N,
796
- alt: _.change,
795
+ children: [I && F ? /* @__PURE__ */ A("img", {
796
+ src: F,
797
+ alt: v.change,
797
798
  className: "absolute inset-0 size-full object-cover"
798
- }) : ne ? /* @__PURE__ */ k(a, {
799
- size: g === "sm" ? "sm" : g === "lg" ? "lg" : "base",
800
- weight: "bold",
801
- className: "leading-none",
799
+ }) : ne ? /* @__PURE__ */ A(o, {
800
+ size: _ === "sm" ? "sm" : _ === "lg" ? "lg" : "base",
801
+ weight: "medium",
802
+ lineHeight: "none",
802
803
  children: ne
803
- }) : /* @__PURE__ */ k(j, {
804
- className: i(b.icon, "text-muted-foreground"),
804
+ }) : /* @__PURE__ */ A(M, {
805
+ className: i(x.icon, "text-muted-foreground"),
805
806
  "aria-hidden": "true"
806
- }), !l && P && /* @__PURE__ */ k("div", {
807
- className: "absolute inset-0 hidden items-center justify-center bg-foreground/50 text-background backdrop-blur-[1px] group-hover:flex",
807
+ }), !l && I && /* @__PURE__ */ A("div", {
808
+ className: "absolute inset-0 hidden items-center justify-center bg-inverse-background/60 text-inverse-foreground group-hover:flex",
808
809
  "aria-hidden": "true",
809
- children: /* @__PURE__ */ k(j, { className: b.icon })
810
+ children: /* @__PURE__ */ A(M, { className: x.icon })
810
811
  })]
811
812
  }),
812
- !l && P && /* @__PURE__ */ k("button", {
813
+ !l && I && /* @__PURE__ */ A("button", {
813
814
  type: "button",
814
- "aria-label": _.remove,
815
+ "aria-label": v.remove,
815
816
  onClick: (e) => {
816
- e.stopPropagation(), I();
817
+ e.stopPropagation(), L();
817
818
  },
818
- className: i(f.target, f.focus, "absolute right-0.5 top-0.5 z-20 bg-card text-foreground shadow ring-1 ring-border", "opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100", b.remove),
819
- children: /* @__PURE__ */ k(ce, { className: f.icon })
819
+ className: i(f.target, f.focus, "absolute end-0.5 top-0.5 z-10 bg-card text-foreground shadow-sm ring-1 ring-border", "opacity-100 transition-opacity sm:opacity-0 sm:group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100", x.remove),
820
+ children: /* @__PURE__ */ A(se, { className: f.icon })
820
821
  }),
821
- !l && !P && R && /* @__PURE__ */ k(a, {
822
+ !l && !I && R && /* @__PURE__ */ A(o, {
822
823
  size: "xs",
823
824
  weight: "medium",
824
825
  className: "absolute inset-x-0 bottom-1.5 text-center text-primary-accent",
825
- children: _.dragOver
826
+ children: v.dragOver
826
827
  })
827
828
  ]
828
829
  }),
829
- !P && /* @__PURE__ */ k(a, {
830
+ !I && /* @__PURE__ */ A(o, {
830
831
  size: "xs",
831
832
  type: "secondary",
832
- children: _.hint
833
+ children: v.hint
833
834
  }),
834
- ae.length > 0 && /* @__PURE__ */ k("div", {
835
+ ae.length > 0 && /* @__PURE__ */ A("div", {
835
836
  className: "avatar-upload--errors grid gap-space-2xs",
836
837
  role: "alert",
837
838
  "aria-live": "polite",
838
- children: ae.map((e, t) => /* @__PURE__ */ k(a, {
839
+ children: ae.map((e, t) => /* @__PURE__ */ A(o, {
839
840
  size: "xs",
840
841
  type: "error",
841
- children: Z(e, _, ie)
842
+ children: be(e, v, ie)
842
843
  }, `${e.file.name}-${e.code}-${t}`))
843
844
  })
844
845
  ]
845
846
  });
846
847
  }
847
- var $ = x.forwardRef(xe);
848
- $.displayName = "AvatarUpload";
848
+ var xe = S.forwardRef($);
849
+ xe.displayName = "AvatarUpload";
849
850
  //#endregion
850
- export { V as a, X as i, be as n, P as o, ye as r, $ as t };
851
+ export { V as a, X as i, ye as n, F as o, Z as r, xe as t };
851
852
 
852
- //# sourceMappingURL=upload-CDbYw1WN.js.map
853
+ //# sourceMappingURL=upload-BO8-CLN6.js.map