@datacrest/dcuikit 0.0.7 → 0.0.8

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 (180) hide show
  1. package/build/components/Atom/Button/Button.d.ts +2 -1
  2. package/build/components/Atom/Button/Button.types.d.ts +13 -7
  3. package/build/components/Atom/Button/index.d.ts +2 -1
  4. package/build/components/Atom/Checkbox/Checkbox.d.ts +2 -1
  5. package/build/components/Atom/Checkbox/index.d.ts +2 -1
  6. package/build/components/Atom/Icon/Icon.d.ts +2 -1
  7. package/build/components/Atom/Icon/index.d.ts +2 -1
  8. package/build/components/Atom/Input/Input.d.ts +3 -20
  9. package/build/components/Atom/Input/Input.stories.d.ts +1 -1
  10. package/build/components/Atom/Input/Input.types.d.ts +18 -0
  11. package/build/components/Atom/Input/index.d.ts +2 -2
  12. package/build/components/Atom/Radiogroup/RadioGroup.d.ts +11 -0
  13. package/build/components/Atom/Radiogroup/RadioGroup.stories.d.ts +5 -0
  14. package/build/components/Atom/Radiogroup/RadioGroup.test.d.ts +1 -0
  15. package/build/components/Atom/Radiogroup/index.d.ts +2 -0
  16. package/build/components/Atom/Radiogroup/types.d.ts +21 -0
  17. package/build/components/Atom/Radiogroup/variants.d.ts +56 -0
  18. package/build/components/Atom/Switch/Switch.d.ts +4 -0
  19. package/build/components/Atom/Switch/Switch.stories.d.ts +5 -0
  20. package/build/components/Atom/Switch/Switch.test.d.ts +1 -0
  21. package/build/components/Atom/Switch/const.d.ts +41 -0
  22. package/build/components/Atom/Switch/index.d.ts +5 -0
  23. package/build/components/Atom/Switch/types.d.ts +19 -0
  24. package/build/components/Atom/Typography/Typography.d.ts +5 -2
  25. package/build/components/Atom/Typography/index.d.ts +4 -1
  26. package/build/components/Molecule/AlertDialog/AlertDialog.d.ts +4 -0
  27. package/build/components/Molecule/AlertDialog/AlertDialog.stories.d.ts +54 -0
  28. package/build/components/Molecule/AlertDialog/AlertDialog.test.d.ts +1 -0
  29. package/build/components/Molecule/AlertDialog/const.d.ts +5 -0
  30. package/build/components/Molecule/AlertDialog/index.d.ts +2 -0
  31. package/build/components/Molecule/AlertDialog/types.d.ts +11 -0
  32. package/build/components/Molecule/BreadCrumb/BreadCrumb.d.ts +4 -0
  33. package/build/components/Molecule/BreadCrumb/BreadCrumb.stories.d.ts +5 -0
  34. package/build/components/Molecule/BreadCrumb/BreadCrumb.test.d.ts +1 -0
  35. package/build/components/Molecule/BreadCrumb/const.d.ts +22 -0
  36. package/build/components/Molecule/BreadCrumb/index.d.ts +3 -0
  37. package/build/components/Molecule/BreadCrumb/types.d.ts +17 -0
  38. package/build/components/Molecule/Calendar/Calendar.d.ts +10 -0
  39. package/build/components/Molecule/Calendar/Calendar.stories.d.ts +5 -0
  40. package/build/components/Molecule/Calendar/Calendar.test.d.ts +1 -0
  41. package/build/components/Molecule/Calendar/index.d.ts +2 -0
  42. package/build/components/Molecule/Card/Card.d.ts +7 -0
  43. package/build/components/Molecule/Card/Card.stories.d.ts +5 -0
  44. package/build/components/Molecule/Card/Card.test.d.ts +1 -0
  45. package/build/components/Molecule/Card/const.d.ts +22 -0
  46. package/build/components/Molecule/Card/index.d.ts +2 -0
  47. package/build/components/Molecule/Card/types.d.ts +23 -0
  48. package/build/components/Molecule/Carousel/Carousel.d.ts +6 -0
  49. package/build/components/Molecule/Carousel/Carousel.stories.d.ts +50 -0
  50. package/build/components/Molecule/Carousel/Carousel.test.d.ts +1 -0
  51. package/build/components/Molecule/Carousel/const.d.ts +15 -0
  52. package/build/components/Molecule/Carousel/index.d.ts +2 -0
  53. package/build/components/Molecule/Carousel/types.d.ts +22 -0
  54. package/build/components/Molecule/Chart/Chart.d.ts +4 -0
  55. package/build/components/Molecule/Chart/Chart.stories.d.ts +5 -0
  56. package/build/components/Molecule/Chart/Chart.test.d.ts +1 -0
  57. package/build/components/Molecule/Chart/const.d.ts +5 -0
  58. package/build/components/Molecule/Chart/index.d.ts +2 -0
  59. package/build/components/Molecule/Chart/types.d.ts +24 -0
  60. package/build/components/Molecule/Collapse/Collapse.d.ts +4 -0
  61. package/build/components/Molecule/Collapse/Collapse.stories.d.ts +9 -0
  62. package/build/components/Molecule/Collapse/Collapse.test.d.ts +1 -0
  63. package/build/components/Molecule/Collapse/CollapseData.d.ts +16 -0
  64. package/build/components/Molecule/Collapse/FAQCollapseGroup.d.ts +4 -0
  65. package/build/components/Molecule/Collapse/const.d.ts +10 -0
  66. package/build/components/Molecule/Collapse/index.d.ts +4 -0
  67. package/build/components/Molecule/Collapse/types.d.ts +17 -0
  68. package/build/components/Molecule/DatePicker/DatePicker.d.ts +4 -0
  69. package/build/components/Molecule/DatePicker/DatePicker.stories.d.ts +5 -0
  70. package/build/components/Molecule/DatePicker/DatePicker.test.d.ts +1 -0
  71. package/build/components/Molecule/DatePicker/const.d.ts +1 -0
  72. package/build/components/Molecule/DatePicker/index.d.ts +2 -0
  73. package/build/components/Molecule/DatePicker/types.d.ts +22 -0
  74. package/build/components/Molecule/Dialog/CustomDialogContent.d.ts +4 -0
  75. package/build/components/Molecule/Dialog/Dialog.d.ts +7 -0
  76. package/build/components/Molecule/Dialog/Dialog.stories.d.ts +5 -0
  77. package/build/components/Molecule/Dialog/Dialog.test.d.ts +1 -0
  78. package/build/components/Molecule/Dialog/const.d.ts +15 -0
  79. package/build/components/Molecule/Dialog/index.d.ts +2 -0
  80. package/build/components/Molecule/Dialog/types.d.ts +53 -0
  81. package/build/components/Molecule/Dialog/utils.d.ts +1 -0
  82. package/build/components/Molecule/Drawer/Drawer.d.ts +4 -0
  83. package/build/components/Molecule/Drawer/Drawer.stories.d.ts +43 -0
  84. package/build/components/Molecule/Drawer/Drawer.test.d.ts +1 -0
  85. package/build/components/Molecule/Drawer/const.d.ts +10 -0
  86. package/build/components/Molecule/Drawer/index.d.ts +2 -0
  87. package/build/components/Molecule/Drawer/types.d.ts +13 -0
  88. package/build/components/Molecule/Dropdown/Dropdown.d.ts +4 -0
  89. package/build/components/Molecule/Dropdown/Dropdown.stories.d.ts +5 -0
  90. package/build/components/Molecule/Dropdown/Dropdown.test.d.ts +1 -0
  91. package/build/components/Molecule/Dropdown/const.d.ts +3 -0
  92. package/build/components/Molecule/Dropdown/index.d.ts +2 -0
  93. package/build/components/Molecule/Dropdown/types.d.ts +45 -0
  94. package/build/components/Molecule/Loader/Loader.d.ts +4 -0
  95. package/build/components/Molecule/Loader/Loader.stories.d.ts +6 -0
  96. package/build/components/Molecule/Loader/Loader.test.d.ts +1 -0
  97. package/build/components/Molecule/Loader/const.d.ts +2 -0
  98. package/build/components/Molecule/Loader/index.d.ts +2 -0
  99. package/build/components/Molecule/Loader/types.d.ts +29 -0
  100. package/build/components/Molecule/Message/Message.d.ts +4 -13
  101. package/build/components/Molecule/Message/Message.stories.d.ts +58 -3
  102. package/build/components/Molecule/Message/Message.types.d.ts +21 -0
  103. package/build/components/Molecule/Message/MessageManager.d.ts +6 -4
  104. package/build/components/Molecule/Otp/Otp.d.ts +7 -0
  105. package/build/components/Molecule/Otp/Otp.stories.d.ts +46 -0
  106. package/build/components/Molecule/Otp/Otp.test.d.ts +1 -0
  107. package/build/components/Molecule/Otp/const.d.ts +7 -0
  108. package/build/components/Molecule/Otp/index.d.ts +2 -0
  109. package/build/components/Molecule/Otp/types.d.ts +10 -0
  110. package/build/components/Molecule/Pagination/Pagination.d.ts +4 -0
  111. package/build/components/Molecule/Pagination/Pagination.stories.d.ts +5 -0
  112. package/build/components/Molecule/Pagination/Pagination.test.d.ts +1 -0
  113. package/build/components/Molecule/Pagination/PaginationState.d.ts +4 -0
  114. package/build/components/Molecule/Pagination/const.d.ts +7 -0
  115. package/build/components/Molecule/Pagination/index.d.ts +2 -0
  116. package/build/components/Molecule/Pagination/types.d.ts +13 -0
  117. package/build/components/Molecule/Pagination/utils.d.ts +1 -0
  118. package/build/components/Molecule/Popover/Popover.d.ts +7 -0
  119. package/build/components/Molecule/Popover/Popover.stories.d.ts +40 -0
  120. package/build/components/Molecule/Popover/Popover.test.d.ts +1 -0
  121. package/build/components/Molecule/Popover/const.d.ts +10 -0
  122. package/build/components/Molecule/Popover/index.d.ts +2 -0
  123. package/build/components/Molecule/Popover/types.d.ts +21 -0
  124. package/build/components/Molecule/ProfileCard/ProfileCard.d.ts +4 -0
  125. package/build/components/Molecule/ProfileCard/ProfileCard.stories.d.ts +35 -0
  126. package/build/components/Molecule/ProfileCard/ProfileCard.test.d.ts +1 -0
  127. package/build/components/Molecule/ProfileCard/const.d.ts +18 -0
  128. package/build/components/Molecule/ProfileCard/index.d.ts +2 -0
  129. package/build/components/Molecule/ProfileCard/types.d.ts +16 -0
  130. package/build/components/Molecule/Sheet/Sheet.d.ts +16 -0
  131. package/build/components/Molecule/Sheet/Sheet.stories.d.ts +9 -0
  132. package/build/components/Molecule/Sheet/Sheet.test.d.ts +1 -0
  133. package/build/components/Molecule/Sheet/const.d.ts +8 -0
  134. package/build/components/Molecule/Sheet/index.d.ts +2 -0
  135. package/build/components/Molecule/Sheet/types.d.ts +33 -0
  136. package/build/components/Molecule/Skeleton/Skeleton.d.ts +4 -0
  137. package/build/components/Molecule/Skeleton/Skeleton.stories.d.ts +5 -0
  138. package/build/components/Molecule/Skeleton/Skeleton.test.d.ts +1 -0
  139. package/build/components/Molecule/Skeleton/const.d.ts +13 -0
  140. package/build/components/Molecule/Skeleton/index.d.ts +2 -0
  141. package/build/components/Molecule/Skeleton/types.d.ts +18 -0
  142. package/build/components/Molecule/Stepper/Stepper.d.ts +4 -0
  143. package/build/components/Molecule/Stepper/Stepper.stories.d.ts +5 -0
  144. package/build/components/Molecule/Stepper/Stepper.test.d.ts +1 -0
  145. package/build/components/Molecule/Stepper/const.d.ts +59 -0
  146. package/build/components/Molecule/Stepper/index.d.ts +2 -0
  147. package/build/components/Molecule/Stepper/types.d.ts +33 -0
  148. package/build/components/Molecule/Table/Table.d.ts +2 -1
  149. package/build/components/Molecule/Table/Table.types.d.ts +1 -0
  150. package/build/components/Molecule/Table/index.d.ts +2 -1
  151. package/build/components/Molecule/Tabs/Tabs.d.ts +4 -0
  152. package/build/components/Molecule/Tabs/Tabs.stories.d.ts +40 -0
  153. package/build/components/Molecule/Tabs/Tabs.test.d.ts +1 -0
  154. package/build/components/Molecule/Tabs/TabsData.d.ts +3 -0
  155. package/build/components/Molecule/Tabs/const.d.ts +10 -0
  156. package/build/components/Molecule/Tabs/index.d.ts +2 -0
  157. package/build/components/Molecule/Tabs/types.d.ts +16 -0
  158. package/build/components/Molecule/Tooltip/Tooltip.d.ts +3 -1
  159. package/build/components/Molecule/Tooltip/Tooltip.stories.d.ts +7 -3
  160. package/build/components/Molecule/Tooltip/index.d.ts +2 -1
  161. package/build/components/ui/alert-dialog.d.ts +20 -0
  162. package/build/components/ui/button.d.ts +11 -0
  163. package/build/components/ui/card.d.ts +8 -0
  164. package/build/components/ui/command.d.ts +80 -0
  165. package/build/components/ui/dialog.d.ts +19 -0
  166. package/build/components/ui/drawer.d.ts +22 -0
  167. package/build/components/ui/input-otp.d.ts +34 -0
  168. package/build/components/ui/pagination.d.ts +17 -0
  169. package/build/components/ui/popover.d.ts +7 -0
  170. package/build/components/ui/skeleton.d.ts +3 -0
  171. package/build/components/ui/tabs.d.ts +7 -0
  172. package/build/index.d.ts +21 -0
  173. package/build/index.esm.js +29 -5
  174. package/build/index.esm.js.map +1 -1
  175. package/build/index.js +29 -5
  176. package/build/index.js.map +1 -1
  177. package/build/lib/utils.d.ts +2 -0
  178. package/build/tsconfig.prod.tsbuildinfo +1 -1
  179. package/build/tsconfig.tsbuildinfo +1 -1
  180. package/package.json +88 -60
