@sikka/hawa 0.0.9 → 0.0.12

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 (68) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +5 -4
  4. package/src/blocks/Account/UserProfileForm.js +80 -0
  5. package/src/blocks/Account/UserSettingsForm.js +17 -0
  6. package/src/blocks/Account/index.js +2 -2
  7. package/src/blocks/AuthForms/NewPasswordForm.js +57 -85
  8. package/src/blocks/AuthForms/ResetPasswordForm.js +43 -42
  9. package/src/blocks/AuthForms/SignInForm.js +99 -98
  10. package/src/blocks/AuthForms/SignUpForm.js +106 -104
  11. package/src/blocks/Payment/ChargeWalletForm.js +40 -37
  12. package/src/blocks/Payment/CreditCardForm.js +49 -44
  13. package/src/blocks/Payment/PayWithWallet.js +16 -6
  14. package/src/blocks/Payment/PaymentMethod.js +0 -1
  15. package/src/blocks/Payment/SelectPayment.js +53 -55
  16. package/src/index.js +0 -1
  17. package/src/layout/Box.js +36 -33
  18. package/src/stories/BlocksStories/Account/UserProfile.stories.js +21 -0
  19. package/src/stories/BlocksStories/Account/UserSettings.stories.js +21 -0
  20. package/src/stories/BlocksStories/Auth/NewPassword.stories.js +60 -0
  21. package/src/stories/BlocksStories/Auth/ResetPassword.stories.js +59 -0
  22. package/src/stories/BlocksStories/Auth/SignIn.stories.js +89 -0
  23. package/src/stories/BlocksStories/Auth/SignUp.stories.js +90 -0
  24. package/src/stories/BlocksStories/Payment/ChargeWallet.stories.js +30 -0
  25. package/src/stories/BlocksStories/Payment/PayWithCreditCard.stories.js +37 -0
  26. package/src/stories/BlocksStories/Payment/PayWithWallet.stories.js +17 -0
  27. package/src/stories/BlocksStories/Payment/PaymentSelection.stories.js +60 -0
  28. package/src/stories/LayoutStories/Box.stories.js +9 -20
  29. package/src/stories/UIStories/ActionButton.stories.js +1 -6
  30. package/src/stories/UIStories/AdaptiveButton.stories.js +1 -6
  31. package/src/stories/UIStories/Alert.stories.js +2 -3
  32. package/src/stories/UIStories/LogoButtons.stories.js +47 -64
  33. package/src/stories/UIStories/RadioSelector.stories.js +15 -44
  34. package/src/stories/UIStories/SettingsRow.stories.js +3 -16
  35. package/src/themes/HawaProvider.js +187 -178
  36. package/src/themes/QawaimTheme.js +199 -0
  37. package/src/ui/ActionButton.js +32 -35
  38. package/src/ui/AdaptiveButton.js +3 -8
  39. package/src/ui/HawaAlert.js +22 -24
  40. package/src/ui/HawaButton.js +43 -44
  41. package/src/ui/HawaInputLabel.js +22 -23
  42. package/src/ui/HawaLogoButton.js +7 -45
  43. package/src/ui/HawaRadio.js +18 -61
  44. package/src/ui/HawaSettingsRow.js +1 -27
  45. package/src/ui/HawaTextArea.js +1 -1
  46. package/src/ui/HawaTextField.js +146 -93
  47. package/src/ui/HawaTypography.js +19 -21
  48. package/src/ui/Row.js +1 -1
  49. package/src/ui/StyledTooltip.js +1 -1
  50. package/src/ui/TabPanel.js +1 -1
  51. package/storybook-static/8.1bf48ea7.iframe.bundle.js +1 -0
  52. package/storybook-static/iframe.html +1 -1
  53. package/storybook-static/index.html +1 -1
  54. package/storybook-static/main.a9a16923.iframe.bundle.js +1 -0
  55. package/storybook-static/{runtime~main.cfefe972.iframe.bundle.js → runtime~main.f1ebae9b.iframe.bundle.js} +1 -1
  56. package/storybook-static/vendors~main.f8d30727.iframe.bundle.js +76 -0
  57. package/storybook-static/{vendors~main.aa1d952a.iframe.bundle.js.LICENSE.txt → vendors~main.f8d30727.iframe.bundle.js.LICENSE.txt} +0 -0
  58. package/storybook-static/vendors~main.f8d30727.iframe.bundle.js.map +1 -0
  59. package/src/blocks/Account/UserProfile.js +0 -65
  60. package/src/blocks/Account/UserSettings.js +0 -15
  61. package/src/stories/BlocksStories/AuthForm.stories.js +0 -105
  62. package/src/stories/BlocksStories/PaymentForm.stories.js +0 -86
  63. package/src/stories/BlocksStories/UserForm.stories.js +0 -41
  64. package/src/stories/HawaProvider.stories.js +0 -22
  65. package/storybook-static/8.c4cb6081.iframe.bundle.js +0 -1
  66. package/storybook-static/main.5731dbe3.iframe.bundle.js +0 -1
  67. package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js +0 -76
  68. package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ import React from "react";
