@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.
Files changed (169) hide show
  1. package/dist/library.css +4298 -1171
  2. package/dist/rtg-ui-kit.js +7682 -5984
  3. package/dist/rtg-ui-kit.umd.cjs +1098 -1077
  4. package/dist/src/components/ui/accordion/accordion-content.d.ts +1 -1
  5. package/dist/src/components/ui/accordion/accordion-trigger.d.ts +1 -1
  6. package/dist/src/components/ui/accordion/accordion.d.ts +4 -4
  7. package/dist/src/components/ui/accordion/accordion.styles.d.ts +4 -0
  8. package/dist/src/components/ui/alert/alert.d.ts +5 -5
  9. package/dist/src/components/ui/alert/alert.stories.d.ts +1 -1
  10. package/dist/src/components/ui/alert/alert.styles.d.ts +9 -3
  11. package/dist/src/components/ui/alert/alert.types.d.ts +1 -1
  12. package/dist/src/components/ui/alert/helpers.d.ts +10 -0
  13. package/dist/src/components/ui/aspect-ratio/aspect-ratio.d.ts +5 -2
  14. package/dist/src/components/ui/aspect-ratio/aspect-ratio.styles.d.ts +4 -1
  15. package/dist/src/components/ui/avatar/avatar-fallback.d.ts +1 -1
  16. package/dist/src/components/ui/avatar/avatar-image.d.ts +1 -1
  17. package/dist/src/components/ui/avatar/avatar.d.ts +1 -1
  18. package/dist/src/components/ui/avatar/avatar.style.d.ts +4 -3
  19. package/dist/src/components/ui/badge/badge.d.ts +1 -1
  20. package/dist/src/components/ui/badge/badge.stories.d.ts +1 -0
  21. package/dist/src/components/ui/badge/badge.style.d.ts +1 -1
  22. package/dist/src/components/ui/badge/badge.type.d.ts +1 -1
  23. package/dist/src/components/ui/breadcrumb/breadcrumb-item.d.ts +1 -1
  24. package/dist/src/components/ui/breadcrumb/breadcrumb-link.d.ts +1 -1
  25. package/dist/src/components/ui/breadcrumb/breadcrumb-list.d.ts +1 -1
  26. package/dist/src/components/ui/breadcrumb/breadcrumb-text.d.ts +1 -1
  27. package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +2 -2
  28. package/dist/src/components/ui/breadcrumb/breadcrumb.styles.d.ts +4 -6
  29. package/dist/src/components/ui/button/button.d.ts +2 -2
  30. package/dist/src/components/ui/button/button.style.d.ts +2 -2
  31. package/dist/src/components/ui/button/button.type.d.ts +1 -1
  32. package/dist/src/components/ui/calendar/calendar.d.ts +9 -13
  33. package/dist/src/components/ui/calendar/calendar.helpers.d.ts +3 -0
  34. package/dist/src/components/ui/calendar/calendar.style.d.ts +40 -4
  35. package/dist/src/components/ui/card/card.d.ts +6 -6
  36. package/dist/src/components/ui/card/card.styles.d.ts +4 -1
  37. package/dist/src/components/ui/carousel/carousel.styles.d.ts +32 -0
  38. package/dist/src/components/ui/checkbox/checkbox.stories.d.ts +3 -1
  39. package/dist/src/components/ui/checkbox/checkbox.style.d.ts +4 -2
  40. package/dist/src/components/ui/combobox/combo-box.styles.d.ts +14 -5
  41. package/dist/src/components/ui/command/command-empty.atom.d.ts +1 -1
  42. package/dist/src/components/ui/command/command-group.atom.d.ts +1 -1
  43. package/dist/src/components/ui/command/command-item.atom.d.ts +2 -1
  44. package/dist/src/components/ui/command/command-list.atom.d.ts +1 -1
  45. package/dist/src/components/ui/command/command.d.ts +4 -3
  46. package/dist/src/components/ui/command/command.helpers.d.ts +6 -0
  47. package/dist/src/components/ui/command/command.styles.d.ts +15 -7
  48. package/dist/src/components/ui/context-menu/context-menu-checkbox-Item.d.ts +1 -1
  49. package/dist/src/components/ui/context-menu/context-menu-content.d.ts +1 -1
  50. package/dist/src/components/ui/context-menu/context-menu-item.d.ts +2 -1
  51. package/dist/src/components/ui/context-menu/context-menu-radio-item.d.ts +1 -1
  52. package/dist/src/components/ui/context-menu/context-menu.d.ts +3 -3
  53. package/dist/src/components/ui/context-menu/context-menu.helpers.d.ts +1 -0
  54. package/dist/src/components/ui/context-menu/context-menu.styles.d.ts +20 -7
  55. package/dist/src/components/ui/date-picker/date-picker.styles.d.ts +6 -0
  56. package/dist/src/components/ui/dialog/dialog-close.d.ts +1 -1
  57. package/dist/src/components/ui/dialog/dialog-content.d.ts +1 -0
  58. package/dist/src/components/ui/dialog/dialog-trigger.d.ts +1 -1
  59. package/dist/src/components/ui/dialog/dialog.d.ts +3 -3
  60. package/dist/src/components/ui/dialog/dialog.styles.d.ts +17 -4
  61. package/dist/src/components/ui/drawer/drawer-close.d.ts +1 -1
  62. package/dist/src/components/ui/drawer/drawer-content.d.ts +2 -1
  63. package/dist/src/components/ui/drawer/drawer-description.d.ts +1 -2
  64. package/dist/src/components/ui/drawer/drawer-header.d.ts +5 -4
  65. package/dist/src/components/ui/drawer/drawer-title.d.ts +1 -2
  66. package/dist/src/components/ui/drawer/drawer-trigger.d.ts +1 -1
  67. package/dist/src/components/ui/drawer/drawer.d.ts +7 -6
  68. package/dist/src/components/ui/drawer/drawer.helpers.d.ts +2 -0
  69. package/dist/src/components/ui/drawer/drawer.styles.d.ts +14 -5
  70. package/dist/src/components/ui/dropdown-menu/dropdown-menu-checkbox-Item.d.ts +1 -1
  71. package/dist/src/components/ui/dropdown-menu/dropdown-menu-content.d.ts +1 -1
  72. package/dist/src/components/ui/dropdown-menu/dropdown-menu-item.d.ts +2 -1
  73. package/dist/src/components/ui/dropdown-menu/dropdown-menu-radio-item.d.ts +1 -1
  74. package/dist/src/components/ui/dropdown-menu/dropdown-menu-seperator.d.ts +1 -1
  75. package/dist/src/components/ui/dropdown-menu/dropdown-menu-shortcut.d.ts +1 -1
  76. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +6 -4
  77. package/dist/src/components/ui/dropdown-menu/dropdown-menu.helpers.d.ts +3 -0
  78. package/dist/src/components/ui/dropdown-menu/dropdown-menu.styles.d.ts +20 -7
  79. package/dist/src/components/ui/form/form.styles.d.ts +7 -6
  80. package/dist/src/components/ui/hoverCard/hover-card-content.d.ts +2 -2
  81. package/dist/src/components/ui/hoverCard/hover-card-trigger.d.ts +1 -1
  82. package/dist/src/components/ui/hoverCard/hover-card.d.ts +2 -2
  83. package/dist/src/components/ui/hoverCard/hover-card.styles.d.ts +5 -1
  84. package/dist/src/components/ui/input/input.styles.d.ts +7 -1
  85. package/dist/src/components/ui/input-otp/input-otp-group.d.ts +2 -0
  86. package/dist/src/components/ui/input-otp/input-otp-slot.d.ts +1 -1
  87. package/dist/src/components/ui/input-otp/input-otp.d.ts +2 -4
  88. package/dist/src/components/ui/input-otp/input-otp.styles.d.ts +10 -0
  89. package/dist/src/components/ui/label/label.d.ts +0 -4
  90. package/dist/src/components/ui/label/label.style.d.ts +1 -1
  91. package/dist/src/components/ui/menubar/menubar-checkbox.item.d.ts +1 -2
  92. package/dist/src/components/ui/menubar/menubar-content.d.ts +1 -1
  93. package/dist/src/components/ui/menubar/menubar-group.d.ts +1 -1
  94. package/dist/src/components/ui/menubar/menubar-item.d.ts +2 -1
  95. package/dist/src/components/ui/menubar/menubar-menu.d.ts +4 -1
  96. package/dist/src/components/ui/menubar/menubar-radio-item.d.ts +1 -2
  97. package/dist/src/components/ui/menubar/menubar-separator.d.ts +1 -1
  98. package/dist/src/components/ui/menubar/menubar-shortcut.d.ts +1 -1
  99. package/dist/src/components/ui/menubar/menubar-trigger.d.ts +2 -2
  100. package/dist/src/components/ui/menubar/menubar.d.ts +4 -4
  101. package/dist/src/components/ui/menubar/menubar.helpers.d.ts +3 -0
  102. package/dist/src/components/ui/menubar/menubar.styles.d.ts +21 -8
  103. package/dist/src/components/ui/navigation-menu/navigation-menu.styles.d.ts +9 -3
  104. package/dist/src/components/ui/pagination/pagination-content.d.ts +1 -1
  105. package/dist/src/components/ui/pagination/pagination-ellipsis.d.ts +2 -2
  106. package/dist/src/components/ui/pagination/pagination-item.d.ts +1 -1
  107. package/dist/src/components/ui/pagination/pagination-link.d.ts +3 -8
  108. package/dist/src/components/ui/pagination/pagination-next.d.ts +2 -1
  109. package/dist/src/components/ui/pagination/pagination-previous.d.ts +2 -1
  110. package/dist/src/components/ui/pagination/pagination.d.ts +3 -3
  111. package/dist/src/components/ui/pagination/pagination.styles.d.ts +22 -9
  112. package/dist/src/components/ui/popover/popover-content.d.ts +2 -2
  113. package/dist/src/components/ui/popover/popover-trigger.d.ts +1 -1
  114. package/dist/src/components/ui/popover/popover.d.ts +1 -1
  115. package/dist/src/components/ui/popover/popover.style.d.ts +5 -10
  116. package/dist/src/components/ui/progress/progress.d.ts +0 -1
  117. package/dist/src/components/ui/progress/progress.styles.d.ts +4 -1
  118. package/dist/src/components/ui/radio-group/radio-group-item.d.ts +3 -1
  119. package/dist/src/components/ui/radio-group/radio-group.d.ts +3 -2
  120. package/dist/src/components/ui/radio-group/radio-group.styles.d.ts +9 -2
  121. package/dist/src/components/ui/sample-demo/sample-demo.d.ts +2 -2
  122. package/dist/src/components/ui/sample-demo/sample.style.d.ts +2 -2
  123. package/dist/src/components/ui/scroll-area/scroll-area.style.d.ts +1 -1
  124. package/dist/src/components/ui/select/select-controller.d.ts +2 -1
  125. package/dist/src/components/ui/select/select-group.d.ts +3 -0
  126. package/dist/src/components/ui/select/select-item.d.ts +2 -1
  127. package/dist/src/components/ui/select/select-label.d.ts +2 -2
  128. package/dist/src/components/ui/select/select-list.d.ts +1 -1
  129. package/dist/src/components/ui/select/select-trigger.d.ts +5 -2
  130. package/dist/src/components/ui/select/select-value.d.ts +1 -1
  131. package/dist/src/components/ui/select/select.d.ts +5 -5
  132. package/dist/src/components/ui/select/select.styles.d.ts +20 -7
  133. package/dist/src/components/ui/separator/separator.d.ts +2 -0
  134. package/dist/src/components/ui/separator/separator.styles.d.ts +5 -0
  135. package/dist/src/components/ui/skeleton/skeleton.style.d.ts +1 -1
  136. package/dist/src/components/ui/switch/switch.d.ts +2 -2
  137. package/dist/src/components/ui/switch/switch.style.d.ts +4 -1
  138. package/dist/src/components/ui/table/table.styles.d.ts +39 -0
  139. package/dist/src/components/ui/tabs/tabs.style.d.ts +12 -4
  140. package/dist/src/components/ui/textarea/textarea.styles.d.ts +1 -1
  141. package/dist/src/components/ui/toast/toast-action.d.ts +7 -3
  142. package/dist/src/components/ui/toast/toast-view-port.d.ts +7 -4
  143. package/dist/src/components/ui/toast/toast.style.d.ts +19 -11
  144. package/dist/src/components/ui/toggle/toggle.d.ts +1 -0
  145. package/dist/src/components/ui/toggle-group/toggle-group-item.d.ts +14 -3
  146. package/dist/src/components/ui/toggle-group/toggle-group.style.d.ts +1 -1
  147. package/dist/src/helpers/base-element.d.ts +1 -0
  148. package/dist/src/tokens/tailwind/animation.d.ts +7 -0
  149. package/dist/src/tokens/tailwind/basis.d.ts +5 -0
  150. package/dist/src/tokens/tailwind/border-radius.d.ts +61 -0
  151. package/dist/src/tokens/tailwind/border-width.d.ts +32 -0
  152. package/dist/src/tokens/tailwind/box-shadow.d.ts +23 -0
  153. package/dist/src/tokens/tailwind/color.d.ts +339 -0
  154. package/dist/src/tokens/tailwind/font-size.d.ts +134 -0
  155. package/dist/src/tokens/tailwind/font-weight.d.ts +36 -0
  156. package/dist/src/tokens/tailwind/grid-template-columns.d.ts +4 -0
  157. package/dist/src/tokens/tailwind/index.d.ts +1113 -0
  158. package/dist/src/tokens/tailwind/keyframes.d.ts +41 -0
  159. package/dist/src/tokens/tailwind/opacity.d.ts +39 -0
  160. package/dist/src/tokens/tailwind/ring-offset-width.d.ts +8 -0
  161. package/dist/src/tokens/tailwind/ring-width.d.ts +24 -0
  162. package/dist/src/tokens/tailwind/spacing.d.ts +344 -0
  163. package/dist/src/tokens/tailwind/transition-duration.d.ts +5 -0
  164. package/dist/src/tokens/tailwind/transition-timing-function.d.ts +4 -0
  165. package/dist/src/tokens/tailwind/translate.d.ts +5 -0
  166. package/package.json +1 -1
  167. package/dist/src/components/ui/calendar/calendar.type.d.ts +0 -2
  168. package/dist/src/components/ui/context-menu/contextMenu.style.d.ts +0 -2
  169. package/dist/src/components/ui/dropdown-menu/dropdownMenu.style.d.ts +0 -2
