@transcodes/ui-components 0.4.2 → 0.4.3

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 (112) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +2 -2
  3. package/dist/controllers/animation.controller.d.ts +0 -48
  4. package/dist/controllers/animation.controller.d.ts.map +0 -1
  5. package/dist/controllers/animation.controller.js +0 -32
  6. package/dist/controllers/base.controller.d.ts +0 -14
  7. package/dist/controllers/base.controller.d.ts.map +0 -1
  8. package/dist/controllers/base.controller.js +0 -8
  9. package/dist/controllers/history.controller.d.ts +0 -34
  10. package/dist/controllers/history.controller.d.ts.map +0 -1
  11. package/dist/controllers/history.controller.js +0 -26
  12. package/dist/controllers/index.d.ts +0 -9
  13. package/dist/controllers/index.d.ts.map +0 -1
  14. package/dist/controllers/index.js +0 -16
  15. package/dist/controllers/loading.controller.d.ts +0 -36
  16. package/dist/controllers/loading.controller.d.ts.map +0 -1
  17. package/dist/controllers/loading.controller.js +0 -27
  18. package/dist/controllers/match-media.controller.d.ts +0 -32
  19. package/dist/controllers/match-media.controller.d.ts.map +0 -1
  20. package/dist/controllers/match-media.controller.js +0 -20
  21. package/dist/controllers/message-bus.controller.d.ts +0 -45
  22. package/dist/controllers/message-bus.controller.d.ts.map +0 -1
  23. package/dist/controllers/message-bus.controller.js +0 -45
  24. package/dist/controllers/storage.controller.d.ts +0 -40
  25. package/dist/controllers/storage.controller.d.ts.map +0 -1
  26. package/dist/controllers/storage.controller.js +0 -40
  27. package/dist/index.d.ts +0 -5
  28. package/dist/index.d.ts.map +0 -1
  29. package/dist/index.js +0 -64
  30. package/dist/primitives/index.d.ts +0 -22
  31. package/dist/primitives/index.d.ts.map +0 -1
  32. package/dist/primitives/index.js +0 -44
  33. package/dist/primitives/tc-box.d.ts +0 -20
  34. package/dist/primitives/tc-box.d.ts.map +0 -1
  35. package/dist/primitives/tc-box.js +0 -38
  36. package/dist/primitives/tc-button.d.ts +0 -26
  37. package/dist/primitives/tc-button.d.ts.map +0 -1
  38. package/dist/primitives/tc-button.js +0 -168
  39. package/dist/primitives/tc-callout.d.ts +0 -24
  40. package/dist/primitives/tc-callout.d.ts.map +0 -1
  41. package/dist/primitives/tc-callout.js +0 -91
  42. package/dist/primitives/tc-card.d.ts +0 -21
  43. package/dist/primitives/tc-card.d.ts.map +0 -1
  44. package/dist/primitives/tc-card.js +0 -77
  45. package/dist/primitives/tc-chip.d.ts +0 -21
  46. package/dist/primitives/tc-chip.d.ts.map +0 -1
  47. package/dist/primitives/tc-chip.js +0 -90
  48. package/dist/primitives/tc-container.d.ts +0 -21
  49. package/dist/primitives/tc-container.d.ts.map +0 -1
  50. package/dist/primitives/tc-container.js +0 -64
  51. package/dist/primitives/tc-divider.d.ts +0 -22
  52. package/dist/primitives/tc-divider.d.ts.map +0 -1
  53. package/dist/primitives/tc-divider.js +0 -78
  54. package/dist/primitives/tc-error-message.d.ts +0 -25
  55. package/dist/primitives/tc-error-message.d.ts.map +0 -1
  56. package/dist/primitives/tc-error-message.js +0 -81
  57. package/dist/primitives/tc-form-header.d.ts +0 -26
  58. package/dist/primitives/tc-form-header.d.ts.map +0 -1
  59. package/dist/primitives/tc-form-header.js +0 -122
  60. package/dist/primitives/tc-icon.d.ts +0 -20
  61. package/dist/primitives/tc-icon.d.ts.map +0 -1
  62. package/dist/primitives/tc-icon.js +0 -95
  63. package/dist/primitives/tc-input-with-chip.d.ts +0 -40
  64. package/dist/primitives/tc-input-with-chip.d.ts.map +0 -1
  65. package/dist/primitives/tc-input-with-chip.js +0 -250
  66. package/dist/primitives/tc-input.d.ts +0 -46
  67. package/dist/primitives/tc-input.d.ts.map +0 -1
  68. package/dist/primitives/tc-input.js +0 -264
  69. package/dist/primitives/tc-item-button.d.ts +0 -29
  70. package/dist/primitives/tc-item-button.d.ts.map +0 -1
  71. package/dist/primitives/tc-item-button.js +0 -163
  72. package/dist/primitives/tc-item.d.ts +0 -24
  73. package/dist/primitives/tc-item.d.ts.map +0 -1
  74. package/dist/primitives/tc-item.js +0 -88
  75. package/dist/primitives/tc-otp-input.d.ts +0 -40
  76. package/dist/primitives/tc-otp-input.d.ts.map +0 -1
  77. package/dist/primitives/tc-otp-input.js +0 -236
  78. package/dist/primitives/tc-page-decoration.d.ts +0 -21
  79. package/dist/primitives/tc-page-decoration.d.ts.map +0 -1
  80. package/dist/primitives/tc-page-decoration.js +0 -130
  81. package/dist/primitives/tc-section.d.ts +0 -19
  82. package/dist/primitives/tc-section.d.ts.map +0 -1
  83. package/dist/primitives/tc-section.js +0 -47
  84. package/dist/primitives/tc-spinner.d.ts +0 -21
  85. package/dist/primitives/tc-spinner.d.ts.map +0 -1
  86. package/dist/primitives/tc-spinner.js +0 -90
  87. package/dist/primitives/tc-symbol.d.ts +0 -19
  88. package/dist/primitives/tc-symbol.d.ts.map +0 -1
  89. package/dist/primitives/tc-symbol.js +0 -54
  90. package/dist/primitives/tc-text.d.ts +0 -32
  91. package/dist/primitives/tc-text.d.ts.map +0 -1
  92. package/dist/primitives/tc-text.js +0 -145
  93. package/dist/primitives/tc-toast.d.ts +0 -36
  94. package/dist/primitives/tc-toast.d.ts.map +0 -1
  95. package/dist/primitives/tc-toast.js +0 -199
  96. package/dist/screens/index.d.ts +0 -4
  97. package/dist/screens/index.d.ts.map +0 -1
  98. package/dist/screens/index.js +0 -8
  99. package/dist/screens/tc-error-screen.d.ts +0 -34
  100. package/dist/screens/tc-error-screen.d.ts.map +0 -1
  101. package/dist/screens/tc-error-screen.js +0 -178
  102. package/dist/screens/tc-loading-screen.d.ts +0 -25
  103. package/dist/screens/tc-loading-screen.d.ts.map +0 -1
  104. package/dist/screens/tc-loading-screen.js +0 -86
  105. package/dist/screens/tc-success-screen.d.ts +0 -33
  106. package/dist/screens/tc-success-screen.d.ts.map +0 -1
  107. package/dist/screens/tc-success-screen.js +0 -202
  108. package/dist/styles/shared.d.ts +0 -20
  109. package/dist/styles/shared.d.ts.map +0 -1
  110. package/dist/styles/shared.js +0 -7
  111. package/dist/types.d.ts +0 -34
  112. package/dist/types.d.ts.map +0 -1