@@ -1,4 +1,59 @@
1
- import { StoryFn, Meta } from '@storybook/react';
2
- declare const _default: Meta;
1
+ import React from 'react';
2
+ import { MessageProps, MessageVariants, MessagePosition } from './Message.types';
3
+ declare const _default: {
4
+ title: string;
5
+ component: ({ id, destroy, title, description, variant, duration, animationDuration, icon, dataTestId, }: MessageProps) => React.JSX.Element;
6
+ argTypes: {
7
+ variant: {
8
+ control: "select";
9
+ options: MessageVariants[];
10
+ description: string;
11
+ defaultValue: MessageVariants;
12
+ };
13
+ position: {
14
+ control: "select";
15
+ options: MessagePosition[];
16
+ description: string;
17
+ defaultValue: MessagePosition;
18
+ };
19
+ title: {
20
+ control: "text";
21
+ description: string;
22
+ };
23
+ description: {
24
+ control: "text";
25
+ description: string;
26
+ };
27
+ duration: {
28
+ control: {
29
+ type: "number";
30
+ min: number;
31
+ max: number;
32
+ step: number;
33
+ };
34
+ description: string;
35
+ };
36
+ animationDuration: {
37
+ control: {
38
+ type: "number";
39
+ min: number;
40
+ max: number;
41
+ step: number;
42
+ };
43
+ description: string;
44
+ };
45
+ icon: {
46
+ control: "boolean";
47
+ description: string;
48
+ defaultValue: boolean;
49
+ };
50
+ dataTestId: {
51
+ control: "text";
52
+ description: string;
53
+ };
54
+ };
55
+ };
3
56
  export default _default;
