@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.
Files changed (94) hide show
  1. package/README.md +53 -0
  2. package/dist/components/Accordion/context/index.js +7 -0
  3. package/dist/components/Accordion/index.js +38 -0
  4. package/dist/components/Accordion/types/index.js +1 -0
  5. package/dist/components/Cart/index.js +35 -0
  6. package/dist/components/EquipmentSummary/context/index.js +10 -0
  7. package/dist/components/EquipmentSummary/index.js +65 -0
  8. package/dist/components/EquipmentSummary/types/index.js +1 -0
  9. package/dist/components/Grid/index.js +19 -0
  10. package/dist/components/HeroBanner/context/index.js +7 -0
  11. package/dist/components/HeroBanner/index.js +33 -0
  12. package/dist/components/HeroBanner/types/index.js +1 -0
  13. package/dist/components/InfoBanner/context/index.js +7 -0
  14. package/dist/components/InfoBanner/index.js +26 -0
  15. package/dist/components/InfoBanner/types/index.js +1 -0
  16. package/dist/components/Nav/index.js +23 -0
  17. package/dist/components/OfferCards/context/index.js +7 -0
  18. package/dist/components/OfferCards/index.js +30 -0
  19. package/dist/components/OfferCards/subComponents/OfferCard.js +62 -0
  20. package/dist/components/OfferCards/types/index.js +1 -0
  21. package/dist/components/SaleBanner/context/index.js +7 -0
  22. package/dist/components/SaleBanner/index.js +59 -0
  23. package/dist/components/SaleBanner/types/index.js +1 -0
  24. package/dist/components/StickyFooter/index.js +11 -0
  25. package/dist/index-0d8e0844-BJzWsYCM.js +7403 -0
  26. package/dist/index-C9Rf5U9q.js +29143 -0
  27. package/dist/index-b30029d4-E1YxEHFH.js +12 -0
  28. package/dist/index-e6818ded-r_t6ryaW.js +57 -0
  29. package/dist/index.esm-322571ff-D1REhsOg.js +41 -0
  30. package/dist/lib/components/Accordion/context/index.d.ts +10 -0
  31. package/dist/lib/components/Accordion/index.d.ts +2 -0
  32. package/dist/lib/components/Accordion/types/index.d.ts +13 -0
  33. package/dist/lib/components/Cart/index.d.ts +6 -0
  34. package/dist/lib/components/EquipmentSummary/context/index.d.ts +10 -0
  35. package/dist/lib/components/EquipmentSummary/index.d.ts +2 -0
  36. package/dist/lib/components/EquipmentSummary/types/index.d.ts +14 -0
  37. package/dist/lib/components/Grid/index.d.ts +13 -0
  38. package/dist/lib/components/HeroBanner/context/index.d.ts +10 -0
  39. package/dist/lib/components/HeroBanner/index.d.ts +2 -0
  40. package/dist/lib/components/HeroBanner/types/index.d.ts +11 -0
  41. package/dist/lib/components/InfoBanner/context/index.d.ts +10 -0
  42. package/dist/lib/components/InfoBanner/index.d.ts +2 -0
  43. package/dist/lib/components/InfoBanner/types/index.d.ts +7 -0
  44. package/dist/lib/components/Nav/index.d.ts +8 -0
  45. package/dist/lib/components/OfferCards/context/index.d.ts +9 -0
  46. package/dist/lib/components/OfferCards/index.d.ts +2 -0
  47. package/dist/lib/components/OfferCards/subComponents/OfferCard.d.ts +3 -0
  48. package/dist/lib/components/OfferCards/types/index.d.ts +26 -0
  49. package/dist/lib/components/SaleBanner/context/index.d.ts +10 -0
  50. package/dist/lib/components/SaleBanner/index.d.ts +2 -0
  51. package/dist/lib/components/SaleBanner/types/index.d.ts +11 -0
  52. package/dist/lib/components/StickyFooter/index.d.ts +7 -0
  53. package/dist/lib/main.d.ts +16 -0
  54. package/dist/link-DO_Jvm9n.js +685 -0
  55. package/dist/main.js +34 -0
  56. package/dist/prism-accordion.entry-DeyFGNx-.js +51 -0
  57. package/dist/prism-avatar_2.entry-MLbdVrJg.js +68 -0
  58. package/dist/prism-badge.entry-BG5y7O5U.js +58 -0
  59. package/dist/prism-banner.entry-DChrjpFH.js +82 -0
  60. package/dist/prism-breadcrumb.entry-1YzYlKen.js +33 -0
  61. package/dist/prism-button_2.entry-DO8IGIoS.js +110 -0
  62. package/dist/prism-card.entry-DQ6P4TZP.js +119 -0
  63. package/dist/prism-carousel.entry-BA8zsHRW.js +3111 -0
  64. package/dist/prism-checkbox-group.entry-CP4-gghb.js +62 -0
  65. package/dist/prism-checkbox.entry-CJCy8fvC.js +99 -0
  66. package/dist/prism-data-table.entry--0djw8ls.js +10475 -0
  67. package/dist/prism-datepicker.entry-DPm7tpKB.js +249 -0
  68. package/dist/prism-form.entry-CS1zRoMt.js +42 -0
  69. package/dist/prism-grid.entry-jcx2aMUm.js +28 -0
  70. package/dist/prism-header.entry-CBSIpa0M.js +202 -0
  71. package/dist/prism-hero.entry-B0CKL5y9.js +23 -0
  72. package/dist/prism-icon_2.entry-Aja4QGUK.js +118 -0
  73. package/dist/prism-image.entry-B--khr6E.js +38 -0
  74. package/dist/prism-input-file.entry-i5qJkwEK.js +119 -0
  75. package/dist/prism-input-otp.entry-DXoARuzH.js +63 -0
  76. package/dist/prism-input-text.entry-D4QQ-dYX.js +228 -0
  77. package/dist/prism-input-textarea.entry-eeQHnhqC.js +140 -0
  78. package/dist/prism-layout.entry-bfKqOEnU.js +20 -0
  79. package/dist/prism-lineitem.entry-YIRZPVe_.js +44 -0
  80. package/dist/prism-menu.entry-BIlRCiaA.js +231 -0
  81. package/dist/prism-modal.entry-Kc-SpAR-.js +94 -0
  82. package/dist/prism-pagination.entry-BCo9aMdq.js +60 -0
  83. package/dist/prism-popover.entry-LmDvzCiR.js +1013 -0
  84. package/dist/prism-popper.entry-BqrcyTkE.js +959 -0
  85. package/dist/prism-progress.entry-29_ezvop.js +79 -0
  86. package/dist/prism-radio-group.entry-cL6AqjTk.js +66 -0
  87. package/dist/prism-radio.entry-CM_vZFZA.js +101 -0
  88. package/dist/prism-select.entry-B6A3gk7B.js +230 -0
  89. package/dist/prism-switch.entry-CtEfKB58.js +95 -0
  90. package/dist/prism-tab.entry-DIDUhFlk.js +20 -0
  91. package/dist/prism-tabs.entry-Cj3dW5_E.js +70 -0
  92. package/dist/prism-tooltip.entry-DEdY5eRd.js +52 -0
  93. package/dist/prism-typeahead.entry-D2XrvXaG.js +1234 -0
  94. package/package.json +56 -0
