@atomic-ui/ui 0.1.5 → 0.1.7

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 (127) hide show
  1. package/README.md +13 -1
  2. package/dist/base/tokens.d.ts +23 -1
  3. package/dist/{chunk-CFGLOYWW.js → chunk-2YQA3VBY.js} +2 -2
  4. package/dist/{chunk-DR3SJ7ZV.js → chunk-4HU4Y23Q.js} +3 -3
  5. package/dist/{chunk-QH46SOPJ.js → chunk-5EA4IDUD.js} +54 -11
  6. package/dist/chunk-5EA4IDUD.js.map +1 -0
  7. package/dist/{chunk-3OSL2HMN.js → chunk-6ICOJPMD.js} +7 -5
  8. package/dist/chunk-6ICOJPMD.js.map +1 -0
  9. package/dist/{chunk-DI2CJ3MZ.js → chunk-7BIQ3K6H.js} +2 -2
  10. package/dist/{chunk-AXQ5YBN2.js → chunk-7Y6UCSUS.js} +135 -10
  11. package/dist/chunk-7Y6UCSUS.js.map +1 -0
  12. package/dist/{chunk-G6UVYMA6.js → chunk-BTGCUONV.js} +2 -2
  13. package/dist/{chunk-4JKUAA6K.js → chunk-C36CZRHK.js} +14 -5
  14. package/dist/chunk-C36CZRHK.js.map +1 -0
  15. package/dist/{chunk-ZDYTNFQI.js → chunk-CMAU4DSB.js} +15 -5
  16. package/dist/chunk-CMAU4DSB.js.map +1 -0
  17. package/dist/{chunk-HWNY6U5F.js → chunk-G6OVKNL7.js} +2 -2
  18. package/dist/{chunk-6UDDZQDK.js → chunk-GO2IBRFP.js} +3 -3
  19. package/dist/chunk-GO2IBRFP.js.map +1 -0
  20. package/dist/{chunk-KWURASAB.js → chunk-GSCVG2ER.js} +3 -3
  21. package/dist/{chunk-IBTOZOGI.js → chunk-HWWA27DN.js} +2 -2
  22. package/dist/{chunk-U2S7OESF.js → chunk-MLVUMCQ2.js} +45 -13
  23. package/dist/chunk-MLVUMCQ2.js.map +1 -0
  24. package/dist/{chunk-4AJPS5AU.js → chunk-MOEMFL4K.js} +15 -5
  25. package/dist/chunk-MOEMFL4K.js.map +1 -0
  26. package/dist/{chunk-5RVMMKMO.js → chunk-NQKYHILD.js} +3 -3
  27. package/dist/{chunk-5NUF7ZQA.js → chunk-NTNXHLTM.js} +24 -3
  28. package/dist/chunk-NTNXHLTM.js.map +1 -0
  29. package/dist/{chunk-OFAVRPRK.js → chunk-OB7LC6NJ.js} +2 -2
  30. package/dist/chunk-OB7LC6NJ.js.map +1 -0
  31. package/dist/chunk-QCNT7D5V.js +549 -0
  32. package/dist/chunk-QCNT7D5V.js.map +1 -0
  33. package/dist/{chunk-H6L3FSQY.js → chunk-QDNI54ON.js} +3 -3
  34. package/dist/{chunk-QELX47AP.js → chunk-T6L3USBZ.js} +31 -20
  35. package/dist/chunk-T6L3USBZ.js.map +1 -0
  36. package/dist/{chunk-TZD7IVVQ.js → chunk-TPF4MOMF.js} +8 -3
  37. package/dist/chunk-TPF4MOMF.js.map +1 -0
  38. package/dist/{chunk-S3EQO33M.js → chunk-VTFCTWSX.js} +6 -4
  39. package/dist/chunk-VTFCTWSX.js.map +1 -0
  40. package/dist/{chunk-2RBYVWZT.js → chunk-VWNBB7FW.js} +5 -3
  41. package/dist/chunk-VWNBB7FW.js.map +1 -0
  42. package/dist/{chunk-6GKI67P7.js → chunk-WECSVHIM.js} +2 -2
  43. package/dist/chunk-X7IPZPTG.js +710 -0
  44. package/dist/chunk-X7IPZPTG.js.map +1 -0
  45. package/dist/{chunk-57P4WO4Y.js → chunk-XJP45LFA.js} +28 -21
  46. package/dist/chunk-XJP45LFA.js.map +1 -0
  47. package/dist/{chunk-6MLXFFH4.js → chunk-XVKEM5JY.js} +3 -3
  48. package/dist/chunk-XVKEM5JY.js.map +1 -0
  49. package/dist/chunk-ZBLTU67D.js +424 -0
  50. package/dist/chunk-ZBLTU67D.js.map +1 -0
  51. package/dist/{chunk-JPEWRJSQ.js → chunk-ZGAOMRYD.js} +3 -3
  52. package/dist/{chunk-LLRJU7XE.js → chunk-ZQJD4YEJ.js} +6 -6
  53. package/dist/chunk-ZQJD4YEJ.js.map +1 -0
  54. package/dist/components/accordion.js +2 -2
  55. package/dist/components/alert.js +2 -2
  56. package/dist/components/app-ui.d.ts +421 -0
  57. package/dist/components/app-ui.js +26 -0
  58. package/dist/components/app-ui.js.map +1 -0
  59. package/dist/components/blocks.d.ts +2 -2
  60. package/dist/components/blocks.js +3 -3
  61. package/dist/components/button.d.ts +7 -0
  62. package/dist/components/button.js +3 -3
  63. package/dist/components/checkbox-group.js +3 -3
  64. package/dist/components/checkbox.js +3 -3
  65. package/dist/components/date-input.js +3 -3
  66. package/dist/components/dialog.js +2 -2
  67. package/dist/components/fieldset.js +2 -2
  68. package/dist/components/grid.d.ts +2 -2
  69. package/dist/components/grid.js +2 -2
  70. package/dist/components/help.js +2 -2
  71. package/dist/components/icon.js +2 -2
  72. package/dist/components/layout.d.ts +10 -5
  73. package/dist/components/layout.js +2 -2
  74. package/dist/components/link.js +3 -3
  75. package/dist/components/marketing.d.ts +119 -6
  76. package/dist/components/marketing.js +7 -3
  77. package/dist/components/media.js +2 -2
  78. package/dist/components/navigation.d.ts +9 -2
  79. package/dist/components/navigation.js +3 -3
  80. package/dist/components/organisms.d.ts +547 -0
  81. package/dist/components/organisms.js +25 -0
  82. package/dist/components/organisms.js.map +1 -0
  83. package/dist/components/page.d.ts +14 -3
  84. package/dist/components/page.js +2 -2
  85. package/dist/components/price.d.ts +5 -0
  86. package/dist/components/price.js +2 -2
  87. package/dist/components/progress.js +2 -2
  88. package/dist/components/property.d.ts +389 -0
  89. package/dist/components/property.js +19 -0
  90. package/dist/components/property.js.map +1 -0
  91. package/dist/components/radio-group.js +3 -3
  92. package/dist/components/select.js +3 -3
  93. package/dist/components/summary-list.js +2 -2
  94. package/dist/components/table.js +2 -2
  95. package/dist/components/text-input.js +3 -3
  96. package/dist/components/textarea.js +3 -3
  97. package/dist/index.d.ts +4 -1
  98. package/dist/index.js +94 -40
  99. package/package.json +2 -2
  100. package/dist/chunk-2RBYVWZT.js.map +0 -1
  101. package/dist/chunk-3OSL2HMN.js.map +0 -1
  102. package/dist/chunk-4AJPS5AU.js.map +0 -1
  103. package/dist/chunk-4JKUAA6K.js.map +0 -1
  104. package/dist/chunk-57P4WO4Y.js.map +0 -1
  105. package/dist/chunk-5NUF7ZQA.js.map +0 -1
  106. package/dist/chunk-6MLXFFH4.js.map +0 -1
  107. package/dist/chunk-6UDDZQDK.js.map +0 -1
  108. package/dist/chunk-AXQ5YBN2.js.map +0 -1
  109. package/dist/chunk-LLRJU7XE.js.map +0 -1
  110. package/dist/chunk-OFAVRPRK.js.map +0 -1
  111. package/dist/chunk-QELX47AP.js.map +0 -1
  112. package/dist/chunk-QH46SOPJ.js.map +0 -1
  113. package/dist/chunk-S3EQO33M.js.map +0 -1
  114. package/dist/chunk-TZD7IVVQ.js.map +0 -1
  115. package/dist/chunk-U2S7OESF.js.map +0 -1
  116. package/dist/chunk-ZDYTNFQI.js.map +0 -1
  117. /package/dist/{chunk-CFGLOYWW.js.map → chunk-2YQA3VBY.js.map} +0 -0
  118. /package/dist/{chunk-DR3SJ7ZV.js.map → chunk-4HU4Y23Q.js.map} +0 -0
  119. /package/dist/{chunk-DI2CJ3MZ.js.map → chunk-7BIQ3K6H.js.map} +0 -0
  120. /package/dist/{chunk-G6UVYMA6.js.map → chunk-BTGCUONV.js.map} +0 -0
  121. /package/dist/{chunk-HWNY6U5F.js.map → chunk-G6OVKNL7.js.map} +0 -0
  122. /package/dist/{chunk-KWURASAB.js.map → chunk-GSCVG2ER.js.map} +0 -0
  123. /package/dist/{chunk-IBTOZOGI.js.map → chunk-HWWA27DN.js.map} +0 -0
  124. /package/dist/{chunk-5RVMMKMO.js.map → chunk-NQKYHILD.js.map} +0 -0
  125. /package/dist/{chunk-H6L3FSQY.js.map → chunk-QDNI54ON.js.map} +0 -0
  126. /package/dist/{chunk-6GKI67P7.js.map → chunk-WECSVHIM.js.map} +0 -0
  127. /package/dist/{chunk-JPEWRJSQ.js.map → chunk-ZGAOMRYD.js.map} +0 -0
