@transcodes/ui-components 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/controllers/animation.controller.d.ts +48 -0
  3. package/dist/controllers/animation.controller.d.ts.map +1 -0
  4. package/dist/controllers/base.controller.d.ts +14 -0
  5. package/dist/controllers/base.controller.d.ts.map +1 -0
  6. package/dist/controllers/history.controller.d.ts +34 -0
  7. package/dist/controllers/history.controller.d.ts.map +1 -0
  8. package/dist/controllers/index.d.ts +0 -2
  9. package/dist/controllers/index.d.ts.map +1 -0
  10. package/dist/controllers/index.js +10 -12
  11. package/dist/controllers/loading.controller.d.ts +36 -0
  12. package/dist/controllers/loading.controller.d.ts.map +1 -0
  13. package/dist/controllers/match-media.controller.d.ts +32 -0
  14. package/dist/controllers/match-media.controller.d.ts.map +1 -0
  15. package/dist/controllers/message-bus.controller.d.ts +45 -0
  16. package/dist/controllers/message-bus.controller.d.ts.map +1 -0
  17. package/dist/controllers/storage.controller.d.ts +40 -0
  18. package/dist/controllers/storage.controller.d.ts.map +1 -0
  19. package/dist/index.d.ts +4 -295
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +48 -64
  22. package/dist/primitives/index.d.ts +1 -0
  23. package/dist/primitives/index.d.ts.map +1 -0
  24. package/dist/primitives/index.js +18 -16
  25. package/dist/primitives/tc-box.d.ts +19 -0
  26. package/dist/primitives/tc-box.d.ts.map +1 -0
  27. package/dist/primitives/tc-box.js +4 -4
  28. package/dist/primitives/tc-button.d.ts +25 -0
  29. package/dist/primitives/tc-button.d.ts.map +1 -0
  30. package/dist/primitives/tc-button.js +21 -20
  31. package/dist/primitives/tc-callout.d.ts +22 -0
  32. package/dist/primitives/tc-callout.d.ts.map +1 -0
  33. package/dist/primitives/tc-callout.js +5 -4
  34. package/dist/primitives/tc-card.d.ts +20 -0
  35. package/dist/primitives/tc-card.d.ts.map +1 -0
  36. package/dist/primitives/tc-card.js +11 -10
  37. package/dist/primitives/tc-chip.d.ts +19 -0
  38. package/dist/primitives/tc-chip.d.ts.map +1 -0
  39. package/dist/primitives/tc-chip.js +18 -16
  40. package/dist/primitives/tc-container.d.ts +20 -0
  41. package/dist/primitives/tc-container.d.ts.map +1 -0
  42. package/dist/primitives/tc-container.js +12 -10
  43. package/dist/primitives/tc-divider.d.ts +22 -0
  44. package/dist/primitives/tc-divider.d.ts.map +1 -0
  45. package/dist/primitives/tc-divider.js +4 -3
  46. package/dist/primitives/tc-error-message.d.ts +23 -0
  47. package/dist/primitives/tc-error-message.d.ts.map +1 -0
  48. package/dist/primitives/tc-error-message.js +13 -9
  49. package/dist/primitives/tc-form-header.d.ts +25 -0
  50. package/dist/primitives/tc-form-header.d.ts.map +1 -0
  51. package/dist/primitives/tc-form-header.js +9 -7
  52. package/dist/primitives/tc-icon.d.ts +20 -0
  53. package/dist/primitives/tc-icon.d.ts.map +1 -0
  54. package/dist/primitives/tc-icon.js +3 -3
  55. package/dist/primitives/tc-input-with-chip.d.ts +38 -0
  56. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -0
  57. package/dist/primitives/tc-input-with-chip.js +12 -8
  58. package/dist/primitives/tc-input.d.ts +45 -0
  59. package/dist/primitives/tc-input.d.ts.map +1 -0
  60. package/dist/primitives/tc-input.js +11 -9
  61. package/dist/primitives/tc-item-button.d.ts +30 -0
  62. package/dist/primitives/tc-item-button.d.ts.map +1 -0
  63. package/dist/primitives/tc-item-button.js +18 -17
  64. package/dist/primitives/tc-item.d.ts +25 -0
  65. package/dist/primitives/tc-item.d.ts.map +1 -0
  66. package/dist/primitives/tc-item.js +13 -12
  67. package/dist/primitives/tc-otp-input.d.ts +38 -0
  68. package/dist/primitives/tc-otp-input.d.ts.map +1 -0
  69. package/dist/primitives/tc-otp-input.js +6 -4
  70. package/dist/primitives/tc-page-decoration.d.ts +19 -0
  71. package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
  72. package/dist/{widgets → primitives}/tc-page-decoration.js +8 -8
  73. package/dist/primitives/tc-section.d.ts +19 -0
  74. package/dist/primitives/tc-section.d.ts.map +1 -0
  75. package/dist/primitives/tc-section.js +15 -13
  76. package/dist/primitives/tc-spinner.d.ts +20 -0
  77. package/dist/primitives/tc-spinner.d.ts.map +1 -0
  78. package/dist/primitives/tc-spinner.js +17 -17
  79. package/dist/primitives/tc-symbol.d.ts +20 -0
  80. package/dist/primitives/tc-symbol.d.ts.map +1 -0
  81. package/dist/primitives/tc-symbol.js +15 -13
  82. package/dist/primitives/tc-text.d.ts +31 -0
  83. package/dist/primitives/tc-text.d.ts.map +1 -0
  84. package/dist/primitives/tc-text.js +3 -3
  85. package/dist/primitives/tc-toast.d.ts +34 -0
  86. package/dist/primitives/tc-toast.d.ts.map +1 -0
  87. package/dist/primitives/tc-toast.js +3 -3
  88. package/dist/screens/index.d.ts.map +1 -0
  89. package/dist/screens/tc-error-screen.d.ts +32 -0
  90. package/dist/screens/tc-error-screen.d.ts.map +1 -0
  91. package/dist/screens/tc-error-screen.js +84 -29
  92. package/dist/screens/tc-loading-screen.d.ts +23 -0
  93. package/dist/screens/tc-loading-screen.d.ts.map +1 -0
  94. package/dist/screens/tc-loading-screen.js +16 -11
  95. package/dist/screens/tc-success-screen.d.ts +31 -0
  96. package/dist/screens/tc-success-screen.d.ts.map +1 -0
  97. package/dist/screens/tc-success-screen.js +19 -13
  98. package/dist/styles/shared.d.ts +20 -0
  99. package/dist/styles/shared.d.ts.map +1 -0
  100. package/package.json +13 -13
  101. package/dist/controllers/form-validation.controller.js +0 -49
  102. package/dist/widgets/index.d.ts +0 -9
  103. package/dist/widgets/index.js +0 -18
  104. package/dist/widgets/tc-authenticator-card.js +0 -213
  105. package/dist/widgets/tc-floating-button.js +0 -132
  106. package/dist/widgets/tc-iframe-modal.js +0 -263
  107. package/dist/widgets/tc-installation-banner.js +0 -234
  108. package/dist/widgets/tc-ios-installation-guide.js +0 -240
  109. package/dist/widgets/tc-notification-modal.js +0 -230
  110. package/dist/widgets/tc-offline-modal.js +0 -202
