@qwickapps/react-framework 1.4.9 → 1.5.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 (738) hide show
  1. package/README.md +23 -0
  2. package/dist/__tests__/schemas/transformers/MockSerializableComponent.d.ts +9 -9
  3. package/dist/__tests__/schemas/transformers/MockSerializableComponent.d.ts.map +1 -1
  4. package/dist/components/AccessibilityProvider.d.ts +1 -1
  5. package/dist/components/AccessibilityProvider.d.ts.map +1 -1
  6. package/dist/components/ErrorBoundary.d.ts +1 -1
  7. package/dist/components/Html.d.ts +8 -8
  8. package/dist/components/Html.d.ts.map +1 -1
  9. package/dist/components/Logo.d.ts +2 -2
  10. package/dist/components/Logo.d.ts.map +1 -1
  11. package/dist/components/Markdown.d.ts +5 -5
  12. package/dist/components/Markdown.d.ts.map +1 -1
  13. package/dist/components/ProductLogo.d.ts +60 -0
  14. package/dist/components/ProductLogo.d.ts.map +1 -0
  15. package/dist/components/QwickAppsLogo.d.ts +1 -1
  16. package/dist/components/QwickAppsLogo.d.ts.map +1 -1
  17. package/dist/components/ResponsiveMenu.d.ts.map +1 -1
  18. package/dist/components/SafeSpan.d.ts +4 -4
  19. package/dist/components/SafeSpan.d.ts.map +1 -1
  20. package/dist/components/Scaffold.d.ts.map +1 -1
  21. package/dist/components/base/Container.d.ts +3 -2
  22. package/dist/components/base/Container.d.ts.map +1 -1
  23. package/dist/components/base/ModelView.d.ts +16 -16
  24. package/dist/components/base/ModelView.d.ts.map +1 -1
  25. package/dist/components/base/index.d.ts +1 -1
  26. package/dist/components/base/index.d.ts.map +1 -1
  27. package/dist/components/blocks/Article.d.ts +4 -18
  28. package/dist/components/blocks/Article.d.ts.map +1 -1
  29. package/dist/components/blocks/CardListGrid.d.ts +3 -3
  30. package/dist/components/blocks/CardListGrid.d.ts.map +1 -1
  31. package/dist/components/blocks/Code.d.ts +5 -31
  32. package/dist/components/blocks/Code.d.ts.map +1 -1
  33. package/dist/components/blocks/Content.d.ts +2 -17
  34. package/dist/components/blocks/Content.d.ts.map +1 -1
  35. package/dist/components/blocks/CoverImageHeader.d.ts +2 -12
  36. package/dist/components/blocks/CoverImageHeader.d.ts.map +1 -1
  37. package/dist/components/blocks/FeatureCard.d.ts +0 -17
  38. package/dist/components/blocks/FeatureCard.d.ts.map +1 -1
  39. package/dist/components/blocks/FeatureGrid.d.ts.map +1 -1
  40. package/dist/components/blocks/Footer.d.ts +2 -14
  41. package/dist/components/blocks/Footer.d.ts.map +1 -1
  42. package/dist/components/blocks/HeroBlock.d.ts +35 -26
  43. package/dist/components/blocks/HeroBlock.d.ts.map +1 -1
  44. package/dist/components/blocks/Image.d.ts +23 -23
  45. package/dist/components/blocks/Image.d.ts.map +1 -1
  46. package/dist/components/blocks/PageBannerHeader.d.ts +2 -13
  47. package/dist/components/blocks/PageBannerHeader.d.ts.map +1 -1
  48. package/dist/components/blocks/ProductCard.d.ts +0 -9
  49. package/dist/components/blocks/ProductCard.d.ts.map +1 -1
  50. package/dist/components/blocks/Section.d.ts +16 -24
  51. package/dist/components/blocks/Section.d.ts.map +1 -1
  52. package/dist/components/blocks/Text.d.ts +5 -20
  53. package/dist/components/blocks/Text.d.ts.map +1 -1
  54. package/dist/components/buttons/Button.d.ts +19 -23
  55. package/dist/components/buttons/Button.d.ts.map +1 -1
  56. package/dist/components/buttons/PaletteSwitcher.d.ts +2 -2
  57. package/dist/components/buttons/PaletteSwitcher.d.ts.map +1 -1
  58. package/dist/components/buttons/ThemeSwitcher.d.ts +2 -2
  59. package/dist/components/buttons/ThemeSwitcher.d.ts.map +1 -1
  60. package/dist/components/dialogs/Dialog.d.ts +35 -0
  61. package/dist/components/dialogs/Dialog.d.ts.map +1 -0
  62. package/dist/components/dialogs/index.d.ts +8 -0
  63. package/dist/components/dialogs/index.d.ts.map +1 -0
  64. package/dist/components/forms/Captcha.d.ts +55 -0
  65. package/dist/components/forms/Captcha.d.ts.map +1 -0
  66. package/dist/components/forms/FormBlock.d.ts +6 -6
  67. package/dist/components/forms/FormBlock.d.ts.map +1 -1
  68. package/dist/components/forms/FormCheckbox.d.ts +27 -0
  69. package/dist/components/forms/FormCheckbox.d.ts.map +1 -0
  70. package/dist/components/forms/FormField.d.ts +43 -0
  71. package/dist/components/forms/FormField.d.ts.map +1 -0
  72. package/dist/components/forms/FormSelect.d.ts +35 -0
  73. package/dist/components/forms/FormSelect.d.ts.map +1 -0
  74. package/dist/components/forms/index.d.ts +8 -0
  75. package/dist/components/forms/index.d.ts.map +1 -1
  76. package/dist/components/index.d.ts +10 -2
  77. package/dist/components/index.d.ts.map +1 -1
  78. package/dist/components/input/ChoiceInputField.d.ts +13 -19
  79. package/dist/components/input/ChoiceInputField.d.ts.map +1 -1
  80. package/dist/components/input/HtmlInputField.d.ts +16 -17
  81. package/dist/components/input/HtmlInputField.d.ts.map +1 -1
  82. package/dist/components/input/SelectInputField.d.ts +14 -17
  83. package/dist/components/input/SelectInputField.d.ts.map +1 -1
  84. package/dist/components/input/SwitchInputField.d.ts +11 -18
  85. package/dist/components/input/SwitchInputField.d.ts.map +1 -1
  86. package/dist/components/input/TextInputField.d.ts +16 -19
  87. package/dist/components/input/TextInputField.d.ts.map +1 -1
  88. package/dist/components/layout/CollapsibleLayout/CollapsibleLayout.d.ts.map +1 -1
  89. package/dist/components/layout/GridCell.d.ts +18 -19
  90. package/dist/components/layout/GridCell.d.ts.map +1 -1
  91. package/dist/components/layout/GridLayout.d.ts +36 -25
  92. package/dist/components/layout/GridLayout.d.ts.map +1 -1
  93. package/dist/components/menu/MenuItem.d.ts +2 -2
  94. package/dist/components/menu/MenuItem.d.ts.map +1 -1
  95. package/dist/components/pages/FormPage.d.ts.map +1 -1
  96. package/dist/components/pages/Page.d.ts +1 -1
  97. package/dist/components/pages/Page.d.ts.map +1 -1
  98. package/dist/components/shared/createSerializableView.d.ts +22 -10
  99. package/dist/components/shared/createSerializableView.d.ts.map +1 -1
  100. package/dist/components/shared/viewProps.d.ts +3 -3
  101. package/dist/components/shared/viewProps.d.ts.map +1 -1
  102. package/dist/config/AppConfig.d.ts +2 -2
  103. package/dist/config/AppConfig.d.ts.map +1 -1
  104. package/dist/config/types.d.ts +1 -1
  105. package/dist/config/types.d.ts.map +1 -1
  106. package/dist/contexts/DataContext.d.ts +3 -3
  107. package/dist/contexts/DataContext.d.ts.map +1 -1
  108. package/dist/contexts/PaletteContext.d.ts.map +1 -1
  109. package/dist/contexts/ThemeContext.d.ts.map +1 -1
  110. package/dist/hooks/useDataBinding.d.ts +2 -2
  111. package/dist/hooks/useDataBinding.d.ts.map +1 -1
  112. package/dist/hooks/usePrintMode.d.ts +2 -2
  113. package/dist/hooks/usePrintMode.d.ts.map +1 -1
  114. package/dist/index.css +1 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.esm.css +1 -1
  117. package/dist/index.esm.js +4143 -2318
  118. package/dist/index.js +4169 -2315
  119. package/dist/palettes/manifest.json +90 -0
  120. package/dist/palettes/palette-autumn.1.4.9.min.css +1 -0
  121. package/dist/palettes/palette-autumn.1.5.0.css +172 -0
  122. package/dist/palettes/palette-autumn.1.5.0.min.css +1 -0
  123. package/dist/palettes/palette-autumn.1.5.1.css +172 -0
  124. package/dist/palettes/palette-autumn.1.5.1.min.css +1 -0
  125. package/dist/palettes/palette-autumn.latest.css +172 -0
  126. package/dist/palettes/palette-autumn.latest.min.css +1 -0
  127. package/dist/palettes/palette-cosmic.1.4.9.min.css +1 -0
  128. package/dist/palettes/palette-cosmic.1.5.0.css +172 -0
  129. package/dist/palettes/palette-cosmic.1.5.0.min.css +1 -0
  130. package/dist/palettes/palette-cosmic.1.5.1.css +172 -0
  131. package/dist/palettes/palette-cosmic.1.5.1.min.css +1 -0
  132. package/dist/palettes/palette-cosmic.latest.css +172 -0
  133. package/dist/palettes/palette-cosmic.latest.min.css +1 -0
  134. package/dist/palettes/palette-default.1.4.9.min.css +1 -0
  135. package/dist/palettes/palette-default.1.5.0.css +178 -0
  136. package/dist/palettes/palette-default.1.5.0.min.css +1 -0
  137. package/dist/palettes/palette-default.1.5.1.css +178 -0
  138. package/dist/palettes/palette-default.1.5.1.min.css +1 -0
  139. package/dist/palettes/palette-default.latest.css +178 -0
  140. package/dist/palettes/palette-default.latest.min.css +1 -0
  141. package/dist/palettes/palette-ocean.1.4.9.min.css +1 -0
  142. package/dist/palettes/palette-ocean.1.5.0.css +172 -0
  143. package/dist/palettes/palette-ocean.1.5.0.min.css +1 -0
  144. package/dist/palettes/palette-ocean.1.5.1.css +172 -0
  145. package/dist/palettes/palette-ocean.1.5.1.min.css +1 -0
  146. package/dist/palettes/palette-ocean.latest.css +172 -0
  147. package/dist/palettes/palette-ocean.latest.min.css +1 -0
  148. package/dist/palettes/palette-spring.1.4.9.min.css +1 -0
  149. package/dist/palettes/palette-spring.1.5.0.css +160 -0
  150. package/dist/palettes/palette-spring.1.5.0.min.css +1 -0
  151. package/dist/palettes/palette-spring.1.5.1.css +160 -0
  152. package/dist/palettes/palette-spring.1.5.1.min.css +1 -0
  153. package/dist/palettes/palette-spring.latest.css +160 -0
  154. package/dist/palettes/palette-spring.latest.min.css +1 -0
  155. package/dist/palettes/palette-winter.1.4.9.min.css +1 -0
  156. package/dist/palettes/palette-winter.1.5.0.css +172 -0
  157. package/dist/palettes/palette-winter.1.5.0.min.css +1 -0
  158. package/dist/palettes/palette-winter.1.5.1.css +172 -0
  159. package/dist/palettes/palette-winter.1.5.1.min.css +1 -0
  160. package/dist/palettes/palette-winter.latest.css +172 -0
  161. package/dist/palettes/palette-winter.latest.min.css +1 -0
  162. package/dist/schemas/ButtonSchema.d.ts +5 -2
  163. package/dist/schemas/ButtonSchema.d.ts.map +1 -1
  164. package/dist/schemas/CardListGridSchema.d.ts +4 -4
  165. package/dist/schemas/CardListGridSchema.d.ts.map +1 -1
  166. package/dist/schemas/ChoiceInputFieldSchema.d.ts +2 -2
  167. package/dist/schemas/ChoiceInputFieldSchema.d.ts.map +1 -1
  168. package/dist/schemas/CodeSchema.d.ts +1 -2
  169. package/dist/schemas/CodeSchema.d.ts.map +1 -1
  170. package/dist/schemas/FormBlockSchema.d.ts +2 -2
  171. package/dist/schemas/FormBlockSchema.d.ts.map +1 -1
  172. package/dist/schemas/GridCellSchema.d.ts +2 -4
  173. package/dist/schemas/GridCellSchema.d.ts.map +1 -1
  174. package/dist/schemas/GridLayoutSchema.d.ts +3 -5
  175. package/dist/schemas/GridLayoutSchema.d.ts.map +1 -1
  176. package/dist/schemas/HeroBlockSchema.d.ts +2 -2
  177. package/dist/schemas/HeroBlockSchema.d.ts.map +1 -1
  178. package/dist/schemas/HtmlInputFieldSchema.d.ts +2 -2
  179. package/dist/schemas/HtmlInputFieldSchema.d.ts.map +1 -1
  180. package/dist/schemas/ImageSchema.d.ts +2 -2
  181. package/dist/schemas/ImageSchema.d.ts.map +1 -1
  182. package/dist/schemas/SectionSchema.d.ts +2 -4
  183. package/dist/schemas/SectionSchema.d.ts.map +1 -1
  184. package/dist/schemas/SelectInputFieldSchema.d.ts +2 -2
  185. package/dist/schemas/SelectInputFieldSchema.d.ts.map +1 -1
  186. package/dist/schemas/SwitchInputFieldSchema.d.ts +2 -2
  187. package/dist/schemas/SwitchInputFieldSchema.d.ts.map +1 -1
  188. package/dist/schemas/TextInputFieldSchema.d.ts +2 -2
  189. package/dist/schemas/TextInputFieldSchema.d.ts.map +1 -1
  190. package/dist/schemas/ViewSchema.d.ts +8 -7
  191. package/dist/schemas/ViewSchema.d.ts.map +1 -1
  192. package/dist/schemas/transformers/ComponentTransformer.d.ts +2 -2
  193. package/dist/schemas/transformers/ComponentTransformer.d.ts.map +1 -1
  194. package/dist/schemas/transformers/ReactNodeTransformer.d.ts +2 -2
  195. package/dist/schemas/transformers/ReactNodeTransformer.d.ts.map +1 -1
  196. package/dist/schemas/transformers/registry.d.ts +0 -7
  197. package/dist/schemas/transformers/registry.d.ts.map +1 -1
  198. package/dist/schemas/types/Serializable.d.ts +3 -3
  199. package/dist/schemas/types/Serializable.d.ts.map +1 -1
  200. package/dist/stories/_templates/SerializationTemplate.d.ts.map +1 -0
  201. package/dist/types/CollapsibleLayout.d.ts +3 -3
  202. package/dist/types/CollapsibleLayout.d.ts.map +1 -1
  203. package/dist/types/ContentProxy.d.ts +4 -4
  204. package/dist/types/ContentProxy.d.ts.map +1 -1
  205. package/dist/types/DataTypes.d.ts +4 -4
  206. package/dist/types/DataTypes.d.ts.map +1 -1
  207. package/dist/types/TemplateProvider.d.ts +1 -1
  208. package/dist/types/TemplateProvider.d.ts.map +1 -1
  209. package/dist/types/TemplateResolver.d.ts +1 -1
  210. package/dist/types/TemplateResolver.d.ts.map +1 -1
  211. package/dist/utils/htmlTransform.d.ts +1 -1
  212. package/dist/utils/htmlTransform.d.ts.map +1 -1
  213. package/dist/utils/iconMap.d.ts +48 -0
  214. package/dist/utils/iconMap.d.ts.map +1 -0
  215. package/dist/utils/index.d.ts +3 -0
  216. package/dist/utils/index.d.ts.map +1 -1
  217. package/dist/utils/logger.d.ts +11 -7
  218. package/dist/utils/logger.d.ts.map +1 -1
  219. package/dist/utils/paletteLoader.d.ts +34 -0
  220. package/dist/utils/paletteLoader.d.ts.map +1 -0
  221. package/dist/utils/paletteManifest.d.ts +51 -0
  222. package/dist/utils/paletteManifest.d.ts.map +1 -0
  223. package/dist/utils/paletteUtils.d.ts.map +1 -1
  224. package/dist/utils/reactUtils.d.ts +12 -6
  225. package/dist/utils/reactUtils.d.ts.map +1 -1
  226. package/dist/utils/spacing.d.ts +2 -2
  227. package/dist/utils/spacing.d.ts.map +1 -1
  228. package/dist/utils/themePerformanceMonitor.d.ts.map +1 -1
  229. package/dist/utils/themeUtils.d.ts.map +1 -1
  230. package/package.json +20 -9
  231. package/scripts/build-palettes.cjs +120 -0
  232. package/src/__tests__/components/Article.test.tsx +1 -1
  233. package/src/__tests__/components/Breadcrumbs.test.tsx +2 -2
  234. package/src/__tests__/components/Button.test.tsx +3 -3
  235. package/src/__tests__/components/CardListGrid.test.tsx +5 -5
  236. package/src/__tests__/components/ChoiceInputField.test.tsx +2 -2
  237. package/src/__tests__/components/Code.test.tsx +2 -2
  238. package/src/__tests__/components/Content.integration.test.tsx +1 -1
  239. package/src/__tests__/components/Content.test.tsx +5 -5
  240. package/src/__tests__/components/CoverImageHeader.test.tsx +3 -3
  241. package/src/__tests__/components/FeatureCard.integration.test.tsx +1 -1
  242. package/src/__tests__/components/FeatureGrid.integration.test.tsx +1 -1
  243. package/src/__tests__/components/FeatureGrid.test.tsx +3 -3
  244. package/src/__tests__/components/Footer.test.tsx +3 -3
  245. package/src/__tests__/components/FormBlock.test.tsx +2 -2
  246. package/src/__tests__/components/HeroBlock.integration.test.tsx +1 -1
  247. package/src/__tests__/components/HeroBlock.test.tsx +4 -4
  248. package/src/__tests__/components/HtmlInputField.test.tsx +8 -8
  249. package/src/__tests__/components/PageBannerHeader.test.tsx +7 -7
  250. package/src/__tests__/components/PaletteSwitcher.test.tsx +3 -3
  251. package/src/__tests__/components/ProductCard.test.tsx +1 -1
  252. package/src/__tests__/components/Section.integration.test.tsx +1 -1
  253. package/src/__tests__/components/Section.test.tsx +1 -1
  254. package/src/__tests__/components/SelectInputField.test.tsx +2 -2
  255. package/src/__tests__/components/TextInputField.test.tsx +4 -4
  256. package/src/__tests__/components/ThemeSwitcher.test.tsx +3 -3
  257. package/src/__tests__/components/base/Container.test.tsx +22 -21
  258. package/src/__tests__/components/blocks/Code.performance.test.tsx +10 -10
  259. package/src/__tests__/components/blocks/Code.serialization.test.tsx +9 -9
  260. package/src/__tests__/components/blocks/HeroBlock.serialization.test.tsx +2 -3
  261. package/src/__tests__/components/blocks/Image.serialization.test.tsx +8 -7
  262. package/src/__tests__/components/blocks/Section.serialization.test.tsx +8 -8
  263. package/src/__tests__/components/blocks/Text.performance.test.tsx +5 -5
  264. package/src/__tests__/components/blocks/Text.serialization.test.tsx +9 -9
  265. package/src/__tests__/components/buttons/Button.serialization.test.tsx +4 -4
  266. package/src/__tests__/components/input/FormComponents.serialization.test.tsx +9 -9
  267. package/src/__tests__/components/input/SelectInputField.serialization.test.tsx +16 -18
  268. package/src/__tests__/components/input/TextInputField.serialization.test.tsx +9 -9
  269. package/src/__tests__/components/layout/CollapsibleLayout.test.tsx +5 -9
  270. package/src/__tests__/components/layout/GridCell.serialization.test.tsx +5 -5
  271. package/src/__tests__/components/layout/GridLayout.serialization.test.tsx +5 -5
  272. package/src/__tests__/hooks/usePrintMode.test.ts +1 -0
  273. package/src/__tests__/schemas/builders.test.ts +2 -2
  274. package/src/__tests__/schemas/transformers/ComponentSerializationPatterns.test.tsx +28 -28
  275. package/src/__tests__/schemas/transformers/ComponentTransformer.htmlPatterns.test.ts +5 -5
  276. package/src/__tests__/schemas/transformers/ComponentTransformer.test.ts +11 -11
  277. package/src/__tests__/schemas/transformers/CrossBrowserCompatibility.test.ts +10 -10
  278. package/src/__tests__/schemas/transformers/MockSerializableComponent.ts +15 -15
  279. package/src/__tests__/schemas/transformers/RealWorldScenarios.test.tsx +19 -19
  280. package/src/__tests__/schemas/transformers/SerializationErrorHandling.test.ts +15 -15
  281. package/src/__tests__/schemas/transformers/SerializationIntegration.test.tsx +19 -21
  282. package/src/__tests__/schemas/transformers/SerializationPerformance.test.ts +15 -15
  283. package/src/__tests__/schemas/transformers/TestAutomation.test.ts +3 -3
  284. package/src/__tests__/schemas/transformers/nested-serialization.test.tsx +1 -1
  285. package/src/__tests__/schemas/transformers/round-trip-component-serialization.test.tsx +10 -10
  286. package/src/__tests__/utils/optional-logging.test.ts +3 -3
  287. package/src/components/AccessibilityProvider.tsx +4 -2
  288. package/src/components/ErrorBoundary.tsx +1 -1
  289. package/src/components/Html.tsx +13 -16
  290. package/src/components/Logo.tsx +42 -29
  291. package/src/components/Markdown.tsx +9 -9
  292. package/src/components/ProductLogo.tsx +118 -0
  293. package/src/components/QwickApp.css +37 -1060
  294. package/src/components/QwickApp.tsx +1 -1
  295. package/src/components/QwickAppsLogo.tsx +1 -1
  296. package/src/components/ResponsiveMenu.tsx +1 -1
  297. package/src/components/SafeSpan.tsx +8 -8
  298. package/src/components/Scaffold.css +11 -1
  299. package/src/components/Scaffold.tsx +55 -25
  300. package/src/components/base/Container.tsx +2 -2
  301. package/src/components/base/ModelView.tsx +28 -27
  302. package/src/components/base/index.ts +1 -1
  303. package/src/components/blocks/Article.tsx +213 -69
  304. package/src/components/blocks/CardListGrid.tsx +18 -14
  305. package/src/components/blocks/Code.tsx +18 -13
  306. package/src/components/blocks/Content.tsx +15 -10
  307. package/src/components/blocks/CoverImageHeader.tsx +14 -9
  308. package/src/components/blocks/FeatureCard.tsx +16 -11
  309. package/src/components/blocks/FeatureGrid.tsx +13 -8
  310. package/src/components/blocks/Footer.tsx +25 -16
  311. package/src/components/blocks/HeroBlock.tsx +12 -13
  312. package/src/components/blocks/Image.tsx +16 -8
  313. package/src/components/blocks/PageBannerHeader.tsx +15 -11
  314. package/src/components/blocks/ProductCard.tsx +32 -25
  315. package/src/components/blocks/Section.tsx +21 -13
  316. package/src/components/blocks/Text.tsx +26 -11
  317. package/src/components/buttons/Button.tsx +22 -118
  318. package/src/components/buttons/PaletteSwitcher.tsx +11 -8
  319. package/src/components/buttons/ThemeSwitcher.tsx +20 -16
  320. package/src/components/dialogs/Dialog.tsx +126 -0
  321. package/src/components/dialogs/index.ts +15 -0
  322. package/src/components/forms/Captcha.tsx +291 -0
  323. package/src/components/forms/FormBlock.tsx +22 -15
  324. package/src/components/forms/FormCheckbox.tsx +116 -0
  325. package/src/components/forms/FormField.tsx +180 -0
  326. package/src/components/forms/FormSelect.tsx +140 -0
  327. package/src/components/forms/index.ts +13 -1
  328. package/src/components/index.ts +13 -2
  329. package/src/components/input/ChoiceInputField.tsx +1 -2
  330. package/src/components/input/HtmlInputField.tsx +2 -3
  331. package/src/components/input/SelectInputField.tsx +31 -5
  332. package/src/components/input/SwitchInputField.tsx +3 -4
  333. package/src/components/input/TextField.tsx +2 -2
  334. package/src/components/input/TextInputField.tsx +32 -6
  335. package/src/components/layout/CollapsibleLayout/CollapsibleLayout.tsx +13 -13
  336. package/src/components/layout/GridCell.tsx +10 -9
  337. package/src/components/layout/GridCellWrapper.tsx +1 -1
  338. package/src/components/layout/GridLayout.tsx +29 -32
  339. package/src/components/pages/FormPage.tsx +0 -1
  340. package/src/components/pages/Page.tsx +2 -2
  341. package/src/components/shared/createSerializableView.tsx +24 -23
  342. package/src/components/shared/viewProps.ts +11 -11
  343. package/src/config/AppConfig.ts +2 -2
  344. package/src/config/__tests__/AppConfig.test.ts +3 -3
  345. package/src/config/__tests__/AppConfigBuilder.test.ts +10 -11
  346. package/src/config/types.ts +1 -1
  347. package/src/contexts/DataContext.tsx +58 -52
  348. package/src/contexts/PaletteContext.tsx +22 -9
  349. package/src/contexts/PrintModeContext.tsx +4 -4
  350. package/src/contexts/ThemeContext.tsx +2 -1
  351. package/src/hooks/useBaseProps.ts +10 -10
  352. package/src/hooks/useDataBinding.ts +15 -18
  353. package/src/hooks/usePrintMode.ts +3 -3
  354. package/src/index.ts +2 -0
  355. package/src/palettes/manifest.json +72 -0
  356. package/src/palettes/manifest.schema.json +74 -0
  357. package/src/schemas/CardListGridSchema.ts +3 -3
  358. package/src/schemas/CodeSchema.ts +0 -1
  359. package/src/schemas/FeatureGridSchema.ts +1 -1
  360. package/src/schemas/FormBlockSchema.ts +1 -1
  361. package/src/schemas/GridCellSchema.ts +0 -1
  362. package/src/schemas/GridLayoutSchema.ts +0 -1
  363. package/src/schemas/SectionSchema.ts +0 -1
  364. package/src/schemas/ViewSchema.ts +6 -6
  365. package/src/schemas/transformers/ComponentTransformer.ts +37 -20
  366. package/src/schemas/transformers/ReactNodeTransformer.ts +18 -16
  367. package/src/schemas/transformers/registry.ts +28 -24
  368. package/src/schemas/types/Serializable.ts +3 -3
  369. package/src/setupTests.js +9 -0
  370. package/src/stories/AccessibilityProvider.stories.tsx +0 -1
  371. package/src/stories/CardListGrid.stories.tsx +1 -1
  372. package/src/stories/Code.stories.tsx +2 -3
  373. package/src/stories/CollapsibleLayout.stories.tsx +41 -37
  374. package/src/stories/Container.stories.tsx +1 -2
  375. package/src/stories/DataBinding.advanced.stories.tsx +15 -9
  376. package/src/stories/DataProvider.stories.tsx +33 -16
  377. package/src/stories/ErrorBoundary.stories.tsx +28 -26
  378. package/src/stories/FeatureGrid.stories.tsx +0 -1
  379. package/src/stories/FormBlock.stories.tsx +8 -8
  380. package/src/stories/FormComponents.stories.tsx +15 -11
  381. package/src/stories/GridCell.stories.tsx +5 -5
  382. package/src/stories/GridLayout.stories.tsx +5 -5
  383. package/src/stories/Image.stories.tsx +5 -7
  384. package/src/stories/Introduction.stories.tsx +0 -1
  385. package/src/stories/ModelView.stories.tsx +7 -7
  386. package/src/stories/SafeSpan.stories.tsx +7 -3
  387. package/src/stories/Section.stories.tsx +2 -2
  388. package/src/stories/Text.stories.tsx +1 -3
  389. package/src/stories/_templates/SerializationTemplate.tsx +0 -1
  390. package/src/templates/TemplateResolver.ts +2 -2
  391. package/src/types/CollapsibleLayout.ts +2 -2
  392. package/src/types/ContentProxy.ts +6 -6
  393. package/src/types/DataTypes.ts +4 -4
  394. package/src/types/TemplateProvider.ts +1 -1
  395. package/src/types/TemplateResolver.ts +1 -1
  396. package/src/utils/htmlTransform.tsx +17 -11
  397. package/src/utils/iconMap.tsx +244 -0
  398. package/src/utils/index.ts +4 -1
  399. package/src/utils/logger.ts +20 -14
  400. package/src/utils/paletteLoader.ts +218 -0
  401. package/src/utils/paletteManifest.ts +268 -0
  402. package/src/utils/paletteUtils.ts +19 -1
  403. package/src/utils/reactUtils.tsx +34 -33
  404. package/src/utils/spacing.ts +16 -17
  405. package/src/utils/themePerformanceMonitor.js +14 -6
  406. package/src/utils/themeUtils.ts +17 -2
  407. package/dist/components/base/ContainerView.d.ts +0 -65
  408. package/dist/components/base/ContainerView.d.ts.map +0 -1
  409. package/dist/components/blocks/Code-factory.d.ts +0 -22
  410. package/dist/components/blocks/Code-factory.d.ts.map +0 -1
  411. package/dist/components/blocks/Code-old.d.ts +0 -31
  412. package/dist/components/blocks/Code-old.d.ts.map +0 -1
  413. package/dist/qa/ConsoleWarningTest.d.ts +0 -5
  414. package/dist/qa/ConsoleWarningTest.d.ts.map +0 -1
  415. package/dist/qa/StorageKeyTest.d.ts +0 -6
  416. package/dist/qa/StorageKeyTest.d.ts.map +0 -1
  417. package/dist/qa/ThemeStorageKeyTest.d.ts +0 -6
  418. package/dist/qa/ThemeStorageKeyTest.d.ts.map +0 -1
  419. package/dist/schemas/ViewModelSchema.d.ts +0 -63
  420. package/dist/schemas/ViewModelSchema.d.ts.map +0 -1
  421. package/dist/schemas/transformers/__tests__/MockSerializableComponent.d.ts +0 -66
  422. package/dist/schemas/transformers/__tests__/MockSerializableComponent.d.ts.map +0 -1
  423. package/dist/src/__tests__/schemas/transformers/MockSerializableComponent.d.ts +0 -66
  424. package/dist/src/__tests__/schemas/transformers/MockSerializableComponent.d.ts.map +0 -1
  425. package/dist/src/components/AccessibilityChecker.d.ts +0 -12
  426. package/dist/src/components/AccessibilityChecker.d.ts.map +0 -1
  427. package/dist/src/components/AccessibilityProvider.d.ts +0 -64
  428. package/dist/src/components/AccessibilityProvider.d.ts.map +0 -1
  429. package/dist/src/components/Breadcrumbs.d.ts +0 -39
  430. package/dist/src/components/Breadcrumbs.d.ts.map +0 -1
  431. package/dist/src/components/ErrorBoundary.d.ts +0 -46
  432. package/dist/src/components/ErrorBoundary.d.ts.map +0 -1
  433. package/dist/src/components/Html.d.ts +0 -58
  434. package/dist/src/components/Html.d.ts.map +0 -1
  435. package/dist/src/components/Logo.d.ts +0 -56
  436. package/dist/src/components/Logo.d.ts.map +0 -1
  437. package/dist/src/components/Markdown.d.ts +0 -51
  438. package/dist/src/components/Markdown.d.ts.map +0 -1
  439. package/dist/src/components/QwickApp.d.ts +0 -69
  440. package/dist/src/components/QwickApp.d.ts.map +0 -1
  441. package/dist/src/components/QwickAppsLogo.d.ts +0 -25
  442. package/dist/src/components/QwickAppsLogo.d.ts.map +0 -1
  443. package/dist/src/components/QwickIcon.d.ts +0 -23
  444. package/dist/src/components/QwickIcon.d.ts.map +0 -1
  445. package/dist/src/components/ResponsiveMenu.d.ts +0 -38
  446. package/dist/src/components/ResponsiveMenu.d.ts.map +0 -1
  447. package/dist/src/components/SafeSpan.d.ts +0 -29
  448. package/dist/src/components/SafeSpan.d.ts.map +0 -1
  449. package/dist/src/components/Scaffold.d.ts +0 -57
  450. package/dist/src/components/Scaffold.d.ts.map +0 -1
  451. package/dist/src/components/base/Container.d.ts +0 -33
  452. package/dist/src/components/base/Container.d.ts.map +0 -1
  453. package/dist/src/components/base/ModelView.d.ts +0 -92
  454. package/dist/src/components/base/ModelView.d.ts.map +0 -1
  455. package/dist/src/components/base/index.d.ts +0 -12
  456. package/dist/src/components/base/index.d.ts.map +0 -1
  457. package/dist/src/components/blocks/Article.d.ts +0 -32
  458. package/dist/src/components/blocks/Article.d.ts.map +0 -1
  459. package/dist/src/components/blocks/CardListGrid.d.ts +0 -23
  460. package/dist/src/components/blocks/CardListGrid.d.ts.map +0 -1
  461. package/dist/src/components/blocks/Code.d.ts +0 -37
  462. package/dist/src/components/blocks/Code.d.ts.map +0 -1
  463. package/dist/src/components/blocks/Content.d.ts +0 -24
  464. package/dist/src/components/blocks/Content.d.ts.map +0 -1
  465. package/dist/src/components/blocks/CoverImageHeader.d.ts +0 -44
  466. package/dist/src/components/blocks/CoverImageHeader.d.ts.map +0 -1
  467. package/dist/src/components/blocks/FeatureCard.d.ts +0 -66
  468. package/dist/src/components/blocks/FeatureCard.d.ts.map +0 -1
  469. package/dist/src/components/blocks/FeatureGrid.d.ts +0 -48
  470. package/dist/src/components/blocks/FeatureGrid.d.ts.map +0 -1
  471. package/dist/src/components/blocks/Footer.d.ts +0 -56
  472. package/dist/src/components/blocks/Footer.d.ts.map +0 -1
  473. package/dist/src/components/blocks/HeroBlock.d.ts +0 -55
  474. package/dist/src/components/blocks/HeroBlock.d.ts.map +0 -1
  475. package/dist/src/components/blocks/Image.d.ts +0 -40
  476. package/dist/src/components/blocks/Image.d.ts.map +0 -1
  477. package/dist/src/components/blocks/PageBannerHeader.d.ts +0 -30
  478. package/dist/src/components/blocks/PageBannerHeader.d.ts.map +0 -1
  479. package/dist/src/components/blocks/ProductCard.d.ts +0 -57
  480. package/dist/src/components/blocks/ProductCard.d.ts.map +0 -1
  481. package/dist/src/components/blocks/Section.d.ts +0 -45
  482. package/dist/src/components/blocks/Section.d.ts.map +0 -1
  483. package/dist/src/components/blocks/Text.d.ts +0 -34
  484. package/dist/src/components/blocks/Text.d.ts.map +0 -1
  485. package/dist/src/components/blocks/index.d.ts +0 -41
  486. package/dist/src/components/blocks/index.d.ts.map +0 -1
  487. package/dist/src/components/buttons/Button.d.ts +0 -57
  488. package/dist/src/components/buttons/Button.d.ts.map +0 -1
  489. package/dist/src/components/buttons/PaletteSwitcher.d.ts +0 -24
  490. package/dist/src/components/buttons/PaletteSwitcher.d.ts.map +0 -1
  491. package/dist/src/components/buttons/ThemeSwitcher.d.ts +0 -24
  492. package/dist/src/components/buttons/ThemeSwitcher.d.ts.map +0 -1
  493. package/dist/src/components/buttons/index.d.ts +0 -11
  494. package/dist/src/components/buttons/index.d.ts.map +0 -1
  495. package/dist/src/components/forms/FormBlock.d.ts +0 -51
  496. package/dist/src/components/forms/FormBlock.d.ts.map +0 -1
  497. package/dist/src/components/forms/index.d.ts +0 -8
  498. package/dist/src/components/forms/index.d.ts.map +0 -1
  499. package/dist/src/components/index.d.ts +0 -41
  500. package/dist/src/components/index.d.ts.map +0 -1
  501. package/dist/src/components/input/ChoiceInputField.d.ts +0 -29
  502. package/dist/src/components/input/ChoiceInputField.d.ts.map +0 -1
  503. package/dist/src/components/input/HtmlInputField.d.ts +0 -33
  504. package/dist/src/components/input/HtmlInputField.d.ts.map +0 -1
  505. package/dist/src/components/input/SelectInputField.d.ts +0 -31
  506. package/dist/src/components/input/SelectInputField.d.ts.map +0 -1
  507. package/dist/src/components/input/SwitchInputField.d.ts +0 -27
  508. package/dist/src/components/input/SwitchInputField.d.ts.map +0 -1
  509. package/dist/src/components/input/TextField.d.ts +0 -18
  510. package/dist/src/components/input/TextField.d.ts.map +0 -1
  511. package/dist/src/components/input/TextInputField.d.ts +0 -34
  512. package/dist/src/components/input/TextInputField.d.ts.map +0 -1
  513. package/dist/src/components/input/index.d.ts +0 -19
  514. package/dist/src/components/input/index.d.ts.map +0 -1
  515. package/dist/src/components/layout/CollapsibleLayout/CollapsibleLayout.d.ts +0 -34
  516. package/dist/src/components/layout/CollapsibleLayout/CollapsibleLayout.d.ts.map +0 -1
  517. package/dist/src/components/layout/CollapsibleLayout/index.d.ts +0 -9
  518. package/dist/src/components/layout/CollapsibleLayout/index.d.ts.map +0 -1
  519. package/dist/src/components/layout/GridCell.d.ts +0 -32
  520. package/dist/src/components/layout/GridCell.d.ts.map +0 -1
  521. package/dist/src/components/layout/GridCellWrapper.d.ts +0 -46
  522. package/dist/src/components/layout/GridCellWrapper.d.ts.map +0 -1
  523. package/dist/src/components/layout/GridLayout.d.ts +0 -50
  524. package/dist/src/components/layout/GridLayout.d.ts.map +0 -1
  525. package/dist/src/components/layout/index.d.ts +0 -14
  526. package/dist/src/components/layout/index.d.ts.map +0 -1
  527. package/dist/src/components/menu/Menu.d.ts +0 -1
  528. package/dist/src/components/menu/Menu.d.ts.map +0 -1
  529. package/dist/src/components/menu/MenuItem.d.ts +0 -31
  530. package/dist/src/components/menu/MenuItem.d.ts.map +0 -1
  531. package/dist/src/components/menu/index.d.ts +0 -7
  532. package/dist/src/components/menu/index.d.ts.map +0 -1
  533. package/dist/src/components/pages/FormPage.d.ts +0 -66
  534. package/dist/src/components/pages/FormPage.d.ts.map +0 -1
  535. package/dist/src/components/pages/Page.d.ts +0 -68
  536. package/dist/src/components/pages/Page.d.ts.map +0 -1
  537. package/dist/src/components/pages/index.d.ts +0 -10
  538. package/dist/src/components/pages/index.d.ts.map +0 -1
  539. package/dist/src/components/shared/createSerializableView.d.ts +0 -81
  540. package/dist/src/components/shared/createSerializableView.d.ts.map +0 -1
  541. package/dist/src/components/shared/viewProps.d.ts +0 -37
  542. package/dist/src/components/shared/viewProps.d.ts.map +0 -1
  543. package/dist/src/config/AppConfig.d.ts +0 -49
  544. package/dist/src/config/AppConfig.d.ts.map +0 -1
  545. package/dist/src/config/AppConfigBuilder.d.ts +0 -75
  546. package/dist/src/config/AppConfigBuilder.d.ts.map +0 -1
  547. package/dist/src/config/index.d.ts +0 -13
  548. package/dist/src/config/index.d.ts.map +0 -1
  549. package/dist/src/config/types.d.ts +0 -130
  550. package/dist/src/config/types.d.ts.map +0 -1
  551. package/dist/src/config.d.ts +0 -15
  552. package/dist/src/config.d.ts.map +0 -1
  553. package/dist/src/contexts/DataContext.d.ts +0 -139
  554. package/dist/src/contexts/DataContext.d.ts.map +0 -1
  555. package/dist/src/contexts/DimensionsContext.d.ts +0 -42
  556. package/dist/src/contexts/DimensionsContext.d.ts.map +0 -1
  557. package/dist/src/contexts/PaletteContext.d.ts +0 -53
  558. package/dist/src/contexts/PaletteContext.d.ts.map +0 -1
  559. package/dist/src/contexts/PrintModeContext.d.ts +0 -27
  560. package/dist/src/contexts/PrintModeContext.d.ts.map +0 -1
  561. package/dist/src/contexts/QwickAppContext.d.ts +0 -71
  562. package/dist/src/contexts/QwickAppContext.d.ts.map +0 -1
  563. package/dist/src/contexts/ThemeContext.d.ts +0 -65
  564. package/dist/src/contexts/ThemeContext.d.ts.map +0 -1
  565. package/dist/src/contexts/index.d.ts +0 -11
  566. package/dist/src/contexts/index.d.ts.map +0 -1
  567. package/dist/src/hooks/index.d.ts +0 -12
  568. package/dist/src/hooks/index.d.ts.map +0 -1
  569. package/dist/src/hooks/useBaseProps.d.ts +0 -101
  570. package/dist/src/hooks/useBaseProps.d.ts.map +0 -1
  571. package/dist/src/hooks/useDataBinding.d.ts +0 -22
  572. package/dist/src/hooks/useDataBinding.d.ts.map +0 -1
  573. package/dist/src/hooks/usePrintMode.d.ts +0 -39
  574. package/dist/src/hooks/usePrintMode.d.ts.map +0 -1
  575. package/dist/src/index.d.ts +0 -9
  576. package/dist/src/index.d.ts.map +0 -1
  577. package/dist/src/palettes/PaletteAutumn.d.ts +0 -10
  578. package/dist/src/palettes/PaletteAutumn.d.ts.map +0 -1
  579. package/dist/src/palettes/PaletteCosmic.d.ts +0 -10
  580. package/dist/src/palettes/PaletteCosmic.d.ts.map +0 -1
  581. package/dist/src/palettes/PaletteDefault.d.ts +0 -10
  582. package/dist/src/palettes/PaletteDefault.d.ts.map +0 -1
  583. package/dist/src/palettes/PaletteOcean.d.ts +0 -10
  584. package/dist/src/palettes/PaletteOcean.d.ts.map +0 -1
  585. package/dist/src/palettes/PaletteSpring.d.ts +0 -10
  586. package/dist/src/palettes/PaletteSpring.d.ts.map +0 -1
  587. package/dist/src/palettes/PaletteWinter.d.ts +0 -10
  588. package/dist/src/palettes/PaletteWinter.d.ts.map +0 -1
  589. package/dist/src/palettes/index.d.ts +0 -13
  590. package/dist/src/palettes/index.d.ts.map +0 -1
  591. package/dist/src/schemas/ActionSchema.d.ts +0 -21
  592. package/dist/src/schemas/ActionSchema.d.ts.map +0 -1
  593. package/dist/src/schemas/ArticleSchema.d.ts +0 -13
  594. package/dist/src/schemas/ArticleSchema.d.ts.map +0 -1
  595. package/dist/src/schemas/ButtonSchema.d.ts +0 -22
  596. package/dist/src/schemas/ButtonSchema.d.ts.map +0 -1
  597. package/dist/src/schemas/CardListGridSchema.d.ts +0 -17
  598. package/dist/src/schemas/CardListGridSchema.d.ts.map +0 -1
  599. package/dist/src/schemas/ChoiceInputFieldSchema.d.ts +0 -18
  600. package/dist/src/schemas/ChoiceInputFieldSchema.d.ts.map +0 -1
  601. package/dist/src/schemas/CodeSchema.d.ts +0 -18
  602. package/dist/src/schemas/CodeSchema.d.ts.map +0 -1
  603. package/dist/src/schemas/CollapsibleLayoutSchema.d.ts +0 -32
  604. package/dist/src/schemas/CollapsibleLayoutSchema.d.ts.map +0 -1
  605. package/dist/src/schemas/ContainerSchema.d.ts +0 -12
  606. package/dist/src/schemas/ContainerSchema.d.ts.map +0 -1
  607. package/dist/src/schemas/ContentSchema.d.ts +0 -21
  608. package/dist/src/schemas/ContentSchema.d.ts.map +0 -1
  609. package/dist/src/schemas/CoverImageHeaderSchema.d.ts +0 -28
  610. package/dist/src/schemas/CoverImageHeaderSchema.d.ts.map +0 -1
  611. package/dist/src/schemas/FeatureCardSchema.d.ts +0 -28
  612. package/dist/src/schemas/FeatureCardSchema.d.ts.map +0 -1
  613. package/dist/src/schemas/FeatureGridSchema.d.ts +0 -17
  614. package/dist/src/schemas/FeatureGridSchema.d.ts.map +0 -1
  615. package/dist/src/schemas/FeatureItemSchema.d.ts +0 -16
  616. package/dist/src/schemas/FeatureItemSchema.d.ts.map +0 -1
  617. package/dist/src/schemas/FooterItemSchema.d.ts +0 -15
  618. package/dist/src/schemas/FooterItemSchema.d.ts.map +0 -1
  619. package/dist/src/schemas/FooterSchema.d.ts +0 -20
  620. package/dist/src/schemas/FooterSchema.d.ts.map +0 -1
  621. package/dist/src/schemas/FooterSectionSchema.d.ts +0 -15
  622. package/dist/src/schemas/FooterSectionSchema.d.ts.map +0 -1
  623. package/dist/src/schemas/FormBlockSchema.d.ts +0 -19
  624. package/dist/src/schemas/FormBlockSchema.d.ts.map +0 -1
  625. package/dist/src/schemas/GridCellSchema.d.ts +0 -23
  626. package/dist/src/schemas/GridCellSchema.d.ts.map +0 -1
  627. package/dist/src/schemas/GridLayoutSchema.d.ts +0 -21
  628. package/dist/src/schemas/GridLayoutSchema.d.ts.map +0 -1
  629. package/dist/src/schemas/HeaderActionSchema.d.ts +0 -17
  630. package/dist/src/schemas/HeaderActionSchema.d.ts.map +0 -1
  631. package/dist/src/schemas/HeroBlockSchema.d.ts +0 -22
  632. package/dist/src/schemas/HeroBlockSchema.d.ts.map +0 -1
  633. package/dist/src/schemas/HtmlInputFieldSchema.d.ts +0 -18
  634. package/dist/src/schemas/HtmlInputFieldSchema.d.ts.map +0 -1
  635. package/dist/src/schemas/HtmlSchema.d.ts +0 -14
  636. package/dist/src/schemas/HtmlSchema.d.ts.map +0 -1
  637. package/dist/src/schemas/ImageSchema.d.ts +0 -32
  638. package/dist/src/schemas/ImageSchema.d.ts.map +0 -1
  639. package/dist/src/schemas/LogoSchema.d.ts +0 -35
  640. package/dist/src/schemas/LogoSchema.d.ts.map +0 -1
  641. package/dist/src/schemas/MarkdownSchema.d.ts +0 -14
  642. package/dist/src/schemas/MarkdownSchema.d.ts.map +0 -1
  643. package/dist/src/schemas/MetadataItemSchema.d.ts +0 -13
  644. package/dist/src/schemas/MetadataItemSchema.d.ts.map +0 -1
  645. package/dist/src/schemas/PageBannerHeaderSchema.d.ts +0 -28
  646. package/dist/src/schemas/PageBannerHeaderSchema.d.ts.map +0 -1
  647. package/dist/src/schemas/PageTemplateSchema.d.ts +0 -31
  648. package/dist/src/schemas/PageTemplateSchema.d.ts.map +0 -1
  649. package/dist/src/schemas/PaletteSwitcherSchema.d.ts +0 -16
  650. package/dist/src/schemas/PaletteSwitcherSchema.d.ts.map +0 -1
  651. package/dist/src/schemas/PrintConfigSchema.d.ts +0 -31
  652. package/dist/src/schemas/PrintConfigSchema.d.ts.map +0 -1
  653. package/dist/src/schemas/ProductCardSchema.d.ts +0 -39
  654. package/dist/src/schemas/ProductCardSchema.d.ts.map +0 -1
  655. package/dist/src/schemas/SafeSpanSchema.d.ts +0 -13
  656. package/dist/src/schemas/SafeSpanSchema.d.ts.map +0 -1
  657. package/dist/src/schemas/SectionSchema.d.ts +0 -16
  658. package/dist/src/schemas/SectionSchema.d.ts.map +0 -1
  659. package/dist/src/schemas/SelectInputFieldSchema.d.ts +0 -27
  660. package/dist/src/schemas/SelectInputFieldSchema.d.ts.map +0 -1
  661. package/dist/src/schemas/SwitchInputFieldSchema.d.ts +0 -18
  662. package/dist/src/schemas/SwitchInputFieldSchema.d.ts.map +0 -1
  663. package/dist/src/schemas/TextInputFieldSchema.d.ts +0 -22
  664. package/dist/src/schemas/TextInputFieldSchema.d.ts.map +0 -1
  665. package/dist/src/schemas/TextSchema.d.ts +0 -37
  666. package/dist/src/schemas/TextSchema.d.ts.map +0 -1
  667. package/dist/src/schemas/ThemeSwitcherSchema.d.ts +0 -19
  668. package/dist/src/schemas/ThemeSwitcherSchema.d.ts.map +0 -1
  669. package/dist/src/schemas/ViewSchema.d.ts +0 -66
  670. package/dist/src/schemas/ViewSchema.d.ts.map +0 -1
  671. package/dist/src/schemas/index.d.ts +0 -47
  672. package/dist/src/schemas/index.d.ts.map +0 -1
  673. package/dist/src/schemas/transformers/ComponentTransformer.d.ts +0 -128
  674. package/dist/src/schemas/transformers/ComponentTransformer.d.ts.map +0 -1
  675. package/dist/src/schemas/transformers/ReactNodeTransformer.d.ts +0 -53
  676. package/dist/src/schemas/transformers/ReactNodeTransformer.d.ts.map +0 -1
  677. package/dist/src/schemas/transformers/registry.d.ts +0 -18
  678. package/dist/src/schemas/transformers/registry.d.ts.map +0 -1
  679. package/dist/src/schemas/types/Serializable.d.ts +0 -46
  680. package/dist/src/schemas/types/Serializable.d.ts.map +0 -1
  681. package/dist/src/stories/_templates/SerializationTemplate.d.ts.map +0 -1
  682. package/dist/src/templates/TemplateResolver.d.ts +0 -52
  683. package/dist/src/templates/TemplateResolver.d.ts.map +0 -1
  684. package/dist/src/templates/index.d.ts +0 -7
  685. package/dist/src/templates/index.d.ts.map +0 -1
  686. package/dist/src/types/CacheProvider.d.ts +0 -18
  687. package/dist/src/types/CacheProvider.d.ts.map +0 -1
  688. package/dist/src/types/CollapsibleLayout.d.ts +0 -142
  689. package/dist/src/types/CollapsibleLayout.d.ts.map +0 -1
  690. package/dist/src/types/ContentProxy.d.ts +0 -47
  691. package/dist/src/types/ContentProxy.d.ts.map +0 -1
  692. package/dist/src/types/DataTypes.d.ts +0 -185
  693. package/dist/src/types/DataTypes.d.ts.map +0 -1
  694. package/dist/src/types/TemplateProvider.d.ts +0 -10
  695. package/dist/src/types/TemplateProvider.d.ts.map +0 -1
  696. package/dist/src/types/TemplateResolver.d.ts +0 -23
  697. package/dist/src/types/TemplateResolver.d.ts.map +0 -1
  698. package/dist/src/types/index.d.ts +0 -82
  699. package/dist/src/types/index.d.ts.map +0 -1
  700. package/dist/src/utils/breakpoints.d.ts +0 -35
  701. package/dist/src/utils/breakpoints.d.ts.map +0 -1
  702. package/dist/src/utils/cssUtils.d.ts +0 -17
  703. package/dist/src/utils/cssUtils.d.ts.map +0 -1
  704. package/dist/src/utils/customPaletteManager.d.ts +0 -8
  705. package/dist/src/utils/customPaletteManager.d.ts.map +0 -1
  706. package/dist/src/utils/dimensions.d.ts +0 -34
  707. package/dist/src/utils/dimensions.d.ts.map +0 -1
  708. package/dist/src/utils/htmlTransform.d.ts +0 -44
  709. package/dist/src/utils/htmlTransform.d.ts.map +0 -1
  710. package/dist/src/utils/index.d.ts +0 -16
  711. package/dist/src/utils/index.d.ts.map +0 -1
  712. package/dist/src/utils/logger.d.ts +0 -26
  713. package/dist/src/utils/logger.d.ts.map +0 -1
  714. package/dist/src/utils/paletteUtils.d.ts +0 -38
  715. package/dist/src/utils/paletteUtils.d.ts.map +0 -1
  716. package/dist/src/utils/persistenceUtils.d.ts +0 -31
  717. package/dist/src/utils/persistenceUtils.d.ts.map +0 -1
  718. package/dist/src/utils/reactUtils.d.ts +0 -33
  719. package/dist/src/utils/reactUtils.d.ts.map +0 -1
  720. package/dist/src/utils/spacing.d.ts +0 -34
  721. package/dist/src/utils/spacing.d.ts.map +0 -1
  722. package/dist/src/utils/themePerformanceMonitor.d.ts +0 -32
  723. package/dist/src/utils/themePerformanceMonitor.d.ts.map +0 -1
  724. package/dist/src/utils/themeUtils.d.ts +0 -27
  725. package/dist/src/utils/themeUtils.d.ts.map +0 -1
  726. package/dist/tests/ConsoleWarningTest.d.ts +0 -5
  727. package/dist/tests/ConsoleWarningTest.d.ts.map +0 -1
  728. package/dist/tests/StorageKeyTest.d.ts +0 -6
  729. package/dist/tests/StorageKeyTest.d.ts.map +0 -1
  730. package/dist/tests/ThemeStorageKeyTest.d.ts +0 -6
  731. package/dist/tests/ThemeStorageKeyTest.d.ts.map +0 -1
  732. /package/dist/palettes/{PaletteAutumn.css → palette-autumn.1.4.9.css} +0 -0
  733. /package/dist/palettes/{PaletteCosmic.css → palette-cosmic.1.4.9.css} +0 -0
  734. /package/dist/palettes/{PaletteDefault.css → palette-default.1.4.9.css} +0 -0
  735. /package/dist/palettes/{PaletteOcean.css → palette-ocean.1.4.9.css} +0 -0
  736. /package/dist/palettes/{PaletteSpring.css → palette-spring.1.4.9.css} +0 -0
  737. /package/dist/palettes/{PaletteWinter.css → palette-winter.1.4.9.css} +0 -0
  738. /package/dist/{src/stories → stories}/_templates/SerializationTemplate.d.ts +0 -0
