@atomic-ui/ui-react 0.3.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/README.md +21 -3
- 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/dist/strata-components.d.ts +107 -0
- package/dist/strata-jsx.d.ts +79 -0
- package/dist/strata.d.ts +19 -0
- package/dist/strata.js +293 -0
- package/dist/strata.js.map +1 -0
- 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/strata` block in its `strata` 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 Strata blocks
|
|
35
|
+
|
|
36
|
+
The blocks Strata builds sites from are in `@atomic-ui/strata`, and their components are in this package's `strata` entry. An app that uses them installs that package too:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
pnpm add @atomic-ui/ui @atomic-ui/strata @atomic-ui/ui-react
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { Hero, CardGrid, SiteHeader, MortgageCalculator } from '@atomic-ui/ui-react/strata';
|
|
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/strata`'s manifest by the same script and named the same way, and importing the entry types the blocks' tags for JSX, as `ImpaktStrataIntrinsicElements`. The main entry holds the product components only, so an app that uses no blocks never loads them. `@atomic-ui/strata` 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"`).
|
package/dist/components.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type EventName } from '@lit/react';
|
|
2
|
-
import {
|
|
3
|
-
import type {
|
|
4
|
-
/** `<
|
|
5
|
-
export declare const Accordion: import("@lit/react").ReactWebComponent<
|
|
6
|
-
/** `<
|
|
7
|
-
export declare const AddressLookup: import("@lit/react").ReactWebComponent<
|
|
2
|
+
import { 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
|
+
/** `<impakt-accordion>` */
|
|
5
|
+
export declare const Accordion: import("@lit/react").ReactWebComponent<ImpaktAccordion, {}>;
|
|
6
|
+
/** `<impakt-address-lookup>` */
|
|
7
|
+
export declare const AddressLookup: import("@lit/react").ReactWebComponent<ImpaktAddressLookup, {
|
|
8
8
|
onLookup: EventName<CustomEvent<{
|
|
9
9
|
postcode: string;
|
|
10
10
|
}>>;
|
|
@@ -12,94 +12,62 @@ export declare const AddressLookup: import("@lit/react").ReactWebComponent<Impkt
|
|
|
12
12
|
value: string;
|
|
13
13
|
}>>;
|
|
14
14
|
}>;
|
|
15
|
-
/** `<
|
|
16
|
-
export declare const
|
|
17
|
-
/** `<
|
|
18
|
-
export declare const
|
|
19
|
-
/** `<
|
|
20
|
-
export declare const
|
|
21
|
-
/** `<
|
|
22
|
-
export declare const
|
|
23
|
-
/** `<
|
|
24
|
-
export declare const
|
|
25
|
-
/** `<
|
|
26
|
-
export declare const
|
|
27
|
-
/** `<impkt-before-after>` */
|
|
28
|
-
export declare const BeforeAfter: import("@lit/react").ReactWebComponent<ImpktBeforeAfter, {}>;
|
|
29
|
-
/** `<impkt-branch-list>` */
|
|
30
|
-
export declare const BranchList: import("@lit/react").ReactWebComponent<ImpktBranchList, {}>;
|
|
31
|
-
/** `<impkt-branch-timeline>` */
|
|
32
|
-
export declare const BranchTimeline: import("@lit/react").ReactWebComponent<ImpktBranchTimeline, {}>;
|
|
33
|
-
/** `<impkt-breadcrumbs>` */
|
|
34
|
-
export declare const Breadcrumbs: import("@lit/react").ReactWebComponent<ImpktBreadcrumbs, {}>;
|
|
35
|
-
/** `<impkt-button>` */
|
|
36
|
-
export declare const Button: import("@lit/react").ReactWebComponent<ImpktButton, {
|
|
15
|
+
/** `<impakt-alert>` */
|
|
16
|
+
export declare const Alert: import("@lit/react").ReactWebComponent<ImpaktAlert, {}>;
|
|
17
|
+
/** `<impakt-avatar>` */
|
|
18
|
+
export declare const Avatar: import("@lit/react").ReactWebComponent<ImpaktAvatar, {}>;
|
|
19
|
+
/** `<impakt-avatar-group>` */
|
|
20
|
+
export declare const AvatarGroup: import("@lit/react").ReactWebComponent<ImpaktAvatarGroup, {}>;
|
|
21
|
+
/** `<impakt-badge>` */
|
|
22
|
+
export declare const Badge: import("@lit/react").ReactWebComponent<ImpaktBadge, {}>;
|
|
23
|
+
/** `<impakt-breadcrumbs>` */
|
|
24
|
+
export declare const Breadcrumbs: import("@lit/react").ReactWebComponent<ImpaktBreadcrumbs, {}>;
|
|
25
|
+
/** `<impakt-button>` */
|
|
26
|
+
export declare const Button: import("@lit/react").ReactWebComponent<ImpaktButton, {
|
|
37
27
|
onClick: EventName<MouseEvent>;
|
|
38
28
|
}>;
|
|
39
|
-
/** `<
|
|
40
|
-
export declare const Card: import("@lit/react").ReactWebComponent<
|
|
41
|
-
/** `<
|
|
42
|
-
export declare const
|
|
43
|
-
/** `<impkt-carousel>` */
|
|
44
|
-
export declare const Carousel: import("@lit/react").ReactWebComponent<ImpktCarousel, {}>;
|
|
45
|
-
/** `<impkt-check-list>` */
|
|
46
|
-
export declare const CheckList: import("@lit/react").ReactWebComponent<ImpktCheckList, {}>;
|
|
47
|
-
/** `<impkt-checkbox>` */
|
|
48
|
-
export declare const Checkbox: import("@lit/react").ReactWebComponent<ImpktCheckbox, {
|
|
29
|
+
/** `<impakt-card>` */
|
|
30
|
+
export declare const Card: import("@lit/react").ReactWebComponent<ImpaktCard, {}>;
|
|
31
|
+
/** `<impakt-checkbox>` */
|
|
32
|
+
export declare const Checkbox: import("@lit/react").ReactWebComponent<ImpaktCheckbox, {
|
|
49
33
|
onChange: EventName<CustomEvent<{
|
|
50
34
|
value: string;
|
|
51
35
|
}>>;
|
|
52
36
|
}>;
|
|
53
|
-
/** `<
|
|
54
|
-
export declare const CheckboxGroup: import("@lit/react").ReactWebComponent<
|
|
37
|
+
/** `<impakt-checkbox-group>` */
|
|
38
|
+
export declare const CheckboxGroup: import("@lit/react").ReactWebComponent<ImpaktCheckboxGroup, {
|
|
55
39
|
onChange: EventName<CustomEvent<{
|
|
56
40
|
value: string;
|
|
57
41
|
}>>;
|
|
58
42
|
}>;
|
|
59
|
-
/** `<
|
|
60
|
-
export declare const Chip: import("@lit/react").ReactWebComponent<
|
|
61
|
-
/** `<
|
|
62
|
-
export declare const
|
|
63
|
-
onSubmit: EventName<CustomEvent<{
|
|
64
|
-
name: string;
|
|
65
|
-
phone: string;
|
|
66
|
-
when: string;
|
|
67
|
-
}>>;
|
|
68
|
-
}>;
|
|
69
|
-
/** `<impkt-cta-banner>` */
|
|
70
|
-
export declare const CtaBanner: import("@lit/react").ReactWebComponent<ImpktCtaBanner, {}>;
|
|
71
|
-
/** `<impkt-date-input>` */
|
|
72
|
-
export declare const DateInput: import("@lit/react").ReactWebComponent<ImpktDateInput, {
|
|
43
|
+
/** `<impakt-chip>` */
|
|
44
|
+
export declare const Chip: import("@lit/react").ReactWebComponent<ImpaktChip, {}>;
|
|
45
|
+
/** `<impakt-date-input>` */
|
|
46
|
+
export declare const DateInput: import("@lit/react").ReactWebComponent<ImpaktDateInput, {
|
|
73
47
|
onChange: EventName<CustomEvent<{
|
|
74
48
|
value: string;
|
|
75
49
|
}>>;
|
|
76
50
|
}>;
|
|
77
|
-
/** `<
|
|
78
|
-
export declare const Dialog: import("@lit/react").ReactWebComponent<
|
|
51
|
+
/** `<impakt-dialog>` */
|
|
52
|
+
export declare const Dialog: import("@lit/react").ReactWebComponent<ImpaktDialog, {
|
|
79
53
|
onClose: EventName<CustomEvent<null>>;
|
|
80
54
|
}>;
|
|
81
|
-
/** `<
|
|
82
|
-
export declare const Divider: import("@lit/react").ReactWebComponent<
|
|
83
|
-
/** `<
|
|
84
|
-
export declare const DocumentLink: import("@lit/react").ReactWebComponent<
|
|
85
|
-
/** `<
|
|
86
|
-
export declare const Drawer: import("@lit/react").ReactWebComponent<
|
|
55
|
+
/** `<impakt-divider>` */
|
|
56
|
+
export declare const Divider: import("@lit/react").ReactWebComponent<ImpaktDivider, {}>;
|
|
57
|
+
/** `<impakt-document-link>` */
|
|
58
|
+
export declare const DocumentLink: import("@lit/react").ReactWebComponent<ImpaktDocumentLink, {}>;
|
|
59
|
+
/** `<impakt-drawer>` */
|
|
60
|
+
export declare const Drawer: import("@lit/react").ReactWebComponent<ImpaktDrawer, {
|
|
87
61
|
onClose: EventName<CustomEvent<null>>;
|
|
88
62
|
}>;
|
|
89
|
-
/** `<
|
|
90
|
-
export declare const EmptyState: import("@lit/react").ReactWebComponent<
|
|
91
|
-
/** `<
|
|
92
|
-
export declare const ErrorSummary: import("@lit/react").ReactWebComponent<
|
|
93
|
-
/** `<
|
|
94
|
-
export declare const
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/** `<impkt-feature-list>` */
|
|
98
|
-
export declare const FeatureList: import("@lit/react").ReactWebComponent<ImpktFeatureList, {}>;
|
|
99
|
-
/** `<impkt-fieldset>` */
|
|
100
|
-
export declare const Fieldset: import("@lit/react").ReactWebComponent<ImpktFieldset, {}>;
|
|
101
|
-
/** `<impkt-file-upload>` */
|
|
102
|
-
export declare const FileUpload: import("@lit/react").ReactWebComponent<ImpktFileUpload, {
|
|
63
|
+
/** `<impakt-empty-state>` */
|
|
64
|
+
export declare const EmptyState: import("@lit/react").ReactWebComponent<ImpaktEmptyState, {}>;
|
|
65
|
+
/** `<impakt-error-summary>` */
|
|
66
|
+
export declare const ErrorSummary: import("@lit/react").ReactWebComponent<ImpaktErrorSummary, {}>;
|
|
67
|
+
/** `<impakt-fieldset>` */
|
|
68
|
+
export declare const Fieldset: import("@lit/react").ReactWebComponent<ImpaktFieldset, {}>;
|
|
69
|
+
/** `<impakt-file-upload>` */
|
|
70
|
+
export declare const FileUpload: import("@lit/react").ReactWebComponent<ImpaktFileUpload, {
|
|
103
71
|
onFiles: EventName<CustomEvent<{
|
|
104
72
|
files: File[];
|
|
105
73
|
}>>;
|
|
@@ -107,150 +75,82 @@ export declare const FileUpload: import("@lit/react").ReactWebComponent<ImpktFil
|
|
|
107
75
|
value: string;
|
|
108
76
|
}>>;
|
|
109
77
|
}>;
|
|
110
|
-
/** `<
|
|
111
|
-
export declare const
|
|
112
|
-
/** `<
|
|
113
|
-
export declare const
|
|
114
|
-
/** `<
|
|
115
|
-
export declare const
|
|
116
|
-
/** `<
|
|
117
|
-
export declare const
|
|
118
|
-
/** `<
|
|
119
|
-
export declare const
|
|
120
|
-
/** `<
|
|
121
|
-
export declare const
|
|
122
|
-
/** `<
|
|
123
|
-
export declare const
|
|
124
|
-
/** `<
|
|
125
|
-
export declare const
|
|
126
|
-
/** `<
|
|
127
|
-
export declare const
|
|
128
|
-
/** `<impkt-location-card>` */
|
|
129
|
-
export declare const LocationCard: import("@lit/react").ReactWebComponent<ImpktLocationCard, {}>;
|
|
130
|
-
/** `<impkt-logo>` */
|
|
131
|
-
export declare const Logo: import("@lit/react").ReactWebComponent<ImpktLogo, {}>;
|
|
132
|
-
/** `<impkt-logo-cloud>` */
|
|
133
|
-
export declare const LogoCloud: import("@lit/react").ReactWebComponent<ImpktLogoCloud, {}>;
|
|
134
|
-
/** `<impkt-media-split>` */
|
|
135
|
-
export declare const MediaSplit: import("@lit/react").ReactWebComponent<ImpktMediaSplit, {}>;
|
|
136
|
-
/** `<impkt-menu>` */
|
|
137
|
-
export declare const Menu: import("@lit/react").ReactWebComponent<ImpktMenu, {
|
|
78
|
+
/** `<impakt-grid>` */
|
|
79
|
+
export declare const Grid: import("@lit/react").ReactWebComponent<ImpaktGrid, {}>;
|
|
80
|
+
/** `<impakt-heading>` */
|
|
81
|
+
export declare const Heading: import("@lit/react").ReactWebComponent<ImpaktHeading, {}>;
|
|
82
|
+
/** `<impakt-help>` */
|
|
83
|
+
export declare const Help: import("@lit/react").ReactWebComponent<ImpaktHelp, {}>;
|
|
84
|
+
/** `<impakt-icon>` */
|
|
85
|
+
export declare const Icon: import("@lit/react").ReactWebComponent<ImpaktIcon, {}>;
|
|
86
|
+
/** `<impakt-image>` */
|
|
87
|
+
export declare const Image: import("@lit/react").ReactWebComponent<ImpaktImage, {}>;
|
|
88
|
+
/** `<impakt-link>` */
|
|
89
|
+
export declare const Link: import("@lit/react").ReactWebComponent<ImpaktLink, {}>;
|
|
90
|
+
/** `<impakt-list>` */
|
|
91
|
+
export declare const List: import("@lit/react").ReactWebComponent<ImpaktList, {}>;
|
|
92
|
+
/** `<impakt-logo>` */
|
|
93
|
+
export declare const Logo: import("@lit/react").ReactWebComponent<ImpaktLogo, {}>;
|
|
94
|
+
/** `<impakt-menu>` */
|
|
95
|
+
export declare const Menu: import("@lit/react").ReactWebComponent<ImpaktMenu, {
|
|
138
96
|
onSelect: EventName<CustomEvent<{
|
|
139
97
|
value: string;
|
|
140
98
|
}>>;
|
|
141
99
|
}>;
|
|
142
|
-
/** `<
|
|
143
|
-
export declare const MoneyInput: import("@lit/react").ReactWebComponent<
|
|
100
|
+
/** `<impakt-money-input>` */
|
|
101
|
+
export declare const MoneyInput: import("@lit/react").ReactWebComponent<ImpaktMoneyInput, {
|
|
144
102
|
onChange: EventName<CustomEvent<{
|
|
145
103
|
value: string;
|
|
146
104
|
}>>;
|
|
147
105
|
}>;
|
|
148
|
-
/** `<
|
|
149
|
-
export declare const
|
|
150
|
-
/** `<
|
|
151
|
-
export declare const
|
|
152
|
-
/** `<
|
|
153
|
-
export declare const
|
|
154
|
-
onSubmit: EventName<CustomEvent<{
|
|
155
|
-
email: string;
|
|
156
|
-
}>>;
|
|
157
|
-
}>;
|
|
158
|
-
/** `<impkt-page>` */
|
|
159
|
-
export declare const Page: import("@lit/react").ReactWebComponent<ImpktPage, {}>;
|
|
160
|
-
/** `<impkt-pagination>` */
|
|
161
|
-
export declare const Pagination: import("@lit/react").ReactWebComponent<ImpktPagination, {
|
|
106
|
+
/** `<impakt-nav>` */
|
|
107
|
+
export declare const Nav: import("@lit/react").ReactWebComponent<ImpaktNav, {}>;
|
|
108
|
+
/** `<impakt-page>` */
|
|
109
|
+
export declare const Page: import("@lit/react").ReactWebComponent<ImpaktPage, {}>;
|
|
110
|
+
/** `<impakt-pagination>` */
|
|
111
|
+
export declare const Pagination: import("@lit/react").ReactWebComponent<ImpaktPagination, {
|
|
162
112
|
onPage: EventName<CustomEvent<{
|
|
163
113
|
page: number;
|
|
164
114
|
}>>;
|
|
165
115
|
}>;
|
|
166
|
-
/** `<
|
|
167
|
-
export declare const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/** `<impkt-price>` */
|
|
173
|
-
export declare const Price: import("@lit/react").ReactWebComponent<ImpktPrice, {}>;
|
|
174
|
-
/** `<impkt-progress>` */
|
|
175
|
-
export declare const Progress: import("@lit/react").ReactWebComponent<ImpktProgress, {}>;
|
|
176
|
-
/** `<impkt-quote>` */
|
|
177
|
-
export declare const Quote: import("@lit/react").ReactWebComponent<ImpktQuote, {}>;
|
|
178
|
-
/** `<impkt-radio-group>` */
|
|
179
|
-
export declare const RadioGroup: import("@lit/react").ReactWebComponent<ImpktRadioGroup, {
|
|
116
|
+
/** `<impakt-price>` */
|
|
117
|
+
export declare const Price: import("@lit/react").ReactWebComponent<ImpaktPrice, {}>;
|
|
118
|
+
/** `<impakt-progress>` */
|
|
119
|
+
export declare const Progress: import("@lit/react").ReactWebComponent<ImpaktProgress, {}>;
|
|
120
|
+
/** `<impakt-radio-group>` */
|
|
121
|
+
export declare const RadioGroup: import("@lit/react").ReactWebComponent<ImpaktRadioGroup, {
|
|
180
122
|
onChange: EventName<CustomEvent<{
|
|
181
123
|
value: string;
|
|
182
124
|
}>>;
|
|
183
125
|
}>;
|
|
184
|
-
/** `<
|
|
185
|
-
export declare const RangeInput: import("@lit/react").ReactWebComponent<
|
|
126
|
+
/** `<impakt-range-input>` */
|
|
127
|
+
export declare const RangeInput: import("@lit/react").ReactWebComponent<ImpaktRangeInput, {
|
|
186
128
|
onChange: EventName<CustomEvent<{
|
|
187
129
|
value: string;
|
|
188
130
|
}>>;
|
|
189
131
|
}>;
|
|
190
|
-
/** `<
|
|
191
|
-
export declare const
|
|
192
|
-
/** `<
|
|
193
|
-
export declare const
|
|
194
|
-
/** `<impkt-release-list>` */
|
|
195
|
-
export declare const ReleaseList: import("@lit/react").ReactWebComponent<ImpktReleaseList, {}>;
|
|
196
|
-
/** `<impkt-reviews>` */
|
|
197
|
-
export declare const Reviews: import("@lit/react").ReactWebComponent<ImpktReviews, {}>;
|
|
198
|
-
/** `<impkt-scene>` */
|
|
199
|
-
export declare const Scene: import("@lit/react").ReactWebComponent<ImpktScene, {
|
|
200
|
-
onSceneProgress: EventName<CustomEvent<{
|
|
201
|
-
progress: number;
|
|
202
|
-
}>>;
|
|
203
|
-
}>;
|
|
204
|
-
/** `<impkt-scrubber>` */
|
|
205
|
-
export declare const Scrubber: import("@lit/react").ReactWebComponent<ImpktScrubber, {}>;
|
|
206
|
-
/** `<impkt-search-bar>` */
|
|
207
|
-
export declare const SearchBar: import("@lit/react").ReactWebComponent<ImpktSearchBar, {
|
|
208
|
-
onSubmit: EventName<CustomEvent<{
|
|
209
|
-
values: Record<string, string>;
|
|
210
|
-
}>>;
|
|
211
|
-
}>;
|
|
212
|
-
/** `<impkt-section>` */
|
|
213
|
-
export declare const Section: import("@lit/react").ReactWebComponent<ImpktSection, {}>;
|
|
214
|
-
/** `<impkt-select>` */
|
|
215
|
-
export declare const Select: import("@lit/react").ReactWebComponent<ImpktSelect, {
|
|
132
|
+
/** `<impakt-section>` */
|
|
133
|
+
export declare const Section: import("@lit/react").ReactWebComponent<ImpaktSection, {}>;
|
|
134
|
+
/** `<impakt-select>` */
|
|
135
|
+
export declare const Select: import("@lit/react").ReactWebComponent<ImpaktSelect, {
|
|
216
136
|
onChange: EventName<CustomEvent<{
|
|
217
137
|
value: string;
|
|
218
138
|
}>>;
|
|
219
139
|
}>;
|
|
220
|
-
/** `<
|
|
221
|
-
export declare const
|
|
222
|
-
/** `<impkt-site-header>` */
|
|
223
|
-
export declare const SiteHeader: import("@lit/react").ReactWebComponent<ImpktSiteHeader, {
|
|
224
|
-
onAction: EventName<CustomEvent<null>>;
|
|
225
|
-
}>;
|
|
226
|
-
/** `<impkt-site-plan>` */
|
|
227
|
-
export declare const SitePlan: import("@lit/react").ReactWebComponent<ImpktSitePlan, {
|
|
228
|
-
onSelect: EventName<CustomEvent<{
|
|
229
|
-
plot: SitePlot;
|
|
230
|
-
}>>;
|
|
231
|
-
}>;
|
|
232
|
-
/** `<impkt-slot-picker>` */
|
|
233
|
-
export declare const SlotPicker: import("@lit/react").ReactWebComponent<ImpktSlotPicker, {
|
|
140
|
+
/** `<impakt-slot-picker>` */
|
|
141
|
+
export declare const SlotPicker: import("@lit/react").ReactWebComponent<ImpaktSlotPicker, {
|
|
234
142
|
onChange: EventName<CustomEvent<{
|
|
235
143
|
value: string;
|
|
236
144
|
}>>;
|
|
237
145
|
}>;
|
|
238
|
-
/** `<
|
|
239
|
-
export declare const Spacer: import("@lit/react").ReactWebComponent<
|
|
240
|
-
/** `<
|
|
241
|
-
export declare const Stack: import("@lit/react").ReactWebComponent<
|
|
242
|
-
/** `<
|
|
243
|
-
export declare const
|
|
244
|
-
/** `<
|
|
245
|
-
export declare const
|
|
246
|
-
/** `<impkt-steps>` */
|
|
247
|
-
export declare const Steps: import("@lit/react").ReactWebComponent<ImpktSteps, {}>;
|
|
248
|
-
/** `<impkt-sticky-bar>` */
|
|
249
|
-
export declare const StickyBar: import("@lit/react").ReactWebComponent<ImpktStickyBar, {}>;
|
|
250
|
-
/** `<impkt-summary-list>` */
|
|
251
|
-
export declare const SummaryList: import("@lit/react").ReactWebComponent<ImpktSummaryList, {}>;
|
|
252
|
-
/** `<impkt-table>` */
|
|
253
|
-
export declare const Table: import("@lit/react").ReactWebComponent<ImpktTable, {
|
|
146
|
+
/** `<impakt-spacer>` */
|
|
147
|
+
export declare const Spacer: import("@lit/react").ReactWebComponent<ImpaktSpacer, {}>;
|
|
148
|
+
/** `<impakt-stack>` */
|
|
149
|
+
export declare const Stack: import("@lit/react").ReactWebComponent<ImpaktStack, {}>;
|
|
150
|
+
/** `<impakt-summary-list>` */
|
|
151
|
+
export declare const SummaryList: import("@lit/react").ReactWebComponent<ImpaktSummaryList, {}>;
|
|
152
|
+
/** `<impakt-table>` */
|
|
153
|
+
export declare const Table: import("@lit/react").ReactWebComponent<ImpaktTable, {
|
|
254
154
|
onSort: EventName<CustomEvent<{
|
|
255
155
|
key: string;
|
|
256
156
|
direction: SortDirection;
|
|
@@ -259,36 +159,32 @@ export declare const Table: import("@lit/react").ReactWebComponent<ImpktTable, {
|
|
|
259
159
|
selected: string[];
|
|
260
160
|
}>>;
|
|
261
161
|
}>;
|
|
262
|
-
/** `<
|
|
263
|
-
export declare const Tabs: import("@lit/react").ReactWebComponent<
|
|
162
|
+
/** `<impakt-tabs>` */
|
|
163
|
+
export declare const Tabs: import("@lit/react").ReactWebComponent<ImpaktTabs, {
|
|
264
164
|
onChange: EventName<CustomEvent<{
|
|
265
165
|
value: string;
|
|
266
166
|
}>>;
|
|
267
167
|
}>;
|
|
268
|
-
/** `<
|
|
269
|
-
export declare const TaskList: import("@lit/react").ReactWebComponent<
|
|
270
|
-
/** `<
|
|
271
|
-
export declare const Text: import("@lit/react").ReactWebComponent<
|
|
272
|
-
/** `<
|
|
273
|
-
export declare const TextInput: import("@lit/react").ReactWebComponent<
|
|
168
|
+
/** `<impakt-task-list>` */
|
|
169
|
+
export declare const TaskList: import("@lit/react").ReactWebComponent<ImpaktTaskList, {}>;
|
|
170
|
+
/** `<impakt-text>` */
|
|
171
|
+
export declare const Text: import("@lit/react").ReactWebComponent<ImpaktText, {}>;
|
|
172
|
+
/** `<impakt-text-input>` */
|
|
173
|
+
export declare const TextInput: import("@lit/react").ReactWebComponent<ImpaktTextInput, {
|
|
274
174
|
onChange: EventName<CustomEvent<{
|
|
275
175
|
value: string;
|
|
276
176
|
}>>;
|
|
277
177
|
}>;
|
|
278
|
-
/** `<
|
|
279
|
-
export declare const Textarea: import("@lit/react").ReactWebComponent<
|
|
178
|
+
/** `<impakt-textarea>` */
|
|
179
|
+
export declare const Textarea: import("@lit/react").ReactWebComponent<ImpaktTextarea, {
|
|
280
180
|
onChange: EventName<CustomEvent<{
|
|
281
181
|
value: string;
|
|
282
182
|
}>>;
|
|
283
183
|
}>;
|
|
284
|
-
/** `<
|
|
285
|
-
export declare const Toast: import("@lit/react").ReactWebComponent<
|
|
184
|
+
/** `<impakt-toast>` */
|
|
185
|
+
export declare const Toast: import("@lit/react").ReactWebComponent<ImpaktToast, {
|
|
286
186
|
onClose: EventName<CustomEvent<null>>;
|
|
287
187
|
onAction: EventName<CustomEvent<null>>;
|
|
288
188
|
}>;
|
|
289
|
-
/** `<
|
|
290
|
-
export declare const
|
|
291
|
-
/** `<impkt-visually-hidden>` */
|
|
292
|
-
export declare const VisuallyHidden: import("@lit/react").ReactWebComponent<ImpktVisuallyHidden, {}>;
|
|
293
|
-
/** `<impkt-wordmark>` */
|
|
294
|
-
export declare const Wordmark: import("@lit/react").ReactWebComponent<ImpktWordmark, {}>;
|
|
189
|
+
/** `<impakt-visually-hidden>` */
|
|
190
|
+
export declare const VisuallyHidden: import("@lit/react").ReactWebComponent<ImpaktVisuallyHidden, {}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*
|
|
6
6
|
* React 18 sets everything it does not recognise as an HTML *attribute*, which
|
|
7
7
|
* means a prop holding an array or an object arrives at a custom element as
|
|
8
|
-
* the string `[object Object]`. `
|
|
8
|
+
* the string `[object Object]`. `impakt-radio-group`'s options are an array, so
|
|
9
9
|
* without this the component that most needs structured data is the one that
|
|
10
10
|
* cannot receive it. React 19 fixed that, and the wrapper stays regardless for
|
|
11
|
-
* the second reason: custom events. `@lit/react` maps `
|
|
11
|
+
* the second reason: custom events. `@lit/react` maps `impakt-change` onto an
|
|
12
12
|
* `onChange` prop with a type, rather than leaving every consumer to reach for
|
|
13
13
|
* a ref and `addEventListener`.
|
|
14
14
|
*
|
|
@@ -18,17 +18,21 @@
|
|
|
18
18
|
* Custom Elements Manifest that `@atomic-ui/ui` builds from its own source, so a
|
|
19
19
|
* wrapper cannot drift from its component. The same script writes the JSX types
|
|
20
20
|
* in `./jsx`, which this module brings in, so a React 19 app can also write the
|
|
21
|
-
* tags themselves, such as `<
|
|
21
|
+
* tags themselves, such as `<impakt-table columns={columns}>`, with types.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* The blocks Strata builds sites from are in `@atomic-ui/strata`, and their
|
|
24
|
+
* wrappers are in this package's `./strata` entry, generated the same way from
|
|
25
|
+
* that package's manifest.
|
|
26
|
+
*
|
|
27
|
+
* Each wrapper is the tag's name without `impakt-`, so `impakt-text-input` is
|
|
28
|
+
* `TextInput`. Each `impakt-` event is a prop named `on` and the rest of the
|
|
29
|
+
* event's name, so `impakt-change` is `onChange` and `impakt-sort` is `onSort`.
|
|
26
30
|
*/
|
|
27
31
|
import './jsx';
|
|
28
32
|
export * from './components';
|
|
29
|
-
export type {
|
|
33
|
+
export type { ImpaktElementProps, ImpaktIntrinsicElements } from './jsx';
|
|
30
34
|
/** What a control reports when its value changes. */
|
|
31
|
-
export type
|
|
35
|
+
export type ImpaktChangeEvent = CustomEvent<{
|
|
32
36
|
value: string;
|
|
33
37
|
}>;
|
|
34
|
-
export type { RadioOption, SelectOption, CheckboxOption, AlertTone, HelpKind, TableColumn, SortDirection, TabItem, SummaryRow, TaskItem, ErrorItem, MenuItem,
|
|
38
|
+
export type { RadioOption, SelectOption, CheckboxOption, AlertTone, HelpKind, TableColumn, SortDirection, TabItem, SummaryRow, TaskItem, ErrorItem, MenuItem, ProgressStep, AccordionItem, AvatarItem, NavLink, Tone, } from '@atomic-ui/ui';
|