@ed.yakovich/component-library 0.0.1
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 +53 -0
- package/dist/components/Accordion/context/index.js +7 -0
- package/dist/components/Accordion/index.js +38 -0
- package/dist/components/Accordion/types/index.js +1 -0
- package/dist/components/Cart/index.js +35 -0
- package/dist/components/EquipmentSummary/context/index.js +10 -0
- package/dist/components/EquipmentSummary/index.js +65 -0
- package/dist/components/EquipmentSummary/types/index.js +1 -0
- package/dist/components/Grid/index.js +19 -0
- package/dist/components/HeroBanner/context/index.js +7 -0
- package/dist/components/HeroBanner/index.js +33 -0
- package/dist/components/HeroBanner/types/index.js +1 -0
- package/dist/components/InfoBanner/context/index.js +7 -0
- package/dist/components/InfoBanner/index.js +26 -0
- package/dist/components/InfoBanner/types/index.js +1 -0
- package/dist/components/Nav/index.js +23 -0
- package/dist/components/OfferCards/context/index.js +7 -0
- package/dist/components/OfferCards/index.js +30 -0
- package/dist/components/OfferCards/subComponents/OfferCard.js +62 -0
- package/dist/components/OfferCards/types/index.js +1 -0
- package/dist/components/SaleBanner/context/index.js +7 -0
- package/dist/components/SaleBanner/index.js +59 -0
- package/dist/components/SaleBanner/types/index.js +1 -0
- package/dist/components/StickyFooter/index.js +11 -0
- package/dist/index-0d8e0844-BJzWsYCM.js +7403 -0
- package/dist/index-C9Rf5U9q.js +29143 -0
- package/dist/index-b30029d4-E1YxEHFH.js +12 -0
- package/dist/index-e6818ded-r_t6ryaW.js +57 -0
- package/dist/index.esm-322571ff-D1REhsOg.js +41 -0
- package/dist/lib/components/Accordion/context/index.d.ts +10 -0
- package/dist/lib/components/Accordion/index.d.ts +2 -0
- package/dist/lib/components/Accordion/types/index.d.ts +13 -0
- package/dist/lib/components/Cart/index.d.ts +6 -0
- package/dist/lib/components/EquipmentSummary/context/index.d.ts +10 -0
- package/dist/lib/components/EquipmentSummary/index.d.ts +2 -0
- package/dist/lib/components/EquipmentSummary/types/index.d.ts +14 -0
- package/dist/lib/components/Grid/index.d.ts +13 -0
- package/dist/lib/components/HeroBanner/context/index.d.ts +10 -0
- package/dist/lib/components/HeroBanner/index.d.ts +2 -0
- package/dist/lib/components/HeroBanner/types/index.d.ts +11 -0
- package/dist/lib/components/InfoBanner/context/index.d.ts +10 -0
- package/dist/lib/components/InfoBanner/index.d.ts +2 -0
- package/dist/lib/components/InfoBanner/types/index.d.ts +7 -0
- package/dist/lib/components/Nav/index.d.ts +8 -0
- package/dist/lib/components/OfferCards/context/index.d.ts +9 -0
- package/dist/lib/components/OfferCards/index.d.ts +2 -0
- package/dist/lib/components/OfferCards/subComponents/OfferCard.d.ts +3 -0
- package/dist/lib/components/OfferCards/types/index.d.ts +26 -0
- package/dist/lib/components/SaleBanner/context/index.d.ts +10 -0
- package/dist/lib/components/SaleBanner/index.d.ts +2 -0
- package/dist/lib/components/SaleBanner/types/index.d.ts +11 -0
- package/dist/lib/components/StickyFooter/index.d.ts +7 -0
- package/dist/lib/main.d.ts +16 -0
- package/dist/link-DO_Jvm9n.js +685 -0
- package/dist/main.js +34 -0
- package/dist/prism-accordion.entry-DeyFGNx-.js +51 -0
- package/dist/prism-avatar_2.entry-MLbdVrJg.js +68 -0
- package/dist/prism-badge.entry-BG5y7O5U.js +58 -0
- package/dist/prism-banner.entry-DChrjpFH.js +82 -0
- package/dist/prism-breadcrumb.entry-1YzYlKen.js +33 -0
- package/dist/prism-button_2.entry-DO8IGIoS.js +110 -0
- package/dist/prism-card.entry-DQ6P4TZP.js +119 -0
- package/dist/prism-carousel.entry-BA8zsHRW.js +3111 -0
- package/dist/prism-checkbox-group.entry-CP4-gghb.js +62 -0
- package/dist/prism-checkbox.entry-CJCy8fvC.js +99 -0
- package/dist/prism-data-table.entry--0djw8ls.js +10475 -0
- package/dist/prism-datepicker.entry-DPm7tpKB.js +249 -0
- package/dist/prism-form.entry-CS1zRoMt.js +42 -0
- package/dist/prism-grid.entry-jcx2aMUm.js +28 -0
- package/dist/prism-header.entry-CBSIpa0M.js +202 -0
- package/dist/prism-hero.entry-B0CKL5y9.js +23 -0
- package/dist/prism-icon_2.entry-Aja4QGUK.js +118 -0
- package/dist/prism-image.entry-B--khr6E.js +38 -0
- package/dist/prism-input-file.entry-i5qJkwEK.js +119 -0
- package/dist/prism-input-otp.entry-DXoARuzH.js +63 -0
- package/dist/prism-input-text.entry-D4QQ-dYX.js +228 -0
- package/dist/prism-input-textarea.entry-eeQHnhqC.js +140 -0
- package/dist/prism-layout.entry-bfKqOEnU.js +20 -0
- package/dist/prism-lineitem.entry-YIRZPVe_.js +44 -0
- package/dist/prism-menu.entry-BIlRCiaA.js +231 -0
- package/dist/prism-modal.entry-Kc-SpAR-.js +94 -0
- package/dist/prism-pagination.entry-BCo9aMdq.js +60 -0
- package/dist/prism-popover.entry-LmDvzCiR.js +1013 -0
- package/dist/prism-popper.entry-BqrcyTkE.js +959 -0
- package/dist/prism-progress.entry-29_ezvop.js +79 -0
- package/dist/prism-radio-group.entry-cL6AqjTk.js +66 -0
- package/dist/prism-radio.entry-CM_vZFZA.js +101 -0
- package/dist/prism-select.entry-B6A3gk7B.js +230 -0
- package/dist/prism-switch.entry-CtEfKB58.js +95 -0
- package/dist/prism-tab.entry-DIDUhFlk.js +20 -0
- package/dist/prism-tabs.entry-Cj3dW5_E.js +70 -0
- package/dist/prism-tooltip.entry-DEdY5eRd.js +52 -0
- package/dist/prism-typeahead.entry-D2XrvXaG.js +1234 -0
- package/package.json +56 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { h as s } from "./index-C9Rf5U9q.js";
|
|
2
|
+
/*!
|
|
3
|
+
* Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
|
|
4
|
+
*/
|
|
5
|
+
const t = () => s(
|
|
6
|
+
"sup",
|
|
7
|
+
{ class: "ml-0.5" },
|
|
8
|
+
s("prism-icon", { theme: "fill", name: "asterisk", size: "custom", style: { "--icon-width": "12px", "--icon-height": "12px" } })
|
|
9
|
+
);
|
|
10
|
+
export {
|
|
11
|
+
t as A
|
|
12
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
|
|
3
|
+
*/
|
|
4
|
+
const s = (t) => t.toLocaleLowerCase("en-US"), c = (t) => s(t).replace(/\s+/g, "-"), d = (t) => [...Array.from(t == null ? void 0 : t.querySelectorAll('a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])'))].filter((o) => !o.hasAttribute("disabled")), x = (t) => {
|
|
5
|
+
let o = t.getBoundingClientRect(), e = {};
|
|
6
|
+
return e.top = o.top <= 0, e.left = o.left <= 0, e.bottom = o.bottom >= (window.innerHeight || document.documentElement.clientHeight), e.right = o.right >= (window.innerWidth || document.documentElement.clientWidth), e.any = e.top || e.left || e.bottom || e.right, e.all = e.top && e.left && e.bottom && e.right, e.values = o, e;
|
|
7
|
+
}, u = (t) => {
|
|
8
|
+
t.removeAttribute("aria-hidden"), t.removeAttribute("tabindex");
|
|
9
|
+
}, g = (t) => {
|
|
10
|
+
t.setAttribute("aria-hidden", "true"), t.setAttribute("tabindex", "-1");
|
|
11
|
+
}, p = (t, o) => {
|
|
12
|
+
let e = {
|
|
13
|
+
tag: t
|
|
14
|
+
// props: {},
|
|
15
|
+
};
|
|
16
|
+
const n = new CustomEvent("prism-component-connected", {
|
|
17
|
+
detail: e
|
|
18
|
+
});
|
|
19
|
+
document.dispatchEvent(n);
|
|
20
|
+
}, m = {
|
|
21
|
+
xs: { w: 16, h: 16 },
|
|
22
|
+
sm: { w: 24, h: 24 },
|
|
23
|
+
md: { w: 32, h: 32 },
|
|
24
|
+
lg: { w: 48, h: 48 },
|
|
25
|
+
xl: { w: 72, h: 72 },
|
|
26
|
+
custom: { w: 0, h: 0 }
|
|
27
|
+
}, b = () => {
|
|
28
|
+
let t = (/* @__PURE__ */ new Date()).getTime();
|
|
29
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (e) => {
|
|
30
|
+
const n = (t + Math.random() * 16) % 16 | 0;
|
|
31
|
+
return t = Math.floor(t / 16), (e === "x" ? n : n & 3 | 8).toString(16);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
function h(t, o) {
|
|
35
|
+
let e = "";
|
|
36
|
+
for (let n = 0; n < t.length; n++)
|
|
37
|
+
o.includes(t[n]) || (e += t[n]);
|
|
38
|
+
return e;
|
|
39
|
+
}
|
|
40
|
+
const i = (t, o, e) => {
|
|
41
|
+
console.info(`%c💎 Prism UI Component - ${e}:%cThe %c${t} %c${o}`, "font-size:12px; font-weight:bold; color:rgb(20, 20, 23); padding:2px; background-color:rgb(217, 225, 242);", "font-size:12px; margin-left:4px; padding:2px;", "font-size:12px; font-weight:bolder;", "font-size:12px; padding:2px;");
|
|
42
|
+
}, f = (t, o) => {
|
|
43
|
+
var e;
|
|
44
|
+
typeof Storage < "u" && (!((e = JSON.parse(localStorage.getItem("@prism-ui/settings"))) === null || e === void 0) && e.notices) && i(t, o, "Deprecation Notice");
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
d as a,
|
|
48
|
+
g as b,
|
|
49
|
+
m as c,
|
|
50
|
+
f as d,
|
|
51
|
+
u as e,
|
|
52
|
+
b as g,
|
|
53
|
+
x as i,
|
|
54
|
+
p as m,
|
|
55
|
+
h as r,
|
|
56
|
+
c as u
|
|
57
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
|
|
3
|
+
*/
|
|
4
|
+
function x(c, o, t) {
|
|
5
|
+
var v, l, r;
|
|
6
|
+
o === void 0 && (o = 50), t === void 0 && (t = {});
|
|
7
|
+
var f = (v = t.isImmediate) != null && v, i = (l = t.callback) != null && l, u = t.maxWait, s = Date.now(), n = [];
|
|
8
|
+
function w() {
|
|
9
|
+
if (u !== void 0) {
|
|
10
|
+
var e = Date.now() - s;
|
|
11
|
+
if (e + o >= u) return u - e;
|
|
12
|
+
}
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
var d = function() {
|
|
16
|
+
var e = [].slice.call(arguments), a = this;
|
|
17
|
+
return new Promise(function(m, D) {
|
|
18
|
+
var T = f && r === void 0;
|
|
19
|
+
if (r !== void 0 && clearTimeout(r), r = setTimeout(function() {
|
|
20
|
+
if (r = void 0, s = Date.now(), !f) {
|
|
21
|
+
var h = c.apply(a, e);
|
|
22
|
+
i && i(h), n.forEach(function(j) {
|
|
23
|
+
return (0, j.resolve)(h);
|
|
24
|
+
}), n = [];
|
|
25
|
+
}
|
|
26
|
+
}, w()), T) {
|
|
27
|
+
var p = c.apply(a, e);
|
|
28
|
+
return i && i(p), m(p);
|
|
29
|
+
}
|
|
30
|
+
n.push({ resolve: m, reject: D });
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
return d.cancel = function(e) {
|
|
34
|
+
r !== void 0 && clearTimeout(r), n.forEach(function(a) {
|
|
35
|
+
return (0, a.reject)(e);
|
|
36
|
+
}), n = [];
|
|
37
|
+
}, d;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
x as r
|
|
41
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AccordionType } from '../types';
|
|
3
|
+
type AccordionContextData = AccordionType;
|
|
4
|
+
type AccordionContextProviderProps = {
|
|
5
|
+
model: AccordionContextData;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const useAccordionContext: () => AccordionType;
|
|
9
|
+
export declare const AccordionContextProvider: ({ model, children }: AccordionContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type AccordionType = {
|
|
3
|
+
isHidden?: boolean;
|
|
4
|
+
componentId?: string;
|
|
5
|
+
collapsed?: boolean;
|
|
6
|
+
description?: string;
|
|
7
|
+
iconPosition?: 'left' | 'right';
|
|
8
|
+
label?: string;
|
|
9
|
+
labelSecondary?: string;
|
|
10
|
+
onClick?: (event: unknown) => void;
|
|
11
|
+
tone?: unknown;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { EquipmentSummaryType } from '../types';
|
|
3
|
+
type EquipmentSummaryContextData = EquipmentSummaryType;
|
|
4
|
+
type EquipmentSummaryContextProviderProps = {
|
|
5
|
+
model: EquipmentSummaryContextData;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const useEquipmentSummaryContext: () => EquipmentSummaryType;
|
|
9
|
+
export declare const EquipmentSummaryContextProvider: ({ model, children, }: EquipmentSummaryContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type EquipmentSummaryType = {
|
|
2
|
+
isHidden?: boolean;
|
|
3
|
+
isLoading?: boolean;
|
|
4
|
+
componentId?: string;
|
|
5
|
+
heading?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
equipmentList?: {
|
|
8
|
+
id: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
actionType: 'retain' | 'return' | 'keep';
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type GridProps = {
|
|
3
|
+
flushX?: boolean;
|
|
4
|
+
flushY?: boolean;
|
|
5
|
+
maxWidth?: string;
|
|
6
|
+
maxColAmount?: '4' | '3' | '2' | '1';
|
|
7
|
+
colSpan?: string;
|
|
8
|
+
gapX?: string;
|
|
9
|
+
gapY?: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
export declare const Grid: (props: GridProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { HeroBannerType } from '../types';
|
|
3
|
+
type HeroBannerContextData = HeroBannerType;
|
|
4
|
+
type HeroBannerContextProviderProps = {
|
|
5
|
+
model: HeroBannerContextData;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const useHeroBannerContext: () => HeroBannerType;
|
|
9
|
+
export declare const HeroBannerContextProvider: ({ model, children }: HeroBannerContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { InfoBannerType } from '../types';
|
|
3
|
+
type InfoBannerContextData = InfoBannerType;
|
|
4
|
+
type InfoBannerContextProviderProps = {
|
|
5
|
+
model: InfoBannerContextData;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const useInfoBannerContext: () => InfoBannerType;
|
|
9
|
+
export declare const InfoBannerContextProvider: ({ model, children }: InfoBannerContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { OfferCardsType } from '../types';
|
|
3
|
+
type OfferCardsContextProviderProps = {
|
|
4
|
+
model: OfferCardsType;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export declare const useOfferCardsContext: () => OfferCardsType;
|
|
8
|
+
export declare const OfferCardsContextProvider: ({ model, children }: OfferCardsContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type OfferCardType = {
|
|
2
|
+
id: string;
|
|
3
|
+
icon: string;
|
|
4
|
+
heading: string;
|
|
5
|
+
description: string;
|
|
6
|
+
iconList?: {
|
|
7
|
+
icon?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}[];
|
|
10
|
+
price: number;
|
|
11
|
+
buttonLabel: string;
|
|
12
|
+
buttonHref?: string;
|
|
13
|
+
buttonDisabled?: boolean;
|
|
14
|
+
perMonth?: boolean;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
handleOfferCardAction?: (id: string) => void;
|
|
17
|
+
};
|
|
18
|
+
export type OfferCardsType = {
|
|
19
|
+
isHidden?: boolean;
|
|
20
|
+
isLoading?: boolean;
|
|
21
|
+
componentId?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
heading?: string;
|
|
24
|
+
handleOfferCardAction?: (id: string) => void;
|
|
25
|
+
offerCardList?: OfferCardType[];
|
|
26
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SaleBannerType } from '../types';
|
|
3
|
+
type SaleBannerContextData = SaleBannerType;
|
|
4
|
+
type SaleBannerContextProviderProps = {
|
|
5
|
+
model: SaleBannerContextData;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const useSaleBannerContext: () => SaleBannerType;
|
|
9
|
+
export declare const SaleBannerContextProvider: ({ model, children }: SaleBannerContextProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { Accordion } from './components/Accordion';
|
|
2
|
+
export { AccordionContextProvider } from './components/Accordion/context';
|
|
3
|
+
export { Cart } from './components/Cart';
|
|
4
|
+
export { EquipmentSummary } from './components/EquipmentSummary';
|
|
5
|
+
export { EquipmentSummaryContextProvider } from './components/EquipmentSummary/context';
|
|
6
|
+
export { Grid } from './components/Grid';
|
|
7
|
+
export { HeroBanner } from './components/HeroBanner';
|
|
8
|
+
export { HeroBannerContextProvider } from './components/HeroBanner/context';
|
|
9
|
+
export { InfoBanner } from './components/InfoBanner';
|
|
10
|
+
export { InfoBannerContextProvider } from './components/InfoBanner/context';
|
|
11
|
+
export { Nav } from './components/Nav';
|
|
12
|
+
export { OfferCards } from './components/OfferCards';
|
|
13
|
+
export { OfferCardsContextProvider } from './components/OfferCards/context';
|
|
14
|
+
export { SaleBanner } from './components/SaleBanner';
|
|
15
|
+
export { SaleBannerContextProvider } from './components/SaleBanner/context';
|
|
16
|
+
export { StickyFooter } from './components/StickyFooter';
|