@@ -0,0 +1,140 @@
1
+ /**
2
+ * FormSelect - Themed form select component wrapping MUI Select
3
+ *
4
+ * Features:
5
+ * - Uses QwickApps CSS theme variables for consistent styling
6
+ * - Simplified select-only interface (use FormField for mixed inputs)
7
+ * - Support for placeholder, size variants, and helper text
8
+ * - Integrated with MUI FormControl and Select
9
+ * - Base props support for grid behavior and styling
10
+ *
11
+ * Copyright (c) 2025 QwickApps.com. All rights reserved.
12
+ */
13
+
14
+ import React from 'react';
15
+ import {
16
+ FormControl,
17
+ InputLabel,
18
+ Select,
19
+ MenuItem,
20
+ FormHelperText,
21
+ } from '@mui/material';
22
+ import { useBaseProps, WithBaseProps, QWICKAPP_COMPONENT } from '../../hooks/useBaseProps';
23
+
24
+ export interface FormSelectOption {
25
+ value: string | number;
26
+ label: string;
27
+ }
28
+
29
+ interface FormSelectBaseProps {
30
+ label?: string;
31
+ value: string | number;
32
+ onChange: (value: string | number) => void;
33
+ options: FormSelectOption[];
34
+ helperText?: string;
35
+ required?: boolean;
36
+ disabled?: boolean;
37
+ fullWidth?: boolean;
38
+ size?: 'small' | 'medium';
39
+ placeholder?: string;
40
+ }
41
+
42
+ export interface FormSelectProps extends WithBaseProps<FormSelectBaseProps> {}
43
+
44
+ export const FormSelect = React.forwardRef<HTMLDivElement, FormSelectProps>((props, ref) => {
45
+ const { gridProps, styleProps, htmlProps, restProps } = useBaseProps(props);
46
+
47
+ const {
48
+ label,
49
+ value,
50
+ onChange,
51
+ options,
52
+ helperText,
53
+ required = false,
54
+ disabled = false,
55
+ fullWidth = true,
56
+ size = 'small',
57
+ placeholder,
58
+ } = restProps as FormSelectBaseProps;
59
+
60
+ const handleChange = (e: unknown) => {
61
+ onChange(e.target.value);
62
+ };
63
+
64
+ const selectStyles = {
65
+ p: 1,
66
+ pl: 1.6,
67
+ ...(label ? { mt: 1, color: 'var(--theme-text-primary)' } : {}),
68
+ backgroundColor: 'var(--theme-surface-variant)',
69
+ borderColor: 'var(--theme-surface)',
70
+ color: 'var(--theme-text-primary)',
71
+ borderRadius: 1,
72
+ ...styleProps.sx,
73
+ };
74
+
75
+ const labelStyles = {
76
+ left: -12,
77
+ fontWeight: 600,
78
+ color: 'var(--theme-text-primary)',
79
+ };
80
+
81
+ const helperTextStyles = {
82
+ color: 'var(--theme-secondary)',
83
+ };
84
+
85
+ return (
86
+ <FormControl
87
+ ref={ref}
88
+ fullWidth={fullWidth}
89
+ size={size}
90
+ {...htmlProps}
91
+ {...styleProps}
92
+ // Store grid props as data attributes for ColumnLayout to pick up
93
+ {...(gridProps && {
94
+ 'data-grid-span': gridProps.span,
95
+ 'data-grid-xs': gridProps.xs,
96
+ 'data-grid-sm': gridProps.sm,
97
+ 'data-grid-md': gridProps.md,
98
+ 'data-grid-lg': gridProps.lg,
99
+ 'data-grid-xl': gridProps.xl,
100
+ })}
101
+ >
102
+ {label && (
103
+ <InputLabel sx={labelStyles} shrink>
104
+ {label}
105
+ </InputLabel>
106
+ )}
107
+
108
+ <Select
109
+ value={value}
110
+ onChange={handleChange}
111
+ disabled={disabled}
112
+ required={required}
113
+ displayEmpty={!!placeholder}
114
+ sx={selectStyles}
115
+ >
116
+ {placeholder && (
117
+ <MenuItem value="" disabled>
118
+ {placeholder}
119
+ </MenuItem>
120
+ )}
121
+ {options.map((opt) => (
122
+ <MenuItem key={opt.value} value={opt.value}>
123
+ {opt.label}
124
+ </MenuItem>
125
+ ))}
126
+ </Select>
127
+
128
+ {helperText && (
129
+ <FormHelperText sx={helperTextStyles}>{helperText}</FormHelperText>
130
+ )}
131
+ </FormControl>
132
+ );
133
+ });
134
+
135
+ FormSelect.displayName = 'FormSelect';
136
+
137
+ // Mark as QwickApp component
138
+ (FormSelect as Record<string, unknown>)[QWICKAPP_COMPONENT] = true;
139
+
140
+ export default FormSelect;
@@ -1,7 +1,19 @@
1
1
  /**
2
2
  * Enhanced form components with QwickApps base props support
3
- *
3
+ *
4
4
  * Copyright (c) 2025 QwickApps.com. All rights reserved.
5
5
  */
