@lumeweb/portal-framework-ui 0.0.1 → 0.1.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 (657) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +1 -45
  3. package/dist/esm/components/Copyable.d.ts +43 -0
  4. package/dist/esm/components/Copyable.js +50 -0
  5. package/dist/esm/components/Copyable.js.map +1 -0
  6. package/dist/esm/components/FilterChip.d.ts +16 -0
  7. package/dist/esm/components/FilterChip.js +47 -0
  8. package/dist/esm/components/FilterChip.js.map +1 -0
  9. package/dist/esm/components/Forms.d.ts +55 -0
  10. package/dist/esm/components/Forms.js +123 -0
  11. package/dist/esm/components/Forms.js.map +1 -0
  12. package/dist/esm/components/InlineAuthLinkBanner.d.ts +18 -0
  13. package/dist/esm/components/InlineAuthLinkBanner.js +23 -0
  14. package/dist/esm/components/InlineAuthLinkBanner.js.map +1 -0
  15. package/dist/esm/components/KeyboardShortcutDialog.d.ts +12 -0
  16. package/dist/esm/components/KeyboardShortcutDialog.js +48 -0
  17. package/dist/esm/components/KeyboardShortcutDialog.js.map +1 -0
  18. package/dist/esm/components/Loading.d.ts +13 -0
  19. package/dist/esm/components/Loading.js +38 -0
  20. package/dist/esm/components/Loading.js.map +1 -0
  21. package/dist/esm/components/LumeLogo.d.ts +12 -0
  22. package/dist/esm/components/LumeLogo.js +22 -0
  23. package/dist/esm/components/LumeLogo.js.map +1 -0
  24. package/dist/esm/components/MainNavigation.d.ts +11 -0
  25. package/dist/esm/components/MainNavigation.js +227 -0
  26. package/dist/esm/components/MainNavigation.js.map +1 -0
  27. package/dist/esm/components/SkeletonLoader.d.ts +25 -0
  28. package/dist/esm/components/SkeletonLoader.js +78 -0
  29. package/dist/esm/components/SkeletonLoader.js.map +1 -0
  30. package/dist/esm/components/TableActionsDropdown.d.ts +18 -0
  31. package/dist/esm/components/TableActionsDropdown.js +34 -0
  32. package/dist/esm/components/TableActionsDropdown.js.map +1 -0
  33. package/dist/esm/components/TableContainer.d.ts +13 -0
  34. package/dist/esm/components/TableContainer.js +15 -0
  35. package/dist/esm/components/TableContainer.js.map +1 -0
  36. package/dist/esm/components/ThemeSwitcher.d.ts +7 -0
  37. package/dist/esm/components/ThemeSwitcher.js +38 -0
  38. package/dist/esm/components/ThemeSwitcher.js.map +1 -0
  39. package/dist/esm/components/ThemedBadge.d.ts +23 -0
  40. package/dist/esm/components/ThemedBadge.js +20 -0
  41. package/dist/esm/components/ThemedBadge.js.map +1 -0
  42. package/dist/esm/components/actions/ActionListRenderer.d.ts +15 -0
  43. package/dist/esm/components/actions/ActionListRenderer.js +38 -0
  44. package/dist/esm/components/actions/ActionListRenderer.js.map +1 -0
  45. package/dist/esm/components/actions/actionHelpers.d.ts +127 -0
  46. package/dist/esm/components/actions/actionHelpers.js +205 -0
  47. package/dist/esm/components/actions/actionHelpers.js.map +1 -0
  48. package/dist/esm/components/actions/index.d.ts +6 -0
  49. package/dist/esm/components/actions/index.js +7 -0
  50. package/dist/esm/components/actions/items/ButtonActionItem.d.ts +9 -0
  51. package/dist/esm/components/actions/items/ButtonActionItem.js +23 -0
  52. package/dist/esm/components/actions/items/ButtonActionItem.js.map +1 -0
  53. package/dist/esm/components/actions/items/CancelActionItem.d.ts +9 -0
  54. package/dist/esm/components/actions/items/CancelActionItem.js +28 -0
  55. package/dist/esm/components/actions/items/CancelActionItem.js.map +1 -0
  56. package/dist/esm/components/actions/items/CustomActionItem.d.ts +9 -0
  57. package/dist/esm/components/actions/items/CustomActionItem.js +27 -0
  58. package/dist/esm/components/actions/items/CustomActionItem.js.map +1 -0
  59. package/dist/esm/components/actions/items/LinkActionItem.d.ts +9 -0
  60. package/dist/esm/components/actions/items/LinkActionItem.js +33 -0
  61. package/dist/esm/components/actions/items/LinkActionItem.js.map +1 -0
  62. package/dist/esm/components/actions/items/RetryActionItem.d.ts +9 -0
  63. package/dist/esm/components/actions/items/RetryActionItem.js +23 -0
  64. package/dist/esm/components/actions/items/RetryActionItem.js.map +1 -0
  65. package/dist/esm/components/actions/items/SubmitActionItem.d.ts +9 -0
  66. package/dist/esm/components/actions/items/SubmitActionItem.js +26 -0
  67. package/dist/esm/components/actions/items/SubmitActionItem.js.map +1 -0
  68. package/dist/esm/components/actions/register.d.ts +5 -0
  69. package/dist/esm/components/actions/register.js +20 -0
  70. package/dist/esm/components/actions/register.js.map +1 -0
  71. package/dist/esm/components/actions/registry.d.ts +14 -0
  72. package/dist/esm/components/actions/registry.js +20 -0
  73. package/dist/esm/components/actions/registry.js.map +1 -0
  74. package/dist/esm/components/actions/types.d.ts +132 -0
  75. package/dist/esm/components/actions/types.js +29 -0
  76. package/dist/esm/components/actions/types.js.map +1 -0
  77. package/dist/esm/components/app/AppComponent.d.ts +17 -0
  78. package/dist/esm/components/app/AppComponent.js +179 -0
  79. package/dist/esm/components/app/AppComponent.js.map +1 -0
  80. package/dist/esm/components/data-table/BaseTable.d.ts +86 -0
  81. package/dist/esm/components/data-table/BaseTable.js +123 -0
  82. package/dist/esm/components/data-table/BaseTable.js.map +1 -0
  83. package/dist/esm/components/data-table/BaseTableContent.d.ts +48 -0
  84. package/dist/esm/components/data-table/BaseTableContent.js +38 -0
  85. package/dist/esm/components/data-table/BaseTableContent.js.map +1 -0
  86. package/dist/esm/components/data-table/BaseTableInner.d.ts +11 -0
  87. package/dist/esm/components/data-table/BaseTableInner.js +35 -0
  88. package/dist/esm/components/data-table/BaseTableInner.js.map +1 -0
  89. package/dist/esm/components/data-table/BaseTableStackedLayout.d.ts +31 -0
  90. package/dist/esm/components/data-table/BaseTableStackedLayout.js +137 -0
  91. package/dist/esm/components/data-table/BaseTableStackedLayout.js.map +1 -0
  92. package/dist/esm/components/data-table/DataTable.d.ts +18 -0
  93. package/dist/esm/components/data-table/DataTable.js +97 -0
  94. package/dist/esm/components/data-table/DataTable.js.map +1 -0
  95. package/dist/esm/components/data-table/DataTable.types.d.ts +203 -0
  96. package/dist/esm/components/data-table/DataTable.types.js +25 -0
  97. package/dist/esm/components/data-table/DataTable.types.js.map +1 -0
  98. package/dist/esm/components/data-table/DataTableController.d.ts +19 -0
  99. package/dist/esm/components/data-table/DataTableController.js +31 -0
  100. package/dist/esm/components/data-table/DataTableController.js.map +1 -0
  101. package/dist/esm/components/data-table/DefaultPagination.d.ts +7 -0
  102. package/dist/esm/components/data-table/DefaultPagination.js +62 -0
  103. package/dist/esm/components/data-table/DefaultPagination.js.map +1 -0
  104. package/dist/esm/components/data-table/DefaultTableLayout.d.ts +28 -0
  105. package/dist/esm/components/data-table/DefaultTableLayout.js +70 -0
  106. package/dist/esm/components/data-table/DefaultTableLayout.js.map +1 -0
  107. package/dist/esm/components/data-table/EmptyState.d.ts +19 -0
  108. package/dist/esm/components/data-table/EmptyState.js +16 -0
  109. package/dist/esm/components/data-table/EmptyState.js.map +1 -0
  110. package/dist/esm/components/data-table/LoadingState.d.ts +19 -0
  111. package/dist/esm/components/data-table/LoadingState.js +34 -0
  112. package/dist/esm/components/data-table/LoadingState.js.map +1 -0
  113. package/dist/esm/components/data-table/TableAction.d.ts +21 -0
  114. package/dist/esm/components/data-table/TableAction.js +26 -0
  115. package/dist/esm/components/data-table/TableAction.js.map +1 -0
  116. package/dist/esm/components/data-table/TableActionMenu.d.ts +20 -0
  117. package/dist/esm/components/data-table/TableActionMenu.js +31 -0
  118. package/dist/esm/components/data-table/TableActionMenu.js.map +1 -0
  119. package/dist/esm/components/data-table/TableLayoutRenderer.d.ts +48 -0
  120. package/dist/esm/components/data-table/TableLayoutRenderer.js +45 -0
  121. package/dist/esm/components/data-table/TableLayoutRenderer.js.map +1 -0
  122. package/dist/esm/components/data-table/Toolbar.d.ts +17 -0
  123. package/dist/esm/components/data-table/Toolbar.js +176 -0
  124. package/dist/esm/components/data-table/Toolbar.js.map +1 -0
  125. package/dist/esm/components/data-table/ToolbarRegistry.d.ts +66 -0
  126. package/dist/esm/components/data-table/ToolbarRegistry.js +89 -0
  127. package/dist/esm/components/data-table/ToolbarRegistry.js.map +1 -0
  128. package/dist/esm/components/data-table/ToolbarRenderer.d.ts +45 -0
  129. package/dist/esm/components/data-table/ToolbarRenderer.js +137 -0
  130. package/dist/esm/components/data-table/ToolbarRenderer.js.map +1 -0
  131. package/dist/esm/components/data-table/contexts/FilterHelpers.d.ts +30 -0
  132. package/dist/esm/components/data-table/contexts/FilterHelpers.js +60 -0
  133. package/dist/esm/components/data-table/contexts/FilterHelpers.js.map +1 -0
  134. package/dist/esm/components/data-table/contexts/RefineTable.d.ts +25 -0
  135. package/dist/esm/components/data-table/contexts/RefineTable.js +69 -0
  136. package/dist/esm/components/data-table/contexts/RefineTable.js.map +1 -0
  137. package/dist/esm/components/data-table/contexts/TableConfig.d.ts +24 -0
  138. package/dist/esm/components/data-table/contexts/TableConfig.js +29 -0
  139. package/dist/esm/components/data-table/contexts/TableConfig.js.map +1 -0
  140. package/dist/esm/components/data-table/contexts/TableInstance.d.ts +20 -0
  141. package/dist/esm/components/data-table/contexts/TableInstance.js +21 -0
  142. package/dist/esm/components/data-table/contexts/TableInstance.js.map +1 -0
  143. package/dist/esm/components/data-table/contexts/index.d.ts +5 -0
  144. package/dist/esm/components/data-table/contexts/index.js +6 -0
  145. package/dist/esm/components/data-table/filterColumnsForMobile.d.ts +16 -0
  146. package/dist/esm/components/data-table/filterColumnsForMobile.js +31 -0
  147. package/dist/esm/components/data-table/filterColumnsForMobile.js.map +1 -0
  148. package/dist/esm/components/data-table/index.d.ts +50 -0
  149. package/dist/esm/components/data-table/index.js +39 -0
  150. package/dist/esm/components/data-table/register.d.ts +1 -0
  151. package/dist/esm/components/data-table/register.js +1 -0
  152. package/dist/esm/components/data-table/tableOptions.d.ts +18 -0
  153. package/dist/esm/components/data-table/tableOptions.js +40 -0
  154. package/dist/esm/components/data-table/tableOptions.js.map +1 -0
  155. package/dist/esm/components/data-table/toolbarItems/FilterGroup.d.ts +18 -0
  156. package/dist/esm/components/data-table/toolbarItems/FilterGroup.js +105 -0
  157. package/dist/esm/components/data-table/toolbarItems/FilterGroup.js.map +1 -0
  158. package/dist/esm/components/data-table/toolbarItems/FilterResolver.d.ts +22 -0
  159. package/dist/esm/components/data-table/toolbarItems/FilterResolver.js +74 -0
  160. package/dist/esm/components/data-table/toolbarItems/FilterResolver.js.map +1 -0
  161. package/dist/esm/components/data-table/toolbarItems/filters/BaseFilter.d.ts +27 -0
  162. package/dist/esm/components/data-table/toolbarItems/filters/BaseFilter.js +29 -0
  163. package/dist/esm/components/data-table/toolbarItems/filters/BaseFilter.js.map +1 -0
  164. package/dist/esm/components/data-table/toolbarItems/filters/FilterRegistry.d.ts +52 -0
  165. package/dist/esm/components/data-table/toolbarItems/filters/FilterRegistry.js +57 -0
  166. package/dist/esm/components/data-table/toolbarItems/filters/FilterRegistry.js.map +1 -0
  167. package/dist/esm/components/data-table/toolbarItems/filters/components/BooleanFilter.d.ts +12 -0
  168. package/dist/esm/components/data-table/toolbarItems/filters/components/BooleanFilter.js +34 -0
  169. package/dist/esm/components/data-table/toolbarItems/filters/components/BooleanFilter.js.map +1 -0
  170. package/dist/esm/components/data-table/toolbarItems/filters/components/DateFilter.d.ts +12 -0
  171. package/dist/esm/components/data-table/toolbarItems/filters/components/DateFilter.js +25 -0
  172. package/dist/esm/components/data-table/toolbarItems/filters/components/DateFilter.js.map +1 -0
  173. package/dist/esm/components/data-table/toolbarItems/filters/components/MultiSelectFilter.d.ts +13 -0
  174. package/dist/esm/components/data-table/toolbarItems/filters/components/MultiSelectFilter.js +44 -0
  175. package/dist/esm/components/data-table/toolbarItems/filters/components/MultiSelectFilter.js.map +1 -0
  176. package/dist/esm/components/data-table/toolbarItems/filters/components/NumberFilter.d.ts +12 -0
  177. package/dist/esm/components/data-table/toolbarItems/filters/components/NumberFilter.js +29 -0
  178. package/dist/esm/components/data-table/toolbarItems/filters/components/NumberFilter.js.map +1 -0
  179. package/dist/esm/components/data-table/toolbarItems/filters/components/RangeFilter.d.ts +16 -0
  180. package/dist/esm/components/data-table/toolbarItems/filters/components/RangeFilter.js +61 -0
  181. package/dist/esm/components/data-table/toolbarItems/filters/components/RangeFilter.js.map +1 -0
  182. package/dist/esm/components/data-table/toolbarItems/filters/components/SearchFilter.d.ts +12 -0
  183. package/dist/esm/components/data-table/toolbarItems/filters/components/SearchFilter.js +33 -0
  184. package/dist/esm/components/data-table/toolbarItems/filters/components/SearchFilter.js.map +1 -0
  185. package/dist/esm/components/data-table/toolbarItems/filters/components/SelectFilter.d.ts +13 -0
  186. package/dist/esm/components/data-table/toolbarItems/filters/components/SelectFilter.js +95 -0
  187. package/dist/esm/components/data-table/toolbarItems/filters/components/SelectFilter.js.map +1 -0
  188. package/dist/esm/components/data-table/toolbarItems/filters/components/TextFilter.d.ts +12 -0
  189. package/dist/esm/components/data-table/toolbarItems/filters/components/TextFilter.js +25 -0
  190. package/dist/esm/components/data-table/toolbarItems/filters/components/TextFilter.js.map +1 -0
  191. package/dist/esm/components/data-table/toolbarItems/filters/components/index.d.ts +9 -0
  192. package/dist/esm/components/data-table/toolbarItems/filters/components/index.js +10 -0
  193. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterOperators.d.ts +43 -0
  194. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterOperators.js +102 -0
  195. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterOperators.js.map +1 -0
  196. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterTooltip.d.ts +19 -0
  197. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterTooltip.js +34 -0
  198. package/dist/esm/components/data-table/toolbarItems/filters/hooks/useFilterTooltip.js.map +1 -0
  199. package/dist/esm/components/data-table/toolbarItems/filters/index.d.ts +11 -0
  200. package/dist/esm/components/data-table/toolbarItems/filters/index.js +13 -0
  201. package/dist/esm/components/data-table/toolbarItems/filters/register.d.ts +1 -0
  202. package/dist/esm/components/data-table/toolbarItems/filters/register.js +8 -0
  203. package/dist/esm/components/data-table/toolbarItems/filters/types.d.ts +140 -0
  204. package/dist/esm/components/data-table/toolbarItems/filters/types.js +58 -0
  205. package/dist/esm/components/data-table/toolbarItems/filters/types.js.map +1 -0
  206. package/dist/esm/components/data-table/toolbarItems/filters/util.d.ts +24 -0
  207. package/dist/esm/components/data-table/toolbarItems/filters/util.js +43 -0
  208. package/dist/esm/components/data-table/toolbarItems/filters/util.js.map +1 -0
  209. package/dist/esm/components/data-table/toolbarItems/index.d.ts +17 -0
  210. package/dist/esm/components/data-table/toolbarItems/index.js +18 -0
  211. package/dist/esm/components/data-table/toolbarItems/items/custom.d.ts +15 -0
  212. package/dist/esm/components/data-table/toolbarItems/items/custom.js +19 -0
  213. package/dist/esm/components/data-table/toolbarItems/items/custom.js.map +1 -0
  214. package/dist/esm/components/data-table/toolbarItems/items/index.d.ts +6 -0
  215. package/dist/esm/components/data-table/toolbarItems/items/index.js +6 -0
  216. package/dist/esm/components/data-table/toolbarItems/items/refresh.d.ts +7 -0
  217. package/dist/esm/components/data-table/toolbarItems/items/refresh.js +36 -0
  218. package/dist/esm/components/data-table/toolbarItems/items/refresh.js.map +1 -0
  219. package/dist/esm/components/data-table/toolbarItems/items/search.d.ts +7 -0
  220. package/dist/esm/components/data-table/toolbarItems/items/search.js +66 -0
  221. package/dist/esm/components/data-table/toolbarItems/items/search.js.map +1 -0
  222. package/dist/esm/components/data-table/toolbarItems/items/separator.d.ts +16 -0
  223. package/dist/esm/components/data-table/toolbarItems/items/separator.js +20 -0
  224. package/dist/esm/components/data-table/toolbarItems/items/separator.js.map +1 -0
  225. package/dist/esm/components/data-table/toolbarItems/register.d.ts +24 -0
  226. package/dist/esm/components/data-table/toolbarItems/register.js +119 -0
  227. package/dist/esm/components/data-table/toolbarItems/register.js.map +1 -0
  228. package/dist/esm/components/data-table/useMobileDetection.d.ts +18 -0
  229. package/dist/esm/components/data-table/useMobileDetection.js +32 -0
  230. package/dist/esm/components/data-table/useMobileDetection.js.map +1 -0
  231. package/dist/esm/components/data-table/useTableHandlers.d.ts +57 -0
  232. package/dist/esm/components/data-table/useTableHandlers.js +69 -0
  233. package/dist/esm/components/data-table/useTableHandlers.js.map +1 -0
  234. package/dist/esm/components/data-table/useTableLayoutSelector.d.ts +16 -0
  235. package/dist/esm/components/data-table/useTableLayoutSelector.js +12 -0
  236. package/dist/esm/components/data-table/useTableLayoutSelector.js.map +1 -0
  237. package/dist/esm/components/dialog/Dialog.context.d.ts +18 -0
  238. package/dist/esm/components/dialog/Dialog.context.js +80 -0
  239. package/dist/esm/components/dialog/Dialog.context.js.map +1 -0
  240. package/dist/esm/components/dialog/Dialog.registry.d.ts +22 -0
  241. package/dist/esm/components/dialog/Dialog.registry.js +24 -0
  242. package/dist/esm/components/dialog/Dialog.registry.js.map +1 -0
  243. package/dist/esm/components/dialog/Dialog.renderer.d.ts +9 -0
  244. package/dist/esm/components/dialog/Dialog.renderer.js +63 -0
  245. package/dist/esm/components/dialog/Dialog.renderer.js.map +1 -0
  246. package/dist/esm/components/dialog/Dialog.types.d.ts +273 -0
  247. package/dist/esm/components/dialog/Dialog.types.js +233 -0
  248. package/dist/esm/components/dialog/Dialog.types.js.map +1 -0
  249. package/dist/esm/components/dialog/DialogActions.context.d.ts +13 -0
  250. package/dist/esm/components/dialog/DialogActions.context.js +13 -0
  251. package/dist/esm/components/dialog/DialogActions.context.js.map +1 -0
  252. package/dist/esm/components/dialog/DialogContainer.d.ts +15 -0
  253. package/dist/esm/components/dialog/DialogContainer.js +37 -0
  254. package/dist/esm/components/dialog/DialogContainer.js.map +1 -0
  255. package/dist/esm/components/dialog/DialogContent.d.ts +14 -0
  256. package/dist/esm/components/dialog/DialogContent.js +18 -0
  257. package/dist/esm/components/dialog/DialogContent.js.map +1 -0
  258. package/dist/esm/components/dialog/DialogFooterContent.d.ts +14 -0
  259. package/dist/esm/components/dialog/DialogFooterContent.js +20 -0
  260. package/dist/esm/components/dialog/DialogFooterContent.js.map +1 -0
  261. package/dist/esm/components/dialog/DialogHeaderContent.d.ts +12 -0
  262. package/dist/esm/components/dialog/DialogHeaderContent.js +24 -0
  263. package/dist/esm/components/dialog/DialogHeaderContent.js.map +1 -0
  264. package/dist/esm/components/dialog/DialogState.context.d.ts +11 -0
  265. package/dist/esm/components/dialog/DialogState.context.js +11 -0
  266. package/dist/esm/components/dialog/DialogState.context.js.map +1 -0
  267. package/dist/esm/components/dialog/index.d.ts +6 -0
  268. package/dist/esm/components/dialog/index.js +8 -0
  269. package/dist/esm/components/dialog/types/AlertDialog.d.ts +19 -0
  270. package/dist/esm/components/dialog/types/AlertDialog.js +29 -0
  271. package/dist/esm/components/dialog/types/AlertDialog.js.map +1 -0
  272. package/dist/esm/components/dialog/types/ConfirmDialog.d.ts +17 -0
  273. package/dist/esm/components/dialog/types/ConfirmDialog.js +24 -0
  274. package/dist/esm/components/dialog/types/ConfirmDialog.js.map +1 -0
  275. package/dist/esm/components/dialog/types/CustomDialog.d.ts +28 -0
  276. package/dist/esm/components/dialog/types/CustomDialog.js +17 -0
  277. package/dist/esm/components/dialog/types/CustomDialog.js.map +1 -0
  278. package/dist/esm/components/dialog/types/FormDialog.d.ts +22 -0
  279. package/dist/esm/components/dialog/types/FormDialog.js +46 -0
  280. package/dist/esm/components/dialog/types/FormDialog.js.map +1 -0
  281. package/dist/esm/components/dialog/types/WizardDialog.d.ts +29 -0
  282. package/dist/esm/components/dialog/types/WizardDialog.js +43 -0
  283. package/dist/esm/components/dialog/types/WizardDialog.js.map +1 -0
  284. package/dist/esm/components/dialog/utils/dialogClasses.d.ts +7 -0
  285. package/dist/esm/components/dialog/utils/dialogClasses.js +14 -0
  286. package/dist/esm/components/dialog/utils/dialogClasses.js.map +1 -0
  287. package/dist/esm/components/dialog/utils/dialogDetection.d.ts +32 -0
  288. package/dist/esm/components/dialog/utils/dialogDetection.js +47 -0
  289. package/dist/esm/components/dialog/utils/dialogDetection.js.map +1 -0
  290. package/dist/esm/components/dialog/utils/index.d.ts +3 -0
  291. package/dist/esm/components/dialog/utils/index.js +4 -0
  292. package/dist/esm/components/editor/BlockTypeDropdown.d.ts +12 -0
  293. package/dist/esm/components/editor/BlockTypeDropdown.js +57 -0
  294. package/dist/esm/components/editor/BlockTypeDropdown.js.map +1 -0
  295. package/dist/esm/components/editor/Editor.d.ts +7 -0
  296. package/dist/esm/components/editor/Editor.js +17 -0
  297. package/dist/esm/components/editor/Editor.js.map +1 -0
  298. package/dist/esm/components/editor/EditorInner.d.ts +14 -0
  299. package/dist/esm/components/editor/EditorInner.js +107 -0
  300. package/dist/esm/components/editor/EditorInner.js.map +1 -0
  301. package/dist/esm/components/editor/Preview.d.ts +5 -0
  302. package/dist/esm/components/editor/Preview.js +18 -0
  303. package/dist/esm/components/editor/Preview.js.map +1 -0
  304. package/dist/esm/components/editor/ToolbarContext.d.ts +39 -0
  305. package/dist/esm/components/editor/ToolbarContext.js +54 -0
  306. package/dist/esm/components/editor/ToolbarContext.js.map +1 -0
  307. package/dist/esm/components/editor/ToolbarPlugin.d.ts +20 -0
  308. package/dist/esm/components/editor/ToolbarPlugin.js +194 -0
  309. package/dist/esm/components/editor/ToolbarPlugin.js.map +1 -0
  310. package/dist/esm/components/editor/formatting.d.ts +15 -0
  311. package/dist/esm/components/editor/formatting.js +117 -0
  312. package/dist/esm/components/editor/formatting.js.map +1 -0
  313. package/dist/esm/components/editor/index.d.ts +3 -0
  314. package/dist/esm/components/editor/index.js +3 -0
  315. package/dist/esm/components/form/FormGroup.d.ts +18 -0
  316. package/dist/esm/components/form/FormGroup.js +28 -0
  317. package/dist/esm/components/form/FormGroup.js.map +1 -0
  318. package/dist/esm/components/form/FormRenderer.d.ts +14 -0
  319. package/dist/esm/components/form/FormRenderer.js +179 -0
  320. package/dist/esm/components/form/FormRenderer.js.map +1 -0
  321. package/dist/esm/components/form/SchemaForm.d.ts +18 -0
  322. package/dist/esm/components/form/SchemaForm.js +172 -0
  323. package/dist/esm/components/form/SchemaForm.js.map +1 -0
  324. package/dist/esm/components/form/StepControlContext.d.ts +199 -0
  325. package/dist/esm/components/form/StepControlContext.js +249 -0
  326. package/dist/esm/components/form/StepControlContext.js.map +1 -0
  327. package/dist/esm/components/form/StepSchemaForm.d.ts +22 -0
  328. package/dist/esm/components/form/StepSchemaForm.js +176 -0
  329. package/dist/esm/components/form/StepSchemaForm.js.map +1 -0
  330. package/dist/esm/components/form/WizardForm.d.ts +16 -0
  331. package/dist/esm/components/form/WizardForm.js +126 -0
  332. package/dist/esm/components/form/WizardForm.js.map +1 -0
  333. package/dist/esm/components/form/WizardStepContent.d.ts +26 -0
  334. package/dist/esm/components/form/WizardStepContent.js +46 -0
  335. package/dist/esm/components/form/WizardStepContent.js.map +1 -0
  336. package/dist/esm/components/form/__mocks__/@hookform/resolvers/zod.d.ts +8 -0
  337. package/dist/esm/components/form/adapters.d.ts +23 -0
  338. package/dist/esm/components/form/adapters.js +43 -0
  339. package/dist/esm/components/form/adapters.js.map +1 -0
  340. package/dist/esm/components/form/autocomplete/index.d.ts +3 -0
  341. package/dist/esm/components/form/autocomplete/index.js +4 -0
  342. package/dist/esm/components/form/autocomplete/register.d.ts +8 -0
  343. package/dist/esm/components/form/autocomplete/register.js +161 -0
  344. package/dist/esm/components/form/autocomplete/register.js.map +1 -0
  345. package/dist/esm/components/form/autocomplete/rules.d.ts +15 -0
  346. package/dist/esm/components/form/autocomplete/rules.js +198 -0
  347. package/dist/esm/components/form/autocomplete/rules.js.map +1 -0
  348. package/dist/esm/components/form/context.d.ts +29 -0
  349. package/dist/esm/components/form/context.js +25 -0
  350. package/dist/esm/components/form/context.js.map +1 -0
  351. package/dist/esm/components/form/fields/Checkbox.d.ts +6 -0
  352. package/dist/esm/components/form/fields/Checkbox.js +33 -0
  353. package/dist/esm/components/form/fields/Checkbox.js.map +1 -0
  354. package/dist/esm/components/form/fields/DatePicker.d.ts +6 -0
  355. package/dist/esm/components/form/fields/DatePicker.js +29 -0
  356. package/dist/esm/components/form/fields/DatePicker.js.map +1 -0
  357. package/dist/esm/components/form/fields/EmailInput.d.ts +6 -0
  358. package/dist/esm/components/form/fields/EmailInput.js +25 -0
  359. package/dist/esm/components/form/fields/EmailInput.js.map +1 -0
  360. package/dist/esm/components/form/fields/FileInput.d.ts +6 -0
  361. package/dist/esm/components/form/fields/FileInput.js +28 -0
  362. package/dist/esm/components/form/fields/FileInput.js.map +1 -0
  363. package/dist/esm/components/form/fields/Input.d.ts +6 -0
  364. package/dist/esm/components/form/fields/Input.js +30 -0
  365. package/dist/esm/components/form/fields/Input.js.map +1 -0
  366. package/dist/esm/components/form/fields/RadioGroup.d.ts +6 -0
  367. package/dist/esm/components/form/fields/RadioGroup.js +42 -0
  368. package/dist/esm/components/form/fields/RadioGroup.js.map +1 -0
  369. package/dist/esm/components/form/fields/RichText.d.ts +6 -0
  370. package/dist/esm/components/form/fields/RichText.js +30 -0
  371. package/dist/esm/components/form/fields/RichText.js.map +1 -0
  372. package/dist/esm/components/form/fields/Select.d.ts +6 -0
  373. package/dist/esm/components/form/fields/Select.js +37 -0
  374. package/dist/esm/components/form/fields/Select.js.map +1 -0
  375. package/dist/esm/components/form/fields/Slider.d.ts +6 -0
  376. package/dist/esm/components/form/fields/Slider.js +29 -0
  377. package/dist/esm/components/form/fields/Slider.js.map +1 -0
  378. package/dist/esm/components/form/fields/Switch.d.ts +6 -0
  379. package/dist/esm/components/form/fields/Switch.js +33 -0
  380. package/dist/esm/components/form/fields/Switch.js.map +1 -0
  381. package/dist/esm/components/form/fields/Textarea.d.ts +6 -0
  382. package/dist/esm/components/form/fields/Textarea.js +28 -0
  383. package/dist/esm/components/form/fields/Textarea.js.map +1 -0
  384. package/dist/esm/components/form/fields/index.d.ts +13 -0
  385. package/dist/esm/components/form/fields/index.js +14 -0
  386. package/dist/esm/components/form/fields/registry.d.ts +11 -0
  387. package/dist/esm/components/form/fields/registry.js +15 -0
  388. package/dist/esm/components/form/fields/registry.js.map +1 -0
  389. package/dist/esm/components/form/fields/types.d.ts +37 -0
  390. package/dist/esm/components/form/fields/types.js +21 -0
  391. package/dist/esm/components/form/fields/types.js.map +1 -0
  392. package/dist/esm/components/form/handlers/core.d.ts +19 -0
  393. package/dist/esm/components/form/handlers/core.js +51 -0
  394. package/dist/esm/components/form/handlers/core.js.map +1 -0
  395. package/dist/esm/components/form/handlers/step.d.ts +19 -0
  396. package/dist/esm/components/form/handlers/step.js +40 -0
  397. package/dist/esm/components/form/handlers/step.js.map +1 -0
  398. package/dist/esm/components/form/index.d.ts +26 -0
  399. package/dist/esm/components/form/index.js +28 -0
  400. package/dist/esm/components/form/register.d.ts +5 -0
  401. package/dist/esm/components/form/register.js +31 -0
  402. package/dist/esm/components/form/register.js.map +1 -0
  403. package/dist/esm/components/form/types.d.ts +521 -0
  404. package/dist/esm/components/form/types.js +69 -0
  405. package/dist/esm/components/form/types.js.map +1 -0
  406. package/dist/esm/components/form/utils/animationUtils.d.ts +14 -0
  407. package/dist/esm/components/form/utils/animationUtils.js +20 -0
  408. package/dist/esm/components/form/utils/animationUtils.js.map +1 -0
  409. package/dist/esm/components/form/utils/autoSave.d.ts +8 -0
  410. package/dist/esm/components/form/utils/autoSave.js +17 -0
  411. package/dist/esm/components/form/utils/autoSave.js.map +1 -0
  412. package/dist/esm/components/form/utils/index.d.ts +4 -0
  413. package/dist/esm/components/form/utils/index.js +5 -0
  414. package/dist/esm/components/form/utils/stepRetry.d.ts +12 -0
  415. package/dist/esm/components/form/utils/stepRetry.js +16 -0
  416. package/dist/esm/components/form/utils/stepRetry.js.map +1 -0
  417. package/dist/esm/components/index.d.ts +126 -0
  418. package/dist/esm/components/index.js +130 -0
  419. package/dist/esm/components/layout/DesktopSidebar.d.ts +5 -0
  420. package/dist/esm/components/layout/DesktopSidebar.js +51 -0
  421. package/dist/esm/components/layout/DesktopSidebar.js.map +1 -0
  422. package/dist/esm/components/layout/GeneralLayout.d.ts +5 -0
  423. package/dist/esm/components/layout/GeneralLayout.js +34 -0
  424. package/dist/esm/components/layout/GeneralLayout.js.map +1 -0
  425. package/dist/esm/components/layout/MobileMenu.d.ts +5 -0
  426. package/dist/esm/components/layout/MobileMenu.js +48 -0
  427. package/dist/esm/components/layout/MobileMenu.js.map +1 -0
  428. package/dist/esm/components/layout/PageHeader.d.ts +16 -0
  429. package/dist/esm/components/layout/PageHeader.js +20 -0
  430. package/dist/esm/components/layout/PageHeader.js.map +1 -0
  431. package/dist/esm/components/layout/SidebarContext.d.ts +10 -0
  432. package/dist/esm/components/layout/SidebarContext.js +27 -0
  433. package/dist/esm/components/layout/SidebarContext.js.map +1 -0
  434. package/dist/esm/components/layout/SidebarToggle.d.ts +12 -0
  435. package/dist/esm/components/layout/SidebarToggle.js +23 -0
  436. package/dist/esm/components/layout/SidebarToggle.js.map +1 -0
  437. package/dist/esm/components/layout/UserNav.d.ts +5 -0
  438. package/dist/esm/components/layout/UserNav.js +110 -0
  439. package/dist/esm/components/layout/UserNav.js.map +1 -0
  440. package/dist/esm/components/layout/index.d.ts +7 -0
  441. package/dist/esm/components/layout/index.js +9 -0
  442. package/dist/esm/components/screen-reader/ScreenReaderAnnouncement.d.ts +23 -0
  443. package/dist/esm/components/screen-reader/ScreenReaderAnnouncement.js +28 -0
  444. package/dist/esm/components/screen-reader/ScreenReaderAnnouncement.js.map +1 -0
  445. package/dist/esm/components/screen-reader/hooks/useScreenReaderAnnouncement.d.ts +10 -0
  446. package/dist/esm/components/screen-reader/hooks/useScreenReaderAnnouncement.js +30 -0
  447. package/dist/esm/components/screen-reader/hooks/useScreenReaderAnnouncement.js.map +1 -0
  448. package/dist/esm/components/shared/UnifiedFooter.d.ts +17 -0
  449. package/dist/esm/components/shared/UnifiedFooter.js +210 -0
  450. package/dist/esm/components/shared/UnifiedFooter.js.map +1 -0
  451. package/dist/esm/components/shared/UnifiedHeader.d.ts +17 -0
  452. package/dist/esm/components/shared/UnifiedHeader.js +48 -0
  453. package/dist/esm/components/shared/UnifiedHeader.js.map +1 -0
  454. package/dist/esm/components/shared/context/FooterContext.d.ts +18 -0
  455. package/dist/esm/components/shared/context/FooterContext.js +24 -0
  456. package/dist/esm/components/shared/context/FooterContext.js.map +1 -0
  457. package/dist/esm/components/shared/context/HeaderContext.d.ts +18 -0
  458. package/dist/esm/components/shared/context/HeaderContext.js +23 -0
  459. package/dist/esm/components/shared/context/HeaderContext.js.map +1 -0
  460. package/dist/esm/components/shared/context/index.d.ts +3 -0
  461. package/dist/esm/components/shared/context/index.js +4 -0
  462. package/dist/esm/components/shared/environment/builders.d.ts +95 -0
  463. package/dist/esm/components/shared/environment/builders.js +163 -0
  464. package/dist/esm/components/shared/environment/builders.js.map +1 -0
  465. package/dist/esm/components/shared/environment/index.d.ts +7 -0
  466. package/dist/esm/components/shared/environment/index.js +3 -0
  467. package/dist/esm/components/shared/footers/ActionsFooter.d.ts +11 -0
  468. package/dist/esm/components/shared/footers/ActionsFooter.js +19 -0
  469. package/dist/esm/components/shared/footers/ActionsFooter.js.map +1 -0
  470. package/dist/esm/components/shared/footers/DefaultFooter.d.ts +13 -0
  471. package/dist/esm/components/shared/footers/DefaultFooter.js +20 -0
  472. package/dist/esm/components/shared/footers/DefaultFooter.js.map +1 -0
  473. package/dist/esm/components/shared/footers/FormFooter.d.ts +15 -0
  474. package/dist/esm/components/shared/footers/FormFooter.js +28 -0
  475. package/dist/esm/components/shared/footers/FormFooter.js.map +1 -0
  476. package/dist/esm/components/shared/footers/StepFormFooter.d.ts +15 -0
  477. package/dist/esm/components/shared/footers/StepFormFooter.js +28 -0
  478. package/dist/esm/components/shared/footers/StepFormFooter.js.map +1 -0
  479. package/dist/esm/components/shared/footers/WizardFooter.d.ts +12 -0
  480. package/dist/esm/components/shared/footers/WizardFooter.js +72 -0
  481. package/dist/esm/components/shared/footers/WizardFooter.js.map +1 -0
  482. package/dist/esm/components/shared/footers/index.d.ts +6 -0
  483. package/dist/esm/components/shared/footers/index.js +7 -0
  484. package/dist/esm/components/shared/headers/DefaultHeader.d.ts +13 -0
  485. package/dist/esm/components/shared/headers/DefaultHeader.js +30 -0
  486. package/dist/esm/components/shared/headers/DefaultHeader.js.map +1 -0
  487. package/dist/esm/components/shared/headers/FormHeader.d.ts +12 -0
  488. package/dist/esm/components/shared/headers/FormHeader.js +31 -0
  489. package/dist/esm/components/shared/headers/FormHeader.js.map +1 -0
  490. package/dist/esm/components/shared/headers/WizardHeader.d.ts +9 -0
  491. package/dist/esm/components/shared/headers/WizardHeader.js +116 -0
  492. package/dist/esm/components/shared/headers/WizardHeader.js.map +1 -0
  493. package/dist/esm/components/shared/headers/index.d.ts +4 -0
  494. package/dist/esm/components/shared/headers/index.js +5 -0
  495. package/dist/esm/components/shared/hooks/index.d.ts +3 -0
  496. package/dist/esm/components/shared/hooks/index.js +4 -0
  497. package/dist/esm/components/shared/hooks/useEnvironmentSync.d.ts +17 -0
  498. package/dist/esm/components/shared/hooks/useEnvironmentSync.js +17 -0
  499. package/dist/esm/components/shared/hooks/useEnvironmentSync.js.map +1 -0
  500. package/dist/esm/components/shared/hooks/useForceRerender.d.ts +17 -0
  501. package/dist/esm/components/shared/hooks/useForceRerender.js +26 -0
  502. package/dist/esm/components/shared/hooks/useForceRerender.js.map +1 -0
  503. package/dist/esm/components/shared/index.d.ts +31 -0
  504. package/dist/esm/components/shared/index.js +36 -0
  505. package/dist/esm/components/shared/registry/FooterRegistry.d.ts +15 -0
  506. package/dist/esm/components/shared/registry/FooterRegistry.js +47 -0
  507. package/dist/esm/components/shared/registry/FooterRegistry.js.map +1 -0
  508. package/dist/esm/components/shared/registry/HeaderRegistry.d.ts +15 -0
  509. package/dist/esm/components/shared/registry/HeaderRegistry.js +41 -0
  510. package/dist/esm/components/shared/registry/HeaderRegistry.js.map +1 -0
  511. package/dist/esm/components/shared/registry/index.d.ts +4 -0
  512. package/dist/esm/components/shared/registry/index.js +5 -0
  513. package/dist/esm/components/shared/registry/types.d.ts +23 -0
  514. package/dist/esm/components/shared/registry/types.js +21 -0
  515. package/dist/esm/components/shared/registry/types.js.map +1 -0
  516. package/dist/esm/components/shared/types/container.d.ts +70 -0
  517. package/dist/esm/components/shared/types/container.js +35 -0
  518. package/dist/esm/components/shared/types/container.js.map +1 -0
  519. package/dist/esm/components/shared/types/environment.d.ts +25 -0
  520. package/dist/esm/components/shared/types/environment.js +0 -0
  521. package/dist/esm/components/shared/types/footer.d.ts +121 -0
  522. package/dist/esm/components/shared/types/footer.js +58 -0
  523. package/dist/esm/components/shared/types/footer.js.map +1 -0
  524. package/dist/esm/components/shared/types/form.d.ts +120 -0
  525. package/dist/esm/components/shared/types/form.js +47 -0
  526. package/dist/esm/components/shared/types/form.js.map +1 -0
  527. package/dist/esm/components/shared/types/header.d.ts +81 -0
  528. package/dist/esm/components/shared/types/header.js +38 -0
  529. package/dist/esm/components/shared/types/header.js.map +1 -0
  530. package/dist/esm/components/shared/types/index.d.ts +8 -0
  531. package/dist/esm/components/shared/types/index.js +7 -0
  532. package/dist/esm/components/shared/types/navigation.d.ts +9 -0
  533. package/dist/esm/components/shared/types/navigation.js +0 -0
  534. package/dist/esm/components/shared/types/step.d.ts +104 -0
  535. package/dist/esm/components/shared/types/step.js +31 -0
  536. package/dist/esm/components/shared/types/step.js.map +1 -0
  537. package/dist/esm/components/shared/utils/createEnvironmentReceiver.d.ts +23 -0
  538. package/dist/esm/components/shared/utils/createEnvironmentReceiver.js +30 -0
  539. package/dist/esm/components/shared/utils/createEnvironmentReceiver.js.map +1 -0
  540. package/dist/esm/components/shared/utils/createForceRerenderReceiver.d.ts +22 -0
  541. package/dist/esm/components/shared/utils/createForceRerenderReceiver.js +30 -0
  542. package/dist/esm/components/shared/utils/createForceRerenderReceiver.js.map +1 -0
  543. package/dist/esm/components/shared/utils/index.d.ts +6 -0
  544. package/dist/esm/components/shared/utils/index.js +7 -0
  545. package/dist/esm/components/shared/utils/renderFooter.d.ts +37 -0
  546. package/dist/esm/components/shared/utils/renderFooter.js +99 -0
  547. package/dist/esm/components/shared/utils/renderFooter.js.map +1 -0
  548. package/dist/esm/components/shared/utils/renderHeader.d.ts +39 -0
  549. package/dist/esm/components/shared/utils/renderHeader.js +120 -0
  550. package/dist/esm/components/shared/utils/renderHeader.js.map +1 -0
  551. package/dist/esm/components/shared/utils/stepState.d.ts +36 -0
  552. package/dist/esm/components/shared/utils/stepState.js +61 -0
  553. package/dist/esm/components/shared/utils/stepState.js.map +1 -0
  554. package/dist/esm/components/sizing/index.d.ts +97 -0
  555. package/dist/esm/components/sizing/index.js +79 -0
  556. package/dist/esm/components/sizing/index.js.map +1 -0
  557. package/dist/esm/hooks/index.d.ts +16 -0
  558. package/dist/esm/hooks/index.js +17 -0
  559. package/dist/esm/hooks/useAccountSubdomain.d.ts +5 -0
  560. package/dist/esm/hooks/useAccountSubdomain.js +11 -0
  561. package/dist/esm/hooks/useAccountSubdomain.js.map +1 -0
  562. package/dist/esm/hooks/useAccountUrl.d.ts +5 -0
  563. package/dist/esm/hooks/useAccountUrl.js +27 -0
  564. package/dist/esm/hooks/useAccountUrl.js.map +1 -0
  565. package/dist/esm/hooks/useApiUrl.d.ts +5 -0
  566. package/dist/esm/hooks/useApiUrl.js +14 -0
  567. package/dist/esm/hooks/useApiUrl.js.map +1 -0
  568. package/dist/esm/hooks/useAvatar.d.ts +10 -0
  569. package/dist/esm/hooks/useAvatar.js +20 -0
  570. package/dist/esm/hooks/useAvatar.js.map +1 -0
  571. package/dist/esm/hooks/useFeatureFlag.d.ts +5 -0
  572. package/dist/esm/hooks/useFeatureFlag.js +10 -0
  573. package/dist/esm/hooks/useFeatureFlag.js.map +1 -0
  574. package/dist/esm/hooks/useLoginUrl.d.ts +5 -0
  575. package/dist/esm/hooks/useLoginUrl.js +10 -0
  576. package/dist/esm/hooks/useLoginUrl.js.map +1 -0
  577. package/dist/esm/hooks/useMenuItems.d.ts +12 -0
  578. package/dist/esm/hooks/useMenuItems.js +16 -0
  579. package/dist/esm/hooks/useMenuItems.js.map +1 -0
  580. package/dist/esm/hooks/usePluginMeta.d.ts +5 -0
  581. package/dist/esm/hooks/usePluginMeta.js +11 -0
  582. package/dist/esm/hooks/usePluginMeta.js.map +1 -0
  583. package/dist/esm/hooks/usePortalMeta.d.ts +7 -0
  584. package/dist/esm/hooks/usePortalMeta.js +10 -0
  585. package/dist/esm/hooks/usePortalMeta.js.map +1 -0
  586. package/dist/esm/hooks/usePortalUrl.d.ts +5 -0
  587. package/dist/esm/hooks/usePortalUrl.js +20 -0
  588. package/dist/esm/hooks/usePortalUrl.js.map +1 -0
  589. package/dist/esm/hooks/useProtocolDomain.d.ts +5 -0
  590. package/dist/esm/hooks/useProtocolDomain.js +12 -0
  591. package/dist/esm/hooks/useProtocolDomain.js.map +1 -0
  592. package/dist/esm/hooks/useRegisterUrl.d.ts +5 -0
  593. package/dist/esm/hooks/useRegisterUrl.js +10 -0
  594. package/dist/esm/hooks/useRegisterUrl.js.map +1 -0
  595. package/dist/esm/hooks/useResetPasswordUrl.d.ts +5 -0
  596. package/dist/esm/hooks/useResetPasswordUrl.js +10 -0
  597. package/dist/esm/hooks/useResetPasswordUrl.js.map +1 -0
  598. package/dist/esm/hooks/useSdk.d.ts +8 -0
  599. package/dist/esm/hooks/useSdk.js +33 -0
  600. package/dist/esm/hooks/useSdk.js.map +1 -0
  601. package/dist/esm/hooks/useTheme.d.ts +41 -0
  602. package/dist/esm/hooks/useTheme.js +79 -0
  603. package/dist/esm/hooks/useTheme.js.map +1 -0
  604. package/dist/esm/image.d.ts +6 -0
  605. package/dist/esm/images/account-banner-image.js +6 -0
  606. package/dist/esm/images/account-banner-image.js.map +1 -0
  607. package/dist/esm/images/discord-logo.js +6 -0
  608. package/dist/esm/images/discord-logo.js.map +1 -0
  609. package/dist/esm/images/lume-bg-image.js +6 -0
  610. package/dist/esm/images/lume-bg-image.js.map +1 -0
  611. package/dist/esm/images/lume-bg-login.js +6 -0
  612. package/dist/esm/images/lume-bg-login.js.map +1 -0
  613. package/dist/esm/images/lume-color-logo.js +6 -0
  614. package/dist/esm/images/lume-color-logo.js.map +1 -0
  615. package/dist/esm/images/lume-logo.js +6 -0
  616. package/dist/esm/images/lume-logo.js.map +1 -0
  617. package/dist/esm/images.d.ts +11 -0
  618. package/dist/esm/images.js +19 -0
  619. package/dist/esm/images.js.map +1 -0
  620. package/dist/esm/index.d.ts +150 -0
  621. package/dist/esm/index.js +149 -0
  622. package/dist/esm/store/appStore.d.ts +50 -0
  623. package/dist/esm/store/appStore.js +139 -0
  624. package/dist/esm/store/appStore.js.map +1 -0
  625. package/dist/esm/store/index.d.ts +5 -0
  626. package/dist/esm/store/index.js +6 -0
  627. package/dist/esm/store/portalStore.d.ts +33 -0
  628. package/dist/esm/store/portalStore.js +58 -0
  629. package/dist/esm/store/portalStore.js.map +1 -0
  630. package/dist/esm/store/saved-filters.d.ts +54 -0
  631. package/dist/esm/store/saved-filters.js +158 -0
  632. package/dist/esm/store/saved-filters.js.map +1 -0
  633. package/dist/esm/store/uiStore.d.ts +11 -0
  634. package/dist/esm/store/uiStore.js +16 -0
  635. package/dist/esm/store/uiStore.js.map +1 -0
  636. package/dist/esm/tests/portalMetaMocks.d.ts +16 -0
  637. package/dist/esm/tests/portalMetaMocks.js +15 -0
  638. package/dist/esm/tests/portalMetaMocks.js.map +1 -0
  639. package/dist/esm/types/badge.d.ts +16 -0
  640. package/dist/esm/types/badge.js +42 -0
  641. package/dist/esm/types/badge.js.map +1 -0
  642. package/dist/esm/types/index.d.ts +3 -0
  643. package/dist/esm/types/index.js +3 -0
  644. package/dist/esm/types/theme.d.ts +35 -0
  645. package/dist/esm/types/theme.js +0 -0
  646. package/dist/esm/utils/asyncUtils.d.ts +5 -0
  647. package/dist/esm/utils/asyncUtils.js +9 -0
  648. package/dist/esm/utils/asyncUtils.js.map +1 -0
  649. package/dist/esm/utils/fileSize.d.ts +5 -0
  650. package/dist/esm/utils/fileSize.js +18 -0
  651. package/dist/esm/utils/fileSize.js.map +1 -0
  652. package/dist/esm/utils/index.d.ts +4 -0
  653. package/dist/esm/utils/index.js +5 -0
  654. package/dist/esm/utils/theme.d.ts +197 -0
  655. package/dist/esm/utils/theme.js +689 -0
  656. package/dist/esm/utils/theme.js.map +1 -0
  657. package/package.json +75 -8