package/dist/index.js CHANGED
@@ -1,80 +1,64 @@
1
- import { AnimationController as t } from "./controllers/animation.controller.js";
2
- import { BaseController as m } from "./controllers/base.controller.js";
3
- import { FormValidationController as f } from "./controllers/form-validation.controller.js";
4
- import { HistoryController as x } from "./controllers/history.controller.js";
5
- import { LoadingController as T } from "./controllers/loading.controller.js";
6
- import { MatchMediaController as l } from "./controllers/match-media.controller.js";
7
- import { MessageBusController as C } from "./controllers/message-bus.controller.js";
8
- import { StorageController as d } from "./controllers/storage.controller.js";
9
- import { TcBox as I } from "./primitives/tc-box.js";
10
- import { TcButton as g } from "./primitives/tc-button.js";
11
- import { TcCallout as M } from "./primitives/tc-callout.js";
12
- import { TcCard as F } from "./primitives/tc-card.js";
13
- import { TcChip as A } from "./primitives/tc-chip.js";
1
+ import { AnimationController as e } from "./controllers/animation.controller.js";
2
+ import { BaseController as p } from "./controllers/base.controller.js";
3
+ import { HistoryController as c } from "./controllers/history.controller.js";
4
+ import { LoadingController as f } from "./controllers/loading.controller.js";
5
+ import { MatchMediaController as T } from "./controllers/match-media.controller.js";
6
+ import { MessageBusController as a } from "./controllers/message-bus.controller.js";
7
+ import { StorageController as C } from "./controllers/storage.controller.js";
8
+ import { TcBox as u } from "./primitives/tc-box.js";
9
+ import { TcButton as d } from "./primitives/tc-button.js";
10
+ import { TcCallout as I } from "./primitives/tc-callout.js";
11
+ import { TcCard as h } from "./primitives/tc-card.js";
12
+ import { TcChip as y } from "./primitives/tc-chip.js";
14
13
  import { TcContainer as E } from "./primitives/tc-container.js";
