@transcodes/ui-components 0.4.3 → 0.4.5
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.
- package/CHANGELOG.md +12 -0
- package/dist/controllers/animation.controller.d.ts +48 -0
- package/dist/controllers/animation.controller.d.ts.map +1 -0
- package/dist/controllers/animation.controller.js +32 -0
- package/dist/controllers/base.controller.d.ts +14 -0
- package/dist/controllers/base.controller.d.ts.map +1 -0
- package/dist/controllers/base.controller.js +8 -0
- package/dist/controllers/history.controller.d.ts +34 -0
- package/dist/controllers/history.controller.d.ts.map +1 -0
- package/dist/controllers/history.controller.js +26 -0
- package/dist/controllers/index.d.ts +9 -0
- package/dist/controllers/index.d.ts.map +1 -0
- package/dist/controllers/index.js +16 -0
- package/dist/controllers/loading.controller.d.ts +36 -0
- package/dist/controllers/loading.controller.d.ts.map +1 -0
- package/dist/controllers/loading.controller.js +27 -0
- package/dist/controllers/match-media.controller.d.ts +32 -0
- package/dist/controllers/match-media.controller.d.ts.map +1 -0
- package/dist/controllers/match-media.controller.js +20 -0
- package/dist/controllers/message-bus.controller.d.ts +45 -0
- package/dist/controllers/message-bus.controller.d.ts.map +1 -0
- package/dist/controllers/message-bus.controller.js +45 -0
- package/dist/controllers/storage.controller.d.ts +40 -0
- package/dist/controllers/storage.controller.d.ts.map +1 -0
- package/dist/controllers/storage.controller.js +40 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +64 -0
- package/dist/primitives/index.d.ts +22 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +44 -0
- package/dist/primitives/tc-box.d.ts +20 -0
- package/dist/primitives/tc-box.d.ts.map +1 -0
- package/dist/primitives/tc-box.js +38 -0
- package/dist/primitives/tc-button.d.ts +26 -0
- package/dist/primitives/tc-button.d.ts.map +1 -0
- package/dist/primitives/tc-button.js +168 -0
- package/dist/primitives/tc-callout.d.ts +24 -0
- package/dist/primitives/tc-callout.d.ts.map +1 -0
- package/dist/primitives/tc-callout.js +91 -0
- package/dist/primitives/tc-card.d.ts +21 -0
- package/dist/primitives/tc-card.d.ts.map +1 -0
- package/dist/primitives/tc-card.js +77 -0
- package/dist/primitives/tc-chip.d.ts +21 -0
- package/dist/primitives/tc-chip.d.ts.map +1 -0
- package/dist/primitives/tc-chip.js +90 -0
- package/dist/primitives/tc-container.d.ts +21 -0
- package/dist/primitives/tc-container.d.ts.map +1 -0
- package/dist/primitives/tc-container.js +64 -0
- package/dist/primitives/tc-divider.d.ts +22 -0
- package/dist/primitives/tc-divider.d.ts.map +1 -0
- package/dist/primitives/tc-divider.js +78 -0
- package/dist/primitives/tc-error-message.d.ts +25 -0
- package/dist/primitives/tc-error-message.d.ts.map +1 -0
- package/dist/primitives/tc-error-message.js +81 -0
- package/dist/primitives/tc-form-header.d.ts +26 -0
- package/dist/primitives/tc-form-header.d.ts.map +1 -0
- package/dist/primitives/tc-form-header.js +122 -0
- package/dist/primitives/tc-icon.d.ts +20 -0
- package/dist/primitives/tc-icon.d.ts.map +1 -0
- package/dist/primitives/tc-icon.js +95 -0
- package/dist/primitives/tc-input-with-chip.d.ts +40 -0
- package/dist/primitives/tc-input-with-chip.d.ts.map +1 -0
- package/dist/primitives/tc-input-with-chip.js +250 -0
- package/dist/primitives/tc-input.d.ts +46 -0
- package/dist/primitives/tc-input.d.ts.map +1 -0
- package/dist/primitives/tc-input.js +264 -0
- package/dist/primitives/tc-item-button.d.ts +29 -0
- package/dist/primitives/tc-item-button.d.ts.map +1 -0
- package/dist/primitives/tc-item-button.js +163 -0
- package/dist/primitives/tc-item.d.ts +24 -0
- package/dist/primitives/tc-item.d.ts.map +1 -0
- package/dist/primitives/tc-item.js +88 -0
- package/dist/primitives/tc-otp-input.d.ts +40 -0
- package/dist/primitives/tc-otp-input.d.ts.map +1 -0
- package/dist/primitives/tc-otp-input.js +236 -0
- package/dist/primitives/tc-page-decoration.d.ts +21 -0
- package/dist/primitives/tc-page-decoration.d.ts.map +1 -0
- package/dist/primitives/tc-page-decoration.js +130 -0
- package/dist/primitives/tc-section.d.ts +19 -0
- package/dist/primitives/tc-section.d.ts.map +1 -0
- package/dist/primitives/tc-section.js +47 -0
- package/dist/primitives/tc-spinner.d.ts +21 -0
- package/dist/primitives/tc-spinner.d.ts.map +1 -0
- package/dist/primitives/tc-spinner.js +90 -0
- package/dist/primitives/tc-symbol.d.ts +19 -0
- package/dist/primitives/tc-symbol.d.ts.map +1 -0
- package/dist/primitives/tc-symbol.js +54 -0
- package/dist/primitives/tc-text.d.ts +32 -0
- package/dist/primitives/tc-text.d.ts.map +1 -0
- package/dist/primitives/tc-text.js +145 -0
- package/dist/primitives/tc-toast.d.ts +36 -0
- package/dist/primitives/tc-toast.d.ts.map +1 -0
- package/dist/primitives/tc-toast.js +199 -0
- package/dist/screens/index.d.ts +4 -0
- package/dist/screens/index.d.ts.map +1 -0
- package/dist/screens/index.js +8 -0
- package/dist/screens/tc-error-screen.d.ts +34 -0
- package/dist/screens/tc-error-screen.d.ts.map +1 -0
- package/dist/screens/tc-error-screen.js +177 -0
- package/dist/screens/tc-loading-screen.d.ts +25 -0
- package/dist/screens/tc-loading-screen.d.ts.map +1 -0
- package/dist/screens/tc-loading-screen.js +85 -0
- package/dist/screens/tc-success-screen.d.ts +33 -0
- package/dist/screens/tc-success-screen.d.ts.map +1 -0
- package/dist/screens/tc-success-screen.js +201 -0
- package/dist/styles/shared.d.ts +20 -0
- package/dist/styles/shared.d.ts.map +1 -0
- package/dist/styles/shared.js +7 -0
- package/dist/types.d.ts +34 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.5] - 2025-12-23
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **tc-success-screen**: 아이콘 배경색 복구 (`background: var(--alpha-primary10)`)
|
|
13
|
+
|
|
14
|
+
## [0.4.4] - 2025-12-23
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `prepublishOnly` 스크립트 추가: npm publish 시 자동으로 clean → build 수행
|
|
19
|
+
|
|
8
20
|
## [0.4.3] - 2025-12-23
|
|
9
21
|
|
|
10
22
|
### Changed
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { BaseController } from './base.controller.js';
|
|
3
|
+
export type AnimationState = 'hidden' | 'showing' | 'visible' | 'hiding';
|
|
4
|
+
/**
|
|
5
|
+
* Controller for managing show/hide animation states.
|
|
6
|
+
* Provides a state machine for coordinating CSS transitions.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* class MyModal extends LitElement {
|
|
11
|
+
* private animation = new AnimationController(this);
|
|
12
|
+
*
|
|
13
|
+
* async open() {
|
|
14
|
+
* await this.animation.show();
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* async close() {
|
|
18
|
+
* await this.animation.hide();
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* render() {
|
|
22
|
+
* return html`
|
|
23
|
+
* <div class="modal modal--${this.animation.state}">
|
|
24
|
+
* <slot></slot>
|
|
25
|
+
* </div>
|
|
26
|
+
* `;
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export interface AnimationControllerOptions {
|
|
32
|
+
showDuration?: number;
|
|
33
|
+
hideDuration?: number;
|
|
34
|
+
}
|
|
35
|
+
export declare class AnimationController extends BaseController {
|
|
36
|
+
private _state;
|
|
37
|
+
private showDuration;
|
|
38
|
+
private hideDuration;
|
|
39
|
+
constructor(host: ReactiveControllerHost, options?: AnimationControllerOptions | number);
|
|
40
|
+
get state(): AnimationState;
|
|
41
|
+
get isVisible(): boolean;
|
|
42
|
+
get isHidden(): boolean;
|
|
43
|
+
show(): Promise<void>;
|
|
44
|
+
hide(): Promise<void>;
|
|
45
|
+
toggle(): Promise<void>;
|
|
46
|
+
private waitForTransition;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=animation.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/animation.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,WAAW,0BAA0B;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,mBAAoB,SAAQ,cAAc;IACrD,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,YAAY,CAAS;gBAG3B,IAAI,EAAE,sBAAsB,EAC5B,OAAO,GAAE,0BAA0B,GAAG,MAAY;IAYpD,IAAI,KAAK,IAAI,cAAc,CAE1B;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAEK,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAcrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAc3B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,OAAO,CAAC,iBAAiB;CAK1B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { BaseController as s } from "./base.controller.js";
|
|
2
|
+
class r extends s {
|
|
3
|
+
constructor(i, t = 300) {
|
|
4
|
+
super(i), this._state = "hidden", typeof t == "number" ? (this.showDuration = t, this.hideDuration = t) : (this.showDuration = t.showDuration ?? 300, this.hideDuration = t.hideDuration ?? 300);
|
|
5
|
+
}
|
|
6
|
+
get state() {
|
|
7
|
+
return this._state;
|
|
8
|
+
}
|
|
9
|
+
get isVisible() {
|
|
10
|
+
return this._state === "visible" || this._state === "showing";
|
|
11
|
+
}
|
|
12
|
+
get isHidden() {
|
|
13
|
+
return this._state === "hidden";
|
|
14
|
+
}
|
|
15
|
+
async show() {
|
|
16
|
+
this._state === "visible" || this._state === "showing" || (this._state = "showing", this.host.requestUpdate(), await this.waitForTransition(this.showDuration), this._state = "visible", this.host.requestUpdate());
|
|
17
|
+
}
|
|
18
|
+
async hide() {
|
|
19
|
+
this._state === "hidden" || this._state === "hiding" || (this._state = "hiding", this.host.requestUpdate(), await this.waitForTransition(this.hideDuration), this._state = "hidden", this.host.requestUpdate());
|
|
20
|
+
}
|
|
21
|
+
toggle() {
|
|
22
|
+
return this.isVisible ? this.hide() : this.show();
|
|
23
|
+
}
|
|
24
|
+
waitForTransition(i) {
|
|
25
|
+
return new Promise((t) => {
|
|
26
|
+
setTimeout(t, i);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
r as AnimationController
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Base controller class that all reactive controllers extend from.
|
|
4
|
+
* Provides common functionality for registering with a host element.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class BaseController implements ReactiveController {
|
|
7
|
+
protected host: ReactiveControllerHost;
|
|
8
|
+
constructor(host: ReactiveControllerHost);
|
|
9
|
+
hostConnected?(): void;
|
|
10
|
+
hostDisconnected?(): void;
|
|
11
|
+
hostUpdate?(): void;
|
|
12
|
+
hostUpdated?(): void;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=base.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/base.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEtE;;;GAGG;AACH,8BAAsB,cAAe,YAAW,kBAAkB;IAChE,SAAS,CAAC,IAAI,EAAE,sBAAsB,CAAC;gBAE3B,IAAI,EAAE,sBAAsB;IAKxC,aAAa,CAAC,IAAI,IAAI;IACtB,gBAAgB,CAAC,IAAI,IAAI;IACzB,UAAU,CAAC,IAAI,IAAI;IACnB,WAAW,CAAC,IAAI,IAAI;CACrB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseController } from './base.controller.js';
|
|
2
|
+
/**
|
|
3
|
+
* Controller for managing browser history for modals and overlays.
|
|
4
|
+
* Adds a history entry when opened and handles back button navigation.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* class MyModal extends LitElement {
|
|
9
|
+
* private history = new HistoryController(this);
|
|
10
|
+
*
|
|
11
|
+
* open() {
|
|
12
|
+
* this.history.push({ modal: 'my-modal' });
|
|
13
|
+
* this.history.onPopState(() => this.close());
|
|
14
|
+
* // show modal
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* close() {
|
|
18
|
+
* this.history.pop();
|
|
19
|
+
* // hide modal
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare class HistoryController extends BaseController {
|
|
25
|
+
private hasAddedEntry;
|
|
26
|
+
private onPopCallback?;
|
|
27
|
+
push(state?: object): void;
|
|
28
|
+
pop(): void;
|
|
29
|
+
onPopState(callback: () => void): void;
|
|
30
|
+
private handlePopState;
|
|
31
|
+
hostConnected(): void;
|
|
32
|
+
hostDisconnected(): void;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=history.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/history.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;IACnD,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,aAAa,CAAC,CAAa;IAEnC,IAAI,CAAC,KAAK,GAAE,MAAwB,GAAG,IAAI;IAO3C,GAAG,IAAI,IAAI;IAMX,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAItC,OAAO,CAAC,cAAc,CAKpB;IAEO,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;CAIlC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseController as e } from "./base.controller.js";
|
|
2
|
+
class d extends e {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments), this.hasAddedEntry = !1, this.handlePopState = () => {
|
|
5
|
+
this.hasAddedEntry && (this.hasAddedEntry = !1, this.onPopCallback?.());
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
push(t = { modal: !0 }) {
|
|
9
|
+
this.hasAddedEntry || (history.pushState(t, ""), this.hasAddedEntry = !0);
|
|
10
|
+
}
|
|
11
|
+
pop() {
|
|
12
|
+
this.hasAddedEntry && (this.hasAddedEntry = !1);
|
|
13
|
+
}
|
|
14
|
+
onPopState(t) {
|
|
15
|
+
this.onPopCallback = t;
|
|
16
|
+
}
|
|
17
|
+
hostConnected() {
|
|
18
|
+
window.addEventListener("popstate", this.handlePopState);
|
|
19
|
+
}
|
|
20
|
+
hostDisconnected() {
|
|
21
|
+
window.removeEventListener("popstate", this.handlePopState), this.onPopCallback = void 0;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
d as HistoryController
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type { AnimationControllerOptions, AnimationState, } from './animation.controller.js';
|
|
2
|
+
export { AnimationController } from './animation.controller.js';
|
|
3
|
+
export { BaseController } from './base.controller.js';
|
|
4
|
+
export { HistoryController } from './history.controller.js';
|
|
5
|
+
export { LoadingController } from './loading.controller.js';
|
|
6
|
+
export { MatchMediaController } from './match-media.controller.js';
|
|
7
|
+
export { MessageBusController } from './message-bus.controller.js';
|
|
8
|
+
export { StorageController } from './storage.controller.js';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/controllers/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,0BAA0B,EAC1B,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AnimationController as e } from "./animation.controller.js";
|
|
2
|
+
import { BaseController as l } from "./base.controller.js";
|
|
3
|
+
import { HistoryController as m } from "./history.controller.js";
|
|
4
|
+
import { LoadingController as f } from "./loading.controller.js";
|
|
5
|
+
import { MatchMediaController as x } from "./match-media.controller.js";
|
|
6
|
+
import { MessageBusController as i } from "./message-bus.controller.js";
|
|
7
|
+
import { StorageController as g } from "./storage.controller.js";
|
|
8
|
+
export {
|
|
9
|
+
e as AnimationController,
|
|
10
|
+
l as BaseController,
|
|
11
|
+
m as HistoryController,
|
|
12
|
+
f as LoadingController,
|
|
13
|
+
x as MatchMediaController,
|
|
14
|
+
i as MessageBusController,
|
|
15
|
+
g as StorageController
|
|
16
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { BaseController } from './base.controller.js';
|
|
2
|
+
/**
|
|
3
|
+
* Controller for managing loading states and progress.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* class MyComponent extends LitElement {
|
|
8
|
+
* private loading = new LoadingController(this);
|
|
9
|
+
*
|
|
10
|
+
* async handleSubmit() {
|
|
11
|
+
* this.loading.start();
|
|
12
|
+
* await doSomething();
|
|
13
|
+
* this.loading.complete();
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* render() {
|
|
17
|
+
* return html`
|
|
18
|
+
* <button ?disabled=${this.loading.isLoading}>
|
|
19
|
+
* ${this.loading.isLoading ? 'Loading...' : 'Submit'}
|
|
20
|
+
* </button>
|
|
21
|
+
* `;
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class LoadingController extends BaseController {
|
|
27
|
+
private _isLoading;
|
|
28
|
+
private _progress;
|
|
29
|
+
get isLoading(): boolean;
|
|
30
|
+
get progress(): number;
|
|
31
|
+
start(): void;
|
|
32
|
+
setProgress(value: number): void;
|
|
33
|
+
complete(): void;
|
|
34
|
+
reset(): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=loading.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/loading.controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;IACnD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,SAAS,CAAK;IAEtB,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,KAAK,IAAI,IAAI;IAMb,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAKhC,QAAQ,IAAI,IAAI;IAMhB,KAAK,IAAI,IAAI;CAKd"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BaseController as t } from "./base.controller.js";
|
|
2
|
+
class i extends t {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments), this._isLoading = !1, this._progress = 0;
|
|
5
|
+
}
|
|
6
|
+
get isLoading() {
|
|
7
|
+
return this._isLoading;
|
|
8
|
+
}
|
|
9
|
+
get progress() {
|
|
10
|
+
return this._progress;
|
|
11
|
+
}
|
|
12
|
+
start() {
|
|
13
|
+
this._isLoading = !0, this._progress = 0, this.host.requestUpdate();
|
|
14
|
+
}
|
|
15
|
+
setProgress(s) {
|
|
16
|
+
this._progress = Math.max(0, Math.min(100, s)), this.host.requestUpdate();
|
|
17
|
+
}
|
|
18
|
+
complete() {
|
|
19
|
+
this._progress = 100, this._isLoading = !1, this.host.requestUpdate();
|
|
20
|
+
}
|
|
21
|
+
reset() {
|
|
22
|
+
this._isLoading = !1, this._progress = 0, this.host.requestUpdate();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
i as LoadingController
|
|
27
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { BaseController } from './base.controller.js';
|
|
3
|
+
/**
|
|
4
|
+
* Controller for reactive media query matching.
|
|
5
|
+
* Automatically updates the host when the media query matches or unmatches.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* class MyComponent extends LitElement {
|
|
10
|
+
* private mobile = new MatchMediaController(this, '(max-width: 768px)');
|
|
11
|
+
* private darkMode = new MatchMediaController(this, '(prefers-color-scheme: dark)');
|
|
12
|
+
*
|
|
13
|
+
* render() {
|
|
14
|
+
* return html`
|
|
15
|
+
* <div class=${this.mobile.matches ? 'mobile' : 'desktop'}>
|
|
16
|
+
* ${this.darkMode.matches ? 'Dark mode' : 'Light mode'}
|
|
17
|
+
* </div>
|
|
18
|
+
* `;
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare class MatchMediaController extends BaseController {
|
|
24
|
+
private mediaQuery;
|
|
25
|
+
private _matches;
|
|
26
|
+
constructor(host: ReactiveControllerHost, query: string);
|
|
27
|
+
get matches(): boolean;
|
|
28
|
+
private handleChange;
|
|
29
|
+
hostConnected(): void;
|
|
30
|
+
hostDisconnected(): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=match-media.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match-media.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/match-media.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,OAAO,CAAC,UAAU,CAAiB;IACnC,OAAO,CAAC,QAAQ,CAAS;gBAEb,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,MAAM;IAMvD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,OAAO,CAAC,YAAY,CAGlB;IAEO,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;CAGlC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseController as h } from "./base.controller.js";
|
|
2
|
+
class n extends h {
|
|
3
|
+
constructor(e, t) {
|
|
4
|
+
super(e), this._matches = !1, this.handleChange = (s) => {
|
|
5
|
+
this._matches = s.matches, this.host.requestUpdate();
|
|
6
|
+
}, this.mediaQuery = window.matchMedia(t), this._matches = this.mediaQuery.matches;
|
|
7
|
+
}
|
|
8
|
+
get matches() {
|
|
9
|
+
return this._matches;
|
|
10
|
+
}
|
|
11
|
+
hostConnected() {
|
|
12
|
+
this.mediaQuery.addEventListener("change", this.handleChange);
|
|
13
|
+
}
|
|
14
|
+
hostDisconnected() {
|
|
15
|
+
this.mediaQuery.removeEventListener("change", this.handleChange);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
n as MatchMediaController
|
|
20
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { BaseController } from './base.controller.js';
|
|
3
|
+
export type MessageHandler = (payload: unknown) => void;
|
|
4
|
+
export type WildcardMessageHandler = (type: string, payload: unknown) => void;
|
|
5
|
+
/**
|
|
6
|
+
* Controller for postMessage communication with iframes or other windows.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* class MyIframeHost extends LitElement {
|
|
11
|
+
* private messageBus = new MessageBusController(this);
|
|
12
|
+
*
|
|
13
|
+
* connectedCallback() {
|
|
14
|
+
* super.connectedCallback();
|
|
15
|
+
* this.messageBus.onMessage('READY', (payload) => {
|
|
16
|
+
* console.log('Iframe is ready', payload);
|
|
17
|
+
* });
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* sendToIframe() {
|
|
21
|
+
* this.messageBus.send('COMMAND', { action: 'do-something' });
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare class MessageBusController extends BaseController {
|
|
27
|
+
private handlers;
|
|
28
|
+
private wildcardHandlers;
|
|
29
|
+
private targetOrigin;
|
|
30
|
+
/**
|
|
31
|
+
* @param host - The reactive controller host
|
|
32
|
+
* @param targetOrigin - The origin to accept messages from and send messages to.
|
|
33
|
+
* SECURITY NOTE: Using '*' accepts messages from any origin which can be dangerous.
|
|
34
|
+
* Always specify an explicit origin in production environments.
|
|
35
|
+
*/
|
|
36
|
+
constructor(host: ReactiveControllerHost, targetOrigin?: string);
|
|
37
|
+
send(type: string, payload: unknown, targetWindow?: Window): void;
|
|
38
|
+
sendToFrame(iframe: HTMLIFrameElement, type: string, payload: unknown): void;
|
|
39
|
+
onMessage(type: string, handler: MessageHandler): () => void;
|
|
40
|
+
onMessage(type: '*', handler: WildcardMessageHandler): () => void;
|
|
41
|
+
private handleMessage;
|
|
42
|
+
hostConnected(): void;
|
|
43
|
+
hostDisconnected(): void;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=message-bus.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-bus.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/message-bus.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AACxD,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,oBAAqB,SAAQ,cAAc;IACtD,OAAO,CAAC,QAAQ,CAA0C;IAC1D,OAAO,CAAC,gBAAgB,CAAqC;IAC7D,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;;OAKG;gBACS,IAAI,EAAE,sBAAsB,EAAE,YAAY,SAAM;IAgB5D,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,GAAE,MAAe,GAAG,IAAI;IAIzE,WAAW,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI;IAI5E,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,MAAM,IAAI;IAC5D,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,sBAAsB,GAAG,MAAM,IAAI;IAsBjE,OAAO,CAAC,aAAa,CAwBnB;IAEO,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;CAIlC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { BaseController as r } from "./base.controller.js";
|
|
2
|
+
class l extends r {
|
|
3
|
+
/**
|
|
4
|
+
* @param host - The reactive controller host
|
|
5
|
+
* @param targetOrigin - The origin to accept messages from and send messages to.
|
|
6
|
+
* SECURITY NOTE: Using '*' accepts messages from any origin which can be dangerous.
|
|
7
|
+
* Always specify an explicit origin in production environments.
|
|
8
|
+
*/
|
|
9
|
+
constructor(e, s = "*") {
|
|
10
|
+
super(e), this.handlers = /* @__PURE__ */ new Map(), this.wildcardHandlers = /* @__PURE__ */ new Set(), this.handleMessage = (t) => {
|
|
11
|
+
if (!(this.targetOrigin !== "*" && t.origin !== this.targetOrigin) && t.data && typeof t.data == "object" && typeof t.data.type == "string") {
|
|
12
|
+
const { type: n, payload: a } = t.data;
|
|
13
|
+
this.handlers.get(n)?.forEach((i) => {
|
|
14
|
+
i(a);
|
|
15
|
+
}), this.wildcardHandlers.forEach((i) => {
|
|
16
|
+
i(n, a);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}, this.targetOrigin = s, s === "*" && typeof window < "u" && window.location.protocol !== "file:" && console.warn(
|
|
20
|
+
'[MessageBusController] Using targetOrigin="*" accepts messages from any origin. For security, specify an explicit origin in production.'
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
send(e, s, t = window) {
|
|
24
|
+
t.postMessage({ type: e, payload: s }, this.targetOrigin);
|
|
25
|
+
}
|
|
26
|
+
sendToFrame(e, s, t) {
|
|
27
|
+
e.contentWindow?.postMessage({ type: s, payload: t }, this.targetOrigin);
|
|
28
|
+
}
|
|
29
|
+
onMessage(e, s) {
|
|
30
|
+
return e === "*" ? (this.wildcardHandlers.add(s), () => {
|
|
31
|
+
this.wildcardHandlers.delete(s);
|
|
32
|
+
}) : (this.handlers.has(e) || this.handlers.set(e, /* @__PURE__ */ new Set()), this.handlers.get(e)?.add(s), () => {
|
|
33
|
+
this.handlers.get(e)?.delete(s);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
hostConnected() {
|
|
37
|
+
window.addEventListener("message", this.handleMessage);
|
|
38
|
+
}
|
|
39
|
+
hostDisconnected() {
|
|
40
|
+
window.removeEventListener("message", this.handleMessage), this.handlers.clear();
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export {
|
|
44
|
+
l as MessageBusController
|
|
45
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ReactiveControllerHost } from 'lit';
|
|
2
|
+
import { BaseController } from './base.controller.js';
|
|
3
|
+
/**
|
|
4
|
+
* Controller for syncing component state with localStorage/sessionStorage.
|
|
5
|
+
* Automatically updates when storage changes in other tabs.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* class MyBanner extends LitElement {
|
|
10
|
+
* private dismissed = new StorageController<boolean>(this, 'banner-dismissed');
|
|
11
|
+
*
|
|
12
|
+
* handleDismiss() {
|
|
13
|
+
* this.dismissed.set(true);
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* render() {
|
|
17
|
+
* if (this.dismissed.value) return null;
|
|
18
|
+
* return html`
|
|
19
|
+
* <div class="banner">
|
|
20
|
+
* <button @click=${this.handleDismiss}>Dismiss</button>
|
|
21
|
+
* </div>
|
|
22
|
+
* `;
|
|
23
|
+
* }
|
|
24
|
+
* }
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare class StorageController<T = unknown> extends BaseController {
|
|
28
|
+
private key;
|
|
29
|
+
private storage;
|
|
30
|
+
private _value;
|
|
31
|
+
constructor(host: ReactiveControllerHost, key: string, storage?: Storage);
|
|
32
|
+
get value(): T | null;
|
|
33
|
+
set(value: T): void;
|
|
34
|
+
remove(): void;
|
|
35
|
+
private load;
|
|
36
|
+
private handleStorageChange;
|
|
37
|
+
hostConnected(): void;
|
|
38
|
+
hostDisconnected(): void;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=storage.controller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.controller.d.ts","sourceRoot":"","sources":["../../src/controllers/storage.controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,iBAAiB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,cAAc;IAChE,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAAU;IACzB,OAAO,CAAC,MAAM,CAAkB;gBAG9B,IAAI,EAAE,sBAAsB,EAC5B,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,OAAsB;IAQjC,IAAI,KAAK,IAAI,CAAC,GAAG,IAAI,CAEpB;IAED,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAWnB,MAAM,IAAI,IAAI;IAMd,OAAO,CAAC,IAAI;IAWZ,OAAO,CAAC,mBAAmB,CAKzB;IAEO,aAAa,IAAI,IAAI;IAIrB,gBAAgB,IAAI,IAAI;CAGlC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BaseController as a } from "./base.controller.js";
|
|
2
|
+
class i extends a {
|
|
3
|
+
constructor(t, s, o = localStorage) {
|
|
4
|
+
super(t), this._value = null, this.handleStorageChange = (e) => {
|
|
5
|
+
e.key === this.key && e.storageArea === this.storage && (this.load(), this.host.requestUpdate());
|
|
6
|
+
}, this.key = s, this.storage = o, this.load();
|
|
7
|
+
}
|
|
8
|
+
get value() {
|
|
9
|
+
return this._value;
|
|
10
|
+
}
|
|
11
|
+
set(t) {
|
|
12
|
+
this._value = t;
|
|
13
|
+
try {
|
|
14
|
+
this.storage.setItem(this.key, JSON.stringify(t));
|
|
15
|
+
} catch {
|
|
16
|
+
console.warn(`Failed to save to storage: ${this.key}`);
|
|
17
|
+
}
|
|
18
|
+
this.host.requestUpdate();
|
|
19
|
+
}
|
|
20
|
+
remove() {
|
|
21
|
+
this._value = null, this.storage.removeItem(this.key), this.host.requestUpdate();
|
|
22
|
+
}
|
|
23
|
+
load() {
|
|
24
|
+
try {
|
|
25
|
+
const t = this.storage.getItem(this.key);
|
|
26
|
+
t !== null && (this._value = JSON.parse(t));
|
|
27
|
+
} catch {
|
|
28
|
+
this._value = null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
hostConnected() {
|
|
32
|
+
window.addEventListener("storage", this.handleStorageChange);
|
|
33
|
+
}
|
|
34
|
+
hostDisconnected() {
|
|
35
|
+
window.removeEventListener("storage", this.handleStorageChange);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
i as StorageController
|
|
40
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
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";
|
|
13
|
+
import { TcContainer as E } from "./primitives/tc-container.js";
|
|
14
|
+
import { TcDivider as L } from "./primitives/tc-divider.js";
|
|
15
|
+
import { TcErrorMessage as v } from "./primitives/tc-error-message.js";
|
|
16
|
+
import { TcFormHeader as F } from "./primitives/tc-form-header.js";
|
|
17
|
+
import { TcIcon as P } from "./primitives/tc-icon.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";
|
|
21
|
+
import { TcItemButton as J } from "./primitives/tc-item-button.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
|
+
import { TcSpinner as Y } from "./primitives/tc-spinner.js";
|
|
26
|
+
import { TcSymbol as _ } from "./primitives/tc-symbol.js";
|
|
27
|
+
import { TcText as oo } from "./primitives/tc-text.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";
|
|
32
|
+
export {
|
|
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,
|
|
45
|
+
E as TcContainer,
|
|
46
|
+
L as TcDivider,
|
|
47
|
+
v as TcErrorMessage,
|
|
48
|
+
po as TcErrorScreen,
|
|
49
|
+
F as TcFormHeader,
|
|
50
|
+
P as TcIcon,
|
|
51
|
+
j as TcInput,
|
|
52
|
+
q as TcInputWithChip,
|
|
53
|
+
z as TcItem,
|
|
54
|
+
J as TcItemButton,
|
|
55
|
+
co as TcLoadingScreen,
|
|
56
|
+
N as TcOtpInput,
|
|
57
|
+
R as TcPageDecoration,
|
|
58
|
+
V as TcSection,
|
|
59
|
+
Y as TcSpinner,
|
|
60
|
+
fo as TcSuccessScreen,
|
|
61
|
+
_ as TcSymbol,
|
|
62
|
+
oo as TcText,
|
|
63
|
+
eo as TcToast
|
|
64
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export { TcBox } from './tc-box.js';
|
|
2
|
+
export { TcButton } from './tc-button.js';
|
|
3
|
+
export { TcCallout } from './tc-callout.js';
|
|
4
|
+
export { TcCard } from './tc-card.js';
|
|
5
|
+
export { TcChip } from './tc-chip.js';
|
|
6
|
+
export { TcContainer } from './tc-container.js';
|
|
7
|
+
export { TcDivider } from './tc-divider.js';
|
|
8
|
+
export { TcErrorMessage } from './tc-error-message.js';
|
|
9
|
+
export { TcFormHeader } from './tc-form-header.js';
|
|
10
|
+
export { type IconName, TcIcon } from './tc-icon.js';
|
|
11
|
+
export { TcInput } from './tc-input.js';
|
|
12
|
+
export { TcInputWithChip } from './tc-input-with-chip.js';
|
|
13
|
+
export { TcItem } from './tc-item.js';
|
|
14
|
+
export { TcItemButton } from './tc-item-button.js';
|
|
15
|
+
export { TcOtpInput } from './tc-otp-input.js';
|
|
16
|
+
export { TcPageDecoration } from './tc-page-decoration.js';
|
|
17
|
+
export { TcSection } from './tc-section.js';
|
|
18
|
+
export { TcSpinner } from './tc-spinner.js';
|
|
19
|
+
export { TcSymbol } from './tc-symbol.js';
|
|
20
|
+
export { TcText } from './tc-text.js';
|
|
21
|
+
export { TcToast } from './tc-toast.js';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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"}
|