@sikka/hawa 0.0.3 → 0.0.6
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/.github/workflows/hawa-publish-push.yml +45 -0
- package/.github/workflows/hawa-publish.yml +2 -0
- package/es/index.es.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +24 -13
- package/rollup.config.js +2 -2
- package/src/Assets/images/card-background/1.jpeg +0 -0
- package/src/Assets/images/card-background/10.jpeg +0 -0
- package/src/Assets/images/card-background/11.jpeg +0 -0
- package/src/Assets/images/card-background/12.jpeg +0 -0
- package/src/Assets/images/card-background/13.jpeg +0 -0
- package/src/Assets/images/card-background/14.jpeg +0 -0
- package/src/Assets/images/card-background/15.jpeg +0 -0
- package/src/Assets/images/card-background/16.jpeg +0 -0
- package/src/Assets/images/card-background/17.jpeg +0 -0
- package/src/Assets/images/card-background/18.jpeg +0 -0
- package/src/Assets/images/card-background/19.jpeg +0 -0
- package/src/Assets/images/card-background/2.jpeg +0 -0
- package/src/Assets/images/card-background/20.jpeg +0 -0
- package/src/Assets/images/card-background/21.jpeg +0 -0
- package/src/Assets/images/card-background/22.jpeg +0 -0
- package/src/Assets/images/card-background/23.jpeg +0 -0
- package/src/Assets/images/card-background/24.jpeg +0 -0
- package/src/Assets/images/card-background/25.jpeg +0 -0
- package/src/Assets/images/card-background/3.jpeg +0 -0
- package/src/Assets/images/card-background/4.jpeg +0 -0
- package/src/Assets/images/card-background/5.jpeg +0 -0
- package/src/Assets/images/card-background/6.jpeg +0 -0
- package/src/Assets/images/card-background/7.jpeg +0 -0
- package/src/Assets/images/card-background/8.jpeg +0 -0
- package/src/Assets/images/card-background/9.jpeg +0 -0
- package/src/Assets/images/card-type/amex.png +0 -0
- package/src/Assets/images/card-type/diners.png +0 -0
- package/src/Assets/images/card-type/discover.png +0 -0
- package/src/Assets/images/card-type/mastercard.png +0 -0
- package/src/Assets/images/card-type/troy.png +0 -0
- package/src/Assets/images/card-type/unionpay.png +0 -0
- package/src/Assets/images/card-type/visa.png +0 -0
- package/src/blocks/Account/UserProfile.js +11 -11
- package/src/blocks/Account/UserSettings.js +11 -11
- package/src/blocks/AuthForms/NewPasswordForm.js +83 -10
- package/src/blocks/AuthForms/ResetPasswordForm.js +50 -8
- package/src/blocks/AuthForms/SignInForm.js +96 -13
- package/src/blocks/AuthForms/SignUpForm.js +113 -13
- package/src/blocks/Payment/ChargeWalletForm.js +32 -0
- package/src/blocks/Payment/CreditCardForm.js +31 -0
- package/src/blocks/Payment/Form/CForm.js +328 -0
- package/src/blocks/Payment/Form/Card.js +242 -0
- package/src/blocks/Payment/Gateway/GooglePay.js +251 -0
- package/src/blocks/Payment/Gateway/Payfort.js +90 -0
- package/src/blocks/Payment/Gateway/Paypal.js +138 -0
- package/src/blocks/Payment/Gateway/Wallet.js +149 -0
- package/src/blocks/Payment/PayWithWallet.js +35 -0
- package/src/blocks/Payment/PaymentMethod.js +132 -0
- package/src/blocks/Payment/SelectPayment.js +94 -0
- package/src/blocks/Payment/index.js +18 -0
- package/src/index.js +4 -1
- package/src/layout/Box.js +30 -17
- package/src/stories/BlocksStories/AuthForm.stories.js +105 -0
- package/src/stories/BlocksStories/PaymentForm.stories.js +82 -0
- package/src/stories/{UserAccount.stories.js → BlocksStories/UserAccount.stories.js} +2 -2
- package/src/stories/GlobalVariables.stories.js +33 -90
- package/src/stories/HawaProvider.stories.js +0 -1
- package/src/stories/Introduction.stories.js +132 -110
- package/src/stories/LayoutStories/Box.stories.js +56 -0
- package/src/stories/UIStories/ActionButton.stories.js +53 -0
- package/src/stories/{AdaptiveButton.stories.js → UIStories/AdaptiveButton.stories.js} +3 -3
- package/src/stories/UIStories/Alert.stories.js +55 -0
- package/src/stories/{CheckBox.stories.js → UIStories/CheckBox.stories.js} +3 -4
- package/src/stories/UIStories/InputLabel.stories.js +13 -0
- package/src/stories/{RadioSelector.stories.js → UIStories/RadioSelector.stories.js} +5 -6
- package/src/stories/{TextField.stories.js → UIStories/TextField.stories.js} +4 -5
- package/src/styles.scss +679 -0
- package/src/themes/HawaProvider.js +110 -16
- package/src/ui/ActionButton.js +35 -10
- package/src/ui/AdaptiveButton.js +29 -29
- package/src/ui/ApplePayButton.js +93 -0
- package/src/ui/AutoCompleteField.js +0 -1
- package/src/ui/DragDropImages.js +2 -2
- package/src/ui/GithubButton.js +90 -0
- package/src/ui/GoogleButton.js +82 -0
- package/src/ui/GooglePayButton.js +93 -0
- package/src/ui/HawaAlert.js +37 -0
- package/src/ui/HawaButton.js +48 -0
- package/src/ui/{Checkbox.js → HawaCheckbox.js} +3 -3
- package/src/ui/HawaInputLabel.js +32 -0
- package/src/ui/HawaLogoButton.js +48 -0
- package/src/ui/{RadioSelector.js → HawaRadio.js} +1 -1
- package/src/ui/{TextArea.js → HawaTextArea.js} +2 -2
- package/src/ui/HawaTextField.js +113 -0
- package/src/ui/HawaTypography.js +29 -0
- package/src/ui/MadaButton.js +93 -0
- package/src/ui/PayPalButton.js +93 -0
- package/src/ui/RadioBox.js +2 -2
- package/src/ui/STCPayButton.js +93 -0
- package/src/ui/SelectedField.js +4 -4
- package/src/ui/StyledTooltip.js +1 -1
- package/src/ui/TabPanel.js +1 -1
- package/src/ui/TwitterButton.js +83 -0
- package/src/ui/VisaMasterButton.js +93 -0
- package/src/ui/WalletButton.js +24 -0
- package/src/ui/index.js +23 -11
- package/storybook-static/0.0d994c92.iframe.bundle.js +3 -0
- package/storybook-static/{1.4e43f671.iframe.bundle.js.LICENSE.txt → 0.0d994c92.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.0d994c92.iframe.bundle.js.map +1 -0
- package/storybook-static/0.f47eb24a4893a96ec307.manager.bundle.js +1 -0
- package/storybook-static/1.aabc3f3a.iframe.bundle.js +1 -0
- package/storybook-static/{3.c1dc7159.iframe.bundle.js → 2.430bf1e3.iframe.bundle.js} +1 -1
- package/storybook-static/4.0fcda1281dc1961dbe94.manager.bundle.js +2 -0
- package/storybook-static/{4.8c311a6b48cad9f29317.manager.bundle.js.LICENSE.txt → 4.0fcda1281dc1961dbe94.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{5.88fe62ee92ff5ca67829.manager.bundle.js → 5.63ab4f94d50a3acf080d.manager.bundle.js} +1 -1
- package/storybook-static/{7.69d2e532.iframe.bundle.js → 6.704d1e8d.iframe.bundle.js} +1 -1
- package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js → 6.a6d45262f7e98f3f18d3.manager.bundle.js} +2 -2
- package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js.LICENSE.txt → 6.a6d45262f7e98f3f18d3.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{7.5ec31f3702b08ab0b71c.manager.bundle.js → 7.097710753af9a1c41b80.manager.bundle.js} +1 -1
- package/storybook-static/{8.68cd1217.iframe.bundle.js → 7.9ce807e3.iframe.bundle.js} +3 -3
- package/storybook-static/{8.68cd1217.iframe.bundle.js.LICENSE.txt → 7.9ce807e3.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/7.9ce807e3.iframe.bundle.js.map +1 -0
- package/storybook-static/{8.5ce13be7612bd3a6b864.manager.bundle.js → 8.76c3cbf398692028e834.manager.bundle.js} +1 -1
- package/storybook-static/{9.488e3969.iframe.bundle.js → 8.c4cb6081.iframe.bundle.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.ac6e4b72b033097dad76.manager.bundle.js +1 -0
- package/storybook-static/main.e55ce615.iframe.bundle.js +1 -0
- package/storybook-static/{runtime~main.cc29f4c2175f187a3707.manager.bundle.js → runtime~main.c8dac23bc753439736f0.manager.bundle.js} +1 -1
- package/storybook-static/runtime~main.cfefe972.iframe.bundle.js +1 -0
- package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.d144d840.iframe.bundle.js.LICENSE.txt → vendors~main.30a2c5d7.iframe.bundle.js.LICENSE.txt} +3 -30
- package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js.map +1 -0
- package/storybook-static/vendors~main.a697e07137d366f95f76.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.f228d62e92b69563cefb.manager.bundle.js.LICENSE.txt → vendors~main.a697e07137d366f95f76.manager.bundle.js.LICENSE.txt} +0 -0
- package/tools/build-styles.js +17 -0
- package/src/blocks/AuthForms/viaFacebook.js +0 -0
- package/src/blocks/AuthForms/viaGithub.js +0 -0
- package/src/blocks/AuthForms/viaGoogle.js +0 -0
- package/src/blocks/AuthForms/viaTwitter.js +0 -0
- package/src/stories/ActionButton.stories.js +0 -49
- package/src/stories/Alert.stories.js +0 -41
- package/src/stories/AuthForm.stories.js +0 -79
- package/src/stories/Box.stories.js +0 -64
- package/src/stories/InputLabel.stories.js +0 -92
- package/src/ui/StyledAlert.js +0 -30
- package/src/ui/StyledInputLabel.js +0 -19
- package/src/ui/TextField.js +0 -62
- package/storybook-static/0.d3bc3395610cf5d3ee94.manager.bundle.js +0 -1
- package/storybook-static/0.dd3d47f5.iframe.bundle.js +0 -1
- package/storybook-static/1.4e43f671.iframe.bundle.js +0 -3
- package/storybook-static/1.4e43f671.iframe.bundle.js.map +0 -1
- package/storybook-static/2.9a757207.iframe.bundle.js +0 -1
- package/storybook-static/4.8c311a6b48cad9f29317.manager.bundle.js +0 -2
- package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
- package/storybook-static/main.65cb2769.iframe.bundle.js +0 -1
- package/storybook-static/main.7e391cf7bf72b0d18ea5.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.6e2e1544.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.d144d840.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.d144d840.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.f228d62e92b69563cefb.manager.bundle.js +0 -2
- package/yarn-error.log +0 -10910
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
|
|
4
|
+
import { ActionButton } from "../../ui";
|
|
5
|
+
|
|
6
|
+
const Template = (args) => {
|
|
7
|
+
return (
|
|
8
|
+
<HawaProvider theme={{ ...defaultTheme }}>
|
|
9
|
+
<ActionButton themeType={args.theme} text={args.buttonLabel} />
|
|
10
|
+
</HawaProvider>
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
//types:
|
|
14
|
+
//error (red)
|
|
15
|
+
//warning (red)
|
|
16
|
+
//notice (blue)
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: "UI/ActionButton",
|
|
20
|
+
component: ActionButton,
|
|
21
|
+
argTypes: {
|
|
22
|
+
theme: {
|
|
23
|
+
description: "overwritten description",
|
|
24
|
+
table: {
|
|
25
|
+
type: {
|
|
26
|
+
summary: "something short"
|
|
27
|
+
},
|
|
28
|
+
defaultValue: { summary: "Hello" }
|
|
29
|
+
},
|
|
30
|
+
options: ["primary", "secondary", "default"],
|
|
31
|
+
control: { type: "select" }
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
Template.args = {
|
|
37
|
+
showText: true,
|
|
38
|
+
buttonLabel: "test",
|
|
39
|
+
theme: "primary"
|
|
40
|
+
};
|
|
41
|
+
export const Primary = Template.bind({});
|
|
42
|
+
Primary.args = {
|
|
43
|
+
showText: true,
|
|
44
|
+
buttonLabel: "test",
|
|
45
|
+
theme: "primary"
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Secondary = Template.bind({});
|
|
49
|
+
Secondary.args = {
|
|
50
|
+
showText: true,
|
|
51
|
+
buttonLabel: "test",
|
|
52
|
+
theme: "secondary"
|
|
53
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import CastIcon from "@
|
|
3
|
-
import { HawaProvider } from "
|
|
4
|
-
import { AdaptiveButton } from "
|
|
2
|
+
import CastIcon from "@mui/icons-material/Cast";
|
|
3
|
+
import { HawaProvider } from "../../themes/HawaProvider";
|
|
4
|
+
import { AdaptiveButton } from "../../ui";
|
|
5
5
|
|
|
6
6
|
const Template = (args) => {
|
|
7
7
|
const theme = {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
|
|
4
|
+
import { HawaAlert } from "../../ui";
|
|
5
|
+
|
|
6
|
+
const Template = (args) => {
|
|
7
|
+
return (
|
|
8
|
+
<HawaProvider theme={{ ...defaultTheme }}>
|
|
9
|
+
<HawaAlert
|
|
10
|
+
themeType={args.theme}
|
|
11
|
+
title="What?"
|
|
12
|
+
text="This is a success alert"
|
|
13
|
+
severity="success"
|
|
14
|
+
/>
|
|
15
|
+
<HawaAlert
|
|
16
|
+
themeType={args.theme}
|
|
17
|
+
text="This is an info alert"
|
|
18
|
+
severity="info"
|
|
19
|
+
/>
|
|
20
|
+
<HawaAlert
|
|
21
|
+
themeType={args.theme}
|
|
22
|
+
text="This is a warning alert"
|
|
23
|
+
severity="warning"
|
|
24
|
+
/>
|
|
25
|
+
<HawaAlert
|
|
26
|
+
themeType={args.theme}
|
|
27
|
+
text="This is an error alert"
|
|
28
|
+
severity="error"
|
|
29
|
+
/>
|
|
30
|
+
</HawaProvider>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
//types:
|
|
34
|
+
//error (red)
|
|
35
|
+
//warning (red)
|
|
36
|
+
//notice (blue)
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
title: "UI/Alert",
|
|
40
|
+
component: HawaAlert,
|
|
41
|
+
argTypes: {
|
|
42
|
+
theme: {
|
|
43
|
+
options: ["primary", "secondary", "default"],
|
|
44
|
+
control: { type: "select" }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
args: {
|
|
48
|
+
theme: "primary"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const Default = Template.bind({});
|
|
53
|
+
Default.args = {
|
|
54
|
+
theme: "primary"
|
|
55
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import "../styles.css";
|
|
2
|
+
import { HawaCheckbox } from "../../ui";
|
|
4
3
|
|
|
5
4
|
const Template = (args) => {
|
|
6
|
-
return <
|
|
5
|
+
return <HawaCheckbox {...args} />;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
9
|
title: "UI/Checkbox",
|
|
11
|
-
component:
|
|
10
|
+
component: HawaCheckbox,
|
|
12
11
|
argsTypes: {
|
|
13
12
|
defaultValue: {
|
|
14
13
|
options: [true, false],
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { storiesOf } from "@storybook/react";
|
|
2
|
+
import { HawaInputLabel } from "../../ui";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Components/InputLabel",
|
|
6
|
+
component: [HawaInputLabel],
|
|
7
|
+
argTypes: {
|
|
8
|
+
resize: {
|
|
9
|
+
options: ["vertical", "horizontal", "both"],
|
|
10
|
+
control: { type: "radio" }
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "../styles.css";
|
|
2
|
+
import { HawaProvider } from "../../themes/HawaProvider";
|
|
3
|
+
import { HawaRadio } from "../../ui";
|
|
5
4
|
|
|
6
5
|
const Template = (args) => {
|
|
7
6
|
const theme = {
|
|
@@ -13,13 +12,13 @@ const Template = (args) => {
|
|
|
13
12
|
};
|
|
14
13
|
return (
|
|
15
14
|
<HawaProvider theme={theme}>
|
|
16
|
-
<
|
|
15
|
+
<HawaRadio {...args} />
|
|
17
16
|
</HawaProvider>
|
|
18
17
|
);
|
|
19
18
|
};
|
|
20
19
|
export default {
|
|
21
|
-
title: "
|
|
22
|
-
component:
|
|
20
|
+
title: "UI/RadioSelector",
|
|
21
|
+
component: HawaRadio,
|
|
23
22
|
argTypes: {
|
|
24
23
|
options: {
|
|
25
24
|
control: "array"
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import "../styles.css";
|
|
2
|
+
import { HawaTextField } from "../../ui";
|
|
4
3
|
|
|
5
4
|
const Template = (args) => {
|
|
6
|
-
return <
|
|
5
|
+
return <HawaTextField {...args} />;
|
|
7
6
|
};
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
|
-
title: "
|
|
11
|
-
component:
|
|
9
|
+
title: "UI/TextField",
|
|
10
|
+
component: HawaTextField,
|
|
12
11
|
argsTypes: {
|
|
13
12
|
type: {
|
|
14
13
|
name: "type",
|