@sikka/hawa 0.0.8 → 0.0.11

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 (51) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -2
  4. package/src/blocks/Account/UserProfile.js +55 -50
  5. package/src/blocks/Account/UserSettings.js +0 -1
  6. package/src/blocks/AuthForms/NewPasswordForm.js +57 -85
  7. package/src/blocks/AuthForms/ResetPasswordForm.js +43 -42
  8. package/src/blocks/AuthForms/SignInForm.js +92 -95
  9. package/src/blocks/AuthForms/SignUpForm.js +105 -104
  10. package/src/blocks/Payment/PaymentMethod.js +0 -1
  11. package/src/blocks/Payment/SelectPayment.js +53 -54
  12. package/src/index.js +0 -1
  13. package/src/layout/Box.js +36 -33
  14. package/src/stories/BlocksStories/AuthForm.stories.js +105 -39
  15. package/src/stories/BlocksStories/PaymentForm.stories.js +20 -35
  16. package/src/stories/BlocksStories/UserForm.stories.js +2 -16
  17. package/src/stories/LayoutStories/Box.stories.js +4 -10
  18. package/src/stories/UIStories/ActionButton.stories.js +1 -6
  19. package/src/stories/UIStories/AdaptiveButton.stories.js +1 -6
  20. package/src/stories/UIStories/Alert.stories.js +2 -3
  21. package/src/stories/UIStories/LogoButtons.stories.js +2 -6
  22. package/src/stories/UIStories/RadioSelector.stories.js +0 -3
  23. package/src/stories/UIStories/SettingsRow.stories.js +3 -16
  24. package/src/themes/HawaProvider.js +187 -178
  25. package/src/themes/QawaimTheme.js +199 -0
  26. package/src/ui/ActionButton.js +32 -35
  27. package/src/ui/AdaptiveButton.js +3 -8
  28. package/src/ui/HawaAlert.js +22 -24
  29. package/src/ui/HawaButton.js +43 -44
  30. package/src/ui/HawaInputLabel.js +22 -23
  31. package/src/ui/HawaLogoButton.js +7 -45
  32. package/src/ui/HawaRadio.js +25 -34
  33. package/src/ui/HawaSettingsRow.js +1 -27
  34. package/src/ui/HawaTextArea.js +1 -1
  35. package/src/ui/HawaTextField.js +146 -93
  36. package/src/ui/HawaTypography.js +19 -21
  37. package/src/ui/Row.js +1 -1
  38. package/src/ui/StyledTooltip.js +1 -1
  39. package/src/ui/TabPanel.js +1 -1
  40. package/storybook-static/8.1bf48ea7.iframe.bundle.js +1 -0
  41. package/storybook-static/iframe.html +1 -1
  42. package/storybook-static/main.b00949db.iframe.bundle.js +1 -0
  43. package/storybook-static/{runtime~main.cfefe972.iframe.bundle.js → runtime~main.f1ebae9b.iframe.bundle.js} +1 -1
  44. package/storybook-static/vendors~main.f8d30727.iframe.bundle.js +76 -0
  45. package/storybook-static/{vendors~main.aa1d952a.iframe.bundle.js.LICENSE.txt → vendors~main.f8d30727.iframe.bundle.js.LICENSE.txt} +0 -0
  46. package/storybook-static/vendors~main.f8d30727.iframe.bundle.js.map +1 -0
  47. package/src/stories/HawaProvider.stories.js +0 -22
  48. package/storybook-static/8.c4cb6081.iframe.bundle.js +0 -1
  49. package/storybook-static/main.5731dbe3.iframe.bundle.js +0 -1
  50. package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js +0 -76
  51. package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js.map +0 -1
@@ -1,183 +1,192 @@
1
- import { createContext } from "react";
1
+ import { createTheme } from "@mui/system";
2
+ // import { createContext } from "react";
2
3
 
