@sikka/hawa 0.0.57 → 0.0.59
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 +3 -3
- package/src/blocks/Account/UserProfileForm.js +9 -5
- package/src/blocks/Account/UserSettingsForm.js +10 -5
- package/src/blocks/AuthForms/CodeConfirmation.js +5 -5
- package/src/blocks/AuthForms/NewPasswordForm.js +9 -5
- package/src/blocks/AuthForms/ResetPasswordForm.js +9 -5
- package/src/blocks/AuthForms/SignInForm.js +5 -10
- package/src/blocks/AuthForms/SignInPhone.js +4 -5
- package/src/blocks/AuthForms/SignUpForm.js +4 -10
- package/src/blocks/Misc/NotFound.js +1 -1
- package/src/blocks/Payment/ChargeWalletForm.js +9 -5
- package/src/blocks/Payment/CheckoutForm.js +6 -8
- package/src/blocks/Payment/Confirmation.js +19 -12
- package/src/blocks/Payment/CreditCardForm.js +6 -7
- package/src/blocks/Payment/Form/CForm.js +2 -12
- package/src/blocks/Payment/PayWithWallet.js +9 -5
- package/src/blocks/Payment/SelectPayment.js +4 -2
- package/src/elements/DragDropImages.js +2 -3
- package/src/elements/HawaButton.js +13 -6
- package/src/elements/HawaItemCard.js +38 -155
- package/src/elements/HawaPanelTabs.js +17 -69
- package/src/elements/HawaRadio.js +32 -0
- package/src/elements/HawaSettingsRow.js +2 -4
- package/src/elements/HawaTooltip.js +2 -41
- package/src/elements/index.js +0 -2
- package/src/layout/HawaContainer.js +12 -0
- package/src/layout/index.js +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.e6b8be7f.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{vendors~main.8be71844.iframe.bundle.js → vendors~main.305b437b.iframe.bundle.js} +3 -3
- package/storybook-static/{vendors~main.8be71844.iframe.bundle.js.LICENSE.txt → vendors~main.305b437b.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.305b437b.iframe.bundle.js.map +1 -0
- package/src/elements/ActionButton.js +0 -14
- package/src/elements/RadioBox.js +0 -29
- package/src/elements/ResponsiveButton.js +0 -34
- package/storybook-static/main.89a5002b.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendors~main.305b437b.iframe.bundle.js","sources":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A","sourceRoot":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
export const ActionButton = (props) => {
|
|
3
|
-
// <Button {...props}>{props.text}</Button>;
|
|
4
|
-
return (
|
|
5
|
-
<button
|
|
6
|
-
type="button"
|
|
7
|
-
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center mr-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
8
|
-
>
|
|
9
|
-
{props.icon ? <div class="mr-2 -ml-1 w-5 h-5">{props.icon}</div> : null}
|
|
10
|
-
|
|
11
|
-
{props.children}
|
|
12
|
-
</button>
|
|
13
|
-
);
|
|
14
|
-
};
|
package/src/elements/RadioBox.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// import React from "react";
|
|
2
|
-
// import { Controller, useFormContext } from "react-hook-form";
|
|
3
|
-
// import FormControlLabel from "@mui/material/FormControlLabel";
|
|
4
|
-
// import Checkbox from "@mui/material/Checkbox";
|
|
5
|
-
|
|
6
|
-
// export const StyledRadioBox = (props) => {
|
|
7
|
-
// const { control } = useFormContext();
|
|
8
|
-
// const { name, defaultValue, rules, shouldUnregister } = props;
|
|
9
|
-
|
|
10
|
-
// return (
|
|
11
|
-
// <React.Fragment>
|
|
12
|
-
// <Controller
|
|
13
|
-
// render={({ field }) => (
|
|
14
|
-
// <FormControlLabel
|
|
15
|
-
// control={<Checkbox />}
|
|
16
|
-
// {...props}
|
|
17
|
-
// {...field}
|
|
18
|
-
// checked={field.value}
|
|
19
|
-
// />
|
|
20
|
-
// )}
|
|
21
|
-
// name={name}
|
|
22
|
-
// rules={rules}
|
|
23
|
-
// control={control}
|
|
24
|
-
// defaultValue={defaultValue}
|
|
25
|
-
// shouldUnregister={shouldUnregister}
|
|
26
|
-
// />
|
|
27
|
-
// </React.Fragment>
|
|
28
|
-
// );
|
|
29
|
-
// };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
|
|
4
|
-
export const ResponsiveButton = (props) => {
|
|
5
|
-
if (props.showText) {
|
|
6
|
-
return (
|
|
7
|
-
<button variant="adaptive-dark" onClick={props.onClick}>
|
|
8
|
-
{props.icon}
|
|
9
|
-
<div style={{ width: 10 }} />
|
|
10
|
-
{props.buttonText}
|
|
11
|
-
</button>
|
|
12
|
-
);
|
|
13
|
-
} else {
|
|
14
|
-
//icon only
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<button
|
|
18
|
-
data-tooltip-target="btn1"
|
|
19
|
-
variant="adaptive-dark"
|
|
20
|
-
onClick={props.onClick}
|
|
21
|
-
>
|
|
22
|
-
{props.icon}
|
|
23
|
-
</button>
|
|
24
|
-
<HawaTooltip tooltipID="btn1" content={props.buttonText} />
|
|
25
|
-
</>
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
ResponsiveButton.propTypes = {
|
|
31
|
-
buttonText: PropTypes.string,
|
|
32
|
-
onClick: PropTypes.func,
|
|
33
|
-
showText: PropTypes.bool
|
|
34
|
-
};
|