@transcodes/ui-components 0.3.4 → 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 (110) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/controllers/animation.controller.d.ts +48 -0
  3. package/dist/controllers/animation.controller.d.ts.map +1 -0
  4. package/dist/controllers/base.controller.d.ts +14 -0
  5. package/dist/controllers/base.controller.d.ts.map +1 -0
  6. package/dist/controllers/history.controller.d.ts +34 -0
  7. package/dist/controllers/history.controller.d.ts.map +1 -0
  8. package/dist/controllers/index.d.ts +0 -2
  9. package/dist/controllers/index.d.ts.map +1 -0
  10. package/dist/controllers/index.js +10 -12
  11. package/dist/controllers/loading.controller.d.ts +36 -0
  12. package/dist/controllers/loading.controller.d.ts.map +1 -0
  13. package/dist/controllers/match-media.controller.d.ts +32 -0
  14. package/dist/controllers/match-media.controller.d.ts.map +1 -0
  15. package/dist/controllers/message-bus.controller.d.ts +45 -0
  16. package/dist/controllers/message-bus.controller.d.ts.map +1 -0
  17. package/dist/controllers/storage.controller.d.ts +40 -0
  18. package/dist/controllers/storage.controller.d.ts.map +1 -0
  19. package/dist/index.d.ts +4 -295
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +48 -64
  22. package/dist/primitives/index.d.ts +1 -0
  23. package/dist/primitives/index.d.ts.map +1 -0
  24. package/dist/primitives/index.js +18 -16
  25. package/dist/primitives/tc-box.d.ts +19 -0
  26. package/dist/primitives/tc-box.d.ts.map +1 -0
  27. package/dist/primitives/tc-box.js +4 -4
  28. package/dist/primitives/tc-button.d.ts +25 -0
  29. package/dist/primitives/tc-button.d.ts.map +1 -0
  30. package/dist/primitives/tc-button.js +21 -20
  31. package/dist/primitives/tc-callout.d.ts +22 -0
  32. package/dist/primitives/tc-callout.d.ts.map +1 -0
  33. package/dist/primitives/tc-callout.js +5 -4
  34. package/dist/primitives/tc-card.d.ts +20 -0
  35. package/dist/primitives/tc-card.d.ts.map +1 -0
  36. package/dist/primitives/tc-card.js +11 -10
  37. package/dist/primitives/tc-chip.d.ts +19 -0
  38. package/dist/primitives/tc-chip.d.ts.map +1 -0
  39. package/dist/primitives/tc-chip.js +18 -16
  40. package/dist/primitives/tc-container.d.ts +20 -0
  41. package/dist/primitives/tc-container.d.ts.map +1 -0
  42. package/dist/primitives/tc-container.js +12 -10
  43. package/dist/primitives/tc-divider.d.ts +22 -0
  44. package/dist/primitives/tc-divider.d.ts.map +1 -0
  45. package/dist/primitives/tc-divider.js +4 -3
  46. package/dist/primitives/tc-error-message.d.ts +23 -0
  47. package/dist/primitives/tc-error-message.d.ts.map +1 -0
  48. package/dist/primitives/tc-error-message.js +13 -9
  49. package/dist/primitives/tc-form-header.d.ts +25 -0
  50. package/dist/primitives/tc-form-header.d.ts.map +1 -0
  51. package/dist/primitives/tc-form-header.js +9 -7
  52. package/dist/primitives/tc-icon.d.ts +20 -0
  53. package/dist/primitives/tc-icon.d.ts.map +1 -0
  54. package/dist/primitives/tc-icon.js +3 -3
  55. package/dist/primitives/tc-input-with-chip.d.ts +38 -0
  56. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -0
  57. package/dist/primitives/tc-input-with-chip.js +12 -8
  58. package/dist/primitives/tc-input.d.ts +45 -0
  59. package/dist/primitives/tc-input.d.ts.map +1 -0
  60. package/dist/primitives/tc-input.js +11 -9
  61. package/dist/primitives/tc-item-button.d.ts +30 -0
  62. package/dist/primitives/tc-item-button.d.ts.map +1 -0
  63. package/dist/primitives/tc-item-button.js +18 -17
  64. package/dist/primitives/tc-item.d.ts +25 -0
  65. package/dist/primitives/tc-item.d.ts.map +1 -0
  66. package/dist/primitives/tc-item.js +13 -12
  67. package/dist/primitives/tc-otp-input.d.ts +38 -0
  68. package/dist/primitives/tc-otp-input.d.ts.map +1 -0
  69. package/dist/primitives/tc-otp-input.js +6 -4
  70. package/dist/primitives/tc-page-decoration.d.ts +19 -0
  71. package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
  72. package/dist/{widgets → primitives}/tc-page-decoration.js +8 -8
  73. package/dist/primitives/tc-section.d.ts +19 -0
  74. package/dist/primitives/tc-section.d.ts.map +1 -0
  75. package/dist/primitives/tc-section.js +15 -13
  76. package/dist/primitives/tc-spinner.d.ts +20 -0
  77. package/dist/primitives/tc-spinner.d.ts.map +1 -0
  78. package/dist/primitives/tc-spinner.js +17 -17
  79. package/dist/primitives/tc-symbol.d.ts +20 -0
  80. package/dist/primitives/tc-symbol.d.ts.map +1 -0
  81. package/dist/primitives/tc-symbol.js +15 -13
  82. package/dist/primitives/tc-text.d.ts +31 -0
  83. package/dist/primitives/tc-text.d.ts.map +1 -0
  84. package/dist/primitives/tc-text.js +3 -3
  85. package/dist/primitives/tc-toast.d.ts +34 -0
  86. package/dist/primitives/tc-toast.d.ts.map +1 -0
  87. package/dist/primitives/tc-toast.js +3 -3
  88. package/dist/screens/index.d.ts.map +1 -0
  89. package/dist/screens/tc-error-screen.d.ts +32 -0
  90. package/dist/screens/tc-error-screen.d.ts.map +1 -0
  91. package/dist/screens/tc-error-screen.js +84 -29
  92. package/dist/screens/tc-loading-screen.d.ts +23 -0
  93. package/dist/screens/tc-loading-screen.d.ts.map +1 -0
  94. package/dist/screens/tc-loading-screen.js +16 -11
  95. package/dist/screens/tc-success-screen.d.ts +31 -0
  96. package/dist/screens/tc-success-screen.d.ts.map +1 -0
  97. package/dist/screens/tc-success-screen.js +19 -13
  98. package/dist/styles/shared.d.ts +20 -0
  99. package/dist/styles/shared.d.ts.map +1 -0
  100. package/package.json +13 -13
  101. package/dist/controllers/form-validation.controller.js +0 -49
  102. package/dist/widgets/index.d.ts +0 -9
  103. package/dist/widgets/index.js +0 -18
  104. package/dist/widgets/tc-authenticator-card.js +0 -213
  105. package/dist/widgets/tc-floating-button.js +0 -132
  106. package/dist/widgets/tc-iframe-modal.js +0 -263
  107. package/dist/widgets/tc-installation-banner.js +0 -234
  108. package/dist/widgets/tc-ios-installation-guide.js +0 -240
  109. package/dist/widgets/tc-notification-modal.js +0 -230
  110. package/dist/widgets/tc-offline-modal.js +0 -202
