@transcodes/ui-components 0.4.7 → 0.4.9

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 (58) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/primitives/tc-button.d.ts +3 -0
  3. package/dist/primitives/tc-button.d.ts.map +1 -1
  4. package/dist/primitives/tc-button.js +9 -9
  5. package/dist/primitives/tc-callout.d.ts +1 -0
  6. package/dist/primitives/tc-callout.d.ts.map +1 -1
  7. package/dist/primitives/tc-callout.js +12 -12
  8. package/dist/primitives/tc-card.d.ts +1 -0
  9. package/dist/primitives/tc-card.d.ts.map +1 -1
  10. package/dist/primitives/tc-card.js +8 -8
  11. package/dist/primitives/tc-chip.d.ts +2 -0
  12. package/dist/primitives/tc-chip.d.ts.map +1 -1
  13. package/dist/primitives/tc-chip.js +13 -13
  14. package/dist/primitives/tc-container.d.ts +1 -0
  15. package/dist/primitives/tc-container.d.ts.map +1 -1
  16. package/dist/primitives/tc-container.js +5 -5
  17. package/dist/primitives/tc-divider.d.ts +1 -0
  18. package/dist/primitives/tc-divider.d.ts.map +1 -1
  19. package/dist/primitives/tc-divider.js +4 -4
  20. package/dist/primitives/tc-error-message.d.ts +2 -0
  21. package/dist/primitives/tc-error-message.d.ts.map +1 -1
  22. package/dist/primitives/tc-error-message.js +6 -6
  23. package/dist/primitives/tc-form-header.d.ts +4 -0
  24. package/dist/primitives/tc-form-header.d.ts.map +1 -1
  25. package/dist/primitives/tc-form-header.js +13 -13
  26. package/dist/primitives/tc-icon.d.ts +1 -0
  27. package/dist/primitives/tc-icon.d.ts.map +1 -1
  28. package/dist/primitives/tc-icon.js +1 -1
  29. package/dist/primitives/tc-input-with-chip.d.ts +9 -0
  30. package/dist/primitives/tc-input-with-chip.d.ts.map +1 -1
  31. package/dist/primitives/tc-input-with-chip.js +20 -20
  32. package/dist/primitives/tc-input.d.ts +11 -0
  33. package/dist/primitives/tc-input.d.ts.map +1 -1
  34. package/dist/primitives/tc-input.js +29 -29
  35. package/dist/primitives/tc-item-button.d.ts +2 -0
  36. package/dist/primitives/tc-item-button.d.ts.map +1 -1
  37. package/dist/primitives/tc-item-button.js +2 -2
  38. package/dist/primitives/tc-otp-input.d.ts +4 -0
  39. package/dist/primitives/tc-otp-input.d.ts.map +1 -1
  40. package/dist/primitives/tc-otp-input.js +16 -16
  41. package/dist/primitives/tc-page-decoration.d.ts +1 -0
  42. package/dist/primitives/tc-page-decoration.d.ts.map +1 -1
  43. package/dist/primitives/tc-page-decoration.js +5 -5
  44. package/dist/primitives/tc-spinner.d.ts +1 -0
  45. package/dist/primitives/tc-spinner.d.ts.map +1 -1
  46. package/dist/primitives/tc-spinner.js +3 -3
  47. package/dist/primitives/tc-text.d.ts +5 -0
  48. package/dist/primitives/tc-text.d.ts.map +1 -1
  49. package/dist/primitives/tc-text.js +11 -11
  50. package/dist/primitives/tc-toast.d.ts +4 -0
  51. package/dist/primitives/tc-toast.d.ts.map +1 -1
  52. package/dist/primitives/tc-toast.js +10 -10
  53. package/dist/screens/tc-error-screen.d.ts.map +1 -1
  54. package/dist/screens/tc-error-screen.js +15 -15
  55. package/dist/screens/tc-loading-screen.d.ts +1 -0
  56. package/dist/screens/tc-loading-screen.d.ts.map +1 -1
  57. package/dist/screens/tc-loading-screen.js +13 -10
  58. package/package.json +2 -2
@@ -1,20 +1,20 @@
1
1
  import { css as m, LitElement as d, html as p } from "lit";
2
2
  import { property as a, state as y, customElement as h } from "lit/decorators.js";
3
3
  import { styleMap as u } from "lit/directives/style-map.js";
4
- import { AnimationController as g } from "../controllers/animation.controller.js";
4
+ import { AnimationController as f } from "../controllers/animation.controller.js";
5
5
  import "../primitives/tc-icon.js";