2
+ import { SignUpForm } from "../../../blocks/AuthForms";
3
+
4
+ export default {
5
+ title: "Blocks/Auth/Sign Up",
6
+ component: [SignUpForm],
7
+ argTypes: {
8
+ viaGoogle: {
9
+ default: true,
10
+ control: "boolean",
11
+ description: "Display the sign in via Google button",
12
+ table: { defaultValue: { summary: true } }
13
+ },
14
+ viaTwitter: {
15
+ default: true,
16
+ control: "boolean",
17
+ description: "Display the sign in via Twitter button",
18
+ table: { defaultValue: { summary: true } }
19
+ },
20
+ viaGithub: {
21
+ default: true,
22
+ control: "boolean",
23
+ description: "Display the sign in via Github button",
24
+ table: { defaultValue: { summary: true } }
25
+ },
26
+ showError: {
27
+ default: false,
28
+ control: "boolean",
29
+ description: "Display the error when auth fails",
30
+ table: { defaultValue: { summary: true } }
31
+ },
32
+ errorTitle: {
33
+ default: " ",
34
+ control: "text",
35
+ description: "The error text for the auth failure",
36
+ table: { defaultValue: { summary: "" } }
37
+ },
38
+ errorText: {
39
+ default: "Something went wrong",
40
+ control: "text",
41
+ description: "The error text for the auth failure",
42
+ table: { defaultValue: { summary: "Something went wrong" } }
43
+ }
44
+ }
45
+ };
46
+
47
+ const SignUpTemplate = (args) => {
48
+ return (
49
+ <SignUpForm
50
+ {...args}
51
+ texts={{
52
+ fullNameLabel: "Full Name",
53
+ fullNamePlaceholder: "Fulan AlFulani",
54
+ emailLabel: "Email",
55
+ emailPlaceholder: "Enter your email",
56
+ emailRequiredText: "Email is required",
57
+ emailInvalidText: "Invalid email address",
58
+ passwordLabel: "Password",
59
+ passwordPlaceholder: "Minimum 8 characters",
60
+ passwordRequiredText: "Password is required",
61
+ passwordTooShortText: "Password too short",
62
+ forgotPasswordText: "Forgot password?",
63
+ newUserText: "New user?",
64
+ signUpText: "Sign up",
65
+ signInText: "Sign in",
66
+ googleButtonLabel: "Sign in with Google",
67
+ githubButtonLabel: "Sign in with Github",
68
+ twitterButtonLabel: "Sign in with Twitter"
69
+ }}
70
+ error={args.showError}
71
+ viaGoogle={args.viaGoogle}
72
+ viaGithub={args.viaGithub}
73
+ viaTwitter={args.viaTwitter}
74
+ handleSignUp={() => console.log("singing up via email")}
75
+ handleGoogleSignUp={() => console.log("signing up via google")}
76
+ handleGithubSignUp={() => console.log("signing up via github")}
77
+ handleTwitterSignUp={() => console.log("signing up via Twitter")}
78
+ handleRouteToSignIn={() => console.log("switching to sign in")}
79
+ />
80
+ );
81
+ };
82
+ export const SignUp = SignUpTemplate.bind({});
83
+ SignUp.args = {
84
+ viaGoogle: true,
85
+ viaGithub: true,
86
+ viaTwitter: true,
87
+ showError: false,
88
+ errorTitle: "Error",
89
+ errorText: "Something went wrong"
90
+ };
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { ChargeWalletForm } from "../../../blocks/Payment";
3
+
4
+ export default {
5
+ title: "Blocks/Payment/Charge Wallet",
6
+ component: [ChargeWalletForm],
7
+ argTypes: {
8
+ viaWallet: { control: "boolean" },
9
+ viaApplePay: { control: "boolean" },
10
+ viaGooglePay: { control: "boolean" },
11
+ viaSTCPay: { control: "boolean" },
12
+ viaCreditCard: { control: "boolean" },
13
+ viaPayPal: { control: "boolean" }
14
+ },
15
+ args: {
16
+ viaWallet: true,
17
+ viaMada: true,
18
+ viaApplePay: true,
19
+ viaGooglePay: true,
20
+ viaSTCPay: true,
21
+ viaCreditCard: true,
22
+ viaPayPal: true
23
+ }
24
+ };
25
+
26
+ export const ChargeWallet = (args) => {
27
+ return <ChargeWalletForm {...args} />;
28
+ };
29
+
30
+ ChargeWallet.args = { currency: "SAR" };
@@ -0,0 +1,37 @@
1
+ import React from "react";
2
+ import { CreditCardForm } from "../../../blocks/Payment";
3
+
4
+ export default {
5
+ title: "Blocks/Payment/Pay Via Credit Card",
6
+ component: [CreditCardForm],
7
+ argTypes: {
8
+ theme: {
9
+ options: ["primary", "secondary", "default"],
10
+ control: { type: "select" }
11
+ },
12
+ viaWallet: { control: "boolean" },
13
+ viaApplePay: { control: "boolean" },
14
+ viaGooglePay: { control: "boolean" },
15
+ viaSTCPay: { control: "boolean" },
16
+ viaCreditCard: { control: "boolean" },
17
+ viaPayPal: { control: "boolean" }
18
+ },
19
+ args: {
20
+ theme: "primary",
21
+ viaWallet: true,
22
+ viaMada: true,
23
+ viaApplePay: true,
24
+ viaGooglePay: true,
25
+ viaSTCPay: true,
26
+ viaCreditCard: true,
27
+ viaPayPal: true
28
+ }
29
+ };
30
+
31
+ export const PayViaCreditCard = (args) => {
32
+ return <CreditCardForm theme={args.theme} />;
33
+ };
34
+
35
+ PayViaCreditCard.args = {
36
+ theme: "secondary"
37
+ };
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { PayWithWallet } from "../../../blocks/Payment";
3
+
4
+ export default {
5
+ title: "Blocks/Payment/Pay Via Wallet",
6
+ component: [PayWithWallet],
7
+ argTypes: {
8
+ walletBalance: { control: "number" }
9
+ },
10
+ args: {
11
+ walletBalance: 20
12
+ }
13
+ };
14
+
15
+ export const PayViaWallet = (args) => {
16
+ return <PayWithWallet {...args} />;
17
+ };
@@ -0,0 +1,60 @@
1
+ import React from "react";
2
+ import { SelectPayment } from "../../../blocks/Payment";
3
+
4
+ export default {
5
+ title: "Blocks/Payment/Payment Selection",
6
+ component: [SelectPayment],
7
+ argTypes: {
8
+ theme: {
9
+ options: ["primary", "secondary", "default"],
10
+ control: { type: "select" }
11
+ },
12
+ viaWallet: { control: "boolean" },
13
+ viaApplePay: { control: "boolean" },
14
+ viaGooglePay: { control: "boolean" },
15
+ viaSTCPay: { control: "boolean" },
16
+ viaCreditCard: { control: "boolean" },
17
+ viaPayPal: { control: "boolean" }
18
+ },
19
+ args: {
20
+ theme: "primary",
21
+ viaWallet: true,
22
+ viaMada: true,
23
+ viaApplePay: true,
24
+ viaGooglePay: true,
25
+ viaSTCPay: true,
26
+ viaCreditCard: true,
27
+ viaPayPal: true
28
+ }
29
+ };
30
+
31
+ const PaymentSelectionTemplate = (args) => {
32
+ return (
33
+ <SelectPayment
34
+ {...args}
35
+ walletLabel="Wallet Balance"
36
+ handleWallet={() => console.log("paying via wallet")}
37
+ visaMasterLabel="Credit Card"
38
+ handleCreditCard={() => console.log("paying via Credit Card")}
39
+ madaLabel="Mada"
40
+ handleMada={() => console.log("paying via Mada")}
41
+ paypalLabel="PayPal"
42
+ handlePayPal={() => console.log("paying via PayPal")}
43
+ applePayLabel="Apple Pay"
44
+ handleApplePay={() => console.log("paying via Apple Pay")}
45
+ googlePayLabel="Google Pay"
46
+ handleGooglePay={() => console.log("paying via Google Pay")}
47
+ stcPayLabel="STC Pay"
48
+ handleSTCPay={() => console.log("paying via STC Pay")}
49
+ />
50
+ );
51
+ };
52
+ export const PaymentSelection = PaymentSelectionTemplate.bind({});
53
+ PaymentSelection.args = {
54
+ viaGoogle: true,
55
+ viaGithub: true,
56
+ viaTwitter: true,
57
+ showError: false,
58
+ errorTitle: "Error",
59
+ errorText: "Something went wrong"
60
+ };
@@ -1,13 +1,9 @@
1
1
  import React from "react";
