themelia-react-ui 2.0.0 → 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 (625) hide show
  1. package/CHANGELOG.md +351 -0
  2. package/README.md +26 -13
  3. package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
  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-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-BE_j8-AT.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-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
  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 +13 -13
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +103 -115
  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 +17 -17
  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 +1 -1
  53. package/dist/base/repeaters.js +171 -170
  54. package/dist/base/repeaters.js.map +1 -1
  55. package/dist/base/sheet.js +1 -1
  56. package/dist/base/sidebar.js +1 -1
  57. package/dist/base/signature-pad.js +147 -137
  58. package/dist/base/signature-pad.js.map +1 -1
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +1 -1
  61. package/dist/base/structure.js +1 -1
  62. package/dist/base/table.js +1 -1
  63. package/dist/base/text-inputs.js +2 -2
  64. package/dist/base/toaster.js +2 -2
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +2 -2
  69. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  70. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  71. package/dist/blocks/admin.js +173 -171
  72. package/dist/blocks/admin.js.map +1 -1
  73. package/dist/blocks/ai.js +266 -263
  74. package/dist/blocks/ai.js.map +1 -1
  75. package/dist/blocks/analytics/usage-card.js +1 -1
  76. package/dist/blocks/analytics.js +440 -438
  77. package/dist/blocks/analytics.js.map +1 -1
  78. package/dist/blocks/collaboration.js +1 -1
  79. package/dist/blocks/commerce/receipt.js +1 -1
  80. package/dist/blocks/commerce.js +1945 -1266
  81. package/dist/blocks/commerce.js.map +1 -1
  82. package/dist/blocks/data-display.js +3 -2
  83. package/dist/blocks/onboarding.js +50 -49
  84. package/dist/blocks/onboarding.js.map +1 -1
  85. package/dist/blocks/planning.js +25 -25
  86. package/dist/blocks/planning.js.map +1 -1
  87. package/dist/blocks/timelines.js +1 -1
  88. package/dist/breadcrumbs-D5t7I023.js +129 -0
  89. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  90. package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
  91. package/dist/button-QYwiyhD2.js.map +1 -0
  92. package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
  93. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  94. package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
  95. package/dist/cards-CiiHpKYd.js.map +1 -0
  96. package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
  97. package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
  98. package/dist/checkbox-DhB6K0bK.js +36 -0
  99. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  100. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  101. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  102. package/dist/code-block-Dgbu-CU3.js +185 -0
  103. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  104. package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
  105. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  106. package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
  107. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
  108. package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
  109. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  110. package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
  111. package/dist/combobox-DLl0bfiq.js.map +1 -0
  112. package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
  113. package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
  114. package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
  115. package/dist/comments-BpDuCUUu.js.map +1 -0
  116. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  117. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  118. package/dist/components/base/action-menu/index.d.ts +1 -0
  119. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  120. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  121. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  122. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  123. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  124. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  125. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  126. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  127. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  128. package/dist/components/base/display/dialog.d.ts +4 -8
  129. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  130. package/dist/components/base/forms/form-sizing.d.ts +15 -12
  131. package/dist/components/base/metadata-list/index.d.ts +12 -0
  132. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  133. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  134. package/dist/components/base/navigation/index.d.ts +1 -1
  135. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  136. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  137. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  138. package/dist/components/base/sheet/sheet.d.ts +4 -8
  139. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  140. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  141. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  142. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  143. package/dist/components/base/value-inputs/index.d.ts +5 -5
  144. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  145. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  146. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  147. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  148. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  149. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  150. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  151. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  152. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  153. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  154. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  155. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  156. package/dist/components/blocks/commerce/index.d.ts +13 -5
  157. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  158. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  159. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  160. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  161. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  162. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  163. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  164. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  165. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  166. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  167. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  168. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  169. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  170. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  172. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  173. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  174. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  175. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  176. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  177. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  178. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  179. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  180. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  181. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  182. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  183. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  184. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  185. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  186. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  187. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  188. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  189. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  190. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  191. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  192. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  193. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  194. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  195. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  196. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  197. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  198. package/dist/components/features/kanban/kanban.d.ts +1 -1
  199. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  200. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  201. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  202. package/dist/components/features/media-library/index.d.ts +1 -1
  203. package/dist/components/features/media-library/media-library.d.ts +1 -1
  204. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  205. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  206. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  207. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  208. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  209. package/dist/components/features/overlays/dialog.d.ts +1 -1
  210. package/dist/components/features/overlays/index.d.ts +1 -1
  211. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  212. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  213. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  214. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  215. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  216. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  217. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  218. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  219. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  220. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  221. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  222. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  223. package/dist/components/features/products/products.types.d.ts +9 -2
  224. package/dist/components/features/resource/index.d.ts +1 -1
  225. package/dist/components/features/resource/resource.d.ts +1 -1
  226. package/dist/components/features/resource/resource.types.d.ts +34 -6
  227. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  228. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  229. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  230. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  231. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  232. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  233. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  234. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  235. package/dist/components/features/sync/index.d.ts +26 -3
  236. package/dist/components/features/table/data-table.d.ts +1 -1
  237. package/dist/components/features/table/table.types.d.ts +32 -7
  238. package/dist/components/layout/page/index.d.ts +1 -1
  239. package/dist/components/layout/page/page.types.d.ts +33 -36
  240. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  241. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  242. package/dist/components/layout/settings/settings.d.ts +16 -2
  243. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  244. package/dist/components/typography/rich-text/index.d.ts +1 -1
  245. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  246. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  247. package/dist/components/typography/text-link.d.ts +4 -3
  248. package/dist/components/ui/checkbox.d.ts +4 -3
  249. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  250. package/dist/components/ui/switch.d.ts +2 -2
  251. package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
  252. package/dist/containers-DmWiJa2I.js.map +1 -0
  253. package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
  254. package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  255. package/dist/data-display-DafIvCl5.js +960 -0
  256. package/dist/data-display-DafIvCl5.js.map +1 -0
  257. package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
  258. package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
  259. package/dist/date-picker-CF-DtUpF.js +1529 -0
  260. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  261. package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
  262. package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
  263. package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
  264. package/dist/display-DsQTVzMz.js.map +1 -0
  265. package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
  266. package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
  267. package/dist/features/activities.js +414 -501
  268. package/dist/features/activities.js.map +1 -1
  269. package/dist/features/ai-chat.js +170 -169
  270. package/dist/features/ai-chat.js.map +1 -1
  271. package/dist/features/async-preview.js +8 -8
  272. package/dist/features/async-preview.js.map +1 -1
  273. package/dist/features/combobox.js +1 -1
  274. package/dist/features/comments.js +1 -1
  275. package/dist/features/data-view.js +139 -138
  276. package/dist/features/data-view.js.map +1 -1
  277. package/dist/features/email-composer/engine.js +1 -1
  278. package/dist/features/email-composer.js +73 -71
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +278 -275
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +307 -310
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +95 -97
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +56 -57
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +918 -825
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1115 -1122
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +202 -194
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +25 -25
  298. package/dist/features/resource-assignment.js.map +1 -1
  299. package/dist/features/resource.js +77 -69
  300. package/dist/features/resource.js.map +1 -1
  301. package/dist/features/rich-text-editor.js +30 -11
  302. package/dist/features/rich-text-editor.js.map +1 -1
  303. package/dist/features/schema-form.js +33 -33
  304. package/dist/features/schema-form.js.map +1 -1
  305. package/dist/features/suggestions.js +3 -3
  306. package/dist/features/sync.js +3 -3
  307. package/dist/features/table.js +1 -1
  308. package/dist/features/theme-tweaker.js +397 -396
  309. package/dist/features/theme-tweaker.js.map +1 -1
  310. package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
  311. package/dist/feedback-qNuMBtRH.js.map +1 -0
  312. package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
  313. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  314. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  315. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  316. package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
  317. package/dist/filters-BkHH53uv.js.map +1 -0
  318. package/dist/focus-recipes-B653VaLq.js +12 -0
  319. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  320. package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
  321. package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
  322. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
  323. package/dist/form-sizing-By94KzXE.js.map +1 -0
  324. package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
  325. package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
  326. package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
  327. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  328. package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
  329. package/dist/header-BOefOKd1.js.map +1 -0
  330. package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
  331. package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
  332. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  333. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  334. package/dist/icon-badge-CAuKupo9.js +55 -0
  335. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  336. package/dist/index.js +7 -7
  337. package/dist/input-DWhBBBww.js +262 -0
  338. package/dist/input-DWhBBBww.js.map +1 -0
  339. package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
  340. package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
  341. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  342. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  343. package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
  344. package/dist/item-DEmDiTlD.js.map +1 -0
  345. package/dist/layer-recipes-CCpklYME.js +13 -0
  346. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  347. package/dist/layout/app-shell.js +1 -1
  348. package/dist/layout/auth.js +1 -1
  349. package/dist/layout/containers.js +1 -1
  350. package/dist/layout/header.js +1 -1
  351. package/dist/layout/hooks.js +1 -1
  352. package/dist/layout/navigation.js +1 -1
  353. package/dist/layout/page.js +1 -1
  354. package/dist/layout/settings.js +1 -1
  355. package/dist/layout/sidebar.js +2 -2
  356. package/dist/layout/workspace.js +1 -1
  357. package/dist/layout.js +10 -10
  358. package/dist/lib/affordance-geometry.generated.d.ts +1 -0
  359. package/dist/lib/field-affordance-recipes.d.ts +6 -1
  360. package/dist/lib/field-state-recipes.d.ts +9 -8
  361. package/dist/lib/focus-recipes.d.ts +24 -0
  362. package/dist/lib/interaction-recipes.d.ts +35 -0
  363. package/dist/lib/layer-recipes.d.ts +19 -0
  364. package/dist/lib/motion-recipes.d.ts +1 -0
  365. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  366. package/dist/lib/safe-image-src.d.ts +10 -0
  367. package/dist/lib/sanitize-html.d.ts +15 -3
  368. package/dist/lib/surface-recipes.d.ts +47 -7
  369. package/dist/lib/token-merge.generated.d.ts +9 -6
  370. package/dist/lib/tone-recipes.d.ts +79 -0
  371. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  372. package/dist/lib/ui-provider/index.d.ts +2 -2
  373. package/dist/lib/ui-provider/types.d.ts +9 -0
  374. package/dist/lib/utils.js +1 -1
  375. package/dist/media-gallery-DcTtAaeC.js +203 -0
  376. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  377. package/dist/mentions-D-uyCh01.js +568 -0
  378. package/dist/mentions-D-uyCh01.js.map +1 -0
  379. package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
  380. package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
  381. package/dist/metadata-list-X5rYAKSB.js +394 -0
  382. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  383. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  384. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  385. package/dist/navigation-D3KwXmaq.js +145 -0
  386. package/dist/navigation-D3KwXmaq.js.map +1 -0
  387. package/dist/navigation-HJf5zxlH.js +268 -0
  388. package/dist/navigation-HJf5zxlH.js.map +1 -0
  389. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
  390. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  391. package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
  392. package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
  393. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  394. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  395. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  396. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  397. package/dist/overlays-I0axtYA6.js +999 -0
  398. package/dist/overlays-I0axtYA6.js.map +1 -0
  399. package/dist/page-B5dTH9gE.js +224 -0
  400. package/dist/page-B5dTH9gE.js.map +1 -0
  401. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  402. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  403. package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
  404. package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
  405. package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
  406. package/dist/popover-Di55PyAI.js.map +1 -0
  407. package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
  408. package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  409. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
  410. package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  411. package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
  412. package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
  413. package/dist/primitives.js +4 -4
  414. package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
  415. package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
  416. package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
  417. package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
  418. package/dist/rich-text-DvGulsNJ.js +78 -0
  419. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  420. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  421. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  422. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  423. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  424. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  425. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  426. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  427. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  428. package/dist/sanitize-html-DsQmI48u.js +92 -0
  429. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  430. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  431. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  432. package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
  433. package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
  434. package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
  435. package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
  436. package/dist/services/actions/action-adapters.d.ts +18 -0
  437. package/dist/services/actions/index.d.ts +1 -1
  438. package/dist/services/actions.js +16 -4
  439. package/dist/services/actions.js.map +1 -1
  440. package/dist/settings-CQW3b-Cu.js +170 -0
  441. package/dist/settings-CQW3b-Cu.js.map +1 -0
  442. package/dist/sheet-4SEvVYzA.js +210 -0
  443. package/dist/sheet-4SEvVYzA.js.map +1 -0
  444. package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
  445. package/dist/sidebar-C7WWR29L.js.map +1 -0
  446. package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
  447. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  448. package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
  449. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
  450. package/dist/smart-card-lFKxn5Hu.js +595 -0
  451. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  452. package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
  453. package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
  454. package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
  455. package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
  456. package/dist/style.css +1 -1
  457. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  458. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  459. package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
  460. package/dist/table-CIKyLUsy.js.map +1 -0
  461. package/dist/table-CrcLN9Io.js +1458 -0
  462. package/dist/table-CrcLN9Io.js.map +1 -0
  463. package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
  464. package/dist/tabs-DwBJfjxX.js.map +1 -0
  465. package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
  466. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  467. package/dist/theme.css +3 -3
  468. package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
  469. package/dist/timelines-C_SBwHNP.js.map +1 -0
  470. package/dist/tone-recipes-CPoExcTE.js +70 -0
  471. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  472. package/dist/tooltip-CsfgrfS7.js +111 -0
  473. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  474. package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
  475. package/dist/tree-BiKhg8AY.js.map +1 -0
  476. package/dist/typography/rich-text.js +1 -1
  477. package/dist/typography-DTRkE9zL.js +117 -0
  478. package/dist/typography-DTRkE9zL.js.map +1 -0
  479. package/dist/typography.js +1 -1
  480. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
  481. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  482. package/dist/ui-provider.js +3 -3
  483. package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
  484. package/dist/upload-BO8-CLN6.js.map +1 -0
  485. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
  486. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  487. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  488. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  489. package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
  490. package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
  491. package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
  492. package/dist/utils-l5LpDw2z.js.map +1 -0
  493. package/dist/value-inputs-TAYMX111.js +947 -0
  494. package/dist/value-inputs-TAYMX111.js.map +1 -0
  495. package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
  496. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
  497. package/dist/workspace-DH0v0KcB.js +407 -0
  498. package/dist/workspace-DH0v0KcB.js.map +1 -0
  499. package/docs/consumer-skill/SKILL.md +19 -20
  500. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  501. package/docs/consumer-skill/examples/composition.tsx +3 -3
  502. package/docs/consumer-skill/examples/detail.tsx +59 -12
  503. package/docs/consumer-skill/examples/edit.tsx +1 -1
  504. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  505. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  506. package/docs/consumer-skill/examples/website.tsx +1 -1
  507. package/docs/consumer-skill/references/agents-md.md +33 -0
  508. package/docs/consumer-skill/references/analytics.md +1 -1
  509. package/docs/consumer-skill/references/composition.md +51 -8
  510. package/docs/consumer-skill/references/design-contract.md +12 -3
  511. package/docs/consumer-skill/references/installation.md +11 -1
  512. package/docs/consumer-skill/references/public-api.json +847 -447
  513. package/docs/consumer-skill/references/review.md +25 -5
  514. package/docs/consumer-skill/references/theming.md +8 -4
  515. package/docs/consumer-skill/references/tokens.json +1 -1
  516. package/docs/consumer-skill/references/workflows.md +29 -10
  517. package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
  518. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  519. package/package.json +10 -2
  520. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  521. package/dist/action-menu-BTpyPWJ2.js +0 -264
  522. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  523. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  524. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  525. package/dist/attachment-q69dlt5Y.js +0 -244
  526. package/dist/attachment-q69dlt5Y.js.map +0 -1
  527. package/dist/auth-M3vGMgDR.js.map +0 -1
  528. package/dist/avatar-djdaaQ_s.js.map +0 -1
  529. package/dist/badge-0tATj-tW.js +0 -92
  530. package/dist/badge-0tATj-tW.js.map +0 -1
  531. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  532. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  533. package/dist/button-BS3KDg00.js.map +0 -1
  534. package/dist/button-R9CCoH7A.js.map +0 -1
  535. package/dist/buttons-DS0ZIwJ_.js +0 -99
  536. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  537. package/dist/cards-QoJ4syG9.js.map +0 -1
  538. package/dist/checkbox-B7ygNTYp.js +0 -35
  539. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  540. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  541. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  542. package/dist/code-block-CD0B7M93.js +0 -183
  543. package/dist/code-block-CD0B7M93.js.map +0 -1
  544. package/dist/combobox-6dvVny2q.js.map +0 -1
  545. package/dist/combobox-CB7039j7.js.map +0 -1
  546. package/dist/comments-You0Bzbr.js.map +0 -1
  547. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  548. package/dist/containers-D_L4mTVb.js.map +0 -1
  549. package/dist/data-display-3xWQUnMA.js +0 -1335
  550. package/dist/data-display-3xWQUnMA.js.map +0 -1
  551. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  552. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  553. package/dist/display-DrdvPwF0.js.map +0 -1
  554. package/dist/feedback-C7nR0UtT.js.map +0 -1
  555. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  556. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  557. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  558. package/dist/filters-Da-gNPsE.js.map +0 -1
  559. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  560. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  561. package/dist/header-2ycNqGOR.js.map +0 -1
  562. package/dist/icon-badge-DKlaKXoo.js +0 -53
  563. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  564. package/dist/input-DhQdBnV3.js +0 -255
  565. package/dist/input-DhQdBnV3.js.map +0 -1
  566. package/dist/item-xzh8Df65.js.map +0 -1
  567. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  568. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  569. package/dist/mentions-DwnO1hh4.js +0 -564
  570. package/dist/mentions-DwnO1hh4.js.map +0 -1
  571. package/dist/navigation-Cbp5V8gG.js +0 -264
  572. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  573. package/dist/navigation-Cs1npsPm.js +0 -300
  574. package/dist/navigation-Cs1npsPm.js.map +0 -1
  575. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  576. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  577. package/dist/overlays-DhZO7N-I.js +0 -994
  578. package/dist/overlays-DhZO7N-I.js.map +0 -1
  579. package/dist/page-C6R_8jFt.js +0 -325
  580. package/dist/page-C6R_8jFt.js.map +0 -1
  581. package/dist/page-header-hUTzcRZX.js +0 -112
  582. package/dist/page-header-hUTzcRZX.js.map +0 -1
  583. package/dist/popover-Dcv_9jxr.js.map +0 -1
  584. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  585. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  586. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  587. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  588. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  589. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  590. package/dist/rich-text-j-FGAeZW.js +0 -32
  591. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  592. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  593. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  594. package/dist/scroll-area-DRdr16Pt.js +0 -47
  595. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  596. package/dist/settings-DHk0L2MF.js +0 -161
  597. package/dist/settings-DHk0L2MF.js.map +0 -1
  598. package/dist/sheet-DRFNY1_D.js +0 -207
  599. package/dist/sheet-DRFNY1_D.js.map +0 -1
  600. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  601. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  602. package/dist/smart-card-Bek-TwUp.js +0 -599
  603. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  604. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  605. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  606. package/dist/table-D6zKeYQX.js.map +0 -1
  607. package/dist/table-Dn4XSrSB.js +0 -1444
  608. package/dist/table-Dn4XSrSB.js.map +0 -1
  609. package/dist/tabs-Dk8E_knt.js.map +0 -1
  610. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  611. package/dist/timelines-CxuAFIc2.js.map +0 -1
  612. package/dist/tree-BotPlyiD.js.map +0 -1
  613. package/dist/typography-CAr3dQhX.js +0 -116
  614. package/dist/typography-CAr3dQhX.js.map +0 -1
  615. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  616. package/dist/upload-B0WHW7ak.js.map +0 -1
  617. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  618. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  619. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  620. package/dist/utils-Cospvlj1.js.map +0 -1
  621. package/dist/value-inputs-CjfzGMsN.js +0 -854
  622. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  623. package/dist/workspace-YoFjXi6i.js +0 -394
  624. package/dist/workspace-YoFjXi6i.js.map +0 -1
  625. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,854 +0,0 @@
