jiffy-ui 1.0.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 (156) hide show
  1. package/dist/assets/fonts/Roboto-Bold.ttf +0 -0
  2. package/dist/assets/fonts/Roboto-Light.ttf +0 -0
  3. package/dist/assets/fonts/Roboto-Medium.ttf +0 -0
  4. package/dist/assets/fonts/Roboto-Regular.ttf +0 -0
  5. package/dist/assets/fonts/roboto-bold.woff +0 -0
  6. package/dist/assets/fonts/roboto-bold.woff2 +0 -0
  7. package/dist/assets/fonts/roboto-light.woff +0 -0
  8. package/dist/assets/fonts/roboto-medium.woff +0 -0
  9. package/dist/assets/fonts/roboto-medium.woff2 +0 -0
  10. package/dist/assets/fonts/roboto-regular.woff +0 -0
  11. package/dist/assets/fonts/roboto-regular.woff2 +0 -0
  12. package/dist/assets/icons/Icons.d.ts +3 -0
  13. package/dist/components/Accordion/Accordian.stories.d.ts +18 -0
  14. package/dist/components/Accordion/Accordion.d.ts +12 -0
  15. package/dist/components/Actionlist/Actionlist.d.ts +26 -0
  16. package/dist/components/Actionlist/Actionlist.stories.d.ts +11 -0
  17. package/dist/components/Actionlist/index.d.ts +1 -0
  18. package/dist/components/Alert/Alert.d.ts +16 -0
  19. package/dist/components/Alert/Alert.stories.d.ts +46 -0
  20. package/dist/components/AppWrapper/AppWrapper.d.ts +11 -0
  21. package/dist/components/AppWrapper/AppWrapper.stories.d.ts +11 -0
  22. package/dist/components/Avatar/Avatar.d.ts +13 -0
  23. package/dist/components/Avatar/Avatar.stories.d.ts +61 -0
  24. package/dist/components/Badge/Badge.d.ts +11 -0
  25. package/dist/components/Badge/Badge.stories.d.ts +55 -0
  26. package/dist/components/BottomSheet/BottomSheet.d.ts +10 -0
  27. package/dist/components/BottomSheet/BottomSheet.stories.d.ts +12 -0
  28. package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.stories.d.ts +11 -0
  30. package/dist/components/Button/Button.d.ts +17 -0
  31. package/dist/components/Button/Button.stories.d.ts +82 -0
  32. package/dist/components/ButtonGroup/ButtonGroup.d.ts +8 -0
  33. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +21 -0
  34. package/dist/components/Card/Card.d.ts +18 -0
  35. package/dist/components/Card/Card.stories.d.ts +71 -0
  36. package/dist/components/CopyClipboard/CopyClipboard.d.ts +12 -0
  37. package/dist/components/CopyClipboard/CopyClipboard.stories.d.ts +56 -0
  38. package/dist/components/Divider/Divider.d.ts +10 -0
  39. package/dist/components/Divider/Divider.stories.d.ts +48 -0
  40. package/dist/components/Dropdown/Dropdown.d.ts +14 -0
  41. package/dist/components/Dropdown/Dropdown.stories.d.ts +10 -0
  42. package/dist/components/FlexItem/FlexItem.d.ts +28 -0
  43. package/dist/components/Foundation/BorderWidth/BorderWidth.d.ts +1 -0
  44. package/dist/components/Foundation/BorderWidth/BorderWidth.stories.d.ts +19 -0
  45. package/dist/components/Foundation/Colors/DesignColors.d.ts +1 -0
  46. package/dist/components/Foundation/Colors/DesignColors.stories.d.ts +19 -0
  47. package/dist/components/Foundation/Elevation/Elevation.d.ts +1 -0
  48. package/dist/components/Foundation/Elevation/elevation.stories.d.ts +19 -0
  49. package/dist/components/Foundation/Icons/IconData.d.ts +8 -0
  50. package/dist/components/Foundation/Icons/Icons.d.ts +255 -0
  51. package/dist/components/Foundation/Icons/Icons.stories.d.ts +37 -0
  52. package/dist/components/Foundation/RorderRadius/BorderRadius.d.ts +1 -0
  53. package/dist/components/Foundation/RorderRadius/BorderRadius.stories.d.ts +9 -0
  54. package/dist/components/Foundation/UsedColor/UsedColor.d.ts +2 -0
  55. package/dist/components/Foundation/UsedColor/UsedColor.stories.d.ts +19 -0
  56. package/dist/components/Grid/Grid.d.ts +26 -0
  57. package/dist/components/Grid/stories/Grid.stories.d.ts +41 -0
  58. package/dist/components/HorizontalFlex/HorizontalFlex.d.ts +25 -0
  59. package/dist/components/HorizontalFlex/HorizontalFlex.stories.d.ts +12 -0
  60. package/dist/components/Indicator/Indicator.d.ts +10 -0
  61. package/dist/components/Indicator/Indicator.stories.d.ts +40 -0
  62. package/dist/components/Input/Checkbox/Checkbox.d.ts +14 -0
  63. package/dist/components/Input/Checkbox/Checkbox.stories.d.ts +12 -0
  64. package/dist/components/Input/CheckboxGroup/CheckboxGroup.d.ts +21 -0
  65. package/dist/components/Input/CheckboxGroup/CheckboxGroup.stories.d.ts +12 -0
  66. package/dist/components/Input/FileUpload/FileItem.d.ts +3 -0
  67. package/dist/components/Input/FileUpload/FileUpload.d.ts +18 -0
  68. package/dist/components/Input/FileUpload/FileUpload.stories.d.ts +11 -0
  69. package/dist/components/Input/FileUpload/Fileprogress.d.ts +3 -0
  70. package/dist/components/Input/Radio/Radio.d.ts +14 -0
  71. package/dist/components/Input/Radio/Radio.stories.d.ts +11 -0
  72. package/dist/components/Input/RadioGroup/RadioGroup.d.ts +21 -0
  73. package/dist/components/Input/RadioGroup/RadioGroup.stories.d.ts +12 -0
  74. package/dist/components/Input/Select/Select.d.ts +18 -0
  75. package/dist/components/Input/Select/Select.stories.d.ts +15 -0
  76. package/dist/components/Input/TextArea/TextArea.d.ts +16 -0
  77. package/dist/components/Input/TextArea/TextArea.stories.d.ts +11 -0
  78. package/dist/components/Input/TextField/TextField.d.ts +29 -0
  79. package/dist/components/Input/TextField/story/TextField.stories.d.ts +173 -0
  80. package/dist/components/List/List.d.ts +13 -0
  81. package/dist/components/List/List.stories.d.ts +20 -0
  82. package/dist/components/MediaCard/MediaCard.d.ts +16 -0
  83. package/dist/components/MediaCard/MediaCard.stories.d.ts +57 -0
  84. package/dist/components/Modal/Modal.d.ts +14 -0
  85. package/dist/components/Modal/Modal.stories.d.ts +47 -0
  86. package/dist/components/PageTitle/PageTitle.d.ts +17 -0
  87. package/dist/components/PageTitle/PageTitle.stories.d.ts +16 -0
  88. package/dist/components/Pagination/Pagination.d.ts +13 -0
  89. package/dist/components/Pagination/Pagination.stories.d.ts +13 -0
  90. package/dist/components/ProgressBar/ProgressBar.d.ts +13 -0
  91. package/dist/components/ProgressBar/ProgressBar.stories.d.ts +38 -0
  92. package/dist/components/SideBar/SideBar.d.ts +33 -0
  93. package/dist/components/SideBar/Sidebar.stories.d.ts +13 -0
  94. package/dist/components/SideBar/globalFunc.d.ts +1 -0
  95. package/dist/components/SideSheet/SideSheet.d.ts +11 -0
  96. package/dist/components/SideSheet/SideSheet.stories.d.ts +47 -0
  97. package/dist/components/SimpleTest/Simple.stories.d.ts +9 -0
  98. package/dist/components/SimpleTest/SimpleTest.d.ts +3 -0
  99. package/dist/components/Skeleton/Skeleton.d.ts +16 -0
  100. package/dist/components/Skeleton/SkeletonBadge/SkeletonBadge.d.ts +7 -0
  101. package/dist/components/Skeleton/SkeletonBadge/SkeletonBadge.stories.d.ts +12 -0
  102. package/dist/components/Skeleton/SkeletonButton/SkeletonButton.d.ts +7 -0
  103. package/dist/components/Skeleton/SkeletonButton/SkeletonButton.stories.d.ts +12 -0
  104. package/dist/components/Skeleton/SkeletonCustom/SkeletonCustom.d.ts +9 -0
  105. package/dist/components/Skeleton/SkeletonCustom/SkeletonCustom.stories.d.ts +11 -0
  106. package/dist/components/Skeleton/SkeletonLine/SkeletonLine.d.ts +9 -0
  107. package/dist/components/Skeleton/SkeletonLine/SkeletonLine.stories.d.ts +11 -0
  108. package/dist/components/Skeleton/SkeletonList/SkeletonList.d.ts +7 -0
  109. package/dist/components/Skeleton/SkeletonList/SkeletonList.stories.d.ts +11 -0
  110. package/dist/components/Skeleton/SkeletonTabs/SkeletonTabs.d.ts +7 -0
  111. package/dist/components/Skeleton/SkeletonTabs/SkeletonTabs.stories.d.ts +11 -0
  112. package/dist/components/Skeleton/SkeletonThumbnail/SkeletonThumbnail.d.ts +7 -0
  113. package/dist/components/Skeleton/SkeletonThumbnail/SkeletonThumbnail.stories.d.ts +12 -0
  114. package/dist/components/Spinner/Spinner.d.ts +10 -0
  115. package/dist/components/Spinner/Spinner.stories.d.ts +46 -0
  116. package/dist/components/StepWizard/StepWizard.d.ts +17 -0
  117. package/dist/components/StepWizard/getClassnames.d.ts +5 -0
  118. package/dist/components/StepWizard/story/StepWizard.stories.d.ts +9 -0
  119. package/dist/components/Switcher/Switcher.d.ts +10 -0
  120. package/dist/components/Switcher/Switcher.stories.d.ts +13 -0
  121. package/dist/components/Table/Table.d.ts +20 -0
  122. package/dist/components/Table/Table.stories.d.ts +14 -0
  123. package/dist/components/Table/useRowSelection.d.ts +5 -0
  124. package/dist/components/Tabs/Tabs.d.ts +19 -0
  125. package/dist/components/Tabs/Tabs.stories.d.ts +11 -0
  126. package/dist/components/Tag/Tag.d.ts +9 -0
  127. package/dist/components/Tag/Tag.stories.d.ts +38 -0
  128. package/dist/components/Template/Template.stories.d.ts +19 -0
  129. package/dist/components/Template/TemplateDemo.d.ts +4 -0
  130. package/dist/components/TextLink/TextLink.d.ts +15 -0
  131. package/dist/components/TextLink/TextLink.stories.d.ts +70 -0
  132. package/dist/components/TextStyle/TextStyle.d.ts +14 -0
  133. package/dist/components/TextStyle/TextStyle.stories.d.ts +61 -0
  134. package/dist/components/Thumbnail/Thumbnail.d.ts +11 -0
  135. package/dist/components/Thumbnail/Thumbnail.stories.d.ts +14 -0
  136. package/dist/components/Tooltip/Tooltip.d.ts +12 -0
  137. package/dist/components/Tooltip/Tooltip.stories.d.ts +11 -0
  138. package/dist/components/TopBar/TopBar.d.ts +11 -0
  139. package/dist/components/TopBar/TopBar.stories.d.ts +11 -0
  140. package/dist/components/VerticalFlex/VerticalFlex.d.ts +9 -0
  141. package/dist/components/VerticalFlex/VerticalFlex.stories.d.ts +12 -0
  142. package/dist/components/index.d.ts +53 -0
  143. package/dist/index.css +6951 -0
  144. package/dist/index.d.ts +2 -0
  145. package/dist/index.js +32 -0
  146. package/dist/index.modern.js +32 -0
  147. package/dist/index.test.d.ts +1 -0
  148. package/dist/utilities/Portal.d.ts +6 -0
  149. package/dist/utilities/context/AppContext.d.ts +16 -0
  150. package/dist/utilities/getClassnames.d.ts +5 -0
  151. package/dist/utilities/globalFunction.d.ts +23 -0
  152. package/dist/utilities/handleOutsideClick.d.ts +2 -0
  153. package/dist/utilities/useAddEventListener.d.ts +1 -0
  154. package/dist/utilities/useDelay.d.ts +2 -0
  155. package/dist/utilities/useWindowResize.d.ts +1 -0
  156. package/package.json +92 -0
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import "./Horizontalflex.css";
3
+ type align = "start" | "center" | "end" | "spaceAround" | "spaceBetween" | "spaceEvenly";
4
+ type blockAlign = "start" | "center" | "end" | "baseline" | "stretch";
5
+ export interface HorizontalFlexI {
6
+ children: JSX.Element | React.ReactNode;
7
+ gap?: 2 | 4 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 24 | 28 | 32 | 36 | 40;
8
+ wrap?: boolean;
9
+ blockAlign?: {
10
+ sm?: blockAlign;
11
+ md?: blockAlign;
12
+ lg?: blockAlign;
13
+ xl?: blockAlign;
14
+ xxl?: blockAlign;
15
+ };
16
+ align?: {
17
+ sm?: align;
18
+ md?: align;
19
+ lg?: align;
20
+ xl?: align;
21
+ xxl?: align;
22
+ };
23
+ }
24
+ declare const HorizontalFlex: (props: HorizontalFlexI) => React.JSX.Element;
25
+ export default HorizontalFlex;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./HorizontalFlex").HorizontalFlexI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
12
+ export declare const Horizontal_flex_with_gap: any;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import "./Indicator.css";
3
+ declare const Indicator: ({ label, color, size, content, ...props }: IndicatorI) => React.JSX.Element;
4
+ export interface IndicatorI {
5
+ color: "Primary" | "Positive" | "Negative" | "Notice" | "Information" | "Neutral";
6
+ size?: "Small" | "Medium" | "Large";
7
+ content?: string;
8
+ label?: string;
9
+ }
10
+ export default Indicator;
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ label, color, size, content, ...props }: import("./Indicator").IndicatorI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {
7
+ label: {
8
+ description: string;
9
+ control: {
10
+ type: string;
11
+ };
12
+ defaultValue: string;
13
+ };
14
+ color: {
15
+ description: string;
16
+ control: {
17
+ type: string;
18
+ options: string[];
19
+ };
20
+ defaultValue: string;
21
+ };
22
+ size: {
23
+ description: string;
24
+ control: {
25
+ type: string;
26
+ options: string[];
27
+ };
28
+ defaultValue: string;
29
+ };
30
+ };
31
+ };
32
+ export default _default;
33
+ export declare const Primary: ({ ...rest }: {
34
+ [x: string]: any;
35
+ }) => React.JSX.Element;
36
+ export declare const IndicatorsWithAllColors: any;
37
+ export declare const DotIndicatorsWithAllColors: any;
38
+ export declare const LabelIndicatorWithAllSizes: any;
39
+ export declare const DotIndicatorWithAllSizes: any;
40
+ export declare const WithNumber: any;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import "./Checkbox.css";
3
+ declare const Checkbox: React.FC<CheckboxI>;
4
+ export interface CheckboxI {
5
+ checked?: boolean | "indeterminate";
6
+ onChange?: (newState: boolean, value: any) => void;
7
+ label?: string | React.ReactNode;
8
+ name?: string;
9
+ required?: boolean;
10
+ isDisabled?: boolean;
11
+ value?: any;
12
+ hasError?: boolean;
13
+ }
14
+ export default Checkbox;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./Checkbox").CheckboxI>;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
12
+ export declare const CheckboxDisabled: any;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import "../FormGroup.css";
3
+ export interface OptionsI {
4
+ label?: string | React.ReactNode;
5
+ value: any;
6
+ isDisabled?: boolean;
7
+ }
8
+ export interface CheckboxGroupI {
9
+ title?: string | React.ReactNode;
10
+ name?: string;
11
+ value?: any[];
12
+ onChange?: (newVal: any[]) => void;
13
+ options: OptionsI[];
14
+ direction?: "horizontal" | "vertical";
15
+ helpText?: string;
16
+ helpIcon?: React.ReactNode;
17
+ type?: "success" | "warning" | "error";
18
+ isClickableFullItem?: boolean;
19
+ }
20
+ declare const CheckboxGroup: (props: CheckboxGroupI) => React.JSX.Element;
21
+ export default CheckboxGroup;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./CheckboxGroup").CheckboxGroupI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
12
+ export declare const HorizontalCheckboxGRoup: any;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<({ removeImage, accept, item, sizeAllowed, fileUpload, }: any) => React.JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import "./FileUpload.css";
3
+ declare const FileUpload: (props: UploadI) => React.JSX.Element;
4
+ export interface UploadI {
5
+ accept?: string[];
6
+ isMultiple?: boolean;
7
+ isDragable?: boolean;
8
+ isDisabled?: boolean;
9
+ maxCount?: number;
10
+ maxSize?: number;
11
+ helpText?: string;
12
+ helpIcon?: React.ReactNode;
13
+ onChange?: (e: any, single?: any) => void;
14
+ onError?: (errorData: any, message: string) => void;
15
+ onRemove?: (e: any) => void;
16
+ isFileUploaded: boolean[];
17
+ }
18
+ export default FileUpload;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./FileUpload").UploadI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Fileprogress: () => React.JSX.Element;
3
+ export default Fileprogress;
@@ -0,0 +1,14 @@
1
+ import "./Radio.css";
2
+ import React from "react";
3
+ export interface RadioI {
4
+ name?: string;
5
+ label?: string | React.ReactNode;
6
+ value?: any;
7
+ onChange?: (val: any) => void;
8
+ checked?: boolean;
9
+ isDisabled?: boolean;
10
+ hasError?: boolean;
11
+ id?: string;
12
+ }
13
+ declare const Radio: (props: RadioI) => React.JSX.Element;
14
+ export default Radio;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./Radio").RadioI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import "../FormGroup.css";
3
+ export interface OptionsI {
4
+ label?: string | React.ReactNode;
5
+ value: any;
6
+ isDisabled?: boolean;
7
+ }
8
+ export interface RadioGroupI {
9
+ title?: string | React.ReactNode;
10
+ name?: string;
11
+ value?: any;
12
+ onChange?: (val: string | number) => void;
13
+ options: OptionsI[];
14
+ direction?: "horizontal" | "vertical";
15
+ helpText?: string;
16
+ helpIcon?: React.ReactNode;
17
+ type?: "success" | "warning" | "error";
18
+ isClickableFullItem?: boolean;
19
+ }
20
+ declare const RadioGroup: (props: RadioGroupI) => React.JSX.Element;
21
+ export default RadioGroup;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./RadioGroup").RadioGroupI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
12
+ export declare const RadioGroupHorizontal: any;
@@ -0,0 +1,18 @@
1
+ import "./Select.css";
2
+ import React from "react";
3
+ export interface SelectI {
4
+ open?: boolean;
5
+ options: any[];
6
+ value?: string | string[];
7
+ onChange: (e: string | string[], i?: any) => void;
8
+ selectionType?: "single" | "multiple";
9
+ type?: "select" | "autoComplete";
10
+ isDisabled?: boolean;
11
+ label?: string;
12
+ placeholder?: string;
13
+ helpText?: string;
14
+ inputValue?: string;
15
+ onInputValueChange?: (e: any) => void;
16
+ }
17
+ declare const Select: (props: SelectI) => React.JSX.Element;
18
+ export default Select;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./Select").SelectI) => React.JSX.Element;
5
+ tags: string[];
6
+ };
7
+ export default _default;
8
+ export declare const Default: ({ ...rest }: {
9
+ [x: string]: any;
10
+ }) => React.JSX.Element;
11
+ export declare const MultiSelect: any;
12
+ export declare const SelectWithGroupedData: any;
13
+ export declare const MultiSelectWithGroupedData: any;
14
+ export declare const SelectWithAutoComplete: any;
15
+ export declare const MultiSelectWithAutoComplete: any;
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import "./TextArea.css";
3
+ declare const TextArea: (props: TextAreaI) => JSX.Element;
4
+ export interface TextAreaI {
5
+ onChange?: (e: string) => void;
6
+ value?: string | number;
7
+ label?: string;
8
+ resize?: "horizontal" | "vertical" | "both" | "none";
9
+ placeholder?: string;
10
+ helpText?: string;
11
+ readOnly?: boolean;
12
+ error?: boolean;
13
+ rows?: number;
14
+ required?: boolean;
15
+ }
16
+ export default TextArea;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: (props: import("./TextArea").TextAreaI) => JSX.Element;
5
+ tags: string[];
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Primary: ({ ...rest }: {
10
+ [x: string]: any;
11
+ }) => React.JSX.Element;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import "./TextField.css";
3
+ declare const TextField: React.ForwardRefExoticComponent<TextfieldI & React.RefAttributes<unknown>>;
4
+ export interface TextfieldI {
5
+ value?: string | number;
6
+ label?: string | React.ReactNode;
7
+ type?: "text" | "number" | "password" | "tel" | "url" | "email";
8
+ placeholder?: string;
9
+ prefix?: React.ReactNode;
10
+ suffix?: React.ReactNode;
11
+ helpText?: string;
12
+ helpIcon?: React.ReactNode;
13
+ variant?: "success" | "warning" | "error" | "default";
14
+ isClearable?: boolean;
15
+ isRequired?: boolean;
16
+ min?: number;
17
+ max?: number;
18
+ step?: number;
19
+ maxlength?: number | string | any;
20
+ isDisabled?: boolean;
21
+ autoFocus?: boolean;
22
+ onBlur?: () => void;
23
+ onKeyUp?: () => void;
24
+ onFocus?: () => void;
25
+ onChange?: (e: any) => void;
26
+ onClear?: () => void;
27
+ size?: "XSmall" | "Small" | "Medium" | "Large";
28
+ }
29
+ export default TextField;
@@ -0,0 +1,173 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.ForwardRefExoticComponent<import("../TextField").TextfieldI & React.RefAttributes<unknown>>;
5
+ argTypes: {
6
+ value: {
7
+ description: string;
8
+ control: {
9
+ type: string;
10
+ };
11
+ };
12
+ placeholder: {
13
+ description: string;
14
+ control: {
15
+ type: string;
16
+ };
17
+ };
18
+ label: {
19
+ description: string;
20
+ control: {
21
+ type: string;
22
+ };
23
+ };
24
+ type: {
25
+ description: string;
26
+ control: {
27
+ type: string;
28
+ options: string[];
29
+ };
30
+ };
31
+ helpText: {
32
+ description: string;
33
+ control: {
34
+ type: string;
35
+ };
36
+ };
37
+ variant: {
38
+ description: string;
39
+ control: {
40
+ type: string;
41
+ options: string[];
42
+ };
43
+ };
44
+ prefix: {
45
+ description: string;
46
+ control: {
47
+ type: string;
48
+ };
49
+ };
50
+ suffix: {
51
+ description: string;
52
+ control: {
53
+ type: string;
54
+ };
55
+ };
56
+ isClearable: {
57
+ description: string;
58
+ control: {
59
+ type: string;
60
+ };
61
+ };
62
+ onFocus: {
63
+ description: string;
64
+ control: {
65
+ disable: boolean;
66
+ };
67
+ };
68
+ onEnter: {
69
+ description: string;
70
+ control: {
71
+ disable: boolean;
72
+ };
73
+ };
74
+ onClear: {
75
+ description: string;
76
+ control: {
77
+ disable: boolean;
78
+ };
79
+ };
80
+ onKeyUp: {
81
+ description: string;
82
+ control: {
83
+ disable: boolean;
84
+ };
85
+ };
86
+ onBlur: {
87
+ description: string;
88
+ control: {
89
+ disable: boolean;
90
+ };
91
+ };
92
+ onChange: {
93
+ description: string;
94
+ control: {
95
+ disable: boolean;
96
+ };
97
+ };
98
+ maxlength: {
99
+ description: string;
100
+ control: {
101
+ type: string;
102
+ };
103
+ };
104
+ min: {
105
+ description: string;
106
+ control: {
107
+ type: string;
108
+ };
109
+ };
110
+ max: {
111
+ description: string;
112
+ control: {
113
+ type: string;
114
+ };
115
+ };
116
+ step: {
117
+ description: string;
118
+ control: {
119
+ type: string;
120
+ };
121
+ };
122
+ helpIcon: {
123
+ description: string;
124
+ control: {
125
+ type: string;
126
+ disable: boolean;
127
+ };
128
+ };
129
+ isRequired: {
130
+ description: string;
131
+ control: {
132
+ type: string;
133
+ };
134
+ };
135
+ isDisabled: {
136
+ description: string;
137
+ control: {
138
+ type: string;
139
+ };
140
+ };
141
+ hasStrength: {
142
+ description: string;
143
+ control: {
144
+ type: string;
145
+ };
146
+ };
147
+ };
148
+ args: {
149
+ maxlength: string;
150
+ min: string;
151
+ max: string;
152
+ step: string;
153
+ helpIcon: string;
154
+ placeholder: string;
155
+ value: string;
156
+ label: string;
157
+ type: string;
158
+ helpText: string;
159
+ variant: string;
160
+ prefix: React.JSX.Element;
161
+ suffix: string;
162
+ isClearable: boolean;
163
+ isRequired: boolean;
164
+ isDisabled: boolean;
165
+ size: string;
166
+ };
167
+ };
168
+ export default _default;
169
+ export declare const Primary: ({ ...rest }: {
170
+ [x: string]: any;
171
+ }) => React.JSX.Element;
172
+ export declare const Prefix: any;
173
+ export declare const Suffix: any;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./List.css";
3
+ export interface ListI {
4
+ type: "ul" | "ol";
5
+ unorderedStyle?: "Disc" | "Squire" | "Circle";
6
+ orderedStyle?: "Decimal" | "Roman" | "Alfabet";
7
+ children?: any;
8
+ }
9
+ declare const List: {
10
+ ({ type, unorderedStyle, orderedStyle, children, ...props }: ListI): React.JSX.Element;
11
+ Item: (props: any) => React.JSX.Element;
12
+ };
13
+ export default List;
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: {
5
+ ({ type, unorderedStyle, orderedStyle, children, ...props }: import("./List").ListI): React.JSX.Element;
6
+ Item: (props: any) => React.JSX.Element;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ };
11
+ export default _default;
12
+ export declare const Primary: ({ ...rest }: {
13
+ [x: string]: any;
14
+ }) => React.JSX.Element;
15
+ export declare const Order_List_with_decimal_number: any;
16
+ export declare const Order_List_with_Alfabet: any;
17
+ export declare const Order_List_with_Roman: any;
18
+ export declare const UnOrder_List_with_Circle: any;
19
+ export declare const UnOrder_List_with_Disc: any;
20
+ export declare const UnOrder_List_with_Squire: any;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { ButtonI } from "../Button/Button";
3
+ import "./MediaCard.css";
4
+ import { ActionListObjI } from "../Actionlist/Actionlist";
5
+ declare const MediaCard: ({ type, mediaSrc, primaryAction, orientation, title, subtitle, secondaryAction, headerActions, ...props }: MediaCardI) => React.JSX.Element;
6
+ export interface MediaCardI {
7
+ type: "Plain" | "Shadow" | "Borderd" | "BorderWithShadow";
8
+ orientation?: "Vertical" | "Horizontal";
9
+ mediaSrc?: string;
10
+ title?: string | React.ReactNode;
11
+ subtitle?: string | React.ReactNode;
12
+ primaryAction?: ButtonI;
13
+ secondaryAction?: ButtonI;
14
+ headerActions?: ActionListObjI[];
15
+ }
16
+ export default MediaCard;
@@ -0,0 +1,57 @@
1
+ import React from "react";
2
+ declare const _default: {
3
+ title: string;
4
+ component: ({ type, mediaSrc, primaryAction, orientation, title, subtitle, secondaryAction, headerActions, ...props }: import("./MediaCard").MediaCardI) => React.JSX.Element;
5
+ tags: string[];
6
+ argTypes: {
7
+ type: {
8
+ description: string;
9
+ control: {
10
+ type: string;
11
+ options: string[];
12
+ };
13
+ defaultValue: string;
14
+ };
15
+ title: {
16
+ description: string;
17
+ control: {
18
+ type: string;
19
+ };
20
+ defaultValue: string;
21
+ };
22
+ subtitle: {
23
+ description: string;
24
+ control: {
25
+ type: string;
26
+ };
27
+ defaultValue: string;
28
+ };
29
+ primaryAction: {
30
+ description: string;
31
+ control: {
32
+ type: string;
33
+ };
34
+ defaultValue: string;
35
+ };
36
+ secondaryAction: {
37
+ description: string;
38
+ control: {
39
+ type: string;
40
+ };
41
+ defaultValue: string;
42
+ };
43
+ mediaSrc: {
44
+ description: string;
45
+ control: {
46
+ type: string;
47
+ };
48
+ defaultValue: string;
49
+ };
50
+ };
51
+ };
52
+ export default _default;
53
+ export declare const Default: ({ ...rest }: {
54
+ [x: string]: any;
55
+ }) => React.JSX.Element;
56
+ export declare const CardWithNoImage: any;
57
+ export declare const HorizontalMediaCard: any;
@@ -0,0 +1,14 @@
1
+ import "./modal.css";
2
+ import React from "react";
3
+ import { ButtonI } from "../Button/Button";
4
+ declare const Modal: ({ isOpen, onDismiss, children, title, primaryAction, secondaryAction, footer, ...props }: ModalI) => React.JSX.Element | null;
5
+ export interface ModalI {
6
+ isOpen: boolean;
7
+ onDismiss: () => void;
8
+ children: string | React.ReactNode;
9
+ title?: string;
10
+ footer?: string | React.ReactNode;
11
+ primaryAction?: ButtonI;
12
+ secondaryAction?: ButtonI;
13
+ }
14
+ export default Modal;