@qwickapps/react-framework 1.4.0 → 1.4.2
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.
- package/QUICK_START_GUIDE.md +82 -0
- package/README.md +231 -21
- package/dist/components/Html.d.ts.map +1 -1
- package/dist/components/Markdown.d.ts +1 -2
- package/dist/components/Markdown.d.ts.map +1 -1
- package/dist/components/SafeSpan.d.ts +1 -2
- package/dist/components/SafeSpan.d.ts.map +1 -1
- package/dist/components/base/Container.d.ts +32 -0
- package/dist/components/base/Container.d.ts.map +1 -0
- package/dist/components/base/ContainerView.d.ts +65 -0
- package/dist/components/base/ContainerView.d.ts.map +1 -0
- package/dist/components/base/ModelView.d.ts +37 -46
- package/dist/components/base/ModelView.d.ts.map +1 -1
- package/dist/components/base/index.d.ts +3 -2
- package/dist/components/base/index.d.ts.map +1 -1
- package/dist/components/blocks/Article.d.ts +1 -2
- package/dist/components/blocks/Article.d.ts.map +1 -1
- package/dist/components/blocks/Code-factory.d.ts +22 -0
- package/dist/components/blocks/Code-factory.d.ts.map +1 -0
- package/dist/components/blocks/Code-old.d.ts +31 -0
- package/dist/components/blocks/Code-old.d.ts.map +1 -0
- package/dist/components/blocks/Code.d.ts +30 -18
- package/dist/components/blocks/Code.d.ts.map +1 -1
- package/dist/components/blocks/HeroBlock.d.ts +1 -2
- package/dist/components/blocks/HeroBlock.d.ts.map +1 -1
- package/dist/components/blocks/Image.d.ts +1 -2
- package/dist/components/blocks/Image.d.ts.map +1 -1
- package/dist/components/blocks/Section.d.ts +1 -2
- package/dist/components/blocks/Section.d.ts.map +1 -1
- package/dist/components/blocks/Text.d.ts +35 -27
- package/dist/components/blocks/Text.d.ts.map +1 -1
- package/dist/components/buttons/Button.d.ts +1 -2
- package/dist/components/buttons/Button.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/input/ChoiceInputField.d.ts +1 -2
- package/dist/components/input/ChoiceInputField.d.ts.map +1 -1
- package/dist/components/input/HtmlInputField.d.ts +1 -2
- package/dist/components/input/HtmlInputField.d.ts.map +1 -1
- package/dist/components/input/SelectInputField.d.ts +1 -2
- package/dist/components/input/SelectInputField.d.ts.map +1 -1
- package/dist/components/pages/Page.d.ts +29 -47
- package/dist/components/pages/Page.d.ts.map +1 -1
- package/dist/components/pages/index.d.ts +2 -3
- package/dist/components/pages/index.d.ts.map +1 -1
- package/dist/components/shared/createSerializableView.d.ts +68 -0
- package/dist/components/shared/createSerializableView.d.ts.map +1 -0
- package/dist/components/shared/viewProps.d.ts +37 -0
- package/dist/components/shared/viewProps.d.ts.map +1 -0
- package/dist/index.esm.js +21782 -22580
- package/dist/index.js +21782 -22579
- package/dist/qa/ConsoleWarningTest.d.ts +5 -0
- package/dist/qa/ConsoleWarningTest.d.ts.map +1 -0
- package/dist/qa/StorageKeyTest.d.ts +6 -0
- package/dist/qa/StorageKeyTest.d.ts.map +1 -0
- package/dist/qa/ThemeStorageKeyTest.d.ts +6 -0
- package/dist/qa/ThemeStorageKeyTest.d.ts.map +1 -0
- package/dist/schemas/CodeSchema.d.ts +2 -2
- package/dist/schemas/CodeSchema.d.ts.map +1 -1
- package/dist/schemas/ContainerSchema.d.ts +12 -0
- package/dist/schemas/ContainerSchema.d.ts.map +1 -0
- package/dist/schemas/PageTemplateSchema.d.ts +3 -3
- package/dist/schemas/PageTemplateSchema.d.ts.map +1 -1
- package/dist/schemas/ViewModelSchema.d.ts +46 -6
- package/dist/schemas/ViewModelSchema.d.ts.map +1 -1
- package/dist/schemas/ViewSchema.d.ts +65 -0
- package/dist/schemas/ViewSchema.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/transformers/ComponentTransformer.d.ts +27 -15
- package/dist/schemas/transformers/ComponentTransformer.d.ts.map +1 -1
- package/dist/schemas/transformers/ReactNodeTransformer.d.ts.map +1 -1
- package/dist/schemas/transformers/registry.d.ts +3 -0
- package/dist/schemas/transformers/registry.d.ts.map +1 -1
- package/dist/src/__tests__/schemas/transformers/MockSerializableComponent.d.ts +66 -0
- package/dist/src/__tests__/schemas/transformers/MockSerializableComponent.d.ts.map +1 -0
- package/dist/src/components/AccessibilityChecker.d.ts +12 -0
- package/dist/src/components/AccessibilityChecker.d.ts.map +1 -0
- package/dist/src/components/AccessibilityProvider.d.ts +64 -0
- package/dist/src/components/AccessibilityProvider.d.ts.map +1 -0
- package/dist/src/components/Breadcrumbs.d.ts +39 -0
- package/dist/src/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/src/components/ErrorBoundary.d.ts +46 -0
- package/dist/src/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/src/components/Html.d.ts +58 -0
- package/dist/src/components/Html.d.ts.map +1 -0
- package/dist/src/components/Logo.d.ts +56 -0
- package/dist/src/components/Logo.d.ts.map +1 -0
- package/dist/src/components/Markdown.d.ts +51 -0
- package/dist/src/components/Markdown.d.ts.map +1 -0
- package/dist/src/components/QwickApp.d.ts +69 -0
- package/dist/src/components/QwickApp.d.ts.map +1 -0
- package/dist/src/components/QwickAppsLogo.d.ts +25 -0
- package/dist/src/components/QwickAppsLogo.d.ts.map +1 -0
- package/dist/src/components/QwickIcon.d.ts +23 -0
- package/dist/src/components/QwickIcon.d.ts.map +1 -0
- package/dist/src/components/ResponsiveMenu.d.ts +38 -0
- package/dist/src/components/ResponsiveMenu.d.ts.map +1 -0
- package/dist/src/components/SafeSpan.d.ts +29 -0
- package/dist/src/components/SafeSpan.d.ts.map +1 -0
- package/dist/src/components/Scaffold.d.ts +57 -0
- package/dist/src/components/Scaffold.d.ts.map +1 -0
- package/dist/src/components/base/Container.d.ts +33 -0
- package/dist/src/components/base/Container.d.ts.map +1 -0
- package/dist/src/components/base/ModelView.d.ts +92 -0
- package/dist/src/components/base/ModelView.d.ts.map +1 -0
- package/dist/src/components/base/index.d.ts +12 -0
- package/dist/src/components/base/index.d.ts.map +1 -0
- package/dist/src/components/blocks/Article.d.ts +32 -0
- package/dist/src/components/blocks/Article.d.ts.map +1 -0
- package/dist/src/components/blocks/CardListGrid.d.ts +23 -0
- package/dist/src/components/blocks/CardListGrid.d.ts.map +1 -0
- package/dist/src/components/blocks/Code.d.ts +37 -0
- package/dist/src/components/blocks/Code.d.ts.map +1 -0
- package/dist/src/components/blocks/Content.d.ts +24 -0
- package/dist/src/components/blocks/Content.d.ts.map +1 -0
- package/dist/src/components/blocks/CoverImageHeader.d.ts +44 -0
- package/dist/src/components/blocks/CoverImageHeader.d.ts.map +1 -0
- package/dist/src/components/blocks/FeatureCard.d.ts +66 -0
- package/dist/src/components/blocks/FeatureCard.d.ts.map +1 -0
- package/dist/src/components/blocks/FeatureGrid.d.ts +48 -0
- package/dist/src/components/blocks/FeatureGrid.d.ts.map +1 -0
- package/dist/src/components/blocks/Footer.d.ts +56 -0
- package/dist/src/components/blocks/Footer.d.ts.map +1 -0
- package/dist/src/components/blocks/HeroBlock.d.ts +55 -0
- package/dist/src/components/blocks/HeroBlock.d.ts.map +1 -0
- package/dist/src/components/blocks/Image.d.ts +40 -0
- package/dist/src/components/blocks/Image.d.ts.map +1 -0
- package/dist/src/components/blocks/PageBannerHeader.d.ts +30 -0
- package/dist/src/components/blocks/PageBannerHeader.d.ts.map +1 -0
- package/dist/src/components/blocks/ProductCard.d.ts +57 -0
- package/dist/src/components/blocks/ProductCard.d.ts.map +1 -0
- package/dist/src/components/blocks/Section.d.ts +45 -0
- package/dist/src/components/blocks/Section.d.ts.map +1 -0
- package/dist/src/components/blocks/Text.d.ts +34 -0
- package/dist/src/components/blocks/Text.d.ts.map +1 -0
- package/dist/src/components/blocks/index.d.ts +41 -0
- package/dist/src/components/blocks/index.d.ts.map +1 -0
- package/dist/src/components/buttons/Button.d.ts +41 -0
- package/dist/src/components/buttons/Button.d.ts.map +1 -0
- package/dist/src/components/buttons/PaletteSwitcher.d.ts +24 -0
- package/dist/src/components/buttons/PaletteSwitcher.d.ts.map +1 -0
- package/dist/src/components/buttons/ThemeSwitcher.d.ts +24 -0
- package/dist/src/components/buttons/ThemeSwitcher.d.ts.map +1 -0
- package/dist/src/components/buttons/index.d.ts +11 -0
- package/dist/src/components/buttons/index.d.ts.map +1 -0
- package/dist/src/components/forms/FormBlock.d.ts +51 -0
- package/dist/src/components/forms/FormBlock.d.ts.map +1 -0
- package/dist/src/components/forms/index.d.ts +8 -0
- package/dist/src/components/forms/index.d.ts.map +1 -0
- package/dist/src/components/index.d.ts +41 -0
- package/dist/src/components/index.d.ts.map +1 -0
- package/dist/src/components/input/ChoiceInputField.d.ts +29 -0
- package/dist/src/components/input/ChoiceInputField.d.ts.map +1 -0
- package/dist/src/components/input/HtmlInputField.d.ts +33 -0
- package/dist/src/components/input/HtmlInputField.d.ts.map +1 -0
- package/dist/src/components/input/SelectInputField.d.ts +31 -0
- package/dist/src/components/input/SelectInputField.d.ts.map +1 -0
- package/dist/src/components/input/SwitchInputField.d.ts +27 -0
- package/dist/src/components/input/SwitchInputField.d.ts.map +1 -0
- package/dist/src/components/input/TextField.d.ts +18 -0
- package/dist/src/components/input/TextField.d.ts.map +1 -0
- package/dist/src/components/input/TextInputField.d.ts +34 -0
- package/dist/src/components/input/TextInputField.d.ts.map +1 -0
- package/dist/src/components/input/index.d.ts +19 -0
- package/dist/src/components/input/index.d.ts.map +1 -0
- package/dist/src/components/layout/CollapsibleLayout/CollapsibleLayout.d.ts +34 -0
- package/dist/src/components/layout/CollapsibleLayout/CollapsibleLayout.d.ts.map +1 -0
- package/dist/src/components/layout/CollapsibleLayout/index.d.ts +9 -0
- package/dist/src/components/layout/CollapsibleLayout/index.d.ts.map +1 -0
- package/dist/src/components/layout/GridCell.d.ts +32 -0
- package/dist/src/components/layout/GridCell.d.ts.map +1 -0
- package/dist/src/components/layout/GridCellWrapper.d.ts +46 -0
- package/dist/src/components/layout/GridCellWrapper.d.ts.map +1 -0
- package/dist/src/components/layout/GridLayout.d.ts +50 -0
- package/dist/src/components/layout/GridLayout.d.ts.map +1 -0
- package/dist/src/components/layout/index.d.ts +14 -0
- package/dist/src/components/layout/index.d.ts.map +1 -0
- package/dist/src/components/menu/Menu.d.ts +1 -0
- package/dist/src/components/menu/Menu.d.ts.map +1 -0
- package/dist/src/components/menu/MenuItem.d.ts +31 -0
- package/dist/src/components/menu/MenuItem.d.ts.map +1 -0
- package/dist/src/components/menu/index.d.ts +7 -0
- package/dist/src/components/menu/index.d.ts.map +1 -0
- package/dist/src/components/pages/FormPage.d.ts +66 -0
- package/dist/src/components/pages/FormPage.d.ts.map +1 -0
- package/dist/src/components/pages/Page.d.ts +68 -0
- package/dist/src/components/pages/Page.d.ts.map +1 -0
- package/dist/src/components/pages/index.d.ts +10 -0
- package/dist/src/components/pages/index.d.ts.map +1 -0
- package/dist/src/components/shared/createSerializableView.d.ts +81 -0
- package/dist/src/components/shared/createSerializableView.d.ts.map +1 -0
- package/dist/src/components/shared/viewProps.d.ts +37 -0
- package/dist/src/components/shared/viewProps.d.ts.map +1 -0
- package/dist/src/config/AppConfig.d.ts +49 -0
- package/dist/src/config/AppConfig.d.ts.map +1 -0
- package/dist/src/config/AppConfigBuilder.d.ts +75 -0
- package/dist/src/config/AppConfigBuilder.d.ts.map +1 -0
- package/dist/src/config/index.d.ts +13 -0
- package/dist/src/config/index.d.ts.map +1 -0
- package/dist/src/config/types.d.ts +130 -0
- package/dist/src/config/types.d.ts.map +1 -0
- package/dist/src/config.d.ts +15 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/contexts/DataContext.d.ts +139 -0
- package/dist/src/contexts/DataContext.d.ts.map +1 -0
- package/dist/src/contexts/DimensionsContext.d.ts +42 -0
- package/dist/src/contexts/DimensionsContext.d.ts.map +1 -0
- package/dist/src/contexts/PaletteContext.d.ts +53 -0
- package/dist/src/contexts/PaletteContext.d.ts.map +1 -0
- package/dist/src/contexts/PrintModeContext.d.ts +27 -0
- package/dist/src/contexts/PrintModeContext.d.ts.map +1 -0
- package/dist/src/contexts/QwickAppContext.d.ts +71 -0
- package/dist/src/contexts/QwickAppContext.d.ts.map +1 -0
- package/dist/src/contexts/ThemeContext.d.ts +65 -0
- package/dist/src/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/src/contexts/index.d.ts +11 -0
- package/dist/src/contexts/index.d.ts.map +1 -0
- package/dist/src/hooks/index.d.ts +12 -0
- package/dist/src/hooks/index.d.ts.map +1 -0
- package/dist/src/hooks/useBaseProps.d.ts +101 -0
- package/dist/src/hooks/useBaseProps.d.ts.map +1 -0
- package/dist/src/hooks/useDataBinding.d.ts +22 -0
- package/dist/src/hooks/useDataBinding.d.ts.map +1 -0
- package/dist/src/hooks/usePrintMode.d.ts +39 -0
- package/dist/src/hooks/usePrintMode.d.ts.map +1 -0
- package/dist/src/index.d.ts +9 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/palettes/PaletteAutumn.d.ts +10 -0
- package/dist/src/palettes/PaletteAutumn.d.ts.map +1 -0
- package/dist/src/palettes/PaletteCosmic.d.ts +10 -0
- package/dist/src/palettes/PaletteCosmic.d.ts.map +1 -0
- package/dist/src/palettes/PaletteDefault.d.ts +10 -0
- package/dist/src/palettes/PaletteDefault.d.ts.map +1 -0
- package/dist/src/palettes/PaletteOcean.d.ts +10 -0
- package/dist/src/palettes/PaletteOcean.d.ts.map +1 -0
- package/dist/src/palettes/PaletteSpring.d.ts +10 -0
- package/dist/src/palettes/PaletteSpring.d.ts.map +1 -0
- package/dist/src/palettes/PaletteWinter.d.ts +10 -0
- package/dist/src/palettes/PaletteWinter.d.ts.map +1 -0
- package/dist/src/palettes/index.d.ts +13 -0
- package/dist/src/palettes/index.d.ts.map +1 -0
- package/dist/src/schemas/ActionSchema.d.ts +21 -0
- package/dist/src/schemas/ActionSchema.d.ts.map +1 -0
- package/dist/src/schemas/ArticleSchema.d.ts +13 -0
- package/dist/src/schemas/ArticleSchema.d.ts.map +1 -0
- package/dist/src/schemas/ButtonSchema.d.ts +19 -0
- package/dist/src/schemas/ButtonSchema.d.ts.map +1 -0
- package/dist/src/schemas/CardListGridSchema.d.ts +17 -0
- package/dist/src/schemas/CardListGridSchema.d.ts.map +1 -0
- package/dist/src/schemas/ChoiceInputFieldSchema.d.ts +18 -0
- package/dist/src/schemas/ChoiceInputFieldSchema.d.ts.map +1 -0
- package/dist/src/schemas/CodeSchema.d.ts +18 -0
- package/dist/src/schemas/CodeSchema.d.ts.map +1 -0
- package/dist/src/schemas/CollapsibleLayoutSchema.d.ts +32 -0
- package/dist/src/schemas/CollapsibleLayoutSchema.d.ts.map +1 -0
- package/dist/src/schemas/ContainerSchema.d.ts +12 -0
- package/dist/src/schemas/ContainerSchema.d.ts.map +1 -0
- package/dist/src/schemas/ContentSchema.d.ts +21 -0
- package/dist/src/schemas/ContentSchema.d.ts.map +1 -0
- package/dist/src/schemas/CoverImageHeaderSchema.d.ts +28 -0
- package/dist/src/schemas/CoverImageHeaderSchema.d.ts.map +1 -0
- package/dist/src/schemas/FeatureCardSchema.d.ts +28 -0
- package/dist/src/schemas/FeatureCardSchema.d.ts.map +1 -0
- package/dist/src/schemas/FeatureGridSchema.d.ts +17 -0
- package/dist/src/schemas/FeatureGridSchema.d.ts.map +1 -0
- package/dist/src/schemas/FeatureItemSchema.d.ts +16 -0
- package/dist/src/schemas/FeatureItemSchema.d.ts.map +1 -0
- package/dist/src/schemas/FooterItemSchema.d.ts +15 -0
- package/dist/src/schemas/FooterItemSchema.d.ts.map +1 -0
- package/dist/src/schemas/FooterSchema.d.ts +20 -0
- package/dist/src/schemas/FooterSchema.d.ts.map +1 -0
- package/dist/src/schemas/FooterSectionSchema.d.ts +15 -0
- package/dist/src/schemas/FooterSectionSchema.d.ts.map +1 -0
- package/dist/src/schemas/FormBlockSchema.d.ts +19 -0
- package/dist/src/schemas/FormBlockSchema.d.ts.map +1 -0
- package/dist/src/schemas/GridCellSchema.d.ts +23 -0
- package/dist/src/schemas/GridCellSchema.d.ts.map +1 -0
- package/dist/src/schemas/GridLayoutSchema.d.ts +21 -0
- package/dist/src/schemas/GridLayoutSchema.d.ts.map +1 -0
- package/dist/src/schemas/HeaderActionSchema.d.ts +17 -0
- package/dist/src/schemas/HeaderActionSchema.d.ts.map +1 -0
- package/dist/src/schemas/HeroBlockSchema.d.ts +22 -0
- package/dist/src/schemas/HeroBlockSchema.d.ts.map +1 -0
- package/dist/src/schemas/HtmlInputFieldSchema.d.ts +18 -0
- package/dist/src/schemas/HtmlInputFieldSchema.d.ts.map +1 -0
- package/dist/src/schemas/HtmlSchema.d.ts +14 -0
- package/dist/src/schemas/HtmlSchema.d.ts.map +1 -0
- package/dist/src/schemas/ImageSchema.d.ts +32 -0
- package/dist/src/schemas/ImageSchema.d.ts.map +1 -0
- package/dist/src/schemas/LogoSchema.d.ts +35 -0
- package/dist/src/schemas/LogoSchema.d.ts.map +1 -0
- package/dist/src/schemas/MarkdownSchema.d.ts +14 -0
- package/dist/src/schemas/MarkdownSchema.d.ts.map +1 -0
- package/dist/src/schemas/MetadataItemSchema.d.ts +13 -0
- package/dist/src/schemas/MetadataItemSchema.d.ts.map +1 -0
- package/dist/src/schemas/PageBannerHeaderSchema.d.ts +28 -0
- package/dist/src/schemas/PageBannerHeaderSchema.d.ts.map +1 -0
- package/dist/src/schemas/PageTemplateSchema.d.ts +31 -0
- package/dist/src/schemas/PageTemplateSchema.d.ts.map +1 -0
- package/dist/src/schemas/PaletteSwitcherSchema.d.ts +16 -0
- package/dist/src/schemas/PaletteSwitcherSchema.d.ts.map +1 -0
- package/dist/src/schemas/PrintConfigSchema.d.ts +31 -0
- package/dist/src/schemas/PrintConfigSchema.d.ts.map +1 -0
- package/dist/src/schemas/ProductCardSchema.d.ts +39 -0
- package/dist/src/schemas/ProductCardSchema.d.ts.map +1 -0
- package/dist/src/schemas/SafeSpanSchema.d.ts +13 -0
- package/dist/src/schemas/SafeSpanSchema.d.ts.map +1 -0
- package/dist/src/schemas/SectionSchema.d.ts +16 -0
- package/dist/src/schemas/SectionSchema.d.ts.map +1 -0
- package/dist/src/schemas/SelectInputFieldSchema.d.ts +27 -0
- package/dist/src/schemas/SelectInputFieldSchema.d.ts.map +1 -0
- package/dist/src/schemas/SwitchInputFieldSchema.d.ts +18 -0
- package/dist/src/schemas/SwitchInputFieldSchema.d.ts.map +1 -0
- package/dist/src/schemas/TextInputFieldSchema.d.ts +22 -0
- package/dist/src/schemas/TextInputFieldSchema.d.ts.map +1 -0
- package/dist/src/schemas/TextSchema.d.ts +37 -0
- package/dist/src/schemas/TextSchema.d.ts.map +1 -0
- package/dist/src/schemas/ThemeSwitcherSchema.d.ts +19 -0
- package/dist/src/schemas/ThemeSwitcherSchema.d.ts.map +1 -0
- package/dist/src/schemas/ViewSchema.d.ts +66 -0
- package/dist/src/schemas/ViewSchema.d.ts.map +1 -0
- package/dist/src/schemas/index.d.ts +47 -0
- package/dist/src/schemas/index.d.ts.map +1 -0
- package/dist/src/schemas/transformers/ComponentTransformer.d.ts +128 -0
- package/dist/src/schemas/transformers/ComponentTransformer.d.ts.map +1 -0
- package/dist/src/schemas/transformers/ReactNodeTransformer.d.ts +53 -0
- package/dist/src/schemas/transformers/ReactNodeTransformer.d.ts.map +1 -0
- package/dist/src/schemas/transformers/registry.d.ts +18 -0
- package/dist/src/schemas/transformers/registry.d.ts.map +1 -0
- package/dist/src/schemas/types/Serializable.d.ts +46 -0
- package/dist/src/schemas/types/Serializable.d.ts.map +1 -0
- package/dist/src/stories/_templates/SerializationTemplate.d.ts +44 -0
- package/dist/src/stories/_templates/SerializationTemplate.d.ts.map +1 -0
- package/dist/src/templates/TemplateResolver.d.ts +52 -0
- package/dist/src/templates/TemplateResolver.d.ts.map +1 -0
- package/dist/src/templates/index.d.ts +7 -0
- package/dist/src/templates/index.d.ts.map +1 -0
- package/dist/src/types/CacheProvider.d.ts +18 -0
- package/dist/src/types/CacheProvider.d.ts.map +1 -0
- package/dist/src/types/CollapsibleLayout.d.ts +142 -0
- package/dist/src/types/CollapsibleLayout.d.ts.map +1 -0
- package/dist/src/types/ContentProxy.d.ts +47 -0
- package/dist/src/types/ContentProxy.d.ts.map +1 -0
- package/dist/src/types/DataTypes.d.ts +185 -0
- package/dist/src/types/DataTypes.d.ts.map +1 -0
- package/dist/src/types/TemplateProvider.d.ts +10 -0
- package/dist/src/types/TemplateProvider.d.ts.map +1 -0
- package/dist/src/types/TemplateResolver.d.ts +23 -0
- package/dist/src/types/TemplateResolver.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +82 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/utils/breakpoints.d.ts +35 -0
- package/dist/src/utils/breakpoints.d.ts.map +1 -0
- package/dist/src/utils/cssUtils.d.ts +17 -0
- package/dist/src/utils/cssUtils.d.ts.map +1 -0
- package/dist/src/utils/customPaletteManager.d.ts +8 -0
- package/dist/src/utils/customPaletteManager.d.ts.map +1 -0
- package/dist/src/utils/dimensions.d.ts +34 -0
- package/dist/src/utils/dimensions.d.ts.map +1 -0
- package/dist/src/utils/htmlTransform.d.ts +44 -0
- package/dist/src/utils/htmlTransform.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +16 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/logger.d.ts +26 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/paletteUtils.d.ts +38 -0
- package/dist/src/utils/paletteUtils.d.ts.map +1 -0
- package/dist/src/utils/persistenceUtils.d.ts +31 -0
- package/dist/src/utils/persistenceUtils.d.ts.map +1 -0
- package/dist/src/utils/reactUtils.d.ts +33 -0
- package/dist/src/utils/reactUtils.d.ts.map +1 -0
- package/dist/src/utils/spacing.d.ts +34 -0
- package/dist/src/utils/spacing.d.ts.map +1 -0
- package/dist/src/utils/themePerformanceMonitor.d.ts +32 -0
- package/dist/src/utils/themePerformanceMonitor.d.ts.map +1 -0
- package/dist/src/utils/themeUtils.d.ts +27 -0
- package/dist/src/utils/themeUtils.d.ts.map +1 -0
- package/dist/utils/cssUtils.d.ts +17 -0
- package/dist/utils/cssUtils.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +5 -2
- package/scripts/bundle-css.cjs +27 -0
- package/scripts/create-project.sh +28 -0
- package/scripts/create-qwickapps-project.js +284 -0
- package/src/__tests__/components/base/Container.test.tsx +966 -0
- package/src/__tests__/schemas/PageTemplateSchema.test.ts +1 -1
- package/src/__tests__/schemas/ViewSchema.test.ts +805 -0
- package/src/__tests__/schemas/builders.test.ts +2 -2
- package/src/__tests__/schemas/transformers/ComponentTransformer.test.ts +19 -19
- package/src/__tests__/schemas/transformers/CrossBrowserCompatibility.test.ts +13 -13
- package/src/__tests__/schemas/transformers/SerializationErrorHandling.test.ts +39 -39
- package/src/__tests__/schemas/transformers/SerializationPerformance.test.ts +14 -14
- package/src/__tests__/schemas/transformers/TestAutomation.test.ts +8 -8
- package/src/__tests__/schemas/transformers/nested-serialization.test.tsx +181 -0
- package/src/__tests__/schemas/transformers/round-trip-component-serialization.test.tsx +458 -0
- package/src/__tests__/test_image_accessibility.test.tsx +226 -0
- package/src/__tests__/utils/optional-logging.test.ts +3 -3
- package/src/components/Html.tsx +24 -15
- package/src/components/Logo.tsx +2 -2
- package/src/components/Markdown.tsx +2 -7
- package/src/components/SafeSpan.tsx +2 -7
- package/src/components/base/Container.tsx +61 -0
- package/src/components/base/ModelView.tsx +225 -91
- package/src/components/base/index.ts +3 -2
- package/src/components/blocks/Article.tsx +2 -7
- package/src/components/blocks/CardListGrid.tsx +2 -2
- package/src/components/blocks/Code.tsx +91 -179
- package/src/components/blocks/Content.tsx +2 -2
- package/src/components/blocks/CoverImageHeader.tsx +2 -2
- package/src/components/blocks/HeroBlock.tsx +54 -146
- package/src/components/blocks/Image.tsx +82 -196
- package/src/components/blocks/PageBannerHeader.tsx +2 -2
- package/src/components/blocks/Section.tsx +79 -181
- package/src/components/blocks/Text.tsx +100 -198
- package/src/components/buttons/Button.tsx +85 -183
- package/src/components/buttons/PaletteSwitcher.tsx +2 -2
- package/src/components/buttons/ThemeSwitcher.tsx +2 -2
- package/src/components/forms/FormBlock.tsx +2 -2
- package/src/components/index.ts +5 -0
- package/src/components/input/ChoiceInputField.tsx +76 -160
- package/src/components/input/HtmlInputField.tsx +141 -264
- package/src/components/input/SelectInputField.tsx +48 -153
- package/src/components/input/SwitchInputField.tsx +41 -139
- package/src/components/input/TextInputField.tsx +39 -116
- package/src/components/layout/GridCell.tsx +36 -122
- package/src/components/layout/GridLayout.tsx +55 -127
- package/src/components/pages/Page.tsx +268 -276
- package/src/components/pages/index.ts +2 -3
- package/src/components/shared/createSerializableView.tsx +280 -0
- package/src/components/shared/viewProps.ts +207 -0
- package/src/config/__tests__/AppConfigBuilder.test.ts +2 -2
- package/src/contexts/DataContext.tsx +1 -1
- package/src/schemas/ButtonSchema.ts +3 -2
- package/src/schemas/CardListGridSchema.ts +3 -2
- package/src/schemas/ChoiceInputFieldSchema.ts +3 -2
- package/src/schemas/CodeSchema.ts +8 -6
- package/src/schemas/ContainerSchema.ts +25 -0
- package/src/schemas/FeatureCardSchema.ts +1 -1
- package/src/schemas/FormBlockSchema.ts +3 -2
- package/src/schemas/GridCellSchema.ts +4 -10
- package/src/schemas/GridLayoutSchema.ts +8 -14
- package/src/schemas/HeroBlockSchema.ts +3 -2
- package/src/schemas/HtmlInputFieldSchema.ts +3 -2
- package/src/schemas/ImageSchema.ts +3 -2
- package/src/schemas/PageTemplateSchema.ts +5 -5
- package/src/schemas/SectionSchema.ts +4 -12
- package/src/schemas/SelectInputFieldSchema.ts +3 -2
- package/src/schemas/SwitchInputFieldSchema.ts +2 -2
- package/src/schemas/TextInputFieldSchema.ts +3 -2
- package/src/schemas/ViewSchema.ts +570 -0
- package/src/schemas/index.ts +1 -1
- package/src/schemas/transformers/ComponentTransformer.ts +185 -163
- package/src/schemas/transformers/ReactNodeTransformer.ts +31 -28
- package/src/schemas/transformers/registry.ts +17 -10
- package/src/stories/Button.stories.tsx +24 -0
- package/src/stories/ChoiceInputField.stories.tsx +28 -1
- package/src/stories/Code.stories.tsx +61 -1
- package/src/stories/Container.stories.tsx +954 -0
- package/src/stories/FormBlock.stories.tsx +54 -0
- package/src/stories/FormComponents.stories.tsx +8 -13
- package/src/stories/GridCell.stories.tsx +23 -64
- package/src/stories/GridLayout.stories.tsx +22 -47
- package/src/stories/HeroBlock.stories.tsx +28 -0
- package/src/stories/HtmlInputField.stories.tsx +23 -1
- package/src/stories/Image.stories.tsx +45 -233
- package/src/stories/Markdown.stories.tsx +1 -1
- package/src/stories/Section.stories.tsx +38 -4
- package/src/stories/SelectInputField.stories.tsx +26 -1
- package/src/stories/Text.stories.tsx +22 -54
- package/src/stories/TextInputField.stories.tsx +24 -1
- package/src/stories/_templates/SerializationTemplate.tsx +165 -0
- package/src/templates/TemplateResolver.ts +2 -2
- package/src/types/CollapsibleLayout.ts +2 -2
- package/src/utils/cssUtils.ts +49 -0
- package/src/utils/index.ts +1 -0
- package/src/utils/logger.ts +13 -13
- package/src/__tests__/components/base/ModelView.test.tsx +0 -220
- package/src/__tests__/schemas/ViewModelSchema.test.ts +0 -80
- package/src/components/blocks/Code.md +0 -529
- package/src/schemas/README.md +0 -661
- package/src/schemas/ViewModelSchema.ts +0 -115
- package/src/tests/ConsoleWarningTest.tsx +0 -30
- package/src/tests/StorageKeyTest.tsx +0 -110
- package/src/tests/ThemeStorageKeyTest.tsx +0 -114
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript type definitions for CollapsibleLayout component
|
|
3
|
+
*
|
|
4
|
+
* Provides TypeScript interfaces that extend the schema model with React-specific types
|
|
5
|
+
* and component-level functionality for the CollapsibleLayout component.
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
import { ReactNode } from 'react';
|
|
10
|
+
import type { WithDataBinding, SchemaProps } from '@qwickapps/schema';
|
|
11
|
+
import type { WithBaseProps } from '../hooks/useBaseProps';
|
|
12
|
+
import CollapsibleLayoutModel from '../schemas/CollapsibleLayoutSchema';
|
|
13
|
+
/**
|
|
14
|
+
* Core CollapsibleLayout properties extending the schema model
|
|
15
|
+
*
|
|
16
|
+
* This interface combines the schema-defined properties with React-specific types
|
|
17
|
+
* and additional component functionality not captured in the schema.
|
|
18
|
+
*/
|
|
19
|
+
export type CollapsibleLayoutViewProps = SchemaProps<CollapsibleLayoutModel> & WithBaseProps & {
|
|
20
|
+
/**
|
|
21
|
+
* Callback fired when the collapsed state changes
|
|
22
|
+
* @param collapsed - The new collapsed state
|
|
23
|
+
*/
|
|
24
|
+
onToggle?: (collapsed: boolean) => void;
|
|
25
|
+
/** Lead icon as React node (overrides string-based leadIcon from schema) */
|
|
26
|
+
leadIcon?: ReactNode;
|
|
27
|
+
/** Header actions as React node (overrides string-based headerActions from schema) */
|
|
28
|
+
headerActions?: ReactNode;
|
|
29
|
+
/** Collapsed view content as React node (overrides string-based collapsedView from schema) */
|
|
30
|
+
collapsedView?: ReactNode;
|
|
31
|
+
/** Main content as React node (overrides string-based children from schema) */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/** Footer content as React node (overrides string-based footerView from schema) */
|
|
34
|
+
footerView?: ReactNode;
|
|
35
|
+
/** Collapsed state icon as React node (overrides string-based collapsedIcon from schema) */
|
|
36
|
+
collapsedIcon?: ReactNode;
|
|
37
|
+
/** Expanded state icon as React node (overrides string-based expandedIcon from schema) */
|
|
38
|
+
expandedIcon?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Unique key for local storage persistence (when persistState is true)
|
|
41
|
+
* Defaults to component id or generates one automatically
|
|
42
|
+
*/
|
|
43
|
+
storageKey?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Animation duration in milliseconds
|
|
46
|
+
* @default 300
|
|
47
|
+
*/
|
|
48
|
+
animationDuration?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Disable all animations (useful for testing or accessibility)
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
disableAnimations?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Custom CSS class for the container
|
|
56
|
+
*/
|
|
57
|
+
containerClassName?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Custom CSS class for the header
|
|
60
|
+
*/
|
|
61
|
+
headerClassName?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Custom CSS class for the content area
|
|
64
|
+
*/
|
|
65
|
+
contentClassName?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Custom CSS class for the footer
|
|
68
|
+
*/
|
|
69
|
+
footerClassName?: string;
|
|
70
|
+
/**
|
|
71
|
+
* ARIA label for the toggle button
|
|
72
|
+
* @default "Toggle content visibility"
|
|
73
|
+
*/
|
|
74
|
+
toggleAriaLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* ID of element that describes the collapsible content
|
|
77
|
+
*/
|
|
78
|
+
'aria-describedby'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Additional ARIA attributes for the content region
|
|
81
|
+
*/
|
|
82
|
+
contentAriaProps?: {
|
|
83
|
+
'aria-label'?: string;
|
|
84
|
+
'aria-labelledby'?: string;
|
|
85
|
+
role?: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Complete CollapsibleLayout component props interface
|
|
90
|
+
*
|
|
91
|
+
* This is the interface that should be used by the CollapsibleLayout component.
|
|
92
|
+
* It combines the view props with data binding capabilities.
|
|
93
|
+
*/
|
|
94
|
+
export interface CollapsibleLayoutProps extends CollapsibleLayoutViewProps, WithDataBinding {
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Type guard to check if a component has CollapsibleLayout props
|
|
98
|
+
*/
|
|
99
|
+
export declare function isCollapsibleLayoutProps(props: any): props is CollapsibleLayoutProps;
|
|
100
|
+
/**
|
|
101
|
+
* Default props for CollapsibleLayout component
|
|
102
|
+
*/
|
|
103
|
+
export declare const defaultCollapsibleLayoutProps: Partial<CollapsibleLayoutProps>;
|
|
104
|
+
/**
|
|
105
|
+
* Animation style configurations
|
|
106
|
+
*/
|
|
107
|
+
export interface AnimationConfig {
|
|
108
|
+
duration: number;
|
|
109
|
+
easing: string;
|
|
110
|
+
transform?: string;
|
|
111
|
+
opacity?: [number, number];
|
|
112
|
+
}
|
|
113
|
+
export declare const animationConfigs: Record<NonNullable<CollapsibleLayoutProps['animationStyle']>, AnimationConfig>;
|
|
114
|
+
/**
|
|
115
|
+
* Spacing configurations
|
|
116
|
+
*/
|
|
117
|
+
export interface SpacingConfig {
|
|
118
|
+
padding: string;
|
|
119
|
+
gap?: string;
|
|
120
|
+
}
|
|
121
|
+
export declare const spacingConfigs: Record<NonNullable<CollapsibleLayoutProps['headerSpacing'] | CollapsibleLayoutProps['contentSpacing']>, SpacingConfig>;
|
|
122
|
+
/**
|
|
123
|
+
* Utility type for extracting controlled vs uncontrolled props
|
|
124
|
+
*/
|
|
125
|
+
export type ControlledCollapsibleLayoutProps = CollapsibleLayoutProps & {
|
|
126
|
+
collapsed: boolean;
|
|
127
|
+
onToggle: (collapsed: boolean) => void;
|
|
128
|
+
};
|
|
129
|
+
export type UncontrolledCollapsibleLayoutProps = CollapsibleLayoutProps & {
|
|
130
|
+
defaultCollapsed?: boolean;
|
|
131
|
+
onToggle?: (collapsed: boolean) => void;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Hook return type for managing collapsed state
|
|
135
|
+
*/
|
|
136
|
+
export interface UseCollapsibleLayoutState {
|
|
137
|
+
collapsed: boolean;
|
|
138
|
+
toggle: () => void;
|
|
139
|
+
setCollapsed: (collapsed: boolean) => void;
|
|
140
|
+
isControlled: boolean;
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=CollapsibleLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollapsibleLayout.d.ts","sourceRoot":"","sources":["../../../src/types/CollapsibleLayout.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAc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AC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataProxy class to enhance Data with nested property access
|
|
3
|
+
* This class wraps a Data object and provides a proxy to allow
|
|
4
|
+
* accessing nested properties using dot notation, e.g., {{company.name}}
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2024 QwickApps.com. All rights reserved.
|
|
7
|
+
*/
|
|
8
|
+
import { Data, Field, FieldGroup, Action } from "./DataTypes";
|
|
9
|
+
/**
|
|
10
|
+
* Enhanced data with nested property access for template resolution
|
|
11
|
+
* Supports deep nested access like {{company.profile.address.city}}
|
|
12
|
+
*/
|
|
13
|
+
export declare class DataProxy implements Data {
|
|
14
|
+
name: string;
|
|
15
|
+
type: string;
|
|
16
|
+
title?: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
overline?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
fields?: Field[];
|
|
21
|
+
fieldGroups?: FieldGroup[];
|
|
22
|
+
actions?: Action[];
|
|
23
|
+
repeatable?: boolean;
|
|
24
|
+
minRows?: number;
|
|
25
|
+
maxRows?: number;
|
|
26
|
+
autoCreate?: boolean;
|
|
27
|
+
private data;
|
|
28
|
+
constructor(content: Data, data?: Record<string, any>);
|
|
29
|
+
/**
|
|
30
|
+
* Get nested value from data using dot notation
|
|
31
|
+
* Supports: company.name, user.profile.avatar.url, etc.
|
|
32
|
+
*/
|
|
33
|
+
private getNestedValue;
|
|
34
|
+
/**
|
|
35
|
+
* Set nested value in data using dot notation
|
|
36
|
+
*/
|
|
37
|
+
setNestedValue(path: string, value: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get all data including nested structures
|
|
40
|
+
*/
|
|
41
|
+
getData(): Record<string, any>;
|
|
42
|
+
/**
|
|
43
|
+
* Update data while preserving nested structure
|
|
44
|
+
*/
|
|
45
|
+
updateData(newData: Record<string, any>): void;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ContentProxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentProxy.d.ts","sourceRoot":"","sources":["../../../src/types/ContentProxy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE9D;;;GAGG;AACH,qBAAa,SAAU,YAAW,IAAI;IAC7B,IAAI,EAAG,MAAM,CAAC;IACd,IAAI,EAAG,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IAE5B,OAAO,CAAC,IAAI,CAAsB;gBAEtB,OAAO,EAAE,IAAI,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;IAkBzD;;;OAGG;IACH,OAAO,CAAC,cAAc;IActB;;OAEG;IACI,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI;IAgBrD;;OAEG;IACI,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAIrC;;OAEG;IACI,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;CAGtD"}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Content Types for QwickApps React Framework
|
|
3
|
+
*
|
|
4
|
+
* These interfaces define the framework-agnostic content structure that can be
|
|
5
|
+
* automatically created and managed across different CMS systems and used
|
|
6
|
+
* for template resolution and component rendering.
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Base content structure - common properties for all content elements
|
|
12
|
+
*/
|
|
13
|
+
export interface BaseContent {
|
|
14
|
+
/** Unique identifier for this content element */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Display title for this content element */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Subtitle or description */
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
/** Short text displayed above the title */
|
|
21
|
+
overline?: string;
|
|
22
|
+
/** Icon identifier or URL for this content element */
|
|
23
|
+
icon?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Individual content field definition
|
|
27
|
+
*/
|
|
28
|
+
export interface Field extends BaseContent {
|
|
29
|
+
/** The type of field */
|
|
30
|
+
type: string;
|
|
31
|
+
/** Current value of the field */
|
|
32
|
+
value?: any;
|
|
33
|
+
/** Default value for the field */
|
|
34
|
+
defaultValue?: any;
|
|
35
|
+
/** Whether this field is required */
|
|
36
|
+
required?: boolean;
|
|
37
|
+
/** Placeholder text for input fields */
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
/** Help text or instructions */
|
|
40
|
+
instructions?: string;
|
|
41
|
+
/** Options for select/radio/checkbox fields */
|
|
42
|
+
choices?: Array<{
|
|
43
|
+
label: string;
|
|
44
|
+
value: any;
|
|
45
|
+
}>;
|
|
46
|
+
/** Minimum value (for numbers) or length (for text) */
|
|
47
|
+
min?: number;
|
|
48
|
+
/** Maximum value (for numbers) or length (for text) */
|
|
49
|
+
max?: number;
|
|
50
|
+
/** Regular expression for validation */
|
|
51
|
+
pattern?: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* HTTP methods for form submission
|
|
55
|
+
*/
|
|
56
|
+
export declare enum FormMethod {
|
|
57
|
+
POST = "POST",
|
|
58
|
+
PUT = "PUT",
|
|
59
|
+
PATCH = "PATCH"
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Action types for interactive elements
|
|
63
|
+
*/
|
|
64
|
+
export declare enum ActionType {
|
|
65
|
+
NAVIGATE = "navigate",
|
|
66
|
+
SUBMIT = "submit",
|
|
67
|
+
RESET = "reset",
|
|
68
|
+
CANCEL = "cancel"
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Action definition for interactive elements
|
|
72
|
+
*/
|
|
73
|
+
export interface Action extends BaseContent {
|
|
74
|
+
/** The type of action */
|
|
75
|
+
type: ActionType;
|
|
76
|
+
/** Target URL for navigation actions */
|
|
77
|
+
target?: string;
|
|
78
|
+
/** JavaScript handler function name */
|
|
79
|
+
handler?: string;
|
|
80
|
+
/** Whether the action is disabled */
|
|
81
|
+
disabled?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Field group - container for fields and nested field groups
|
|
85
|
+
*/
|
|
86
|
+
export interface FieldGroup extends BaseContent {
|
|
87
|
+
/** Child fields in this group */
|
|
88
|
+
fields?: Field[];
|
|
89
|
+
/** Nested field groups */
|
|
90
|
+
fieldGroups?: FieldGroup[];
|
|
91
|
+
/** Actions available for this field group */
|
|
92
|
+
actions?: Action[];
|
|
93
|
+
/** Whether this field group is repeatable */
|
|
94
|
+
repeatable?: boolean;
|
|
95
|
+
/** Minimum number of repetitions */
|
|
96
|
+
minRows?: number;
|
|
97
|
+
/** Maximum number of repetitions */
|
|
98
|
+
maxRows?: number;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Form-specific field with validation
|
|
102
|
+
*/
|
|
103
|
+
export interface FormField extends Field {
|
|
104
|
+
/** Validation rules for forms */
|
|
105
|
+
validation?: {
|
|
106
|
+
required?: boolean;
|
|
107
|
+
minLength?: number;
|
|
108
|
+
maxLength?: number;
|
|
109
|
+
pattern?: RegExp;
|
|
110
|
+
custom?: (value: any) => boolean | string;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Form-specific action
|
|
115
|
+
*/
|
|
116
|
+
export interface FormAction extends Action {
|
|
117
|
+
type: ActionType;
|
|
118
|
+
/** Form validation behavior */
|
|
119
|
+
validateOnAction?: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Form field group
|
|
123
|
+
*/
|
|
124
|
+
export interface FormFieldGroup extends FieldGroup {
|
|
125
|
+
fields?: FormField[];
|
|
126
|
+
actions?: FormAction[];
|
|
127
|
+
/** Form submission endpoint */
|
|
128
|
+
submitUrl?: string;
|
|
129
|
+
/** Form method */
|
|
130
|
+
method?: FormMethod;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Content represents any structured data that can be persisted and managed
|
|
134
|
+
* through the CMS. All content is essentially a field group with a unique type name.
|
|
135
|
+
*
|
|
136
|
+
* Content types are string-based for maximum flexibility - can be anything
|
|
137
|
+
* as long as it's unique (e.g., 'contact', 'product', 'blog-post', 'testimonial').
|
|
138
|
+
*/
|
|
139
|
+
export interface Data extends FieldGroup {
|
|
140
|
+
/** The type of content - flexible string identifier */
|
|
141
|
+
type: string;
|
|
142
|
+
/** Whether this content should be auto-created if missing */
|
|
143
|
+
autoCreate?: boolean;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Generic link interface for database persistence
|
|
147
|
+
* This is a simple data structure, not a Content type
|
|
148
|
+
*/
|
|
149
|
+
export interface Link {
|
|
150
|
+
/** Unique identifier */
|
|
151
|
+
id: string;
|
|
152
|
+
/** Display label */
|
|
153
|
+
label: string;
|
|
154
|
+
/** URL */
|
|
155
|
+
url: string;
|
|
156
|
+
/** Icon identifier or URL */
|
|
157
|
+
icon?: string;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Social media link extending base Link
|
|
161
|
+
* This is a simple data structure, not a Content type
|
|
162
|
+
*/
|
|
163
|
+
export interface SocialLink extends Link {
|
|
164
|
+
/** Social media platform */
|
|
165
|
+
platform: string;
|
|
166
|
+
/** Social media handle or username */
|
|
167
|
+
handle?: string;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Footer section containing multiple links
|
|
171
|
+
* This is a simple data structure, not a Content type
|
|
172
|
+
*/
|
|
173
|
+
export interface FooterSection {
|
|
174
|
+
/** Unique section identifier */
|
|
175
|
+
id: string;
|
|
176
|
+
/** Section title */
|
|
177
|
+
title: string;
|
|
178
|
+
/** Links in this section */
|
|
179
|
+
items: Link[];
|
|
180
|
+
/** Display order */
|
|
181
|
+
order?: number;
|
|
182
|
+
/** Whether section is visible */
|
|
183
|
+
visible?: boolean;
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=DataTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTypes.d.ts","sourceRoot":"","sources":["../../../src/types/DataTypes.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAGD;;GAEG;AACH,MAAM,WAAW,KAAM,SAAQ,WAAW;I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,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI;IACtC,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure template resolution provider interface
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
5
|
+
*/
|
|
6
|
+
export interface TemplateProvider {
|
|
7
|
+
/** Resolve template with given context using mustache syntax */
|
|
8
|
+
resolve(template: string, context: any): string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=TemplateProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateProvider.d.ts","sourceRoot":"","sources":["../../../src/types/TemplateProvider.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,GAAG,MAAM,CAAC;CACjD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ICacheProvider, IDataProvider } from "@qwickapps/schema";
|
|
2
|
+
import { TemplateProvider } from "./TemplateProvider";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for Data Provider orchestrator
|
|
5
|
+
*/
|
|
6
|
+
export interface TemplateResolverConfig {
|
|
7
|
+
/** Data provider for fetching raw data */
|
|
8
|
+
dataProvider: IDataProvider;
|
|
9
|
+
/** Template resolver (optional, defaults to MustacheTemplateResolver) */
|
|
10
|
+
templateResolver?: TemplateProvider;
|
|
11
|
+
/** Cache provider (optional, defaults to MemoryCacheProvider, false = no cache) */
|
|
12
|
+
cacheProvider?: ICacheProvider<any[]> | boolean;
|
|
13
|
+
/** Enable debug logging */
|
|
14
|
+
enableLogging?: boolean;
|
|
15
|
+
} /**
|
|
16
|
+
* Content resolver interface
|
|
17
|
+
* This is now an orchestrator that combines data, template, and cache providers
|
|
18
|
+
*/
|
|
19
|
+
export interface ITemplateResolver extends IDataProvider {
|
|
20
|
+
/** Resolve template string with mustache syntax */
|
|
21
|
+
resolveTemplate(template: string): Promise<string>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=TemplateResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplateResolver.d.ts","sourceRoot":"","sources":["../../../src/types/TemplateResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AAEH,MAAM,WAAW,sBAAsB;IACrC,0CAA0C;IAC1C,YAAY,EAAE,aAAa,CAAC;IAC5B,yEAAyE;IACzE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,mFAAmF;IACnF,aAAa,CAAC,EAAE,cAAc,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC;IAChD,2BAA2B;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAA;;;GAGE;AAEH,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD,mDAAmD;IACnD,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACpD"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized Type Definitions for QwickApps React Framework
|
|
3
|
+
*
|
|
4
|
+
* This file consolidates all common types used throughout the framework
|
|
5
|
+
* to ensure consistency and eliminate duplication.
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Standard t-shirt sizing system used across the framework
|
|
11
|
+
*/
|
|
12
|
+
export type TShirtSize = 'tiny' | 'small' | 'medium' | 'large' | 'x-large' | 'huge';
|
|
13
|
+
/**
|
|
14
|
+
* MUI breakpoint values for responsive design
|
|
15
|
+
*/
|
|
16
|
+
export type MUIBreakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
17
|
+
/**
|
|
18
|
+
* Extended MUI breakpoint names for better readability
|
|
19
|
+
*/
|
|
20
|
+
export type ExtendedBreakpoint = 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
|
|
21
|
+
/**
|
|
22
|
+
* Combined breakpoint type supporting all naming conventions
|
|
23
|
+
*/
|
|
24
|
+
export type BreakpointValue = MUIBreakpoint | ExtendedBreakpoint | false;
|
|
25
|
+
/**
|
|
26
|
+
* Height presets commonly used in layout components
|
|
27
|
+
*/
|
|
28
|
+
export type HeightPreset = TShirtSize | 'viewport' | 'auto';
|
|
29
|
+
/**
|
|
30
|
+
* Note: SpacingValue is defined in utils/spacing.ts to avoid circular dependencies
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Dimension values supporting CSS units and t-shirt sizes
|
|
34
|
+
*/
|
|
35
|
+
export type DimensionValue = TShirtSize | MUIBreakpoint | number | 'auto' | 'grow' | string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Background variant types for themed components
|
|
38
|
+
*/
|
|
39
|
+
export type BackgroundVariant = 'default' | 'primary' | 'secondary' | 'surface' | 'paper';
|
|
40
|
+
/**
|
|
41
|
+
* Text alignment options
|
|
42
|
+
*/
|
|
43
|
+
export type TextAlignment = 'left' | 'center' | 'right' | 'justify';
|
|
44
|
+
/**
|
|
45
|
+
* Common spacing presets for layout components
|
|
46
|
+
*/
|
|
47
|
+
export type SpacingPreset = 'none' | 'compact' | 'comfortable' | 'spacious';
|
|
48
|
+
/**
|
|
49
|
+
* Component size variants (different from dimension sizes)
|
|
50
|
+
*/
|
|
51
|
+
export type ComponentSize = 'small' | 'medium' | 'large';
|
|
52
|
+
/**
|
|
53
|
+
* Elevation levels for Material-UI components
|
|
54
|
+
*/
|
|
55
|
+
export type ElevationLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 12 | 16 | 24;
|
|
56
|
+
/**
|
|
57
|
+
* Common variant styles for components
|
|
58
|
+
*/
|
|
59
|
+
export type ComponentVariant = 'default' | 'elevated' | 'outlined' | 'filled' | 'text';
|
|
60
|
+
/**
|
|
61
|
+
* Animation durations
|
|
62
|
+
*/
|
|
63
|
+
export type AnimationDuration = 'fast' | 'medium' | 'slow' | number;
|
|
64
|
+
/**
|
|
65
|
+
* Grid span values for layout systems
|
|
66
|
+
*/
|
|
67
|
+
export type GridSpan = number | 'auto' | 'grow';
|
|
68
|
+
/**
|
|
69
|
+
* Color intensity levels
|
|
70
|
+
*/
|
|
71
|
+
export type ColorIntensity = 'light' | 'main' | 'dark';
|
|
72
|
+
/**
|
|
73
|
+
* Common loading states
|
|
74
|
+
*/
|
|
75
|
+
export type LoadingState = 'idle' | 'loading' | 'success' | 'error';
|
|
76
|
+
export * from './CacheProvider';
|
|
77
|
+
export * from './CollapsibleLayout';
|
|
78
|
+
export * from './ContentProxy';
|
|
79
|
+
export * from './DataTypes';
|
|
80
|
+
export * from './TemplateProvider';
|
|
81
|
+
export * from './TemplateResolver';
|
|
82
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;A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AU,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAGpE,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Breakpoint utilities for QwickApps React Framework
|
|
3
|
+
*
|
|
4
|
+
* Consolidates all breakpoint-related logic and type conversions
|
|
5
|
+
* to ensure consistency across components.
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
import type { MUIBreakpoint, BreakpointValue, ExtendedBreakpoint } from '../types';
|
|
10
|
+
/**
|
|
11
|
+
* Standard MUI breakpoint pixel values
|
|
12
|
+
*/
|
|
13
|
+
export declare const MUI_BREAKPOINT_VALUES: Record<MUIBreakpoint, number>;
|
|
14
|
+
/**
|
|
15
|
+
* Converts any breakpoint value to MUI breakpoint format
|
|
16
|
+
* Handles extended names, MUI names, and false values
|
|
17
|
+
*/
|
|
18
|
+
export declare function mapToMUIBreakpoint(value?: BreakpointValue): MUIBreakpoint | false;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the pixel value for a breakpoint
|
|
21
|
+
*/
|
|
22
|
+
export declare function getBreakpointPixelValue(breakpoint: MUIBreakpoint | BreakpointValue): number;
|
|
23
|
+
/**
|
|
24
|
+
* Type guard to check if a value is a valid MUI breakpoint
|
|
25
|
+
*/
|
|
26
|
+
export declare function isMUIBreakpoint(value: unknown): value is MUIBreakpoint;
|
|
27
|
+
/**
|
|
28
|
+
* Type guard to check if a value is an extended breakpoint name
|
|
29
|
+
*/
|
|
30
|
+
export declare function isExtendedBreakpoint(value: unknown): value is ExtendedBreakpoint;
|
|
31
|
+
/**
|
|
32
|
+
* Type guard to check if a value is any valid breakpoint
|
|
33
|
+
*/
|
|
34
|
+
export declare function isBreakpointValue(value: unknown): value is BreakpointValue;
|
|
35
|
+
//# sourceMappingURL=breakpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../../src/utils/breakpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAM/D,CAAC;AAaF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,aAAa,GAAG,KAAK,CAiBjF;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,aAAa,GAAG,eAAe,GAAG,MAAM,CAM3F;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,kBAAkB,CAEhF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAE1E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for CSS value conversions.
|
|
3
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Converts a value to a CSS length string.
|
|
7
|
+
* @param value The value to convert (number, string, etc.).
|
|
8
|
+
* @param opts Options for controlling the conversion.
|
|
9
|
+
* @returns The CSS length string (e.g., "10px", "100%", etc.).
|
|
10
|
+
*/
|
|
11
|
+
export declare function toCssLength(value: unknown, opts?: {
|
|
12
|
+
defaultUnit?: string;
|
|
13
|
+
allowedUnits?: string[];
|
|
14
|
+
allowKeywords?: boolean;
|
|
15
|
+
fallback?: string;
|
|
16
|
+
}): string;
|
|
17
|
+
//# sourceMappingURL=cssUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cssUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/cssUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,OAAO,EACd,IAAI,GAAE;IACJ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACd,GACL,MAAM,CA6BR"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function saveCustomPalette(palette: Object): void;
|
|
2
|
+
export function getCustomPalettes(): any[];
|
|
3
|
+
export function deleteCustomPalette(paletteId: string): void;
|
|
4
|
+
export function exportPalette(palette: Object): void;
|
|
5
|
+
export function importPalette(file: File): Promise<Object>;
|
|
6
|
+
export function createPaletteFromCurrentTheme(name: string, description: string): Object;
|
|
7
|
+
export function applyCustomPalette(palette: Object): void;
|
|
8
|
+
//# sourceMappingURL=customPaletteManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"customPaletteManager.d.ts","sourceRoot":"","sources":["../../../src/utils/customPaletteManager.js"],"names":[],"mappings":"AAUO,2CAFI,MAAM,QAahB;AAMM,2CAQN;AAMM,+CAFI,MAAM,QAYhB;AAMM,uCAFI,MAAM,QAYhB;AAOM,oCAHI,IAAI,GACF,OAAO,CAAC,MAAM,CAAC,CA+B3B;AAQM,oDAJI,MAAM,eACN,MAAM,GACJ,MAAM,CAoElB;AAMM,4CAFI,MAAM,QAgChB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dimension utilities for QwickApps React Framework
|
|
3
|
+
*
|
|
4
|
+
* Provides standardized dimension value resolution with t-shirt sizing
|
|
5
|
+
* and MUI breakpoint compatibility
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2025 QwickApps.com. All rights reserved.
|
|
8
|
+
*/
|
|
9
|
+
import type { DimensionValue } from '../types';
|
|
10
|
+
export type { DimensionValue };
|
|
11
|
+
export type DimensionContext = 'width' | 'height' | 'maxWidth' | 'maxHeight' | 'minWidth' | 'minHeight';
|
|
12
|
+
/**
|
|
13
|
+
* Resolves a dimension value to a valid CSS value
|
|
14
|
+
*/
|
|
15
|
+
export declare function resolveDimension(value: DimensionValue, context?: DimensionContext): string | number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Resolves multiple dimension props at once
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveDimensions(props: {
|
|
20
|
+
width?: DimensionValue;
|
|
21
|
+
height?: DimensionValue;
|
|
22
|
+
minWidth?: DimensionValue;
|
|
23
|
+
minHeight?: DimensionValue;
|
|
24
|
+
maxWidth?: DimensionValue;
|
|
25
|
+
maxHeight?: DimensionValue;
|
|
26
|
+
}): {
|
|
27
|
+
width: string | number | undefined;
|
|
28
|
+
height: string | number | undefined;
|
|
29
|
+
minWidth: string | number | undefined;
|
|
30
|
+
minHeight: string | number | undefined;
|
|
31
|
+
maxWidth: string | number | undefined;
|
|
32
|
+
maxHeight: string | number | undefined;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=dimensions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../../src/utils/dimensions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAA6B,MAAM,UAAU,CAAC;AAG1E,YAAY,EAAE,cAAc,EAAE,CAAC;AAG/B,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AA6DxG;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,cAAc,EACrB,OAAO,GAAE,gBAA0B,GAClC,MAAM,GAAG,MAAM,GAAG,SAAS,CA2C7B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IACvC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;;;;;;EASA"}
|