@@ -1,5 +1,5 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
3
 
4
4
  declare class AccordionContent extends BaseElement {
5
5
  private get _accordion();
@@ -1,5 +1,5 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
3
 
4
4
  declare class AccordionTrigger extends BaseElement {
5
5
  private get _item();
@@ -1,9 +1,9 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BaseElement } from '../../../helpers';
3
- import { ACCORDION_GROUP_TYPE } from './accordion.defs';
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 { AccordionContent } from './accordion-content';
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, AccordionContent };
21
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
22
22
  declare global {
23
23
  interface HTMLElementTagNameMap {
24
24
  'rtg-accordion': Accordion;
@@ -0,0 +1,4 @@
1
+ type TAccordionPart = 'base' | 'item' | 'trigger' | 'chevron' | 'content';
2
+ type TAccordionStyles = Record<TAccordionPart, string[]>;
3
+ export declare const accordionStyles: TAccordionStyles;
4
+ export {};
@@ -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?: "error" | "success" | "warning" | "info" | null | undefined;
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: 'success' | 'error' | 'warning' | 'info';
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;
@@ -5,5 +5,5 @@ export default _default;
5
5
  type Story = StoryObj;
6
6
  export declare const Alert: Story;
7
7
  export declare const SuccessAlert: Story;
8
- export declare const ErrorAlert: Story;
8
+ export declare const DestructiveAlert: Story;
9
9
  export declare const SmallWarningAlert: Story;
@@ -1,4 +1,10 @@
1
- export declare const alertStyle: (props?: ({
2
- variant?: "error" | "success" | "warning" | "info" | null | undefined;
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 _children;
6
- protected createRenderRoot(): HTMLElement | DocumentFragment;
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 +1,4 @@
1
- export declare const aspectRatioStyles = "rtg-relative rtg-w-full rtg-overflow-hidden rtg-bg-muted";
1
+ export declare const aspectRatioStyles: {
2
+ host: string[];
3
+ self: string[];
4
+ };
@@ -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 AvatarFallback extends BaseElement {
5
5
  protected createRenderRoot(): HTMLElement | DocumentFragment;
@@ -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 AvatarImage extends BaseElement {
5
5
  alt: string;
@@ -1,5 +1,5 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BaseElement } from '../../../helpers';
2
+ import { PropertyValues } from 'lit';
3
3
  import { AvatarFallback } from './avatar-fallback';
4
4
  import { AvatarImage } from './avatar-image';
5
5
 
@@ -1,3 +1,4 @@
1
- export declare const avatarStyles = "rtg-relative rtg-flex rtg-size-8 rtg-shrink-0 rtg-overflow-hidden rtg-rounded-full";
2
- export declare const avatarImageStyles = "rtg-aspect-square rtg-size-full";
3
- export declare const avatarFallbackStyles = "rtg-bg-muted rtg-flex rtg-size-full rtg-items-center rtg-justify-center rtg-rounded-full";
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?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
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;
@@ -4,3 +4,4 @@ declare const meta: Meta;
4
4
  export default meta;
5
5
  type Story = StoryObj;
6
6
  export declare const Badge: Story;
7
+ export declare const BadgeWithLink: Story;
@@ -1,3 +1,3 @@
1
1
  export declare const badgeStyle: (props?: ({
2
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
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' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
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
 
4
4
  export declare class BreadCrumbItem extends BaseElement {
5
5
  get _containerElement(): HTMLLIElement | null;
@@ -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 BreadCrumbLink extends BaseElement {
5
5
  href: string;
@@ -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 BreadCrumbList extends BaseElement {
5
5
  get _containerElement(): HTMLOListElement | null;
@@ -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 BreadCrumbText extends BaseElement {
5
5
  get _containerElement(): HTMLSpanElement | null;
@@ -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, BreadCrumb, BreadCrumbSeparator, BreadCrumbText, BreadCrumbLink, BreadCrumbList, };
22
+ export { BreadCrumb, BreadCrumbEllipsis, BreadCrumbItem, BreadCrumbLink, BreadCrumbList, BreadCrumbSeparator, BreadCrumbText, };
@@ -1,6 +1,4 @@
1
- export declare const breadcrumbItemStyles = "rtg-inline-flex rtg-items-center rtg-gap-1.5";
2
- export declare const breadcrumbLink = "rtg-transition-colors hover:rtg-text-foreground";
3
- export declare const breadcrumbTextStyles = "rtg-font-normal rtg-text-foreground";
4
- export declare const breadcrumbSeparatorStyles = "[&>svg]:rtg-size-3.5";
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" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
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" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
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
- variant: buttonType.ButtonVariant;
14
- size: buttonType.ButtonSize;
15
- styleCalendar: boolean;
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, isInactive: boolean): void;
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 {
@@ -0,0 +1,3 @@
1
+ export type TCalendarMode = 'single' | 'range';
2
+ export declare const WEEKDAYS: string[];
3
+ export declare function formatFullDate(date: Date): string;
@@ -1,4 +1,40 @@
1
- export declare const buttonStyle: (props?: ({
2
- variant?: "outline" | null | undefined;
3
- size?: "default" | null | undefined;
4
- } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
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 { BaseElement } from '../../../helpers';
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, CardTitle, CardHeader, CardFooter, CardDescription, CardContent, };
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
- export declare const cardStyles = "rtg-rounded-lg rtg-border rtg-bg-card rtg-p-6 rtg-text-card-foreground rtg-shadow-sm";
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
- export declare const checkboxStyles = "rtg-peer rtg-shadow-sm rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-input focus:rtg-border-ring rtg-ring-offset-background focus-visible:rtg-outline-none focus:rtg-ring-[3px] focus:rtg-ring-custom-outline disabled:rtg-opacity-50 data-[state=checked]:rtg-bg-primary data-[state=checked]:rtg-text-primary-foreground";
2
- export declare const iconStyles = "rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";
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 comboBoxEmptyStyles = "rtg-py-6 rtg-text-center rtg-text-sm";
2
- export declare const comboBoxGroupStyles = "rtg-pointer-events-none rtg-invisible rtg-absolute rtg-z-50 rtg-mt-1 rtg-max-h-72 rtg-w-full rtg-origin-top rtg-scale-y-0 rtg-transform rtg-overflow-hidden rtg-overflow-y-auto rtg-rounded-md rtg-border rtg-border-border rtg-bg-background rtg-px-1 rtg-py-1 rtg-opacity-0 rtg-shadow-md rtg-transition-opacity rtg-duration-300 rtg-ease-out [&::-webkit-scrollbar-thumb]:rtg-rounded-full [&::-webkit-scrollbar-thumb]rtg-:bg-foreground [&::-webkit-scrollbar-track]:rtg-bg-background [&::-webkit-scrollbar]:rtg-w-2";
3
- export declare const comboBoxInputStyles = "rtg-flex rtg-h-8 rtg-w-full rtg-rounded rtg-border-0 rtg-bg-transparent rtg-px-2 rtg-py-2 rtg-text-sm rtg-shadow-none placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus-visible:rtg-ring-0";
4
- export declare const comboBoxTriggerStyles = "rtg-z-20 rtg-flex rtg-h-10 rtg-flex-row-reverse rtg-items-center rtg-justify-between rtg-rounded-md rtg-border rtg-border-input rtg-bg-background rtg-px-3 rtg-py-2 rtg-text-sm rtg-ring-offset-background placeholder:rtg-text-muted-foreground focus:rtg-outline-none focus:rtg-ring-2 focus:rtg-ring-ring focus:rtg-ring-offset-2 disabled:rtg-cursor-not-allowed disabled:rtg-opacity-50";
5
- export declare const comboBoxValueStyles = "rtg-line-clamp-1 rtg-flex rtg-w-[180px]";
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 CommandEmpty extends BaseElement {
5
5
  _id: string;
@@ -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 CommandGroup extends BaseElement {
5
5
  heading: string;
@@ -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,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 CommandList extends BaseElement {
5
5
  private get identifier();
@@ -1,15 +1,16 @@
1
- import { PropertyValues } from 'lit';
2
1
  import { BaseElement } from '../../../helpers';
3
- import { CommandInput } from './command-input.atom';
2
+ import { PropertyValues } from 'lit';
4
3
  import { CommandEmpty } from './command-empty.atom';
5
4
  import { CommandGroup } from './command-group.atom';
6
- import { CommandList } from './command-list.atom';
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 = "rtg-flex rtg-h-full rtg-w-full rtg-flex-col rtg-overflow-hidden rtg-rounded-md rtg-bg-popover rtg-text-popover-foreground rtg-border rtg-shadow-md";
2
- export declare const commandEmptyStyles = "py-6 text-center text-sm";
3
- export declare const commandGroupStyles = "rtg-overflow-hidden rtg-p-1 rtg-text-foreground [&_[rtgcmd-group-heading]]:rtg-px-2 [&_[rtgcmd-group-heading]]:rtg-py-1.5 [&_[rtgcmd-group-heading]]:rtg-text-xs [&_[rtgcmd-group-heading]]:rtg-font-medium [&_[rtgcmd-group-heading]]:rtg-text-muted-foreground";
4
- export declare const commandInputStyles = "rtg-flex rtg-items-center rtg-border-b rtg-px-3";
5
- export declare const commandItemStyles = "rtg-relative rtg-flex rtg-cursor-default rtg-select-none rtg-items-center rtg-rounded-sm rtg-px-2 rtg-py-1.5 rtg-text-sm rtg-outline-none aria-selected:rtg-bg-accent aria-selected:rtg-text-accent-foreground data-[disabled]:rtg-pointer-events-none data-[disabled]:rtg-opacity-50 hover:rtg-bg-accent focus:rtg-outline-none";
6
- export declare const commandListStyles = "rtg-max-h-[300px] rtg-overflow-y-auto rtg-overflow-x-hidden";
7
- export declare const commandSeparatorStyles = "rtg-mx-1 rtg-h-px rtg-bg-border";
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 ContextMenuCheckboxItem extends BaseElement {
5
5
  _id: string;
@@ -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 ContextMenuContent extends BaseElement {
5
5
  isOpen: boolean;
@@ -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
  }
@@ -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 ContextMenuRadioItem extends BaseElement {
5
5
  _id: string;