4
- export declare const Message: StoryFn;
57
+ export declare const Message: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, Omit<MessageProps, "destroy"> & {
58
+ position: MessagePosition;
59
+ }>;
@@ -1,6 +1,27 @@
1
+ import { ReactElement, ReactNode } from 'react';
1
2
  export declare enum MessageVariants {
2
3
  Success = "success",
3
4
  Error = "error",
4
5
  Warning = "warning",
5
6
  Info = "info"
6
7
  }
8
+ export declare enum MessagePosition {
9
+ TopCenter = "top-center",
10
+ TopLeft = "top-left",
11
+ TopRight = "top-right",
12
+ BottomCenter = "bottom-center",
13
+ BottomLeft = "bottom-left",
14
+ BottomRight = "bottom-right"
15
+ }
16
+ export interface MessageProps {
17
+ id?: string;
18
+ destroy: () => void;
19
+ title: string | ReactElement;
20
+ description?: string | ReactElement;
21
+ duration?: number;
22
+ position?: string;
23
+ variant?: MessageVariants;
24
+ animationDuration?: number;
25
+ icon?: ReactNode;
26
+ dataTestId?: string;
27
+ }
@@ -1,20 +1,22 @@
1
- import { MessageProps } from './Message';
1
+ import { MessageProps, MessagePosition } from './Message.types';
2
2
  export interface MessageOptions extends Omit<MessageProps, 'id' | 'destroy'> {
3
3
  id?: string;
4
+ position?: MessagePosition;
4
5
  }
