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.
Files changed (32) hide show
  1. package/dist/revotech-ui-kit.js +1808 -1238
  2. package/dist/revotech-ui-kit.umd.cjs +412 -126
  3. package/dist/src/assets/icons/close.icon.d.ts +1 -0
  4. package/dist/src/assets/icons/dot.icon.d.ts +1 -0
  5. package/dist/src/assets/icons/index.d.ts +2 -0
  6. package/dist/src/components/atoms/avatar/avatar-fallback.d.ts +6 -0
  7. package/dist/src/components/atoms/avatar/avatar-image.d.ts +8 -0
  8. package/dist/src/components/atoms/avatar/avatar.atom.d.ts +6 -0
  9. package/dist/src/components/atoms/avatar/avatar.stories.d.ts +5 -0
  10. package/dist/src/components/atoms/avatar/avatar.style.d.ts +3 -0
  11. package/dist/src/components/atoms/collapsible/collapsible-content.d.ts +12 -0
  12. package/dist/src/components/atoms/collapsible/collapsible-trigger.d.ts +15 -0
  13. package/dist/src/components/atoms/collapsible/collapsible.atom.d.ts +17 -0
  14. package/dist/src/components/atoms/collapsible/collapsible.stories.d.ts +6 -0
  15. package/dist/src/components/atoms/hoverCard/hover-card-content.d.ts +12 -0
  16. package/dist/src/components/atoms/hoverCard/hover-card.atom.d.ts +13 -0
  17. package/dist/src/components/atoms/hoverCard/hover-card.stories.d.ts +5 -0
  18. package/dist/src/components/atoms/index.d.ts +1 -0
  19. package/dist/src/components/atoms/toast/toast-action.d.ts +15 -0
  20. package/dist/src/components/atoms/toast/toast-description.d.ts +6 -0
  21. package/dist/src/components/atoms/toast/toast-title.d.ts +6 -0
  22. package/dist/src/components/atoms/toast/toast-view-port.d.ts +13 -0
  23. package/dist/src/components/atoms/toast/toast.atom.d.ts +11 -0
  24. package/dist/src/components/atoms/toast/toast.stories.d.ts +6 -0
  25. package/dist/src/components/atoms/toast/toast.style.d.ts +9 -0
  26. package/dist/src/components/atoms/toast/toast.type.d.ts +1 -0
  27. package/dist/src/components/molecules/index.d.ts +4 -0
  28. package/dist/src/components/molecules/input-otp/input-otp-group.d.ts +13 -0
  29. package/dist/src/components/molecules/input-otp/input-otp-separator.d.ts +13 -0
  30. package/dist/src/components/molecules/input-otp/input-otp-slot.d.ts +13 -0
  31. package/dist/src/components/molecules/input-otp/input-otp.molecule.d.ts +33 -0
  32. 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>;
@@ -9,3 +9,5 @@ export * from './circle-x.icon';
9
9
  export * from './radio.icon';
10
10
  export * from './chorven-down.icon';
11
11
  export * from './radio-group.icon';
12
+ export * from './close.icon';
13
+ export * from './dot.icon';
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class AvatarFallback extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class AvatarImage extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ alt: string;
6
+ src: string;
7
+ render(): import('lit-html').TemplateResult<1>;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class Avatar extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Avatar: StoryFn;
@@ -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,6 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj;
6
+ export declare const DefaultCollapsible: Story;
@@ -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,5 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const HoverCard: StoryFn;
@@ -24,3 +24,4 @@ export * from './radio-group/radio-group.atom';
24
24
  export * from './accordion/accordion.atoms';
25
25
  export * from './seperator/separator.atom';
26
26
  export * from './sample-demo/sample-demo';
27
+ export * from './collapsible/collapsible.atom';
@@ -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,6 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class ToastDescription extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ export declare class ToastTitle extends LitElement {
4
+ static styles: import('lit').CSSResult[];
5
+ render(): import('lit-html').TemplateResult<1>;
6
+ }
@@ -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,6 @@
1
+ import { Meta, StoryFn } from '@storybook/web-components';
2
+
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const ToastWithAction: StoryFn;
6
+ export declare const ToastWithoutAction: StoryFn;
@@ -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
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent wc-ui following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "wc-ui",
6
- "version": "0.0.16",
6
+ "version": "0.0.18",
7
7
  "type": "module",
8
8
  "main": "dist/revotech-ui-kit.umd.cjs",
9
9
  "module": "./dist/revotech-ui-kit.js",