@transcodes/ui-components 0.4.7 → 0.4.9
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 +21 -0
- package/dist/primitives/tc-button.d.ts +3 -0
- package/dist/primitives/tc-button.d.ts.map +1 -1
- package/dist/primitives/tc-button.js +9 -9
- package/dist/primitives/tc-callout.d.ts +1 -0
- package/dist/primitives/tc-callout.d.ts.map +1 -1
- package/dist/primitives/tc-callout.js +12 -12
- package/dist/primitives/tc-card.d.ts +1 -0
- package/dist/primitives/tc-card.d.ts.map +1 -1
- package/dist/primitives/tc-card.js +8 -8
- 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 +13 -13
- package/dist/primitives/tc-container.d.ts +1 -0
- package/dist/primitives/tc-container.d.ts.map +1 -1
- package/dist/primitives/tc-container.js +5 -5
- package/dist/primitives/tc-divider.d.ts +1 -0
- package/dist/primitives/tc-divider.d.ts.map +1 -1
- package/dist/primitives/tc-divider.js +4 -4
- 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 +6 -6
- package/dist/primitives/tc-form-header.d.ts +4 -0
- package/dist/primitives/tc-form-header.d.ts.map +1 -1
- package/dist/primitives/tc-form-header.js +13 -13
- package/dist/primitives/tc-icon.d.ts +1 -0
- package/dist/primitives/tc-icon.d.ts.map +1 -1
- package/dist/primitives/tc-icon.js +1 -1
- package/dist/primitives/tc-input-with-chip.d.ts +9 -0
- package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
- package/dist/primitives/tc-input-with-chip.js +20 -20
- package/dist/primitives/tc-input.d.ts +11 -0
- package/dist/primitives/tc-input.d.ts.map +1 -1
- package/dist/primitives/tc-input.js +29 -29
- package/dist/primitives/tc-item-button.d.ts +2 -0
- package/dist/primitives/tc-item-button.d.ts.map +1 -1
- package/dist/primitives/tc-item-button.js +2 -2
- package/dist/primitives/tc-otp-input.d.ts +4 -0
- package/dist/primitives/tc-otp-input.d.ts.map +1 -1
- package/dist/primitives/tc-otp-input.js +16 -16
- package/dist/primitives/tc-page-decoration.d.ts +1 -0
- package/dist/primitives/tc-page-decoration.d.ts.map +1 -1
- package/dist/primitives/tc-page-decoration.js +5 -5
- package/dist/primitives/tc-spinner.d.ts +1 -0
- package/dist/primitives/tc-spinner.d.ts.map +1 -1
- package/dist/primitives/tc-spinner.js +3 -3
- package/dist/primitives/tc-text.d.ts +5 -0
- package/dist/primitives/tc-text.d.ts.map +1 -1
- package/dist/primitives/tc-text.js +11 -11
- package/dist/primitives/tc-toast.d.ts +4 -0
- package/dist/primitives/tc-toast.d.ts.map +1 -1
- package/dist/primitives/tc-toast.js +10 -10
- package/dist/screens/tc-error-screen.d.ts.map +1 -1
- package/dist/screens/tc-error-screen.js +15 -15
- package/dist/screens/tc-loading-screen.d.ts +1 -0
- package/dist/screens/tc-loading-screen.d.ts.map +1 -1
- package/dist/screens/tc-loading-screen.js +13 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,27 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.9] - 2026-01-24
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- 모든 primitive 컴포넌트에 `@attr` JSDoc 어노테이션 추가
|
|
13
|
+
- API 문서 자동 생성 및 IDE 자동완성 지원 향상
|
|
14
|
+
- tc-button, tc-callout, tc-card, tc-chip, tc-container, tc-divider, tc-error-message, tc-form-header, tc-icon, tc-input, tc-input-with-chip, tc-item-button, tc-otp-input, tc-page-decoration, tc-spinner, tc-text, tc-toast 대상
|
|
15
|
+
|
|
16
|
+
## [0.4.8] - 2026-01-24
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- 모든 컴포넌트의 `@property` 데코레이터에 `reflect: true` 옵션 추가
|
|
21
|
+
- 속성 값이 DOM 어트리뷰트에 자동으로 반영되어 CSS 어트리뷰트 선택자로 스타일링 가능
|
|
22
|
+
- 외부에서 컴포넌트 상태를 쿼리하거나 디버깅이 용이해짐
|
|
23
|
+
- tc-button, tc-callout, tc-card, tc-chip, tc-container, tc-divider, tc-error-message, tc-form-header, tc-icon, tc-input, tc-input-with-chip, tc-item-button, tc-otp-input, tc-page-decoration, tc-spinner, tc-text, tc-toast, tc-error-screen, tc-loading-screen 대상
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- **tc-loading-screen**: `submessage` 속성 추가
|
|
28
|
+
|
|
8
29
|
## [0.4.7] - 2026-01-13
|
|
9
30
|
|
|
10
31
|
### Fixed
|
|
@@ -8,6 +8,9 @@ import { SxProps } from '../types.js';
|
|
|
8
8
|
* @slot - Button content
|
|
9
9
|
* @csspart button - The button element
|
|
10
10
|
* @csspart spinner - The loading spinner
|
|
11
|
+
* @attr {boolean} disabled - Whether the button is disabled
|
|
12
|
+
* @attr {boolean} loading - Whether the button is in loading state
|
|
13
|
+
* @attr {string} variant - The button variant (primary | secondary | success)
|
|
11
14
|
*/
|
|
12
15
|
export declare class TcButton extends LitElement {
|
|
13
16
|
disabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
1
|
+
{"version":3,"file":"tc-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,qBACa,QAAS,SAAQ,UAAU;IACM,QAAQ,UAAS;IACjB,OAAO,UAAS;IACjB,OAAO,EAC9C,SAAS,GACT,WAAW,GACX,SAAS,CAAa;IACE,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BAoGpB;IAEO,MAAM;IA4Bf,OAAO,CAAC,WAAW;CAWpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { css as p, LitElement as u, html as l } from "lit";
|
|
2
|
-
import { property as
|
|
2
|
+
import { property as a, customElement as b } from "lit/decorators.js";
|
|
3
3
|
import { classMap as m } from "lit/directives/class-map.js";
|
|
4
4
|
import { styleMap as v } from "lit/directives/style-map.js";
|
|
5
5
|
import { sharedStyles as y } from "../styles/shared.js";
|
|
6
|
-
var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (n, i, s,
|
|
7
|
-
for (var t =
|
|
8
|
-
(
|
|
9
|
-
return
|
|
6
|
+
var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (n, i, s, r) => {
|
|
7
|
+
for (var t = r > 1 ? void 0 : r ? f(i, s) : i, c = n.length - 1, d; c >= 0; c--)
|
|
8
|
+
(d = n[c]) && (t = (r ? d(i, s, t) : d(t)) || t);
|
|
9
|
+
return r && t && h(i, s, t), t;
|
|
10
10
|
};
|
|
11
11
|
let e = class extends u {
|
|
12
12
|
constructor() {
|
|
@@ -149,16 +149,16 @@ e.styles = [
|
|
|
149
149
|
`
|
|
150
150
|
];
|
|
151
151
|
o([
|
|
152
|
-
|
|
152
|
+
a({ type: Boolean, reflect: !0 })
|
|
153
153
|
], e.prototype, "disabled", 2);
|
|
154
154
|
o([
|
|
155
|
-
|
|
155
|
+
a({ type: Boolean, reflect: !0 })
|
|
156
156
|
], e.prototype, "loading", 2);
|
|
157
157
|
o([
|
|
158
|
-
|
|
158
|
+
a({ type: String, reflect: !0 })
|
|
159
159
|
], e.prototype, "variant", 2);
|
|
160
160
|
o([
|
|
161
|
-
|
|
161
|
+
a({ type: Object })
|
|
162
162
|
], e.prototype, "sx", 2);
|
|
163
163
|
e = o([
|
|
164
164
|
b("tc-button")
|
|
@@ -9,6 +9,7 @@ import { SxProps } from '../types.js';
|
|
|
9
9
|
* @csspart callout - The callout container
|
|
10
10
|
* @csspart icon - The icon container
|
|
11
11
|
* @csspart content - The content container
|
|
12
|
+
* @attr {string} variant - The callout variant (info | success | warning | error)
|
|
12
13
|
*/
|
|
13
14
|
export declare class TcCallout extends LitElement {
|
|
14
15
|
variant: 'info' | 'success' | 'warning' | 'error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-callout.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-callout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
1
|
+
{"version":3,"file":"tc-callout.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-callout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,qBACa,SAAU,SAAQ,UAAU;IACI,OAAO,EAC9C,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAU;IACO,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BA0CpB;IAEO,MAAM;CAyBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -3,12 +3,12 @@ import { property as c, customElement as d } from "lit/decorators.js";
|
|
|
3
3
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
4
4
|
import { styleMap as u } from "lit/directives/style-map.js";
|
|
5
5
|
import { sharedStyles as y } from "../styles/shared.js";
|
|
6
|
-
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (s, e, i,
|
|
7
|
-
for (var t =
|
|
8
|
-
(a = s[n]) && (t = (
|
|
9
|
-
return
|
|
6
|
+
var h = Object.defineProperty, g = Object.getOwnPropertyDescriptor, l = (s, e, i, o) => {
|
|
7
|
+
for (var t = o > 1 ? void 0 : o ? g(e, i) : e, n = s.length - 1, a; n >= 0; n--)
|
|
8
|
+
(a = s[n]) && (t = (o ? a(e, i, t) : a(t)) || t);
|
|
9
|
+
return o && t && h(e, i, t), t;
|
|
10
10
|
};
|
|
11
|
-
let
|
|
11
|
+
let r = class extends m {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.variant = "info", this.sx = {};
|
|
14
14
|
}
|
|
@@ -34,7 +34,7 @@ let o = class extends m {
|
|
|
34
34
|
`;
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
r.styles = [
|
|
38
38
|
y,
|
|
39
39
|
p`
|
|
40
40
|
:host {
|
|
@@ -78,14 +78,14 @@ o.styles = [
|
|
|
78
78
|
`
|
|
79
79
|
];
|
|
80
80
|
l([
|
|
81
|
-
c({ type: String })
|
|
82
|
-
],
|
|
81
|
+
c({ type: String, reflect: !0 })
|
|
82
|
+
], r.prototype, "variant", 2);
|
|
83
83
|
l([
|
|
84
84
|
c({ type: Object })
|
|
85
|
-
],
|
|
86
|
-
|
|
85
|
+
], r.prototype, "sx", 2);
|
|
86
|
+
r = l([
|
|
87
87
|
d("tc-callout")
|
|
88
|
-
],
|
|
88
|
+
], r);
|
|
89
89
|
export {
|
|
90
|
-
|
|
90
|
+
r as TcCallout
|
|
91
91
|
};
|
|
@@ -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;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
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;;;;;;;GAOG;AACH,qBACa,MAAO,SAAQ,UAAU;IACgC,QAAQ,UACpE;IACoB,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 { css as
|
|
1
|
+
import { css as l, LitElement as p, 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
|
|
4
|
+
import { styleMap as u } from "lit/directives/style-map.js";
|
|
5
|
+
import { sharedStyles as h } from "../styles/shared.js";
|
|
6
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
9
|
return s && e && v(o, n, e), e;
|
|
10
10
|
};
|
|
11
|
-
let r = class extends
|
|
11
|
+
let r = class extends p {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments), this.noBorder = !1, this.sx = {};
|
|
14
14
|
}
|
|
@@ -18,7 +18,7 @@ let r = class extends l {
|
|
|
18
18
|
"card--no-border": this.noBorder
|
|
19
19
|
};
|
|
20
20
|
return f`
|
|
21
|
-
<div part="card" class=${b(t)} style=${
|
|
21
|
+
<div part="card" class=${b(t)} style=${u(this.sx)}>
|
|
22
22
|
<div class="card-content">
|
|
23
23
|
<slot></slot>
|
|
24
24
|
</div>
|
|
@@ -27,8 +27,8 @@ let r = class extends l {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
r.styles = [
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
h,
|
|
31
|
+
l`
|
|
32
32
|
:host {
|
|
33
33
|
display: block;
|
|
34
34
|
min-width: 0;
|
|
@@ -64,7 +64,7 @@ r.styles = [
|
|
|
64
64
|
`
|
|
65
65
|
];
|
|
66
66
|
d([
|
|
67
|
-
c({ type: Boolean, attribute: "no-border" })
|
|
67
|
+
c({ type: Boolean, reflect: !0, attribute: "no-border" })
|
|
68
68
|
], r.prototype, "noBorder", 2);
|
|
69
69
|
d([
|
|
70
70
|
c({ type: Object })
|
|
@@ -5,6 +5,8 @@ import { SxProps } from '../types.js';
|
|
|
5
5
|
*
|
|
6
6
|
* @slot - Chip content
|
|
7
7
|
* @csspart chip - The chip container
|
|
8
|
+
* @attr {string} variant - The chip variant (default | success | error | info)
|
|
9
|
+
* @attr {string} size - The chip size (sm | md)
|
|
8
10
|
*/
|
|
9
11
|
export declare class TcChip extends LitElement {
|
|
10
12
|
variant: 'default' | 'success' | 'error' | 'info';
|
|
@@ -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,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
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;;;;;;;GAOG;AACH,qBACa,MAAO,SAAQ,UAAU;IACO,OAAO,EAC9C,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IACoB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IACxC,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,4BAiDpB;IAEO,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { css as l, LitElement as
|
|
2
|
-
import { property as
|
|
1
|
+
import { css as l, LitElement as f, html as h } from "lit";
|
|
2
|
+
import { property as o, customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { styleMap as d } from "lit/directives/style-map.js";
|
|
4
|
-
import { sharedStyles as
|
|
5
|
-
var
|
|
6
|
-
for (var r = s > 1 ? void 0 : s ? y(t, a) : t, p = n.length - 1,
|
|
7
|
-
(
|
|
8
|
-
return s && r &&
|
|
4
|
+
import { sharedStyles as u } from "../styles/shared.js";
|
|
5
|
+
var v = 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, c; p >= 0; p--)
|
|
7
|
+
(c = n[p]) && (r = (s ? c(t, a, r) : c(r)) || r);
|
|
8
|
+
return s && r && v(t, a, r), r;
|
|
9
9
|
};
|
|
10
|
-
let e = class extends
|
|
10
|
+
let e = class extends f {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments), this.variant = "default", this.size = "md", this.sx = {};
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return
|
|
15
|
+
return h`
|
|
16
16
|
<span
|
|
17
17
|
part="chip"
|
|
18
18
|
class="chip chip--${this.variant} chip--${this.size}"
|
|
@@ -24,7 +24,7 @@ let e = class extends h {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
e.styles = [
|
|
27
|
-
|
|
27
|
+
u,
|
|
28
28
|
l`
|
|
29
29
|
:host {
|
|
30
30
|
display: inline-flex;
|
|
@@ -74,13 +74,13 @@ e.styles = [
|
|
|
74
74
|
`
|
|
75
75
|
];
|
|
76
76
|
i([
|
|
77
|
-
|
|
77
|
+
o({ type: String, reflect: !0 })
|
|
78
78
|
], e.prototype, "variant", 2);
|
|
79
79
|
i([
|
|
80
|
-
|
|
80
|
+
o({ type: String, reflect: !0 })
|
|
81
81
|
], e.prototype, "size", 2);
|
|
82
82
|
i([
|
|
83
|
-
|
|
83
|
+
o({ type: Object })
|
|
84
84
|
], e.prototype, "sx", 2);
|
|
85
85
|
e = i([
|
|
86
86
|
m("tc-chip")
|
|
@@ -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;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
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;;;;;;GAMG;AACH,qBACa,WAAY,SAAQ,UAAU;IACG,IAAI,UAAS;IAC7B,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,6 +1,6 @@
|
|
|
1
1
|
import { css as p, LitElement as d, html as m } from "lit";
|
|
2
|
-
import { property as c, customElement as
|
|
3
|
-
import { styleMap as
|
|
2
|
+
import { property as c, customElement as f } from "lit/decorators.js";
|
|
3
|
+
import { styleMap as h } from "lit/directives/style-map.js";
|
|
4
4
|
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, l = (r, i, o, s) => {
|
|
5
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);
|
|
@@ -24,7 +24,7 @@ let e = class extends d {
|
|
|
24
24
|
<div
|
|
25
25
|
part="container"
|
|
26
26
|
class="container ${this.wide ? "container--wide" : ""}"
|
|
27
|
-
style=${
|
|
27
|
+
style=${h(r)}
|
|
28
28
|
>
|
|
29
29
|
<slot></slot>
|
|
30
30
|
</div>
|
|
@@ -51,13 +51,13 @@ e.styles = p`
|
|
|
51
51
|
}
|
|
52
52
|
`;
|
|
53
53
|
l([
|
|
54
|
-
c({ type: Boolean })
|
|
54
|
+
c({ type: Boolean, reflect: !0 })
|
|
55
55
|
], e.prototype, "wide", 2);
|
|
56
56
|
l([
|
|
57
57
|
c({ type: Object })
|
|
58
58
|
], e.prototype, "sx", 2);
|
|
59
59
|
e = l([
|
|
60
|
-
|
|
60
|
+
f("tc-container")
|
|
61
61
|
], e);
|
|
62
62
|
export {
|
|
63
63
|
e as TcContainer
|
|
@@ -7,6 +7,7 @@ import { SxProps } from '../types.js';
|
|
|
7
7
|
* @csspart container - The container element (text mode)
|
|
8
8
|
* @csspart line - The line elements (text mode)
|
|
9
9
|
* @csspart text - The text element (text mode)
|
|
10
|
+
* @attr {string} text - The optional divider text
|
|
10
11
|
*/
|
|
11
12
|
export declare class TcDivider extends LitElement {
|
|
12
13
|
text: string;
|
|
@@ -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,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
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;;;;;;;;GAQG;AACH,qBACa,SAAU,SAAQ,UAAU;IACI,IAAI,SAAM;IACzB,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,10 +1,10 @@
|
|
|
1
1
|
import { css as c, LitElement as m, html as l } from "lit";
|
|
2
2
|
import { property as p, customElement as h } from "lit/decorators.js";
|
|
3
3
|
import { styleMap as v } from "lit/directives/style-map.js";
|
|
4
|
-
var
|
|
5
|
-
for (var r = t > 1 ? void 0 : t ?
|
|
4
|
+
var f = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (s, e, d, t) => {
|
|
5
|
+
for (var r = t > 1 ? void 0 : t ? x(e, d) : e, n = s.length - 1, o; n >= 0; n--)
|
|
6
6
|
(o = s[n]) && (r = (t ? o(e, d, r) : o(r)) || r);
|
|
7
|
-
return t && r &&
|
|
7
|
+
return t && r && f(e, d, r), r;
|
|
8
8
|
};
|
|
9
9
|
let i = class extends m {
|
|
10
10
|
constructor() {
|
|
@@ -65,7 +65,7 @@ i.styles = c`
|
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
67
|
a([
|
|
68
|
-
p({ type: String })
|
|
68
|
+
p({ type: String, reflect: !0 })
|
|
69
69
|
], i.prototype, "text", 2);
|
|
70
70
|
a([
|
|
71
71
|
p({ type: Object })
|
|
@@ -7,6 +7,8 @@ import { SxProps } from '../types.js';
|
|
|
7
7
|
* @csspart callout - The underlying callout container
|
|
8
8
|
* @csspart icon - The icon element
|
|
9
9
|
* @csspart message - The message text
|
|
10
|
+
* @attr {string} variant - The message variant (warning | info | error)
|
|
11
|
+
* @attr {string} message - The message text
|
|
10
12
|
*/
|
|
11
13
|
export declare class TcErrorMessage extends LitElement {
|
|
12
14
|
variant: 'warning' | 'info' | 'error';
|
|
@@ -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,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB
|
|
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;;;;;;;;;GASG;AACH,qBACa,cAAe,SAAQ,UAAU;IACD,OAAO,EAC9C,SAAS,GACT,MAAM,GACN,OAAO,CAAW;IACqB,OAAO,SAAM;IAC5B,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,5 +1,5 @@
|
|
|
1
|
-
import { css as p, LitElement as m, html as
|
|
2
|
-
import { property as c, customElement as
|
|
1
|
+
import { css as p, LitElement as m, html as u } from "lit";
|
|
2
|
+
import { property as c, customElement as g } from "lit/decorators.js";
|
|
3
3
|
import "./tc-callout.js";
|
|
4
4
|
import "./tc-icon.js";
|
|
5
5
|
import "./tc-text.js";
|
|
@@ -33,7 +33,7 @@ let e = class extends m {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return this.message ?
|
|
36
|
+
return this.message ? u`
|
|
37
37
|
<tc-callout part="callout" variant=${this.variant} .sx=${this.sx}>
|
|
38
38
|
<tc-icon
|
|
39
39
|
slot="icon"
|
|
@@ -65,16 +65,16 @@ e.styles = p`
|
|
|
65
65
|
}
|
|
66
66
|
`;
|
|
67
67
|
a([
|
|
68
|
-
c({ type: String })
|
|
68
|
+
c({ type: String, reflect: !0 })
|
|
69
69
|
], e.prototype, "variant", 2);
|
|
70
70
|
a([
|
|
71
|
-
c({ type: String })
|
|
71
|
+
c({ type: String, reflect: !0 })
|
|
72
72
|
], e.prototype, "message", 2);
|
|
73
73
|
a([
|
|
74
74
|
c({ type: Object })
|
|
75
75
|
], e.prototype, "sx", 2);
|
|
76
76
|
e = a([
|
|
77
|
-
|
|
77
|
+
g("tc-error-message")
|
|
78
78
|
], e);
|
|
79
79
|
export {
|
|
80
80
|
e as TcErrorMessage
|
|
@@ -8,6 +8,10 @@ import { SxProps } from '../types.js';
|
|
|
8
8
|
* @csspart title - The title element
|
|
9
9
|
* @csspart subtitle - The subtitle element
|
|
10
10
|
* @csspart notice - The notice element
|
|
11
|
+
* @attr {string} title - The form title
|
|
12
|
+
* @attr {string} subtitle - The form subtitle
|
|
13
|
+
* @attr {string} notice - The optional notice text
|
|
14
|
+
* @attr {boolean} no-animation - Disable animations
|
|
11
15
|
*/
|
|
12
16
|
export declare class TcFormHeader extends LitElement {
|
|
13
17
|
title: string;
|
|
@@ -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;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C
|
|
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;;;;;;;;;;;;GAYG;AACH,qBACa,YAAa,SAAQ,UAAU;IACC,KAAK,SAAM;IACX,QAAQ,SAAM;IACd,MAAM,SAAM;IAEvD,WAAW,UAAS;IACQ,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 { css as
|
|
1
|
+
import { css as d, LitElement as p, 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 u } from "lit/directives/style-map.js";
|
|
4
|
+
import { sharedStyles as h } from "../styles/shared.js";
|
|
5
5
|
var v = Object.defineProperty, b = Object.getOwnPropertyDescriptor, a = (i, o, m, s) => {
|
|
6
|
-
for (var e = s > 1 ? void 0 : s ? b(o, m) : o, l = i.length - 1,
|
|
7
|
-
(
|
|
6
|
+
for (var e = s > 1 ? void 0 : s ? b(o, m) : o, l = i.length - 1, c; l >= 0; l--)
|
|
7
|
+
(c = i[l]) && (e = (s ? c(o, m, e) : c(e)) || e);
|
|
8
8
|
return s && e && v(o, m, e), e;
|
|
9
9
|
};
|
|
10
|
-
let t = class extends
|
|
10
|
+
let t = class extends p {
|
|
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=${u(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,8 +29,8 @@ let t = class extends c {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
t.styles = [
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
h,
|
|
33
|
+
d`
|
|
34
34
|
:host {
|
|
35
35
|
display: block;
|
|
36
36
|
width: 100%;
|
|
@@ -100,16 +100,16 @@ t.styles = [
|
|
|
100
100
|
`
|
|
101
101
|
];
|
|
102
102
|
a([
|
|
103
|
-
r({ type: String })
|
|
103
|
+
r({ type: String, reflect: !0 })
|
|
104
104
|
], t.prototype, "title", 2);
|
|
105
105
|
a([
|
|
106
|
-
r({ type: String })
|
|
106
|
+
r({ type: String, reflect: !0 })
|
|
107
107
|
], t.prototype, "subtitle", 2);
|
|
108
108
|
a([
|
|
109
|
-
r({ type: String })
|
|
109
|
+
r({ type: String, reflect: !0 })
|
|
110
110
|
], t.prototype, "notice", 2);
|
|
111
111
|
a([
|
|
112
|
-
r({ type: Boolean, attribute: "no-animation" })
|
|
112
|
+
r({ type: Boolean, reflect: !0, attribute: "no-animation" })
|
|
113
113
|
], t.prototype, "noAnimation", 2);
|
|
114
114
|
a([
|
|
115
115
|
r({ type: Object })
|
|
@@ -5,6 +5,7 @@ export type IconName = 'arrow-left' | 'arrow-right' | 'check' | 'x' | 'close' |
|
|
|
5
5
|
* An icon component with built-in icon set.
|
|
6
6
|
*
|
|
7
7
|
* @csspart icon - The icon container
|
|
8
|
+
* @attr {string} name - The icon name
|
|
8
9
|
*/
|
|
9
10
|
export declare class TcIcon extends LitElement {
|
|
10
11
|
name: IconName;
|
|
@@ -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,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
|
|
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;;;;;GAKG;AACH,qBACa,MAAO,SAAQ,UAAU;IACO,IAAI,EAAE,QAAQ,CAAU;IACvC,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"}
|
|
@@ -10,6 +10,15 @@ import { SxProps } from '../types.js';
|
|
|
10
10
|
* @csspart wrapper - The input wrapper container
|
|
11
11
|
* @csspart input - The input element
|
|
12
12
|
* @csspart chip - The chip element
|
|
13
|
+
* @attr {string} label - The input label
|
|
14
|
+
* @attr {string} placeholder - The placeholder text
|
|
15
|
+
* @attr {string} value - The input value
|
|
16
|
+
* @attr {string} error - The error message
|
|
17
|
+
* @attr {boolean} disabled - Whether the input is disabled
|
|
18
|
+
* @attr {boolean} readonly - Whether the input is readonly
|
|
19
|
+
* @attr {string} chip-label - The chip label text
|
|
20
|
+
* @attr {string} chip-icon - The chip icon name
|
|
21
|
+
* @attr {string} chip-variant - The chip variant (default | success | error | info)
|
|
13
22
|
*/
|
|
14
23
|
export declare class TcInputWithChip extends LitElement {
|
|
15
24
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tc-input-with-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input-with-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAGtB
|
|
1
|
+
{"version":3,"file":"tc-input-with-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input-with-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAGtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACF,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAE7D,SAAS,SAAM;IACoD,QAAQ,SACtE;IAEL,WAAW,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAa;IACtC,EAAE,EAAE,OAAO,CAAM;IAEpC,OAAO,CAAC,OAAO,CACiC;IAChD,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAgB,MAAM,4BA6GpB;IAEO,MAAM;IAoEf,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAUrB,KAAK;CAIN;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,eAAe,CAAC;KACvC;CACF"}
|