@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
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import PropTypes from 'prop-types';
|
|
5
|
+
import './menu-accordion.css';
|
|
6
|
+
function generateMenuItems({ menuData, state = "hide" }) {
|
|
7
|
+
const myItems = [];
|
|
8
|
+
let index = 0;
|
|
9
|
+
for (const itemKey in menuData) {
|
|
10
|
+
const myItem = menuData[itemKey];
|
|
11
|
+
const safeName = (myItem && myItem.name) ? String(myItem.name).replace(/\s+/g, '_') : 'item';
|
|
12
|
+
const keyBase = `${safeName}-${itemKey}-${index}`;
|
|
13
|
+
// if ( typeof myItem === 'object' && myItem !== null ){
|
|
14
|
+
if (!myItem.hidden) {
|
|
15
|
+
// ITEM OR GROUP IS NOT HIDDEN
|
|
16
|
+
if (typeof myItem === 'object' && myItem.routes) {
|
|
17
|
+
// MENU GROUP - push the toggle and the nested group separately with unique keys
|
|
18
|
+
myItems.push(_jsx(MenuAccordionItem, { name: "▶ " + myItem.name, href: '' }, `${keyBase}-parent`), _jsx(MenuAccordionGroup, { menuItems: myItem, state: state }, `${keyBase}-group`));
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
// INDIVIDUAL MENU ITEM
|
|
22
|
+
myItems.push(_jsx(MenuAccordionItem, { name: myItem.name, href: myItem.path, target: myItem.target }, `${keyBase}-item`));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
index++;
|
|
26
|
+
}
|
|
27
|
+
return myItems;
|
|
28
|
+
}
|
|
29
|
+
/* ========== MENU ========== */
|
|
30
|
+
MenuAccordion.propTypes = {
|
|
31
|
+
menuItems: PropTypes.any.isRequired,
|
|
32
|
+
showHidden: PropTypes.bool,
|
|
33
|
+
};
|
|
34
|
+
export function MenuAccordion(props) {
|
|
35
|
+
const debug = false;
|
|
36
|
+
const left = useRef(-250);
|
|
37
|
+
function setLeft(leftVal) { left.current = leftVal; }
|
|
38
|
+
;
|
|
39
|
+
const documentRef = useRef(null);
|
|
40
|
+
// const [ menuItems, setMenuItems ] = useState();
|
|
41
|
+
// only works for 2 layers deep
|
|
42
|
+
const menuItems = props.menuItems.map((menuItem) => {
|
|
43
|
+
// MAIN MENU ITEMS
|
|
44
|
+
if (props.showHidden === true && menuItem.hidden === true) {
|
|
45
|
+
delete menuItem.hidden;
|
|
46
|
+
}
|
|
47
|
+
// SUB MENU ITEMS
|
|
48
|
+
if (menuItem.routes) {
|
|
49
|
+
const subMenuItems = menuItem.routes.map((subMenuItem) => {
|
|
50
|
+
if (props.showHidden === true && subMenuItem.hidden === true) {
|
|
51
|
+
delete subMenuItem.hidden;
|
|
52
|
+
}
|
|
53
|
+
return subMenuItem;
|
|
54
|
+
});
|
|
55
|
+
return { ...menuItem, routes: subMenuItems };
|
|
56
|
+
}
|
|
57
|
+
return menuItem;
|
|
58
|
+
});
|
|
59
|
+
function moveMenu() {
|
|
60
|
+
if (debug)
|
|
61
|
+
console.log("Moving Menu... Left: ", left);
|
|
62
|
+
const menu = documentRef.current ? documentRef.current.getElementById('accordionMenu') : null;
|
|
63
|
+
const menuParent = menu ? menu.parentElement : null;
|
|
64
|
+
if (left.current === 0) {
|
|
65
|
+
if (debug)
|
|
66
|
+
console.log("Moving Menu Out");
|
|
67
|
+
menuParent?.classList.remove('accordionDown'); /* accordionIn */
|
|
68
|
+
menuParent?.classList.add('accordionUp'); /* accordionOut */
|
|
69
|
+
setLeft(-250);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
if (debug)
|
|
73
|
+
console.log("Moving Menu In");
|
|
74
|
+
menuParent?.classList.remove('accordionUp'); /* accordionOut */
|
|
75
|
+
menuParent?.classList.add('accordionDown'); /* accordionIn */
|
|
76
|
+
setLeft(0);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
;
|
|
80
|
+
function expandMenuItem(clickedItem) {
|
|
81
|
+
if (debug)
|
|
82
|
+
console.log("Expanding Menu Item...");
|
|
83
|
+
const parent = clickedItem.parentElement;
|
|
84
|
+
const subMenu = parent?.nextElementSibling;
|
|
85
|
+
if (subMenu && subMenu.classList.contains('menuHide')) {
|
|
86
|
+
if (debug)
|
|
87
|
+
console.log("Opening Submenu");
|
|
88
|
+
subMenu.classList.add('menuShow');
|
|
89
|
+
subMenu.classList.remove('menuHide');
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
if (debug)
|
|
93
|
+
console.log("Closing Submenu");
|
|
94
|
+
if (subMenu)
|
|
95
|
+
subMenu.classList.add('menuHide');
|
|
96
|
+
if (subMenu)
|
|
97
|
+
subMenu.classList.remove('menuShow');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
window.moveMenu = moveMenu; // attach moveMenu function to the window object for use in MenuAccordionButton
|
|
102
|
+
documentRef.current = document; // for moveMenu
|
|
103
|
+
const menu = document.getElementById('accordionMenu');
|
|
104
|
+
const menuBtn = document.getElementById('panelMenuButton');
|
|
105
|
+
function handleMenuClick(event) {
|
|
106
|
+
if (debug)
|
|
107
|
+
console.log("event : ", event, "target : ", event.target);
|
|
108
|
+
// const isClicked = (menu.contains(event.target) || menuBtn.contains(event.target));
|
|
109
|
+
const isMenuClicked = menu?.contains(event.target);
|
|
110
|
+
const isMenuBtnClicked = menuBtn?.contains(event.target);
|
|
111
|
+
if (debug)
|
|
112
|
+
console.log("isMenuBtnClicked : ", isMenuBtnClicked);
|
|
113
|
+
if (isMenuClicked) {
|
|
114
|
+
// MENU ITEM CLICKED
|
|
115
|
+
const target = event.target;
|
|
116
|
+
if (!(target.href) || !(target.href.length > 0)) {
|
|
117
|
+
// NO HREF - EXPAND / COLLAPSE SUB MENU
|
|
118
|
+
// event.preventDefault();
|
|
119
|
+
event.stopPropagation();
|
|
120
|
+
expandMenuItem(target);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
// HREF - NAVIGATE
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else if (isMenuBtnClicked) {
|
|
127
|
+
// MENU BUTTON CLICKED
|
|
128
|
+
// event.preventDefault();
|
|
129
|
+
event.stopPropagation();
|
|
130
|
+
moveMenu();
|
|
131
|
+
}
|
|
132
|
+
else if (!isMenuBtnClicked && left.current === 0) {
|
|
133
|
+
// NON-MENU AREA CLICKED
|
|
134
|
+
moveMenu();
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
;
|
|
138
|
+
document.addEventListener('click', handleMenuClick, true);
|
|
139
|
+
return () => {
|
|
140
|
+
document.removeEventListener('click', handleMenuClick);
|
|
141
|
+
};
|
|
142
|
+
}, []);
|
|
143
|
+
return (_jsx("div", { className: "accordionMenuWrapper accordionUp", children: _jsx("div", { className: "accordionMenu", id: "accordionMenu", children: _jsx(MenuAccordionGroup, { menuItems: menuItems, state: undefined }, "accordionRoot") }) }));
|
|
144
|
+
}
|
|
145
|
+
/* ========== MENU GROUP ========== */
|
|
146
|
+
MenuAccordionGroup.propTypes = {
|
|
147
|
+
menuItems: PropTypes.object.isRequired,
|
|
148
|
+
state: PropTypes.string,
|
|
149
|
+
};
|
|
150
|
+
export function MenuAccordionGroup(props) {
|
|
151
|
+
const myMenuItems = (props.menuItems.routes) ? props.menuItems.routes : props.menuItems;
|
|
152
|
+
return (_jsx("ul", { className: (props.state === "hide" ? "menuHide" : "menuShow"), children: generateMenuItems({ menuData: myMenuItems, state: props.state ?? "hide" }) }, "menu-group-" + props.menuItems.name));
|
|
153
|
+
}
|
|
154
|
+
/* ========== MENU ITEM ========== */
|
|
155
|
+
MenuAccordionItem.propTypes = {
|
|
156
|
+
name: PropTypes.string.isRequired,
|
|
157
|
+
href: PropTypes.string.isRequired,
|
|
158
|
+
target: PropTypes.string,
|
|
159
|
+
};
|
|
160
|
+
export function MenuAccordionItem(props) {
|
|
161
|
+
if (props.href && props.href.length > 0) {
|
|
162
|
+
if (props.target && props.target.length > 0) {
|
|
163
|
+
return (_jsx("li", { children: _jsx("a", { href: props.href, target: props.target, children: props.name }) }, "menu-item-" + props.name));
|
|
164
|
+
}
|
|
165
|
+
else {
|
|
166
|
+
return (_jsx("li", { children: _jsx("a", { href: props.href, children: props.name }) }, "menu-item-" + props.name));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
return (_jsx("li", { children: _jsx("a", { children: props.name }) }, "menu-item-" + props.name));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
/* ========== MENU BUTTON ========== */
|
|
174
|
+
/*
|
|
175
|
+
https://www.unclebigbay.com/blog/building-the-world-simplest-hamburger-with-html-and-css
|
|
176
|
+
*/
|
|
177
|
+
MenuAccordionButton.propTypes = {};
|
|
178
|
+
export function MenuAccordionButton() {
|
|
179
|
+
function slideMobilePanel() {
|
|
180
|
+
window.moveMenu();
|
|
181
|
+
}
|
|
182
|
+
return (_jsx("div", { className: "panelMenuButton", id: "panelMenuButton", onClick: slideMobilePanel, children: _jsx("span", { className: "hamburger textOutline", children: "|||" }) }));
|
|
183
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
|
|
2
|
+
/* ========================================
|
|
3
|
+
===== SLIDING PANEL MENU =====
|
|
4
|
+
======================================== */
|
|
5
|
+
|
|
6
|
+
.menuExpandoButton {
|
|
7
|
+
/* background-color: rgba(255,255,255,0.7); */
|
|
8
|
+
/* display: none; */
|
|
9
|
+
/* display: inline; */
|
|
10
|
+
margin: 0px 10px 0px 0px;
|
|
11
|
+
padding: 5px;
|
|
12
|
+
text-align: center;
|
|
13
|
+
width: 35px;
|
|
14
|
+
|
|
15
|
+
/* .rounded; */
|
|
16
|
+
-moz-border-radius: 5px;
|
|
17
|
+
-webkit-border-radius: 5px;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media screen and (max-width: 480px) {
|
|
22
|
+
.menuExpandoButton {
|
|
23
|
+
display: inline;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.menuExpandoButtonHeader {
|
|
28
|
+
background-color: #336699;
|
|
29
|
+
/* background-image: url(/images/pix/pix-bg.gif); */
|
|
30
|
+
color: #FFFFFF;
|
|
31
|
+
padding: 15px;
|
|
32
|
+
|
|
33
|
+
/* .rounded; */
|
|
34
|
+
-moz-border-radius: 5px;
|
|
35
|
+
-webkit-border-radius: 5px;
|
|
36
|
+
border-radius: 5px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/* ========================================
|
|
41
|
+
============ ACCORDION MENU ============
|
|
42
|
+
======================================== */
|
|
43
|
+
|
|
44
|
+
details.menuExpandoWrapper {
|
|
45
|
+
/* background: #FFF; */
|
|
46
|
+
background: rgba(150, 190, 250, 0.7);
|
|
47
|
+
border-right: 1px solid #ccc;
|
|
48
|
+
/* height: auto; */
|
|
49
|
+
position: fixed;
|
|
50
|
+
left: 0px;
|
|
51
|
+
top: 60px;
|
|
52
|
+
/* height: 100%; */
|
|
53
|
+
width: 220px;
|
|
54
|
+
z-index: 1000;
|
|
55
|
+
/* padding: 5px; */
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
details.menuExpandoWrapper > summary {
|
|
59
|
+
/* display: none; */
|
|
60
|
+
list-style: none;
|
|
61
|
+
height: 0px;
|
|
62
|
+
width: 0px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
details.menuExpandoWrapper[open] > summary {
|
|
66
|
+
--do-nothing: true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
details.menuExpandoWrapper:not([open]) {
|
|
70
|
+
--do-nothing: true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
details.menuExpandoWrapper > *,
|
|
74
|
+
details.menuExpandoWrapper[open] > *,
|
|
75
|
+
details.menuExpandoWrapper:not([open]) > * {
|
|
76
|
+
animation: sweep 1s ease-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@keyframes sweep {
|
|
80
|
+
0% { opacity: 0; margin-left: -220px }
|
|
81
|
+
100% { opacity: 1; margin-left: 0px }
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
details.menuExpandoWrapper > summary::marker,
|
|
85
|
+
details.menuExpandoWrapper > summary::-webkit-details-marker {
|
|
86
|
+
display:none;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.menuExpando,
|
|
90
|
+
.menuExpando ul {
|
|
91
|
+
/* ALL LIST LEVELS */
|
|
92
|
+
display: inline-block;
|
|
93
|
+
list-style-type: none;
|
|
94
|
+
padding: 0;
|
|
95
|
+
width: 200px;
|
|
96
|
+
margin: 10px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.menuExpando ul > li {
|
|
100
|
+
/* ALL LIST ITEM LEVELS */
|
|
101
|
+
border-bottom: 1px solid #FFF;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.menuExpando ul > li:first-child {
|
|
105
|
+
/* ALL LIST ITEM LEVELS */
|
|
106
|
+
border-top: 1px solid #FFF;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.menuExpando ul > li > a {
|
|
110
|
+
/* this is the button */
|
|
111
|
+
color: black;
|
|
112
|
+
background: #CCC;
|
|
113
|
+
/* background-image: url(/images/pix/pix-bg-lite.jpg); */
|
|
114
|
+
display: block;
|
|
115
|
+
font-weight: bold;
|
|
116
|
+
height: 30px;
|
|
117
|
+
line-height:30px;
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
text-indent: 10px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.menuExpando ul > li > a:hover {
|
|
123
|
+
background: #EDD;
|
|
124
|
+
/* background-image: url(/images/pix/pix-bg-sm-bw.gif); */
|
|
125
|
+
text-indent: 5px;
|
|
126
|
+
border-left: 5px #000 solid;
|
|
127
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import './menu-expando.css';
|
|
5
|
+
/*
|
|
6
|
+
NOTE :
|
|
7
|
+
Stopped development on details / summary for now.
|
|
8
|
+
Not enough css control for animation.
|
|
9
|
+
*/
|
|
10
|
+
/* ========== MENU ========== */
|
|
11
|
+
export function MenuExpando(props) {
|
|
12
|
+
// const debug = false;
|
|
13
|
+
function generateMenuItems() {
|
|
14
|
+
const myItems = [];
|
|
15
|
+
for (const itemKey in props.menuItems) {
|
|
16
|
+
myItems.push(_jsx(MenuExpandoItem, { name: itemKey, href: props.menuItems[itemKey] }, itemKey));
|
|
17
|
+
}
|
|
18
|
+
return myItems;
|
|
19
|
+
}
|
|
20
|
+
return (_jsx("div", { className: "menuExpando", id: "menuExpando", children: _jsxs("details", { className: "menuExpandoWrapper", id: "menuExpandoWrapper", children: [_jsx("summary", {}), _jsx("ul", { children: generateMenuItems() })] }) }));
|
|
21
|
+
}
|
|
22
|
+
MenuExpando.propTypes = {
|
|
23
|
+
menuItems: PropTypes.object.isRequired
|
|
24
|
+
};
|
|
25
|
+
/* ========== MENU ITEM ========== */
|
|
26
|
+
export function MenuExpandoItem(props) {
|
|
27
|
+
return (_jsx("li", { children: _jsx("a", { href: props.href, children: props.name }) }));
|
|
28
|
+
}
|
|
29
|
+
MenuExpandoItem.propTypes = {
|
|
30
|
+
name: PropTypes.string.isRequired,
|
|
31
|
+
href: PropTypes.string.isRequired
|
|
32
|
+
};
|
|
33
|
+
/* ========== MENU BUTTON ========== */
|
|
34
|
+
export function MenuExpandoButton() {
|
|
35
|
+
function handleMenuExpandoButtonClick(event) {
|
|
36
|
+
const debug = false;
|
|
37
|
+
if (debug)
|
|
38
|
+
console.log("MenuExpandoButton clicked");
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
event.stopPropagation();
|
|
41
|
+
// const button = document.getElementById('menuExpandoButton');
|
|
42
|
+
const details = document.getElementById('menuExpandoWrapper');
|
|
43
|
+
if (details)
|
|
44
|
+
details.open = !details.open;
|
|
45
|
+
}
|
|
46
|
+
return (_jsx("div", { className: "menuExpandoButton", id: "menuExpandoButton", onClick: handleMenuExpandoButtonClick, children: _jsx("img", { src: "/images/icons/mobile-menu2.png", title: "Mobile Menu", alt: "Mobile Menu" }) }));
|
|
47
|
+
}
|
|
48
|
+
MenuExpandoButton.propTypes = {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
|
|
2
|
+
/* ========================================
|
|
3
|
+
============ SIMPLE MENU ============
|
|
4
|
+
======================================== */
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--primary-color: #369;
|
|
8
|
+
--secondary-color: #BCD;
|
|
9
|
+
--accent1-color: #CCC;
|
|
10
|
+
--accent2-color: #EEE;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.menuWrapper {
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.menuWrapper, .menuWrapper * {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: row;
|
|
20
|
+
flex-basis: 100%;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
align-items: center;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.menu {
|
|
27
|
+
width: 100%;
|
|
28
|
+
padding: 5px 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.menu ul {
|
|
32
|
+
list-style-type: none;
|
|
33
|
+
margin: 0; /* override pixelated global styles */
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.menu a {
|
|
38
|
+
color: black;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.menuItem {
|
|
43
|
+
border: 1px solid white;
|
|
44
|
+
background: none;
|
|
45
|
+
width: auto;
|
|
46
|
+
height: 30px;
|
|
47
|
+
border: none;
|
|
48
|
+
flex-grow: 1;
|
|
49
|
+
flex-shrink: 1;
|
|
50
|
+
flex-basis: content; /* each item is its own size instead of auto */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.menuItem:hover {
|
|
54
|
+
background-color: var(--accent1-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.menuItem:not(:first-child) {
|
|
58
|
+
border-left: 2px solid var(--primary-color);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.menuItem a {
|
|
62
|
+
/* this is the button */
|
|
63
|
+
background-color: var(--accent1-color);
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
height: 30px;
|
|
66
|
+
line-height: 30px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.menuItem a.selected {
|
|
71
|
+
background-color: var(--secondary-color);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.menuItem a:hover {
|
|
75
|
+
background-color: var(--accent2-color);
|
|
76
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import './menu-simple.css';
|
|
5
|
+
/* ========== MENU ========== */
|
|
6
|
+
MenuSimple.propTypes = {
|
|
7
|
+
// menuItems: PropTypes.object.isRequired,
|
|
8
|
+
menuItems: PropTypes.arrayOf(PropTypes.shape({
|
|
9
|
+
name: PropTypes.string.isRequired,
|
|
10
|
+
path: PropTypes.string.isRequired,
|
|
11
|
+
target: PropTypes.string,
|
|
12
|
+
hidden: PropTypes.bool,
|
|
13
|
+
routes: PropTypes.array,
|
|
14
|
+
})).isRequired,
|
|
15
|
+
};
|
|
16
|
+
export function MenuSimple(props) {
|
|
17
|
+
function generateMenuItems() {
|
|
18
|
+
const myItems = [];
|
|
19
|
+
for (const itemKey in props.menuItems) {
|
|
20
|
+
const myItem = props.menuItems[itemKey];
|
|
21
|
+
if (myItem && myItem.routes) {
|
|
22
|
+
continue;
|
|
23
|
+
} // Skip nested routes
|
|
24
|
+
myItems.push(_jsx(MenuSimpleItem, { name: myItem.name, path: myItem.path, target: myItem.target || undefined, hidden: myItem.hidden || undefined }, itemKey));
|
|
25
|
+
}
|
|
26
|
+
return myItems;
|
|
27
|
+
}
|
|
28
|
+
function styleSelectedMenuItem() {
|
|
29
|
+
const menuitems = document.querySelectorAll('.menuItem a');
|
|
30
|
+
const currentURL = window.location.href;
|
|
31
|
+
menuitems.forEach((menuitem) => {
|
|
32
|
+
if (menuitem.href === currentURL) {
|
|
33
|
+
menuitem.classList.add('selected');
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
styleSelectedMenuItem();
|
|
39
|
+
}, []);
|
|
40
|
+
return (_jsx("div", { className: "menuWrapper", children: _jsx("div", { className: "menu", id: "menu", children: _jsx("ul", { children: generateMenuItems() }) }) }));
|
|
41
|
+
}
|
|
42
|
+
/* ========== MENU ITEM ========== */
|
|
43
|
+
MenuSimpleItem.propTypes = {
|
|
44
|
+
name: PropTypes.string.isRequired,
|
|
45
|
+
path: PropTypes.string,
|
|
46
|
+
target: PropTypes.string,
|
|
47
|
+
hidden: PropTypes.bool,
|
|
48
|
+
routes: PropTypes.array,
|
|
49
|
+
};
|
|
50
|
+
export function MenuSimpleItem(props) {
|
|
51
|
+
if (props.hidden)
|
|
52
|
+
return null;
|
|
53
|
+
return (_jsx("li", { className: 'menuItem', children: props.target
|
|
54
|
+
? _jsx("a", { href: props.path || undefined, target: props.target, children: props.name })
|
|
55
|
+
: _jsx("a", { href: props.path || undefined, children: props.name }) }));
|
|
56
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
/* ========================================
|
|
3
|
+
=============== NERDJOKE ===============
|
|
4
|
+
======================================== */
|
|
5
|
+
|
|
6
|
+
.nerdJoke {
|
|
7
|
+
padding-bottom: 20px;
|
|
8
|
+
font-size: 24px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.nerdJoke .jokeText div {
|
|
12
|
+
padding-bottom: 15px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.slackButton {
|
|
16
|
+
padding-bottom: 20px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.label {
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.jokeButton {
|
|
24
|
+
/* background-image: url(/images/pix/pix-bg-sm-bw.gif); */
|
|
25
|
+
border: 1px solid #999;
|
|
26
|
+
display: inline-block;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
margin: 5px;
|
|
29
|
+
padding: 5px 20px !important;
|
|
30
|
+
|
|
31
|
+
/* display: block; */
|
|
32
|
+
margin: 5px auto;
|
|
33
|
+
text-align: center;
|
|
34
|
+
max-width: 220px;
|
|
35
|
+
transition: all .2s ease ;
|
|
36
|
+
|
|
37
|
+
-moz-border-radius: 5px;
|
|
38
|
+
-webkit-border-radius: 5px;
|
|
39
|
+
border-radius: 5px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.jokeButton:hover {
|
|
43
|
+
--do-nothing: true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
.jokeTimer {
|
|
48
|
+
border: 1px solid #AAA;
|
|
49
|
+
position: relative;
|
|
50
|
+
/* height: 25px;
|
|
51
|
+
width: 100%; */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.jokeTimerSvg {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 10px;
|
|
57
|
+
fill: rgb(190,190,190);
|
|
58
|
+
background: rgb(190,190,190);
|
|
59
|
+
color: rgb(190,190,190);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#jokeTimerPathElapsed {
|
|
63
|
+
fill: rgb(0,0,255);
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 10px;
|
|
66
|
+
transition: 1s linear all;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#jokeTimerLabel { --do-nothing: true }
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { Component } from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import { getXHRData, generateURL } from '../utilities/api';
|
|
5
|
+
import './nerdjoke.css';
|
|
6
|
+
import '../../css/pixelated.grid.scss';
|
|
7
|
+
/*
|
|
8
|
+
TODO: #21 NerdJoke Component - Convert to TypeScript
|
|
9
|
+
*/
|
|
10
|
+
const debug = false;
|
|
11
|
+
export class NerdJoke extends Component {
|
|
12
|
+
constructor(props) {
|
|
13
|
+
super(props);
|
|
14
|
+
this.TIME_LIMIT = 15;
|
|
15
|
+
this.timePassed = 0;
|
|
16
|
+
this.timePaused = false;
|
|
17
|
+
this.timeLeft = this.TIME_LIMIT;
|
|
18
|
+
this.timerInterval = null;
|
|
19
|
+
this.jokeInterval = null;
|
|
20
|
+
this.state = {
|
|
21
|
+
joke: {
|
|
22
|
+
question: '',
|
|
23
|
+
answer: ''
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
loadJoke = () => {
|
|
28
|
+
if (debug)
|
|
29
|
+
console.log("Loading Joke");
|
|
30
|
+
this.timePassed = 0;
|
|
31
|
+
this.timeLeft = this.TIME_LIMIT;
|
|
32
|
+
this.timerInterval = null;
|
|
33
|
+
clearInterval(this.jokeInterval);
|
|
34
|
+
this.jokeInterval = setInterval(() => {
|
|
35
|
+
if (!this.timePaused) {
|
|
36
|
+
this.loadJoke();
|
|
37
|
+
}
|
|
38
|
+
}, this.TIME_LIMIT * 1000);
|
|
39
|
+
const myURL = 'https://vvqyc1xpw6.execute-api.us-east-2.amazonaws.com/prod/nerdjokes?';
|
|
40
|
+
const myURLProps = { command: '%2Fnerdjokes', text: 'getjokejson' };
|
|
41
|
+
const myMethod = 'GET';
|
|
42
|
+
getXHRData(generateURL(myURL, myURLProps), myMethod, (jokeData) => {
|
|
43
|
+
const myJokeData = jokeData;
|
|
44
|
+
this.setState({ joke: myJokeData });
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
formatTimeLeft(time) {
|
|
48
|
+
if (debug)
|
|
49
|
+
console.log("Formatting Time Left");
|
|
50
|
+
const minutes = Math.floor(time / 60);
|
|
51
|
+
let seconds = time % 60;
|
|
52
|
+
if (seconds < 10) {
|
|
53
|
+
seconds = `0${seconds}`;
|
|
54
|
+
}
|
|
55
|
+
return `${minutes}:${seconds}`;
|
|
56
|
+
}
|
|
57
|
+
;
|
|
58
|
+
startTimer() {
|
|
59
|
+
if (debug)
|
|
60
|
+
console.log("Starting Timer");
|
|
61
|
+
this.timerInterval = setInterval(() => {
|
|
62
|
+
if (!this.timePaused) {
|
|
63
|
+
this.timePassed = this.timePassed += 1;
|
|
64
|
+
this.timeLeft = this.TIME_LIMIT - this.timePassed + 1;
|
|
65
|
+
const myWidth = (((1 / this.TIME_LIMIT) * this.timeLeft) * 100) + '%';
|
|
66
|
+
document.getElementById('jokeTimerLabel').innerHTML = this.formatTimeLeft(this.timeLeft);
|
|
67
|
+
document.getElementById('jokeTimerPathElapsed').style.width = myWidth;
|
|
68
|
+
}
|
|
69
|
+
}, 1000);
|
|
70
|
+
}
|
|
71
|
+
;
|
|
72
|
+
pauseTimer() {
|
|
73
|
+
if (debug)
|
|
74
|
+
console.log("Pausing Timer");
|
|
75
|
+
this.timePaused = !this.timePaused;
|
|
76
|
+
}
|
|
77
|
+
;
|
|
78
|
+
componentDidMount() {
|
|
79
|
+
if (debug)
|
|
80
|
+
console.log("Component is Mounted");
|
|
81
|
+
this.loadJoke();
|
|
82
|
+
this.startTimer();
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
return (_jsx("div", { className: "nerdJoke", children: _jsxs("div", { className: "row-12col", children: [_jsx("div", { className: "grid-s1-e5", children: _jsx("div", { className: "left", children: _jsx(JokeButton, { clickFunction: this.pauseTimer, buttonText: "Pause || / Play >" }) }) }), _jsx("div", { className: "grid-s9-e13", children: _jsx("div", { className: "right", children: _jsx(JokeButton, { clickFunction: this.loadJoke, buttonText: "Next Joke ->" }) }) }), _jsx("div", { className: "jokeTimer grid-s1-e13", children: _jsxs("div", { className: "row-12col", children: [_jsx("div", { className: "grid-s1-e11", children: _jsx("svg", { className: "jokeTimerSvg", xmlns: "http://www.w3.org/2000/svg", children: _jsx("rect", { id: "jokeTimerPathElapsed" }) }) }), _jsx("div", { className: "grid-s11-e13 center", id: "jokeTimerLabel", children: this.formatTimeLeft(this.timeLeft) })] }) }), _jsxs("div", { className: "jokeText grid-s1-e13", children: [_jsxs("div", { children: [_jsx("span", { className: "label", children: "Q: " }), _jsxs("span", { className: "question", children: [" ", this.state.joke.question, " "] })] }), _jsxs("div", { children: [_jsx("span", { className: "label", children: "A: " }), _jsxs("span", { className: "answer", children: [" ", this.state.joke.answer, " "] })] })] })] }) }));
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/* ========== JOKE BUTTON ========== */
|
|
89
|
+
function JokeButton(props) {
|
|
90
|
+
return (_jsx("div", { className: 'jokeButton', onClick: props.clickFunction, children: props.buttonText }));
|
|
91
|
+
}
|
|
92
|
+
JokeButton.propTypes = {
|
|
93
|
+
clickFunction: PropTypes.func.isRequired,
|
|
94
|
+
buttonText: PropTypes.string.isRequired
|
|
95
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
// import { PageSectionHeader } from '../../general/pixelated.headers';
|
|
4
|
+
import { FormEngine } from '../form/form';
|
|
5
|
+
/**
|
|
6
|
+
* ComponentPropertiesForm - Displays the component properties form
|
|
7
|
+
* Shows FormEngine when component is selected, placeholder otherwise
|
|
8
|
+
*/
|
|
9
|
+
ComponentPropertiesForm.propTypes = {
|
|
10
|
+
editableComponent: PropTypes.object.isRequired,
|
|
11
|
+
onSubmit: PropTypes.func.isRequired,
|
|
12
|
+
};
|
|
13
|
+
export function ComponentPropertiesForm({ editableComponent, onSubmit }) {
|
|
14
|
+
return (_jsx(_Fragment, { children: editableComponent && editableComponent.fields ? (_jsx(FormEngine, { name: "field_props", id: "field_props", onSubmitHandler: onSubmit, formData: editableComponent })) : (_jsx("p", { style: { color: '#666', fontStyle: 'italic', padding: '1rem' }, children: "Select a component type above to configure its properties." })) }));
|
|
15
|
+
}
|