15
14
  import { TcDivider as L } from "./primitives/tc-divider.js";
16
- import { TcErrorMessage as b } from "./primitives/tc-error-message.js";
17
- import { TcFormHeader as G } from "./primitives/tc-form-header.js";
15
+ import { TcErrorMessage as v } from "./primitives/tc-error-message.js";
16
+ import { TcFormHeader as F } from "./primitives/tc-form-header.js";
18
17
  import { TcIcon as P } from "./primitives/tc-icon.js";
19
- import { TcInput as W } from "./primitives/tc-input.js";
20
- import { TcInputWithChip as k } from "./primitives/tc-input-with-chip.js";
21
- import { TcItem as w } from "./primitives/tc-item.js";
18
+ import { TcInput as j } from "./primitives/tc-input.js";
19
+ import { TcInputWithChip as q } from "./primitives/tc-input-with-chip.js";
20
+ import { TcItem as z } from "./primitives/tc-item.js";
22
21
  import { TcItemButton as J } from "./primitives/tc-item-button.js";
23
- import { TcOtpInput as Q } from "./primitives/tc-otp-input.js";
24
- import { TcSection as U } from "./primitives/tc-section.js";
22
+ import { TcOtpInput as N } from "./primitives/tc-otp-input.js";
23
+ import { TcPageDecoration as R } from "./primitives/tc-page-decoration.js";
24
+ import { TcSection as V } from "./primitives/tc-section.js";
25
25
  import { TcSpinner as Y } from "./primitives/tc-spinner.js";
26
26
  import { TcSymbol as _ } from "./primitives/tc-symbol.js";
27
27
  import { TcText as oo } from "./primitives/tc-text.js";
28
- import { TcToast as to } from "./primitives/tc-toast.js";
29
- import { TcErrorScreen as mo } from "./screens/tc-error-screen.js";
30
- import { TcLoadingScreen as fo } from "./screens/tc-loading-screen.js";
31
- import { TcSuccessScreen as xo } from "./screens/tc-success-screen.js";
32
- import { TcAuthenticatorCard as To } from "./widgets/tc-authenticator-card.js";
33
- import { TcFloatingButton as lo } from "./widgets/tc-floating-button.js";
34
- import { TcIframeModal as Co } from "./widgets/tc-iframe-modal.js";
35
- import { TcInstallationBanner as uo } from "./widgets/tc-installation-banner.js";
36
- import { TcIosInstallationGuide as So } from "./widgets/tc-ios-installation-guide.js";
37
- import { TcNotificationModal as Bo } from "./widgets/tc-notification-modal.js";
38
- import { TcOfflineModal as ho } from "./widgets/tc-offline-modal.js";
39
- import { TcPageDecoration as yo } from "./widgets/tc-page-decoration.js";
28
+ import { TcToast as eo } from "./primitives/tc-toast.js";
29
+ import { TcErrorScreen as po } from "./screens/tc-error-screen.js";
30
+ import { TcLoadingScreen as co } from "./screens/tc-loading-screen.js";
31
+ import { TcSuccessScreen as fo } from "./screens/tc-success-screen.js";
40
32
  export {
41
- t as AnimationController,
42
- m as BaseController,
43
- f as FormValidationController,
44
- x as HistoryController,
45
- T as LoadingController,
46
- l as MatchMediaController,
47
- C as MessageBusController,
48
- d as StorageController,
49
- To as TcAuthenticatorCard,
50
- I as TcBox,
51
- g as TcButton,
52
- M as TcCallout,
53
- F as TcCard,
54
- A as TcChip,
33
+ e as AnimationController,
34
+ p as BaseController,
35
+ c as HistoryController,
36
+ f as LoadingController,
37
+ T as MatchMediaController,
38
+ a as MessageBusController,
39
+ C as StorageController,
40
+ u as TcBox,
41
+ d as TcButton,
42
+ I as TcCallout,
43
+ h as TcCard,
44
+ y as TcChip,
55
45
  E as TcContainer,
56
46
  L as TcDivider,
57
- b as TcErrorMessage,
58
- mo as TcErrorScreen,
59
- lo as TcFloatingButton,
60
- G as TcFormHeader,
47
+ v as TcErrorMessage,
48
+ po as TcErrorScreen,
49
+ F as TcFormHeader,
61
50
  P as TcIcon,
62
- Co as TcIframeModal,
63
- W as TcInput,
64
- k as TcInputWithChip,
65
- uo as TcInstallationBanner,
66
- So as TcIosInstallationGuide,
67
- w as TcItem,
51
+ j as TcInput,
52
+ q as TcInputWithChip,
53
+ z as TcItem,
68
54
  J as TcItemButton,
69
- fo as TcLoadingScreen,
70
- Bo as TcNotificationModal,
71
- ho as TcOfflineModal,
72
- Q as TcOtpInput,
73
- yo as TcPageDecoration,
74
- U as TcSection,
55
+ co as TcLoadingScreen,
56
+ N as TcOtpInput,
57
+ R as TcPageDecoration,
58
+ V as TcSection,
75
59
  Y as TcSpinner,
76
- xo as TcSuccessScreen,
60
+ fo as TcSuccessScreen,
77
61
  _ as TcSymbol,
78
62
  oo as TcText,
79
- to as TcToast
63
+ eo as TcToast
80
64
  };