6
6
  export { default as FormBlock } from './FormBlock';
7
7
  export type { FormBlockProps } from './FormBlock';
8
+
9
+ export { default as FormField } from './FormField';
10
+ export type { FormFieldProps, FormFieldOption } from './FormField';
11
+
12
+ export { default as FormSelect } from './FormSelect';
13
+ export type { FormSelectProps, FormSelectOption } from './FormSelect';
14
+
15
+ export { default as FormCheckbox } from './FormCheckbox';
16
+ export type { FormCheckboxProps } from './FormCheckbox';
17
+
18
+ export { default as Captcha } from './Captcha';
19
+ export type { CaptchaProps, CaptchaProvider } from './Captcha';
@@ -18,12 +18,15 @@ import '../schemas/transformers/registry';
18
18
  export * from './base';
19
19
  export * from './blocks';
20
20
  export * from './buttons';
21
+ export * from './dialogs';
21
22
  export * from './forms';
22
23
  export * from './input';
23
24
  export * from './layout';
24
25
  export * from './pages';
25
- export * from './Scaffold';
26
- export * from './ResponsiveMenu';
26
+ export { default as Scaffold } from './Scaffold';
27
+ export type { ScaffoldProps, AppBarProps } from './Scaffold';
28
+ export { default as ResponsiveMenu } from './ResponsiveMenu';
29
+ export type { ResponsiveMenuProps } from './ResponsiveMenu';
27
30
  export * from './QwickApp';