@@ -1,202 +0,0 @@
1
- import { css as p, LitElement as d, html as m } from "lit";
2
- import { property as s, state as h, customElement as u } from "lit/decorators.js";
3
- import { styleMap as y } from "lit/directives/style-map.js";
4
- import { AnimationController as f } from "../controllers/animation.controller.js";
5
- import "../primitives/tc-icon.js";
6
- import "../primitives/tc-text.js";
7
- import "../primitives/tc-button.js";
8
- import "../primitives/tc-container.js";
9
- import "../primitives/tc-section.js";
10
- var g = Object.defineProperty, v = Object.getOwnPropertyDescriptor, a = (i, n, o, r) => {
11
- for (var e = r > 1 ? void 0 : r ? v(n, o) : n, c = i.length - 1, l; c >= 0; c--)
12
- (l = i[c]) && (e = (r ? l(n, o, e) : l(e)) || e);
13
- return r && e && g(n, o, e), e;
14
- };
15
- let t = class extends d {
16
- constructor() {
17
- super(...arguments), this.title = "Success!", this.message = "Your action was completed successfully.", this.actionLabel = "", this.autoAnimate = !0, this.sx = {}, this.isAnimated = !1, this.animation = new f(this, {
18
- showDuration: 600,
19
- hideDuration: 300
20
- });
21
- }
22
- connectedCallback() {
23
- super.connectedCallback(), this.autoAnimate && requestAnimationFrame(() => {
24
- this.playAnimation();
25
- });
26
- }
27
- async playAnimation() {
28
- await this.animation.show(), this.isAnimated = !0;
29
- }
30
- handleAction() {
31
- this.dispatchEvent(
32
- new CustomEvent("tc-action", {
33
- bubbles: !0,
34
- composed: !0
35
- })
36
- );
37
- }
38
- render() {
39
- const i = this.isAnimated ? "animated" : "";
40
- return m`
41
- <div part="screen" class="screen" style=${y(this.sx)}>
42
- <tc-container>
43
- <div part="content" class="content">
44
- <div part="icon" class="icon-container ${i}">
45
- <svg
46
- class="checkmark"
47
- viewBox="0 0 24 24"
48
- fill="none"
49
- stroke="currentColor"
50
- stroke-width="3"
51
- stroke-linecap="round"
52
- stroke-linejoin="round"
53
- >
54
- <polyline points="20 6 9 17 4 12"></polyline>
55
- </svg>
56
- </div>
57
- <tc-section .sx=${{ gap: "var(--space-sm)" }} class="text-content ${i}">
58
- <tc-text part="title" tag="h1" size="xl" weight="600" class="title">
59
- ${this.title}
60
- </tc-text>
61
- <tc-text part="message" size="base" color="tertiary" class="message">
62
- ${this.message}
63
- </tc-text>
64
- </tc-section>
65
- ${this.actionLabel ? m`
66
- <div part="action" class="action ${i}">
67
- <tc-button variant="success" @tc-click=${this.handleAction}>
68
- ${this.actionLabel}
69
- </tc-button>
70
- </div>
71
- ` : ""}
72
- </div>
73
- </tc-container>
74
- </div>
75
- `;
76
- }
77
- };
78
- t.styles = p`
79
- :host {
80
- display: flex;
81
- align-items: center;
82
- justify-content: center;
83
- width: 100%;
84
- height: 100%;
85
- min-height: inherit;
86
- }
87
-
88
- .screen {
89
- display: flex;
90
- align-items: center;
91
- justify-content: center;
92
- width: 100%;
93
- height: 100%;
94
- min-height: inherit;
95
- padding: var(--space-lg);
96
- box-sizing: border-box;
97
- background: var(--paper-white);
98
- }
99
-
100
- .content {
101
- display: flex;
102
- flex-direction: column;
103
- align-items: center;
104
- gap: var(--space-lg);
105
- text-align: center;
106
- max-width: 20rem;
107
- }
108
-
109
- .icon-container {
110
- display: flex;
111
- align-items: center;
112
- justify-content: center;
113
- padding: var(--space-md);
114
- background: var(--alpha-primary10);
115
- border-radius: var(--radius-full);
116
- color: var(--accent-primary);
117
- transform: scale(0);
118
- opacity: 0;
119
- transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
120
- opacity 0.3s ease;
121
- }
122
-
123
- .icon-container.animated {
124
- transform: scale(1);
125
- opacity: 1;
126
- }
127
-
128
- .checkmark {
129
- width: var(--size-icon-xl);
130
- height: var(--size-icon-xl);
131
- stroke-dasharray: 50;
132
- stroke-dashoffset: 50;
133
- }
134
-
135
- .icon-container.animated .checkmark {
136
- animation: draw-check 0.5s ease-out 0.3s forwards;
137
- }
138
-
139
- @keyframes draw-check {
140
- to {
141
- stroke-dashoffset: 0;
142
- }
143
- }
144
-
145
- .title {
146
- margin: 0;
147
- }
148
-
149
- .message {
150
- color: var(--ink-medium);
151
- }
152
-
153
- .text-content {
154
- opacity: 0;
155
- transform: translateY(var(--offset-slide-up-md));
156
- transition: opacity 0.4s ease, transform 0.4s ease;
157
- transition-delay: 0.4s;
158
- }
159
-
160
- .text-content.animated {
161
- opacity: 1;
162
- transform: translateY(0);
163
- }
164
-
165
- .action {
166
- width: 100%;
167
- margin-top: var(--space-md);
168
- opacity: 0;
169
- transform: translateY(var(--offset-slide-up-md));
170
- transition: opacity 0.4s ease, transform 0.4s ease;
171
- transition-delay: 0.6s;
172
- }
173
-
174
- .action.animated {
175
- opacity: 1;
176
- transform: translateY(0);
177
- }
178
- `;
179
- a([
180
- s({ type: String })
181
- ], t.prototype, "title", 2);
182
- a([
183
- s({ type: String })
184
- ], t.prototype, "message", 2);
185
- a([
186
- s({ type: String, attribute: "action-label" })
187
- ], t.prototype, "actionLabel", 2);
188
- a([
189
- s({ type: Boolean, attribute: "auto-animate" })
190
- ], t.prototype, "autoAnimate", 2);
191
- a([
192
- s({ type: Object })
193
- ], t.prototype, "sx", 2);
194
- a([
195
- h()
196
- ], t.prototype, "isAnimated", 2);
197
- t = a([
198
- u("tc-success-screen")
199
- ], t);
200
- export {
201
- t as TcSuccessScreen
202
- };
@@ -1,20 +0,0 @@
1
- import { CSSResult } from 'lit';
2
- /**
3
- * Design-tokens component styles as Lit CSSResult
4
- * Use this in your component's static styles:
5
- *
6
- * @example
7
- * ```ts
8
- * import { sharedStyles } from '../styles/shared.js';
9
- *
10
- * @customElement('my-component')
11
- * export class MyComponent extends LitElement {
12
- * static override styles = [sharedStyles, css`
13
- * // component-specific styles
14
- * `];
15
- * }
16
- * ```
17
- */
18
- export declare const sharedStyles: CSSResult;
19
- export default sharedStyles;
20
- //# sourceMappingURL=shared.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/styles/shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,KAAK,CAAC;AAEhD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,YAAY,EAAE,SAAsC,CAAC;AAElE,eAAe,YAAY,CAAC"}
@@ -1,7 +0,0 @@
1
- import { componentStyles as o } from "@transcodes/design-tokens/components";
2
- import { unsafeCSS as t } from "lit";
3
- const s = t(o);
4
- export {
5
- s as default,
6
- s as sharedStyles
7
- };
package/dist/types.d.ts DELETED
@@ -1,34 +0,0 @@
1
- /**
2
- * 공통 타입 정의
3
- * @packageDocumentation
4
- */
5
- /**
6
- * 인라인 스타일 객체 타입
7
- * Lit의 styleMap과 호환
8
- *
9
- * @example
10
- * ```typescript
11
- * <tc-button .sx=${{ padding: '1rem', fontSize: '1.25rem' }}>
12
- * Large Button
13
- * </tc-button>
14
- * ```
15
- */
16
- export type SxProps = Record<string, string | number>;
17
- /**
18
- * 공통 크기 옵션
19
- */
20
- export type Size = 'sm' | 'md' | 'lg';
21
- export type SizeWithAuto = Size | 'auto';
22
- /**
23
- * 시맨틱 변형 타입
24
- */
25
- export type SemanticVariant = 'info' | 'success' | 'warning' | 'error';
26
- /**
27
- * 버튼 변형 타입
28
- */
29
- export type ButtonVariant = 'primary' | 'secondary' | 'success';
30
- /**
31
- * 칩 변형 타입
32
- */
33
- export type ChipVariant = 'default' | 'success' | 'error' | 'info';
34
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC"}