@@ -13,6 +13,7 @@ export { TcInputWithChip } from './tc-input-with-chip.js';
13
13
  export { TcItem } from './tc-item.js';
14
14
  export { TcItemButton } from './tc-item-button.js';
15
15
  export { TcOtpInput } from './tc-otp-input.js';
16
+ export { TcPageDecoration } from './tc-page-decoration.js';
16
17
  export { TcSection } from './tc-section.js';
17
18
  export { TcSpinner } from './tc-spinner.js';
18
19
  export { TcSymbol } from './tc-symbol.js';
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitives/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -8,16 +8,17 @@ import { TcDivider as I } from "./tc-divider.js";
8
8
  import { TcErrorMessage as d } from "./tc-error-message.js";
9
9
  import { TcFormHeader as l } from "./tc-form-header.js";
10
10
  import { TcIcon as B } from "./tc-icon.js";
11
- import { TcInput as b } from "./tc-input.js";
12
- import { TcInputWithChip as v } from "./tc-input-with-chip.js";
13
- import { TcItem as D } from "./tc-item.js";
11
+ import { TcInput as g } from "./tc-input.js";
12
+ import { TcInputWithChip as b } from "./tc-input-with-chip.js";
13
+ import { TcItem as y } from "./tc-item.js";
14
14
  import { TcItemButton as F } from "./tc-item-button.js";
15
15
  import { TcOtpInput as M } from "./tc-otp-input.js";
