@kwantis-id3/frontend-library 1.0.0-rc.4 → 1.0.0-rc.40

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 (71) hide show
  1. package/README.md +6 -332
  2. package/dist/esm/index.js +302 -136
  3. package/dist/esm/index.js.map +1 -1
  4. package/dist/esm/types/components/Accordion/Accordion.d.ts +3 -37
  5. package/dist/esm/types/components/Accordion/AccordionInterfaces.d.ts +21 -0
  6. package/dist/esm/types/components/Accordion/AccordionStyled.d.ts +20 -9
  7. package/dist/esm/types/components/Accordion/index.d.ts +4 -1
  8. package/dist/esm/types/components/Button/Button.d.ts +2 -24
  9. package/dist/esm/types/components/Button/ButtonInterfaces.d.ts +24 -0
  10. package/dist/esm/types/components/Button/ButtonStyled.d.ts +41 -0
  11. package/dist/esm/types/components/Button/index.d.ts +2 -1
  12. package/dist/esm/types/components/Card/CardInterfaces.d.ts +1 -1
  13. package/dist/esm/types/components/Card/index.d.ts +2 -2
  14. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
  15. package/dist/esm/types/components/Checkbox/CheckboxInterfaces.d.ts +24 -0
  16. package/dist/esm/types/components/Checkbox/CheckboxStyled.d.ts +32 -0
  17. package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
  18. package/dist/esm/types/components/DataGrid/DataGrid.d.ts +3 -0
  19. package/dist/esm/types/components/DataGrid/DataGridInterfaces.d.ts +9 -0
  20. package/dist/esm/types/components/DataGrid/index.d.ts +2 -0
  21. package/dist/esm/types/components/Drawer/Drawer.d.ts +3 -0
  22. package/dist/esm/types/components/Drawer/DrawerInterfaces.d.ts +35 -0
  23. package/dist/esm/types/components/Drawer/DrawerStyled.d.ts +28 -0
  24. package/dist/esm/types/components/Drawer/index.d.ts +2 -0
  25. package/dist/esm/types/components/Dropdown/Dropdown.d.ts +2 -43
  26. package/dist/esm/types/components/Dropdown/DropdownInterfaces.d.ts +52 -0
  27. package/dist/esm/types/components/Dropdown/DropdownStyled.d.ts +1 -0
  28. package/dist/esm/types/components/Dropdown/index.d.ts +2 -1
  29. package/dist/esm/types/components/Indicator/IndicatorInterfaces.d.ts +1 -1
  30. package/dist/esm/types/components/Indicator/NeutralIndicator.d.ts +3 -0
  31. package/dist/esm/types/components/Indicator/index.d.ts +2 -2
  32. package/dist/esm/types/components/InputField/InputField.d.ts +3 -11
  33. package/dist/esm/types/components/InputField/InputFieldInterfaces.d.ts +9 -0
  34. package/dist/esm/types/components/InputField/index.d.ts +2 -1
  35. package/dist/esm/types/components/Modal/Modal.d.ts +3 -19
  36. package/dist/esm/types/components/Modal/ModalInterfaces.d.ts +16 -0
  37. package/dist/esm/types/components/Modal/index.d.ts +2 -2
  38. package/dist/esm/types/components/MultiViewList/MultiViewGrid.d.ts +5 -0
  39. package/dist/esm/types/components/MultiViewList/MultiViewList.d.ts +1 -0
  40. package/dist/esm/types/components/MultiViewList/MultiViewListInterfaces.d.ts +13 -2
  41. package/dist/esm/types/components/MultiViewList/MultiViewListStyled.d.ts +3 -0
  42. package/dist/esm/types/components/MultiViewList/index.d.ts +2 -1
  43. package/dist/esm/types/components/SelectFilter/index.d.ts +2 -2
  44. package/dist/esm/types/components/Slider/Slider.d.ts +2 -2
  45. package/dist/esm/types/components/Slider/index.d.ts +1 -1
  46. package/dist/esm/types/components/Table/DebouncedFilter.d.ts +1 -2
  47. package/dist/esm/types/components/Table/DebouncedInput.d.ts +0 -1
  48. package/dist/esm/types/components/Table/index.d.ts +1 -1
  49. package/dist/esm/types/components/Tag/Tag.d.ts +2 -22
  50. package/dist/esm/types/components/Tag/TagInterfaces.d.ts +22 -0
  51. package/dist/esm/types/components/Tag/TagStyled.d.ts +7 -0
  52. package/dist/esm/types/components/Tag/index.d.ts +2 -1
  53. package/dist/esm/types/components/ThemeContext/ThemeContext.d.ts +4 -3
  54. package/dist/esm/types/components/ThemeContext/ThemeInterfaces.d.ts +2 -0
  55. package/dist/esm/types/components/TreeView/ControlledTreeView.d.ts +4 -0
  56. package/dist/esm/types/components/TreeView/TreeUtils.d.ts +22 -0
  57. package/dist/esm/types/components/TreeView/TreeViewInterfaces.d.ts +83 -0
  58. package/dist/esm/types/components/TreeView/TreeViewSyled.d.ts +24 -0
  59. package/dist/esm/types/components/TreeView/UncontrolledTreeView.d.ts +3 -0
  60. package/dist/esm/types/components/TreeView/index.d.ts +3 -0
  61. package/dist/esm/types/components/index.d.ts +16 -12
  62. package/dist/esm/types/utils/colors.d.ts +12 -2
  63. package/dist/esm/types/utils/index.d.ts +4 -7
  64. package/dist/esm/types/utils/isMobile.d.ts +1 -2
  65. package/dist/esm/types/utils/testing.d.ts +21 -1
  66. package/dist/index.d.ts +274 -67
  67. package/package.json +29 -24
  68. package/changelog.md +0 -197
  69. package/dist/esm/types/utils/styled.d.ts +0 -2
  70. /package/dist/esm/types/components/InputField/{StyledInputField.d.ts → InputFieldStyled.d.ts} +0 -0
  71. /package/dist/esm/types/components/Modal/{StyledModal.d.ts → ModalStyled.d.ts} +0 -0
