@pixelated-tech/components 3.2.3 → 3.2.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/dist/components/carousel/carousel.css +5 -0
- package/dist/components/cms/contentful.items.components.js +1 -1
- package/dist/components/general/loading.js +16 -15
- package/dist/components/menu/menu-accordion.js +9 -14
- package/dist/components/menu/menu-simple.css +4 -0
- package/dist/components/menu/menu-simple.js +8 -3
- package/dist/components/pagebuilder/components/SaveLoadSection.js +1 -1
- package/dist/components/seo/404.js +1 -1
- package/dist/components/shoppingcart/shoppingcart.components.js +1 -1
- package/dist/components/structured/buzzwordbingo.js +1 -1
- package/dist/components/structured/recipe.js +1 -1
- package/dist/components/structured/socialcard.js +1 -1
- package/dist/types/components/general/loading.d.ts.map +1 -1
- package/dist/types/components/menu/menu-accordion.d.ts.map +1 -1
- package/dist/types/components/menu/menu-simple.d.ts +1 -1
- package/dist/types/components/menu/menu-simple.d.ts.map +1 -1
- package/dist/types/tests/api.test.d.ts +2 -0
- package/dist/types/tests/api.test.d.ts.map +1 -0
- package/dist/types/tests/buzzwordbingo.test.d.ts +2 -0
- package/dist/types/tests/buzzwordbingo.test.d.ts.map +1 -0
- package/dist/types/tests/calendly.test.d.ts +2 -0
- package/dist/types/tests/calendly.test.d.ts.map +1 -0
- package/dist/types/tests/callout.test.d.ts +2 -0
- package/dist/types/tests/callout.test.d.ts.map +1 -0
- package/dist/types/tests/carousel-drag.test.d.ts +2 -0
- package/dist/types/tests/carousel-drag.test.d.ts.map +1 -0
- package/dist/types/tests/carousel.test.d.ts +2 -0
- package/dist/types/tests/carousel.test.d.ts.map +1 -0
- package/dist/types/tests/cloudinary-image.test.d.ts +2 -0
- package/dist/types/tests/cloudinary-image.test.d.ts.map +1 -0
- package/dist/types/tests/cloudinary.test.d.ts +2 -0
- package/dist/types/tests/cloudinary.test.d.ts.map +1 -0
- package/dist/types/tests/config.client.test.d.ts +2 -0
- package/dist/types/tests/config.client.test.d.ts.map +1 -0
- package/dist/types/tests/config.server.test.d.ts +2 -0
- package/dist/types/tests/config.server.test.d.ts.map +1 -0
- package/dist/types/tests/contentful-items.test.d.ts +2 -0
- package/dist/types/tests/contentful-items.test.d.ts.map +1 -0
- package/dist/types/tests/contentful.delivery.test.d.ts +2 -0
- package/dist/types/tests/contentful.delivery.test.d.ts.map +1 -0
- package/dist/types/tests/css.test.d.ts +2 -0
- package/dist/types/tests/css.test.d.ts.map +1 -0
- package/dist/types/tests/ebay.test.d.ts +2 -0
- package/dist/types/tests/ebay.test.d.ts.map +1 -0
- package/dist/types/tests/form.test.d.ts +2 -0
- package/dist/types/tests/form.test.d.ts.map +1 -0
- package/dist/types/tests/formcomponents.test.d.ts +2 -0
- package/dist/types/tests/formcomponents.test.d.ts.map +1 -0
- package/dist/types/tests/formvalidations.test.d.ts +2 -0
- package/dist/types/tests/formvalidations.test.d.ts.map +1 -0
- package/dist/types/tests/functions.test.d.ts +2 -0
- package/dist/types/tests/functions.test.d.ts.map +1 -0
- package/dist/types/tests/google-analytics.test.d.ts +2 -0
- package/dist/types/tests/google-analytics.test.d.ts.map +1 -0
- package/dist/types/tests/google-map.test.d.ts +2 -0
- package/dist/types/tests/google-map.test.d.ts.map +1 -0
- package/dist/types/tests/google-reviews.test.d.ts +2 -0
- package/dist/types/tests/google-reviews.test.d.ts.map +1 -0
- package/dist/types/tests/googlesearch.test.d.ts +2 -0
- package/dist/types/tests/googlesearch.test.d.ts.map +1 -0
- package/dist/types/tests/gravatar.test.d.ts +2 -0
- package/dist/types/tests/gravatar.test.d.ts.map +1 -0
- package/dist/types/tests/hubspot.test.d.ts +2 -0
- package/dist/types/tests/hubspot.test.d.ts.map +1 -0
- package/dist/types/tests/image.test.d.ts +2 -0
- package/dist/types/tests/image.test.d.ts.map +1 -0
- package/dist/types/tests/instagram.test.d.ts +2 -0
- package/dist/types/tests/instagram.test.d.ts.map +1 -0
- package/dist/types/tests/loading.test.d.ts +2 -0
- package/dist/types/tests/loading.test.d.ts.map +1 -0
- package/dist/types/tests/markdown.test.d.ts +2 -0
- package/dist/types/tests/markdown.test.d.ts.map +1 -0
- package/dist/types/tests/menu-accordion.test.d.ts +2 -0
- package/dist/types/tests/menu-accordion.test.d.ts.map +1 -0
- package/dist/types/tests/menu-expando.test.d.ts +2 -0
- package/dist/types/tests/menu-expando.test.d.ts.map +1 -0
- package/dist/types/tests/menu-simple.test.d.ts +2 -0
- package/dist/types/tests/menu-simple.test.d.ts.map +1 -0
- package/dist/types/tests/metadata.components.test.d.ts +2 -0
- package/dist/types/tests/metadata.components.test.d.ts.map +1 -0
- package/dist/types/tests/microinteractions.test.d.ts +2 -0
- package/dist/types/tests/microinteractions.test.d.ts.map +1 -0
- package/dist/types/tests/modal.test.d.ts +2 -0
- package/dist/types/tests/modal.test.d.ts.map +1 -0
- package/dist/types/tests/nerdjoke.test.d.ts +2 -0
- package/dist/types/tests/nerdjoke.test.d.ts.map +1 -0
- package/dist/types/tests/paypal.test.d.ts +2 -0
- package/dist/types/tests/paypal.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.menu-expando.test.d.ts +2 -0
- package/dist/types/tests/pixelated.menu-expando.test.d.ts.map +1 -0
- package/dist/types/tests/recipe.test.d.ts +2 -0
- package/dist/types/tests/recipe.test.d.ts.map +1 -0
- package/dist/types/tests/resume.test.d.ts +2 -0
- package/dist/types/tests/resume.test.d.ts.map +1 -0
- package/dist/types/tests/semantic.test.d.ts +2 -0
- package/dist/types/tests/semantic.test.d.ts.map +1 -0
- package/dist/types/tests/setup.d.ts +2 -0
- package/dist/types/tests/setup.d.ts.map +1 -0
- package/dist/types/tests/shopping-cart.test.d.ts +2 -0
- package/dist/types/tests/shopping-cart.test.d.ts.map +1 -0
- package/dist/types/tests/shoppingcart.components.test.d.ts +2 -0
- package/dist/types/tests/shoppingcart.components.test.d.ts.map +1 -0
- package/dist/types/tests/shoppingcart.functions.test.d.ts +2 -0
- package/dist/types/tests/shoppingcart.functions.test.d.ts.map +1 -0
- package/dist/types/tests/sidepanel.test.d.ts +2 -0
- package/dist/types/tests/sidepanel.test.d.ts.map +1 -0
- package/dist/types/tests/socialcard.test.d.ts +2 -0
- package/dist/types/tests/socialcard.test.d.ts.map +1 -0
- package/dist/types/tests/table.test.d.ts +2 -0
- package/dist/types/tests/table.test.d.ts.map +1 -0
- package/dist/types/tests/tiles.test.d.ts +2 -0
- package/dist/types/tests/tiles.test.d.ts.map +1 -0
- package/dist/types/tests/timeline.test.d.ts +2 -0
- package/dist/types/tests/timeline.test.d.ts.map +1 -0
- package/dist/types/tests/wordpress.test.d.ts +2 -0
- package/dist/types/tests/wordpress.test.d.ts.map +1 -0
- package/dist/types/tests/yelp.test.d.ts +2 -0
- package/dist/types/tests/yelp.test.d.ts.map +1 -0
- package/package.json +17 -4
- package/dist/types/tests/pixelated.api.test.d.ts +0 -2
- package/dist/types/tests/pixelated.api.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.callout.test.d.ts +0 -2
- package/dist/types/tests/pixelated.callout.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.carousel.test.d.ts +0 -2
- package/dist/types/tests/pixelated.carousel.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.menu-accordion.test.d.ts +0 -2
- package/dist/types/tests/pixelated.menu-accordion.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.menu-simple.test.d.ts +0 -2
- package/dist/types/tests/pixelated.menu-simple.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.nerdjoke.test.d.ts +0 -2
- package/dist/types/tests/pixelated.nerdjoke.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.recipe.test.d.ts +0 -2
- package/dist/types/tests/pixelated.recipe.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.resume.test.d.ts +0 -2
- package/dist/types/tests/pixelated.resume.test.d.ts.map +0 -1
- package/dist/types/tests/pixelated.socialcard.test.d.ts +0 -2
- package/dist/types/tests/pixelated.socialcard.test.d.ts.map +0 -1
|
@@ -146,6 +146,11 @@
|
|
|
146
146
|
background-color: transparent;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
.carousel-container .carousel-buttons button.carousel-button {
|
|
150
|
+
/* fix for buttonring microinteraction */
|
|
151
|
+
outline: none !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
149
154
|
.carousel-arrow,
|
|
150
155
|
.carousel-arrow-left,
|
|
151
156
|
.carousel-arrow-right {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
3
|
import PropTypes from "prop-types";
|
|
3
4
|
import "./loading.scss";
|
|
@@ -13,24 +14,24 @@ ToggleLoading.propTypes = {
|
|
|
13
14
|
show: PropTypes.bool,
|
|
14
15
|
};
|
|
15
16
|
export function ToggleLoading(props) {
|
|
16
|
-
if (typeof window
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
if (typeof window === 'undefined' || typeof document === 'undefined')
|
|
18
|
+
return;
|
|
19
|
+
const loadingElem = document.getElementById("loadingSpinner");
|
|
20
|
+
if (!loadingElem)
|
|
21
|
+
return;
|
|
22
|
+
if (props.show === true) {
|
|
23
|
+
loadingElem.style.display = "inline-block";
|
|
24
|
+
}
|
|
25
|
+
else if (props.show === false) {
|
|
26
|
+
loadingElem.style.display = "none";
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
// Toggle behavior
|
|
30
|
+
if (loadingElem.style.display === "none" || !loadingElem.style.display) {
|
|
21
31
|
loadingElem.style.display = "inline-block";
|
|
22
|
-
return;
|
|
23
|
-
} // Show content
|
|
24
|
-
if (props.show && props.show === false) {
|
|
25
|
-
loadingElem.style.display = "none";
|
|
26
|
-
return;
|
|
27
|
-
} // Hide content
|
|
28
|
-
if (loadingElem && loadingElem.style.display === "none") {
|
|
29
|
-
loadingElem.style.display = "inline-block"; // Show content
|
|
30
32
|
}
|
|
31
33
|
else {
|
|
32
|
-
|
|
33
|
-
loadingElem.style.display = "none"; // Hide content
|
|
34
|
+
loadingElem.style.display = "none";
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
}
|
|
@@ -140,7 +140,7 @@ export function MenuAccordion(props) {
|
|
|
140
140
|
document.removeEventListener('click', handleMenuClick);
|
|
141
141
|
};
|
|
142
142
|
}, []);
|
|
143
|
-
return (_jsx("div", { className: "accordionMenuWrapper accordionUp", children: _jsx("div", { className: "accordionMenu", id: "accordionMenu", children: _jsx(MenuAccordionGroup, { menuItems: menuItems, state: undefined }, "accordionRoot") }) }));
|
|
143
|
+
return (_jsx("div", { className: "accordionMenuWrapper accordionUp", suppressHydrationWarning: true, children: _jsx("div", { className: "accordionMenu", id: "accordionMenu", children: _jsx(MenuAccordionGroup, { menuItems: menuItems, state: undefined }, "accordionRoot") }) }));
|
|
144
144
|
}
|
|
145
145
|
/* ========== MENU GROUP ========== */
|
|
146
146
|
MenuAccordionGroup.propTypes = {
|
|
@@ -158,17 +158,9 @@ MenuAccordionItem.propTypes = {
|
|
|
158
158
|
target: PropTypes.string,
|
|
159
159
|
};
|
|
160
160
|
export function MenuAccordionItem(props) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
}
|
|
161
|
+
// Always render the same JSX structure to avoid hydration mismatch
|
|
162
|
+
// href will be undefined or an empty string, target might be undefined
|
|
163
|
+
return (_jsx("li", { children: _jsx("a", { href: props.href || undefined, target: props.target || undefined, children: props.name }) }, "menu-item-" + props.name));
|
|
172
164
|
}
|
|
173
165
|
/* ========== MENU BUTTON ========== */
|
|
174
166
|
/*
|
|
@@ -177,7 +169,10 @@ https://www.unclebigbay.com/blog/building-the-world-simplest-hamburger-with-html
|
|
|
177
169
|
MenuAccordionButton.propTypes = {};
|
|
178
170
|
export function MenuAccordionButton() {
|
|
179
171
|
function slideMobilePanel() {
|
|
180
|
-
window.moveMenu
|
|
172
|
+
if (typeof window !== 'undefined' && window.moveMenu) {
|
|
173
|
+
window.moveMenu();
|
|
174
|
+
}
|
|
181
175
|
}
|
|
182
|
-
|
|
176
|
+
// suppressHydrationWarning suppresses hydration mismatch warnings for this button
|
|
177
|
+
return (_jsx("button", { className: "panelMenuButton", id: "panelMenuButton", onClick: slideMobilePanel, suppressHydrationWarning: true, children: _jsx("span", { className: "hamburger text-outline", children: "|||" }) }));
|
|
183
178
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { useEffect } from 'react';
|
|
3
4
|
import PropTypes from "prop-types";
|
|
@@ -26,6 +27,8 @@ export function MenuSimple(props) {
|
|
|
26
27
|
return myItems;
|
|
27
28
|
}
|
|
28
29
|
function styleSelectedMenuItem() {
|
|
30
|
+
if (typeof window === 'undefined')
|
|
31
|
+
return;
|
|
29
32
|
const menuitems = document.querySelectorAll('.menu-item a');
|
|
30
33
|
const currentURL = window.location.href;
|
|
31
34
|
menuitems.forEach((menuitem) => {
|
|
@@ -48,9 +51,11 @@ MenuSimpleItem.propTypes = {
|
|
|
48
51
|
routes: PropTypes.array,
|
|
49
52
|
};
|
|
50
53
|
export function MenuSimpleItem(props) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
const classNames = ['menu-item'];
|
|
55
|
+
if (props.hidden) {
|
|
56
|
+
classNames.push('menu-item-hidden');
|
|
57
|
+
}
|
|
58
|
+
return (_jsx("li", { className: classNames.join(' '), children: props.target
|
|
54
59
|
? _jsx("a", { href: props.path || undefined, target: props.target, children: props.name })
|
|
55
60
|
: _jsx("a", { href: props.path || undefined, children: props.name }) }));
|
|
56
61
|
}
|
|
@@ -16,7 +16,7 @@ export function SaveLoadSection({ pageData, onLoad, apiEndpoint = '/api/pagebuil
|
|
|
16
16
|
// Fetch list of saved pages on mount
|
|
17
17
|
useEffect(() => {
|
|
18
18
|
fetchPages();
|
|
19
|
-
}, []);
|
|
19
|
+
}, [apiEndpoint]);
|
|
20
20
|
async function fetchPages() {
|
|
21
21
|
try {
|
|
22
22
|
const response = await fetch(`${apiEndpoint}/list`);
|
|
@@ -19,7 +19,7 @@ export function FourOhFour(props) {
|
|
|
19
19
|
// const cloudinaryURL = getCloudinaryRemoteFetchURL({ url: images[randomIndex].img, product_env:"dlbon7tpq" });
|
|
20
20
|
// setCloudinaryURL(cloudinaryURL);
|
|
21
21
|
setImageURL(images[randomIndex].img);
|
|
22
|
-
}, []);
|
|
22
|
+
}, [images]);
|
|
23
23
|
const config = usePixelatedConfig();
|
|
24
24
|
if (randomIndex !== null && imageURL /* cloudinaryURL */ !== '') {
|
|
25
25
|
return (_jsxs(_Fragment, { children: [_jsxs("div", { className: "fof-body-container", children: [_jsxs("h1", { className: "centered text-outline", children: ["404 - ", images[randomIndex].text] }), _jsx("div", { className: "centered-button", children: _jsx("a", { href: "/", target: "_self", rel: "noopener noreferrer", children: "Go Home" }) })] }), _jsx("div", { className: "fof-image-container", children: _jsx("div", { className: "fof-image-wrapper", children: _jsx(SmartImage, { src: imageURL,
|
|
@@ -245,7 +245,7 @@ export function AddToCartButton(props) {
|
|
|
245
245
|
useEffect(() => {
|
|
246
246
|
const myContent = _jsxs("div", { className: "centered", children: [_jsx("br", {}), _jsx("br", {}), "Item ", props.itemID, " has been added to your cart.", _jsx("br", {}), _jsx("br", {}), GoToCartButton({ href: "/cart", itemID: props.itemID }), _jsx("br", {}), _jsx("br", {})] });
|
|
247
247
|
setModalContent(myContent);
|
|
248
|
-
}, []);
|
|
248
|
+
}, [props.itemID]);
|
|
249
249
|
function handleClick(e) {
|
|
250
250
|
props.handler(props.item);
|
|
251
251
|
handleModalOpen(e.nativeEvent, "-" + props.itemID);
|
|
@@ -18,7 +18,7 @@ export function BuzzwordBingo(props) {
|
|
|
18
18
|
const [bingoWords, setBingoWords] = useState([]);
|
|
19
19
|
useEffect(() => {
|
|
20
20
|
setBingoWords(getBingoWords(buzzwords, 24));
|
|
21
|
-
}, []);
|
|
21
|
+
}, [buzzwords]);
|
|
22
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
23
|
}
|
|
24
24
|
BingoHeader.propTypes = {
|
|
@@ -143,7 +143,7 @@ export function RecipePickList(props) {
|
|
|
143
143
|
}
|
|
144
144
|
useEffect(() => {
|
|
145
145
|
setRecipeOptions(generateMyOptions());
|
|
146
|
-
}, []);
|
|
146
|
+
}, [props.recipeData, props.recipeCategories]);
|
|
147
147
|
return (_jsx("form", { children: _jsx("select", { id: "recipe-list", name: "recipe-list", onChange: recipeListChanged, children: recipeOptions }) }));
|
|
148
148
|
}
|
|
149
149
|
/* ========== RECIPE BACK TO TOP ========== */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/components/general/loading.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../../../src/components/general/loading.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,gBAAgB,CAAC;AASxB,wBAAgB,OAAO,4CAqBtB;AAKD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,QAkBrD;yBAlBe,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,sBAAsB,CAAC;AAE9B,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,MAAM,IAAI,CAAC;KACrB;CACD;AAED,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB,CAAA;AAmCD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,2CAyGrD;yBAzGe,aAAa;;;;;;AAoH7B,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,2CAO/D;yBAPe,kBAAkB;;;;;;AAkBlC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"menu-accordion.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-accordion.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,sBAAsB,CAAC;AAE9B,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,MAAM,IAAI,CAAC;KACrB;CACD;AAED,MAAM,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;CACpB,CAAA;AAmCD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAC,KAAK,EAAE,iBAAiB,2CAyGrD;yBAzGe,aAAa;;;;;;AAoH7B,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,2CAO/D;yBAPe,kBAAkB;;;;;;AAkBlC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,2CAQ7D;yBARe,iBAAiB;;;;;;;AAoBjC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,4CAmBlC;yBAnBe,mBAAmB"}
|
|
@@ -15,7 +15,7 @@ export declare namespace MenuSimple {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
export type MenuSimpleItemType = InferProps<typeof MenuSimpleItem.propTypes>;
|
|
18
|
-
export declare function MenuSimpleItem(props: MenuSimpleItemType): import("react/jsx-runtime").JSX.Element
|
|
18
|
+
export declare function MenuSimpleItem(props: MenuSimpleItemType): import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
export declare namespace MenuSimpleItem {
|
|
20
20
|
var propTypes: {
|
|
21
21
|
name: PropTypes.Validator<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-simple.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-simple.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"menu-simple.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-simple.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,mBAAmB,CAAC;AAc3B,wBAAgB,UAAU,CAAC,KAAK,EAAE;IAAE,SAAS,EAAE,kBAAkB,EAAE,CAAA;CAAE,2CAsCpE;yBAtCe,UAAU;;;;;;;;;;;AAkD1B,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,SAAS,CAAC,CAAC;AAC7E,wBAAgB,cAAc,CAAC,KAAK,EAAE,kBAAkB,2CAavD;yBAbe,cAAc"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../../../src/tests/api.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buzzwordbingo.test.d.ts","sourceRoot":"","sources":["../../../src/tests/buzzwordbingo.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendly.test.d.ts","sourceRoot":"","sources":["../../../src/tests/calendly.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout.test.d.ts","sourceRoot":"","sources":["../../../src/tests/callout.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-drag.test.d.ts","sourceRoot":"","sources":["../../../src/tests/carousel-drag.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel.test.d.ts","sourceRoot":"","sources":["../../../src/tests/carousel.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudinary-image.test.d.ts","sourceRoot":"","sources":["../../../src/tests/cloudinary-image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cloudinary.test.d.ts","sourceRoot":"","sources":["../../../src/tests/cloudinary.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.client.test.d.ts","sourceRoot":"","sources":["../../../src/tests/config.client.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.server.test.d.ts","sourceRoot":"","sources":["../../../src/tests/config.server.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentful-items.test.d.ts","sourceRoot":"","sources":["../../../src/tests/contentful-items.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contentful.delivery.test.d.ts","sourceRoot":"","sources":["../../../src/tests/contentful.delivery.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.test.d.ts","sourceRoot":"","sources":["../../../src/tests/css.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ebay.test.d.ts","sourceRoot":"","sources":["../../../src/tests/ebay.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../../../src/tests/form.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formcomponents.test.d.ts","sourceRoot":"","sources":["../../../src/tests/formcomponents.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formvalidations.test.d.ts","sourceRoot":"","sources":["../../../src/tests/formvalidations.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.test.d.ts","sourceRoot":"","sources":["../../../src/tests/functions.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-analytics.test.d.ts","sourceRoot":"","sources":["../../../src/tests/google-analytics.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-map.test.d.ts","sourceRoot":"","sources":["../../../src/tests/google-map.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-reviews.test.d.ts","sourceRoot":"","sources":["../../../src/tests/google-reviews.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googlesearch.test.d.ts","sourceRoot":"","sources":["../../../src/tests/googlesearch.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gravatar.test.d.ts","sourceRoot":"","sources":["../../../src/tests/gravatar.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubspot.test.d.ts","sourceRoot":"","sources":["../../../src/tests/hubspot.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.test.d.ts","sourceRoot":"","sources":["../../../src/tests/image.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instagram.test.d.ts","sourceRoot":"","sources":["../../../src/tests/instagram.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.test.d.ts","sourceRoot":"","sources":["../../../src/tests/loading.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.test.d.ts","sourceRoot":"","sources":["../../../src/tests/markdown.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-accordion.test.d.ts","sourceRoot":"","sources":["../../../src/tests/menu-accordion.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-expando.test.d.ts","sourceRoot":"","sources":["../../../src/tests/menu-expando.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-simple.test.d.ts","sourceRoot":"","sources":["../../../src/tests/menu-simple.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.components.test.d.ts","sourceRoot":"","sources":["../../../src/tests/metadata.components.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"microinteractions.test.d.ts","sourceRoot":"","sources":["../../../src/tests/microinteractions.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.test.d.ts","sourceRoot":"","sources":["../../../src/tests/modal.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nerdjoke.test.d.ts","sourceRoot":"","sources":["../../../src/tests/nerdjoke.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paypal.test.d.ts","sourceRoot":"","sources":["../../../src/tests/paypal.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixelated.menu-expando.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.menu-expando.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.test.d.ts","sourceRoot":"","sources":["../../../src/tests/recipe.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resume.test.d.ts","sourceRoot":"","sources":["../../../src/tests/resume.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semantic.test.d.ts","sourceRoot":"","sources":["../../../src/tests/semantic.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../../src/tests/setup.ts"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shopping-cart.test.d.ts","sourceRoot":"","sources":["../../../src/tests/shopping-cart.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shoppingcart.components.test.d.ts","sourceRoot":"","sources":["../../../src/tests/shoppingcart.components.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shoppingcart.functions.test.d.ts","sourceRoot":"","sources":["../../../src/tests/shoppingcart.functions.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidepanel.test.d.ts","sourceRoot":"","sources":["../../../src/tests/sidepanel.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"socialcard.test.d.ts","sourceRoot":"","sources":["../../../src/tests/socialcard.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.test.d.ts","sourceRoot":"","sources":["../../../src/tests/table.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiles.test.d.ts","sourceRoot":"","sources":["../../../src/tests/tiles.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.test.d.ts","sourceRoot":"","sources":["../../../src/tests/timeline.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wordpress.test.d.ts","sourceRoot":"","sources":["../../../src/tests/wordpress.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yelp.test.d.ts","sourceRoot":"","sources":["../../../src/tests/yelp.test.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelated-tech/components",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pixelated Technologies",
|
|
@@ -64,7 +64,10 @@
|
|
|
64
64
|
"build2template": "npm run build && rm -rf ../pixelated-template/node_modules/@pixelated-tech/components/dist && cp -r dist ../pixelated-template/node_modules/@pixelated-tech/components/",
|
|
65
65
|
"storybook": "rm -rf node_modules/.cache && storybook dev -p 6006",
|
|
66
66
|
"buildStorybook": "rm -rf node_modules/.cache && storybook build",
|
|
67
|
-
"test": "
|
|
67
|
+
"test": "vitest",
|
|
68
|
+
"test:ui": "vitest --ui",
|
|
69
|
+
"test:coverage": "vitest run --coverage",
|
|
70
|
+
"test:run": "vitest run",
|
|
68
71
|
"lint": "eslint --fix"
|
|
69
72
|
},
|
|
70
73
|
"scripts-old": {
|
|
@@ -89,12 +92,18 @@
|
|
|
89
92
|
"@storybook/addon-webpack5-compiler-babel": "^4.0.0",
|
|
90
93
|
"@storybook/preset-scss": "^1.0.3",
|
|
91
94
|
"@storybook/react-webpack5": "^10.1.6",
|
|
95
|
+
"@testing-library/dom": "^10.4.1",
|
|
96
|
+
"@testing-library/react": "^16.3.0",
|
|
97
|
+
"@testing-library/user-event": "^14.6.1",
|
|
92
98
|
"@types/md5": "^2.3.6",
|
|
93
|
-
"@types/node": "^
|
|
99
|
+
"@types/node": "^25.0.0",
|
|
94
100
|
"@types/prop-types": "^15.7.15",
|
|
95
101
|
"@types/react": "^19.2.7",
|
|
96
102
|
"@types/react-dom": "^19.2.3",
|
|
97
103
|
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
104
|
+
"@vitejs/plugin-react": "^5.1.2",
|
|
105
|
+
"@vitest/coverage-v8": "^4.0.15",
|
|
106
|
+
"@vitest/ui": "^4.0.15",
|
|
98
107
|
"ajv": "^8.17.1",
|
|
99
108
|
"ajv-keywords": "^5.1.0",
|
|
100
109
|
"babel-loader": "^10.0.0",
|
|
@@ -110,6 +119,8 @@
|
|
|
110
119
|
"eslint-plugin-react": "^7.37.4",
|
|
111
120
|
"eslint-plugin-storybook": "^10.1.6",
|
|
112
121
|
"file-loader": "^6.2.0",
|
|
122
|
+
"happy-dom": "^20.0.11",
|
|
123
|
+
"jsdom": "^27.3.0",
|
|
113
124
|
"less-loader": "^12.3.0",
|
|
114
125
|
"mini-css-extract-plugin": "^2.9.4",
|
|
115
126
|
"next": "^16.0.8",
|
|
@@ -117,13 +128,15 @@
|
|
|
117
128
|
"prop-types": "^15.8.1",
|
|
118
129
|
"react": "^19.2.1",
|
|
119
130
|
"react-dom": "^19.2.1",
|
|
120
|
-
"
|
|
131
|
+
"react-test-renderer": "^19.2.1",
|
|
132
|
+
"sass": "^1.96.0",
|
|
121
133
|
"sass-loader": "^16.0.6",
|
|
122
134
|
"storybook": "^10.1.6",
|
|
123
135
|
"style-loader": "^4.0.0",
|
|
124
136
|
"ts-loader": "^9.5.4",
|
|
125
137
|
"typescript": "^5.9.3",
|
|
126
138
|
"url-loader": "^4.1.1",
|
|
139
|
+
"vitest": "^4.0.15",
|
|
127
140
|
"webpack": "^5.103.0",
|
|
128
141
|
"webpack-cli": "^6.0.1",
|
|
129
142
|
"webpack-dev-server": "^5.2.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.api.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.api.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.callout.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.callout.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.carousel.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.carousel.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.menu-accordion.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.menu-accordion.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.menu-simple.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.menu-simple.test.jsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.nerdjoke.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.nerdjoke.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.recipe.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.recipe.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.resume.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.resume.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pixelated.socialcard.test.d.ts","sourceRoot":"","sources":["../../../src/tests/pixelated.socialcard.test.js"],"names":[],"mappings":""}
|