@transcodes/ui-components 0.3.5 → 0.3.6

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/controllers/index.d.ts +0 -2
  3. package/dist/controllers/index.d.ts.map +1 -1
  4. package/dist/controllers/index.js +10 -12
  5. package/dist/index.d.ts +0 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +48 -64
  8. package/dist/primitives/index.d.ts +1 -0
  9. package/dist/primitives/index.d.ts.map +1 -1
  10. package/dist/primitives/index.js +18 -16
  11. package/dist/primitives/tc-box.js +4 -4
  12. package/dist/primitives/tc-button.d.ts.map +1 -1
  13. package/dist/primitives/tc-button.js +21 -20
  14. package/dist/primitives/tc-callout.d.ts.map +1 -1
  15. package/dist/primitives/tc-callout.js +5 -4
  16. package/dist/primitives/tc-card.d.ts.map +1 -1
  17. package/dist/primitives/tc-card.js +11 -10
  18. package/dist/primitives/tc-chip.d.ts.map +1 -1
  19. package/dist/primitives/tc-chip.js +18 -16
  20. package/dist/primitives/tc-container.d.ts.map +1 -1
  21. package/dist/primitives/tc-container.js +12 -10
  22. package/dist/primitives/tc-divider.d.ts.map +1 -1
  23. package/dist/primitives/tc-divider.js +4 -3
  24. package/dist/primitives/tc-error-message.d.ts.map +1 -1
  25. package/dist/primitives/tc-error-message.js +13 -9
  26. package/dist/primitives/tc-form-header.d.ts.map +1 -1
  27. package/dist/primitives/tc-form-header.js +9 -7
  28. package/dist/primitives/tc-icon.js +3 -3
  29. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
  30. package/dist/primitives/tc-input-with-chip.js +12 -8
  31. package/dist/primitives/tc-input.d.ts.map +1 -1
  32. package/dist/primitives/tc-input.js +11 -9
  33. package/dist/primitives/tc-item-button.d.ts.map +1 -1
  34. package/dist/primitives/tc-item-button.js +18 -17
  35. package/dist/primitives/tc-item.d.ts.map +1 -1
  36. package/dist/primitives/tc-item.js +13 -12
  37. package/dist/primitives/tc-otp-input.d.ts.map +1 -1
  38. package/dist/primitives/tc-otp-input.js +6 -4
  39. package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
  40. package/dist/{widgets → primitives}/tc-page-decoration.js +8 -8
  41. package/dist/primitives/tc-section.d.ts.map +1 -1
  42. package/dist/primitives/tc-section.js +15 -13
  43. package/dist/primitives/tc-spinner.js +17 -17
  44. package/dist/primitives/tc-symbol.d.ts.map +1 -1
  45. package/dist/primitives/tc-symbol.js +15 -13
  46. package/dist/primitives/tc-text.js +3 -3
  47. package/dist/primitives/tc-toast.js +3 -3
  48. package/dist/screens/tc-error-screen.d.ts +6 -1
  49. package/dist/screens/tc-error-screen.d.ts.map +1 -1
  50. package/dist/screens/tc-error-screen.js +84 -29
  51. package/dist/screens/tc-loading-screen.d.ts +1 -1
  52. package/dist/screens/tc-loading-screen.d.ts.map +1 -1
  53. package/dist/screens/tc-loading-screen.js +16 -11
  54. package/dist/screens/tc-success-screen.d.ts.map +1 -1
  55. package/dist/screens/tc-success-screen.js +19 -13
  56. package/package.json +13 -13
  57. package/dist/controllers/form-validation.controller.d.ts +0 -48
  58. package/dist/controllers/form-validation.controller.d.ts.map +0 -1
  59. package/dist/controllers/form-validation.controller.js +0 -49
  60. package/dist/widgets/index.d.ts +0 -9
  61. package/dist/widgets/index.d.ts.map +0 -1
  62. package/dist/widgets/index.js +0 -18
  63. package/dist/widgets/tc-authenticator-card.d.ts +0 -35
  64. package/dist/widgets/tc-authenticator-card.d.ts.map +0 -1
  65. package/dist/widgets/tc-authenticator-card.js +0 -213
  66. package/dist/widgets/tc-floating-button.d.ts +0 -25
  67. package/dist/widgets/tc-floating-button.d.ts.map +0 -1
  68. package/dist/widgets/tc-floating-button.js +0 -132
  69. package/dist/widgets/tc-iframe-modal.d.ts +0 -43
  70. package/dist/widgets/tc-iframe-modal.d.ts.map +0 -1
  71. package/dist/widgets/tc-iframe-modal.js +0 -263
  72. package/dist/widgets/tc-installation-banner.d.ts +0 -42
  73. package/dist/widgets/tc-installation-banner.d.ts.map +0 -1
  74. package/dist/widgets/tc-installation-banner.js +0 -234
  75. package/dist/widgets/tc-ios-installation-guide.d.ts +0 -34
  76. package/dist/widgets/tc-ios-installation-guide.d.ts.map +0 -1
  77. package/dist/widgets/tc-ios-installation-guide.js +0 -240
  78. package/dist/widgets/tc-notification-modal.d.ts +0 -42
  79. package/dist/widgets/tc-notification-modal.d.ts.map +0 -1
  80. package/dist/widgets/tc-notification-modal.js +0 -230
  81. package/dist/widgets/tc-offline-modal.d.ts +0 -39
  82. package/dist/widgets/tc-offline-modal.d.ts.map +0 -1
  83. package/dist/widgets/tc-offline-modal.js +0 -202
  84. package/dist/widgets/tc-page-decoration.d.ts.map +0 -1
  85. /package/dist/{widgets → primitives}/tc-page-decoration.d.ts +0 -0
