@atomic-ui/ui 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/README.md +88 -105
- package/custom-elements.json +6370 -15469
- package/dist/base/FieldElement.d.ts +14 -3
- package/dist/base/{ImpktElement.d.ts → ImpaktElement.d.ts} +2 -2
- package/dist/base/scroll-lock.d.ts +2 -0
- package/dist/base/styles.d.ts +31 -5
- package/dist/base/tokens.d.ts +1 -1
- package/dist/base/tone.d.ts +20 -0
- package/dist/chunk-2YRTFWW2.js +26 -0
- package/dist/chunk-2YRTFWW2.js.map +1 -0
- package/dist/{chunk-7BSZPUE3.js → chunk-3EF4T242.js} +7 -7
- package/dist/chunk-3EF4T242.js.map +1 -0
- package/dist/{chunk-KFD4O7VA.js → chunk-5Y3HYRCU.js} +7 -7
- package/dist/chunk-5Y3HYRCU.js.map +1 -0
- package/dist/{chunk-7AJN2TIS.js → chunk-5ZQVL3V2.js} +29 -12
- package/dist/chunk-5ZQVL3V2.js.map +1 -0
- package/dist/{chunk-NCASAXQT.js → chunk-A7YBFS4H.js} +15 -15
- package/dist/chunk-A7YBFS4H.js.map +1 -0
- package/dist/{chunk-E2VBUWJ4.js → chunk-ACQ4KYPR.js} +9 -9
- package/dist/chunk-ACQ4KYPR.js.map +1 -0
- package/dist/{chunk-OMJMUFOW.js → chunk-DE3INTHZ.js} +6 -6
- package/dist/chunk-DE3INTHZ.js.map +1 -0
- package/dist/chunk-EJD6LT7E.js +161 -0
- package/dist/chunk-EJD6LT7E.js.map +1 -0
- package/dist/{chunk-XJXCTGDR.js → chunk-EJSX4WCD.js} +9 -9
- package/dist/chunk-EJSX4WCD.js.map +1 -0
- package/dist/chunk-FMSC7J7J.js +76 -0
- package/dist/chunk-FMSC7J7J.js.map +1 -0
- package/dist/{chunk-R67PDFKE.js → chunk-FWR6SEIA.js} +33 -33
- package/dist/chunk-FWR6SEIA.js.map +1 -0
- package/dist/{chunk-FFCIY7NM.js → chunk-GJPHQLLN.js} +8 -8
- package/dist/chunk-GJPHQLLN.js.map +1 -0
- package/dist/{chunk-OLLZFNO6.js → chunk-HNBG2POR.js} +7 -7
- package/dist/chunk-HNBG2POR.js.map +1 -0
- package/dist/{chunk-E3XJK7MY.js → chunk-HNZQ7LM4.js} +13 -11
- package/dist/chunk-HNZQ7LM4.js.map +1 -0
- package/dist/{chunk-3IQ73WNW.js → chunk-I54DOEZB.js} +9 -7
- package/dist/chunk-I54DOEZB.js.map +1 -0
- package/dist/{chunk-QB2KMV6S.js → chunk-PANH23MF.js} +12 -12
- package/dist/chunk-PANH23MF.js.map +1 -0
- package/dist/{chunk-UCHJCUYI.js → chunk-PYVUQNFQ.js} +39 -13
- package/dist/chunk-PYVUQNFQ.js.map +1 -0
- package/dist/{chunk-GQDUHZE3.js → chunk-Q54FX3SY.js} +8 -8
- package/dist/chunk-Q54FX3SY.js.map +1 -0
- package/dist/{chunk-WFKSOM6O.js → chunk-QBORJTS4.js} +68 -44
- package/dist/chunk-QBORJTS4.js.map +1 -0
- package/dist/{chunk-TGT7J4EG.js → chunk-RXX4CN5J.js} +7 -7
- package/dist/chunk-RXX4CN5J.js.map +1 -0
- package/dist/{chunk-XEJMFFIM.js → chunk-SV77SN6P.js} +8 -8
- package/dist/chunk-SV77SN6P.js.map +1 -0
- package/dist/chunk-TAZZLOUY.js +328 -0
- package/dist/chunk-TAZZLOUY.js.map +1 -0
- package/dist/{chunk-7OXTZJR4.js → chunk-TRZO5CHU.js} +7 -7
- package/dist/chunk-TRZO5CHU.js.map +1 -0
- package/dist/{chunk-EDSZI227.js → chunk-UPOTBKKK.js} +12 -9
- package/dist/chunk-UPOTBKKK.js.map +1 -0
- package/dist/{chunk-26O27BQS.js → chunk-WP5WJ4V5.js} +6 -6
- package/dist/chunk-WP5WJ4V5.js.map +1 -0
- package/dist/{chunk-YD6IZ2C5.js → chunk-WS5AUJ35.js} +7 -7
- package/dist/chunk-WS5AUJ35.js.map +1 -0
- package/dist/{chunk-HYPPG4NF.js → chunk-WWYYNR3Z.js} +93 -53
- package/dist/chunk-WWYYNR3Z.js.map +1 -0
- package/dist/{chunk-NKTMMJYD.js → chunk-XU2XODVH.js} +9 -8
- package/dist/chunk-XU2XODVH.js.map +1 -0
- package/dist/{chunk-D6C7XEY4.js → chunk-YR6T73GY.js} +24 -12
- package/dist/chunk-YR6T73GY.js.map +1 -0
- package/dist/{chunk-OB7WULFK.js → chunk-YYYQPKQ7.js} +24 -24
- package/dist/chunk-YYYQPKQ7.js.map +1 -0
- package/dist/{chunk-FJRHZA3C.js → chunk-Z45LY6BT.js} +9 -9
- package/dist/chunk-Z45LY6BT.js.map +1 -0
- package/dist/{chunk-6YYAOKNI.js → chunk-ZQBEFP2O.js} +7 -7
- package/dist/chunk-ZQBEFP2O.js.map +1 -0
- package/dist/chunk-ZS7RPXCT.js +47 -0
- package/dist/chunk-ZS7RPXCT.js.map +1 -0
- package/dist/components/accordion.d.ts +3 -3
- package/dist/components/accordion.js +4 -4
- package/dist/components/alert.d.ts +3 -3
- package/dist/components/alert.js +4 -4
- package/dist/components/app-ui.d.ts +47 -31
- package/dist/components/app-ui.js +21 -20
- package/dist/components/badge.d.ts +37 -0
- package/dist/components/badge.js +9 -0
- package/dist/components/blocks.d.ts +37 -74
- package/dist/components/blocks.js +10 -13
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.js +5 -5
- package/dist/components/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group.js +5 -5
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +5 -5
- package/dist/components/chip.d.ts +58 -0
- package/dist/components/chip.js +8 -0
- package/dist/components/date-input.d.ts +2 -2
- package/dist/components/date-input.js +5 -5
- package/dist/components/dialog.d.ts +18 -3
- package/dist/components/dialog.js +5 -4
- package/dist/components/fieldset.d.ts +3 -3
- package/dist/components/fieldset.js +4 -4
- package/dist/components/grid.d.ts +3 -3
- package/dist/components/grid.js +4 -4
- package/dist/components/help.d.ts +3 -3
- package/dist/components/help.js +4 -4
- package/dist/components/icon.d.ts +3 -3
- package/dist/components/icon.js +4 -4
- package/dist/components/journey.d.ts +30 -16
- package/dist/components/journey.js +15 -15
- package/dist/components/layout.d.ts +9 -9
- package/dist/components/layout.js +10 -10
- package/dist/components/link.d.ts +3 -3
- package/dist/components/link.js +5 -5
- package/dist/components/list.d.ts +3 -3
- package/dist/components/list.js +4 -4
- package/dist/components/media.d.ts +8 -8
- package/dist/components/media.js +8 -8
- package/dist/components/navigation.d.ts +5 -5
- package/dist/components/navigation.js +7 -7
- package/dist/components/page.d.ts +5 -5
- package/dist/components/page.js +6 -6
- package/dist/components/price.d.ts +3 -3
- package/dist/components/price.js +4 -4
- package/dist/components/progress.d.ts +3 -3
- package/dist/components/progress.js +4 -4
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +5 -5
- package/dist/components/select.d.ts +2 -2
- package/dist/components/select.js +5 -5
- package/dist/components/summary-list.d.ts +3 -3
- package/dist/components/summary-list.js +4 -4
- package/dist/components/table.d.ts +97 -5
- package/dist/components/table.js +6 -4
- package/dist/components/text-input.d.ts +2 -2
- package/dist/components/text-input.js +5 -5
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +5 -5
- package/dist/index.d.ts +47 -40
- package/dist/index.js +206 -269
- package/dist/standalone/atomic-ui.js +1928 -0
- package/dist/standalone/atomic-ui.js.map +7 -0
- package/dist/standalone/index.html +173 -0
- package/package.json +19 -7
- package/scripts/copy-to-product.mjs +52 -0
- package/specimen/index.html +173 -0
- package/dist/chunk-26O27BQS.js.map +0 -1
- package/dist/chunk-2CFVV2NZ.js +0 -494
- package/dist/chunk-2CFVV2NZ.js.map +0 -1
- package/dist/chunk-3IQ73WNW.js.map +0 -1
- package/dist/chunk-4X723QBD.js +0 -361
- package/dist/chunk-4X723QBD.js.map +0 -1
- package/dist/chunk-6YYAOKNI.js.map +0 -1
- package/dist/chunk-7AJN2TIS.js.map +0 -1
- package/dist/chunk-7BSZPUE3.js.map +0 -1
- package/dist/chunk-7OXTZJR4.js.map +0 -1
- package/dist/chunk-7XEPNEVQ.js +0 -264
- package/dist/chunk-7XEPNEVQ.js.map +0 -1
- package/dist/chunk-D6C7XEY4.js.map +0 -1
- package/dist/chunk-E2VBUWJ4.js.map +0 -1
- package/dist/chunk-E3XJK7MY.js.map +0 -1
- package/dist/chunk-EDSZI227.js.map +0 -1
- package/dist/chunk-FFCIY7NM.js.map +0 -1
- package/dist/chunk-FJRHZA3C.js.map +0 -1
- package/dist/chunk-GQDUHZE3.js.map +0 -1
- package/dist/chunk-HYPPG4NF.js.map +0 -1
- package/dist/chunk-J4JULXUG.js +0 -249
- package/dist/chunk-J4JULXUG.js.map +0 -1
- package/dist/chunk-KFD4O7VA.js.map +0 -1
- package/dist/chunk-MVEFM5QI.js +0 -195
- package/dist/chunk-MVEFM5QI.js.map +0 -1
- package/dist/chunk-NCASAXQT.js.map +0 -1
- package/dist/chunk-NKTMMJYD.js.map +0 -1
- package/dist/chunk-OB7WULFK.js.map +0 -1
- package/dist/chunk-OHDPGIJ3.js +0 -428
- package/dist/chunk-OHDPGIJ3.js.map +0 -1
- package/dist/chunk-OLLZFNO6.js.map +0 -1
- package/dist/chunk-OMJMUFOW.js.map +0 -1
- package/dist/chunk-QB2KMV6S.js.map +0 -1
- package/dist/chunk-R67PDFKE.js.map +0 -1
- package/dist/chunk-RZSZQMSE.js +0 -236
- package/dist/chunk-RZSZQMSE.js.map +0 -1
- package/dist/chunk-TGT7J4EG.js.map +0 -1
- package/dist/chunk-UCHJCUYI.js.map +0 -1
- package/dist/chunk-UHLRXI6J.js +0 -453
- package/dist/chunk-UHLRXI6J.js.map +0 -1
- package/dist/chunk-UNVL3CNM.js +0 -725
- package/dist/chunk-UNVL3CNM.js.map +0 -1
- package/dist/chunk-WDDWWCHN.js +0 -104
- package/dist/chunk-WDDWWCHN.js.map +0 -1
- package/dist/chunk-WFKSOM6O.js.map +0 -1
- package/dist/chunk-XEJMFFIM.js.map +0 -1
- package/dist/chunk-XJXCTGDR.js.map +0 -1
- package/dist/chunk-YD6IZ2C5.js.map +0 -1
- package/dist/chunk-YK5QI57J.js +0 -396
- package/dist/chunk-YK5QI57J.js.map +0 -1
- package/dist/components/changelog.d.ts +0 -386
- package/dist/components/changelog.js +0 -25
- package/dist/components/estimator.d.ts +0 -246
- package/dist/components/estimator.js +0 -16
- package/dist/components/marketing.d.ts +0 -370
- package/dist/components/marketing.js +0 -21
- package/dist/components/marketing.js.map +0 -1
- package/dist/components/organisms.d.ts +0 -559
- package/dist/components/organisms.js +0 -25
- package/dist/components/organisms.js.map +0 -1
- package/dist/components/property.d.ts +0 -389
- package/dist/components/property.js +0 -20
- package/dist/components/property.js.map +0 -1
- package/dist/components/scene.d.ts +0 -138
- package/dist/components/scene.js +0 -8
- package/dist/components/scene.js.map +0 -1
- package/dist/components/scrubber.d.ts +0 -86
- package/dist/components/scrubber.js +0 -8
- package/dist/components/scrubber.js.map +0 -1
- package/dist/components/selling.d.ts +0 -407
- package/dist/components/selling.js +0 -25
- package/dist/components/selling.js.map +0 -1
- package/dist/components/site.d.ts +0 -283
- package/dist/components/site.js +0 -20
- package/dist/components/site.js.map +0 -1
- /package/dist/components/{changelog.js.map → badge.js.map} +0 -0
- /package/dist/components/{estimator.js.map → chip.js.map} +0 -0
package/dist/components/media.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
2
|
+
ImpaktDocumentLink,
|
|
3
|
+
ImpaktImage,
|
|
4
|
+
ImpaktLogo
|
|
5
|
+
} from "../chunk-A7YBFS4H.js";
|
|
6
|
+
import "../chunk-YR6T73GY.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ImpaktDocumentLink,
|
|
9
|
+
ImpaktImage,
|
|
10
|
+
ImpaktLogo
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=media.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
/** One link in a navigation or a trail. */
|
|
4
4
|
export interface NavLink {
|
|
5
5
|
label: string;
|
|
@@ -20,7 +20,7 @@ export interface NavLink {
|
|
|
20
20
|
* @category action
|
|
21
21
|
* @icon menu
|
|
22
22
|
*/
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class ImpaktNav extends ImpaktElement {
|
|
24
24
|
static properties: {
|
|
25
25
|
links: {
|
|
26
26
|
type: ArrayConstructor;
|
|
@@ -89,7 +89,7 @@ export declare class ImpktNav extends ImpktElement {
|
|
|
89
89
|
* @category action
|
|
90
90
|
* @icon breadcrumbs
|
|
91
91
|
*/
|
|
92
|
-
export declare class
|
|
92
|
+
export declare class ImpaktBreadcrumbs extends ImpaktElement {
|
|
93
93
|
static properties: {
|
|
94
94
|
items: {
|
|
95
95
|
type: ArrayConstructor;
|
|
@@ -108,7 +108,7 @@ export declare class ImpktBreadcrumbs extends ImpktElement {
|
|
|
108
108
|
}
|
|
109
109
|
declare global {
|
|
110
110
|
interface HTMLElementTagNameMap {
|
|
111
|
-
'
|
|
112
|
-
'
|
|
111
|
+
'impakt-nav': ImpaktNav;
|
|
112
|
+
'impakt-breadcrumbs': ImpaktBreadcrumbs;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
2
|
+
ImpaktBreadcrumbs,
|
|
3
|
+
ImpaktNav
|
|
4
|
+
} from "../chunk-PANH23MF.js";
|
|
5
|
+
import "../chunk-5Y3HYRCU.js";
|
|
6
|
+
import "../chunk-YR6T73GY.js";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ImpaktBreadcrumbs,
|
|
9
|
+
ImpaktNav
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=navigation.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
/**
|
|
4
4
|
* The frame every page sits in: a header, the page's own content, and a
|
|
5
5
|
* footer, each kept to the brand's page width with the brand's side margins.
|
|
@@ -19,7 +19,7 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
19
19
|
* @slot - The page's own content.
|
|
20
20
|
* @slot footer - The site's footer.
|
|
21
21
|
*/
|
|
22
|
-
export declare class
|
|
22
|
+
export declare class ImpaktPage extends ImpaktElement {
|
|
23
23
|
static properties: {
|
|
24
24
|
width: {
|
|
25
25
|
type: StringConstructor;
|
|
@@ -74,7 +74,7 @@ export declare class ImpktPage extends ImpktElement {
|
|
|
74
74
|
* @icon section
|
|
75
75
|
* @slot - The section's content.
|
|
76
76
|
*/
|
|
77
|
-
export declare class
|
|
77
|
+
export declare class ImpaktSection extends ImpaktElement {
|
|
78
78
|
static properties: {
|
|
79
79
|
tone: {
|
|
80
80
|
type: StringConstructor;
|
|
@@ -124,7 +124,7 @@ export declare class ImpktSection extends ImpktElement {
|
|
|
124
124
|
}
|
|
125
125
|
declare global {
|
|
126
126
|
interface HTMLElementTagNameMap {
|
|
127
|
-
'
|
|
128
|
-
'
|
|
127
|
+
'impakt-page': ImpaktPage;
|
|
128
|
+
'impakt-section': ImpaktSection;
|
|
129
129
|
}
|
|
130
130
|
}
|
package/dist/components/page.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
2
|
+
ImpaktPage,
|
|
3
|
+
ImpaktSection
|
|
4
|
+
} from "../chunk-FWR6SEIA.js";
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
ImpaktPage,
|
|
8
|
+
ImpaktSection
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=page.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
/**
|
|
4
4
|
* A money amount.
|
|
5
5
|
*
|
|
@@ -24,7 +24,7 @@ import { ImpktElement } from '../base/ImpktElement';
|
|
|
24
24
|
* @category content
|
|
25
25
|
* @icon price
|
|
26
26
|
*/
|
|
27
|
-
export declare class
|
|
27
|
+
export declare class ImpaktPrice extends ImpaktElement {
|
|
28
28
|
static properties: {
|
|
29
29
|
amount: {
|
|
30
30
|
type: NumberConstructor;
|
|
@@ -67,6 +67,6 @@ export declare class ImpktPrice extends ImpktElement {
|
|
|
67
67
|
}
|
|
68
68
|
declare global {
|
|
69
69
|
interface HTMLElementTagNameMap {
|
|
70
|
-
'
|
|
70
|
+
'impakt-price': ImpaktPrice;
|
|
71
71
|
}
|
|
72
72
|
}
|
package/dist/components/price.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
2
|
+
ImpaktPrice
|
|
3
|
+
} from "../chunk-HNBG2POR.js";
|
|
4
4
|
import "../chunk-3IGNZTJU.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ImpaktPrice
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=price.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
export interface ProgressStep {
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
@@ -23,7 +23,7 @@ export interface ProgressStep {
|
|
|
23
23
|
* @category content
|
|
24
24
|
* @icon progress
|
|
25
25
|
*/
|
|
26
|
-
export declare class
|
|
26
|
+
export declare class ImpaktProgress extends ImpaktElement {
|
|
27
27
|
static properties: {
|
|
28
28
|
steps: {
|
|
29
29
|
type: ArrayConstructor;
|
|
@@ -45,6 +45,6 @@ export declare class ImpktProgress extends ImpktElement {
|
|
|
45
45
|
}
|
|
46
46
|
declare global {
|
|
47
47
|
interface HTMLElementTagNameMap {
|
|
48
|
-
'
|
|
48
|
+
'impakt-progress': ImpaktProgress;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
2
|
+
ImpaktProgress
|
|
3
|
+
} from "../chunk-SV77SN6P.js";
|
|
4
|
+
import "../chunk-YR6T73GY.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ImpaktProgress
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=progress.js.map
|
|
@@ -26,7 +26,7 @@ export interface RadioOption {
|
|
|
26
26
|
* @category form
|
|
27
27
|
* @icon radio
|
|
28
28
|
*/
|
|
29
|
-
export declare class
|
|
29
|
+
export declare class ImpaktRadioGroup extends FieldElement {
|
|
30
30
|
static properties: {
|
|
31
31
|
options: {
|
|
32
32
|
type: ArrayConstructor;
|
|
@@ -77,6 +77,6 @@ export declare class ImpktRadioGroup extends FieldElement {
|
|
|
77
77
|
}
|
|
78
78
|
declare global {
|
|
79
79
|
interface HTMLElementTagNameMap {
|
|
80
|
-
'
|
|
80
|
+
'impakt-radio-group': ImpaktRadioGroup;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
2
|
+
ImpaktRadioGroup
|
|
3
|
+
} from "../chunk-DE3INTHZ.js";
|
|
4
|
+
import "../chunk-5ZQVL3V2.js";
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ImpaktRadioGroup
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=radio-group.js.map
|
|
@@ -20,7 +20,7 @@ export interface SelectOption {
|
|
|
20
20
|
* @category form
|
|
21
21
|
* @icon select
|
|
22
22
|
*/
|
|
23
|
-
export declare class
|
|
23
|
+
export declare class ImpaktSelect extends FieldElement {
|
|
24
24
|
static properties: {
|
|
25
25
|
width: {
|
|
26
26
|
type: StringConstructor;
|
|
@@ -75,6 +75,6 @@ export declare class ImpktSelect extends FieldElement {
|
|
|
75
75
|
}
|
|
76
76
|
declare global {
|
|
77
77
|
interface HTMLElementTagNameMap {
|
|
78
|
-
'
|
|
78
|
+
'impakt-select': ImpaktSelect;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
2
|
+
ImpaktSelect
|
|
3
|
+
} from "../chunk-EJSX4WCD.js";
|
|
4
|
+
import "../chunk-5ZQVL3V2.js";
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ImpaktSelect
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=select.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
export interface SummaryRow {
|
|
4
4
|
key: string;
|
|
5
5
|
value: string;
|
|
@@ -24,7 +24,7 @@ export interface SummaryRow {
|
|
|
24
24
|
* @category content
|
|
25
25
|
* @icon list
|
|
26
26
|
*/
|
|
27
|
-
export declare class
|
|
27
|
+
export declare class ImpaktSummaryList extends ImpaktElement {
|
|
28
28
|
static properties: {
|
|
29
29
|
rows: {
|
|
30
30
|
type: ArrayConstructor;
|
|
@@ -42,6 +42,6 @@ export declare class ImpktSummaryList extends ImpktElement {
|
|
|
42
42
|
}
|
|
43
43
|
declare global {
|
|
44
44
|
interface HTMLElementTagNameMap {
|
|
45
|
-
'
|
|
45
|
+
'impakt-summary-list': ImpaktSummaryList;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
2
|
+
ImpaktSummaryList
|
|
3
|
+
} from "../chunk-UPOTBKKK.js";
|
|
4
|
+
import "../chunk-YR6T73GY.js";
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
ImpaktSummaryList
|
|
7
7
|
};
|
|
8
8
|
//# sourceMappingURL=summary-list.js.map
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { type TemplateResult } from 'lit';
|
|
2
|
-
import {
|
|
2
|
+
import { ImpaktElement } from '../base/ImpaktElement';
|
|
3
3
|
export interface TableColumn {
|
|
4
4
|
key: string;
|
|
5
5
|
label: string;
|
|
6
6
|
numeric?: boolean;
|
|
7
|
+
/** Let the rows be sorted by this column. Its heading becomes a button. */
|
|
8
|
+
sortable?: boolean;
|
|
7
9
|
}
|
|
10
|
+
/** Which way a sorted column runs, in the words `aria-sort` uses. */
|
|
11
|
+
export type SortDirection = 'ascending' | 'descending';
|
|
8
12
|
/**
|
|
9
|
-
* A data table — a plan comparison, a payment schedule.
|
|
13
|
+
* A data table — a plan comparison, a payment schedule, a list of cases.
|
|
10
14
|
*
|
|
11
15
|
* **The caption is required.** It is the table's name, and a page with three
|
|
12
16
|
* unnamed tables is a page a screen-reader user has to read in full to tell
|
|
@@ -18,12 +22,34 @@ export interface TableColumn {
|
|
|
18
22
|
* see the right-hand columns. `tabindex="0"` with a role and a name is the
|
|
19
23
|
* established fix, and the name is why the role is there: a bare focusable div
|
|
20
24
|
* announces nothing.
|
|
21
|
-
|
|
25
|
+
*
|
|
26
|
+
* **Or it stacks.** With `stack`, a narrow table turns each row into a card,
|
|
27
|
+
* with each value under the name of its column, so a phone reads a list of
|
|
28
|
+
* cases rather than scrolling a grid. The table keeps its roles written out,
|
|
29
|
+
* because some browsers drop a table's meaning once it is no longer drawn as one.
|
|
30
|
+
*
|
|
31
|
+
* **Sorting is announced.** A sortable column's heading is a button, and the
|
|
32
|
+
* column the rows are sorted by carries `aria-sort`, so a screen reader says
|
|
33
|
+
* "Opened, sorted descending" rather than leaving the order to be guessed. The
|
|
34
|
+
* table sorts its own rows unless `manual-sort` says the app does it, as an app
|
|
35
|
+
* that pages its rows on the server must.
|
|
36
|
+
*
|
|
37
|
+
* **Rows can be chosen.** With `selectable`, each row has a checkbox named by
|
|
38
|
+
* the row's first cell, and the heading has one for every row. A row is known by
|
|
39
|
+
* its `id`, or by the key `row-key` names.
|
|
40
|
+
*
|
|
41
|
+
* A cell can hold more than words: give the table a child with
|
|
42
|
+
* `slot="cell:{row id}:{column key}"`, such as a badge, and it is drawn in that
|
|
43
|
+
* cell. With no rows the table says `empty-text`, or shows a child with
|
|
44
|
+
* `slot="empty"`.
|
|
22
45
|
*
|
|
23
46
|
* @category content
|
|
24
47
|
* @icon table
|
|
48
|
+
* @slot empty - What to show when there are no rows, in place of the empty text.
|
|
49
|
+
* @fires {CustomEvent<{ key: string; direction: SortDirection }>} impakt-sort - When a column heading is pressed to sort the rows.
|
|
50
|
+
* @fires {CustomEvent<{ selected: string[] }>} impakt-selection - When rows are chosen or let go. The ids are in detail.selected.
|
|
25
51
|
*/
|
|
26
|
-
export declare class
|
|
52
|
+
export declare class ImpaktTable extends ImpaktElement {
|
|
27
53
|
static properties: {
|
|
28
54
|
caption: {
|
|
29
55
|
type: StringConstructor;
|
|
@@ -34,16 +60,82 @@ export declare class ImpktTable extends ImpktElement {
|
|
|
34
60
|
rows: {
|
|
35
61
|
type: ArrayConstructor;
|
|
36
62
|
};
|
|
63
|
+
sortKey: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
attribute: string;
|
|
66
|
+
reflect: boolean;
|
|
67
|
+
};
|
|
68
|
+
sortDirection: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
attribute: string;
|
|
71
|
+
reflect: boolean;
|
|
72
|
+
};
|
|
73
|
+
manualSort: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
attribute: string;
|
|
76
|
+
};
|
|
77
|
+
selectable: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
reflect: boolean;
|
|
80
|
+
};
|
|
81
|
+
selected: {
|
|
82
|
+
type: ArrayConstructor;
|
|
83
|
+
};
|
|
84
|
+
rowKey: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
attribute: string;
|
|
87
|
+
};
|
|
88
|
+
stack: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
92
|
+
emptyText: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
attribute: string;
|
|
95
|
+
};
|
|
96
|
+
selectAllText: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
attribute: string;
|
|
99
|
+
};
|
|
100
|
+
selectRowText: {
|
|
101
|
+
type: StringConstructor;
|
|
102
|
+
attribute: string;
|
|
103
|
+
};
|
|
37
104
|
};
|
|
38
105
|
caption: string;
|
|
39
106
|
columns: TableColumn[];
|
|
40
107
|
rows: Array<Record<string, string>>;
|
|
108
|
+
/** The key of the column the rows are sorted by. Empty leaves them in the order given. */
|
|
109
|
+
sortKey: string;
|
|
110
|
+
sortDirection: SortDirection;
|
|
111
|
+
/** The app sorts the rows itself, on `impakt-sort`. The table only shows which column and which way. */
|
|
112
|
+
manualSort: boolean;
|
|
113
|
+
/** Each row has a checkbox, and the heading one for every row. */
|
|
114
|
+
selectable: boolean;
|
|
115
|
+
/** The ids of the chosen rows. */
|
|
116
|
+
selected: string[];
|
|
117
|
+
/** The key in each row that tells rows apart. */
|
|
118
|
+
rowKey: string;
|
|
119
|
+
/** On a narrow screen, draw each row as a card rather than scroll the table sideways. */
|
|
120
|
+
stack: boolean;
|
|
121
|
+
/** What the table says when it has no rows. */
|
|
122
|
+
emptyText: string;
|
|
123
|
+
/** The name of the checkbox that chooses every row. */
|
|
124
|
+
selectAllText: string;
|
|
125
|
+
/** The name of each row's checkbox, with `{row}` for the row's first cell. */
|
|
126
|
+
selectRowText: string;
|
|
41
127
|
constructor();
|
|
42
128
|
static styles: import("lit").CSSResult[];
|
|
129
|
+
private keyOf;
|
|
130
|
+
/** The rows in the order they are drawn: as given, or sorted by the chosen column. */
|
|
131
|
+
private ordered;
|
|
132
|
+
private sortBy;
|
|
133
|
+
private choose;
|
|
134
|
+
private heading;
|
|
43
135
|
render(): TemplateResult;
|
|
44
136
|
}
|
|
45
137
|
declare global {
|
|
46
138
|
interface HTMLElementTagNameMap {
|
|
47
|
-
'
|
|
139
|
+
'impakt-table': ImpaktTable;
|
|
48
140
|
}
|
|
49
141
|
}
|
package/dist/components/table.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
2
|
+
ImpaktTable
|
|
3
|
+
} from "../chunk-TAZZLOUY.js";
|
|
4
|
+
import "../chunk-3IGNZTJU.js";
|
|
5
|
+
import "../chunk-5Y3HYRCU.js";
|
|
6
|
+
import "../chunk-YR6T73GY.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
ImpaktTable
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=table.js.map
|
|
@@ -13,7 +13,7 @@ import { FieldElement } from '../base/FieldElement';
|
|
|
13
13
|
* @category form
|
|
14
14
|
* @icon field
|
|
15
15
|
*/
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class ImpaktTextInput extends FieldElement {
|
|
17
17
|
static properties: {
|
|
18
18
|
width: {
|
|
19
19
|
type: StringConstructor;
|
|
@@ -81,6 +81,6 @@ export declare class ImpktTextInput extends FieldElement {
|
|
|
81
81
|
}
|
|
82
82
|
declare global {
|
|
83
83
|
interface HTMLElementTagNameMap {
|
|
84
|
-
'
|
|
84
|
+
'impakt-text-input': ImpaktTextInput;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
2
|
+
ImpaktTextInput
|
|
3
|
+
} from "../chunk-Z45LY6BT.js";
|
|
4
|
+
import "../chunk-5ZQVL3V2.js";
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ImpaktTextInput
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=text-input.js.map
|
|
@@ -5,7 +5,7 @@ import { FieldElement } from '../base/FieldElement';
|
|
|
5
5
|
* @category form
|
|
6
6
|
* @icon field
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class ImpaktTextarea extends FieldElement {
|
|
9
9
|
static properties: {
|
|
10
10
|
width: {
|
|
11
11
|
type: StringConstructor;
|
|
@@ -73,6 +73,6 @@ export declare class ImpktTextarea extends FieldElement {
|
|
|
73
73
|
}
|
|
74
74
|
declare global {
|
|
75
75
|
interface HTMLElementTagNameMap {
|
|
76
|
-
'
|
|
76
|
+
'impakt-textarea': ImpaktTextarea;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
2
|
+
ImpaktTextarea
|
|
3
|
+
} from "../chunk-ACQ4KYPR.js";
|
|
4
|
+
import "../chunk-5ZQVL3V2.js";
|
|
5
|
+
import "../chunk-YR6T73GY.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
ImpaktTextarea
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=textarea.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -5,44 +5,51 @@
|
|
|
5
5
|
* Importing this module defines every element. There is no registry to
|
|
6
6
|
* populate and no provider to mount, which is what lets the same build serve
|
|
7
7
|
* React, Vue, Angular and the CMS preview without four integrations.
|
|
8
|
+
*
|
|
9
|
+
* These are the product components. The blocks Strata builds sites from, such
|
|
10
|
+
* as the hero, the calculators and the site header, are in `@atomic-ui/strata`,
|
|
11
|
+
* which builds on the base exported here.
|
|
12
|
+
*/
|
|
13
|
+
export { ImpaktButton } from './components/button';
|
|
14
|
+
export { ImpaktTextInput } from './components/text-input';
|
|
15
|
+
export { ImpaktSelect, type SelectOption } from './components/select';
|
|
16
|
+
export { ImpaktCheckbox } from './components/checkbox';
|
|
17
|
+
export { ImpaktRadioGroup, type RadioOption } from './components/radio-group';
|
|
18
|
+
export { ImpaktAlert, type AlertTone } from './components/alert';
|
|
19
|
+
export { ImpaktStack, ImpaktCard, ImpaktHeading, ImpaktText } from './components/layout';
|
|
20
|
+
export { ImpaktLink } from './components/link';
|
|
21
|
+
export { ImpaktImage, ImpaktLogo, ImpaktDocumentLink } from './components/media';
|
|
22
|
+
export { ImpaktPrice } from './components/price';
|
|
23
|
+
export { ImpaktSummaryList, type SummaryRow } from './components/summary-list';
|
|
24
|
+
export { ImpaktTable, type TableColumn, type SortDirection } from './components/table';
|
|
25
|
+
export { ImpaktAccordion, type AccordionItem } from './components/accordion';
|
|
26
|
+
export { ImpaktProgress, type ProgressStep } from './components/progress';
|
|
27
|
+
export { ImpaktChip } from './components/chip';
|
|
28
|
+
export { ImpaktBadge } from './components/badge';
|
|
29
|
+
export { ImpaktTextarea } from './components/textarea';
|
|
30
|
+
export { ImpaktCheckboxGroup, type CheckboxOption } from './components/checkbox-group';
|
|
31
|
+
export { ImpaktDateInput } from './components/date-input';
|
|
32
|
+
export { ImpaktDialog } from './components/dialog';
|
|
33
|
+
export { ImpaktList } from './components/list';
|
|
34
|
+
export { ImpaktGrid } from './components/grid';
|
|
35
|
+
export { ImpaktHelp, type HelpKind } from './components/help';
|
|
36
|
+
export { ImpaktPage, ImpaktSection } from './components/page';
|
|
37
|
+
export { ImpaktIcon, ICONS, ICON_NAMES, iconSvg, type IconName } from './components/icon';
|
|
38
|
+
export { ImpaktNav, ImpaktBreadcrumbs, type NavLink } from './components/navigation';
|
|
39
|
+
export { ImpaktDivider, ImpaktSpacer, ImpaktVisuallyHidden, ImpaktTabs, type TabItem } from './components/blocks';
|
|
40
|
+
export { ImpaktFieldset } from './components/fieldset';
|
|
41
|
+
export { ImpaktDrawer, ImpaktToast, ImpaktMenu, ImpaktPagination, ImpaktAvatar, ImpaktAvatarGroup, ImpaktEmptyState, ImpaktSlotPicker, type MenuItem, type AvatarItem, type SlotDay } from './components/app-ui';
|
|
42
|
+
export { ImpaktAddressLookup, ImpaktErrorSummary, ImpaktFileUpload, ImpaktMoneyInput, ImpaktRangeInput, ImpaktTaskList, groupDigits, type AddressItem, type ErrorItem, type TaskItem } from './components/journey';
|
|
43
|
+
/**
|
|
44
|
+
* The shared base, which `@atomic-ui/strata` and an app's own elements build on:
|
|
45
|
+
* the base classes, the tokens, the style fragments that carry the accessibility
|
|
46
|
+
* guarantees, the wording and locale lookups, the scroll lock and the tones.
|
|
8
47
|
*/
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export { ImpktImage, ImpktLogo, ImpktDocumentLink } from './components/media';
|
|
18
|
-
export { ImpktPrice } from './components/price';
|
|
19
|
-
export { ImpktSummaryList, type SummaryRow } from './components/summary-list';
|
|
20
|
-
export { ImpktTable, type TableColumn } from './components/table';
|
|
21
|
-
export { ImpktAccordion, type AccordionItem } from './components/accordion';
|
|
22
|
-
export { ImpktProgress, type ProgressStep } from './components/progress';
|
|
23
|
-
export { ImpktScene, type SceneDrive, type SceneLayout } from './components/scene';
|
|
24
|
-
export { ImpktScrubber, type ScrubberStop } from './components/scrubber';
|
|
25
|
-
export { ImpktReleaseCard, ImpktReleaseList, ImpktBranchList, ImpktCheckList, ImpktBranchTimeline, type DiffLine, type ReleaseItem, type Branch, type CheckItem, type TimelineLane, type TimelineMark, type Tone } from './components/changelog';
|
|
26
|
-
export { ImpktSiteHeader, ImpktSiteFooter, ImpktWordmark, ImpktChip, type FooterLogLine, type FooterColumn } from './components/site';
|
|
27
|
-
export { ImpktTextarea } from './components/textarea';
|
|
28
|
-
export { ImpktCheckboxGroup, type CheckboxOption } from './components/checkbox-group';
|
|
29
|
-
export { ImpktDateInput } from './components/date-input';
|
|
30
|
-
export { ImpktDialog } from './components/dialog';
|
|
31
|
-
export { ImpktList } from './components/list';
|
|
32
|
-
export { ImpktEstimator, estimate, phaseWeeks, type EstimatorQuestion, type EstimatorChoice, type EstimatorBand, type EstimatorPhase, type EstimateResult } from './components/estimator';
|
|
33
|
-
export { ImpktElement } from './base/ImpktElement';
|
|
34
|
-
export { FieldElement } from './base/FieldElement';
|
|
35
|
-
export { token, space, fontSize, lineHeight, fontWeight, t } from './base/tokens';
|
|
36
|
-
export { ImpktGrid } from './components/grid';
|
|
37
|
-
export { ImpktHelp, type HelpKind } from './components/help';
|
|
38
|
-
export { ImpktPage, ImpktSection } from './components/page';
|
|
39
|
-
export { ImpktIcon, ICONS, ICON_NAMES, iconSvg, type IconName } from './components/icon';
|
|
40
|
-
export { ImpktNav, ImpktBreadcrumbs, type NavLink } from './components/navigation';
|
|
41
|
-
export { ImpktSearchBar, type SearchField, ImpktAnnouncement, ImpktHero, ImpktFeatureList, ImpktQuote, ImpktStat, ImpktBadge, type FeatureItem } from './components/marketing';
|
|
42
|
-
export { ImpktDivider, ImpktSpacer, ImpktVisuallyHidden, ImpktTabs, ImpktCardGrid, type TabItem, type CardItem } from './components/blocks';
|
|
43
|
-
export { ImpktFieldset } from './components/fieldset';
|
|
44
|
-
export { ImpktDrawer, ImpktToast, ImpktMenu, ImpktPagination, ImpktAvatar, ImpktAvatarGroup, ImpktEmptyState, ImpktSlotPicker, type MenuItem, type AvatarItem, type SlotDay } from './components/app-ui';
|
|
45
|
-
export { ImpktSitePlan, ImpktMortgageCalculator, ImpktBeforeAfter, ImpktStickyBar, ImpktLocationCard, monthlyPayment, type SitePlot, type NearbyItem } from './components/property';
|
|
46
|
-
export { ImpktCarousel, ImpktGallery, ImpktLogoCloud, ImpktSteps, ImpktMediaSplit, ImpktCtaBanner, ImpktReviews, ImpktNewsletter, type GalleryItem, type LogoItem, type StepItem, type ReviewItem } from './components/organisms';
|
|
47
|
-
export { ImpktAddressLookup, ImpktErrorSummary, ImpktFileUpload, ImpktMoneyInput, ImpktRangeInput, ImpktTaskList, groupDigits, type AddressItem, type ErrorItem, type TaskItem } from './components/journey';
|
|
48
|
-
export { ImpktPlanComparison, ImpktVideo, ImpktRegulatoryNotice, ImpktStampDutyCalculator, ImpktAffordabilityCalculator, ImpktContactBlock, stampDuty, embedOf, SDLT, type PlanItem, type PlanRow } from './components/selling';
|
|
48
|
+
export { ImpaktElement } from './base/ImpaktElement';
|
|
49
|
+
export { FieldElement, fieldWidths } from './base/FieldElement';
|
|
50
|
+
export * from './base/tokens';
|
|
51
|
+
export * from './base/styles';
|
|
52
|
+
export { say } from './base/say';
|
|
53
|
+
export { pageLocale } from './base/locale';
|
|
54
|
+
export { lockScroll, unlockScroll } from './base/scroll-lock';
|
|
55
|
+
export { toneOf, TONE, CYCLE, type Tone, type NamedTone } from './base/tone';
|