@pixelated-tech/components 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +231 -0
- package/dist/components/buzzwordbingo/buzzwordbingo.css +42 -0
- package/dist/components/buzzwordbingo/buzzwordbingo.js +35 -0
- package/dist/components/callout/callout.js +95 -0
- package/dist/components/callout/callout.scss +331 -0
- package/dist/components/carousel/carousel.css +178 -0
- package/dist/components/carousel/carousel.drag.js +203 -0
- package/dist/components/carousel/carousel.js +124 -0
- package/dist/components/cms/calendly.js +20 -0
- package/dist/components/cms/cloudinary.image.js +132 -0
- package/dist/components/cms/cloudinary.js +106 -0
- package/dist/components/cms/contentful.delivery.js +247 -0
- package/dist/components/cms/contentful.items.components.js +243 -0
- package/dist/components/cms/contentful.items.css +131 -0
- package/dist/components/cms/contentful.management.js +254 -0
- package/dist/components/cms/flickr.js +160 -0
- package/dist/components/cms/google.reviews.components.js +36 -0
- package/dist/components/cms/google.reviews.functions.js +26 -0
- package/dist/components/cms/gravatar.components.js +41 -0
- package/dist/components/cms/gravatar.functions.js +52 -0
- package/dist/components/cms/hubspot.components.js +45 -0
- package/dist/components/cms/hubspot.js +34 -0
- package/dist/components/cms/instagram.components.js +40 -0
- package/dist/components/cms/instagram.functions.js +67 -0
- package/dist/components/cms/wordpress.components.js +47 -0
- package/dist/components/cms/wordpress.css +55 -0
- package/dist/components/cms/wordpress.functions.js +49 -0
- package/dist/components/config/config.client.js +22 -0
- package/dist/components/config/config.example.js +70 -0
- package/dist/components/config/config.js +53 -0
- package/dist/components/config/config.server.js +11 -0
- package/dist/components/config/config.types.js +2 -0
- package/dist/components/general/css.js +60 -0
- package/dist/components/general/headers.css +16 -0
- package/dist/components/general/headers.js +27 -0
- package/dist/components/general/image.js +81 -0
- package/dist/components/general/layout.js +147 -0
- package/dist/components/general/layout.scss +47 -0
- package/dist/components/general/loading.js +36 -0
- package/dist/components/general/loading.scss +80 -0
- package/dist/components/general/microinteractions.css +229 -0
- package/dist/components/general/microinteractions.js +87 -0
- package/dist/components/general/modal.css +65 -0
- package/dist/components/general/modal.js +52 -0
- package/dist/components/general/table.css +73 -0
- package/dist/components/general/table.js +108 -0
- package/dist/components/linkedin/pixelated.linkedin.js +180 -0
- package/dist/components/linkedin/pixelated.linkedin1.js +102 -0
- package/dist/components/linkedin/pixelated.linkedin2.js +92 -0
- package/dist/components/markdown/markdown.css +12 -0
- package/dist/components/markdown/markdown.js +39 -0
- package/dist/components/menu/menu-accordion.css +198 -0
- package/dist/components/menu/menu-accordion.js +183 -0
- package/dist/components/menu/menu-expando.css +127 -0
- package/dist/components/menu/menu-expando.js +48 -0
- package/dist/components/menu/menu-simple.css +76 -0
- package/dist/components/menu/menu-simple.js +56 -0
- package/dist/components/nerdjoke/nerdjoke.css +69 -0
- package/dist/components/nerdjoke/nerdjoke.js +95 -0
- package/dist/components/pagebuilder/components/ComponentPropertiesForm.js +15 -0
- package/dist/components/pagebuilder/components/ComponentSelector.js +67 -0
- package/dist/components/pagebuilder/components/ComponentTree.js +95 -0
- package/dist/components/pagebuilder/components/PageBuilderUI.js +48 -0
- package/dist/components/pagebuilder/components/PageEngine.js +97 -0
- package/dist/components/pagebuilder/components/SaveLoadSection.js +168 -0
- package/dist/components/pagebuilder/components/pagebuilder.scss +123 -0
- package/dist/components/pagebuilder/form/form.css +101 -0
- package/dist/components/pagebuilder/form/form.js +455 -0
- package/dist/components/pagebuilder/form/form.submit.js +65 -0
- package/dist/components/pagebuilder/form/formcomponents.js +359 -0
- package/dist/components/pagebuilder/form/formvalidations.js +80 -0
- package/dist/components/pagebuilder/lib/componentGeneration.js +105 -0
- package/dist/components/pagebuilder/lib/componentMap.js +32 -0
- package/dist/components/pagebuilder/lib/componentMetadata.js +146 -0
- package/dist/components/pagebuilder/lib/pageStorageContentful.js +142 -0
- package/dist/components/pagebuilder/lib/pageStorageLocal.js +143 -0
- package/dist/components/pagebuilder/lib/pageStorageTypes.js +1 -0
- package/dist/components/pagebuilder/lib/propTypeIntrospection.js +177 -0
- package/dist/components/pagebuilder/lib/types.js +4 -0
- package/dist/components/pagebuilder/lib/usePageBuilder.js +234 -0
- package/dist/components/recipe/recipe.css +107 -0
- package/dist/components/recipe/recipe.js +161 -0
- package/dist/components/resume/resume.css +162 -0
- package/dist/components/resume/resume.js +195 -0
- package/dist/components/seo/404.css +25 -0
- package/dist/components/seo/404.js +32 -0
- package/dist/components/seo/googleanalytics.js +70 -0
- package/dist/components/seo/googlemap.js +15 -0
- package/dist/components/seo/googlesearch.css +30 -0
- package/dist/components/seo/googlesearch.js +37 -0
- package/dist/components/seo/metadata.js +156 -0
- package/dist/components/seo/sitemap.js +171 -0
- package/dist/components/shoppingcart/ebay.components.js +203 -0
- package/dist/components/shoppingcart/ebay.css +131 -0
- package/dist/components/shoppingcart/ebay.functions.js +240 -0
- package/dist/components/shoppingcart/paypal.js +169 -0
- package/dist/components/shoppingcart/shoppingcart.components.js +257 -0
- package/dist/components/shoppingcart/shoppingcart.css +122 -0
- package/dist/components/shoppingcart/shoppingcart.functions.js +324 -0
- package/dist/components/sidepanel/sidepanel.css +129 -0
- package/dist/components/sidepanel/sidepanel.js +54 -0
- package/dist/components/socialcard/socialcard.css +118 -0
- package/dist/components/socialcard/socialcard.js +317 -0
- package/dist/components/tiles/tiles.css +77 -0
- package/dist/components/tiles/tiles.js +38 -0
- package/dist/components/timeline/timeline.css +139 -0
- package/dist/components/timeline/timeline.js +28 -0
- package/dist/components/utilities/api.js +36 -0
- package/dist/components/utilities/functions.js +98 -0
- package/dist/components/yelp/yelp.js +50 -0
- package/dist/css/pixelated.font.scss +68 -0
- package/dist/css/pixelated.global.css +548 -0
- package/dist/css/pixelated.grid.scss +82 -0
- package/dist/data/404-data.json +104 -0
- package/dist/data/buzzwords.js +28 -0
- package/dist/data/form.json +370 -0
- package/dist/data/recipes.json +1917 -0
- package/dist/data/references.json +139 -0
- package/dist/data/requests.json +137 -0
- package/dist/data/resume.json +2577 -0
- package/dist/data/routes.json +184 -0
- package/dist/data/routes2.json +117 -0
- package/dist/data/shipping.to.json +422 -0
- package/dist/index.js +78 -0
- package/dist/index.server.js +35 -0
- package/dist/types/components/buzzwordbingo/buzzwordbingo.d.ts +26 -0
- package/dist/types/components/buzzwordbingo/buzzwordbingo.d.ts.map +1 -0
- package/dist/types/components/callout/callout.d.ts +53 -0
- package/dist/types/components/callout/callout.d.ts.map +1 -0
- package/dist/types/components/carousel/carousel.d.ts +28 -0
- package/dist/types/components/carousel/carousel.d.ts.map +1 -0
- package/dist/types/components/carousel/carousel.drag.d.ts +12 -0
- package/dist/types/components/carousel/carousel.drag.d.ts.map +1 -0
- package/dist/types/components/cms/calendly.d.ts +11 -0
- package/dist/types/components/cms/calendly.d.ts.map +1 -0
- package/dist/types/components/cms/cloudinary.d.ts +27 -0
- package/dist/types/components/cms/cloudinary.d.ts.map +1 -0
- package/dist/types/components/cms/cloudinary.image.d.ts +56 -0
- package/dist/types/components/cms/cloudinary.image.d.ts.map +1 -0
- package/dist/types/components/cms/contentful.delivery.d.ts +149 -0
- package/dist/types/components/cms/contentful.delivery.d.ts.map +1 -0
- package/dist/types/components/cms/contentful.items.components.d.ts +38 -0
- package/dist/types/components/cms/contentful.items.components.d.ts.map +1 -0
- package/dist/types/components/cms/contentful.management.d.ts +71 -0
- package/dist/types/components/cms/contentful.management.d.ts.map +1 -0
- package/dist/types/components/cms/flickr.d.ts +39 -0
- package/dist/types/components/cms/flickr.d.ts.map +1 -0
- package/dist/types/components/cms/google.reviews.components.d.ts +7 -0
- package/dist/types/components/cms/google.reviews.components.d.ts.map +1 -0
- package/dist/types/components/cms/google.reviews.functions.d.ts +25 -0
- package/dist/types/components/cms/google.reviews.functions.d.ts.map +1 -0
- package/dist/types/components/cms/gravatar.components.d.ts +26 -0
- package/dist/types/components/cms/gravatar.components.d.ts.map +1 -0
- package/dist/types/components/cms/gravatar.functions.d.ts +53 -0
- package/dist/types/components/cms/gravatar.functions.d.ts.map +1 -0
- package/dist/types/components/cms/hubspot.components.d.ts +15 -0
- package/dist/types/components/cms/hubspot.components.d.ts.map +1 -0
- package/dist/types/components/cms/hubspot.d.ts +18 -0
- package/dist/types/components/cms/hubspot.d.ts.map +1 -0
- package/dist/types/components/cms/instagram.components.d.ts +10 -0
- package/dist/types/components/cms/instagram.components.d.ts.map +1 -0
- package/dist/types/components/cms/instagram.functions.d.ts +63 -0
- package/dist/types/components/cms/instagram.functions.d.ts.map +1 -0
- package/dist/types/components/cms/wordpress.components.d.ts +11 -0
- package/dist/types/components/cms/wordpress.components.d.ts.map +1 -0
- package/dist/types/components/cms/wordpress.functions.d.ts +28 -0
- package/dist/types/components/cms/wordpress.functions.d.ts.map +1 -0
- package/dist/types/components/config/config.client.d.ts +13 -0
- package/dist/types/components/config/config.client.d.ts.map +1 -0
- package/dist/types/components/config/config.d.ts +12 -0
- package/dist/types/components/config/config.d.ts.map +1 -0
- package/dist/types/components/config/config.example.d.ts +4 -0
- package/dist/types/components/config/config.example.d.ts.map +1 -0
- package/dist/types/components/config/config.server.d.ts +7 -0
- package/dist/types/components/config/config.server.d.ts.map +1 -0
- package/dist/types/components/config/config.types.d.ts +84 -0
- package/dist/types/components/config/config.types.d.ts.map +1 -0
- package/dist/types/components/general/css.d.ts +3 -0
- package/dist/types/components/general/css.d.ts.map +1 -0
- package/dist/types/components/general/headers.d.ts +19 -0
- package/dist/types/components/general/headers.d.ts.map +1 -0
- package/dist/types/components/general/image.d.ts +3 -0
- package/dist/types/components/general/image.d.ts.map +1 -0
- package/dist/types/components/general/layout.d.ts +73 -0
- package/dist/types/components/general/layout.d.ts.map +1 -0
- package/dist/types/components/general/loading.d.ts +11 -0
- package/dist/types/components/general/loading.d.ts.map +1 -0
- package/dist/types/components/general/microinteractions.d.ts +20 -0
- package/dist/types/components/general/microinteractions.d.ts.map +1 -0
- package/dist/types/components/general/modal.d.ts +8 -0
- package/dist/types/components/general/modal.d.ts.map +1 -0
- package/dist/types/components/general/table.d.ts +12 -0
- package/dist/types/components/general/table.d.ts.map +1 -0
- package/dist/types/components/linkedin/pixelated.linkedin.d.ts +2 -0
- package/dist/types/components/linkedin/pixelated.linkedin.d.ts.map +1 -0
- package/dist/types/components/linkedin/pixelated.linkedin1.d.ts +2 -0
- package/dist/types/components/linkedin/pixelated.linkedin1.d.ts.map +1 -0
- package/dist/types/components/linkedin/pixelated.linkedin2.d.ts +2 -0
- package/dist/types/components/linkedin/pixelated.linkedin2.d.ts.map +1 -0
- package/dist/types/components/markdown/markdown.d.ts +12 -0
- package/dist/types/components/markdown/markdown.d.ts.map +1 -0
- package/dist/types/components/menu/menu-accordion.d.ts +44 -0
- package/dist/types/components/menu/menu-accordion.d.ts.map +1 -0
- package/dist/types/components/menu/menu-expando.d.ts +20 -0
- package/dist/types/components/menu/menu-expando.d.ts.map +1 -0
- package/dist/types/components/menu/menu-simple.d.ts +28 -0
- package/dist/types/components/menu/menu-simple.d.ts.map +1 -0
- package/dist/types/components/nerdjoke/nerdjoke.d.ts +23 -0
- package/dist/types/components/nerdjoke/nerdjoke.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/ComponentPropertiesForm.d.ts +11 -0
- package/dist/types/components/pagebuilder/components/ComponentPropertiesForm.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/ComponentSelector.d.ts +15 -0
- package/dist/types/components/pagebuilder/components/ComponentSelector.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/ComponentTree.d.ts +17 -0
- package/dist/types/components/pagebuilder/components/ComponentTree.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/PageBuilderUI.d.ts +10 -0
- package/dist/types/components/pagebuilder/components/PageBuilderUI.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/PageEngine.d.ts +23 -0
- package/dist/types/components/pagebuilder/components/PageEngine.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/components/SaveLoadSection.d.ts +12 -0
- package/dist/types/components/pagebuilder/components/SaveLoadSection.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/form/form.d.ts +46 -0
- package/dist/types/components/pagebuilder/form/form.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/form/form.submit.d.ts +3 -0
- package/dist/types/components/pagebuilder/form/form.submit.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/form/formcomponents.d.ts +205 -0
- package/dist/types/components/pagebuilder/form/formcomponents.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/form/formvalidations.d.ts +29 -0
- package/dist/types/components/pagebuilder/form/formvalidations.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/componentGeneration.d.ts +17 -0
- package/dist/types/components/pagebuilder/lib/componentGeneration.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/componentMap.d.ts +25 -0
- package/dist/types/components/pagebuilder/lib/componentMap.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/componentMetadata.d.ts +22 -0
- package/dist/types/components/pagebuilder/lib/componentMetadata.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/pageStorageContentful.d.ts +25 -0
- package/dist/types/components/pagebuilder/lib/pageStorageContentful.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/pageStorageLocal.d.ts +23 -0
- package/dist/types/components/pagebuilder/lib/pageStorageLocal.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/pageStorageTypes.d.ts +25 -0
- package/dist/types/components/pagebuilder/lib/pageStorageTypes.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/propTypeIntrospection.d.ts +24 -0
- package/dist/types/components/pagebuilder/lib/propTypeIntrospection.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/types.d.ts +34 -0
- package/dist/types/components/pagebuilder/lib/types.d.ts.map +1 -0
- package/dist/types/components/pagebuilder/lib/usePageBuilder.d.ts +24 -0
- package/dist/types/components/pagebuilder/lib/usePageBuilder.d.ts.map +1 -0
- package/dist/types/components/recipe/recipe.d.ts +66 -0
- package/dist/types/components/recipe/recipe.d.ts.map +1 -0
- package/dist/types/components/resume/resume.d.ts +85 -0
- package/dist/types/components/resume/resume.d.ts.map +1 -0
- package/dist/types/components/seo/404.d.ts +10 -0
- package/dist/types/components/seo/404.d.ts.map +1 -0
- package/dist/types/components/seo/googleanalytics.d.ts +23 -0
- package/dist/types/components/seo/googleanalytics.d.ts.map +1 -0
- package/dist/types/components/seo/googlemap.d.ts +15 -0
- package/dist/types/components/seo/googlemap.d.ts.map +1 -0
- package/dist/types/components/seo/googlesearch.d.ts +10 -0
- package/dist/types/components/seo/googlesearch.d.ts.map +1 -0
- package/dist/types/components/seo/metadata.d.ts +35 -0
- package/dist/types/components/seo/metadata.d.ts.map +1 -0
- package/dist/types/components/seo/sitemap.d.ts +47 -0
- package/dist/types/components/seo/sitemap.d.ts.map +1 -0
- package/dist/types/components/shoppingcart/ebay.components.d.ts +46 -0
- package/dist/types/components/shoppingcart/ebay.components.d.ts.map +1 -0
- package/dist/types/components/shoppingcart/ebay.functions.d.ts +76 -0
- package/dist/types/components/shoppingcart/ebay.functions.d.ts.map +1 -0
- package/dist/types/components/shoppingcart/paypal.d.ts +16 -0
- package/dist/types/components/shoppingcart/paypal.d.ts.map +1 -0
- package/dist/types/components/shoppingcart/shoppingcart.components.d.ts +35 -0
- package/dist/types/components/shoppingcart/shoppingcart.components.d.ts.map +1 -0
- package/dist/types/components/shoppingcart/shoppingcart.functions.d.ts +89 -0
- package/dist/types/components/shoppingcart/shoppingcart.functions.d.ts.map +1 -0
- package/dist/types/components/sidepanel/sidepanel.d.ts +18 -0
- package/dist/types/components/sidepanel/sidepanel.d.ts.map +1 -0
- package/dist/types/components/socialcard/socialcard.d.ts +20 -0
- package/dist/types/components/socialcard/socialcard.d.ts.map +1 -0
- package/dist/types/components/tiles/tiles.d.ts +28 -0
- package/dist/types/components/tiles/tiles.d.ts.map +1 -0
- package/dist/types/components/timeline/timeline.d.ts +31 -0
- package/dist/types/components/timeline/timeline.d.ts.map +1 -0
- package/dist/types/components/utilities/api.d.ts +16 -0
- package/dist/types/components/utilities/api.d.ts.map +1 -0
- package/dist/types/components/utilities/functions.d.ts +11 -0
- package/dist/types/components/utilities/functions.d.ts.map +1 -0
- package/dist/types/components/yelp/yelp.d.ts +5 -0
- package/dist/types/components/yelp/yelp.d.ts.map +1 -0
- package/dist/types/data/buzzwords.d.ts +2 -0
- package/dist/types/data/buzzwords.d.ts.map +1 -0
- package/dist/types/index.d.ts +76 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.server.d.ts +30 -0
- package/dist/types/index.server.d.ts.map +1 -0
- package/dist/types/stories/buzzword-bingo.stories.d.ts +13 -0
- package/dist/types/stories/buzzword-bingo.stories.d.ts.map +1 -0
- package/dist/types/stories/callout.many.stories.d.ts +8 -0
- package/dist/types/stories/callout.many.stories.d.ts.map +1 -0
- package/dist/types/stories/callout.stories.d.ts +69 -0
- package/dist/types/stories/callout.stories.d.ts.map +1 -0
- package/dist/types/stories/carousel-hero.stories.d.ts +22 -0
- package/dist/types/stories/carousel-hero.stories.d.ts.map +1 -0
- package/dist/types/stories/carousel-reviews.stories.d.ts +38 -0
- package/dist/types/stories/carousel-reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/carousel-workportfolio.stories.d.ts +22 -0
- package/dist/types/stories/carousel-workportfolio.stories.d.ts.map +1 -0
- package/dist/types/stories/carousel.stories.d.ts +41 -0
- package/dist/types/stories/carousel.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.contentful.item.stories.d.ts +21 -0
- package/dist/types/stories/cms.contentful.item.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.contentful.items.stories.d.ts +20 -0
- package/dist/types/stories/cms.contentful.items.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.contentful.stories.d.ts +9 -0
- package/dist/types/stories/cms.contentful.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.google.reviews.stories.d.ts +11 -0
- package/dist/types/stories/cms.google.reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.gravatar.stories.d.ts +88 -0
- package/dist/types/stories/cms.gravatar.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.instagram.stories.d.ts +16 -0
- package/dist/types/stories/cms.instagram.stories.d.ts.map +1 -0
- package/dist/types/stories/cms.wordpress.stories.d.ts +26 -0
- package/dist/types/stories/cms.wordpress.stories.d.ts.map +1 -0
- package/dist/types/stories/general.headers.stories.d.ts +27 -0
- package/dist/types/stories/general.headers.stories.d.ts.map +1 -0
- package/dist/types/stories/general.loading.stories.d.ts +11 -0
- package/dist/types/stories/general.loading.stories.d.ts.map +1 -0
- package/dist/types/stories/general.microinteractions.stories.d.ts +9 -0
- package/dist/types/stories/general.microinteractions.stories.d.ts.map +1 -0
- package/dist/types/stories/general.modal.stories.d.ts +9 -0
- package/dist/types/stories/general.modal.stories.d.ts.map +1 -0
- package/dist/types/stories/general.table.stories.d.ts +15 -0
- package/dist/types/stories/general.table.stories.d.ts.map +1 -0
- package/dist/types/stories/layout.stories.d.ts +299 -0
- package/dist/types/stories/layout.stories.d.ts.map +1 -0
- package/dist/types/stories/markdown.stories.d.ts +13 -0
- package/dist/types/stories/markdown.stories.d.ts.map +1 -0
- package/dist/types/stories/menu-accordion.stories.d.ts +34 -0
- package/dist/types/stories/menu-accordion.stories.d.ts.map +1 -0
- package/dist/types/stories/menu-simple.stories.d.ts +43 -0
- package/dist/types/stories/menu-simple.stories.d.ts.map +1 -0
- package/dist/types/stories/nerdjoke.stories.d.ts +10 -0
- package/dist/types/stories/nerdjoke.stories.d.ts.map +1 -0
- package/dist/types/stories/pagebuilder.form-builder.stories.d.ts +10 -0
- package/dist/types/stories/pagebuilder.form-builder.stories.d.ts.map +1 -0
- package/dist/types/stories/pagebuilder.form-engine.stories.d.ts +16 -0
- package/dist/types/stories/pagebuilder.form-engine.stories.d.ts.map +1 -0
- package/dist/types/stories/pagebuilder.form-extractor.stories.d.ts +10 -0
- package/dist/types/stories/pagebuilder.form-extractor.stories.d.ts.map +1 -0
- package/dist/types/stories/pagebuilder.stories.d.ts +29 -0
- package/dist/types/stories/pagebuilder.stories.d.ts.map +1 -0
- package/dist/types/stories/pagebuilder.usageguide.stories.d.ts +29 -0
- package/dist/types/stories/pagebuilder.usageguide.stories.d.ts.map +1 -0
- package/dist/types/stories/pageengine.stories.d.ts +32 -0
- package/dist/types/stories/pageengine.stories.d.ts.map +1 -0
- package/dist/types/stories/recipe.stories.d.ts +16 -0
- package/dist/types/stories/recipe.stories.d.ts.map +1 -0
- package/dist/types/stories/resume.stories.d.ts +283 -0
- package/dist/types/stories/resume.stories.d.ts.map +1 -0
- package/dist/types/stories/seo.404.stories.d.ts +18 -0
- package/dist/types/stories/seo.404.stories.d.ts.map +1 -0
- package/dist/types/stories/seo.googleanalytics.stories.d.ts +12 -0
- package/dist/types/stories/seo.googleanalytics.stories.d.ts.map +1 -0
- package/dist/types/stories/seo.googlesearch.stories.d.ts +12 -0
- package/dist/types/stories/seo.googlesearch.stories.d.ts.map +1 -0
- package/dist/types/stories/seo.metadata.stories.d.ts +25 -0
- package/dist/types/stories/seo.metadata.stories.d.ts.map +1 -0
- package/dist/types/stories/seo.sitemap.stories.d.ts +8 -0
- package/dist/types/stories/seo.sitemap.stories.d.ts.map +1 -0
- package/dist/types/stories/shoppingcart.ebay.item.stories.d.ts +21 -0
- package/dist/types/stories/shoppingcart.ebay.item.stories.d.ts.map +1 -0
- package/dist/types/stories/shoppingcart.ebay.items.stories.d.ts +21 -0
- package/dist/types/stories/shoppingcart.ebay.items.stories.d.ts.map +1 -0
- package/dist/types/stories/shoppingcart.stories.d.ts +9 -0
- package/dist/types/stories/shoppingcart.stories.d.ts.map +1 -0
- package/dist/types/stories/sidepanel.stories.d.ts +85 -0
- package/dist/types/stories/sidepanel.stories.d.ts.map +1 -0
- package/dist/types/stories/socialcard.stories.d.ts +81 -0
- package/dist/types/stories/socialcard.stories.d.ts.map +1 -0
- package/dist/types/stories/tiles.stories.d.ts +9 -0
- package/dist/types/stories/tiles.stories.d.ts.map +1 -0
- package/dist/types/stories/timeline.stories.d.ts +19 -0
- package/dist/types/stories/timeline.stories.d.ts.map +1 -0
- package/dist/types/tests/pixelated.api.test.d.ts +2 -0
- package/dist/types/tests/pixelated.api.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.callout.test.d.ts +2 -0
- package/dist/types/tests/pixelated.callout.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.carousel.test.d.ts +2 -0
- package/dist/types/tests/pixelated.carousel.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.menu-accordion.test.d.ts +2 -0
- package/dist/types/tests/pixelated.menu-accordion.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.menu-simple.test.d.ts +2 -0
- package/dist/types/tests/pixelated.menu-simple.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.nerdjoke.test.d.ts +2 -0
- package/dist/types/tests/pixelated.nerdjoke.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.recipe.test.d.ts +2 -0
- package/dist/types/tests/pixelated.recipe.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.resume.test.d.ts +2 -0
- package/dist/types/tests/pixelated.resume.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.socialcard.test.d.ts +2 -0
- package/dist/types/tests/pixelated.socialcard.test.d.ts.map +1 -0
- package/package.json +136 -0
package/README.md
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
|
|
2
|
+
[![Contributors][contributors-shield]][contributors-url]
|
|
3
|
+
[![Forks][forks-shield]][forks-url]
|
|
4
|
+
[![Stargazers][stars-shield]][stars-url]
|
|
5
|
+
[![Issues][issues-shield]][issues-url]
|
|
6
|
+
[![MIT License][license-shield]][license-url]
|
|
7
|
+
[![LinkedIn][linkedin-shield]][linkedin-url]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
<!-- PROJECT LOGO -->
|
|
12
|
+
<br />
|
|
13
|
+
<div align="center">
|
|
14
|
+
<a href="https://github.com/brianwhaley/pixelated-components">
|
|
15
|
+
<img src="images/bg6.gif" alt="Logo" width="80" height="80">
|
|
16
|
+
</a>
|
|
17
|
+
|
|
18
|
+
<h3 align="center">Pixelated Components</h3>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
project_description
|
|
22
|
+
<br />
|
|
23
|
+
<a href="https://github.com/brianwhaley/pixelated-components"><strong>Explore the docs »</strong></a>
|
|
24
|
+
<br />
|
|
25
|
+
<br />
|
|
26
|
+
<a href="https://github.com/brianwhaley/pixelated-components">View Demo</a>
|
|
27
|
+
·
|
|
28
|
+
<a href="https://github.com/brianwhaley/pixelated-components/issues/new?labels=bug&template=bug-report---.md">Report Bug</a>
|
|
29
|
+
·
|
|
30
|
+
<a href="https://github.com/brianwhaley/pixelated-components/issues/new?labels=enhancement&template=feature-request---.md">Request Feature</a>
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<!-- ABOUT THE PROJECT -->
|
|
37
|
+
## About The Project
|
|
38
|
+
|
|
39
|
+
This is a library of components I have found useful to build web sites quickly.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Built With
|
|
44
|
+
|
|
45
|
+
* [![Next][Next.js]][Next-url]
|
|
46
|
+
* [![React][React.js]][React-url]
|
|
47
|
+
* [![Storybook][Storybook.js]][Storybook-url]
|
|
48
|
+
* [![Contentful][Contentful.com]][Contentful-url]
|
|
49
|
+
* [![Wordpress][Wordpress.com]][Wordpress-url]
|
|
50
|
+
* [![Github][Github.com]][Github-url]
|
|
51
|
+
* [![npm][npm.org]][npm-url]
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
<!-- GETTING STARTED -->
|
|
58
|
+
## Getting Started
|
|
59
|
+
|
|
60
|
+
This is an example of how you may give instructions on setting up your project locally.
|
|
61
|
+
To get a local copy up and running follow these simple example steps.
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
### Installation
|
|
65
|
+
|
|
66
|
+
1. Install NPM packages
|
|
67
|
+
```sh
|
|
68
|
+
npm install @brianwhaley/pixelated-components@latest
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
<!-- USAGE EXAMPLES -->
|
|
75
|
+
## Usage
|
|
76
|
+
|
|
77
|
+
Components to help build websites quicker:
|
|
78
|
+
1. Buzzword Bingo Cards
|
|
79
|
+
1. Page Callouts - Large and Small
|
|
80
|
+
1. Image Carousel - Page, Header, and Simple
|
|
81
|
+
1. Contentful CMS Integration
|
|
82
|
+
1. eBay Store Listings
|
|
83
|
+
1. Form Components and Form Builder
|
|
84
|
+
1. Google Search and Google Analytics Integration
|
|
85
|
+
1. Markdown to HTMl Engine
|
|
86
|
+
1. Menu Components - Simple and Accordion
|
|
87
|
+
1. Metadata Injection from Route JSON file
|
|
88
|
+
1. Modal Dialogs
|
|
89
|
+
1. NerdJokes Integration
|
|
90
|
+
1. Recipe XML MicroFormat Engine
|
|
91
|
+
1. Resume MicroFormat Engine
|
|
92
|
+
1. Sitemap.XML dynamic generation from Route JSON file
|
|
93
|
+
1. Social Card Engine
|
|
94
|
+
1. Table Components
|
|
95
|
+
1. Other Utilities
|
|
96
|
+
|
|
97
|
+
### Google Reviews (server-side)
|
|
98
|
+
- Requires: `GOOGLE_MAPS_API_KEY` (or use the built-in hard-coded key during testing).
|
|
99
|
+
- Import: `import { getGoogleReviewsByCompanyName } from 'pixelated-components';`
|
|
100
|
+
- Example:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
const { place, reviews } = await getGoogleReviewsByCompanyName({
|
|
104
|
+
companyName: 'PixelVivid',
|
|
105
|
+
language: 'en',
|
|
106
|
+
near: { lat: 32.2163, lng: -80.7526 },
|
|
107
|
+
radiusMeters: 50000,
|
|
108
|
+
region: 'us',
|
|
109
|
+
type: 'point_of_interest',
|
|
110
|
+
maxReviews: 5,
|
|
111
|
+
});
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
- Tips:
|
|
115
|
+
- Prefer `near` + `radiusMeters` for better disambiguation.
|
|
116
|
+
- If results return 0, try adjusting `region` or `type`, or use the exact business name.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<!-- ROADMAP -->
|
|
122
|
+
## Roadmap
|
|
123
|
+
|
|
124
|
+
- [ ] LinkedIn Recommendations Integration
|
|
125
|
+
- [ ] eBay Feedback Integration
|
|
126
|
+
- [ ] Yelp Recommendations integration
|
|
127
|
+
- [ ] Calendly Integration
|
|
128
|
+
- [ ] Instagram Image Integration for Carousels
|
|
129
|
+
- [ ] Expanding menu based on
|
|
130
|
+
- [ ] eCommerce Features + Paypal ( or Stripe, Square)
|
|
131
|
+
- [ ] Shopify Integration
|
|
132
|
+
- [ ] Quickbooks Integration
|
|
133
|
+
- [ ] Buffer Integration (or Sendible, Sprout Social, Hootsuite)
|
|
134
|
+
- [ ] Zapier Integration
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
See the [open issues](https://github.com/brianwhaley/pixelated-components/issues) for a full list of proposed features (and known issues).
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<!-- CONTRIBUTING -->
|
|
143
|
+
## Contributing
|
|
144
|
+
|
|
145
|
+
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
|
|
146
|
+
|
|
147
|
+
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
|
|
148
|
+
Don't forget to give the project a star! Thanks again!
|
|
149
|
+
|
|
150
|
+
1. Fork the Project
|
|
151
|
+
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
|
|
152
|
+
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
|
|
153
|
+
4. Push to the Branch (`git push origin feature/AmazingFeature`)
|
|
154
|
+
5. Open a Pull Request
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Top contributors:
|
|
162
|
+
|
|
163
|
+
<a href="https://github.com/brianwhaley/pixelated-components/graphs/contributors">
|
|
164
|
+
<img src="https://contrib.rocks/image?repo=brianwhaley/pixelated-components" alt="contrib.rocks image" />
|
|
165
|
+
</a>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<!-- LICENSE -->
|
|
170
|
+
## License
|
|
171
|
+
|
|
172
|
+
Distributed under the MIT License. See `LICENSE.txt` for more information.
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<!-- CONTACT -->
|
|
178
|
+
## Contact
|
|
179
|
+
|
|
180
|
+
Your Name - [@brianwhaley](https://twitter.com/@brianwhaley) - brian.whaley@gmail.com
|
|
181
|
+
|
|
182
|
+
Project Link: [https://github.com/brianwhaley/pixelated-components](https://github.com/brianwhaley/pixelated-components)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<!-- MARKDOWN LINKS & IMAGES -->
|
|
191
|
+
<!-- https://www.markdownguide.org/basic-syntax/#reference-style-links -->
|
|
192
|
+
[contributors-shield]: https://img.shields.io/github/contributors/brianwhaley/pixelated-components.svg?style=for-the-badge
|
|
193
|
+
[contributors-url]: https://github.com/brianwhaley/pixelated-components/graphs/contributors
|
|
194
|
+
|
|
195
|
+
[forks-shield]: https://img.shields.io/github/forks/brianwhaley/pixelated-components.svg?style=for-the-badge
|
|
196
|
+
[forks-url]: https://github.com/brianwhaley/pixelated-components/network/members
|
|
197
|
+
|
|
198
|
+
[stars-shield]: https://img.shields.io/github/stars/brianwhaley/pixelated-components.svg?style=for-the-badge
|
|
199
|
+
[stars-url]: https://github.com/brianwhaley/pixelated-components/stargazers
|
|
200
|
+
|
|
201
|
+
[issues-shield]: https://img.shields.io/github/issues/brianwhaley/pixelated-components.svg?style=for-the-badge
|
|
202
|
+
[issues-url]: https://github.com/brianwhaley/pixelated-components/issues
|
|
203
|
+
|
|
204
|
+
[license-shield]: https://img.shields.io/github/license/brianwhaley/pixelated-components.svg?style=for-the-badge
|
|
205
|
+
[license-url]: https://github.com/brianwhaley/pixelated-components/blob/master/LICENSE.txt
|
|
206
|
+
|
|
207
|
+
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555
|
|
208
|
+
[linkedin-url]: https://linkedin.com/in/brianwhaley
|
|
209
|
+
|
|
210
|
+
[product-screenshot]: images/screenshot.png
|
|
211
|
+
|
|
212
|
+
[Next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white
|
|
213
|
+
[Next-url]: https://nextjs.org/
|
|
214
|
+
|
|
215
|
+
[React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB
|
|
216
|
+
[React-url]: https://reactjs.org/
|
|
217
|
+
|
|
218
|
+
[Storybook.js]: https://img.shields.io/badge/Storybook-FF4785?logo=storybook&logoColor=white
|
|
219
|
+
[Storybook-url]: https://storybook.js.org
|
|
220
|
+
|
|
221
|
+
[Contentful.com]: https://img.shields.io/badge/Contentful-2478CC?logo=contentful&logoColor=fff
|
|
222
|
+
[Contentful-url]: https://contentful.com
|
|
223
|
+
|
|
224
|
+
[WordPress.com]: https://img.shields.io/badge/WordPress-%2321759B.svg?logo=wordpress&logoColor=white
|
|
225
|
+
[Wordpress-url]: http://www.wordpress.com
|
|
226
|
+
|
|
227
|
+
[npm.org]: https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=fff
|
|
228
|
+
[npm-url]: https://www.npmjs.org
|
|
229
|
+
|
|
230
|
+
[GitHub.com]: https://img.shields.io/badge/GitHub-%23121011.svg?logo=github&logoColor=white
|
|
231
|
+
[Github-url]: https://www.github.com
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* ========================================
|
|
2
|
+
============ BUZZWORD BINGO ============
|
|
3
|
+
======================================== */
|
|
4
|
+
|
|
5
|
+
.bingoCard {
|
|
6
|
+
border: 1px solid #AAA;
|
|
7
|
+
max-width: 640px;
|
|
8
|
+
margin: 0 auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.bingoCard {
|
|
12
|
+
|
|
13
|
+
.bingoHeader{
|
|
14
|
+
border: 1px solid #AAA;
|
|
15
|
+
background-color: #CCC;
|
|
16
|
+
font-size: 2em;
|
|
17
|
+
font-weight: bold;
|
|
18
|
+
aspect-ratio : 3 / 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.bingoBox {
|
|
22
|
+
border: 1px solid #AAA;
|
|
23
|
+
aspect-ratio : 1 / 1;
|
|
24
|
+
width: 100%;
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.bingoBoxText,
|
|
29
|
+
.bingoBoxFreeSpace {
|
|
30
|
+
text-align:center;
|
|
31
|
+
margin: auto 0;
|
|
32
|
+
/* word-spacing: 1000px; */ /* force wrap after each word */
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.bingoBoxFreeSpace {
|
|
36
|
+
background-color: #EEE;
|
|
37
|
+
font-size: 1.1em;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import './buzzwordbingo.css';
|
|
5
|
+
import "../../css/pixelated.grid.scss";
|
|
6
|
+
function getBingoWords(arr, x) {
|
|
7
|
+
var myBingoWords = [...arr].sort(() => Math.random() - 0.5); // Shuffle the array
|
|
8
|
+
myBingoWords = myBingoWords.slice(0, x); // Return the first x elements
|
|
9
|
+
myBingoWords.splice(12, 0, "FREE SPACE");
|
|
10
|
+
return myBingoWords;
|
|
11
|
+
}
|
|
12
|
+
BuzzwordBingo.propTypes = {
|
|
13
|
+
buzzwords: PropTypes.array.isRequired,
|
|
14
|
+
};
|
|
15
|
+
export function BuzzwordBingo(props) {
|
|
16
|
+
const buzzwords = props.buzzwords;
|
|
17
|
+
const myBingoHeaders = ["B", "I", "N", "G", "O"];
|
|
18
|
+
const [bingoWords, setBingoWords] = useState([]);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setBingoWords(getBingoWords(buzzwords, 24));
|
|
21
|
+
}, []);
|
|
22
|
+
return (_jsxs("div", { className: "bingoCard rowfix-5col", children: [myBingoHeaders.map((word) => (_jsx(BingoHeader, { word: word }, word))), bingoWords.map((word) => (_jsx(BingoBox, { word: word }, word)))] }));
|
|
23
|
+
}
|
|
24
|
+
BingoHeader.propTypes = {
|
|
25
|
+
word: PropTypes.string.isRequired,
|
|
26
|
+
};
|
|
27
|
+
function BingoHeader({ word }) {
|
|
28
|
+
return (_jsx("div", { className: "bingoHeader gridItem", children: _jsx("div", { className: "bingoBoxText", children: word }) }));
|
|
29
|
+
}
|
|
30
|
+
BingoBox.propTypes = {
|
|
31
|
+
word: PropTypes.string.isRequired,
|
|
32
|
+
};
|
|
33
|
+
function BingoBox({ word }) {
|
|
34
|
+
return (_jsx("div", { className: "bingoBox gridItem", children: _jsx("div", { className: (word == "FREE SPACE") ? "bingoBoxFreeSpace" : "bingoBoxText", children: word }) }));
|
|
35
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { usePixelatedConfig } from "../config/config.client";
|
|
5
|
+
import { SmartImage } from '../cms/cloudinary.image';
|
|
6
|
+
import "./callout.scss";
|
|
7
|
+
/* ==================== NOTES ====================
|
|
8
|
+
DEFAULT = flexbox layout, no border around callout
|
|
9
|
+
BOXED = border around callout
|
|
10
|
+
BOXED GRID = applies both
|
|
11
|
+
FULL = full width callout with minimal margin and padding
|
|
12
|
+
GRID = grid layout
|
|
13
|
+
SPLIT = full width split page layout, cannot use LAYOUT (HORIZONTAL / VERTICAL)
|
|
14
|
+
LAYOUT = horizontal or vertical callout, VERTICAL cannot use DIRECTION (LEFT / RIGHT)
|
|
15
|
+
DIRECTION = used to place image on left or right side, does not apply to VERTICAL layout
|
|
16
|
+
|
|
17
|
+
GRID is basic 1/2 GRID shape, needs enhanement
|
|
18
|
+
BOXSHAPE has not been complete
|
|
19
|
+
==================== NOTES ==================== */
|
|
20
|
+
// Define option arrays - used by both PropTypes and form generation
|
|
21
|
+
export const variants = ['default', 'boxed', 'boxed grid', 'full', 'grid', 'overlay', 'split'];
|
|
22
|
+
export const shapes = ['square', 'bevel', 'squircle', 'round'];
|
|
23
|
+
export const layouts = ['horizontal', 'vertical'];
|
|
24
|
+
export const directions = ['left', 'right'];
|
|
25
|
+
Callout.propTypes = {
|
|
26
|
+
variant: PropTypes.oneOf([...variants]),
|
|
27
|
+
boxShape: PropTypes.oneOf([...shapes]),
|
|
28
|
+
layout: PropTypes.oneOf([...layouts]),
|
|
29
|
+
direction: PropTypes.oneOf([...directions]),
|
|
30
|
+
gridColumns: PropTypes.shape({
|
|
31
|
+
left: PropTypes.number,
|
|
32
|
+
right: PropTypes.number
|
|
33
|
+
}),
|
|
34
|
+
url: PropTypes.string,
|
|
35
|
+
img: PropTypes.string,
|
|
36
|
+
imgAlt: PropTypes.string,
|
|
37
|
+
imgShape: PropTypes.oneOf([...shapes]),
|
|
38
|
+
imgClick: PropTypes.func,
|
|
39
|
+
title: PropTypes.string,
|
|
40
|
+
subtitle: PropTypes.string,
|
|
41
|
+
content: PropTypes.string,
|
|
42
|
+
buttonText: PropTypes.string,
|
|
43
|
+
// SmartImage props
|
|
44
|
+
aboveFold: PropTypes.bool,
|
|
45
|
+
/* cloudinaryEnv: PropTypes.string,
|
|
46
|
+
cloudinaryDomain: PropTypes.string,
|
|
47
|
+
cloudinaryTransforms: PropTypes.string, */
|
|
48
|
+
};
|
|
49
|
+
export function Callout({ variant = 'default', boxShape = "squircle", layout = "horizontal", direction = 'left', gridColumns = { left: 1, right: 2 }, url, img, imgAlt, imgShape = 'square', imgClick, title, subtitle, content, buttonText, aboveFold,
|
|
50
|
+
/* cloudinaryEnv,
|
|
51
|
+
cloudinaryDomain,
|
|
52
|
+
cloudinaryTransforms */ }) {
|
|
53
|
+
const target = url && url.substring(0, 4).toLowerCase() === 'http' ? '_blank' : '_self';
|
|
54
|
+
const body = _jsxs("div", { className: "calloutBody", children: [(title) ? _jsx(CalloutHeader, { title: title, url: url, target: target }) : null, (subtitle) ? _jsx("div", { className: "calloutSubtitle", children: _jsx("h3", { children: subtitle }) }) : null, content ? _jsx("div", { className: "calloutContent", children: _jsx(_Fragment, { children: content }) }) : null, url && buttonText
|
|
55
|
+
? _jsx(CalloutButton, { title: buttonText, url: url, target: target })
|
|
56
|
+
: url && title
|
|
57
|
+
? _jsx(CalloutButton, { title: title || "", url: url, target: target })
|
|
58
|
+
: null] });
|
|
59
|
+
const config = usePixelatedConfig();
|
|
60
|
+
const image = (img) ?
|
|
61
|
+
_jsx("div", { className: "calloutImage" + (imgShape ? " " + imgShape : ""), children: (url && !imgClick)
|
|
62
|
+
? _jsx("a", { href: url, target: target, rel: target == "_blank" ? "noopener noreferrer" : "", children: _jsx(SmartImage, { src: img, title: title ?? imgAlt ?? undefined, alt: imgAlt ?? title ?? "", aboveFold: aboveFold, cloudinaryEnv: config?.cloudinary?.product_env ?? undefined, cloudinaryDomain: config?.cloudinary?.baseUrl ?? undefined, cloudinaryTransforms: config?.cloudinary?.transforms ?? undefined, suppressHydrationWarning: true }) })
|
|
63
|
+
: (url && imgClick)
|
|
64
|
+
? _jsx(SmartImage, { src: img, title: title ?? imgAlt ?? undefined, alt: imgAlt ?? title ?? "", onClick: (event) => imgClick(event, url), aboveFold: aboveFold, cloudinaryEnv: config?.cloudinary?.product_env ?? undefined, cloudinaryDomain: config?.cloudinary?.baseUrl ?? undefined, cloudinaryTransforms: config?.cloudinary?.transforms ?? undefined, suppressHydrationWarning: true })
|
|
65
|
+
/* <img src={img} title={title ?? imgAlt ?? undefined} alt={imgAlt ?? title ?? undefined} onClick={(event) => imgClick(event, url)} /> */
|
|
66
|
+
: _jsx(SmartImage, { src: img, title: title ?? imgAlt ?? undefined, alt: imgAlt ?? title ?? "", aboveFold: aboveFold, cloudinaryEnv: config?.cloudinary?.product_env ?? undefined, cloudinaryDomain: config?.cloudinary?.baseUrl ?? undefined, cloudinaryTransforms: config?.cloudinary?.transforms ?? undefined, suppressHydrationWarning: true }) }) : null;
|
|
67
|
+
return (_jsx("div", { className: "callout" +
|
|
68
|
+
(variant ? " " + variant : "") +
|
|
69
|
+
((variant === 'boxed' || variant === 'boxed grid') && boxShape ? " " + boxShape : "") +
|
|
70
|
+
(layout && variant !== 'split' ? " " + layout : "") +
|
|
71
|
+
(direction && layout !== 'vertical' ? " " + direction : "") +
|
|
72
|
+
(variant && (variant === 'boxed grid' || variant === 'grid') && gridColumns ? ` calloutGrid-${gridColumns.left}-${gridColumns.right}` : ''), children: (direction === "right") ? _jsxs(_Fragment, { children: [body, image] }) : _jsxs(_Fragment, { children: [image, body] }) }));
|
|
73
|
+
}
|
|
74
|
+
/* ========== CALLOUT HEADER ========== */
|
|
75
|
+
CalloutHeader.propTypes = {
|
|
76
|
+
title: PropTypes.string.isRequired,
|
|
77
|
+
url: PropTypes.string,
|
|
78
|
+
target: PropTypes.string
|
|
79
|
+
};
|
|
80
|
+
export function CalloutHeader({ title, url, target }) {
|
|
81
|
+
return (_jsx("div", { className: "calloutHeader", children: (url)
|
|
82
|
+
? _jsx("a", { href: url, target: target ? target : "", rel: target == "_blank" ? "noopener noreferrer" : "", children: _jsx("h2", { className: "calloutTitle", children: title }) })
|
|
83
|
+
: _jsx("h2", { className: "calloutTitle", children: title }) }));
|
|
84
|
+
}
|
|
85
|
+
/* ========== CALLOUT BUTTON ========== */
|
|
86
|
+
CalloutButton.propTypes = {
|
|
87
|
+
title: PropTypes.string.isRequired,
|
|
88
|
+
url: PropTypes.string,
|
|
89
|
+
target: PropTypes.string
|
|
90
|
+
};
|
|
91
|
+
export function CalloutButton({ title, url, target }) {
|
|
92
|
+
return (_jsx("div", { className: "calloutButton", children: (url)
|
|
93
|
+
? _jsx("button", { type: "button", className: "calloutButton", children: _jsx("a", { href: url || "", target: target || "", rel: target == "_blank" ? "noopener noreferrer" : "", children: title }) })
|
|
94
|
+
: null }));
|
|
95
|
+
}
|