@@ -1,10 +1,10 @@
1
- import { LitElement as a, html as m, css as y } from "lit";
2
- import { property as n, customElement as f } from "lit/decorators.js";
1
+ import { css as m, LitElement as a, html as y } from "lit";
2
+ import { property as l, customElement as f } from "lit/decorators.js";
3
3
  import { styleMap as h } from "lit/directives/style-map.js";
4
- var u = Object.defineProperty, d = Object.getOwnPropertyDescriptor, l = (s, r, p, o) => {
5
- for (var t = o > 1 ? void 0 : o ? d(r, p) : r, c = s.length - 1, i; c >= 0; c--)
6
- (i = s[c]) && (t = (o ? i(r, p, t) : i(t)) || t);
7
- return o && t && u(r, p, t), t;
4
+ var d = Object.defineProperty, x = Object.getOwnPropertyDescriptor, n = (s, r, p, o) => {
5
+ for (var t = o > 1 ? void 0 : o ? x(r, p) : r, i = s.length - 1, c; i >= 0; i--)
6
+ (c = s[i]) && (t = (o ? c(r, p, t) : c(t)) || t);
7
+ return o && t && d(r, p, t), t;
8
8
  };
9
9
  let e = class extends a {
10
10
  constructor() {
@@ -15,32 +15,34 @@ let e = class extends a {
15
15
  gap: this.gap,
16
16
  ...this.sx
17
17
  };
18
- return m`
18
+ return y`
19
19
  <section part="section" class="section" style=${h(s)}>
20
20
  <slot></slot>
21
21
  </section>
22
22
  `;
23
23
  }
24
24
  };
25
- e.styles = y`
25
+ e.styles = m`
26
26
  :host {
27
27
  display: block;
28
28
  width: 100%;
29
+ min-width: 0;
29
30
  }
30
31
 
31
32
  .section {
32
33
  display: flex;
33
34
  flex-direction: column;
34
35
  width: 100%;
36
+ box-sizing: border-box;
35
37
  }
36
38
  `;
37
- l([
38
- n({ type: String })
39
+ n([
40
+ l({ type: String })
39
41
  ], e.prototype, "gap", 2);
40
- l([
41
- n({ type: Object })
42
+ n([
43
+ l({ type: Object })
42
44
  ], e.prototype, "sx", 2);
43
- e = l([
45
+ e = n([
44
46
  f("tc-section")
45
47
  ], e);
46
48
  export {
@@ -1,19 +1,19 @@
1
- import { LitElement as d, html as h, css as m } from "lit";
2
- import { property as l, customElement as c } from "lit/decorators.js";
3
- import { MatchMediaController as v } from "../controllers/match-media.controller.js";
1
+ import { css as d, LitElement as h, html as v } from "lit";
2
+ import { property as l, customElement as m } from "lit/decorators.js";
3
+ import { MatchMediaController as c } from "../controllers/match-media.controller.js";
4
4
  import { sharedStyles as b } from "../styles/shared.js";
5
- var w = Object.defineProperty, z = Object.getOwnPropertyDescriptor, a = (e, s, n, t) => {
6
- for (var r = t > 1 ? void 0 : t ? z(s, n) : s, o = e.length - 1, p; o >= 0; o--)
7
- (p = e[o]) && (r = (t ? p(s, n, r) : p(r)) || r);
5
+ var w = Object.defineProperty, z = Object.getOwnPropertyDescriptor, p = (e, s, n, t) => {
6
+ for (var r = t > 1 ? void 0 : t ? z(s, n) : s, o = e.length - 1, a; o >= 0; o--)
7
+ (a = e[o]) && (r = (t ? a(s, n, r) : a(r)) || r);
8
8
  return t && r && w(s, n, r), r;
9
9
  };
10
- let i = class extends d {
10
+ let i = class extends h {
11
11
  constructor() {
12
- super(...arguments), this.mobile = new v(this, "(max-width: 768px)"), this.size = "auto", this.color = "var(--accent-primary)";
12
+ super(...arguments), this.mobile = new c(this, "(max-width: 768px)"), this.size = "auto", this.color = "var(--accent-primary)";
13
13
  }
14
14
  render() {
15
15
  let e;
16
- return this.size === "auto" ? e = this.mobile.matches ? "spinner--auto-mobile" : "spinner--auto-desktop" : e = `spinner--${this.size}`, h`
16
+ return this.size === "auto" ? e = this.mobile.matches ? "spinner--auto-mobile" : "spinner--auto-desktop" : e = `spinner--${this.size}`, v`
17
17
  <div
18
18
  part="spinner"
19
19
  class="spinner ${e}"
@@ -26,7 +26,7 @@ let i = class extends d {
26
26
  };
27
27
  i.styles = [
28
28
  b,
29
- m`
29
+ d`
30
30
  :host {
31
31
  display: inline-flex;
32
32
  align-items: center;
@@ -35,7 +35,7 @@ i.styles = [
35
35
 
36
36
  .spinner {
37
37
  display: block;
38
- border-radius: 50%;
38
+ border-radius: var(--radius-full);
39
39
  border-style: solid;
40
40
  border-color: var(--paper-cream);
41
41
  border-top-color: var(--spinner-color);
@@ -67,20 +67,20 @@ i.styles = [
67
67
  }
68
68
 
69
69
  .spinner--auto-desktop {
70
- width: 5rem;
71
- height: 5rem;
70
+ width: var(--size-spinner-xl);
71
+ height: var(--size-spinner-xl);
72
72
  border-width: var(--size-border-width-bold);
73
73
  }
74
74
  `
75
75
  ];
76
- a([
76
+ p([
77
77
  l({ type: String })
78
78
  ], i.prototype, "size", 2);
79
- a([
79
+ p([
80
80
  l({ type: String })
81
81
  ], i.prototype, "color", 2);
82
- i = a([
83
- c("tc-spinner")
82
+ i = p([
83
+ m("tc-spinner")
84
84
  ], i);
85
85
  export {
86
86
  i as TcSpinner
@@ -1 +1 @@
1
- {"version":3,"file":"tc-symbol.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;GAKG;AACH,qBACa,QAAS,SAAQ,UAAU;IACV,IAAI,SAAU;IACd,UAAU,SAAwB;IAClC,KAAK,SAAqB;IAEtD,OAAgB,MAAM,0BAiBpB;IAEO,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
1
+ {"version":3,"file":"tc-symbol.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;GAKG;AACH,qBACa,QAAS,SAAQ,UAAU;IACV,IAAI,SAAU;IACd,UAAU,SAAwB;IAClC,KAAK,SAAqB;IAEtD,OAAgB,MAAM,0BAmBpB;IAEO,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -1,11 +1,11 @@
1
- import { LitElement as m, html as p, css as c } from "lit";
1
+ import { css as y, LitElement as m, html as p } from "lit";
2
2
  import { property as a, customElement as b } from "lit/decorators.js";
3
- var v = Object.defineProperty, f = Object.getOwnPropertyDescriptor, s = (y, t, l, e) => {
4
- for (var r = e > 1 ? void 0 : e ? f(t, l) : t, i = y.length - 1, n; i >= 0; i--)
5
- (n = y[i]) && (r = (e ? n(t, l, r) : n(r)) || r);
6
- return e && r && v(t, l, r), r;
3
+ var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, s = (c, e, l, o) => {
4
+ for (var r = o > 1 ? void 0 : o ? u(e, l) : e, i = c.length - 1, n; i >= 0; i--)
5
+ (n = c[i]) && (r = (o ? n(e, l, r) : n(r)) || r);
6
+ return o && r && f(e, l, r), r;
7
7
  };
8
- let o = class extends m {
8
+ let t = class extends m {
9
9
  constructor() {
10
10
  super(...arguments), this.size = "3rem", this.background = "var(--paper-cream)", this.color = "var(--ink-dark)";
11
11
  }
@@ -21,9 +21,11 @@ let o = class extends m {
21
21
  `;
22
22
  }
23
23
  };
24
- o.styles = c`
24
+ t.styles = y`
25
25
  :host {
26
26
  display: inline-flex;
27
+ align-items: center;
28
+ justify-content: center;
27
29
  }
28
30
 
29
31
  .symbol {
@@ -41,16 +43,16 @@ o.styles = c`
41
43
  `;
42
44
  s([
43
45
  a({ type: String })
44
- ], o.prototype, "size", 2);
46
+ ], t.prototype, "size", 2);
45
47
  s([
46
48
  a({ type: String })
47
- ], o.prototype, "background", 2);
49
+ ], t.prototype, "background", 2);
48
50
  s([
49
51
  a({ type: String })
50
- ], o.prototype, "color", 2);
51
- o = s([
52
+ ], t.prototype, "color", 2);
53
+ t = s([
52
54
  b("tc-symbol")
53
- ], o);
55
+ ], t);
54
56
  export {
55
- o as TcSymbol
57
+ t as TcSymbol
56
58
  };
@@ -1,4 +1,4 @@
1
- import { LitElement as x, css as p } from "lit";
1
+ import { css as x, LitElement as p } from "lit";
2
2
  import { property as a, customElement as g } from "lit/decorators.js";
3
3
  import { styleMap as h } from "lit/directives/style-map.js";
4
4
  import { unsafeStatic as f, html as m } from "lit/static-html.js";
@@ -8,7 +8,7 @@ var v = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (r, o, s
8
8
  (l = r[c]) && (e = (i ? l(o, s, e) : l(e)) || e);
9
9
  return i && e && v(o, s, e), e;
10
10
  };
11
- let t = class extends x {
11
+ let t = class extends p {
12
12
  constructor() {
13
13
  super(...arguments), this.tag = "p", this.sx = {};
14
14
  }
@@ -48,7 +48,7 @@ let t = class extends x {
48
48
  };
49
49
  t.styles = [
50
50
  y,
51
- p`
51
+ x`
52
52
  :host {
53
53
  display: contents;
54
54
  }
@@ -1,4 +1,4 @@
1
- import { LitElement as h, html as d, css as m } from "lit";
1
+ import { css as h, LitElement as m, html as d } from "lit";
2
2
  import { property as o, customElement as p } from "lit/decorators.js";
3
3
  import { AnimationController as u } from "../controllers/animation.controller.js";
4
4
  import { sharedStyles as v } from "../styles/shared.js";
@@ -7,7 +7,7 @@ var y = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (c, e, r
7
7
  (l = c[n]) && (t = (a ? l(e, r, t) : l(t)) || t);
8
8
  return a && t && y(e, r, t), t;
9
9
  };
10
- let s = class extends h {
10
+ let s = class extends m {
11
11
  constructor() {
12
12
  super(...arguments), this.variant = "info", this.duration = 5e3, this.autoDismiss = !0, this.dismissible = !0, this.animation = new u(this, {
13
13
  showDuration: 300,
@@ -77,7 +77,7 @@ let s = class extends h {
77
77
  };
78
78
  s.styles = [
79
79
  v,
80
- m`
80
+ h`
81
81
  :host {
82
82
  display: block;
83
83
  position: fixed;
@@ -1,6 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
- * A full-screen error state with icon, message, and retry action.
3
+ * A full-screen error state with animated icon, message, and retry action.
4
4
  *
5
5
  * @fires tc-retry - Fired when the retry button is clicked
6
6
  * @csspart screen - The screen container
@@ -15,7 +15,12 @@ export declare class TcErrorScreen extends LitElement {
15
15
  message: string;
16
16
  retryLabel: string;
17
17
  showRetry: boolean;
18
+ autoAnimate: boolean;
19
+ private isAnimated;
20
+ private animation;
18
21
  static styles: import('lit').CSSResult;
22
+ connectedCallback(): void;
23
+ playAnimation(): Promise<void>;
19
24
  private handleRetry;
20
25
  render(): import('lit').TemplateResult<1>;
21
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tc-error-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-error-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAE5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AAErC;;;;;;;;;;GAUG;AACH,qBACa,aAAc,SAAQ,UAAU;IACf,KAAK,SAA0B;IAC/B,OAAO,SACiB;IACE,UAAU,SAClD;IACwC,SAAS,UAAQ;IAEvE,OAAgB,MAAM,0BAoDpB;IAEF,OAAO,CAAC,WAAW;IASV,MAAM;CAgChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
1
+ {"version":3,"file":"tc-error-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-error-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AAErC;;;;;;;;;;GAUG;AACH,qBACa,aAAc,SAAQ,UAAU;IACf,KAAK,SAA0B;IAC/B,OAAO,SACiB;IACE,UAAU,SAClD;IACwC,SAAS,UAAQ;IACf,WAAW,UAAQ;IAElE,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,SAAS,CAGd;IAEH,OAAgB,MAAM,0BAmFpB;IAEO,iBAAiB;IASpB,aAAa;IAKnB,OAAO,CAAC,WAAW;IASV,MAAM;CAkChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
@@ -1,13 +1,30 @@
1
- import { LitElement as m, html as p, css as h } from "lit";
2
- import { property as s, customElement as g } from "lit/decorators.js";
3
- var d = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (l, i, a, n) => {
4
- for (var t = n > 1 ? void 0 : n ? y(i, a) : i, c = l.length - 1, o; c >= 0; c--)
5
- (o = l[c]) && (t = (n ? o(i, a, t) : o(t)) || t);
6
- return n && t && d(i, a, t), t;
1
+ import { css as p, LitElement as d, html as m } from "lit";
2
+ import { property as i, state as h, customElement as y } from "lit/decorators.js";
3
+ import { AnimationController as u } from "../controllers/animation.controller.js";
4
+ import "../primitives/tc-icon.js";
5
+ import "../primitives/tc-text.js";
6
+ import "../primitives/tc-button.js";
7
+ import "../primitives/tc-container.js";
8
+ import "../primitives/tc-section.js";
9
+ var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, r = (a, n, o, s) => {
10
+ for (var e = s > 1 ? void 0 : s ? f(n, o) : n, c = a.length - 1, l; c >= 0; c--)
11
+ (l = a[c]) && (e = (s ? l(n, o, e) : l(e)) || e);
12
+ return s && e && g(n, o, e), e;
7
13
  };
8
- let e = class extends m {
14
+ let t = class extends d {
9
15
  constructor() {
10
- super(...arguments), this.title = "Something went wrong", this.message = "An unexpected error occurred. Please try again.", this.retryLabel = "Try Again", this.showRetry = !0;
16
+ super(...arguments), this.title = "Something went wrong", this.message = "An unexpected error occurred. Please try again.", this.retryLabel = "Try Again", this.showRetry = !0, this.autoAnimate = !0, this.isAnimated = !1, this.animation = new u(this, {
17
+ showDuration: 600,
18
+ hideDuration: 300
19
+ });
20
+ }
21
+ connectedCallback() {
22
+ super.connectedCallback(), this.autoAnimate && requestAnimationFrame(() => {
23
+ this.playAnimation();
24
+ });
25
+ }
26
+ async playAnimation() {
27
+ await this.animation.show(), this.isAnimated = !0;
11
28
  }
12
29
  handleRetry() {
13
30
  this.dispatchEvent(
@@ -18,14 +35,15 @@ let e = class extends m {
18
35
  );
19
36
  }
20
37
  render() {
21
- return p`
38
+ const a = this.isAnimated ? "animated" : "";
39
+ return m`
22
40
  <div part="screen" class="screen">
23
41
  <tc-container>
24
42
  <div part="content" class="content">
25
- <div part="icon" class="icon-container">
26
- <tc-icon name="alert-circle" size="2rem"></tc-icon>
43
+ <div part="icon" class="icon-container ${a}">
44
+ <tc-icon name="alert-circle" size="var(--size-icon-xl)"></tc-icon>
27
45
  </div>
28
- <tc-section gap="var(--space-sm)">
46
+ <tc-section gap="var(--space-sm)" class="text-content ${a}">
29
47
  <tc-text part="title" tag="h1" size="xl" weight="600" class="title">
30
48
  ${this.title}
31
49
  </tc-text>
@@ -33,8 +51,8 @@ let e = class extends m {
33
51
  ${this.message}
34
52
  </tc-text>
35
53
  </tc-section>
36
- ${this.showRetry ? p`
37
- <div part="action" class="action">
54
+ ${this.showRetry ? m`
55
+ <div part="action" class="action ${a}">
38
56
  <tc-button variant="primary" @tc-click=${this.handleRetry}>
39
57
  ${this.retryLabel}
40
58
  </tc-button>
@@ -46,12 +64,13 @@ let e = class extends m {
46
64
  `;
47
65
  }
48
66
  };
49
- e.styles = h`
67
+ t.styles = p`
50
68
  :host {
51
69
  display: flex;
52
70
  align-items: center;
53
71
  justify-content: center;
54
72
  width: 100%;
73
+ height: 100%;
55
74
  min-height: inherit;
56
75
  }
57
76
 
@@ -60,6 +79,7 @@ e.styles = h`
60
79
  align-items: center;
61
80
  justify-content: center;
62
81
  width: 100%;
82
+ height: 100%;
63
83
  min-height: inherit;
64
84
  padding: var(--space-lg);
65
85
  box-sizing: border-box;
@@ -79,11 +99,19 @@ e.styles = h`
79
99
  display: flex;
80
100
  align-items: center;
81
101
  justify-content: center;
82
- width: 4rem;
83
- height: 4rem;
102
+ padding: var(--space-md);
84
103
  background: var(--error-bg);
85
104
  border-radius: var(--radius-full);
86
105
  color: var(--error-base);
106
+ transform: scale(0);
107
+ opacity: 0;
108
+ transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
109
+ opacity 0.3s ease;
110
+ }
111
+
112
+ .icon-container.animated {
113
+ transform: scale(1);
114
+ opacity: 1;
87
115
  }
88
116
 
89
117
  .title {
@@ -94,26 +122,53 @@ e.styles = h`
94
122
  color: var(--ink-medium);
95
123
  }
96
124
 
125
+ .text-content {
126
+ opacity: 0;
127
+ transform: translateY(var(--offset-slide-up-md));
128
+ transition: opacity 0.4s ease, transform 0.4s ease;
129
+ transition-delay: 0.4s;
130
+ }
131
+
132
+ .text-content.animated {
133
+ opacity: 1;
134
+ transform: translateY(0);
135
+ }
136
+
97
137
  .action {
98
138
  width: 100%;
99
139
  margin-top: var(--space-md);
140
+ opacity: 0;
141
+ transform: translateY(var(--offset-slide-up-md));
142
+ transition: opacity 0.4s ease, transform 0.4s ease;
143
+ transition-delay: 0.6s;
144
+ }
145
+
146
+ .action.animated {
147
+ opacity: 1;
148
+ transform: translateY(0);
100
149
  }
101
150
  `;
102
151
  r([
103
- s({ type: String })
104
- ], e.prototype, "title", 2);
152
+ i({ type: String })
153
+ ], t.prototype, "title", 2);
154
+ r([
155
+ i({ type: String })
156
+ ], t.prototype, "message", 2);
157
+ r([
158
+ i({ type: String, attribute: "retry-label" })
159
+ ], t.prototype, "retryLabel", 2);
105
160
  r([
106
- s({ type: String })
107
- ], e.prototype, "message", 2);
161
+ i({ type: Boolean, attribute: "show-retry" })
162
+ ], t.prototype, "showRetry", 2);
108
163
  r([
109
- s({ type: String, attribute: "retry-label" })
110
- ], e.prototype, "retryLabel", 2);
164
+ i({ type: Boolean, attribute: "auto-animate" })
165
+ ], t.prototype, "autoAnimate", 2);
111
166
  r([
112
- s({ type: Boolean, attribute: "show-retry" })
113
- ], e.prototype, "showRetry", 2);
114
- e = r([
115
- g("tc-error-screen")
116
- ], e);
167
+ h()
168
+ ], t.prototype, "isAnimated", 2);
169
+ t = r([
170
+ y("tc-error-screen")
171
+ ], t);
117
172
  export {
118
- e as TcErrorScreen
173
+ t as TcErrorScreen
119
174
  };
@@ -9,7 +9,7 @@ import { LitElement } from 'lit';
9
9
  */
10
10
  export declare class TcLoadingScreen extends LitElement {
11
11
  message: string;
12
- spinnerSize: string;
12
+ spinnerSize: 'sm' | 'md' | 'lg' | 'auto';
13
13
  private loading;
14
14
  static styles: import('lit').CSSResult;
15
15
  connectedCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"tc-loading-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-loading-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AAEvC;;;;;;;GAOG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,OAAO,SAAM;IACc,WAAW,SAAU;IAE5E,OAAO,CAAC,OAAO,CAA+B;IAE9C,OAAgB,MAAM,0BAgCpB;IAEO,iBAAiB;IAKjB,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"tc-loading-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-loading-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AAEvC;;;;;;;GAOG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,OAAO,SAAM;IACc,WAAW,EAC9D,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,CAAQ;IAElB,OAAO,CAAC,OAAO,CAA+B;IAE9C,OAAgB,MAAM,0BAkCpB;IAEO,iBAAiB;IAKjB,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -1,14 +1,17 @@
1
- import { LitElement as m, html as p, css as g } from "lit";
2
- import { property as l, customElement as d } from "lit/decorators.js";
3
- import { LoadingController as h } from "../controllers/loading.controller.js";
4
- var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (o, r, s, n) => {
5
- for (var e = n > 1 ? void 0 : n ? u(r, s) : r, i = o.length - 1, a; i >= 0; i--)
6
- (a = o[i]) && (e = (n ? a(r, s, e) : a(e)) || e);
7
- return n && e && f(r, s, e), e;
1
+ import { css as m, LitElement as g, html as p } from "lit";
2
+ import { property as l, customElement as h } from "lit/decorators.js";
3
+ import { LoadingController as d } from "../controllers/loading.controller.js";
4
+ import "../primitives/tc-spinner.js";
5
+ import "../primitives/tc-text.js";
6
+ import "../primitives/tc-container.js";
7
+ var f = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (o, r, n, i) => {
8
+ for (var e = i > 1 ? void 0 : i ? u(r, n) : r, s = o.length - 1, a; s >= 0; s--)
9
+ (a = o[s]) && (e = (i ? a(r, n, e) : a(e)) || e);
10
+ return i && e && f(r, n, e), e;
8
11
  };
9
- let t = class extends m {
12
+ let t = class extends g {
10
13
  constructor() {
11
- super(...arguments), this.message = "", this.spinnerSize = "3rem", this.loading = new h(this);
14
+ super(...arguments), this.message = "", this.spinnerSize = "md", this.loading = new d(this);
12
15
  }
13
16
  connectedCallback() {
14
17
  super.connectedCallback(), this.loading.start();
@@ -30,12 +33,13 @@ let t = class extends m {
30
33
  `;
31
34
  }
32
35
  };
33
- t.styles = g`
36
+ t.styles = m`
34
37
  :host {
35
38
  display: flex;
36
39
  align-items: center;
37
40
  justify-content: center;
38
41
  width: 100%;
42
+ height: 100%;
39
43
  min-height: inherit;
40
44
  }
41
45
 
@@ -44,6 +48,7 @@ t.styles = g`
44
48
  align-items: center;
45
49
  justify-content: center;
46
50
  width: 100%;
51
+ height: 100%;
47
52
  min-height: inherit;
48
53
  padding: var(--space-lg);
49
54
  box-sizing: border-box;
@@ -70,7 +75,7 @@ c([
70
75
  l({ type: String, attribute: "spinner-size" })
71
76
  ], t.prototype, "spinnerSize", 2);
72
77
  t = c([
73
- d("tc-loading-screen")
78
+ h("tc-loading-screen")
74
79
  ], t);
75
80
  export {
76
81
  t as TcLoadingScreen
@@ -1 +1 @@
1
- {"version":3,"file":"tc-success-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-success-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AAErC;;;;;;;;;;GAUG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,KAAK,SAAc;IACnB,OAAO,SACS;IACW,WAAW,SAAM;IAChB,WAAW,UAAQ;IAElE,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,SAAS,CAGd;IAEH,OAAgB,MAAM,0BAmGpB;IAEO,iBAAiB;IASpB,aAAa;IAKnB,OAAO,CAAC,YAAY;IASX,MAAM;CA4ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"tc-success-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-success-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,6BAA6B,CAAC;AAErC;;;;;;;;;;GAUG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,KAAK,SAAc;IACnB,OAAO,SACS;IACW,WAAW,SAAM;IAChB,WAAW,UAAQ;IAElE,OAAO,CAAC,UAAU,CAAS;IAEpC,OAAO,CAAC,SAAS,CAGd;IAEH,OAAgB,MAAM,0BAoGpB;IAEO,iBAAiB;IASpB,aAAa;IAKnB,OAAO,CAAC,YAAY;IASX,MAAM;CA4ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -1,14 +1,19 @@
1
- import { LitElement as p, html as m, css as d } from "lit";
1
+ import { css as p, LitElement as d, html as m } from "lit";
2
2
  import { property as r, state as h, customElement as u } from "lit/decorators.js";
3
- import { AnimationController as y } from "../controllers/animation.controller.js";
4
- var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, i = (a, s, o, n) => {
3
+ import { AnimationController as f } from "../controllers/animation.controller.js";
4
+ import "../primitives/tc-icon.js";
5
+ import "../primitives/tc-text.js";
6
+ import "../primitives/tc-button.js";
7
+ import "../primitives/tc-container.js";
8
+ import "../primitives/tc-section.js";
9
+ var y = Object.defineProperty, g = Object.getOwnPropertyDescriptor, i = (a, s, o, n) => {
5
10
  for (var e = n > 1 ? void 0 : n ? g(s, o) : s, c = a.length - 1, l; c >= 0; c--)
6
11
  (l = a[c]) && (e = (n ? l(s, o, e) : l(e)) || e);
7
- return n && e && f(s, o, e), e;
12
+ return n && e && y(s, o, e), e;
8
13
  };
9
- let t = class extends p {
14
+ let t = class extends d {
10
15
  constructor() {
11
- super(...arguments), this.title = "Success!", this.message = "Your action was completed successfully.", this.actionLabel = "", this.autoAnimate = !0, this.isAnimated = !1, this.animation = new y(this, {
16
+ super(...arguments), this.title = "Success!", this.message = "Your action was completed successfully.", this.actionLabel = "", this.autoAnimate = !0, this.isAnimated = !1, this.animation = new f(this, {
12
17
  showDuration: 600,
13
18
  hideDuration: 300
14
19
  });
@@ -69,12 +74,13 @@ let t = class extends p {
69
74
  `;
70
75
  }
71
76
  };
72
- t.styles = d`
77
+ t.styles = p`
73
78
  :host {
74
79
  display: flex;
75
80
  align-items: center;
76
81
  justify-content: center;
77
82
  width: 100%;
83
+ height: 100%;
78
84
  min-height: inherit;
79
85
  }
80
86
 
@@ -83,6 +89,7 @@ t.styles = d`
83
89
  align-items: center;
84
90
  justify-content: center;
85
91
  width: 100%;
92
+ height: 100%;
86
93
  min-height: inherit;
87
94
  padding: var(--space-lg);
88
95
  box-sizing: border-box;
@@ -102,8 +109,7 @@ t.styles = d`
102
109
  display: flex;
103
110
  align-items: center;
104
111
  justify-content: center;
105
- width: 5rem;
106
- height: 5rem;
112
+ padding: var(--space-md);
107
113
  background: var(--alpha-success10);
108
114
  border-radius: var(--radius-full);
109
115
  color: var(--accent-success);
@@ -119,8 +125,8 @@ t.styles = d`
119
125
  }
120
126
 
121
127
  .checkmark {
122
- width: 2.5rem;
123
- height: 2.5rem;
128
+ width: var(--size-icon-xl);
129
+ height: var(--size-icon-xl);
124
130
  stroke-dasharray: 50;
125
131
  stroke-dashoffset: 50;
126
132
  }
@@ -145,7 +151,7 @@ t.styles = d`
145
151
 
146
152
  .text-content {
147
153
  opacity: 0;
148
- transform: translateY(10px);
154
+ transform: translateY(var(--offset-slide-up-md));
149
155
  transition: opacity 0.4s ease, transform 0.4s ease;
150
156
  transition-delay: 0.4s;
151
157
  }
@@ -159,7 +165,7 @@ t.styles = d`
159
165
  width: 100%;
160
166
  margin-top: var(--space-md);
161
167
  opacity: 0;
162
- transform: translateY(10px);
168
+ transform: translateY(var(--offset-slide-up-md));
163
169
  transition: opacity 0.4s ease, transform 0.4s ease;
164
170
  transition-delay: 0.6s;
165
171
  }