@mailstep/design-system 0.0.2 → 0.0.4
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/dist/Elements/Button/Button.d.ts +3 -0
- package/dist/Elements/Button/index.d.ts +4 -0
- package/dist/Elements/Button/stories/Button.stories.d.ts +20 -0
- package/dist/Elements/Button/styles.d.ts +19 -0
- package/dist/Elements/Button/types.d.ts +22 -0
- package/dist/Elements/Icon/BadgeIcon.d.ts +6 -0
- package/dist/Elements/Icon/Icon.d.ts +8 -0
- package/dist/Elements/Icon/icons/FlagCZ.d.ts +3 -0
- package/dist/Elements/Icon/icons/FlagUSA.d.ts +3 -0
- package/dist/Elements/Icon/icons/index.d.ts +2 -0
- package/dist/Elements/Icon/index.d.ts +5 -0
- package/dist/Elements/Icon/stories/Icon.stories.d.ts +16 -0
- package/dist/Elements/Icon/types.d.ts +22 -0
- package/dist/Elements/Spinner/Spinner.d.ts +14 -0
- package/dist/Elements/Spinner/index.d.ts +2 -0
- package/dist/Elements/Spinner/stories/Spinner.stories.d.ts +19 -0
- package/dist/Elements/Spinner/styles.d.ts +4 -0
- package/dist/Elements/Spinner/types.d.ts +7 -0
- package/dist/ThemeProvider/ThemeProvider.d.ts +3 -0
- package/dist/ThemeProvider/index.d.ts +5 -0
- package/dist/ThemeProvider/themes/default.d.ts +141 -0
- package/dist/ThemeProvider/themes/index.d.ts +350 -0
- package/dist/ThemeProvider/themes/light.d.ts +3 -0
- package/dist/ThemeProvider/themes/mailwise.d.ts +207 -0
- package/dist/ThemeProvider/types.d.ts +50 -0
- package/dist/index.d.ts +1 -0
- package/dist/mailstep-design-system.es.d.ts +1 -0
- package/dist/mailstep-design-system.es.js +8244 -0
- package/dist/mailstep-design-system.umd.js +1221 -0
- package/dist/vite.svg +1 -0
- package/package.json +3 -27
- package/vite.config.ts +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ isLoading, loadingText, icon, appearance, disabled, sizing, buttonRef, onClick, fullWidth, ...props }: import("../types").Props) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Primary: Story;
|
|
12
|
+
export declare const PrimaryLight: Story;
|
|
13
|
+
export declare const Secondary: Story;
|
|
14
|
+
export declare const Success: Story;
|
|
15
|
+
export declare const Large: Story;
|
|
16
|
+
export declare const Small: Story;
|
|
17
|
+
export declare const DisabledPrimary: Story;
|
|
18
|
+
export declare const DisabledSecondary: Story;
|
|
19
|
+
export declare const Loading: Story;
|
|
20
|
+
export declare const WithIcon: Story;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledWrapper: import("styled-components").StyledComponent<"span", import("@xstyled/system").Theme, {}, never>;
|
|
3
|
+
export declare const LoadingIconWrapper: import("styled-components").StyledComponent<"div", import("@xstyled/system").Theme, {
|
|
4
|
+
$addMargin: boolean;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("../Icon").IconProps) => JSX.Element, import("@xstyled/system").Theme, {
|
|
7
|
+
$addMargin: boolean;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const StyledButton: import("styled-components").StyledComponent<"button", import("@xstyled/system").Theme, {
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
columnAlign?: boolean | undefined;
|
|
12
|
+
children?: any;
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
14
|
+
fullWidth: boolean;
|
|
15
|
+
mt?: string | number | undefined;
|
|
16
|
+
mr?: string | number | undefined;
|
|
17
|
+
mb?: string | number | undefined;
|
|
18
|
+
ml?: string | number | undefined;
|
|
19
|
+
}, never>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type SizingValue = 'icon' | 'iconLg' | 'normal' | 'large' | 'grid';
|
|
3
|
+
export type AppearanceValue = 'primary' | 'primaryLight' | 'secondary' | 'primaryLg' | 'secondaryLg' | 'minimal' | 'minimalRed' | 'success';
|
|
4
|
+
export type Props = React.HTMLProps<HTMLButtonElement> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
appearance?: AppearanceValue;
|
|
8
|
+
buttonRef?: any;
|
|
9
|
+
sizing?: SizingValue;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
as?: string | React.ComponentType;
|
|
13
|
+
loadingText?: string | JSX.Element;
|
|
14
|
+
columnAlign?: boolean;
|
|
15
|
+
icon?: string | JSX.Element;
|
|
16
|
+
type?: 'button' | 'submit' | 'reset';
|
|
17
|
+
fullWidth?: boolean;
|
|
18
|
+
mt?: string | number;
|
|
19
|
+
mr?: string | number;
|
|
20
|
+
mb?: string | number;
|
|
21
|
+
ml?: string | number;
|
|
22
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/fontawesome-common-types';
|
|
2
|
+
import { FlipProp } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import { IconProps } from './types';
|
|
4
|
+
export declare const iconDictionary: {
|
|
5
|
+
[name: string]: IconDefinition | [IconDefinition, FlipProp];
|
|
6
|
+
};
|
|
7
|
+
declare const Icon: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: IconProps) => JSX.Element;
|
|
8
|
+
export default Icon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ icon, fill, style, size, className, secondaryColor, fixedWidth, spinning, }: import("..").IconProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
};
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Expedition: Story;
|
|
12
|
+
export declare const Spinning: Story;
|
|
13
|
+
export declare const SmallExpedition: Story;
|
|
14
|
+
export declare const BigExpedition: Story;
|
|
15
|
+
export declare const ExpeditionPink: Story;
|
|
16
|
+
export declare const ExpeditionPinkSolid: Story;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MouseEventHandler } from 'react';
|
|
2
|
+
export type IconProps = {
|
|
3
|
+
icon: string;
|
|
4
|
+
style?: 'normal' | 'light' | 'solid';
|
|
5
|
+
fill?: string;
|
|
6
|
+
size?: number | string;
|
|
7
|
+
className?: string;
|
|
8
|
+
fixedWidth?: boolean;
|
|
9
|
+
spinning?: boolean;
|
|
10
|
+
secondaryColor?: string;
|
|
11
|
+
};
|
|
12
|
+
export interface SvgProps {
|
|
13
|
+
width?: number | string;
|
|
14
|
+
height?: number | string;
|
|
15
|
+
onClick?: MouseEventHandler<SVGSVGElement>;
|
|
16
|
+
fill?: string;
|
|
17
|
+
stroke?: string;
|
|
18
|
+
cursor?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IIcon {
|
|
21
|
+
(props: IconProps): JSX.Element;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ISpinner } from './types';
|
|
2
|
+
export declare const appearanceToColorMap: {
|
|
3
|
+
error: string;
|
|
4
|
+
concept: string;
|
|
5
|
+
done: string;
|
|
6
|
+
info: string;
|
|
7
|
+
processing: string;
|
|
8
|
+
success: string;
|
|
9
|
+
warning: string;
|
|
10
|
+
waiting: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const appearanceToFontColorMap: Record<string, string>;
|
|
13
|
+
export declare const Spinner: ISpinner;
|
|
14
|
+
export default Spinner;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import("../types").ISpinner;
|
|
5
|
+
tags: string[];
|
|
6
|
+
argTypes: {};
|
|
7
|
+
};
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof meta>;
|
|
10
|
+
export declare const Default: Story;
|
|
11
|
+
export declare const Sm: Story;
|
|
12
|
+
export declare const AppearanceConcept: Story;
|
|
13
|
+
export declare const AppearanceDone: Story;
|
|
14
|
+
export declare const AppearanceError: Story;
|
|
15
|
+
export declare const AppearanceInfo: Story;
|
|
16
|
+
export declare const AppearanceProcessing: Story;
|
|
17
|
+
export declare const AppearanceSuccess: Story;
|
|
18
|
+
export declare const AppearanceWarning: Story;
|
|
19
|
+
export declare const AppearanceWaiting: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Svg: import("styled-components").StyledComponent<"svg", import("@xstyled/system").Theme, {
|
|
2
|
+
$variant: 'default' | 'sm';
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const Circle: import("styled-components").StyledComponent<"circle", import("@xstyled/system").Theme, {}, never>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type AppearanceType = 'concept' | 'done' | 'error' | 'info' | 'processing' | 'success' | 'warning' | 'waiting';
|
|
3
|
+
export interface SpinnerProps {
|
|
4
|
+
variant?: 'default' | 'sm';
|
|
5
|
+
appearance?: AppearanceType;
|
|
6
|
+
}
|
|
7
|
+
export type ISpinner = (props: SpinnerProps) => JSX.Element;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
declare const defaultTheme: {
|
|
2
|
+
breakpoints: string[];
|
|
3
|
+
colors: {
|
|
4
|
+
white: string;
|
|
5
|
+
bgLightGray: string;
|
|
6
|
+
bgLightGray1: string;
|
|
7
|
+
lightGray1: string;
|
|
8
|
+
lightGray2: string;
|
|
9
|
+
lightGray3: string;
|
|
10
|
+
lightGray4: string;
|
|
11
|
+
lightGray5: string;
|
|
12
|
+
lightGray6: string;
|
|
13
|
+
lightGray7: string;
|
|
14
|
+
neutral20: string;
|
|
15
|
+
neutral300: string;
|
|
16
|
+
gray: string;
|
|
17
|
+
gray1: string;
|
|
18
|
+
gray2: string;
|
|
19
|
+
gray3: string;
|
|
20
|
+
gray4: string;
|
|
21
|
+
gray5: string;
|
|
22
|
+
blue1: string;
|
|
23
|
+
blue2: string;
|
|
24
|
+
blue3: string;
|
|
25
|
+
blue4: string;
|
|
26
|
+
textPrimary: string;
|
|
27
|
+
textTertiary: string;
|
|
28
|
+
typoPrimary: string;
|
|
29
|
+
blue10: string;
|
|
30
|
+
blue20: string;
|
|
31
|
+
blue60: string;
|
|
32
|
+
blue70: string;
|
|
33
|
+
blue80: string;
|
|
34
|
+
blue90: string;
|
|
35
|
+
teal20: string;
|
|
36
|
+
teal40: string;
|
|
37
|
+
teal50: string;
|
|
38
|
+
teal60: string;
|
|
39
|
+
teal70: string;
|
|
40
|
+
teal80: string;
|
|
41
|
+
teal90: string;
|
|
42
|
+
green10: string;
|
|
43
|
+
green20: string;
|
|
44
|
+
green30: string;
|
|
45
|
+
green50: string;
|
|
46
|
+
green60: string;
|
|
47
|
+
green70: string;
|
|
48
|
+
green80: string;
|
|
49
|
+
green90: string;
|
|
50
|
+
green: string;
|
|
51
|
+
successColor: string;
|
|
52
|
+
darkGreen: string;
|
|
53
|
+
orange20: string;
|
|
54
|
+
orange30: string;
|
|
55
|
+
orange50: string;
|
|
56
|
+
orange60: string;
|
|
57
|
+
orange80: string;
|
|
58
|
+
yellow10: string;
|
|
59
|
+
yellow20: string;
|
|
60
|
+
yellow60: string;
|
|
61
|
+
yellow70: string;
|
|
62
|
+
yellow1: string;
|
|
63
|
+
yellow2: string;
|
|
64
|
+
red10: string;
|
|
65
|
+
red20: string;
|
|
66
|
+
red30: string;
|
|
67
|
+
red50: string;
|
|
68
|
+
red1: string;
|
|
69
|
+
red2: string;
|
|
70
|
+
red3: string;
|
|
71
|
+
red60: string;
|
|
72
|
+
red80: string;
|
|
73
|
+
dangerColor: string;
|
|
74
|
+
purple20: string;
|
|
75
|
+
purple40: string;
|
|
76
|
+
purple50: string;
|
|
77
|
+
purple60: string;
|
|
78
|
+
purple80: string;
|
|
79
|
+
purple90: string;
|
|
80
|
+
magenta20: string;
|
|
81
|
+
magenta60: string;
|
|
82
|
+
magenta80: string;
|
|
83
|
+
magenta90: string;
|
|
84
|
+
};
|
|
85
|
+
fonts: {
|
|
86
|
+
primary: string;
|
|
87
|
+
heading: string;
|
|
88
|
+
};
|
|
89
|
+
fontLinks: string[];
|
|
90
|
+
fontSizes: string[];
|
|
91
|
+
lineHeights: number[];
|
|
92
|
+
fontWeights: {
|
|
93
|
+
default: null;
|
|
94
|
+
normal: number;
|
|
95
|
+
medium: number;
|
|
96
|
+
semiBold: number;
|
|
97
|
+
bold: number;
|
|
98
|
+
};
|
|
99
|
+
letterSpacings: {
|
|
100
|
+
default: null;
|
|
101
|
+
sm: string;
|
|
102
|
+
md: string;
|
|
103
|
+
lg: string;
|
|
104
|
+
};
|
|
105
|
+
borders: {
|
|
106
|
+
slim: string;
|
|
107
|
+
mediumSlim: string;
|
|
108
|
+
medium: string;
|
|
109
|
+
mediumThick: string;
|
|
110
|
+
thick: string;
|
|
111
|
+
};
|
|
112
|
+
radii: {
|
|
113
|
+
sm: string;
|
|
114
|
+
md: string;
|
|
115
|
+
ml: string;
|
|
116
|
+
lg: string;
|
|
117
|
+
xl: string;
|
|
118
|
+
};
|
|
119
|
+
shadows: {
|
|
120
|
+
boxShadow: string;
|
|
121
|
+
dropShadow: string;
|
|
122
|
+
inputFocusBoxShadow: string;
|
|
123
|
+
dropdownMenuShadow: string;
|
|
124
|
+
tooltipBoxShadow: string;
|
|
125
|
+
cardShadow: string;
|
|
126
|
+
smooth: string;
|
|
127
|
+
dialogShadow: string;
|
|
128
|
+
tooltipShadow: string;
|
|
129
|
+
headerShadow: string;
|
|
130
|
+
headerShadowB: string;
|
|
131
|
+
headerShadowNotifications: string;
|
|
132
|
+
cornerDialogShadow: string;
|
|
133
|
+
};
|
|
134
|
+
space: number[];
|
|
135
|
+
transitions: {
|
|
136
|
+
simpleLong: string;
|
|
137
|
+
inputTransition: string;
|
|
138
|
+
};
|
|
139
|
+
zIndices: number[];
|
|
140
|
+
};
|
|
141
|
+
export default defaultTheme;
|