@ed.yakovich/example-component-library-equipment-summary 1.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.
Files changed (52) hide show
  1. package/dist/component/context/index.js +10 -0
  2. package/dist/component/index.js +6 -0
  3. package/dist/component/types/index.js +1 -0
  4. package/dist/index-0d8e0844-BJzWsYCM.js +7403 -0
  5. package/dist/index-DxRZ6prf.js +29198 -0
  6. package/dist/index-b30029d4-hGeLy_--.js +12 -0
  7. package/dist/index-e6818ded-r_t6ryaW.js +57 -0
  8. package/dist/index.esm-322571ff-D1REhsOg.js +41 -0
  9. package/dist/lib/component/context/index.d.ts +10 -0
  10. package/dist/lib/component/index.d.ts +2 -0
  11. package/dist/lib/component/types/index.d.ts +14 -0
  12. package/dist/lib/main.d.ts +3 -0
  13. package/dist/main.js +6 -0
  14. package/dist/prism-accordion.entry-BxELizsS.js +51 -0
  15. package/dist/prism-avatar_2.entry-DNiQeemV.js +68 -0
  16. package/dist/prism-badge.entry-BZ3qPCmg.js +58 -0
  17. package/dist/prism-banner.entry-CQFUsFct.js +82 -0
  18. package/dist/prism-breadcrumb.entry-D3f9eccN.js +33 -0
  19. package/dist/prism-button_2.entry-BeBH5mn0.js +110 -0
  20. package/dist/prism-card.entry-BtruBogB.js +119 -0
  21. package/dist/prism-carousel.entry-DGsHMWMm.js +3111 -0
  22. package/dist/prism-checkbox-group.entry-8qXingIs.js +62 -0
  23. package/dist/prism-checkbox.entry-BgBJyUsA.js +99 -0
  24. package/dist/prism-data-table.entry-BqDb3MTy.js +10475 -0
  25. package/dist/prism-datepicker.entry-D_TgrYQo.js +249 -0
  26. package/dist/prism-form.entry-DtZpPyt1.js +42 -0
  27. package/dist/prism-grid.entry-B09w_u17.js +28 -0
  28. package/dist/prism-header.entry-Dg1LLjAa.js +202 -0
  29. package/dist/prism-hero.entry-CxCl08Ny.js +23 -0
  30. package/dist/prism-icon_2.entry-C9c3WUVv.js +118 -0
  31. package/dist/prism-image.entry-LtD_rMcm.js +38 -0
  32. package/dist/prism-input-file.entry-wHvgU7qk.js +119 -0
  33. package/dist/prism-input-otp.entry-DslD9N9q.js +63 -0
  34. package/dist/prism-input-text.entry-DXD4hb3c.js +228 -0
  35. package/dist/prism-input-textarea.entry-BKa_ksFS.js +140 -0
  36. package/dist/prism-layout.entry-DCsBmhx4.js +20 -0
  37. package/dist/prism-lineitem.entry-BM1G7KrG.js +44 -0
  38. package/dist/prism-menu.entry-BOHwsSEF.js +231 -0
  39. package/dist/prism-modal.entry-lNtEVneh.js +94 -0
  40. package/dist/prism-pagination.entry-CquOlgO0.js +60 -0
  41. package/dist/prism-popover.entry-46M1LmDp.js +1013 -0
  42. package/dist/prism-popper.entry-Dva30zBQ.js +959 -0
  43. package/dist/prism-progress.entry-DMMVFWhO.js +79 -0
  44. package/dist/prism-radio-group.entry-CMbyeNEC.js +66 -0
  45. package/dist/prism-radio.entry-8eXYAxvv.js +101 -0
  46. package/dist/prism-select.entry-u6Q0TwuA.js +230 -0
  47. package/dist/prism-switch.entry-B0Fg-f-f.js +95 -0
  48. package/dist/prism-tab.entry-Cb1TgCNq.js +20 -0
  49. package/dist/prism-tabs.entry-C8aDT5py.js +70 -0
  50. package/dist/prism-tooltip.entry-BRIs8zP0.js +52 -0
  51. package/dist/prism-typeahead.entry-DPz5X3J9.js +1234 -0
  52. package/package.json +49 -0
