@transcodes/ui-components 0.3.4 → 0.3.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 +8 -0
- package/dist/controllers/animation.controller.d.ts +48 -0
- package/dist/controllers/animation.controller.d.ts.map +1 -0
- package/dist/controllers/base.controller.d.ts +14 -0
- package/dist/controllers/base.controller.d.ts.map +1 -0
- package/dist/controllers/form-validation.controller.d.ts +48 -0
- package/dist/controllers/form-validation.controller.d.ts.map +1 -0
- package/dist/controllers/history.controller.d.ts +34 -0
- package/dist/controllers/history.controller.d.ts.map +1 -0
- package/dist/controllers/index.d.ts.map +1 -0
- package/dist/controllers/loading.controller.d.ts +36 -0
- package/dist/controllers/loading.controller.d.ts.map +1 -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/message-bus.controller.d.ts +45 -0
- package/dist/controllers/message-bus.controller.d.ts.map +1 -0
- package/dist/controllers/storage.controller.d.ts +40 -0
- package/dist/controllers/storage.controller.d.ts.map +1 -0
- package/dist/index.d.ts +5 -295
- package/dist/index.d.ts.map +1 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/tc-box.d.ts +19 -0
- package/dist/primitives/tc-box.d.ts.map +1 -0
- package/dist/primitives/tc-button.d.ts +25 -0
- package/dist/primitives/tc-button.d.ts.map +1 -0
- package/dist/primitives/tc-callout.d.ts +22 -0
- package/dist/primitives/tc-callout.d.ts.map +1 -0
- package/dist/primitives/tc-card.d.ts +20 -0
- package/dist/primitives/tc-card.d.ts.map +1 -0
- package/dist/primitives/tc-chip.d.ts +19 -0
- package/dist/primitives/tc-chip.d.ts.map +1 -0
- package/dist/primitives/tc-container.d.ts +20 -0
- package/dist/primitives/tc-container.d.ts.map +1 -0
- package/dist/primitives/tc-divider.d.ts +22 -0
- package/dist/primitives/tc-divider.d.ts.map +1 -0
- package/dist/primitives/tc-error-message.d.ts +23 -0
- package/dist/primitives/tc-error-message.d.ts.map +1 -0
- package/dist/primitives/tc-form-header.d.ts +25 -0
- package/dist/primitives/tc-form-header.d.ts.map +1 -0
- package/dist/primitives/tc-icon.d.ts +20 -0
- package/dist/primitives/tc-icon.d.ts.map +1 -0
- package/dist/primitives/tc-input-with-chip.d.ts +38 -0
- package/dist/primitives/tc-input-with-chip.d.ts.map +1 -0
- package/dist/primitives/tc-input.d.ts +45 -0
- package/dist/primitives/tc-input.d.ts.map +1 -0
- package/dist/primitives/tc-item-button.d.ts +30 -0
- package/dist/primitives/tc-item-button.d.ts.map +1 -0
- package/dist/primitives/tc-item.d.ts +25 -0
- package/dist/primitives/tc-item.d.ts.map +1 -0
- package/dist/primitives/tc-otp-input.d.ts +38 -0
- package/dist/primitives/tc-otp-input.d.ts.map +1 -0
- package/dist/primitives/tc-section.d.ts +19 -0
- package/dist/primitives/tc-section.d.ts.map +1 -0
- package/dist/primitives/tc-spinner.d.ts +20 -0
- package/dist/primitives/tc-spinner.d.ts.map +1 -0
- package/dist/primitives/tc-symbol.d.ts +20 -0
- package/dist/primitives/tc-symbol.d.ts.map +1 -0
- package/dist/primitives/tc-text.d.ts +31 -0
- package/dist/primitives/tc-text.d.ts.map +1 -0
- package/dist/primitives/tc-toast.d.ts +34 -0
- package/dist/primitives/tc-toast.d.ts.map +1 -0
- package/dist/screens/index.d.ts.map +1 -0
- package/dist/screens/tc-error-screen.d.ts +27 -0
- package/dist/screens/tc-error-screen.d.ts.map +1 -0
- package/dist/screens/tc-loading-screen.d.ts +23 -0
- package/dist/screens/tc-loading-screen.d.ts.map +1 -0
- package/dist/screens/tc-success-screen.d.ts +31 -0
- package/dist/screens/tc-success-screen.d.ts.map +1 -0
- package/dist/styles/shared.d.ts +20 -0
- package/dist/styles/shared.d.ts.map +1 -0
- package/dist/widgets/index.d.ts.map +1 -0
- package/dist/widgets/tc-authenticator-card.d.ts +35 -0
- package/dist/widgets/tc-authenticator-card.d.ts.map +1 -0
- package/dist/widgets/tc-floating-button.d.ts +25 -0
- package/dist/widgets/tc-floating-button.d.ts.map +1 -0
- package/dist/widgets/tc-iframe-modal.d.ts +43 -0
- package/dist/widgets/tc-iframe-modal.d.ts.map +1 -0
- package/dist/widgets/tc-installation-banner.d.ts +42 -0
- package/dist/widgets/tc-installation-banner.d.ts.map +1 -0
- package/dist/widgets/tc-ios-installation-guide.d.ts +34 -0
- package/dist/widgets/tc-ios-installation-guide.d.ts.map +1 -0
- package/dist/widgets/tc-notification-modal.d.ts +42 -0
- package/dist/widgets/tc-notification-modal.d.ts.map +1 -0
- package/dist/widgets/tc-offline-modal.d.ts +39 -0
- package/dist/widgets/tc-offline-modal.d.ts.map +1 -0
- package/dist/widgets/tc-page-decoration.d.ts +19 -0
- package/dist/widgets/tc-page-decoration.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -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"}
|
|
@@ -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,4BAmGpB;IAEO,MAAM;IA4Bf,OAAO,CAAC,WAAW;CAWpB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -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,4BAyCpB;IAEO,MAAM;CAyBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -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,4BAmCpB;IAEO,MAAM;CAchB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -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,4BA8CpB;IAEO,MAAM;CAOhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -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,0BAgBpB;IAEO,MAAM;CAgBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A horizontal divider line with optional text.
|
|
4
|
+
*
|
|
5
|
+
* @csspart divider - The divider element (simple mode)
|
|
6
|
+
* @csspart container - The container element (text mode)
|
|
7
|
+
* @csspart line - The line elements (text mode)
|
|
8
|
+
* @csspart text - The text element (text mode)
|
|
9
|
+
*/
|
|
10
|
+
export declare class TcDivider extends LitElement {
|
|
11
|
+
color: string;
|
|
12
|
+
spacing: string;
|
|
13
|
+
text: string;
|
|
14
|
+
static styles: import('lit').CSSResult;
|
|
15
|
+
render(): import('lit').TemplateResult<1>;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'tc-divider': TcDivider;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=tc-divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-divider.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-divider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;;;GAOG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,KAAK,SAAsB;IAC3B,OAAO,SAAqB;IAC5B,IAAI,SAAM;IAEtC,OAAgB,MAAM,0BAoCpB;IAEO,MAAM;CAiBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A simplified error/warning/info message component.
|
|
4
|
+
* Wraps tc-callout with appropriate icon and text styling.
|
|
5
|
+
*
|
|
6
|
+
* @csspart callout - The underlying callout container
|
|
7
|
+
* @csspart icon - The icon element
|
|
8
|
+
* @csspart message - The message text
|
|
9
|
+
*/
|
|
10
|
+
export declare class TcErrorMessage extends LitElement {
|
|
11
|
+
variant: 'warning' | 'info' | 'error';
|
|
12
|
+
message: string;
|
|
13
|
+
static styles: import('lit').CSSResult;
|
|
14
|
+
private getIconName;
|
|
15
|
+
private getIconColor;
|
|
16
|
+
render(): import('lit').TemplateResult<1> | null;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'tc-error-message': TcErrorMessage;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=tc-error-message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-error-message.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-error-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAE5C,OAAO,iBAAiB,CAAC;AACzB,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAEtB;;;;;;;GAOG;AACH,qBACa,cAAe,SAAQ,UAAU;IAChB,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAW;IAChD,OAAO,SAAM;IAEzC,OAAgB,MAAM,0BAapB;IAEF,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,YAAY;IAWX,MAAM;CAoBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Form header component with animated title, subtitle, and optional notice.
|
|
4
|
+
* Uses design-tokens form classes (.form-title, .form-subtitle).
|
|
5
|
+
*
|
|
6
|
+
* @csspart header - The header container
|
|
7
|
+
* @csspart title - The title element
|
|
8
|
+
* @csspart subtitle - The subtitle element
|
|
9
|
+
* @csspart notice - The notice element
|
|
10
|
+
*/
|
|
11
|
+
export declare class TcFormHeader extends LitElement {
|
|
12
|
+
title: string;
|
|
13
|
+
subtitle: string;
|
|
14
|
+
notice: string;
|
|
15
|
+
noAnimation: boolean;
|
|
16
|
+
sx: Record<string, string | number>;
|
|
17
|
+
static styles: import('lit').CSSResult[];
|
|
18
|
+
render(): import('lit').TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'tc-form-header': TcFormHeader;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=tc-form-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-form-header.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-form-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;;;;GAQG;AACH,qBACa,YAAa,SAAQ,UAAU;IACd,KAAK,SAAM;IACX,QAAQ,SAAM;IACd,MAAM,SAAM;IACgB,WAAW,UAAS;IAChD,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,4BAoEpB;IAEO,MAAM;CA6BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
export type IconName = 'arrow-left' | 'arrow-right' | 'check' | 'x' | 'close' | 'chevron-right' | 'chevron-left' | 'error' | 'alert-circle' | 'info' | 'warning' | 'loading' | 'loader' | 'biometric' | 'email' | 'passkey' | 'bell' | 'download' | 'wifi-off' | 'apple' | 'google' | 'windows' | 'samsung' | 'phone' | 'success' | 'lock' | 'person' | 'device' | 'totp' | 'email-otp' | 'qrcode' | 'key';
|
|
3
|
+
/**
|
|
4
|
+
* An icon component with built-in icon set.
|
|
5
|
+
*
|
|
6
|
+
* @csspart icon - The icon container
|
|
7
|
+
*/
|
|
8
|
+
export declare class TcIcon extends LitElement {
|
|
9
|
+
name: IconName;
|
|
10
|
+
size: string;
|
|
11
|
+
color: string;
|
|
12
|
+
static styles: import('lit').CSSResult;
|
|
13
|
+
render(): TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'tc-icon': TcIcon;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tc-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-icon.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAGjE,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,aAAa,GACb,OAAO,GACP,GAAG,GACH,OAAO,GACP,eAAe,GACf,cAAc,GACd,OAAO,GACP,cAAc,GACd,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,WAAW,GACX,OAAO,GACP,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GAEV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GAET,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,GACR,QAAQ,GAER,MAAM,GACN,WAAW,GACX,QAAQ,GACR,KAAK,CAAC;AAwCV;;;;GAIG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,IAAI,EAAE,QAAQ,CAAU;IACxB,IAAI,SAAY;IAChB,KAAK,SAAkB;IAEnD,OAAgB,MAAM,0BAkBpB;IAEO,MAAM;CAkBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* An input field with an attached chip indicator.
|
|
4
|
+
* Useful for showing authentication method alongside email/username input.
|
|
5
|
+
*
|
|
6
|
+
* @fires tc-input - Fired when input value changes
|
|
7
|
+
* @fires tc-blur - Fired when input loses focus
|
|
8
|
+
* @fires tc-keydown - Fired on keydown
|
|
9
|
+
* @csspart wrapper - The input wrapper container
|
|
10
|
+
* @csspart input - The input element
|
|
11
|
+
* @csspart chip - The chip element
|
|
12
|
+
*/
|
|
13
|
+
export declare class TcInputWithChip extends LitElement {
|
|
14
|
+
label: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
value: string;
|
|
17
|
+
error: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
chipLabel: string;
|
|
21
|
+
chipIcon: string;
|
|
22
|
+
chipVariant: 'default' | 'success' | 'error' | 'info';
|
|
23
|
+
private inputId;
|
|
24
|
+
private isFocused;
|
|
25
|
+
static styles: import('lit').CSSResult[];
|
|
26
|
+
render(): import('lit').TemplateResult<1>;
|
|
27
|
+
private handleInput;
|
|
28
|
+
private handleFocus;
|
|
29
|
+
private handleBlur;
|
|
30
|
+
private handleKeydown;
|
|
31
|
+
focus(): void;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'tc-input-with-chip': TcInputWithChip;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=tc-input-with-chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-input-with-chip.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input-with-chip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C,OAAO,cAAc,CAAC;AACtB,OAAO,cAAc,CAAC;AAGtB;;;;;;;;;;GAUG;AACH,qBACa,eAAgB,SAAQ,UAAU;IACjB,KAAK,SAAM;IACX,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IACO,SAAS,SAAM;IAChB,QAAQ,SAAM;IACX,WAAW,EAC9D,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,CAAa;IAEd,OAAO,CAAC,OAAO,CACiC;IAChD,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAgB,MAAM,4BA2GpB;IAEO,MAAM;IAoEf,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAUrB,KAAK;CAIN;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,eAAe,CAAC;KACvC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Form input component with label and error states.
|
|
4
|
+
* Uses design-tokens classes (.input, .label, .field-group).
|
|
5
|
+
*
|
|
6
|
+
* @fires tc-input - Fired when input value changes
|
|
7
|
+
* @fires tc-blur - Fired when input loses focus
|
|
8
|
+
* @fires tc-keydown - Fired when a key is pressed
|
|
9
|
+
* @fires tc-paste - Fired when content is pasted
|
|
10
|
+
* @csspart wrapper - The input wrapper element
|
|
11
|
+
* @csspart input - The input element
|
|
12
|
+
* @csspart label - The label element
|
|
13
|
+
* @csspart ink-line - The animated ink line
|
|
14
|
+
* @csspart error - The error message element
|
|
15
|
+
*/
|
|
16
|
+
export declare class TcInput extends LitElement {
|
|
17
|
+
label: string;
|
|
18
|
+
type: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
value: string;
|
|
21
|
+
error: string;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
required: boolean;
|
|
24
|
+
name: string;
|
|
25
|
+
autocomplete: string;
|
|
26
|
+
inputmode: string;
|
|
27
|
+
maxlength: number;
|
|
28
|
+
sx: Record<string, string | number>;
|
|
29
|
+
private inputId;
|
|
30
|
+
private isFocused;
|
|
31
|
+
static styles: import('lit').CSSResult[];
|
|
32
|
+
render(): import('lit').TemplateResult<1>;
|
|
33
|
+
private handleInput;
|
|
34
|
+
private handleFocus;
|
|
35
|
+
private handleBlur;
|
|
36
|
+
private handleKeydown;
|
|
37
|
+
private handlePaste;
|
|
38
|
+
focus(): void;
|
|
39
|
+
}
|
|
40
|
+
declare global {
|
|
41
|
+
interface HTMLElementTagNameMap {
|
|
42
|
+
'tc-input': TcInput;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=tc-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-input.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAM5C;;;;;;;;;;;;;GAaG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACT,KAAK,SAAM;IACX,IAAI,SAAU;IACd,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,KAAK,SAAM;IACV,QAAQ,UAAS;IACjB,QAAQ,UAAS;IAClB,IAAI,SAAM;IACV,YAAY,SAAM;IAClB,SAAS,SAAM;IACf,SAAS,SAAK;IACd,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAE5D,OAAO,CAAC,OAAO,CAAqD;IACpE,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAgB,MAAM,4BA2GpB;IAEO,MAAM;IA+Df,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,UAAU;IAalB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,WAAW;IAUnB,KAAK;CAIN;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A clickable item button with hover states and optional arrow indicator.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Item content
|
|
6
|
+
* @slot prefix - Left side content (icon, symbol)
|
|
7
|
+
* @slot suffix - Right side content (replaces arrow if provided)
|
|
8
|
+
* @fires tc-click - Fired when the item is clicked
|
|
9
|
+
* @csspart button - The button element
|
|
10
|
+
* @csspart prefix - The prefix container
|
|
11
|
+
* @csspart content - The main content container
|
|
12
|
+
* @csspart suffix - The suffix container
|
|
13
|
+
* @csspart arrow - The arrow indicator
|
|
14
|
+
*/
|
|
15
|
+
export declare class TcItemButton extends LitElement {
|
|
16
|
+
gap: string;
|
|
17
|
+
padding: string;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
showArrow: boolean;
|
|
20
|
+
sx: Record<string, string | number>;
|
|
21
|
+
static styles: import('lit').CSSResult;
|
|
22
|
+
private handleClick;
|
|
23
|
+
render(): import('lit').TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'tc-item-button': TcItemButton;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=tc-item-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-item-button.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;;;GAYG;AACH,qBACa,YAAa,SAAQ,UAAU;IACd,GAAG,SAAqB;IACxB,OAAO,SAAqB;IAC3B,QAAQ,UAAS;IACQ,SAAS,UAAQ;IAC3C,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BAqFpB;IAEF,OAAO,CAAC,WAAW;IAWV,MAAM;CA6ChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A non-clickable item container for displaying content.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Item content
|
|
6
|
+
* @slot prefix - Left side content (icon, symbol)
|
|
7
|
+
* @slot suffix - Right side content (badge, action)
|
|
8
|
+
* @csspart item - The item container
|
|
9
|
+
* @csspart prefix - The prefix container
|
|
10
|
+
* @csspart content - The main content container
|
|
11
|
+
* @csspart suffix - The suffix container
|
|
12
|
+
*/
|
|
13
|
+
export declare class TcItem extends LitElement {
|
|
14
|
+
gap: string;
|
|
15
|
+
padding: string;
|
|
16
|
+
sx: Record<string, string | number>;
|
|
17
|
+
static styles: import('lit').CSSResult;
|
|
18
|
+
render(): import('lit').TemplateResult<1>;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'tc-item': TcItem;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=tc-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-item.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,GAAG,SAAqB;IACxB,OAAO,SAAqB;IAC5B,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BA4CpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* OTP (One-Time Password) input component with individual cells and progress indicator.
|
|
4
|
+
* Uses shake animation from design-tokens.
|
|
5
|
+
*
|
|
6
|
+
* @fires tc-complete - Fired when all cells are filled
|
|
7
|
+
* @fires tc-change - Fired when the OTP value changes
|
|
8
|
+
* @csspart cells - The cells container
|
|
9
|
+
* @csspart cell - Individual cell input
|
|
10
|
+
* @csspart progress - The progress bar container
|
|
11
|
+
* @csspart progress-bar - The progress bar fill
|
|
12
|
+
*/
|
|
13
|
+
export declare class TcOtpInput extends LitElement {
|
|
14
|
+
length: number;
|
|
15
|
+
error: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
showProgress: boolean;
|
|
18
|
+
private values;
|
|
19
|
+
static styles: import('lit').CSSResult[];
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
render(): import('lit').TemplateResult<1>;
|
|
22
|
+
private handleInput;
|
|
23
|
+
private handleKeydown;
|
|
24
|
+
private handlePaste;
|
|
25
|
+
private focusCell;
|
|
26
|
+
/** Focus the first empty cell or the last cell */
|
|
27
|
+
focus(): void;
|
|
28
|
+
/** Clear all values */
|
|
29
|
+
clear(): void;
|
|
30
|
+
/** Get the current OTP value */
|
|
31
|
+
getValue(): string;
|
|
32
|
+
}
|
|
33
|
+
declare global {
|
|
34
|
+
interface HTMLElementTagNameMap {
|
|
35
|
+
'tc-otp-input': TcOtpInput;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=tc-otp-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-otp-input.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-otp-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;;;;;;GAUG;AACH,qBACa,UAAW,SAAQ,UAAU;IACZ,MAAM,SAAK;IACV,KAAK,UAAS;IACd,QAAQ,UAAS;IACW,YAAY,UAAQ;IAEpE,OAAO,CAAC,MAAM,CAAgB;IAEvC,OAAgB,MAAM,4BAyFpB;IAEO,iBAAiB;IAKjB,MAAM;IAoDf,OAAO,CAAC,WAAW;IAgCnB,OAAO,CAAC,aAAa;IAerB,OAAO,CAAC,WAAW;IAoCnB,OAAO,CAAC,SAAS;IASjB,kDAAkD;IAClD,KAAK;IAML,uBAAuB;IACvB,KAAK;IAKL,gCAAgC;IAChC,QAAQ,IAAI,MAAM;CAGnB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A section container with flex column layout.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Section content
|
|
6
|
+
* @csspart section - The section element
|
|
7
|
+
*/
|
|
8
|
+
export declare class TcSection extends LitElement {
|
|
9
|
+
gap: string;
|
|
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-section': TcSection;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=tc-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-section.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-section.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAI5C;;;;;GAKG;AACH,qBACa,SAAU,SAAQ,UAAU;IACX,GAAG,SAAqB;IACxB,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,0BAWpB;IAEO,MAAM;CAYhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A loading spinner with responsive sizing.
|
|
4
|
+
* Uses spin animation from design-tokens.
|
|
5
|
+
*
|
|
6
|
+
* @csspart spinner - The spinner element
|
|
7
|
+
*/
|
|
8
|
+
export declare class TcSpinner extends LitElement {
|
|
9
|
+
private mobile;
|
|
10
|
+
size: 'sm' | 'md' | 'lg' | 'auto';
|
|
11
|
+
color: string;
|
|
12
|
+
static styles: import('lit').CSSResult[];
|
|
13
|
+
render(): import('lit').TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'tc-spinner': TcSpinner;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tc-spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-spinner.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-spinner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;GAKG;AACH,qBACa,SAAU,SAAQ,UAAU;IACvC,OAAO,CAAC,MAAM,CAAwD;IAE1C,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAU;IAC3C,KAAK,SAA2B;IAE5D,OAAgB,MAAM,4BAgDpB;IAEO,MAAM;CAqBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A circular symbol/avatar component.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Symbol content (icon or text)
|
|
6
|
+
* @csspart symbol - The symbol container
|
|
7
|
+
*/
|
|
8
|
+
export declare class TcSymbol extends LitElement {
|
|
9
|
+
size: string;
|
|
10
|
+
background: string;
|
|
11
|
+
color: string;
|
|
12
|
+
static styles: import('lit').CSSResult;
|
|
13
|
+
render(): import('lit').TemplateResult<1>;
|
|
14
|
+
}
|
|
15
|
+
declare global {
|
|
16
|
+
interface HTMLElementTagNameMap {
|
|
17
|
+
'tc-symbol': TcSymbol;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=tc-symbol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-symbol.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;;GAKG;AACH,qBACa,QAAS,SAAQ,UAAU;IACV,IAAI,SAAU;IACd,UAAU,SAAwB;IAClC,KAAK,SAAqB;IAEtD,OAAgB,MAAM,0BAiBpB;IAEO,MAAM;CAWhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
type TextTag = 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'label';
|
|
3
|
+
type TextSize = 'sm' | 'base' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
type TextWeight = '400' | '500' | '600' | '700';
|
|
5
|
+
type TextColor = 'primary' | 'secondary' | 'tertiary' | 'muted' | 'accent' | 'success' | 'error' | 'warning' | 'info';
|
|
6
|
+
/**
|
|
7
|
+
* A text component with dynamic tag rendering.
|
|
8
|
+
* Supports semantic HTML tags for accessibility.
|
|
9
|
+
* Uses design-tokens for consistent theming across light/dark modes.
|
|
10
|
+
*
|
|
11
|
+
* @slot - Text content
|
|
12
|
+
* @csspart text - The text element
|
|
13
|
+
*/
|
|
14
|
+
export declare class TcText extends LitElement {
|
|
15
|
+
tag: TextTag;
|
|
16
|
+
size?: TextSize;
|
|
17
|
+
weight?: TextWeight;
|
|
18
|
+
color?: TextColor | string;
|
|
19
|
+
sx: Record<string, string | number>;
|
|
20
|
+
static styles: import('lit').CSSResult[];
|
|
21
|
+
private getColorClass;
|
|
22
|
+
private getColorStyle;
|
|
23
|
+
render(): import('lit').TemplateResult;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'tc-text': TcText;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
31
|
+
//# sourceMappingURL=tc-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-text.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-text.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,UAAU,EAAE,MAAM,KAAK,CAAC;AAMtC,KAAK,OAAO,GACR,GAAG,GACH,MAAM,GACN,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,OAAO,CAAC;AAEZ,KAAK,QAAQ,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AACpD,KAAK,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAChD,KAAK,SAAS,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,SAAS,GACT,MAAM,CAAC;AAEX;;;;;;;GAOG;AACH,qBACa,MAAO,SAAQ,UAAU;IACR,GAAG,EAAE,OAAO,CAAO;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM;IAErE,OAAgB,MAAM,4BA2EpB;IAEF,OAAO,CAAC,aAAa;IAmBrB,OAAO,CAAC,aAAa;IAgBZ,MAAM;CAwBhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* A toast notification component with auto-dismiss and animation.
|
|
4
|
+
*
|
|
5
|
+
* @slot - Toast message content
|
|
6
|
+
* @fires tc-dismiss - Fired when the toast is dismissed
|
|
7
|
+
* @csspart toast - The toast container
|
|
8
|
+
* @csspart content - The content container
|
|
9
|
+
* @csspart close - The close button
|
|
10
|
+
*/
|
|
11
|
+
export declare class TcToast extends LitElement {
|
|
12
|
+
variant: 'info' | 'success' | 'warning' | 'error';
|
|
13
|
+
duration: number;
|
|
14
|
+
autoDismiss: boolean;
|
|
15
|
+
dismissible: boolean;
|
|
16
|
+
private animation;
|
|
17
|
+
private dismissTimer?;
|
|
18
|
+
static styles: import('lit').CSSResult[];
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
private updateDataState;
|
|
22
|
+
private clearDismissTimer;
|
|
23
|
+
private startDismissTimer;
|
|
24
|
+
show(): Promise<void>;
|
|
25
|
+
hide(): Promise<void>;
|
|
26
|
+
private handleClose;
|
|
27
|
+
render(): import('lit').TemplateResult<1>;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'tc-toast': TcToast;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=tc-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tc-toast.d.ts","sourceRoot":"","sources":["../../src/primitives/tc-toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAE,MAAM,KAAK,CAAC;AAK5C;;;;;;;;GAQG;AACH,qBACa,OAAQ,SAAQ,UAAU;IACT,OAAO,EAC/B,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAU;IACO,QAAQ,SAAQ;IACY,WAAW,UAAQ;IAC9C,WAAW,UAAQ;IAEhD,OAAO,CAAC,SAAS,CAGd;IAEH,OAAO,CAAC,YAAY,CAAC,CAAgC;IAErD,OAAgB,MAAM,4BA6FpB;IAEO,iBAAiB;IAKjB,oBAAoB;IAK7B,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,iBAAiB;IASnB,IAAI;IAOJ,IAAI;IAaV,OAAO,CAAC,WAAW;IAIV,MAAM;CAiChB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/screens/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|