@atomic-ui/ui-react 0.1.7 → 0.3.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 CHANGED
@@ -1,13 +1,52 @@
1
1
  # @atomic-ui/ui-react
2
2
 
3
- React components for the `@atomic-ui/ui` custom elements. Each one has typed props and typed events, and sets properties on the element where React 18 would otherwise only set attributes.
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.
4
+
5
+ ```sh
6
+ pnpm add @atomic-ui/ui @atomic-ui/ui-react
7
+ ```
4
8
 
5
9
  ```tsx
6
- import '@atomic-ui/ui';
7
- import { Button, TextInput } from '@atomic-ui/ui-react';
10
+ import { Table, Pagination, TextInput, Tabs } from '@atomic-ui/ui-react';
8
11
 
9
- <TextInput label="Postcode" onChange={(e) => setPostcode(e.detail.value)} />
10
- <Button variant="primary">Continue</Button>
12
+ export function Cases({ rows, page, pages }: Props) {
13
+ return (
14
+ <>
15
+ <TextInput label="Search cases" type="search" onChange={(e) => setQuery(e.detail.value)} />
16
+ <Table
17
+ caption="Open cases"
18
+ columns={[{ key: 'ref', label: 'Reference', sortable: true }, { key: 'fee', label: 'Fee', numeric: true }]}
19
+ rows={rows}
20
+ stack
21
+ selectable
22
+ emptyText="No cases match your search."
23
+ onSort={(e) => sortBy(e.detail.key, e.detail.direction)}
24
+ onSelection={(e) => setSelected(e.detail.selected)}
25
+ />
26
+ <Pagination page={page} pages={pages} onPage={(e) => setPage(e.detail.page)} />
27
+ </>
28
+ );
29
+ }
11
30
  ```
12
31
 