@@ -0,0 +1,25 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A non-clickable item container for displaying content.
4
+ *
5
+ * @slot - Item content
6
+ * @slot prefix - Left side content (icon, symbol)
7
+ * @slot suffix - Right side content (badge, action)
8
+ * @csspart item - The item container
9
+ * @csspart prefix - The prefix container
10
+ * @csspart content - The main content container
11
+ * @csspart suffix - The suffix container
12
+ */
13
+ export declare class TcItem extends LitElement {
14
+ gap: string;
15
+ padding: string;
16
+ sx: Record<string, string | number>;
17
+ static styles: import('lit').CSSResult;
18
+ render(): import('lit').TemplateResult<1>;
19
+ }
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'tc-item': TcItem;
23
+ }
24
+ }
25
+ //# sourceMappingURL=tc-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-item.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,GAAG,SAAqB;IACxB,OAAO,SAAqB;IAC5B,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BA6CpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -1,12 +1,12 @@
1
- import { LitElement as d, html as f, css as m } from "lit";
2
- import { property as l, customElement as c } from "lit/decorators.js";
1
+ import { css as l, LitElement as f, html as m } from "lit";
2
+ import { property as d, customElement as c } from "lit/decorators.js";
3
3
  import { styleMap as v } from "lit/directives/style-map.js";