@@ -0,0 +1,12 @@
1
+ import { h as s } from "./index-DxRZ6prf.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 { 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,2 @@
1
+ import { EquipmentSummaryType } from './types';
2
+ export declare const EquipmentSummary: (props: EquipmentSummaryType) => import("react/jsx-runtime").JSX.Element | null;
@@ -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,3 @@
1
+ export { EquipmentSummary } from './component';
2
+ export { EquipmentSummaryContextProvider } from './component/context';
3
+ export type { EquipmentSummaryType } from './component/types';
package/dist/main.js ADDED
@@ -0,0 +1,6 @@
1
+ import { E as e } from "./index-DxRZ6prf.js";
2
+ import { EquipmentSummaryContextProvider as t } from "./component/context/index.js";
3
+ export {
4
+ e as EquipmentSummary,
5
+ t as EquipmentSummaryContextProvider
6
+ };
@@ -0,0 +1,51 @@
1
+ import { r as i, c as n, h as e, H as s, g as l } from "./index-DxRZ6prf.js";
2
+ import { g as c, a as d, m as b } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const g = ':host{border-radius:var(--border-radius-small,4px);display:block;width:100%}:host(.stacked-top){margin-top:.25rem}:host(.stacked-bottom){margin-bottom:.25rem}.text{display:grid;grid-template-areas:"label" "label-secondary" "description";grid-template-columns:auto;grid-template-rows:-webkit-max-content -webkit-max-content -webkit-max-content;grid-template-rows:max-content max-content max-content;width:100%}@media (min-width:768px){.text{grid-template-areas:"label label-secondary" "description description";grid-template-columns:1fr -webkit-max-content;grid-template-columns:1fr max-content;grid-template-rows:-webkit-max-content -webkit-max-content;grid-template-rows:max-content max-content}}.description{grid-area:description}.label{flex:1 1 auto;grid-area:label;text-align:left}.label-secondary{grid-area:label-secondary;margin-top:.25rem}@media (min-width:768px){.label-secondary{margin-top:0}}.trigger{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--background-color-transparent,transparent);border-radius:var(--border-radius-small,4px);border-width:0;display:flex;outline-color:var(--outline-color-transparent,transparent);outline-style:solid;outline-width:2px;padding:1.5rem 1rem;text-align:left;transition:background-color,border-color,outline,border-radius,outline-color .2s ease-in;width:100%}@media (min-width:768px){.trigger{padding:1.5rem}}.trigger:hover{cursor:pointer}.trigger:focus-visible{outline-color:var(--outline-color-theme1-base,#5a23b9)}:host(.neutral){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-neutral-base-shadow);background-color:rgb(var(--background-color-material-neutral-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-neutral-base)/var(--tw-text-opacity))}:host(.neutral2){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-neutral2-base-shadow);background-color:rgb(var(--background-color-material-neutral2-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-neutral-base)/var(--tw-text-opacity))}:host(.neutral-inverse){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-neutral-inverse-base-shadow);background-color:rgb(var(--background-color-material-neutral-inverse-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}:host(.neutral2-inverse){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-neutral2-inverse-base-shadow);background-color:rgb(var(--background-color-material-neutral2-inverse-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}:host(.neutral) .trigger,:host(.neutral2) .trigger{--tw-text-opacity:1;color:rgb(var(--text-color-neutral-base)/var(--tw-text-opacity))}:host(.neutral-inverse) .trigger,:host(.neutral2-inverse) .trigger{--tw-text-opacity:1;color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}:host(.neutral) .trigger:hover{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-hover-shadow);background-color:rgb(var(--background-color-material-neutral-hover)/var(--tw-bg-opacity))}:host(.neutral) .trigger:focus-visible{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-focus-shadow);background-color:rgb(var(--background-color-material-neutral-focus)/var(--tw-bg-opacity))}:host(.neutral2) .trigger:hover{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-hover-shadow);background-color:rgb(var(--background-color-material-neutral2-hover)/var(--tw-bg-opacity))}:host(.neutral2) .trigger:focus-visible{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-focus-shadow);background-color:rgb(var(--background-color-material-neutral2-focus)/var(--tw-bg-opacity))}:host(.neutral-inverse) .trigger:hover{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-inverse-hover-shadow);background-color:rgb(var(--background-color-material-neutral-inverse-hover)/var(--tw-bg-opacity))}:host(.neutral-inverse) .trigger:focus-visible{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-inverse-focus-shadow);background-color:rgb(var(--background-color-material-neutral-inverse-focus)/var(--tw-bg-opacity))}:host(.neutral2-inverse) .trigger:hover{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-inverse-hover-shadow);background-color:rgb(var(--background-color-material-neutral2-inverse-hover)/var(--tw-bg-opacity))}:host(.neutral2-inverse) .trigger:focus-visible{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-inverse-focus-shadow);background-color:rgb(var(--background-color-material-neutral2-inverse-focus)/var(--tw-bg-opacity))}.expandable-content.visible{grid-template-rows:1fr;overflow:visible}.expandable-content.visible .content-wrapper{opacity:1;visibility:visible}.expandable-content{--text-body2-leading:var(--text-body2-line-height);--text-body2-family:var(--text-family-default);display:grid;font-family:var(--text-body2-family);font-size:var(--text-body2-size);font-weight:var(--text-body2-weight);grid-template-rows:0fr;letter-spacing:var(--text-body2-letter-spacing);line-height:var(--text-body2-leading);overflow-y:hidden;text-transform:var(--text-body2-text-transform);transition:grid-template-rows .25s ease-in-out}.content-wrapper{min-height:0;opacity:0;transition:opacity .3s ease-in-out;visibility:hidden}.content-spacing{padding:1rem 1.5rem}.hint{margin-top:.25rem}.icon{margin-left:1.5rem;margin-right:0}.icon.left{margin-left:0;margin-right:1.5rem}@media (prefers-reduced-motion){.content-wrapper,.expandable-content,.trigger{transition:none}}::slotted([slot=asset-leading]){margin-right:1rem}::slotted([slot=asset-trailing]){flex-shrink:0;margin-left:1rem}', p = g, u = class {
7
+ constructor(a) {
8
+ i(this, a), this.prismClick = n(this, "prismClick", 7), this.uid = c(), this.sibling = {
9
+ top: !1,
10
+ bottom: !1
11
+ }, this.toggleFocusElements = () => {
12
+ d(this.el).forEach((t) => {
13
+ this.collapsed ? t == null || t.setAttribute("tabindex", "-1") : t == null || t.removeAttribute("tabindex");
14
+ });
15
+ }, this.onClick = (t) => {
16
+ this.collapsed = !this.collapsed;
17
+ const { currentTarget: r } = t, { id: o } = r;
18
+ this.toggleFocusElements(), this.prismClick.emit({
19
+ id: o,
20
+ name: "accordion",
21
+ collapsed: this.collapsed,
22
+ target: r
23
+ });
24
+ }, this.collapsed = !0, this.prismId = `prism-accordion-${this.uid}`, this.label = void 0, this.description = void 0, this.labelSecondary = void 0, this.iconPosition = "right", this.tone = "neutral2";
25
+ }
26
+ connectedCallback() {
27
+ b("prism-accordion");
28
+ }
29
+ componentDidRender() {
30
+ this.toggleFocusElements();
31
+ }
32
+ componentWillLoad() {
33
+ var a, t;
34
+ ((a = this.el.nextElementSibling) === null || a === void 0 ? void 0 : a.tagName) === "PRISM-ACCORDION" && (this.sibling.bottom = !0), ((t = this.el.previousElementSibling) === null || t === void 0 ? void 0 : t.tagName) === "PRISM-ACCORDION" && (this.sibling.top = !0);
35
+ }
36
+ render() {
37
+ const a = () => e("prism-icon", { key: "80473fcbf6527c41ca8bb40fdf03b49da2e0a93d", class: { icon: !0, [this.iconPosition]: !0 }, "aria-hidden": "true", priority: "secondary", tone: "custom", theme: "outline", name: this.collapsed ? "caret_down_button" : "caret_up_button" });
38
+ return e(s, { key: "a4903afadcd34da2cfdb38af3550b47a7f4f280a", class: {
39
+ [this.tone]: !0,
40
+ "stacked-top": this.sibling.top,
41
+ "stacked-bottom": this.sibling.bottom
42
+ } }, e("button", { key: "fd152ec500e95f7d5ae9e65f13d2252c1012a61c", onClick: (t) => this.onClick(t), id: this.prismId, type: "button", class: { trigger: !0 }, "aria-expanded": (!this.collapsed).toString() }, e("slot", { key: "54ce81316ac4e1a2ceb06543fc2a3d0bdbe0a217", name: "asset-leading" }), this.iconPosition === "left" && e(a, { key: "e41e8ff791b49a5342f716cc6ca172e16611f05a" }), e("section", { key: "4c8e08f3e3f68a735825ab568da619f30cac7da1", class: { text: !0 } }, e("prism-text", { key: "1cedf90d34337fadf0491dcb2b4b3949169b850d", tag: "span", class: "label", display: "heading3" }, this.label), this.labelSecondary && e("prism-text", { key: "a41b409799fee62a0b4b0f58b8c53cb817839c7a", tag: "span", class: "label-secondary", display: "heading3" }, this.labelSecondary), this.description && e("prism-text", { key: "09fef9450b69a02e0609af8170ba0c6e2ca313cd", tag: "span", class: "description", priority: "secondary", display: "caption" }, this.description), e("slot", { key: "1db7be79db9a2a08ef78c3c95026e412ffa8fe97", name: "meta" })), e("slot", { key: "6a12b1eb03de925001ac9163b9886818fb84cef0", name: "asset-trailing" }), this.iconPosition === "right" && e(a, { key: "8897049dec16b62fd8a0fddf7fb971a899c03e9b" })), e("div", { key: "89527f3f3720ce4133e07198959896e994ef7924", ref: (t) => this.contentPanel = t, "aria-hidden": this.collapsed.toString(), class: { "expandable-content": !0, visible: !this.collapsed } }, e("div", { key: "1dba1139aabf217caf94d271ae3db5bb684f7542", class: "content-wrapper" }, e("section", { key: "bf7cec674c5bf2766a2cd37d1b057c2f278e8b0c", class: "content-spacing" }, e("slot", { key: "b323e9b1a463bbbc7ff8c586d68606303af47950" })))));
43
+ }
44
+ get el() {
45
+ return l(this);
46
+ }
47
+ };
48
+ u.style = p;
49
+ export {
50
+ u as prism_accordion
51
+ };
@@ -0,0 +1,68 @@
1
+ import { r as s, h as t, H as n, g as c } from "./index-DxRZ6prf.js";
2
+ import { m as d } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const h = '.text-display1{--text-display1-leading:var(--text-display1-line-height);--text-display1-family:var(--text-family-brand);font-family:var(--text-display1-family);font-size:var(--text-display1-size);font-weight:var(--text-display1-weight);letter-spacing:var(--text-display1-letter-spacing);line-height:var(--text-display1-leading);text-transform:var(--text-display1-text-transform)}.text-headline1{--text-headline1-leading:var(--text-headline1-line-height);--text-headline1-family:var(--text-family-brand);font-family:var(--text-headline1-family);font-size:var(--text-headline1-size);font-weight:var(--text-headline1-weight);letter-spacing:var(--text-headline1-letter-spacing);line-height:var(--text-headline1-leading);text-transform:var(--text-headline1-text-transform)}.text-body1{--text-body1-leading:var(--text-body1-line-height);--text-body1-family:var(--text-family-default);font-family:var(--text-body1-family);font-size:var(--text-body1-size);font-weight:var(--text-body1-weight);letter-spacing:var(--text-body1-letter-spacing);line-height:var(--text-body1-leading);text-transform:var(--text-body1-text-transform)}:host{--pui-avatar-tone:rgb(var(--background-color-material-neutral-base));--pui-avatar-text-color:rgb(var(--text-color-neutral-base));--pui-avatar-outline-color:var(--outline-color-neutral-base,#141417);display:inline-block;position:relative}.image{border-radius:50%;color:transparent;height:100%;object-fit:cover;overflow:clip;text-align:center;width:100%}:host(.circle.generic),:host(.circle.profile){outline-color:var(--outline-color-transparent,transparent)}:host(.circle){border-radius:50%;outline-color:var(--outline-color-neutral2-base,#62626c);outline-style:solid;outline-width:2px;text-align:center}:host(.circle) .text,:host(.oval) .text{align-items:center;display:flex;height:100%;justify-content:center;width:100%}:host(.circle.sm){height:1.5rem;width:1.5rem}:host(.circle.md){height:2rem;width:2rem}:host(.circle.lg){height:3rem;width:3rem}:host(.circle.xl){height:4.5rem;width:4.5rem}:host(.circle.xxl){height:9rem;width:9rem}:host(.oval){border-radius:var(--border-radius-large,16px);outline-color:var(--outline-color-neutral2-base,#62626c);outline-style:solid;outline-width:2px;text-align:center}:host(.oval.sm){height:1.5rem;padding-left:.5rem;padding-right:.5rem}:host(.oval.md){height:2rem;padding-left:.75rem;padding-right:.75rem}:host(.oval.lg){border-radius:var(--border-radius-xlarge,32px);height:3rem;width:4.5rem}:host(.oval.xl){border-radius:var(--border-radius-xlarge,32px);height:3rem;width:6rem}:host(.oval.xxl){border-radius:var(--border-radius-xlarge,32px);height:3.5rem;width:7rem}:host(.md) .text,:host(.sm) .text{--text-callout2-leading:var(--text-callout2-line-height);--text-callout2-family:var(--text-family-brand);font-family:var(--text-callout2-family);font-size:var(--text-callout2-size);font-weight:var(--text-callout2-weight);letter-spacing:var(--text-callout2-letter-spacing);line-height:var(--text-callout2-leading);text-transform:var(--text-callout2-text-transform)}:host(.lg) .text{--text-body1-leading:var(--text-body1-line-height);--text-body1-family:var(--text-family-default);font-family:var(--text-body1-family);font-size:var(--text-body1-size);font-weight:var(--text-body1-weight);letter-spacing:var(--text-body1-letter-spacing);line-height:var(--text-body1-leading);margin-top:1px;text-transform:var(--text-body1-text-transform);text-transform:uppercase}:host(.xl) .text{--text-headline1-leading:var(--text-headline1-line-height);--text-headline1-family:var(--text-family-brand);font-family:var(--text-headline1-family);font-size:var(--text-headline1-size);font-weight:var(--text-headline1-weight);letter-spacing:var(--text-headline1-letter-spacing);line-height:var(--text-headline1-leading);margin-top:.125rem;text-transform:var(--text-headline1-text-transform);text-transform:uppercase}:host(.xxl) .text{--text-display1-leading:var(--text-display1-line-height);--text-display1-family:var(--text-family-brand);font-family:var(--text-display1-family);font-size:var(--text-display1-size);font-weight:var(--text-display1-weight);letter-spacing:var(--text-display1-letter-spacing);line-height:var(--text-display1-leading);margin-top:.125rem;text-transform:var(--text-display1-text-transform);text-transform:uppercase}.dot:after{--tw-border-opacity:1;border-color:rgb(var(--border-color-stroke-inverse-base)/var(--tw-border-opacity));border-radius:50%;border-style:solid;border-width:1px;bottom:-1px;content:"";display:block;height:.625rem;position:absolute;right:-1px;transition:background-color .2s ease-in;width:.625rem}:host(.xl) .dot:after,:host(.xxl) .dot:after{height:1rem;width:1rem}.dot.neutral:after{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-base)/var(--tw-bg-opacity))}.dot.positive:after{--tw-bg-opacity:1;--shadow-color:var(--fill-positive-base-shadow);background-color:rgb(var(--background-color-fill-positive-base)/var(--tw-bg-opacity))}.dot.negative:after{--tw-bg-opacity:1;--shadow-color:var(--fill-negative-base-shadow);background-color:rgb(var(--background-color-fill-negative-base)/var(--tw-bg-opacity))}.dot.theme1:after{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity))}.dot.info:after{--tw-bg-opacity:1;--shadow-color:var(--fill-info-base-shadow);background-color:rgb(var(--background-color-fill-info-base)/var(--tw-bg-opacity))}.dot.caution:after{--tw-bg-opacity:1;--shadow-color:var(--fill-caution-base-shadow);background-color:rgb(var(--background-color-fill-caution-base)/var(--tw-bg-opacity))}@media (prefers-reduced-motion){.dot:after{transition:none}}:host(.color-neutral){--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-positive){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-positive-base-shadow);background-color:rgb(var(--background-color-fill-positive-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-negative){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-negative-base-shadow);background-color:rgb(var(--background-color-fill-negative-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-caution){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-caution-base-shadow);background-color:rgb(var(--background-color-fill-caution-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-theme1){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-theme2){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-theme2-base-shadow);background-color:rgb(var(--background-color-fill-theme2-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-info){--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-info-base-shadow);background-color:rgb(var(--background-color-fill-info-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity));outline-color:var(--outline-color-transparent,transparent)}:host(.color-inherit){background-color:var(--pui-avatar-tone);color:var(--pui-avatar-text-color);outline-color:var(--pui-avatar-outline-color)}', g = h, b = class {
7
+ constructor(e) {
8
+ s(this, e), this._abbreviate = () => {
9
+ var r, a, o, i, l;
10
+ this.el.innerText = `${(a = (r = this.alt) === null || r === void 0 ? void 0 : r.trim()) === null || a === void 0 ? void 0 : a.charAt(0)}${(l = (i = (o = this.alt) === null || o === void 0 ? void 0 : o.trim()) === null || i === void 0 ? void 0 : i.replace(" ", "")) === null || l === void 0 ? void 0 : l.charAt(1)}`;
11
+ }, this.checkImage = () => {
12
+ this.image = !1, this.generic = this.el.childNodes.length === 0 && !this.alt, this.alt && this._abbreviate();
13
+ }, this.src = void 0, this.alt = void 0, this.size = "sm", this.dotTone = "neutral", this.tone = "inherit", this.notification = !1, this.shape = "oval", this.image = void 0, this.generic = void 0;
14
+ }
15
+ watchHandler() {
16
+ }
17
+ connectedCallback() {
18
+ d("prism-avatar");
19
+ }
20
+ componentWillLoad() {
21
+ this.image = !!this.src, this.shape = this.src ? "circle" : this.shape, !this.image && this.alt && this._abbreviate();
22
+ }
23
+ render() {
24
+ const e = () => t("prism-icon", { key: "532fa7777a80248fd2f4908bf8931945c51d2ced", theme: "outline", label: "username", name: "profile", size: this.size });
25
+ return t(n, { key: "b9b6d7e11d4bc242b9454c388e05cc98efd0c1a2", class: {
26
+ profile: this.image,
27
+ generic: this.generic,
28
+ [this.size]: !0,
29
+ [this.shape]: !0,
30
+ [`color-${this.tone}`]: !!this.tone
31
+ } }, this.image ? t("prism-image", { onPrismError: () => this.checkImage(), alt: this.alt, src: this.src, class: { image: !0, dot: this.notification, [this.dotTone]: this.notification } }) : (
32
+ // <img
33
+ // onError={() => this.checkImage()}
34
+ // alt={this.alt}
35
+ // src={this.src}
36
+ // class={{ image: true, dot: this.notification, [this.dotTone]: this.notification }}
37
+ // />
38
+ t("span", { class: {
39
+ dot: this.notification,
40
+ [this.dotTone]: this.notification,
41
+ text: !0
42
+ } }, this.el.childNodes.length > 0 ? t("slot", null) : t(e, null))
43
+ ));
44
+ }
45
+ get el() {
46
+ return c(this);
47
+ }
48
+ static get watchers() {
49
+ return {
50
+ image: ["watchHandler"]
51
+ };
52
+ }
53
+ };
54
+ b.style = g;
55
+ const p = ".sc-prism-button-group-h{display:var(--button-group-display,block);width:var(--button-group-width,100%)}.layout.sc-prism-button-group{align-items:center;display:flex;justify-content:var(--button-group-justify,flex-start)}ol.layout.sc-prism-button-group,ul.layout.sc-prism-button-group{list-style-type:none;margin:0;padding:0}.add-space.sc-prism-button-group{gap:.5rem}.add-space.sc-prism-button-group nav.sc-prism-button-group ul.sc-prism-button-group{gap:.25rem}nav ul.sc-prism-button-group-s>*,nav ul .sc-prism-button-group-s>*{--button-padding:0.75rem}", v = p, u = class {
56
+ constructor(e) {
57
+ s(this, e), this.collection = "group", this.label = void 0, this.gap = !0, this.listType = "ul";
58
+ }
59
+ render() {
60
+ const e = this.collection === "navigation" ? "nav" : "div", r = this.listType === "ul" ? "ul" : "ol", a = { layout: !0, "add-space": this.gap };
61
+ return t(n, { key: "3d23bc817e0e1673883ebafef664939b75319d97" }, t(e, { key: "bb4c93f5864acd1804b9d37bad01011cff0d3636", class: a, role: this.collection === "navigation" || this.collection === "none" ? null : this.collection, "aria-label": this.label }, this.collection === "navigation" ? t(r, { class: a }, t("slot", null)) : t("slot", null)));
62
+ }
63
+ };
64
+ u.style = v;
65
+ export {
66
+ b as prism_avatar,
67
+ u as prism_button_group
68
+ };
@@ -0,0 +1,58 @@
1
+ import { r as e, c, h as o, H as n, g as l } from "./index-DxRZ6prf.js";
2
+ import { g as s, m as b } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const g = ":host{display:inline-flex;position:relative}.wrapper{align-items:center;display:inline-flex;position:relative;transition:all .2s ease-in;transition-property:outline background-color border-color;white-space:nowrap}button.wrapper{border-style:none}button.wrapper:hover{cursor:pointer}button.wrapper:focus-visible{outline-color:var(--outline-color-neutral-focus,#35353b);outline-offset:1px;outline-style:solid;outline-width:1px}.text{--max:inherit;letter-spacing:inherit;line-height:1}.sm{border-radius:var(--border-radius-medium,8px);gap:1px;height:1rem;padding-left:.5rem;padding-right:.5rem}.md{border-radius:var(--border-radius-large,16px);height:1.5rem;padding-left:.75rem;padding-right:.75rem}.lg,.md{gap:.25rem}.lg{border-radius:var(--border-radius-xlarge,32px);height:2.75rem;padding-left:1rem;padding-right:1rem}.lg.asset-trailing{padding-right:0}.lg.asset-leading{padding-left:0}.high{--tw-text-opacity:1;color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.info{--tw-bg-opacity:1;--shadow-color:var(--fill-info-base-shadow);background-color:rgb(var(--background-color-fill-info-base)/var(--tw-bg-opacity))}.info .action:hover,button.info:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-info-hover-shadow);background-color:rgb(var(--background-color-fill-info-hover)/var(--tw-bg-opacity))}.info .action:active,button.info:active{--tw-bg-opacity:1;--shadow-color:var(--fill-info-down-shadow);background-color:rgb(var(--background-color-fill-info-down)/var(--tw-bg-opacity))}.theme1{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity))}.theme1 .action:hover,button.theme1:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-hover-shadow);background-color:rgb(var(--background-color-fill-theme1-hover)/var(--tw-bg-opacity))}.theme1 .action:active,button.theme1:active{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-down-shadow);background-color:rgb(var(--background-color-fill-theme1-down)/var(--tw-bg-opacity))}.positive{--tw-bg-opacity:1;--shadow-color:var(--fill-positive-base-shadow);background-color:rgb(var(--background-color-fill-positive-base)/var(--tw-bg-opacity))}.positive .action:hover,button.positive:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-positive-hover-shadow);background-color:rgb(var(--background-color-fill-positive-hover)/var(--tw-bg-opacity))}.positive .action:active,button.positive:active{--tw-bg-opacity:1;--shadow-color:var(--fill-positive-down-shadow);background-color:rgb(var(--background-color-fill-positive-down)/var(--tw-bg-opacity))}.caution{--tw-bg-opacity:1;--shadow-color:var(--fill-caution-base-shadow);background-color:rgb(var(--background-color-fill-caution-base)/var(--tw-bg-opacity))}.caution .action:hover,button.caution:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-caution-hover-shadow);background-color:rgb(var(--background-color-fill-caution-hover)/var(--tw-bg-opacity))}.caution .action:active,button.caution:active{--tw-bg-opacity:1;--shadow-color:var(--fill-caution-down-shadow);background-color:rgb(var(--background-color-fill-caution-down)/var(--tw-bg-opacity))}.theme2{--tw-bg-opacity:1;--shadow-color:var(--fill-theme2-base-shadow);background-color:rgb(var(--background-color-fill-theme2-base)/var(--tw-bg-opacity))}.theme2 .action:hover,button.theme2:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-theme2-hover-shadow);background-color:rgb(var(--background-color-fill-theme2-hover)/var(--tw-bg-opacity))}.theme2 .action:active,button.theme2:active{--tw-bg-opacity:1;--shadow-color:var(--fill-theme2-down-shadow);background-color:rgb(var(--background-color-fill-theme2-down)/var(--tw-bg-opacity))}.negative{--tw-bg-opacity:1;--shadow-color:var(--fill-negative-base-shadow);background-color:rgb(var(--background-color-fill-negative-base)/var(--tw-bg-opacity))}.negative .action:hover,button.negative:hover{--tw-bg-opacity:1;--shadow-color:var(--fill-negative-hover-shadow);background-color:rgb(var(--background-color-fill-negative-hover)/var(--tw-bg-opacity))}.negative .action:active,button.negative:active{--tw-bg-opacity:1;--shadow-color:var(--fill-negative-down-shadow);background-color:rgb(var(--background-color-fill-negative-down)/var(--tw-bg-opacity))}.neutral2{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-base)/var(--tw-bg-opacity))}.neutral2 .action:hover,button.neutral2:hover{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-hover)/var(--tw-bg-opacity))}.neutral2 .action:active,button.neutral2:active{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-down)/var(--tw-bg-opacity))}.low.info{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-info-base-shadow);background-color:rgb(var(--background-color-material-info-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-info-base)/var(--tw-text-opacity))}.low.info .action:hover,button.low.info:hover{--tw-bg-opacity:1;--shadow-color:var(--material-info-hover-shadow);background-color:rgb(var(--background-color-material-info-hover)/var(--tw-bg-opacity))}.low.info .action:active,button.low.info:active{--tw-bg-opacity:1;--shadow-color:var(--material-info-down-shadow);background-color:rgb(var(--background-color-material-info-down)/var(--tw-bg-opacity))}.low.theme1{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-theme1-base-shadow);background-color:rgb(var(--background-color-material-theme1-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-theme1-base)/var(--tw-text-opacity))}.low.theme1 .action:hover,button.low.theme1:hover{--tw-bg-opacity:1;--shadow-color:var(--material-theme1-hover-shadow);background-color:rgb(var(--background-color-material-theme1-hover)/var(--tw-bg-opacity))}.low.theme1 .action:active,button.low.theme1:active{--tw-bg-opacity:1;--shadow-color:var(--material-theme1-down-shadow);background-color:rgb(var(--background-color-material-theme1-down)/var(--tw-bg-opacity))}.low.positive{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-positive-base-shadow);background-color:rgb(var(--background-color-material-positive-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-positive-base)/var(--tw-text-opacity))}.low.positive .action:hover,button.low.positive:hover{--tw-bg-opacity:1;--shadow-color:var(--material-positive-hover-shadow);background-color:rgb(var(--background-color-material-positive-hover)/var(--tw-bg-opacity))}.low.positive .action:active,button.low.positive:active{--tw-bg-opacity:1;--shadow-color:var(--material-positive-down-shadow);background-color:rgb(var(--background-color-material-positive-down)/var(--tw-bg-opacity))}.low.caution,.low.theme2{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-caution-base-shadow);background-color:rgb(var(--background-color-material-caution-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-caution-base)/var(--tw-text-opacity))}.low.caution .action:hover,button.low.caution:hover{--tw-bg-opacity:1;--shadow-color:var(--material-caution-hover-shadow);background-color:rgb(var(--background-color-material-caution-hover)/var(--tw-bg-opacity))}.low.caution .action:active,button.low.caution:active{--tw-bg-opacity:1;--shadow-color:var(--material-caution-down-shadow);background-color:rgb(var(--background-color-material-caution-down)/var(--tw-bg-opacity))}.low.negative{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-negative-base-shadow);background-color:rgb(var(--background-color-material-negative-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-negative-base)/var(--tw-text-opacity))}.low.negative .action:hover,button.low.negative:hover{--tw-bg-opacity:1;--shadow-color:var(--material-negative-hover-shadow);background-color:rgb(var(--background-color-material-negative-hover)/var(--tw-bg-opacity))}.low.negative .action:active,button.low.negative:active{--tw-bg-opacity:1;--shadow-color:var(--material-negative-down-shadow);background-color:rgb(var(--background-color-material-negative-down)/var(--tw-bg-opacity))}.low.neutral2{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--material-neutral2-base-shadow);background-color:rgb(var(--background-color-material-neutral2-base)/var(--tw-bg-opacity));color:rgb(var(--text-color-neutral2-base)/var(--tw-text-opacity))}.low.neutral2 .action:hover,button.low.neutral2:hover{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-hover-shadow);background-color:rgb(var(--background-color-material-neutral2-hover)/var(--tw-bg-opacity))}.low.neutral2 .action:active,button.low.neutral2:active{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-down-shadow);background-color:rgb(var(--background-color-material-neutral2-down)/var(--tw-bg-opacity))}.action{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--background-color-transparent,transparent);border-radius:var(--border-radius-xlarge,32px);border-style:none;color:inherit;cursor:pointer;height:2.75rem;margin:0;outline:2px solid transparent;outline-offset:2px;padding:0;position:relative;width:2.75rem}.action:focus-visible{outline-color:var(--outline-color-neutral-focus,#35353b);outline-offset:0;outline-style:solid;outline-width:1px}.action.priority-high:focus-visible{outline-color:var(--outline-color-inverse-base,#f6f6f9)}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}", v = g, d = class {
7
+ constructor(t) {
8
+ e(this, t), this.prismClick = c(this, "prismClick", 7), this.uid = s(), this.sendAction = (r) => {
9
+ const { currentTarget: i } = r;
10
+ this.prismClick.emit({
11
+ id: this.prismId,
12
+ name: "prism-badge",
13
+ action: this.interactive,
14
+ target: i
15
+ }).defaultPrevented && r.preventDefault();
16
+ }, this.slots = {
17
+ leading: !1,
18
+ trailing: !1
19
+ }, this.wrapperAttrs = {}, this.prismId = `prism-badge-${this.uid}`, this.size = "sm", this.tone = "neutral2", this.priority = "low", this.interactive = void 0, this.label = void 0;
20
+ }
21
+ connectedCallback() {
22
+ this.slots.leading = !!this.el.querySelector('[slot="asset-leading"]'), this.slots.trailing = !!this.el.querySelector('[slot="asset-trailing"]'), b("prism-badge");
23
+ }
24
+ /** @internal textSize function */
25
+ _textSize(t) {
26
+ switch (t) {
27
+ case "sm":
28
+ return "tag";
29
+ case "md":
30
+ return "caption";
31
+ case "lg":
32
+ return "body2";
33
+ }
34
+ }
35
+ render() {
36
+ const t = () => o("button", { id: `action-badge-${this.uid}`, ref: (a) => this.actionButton = a, type: "button", onClick: (a) => this.sendAction(a), "aria-label": this.label, class: { action: !0, [this.interactive]: !0, [`priority-${this.priority}`]: !0 } }, o("slot", { name: `asset-${this.interactive}` })), i = (this.interactive === "container" && (this.wrapperAttrs = {
37
+ id: `action-badge-${this.uid}`,
38
+ type: "button",
39
+ onClick: (a) => this.sendAction(a)
40
+ }), this.interactive === "container" ? "button" : "span");
41
+ return o(n, { class: {
42
+ interactive: !!this.interactive
43
+ }, id: this.prismId }, o(i, Object.assign({}, this.wrapperAttrs, { class: {
44
+ wrapper: !0,
45
+ [this.tone]: !0,
46
+ [this.size]: !0,
47
+ [this.priority]: !0,
48
+ [`asset-${this.interactive}`]: !!this.interactive
49
+ } }), this.interactive === "leading" && this.size === "lg" ? o(t, null) : o("slot", { name: "asset-leading" }), o("prism-text", { ellipsis: !0, class: "text", tag: "span", display: this._textSize(this.size) }, o("slot", null)), this.interactive === "trailing" && this.size === "lg" ? o(t, null) : o("slot", { name: "asset-trailing" })));
50
+ }
51
+ get el() {
52
+ return l(this);
53
+ }
54
+ };
55
+ d.style = v;
56
+ export {
57
+ d as prism_badge
58
+ };
@@ -0,0 +1,82 @@
1
+ import { r as s, c as i, h as o, H as n, g as c } from "./index-DxRZ6prf.js";
2
+ import { m as l } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const d = ':host{--max-width:inherit;--banner-offset-x:0.1rem;--banner-offset-y:0.1rem;display:block;max-width:var(--max-width);width:100%}:host(.toast){display:block;position:fixed;width:-webkit-max-content;width:-moz-max-content;width:max-content;z-index:530}:host(.toast.top-center){left:50%;right:auto;top:calc(1.5rem + var(--banner-offset-y));transform:translateX(-50%)}:host(.toast.top-right){left:auto;right:calc(1.5rem + var(--banner-offset-x));top:calc(1.5rem + var(--banner-offset-y))}:host(.toast.top-left){left:calc(1.5rem + var(--banner-offset-x));right:auto;top:calc(1.5rem + var(--banner-offset-y))}:host(.toast.bottom-center){bottom:calc(1.5rem + var(--banner-offset-y));left:50%;right:auto;transform:translateX(-50%)}:host(.toast.bottom-right){bottom:calc(1.5rem + var(--banner-offset-y));left:auto;right:calc(1.5rem + var(--banner-offset-x))}:host(.toast.bottom-left){bottom:calc(1.5rem + var(--banner-offset-y));left:calc(1.5rem + var(--banner-offset-x));right:auto}.layout{align-items:flex-start;display:grid;grid-template-areas:"icon end" "content end" "action end";grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto}.layout.inline{align-items:center;gap:.5rem;grid-template-areas:"icon content action end";grid-template-columns:auto 1fr auto auto;grid-template-rows:auto}:host(.toast) .layout{align-items:center}::slotted([slot=icon]){grid-area:icon}::slotted([slot=action]){grid-area:action}@media (min-width:640px){.layout.inline{align-items:center;gap:.5rem;grid-template-areas:"icon content action end";grid-template-columns:auto 1fr auto;grid-template-rows:auto}.layout.inline ::slotted([slot=action]){margin-top:0}}@media (min-width:768px){.layout{align-items:center;display:grid;gap:.875rem;grid-template-areas:"icon content action end";grid-template-columns:auto 1fr auto auto;grid-template-rows:1fr}::slotted([slot=icon]){margin-bottom:0}::slotted([slot=action]){margin-top:0}}.content{grid-area:content}.notification{border-radius:var(--border-radius-medium,8px);padding:1rem}@media (min-width:1024px){.notification{padding:1.5rem}}.system{padding:1rem 1.5rem}@media (min-width:768px){.system{padding-left:2rem;padding-right:2rem}}@media (min-width:1024px){.system{padding-left:4rem;padding-right:4rem}}.toast{--tw-shadow:0px 12px 12px -8px var(--shadow-color);--tw-shadow-colored:0px 12px 12px -8px var(--tw-shadow-color);border-radius:var(--border-radius-medium,8px);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);padding:.5rem 1rem}.high{color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.high,.low{--tw-text-opacity:1}.low{color:rgb(var(--text-color-neutral-base)/var(--tw-text-opacity))}.info{--tw-bg-opacity:1;--shadow-color:var(--fill-info-base-shadow);background-color:rgb(var(--background-color-fill-info-base)/var(--tw-bg-opacity))}.theme1{--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity))}.theme2{--tw-bg-opacity:1;--shadow-color:var(--fill-theme2-base-shadow);background-color:rgb(var(--background-color-fill-theme2-base)/var(--tw-bg-opacity))}.high.expressive{background-image:var(--background-image-gradient-expressive,linear-gradient(90deg,#28156b,#7b30ff))}.positive{--tw-bg-opacity:1;--shadow-color:var(--fill-positive-base-shadow);background-color:rgb(var(--background-color-fill-positive-base)/var(--tw-bg-opacity))}.caution{--tw-bg-opacity:1;--shadow-color:var(--fill-caution-base-shadow);background-color:rgb(var(--background-color-fill-caution-base)/var(--tw-bg-opacity))}.negative{--tw-bg-opacity:1;--shadow-color:var(--fill-negative-base-shadow);background-color:rgb(var(--background-color-fill-negative-base)/var(--tw-bg-opacity))}.neutral{--tw-bg-opacity:1;--shadow-color:var(--fill-neutral-base-shadow);background-color:rgb(var(--background-color-fill-neutral-base)/var(--tw-bg-opacity))}.neutral2{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-base)/var(--tw-bg-opacity))}.low.info{--tw-bg-opacity:1;--shadow-color:var(--material-info-base-shadow);background-color:rgb(var(--background-color-material-info-base)/var(--tw-bg-opacity))}:host(.toast) .low.info{--tw-text-opacity:1;color:rgb(var(--text-color-info-base)/var(--tw-text-opacity))}.low.theme1{--tw-bg-opacity:1;--shadow-color:var(--material-theme1-base-shadow);background-color:rgb(var(--background-color-material-theme1-base)/var(--tw-bg-opacity))}:host(.toast) .low.theme1{--tw-text-opacity:1;color:rgb(var(--text-color-theme1-base)/var(--tw-text-opacity))}.low.positive{--tw-bg-opacity:1;--shadow-color:var(--material-positive-base-shadow);background-color:rgb(var(--background-color-material-positive-base)/var(--tw-bg-opacity))}:host(.toast) .low.positive{--tw-text-opacity:1;color:rgb(var(--text-color-positive-base)/var(--tw-text-opacity))}.low.caution{--tw-bg-opacity:1;--shadow-color:var(--material-caution-base-shadow);background-color:rgb(var(--background-color-material-caution-base)/var(--tw-bg-opacity))}:host(.toast) .low.caution{--tw-text-opacity:1;color:rgb(var(--text-color-caution-base)/var(--tw-text-opacity))}.low.negative{--tw-bg-opacity:1;--shadow-color:var(--material-negative-base-shadow);background-color:rgb(var(--background-color-material-negative-base)/var(--tw-bg-opacity))}:host(.toast) .low.negative{--tw-text-opacity:1;color:rgb(var(--text-color-negative-base)/var(--tw-text-opacity))}.low.neutral{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-base-shadow);background-color:rgb(var(--background-color-material-neutral-base)/var(--tw-bg-opacity))}:host(.toast) .low.neutral{--tw-text-opacity:1;color:rgb(var(--text-color-neutral-base)/var(--tw-text-opacity))}.low.neutral2{--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-base-shadow);background-color:rgb(var(--background-color-material-neutral2-base)/var(--tw-bg-opacity))}:host(.toast) .low.neutral2{--tw-text-opacity:1;color:rgb(var(--text-color-neutral2-base)/var(--tw-text-opacity))}::slotted(*){--icon-color:var(--text-color);--color:var(--text-color)}.close{grid-area:end}:host::part(native){background-color:var(--background-color-transparent,transparent)!important}', b = d, h = class {
7
+ constructor(a) {
8
+ s(this, a), this.prismAutoDismiss = i(this, "prismAutoDismiss", 7), this.prismClick = i(this, "prismClick", 7), this.autoDismiss = this.variant === "toast" && !this.dismissable, this.dismissTimerID = void 0, this.body = this.el.closest("body"), this.runDismissTimer = () => {
9
+ this.open && (this.dismissTimerID = setTimeout(() => {
10
+ this.open = !1, this.ariaLive = !1, this.prismAutoDismiss.emit({ name: "toast-auto-dismissed", open: this.open });
11
+ }, this.toastDismiss));
12
+ }, this.dismiss = (t) => {
13
+ this.open = !1;
14
+ const { currentTarget: e } = t, { id: r } = e;
15
+ this.prismClick.emit({ id: r, name: "dismiss", target: e });
16
+ }, this.slots = {
17
+ icon: !1,
18
+ action: !1
19
+ }, this.tone = "info", this.variant = "notification", this.layout = "stacked", this.toastPosition = "top-center", this.toastDismiss = 5e3, this.priority = "high", this.dismissable = !1, this.open = !0, this.dismissIcon = "close", this.bannerRole = "complementary", this.ariaLive = !1;
20
+ }
21
+ /**
22
+ * @description Public: Open Banner
23
+ */
24
+ async setOpen() {
25
+ this.ariaLive = !0, this.open = !0;
26
+ }
27
+ /**
28
+ * @description Public: Close Banner
29
+ */
30
+ async setClose() {
31
+ this.ariaLive = !1, this.open = !1;
32
+ }
33
+ connectedCallback() {
34
+ this.slots.icon = !!this.el.querySelector('[slot="icon"]'), this.slots.action = !!this.el.querySelector('[slot="action"]'), l("prism-banner");
35
+ }
36
+ componentDidRender() {
37
+ this._toastDismiss();
38
+ }
39
+ componentDidLoad() {
40
+ var a;
41
+ (a = this.el) === null || a === void 0 || a.addEventListener("keydown", (t) => {
42
+ t.code === "Escape" && this.dismissable && this.dismiss(t);
43
+ });
44
+ }
45
+ _toastDismiss() {
46
+ this.autoDismiss && (clearTimeout(this.dismissTimerID), this.runDismissTimer());
47
+ }
48
+ watchOpen(a) {
49
+ a ? (this.dismissable && setTimeout(() => {
50
+ var t;
51
+ (t = this.dismissButton) === null || t === void 0 || t.setFocus();
52
+ }, 0), this._toastDismiss()) : setTimeout(() => {
53
+ var t;
54
+ (t = this.referElement) === null || t === void 0 || t.focus();
55
+ }, 0);
56
+ }
57
+ render() {
58
+ const a = this.variant === "toast" ? "polite" : this.ariaLive === !0 ? this.tone !== "negative" ? "polite" : "assertive" : null;
59
+ return o(n, { key: "8e1552e7feb53f8200cb905e0fccf0954e6fc352", class: {
60
+ toast: this.variant === "toast",
61
+ [this.toastPosition]: this.variant === "toast"
62
+ }, role: this.variant === "toast" ? "alert" : this.bannerRole, "aria-hidden": !this.open.toString(), "aria-label": this.variant === "toast" ? null : "notification", "aria-live": a }, this.open && o("section", { key: "ef87e2184bb0ea0659c8311432269c8342829904", class: {
63
+ [this.variant]: !0,
64
+ [this.priority]: !0,
65
+ layout: !0,
66
+ [this.layout]: !0,
67
+ [this.tone]: !0
68
+ } }, this.slots.icon && o("slot", { key: "81cc88f3aa406e110b2521101c5df0aba8c8f77c", name: "icon" }), o("section", { key: "61e5c71d9fd50171412988a566eef6f0d9aff9df", part: "content", class: { status: !0, content: !0 } }, o("slot", { key: "eb43eb51018bf9ecde4804ef42928eda061861ad" })), this.slots.action && o("slot", { key: "e78e8fd5bcc9a0d8197a574e958405fb12422d11", name: "action" }), this.dismissable && o("prism-button", { key: "01e3bbb307304ec3317033665ad1fe533461564f", ref: (t) => this.dismissButton = t, display: "ghost-icon", size: "xs", tone: this.priority === "high" ? "neutral-inverse" : this.tone, part: "close", class: "close", label: "close notification", onPrismPress: (t) => this.dismiss(t) }, o("prism-icon", { key: "cc19065fc2f76135c6a4aa6f91c2bafdb6f31891", tone: this.priority === "high" ? "neutral-inverse" : "neutral", name: this.dismissIcon, theme: "outline", size: "sm", class: { icon: !0 } }))));
69
+ }
70
+ get el() {
71
+ return c(this);
72
+ }
73
+ static get watchers() {
74
+ return {
75
+ open: ["watchOpen"]
76
+ };
77
+ }
78
+ };
79
+ h.style = b;
80
+ export {
81
+ h as prism_banner
82
+ };
@@ -0,0 +1,33 @@
1
+ import { r as m, c as n, h as t, F as l, H as c, g as p } from "./index-DxRZ6prf.js";
2
+ import { m as d } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const u = ":host{--tw-bg-opacity:1;--shadow-color:var(--material-neutral-base-shadow);background-color:rgb(var(--background-color-material-neutral-base)/var(--tw-bg-opacity));display:block;padding:.25rem;width:100%}.hidden-text{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.menu-items{list-style-type:none;margin:0;padding:0}.menu-items,.menu-items li{align-items:center;display:flex}.menu-items li{margin-right:0}.menu-item,::slotted(.menu-item){clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.more{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active{--tw-text-opacity:1;color:rgb(var(--text-color-theme1-base)/var(--tw-text-opacity));overflow:hidden;padding:.25rem}.active,.menu-action{max-width:10ch;text-overflow:ellipsis;white-space:nowrap}@media (prefers-reduced-motion:reduce){.menu-action{transition:none}}@media (min-width:768px){.more{display:none}.menu-item,::slotted(.menu-item){clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.active,.menu-action{max-width:inherit}}", h = u, w = class {
7
+ constructor(r) {
8
+ m(this, r), this.prismMenu = n(this, "prismMenu", 7), this.prismClick = n(this, "prismClick", 7), this._menuItemClicked = (e) => {
9
+ const { currentTarget: i } = e, { label: s, prismId: a } = i;
10
+ this.prismClick.emit({ id: a, name: s, target: i });
11
+ }, this.menu = [], this.root = "/";
12
+ }
13
+ connectedCallback() {
14
+ d("prism-breadcrumb");
15
+ }
16
+ componentWillLoad() {
17
+ this.prismMenu.emit({ name: "breadcrumb", menu: this.menu });
18
+ }
19
+ render() {
20
+ const r = () => t("prism-icon", { class: "arrow", role: "presentation", name: "caret_right_button", size: "xs" });
21
+ return t(c, null, t("ol", { ref: (e) => this.menuItems = e, class: "menu-items", part: "menu" }, t("li", { class: "home" }, t("prism-button", { onPrismPress: (e) => this._menuItemClicked(e), class: { "menu-action": !0 }, display: "ghost", tone: "neutral", href: this.root, label: "Return Home" }, t("prism-icon", { role: "presentation", name: "home", theme: "fill", size: "xs" })), t(r, null)), this.menu.map((e, i) => {
22
+ let s = this.menu.length - 1 === i, a = this.menu.length - 2 === i;
23
+ return t("li", { class: { "menu-item": !s && !a, parent: a } }, s ? t("span", { class: "active" }, t("prism-text", { display: "button" }, e.title), " ", t("span", { class: "hidden-text" }, "Current page")) : t(l, null, t("prism-button", { onPrismPress: (o) => this._menuItemClicked(o), class: { "menu-action": !0 }, display: "ghost", tone: "neutral", target: e.target, href: e.href }, e.title), t(r, null)));
24
+ }), t("slot", null)));
25
+ }
26
+ get el() {
27
+ return p(this);
28
+ }
29
+ };
30
+ w.style = h;
31
+ export {
32
+ w as prism_breadcrumb
33
+ };