@@ -1,37 +1,3 @@
1
- /** @jsxImportSource @emotion/react */
2
- import { Interpolation } from "@emotion/styled";
3
- import React from "react";
4
- import { Theme } from "@emotion/react";
5
- export type AccordionProps = {
6
- /** Text of the accordion trigger */
7
- title: string;
8
- /** Content of the accordion */
9
- children: React.ReactNode;
10
- /** Custom trigger component */
11
- customTrigger?: React.ReactNode;
12
- /** Works only if uncontrolled (isOpen props is not present) */
13
- defaultOpen?: boolean;
14
- /** Color of the accordion */
15
- color?: string;
16
- /** Color of the icon */
17
- iconColor?: string;
18
- /** Color of the divider */
19
- dividerColor?: string;
20
- /** Hide the icon */
21
- hideIcon?: boolean;
22
- /** Hide the divider */
23
- hideDivider?: boolean;
24
- /** Pass your state value here if the Accordion needs to be Controlled */
25
- isOpen?: boolean;
26
- /** Lazy render the content of the accordion */
27
- isLazy?: boolean;
28
- /** onClick handler */
29
- onClick?: () => void;
30
- /** onOpen handler */
31
- onOpen?: () => void;
32
- /** onClose handler */
33
- onClose?: () => void;
34
- /** Custom styles */
35
- sx?: Interpolation<Theme>;
36
- };
37
- export declare const Accordion: (props: AccordionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { FC } from "react";
2
+ import { TAccordionProps } from "./AccordionInterfaces";
3
+ export declare const Accordion: FC<TAccordionProps>;
@@ -0,0 +1,21 @@
1
+ import { PropsWithChildren } from "react";
2
+ export type TAccordionProps = PropsWithChildren & {
3
+ /** Title to be used if no custom trigger is passed */
4
+ title: string;
5
+ /** Pass your state value here if the Accordion needs to be Controlled */
6
+ isOpen?: boolean;
7
+ /** Default open state if the accordion is Uncontrolled */
8
+ defaultOpen?: boolean;
9
+ /** Callback function to be called when the Accordion is clicked */
10
+ onClick?: () => void;
11
+ /** Callback function to be called when the Accordion opens */
12
+ onOpen?: () => void;
13
+ /** Callback function to be called when the Accordion closes */
14
+ onClose?: () => void;
15
+ /** Custom trigger element */
16
+ trigger?: (isOpen: boolean) => React.ReactNode;
17
+ /** Variant of the Accordion. Default has everything wrapped in borders, while light just renders the content and the title without setting colors
18
+ * @default "default"
19
+ */
20
+ variant?: "default" | "light";
21
+ };
@@ -1,23 +1,34 @@
1
- export declare const Divider: import("@emotion/styled").StyledComponent<{
1
+ export declare const AccordionGroup: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("@emotion/react").Theme;
3
3
  as?: React.ElementType;
4
4
  } & {
5
- $color: string;
5
+ $variant: "default" | "light";
6
6
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
- export declare const TitleDiv: import("@emotion/styled").StyledComponent<{
7
+ export declare const StyledAccordion: import("@emotion/styled").StyledComponent<{
8
8
  theme?: import("@emotion/react").Theme;
9
9
  as?: React.ElementType;
10
10
  } & {
11
- $color: string;
12
- $textColor: string;
11
+ $variant: "default" | "light";
12
+ $isOpen: boolean;
13
13
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
- export declare const IconContainer: import("@emotion/styled").StyledComponent<{
14
+ export declare const StyledAccordionHeader: import("@emotion/styled").StyledComponent<{
15
15
  theme?: import("@emotion/react").Theme;
16
16
  as?: React.ElementType;
17
17
  } & {
18
- $iconColor: string;
18
+ $variant: "default" | "light";
19
+ $isOpen: boolean;
20
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
21
+ export declare const StyledAccordionContent: import("@emotion/styled").StyledComponent<{
22
+ theme?: import("@emotion/react").Theme;
23
+ as?: React.ElementType;
24
+ } & {
25
+ $isOpen: boolean;
26
+ $variant: "default" | "light";
27
+ $defaultHeight: string;
19
28
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
- export declare const TitleH2: import("@emotion/styled").StyledComponent<{
29
+ export declare const Icon: import("@emotion/styled").StyledComponent<{
21
30
  theme?: import("@emotion/react").Theme;
22
31
  as?: React.ElementType;
23
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {}>;
32
+ } & {
33
+ $isOpen: boolean;
34
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1 +1,4 @@
1
- export { Accordion, AccordionProps } from "./Accordion";
1
+ import { AccordionGroup } from "./AccordionStyled";
2
+ export * from "./Accordion";
3
+ export * from "./AccordionInterfaces";
4
+ export { AccordionGroup };
@@ -1,25 +1,3 @@
1
1
  /** @jsxImportSource @emotion/react */
2
- import * as React from "react";
3
- import { Interpolation } from "@emotion/styled";
4
- import { Theme } from "@emotion/react";
5
- export type ButtonVariants = "contained" | "outlined" | "text";
6
- export type ButtonProps = {
7
- /** Color of the button */
8
- color?: string;
9
- /** Type of the button */
10
- type?: "button" | "submit" | "reset";
11
- /** Custom styles */
12
- sx?: Interpolation<Theme>;
13
- /** Variant of the button, either `contained`, `outlined` or `text` */
14
- variant?: ButtonVariants;
15
- /** onClick handler */
16
- onClick?: () => void;
17
- className?: string;
18
- /** HTML id */
19
- htmlId?: string;
20
- /** Disabled state */
21
- disabled?: boolean;
22
- /** Elements to render as children */
23
- children?: React.ReactNode;
24
- };
25
- export declare const Button: (props: ButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ import { TButtonProps } from "./ButtonInterfaces";
3
+ export declare const Button: (props: TButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { Interpolation } from "@emotion/react";
2
+ import { Theme } from "@emotion/react/dist/declarations/src";
3
+ export type TButtonVariants = "contained" | "outlined" | "text";
4
+ export type TButtonProps = {
5
+ /** Color of the button */
6
+ color?: string;
7
+ /** Type of the button */
8
+ type?: "button" | "submit" | "reset";
9
+ /** Custom styles */
10
+ sx?: Interpolation<Theme>;
11
+ /** Variant of the button, either `contained`, `outlined` or `text` */
12
+ variant?: TButtonVariants;
13
+ /** The button size; either "large" or "small" */
14
+ size?: "small" | "large";
15
+ /** onClick handler */
16
+ onClick?: () => void;
17
+ className?: string;
18
+ /** HTML id */
19
+ htmlId?: string;
20
+ /** Disabled state */
21
+ disabled?: boolean;
22
+ /** Elements to render as children */
23
+ children?: React.ReactNode;
24
+ };
@@ -0,0 +1,41 @@
1
+ export declare const StylishButton: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ $size: "small" | "large";
6
+ $disabled?: boolean;
7
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
8
+ export declare const ContainedButton: import("@emotion/styled").StyledComponent<{
9
+ theme?: import("@emotion/react").Theme;
10
+ as?: React.ElementType;
11
+ } & {
12
+ $size: "small" | "large";
13
+ $disabled?: boolean;
14
+ } & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
15
+ theme?: import("@emotion/react").Theme;
16
+ } & {
17
+ $color: string;
18
+ $textColor: string;
19
+ }, {}, {}>;
20
+ export declare const OutlinedButton: import("@emotion/styled").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme;
22
+ as?: React.ElementType;
23
+ } & {
24
+ $size: "small" | "large";
25
+ $disabled?: boolean;
26
+ } & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
27
+ theme?: import("@emotion/react").Theme;
28
+ } & {
29
+ $color: string;
30
+ }, {}, {}>;
31
+ export declare const TextButton: import("@emotion/styled").StyledComponent<{
32
+ theme?: import("@emotion/react").Theme;
33
+ as?: React.ElementType;
34
+ } & {
35
+ $size: "small" | "large";
36
+ $disabled?: boolean;
37
+ } & import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
38
+ theme?: import("@emotion/react").Theme;
39
+ } & {
40
+ $color: string;
41
+ }, {}, {}>;
@@ -1 +1,2 @@
1
- export { Button, ButtonProps } from "./Button";
1
+ export * from "./Button";
2
+ export * from "./ButtonInterfaces";
@@ -1,5 +1,5 @@
1
1
  import { Interpolation, Theme } from "@emotion/react";
2
- import React, { PropsWithChildren } from "react";
2
+ import { PropsWithChildren } from "react";
3
3
  export type TCardSectionProps = PropsWithChildren & {
4
4
  sx?: Interpolation<Theme>;
5
5
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
@@ -1,2 +1,2 @@
1
- export { Card, CardHeader, CardContent, CardFooter, CardIndicators, CardMediaSection, } from "./Card";
2
- export { TCardSectionProps } from "./CardInterfaces";
1
+ export * from "./Card";
2
+ export * from "./CardInterfaces";
@@ -0,0 +1,3 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { TCheckboxProps } from "./CheckboxInterfaces";
3
+ export declare const Checkbox: ({ label, htmlId, checked, defaultChecked, onChange, indeterminate, disabled, className, sx, name, size, }: TCheckboxProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { Interpolation } from "@emotion/react";
2
+ import { Theme } from "@emotion/react/dist/declarations/src";
3
+ export type TCheckboxProps = {
4
+ /** Lable of the checkbox */
5
+ label?: string;
6
+ /** HTML id */
7
+ htmlId?: string;
8
+ name?: string;
9
+ /** Controlled checked state */
10
+ checked?: boolean;
11
+ /** Uncontrolled default checked state */
12
+ defaultChecked?: boolean;
13
+ /** onChange handler */
14
+ onChange?: (checked: boolean) => void;
15
+ /** Mixed state in its children checkboxes */
16
+ indeterminate?: boolean;
17
+ /** Disabled state */
18
+ disabled?: boolean;
19
+ className?: string;
20
+ /** Custom styles */
21
+ sx?: Interpolation<Theme>;
22
+ /** Checkbox sizes */
23
+ size?: "small" | "medium" | "large";
24
+ };
@@ -0,0 +1,32 @@
1
+ export declare const StyledLabel: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ $disabled?: boolean;
6
+ }, import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {}>;
7
+ export declare const StyledCheckboxInput: import("@emotion/styled").StyledComponent<{
8
+ theme?: import("@emotion/react").Theme;
9
+ as?: React.ElementType;
10
+ }, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
11
+ export declare const StyledCheckboxBox: import("@emotion/styled").StyledComponent<{
12
+ theme?: import("@emotion/react").Theme;
13
+ as?: React.ElementType;
14
+ } & {
15
+ $checked: boolean;
16
+ $indeterminate: boolean;
17
+ $disabled?: boolean;
18
+ $backgroundColor?: string;
19
+ $checkmarkColor?: string;
20
+ $borderColor?: string;
21
+ $size?: "small" | "medium" | "large";
22
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
23
+ export declare const StyledIconWrapper: import("@emotion/styled").StyledComponent<{
24
+ theme?: import("@emotion/react").Theme;
25
+ as?: React.ElementType;
26
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
27
+ export declare const StyledLabelText: import("@emotion/styled").StyledComponent<{
28
+ theme?: import("@emotion/react").Theme;
29
+ as?: React.ElementType;
30
+ } & {
31
+ $disabled?: boolean;
32
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1,2 @@
1
+ export * from "./Checkbox";
2
+ export * from "./CheckboxInterfaces";
@@ -0,0 +1,3 @@
1
+ import { TCellValues } from "../Table";
2
+ import { TDataGridProps, TDataGridRow } from "./DataGridInterfaces";
3
+ export declare const DataGrid: <Cell extends TCellValues, Row extends TDataGridRow<Cell>>(props: TDataGridProps<Cell, Row>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { ColumnDef } from "@tanstack/react-table";
2
+ import { TCellValues } from "../Table";
3
+ export type TDataGridProps<Cell extends TCellValues, Row extends TDataGridRow<Cell>> = {
4
+ columns: ColumnDef<TDataGridRow<Cell>, Cell>[];
5
+ data: Row[] | undefined;
6
+ };
7
+ export type TDataGridRow<Cell extends TCellValues> = {
8
+ [key: string]: Cell;
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./DataGrid";
2
+ export * from "./DataGridInterfaces";
@@ -0,0 +1,3 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { TDrawerProps } from "./DrawerInterfaces";
3
+ export declare const Drawer: ({ anchor, isOpen: isOpenProp, openContent, closedContent, openTrigger, closedTrigger, minOpen, maxOpen, bgColor, triggerColor, triggerHoverColor, onOpen, onClose, zIndex, hideTrigger, keepMounted, sx, }: TDrawerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { Interpolation, Theme } from "@emotion/react";
2
+ import { ReactNode } from "react";
3
+ export type TDrawerProps = {
4
+ /** Position of the drawer */
5
+ anchor: "top" | "right" | "bottom" | "left";
6
+ /** Optional state value to control the component */
7
+ isOpen?: boolean;
8
+ /** Trigger showed when drawer is closed */
9
+ closedTrigger?: ReactNode;
10
+ /** Trigger showed when drawer is open */
11
+ openTrigger?: ReactNode;
12
+ /** Component to be rendered when Drawer is open */
13
+ openContent?: ReactNode;
14
+ /** Component to be rendered when Drawer is closed */
15
+ closedContent?: ReactNode;
16
+ /** Min open of the drawer as number of pixels. If not defined the minOpen will be the height of closedContent if present, otherwise 0px */
17
+ minOpen?: number;
18
+ /** Max open of the drawer as number of pixels. If not defined the maxOpen will be the height of openContent with limit at 90vh/vw */
19
+ maxOpen?: number;
20
+ /** Background color */
21
+ bgColor?: string;
22
+ /** Trigger Color */
23
+ triggerColor?: string;
24
+ /** Trigger hover color */
25
+ triggerHoverColor?: string;
26
+ /** Hide the default thumb trigger */
27
+ hideTrigger?: boolean;
28
+ /** Keep rendered when closed to preserve state */
29
+ keepMounted?: boolean;
30
+ /** Set a custom z-index */
31
+ zIndex?: number;
32
+ sx?: Interpolation<Theme>;
33
+ onOpen?: () => void;
34
+ onClose?: () => void;
35
+ };
@@ -0,0 +1,28 @@
1
+ export declare const DrawerBody: import("@emotion/styled").StyledComponent<{
2
+ theme?: import("@emotion/react").Theme;
3
+ as?: React.ElementType;
4
+ } & {
5
+ $anchor: "top" | "right" | "bottom" | "left";
6
+ $isOpen: boolean;
7
+ $minOpen?: string;
8
+ $maxOpen?: string;
9
+ $bgColor?: string;
10
+ $zIndex?: number;
11
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const DrawerContent: import("@emotion/styled").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme;
14
+ as?: React.ElementType;
15
+ } & {
16
+ $anchor: "top" | "right" | "bottom" | "left";
17
+ $isOpen: boolean;
18
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
19
+ export declare const Trigger: import("@emotion/styled").StyledComponent<{
20
+ theme?: import("@emotion/react").Theme;
21
+ as?: React.ElementType;
22
+ } & {
23
+ $anchor: "top" | "right" | "bottom" | "left";
24
+ $bgColor?: string;
25
+ $triggerColor?: string;
26
+ $triggerHoverColor?: string;
27
+ $hideTrigger: boolean;
28
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,2 @@
1
+ export * from "./Drawer";
2
+ export * from "./DrawerInterfaces";
@@ -1,43 +1,2 @@
1
- /** @jsxImportSource @emotion/react */
2
- import React from "react";
3
- /**
4
- * @property {string} value - The value displayed in the dropdown item
5
- * @property {string} color - The color of the dropdown item
6
- * @property {string} textColor - The text color of the dropdown item
7
- * @property {DropdownItem[]} children - The children of the dropdown item
8
- * @property {() => void} onClick - The onClick handler of the dropdown item
9
- */
10
- export type DropdownItem = {
11
- /** The value displayed in the item */
12
- value: string;
13
- /** The color of the item */
14
- bgColor?: string;
15
- /** The text color of the item */
16
- textColor?: string;
17
- /** The hover color of the item */
18
- hoverColor?: string;
19
- /** The children of the item */
20
- children?: DropdownItem[];
21
- /** Wether the item is hidden or not */
22
- isHidden?: boolean;
23
- /** Wether the dropdown should close when the item is clicked */
24
- closeOnClick?: boolean;
25
- /** The onClick handler of the item */
26
- onClick?: () => void;
27
- };
28
- export type DropdownProps = {
29
- /** The content of the dropdown */
30
- content: DropdownItem[];
31
- /** The trigger element of the dropdown. Clicking on this item will open the dropdown */
32
- trigger: React.ReactNode;
33
- /** The color of the dropdown */
34
- bgColor?: string;
35
- /** The hover color of the dropdown */
36
- hoverColor?: string;
37
- /** Controls wether the dropdown should extend towards the left or the right */
38
- direction?: "left" | "right";
39
- /** The mobile breakpoint, by default it's 768px */
40
- mobileBreakpoint?: number;
41
- };
42
- export declare const DropdownDesktop: (props: DropdownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
43
- export declare const Dropdown: (props: DropdownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
1
+ import { TDropdownProps } from "./DropdownInterfaces";
2
+ export declare const Dropdown: (props: TDropdownProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * @property {string} value - The value displayed in the dropdown item
3
+ * @property {string} color - The color of the dropdown item
4
+ * @property {string} textColor - The text color of the dropdown item
5
+ * @property {DropdownItem[]} children - The children of the dropdown item
6
+ * @property {() => void} onClick - The onClick handler of the dropdown item
7
+ */
8
+ export type TDropdownItem = {
9
+ /** The value displayed in the item */
10
+ value: string;
11
+ /** The color of the item */
12
+ bgColor?: string;
13
+ /** The text color of the item */
14
+ textColor?: string;
15
+ /** The hover color of the item */
16
+ hoverColor?: string;
17
+ /** The children of the item */
18
+ children?: TDropdownItem[];
19
+ /** Wether the item is hidden or not */
20
+ isHidden?: boolean;
21
+ /** Wether the dropdown should close when the item is clicked */
22
+ closeOnClick?: boolean;
23
+ /** The onClick handler of the item */
24
+ onClick?: () => void;
25
+ };
26
+ export type TDropdownProps = {
27
+ /** The content of the dropdown */
28
+ content: TDropdownItem[];
29
+ /** The trigger element of the dropdown. Clicking on this item will open the dropdown */
30
+ trigger: React.ReactNode;
31
+ /** The color of the dropdown */
32
+ bgColor?: string;
33
+ /** The hover color of the dropdown */
34
+ hoverColor?: string;
35
+ /** The border color */
36
+ borderColor?: string;
37
+ /** The border width */
38
+ borderWidth?: string;
39
+ /** Controls wether the dropdown should extend towards the left or the right */
40
+ direction?: "left" | "right";
41
+ /** Controls whether the dropdown body should have absolute or fixed position
42
+ * By default, it is set to absolute, which means the dropdown will be positioned relative to its parent element.
43
+ * Use fixed if you want the body to be above the entire page, regardless of the parent element.
44
+ */
45
+ menuPosition?: "absolute" | "fixed";
46
+ /** The mobile breakpoint, by default it's 768px */
47
+ mobileBreakpoint?: number;
48
+ };
49
+ export type TDropdownItemProps = TDropdownItem & {
50
+ direction?: string;
51
+ closeBody: () => void;
52
+ };
@@ -13,6 +13,7 @@ export declare const DropdownBody: import("@emotion/styled").StyledComponent<{
13
13
  $direction: string;
14
14
  $isOpen: boolean;
15
15
  $bgColor: string;
16
+ $position: "absolute" | "fixed";
16
17
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
17
18
  export declare const DropdownItemInnerContainer: import("@emotion/styled").StyledComponent<{
18
19
  theme?: import("@emotion/react").Theme;
@@ -1 +1,2 @@
1
- export { Dropdown, DropdownProps, DropdownItem } from "./Dropdown";
1
+ export * from "./Dropdown";
2
+ export * from "./DropdownInterfaces";
@@ -8,4 +8,4 @@ export type TIndicatorInstanceProps = {
8
8
  export type TIndicatorProps = {
9
9
  variant: TIndicatorVariants;
10
10
  } & TIndicatorInstanceProps;
11
- export type TIndicatorVariants = "live" | "success" | "warning" | "error";
11
+ export type TIndicatorVariants = "live" | "success" | "warning" | "error" | "neutral";
@@ -0,0 +1,3 @@
1
+ import { FC } from "react";
2
+ import { TIndicatorInstanceProps } from "./IndicatorInterfaces";
3
+ export declare const NeutralIndicator: FC<TIndicatorInstanceProps>;
@@ -1,2 +1,2 @@
1
- export { TIndicatorProps, TIndicatorVariants } from "./IndicatorInterfaces";
2
- export { Indicator } from "./Indicator";
1
+ export * from "./IndicatorInterfaces";
2
+ export * from "./Indicator";
@@ -1,13 +1,5 @@
1
- import React from "react";
2
- interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
- /** Classname given to the container div */
1
+ export declare const InputField: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
4
2
  containerClassName?: string;
5
- /** Disables the input */
6
- isDisabled?: boolean;
7
- /** The color of the input */
8
3
  color?: string;
9
- /** Change the styles of the input field */
10
- sx?: React.CSSProperties;
11
- }
12
- export declare const InputField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
13
- export {};
4
+ sx?: import("@emotion/react").Interpolation<import("@emotion/react").Theme>;
5
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,9 @@
1
+ import { Interpolation, Theme } from "@emotion/react";
2
+ export type TTextFieldProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ /** Classname given to the container div */
4
+ containerClassName?: string;
5
+ /** The color of the input */
6
+ color?: string;
7
+ /** Change the styles of the input field */
8
+ sx?: Interpolation<Theme>;
9
+ };
@@ -1 +1,2 @@
1
- export { InputField } from "./InputField";
1
+ export * from "./InputField";
2
+ export * from "./InputFieldInterfaces";
@@ -1,19 +1,3 @@
1
- import React from "react";
2
- interface ModalProps {
3
- /** The content of the modal */
4
- children: React.ReactNode;
5
- /** Cointrols whether the modal should be open or not. */
6
- isOpen: boolean;
7
- /** The handler to be called when the modal is closed */
8
- onClose: () => void;
9
- /** The handler to be called when the modal is opened */
10
- onOpen?: () => void;
11
- /** custom width */
12
- width?: string;
13
- /** custom height */
14
- height?: string;
15
- /** custom css */
16
- sx?: React.CSSProperties;
17
- }
18
- declare const Modal: React.FC<ModalProps>;
19
- export default Modal;
1
+ import { FC } from "react";
2
+ import { TModalProps } from "./ModalInterfaces";
3
+ export declare const Modal: FC<TModalProps>;
@@ -0,0 +1,16 @@
1
+ export type TModalProps = {
2
+ /** The content of the modal */
3
+ children: React.ReactNode;
4
+ /** Cointrols whether the modal should be open or not. */
5
+ isOpen: boolean;
6
+ /** The handler to be called when the modal is closed */
7
+ onClose: () => void;
8
+ /** The handler to be called when the modal is opened */
9
+ onOpen?: () => void;
10
+ /** custom width */
11
+ width?: string;
12
+ /** custom height */
13
+ height?: string;
14
+ /** custom css */
15
+ sx?: React.CSSProperties;
16
+ };
@@ -1,2 +1,2 @@
1
- import Modal from "./Modal";
2
- export { Modal };
1
+ export * from "./Modal";
2
+ export * from "./ModalInterfaces";
@@ -0,0 +1,5 @@
1
+ /** @jsxImportSource @emotion/react */
2
+ import { TMultiViewGridProps } from "./MultiViewListInterfaces";
3
+ import { TCellValues } from "../Table";
4
+ import { TDataGridRow } from "../DataGrid";
5
+ export declare const MultiViewGrid: <Cell extends TCellValues, Row extends TDataGridRow<Cell>>(props: TMultiViewGridProps<Cell, Row>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ /** @jsxImportSource @emotion/react */
1
2
  import { TMultiViewListProps } from "./MultiViewListInterfaces";
2
3
  import { TCellValues, TTableRow } from "../Table";
3
4
  export declare const MultiViewList: <Cell extends TCellValues, Row extends TTableRow<Cell>>(props: TMultiViewListProps<Cell, Row>) => import("@emotion/react/jsx-runtime").JSX.Element;