@transcodes/ui-components 0.3.6 → 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.
Files changed (72) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +8 -22
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/primitives/tc-box.d.ts +2 -1
  6. package/dist/primitives/tc-box.d.ts.map +1 -1
  7. package/dist/primitives/tc-button.d.ts +2 -1
  8. package/dist/primitives/tc-button.d.ts.map +1 -1
  9. package/dist/primitives/tc-callout.d.ts +2 -0
  10. package/dist/primitives/tc-callout.d.ts.map +1 -1
  11. package/dist/primitives/tc-callout.js +21 -17
  12. package/dist/primitives/tc-card.d.ts +2 -1
  13. package/dist/primitives/tc-card.d.ts.map +1 -1
  14. package/dist/primitives/tc-chip.d.ts +2 -0
  15. package/dist/primitives/tc-chip.d.ts.map +1 -1
  16. package/dist/primitives/tc-chip.js +22 -14
  17. package/dist/primitives/tc-container.d.ts +2 -1
  18. package/dist/primitives/tc-container.d.ts.map +1 -1
  19. package/dist/primitives/tc-divider.d.ts +2 -2
  20. package/dist/primitives/tc-divider.d.ts.map +1 -1
  21. package/dist/primitives/tc-divider.js +23 -22
  22. package/dist/primitives/tc-error-message.d.ts +2 -0
  23. package/dist/primitives/tc-error-message.d.ts.map +1 -1
  24. package/dist/primitives/tc-error-message.js +18 -15
  25. package/dist/primitives/tc-form-header.d.ts +2 -1
  26. package/dist/primitives/tc-form-header.d.ts.map +1 -1
  27. package/dist/primitives/tc-icon.d.ts +2 -2
  28. package/dist/primitives/tc-icon.d.ts.map +1 -1
  29. package/dist/primitives/tc-icon.js +61 -61
  30. package/dist/primitives/tc-input-with-chip.d.ts +2 -0
  31. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
  32. package/dist/primitives/tc-input-with-chip.js +17 -13
  33. package/dist/primitives/tc-input.d.ts +2 -1
  34. package/dist/primitives/tc-input.d.ts.map +1 -1
  35. package/dist/primitives/tc-item-button.d.ts +2 -3
  36. package/dist/primitives/tc-item-button.d.ts.map +1 -1
  37. package/dist/primitives/tc-item-button.js +28 -34
  38. package/dist/primitives/tc-item.d.ts +2 -3
  39. package/dist/primitives/tc-item.d.ts.map +1 -1
  40. package/dist/primitives/tc-item.js +20 -26
  41. package/dist/primitives/tc-otp-input.d.ts +2 -0
  42. package/dist/primitives/tc-otp-input.d.ts.map +1 -1
  43. package/dist/primitives/tc-otp-input.js +11 -7
  44. package/dist/primitives/tc-page-decoration.d.ts +2 -0
  45. package/dist/primitives/tc-page-decoration.d.ts.map +1 -1
  46. package/dist/primitives/tc-page-decoration.js +24 -20
  47. package/dist/primitives/tc-section.d.ts +2 -2
  48. package/dist/primitives/tc-section.d.ts.map +1 -1
  49. package/dist/primitives/tc-section.js +20 -23
  50. package/dist/primitives/tc-spinner.d.ts +2 -1
  51. package/dist/primitives/tc-spinner.d.ts.map +1 -1
  52. package/dist/primitives/tc-spinner.js +25 -22
  53. package/dist/primitives/tc-symbol.d.ts +2 -3
  54. package/dist/primitives/tc-symbol.d.ts.map +1 -1
  55. package/dist/primitives/tc-symbol.js +24 -28
  56. package/dist/primitives/tc-text.d.ts +2 -1
  57. package/dist/primitives/tc-text.d.ts.map +1 -1
  58. package/dist/primitives/tc-toast.d.ts +2 -0
  59. package/dist/primitives/tc-toast.d.ts.map +1 -1
  60. package/dist/primitives/tc-toast.js +33 -23
  61. package/dist/screens/tc-error-screen.d.ts +2 -0
  62. package/dist/screens/tc-error-screen.d.ts.map +1 -1
  63. package/dist/screens/tc-error-screen.js +35 -31
  64. package/dist/screens/tc-loading-screen.d.ts +2 -0
  65. package/dist/screens/tc-loading-screen.d.ts.map +1 -1
  66. package/dist/screens/tc-loading-screen.js +19 -15
  67. package/dist/screens/tc-success-screen.d.ts +2 -0
  68. package/dist/screens/tc-success-screen.d.ts.map +1 -1
  69. package/dist/screens/tc-success-screen.js +25 -21
  70. package/dist/types.d.ts +34 -0
  71. package/dist/types.d.ts.map +1 -0
  72. package/package.json +2 -2
