@atomic-ui/ui-react 0.14.0 → 0.15.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 +8 -9
- package/dist/blocks-components.d.ts +2 -88
- package/dist/blocks-jsx.d.ts +4 -59
- package/dist/blocks.d.ts +2 -2
- package/dist/blocks.js +0 -235
- package/dist/blocks.js.map +1 -1
- package/dist/components.d.ts +1 -83
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -203
- package/dist/index.js.map +1 -1
- package/dist/jsx.d.ts +1 -58
- package/package.json +4 -4
package/dist/jsx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import type { ImpaktAccordion,
|
|
2
|
+
import type { ImpaktAccordion, ImpaktAlert, ImpaktAppBar, ImpaktAppShell, ImpaktAvatar, ImpaktBadge, ImpaktBreadcrumbs, ImpaktButton, ImpaktCard, ImpaktCheckbox, ImpaktChecked, ImpaktChip, ImpaktChipGroup, ImpaktCodeDiff, ImpaktDateTile, ImpaktDialog, ImpaktEmptyState, ImpaktFileUpload, ImpaktFilterChip, ImpaktHeading, ImpaktIcon, ImpaktLanguageSwitch, ImpaktList, ImpaktMenu, ImpaktMeter, ImpaktMoneyInput, ImpaktNav, ImpaktProgress, ImpaktRadioGroup, ImpaktRedaction, ImpaktRow, ImpaktScoreBars, ImpaktSection, ImpaktSegmentedControl, ImpaktSelect, ImpaktSideNav, ImpaktSource, ImpaktStatTile, ImpaktStatus, ImpaktSwitch, ImpaktTabBar, ImpaktTable, ImpaktTabs, ImpaktText, ImpaktTextInput, ImpaktTextarea, ImpaktToolCard } from '@atomic-ui/ui';
|
|
3
3
|
import type { SortDirection } from '@atomic-ui/ui';
|
|
4
4
|
/**
|
|
5
5
|
* The props of a custom element written as a tag in JSX: the standard HTML props,
|
|
@@ -20,19 +20,10 @@ export type ImpaktElementProps<E, Props extends keyof E, Attributes extends stri
|
|
|
20
20
|
/** Every element, by tag. */
|
|
21
21
|
export interface ImpaktIntrinsicElements {
|
|
22
22
|
'impakt-accordion': ImpaktElementProps<ImpaktAccordion, 'items' | 'headingLevel' | 'open' | 'multiple' | 'look', 'heading-level', {}>;
|
|
23
|
-
'impakt-address-lookup': ImpaktElementProps<ImpaktAddressLookup, 'postcodeLabel' | 'findText' | 'chooseLabel' | 'manualText' | 'notFoundText' | 'lookupUrl' | 'addresses' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', '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
23
|
'impakt-alert': ImpaktElementProps<ImpaktAlert, 'tone' | 'heading' | 'toneLabel' | 'label' | 'noLabel', 'tone-label' | 'no-label', {}>;
|
|
32
24
|
'impakt-app-bar': ImpaktElementProps<ImpaktAppBar, 'tool' | 'home' | 'brand' | 'links' | 'pagesLabel' | 'switcher' | 'switcherLabel' | 'toolsHref' | 'organisation' | 'organisationItems' | 'organisationHref' | 'signedOut' | 'signInHref' | 'signInText', 'pages-label' | 'switcher-label' | 'tools-href' | 'organisation-items' | 'organisation-href' | 'signed-out' | 'sign-in-href' | 'sign-in-text', {}>;
|
|
33
25
|
'impakt-app-shell': ImpaktElementProps<ImpaktAppShell, 'skipText' | 'topBarLabel', 'skip-text' | 'top-bar-label', {}>;
|
|
34
26
|
'impakt-avatar': ImpaktElementProps<ImpaktAvatar, 'fullName' | 'src' | 'size', 'full-name', {}>;
|
|
35
|
-
'impakt-avatar-group': ImpaktElementProps<ImpaktAvatarGroup, 'items' | 'max' | 'size' | 'moreLabel', 'more-label', {}>;
|
|
36
27
|
'impakt-badge': ImpaktElementProps<ImpaktBadge, 'tone' | 'look' | 'size' | 'icon', never, {}>;
|
|
37
28
|
'impakt-breadcrumbs': ImpaktElementProps<ImpaktBreadcrumbs, 'look' | 'items' | 'label', never, {}>;
|
|
38
29
|
'impakt-button': ImpaktElementProps<ImpaktButton, 'hideOn' | 'variant' | 'spread' | 'centred' | 'type' | 'disabled' | 'busy' | 'busyLabel' | 'full' | 'fullOnPhone' | 'size' | 'iconBefore' | 'iconAfter' | 'href' | 'icon' | 'label', 'hide-on' | 'busy-label' | 'full-on-phone' | 'icon-before' | 'icon-after', {}>;
|
|
@@ -42,11 +33,6 @@ export interface ImpaktIntrinsicElements {
|
|
|
42
33
|
value: string;
|
|
43
34
|
}>;
|
|
44
35
|
}>;
|
|
45
|
-
'impakt-checkbox-group': ImpaktElementProps<ImpaktCheckboxGroup, 'options' | 'values' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'required-text', {
|
|
46
|
-
'onimpakt-change': CustomEvent<{
|
|
47
|
-
value: string;
|
|
48
|
-
}>;
|
|
49
|
-
}>;
|
|
50
36
|
'impakt-checked': ImpaktElementProps<ImpaktChecked, 'state' | 'label' | 'look' | 'size' | 'verifiedText' | 'unverifiedText', 'verified-text' | 'unverified-text', {}>;
|
|
51
37
|
'impakt-chip': ImpaktElementProps<ImpaktChip, 'label' | 'meta' | 'icon' | 'tone' | 'look' | 'size' | 'hideOn', 'hide-on', {}>;
|
|
52
38
|
'impakt-chip-group': ImpaktElementProps<ImpaktChipGroup, 'options' | 'values' | 'multiple' | 'look' | 'missingText' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText', 'missing-text' | 'required-text', {
|
|
@@ -55,23 +41,11 @@ export interface ImpaktIntrinsicElements {
|
|
|
55
41
|
}>;
|
|
56
42
|
}>;
|
|
57
43
|
'impakt-code-diff': ImpaktElementProps<ImpaktCodeDiff, 'removed' | 'added' | 'lines' | 'label' | 'removedText' | 'addedText', 'removed-text' | 'added-text', {}>;
|
|
58
|
-
'impakt-date-input': ImpaktElementProps<ImpaktDateInput, 'day' | 'month' | 'year' | 'autocompleteSection' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'autocomplete-section' | 'required-text', {
|
|
59
|
-
'onimpakt-change': CustomEvent<{
|
|
60
|
-
value: string;
|
|
61
|
-
}>;
|
|
62
|
-
}>;
|
|
63
44
|
'impakt-date-tile': ImpaktElementProps<ImpaktDateTile, 'date' | 'tone', never, {}>;
|
|
64
45
|
'impakt-dialog': ImpaktElementProps<ImpaktDialog, 'open' | 'heading' | 'closeLabel' | 'dismissible' | 'phoneFullScreen' | 'size' | 'eyebrow', 'close-label' | 'phone-full-screen', {
|
|
65
46
|
'onimpakt-close': CustomEvent<null>;
|
|
66
47
|
}>;
|
|
67
|
-
'impakt-divider': ImpaktElementProps<ImpaktDivider, 'spacing' | 'tone', never, {}>;
|
|
68
|
-
'impakt-document-link': ImpaktElementProps<ImpaktDocumentLink, 'href' | 'label' | 'fileType' | 'byteSize', 'file-type' | 'byte-size', {}>;
|
|
69
|
-
'impakt-drawer': ImpaktElementProps<ImpaktDrawer, 'open' | 'heading' | 'side' | 'closeLabel', 'close-label', {
|
|
70
|
-
'onimpakt-close': CustomEvent<null>;
|
|
71
|
-
}>;
|
|
72
48
|
'impakt-empty-state': ImpaktElementProps<ImpaktEmptyState, 'icon' | 'heading' | 'lead' | 'framed' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
73
|
-
'impakt-error-summary': ImpaktElementProps<ImpaktErrorSummary, 'heading' | 'items' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
74
|
-
'impakt-fieldset': ImpaktElementProps<ImpaktFieldset, 'legend' | 'description' | 'error' | 'size', never, {}>;
|
|
75
49
|
'impakt-file-upload': ImpaktElementProps<ImpaktFileUpload, 'accept' | 'manyFiles' | 'maxSizeMb' | 'chooseText' | 'dropText' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'many-files' | 'max-size-mb' | 'choose-text' | 'drop-text' | 'required-text', {
|
|
76
50
|
'onimpakt-files': CustomEvent<{
|
|
77
51
|
files: File[];
|
|
@@ -85,15 +59,10 @@ export interface ImpaktIntrinsicElements {
|
|
|
85
59
|
pressed: boolean;
|
|
86
60
|
}>;
|
|
87
61
|
}>;
|
|
88
|
-
'impakt-grid': ImpaktElementProps<ImpaktGrid, 'columns' | 'widths' | 'gap' | 'stackOn' | 'align' | 'spaceAbove' | 'spaceBelow', 'stack-on' | 'space-above' | 'space-below', {}>;
|
|
89
62
|
'impakt-heading': ImpaktElementProps<ImpaktHeading, 'level' | 'size' | 'eyebrow' | 'align' | 'screenReaderOnly', 'screen-reader-only', {}>;
|
|
90
|
-
'impakt-help': ImpaktElementProps<ImpaktHelp, 'mechanismId' | 'kind' | 'href' | 'label' | 'detail', 'mechanism-id', {}>;
|
|
91
63
|
'impakt-icon': ImpaktElementProps<ImpaktIcon, 'name' | 'label' | 'size' | 'tone', never, {}>;
|
|
92
|
-
'impakt-image': ImpaktElementProps<ImpaktImage, 'hideOn' | 'src' | 'alt' | 'decorative' | 'width' | 'height' | 'focalX' | 'focalY' | 'loading' | 'ratio' | 'rounded', 'hide-on' | 'focal-x' | 'focal-y', {}>;
|
|
93
64
|
'impakt-language-switch': ImpaktElementProps<ImpaktLanguageSwitch, 'items' | 'current' | 'label', never, {}>;
|
|
94
|
-
'impakt-link': ImpaktElementProps<ImpaktLink, 'href' | 'external' | 'externalText' | 'variant' | 'icon', 'external-text', {}>;
|
|
95
65
|
'impakt-list': ImpaktElementProps<ImpaktList, 'items' | 'look' | 'size' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
96
|
-
'impakt-logo': ImpaktElementProps<ImpaktLogo, 'src' | 'srcDark' | 'alt' | 'onDark' | 'height', 'src-dark' | 'on-dark', {}>;
|
|
97
66
|
'impakt-menu': ImpaktElementProps<ImpaktMenu, 'label' | 'icon' | 'triggerLook' | 'items' | 'edge' | 'open', 'trigger-look', {
|
|
98
67
|
'onimpakt-select': CustomEvent<{
|
|
99
68
|
value: string;
|
|
@@ -106,24 +75,12 @@ export interface ImpaktIntrinsicElements {
|
|
|
106
75
|
}>;
|
|
107
76
|
}>;
|
|
108
77
|
'impakt-nav': ImpaktElementProps<ImpaktNav, 'links' | 'label' | 'menuText' | 'menuLook' | 'size' | 'align' | 'fold' | 'actionText' | 'actionHref' | 'look' | 'current', 'menu-text' | 'menu-look' | 'action-text' | 'action-href', {}>;
|
|
109
|
-
'impakt-page': ImpaktElementProps<ImpaktPage, 'width' | 'stickyHeader' | 'skipText' | 'noHeader' | 'noFooter', 'sticky-header' | 'skip-text' | 'no-header' | 'no-footer', {}>;
|
|
110
|
-
'impakt-pagination': ImpaktElementProps<ImpaktPagination, 'page' | 'pages' | 'hrefPattern' | 'label' | 'previousText' | 'nextText', 'href-pattern' | 'previous-text' | 'next-text', {
|
|
111
|
-
'onimpakt-page': CustomEvent<{
|
|
112
|
-
page: number;
|
|
113
|
-
}>;
|
|
114
|
-
}>;
|
|
115
|
-
'impakt-price': ImpaktElementProps<ImpaktPrice, 'amount' | 'currency' | 'locale' | 'prefix' | 'period' | 'size' | 'pending', never, {}>;
|
|
116
78
|
'impakt-progress': ImpaktElementProps<ImpaktProgress, 'steps' | 'current' | 'label' | 'look' | 'doneText' | 'hideLabels', 'done-text' | 'hide-labels', {}>;
|
|
117
79
|
'impakt-radio-group': ImpaktElementProps<ImpaktRadioGroup, 'options' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'required-text', {
|
|
118
80
|
'onimpakt-change': CustomEvent<{
|
|
119
81
|
value: string;
|
|
120
82
|
}>;
|
|
121
83
|
}>;
|
|
122
|
-
'impakt-range-input': ImpaktElementProps<ImpaktRangeInput, 'lowest' | 'highest' | 'step' | 'currency' | 'unit' | 'label' | 'value' | 'name' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'required-text', {
|
|
123
|
-
'onimpakt-change': CustomEvent<{
|
|
124
|
-
value: string;
|
|
125
|
-
}>;
|
|
126
|
-
}>;
|
|
127
84
|
'impakt-redaction': ImpaktElementProps<ImpaktRedaction, 'label' | 'look' | 'redactedText', 'redacted-text', {}>;
|
|
128
85
|
'impakt-row': ImpaktElementProps<ImpaktRow, 'heading' | 'meta' | 'href' | 'divided' | 'muted' | 'selected', never, {}>;
|
|
129
86
|
'impakt-score-bars': ImpaktElementProps<ImpaktScoreBars, 'label' | 'items' | 'max', never, {}>;
|
|
@@ -144,22 +101,14 @@ export interface ImpaktIntrinsicElements {
|
|
|
144
101
|
id: string;
|
|
145
102
|
}>;
|
|
146
103
|
}>;
|
|
147
|
-
'impakt-slot-picker': ImpaktElementProps<ImpaktSlotPicker, 'days' | 'dayLabel' | 'timeLabel' | 'emptyText' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'day-label' | 'time-label' | 'empty-text' | 'required-text', {
|
|
148
|
-
'onimpakt-change': CustomEvent<{
|
|
149
|
-
value: string;
|
|
150
|
-
}>;
|
|
151
|
-
}>;
|
|
152
104
|
'impakt-source': ImpaktElementProps<ImpaktSource, 'label' | 'description' | 'href' | 'kind' | 'look', never, {
|
|
153
105
|
'onimpakt-source': CustomEvent<{
|
|
154
106
|
label: string;
|
|
155
107
|
description: string;
|
|
156
108
|
}>;
|
|
157
109
|
}>;
|
|
158
|
-
'impakt-spacer': ImpaktElementProps<ImpaktSpacer, 'size', never, {}>;
|
|
159
|
-
'impakt-stack': ImpaktElementProps<ImpaktStack, 'gap' | 'align' | 'direction' | 'justify' | 'spaceAbove' | 'spaceBelow', 'space-above' | 'space-below', {}>;
|
|
160
110
|
'impakt-stat-tile': ImpaktElementProps<ImpaktStatTile, 'label' | 'value' | 'caption' | 'href' | 'tone' | 'size' | 'status' | 'statusTone', 'status-tone', {}>;
|
|
161
111
|
'impakt-status': ImpaktElementProps<ImpaktStatus, 'tone' | 'label' | 'size' | 'live', never, {}>;
|
|
162
|
-
'impakt-summary-list': ImpaktElementProps<ImpaktSummaryList, 'rows' | 'changeText', 'change-text', {}>;
|
|
163
112
|
'impakt-switch': ImpaktElementProps<ImpaktSwitch, 'checked' | 'hideLabel' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'hide-label' | 'required-text', {
|
|
164
113
|
'onimpakt-change': CustomEvent<{
|
|
165
114
|
value: string;
|
|
@@ -190,7 +139,6 @@ export interface ImpaktIntrinsicElements {
|
|
|
190
139
|
id: string;
|
|
191
140
|
}>;
|
|
192
141
|
}>;
|
|
193
|
-
'impakt-task-list': ImpaktElementProps<ImpaktTaskList, 'heading' | 'items' | 'headingLevel' | 'spaceAbove' | 'spaceBelow', 'heading-level' | 'space-above' | 'space-below', {}>;
|
|
194
142
|
'impakt-text': ImpaktElementProps<ImpaktText, 'size' | 'tone' | 'align' | 'look', never, {}>;
|
|
195
143
|
'impakt-text-input': ImpaktElementProps<ImpaktTextInput, 'type' | 'hideLabel' | 'placeholder' | 'autocomplete' | 'inputmode' | 'maxlength' | 'width' | 'label' | 'name' | 'value' | 'description' | 'error' | 'required' | 'disabled' | 'readonly' | 'requiredText' | 'look', 'hide-label' | 'required-text', {
|
|
196
144
|
'onimpakt-change': CustomEvent<{
|
|
@@ -202,12 +150,7 @@ export interface ImpaktIntrinsicElements {
|
|
|
202
150
|
value: string;
|
|
203
151
|
}>;
|
|
204
152
|
}>;
|
|
205
|
-
'impakt-toast': ImpaktElementProps<ImpaktToast, 'open' | 'message' | 'tone' | 'duration' | 'actionText' | 'closeLabel', 'action-text' | 'close-label', {
|
|
206
|
-
'onimpakt-close': CustomEvent<null>;
|
|
207
|
-
'onimpakt-action': CustomEvent<null>;
|
|
208
|
-
}>;
|
|
209
153
|
'impakt-tool-card': ImpaktElementProps<ImpaktToolCard, 'name' | 'description' | 'status' | 'statusTone' | 'note' | 'href' | 'actionLabel' | 'owned' | 'state' | 'headingLevel' | 'comingSoonText' | 'notOpenText', 'status-tone' | 'action-label' | 'heading-level' | 'coming-soon-text' | 'not-open-text', {}>;
|
|
210
|
-
'impakt-visually-hidden': ImpaktElementProps<ImpaktVisuallyHidden, never, never, {}>;
|
|
211
154
|
}
|
|
212
155
|
declare module 'react' {
|
|
213
156
|
namespace JSX {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomic-ui/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "React bindings for @atomic-ui/ui and @atomic-ui/blocks: a typed component for every element, typed events, and JSX types for the tags themselves.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@lit/react": "^1.0.8",
|
|
29
|
-
"@atomic-ui/ui": "^0.
|
|
29
|
+
"@atomic-ui/ui": "^0.15.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^18.3.0 || ^19.0.0",
|
|
33
|
-
"@atomic-ui/blocks": "^0.
|
|
33
|
+
"@atomic-ui/blocks": "^0.15.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/react": "^19.0.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
41
|
"typescript": "^5.5.0",
|
|
42
42
|
"vitest": "^2.0.0",
|
|
43
|
-
"@atomic-ui/blocks": "^0.
|
|
43
|
+
"@atomic-ui/blocks": "^0.15.0"
|
|
44
44
|
},
|
|
45
45
|
"files": [
|
|
46
46
|
"dist",
|