@code0-tech/pictor 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +0 -0
- package/dist/cjs/components/FontSizes/Text.d.ts +10 -0
- package/dist/cjs/components/alert/Alert.d.ts +19 -0
- package/dist/cjs/components/badge/Badge.d.ts +9 -0
- package/dist/cjs/components/button/Button.d.ts +17 -0
- package/dist/cjs/components/button-group/ButtonGroup.d.ts +8 -0
- package/dist/cjs/components/card/Card.d.ts +20 -0
- package/dist/cjs/components/col/Col.d.ts +14 -0
- package/dist/cjs/components/container/Container.d.ts +7 -0
- package/dist/cjs/components/dropdown/Dropdown.d.ts +24 -0
- package/dist/cjs/components/dropdown/DropdownFooter.d.ts +13 -0
- package/dist/cjs/components/dropdown/DropdownHeader.d.ts +13 -0
- package/dist/cjs/components/dropdown/DropdownItem.d.ts +12 -0
- package/dist/cjs/components/dropdown/DropdownItemGroup.d.ts +12 -0
- package/dist/cjs/components/input/Input.d.ts +37 -0
- package/dist/cjs/components/list-group/ListGroup.d.ts +12 -0
- package/dist/cjs/components/menu/InternalMenu.d.ts +4 -0
- package/dist/cjs/components/menu/Menu.d.ts +41 -0
- package/dist/cjs/components/popover/InternalPopover.d.ts +10 -0
- package/dist/cjs/components/popover/Popover.d.ts +16 -0
- package/dist/cjs/components/quote/Quote.d.ts +12 -0
- package/dist/cjs/components/row/Row.d.ts +7 -0
- package/dist/cjs/components/tooltip/Tooltip.d.ts +18 -0
- package/dist/cjs/index.d.ts +16 -0
- package/dist/cjs/index.js +9202 -0
- package/dist/cjs/utils/types.d.ts +4 -0
- package/dist/cjs/utils/utils.d.ts +16 -0
- package/dist/esm/components/FontSizes/Text.d.ts +10 -0
- package/dist/esm/components/alert/Alert.d.ts +19 -0
- package/dist/esm/components/badge/Badge.d.ts +9 -0
- package/dist/esm/components/button/Button.d.ts +17 -0
- package/dist/esm/components/button-group/ButtonGroup.d.ts +8 -0
- package/dist/esm/components/card/Card.d.ts +20 -0
- package/dist/esm/components/col/Col.d.ts +14 -0
- package/dist/esm/components/container/Container.d.ts +7 -0
- package/dist/esm/components/dropdown/Dropdown.d.ts +24 -0
- package/dist/esm/components/dropdown/DropdownFooter.d.ts +13 -0
- package/dist/esm/components/dropdown/DropdownHeader.d.ts +13 -0
- package/dist/esm/components/dropdown/DropdownItem.d.ts +12 -0
- package/dist/esm/components/dropdown/DropdownItemGroup.d.ts +12 -0
- package/dist/esm/components/input/Input.d.ts +37 -0
- package/dist/esm/components/list-group/ListGroup.d.ts +12 -0
- package/dist/esm/components/menu/InternalMenu.d.ts +4 -0
- package/dist/esm/components/menu/Menu.d.ts +41 -0
- package/dist/esm/components/popover/InternalPopover.d.ts +10 -0
- package/dist/esm/components/popover/Popover.d.ts +16 -0
- package/dist/esm/components/quote/Quote.d.ts +12 -0
- package/dist/esm/components/row/Row.d.ts +7 -0
- package/dist/esm/components/tooltip/Tooltip.d.ts +18 -0
- package/dist/esm/index.d.ts +16 -0
- package/dist/esm/index.js +9178 -0
- package/dist/esm/utils/types.d.ts +4 -0
- package/dist/esm/utils/utils.d.ts +16 -0
- package/dist/index.d.ts +247 -0
- package/package.json +77 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Copyright (c) 2023-present Code0
|
|
2
|
+
|
|
3
|
+
Portions of this software are licensed as follows:
|
|
4
|
+
|
|
5
|
+
* All content residing under the "docs/" directory of this repository is licensed under "Creative Commons: CC BY-SA 4.0 license".
|
|
6
|
+
* All third party components incorporated into the Code0 Software are licensed under the original license provided by the owner of the applicable component.
|
|
7
|
+
* Content outside of the above mentioned directories or restrictions above is available as defined below.
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software. This Software comes with restrictions, including the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute and not sublicense, and/or sell copies of this Software,
|
|
12
|
+
and to permit persons to whom this Software is furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of this Software.
|
|
16
|
+
|
|
17
|
+
This Software can be used, copied, merged, published and distributed commercially and non commercially, but it is not allowed
|
|
18
|
+
to sell this Software and/or any copies.
|
|
19
|
+
|
|
20
|
+
You agree that Code0 and/or its licensors (as applicable) retain all right, title and interest in and
|
|
21
|
+
to all such modifications and/or patches and/or copies of this Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
package/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { HTMLProps } from "react";
|
|
2
|
+
import { Size } from "../../utils/types";
|
|
3
|
+
import "./Text.style.scss";
|
|
4
|
+
export interface FontType extends Omit<Omit<HTMLProps<HTMLSpanElement>, "children">, "size"> {
|
|
5
|
+
children: string;
|
|
6
|
+
size: Size;
|
|
7
|
+
hierarchy?: "primary" | "secondary" | "tertiary";
|
|
8
|
+
}
|
|
9
|
+
declare const Text: React.FC<FontType>;
|
|
10
|
+
export default Text;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import "./Alert.style.scss";
|
|
3
|
+
import { Color } from "../../utils/types";
|
|
4
|
+
export interface AlertType {
|
|
5
|
+
children?: ReactNode | ReactNode[];
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
color?: Color;
|
|
8
|
+
icon?: boolean;
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
onClose?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
declare const Alert: React.FC<AlertType>;
|
|
13
|
+
export interface AlertHeadingType {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export interface AlertIconType {
|
|
17
|
+
color: Color;
|
|
18
|
+
}
|
|
19
|
+
export default Alert;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { HTMLProps } from "react";
|
|
2
|
+
import "./Badge.style.scss";
|
|
3
|
+
import { Color } from "../../utils/types";
|
|
4
|
+
export interface BadgeType extends HTMLProps<HTMLSpanElement> {
|
|
5
|
+
children: string;
|
|
6
|
+
color?: Color;
|
|
7
|
+
}
|
|
8
|
+
declare const Badge: React.FC<BadgeType>;
|
|
9
|
+
export default Badge;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "./Button.style.scss";
|
|
2
|
+
import React, { AnchorHTMLAttributes, DetailedHTMLProps, ReactNode } from "react";
|
|
3
|
+
import { Color } from "../../utils/types";
|
|
4
|
+
export interface ButtonType extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
color?: Color;
|
|
7
|
+
variant?: "none" | "normal" | "outlined" | "filled";
|
|
8
|
+
active?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface ButtonIconType {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.FC<ButtonType> & {
|
|
15
|
+
Icon: React.FC<ButtonIconType>;
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import { ButtonType } from "../button/Button";
|
|
3
|
+
import "./ButtonGroup.style.scss";
|
|
4
|
+
export interface ButtonGroupType {
|
|
5
|
+
children: ReactElement<ButtonType>[];
|
|
6
|
+
}
|
|
7
|
+
declare const ButtonGroup: React.FC<ButtonGroupType>;
|
|
8
|
+
export default ButtonGroup;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { HTMLProps, ReactNode } from "react";
|
|
2
|
+
import "./Card.style.scss";
|
|
3
|
+
import { Color } from "../../utils/types";
|
|
4
|
+
export interface CardType extends HTMLProps<HTMLDivElement> {
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
color?: Color;
|
|
7
|
+
variant?: "none" | "normal" | "outlined" | "filled";
|
|
8
|
+
gradient?: boolean;
|
|
9
|
+
gradientPosition?: "top-left" | "top-right" | "bottom-right" | "bottom-left";
|
|
10
|
+
outline?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface SectionType {
|
|
13
|
+
children: ReactNode | ReactNode[];
|
|
14
|
+
image?: boolean;
|
|
15
|
+
border?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.FC<CardType> & {
|
|
18
|
+
Section: React.FC<SectionType>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { HTMLProps, ReactNode } from "react";
|
|
2
|
+
import "./Col.style.scss";
|
|
3
|
+
export type ColBreakPointRange = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
+
export interface ColType extends HTMLProps<HTMLDivElement> {
|
|
5
|
+
children: ReactNode | ReactNode[];
|
|
6
|
+
xs?: ColBreakPointRange;
|
|
7
|
+
sm?: ColBreakPointRange;
|
|
8
|
+
md?: ColBreakPointRange;
|
|
9
|
+
lg?: ColBreakPointRange;
|
|
10
|
+
xl?: ColBreakPointRange;
|
|
11
|
+
xxl?: ColBreakPointRange;
|
|
12
|
+
}
|
|
13
|
+
declare const Col: React.FC<ColType>;
|
|
14
|
+
export default Col;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { HTMLProps, ReactNode } from "react";
|
|
2
|
+
import "./Container.style.scss";
|
|
3
|
+
export interface ContainerType extends HTMLProps<HTMLDivElement> {
|
|
4
|
+
children: ReactNode | ReactNode[];
|
|
5
|
+
}
|
|
6
|
+
declare const Container: React.FC<ContainerType>;
|
|
7
|
+
export default Container;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
+
import "./Dropdown.style.scss";
|
|
3
|
+
export interface DropdownType {
|
|
4
|
+
children: ReactElement<DropdownTriggerType & DropdownMenuType>[];
|
|
5
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
align?: 'start' | 'center' | 'end';
|
|
7
|
+
maxWidthFactor?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface DropdownTriggerType {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export interface DropdownMenuType {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: React.FC<DropdownType> & {
|
|
16
|
+
Trigger: React.FC<DropdownTriggerType>;
|
|
17
|
+
Menu: React.FC<DropdownMenuType>;
|
|
18
|
+
Header: React.FC<import("./DropdownHeader").DropdownHeaderType>;
|
|
19
|
+
Footer: React.FC<import("./DropdownFooter").DropdownFooterType>;
|
|
20
|
+
Group: React.FC<import("./DropdownItemGroup").DropdownItemGroupType> & {
|
|
21
|
+
Item: React.FC<import("./DropdownItem").DropdownItemType>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import "./Dropdown.style.scss";
|
|
3
|
+
export interface DropdownFooterType {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component creates a separate footer with border top
|
|
8
|
+
* for further separation
|
|
9
|
+
*
|
|
10
|
+
* @author Nico Sammito
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
*/
|
|
13
|
+
export declare const DropdownFooter: React.FC<DropdownFooterType>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import "./Dropdown.style.scss";
|
|
3
|
+
export interface DropdownHeaderType {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component creates a separate header with border bottom
|
|
8
|
+
* for further separation
|
|
9
|
+
*
|
|
10
|
+
* @author Nico Sammito
|
|
11
|
+
* @since 0.1.0
|
|
12
|
+
*/
|
|
13
|
+
export declare const DropdownHeader: React.FC<DropdownHeaderType>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import "./Dropdown.style.scss";
|
|
3
|
+
export interface DropdownItemType {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component creates an item with over effect
|
|
8
|
+
*
|
|
9
|
+
* @author Nico Sammito
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
*/
|
|
12
|
+
export declare const DropdownItem: React.FC<DropdownItemType>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import "./Dropdown.style.scss";
|
|
3
|
+
export interface DropdownItemGroupType {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component creates an item with over effect
|
|
8
|
+
*
|
|
9
|
+
* @author Nico Sammito
|
|
10
|
+
* @since 0.1.0
|
|
11
|
+
*/
|
|
12
|
+
export declare const DropdownItemGroup: React.FC<DropdownItemGroupType>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { DetailedHTMLProps, InputHTMLAttributes, ReactElement } from "react";
|
|
2
|
+
import "./Input.style.scss";
|
|
3
|
+
import { TablerIconsProps } from "@tabler/icons-react";
|
|
4
|
+
export type InputChildType = InputControlType | InputDescType | InputLabelType;
|
|
5
|
+
export interface InputType {
|
|
6
|
+
children: ReactElement<InputControlType> | ReactElement<InputChildType>[];
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
valid?: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
export type InputControlTypesType = "email" | "date" | "datetime-local" | "hidden" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
11
|
+
export interface InputControlType extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
children?: ReactElement<InputControlMessageType | InputControlIconType>[] | ReactElement<InputControlMessageType | InputControlIconType>;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
type?: InputControlTypesType;
|
|
16
|
+
}
|
|
17
|
+
export type InputControlMessageType = {
|
|
18
|
+
children: string;
|
|
19
|
+
};
|
|
20
|
+
export type InputControlIconType = {
|
|
21
|
+
children: ReactElement<TablerIconsProps>;
|
|
22
|
+
};
|
|
23
|
+
export type InputLabelType = {
|
|
24
|
+
children: string;
|
|
25
|
+
};
|
|
26
|
+
export type InputDescType = {
|
|
27
|
+
children: string;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: React.FC<InputType> & {
|
|
30
|
+
Desc: React.FC<InputDescType>;
|
|
31
|
+
Label: React.FC<InputLabelType>;
|
|
32
|
+
Control: React.ForwardRefExoticComponent<Omit<InputControlType, "ref"> & React.RefAttributes<HTMLInputElement>> & {
|
|
33
|
+
Message: React.FC<InputControlMessageType>;
|
|
34
|
+
Icon: React.FC<InputControlIconType>;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
+
import "./ListGroup.style.scss";
|
|
3
|
+
export interface ListGroupType {
|
|
4
|
+
children: ReactElement<ListGroupItemType> | ReactElement<ListGroupItemType>[];
|
|
5
|
+
}
|
|
6
|
+
export interface ListGroupItemType {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.FC<ListGroupType> & {
|
|
10
|
+
Item: React.FC<ListGroupItemType>;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PopoverProps } from "../popover/Popover";
|
|
3
|
+
import { AriaMenuProps, Key } from "react-aria";
|
|
4
|
+
import "./Menu.style.scss";
|
|
5
|
+
import { Color } from "../../utils/types";
|
|
6
|
+
export interface MenuType<T> extends AriaMenuProps<T>, PopoverProps {
|
|
7
|
+
children: React.ReactElement<MenuTriggerType & MenuContentType>[];
|
|
8
|
+
}
|
|
9
|
+
export interface MenuTriggerType {
|
|
10
|
+
children: React.ReactElement;
|
|
11
|
+
}
|
|
12
|
+
export interface MenuContentType {
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export interface MenuItemType {
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
key: Key;
|
|
18
|
+
color?: Color;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
unselectable?: boolean;
|
|
21
|
+
textValue?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface MenuShortcutType {
|
|
24
|
+
children: string;
|
|
25
|
+
}
|
|
26
|
+
export interface MenuIconType {
|
|
27
|
+
children: React.ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export interface MenuSectionType {
|
|
30
|
+
children: React.ReactElement<MenuItemType> | React.ReactElement<MenuItemType>[];
|
|
31
|
+
title?: string;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: React.FC<MenuType<any>> & {
|
|
34
|
+
Trigger: React.FC<MenuTriggerType>;
|
|
35
|
+
Content: React.FC<MenuContentType>;
|
|
36
|
+
Item: React.FC<MenuItemType>;
|
|
37
|
+
Shortcut: React.FC<MenuShortcutType>;
|
|
38
|
+
Section: React.FC<MenuSectionType>;
|
|
39
|
+
Icon: React.FC<MenuIconType>;
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "./Popover.style.scss";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { AriaPopoverProps } from "react-aria";
|
|
4
|
+
import { OverlayTriggerState } from "react-stately";
|
|
5
|
+
interface InternalPopoverType extends Omit<AriaPopoverProps, 'popoverRef'> {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
state: OverlayTriggerState;
|
|
8
|
+
}
|
|
9
|
+
export declare const InternalPopover: React.FC<InternalPopoverType>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OverlayTriggerProps, PositionProps } from "@react-types/overlays";
|
|
3
|
+
export interface PopoverProps extends PositionProps, OverlayTriggerProps {
|
|
4
|
+
children: React.ReactElement<PopoverTriggerType & PopoverContentType>[];
|
|
5
|
+
}
|
|
6
|
+
export interface PopoverTriggerType {
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export interface PopoverContentType {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.FC<PopoverProps> & {
|
|
13
|
+
Trigger: React.FC<PopoverTriggerType>;
|
|
14
|
+
Content: React.FC<PopoverContentType>;
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CardType } from "../card/Card";
|
|
3
|
+
import "./Quote.style.scss";
|
|
4
|
+
export interface QuoteType extends Omit<CardType, "children"> {
|
|
5
|
+
children: string;
|
|
6
|
+
logo: string;
|
|
7
|
+
name: string;
|
|
8
|
+
position: string;
|
|
9
|
+
inlineBorder?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const Quote: React.FC<QuoteType>;
|
|
12
|
+
export default Quote;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
+
import "./Tooltip.style.scss";
|
|
3
|
+
export interface DropdownType {
|
|
4
|
+
children: ReactElement<TooltipTriggerType & TooltipMenuType>[];
|
|
5
|
+
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
6
|
+
align?: 'start' | 'center' | 'end';
|
|
7
|
+
}
|
|
8
|
+
export interface TooltipTriggerType {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export interface TooltipMenuType {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.FC<DropdownType> & {
|
|
15
|
+
Trigger: React.FC<TooltipTriggerType>;
|
|
16
|
+
Menu: React.FC<TooltipMenuType>;
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { default as Alert } from "./components/alert/Alert";
|
|
2
|
+
export { default as Badge } from "./components/badge/Badge";
|
|
3
|
+
export { default as Button } from "./components/button/Button";
|
|
4
|
+
export { default as ButtonGroup } from "./components/button-group/ButtonGroup";
|
|
5
|
+
export { default as Card } from "./components/card/Card";
|
|
6
|
+
export { default as Col } from "./components/col/Col";
|
|
7
|
+
export { default as Container } from "./components/container/Container";
|
|
8
|
+
export { default as Dropdown } from "./components/dropdown/Dropdown";
|
|
9
|
+
export { default as Text } from "./components/FontSizes/Text";
|
|
10
|
+
export { default as Input } from "./components/input/Input";
|
|
11
|
+
export { default as ListGroup } from "./components/list-group/ListGroup";
|
|
12
|
+
export { default as Menu } from "./components/menu/Menu";
|
|
13
|
+
export { default as Popover } from "./components/popover/Popover";
|
|
14
|
+
export { default as Quote } from "./components/quote/Quote";
|
|
15
|
+
export { default as Row } from "./components/row/Row";
|
|
16
|
+
export { default as Tooltip } from "./components/tooltip/Tooltip";
|