stargazer-ui 1.0.12 → 1.0.13

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 (104) hide show
  1. package/dist/cjs/BaseTypes.d.ts +19 -0
  2. package/dist/cjs/Button/Button.d.ts +4 -0
  3. package/dist/cjs/Button/Button.types.d.ts +7 -0
  4. package/dist/cjs/Button/index.d.ts +2 -0
  5. package/dist/cjs/Card/Card.d.ts +34 -0
  6. package/dist/cjs/Card/Card.types.d.ts +24 -0
  7. package/dist/cjs/Card/index.d.ts +2 -0
  8. package/dist/cjs/CloseButton/CloseButton.d.ts +4 -0
  9. package/dist/cjs/CloseButton/CloseButton.types.d.ts +5 -0
  10. package/dist/cjs/CloseButton/index.d.ts +2 -0
  11. package/dist/cjs/Dropdown/Dropdown.d.ts +71 -0
  12. package/dist/cjs/Dropdown/Dropdown.types.d.ts +55 -0
  13. package/dist/cjs/Dropdown/index.d.ts +3 -0
  14. package/dist/cjs/FloatingLabel/FloatingLabel.d.ts +4 -0
  15. package/dist/cjs/FloatingLabel/FloatingLabel.types.d.ts +9 -0
  16. package/dist/cjs/FloatingLabel/index.d.ts +2 -0
  17. package/dist/cjs/Form/Form.d.ts +17 -0
  18. package/dist/cjs/Form/Form.types.d.ts +50 -0
  19. package/dist/cjs/Form/index.d.ts +3 -0
  20. package/dist/cjs/InputGroup/InputGroup.d.ts +6 -0
  21. package/dist/cjs/InputGroup/InputGroup.types.d.ts +10 -0
  22. package/dist/cjs/InputGroup/index.d.ts +3 -0
  23. package/dist/cjs/Modal/Modal.d.ts +40 -0
  24. package/dist/cjs/Modal/Modal.types.d.ts +40 -0
  25. package/dist/cjs/Modal/index.d.ts +2 -0
  26. package/dist/cjs/Nav/Nav.d.ts +30 -0
  27. package/dist/cjs/Nav/Nav.types.d.ts +17 -0
  28. package/dist/cjs/Nav/index.d.ts +3 -0
  29. package/dist/cjs/NavBar/Navbar.d.ts +19 -0
  30. package/dist/cjs/NavBar/Navbar.types.d.ts +19 -0
  31. package/dist/cjs/NavBar/index.d.ts +3 -0
  32. package/dist/cjs/NavDropdown/NavDropdown.d.ts +35 -0
  33. package/dist/cjs/NavDropdown/NavDropdown.types.d.ts +5 -0
  34. package/dist/cjs/NavDropdown/index.d.ts +2 -0
  35. package/dist/cjs/Popout/Popout.d.ts +22 -0
  36. package/dist/cjs/Popout/Popout.types.d.ts +36 -0
  37. package/dist/cjs/Popout/index.d.ts +2 -0
  38. package/dist/cjs/Spinner/Spinner.d.ts +4 -0
  39. package/dist/cjs/Spinner/Spinner.types.d.ts +7 -0
  40. package/dist/cjs/Spinner/index.d.ts +2 -0
  41. package/dist/cjs/Table/Table.d.ts +4 -0
  42. package/dist/cjs/Table/Table.types.d.ts +7 -0
  43. package/dist/cjs/Table/index.d.ts +3 -0
  44. package/dist/cjs/Tabs/Tabs.d.ts +9 -0
  45. package/dist/cjs/Tabs/Tabs.types.d.ts +35 -0
  46. package/dist/cjs/Tabs/index.d.ts +2 -0
  47. package/dist/cjs/ToggleButton/ToggleButton.d.ts +4 -0
  48. package/dist/cjs/ToggleButton/ToggleButton.types.d.ts +7 -0
  49. package/dist/cjs/ToggleButton/index.d.ts +2 -0
  50. package/dist/cjs/index.d.ts +17 -0
  51. package/dist/cjs/index.js.map +1 -0
  52. package/dist/esm/BaseTypes.d.ts +19 -0
  53. package/dist/esm/Button/Button.d.ts +4 -0
  54. package/dist/esm/Button/Button.types.d.ts +7 -0
  55. package/dist/esm/Button/index.d.ts +2 -0
  56. package/dist/esm/Card/Card.d.ts +34 -0
  57. package/dist/esm/Card/Card.types.d.ts +24 -0
  58. package/dist/esm/Card/index.d.ts +2 -0
  59. package/dist/esm/CloseButton/CloseButton.d.ts +4 -0
  60. package/dist/esm/CloseButton/CloseButton.types.d.ts +5 -0
  61. package/dist/esm/CloseButton/index.d.ts +2 -0
  62. package/dist/esm/Dropdown/Dropdown.d.ts +71 -0
  63. package/dist/esm/Dropdown/Dropdown.types.d.ts +55 -0
  64. package/dist/esm/Dropdown/index.d.ts +3 -0
  65. package/dist/esm/FloatingLabel/FloatingLabel.d.ts +4 -0
  66. package/dist/esm/FloatingLabel/FloatingLabel.types.d.ts +9 -0
  67. package/dist/esm/FloatingLabel/index.d.ts +2 -0
  68. package/dist/esm/Form/Form.d.ts +17 -0
  69. package/dist/esm/Form/Form.types.d.ts +50 -0
  70. package/dist/esm/Form/index.d.ts +3 -0
  71. package/dist/esm/InputGroup/InputGroup.d.ts +6 -0
  72. package/dist/esm/InputGroup/InputGroup.types.d.ts +10 -0
  73. package/dist/esm/InputGroup/index.d.ts +3 -0
  74. package/dist/esm/Modal/Modal.d.ts +40 -0
  75. package/dist/esm/Modal/Modal.types.d.ts +40 -0
  76. package/dist/esm/Modal/index.d.ts +2 -0
  77. package/dist/esm/Nav/Nav.d.ts +30 -0
  78. package/dist/esm/Nav/Nav.types.d.ts +17 -0
  79. package/dist/esm/Nav/index.d.ts +3 -0
  80. package/dist/esm/NavBar/Navbar.d.ts +19 -0
  81. package/dist/esm/NavBar/Navbar.types.d.ts +19 -0
  82. package/dist/esm/NavBar/index.d.ts +3 -0
  83. package/dist/esm/NavDropdown/NavDropdown.d.ts +35 -0
  84. package/dist/esm/NavDropdown/NavDropdown.types.d.ts +5 -0
  85. package/dist/esm/NavDropdown/index.d.ts +2 -0
  86. package/dist/esm/Popout/Popout.d.ts +22 -0
  87. package/dist/esm/Popout/Popout.types.d.ts +36 -0
  88. package/dist/esm/Popout/index.d.ts +2 -0
  89. package/dist/esm/Spinner/Spinner.d.ts +4 -0
  90. package/dist/esm/Spinner/Spinner.types.d.ts +7 -0
  91. package/dist/esm/Spinner/index.d.ts +2 -0
  92. package/dist/esm/Table/Table.d.ts +4 -0
  93. package/dist/esm/Table/Table.types.d.ts +7 -0
  94. package/dist/esm/Table/index.d.ts +3 -0
  95. package/dist/esm/Tabs/Tabs.d.ts +9 -0
  96. package/dist/esm/Tabs/Tabs.types.d.ts +35 -0
  97. package/dist/esm/Tabs/index.d.ts +2 -0
  98. package/dist/esm/ToggleButton/ToggleButton.d.ts +4 -0
  99. package/dist/esm/ToggleButton/ToggleButton.types.d.ts +7 -0
  100. package/dist/esm/ToggleButton/index.d.ts +2 -0
  101. package/dist/esm/index.d.ts +17 -0
  102. package/dist/esm/index.js +2 -0
  103. package/dist/esm/index.js.map +1 -0
  104. package/package.json +3 -1
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ export type BaseAnchorType = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
3
+ export type BaseButtonType = React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>;
4
+ export type BaseDialogType = React.DetailedHTMLProps<React.DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>;
5
+ export type BaseDivType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
6
+ export type BaseFormType = React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>;
7
+ export type BaseHeadingType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
8
+ export type BaseInputType = React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
9
+ export type BaseHrType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLHRElement>, HTMLHRElement>;
10
+ export type BaseLabelType = React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>;
11
+ export type BaseLItemType = React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>;
12
+ export type BaseNavType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
13
+ export type BaseParagraphType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>;
14
+ export type BaseSelectType = React.DetailedHTMLProps<React.SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>;
15
+ export type BaseSmallType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
16
+ export type BaseSpanType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
17
+ export type BaseTableType = React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>;
18
+ export type BaseUListType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>;
19
+ export type BaseElementType = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ButtonType } from "./Button.types";
3
+ declare const Button: React.ForwardRefExoticComponent<Omit<ButtonType, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export default Button;
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseButtonType } from "../BaseTypes";
3
+ export type ButtonType = {
4
+ children: ReactNode;
5
+ variant?: string;
6
+ className?: string;
7
+ } & BaseButtonType;
@@ -0,0 +1,2 @@
1
+ export { default as Button } from "./Button";
2
+ export type { ButtonType } from "./Button.types";
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { CardBodyType, CardFooterType, CardTextType, CardType } from "./Card.types";
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<CardType, "ref"> & React.RefAttributes<HTMLDivElement>> & {
4
+ Header: React.ForwardRefExoticComponent<(Omit<{
5
+ children: React.ReactNode;
6
+ className?: string | undefined;
7
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
8
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
9
+ children: React.ReactNode;
10
+ className?: string | undefined;
11
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
12
+ } & React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
13
+ children: React.ReactNode;
14
+ className?: string | undefined;
15
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
16
+ } & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, "ref">) & React.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
17
+ Body: React.ForwardRefExoticComponent<Omit<CardBodyType, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ Title: React.ForwardRefExoticComponent<(Omit<{
19
+ children: React.ReactNode;
20
+ className?: string | undefined;
21
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
22
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
23
+ children: React.ReactNode;
24
+ className?: string | undefined;
25
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
26
+ } & React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
27
+ children: React.ReactNode;
28
+ className?: string | undefined;
29
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
30
+ } & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, "ref">) & React.RefAttributes<HTMLHeadingElement>>;
31
+ Text: React.ForwardRefExoticComponent<Omit<CardTextType, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
32
+ Footer: React.ForwardRefExoticComponent<Omit<CardFooterType, "ref"> & React.RefAttributes<HTMLDivElement>>;
33
+ };
34
+ export default _default;
@@ -0,0 +1,24 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseDivType, BaseHeadingType, BaseSpanType, BaseParagraphType } from "../BaseTypes";
3
+ export type CardType = {
4
+ children: ReactNode;
5
+ className?: string;
6
+ } & BaseDivType;
7
+ export type CardHeaderPossible = BaseDivType | BaseSpanType | BaseHeadingType;
8
+ export type CardHeaderType = {
9
+ children: ReactNode;
10
+ className?: string;
11
+ as?: React.ElementType;
12
+ } & CardHeaderPossible;
13
+ export type CardBodyType = {
14
+ children: ReactNode;
15
+ className?: string;
16
+ } & BaseDivType;
17
+ export type CardTextType = {
18
+ children: ReactNode;
19
+ className?: string;
20
+ } & BaseParagraphType;
21
+ export type CardFooterType = {
22
+ children: ReactNode;
23
+ className?: string;
24
+ } & BaseDivType;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Card";
2
+ export type { CardBodyType, CardFooterType, CardHeaderPossible, CardHeaderType, CardTextType, CardType } from "./Card.types";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { CloseButtonType } from "./CloseButton.types";
3
+ declare const CloseButton: React.ForwardRefExoticComponent<Omit<CloseButtonType, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export default CloseButton;
@@ -0,0 +1,5 @@
1
+ import { BaseButtonType } from "../BaseTypes";
2
+ export type CloseButtonType = {
3
+ className?: string;
4
+ variant?: boolean;
5
+ } & BaseButtonType;
@@ -0,0 +1,2 @@
1
+ export { default as CloseButton } from "./CloseButton";
2
+ export { CloseButtonType } from "./CloseButton.types";
@@ -0,0 +1,71 @@
1
+ import React from "react";
2
+ import { DropdownContextType, DropdownDividerType, DropdownMenuType, DropdownType } from "./Dropdown.types";
3
+ export declare const DropdownContext: React.Context<DropdownContextType | null>;
4
+ export declare const DropdownContextProvider: ({ children, value }: {
5
+ children: React.ReactNode;
6
+ value: DropdownContextType;
7
+ }) => React.JSX.Element;
8
+ export declare const useDropdownContext: () => DropdownContextType;
9
+ export declare const Toggle: React.ForwardRefExoticComponent<(Omit<{
10
+ children: React.ReactNode;
11
+ className?: string | undefined;
12
+ navDropdown?: boolean | undefined;
13
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
14
+ variant?: string | undefined;
15
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
16
+ children: React.ReactNode;
17
+ className?: string | undefined;
18
+ navDropdown?: boolean | undefined;
19
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
20
+ variant?: string | undefined;
21
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> | Omit<{
22
+ children: React.ReactNode;
23
+ className?: string | undefined;
24
+ navDropdown?: boolean | undefined;
25
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
26
+ variant?: string | undefined;
27
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
28
+ export declare const Menu: React.ForwardRefExoticComponent<Omit<DropdownMenuType, "ref"> & React.RefAttributes<HTMLUListElement>>;
29
+ export declare const Item: React.ForwardRefExoticComponent<(Omit<{
30
+ children: React.ReactNode;
31
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
32
+ className?: string | undefined;
33
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
34
+ children: React.ReactNode;
35
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
36
+ className?: string | undefined;
37
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
38
+ export declare const Divider: React.ForwardRefExoticComponent<Omit<DropdownDividerType, "ref"> & React.RefAttributes<HTMLHRElement>>;
39
+ declare const _default: React.ForwardRefExoticComponent<Omit<DropdownType, "ref"> & React.RefAttributes<HTMLDivElement>> & {
40
+ Toggle: React.ForwardRefExoticComponent<(Omit<{
41
+ children: React.ReactNode;
42
+ className?: string | undefined;
43
+ navDropdown?: boolean | undefined;
44
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
45
+ variant?: string | undefined;
46
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
47
+ children: React.ReactNode;
48
+ className?: string | undefined;
49
+ navDropdown?: boolean | undefined;
50
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
51
+ variant?: string | undefined;
52
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> | Omit<{
53
+ children: React.ReactNode;
54
+ className?: string | undefined;
55
+ navDropdown?: boolean | undefined;
56
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
57
+ variant?: string | undefined;
58
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
59
+ Menu: React.ForwardRefExoticComponent<Omit<DropdownMenuType, "ref"> & React.RefAttributes<HTMLUListElement>>;
60
+ Item: React.ForwardRefExoticComponent<(Omit<{
61
+ children: React.ReactNode;
62
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
63
+ className?: string | undefined;
64
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
65
+ children: React.ReactNode;
66
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
67
+ className?: string | undefined;
68
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
69
+ Divider: React.ForwardRefExoticComponent<Omit<DropdownDividerType, "ref"> & React.RefAttributes<HTMLHRElement>>;
70
+ };
71
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseDivType, BaseAnchorType, BaseButtonType, BaseUListType, BaseHrType, BaseElementType } from "../BaseTypes";
3
+ export type DropdownContextType = {
4
+ align: string;
5
+ drop: string;
6
+ showInternal: boolean;
7
+ handleToggle: Function;
8
+ placement: string;
9
+ directionClasses?: {
10
+ down?: string;
11
+ 'down-centered'?: string;
12
+ up?: string;
13
+ 'up-centered'?: string;
14
+ end?: string;
15
+ start?: string;
16
+ };
17
+ controlId: string;
18
+ activeDescendant: {
19
+ case: string;
20
+ };
21
+ setActiveDescendant: React.Dispatch<React.SetStateAction<{
22
+ case: string;
23
+ }>>;
24
+ };
25
+ export type DropdownType = {
26
+ children: ReactNode;
27
+ className?: string;
28
+ onSelect?: Function;
29
+ onToggle?: Function;
30
+ controlId: string;
31
+ drop?: string;
32
+ align?: string;
33
+ autoClose?: boolean;
34
+ show?: boolean;
35
+ } & BaseDivType;
36
+ export type DropdownToggleType = {
37
+ children: ReactNode;
38
+ className?: string;
39
+ navDropdown?: boolean;
40
+ as?: React.ElementType;
41
+ variant?: string;
42
+ } & (BaseAnchorType | BaseButtonType | BaseElementType);
43
+ export type DropdownMenuType = {
44
+ children: ReactNode;
45
+ className?: string;
46
+ style?: React.CSSProperties | undefined;
47
+ } & BaseUListType;
48
+ export type DropdownItemType = {
49
+ children: ReactNode;
50
+ as?: React.ElementType;
51
+ className?: string;
52
+ } & (BaseAnchorType | BaseButtonType);
53
+ export type DropdownDividerType = {
54
+ className?: string;
55
+ } & BaseHrType;
@@ -0,0 +1,3 @@
1
+ export { default as Dropdown } from "./Dropdown";
2
+ export { DropdownContext, DropdownContextProvider, useDropdownContext } from "./Dropdown";
3
+ export { DropdownContextType, DropdownDividerType, DropdownItemType, DropdownMenuType, DropdownToggleType, DropdownType } from "./Dropdown.types";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { FloatingLabelType } from "./FloatingLabel.types";
3
+ declare const FloatingLabel: React.ForwardRefExoticComponent<Omit<FloatingLabelType, "ref"> & React.RefAttributes<HTMLLabelElement>>;
4
+ export default FloatingLabel;
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseLabelType } from "../BaseTypes";
3
+ export type FloatingLabelType = {
4
+ children: ReactNode;
5
+ className?: string;
6
+ htmlFor?: string;
7
+ label: string;
8
+ controlId: string;
9
+ } & BaseLabelType;
@@ -0,0 +1,2 @@
1
+ export { default as FloatingLabel } from "./FloatingLabel";
2
+ export { FloatingLabelType } from "./FloatingLabel.types";
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { FormCheckType, FormContextType, FormControlType, FormGroupType, FormLabelType, FormSelectType, FormTextType, FormType } from "./Form.types";
3
+ export declare const FormContext: React.Context<FormContextType | null>;
4
+ export declare const FormContextProvider: ({ children, value }: {
5
+ children: React.ReactNode;
6
+ value: FormContextType;
7
+ }) => React.JSX.Element;
8
+ export declare const useFormContext: () => FormContextType;
9
+ declare const _default: React.ForwardRefExoticComponent<Omit<FormType, "ref"> & React.RefAttributes<HTMLFormElement>> & {
10
+ Control: React.ForwardRefExoticComponent<Omit<FormControlType, "ref"> & React.RefAttributes<HTMLInputElement>>;
11
+ Select: React.ForwardRefExoticComponent<Omit<FormSelectType, "ref"> & React.RefAttributes<HTMLSelectElement>>;
12
+ Group: React.ForwardRefExoticComponent<Omit<FormGroupType, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ Label: React.ForwardRefExoticComponent<Omit<FormLabelType, "ref"> & React.RefAttributes<HTMLLabelElement>>;
14
+ Check: React.ForwardRefExoticComponent<Omit<FormCheckType, "ref"> & React.RefAttributes<HTMLInputElement>>;
15
+ Text: React.ForwardRefExoticComponent<Omit<FormTextType, "ref"> & React.RefAttributes<HTMLElement>>;
16
+ };
17
+ export default _default;
@@ -0,0 +1,50 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseDivType, BaseFormType, BaseInputType, BaseLabelType, BaseSelectType, BaseSmallType } from "../BaseTypes";
3
+ export type FormContextType = {
4
+ controlId: string;
5
+ };
6
+ export type FormType = {
7
+ children: ReactNode;
8
+ } & BaseFormType;
9
+ export type FormControlType = {
10
+ as?: React.ElementType;
11
+ className?: string;
12
+ plaintext?: boolean;
13
+ id?: string;
14
+ type?: string;
15
+ autoFocus?: boolean;
16
+ } & BaseInputType;
17
+ export type FormSelectType = {
18
+ children: ReactNode;
19
+ className?: string;
20
+ id?: string;
21
+ } & BaseSelectType;
22
+ export type FormGroupType = {
23
+ children: ReactNode;
24
+ className?: string;
25
+ controlId: string;
26
+ } & BaseDivType;
27
+ export type FormLabelType = {
28
+ children: ReactNode;
29
+ className?: string;
30
+ htmlFor?: string;
31
+ } & BaseLabelType;
32
+ export type FormCheckType = {
33
+ classNameContainer?: string;
34
+ containerRef?: React.LegacyRef<HTMLDivElement>;
35
+ containerId?: string;
36
+ style?: React.CSSProperties;
37
+ classNameLabel?: string;
38
+ labelRef?: React.LegacyRef<HTMLLabelElement>;
39
+ label?: string;
40
+ labelId?: string;
41
+ className?: string;
42
+ type?: string;
43
+ controlId?: string;
44
+ reverse?: boolean;
45
+ checkStyle?: React.CSSProperties;
46
+ } & BaseInputType;
47
+ export type FormTextType = {
48
+ children: ReactNode;
49
+ className?: string;
50
+ } & BaseSmallType;
@@ -0,0 +1,3 @@
1
+ export { default as Form } from "./Form";
2
+ export { FormContextProvider, useFormContext } from "./Form";
3
+ export { FormCheckType, FormContextType, FormControlType, FormGroupType, FormLabelType, FormSelectType, FormTextType, FormType } from "./Form.types";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import { InputGroupText, InputGroupType } from "./InputGroup.types";
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<InputGroupType, "ref"> & React.RefAttributes<HTMLDivElement>> & {
4
+ Text: React.ForwardRefExoticComponent<InputGroupText & React.RefAttributes<HTMLSpanElement>>;
5
+ };
6
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseDivType } from "../BaseTypes";
3
+ export type InputGroupType = {
4
+ children: ReactNode;
5
+ className?: string;
6
+ } & BaseDivType;
7
+ export type InputGroupText = {
8
+ children: ReactNode;
9
+ className?: string;
10
+ };
@@ -0,0 +1,3 @@
1
+ export { default as InputGroup } from "./InputGroup";
2
+ export * from "./InputGroup";
3
+ export { InputGroupText, InputGroupType } from "./InputGroup.types";
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import { ModalBodyType, ModalType } from "./Modal.types";
3
+ declare const _default: (({ children, centered, size, show, backdrop, onHide, className, id, ...restProps }: ModalType) => React.ReactPortal) & {
4
+ Header: React.ForwardRefExoticComponent<(Omit<{
5
+ children: React.ReactNode;
6
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
7
+ className?: string | undefined;
8
+ closeButton?: boolean | undefined;
9
+ onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
10
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
11
+ children: React.ReactNode;
12
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
13
+ className?: string | undefined;
14
+ closeButton?: boolean | undefined;
15
+ onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
16
+ } & React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
17
+ children: React.ReactNode;
18
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
19
+ className?: string | undefined;
20
+ closeButton?: boolean | undefined;
21
+ onClick?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
22
+ } & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, "ref">) & React.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
23
+ Title: React.ForwardRefExoticComponent<(Omit<{
24
+ children: React.ReactNode;
25
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
26
+ className?: string | undefined;
27
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
28
+ children: React.ReactNode;
29
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
30
+ className?: string | undefined;
31
+ } & React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
32
+ children: React.ReactNode;
33
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
34
+ className?: string | undefined;
35
+ } & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, "ref">) & React.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
36
+ Body: React.ForwardRefExoticComponent<Omit<ModalBodyType, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
+ Footer: React.ForwardRefExoticComponent<Omit<ModalBodyType, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
+ };
39
+ export default _default;
40
+ export declare const useKeepElementFocused: (elementRef: React.RefObject<HTMLDialogElement>) => void;
@@ -0,0 +1,40 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseDialogType, BaseDivType, BaseHeadingType, BaseSpanType } from "../BaseTypes";
3
+ export type ModalContextType = Function | null;
4
+ export type ModalType = {
5
+ children: ReactNode;
6
+ className?: string;
7
+ id?: string;
8
+ centered?: boolean;
9
+ size?: string;
10
+ show: boolean;
11
+ backdrop?: string;
12
+ onHide: Function;
13
+ } & BaseDialogType;
14
+ export type ModalHeaderType = {
15
+ children: ReactNode;
16
+ as?: React.ElementType;
17
+ className?: string;
18
+ closeButton?: boolean;
19
+ onClick?: (event: React.MouseEvent) => void;
20
+ } & (BaseDivType | BaseHeadingType | BaseSpanType);
21
+ export type ModalTitleType = {
22
+ children: ReactNode;
23
+ as?: React.ElementType;
24
+ className?: string;
25
+ } & (BaseDivType | BaseHeadingType | BaseSpanType);
26
+ export type ModalBodyType = {
27
+ children: ReactNode;
28
+ className?: string;
29
+ } & BaseDivType;
30
+ export type ModalFooterType = {
31
+ children: ReactNode;
32
+ className?: string;
33
+ } & BaseDivType;
34
+ export type ErrorModalType = {
35
+ typeCheck: {
36
+ show: boolean;
37
+ onHide: boolean;
38
+ };
39
+ closeModal: Function;
40
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Modal } from "./Modal";
2
+ export { ModalBodyType, ModalContextType, ModalFooterType, ModalHeaderType, ModalTitleType, ModalType } from "./Modal.types";
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ declare const _default: React.ForwardRefExoticComponent<(Omit<{
3
+ children: React.ReactNode;
4
+ className?: string | undefined;
5
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
6
+ } & React.ClassAttributes<HTMLUListElement> & React.HTMLAttributes<HTMLUListElement>, "ref"> | Omit<{
7
+ children: React.ReactNode;
8
+ className?: string | undefined;
9
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
10
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLElement>> & {
11
+ Item: React.ForwardRefExoticComponent<(Omit<{
12
+ children: React.ReactNode;
13
+ className?: string | undefined;
14
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
15
+ } & React.ClassAttributes<HTMLLIElement> & React.LiHTMLAttributes<HTMLLIElement>, "ref"> | Omit<{
16
+ children: React.ReactNode;
17
+ className?: string | undefined;
18
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
19
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLElement>>;
20
+ Link: React.ForwardRefExoticComponent<(Omit<{
21
+ children: React.ReactNode;
22
+ className?: string | undefined;
23
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
24
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
25
+ children: React.ReactNode;
26
+ className?: string | undefined;
27
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
28
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLElement>>;
29
+ };
30
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseAnchorType, BaseElementType, BaseLItemType, BaseUListType } from "../BaseTypes";
3
+ export type NavType = {
4
+ children: ReactNode;
5
+ className?: string;
6
+ as?: React.ElementType;
7
+ } & (BaseUListType | BaseElementType);
8
+ export type NavItemType = {
9
+ children: ReactNode;
10
+ className?: string;
11
+ as?: React.ElementType;
12
+ } & (BaseLItemType | BaseElementType);
13
+ export type NavLinkType = {
14
+ children: ReactNode;
15
+ className?: string;
16
+ as?: React.ElementType;
17
+ } & (BaseAnchorType | BaseElementType);
@@ -0,0 +1,3 @@
1
+ export { default as Nav } from "./Nav";
2
+ export * from "./Nav";
3
+ export { NavItemType, NavLinkType, NavType } from "./Nav.types";
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { NavbarTextType, NavbarType, NavbarContextType } from "./Navbar.types";
3
+ export declare const NavbarContext: React.Context<NavbarContextType>;
4
+ export declare const useNavbarContext: () => NavbarContextType;
5
+ declare const _default: React.ForwardRefExoticComponent<Omit<NavbarType, "ref"> & React.RefAttributes<HTMLElement>> & {
6
+ Brand: React.ForwardRefExoticComponent<(Omit<{
7
+ children: React.ReactNode;
8
+ className?: string | undefined;
9
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
10
+ href?: string | undefined;
11
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
12
+ children: React.ReactNode;
13
+ className?: string | undefined;
14
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
15
+ href?: string | undefined;
16
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLElement>>;
17
+ Text: React.ForwardRefExoticComponent<Omit<NavbarTextType, "ref"> & React.RefAttributes<HTMLElement>>;
18
+ };
19
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import { ReactNode } from "react";
2
+ import { BaseAnchorType, BaseElementType, BaseNavType } from "../BaseTypes";
3
+ export type NavbarContextType = string | null;
4
+ export type NavbarType = {
5
+ children: ReactNode;
6
+ className?: string;
7
+ navbarPrefix?: string;
8
+ } & BaseNavType;
9
+ export type NavbarBrandType = {
10
+ children: ReactNode;
11
+ className?: string;
12
+ as?: React.ElementType;
13
+ href?: string;
14
+ } & (BaseAnchorType | BaseElementType);
15
+ export type NavbarTextType = {
16
+ children: ReactNode;
17
+ className?: string;
18
+ as?: React.ElementType;
19
+ } & BaseElementType;
@@ -0,0 +1,3 @@
1
+ export { default as Navbar } from "./Navbar";
2
+ export { useNavbarContext } from "./Navbar";
3
+ export { NavbarBrandType, NavbarContextType, NavbarTextType, NavbarType } from "./Navbar.types";
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import { NavDropdownType } from "./NavDropdown.types";
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<NavDropdownType, "ref"> & React.RefAttributes<HTMLDivElement>> & {
4
+ Toggle: React.ForwardRefExoticComponent<(Omit<{
5
+ children: React.ReactNode;
6
+ className?: string | undefined;
7
+ navDropdown?: boolean | undefined;
8
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
9
+ variant?: string | undefined;
10
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
11
+ children: React.ReactNode;
12
+ className?: string | undefined;
13
+ navDropdown?: boolean | undefined;
14
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
15
+ variant?: string | undefined;
16
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref"> | Omit<{
17
+ children: React.ReactNode;
18
+ className?: string | undefined;
19
+ navDropdown?: boolean | undefined;
20
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
21
+ variant?: string | undefined;
22
+ } & React.ClassAttributes<HTMLElement> & React.HTMLAttributes<HTMLElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
23
+ Menu: React.ForwardRefExoticComponent<Omit<import("..").DropdownMenuType, "ref"> & React.RefAttributes<HTMLUListElement>>;
24
+ Item: React.ForwardRefExoticComponent<(Omit<{
25
+ children: React.ReactNode;
26
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
27
+ className?: string | undefined;
28
+ } & React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>, "ref"> | Omit<{
29
+ children: React.ReactNode;
30
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
31
+ className?: string | undefined;
32
+ } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement>, "ref">) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
33
+ Divider: React.ForwardRefExoticComponent<Omit<import("..").DropdownDividerType, "ref"> & React.RefAttributes<HTMLHRElement>>;
34
+ };
35
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { DropdownType } from "../Dropdown/Dropdown.types";
2
+ export type NavDropdownType = {
3
+ toggleProps?: any;
4
+ menuProps?: any;
5
+ } & DropdownType;
@@ -0,0 +1,2 @@
1
+ export { default as NavDropdown } from "./NavDropdown";
2
+ export { NavDropdownType } from "./NavDropdown.types";
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { PopoutType, PopoutBodyType, PopoutFooterType, PopoutTextType, PopoutTitleType } from "./Popout.types";
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<PopoutType, "ref"> & React.RefAttributes<HTMLDialogElement>> & {
4
+ Header: React.ForwardRefExoticComponent<(Omit<{
5
+ children: React.ReactNode;
6
+ className?: string | undefined;
7
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
8
+ } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, "ref"> | Omit<{
9
+ children: React.ReactNode;
10
+ className?: string | undefined;
11
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
12
+ } & React.ClassAttributes<HTMLHeadingElement> & React.HTMLAttributes<HTMLHeadingElement>, "ref"> | Omit<{
13
+ children: React.ReactNode;
14
+ className?: string | undefined;
15
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
16
+ } & React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement>, "ref">) & React.RefAttributes<HTMLDivElement | HTMLHeadingElement | HTMLSpanElement>>;
17
+ Title: React.ForwardRefExoticComponent<Omit<PopoutTitleType, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
+ Body: React.ForwardRefExoticComponent<Omit<PopoutBodyType, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ Text: React.ForwardRefExoticComponent<Omit<PopoutTextType, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
20
+ Footer: React.ForwardRefExoticComponent<Omit<PopoutFooterType, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ };
22
+ export default _default;