@ed.yakovich/component-library 0.0.5 → 0.0.8

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 (91) hide show
  1. package/dist/lib/main.d.ts +0 -15
  2. package/dist/main.js +2 -32
  3. package/package.json +9 -5
  4. package/dist/components/Accordion/context/index.js +0 -7
  5. package/dist/components/Accordion/index.js +0 -38
  6. package/dist/components/Accordion/types/index.js +0 -1
  7. package/dist/components/Cart/index.js +0 -35
  8. package/dist/components/EquipmentSummary/context/index.js +0 -10
  9. package/dist/components/EquipmentSummary/index.js +0 -65
  10. package/dist/components/EquipmentSummary/types/index.js +0 -1
  11. package/dist/components/Grid/index.js +0 -19
  12. package/dist/components/HeroBanner/context/index.js +0 -7
  13. package/dist/components/HeroBanner/index.js +0 -33
  14. package/dist/components/HeroBanner/types/index.js +0 -1
  15. package/dist/components/InfoBanner/context/index.js +0 -7
  16. package/dist/components/InfoBanner/index.js +0 -26
  17. package/dist/components/InfoBanner/types/index.js +0 -1
  18. package/dist/components/Nav/index.js +0 -23
  19. package/dist/components/OfferCards/context/index.js +0 -7
  20. package/dist/components/OfferCards/index.js +0 -30
  21. package/dist/components/OfferCards/subComponents/OfferCard.js +0 -62
  22. package/dist/components/OfferCards/types/index.js +0 -1
  23. package/dist/components/SaleBanner/context/index.js +0 -7
  24. package/dist/components/SaleBanner/index.js +0 -59
  25. package/dist/components/SaleBanner/types/index.js +0 -1
  26. package/dist/index-0d8e0844-BJzWsYCM.js +0 -7403
  27. package/dist/index-C9Rf5U9q.js +0 -29143
  28. package/dist/index-b30029d4-E1YxEHFH.js +0 -12
  29. package/dist/index-e6818ded-r_t6ryaW.js +0 -57
  30. package/dist/index.esm-322571ff-D1REhsOg.js +0 -41
  31. package/dist/lib/components/Accordion/context/index.d.ts +0 -10
  32. package/dist/lib/components/Accordion/index.d.ts +0 -2
  33. package/dist/lib/components/Accordion/types/index.d.ts +0 -13
  34. package/dist/lib/components/Cart/index.d.ts +0 -6
  35. package/dist/lib/components/EquipmentSummary/context/index.d.ts +0 -10
  36. package/dist/lib/components/EquipmentSummary/index.d.ts +0 -2
  37. package/dist/lib/components/EquipmentSummary/types/index.d.ts +0 -14
  38. package/dist/lib/components/Grid/index.d.ts +0 -13
  39. package/dist/lib/components/HeroBanner/context/index.d.ts +0 -10
  40. package/dist/lib/components/HeroBanner/index.d.ts +0 -2
  41. package/dist/lib/components/HeroBanner/types/index.d.ts +0 -11
  42. package/dist/lib/components/InfoBanner/context/index.d.ts +0 -10
  43. package/dist/lib/components/InfoBanner/index.d.ts +0 -2
  44. package/dist/lib/components/InfoBanner/types/index.d.ts +0 -7
  45. package/dist/lib/components/Nav/index.d.ts +0 -8
  46. package/dist/lib/components/OfferCards/context/index.d.ts +0 -9
  47. package/dist/lib/components/OfferCards/index.d.ts +0 -2
  48. package/dist/lib/components/OfferCards/subComponents/OfferCard.d.ts +0 -3
  49. package/dist/lib/components/OfferCards/types/index.d.ts +0 -26
  50. package/dist/lib/components/SaleBanner/context/index.d.ts +0 -10
  51. package/dist/lib/components/SaleBanner/index.d.ts +0 -2
  52. package/dist/lib/components/SaleBanner/types/index.d.ts +0 -11
  53. package/dist/link-DO_Jvm9n.js +0 -685
  54. package/dist/prism-accordion.entry-DeyFGNx-.js +0 -51
  55. package/dist/prism-avatar_2.entry-MLbdVrJg.js +0 -68
  56. package/dist/prism-badge.entry-BG5y7O5U.js +0 -58
  57. package/dist/prism-banner.entry-DChrjpFH.js +0 -82
  58. package/dist/prism-breadcrumb.entry-1YzYlKen.js +0 -33
  59. package/dist/prism-button_2.entry-DO8IGIoS.js +0 -110
  60. package/dist/prism-card.entry-DQ6P4TZP.js +0 -119
  61. package/dist/prism-carousel.entry-BA8zsHRW.js +0 -3111
  62. package/dist/prism-checkbox-group.entry-CP4-gghb.js +0 -62
  63. package/dist/prism-checkbox.entry-CJCy8fvC.js +0 -99
  64. package/dist/prism-data-table.entry--0djw8ls.js +0 -10475
  65. package/dist/prism-datepicker.entry-DPm7tpKB.js +0 -249
  66. package/dist/prism-form.entry-CS1zRoMt.js +0 -42
  67. package/dist/prism-grid.entry-jcx2aMUm.js +0 -28
  68. package/dist/prism-header.entry-CBSIpa0M.js +0 -202
  69. package/dist/prism-hero.entry-B0CKL5y9.js +0 -23
  70. package/dist/prism-icon_2.entry-Aja4QGUK.js +0 -118
  71. package/dist/prism-image.entry-B--khr6E.js +0 -38
  72. package/dist/prism-input-file.entry-i5qJkwEK.js +0 -119
  73. package/dist/prism-input-otp.entry-DXoARuzH.js +0 -63
  74. package/dist/prism-input-text.entry-D4QQ-dYX.js +0 -228
  75. package/dist/prism-input-textarea.entry-eeQHnhqC.js +0 -140
  76. package/dist/prism-layout.entry-bfKqOEnU.js +0 -20
  77. package/dist/prism-lineitem.entry-YIRZPVe_.js +0 -44
  78. package/dist/prism-menu.entry-BIlRCiaA.js +0 -231
  79. package/dist/prism-modal.entry-Kc-SpAR-.js +0 -94
  80. package/dist/prism-pagination.entry-BCo9aMdq.js +0 -60
  81. package/dist/prism-popover.entry-LmDvzCiR.js +0 -1013
  82. package/dist/prism-popper.entry-BqrcyTkE.js +0 -959
  83. package/dist/prism-progress.entry-29_ezvop.js +0 -79
  84. package/dist/prism-radio-group.entry-cL6AqjTk.js +0 -66
  85. package/dist/prism-radio.entry-CM_vZFZA.js +0 -101
  86. package/dist/prism-select.entry-B6A3gk7B.js +0 -230
  87. package/dist/prism-switch.entry-CtEfKB58.js +0 -95
  88. package/dist/prism-tab.entry-DIDUhFlk.js +0 -20
  89. package/dist/prism-tabs.entry-Cj3dW5_E.js +0 -70
  90. package/dist/prism-tooltip.entry-DEdY5eRd.js +0 -52
  91. package/dist/prism-typeahead.entry-D2XrvXaG.js +0 -1234
@@ -1,119 +0,0 @@
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
- };