@atomic-ui/ui-react 0.2.0 → 0.5.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/dist/jsx.d.ts ADDED
@@ -0,0 +1,161 @@
1
+ import type * as React from 'react';
2
+ import type { ImpaktAccordion, ImpaktAddressLookup, ImpaktAlert, ImpaktAvatar, ImpaktAvatarGroup, ImpaktBadge, ImpaktBreadcrumbs, ImpaktButton, ImpaktCard, ImpaktCheckbox, ImpaktCheckboxGroup, ImpaktChip, ImpaktDateInput, ImpaktDialog, ImpaktDivider, ImpaktDocumentLink, ImpaktDrawer, ImpaktEmptyState, ImpaktErrorSummary, ImpaktFieldset, ImpaktFileUpload, ImpaktGrid, ImpaktHeading, ImpaktHelp, ImpaktIcon, ImpaktImage, ImpaktLink, ImpaktList, ImpaktLogo, ImpaktMenu, ImpaktMoneyInput, ImpaktNav, ImpaktPage, ImpaktPagination, ImpaktPrice, ImpaktProgress, ImpaktRadioGroup, ImpaktRangeInput, ImpaktSection, ImpaktSelect, ImpaktSlotPicker, ImpaktSpacer, ImpaktStack, ImpaktSummaryList, ImpaktTable, ImpaktTabs, ImpaktTaskList, ImpaktText, ImpaktTextInput, ImpaktTextarea, ImpaktToast, ImpaktVisuallyHidden } from '@atomic-ui/ui';
3
+ import type { SortDirection } from '@atomic-ui/ui';
4
+ /**
5
+ * The props of a custom element written as a tag in JSX: the standard HTML props,
6
+ * the element's own properties, which React 19 sets as properties, its attributes
7
+ * by their HTML names, and its events as `on` plus the event's own name.
8
+ */
9
+ export type ImpaktElementProps<E, Props extends keyof E, Attributes extends string, Events> = Omit<React.HTMLAttributes<E>, Props | Attributes | keyof Events> & React.RefAttributes<E> & {
10
+ key?: React.Key | null;
11
+ class?: string;
12
+ slot?: string;
13
+ } & {
14
+ [P in Props]?: E[P];
15
+ } & {
16
+ [A in Attributes]?: string | number | boolean;
17
+ } & {
18
+ [N in keyof Events]?: (event: Events[N]) => void;
19
+ };
20
+ /** Every element, by tag. */
21
+ export interface ImpaktIntrinsicElements {
22
+ 'impakt-accordion': ImpaktElementProps<ImpaktAccordion, 'items' | 'headingLevel' | 'open' | 'multiple', 'heading-level', {}>;
23
+ 'impakt-address-lookup': ImpaktElementProps<ImpaktAddressLookup, 'postcodeLabel' | 'findText' | 'chooseLabel' | 'manualText' | 'notFoundText' | 'lookupUrl' | 'addresses' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'postcode-label' | 'find-text' | 'choose-label' | 'manual-text' | 'not-found-text' | 'lookup-url' | 'required-text', {
24
+ 'onimpakt-lookup': CustomEvent<{
25
+ postcode: string;
26
+ }>;
27
+ 'onimpakt-change': CustomEvent<{
28
+ value: string;
29
+ }>;
30
+ }>;
31
+ 'impakt-alert': ImpaktElementProps<ImpaktAlert, 'tone' | 'heading' | 'toneLabel', 'tone-label', {}>;
32
+ 'impakt-avatar': ImpaktElementProps<ImpaktAvatar, 'fullName' | 'src' | 'size', 'full-name', {}>;
33
+ 'impakt-avatar-group': ImpaktElementProps<ImpaktAvatarGroup, 'items' | 'max' | 'size' | 'moreLabel', 'more-label', {}>;
34
+ 'impakt-badge': ImpaktElementProps<ImpaktBadge, 'tone' | 'icon', never, {}>;
35
+ 'impakt-breadcrumbs': ImpaktElementProps<ImpaktBreadcrumbs, 'items' | 'label', never, {}>;
36
+ 'impakt-button': ImpaktElementProps<ImpaktButton, 'hideOn' | 'variant' | 'type' | 'disabled' | 'busy' | 'busyLabel' | 'full' | 'fullOnPhone' | 'size' | 'iconBefore' | 'iconAfter' | 'href', 'hide-on' | 'busy-label' | 'full-on-phone' | 'icon-before' | 'icon-after', {}>;
37
+ 'impakt-card': ImpaktElementProps<ImpaktCard, 'tone' | 'padding' | 'imageSrc' | 'imageAlt' | 'badge' | 'ratio' | 'raised' | 'spaceAbove' | 'spaceBelow', 'image-src' | 'image-alt' | 'space-above' | 'space-below', {}>;
38
+ 'impakt-checkbox': ImpaktElementProps<ImpaktCheckbox, 'checked' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
39
+ 'onimpakt-change': CustomEvent<{
40
+ value: string;
41
+ }>;
42
+ }>;
43
+ 'impakt-checkbox-group': ImpaktElementProps<ImpaktCheckboxGroup, 'options' | 'values' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
44
+ 'onimpakt-change': CustomEvent<{
45
+ value: string;
46
+ }>;
47
+ }>;
48
+ 'impakt-chip': ImpaktElementProps<ImpaktChip, 'label' | 'meta' | 'icon' | 'tone' | 'look' | 'hideOn', 'hide-on', {}>;
49
+ 'impakt-date-input': ImpaktElementProps<ImpaktDateInput, 'day' | 'month' | 'year' | 'autocompleteSection' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'autocomplete-section' | 'required-text', {
50
+ 'onimpakt-change': CustomEvent<{
51
+ value: string;
52
+ }>;
53
+ }>;
54
+ 'impakt-dialog': ImpaktElementProps<ImpaktDialog, 'open' | 'heading' | 'closeLabel' | 'dismissible' | 'phoneFullScreen', 'close-label' | 'phone-full-screen', {
55
+ 'onimpakt-close': CustomEvent<null>;
56
+ }>;
57
+ 'impakt-divider': ImpaktElementProps<ImpaktDivider, 'spacing' | 'tone', never, {}>;
58
+ 'impakt-document-link': ImpaktElementProps<ImpaktDocumentLink, 'href' | 'label' | 'fileType' | 'byteSize', 'file-type' | 'byte-size', {}>;
59
+ 'impakt-drawer': ImpaktElementProps<ImpaktDrawer, 'open' | 'heading' | 'side' | 'closeLabel', 'close-label', {
60
+ 'onimpakt-close': CustomEvent<null>;
61
+ }>;
62
+ 'impakt-empty-state': ImpaktElementProps<ImpaktEmptyState, 'icon' | 'heading' | 'lead' | 'framed' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
63
+ 'impakt-error-summary': ImpaktElementProps<ImpaktErrorSummary, 'heading' | 'items' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
64
+ 'impakt-fieldset': ImpaktElementProps<ImpaktFieldset, 'legend' | 'description' | 'error' | 'size', never, {}>;
65
+ 'impakt-file-upload': ImpaktElementProps<ImpaktFileUpload, 'accept' | 'manyFiles' | 'maxSizeMb' | 'chooseText' | 'dropText' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'many-files' | 'max-size-mb' | 'choose-text' | 'drop-text' | 'required-text', {
66
+ 'onimpakt-files': CustomEvent<{
67
+ files: File[];
68
+ }>;
69
+ 'onimpakt-change': CustomEvent<{
70
+ value: string;
71
+ }>;
72
+ }>;
73
+ 'impakt-grid': ImpaktElementProps<ImpaktGrid, 'columns' | 'widths' | 'gap' | 'stackOn' | 'align' | 'spaceAbove' | 'spaceBelow', 'stack-on' | 'space-above' | 'space-below', {}>;
74
+ 'impakt-heading': ImpaktElementProps<ImpaktHeading, 'level' | 'size' | 'eyebrow' | 'align' | 'screenReaderOnly', 'screen-reader-only', {}>;
75
+ 'impakt-help': ImpaktElementProps<ImpaktHelp, 'mechanismId' | 'kind' | 'href' | 'label' | 'detail', 'mechanism-id', {}>;
76
+ 'impakt-icon': ImpaktElementProps<ImpaktIcon, 'name' | 'label' | 'size' | 'tone', never, {}>;
77
+ 'impakt-image': ImpaktElementProps<ImpaktImage, 'hideOn' | 'src' | 'alt' | 'decorative' | 'width' | 'height' | 'focalX' | 'focalY' | 'loading' | 'ratio' | 'rounded', 'hide-on' | 'focal-x' | 'focal-y', {}>;
78
+ 'impakt-link': ImpaktElementProps<ImpaktLink, 'href' | 'external' | 'externalText' | 'variant' | 'icon', 'external-text', {}>;
79
+ 'impakt-list': ImpaktElementProps<ImpaktList, 'items' | 'look' | 'size' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
80
+ 'impakt-logo': ImpaktElementProps<ImpaktLogo, 'src' | 'srcDark' | 'alt' | 'onDark' | 'height', 'src-dark' | 'on-dark', {}>;
81
+ 'impakt-menu': ImpaktElementProps<ImpaktMenu, 'label' | 'icon' | 'items' | 'edge' | 'open', never, {
82
+ 'onimpakt-select': CustomEvent<{
83
+ value: string;
84
+ }>;
85
+ }>;
86
+ 'impakt-money-input': ImpaktElementProps<ImpaktMoneyInput, 'currency' | 'lowest' | 'highest' | 'pence' | 'width' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
87
+ 'onimpakt-change': CustomEvent<{
88
+ value: string;
89
+ }>;
90
+ }>;
91
+ 'impakt-nav': ImpaktElementProps<ImpaktNav, 'links' | 'label' | 'menuText' | 'menuLook' | 'size' | 'align', 'menu-text' | 'menu-look', {}>;
92
+ 'impakt-page': ImpaktElementProps<ImpaktPage, 'width' | 'stickyHeader' | 'skipText', 'sticky-header' | 'skip-text', {}>;
93
+ 'impakt-pagination': ImpaktElementProps<ImpaktPagination, 'page' | 'pages' | 'hrefPattern' | 'label' | 'previousText' | 'nextText', 'href-pattern' | 'previous-text' | 'next-text', {
94
+ 'onimpakt-page': CustomEvent<{
95
+ page: number;
96
+ }>;
97
+ }>;
98
+ 'impakt-price': ImpaktElementProps<ImpaktPrice, 'amount' | 'currency' | 'locale' | 'prefix' | 'period' | 'size' | 'pending', never, {}>;
99
+ 'impakt-progress': ImpaktElementProps<ImpaktProgress, 'steps' | 'current' | 'label', never, {}>;
100
+ 'impakt-radio-group': ImpaktElementProps<ImpaktRadioGroup, 'options' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
101
+ 'onimpakt-change': CustomEvent<{
102
+ value: string;
103
+ }>;
104
+ }>;
105
+ 'impakt-range-input': ImpaktElementProps<ImpaktRangeInput, 'lowest' | 'highest' | 'step' | 'currency' | 'unit' | 'label' | 'value' | 'name' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
106
+ 'onimpakt-change': CustomEvent<{
107
+ value: string;
108
+ }>;
109
+ }>;
110
+ 'impakt-section': ImpaktElementProps<ImpaktSection, 'tone' | 'padding' | 'width' | 'bleed' | 'label' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
111
+ 'impakt-select': ImpaktElementProps<ImpaktSelect, 'options' | 'placeholder' | 'width' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
112
+ 'onimpakt-change': CustomEvent<{
113
+ value: string;
114
+ }>;
115
+ }>;
116
+ 'impakt-slot-picker': ImpaktElementProps<ImpaktSlotPicker, 'days' | 'dayLabel' | 'timeLabel' | 'emptyText' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'day-label' | 'time-label' | 'empty-text' | 'required-text', {
117
+ 'onimpakt-change': CustomEvent<{
118
+ value: string;
119
+ }>;
120
+ }>;
121
+ 'impakt-spacer': ImpaktElementProps<ImpaktSpacer, 'size', never, {}>;
122
+ 'impakt-stack': ImpaktElementProps<ImpaktStack, 'gap' | 'align' | 'direction' | 'justify' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
123
+ 'impakt-summary-list': ImpaktElementProps<ImpaktSummaryList, 'rows' | 'changeText', 'change-text', {}>;
124
+ 'impakt-table': ImpaktElementProps<ImpaktTable, 'caption' | 'columns' | 'rows' | 'sortKey' | 'sortDirection' | 'manualSort' | 'selectable' | 'selected' | 'rowKey' | 'stack' | 'emptyText' | 'selectAllText' | 'selectRowText', 'sort-key' | 'sort-direction' | 'manual-sort' | 'row-key' | 'empty-text' | 'select-all-text' | 'select-row-text', {
125
+ 'onimpakt-sort': CustomEvent<{
126
+ key: string;
127
+ direction: SortDirection;
128
+ }>;
129
+ 'onimpakt-selection': CustomEvent<{
130
+ selected: string[];
131
+ }>;
132
+ }>;
133
+ 'impakt-tabs': ImpaktElementProps<ImpaktTabs, 'items' | 'selected' | 'label' | 'twoRows', 'two-rows', {
134
+ 'onimpakt-change': CustomEvent<{
135
+ value: string;
136
+ }>;
137
+ }>;
138
+ 'impakt-task-list': ImpaktElementProps<ImpaktTaskList, 'heading' | 'items' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
139
+ 'impakt-text': ImpaktElementProps<ImpaktText, 'size' | 'tone' | 'align' | 'look', never, {}>;
140
+ 'impakt-text-input': ImpaktElementProps<ImpaktTextInput, 'type' | 'placeholder' | 'autocomplete' | 'inputmode' | 'maxlength' | 'width' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'required-text', {
141
+ 'onimpakt-change': CustomEvent<{
142
+ value: string;
143
+ }>;
144
+ }>;
145
+ 'impakt-textarea': ImpaktElementProps<ImpaktTextarea, 'rows' | 'maxlength' | 'fillFrom' | 'width' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'fill-from' | 'required-text', {
146
+ 'onimpakt-change': CustomEvent<{
147
+ value: string;
148
+ }>;
149
+ }>;
150
+ 'impakt-toast': ImpaktElementProps<ImpaktToast, 'open' | 'message' | 'tone' | 'duration' | 'actionText' | 'closeLabel', 'action-text' | 'close-label', {
151
+ 'onimpakt-close': CustomEvent<null>;
152
+ 'onimpakt-action': CustomEvent<null>;
153
+ }>;
154
+ 'impakt-visually-hidden': ImpaktElementProps<ImpaktVisuallyHidden, never, never, {}>;
155
+ }
156
+ declare module 'react' {
157
+ namespace JSX {
158
+ interface IntrinsicElements extends ImpaktIntrinsicElements {
159
+ }
160
+ }
161
+ }
package/dist/jsx.js ADDED
@@ -0,0 +1,2 @@
1
+ import "./chunk-NSAHEL6V.js";
2
+ //# sourceMappingURL=jsx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -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/strata';
3
+ import type { EstimateResult, PlanItem, SitePlot } from '@atomic-ui/strata';
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/strata';
2
+ import type { EstimateResult, PlanItem, SitePlot } from '@atomic-ui/strata';
3
+ import type { ImpaktElementProps } from './jsx';
4
+ /** Every element, by tag. */
5
+ export interface ImpaktStrataIntrinsicElements {
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 ImpaktStrataIntrinsicElements {
77
+ }
78
+ }
79
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * React bindings for `@atomic-ui/strata`, the blocks Strata builds sites from.
3
+ *
4
+ * import { Hero, CardGrid, SiteHeader } from '@atomic-ui/ui-react/strata';
5
+ *
6
+ * They are made exactly as the product components in `@atomic-ui/ui-react` are,
7
+ * by `scripts/generate.mjs`, from `@atomic-ui/strata`'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/strata` installed. An app that uses them installs it
14
+ * beside `@atomic-ui/ui`.
15
+ */
16
+ import './strata-jsx';
17
+ export * from './strata-components';
18
+ export type { ImpaktStrataIntrinsicElements } from './strata-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/strata';