16
- import { TcSection as W } from "./tc-section.js";
17
- import { TcSpinner as k } from "./tc-spinner.js";
18
- import { TcSymbol as w } from "./tc-symbol.js";
19
- import { TcText as A } from "./tc-text.js";
20
- import { TcToast as J } from "./tc-toast.js";
16
+ import { TcPageDecoration as P } from "./tc-page-decoration.js";
17
+ import { TcSection as j } from "./tc-section.js";
18
+ import { TcSpinner as q } from "./tc-spinner.js";
19
+ import { TcSymbol as z } from "./tc-symbol.js";
20
+ import { TcText as G } from "./tc-text.js";
21
+ import { TcToast as K } from "./tc-toast.js";
21
22
  export {
22
23
  t as TcBox,
23
24
  p as TcButton,
@@ -29,14 +30,15 @@ export {
29
30
  d as TcErrorMessage,
30
31
  l as TcFormHeader,
31
32
  B as TcIcon,
32
- b as TcInput,
33
- v as TcInputWithChip,
34
- D as TcItem,
33
+ g as TcInput,
34
+ b as TcInputWithChip,
35
+ y as TcItem,
35
36
  F as TcItemButton,
36
37
  M as TcOtpInput,
37
- W as TcSection,
38
- k as TcSpinner,
39
- w as TcSymbol,
40
- A as TcText,
41
- J as TcToast
38
+ P as TcPageDecoration,
39
+ j as TcSection,
40
+ q as TcSpinner,
41
+ z as TcSymbol,
42
+ G as TcText,
43
+ K as TcToast
42
44
  };
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A simple container component without default flex layout.
4
+ * Use for wrapping content with custom styles.
5
+ *
6
+ * @slot - Content to display inside the box
7
+ * @csspart box - The container element
8
+ */
9
+ export declare class TcBox extends LitElement {
10
+ sx: Record<string, string | number>;
11
+ static styles: import('lit').CSSResult;
12
+ render(): import('lit').TemplateResult<1>;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'tc-box': TcBox;
17
+ }
18
+ }
19
+ //# sourceMappingURL=tc-box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-box.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;GAMG;AACH,qBACa,KAAM,SAAQ,UAAU;IACP,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BAQpB;IAEO,MAAM;CAOhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,KAAK,CAAC;KACjB;CACF"}
@@ -1,4 +1,4 @@
1
- import { LitElement as n, html as i, css as x } from "lit";
1
+ import { css as n, LitElement as i, html as x } from "lit";
2
2
  import { property as a, customElement as b } from "lit/decorators.js";
3
3
  import { styleMap as f } from "lit/directives/style-map.js";