3
- //make the text color of the action buttons different from the text color of the layout
4
- let allPrimaryBG = "#f90900";
5
- let allPrimaryAction = "#B20D30";
6
- export const defaultTheme = {
7
- allPrimaryBG: "#f90900",
8
- allPrimaryAction: "#138A36",
9
- allBorderRadius: 10,
10
- borderRadius: 10,
11
- primaryColor: "blue",
12
- secondaryColor: "grey",
13
- // primaryActionColor: '#f72585', //Colors of the buttons
14
- primaryActionColor: "grey", //Colors of the buttons
15
- secondaryActionColor: "#4cc9f0", //Colors of the buttons
16
- layoutColor: "#d3d4d9", //Colors of boxes and cards
17
- textColor: "black", //Colors of text everywhere
18
- inputColor: "white", //Color of input fields
19
- lightBackground: "#FBF5F3", //
20
- darkBackground: "#0F0E0E",
21
- testcolor: "green",
22
- margins: 10,
23
- paddings: 10,
24
- typography: {
25
- fontFamily: ["IBMPlex"].join(","),
26
- primary: { color: "black" },
27
- secondary: { color: "white" }
28
- },
29
- logoButton: {
30
- primary: {
31
- borderRadius: 10,
32
- backgroundColor: allPrimaryAction,
33
- // margin: 10,
34
- marginTop: 10,
35
- padding: 30,
36
- paddingTop: 0,
37
- paddingBottom: 0,
38
- border: "1px solid #ced4da",
39
- height: 50,
40
- "&:focus": {
41
- borderColor: allPrimaryAction
42
- }
43
- },
44
- secondary: {
45
- borderRadius: 10,
46
- backgroundColor: "#f90900",
47
- marginTop: 10,
48
- padding: 30,
49
- paddingTop: 0,
50
- paddingBottom: 0,
51
- border: "1px solid #ced4da",
52
- height: 50,
53
- "&:focus": {
54
- borderColor: "green"
55
- }
56
- }
57
- },
58
- actionButton: {
59
- primary: {
60
- borderRadius: 10,
61
- // backgroundColor: "#f90900",
62
- backgroundColor: allPrimaryAction,
63
- color: "white",
64
- margin: 10,
65
- padding: 10,
66
- border: "1px solid #ced4da",
67
- fontSize: 16,
68
- height: 50,
69
- "&:focus": {
70
- borderColor: "red"
71
- }
72
- },
73
- secondary: {
74
- borderRadius: 10,
75
- margin: 10,
76
- padding: 10,
77
- backgroundColor: "#FF8811",
78
- color: "black"
79
- }
80
- },
81
- layout: {
82
- primary: {
83
- backgroundColor: "#d3d4d9",
84
- color: "black",
85
- margin: 10,
86
- padding: 10,
87
- borderRadius: 10
88
- },
89
- secondary: {
90
- backgroundColor: "#001E3C",
91
- // backgroundColor: "red",
92
- color: "white",
93
- margin: 10,
94
- padding: 10,
95
- borderRadius: 10
96
- }
97
- },
98
- inputFields: {
99
- primary: {
100
- backgroundColor: "white",
101
- borderRadius: 10,
102
- "&:focus": {
103
- borderColor: "red",
104
- borderWidth: 1,
105
- border: "1px solid black"
106
- },
107
- "&:hover": {
108
- borderColor: "red",
109
- borderWidth: 1,
110
- border: "1px solid black"
111
- }
112
- },
113
- secondary: {
114
- backgroundColor: "white",
4
+ // //make the text color of the action buttons different from the text color of the layout
5
+ // let allPrimaryBG = "#f90900";
6
+ // let allPrimaryAction = "#B20D30";
7
+ // export const defaultTheme = {
8
+ // allPrimaryBG: "#f90900",
9
+ // allPrimaryAction: "#138A36",
10
+ // allBorderRadius: 10,
11
+ // borderRadius: 10,
12
+ // primaryColor: "blue",
13
+ // secondaryColor: "grey",
14
+ // // primaryActionColor: '#f72585', //Colors of the buttons
15
+ // primaryActionColor: "grey", //Colors of the buttons
16
+ // secondaryActionColor: "#4cc9f0", //Colors of the buttons
17
+ // layoutColor: "#d3d4d9", //Colors of boxes and cards
18
+ // textColor: "black", //Colors of text everywhere
19
+ // inputColor: "white", //Color of input fields
20
+ // lightBackground: "#FBF5F3", //
21
+ // darkBackground: "#0F0E0E",
22
+ // testcolor: "green",
23
+ // margins: 10,
24
+ // paddings: 10,
25
+ // typography: {
26
+ // fontFamily: ["IBMPlex"].join(","),
27
+ // primary: { color: "black" },
28
+ // secondary: { color: "white" }
29
+ // },
30
+ // logoButton: {
31
+ // primary: {
32
+ // borderRadius: 10,
33
+ // backgroundColor: allPrimaryAction,
34
+ // // margin: 10,
35
+ // marginTop: 10,
36
+ // padding: 30,
37
+ // paddingTop: 0,
38
+ // paddingBottom: 0,
39
+ // border: "1px solid #ced4da",
40
+ // height: 50,
41
+ // "&:focus": {
42
+ // borderColor: allPrimaryAction
43
+ // }
44
+ // },
45
+ // secondary: {
46
+ // borderRadius: 10,
47
+ // backgroundColor: "#f90900",
48
+ // marginTop: 10,
49
+ // padding: 30,
50
+ // paddingTop: 0,
51
+ // paddingBottom: 0,
52
+ // border: "1px solid #ced4da",
53
+ // height: 50,
54
+ // "&:focus": {
55
+ // borderColor: "green"
56
+ // }
57
+ // }
58
+ // },
59
+ // actionButton: {
60
+ // primary: {
61
+ // borderRadius: 10,
62
+ // // backgroundColor: "#f90900",
63
+ // backgroundColor: allPrimaryAction,
64
+ // color: "white",
65
+ // margin: 10,
66
+ // padding: 10,
67
+ // border: "1px solid #ced4da",
68
+ // fontSize: 16,
69
+ // height: 50,
70
+ // "&:focus": {
71
+ // borderColor: "red"
72
+ // }
73
+ // },
74
+ // secondary: {
75
+ // borderRadius: 10,
76
+ // margin: 10,
77
+ // padding: 10,
78
+ // backgroundColor: "#FF8811",
79
+ // color: "black"
80
+ // }
81
+ // },
82
+ // layout: {
83
+ // primary: {
84
+ // backgroundColor: "#d3d4d9",
85
+ // color: "black",
86
+ // margin: 10,
87
+ // padding: 10,
88
+ // borderRadius: 10
89
+ // },
90
+ // secondary: {
91
+ // backgroundColor: "#001E3C",
92
+ // // backgroundColor: "red",
93
+ // color: "white",
94
+ // margin: 10,
95
+ // padding: 10,
96
+ // borderRadius: 10
97
+ // }
98
+ // },
99
+ // inputFields: {
100
+ // primary: {
101
+ // backgroundColor: "white",
102
+ // borderRadius: 10,
103
+ // padding: 10,
104
+ // "&:hover": {
105
+ // borderColor: "red",
106
+ // borderWidth: 1,
107
+ // outline: "1px solid black"
108
+ // }
109
+ // },
110
+ // secondary: {
111
+ // backgroundColor: "white",
112
+ // borderRadius: 10,
113
+ // padding: 10
114
+ // }
115
+ // },
116
+ // alerts: {
117
+ // primary: {
118
+ // marginBottom: 10,
119
+ // padding: 10,
120
+ // borderRadius: 10
121
+ // },
122
+ // secondary: {
123
+ // marginBottom: 10,
124
+ // padding: 10,
125
+ // borderRadius: 10
126
+ // }
127
+ // },
128
+ // settingsRow: {
129
+ // primary: {
130
+ // display: "flex",
131
+ // flexDirection: "row",
132
+ // justifyContent: "space-between",
133
+ // alignItems: "center",
134
+ // backgroundColor: "#F5F5F5",
135
+ // margin: 0,
136
+ // padding: 10,
137
+ // borderRadius: 10
138
+ // },
139
+ // secondary: {
140
+ // display: "flex",
141
+ // flexDirection: "row",
142
+ // justifyContent: "space-between",
143
+ // alignItems: "center",
144
+ // backgroundColor: "blue",
145
+ // margin: 0,
146
+ // padding: 5,
147
+ // borderRadius: 10
148
+ // }
149
+ // },
150
+ // radioSelector: {
151
+ // primary: {
152
+ // padding: 10,
153
+ // borderRadius: 10
154
+ // },
155
+ // secondary: {
156
+ // padding: 10,
157
+ // borderRadius: 10
158
+ // }
159
+ // }
160
+ // };
115
161
 
116
- borderRadius: 10
117
- }
118
- },
119
- alerts: {
120
- primary: {
121
- marginBottom: 10,
122
- padding: 10,
123
- borderRadius: 10
124
- },
125
- secondary: {
126
- marginBottom: 10,
127
- padding: 10,
128
- borderRadius: 10
129
- }
130
- },
131
- settingsRow: {
132
- primary: {
133
- display: "flex",
134
- flexDirection: "row",
135
- justifyContent: "space-between",
136
- alignItems: "center",
137
- backgroundColor: "#F5F5F5",
138
- margin: 0,
139
- padding: 10,
140
- borderRadius: 10
141
- },
142
- secondary: {
143
- display: "flex",
144
- flexDirection: "row",
145
- justifyContent: "space-between",
146
- alignItems: "center",
147
- backgroundColor: "blue",
148
- margin: 0,
149
- padding: 5,
150
- borderRadius: 10
151
- }
152
- },
153
- radioSelector: {
154
- primary: {
155
- padding: 10,
156
- borderRadius: 10
162
+ export const QawaimTheme = createTheme({
163
+ components: {
164
+ MuiButton: {
165
+ variants: [
166
+ {
167
+ props: { variant: "withLogo" },
168
+ style: {
169
+ textTransform: "none",
170
+ border: `2px solid blue`,
171
+ backgroundColor: "red"
172
+ }
173
+ },
174
+ {
175
+ props: { variant: "dashed", color: "secondary" },
176
+ style: {
177
+ border: `4px dashed red`
178
+ }
179
+ }
180
+ ]
157
181
  },
158
- secondary: {
159
- padding: 10,
160
- borderRadius: 10
182
+ MuiButton: {
183
+ styleOverrides: {
184
+ // Name of the slot
185
+ root: {
186
+ // Some CSS
187
+ fontSize: "3rem"
188
+ }
189
+ }
161
190
  }
162
191
  }
163
- };
164
-
165
- export const ThemeProvider = createContext(defaultTheme);
166
-
167
- export const HawaProvider = ({ theme, ...props }) => {
168
- console.log("theme is ", theme);
169
- if (props.size === "large") {
170
- theme = {
171
- ...theme,
172
- paddings: 20,
173
- margins: 20
174
- };
175
- }
176
- return (
177
- <ThemeProvider.Provider
178
- value={{ hawaTheme: defaultTheme, themeName: props.themeName }}
179
- >
180
- {props.children}
181
- </ThemeProvider.Provider>
182
- );
183
- };
192
+ });
@@ -0,0 +1,199 @@
1
+ import { createTheme } from "@mui/system";
2
+ // import { createContext } from "react";
3
+
4
+ // //make the text color of the action buttons different from the text color of the layout
5
+ // let allPrimaryBG = "#f90900";
6
+ // let allPrimaryAction = "#B20D30";
7
+ // export const defaultTheme = {
8
+ // allPrimaryBG: "#f90900",
9
+ // allPrimaryAction: "#138A36",
10
+ // allBorderRadius: 10,
11
+ // borderRadius: 10,
12
+ // primaryColor: "blue",
13
+ // secondaryColor: "grey",
14
+ // // primaryActionColor: '#f72585', //Colors of the buttons
15
+ // primaryActionColor: "grey", //Colors of the buttons
16
+ // secondaryActionColor: "#4cc9f0", //Colors of the buttons
17
+ // layoutColor: "#d3d4d9", //Colors of boxes and cards
18
+ // textColor: "black", //Colors of text everywhere
19
+ // inputColor: "white", //Color of input fields
20
+ // lightBackground: "#FBF5F3", //
21
+ // darkBackground: "#0F0E0E",
22
+ // testcolor: "green",
23
+ // margins: 10,
24
+ // paddings: 10,
25
+ // typography: {
26
+ // fontFamily: ["IBMPlex"].join(","),
27
+ // primary: { color: "black" },
28
+ // secondary: { color: "white" }
29
+ // },
30
+ // logoButton: {
31
+ // primary: {
32
+ // borderRadius: 10,
33
+ // backgroundColor: allPrimaryAction,
34
+ // // margin: 10,
35
+ // marginTop: 10,
36
+ // padding: 30,
37
+ // paddingTop: 0,
38
+ // paddingBottom: 0,
39
+ // border: "1px solid #ced4da",
40
+ // height: 50,
41
+ // "&:focus": {
42
+ // borderColor: allPrimaryAction
43
+ // }
44
+ // },
45
+ // secondary: {
46
+ // borderRadius: 10,
47
+ // backgroundColor: "#f90900",
48
+ // marginTop: 10,
49
+ // padding: 30,
50
+ // paddingTop: 0,
51
+ // paddingBottom: 0,
52
+ // border: "1px solid #ced4da",
53
+ // height: 50,
54
+ // "&:focus": {
55
+ // borderColor: "green"
56
+ // }
57
+ // }
58
+ // },
59
+ // actionButton: {
60
+ // primary: {
61
+ // borderRadius: 10,
62
+ // // backgroundColor: "#f90900",
63
+ // backgroundColor: allPrimaryAction,
64
+ // color: "white",
65
+ // margin: 10,
66
+ // padding: 10,
67
+ // border: "1px solid #ced4da",
68
+ // fontSize: 16,
69
+ // height: 50,
70
+ // "&:focus": {
71
+ // borderColor: "red"
72
+ // }
73
+ // },
74
+ // secondary: {
75
+ // borderRadius: 10,
76
+ // margin: 10,
77
+ // padding: 10,
78
+ // backgroundColor: "#FF8811",
79
+ // color: "black"
80
+ // }
81
+ // },
82
+ // layout: {
83
+ // primary: {
84
+ // backgroundColor: "#d3d4d9",
85
+ // color: "black",
86
+ // margin: 10,
87
+ // padding: 10,
88
+ // borderRadius: 10
89
+ // },
90
+ // secondary: {
91
+ // backgroundColor: "#001E3C",
92
+ // // backgroundColor: "red",
93
+ // color: "white",
94
+ // margin: 10,
95
+ // padding: 10,
96
+ // borderRadius: 10
97
+ // }
98
+ // },
99
+ // inputFields: {
100
+ // primary: {
101
+ // backgroundColor: "white",
102
+ // borderRadius: 10,
103
+ // padding: 10,
104
+ // "&:hover": {
105
+ // borderColor: "red",
106
+ // borderWidth: 1,
107
+ // outline: "1px solid black"
108
+ // }
109
+ // },
110
+ // secondary: {
111
+ // backgroundColor: "white",
112
+ // borderRadius: 10,
113
+ // padding: 10
114
+ // }
115
+ // },
116
+ // alerts: {
117
+ // primary: {
118
+ // marginBottom: 10,
119
+ // padding: 10,
120
+ // borderRadius: 10
121
+ // },
122
+ // secondary: {
123
+ // marginBottom: 10,
124
+ // padding: 10,
125
+ // borderRadius: 10
126
+ // }
127
+ // },
128
+ // settingsRow: {
129
+ // primary: {
130
+ // display: "flex",
131
+ // flexDirection: "row",
132
+ // justifyContent: "space-between",
133
+ // alignItems: "center",
134
+ // backgroundColor: "#F5F5F5",
135
+ // margin: 0,
136
+ // padding: 10,
137
+ // borderRadius: 10
138
+ // },
139
+ // secondary: {
140
+ // display: "flex",
141
+ // flexDirection: "row",
142
+ // justifyContent: "space-between",
143
+ // alignItems: "center",
144
+ // backgroundColor: "blue",
145
+ // margin: 0,
146
+ // padding: 5,
147
+ // borderRadius: 10
148
+ // }
149
+ // },
150
+ // radioSelector: {
151
+ // primary: {
152
+ // padding: 10,
153
+ // borderRadius: 10
154
+ // },
155
+ // secondary: {
156
+ // padding: 10,
157
+ // borderRadius: 10
158
+ // }
159
+ // }
160
+ // };
161
+
162
+ export const QawaimTheme = createTheme({
163
+ components: {
164
+ MuiButton: {
165
+ styleOverrides: {
166
+ // Name of the slot
167
+ root: {
168
+ // Some CSS
169
+ fontSize: "1rem"
170
+ }
171
+ },
172
+ variants: [
173
+ {
174
+ props: { variant: "withLogo" },
175
+ style: {
176
+ textTransform: "none",
177
+ border: `2px solid blue`,
178
+ backgroundColor: "red"
179
+ }
180
+ },
181
+ {
182
+ props: { variant: "dashed", color: "secondary" },
183
+ style: {
184
+ border: `4px dashed red`
185
+ }
186
+ }
187
+ ]
188
+ },
189
+ MuiButton: {
190
+ styleOverrides: {
191
+ // Name of the slot
192
+ root: {
193
+ // Some CSS
194
+ fontSize: "3rem"
195
+ }
196
+ }
197
+ }
198
+ }
199
+ });
@@ -1,41 +1,38 @@
1
1
  import Button from "@mui/material/Button";
2
- import { useContext } from "react";
3
- import { ThemeProvider } from "../themes/HawaProvider";
4
- import { styled, darken } from "@mui/material/styles";
2
+ // import { styled, darken } from "@mui/material/styles";
5
3
 
6
4
  export const ActionButton = (props) => {
7
- const { hawaTheme, themeName } = useContext(ThemeProvider);
8
- const currentTheme = Object.keys(hawaTheme.actionButton).find(
9
- (tName) => tName.toLowerCase() === themeName?.toLowerCase()
10
- );
11
- let actionButtonStyle = {};
5
+ // const currentTheme = Object.keys(hawaTheme.actionButton).find(
6
+ // (tName) => tName.toLowerCase() === themeName?.toLowerCase()
7
+ // );
8
+ // let actionButtonStyle = {};
12
9
 
13
- if (currentTheme) {
14
- actionButtonStyle = {
15
- ...hawaTheme.actionButton[currentTheme],
16
- margin: props.last ? 0 : hawaTheme.actionButton[currentTheme].margin,
17
- marginTop: props.last
18
- ? hawaTheme.actionButton[currentTheme].margin * 2
19
- : 0,
20
- "&:hover": {
21
- backgroundColor: darken(
22
- hawaTheme.actionButton[currentTheme]?.backgroundColor,
23
- 0.1
24
- )
25
- }
26
- };
27
- } else {
28
- actionButtonStyle = {
29
- backgroundColor: "black",
30
- color: "white",
31
- padding: 10,
32
- marginTop: props.last ? 10 * 2 : 0,
33
- borderRadius: 0
34
- };
35
- }
10
+ // if (currentTheme) {
11
+ // actionButtonStyle = {
12
+ // ...hawaTheme.actionButton[currentTheme],
13
+ // margin: props.last ? 0 : hawaTheme.actionButton[currentTheme].margin,
14
+ // marginTop: props.last
15
+ // ? hawaTheme.actionButton[currentTheme].margin * 2
16
+ // : 0,
17
+ // "&:hover": {
18
+ // backgroundColor: darken(
19
+ // hawaTheme.actionButton[currentTheme]?.backgroundColor,
20
+ // 0.1
21
+ // )
22
+ // }
23
+ // };
24
+ // } else {
25
+ // actionButtonStyle = {
26
+ // backgroundColor: "black",
27
+ // color: "white",
28
+ // padding: 10,
29
+ // marginTop: props.last ? 10 * 2 : 0,
30
+ // borderRadius: 0
31
+ // };
32
+ // }
36
33
 
37
- const StyledButton = styled(Button)(({ theme }) => {
38
- return { ...actionButtonStyle };
39
- });
40
- return <StyledButton {...props}>{props.text}</StyledButton>;
34
+ // const StyledButton = styled(Button)(({ theme }) => {
35
+ // return { ...actionButtonStyle };
36
+ // });
37
+ return <Button {...props}>{props.text}</Button>;
41
38
  };
@@ -1,18 +1,13 @@
1
- import React, { useState, useContext } from "react";
1
+ import React, { useState } from "react";
2
2
  import Button from "@mui/material/Button";
3
3
  import Tooltip from "@mui/material/Tooltip";
4
4
  import PropTypes from "prop-types";
5
- import { ThemeProvider } from "../themes/HawaProvider";
6
5
  import { StyledTooltip } from "./StyledTooltip";
7
6
  import { getTextColor } from "../util";
8
7
 
9
8
  export const AdaptiveButton = (props) => {
10
9
  const { showText } = props;
11
- const theme = useContext(ThemeProvider);
12
- const screenSize = {
13
- width: 1500,
14
- height: 200
15
- };
10
+
16
11
  const [tooltip, setTooltip] = useState(false);
17
12
  const [hovered, setHovered] = useState(false);
18
13
  //full button
@@ -26,7 +21,7 @@ export const AdaptiveButton = (props) => {
26
21
  onClick={props.handleClick}
27
22
  style={{
28
23
  backgroundColor: theme.primaryColor,
29
- borderRadius: theme.borderRadius,
24
+ // borderRadius: theme.borderRadius,
30
25
  padding: theme.paddings,
31
26
  color: getTextColor(theme.primaryColor)
32
27
  // color: hovered