5
6
  export declare class MessageManager {
6
7
  private isSetup;
7
- private containerRef;
8
- private root;
8
+ private containers;
9
+ private roots;
9
10
  private messages;
10
11
  constructor();
11
12
  setup(): void;
12
13
  show(options: MessageOptions): void;
13
- destroy(id: string): void;
14
+ destroy(id: string, position?: MessagePosition): void;
14
15
  success(options: Omit<MessageOptions, 'variant'>): void;
15
16
  error(options: Omit<MessageOptions, 'variant'>): void;
16
17
  warning(options: Omit<MessageOptions, 'variant'>): void;
17
18
  info(options: Omit<MessageOptions, 'variant'>): void;
19
+ private getPositionStyles;
18
20
  private render;
19
21
  }
20
22
  export declare const message: MessageManager;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { OTPInputProps } from './types';
3
+ declare const OTPInput: {
4
+ ({ value, maxLength, onChange, disabled, isError, placeholder, className, }: OTPInputProps): React.JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default OTPInput;
@@ -0,0 +1,46 @@
1
+ import React from 'react';
2
+ import type { OTPInputProps } from './types';
3
+ declare const _default: {
4
+ title: string;
5
+ component: {
6
+ ({ value, maxLength, onChange, disabled, isError, placeholder, className, }: OTPInputProps): React.JSX.Element;
7
+ displayName: string;
8
+ };
9
+ argTypes: {
10
+ maxLength: {
11
+ control: "number";
12
+ description: string;
13
+ defaultValue: number;
14
+ };
15
+ disabled: {
16
+ control: "boolean";
17
+ description: string;
18
+ defaultValue: boolean;
19
+ };
20
+ isError: {
21
+ control: "boolean";
22
+ description: string;
23
+ defaultValue: boolean;
24
+ };
25
+ placeholder: {
26
+ control: "text";
27
+ description: string;
28
+ defaultValue: string;
29
+ };
30
+ showControls: {
31
+ control: "boolean";
32
+ description: string;
33
+ defaultValue: boolean;
34
+ };
35
+ value: {
36
+ control: "text";
37
+ description: string;
38
+ };
39
+ onChange: {
40
+ action: string;
41
+ description: string;
42
+ };
43
+ };
44
+ };
45
+ export default _default;
46
+ export declare const OTPInput: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, OTPInputProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ export declare const DEFAULT_LENGTH = 6;
2
+ export declare const DEFAULT_PLACEHOLDER = "\u25CB";
3
+ export declare const INPUT_VARIANTS: {
4
+ readonly default: "default";
5
+ readonly error: "error";
6
+ readonly disabled: "disabled";
7
+ };
@@ -0,0 +1,2 @@
1
+ import OTPInput from './Otp';
2
+ export { OTPInput };
@@ -0,0 +1,10 @@
1
+ export interface OTPInputProps {
2
+ value: string;
3
+ maxLength?: number;
4
+ onChange?: (value: string) => void;
5
+ disabled?: boolean;
6
+ isError?: boolean;
7
+ placeholder?: string;
8
+ className?: string;
9
+ showControls?: boolean;
10
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PaginationComponentProps } from './types';
3
+ declare const PaginationComponent: ({ currentPage, totalPages, onPageChange, siblingCount, className, disabled, isLoading, enableKeyboardNav, showEllipsis, }: PaginationComponentProps) => React.JSX.Element | null;
4
+ export default PaginationComponent;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import PaginationComponent from './Pagination';
3
+ declare const _default: Meta<typeof PaginationComponent>;
4
+ export default _default;
5
+ export declare const Pagination: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./types").PaginationComponentProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { PaginationStateProps } from './types';
3
+ declare const PaginationWithState: (props: PaginationStateProps) => React.JSX.Element;
4
+ export default PaginationWithState;
@@ -0,0 +1,7 @@
1
+ export declare const DOTS = "...";
2
+ export declare const DEFAULT_SIBLING_COUNT = 1;
3
+ export declare const DEFAULT_PAGE = 1;
4
+ export declare const MAX_PAGES = 100;
5
+ export declare const MIN_PAGES = 1;
6
+ export declare const MAX_SIBLINGS = 3;
7
+ export declare const MIN_SIBLINGS = 0;
@@ -0,0 +1,2 @@
1
+ import PaginationComponent from './Pagination';
2
+ export { PaginationComponent };
@@ -0,0 +1,13 @@
1
+ export interface PaginationComponentProps {
2
+ currentPage: number;
3
+ totalPages: number;
4
+ onPageChange: (page: number) => void;
5
+ siblingCount?: number;
6
+ className?: string;
7
+ disabled?: boolean;
8
+ isLoading?: boolean;
9
+ enableKeyboardNav?: boolean;
10
+ showEllipsis?: boolean;
11
+ }
12
+ export interface PaginationStateProps extends Omit<PaginationComponentProps, 'currentPage' | 'onPageChange'> {
13
+ }
@@ -0,0 +1 @@
1
+ export declare const getPaginationRange: (currentPage: number, totalPages: number, siblingCount: number, showEllipsis: boolean) => (string | number)[];
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
3
+ import type { PopoverContentProps } from './types';
4
+ declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
5
+ declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
7
+ export { Popover, PopoverTrigger, PopoverContent };
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import type { PopoverStoryProps } from './types';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<import("@radix-ui/react-popover").PopoverProps>;
6
+ argTypes: {
7
+ side: {
8
+ control: "select";
9
+ options: string[];
10
+ description: string;
11
+ };
12
+ align: {
13
+ control: "select";
14
+ options: string[];
15
+ description: string;
16
+ };
17
+ variant: {
18
+ control: "select";
19
+ options: string[];
20
+ description: string;
21
+ };
22
+ title: {
23
+ control: "text";
24
+ description: string;
25
+ };
26
+ description: {
27
+ control: "text";
28
+ description: string;
29
+ };
30
+ buttonText: {
31
+ control: "text";
32
+ description: string;
33
+ };
34
+ onOpenChange: {
35
+ action: string;
36
+ };
37
+ };
38
+ };
39
+ export default _default;
40
+ export declare const Popover: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, PopoverStoryProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,10 @@
1
+ export declare const POPOVER_SIDES: readonly ["top", "right", "bottom", "left"];
2
+ export declare const POPOVER_ALIGN_OPTIONS: readonly ["start", "center", "end"];
3
+ export declare const DEFAULT_SIDE = "bottom";
4
+ export declare const DEFAULT_ALIGN = "center";
5
+ export declare const DEFAULT_SIDE_OFFSET = 4;
6
+ export declare const ANIMATION_DURATION = 150;
7
+ export declare const POPOVER_VARIANTS: {
8
+ readonly DEFAULT: "default";
9
+ readonly FORM: "form";
10
+ };
@@ -0,0 +1,2 @@
1
+ import { Popover } from './Popover';
2
+ export { Popover };
@@ -0,0 +1,21 @@
1
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
2
+ export interface PopoverProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
3
+ children: React.ReactNode;
4
+ }
5
+ export interface PopoverStoryProps extends PopoverProps {
6
+ side?: 'top' | 'right' | 'bottom' | 'left';
7
+ align?: 'start' | 'center' | 'end';
8
+ variant?: 'default' | 'form';
9
+ title?: string;
10
+ description?: string;
11
+ buttonText?: string;
12
+ }
13
+ export interface PopoverTriggerProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> {
14
+ asChild?: boolean;
15
+ }
16
+ export interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> {
17
+ className?: string;
18
+ align?: 'start' | 'center' | 'end';
19
+ side?: 'top' | 'right' | 'bottom' | 'left';
20
+ sideOffset?: number;
21
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ProfileCardProps } from './types';
3
+ declare const ProfileCard: React.FC<ProfileCardProps>;
4
+ export default ProfileCard;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { ProfileCardProps } from './types';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<ProfileCardProps>;
6
+ argTypes: {
7
+ size: {
8
+ control: "select";
9
+ options: string[];
10
+ description: string;
11
+ };
12
+ avatarUrl: {
13
+ control: "text";
14
+ description: string;
15
+ };
16
+ name: {
17
+ control: "text";
18
+ description: string;
19
+ };
20
+ email: {
21
+ control: "text";
22
+ description: string;
23
+ };
24
+ position: {
25
+ control: "text";
26
+ description: string;
27
+ };
28
+ dropdownItems: {
29
+ control: "object";
30
+ description: string;
31
+ };
32
+ };
33
+ };
34
+ export default _default;
35
+ export declare const ProfileCard: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ProfileCardProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,18 @@
1
+ export declare const PROFILE_CARD_SIZES: {
2
+ readonly small: "small";
3
+ readonly medium: "medium";
4
+ readonly large: "large";
5
+ };
6
+ export declare const SAMPLE_PROFILES: {
7
+ name: string;
8
+ email: string;
9
+ date: string;
10
+ title: string;
11
+ content: string;
12
+ avatarUrl: string;
13
+ }[];
14
+ export declare const sizeClasses: {
15
+ small: string;
16
+ medium: string;
17
+ large: string;
18
+ };
@@ -0,0 +1,2 @@
1
+ import ProfileCard from './ProfileCard';
2
+ export { ProfileCard };
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from 'react';
2
+ export interface DropdownItem {
3
+ name: string;
4
+ icon?: ReactNode;
5
+ link?: string;
6
+ isDisabled?: boolean;
7
+ }
8
+ export interface ProfileCardProps {
9
+ avatarUrl: string;
10
+ name: string;
11
+ email?: string;
12
+ position?: string;
13
+ dropdownItems?: DropdownItem[];
14
+ size?: 'small' | 'medium' | 'large';
15
+ className?: string;
16
+ }
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
3
+ import { SheetProps, SheetTriggerProps, SheetContentProps, SheetHeaderProps, SheetFooterProps, SheetTitleProps, SheetDescriptionProps, SheetDrawerProps } from './types';
4
+ declare const Sheet: {
5
+ ({ children, side, overlay, showFooter, title, description, buttonText, className, fullWidth, fullHeight, ...props }: SheetProps): React.JSX.Element;
6
+ displayName: string;
7
+ };
8
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetTriggerProps & React.RefAttributes<HTMLButtonElement>>;
9
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
11
+ declare const SheetHeader: React.ForwardRefExoticComponent<SheetHeaderProps & React.RefAttributes<HTMLDivElement>>;
12
+ declare const SheetFooter: React.ForwardRefExoticComponent<SheetFooterProps & React.RefAttributes<HTMLDivElement>>;
13
+ declare const SheetTitle: React.ForwardRefExoticComponent<SheetTitleProps & React.RefAttributes<HTMLHeadingElement>>;
14
+ declare const SheetDescription: React.ForwardRefExoticComponent<SheetDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
15
+ declare const SheetDrawer: React.ForwardRefExoticComponent<SheetDrawerProps & React.RefAttributes<HTMLDivElement>>;
16
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, SheetDrawer, };
@@ -0,0 +1,9 @@
1
+ import { Meta } from '@storybook/react';
2
+ import { SheetProps } from './types';
3
+ declare const _default: Meta<SheetProps & {
4
+ isDrawer: boolean;
5
+ }>;
6
+ export default _default;
7
+ export declare const SheetStory: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SheetProps & {
8
+ isDrawer: boolean;
9
+ }>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,8 @@
1
+ export declare const SHEET_SIDES: readonly ["top", "right", "bottom", "left"];
2
+ export type SheetSide = (typeof SHEET_SIDES)[number];
3
+ export declare const DEFAULT_SIDE: SheetSide;
4
+ export type SheetTransition = {
5
+ in: string;
6
+ out: string;
7
+ };
8
+ export declare const SHEET_TRANSITIONS: Record<SheetSide, SheetTransition>;
@@ -0,0 +1,2 @@
1
+ import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from './Sheet';
2
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
3
+ import { SHEET_SIDES } from './const';
4
+ export type SheetSide = (typeof SHEET_SIDES)[number];
5
+ export interface SheetCustomProps {
6
+ side?: SheetSide;
7
+ overlay?: boolean;
8
+ showFooter?: boolean;
9
+ title?: string;
10
+ description?: string;
11
+ buttonText?: string;
12
+ className?: string;
13
+ fullWidth?: boolean;
14
+ fullHeight?: boolean;
15
+ }
16
+ export interface SheetProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Root>, SheetCustomProps {
17
+ }
18
+ export interface SheetTriggerProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Trigger> {
19
+ asChild?: boolean;
20
+ }
21
+ export interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, Pick<SheetCustomProps, 'side' | 'overlay' | 'fullWidth' | 'fullHeight'> {
22
+ }
23
+ export interface SheetHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ }
25
+ export interface SheetFooterProps extends React.HTMLAttributes<HTMLDivElement> {
26
+ }
27
+ export interface SheetTitleProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title> {
28
+ }
29
+ export interface SheetDescriptionProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description> {
30
+ }
31
+ export interface SheetDrawerProps extends SheetProps {
32
+ contentProps?: Omit<SheetContentProps, 'children'>;
33
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { SkeletonProps } from './types';
3
+ declare const CustomSkeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default CustomSkeleton;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import type { SkeletonProps } from './types';
3
+ declare const _default: Meta<SkeletonProps>;
4
+ export default _default;
5
+ export declare const Skeleton: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, SkeletonProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,13 @@
1
+ export declare const variants: readonly ["card", "table", "simple", "dashboard"];
2
+ export declare const DEFAULT_VARIANT = "card";
3
+ export declare const DEFAULT_ROW_HEIGHT = "h-4";
4
+ export declare const DEFAULT_MAIN_HEIGHT = "h-24";
5
+ export declare const DEFAULT_FIRST_ROW_WIDTH = "w-3/5";
6
+ export declare const DEFAULT_SECOND_ROW_WIDTH = "w-4/5";
7
+ export declare const DEFAULT_ROWS = 3;
8
+ export declare const DEFAULT_HEADER_ROWS = 2;
9
+ export declare const DEFAULT_CONTENT_ROWS = 3;
10
+ export declare const DEFAULT_HEADER_ROW_HEIGHT = "h-6";
11
+ export declare const DEFAULT_CONTENT_ROW_HEIGHT = "h-5";
12
+ export declare const DEFAULT_GRID_COLS = 2;
13
+ export declare const DEFAULT_GRID_HEIGHT = "h-64";
@@ -0,0 +1,2 @@
1
+ import CustomSkeleton from './Skeleton';
2
+ export { CustomSkeleton };
@@ -0,0 +1,18 @@
1
+ import { variants } from './const';
2
+ export type Variant = (typeof variants)[number];
3
+ export interface SkeletonProps {
4
+ variant?: Variant;
5
+ rows?: number;
6
+ className?: string;
7
+ showHeader?: boolean;
8
+ rowHeight?: string;
9
+ mainHeight?: string;
10
+ firstRowWidth?: string;
11
+ secondRowWidth?: string;
12
+ headerRows?: number;
13
+ contentRows?: number;
14
+ headerRowHeight?: string;
15
+ contentRowHeight?: string;
16
+ gridCols?: number;
17
+ gridHeight?: string;
18
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { StepperProps } from './types';
3
+ declare const Stepper: React.FC<StepperProps>;
4
+ export default Stepper;
@@ -0,0 +1,5 @@
1
+ import { Meta } from '@storybook/react';
2
+ import type { StepperProps } from './types';
3
+ declare const _default: Meta<StepperProps>;
4
+ export default _default;
5
+ export declare const Stepper: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, StepperProps>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,59 @@
1
+ export declare const STEPPER_SIZE_STYLES: {
2
+ small: {
3
+ node: string;
4
+ innerDot: {
5
+ active: string;
6
+ completed: string;
7
+ default: string;
8
+ };
9
+ text: string;
10
+ description: string;
11
+ connectorTop: string;
12
+ connectorHeight: string;
13
+ spacing: string;
14
+ marginRight: string;
15
+ verticalConnector: {
16
+ left: string;
17
+ top: string;
18
+ height: string;
19
+ };
20
+ };
21
+ medium: {
22
+ node: string;
23
+ innerDot: {
24
+ active: string;
25
+ completed: string;
26
+ default: string;
27
+ };
28
+ text: string;
29
+ description: string;
30
+ connectorTop: string;
31
+ connectorHeight: string;
32
+ spacing: string;
33
+ marginRight: string;
34
+ verticalConnector: {
35
+ left: string;
36
+ top: string;
37
+ height: string;
38
+ };
39
+ };
40
+ large: {
41
+ node: string;
42
+ innerDot: {
43
+ active: string;
44
+ completed: string;
45
+ default: string;
46
+ };
47
+ text: string;
48
+ description: string;
49
+ connectorTop: string;
50
+ connectorHeight: string;
51
+ spacing: string;
52
+ marginRight: string;
53
+ verticalConnector: {
54
+ left: string;
55
+ top: string;
56
+ height: string;
57
+ };
58
+ };
59
+ };
@@ -0,0 +1,2 @@
1
+ import Stepper from './Stepper';
2
+ export { Stepper };