13
- Import `@atomic-ui/ui` once, so the custom elements are defined before React renders them.
32
+ Importing this package defines the elements, so nothing else needs importing first.
33
+
34
+ ## Names
35
+
36
+ Every element has a component named after its tag without `impkt-`: `impkt-table` is `Table`, `impkt-text-input` is `TextInput` and `impkt-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: `impkt-change` is `onChange`, `impkt-sort` is `onSort` and `impkt-close` is `onClose`, and the handler receives the event with its typed `detail`. `Button` keeps `onClick`.
37
+
38
+ 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
+
40
+ ## Writing the tags in React 19
41
+
42
+ 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
+
44
+ ```tsx
45
+ <impkt-table caption="Open cases" columns={columns} rows={rows} sort-key="opened" onimpkt-sort={(e) => sortBy(e.detail)} />
46
+ ```
47
+
48
+ 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"`).
49
+
50
+ ## Next.js
51
+
52
+ The package starts with `'use client'`, so its components can be used from a server component's tree and render in the browser. The elements need the browser to draw, so a page shows their content once the client has loaded.
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-NSAHEL6V.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,294 @@
1
+ import { type EventName } from '@lit/react';
2
+ import { ImpktAccordion, ImpktAddressLookup, ImpktAffordabilityCalculator, ImpktAlert, ImpktAnnouncement, ImpktAvatar, ImpktAvatarGroup, ImpktBadge, ImpktBeforeAfter, ImpktBranchList, ImpktBranchTimeline, ImpktBreadcrumbs, ImpktButton, ImpktCard, ImpktCardGrid, ImpktCarousel, ImpktCheckList, ImpktCheckbox, ImpktCheckboxGroup, ImpktChip, ImpktContactBlock, ImpktCtaBanner, ImpktDateInput, ImpktDialog, ImpktDivider, ImpktDocumentLink, ImpktDrawer, ImpktEmptyState, ImpktErrorSummary, ImpktEstimator, ImpktFeatureList, ImpktFieldset, ImpktFileUpload, ImpktGallery, ImpktGrid, ImpktHeading, ImpktHelp, ImpktHero, ImpktIcon, ImpktImage, ImpktLink, ImpktList, ImpktLocationCard, ImpktLogo, ImpktLogoCloud, ImpktMediaSplit, ImpktMenu, ImpktMoneyInput, ImpktMortgageCalculator, ImpktNav, ImpktNewsletter, ImpktPage, ImpktPagination, ImpktPlanComparison, ImpktPrice, ImpktProgress, ImpktQuote, ImpktRadioGroup, ImpktRangeInput, ImpktRegulatoryNotice, ImpktReleaseCard, ImpktReleaseList, ImpktReviews, ImpktScene, ImpktScrubber, ImpktSearchBar, ImpktSection, ImpktSelect, ImpktSiteFooter, ImpktSiteHeader, ImpktSitePlan, ImpktSlotPicker, ImpktSpacer, ImpktStack, ImpktStampDutyCalculator, ImpktStat, ImpktSteps, ImpktStickyBar, ImpktSummaryList, ImpktTable, ImpktTabs, ImpktTaskList, ImpktText, ImpktTextInput, ImpktTextarea, ImpktToast, ImpktVideo, ImpktVisuallyHidden, ImpktWordmark } from '@atomic-ui/ui';
3
+ import type { EstimateResult, PlanItem, SitePlot, SortDirection } from '@atomic-ui/ui';
4
+ /** `<impkt-accordion>` */
5
+ export declare const Accordion: import("@lit/react").ReactWebComponent<ImpktAccordion, {}>;
6
+ /** `<impkt-address-lookup>` */
7
+ export declare const AddressLookup: import("@lit/react").ReactWebComponent<ImpktAddressLookup, {
8
+ onLookup: EventName<CustomEvent<{
9
+ postcode: string;
10
+ }>>;
11
+ onChange: EventName<CustomEvent<{
12
+ value: string;
13
+ }>>;
14
+ }>;
15
+ /** `<impkt-affordability-calculator>` */
16
+ export declare const AffordabilityCalculator: import("@lit/react").ReactWebComponent<ImpktAffordabilityCalculator, {}>;
17
+ /** `<impkt-alert>` */
18
+ export declare const Alert: import("@lit/react").ReactWebComponent<ImpktAlert, {}>;
19
+ /** `<impkt-announcement>` */
20
+ export declare const Announcement: import("@lit/react").ReactWebComponent<ImpktAnnouncement, {}>;
21
+ /** `<impkt-avatar>` */
22
+ export declare const Avatar: import("@lit/react").ReactWebComponent<ImpktAvatar, {}>;
23
+ /** `<impkt-avatar-group>` */
24
+ export declare const AvatarGroup: import("@lit/react").ReactWebComponent<ImpktAvatarGroup, {}>;
25
+ /** `<impkt-badge>` */
26
+ export declare const Badge: import("@lit/react").ReactWebComponent<ImpktBadge, {}>;
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, {
37
+ onClick: EventName<MouseEvent>;
38
+ }>;
39
+ /** `<impkt-card>` */
40
+ export declare const Card: import("@lit/react").ReactWebComponent<ImpktCard, {}>;
41
+ /** `<impkt-card-grid>` */
42
+ export declare const CardGrid: import("@lit/react").ReactWebComponent<ImpktCardGrid, {}>;
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, {
49
+ onChange: EventName<CustomEvent<{
50
+ value: string;
51
+ }>>;
52
+ }>;
53
+ /** `<impkt-checkbox-group>` */
54
+ export declare const CheckboxGroup: import("@lit/react").ReactWebComponent<ImpktCheckboxGroup, {
55
+ onChange: EventName<CustomEvent<{
56
+ value: string;
57
+ }>>;
58
+ }>;
59
+ /** `<impkt-chip>` */
60
+ export declare const Chip: import("@lit/react").ReactWebComponent<ImpktChip, {}>;
61
+ /** `<impkt-contact-block>` */
62
+ export declare const ContactBlock: import("@lit/react").ReactWebComponent<ImpktContactBlock, {
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, {
73
+ onChange: EventName<CustomEvent<{
74
+ value: string;
75
+ }>>;
76
+ }>;
77
+ /** `<impkt-dialog>` */
78
+ export declare const Dialog: import("@lit/react").ReactWebComponent<ImpktDialog, {
79
+ onClose: EventName<CustomEvent<null>>;
80
+ }>;
81
+ /** `<impkt-divider>` */
82
+ export declare const Divider: import("@lit/react").ReactWebComponent<ImpktDivider, {}>;
83
+ /** `<impkt-document-link>` */
84
+ export declare const DocumentLink: import("@lit/react").ReactWebComponent<ImpktDocumentLink, {}>;
85
+ /** `<impkt-drawer>` */
86
+ export declare const Drawer: import("@lit/react").ReactWebComponent<ImpktDrawer, {
87
+ onClose: EventName<CustomEvent<null>>;
88
+ }>;
89
+ /** `<impkt-empty-state>` */
90
+ export declare const EmptyState: import("@lit/react").ReactWebComponent<ImpktEmptyState, {}>;
91
+ /** `<impkt-error-summary>` */
92
+ export declare const ErrorSummary: import("@lit/react").ReactWebComponent<ImpktErrorSummary, {}>;
93
+ /** `<impkt-estimator>` */
94
+ export declare const Estimator: import("@lit/react").ReactWebComponent<ImpktEstimator, {
95
+ onEstimate: EventName<CustomEvent<EstimateResult>>;
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, {
103
+ onFiles: EventName<CustomEvent<{
104
+ files: File[];
105
+ }>>;
106
+ onChange: EventName<CustomEvent<{
107
+ value: string;
108
+ }>>;
109
+ }>;
110
+ /** `<impkt-gallery>` */
111
+ export declare const Gallery: import("@lit/react").ReactWebComponent<ImpktGallery, {}>;
112
+ /** `<impkt-grid>` */
113
+ export declare const Grid: import("@lit/react").ReactWebComponent<ImpktGrid, {}>;
114
+ /** `<impkt-heading>` */
115
+ export declare const Heading: import("@lit/react").ReactWebComponent<ImpktHeading, {}>;
116
+ /** `<impkt-help>` */
117
+ export declare const Help: import("@lit/react").ReactWebComponent<ImpktHelp, {}>;
118
+ /** `<impkt-hero>` */
119
+ export declare const Hero: import("@lit/react").ReactWebComponent<ImpktHero, {}>;
120
+ /** `<impkt-icon>` */
121
+ export declare const Icon: import("@lit/react").ReactWebComponent<ImpktIcon, {}>;
122
+ /** `<impkt-image>` */
123
+ export declare const Image: import("@lit/react").ReactWebComponent<ImpktImage, {}>;
124
+ /** `<impkt-link>` */
125
+ export declare const Link: import("@lit/react").ReactWebComponent<ImpktLink, {}>;
126
+ /** `<impkt-list>` */
127
+ export declare const List: import("@lit/react").ReactWebComponent<ImpktList, {}>;
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, {
138
+ onSelect: EventName<CustomEvent<{
139
+ value: string;
140
+ }>>;
141
+ }>;
142
+ /** `<impkt-money-input>` */
143
+ export declare const MoneyInput: import("@lit/react").ReactWebComponent<ImpktMoneyInput, {
144
+ onChange: EventName<CustomEvent<{
145
+ value: string;
146
+ }>>;
147
+ }>;
148
+ /** `<impkt-mortgage-calculator>` */
149
+ export declare const MortgageCalculator: import("@lit/react").ReactWebComponent<ImpktMortgageCalculator, {}>;
150
+ /** `<impkt-nav>` */
151
+ export declare const Nav: import("@lit/react").ReactWebComponent<ImpktNav, {}>;
152
+ /** `<impkt-newsletter>` */
153
+ export declare const Newsletter: import("@lit/react").ReactWebComponent<ImpktNewsletter, {
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, {
162
+ onPage: EventName<CustomEvent<{
163
+ page: number;
164
+ }>>;
165
+ }>;
166
+ /** `<impkt-plan-comparison>` */
167
+ export declare const PlanComparison: import("@lit/react").ReactWebComponent<ImpktPlanComparison, {
168
+ onSelect: EventName<CustomEvent<{
169
+ plan: PlanItem;
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, {
180
+ onChange: EventName<CustomEvent<{
181
+ value: string;
182
+ }>>;
183
+ }>;
184
+ /** `<impkt-range-input>` */
185
+ export declare const RangeInput: import("@lit/react").ReactWebComponent<ImpktRangeInput, {
186
+ onChange: EventName<CustomEvent<{
187
+ value: string;
188
+ }>>;
189
+ }>;
190
+ /** `<impkt-regulatory-notice>` */
191
+ export declare const RegulatoryNotice: import("@lit/react").ReactWebComponent<ImpktRegulatoryNotice, {}>;
192
+ /** `<impkt-release-card>` */
193
+ export declare const ReleaseCard: import("@lit/react").ReactWebComponent<ImpktReleaseCard, {}>;
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, {
216
+ onChange: EventName<CustomEvent<{
217
+ value: string;
218
+ }>>;
219
+ }>;
220
+ /** `<impkt-site-footer>` */
221
+ export declare const SiteFooter: import("@lit/react").ReactWebComponent<ImpktSiteFooter, {}>;
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, {
234
+ onChange: EventName<CustomEvent<{
235
+ value: string;
236
+ }>>;
237
+ }>;
238
+ /** `<impkt-spacer>` */
239
+ export declare const Spacer: import("@lit/react").ReactWebComponent<ImpktSpacer, {}>;
240
+ /** `<impkt-stack>` */
241
+ export declare const Stack: import("@lit/react").ReactWebComponent<ImpktStack, {}>;
242
+ /** `<impkt-stamp-duty-calculator>` */
243
+ export declare const StampDutyCalculator: import("@lit/react").ReactWebComponent<ImpktStampDutyCalculator, {}>;
244
+ /** `<impkt-stat>` */
245
+ export declare const Stat: import("@lit/react").ReactWebComponent<ImpktStat, {}>;
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, {
254
+ onSort: EventName<CustomEvent<{
255
+ key: string;
256
+ direction: SortDirection;
257
+ }>>;
258
+ onSelection: EventName<CustomEvent<{
259
+ selected: string[];
260
+ }>>;
261
+ }>;
262
+ /** `<impkt-tabs>` */
263
+ export declare const Tabs: import("@lit/react").ReactWebComponent<ImpktTabs, {
264
+ onChange: EventName<CustomEvent<{
265
+ value: string;
266
+ }>>;
267
+ }>;
268
+ /** `<impkt-task-list>` */
269
+ export declare const TaskList: import("@lit/react").ReactWebComponent<ImpktTaskList, {}>;
270
+ /** `<impkt-text>` */
271
+ export declare const Text: import("@lit/react").ReactWebComponent<ImpktText, {}>;
272
+ /** `<impkt-text-input>` */
273
+ export declare const TextInput: import("@lit/react").ReactWebComponent<ImpktTextInput, {
274
+ onChange: EventName<CustomEvent<{
275
+ value: string;
276
+ }>>;
277
+ }>;
278
+ /** `<impkt-textarea>` */
279
+ export declare const Textarea: import("@lit/react").ReactWebComponent<ImpktTextarea, {
280
+ onChange: EventName<CustomEvent<{
281
+ value: string;
282
+ }>>;
283
+ }>;
284
+ /** `<impkt-toast>` */
285
+ export declare const Toast: import("@lit/react").ReactWebComponent<ImpktToast, {
286
+ onClose: EventName<CustomEvent<null>>;
287
+ onAction: EventName<CustomEvent<null>>;
288
+ }>;
289
+ /** `<impkt-video>` */
290
+ export declare const Video: import("@lit/react").ReactWebComponent<ImpktVideo, {}>;
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, {}>;
package/dist/index.d.ts CHANGED
@@ -1,29 +1,34 @@
1
- import { type EventName } from '@lit/react';
2
- import { ImpktButton, ImpktTextInput, ImpktSelect, ImpktCheckbox, ImpktRadioGroup, ImpktAlert, ImpktStack, ImpktCard, ImpktHeading, ImpktText, ImpktGrid, ImpktHelp } from '@atomic-ui/ui';
1
+ /**
2
+ * React bindings for `@atomic-ui/ui`.
3
+ *
4
+ * ## Why a wrapper exists at all
5
+ *
6
+ * React 18 sets everything it does not recognise as an HTML *attribute*, which
7
+ * means a prop holding an array or an object arrives at a custom element as
8
+ * the string `[object Object]`. `impkt-radio-group`'s options are an array, so
9
+ * without this the component that most needs structured data is the one that
10
+ * cannot receive it. React 19 fixed that, and the wrapper stays regardless for
11
+ * the second reason: custom events. `@lit/react` maps `impkt-change` onto an
12
+ * `onChange` prop with a type, rather than leaving every consumer to reach for
13
+ * a ref and `addEventListener`.
14
+ *
15
+ * ## Generated from the manifest
16
+ *
17
+ * Every element has a wrapper, written by `scripts/generate.mjs` from the
18
+ * Custom Elements Manifest that `@atomic-ui/ui` builds from its own source, so a
19
+ * wrapper cannot drift from its component. The same script writes the JSX types
20
+ * in `./jsx`, which this module brings in, so a React 19 app can also write the
21
+ * tags themselves, such as `<impkt-table columns={columns}>`, with types.
22
+ *
23
+ * Each wrapper is the tag's name without `impkt-`, so `impkt-text-input` is
24
+ * `TextInput`. Each `impkt-` event is a prop named `on` and the rest of the
25
+ * event's name, so `impkt-change` is `onChange` and `impkt-sort` is `onSort`.
26
+ */
27
+ import './jsx';
28
+ export * from './components';
29
+ export type { ImpktElementProps, ImpktIntrinsicElements } from './jsx';
3
30
  /** What a control reports when its value changes. */
4
31
  export type ImpktChangeEvent = CustomEvent<{
5
32
  value: string;
6
33
  }>;
7
- export declare const Button: import("@lit/react").ReactWebComponent<ImpktButton, {
8
- onClick: EventName<MouseEvent>;
9
- }>;
10
- export declare const TextInput: import("@lit/react").ReactWebComponent<ImpktTextInput, {
11
- onChange: EventName<ImpktChangeEvent>;
12
- }>;
13
- export declare const Select: import("@lit/react").ReactWebComponent<ImpktSelect, {
14
- onChange: EventName<ImpktChangeEvent>;
15
- }>;
16
- export declare const Checkbox: import("@lit/react").ReactWebComponent<ImpktCheckbox, {
17
- onChange: EventName<ImpktChangeEvent>;
18
- }>;
19
- export declare const RadioGroup: import("@lit/react").ReactWebComponent<ImpktRadioGroup, {
20
- onChange: EventName<ImpktChangeEvent>;
21
- }>;
22
- export declare const Alert: import("@lit/react").ReactWebComponent<ImpktAlert, {}>;
23
- export declare const Stack: import("@lit/react").ReactWebComponent<ImpktStack, {}>;
24
- export declare const Card: import("@lit/react").ReactWebComponent<ImpktCard, {}>;
25
- export declare const Heading: import("@lit/react").ReactWebComponent<ImpktHeading, {}>;
26
- export declare const Text: import("@lit/react").ReactWebComponent<ImpktText, {}>;
27
- export type { RadioOption, SelectOption, AlertTone, HelpKind } from '@atomic-ui/ui';
28
- export declare const Grid: import("@lit/react").ReactWebComponent<ImpktGrid, {}>;
29
- export declare const Help: import("@lit/react").ReactWebComponent<ImpktHelp, {}>;
34
+ export type { RadioOption, SelectOption, CheckboxOption, AlertTone, HelpKind, TableColumn, SortDirection, TabItem, SummaryRow, TaskItem, ErrorItem, MenuItem, StepItem, ProgressStep, AccordionItem, AvatarItem, NavLink, CardItem, } from '@atomic-ui/ui';