2
2
  import { Box } from "../../layout";
3
- import { HawaProvider, defaultTheme } from "../../themes/HawaProvider";
4
- const theme = {
5
- ...defaultTheme
6
- };
7
3
 
8
4
  const Template = (args) => {
9
5
  return (
10
- <HawaProvider size={args.size} themeName={"secondary"}>
6
+ <>
11
7
  <Box>Box 1</Box>
12
8
  <Box>
13
9
  <div style={{ backgroundColor: "white", padding: 10, color: "black" }}>
@@ -15,7 +11,7 @@ const Template = (args) => {
15
11
  </div>
16
12
  </Box>
17
13
  <Box>Box 3</Box>
18
- </HawaProvider>
14
+ </>
19
15
  );
20
16
  };
21
17
  export default {
@@ -23,11 +19,11 @@ export default {
23
19
  component: <Box />,
24
20
  parameters: {
25
21
  backgrounds: {
26
- default: "light",
27
- values: [
28
- { name: "light", value: theme.lightBackground },
29
- { name: "dark", value: theme.darkBackground }
30
- ]
22
+ default: "light"
23
+ // values: [
24
+ // { name: "light", value: theme.lightBackground },
25
+ // { name: "dark", value: theme.darkBackground }
26
+ // ]
31
27
  }
32
28
  }
33
29
  };
@@ -37,8 +33,7 @@ Normal.args = {
37
33
  size: "large",
38
34
  showText: true,
39
35
  buttonLabel: "test",
40
- borderRadius: 5,
41
- padding: theme.paddings,
36
+ // padding: theme.paddings,
42
37
  textColor: "#000000",
43
38
  buttonColor: "#f9f9f9"
44
39
  };
@@ -46,11 +41,5 @@ export const Compact = Template.bind({});
46
41
  Compact.args = {
47
42
  size: "small",
48
43
  showText: true,
49
- buttonLabel: "test",
50
- theme: {
51
- borderRadius: 5,
52
- paddings: theme.paddings / 2,
53
- textColor: "#000000",
54
- buttonColor: "#f9f9f9"
55
- }
44
+ buttonLabel: "test"
56
45
  };
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { HawaProvider } from "../../themes/HawaProvider";
3
2
  import { ActionButton } from "../../ui";
4
3
 
5
4
  export default {
@@ -13,11 +12,7 @@ export default {
13
12
  }
14
13
  };
15
14
  const Template = (args) => {
16
- return (
17
- <HawaProvider themeName={args.theme}>
18
- <ActionButton text={args.buttonLabel} />
19
- </HawaProvider>
20
- );
15
+ return <ActionButton text={args.buttonLabel} />;
21
16
  };
22
17
 
23
18
  Template.args = {
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
2
  import CastIcon from "@mui/icons-material/Cast";
3
- import { HawaProvider } from "../../themes/HawaProvider";
4
3
  import { AdaptiveButton } from "../../ui";
5
4
 
6
5
  export default {
@@ -27,11 +26,7 @@ export default {
27
26
  };
28
27
 
29
28
  const Template = (args) => {
30
- return (
31
- <HawaProvider themeName={args.theme}>
32
- <AdaptiveButton {...args} />
33
- </HawaProvider>
34
- );
29
+ return <AdaptiveButton {...args} />;
35
30
  };
36
31
 
37
32
  export const FullButton = Template.bind({});
@@ -1,11 +1,10 @@
1
1
  import React from "react";
2
2
 
3
- import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
4
3
  import { HawaAlert } from "../../ui";
5
4
 
6
5
  const Template = (args) => {
7
6
  return (
8
- <HawaProvider themeName={args.theme}>
7
+ <>
9
8
  <HawaAlert
10
9
  title="What?"
11
10
  text="This is a success alert"
@@ -14,7 +13,7 @@ const Template = (args) => {
14
13
  <HawaAlert text="This is an info alert" severity="info" />
15
14
  <HawaAlert text="This is a warning alert" severity="warning" />
16
15
  <HawaAlert text="This is an error alert" severity="error" />
17
- </HawaProvider>
16
+ </>
18
17
  );
19
18
  };
20
19
  //types:
@@ -1,90 +1,73 @@
1
+ import { Container } from "@mui/material";
1
2
  import React from "react";
2
- import { HawaProvider } from "../../themes/HawaProvider";
3
3
  import { ActionButton, HawaLogoButton } from "../../ui";
4
4
 
5
5
  export default {
6
6
  title: "Elements/Buttons/LogoButtons",
7
- component: ActionButton,
7
+ component: HawaLogoButton,
8
8
  argTypes: {
9
- theme: {
10
- options: ["primary", "secondary", "default"],
11
- control: { type: "select" }
9
+ buttonLabel: {
10
+ control: "text",
11
+ description: "The text next to the logo"
12
12
  },
13
- buttonLabel: { control: "text" },
14
- logo: { control: "text" }
15
- },
16
- args: {
17
- buttonLabel: "test",
18
- logo: "google",
19
- theme: "primary"
13
+ logo: {
14
+ control: "select",
15
+ options: [
16
+ "google",
17
+ "twitter",
18
+ "github",
19
+ "paypal",
20
+ "applepay",
21
+ "googlepay",
22
+ "stcpay",
23
+ "mada",
24
+ "visa/master"
25
+ ],
26
+ description: "a brand name that will display the logo accordingly",
27
+ table: {
28
+ type: {
29
+ summary: "Examples",
30
+ detail: "google, twitter, github, paypal, applepay, googlepay"
31
+ }
32
+ }
33
+ }
20
34
  }
21
35
  };
36
+
22
37
  const Template = (args) => {
23
38
  return (
24
- <HawaProvider themeName={args.theme}>
39
+ <Container maxWidth="xs" variant="plain">
25
40
  <HawaLogoButton logo={args.logo} buttonText={args.buttonLabel} />
26
- </HawaProvider>
41
+ </Container>
27
42
  );
28
43
  };
29
44
 
30
45
  export const Google = Template.bind({});
31
- Google.args = {
32
- buttonLabel: "Sign in via Google",
33
- logo: "google",
34
- theme: "primary"
35
- };
46
+ Google.args = { buttonLabel: "Sign in via Google", logo: "google" };
36
47
 
37
48
  export const Twitter = Template.bind({});
38
- Twitter.args = {
39
- buttonLabel: "Sign in via Twitter",
40
- logo: "twitter",
41
- theme: "primary"
42
- };
49
+ Twitter.args = { buttonLabel: "Sign in via Twitter", logo: "twitter" };
50
+
43
51
  export const Github = Template.bind({});
44
- Github.args = {
45
- buttonLabel: "Sign in via Github",
46
- logo: "github",
47
- theme: "primary"
48
- };
52
+ Github.args = { buttonLabel: "Sign in via Github", logo: "github" };
53
+
49
54
  export const WalletPay = Template.bind({});
50
- WalletPay.args = {
51
- buttonLabel: "Pay with Wallet",
52
- logo: "wallet",
53
- theme: "primary"
54
- };
55
+ WalletPay.args = { buttonLabel: "Pay with Wallet", logo: "wallet" };
56
+
55
57
  export const GooglePay = Template.bind({});
56
- GooglePay.args = {
57
- buttonLabel: "Google Pay",
58
- logo: "googlepay",
59
- theme: "primary"
60
- };
58
+ GooglePay.args = { buttonLabel: "Google Pay", logo: "googlepay" };
59
+
61
60
  export const ApplePay = Template.bind({});
62
- ApplePay.args = {
63
- buttonLabel: "Apple Pay",
64
- logo: "applepay",
65
- theme: "primary"
66
- };
61
+ ApplePay.args = { buttonLabel: "Apple Pay", logo: "applepay" };
62
+
67
63
  export const STCPay = Template.bind({});
68
- STCPay.args = {
69
- buttonLabel: "STC Pay",
70
- logo: "stcpay",
71
- theme: "primary"
72
- };
64
+ STCPay.args = { buttonLabel: "STC Pay", logo: "stcpay" };
65
+
73
66
  export const VisaMasterPay = Template.bind({});
74
- VisaMasterPay.args = {
75
- buttonLabel: "Visa / Mastercard",
76
- logo: "visa/master",
77
- theme: "primary"
78
- };
67
+ VisaMasterPay.args = { buttonLabel: "Visa / Mastercard", logo: "visa/master" };
68
+
79
69
  export const PayPal = Template.bind({});
80
- PayPal.args = {
81
- buttonLabel: "PayPal",
82
- logo: "paypal",
83
- theme: "primary"
84
- };
70
+ PayPal.args = { buttonLabel: "PayPal", logo: "paypal" };
71
+
85
72
  export const Mada = Template.bind({});
86
- Mada.args = {
87
- buttonLabel: "Mada",
88
- logo: "mada",
89
- theme: "primary"
90
- };
73
+ Mada.args = { buttonLabel: "Mada", logo: "mada" };
@@ -1,53 +1,24 @@
1
1
  import React from "react";
2
- import { HawaProvider } from "../../themes/HawaProvider";
3
2
  import { HawaRadio } from "../../ui";
4
3
 
5
4
  export default {
6
- title: "UI/RadioSelector",
7
- component: HawaRadio,
8
- argTypes: {
9
- theme: {
10
- options: ["primary", "secondary", "default"],
11
- control: { type: "select" }
12
- }
13
- },
14
- args: {
15
- theme: "primary"
16
- }
5
+ title: "Elements/Selections/Radio Selector",
6
+ component: [HawaRadio],
7
+ argTypes: {},
8
+ args: {}
17
9
  };
18
10
 
19
- const Template = (args) => {
11
+ export const RadioSelector = (args) => {
20
12
  return (
21
- <HawaProvider themeName={args.theme}>
22
- <HawaRadio
23
- defaultValue="option1"
24
- options={[
25
- { text: "Option 1", label: "option1" },
26
- { text: "Option 2", label: "option2" },
27
- { text: "Option 3", label: "option3" }
28
- ]}
29
- />
30
- </HawaProvider>
13
+ <HawaRadio
14
+ {...args}
15
+ handleChange={(e) => console.log("changing to ", e)}
16
+ defaultValue="option1"
17
+ options={[
18
+ { label: "Option 1", value: "option1" },
19
+ { label: "Option 2", value: "option2" },
20
+ { label: "Option 3", value: "option3" }
21
+ ]}
22
+ />
31
23
  );
32
24
  };
33
- export const Light = Template.bind({});
34
-
35
- Light.args = {
36
- theme: "primary",
37
-
38
- handleChange: () => {
39
- console.log("handleChange goes here");
40
- }
41
- };
42
- export const Dark = Template.bind({});
43
- Dark.args = {
44
- options: [
45
- { text: "Option 1", label: "option1" },
46
- { text: "Option 2", label: "option2" },
47
- { text: "Option 3", label: "option3" }
48
- ],
49
- defaultValue: "option2",
50
- handleChange: () => {
51
- console.log("handleChange goes here");
52
- }
53
- };
@@ -5,7 +5,6 @@ import {
5
5
  ChargeWalletForm,
6
6
  PayWithWallet
7
7
  } from "../../blocks/Payment";
8
- import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
9
8
  import { HawaSettingsRow } from "../../ui";
10
9
 
11
10
  export default {
@@ -28,11 +27,7 @@ export default {
28
27
  };
29
28
 
30
29
  const HawaSettingsRowTemplate = (args) => {
31
- return (
32
- <HawaProvider themeName={args.theme}>
33
- <HawaSettingsRow settingsType={args.type} />
34
- </HawaProvider>
35
- );
30
+ return <HawaSettingsRow settingsType={args.type} />;
36
31
  };
37
32
 
38
33
  export const Checkbox = HawaSettingsRowTemplate.bind({});
@@ -41,22 +36,14 @@ Checkbox.args = {
41
36
  type: "checkbox"
42
37
  };
43
38
  export const Text = (args) => {
44
- return (
45
- <HawaProvider themeName={args.theme}>
46
- <HawaSettingsRow settingsType={args.type} />
47
- </HawaProvider>
48
- );
39
+ return <HawaSettingsRow settingsType={args.type} />;
49
40
  };
50
41
  Text.args = {
51
42
  theme: "primary",
52
43
  type: "text"
53
44
  };
54
45
  export const Radio = (args) => {
55
- return (
56
- <HawaProvider themeName={args.theme}>
57
- <HawaSettingsRow settingsType={args.type} />
58
- </HawaProvider>
59
- );
46
+ return <HawaSettingsRow settingsType={args.type} />;
60
47
  };
61
48
  Radio.args = {
62
49
  theme: "primary",