@@ -0,0 +1,424 @@
1
+ import {
2
+ iconSvg
3
+ } from "./chunk-2YQA3VBY.js";
4
+ import {
5
+ ImpktElement,
6
+ focusRing,
7
+ fontWeight,
8
+ space,
9
+ spaceAround,
10
+ t,
11
+ targetSize,
12
+ type
13
+ } from "./chunk-NTNXHLTM.js";
14
+
15
+ // packages/ui/src/components/property.ts
16
+ import { css, html, nothing } from "lit";
17
+ var ImpktSitePlan = class extends ImpktElement {
18
+ static {
19
+ this.properties = {
20
+ imageSrc: { type: String, attribute: "image-src" },
21
+ imageAlt: { type: String, attribute: "image-alt" },
22
+ plots: { type: Array },
23
+ hint: { type: String },
24
+ selectedPlot: { type: String, attribute: "selected-plot" },
25
+ panel: { type: String, reflect: true },
26
+ plotWord: { type: String, attribute: "plot-word" },
27
+ actionText: { type: String, attribute: "action-text" },
28
+ availableText: { type: String, attribute: "available-text" },
29
+ reservedText: { type: String, attribute: "reserved-text" },
30
+ soldText: { type: String, attribute: "sold-text" },
31
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
32
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
33
+ };
34
+ }
35
+ constructor() {
36
+ super();
37
+ this.imageSrc = "";
38
+ this.imageAlt = "";
39
+ this.plots = [];
40
+ this.hint = "Choose a plot to see its price and availability.";
41
+ this.selectedPlot = "";
42
+ this.panel = "beside";
43
+ this.plotWord = "Plot";
44
+ this.actionText = "View this home";
45
+ this.availableText = "Available";
46
+ this.reservedText = "Reserved";
47
+ this.soldText = "Sold";
48
+ this.spaceAbove = "none";
49
+ this.spaceBelow = "none";
50
+ }
51
+ static {
52
+ this.styles = [...ImpktElement.styles, focusRing, spaceAround, css`
53
+ :host { display: block; container-type: inline-size; }
54
+ .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: ${space(6)}; align-items: start; }
55
+ .plan { position: relative; overflow: hidden; border-radius: ${t.radius2xl}; background: ${t.surfaceSubtle}; box-shadow: ${t.shadowMd}; line-height: 0; }
56
+ .plan img { inline-size: 100%; block-size: auto; }
57
+ .pin { position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: 34px; block-size: 34px; margin: -17px 0 0 -17px; padding: 0; font: inherit; ${type("xs")} line-height: 1; font-weight: ${fontWeight("bold")}; color: ${t.onBrand}; background: ${t.brand}; border: 2px solid ${t.surfaceCard}; border-radius: 50%; box-shadow: ${t.shadowMd}; cursor: pointer; transition: transform 120ms ease-in-out; }
58
+ .pin:hover { transform: scale(1.12); }
59
+ .pin.reserved { color: ${t.text}; background: ${t.warningSubtle}; border-color: ${t.warning}; border-style: dashed; }
60
+ .pin.sold { color: ${t.textMuted}; background: ${t.surfaceCard}; border-color: ${t.border}; border-radius: ${t.radius}; }
61
+ .pin[aria-pressed='true'] { transform: scale(1.22); box-shadow: ${t.shadowLg}, 0 0 0 3px ${t.brand}; }
62
+ .panel { display: flex; flex-direction: column; gap: ${space(3)}; padding: ${space(6)}; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowSm}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }
63
+ .hint { margin: 0; color: ${t.textMuted}; }
64
+ .name { margin: 0; font-family: ${t.fontHeading}; ${type("2xl")} font-weight: ${fontWeight("bold")}; color: ${t.textHeading}; }
65
+ .sub { margin: 0; color: ${t.textMuted}; }
66
+ .price { margin: 0; ${type("xl")} font-weight: ${fontWeight("semibold")}; }
67
+ .status { align-self: flex-start; padding: ${space(0.5)} ${space(2.5)}; ${type("xs")} font-weight: ${fontWeight("semibold")}; color: ${t.successText}; background: ${t.successSubtle}; border-radius: 999px; }
68
+ .status.reserved { color: ${t.warningText}; background: ${t.warningSubtle}; }
69
+ .status.sold { color: ${t.textMuted}; background: ${t.surfaceSubtle}; }
70
+ .go { ${targetSize} display: inline-flex; align-items: center; justify-content: center; gap: ${space(2)}; padding: ${space(2)} ${space(4)}; ${type("sm")} font-weight: ${fontWeight("semibold")}; color: ${t.onBrand}; text-decoration: none; background: ${t.brand}; border-radius: ${t.radiusLg}; }
71
+ .go:hover { background: ${t.brandHover}; }
72
+ .legend { display: flex; flex-wrap: wrap; gap: ${space(4)}; margin: ${space(3)} 0 0; padding: 0; list-style: none; ${type("sm")} color: ${t.textMuted}; }
73
+ .legend li { display: inline-flex; align-items: center; gap: ${space(2)}; }
74
+ .key { box-sizing: border-box; inline-size: 14px; block-size: 14px; background: ${t.brand}; border: 2px solid ${t.surfaceCard}; border-radius: 50%; outline: 1px solid color-mix(in srgb, currentColor 55%, transparent); }
75
+ .key.reserved { background: ${t.warningSubtle}; border: 2px dashed ${t.warning}; }
76
+ .key.sold { background: ${t.surfaceCard}; border: 2px solid ${t.border}; border-radius: 3px; }
77
+ :host { --plan-card: var(--impkt-solid-card, ${t.surfaceCard}); --plan-text: var(--impkt-solid-text, ${t.text}); --plan-heading: var(--impkt-solid-heading, ${t.text}); --plan-muted: var(--impkt-solid-muted, ${t.textMuted}); }
78
+ :host([panel='over']) .panel { background: var(--plan-card); color: var(--plan-text); --impkt-color-surface-card: var(--plan-card); --impkt-color-text-default: var(--plan-text); --impkt-color-text-heading: var(--plan-heading); --impkt-color-text-muted: var(--plan-muted); }
79
+ @container (min-width: 44.01rem) { :host([panel='over']) .wrap { position: relative; grid-template-columns: minmax(0, 1fr); } :host([panel='over']) .panel { position: absolute; inset-block-start: 32%; inset-inline-end: ${space(8)}; inline-size: 22.5rem; box-sizing: border-box; box-shadow: ${t.shadowXl}; } }
80
+ @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }
81
+ `];
82
+ }
83
+ willUpdate(changed) {
84
+ if ((changed.has("selectedPlot") || changed.has("plots")) && this.selectedPlot && !this.chosen) this.chosen = this.plots.find((p) => String(p.number) === this.selectedPlot);
85
+ }
86
+ word(status) {
87
+ return status === "sold" ? this.soldText : status === "reserved" ? this.reservedText : this.availableText;
88
+ }
89
+ choose(plot) {
90
+ this.chosen = plot;
91
+ this.requestUpdate();
92
+ this.dispatchEvent(new CustomEvent("impkt-select", { detail: { plot }, bubbles: true, composed: true }));
93
+ }
94
+ renderPanel() {
95
+ const plot = this.chosen;
96
+ if (!plot) return html`<p class="hint">${this.hint}</p>`;
97
+ const status = plot.status ?? "available";
98
+ return html`<span class="status ${status}">${this.word(status)}</span>
99
+ <p class="name">${this.plotWord} ${plot.number}</p>
100
+ ${plot.name || plot.beds ? html`<p class="sub">${[plot.name, plot.beds].filter(Boolean).join(" \xB7 ")}</p>` : nothing}
101
+ ${plot.price ? html`<p class="price">${plot.price}</p>` : nothing}
102
+ ${plot.href && status !== "sold" ? html`<a class="go" href=${plot.href}>${this.actionText}${iconSvg("arrow-right", "16px")}</a>` : nothing}`;
103
+ }
104
+ render() {
105
+ return html`<div class="wrap" part="wrap">
106
+ <div>
107
+ <div class="plan" part="plan">
108
+ <img src=${this.imageSrc} alt=${this.imageAlt} />
109
+ ${this.plots.map((plot) => {
110
+ const status = plot.status ?? "available";
111
+ const name = [`${this.plotWord} ${plot.number}`, plot.name, this.word(status), plot.price].filter(Boolean).join(", ");
112
+ return html`<button class="pin ${status}" type="button" style="left:${Number(plot.x)}%;top:${Number(plot.y)}%" aria-label=${name} aria-pressed=${String(this.chosen === plot)} @click=${() => this.choose(plot)}>${plot.number}</button>`;
113
+ })}
114
+ </div>
115
+ <ul class="legend">
116
+ <li><span class="key"></span>${this.availableText}</li>
117
+ <li><span class="key reserved"></span>${this.reservedText}</li>
118
+ <li><span class="key sold"></span>${this.soldText}</li>
119
+ </ul>
120
+ </div>
121
+ <div class="panel" part="panel" aria-live="polite">${this.renderPanel()}</div>
122
+ </div>`;
123
+ }
124
+ };
125
+ function monthlyPayment(loan, annualRate, years) {
126
+ const months = years * 12;
127
+ if (loan <= 0 || months <= 0) return 0;
128
+ const rate = annualRate / 100 / 12;
129
+ return rate === 0 ? loan / months : loan * rate / (1 - (1 + rate) ** -months);
130
+ }
131
+ var ImpktMortgageCalculator = class extends ImpktElement {
132
+ static {
133
+ this.properties = {
134
+ heading: { type: String },
135
+ price: { type: Number },
136
+ depositPercent: { type: Number, attribute: "deposit-percent" },
137
+ rate: { type: Number },
138
+ years: { type: Number },
139
+ currency: { type: String },
140
+ smallPrint: { type: String, attribute: "small-print" },
141
+ headingLevel: { type: Number, attribute: "heading-level" },
142
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
143
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
144
+ };
145
+ }
146
+ constructor() {
147
+ super();
148
+ this.heading = "What would it cost each month?";
149
+ this.price = 385e3;
150
+ this.depositPercent = 10;
151
+ this.rate = 4.5;
152
+ this.years = 30;
153
+ this.currency = "GBP";
154
+ this.smallPrint = "This is an estimate, not a mortgage offer. Your home may be repossessed if you do not keep up repayments on your mortgage.";
155
+ this.headingLevel = 2;
156
+ this.spaceAbove = "none";
157
+ this.spaceBelow = "none";
158
+ }
159
+ static {
160
+ this.styles = [...ImpktElement.styles, focusRing, spaceAround, css`
161
+ :host { display: block; container-type: inline-size; }
162
+ .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowMd}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }
163
+ .inputs { display: flex; flex-direction: column; gap: ${space(5)}; padding: ${space(8)}; }
164
+ .h { margin: 0; font-family: ${t.fontHeading}; ${type("2xl")} font-weight: ${fontWeight("bold")}; color: ${t.textHeading}; }
165
+ label { display: flex; justify-content: space-between; gap: ${space(3)}; ${type("sm")} font-weight: ${fontWeight("semibold")}; margin-block-end: ${space(1.5)}; }
166
+ .read { font-weight: ${fontWeight("regular")}; color: ${t.textMuted}; }
167
+ input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${space(2)} ${space(3)}; font: inherit; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; }
168
+ input[type='range'] { inline-size: 100%; min-block-size: 24px; margin: 0; accent-color: ${t.brand}; }
169
+ .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(4)}; }
170
+ .result { display: flex; flex-direction: column; justify-content: center; gap: ${space(2)}; padding: ${space(8)}; color: ${t.onBrand}; background: ${t.brand}; }
171
+ .caption { margin: 0; ${type("sm")} opacity: 0.85; }
172
+ output { display: block; font-family: ${t.fontHeading}; ${type("4xl")} font-weight: ${fontWeight("bold")}; }
173
+ dl { display: grid; gap: ${space(2)}; margin: ${space(4)} 0 0; padding-block-start: ${space(4)}; border-block-start: 1px solid color-mix(in srgb, ${t.onBrand} 25%, transparent); ${type("sm")} }
174
+ dl div { display: flex; justify-content: space-between; gap: ${space(3)}; }
175
+ dt { opacity: 0.85; }
176
+ dd { margin: 0; font-weight: ${fontWeight("semibold")}; }
177
+ .small { grid-column: 1 / -1; margin: 0; padding: ${space(4)} ${space(8)}; ${type("xs")} color: ${t.textMuted}; background: ${t.surfaceSubtle}; }
178
+ @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${space(5)}; } .small { padding: ${space(4)} ${space(5)}; } }
179
+ `];
180
+ }
181
+ money(amount) {
182
+ try {
183
+ return new Intl.NumberFormat("en-GB", { style: "currency", currency: this.currency, maximumFractionDigits: 0 }).format(amount);
184
+ } catch {
185
+ return String(Math.round(amount));
186
+ }
187
+ }
188
+ field(key) {
189
+ return (event) => {
190
+ this[key] = Number(event.target.value) || 0;
191
+ };
192
+ }
193
+ render() {
194
+ const deposit = this.price * this.depositPercent / 100;
195
+ const loan = Math.max(this.price - deposit, 0);
196
+ const monthly = monthlyPayment(loan, this.rate, this.years);
197
+ return html`<div class="wrap" part="wrap">
198
+ <div class="inputs">
199
+ ${this.heading ? html`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>` : nothing}
200
+ <div><label for=${this.id_("price")}>Home price</label><input id=${this.id_("price")} type="number" min="0" step="1000" inputmode="numeric" .value=${String(this.price)} @input=${this.field("price")} /></div>
201
+ <div><label for=${this.id_("deposit")}>Deposit <span class="read">${this.depositPercent}% · ${this.money(deposit)}</span></label><input id=${this.id_("deposit")} type="range" min="5" max="60" step="1" .value=${String(this.depositPercent)} @input=${this.field("depositPercent")} /></div>
202
+ <div class="two">
203
+ <div><label for=${this.id_("years")}>Term <span class="read">${this.years} years</span></label><input id=${this.id_("years")} type="range" min="5" max="40" step="1" .value=${String(this.years)} @input=${this.field("years")} /></div>
204
+ <div><label for=${this.id_("rate")}>Interest rate (%)</label><input id=${this.id_("rate")} type="number" min="0" max="20" step="0.05" inputmode="decimal" .value=${String(this.rate)} @input=${this.field("rate")} /></div>
205
+ </div>
206
+ </div>
207
+ <div class="result">
208
+ <p class="caption">Estimated monthly repayment</p>
209
+ <output for=${`${this.id_("price")} ${this.id_("deposit")} ${this.id_("years")} ${this.id_("rate")}`}>${this.money(monthly)}</output>
210
+ <dl>
211
+ <div><dt>You would borrow</dt><dd>${this.money(loan)}</dd></div>
212
+ <div><dt>Total repayable</dt><dd>${this.money(monthly * this.years * 12)}</dd></div>
213
+ </dl>
214
+ </div>
215
+ ${this.smallPrint ? html`<p class="small">${this.smallPrint}</p>` : nothing}
216
+ </div>`;
217
+ }
218
+ };
219
+ var ImpktBeforeAfter = class extends ImpktElement {
220
+ static {
221
+ this.properties = {
222
+ beforeSrc: { type: String, attribute: "before-src" },
223
+ beforeAlt: { type: String, attribute: "before-alt" },
224
+ afterSrc: { type: String, attribute: "after-src" },
225
+ afterAlt: { type: String, attribute: "after-alt" },
226
+ beforeLabel: { type: String, attribute: "before-label" },
227
+ afterLabel: { type: String, attribute: "after-label" },
228
+ label: { type: String },
229
+ position: { type: Number },
230
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
231
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
232
+ };
233
+ }
234
+ constructor() {
235
+ super();
236
+ this.beforeSrc = "";
237
+ this.beforeAlt = "";
238
+ this.afterSrc = "";
239
+ this.afterAlt = "";
240
+ this.beforeLabel = "Before";
241
+ this.afterLabel = "After";
242
+ this.label = "Compare the two pictures";
243
+ this.position = 50;
244
+ this.spaceAbove = "none";
245
+ this.spaceBelow = "none";
246
+ }
247
+ static {
248
+ this.styles = [...ImpktElement.styles, focusRing, spaceAround, css`
249
+ .frame { position: relative; overflow: hidden; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; line-height: 0; --at: 50%; }
250
+ img { display: block; inline-size: 100%; block-size: auto; }
251
+ .after { position: absolute; inset: 0; block-size: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--at)); }
252
+ .tag { position: absolute; inset-block-start: ${space(3)}; padding: ${space(1)} ${space(3)}; ${type("xs")} line-height: 1.4; font-weight: ${fontWeight("semibold")}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: 999px; box-shadow: ${t.shadowSm}; }
253
+ .tag.b { inset-inline-start: ${space(3)}; }
254
+ .tag.a { inset-inline-end: ${space(3)}; }
255
+ .line { position: absolute; inset-block: 0; inset-inline-start: var(--at); inline-size: 2px; margin-inline-start: -1px; background: ${t.surfaceCard}; pointer-events: none; }
256
+ .grip { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; display: flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; color: ${t.text}; background: ${t.surfaceCard}; border-radius: 50%; box-shadow: ${t.shadowMd}; }
257
+ input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
258
+ .frame:has(input:focus-visible) .grip { box-shadow: ${t.focusShadow}; }
259
+ `];
260
+ }
261
+ render() {
262
+ return html`<div class="frame" part="frame" style="--at:${this.position}%">
263
+ <img src=${this.beforeSrc} alt=${this.beforeAlt} />
264
+ <img class="after" src=${this.afterSrc} alt=${this.afterAlt} />
265
+ <span class="tag b" aria-hidden="true">${this.beforeLabel}</span>
266
+ <span class="tag a" aria-hidden="true">${this.afterLabel}</span>
267
+ <span class="line"><span class="grip">${iconSvg("arrow-left", "14px")}${iconSvg("arrow-right", "14px")}</span></span>
268
+ <input type="range" min="0" max="100" aria-label=${this.label} .value=${String(this.position)} @input=${(e) => {
269
+ this.position = Number(e.target.value);
270
+ }} />
271
+ </div>`;
272
+ }
273
+ };
274
+ var ImpktStickyBar = class extends ImpktElement {
275
+ constructor() {
276
+ super();
277
+ this.shown = false;
278
+ this.check = () => {
279
+ const shown = window.scrollY >= this.revealAfter;
280
+ if (shown === this.shown) return;
281
+ this.shown = shown;
282
+ this.requestUpdate();
283
+ this.clearance(shown);
284
+ };
285
+ this.label = "Quick actions";
286
+ this.heading = "";
287
+ this.lead = "";
288
+ this.showOn = "phones";
289
+ this.revealAfter = 400;
290
+ }
291
+ static {
292
+ this.properties = {
293
+ label: { type: String },
294
+ heading: { type: String },
295
+ lead: { type: String },
296
+ showOn: { type: String, reflect: true, attribute: "show-on" },
297
+ revealAfter: { type: Number, attribute: "reveal-after" }
298
+ };
299
+ }
300
+ static {
301
+ this.styles = [...ImpktElement.styles, focusRing, css`
302
+ :host { display: block; }
303
+ .bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(3)} ${space(4)} calc(${space(3)} + env(safe-area-inset-bottom)); background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}, 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); transform: translateY(110%); visibility: hidden; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms; }
304
+ .bar.on { transform: none; visibility: visible; }
305
+ .spacer { block-size: 5rem; }
306
+ .h { font-family: ${t.fontHeading}; ${type("md")} font-weight: ${fontWeight("bold")}; color: ${t.textHeading}; }
307
+ .t { ${type("xs")} color: ${t.textMuted}; }
308
+ .words { min-inline-size: 0; }
309
+ .actions { display: flex; flex: none; gap: ${space(2)}; }
310
+ @media (min-width: 48rem) { :host([show-on='phones']) { display: none; } }
311
+ `];
312
+ }
313
+ /** Leaves room for the bar when the browser scrolls something into view. */
314
+ clearance(on) {
315
+ const visible = on && getComputedStyle(this).display !== "none";
316
+ const height = visible ? `${this.renderRoot.querySelector(".bar")?.getBoundingClientRect().height ?? 80}px` : "";
317
+ const root = document.documentElement.style;
318
+ root.scrollPaddingBlockEnd = height;
319
+ if (height) root.setProperty("--impkt-bottom-bar", height);
320
+ else root.removeProperty("--impkt-bottom-bar");
321
+ }
322
+ connectedCallback() {
323
+ super.connectedCallback();
324
+ window.addEventListener("scroll", this.check, { passive: true });
325
+ this.check();
326
+ }
327
+ disconnectedCallback() {
328
+ super.disconnectedCallback();
329
+ window.removeEventListener("scroll", this.check);
330
+ this.clearance(false);
331
+ }
332
+ render() {
333
+ return html`<div class="spacer"></div>
334
+ <section class="bar ${this.shown ? "on" : ""}" part="bar" aria-label=${this.label}>
335
+ <div class="words">
336
+ ${this.heading ? html`<div class="h">${this.heading}</div>` : nothing}
337
+ ${this.lead ? html`<div class="t">${this.lead}</div>` : nothing}
338
+ </div>
339
+ <div class="actions"><slot name="actions"></slot></div>
340
+ </section>`;
341
+ }
342
+ };
343
+ var ImpktLocationCard = class extends ImpktElement {
344
+ static {
345
+ this.properties = {
346
+ heading: { type: String },
347
+ address: { type: String },
348
+ hours: { type: String },
349
+ phone: { type: String },
350
+ mapSrc: { type: String, attribute: "map-src" },
351
+ mapAlt: { type: String, attribute: "map-alt" },
352
+ directionsText: { type: String, attribute: "directions-text" },
353
+ directionsHref: { type: String, attribute: "directions-href" },
354
+ nearby: { type: Array },
355
+ headingLevel: { type: Number, attribute: "heading-level" },
356
+ spaceAbove: { type: String, reflect: true, attribute: "space-above" },
357
+ spaceBelow: { type: String, reflect: true, attribute: "space-below" }
358
+ };
359
+ }
360
+ constructor() {
361
+ super();
362
+ this.heading = "";
363
+ this.address = "";
364
+ this.hours = "";
365
+ this.phone = "";
366
+ this.mapSrc = "";
367
+ this.mapAlt = "";
368
+ this.directionsText = "Get directions";
369
+ this.directionsHref = "";
370
+ this.nearby = [];
371
+ this.headingLevel = 2;
372
+ this.spaceAbove = "none";
373
+ this.spaceBelow = "none";
374
+ }
375
+ static {
376
+ this.styles = [...ImpktElement.styles, focusRing, spaceAround, css`
377
+ :host { display: block; container-type: inline-size; }
378
+ .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowMd}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }
379
+ .wrap.solo { grid-template-columns: minmax(0, 1fr); }
380
+ .map { min-block-size: 16rem; background: ${t.surfaceSubtle}; }
381
+ .map img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
382
+ .info { display: flex; flex-direction: column; gap: ${space(3)}; padding: ${space(8)}; }
383
+ .h { margin: 0; font-family: ${t.fontHeading}; ${type("2xl")} font-weight: ${fontWeight("bold")}; color: ${t.textHeading}; }
384
+ .row { display: flex; gap: ${space(3)}; margin: 0; white-space: pre-line; }
385
+ .row svg { flex: none; margin-block-start: ${space(0.5)}; color: ${t.brand}; }
386
+ a { color: ${t.link}; }
387
+ ul { display: grid; gap: ${space(1.5)}; margin: ${space(1)} 0; padding: ${space(3)} 0 0; list-style: none; border-block-start: 1px solid color-mix(in srgb, ${t.text} 10%, transparent); ${type("sm")} }
388
+ li { display: flex; justify-content: space-between; gap: ${space(3)}; }
389
+ li span:last-child { color: ${t.textMuted}; text-align: end; }
390
+ .go { ${targetSize} align-self: flex-start; display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(2)} ${space(4)}; ${type("sm")} font-weight: ${fontWeight("semibold")}; color: ${t.onBrand}; text-decoration: none; background: ${t.brand}; border-radius: ${t.radiusLg}; }
391
+ .go:hover { background: ${t.brandHover}; }
392
+ @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .info { padding: ${space(5)}; } }
393
+ `];
394
+ }
395
+ render() {
396
+ const directions = this.directionsHref || (this.address ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(this.address)}` : "");
397
+ return html`<div class="wrap ${this.mapSrc ? "" : "solo"}" part="wrap">
398
+ ${this.mapSrc ? html`<div class="map"><img src=${this.mapSrc} alt=${this.mapAlt} /></div>` : nothing}
399
+ <div class="info">
400
+ ${this.heading ? html`<div class="h" role="heading" aria-level=${this.headingLevel}>${this.heading}</div>` : nothing}
401
+ ${this.address ? html`<p class="row">${iconSvg("map-pin", "20px")}<span>${this.address}</span></p>` : nothing}
402
+ ${this.hours ? html`<p class="row">${iconSvg("clock", "20px")}<span>${this.hours}</span></p>` : nothing}
403
+ ${this.phone ? html`<p class="row">${iconSvg("phone", "20px")}<a href=${`tel:${this.phone.replace(/\s+/g, "")}`}>${this.phone}</a></p>` : nothing}
404
+ ${this.nearby.length ? html`<ul>${this.nearby.map((item) => html`<li><span>${item.place}</span><span>${item.distance}</span></li>`)}</ul>` : nothing}
405
+ ${directions ? html`<a class="go" href=${directions}>${this.directionsText}${iconSvg("arrow-right", "16px")}</a>` : nothing}
406
+ </div>
407
+ </div>`;
408
+ }
409
+ };
410
+ customElements.define("impkt-site-plan", ImpktSitePlan);
411
+ customElements.define("impkt-mortgage-calculator", ImpktMortgageCalculator);
412
+ customElements.define("impkt-before-after", ImpktBeforeAfter);
413
+ customElements.define("impkt-sticky-bar", ImpktStickyBar);
414
+ customElements.define("impkt-location-card", ImpktLocationCard);
415
+
416
+ export {
417
+ ImpktSitePlan,
418
+ monthlyPayment,
419
+ ImpktMortgageCalculator,
420
+ ImpktBeforeAfter,
421
+ ImpktStickyBar,
422
+ ImpktLocationCard
423
+ };
424
+ //# sourceMappingURL=chunk-ZBLTU67D.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/property.ts"],"sourcesContent":["import { css, html, nothing, type TemplateResult } from 'lit';\nimport { ImpktElement } from '../base/ImpktElement';\nimport { focusRing, targetSize } from '../base/styles';\nimport { fontWeight, space, spaceAround, t, type } from '../base/tokens';\nimport { iconSvg } from './icon';\n\nexport interface SitePlot {\n id?: string;\n /** What is printed on the pin, such as 14. */\n number: string;\n /** The house type, such as The Hawthorn. */\n name?: string;\n status: 'available' | 'reserved' | 'sold';\n price?: string;\n beds?: string;\n /** How far across the plan the pin sits, from 0 to 100. */\n x: number | string;\n /** How far down the plan the pin sits, from 0 to 100. */\n y: number | string;\n href?: string;\n}\n\n/**\n * A drawing of the development with a pin on every plot. Choose a pin to see\n * whether it is available, what it costs and where to go next.\n *\n * Every pin is a button named in full, such as \"Plot 14, The Hawthorn,\n * Available, £385,000\". Status is shown by the pin's shape as well as its\n * colour, so it does not rely on colour alone (1.4.1).\n *\n * @category content\n * @icon map\n * @fires impkt-select - When a plot is chosen. The plot is in detail.plot.\n */\nexport class ImpktSitePlan extends ImpktElement {\n static properties = {\n imageSrc: { type: String, attribute: 'image-src' },\n imageAlt: { type: String, attribute: 'image-alt' },\n plots: { type: Array },\n hint: { type: String },\n selectedPlot: { type: String, attribute: 'selected-plot' },\n panel: { type: String, reflect: true },\n plotWord: { type: String, attribute: 'plot-word' },\n actionText: { type: String, attribute: 'action-text' },\n availableText: { type: String, attribute: 'available-text' },\n reservedText: { type: String, attribute: 'reserved-text' },\n soldText: { type: String, attribute: 'sold-text' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare imageSrc: string;\n declare imageAlt: string;\n declare plots: SitePlot[];\n /** The number of the plot shown first. */\n declare selectedPlot: string;\n /** The details beside the plan, or floating over it. */\n declare panel: 'beside' | 'over';\n /** What is said before a plot is chosen. */\n declare hint: string;\n declare plotWord: string;\n declare actionText: string;\n declare availableText: string;\n declare reservedText: string;\n declare soldText: string;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n private chosen: SitePlot | undefined;\n\n constructor() {\n super();\n this.imageSrc = '';\n this.imageAlt = '';\n this.plots = [];\n this.hint = 'Choose a plot to see its price and availability.';\n this.selectedPlot = '';\n this.panel = 'beside';\n this.plotWord = 'Plot';\n this.actionText = 'View this home';\n this.availableText = 'Available';\n this.reservedText = 'Reserved';\n this.soldText = 'Sold';\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [...ImpktElement.styles, focusRing, spaceAround, css`\n :host { display: block; container-type: inline-size; }\n .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: ${space(6)}; align-items: start; }\n .plan { position: relative; overflow: hidden; border-radius: ${t.radius2xl}; background: ${t.surfaceSubtle}; box-shadow: ${t.shadowMd}; line-height: 0; }\n .plan img { inline-size: 100%; block-size: auto; }\n .pin { position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: 34px; block-size: 34px; margin: -17px 0 0 -17px; padding: 0; font: inherit; ${type('xs')} line-height: 1; font-weight: ${fontWeight('bold')}; color: ${t.onBrand}; background: ${t.brand}; border: 2px solid ${t.surfaceCard}; border-radius: 50%; box-shadow: ${t.shadowMd}; cursor: pointer; transition: transform 120ms ease-in-out; }\n .pin:hover { transform: scale(1.12); }\n .pin.reserved { color: ${t.text}; background: ${t.warningSubtle}; border-color: ${t.warning}; border-style: dashed; }\n .pin.sold { color: ${t.textMuted}; background: ${t.surfaceCard}; border-color: ${t.border}; border-radius: ${t.radius}; }\n .pin[aria-pressed='true'] { transform: scale(1.22); box-shadow: ${t.shadowLg}, 0 0 0 3px ${t.brand}; }\n .panel { display: flex; flex-direction: column; gap: ${space(3)}; padding: ${space(6)}; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowSm}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }\n .hint { margin: 0; color: ${t.textMuted}; }\n .name { margin: 0; font-family: ${t.fontHeading}; ${type('2xl')} font-weight: ${fontWeight('bold')}; color: ${t.textHeading}; }\n .sub { margin: 0; color: ${t.textMuted}; }\n .price { margin: 0; ${type('xl')} font-weight: ${fontWeight('semibold')}; }\n .status { align-self: flex-start; padding: ${space(0.5)} ${space(2.5)}; ${type('xs')} font-weight: ${fontWeight('semibold')}; color: ${t.successText}; background: ${t.successSubtle}; border-radius: 999px; }\n .status.reserved { color: ${t.warningText}; background: ${t.warningSubtle}; }\n .status.sold { color: ${t.textMuted}; background: ${t.surfaceSubtle}; }\n .go { ${targetSize} display: inline-flex; align-items: center; justify-content: center; gap: ${space(2)}; padding: ${space(2)} ${space(4)}; ${type('sm')} font-weight: ${fontWeight('semibold')}; color: ${t.onBrand}; text-decoration: none; background: ${t.brand}; border-radius: ${t.radiusLg}; }\n .go:hover { background: ${t.brandHover}; }\n .legend { display: flex; flex-wrap: wrap; gap: ${space(4)}; margin: ${space(3)} 0 0; padding: 0; list-style: none; ${type('sm')} color: ${t.textMuted}; }\n .legend li { display: inline-flex; align-items: center; gap: ${space(2)}; }\n .key { box-sizing: border-box; inline-size: 14px; block-size: 14px; background: ${t.brand}; border: 2px solid ${t.surfaceCard}; border-radius: 50%; outline: 1px solid color-mix(in srgb, currentColor 55%, transparent); }\n .key.reserved { background: ${t.warningSubtle}; border: 2px dashed ${t.warning}; }\n .key.sold { background: ${t.surfaceCard}; border: 2px solid ${t.border}; border-radius: 3px; }\n :host { --plan-card: var(--impkt-solid-card, ${t.surfaceCard}); --plan-text: var(--impkt-solid-text, ${t.text}); --plan-heading: var(--impkt-solid-heading, ${t.text}); --plan-muted: var(--impkt-solid-muted, ${t.textMuted}); }\n :host([panel='over']) .panel { background: var(--plan-card); color: var(--plan-text); --impkt-color-surface-card: var(--plan-card); --impkt-color-text-default: var(--plan-text); --impkt-color-text-heading: var(--plan-heading); --impkt-color-text-muted: var(--plan-muted); }\n @container (min-width: 44.01rem) { :host([panel='over']) .wrap { position: relative; grid-template-columns: minmax(0, 1fr); } :host([panel='over']) .panel { position: absolute; inset-block-start: 32%; inset-inline-end: ${space(8)}; inline-size: 22.5rem; box-sizing: border-box; box-shadow: ${t.shadowXl}; } }\n @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } }\n `];\n\n willUpdate(changed: Map<string, unknown>): void {\n if ((changed.has('selectedPlot') || changed.has('plots')) && this.selectedPlot && !this.chosen) this.chosen = this.plots.find((p) => String(p.number) === this.selectedPlot);\n }\n\n private word(status: string): string {\n return status === 'sold' ? this.soldText : status === 'reserved' ? this.reservedText : this.availableText;\n }\n\n private choose(plot: SitePlot): void {\n this.chosen = plot;\n this.requestUpdate();\n this.dispatchEvent(new CustomEvent('impkt-select', { detail: { plot }, bubbles: true, composed: true }));\n }\n\n private renderPanel(): TemplateResult {\n const plot = this.chosen;\n if (!plot) return html`<p class=\"hint\">${this.hint}</p>`;\n const status = plot.status ?? 'available';\n return html`<span class=\"status ${status}\">${this.word(status)}</span>\n <p class=\"name\">${this.plotWord} ${plot.number}</p>\n ${plot.name || plot.beds ? html`<p class=\"sub\">${[plot.name, plot.beds].filter(Boolean).join(' · ')}</p>` : nothing}\n ${plot.price ? html`<p class=\"price\">${plot.price}</p>` : nothing}\n ${plot.href && status !== 'sold' ? html`<a class=\"go\" href=${plot.href}>${this.actionText}${iconSvg('arrow-right', '16px')}</a>` : nothing}`;\n }\n\n render(): TemplateResult {\n return html`<div class=\"wrap\" part=\"wrap\">\n <div>\n <div class=\"plan\" part=\"plan\">\n <img src=${this.imageSrc} alt=${this.imageAlt} />\n ${this.plots.map((plot) => {\n const status = plot.status ?? 'available';\n const name = [`${this.plotWord} ${plot.number}`, plot.name, this.word(status), plot.price].filter(Boolean).join(', ');\n return html`<button class=\"pin ${status}\" type=\"button\" style=\"left:${Number(plot.x)}%;top:${Number(plot.y)}%\" aria-label=${name} aria-pressed=${String(this.chosen === plot)} @click=${() => this.choose(plot)}>${plot.number}</button>`;\n })}\n </div>\n <ul class=\"legend\">\n <li><span class=\"key\"></span>${this.availableText}</li>\n <li><span class=\"key reserved\"></span>${this.reservedText}</li>\n <li><span class=\"key sold\"></span>${this.soldText}</li>\n </ul>\n </div>\n <div class=\"panel\" part=\"panel\" aria-live=\"polite\">${this.renderPanel()}</div>\n </div>`;\n }\n}\n\n/** The monthly repayment on a loan. A rate of nothing is the loan split evenly. */\nexport function monthlyPayment(loan: number, annualRate: number, years: number): number {\n const months = years * 12;\n if (loan <= 0 || months <= 0) return 0;\n const rate = annualRate / 100 / 12;\n return rate === 0 ? loan / months : (loan * rate) / (1 - (1 + rate) ** -months);\n}\n\n/**\n * What a home would cost each month, worked out as the sliders move.\n *\n * The result is an estimate and the warning under it is on by default, because\n * UK rules expect it wherever repayments are shown. Change the words for other\n * markets, but check with whoever signs off your financial promotions first.\n *\n * @category form\n * @icon pound\n */\nexport class ImpktMortgageCalculator extends ImpktElement {\n static properties = {\n heading: { type: String },\n price: { type: Number },\n depositPercent: { type: Number, attribute: 'deposit-percent' },\n rate: { type: Number },\n years: { type: Number },\n currency: { type: String },\n smallPrint: { type: String, attribute: 'small-print' },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare heading: string;\n declare price: number;\n declare depositPercent: number;\n declare rate: number;\n declare years: number;\n /** The three-letter currency code, such as GBP. */\n declare currency: string;\n declare smallPrint: string;\n declare headingLevel: 2 | 3;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.heading = 'What would it cost each month?';\n this.price = 385000;\n this.depositPercent = 10;\n this.rate = 4.5;\n this.years = 30;\n this.currency = 'GBP';\n this.smallPrint = 'This is an estimate, not a mortgage offer. Your home may be repossessed if you do not keep up repayments on your mortgage.';\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [...ImpktElement.styles, focusRing, spaceAround, css`\n :host { display: block; container-type: inline-size; }\n .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); overflow: hidden; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowMd}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }\n .inputs { display: flex; flex-direction: column; gap: ${space(5)}; padding: ${space(8)}; }\n .h { margin: 0; font-family: ${t.fontHeading}; ${type('2xl')} font-weight: ${fontWeight('bold')}; color: ${t.textHeading}; }\n label { display: flex; justify-content: space-between; gap: ${space(3)}; ${type('sm')} font-weight: ${fontWeight('semibold')}; margin-block-end: ${space(1.5)}; }\n .read { font-weight: ${fontWeight('regular')}; color: ${t.textMuted}; }\n input[type='number'] { box-sizing: border-box; inline-size: 100%; min-block-size: 44px; padding: ${space(2)} ${space(3)}; font: inherit; color: ${t.text}; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; }\n input[type='range'] { inline-size: 100%; min-block-size: 24px; margin: 0; accent-color: ${t.brand}; }\n .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: ${space(4)}; }\n .result { display: flex; flex-direction: column; justify-content: center; gap: ${space(2)}; padding: ${space(8)}; color: ${t.onBrand}; background: ${t.brand}; }\n .caption { margin: 0; ${type('sm')} opacity: 0.85; }\n output { display: block; font-family: ${t.fontHeading}; ${type('4xl')} font-weight: ${fontWeight('bold')}; }\n dl { display: grid; gap: ${space(2)}; margin: ${space(4)} 0 0; padding-block-start: ${space(4)}; border-block-start: 1px solid color-mix(in srgb, ${t.onBrand} 25%, transparent); ${type('sm')} }\n dl div { display: flex; justify-content: space-between; gap: ${space(3)}; }\n dt { opacity: 0.85; }\n dd { margin: 0; font-weight: ${fontWeight('semibold')}; }\n .small { grid-column: 1 / -1; margin: 0; padding: ${space(4)} ${space(8)}; ${type('xs')} color: ${t.textMuted}; background: ${t.surfaceSubtle}; }\n @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .inputs, .result { padding: ${space(5)}; } .small { padding: ${space(4)} ${space(5)}; } }\n `];\n\n private money(amount: number): string {\n try {\n return new Intl.NumberFormat('en-GB', { style: 'currency', currency: this.currency, maximumFractionDigits: 0 }).format(amount);\n } catch {\n return String(Math.round(amount));\n }\n }\n\n private field(key: 'price' | 'depositPercent' | 'rate' | 'years'): (event: Event) => void {\n return (event) => { this[key] = Number((event.target as HTMLInputElement).value) || 0; };\n }\n\n render(): TemplateResult {\n const deposit = (this.price * this.depositPercent) / 100;\n const loan = Math.max(this.price - deposit, 0);\n const monthly = monthlyPayment(loan, this.rate, this.years);\n return html`<div class=\"wrap\" part=\"wrap\">\n <div class=\"inputs\">\n ${this.heading ? html`<div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${this.heading}</div>` : nothing}\n <div><label for=${this.id_('price')}>Home price</label><input id=${this.id_('price')} type=\"number\" min=\"0\" step=\"1000\" inputmode=\"numeric\" .value=${String(this.price)} @input=${this.field('price')} /></div>\n <div><label for=${this.id_('deposit')}>Deposit <span class=\"read\">${this.depositPercent}% · ${this.money(deposit)}</span></label><input id=${this.id_('deposit')} type=\"range\" min=\"5\" max=\"60\" step=\"1\" .value=${String(this.depositPercent)} @input=${this.field('depositPercent')} /></div>\n <div class=\"two\">\n <div><label for=${this.id_('years')}>Term <span class=\"read\">${this.years} years</span></label><input id=${this.id_('years')} type=\"range\" min=\"5\" max=\"40\" step=\"1\" .value=${String(this.years)} @input=${this.field('years')} /></div>\n <div><label for=${this.id_('rate')}>Interest rate (%)</label><input id=${this.id_('rate')} type=\"number\" min=\"0\" max=\"20\" step=\"0.05\" inputmode=\"decimal\" .value=${String(this.rate)} @input=${this.field('rate')} /></div>\n </div>\n </div>\n <div class=\"result\">\n <p class=\"caption\">Estimated monthly repayment</p>\n <output for=${`${this.id_('price')} ${this.id_('deposit')} ${this.id_('years')} ${this.id_('rate')}`}>${this.money(monthly)}</output>\n <dl>\n <div><dt>You would borrow</dt><dd>${this.money(loan)}</dd></div>\n <div><dt>Total repayable</dt><dd>${this.money(monthly * this.years * 12)}</dd></div>\n </dl>\n </div>\n ${this.smallPrint ? html`<p class=\"small\">${this.smallPrint}</p>` : nothing}\n </div>`;\n }\n}\n\n/**\n * Two pictures of one place with a handle to drag between them: a bare plot\n * and the finished street, a shell and the fitted kitchen.\n *\n * The handle is a native range control, so it works with a finger, a mouse and\n * the arrow keys, and a screen reader hears how far across it is. Both pictures\n * need descriptions, because they are the content.\n *\n * @category content\n * @icon image\n */\nexport class ImpktBeforeAfter extends ImpktElement {\n static properties = {\n beforeSrc: { type: String, attribute: 'before-src' },\n beforeAlt: { type: String, attribute: 'before-alt' },\n afterSrc: { type: String, attribute: 'after-src' },\n afterAlt: { type: String, attribute: 'after-alt' },\n beforeLabel: { type: String, attribute: 'before-label' },\n afterLabel: { type: String, attribute: 'after-label' },\n label: { type: String },\n position: { type: Number },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare beforeSrc: string;\n declare beforeAlt: string;\n declare afterSrc: string;\n declare afterAlt: string;\n declare beforeLabel: string;\n declare afterLabel: string;\n /** The name of the handle for a screen reader. */\n declare label: string;\n /** How far across the handle starts, from 0 to 100. */\n declare position: number;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.beforeSrc = '';\n this.beforeAlt = '';\n this.afterSrc = '';\n this.afterAlt = '';\n this.beforeLabel = 'Before';\n this.afterLabel = 'After';\n this.label = 'Compare the two pictures';\n this.position = 50;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [...ImpktElement.styles, focusRing, spaceAround, css`\n .frame { position: relative; overflow: hidden; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowLg}; line-height: 0; --at: 50%; }\n img { display: block; inline-size: 100%; block-size: auto; }\n .after { position: absolute; inset: 0; block-size: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--at)); }\n .tag { position: absolute; inset-block-start: ${space(3)}; padding: ${space(1)} ${space(3)}; ${type('xs')} line-height: 1.4; font-weight: ${fontWeight('semibold')}; color: ${t.text}; background: ${t.surfaceCard}; border-radius: 999px; box-shadow: ${t.shadowSm}; }\n .tag.b { inset-inline-start: ${space(3)}; }\n .tag.a { inset-inline-end: ${space(3)}; }\n .line { position: absolute; inset-block: 0; inset-inline-start: var(--at); inline-size: 2px; margin-inline-start: -1px; background: ${t.surfaceCard}; pointer-events: none; }\n .grip { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; display: flex; align-items: center; justify-content: center; inline-size: 44px; block-size: 44px; margin: -22px 0 0 -22px; color: ${t.text}; background: ${t.surfaceCard}; border-radius: 50%; box-shadow: ${t.shadowMd}; }\n input { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }\n .frame:has(input:focus-visible) .grip { box-shadow: ${t.focusShadow}; }\n `];\n\n render(): TemplateResult {\n return html`<div class=\"frame\" part=\"frame\" style=\"--at:${this.position}%\">\n <img src=${this.beforeSrc} alt=${this.beforeAlt} />\n <img class=\"after\" src=${this.afterSrc} alt=${this.afterAlt} />\n <span class=\"tag b\" aria-hidden=\"true\">${this.beforeLabel}</span>\n <span class=\"tag a\" aria-hidden=\"true\">${this.afterLabel}</span>\n <span class=\"line\"><span class=\"grip\">${iconSvg('arrow-left', '14px')}${iconSvg('arrow-right', '14px')}</span></span>\n <input type=\"range\" min=\"0\" max=\"100\" aria-label=${this.label} .value=${String(this.position)} @input=${(e: Event) => { this.position = Number((e.target as HTMLInputElement).value); }} />\n </div>`;\n }\n}\n\n/**\n * A bar fixed to the bottom of the screen that keeps the one thing to do in\n * reach, such as booking a viewing.\n *\n * It appears once the visitor has scrolled, keeps a space for itself at the end\n * of the page, and tells the browser to scroll focused controls clear of it so\n * it never covers what the keyboard is on (2.4.11).\n *\n * @category navigation\n * @icon bar\n * @slot actions - The button or link to keep in reach.\n */\nexport class ImpktStickyBar extends ImpktElement {\n static properties = {\n label: { type: String },\n heading: { type: String },\n lead: { type: String },\n showOn: { type: String, reflect: true, attribute: 'show-on' },\n revealAfter: { type: Number, attribute: 'reveal-after' },\n };\n /** The name of this region for a screen reader. */\n declare label: string;\n declare heading: string;\n declare lead: string;\n declare showOn: 'phones' | 'all';\n /** How many pixels the visitor scrolls before it appears. */\n declare revealAfter: number;\n\n private shown = false;\n\n constructor() {\n super();\n this.label = 'Quick actions';\n this.heading = '';\n this.lead = '';\n this.showOn = 'phones';\n this.revealAfter = 400;\n }\n\n static styles = [...ImpktElement.styles, focusRing, css`\n :host { display: block; }\n .bar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: ${space(4)}; padding: ${space(3)} ${space(4)} calc(${space(3)} + env(safe-area-inset-bottom)); background: ${t.surfaceCard}; box-shadow: ${t.shadowXl}, 0 -1px 0 color-mix(in srgb, ${t.text} 8%, transparent); transform: translateY(110%); visibility: hidden; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), visibility 220ms; }\n .bar.on { transform: none; visibility: visible; }\n .spacer { block-size: 5rem; }\n .h { font-family: ${t.fontHeading}; ${type('md')} font-weight: ${fontWeight('bold')}; color: ${t.textHeading}; }\n .t { ${type('xs')} color: ${t.textMuted}; }\n .words { min-inline-size: 0; }\n .actions { display: flex; flex: none; gap: ${space(2)}; }\n @media (min-width: 48rem) { :host([show-on='phones']) { display: none; } }\n `];\n\n private check = (): void => {\n const shown = window.scrollY >= this.revealAfter;\n if (shown === this.shown) return;\n this.shown = shown;\n this.requestUpdate();\n this.clearance(shown);\n };\n\n /** Leaves room for the bar when the browser scrolls something into view. */\n private clearance(on: boolean): void {\n const visible = on && getComputedStyle(this).display !== 'none';\n const height = visible ? `${this.renderRoot.querySelector('.bar')?.getBoundingClientRect().height ?? 80}px` : '';\n const root = document.documentElement.style;\n root.scrollPaddingBlockEnd = height;\n // The toast reads this to sit above the bar rather than on its button.\n if (height) root.setProperty('--impkt-bottom-bar', height);\n else root.removeProperty('--impkt-bottom-bar');\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n window.addEventListener('scroll', this.check, { passive: true });\n this.check();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n window.removeEventListener('scroll', this.check);\n this.clearance(false);\n }\n\n render(): TemplateResult {\n return html`<div class=\"spacer\"></div>\n <section class=\"bar ${this.shown ? 'on' : ''}\" part=\"bar\" aria-label=${this.label}>\n <div class=\"words\">\n ${this.heading ? html`<div class=\"h\">${this.heading}</div>` : nothing}\n ${this.lead ? html`<div class=\"t\">${this.lead}</div>` : nothing}\n </div>\n <div class=\"actions\"><slot name=\"actions\"></slot></div>\n </section>`;\n }\n}\n\nexport interface NearbyItem {\n id?: string;\n place: string;\n /** How far, in words: 8 minutes by train. */\n distance: string;\n}\n\n/**\n * Where a place is and how to get there: a map picture, the address, opening\n * hours, travel times and a link for directions.\n *\n * The map is a picture you supply, not an embedded map. An embed loads a third\n * party's cookies before the visitor has agreed to anything.\n *\n * @category content\n * @icon map-pin\n * @role heading\n */\nexport class ImpktLocationCard extends ImpktElement {\n static properties = {\n heading: { type: String },\n address: { type: String },\n hours: { type: String },\n phone: { type: String },\n mapSrc: { type: String, attribute: 'map-src' },\n mapAlt: { type: String, attribute: 'map-alt' },\n directionsText: { type: String, attribute: 'directions-text' },\n directionsHref: { type: String, attribute: 'directions-href' },\n nearby: { type: Array },\n headingLevel: { type: Number, attribute: 'heading-level' },\n spaceAbove: { type: String, reflect: true, attribute: 'space-above' },\n spaceBelow: { type: String, reflect: true, attribute: 'space-below' },\n };\n declare heading: string;\n declare address: string;\n declare hours: string;\n declare phone: string;\n declare mapSrc: string;\n declare mapAlt: string;\n declare directionsText: string;\n /** Leave empty and the link searches a map for the address. */\n declare directionsHref: string;\n declare nearby: NearbyItem[];\n declare headingLevel: 2 | 3;\n declare spaceAbove: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n declare spaceBelow: 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n constructor() {\n super();\n this.heading = '';\n this.address = '';\n this.hours = '';\n this.phone = '';\n this.mapSrc = '';\n this.mapAlt = '';\n this.directionsText = 'Get directions';\n this.directionsHref = '';\n this.nearby = [];\n this.headingLevel = 2;\n this.spaceAbove = 'none';\n this.spaceBelow = 'none';\n }\n\n static styles = [...ImpktElement.styles, focusRing, spaceAround, css`\n :host { display: block; container-type: inline-size; }\n .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; background: ${t.surfaceCard}; border-radius: ${t.radius2xl}; box-shadow: ${t.shadowMd}, 0 0 0 1px color-mix(in srgb, ${t.text} 6%, transparent); }\n .wrap.solo { grid-template-columns: minmax(0, 1fr); }\n .map { min-block-size: 16rem; background: ${t.surfaceSubtle}; }\n .map img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }\n .info { display: flex; flex-direction: column; gap: ${space(3)}; padding: ${space(8)}; }\n .h { margin: 0; font-family: ${t.fontHeading}; ${type('2xl')} font-weight: ${fontWeight('bold')}; color: ${t.textHeading}; }\n .row { display: flex; gap: ${space(3)}; margin: 0; white-space: pre-line; }\n .row svg { flex: none; margin-block-start: ${space(0.5)}; color: ${t.brand}; }\n a { color: ${t.link}; }\n ul { display: grid; gap: ${space(1.5)}; margin: ${space(1)} 0; padding: ${space(3)} 0 0; list-style: none; border-block-start: 1px solid color-mix(in srgb, ${t.text} 10%, transparent); ${type('sm')} }\n li { display: flex; justify-content: space-between; gap: ${space(3)}; }\n li span:last-child { color: ${t.textMuted}; text-align: end; }\n .go { ${targetSize} align-self: flex-start; display: inline-flex; align-items: center; gap: ${space(2)}; padding: ${space(2)} ${space(4)}; ${type('sm')} font-weight: ${fontWeight('semibold')}; color: ${t.onBrand}; text-decoration: none; background: ${t.brand}; border-radius: ${t.radiusLg}; }\n .go:hover { background: ${t.brandHover}; }\n @container (max-width: 44rem) { .wrap { grid-template-columns: minmax(0, 1fr); } .info { padding: ${space(5)}; } }\n `];\n\n render(): TemplateResult {\n const directions = this.directionsHref || (this.address ? `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(this.address)}` : '');\n return html`<div class=\"wrap ${this.mapSrc ? '' : 'solo'}\" part=\"wrap\">\n ${this.mapSrc ? html`<div class=\"map\"><img src=${this.mapSrc} alt=${this.mapAlt} /></div>` : nothing}\n <div class=\"info\">\n ${this.heading ? html`<div class=\"h\" role=\"heading\" aria-level=${this.headingLevel}>${this.heading}</div>` : nothing}\n ${this.address ? html`<p class=\"row\">${iconSvg('map-pin', '20px')}<span>${this.address}</span></p>` : nothing}\n ${this.hours ? html`<p class=\"row\">${iconSvg('clock', '20px')}<span>${this.hours}</span></p>` : nothing}\n ${this.phone ? html`<p class=\"row\">${iconSvg('phone', '20px')}<a href=${`tel:${this.phone.replace(/\\s+/g, '')}`}>${this.phone}</a></p>` : nothing}\n ${this.nearby.length ? html`<ul>${this.nearby.map((item) => html`<li><span>${item.place}</span><span>${item.distance}</span></li>`)}</ul>` : nothing}\n ${directions ? html`<a class=\"go\" href=${directions}>${this.directionsText}${iconSvg('arrow-right', '16px')}</a>` : nothing}\n </div>\n </div>`;\n }\n}\n\ncustomElements.define('impkt-site-plan', ImpktSitePlan);\ncustomElements.define('impkt-mortgage-calculator', ImpktMortgageCalculator);\ncustomElements.define('impkt-before-after', ImpktBeforeAfter);\ncustomElements.define('impkt-sticky-bar', ImpktStickyBar);\ncustomElements.define('impkt-location-card', ImpktLocationCard);\ndeclare global {\n interface HTMLElementTagNameMap {\n 'impkt-site-plan': ImpktSitePlan; 'impkt-mortgage-calculator': ImpktMortgageCalculator; 'impkt-before-after': ImpktBeforeAfter;\n 'impkt-sticky-bar': ImpktStickyBar; 'impkt-location-card': ImpktLocationCard;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAA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eAAe,MAAM,CAAC,SAAS,OAAO;AAAA;AAAA;AAAA,EAGjI;AACF;AAEA,eAAe,OAAO,mBAAmB,aAAa;AACtD,eAAe,OAAO,6BAA6B,uBAAuB;AAC1E,eAAe,OAAO,sBAAsB,gBAAgB;AAC5D,eAAe,OAAO,oBAAoB,cAAc;AACxD,eAAe,OAAO,uBAAuB,iBAAiB;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iconSvg
3
- } from "./chunk-CFGLOYWW.js";
3
+ } from "./chunk-2YQA3VBY.js";
4
4
  import {
5
5
  ImpktElement,
6
6
  focusRing,
@@ -8,7 +8,7 @@ import {
8
8
  space,
9
9
  t,
10
10
  visuallyHidden
11
- } from "./chunk-5NUF7ZQA.js";
11
+ } from "./chunk-NTNXHLTM.js";
12
12
 
