@mailstep/design-system 0.0.6 → 0.0.8
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/index.cjs.js +324 -0
- package/dist/index.es.js +2047 -7435
- package/package.json +13 -14
- package/.eslintrc.cjs +0 -16
- package/dist/Elements/Button/stories/Button.stories.d.ts +0 -20
- package/dist/Elements/Icon/stories/Icon.stories.d.ts +0 -16
- package/dist/index.umd.js +0 -1221
- package/src/ui/Elements/Button/Button.d.ts +0 -4
- package/src/ui/Elements/Button/Button.tsx +0 -42
- package/src/ui/Elements/Button/index.d.ts +0 -6
- package/src/ui/Elements/Button/index.ts +0 -5
- package/src/ui/Elements/Button/stories/Button.stories.ts +0 -84
- package/src/ui/Elements/Button/styles.ts +0 -289
- package/src/ui/Elements/Button/types.ts +0 -31
- package/src/ui/Elements/Icon/BadgeIcon.tsx +0 -45
- package/src/ui/Elements/Icon/Icon.tsx +0 -288
- package/src/ui/Elements/Icon/icons/FlagCZ.tsx +0 -10
- package/src/ui/Elements/Icon/icons/FlagUSA.tsx +0 -27
- package/src/ui/Elements/Icon/icons/index.ts +0 -2
- package/src/ui/Elements/Icon/index.d.ts +0 -9
- package/src/ui/Elements/Icon/index.ts +0 -6
- package/src/ui/Elements/Icon/stories/BadgeIcon.stories.tsx +0 -27
- package/src/ui/Elements/Icon/stories/Icon.stories.tsx +0 -60
- package/src/ui/Elements/Icon/types.ts +0 -26
- package/src/ui/Elements/Spinner/README.md +0 -9
- package/src/ui/Elements/Spinner/Spinner.tsx +0 -36
- package/src/ui/Elements/Spinner/index.d.ts +0 -5
- package/src/ui/Elements/Spinner/index.ts +0 -3
- package/src/ui/Elements/Spinner/stories/Spinner.stories.ts +0 -70
- package/src/ui/Elements/Spinner/styles.ts +0 -38
- package/src/ui/Elements/Spinner/types.ts +0 -8
- package/src/ui/Elements/Spinner/yarn.lock +0 -4
- package/src/ui/ThemeProvider/README.md +0 -0
- package/src/ui/ThemeProvider/ThemeProvider.d.ts +0 -3
- package/src/ui/ThemeProvider/ThemeProvider.tsx +0 -14
- package/src/ui/ThemeProvider/index.d.ts +0 -8
- package/src/ui/ThemeProvider/index.ts +0 -6
- package/src/ui/ThemeProvider/themes/default.ts +0 -144
- package/src/ui/ThemeProvider/themes/index.ts +0 -11
- package/src/ui/ThemeProvider/themes/light.ts +0 -10
- package/src/ui/ThemeProvider/themes/mailwise.ts +0 -215
- package/src/ui/ThemeProvider/types.ts +0 -54
- package/src/ui/ThemeProvider/yarn.lock +0 -4
- package/src/ui/index.ts +0 -2
- package/tsconfig.json +0 -26
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -31
package/package.json
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailstep/design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/index.cjs.js",
|
|
11
|
+
"module": "./dist/index.es.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.es.js",
|
|
15
|
+
"require": "./dist/index.cjs.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
7
18
|
"scripts": {
|
|
8
19
|
"dev": "storybook dev -p 6006",
|
|
9
20
|
"build": "tsc && vite build",
|
|
10
21
|
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
11
|
-
"build-storybook": "storybook build"
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
|
-
"main": "./dist/index.umd.js",
|
|
16
|
-
"module": "./dist/index.es.js",
|
|
17
|
-
"types": "./dist/index.d.ts",
|
|
18
|
-
"exports": {
|
|
19
|
-
".": {
|
|
20
|
-
"import": "./dist/index.es.js",
|
|
21
|
-
"require": "./dist/index.umd.js"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
22
|
+
"build-storybook": "storybook build"
|
|
24
23
|
},
|
|
25
24
|
"peerDependencies": {
|
|
26
25
|
"@fortawesome/fontawesome-svg-core": "^6.3.0",
|
package/.eslintrc.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
browser: true,
|
|
5
|
-
es2020: true
|
|
6
|
-
},
|
|
7
|
-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:react-hooks/recommended', 'plugin:storybook/recommended'],
|
|
8
|
-
ignorePatterns: ['dist', '.eslintrc.cjs'],
|
|
9
|
-
parser: '@typescript-eslint/parser',
|
|
10
|
-
plugins: ['react-refresh'],
|
|
11
|
-
rules: {
|
|
12
|
-
'react-refresh/only-export-components': ['warn', {
|
|
13
|
-
allowConstantExport: true
|
|
14
|
-
}]
|
|
15
|
-
}
|
|
16
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|