@atomic-ui/ui-react 0.3.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/dist/blocks-components.d.ts +107 -0
- package/dist/blocks-jsx.d.ts +79 -0
- package/dist/blocks.d.ts +19 -0
- package/dist/blocks.js +293 -0
- package/dist/blocks.js.map +1 -0
- package/dist/components.d.ts +106 -210
- package/dist/index.d.ts +13 -9
- package/dist/index.js +180 -463
- package/dist/index.js.map +1 -1
- package/dist/jsx.d.ts +80 -147
- package/package.json +16 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @atomic-ui/ui-react
|
|
2
2
|
|
|
3
|
-
React components for every `@atomic-ui/ui` custom element, with typed props and typed events, and JSX types for the tags themselves. It works with React 18 and React 19.
|
|
3
|
+
React components for every `@atomic-ui/ui` custom element, and for every `@atomic-ui/blocks` block in its `blocks` entry, with typed props and typed events, and JSX types for the tags themselves. It works with React 18 and React 19.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
6
|
pnpm add @atomic-ui/ui @atomic-ui/ui-react
|
|
@@ -31,9 +31,27 @@ export function Cases({ rows, page, pages }: Props) {
|
|
|
31
31
|
|
|
32
32
|
Importing this package defines the elements, so nothing else needs importing first.
|
|
33
33
|
|
|
34
|
+
## The blocks
|
|
35
|
+
|
|
36
|
+
The section blocks Impakt sites are built from are in `@atomic-ui/blocks`, and their components are in this package's `blocks` entry. An app that uses them installs that package too:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
pnpm add @atomic-ui/ui @atomic-ui/blocks @atomic-ui/ui-react
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { Hero, CardGrid, SiteHeader, MortgageCalculator } from '@atomic-ui/ui-react/blocks';
|
|
44
|
+
|
|
45
|
+
<SiteHeader brand="Larkfield" links={links} actionText="Book a visit" onAction={book} />
|
|
46
|
+
<Hero heading="Homes made for the way you live" />
|
|
47
|
+
<CardGrid items={developments} columns="three" />
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
They are generated from `@atomic-ui/blocks`'s manifest by the same script and named the same way, and importing the entry types the blocks' tags for JSX, as `ImpaktBlocksIntrinsicElements`. The main entry holds the product components only, so an app that uses no blocks never loads them. `@atomic-ui/blocks` is an optional peer dependency.
|
|
51
|
+
|
|
34
52
|
## Names
|
|
35
53
|
|
|
36
|
-
Every element has a component named after its tag without `
|
|
54
|
+
Every element has a component named after its tag without `impakt-`: `impakt-table` is `Table`, `impakt-text-input` is `TextInput` and `impakt-error-summary` is `ErrorSummary`. Its props are the element's own properties, typed from the element. Each event is a prop named `on` and the rest of the event's name: `impakt-change` is `onChange`, `impakt-sort` is `onSort` and `impakt-close` is `onClose`, and the handler receives the event with its typed `detail`. `Button` keeps `onClick`.
|
|
37
55
|
|
|
38
56
|
The components are generated from the component manifest when the package builds, by `scripts/generate.mjs`, so they always match the elements. The twelve components 0.2.0 had keep their names, props and events.
|
|
39
57
|
|
|
@@ -42,7 +60,7 @@ The components are generated from the component manifest when the package builds
|
|
|
42
60
|
React 19 sets properties on custom elements and listens for their events, so an app can also write the tags. Importing this package, or `@atomic-ui/ui-react/jsx` on its own, types every tag: its properties, its attributes by their HTML names, and each event as `on` and the event's own name.
|
|
43
61
|
|
|
44
62
|
```tsx
|
|
45
|
-
<
|
|
63
|
+
<impakt-table caption="Open cases" columns={columns} rows={rows} sort-key="opened" onimpakt-sort={(e) => sortBy(e.detail)} />
|
|
46
64
|
```
|
|
47
65
|
|
|
48
66
|
A child given `slot` puts richer content in a component, such as a badge in a table cell (`slot="cell:c1:status"`) or a panel in a tab (`slot="files"`).
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { type EventName } from '@lit/react';
|
|
2
|
+
import { ImpaktAffordabilityCalculator, ImpaktAnnouncement, ImpaktBeforeAfter, ImpaktBranchList, ImpaktBranchTimeline, ImpaktCardGrid, ImpaktCarousel, ImpaktCheckList, ImpaktContactBlock, ImpaktCtaBanner, ImpaktEstimator, ImpaktFeatureList, ImpaktGallery, ImpaktHero, ImpaktLocationCard, ImpaktLogoCloud, ImpaktMediaSplit, ImpaktMortgageCalculator, ImpaktNewsletter, ImpaktPlanComparison, ImpaktQuote, ImpaktRegulatoryNotice, ImpaktReleaseCard, ImpaktReleaseList, ImpaktReviews, ImpaktScene, ImpaktScrubber, ImpaktSearchBar, ImpaktSiteFooter, ImpaktSiteHeader, ImpaktSitePlan, ImpaktStampDutyCalculator, ImpaktStat, ImpaktSteps, ImpaktStickyBar, ImpaktVideo, ImpaktWordmark } from '@atomic-ui/blocks';
|
|
3
|
+
import type { EstimateResult, PlanItem, SitePlot } from '@atomic-ui/blocks';
|
|
4
|
+
/** `<impakt-affordability-calculator>` */
|
|
5
|
+
export declare const AffordabilityCalculator: import("@lit/react").ReactWebComponent<ImpaktAffordabilityCalculator, {}>;
|
|
6
|
+
/** `<impakt-announcement>` */
|
|
7
|
+
export declare const Announcement: import("@lit/react").ReactWebComponent<ImpaktAnnouncement, {}>;
|
|
8
|
+
/** `<impakt-before-after>` */
|
|
9
|
+
export declare const BeforeAfter: import("@lit/react").ReactWebComponent<ImpaktBeforeAfter, {}>;
|
|
10
|
+
/** `<impakt-branch-list>` */
|
|
11
|
+
export declare const BranchList: import("@lit/react").ReactWebComponent<ImpaktBranchList, {}>;
|
|
12
|
+
/** `<impakt-branch-timeline>` */
|
|
13
|
+
export declare const BranchTimeline: import("@lit/react").ReactWebComponent<ImpaktBranchTimeline, {}>;
|
|
14
|
+
/** `<impakt-card-grid>` */
|
|
15
|
+
export declare const CardGrid: import("@lit/react").ReactWebComponent<ImpaktCardGrid, {}>;
|
|
16
|
+
/** `<impakt-carousel>` */
|
|
17
|
+
export declare const Carousel: import("@lit/react").ReactWebComponent<ImpaktCarousel, {}>;
|
|
18
|
+
/** `<impakt-check-list>` */
|
|
19
|
+
export declare const CheckList: import("@lit/react").ReactWebComponent<ImpaktCheckList, {}>;
|
|
20
|
+
/** `<impakt-contact-block>` */
|
|
21
|
+
export declare const ContactBlock: import("@lit/react").ReactWebComponent<ImpaktContactBlock, {
|
|
22
|
+
onSubmit: EventName<CustomEvent<{
|
|
23
|
+
name: string;
|
|
24
|
+
phone: string;
|
|
25
|
+
when: string;
|
|
26
|
+
}>>;
|
|
27
|
+
}>;
|
|
28
|
+
/** `<impakt-cta-banner>` */
|
|
29
|
+
export declare const CtaBanner: import("@lit/react").ReactWebComponent<ImpaktCtaBanner, {}>;
|
|
30
|
+
/** `<impakt-estimator>` */
|
|
31
|
+
export declare const Estimator: import("@lit/react").ReactWebComponent<ImpaktEstimator, {
|
|
32
|
+
onEstimate: EventName<CustomEvent<EstimateResult>>;
|
|
33
|
+
}>;
|
|
34
|
+
/** `<impakt-feature-list>` */
|
|
35
|
+
export declare const FeatureList: import("@lit/react").ReactWebComponent<ImpaktFeatureList, {}>;
|
|
36
|
+
/** `<impakt-gallery>` */
|
|
37
|
+
export declare const Gallery: import("@lit/react").ReactWebComponent<ImpaktGallery, {}>;
|
|
38
|
+
/** `<impakt-hero>` */
|
|
39
|
+
export declare const Hero: import("@lit/react").ReactWebComponent<ImpaktHero, {}>;
|
|
40
|
+
/** `<impakt-location-card>` */
|
|
41
|
+
export declare const LocationCard: import("@lit/react").ReactWebComponent<ImpaktLocationCard, {}>;
|
|
42
|
+
/** `<impakt-logo-cloud>` */
|
|
43
|
+
export declare const LogoCloud: import("@lit/react").ReactWebComponent<ImpaktLogoCloud, {}>;
|
|
44
|
+
/** `<impakt-media-split>` */
|
|
45
|
+
export declare const MediaSplit: import("@lit/react").ReactWebComponent<ImpaktMediaSplit, {}>;
|
|
46
|
+
/** `<impakt-mortgage-calculator>` */
|
|
47
|
+
export declare const MortgageCalculator: import("@lit/react").ReactWebComponent<ImpaktMortgageCalculator, {}>;
|
|
48
|
+
/** `<impakt-newsletter>` */
|
|
49
|
+
export declare const Newsletter: import("@lit/react").ReactWebComponent<ImpaktNewsletter, {
|
|
50
|
+
onSubmit: EventName<CustomEvent<{
|
|
51
|
+
email: string;
|
|
52
|
+
}>>;
|
|
53
|
+
}>;
|
|
54
|
+
/** `<impakt-plan-comparison>` */
|
|
55
|
+
export declare const PlanComparison: import("@lit/react").ReactWebComponent<ImpaktPlanComparison, {
|
|
56
|
+
onSelect: EventName<CustomEvent<{
|
|
57
|
+
plan: PlanItem;
|
|
58
|
+
}>>;
|
|
59
|
+
}>;
|
|
60
|
+
/** `<impakt-quote>` */
|
|
61
|
+
export declare const Quote: import("@lit/react").ReactWebComponent<ImpaktQuote, {}>;
|
|
62
|
+
/** `<impakt-regulatory-notice>` */
|
|
63
|
+
export declare const RegulatoryNotice: import("@lit/react").ReactWebComponent<ImpaktRegulatoryNotice, {}>;
|
|
64
|
+
/** `<impakt-release-card>` */
|
|
65
|
+
export declare const ReleaseCard: import("@lit/react").ReactWebComponent<ImpaktReleaseCard, {}>;
|
|
66
|
+
/** `<impakt-release-list>` */
|
|
67
|
+
export declare const ReleaseList: import("@lit/react").ReactWebComponent<ImpaktReleaseList, {}>;
|
|
68
|
+
/** `<impakt-reviews>` */
|
|
69
|
+
export declare const Reviews: import("@lit/react").ReactWebComponent<ImpaktReviews, {}>;
|
|
70
|
+
/** `<impakt-scene>` */
|
|
71
|
+
export declare const Scene: import("@lit/react").ReactWebComponent<ImpaktScene, {
|
|
72
|
+
onSceneProgress: EventName<CustomEvent<{
|
|
73
|
+
progress: number;
|
|
74
|
+
}>>;
|
|
75
|
+
}>;
|
|
76
|
+
/** `<impakt-scrubber>` */
|
|
77
|
+
export declare const Scrubber: import("@lit/react").ReactWebComponent<ImpaktScrubber, {}>;
|
|
78
|
+
/** `<impakt-search-bar>` */
|
|
79
|
+
export declare const SearchBar: import("@lit/react").ReactWebComponent<ImpaktSearchBar, {
|
|
80
|
+
onSubmit: EventName<CustomEvent<{
|
|
81
|
+
values: Record<string, string>;
|
|
82
|
+
}>>;
|
|
83
|
+
}>;
|
|
84
|
+
/** `<impakt-site-footer>` */
|
|
85
|
+
export declare const SiteFooter: import("@lit/react").ReactWebComponent<ImpaktSiteFooter, {}>;
|
|
86
|
+
/** `<impakt-site-header>` */
|
|
87
|
+
export declare const SiteHeader: import("@lit/react").ReactWebComponent<ImpaktSiteHeader, {
|
|
88
|
+
onAction: EventName<CustomEvent<null>>;
|
|
89
|
+
}>;
|
|
90
|
+
/** `<impakt-site-plan>` */
|
|
91
|
+
export declare const SitePlan: import("@lit/react").ReactWebComponent<ImpaktSitePlan, {
|
|
92
|
+
onSelect: EventName<CustomEvent<{
|
|
93
|
+
plot: SitePlot;
|
|
94
|
+
}>>;
|
|
95
|
+
}>;
|
|
96
|
+
/** `<impakt-stamp-duty-calculator>` */
|
|
97
|
+
export declare const StampDutyCalculator: import("@lit/react").ReactWebComponent<ImpaktStampDutyCalculator, {}>;
|
|
98
|
+
/** `<impakt-stat>` */
|
|
99
|
+
export declare const Stat: import("@lit/react").ReactWebComponent<ImpaktStat, {}>;
|
|
100
|
+
/** `<impakt-steps>` */
|
|
101
|
+
export declare const Steps: import("@lit/react").ReactWebComponent<ImpaktSteps, {}>;
|
|
102
|
+
/** `<impakt-sticky-bar>` */
|
|
103
|
+
export declare const StickyBar: import("@lit/react").ReactWebComponent<ImpaktStickyBar, {}>;
|
|
104
|
+
/** `<impakt-video>` */
|
|
105
|
+
export declare const Video: import("@lit/react").ReactWebComponent<ImpaktVideo, {}>;
|
|
106
|
+
/** `<impakt-wordmark>` */
|
|
107
|
+
export declare const Wordmark: import("@lit/react").ReactWebComponent<ImpaktWordmark, {}>;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { ImpaktAffordabilityCalculator, ImpaktAnnouncement, ImpaktBeforeAfter, ImpaktBranchList, ImpaktBranchTimeline, ImpaktCardGrid, ImpaktCarousel, ImpaktCheckList, ImpaktContactBlock, ImpaktCtaBanner, ImpaktEstimator, ImpaktFeatureList, ImpaktGallery, ImpaktHero, ImpaktLocationCard, ImpaktLogoCloud, ImpaktMediaSplit, ImpaktMortgageCalculator, ImpaktNewsletter, ImpaktPlanComparison, ImpaktQuote, ImpaktRegulatoryNotice, ImpaktReleaseCard, ImpaktReleaseList, ImpaktReviews, ImpaktScene, ImpaktScrubber, ImpaktSearchBar, ImpaktSiteFooter, ImpaktSiteHeader, ImpaktSitePlan, ImpaktStampDutyCalculator, ImpaktStat, ImpaktSteps, ImpaktStickyBar, ImpaktVideo, ImpaktWordmark } from '@atomic-ui/blocks';
|
|
2
|
+
import type { EstimateResult, PlanItem, SitePlot } from '@atomic-ui/blocks';
|
|
3
|
+
import type { ImpaktElementProps } from './jsx';
|
|
4
|
+
/** Every element, by tag. */
|
|
5
|
+
export interface ImpaktBlocksIntrinsicElements {
|
|
6
|
+
'impakt-affordability-calculator': ImpaktElementProps<ImpaktAffordabilityCalculator, 'heading' | 'income' | 'secondIncome' | 'deposit' | 'timesIncome' | 'smallPrint' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'second-income' | 'times-income' | 'small-print' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
7
|
+
'impakt-announcement': ImpaktElementProps<ImpaktAnnouncement, 'message' | 'linkText' | 'href', 'link-text', {}>;
|
|
8
|
+
'impakt-before-after': ImpaktElementProps<ImpaktBeforeAfter, 'beforeSrc' | 'beforeAlt' | 'afterSrc' | 'afterAlt' | 'beforeLabel' | 'afterLabel' | 'label' | 'position' | 'spaceAbove' | 'spaceBelow', 'before-src' | 'before-alt' | 'after-src' | 'after-alt' | 'before-label' | 'after-label' | 'space-above' | 'space-below', {}>;
|
|
9
|
+
'impakt-branch-list': ImpaktElementProps<ImpaktBranchList, 'items' | 'trunk' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
10
|
+
'impakt-branch-timeline': ImpaktElementProps<ImpaktBranchTimeline, 'lanes' | 'marks' | 'span' | 'unit' | 'every' | 'release' | 'releaseAt' | 'label' | 'spaceAbove' | 'spaceBelow', 'release-at' | 'space-above' | 'space-below', {}>;
|
|
11
|
+
'impakt-card-grid': ImpaktElementProps<ImpaktCardGrid, 'items' | 'columns' | 'headingLevel' | 'ratio' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
12
|
+
'impakt-carousel': ImpaktElementProps<ImpaktCarousel, 'label' | 'perView' | 'arrows' | 'autoplay' | 'seconds' | 'spaceAbove' | 'spaceBelow', 'per-view' | 'space-above' | 'space-below', {}>;
|
|
13
|
+
'impakt-check-list': ImpaktElementProps<ImpaktCheckList, 'items' | 'summary' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
14
|
+
'impakt-contact-block': ImpaktElementProps<ImpaktContactBlock, 'heading' | 'phone' | 'hours' | 'email' | 'callbackHeading' | 'buttonText' | 'doneText' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'callback-heading' | 'button-text' | 'done-text' | 'heading-level' | 'space-above' | 'space-below', {
|
|
15
|
+
'onimpakt-submit': CustomEvent<{
|
|
16
|
+
name: string;
|
|
17
|
+
phone: string;
|
|
18
|
+
when: string;
|
|
19
|
+
}>;
|
|
20
|
+
}>;
|
|
21
|
+
'impakt-cta-banner': ImpaktElementProps<ImpaktCtaBanner, 'heading' | 'lead' | 'tone' | 'align' | 'imageSrc' | 'imageAlt' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'image-alt' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
22
|
+
'impakt-estimator': ImpaktElementProps<ImpaktEstimator, 'questions' | 'teams' | 'ways' | 'phases' | 'low' | 'high' | 'minWeeks' | 'currency' | 'unit' | 'intro' | 'budgetLabel' | 'resultHeading' | 'teamText' | 'teamTextOne' | 'note' | 'contactHref' | 'sendLabel' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'min-weeks' | 'budget-label' | 'result-heading' | 'team-text' | 'team-text-one' | 'contact-href' | 'send-label' | 'heading-level' | 'space-above' | 'space-below', {
|
|
23
|
+
'onimpakt-estimate': CustomEvent<EstimateResult>;
|
|
24
|
+
}>;
|
|
25
|
+
'impakt-feature-list': ImpaktElementProps<ImpaktFeatureList, 'items' | 'columns' | 'headingLevel' | 'layout' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
26
|
+
'impakt-gallery': ImpaktElementProps<ImpaktGallery, 'items' | 'layout' | 'label' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
27
|
+
'impakt-hero': ImpaktElementProps<ImpaktHero, 'eyebrow' | 'heading' | 'lead' | 'level' | 'imageSrc' | 'imageAlt' | 'treatment' | 'ratingText' | 'eyebrowIcon' | 'align' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'image-alt' | 'rating-text' | 'eyebrow-icon' | 'space-above' | 'space-below', {}>;
|
|
28
|
+
'impakt-location-card': ImpaktElementProps<ImpaktLocationCard, 'heading' | 'address' | 'hours' | 'phone' | 'mapSrc' | 'mapAlt' | 'directionsText' | 'directionsHref' | 'nearby' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'map-src' | 'map-alt' | 'directions-text' | 'directions-href' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
29
|
+
'impakt-logo-cloud': ImpaktElementProps<ImpaktLogoCloud, 'heading' | 'items' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
30
|
+
'impakt-media-split': ImpaktElementProps<ImpaktMediaSplit, 'eyebrow' | 'heading' | 'lead' | 'points' | 'level' | 'imageSrc' | 'imageAlt' | 'insetSrc' | 'insetAlt' | 'imageSide' | 'ratio' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'image-alt' | 'inset-src' | 'inset-alt' | 'image-side' | 'space-above' | 'space-below', {}>;
|
|
31
|
+
'impakt-mortgage-calculator': ImpaktElementProps<ImpaktMortgageCalculator, 'heading' | 'price' | 'depositPercent' | 'rate' | 'years' | 'currency' | 'smallPrint' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'deposit-percent' | 'small-print' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
32
|
+
'impakt-newsletter': ImpaktElementProps<ImpaktNewsletter, 'heading' | 'lead' | 'label' | 'buttonText' | 'smallPrint' | 'doneText' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'button-text' | 'small-print' | 'done-text' | 'heading-level' | 'space-above' | 'space-below', {
|
|
33
|
+
'onimpakt-submit': CustomEvent<{
|
|
34
|
+
email: string;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
'impakt-plan-comparison': ImpaktElementProps<ImpaktPlanComparison, 'heading' | 'plans' | 'rows' | 'buttonText' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'button-text' | 'heading-level' | 'space-above' | 'space-below', {
|
|
38
|
+
'onimpakt-select': CustomEvent<{
|
|
39
|
+
plan: PlanItem;
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
42
|
+
'impakt-quote': ImpaktElementProps<ImpaktQuote, 'quote' | 'person' | 'about' | 'imageSrc' | 'size' | 'align' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'space-above' | 'space-below', {}>;
|
|
43
|
+
'impakt-regulatory-notice': ImpaktElementProps<ImpaktRegulatoryNotice, 'kind' | 'heading' | 'text' | 'firm' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
44
|
+
'impakt-release-card': ImpaktElementProps<ImpaktReleaseCard, 'label' | 'heading' | 'text' | 'beforeSrc' | 'beforeAlt' | 'afterSrc' | 'afterAlt' | 'items' | 'href' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'before-src' | 'before-alt' | 'after-src' | 'after-alt' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
45
|
+
'impakt-release-list': ImpaktElementProps<ImpaktReleaseList, 'items' | 'columns' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
46
|
+
'impakt-reviews': ImpaktElementProps<ImpaktReviews, 'summary' | 'rating' | 'items' | 'columns' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
47
|
+
'impakt-scene': ImpaktElementProps<ImpaktScene, 'drive' | 'layout' | 'length' | 'duration' | 'label' | 'progress' | 'controls' | 'bleed' | 'hideOn', 'hide-on', {
|
|
48
|
+
'onimpakt-scene-progress': CustomEvent<{
|
|
49
|
+
progress: number;
|
|
50
|
+
}>;
|
|
51
|
+
}>;
|
|
52
|
+
'impakt-scrubber': ImpaktElementProps<ImpaktScrubber, 'label' | 'stops' | 'look' | 'hint' | 'value', never, {}>;
|
|
53
|
+
'impakt-search-bar': ImpaktElementProps<ImpaktSearchBar, 'items' | 'buttonText' | 'action' | 'label' | 'spaceAbove' | 'spaceBelow', 'button-text' | 'space-above' | 'space-below', {
|
|
54
|
+
'onimpakt-submit': CustomEvent<{
|
|
55
|
+
values: Record<string, string>;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
'impakt-site-footer': ImpaktElementProps<ImpaktSiteFooter, 'brand' | 'log' | 'columns' | 'columnsOnPhone' | 'legal' | 'stripe' | 'headingLevel', 'columns-on-phone' | 'heading-level', {}>;
|
|
59
|
+
'impakt-site-header': ImpaktElementProps<ImpaktSiteHeader, 'brand' | 'logoSrc' | 'logoAlt' | 'home' | 'badge' | 'meta' | 'links' | 'label' | 'menuText' | 'status' | 'statusMeta' | 'statusTone' | 'actionText' | 'actionHref', 'logo-src' | 'logo-alt' | 'menu-text' | 'status-meta' | 'status-tone' | 'action-text' | 'action-href', {
|
|
60
|
+
'onimpakt-action': CustomEvent<null>;
|
|
61
|
+
}>;
|
|
62
|
+
'impakt-site-plan': ImpaktElementProps<ImpaktSitePlan, 'imageSrc' | 'imageAlt' | 'plots' | 'selectedPlot' | 'panel' | 'hint' | 'plotWord' | 'actionText' | 'availableText' | 'reservedText' | 'soldText' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'image-alt' | 'selected-plot' | 'plot-word' | 'action-text' | 'available-text' | 'reserved-text' | 'sold-text' | 'space-above' | 'space-below', {
|
|
63
|
+
'onimpakt-select': CustomEvent<{
|
|
64
|
+
plot: SitePlot;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
67
|
+
'impakt-stamp-duty-calculator': ImpaktElementProps<ImpaktStampDutyCalculator, 'heading' | 'price' | 'buyer' | 'smallPrint' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'small-print' | 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
68
|
+
'impakt-stat': ImpaktElementProps<ImpaktStat, 'size' | 'figure' | 'label' | 'note' | 'align', never, {}>;
|
|
69
|
+
'impakt-steps': ImpaktElementProps<ImpaktSteps, 'items' | 'orientation' | 'look' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
70
|
+
'impakt-sticky-bar': ImpaktElementProps<ImpaktStickyBar, 'label' | 'heading' | 'lead' | 'showOn' | 'revealAfter', 'show-on' | 'reveal-after', {}>;
|
|
71
|
+
'impakt-video': ImpaktElementProps<ImpaktVideo, 'videoSrc' | 'label' | 'posterSrc' | 'captionsSrc' | 'transcriptHref' | 'playText' | 'ratio' | 'spaceAbove' | 'spaceBelow', 'video-src' | 'poster-src' | 'captions-src' | 'transcript-href' | 'play-text' | 'space-above' | 'space-below', {}>;
|
|
72
|
+
'impakt-wordmark': ImpaktElementProps<ImpaktWordmark, 'text' | 'src' | 'alt' | 'href' | 'size' | 'hideOn', 'hide-on', {}>;
|
|
73
|
+
}
|
|
74
|
+
declare module 'react' {
|
|
75
|
+
namespace JSX {
|
|
76
|
+
interface IntrinsicElements extends ImpaktBlocksIntrinsicElements {
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
package/dist/blocks.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React bindings for `@atomic-ui/blocks`, the section blocks Impakt sites are built from.
|
|
3
|
+
*
|
|
4
|
+
* import { Hero, CardGrid, SiteHeader } from '@atomic-ui/ui-react/blocks';
|
|
5
|
+
*
|
|
6
|
+
* They are made exactly as the product components in `@atomic-ui/ui-react` are,
|
|
7
|
+
* by `scripts/generate.mjs`, from `@atomic-ui/blocks`'s Custom Elements Manifest:
|
|
8
|
+
* each block's wrapper is its tag without `impakt-` (`impakt-site-header` is
|
|
9
|
+
* `SiteHeader`), and each `impakt-` event is an `on` prop (`impakt-action` is
|
|
10
|
+
* `onAction`). Importing this entry also types the blocks' tags for JSX.
|
|
11
|
+
*
|
|
12
|
+
* They are a separate entry so an app that uses no blocks never loads them, and
|
|
13
|
+
* never needs `@atomic-ui/blocks` installed. An app that uses them installs it
|
|
14
|
+
* beside `@atomic-ui/ui`.
|
|
15
|
+
*/
|
|
16
|
+
import './blocks-jsx';
|
|
17
|
+
export * from './blocks-components';
|
|
18
|
+
export type { ImpaktBlocksIntrinsicElements } from './blocks-jsx';
|
|
19
|
+
export type { FeatureItem, SearchField, CardItem, GalleryItem, LogoItem, StepItem, ReviewItem, SitePlot, NearbyItem, PlanItem, PlanRow, EstimatorQuestion, EstimatorChoice, EstimatorBand, EstimatorPhase, EstimateResult, FooterLogLine, FooterColumn, SceneDrive, SceneLayout, ScrubberStop, DiffLine, ReleaseItem, Branch, CheckItem, TimelineLane, TimelineMark, } from '@atomic-ui/blocks';
|
package/dist/blocks.js
ADDED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// packages/ui-react/src/blocks-components.ts
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { createComponent } from "@lit/react";
|
|
6
|
+
import {
|
|
7
|
+
ImpaktAffordabilityCalculator,
|
|
8
|
+
ImpaktAnnouncement,
|
|
9
|
+
ImpaktBeforeAfter,
|
|
10
|
+
ImpaktBranchList,
|
|
11
|
+
ImpaktBranchTimeline,
|
|
12
|
+
ImpaktCardGrid,
|
|
13
|
+
ImpaktCarousel,
|
|
14
|
+
ImpaktCheckList,
|
|
15
|
+
ImpaktContactBlock,
|
|
16
|
+
ImpaktCtaBanner,
|
|
17
|
+
ImpaktEstimator,
|
|
18
|
+
ImpaktFeatureList,
|
|
19
|
+
ImpaktGallery,
|
|
20
|
+
ImpaktHero,
|
|
21
|
+
ImpaktLocationCard,
|
|
22
|
+
ImpaktLogoCloud,
|
|
23
|
+
ImpaktMediaSplit,
|
|
24
|
+
ImpaktMortgageCalculator,
|
|
25
|
+
ImpaktNewsletter,
|
|
26
|
+
ImpaktPlanComparison,
|
|
27
|
+
ImpaktQuote,
|
|
28
|
+
ImpaktRegulatoryNotice,
|
|
29
|
+
ImpaktReleaseCard,
|
|
30
|
+
ImpaktReleaseList,
|
|
31
|
+
ImpaktReviews,
|
|
32
|
+
ImpaktScene,
|
|
33
|
+
ImpaktScrubber,
|
|
34
|
+
ImpaktSearchBar,
|
|
35
|
+
ImpaktSiteFooter,
|
|
36
|
+
ImpaktSiteHeader,
|
|
37
|
+
ImpaktSitePlan,
|
|
38
|
+
ImpaktStampDutyCalculator,
|
|
39
|
+
ImpaktStat,
|
|
40
|
+
ImpaktSteps,
|
|
41
|
+
ImpaktStickyBar,
|
|
42
|
+
ImpaktVideo,
|
|
43
|
+
ImpaktWordmark
|
|
44
|
+
} from "@atomic-ui/blocks";
|
|
45
|
+
var AffordabilityCalculator = createComponent({
|
|
46
|
+
react: React,
|
|
47
|
+
tagName: "impakt-affordability-calculator",
|
|
48
|
+
elementClass: ImpaktAffordabilityCalculator
|
|
49
|
+
});
|
|
50
|
+
var Announcement = createComponent({
|
|
51
|
+
react: React,
|
|
52
|
+
tagName: "impakt-announcement",
|
|
53
|
+
elementClass: ImpaktAnnouncement
|
|
54
|
+
});
|
|
55
|
+
var BeforeAfter = createComponent({
|
|
56
|
+
react: React,
|
|
57
|
+
tagName: "impakt-before-after",
|
|
58
|
+
elementClass: ImpaktBeforeAfter
|
|
59
|
+
});
|
|
60
|
+
var BranchList = createComponent({
|
|
61
|
+
react: React,
|
|
62
|
+
tagName: "impakt-branch-list",
|
|
63
|
+
elementClass: ImpaktBranchList
|
|
64
|
+
});
|
|
65
|
+
var BranchTimeline = createComponent({
|
|
66
|
+
react: React,
|
|
67
|
+
tagName: "impakt-branch-timeline",
|
|
68
|
+
elementClass: ImpaktBranchTimeline
|
|
69
|
+
});
|
|
70
|
+
var CardGrid = createComponent({
|
|
71
|
+
react: React,
|
|
72
|
+
tagName: "impakt-card-grid",
|
|
73
|
+
elementClass: ImpaktCardGrid
|
|
74
|
+
});
|
|
75
|
+
var Carousel = createComponent({
|
|
76
|
+
react: React,
|
|
77
|
+
tagName: "impakt-carousel",
|
|
78
|
+
elementClass: ImpaktCarousel
|
|
79
|
+
});
|
|
80
|
+
var CheckList = createComponent({
|
|
81
|
+
react: React,
|
|
82
|
+
tagName: "impakt-check-list",
|
|
83
|
+
elementClass: ImpaktCheckList
|
|
84
|
+
});
|
|
85
|
+
var ContactBlock = createComponent({
|
|
86
|
+
react: React,
|
|
87
|
+
tagName: "impakt-contact-block",
|
|
88
|
+
elementClass: ImpaktContactBlock,
|
|
89
|
+
events: {
|
|
90
|
+
onSubmit: "impakt-submit"
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
var CtaBanner = createComponent({
|
|
94
|
+
react: React,
|
|
95
|
+
tagName: "impakt-cta-banner",
|
|
96
|
+
elementClass: ImpaktCtaBanner
|
|
97
|
+
});
|
|
98
|
+
var Estimator = createComponent({
|
|
99
|
+
react: React,
|
|
100
|
+
tagName: "impakt-estimator",
|
|
101
|
+
elementClass: ImpaktEstimator,
|
|
102
|
+
events: {
|
|
103
|
+
onEstimate: "impakt-estimate"
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var FeatureList = createComponent({
|
|
107
|
+
react: React,
|
|
108
|
+
tagName: "impakt-feature-list",
|
|
109
|
+
elementClass: ImpaktFeatureList
|
|
110
|
+
});
|
|
111
|
+
var Gallery = createComponent({
|
|
112
|
+
react: React,
|
|
113
|
+
tagName: "impakt-gallery",
|
|
114
|
+
elementClass: ImpaktGallery
|
|
115
|
+
});
|
|
116
|
+
var Hero = createComponent({
|
|
117
|
+
react: React,
|
|
118
|
+
tagName: "impakt-hero",
|
|
119
|
+
elementClass: ImpaktHero
|
|
120
|
+
});
|
|
121
|
+
var LocationCard = createComponent({
|
|
122
|
+
react: React,
|
|
123
|
+
tagName: "impakt-location-card",
|
|
124
|
+
elementClass: ImpaktLocationCard
|
|
125
|
+
});
|
|
126
|
+
var LogoCloud = createComponent({
|
|
127
|
+
react: React,
|
|
128
|
+
tagName: "impakt-logo-cloud",
|
|
129
|
+
elementClass: ImpaktLogoCloud
|
|
130
|
+
});
|
|
131
|
+
var MediaSplit = createComponent({
|
|
132
|
+
react: React,
|
|
133
|
+
tagName: "impakt-media-split",
|
|
134
|
+
elementClass: ImpaktMediaSplit
|
|
135
|
+
});
|
|
136
|
+
var MortgageCalculator = createComponent({
|
|
137
|
+
react: React,
|
|
138
|
+
tagName: "impakt-mortgage-calculator",
|
|
139
|
+
elementClass: ImpaktMortgageCalculator
|
|
140
|
+
});
|
|
141
|
+
var Newsletter = createComponent({
|
|
142
|
+
react: React,
|
|
143
|
+
tagName: "impakt-newsletter",
|
|
144
|
+
elementClass: ImpaktNewsletter,
|
|
145
|
+
events: {
|
|
146
|
+
onSubmit: "impakt-submit"
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
var PlanComparison = createComponent({
|
|
150
|
+
react: React,
|
|
151
|
+
tagName: "impakt-plan-comparison",
|
|
152
|
+
elementClass: ImpaktPlanComparison,
|
|
153
|
+
events: {
|
|
154
|
+
onSelect: "impakt-select"
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
var Quote = createComponent({
|
|
158
|
+
react: React,
|
|
159
|
+
tagName: "impakt-quote",
|
|
160
|
+
elementClass: ImpaktQuote
|
|
161
|
+
});
|
|
162
|
+
var RegulatoryNotice = createComponent({
|
|
163
|
+
react: React,
|
|
164
|
+
tagName: "impakt-regulatory-notice",
|
|
165
|
+
elementClass: ImpaktRegulatoryNotice
|
|
166
|
+
});
|
|
167
|
+
var ReleaseCard = createComponent({
|
|
168
|
+
react: React,
|
|
169
|
+
tagName: "impakt-release-card",
|
|
170
|
+
elementClass: ImpaktReleaseCard
|
|
171
|
+
});
|
|
172
|
+
var ReleaseList = createComponent({
|
|
173
|
+
react: React,
|
|
174
|
+
tagName: "impakt-release-list",
|
|
175
|
+
elementClass: ImpaktReleaseList
|
|
176
|
+
});
|
|
177
|
+
var Reviews = createComponent({
|
|
178
|
+
react: React,
|
|
179
|
+
tagName: "impakt-reviews",
|
|
180
|
+
elementClass: ImpaktReviews
|
|
181
|
+
});
|
|
182
|
+
var Scene = createComponent({
|
|
183
|
+
react: React,
|
|
184
|
+
tagName: "impakt-scene",
|
|
185
|
+
elementClass: ImpaktScene,
|
|
186
|
+
events: {
|
|
187
|
+
onSceneProgress: "impakt-scene-progress"
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
var Scrubber = createComponent({
|
|
191
|
+
react: React,
|
|
192
|
+
tagName: "impakt-scrubber",
|
|
193
|
+
elementClass: ImpaktScrubber
|
|
194
|
+
});
|
|
195
|
+
var SearchBar = createComponent({
|
|
196
|
+
react: React,
|
|
197
|
+
tagName: "impakt-search-bar",
|
|
198
|
+
elementClass: ImpaktSearchBar,
|
|
199
|
+
events: {
|
|
200
|
+
onSubmit: "impakt-submit"
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
var SiteFooter = createComponent({
|
|
204
|
+
react: React,
|
|
205
|
+
tagName: "impakt-site-footer",
|
|
206
|
+
elementClass: ImpaktSiteFooter
|
|
207
|
+
});
|
|
208
|
+
var SiteHeader = createComponent({
|
|
209
|
+
react: React,
|
|
210
|
+
tagName: "impakt-site-header",
|
|
211
|
+
elementClass: ImpaktSiteHeader,
|
|
212
|
+
events: {
|
|
213
|
+
onAction: "impakt-action"
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
var SitePlan = createComponent({
|
|
217
|
+
react: React,
|
|
218
|
+
tagName: "impakt-site-plan",
|
|
219
|
+
elementClass: ImpaktSitePlan,
|
|
220
|
+
events: {
|
|
221
|
+
onSelect: "impakt-select"
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
var StampDutyCalculator = createComponent({
|
|
225
|
+
react: React,
|
|
226
|
+
tagName: "impakt-stamp-duty-calculator",
|
|
227
|
+
elementClass: ImpaktStampDutyCalculator
|
|
228
|
+
});
|
|
229
|
+
var Stat = createComponent({
|
|
230
|
+
react: React,
|
|
231
|
+
tagName: "impakt-stat",
|
|
232
|
+
elementClass: ImpaktStat
|
|
233
|
+
});
|
|
234
|
+
var Steps = createComponent({
|
|
235
|
+
react: React,
|
|
236
|
+
tagName: "impakt-steps",
|
|
237
|
+
elementClass: ImpaktSteps
|
|
238
|
+
});
|
|
239
|
+
var StickyBar = createComponent({
|
|
240
|
+
react: React,
|
|
241
|
+
tagName: "impakt-sticky-bar",
|
|
242
|
+
elementClass: ImpaktStickyBar
|
|
243
|
+
});
|
|
244
|
+
var Video = createComponent({
|
|
245
|
+
react: React,
|
|
246
|
+
tagName: "impakt-video",
|
|
247
|
+
elementClass: ImpaktVideo
|
|
248
|
+
});
|
|
249
|
+
var Wordmark = createComponent({
|
|
250
|
+
react: React,
|
|
251
|
+
tagName: "impakt-wordmark",
|
|
252
|
+
elementClass: ImpaktWordmark
|
|
253
|
+
});
|
|
254
|
+
export {
|
|
255
|
+
AffordabilityCalculator,
|
|
256
|
+
Announcement,
|
|
257
|
+
BeforeAfter,
|
|
258
|
+
BranchList,
|
|
259
|
+
BranchTimeline,
|
|
260
|
+
CardGrid,
|
|
261
|
+
Carousel,
|
|
262
|
+
CheckList,
|
|
263
|
+
ContactBlock,
|
|
264
|
+
CtaBanner,
|
|
265
|
+
Estimator,
|
|
266
|
+
FeatureList,
|
|
267
|
+
Gallery,
|
|
268
|
+
Hero,
|
|
269
|
+
LocationCard,
|
|
270
|
+
LogoCloud,
|
|
271
|
+
MediaSplit,
|
|
272
|
+
MortgageCalculator,
|
|
273
|
+
Newsletter,
|
|
274
|
+
PlanComparison,
|
|
275
|
+
Quote,
|
|
276
|
+
RegulatoryNotice,
|
|
277
|
+
ReleaseCard,
|
|
278
|
+
ReleaseList,
|
|
279
|
+
Reviews,
|
|
280
|
+
Scene,
|
|
281
|
+
Scrubber,
|
|
282
|
+
SearchBar,
|
|
283
|
+
SiteFooter,
|
|
284
|
+
SiteHeader,
|
|
285
|
+
SitePlan,
|
|
286
|
+
StampDutyCalculator,
|
|
287
|
+
Stat,
|
|
288
|
+
Steps,
|
|
289
|
+
StickyBar,
|
|
290
|
+
Video,
|
|
291
|
+
Wordmark
|
|
292
|
+
};
|
|
293
|
+
//# sourceMappingURL=blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/blocks-components.ts"],"sourcesContent":["// Generated by scripts/generate.mjs from @atomic-ui/blocks's custom-elements.json. Do not edit: build the package again.\n\nimport * as React from 'react';\nimport { createComponent, type EventName } from '@lit/react';\nimport {\n ImpaktAffordabilityCalculator,\n ImpaktAnnouncement,\n ImpaktBeforeAfter,\n ImpaktBranchList,\n ImpaktBranchTimeline,\n ImpaktCardGrid,\n ImpaktCarousel,\n ImpaktCheckList,\n ImpaktContactBlock,\n ImpaktCtaBanner,\n ImpaktEstimator,\n ImpaktFeatureList,\n ImpaktGallery,\n ImpaktHero,\n ImpaktLocationCard,\n ImpaktLogoCloud,\n ImpaktMediaSplit,\n ImpaktMortgageCalculator,\n ImpaktNewsletter,\n ImpaktPlanComparison,\n ImpaktQuote,\n ImpaktRegulatoryNotice,\n ImpaktReleaseCard,\n ImpaktReleaseList,\n ImpaktReviews,\n ImpaktScene,\n ImpaktScrubber,\n ImpaktSearchBar,\n ImpaktSiteFooter,\n ImpaktSiteHeader,\n ImpaktSitePlan,\n ImpaktStampDutyCalculator,\n ImpaktStat,\n ImpaktSteps,\n ImpaktStickyBar,\n ImpaktVideo,\n ImpaktWordmark,\n} from '@atomic-ui/blocks';\nimport type { EstimateResult, PlanItem, SitePlot } from '@atomic-ui/blocks';\n\n/** `<impakt-affordability-calculator>` */\nexport const AffordabilityCalculator = createComponent({\n react: React,\n tagName: 'impakt-affordability-calculator',\n elementClass: ImpaktAffordabilityCalculator,\n});\n\n/** `<impakt-announcement>` */\nexport const Announcement = createComponent({\n react: React,\n tagName: 'impakt-announcement',\n elementClass: ImpaktAnnouncement,\n});\n\n/** `<impakt-before-after>` */\nexport const BeforeAfter = createComponent({\n react: React,\n tagName: 'impakt-before-after',\n elementClass: ImpaktBeforeAfter,\n});\n\n/** `<impakt-branch-list>` */\nexport const BranchList = createComponent({\n react: React,\n tagName: 'impakt-branch-list',\n elementClass: ImpaktBranchList,\n});\n\n/** `<impakt-branch-timeline>` */\nexport const BranchTimeline = createComponent({\n react: React,\n tagName: 'impakt-branch-timeline',\n elementClass: ImpaktBranchTimeline,\n});\n\n/** `<impakt-card-grid>` */\nexport const CardGrid = createComponent({\n react: React,\n tagName: 'impakt-card-grid',\n elementClass: ImpaktCardGrid,\n});\n\n/** `<impakt-carousel>` */\nexport const Carousel = createComponent({\n react: React,\n tagName: 'impakt-carousel',\n elementClass: ImpaktCarousel,\n});\n\n/** `<impakt-check-list>` */\nexport const CheckList = createComponent({\n react: React,\n tagName: 'impakt-check-list',\n elementClass: ImpaktCheckList,\n});\n\n/** `<impakt-contact-block>` */\nexport const ContactBlock = createComponent({\n react: React,\n tagName: 'impakt-contact-block',\n elementClass: ImpaktContactBlock,\n events: {\n onSubmit: 'impakt-submit' as EventName<CustomEvent<{ name: string; phone: string; when: string }>>,\n },\n});\n\n/** `<impakt-cta-banner>` */\nexport const CtaBanner = createComponent({\n react: React,\n tagName: 'impakt-cta-banner',\n elementClass: ImpaktCtaBanner,\n});\n\n/** `<impakt-estimator>` */\nexport const Estimator = createComponent({\n react: React,\n tagName: 'impakt-estimator',\n elementClass: ImpaktEstimator,\n events: {\n onEstimate: 'impakt-estimate' as EventName<CustomEvent<EstimateResult>>,\n },\n});\n\n/** `<impakt-feature-list>` */\nexport const FeatureList = createComponent({\n react: React,\n tagName: 'impakt-feature-list',\n elementClass: ImpaktFeatureList,\n});\n\n/** `<impakt-gallery>` */\nexport const Gallery = createComponent({\n react: React,\n tagName: 'impakt-gallery',\n elementClass: ImpaktGallery,\n});\n\n/** `<impakt-hero>` */\nexport const Hero = createComponent({\n react: React,\n tagName: 'impakt-hero',\n elementClass: ImpaktHero,\n});\n\n/** `<impakt-location-card>` */\nexport const LocationCard = createComponent({\n react: React,\n tagName: 'impakt-location-card',\n elementClass: ImpaktLocationCard,\n});\n\n/** `<impakt-logo-cloud>` */\nexport const LogoCloud = createComponent({\n react: React,\n tagName: 'impakt-logo-cloud',\n elementClass: ImpaktLogoCloud,\n});\n\n/** `<impakt-media-split>` */\nexport const MediaSplit = createComponent({\n react: React,\n tagName: 'impakt-media-split',\n elementClass: ImpaktMediaSplit,\n});\n\n/** `<impakt-mortgage-calculator>` */\nexport const MortgageCalculator = createComponent({\n react: React,\n tagName: 'impakt-mortgage-calculator',\n elementClass: ImpaktMortgageCalculator,\n});\n\n/** `<impakt-newsletter>` */\nexport const Newsletter = createComponent({\n react: React,\n tagName: 'impakt-newsletter',\n elementClass: ImpaktNewsletter,\n events: {\n onSubmit: 'impakt-submit' as EventName<CustomEvent<{ email: string }>>,\n },\n});\n\n/** `<impakt-plan-comparison>` */\nexport const PlanComparison = createComponent({\n react: React,\n tagName: 'impakt-plan-comparison',\n elementClass: ImpaktPlanComparison,\n events: {\n onSelect: 'impakt-select' as EventName<CustomEvent<{ plan: PlanItem }>>,\n },\n});\n\n/** `<impakt-quote>` */\nexport const Quote = createComponent({\n react: React,\n tagName: 'impakt-quote',\n elementClass: ImpaktQuote,\n});\n\n/** `<impakt-regulatory-notice>` */\nexport const RegulatoryNotice = createComponent({\n react: React,\n tagName: 'impakt-regulatory-notice',\n elementClass: ImpaktRegulatoryNotice,\n});\n\n/** `<impakt-release-card>` */\nexport const ReleaseCard = createComponent({\n react: React,\n tagName: 'impakt-release-card',\n elementClass: ImpaktReleaseCard,\n});\n\n/** `<impakt-release-list>` */\nexport const ReleaseList = createComponent({\n react: React,\n tagName: 'impakt-release-list',\n elementClass: ImpaktReleaseList,\n});\n\n/** `<impakt-reviews>` */\nexport const Reviews = createComponent({\n react: React,\n tagName: 'impakt-reviews',\n elementClass: ImpaktReviews,\n});\n\n/** `<impakt-scene>` */\nexport const Scene = createComponent({\n react: React,\n tagName: 'impakt-scene',\n elementClass: ImpaktScene,\n events: {\n onSceneProgress: 'impakt-scene-progress' as EventName<CustomEvent<{ progress: number }>>,\n },\n});\n\n/** `<impakt-scrubber>` */\nexport const Scrubber = createComponent({\n react: React,\n tagName: 'impakt-scrubber',\n elementClass: ImpaktScrubber,\n});\n\n/** `<impakt-search-bar>` */\nexport const SearchBar = createComponent({\n react: React,\n tagName: 'impakt-search-bar',\n elementClass: ImpaktSearchBar,\n events: {\n onSubmit: 'impakt-submit' as EventName<CustomEvent<{ values: Record<string, string> }>>,\n },\n});\n\n/** `<impakt-site-footer>` */\nexport const SiteFooter = createComponent({\n react: React,\n tagName: 'impakt-site-footer',\n elementClass: ImpaktSiteFooter,\n});\n\n/** `<impakt-site-header>` */\nexport const SiteHeader = createComponent({\n react: React,\n tagName: 'impakt-site-header',\n elementClass: ImpaktSiteHeader,\n events: {\n onAction: 'impakt-action' as EventName<CustomEvent<null>>,\n },\n});\n\n/** `<impakt-site-plan>` */\nexport const SitePlan = createComponent({\n react: React,\n tagName: 'impakt-site-plan',\n elementClass: ImpaktSitePlan,\n events: {\n onSelect: 'impakt-select' as EventName<CustomEvent<{ plot: SitePlot }>>,\n },\n});\n\n/** `<impakt-stamp-duty-calculator>` */\nexport const StampDutyCalculator = createComponent({\n react: React,\n tagName: 'impakt-stamp-duty-calculator',\n elementClass: ImpaktStampDutyCalculator,\n});\n\n/** `<impakt-stat>` */\nexport const Stat = createComponent({\n react: React,\n tagName: 'impakt-stat',\n elementClass: ImpaktStat,\n});\n\n/** `<impakt-steps>` */\nexport const Steps = createComponent({\n react: React,\n tagName: 'impakt-steps',\n elementClass: ImpaktSteps,\n});\n\n/** `<impakt-sticky-bar>` */\nexport const StickyBar = createComponent({\n react: React,\n tagName: 'impakt-sticky-bar',\n elementClass: ImpaktStickyBar,\n});\n\n/** `<impakt-video>` */\nexport const Video = createComponent({\n react: React,\n tagName: 'impakt-video',\n elementClass: ImpaktVideo,\n});\n\n/** `<impakt-wordmark>` */\nexport const Wordmark = createComponent({\n react: React,\n tagName: 'impakt-wordmark',\n elementClass: ImpaktWordmark,\n});\n"],"mappings":";;;AAEA,YAAY,WAAW;AACvB,SAAS,uBAAuC;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAIA,IAAM,0BAA0B,gBAAgB;AAAA,EACrD,OAAO;AAAA,EACP,SAAS;AAAA,EACT,cAAc;AAChB,CAAC;AAGM,IAAM,eAAe,gBAAgB;AAAA,EAC1C,OAAO;AAAA,EACP,SAAS;AAAA,EACT,cAAc;AAChB,CAAC;AAGM,IAAM,cAAc,gBAAgB;AAAA,EACzC,OAAO;AAAA,EACP,SAAS;AAAA,EACT,cAAc;AAChB,CAAC;AAGM,IAAM,aAAa,gBAAgB;AAAA,EACxC,OAAO;AAAA,EACP,SAAS;AAAA,EACT,c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