13
13
  // packages/ui/src/components/link.ts
14
14
  import { html, css, nothing } from "lit";
@@ -75,4 +75,4 @@ customElements.define("impkt-link", ImpktLink);
75
75
  export {
76
76
  ImpktLink
77
77
  };
78
- //# sourceMappingURL=chunk-JPEWRJSQ.js.map
78
+ //# sourceMappingURL=chunk-ZGAOMRYD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iconSvg
3
- } from "./chunk-CFGLOYWW.js";
3
+ } from "./chunk-2YQA3VBY.js";
4
4
  import {
5
5
  ImpktElement,
6
6
  focusRing,
@@ -12,7 +12,7 @@ import {
12
12
  t,
13
13
  targetSize,
14
14
  visuallyHidden
15
- } from "./chunk-5NUF7ZQA.js";
15
+ } from "./chunk-NTNXHLTM.js";
16
16
 
17
17
  // packages/ui/src/components/blocks.ts
18
18
  import { css, html, nothing } from "lit";
@@ -152,8 +152,8 @@ var ImpktCardGrid = class extends ImpktElement {
152
152
  ul { list-style: none; margin: 0; padding: 0; display: grid; gap: ${space(6)}; grid-template-columns: repeat(3, minmax(0, 1fr)); }
153
153
  :host([columns='two']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
154
154
  :host([columns='four']) ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
155
- li { position: relative; display: flex; flex-direction: column; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.border}; border-radius: ${t.radiusLg}; overflow: hidden; transition: box-shadow 120ms ease-in-out; }
156
- li.linked:hover { box-shadow: 0 6px 20px rgb(0 0 0 / 10%); }
155
+ li { position: relative; display: flex; flex-direction: column; background: ${t.surfaceCard}; border: ${t.borderThin} solid ${t.hairline}; border-radius: ${t.radiusXl}; box-shadow: ${t.shadowSm}; overflow: hidden; transition: box-shadow 150ms ease-in-out, transform 150ms ease-in-out; }
156
+ li.linked:hover { box-shadow: ${t.shadowLg}; transform: translateY(-2px); }
157
157
  img { display: block; inline-size: 100%; aspect-ratio: var(--ratio); object-fit: cover; }
158
158
  .words { display: flex; flex-direction: column; gap: ${space(2)}; padding: ${space(5)}; flex: 1; }
159
159
  .h { margin: 0; color: ${t.textHeading}; font-family: ${t.fontHeading}; font-size: ${fontSize("lg")}; font-weight: ${fontWeight("bold")}; line-height: ${lineHeight("tight")}; }
@@ -161,7 +161,7 @@ var ImpktCardGrid = class extends ImpktElement {
161
161
  .h a::after { content: ''; position: absolute; inset: 0; }
162
162
  li.linked:hover .h a { text-decoration: underline; text-underline-offset: 0.2em; }
163
163
  .body { margin: 0; line-height: ${lineHeight("normal")}; }
164
- .badge { align-self: flex-start; padding: ${space(1)} ${space(2)}; border-radius: 999px; font-size: ${fontSize("sm")}; font-weight: ${fontWeight("semibold")}; background: ${t.brandSubtle}; color: ${t.brand}; }
164
+ .badge { align-self: flex-start; padding: ${space(0.5)} ${space(2)}; border-radius: ${t.radius}; font-size: ${fontSize("xs")}; font-weight: ${fontWeight("medium")}; background: ${t.brandSubtle}; color: ${t.brand}; box-shadow: inset 0 0 0 1px ${t.hairline}; }
165
165
  .more { margin-block-start: auto; display: inline-flex; align-items: center; gap: ${space(1)}; color: ${t.link}; font-weight: ${fontWeight("semibold")}; }
166
166
  @container (max-width: 48rem) { ul, :host([columns='four']) ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
167
167
  @container (max-width: 32rem) { ul, :host([columns='two']) ul, :host([columns='four']) ul { grid-template-columns: minmax(0, 1fr); } }
@@ -192,4 +192,4 @@ export {
192
192
  ImpktTabs,
193
193
  ImpktCardGrid
194
194
  };
195
- //# sourceMappingURL=chunk-LLRJU7XE.js.map
195
+ //# sourceMappingURL=chunk-ZQJD4YEJ.js.map