@revotech-group/revotech-ui-kit 0.1.43 → 0.2.0
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/library.css +4298 -1171
- package/dist/rtg-ui-kit.js +7682 -5984
- package/dist/rtg-ui-kit.umd.cjs +1098 -1077
- package/dist/src/components/ui/accordion/accordion-content.d.ts +1 -1
- package/dist/src/components/ui/accordion/accordion-trigger.d.ts +1 -1
- package/dist/src/components/ui/accordion/accordion.d.ts +4 -4
- package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
- package/dist/src/components/ui/alert/alert.d.ts +5 -5
- package/dist/src/components/ui/alert/alert.stories.d.ts +1 -1
- package/dist/src/components/ui/alert/alert.styles.d.ts +9 -3
- package/dist/src/components/ui/alert/alert.types.d.ts +1 -1
- package/dist/src/components/ui/alert/helpers.d.ts +10 -0
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +5 -2
- package/dist/src/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +4 -1
- package/dist/src/components/ui/avatar/avatar-fallback.d.ts +1 -1
- package/dist/src/components/ui/avatar/avatar-image.d.ts +1 -1
- package/dist/src/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/src/components/ui/avatar/avatar.style.d.ts +4 -3
- package/dist/src/components/ui/badge/badge.d.ts +1 -1
- package/dist/src/components/ui/badge/badge.stories.d.ts +1 -0
- package/dist/src/components/ui/badge/badge.style.d.ts +1 -1
- package/dist/src/components/ui/badge/badge.type.d.ts +1 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +1 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +1 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +1 -1
- package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +2 -2
- package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -6
- package/dist/src/components/ui/button/button.d.ts +2 -2
- package/dist/src/components/ui/button/button.style.d.ts +2 -2
- package/dist/src/components/ui/button/button.type.d.ts +1 -1
- package/dist/src/components/ui/calendar/calendar.d.ts +9 -13
- package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
- package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -4
- package/dist/src/components/ui/card/card.d.ts +6 -6
- package/dist/src/components/ui/card/card.styles.d.ts +4 -1
- package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
- package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +3 -1
- package/dist/src/components/ui/checkbox/checkbox.style.d.ts +4 -2
- package/dist/src/components/ui/combobox/combo-box.styles.d.ts +14 -5
- package/dist/src/components/ui/command/command-empty.atom.d.ts +1 -1
- package/dist/src/components/ui/command/command-group.atom.d.ts +1 -1
- package/dist/src/components/ui/command/command-item.atom.d.ts +2 -1
- package/dist/src/components/ui/command/command-list.atom.d.ts +1 -1
- package/dist/src/components/ui/command/command.d.ts +4 -3
- package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
- package/dist/src/components/ui/command/command.styles.d.ts +15 -7
- package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +1 -1
- package/dist/src/components/ui/context-menu/context-menu-content.d.ts +1 -1
- package/dist/src/components/ui/context-menu/context-menu-item.d.ts +2 -1
- package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +1 -1
- package/dist/src/components/ui/context-menu/context-menu.d.ts +3 -3
- package/dist/src/components/ui/context-menu/context-menu.helpers.d.ts +1 -0
- package/dist/src/components/ui/context-menu/context-menu.styles.d.ts +20 -7
- package/dist/src/components/ui/date-picker/date-picker.styles.d.ts +6 -0
- package/dist/src/components/ui/dialog/dialog-close.d.ts +1 -1
- package/dist/src/components/ui/dialog/dialog-content.d.ts +1 -0
- package/dist/src/components/ui/dialog/dialog-trigger.d.ts +1 -1
- package/dist/src/components/ui/dialog/dialog.d.ts +3 -3
- package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -4
- package/dist/src/components/ui/drawer/drawer-close.d.ts +1 -1
- package/dist/src/components/ui/drawer/drawer-content.d.ts +2 -1
- package/dist/src/components/ui/drawer/drawer-description.d.ts +1 -2
- package/dist/src/components/ui/drawer/drawer-header.d.ts +5 -4
- package/dist/src/components/ui/drawer/drawer-title.d.ts +1 -2
- package/dist/src/components/ui/drawer/drawer-trigger.d.ts +1 -1
- package/dist/src/components/ui/drawer/drawer.d.ts +7 -6
- package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
- package/dist/src/components/ui/drawer/drawer.styles.d.ts +14 -5
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +2 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +1 -1
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +6 -4
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +3 -0
- package/dist/src/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +20 -7
- package/dist/src/components/ui/form/form.styles.d.ts +7 -6
- package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +2 -2
- package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +1 -1
- package/dist/src/components/ui/hoverCard/hover-card.d.ts +2 -2
- package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -1
- package/dist/src/components/ui/input/input.styles.d.ts +7 -1
- package/dist/src/components/ui/input-otp/input-otp-group.d.ts +2 -0
- package/dist/src/components/ui/input-otp/input-otp-slot.d.ts +1 -1
- package/dist/src/components/ui/input-otp/input-otp.d.ts +2 -4
- package/dist/src/components/ui/input-otp/input-otp.styles.d.ts +10 -0
- package/dist/src/components/ui/label/label.d.ts +0 -4
- package/dist/src/components/ui/label/label.style.d.ts +1 -1
- package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +1 -2
- package/dist/src/components/ui/menubar/menubar-content.d.ts +1 -1
- package/dist/src/components/ui/menubar/menubar-group.d.ts +1 -1
- package/dist/src/components/ui/menubar/menubar-item.d.ts +2 -1
- package/dist/src/components/ui/menubar/menubar-menu.d.ts +4 -1
- package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +1 -2
- package/dist/src/components/ui/menubar/menubar-separator.d.ts +1 -1
- package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +1 -1
- package/dist/src/components/ui/menubar/menubar-trigger.d.ts +2 -2
- package/dist/src/components/ui/menubar/menubar.d.ts +4 -4
- package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
- package/dist/src/components/ui/menubar/menubar.styles.d.ts +21 -8
- package/dist/src/components/ui/navigation-menu/navigation-menu.styles.d.ts +9 -3
- package/dist/src/components/ui/pagination/pagination-content.d.ts +1 -1
- package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +2 -2
- package/dist/src/components/ui/pagination/pagination-item.d.ts +1 -1
- package/dist/src/components/ui/pagination/pagination-link.d.ts +3 -8
- package/dist/src/components/ui/pagination/pagination-next.d.ts +2 -1
- package/dist/src/components/ui/pagination/pagination-previous.d.ts +2 -1
- package/dist/src/components/ui/pagination/pagination.d.ts +3 -3
- package/dist/src/components/ui/pagination/pagination.styles.d.ts +22 -9
- package/dist/src/components/ui/popover/popover-content.d.ts +2 -2
- package/dist/src/components/ui/popover/popover-trigger.d.ts +1 -1
- package/dist/src/components/ui/popover/popover.d.ts +1 -1
- package/dist/src/components/ui/popover/popover.style.d.ts +5 -10
- package/dist/src/components/ui/progress/progress.d.ts +0 -1
- package/dist/src/components/ui/progress/progress.styles.d.ts +4 -1
- package/dist/src/components/ui/radio-group/radio-group-item.d.ts +3 -1
- package/dist/src/components/ui/radio-group/radio-group.d.ts +3 -2
- package/dist/src/components/ui/radio-group/radio-group.styles.d.ts +9 -2
- package/dist/src/components/ui/sample-demo/sample-demo.d.ts +2 -2
- package/dist/src/components/ui/sample-demo/sample.style.d.ts +2 -2
- package/dist/src/components/ui/scroll-area/scroll-area.style.d.ts +1 -1
- package/dist/src/components/ui/select/select-controller.d.ts +2 -1
- package/dist/src/components/ui/select/select-group.d.ts +3 -0
- package/dist/src/components/ui/select/select-item.d.ts +2 -1
- package/dist/src/components/ui/select/select-label.d.ts +2 -2
- package/dist/src/components/ui/select/select-list.d.ts +1 -1
- package/dist/src/components/ui/select/select-trigger.d.ts +5 -2
- package/dist/src/components/ui/select/select-value.d.ts +1 -1
- package/dist/src/components/ui/select/select.d.ts +5 -5
- package/dist/src/components/ui/select/select.styles.d.ts +20 -7
- package/dist/src/components/ui/separator/separator.d.ts +2 -0
- package/dist/src/components/ui/separator/separator.styles.d.ts +5 -0
- package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -1
- package/dist/src/components/ui/switch/switch.d.ts +2 -2
- package/dist/src/components/ui/switch/switch.style.d.ts +4 -1
- package/dist/src/components/ui/table/table.styles.d.ts +39 -0
- package/dist/src/components/ui/tabs/tabs.style.d.ts +12 -4
- package/dist/src/components/ui/textarea/textarea.styles.d.ts +1 -1
- package/dist/src/components/ui/toast/toast-action.d.ts +7 -3
- package/dist/src/components/ui/toast/toast-view-port.d.ts +7 -4
- package/dist/src/components/ui/toast/toast.style.d.ts +19 -11
- package/dist/src/components/ui/toggle/toggle.d.ts +1 -0
- package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +14 -3
- package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +1 -1
- package/dist/src/helpers/base-element.d.ts +1 -0
- package/dist/src/tokens/tailwind/animation.d.ts +7 -0
- package/dist/src/tokens/tailwind/basis.d.ts +5 -0
- package/dist/src/tokens/tailwind/border-radius.d.ts +61 -0
- package/dist/src/tokens/tailwind/border-width.d.ts +32 -0
- package/dist/src/tokens/tailwind/box-shadow.d.ts +23 -0
- package/dist/src/tokens/tailwind/color.d.ts +339 -0
- package/dist/src/tokens/tailwind/font-size.d.ts +134 -0
- package/dist/src/tokens/tailwind/font-weight.d.ts +36 -0
- package/dist/src/tokens/tailwind/grid-template-columns.d.ts +4 -0
- package/dist/src/tokens/tailwind/index.d.ts +1113 -0
- package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
- package/dist/src/tokens/tailwind/opacity.d.ts +39 -0
- package/dist/src/tokens/tailwind/ring-offset-width.d.ts +8 -0
- package/dist/src/tokens/tailwind/ring-width.d.ts +24 -0
- package/dist/src/tokens/tailwind/spacing.d.ts +344 -0
- package/dist/src/tokens/tailwind/transition-duration.d.ts +5 -0
- package/dist/src/tokens/tailwind/transition-timing-function.d.ts +4 -0
- package/dist/src/tokens/tailwind/translate.d.ts +5 -0
- package/package.json +1 -1
- package/dist/src/components/ui/calendar/calendar.type.d.ts +0 -2
- package/dist/src/components/ui/context-menu/contextMenu.style.d.ts +0 -2
- package/dist/src/components/ui/dropdown-menu/dropdownMenu.style.d.ts +0 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
3
|
-
import {
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { AccordionContent } from './accordion-content';
|
|
4
4
|
import { AccordionItem } from './accordion-item';
|
|
5
5
|
import { AccordionTrigger } from './accordion-trigger';
|
|
6
|
-
import {
|
|
6
|
+
import { ACCORDION_GROUP_TYPE } from './accordion.defs';
|
|
7
7
|
|
|
8
8
|
declare class Accordion extends BaseElement {
|
|
9
9
|
type: ACCORDION_GROUP_TYPE;
|
|
@@ -18,7 +18,7 @@ declare class Accordion extends BaseElement {
|
|
|
18
18
|
raiseEvent(value: string): void;
|
|
19
19
|
render(): import('lit').TemplateResult<1>;
|
|
20
20
|
}
|
|
21
|
-
export { Accordion, AccordionItem, AccordionTrigger
|
|
21
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
22
22
|
declare global {
|
|
23
23
|
interface HTMLElementTagNameMap {
|
|
24
24
|
'rtg-accordion': Accordion;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
|
+
import { TAlertVariant } from './alert.types';
|
|
3
4
|
|
|
4
5
|
declare class Alert extends BaseElement {
|
|
5
6
|
protected createRenderRoot(): this;
|
|
6
7
|
private get _containerElement();
|
|
7
8
|
title: string;
|
|
8
9
|
message: string;
|
|
10
|
+
icon: string;
|
|
9
11
|
static alertVariants: (props?: ({
|
|
10
|
-
variant?: "
|
|
11
|
-
size?: "small" | "default" | "large" | null | undefined;
|
|
12
|
+
variant?: "default" | "destructive" | "brand" | "success" | "warning" | "info" | "brand-tonal" | "destructive-tonal" | "success-tonal" | "warning-tonal" | "info-tonal" | null | undefined;
|
|
12
13
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
13
|
-
variant:
|
|
14
|
-
size: 'default' | 'large' | 'small';
|
|
14
|
+
variant: TAlertVariant;
|
|
15
15
|
private get alertClasses();
|
|
16
16
|
protected getAttributesToRemoveFromParent(): string[];
|
|
17
17
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
variant?: "
|
|
3
|
-
size?: "small" | "default" | "large" | null | undefined;
|
|
1
|
+
declare const alert: (props?: ({
|
|
2
|
+
variant?: "default" | "destructive" | "brand" | "success" | "warning" | "info" | "brand-tonal" | "destructive-tonal" | "success-tonal" | "warning-tonal" | "info-tonal" | null | undefined;
|
|
4
3
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
4
|
+
type TAlertStyles = {
|
|
5
|
+
alert: typeof alert;
|
|
6
|
+
alertTitle: string[];
|
|
7
|
+
alertDescription: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare const alertStyles: TAlertStyles;
|
|
10
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TAlertVariant = 'default' | 'brand' | 'destructive' | 'warning' | 'success' | 'info' | 'brand-tonal' | 'destructive-tonal' | 'warning-tonal' | 'success-tonal' | 'info-tonal';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TAlertVariant } from './alert.types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Helper function used in the alert stories to obtain an SVG icon for the alert
|
|
5
|
+
* based on the variant attribute of the alert.
|
|
6
|
+
*
|
|
7
|
+
* @param variant rtg-alert component's variant attribute
|
|
8
|
+
* @returns an SVG icon as a HTML Lit template literal
|
|
9
|
+
*/
|
|
10
|
+
export declare const alertIcon: (variant: TAlertVariant) => import('lit').TemplateResult<1>;
|
|
@@ -2,9 +2,12 @@ import { LitElement } from 'lit';
|
|
|
2
2
|
|
|
3
3
|
export declare class AspectRatio extends LitElement {
|
|
4
4
|
ratio: number;
|
|
5
|
-
private
|
|
6
|
-
|
|
5
|
+
private _userClass;
|
|
6
|
+
private _userStyle;
|
|
7
|
+
protected createRenderRoot(): this;
|
|
7
8
|
connectedCallback(): void;
|
|
9
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
10
|
+
protected firstUpdated(): void;
|
|
8
11
|
render(): import('lit').TemplateResult<1>;
|
|
9
12
|
}
|
|
10
13
|
declare global {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
1
|
+
type TAvatarParts = 'avatar' | 'avatarImage' | 'avatarFallback';
|
|
2
|
+
type TAvatarStyles = Record<TAvatarParts, string | string[]>;
|
|
3
|
+
export declare const avatarStyles: TAvatarStyles;
|
|
4
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { BaseElement } from '../../../helpers';
|
|
|
3
3
|
import * as badgeType from './badge.type';
|
|
4
4
|
export declare class Badge extends BaseElement {
|
|
5
5
|
static badgeVariants: (props?: ({
|
|
6
|
-
variant?: "
|
|
6
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
8
|
variant: badgeType.BadgeVariant;
|
|
9
9
|
id: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const badgeStyle: (props?: ({
|
|
2
|
-
variant?: "
|
|
2
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
3
3
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type BadgeVariant = 'default' | '
|
|
1
|
+
export type BadgeVariant = 'default' | 'secondary' | 'destructive' | 'outline';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
3
|
import { BreadCrumbEllipsis } from './breadcrumb-ellipsis';
|
|
4
4
|
import { BreadCrumbItem } from './breadcrumb-item';
|
|
5
5
|
import { BreadCrumbLink } from './breadcrumb-link';
|
|
@@ -19,4 +19,4 @@ declare global {
|
|
|
19
19
|
'rtg-bread-crumb': BreadCrumb;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
export { BreadCrumbEllipsis, BreadCrumbItem,
|
|
22
|
+
export { BreadCrumb, BreadCrumbEllipsis, BreadCrumbItem, BreadCrumbLink, BreadCrumbList, BreadCrumbSeparator, BreadCrumbText, };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export
|
|
5
|
-
export declare const breadcrumbEllipsisStyles = "rtg-flex rtg-h-9 rtg-w-9 rtg-items-center rtg-justify-center";
|
|
6
|
-
export declare const breadcrumbListStyles = "rtg-flex rtg-flex-wrap rtg-items-center rtg-gap-1.5 rtg-break-words rtg-text-sm rtg-text-muted-foreground sm:rtg-gap-2.5";
|
|
1
|
+
type TBreadcrumbPart = 'list' | 'item' | 'link' | 'page' | 'separator' | 'ellipsis';
|
|
2
|
+
type TBreadcrumbStyles = Record<TBreadcrumbPart, string | string[]>;
|
|
3
|
+
export declare const breadcrumbStyles: TBreadcrumbStyles;
|
|
4
|
+
export {};
|
|
@@ -4,8 +4,8 @@ import { BaseElement } from '../../../helpers';
|
|
|
4
4
|
import * as buttonType from './button.type';
|
|
5
5
|
export declare class Button extends BaseElement {
|
|
6
6
|
static buttonVariants: (props?: ({
|
|
7
|
-
variant?: "link" | "default" | "
|
|
8
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
7
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
8
|
+
size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
9
9
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
10
10
|
click: () => void;
|
|
11
11
|
disabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const buttonStyle: (props?: ({
|
|
2
|
-
variant?: "link" | "default" | "
|
|
3
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
2
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
3
|
+
size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
2
|
-
export type ButtonSize = 'default' | 'sm' | 'lg' | 'icon';
|
|
2
|
+
export type ButtonSize = 'default' | 'sm' | 'lg' | 'icon' | 'icon-sm' | 'icon-lg';
|
|
3
3
|
export type ButtonType = 'button' | 'submit' | 'reset' | 'menu';
|
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import { TCalendarMode } from './calendar.helpers';
|
|
2
3
|
|
|
3
|
-
import * as buttonType from './calendar.type';
|
|
4
4
|
export declare class Calendar extends LitElement {
|
|
5
|
-
static styles: import('lit').CSSResult[];
|
|
6
|
-
static buttonVariants: (props?: ({
|
|
7
|
-
variant?: "outline" | null | undefined;
|
|
8
|
-
size?: "default" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
10
5
|
currentDate: Date;
|
|
11
6
|
selectedStartDate: Date | null;
|
|
12
7
|
selectedEndDate: Date | null;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
mode: 'range' | 'single';
|
|
8
|
+
mode: TCalendarMode;
|
|
9
|
+
private _userClass;
|
|
10
|
+
private _userStyle;
|
|
17
11
|
getDaysInMonth(year: number, month: number): number;
|
|
18
12
|
previousMonth(): void;
|
|
19
13
|
nextMonth(): void;
|
|
20
|
-
selectDate(day: number,
|
|
21
|
-
isDayInRange(day: Date): boolean;
|
|
14
|
+
selectDate(day: number, isOutside: boolean): void;
|
|
15
|
+
isDayInRange(day: Date, exclusive?: boolean): boolean;
|
|
22
16
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
23
19
|
render(): import('lit').TemplateResult<1>;
|
|
24
20
|
}
|
|
25
21
|
declare global {
|
|
@@ -1,4 +1,40 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const calendarStyles: {
|
|
2
|
+
host: string[];
|
|
3
|
+
root: string[];
|
|
4
|
+
months: string[];
|
|
5
|
+
nav: string[];
|
|
6
|
+
month: string[];
|
|
7
|
+
buttonPrevious: string[];
|
|
8
|
+
buttonNext: string[];
|
|
9
|
+
chevron: string[];
|
|
10
|
+
monthCaption: string[];
|
|
11
|
+
captionLabel: string[];
|
|
12
|
+
monthGrid: string[];
|
|
13
|
+
weekdays: string[];
|
|
14
|
+
weekday: string[];
|
|
15
|
+
weeks: string[];
|
|
16
|
+
week: string[];
|
|
17
|
+
day: {
|
|
18
|
+
base: string[];
|
|
19
|
+
today: string[];
|
|
20
|
+
selected: {
|
|
21
|
+
common: string[];
|
|
22
|
+
single: string[];
|
|
23
|
+
range: {
|
|
24
|
+
start: string[];
|
|
25
|
+
middle: string[];
|
|
26
|
+
end: string[];
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
index: {
|
|
30
|
+
first: string[];
|
|
31
|
+
last: string[];
|
|
32
|
+
};
|
|
33
|
+
hidden: string[];
|
|
34
|
+
};
|
|
35
|
+
dayButton: {
|
|
36
|
+
base: string[];
|
|
37
|
+
outside: string[];
|
|
38
|
+
today: string[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { BaseElement } from '../../../helpers';
|
|
1
2
|
import { PropertyValues } from 'lit';
|
|
2
|
-
import { CardTitle } from './card-title';
|
|
3
|
-
import { CardHeader } from './card-header';
|
|
4
|
-
import { CardFooter } from './card-footer';
|
|
5
|
-
import { CardDescription } from './card-description';
|
|
6
3
|
import { CardContent } from './card-content';
|
|
7
|
-
import {
|
|
4
|
+
import { CardDescription } from './card-description';
|
|
5
|
+
import { CardFooter } from './card-footer';
|
|
6
|
+
import { CardHeader } from './card-header';
|
|
7
|
+
import { CardTitle } from './card-title';
|
|
8
8
|
|
|
9
9
|
declare class Card extends BaseElement {
|
|
10
10
|
wrapperDivElement: HTMLDivElement;
|
|
@@ -14,7 +14,7 @@ declare class Card extends BaseElement {
|
|
|
14
14
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
15
15
|
render(): import('lit').TemplateResult<1>;
|
|
16
16
|
}
|
|
17
|
-
export { Card,
|
|
17
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, };
|
|
18
18
|
declare global {
|
|
19
19
|
interface HTMLElementTagNameMap {
|
|
20
20
|
'rtg-card': Card;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type TCardParts = 'card' | 'cardHeader' | 'cardTitle' | 'cardDescription' | 'cardContent' | 'cardFooter';
|
|
2
|
+
type TCardStyles = Record<TCardParts, string | string[]>;
|
|
3
|
+
export declare const cardStyles: TCardStyles;
|
|
4
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const carouselStyles: {
|
|
2
|
+
root: string[];
|
|
3
|
+
viewport: string[];
|
|
4
|
+
slidesWrapper: {
|
|
5
|
+
base: string[];
|
|
6
|
+
orientation: {
|
|
7
|
+
horizontal: string[];
|
|
8
|
+
vertical: string[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
slide: {
|
|
12
|
+
base: string[];
|
|
13
|
+
size: {
|
|
14
|
+
true: string[];
|
|
15
|
+
false: string[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
controls: {
|
|
19
|
+
base: string[];
|
|
20
|
+
orientation: {
|
|
21
|
+
horizontal: string[];
|
|
22
|
+
vertical: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
controlButton: {
|
|
26
|
+
base: string[];
|
|
27
|
+
orientation: {
|
|
28
|
+
verticalPrev: string[];
|
|
29
|
+
verticalNext: string[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/web-components-vite';
|
|
1
|
+
import { Meta, StoryFn, StoryObj } from '@storybook/web-components-vite';
|
|
2
2
|
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const CheckboxWithRequired: StoryFn;
|
|
6
6
|
export declare const Checkbox: StoryFn;
|
|
7
7
|
export declare const CheckboxWithValue: StoryFn;
|
|
8
|
+
type Story = StoryObj;
|
|
9
|
+
export declare const Checkboxes: Story;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type TCheckboxPart = 'root' | 'indicator' | 'icon';
|
|
2
|
+
type TCheckboxStyles = Record<TCheckboxPart, string | string[]>;
|
|
3
|
+
export declare const checkboxStyles: TCheckboxStyles;
|
|
4
|
+
export {};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const comboBoxStyles: {
|
|
2
|
+
empty: string[];
|
|
3
|
+
group: {
|
|
4
|
+
base: string[];
|
|
5
|
+
};
|
|
6
|
+
input: string[];
|
|
7
|
+
trigger: {
|
|
8
|
+
base: string[];
|
|
9
|
+
};
|
|
10
|
+
value: string[];
|
|
11
|
+
item: {
|
|
12
|
+
base: string[];
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
3
|
|
|
4
4
|
export declare class CommandItem extends BaseElement {
|
|
5
5
|
private static _counter;
|
|
@@ -8,6 +8,7 @@ export declare class CommandItem extends BaseElement {
|
|
|
8
8
|
_hidden: string;
|
|
9
9
|
onSelect: () => void;
|
|
10
10
|
private get containerElement();
|
|
11
|
+
disabled: 'true' | 'false';
|
|
11
12
|
private get identifier();
|
|
12
13
|
get value(): string;
|
|
13
14
|
private handleMouseEvent;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
3
|
-
import {
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
4
3
|
import { CommandEmpty } from './command-empty.atom';
|
|
5
4
|
import { CommandGroup } from './command-group.atom';
|
|
6
|
-
import {
|
|
5
|
+
import { CommandInput } from './command-input.atom';
|
|
7
6
|
import { CommandItem } from './command-item.atom';
|
|
7
|
+
import { CommandList } from './command-list.atom';
|
|
8
8
|
import { CommandSeparator } from './command-separator.atom';
|
|
9
9
|
|
|
10
10
|
declare class Command extends BaseElement {
|
|
11
11
|
get containerElement(): HTMLDivElement | null;
|
|
12
12
|
protected getAttributesToExclude(): string[];
|
|
13
|
+
protected getAttributesToRemoveFromParent(): string[];
|
|
13
14
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
14
15
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
15
16
|
render(): import('lit').TemplateResult<1>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function calendarIcon(): import('lit-html').TemplateResult<1>;
|
|
2
|
+
export declare function smileIcon(): import('lit-html').TemplateResult<1>;
|
|
3
|
+
export declare function calculatorIcon(): import('lit-html').TemplateResult<1>;
|
|
4
|
+
export declare function userIcon(): import('lit-html').TemplateResult<1>;
|
|
5
|
+
export declare function creditCardIcon(): import('lit-html').TemplateResult<1>;
|
|
6
|
+
export declare function settingsIcon(): import('lit-html').TemplateResult<1>;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
export declare const commandStyles
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
export declare const commandStyles: {
|
|
2
|
+
root: string[];
|
|
3
|
+
input: {
|
|
4
|
+
wrapper: string[];
|
|
5
|
+
icon: string[];
|
|
6
|
+
input: string[];
|
|
7
|
+
};
|
|
8
|
+
list: string[];
|
|
9
|
+
empty: string[];
|
|
10
|
+
group: string[];
|
|
11
|
+
heading: string[];
|
|
12
|
+
separator: string[];
|
|
13
|
+
item: string[];
|
|
14
|
+
shortcut: string[];
|
|
15
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertyValues } from 'lit';
|
|
2
1
|
import { BaseElement } from '../../../helpers';
|
|
2
|
+
import { PropertyValues } from 'lit';
|
|
3
3
|
|
|
4
4
|
export declare class ContextMenuItem extends BaseElement {
|
|
5
5
|
get _containerElement(): HTMLDivElement | null;
|
|
@@ -9,5 +9,6 @@ export declare class ContextMenuItem extends BaseElement {
|
|
|
9
9
|
connectedCallback(): void;
|
|
10
10
|
disconnectedCallback(): void;
|
|
11
11
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
12
|
+
disabled: boolean;
|
|
12
13
|
render(): import('lit').TemplateResult<1>;
|
|
13
14
|
}
|