28
31
  export * from './AccessibilityChecker';
29
32
  export * from './ErrorBoundary';
@@ -34,6 +37,9 @@ export * from './Breadcrumbs';
34
37
  export { default as Logo } from './Logo';
35
38
  export type { LogoProps } from './Logo';
36
39
 
40
+ export { default as ProductLogo } from './ProductLogo';
41
+ export type { ProductLogoProps } from './ProductLogo';
42
+
37
43
  export { default as QwickAppsLogo } from './QwickAppsLogo';
38
44
  export type { QwickAppsLogoProps } from './QwickAppsLogo';
39
45
 
@@ -48,3 +54,8 @@ export type { HtmlProps } from './Html';
48
54
 
49
55
  export { default as Markdown } from './Markdown';
50
56
  export type { MarkdownProps } from './Markdown';
57
+
58
+ // Shared utilities for serialization
59
+ export { createSerializableView } from './shared/createSerializableView';
60
+ export type { SerializableComponent } from './shared/createSerializableView';
61
+ export type { ViewProps } from './shared/viewProps';
@@ -16,12 +16,11 @@ import {
16
16
  Alert,
17
17
  Box,
18
18
  Button,
19
- Paper,
20
19
  Typography
21
20
  } from '@mui/material';
22
21
  import { Add as AddIcon } from '@mui/icons-material';
