@sikka/hawa 0.0.12 → 0.0.15
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/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/Account/UserProfileForm.js +3 -4
- package/src/blocks/Account/UserSettingsForm.js +3 -7
- package/src/blocks/AuthForms/NewPasswordForm.js +57 -38
- package/src/blocks/AuthForms/ResetPasswordForm.js +36 -39
- package/src/blocks/AuthForms/SignInForm.js +73 -65
- package/src/blocks/AuthForms/SignUpForm.js +61 -44
- package/src/blocks/Payment/ChargeWalletForm.js +1 -1
- package/src/blocks/Payment/CreditCardForm.js +1 -1
- package/src/blocks/Payment/PayWithWallet.js +1 -1
- package/src/blocks/Payment/SelectPayment.js +1 -1
- package/src/blocks/Pricing/PricingPlans.js +57 -0
- package/src/{ui → elements}/ActionButton.js +0 -0
- package/src/elements/AdaptiveButton.js +32 -0
- package/src/{ui → elements}/AutoCompleteField.js +0 -0
- package/src/{ui → elements}/DragDropImages.js +0 -0
- package/src/{ui → elements}/Hawa.js +0 -0
- package/src/{ui → elements}/HawaAlert.js +1 -1
- package/src/elements/HawaAppBar.js +139 -0
- package/src/{ui → elements}/HawaButton.js +0 -0
- package/src/{ui → elements}/HawaCheckbox.js +0 -0
- package/src/{ui → elements}/HawaInputLabel.js +0 -0
- package/src/elements/HawaListItem.js +21 -0
- package/src/{ui → elements}/HawaLogoButton.js +0 -0
- package/src/elements/HawaPricingCard.js +133 -0
- package/src/{ui → elements}/HawaRadio.js +1 -1
- package/src/elements/HawaSettingsRow.js +27 -0
- package/src/elements/HawaSwitch.js +6 -0
- package/src/{ui → elements}/HawaTextArea.js +0 -0
- package/src/elements/HawaTextField.js +26 -0
- package/src/{ui → elements}/HawaTypography.js +0 -0
- package/src/{ui → elements}/RadioBox.js +0 -0
- package/src/{ui → elements}/Row.js +0 -0
- package/src/{ui → elements}/SelectedField.js +0 -0
- package/src/{ui → elements}/StyledTooltip.js +0 -0
- package/src/{ui → elements}/TabPanel.js +0 -0
- package/src/{ui → elements}/index.js +3 -1
- package/src/layout/HawaAppLayout.js +246 -0
- package/src/layout/index.js +1 -0
- package/src/stories/BlocksStories/Account/UserSettings.stories.js +36 -2
- package/src/stories/BlocksStories/Auth/NewPassword.stories.js +2 -1
- package/src/stories/BlocksStories/Auth/ResetPassword.stories.js +1 -2
- package/src/stories/BlocksStories/Auth/SignUp.stories.js +1 -0
- package/src/stories/BlocksStories/Pricing/BillingPlans.stories.js +63 -0
- package/src/stories/BlocksStories/Pricing/LandingPlans.stories.js +63 -0
- package/src/stories/ElementsStories/AdaptiveButton.stories.js +51 -0
- package/src/stories/{UIStories → ElementsStories}/Alert.stories.js +1 -1
- package/src/stories/{UIStories → ElementsStories}/InputLabel.stories.js +1 -1
- package/src/stories/ElementsStories/ItemCard.stories.js +18 -0
- package/src/stories/{UIStories → ElementsStories}/LogoButtons.stories.js +1 -1
- package/src/stories/ElementsStories/PricingCard.stories.js +91 -0
- package/src/stories/ElementsStories/RadioSelector.stories.js +36 -0
- package/src/stories/ElementsStories/SettingsRow.stories.js +63 -0
- package/src/stories/{UIStories → ElementsStories}/TextField.stories.js +1 -1
- package/src/stories/LayoutStories/AppBar.stories.js +29 -0
- package/src/stories/LayoutStories/AppLayout.stories.js +52 -0
- package/src/stories/LayoutStories/Box.stories.js +4 -13
- package/src/styles.css +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.66955578.iframe.bundle.js +1 -0
- package/storybook-static/vendors~main.b4186832.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.f8d30727.iframe.bundle.js.LICENSE.txt → vendors~main.b4186832.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.b4186832.iframe.bundle.js.map +1 -0
- package/src/stories/UIStories/ActionButton.stories.js +0 -41
- package/src/stories/UIStories/AdaptiveButton.stories.js +0 -76
- package/src/stories/UIStories/CheckBox.stories.js +0 -34
- package/src/stories/UIStories/RadioSelector.stories.js +0 -24
- package/src/stories/UIStories/SettingsRow.stories.js +0 -51
- package/src/themes/HawaProvider.js +0 -192
- package/src/themes/QawaimTheme.js +0 -199
- package/src/ui/AdaptiveButton.js +0 -131
- package/src/ui/HawaSettingsRow.js +0 -45
- package/src/ui/HawaTextField.js +0 -160
- package/storybook-static/main.a9a16923.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.f8d30727.iframe.bundle.js +0 -76
- package/storybook-static/vendors~main.f8d30727.iframe.bundle.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaRadio } from "../../elements";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Elements/Selections/Panel Tabs",
|
|
6
|
+
component: [HawaRadio],
|
|
7
|
+
argTypes: {
|
|
8
|
+
options: {
|
|
9
|
+
control: "array",
|
|
10
|
+
description: "An array of objects containing the option label and value",
|
|
11
|
+
table: {
|
|
12
|
+
type: {
|
|
13
|
+
summary: "Object Example",
|
|
14
|
+
detail: "{label: 'Option 1', value: 'option1'}"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
args: {
|
|
20
|
+
options: 3
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export const PanelTabs = (args) => {
|
|
25
|
+
let allOptions = Array.from({ length: args.options }, (v, i) => {
|
|
26
|
+
return { label: `Option ${i}`, value: `option${i}` };
|
|
27
|
+
});
|
|
28
|
+
return (
|
|
29
|
+
<HawaRadio
|
|
30
|
+
{...args}
|
|
31
|
+
handleChange={(e) => console.log("changing to ", e)}
|
|
32
|
+
defaultValue="option1"
|
|
33
|
+
options={allOptions}
|
|
34
|
+
/>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaSettingsRow } from "../../elements";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
title: "Elements/Settings/Row",
|
|
6
|
+
component: [HawaSettingsRow],
|
|
7
|
+
parameters: {
|
|
8
|
+
backgrounds: {
|
|
9
|
+
default: 'twitter',
|
|
10
|
+
values: [
|
|
11
|
+
{
|
|
12
|
+
name: 'light',
|
|
13
|
+
value: '#00aced',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'dark',
|
|
17
|
+
value: '#3b5998',
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
// backgrounds: [{ name: "dark background", value: "#000", default: true }]
|
|
22
|
+
},
|
|
23
|
+
argTypes: {
|
|
24
|
+
settingsType: {
|
|
25
|
+
options: ["checkbox", "text", "radio"],
|
|
26
|
+
control: { type: "select" }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export const CheckboxSettings = (args) => <HawaSettingsRow {...args} />;
|
|
32
|
+
CheckboxSettings.args = {
|
|
33
|
+
settingsType: "checkbox",
|
|
34
|
+
settingsLabel: "Text Settings"
|
|
35
|
+
};
|
|
36
|
+
export const TextSettings = (args) => (
|
|
37
|
+
<HawaSettingsRow placeholder="Text here" {...args} />
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
TextSettings.args = {
|
|
41
|
+
settingsType: "text",
|
|
42
|
+
settingsLabel: "Text Settings"
|
|
43
|
+
};
|
|
44
|
+
export const RadioSettings = (args) => {
|
|
45
|
+
let allOptions = Array.from({ length: args.options }, (v, i) => {
|
|
46
|
+
return { label: `Option ${i}`, value: `option${i}` };
|
|
47
|
+
});
|
|
48
|
+
return (
|
|
49
|
+
<HawaSettingsRow
|
|
50
|
+
settingsType={args.settingsType}
|
|
51
|
+
settingsLabel={args.settingsLabel}
|
|
52
|
+
handleChange={(e) => console.log("changing to ", e)}
|
|
53
|
+
defaultValue="option1"
|
|
54
|
+
options={allOptions}
|
|
55
|
+
/>
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
RadioSettings.args = {
|
|
60
|
+
options: 3,
|
|
61
|
+
settingsType: "radio",
|
|
62
|
+
settingsLabel: "Radio Settings"
|
|
63
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaAppBar } from "../../elements";
|
|
3
|
+
|
|
4
|
+
const Template = (args) => {
|
|
5
|
+
return <HawaAppBar />;
|
|
6
|
+
};
|
|
7
|
+
export default {
|
|
8
|
+
title: "Layout/AppBar",
|
|
9
|
+
component: [HawaAppBar],
|
|
10
|
+
parameters: {
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: "light"
|
|
13
|
+
// values: [
|
|
14
|
+
// { name: "light", value: theme.lightBackground },
|
|
15
|
+
// { name: "dark", value: theme.darkBackground }
|
|
16
|
+
// ]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export const Normal = Template.bind({});
|
|
22
|
+
Normal.args = {
|
|
23
|
+
size: "large",
|
|
24
|
+
showText: true,
|
|
25
|
+
buttonLabel: "test",
|
|
26
|
+
// padding: theme.paddings,
|
|
27
|
+
textColor: "#000000",
|
|
28
|
+
buttonColor: "#f9f9f9"
|
|
29
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HawaAppLayout } from "../../layout";
|
|
3
|
+
|
|
4
|
+
const Template = (args) => {
|
|
5
|
+
return (
|
|
6
|
+
<HawaAppLayout
|
|
7
|
+
pageName="page1"
|
|
8
|
+
pages={[
|
|
9
|
+
{ text: "page1", icon: "fdd" },
|
|
10
|
+
{ text: "page2", icon: "huhu" },
|
|
11
|
+
{ text: "page3", icon: "test" }
|
|
12
|
+
]}
|
|
13
|
+
// pages={[
|
|
14
|
+
// <HawaListItem text="dd" />,
|
|
15
|
+
// <HawaListItem text="dd" />,
|
|
16
|
+
// <HawaListItem text="dd" />
|
|
17
|
+
// ]}
|
|
18
|
+
logo={
|
|
19
|
+
<img
|
|
20
|
+
height={40}
|
|
21
|
+
style={{ zIndex: 30, width: "100%" }}
|
|
22
|
+
src="https://xakher-images.s3.ap-southeast-1.amazonaws.com/sikka-logo.svg"
|
|
23
|
+
/>
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
the rest of the app here
|
|
27
|
+
</HawaAppLayout>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
export default {
|
|
31
|
+
title: "Layout/AppLayout",
|
|
32
|
+
component: [HawaAppLayout],
|
|
33
|
+
parameters: {
|
|
34
|
+
backgrounds: {
|
|
35
|
+
default: "light"
|
|
36
|
+
// values: [
|
|
37
|
+
// { name: "light", value: theme.lightBackground },
|
|
38
|
+
// { name: "dark", value: theme.darkBackground }
|
|
39
|
+
// ]
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const Normal = Template.bind({});
|
|
45
|
+
Normal.args = {
|
|
46
|
+
size: "large",
|
|
47
|
+
showText: true,
|
|
48
|
+
buttonLabel: "test",
|
|
49
|
+
// padding: theme.paddings,
|
|
50
|
+
textColor: "#000000",
|
|
51
|
+
buttonColor: "#f9f9f9"
|
|
52
|
+
};
|
|
@@ -1,22 +1,13 @@
|
|
|
1
|
+
import { Container } from "@mui/material";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { Box } from "../../layout";
|
|
3
4
|
|
|
4
5
|
const Template = (args) => {
|
|
5
|
-
return
|
|
6
|
-
<>
|
|
7
|
-
<Box>Box 1</Box>
|
|
8
|
-
<Box>
|
|
9
|
-
<div style={{ backgroundColor: "white", padding: 10, color: "black" }}>
|
|
10
|
-
testing box in box
|
|
11
|
-
</div>
|
|
12
|
-
</Box>
|
|
13
|
-
<Box>Box 3</Box>
|
|
14
|
-
</>
|
|
15
|
-
);
|
|
6
|
+
return <Container variant="auth">test</Container>;
|
|
16
7
|
};
|
|
17
8
|
export default {
|
|
18
|
-
title: "Layout/
|
|
19
|
-
component: <
|
|
9
|
+
title: "Layout/Container",
|
|
10
|
+
component: <Container />,
|
|
20
11
|
parameters: {
|
|
21
12
|
backgrounds: {
|
|
22
13
|
default: "light"
|
package/src/styles.css
CHANGED
|
@@ -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.f1ebae9b.iframe.bundle.js"></script><script src="vendors~main.
|
|
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.f1ebae9b.iframe.bundle.js"></script><script src="vendors~main.b4186832.iframe.bundle.js"></script><script src="main.66955578.iframe.bundle.js"></script></body></html>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/* eslint-enable object-shorthand */
|
|
38
38
|
})
|
|
39
39
|
);
|
|
40
|
-
};</script><link rel="shortcut icon" href="/favicon.ico"/><link rel="icon" type="image/png" href="/hawa-icon.png" sizes="192x192"/><style>#root[hidden],
|
|
40
|
+
};</script><link rel="shortcut icon" href="/favicon.ico"/><link rel="icon" type="image/png" href="/hawa-icon.png" sizes="192x192"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/><link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@100;200;300;400;500;600;700&display=swap" rel="stylesheet"/><style>#root[hidden],
|
|
41
41
|
#docs-root[hidden] {
|
|
42
42
|
display: none !important;
|
|
43
43
|
}</style></head><body><div id="root"></div><div id="docs-root"></div><script>window['CONFIG_TYPE'] = "PRODUCTION";
|