4
- var x = Object.defineProperty, y = Object.getOwnPropertyDescriptor, a = (i, s, p, r) => {
5
- for (var t = r > 1 ? void 0 : r ? y(s, p) : s, n = i.length - 1, o; n >= 0; n--)
6
- (o = i[n]) && (t = (r ? o(s, p, t) : o(t)) || t);
7
- return r && t && x(s, p, t), t;
4
+ var x = Object.defineProperty, y = Object.getOwnPropertyDescriptor, a = (i, s, n, r) => {
5
+ for (var t = r > 1 ? void 0 : r ? y(s, n) : s, p = i.length - 1, o; p >= 0; p--)
6
+ (o = i[p]) && (t = (r ? o(s, n, t) : o(t)) || t);
7
+ return r && t && x(s, n, t), t;
8
8
  };
9
- let e = class extends d {
9
+ let e = class extends f {
10
10
  constructor() {
11
11
  super(...arguments), this.gap = "var(--space-md)", this.padding = "var(--space-md)", this.sx = {};
12
12
  }
@@ -16,7 +16,7 @@ let e = class extends d {
16
16
  "--item-gap": this.gap,
17
17
  ...this.sx
18
18
  };
19
- return f`
19
+ return m`
20
20
  <div part="item" class="item" style=${v(i)}>
21
21
  <div part="prefix" class="prefix">
22
22
  <slot name="prefix"></slot>
@@ -31,10 +31,11 @@ let e = class extends d {
31
31
  `;
32
32
  }
33
33
  };
34
- e.styles = m`
34
+ e.styles = l`
35
35
  :host {
36
36
  display: block;
37
37
  width: 100%;
38
+ min-width: 0;
38
39
  }
39
40
 
40
41
  .item {
@@ -77,13 +78,13 @@ e.styles = m`
77
78
  }
78
79
  `;
79
80
  a([
80
- l({ type: String })
81
+ d({ type: String })
81
82
  ], e.prototype, "gap", 2);
82
83
  a([
83
- l({ type: String })
84
+ d({ type: String })
84
85
  ], e.prototype, "padding", 2);
85
86
  a([
86
- l({ type: Object })
87
+ d({ type: Object })
87
88
  ], e.prototype, "sx", 2);
88
89
  e = a([
89
90
  c("tc-item")
@@ -0,0 +1,38 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * OTP (One-Time Password) input component with individual cells and progress indicator.
4
+ * Uses shake animation from design-tokens.
5
+ *
6
+ * @fires tc-complete - Fired when all cells are filled
7
+ * @fires tc-change - Fired when the OTP value changes
8
+ * @csspart cells - The cells container
9
+ * @csspart cell - Individual cell input
10
+ * @csspart progress - The progress bar container
11
+ * @csspart progress-bar - The progress bar fill
12
+ */
13
+ export declare class TcOtpInput extends LitElement {
14
+ length: number;
15
+ error: boolean;
16
+ disabled: boolean;
17
+ showProgress: boolean;
18
+ private values;
19
+ static styles: import('lit').CSSResult[];
20
+ connectedCallback(): void;
21
+ render(): import('lit').TemplateResult<1>;
22
+ private handleInput;
23
+ private handleKeydown;
24
+ private handlePaste;
25
+ private focusCell;
26
+ /** Focus the first empty cell or the last cell */
27
+ focus(): void;
28
+ /** Clear all values */
29
+ clear(): void;
30
+ /** Get the current OTP value */
31
+ getValue(): string;
32
+ }
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'tc-otp-input': TcOtpInput;
36
+ }
37
+ }
38
+ //# sourceMappingURL=tc-otp-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-otp-input.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-otp-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,qBACa,UAAW,SAAQ,UAAU;IACZ,MAAM,SAAK;IACV,KAAK,UAAS;IACd,QAAQ,UAAS;IACW,YAAY,UAAQ;IAEpE,OAAO,CAAC,MAAM,CAAgB;IAEvC,OAAgB,MAAM,4BA2FpB;IAEO,iBAAiB;IAKjB,MAAM;IAoDf,OAAO,CAAC,WAAW;IAgCnB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,WAAW;IAoCnB,OAAO,CAAC,SAAS;IASjB,kDAAkD;IAClD,KAAK;IAML,uBAAuB;IACvB,KAAK;IAKL,gCAAgC;IAChC,QAAQ,IAAI,MAAM;CAGnB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { LitElement as u, html as h, css as p } from "lit";
1
+ import { css as u, LitElement as p, html as h } from "lit";
2
2
  import { property as c, state as d, customElement as v } from "lit/decorators.js";
3
3
  import { sharedStyles as m } from "../styles/shared.js";
4
4
  var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, n = (t, e, s, r) => {
@@ -6,7 +6,7 @@ var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, n = (t, e, s
6
6
  (l = t[o]) && (a = (r ? l(e, s, a) : l(a)) || a);
7
7
  return r && a && g(e, s, a), a;
8
8
  };
9
- let i = class extends u {
9
+ let i = class extends p {
10
10
  constructor() {
11
11
  super(...arguments), this.length = 6, this.error = !1, this.disabled = !1, this.showProgress = !0, this.values = [];
12
12
  }
@@ -119,9 +119,11 @@ let i = class extends u {
119
119
  };
120
120
  i.styles = [
121
121
  m,
122
- p`
122
+ u`
123
123
  :host {
124
124
  display: block;
125
+ width: 100%;
126
+ min-width: 0;
125
127
  }
126
128
 
127
129
  .container {
@@ -177,7 +179,7 @@ i.styles = [
177
179
  /* Progress bar */
178
180
  .progress {
179
181
  width: 100%;
180
- max-width: 12rem;
182
+ max-width: var(--size-progress-bar-width);
181
183
  height: var(--size-border-width-heavy);
182
184
  background: var(--paper-warm);
183
185
  border-radius: var(--radius-full);
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Decorative floating blob background for pages.
4
+ * Uses CSS custom properties for color variants and inkFloat/inkDrift animations from design-tokens.
5
+ *
6
+ * @csspart decoration - The decoration container
7
+ * @csspart blob - Individual blob element
8
+ */
9
+ export declare class TcPageDecoration extends LitElement {
10
+ variant: 'primary' | 'success' | 'error';
11
+ static styles: import('lit').CSSResult[];
12
+ render(): import('lit').TemplateResult<1>;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'tc-page-decoration': TcPageDecoration;
17
+ }
18
+ }
19
+ //# sourceMappingURL=tc-page-decoration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-page-decoration.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-page-decoration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;GAMG;AACH,qBACa,gBAAiB,SAAQ,UAAU;IAClB,OAAO,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CACxD;IAEZ,OAAgB,MAAM,4BA8FpB;IAEO,MAAM;CAShB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
@@ -1,4 +1,4 @@
1
- import { LitElement as c, html as b, css as d } from "lit";
1
+ import { css as b, LitElement as c, html as d } from "lit";
2
2
  import { property as m, customElement as p } from "lit/decorators.js";
3
3
  import { sharedStyles as v } from "../styles/shared.js";
4
4
  var u = Object.defineProperty, f = Object.getOwnPropertyDescriptor, l = (s, e, o, t) => {
@@ -11,7 +11,7 @@ let a = class extends c {
11
11
  super(...arguments), this.variant = "primary";
12
12
  }
13
13
  render() {
14
- return b`
14
+ return d`
15
15
  <div part="decoration" class="decoration">
16
16
  <div part="blob" class="blob blob-1"></div>
17
17
  <div part="blob" class="blob blob-2"></div>
@@ -22,12 +22,12 @@ let a = class extends c {
22
22
  };
23
23
  a.styles = [
24
24
  v,
25
- d`
25
+ b`
26
26
  :host {
27
- position: fixed;
27
+ position: absolute;
28
28
  inset: 0;
29
- pointer-events: none;
30
29
  z-index: 0;
30
+ pointer-events: none;
31
31
  overflow: hidden;
32
32
  }
33
33
 
@@ -38,7 +38,7 @@ a.styles = [
38
38
 
39
39
  .blob {
40
40
  position: absolute;
41
- border-radius: 50%;
41
+ border-radius: var(--radius-full);
42
42
  opacity: 0.35;
43
43
  filter: blur(0.0625rem);
44
44
  }
@@ -87,8 +87,8 @@ a.styles = [
87
87
  }
88
88
 
89
89
  .blob-3 {
90
- width: 20rem;
91
- height: 20rem;
90
+ width: var(--size-decoration-blob);
91
+ height: var(--size-decoration-blob);
92
92
  bottom: -8rem;
93
93
  left: 20%;
94
94
  animation: decorFloat 14s ease-in-out infinite 2s;
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A section container with flex column layout.
4
+ *
5
+ * @slot - Section content
6
+ * @csspart section - The section element
7
+ */
8
+ export declare class TcSection extends LitElement {
9
+ gap: string;
10
+ sx: Record<string, string | number>;
11
+ static styles: import('lit').CSSResult;
12
+ render(): import('lit').TemplateResult<1>;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'tc-section': TcSection;
17
+ }
18
+ }
19
+ //# sourceMappingURL=tc-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-section.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,GAAG,SAAqB;IACxB,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BAapB;IAEO,MAAM;CAYhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
@@ -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 {
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A loading spinner with responsive sizing.
4
+ * Uses spin animation from design-tokens.
5
+ *
6
+ * @csspart spinner - The spinner element
7
+ */
8
+ export declare class TcSpinner extends LitElement {
9
+ private mobile;
10
+ size: 'sm' | 'md' | 'lg' | 'auto';
11
+ color: string;
12
+ static styles: import('lit').CSSResult[];
13
+ render(): import('lit').TemplateResult<1>;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'tc-spinner': TcSpinner;
18
+ }
19
+ }
20
+ //# sourceMappingURL=tc-spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-spinner.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;GAKG;AACH,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,CAAC,MAAM,CAAwD;IAE1C,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAU;IAC3C,KAAK,SAA2B;IAE5D,OAAgB,MAAM,4BAgDpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
@@ -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
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A circular symbol/avatar component.
4
+ *
5
+ * @slot - Symbol content (icon or text)
6
+ * @csspart symbol - The symbol container
7
+ */
8
+ export declare class TcSymbol extends LitElement {
9
+ size: string;
10
+ background: string;
11
+ color: string;
12
+ static styles: import('lit').CSSResult;
13
+ render(): import('lit').TemplateResult<1>;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'tc-symbol': TcSymbol;
18
+ }
19
+ }
20
+ //# sourceMappingURL=tc-symbol.d.ts.map
@@ -0,0 +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,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
  };
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ type TextTag = 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
3
+ type TextSize = 'sm' | 'base' | 'lg' | 'xl' | '2xl';
4
+ type TextWeight = '400' | '500' | '600' | '700';
5
+ type TextColor = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'accent' | 'success' | 'error' | 'warning' | 'info';
6
+ /**
7
+ * A text component with dynamic tag rendering.
8
+ * Supports semantic HTML tags for accessibility.
9
+ * Uses design-tokens for consistent theming across light/dark modes.
10
+ *
11
+ * @slot - Text content
12
+ * @csspart text - The text element
13
+ */
14
+ export declare class TcText extends LitElement {
15
+ tag: TextTag;
16
+ size?: TextSize;
17
+ weight?: TextWeight;
18
+ color?: TextColor | string;
19
+ sx: Record<string, string | number>;
20
+ static styles: import('lit').CSSResult[];
21
+ private getColorClass;
22
+ private getColorStyle;
23
+ render(): import('lit').TemplateResult;
24
+ }
25
+ declare global {
26
+ interface HTMLElementTagNameMap {
27
+ 'tc-text': TcText;
28
+ }
29
+ }
30
+ export {};
31
+ //# sourceMappingURL=tc-text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-text.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,UAAU,EAAE,MAAM,KAAK,CAAC;AAMtC,KAAK,OAAO,GACR,GAAG,GACH,MAAM,GACN,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,OAAO,CAAC;AAEZ,KAAK,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AACpD,KAAK,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAChD,KAAK,SAAS,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,SAAS,GACT,MAAM,CAAC;AAEX;;;;;;;GAOG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,GAAG,EAAE,OAAO,CAAO;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,4BA2EpB;IAEF,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,aAAa;IAgBZ,MAAM;CAwBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -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
  }
@@ -0,0 +1,34 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A toast notification component with auto-dismiss and animation.
4
+ *
5
+ * @slot - Toast message content
6
+ * @fires tc-dismiss - Fired when the toast is dismissed
7
+ * @csspart toast - The toast container
8
+ * @csspart content - The content container
9
+ * @csspart close - The close button
10
+ */
11
+ export declare class TcToast extends LitElement {
12
+ variant: 'info' | 'success' | 'warning' | 'error';
13
+ duration: number;
14
+ autoDismiss: boolean;
15
+ dismissible: boolean;
16
+ private animation;
17
+ private dismissTimer?;
18
+ static styles: import('lit').CSSResult[];
19
+ connectedCallback(): void;
20
+ disconnectedCallback(): void;
21
+ private updateDataState;
22
+ private clearDismissTimer;
23
+ private startDismissTimer;
24
+ show(): Promise<void>;
25
+ hide(): Promise<void>;
26
+ private handleClose;
27
+ render(): import('lit').TemplateResult<1>;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'tc-toast': TcToast;
32
+ }
33
+ }
34
+ //# sourceMappingURL=tc-toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-toast.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;;;;GAQG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACT,OAAO,EAC/B,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAU;IACO,QAAQ,SAAQ;IACY,WAAW,UAAQ;IAC9C,WAAW,UAAQ;IAEhD,OAAO,CAAC,SAAS,CAGd;IAEH,OAAO,CAAC,YAAY,CAAC,CAAgC;IAErD,OAAgB,MAAM,4BA6FpB;IAEO,iBAAiB;IAKjB,oBAAoB;IAK7B,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,iBAAiB;IASnB,IAAI;IAOJ,IAAI;IAaV,OAAO,CAAC,WAAW;IAIV,MAAM;CAiChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -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;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/screens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}