@sikka/hawa 0.0.26 → 0.0.29

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 (38) hide show
  1. package/README.md +8 -71
  2. package/es/index.es.js +1 -1
  3. package/lib/index.js +1 -1
  4. package/package.json +5 -4
  5. package/src/blocks/Account/UserProfileForm.js +2 -4
  6. package/src/blocks/AuthForms/NewPasswordForm.js +5 -4
  7. package/src/blocks/AuthForms/ResetPasswordForm.js +6 -0
  8. package/src/blocks/AuthForms/SignInForm.js +12 -2
  9. package/src/blocks/AuthForms/SignUpForm.js +10 -8
  10. package/src/blocks/Payment/ChargeWalletForm.js +9 -7
  11. package/src/blocks/Payment/CheckoutForm.js +11 -1
  12. package/src/blocks/Payment/Confirmation.js +18 -23
  13. package/src/blocks/Payment/PaymentMethod.js +8 -3
  14. package/src/blocks/Payment/SelectPayment.js +18 -7
  15. package/src/blocks/Pricing/PricingPlans.js +6 -0
  16. package/src/elements/ActionButton.js +0 -33
  17. package/src/elements/AdaptiveButton.js +1 -0
  18. package/src/elements/HawaAlert.js +7 -0
  19. package/src/elements/HawaColorPicker.js +61 -0
  20. package/src/elements/HawaItemCard.js +5 -1
  21. package/src/elements/HawaLogoButton.js +13 -1
  22. package/src/elements/HawaPopMenu.js +6 -0
  23. package/src/elements/HawaPricingCard.js +14 -0
  24. package/src/elements/HawaRadio.js +8 -0
  25. package/src/elements/HawaSettingsRow.js +5 -3
  26. package/src/elements/HawaTextArea.js +20 -32
  27. package/src/elements/HawaTextField.js +16 -20
  28. package/src/elements/index.js +2 -0
  29. package/storybook-static/iframe.html +1 -1
  30. package/storybook-static/index.html +1 -1
  31. package/storybook-static/{main.ac6e4b72b033097dad76.manager.bundle.js → main.9d5968bcf15d21f5487c.manager.bundle.js} +0 -0
  32. package/storybook-static/main.c6115a9b.iframe.bundle.js +1 -0
  33. package/storybook-static/vendors~main.b026595c.iframe.bundle.js +76 -0
  34. package/storybook-static/{vendors~main.741b86a0.iframe.bundle.js.LICENSE.txt → vendors~main.b026595c.iframe.bundle.js.LICENSE.txt} +0 -0
  35. package/storybook-static/vendors~main.b026595c.iframe.bundle.js.map +1 -0
  36. package/storybook-static/main.20c7df82.iframe.bundle.js +0 -1
  37. package/storybook-static/vendors~main.741b86a0.iframe.bundle.js +0 -76
  38. package/storybook-static/vendors~main.741b86a0.iframe.bundle.js.map +0 -1
@@ -1,38 +1,26 @@
1
+ import { useTheme } from "@mui/system";
1
2
  import React from "react";
2
- import { Controller, useFormContext } from "react-hook-form";
3
- import { StyledInputLabel } from ".";
4
3
 
5
4
  export const HawaTextArea = (props) => {
6
- const { control } = useFormContext();
7
- const { name, rules, shouldUnregister, inputLabel, helperText } = props;
8
-
5
+ const theme = useTheme();
6
+ console.log("theme is ", theme);
9
7
  return (
10
- <Controller
11
- render={({ field }) => (
12
- <label>
13
- {inputLabel ? <StyledInputLabel label={inputLabel} /> : null}
14
- <textarea
15
- style={{
16
- color: "black",
17
- backgroundColor: props.bgColor || "white",
18
- // borderRadius: props.bdRadius || 10,
19
- borderBottom: "none",
20
- border: "none",
21
- width: "100%",
22
- padding: 0,
23
- margin: 0,
24
- marginBottom: 0,
25
- resize: props.resize || "vertical"
26
- }}
27
- value={field.value ?? ""}
28
- {...field}
29
- />
30
- </label>
31
- )}
32
- name={name}
33
- rules={rules}
34
- control={control}
35
- shouldUnregister={shouldUnregister}
36
- />
8
+ <label>
9
+ {/* {inputLabel ? <StyledInputLabel label={inputLabel} /> : null} */}
10
+ <textarea
11
+ style={{
12
+ color: "black",
13
+ backgroundColor: props.bgColor || "white",
14
+ borderBottom: "none",
15
+ border: "none",
16
+ width: "100%",
17
+ padding: 0,
18
+ margin: 0,
19
+ marginBottom: 0,
20
+ resize: props.resize || "vertical"
21
+ }}
22
+ // value={field.value ?? ""}
23
+ />
24
+ </label>
37
25
  );
38
26
  };
