@mindly/ui-components 0.1.6 → 0.1.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.
Files changed (58) hide show
  1. package/dist/index.tsx +0 -9
  2. package/dist/index.tsx.map +0 -0
  3. package/dist/node_modules/ionicons/icons/index.mjs.js +10 -0
  4. package/dist/node_modules/ionicons/icons/index.mjs.js.map +1 -0
  5. package/dist/node_modules/style-inject/dist/style-inject.es.js +29 -0
  6. package/dist/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
  7. package/dist/node_modules/tslib/tslib.es6.js +33 -0
  8. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  9. package/dist/src/index.js +7 -0
  10. package/dist/src/index.js.map +1 -0
  11. package/dist/src/lib/Theme/global.css.js +7 -0
  12. package/dist/src/lib/Theme/global.css.js.map +1 -0
  13. package/dist/{Theme/mindly_constants.ts → src/lib/Theme/mindly_constants.js} +5 -2
  14. package/dist/src/lib/Theme/mindly_constants.js.map +1 -0
  15. package/dist/src/lib/button/Button.js +11 -0
  16. package/dist/src/lib/button/Button.js.map +1 -0
  17. package/dist/src/lib/button/Button.style.js +9 -0
  18. package/dist/src/lib/button/Button.style.js.map +1 -0
  19. package/dist/src/lib/floating-button/floating button.svg.js +6 -0
  20. package/dist/src/lib/floating-button/floating button.svg.js.map +1 -0
  21. package/dist/src/lib/floating-button/floatingButton.js +12 -0
  22. package/dist/src/lib/floating-button/floatingButton.js.map +1 -0
  23. package/dist/src/lib/floating-button/floatingButton.style.js +8 -0
  24. package/dist/src/lib/floating-button/floatingButton.style.js.map +1 -0
  25. package/dist/src/lib/footer-for-booking/FooterForBooking.js +13 -0
  26. package/dist/src/lib/footer-for-booking/FooterForBooking.js.map +1 -0
  27. package/dist/src/lib/footer-for-booking/FooterForBooking.style.js +12 -0
  28. package/dist/src/lib/footer-for-booking/FooterForBooking.style.js.map +1 -0
  29. package/dist/src/lib/list-button/listButton.js +10 -0
  30. package/dist/src/lib/list-button/listButton.js.map +1 -0
  31. package/dist/src/lib/list-button/listButton.style.js +11 -0
  32. package/dist/src/lib/list-button/listButton.style.js.map +1 -0
  33. package/dist/src/lib/navigation-bar/NavigationBar.js +12 -0
  34. package/dist/src/lib/navigation-bar/NavigationBar.js.map +1 -0
  35. package/dist/src/lib/navigation-bar/NavigationBar.style.js +10 -0
  36. package/dist/src/lib/navigation-bar/NavigationBar.style.js.map +1 -0
  37. package/dist/src/lib/tab-bar/tabBar.js +10 -0
  38. package/dist/src/lib/tab-bar/tabBar.js.map +1 -0
  39. package/dist/src/lib/tab-bar/tabBar.style.js +9 -0
  40. package/dist/src/lib/tab-bar/tabBar.style.js.map +1 -0
  41. package/package.json +135 -128
  42. package/dist/Theme/global.css +0 -191
  43. package/dist/button/Button.style.ts +0 -83
  44. package/dist/button/Button.tsx +0 -29
  45. package/dist/consultation-card/consultationCard.tsx +0 -18
  46. package/dist/floating-button/floating button.svg +0 -6
  47. package/dist/floating-button/floatingButton.style.ts +0 -21
  48. package/dist/floating-button/floatingButton.tsx +0 -29
  49. package/dist/footer-for-booking/FooterForBooking.style.ts +0 -42
  50. package/dist/footer-for-booking/FooterForBooking.tsx +0 -43
  51. package/dist/list-button/listButton.style.ts +0 -19
  52. package/dist/list-button/listButton.tsx +0 -19
  53. package/dist/navigation-bar/NavigationBar.style.ts +0 -56
  54. package/dist/navigation-bar/NavigationBar.tsx +0 -26
  55. package/dist/tab-bar/tabBar.style.ts +0 -15
  56. package/dist/tab-bar/tabBar.tsx +0 -33
  57. package/dist/therapist-card/TherapistCard.style.ts +0 -140
  58. package/dist/therapist-card/TherapistCard.tsx +0 -97
