themelia-react-ui 2.0.3 → 2.0.4

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 (421) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +65 -28
  3. package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
  4. package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
  5. package/dist/action-menu-CHgs8vmj.js +281 -0
  6. package/dist/action-menu-CHgs8vmj.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
  8. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
  9. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
  10. package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
  11. package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
  12. package/dist/app-shell-D63ATkIK.js.map +1 -0
  13. package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
  14. package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
  15. package/dist/{auth-BGua8ouh.js → auth-D2FVZ1MH.js} +10 -10
  16. package/dist/{auth-BGua8ouh.js.map → auth-D2FVZ1MH.js.map} +1 -1
  17. package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
  18. package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
  19. package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
  20. package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.js.map} +1 -1
  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 +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +13 -13
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +1 -1
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +3 -3
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +6 -6
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +9 -9
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +1 -1
  53. package/dist/base/signature-pad.js +6 -6
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +4 -4
  56. package/dist/base/structure.js +1 -1
  57. package/dist/base/table.js +1 -1
  58. package/dist/base/text-inputs.js +2 -2
  59. package/dist/base/toaster.js +3 -3
  60. package/dist/base/tree.js +1 -1
  61. package/dist/base/upload-queue.js +1 -1
  62. package/dist/base/upload.js +3 -3
  63. package/dist/base/value-inputs.js +1 -1
  64. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
  65. package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
  66. package/dist/blocks/admin.js +20 -20
  67. package/dist/blocks/admin.js.map +1 -1
  68. package/dist/blocks/ai.js +15 -15
  69. package/dist/blocks/analytics/usage-card.js +1 -1
  70. package/dist/blocks/analytics.js +17 -17
  71. package/dist/blocks/analytics.js.map +1 -1
  72. package/dist/blocks/collaboration.js +1 -1
  73. package/dist/blocks/commerce/receipt.js +1 -1
  74. package/dist/blocks/commerce.js +570 -567
  75. package/dist/blocks/commerce.js.map +1 -1
  76. package/dist/blocks/data-display.js +2 -2
  77. package/dist/blocks/onboarding.js +5 -5
  78. package/dist/blocks/planning.js +11 -11
  79. package/dist/blocks/timelines.js +1 -1
  80. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
  81. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
  82. package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
  83. package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
  84. package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
  85. package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
  86. package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
  87. package/dist/cards-4JTWqvVe.js.map +1 -0
  88. package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
  89. package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
  90. package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
  91. package/dist/checkbox-CzYUTPeJ.js.map +1 -0
  92. package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
  93. package/dist/choice-inputs-JLtij2y4.js.map +1 -0
  94. package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
  95. package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
  96. package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
  97. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
  98. package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
  99. package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
  100. package/dist/{combobox-Dxo2fAYQ.js → combobox-CBJDs6w_.js} +12 -12
  101. package/dist/{combobox-Dxo2fAYQ.js.map → combobox-CBJDs6w_.js.map} +1 -1
  102. package/dist/{combobox-DaHESuiL.js → combobox-hbhSS18O.js} +7 -7
  103. package/dist/{combobox-DaHESuiL.js.map → combobox-hbhSS18O.js.map} +1 -1
  104. package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
  105. package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
  106. package/dist/{comments-DD0DUPwJ.js → comments-Di4w0H_S.js} +383 -382
  107. package/dist/comments-Di4w0H_S.js.map +1 -0
  108. package/dist/components/base/action-menu/action-menu.d.ts +2 -0
  109. package/dist/components/base/cards/card.recipes.d.ts +12 -5
  110. package/dist/components/base/cards/smart-card.types.d.ts +12 -7
  111. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  112. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  113. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  114. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  115. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  116. package/dist/components/base/forms/form-field.d.ts +5 -3
  117. package/dist/components/base/forms/index.d.ts +1 -0
  118. package/dist/components/base/forms/server-errors.d.ts +16 -0
  119. package/dist/components/base/forms/workflow.d.ts +5 -2
  120. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  121. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
  122. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  123. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  124. package/dist/components/base/text-inputs/input.d.ts +4 -2
  125. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  126. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  127. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  128. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  129. package/dist/components/typography/text.styles.d.ts +26 -1
  130. package/dist/composition.recipes-COdiFhxB.js +19 -0
  131. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  132. package/dist/containers-CRmHf7GP.js +104 -0
  133. package/dist/containers-CRmHf7GP.js.map +1 -0
  134. package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
  135. package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
  136. package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
  137. package/dist/data-display-D4oujtx0.js.map +1 -0
  138. package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
  139. package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
  140. package/dist/{date-picker-B2K3ucWn.js → date-picker-zOt1oNss.js} +102 -90
  141. package/dist/date-picker-zOt1oNss.js.map +1 -0
  142. package/dist/date-pickers-cj8IXbDC.js +179 -0
  143. package/dist/date-pickers-cj8IXbDC.js.map +1 -0
  144. package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
  145. package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
  146. package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
  147. package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
  148. package/dist/features/activities.js +11 -11
  149. package/dist/features/ai-chat.js +9 -9
  150. package/dist/features/appointment-calendar.js +222 -220
  151. package/dist/features/appointment-calendar.js.map +1 -1
  152. package/dist/features/async-preview.js +8 -8
  153. package/dist/features/combobox.js +1 -1
  154. package/dist/features/comments.js +1 -1
  155. package/dist/features/data-view.js +10 -10
  156. package/dist/features/email-composer.js +275 -274
  157. package/dist/features/email-composer.js.map +1 -1
  158. package/dist/features/event-calendar.js +199 -198
  159. package/dist/features/event-calendar.js.map +1 -1
  160. package/dist/features/filters.js +1 -1
  161. package/dist/features/global-search.js +12 -12
  162. package/dist/features/kanban.js +4 -4
  163. package/dist/features/map.js +7 -7
  164. package/dist/features/media-library.js +623 -622
  165. package/dist/features/media-library.js.map +1 -1
  166. package/dist/features/mentions.js +1 -1
  167. package/dist/features/overlays.js +1 -1
  168. package/dist/features/products.js +973 -969
  169. package/dist/features/products.js.map +1 -1
  170. package/dist/features/questionnaire.js +12 -12
  171. package/dist/features/resource-assignment.js +8 -8
  172. package/dist/features/resource.js +113 -112
  173. package/dist/features/resource.js.map +1 -1
  174. package/dist/features/rich-text-editor.js +2 -2
  175. package/dist/features/schema-form.js +254 -253
  176. package/dist/features/schema-form.js.map +1 -1
  177. package/dist/features/suggestions.js +3 -3
  178. package/dist/features/sync.js +3 -3
  179. package/dist/features/table.js +1 -1
  180. package/dist/features/theme-tweaker.js +19 -19
  181. package/dist/features/theme-tweaker.js.map +1 -1
  182. package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
  183. package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
  184. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
  185. package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
  186. package/dist/{filters-DJVAveHA.js → filters-BcT-uoFy.js} +19 -19
  187. package/dist/{filters-DJVAveHA.js.map → filters-BcT-uoFy.js.map} +1 -1
  188. package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
  189. package/dist/form-field-CsgRmdit.js.map +1 -0
  190. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
  191. package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
  192. package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
  193. package/dist/forms-BV5m5aQF.js.map +1 -0
  194. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
  195. package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
  196. package/dist/{header-BSfIEWbI.js → header-BA697l4a.js} +14 -14
  197. package/dist/{header-BSfIEWbI.js.map → header-BA697l4a.js.map} +1 -1
  198. package/dist/hooks/useFormErrors.d.ts +1 -1
  199. package/dist/{hooks-ClH9thn4.js → hooks-BQ-L7Uu2.js} +2 -2
  200. package/dist/{hooks-ClH9thn4.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
  201. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
  202. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
  203. package/dist/index.js +2 -2
  204. package/dist/input-Cdw4k0fb.js +289 -0
  205. package/dist/input-Cdw4k0fb.js.map +1 -0
  206. package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
  207. package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
  208. package/dist/item-BvZ2DR_x.js +277 -0
  209. package/dist/item-BvZ2DR_x.js.map +1 -0
  210. package/dist/layout/app-shell.js +1 -1
  211. package/dist/layout/auth.js +1 -1
  212. package/dist/layout/containers.js +1 -1
  213. package/dist/layout/header.js +1 -1
  214. package/dist/layout/hooks.js +1 -1
  215. package/dist/layout/navigation.js +1 -1
  216. package/dist/layout/page.js +1 -1
  217. package/dist/layout/settings.js +1 -1
  218. package/dist/layout/sidebar.js +2 -2
  219. package/dist/layout/workspace.js +1 -1
  220. package/dist/layout.js +10 -10
  221. package/dist/lib/affordance-geometry.generated.d.ts +6 -0
  222. package/dist/lib/ui-provider/types.d.ts +1 -1
  223. package/dist/lib/utils.js +1 -1
  224. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
  225. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
  226. package/dist/{mentions-CGlEJ15c.js → mentions-RKOQaaIB.js} +8 -8
  227. package/dist/{mentions-CGlEJ15c.js.map → mentions-RKOQaaIB.js.map} +1 -1
  228. package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
  229. package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
  230. package/dist/metadata-list-qVV7AVxa.js +443 -0
  231. package/dist/metadata-list-qVV7AVxa.js.map +1 -0
  232. package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
  233. package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
  234. package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
  235. package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
  236. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
  237. package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
  238. package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
  239. package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
  240. package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
  241. package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
  242. package/dist/{overlays-tMkF-VAN.js → overlays-BlKynmde.js} +228 -227
  243. package/dist/overlays-BlKynmde.js.map +1 -0
  244. package/dist/page-CIwNUtGr.js +227 -0
  245. package/dist/page-CIwNUtGr.js.map +1 -0
  246. package/dist/page-header-commands-DFMlNYzN.js +128 -0
  247. package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
  248. package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
  249. package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
  250. package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-BYaCdFhf.js} +6 -6
  251. package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
  252. package/dist/{popover-gnTOhbFM.js → popover-uwzX2vo7.js} +4 -4
  253. package/dist/{popover-gnTOhbFM.js.map → popover-uwzX2vo7.js.map} +1 -1
  254. package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
  255. package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
  256. package/dist/primitives.js +4 -4
  257. package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
  258. package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
  259. package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
  260. package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
  261. package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
  262. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
  263. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
  264. package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
  265. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
  266. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
  267. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
  268. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
  269. package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
  270. package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
  271. package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
  272. package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
  273. package/dist/services/actions.js +1 -1
  274. package/dist/settings-BA2iboic.js +174 -0
  275. package/dist/settings-BA2iboic.js.map +1 -0
  276. package/dist/{sheet-ijlsjq-n.js → sheet-DoAxTb2J.js} +7 -7
  277. package/dist/{sheet-ijlsjq-n.js.map → sheet-DoAxTb2J.js.map} +1 -1
  278. package/dist/{sidebar-DkTO4VTO.js → sidebar-ByqKR_W5.js} +13 -13
  279. package/dist/{sidebar-DkTO4VTO.js.map → sidebar-ByqKR_W5.js.map} +1 -1
  280. package/dist/{sidebar-Db6gkh3U.js → sidebar-D2iSnGJ7.js} +11 -11
  281. package/dist/{sidebar-Db6gkh3U.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
  282. package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
  283. package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
  284. package/dist/smart-card-CqkzQsK-.js +614 -0
  285. package/dist/smart-card-CqkzQsK-.js.map +1 -0
  286. package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
  287. package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
  288. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  289. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  290. package/dist/style.css +1 -1
  291. package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
  292. package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
  293. package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
  294. package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
  295. package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
  296. package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
  297. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
  298. package/dist/text-inputs-DXItiR0O.js.map +1 -0
  299. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  300. package/dist/text.styles-B64My8RZ.js.map +1 -0
  301. package/dist/theme.css +152 -112
  302. package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
  303. package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
  304. package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
  305. package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
  306. package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
  307. package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
  308. package/dist/typography/rich-text.js +1 -1
  309. package/dist/typography-CSyJrh28.js +117 -0
  310. package/dist/typography-CSyJrh28.js.map +1 -0
  311. package/dist/typography.js +1 -1
  312. package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
  313. package/dist/ui-provider-CQCuCBcy.js.map +1 -0
  314. package/dist/ui-provider.js +1 -1
  315. package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
  316. package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
  317. package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
  318. package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
  319. package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
  320. package/dist/usage-card-DVTRDmGz.js.map +1 -0
  321. package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
  322. package/dist/utils-CF3c95Io.js.map +1 -0
  323. package/dist/value-inputs-C0o70p-U.js +980 -0
  324. package/dist/value-inputs-C0o70p-U.js.map +1 -0
  325. package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
  326. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
  327. package/dist/workspace-9EFVXUyk.js +410 -0
  328. package/dist/workspace-9EFVXUyk.js.map +1 -0
  329. package/docs/consumer-skill/SKILL.md +14 -129
  330. package/docs/consumer-skill/examples/app-layout.tsx +22 -12
  331. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  332. package/docs/consumer-skill/examples/edit.tsx +30 -38
  333. package/docs/consumer-skill/examples/manifest.json +51 -1
  334. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  335. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  336. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
  337. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  338. package/docs/consumer-skill/references/agents-md.md +17 -7
  339. package/docs/consumer-skill/references/authentication.md +42 -0
  340. package/docs/consumer-skill/references/component-contracts.json +319824 -0
  341. package/docs/consumer-skill/references/composition-mapping.md +92 -0
  342. package/docs/consumer-skill/references/composition.md +43 -19
  343. package/docs/consumer-skill/references/design-contract.md +32 -0
  344. package/docs/consumer-skill/references/discovery.md +84 -7
  345. package/docs/consumer-skill/references/installation.md +40 -36
  346. package/docs/consumer-skill/references/integration.md +6 -2
  347. package/docs/consumer-skill/references/public-api.json +1519 -65
  348. package/docs/consumer-skill/references/review.md +9 -4
  349. package/docs/consumer-skill/references/rhf-workflows.md +86 -0
  350. package/docs/consumer-skill/references/screen-archetypes.md +22 -0
  351. package/docs/consumer-skill/references/theming.md +8 -9
  352. package/docs/consumer-skill/references/tokens.json +12 -3
  353. package/docs/consumer-skill/references/workflows.md +2 -1
  354. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  355. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  356. package/docs/consumer-skill/scripts/composition.mjs +198 -0
  357. package/docs/consumer-skill/scripts/discovery.mjs +42 -10
  358. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  359. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  360. package/docs/consumer-skill/scripts/inspection.mjs +138 -0
  361. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  362. package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
  363. package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
  364. package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
  365. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  366. package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
  367. package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
  368. package/package.json +4 -2
  369. package/templates/README.md +39 -0
  370. package/templates/admin-shell-template.tsx +382 -0
  371. package/templates/analytics-operations-template.tsx +376 -0
  372. package/templates/customers-template.tsx +509 -0
  373. package/templates/index.ts +29 -0
  374. package/templates/orders-template.tsx +1102 -0
  375. package/templates/products-template.tsx +834 -0
  376. package/templates/user-permissions-template.tsx +450 -0
  377. package/dist/action-menu-CllU52Mm.js +0 -280
  378. package/dist/action-menu-CllU52Mm.js.map +0 -1
  379. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  380. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  381. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  382. package/dist/cards-BaBZR-AU.js.map +0 -1
  383. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  384. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  385. package/dist/comments-DD0DUPwJ.js.map +0 -1
  386. package/dist/containers-Mu1LMGV1.js +0 -103
  387. package/dist/containers-Mu1LMGV1.js.map +0 -1
  388. package/dist/data-display-DT_khPl_.js.map +0 -1
  389. package/dist/date-picker-B2K3ucWn.js.map +0 -1
  390. package/dist/date-pickers-Ds8gLaoP.js +0 -175
  391. package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
  392. package/dist/form-field-CwH9y77i.js.map +0 -1
  393. package/dist/forms-B9G_xwzi.js.map +0 -1
  394. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  395. package/dist/input-DQdEd0YD.js +0 -263
  396. package/dist/input-DQdEd0YD.js.map +0 -1
  397. package/dist/item-K5_ghvze.js +0 -275
  398. package/dist/item-K5_ghvze.js.map +0 -1
  399. package/dist/metadata-list-8N16ZMW_.js +0 -405
  400. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  401. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  402. package/dist/overlays-tMkF-VAN.js.map +0 -1
  403. package/dist/page-CL9YeH_V.js +0 -224
  404. package/dist/page-CL9YeH_V.js.map +0 -1
  405. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  406. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  407. package/dist/settings-ybnjVwbd.js +0 -171
  408. package/dist/settings-ybnjVwbd.js.map +0 -1
  409. package/dist/smart-card-DiC5aac3.js +0 -604
  410. package/dist/smart-card-DiC5aac3.js.map +0 -1
  411. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  412. package/dist/text.styles-g4He6UIW.js.map +0 -1
  413. package/dist/typography-UTnveOEy.js +0 -117
  414. package/dist/typography-UTnveOEy.js.map +0 -1
  415. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  416. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  417. package/dist/utils-BRhFDwuU.js.map +0 -1
  418. package/dist/value-inputs-TaX4OjNk.js +0 -963
  419. package/dist/value-inputs-TaX4OjNk.js.map +0 -1
  420. package/dist/workspace-B-OEm3Kf.js +0 -408
  421. package/dist/workspace-B-OEm3Kf.js.map +0 -1
@@ -1,32 +1,34 @@
1
1
  "use client";
2
2
  import { useStrings as e } from "../lib/strings.js";
3
- import { t } from "../utils-BRhFDwuU.js";
4
- import { n } from "../buttons-DPZekJFu.js";
5
- import { c as r } from "../typography-UTnveOEy.js";
6
- import { t as i } from "../structure-BmisBK-3.js";
7
- import { t as a } from "../smart-card-DiC5aac3.js";
8
- import { t as o } from "../input-DQdEd0YD.js";
9
- import { t as s } from "../form-field-CwH9y77i.js";
10
- import { d as c } from "../text-inputs-f9Ia-aCi.js";
11
- import { a as l, i as u, l as d, o as f, r as p } from "../choice-inputs-CNHvARCJ.js";
12
- import { n as m } from "../display-hAc1HjpI.js";
13
- import { u as h } from "../value-inputs-TaX4OjNk.js";
14
- import { d as g } from "../forms-numeric-B_jraJaQ.js";
15
- import { s as _ } from "../data-display-DT_khPl_.js";
16
- import { Fragment as v, useCallback as y, useEffect as b, useId as x, useMemo as S, useState as C } from "react";
17
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
3
+ import { t } from "../utils-CF3c95Io.js";
4
+ import { n } from "../buttons-BbfzgczK.js";
5
+ import { c as r } from "../typography-CSyJrh28.js";
6
+ import { t as i } from "../text.styles-B64My8RZ.js";
7
+ import { t as a } from "../structure-C0V0_Fyf.js";
8
+ import { t as o } from "../smart-card-CqkzQsK-.js";
9
+ import { n as s } from "../composition.recipes-COdiFhxB.js";
10
+ import { t as c } from "../input-Cdw4k0fb.js";
11
+ import { t as l } from "../form-field-CsgRmdit.js";
12
+ import { d as u } from "../text-inputs-DXItiR0O.js";
13
+ import { a as d, i as f, l as p, o as m, r as h } from "../choice-inputs-JLtij2y4.js";
14
+ import { n as g } from "../display-BB4BL_-K.js";
15
+ import { u as _ } from "../value-inputs-C0o70p-U.js";
16
+ import { d as v } from "../forms-numeric-Cd33AKbD.js";
17
+ import { s as y } from "../data-display-D4oujtx0.js";
18
+ import { Fragment as b, useCallback as x, useEffect as S, useId as C, useMemo as w, useState as T } from "react";
19
+ import { jsx as E, jsxs as D } from "react/jsx-runtime";
18
20
  //#region src/components/features/schema-form/schema-form.utils.ts
19
- var E = {
21
+ var O = {
20
22
  1: "grid grid-cols-1 gap-space-xl",
21
23
  2: "grid grid-cols-1 gap-space-xl @md/schema-form:grid-cols-2",
22
24
  3: "grid grid-cols-1 gap-space-xl @md/schema-form:grid-cols-2 @xl/schema-form:grid-cols-3"
23
- }, D = {
25
+ }, ee = {
24
26
  auto: "",
25
27
  half: "@md/schema-form:col-span-1",
26
28
  third: "@xl/schema-form:col-span-1",
27
29
  full: "@md/schema-form:col-span-full @xl/schema-form:col-span-full"
28
30
  };
29
- function O(e, t, n) {
31
+ function k(e, t, n) {
30
32
  if (typeof e.hidden == "function") try {
31
33
  return e.hidden(t);
32
34
  } catch (e) {
@@ -34,7 +36,7 @@ function O(e, t, n) {
34
36
  }
35
37
  return e.hidden ?? !1;
36
38
  }
37
- function ee(e, t, n) {
39
+ function te(e, t, n) {
38
40
  if (typeof e.disabled == "function") try {
39
41
  return e.disabled(t);
40
42
  } catch (e) {
@@ -42,11 +44,11 @@ function ee(e, t, n) {
42
44
  }
43
45
  return e.disabled ?? !1;
44
46
  }
45
- function k(e, t, n) {
46
- return e.filter((e) => !O(e, t, n));
47
+ function ne(e, t, n) {
48
+ return e.filter((e) => !k(e, t, n));
47
49
  }
48
- function te(e, t, n, r, i) {
49
- let a = k(e.fields, t, i), o = new Map(a.map((e) => [e.key, e])), s = /* @__PURE__ */ new Set(), c = [];
50
+ function re(e, t, n, r, i) {
51
+ let a = ne(e.fields, t, i), o = new Map(a.map((e) => [e.key, e])), s = /* @__PURE__ */ new Set(), c = [];
50
52
  for (let t of e.sections ?? []) {
51
53
  let e = t.fields ? t.fields.map((e) => o.get(e)).filter((e) => e !== void 0) : a.filter((e) => e.sectionId === t.id);
52
54
  for (let t of e) s.add(t.key);
@@ -78,13 +80,13 @@ function j(e) {
78
80
  function M(e) {
79
81
  return e === !0 || e === "true" || e === 1;
80
82
  }
81
- function N(e, t = !1) {
83
+ function ie(e, t = !1) {
82
84
  let n = e.trim();
83
85
  if (n.length === 0) return null;
84
86
  let r = t ? Number.parseInt(n, 10) : Number.parseFloat(n);
85
87
  return Number.isNaN(r) ? null : r;
86
88
  }
87
- function P(e, t = 2) {
89
+ function N(e, t = 2) {
88
90
  if (e == null) return "";
89
91
  if (typeof e == "string") return e;
90
92
  try {
@@ -93,7 +95,7 @@ function P(e, t = 2) {
93
95
  return String(e);
94
96
  }
95
97
  }
96
- function F(e) {
98
+ function P(e) {
97
99
  let t = e.trim();
98
100
  if (t.length === 0) return {
99
101
  value: null,
@@ -113,21 +115,21 @@ function F(e) {
113
115
  }
114
116
  //#endregion
115
117
  //#region src/components/features/schema-form/hooks/use-schema-form.ts
116
- function I(e, t) {
118
+ function F(e, t) {
117
119
  let n = { ...t };
118
120
  for (let t of e) t.defaultValue !== void 0 && n[t.key] === void 0 && (n[t.key] = t.defaultValue);
119
121
  return n;
120
122
  }
121
- function L(e) {
123
+ function I(e) {
122
124
  return e == null ? !0 : typeof e == "string" ? e.trim().length === 0 : Array.isArray(e) ? e.length === 0 : !1;
123
125
  }
124
- function R(e) {
126
+ function ae(e) {
125
127
  let t = {};
126
128
  for (let [n, r] of Object.entries(e ?? {})) r && (t[n] = r);
127
129
  return t;
128
130
  }
129
- function ne({ fields: e, value: t, defaultValue: n, errors: r, onValueChange: i, onFieldChange: a, formatRequiredError: o, validationError: s, onError: c }) {
130
- let l = t !== void 0, u = S(() => I(e, n), [n, e]), [d, f] = C(() => u), [p, m] = C({}), h = S(() => l ? {
131
+ function L({ fields: e, value: t, defaultValue: n, errors: r, onValueChange: i, onFieldChange: a, formatRequiredError: o, validationError: s, onError: c }) {
132
+ let l = t !== void 0, u = w(() => F(e, n), [n, e]), [d, f] = T(() => u), [p, m] = T({}), h = w(() => l ? {
131
133
  ...u,
132
134
  ...t
133
135
  } : d, [
@@ -135,12 +137,12 @@ function ne({ fields: e, value: t, defaultValue: n, errors: r, onValueChange: i,
135
137
  d,
136
138
  l,
137
139
  t
138
- ]), g = S(() => ({
140
+ ]), g = w(() => ({
139
141
  ...p,
140
- ...R(r)
141
- }), [r, p]), _ = y((e) => {
142
+ ...ae(r)
143
+ }), [r, p]), _ = x((e) => {
142
144
  l || f(e), i?.(e);
143
- }, [l, i]), v = y((e, t) => {
145
+ }, [l, i]), v = x((e, t) => {
144
146
  let n = {
145
147
  ...h,
146
148
  [e]: t
@@ -155,20 +157,20 @@ function ne({ fields: e, value: t, defaultValue: n, errors: r, onValueChange: i,
155
157
  a,
156
158
  i,
157
159
  h
158
- ]), b = y(() => {
159
- let t = I(e, n);
160
+ ]), y = x(() => {
161
+ let t = F(e, n);
160
162
  return l || f(t), m({}), i?.(t), t;
161
163
  }, [
162
164
  n,
163
165
  e,
164
166
  l,
165
167
  i
166
- ]), x = y(() => {
168
+ ]), b = x(() => {
167
169
  let t = {};
168
170
  for (let n of e) {
169
- if (O(n, h, c)) continue;
171
+ if (k(n, h, c)) continue;
170
172
  let e = h[n.key];
171
- if (n.required && L(e)) {
173
+ if (n.required && I(e)) {
172
174
  t[n.key] = o(n.label);
173
175
  continue;
174
176
  }
@@ -195,44 +197,44 @@ function ne({ fields: e, value: t, defaultValue: n, errors: r, onValueChange: i,
195
197
  return {
196
198
  values: h,
197
199
  errors: g,
198
- getFieldError: y((e) => g[e], [g]),
199
- getFieldValue: y((e) => h[e], [h]),
200
+ getFieldError: x((e) => g[e], [g]),
201
+ getFieldValue: x((e) => h[e], [h]),
200
202
  setFieldValue: v,
201
203
  setValues: _,
202
- reset: b,
203
- validate: x
204
+ reset: y,
205
+ validate: b
204
206
  };
205
207
  }
206
208
  //#endregion
207
209
  //#region src/components/features/schema-form/partials/schema-form-actions.tsx
208
- function z({ submitLabel: e, resetLabel: r, showReset: a = !1, disabled: o = !1, submitDisabled: s = !1, resetDisabled: c = !1, submitting: l = !1, onReset: u, className: d }) {
209
- return /* @__PURE__ */ T(i, {
210
+ function R({ submitLabel: e, resetLabel: r, showReset: i = !1, disabled: o = !1, submitDisabled: c = !1, resetDisabled: l = !1, submitting: u = !1, onReset: d, className: f }) {
211
+ return /* @__PURE__ */ D(a, {
210
212
  direction: "horizontal",
211
213
  align: "center",
212
214
  justify: "end",
213
- gap: "md",
214
- className: t("schema-form-actions--component", d),
215
- children: [!!a && /* @__PURE__ */ w(n, {
215
+ gap: s.commands,
216
+ className: t("schema-form-actions--component", f),
217
+ children: [!!i && /* @__PURE__ */ E(n, {
216
218
  type: "button",
217
219
  tone: "secondary",
218
220
  buttonStyle: "outline",
219
- disabled: o || c || l,
220
- onClick: u,
221
+ disabled: o || l || u,
222
+ onClick: d,
221
223
  children: r
222
- }), /* @__PURE__ */ w(n, {
224
+ }), /* @__PURE__ */ E(n, {
223
225
  type: "submit",
224
226
  tone: "primary",
225
- loading: l,
226
- disabled: o || s,
227
+ loading: u,
228
+ disabled: o || c,
227
229
  children: e
228
230
  })]
229
231
  });
230
232
  }
231
- z.displayName = "SchemaFormActions";
233
+ R.displayName = "SchemaFormActions";
232
234
  //#endregion
233
235
  //#region src/components/features/schema-form/partials/schema-form-empty.tsx
234
- function B({ title: e, description: n, className: r }) {
235
- return /* @__PURE__ */ w(_, {
236
+ function z({ title: e, description: n, className: r }) {
237
+ return /* @__PURE__ */ E(y, {
236
238
  title: e,
237
239
  description: n,
238
240
  padding: "md",
@@ -240,13 +242,13 @@ function B({ title: e, description: n, className: r }) {
240
242
  className: t("schema-form-empty--component bg-muted/30", r)
241
243
  });
242
244
  }
243
- B.displayName = "SchemaFormEmpty";
245
+ z.displayName = "SchemaFormEmpty";
244
246
  //#endregion
245
247
  //#region src/components/features/schema-form/partials/schema-form-field.tsx
246
- function V(e) {
248
+ function B(e) {
247
249
  return e.hint ?? e.description;
248
250
  }
249
- function H(e, t, n, r) {
251
+ function V(e, t, n, r) {
250
252
  if (e.formatValue) try {
251
253
  return e.formatValue(t, n);
252
254
  } catch (e) {
@@ -254,7 +256,7 @@ function H(e, t, n, r) {
254
256
  }
255
257
  return A(t);
256
258
  }
257
- function U(e, t, n, r) {
259
+ function H(e, t, n, r) {
258
260
  if (e.parseValue) try {
259
261
  return e.parseValue(t, n);
260
262
  } catch (e) {
@@ -262,13 +264,13 @@ function U(e, t, n, r) {
262
264
  }
263
265
  return t;
264
266
  }
265
- function re(e, t, n, r, i) {
267
+ function U(e, t, n, r, i) {
266
268
  if (e.parseValue) try {
267
269
  return e.parseValue(t, n);
268
270
  } catch (e) {
269
271
  i?.(e);
270
272
  }
271
- return N(t, r);
273
+ return ie(t, r);
272
274
  }
273
275
  function W(e, t, n, r) {
274
276
  if (e.type === "json" && e.parseValue) try {
@@ -282,39 +284,39 @@ function W(e, t, n, r) {
282
284
  valid: !1
283
285
  };
284
286
  }
285
- return F(t);
287
+ return P(t);
286
288
  }
287
- function G(e) {
289
+ function oe(e) {
288
290
  if (!e.icon) return;
289
291
  let t = e.icon;
290
- return /* @__PURE__ */ w(t, {
292
+ return /* @__PURE__ */ E(t, {
291
293
  className: "size-icon",
292
294
  "aria-hidden": "true"
293
295
  });
294
296
  }
295
- function K({ field: e, value: n, values: r, error: i, disabled: a, fieldId: o, onValueChange: l, onError: u, strings: d }) {
296
- let f = e.type === "json" ? e.jsonIndent ?? 2 : 2, [p, m] = C(() => P(n, f)), [h, g] = C(), [_, v] = C(!1);
297
- if (b(() => {
298
- _ || m(P(n, f));
297
+ function G({ field: e, value: n, values: r, error: i, disabled: a, fieldId: o, onValueChange: s, onError: c, strings: d }) {
298
+ let f = e.type === "json" ? e.jsonIndent ?? 2 : 2, [p, m] = T(() => N(n, f)), [h, g] = T(), [_, v] = T(!1);
299
+ if (S(() => {
300
+ _ || m(N(n, f));
299
301
  }, [
300
302
  f,
301
303
  _,
302
304
  n
303
305
  ]), e.type !== "json") return null;
304
306
  let y = (t) => {
305
- let n = W(e, t, r, u);
306
- return g(n.valid ? void 0 : d.jsonParseError), l(n.value), n;
307
+ let n = W(e, t, r, c);
308
+ return g(n.valid ? void 0 : d.jsonParseError), s(n.value), n;
307
309
  };
308
- return /* @__PURE__ */ w(s, {
310
+ return /* @__PURE__ */ E(l, {
309
311
  label: e.label,
310
312
  required: e.required,
311
- hint: V(e),
313
+ hint: B(e),
312
314
  helperText: e.helperText,
313
315
  error: i ?? h,
314
316
  htmlFor: o,
315
317
  supportingTextId: `${o}-supporting`,
316
318
  className: "schema-form-field--component schema-form-field--json",
317
- children: /* @__PURE__ */ w(c, {
319
+ children: /* @__PURE__ */ E(u, {
318
320
  id: o,
319
321
  name: e.key,
320
322
  value: p,
@@ -328,31 +330,31 @@ function K({ field: e, value: n, values: r, error: i, disabled: a, fieldId: o, o
328
330
  onChange: (t) => {
329
331
  let n = t.target.value;
330
332
  m(n);
331
- let i = W(e, n, r, u);
332
- g(i.valid ? void 0 : d.jsonParseError), l(i.value);
333
+ let i = W(e, n, r, c);
334
+ g(i.valid ? void 0 : d.jsonParseError), s(i.value);
333
335
  },
334
336
  onBlur: () => {
335
337
  v(!1);
336
338
  let e = y(p);
337
- e.valid && m(P(e.value, f));
339
+ e.valid && m(N(e.value, f));
338
340
  },
339
341
  ...e.textareaProps,
340
- "aria-describedby": [e.textareaProps?.["aria-describedby"], i || h || e.helperText || V(e) ? `${o}-supporting` : void 0].filter(Boolean).join(" ") || void 0
342
+ "aria-describedby": [e.textareaProps?.["aria-describedby"], i || h || e.helperText || B(e) ? `${o}-supporting` : void 0].filter(Boolean).join(" ") || void 0
341
343
  })
342
344
  });
343
345
  }
344
- function q({ field: e, value: n, values: r, error: i, disabled: a, required: m, fieldId: _, onValueChange: v, onError: y, strings: b, className: x }) {
346
+ function K({ field: e, value: n, values: r, error: i, disabled: a, required: o, fieldId: s, onValueChange: g, onError: y, strings: b, className: x }) {
345
347
  let S = e.type ?? "text", C = {
346
348
  label: e.label,
347
- required: m,
348
- hint: V(e),
349
+ required: o,
350
+ hint: B(e),
349
351
  helperText: e.helperText,
350
352
  error: i,
351
- htmlFor: _,
352
- supportingTextId: `${_}-supporting`,
353
+ htmlFor: s,
354
+ supportingTextId: `${s}-supporting`,
353
355
  className: t("schema-form-field--component", x)
354
- }, T = e.controlClassName, E = i || e.helperText || V(e) ? `${_}-supporting` : void 0;
355
- if (S === "custom" && e.type === "custom") return /* @__PURE__ */ w("div", {
356
+ }, w = e.controlClassName, T = i || e.helperText || B(e) ? `${s}-supporting` : void 0;
357
+ if (S === "custom" && e.type === "custom") return /* @__PURE__ */ E("div", {
356
358
  className: t("schema-form-field--component schema-form-field--custom", x),
357
359
  children: e.render({
358
360
  field: e,
@@ -360,19 +362,19 @@ function q({ field: e, value: n, values: r, error: i, disabled: a, required: m,
360
362
  values: r,
361
363
  error: i,
362
364
  disabled: a,
363
- required: m,
364
- fieldId: _,
365
- onValueChange: v,
365
+ required: o,
366
+ fieldId: s,
367
+ onValueChange: g,
366
368
  onError: y
367
369
  })
368
370
  });
369
371
  if (S === "switch" && e.type === "switch") {
370
372
  let r = M(n);
371
- return e.switchStyle === "card" ? /* @__PURE__ */ w(s, {
373
+ return e.switchStyle === "card" ? /* @__PURE__ */ E(l, {
372
374
  error: i,
373
- supportingTextId: `${_}-supporting`,
375
+ supportingTextId: `${s}-supporting`,
374
376
  className: t("schema-form-field--component schema-form-field--switch-card", x),
375
- children: /* @__PURE__ */ w(f, {
377
+ children: /* @__PURE__ */ E(m, {
376
378
  label: e.label,
377
379
  description: e.description,
378
380
  hint: e.hint,
@@ -380,84 +382,84 @@ function q({ field: e, value: n, values: r, error: i, disabled: a, required: m,
380
382
  value: r,
381
383
  disabled: a,
382
384
  invalid: !!i,
383
- className: T,
384
- onValueChange: (e) => v(e),
385
+ className: w,
386
+ onValueChange: (e) => g(e),
385
387
  ...e.switchCardProps,
386
- "aria-describedby": [e.switchCardProps?.["aria-describedby"], i ? `${_}-supporting` : void 0].filter(Boolean).join(" ") || void 0
388
+ "aria-describedby": [e.switchCardProps?.["aria-describedby"], i ? `${s}-supporting` : void 0].filter(Boolean).join(" ") || void 0
387
389
  })
388
- }) : /* @__PURE__ */ w(s, {
390
+ }) : /* @__PURE__ */ E(l, {
389
391
  error: i,
390
- supportingTextId: `${_}-supporting`,
392
+ supportingTextId: `${s}-supporting`,
391
393
  className: t("schema-form-field--component schema-form-field--switch", x),
392
- children: /* @__PURE__ */ w(l, {
394
+ children: /* @__PURE__ */ E(d, {
393
395
  label: e.label,
394
396
  description: e.description ?? e.hint,
395
397
  name: e.key,
396
398
  value: r,
397
399
  disabled: a,
398
400
  invalid: !!i,
399
- className: T,
400
- onValueChange: (e) => v(e),
401
+ className: w,
402
+ onValueChange: (e) => g(e),
401
403
  ...e.switchProps,
402
- "aria-describedby": [e.switchProps?.["aria-describedby"], i ? `${_}-supporting` : void 0].filter(Boolean).join(" ") || void 0
404
+ "aria-describedby": [e.switchProps?.["aria-describedby"], i ? `${s}-supporting` : void 0].filter(Boolean).join(" ") || void 0
403
405
  })
404
406
  });
405
407
  }
406
- if (S === "json") return /* @__PURE__ */ w(K, {
408
+ if (S === "json") return /* @__PURE__ */ E(G, {
407
409
  field: e,
408
410
  value: n,
409
411
  values: r,
410
412
  error: i,
411
413
  disabled: a,
412
- required: m,
413
- fieldId: _,
414
- onValueChange: v,
414
+ required: o,
415
+ fieldId: s,
416
+ onValueChange: g,
415
417
  onError: y,
416
418
  strings: b
417
419
  });
418
420
  if (S === "textarea" && e.type === "textarea") {
419
- let t = H(e, n, r, y);
420
- return /* @__PURE__ */ w(s, {
421
+ let t = V(e, n, r, y);
422
+ return /* @__PURE__ */ E(l, {
421
423
  ...C,
422
- children: /* @__PURE__ */ w(c, {
423
- "aria-describedby": E,
424
- id: _,
424
+ children: /* @__PURE__ */ E(u, {
425
+ "aria-describedby": T,
426
+ id: s,
425
427
  name: e.key,
426
428
  value: t,
427
429
  rows: e.rows,
428
430
  disabled: a,
429
- required: m,
431
+ required: o,
430
432
  invalid: !!i,
431
433
  placeholder: e.placeholder,
432
- className: T,
433
- onChange: (t) => v(U(e, t.target.value, r, y)),
434
+ className: w,
435
+ onChange: (t) => g(H(e, t.target.value, r, y)),
434
436
  ...e.textareaProps
435
437
  })
436
438
  });
437
439
  }
438
440
  if ((S === "number" || S === "integer" || S === "decimal") && (e.type === "number" || e.type === "integer" || e.type === "decimal")) {
439
- let t = H(e, n, r, y), o = e.type === "integer", c = o ? 0 : e.decimalPlaces ?? (e.type === "decimal" ? 2 : 4);
440
- return /* @__PURE__ */ w(s, {
441
+ let t = V(e, n, r, y), c = e.type === "integer", u = c ? 0 : e.decimalPlaces ?? (e.type === "decimal" ? 2 : 4);
442
+ return /* @__PURE__ */ E(l, {
441
443
  ...C,
442
- children: /* @__PURE__ */ w(g, {
443
- id: _,
444
+ children: /* @__PURE__ */ E(v, {
445
+ id: s,
444
446
  name: e.key,
445
447
  value: t,
446
448
  min: e.min,
447
449
  max: e.max,
448
450
  step: e.step,
449
- decimalPlaces: c,
451
+ decimalPlaces: u,
450
452
  disabled: a,
451
- required: m,
453
+ required: o,
452
454
  invalid: !!i,
453
455
  placeholder: e.placeholder,
454
- className: T,
456
+ className: w,
455
457
  onChange: (t) => {
456
458
  let n = t.target.value;
457
- v(re(e, n, r, o, y));
459
+ g(U(e, n, r, c, y));
458
460
  },
459
461
  ...e.numberProps,
460
- "aria-describedby": [e.numberProps?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
462
+ "aria-describedby": [e.numberProps?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
461
463
  })
462
464
  });
463
465
  }
@@ -466,96 +468,96 @@ function q({ field: e, value: n, values: r, error: i, disabled: a, required: m,
466
468
  value: e.value,
467
469
  label: e.label,
468
470
  disabled: e.disabled,
469
- icon: G(e)
471
+ icon: oe(e)
470
472
  }));
471
- return /* @__PURE__ */ w(s, {
473
+ return /* @__PURE__ */ E(l, {
472
474
  ...C,
473
- children: /* @__PURE__ */ w(d, {
475
+ children: /* @__PURE__ */ E(p, {
474
476
  name: e.key,
475
477
  value: A(n),
476
478
  options: t,
477
479
  allowClear: e.allowClear,
478
480
  disabled: a,
479
- required: m,
481
+ required: o,
480
482
  invalid: !!i,
481
483
  placeholder: e.placeholder,
482
484
  "aria-label": e.label,
483
- className: T,
484
- onValueChange: (e) => v(e ?? null),
485
+ className: w,
486
+ onValueChange: (e) => g(e ?? null),
485
487
  ...e.selectProps,
486
- "aria-describedby": [e.selectProps?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
488
+ "aria-describedby": [e.selectProps?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
487
489
  })
488
490
  });
489
491
  }
490
- if (S === "radio-cards" && e.type === "radio-cards") return /* @__PURE__ */ w(s, {
492
+ if (S === "radio-cards" && e.type === "radio-cards") return /* @__PURE__ */ E(l, {
491
493
  ...C,
492
- children: /* @__PURE__ */ w(p, {
494
+ children: /* @__PURE__ */ E(h, {
493
495
  name: e.key,
494
496
  value: A(n),
495
497
  options: e.options,
496
498
  columns: e.columns,
497
499
  disabled: a,
498
500
  invalid: !!i,
499
- className: T,
500
- onValueChange: (e) => v(e),
501
+ className: w,
502
+ onValueChange: (e) => g(e),
501
503
  ...e.radioProps,
502
- "aria-describedby": [e.radioProps?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
504
+ "aria-describedby": [e.radioProps?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
503
505
  })
504
506
  });
505
- if (S === "checkbox-cards" && e.type === "checkbox-cards") return /* @__PURE__ */ w(s, {
507
+ if (S === "checkbox-cards" && e.type === "checkbox-cards") return /* @__PURE__ */ E(l, {
506
508
  ...C,
507
- children: /* @__PURE__ */ w(u, {
509
+ children: /* @__PURE__ */ E(f, {
508
510
  name: e.key,
509
511
  value: j(n),
510
512
  options: e.options,
511
513
  columns: e.columns,
512
514
  disabled: a,
513
515
  invalid: !!i,
514
- className: T,
515
- onValueChange: (e) => v(e),
516
+ className: w,
517
+ onValueChange: (e) => g(e),
516
518
  ...e.checkboxProps,
517
- "aria-describedby": [e.checkboxProps?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
519
+ "aria-describedby": [e.checkboxProps?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
518
520
  })
519
521
  });
520
- if (S === "tags" && e.type === "tags") return /* @__PURE__ */ w(s, {
522
+ if (S === "tags" && e.type === "tags") return /* @__PURE__ */ E(l, {
521
523
  ...C,
522
- children: /* @__PURE__ */ w(h, {
523
- id: _,
524
+ children: /* @__PURE__ */ E(_, {
525
+ id: s,
524
526
  value: j(n),
525
527
  recommendations: e.recommendations,
526
528
  maxTags: e.maxTags,
527
529
  disabled: a,
528
530
  invalid: !!i,
529
531
  placeholder: e.placeholder,
530
- className: T,
531
- onValueChange: (e) => v(e),
532
+ className: w,
533
+ onValueChange: (e) => g(e),
532
534
  ...e.tagsProps,
533
- "aria-describedby": [e.tagsProps?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
535
+ "aria-describedby": [e.tagsProps?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
534
536
  })
535
537
  });
536
- let D = S === "text" ? "text" : S, O = e.type === void 0 || e.type === "text" || e.type === "email" || e.type === "password" || e.type === "url" || e.type === "tel" || e.type === "search" ? e.inputProps : void 0, ee = H(e, n, r, y);
537
- return /* @__PURE__ */ w(s, {
538
+ let D = S === "text" ? "text" : S, O = e.type === void 0 || e.type === "text" || e.type === "email" || e.type === "password" || e.type === "url" || e.type === "tel" || e.type === "search" ? e.inputProps : void 0, ee = V(e, n, r, y);
539
+ return /* @__PURE__ */ E(l, {
538
540
  ...C,
539
- children: /* @__PURE__ */ w(o, {
540
- id: _,
541
+ children: /* @__PURE__ */ E(c, {
542
+ id: s,
541
543
  name: e.key,
542
544
  type: D,
543
545
  value: ee,
544
546
  disabled: a,
545
- required: m,
547
+ required: o,
546
548
  invalid: !!i,
547
549
  placeholder: e.placeholder,
548
- className: T,
549
- onChange: (t) => v(U(e, t.target.value, r, y)),
550
+ className: w,
551
+ onChange: (t) => g(H(e, t.target.value, r, y)),
550
552
  ...O,
551
- "aria-describedby": [O?.["aria-describedby"], E].filter(Boolean).join(" ") || void 0
553
+ "aria-describedby": [O?.["aria-describedby"], T].filter(Boolean).join(" ") || void 0
552
554
  })
553
555
  });
554
556
  }
555
- q.displayName = "SchemaFormFieldRenderer";
557
+ K.displayName = "SchemaFormFieldRenderer";
556
558
  //#endregion
557
559
  //#region src/components/features/schema-form/schema-form.strings.ts
558
- var J = {
560
+ var q = {
559
561
  submitLabel: "Save changes",
560
562
  resetLabel: "Reset",
561
563
  defaultSectionTitle: "General",
@@ -567,184 +569,183 @@ var J = {
567
569
  };
568
570
  //#endregion
569
571
  //#region src/components/features/schema-form/schema-form.tsx
570
- function ie(e) {
572
+ function se(e) {
571
573
  return e.replace(/[^a-zA-Z0-9_-]/g, "-");
572
574
  }
573
- function ae({ section: e }) {
574
- return !e.title && !e.description ? null : /* @__PURE__ */ T(i, {
575
+ function ce({ section: e }) {
576
+ return !e.title && !e.description ? null : /* @__PURE__ */ D(a, {
575
577
  gap: "normal",
576
578
  className: "schema-form--section-heading",
577
- children: [!!e.title && /* @__PURE__ */ w(r, {
578
- type: "inherit",
579
- weight: "semibold",
579
+ children: [!!e.title && /* @__PURE__ */ E(r, {
580
+ ...i.subsection,
580
581
  className: "schema-form--section-title",
581
582
  children: e.title
582
- }), !!e.description && /* @__PURE__ */ w(r, {
583
- type: "secondary",
583
+ }), !!e.description && /* @__PURE__ */ E(r, {
584
+ ...i.structuralDescription,
584
585
  className: "schema-form--section-description",
585
586
  children: e.description
586
587
  })]
587
588
  });
588
589
  }
589
- function Y({ schema: n, value: o, defaultValue: s, errors: c, disabled: l = !1, layout: u = "form", columns: d = 2, id: f, name: p, title: h, description: g, headerSlot: _, footerSlot: y, actionsSlot: b, emptySlot: C, showActions: O, submitLabel: k, resetLabel: A, submitDisabled: j = !1, resetDisabled: M = !1, submitting: N = !1, onValueChange: P, onFieldChange: F, onSubmit: I, onReset: L, onError: R, renderField: V, renderSection: H, strings: U, className: re, contentClassName: W, sectionClassName: G, fieldClassName: K }) {
590
- let Y = x(), oe = f ?? `schema-form-${Y}`, X = e(J, U), Z = ne({
590
+ function J({ schema: n, value: i, defaultValue: c, errors: l, disabled: u = !1, layout: d = "form", columns: f = 2, id: p, name: m, title: h, description: _, headerSlot: v, footerSlot: y, actionsSlot: x, emptySlot: S, showActions: T, submitLabel: k, resetLabel: ne, submitDisabled: A = !1, resetDisabled: j = !1, submitting: M = !1, onValueChange: ie, onFieldChange: N, onSubmit: P, onReset: F, onError: I, renderField: ae, renderSection: B, strings: V, className: H, contentClassName: U, sectionClassName: W, fieldClassName: oe }) {
591
+ let G = C(), J = p ?? `schema-form-${G}`, Y = e(q, V), X = L({
591
592
  fields: n.fields,
592
- value: o,
593
- defaultValue: s,
594
- errors: c,
595
- onValueChange: P,
596
- onFieldChange: F,
597
- formatRequiredError: X.formatRequiredError,
598
- validationError: X.validationError,
599
- onError: R
600
- }), Q = S(() => te(n, Z.values, X.defaultSectionTitle, d, R), [
601
- d,
602
- Z.values,
603
- R,
593
+ value: i,
594
+ defaultValue: c,
595
+ errors: l,
596
+ onValueChange: ie,
597
+ onFieldChange: N,
598
+ formatRequiredError: Y.formatRequiredError,
599
+ validationError: Y.validationError,
600
+ onError: I
601
+ }), Z = w(() => re(n, X.values, Y.defaultSectionTitle, f, I), [
602
+ f,
603
+ X.values,
604
+ I,
604
605
  n,
605
- X.defaultSectionTitle
606
- ]), se = Q.some((e) => e.fields.length > 0), ce = {
607
- setFieldValue: Z.setFieldValue,
608
- setValues: Z.setValues,
609
- reset: Z.reset,
610
- validate: Z.validate
611
- }, le = O ?? !!(I || L || b), ue = k ?? X.submitLabel, de = A ?? X.resetLabel, fe = (e) => {
612
- let n = `${oe}-${ie(e.key)}`, r = l || ee(e, Z.values, R), i = {
606
+ Y.defaultSectionTitle
607
+ ]), le = Z.some((e) => e.fields.length > 0), ue = {
608
+ setFieldValue: X.setFieldValue,
609
+ setValues: X.setValues,
610
+ reset: X.reset,
611
+ validate: X.validate
612
+ }, de = T ?? !!(P || F || x), fe = k ?? Y.submitLabel, pe = ne ?? Y.resetLabel, me = (e) => {
613
+ let n = `${J}-${se(e.key)}`, r = u || te(e, X.values, I), i = {
613
614
  field: e,
614
- value: Z.getFieldValue(e.key),
615
- values: Z.values,
616
- error: Z.getFieldError(e.key),
615
+ value: X.getFieldValue(e.key),
616
+ values: X.values,
617
+ error: X.getFieldError(e.key),
617
618
  disabled: r,
618
619
  required: !!e.required,
619
620
  fieldId: n,
620
- onValueChange: (t) => Z.setFieldValue(e.key, t),
621
- onError: R
622
- }, a = /* @__PURE__ */ w(q, {
621
+ onValueChange: (t) => X.setFieldValue(e.key, t),
622
+ onError: I
623
+ }, a = /* @__PURE__ */ E(K, {
623
624
  ...i,
624
- strings: X
625
+ strings: Y
625
626
  });
626
- return /* @__PURE__ */ w("div", {
627
- className: t("schema-form--field", D[e.width ?? "auto"], e.className, K),
628
- children: V?.({
627
+ return /* @__PURE__ */ E("div", {
628
+ className: t("schema-form--field", ee[e.width ?? "auto"], e.className, oe),
629
+ children: ae?.({
629
630
  ...i,
630
631
  defaultField: a
631
632
  }) ?? a
632
633
  }, e.key);
633
- }, pe = (e) => /* @__PURE__ */ w("div", {
634
- className: t("schema-form--section-fields", E[e.columns]),
635
- children: e.fields.map(fe)
636
- }), me = (e) => {
637
- let n = pe(e), r = H?.({
634
+ }, Q = (e) => /* @__PURE__ */ E("div", {
635
+ className: t("schema-form--section-fields", O[e.columns]),
636
+ children: e.fields.map(me)
637
+ }), he = (e) => {
638
+ let n = Q(e), r = B?.({
638
639
  section: e,
639
640
  fields: n,
640
- values: Z.values
641
+ values: X.values
641
642
  });
642
- return r == null ? /* @__PURE__ */ T(i, {
643
- render: /* @__PURE__ */ w("section", {}),
643
+ return r == null ? /* @__PURE__ */ D(a, {
644
+ render: /* @__PURE__ */ E("section", {}),
644
645
  gap: "lg",
645
- className: t("schema-form--section", e.className, G),
646
+ className: t("schema-form--section", e.className, W),
646
647
  children: [
647
- /* @__PURE__ */ w(ae, { section: e }),
648
+ /* @__PURE__ */ E(ce, { section: e }),
648
649
  n,
649
- !!e.footerSlot && /* @__PURE__ */ w("div", {
650
+ !!e.footerSlot && /* @__PURE__ */ E("div", {
650
651
  className: "schema-form--section-footer",
651
652
  children: e.footerSlot
652
653
  })
653
654
  ]
654
- }, e.id) : /* @__PURE__ */ w(v, { children: r }, e.id);
655
- }, he = (e) => {
656
- let n = pe(e), r = H?.({
655
+ }, e.id) : /* @__PURE__ */ E(b, { children: r }, e.id);
656
+ }, ge = (e) => {
657
+ let n = Q(e), r = B?.({
657
658
  section: e,
658
659
  fields: n,
659
- values: Z.values
660
+ values: X.values
660
661
  });
661
- return r == null ? /* @__PURE__ */ w(m, {
662
- className: t("schema-form--section-card", e.className, G),
662
+ return r == null ? /* @__PURE__ */ E(g, {
663
+ className: t("schema-form--section-card", e.className, W),
663
664
  icon: e.icon,
664
665
  title: e.title,
665
666
  description: e.description,
666
667
  footerSlot: e.footerSlot,
667
668
  children: n
668
- }, e.id) : /* @__PURE__ */ w(v, { children: r }, e.id);
669
- }, $ = b ?? (le ? /* @__PURE__ */ w(z, {
670
- submitLabel: ue,
671
- resetLabel: de,
672
- showReset: !!L,
673
- disabled: l,
674
- submitDisabled: j,
675
- resetDisabled: M,
676
- submitting: N,
669
+ }, e.id) : /* @__PURE__ */ E(b, { children: r }, e.id);
670
+ }, $ = x ?? (de ? /* @__PURE__ */ E(R, {
671
+ submitLabel: fe,
672
+ resetLabel: pe,
673
+ showReset: !!F,
674
+ disabled: u,
675
+ submitDisabled: A,
676
+ resetDisabled: j,
677
+ submitting: M,
677
678
  onReset: () => {
678
- let e = Z.reset();
679
- L?.(e, ce);
679
+ let e = X.reset();
680
+ F?.(e, ue);
680
681
  }
681
- }) : null), ge = C ?? /* @__PURE__ */ w(B, {
682
- title: X.emptyTitle,
683
- description: X.emptyDescription
682
+ }) : null), _e = S ?? /* @__PURE__ */ E(z, {
683
+ title: Y.emptyTitle,
684
+ description: Y.emptyDescription
684
685
  });
685
- return /* @__PURE__ */ w("form", {
686
- id: oe,
687
- name: p,
686
+ return /* @__PURE__ */ E("form", {
687
+ id: J,
688
+ name: m,
688
689
  noValidate: !0,
689
- className: t("schema-form--component @container/schema-form", re),
690
+ className: t("schema-form--component @container/schema-form", H),
690
691
  onSubmit: async (e) => {
691
- if (e.preventDefault(), !(l || j || N) && Z.validate()) try {
692
- await I?.(Z.values, ce, e);
692
+ if (e.preventDefault(), !(u || A || M) && X.validate()) try {
693
+ await P?.(X.values, ue, e);
693
694
  } catch (e) {
694
- R?.(e);
695
+ I?.(e);
695
696
  }
696
697
  },
697
- children: u === "cards" ? /* @__PURE__ */ T(i, {
698
- gap: "2xl",
699
- className: t("schema-form--cards", W),
698
+ children: d === "cards" ? /* @__PURE__ */ D(a, {
699
+ gap: s.subjects,
700
+ className: t("schema-form--cards", U),
700
701
  children: [
701
- !!(h ?? n.title ?? g ?? n.description ?? _) && /* @__PURE__ */ T(i, {
702
+ !!(h ?? n.title ?? _ ?? n.description ?? v) && /* @__PURE__ */ D(a, {
702
703
  direction: "horizontal",
703
704
  align: "start",
704
705
  justify: "between",
705
706
  gap: "xl",
706
707
  className: "schema-form--header",
707
- children: [/* @__PURE__ */ T(i, {
708
+ children: [/* @__PURE__ */ D(a, {
708
709
  gap: "normal",
709
710
  className: "min-w-0",
710
- children: [!!(h ?? n.title) && /* @__PURE__ */ w(r, {
711
+ children: [!!(h ?? n.title) && /* @__PURE__ */ E(r, {
711
712
  type: "inherit",
712
713
  size: "base",
713
714
  weight: "semibold",
714
715
  className: "schema-form--title",
715
716
  children: h ?? n.title
716
- }), !!(g ?? n.description) && /* @__PURE__ */ w(r, {
717
+ }), !!(_ ?? n.description) && /* @__PURE__ */ E(r, {
717
718
  type: "secondary",
718
719
  className: "schema-form--description",
719
- children: g ?? n.description
720
+ children: _ ?? n.description
720
721
  })]
721
- }), _]
722
+ }), v]
722
723
  }),
723
- se ? Q.map(he) : ge,
724
+ le ? Z.map(ge) : _e,
724
725
  y,
725
726
  $
726
727
  ]
727
- }) : /* @__PURE__ */ w(a, {
728
+ }) : /* @__PURE__ */ E(o, {
728
729
  surface: "flat",
729
730
  padding: "none",
730
731
  className: "schema-form--surface",
731
- gap: "2xl",
732
- contentGap: "2xl",
733
- contentClassName: t("schema-form--content", W),
732
+ gap: s.subjects,
733
+ contentGap: s.subjects,
734
+ contentClassName: t("schema-form--content", U),
734
735
  title: h ?? n.title,
735
- description: g ?? n.description,
736
- headerEnd: _,
737
- footerSlot: y || $ ? /* @__PURE__ */ T(i, {
736
+ description: _ ?? n.description,
737
+ headerEnd: v,
738
+ footerSlot: y || $ ? /* @__PURE__ */ D(a, {
738
739
  gap: "lg",
739
740
  className: "schema-form--footer",
740
741
  children: [y, $]
741
742
  }) : void 0,
742
- children: se ? Q.map(me) : ge
743
+ children: le ? Z.map(he) : _e
743
744
  })
744
745
  });
745
746
  }
746
- Y.displayName = "SchemaForm";
747
+ J.displayName = "SchemaForm";
747
748
  //#endregion
748
- export { Y as SchemaForm, z as SchemaFormActions, B as SchemaFormEmpty, q as SchemaFormFieldRenderer, J as defaultSchemaFormStrings, ne as useSchemaForm };
749
+ export { J as SchemaForm, R as SchemaFormActions, z as SchemaFormEmpty, K as SchemaFormFieldRenderer, q as defaultSchemaFormStrings, L as useSchemaForm };
749
750
 
750
751
  //# sourceMappingURL=schema-form.js.map