@@ -5,28 +5,24 @@ import Typography from "@mui/material/Typography";
5
5
 
6
6
  export const HawaTextField = (props) => {
7
7
  return (
8
- <div
9
- style={
10
- props.inForm && {
11
- width: "100%"
12
- }
13
- }
14
- >
15
- <div
16
- style={{
17
- display: "flex",
18
- flexDirection: "row",
19
- justifyContent: "space-between",
20
- alignItems: "center"
21
- }}
22
- >
23
- {props.label && <InputLabel>{props.label}</InputLabel>}
8
+ <div style={props.inForm && { width: "100%" }}>
9
+ <div style={{ width: props.fullWidth ? "100%" : "fit-content" }}>
10
+ <div
11
+ style={{
12
+ display: "flex",
13
+ flexDirection: "row",
14
+ justifyContent: "space-between",
15
+ alignItems: "center"
16
+ }}
17
+ >
18
+ {props.label && <InputLabel>{props.label}</InputLabel>}
24
19
 
25
- {props.helperText && (
26
- <Typography variant="validation">{props.helperText}</Typography>
27
- )}
20
+ {props.helperText && (
21
+ <Typography variant="validation">{props.helperText}</Typography>
22
+ )}
23
+ </div>
24
+ <Input disableUnderline {...props} />
28
25
  </div>
29
- <Input disableUnderline {...props} />
30
26
  </div>
31
27
  );
32
28
  };
@@ -10,7 +10,9 @@ export * from "./HawaLogoButton";
10
10
  export * from "./HawaButton";
11
11
  export * from "./HawaSelect";
12
12
  export * from "./HawaTextField";
13
+ export * from "./HawaTextArea";
13
14
  export * from "./HawaInputLabel";
14
15
  export * from "./HawaTypography";
15
16
  export * from "./HawaAlert";
16
17
  export * from "./HawaTable";
18
+ export * from "./HawaColorPicker";
@@ -345,4 +345,4 @@
345
345
 
346
346
 
347
347
 
348
- window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.708d7ac1.iframe.bundle.js"></script><script src="vendors~main.741b86a0.iframe.bundle.js"></script><script src="main.20c7df82.iframe.bundle.js"></script></body></html>
348
+ window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:[\\\\/](?!\\.)(?:(?:(?!(?:^|[\\\\/])\\.).)*?)[\\\\/]|[\\\\/]|$)(?!\\.)(?=.)[^\\\\/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.708d7ac1.iframe.bundle.js"></script><script src="vendors~main.b026595c.iframe.bundle.js"></script><script src="main.c6115a9b.iframe.bundle.js"></script></body></html>
@@ -56,4 +56,4 @@
56
56
 
57
57
 
58
58
 
59
- window['DOCS_MODE'] = false;</script><script src="runtime~main.c8dac23bc753439736f0.manager.bundle.js"></script><script src="vendors~main.a697e07137d366f95f76.manager.bundle.js"></script><script src="main.ac6e4b72b033097dad76.manager.bundle.js"></script></body></html>
59
+ window['DOCS_MODE'] = false;</script><script src="runtime~main.c8dac23bc753439736f0.manager.bundle.js"></script><script src="vendors~main.a697e07137d366f95f76.manager.bundle.js"></script><script src="main.9d5968bcf15d21f5487c.manager.bundle.js"></script></body></html>