6
6
  import "../primitives/tc-text.js";
7
7
  import "../primitives/tc-button.js";
8
8
  import "../primitives/tc-container.js";
9
9
  import "../primitives/tc-section.js";
10
- var f = Object.defineProperty, v = Object.getOwnPropertyDescriptor, e = (r, s, o, n) => {
11
- for (var i = n > 1 ? void 0 : n ? v(s, o) : s, c = r.length - 1, l; c >= 0; c--)
12
- (l = r[c]) && (i = (n ? l(s, o, i) : l(i)) || i);
13
- return n && i && f(s, o, i), i;
10
+ var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, e = (i, s, o, n) => {
11
+ for (var r = n > 1 ? void 0 : n ? v(s, o) : s, c = i.length - 1, l; c >= 0; c--)
12
+ (l = i[c]) && (r = (n ? l(s, o, r) : l(r)) || r);
13
+ return n && r && g(s, o, r), r;
14
14
  };
15
15
  let t = class extends d {
16
16
  constructor() {
17
- super(...arguments), this.title = "Something went wrong", this.message = "An unexpected error occurred. Please try again.", this.retryLabel = "Try Again", this.showRetry = !0, this.autoAnimate = !0, this.sx = {}, this.isAnimated = !1, this.animation = new g(this, {
17
+ super(...arguments), this.title = "Something went wrong", this.message = "An unexpected error occurred. Please try again.", this.retryLabel = "Try Again", this.showRetry = !0, this.autoAnimate = !0, this.sx = {}, this.isAnimated = !1, this.animation = new f(this, {
18
18
  showDuration: 600,
19
19
  hideDuration: 300
20
20
  });
@@ -36,15 +36,15 @@ let t = class extends d {
36
36
  );
37
37
  }
38
38
  render() {
39
- const r = this.isAnimated ? "animated" : "";
39
+ const i = this.isAnimated ? "animated" : "";
40
40
  return p`
41
41
  <div part="screen" class="screen" style=${u(this.sx)}>
42
42
  <tc-container>
43
43
  <div part="content" class="content">
44
- <div part="icon" class="icon-container ${r}">
44
+ <div part="icon" class="icon-container ${i}">
45
45
  <tc-icon name="alert-circle" .sx=${{ "--icon-size": "var(--size-icon-xl)" }}></tc-icon>
46
46
  </div>
47
- <tc-section .sx=${{ gap: "var(--space-sm)" }} class="text-content ${r}">
47
+ <tc-section .sx=${{ gap: "var(--space-sm)" }} class="text-content ${i}">
48
48
  <tc-text part="title" tag="h1" size="xl" weight="600" class="title">
49
49
  ${this.title}
50
50
  </tc-text>
@@ -53,7 +53,7 @@ let t = class extends d {
53
53
  </tc-text>
54
54
  </tc-section>
55
55
  ${this.showRetry ? p`
56
- <div part="action" class="action ${r}">
56
+ <div part="action" class="action ${i}">
57
57
  <tc-button variant="primary" @tc-click=${this.handleRetry}>
58
58
  ${this.retryLabel}
59
59
  </tc-button>
@@ -149,19 +149,19 @@ t.styles = m`
149
149
  }
150
150
  `;
151
151
  e([
152
- a({ type: String })
152
+ a({ type: String, reflect: !0 })
153
153
  ], t.prototype, "title", 2);
154
154
  e([
155
- a({ type: String })
155
+ a({ type: String, reflect: !0 })
156
156
  ], t.prototype, "message", 2);
157
157
  e([
158
- a({ type: String, attribute: "retry-label" })
158
+ a({ type: String, reflect: !0, attribute: "retry-label" })
159
159
  ], t.prototype, "retryLabel", 2);
160
160
  e([
161
- a({ type: Boolean, attribute: "show-retry" })
161
+ a({ type: Boolean, reflect: !0, attribute: "show-retry" })
162
162
  ], t.prototype, "showRetry", 2);
163
163
  e([
164
- a({ type: Boolean, attribute: "auto-animate" })
164
+ a({ type: Boolean, reflect: !0, attribute: "auto-animate" })
165
165
  ], t.prototype, "autoAnimate", 2);
166
166
  e([
167
167
  a({ type: Object })
@@ -10,6 +10,7 @@ import { SxProps } from '../types.js';
10
10
  */
11
11
  export declare class TcLoadingScreen extends LitElement {
12
12
  message: string;
13
+ submessage: string;
13
14
  spinnerSize: 'sm' | 'md' | 'lg' | 'auto';
14
15
  sx: SxProps;
15
16
  private loading;
@@ -1 +1 @@
1
- {"version":3,"file":"tc-loading-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-loading-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AAEvC;;;;;;;GAOG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,OAAO,SAAM;IACc,WAAW,EAC9D,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,MAAM,CAAQ;IACU,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAO,CAAC,OAAO,CAA+B;IAE9C,OAAgB,MAAM,0BAiCpB;IAEO,iBAAiB;IAKjB,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
1
+ {"version":3,"file":"tc-loading-screen.d.ts","sourceRoot":"","sources":["../../src/screens/tc-loading-screen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,+BAA+B,CAAC;AAEvC;;;;;;;GAOG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACF,OAAO,SAAM;IACb,UAAU,SAAM;IAE3D,WAAW,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAQ;IACpB,EAAE,EAAE,OAAO,CAAM;IAE7C,OAAO,CAAC,OAAO,CAA+B;IAE9C,OAAgB,MAAM,0BAiCpB;IAEO,iBAAiB;IAKjB,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -1,18 +1,18 @@
1
1
  import { css as m, LitElement as g, html as l } from "lit";
2
- import { property as a, customElement as h } from "lit/decorators.js";
2
+ import { property as n, customElement as h } from "lit/decorators.js";
3
3
  import { styleMap as d } from "lit/directives/style-map.js";
4
- import { LoadingController as y } from "../controllers/loading.controller.js";
4
+ import { LoadingController as f } from "../controllers/loading.controller.js";
5
5
  import "../primitives/tc-spinner.js";
6
6
  import "../primitives/tc-text.js";
7
7
  import "../primitives/tc-container.js";
8
- var f = Object.defineProperty, x = Object.getOwnPropertyDescriptor, r = (p, s, n, i) => {
9
- for (var e = i > 1 ? void 0 : i ? x(s, n) : s, o = p.length - 1, c; o >= 0; o--)
10
- (c = p[o]) && (e = (i ? c(s, n, e) : c(e)) || e);
11
- return i && e && f(s, n, e), e;
8
+ var u = Object.defineProperty, y = Object.getOwnPropertyDescriptor, r = (p, s, c, i) => {
9
+ for (var e = i > 1 ? void 0 : i ? y(s, c) : s, o = p.length - 1, a; o >= 0; o--)
10
+ (a = p[o]) && (e = (i ? a(s, c, e) : a(e)) || e);
11
+ return i && e && u(s, c, e), e;
12
12
  };
13
13
  let t = class extends g {
14
14
  constructor() {
15
- super(...arguments), this.message = "", this.spinnerSize = "md", this.sx = {}, this.loading = new y(this);
15
+ super(...arguments), this.message = "", this.submessage = "", this.spinnerSize = "md", this.sx = {}, this.loading = new f(this);
16
16
  }
17
17
  connectedCallback() {
18
18
  super.connectedCallback(), this.loading.start();
@@ -69,13 +69,16 @@ t.styles = m`
69
69
  }
70
70
  `;
71
71
  r([
72
- a({ type: String })
72
+ n({ type: String, reflect: !0 })
73
73
  ], t.prototype, "message", 2);
74
74
  r([
75
- a({ type: String, attribute: "spinner-size" })
75
+ n({ type: String, reflect: !0 })
76
+ ], t.prototype, "submessage", 2);
77
+ r([
78
+ n({ type: String, reflect: !0, attribute: "spinner-size" })
76
79
  ], t.prototype, "spinnerSize", 2);
77
80
  r([
78
- a({ type: Object })
81
+ n({ type: Object })
79
82
  ], t.prototype, "sx", 2);
80
83
  t = r([
81
84
  h("tc-loading-screen")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transcodes/ui-components",
3
- "version": "0.4.7",
3
+ "version": "0.4.9",
4
4
  "private": false,
5
5
  "description": "Lit 3.x component library with Reactive Controllers",
6
6
  "keywords": [
@@ -75,7 +75,7 @@
75
75
  "lit": "^3.0.0"
76
76
  },
77
77
  "dependencies": {
78
- "@transcodes/design-tokens": "^0.4.7"
78
+ "@transcodes/design-tokens": "^0.4.9"
79
79
  },
80
80
  "devDependencies": {
81
81
  "@storybook/addon-a11y": "^10.1.9",