@@ -0,0 +1,119 @@
1
+ import { r as b, e as n, h as e, F as h, H as g, g as p } from "./index-C9Rf5U9q.js";
2
+ import { g as w, m as u } from "./index-e6818ded-r_t6ryaW.js";
3
+ /*!
4
+ * Copyright (c) 2025 Comcast. Prism UI - v7.32.2 - made with ❤️ in Philadelphia
5
+ */
6
+ const v = '.prism-box{border-color:rgb(var(--border-color-stroke-neutral-base)/var(--tw-border-opacity));border-radius:var(--border-radius-small,4px);border-style:solid;border-width:1px;padding:1rem}:host{--card-content-padding:1rem;--prism-card-border-width:1px;display:block;height:100%;margin-bottom:var(--card-spacing-top,.75rem);margin-top:var(--card-spacing-top,.75rem);max-width:var(--card-width);position:relative;width:100%}.card{--tw-border-opacity:var(--border-opacity-tertiary,0.15);border-color:rgb(var(--border-color-stroke-neutral-base)/var(--tw-border-opacity));border-radius:var(--border-radius-small,4px);border-style:solid;border-width:1px;box-sizing:border-box;height:100%;padding:1rem;padding:var(--card-content-padding);position:relative;transition:all .15s ease-in-out}.center{text-align:center}.left{text-align:left}.right{text-align:right}.card.eyebrow{padding:0 0 1rem}.card.eyebrow .eyebrow-cell{align-items:center;border-top-left-radius:var(--border-radius-small,4px);border-top-right-radius:var(--border-radius-small,4px);display:flex;justify-content:center;margin-bottom:1rem;padding:1rem 1.5rem}.card.eyebrow .eyebrow-cell .title-right{margin-right:.5rem}.card.eyebrow .eyebrow-cell .title-left{margin-left:.5rem}.card.eyebrow .content,.card.eyebrow .image{padding-left:var(--card-content-padding);padding-right:var(--card-content-padding)}.card.neutral{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-neutral-base-shadow);background-color:rgb(var(--background-color-material-neutral-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-neutral-base)/var(--tw-border-opacity))}.card.neutral.selected,.card.neutral2.selected{--tw-border-opacity:1;border-color:rgb(var(--border-color-stroke-theme1-base)/var(--tw-border-opacity))}.card.high.neutral.selected,.card.high.neutral2.selected{--tw-border-opacity:1;border-color:rgb(var(--border-color-stroke-theme1-focus)/var(--tw-border-opacity))}.card.neutral2{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-neutral2-base-shadow);background-color:rgb(var(--background-color-material-neutral2-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-neutral2-base)/var(--tw-border-opacity))}.card.info{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-info-base-shadow);background-color:rgb(var(--background-color-material-info-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-info-base)/var(--tw-border-opacity))}.card.high.info{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-info-base-shadow);background-color:rgb(var(--background-color-fill-info-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-info-focus)/var(--tw-border-opacity))}.card.caution{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-caution-base-shadow);background-color:rgb(var(--background-color-material-caution-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-caution-base)/var(--tw-border-opacity))}.card.high.caution{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-caution-base-shadow);background-color:rgb(var(--background-color-fill-caution-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-caution-focus)/var(--tw-border-opacity))}.card.negative{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-negative-base-shadow);background-color:rgb(var(--background-color-material-negative-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-negative-base)/var(--tw-border-opacity))}.card.high.negative{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-negative-base-shadow);background-color:rgb(var(--background-color-fill-negative-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-negative-focus)/var(--tw-border-opacity))}.card.positive{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-positive-base-shadow);background-color:rgb(var(--background-color-material-positive-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-positive-base)/var(--tw-border-opacity))}.card.high.positive{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-positive-base-shadow);background-color:rgb(var(--background-color-fill-positive-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-positive-focus)/var(--tw-border-opacity))}.card.theme1{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-theme1-base-shadow);background-color:rgb(var(--background-color-material-theme1-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-theme1-base)/var(--tw-border-opacity))}.card.theme2{--tw-border-opacity:1;--tw-border-opacity:var(--border-opacity-tertiary,0.15);--tw-bg-opacity:1;--shadow-color:var(--material-theme2-base-shadow);background-color:rgb(var(--background-color-material-theme2-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-theme2-base)/var(--tw-border-opacity))}.card.high.theme1{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-theme1-base-shadow);background-color:rgb(var(--background-color-fill-theme1-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-theme1-focus)/var(--tw-border-opacity))}.card.high.theme2{--tw-border-opacity:1;--tw-bg-opacity:1;--shadow-color:var(--fill-theme2-base-shadow);background-color:rgb(var(--background-color-fill-theme2-base)/var(--tw-bg-opacity));border-color:rgb(var(--border-color-stroke-theme2-focus)/var(--tw-border-opacity))}.card.high{--tw-text-opacity:1;color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.card.neutral.high{--tw-bg-opacity:1;--shadow-color:var(--fill-neutral-base-shadow);background-color:rgb(var(--background-color-fill-neutral-base)/var(--tw-bg-opacity))}.card.neutral2.high{--tw-bg-opacity:1;background-color:rgb(var(--background-color-fill-neutral2-base)/var(--tw-bg-opacity))}.eyebrow-tone.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))}.eyebrow-tone.info,.eyebrow-tone.positive{color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.eyebrow-tone.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))}.eyebrow-tone.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))}.eyebrow-tone.caution,.eyebrow-tone.negative{color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.eyebrow-tone.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))}.eyebrow-tone.neutral{--tw-bg-opacity:1;--tw-text-opacity:1;--shadow-color:var(--fill-neutral-base-shadow);background-color:rgb(var(--background-color-fill-neutral-base)/var(--tw-bg-opacity))}.eyebrow-tone.neutral,.eyebrow-tone.theme1{color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.eyebrow-tone.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))}.eyebrow-tone.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))}.eyebrow-tone.expressive,.eyebrow-tone.theme2{color:rgb(var(--text-color-inverse-base)/var(--tw-text-opacity))}.eyebrow-tone.expressive{--tw-text-opacity:1;background-image:var(--background-image-gradient-expressive,linear-gradient(90deg,#28156b,#7b30ff))}.selected{--tw-shadow:0px 16px 16px -8px var(--shadow-color);--tw-shadow-colored:0px 16px 16px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.card.selected{--tw-border-opacity:var(--border-opacity-primary,1);border-width:2px;margin:-1px}.selected-icon{position:absolute;right:-.75rem;top:-.75rem}.selected.high .selected-icon{border-radius:2.5rem;outline-style:solid;outline-width:2px}.selected.high.neutral .selected-icon,.selected.high.neutral2 .selected-icon,.selected.high.theme1 .selected-icon{outline-color:var(--outline-color-theme1-focus,#3d1881)}.selected.high.caution .selected-icon{outline-color:var(--outline-color-caution-focus,#a33800)}.selected.high.positive .selected-icon{outline-color:var(--outline-color-positive-focus,#005240)}.selected.high.negative .selected-icon{outline-color:var(--outline-color-negative-focus,#8f002f)}.selected.high.info .selected-icon{outline-color:var(--outline-color-info-focus,#0040a3)}@media (prefers-reduced-motion:reduce){.card{transition:none}}.horizontal,.horizontal-reverse,.mixed,.mixed-reverse,.stacked{display:flex}.horizontal,.mixed{flex-direction:row}.horizontal,.horizontal-reverse,.mixed,.mixed-reverse{align-items:center;-moz-column-gap:1rem;column-gap:1rem;justify-content:space-around}.horizontal-reverse,.mixed-reverse{flex-direction:row-reverse}.stacked{flex-direction:column;row-gap:1rem}@media (min-width:640px){.mixed,.mixed-reverse{-moz-column-gap:0;column-gap:0;flex-direction:column;row-gap:1rem}.mixed .image,.mixed-reverse .image{align-self:auto;justify-self:auto}}.clickable:has(.link:focus-visible){outline-color:var(--outline-color-neutral-focus,#35353b);outline-offset:2px;outline-style:solid;outline-width:1px}.clickable:not(.disabled):not(.selected):hover{--tw-shadow:0px 16px 16px -8px var(--shadow-color);--tw-shadow-colored:0px 16px 16px -8px var(--tw-shadow-color)}.clickable.selected:not(.disabled):hover,.clickable:not(.disabled):not(.selected):hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.clickable.selected:not(.disabled):hover{--tw-shadow:0px 24px 24px -8px var(--shadow-color);--tw-shadow-colored:0px 24px 24px -8px var(--tw-shadow-color)}.link:not([disabled]){cursor:pointer}.link{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--background-color-transparent,transparent);border-style:none;color:inherit;display:block;font:inherit;height:100%;outline:2px solid transparent;outline-offset:2px;padding:0;text-decoration-line:none;width:100%}.link,.link:after{transition:all .2s ease}.link:after{inset:0;bottom:0;content:"";left:0;opacity:0;position:absolute;right:0;top:0}footer{margin-top:1.5rem}::slotted(img){border-radius:var(--border-radius-small,4px);margin:auto}.screen-reader-text{height:1px;margin:-1px;width:1px}', y = v, m = class {
7
+ constructor(a) {
8
+ b(this, a), this.prismClick = n(this, "prismClick", 7), this.prismFocus = n(this, "prismFocus", 7), this.prismBlur = n(this, "prismBlur", 7), this.uid = w(), this.slots = {
9
+ image: !1,
10
+ actions: !1,
11
+ eyebrow: {
12
+ leading: !1,
13
+ trailing: !1
14
+ }
15
+ }, this._attributes = {}, this.interactiveAttrs = {
16
+ id: `${this.prismId}-${this.display}`,
17
+ onBlur: (t) => this.onBlur(t),
18
+ onFocus: (t) => this.onFocus(t),
19
+ class: { "screen-reader-text": !this.heading, link: !0 },
20
+ part: "native",
21
+ disabled: this.disabled,
22
+ "aria-labelledby": this.heading ? null : this.prismId
23
+ }, this._toggleClick = (t) => {
24
+ this.selected = !this.selected, this.onClick(t);
25
+ }, this.onClick = (t) => {
26
+ let { currentTarget: r } = t, { id: o } = r;
27
+ this.prismClick.emit({ id: o, selected: this.selected, target: r }).defaultPrevented && t.preventDefault();
28
+ }, this.onFocus = (t) => {
29
+ let { currentTarget: r } = t, { id: o } = r;
30
+ this.prismFocus.emit({ id: o, selected: this.selected, target: r });
31
+ }, this.onBlur = (t) => {
32
+ let { currentTarget: r } = t, { id: o } = r;
33
+ this.prismBlur.emit({ id: o, selected: this.selected, target: r });
34
+ }, this.prismId = `prism-card-${this.uid}`, this.display = "static", this.anchorAttr = void 0, this.buttonAttr = { type: "button" }, this.tone = "neutral", this.priority = "low", this.selected = !1, this.button = !1, this.type = "button", this.disabled = !1, this.download = void 0, this.href = void 0, this.rel = void 0, this.target = void 0, this.align = "center", this.shadow = !1, this.heading = void 0, this.eyebrow = void 0, this.eyebrowTone = "neutral", this.layout = "stacked", this.headingDisplay = "heading1", this.headingTag = "h2", this.eyebrowTag = "p";
35
+ }
36
+ /** @method
37
+ * Sets focus on the native `button` or `a`
38
+ */
39
+ async setFocus() {
40
+ this.nativeElement && this.nativeElement.focus();
41
+ }
42
+ connectedCallback() {
43
+ this.slots.image = !!this.el.querySelector('[slot="image"]'), this.slots.actions = !!this.el.querySelector('[slot="actions"]'), this.slots.eyebrow.leading = !!this.el.querySelector('[slot="eyebrow-asset-leading"]'), this.slots.eyebrow.trailing = !!this.el.querySelector('[slot="eyebrow-asset-trailing"]'), u("prism-card");
44
+ }
45
+ hasInteraction() {
46
+ return this.href !== void 0 && this.href !== "" || this.display !== "static" || this.button;
47
+ }
48
+ /** Card Contents */
49
+ renderCardContent(a) {
50
+ const t = this.slots.actions && !this.hasInteraction();
51
+ return e("section", { id: this.prismId, part: "inner", class: {
52
+ disabled: this.disabled,
53
+ [this.tone]: !0,
54
+ card: !0,
55
+ eyebrow: !!this.eyebrow,
56
+ selected: this.selected,
57
+ shadow: this.shadow,
58
+ [this.priority]: !0,
59
+ clickable: this.hasInteraction()
60
+ } }, this.selected && e("prism-icon", { size: "xs", contained: !0, containedPriority: this.priority === "high" ? "low" : "high", containedTone: this.tone === "neutral" || this.tone === "neutral2" ? "theme1" : this.tone, tone: this.priority === "high" ? this.tone === "neutral" || this.tone === "neutral2" ? "theme1" : this.tone : "neutral-inverse", theme: "fill", class: "selected-icon", name: "check" }), this.eyebrow && e("section", { ref: (r) => this.eyebrowElement = r, class: { "eyebrow-cell": !0, "eyebrow-tone": !0, [this.eyebrowTone]: !0 } }, e("slot", { name: "eyebrow-asset-leading" }), e("prism-text", { tag: this.eyebrowTag, class: { "title-right": this.slots.eyebrow.trailing, "title-left": this.slots.eyebrow.leading }, display: "button2" }, this.eyebrow), e("slot", { name: "eyebrow-asset-trailing" })), e("section", { class: { [this.layout]: !0, [this.align]: !0 } }, this.slots.image && e("section", { class: "image" }, e("slot", { name: "image" })), e("section", { class: "content" }, this.heading ? e("prism-text", { tag: this.headingTag, class: "heading", display: this.headingDisplay }, a ? (
61
+ // eslint-disable-next-line react/jsx-no-bind
62
+ e(a, Object.assign({ ref: (r) => this.nativeElement = r }, this._attributes, this.interactiveAttrs), this.heading)
63
+ ) : this.heading) : a ? e(
64
+ a,
65
+ Object.assign({
66
+ // eslint-disable-next-line react/jsx-no-bind
67
+ ref: (r) => this.nativeElement = r
68
+ }, this._attributes, this.interactiveAttrs)
69
+ ) : null, e("slot", null), t && e("footer", null, e("slot", { name: "actions" })))));
70
+ }
71
+ toggleSelection() {
72
+ }
73
+ renderCard() {
74
+ if (!this.hasInteraction())
75
+ return [this.renderCardContent()];
76
+ const r = (() => {
77
+ var o, s, c, l;
78
+ let d = this.display;
79
+ switch (this.button && (d = "button"), this.href && (d = "anchor"), d) {
80
+ case "anchor":
81
+ return this._attributes = {
82
+ onClick: (i) => this.onClick(i),
83
+ download: ((o = this.anchorAttr) === null || o === void 0 ? void 0 : o.download) || this.download,
84
+ href: this.href,
85
+ rel: ((s = this.anchorAttr) === null || s === void 0 ? void 0 : s.rel) || this.rel,
86
+ target: ((c = this.anchorAttr) === null || c === void 0 ? void 0 : c.target) || this.target
87
+ }, "a";
88
+ case "button":
89
+ return this._attributes = { onClick: (i) => this.onClick(i), type: ((l = this.buttonAttr) === null || l === void 0 ? void 0 : l.type) || this.type }, "button";
90
+ case "toggle":
91
+ return this._attributes = {
92
+ onClick: (i) => this._toggleClick(i),
93
+ type: "button",
94
+ "aria-pressed": this.selected.toString()
95
+ }, "button";
96
+ default:
97
+ return;
98
+ }
99
+ })();
100
+ return e(h, null, this.renderCardContent(r));
101
+ }
102
+ render() {
103
+ return e(g, { key: "c27625fc0fb6f9dc2d3af774ceaea2527836012a", class: {
104
+ disabled: this.disabled
105
+ } }, this.renderCard());
106
+ }
107
+ get el() {
108
+ return p(this);
109
+ }
110
+ static get watchers() {
111
+ return {
112
+ selected: ["toggleSelection"]
113
+ };
114
+ }
115
+ };
116
+ m.style = y;
117
+ export {
118
+ m as prism_card
119
+ };