package/package.json CHANGED
@@ -1,128 +1,135 @@
1
- {
2
- "name": "@mindly/ui-components",
3
- "version": "0.1.6",
4
- "private": false,
5
- "dependencies": {
6
- "@babel/polyfill": "^7.12.1",
7
- "@ionic/react": "^5.8.0",
8
- "@ionic/react-router": "^5.8.0",
9
- "@testing-library/jest-dom": "^5.14.1",
10
- "@testing-library/react": "^11.2.7",
11
- "@testing-library/user-event": "^12.8.3",
12
- "@types/jest": "^26.0.24",
13
- "@types/node": "^12.20.21",
14
- "@types/react": "^17.0.19",
15
- "@types/react-dom": "^17.0.9",
16
- "auto": "^10.32.0",
17
- "react": "^17.0.2",
18
- "react-dom": "^17.0.2",
19
- "react-scripts": "4.0.3",
20
- "styled-components": "^5.3.1",
21
- "web-vitals": "^1.1.2"
22
- },
23
- "peerDependencies": {
24
- "@babel/polyfill": "^7.12.1",
25
- "@ionic/react": "^5.8.0",
26
- "@ionic/react-router": "^5.8.0",
27
- "@testing-library/jest-dom": "^5.14.1",
28
- "@testing-library/react": "^11.2.7",
29
- "@testing-library/user-event": "^12.8.3",
30
- "@types/jest": "^26.0.24",
31
- "@types/node": "^12.20.21",
32
- "@types/react": "^17.0.19",
33
- "@types/react-dom": "^17.0.9",
34
- "auto": "^10.32.0",
35
- "react": "^17.0.2",
36
- "react-dom": "^17.0.2",
37
- "react-scripts": "4.0.3",
38
- "styled-components": "^5.3.1",
39
- "web-vitals": "^1.1.2"
40
- },
41
- "scripts": {
42
- "start": "react-scripts start",
43
- "clean": "rimraf dist",
44
- "build": "npm run clean && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.ts,test.ts,stories.ts,__snapshots__",
45
- "test": "react-scripts test",
46
- "eject": "react-scripts eject"
47
- },
48
- "babel": {
49
- "presets": [
50
- [
51
- "@babel/preset-react",
52
- "@babel/env",
53
- "react-app",
54
- {
55
- "absoluteRuntime": false
56
- }
57
- ]
58
- ]
59
- },
60
- "eslintConfig": {
61
- "extends": [
62
- "react-app",
63
- "react-app/jest"
64
- ],
65
- "overrides": [
66
- {
67
- "files": [
68
- "**/*.stories.*"
69
- ],
70
- "rules": {
71
- "import/no-anonymous-default-export": "off"
72
- }
73
- }
74
- ]
75
- },
76
- "browserslist": {
77
- "production": [
78
- ">0.2%",
79
- "not dead",
80
- "not op_mini all"
81
- ],
82
- "development": [
83
- "last 1 chrome version",
84
- "last 1 firefox version",
85
- "last 1 safari version"
86
- ]
87
- },
88
- "devDependencies": {
89
- "@babel/cli": "^7.15.7",
90
- "@babel/core": "^7.15.5",
91
- "@babel/preset-env": "^7.15.6",
92
- "@babel/preset-react": "^7.14.5",
93
- "@babel/preset-typescript": "^7.15.0",
94
- "@ionic/lab": "3.2.10",
95
- "@storybook/addon-actions": "^6.3.7",
96
- "@storybook/addon-essentials": "^6.3.7",
97
- "@storybook/addon-links": "^6.3.7",
98
- "@storybook/node-logger": "^6.3.7",
99
- "@storybook/preset-create-react-app": "^3.2.0",
100
- "@storybook/react": "^6.3.7",
101
- "@types/styled-components": "^5.1.13",
102
- "@typescript-eslint/parser": "^4.30.0",
103
- "babel-cli": "^6.26.0",
104
- "cross-env": "^7.0.3",
105
- "eslint": "^7.32.0",
106
- "eslint-config-google": "^0.14.0",
107
- "typescript": "^4.4.2"
108
- },
109
- "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
110
- "main": "dist/index.tsx",
111
- "files": [
112
- "dist",
113
- "README.md"
114
- ],
115
- "repository": {
116
- "type": "git",
117
- "url": "git+https://github.com/iHUB-Projects/UI-components.git"
118
- },
119
- "keywords": [
120
- "mindlyUi"
121
- ],
122
- "author": "Alexandr Kairtsev (sasha@ihub.world)",
123
- "license": "ISC",
124
- "bugs": {
125
- "url": "https://github.com/iHUB-Projects/UI-components/issues"
126
- },
127
- "homepage": "https://github.com/iHUB-Projects/UI-components#readme"
128
- }
1
+ {
2
+ "name": "@mindly/ui-components",
3
+ "version": "0.1.8",
4
+ "private": false,
5
+ "dependencies": {
6
+ "@babel/polyfill": "^7.12.1",
7
+ "@ionic/react": "^5.8.0",
8
+ "@ionic/react-router": "^5.8.0",
9
+ "@testing-library/jest-dom": "^5.14.1",
10
+ "@testing-library/react": "^11.2.7",
11
+ "@testing-library/user-event": "^12.8.3",
12
+ "@types/jest": "^26.0.24",
13
+ "@types/node": "^12.20.21",
14
+ "@types/react": "^17.0.19",
15
+ "@types/react-dom": "^17.0.9",
16
+ "auto": "^10.32.0",
17
+ "react": "^17.0.2",
18
+ "react-dom": "^17.0.2",
19
+ "react-scripts": "4.0.3",
20
+ "styled-components": "^5.3.1",
21
+ "web-vitals": "^1.1.2"
22
+ },
23
+ "peerDependencies": {
24
+ "@babel/polyfill": "^7.12.1",
25
+ "@ionic/react": "^5.8.0",
26
+ "@ionic/react-router": "^5.8.0",
27
+ "@testing-library/jest-dom": "^5.14.1",
28
+ "@testing-library/react": "^11.2.7",
29
+ "@testing-library/user-event": "^12.8.3",
30
+ "@types/jest": "^26.0.24",
31
+ "@types/node": "^12.20.21",
32
+ "@types/react": "^17.0.19",
33
+ "@types/react-dom": "^17.0.9",
34
+ "auto": "^10.32.0",
35
+ "react": "^17.0.2",
36
+ "react-dom": "^17.0.2",
37
+ "react-scripts": "4.0.3",
38
+ "styled-components": "^5.3.1",
39
+ "web-vitals": "^1.1.2"
40
+ },
41
+ "scripts": {
42
+ "start": "react-scripts start",
43
+ "clean": "rimraf dist",
44
+ "build": "rollup -c",
45
+ "test": "react-scripts test",
46
+ "eject": "react-scripts eject"
47
+ },
48
+ "babel": {
49
+ "presets": [
50
+ [
51
+ "@babel/preset-react",
52
+ "@babel/env",
53
+ "react-app",
54
+ {
55
+ "absoluteRuntime": false
56
+ }
57
+ ]
58
+ ]
59
+ },
60
+ "eslintConfig": {
61
+ "extends": [
62
+ "react-app",
63
+ "react-app/jest"
64
+ ],
65
+ "overrides": [
66
+ {
67
+ "files": [
68
+ "**/*.stories.*"
69
+ ],
70
+ "rules": {
71
+ "import/no-anonymous-default-export": "off"
72
+ }
73
+ }
74
+ ]
75
+ },
76
+ "browserslist": {
77
+ "production": [
78
+ ">0.2%",
79
+ "not dead",
80
+ "not op_mini all"
81
+ ],
82
+ "development": [
83
+ "last 1 chrome version",
84
+ "last 1 firefox version",
85
+ "last 1 safari version"
86
+ ]
87
+ },
88
+ "devDependencies": {
89
+ "@babel/cli": "^7.15.7",
90
+ "@babel/core": "^7.15.5",
91
+ "@babel/preset-env": "^7.15.6",
92
+ "@babel/preset-react": "^7.14.5",
93
+ "@babel/preset-typescript": "^7.15.0",
94
+ "@ionic/lab": "3.2.10",
95
+ "@rollup/plugin-commonjs": "^20.0.0",
96
+ "@rollup/plugin-node-resolve": "^13.0.5",
97
+ "@rollup/plugin-typescript": "^8.2.5",
98
+ "@storybook/addon-actions": "^6.3.7",
99
+ "@storybook/addon-essentials": "^6.3.7",
100
+ "@storybook/addon-links": "^6.3.7",
101
+ "@storybook/node-logger": "^6.3.7",
102
+ "@storybook/preset-create-react-app": "^3.2.0",
103
+ "@storybook/react": "^6.3.7",
104
+ "@types/styled-components": "^5.1.13",
105
+ "@typescript-eslint/parser": "^4.30.0",
106
+ "babel-cli": "^6.26.0",
107
+ "cross-env": "^7.0.3",
108
+ "eslint": "^7.32.0",
109
+ "eslint-config-google": "^0.14.0",
110
+ "postcss": "^8.3.8",
111
+ "rollup-plugin-peer-deps-external": "^2.2.4",
112
+ "rollup-plugin-postcss": "^4.0.1",
113
+ "rollup-plugin-svg-import": "^1.5.1",
114
+ "typescript": "^4.4.2"
115
+ },
116
+ "description": "This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).",
117
+ "main": "dist/index.tsx",
118
+ "files": [
119
+ "dist",
120
+ "README.md"
121
+ ],
122
+ "repository": {
123
+ "type": "git",
124
+ "url": "git+https://github.com/iHUB-Projects/UI-components.git"
125
+ },
126
+ "keywords": [
127
+ "mindlyUi"
128
+ ],
129
+ "author": "Alexandr Kairtsev (sasha@ihub.world)",
130
+ "license": "ISC",
131
+ "bugs": {
132
+ "url": "https://github.com/iHUB-Projects/UI-components/issues"
133
+ },
134
+ "homepage": "https://github.com/iHUB-Projects/UI-components#readme"
135
+ }
@@ -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,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;
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import Button from '../button/Button';
3
- import {timeOutline, cardOutline} from 'ionicons/icons';
4
-
5
- interface ConsultationCardProps {
6
- eventHandler: () => void,
7
- time: string,
8
- price: string,
9
- }
10
-
11
- const ConsultationCard: React.FC<ConsultationCardProps> = (props)=> {
12
- return (
13
- <Container>
14
- </Container>
15
- );
16
- };
17
-
18
- export default ConsultationCard;
@@ -1,6 +0,0 @@
1
- <svg width="54" height="54" viewBox="0 0 54 54" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <rect width="54" height="54" fill="#21ABD2"/>
3
- <path d="M27.0002 15C21.9405 15 17.8237 19.1168 17.8237 24.1765V32.647C17.8237 33.8148 18.7737 34.7648 19.9413 34.7648C21.1092 34.7648 22.0591 33.8148 22.0591 32.647V25.5883C22.0591 24.4206 21.1092 23.4706 19.9413 23.4706C19.7037 23.4706 19.4788 23.5188 19.2651 23.5913C19.5663 19.5829 22.9168 16.4117 27.0002 16.4117C31.0815 16.4117 34.431 19.58 34.735 23.5856C34.5226 23.5129 34.2964 23.4706 34.0591 23.4706C32.8913 23.4706 31.9413 24.4206 31.9413 25.5883V32.647C31.9413 33.8148 32.8913 34.7648 34.0591 34.7648C34.3078 34.7648 34.5431 34.7139 34.765 34.6348V35.4706C34.765 35.8601 34.4479 36.1765 34.0591 36.1765H28.9879C28.6954 35.3566 27.9192 34.7648 27.0002 34.7648C25.8326 34.7648 24.8826 35.7147 24.8826 36.8824C24.8826 38.05 25.8326 39 27.0002 39C27.9192 39 28.6954 38.408 28.9879 37.5883H34.0591C35.2268 37.5883 36.1768 36.6383 36.1768 35.4706C36.1768 31.2248 36.1768 28.4269 36.1768 24.1765C36.1768 19.1168 32.06 15 27.0002 15V15Z" fill="white"/>
4
- <path d="M37.5884 25.0122V33.2227C38.4081 32.9304 39.0001 32.1542 39.0001 31.235V26.9998C39.0001 26.0808 38.4081 25.3046 37.5884 25.0122Z" fill="white"/>
5
- <path d="M15 26.9998V31.235C15 32.1542 15.592 32.9304 16.4117 33.2227V25.0122C15.592 25.3046 15 26.0808 15 26.9998Z" fill="white"/>
6
- </svg>
@@ -1,21 +0,0 @@
1
- import styled from 'styled-components';
2
-
3
- interface ContainerProps{
4
- bottomHeight: number,
5
- rightWidth: number
6
- }
7
-
8
- export const Container = styled.a<ContainerProps>`
9
- display: block;
10
- width: 54px;
11
- height: 54px;
12
- position: fixed;
13
- bottom: ${(props) => props.bottomHeight}px;
14
- right: ${(props) => props.rightWidth}px;
15
- z-index: 100000000;
16
-
17
- img {
18
- background: none;
19
- border-radius: 50%;
20
- }
21
- `;
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import {Container} from './floatingButton.style';
3
- import img from './floating button.svg';
4
-
5
- interface FloatingButtonType {
6
- bottomHeight: number;
7
- rightWidth: number;
8
- }
9
-
10
- const FloatingButton: React.FC<FloatingButtonType> = (
11
- {
12
- bottomHeight = 0,
13
- rightWidth = 0,
14
- }) => {
15
- return (
16
- <Container
17
- href="https://t.me/MindlySupport"
18
- bottomHeight={bottomHeight}
19
- rightWidth={rightWidth}
20
- >
21
- <img
22
- src={img}
23
- alt="support mindly"
24
- />
25
- </Container>
26
- );
27
- };
28
-
29
- export default FloatingButton;