@@ -1,65 +1,68 @@
1
- import { html as o, css as a, LitElement as p } from "lit";
1
+ import { html as e, css as a, LitElement as p } from "lit";
2
2
  import { property as h, customElement as g } from "lit/decorators.js";
3
- var d = Object.defineProperty, x = Object.getOwnPropertyDescriptor, n = (r, t, s, i) => {
4
- for (var e = i > 1 ? void 0 : i ? x(t, s) : t, v = r.length - 1, c; v >= 0; v--)
5
- (c = r[v]) && (e = (i ? c(t, s, e) : c(e)) || e);
6
- return i && e && d(t, s, e), e;
3
+ import { styleMap as d } from "lit/directives/style-map.js";
4
+ var x = Object.defineProperty, z = Object.getOwnPropertyDescriptor, c = (l, r, t, i) => {
5
+ for (var o = i > 1 ? void 0 : i ? z(r, t) : r, s = l.length - 1, v; s >= 0; s--)
6
+ (v = l[s]) && (o = (i ? v(r, t, o) : v(o)) || o);
7
+ return i && o && x(r, t, o), o;
7
8
  };
8
- const z = {
9
- "arrow-left": o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>`,
10
- "arrow-right": o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/></svg>`,
11
- check: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>`,
12
- x: o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`,
13
- close: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>`,
14
- "chevron-right": o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>`,
15
- "chevron-left": o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>`,
16
- error: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>`,
17
- "alert-circle": o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>`,
18
- info: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>`,
19
- warning: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>`,
20
- loading: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></svg>`,
21
- loader: o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>`,
22
- biometric: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"/></svg>`,
23
- email: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
24
- passkey: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 2-2.93-2-2.07zm-14 2c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg>`,
25
- bell: o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>`,
26
- download: o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>`,
27
- "wifi-off": o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>`,
9
+ const u = {
10
+ "arrow-left": e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/></svg>`,
11
+ "arrow-right": e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/></svg>`,
12
+ check: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>`,
13
+ x: e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>`,
14
+ close: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>`,
15
+ "chevron-right": e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>`,
16
+ "chevron-left": e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"></polyline></svg>`,
17
+ error: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>`,
18
+ "alert-circle": e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>`,
19
+ info: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>`,
20
+ warning: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/></svg>`,
21
+ loading: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"/></svg>`,
22
+ loader: e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line></svg>`,
23
+ biometric: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 2c2.13 0 3.99.47 6.03 1.52.25.13.34.43.21.67-.09.18-.26.28-.44.28zM3.5 9.72c-.1 0-.2-.03-.29-.09-.23-.16-.28-.47-.12-.7.99-1.4 2.25-2.5 3.75-3.27C9.98 4.04 14 4.03 17.15 5.65c1.5.77 2.76 1.86 3.75 3.25.16.22.11.54-.12.7-.23.16-.54.11-.7-.12-.9-1.26-2.04-2.25-3.39-2.94-2.87-1.47-6.54-1.47-9.4.01-1.36.7-2.5 1.7-3.4 2.96-.08.14-.23.21-.39.21zm6.25 12.07c-.13 0-.26-.05-.35-.15-.87-.87-1.34-1.43-2.01-2.64-.69-1.23-1.05-2.73-1.05-4.34 0-2.97 2.54-5.39 5.66-5.39s5.66 2.42 5.66 5.39c0 .28-.22.5-.5.5s-.5-.22-.5-.5c0-2.42-2.09-4.39-4.66-4.39-2.57 0-4.66 1.97-4.66 4.39 0 1.44.32 2.77.93 3.85.64 1.15 1.08 1.64 1.85 2.42.19.2.19.51 0 .71-.11.1-.24.15-.37.15zm7.17-1.85c-1.19 0-2.24-.3-3.1-.89-1.49-1.01-2.38-2.65-2.38-4.39 0-.28.22-.5.5-.5s.5.22.5.5c0 1.41.72 2.74 1.94 3.56.71.48 1.54.71 2.54.71.24 0 .64-.03 1.04-.1.27-.05.53.13.58.41.05.27-.13.53-.41.58-.57.11-1.07.12-1.21.12zM14.91 22c-.04 0-.09-.01-.13-.02-1.59-.44-2.63-1.03-3.72-2.1-1.4-1.39-2.17-3.24-2.17-5.22 0-1.62 1.38-2.94 3.08-2.94 1.7 0 3.08 1.32 3.08 2.94 0 1.07.93 1.94 2.08 1.94s2.08-.87 2.08-1.94c0-3.77-3.25-6.83-7.25-6.83-2.84 0-5.44 1.58-6.61 4.03-.39.81-.59 1.76-.59 2.8 0 .78.07 2.01.67 3.61.1.26-.03.55-.29.64-.26.1-.55-.04-.64-.29-.49-1.31-.73-2.61-.73-3.96 0-1.2.23-2.29.68-3.24 1.33-2.79 4.28-4.6 7.51-4.6 4.55 0 8.25 3.51 8.25 7.83 0 1.62-1.38 2.94-3.08 2.94s-3.08-1.32-3.08-2.94c0-1.07-.93-1.94-2.08-1.94s-2.08.87-2.08 1.94c0 1.71.66 3.31 1.87 4.51.95.94 1.86 1.46 3.27 1.85.27.07.42.35.35.61-.05.23-.26.38-.47.38z"/></svg>`,
24
+ email: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
25
+ passkey: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 2-2.93-2-2.07zm-14 2c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/></svg>`,
26
+ bell: e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>`,
27
+ download: e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>`,
28
+ "wifi-off": e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line></svg>`,
28
29
  // Brand icons
29
- apple: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/></svg>`,
30
- google: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>`,
31
- windows: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 12V6.75l6-1.32v6.48L3 12zm17-9v8.75l-10 .15V5.21L20 3zM3 13l6 .09v6.81l-6-1.15V13zm17 .25V22l-10-1.91V13.1l10 .15z"/></svg>`,
32
- samsung: o`<svg viewBox="0 0 24 24"><text x="12" y="17" font-size="18" font-weight="700" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" text-anchor="middle" fill="currentColor">S</text></svg>`,
30
+ apple: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.54 4.09l.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/></svg>`,
31
+ google: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/><path d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/></svg>`,
32
+ windows: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 12V6.75l6-1.32v6.48L3 12zm17-9v8.75l-10 .15V5.21L20 3zM3 13l6 .09v6.81l-6-1.15V13zm17 .25V22l-10-1.91V13.1l10 .15z"/></svg>`,
33
+ samsung: e`<svg viewBox="0 0 24 24"><text x="12" y="17" font-size="18" font-weight="700" font-family="-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif" text-anchor="middle" fill="currentColor">S</text></svg>`,
33
34
  // General icons
34
- phone: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>`,
35
- success: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>`,
36
- lock: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>`,
37
- person: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>`,
38
- device: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.22.99 2.2 2.2 2.2 1.21 0 2.2-.98 2.2-2.2 0-.85-.49-1.58-1.2-1.95V15h3c1.11 0 2-.89 2-2v-2h1V7h-4z"/></svg>`,
35
+ phone: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>`,
36
+ success: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>`,
37
+ lock: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/></svg>`,
38
+ person: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>`,
39
+ device: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.22.99 2.2 2.2 2.2 1.21 0 2.2-.98 2.2-2.2 0-.85-.49-1.58-1.2-1.95V15h3c1.11 0 2-.89 2-2v-2h1V7h-4z"/></svg>`,
39
40
  // Auth icons
40
- totp: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>`,
41
- "email-otp": o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
42
- qrcode: o`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM13 13h2v2h-2zM15 15h2v2h-2zM13 17h2v2h-2zM15 19h2v2h-2zM17 17h2v2h-2zM17 13h2v2h-2zM19 15h2v2h-2zM19 19h2v2h-2z"/><path d="M6 6h2v2H6zM6 16h2v2H6zM16 6h2v2h-2z"/></svg>`,
43
- key: o`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"/></svg>`
41
+ totp: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>`,
42
+ "email-otp": e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>`,
43
+ qrcode: e`<svg viewBox="0 0 24 24" fill="currentColor"><path d="M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM13 13h2v2h-2zM15 15h2v2h-2zM13 17h2v2h-2zM15 19h2v2h-2zM17 17h2v2h-2zM17 13h2v2h-2zM19 15h2v2h-2zM19 19h2v2h-2z"/><path d="M6 6h2v2H6zM6 16h2v2H6zM16 6h2v2h-2z"/></svg>`,
44
+ key: e`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"/></svg>`
44
45
  };
45
- let l = class extends p {
46
+ let n = class extends p {
46
47
  constructor() {
47
- super(...arguments), this.name = "info", this.size = "1.5rem", this.color = "currentColor";
48
+ super(...arguments), this.name = "info", this.sx = {};
48
49
  }
49
50
  render() {
50
- const r = z[this.name];
51
- return r ? o`
52
- <span
53
- part="icon"
54
- class="icon"
55
- style="--icon-size: ${this.size}; --icon-color: ${this.color};"
56
- >
57
- ${r}
51
+ const l = u[this.name];
52
+ if (!l)
53
+ return console.warn(`Icon "${this.name}" not found`), e``;
54
+ const t = { ...{
55
+ "--icon-size": "1.5rem",
56
+ "--icon-color": "currentColor"
57
+ }, ...this.sx };
58
+ return e`
59
+ <span part="icon" class="icon" style=${d(t)}>
60
+ ${l}
58
61
  </span>
59
- ` : (console.warn(`Icon "${this.name}" not found`), o``);
62
+ `;
60
63
  }
61
64
  };
62
- l.styles = a`
65
+ n.styles = a`
63
66
  :host {
64
67
  display: inline-flex;
65
68
  align-items: center;
@@ -78,18 +81,15 @@ l.styles = a`
78
81
  color: var(--icon-color);
79
82
  }
80
83
  `;
81
- n([
84
+ c([
82
85
  h({ type: String })
83
- ], l.prototype, "name", 2);
84
- n([
85
- h({ type: String })
86
- ], l.prototype, "size", 2);
87
- n([
88
- h({ type: String })
89
- ], l.prototype, "color", 2);
90
- l = n([
86
+ ], n.prototype, "name", 2);
87
+ c([
88
+ h({ type: Object })
89
+ ], n.prototype, "sx", 2);
90
+ n = c([
91
91
  g("tc-icon")
92
- ], l);
92
+ ], n);
93
93
  export {
94
- l as TcIcon
94
+ n as TcIcon
95
95
  };
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * An input field with an attached chip indicator.
4
5
  * Useful for showing authentication method alongside email/username input.
@@ -20,6 +21,7 @@ export declare class TcInputWithChip extends LitElement {
20
21
  chipLabel: string;
21
22
  chipIcon: string;
22
23
  chipVariant: 'default' | 'success' | 'error' | 'info';
24
+ sx: SxProps;
23
25
  private inputId;
24
26
  private isFocused;
25
27
  static styles: import('lit').CSSResult[];
@@ -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;AAI5C,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAGtB;;;;;;;;;;GAUG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IACO,SAAS,SAAM;IAChB,QAAQ,SAAM;IACX,WAAW,EAC9D,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IAEd,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"}
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;;;;;;;;;;GAUG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IACO,SAAS,SAAM;IAChB,QAAQ,SAAM;IACX,WAAW,EAC9D,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IACK,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"}
@@ -1,17 +1,18 @@
1
- import { css as h, LitElement as v, html as n } from "lit";
2
- import { property as a, state as u, customElement as b } from "lit/decorators.js";
1
+ import { css as u, LitElement as v, html as n } from "lit";
2
+ import { property as a, state as h, customElement as b } from "lit/decorators.js";
3
3
  import { classMap as d } from "lit/directives/class-map.js";
4
+ import { styleMap as y } from "lit/directives/style-map.js";
4
5
  import { sharedStyles as f } from "../styles/shared.js";
5
6
  import "./tc-chip.js";
6
7
  import "./tc-icon.js";
7
- var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (t, i, s, p) => {
8
- for (var o = p > 1 ? void 0 : p ? y(i, s) : i, l = t.length - 1, c; l >= 0; l--)
8
+ var m = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (t, i, s, p) => {
9
+ for (var o = p > 1 ? void 0 : p ? g(i, s) : i, l = t.length - 1, c; l >= 0; l--)
9
10
  (c = t[l]) && (o = (p ? c(i, s, o) : c(o)) || o);
10
11
  return p && o && m(i, s, o), o;
11
12
  };
12
13
  let e = class extends v {
13
14
  constructor() {
14
- super(...arguments), this.label = "", this.placeholder = "", this.value = "", this.error = "", this.disabled = !1, this.readonly = !1, this.chipLabel = "", this.chipIcon = "", this.chipVariant = "default", this.inputId = `tc-input-chip-${Math.random().toString(36).slice(2)}`, this.isFocused = !1;
15
+ super(...arguments), this.label = "", this.placeholder = "", this.value = "", this.error = "", this.disabled = !1, this.readonly = !1, this.chipLabel = "", this.chipIcon = "", this.chipVariant = "default", this.sx = {}, this.inputId = `tc-input-chip-${Math.random().toString(36).slice(2)}`, this.isFocused = !1;
15
16
  }
16
17
  render() {
17
18
  const t = this.error.length > 0, i = {
@@ -23,7 +24,7 @@ let e = class extends v {
23
24
  "has-error": t
24
25
  };
25
26
  return n`
26
- <div class=${d(i)}>
27
+ <div class=${d(i)} style=${y(this.sx)}>
27
28
  ${this.label ? n`<label part="label" class="field-label" for=${this.inputId}>${this.label}</label>` : ""}
28
29
  <div part="wrapper" class=${d(s)}>
29
30
  <input
@@ -46,7 +47,7 @@ let e = class extends v {
46
47
  <div class="chip-container">
47
48
  <tc-chip part="chip" variant=${this.chipVariant} size="sm">
48
49
  <span class="chip-content">
49
- ${this.chipIcon ? n`<tc-icon name=${this.chipIcon} size="0.875rem"></tc-icon>` : ""}
50
+ ${this.chipIcon ? n`<tc-icon name=${this.chipIcon} .sx=${{ "--icon-size": "0.875rem" }}></tc-icon>` : ""}
50
51
  ${this.chipLabel}
51
52
  </span>
52
53
  </tc-chip>
@@ -97,7 +98,7 @@ let e = class extends v {
97
98
  };
98
99
  e.styles = [
99
100
  f,
100
- h`
101
+ u`
101
102
  :host {
102
103
  display: block;
103
104
  width: 100%;
@@ -123,7 +124,7 @@ e.styles = [
123
124
  width: 100%;
124
125
  background: var(--paper-white);
125
126
  border: 1px solid var(--ink-faint);
126
- border-radius: var(--form-input-radius);
127
+ border-radius: var(--input-radius);
127
128
  transition: var(--transition-fast);
128
129
  }
129
130
 
@@ -144,9 +145,9 @@ e.styles = [
144
145
  .input {
145
146
  flex: 1;
146
147
  min-width: 0;
147
- padding: var(--form-input-padding-y) var(--form-input-padding-x);
148
+ padding: var(--input-padding-y) var(--input-padding-x);
148
149
  font-family: var(--font-body);
149
- font-size: var(--form-input-font-size);
150
+ font-size: var(--input-font-size);
150
151
  color: var(--ink-black);
151
152
  background: transparent;
152
153
  border: none;
@@ -233,10 +234,13 @@ r([
233
234
  a({ type: String, attribute: "chip-variant" })
234
235
  ], e.prototype, "chipVariant", 2);
235
236
  r([
236
- u()
237
+ a({ type: Object })
238
+ ], e.prototype, "sx", 2);
239
+ r([
240
+ h()
237
241
  ], e.prototype, "inputId", 2);
238
242
  r([
239
- u()
243
+ h()
240
244
  ], e.prototype, "isFocused", 2);
241
245
  e = r([
242
246
  b("tc-input-with-chip")
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * Form input component with label and error states.
4
5
  * Uses design-tokens classes (.input, .label, .field-group).
@@ -25,7 +26,7 @@ export declare class TcInput extends LitElement {
25
26
  autocomplete: string;
26
27
  inputmode: string;
27
28
  maxlength: number;
28
- sx: Record<string, string | number>;
29
+ sx: SxProps;
29
30
  private inputId;
30
31
  private isFocused;
31
32
  static styles: import('lit').CSSResult[];
@@ -1 +1 @@
1
- {"version":3,"file":"tc-input.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C;;;;;;;;;;;;;GAaG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACT,KAAK,SAAM;IACX,IAAI,SAAU;IACd,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,IAAI,SAAM;IACV,YAAY,SAAM;IAClB,SAAS,SAAM;IACf,SAAS,SAAK;IACd,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAE5D,OAAO,CAAC,OAAO,CAAqD;IACpE,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAgB,MAAM,4BA6GpB;IAEO,MAAM;IA+Df,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,WAAW;IAUnB,KAAK;CAIN;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
1
+ {"version":3,"file":"tc-input.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACT,KAAK,SAAM;IACX,IAAI,SAAU;IACd,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,IAAI,SAAM;IACV,YAAY,SAAM;IAClB,SAAS,SAAM;IACf,SAAS,SAAK;IACd,EAAE,EAAE,OAAO,CAAM;IAEpC,OAAO,CAAC,OAAO,CAAqD;IACpE,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAgB,MAAM,4BA6GpB;IAEO,MAAM;IA+Df,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,WAAW;IAUnB,KAAK;CAIN;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * A clickable item button with hover states and optional arrow indicator.
4
5
  *
@@ -13,11 +14,9 @@ import { LitElement } from 'lit';
13
14
  * @csspart arrow - The arrow indicator
14
15
  */
15
16
  export declare class TcItemButton extends LitElement {
16
- gap: string;
17
- padding: string;
18
17
  disabled: boolean;
19
18
  showArrow: boolean;
20
- sx: Record<string, string | number>;
19
+ sx: SxProps;
21
20
  static styles: import('lit').CSSResult;
22
21
  private handleClick;
23
22
  render(): import('lit').TemplateResult<1>;
@@ -1 +1 @@
1
- {"version":3,"file":"tc-item-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;;;GAYG;AACH,qBACa,YAAa,SAAQ,UAAU;IACd,GAAG,SAAqB;IACxB,OAAO,SAAqB;IAC3B,QAAQ,UAAS;IACQ,SAAS,UAAQ;IAC3C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BAsFpB;IAEF,OAAO,CAAC,WAAW;IAWV,MAAM;CA6ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
1
+ {"version":3,"file":"tc-item-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,qBACa,YAAa,SAAQ,UAAU;IACb,QAAQ,UAAS;IACQ,SAAS,UAAQ;IAC3C,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,0BAsFpB;IAEF,OAAO,CAAC,WAAW;IAWV,MAAM;CA6ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
@@ -1,14 +1,14 @@
1
- import { css as c, LitElement as f, html as d } from "lit";
2
- import { property as i, customElement as u } from "lit/decorators.js";
3
- import { styleMap as h } from "lit/directives/style-map.js";
4
- var b = Object.defineProperty, m = Object.getOwnPropertyDescriptor, r = (o, s, a, n) => {
5
- for (var e = n > 1 ? void 0 : n ? m(s, a) : s, l = o.length - 1, p; l >= 0; l--)
6
- (p = o[l]) && (e = (n ? p(s, a, e) : p(e)) || e);
7
- return n && e && b(s, a, e), e;
1
+ import { css as c, LitElement as f, html as p } from "lit";
2
+ import { property as d, customElement as u } from "lit/decorators.js";
3
+ import { styleMap as b } from "lit/directives/style-map.js";
4
+ var h = Object.defineProperty, m = Object.getOwnPropertyDescriptor, s = (r, o, n, i) => {
5
+ for (var t = i > 1 ? void 0 : i ? m(o, n) : o, a = r.length - 1, l; a >= 0; a--)
6
+ (l = r[a]) && (t = (i ? l(o, n, t) : l(t)) || t);
7
+ return i && t && h(o, n, t), t;
8
8
  };
9
- let t = class extends f {
9
+ let e = class extends f {
10
10
  constructor() {
11
- super(...arguments), this.gap = "var(--space-md)", this.padding = "var(--space-md)", this.disabled = !1, this.showArrow = !0, this.sx = {};
11
+ super(...arguments), this.disabled = !1, this.showArrow = !0, this.sx = {};
12
12
  }
13
13
  handleClick() {
14
14
  this.disabled || this.dispatchEvent(
@@ -19,17 +19,17 @@ let t = class extends f {
19
19
  );
20
20
  }
21
21
  render() {
22
- const o = {
23
- "--item-padding": this.padding,
24
- "--item-gap": this.gap,
22
+ const r = {
23
+ "--item-padding": "var(--space-md)",
24
+ "--item-gap": "var(--space-md)",
25
25
  ...this.sx
26
26
  };
27
- return d`
27
+ return p`
28
28
  <button
29
29
  part="button"
30
30
  class="button"
31
31
  ?disabled=${this.disabled}
32
- style=${h(o)}
32
+ style=${b(r)}
33
33
  @click=${this.handleClick}
34
34
  >
35
35
  <div part="prefix" class="prefix">
@@ -41,7 +41,7 @@ let t = class extends f {
41
41
  <div part="suffix" class="suffix">
42
42
  <slot name="suffix"></slot>
43
43
  </div>
44
- ${this.showArrow ? d`
44
+ ${this.showArrow ? p`
45
45
  <svg
46
46
  part="arrow"
47
47
  class="arrow"
@@ -59,7 +59,7 @@ let t = class extends f {
59
59
  `;
60
60
  }
61
61
  };
62
- t.styles = c`
62
+ e.styles = c`
63
63
  :host {
64
64
  display: block;
65
65
  width: 100%;
@@ -146,24 +146,18 @@ t.styles = c`
146
146
  display: none;
147
147
  }
148
148
  `;
149
- r([
150
- i({ type: String })
151
- ], t.prototype, "gap", 2);
152
- r([
153
- i({ type: String })
154
- ], t.prototype, "padding", 2);
155
- r([
156
- i({ type: Boolean })
157
- ], t.prototype, "disabled", 2);
158
- r([
159
- i({ type: Boolean, attribute: "show-arrow" })
160
- ], t.prototype, "showArrow", 2);
161
- r([
162
- i({ type: Object })
163
- ], t.prototype, "sx", 2);
164
- t = r([
149
+ s([
150
+ d({ type: Boolean })
151
+ ], e.prototype, "disabled", 2);
152
+ s([
153
+ d({ type: Boolean, attribute: "show-arrow" })
154
+ ], e.prototype, "showArrow", 2);
155
+ s([
156
+ d({ type: Object })
157
+ ], e.prototype, "sx", 2);
158
+ e = s([
165
159
  u("tc-item-button")
166
- ], t);
160
+ ], e);
167
161
  export {
168
- t as TcItemButton
162
+ e as TcItemButton
169
163
  };
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * A non-clickable item container for displaying content.
4
5
  *
@@ -11,9 +12,7 @@ import { LitElement } from 'lit';
11
12
  * @csspart suffix - The suffix container
12
13
  */
13
14
  export declare class TcItem extends LitElement {
14
- gap: string;
15
- padding: string;
16
- sx: Record<string, string | number>;
15
+ sx: SxProps;
17
16
  static styles: import('lit').CSSResult;
18
17
  render(): import('lit').TemplateResult<1>;
19
18
  }
@@ -1 +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
+ {"version":3,"file":"tc-item.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAgB,MAAM,0BA6CpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -1,23 +1,23 @@
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";
1
+ import { css as l, LitElement as f, html as d } from "lit";
2
+ import { property as m, 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, 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;
4
+ var x = Object.defineProperty, u = Object.getOwnPropertyDescriptor, p = (e, s, a, i) => {
5
+ for (var t = i > 1 ? void 0 : i ? u(s, a) : s, n = e.length - 1, o; n >= 0; n--)
6
+ (o = e[n]) && (t = (i ? o(s, a, t) : o(t)) || t);
7
+ return i && t && x(s, a, t), t;
8
8
  };
9
- let e = class extends f {
9
+ let r = class extends f {
10
10
  constructor() {
11
- super(...arguments), this.gap = "var(--space-md)", this.padding = "var(--space-md)", this.sx = {};
11
+ super(...arguments), this.sx = {};
12
12
  }
13
13
  render() {
14
- const i = {
15
- "--item-padding": this.padding,
16
- "--item-gap": this.gap,
14
+ const e = {
15
+ "--item-padding": "var(--space-md)",
16
+ "--item-gap": "var(--space-md)",
17
17
  ...this.sx
18
18
  };
19
- return m`
20
- <div part="item" class="item" style=${v(i)}>
19
+ return d`
20
+ <div part="item" class="item" style=${v(e)}>
21
21
  <div part="prefix" class="prefix">
22
22
  <slot name="prefix"></slot>
23
23
  </div>
@@ -31,7 +31,7 @@ let e = class extends f {
31
31
  `;
32
32
  }
33
33
  };
34
- e.styles = l`
34
+ r.styles = l`
35
35
  :host {
36
36
  display: block;
37
37
  width: 100%;
@@ -77,18 +77,12 @@ e.styles = l`
77
77
  display: none;
78
78
  }
79
79
  `;
80
- a([
81
- d({ type: String })
82
- ], e.prototype, "gap", 2);
83
- a([
84
- d({ type: String })
85
- ], e.prototype, "padding", 2);
86
- a([
87
- d({ type: Object })
88
- ], e.prototype, "sx", 2);
89
- e = a([
80
+ p([
81
+ m({ type: Object })
82
+ ], r.prototype, "sx", 2);
83
+ r = p([
90
84
  c("tc-item")
91
- ], e);
85
+ ], r);
92
86
  export {
93
- e as TcItem
87
+ r as TcItem
94
88
  };
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * OTP (One-Time Password) input component with individual cells and progress indicator.
4
5
  * Uses shake animation from design-tokens.
@@ -15,6 +16,7 @@ export declare class TcOtpInput extends LitElement {
15
16
  error: boolean;
16
17
  disabled: boolean;
17
18
  showProgress: boolean;
19
+ sx: SxProps;
18
20
  private values;
19
21
  static styles: import('lit').CSSResult[];
20
22
  connectedCallback(): void;
@@ -1 +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
+ {"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,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;GAUG;AACH,qBACa,UAAW,SAAQ,UAAU;IACZ,MAAM,SAAK;IACV,KAAK,UAAS;IACd,QAAQ,UAAS;IACW,YAAY,UAAQ;IACjD,EAAE,EAAE,OAAO,CAAM;IAEpC,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,14 +1,15 @@
1
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
- import { sharedStyles as m } from "../styles/shared.js";
4
- var g = Object.defineProperty, f = Object.getOwnPropertyDescriptor, n = (t, e, s, r) => {
5
- for (var a = r > 1 ? void 0 : r ? f(e, s) : e, o = t.length - 1, l; o >= 0; o--)
3
+ import { styleMap as m } from "lit/directives/style-map.js";
4
+ import { sharedStyles as g } from "../styles/shared.js";
5
+ var f = Object.defineProperty, b = Object.getOwnPropertyDescriptor, n = (t, e, s, r) => {
6
+ for (var a = r > 1 ? void 0 : r ? b(e, s) : e, o = t.length - 1, l; o >= 0; o--)
6
7
  (l = t[o]) && (a = (r ? l(e, s, a) : l(a)) || a);
7
- return r && a && g(e, s, a), a;
8
+ return r && a && f(e, s, a), a;
8
9
  };
9
10
  let i = class extends p {
10
11
  constructor() {
11
- super(...arguments), this.length = 6, this.error = !1, this.disabled = !1, this.showProgress = !0, this.values = [];
12
+ super(...arguments), this.length = 6, this.error = !1, this.disabled = !1, this.showProgress = !0, this.sx = {}, this.values = [];
12
13
  }
13
14
  connectedCallback() {
14
15
  super.connectedCallback(), this.values = new Array(this.length).fill("");
@@ -16,7 +17,7 @@ let i = class extends p {
16
17
  render() {
17
18
  const e = this.values.filter((s) => s.length > 0).length / this.length * 100;
18
19
  return h`
19
- <div class="container">
20
+ <div class="container" style=${m(this.sx)}>
20
21
  <div part="cells" class="cells" role="group" aria-label="OTP input">
21
22
  ${this.values.map((s, r) => {
22
23
  const o = [
@@ -118,7 +119,7 @@ let i = class extends p {
118
119
  }
119
120
  };
120
121
  i.styles = [
121
- m,
122
+ g,
122
123
  u`
123
124
  :host {
124
125
  display: block;
@@ -221,6 +222,9 @@ n([
221
222
  n([
222
223
  c({ type: Boolean, attribute: "show-progress" })
223
224
  ], i.prototype, "showProgress", 2);
225
+ n([
226
+ c({ type: Object })
227
+ ], i.prototype, "sx", 2);
224
228
  n([
225
229
  d()
226
230
  ], i.prototype, "values", 2);
@@ -1,4 +1,5 @@
1
1
  import { LitElement } from 'lit';
2
+ import { SxProps } from '../types.js';
2
3
  /**
3
4
  * Decorative floating blob background for pages.
4
5
  * Uses CSS custom properties for color variants and inkFloat/inkDrift animations from design-tokens.
@@ -8,6 +9,7 @@ import { LitElement } from 'lit';
8
9
  */
9
10
  export declare class TcPageDecoration extends LitElement {
10
11
  variant: 'primary' | 'success' | 'error';
12
+ sx: SxProps;
11
13
  static styles: import('lit').CSSResult[];
12
14
  render(): import('lit').TemplateResult<1>;
13
15
  }