elseware-ui 1.0.6

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 (94) hide show
  1. package/README.md +65 -0
  2. package/build/components/data-display/avatar/Avatar.d.ts +14 -0
  3. package/build/components/data-display/badge/Badge.d.ts +14 -0
  4. package/build/components/data-display/charts/BarChart.d.ts +9 -0
  5. package/build/components/data-display/charts/LineChart.d.ts +8 -0
  6. package/build/components/data-display/charts/PieChart.d.ts +9 -0
  7. package/build/components/data-display/chip/Chip.d.ts +9 -0
  8. package/build/components/data-display/image/CloudinaryImage.d.ts +9 -0
  9. package/build/components/data-display/image/Image.d.ts +9 -0
  10. package/build/components/data-display/image/index.d.ts +3 -0
  11. package/build/components/data-display/info/Info.d.ts +8 -0
  12. package/build/components/data-display/lists/List.d.ts +8 -0
  13. package/build/components/data-display/lists/ListItem.d.ts +14 -0
  14. package/build/components/data-display/lists/index.d.ts +3 -0
  15. package/build/components/data-display/price-tag/PriceTag.d.ts +9 -0
  16. package/build/components/data-display/rating/StarRating.d.ts +10 -0
  17. package/build/components/data-display/rating/index.d.ts +2 -0
  18. package/build/components/data-display/slider/Slider.d.ts +9 -0
  19. package/build/components/data-display/slider/SliderItem.d.ts +9 -0
  20. package/build/components/data-display/table/Table.d.ts +16 -0
  21. package/build/components/data-display/table/TableContent.d.ts +12 -0
  22. package/build/components/data-display/table/TableRow.d.ts +9 -0
  23. package/build/components/data-display/typography/chapter/Chapter.d.ts +12 -0
  24. package/build/components/data-display/typography/index.d.ts +12 -0
  25. package/build/components/data-display/typography/link/Link.d.ts +13 -0
  26. package/build/components/data-display/typography/paragraph/Paragraph.d.ts +12 -0
  27. package/build/components/data-display/typography/section/Section.d.ts +12 -0
  28. package/build/components/data-entry/button/Button.d.ts +18 -0
  29. package/build/components/data-entry/checkbox/Checkbox.d.ts +8 -0
  30. package/build/components/data-entry/date-selector/DateSelector.d.ts +8 -0
  31. package/build/components/data-entry/form/Form.d.ts +10 -0
  32. package/build/components/data-entry/form/FormResponse.d.ts +10 -0
  33. package/build/components/data-entry/form/index.d.ts +3 -0
  34. package/build/components/data-entry/image-input/ImageInput.d.ts +12 -0
  35. package/build/components/data-entry/image-input/ImageView.d.ts +8 -0
  36. package/build/components/data-entry/input/Input.d.ts +12 -0
  37. package/build/components/data-entry/input/InputResponse.d.ts +9 -0
  38. package/build/components/data-entry/input/index.d.ts +3 -0
  39. package/build/components/data-entry/multi-image-input/MultiImageInput.d.ts +9 -0
  40. package/build/components/data-entry/radio/Radio.d.ts +8 -0
  41. package/build/components/data-entry/rating/StarRatingInput.d.ts +8 -0
  42. package/build/components/data-entry/rating/index.d.ts +2 -0
  43. package/build/components/data-entry/select/Select.d.ts +8 -0
  44. package/build/components/data-entry/switch/Switch.d.ts +3 -0
  45. package/build/components/data-entry/text-area/TextArea.d.ts +9 -0
  46. package/build/components/feedback/backdrop/Backdrop.d.ts +7 -0
  47. package/build/components/feedback/skeleton/Skeleton.d.ts +6 -0
  48. package/build/components/feedback/toast/Toast.d.ts +8 -0
  49. package/build/components/feedback/transition/TransitionDropdown.d.ts +8 -0
  50. package/build/components/feedback/transition/TransitionFadeIn.d.ts +8 -0
  51. package/build/components/feedback/transition/index.d.ts +7 -0
  52. package/build/components/general/content-area/ContentArea.d.ts +8 -0
  53. package/build/components/general/footer-navbar/FooterNavbar.d.ts +3 -0
  54. package/build/components/general/header-navbar/HeaderNavbar.d.ts +9 -0
  55. package/build/components/general/sidebar/Sidebar.d.ts +7 -0
  56. package/build/components/general/sidebar/SidebarToggler.d.ts +6 -0
  57. package/build/components/general/sidebar/index.d.ts +3 -0
  58. package/build/components/layout/flex/FlexCol.d.ts +8 -0
  59. package/build/components/layout/flex/FlexRow.d.ts +8 -0
  60. package/build/components/layout/flex/index.d.ts +7 -0
  61. package/build/components/layout/grid/Grid.d.ts +7 -0
  62. package/build/components/layout/layout/Content.d.ts +7 -0
  63. package/build/components/layout/layout/Footer.d.ts +6 -0
  64. package/build/components/layout/layout/Header.d.ts +7 -0
  65. package/build/components/layout/layout/Layout.d.ts +7 -0
  66. package/build/components/layout/layout/Sider.d.ts +8 -0
  67. package/build/components/layout/layout/index.d.ts +6 -0
  68. package/build/components/navigation/breadcrumb/Breadcrumb.d.ts +12 -0
  69. package/build/components/navigation/breadcrumb/BreadcrumbItem.d.ts +8 -0
  70. package/build/components/navigation/breadcrumb/index.d.ts +3 -0
  71. package/build/components/navigation/menu/MIContext.d.ts +7 -0
  72. package/build/components/navigation/menu/Menu.d.ts +24 -0
  73. package/build/components/navigation/menu/MenuGroup.d.ts +10 -0
  74. package/build/components/navigation/menu/MenuItem.d.ts +16 -0
  75. package/build/components/navigation/menu/MenuItemTitle.d.ts +8 -0
  76. package/build/components/navigation/menu/index.d.ts +5 -0
  77. package/build/components/other/modal/Modal.d.ts +15 -0
  78. package/build/components/surfaces/accordion/Accordion.d.ts +10 -0
  79. package/build/components/surfaces/card/Card.d.ts +8 -0
  80. package/build/components/surfaces/card/CardContent.d.ts +8 -0
  81. package/build/components/surfaces/card/CardFooter.d.ts +8 -0
  82. package/build/components/surfaces/card/CardHeader.d.ts +10 -0
  83. package/build/components/surfaces/card/index.d.ts +5 -0
  84. package/build/components/utils/AsyncComponentWrapper.d.ts +10 -0
  85. package/build/components/utils/ShowMore.d.ts +7 -0
  86. package/build/index.d.ts +50 -0
  87. package/build/index.es.js +33396 -0
  88. package/build/index.es.js.map +1 -0
  89. package/build/index.js +33491 -0
  90. package/build/index.js.map +1 -0
  91. package/build/utils/hooks/components/useModal.d.ts +6 -0
  92. package/build/utils/hooks/components/useSider.d.ts +7 -0
  93. package/build/utils/useClickOutside.d.ts +4 -0
  94. package/package.json +89 -0
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # elseware UI
2
+
3
+ # Setup
4
+
5
+ Install the dependendecies via `npm i`.
6
+
7
+ # Run Storybook
8
+
9
+ To test the components and its features start storybook using `npm run storybook`.
10
+
11
+ ## Build
12
+
13
+ Run `npm run build` to build the UI framework.
14
+
15
+ ## Publishing to npm
16
+
17
+ ### Publishing a New Version
18
+
19
+ 1. **Update the version number**:
20
+ - Before publishing a new version, update the version in `package.json` following [semantic versioning](https://semver.org/).
21
+ - Example:
22
+ ```json
23
+ {
24
+ "name": "elseware-ui",
25
+ "version": "1.0.1",
26
+ ...
27
+ }
28
+ ```
29
+
30
+ 2. **Build the UI Framework**:
31
+ - Run the following command to ensure your changes are built and ready to be published:
32
+ ```bash
33
+ npm run build
34
+ ```
35
+
36
+ 3. **Login to npm**:
37
+ - If you're not already logged in to npm, log in using:
38
+ ```bash
39
+ npm login
40
+ ```
41
+
42
+ 4. **Publish the package**:
43
+ - To publish the package, run the following command:
44
+ ```bash
45
+ npm publish --access public
46
+ ```
47
+ - Make sure the package name in `package.json` is unique and does not conflict with other packages on npm.
48
+
49
+ ### Unpublishing an Older Version
50
+
51
+ If you need to unpublish a specific version of the package:
52
+
53
+ 1. **Unpublish a specific version**:
54
+ - To unpublish a specific version of your package (e.g., `1.0.0`), run:
55
+ ```bash
56
+ npm unpublish elseware-ui@1.0.0
57
+ ```
58
+
59
+ 2. **Unpublish the entire package**:
60
+ - If you need to unpublish the entire package, you can run the following command (not recommended for public packages):
61
+ ```bash
62
+ npm unpublish elseware-ui --force
63
+ ```
64
+
65
+ **Note:** Be cautious when using `--force` as npm restricts package unpublishing for packages that are older than 72 hours to avoid breaking dependencies.
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface AvatarProps {
4
+ alt?: string;
5
+ icon?: ReactNode;
6
+ children?: string;
7
+ variant?: "default" | "success" | "danger" | "warning" | "info";
8
+ shape?: "circle" | "square";
9
+ size?: "large" | "middle" | "small";
10
+ src?: string;
11
+ styles?: string;
12
+ onClick?: () => void;
13
+ }
14
+ export declare const Avatar: ({ alt, icon, children, variant, shape, size, src, styles, onClick }: AvatarProps) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface BadgeProps {
4
+ children?: ReactNode;
5
+ offset?: [number, number];
6
+ dot?: boolean;
7
+ count?: number;
8
+ variant?: "default" | "success" | "danger" | "warning" | "info";
9
+ shape?: "circle" | "square";
10
+ size?: "default" | "small";
11
+ showZero?: boolean;
12
+ styles?: string;
13
+ }
14
+ export declare const Badge: ({ children, offset, dot, count, variant, shape, size, showZero, styles, }: BadgeProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ChartOptions, ChartData } from "chart.js";
3
+ export interface BarChartProps {
4
+ data: ChartData<"bar">;
5
+ options: ChartOptions<"bar">;
6
+ styles?: string;
7
+ }
8
+ declare const BarChart: React.FC<BarChartProps>;
9
+ export default BarChart;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ChartData, ChartOptions } from 'chart.js';
3
+ export interface LineChartProps {
4
+ data: ChartData<'line'>;
5
+ options?: ChartOptions<'line'>;
6
+ }
7
+ declare const LineChart: React.FC<LineChartProps>;
8
+ export default LineChart;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ChartData, ChartOptions } from "chart.js";
3
+ export interface PieChartProps {
4
+ data: ChartData<"pie">;
5
+ options: ChartOptions<"pie">;
6
+ styles?: string;
7
+ }
8
+ declare const PieChart: React.FC<PieChartProps>;
9
+ export default PieChart;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface ChipProps {
3
+ label?: string;
4
+ variant?: "default" | "success" | "danger" | "warning" | "info";
5
+ shape?: "circle" | "square";
6
+ size?: "default" | "small";
7
+ styles?: string;
8
+ }
9
+ export declare const Chip: ({ label, variant, shape, size, styles, }: ChipProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface CloudinaryImageProps {
3
+ publicId?: string;
4
+ secure?: boolean;
5
+ alt?: string;
6
+ styles?: string;
7
+ }
8
+ declare function CloudinaryImage({ publicId, secure, alt, styles }: CloudinaryImageProps): React.JSX.Element;
9
+ export default CloudinaryImage;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface ImageProps {
3
+ alt?: string;
4
+ src?: string;
5
+ height?: number;
6
+ width?: number;
7
+ styles?: string;
8
+ }
9
+ export declare const Image: ({ alt, src, height, width, styles, }: ImageProps) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { Image } from "./Image";
2
+ import CloudinaryImage from "./CloudinaryImage";
3
+ export { Image, CloudinaryImage };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface InfoProps {
4
+ children?: ReactNode;
5
+ styles?: string;
6
+ }
7
+ declare function Info({ children, styles }: InfoProps): React.JSX.Element;
8
+ export default Info;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ListProps {
4
+ title?: string;
5
+ children: ReactNode;
6
+ }
7
+ declare function List({ title, children }: ListProps): React.JSX.Element;
8
+ export default List;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ListItemWrapperProps {
4
+ TypographyComponent: ReactNode;
5
+ x: ReactNode;
6
+ }
7
+ export declare const ListItemWrapper: ({ TypographyComponent, x }: ListItemWrapperProps) => React.JSX.Element;
8
+ export interface ListItemProps {
9
+ TypographyComponent?: ReactNode;
10
+ bulletVisible?: boolean;
11
+ children: ReactNode;
12
+ }
13
+ declare const ListItem: ({ TypographyComponent, bulletVisible, children }: ListItemProps) => React.JSX.Element;
14
+ export default ListItem;
@@ -0,0 +1,3 @@
1
+ import List from "./List";
2
+ import ListItem from "./ListItem";
3
+ export { List, ListItem };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface PriceTagProps {
3
+ discount?: number;
4
+ price: number;
5
+ code?: string;
6
+ styles?: string;
7
+ }
8
+ declare function PriceTag({ discount, price, code, styles }: PriceTagProps): React.JSX.Element;
9
+ export { PriceTag };
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface StarRatingProps {
3
+ rating: number;
4
+ isNumericRatingEnabled?: boolean;
5
+ reviewAmount?: number;
6
+ isReviewAmountEnabled?: boolean;
7
+ styles?: string;
8
+ }
9
+ declare function StarRating({ rating, reviewAmount, isNumericRatingEnabled, isReviewAmountEnabled, styles }: StarRatingProps): React.JSX.Element;
10
+ export default StarRating;
@@ -0,0 +1,2 @@
1
+ import StarRating from "./StarRating";
2
+ export { StarRating };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface SliderProps {
3
+ isLoading?: boolean;
4
+ isSuccess?: boolean;
5
+ coverArt: string;
6
+ screenshots: string[];
7
+ }
8
+ declare function Slider({ isLoading, isSuccess, coverArt, screenshots }: SliderProps): React.JSX.Element;
9
+ export default Slider;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface SliderItemProps {
3
+ img?: string;
4
+ onClick?: () => void;
5
+ selected?: boolean;
6
+ styles?: string;
7
+ }
8
+ declare function SliderItem({ img, onClick, selected, styles }: SliderItemProps): React.JSX.Element;
9
+ export default SliderItem;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ export interface TableProps {
3
+ title?: string;
4
+ headers: {
5
+ [key: string]: string;
6
+ };
7
+ data: any[];
8
+ isLoading?: boolean;
9
+ isSuccess?: boolean;
10
+ isError?: boolean;
11
+ error?: string;
12
+ enableSelect: boolean;
13
+ maxRowCount?: number;
14
+ }
15
+ declare function Table({ title, headers, data, isLoading, isSuccess, isError, error, enableSelect, maxRowCount }: TableProps): React.JSX.Element;
16
+ export default Table;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface TableContentProps {
3
+ title?: string;
4
+ headers: {
5
+ [key: string]: string;
6
+ };
7
+ data: any[];
8
+ enableSelect: boolean;
9
+ maxRowCount?: number;
10
+ }
11
+ declare function TableContent({ title, headers, data, enableSelect, maxRowCount }: TableContentProps): React.JSX.Element;
12
+ export default TableContent;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export interface TableRowProps {
3
+ rowData: any;
4
+ headers: {
5
+ [key: string]: string;
6
+ };
7
+ }
8
+ declare function TableRow({ rowData, headers }: TableRowProps): React.JSX.Element;
9
+ export default TableRow;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface ChapterProps {
3
+ level: 1 | 2 | 3;
4
+ children?: string;
5
+ variant?: "default" | "success" | "danger" | "warning" | "info";
6
+ styles?: string;
7
+ decoration?: "underline" | "overline" | "line-through" | "no-underline";
8
+ bold?: boolean;
9
+ italic?: boolean;
10
+ onClick?: () => void;
11
+ }
12
+ export declare const Chapter: ({ level, children, variant, decoration, bold, italic, styles, onClick }: ChapterProps) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Chapter } from "./chapter/Chapter";
3
+ import { Section } from "./section/Section";
4
+ import { Paragraph } from "./paragraph/Paragraph";
5
+ import { Link } from "./link/Link";
6
+ declare const Typography: {
7
+ Chapter: ({ level, children, variant, decoration, bold, italic, styles, onClick }: import("./chapter/Chapter").ChapterProps) => import("react").JSX.Element;
8
+ Section: ({ level, children, variant, decoration, bold, italic, styles, onClick }: import("./section/Section").SectionProps) => import("react").JSX.Element;
9
+ Paragraph: ({ level, children, variant, decoration, bold, italic, styles, onClick }: import("./paragraph/Paragraph").ParagraphProps) => import("react").JSX.Element;
10
+ Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: import("./link/Link").LinkProps) => import("react").JSX.Element;
11
+ };
12
+ export { Typography, Chapter, Section, Paragraph, Link };
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ export interface LinkProps {
3
+ children?: string;
4
+ href?: string;
5
+ target?: "_blank" | "_self" | "_parent" | "_top";
6
+ variant?: "default" | "success" | "danger" | "warning" | "info";
7
+ styles?: string;
8
+ decoration?: "underline" | "overline" | "line-through" | "no-underline";
9
+ bold?: boolean;
10
+ italic?: boolean;
11
+ onClick?: () => void;
12
+ }
13
+ export declare const Link: ({ children, href, target, variant, decoration, bold, italic, styles, onClick, }: LinkProps) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface ParagraphProps {
3
+ level: 1 | 2 | 3;
4
+ children?: string;
5
+ variant?: "default" | "success" | "danger" | "warning" | "info";
6
+ styles?: string;
7
+ decoration?: "underline" | "overline" | "line-through" | "no-underline";
8
+ bold?: boolean;
9
+ italic?: boolean;
10
+ onClick?: () => void;
11
+ }
12
+ export declare const Paragraph: ({ level, children, variant, decoration, bold, italic, styles, onClick }: ParagraphProps) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface SectionProps {
3
+ level: 1 | 2 | 3;
4
+ children?: string;
5
+ variant?: "default" | "success" | "danger" | "warning" | "info";
6
+ styles?: string;
7
+ decoration?: "underline" | "overline" | "line-through" | "no-underline";
8
+ bold?: boolean;
9
+ italic?: boolean;
10
+ onClick?: () => void;
11
+ }
12
+ export declare const Section: ({ level, children, variant, decoration, bold, italic, styles, onClick }: SectionProps) => React.JSX.Element;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ButtonProps {
4
+ type: "button" | "submit";
5
+ icon?: ReactNode;
6
+ text?: string;
7
+ children?: ReactNode;
8
+ loading?: boolean;
9
+ disabled?: boolean;
10
+ ghost?: boolean;
11
+ block?: boolean;
12
+ variant?: "default" | "success" | "danger" | "warning" | "info";
13
+ shape?: "default" | "circle" | "round";
14
+ size?: "large" | "middle" | "small";
15
+ styles?: string;
16
+ onClick?: () => void;
17
+ }
18
+ export declare const Button: ({ type, icon, text, children, loading, disabled, ghost, block, variant, shape, size, styles, onClick, }: ButtonProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface CheckboxProps {
4
+ placeholder: string;
5
+ options: any[];
6
+ }
7
+ declare function Checkbox({ placeholder, options, ...props }: FieldHookConfig<string> & CheckboxProps): React.JSX.Element;
8
+ export default Checkbox;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ interface DateSelectorProps {
4
+ placeholder: string;
5
+ styles?: string;
6
+ }
7
+ export declare const DateSelector: ({ placeholder, styles, ...props }: FieldHookConfig<string> & DateSelectorProps) => React.JSX.Element;
8
+ export default DateSelector;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface FormProps {
3
+ initialValues?: object;
4
+ validationSchema?: object;
5
+ enableReinitialize?: boolean;
6
+ children?: React.ReactNode;
7
+ styles?: string;
8
+ onSubmit: any;
9
+ }
10
+ export declare const Form: ({ initialValues, validationSchema, enableReinitialize, children, styles, onSubmit }: FormProps) => React.JSX.Element;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ export interface FormResponseProps {
3
+ text: string | undefined;
4
+ variant?: "default" | "success" | "danger" | "warning" | "info";
5
+ shape?: "default" | "circle" | "round";
6
+ size?: "large" | "middle" | "small";
7
+ styles?: string;
8
+ }
9
+ declare function FormResponse({ text, variant, shape, size, styles }: FormResponseProps): React.JSX.Element;
10
+ export default FormResponse;
@@ -0,0 +1,3 @@
1
+ import { Form } from "./Form";
2
+ import FormResponse from "./FormResponse";
3
+ export { Form, FormResponse };
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ export interface ImageInputProps {
3
+ title?: string;
4
+ uploadDir?: string;
5
+ onValueChanged?: (imageUrl: string) => void;
6
+ disableSetValue?: boolean;
7
+ }
8
+ export interface ImageInputRef {
9
+ handleResetClick: () => void;
10
+ }
11
+ declare const ImageInput: React.ForwardRefExoticComponent<(Omit<React.ClassAttributes<HTMLInputElement> & React.InputHTMLAttributes<HTMLInputElement> & import("formik").FieldConfig<string> & ImageInputProps, "ref"> | Omit<React.ClassAttributes<HTMLSelectElement> & React.SelectHTMLAttributes<HTMLSelectElement> & import("formik").FieldConfig<string> & ImageInputProps, "ref"> | Omit<React.ClassAttributes<HTMLTextAreaElement> & React.TextareaHTMLAttributes<HTMLTextAreaElement> & import("formik").FieldConfig<string> & ImageInputProps, "ref">) & React.RefAttributes<ImageInputRef>>;
12
+ export default ImageInput;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ export interface ImageViewProps {
3
+ imageUrl?: string;
4
+ secure?: boolean;
5
+ alt?: string;
6
+ }
7
+ declare function ImageView({ imageUrl, secure, alt }: ImageViewProps): React.JSX.Element;
8
+ export default ImageView;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface InputProps {
4
+ type: "text" | "password" | "number";
5
+ placeholder: string;
6
+ styles?: string;
7
+ step?: string;
8
+ }
9
+ export interface PasswordVisibilityTogglerProps {
10
+ onClick: (visibility: boolean) => void;
11
+ }
12
+ export declare const Input: ({ type, placeholder, styles, step, ...props }: FieldHookConfig<string> & InputProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export interface InputResponseProps {
3
+ name: string;
4
+ visibility?: boolean;
5
+ variant?: "default" | "success" | "danger" | "warning" | "info";
6
+ styles?: string;
7
+ }
8
+ declare function InputResponse({ name, visibility, variant, styles }: InputResponseProps): React.JSX.Element;
9
+ export default InputResponse;
@@ -0,0 +1,3 @@
1
+ import { Input } from "./Input";
2
+ import InputResponse from "./InputResponse";
3
+ export { Input, InputResponse };
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface MultiImageInputProps {
4
+ title?: string;
5
+ uploadDir?: string;
6
+ name: string;
7
+ }
8
+ declare function MultiImageInput({ title, uploadDir, ...props }: FieldHookConfig<string[]> & MultiImageInputProps): React.JSX.Element;
9
+ export default MultiImageInput;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface RadioProps {
4
+ placeholder: string;
5
+ options: any[];
6
+ }
7
+ declare function Radio({ placeholder, options, ...props }: FieldHookConfig<string> & RadioProps): React.JSX.Element;
8
+ export default Radio;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface StarRatingInputProps {
4
+ starAmount: number;
5
+ styles?: string;
6
+ }
7
+ declare function StarRatingInput({ starAmount, styles, ...props }: FieldHookConfig<string> & StarRatingInputProps): React.JSX.Element;
8
+ export default StarRatingInput;
@@ -0,0 +1,2 @@
1
+ import StarRatingInput from "./StarRatingInput";
2
+ export { StarRatingInput };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface SelectProps {
4
+ placeholder: string;
5
+ options: any[];
6
+ }
7
+ declare function Select({ placeholder, options, ...props }: FieldHookConfig<string> & SelectProps): React.JSX.Element;
8
+ export default Select;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare function Switch(): React.JSX.Element;
3
+ export default Switch;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { FieldHookConfig } from "formik";
3
+ export interface TextAreaProps {
4
+ placeholder: string;
5
+ limit: number;
6
+ styles?: string;
7
+ }
8
+ declare function TextArea({ placeholder, limit, styles, ...props }: FieldHookConfig<string> & TextAreaProps): React.JSX.Element;
9
+ export default TextArea;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export interface BackdropProps {
3
+ children?: React.ReactNode;
4
+ styles?: string;
5
+ }
6
+ export declare const Backdrop: ({ children, styles }: BackdropProps) => React.JSX.Element;
7
+ export default Backdrop;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ export interface SkeletonProps {
3
+ children?: React.ReactNode;
4
+ styles?: string;
5
+ }
6
+ export declare const Skeleton: ({ children, styles }: SkeletonProps) => React.JSX.Element;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import "react-toastify/dist/ReactToastify.css";
3
+ declare function sendToast(data?: {
4
+ status: string;
5
+ message: string;
6
+ }): void;
7
+ declare function Toast(): React.JSX.Element;
8
+ export { Toast, sendToast };
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface TransitionDropdownProps {
4
+ visibility: any;
5
+ children?: ReactNode;
6
+ }
7
+ declare function TransitionDropdown({ visibility, children }: TransitionDropdownProps): React.JSX.Element;
8
+ export default TransitionDropdown;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface TransitionDropdownProps {
4
+ visibility: any;
5
+ children?: ReactNode;
6
+ }
7
+ declare function TransitionFadeIn({ visibility, children }: TransitionDropdownProps): React.JSX.Element;
8
+ export default TransitionFadeIn;
@@ -0,0 +1,7 @@
1
+ import TransitionDropdown from "./TransitionDropdown";
2
+ import TransitionFadeIn from "./TransitionFadeIn";
3
+ declare const Transition: {
4
+ TransitionDropdown: typeof TransitionDropdown;
5
+ TransitionFadeIn: typeof TransitionFadeIn;
6
+ };
7
+ export default Transition;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface ContentAreaProps {
4
+ children?: ReactNode;
5
+ styles?: string;
6
+ }
7
+ declare function ContentArea({ children, styles }: ContentAreaProps): React.JSX.Element;
8
+ export default ContentArea;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare function FooterNavbar(): React.JSX.Element;
3
+ export default FooterNavbar;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { ReactNode } from "react";
3
+ export interface HeaderNavbarProps {
4
+ left?: ReactNode;
5
+ middle?: ReactNode;
6
+ right?: ReactNode;
7
+ }
8
+ declare function HeaderNavbar({ left, middle, right }: HeaderNavbarProps): React.JSX.Element;
9
+ export default HeaderNavbar;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "./sidebar.css";
3
+ export interface SidebarProps {
4
+ data?: any;
5
+ }
6
+ declare function Sidebar({ data }: SidebarProps): React.JSX.Element;
7
+ export default Sidebar;