@mindly/ui-components 0.1.1 → 0.1.3
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.tsx +9 -0
- package/package.json +8 -1
- package/.eslintrc.json +0 -47
- package/.idea/codeStyles/Project.xml +0 -45
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
- package/.idea/inspectionProfiles/Project_Default.xml +0 -6
- package/.idea/jsLinters/eslint.xml +0 -6
- package/.idea/mindly-components.iml +0 -13
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
- package/.storybook/main.js +0 -11
- package/.storybook/preview.js +0 -9
- package/babel.config.json +0 -18
- package/ionic.config.json +0 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/src/fonts/Lato-Bold.ttf +0 -0
- package/src/fonts/Lato-Regular.ttf +0 -0
- package/src/fonts/Lato-Semibold.ttf +0 -0
- package/src/index.tsx +0 -9
- package/src/lib/Theme/global.css +0 -191
- package/src/lib/Theme/mindly_constants.ts +0 -20
- package/src/lib/button/Button.style.ts +0 -83
- package/src/lib/button/Button.tsx +0 -29
- package/src/lib/consultation-card/consultationCard.tsx +0 -18
- package/src/lib/floating-button/floating button.svg +0 -6
- package/src/lib/floating-button/floatingButton.style.ts +0 -21
- package/src/lib/floating-button/floatingButton.tsx +0 -29
- package/src/lib/footer-for-booking/FooterForBooking.style.ts +0 -42
- package/src/lib/footer-for-booking/FooterForBooking.tsx +0 -43
- package/src/lib/list-button/listButton.style.ts +0 -19
- package/src/lib/list-button/listButton.tsx +0 -19
- package/src/lib/navigation-bar/NavigationBar.style.ts +0 -56
- package/src/lib/navigation-bar/NavigationBar.tsx +0 -26
- package/src/lib/tab-bar/tabBar.style.ts +0 -15
- package/src/lib/tab-bar/tabBar.tsx +0 -31
- package/src/lib/therapist-card/TherapistCard.style.ts +0 -140
- package/src/lib/therapist-card/TherapistCard.tsx +0 -97
- package/src/react-app-env.d.ts +0 -1
- package/src/stories/Button.stories.tsx +0 -37
- package/src/stories/Button.tsx +0 -48
- package/src/stories/Header.stories.tsx +0 -19
- package/src/stories/Header.tsx +0 -47
- package/src/stories/Introduction.stories.mdx +0 -211
- package/src/stories/Page.stories.tsx +0 -22
- package/src/stories/Page.tsx +0 -67
- package/src/stories/assets/code-brackets.svg +0 -1
- package/src/stories/assets/colors.svg +0 -1
- package/src/stories/assets/comments.svg +0 -1
- package/src/stories/assets/direction.svg +0 -1
- package/src/stories/assets/flow.svg +0 -1
- package/src/stories/assets/plugin.svg +0 -1
- package/src/stories/assets/repo.svg +0 -1
- package/src/stories/assets/stackalt.svg +0 -1
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -26
- package/src/stories/page.css +0 -69
- package/tsconfig.json +0 -26
package/dist/index.tsx
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Button from './button/Button';
|
|
2
|
+
import ConsultationCard from './consultation-card/consultationCard';
|
|
3
|
+
import FloatingButton from './floating-button/floatingButton';
|
|
4
|
+
import FooterForBooking from './footer-for-booking/FooterForBooking';
|
|
5
|
+
import ListButton from './list-button/listButton';
|
|
6
|
+
import NavigationBar from './navigation-bar/NavigationBar';
|
|
7
|
+
import {TabBar} from './tab-bar/tabBar';
|
|
8
|
+
|
|
9
|
+
export {Button, ConsultationCard, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindly/ui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/polyfill": "^7.12.1",
|
|
@@ -30,6 +30,8 @@
|
|
|
30
30
|
"babel": {
|
|
31
31
|
"presets": [
|
|
32
32
|
[
|
|
33
|
+
"@babel/preset-react",
|
|
34
|
+
"@babel/env",
|
|
33
35
|
"react-app",
|
|
34
36
|
{
|
|
35
37
|
"absoluteRuntime": false
|
|
@@ -69,6 +71,7 @@
|
|
|
69
71
|
"@babel/cli": "^7.15.7",
|
|
70
72
|
"@babel/core": "^7.15.5",
|
|
71
73
|
"@babel/preset-env": "^7.15.6",
|
|
74
|
+
"@babel/preset-react": "^7.14.5",
|
|
72
75
|
"@ionic/lab": "3.2.10",
|
|
73
76
|
"@storybook/addon-actions": "^6.3.7",
|
|
74
77
|
"@storybook/addon-essentials": "^6.3.7",
|
|
@@ -85,6 +88,10 @@
|
|
|
85
88
|
},
|
|
86
89
|
"description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
|
|
87
90
|
"main": "dist/index.js",
|
|
91
|
+
"files": [
|
|
92
|
+
"dist",
|
|
93
|
+
"README.md"
|
|
94
|
+
],
|
|
88
95
|
"module": "dist/index.js",
|
|
89
96
|
"repository": {
|
|
90
97
|
"type": "git",
|
package/.eslintrc.json
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"plugin:react/recommended",
|
|
8
|
-
"plugin:react-hooks/recommended",
|
|
9
|
-
"plugin:@typescript-eslint/recommended",
|
|
10
|
-
"google"
|
|
11
|
-
],
|
|
12
|
-
"parser": "@typescript-eslint/parser",
|
|
13
|
-
"parserOptions": {
|
|
14
|
-
"ecmaFeatures": {
|
|
15
|
-
"jsx": true
|
|
16
|
-
},
|
|
17
|
-
"ecmaVersion": 12,
|
|
18
|
-
"sourceType": "module"
|
|
19
|
-
},
|
|
20
|
-
"plugins": [
|
|
21
|
-
"react",
|
|
22
|
-
"@typescript-eslint"
|
|
23
|
-
],
|
|
24
|
-
"rules": {
|
|
25
|
-
"indent": "off",
|
|
26
|
-
"@typescript-eslint/indent": ["error"],
|
|
27
|
-
"quotes": [
|
|
28
|
-
"error",
|
|
29
|
-
"single"
|
|
30
|
-
],
|
|
31
|
-
"no-multi-spaces": "error",
|
|
32
|
-
"valid-jsdoc": "off",
|
|
33
|
-
"new-cap": "error",
|
|
34
|
-
"@typescript-eslint/no-unused-vars": [
|
|
35
|
-
"error"
|
|
36
|
-
],
|
|
37
|
-
"max-len": [
|
|
38
|
-
"error",
|
|
39
|
-
{
|
|
40
|
-
"code": 120
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"no-console": "off",
|
|
44
|
-
"linebreak-style": 0,
|
|
45
|
-
"no-duplicate-imports": "error"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
-
<code_scheme name="Project" version="173">
|
|
3
|
-
<JSCodeStyleSettings version="0">
|
|
4
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
5
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
6
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
7
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
8
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
9
|
-
</JSCodeStyleSettings>
|
|
10
|
-
<TypeScriptCodeStyleSettings version="0">
|
|
11
|
-
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
12
|
-
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
13
|
-
<option name="USE_DOUBLE_QUOTES" value="false" />
|
|
14
|
-
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
15
|
-
<option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
|
|
16
|
-
</TypeScriptCodeStyleSettings>
|
|
17
|
-
<codeStyleSettings language="JavaScript">
|
|
18
|
-
<option name="RIGHT_MARGIN" value="120" />
|
|
19
|
-
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
|
|
20
|
-
<option name="ALIGN_MULTILINE_FOR" value="false" />
|
|
21
|
-
<option name="IF_BRACE_FORCE" value="1" />
|
|
22
|
-
<option name="DOWHILE_BRACE_FORCE" value="1" />
|
|
23
|
-
<option name="WHILE_BRACE_FORCE" value="1" />
|
|
24
|
-
<option name="FOR_BRACE_FORCE" value="1" />
|
|
25
|
-
<indentOptions>
|
|
26
|
-
<option name="INDENT_SIZE" value="2" />
|
|
27
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
28
|
-
</indentOptions>
|
|
29
|
-
</codeStyleSettings>
|
|
30
|
-
<codeStyleSettings language="TypeScript">
|
|
31
|
-
<option name="RIGHT_MARGIN" value="120" />
|
|
32
|
-
<option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
|
|
33
|
-
<option name="ALIGN_MULTILINE_FOR" value="false" />
|
|
34
|
-
<option name="IF_BRACE_FORCE" value="1" />
|
|
35
|
-
<option name="DOWHILE_BRACE_FORCE" value="1" />
|
|
36
|
-
<option name="WHILE_BRACE_FORCE" value="1" />
|
|
37
|
-
<option name="FOR_BRACE_FORCE" value="1" />
|
|
38
|
-
<indentOptions>
|
|
39
|
-
<option name="INDENT_SIZE" value="2" />
|
|
40
|
-
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
41
|
-
<option name="SMART_TABS" value="true" />
|
|
42
|
-
</indentOptions>
|
|
43
|
-
</codeStyleSettings>
|
|
44
|
-
</code_scheme>
|
|
45
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="WEB_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
-
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
-
<excludeFolder url="file://$MODULE_DIR$/dist" />
|
|
9
|
-
</content>
|
|
10
|
-
<orderEntry type="inheritedJdk" />
|
|
11
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
12
|
-
</component>
|
|
13
|
-
</module>
|
package/.idea/modules.xml
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/mindly-components.iml" filepath="$PROJECT_DIR$/.idea/mindly-components.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
package/.idea/vcs.xml
DELETED
package/.storybook/main.js
DELETED
package/.storybook/preview.js
DELETED
package/babel.config.json
DELETED
package/ionic.config.json
DELETED
package/public/favicon.ico
DELETED
|
Binary file
|
package/public/index.html
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
-
<meta name="theme-color" content="#000000" />
|
|
8
|
-
<meta
|
|
9
|
-
name="description"
|
|
10
|
-
content="Web site created using create-react-app"
|
|
11
|
-
/>
|
|
12
|
-
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
13
|
-
<!--
|
|
14
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
15
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
16
|
-
-->
|
|
17
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
18
|
-
<!--
|
|
19
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
20
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
21
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
22
|
-
|
|
23
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
24
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
25
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
26
|
-
-->
|
|
27
|
-
<title>React App</title>
|
|
28
|
-
</head>
|
|
29
|
-
<body>
|
|
30
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
31
|
-
<div id="root"></div>
|
|
32
|
-
<!--
|
|
33
|
-
This HTML file is a template.
|
|
34
|
-
If you open it directly in the browser, you will see an empty page.
|
|
35
|
-
|
|
36
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
37
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
38
|
-
|
|
39
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
40
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
41
|
-
-->
|
|
42
|
-
</body>
|
|
43
|
-
</html>
|
package/public/logo192.png
DELETED
|
Binary file
|
package/public/logo512.png
DELETED
|
Binary file
|
package/public/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/public/robots.txt
DELETED
package/src/fonts/Lato-Bold.ttf
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/index.tsx
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Button from './lib/button/Button';
|
|
2
|
-
import ConsultationCard from './lib/consultation-card/consultationCard';
|
|
3
|
-
import FloatingButton from './lib/floating-button/floatingButton';
|
|
4
|
-
import FooterForBooking from './lib/footer-for-booking/FooterForBooking';
|
|
5
|
-
import ListButton from './lib/list-button/listButton';
|
|
6
|
-
import NavigationBar from './lib/navigation-bar/NavigationBar';
|
|
7
|
-
import {TabBar} from './lib/tab-bar/tabBar';
|
|
8
|
-
|
|
9
|
-
export {Button, ConsultationCard, FloatingButton, FooterForBooking, ListButton, NavigationBar, TabBar};
|
package/src/lib/Theme/global.css
DELETED
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Lato Regular';
|
|
3
|
-
src: url('../../fonts/Lato-Regular.ttf');
|
|
4
|
-
font-weight: normal;
|
|
5
|
-
font-style: normal;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@font-face {
|
|
9
|
-
font-family: 'Lato SemiBold';
|
|
10
|
-
src: url('../../fonts/Lato-Semibold.ttf');
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@font-face {
|
|
16
|
-
font-family: 'Lato Bold';
|
|
17
|
-
src: url('../../fonts/Lato-Bold.ttf');
|
|
18
|
-
font-weight: bold;
|
|
19
|
-
font-style: normal;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
* {
|
|
23
|
-
box-sizing: border-box;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
body{
|
|
27
|
-
margin: 0;
|
|
28
|
-
padding: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
span, p {
|
|
32
|
-
font-family: "Lato Regular", sans-serif;
|
|
33
|
-
font-size: 10px;
|
|
34
|
-
line-height: 14px;
|
|
35
|
-
margin: 0;
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
padding: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
h5 {
|
|
41
|
-
font-family: "Lato Regular", sans-serif;
|
|
42
|
-
margin: 0;
|
|
43
|
-
padding: 0;
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
line-height: 16px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
h4 {
|
|
50
|
-
font-family: "Lato Regular", sans-serif;
|
|
51
|
-
margin: 0;
|
|
52
|
-
padding: 0;
|
|
53
|
-
font-size: 16px;
|
|
54
|
-
font-weight: 400;
|
|
55
|
-
line-height: 24px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
h3 {
|
|
59
|
-
font-family: "Lato Regular", sans-serif;
|
|
60
|
-
margin: 0;
|
|
61
|
-
padding: 0;
|
|
62
|
-
font-size: 18px;
|
|
63
|
-
font-weight: 400;
|
|
64
|
-
line-height: 24px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
h2 {
|
|
68
|
-
font-family: "Lato Regular", sans-serif;
|
|
69
|
-
margin: 0;
|
|
70
|
-
padding: 0;
|
|
71
|
-
font-size: 20px;
|
|
72
|
-
font-weight: 400;
|
|
73
|
-
line-height: 24px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
h1 {
|
|
77
|
-
font-family: "Lato Regular", sans-serif;
|
|
78
|
-
margin: 0;
|
|
79
|
-
padding: 0;
|
|
80
|
-
font-weight: 400;
|
|
81
|
-
font-size: 24px;
|
|
82
|
-
line-height: 32px;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
span.semiBold, p.semiBold {
|
|
86
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
87
|
-
font-size: 10px;
|
|
88
|
-
line-height: 14px;
|
|
89
|
-
margin: 0;
|
|
90
|
-
padding: 0;
|
|
91
|
-
font-weight: 600;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
h5.semiBold {
|
|
95
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
96
|
-
margin: 0;
|
|
97
|
-
padding: 0;
|
|
98
|
-
font-size: 14px;
|
|
99
|
-
line-height: 16px;
|
|
100
|
-
font-weight: 600;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
h4.semiBold {
|
|
104
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
105
|
-
margin: 0;
|
|
106
|
-
padding: 0;
|
|
107
|
-
font-size: 16px;
|
|
108
|
-
line-height: 24px;
|
|
109
|
-
font-weight: 600;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
h3.semiBold {
|
|
113
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
114
|
-
margin: 0;
|
|
115
|
-
padding: 0;
|
|
116
|
-
font-size: 18px;
|
|
117
|
-
line-height: 24px;
|
|
118
|
-
font-weight: 600;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
h2.semiBold {
|
|
122
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
123
|
-
margin: 0;
|
|
124
|
-
padding: 0;
|
|
125
|
-
font-size: 20px;
|
|
126
|
-
line-height: 24px;
|
|
127
|
-
font-weight: 600;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
h1.semiBold {
|
|
131
|
-
font-family: "Lato SemiBold", sans-serif;
|
|
132
|
-
margin: 0;
|
|
133
|
-
padding: 0;
|
|
134
|
-
font-size: 24px;
|
|
135
|
-
line-height: 32px;
|
|
136
|
-
font-weight: 600;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
span.bold, p.bold {
|
|
140
|
-
font-family: "Lato Bold", sans-serif;
|
|
141
|
-
font-size: 10px;
|
|
142
|
-
line-height: 14px;
|
|
143
|
-
margin: 0;
|
|
144
|
-
padding: 0;
|
|
145
|
-
font-weight: 700;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
h5.bold {
|
|
149
|
-
font-family: "Lato Bold", sans-serif;
|
|
150
|
-
margin: 0;
|
|
151
|
-
padding: 0;
|
|
152
|
-
font-size: 14px;
|
|
153
|
-
line-height: 16px;
|
|
154
|
-
font-weight: 700;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
h4.bold {
|
|
158
|
-
font-family: "Lato Bold", sans-serif;
|
|
159
|
-
margin: 0;
|
|
160
|
-
padding: 0;
|
|
161
|
-
font-size: 16px;
|
|
162
|
-
line-height: 24px;
|
|
163
|
-
font-weight: 700;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
h3.bold {
|
|
167
|
-
font-family: "Lato Bold", sans-serif;
|
|
168
|
-
margin: 0;
|
|
169
|
-
padding: 0;
|
|
170
|
-
font-size: 18px;
|
|
171
|
-
line-height: 24px;
|
|
172
|
-
font-weight: 700;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
h2.bold {
|
|
176
|
-
font-family: "Lato Bold", sans-serif;
|
|
177
|
-
margin: 0;
|
|
178
|
-
padding: 0;
|
|
179
|
-
font-size: 20px;
|
|
180
|
-
line-height: 24px;
|
|
181
|
-
font-weight: 700;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
h1.bold {
|
|
185
|
-
font-family: "Lato Bold", sans-serif;
|
|
186
|
-
margin: 0;
|
|
187
|
-
padding: 0;
|
|
188
|
-
font-size: 24px;
|
|
189
|
-
line-height: 32px;
|
|
190
|
-
font-weight: 700;
|
|
191
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export const colorConstants = {
|
|
2
|
-
primaryColor: '#21ABD2',
|
|
3
|
-
secondaryColor: '#F0FBFF',
|
|
4
|
-
primaryTextColor: '#5B5B5B',
|
|
5
|
-
secondaryTextColor: '#1D201F',
|
|
6
|
-
AccentStrokeColor: '#EDEFF2',
|
|
7
|
-
AccentDisabledColor: '#C1C1C1',
|
|
8
|
-
AccentCrossColor: '#A31621',
|
|
9
|
-
AccentTickColor: '#478862',
|
|
10
|
-
AccentInputBgColor: '#F5F9FF',
|
|
11
|
-
AccentTabsBgColor: '#D6F2F9',
|
|
12
|
-
AccentCross: '#f1646f',
|
|
13
|
-
White: '#FFFFFF',
|
|
14
|
-
AccentAchieveBgNew: '#E7E7E7',
|
|
15
|
-
StrokeGray: '#F2F4F7',
|
|
16
|
-
AccentSurveyButton: '#E9F7FB',
|
|
17
|
-
AccentCancelActive: '#F5939A',
|
|
18
|
-
AccentActiveButtonBG: '#90D5E8',
|
|
19
|
-
AccentDivider: '#E5E5E5',
|
|
20
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import styled, {css} from 'styled-components';
|
|
2
|
-
import {colorConstants} from '../Theme/mindly_constants';
|
|
3
|
-
|
|
4
|
-
interface ContainerProps{
|
|
5
|
-
buttonType: 'primary' | 'secondary' | 'survey' | 'secondaryWithStroke' | 'secondaryCancel',
|
|
6
|
-
isDisabled: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const Container = styled.button<ContainerProps>`
|
|
10
|
-
padding: 8px 0;
|
|
11
|
-
width: 100%;
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
border: 0;
|
|
14
|
-
background: ${colorConstants.primaryColor};
|
|
15
|
-
color: ${colorConstants.White};
|
|
16
|
-
|
|
17
|
-
&:hover, &:active {
|
|
18
|
-
box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 -4px 15px rgba(0, 0, 0, 0.2);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
${(props: ContainerProps) => props.buttonType === 'secondary' && css`
|
|
22
|
-
background: inherit;
|
|
23
|
-
color: ${colorConstants.primaryColor};
|
|
24
|
-
|
|
25
|
-
&:hover, &:active {
|
|
26
|
-
box-shadow: none;
|
|
27
|
-
color: ${colorConstants.AccentActiveButtonBG};
|
|
28
|
-
}
|
|
29
|
-
`}
|
|
30
|
-
|
|
31
|
-
${(props: ContainerProps) => props.buttonType === 'secondaryWithStroke' && css`
|
|
32
|
-
color: ${colorConstants.primaryColor};
|
|
33
|
-
background: inherit;
|
|
34
|
-
box-shadow: none;
|
|
35
|
-
border: 1px solid ${colorConstants.primaryColor};
|
|
36
|
-
|
|
37
|
-
&:hover, &:active {
|
|
38
|
-
box-shadow: none;
|
|
39
|
-
color: ${colorConstants.AccentActiveButtonBG};
|
|
40
|
-
background: inherit;
|
|
41
|
-
border: 1px solid ${colorConstants.AccentActiveButtonBG};
|
|
42
|
-
}
|
|
43
|
-
`}
|
|
44
|
-
|
|
45
|
-
${(props: ContainerProps) => props.buttonType === 'secondaryCancel' && css`
|
|
46
|
-
color: ${colorConstants.AccentCross};
|
|
47
|
-
background: inherit;
|
|
48
|
-
box-shadow: none;
|
|
49
|
-
border: 0;
|
|
50
|
-
|
|
51
|
-
&:hover, &:active {
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
color: ${colorConstants.AccentCancelActive};
|
|
54
|
-
background: inherit;
|
|
55
|
-
border: 0;
|
|
56
|
-
}
|
|
57
|
-
`}
|
|
58
|
-
|
|
59
|
-
${(props: ContainerProps) => props.buttonType === 'survey' && css`
|
|
60
|
-
color: ${colorConstants.primaryTextColor};
|
|
61
|
-
background: inherit;
|
|
62
|
-
box-shadow: none;
|
|
63
|
-
border: 1px solid ${colorConstants.primaryTextColor};
|
|
64
|
-
|
|
65
|
-
&:hover, &:active {
|
|
66
|
-
box-shadow: none;
|
|
67
|
-
color: ${colorConstants.primaryColor};
|
|
68
|
-
background: ${colorConstants.AccentSurveyButton};
|
|
69
|
-
border: 1px solid ${colorConstants.AccentDisabledColor};
|
|
70
|
-
}
|
|
71
|
-
`}
|
|
72
|
-
|
|
73
|
-
${(props: ContainerProps) => props.isDisabled && css`
|
|
74
|
-
background: ${colorConstants.AccentActiveButtonBG};
|
|
75
|
-
color: ${colorConstants.White};
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
&:hover, &:active {
|
|
80
|
-
box-shadow: none;
|
|
81
|
-
}
|
|
82
|
-
`}
|
|
83
|
-
`;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Container} from './Button.style';
|
|
3
|
-
import '../Theme/global.css';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
interface ButtonProps {
|
|
7
|
-
buttonType: 'primary' | 'secondary' | 'survey' | 'secondaryWithStroke' | 'secondaryCancel',
|
|
8
|
-
isDisabled: boolean,
|
|
9
|
-
children: React.ReactNode,
|
|
10
|
-
onClick: (atr: any) => void
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const Button: React.FC<ButtonProps> = (props) => {
|
|
15
|
-
return (
|
|
16
|
-
<Container
|
|
17
|
-
onClick={props.onClick}
|
|
18
|
-
disabled={props.isDisabled}
|
|
19
|
-
isDisabled={props.isDisabled}
|
|
20
|
-
buttonType={props.buttonType}
|
|
21
|
-
>
|
|
22
|
-
<h4>
|
|
23
|
-
{props.children}
|
|
24
|
-
</h4>
|
|
25
|
-
</Container>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export default Button;
|