@transcodes/ui-components 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/README.md +8 -22
  3. package/dist/controllers/index.d.ts +0 -2
  4. package/dist/controllers/index.d.ts.map +1 -1
  5. package/dist/controllers/index.js +10 -12
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +48 -64
  9. package/dist/primitives/index.d.ts +1 -0
  10. package/dist/primitives/index.d.ts.map +1 -1
  11. package/dist/primitives/index.js +18 -16
  12. package/dist/primitives/tc-box.d.ts +2 -1
  13. package/dist/primitives/tc-box.d.ts.map +1 -1
  14. package/dist/primitives/tc-box.js +4 -4
  15. package/dist/primitives/tc-button.d.ts +2 -1
  16. package/dist/primitives/tc-button.d.ts.map +1 -1
  17. package/dist/primitives/tc-button.js +21 -20
  18. package/dist/primitives/tc-callout.d.ts +2 -0
  19. package/dist/primitives/tc-callout.d.ts.map +1 -1
  20. package/dist/primitives/tc-callout.js +22 -17
  21. package/dist/primitives/tc-card.d.ts +2 -1
  22. package/dist/primitives/tc-card.d.ts.map +1 -1
  23. package/dist/primitives/tc-card.js +11 -10
  24. package/dist/primitives/tc-chip.d.ts +2 -0
  25. package/dist/primitives/tc-chip.d.ts.map +1 -1
  26. package/dist/primitives/tc-chip.js +26 -16
  27. package/dist/primitives/tc-container.d.ts +2 -1
  28. package/dist/primitives/tc-container.d.ts.map +1 -1
  29. package/dist/primitives/tc-container.js +12 -10
  30. package/dist/primitives/tc-divider.d.ts +2 -2
  31. package/dist/primitives/tc-divider.d.ts.map +1 -1
  32. package/dist/primitives/tc-divider.js +25 -23
  33. package/dist/primitives/tc-error-message.d.ts +2 -0
  34. package/dist/primitives/tc-error-message.d.ts.map +1 -1
  35. package/dist/primitives/tc-error-message.js +23 -16
  36. package/dist/primitives/tc-form-header.d.ts +2 -1
  37. package/dist/primitives/tc-form-header.d.ts.map +1 -1
  38. package/dist/primitives/tc-form-header.js +9 -7
  39. package/dist/primitives/tc-icon.d.ts +2 -2
  40. package/dist/primitives/tc-icon.d.ts.map +1 -1
  41. package/dist/primitives/tc-icon.js +61 -61
  42. package/dist/primitives/tc-input-with-chip.d.ts +2 -0
  43. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
  44. package/dist/primitives/tc-input-with-chip.js +26 -18
  45. package/dist/primitives/tc-input.d.ts +2 -1
  46. package/dist/primitives/tc-input.d.ts.map +1 -1
  47. package/dist/primitives/tc-input.js +11 -9
  48. package/dist/primitives/tc-item-button.d.ts +2 -3
  49. package/dist/primitives/tc-item-button.d.ts.map +1 -1
  50. package/dist/primitives/tc-item-button.js +31 -36
  51. package/dist/primitives/tc-item.d.ts +2 -3
  52. package/dist/primitives/tc-item.d.ts.map +1 -1
  53. package/dist/primitives/tc-item.js +21 -26
  54. package/dist/primitives/tc-otp-input.d.ts +2 -0
  55. package/dist/primitives/tc-otp-input.d.ts.map +1 -1
  56. package/dist/primitives/tc-otp-input.js +17 -11
  57. package/dist/{widgets → primitives}/tc-page-decoration.d.ts +2 -0
  58. package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
  59. package/dist/{widgets → primitives}/tc-page-decoration.js +29 -25
  60. package/dist/primitives/tc-section.d.ts +2 -2
  61. package/dist/primitives/tc-section.d.ts.map +1 -1
  62. package/dist/primitives/tc-section.js +23 -24
  63. package/dist/primitives/tc-spinner.d.ts +2 -1
  64. package/dist/primitives/tc-spinner.d.ts.map +1 -1
  65. package/dist/primitives/tc-spinner.js +32 -29
  66. package/dist/primitives/tc-symbol.d.ts +2 -3
  67. package/dist/primitives/tc-symbol.d.ts.map +1 -1
  68. package/dist/primitives/tc-symbol.js +26 -28
  69. package/dist/primitives/tc-text.d.ts +2 -1
  70. package/dist/primitives/tc-text.d.ts.map +1 -1
  71. package/dist/primitives/tc-text.js +3 -3
  72. package/dist/primitives/tc-toast.d.ts +2 -0
  73. package/dist/primitives/tc-toast.d.ts.map +1 -1
  74. package/dist/primitives/tc-toast.js +35 -25
  75. package/dist/screens/tc-error-screen.d.ts +8 -1
  76. package/dist/screens/tc-error-screen.d.ts.map +1 -1
  77. package/dist/screens/tc-error-screen.js +91 -32
  78. package/dist/screens/tc-loading-screen.d.ts +3 -1
  79. package/dist/screens/tc-loading-screen.d.ts.map +1 -1
  80. package/dist/screens/tc-loading-screen.js +28 -19
  81. package/dist/screens/tc-success-screen.d.ts +2 -0
  82. package/dist/screens/tc-success-screen.d.ts.map +1 -1
  83. package/dist/screens/tc-success-screen.js +41 -31
  84. package/dist/types.d.ts +34 -0
  85. package/dist/types.d.ts.map +1 -0
  86. package/package.json +13 -13
  87. package/dist/controllers/form-validation.controller.d.ts +0 -48
  88. package/dist/controllers/form-validation.controller.d.ts.map +0 -1
  89. package/dist/controllers/form-validation.controller.js +0 -49
  90. package/dist/widgets/index.d.ts +0 -9
  91. package/dist/widgets/index.d.ts.map +0 -1
  92. package/dist/widgets/index.js +0 -18
  93. package/dist/widgets/tc-authenticator-card.d.ts +0 -35
  94. package/dist/widgets/tc-authenticator-card.d.ts.map +0 -1
  95. package/dist/widgets/tc-authenticator-card.js +0 -213
  96. package/dist/widgets/tc-floating-button.d.ts +0 -25
  97. package/dist/widgets/tc-floating-button.d.ts.map +0 -1
  98. package/dist/widgets/tc-floating-button.js +0 -132
  99. package/dist/widgets/tc-iframe-modal.d.ts +0 -43
  100. package/dist/widgets/tc-iframe-modal.d.ts.map +0 -1
  101. package/dist/widgets/tc-iframe-modal.js +0 -263
  102. package/dist/widgets/tc-installation-banner.d.ts +0 -42
  103. package/dist/widgets/tc-installation-banner.d.ts.map +0 -1
  104. package/dist/widgets/tc-installation-banner.js +0 -234
  105. package/dist/widgets/tc-ios-installation-guide.d.ts +0 -34
  106. package/dist/widgets/tc-ios-installation-guide.d.ts.map +0 -1
  107. package/dist/widgets/tc-ios-installation-guide.js +0 -240
  108. package/dist/widgets/tc-notification-modal.d.ts +0 -42
  109. package/dist/widgets/tc-notification-modal.d.ts.map +0 -1
  110. package/dist/widgets/tc-notification-modal.js +0 -230
  111. package/dist/widgets/tc-offline-modal.d.ts +0 -39
  112. package/dist/widgets/tc-offline-modal.d.ts.map +0 -1
  113. package/dist/widgets/tc-offline-modal.js +0 -202
  114. package/dist/widgets/tc-page-decoration.d.ts.map +0 -1
