@transcodes/ui-components 0.3.5 → 0.4.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/CHANGELOG.md +54 -0
- package/README.md +8 -22
- package/dist/controllers/index.d.ts +0 -2
- package/dist/controllers/index.d.ts.map +1 -1
- package/dist/controllers/index.js +10 -12
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +48 -64
- package/dist/primitives/index.d.ts +1 -0
- package/dist/primitives/index.d.ts.map +1 -1
- package/dist/primitives/index.js +18 -16
- package/dist/primitives/tc-box.d.ts +2 -1
- package/dist/primitives/tc-box.d.ts.map +1 -1
- package/dist/primitives/tc-box.js +4 -4
- package/dist/primitives/tc-button.d.ts +2 -1
- package/dist/primitives/tc-button.d.ts.map +1 -1
- package/dist/primitives/tc-button.js +21 -20
- package/dist/primitives/tc-callout.d.ts +2 -0
- package/dist/primitives/tc-callout.d.ts.map +1 -1
- package/dist/primitives/tc-callout.js +22 -17
- package/dist/primitives/tc-card.d.ts +2 -1
- package/dist/primitives/tc-card.d.ts.map +1 -1
- package/dist/primitives/tc-card.js +11 -10
- package/dist/primitives/tc-chip.d.ts +2 -0
- package/dist/primitives/tc-chip.d.ts.map +1 -1
- package/dist/primitives/tc-chip.js +26 -16
- package/dist/primitives/tc-container.d.ts +2 -1
- package/dist/primitives/tc-container.d.ts.map +1 -1
- package/dist/primitives/tc-container.js +12 -10
- package/dist/primitives/tc-divider.d.ts +2 -2
- package/dist/primitives/tc-divider.d.ts.map +1 -1
- package/dist/primitives/tc-divider.js +25 -23
- package/dist/primitives/tc-error-message.d.ts +2 -0
- package/dist/primitives/tc-error-message.d.ts.map +1 -1
- package/dist/primitives/tc-error-message.js +23 -16
- package/dist/primitives/tc-form-header.d.ts +2 -1
- package/dist/primitives/tc-form-header.d.ts.map +1 -1
- package/dist/primitives/tc-form-header.js +9 -7
- package/dist/primitives/tc-icon.d.ts +2 -2
- package/dist/primitives/tc-icon.d.ts.map +1 -1
- package/dist/primitives/tc-icon.js +61 -61
- package/dist/primitives/tc-input-with-chip.d.ts +2 -0
- package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
- package/dist/primitives/tc-input-with-chip.js +26 -18
- package/dist/primitives/tc-input.d.ts +2 -1
- package/dist/primitives/tc-input.d.ts.map +1 -1
- package/dist/primitives/tc-input.js +11 -9
- package/dist/primitives/tc-item-button.d.ts +2 -3
- package/dist/primitives/tc-item-button.d.ts.map +1 -1
- package/dist/primitives/tc-item-button.js +31 -36
- package/dist/primitives/tc-item.d.ts +2 -3
- package/dist/primitives/tc-item.d.ts.map +1 -1
- package/dist/primitives/tc-item.js +21 -26
- package/dist/primitives/tc-otp-input.d.ts +2 -0
- package/dist/primitives/tc-otp-input.d.ts.map +1 -1
- package/dist/primitives/tc-otp-input.js +17 -11
- package/dist/{widgets → primitives}/tc-page-decoration.d.ts +2 -0
- package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
- package/dist/{widgets → primitives}/tc-page-decoration.js +29 -25
- package/dist/primitives/tc-section.d.ts +2 -2
- package/dist/primitives/tc-section.d.ts.map +1 -1
- package/dist/primitives/tc-section.js +23 -24
- package/dist/primitives/tc-spinner.d.ts +2 -1
- package/dist/primitives/tc-spinner.d.ts.map +1 -1
- package/dist/primitives/tc-spinner.js +32 -29
- package/dist/primitives/tc-symbol.d.ts +2 -3
- package/dist/primitives/tc-symbol.d.ts.map +1 -1
- package/dist/primitives/tc-symbol.js +26 -28
- package/dist/primitives/tc-text.d.ts +2 -1
- package/dist/primitives/tc-text.d.ts.map +1 -1
- package/dist/primitives/tc-text.js +3 -3
- package/dist/primitives/tc-toast.d.ts +2 -0
- package/dist/primitives/tc-toast.d.ts.map +1 -1
- package/dist/primitives/tc-toast.js +35 -25
- package/dist/screens/tc-error-screen.d.ts +8 -1
- package/dist/screens/tc-error-screen.d.ts.map +1 -1
- package/dist/screens/tc-error-screen.js +91 -32
- package/dist/screens/tc-loading-screen.d.ts +3 -1
- package/dist/screens/tc-loading-screen.d.ts.map +1 -1
- package/dist/screens/tc-loading-screen.js +28 -19
- package/dist/screens/tc-success-screen.d.ts +2 -0
- package/dist/screens/tc-success-screen.d.ts.map +1 -1
- package/dist/screens/tc-success-screen.js +41 -31
- package/dist/types.d.ts +34 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +13 -13
- package/dist/controllers/form-validation.controller.d.ts +0 -48
- package/dist/controllers/form-validation.controller.d.ts.map +0 -1
- package/dist/controllers/form-validation.controller.js +0 -49
- package/dist/widgets/index.d.ts +0 -9
- package/dist/widgets/index.d.ts.map +0 -1
- package/dist/widgets/index.js +0 -18
- package/dist/widgets/tc-authenticator-card.d.ts +0 -35
- package/dist/widgets/tc-authenticator-card.d.ts.map +0 -1
- package/dist/widgets/tc-authenticator-card.js +0 -213
- package/dist/widgets/tc-floating-button.d.ts +0 -25
- package/dist/widgets/tc-floating-button.d.ts.map +0 -1
- package/dist/widgets/tc-floating-button.js +0 -132
- package/dist/widgets/tc-iframe-modal.d.ts +0 -43
- package/dist/widgets/tc-iframe-modal.d.ts.map +0 -1
- package/dist/widgets/tc-iframe-modal.js +0 -263
- package/dist/widgets/tc-installation-banner.d.ts +0 -42
- package/dist/widgets/tc-installation-banner.d.ts.map +0 -1
- package/dist/widgets/tc-installation-banner.js +0 -234
- package/dist/widgets/tc-ios-installation-guide.d.ts +0 -34
- package/dist/widgets/tc-ios-installation-guide.d.ts.map +0 -1
- package/dist/widgets/tc-ios-installation-guide.js +0 -240
- package/dist/widgets/tc-notification-modal.d.ts +0 -42
- package/dist/widgets/tc-notification-modal.d.ts.map +0 -1
- package/dist/widgets/tc-notification-modal.js +0 -230
- package/dist/widgets/tc-offline-modal.d.ts +0 -39
- package/dist/widgets/tc-offline-modal.d.ts.map +0 -1
- package/dist/widgets/tc-offline-modal.js +0 -202
- package/dist/widgets/tc-page-decoration.d.ts.map +0 -1
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property as
|
|
3
|
-
import { classMap as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { css as p, LitElement as m, html as v } from "lit";
|
|
2
|
+
import { property as c, customElement as d } from "lit/decorators.js";
|
|
3
|
+
import { classMap as f } from "lit/directives/class-map.js";
|
|
4
|
+
import { styleMap as u } from "lit/directives/style-map.js";
|
|
5
|
+
import { sharedStyles as y } from "../styles/shared.js";
|
|
6
|
+
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (s, e, i, r) => {
|
|
7
|
+
for (var t = r > 1 ? void 0 : r ? g(e, i) : e, n = s.length - 1, a; n >= 0; n--)
|
|
8
|
+
(a = s[n]) && (t = (r ? a(e, i, t) : a(t)) || t);
|
|
9
|
+
return r && t && h(e, i, t), t;
|
|
9
10
|
};
|
|
10
|
-
let o = class extends
|
|
11
|
+
let o = class extends m {
|
|
11
12
|
constructor() {
|
|
12
|
-
super(...arguments), this.variant = "info";
|
|
13
|
+
super(...arguments), this.variant = "info", this.sx = {};
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
|
-
const
|
|
16
|
-
notice: !
|
|
16
|
+
const s = this.variant === "error", e = {
|
|
17
|
+
notice: !s,
|
|
17
18
|
"notice-info": this.variant === "info",
|
|
18
19
|
"notice-success": this.variant === "success",
|
|
19
20
|
"notice-warning": this.variant === "warning",
|
|
20
|
-
"error-message":
|
|
21
|
+
"error-message": s
|
|
21
22
|
};
|
|
22
|
-
return
|
|
23
|
-
<div part="callout" class=${
|
|
23
|
+
return v`
|
|
24
|
+
<div part="callout" class=${f(e)} style=${u(this.sx)} role="alert">
|
|
24
25
|
<div class="callout-inner">
|
|
25
26
|
<div part="icon" class="callout-icon">
|
|
26
27
|
<slot name="icon"></slot>
|
|
@@ -34,11 +35,12 @@ let o = class extends c {
|
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
o.styles = [
|
|
37
|
-
|
|
38
|
+
y,
|
|
38
39
|
p`
|
|
39
40
|
:host {
|
|
40
41
|
display: block;
|
|
41
42
|
width: 100%;
|
|
43
|
+
min-width: 0;
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/* Override animation from design-tokens for immediate display */
|
|
@@ -76,8 +78,11 @@ o.styles = [
|
|
|
76
78
|
`
|
|
77
79
|
];
|
|
78
80
|
l([
|
|
79
|
-
|
|
81
|
+
c({ type: String })
|
|
80
82
|
], o.prototype, "variant", 2);
|
|
83
|
+
l([
|
|
84
|
+
c({ type: Object })
|
|
85
|
+
], o.prototype, "sx", 2);
|
|
81
86
|
o = l([
|
|
82
87
|
d("tc-callout")
|
|
83
88
|
], o);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Card component with layered shadows and optional inner border effect.
|
|
4
5
|
* Uses design-tokens .card class.
|
|
@@ -8,7 +9,7 @@ import { LitElement } from 'lit';
|
|
|
8
9
|
*/
|
|
9
10
|
export declare class TcCard extends LitElement {
|
|
10
11
|
noBorder: boolean;
|
|
11
|
-
sx:
|
|
12
|
+
sx: SxProps;
|
|
12
13
|
static styles: import('lit').CSSResult[];
|
|
13
14
|
render(): import('lit').TemplateResult<1>;
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-card.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tc-card.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;GAMG;AACH,qBACa,MAAO,SAAQ,UAAU;IACiB,QAAQ,UAAS;IAC1C,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BAoCpB;IAEO,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { css as p, LitElement as l, html as f } from "lit";
|
|
2
2
|
import { property as c, customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { classMap as b } from "lit/directives/class-map.js";
|
|
4
|
-
import { styleMap as
|
|
5
|
-
import { sharedStyles as
|
|
6
|
-
var
|
|
4
|
+
import { styleMap as h } from "lit/directives/style-map.js";
|
|
5
|
+
import { sharedStyles as u } from "../styles/shared.js";
|
|
6
|
+
var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, d = (t, o, n, s) => {
|
|
7
7
|
for (var e = s > 1 ? void 0 : s ? y(o, n) : o, a = t.length - 1, i; a >= 0; a--)
|
|
8
8
|
(i = t[a]) && (e = (s ? i(o, n, e) : i(e)) || e);
|
|
9
|
-
return s && e &&
|
|
9
|
+
return s && e && v(o, n, e), e;
|
|
10
10
|
};
|
|
11
|
-
let r = class extends
|
|
11
|
+
let r = class extends l {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.noBorder = !1, this.sx = {};
|
|
14
14
|
}
|
|
@@ -17,8 +17,8 @@ let r = class extends p {
|
|
|
17
17
|
card: !0,
|
|
18
18
|
"card--no-border": this.noBorder
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
<div part="card" class=${b(t)} style=${
|
|
20
|
+
return f`
|
|
21
|
+
<div part="card" class=${b(t)} style=${h(this.sx)}>
|
|
22
22
|
<div class="card-content">
|
|
23
23
|
<slot></slot>
|
|
24
24
|
</div>
|
|
@@ -27,10 +27,11 @@ let r = class extends p {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
r.styles = [
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
u,
|
|
31
|
+
p`
|
|
32
32
|
:host {
|
|
33
33
|
display: block;
|
|
34
|
+
min-width: 0;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/* Inner border effect using mask - extends design-tokens .card */
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* A chip/tag component for labels and badges.
|
|
4
5
|
*
|
|
@@ -8,6 +9,7 @@ import { LitElement } from 'lit';
|
|
|
8
9
|
export declare class TcChip extends LitElement {
|
|
9
10
|
variant: 'default' | 'success' | 'error' | 'info';
|
|
10
11
|
size: 'sm' | 'md';
|
|
12
|
+
sx: SxProps;
|
|
11
13
|
static styles: import('lit').CSSResult[];
|
|
12
14
|
render(): import('lit').TemplateResult<1>;
|
|
13
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,OAAO,EAC/B,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IACK,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;
|
|
1
|
+
{"version":3,"file":"tc-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;GAKG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,OAAO,EAC/B,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IACK,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IACzB,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BAgDpB;IAEO,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as l, LitElement as h, html as d } from "lit";
|
|
2
|
+
import { property as c, customElement as f } from "lit/decorators.js";
|
|
3
|
+
import { styleMap as m } from "lit/directives/style-map.js";
|
|
3
4
|
import { sharedStyles as v } from "../styles/shared.js";
|
|
4
|
-
var
|
|
5
|
-
for (var r =
|
|
6
|
-
(
|
|
7
|
-
return
|
|
5
|
+
var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, i = (n, t, a, s) => {
|
|
6
|
+
for (var r = s > 1 ? void 0 : s ? y(t, a) : t, p = n.length - 1, o; p >= 0; p--)
|
|
7
|
+
(o = n[p]) && (r = (s ? o(t, a, r) : o(r)) || r);
|
|
8
|
+
return s && r && u(t, a, r), r;
|
|
8
9
|
};
|
|
9
|
-
let e = class extends
|
|
10
|
+
let e = class extends h {
|
|
10
11
|
constructor() {
|
|
11
|
-
super(...arguments), this.variant = "default", this.size = "md";
|
|
12
|
+
super(...arguments), this.variant = "default", this.size = "md", this.sx = {};
|
|
12
13
|
}
|
|
13
14
|
render() {
|
|
14
|
-
return
|
|
15
|
-
<span
|
|
15
|
+
return d`
|
|
16
|
+
<span
|
|
17
|
+
part="chip"
|
|
18
|
+
class="chip chip--${this.variant} chip--${this.size}"
|
|
19
|
+
style=${m(this.sx)}
|
|
20
|
+
>
|
|
16
21
|
<slot></slot>
|
|
17
22
|
</span>
|
|
18
23
|
`;
|
|
@@ -20,9 +25,11 @@ let e = class extends l {
|
|
|
20
25
|
};
|
|
21
26
|
e.styles = [
|
|
22
27
|
v,
|
|
23
|
-
|
|
28
|
+
l`
|
|
24
29
|
:host {
|
|
25
30
|
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
.chip {
|
|
@@ -65,13 +72,16 @@ e.styles = [
|
|
|
65
72
|
}
|
|
66
73
|
`
|
|
67
74
|
];
|
|
68
|
-
|
|
69
|
-
|
|
75
|
+
i([
|
|
76
|
+
c({ type: String })
|
|
70
77
|
], e.prototype, "variant", 2);
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
i([
|
|
79
|
+
c({ type: String })
|
|
73
80
|
], e.prototype, "size", 2);
|
|
74
|
-
|
|
81
|
+
i([
|
|
82
|
+
c({ type: Object })
|
|
83
|
+
], e.prototype, "sx", 2);
|
|
84
|
+
e = i([
|
|
75
85
|
f("tc-chip")
|
|
76
86
|
], e);
|
|
77
87
|
export {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* A flex container component with column layout by default.
|
|
4
5
|
*
|
|
@@ -7,7 +8,7 @@ import { LitElement } from 'lit';
|
|
|
7
8
|
*/
|
|
8
9
|
export declare class TcContainer extends LitElement {
|
|
9
10
|
wide: boolean;
|
|
10
|
-
sx:
|
|
11
|
+
sx: SxProps;
|
|
11
12
|
private defaultStyles;
|
|
12
13
|
static styles: import('lit').CSSResult;
|
|
13
14
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-container.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tc-container.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACZ,IAAI,UAAS;IACd,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAO,CAAC,aAAa,CAKnB;IAEF,OAAgB,MAAM,0BAkBpB;IAEO,MAAM;CAgBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property as c, customElement as
|
|
3
|
-
import { styleMap as
|
|
4
|
-
var w = Object.defineProperty,
|
|
5
|
-
for (var t = s > 1 ? void 0 : s ?
|
|
1
|
+
import { css as p, LitElement as d, html as m } from "lit";
|
|
2
|
+
import { property as c, customElement as h } from "lit/decorators.js";
|
|
3
|
+
import { styleMap as f } from "lit/directives/style-map.js";
|
|
4
|
+
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (r, i, o, s) => {
|
|
5
|
+
for (var t = s > 1 ? void 0 : s ? x(i, o) : i, n = r.length - 1, a; n >= 0; n--)
|
|
6
6
|
(a = r[n]) && (t = (s ? a(i, o, t) : a(t)) || t);
|
|
7
7
|
return s && t && w(i, o, t), t;
|
|
8
8
|
};
|
|
9
|
-
let e = class extends
|
|
9
|
+
let e = class extends d {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments), this.wide = !1, this.sx = {}, this.defaultStyles = {
|
|
12
12
|
display: "flex",
|
|
@@ -20,21 +20,22 @@ let e = class extends p {
|
|
|
20
20
|
...this.defaultStyles,
|
|
21
21
|
...this.sx
|
|
22
22
|
};
|
|
23
|
-
return
|
|
23
|
+
return m`
|
|
24
24
|
<div
|
|
25
25
|
part="container"
|
|
26
26
|
class="container ${this.wide ? "container--wide" : ""}"
|
|
27
|
-
style=${
|
|
27
|
+
style=${f(r)}
|
|
28
28
|
>
|
|
29
29
|
<slot></slot>
|
|
30
30
|
</div>
|
|
31
31
|
`;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
e.styles =
|
|
34
|
+
e.styles = p`
|
|
35
35
|
:host {
|
|
36
36
|
display: block;
|
|
37
37
|
width: 100%;
|
|
38
|
+
min-width: 0;
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
.container {
|
|
@@ -42,6 +43,7 @@ e.styles = m`
|
|
|
42
43
|
width: 100%;
|
|
43
44
|
max-width: var(--container-max-width);
|
|
44
45
|
margin: 0 auto;
|
|
46
|
+
box-sizing: border-box;
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.container--wide {
|
|
@@ -55,7 +57,7 @@ l([
|
|
|
55
57
|
c({ type: Object })
|
|
56
58
|
], e.prototype, "sx", 2);
|
|
57
59
|
e = l([
|
|
58
|
-
|
|
60
|
+
h("tc-container")
|
|
59
61
|
], e);
|
|
60
62
|
export {
|
|
61
63
|
e as TcContainer
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* A horizontal divider line with optional text.
|
|
4
5
|
*
|
|
@@ -8,9 +9,8 @@ import { LitElement } from 'lit';
|
|
|
8
9
|
* @csspart text - The text element (text mode)
|
|
9
10
|
*/
|
|
10
11
|
export declare class TcDivider extends LitElement {
|
|
11
|
-
color: string;
|
|
12
|
-
spacing: string;
|
|
13
12
|
text: string;
|
|
13
|
+
sx: SxProps;
|
|
14
14
|
static styles: import('lit').CSSResult;
|
|
15
15
|
render(): import('lit').TemplateResult<1>;
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-divider.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;;;GAOG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,
|
|
1
|
+
{"version":3,"file":"tc-divider.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;GAOG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,IAAI,SAAM;IACV,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,0BAqCpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { css as c, LitElement as m, html as l } from "lit";
|
|
2
|
+
import { property as p, customElement as h } from "lit/decorators.js";
|
|
3
|
+
import { styleMap as v } from "lit/directives/style-map.js";
|
|
4
|
+
var x = Object.defineProperty, f = Object.getOwnPropertyDescriptor, a = (s, e, d, t) => {
|
|
5
|
+
for (var r = t > 1 ? void 0 : t ? f(e, d) : e, n = s.length - 1, o; n >= 0; n--)
|
|
6
|
+
(o = s[n]) && (r = (t ? o(e, d, r) : o(r)) || r);
|
|
7
|
+
return t && r && x(e, d, r), r;
|
|
7
8
|
};
|
|
8
|
-
let i = class extends
|
|
9
|
+
let i = class extends m {
|
|
9
10
|
constructor() {
|
|
10
|
-
super(...arguments), this.
|
|
11
|
+
super(...arguments), this.text = "", this.sx = {};
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
|
-
const e =
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
const e = { ...{
|
|
15
|
+
"--divider-color": "var(--ink-faint)",
|
|
16
|
+
"--divider-spacing": "var(--space-md)"
|
|
17
|
+
}, ...this.sx };
|
|
18
|
+
return this.text ? l`
|
|
19
|
+
<div part="container" class="divider-container" style=${v(e)}>
|
|
16
20
|
<hr part="line" class="divider-line" />
|
|
17
21
|
<span part="text" class="divider-text">${this.text}</span>
|
|
18
22
|
<hr part="line" class="divider-line" />
|
|
19
23
|
</div>
|
|
20
|
-
` :
|
|
21
|
-
<hr part="divider" class="divider" style=${e} />
|
|
24
|
+
` : l`
|
|
25
|
+
<hr part="divider" class="divider" style=${v(e)} />
|
|
22
26
|
`;
|
|
23
27
|
}
|
|
24
28
|
};
|
|
25
|
-
i.styles =
|
|
29
|
+
i.styles = c`
|
|
26
30
|
:host {
|
|
27
31
|
display: block;
|
|
28
32
|
width: 100%;
|
|
33
|
+
min-width: 0;
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
/* Simple divider (no text) */
|
|
@@ -59,16 +64,13 @@ i.styles = v`
|
|
|
59
64
|
font-family: var(--font-body);
|
|
60
65
|
}
|
|
61
66
|
`;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
], i.prototype, "color", 2);
|
|
65
|
-
n([
|
|
66
|
-
l({ type: String })
|
|
67
|
-
], i.prototype, "spacing", 2);
|
|
68
|
-
n([
|
|
69
|
-
l({ type: String })
|
|
67
|
+
a([
|
|
68
|
+
p({ type: String })
|
|
70
69
|
], i.prototype, "text", 2);
|
|
71
|
-
|
|
70
|
+
a([
|
|
71
|
+
p({ type: Object })
|
|
72
|
+
], i.prototype, "sx", 2);
|
|
73
|
+
i = a([
|
|
72
74
|
h("tc-divider")
|
|
73
75
|
], i);
|
|
74
76
|
export {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* A simplified error/warning/info message component.
|
|
4
5
|
* Wraps tc-callout with appropriate icon and text styling.
|
|
@@ -10,6 +11,7 @@ import { LitElement } from 'lit';
|
|
|
10
11
|
export declare class TcErrorMessage extends LitElement {
|
|
11
12
|
variant: 'warning' | 'info' | 'error';
|
|
12
13
|
message: string;
|
|
14
|
+
sx: SxProps;
|
|
13
15
|
static styles: import('lit').CSSResult;
|
|
14
16
|
private getIconName;
|
|
15
17
|
private getIconColor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-error-message.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-error-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAE5C,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,qBACa,cAAe,SAAQ,UAAU;IAChB,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAW;IAChD,OAAO,SAAM;
|
|
1
|
+
{"version":3,"file":"tc-error-message.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-error-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,qBACa,cAAe,SAAQ,UAAU;IAChB,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAW;IAChD,OAAO,SAAM;IACb,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,0BAcpB;IAEF,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,YAAY;IAWX,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { property as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { css as p, LitElement as m, html as g } from "lit";
|
|
2
|
+
import { property as c, customElement as u } from "lit/decorators.js";
|
|
3
|
+
import "./tc-callout.js";
|
|
4
|
+
import "./tc-icon.js";
|
|
5
|
+
import "./tc-text.js";
|
|
6
|
+
var h = Object.defineProperty, v = Object.getOwnPropertyDescriptor, a = (l, r, i, s) => {
|
|
7
|
+
for (var t = s > 1 ? void 0 : s ? v(r, i) : r, n = l.length - 1, o; n >= 0; n--)
|
|
8
|
+
(o = l[n]) && (t = (s ? o(r, i, t) : o(t)) || t);
|
|
9
|
+
return s && t && h(r, i, t), t;
|
|
7
10
|
};
|
|
8
11
|
let e = class extends m {
|
|
9
12
|
constructor() {
|
|
10
|
-
super(...arguments), this.variant = "error", this.message = "";
|
|
13
|
+
super(...arguments), this.variant = "error", this.message = "", this.sx = {};
|
|
11
14
|
}
|
|
12
15
|
getIconName() {
|
|
13
16
|
switch (this.variant) {
|
|
@@ -30,13 +33,13 @@ let e = class extends m {
|
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
render() {
|
|
33
|
-
return this.message ?
|
|
34
|
-
<tc-callout part="callout" variant=${this.variant}>
|
|
36
|
+
return this.message ? g`
|
|
37
|
+
<tc-callout part="callout" variant=${this.variant} .sx=${this.sx}>
|
|
35
38
|
<tc-icon
|
|
36
39
|
slot="icon"
|
|
37
40
|
part="icon"
|
|
38
41
|
name=${this.getIconName()}
|
|
39
|
-
size="
|
|
42
|
+
size="var(--size-icon-action)"
|
|
40
43
|
color=${this.getIconColor()}
|
|
41
44
|
></tc-icon>
|
|
42
45
|
<tc-text part="message" class="message-text" size="sm">
|
|
@@ -46,10 +49,11 @@ let e = class extends m {
|
|
|
46
49
|
` : null;
|
|
47
50
|
}
|
|
48
51
|
};
|
|
49
|
-
e.styles =
|
|
52
|
+
e.styles = p`
|
|
50
53
|
:host {
|
|
51
54
|
display: block;
|
|
52
55
|
width: 100%;
|
|
56
|
+
min-width: 0;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
tc-callout::part(callout) {
|
|
@@ -60,13 +64,16 @@ e.styles = g`
|
|
|
60
64
|
line-height: 1.4;
|
|
61
65
|
}
|
|
62
66
|
`;
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
a([
|
|
68
|
+
c({ type: String })
|
|
65
69
|
], e.prototype, "variant", 2);
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
a([
|
|
71
|
+
c({ type: String })
|
|
68
72
|
], e.prototype, "message", 2);
|
|
69
|
-
|
|
73
|
+
a([
|
|
74
|
+
c({ type: Object })
|
|
75
|
+
], e.prototype, "sx", 2);
|
|
76
|
+
e = a([
|
|
70
77
|
u("tc-error-message")
|
|
71
78
|
], e);
|
|
72
79
|
export {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
/**
|
|
3
4
|
* Form header component with animated title, subtitle, and optional notice.
|
|
4
5
|
* Uses design-tokens form classes (.form-title, .form-subtitle).
|
|
@@ -13,7 +14,7 @@ export declare class TcFormHeader extends LitElement {
|
|
|
13
14
|
subtitle: string;
|
|
14
15
|
notice: string;
|
|
15
16
|
noAnimation: boolean;
|
|
16
|
-
sx:
|
|
17
|
+
sx: SxProps;
|
|
17
18
|
static styles: import('lit').CSSResult[];
|
|
18
19
|
render(): import('lit').TemplateResult<1>;
|
|
19
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-form-header.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-form-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tc-form-header.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-form-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;GAQG;AACH,qBACa,YAAa,SAAQ,UAAU;IACd,KAAK,SAAM;IACX,QAAQ,SAAM;IACd,MAAM,SAAM;IACgB,WAAW,UAAS;IAChD,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BAsEpB;IAEO,MAAM;CA6BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { css as p, LitElement as c, html as n } from "lit";
|
|
2
2
|
import { property as r, customElement as f } from "lit/decorators.js";
|
|
3
|
-
import { styleMap as
|
|
4
|
-
import { sharedStyles as
|
|
3
|
+
import { styleMap as h } from "lit/directives/style-map.js";
|
|
4
|
+
import { sharedStyles as u } from "../styles/shared.js";
|
|
5
5
|
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, a = (i, o, m, s) => {
|
|
6
6
|
for (var e = s > 1 ? void 0 : s ? b(o, m) : o, l = i.length - 1, d; l >= 0; l--)
|
|
7
7
|
(d = i[l]) && (e = (s ? d(o, m, e) : d(e)) || e);
|
|
8
8
|
return s && e && v(o, m, e), e;
|
|
9
9
|
};
|
|
10
|
-
let t = class extends
|
|
10
|
+
let t = class extends c {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.title = "", this.subtitle = "", this.notice = "", this.noAnimation = !1, this.sx = {};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
15
|
const i = !this.noAnimation;
|
|
16
16
|
return n`
|
|
17
|
-
<header part="header" class="header" style=${
|
|
17
|
+
<header part="header" class="header" style=${h(this.sx)}>
|
|
18
18
|
${this.title ? n`<h1 part="title" class="form-title ${i ? "form-title--animated" : ""}">
|
|
19
19
|
${this.title}
|
|
20
20
|
</h1>` : ""}
|
|
@@ -29,10 +29,12 @@ let t = class extends p {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
t.styles = [
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
u,
|
|
33
|
+
p`
|
|
34
34
|
:host {
|
|
35
35
|
display: block;
|
|
36
|
+
width: 100%;
|
|
37
|
+
min-width: 0;
|
|
36
38
|
text-align: center;
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import { SxProps } from '../types.js';
|
|
2
3
|
export type IconName = 'arrow-left' | 'arrow-right' | 'check' | 'x' | 'close' | 'chevron-right' | 'chevron-left' | 'error' | 'alert-circle' | 'info' | 'warning' | 'loading' | 'loader' | 'biometric' | 'email' | 'passkey' | 'bell' | 'download' | 'wifi-off' | 'apple' | 'google' | 'windows' | 'samsung' | 'phone' | 'success' | 'lock' | 'person' | 'device' | 'totp' | 'email-otp' | 'qrcode' | 'key';
|
|
3
4
|
/**
|
|
4
5
|
* An icon component with built-in icon set.
|
|
@@ -7,8 +8,7 @@ export type IconName = 'arrow-left' | 'arrow-right' | 'check' | 'x' | 'close' |
|
|
|
7
8
|
*/
|
|
8
9
|
export declare class TcIcon extends LitElement {
|
|
9
10
|
name: IconName;
|
|
10
|
-
|
|
11
|
-
color: string;
|
|
11
|
+
sx: SxProps;
|
|
12
12
|
static styles: import('lit').CSSResult;
|
|
13
13
|
render(): TemplateResult<1>;
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-icon.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGjE,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,aAAa,GACb,OAAO,GACP,GAAG,GACH,OAAO,GACP,eAAe,GACf,cAAc,GACd,OAAO,GACP,cAAc,GACd,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GAEV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GAET,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GAER,MAAM,GACN,WAAW,GACX,QAAQ,GACR,KAAK,CAAC;AAwCV;;;;GAIG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,IAAI,EAAE,QAAQ,CAAU;IACxB,
|
|
1
|
+
{"version":3,"file":"tc-icon.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,aAAa,GACb,OAAO,GACP,GAAG,GACH,OAAO,GACP,eAAe,GACf,cAAc,GACd,OAAO,GACP,cAAc,GACd,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GAEV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GAET,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GAER,MAAM,GACN,WAAW,GACX,QAAQ,GACR,KAAK,CAAC;AAwCV;;;;GAIG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,IAAI,EAAE,QAAQ,CAAU;IACxB,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,0BAkBpB;IAEO,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|