@paubox/ui 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.
@@ -0,0 +1,15 @@
1
+ export interface AlertBarProps {
2
+ title: string;
3
+ text?: string;
4
+ type?: 'info' | 'warning' | 'success' | 'error';
5
+ size?: 'small' | 'large';
6
+ }
7
+ export declare const AlertBar: {
8
+ (props: AlertBarProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ defaultProps: {
10
+ type: string;
11
+ text: string;
12
+ size: string;
13
+ };
14
+ };
15
+ export default AlertBar;
@@ -0,0 +1,13 @@
1
+ export interface BaseButtonProps {
2
+ color: 'primary' | 'secondary' | 'danger';
3
+ disabled?: boolean;
4
+ size?: 'large' | 'small';
5
+ round?: boolean;
6
+ children: React.ReactNode;
7
+ onClick?: () => void;
8
+ }
9
+ declare const BaseButton: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ } & BaseButtonProps, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
13
+ export default BaseButton;
@@ -0,0 +1,9 @@
1
+ import { BaseButtonProps } from './BaseButton';
2
+ import { default as React } from 'react';
3
+
4
+ export interface ButtonProps extends Omit<BaseButtonProps, 'round'> {
5
+ iconLeft?: React.ReactNode;
6
+ iconRight?: React.ReactNode;
7
+ }
8
+ export declare const Button: React.FC<ButtonProps>;
9
+ export default Button;
@@ -0,0 +1,19 @@
1
+ export interface DropdownProps {
2
+ open: boolean;
3
+ setOpen: (open: boolean) => void;
4
+ children: React.ReactNode;
5
+ right?: number;
6
+ left?: number;
7
+ top?: number;
8
+ bottom?: number;
9
+ }
10
+ export declare const Dropdown: {
11
+ ({ children, open, setOpen, ...rest }: DropdownProps): import("@emotion/react/jsx-runtime").JSX.Element;
12
+ defaultProps: {
13
+ right: number;
14
+ left: number;
15
+ top: number;
16
+ bottom: number;
17
+ };
18
+ };
19
+ export default Dropdown;
@@ -0,0 +1,15 @@
1
+ export interface DropdownOptionProps {
2
+ label: string;
3
+ href?: string;
4
+ onClick?: () => void;
5
+ icon?: React.ReactNode;
6
+ }
7
+ declare const DropdownOption: {
8
+ ({ label, href, onClick, icon, }: DropdownOptionProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ defaultProps: {
10
+ href: undefined;
11
+ onClick: undefined;
12
+ icon: undefined;
13
+ };
14
+ };
15
+ export default DropdownOption;
@@ -0,0 +1,16 @@
1
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ sz?: 'sm' | 'lg';
3
+ error?: boolean;
4
+ leftIcon?: React.ElementType;
5
+ rightIcon?: React.ElementType;
6
+ }
7
+ export declare const Input: {
8
+ ({ leftIcon: LeftIcon, rightIcon: RightIcon, ...props }: InputProps): import("@emotion/react/jsx-runtime").JSX.Element;
9
+ defaultProps: {
10
+ sz: string;
11
+ error: boolean;
12
+ leftIcon: undefined;
13
+ rightIcon: undefined;
14
+ };
15
+ };
16
+ export default Input;
@@ -0,0 +1,23 @@
1
+ export interface MultiSelectOption {
2
+ value: string;
3
+ label: string;
4
+ }
5
+ export interface MultiSelectProps extends React.InputHTMLAttributes<HTMLSelectElement> {
6
+ sz?: 'sm' | 'lg';
7
+ error?: boolean;
8
+ leftIcon?: React.ElementType;
9
+ rightIcon?: React.ElementType;
10
+ options: MultiSelectOption[];
11
+ }
12
+ export declare const InputWrapper: import('@emotion/styled').StyledComponent<{
13
+ theme?: import('@emotion/react').Theme;
14
+ as?: React.ElementType;
15
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const MultiSelect: {
17
+ (props: MultiSelectProps): import("@emotion/react/jsx-runtime").JSX.Element;
18
+ defaultProps: {
19
+ sz: string;
20
+ error: boolean;
21
+ };
22
+ };
23
+ export default MultiSelect;
@@ -0,0 +1,14 @@
1
+ export interface SearchProps extends React.InputHTMLAttributes<HTMLInputElement> {
2
+ sz?: 'sm' | 'lg';
3
+ loading: boolean;
4
+ setLoading: (value: boolean) => void;
5
+ setSearchValue: (value: string) => void;
6
+ }
7
+ export declare const loadingWheelStyle: import('@emotion/react').SerializedStyles;
8
+ export declare const Search: {
9
+ (props: SearchProps): import("@emotion/react/jsx-runtime").JSX.Element;
10
+ defaultProps: {
11
+ sz: string;
12
+ };
13
+ };
14
+ export default Search;
@@ -0,0 +1,3 @@
1
+ export * from './Input';
2
+ export * from './MultiSelect';
3
+ export * from './Search';
@@ -0,0 +1,12 @@
1
+ export interface TooltipProps {
2
+ y?: 'top' | 'bottom' | 'center';
3
+ x?: 'left' | 'right' | 'center';
4
+ size?: 'small' | 'large';
5
+ children: React.ReactNode;
6
+ content: string;
7
+ }
8
+ export interface TooltipWrapperProps extends Omit<TooltipProps, 'content' | 'children'> {
9
+ hover: boolean;
10
+ }
11
+ export declare const Tooltip: React.FC<TooltipProps>;
12
+ export default Tooltip;
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { SerializedStyles } from '@emotion/react';
3
+
4
+ export type TypographyProps = {
5
+ variant: 'headline100Regular' | 'headline100Semibold' | 'headline200Regular' | 'headline200Semibold' | 'headline300Regular' | 'headline300Semibold' | 'paragraph100Regular' | 'paragraph100Semibold' | 'paragraph200Regular' | 'paragraph200Semibold' | 'paragraph300Regular' | 'paragraph300Medium' | 'paragraph300Semibold' | 'paragraph300Bold' | 'button100Medium' | 'button200Medium' | 'label100Regular' | 'label100Medium' | 'label100Semibold' | 'label200Regular' | 'label200Medium' | 'label200Semibold';
6
+ /**
7
+ * The color of the text. This can be any css color string or one of the following:
8
+ *
9
+ * `primary` `secondary`
10
+ */
11
+ color?: 'primary' | 'secondary' | string;
12
+ css?: SerializedStyles;
13
+ as?: keyof React.JSX.IntrinsicElements;
14
+ } & React.HTMLAttributes<HTMLDivElement>;
15
+ export declare const Typography: React.FC<TypographyProps>;
16
+ export default Typography;
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@paubox/ui",
3
+ "author": "Paubox, Inc.",
4
+ "description": "Paubox Component Library",
5
+ "version": "0.1.0",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./index.d.ts",
12
+ "default": "./index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./index.d.ts",
16
+ "default": "./index.js"
17
+ }
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,31 @@
1
+ export declare const BASE_FONT_SIZE = 16;
2
+ export declare const headline100FontSize = 24;
3
+ export declare const headline100LineHeight = 30;
4
+ export declare const headline100LetterSpacing = -0.5;
5
+ export declare const headline200FontSize = 22;
6
+ export declare const headline200LineHeight = 28;
7
+ export declare const headline200LetterSpacing = -0.5;
8
+ export declare const headline300FontSize = 20;
9
+ export declare const headline300LineHeight = 24;
10
+ export declare const headline300LetterSpacing = -0.5;
11
+ export declare const paragraph100FontSize = 16;
12
+ export declare const paragraph100LineHeight = 24;
13
+ export declare const paragraph100LetterSpacing = 0;
14
+ export declare const paragraph200FontSize = 14;
15
+ export declare const paragraph200LineHeight = 20;
16
+ export declare const paragraph200LetterSpacing = 0;
17
+ export declare const paragraph300FontSize = 12;
18
+ export declare const paragraph300LineHeight = 16;
19
+ export declare const paragraph300LetterSpacing = 0;
20
+ export declare const button100FontSize = 16;
21
+ export declare const button100LineHeight = 16;
22
+ export declare const button100LetterSpacing: number;
23
+ export declare const button200FontSize = 12;
24
+ export declare const button200LineHeight = 12;
25
+ export declare const button200LetterSpacing: number;
26
+ export declare const label100FontSize = 16;
27
+ export declare const label100LineHeight = 16;
28
+ export declare const label100LetterSpacing: number;
29
+ export declare const label200FontSize = 14;
30
+ export declare const label200LineHeight = 16;
31
+ export declare const label200LetterSpacing: number;
@@ -0,0 +1,89 @@
1
+ export declare const textPrimary = "#1D2433";
2
+ export declare const textSecondary = "#1D2433CC";
3
+ export declare const textPrimaryWhite = "#FFFFFF";
4
+ export declare const textPrimaryDisabled = "#545D78";
5
+ export declare const textPrimaryIconDisabled = "#0000004D";
6
+ export declare const textDanger = "#E02D3C";
7
+ export declare const textDangerHover = "##E34553";
8
+ export declare const textDangerPressed = "#E02D3C";
9
+ export declare const neutral100 = "#F2F2F2";
10
+ export declare const neutral200 = "#E3E3E3";
11
+ export declare const neutral300 = "#C9C9C9";
12
+ export declare const neutral400 = "#B3B3B3";
13
+ export declare const neutral500 = "#757575";
14
+ export declare const neutral600 = "#4D4D4D";
15
+ export declare const neutral700 = "#333333";
16
+ export declare const neutral800 = "#1A1A1A";
17
+ export declare const neutral900 = "#000000";
18
+ export declare const primary100 = "#E8EFFF";
19
+ export declare const primary200 = "#D4E2FF";
20
+ export declare const primary300 = "#94B6FF";
21
+ export declare const primary400 = "#6193FF";
22
+ export declare const primary500 = "#2E70FF";
23
+ export declare const primary600 = "#0247DC";
24
+ export declare const primary700 = "#003AB8";
25
+ export declare const primary800 = "#003099";
26
+ export declare const primary900 = "#002066";
27
+ export declare const secondary100 = "#FFF8E4";
28
+ export declare const secondary200 = "#FFF1C7";
29
+ export declare const secondary300 = "#FFE394";
30
+ export declare const secondary400 = "#FFD761";
31
+ export declare const secondary500 = "#FFCA2F";
32
+ export declare const secondary600 = "#FBBB00";
33
+ export declare const secondary700 = "#CC9800";
34
+ export declare const secondary800 = "#997200";
35
+ export declare const secondary900 = "#664C00";
36
+ export declare const secondaryCharts1100 = "#F6FFE5";
37
+ export declare const secondaryCharts1200 = "#ECFFC7";
38
+ export declare const secondaryCharts1300 = "#D8FA99";
39
+ export declare const secondaryCharts1400 = "#C4F36D";
40
+ export declare const secondaryCharts1500 = "#B1EF3E";
41
+ export declare const secondaryCharts1600 = "#97DB18";
42
+ export declare const secondaryCharts1700 = "#7EB715";
43
+ export declare const secondaryCharts1800 = "#5F8A0F";
44
+ export declare const secondaryCharts1900 = "#3E5B0B";
45
+ export declare const secondaryCharts2100 = "#E5FBFF";
46
+ export declare const secondaryCharts2200 = "#C7F7FF";
47
+ export declare const secondaryCharts2300 = "#94EEFF";
48
+ export declare const secondaryCharts2400 = "#61E6FF";
49
+ export declare const secondaryCharts2500 = "#2EDEFF";
50
+ export declare const secondaryCharts2600 = "#09C5E8";
51
+ export declare const secondaryCharts2700 = "#07A7C5";
52
+ export declare const secondaryCharts2800 = "#067D93";
53
+ export declare const secondaryCharts2900 = "#045462";
54
+ export declare const secondaryCharts3100 = "#F6E9FB";
55
+ export declare const secondaryCharts3200 = "#EBCFF7";
56
+ export declare const secondaryCharts3300 = "#D9A4EF";
57
+ export declare const secondaryCharts3400 = "#C975EB";
58
+ export declare const secondaryCharts3500 = "#B352DA";
59
+ export declare const secondaryCharts3600 = "#8603BC";
60
+ export declare const secondaryCharts3700 = "#660F8A";
61
+ export declare const secondaryCharts3800 = "#480264";
62
+ export declare const secondaryCharts3900 = "#36014B";
63
+ export declare const success100 = "#ECFDF8";
64
+ export declare const success200 = "#D1FAEC";
65
+ export declare const success300 = "#A5F3D9";
66
+ export declare const success400 = "#6EE7BF";
67
+ export declare const success500 = "#36D39F";
68
+ export declare const success600 = "#0EA472";
69
+ export declare const success700 = "#08875D";
70
+ export declare const success800 = "#04724D";
71
+ export declare const success900 = "#066042";
72
+ export declare const warning100 = "#FFF8E4";
73
+ export declare const warning200 = "#FFF0C7";
74
+ export declare const warning300 = "#FFE394";
75
+ export declare const warning400 = "#FFD761";
76
+ export declare const warning500 = "#FFCA2F";
77
+ export declare const warning600 = "#FBBB00";
78
+ export declare const warning700 = "#CC9800";
79
+ export declare const warning800 = "#CC9800";
80
+ export declare const warning900 = "#CCCCCC";
81
+ export declare const danger100 = "#FEF1F2";
82
+ export declare const danger200 = "#FEE1E3";
83
+ export declare const danger300 = "#FEC8CC";
84
+ export declare const danger400 = "#FCA6AD";
85
+ export declare const danger500 = "#F8727D";
86
+ export declare const danger600 = "#EF4352";
87
+ export declare const danger700 = "#E02D3C";
88
+ export declare const danger800 = "#BA2532";
89
+ export declare const danger900 = "#981B25";
@@ -0,0 +1,4 @@
1
+ export declare const elevation100: import('@emotion/react').SerializedStyles;
2
+ export declare const elevation200: import('@emotion/react').SerializedStyles;
3
+ export declare const elevation300: import('@emotion/react').SerializedStyles;
4
+ export declare const elevation400: import('@emotion/react').SerializedStyles;
@@ -0,0 +1,4 @@
1
+ export * as colors from './colors';
2
+ export * as baseTypography from './baseTypography';
3
+ export * as typography from './typography';
4
+ export * as elevation from './elevation';
@@ -0,0 +1,22 @@
1
+ export declare const $headline100Regular: import('@emotion/react').SerializedStyles;
2
+ export declare const $headline100Semibold: import('@emotion/react').SerializedStyles;
3
+ export declare const $headline200Regular: import('@emotion/react').SerializedStyles;
4
+ export declare const $headline200Semibold: import('@emotion/react').SerializedStyles;
5
+ export declare const $headline300Regular: import('@emotion/react').SerializedStyles;
6
+ export declare const $headline300Semibold: import('@emotion/react').SerializedStyles;
7
+ export declare const $paragraph100Regular: import('@emotion/react').SerializedStyles;
8
+ export declare const $paragraph100Semibold: import('@emotion/react').SerializedStyles;
9
+ export declare const $paragraph200Regular: import('@emotion/react').SerializedStyles;
10
+ export declare const $paragraph200Semibold: import('@emotion/react').SerializedStyles;
11
+ export declare const $paragraph300Regular: import('@emotion/react').SerializedStyles;
12
+ export declare const $paragraph300Medium: import('@emotion/react').SerializedStyles;
13
+ export declare const $paragraph300Semibold: import('@emotion/react').SerializedStyles;
14
+ export declare const $paragraph300Bold: import('@emotion/react').SerializedStyles;
15
+ export declare const $button100Medium: import('@emotion/react').SerializedStyles;
16
+ export declare const $button200Medium: import('@emotion/react').SerializedStyles;
17
+ export declare const $label100Regular: import('@emotion/react').SerializedStyles;
18
+ export declare const $label100Medium: import('@emotion/react').SerializedStyles;
19
+ export declare const $label100Semibold: import('@emotion/react').SerializedStyles;
20
+ export declare const $label200Regular: import('@emotion/react').SerializedStyles;
21
+ export declare const $label200Medium: import('@emotion/react').SerializedStyles;
22
+ export declare const $label200Semibold: import('@emotion/react').SerializedStyles;