@@ -1,65 +1,68 @@
1
- import { LitElement as a, html as o, css 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 a {
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 = p`
65
+ n.styles = a`
63
66
  :host {
64
67
  display: inline-flex;
65
68
  align-items: center;
@@ -78,18 +81,15 @@ l.styles = p`
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,4BA2GpB;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,15 +1,18 @@
1
- import { LitElement as h, html as n, css as b } from "lit";
2
- import { property as a, state as u, customElement as v } 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
- var m = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (t, i, s, p) => {
6
- for (var o = p > 1 ? void 0 : p ? y(i, s) : i, l = t.length - 1, c; l >= 0; l--)
6
+ import "./tc-chip.js";
7
+ import "./tc-icon.js";
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--)
7
10
  (c = t[l]) && (o = (p ? c(i, s, o) : c(o)) || o);
8
11
  return p && o && m(i, s, o), o;
9
12
  };
10
- let e = class extends h {
13
+ let e = class extends v {
11
14
  constructor() {
12
- 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;
13
16
  }
14
17
  render() {
15
18
  const t = this.error.length > 0, i = {
@@ -21,7 +24,7 @@ let e = class extends h {
21
24
  "has-error": t
22
25
  };
23
26
  return n`
24
- <div class=${d(i)}>
27
+ <div class=${d(i)} style=${y(this.sx)}>
25
28
  ${this.label ? n`<label part="label" class="field-label" for=${this.inputId}>${this.label}</label>` : ""}
26
29
  <div part="wrapper" class=${d(s)}>
27
30
  <input
@@ -44,7 +47,7 @@ let e = class extends h {
44
47
  <div class="chip-container">
45
48
  <tc-chip part="chip" variant=${this.chipVariant} size="sm">
46
49
  <span class="chip-content">
47
- ${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>` : ""}
48
51
  ${this.chipLabel}
49
52
  </span>
50
53
  </tc-chip>
@@ -95,9 +98,11 @@ let e = class extends h {
95
98
  };
96
99
  e.styles = [
97
100
  f,
98
- b`
101
+ u`
99
102
  :host {
100
103
  display: block;
104
+ width: 100%;
105
+ min-width: 0;
101
106
  }
102
107
 
103
108
  .field-group {
@@ -119,13 +124,13 @@ e.styles = [
119
124
  width: 100%;
120
125
  background: var(--paper-white);
121
126
  border: 1px solid var(--ink-faint);
122
- border-radius: var(--form-input-radius);
127
+ border-radius: var(--input-radius);
123
128
  transition: var(--transition-fast);
124
129
  }
125
130
 
126
131
  .input-container:focus-within {
127
132
  border-color: var(--accent-primary);
128
- box-shadow: 0 0 0 3px var(--alpha-primary10);
133
+ box-shadow: 0 0 0 var(--shadow-focus-ring-width) var(--alpha-primary10);
129
134
  }
130
135
 
131
136
  .input-container.has-error {
@@ -134,15 +139,15 @@ e.styles = [
134
139
  }
135
140
 
136
141
  .input-container.has-error:focus-within {
137
- box-shadow: 0 0 0 3px var(--error-border);
142
+ box-shadow: 0 0 0 var(--shadow-focus-ring-width) var(--error-border);
138
143
  }
139
144
 
140
145
  .input {
141
146
  flex: 1;
142
147
  min-width: 0;
143
- padding: var(--form-input-padding-y) var(--form-input-padding-x);
148
+ padding: var(--input-padding-y) var(--input-padding-x);
144
149
  font-family: var(--font-body);
145
- font-size: var(--form-input-font-size);
150
+ font-size: var(--input-font-size);
146
151
  color: var(--ink-black);
147
152
  background: transparent;
148
153
  border: none;
@@ -184,7 +189,7 @@ e.styles = [
184
189
  @keyframes slideDown {
185
190
  from {
186
191
  opacity: 0;
187
- transform: translateY(-0.25rem);
192
+ transform: translateY(calc(-1 * var(--offset-slide-up-sm)));
188
193
  }
189
194
  to {
190
195
  opacity: 1;
@@ -229,13 +234,16 @@ r([
229
234
  a({ type: String, attribute: "chip-variant" })
230
235
  ], e.prototype, "chipVariant", 2);
231
236
  r([
232
- u()
237
+ a({ type: Object })
238
+ ], e.prototype, "sx", 2);
239
+ r([
240
+ h()
233
241
  ], e.prototype, "inputId", 2);
234
242
  r([
235
- u()
243
+ h()
236
244
  ], e.prototype, "isFocused", 2);
237
245
  e = r([
238
- v("tc-input-with-chip")
246
+ b("tc-input-with-chip")
239
247
  ], e);
240
248
  export {
241
249
  e as TcInputWithChip
@@ -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,4BA2GpB;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,14 +1,14 @@
1
- import { LitElement as c, html as d, css as m } from "lit";
1
+ import { css as c, LitElement as m, html as d } from "lit";
2
2
  import { property as i, state as h, customElement as b } from "lit/decorators.js";
3
3
  import { classMap as u } from "lit/directives/class-map.js";
4
- import { styleMap as y } from "lit/directives/style-map.js";
5
- import { sharedStyles as v } from "../styles/shared.js";
4
+ import { styleMap as v } from "lit/directives/style-map.js";
5
+ import { sharedStyles as y } from "../styles/shared.js";
6
6
  var f = Object.defineProperty, g = Object.getOwnPropertyDescriptor, r = (e, o, n, a) => {
7
7
  for (var s = a > 1 ? void 0 : a ? g(o, n) : o, l = e.length - 1, p; l >= 0; l--)
8
8
  (p = e[l]) && (s = (a ? p(o, n, s) : p(s)) || s);
9
9
  return a && s && f(o, n, s), s;
10
10
  };
11
- let t = class extends c {
11
+ let t = class extends m {
12
12
  constructor() {
13
13
  super(...arguments), this.label = "", this.type = "text", this.placeholder = "", this.value = "", this.error = "", this.disabled = !1, this.required = !1, this.name = "", this.autocomplete = "", this.inputmode = "", this.maxlength = 0, this.sx = {}, this.inputId = `tc-input-${Math.random().toString(36).slice(2)}`, this.isFocused = !1;
14
14
  }
@@ -44,7 +44,7 @@ let t = class extends c {
44
44
  maxlength=${this.maxlength || ""}
45
45
  aria-invalid=${e ? "true" : "false"}
46
46
  aria-describedby=${e ? `${this.inputId}-error` : ""}
47
- style=${y(this.sx)}
47
+ style=${v(this.sx)}
48
48
  @input=${this.handleInput}
49
49
  @focus=${this.handleFocus}
50
50
  @blur=${this.handleBlur}
@@ -105,10 +105,12 @@ let t = class extends c {
105
105
  }
106
106
  };
107
107
  t.styles = [
108
- v,
109
- m`
108
+ y,
109
+ c`
110
110
  :host {
111
111
  display: block;
112
+ width: 100%;
113
+ min-width: 0;
112
114
  }
113
115
 
114
116
  /* Extend design-tokens .field-group */
@@ -171,7 +173,7 @@ t.styles = [
171
173
 
172
174
  .input.has-error:focus {
173
175
  border-color: var(--error-base);
174
- box-shadow: 0 0 0 0.1875rem var(--error-border);
176
+ box-shadow: 0 0 0 var(--shadow-focus-ring-width) var(--error-border);
175
177
  }
176
178
 
177
179
  .input-wrapper.has-error .ink-line {
@@ -192,7 +194,7 @@ t.styles = [
192
194
  @keyframes slideDown {
193
195
  from {
194
196
  opacity: 0;
195
- transform: translateY(-0.25rem);
197
+ transform: translateY(calc(-1 * var(--offset-slide-up-sm)));
196
198
  }
197
199
  to {
198
200
  opacity: 1;
@@ -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,0BAqFpB;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 { LitElement as c, html as d, css as f } from "lit";
2
- import { property as o, customElement as u } from "lit/decorators.js";
3
- import { styleMap as h } from "lit/directives/style-map.js";
4
- var m = Object.defineProperty, b = Object.getOwnPropertyDescriptor, r = (i, s, a, n) => {
5
- for (var e = n > 1 ? void 0 : n ? b(s, a) : s, l = i.length - 1, p; l >= 0; l--)
6
- (p = i[l]) && (e = (n ? p(s, a, e) : p(e)) || e);
7
- return n && e && m(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 c {
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 c {
19
19
  );
20
20
  }
21
21
  render() {
22
- const i = {
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(i)}
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 c {
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,10 +59,11 @@ let t = class extends c {
59
59
  `;
60
60
  }
61
61
  };
62
- t.styles = f`
62
+ e.styles = c`
63
63
  :host {
64
64
  display: block;
65
65
  width: 100%;
66
+ min-width: 0;
66
67
  }
67
68
 
68
69
  .button {
@@ -123,8 +124,8 @@ t.styles = f`
123
124
 
124
125
  .arrow {
125
126
  flex-shrink: 0;
126
- width: 1.25rem;
127
- height: 1.25rem;
127
+ width: var(--size-icon-action);
128
+ height: var(--size-icon-action);
128
129
  color: var(--ink-light);
129
130
  transition: var(--transition-fast);
130
131
  }
@@ -145,24 +146,18 @@ t.styles = f`
145
146
  display: none;
146
147
  }
147
148
  `;
148
- r([
149
- o({ type: String })
150
- ], t.prototype, "gap", 2);
151
- r([
152
- o({ type: String })
153
- ], t.prototype, "padding", 2);
154
- r([
155
- o({ type: Boolean })
156
- ], t.prototype, "disabled", 2);
157
- r([
158
- o({ type: Boolean, attribute: "show-arrow" })
159
- ], t.prototype, "showArrow", 2);
160
- r([
161
- o({ type: Object })
162
- ], t.prototype, "sx", 2);
163
- 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([
164
159
  u("tc-item-button")
165
- ], t);
160
+ ], e);
166
161
  export {
167
- t as TcItemButton
162
+ e as TcItemButton
168
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,0BA4CpB;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"}