zero-to-app 2.0.0 → 3.0.0
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/dist/brand/brand-config.d.ts +65 -0
- package/dist/brand/brand-config.d.ts.map +1 -0
- package/dist/brand/brand-config.js +68 -0
- package/dist/brand/brand-config.js.map +1 -0
- package/dist/brand/brand-context.d.ts +55 -0
- package/dist/brand/brand-context.d.ts.map +1 -0
- package/dist/brand/brand-context.js +76 -0
- package/dist/brand/brand-context.js.map +1 -0
- package/dist/brand/brand-types.d.ts +92 -0
- package/dist/brand/brand-types.d.ts.map +1 -0
- package/dist/brand/brand-types.js +2 -0
- package/dist/brand/brand-types.js.map +1 -0
- package/dist/brand/default-brand.d.ts +11 -0
- package/dist/brand/default-brand.d.ts.map +1 -0
- package/dist/brand/default-brand.js +32 -0
- package/dist/brand/default-brand.js.map +1 -0
- package/dist/brand/index.d.ts +5 -3
- package/dist/brand/index.d.ts.map +1 -1
- package/dist/brand/index.js +6 -3
- package/dist/brand/index.js.map +1 -1
- package/dist/brand/palette-generator.d.ts +64 -0
- package/dist/brand/palette-generator.d.ts.map +1 -0
- package/dist/brand/palette-generator.js +283 -0
- package/dist/brand/palette-generator.js.map +1 -0
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -9
- package/dist/components/index.js.map +1 -1
- package/dist/components/navigation/app-tabs/app-tabs.d.ts +63 -0
- package/dist/components/navigation/app-tabs/app-tabs.d.ts.map +1 -0
- package/dist/components/navigation/app-tabs/app-tabs.js +13 -0
- package/dist/components/navigation/app-tabs/app-tabs.js.map +1 -0
- package/dist/components/navigation/app-tabs/app-tabs.web.d.ts +47 -0
- package/dist/components/navigation/app-tabs/app-tabs.web.d.ts.map +1 -0
- package/dist/components/navigation/app-tabs/app-tabs.web.js +104 -0
- package/dist/components/navigation/app-tabs/app-tabs.web.js.map +1 -0
- package/dist/components/navigation/app-tabs/index.d.ts +3 -0
- package/dist/components/navigation/app-tabs/index.d.ts.map +1 -0
- package/dist/components/navigation/app-tabs/index.js +3 -0
- package/dist/components/navigation/app-tabs/index.js.map +1 -0
- package/dist/components/navigation/drawer/drawer.d.ts +24 -0
- package/dist/components/navigation/drawer/drawer.d.ts.map +1 -0
- package/dist/components/navigation/drawer/drawer.js +82 -0
- package/dist/components/navigation/drawer/drawer.js.map +1 -0
- package/dist/components/navigation/index.d.ts +9 -5
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +9 -5
- package/dist/components/navigation/index.js.map +1 -1
- package/dist/components/navigation/native-header.d.ts +25 -0
- package/dist/components/navigation/native-header.d.ts.map +1 -0
- package/dist/components/navigation/native-header.js +32 -0
- package/dist/components/navigation/native-header.js.map +1 -0
- package/dist/components/navigation/shared/sidebar-styles.d.ts +34 -0
- package/dist/components/navigation/shared/sidebar-styles.d.ts.map +1 -0
- package/dist/components/navigation/shared/sidebar-styles.js +34 -0
- package/dist/components/navigation/shared/sidebar-styles.js.map +1 -0
- package/dist/components/navigation/sidebar/index.d.ts +10 -0
- package/dist/components/navigation/sidebar/index.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/index.js +7 -0
- package/dist/components/navigation/sidebar/index.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-footer.d.ts +18 -0
- package/dist/components/navigation/sidebar/sidebar-footer.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-footer.js +27 -0
- package/dist/components/navigation/sidebar/sidebar-footer.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-header.d.ts +26 -0
- package/dist/components/navigation/sidebar/sidebar-header.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-header.js +38 -0
- package/dist/components/navigation/sidebar/sidebar-header.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-item.d.ts +36 -0
- package/dist/components/navigation/sidebar/sidebar-item.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-item.js +63 -0
- package/dist/components/navigation/sidebar/sidebar-item.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-section.d.ts +34 -0
- package/dist/components/navigation/sidebar/sidebar-section.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar-section.js +56 -0
- package/dist/components/navigation/sidebar/sidebar-section.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.d.ts +2 -0
- package/dist/components/navigation/sidebar/sidebar.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.js +4 -0
- package/dist/components/navigation/sidebar/sidebar.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.native.d.ts +23 -0
- package/dist/components/navigation/sidebar/sidebar.native.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.native.js +80 -0
- package/dist/components/navigation/sidebar/sidebar.native.js.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.web.d.ts +26 -0
- package/dist/components/navigation/sidebar/sidebar.web.d.ts.map +1 -0
- package/dist/components/navigation/sidebar/sidebar.web.js +90 -0
- package/dist/components/navigation/sidebar/sidebar.web.js.map +1 -0
- package/dist/components/navigation/themed-stack.d.ts +25 -0
- package/dist/components/navigation/themed-stack.d.ts.map +1 -0
- package/dist/components/navigation/themed-stack.js +37 -0
- package/dist/components/navigation/themed-stack.js.map +1 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/components/shared/index.d.ts.map +1 -0
- package/dist/components/shared/index.js +2 -0
- package/dist/components/shared/index.js.map +1 -0
- package/dist/components/shared/types.d.ts +82 -0
- package/dist/components/shared/types.d.ts.map +1 -0
- package/dist/components/{chat → shared}/types.js.map +1 -1
- package/dist/components/ui/button.d.ts +132 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +253 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +88 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +66 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/container.d.ts +31 -0
- package/dist/components/ui/container.d.ts.map +1 -0
- package/dist/components/ui/container.js +46 -0
- package/dist/components/ui/container.js.map +1 -0
- package/dist/components/ui/fab.d.ts +51 -0
- package/dist/components/ui/fab.d.ts.map +1 -0
- package/dist/components/ui/fab.js +138 -0
- package/dist/components/ui/fab.js.map +1 -0
- package/dist/components/ui/index.d.ts +17 -12
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +15 -12
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/screen.d.ts +40 -0
- package/dist/components/ui/screen.d.ts.map +1 -0
- package/dist/components/ui/screen.js +57 -0
- package/dist/components/ui/screen.js.map +1 -0
- package/dist/components/ui/themed-image.d.ts +7 -0
- package/dist/components/ui/themed-image.d.ts.map +1 -0
- package/dist/components/ui/themed-image.js +9 -0
- package/dist/components/ui/themed-image.js.map +1 -0
- package/dist/components/ui/themed-view.d.ts +20 -0
- package/dist/components/ui/themed-view.d.ts.map +1 -0
- package/dist/components/ui/themed-view.js +75 -0
- package/dist/components/ui/themed-view.js.map +1 -0
- package/dist/components/ui/typography.d.ts +110 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +69 -0
- package/dist/components/ui/typography.js.map +1 -0
- package/dist/context/layout-context.d.ts +66 -0
- package/dist/context/layout-context.d.ts.map +1 -0
- package/dist/context/layout-context.js +83 -0
- package/dist/context/layout-context.js.map +1 -0
- package/dist/context/{scrollContext.d.ts → scroll-context.d.ts} +1 -1
- package/dist/context/scroll-context.d.ts.map +1 -0
- package/dist/context/{scrollContext.js → scroll-context.js} +1 -1
- package/dist/context/scroll-context.js.map +1 -0
- package/dist/context/sidebar-context.d.ts +74 -0
- package/dist/context/sidebar-context.d.ts.map +1 -0
- package/dist/context/sidebar-context.js +95 -0
- package/dist/context/sidebar-context.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/use-breakpoint.d.ts +8 -0
- package/dist/hooks/use-breakpoint.d.ts.map +1 -0
- package/dist/hooks/use-breakpoint.js +10 -0
- package/dist/hooks/use-breakpoint.js.map +1 -0
- package/dist/hooks/{useDimensions.d.ts → use-dimensions.d.ts} +1 -1
- package/dist/hooks/use-dimensions.d.ts.map +1 -0
- package/dist/hooks/{useDimensions.js → use-dimensions.js} +1 -1
- package/dist/hooks/use-dimensions.js.map +1 -0
- package/dist/hooks/use-route-navigation.d.ts +19 -0
- package/dist/hooks/use-route-navigation.d.ts.map +1 -0
- package/dist/hooks/use-route-navigation.js +25 -0
- package/dist/hooks/use-route-navigation.js.map +1 -0
- package/dist/{components/navigation/iconUtils.d.ts → icons/icon-utils.d.ts} +2 -2
- package/dist/icons/icon-utils.d.ts.map +1 -0
- package/dist/{components/navigation/iconUtils.js → icons/icon-utils.js} +8 -4
- package/dist/icons/icon-utils.js.map +1 -0
- package/dist/icons/index.d.ts +13 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/icons/index.js +12 -0
- package/dist/icons/index.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/theme/high-contrast-theme.d.ts +19 -0
- package/dist/theme/high-contrast-theme.d.ts.map +1 -0
- package/dist/theme/high-contrast-theme.js +225 -0
- package/dist/theme/high-contrast-theme.js.map +1 -0
- package/dist/theme/index.d.ts +4 -2
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +4 -2
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/theme-config.d.ts +134 -0
- package/dist/theme/theme-config.d.ts.map +1 -0
- package/dist/theme/theme-config.js +286 -0
- package/dist/theme/theme-config.js.map +1 -0
- package/dist/theme/theme.d.ts +93 -2
- package/dist/theme/theme.d.ts.map +1 -1
- package/dist/theme/theme.js +125 -28
- package/dist/theme/theme.js.map +1 -1
- package/dist/utils/contrast-checker.d.ts +51 -0
- package/dist/utils/contrast-checker.d.ts.map +1 -0
- package/dist/utils/contrast-checker.js +97 -0
- package/dist/utils/contrast-checker.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +35 -20
- package/README.md +0 -929
- package/dist/brand/brandConfig.d.ts +0 -48
- package/dist/brand/brandConfig.d.ts.map +0 -1
- package/dist/brand/brandConfig.js +0 -41
- package/dist/brand/brandConfig.js.map +0 -1
- package/dist/brand/brandContext.d.ts +0 -10
- package/dist/brand/brandContext.d.ts.map +0 -1
- package/dist/brand/brandContext.js +0 -16
- package/dist/brand/brandContext.js.map +0 -1
- package/dist/brand/brandTypes.d.ts +0 -54
- package/dist/brand/brandTypes.d.ts.map +0 -1
- package/dist/brand/brandTypes.js +0 -2
- package/dist/brand/brandTypes.js.map +0 -1
- package/dist/components/action/ActionRow.d.ts +0 -25
- package/dist/components/action/ActionRow.d.ts.map +0 -1
- package/dist/components/action/ActionRow.js +0 -66
- package/dist/components/action/ActionRow.js.map +0 -1
- package/dist/components/action/index.d.ts +0 -2
- package/dist/components/action/index.d.ts.map +0 -1
- package/dist/components/action/index.js +0 -3
- package/dist/components/action/index.js.map +0 -1
- package/dist/components/card/Card.d.ts +0 -11
- package/dist/components/card/Card.d.ts.map +0 -1
- package/dist/components/card/Card.js +0 -32
- package/dist/components/card/Card.js.map +0 -1
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/card/index.d.ts.map +0 -1
- package/dist/components/card/index.js +0 -2
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/chat/ChatContainer.d.ts +0 -27
- package/dist/components/chat/ChatContainer.d.ts.map +0 -1
- package/dist/components/chat/ChatContainer.js +0 -52
- package/dist/components/chat/ChatContainer.js.map +0 -1
- package/dist/components/chat/ChatInput.d.ts +0 -9
- package/dist/components/chat/ChatInput.d.ts.map +0 -1
- package/dist/components/chat/ChatInput.js +0 -219
- package/dist/components/chat/ChatInput.js.map +0 -1
- package/dist/components/chat/ChatMessages.d.ts +0 -9
- package/dist/components/chat/ChatMessages.d.ts.map +0 -1
- package/dist/components/chat/ChatMessages.js +0 -35
- package/dist/components/chat/ChatMessages.js.map +0 -1
- package/dist/components/chat/EmptyChat.d.ts +0 -18
- package/dist/components/chat/EmptyChat.d.ts.map +0 -1
- package/dist/components/chat/EmptyChat.js +0 -64
- package/dist/components/chat/EmptyChat.js.map +0 -1
- package/dist/components/chat/Message.d.ts +0 -8
- package/dist/components/chat/Message.d.ts.map +0 -1
- package/dist/components/chat/Message.js +0 -47
- package/dist/components/chat/Message.js.map +0 -1
- package/dist/components/chat/index.d.ts +0 -6
- package/dist/components/chat/index.d.ts.map +0 -1
- package/dist/components/chat/index.js +0 -7
- package/dist/components/chat/index.js.map +0 -1
- package/dist/components/chat/types.d.ts +0 -34
- package/dist/components/chat/types.d.ts.map +0 -1
- package/dist/components/form/DropDownSelect.d.ts +0 -12
- package/dist/components/form/DropDownSelect.d.ts.map +0 -1
- package/dist/components/form/DropDownSelect.js +0 -63
- package/dist/components/form/DropDownSelect.js.map +0 -1
- package/dist/components/form/EmailSubscriptionForm.d.ts +0 -14
- package/dist/components/form/EmailSubscriptionForm.d.ts.map +0 -1
- package/dist/components/form/EmailSubscriptionForm.js +0 -58
- package/dist/components/form/EmailSubscriptionForm.js.map +0 -1
- package/dist/components/form/FormErrors.d.ts +0 -7
- package/dist/components/form/FormErrors.d.ts.map +0 -1
- package/dist/components/form/FormErrors.js +0 -35
- package/dist/components/form/FormErrors.js.map +0 -1
- package/dist/components/form/FormInput.d.ts +0 -14
- package/dist/components/form/FormInput.d.ts.map +0 -1
- package/dist/components/form/FormInput.js +0 -35
- package/dist/components/form/FormInput.js.map +0 -1
- package/dist/components/form/FormSeparator.d.ts +0 -6
- package/dist/components/form/FormSeparator.d.ts.map +0 -1
- package/dist/components/form/FormSeparator.js +0 -25
- package/dist/components/form/FormSeparator.js.map +0 -1
- package/dist/components/form/index.d.ts +0 -6
- package/dist/components/form/index.d.ts.map +0 -1
- package/dist/components/form/index.js +0 -7
- package/dist/components/form/index.js.map +0 -1
- package/dist/components/layout/Footer.d.ts +0 -3
- package/dist/components/layout/Footer.d.ts.map +0 -1
- package/dist/components/layout/Footer.js +0 -60
- package/dist/components/layout/Footer.js.map +0 -1
- package/dist/components/layout/MinimalFooter.d.ts +0 -8
- package/dist/components/layout/MinimalFooter.d.ts.map +0 -1
- package/dist/components/layout/MinimalFooter.js +0 -57
- package/dist/components/layout/MinimalFooter.js.map +0 -1
- package/dist/components/layout/MobileFooterBar.d.ts +0 -7
- package/dist/components/layout/MobileFooterBar.d.ts.map +0 -1
- package/dist/components/layout/MobileFooterBar.js +0 -18
- package/dist/components/layout/MobileFooterBar.js.map +0 -1
- package/dist/components/layout/ParallaxScrollView.d.ts +0 -11
- package/dist/components/layout/ParallaxScrollView.d.ts.map +0 -1
- package/dist/components/layout/ParallaxScrollView.js +0 -67
- package/dist/components/layout/ParallaxScrollView.js.map +0 -1
- package/dist/components/layout/WebPageLayout.d.ts +0 -17
- package/dist/components/layout/WebPageLayout.d.ts.map +0 -1
- package/dist/components/layout/WebPageLayout.js +0 -103
- package/dist/components/layout/WebPageLayout.js.map +0 -1
- package/dist/components/layout/index.d.ts +0 -6
- package/dist/components/layout/index.d.ts.map +0 -1
- package/dist/components/layout/index.js +0 -9
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/list/List.d.ts +0 -10
- package/dist/components/list/List.d.ts.map +0 -1
- package/dist/components/list/List.js +0 -18
- package/dist/components/list/List.js.map +0 -1
- package/dist/components/list/ListButton.d.ts +0 -13
- package/dist/components/list/ListButton.d.ts.map +0 -1
- package/dist/components/list/ListButton.js +0 -24
- package/dist/components/list/ListButton.js.map +0 -1
- package/dist/components/list/ListDivider.d.ts +0 -7
- package/dist/components/list/ListDivider.d.ts.map +0 -1
- package/dist/components/list/ListDivider.js +0 -23
- package/dist/components/list/ListDivider.js.map +0 -1
- package/dist/components/list/index.d.ts +0 -4
- package/dist/components/list/index.d.ts.map +0 -1
- package/dist/components/list/index.js +0 -4
- package/dist/components/list/index.js.map +0 -1
- package/dist/components/media/Carousel.d.ts +0 -18
- package/dist/components/media/Carousel.d.ts.map +0 -1
- package/dist/components/media/Carousel.js +0 -60
- package/dist/components/media/Carousel.js.map +0 -1
- package/dist/components/media/FeatureCard.d.ts +0 -9
- package/dist/components/media/FeatureCard.d.ts.map +0 -1
- package/dist/components/media/FeatureCard.js +0 -68
- package/dist/components/media/FeatureCard.js.map +0 -1
- package/dist/components/media/HorizontalCarousel.d.ts +0 -17
- package/dist/components/media/HorizontalCarousel.d.ts.map +0 -1
- package/dist/components/media/HorizontalCarousel.js +0 -60
- package/dist/components/media/HorizontalCarousel.js.map +0 -1
- package/dist/components/media/ImageCarousel.d.ts +0 -14
- package/dist/components/media/ImageCarousel.d.ts.map +0 -1
- package/dist/components/media/ImageCarousel.js +0 -21
- package/dist/components/media/ImageCarousel.js.map +0 -1
- package/dist/components/media/MediaTile.d.ts +0 -30
- package/dist/components/media/MediaTile.d.ts.map +0 -1
- package/dist/components/media/MediaTile.js +0 -51
- package/dist/components/media/MediaTile.js.map +0 -1
- package/dist/components/media/SkeletonMediaTile.d.ts +0 -17
- package/dist/components/media/SkeletonMediaTile.d.ts.map +0 -1
- package/dist/components/media/SkeletonMediaTile.js +0 -67
- package/dist/components/media/SkeletonMediaTile.js.map +0 -1
- package/dist/components/media/index.d.ts +0 -7
- package/dist/components/media/index.d.ts.map +0 -1
- package/dist/components/media/index.js +0 -8
- package/dist/components/media/index.js.map +0 -1
- package/dist/components/navigation/AppbarWeb.d.ts +0 -18
- package/dist/components/navigation/AppbarWeb.d.ts.map +0 -1
- package/dist/components/navigation/AppbarWeb.js +0 -70
- package/dist/components/navigation/AppbarWeb.js.map +0 -1
- package/dist/components/navigation/IconButtonGroup.d.ts +0 -7
- package/dist/components/navigation/IconButtonGroup.d.ts.map +0 -1
- package/dist/components/navigation/IconButtonGroup.js +0 -33
- package/dist/components/navigation/IconButtonGroup.js.map +0 -1
- package/dist/components/navigation/Logo.d.ts +0 -16
- package/dist/components/navigation/Logo.d.ts.map +0 -1
- package/dist/components/navigation/Logo.js +0 -64
- package/dist/components/navigation/Logo.js.map +0 -1
- package/dist/components/navigation/MobileMenuDrawer.d.ts +0 -13
- package/dist/components/navigation/MobileMenuDrawer.d.ts.map +0 -1
- package/dist/components/navigation/MobileMenuDrawer.js +0 -184
- package/dist/components/navigation/MobileMenuDrawer.js.map +0 -1
- package/dist/components/navigation/ScreenHeader.d.ts +0 -30
- package/dist/components/navigation/ScreenHeader.d.ts.map +0 -1
- package/dist/components/navigation/ScreenHeader.js +0 -127
- package/dist/components/navigation/ScreenHeader.js.map +0 -1
- package/dist/components/navigation/iconUtils.d.ts.map +0 -1
- package/dist/components/navigation/iconUtils.js.map +0 -1
- package/dist/components/tile/Tile.d.ts +0 -18
- package/dist/components/tile/Tile.d.ts.map +0 -1
- package/dist/components/tile/Tile.js +0 -41
- package/dist/components/tile/Tile.js.map +0 -1
- package/dist/components/tile/index.d.ts +0 -2
- package/dist/components/tile/index.d.ts.map +0 -1
- package/dist/components/tile/index.js +0 -2
- package/dist/components/tile/index.js.map +0 -1
- package/dist/components/ui/ArrowButton.d.ts +0 -8
- package/dist/components/ui/ArrowButton.d.ts.map +0 -1
- package/dist/components/ui/ArrowButton.js +0 -30
- package/dist/components/ui/ArrowButton.js.map +0 -1
- package/dist/components/ui/BlurButton.d.ts +0 -16
- package/dist/components/ui/BlurButton.d.ts.map +0 -1
- package/dist/components/ui/BlurButton.js +0 -26
- package/dist/components/ui/BlurButton.js.map +0 -1
- package/dist/components/ui/Button.d.ts +0 -24
- package/dist/components/ui/Button.d.ts.map +0 -1
- package/dist/components/ui/Button.js +0 -60
- package/dist/components/ui/Button.js.map +0 -1
- package/dist/components/ui/ErrorBoundary.d.ts +0 -18
- package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
- package/dist/components/ui/ErrorBoundary.js +0 -37
- package/dist/components/ui/ErrorBoundary.js.map +0 -1
- package/dist/components/ui/IconButton.d.ts +0 -13
- package/dist/components/ui/IconButton.d.ts.map +0 -1
- package/dist/components/ui/IconButton.js +0 -27
- package/dist/components/ui/IconButton.js.map +0 -1
- package/dist/components/ui/LoadingIndicator.d.ts +0 -6
- package/dist/components/ui/LoadingIndicator.d.ts.map +0 -1
- package/dist/components/ui/LoadingIndicator.js +0 -15
- package/dist/components/ui/LoadingIndicator.js.map +0 -1
- package/dist/components/ui/NotificationBadge.d.ts +0 -8
- package/dist/components/ui/NotificationBadge.d.ts.map +0 -1
- package/dist/components/ui/NotificationBadge.js +0 -24
- package/dist/components/ui/NotificationBadge.js.map +0 -1
- package/dist/components/ui/SkeletonCard.d.ts +0 -14
- package/dist/components/ui/SkeletonCard.d.ts.map +0 -1
- package/dist/components/ui/SkeletonCard.js +0 -50
- package/dist/components/ui/SkeletonCard.js.map +0 -1
- package/dist/components/ui/StyledText.d.ts +0 -17
- package/dist/components/ui/StyledText.d.ts.map +0 -1
- package/dist/components/ui/StyledText.js +0 -27
- package/dist/components/ui/StyledText.js.map +0 -1
- package/dist/components/ui/StyledTextInput.d.ts +0 -10
- package/dist/components/ui/StyledTextInput.d.ts.map +0 -1
- package/dist/components/ui/StyledTextInput.js +0 -62
- package/dist/components/ui/StyledTextInput.js.map +0 -1
- package/dist/components/ui/TextLink.d.ts +0 -14
- package/dist/components/ui/TextLink.d.ts.map +0 -1
- package/dist/components/ui/TextLink.js +0 -25
- package/dist/components/ui/TextLink.js.map +0 -1
- package/dist/components/ui/ToggleIconButton.d.ts +0 -14
- package/dist/components/ui/ToggleIconButton.d.ts.map +0 -1
- package/dist/components/ui/ToggleIconButton.js +0 -19
- package/dist/components/ui/ToggleIconButton.js.map +0 -1
- package/dist/context/scrollContext.d.ts.map +0 -1
- package/dist/context/scrollContext.js.map +0 -1
- package/dist/hooks/useDimensions.d.ts.map +0 -1
- package/dist/hooks/useDimensions.js.map +0 -1
- package/dist/hooks/useWindowHeight.d.ts +0 -7
- package/dist/hooks/useWindowHeight.d.ts.map +0 -1
- package/dist/hooks/useWindowHeight.js +0 -10
- package/dist/hooks/useWindowHeight.js.map +0 -1
- package/dist/hooks/useWindowWidth.d.ts +0 -20
- package/dist/hooks/useWindowWidth.d.ts.map +0 -1
- package/dist/hooks/useWindowWidth.js +0 -27
- package/dist/hooks/useWindowWidth.js.map +0 -1
- package/dist/theme/themeConfig.d.ts +0 -19
- package/dist/theme/themeConfig.d.ts.map +0 -1
- package/dist/theme/themeConfig.js +0 -43
- package/dist/theme/themeConfig.js.map +0 -1
- /package/dist/components/{chat → shared}/types.js +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BorderRadius, Colors, FooterLinks, LogoConfig, Name, NavigationConfig, Shape, Spacing } from './brand-types';
|
|
2
|
+
import { type PaletteOptions } from './palette-generator';
|
|
3
|
+
export interface Brand {
|
|
4
|
+
colors: Colors;
|
|
5
|
+
darkColors?: Colors;
|
|
6
|
+
spacing: Spacing;
|
|
7
|
+
borderRadius: BorderRadius;
|
|
8
|
+
shape: Shape;
|
|
9
|
+
name: Name;
|
|
10
|
+
logo: LogoConfig;
|
|
11
|
+
footerLinks: FooterLinks;
|
|
12
|
+
navigation: NavigationConfig;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Configuration interface for creating a brand.
|
|
16
|
+
* Supports both manual color specification and seed-based palette generation.
|
|
17
|
+
*/
|
|
18
|
+
export interface BrandConfig {
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* Colors for the brand. Can be:
|
|
22
|
+
* 1. Complete Colors object (manual specification)
|
|
23
|
+
* 2. Object with colorSeed for automatic M3 palette generation
|
|
24
|
+
*/
|
|
25
|
+
colors: Colors | {
|
|
26
|
+
colorSeed: PaletteOptions;
|
|
27
|
+
};
|
|
28
|
+
/** Optional dark theme colors (generated from seed if not provided) */
|
|
29
|
+
darkColors?: Colors | {
|
|
30
|
+
colorSeed: PaletteOptions;
|
|
31
|
+
};
|
|
32
|
+
spacing: Spacing;
|
|
33
|
+
borderRadius: BorderRadius;
|
|
34
|
+
shape?: Shape;
|
|
35
|
+
logo?: LogoConfig;
|
|
36
|
+
footerLinks?: FooterLinks;
|
|
37
|
+
navigation?: NavigationConfig;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Creates a brand configuration from the provided config.
|
|
41
|
+
* Supports both manual color specification and automatic M3 palette generation.
|
|
42
|
+
*
|
|
43
|
+
* @param config Configuration with brand values
|
|
44
|
+
* @returns Brand configuration object with generated or manual colors
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Manual color specification
|
|
48
|
+
* const manualBrand = createBrand({
|
|
49
|
+
* name: 'My App',
|
|
50
|
+
* colors: { primary: '#ff0000', secondary: '#00ff00', ... },
|
|
51
|
+
* spacing: { xs: 4, sm: 8, md: 12, lg: 16, xl: 20, xxl: 24, xxxl: 40 },
|
|
52
|
+
* borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },
|
|
53
|
+
* });
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* // Seed-based palette generation (recommended for M3 compliance)
|
|
57
|
+
* const generatedBrand = createBrand({
|
|
58
|
+
* name: 'My App',
|
|
59
|
+
* colors: { colorSeed: { primary: '#6750A4' } },
|
|
60
|
+
* spacing: { xs: 4, sm: 8, md: 12, lg: 16, xl: 20, xxl: 24, xxxl: 40 },
|
|
61
|
+
* borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },
|
|
62
|
+
* });
|
|
63
|
+
*/
|
|
64
|
+
export declare const createBrand: (config: BrandConfig) => Brand;
|
|
65
|
+
//# sourceMappingURL=brand-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-config.d.ts","sourceRoot":"","sources":["../../brand/brand-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACtH,OAAO,EAA2C,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEnG,MAAM,WAAW,KAAK;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,EAAE,UAAU,CAAC;IACjB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,gBAAgB,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,cAAc,CAAA;KAAE,CAAC;IAC/C,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,GAAG;QAAE,SAAS,EAAE,cAAc,CAAA;KAAE,CAAC;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B;AASD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,WAAW,KAAG,KAmCjD,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { generateLightColors, generateDarkColors } from './palette-generator';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if colors config uses seed-based generation
|
|
4
|
+
*/
|
|
5
|
+
function isColorSeed(colors) {
|
|
6
|
+
return 'colorSeed' in colors && colors.colorSeed !== undefined;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Creates a brand configuration from the provided config.
|
|
10
|
+
* Supports both manual color specification and automatic M3 palette generation.
|
|
11
|
+
*
|
|
12
|
+
* @param config Configuration with brand values
|
|
13
|
+
* @returns Brand configuration object with generated or manual colors
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* // Manual color specification
|
|
17
|
+
* const manualBrand = createBrand({
|
|
18
|
+
* name: 'My App',
|
|
19
|
+
* colors: { primary: '#ff0000', secondary: '#00ff00', ... },
|
|
20
|
+
* spacing: { xs: 4, sm: 8, md: 12, lg: 16, xl: 20, xxl: 24, xxxl: 40 },
|
|
21
|
+
* borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },
|
|
22
|
+
* });
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* // Seed-based palette generation (recommended for M3 compliance)
|
|
26
|
+
* const generatedBrand = createBrand({
|
|
27
|
+
* name: 'My App',
|
|
28
|
+
* colors: { colorSeed: { primary: '#6750A4' } },
|
|
29
|
+
* spacing: { xs: 4, sm: 8, md: 12, lg: 16, xl: 20, xxl: 24, xxxl: 40 },
|
|
30
|
+
* borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },
|
|
31
|
+
* });
|
|
32
|
+
*/
|
|
33
|
+
export const createBrand = (config) => {
|
|
34
|
+
// Resolve light theme colors
|
|
35
|
+
const lightColors = isColorSeed(config.colors)
|
|
36
|
+
? generateLightColors(config.colors.colorSeed)
|
|
37
|
+
: config.colors;
|
|
38
|
+
// Resolve dark theme colors
|
|
39
|
+
let darkColors;
|
|
40
|
+
if (config.darkColors) {
|
|
41
|
+
darkColors = isColorSeed(config.darkColors)
|
|
42
|
+
? generateDarkColors(config.darkColors.colorSeed)
|
|
43
|
+
: config.darkColors;
|
|
44
|
+
}
|
|
45
|
+
else if (isColorSeed(config.colors)) {
|
|
46
|
+
// Auto-generate dark theme from the same seed
|
|
47
|
+
darkColors = generateDarkColors(config.colors.colorSeed);
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
name: config.name,
|
|
51
|
+
colors: lightColors,
|
|
52
|
+
darkColors,
|
|
53
|
+
spacing: config.spacing,
|
|
54
|
+
borderRadius: config.borderRadius,
|
|
55
|
+
shape: config.shape ?? { surfaceBorderRadius: 12, buttonBorderRadius: 8 },
|
|
56
|
+
logo: config.logo ?? {
|
|
57
|
+
light: undefined,
|
|
58
|
+
dark: undefined,
|
|
59
|
+
},
|
|
60
|
+
footerLinks: config.footerLinks ?? {
|
|
61
|
+
links: [],
|
|
62
|
+
},
|
|
63
|
+
navigation: config.navigation ?? {
|
|
64
|
+
items: [],
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=brand-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-config.js","sourceRoot":"","sources":["../../brand/brand-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAuB,MAAM,qBAAqB,CAAC;AAoCnG;;GAEG;AACH,SAAS,WAAW,CAAC,MAA8C;IACjE,OAAO,WAAW,IAAI,MAAM,IAAI,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC;AACjE,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,MAAmB,EAAS,EAAE;IACxD,6BAA6B;IAC7B,MAAM,WAAW,GAAW,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;QACpD,CAAC,CAAC,mBAAmB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC;QAC9C,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC;IAElB,4BAA4B;IAC5B,IAAI,UAA8B,CAAC;IACnC,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;QACtB,UAAU,GAAG,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC;YACzC,CAAC,CAAC,kBAAkB,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC;YACjD,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC;IACxB,CAAC;SAAM,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,8CAA8C;QAC9C,UAAU,GAAG,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,MAAM,EAAE,WAAW;QACnB,UAAU;QACV,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,mBAAmB,EAAE,EAAE,EAAE,kBAAkB,EAAE,CAAC,EAAE;QACzE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI;YACnB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE,SAAS;SAChB;QACD,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI;YACjC,KAAK,EAAE,EAAE;SACV;QACD,UAAU,EAAE,MAAM,CAAC,UAAU,IAAI;YAC/B,KAAK,EAAE,EAAE;SACV;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Brand } from './brand-config';
|
|
3
|
+
type BrandProviderProps = {
|
|
4
|
+
brand: Brand;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const BrandProvider: ({ brand, children }: BrandProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the current brand configuration.
|
|
10
|
+
* Must be used within a `<ZeroToApp>` or `<BrandProvider>` provider.
|
|
11
|
+
*
|
|
12
|
+
* @returns The brand configuration containing colors, spacing, logo, etc.
|
|
13
|
+
* @throws Error if used outside of a ZeroToApp or BrandProvider
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* function MyHeader() {
|
|
18
|
+
* const { values: theme } = useThemeContext();
|
|
19
|
+
* const brand = useBrandConfig();
|
|
20
|
+
*
|
|
21
|
+
* return (
|
|
22
|
+
* <View style={{ padding: theme.spacing.md }}>
|
|
23
|
+
* <Image source={brand.logo.light} />
|
|
24
|
+
* <Text style={{ color: theme.primary }}>
|
|
25
|
+
* {brand.name}
|
|
26
|
+
* </Text>
|
|
27
|
+
* </View>
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* // Access brand colors directly (Internal use)
|
|
35
|
+
* function ColoredBox() {
|
|
36
|
+
* const { values: theme } = useThemeContext();
|
|
37
|
+
* const { colors } = useBrandConfig();
|
|
38
|
+
*
|
|
39
|
+
* return (
|
|
40
|
+
* <View style={{
|
|
41
|
+
* backgroundColor: colors.primaryContainer,
|
|
42
|
+
* padding: theme.spacing.lg,
|
|
43
|
+
* borderRadius: theme.borderRadius.sm,
|
|
44
|
+
* }}>
|
|
45
|
+
* <Text style={{ color: colors.onPrimaryContainer }}>
|
|
46
|
+
* Brand colored content
|
|
47
|
+
* </Text>
|
|
48
|
+
* </View>
|
|
49
|
+
* );
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare const useBrandConfig: () => Brand;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=brand-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-context.d.ts","sourceRoot":"","sources":["../../brand/brand-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AASvC,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,4CAEpE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,cAAc,QAAO,KA0BjC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
3
|
+
// Create the context
|
|
4
|
+
const BrandContext = createContext(undefined);
|
|
5
|
+
export const BrandProvider = ({ brand, children }) => {
|
|
6
|
+
return _jsx(BrandContext.Provider, { value: brand, children: children });
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Hook to access the current brand configuration.
|
|
10
|
+
* Must be used within a `<ZeroToApp>` or `<BrandProvider>` provider.
|
|
11
|
+
*
|
|
12
|
+
* @returns The brand configuration containing colors, spacing, logo, etc.
|
|
13
|
+
* @throws Error if used outside of a ZeroToApp or BrandProvider
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* function MyHeader() {
|
|
18
|
+
* const { values: theme } = useThemeContext();
|
|
19
|
+
* const brand = useBrandConfig();
|
|
20
|
+
*
|
|
21
|
+
* return (
|
|
22
|
+
* <View style={{ padding: theme.spacing.md }}>
|
|
23
|
+
* <Image source={brand.logo.light} />
|
|
24
|
+
* <Text style={{ color: theme.primary }}>
|
|
25
|
+
* {brand.name}
|
|
26
|
+
* </Text>
|
|
27
|
+
* </View>
|
|
28
|
+
* );
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* // Access brand colors directly (Internal use)
|
|
35
|
+
* function ColoredBox() {
|
|
36
|
+
* const { values: theme } = useThemeContext();
|
|
37
|
+
* const { colors } = useBrandConfig();
|
|
38
|
+
*
|
|
39
|
+
* return (
|
|
40
|
+
* <View style={{
|
|
41
|
+
* backgroundColor: colors.primaryContainer,
|
|
42
|
+
* padding: theme.spacing.lg,
|
|
43
|
+
* borderRadius: theme.borderRadius.sm,
|
|
44
|
+
* }}>
|
|
45
|
+
* <Text style={{ color: colors.onPrimaryContainer }}>
|
|
46
|
+
* Brand colored content
|
|
47
|
+
* </Text>
|
|
48
|
+
* </View>
|
|
49
|
+
* );
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export const useBrandConfig = () => {
|
|
54
|
+
const context = useContext(BrandContext);
|
|
55
|
+
if (context === undefined) {
|
|
56
|
+
throw new Error('useBrandConfig must be used within a <ZeroToApp> provider.\n\n' +
|
|
57
|
+
'Make sure your component is inside a ZeroToApp provider:\n\n' +
|
|
58
|
+
' import { ZeroToApp, createBrand } from "zero-to-app";\n\n' +
|
|
59
|
+
' const brand = createBrand({\n' +
|
|
60
|
+
' name: "My App",\n' +
|
|
61
|
+
' colors: { colorSeed: { primary: "#6750A4" } },\n' +
|
|
62
|
+
' spacing: { xs: 4, sm: 8, md: 12, lg: 16, xl: 20, xxl: 24, xxxl: 40 },\n' +
|
|
63
|
+
' borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },\n' +
|
|
64
|
+
' shape: { surfaceBorderRadius: 12, buttonBorderRadius: 8 },\n' +
|
|
65
|
+
' });\n\n' +
|
|
66
|
+
' function App() {\n' +
|
|
67
|
+
' return (\n' +
|
|
68
|
+
' <ZeroToApp brand={brand}>\n' +
|
|
69
|
+
' <YourComponent />\n' +
|
|
70
|
+
' </ZeroToApp>\n' +
|
|
71
|
+
' );\n' +
|
|
72
|
+
' }');
|
|
73
|
+
}
|
|
74
|
+
return context;
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=brand-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-context.js","sourceRoot":"","sources":["../../brand/brand-context.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAMzD,qBAAqB;AACrB,MAAM,YAAY,GAAG,aAAa,CAA+B,SAAS,CAAC,CAAC;AAQ5E,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAsB,EAAE,EAAE;IACvE,OAAO,KAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YAAG,QAAQ,GAAyB,CAAC;AACjF,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAU,EAAE;IACxC,MAAM,OAAO,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC;IAEzC,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CACb,gEAAgE;YAC9D,8DAA8D;YAC9D,6DAA6D;YAC7D,iCAAiC;YACjC,uBAAuB;YACvB,sDAAsD;YACtD,6EAA6E;YAC7E,2EAA2E;YAC3E,kEAAkE;YAClE,WAAW;YACX,sBAAsB;YACtB,gBAAgB;YAChB,mCAAmC;YACnC,6BAA6B;YAC7B,sBAAsB;YACtB,UAAU;YACV,KAAK,CACR,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ImageSourcePropType } from 'react-native';
|
|
2
|
+
export type Name = string;
|
|
3
|
+
export interface Shape {
|
|
4
|
+
surfaceBorderRadius: number;
|
|
5
|
+
buttonBorderRadius: number;
|
|
6
|
+
}
|
|
7
|
+
export interface BorderRadius {
|
|
8
|
+
xs: number;
|
|
9
|
+
sm: number;
|
|
10
|
+
md: number;
|
|
11
|
+
lg: number;
|
|
12
|
+
xl: number;
|
|
13
|
+
full: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Material Design 3 color tokens - 26 core tokens
|
|
17
|
+
* All colors should be accessible with minimum 3:1 contrast for text on colors
|
|
18
|
+
* Reference: https://m3.material.io/styles/color/the-color-system/color-roles
|
|
19
|
+
*/
|
|
20
|
+
export interface Colors {
|
|
21
|
+
primary: string;
|
|
22
|
+
onPrimary: string;
|
|
23
|
+
primaryContainer: string;
|
|
24
|
+
onPrimaryContainer: string;
|
|
25
|
+
secondary: string;
|
|
26
|
+
onSecondary: string;
|
|
27
|
+
secondaryContainer: string;
|
|
28
|
+
onSecondaryContainer: string;
|
|
29
|
+
tertiary: string;
|
|
30
|
+
onTertiary: string;
|
|
31
|
+
tertiaryContainer: string;
|
|
32
|
+
onTertiaryContainer: string;
|
|
33
|
+
error: string;
|
|
34
|
+
onError: string;
|
|
35
|
+
errorContainer: string;
|
|
36
|
+
onErrorContainer: string;
|
|
37
|
+
surface: string;
|
|
38
|
+
onSurface: string;
|
|
39
|
+
onSurfaceVariant: string;
|
|
40
|
+
surfaceContainerLowest: string;
|
|
41
|
+
surfaceContainerLow: string;
|
|
42
|
+
surfaceContainer: string;
|
|
43
|
+
surfaceContainerHigh: string;
|
|
44
|
+
surfaceContainerHighest: string;
|
|
45
|
+
outline: string;
|
|
46
|
+
outlineVariant: string;
|
|
47
|
+
inverseSurface: string;
|
|
48
|
+
inverseOnSurface: string;
|
|
49
|
+
inversePrimary: string;
|
|
50
|
+
scrim: string;
|
|
51
|
+
shadow: string;
|
|
52
|
+
}
|
|
53
|
+
export interface Spacing {
|
|
54
|
+
xs: number;
|
|
55
|
+
sm: number;
|
|
56
|
+
md: number;
|
|
57
|
+
lg: number;
|
|
58
|
+
xl: number;
|
|
59
|
+
xxl: number;
|
|
60
|
+
xxxl: number;
|
|
61
|
+
}
|
|
62
|
+
export type LogoSource = ImageSourcePropType | string;
|
|
63
|
+
export interface LogoConfig {
|
|
64
|
+
light?: LogoSource;
|
|
65
|
+
dark?: LogoSource;
|
|
66
|
+
}
|
|
67
|
+
export interface FooterLink {
|
|
68
|
+
text: string;
|
|
69
|
+
route: string;
|
|
70
|
+
}
|
|
71
|
+
export interface FooterLinks {
|
|
72
|
+
links: FooterLink[];
|
|
73
|
+
aboutText?: string;
|
|
74
|
+
}
|
|
75
|
+
export type IconLibrary = 'Feather' | 'MaterialIcons' | 'Ionicons' | 'FontAwesome' | 'AntDesign' | 'Entypo' | 'EvilIcons' | 'Foundation' | 'MaterialCommunityIcons' | 'Octicons' | 'SimpleLineIcons' | 'Zocial';
|
|
76
|
+
export interface PlatformIcon {
|
|
77
|
+
library?: IconLibrary;
|
|
78
|
+
name: string;
|
|
79
|
+
}
|
|
80
|
+
export interface NavigationIcon {
|
|
81
|
+
web?: PlatformIcon | string;
|
|
82
|
+
mobile?: PlatformIcon | string;
|
|
83
|
+
}
|
|
84
|
+
export interface NavigationItem {
|
|
85
|
+
route: string;
|
|
86
|
+
title: string;
|
|
87
|
+
icon: NavigationIcon;
|
|
88
|
+
}
|
|
89
|
+
export interface NavigationConfig {
|
|
90
|
+
items: NavigationItem[];
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=brand-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-types.d.ts","sourceRoot":"","sources":["../../brand/brand-types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brand-types.js","sourceRoot":"","sources":["../../brand/brand-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default brand configuration using Material Design 3 reference colors.
|
|
3
|
+
* Uses seed-based palette generation for automatic light/dark theme creation.
|
|
4
|
+
*
|
|
5
|
+
* Seed color: #6750A4 (Material Design 3 reference purple)
|
|
6
|
+
* This generates a complete, accessible color palette following M3 guidelines.
|
|
7
|
+
*
|
|
8
|
+
* Reference: https://m3.material.io/styles/color/the-color-system/color-roles
|
|
9
|
+
*/
|
|
10
|
+
export declare const defaultBrand: import("./brand-config").Brand;
|
|
11
|
+
//# sourceMappingURL=default-brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-brand.d.ts","sourceRoot":"","sources":["../../brand/default-brand.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,gCAoBvB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createBrand } from './brand-config';
|
|
2
|
+
/**
|
|
3
|
+
* Default brand configuration using Material Design 3 reference colors.
|
|
4
|
+
* Uses seed-based palette generation for automatic light/dark theme creation.
|
|
5
|
+
*
|
|
6
|
+
* Seed color: #6750A4 (Material Design 3 reference purple)
|
|
7
|
+
* This generates a complete, accessible color palette following M3 guidelines.
|
|
8
|
+
*
|
|
9
|
+
* Reference: https://m3.material.io/styles/color/the-color-system/color-roles
|
|
10
|
+
*/
|
|
11
|
+
export const defaultBrand = createBrand({
|
|
12
|
+
name: 'Zero to App',
|
|
13
|
+
// Use seed-based palette generation (recommended)
|
|
14
|
+
// This automatically generates all 26 M3 color tokens and matching dark theme
|
|
15
|
+
colors: {
|
|
16
|
+
colorSeed: {
|
|
17
|
+
primary: '#6750A4', // Material purple reference
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
spacing: {
|
|
21
|
+
xs: 4,
|
|
22
|
+
sm: 8,
|
|
23
|
+
md: 12,
|
|
24
|
+
lg: 16,
|
|
25
|
+
xl: 20,
|
|
26
|
+
xxl: 24,
|
|
27
|
+
xxxl: 40,
|
|
28
|
+
},
|
|
29
|
+
borderRadius: { xs: 4, sm: 8, md: 12, lg: 16, xl: 28, full: 9999 },
|
|
30
|
+
shape: { surfaceBorderRadius: 10, buttonBorderRadius: 9999 },
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=default-brand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-brand.js","sourceRoot":"","sources":["../../brand/default-brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACtC,IAAI,EAAE,aAAa;IACnB,kDAAkD;IAClD,8EAA8E;IAC9E,MAAM,EAAE;QACN,SAAS,EAAE;YACT,OAAO,EAAE,SAAS,EAAE,4BAA4B;SACjD;KACF;IACD,OAAO,EAAE;QACP,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,CAAC;QACL,EAAE,EAAE,EAAE;QACN,EAAE,EAAE,EAAE;QACN,EAAE,EAAE,EAAE;QACN,GAAG,EAAE,EAAE;QACP,IAAI,EAAE,EAAE;KACT;IACD,YAAY,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAClE,KAAK,EAAE,EAAE,mBAAmB,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;CAC7D,CAAC,CAAC"}
|
package/dist/brand/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export { createBrand, type Brand, type BrandConfig } from './
|
|
2
|
-
export * from './
|
|
3
|
-
export {
|
|
1
|
+
export { createBrand, type Brand, type BrandConfig } from './brand-config';
|
|
2
|
+
export * from './brand-types';
|
|
3
|
+
export { useBrandConfig, BrandProvider } from './brand-context';
|
|
4
|
+
export { defaultBrand } from './default-brand';
|
|
5
|
+
export { generateLightColors, generateDarkColors, contrastRatio, hasContrastRatio, generateHighContrastColors, type PaletteOptions, } from './palette-generator';
|
|
4
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../brand/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../brand/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3E,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,0BAA0B,EAC1B,KAAK,cAAc,GACpB,MAAM,qBAAqB,CAAC"}
|
package/dist/brand/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// Export brand from local files
|
|
2
|
-
export { createBrand } from './
|
|
3
|
-
export * from './
|
|
4
|
-
export {
|
|
2
|
+
export { createBrand } from './brand-config';
|
|
3
|
+
export * from './brand-types';
|
|
4
|
+
export { useBrandConfig, BrandProvider } from './brand-context';
|
|
5
|
+
export { defaultBrand } from './default-brand';
|
|
6
|
+
// Material Color Utilities
|
|
7
|
+
export { generateLightColors, generateDarkColors, contrastRatio, hasContrastRatio, generateHighContrastColors, } from './palette-generator';
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/dist/brand/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../brand/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAgC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../brand/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,EAAE,WAAW,EAAgC,MAAM,gBAAgB,CAAC;AAC3E,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,2BAA2B;AAC3B,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,0BAA0B,GAE3B,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Material Design 3 Color Palette Generator
|
|
3
|
+
* Uses @material/material-color-utilities to generate tonal palettes from seed colors
|
|
4
|
+
* Reference: https://m3.material.io/styles/color/the-color-system/color-roles
|
|
5
|
+
*/
|
|
6
|
+
import { TonalPalette } from '@material/material-color-utilities';
|
|
7
|
+
import type { Colors } from './brand-types';
|
|
8
|
+
export interface PaletteOptions {
|
|
9
|
+
/** Seed color for primary palette (hex format) */
|
|
10
|
+
primary: string;
|
|
11
|
+
/** Optional seed color for secondary palette (generated from primary if not provided) */
|
|
12
|
+
secondary?: string;
|
|
13
|
+
/** Optional seed color for tertiary palette (generated from primary if not provided) */
|
|
14
|
+
tertiary?: string;
|
|
15
|
+
/** Optional seed color for error palette (uses M3 default if not provided) */
|
|
16
|
+
error?: string;
|
|
17
|
+
/** Optional seed color for neutral palette (generated from primary if not provided) */
|
|
18
|
+
neutral?: string;
|
|
19
|
+
/** Optional seed color for neutral variant palette (generated from primary if not provided) */
|
|
20
|
+
neutralVariant?: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Generates a complete Material Design 3 light theme color scheme from seed colors
|
|
24
|
+
* @param options Seed colors for generating palettes
|
|
25
|
+
* @returns Complete Colors object for light theme
|
|
26
|
+
*/
|
|
27
|
+
export declare function generateLightColors(options: PaletteOptions): Colors;
|
|
28
|
+
/**
|
|
29
|
+
* Generates a complete Material Design 3 dark theme color scheme from seed colors
|
|
30
|
+
* @param options Seed colors for generating palettes
|
|
31
|
+
* @returns Complete Colors object for dark theme
|
|
32
|
+
*/
|
|
33
|
+
export declare function generateDarkColors(options: PaletteOptions): Colors;
|
|
34
|
+
/**
|
|
35
|
+
* Compute the WCAG 2.1 contrast ratio between two hex colors.
|
|
36
|
+
* Returns a value between 1 (no contrast) and 21 (black on white).
|
|
37
|
+
* https://www.w3.org/TR/WCAG21/#dfn-contrast-ratio
|
|
38
|
+
*/
|
|
39
|
+
export declare function contrastRatio(foreground: string, background: string): number;
|
|
40
|
+
/**
|
|
41
|
+
* Check if two colors meet a minimum WCAG contrast ratio.
|
|
42
|
+
* @param foreground Foreground color (hex)
|
|
43
|
+
* @param background Background color (hex)
|
|
44
|
+
* @param minRatio Minimum contrast ratio (default: 4.5 for AA compliance)
|
|
45
|
+
* @returns true if contrast meets minimum ratio
|
|
46
|
+
*/
|
|
47
|
+
export declare function hasContrastRatio(foreground: string, background: string, minRatio?: number): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Generate high-contrast color adjustments
|
|
50
|
+
* Increases contrast for accessibility compliance
|
|
51
|
+
*/
|
|
52
|
+
export declare function generateHighContrastColors(baseColors: Colors): Colors;
|
|
53
|
+
/**
|
|
54
|
+
* Adapter: Convert a TonalPalette into a simple map of tones -> hex strings.
|
|
55
|
+
* This provides a stable, serializable shape consumers in the codebase expect
|
|
56
|
+
* (e.g. lookups by tone value) and isolates callers from potential upstream
|
|
57
|
+
* API changes in the material-color-utilities package.
|
|
58
|
+
*/
|
|
59
|
+
export declare function tonalPaletteToHexMap(palette: TonalPalette): Record<number, string>;
|
|
60
|
+
/**
|
|
61
|
+
* Helper: generate a hex-map directly from a seed color
|
|
62
|
+
*/
|
|
63
|
+
export declare function generateTonalHexMapFromSeed(seedColor: string): Record<number, string>;
|
|
64
|
+
//# sourceMappingURL=palette-generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette-generator.d.ts","sourceRoot":"","sources":["../../brand/palette-generator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,YAAY,EAEb,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAmED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAuEnE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,MAAM,CAuElE;AAeD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,QAAQ,GAAE,MAAY,GACrB,OAAO,CAET;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAiBrE;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWlF;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAGrF"}
|