@sikka/hawa 0.0.2 → 0.0.5
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 +45 -0
- package/.prettierrc +28 -28
- package/README.md +149 -148
- package/es/index.es.js +1 -0
- package/lib/index.js +1 -0
- package/package.json +62 -47
- package/rollup.config.js +30 -30
- 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 +15 -0
- package/src/blocks/Account/UserSettings.js +15 -0
- package/src/blocks/Account/index.js +2 -0
- package/src/blocks/AuthForms/NewPasswordForm.js +24 -0
- package/src/blocks/AuthForms/ResetPasswordForm.js +13 -0
- package/src/blocks/AuthForms/SignInForm.js +55 -0
- package/src/blocks/AuthForms/SignUpForm.js +68 -0
- package/src/{components/Hawa → blocks}/AuthForms/index.js +4 -4
- 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/PaymentMethod.js +132 -0
- package/src/blocks/Payment/SelectPayment.js +95 -0
- package/src/blocks/Payment/index.js +16 -0
- package/src/index.js +4 -1
- package/src/layout/Box.js +39 -0
- package/src/layout/index.js +1 -0
- package/src/stories/ActionButton.stories.js +53 -0
- package/src/stories/AdaptiveButton.stories.js +80 -80
- package/src/stories/Alert.stories.js +41 -48
- package/src/stories/BlocksStories/AuthForm.stories.js +99 -0
- package/src/stories/BlocksStories/PaymentForm.stories.js +111 -0
- package/src/stories/BlocksStories/UserAccount.stories.js +46 -0
- package/src/stories/CheckBox.stories.js +35 -34
- package/src/stories/GlobalVariables.stories.js +44 -108
- package/src/stories/HawaProvider.stories.js +22 -23
- package/src/stories/InputLabel.stories.js +92 -100
- package/src/stories/Introduction.stories.js +211 -0
- package/src/stories/LayoutStories/Box.stories.js +56 -0
- package/src/stories/RadioSelector.stories.js +69 -69
- package/src/stories/TextField.stories.js +50 -50
- package/src/styles.css +400 -400
- package/src/styles.scss +679 -0
- package/src/themes/HawaProvider.js +87 -0
- package/src/ui/ActionButton.js +40 -0
- package/src/{components/Hawa/AdaptiveButton → ui}/AdaptiveButton.js +252 -254
- package/src/ui/ApplePayButton.js +94 -0
- package/src/{components/Hawa/AutoCompleteField/AutoCompleteField.jsx → ui/AutoCompleteField.js} +32 -33
- package/src/{components/Hawa/Checkbox/Checkbox.jsx → ui/Checkbox.js} +21 -20
- package/src/{components/Hawa/DragDropImages/DragDropImages.jsx → ui/DragDropImages.js} +180 -180
- package/src/ui/GithubButton.js +91 -0
- package/src/ui/GoogleButton.js +83 -0
- package/src/ui/GooglePayButton.js +94 -0
- package/src/{components/Hawa/Hawa.jsx → ui/Hawa.js} +3 -3
- package/src/ui/HawaInputLabel.js +33 -0
- package/src/{components/Hawa/TextArea/TextArea.jsx → ui/HawaTextArea.js} +38 -38
- package/src/ui/HawaTextField.js +118 -0
- package/src/ui/MadaButton.js +94 -0
- package/src/ui/PayPalButton.js +94 -0
- package/src/{components/Hawa/RadioBox/RadioBox.jsx → ui/RadioBox.js} +29 -29
- package/src/{components/Hawa/RadioSelector/RadioSelector.jsx → ui/RadioSelector.js} +51 -51
- package/src/{components/Hawa/Row/Row.jsx → ui/Row.js} +21 -21
- package/src/ui/STCPayButton.js +94 -0
- package/src/{components/Hawa/SelectedField/SelectedField.jsx → ui/SelectedField.js} +46 -46
- package/src/ui/StyledAlert.js +30 -0
- package/src/{components/Hawa/StyledTooltip → ui}/StyledTooltip.js +46 -46
- package/src/{components/Hawa/TabPanel/TabPanel.jsx → ui/TabPanel.js} +37 -37
- package/src/ui/TwitterButton.js +84 -0
- package/src/ui/VisaMasterButton.js +94 -0
- package/src/ui/WalletButton.js +91 -0
- package/src/ui/index.js +22 -0
- package/src/util.js +20 -20
- package/storybook-static/0.54f7e52e.iframe.bundle.js +1 -0
- package/storybook-static/0.f47eb24a4893a96ec307.manager.bundle.js +1 -0
- package/storybook-static/1.95be85dd.iframe.bundle.js +3 -0
- package/storybook-static/{1.7c0dc86d.iframe.bundle.js.LICENSE.txt → 1.95be85dd.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/1.95be85dd.iframe.bundle.js.map +1 -0
- package/storybook-static/2.eb601582.iframe.bundle.js +1 -0
- package/storybook-static/{3.592ce28f.iframe.bundle.js → 3.d72f7fac.iframe.bundle.js} +0 -0
- package/storybook-static/4.0fcda1281dc1961dbe94.manager.bundle.js +2 -0
- package/storybook-static/{5.f459d151315e6780c20f.manager.bundle.js.LICENSE.txt → 4.0fcda1281dc1961dbe94.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/5.63ab4f94d50a3acf080d.manager.bundle.js +1 -0
- package/storybook-static/6.a6d45262f7e98f3f18d3.manager.bundle.js +2 -0
- package/storybook-static/{11.f4e922583ae35da460f3.manager.bundle.js.LICENSE.txt → 6.a6d45262f7e98f3f18d3.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{7.3d04765dbf3f1dcd706c.manager.bundle.js → 7.097710753af9a1c41b80.manager.bundle.js} +1 -1
- package/storybook-static/7.ffb0d84b.iframe.bundle.js +1 -0
- package/storybook-static/{8.8e2132ec.iframe.bundle.js → 8.68cd1217.iframe.bundle.js} +2 -2
- package/storybook-static/{8.8e2132ec.iframe.bundle.js.LICENSE.txt → 8.68cd1217.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/8.68cd1217.iframe.bundle.js.map +1 -0
- package/storybook-static/8.76c3cbf398692028e834.manager.bundle.js +1 -0
- package/storybook-static/{9.109ea555.iframe.bundle.js → 9.488e3969.iframe.bundle.js} +0 -0
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.html +9 -1
- package/storybook-static/main.044648aa.iframe.bundle.js +1 -0
- package/storybook-static/main.ac6e4b72b033097dad76.manager.bundle.js +1 -0
- package/storybook-static/{runtime~main.ffc8677e.iframe.bundle.js → runtime~main.3e280e98.iframe.bundle.js} +1 -1
- package/storybook-static/runtime~main.c8dac23bc753439736f0.manager.bundle.js +1 -0
- package/storybook-static/vendors~main.a697e07137d366f95f76.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.a935f15a2179a6eff5fd.manager.bundle.js.LICENSE.txt → vendors~main.a697e07137d366f95f76.manager.bundle.js.LICENSE.txt} +6 -12
- package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.4aa936b1.iframe.bundle.js.LICENSE.txt → vendors~main.d75dc38b.iframe.bundle.js.LICENSE.txt} +3 -45
- package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js.map +1 -0
- package/tools/build-styles.js +17 -0
- package/dist/index.es.js +0 -37
- package/dist/index.js +0 -37
- package/src/components/Hawa/AdaptiveButton/index.js +0 -1
- package/src/components/Hawa/AuthForms/NewPasswordForm.js +0 -23
- package/src/components/Hawa/AuthForms/ResetPasswordForm.js +0 -21
- package/src/components/Hawa/AuthForms/SignInForm.js +0 -25
- package/src/components/Hawa/AuthForms/SignUpForm.js +0 -26
- package/src/components/Hawa/AuthForms/viaFacebook.js +0 -0
- package/src/components/Hawa/AuthForms/viaGithub.js +0 -0
- package/src/components/Hawa/AuthForms/viaGoogle.js +0 -0
- package/src/components/Hawa/AuthForms/viaTwitter.js +0 -0
- package/src/components/Hawa/AutoCompleteField/index.js +0 -1
- package/src/components/Hawa/Box/Box.js +0 -18
- package/src/components/Hawa/Box/index.js +0 -1
- package/src/components/Hawa/Checkbox/index.js +0 -1
- package/src/components/Hawa/DragDropImages/index.js +0 -1
- package/src/components/Hawa/HawaProvider/HawaProvider.js +0 -19
- package/src/components/Hawa/HawaProvider/index.js +0 -1
- package/src/components/Hawa/InputLabel/StyledInputLabel.js +0 -15
- package/src/components/Hawa/InputLabel/index.js +0 -1
- package/src/components/Hawa/RadioBox/index.js +0 -1
- package/src/components/Hawa/RadioSelector/index.js +0 -1
- package/src/components/Hawa/Row/index.js +0 -1
- package/src/components/Hawa/SelectedField/index.js +0 -1
- package/src/components/Hawa/StyledAlert/StyledAlert.js +0 -15
- package/src/components/Hawa/StyledAlert/index.js +0 -1
- package/src/components/Hawa/StyledTooltip/index.js +0 -1
- package/src/components/Hawa/TabPanel/index.js +0 -1
- package/src/components/Hawa/TextArea/index.js +0 -1
- package/src/components/Hawa/TextField/TextField.js +0 -54
- package/src/components/Hawa/TextField/index.js +0 -1
- package/src/components/Hawa/index.js +0 -10
- package/src/stories/AuthForm.stories.js +0 -76
- package/src/stories/Box.stories.js +0 -45
- package/storybook-static/0.12392f0b.iframe.bundle.js +0 -1
- package/storybook-static/0.55b012452099ace2dca6.manager.bundle.js +0 -1
- package/storybook-static/1.0f38715c61c7c3cd11db.manager.bundle.js +0 -1
- package/storybook-static/1.7c0dc86d.iframe.bundle.js +0 -3
- package/storybook-static/1.7c0dc86d.iframe.bundle.js.map +0 -1
- package/storybook-static/10.9f2923a7561bc20fffdb.manager.bundle.js +0 -1
- package/storybook-static/11.f4e922583ae35da460f3.manager.bundle.js +0 -2
- package/storybook-static/12.1415460941f0bdcb8fa8.manager.bundle.js +0 -1
- package/storybook-static/2.ee357266.iframe.bundle.js +0 -1
- package/storybook-static/5.f459d151315e6780c20f.manager.bundle.js +0 -2
- package/storybook-static/6.3bd64d820f3745f262ff.manager.bundle.js +0 -1
- package/storybook-static/7.af56919f.iframe.bundle.js +0 -1
- package/storybook-static/8.8e2132ec.iframe.bundle.js.map +0 -1
- package/storybook-static/8.b541eadfcb9164835dfc.manager.bundle.js +0 -1
- package/storybook-static/9.411ac8e451bbb10926c7.manager.bundle.js +0 -1
- package/storybook-static/main.78b7d418.iframe.bundle.js +0 -1
- package/storybook-static/main.9bb085ebb152f5b19a2a.manager.bundle.js +0 -1
- package/storybook-static/runtime~main.9468098d21070636985f.manager.bundle.js +0 -1
- package/storybook-static/vendors~main.4aa936b1.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.4aa936b1.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.a935f15a2179a6eff5fd.manager.bundle.js +0 -2
package/package.json
CHANGED
|
@@ -1,47 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sikka/hawa",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "UI Kit",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "
|
|
7
|
-
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"start": "start-storybook -p 6006",
|
|
10
|
-
"storybook": "start-storybook -p 6006",
|
|
11
|
-
"build-storybook": "build-storybook",
|
|
12
|
-
"build-lib": "rollup -c"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"@babel/
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@storybook/addon-
|
|
24
|
-
"@storybook/
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"react": "^
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"react
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@sikka/hawa",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"description": "UI Kit",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"module": "es/index.es.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"start": "start-storybook -p 6006",
|
|
10
|
+
"storybook": "start-storybook -p 6006",
|
|
11
|
+
"build-storybook": "build-storybook",
|
|
12
|
+
"build-lib": "rollup -c",
|
|
13
|
+
"build:styles": " node tools/build-styles"
|
|
14
|
+
},
|
|
15
|
+
"author": "SIKKA SOFTWARE",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@babel/core": "^7.12.10",
|
|
19
|
+
"@babel/preset-react": "^7.12.10",
|
|
20
|
+
"@paypal/react-paypal-js": "^7.6.0",
|
|
21
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
22
|
+
"@rollup/plugin-node-resolve": "^11.1.1",
|
|
23
|
+
"@storybook/addon-actions": "^6.4.7",
|
|
24
|
+
"@storybook/addon-essentials": "^6.4.7",
|
|
25
|
+
"@storybook/addon-links": "^6.4.7",
|
|
26
|
+
"@storybook/addons": "^6.4.19",
|
|
27
|
+
"@storybook/react": "^6.4.7",
|
|
28
|
+
"@storybook/theming": "^6.4.19",
|
|
29
|
+
"axios": "^0.26.1",
|
|
30
|
+
"babel-loader": "^8.2.2",
|
|
31
|
+
"crypto-js": "^4.1.1",
|
|
32
|
+
"framer-motion": "^4.1.7",
|
|
33
|
+
"next": "^12.1.0",
|
|
34
|
+
"next-scripts": "^0.3.4",
|
|
35
|
+
"next-translate": "^1.3.5",
|
|
36
|
+
"qs": "^6.10.3",
|
|
37
|
+
"react": "^17.0.1",
|
|
38
|
+
"react-dom": "^17.0.1",
|
|
39
|
+
"react-transition-group": "^4.4.2",
|
|
40
|
+
"rollup": "^2.38.4",
|
|
41
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
42
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
43
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
44
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"@emotion/react": "^11.8.2",
|
|
48
|
+
"@emotion/styled": "^11.8.1",
|
|
49
|
+
"@mui/material": "^5.5.1",
|
|
50
|
+
"crypto-js": "^4.1.1",
|
|
51
|
+
"next-scripts": "^0.3.4",
|
|
52
|
+
"prop-types": "^15.7.2",
|
|
53
|
+
"react": "^17.0.1",
|
|
54
|
+
"react-dom": "^17.0.1",
|
|
55
|
+
"react-hook-form": "^7.20.4",
|
|
56
|
+
"react-transition-group": "^4.4.2",
|
|
57
|
+
"tinycolor2": "^1.4.2"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@mui/icons-material": "^5.5.1"
|
|
61
|
+
}
|
|
62
|
+
}
|
package/rollup.config.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import babel from "rollup-plugin-babel";
|
|
2
|
-
import resolve from "@rollup/plugin-node-resolve";
|
|
3
|
-
import external from "rollup-plugin-peer-deps-external";
|
|
4
|
-
import { terser } from "rollup-plugin-terser";
|
|
5
|
-
import postcss from "rollup-plugin-postcss";
|
|
6
|
-
import commonjs from "@rollup/plugin-commonjs";
|
|
7
|
-
|
|
8
|
-
export default [
|
|
9
|
-
{
|
|
10
|
-
input: "src/index.js",
|
|
11
|
-
output: [
|
|
12
|
-
{ file: "
|
|
13
|
-
{ file: "
|
|
14
|
-
],
|
|
15
|
-
plugins: [
|
|
16
|
-
postcss({ plugins: [], minimize: true }),
|
|
17
|
-
babel({
|
|
18
|
-
exclude: "node_modules/**",
|
|
19
|
-
presets: [
|
|
20
|
-
"@babel/preset-env",
|
|
21
|
-
["@babel/preset-react", { runtime: "automatic" }]
|
|
22
|
-
]
|
|
23
|
-
}),
|
|
24
|
-
external(),
|
|
25
|
-
resolve(),
|
|
26
|
-
terser(),
|
|
27
|
-
commonjs()
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
];
|
|
1
|
+
import babel from "rollup-plugin-babel";
|
|
2
|
+
import resolve from "@rollup/plugin-node-resolve";
|
|
3
|
+
import external from "rollup-plugin-peer-deps-external";
|
|
4
|
+
import { terser } from "rollup-plugin-terser";
|
|
5
|
+
import postcss from "rollup-plugin-postcss";
|
|
6
|
+
import commonjs from "@rollup/plugin-commonjs";
|
|
7
|
+
|
|
8
|
+
export default [
|
|
9
|
+
{
|
|
10
|
+
input: "src/index.js",
|
|
11
|
+
output: [
|
|
12
|
+
{ file: "lib/index.js", format: "cjs" },
|
|
13
|
+
{ file: "es/index.es.js", format: "es", exports: "named" }
|
|
14
|
+
],
|
|
15
|
+
plugins: [
|
|
16
|
+
postcss({ plugins: [], minimize: true }),
|
|
17
|
+
babel({
|
|
18
|
+
exclude: "node_modules/**",
|
|
19
|
+
presets: [
|
|
20
|
+
"@babel/preset-env",
|
|
21
|
+
["@babel/preset-react", { runtime: "automatic" }]
|
|
22
|
+
]
|
|
23
|
+
}),
|
|
24
|
+
external(),
|
|
25
|
+
resolve(),
|
|
26
|
+
terser(),
|
|
27
|
+
commonjs()
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaInputLabel, ActionButton } from "../../ui";
|
|
3
|
+
import { Box } from "../../layout";
|
|
4
|
+
|
|
5
|
+
export const UserProfile = (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<Box maxWidth={400}>
|
|
8
|
+
<HawaInputLabel type="text" inputLabel="First Name" />
|
|
9
|
+
<HawaInputLabel type="text" inputLabel="Last Name" />
|
|
10
|
+
<HawaInputLabel type="email" inputLabel="Email" />
|
|
11
|
+
<HawaInputLabel type="password" inputLabel="Password" />
|
|
12
|
+
<ActionButton last text="Update Account" />
|
|
13
|
+
</Box>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaTextField, ActionButton } from "../../ui";
|
|
3
|
+
import { Box } from "../../layout";
|
|
4
|
+
|
|
5
|
+
export const UserSettings = (props) => {
|
|
6
|
+
return (
|
|
7
|
+
<Box maxWidth={400}>
|
|
8
|
+
<HawaTextField type="text" inputLabel="First Name" />
|
|
9
|
+
<HawaTextField type="text" inputLabel="Last Name" />
|
|
10
|
+
<HawaTextField type="email" inputLabel="Email" />
|
|
11
|
+
<HawaTextField type="password" inputLabel="Password" />
|
|
12
|
+
<ActionButton last text="Update Account" />
|
|
13
|
+
</Box>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { useContext } from "react";
|
|
2
|
+
import { Box } from "../../layout";
|
|
3
|
+
import { ThemeProvider } from "../../themes/HawaProvider";
|
|
4
|
+
import { ActionButton, HawaTextField, HawaInputLabel } from "../../ui";
|
|
5
|
+
export const NewPasswordForm = (props) => {
|
|
6
|
+
const theme = useContext(ThemeProvider);
|
|
7
|
+
return (
|
|
8
|
+
<Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
|
|
9
|
+
<Box themeType={props.theme} noMargin>
|
|
10
|
+
<HawaTextField
|
|
11
|
+
themeType={props.theme}
|
|
12
|
+
type="password"
|
|
13
|
+
inputLabel="Password"
|
|
14
|
+
/>
|
|
15
|
+
<HawaTextField
|
|
16
|
+
themeType={props.theme}
|
|
17
|
+
type="password"
|
|
18
|
+
inputLabel="Confirm Password"
|
|
19
|
+
/>
|
|
20
|
+
<ActionButton themeType={props.theme} last text="Reset Password" />
|
|
21
|
+
</Box>
|
|
22
|
+
</Box>
|
|
23
|
+
);
|
|
24
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box } from "../../layout";
|
|
3
|
+
import { HawaTextField, HawaInputLabel, ActionButton } from "../../ui";
|
|
4
|
+
export const ResetPasswordForm = (props) => {
|
|
5
|
+
return (
|
|
6
|
+
<Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
|
|
7
|
+
<Box themeType={props.theme} noMargin>
|
|
8
|
+
<HawaTextField themeType={props.theme} type="text" inputLabel="Email" />
|
|
9
|
+
<ActionButton themeType={props.theme} last text="Reset Password" />
|
|
10
|
+
</Box>
|
|
11
|
+
</Box>
|
|
12
|
+
);
|
|
13
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
HawaTextField,
|
|
4
|
+
ActionButton,
|
|
5
|
+
GoogleButton,
|
|
6
|
+
TwitterButton,
|
|
7
|
+
GithubButton
|
|
8
|
+
} from "../../ui";
|
|
9
|
+
import { Box } from "../../layout";
|
|
10
|
+
|
|
11
|
+
export const SignInForm = (props) => {
|
|
12
|
+
return (
|
|
13
|
+
<Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
|
|
14
|
+
<Box themeType={props.theme} noMargin>
|
|
15
|
+
<HawaTextField themeType={props.theme} type="text" inputLabel="Email" />
|
|
16
|
+
|
|
17
|
+
<HawaTextField
|
|
18
|
+
themeType={props.theme}
|
|
19
|
+
type="text"
|
|
20
|
+
inputLabel="Password"
|
|
21
|
+
/>
|
|
22
|
+
<ActionButton
|
|
23
|
+
last
|
|
24
|
+
text={"Sign In"}
|
|
25
|
+
themeType={props.theme}
|
|
26
|
+
onClick={props.handleSignIn}
|
|
27
|
+
/>
|
|
28
|
+
</Box>
|
|
29
|
+
{props.viaGoogle && (
|
|
30
|
+
<GoogleButton
|
|
31
|
+
themeType={props.theme}
|
|
32
|
+
outlined
|
|
33
|
+
buttonText={props.googleButtonLabel}
|
|
34
|
+
handleClick={props.handleGoogleSignIn}
|
|
35
|
+
/>
|
|
36
|
+
)}
|
|
37
|
+
{props.viaGithub && (
|
|
38
|
+
<GithubButton
|
|
39
|
+
outlined
|
|
40
|
+
themeType={props.theme}
|
|
41
|
+
buttonText={props.githubButtonLabel}
|
|
42
|
+
handleClick={props.handleGithubSignIn}
|
|
43
|
+
/>
|
|
44
|
+
)}
|
|
45
|
+
{props.viaTwitter && (
|
|
46
|
+
<TwitterButton
|
|
47
|
+
outlined
|
|
48
|
+
themeType={props.theme}
|
|
49
|
+
buttonText={props.twitterButtonLabel}
|
|
50
|
+
handleClick={props.handleTwitterSignIn}
|
|
51
|
+
/>
|
|
52
|
+
)}
|
|
53
|
+
</Box>
|
|
54
|
+
);
|
|
55
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Box } from "../../layout";
|
|
3
|
+
import {
|
|
4
|
+
HawaTextField,
|
|
5
|
+
ActionButton,
|
|
6
|
+
GoogleButton,
|
|
7
|
+
GithubButton,
|
|
8
|
+
TwitterButton
|
|
9
|
+
} from "../../ui";
|
|
10
|
+
import PropTypes from "prop-types";
|
|
11
|
+
|
|
12
|
+
export const SignUpForm = (props) => {
|
|
13
|
+
return (
|
|
14
|
+
<Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
|
|
15
|
+
<Box themeType={props.theme} noMargin>
|
|
16
|
+
<HawaTextField themeType={props.theme} type="text" inputLabel="Email" />
|
|
17
|
+
<HawaTextField
|
|
18
|
+
themeType={props.theme}
|
|
19
|
+
type="text"
|
|
20
|
+
inputLabel="Password"
|
|
21
|
+
/>
|
|
22
|
+
<HawaTextField
|
|
23
|
+
themeType={props.theme}
|
|
24
|
+
type="text"
|
|
25
|
+
inputLabel="Confirm Password"
|
|
26
|
+
/>
|
|
27
|
+
<ActionButton
|
|
28
|
+
text="Sign Up"
|
|
29
|
+
last
|
|
30
|
+
themeType={props.theme}
|
|
31
|
+
onClick={props.handleSignUp}
|
|
32
|
+
/>
|
|
33
|
+
</Box>
|
|
34
|
+
{props.viaGoogle && (
|
|
35
|
+
<GoogleButton
|
|
36
|
+
outlined
|
|
37
|
+
themeType={props.theme}
|
|
38
|
+
buttonText={props.googleButtonLabel}
|
|
39
|
+
handleClick={props.handleGoogleSignIn}
|
|
40
|
+
/>
|
|
41
|
+
)}
|
|
42
|
+
{props.viaGithub && (
|
|
43
|
+
<GithubButton
|
|
44
|
+
outlined
|
|
45
|
+
themeType={props.theme}
|
|
46
|
+
buttonText={props.githubButtonLabel}
|
|
47
|
+
handleClick={props.handleGithubSignUp}
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
50
|
+
{props.viaTwitter && (
|
|
51
|
+
<TwitterButton
|
|
52
|
+
outlined
|
|
53
|
+
themeType={props.theme}
|
|
54
|
+
buttonText={props.twitterButtonLabel}
|
|
55
|
+
handleClick={props.handleTwitterSignIn}
|
|
56
|
+
/>
|
|
57
|
+
)}
|
|
58
|
+
</Box>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
SignUpForm.propTypes = {
|
|
63
|
+
theme: PropTypes.oneOf(["secondary", "primary"])
|
|
64
|
+
// buttonLabel: PropTypes.string,
|
|
65
|
+
// danger: PropTypes.bool,
|
|
66
|
+
// disabled: PropTypes.bool,
|
|
67
|
+
// showText: PropTypes.bool
|
|
68
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./NewPasswordForm.js";
|
|
2
|
-
export * from "./ResetPasswordForm.js";
|
|
3
|
-
export * from "./SignUpForm.js";
|
|
4
|
-
export * from "./SignInForm.js";
|
|
1
|
+
export * from "./NewPasswordForm.js";
|
|
2
|
+
export * from "./ResetPasswordForm.js";
|
|
3
|
+
export * from "./SignUpForm.js";
|
|
4
|
+
export * from "./SignInForm.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import {
|
|
3
|
+
HawaTextField,
|
|
4
|
+
ActionButton,
|
|
5
|
+
GoogleButton,
|
|
6
|
+
TwitterButton,
|
|
7
|
+
GithubButton
|
|
8
|
+
} from "../../ui";
|
|
9
|
+
import { Box } from "../../layout";
|
|
10
|
+
|
|
11
|
+
export const CreditCardForm = (props) => {
|
|
12
|
+
return (
|
|
13
|
+
<Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
|
|
14
|
+
<Box themeType={props.theme} noMargin>
|
|
15
|
+
<HawaTextField themeType={props.theme} type="text" inputLabel="Email" />
|
|
16
|
+
|
|
17
|
+
<HawaTextField
|
|
18
|
+
themeType={props.theme}
|
|
19
|
+
type="text"
|
|
20
|
+
inputLabel="Password"
|
|
21
|
+
/>
|
|
22
|
+
<ActionButton
|
|
23
|
+
last
|
|
24
|
+
text={"Sign In"}
|
|
25
|
+
themeType={props.theme}
|
|
26
|
+
onClick={props.handleSignIn}
|
|
27
|
+
/>
|
|
28
|
+
</Box>
|
|
29
|
+
</Box>
|
|
30
|
+
);
|
|
31
|
+
};
|