revotech-ui-kit 0.0.16 → 0.0.18
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/dist/revotech-ui-kit.js +1808 -1238
- package/dist/revotech-ui-kit.umd.cjs +412 -126
- package/dist/src/assets/icons/close.icon.d.ts +1 -0
- package/dist/src/assets/icons/dot.icon.d.ts +1 -0
- package/dist/src/assets/icons/index.d.ts +2 -0
- package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +6 -0
- package/dist/src/components/atoms/avatar/avatar-image.d.ts +8 -0
- package/dist/src/components/atoms/avatar/avatar.atom.d.ts +6 -0
- package/dist/src/components/atoms/avatar/avatar.stories.d.ts +5 -0
- package/dist/src/components/atoms/avatar/avatar.style.d.ts +3 -0
- package/dist/src/components/atoms/collapsible/collapsible-content.d.ts +12 -0
- package/dist/src/components/atoms/collapsible/collapsible-trigger.d.ts +15 -0
- package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +17 -0
- package/dist/src/components/atoms/collapsible/collapsible.stories.d.ts +6 -0
- package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +12 -0
- package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +13 -0
- package/dist/src/components/atoms/hoverCard/hover-card.stories.d.ts +5 -0
- package/dist/src/components/atoms/index.d.ts +1 -0
- package/dist/src/components/atoms/toast/toast-action.d.ts +15 -0
- package/dist/src/components/atoms/toast/toast-description.d.ts +6 -0
- package/dist/src/components/atoms/toast/toast-title.d.ts +6 -0
- package/dist/src/components/atoms/toast/toast-view-port.d.ts +13 -0
- package/dist/src/components/atoms/toast/toast.atom.d.ts +11 -0
- package/dist/src/components/atoms/toast/toast.stories.d.ts +6 -0
- package/dist/src/components/atoms/toast/toast.style.d.ts +9 -0
- package/dist/src/components/atoms/toast/toast.type.d.ts +1 -0
- package/dist/src/components/molecules/index.d.ts +4 -0
- package/dist/src/components/molecules/input-otp/input-otp-group.d.ts +13 -0
- package/dist/src/components/molecules/input-otp/input-otp-separator.d.ts +13 -0
- package/dist/src/components/molecules/input-otp/input-otp-slot.d.ts +13 -0
- package/dist/src/components/molecules/input-otp/input-otp.molecule.d.ts +33 -0
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export declare function closeIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function dotIcon(): import('lit-html').TemplateResult<2>;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export declare const avatarStyles = "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full";
|
2
|
+
export declare const avatarImageStyles = "aspect-square h-full w-full";
|
3
|
+
export declare const avatarFallbackStyles = "flex h-full w-full items-center justify-center rounded-full bg-muted";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
|
3
|
+
export declare class CollapsibleContent extends BaseElement {
|
4
|
+
static styles: import('lit').CSSResult[];
|
5
|
+
protected getAttributesToExclude(): string[];
|
6
|
+
render(): import('lit-html').TemplateResult<1>;
|
7
|
+
}
|
8
|
+
declare global {
|
9
|
+
interface HTMLElementTagNameMap {
|
10
|
+
'rtg-collapsible-content': CollapsibleContent;
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
import { Collapsible } from './collapsible.atom';
|
3
|
+
|
4
|
+
export declare class CollapsibleTrigger extends BaseElement {
|
5
|
+
static styles: import('lit').CSSResult[];
|
6
|
+
protected getAttributesToExclude(): string[];
|
7
|
+
get _collapsible(): Collapsible | null;
|
8
|
+
onTrigger(): void;
|
9
|
+
render(): import('lit-html').TemplateResult<1>;
|
10
|
+
}
|
11
|
+
declare global {
|
12
|
+
interface HTMLElementTagNameMap {
|
13
|
+
'rtg-collapsible-trigger': CollapsibleTrigger;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
import { CollapsibleTrigger } from './collapsible-trigger';
|
3
|
+
import { CollapsibleContent } from './collapsible-content';
|
4
|
+
|
5
|
+
declare class Collapsible extends BaseElement {
|
6
|
+
static styles: import('lit').CSSResult[];
|
7
|
+
open: boolean;
|
8
|
+
onOpenChange: () => void;
|
9
|
+
protected getAttributesToExclude(): string[];
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
11
|
+
}
|
12
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
13
|
+
declare global {
|
14
|
+
interface HTMLElementTagNameMap {
|
15
|
+
'rtg-collapsible': Collapsible;
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
|
3
|
+
export declare class HoverContent extends LitElement {
|
4
|
+
static styles: import('lit').CSSResult[];
|
5
|
+
state: string;
|
6
|
+
isOpen: boolean;
|
7
|
+
connectedCallback(): void;
|
8
|
+
disconnectedCallback(): void;
|
9
|
+
updated(changedProps: PropertyValues): void;
|
10
|
+
handleHoverEnter(event: MouseEvent): void;
|
11
|
+
render(): import('lit-html').TemplateResult<1>;
|
12
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
|
3
|
+
export declare class HoverCard extends LitElement {
|
4
|
+
static styles: import('lit').CSSResult[];
|
5
|
+
isOpen: boolean;
|
6
|
+
handleMouseEnter(): void;
|
7
|
+
handleMouseLeave(): void;
|
8
|
+
private get _content();
|
9
|
+
protected updated(_changedProperties: PropertyValues): void;
|
10
|
+
connectedCallback(): void;
|
11
|
+
disconnectedCallback(): void;
|
12
|
+
render(): import('lit-html').TemplateResult<1>;
|
13
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
|
3
|
+
import * as toastType from './toast.type';
|
4
|
+
export declare class ToastAction extends LitElement {
|
5
|
+
static toastVariants: (props?: ({
|
6
|
+
variant?: "default" | "destructive" | null | undefined;
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
8
|
+
static styles: import('lit').CSSResult[];
|
9
|
+
variant: toastType.ToastVariant;
|
10
|
+
getAttributesToExclude(): string[];
|
11
|
+
protected getFilteredAttributes(): {
|
12
|
+
[key: string]: string;
|
13
|
+
};
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
15
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LitElement } from 'lit';
|
2
|
+
|
3
|
+
import * as toastType from './toast.type';
|
4
|
+
export declare class ToastViewPort extends LitElement {
|
5
|
+
static toastVariants: (props?: ({
|
6
|
+
variant?: "default" | "destructive" | null | undefined;
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
8
|
+
static styles: import('lit').CSSResult[];
|
9
|
+
variant: toastType.ToastVariant;
|
10
|
+
state: string;
|
11
|
+
private handleCloseButtonClick;
|
12
|
+
render(): import('lit-html').TemplateResult<1>;
|
13
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
2
|
+
|
3
|
+
export declare class Toast extends LitElement {
|
4
|
+
static styles: import('lit').CSSResult[];
|
5
|
+
isOpen: boolean;
|
6
|
+
onClick(): void;
|
7
|
+
connectedCallback(): void;
|
8
|
+
private get _content();
|
9
|
+
protected updated(_changedProperties: PropertyValues): void;
|
10
|
+
render(): import('lit-html').TemplateResult<1>;
|
11
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const toastStyle: (props?: ({
|
2
|
+
variant?: "default" | "destructive" | null | undefined;
|
3
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
4
|
+
export declare const toastActionStyle: (props?: ({
|
5
|
+
variant?: "default" | "destructive" | null | undefined;
|
6
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
7
|
+
export declare const toastActionStyles = "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive";
|
8
|
+
export declare const toastViewStyles = "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]";
|
9
|
+
export declare const toastButtonStyles = "absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600";
|
@@ -0,0 +1 @@
|
|
1
|
+
export type ToastVariant = 'default' | 'destructive';
|
@@ -5,3 +5,7 @@ export * from './breadcrumb/breadcrumb-separator';
|
|
5
5
|
export * from './breadcrumb/breadcrumb.molecules';
|
6
6
|
export * from './breadcrumb/breadcrumb-text';
|
7
7
|
export * from './breadcrumb/breadcrumb-link';
|
8
|
+
export * from './input-otp/input-otp.molecule';
|
9
|
+
export * from './input-otp/input-otp-group';
|
10
|
+
export * from './input-otp/input-otp-separator';
|
11
|
+
export * from './input-otp/input-otp-slot';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
|
3
|
+
export declare class InputOtpGroup extends BaseElement {
|
4
|
+
click: () => void;
|
5
|
+
static styles: import('lit').CSSResult[];
|
6
|
+
protected getAttributesToExclude(): string[];
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
8
|
+
}
|
9
|
+
declare global {
|
10
|
+
interface HTMLElementTagNameMap {
|
11
|
+
'input-otp-group': InputOtpGroup;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
|
3
|
+
export declare class InputOtpSeparator extends BaseElement {
|
4
|
+
index: number;
|
5
|
+
static styles: import('lit').CSSResult[];
|
6
|
+
protected getAttributesToExclude(): string[];
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
8
|
+
}
|
9
|
+
declare global {
|
10
|
+
interface HTMLElementTagNameMap {
|
11
|
+
'input-otp-separator': InputOtpSeparator;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
2
|
+
|
3
|
+
export declare class InputOtpSlot extends BaseElement {
|
4
|
+
click: () => void;
|
5
|
+
static styles: import('lit').CSSResult[];
|
6
|
+
protected getAttributesToExclude(): string[];
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
8
|
+
}
|
9
|
+
declare global {
|
10
|
+
interface HTMLElementTagNameMap {
|
11
|
+
'input-otp-slot': InputOtpSlot;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { PropertyValueMap } from 'lit';
|
2
|
+
import { BaseElement } from '../../../helpers';
|
3
|
+
import { Ref } from 'lit/directives/ref.js';
|
4
|
+
|
5
|
+
export declare class InputOtp extends BaseElement {
|
6
|
+
click: () => void;
|
7
|
+
static styles: import('lit').CSSResult[];
|
8
|
+
protected getAttributesToExclude(): string[];
|
9
|
+
clientName: string;
|
10
|
+
username: string;
|
11
|
+
pinLength: number;
|
12
|
+
onChange: (otp: string, username: string) => void;
|
13
|
+
static PIN_MIN_VALUE: string;
|
14
|
+
static PIN_MAX_VALUE: string;
|
15
|
+
static BACKSPACE_KEY: string;
|
16
|
+
pin: any[];
|
17
|
+
inputElement: Ref<HTMLInputElement>[];
|
18
|
+
protected firstUpdated(): void;
|
19
|
+
protected updated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
20
|
+
connectedCallback(): void;
|
21
|
+
handleChangePinFocus(index: number): void;
|
22
|
+
setNewPin(value: any, index: number): void;
|
23
|
+
findDifferentChars(str1: string, str2: string): string;
|
24
|
+
handleInputChange(event: any, index: number): void;
|
25
|
+
handleKeyDown(event: any, index: number): void;
|
26
|
+
handleShowValue(index: number): any;
|
27
|
+
render(): import('lit-html').TemplateResult<1>;
|
28
|
+
}
|
29
|
+
declare global {
|
30
|
+
interface HTMLElementTagNameMap {
|
31
|
+
'rtg-input-otp': InputOtp;
|
32
|
+
}
|
33
|
+
}
|
package/package.json
CHANGED