@@ -0,0 +1,521 @@
1
+ import { ActionItemConfig, ActionListLayout } from "../actions/types.js";
2
+ import { ComponentSize } from "../sizing/index.js";
3
+ import { FormFieldType } from "./fields/types.js";
4
+ import { EnvironmentSyncCallback, ForceRerenderCallback } from "../shared/types/form.js";
5
+ import { UnifiedEnvironment } from "../shared/types/environment.js";
6
+ import { AllowStepNavigation } from "../shared/types/navigation.js";
7
+ import { DialogConfig } from "../dialog/Dialog.types.js";
8
+ import { AutoSaveIndicatorElements, AutoSaveProps, BaseKey, BaseRecord, FormAction, HttpError, OpenNotificationParams } from "@refinedev/core";
9
+ import { ComponentType, ReactNode } from "react";
10
+ import { UseFormProps } from "@refinedev/react-hook-form";
11
+ import { Path } from "react-hook-form";
12
+ import { z } from "zod";
13
+
14
+ //#region src/components/form/types.d.ts
15
+ /**
16
+ * Enum defining the adapter types for form handling
17
+ */
18
+ declare enum AdapterType {
19
+ /** Refine adapter */
20
+ REFINE = "refine",
21
+ /** React Hook Form adapter */
22
+ RHF = "rhf"
23
+ }
24
+ /**
25
+ * Callback function type for generating action buttons based on environment
26
+ */
27
+ type ActionButtonsCallback<TRequest extends BaseRecord = any> = (props: {
28
+ /** The environment context for the form */environment?: UnifiedEnvironment;
29
+ }) => ActionItemConfig[] | undefined | false;
30
+ /**
31
+ * Enum defining the order in which grouped and ungrouped fields are rendered
32
+ */
33
+ declare enum GroupOrder {
34
+ /** Render groups first, then ungrouped fields */
35
+ GROUPS_FIRST = "groups-first",
36
+ /** Render ungrouped fields first, then groups */
37
+ UNGROUPED_FIRST = "ungrouped-first"
38
+ }
39
+ /**
40
+ * Enum defining the layout types for forms
41
+ */
42
+ declare enum LayoutType {
43
+ /** Grid layout */
44
+ GRID = "grid",
45
+ /** Horizontal layout */
46
+ HORIZONTAL = "horizontal",
47
+ /** Vertical layout */
48
+ VERTICAL = "vertical"
49
+ }
50
+ /**
51
+ * Type for HTML autocomplete attribute values
52
+ */
53
+ type AutocompleteToken = "current-password" | "email" | "family-name" | "given-name" | "new-password" | "off" | "on" | "one-time-code" | "username";
54
+ /**
55
+ * Configuration type for form autosave functionality
56
+ */
57
+ type FormAutosaveConfig<T> = AutoSaveProps<T>["autoSave"];
58
+ /**
59
+ * Configuration interface for a form
60
+ */
61
+ interface FormConfig<TRequest extends BaseRecord = any, TResponse extends BaseRecord = any> {
62
+ /** The form action type (create, edit, etc.) */
63
+ action?: FormAction;
64
+ /**
65
+ * Action buttons configuration for the form footer
66
+ */
67
+ actionButtons?: ActionItemConfig[] | false | ActionButtonsCallback;
68
+ /**
69
+ * Layout for action buttons in footer
70
+ * @default "horizontal"
71
+ */
72
+ actionButtonsLayout?: ActionListLayout;
73
+ /** The adapter type to use for form handling */
74
+ adapter?: AdapterType;
75
+ /** Whether to enable autosave functionality */
76
+ autoSave?: boolean | FormAutosaveConfig<TRequest>;
77
+ /** Custom elements for different autosave states */
78
+ autoSaveStates?: AutoSaveIndicatorElements;
79
+ /** Whether to close the dialog after successful submission */
80
+ closeOnSubmit?: boolean;
81
+ /** Default values for the form fields */
82
+ defaultValues?: TRequest;
83
+ /** Alias for refineCoreProps.errorNotification */
84
+ errorNotification?: ((error: any) => OpenNotificationParams) | OpenNotificationParams;
85
+ /** Array of form field configurations */
86
+ fields: FormFieldConfig<TRequest>[];
87
+ /**
88
+ * Custom footer content or configuration
89
+ * Can be:
90
+ * - React node
91
+ * - Array of action button configs
92
+ * - Function that receives form methods and returns React node
93
+ */
94
+ footer?: ((methods: any, closeDialog: () => void, currentDialog?: DialogConfig<TRequest, TResponse>) => ActionItemConfig[] | ReactNode) | ActionItemConfig[] | false | ReactNode;
95
+ /**
96
+ * Class name for the footer wrapper
97
+ * Set to false to disable default padding/border styles
98
+ * @default "pt-4 mt-4 border-t"
99
+ */
100
+ footerClassName?: false | string;
101
+ /** CSS class name for the form container */
102
+ formClassName?: string;
103
+ /**
104
+ * Unique identifier for the form configuration.
105
+ * This is separate from the record ID and is used to identify the form itself.
106
+ */
107
+ formId?: string;
108
+ /**
109
+ * Controls whether grouped or ungrouped fields are rendered first
110
+ * @default GroupOrder.UNGROUPED_FIRST
111
+ */
112
+ groupOrder?: GroupOrder;
113
+ /**
114
+ * Groups configuration for organizing fields
115
+ */
116
+ groups?: FormGroupType[];
117
+ /**
118
+ * Custom header content to render at the top of the form
119
+ * Can be:
120
+ * - React node for static content
121
+ * - Function that receives environment context and returns React node
122
+ * - false to hide header
123
+ */
124
+ header?: ((environment: any) => ReactNode) | false | ReactNode;
125
+ /** The ID of the record being edited (for edit forms) */
126
+ id?: BaseKey;
127
+ /** The layout type for the form */
128
+ layout?: LayoutType;
129
+ /** Error handler for form submission */
130
+ onError?: (error: Error) => void;
131
+ /** Submit handler for the form */
132
+ onSubmit?: (values: TRequest) => Promise<TResponse> | void;
133
+ /** Alias for refineCoreProps.onMutationSuccess */
134
+ onSuccess?: (response: TResponse, values: TRequest) => void;
135
+ /** Whether to use refine framework */
136
+ refine?: boolean;
137
+ /** Refine-specific form properties */
138
+ refineCoreProps?: UseFormProps<TRequest, HttpError, TRequest>["refineCoreProps"] & {
139
+ /** Error notification configuration */errorNotification?: (error: any) => OpenNotificationParams; /** Metadata for the form */
140
+ meta?: Record<string, unknown>; /** Success notification configuration */
141
+ successNotification?: (data: any, values: any) => OpenNotificationParams;
142
+ };
143
+ /** The resource name for the form */
144
+ resource?: string;
145
+ /** Label for the submit button */
146
+ submitLabel?: ((values: Partial<TRequest>) => string) | string;
147
+ /** Alias for refineCoreProps.successNotification */
148
+ successNotification?: (data: any, values: any) => OpenNotificationParams;
149
+ /** Zod schema for form validation */
150
+ validationSchema?: z.ZodSchema<TRequest>;
151
+ /**
152
+ * Optional callback for receiving a force rerender method.
153
+ * The framework will call this callback with a method that can be stored
154
+ * locally and used to force a component rerender when something outside
155
+ * the render loop needs to trigger a rerender.
156
+ */
157
+ forceRerender?: ForceRerenderCallback;
158
+ /**
159
+ * Optional callback for receiving an environment sync method.
160
+ * The framework will call this callback with a method that can be stored
161
+ * locally and used to sync environment changes when something outside
162
+ * the normal flow updates the environment.
163
+ */
164
+ environmentSync?: EnvironmentSyncCallback;
165
+ /**
166
+ * Callback when navigation starts
167
+ */
168
+ onNavigationStart?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry') => void;
169
+ /**
170
+ * Callback when navigation ends successfully
171
+ */
172
+ onNavigationEnd?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry') => void;
173
+ /**
174
+ * Callback when navigation fails
175
+ */
176
+ onNavigationError?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry', error: any) => void;
177
+ }
178
+ /**
179
+ * Configuration interface for a form field
180
+ */
181
+ interface FormFieldConfig<TRequest extends BaseRecord = any> {
182
+ /**
183
+ * The HTML autocomplete attribute value for the field.
184
+ * If provided, it will be passed to the underlying input component.
185
+ */
186
+ autocomplete?: AutocompleteToken;
187
+ /** CSS class name for the field container */
188
+ className?: string;
189
+ /** Custom component to render for this field */
190
+ component?: ComponentType<any>;
191
+ /**
192
+ * Optimize performance by specifying which field names (paths using dot notation)
193
+ * influence the 'show' function or 'requires' conditions for this field.
194
+ * If omitted, conditional checks might rely on less performant full form watches.
195
+ */
196
+ dependencies?: string[];
197
+ /** Description text for the field */
198
+ description?: string;
199
+ /**
200
+ * Group ID this field belongs to
201
+ */
202
+ group?: string;
203
+ /** CSS class name for the input element */
204
+ inputClassName?: string;
205
+ /**
206
+ * Additional props to pass to the underlying input element
207
+ */
208
+ inputProps?: Record<string, any>;
209
+ /**
210
+ * Class name applied to the FormItem wrapper component
211
+ */
212
+ itemClassName?: string;
213
+ /** Label text for the field */
214
+ label?: string;
215
+ /** CSS class name for the label element */
216
+ labelClassName?: string;
217
+ /** Field name/path (using dot notation for nested fields) */
218
+ name: Path<TRequest> | (string & {});
219
+ /** Options for select-type fields */
220
+ options?: FormFieldOption[];
221
+ /** Placeholder text for the field */
222
+ placeholder?: string;
223
+ /** Whether the field is required */
224
+ required?: boolean;
225
+ /**
226
+ * Declaratively define dependencies for field visibility.
227
+ * The field will only be shown if *all* conditions in this object are met.
228
+ * Keys are paths to other fields (using dot notation for nested fields).
229
+ * Values are the required value for that field, or a function predicate.
230
+ * Example: { 'user.role': 'admin', 'settings.enabled': true, 'profile.age': (age) => age >= 18 }
231
+ * If used with 'show', both must allow visibility (requires passes AND show returns true).
232
+ */
233
+ requires?: Record<string, ((fieldValue: any) => boolean) | any>;
234
+ /**
235
+ * Programmatically control field visibility based on form values.
236
+ * Return true to show the field, false to hide it.
237
+ * Can be an async function, but this introduces complexity (loading states, error handling)
238
+ * often better handled within a custom field component.
239
+ * If used with 'requires', both must allow visibility (requires passes AND show returns true).
240
+ */
241
+ show?: (values: TRequest) => boolean | Promise<boolean>;
242
+ /** The type of form field */
243
+ type: FormFieldType | string;
244
+ /** Zod schema for field validation */
245
+ validation?: z.ZodTypeAny;
246
+ }
247
+ /**
248
+ * Type for form field options
249
+ */
250
+ type FormFieldOption = string | {
251
+ label: string;
252
+ value: string;
253
+ };
254
+ /**
255
+ * Configuration interface for form field groups
256
+ */
257
+ interface FormGroupType {
258
+ /** CSS class name for the group container */
259
+ className?: string;
260
+ /** Description for the group */
261
+ description?: string;
262
+ /** Unique ID for the group */
263
+ id: string;
264
+ /** Title for the group */
265
+ title?: string;
266
+ }
267
+ /**
268
+ * Defines the structure for a single step in a multi-step form.
269
+ */
270
+ interface StepDefinition<TRequest extends BaseRecord = any> {
271
+ /**
272
+ * Whether to allow navigation to this step by clicking on progress indicator
273
+ * Takes precedence over the wizard-level allowStepNavigation config
274
+ */
275
+ allowStepNavigation?: AllowStepNavigation;
276
+ /**
277
+ * Description for the step
278
+ */
279
+ description?: string;
280
+ /** Fields in this step */
281
+ fields: FormFieldConfig<TRequest>[];
282
+ /**
283
+ * Icon for the step (used in wizard navigation)
284
+ */
285
+ icon?: React.ReactNode;
286
+ /** Metadata for the step */
287
+ meta?: Record<string, unknown>;
288
+ /**
289
+ * Callback when this step's submission fails
290
+ */
291
+ onStepError?: (error: Error) => Promise<void> | void;
292
+ /**
293
+ * Callback when this step's form is successfully submitted
294
+ */
295
+ onStepSubmit?: (values: Partial<TRequest>) => Promise<void> | void;
296
+ /**
297
+ * Callback when this step's submission succeeds
298
+ */
299
+ onStepSuccess?: (response: any, values: Partial<TRequest>) => Promise<void> | void;
300
+ /**
301
+ * Callback when this step needs to be retried
302
+ */
303
+ onRetryStep?: () => Promise<void> | void;
304
+ /**
305
+ * Short title for the step (used in wizard navigation)
306
+ */
307
+ shortTitle?: string;
308
+ /**
309
+ * Dynamic submit label for this step
310
+ * Receives form values and returns a string label
311
+ */
312
+ submitLabel?: (values: Partial<TRequest>) => string;
313
+ /** Title for the step */
314
+ title: string;
315
+ /**
316
+ * Zod schema for validating this step's fields
317
+ */
318
+ validationSchema?: z.ZodSchema<Partial<TRequest>>;
319
+ }
320
+ /**
321
+ * Configuration interface for a step form
322
+ */
323
+ interface StepFormConfig<TRequest extends BaseRecord = any, TResponse extends BaseRecord = any> extends Omit<FormConfig<TRequest, TResponse>, "fields" | "footer"> {
324
+ /**
325
+ * Whether to allow navigation to steps by clicking on progress indicator
326
+ * @default true
327
+ */
328
+ allowStepNavigation?: boolean | (() => boolean);
329
+ /** Custom footer renderer for step forms */
330
+ footer?: StepFormFooterRenderer<TRequest, TResponse>;
331
+ /**
332
+ * Callback when all steps are completed successfully
333
+ */
334
+ onFinish?: (finalValues: TRequest) => Promise<void> | void;
335
+ /** Behavior configuration for steps */
336
+ stepBehavior?: {
337
+ /** Default step to start on */defaultStep?: number; /** Whether to validate when going back */
338
+ isBackValidate?: boolean;
339
+ };
340
+ /** Array of step definitions */
341
+ steps: StepDefinition<TRequest>[];
342
+ /**
343
+ * Optional callback for receiving a force rerender method.
344
+ * The framework will call this callback with a method that can be stored
345
+ * locally and used to force a component rerender when something outside
346
+ * the render loop needs to trigger a rerender.
347
+ */
348
+ forceRerender?: ForceRerenderCallback;
349
+ /**
350
+ * Optional callback for receiving an environment sync method.
351
+ * The framework will call this callback with a method that can be stored
352
+ * locally and used to sync environment changes when something outside
353
+ * the normal flow updates the environment.
354
+ */
355
+ environmentSync?: EnvironmentSyncCallback;
356
+ }
357
+ /**
358
+ * Type for step form footer renderer function
359
+ */
360
+ type StepFormFooterRenderer<TRequest extends BaseRecord = any, TResponse extends BaseRecord = any> = (/** Step control methods */
361
+
362
+ stepMethods: StepFormMethods, /** Form methods */
363
+
364
+ formMethods: any, /** Function to close the dialog */
365
+
366
+ closeDialog: () => void, /** Current dialog configuration */
367
+
368
+ currentDialog?: DialogConfig<TRequest, TResponse>) => React.ReactNode;
369
+ /**
370
+ * Configuration object specifically for a multi-step form process.
371
+ */
372
+ interface StepFormMethods {
373
+ /** Current step index */
374
+ currentStep: number;
375
+ /** Function to navigate to a specific step */
376
+ gotoStep: (step: number) => void;
377
+ /** Function to go to the next step */
378
+ handleNext: () => Promise<void>;
379
+ /** Function to go to the previous step */
380
+ handlePrevious: () => Promise<void>;
381
+ /** Function to retry the current step */
382
+ handleRetry: () => Promise<void>;
383
+ /** Function to submit the current step */
384
+ handleSubmit: () => Promise<void>;
385
+ /** Whether the current step is the first step */
386
+ isFirstStep: boolean;
387
+ /** Whether the current step is the last step */
388
+ isLastStep: boolean;
389
+ /** Function to jump to a specific step number */
390
+ jumpTo: (step: number) => void;
391
+ /** Total number of steps */
392
+ totalSteps: number;
393
+ }
394
+ /**
395
+ * Configuration for a wizard form that extends StepFormConfig with wizard-specific options
396
+ */
397
+ interface WizardFormConfig<TRequest extends BaseRecord = any, TResponse extends BaseRecord = any> extends StepFormConfig<TRequest, TResponse> {
398
+ /**
399
+ * Action buttons configuration for the form footer
400
+ * Can be:
401
+ * - Array of action button configs
402
+ * - Function that receives form methods and step control props and returns array of action button configs
403
+ * - false to hide action buttons
404
+ */
405
+ actionButtons?: ActionItemConfig[] | false | ActionButtonsCallback<TRequest>;
406
+ /**
407
+ * Whether to allow navigation to steps by clicking on progress indicator
408
+ * @default true
409
+ */
410
+ allowStepNavigation?: boolean | (() => boolean);
411
+ /**
412
+ * Maximum width for step descriptions in the wizard header
413
+ * Uses standard component size classes (e.g., 'xs', 'sm', 'md', 'lg', 'xl', '2xl', etc.)
414
+ * @default 'xs'
415
+ */
416
+ descriptionMaxWidth?: ComponentSize;
417
+ /**
418
+ * Custom className for wizard footer
419
+ */
420
+ footerClassName?: string;
421
+ /**
422
+ * Custom className for wizard header
423
+ */
424
+ headerClassName?: string;
425
+ /**
426
+ * Style of progress indicator to use
427
+ * @default 'timeline'
428
+ */
429
+ progressStyle?: "dots" | "stepper" | "timeline";
430
+ /**
431
+ * Whether to show step descriptions in the progress indicator
432
+ * @default true
433
+ */
434
+ showStepDescriptions?: boolean;
435
+ /**
436
+ * Whether to show step progress indicator
437
+ * @default true
438
+ */
439
+ showStepProgress?: boolean;
440
+ /**
441
+ * Whether to show step titles in the progress indicator
442
+ * @default true
443
+ */
444
+ showStepTitles?: boolean;
445
+ /**
446
+ * Array of step indices that cannot be navigated to
447
+ * @default []
448
+ */
449
+ stepNavigationDisabled?: ((currentStep: number, data: any) => boolean[]) | boolean[];
450
+ /**
451
+ * Custom className for wizard wrapper
452
+ */
453
+ wizardClassName?: string;
454
+ /**
455
+ * Optional callback for receiving a force rerender method.
456
+ * The framework will call this callback with a method that can be stored
457
+ * locally and used to force a component rerender when something outside
458
+ * the render loop needs to trigger a rerender.
459
+ */
460
+ forceRerender?: ForceRerenderCallback;
461
+ /**
462
+ * Optional callback for receiving an environment sync method.
463
+ * The framework will call this callback with a method that can be stored
464
+ * locally and used to sync environment changes when something outside
465
+ * the normal flow updates the environment.
466
+ */
467
+ environmentSync?: EnvironmentSyncCallback;
468
+ }
469
+ /**
470
+ * Wizard-specific step definition that extends StepDefinition
471
+ * Wizard steps require UI properties (icon, shortTitle, description) that are optional in regular step forms
472
+ */
473
+ interface WizardStepDefinition<TRequest extends BaseRecord = any> extends Omit<StepDefinition<TRequest>, "description" | "icon" | "shortTitle"> {
474
+ /**
475
+ * Whether to allow navigation to this step by clicking on progress indicator
476
+ * Takes precedence over the wizard-level allowStepNavigation config
477
+ */
478
+ allowStepNavigation?: AllowStepNavigation;
479
+ /**
480
+ * Description for the step
481
+ * Required for wizard steps
482
+ */
483
+ description: string;
484
+ /**
485
+ * Icon for the step (used in wizard navigation)
486
+ * Required for wizard steps
487
+ */
488
+ icon: React.ReactNode;
489
+ /**
490
+ * Short title for the step (used in wizard navigation)
491
+ * Required for wizard steps
492
+ */
493
+ shortTitle: string;
494
+ }
495
+ /**
496
+ * Type guard to check if footer is a function with the proper signature
497
+ */
498
+ declare function isFooterFunction<TRequest extends BaseRecord, TResponse extends BaseRecord>(footer: ((methods: any, closeDialog: () => void, currentDialog?: DialogConfig<TRequest, TResponse>) => ActionItemConfig[] | ReactNode) | ActionItemConfig[] | false | ReactNode | undefined): footer is (methods: any, closeDialog: () => void, currentDialog?: DialogConfig<TRequest, TResponse>) => ActionItemConfig[] | ReactNode;
499
+ /**
500
+ * Type guard to check if actionButtons is a function with the proper signature
501
+ */
502
+ declare function isActionButtonsFunction<TRequest extends BaseRecord>(actionButtons: ActionItemConfig[] | false | ((props: {
503
+ environment?: UnifiedEnvironment;
504
+ }) => ActionItemConfig[] | undefined | false) | undefined): actionButtons is (props: {
505
+ environment?: UnifiedEnvironment;
506
+ }) => ActionItemConfig[] | undefined | false;
507
+ /**
508
+ * Type guard to check if header is a function
509
+ */
510
+ declare function isHeaderFunction<TRequest extends BaseRecord>(header: ((environment: any) => ReactNode) | false | ReactNode | undefined): header is (environment: any) => ReactNode;
511
+ /**
512
+ * Type guard to differentiate between single-step and multi-step form configs.
513
+ */
514
+ declare function isStepFormConfig<TRequest extends BaseRecord, TResponse extends BaseRecord = any>(config: FormConfig<TRequest, TResponse> | StepFormConfig<TRequest, TResponse>): config is StepFormConfig<TRequest, TResponse>;
515
+ /**
516
+ * Type guard to check if submitLabel is a function
517
+ */
518
+ declare function isSubmitLabelFunction<TRequest extends BaseRecord>(submitLabel: ((values: Partial<TRequest>) => string) | string | undefined): submitLabel is (values: Partial<TRequest>) => string;
519
+ //#endregion
520
+ export { ActionButtonsCallback, AdapterType, AutocompleteToken, FormAutosaveConfig, FormConfig, FormFieldConfig, FormFieldOption, FormGroupType, GroupOrder, LayoutType, StepDefinition, StepFormConfig, StepFormFooterRenderer, StepFormMethods, WizardFormConfig, WizardStepDefinition, isActionButtonsFunction, isFooterFunction, isHeaderFunction, isStepFormConfig, isSubmitLabelFunction };
521
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,69 @@
1
+ //#region src/components/form/types.ts
2
+ /**
3
+ * Enum defining the adapter types for form handling
4
+ */
5
+ let AdapterType = /* @__PURE__ */ function(AdapterType) {
6
+ /** Refine adapter */
7
+ AdapterType["REFINE"] = "refine";
8
+ /** React Hook Form adapter */
9
+ AdapterType["RHF"] = "rhf";
10
+ return AdapterType;
11
+ }({});
12
+ /**
13
+ * Enum defining the order in which grouped and ungrouped fields are rendered
14
+ */
15
+ let GroupOrder = /* @__PURE__ */ function(GroupOrder) {
16
+ /** Render groups first, then ungrouped fields */
17
+ GroupOrder["GROUPS_FIRST"] = "groups-first";
18
+ /** Render ungrouped fields first, then groups */
19
+ GroupOrder["UNGROUPED_FIRST"] = "ungrouped-first";
20
+ return GroupOrder;
21
+ }({});
22
+ /**
23
+ * Enum defining the layout types for forms
24
+ */
25
+ let LayoutType = /* @__PURE__ */ function(LayoutType) {
26
+ /** Grid layout */
27
+ LayoutType["GRID"] = "grid";
28
+ /** Horizontal layout */
29
+ LayoutType["HORIZONTAL"] = "horizontal";
30
+ /** Vertical layout */
31
+ LayoutType["VERTICAL"] = "vertical";
32
+ return LayoutType;
33
+ }({});
34
+ /**
35
+ * Type guard to check if footer is a function with the proper signature
36
+ */
37
+ function isFooterFunction(footer) {
38
+ if (typeof footer !== "function") return false;
39
+ const fn = footer;
40
+ return fn.length >= 2 && fn.length <= 3;
41
+ }
42
+ /**
43
+ * Type guard to check if actionButtons is a function with the proper signature
44
+ */
45
+ function isActionButtonsFunction(actionButtons) {
46
+ return typeof actionButtons === "function";
47
+ }
48
+ /**
49
+ * Type guard to check if header is a function
50
+ */
51
+ function isHeaderFunction(header) {
52
+ return typeof header === "function";
53
+ }
54
+ /**
55
+ * Type guard to differentiate between single-step and multi-step form configs.
56
+ */
57
+ function isStepFormConfig(config) {
58
+ return config?.steps !== void 0;
59
+ }
60
+ /**
61
+ * Type guard to check if submitLabel is a function
62
+ */
63
+ function isSubmitLabelFunction(submitLabel) {
64
+ return typeof submitLabel === "function";
65
+ }
66
+
67
+ //#endregion
68
+ export { AdapterType, GroupOrder, LayoutType, isActionButtonsFunction, isFooterFunction, isHeaderFunction, isStepFormConfig, isSubmitLabelFunction };
69
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../src/components/form/types.ts"],"sourcesContent":["import type { ComponentType, ReactNode } from \"react\";\n\nimport {\n type AutoSaveIndicatorElements,\n type AutoSaveProps,\n type BaseKey,\n BaseRecord,\n type FormAction,\n HttpError,\n OpenNotificationParams,\n} from \"@refinedev/core\";\nimport { UseFormProps as RefineUseFormProps } from \"@refinedev/react-hook-form\";\nimport { Path } from \"react-hook-form\";\nimport { z } from \"zod\";\n\nimport type { DialogConfig } from \"../dialog/Dialog.types\";\n\nimport { ActionItemConfig, ActionListLayout } from \"../actions\";\nimport { ComponentSize } from \"../sizing\";\nimport { FormFieldType } from \"./fields/types\";\nimport { UnifiedEnvironment } from \"../shared/types/environment\";\nimport type {\n ForceRerenderCallback,\n EnvironmentSyncCallback,\n} from \"../shared/types/form\";\nimport type { AllowStepNavigation } from \"../shared/types/navigation\";\n\n/**\n * Enum defining the adapter types for form handling\n */\nexport enum AdapterType {\n /** Refine adapter */\n REFINE = \"refine\",\n /** React Hook Form adapter */\n RHF = \"rhf\",\n}\n\n/**\n * Callback function type for generating action buttons based on environment\n */\nexport type ActionButtonsCallback<TRequest extends BaseRecord = any> = (props: {\n /** The environment context for the form */\n environment?: UnifiedEnvironment;\n}) => ActionItemConfig[] | undefined | false;\n\n/**\n * Enum defining the order in which grouped and ungrouped fields are rendered\n */\nexport enum GroupOrder {\n /** Render groups first, then ungrouped fields */\n GROUPS_FIRST = \"groups-first\",\n /** Render ungrouped fields first, then groups */\n UNGROUPED_FIRST = \"ungrouped-first\",\n}\n\n/**\n * Enum defining the layout types for forms\n */\nexport enum LayoutType {\n /** Grid layout */\n GRID = \"grid\",\n /** Horizontal layout */\n HORIZONTAL = \"horizontal\",\n /** Vertical layout */\n VERTICAL = \"vertical\",\n}\n\n/**\n * Type for HTML autocomplete attribute values\n */\nexport type AutocompleteToken =\n | \"current-password\"\n | \"email\"\n | \"family-name\"\n | \"given-name\"\n | \"new-password\"\n | \"off\"\n | \"on\"\n | \"one-time-code\"\n | \"username\";\n\n/**\n * Configuration type for form autosave functionality\n */\nexport type FormAutosaveConfig<T> = AutoSaveProps<T>[\"autoSave\"];\n\n/**\n * Configuration interface for a form\n */\nexport interface FormConfig<\n TRequest extends BaseRecord = any,\n TResponse extends BaseRecord = any,\n> {\n /** The form action type (create, edit, etc.) */\n action?: FormAction;\n /**\n * Action buttons configuration for the form footer\n */\n actionButtons?: ActionItemConfig[] | false | ActionButtonsCallback;\n /**\n * Layout for action buttons in footer\n * @default \"horizontal\"\n */\n actionButtonsLayout?: ActionListLayout;\n /** The adapter type to use for form handling */\n adapter?: AdapterType;\n /** Whether to enable autosave functionality */\n autoSave?: boolean | FormAutosaveConfig<TRequest>;\n /** Custom elements for different autosave states */\n autoSaveStates?: AutoSaveIndicatorElements;\n /** Whether to close the dialog after successful submission */\n closeOnSubmit?: boolean;\n /** Default values for the form fields */\n defaultValues?: TRequest;\n /** Alias for refineCoreProps.errorNotification */\n errorNotification?:\n | ((error: any) => OpenNotificationParams)\n | OpenNotificationParams;\n /** Array of form field configurations */\n fields: FormFieldConfig<TRequest>[];\n /**\n * Custom footer content or configuration\n * Can be:\n * - React node\n * - Array of action button configs\n * - Function that receives form methods and returns React node\n */\n footer?:\n | ((\n methods: any,\n closeDialog: () => void,\n currentDialog?: DialogConfig<TRequest, TResponse>,\n ) => ActionItemConfig[] | ReactNode)\n | ActionItemConfig[]\n | false\n | ReactNode;\n /**\n * Class name for the footer wrapper\n * Set to false to disable default padding/border styles\n * @default \"pt-4 mt-4 border-t\"\n */\n footerClassName?: false | string;\n /** CSS class name for the form container */\n formClassName?: string;\n /**\n * Unique identifier for the form configuration.\n * This is separate from the record ID and is used to identify the form itself.\n */\n formId?: string;\n /**\n * Controls whether grouped or ungrouped fields are rendered first\n * @default GroupOrder.UNGROUPED_FIRST\n */\n groupOrder?: GroupOrder;\n /**\n * Groups configuration for organizing fields\n */\n groups?: FormGroupType[];\n /**\n * Custom header content to render at the top of the form\n * Can be:\n * - React node for static content\n * - Function that receives environment context and returns React node\n * - false to hide header\n */\n header?: ((environment: any) => ReactNode) | false | ReactNode;\n /** The ID of the record being edited (for edit forms) */\n id?: BaseKey;\n /** The layout type for the form */\n layout?: LayoutType;\n /** Error handler for form submission */\n onError?: (error: Error) => void;\n /** Submit handler for the form */\n onSubmit?: (values: TRequest) => Promise<TResponse> | void;\n /** Alias for refineCoreProps.onMutationSuccess */\n onSuccess?: (response: TResponse, values: TRequest) => void;\n /** Whether to use refine framework */\n refine?: boolean;\n /** Refine-specific form properties */\n refineCoreProps?: RefineUseFormProps<\n TRequest,\n HttpError,\n TRequest\n >[\"refineCoreProps\"] & {\n /** Error notification configuration */\n errorNotification?: (error: any) => OpenNotificationParams;\n /** Metadata for the form */\n meta?: Record<string, unknown>;\n /** Success notification configuration */\n successNotification?: (data: any, values: any) => OpenNotificationParams;\n };\n /** The resource name for the form */\n resource?: string;\n /** Label for the submit button */\n submitLabel?: ((values: Partial<TRequest>) => string) | string;\n /** Alias for refineCoreProps.successNotification */\n successNotification?: (data: any, values: any) => OpenNotificationParams;\n /** Zod schema for form validation */\n validationSchema?: z.ZodSchema<TRequest>;\n /**\n * Optional callback for receiving a force rerender method.\n * The framework will call this callback with a method that can be stored\n * locally and used to force a component rerender when something outside\n * the render loop needs to trigger a rerender.\n */\n forceRerender?: ForceRerenderCallback;\n /**\n * Optional callback for receiving an environment sync method.\n * The framework will call this callback with a method that can be stored\n * locally and used to sync environment changes when something outside\n * the normal flow updates the environment.\n */\n environmentSync?: EnvironmentSyncCallback;\n /**\n * Callback when navigation starts\n */\n onNavigationStart?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry') => void;\n /**\n * Callback when navigation ends successfully\n */\n onNavigationEnd?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry') => void;\n /**\n * Callback when navigation fails\n */\n onNavigationError?: (fromStep: number, toStep: number, type: 'goTo' | 'jumpTo' | 'next' | 'previous' | 'retry', error: any) => void;\n}\n\n/**\n * Configuration interface for a form field\n */\nexport interface FormFieldConfig<TRequest extends BaseRecord = any> {\n /**\n * The HTML autocomplete attribute value for the field.\n * If provided, it will be passed to the underlying input component.\n */\n autocomplete?: AutocompleteToken;\n /** CSS class name for the field container */\n className?: string;\n /** Custom component to render for this field */\n component?: ComponentType<any>;\n /**\n * Optimize performance by specifying which field names (paths using dot notation)\n * influence the 'show' function or 'requires' conditions for this field.\n * If omitted, conditional checks might rely on less performant full form watches.\n */\n dependencies?: string[];\n /** Description text for the field */\n description?: string;\n /**\n * Group ID this field belongs to\n */\n group?: string;\n /** CSS class name for the input element */\n inputClassName?: string;\n /**\n * Additional props to pass to the underlying input element\n */\n inputProps?: Record<string, any>;\n /**\n * Class name applied to the FormItem wrapper component\n */\n itemClassName?: string;\n /** Label text for the field */\n label?: string;\n /** CSS class name for the label element */\n labelClassName?: string;\n /** Field name/path (using dot notation for nested fields) */\n name: Path<TRequest> | (string & {});\n /** Options for select-type fields */\n options?: FormFieldOption[];\n /** Placeholder text for the field */\n placeholder?: string;\n /** Whether the field is required */\n required?: boolean;\n /**\n * Declaratively define dependencies for field visibility.\n * The field will only be shown if *all* conditions in this object are met.\n * Keys are paths to other fields (using dot notation for nested fields).\n * Values are the required value for that field, or a function predicate.\n * Example: { 'user.role': 'admin', 'settings.enabled': true, 'profile.age': (age) => age >= 18 }\n * If used with 'show', both must allow visibility (requires passes AND show returns true).\n */\n requires?: Record<string, ((fieldValue: any) => boolean) | any>;\n /**\n * Programmatically control field visibility based on form values.\n * Return true to show the field, false to hide it.\n * Can be an async function, but this introduces complexity (loading states, error handling)\n * often better handled within a custom field component.\n * If used with 'requires', both must allow visibility (requires passes AND show returns true).\n */\n show?: (values: TRequest) => boolean | Promise<boolean>;\n /** The type of form field */\n type: FormFieldType | string;\n /** Zod schema for field validation */\n validation?: z.ZodTypeAny;\n}\n\n/**\n * Type for form field options\n */\nexport type FormFieldOption = string | { label: string; value: string };\n\n/**\n * Configuration interface for form field groups\n */\nexport interface FormGroupType {\n /** CSS class name for the group container */\n className?: string;\n /** Description for the group */\n description?: string;\n /** Unique ID for the group */\n id: string;\n /** Title for the group */\n title?: string;\n}\n\n/**\n * Defines the structure for a single step in a multi-step form.\n */\nexport interface StepDefinition<TRequest extends BaseRecord = any> {\n /**\n * Whether to allow navigation to this step by clicking on progress indicator\n * Takes precedence over the wizard-level allowStepNavigation config\n */\n allowStepNavigation?: AllowStepNavigation;\n /**\n * Description for the step\n */\n description?: string;\n /** Fields in this step */\n fields: FormFieldConfig<TRequest>[];\n /**\n * Icon for the step (used in wizard navigation)\n */\n icon?: React.ReactNode;\n /** Metadata for the step */\n meta?: Record<string, unknown>;\n /**\n * Callback when this step's submission fails\n */\n onStepError?: (error: Error) => Promise<void> | void;\n /**\n * Callback when this step's form is successfully submitted\n */\n onStepSubmit?: (values: Partial<TRequest>) => Promise<void> | void;\n /**\n * Callback when this step's submission succeeds\n */\n onStepSuccess?: (\n response: any,\n values: Partial<TRequest>,\n ) => Promise<void> | void;\n /**\n * Callback when this step needs to be retried\n */\n onRetryStep?: () => Promise<void> | void;\n /**\n * Short title for the step (used in wizard navigation)\n */\n shortTitle?: string;\n /**\n * Dynamic submit label for this step\n * Receives form values and returns a string label\n */\n submitLabel?: (values: Partial<TRequest>) => string;\n /** Title for the step */\n title: string;\n /**\n * Zod schema for validating this step's fields\n */\n validationSchema?: z.ZodSchema<Partial<TRequest>>;\n}\n\n/**\n * Configuration interface for a step form\n */\nexport interface StepFormConfig<\n TRequest extends BaseRecord = any,\n TResponse extends BaseRecord = any,\n> extends Omit<FormConfig<TRequest, TResponse>, \"fields\" | \"footer\"> {\n /**\n * Whether to allow navigation to steps by clicking on progress indicator\n * @default true\n */\n allowStepNavigation?: boolean | (() => boolean);\n /** Custom footer renderer for step forms */\n footer?: StepFormFooterRenderer<TRequest, TResponse>;\n /**\n * Callback when all steps are completed successfully\n */\n onFinish?: (finalValues: TRequest) => Promise<void> | void;\n /** Behavior configuration for steps */\n stepBehavior?: {\n /** Default step to start on */\n defaultStep?: number;\n /** Whether to validate when going back */\n isBackValidate?: boolean;\n };\n /** Array of step definitions */\n steps: StepDefinition<TRequest>[];\n /**\n * Optional callback for receiving a force rerender method.\n * The framework will call this callback with a method that can be stored\n * locally and used to force a component rerender when something outside\n * the render loop needs to trigger a rerender.\n */\n forceRerender?: ForceRerenderCallback;\n /**\n * Optional callback for receiving an environment sync method.\n * The framework will call this callback with a method that can be stored\n * locally and used to sync environment changes when something outside\n * the normal flow updates the environment.\n */\n environmentSync?: EnvironmentSyncCallback;\n}\n\n/**\n * Type for step form footer renderer function\n */\nexport type StepFormFooterRenderer<\n TRequest extends BaseRecord = any,\n TResponse extends BaseRecord = any,\n> = (\n /** Step control methods */\n stepMethods: StepFormMethods,\n /** Form methods */\n formMethods: any,\n /** Function to close the dialog */\n closeDialog: () => void,\n /** Current dialog configuration */\n currentDialog?: DialogConfig<TRequest, TResponse>,\n) => React.ReactNode;\n\n/**\n * Configuration object specifically for a multi-step form process.\n */\nexport interface StepFormMethods {\n /** Current step index */\n currentStep: number;\n /** Function to navigate to a specific step */\n gotoStep: (step: number) => void;\n /** Function to go to the next step */\n handleNext: () => Promise<void>;\n /** Function to go to the previous step */\n handlePrevious: () => Promise<void>;\n /** Function to retry the current step */\n handleRetry: () => Promise<void>;\n /** Function to submit the current step */\n handleSubmit: () => Promise<void>;\n /** Whether the current step is the first step */\n isFirstStep: boolean;\n /** Whether the current step is the last step */\n isLastStep: boolean;\n /** Function to jump to a specific step number */\n jumpTo: (step: number) => void;\n /** Total number of steps */\n totalSteps: number;\n}\n\n/**\n * Configuration for a wizard form that extends StepFormConfig with wizard-specific options\n */\nexport interface WizardFormConfig<\n TRequest extends BaseRecord = any,\n TResponse extends BaseRecord = any,\n> extends StepFormConfig<TRequest, TResponse> {\n /**\n * Action buttons configuration for the form footer\n * Can be:\n * - Array of action button configs\n * - Function that receives form methods and step control props and returns array of action button configs\n * - false to hide action buttons\n */\n actionButtons?: ActionItemConfig[] | false | ActionButtonsCallback<TRequest>;\n /**\n * Whether to allow navigation to steps by clicking on progress indicator\n * @default true\n */\n allowStepNavigation?: boolean | (() => boolean);\n /**\n * Maximum width for step descriptions in the wizard header\n * Uses standard component size classes (e.g., 'xs', 'sm', 'md', 'lg', 'xl', '2xl', etc.)\n * @default 'xs'\n */\n descriptionMaxWidth?: ComponentSize;\n /**\n * Custom className for wizard footer\n */\n footerClassName?: string;\n /**\n * Custom className for wizard header\n */\n headerClassName?: string;\n /**\n * Style of progress indicator to use\n * @default 'timeline'\n */\n progressStyle?: \"dots\" | \"stepper\" | \"timeline\";\n /**\n * Whether to show step descriptions in the progress indicator\n * @default true\n */\n showStepDescriptions?: boolean;\n /**\n * Whether to show step progress indicator\n * @default true\n */\n showStepProgress?: boolean;\n /**\n * Whether to show step titles in the progress indicator\n * @default true\n */\n showStepTitles?: boolean;\n /**\n * Array of step indices that cannot be navigated to\n * @default []\n */\n stepNavigationDisabled?:\n | ((currentStep: number, data: any) => boolean[])\n | boolean[];\n /**\n * Custom className for wizard wrapper\n */\n wizardClassName?: string;\n /**\n * Optional callback for receiving a force rerender method.\n * The framework will call this callback with a method that can be stored\n * locally and used to force a component rerender when something outside\n * the render loop needs to trigger a rerender.\n */\n forceRerender?: ForceRerenderCallback;\n /**\n * Optional callback for receiving an environment sync method.\n * The framework will call this callback with a method that can be stored\n * locally and used to sync environment changes when something outside\n * the normal flow updates the environment.\n */\n environmentSync?: EnvironmentSyncCallback;\n}\n\n/**\n * Wizard-specific step definition that extends StepDefinition\n * Wizard steps require UI properties (icon, shortTitle, description) that are optional in regular step forms\n */\nexport interface WizardStepDefinition<TRequest extends BaseRecord = any>\n extends Omit<\n StepDefinition<TRequest>,\n \"description\" | \"icon\" | \"shortTitle\"\n > {\n /**\n * Whether to allow navigation to this step by clicking on progress indicator\n * Takes precedence over the wizard-level allowStepNavigation config\n */\n allowStepNavigation?: AllowStepNavigation;\n /**\n * Description for the step\n * Required for wizard steps\n */\n description: string;\n /**\n * Icon for the step (used in wizard navigation)\n * Required for wizard steps\n */\n icon: React.ReactNode;\n /**\n * Short title for the step (used in wizard navigation)\n * Required for wizard steps\n */\n shortTitle: string;\n}\n\n/**\n * Type guard to check if footer is a function with the proper signature\n */\nexport function isFooterFunction<\n TRequest extends BaseRecord,\n TResponse extends BaseRecord,\n>(\n footer:\n | ((\n methods: any,\n closeDialog: () => void,\n currentDialog?: DialogConfig<TRequest, TResponse>,\n ) => ActionItemConfig[] | ReactNode)\n | ActionItemConfig[]\n | false\n | ReactNode\n | undefined,\n): footer is (\n methods: any,\n closeDialog: () => void,\n currentDialog?: DialogConfig<TRequest, TResponse>,\n) => ActionItemConfig[] | ReactNode {\n if (typeof footer !== \"function\") return false;\n\n // We can't fully validate function signatures at runtime, but we can check the length\n // Footer functions should have 2 or 3 parameters (methods, closeDialog, currentDialog?)\n const fn = footer as Function;\n return fn.length >= 2 && fn.length <= 3;\n}\n\n/**\n * Type guard to check if actionButtons is a function with the proper signature\n */\nexport function isActionButtonsFunction<TRequest extends BaseRecord>(\n actionButtons:\n | ActionItemConfig[]\n | false\n | ((props: {\n environment?: UnifiedEnvironment;\n }) => ActionItemConfig[] | undefined | false)\n | undefined,\n): actionButtons is (props: {\n environment?: UnifiedEnvironment;\n}) => ActionItemConfig[] | undefined | false {\n return typeof actionButtons === \"function\";\n}\n\n/**\n * Type guard to check if header is a function\n */\nexport function isHeaderFunction<TRequest extends BaseRecord>(\n header: ((environment: any) => ReactNode) | false | ReactNode | undefined,\n): header is (environment: any) => ReactNode {\n return typeof header === \"function\";\n}\n\n/**\n * Type guard to differentiate between single-step and multi-step form configs.\n */\nexport function isStepFormConfig<\n TRequest extends BaseRecord,\n TResponse extends BaseRecord = any,\n>(\n config: FormConfig<TRequest, TResponse> | StepFormConfig<TRequest, TResponse>,\n): config is StepFormConfig<TRequest, TResponse> {\n return (config as StepFormConfig<TRequest>)?.steps !== undefined;\n}\n\n/**\n * Type guard to check if submitLabel is a function\n */\nexport function isSubmitLabelFunction<TRequest extends BaseRecord>(\n submitLabel: ((values: Partial<TRequest>) => string) | string | undefined,\n): submitLabel is (values: Partial<TRequest>) => string {\n return typeof submitLabel === \"function\";\n}\n"],"mappings":";;;;AA8BA,IAAY,cAAL;;AAEL;;AAEA;;KACD;;;;AAaD,IAAY,aAAL;;AAEL;;AAEA;;KACD;;;;AAKD,IAAY,aAAL;;AAEL;;AAEA;;AAEA;;KACD;;;;AA6fD,SAAgB,iBAId,QAckC;AAClC,KAAI,OAAO,WAAW,WAAY,QAAO;CAIzC,MAAM,KAAK;AACX,QAAO,GAAG,UAAU,KAAK,GAAG,UAAU;;;;;AAMxC,SAAgB,wBACd,eAS2C;AAC3C,QAAO,OAAO,kBAAkB;;;;;AAMlC,SAAgB,iBACd,QAC2C;AAC3C,QAAO,OAAO,WAAW;;;;;AAM3B,SAAgB,iBAId,QAC+C;AAC/C,QAAQ,QAAqC,UAAU;;;;;AAMzD,SAAgB,sBACd,aACsD;AACtD,QAAO,OAAO,gBAAgB"}
@@ -0,0 +1,14 @@
1
+ //#region src/components/form/utils/animationUtils.d.ts
2
+ /**
3
+ * Determines animation classes for wizard step transitions using CSS Grid
4
+ *
5
+ * @param isEntering - Whether the step is currently entering
6
+ * @param isExiting - Whether the step is currently exiting
7
+ * @param isActive - Whether the step is currently active
8
+ * @param direction - The direction of transition ("forward", "backward", or null)
9
+ * @returns CSS classes for the transition animation
10
+ */
11
+ declare function getStepAnimationClasses(isEntering: boolean, isExiting: boolean, isActive: boolean, direction: "backward" | "forward" | null): string;
12
+ //#endregion
13
+ export { getStepAnimationClasses };
14
+ //# sourceMappingURL=animationUtils.d.ts.map
@@ -0,0 +1,20 @@
1
+ //#region src/components/form/utils/animationUtils.ts
2
+ /**
3
+ * Determines animation classes for wizard step transitions using CSS Grid
4
+ *
5
+ * @param isEntering - Whether the step is currently entering
6
+ * @param isExiting - Whether the step is currently exiting
7
+ * @param isActive - Whether the step is currently active
8
+ * @param direction - The direction of transition ("forward", "backward", or null)
9
+ * @returns CSS classes for the transition animation
10
+ */
11
+ function getStepAnimationClasses(isEntering, isExiting, isActive, direction) {
12
+ if (isEntering) return "opacity-100 scale-100 pointer-events-auto z-10";
13
+ if (isExiting) return "opacity-0 scale-95 pointer-events-none z-0";
14
+ if (isActive) return "opacity-100 scale-100 pointer-events-auto z-10";
15
+ return "opacity-0 scale-95 pointer-events-none z-0";
16
+ }
17
+
18
+ //#endregion
19
+ export { getStepAnimationClasses };
20
+ //# sourceMappingURL=animationUtils.js.map