4
4
  var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, m = (c, s, o, e) => {
@@ -6,19 +6,19 @@ var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, m = (c, s, o
6
6
  (l = c[p]) && (t = (e ? l(s, o, t) : l(t)) || t);
7
7
  return e && t && v(s, o, t), t;
8
8
  };
9
- let r = class extends n {
9
+ let r = class extends i {
10
10
  constructor() {
11
11
  super(...arguments), this.sx = {};
12
12
  }
13
13
  render() {
14
- return i`
14
+ return x`
15
15
  <div part="box" class="box" style=${f(this.sx)}>
16
16
  <slot></slot>
17
17
  </div>
18
18
  `;
19
19
  }
20
20
  };
21
- r.styles = x`
21
+ r.styles = n`
22
22
  :host {
23
23
  display: contents;
24
24
  }
@@ -0,0 +1,25 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Primary button component with loading states.
4
+ * Uses design-tokens component classes (.button, .button-primary, etc.)
5
+ *
6
+ * @fires tc-click - Fired when button is clicked
7
+ * @slot - Button content
8
+ * @csspart button - The button element
9
+ * @csspart spinner - The loading spinner
10
+ */
11
+ export declare class TcButton extends LitElement {
12
+ disabled: boolean;
13
+ loading: boolean;
14
+ variant: 'primary' | 'secondary' | 'success';
15
+ sx: Record<string, string | number>;
16
+ static styles: import('lit').CSSResult[];
17
+ render(): import('lit').TemplateResult<1>;
18
+ private handleClick;
19
+ }
20
+ declare global {
21
+ interface HTMLElementTagNameMap {
22
+ 'tc-button': TcButton;
23
+ }
24
+ }
25
+ //# sourceMappingURL=tc-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C;;;;;;;;GAQG;AACH,qBACa,QAAS,SAAQ,UAAU;IACT,QAAQ,UAAS;IACjB,OAAO,UAAS;IACjB,OAAO,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAC5D;IACgB,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,4BAoGpB;IAEO,MAAM;IA4Bf,OAAO,CAAC,WAAW;CAWpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
@@ -1,19 +1,19 @@
1
- import { LitElement as p, html as l, css as u } from "lit";
1
+ import { css as p, LitElement as u, html as l } from "lit";
2
2
  import { property as r, customElement as b } from "lit/decorators.js";
3
- import { classMap as v } from "lit/directives/class-map.js";
4
- import { styleMap as y } from "lit/directives/style-map.js";
5
- import { sharedStyles as m } from "../styles/shared.js";
6
- var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, n = (o, i, s, a) => {
7
- for (var t = a > 1 ? void 0 : a ? f(i, s) : i, d = o.length - 1, c; d >= 0; d--)
8
- (c = o[d]) && (t = (a ? c(i, s, t) : c(t)) || t);
3
+ import { classMap as m } from "lit/directives/class-map.js";
4
+ import { styleMap as v } from "lit/directives/style-map.js";
5
+ import { sharedStyles as y } from "../styles/shared.js";
6
+ var h = Object.defineProperty, f = Object.getOwnPropertyDescriptor, o = (n, i, s, a) => {
7
+ for (var t = a > 1 ? void 0 : a ? f(i, s) : i, d = n.length - 1, c; d >= 0; d--)
8
+ (c = n[d]) && (t = (a ? c(i, s, t) : c(t)) || t);
9
9
  return a && t && h(i, s, t), t;
10
10
  };
11
- let e = class extends p {
11
+ let e = class extends u {
12
12
  constructor() {
13
13
  super(...arguments), this.disabled = !1, this.loading = !1, this.variant = "primary", this.sx = {};
14
14
  }
15
15
  render() {
16
- const o = {
16
+ const n = {
17
17
  button: !0,
18
18
  "button-ink": this.variant !== "secondary",
19
19
  "button-primary": this.variant === "primary",
@@ -24,8 +24,8 @@ let e = class extends p {
24
24
  return l`
25
25
  <button
26
26
  part="button"
27
- class=${v(o)}
28
- style=${y(this.sx)}
27
+ class=${m(n)}
28
+ style=${v(this.sx)}
29
29
  ?disabled=${this.disabled || this.loading}
30
30
  type="button"
31
31
  @click=${this.handleClick}
@@ -37,22 +37,23 @@ let e = class extends p {
37
37
  </button>
38
38
  `;
39
39
  }
40
- handleClick(o) {
40
+ handleClick(n) {
41
41
  this.disabled || this.loading || this.dispatchEvent(
42
42
  new CustomEvent("tc-click", {
43
43
  bubbles: !0,
44
44
  composed: !0,
45
- detail: { originalEvent: o }
45
+ detail: { originalEvent: n }
46
46
  })
47
47
  );
48
48
  }
49
49
  };
50
50
  e.styles = [
51
- m,
52
- u`
51
+ y,
52
+ p`
53
53
  :host {
54
54
  display: block;
55
55
  width: 100%;
56
+ min-width: 0;
56
57
  }
57
58
 
58
59
  /* Extend base .button from design-tokens */
@@ -147,19 +148,19 @@ e.styles = [
147
148
  }
148
149
  `
149
150
  ];
150
- n([
151
+ o([
151
152
  r({ type: Boolean })
152
153
  ], e.prototype, "disabled", 2);
153
- n([
154
+ o([
154
155
  r({ type: Boolean })
155
156
  ], e.prototype, "loading", 2);
156
- n([
157
+ o([
157
158
  r({ type: String })
158
159
  ], e.prototype, "variant", 2);
159
- n([
160
+ o([
160
161
  r({ type: Object })
161
162
  ], e.prototype, "sx", 2);
162
- e = n([
163
+ e = o([
163
164
  b("tc-button")
164
165
  ], e);
165
166
  export {
@@ -0,0 +1,22 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A callout/alert component for messages and notices.
4
+ * Uses design-tokens notice classes (.notice, .notice-info, .notice-success, etc.)
5
+ *
6
+ * @slot - Callout content
7
+ * @slot icon - Optional icon slot
8
+ * @csspart callout - The callout container
9
+ * @csspart icon - The icon container
10
+ * @csspart content - The content container
11
+ */
12
+ export declare class TcCallout extends LitElement {
13
+ variant: 'info' | 'success' | 'warning' | 'error';
14
+ static styles: import('lit').CSSResult[];
15
+ render(): import('lit').TemplateResult<1>;
16
+ }
17
+ declare global {
18
+ interface HTMLElementTagNameMap {
19
+ 'tc-callout': TcCallout;
20
+ }
21
+ }
22
+ //# sourceMappingURL=tc-callout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-callout.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-callout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;;;;;GASG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,OAAO,EAC/B,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAU;IAErB,OAAgB,MAAM,4BA0CpB;IAEO,MAAM;CAyBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
@@ -1,4 +1,4 @@
1
- import { LitElement as c, html as m, css as p } from "lit";
1
+ import { css as c, LitElement as m, html as p } from "lit";
2
2
  import { property as v, customElement as d } from "lit/decorators.js";
3
3
  import { classMap as u } from "lit/directives/class-map.js";
4
4
  import { sharedStyles as f } from "../styles/shared.js";
@@ -7,7 +7,7 @@ var h = Object.defineProperty, y = Object.getOwnPropertyDescriptor, l = (n, e, s
7
7
  (a = n[i]) && (t = (r ? a(e, s, t) : a(t)) || t);
8
8
  return r && t && h(e, s, t), t;
9
9
  };
10
- let o = class extends c {
10
+ let o = class extends m {
11
11
  constructor() {
12
12
  super(...arguments), this.variant = "info";
13
13
  }
@@ -19,7 +19,7 @@ let o = class extends c {
19
19
  "notice-warning": this.variant === "warning",
20
20
  "error-message": n
21
21
  };
22
- return m`
22
+ return p`
23
23
  <div part="callout" class=${u(e)} role="alert">
24
24
  <div class="callout-inner">
25
25
  <div part="icon" class="callout-icon">
@@ -35,10 +35,11 @@ let o = class extends c {
35
35
  };
36
36
  o.styles = [
37
37
  f,
38
- p`
38
+ c`
39
39
  :host {
40
40
  display: block;
41
41
  width: 100%;
42
+ min-width: 0;
42
43
  }
43
44
 
44
45
  /* Override animation from design-tokens for immediate display */
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * Card component with layered shadows and optional inner border effect.
4
+ * Uses design-tokens .card class.
5
+ *
6
+ * @slot - Card content
7
+ * @csspart card - The card container
8
+ */
9
+ export declare class TcCard extends LitElement {
10
+ noBorder: boolean;
11
+ sx: Record<string, string | number>;
12
+ static styles: import('lit').CSSResult[];
13
+ render(): import('lit').TemplateResult<1>;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'tc-card': TcCard;
18
+ }
19
+ }
20
+ //# sourceMappingURL=tc-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-card.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-card.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C;;;;;;GAMG;AACH,qBACa,MAAO,SAAQ,UAAU;IACiB,QAAQ,UAAS;IAC1C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,4BAoCpB;IAEO,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -1,14 +1,14 @@
1
- import { LitElement as p, html as l, css as f } from "lit";
1
+ import { css as p, LitElement as l, html as f } from "lit";
2
2
  import { property as c, customElement as m } from "lit/decorators.js";
3
3
  import { classMap as b } from "lit/directives/class-map.js";
4
- import { styleMap as u } from "lit/directives/style-map.js";
5
- import { sharedStyles as v } from "../styles/shared.js";
6
- var h = Object.defineProperty, y = Object.getOwnPropertyDescriptor, d = (t, o, n, s) => {
4
+ import { styleMap as h } from "lit/directives/style-map.js";
5
+ import { sharedStyles as u } from "../styles/shared.js";
6
+ var v = Object.defineProperty, y = Object.getOwnPropertyDescriptor, d = (t, o, n, s) => {
7
7
  for (var e = s > 1 ? void 0 : s ? y(o, n) : o, a = t.length - 1, i; a >= 0; a--)
8
8
  (i = t[a]) && (e = (s ? i(o, n, e) : i(e)) || e);
9
- return s && e && h(o, n, e), e;
9
+ return s && e && v(o, n, e), e;
10
10
  };
11
- let r = class extends p {
11
+ let r = class extends l {
12
12
  constructor() {
13
13
  super(...arguments), this.noBorder = !1, this.sx = {};
14
14
  }
@@ -17,8 +17,8 @@ let r = class extends p {
17
17
  card: !0,
18
18
  "card--no-border": this.noBorder
19
19
  };
20
- return l`
21
- <div part="card" class=${b(t)} style=${u(this.sx)}>
20
+ return f`
21
+ <div part="card" class=${b(t)} style=${h(this.sx)}>
22
22
  <div class="card-content">
23
23
  <slot></slot>
24
24
  </div>
@@ -27,10 +27,11 @@ let r = class extends p {
27
27
  }
28
28
  };
29
29
  r.styles = [
30
- v,
31
- f`
30
+ u,
31
+ p`
32
32
  :host {
33
33
  display: block;
34
+ min-width: 0;
34
35
  }
35
36
 
36
37
  /* Inner border effect using mask - extends design-tokens .card */
@@ -0,0 +1,19 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A chip/tag component for labels and badges.
4
+ *
5
+ * @slot - Chip content
6
+ * @csspart chip - The chip container
7
+ */
8
+ export declare class TcChip extends LitElement {
9
+ variant: 'default' | 'success' | 'error' | 'info';
10
+ size: 'sm' | 'md';
11
+ static styles: import('lit').CSSResult[];
12
+ render(): import('lit').TemplateResult<1>;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ 'tc-chip': TcChip;
17
+ }
18
+ }
19
+ //# sourceMappingURL=tc-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,OAAO,EAC/B,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IACK,IAAI,EAAE,IAAI,GAAG,IAAI,CAAQ;IAErD,OAAgB,MAAM,4BAgDpB;IAEO,MAAM;CAOhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -1,17 +1,17 @@
1
- import { LitElement as l, html as h, css as d } from "lit";
2
- import { property as n, customElement as f } from "lit/decorators.js";
3
- import { sharedStyles as v } from "../styles/shared.js";
4
- var m = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (o, i, s, t) => {
5
- for (var r = t > 1 ? void 0 : t ? u(i, s) : i, a = o.length - 1, p; a >= 0; a--)
6
- (p = o[a]) && (r = (t ? p(i, s, r) : p(r)) || r);
7
- return t && r && m(i, s, r), r;
1
+ import { css as l, LitElement as h, html as d } from "lit";
2
+ import { property as o, customElement as f } from "lit/decorators.js";
3
+ import { sharedStyles as m } from "../styles/shared.js";
4
+ var v = Object.defineProperty, u = Object.getOwnPropertyDescriptor, n = (p, t, s, i) => {
5
+ for (var r = i > 1 ? void 0 : i ? u(t, s) : t, a = p.length - 1, c; a >= 0; a--)
6
+ (c = p[a]) && (r = (i ? c(t, s, r) : c(r)) || r);
7
+ return i && r && v(t, s, r), r;
8
8
  };
9
- let e = class extends l {
9
+ let e = class extends h {
10
10
  constructor() {
11
11
  super(...arguments), this.variant = "default", this.size = "md";
12
12
  }
13
13
  render() {
14
- return h`
14
+ return d`
15
15
  <span part="chip" class="chip chip--${this.variant} chip--${this.size}">
16
16
  <slot></slot>
17
17
  </span>
@@ -19,10 +19,12 @@ let e = class extends l {
19
19
  }
20
20
  };
21
21
  e.styles = [
22
- v,
23
- d`
22
+ m,
23
+ l`
24
24
  :host {
25
25
  display: inline-flex;
26
+ align-items: center;
27
+ justify-content: center;
26
28
  }
27
29
 
28
30
  .chip {
@@ -65,13 +67,13 @@ e.styles = [
65
67
  }
66
68
  `
67
69
  ];
68
- c([
69
- n({ type: String })
70
+ n([
71
+ o({ type: String })
70
72
  ], e.prototype, "variant", 2);
71
- c([
72
- n({ type: String })
73
+ n([
74
+ o({ type: String })
73
75
  ], e.prototype, "size", 2);
74
- e = c([
76
+ e = n([
75
77
  f("tc-chip")
76
78
  ], e);
77
79
  export {
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * A flex container component with column layout by default.
4
+ *
5
+ * @slot - Content to display inside the container
6
+ * @csspart container - The container element
7
+ */
8
+ export declare class TcContainer extends LitElement {
9
+ wide: boolean;
10
+ sx: Record<string, string | number>;
11
+ private defaultStyles;
12
+ static styles: import('lit').CSSResult;
13
+ render(): import('lit').TemplateResult<1>;
14
+ }
15
+ declare global {
16
+ interface HTMLElementTagNameMap {
17
+ 'tc-container': TcContainer;
18
+ }
19
+ }
20
+ //# sourceMappingURL=tc-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tc-container.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,WAAY,SAAQ,UAAU;IACZ,IAAI,UAAS;IACd,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAO,CAAC,aAAa,CAKnB;IAEF,OAAgB,MAAM,0BAkBpB;IAEO,MAAM;CAgBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}