1
- "use client";
2
- import { p as e, s as t } from "./ui-provider-D2_TeLqw.js";
3
- import { useStrings as n } from "./lib/strings.js";
4
- import { t as r } from "./utils-Cospvlj1.js";
5
- import { t as i } from "./buttons-DS0ZIwJ_.js";
6
- import { s as a } from "./typography-CAr3dQhX.js";
7
- import { a as o } from "./text.styles-g4He6UIW.js";
8
- import { t as s } from "./structure-hzCW-XsV.js";
9
- import { t as c } from "./track-recipes-CDcKmndW.js";
10
- import { n as l, t as u } from "./popover.recipes-wmbvL8Ah.js";
11
- import { n as d } from "./collection-content-Ys-OZOkY.js";
12
- import { t as f } from "./badge-0tATj-tW.js";
13
- import { t as p } from "./field-state-recipes-C-MFBX_8.js";
14
- import { n as m, t as h } from "./field-affordance-recipes-CkOCdE2y.js";
15
- import { t as g } from "./editable-text-recipe-Bkm6wKHp.js";
16
- import { a as _, d as v, g as ee, u as y } from "./form-sizing-uWP4lzVh.js";
17
- import { t as b } from "./input-DhQdBnV3.js";
18
- import { t as x } from "./date-picker-DrDFj8Lo.js";
19
- import { o as te, t as S } from "./popover-Dcv_9jxr.js";
20
- import { _ as C, d as ne, f as w, g as T, h as E, u as D } from "./choice-inputs-DrJ17tpL.js";
21
- import * as O from "react";
22
- import { forwardRef as k, memo as A, useCallback as j, useId as M, useMemo as N, useRef as re, useState as P } from "react";
23
- import { jsx as F, jsxs as I } from "react/jsx-runtime";
24
- import { Check as ie, X as ae } from "lucide-react";
25
- import { Slider as L } from "@base-ui/react/slider";
26
- //#region src/components/base/value-inputs/tags-input.tsx
27
- var oe = {
28
- placeholder: "Add a tag…",
29
- emptyRecommendations: "No recommendations found.",
30
- clearAll: "Clear all",
31
- summary: (e, t) => `${e} / ${t} tags`,
32
- removeTag: (e) => `Remove ${e}`
33
- };
34
- function R({ id: t, "aria-describedby": c, value: p = [], onValueChange: m, placeholder: g, recommendations: _, maxTags: v, showMaxTags: ee = !1, allowDuplicates: y = !1, validate: x, disabled: C = !1, showClearAll: ne = !1, renderTag: w, delimiter: T = /[\n,]/, addOnBlur: E = !0, minLength: D = 1, maxLength: k, sortTags: A = !1, caseSensitive: M = !1, field: L, invalid: R, className: se, strings: z }) {
35
- let { defaultTextSize: ce } = e(), le = n(oe, g === void 0 ? void 0 : { placeholder: g }), B = n(le, z), [V, H] = P(""), [U, W] = P(!1), [G, K] = P(-1), q = re(null), J = O.useId(), Y = U && !C && !!_?.length && !(v !== void 0 && p.length >= v), X = j((e) => {
36
- if (typeof e == "string") return e;
37
- if (L && typeof e == "object" && e) {
38
- let t = e[L];
39
- return typeof t == "string" ? t : t == null ? "" : String(t);
40
- }
41
- return String(e);
42
- }, [L]), ue = j((e) => typeof p[0] == "string" || p.length === 0 ? e : L ? { [L]: e } : e, [L, p]), Z = N(() => _ ? _.map((e) => e && typeof e == "object" && "value" in e && "label" in e ? e : {
43
- value: e,
44
- label: X(e)
45
- }) : [], [_, X]), Q = N(() => {
46
- if (!Z.length || !V) return Z;
47
- let e = M ? V : V.toLowerCase(), t = new Set(p.map((e) => {
48
- let t = X(e);
49
- return M ? t : t.toLowerCase();
50
- }));
51
- return Z.filter((n) => {
52
- let r = M ? n.label : n.label.toLowerCase(), i = X(n.value), a = M ? i : i.toLowerCase();
53
- return (r.includes(e) || a.includes(e)) && (y || !t.has(a));
54
- });
55
- }, [
56
- Z,
57
- V,
58
- p,
59
- y,
60
- M,
61
- X
62
- ]), de = N(() => A ? [...p].sort((e, t) => {
63
- let n = X(e), r = X(t);
64
- return n.localeCompare(r);
65
- }) : p, [
66
- p,
67
- A,
68
- X
69
- ]), $ = j((e) => {
70
- let t = typeof e == "string" ? ue(e) : e, n = X(t).trim();
71
- if (!n || n.length < D || k && n.length > k || v && p.length >= v || !y && p.some((e) => {
72
- let t = X(e);
73
- return M ? t === n : t.toLowerCase() === n.toLowerCase();
74
- }) || x && !x(t)) return;
75
- let r = [...p, t];
76
- m?.(r), H(""), W(!1), K(-1);
77
- }, [
78
- p,
79
- m,
80
- v,
81
- y,
82
- x,
83
- D,
84
- k,
85
- M,
86
- X,
87
- ue
88
- ]), fe = j((e) => {
89
- let t = p.filter((t, n) => n !== e);
90
- m?.(t);
91
- }, [p, m]), pe = j((e) => {
92
- let t = e.target.value;
93
- H(t), K(-1), _ && _.length > 0 && W(!0);
94
- }, [_]), me = j((e) => {
95
- C || (e.key === "Enter" ? (e.preventDefault(), U && G >= 0 && G < Q.length ? ($(Q[G].value), K(-1)) : V.trim() && $(V)) : e.key === "Tab" ? V && (e.preventDefault(), $(V)) : e.key === "ArrowDown" ? (e.preventDefault(), U && K((e) => e < Q.length - 1 ? e + 1 : e)) : e.key === "ArrowUp" ? (e.preventDefault(), U && K((e) => e > 0 ? e - 1 : 0)) : e.key === "Escape" ? (W(!1), K(-1)) : e.key === "Backspace" && !V && p.length > 0 && fe(p.length - 1));
96
- }, [
97
- C,
98
- U,
99
- G,
100
- Q,
101
- V,
102
- $,
103
- fe,
104
- p.length
105
- ]), he = j((e) => {
106
- C || (e.preventDefault(), e.clipboardData.getData("text").split(T).map((e) => e.trim()).filter(Boolean).forEach((e) => $(e)));
107
- }, [
108
- C,
109
- T,
110
- $
111
- ]), ge = j(() => {
112
- W(!1), E && V && $(V);
113
- }, [
114
- E,
115
- V,
116
- $
117
- ]), _e = j(() => {
118
- m?.([]), H("");
119
- }, [m]), ve = j((e, t, n) => {
120
- let i = `${X(e)}-${t}`;
121
- return /* @__PURE__ */ I(f, {
122
- tone: "secondary",
123
- className: r("tags-input--component", "gap-space-xs pe-space-xs"),
124
- children: [/* @__PURE__ */ F(a, {
125
- tag: "span",
126
- size: "inherit",
127
- weight: "normal",
128
- lineHeight: "none",
129
- className: "text-inherit",
130
- children: X(e)
131
- }), /* @__PURE__ */ F("button", {
132
- type: "button",
133
- "aria-label": (B.removeTag ?? oe.removeTag)(X(e)),
134
- className: r(h.inline, h.focus, h.clear),
135
- onClick: () => n(t),
136
- disabled: C,
137
- children: /* @__PURE__ */ F(ae, {
138
- className: h.icon,
139
- "aria-hidden": "true"
140
- })
141
- })]
142
- }, i);
143
- }, [
144
- X,
145
- C,
146
- B
147
- ]), ye = !!R;
148
- return /* @__PURE__ */ I(s, {
149
- gap: "dense",
150
- className: r("w-full relative", se),
151
- children: [/* @__PURE__ */ I(s, {
152
- gap: "md",
153
- children: [/* @__PURE__ */ I(te, {
154
- open: Y,
155
- onOpenChange: (e, t) => {
156
- (e || t.reason !== "outside-press" || t.event.target !== q.current) && (W(e), e || K(-1));
157
- },
158
- children: [/* @__PURE__ */ F(b, {
159
- id: t,
160
- "aria-describedby": c,
161
- role: _ ? "combobox" : void 0,
162
- "aria-autocomplete": _ ? "list" : void 0,
163
- "aria-expanded": _ ? Y : void 0,
164
- "aria-controls": Y ? J : void 0,
165
- "aria-activedescendant": Y && G >= 0 && G < Q.length ? `${J}-${G}` : void 0,
166
- ref: q,
167
- type: "text",
168
- placeholder: B.placeholder,
169
- value: V,
170
- onChange: pe,
171
- onKeyDown: me,
172
- onPaste: he,
173
- onBlur: ge,
174
- onFocus: () => {
175
- _ && Q.length > 0 && W(!0);
176
- },
177
- disabled: C || v !== void 0 && p.length >= v,
178
- invalid: ye,
179
- maxLength: k,
180
- className: "w-full"
181
- }), !!_ && /* @__PURE__ */ F(S, {
182
- anchor: q,
183
- align: "start",
184
- type: "menu",
185
- initialFocus: !1,
186
- finalFocus: !1,
187
- role: "listbox",
188
- id: J,
189
- "aria-label": B.placeholder,
190
- className: "tags-input--recommendations w-(--anchor-width) max-h-[200px]",
191
- children: /* @__PURE__ */ F("div", { children: Q.length > 0 ? Q.map((e, t) => {
192
- let n = X(e.value), i = p.some((t) => X(t) === X(e.value));
193
- return /* @__PURE__ */ I("button", {
194
- id: `${J}-${t}`,
195
- role: "option",
196
- "aria-selected": G === t,
197
- tabIndex: -1,
198
- type: "button",
199
- onPointerDown: (e) => e.preventDefault(),
200
- onClick: () => {
201
- $(e.value), K(-1), q.current?.focus();
202
- },
203
- onMouseEnter: () => K(t),
204
- className: r(u.interactive, l(), o[ce ?? "sm"], "box-border w-full cursor-pointer justify-between border-0 bg-transparent font-sans text-foreground", "hover:bg-accent hover:text-accent-foreground", "focus-visible:outline-none", G === t && "bg-accent text-accent-foreground"),
205
- children: [/* @__PURE__ */ F(d, { children: e.label }), /* @__PURE__ */ F(ie, { className: r("ml-auto size-icon-sm", i ? "opacity-100" : "opacity-0") })]
206
- }, n);
207
- }) : /* @__PURE__ */ F(a, {
208
- tag: "div",
209
- size: "xs",
210
- type: "secondary",
211
- className: "px-row-x py-row-y",
212
- children: B.emptyRecommendations
213
- }) })
214
- })]
215
- }), de.length > 0 && /* @__PURE__ */ I(s, {
216
- direction: "horizontal",
217
- gap: "sm",
218
- children: [de.map((e, t) => w ? w(e, t, fe) : ve(e, t, fe)), !!ne && p.length > 0 && !C && /* @__PURE__ */ F(i, {
219
- type: "button",
220
- size: "sm",
221
- onClick: _e,
222
- className: "ms-auto",
223
- children: B.clearAll
224
- })]
225
- })]
226
- }), !!v && !!ee && /* @__PURE__ */ F(a, {
227
- size: "xs",
228
- type: "secondary",
229
- children: B.summary(p.length, v)
230
- })]
231
- });
232
- }
233
- R.displayName = "TagsInput";
234
- //#endregion
235
- //#region src/components/base/value-inputs/phone-input.tsx
236
- var se = {
237
- prefixPlaceholder: "Prefix",
238
- prefixAriaLabel: "Country prefix"
239
- }, z = {
240
- US: {
241
- value: "+1",
242
- label: "United States",
243
- iso: "US"
244
- },
245
- CA: {
246
- value: "+1",
247
- label: "Canada",
248
- iso: "CA"
249
- },
250
- AU: {
251
- value: "+61",
252
- label: "Australia",
253
- iso: "AU"
254
- },
255
- BG: {
256
- value: "+359",
257
- label: "Bulgaria",
258
- iso: "BG"
259
- },
260
- GR: {
261
- value: "+30",
262
- label: "Greece",
263
- iso: "GR"
264
- },
265
- GB: {
266
- value: "+44",
267
- label: "United Kingdom",
268
- iso: "GB"
269
- },
270
- DE: {
271
- value: "+49",
272
- label: "Germany",
273
- iso: "DE"
274
- },
275
- FR: {
276
- value: "+33",
277
- label: "France",
278
- iso: "FR"
279
- },
280
- IT: {
281
- value: "+39",
282
- label: "Italy",
283
- iso: "IT"
284
- },
285
- ES: {
286
- value: "+34",
287
- label: "Spain",
288
- iso: "ES"
289
- },
290
- NL: {
291
- value: "+31",
292
- label: "Netherlands",
293
- iso: "NL"
294
- },
295
- BE: {
296
- value: "+32",
297
- label: "Belgium",
298
- iso: "BE"
299
- },
300
- AT: {
301
- value: "+43",
302
- label: "Austria",
303
- iso: "AT"
304
- },
305
- CH: {
306
- value: "+41",
307
- label: "Switzerland",
308
- iso: "CH"
309
- },
310
- PL: {
311
- value: "+48",
312
- label: "Poland",
313
- iso: "PL"
314
- },
315
- RO: {
316
- value: "+40",
317
- label: "Romania",
318
- iso: "RO"
319
- },
320
- RS: {
321
- value: "+381",
322
- label: "Serbia",
323
- iso: "RS"
324
- },
325
- HR: {
326
- value: "+385",
327
- label: "Croatia",
328
- iso: "HR"
329
- },
330
- SI: {
331
- value: "+386",
332
- label: "Slovenia",
333
- iso: "SI"
334
- },
335
- MK: {
336
- value: "+389",
337
- label: "North Macedonia",
338
- iso: "MK"
339
- },
340
- TR: {
341
- value: "+90",
342
- label: "Turkey",
343
- iso: "TR"
344
- },
345
- RU: {
346
- value: "+7",
347
- label: "Russia",
348
- iso: "RU"
349
- },
350
- UA: {
351
- value: "+380",
352
- label: "Ukraine",
353
- iso: "UA"
354
- },
355
- SK: {
356
- value: "+421",
357
- label: "Slovakia",
358
- iso: "SK"
359
- },
360
- CZ: {
361
- value: "+420",
362
- label: "Czech Republic",
363
- iso: "CZ"
364
- },
365
- HU: {
366
- value: "+36",
367
- label: "Hungary",
368
- iso: "HU"
369
- },
370
- PT: {
371
- value: "+351",
372
- label: "Portugal",
373
- iso: "PT"
374
- },
375
- IE: {
376
- value: "+353",
377
- label: "Ireland",
378
- iso: "IE"
379
- },
380
- SE: {
381
- value: "+46",
382
- label: "Sweden",
383
- iso: "SE"
384
- },
385
- NO: {
386
- value: "+47",
387
- label: "Norway",
388
- iso: "NO"
389
- },
390
- DK: {
391
- value: "+45",
392
- label: "Denmark",
393
- iso: "DK"
394
- },
395
- FI: {
396
- value: "+358",
397
- label: "Finland",
398
- iso: "FI"
399
- },
400
- CY: {
401
- value: "+357",
402
- label: "Cyprus",
403
- iso: "CY"
404
- },
405
- AL: {
406
- value: "+355",
407
- label: "Albania",
408
- iso: "AL"
409
- },
410
- ME: {
411
- value: "+382",
412
- label: "Montenegro",
413
- iso: "ME"
414
- },
415
- BA: {
416
- value: "+387",
417
- label: "Bosnia and Herzegovina",
418
- iso: "BA"
419
- },
420
- XK: {
421
- value: "+383",
422
- label: "Kosovo",
423
- iso: "XK"
424
- },
425
- MD: {
426
- value: "+373",
427
- label: "Moldova",
428
- iso: "MD"
429
- },
430
- BY: {
431
- value: "+375",
432
- label: "Belarus",
433
- iso: "BY"
434
- },
435
- LT: {
436
- value: "+370",
437
- label: "Lithuania",
438
- iso: "LT"
439
- },
440
- LV: {
441
- value: "+371",
442
- label: "Latvia",
443
- iso: "LV"
444
- },
445
- EE: {
446
- value: "+372",
447
- label: "Estonia",
448
- iso: "EE"
449
- }
450
- }, ce = [
451
- "US",
452
- "CA",
453
- "GB",
454
- "DE",
455
- "FR",
456
- "IT",
457
- "ES",
458
- "AU"
459
- ], le = (e) => typeof e == "string" ? z[e.toUpperCase()] ?? null : e, B = (e) => e.map(le).filter((e) => e !== null), V = (e, t) => {
460
- let n = e.trim().replace(/\s+/g, " ").replace(/[^\d ()+-]/g, "");
461
- return t && n.startsWith(t) && (n = n.slice(t.length).replace(/^[\s-]+/, "")), t && n.startsWith("0") && (n = n.slice(1)), n;
462
- }, H = (e, t) => e ? e.startsWith("+") ? e : z[e.toUpperCase()]?.value ?? e : t[0]?.value ?? "";
463
- function U({ normalizeOnBlur: e = !0, onBlur: i, onChange: o, prefix: s, defaultPrefix: c, prefixes: l = ce, onPrefixChange: u, disablePrefixSelector: d = !1, prefixPlaceholder: f, prefixWidth: h = "w-30", showCountryName: x = !0, showPrefixInDropdown: te = !0, invalid: S, disabled: O, className: k, size: A, strings: M, ...re }, ie) {
464
- let { defaultScale: ae } = t(), L = ee(A, ae), oe = n(se, M), R = N(() => B(l), [l]), le = N(() => H(c, R), [c, R]), [U, W] = P(le), [G, K] = P(() => {
465
- let e = s ?? c;
466
- return e && !e.startsWith("+") ? e.toUpperCase() : R.find((e) => e.value === le)?.iso;
467
- }), q = s !== void 0, J = q ? H(s, R) : U, Y = N(() => {
468
- if (!J || R.some((e) => e.value === J)) return R;
469
- let e = Object.values(z).find((e) => e.value === J);
470
- return e ? [e, ...R] : R;
471
- }, [R, J]), X = N(() => Y.find((e) => e.iso === (s && !s.startsWith("+") ? s.toUpperCase() : G) && e.value === J) ?? Y.find((e) => e.value === J), [
472
- Y,
473
- J,
474
- G,
475
- s
476
- ]), ue = j((e) => {
477
- if (e === null) return;
478
- let t = Y.find((t) => t.iso === e);
479
- t && (K(t.iso), q || W(t.value), u?.(t.value));
480
- }, [
481
- q,
482
- u,
483
- Y
484
- ]), Z = j((e) => {
485
- if (!o) return;
486
- let t = e.target.value;
487
- if (J && t.startsWith(J)) {
488
- let n = t.slice(J.length).replace(/^[\s-]+/, ""), r = n.startsWith("0") ? n.slice(1) : n;
489
- if (r !== t) {
490
- o({
491
- ...e,
492
- target: {
493
- ...e.target,
494
- value: r
495
- },
496
- currentTarget: {
497
- ...e.currentTarget,
498
- value: r
499
- }
500
- });
501
- return;
502
- }
503
- }
504
- o(e);
505
- }, [o, J]), Q = j((t) => {
506
- if (e && typeof o == "function") {
507
- let e = V(t.target.value, J);
508
- e !== t.target.value && o({
509
- ...t,
510
- target: {
511
- ...t.target,
512
- value: e
513
- },
514
- currentTarget: {
515
- ...t.currentTarget,
516
- value: e
517
- }
518
- });
519
- }
520
- i?.(t);
521
- }, [
522
- e,
523
- o,
524
- i,
525
- J
526
- ]);
527
- if (Y.length === 0 || d) {
528
- let e = J || c;
529
- return e ? /* @__PURE__ */ I("div", {
530
- className: "flex items-start gap-space-md",
531
- children: [/* @__PURE__ */ F("div", {
532
- "aria-invalid": S || void 0,
533
- className: r("phone-input--prefix flex shrink-0 items-center justify-center rounded-inner border border-input bg-muted", y[L], g[L], _[L], O && "opacity-50", p.invalid),
534
- children: /* @__PURE__ */ F(a, {
535
- tag: "span",
536
- size: "inherit",
537
- type: "secondary",
538
- lineHeight: "tight",
539
- children: e
540
- })
541
- }), /* @__PURE__ */ F("div", {
542
- className: "flex-1",
543
- children: /* @__PURE__ */ F(b, {
544
- ref: ie,
545
- size: L,
546
- type: "tel",
547
- autoComplete: "tel",
548
- inputMode: "tel",
549
- onChange: Z,
550
- onBlur: Q,
551
- invalid: S,
552
- disabled: O,
553
- className: k,
554
- ...re
555
- })
556
- })]
557
- }) : /* @__PURE__ */ F(b, {
558
- ref: ie,
559
- size: L,
560
- type: "tel",
561
- autoComplete: "tel",
562
- inputMode: "tel",
563
- onChange: Z,
564
- onBlur: Q,
565
- invalid: S,
566
- disabled: O,
567
- className: r("phone-input--component", k),
568
- ...re
569
- });
570
- }
571
- return /* @__PURE__ */ I("div", {
572
- className: "flex items-start gap-space-md",
573
- children: [/* @__PURE__ */ I(E, {
574
- value: X?.iso ?? null,
575
- onValueChange: (e) => ue(e),
576
- disabled: O,
577
- children: [/* @__PURE__ */ F(T, {
578
- "aria-label": oe.prefixAriaLabel,
579
- "aria-invalid": S || void 0,
580
- iconClassName: m.icon[L],
581
- className: r("phone-input--prefix-trigger", v(L), "shrink-0", h),
582
- children: /* @__PURE__ */ F(C, {
583
- placeholder: /* @__PURE__ */ F(a, {
584
- tag: "span",
585
- size: "inherit",
586
- type: "secondary",
587
- lineHeight: "tight",
588
- className: "text-inherit",
589
- children: f ?? oe.prefixPlaceholder
590
- }),
591
- children: !!X && /* @__PURE__ */ F(a, {
592
- tag: "span",
593
- size: "inherit",
594
- lineHeight: "tight",
595
- className: "text-inherit",
596
- children: X.value
597
- })
598
- })
599
- }), /* @__PURE__ */ F(D, { children: /* @__PURE__ */ F(ne, { children: Y.map((e) => /* @__PURE__ */ F(w, {
600
- value: e.iso,
601
- size: L,
602
- children: /* @__PURE__ */ I("div", {
603
- className: "flex items-center gap-space-md",
604
- children: [!!te && /* @__PURE__ */ F(a, {
605
- tag: "span",
606
- size: "inherit",
607
- weight: "medium",
608
- lineHeight: "tight",
609
- className: "min-w-13 tabular-nums text-inherit",
610
- children: e.value
611
- }), !!x && /* @__PURE__ */ F(a, {
612
- tag: "span",
613
- size: "inherit",
614
- lineHeight: "tight",
615
- className: "text-inherit",
616
- children: e.label
617
- })]
618
- })
619
- }, e.iso)) }) })]
620
- }), /* @__PURE__ */ F("div", {
621
- className: "flex-1",
622
- children: /* @__PURE__ */ F(b, {
623
- ref: ie,
624
- size: L,
625
- type: "tel",
626
- autoComplete: "tel",
627
- inputMode: "tel",
628
- onChange: Z,
629
- onBlur: Q,
630
- invalid: S,
631
- disabled: O,
632
- className: k,
633
- ...re
634
- })
635
- })]
636
- });
637
- }
638
- var W = A(O.forwardRef(U));
639
- W.displayName = "PhoneInput";
640
- //#endregion
641
- //#region src/components/base/value-inputs/color-input.tsx
642
- var G = { chooseColor: "Choose color" }, K = {
643
- sm: "size-control-sm",
644
- md: "size-control",
645
- lg: "size-control-lg"
646
- };
647
- function q(e) {
648
- let t = e.trim().toLowerCase();
649
- return /^#[0-9a-f]{6}$/.test(t) ? t : /^#[0-9a-f]{3}$/.test(t) ? `#${t.slice(1).split("").map((e) => `${e}${e}`).join("")}` : null;
650
- }
651
- function J(e, t) {
652
- let n = Number(e.toFixed(t));
653
- return Object.is(n, -0) ? 0 : n;
654
- }
655
- function Y(e) {
656
- let t = q(e);
657
- if (!t) return e;
658
- let [n, r, i] = [
659
- 1,
660
- 3,
661
- 5
662
- ].map((e) => Number.parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4), a = Math.cbrt(.4122214708 * n + .5363325363 * r + .0514459929 * i), o = Math.cbrt(.2119034982 * n + .6806995451 * r + .1073969566 * i), s = Math.cbrt(.0883024619 * n + .2817188376 * r + .6299787005 * i), c = .2104542553 * a + .793617785 * o - .0040720468 * s, l = 1.9779984951 * a - 2.428592205 * o + .4505937099 * s, u = .0259040371 * a + .7827717662 * o - .808675766 * s, d = Math.hypot(l, u), f = d < 5e-5 ? 0 : Math.atan2(u, l) * 180 / Math.PI + (u < 0 ? 360 : 0);
663
- return `oklch(${J(c, 4)} ${J(d, 4)} ${J(f, 2)})`;
664
- }
665
- function X(e, t) {
666
- let n = window.getComputedStyle(e).backgroundColor, r = q(n);
667
- if (r) return r;
668
- if (typeof CanvasRenderingContext2D > "u") return t;
669
- try {
670
- let e = document.createElement("canvas");
671
- e.width = 1, e.height = 1;
672
- let r = e.getContext("2d", { willReadFrequently: !0 });
673
- if (!r) return t;
674
- r.clearRect(0, 0, 1, 1), r.fillStyle = n, r.fillRect(0, 0, 1, 1);
675
- let [i, a, o, s] = r.getImageData(0, 0, 1, 1).data;
676
- return s === 0 ? t : `#${[
677
- i,
678
- a,
679
- o
680
- ].map((e) => e.toString(16).padStart(2, "0")).join("")}`;
681
- } catch {
682
- return t;
683
- }
684
- }
685
- var ue = O.forwardRef(function({ className: e, value: i, defaultValue: a, onChange: o, onValueChange: c, previewValue: l, pickerAriaLabel: u, size: d, disabled: f, readOnly: m, invalid: h, strings: g, inputStrings: _, ...v }, y) {
686
- let x = n(G, g), { defaultScale: te } = t(), S = ee(d, te), [C, ne] = O.useState(a ?? ""), w = i ?? C, T = l ?? w, E = q(w) ?? "#000000", [D, k] = O.useState(E), A = O.useRef(null);
687
- O.useLayoutEffect(() => {
688
- let e = q(T);
689
- if (e) {
690
- k(e);
691
- return;
692
- }
693
- A.current && typeof window < "u" && k((e) => X(A.current, e));
694
- }, [T]);
695
- let j = (e) => {
696
- i === void 0 && ne(e.target.value), o?.(e), c?.(e.target.value);
697
- };
698
- return /* @__PURE__ */ I(s, {
699
- direction: "horizontal",
700
- gap: "sm",
701
- align: "center",
702
- wrap: !1,
703
- className: r("color-input--component min-w-0 [&>.input--component]:min-w-0 [&>.input--component]:flex-1", e),
704
- children: [/* @__PURE__ */ I("label", {
705
- "aria-invalid": h || void 0,
706
- className: r("color-input--picker box-border relative shrink-0 cursor-pointer overflow-hidden rounded-inner border border-input bg-background shadow-none outline-none transition-[color,box-shadow]", "has-[input:focus-visible]:border-input has-[input:focus-visible]:ring-2 has-[input:focus-visible]:ring-ring", p.invalid, "aria-invalid:has-[input:focus-visible]:ring-destructive", "data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", K[S]),
707
- "data-disabled": f || m || void 0,
708
- children: [/* @__PURE__ */ F("span", {
709
- ref: A,
710
- "aria-hidden": "true",
711
- "data-user-color": !0,
712
- className: "color-input--swatch absolute inset-1 rounded-radius-xs",
713
- style: { background: T || "transparent" }
714
- }), /* @__PURE__ */ F("input", {
715
- type: "color",
716
- value: D,
717
- disabled: f || m,
718
- "aria-label": u ?? x.chooseColor,
719
- onInput: (e) => {
720
- let t = Y(e.currentTarget.value);
721
- i === void 0 && ne(t), o && o({
722
- ...e,
723
- target: {
724
- ...e.currentTarget,
725
- value: t
726
- },
727
- currentTarget: {
728
- ...e.currentTarget,
729
- value: t
730
- }
731
- }), c?.(t);
732
- },
733
- className: "color-input--native absolute inset-0 size-full cursor-pointer opacity-0"
734
- })]
735
- }), /* @__PURE__ */ F(b, {
736
- ...v,
737
- ref: y,
738
- size: S,
739
- value: w,
740
- disabled: f,
741
- readOnly: m,
742
- invalid: h,
743
- onChange: j,
744
- strings: _,
745
- className: "min-w-0 flex-1 font-mono"
746
- })]
747
- });
748
- });
749
- ue.displayName = "ColorInput";
750
- //#endregion
751
- //#region src/components/base/value-inputs/slider.tsx
752
- var Z = { ariaLabel: "Value" };
753
- function Q({ name: e, id: t, "aria-label": i, "aria-labelledby": o, "aria-describedby": s, strings: l, value: u, defaultValue: d, min: f = 0, max: p = 100, step: m = 1, disabled: h = !1, invalid: g = !1, onChange: _, onValueChange: v, onValueCommitted: ee, showValue: y = !1, formatValue: b, unit: x, className: te, orientation: S = "horizontal" }, C) {
754
- let ne = M(), w = n(Z, l), T = t ?? `slider-${ne}`, E = e ?? T, D = i ?? w.ariaLabel, O = j((e) => {
755
- let t = Array.isArray(e) ? e[0] : e;
756
- v?.(t), _?.({ target: {
757
- name: E,
758
- value: t
759
- } });
760
- }, [
761
- E,
762
- _,
763
- v
764
- ]), k = j((e) => {
765
- let t = Array.isArray(e) ? e[0] : e;
766
- ee?.(t);
767
- }, [ee]), A = N(() => {
768
- if (!y) return null;
769
- let e = u ?? d ?? f;
770
- return b ? b(e) : x ? `${e}${x}` : String(e);
771
- }, [
772
- y,
773
- u,
774
- d,
775
- f,
776
- b,
777
- x
778
- ]), re = u === void 0 ? void 0 : [u], P = d === void 0 ? [f] : [d];
779
- return /* @__PURE__ */ I("div", {
780
- className: r("slider--component", "flex items-center gap-space-lg", te),
781
- children: [/* @__PURE__ */ F(L.Root, {
782
- ref: C,
783
- "data-slot": "slider",
784
- id: T,
785
- "aria-label": D,
786
- "aria-labelledby": o,
787
- "aria-describedby": s,
788
- value: re,
789
- defaultValue: P,
790
- min: f,
791
- max: p,
792
- step: m,
793
- disabled: h,
794
- orientation: S,
795
- onValueChange: O,
796
- onValueCommitted: k,
797
- "aria-invalid": g || void 0,
798
- className: r("box-border data-[orientation=horizontal]:w-full data-[orientation=horizontal]:px-[calc(var(--icon)/2)] data-[orientation=vertical]:h-full", "min-w-0 flex-1", g && "[&_[data-slot=slider-range]]:bg-destructive"),
799
- children: /* @__PURE__ */ I(L.Control, {
800
- className: "relative flex w-full touch-none items-center select-none data-disabled:opacity-50 data-[orientation=horizontal]:min-h-control data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-40 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",
801
- children: [/* @__PURE__ */ F(L.Track, {
802
- "data-slot": "slider-track",
803
- className: r("relative grow overflow-hidden rounded-full bg-muted select-none data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full", c),
804
- children: /* @__PURE__ */ F(L.Indicator, {
805
- "data-slot": "slider-range",
806
- className: "absolute bg-primary select-none data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full"
807
- })
808
- }), /* @__PURE__ */ F(L.Thumb, {
809
- index: 0,
810
- "data-slot": "slider-thumb",
811
- getAriaLabel: () => D,
812
- className: r("block size-icon shrink-0 rounded-full border border-primary bg-background shadow-sm transition-[color,box-shadow] select-none", "has-[:focus-visible]:outline-hidden has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring data-disabled:pointer-events-none", g && "border-destructive has-[:focus-visible]:ring-destructive")
813
- })]
814
- })
815
- }), !!y && A !== null && /* @__PURE__ */ F(a, {
816
- tag: "span",
817
- type: g ? "error" : "secondary",
818
- className: "min-w-8 shrink-0 text-right tabular-nums",
819
- children: A
820
- })]
821
- });
822
- }
823
- var de = O.forwardRef(Q);
824
- de.displayName = "SliderField";
825
- //#endregion
826
- //#region src/components/base/value-inputs/date-time-input.tsx
827
- var $ = k(function({ value: e, onValueChange: t, placeholder: n, readableFormat: r = "dd-MM-yyyy HH:mm", stepMinutes: i = 30, modal: a = !0, invalid: o, disabled: s, id: c }, l) {
828
- let u = e ? new Date(e) : void 0, d = j((e) => {
829
- t?.(e.date ? e.date.toISOString() : void 0);
830
- }, [t]);
831
- return /* @__PURE__ */ F(x, {
832
- ref: l,
833
- className: "date-time-input--component",
834
- id: c,
835
- mode: "single",
836
- disabled: s,
837
- invalid: o,
838
- placeholder: n,
839
- value: u,
840
- onValueChange: d,
841
- readableFormat: r,
842
- withTime: {
843
- enabled: !0,
844
- format: "24",
845
- step: i * 60
846
- },
847
- modal: a
848
- });
849
- });
850
- $.displayName = "DateTimeInput";
851
- //#endregion
852
- export { G as a, W as c, ue as i, se as l, de as n, z as o, Z as r, ce as s, $ as t, R as u };
853
-
854
- //# sourceMappingURL=value-inputs-CjfzGMsN.js.map