23
22
  import HtmlInputField from './HtmlInputField';
24
- import ChoiceInputFieldModel from '../../schemas/ChoiceInputFieldSchema';
23
+ // import ChoiceInputFieldModel from '../../schemas/ChoiceInputFieldSchema';
25
24
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
26
25
  import { ViewProps } from '../shared/viewProps';
27
26
 
@@ -22,8 +22,7 @@ import {
22
22
  Collapse,
23
23
  Alert,
24
24
  ButtonGroup,
25
- Divider,
26
- } from '@mui/material';
25
+ } from '@mui/material';
27
26
  import {
28
27
  FormatBold as BoldIcon,
29
28
  FormatItalic as ItalicIcon,
@@ -35,7 +34,7 @@ import {
35
34
  } from '@mui/icons-material';
36
35
  import SafeSpan from '../SafeSpan';
37
36
  import sanitizeHtml from 'sanitize-html';
38
- import HtmlInputFieldModel from '../../schemas/HtmlInputFieldSchema';
37
+ // import HtmlInputFieldModel from '../../schemas/HtmlInputFieldSchema';
39
38
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
40
39
  import { ViewProps } from '../shared/viewProps';
41
40
 
@@ -20,7 +20,7 @@ import {
20
20
  Select,
21
21
  SelectChangeEvent,
22
22
  } from '@mui/material';
23
- import SelectInputFieldModel, { SelectOption } from '../../schemas/SelectInputFieldSchema';
23
+ import { SelectOption } from '../../schemas/SelectInputFieldSchema';
24
24
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
25
25
  import { ViewProps } from '../shared/viewProps';
26
26
 
@@ -63,10 +63,36 @@ function SelectInputFieldView({
63
63
  };
64
64
 
65
65
  // Filter out ViewProps that conflict with FormControl
66
- const { margin, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft,
67
- width, height, minWidth, maxWidth, minHeight, maxHeight, sx, style,
68
- span, xs, sm, md, lg, xl, background, backgroundImage, backgroundGradient, textAlign,
69
- className, ...filteredProps } = restProps;
66
+ const {
67
+ margin: _margin,
68
+ padding: _padding,
69
+ paddingX: _paddingX,
70
+ paddingY: _paddingY,
71
+ paddingTop: _paddingTop,
72
+ paddingRight: _paddingRight,
73
+ paddingBottom: _paddingBottom,
74
+ paddingLeft: _paddingLeft,
75
+ width: _width,
76
+ height: _height,
77
+ minWidth: _minWidth,
78
+ maxWidth: _maxWidth,
79
+ minHeight: _minHeight,
80
+ maxHeight: _maxHeight,
81
+ sx,
82
+ style,
83
+ span: _span,
84
+ xs: _xs,
85
+ sm: _sm,
86
+ md: _md,
87
+ lg: _lg,
88
+ xl: _xl,
89
+ background: _background,
90
+ backgroundImage: _backgroundImage,
91
+ backgroundGradient: _backgroundGradient,
92
+ textAlign: _textAlign,
93
+ className,
94
+ ...filteredProps
95
+ } = restProps;
70
96
 
71
97
  const labelId = label ? `select-label-${label.toLowerCase().replace(/\s+/g, '-')}` : undefined;
72
98
 
@@ -18,7 +18,6 @@ import {
18
18
  FormHelperText,
19
19
  Switch,
20
20
  } from '@mui/material';
21
- import SwitchInputFieldModel from '../../schemas/SwitchInputFieldSchema';
22
21
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
23
22
  import { ViewProps } from '../shared/viewProps';
24
23
 
@@ -52,9 +51,9 @@ function SwitchInputFieldView({
52
51
  };
53
52
 
54
53
  // Filter out ViewProps that conflict with FormControl
55
- const { margin, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft,
56
- width, height, minWidth, maxWidth, minHeight, maxHeight, sx, style,
57
- span, xs, sm, md, lg, xl, background, backgroundImage, backgroundGradient, textAlign,
54
+ const { margin: _margin, padding: _padding, paddingX: _paddingX, paddingY: _paddingY, paddingTop: _paddingTop, paddingRight: _paddingRight, paddingBottom: _paddingBottom, paddingLeft: _paddingLeft,
55
+ width: _width, height: _height, minWidth: _minWidth, maxWidth: _maxWidth, minHeight: _minHeight, maxHeight: _maxHeight, sx, style,
56
+ span: _span, xs: _xs, sm: _sm, md: _md, lg: _lg, xl: _xl, background: _background, backgroundImage: _backgroundImage, backgroundGradient: _backgroundGradient, textAlign: _textAlign,
58
57
  className, ...filteredProps } = restProps;
59
58
 
60
59
  return (
@@ -21,7 +21,7 @@ export const TextField = React.forwardRef<HTMLDivElement, TextFieldProps>((props
21
21
  const { gridProps, styleProps, htmlProps, restProps } = useBaseProps(props);
22
22
 
23
23
  // Extract commonly used props we may inspect
24
- const { placeholder, value, defaultValue, slotProps, InputLabelProps, InputProps, variant = 'outlined', ...other } = restProps as any;
24
+ const { placeholder, value, defaultValue, slotProps, InputLabelProps, InputProps, variant = 'outlined', ...other } = restProps as MuiTextFieldProps;
25
25
 
26
26
  // Determine whether label should shrink automatically when a placeholder is shown.
27
27
  // MUI does not shrink the label for outlined variant with just a placeholder (and empty value) by default.
@@ -55,7 +55,7 @@ export const TextField = React.forwardRef<HTMLDivElement, TextFieldProps>((props
55
55
  }
56
56
 
57
57
  // Mark as QwickApp component
58
- (TextField as any)[QWICKAPP_COMPONENT] = true;
58
+ (TextField as Record<string, unknown>)[QWICKAPP_COMPONENT] = true;
59
59
 
60
60
  return (
61
61
  <MuiTextField
@@ -11,9 +11,9 @@
11
11
  * Copyright (c) 2025 QwickApps.com. All rights reserved.
12
12
  */
13
13
 
14
- import React, { ReactElement } from 'react';
14
+ import React from 'react';
15
15
  import { TextField, TextFieldProps } from '@mui/material';
16
- import TextInputFieldModel from '../../schemas/TextInputFieldSchema';
16
+ // import TextInputFieldModel from '../../schemas/TextInputFieldSchema';
17
17
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
18
18
  import { ViewProps } from '../shared/viewProps';
19
19
 
@@ -59,10 +59,36 @@ function TextInputFieldView({
59
59
  };
60
60
 
61
61
  // Filter out ViewProps that conflict with TextField
62
- const { margin, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft,
63
- width, height, minWidth, maxWidth, minHeight, maxHeight, sx, style,
64
- span, xs, sm, md, lg, xl, background, backgroundImage, backgroundGradient, textAlign,
65
- className, ...filteredProps } = restProps;
62
+ const {
63
+ margin: _margin,
64
+ padding: _padding,
65
+ paddingX: _paddingX,
66
+ paddingY: _paddingY,
67
+ paddingTop: _paddingTop,
68
+ paddingRight: _paddingRight,
69
+ paddingBottom: _paddingBottom,
70
+ paddingLeft: _paddingLeft,
71
+ width: _width,
72
+ height: _height,
73
+ minWidth: _minWidth,
74
+ maxWidth: _maxWidth,
75
+ minHeight: _minHeight,
76
+ maxHeight: _maxHeight,
77
+ sx,
78
+ style,
79
+ span: _span,
80
+ xs: _xs,
81
+ sm: _sm,
82
+ md: _md,
83
+ lg: _lg,
84
+ xl: _xl,
85
+ background: _background,
86
+ backgroundImage: _backgroundImage,
87
+ backgroundGradient: _backgroundGradient,
88
+ textAlign: _textAlign,
89
+ className,
90
+ ...filteredProps
91
+ } = restProps;
66
92
 
67
93
  return (
68
94
  <TextField
@@ -26,13 +26,10 @@ import {
26
26
  SxProps,
27
27
  Theme,
28
28
  } from '@mui/material';
29
- import {
29
+ import {
30
30
  ExpandMore as ExpandMoreIcon,
31
31
  ExpandLess as ExpandLessIcon,
32
- Visibility as VisibilityIcon,
33
- VisibilityOff as VisibilityOffIcon,
34
32
  } from '@mui/icons-material';
35
- import { WithDataBinding } from '@qwickapps/schema';
36
33
  import { QWICKAPP_COMPONENT, useBaseProps, useDataBinding } from '../../../hooks';
37
34
  import CollapsibleLayoutModel from '../../../schemas/CollapsibleLayoutSchema';
38
35
  import {
@@ -170,13 +167,13 @@ function CollapsibleLayoutView({
170
167
  const { styleProps, htmlProps, restProps: otherProps } = useBaseProps(restProps);
171
168
 
172
169
  // Mark as QwickApp component
173
- (CollapsibleLayoutView as any)[QWICKAPP_COMPONENT] = true;
170
+ (CollapsibleLayoutView as Record<string, unknown>)[QWICKAPP_COMPONENT] = true;
174
171
 
175
172
  // Determine controlled vs uncontrolled usage
176
173
  const controlled = collapsedProp !== undefined;
177
174
 
178
175
  // State management
179
- const { collapsed, toggle, setCollapsed } = useCollapsibleState(
176
+ const { collapsed, toggle } = useCollapsibleState(
180
177
  controlled,
181
178
  collapsedProp,
182
179
  defaultCollapsed,
@@ -500,18 +497,21 @@ function CollapsibleLayoutView({
500
497
  function CollapsibleLayout(props: CollapsibleLayoutProps) {
501
498
  const { dataSource, bindingOptions, ...restProps } = props;
502
499
 
500
+ // Always call hooks unconditionally
501
+ const bindingResult = useDataBinding<CollapsibleLayoutModel>(
502
+ dataSource || '',
503
+ restProps as Partial<CollapsibleLayoutModel>,
504
+ CollapsibleLayoutModel.getSchema(),
505
+ { cache: true, cacheTTL: 300000, strict: false, ...bindingOptions }
506
+ );
507
+
503
508
  // If no dataSource, use traditional props
504
509
  if (!dataSource) {
505
510
  return <CollapsibleLayoutView {...restProps} />;
506
511
  }
507
512
 
508
- // Use data binding
509
- const { dataSource: _source, loading, error, cached, ...collapsibleProps } = useDataBinding<CollapsibleLayoutModel>(
510
- dataSource,
511
- restProps as Partial<CollapsibleLayoutModel>,
512
- CollapsibleLayoutModel.getSchema(),
513
- { cache: true, cacheTTL: 300000, strict: false, ...bindingOptions }
514
- );
513
+ // Use data binding result
514
+ const { loading, error, ...collapsibleProps } = bindingResult;
515
515
 
516
516
  // Show loading state
517
517
  if (loading) {
@@ -34,19 +34,20 @@ export interface GridCellProps extends ViewProps {
34
34
  * This component receives fully processed props from createSerializableView
35
35
  * and renders the grid cell using Material-UI Box with all styling applied.
36
36
  */
37
- function GridCellView({ children, gridProps, ...props }: GridCellProps & { gridProps?: any }) {
37
+ function GridCellView({ children, gridProps, ...props }: GridCellProps & { gridProps?: unknown }) {
38
+ const typedGridProps = gridProps as { span?: number; xs?: number; sm?: number; md?: number; lg?: number; xl?: number } | undefined;
38
39
  return (
39
40
  <Box
40
41
  {...props}
41
42
  // Store grid props as data attributes for GridLayout to pick up
42
- {...(gridProps && {
43
- 'data-grid-span': gridProps.span,
44
- 'data-grid-xs': gridProps.xs,
45
- 'data-grid-sm': gridProps.sm,
46
- 'data-grid-md': gridProps.md,
47
- 'data-grid-lg': gridProps.lg,
48
- 'data-grid-xl': gridProps.xl,
49
- })}
43
+ {...(typedGridProps ? {
44
+ 'data-grid-span': typedGridProps.span,
45
+ 'data-grid-xs': typedGridProps.xs,
46
+ 'data-grid-sm': typedGridProps.sm,
47
+ 'data-grid-md': typedGridProps.md,
48
+ 'data-grid-lg': typedGridProps.lg,
49
+ 'data-grid-xl': typedGridProps.xl,
50
+ } : {})}
50
51
  >
51
52
  {children}
52
53
  </Box>
@@ -58,7 +58,7 @@ const GridCellWrapper: React.FC<GridCellWrapperProps> = ({
58
58
  const responsiveSizing = fullWidth
59
59
  ? { size: 12 }
60
60
  : (() => {
61
- const sizeConfig: any = {};
61
+ const sizeConfig: unknown = {};
62
62
  if (xs !== undefined) sizeConfig.xs = xs;
63
63
  if (sm !== undefined) sizeConfig.sm = sm;
64
64
  if (md !== undefined) sizeConfig.md = md;
@@ -16,10 +16,9 @@
16
16
  */
17
17
 
18
18
  import React from 'react';
19
- import { Grid, SxProps, Theme } from '@mui/material';
20
- import { SpacingValue, resolveSpacing } from '../../utils/spacing';
21
- import { DimensionValue, resolveDimension } from '../../utils/dimensions';
22
- import { QWICKAPP_COMPONENT } from '../../hooks/useBaseProps';
19
+ import { Grid } from '@mui/material';
20
+ import { resolveSpacing } from '../../utils/spacing';
21
+ import { resolveDimension } from '../../utils/dimensions';
23
22
  import { createSerializableView, SerializableComponent } from '../shared/createSerializableView';
24
23
  import { ViewProps } from '../shared/viewProps';
25
24
 
@@ -66,9 +65,9 @@ function GridLayoutView({
66
65
  maxWidth,
67
66
  gridProps,
68
67
  ...props
69
- }: GridLayoutProps & { gridProps?: any }) {
68
+ }: GridLayoutProps & { gridProps?: unknown }) {
70
69
 
71
- const resolvedSpacing = resolveSpacing(spacing, 'gap');
70
+ const resolvedSpacing = resolveSpacing(spacing);
72
71
 
73
72
  // Process children to handle grid props
74
73
  const processChildren = () => {
@@ -80,73 +79,71 @@ function GridLayoutView({
80
79
  }
81
80
 
82
81
  // Extract grid props from data attributes or props
83
- let gridProps: any = {};
84
-
85
- // Check if it's a QwickApp component
86
- const isQwickApp = (child.type as any)?.[QWICKAPP_COMPONENT];
87
-
82
+ let childGridProps: Record<string, unknown> = {};
83
+
88
84
  // Extract grid props from both data attributes (QwickApp) and direct props (regular)
89
- const props = child.props as any;
90
- const span = props['data-grid-span'] || props.span;
91
- const xs = props['data-grid-xs'] || props.xs;
92
- const sm = props['data-grid-sm'] || props.sm;
93
- const md = props['data-grid-md'] || props.md;
94
- const lg = props['data-grid-lg'] || props.lg;
95
- const xl = props['data-grid-xl'] || props.xl;
96
-
85
+ const childProps = child.props as Record<string, unknown>;
86
+ const span = childProps['data-grid-span'] || childProps.span;
87
+ const xs = childProps['data-grid-xs'] || childProps.xs;
88
+ const sm = childProps['data-grid-sm'] || childProps.sm;
89
+ const md = childProps['data-grid-md'] || childProps.md;
90
+ const lg = childProps['data-grid-lg'] || childProps.lg;
91
+ const xl = childProps['data-grid-xl'] || childProps.xl;
92
+
97
93
  if (span || xs || sm || md || lg || xl) {
98
94
  // Use span if available, otherwise use breakpoint values
99
95
  if (span) {
100
- gridProps = {
96
+ childGridProps = {
101
97
  size: span,
102
98
  };
103
99
  } else {
104
100
  // Build responsive size object for MUI v6
105
- const sizeConfig: any = {};
101
+ const sizeConfig: Record<string, unknown> = {};
106
102
  if (xs) sizeConfig.xs = xs;
107
103
  if (sm) sizeConfig.sm = sm;
108
104
  if (md) sizeConfig.md = md;
109
105
  if (lg) sizeConfig.lg = lg;
110
106
  if (xl) sizeConfig.xl = xl;
111
-
112
- gridProps = {
107
+
108
+ childGridProps = {
113
109
  size: sizeConfig,
114
110
  };
115
111
  }
116
112
  }
117
113
 
118
114
  // If columns prop is set and no grid props, auto-distribute responsively
119
- if (columns && Object.keys(gridProps).length === 0) {
115
+ if (columns && Object.keys(childGridProps).length === 0) {
120
116
  // Make responsive: single column on mobile, fewer columns on tablet, full columns on desktop
121
- gridProps = {
117
+ childGridProps = {
122
118
  size: {
123
119
  xs: 12, // Single column on mobile
124
120
  sm: columns >= 3 ? 6 : 12 / Math.min(columns, 2), // 2 columns max on small screens
125
- md: 12 / Math.min(columns, 3), // 3 columns max on medium screens
121
+ md: 12 / Math.min(columns, 3), // 3 columns max on medium screens
126
122
  lg: 12 / columns, // Full columns on large screens
127
123
  },
128
124
  };
129
125
  }
130
126
 
131
127
  // If has grid props, wrap in Grid
132
- if (Object.keys(gridProps).length > 0) {
128
+ if (Object.keys(childGridProps).length > 0) {
133
129
  // Clean grid data attributes from child to avoid duplication
134
- const cleanedProps = { ...child.props };
130
+ const cleanedProps = { ...(child.props as Record<string, unknown>) };
135
131
  delete cleanedProps['data-grid-span'];
136
132
  delete cleanedProps['data-grid-xs'];
137
133
  delete cleanedProps['data-grid-sm'];
138
134
  delete cleanedProps['data-grid-md'];
139
135
  delete cleanedProps['data-grid-lg'];
140
136
  delete cleanedProps['data-grid-xl'];
141
-
137
+
142
138
  return (
143
- <Grid key={child.key || index} {...gridProps}>
139
+ <Grid key={child.key || index} {...childGridProps}>
144
140
  {React.cloneElement(child, cleanedProps)}
145
141
  </Grid>
146
142
  );
147
143
  }
148
144
 
149
- return child;
145
+ // Return child wrapped in Fragment with key
146
+ return <React.Fragment key={child.key || index}>{child}</React.Fragment>;
150
147
  });
151
148
  };
152
149
 
@@ -155,7 +152,7 @@ function GridLayoutView({
155
152
  container
156
153
  spacing={resolvedSpacing}
157
154
  {...props}
158
- {...(gridProps && { 'data-grid': JSON.stringify(gridProps) })}
155
+ {...(gridProps ? { 'data-grid': JSON.stringify(gridProps) } : {})}
159
156
  sx={{
160
157
  width: '100%', // Ensure full width by default in MUI v6
161
158
  height: resolveDimension(height, 'height'),
@@ -86,7 +86,6 @@ export const FormPage: React.FC<FormPageProps> = ({
86
86
  maxWidth = 'sm',
87
87
  background = 'default',
88
88
  backgroundImage,
89
- sx = {},
90
89
  }) => {
91
90
  return (
92
91
  <FormBlock
@@ -223,7 +223,7 @@ export const PageView: React.FC<PageViewProps> = ({
223
223
  if (!isPrintMode) return;
224
224
  const styleId = 'qwickapps-print-page-setup';
225
225
  const cfg = printConfig;
226
- const size = (cfg as any).pageSize || 'auto';
226
+ const size = (cfg as unknown as { pageSize?: string }).pageSize || 'auto';
227
227
  const bg = cfg.printBackground || 'transparent';
228
228
  const bgFirst = cfg.printBackgroundFirstPage || bg;
229
229
 
@@ -366,7 +366,7 @@ export const PageView: React.FC<PageViewProps> = ({
366
366
  /* -------------------------------------------------------------------------- */
367
367
  /* Page Class */
368
368
  /* -------------------------------------------------------------------------- */
369
- export class Page<P extends PageProps = PageProps, S = {}> extends React.Component<P, S> {
369
+ export class Page<P extends PageProps = PageProps, S = Record<string, never>> extends React.Component<P, S> {
370
370
  protected getPageProps(): Partial<PageProps> { return {}; }
371
371
  protected renderView(): React.ReactNode { return this.props.children; }
372
372
  protected renderPrintView(): React.ReactNode { return this.renderView(); }