@sikka/hawa 0.0.9 → 0.0.12
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 +5 -4
- package/src/blocks/Account/UserProfileForm.js +80 -0
- package/src/blocks/Account/UserSettingsForm.js +17 -0
- package/src/blocks/Account/index.js +2 -2
- package/src/blocks/AuthForms/NewPasswordForm.js +57 -85
- package/src/blocks/AuthForms/ResetPasswordForm.js +43 -42
- package/src/blocks/AuthForms/SignInForm.js +99 -98
- package/src/blocks/AuthForms/SignUpForm.js +106 -104
- package/src/blocks/Payment/ChargeWalletForm.js +40 -37
- package/src/blocks/Payment/CreditCardForm.js +49 -44
- package/src/blocks/Payment/PayWithWallet.js +16 -6
- package/src/blocks/Payment/PaymentMethod.js +0 -1
- package/src/blocks/Payment/SelectPayment.js +53 -55
- package/src/index.js +0 -1
- package/src/layout/Box.js +36 -33
- package/src/stories/BlocksStories/Account/UserProfile.stories.js +21 -0
- package/src/stories/BlocksStories/Account/UserSettings.stories.js +21 -0
- package/src/stories/BlocksStories/Auth/NewPassword.stories.js +60 -0
- package/src/stories/BlocksStories/Auth/ResetPassword.stories.js +59 -0
- package/src/stories/BlocksStories/Auth/SignIn.stories.js +89 -0
- package/src/stories/BlocksStories/Auth/SignUp.stories.js +90 -0
- package/src/stories/BlocksStories/Payment/ChargeWallet.stories.js +30 -0
- package/src/stories/BlocksStories/Payment/PayWithCreditCard.stories.js +37 -0
- package/src/stories/BlocksStories/Payment/PayWithWallet.stories.js +17 -0
- package/src/stories/BlocksStories/Payment/PaymentSelection.stories.js +60 -0
- package/src/stories/LayoutStories/Box.stories.js +9 -20
- package/src/stories/UIStories/ActionButton.stories.js +1 -6
- package/src/stories/UIStories/AdaptiveButton.stories.js +1 -6
- package/src/stories/UIStories/Alert.stories.js +2 -3
- package/src/stories/UIStories/LogoButtons.stories.js +47 -64
- package/src/stories/UIStories/RadioSelector.stories.js +15 -44
- package/src/stories/UIStories/SettingsRow.stories.js +3 -16
- package/src/themes/HawaProvider.js +187 -178
- package/src/themes/QawaimTheme.js +199 -0
- package/src/ui/ActionButton.js +32 -35
- package/src/ui/AdaptiveButton.js +3 -8
- package/src/ui/HawaAlert.js +22 -24
- package/src/ui/HawaButton.js +43 -44
- package/src/ui/HawaInputLabel.js +22 -23
- package/src/ui/HawaLogoButton.js +7 -45
- package/src/ui/HawaRadio.js +18 -61
- package/src/ui/HawaSettingsRow.js +1 -27
- package/src/ui/HawaTextArea.js +1 -1
- package/src/ui/HawaTextField.js +146 -93
- package/src/ui/HawaTypography.js +19 -21
- package/src/ui/Row.js +1 -1
- package/src/ui/StyledTooltip.js +1 -1
- package/src/ui/TabPanel.js +1 -1
- package/storybook-static/8.1bf48ea7.iframe.bundle.js +1 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.a9a16923.iframe.bundle.js +1 -0
- package/storybook-static/{runtime~main.cfefe972.iframe.bundle.js → runtime~main.f1ebae9b.iframe.bundle.js} +1 -1
- package/storybook-static/vendors~main.f8d30727.iframe.bundle.js +76 -0
- package/storybook-static/{vendors~main.aa1d952a.iframe.bundle.js.LICENSE.txt → vendors~main.f8d30727.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.f8d30727.iframe.bundle.js.map +1 -0
- package/src/blocks/Account/UserProfile.js +0 -65
- package/src/blocks/Account/UserSettings.js +0 -15
- package/src/stories/BlocksStories/AuthForm.stories.js +0 -105
- package/src/stories/BlocksStories/PaymentForm.stories.js +0 -86
- package/src/stories/BlocksStories/UserForm.stories.js +0 -41
- package/src/stories/HawaProvider.stories.js +0 -22
- package/storybook-static/8.c4cb6081.iframe.bundle.js +0 -1
- package/storybook-static/main.5731dbe3.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js +0 -76
- package/storybook-static/vendors~main.aa1d952a.iframe.bundle.js.map +0 -1
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vendors~main.f8d30727.iframe.bundle.js","sources":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A","sourceRoot":""}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { HawaInputLabel, ActionButton, HawaTextField } from "../../ui";
|
|
3
|
-
import { Box } from "../../layout";
|
|
4
|
-
import { FormProvider, useForm } from "react-hook-form";
|
|
5
|
-
|
|
6
|
-
export const UserProfile = (props) => {
|
|
7
|
-
const methods = useForm();
|
|
8
|
-
const {
|
|
9
|
-
formState: { errors },
|
|
10
|
-
handleSubmit
|
|
11
|
-
} = methods;
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<Box maxWidth={400} noMargin>
|
|
15
|
-
<Box noMargin noColor>
|
|
16
|
-
<FormProvider {...methods}>
|
|
17
|
-
<form>
|
|
18
|
-
<HawaTextField
|
|
19
|
-
type="text"
|
|
20
|
-
name="fullName"
|
|
21
|
-
inputLabel="Full Name"
|
|
22
|
-
placeholder="Fulan AlFulani"
|
|
23
|
-
rules={{
|
|
24
|
-
required: "Email is required"
|
|
25
|
-
}}
|
|
26
|
-
helperText={errors.fullName?.message}
|
|
27
|
-
/>
|
|
28
|
-
<HawaTextField
|
|
29
|
-
type="text"
|
|
30
|
-
name="email"
|
|
31
|
-
inputLabel="New Email"
|
|
32
|
-
placeholder="Enter your new email"
|
|
33
|
-
rules={{
|
|
34
|
-
required: "Email is required"
|
|
35
|
-
}}
|
|
36
|
-
helperText={errors.email?.message}
|
|
37
|
-
/>
|
|
38
|
-
<HawaTextField
|
|
39
|
-
type="password"
|
|
40
|
-
name="password"
|
|
41
|
-
inputLabel="New password"
|
|
42
|
-
placeholder="Enter your new password"
|
|
43
|
-
rules={{
|
|
44
|
-
required: "Email is required"
|
|
45
|
-
}}
|
|
46
|
-
helperText={errors.password?.message}
|
|
47
|
-
/>
|
|
48
|
-
<HawaTextField
|
|
49
|
-
type="password"
|
|
50
|
-
name="confirmPassword"
|
|
51
|
-
inputLabel="Confirm new password"
|
|
52
|
-
placeholder="Confirm new password"
|
|
53
|
-
rules={{
|
|
54
|
-
required: "Email is required"
|
|
55
|
-
}}
|
|
56
|
-
helperText={errors.confirmPassword?.message}
|
|
57
|
-
/>
|
|
58
|
-
|
|
59
|
-
<ActionButton fullWidth last text="Update Account" />
|
|
60
|
-
</form>
|
|
61
|
-
</FormProvider>
|
|
62
|
-
</Box>
|
|
63
|
-
</Box>
|
|
64
|
-
);
|
|
65
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
NewPasswordForm,
|
|
4
|
-
ResetPasswordForm,
|
|
5
|
-
SignInForm,
|
|
6
|
-
SignUpForm
|
|
7
|
-
} from "../../blocks/AuthForms";
|
|
8
|
-
import { HawaProvider } from "../../themes/HawaProvider";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: "Blocks/AuthBlocks",
|
|
12
|
-
component: [SignInForm, SignUpForm, NewPasswordForm, NewPasswordForm],
|
|
13
|
-
argTypes: {
|
|
14
|
-
theme: {
|
|
15
|
-
options: ["primary", "secondary", "default"],
|
|
16
|
-
control: { type: "select" }
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const SignInTemplate = (args) => {
|
|
22
|
-
return (
|
|
23
|
-
<HawaProvider themeName={args.theme}>
|
|
24
|
-
<SignInForm
|
|
25
|
-
{...args}
|
|
26
|
-
error={args.showError}
|
|
27
|
-
handleSignIn={(e) => console.log("singing in via email", e)}
|
|
28
|
-
viaGoogle={args.viaGoogle}
|
|
29
|
-
googleButtonLabel={"Sign in with Google"}
|
|
30
|
-
handleGoogleSignIn={() => console.log("signing in via google")}
|
|
31
|
-
viaGithub={args.viaGithub}
|
|
32
|
-
githubButtonLabel={"Sign in with Github"}
|
|
33
|
-
handleGithubSignIn={() => console.log("signing in via github")}
|
|
34
|
-
viaTwitter={args.viaTwitter}
|
|
35
|
-
twitterButtonLabel={"Sign in with Twitter"}
|
|
36
|
-
handleTwitterSignIn={() => console.log("signing in via Twitter")}
|
|
37
|
-
/>
|
|
38
|
-
</HawaProvider>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export const SignIn = SignInTemplate.bind({});
|
|
43
|
-
SignIn.args = {
|
|
44
|
-
viaGoogle: true,
|
|
45
|
-
viaGithub: true,
|
|
46
|
-
viaTwitter: true,
|
|
47
|
-
showError: false,
|
|
48
|
-
theme: "primary"
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const SignUpTemplate = (args) => {
|
|
52
|
-
return (
|
|
53
|
-
<HawaProvider themeName={args.theme}>
|
|
54
|
-
<SignUpForm
|
|
55
|
-
{...args}
|
|
56
|
-
error={args.showError}
|
|
57
|
-
handleSignUp={() => console.log("singing up via email")}
|
|
58
|
-
viaGoogle={args.viaGoogle}
|
|
59
|
-
googleButtonLabel={"Sign up with Google"}
|
|
60
|
-
handleGoogleSignUp={() => console.log("signing up via google")}
|
|
61
|
-
viaGithub={args.viaGithub}
|
|
62
|
-
githubButtonLabel={"Sign up with Github"}
|
|
63
|
-
handleGithubSignUp={() => console.log("signing up via github")}
|
|
64
|
-
viaTwitter={args.viaTwitter}
|
|
65
|
-
twitterButtonLabel={"Sign up with Twitter"}
|
|
66
|
-
handleTwitterSignUp={() => console.log("signing up via Twitter")}
|
|
67
|
-
/>
|
|
68
|
-
</HawaProvider>
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
export const SignUp = SignUpTemplate.bind({});
|
|
72
|
-
SignUp.args = {
|
|
73
|
-
viaGoogle: true,
|
|
74
|
-
viaGithub: true,
|
|
75
|
-
viaTwitter: true,
|
|
76
|
-
showError: false,
|
|
77
|
-
theme: "primary"
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
const ResetPasswordTemplate = (args) => {
|
|
81
|
-
return (
|
|
82
|
-
<HawaProvider themeName={args.theme}>
|
|
83
|
-
<ResetPasswordForm error={args.showError} theme={args.theme} {...args} />
|
|
84
|
-
</HawaProvider>
|
|
85
|
-
);
|
|
86
|
-
};
|
|
87
|
-
export const ResetPassword = ResetPasswordTemplate.bind({});
|
|
88
|
-
ResetPassword.args = {
|
|
89
|
-
theme: "primary",
|
|
90
|
-
showError: false,
|
|
91
|
-
sent: false
|
|
92
|
-
};
|
|
93
|
-
const NewPasswordTemplate = (args) => {
|
|
94
|
-
return (
|
|
95
|
-
<HawaProvider themeName={args.theme}>
|
|
96
|
-
<NewPasswordForm error={args.showError} theme={args.theme} {...args} />
|
|
97
|
-
</HawaProvider>
|
|
98
|
-
);
|
|
99
|
-
};
|
|
100
|
-
export const NewPassword = NewPasswordTemplate.bind({});
|
|
101
|
-
NewPassword.args = {
|
|
102
|
-
theme: "primary",
|
|
103
|
-
showError: false,
|
|
104
|
-
passwordChanged: false
|
|
105
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
SelectPayment,
|
|
4
|
-
CreditCardForm,
|
|
5
|
-
ChargeWalletForm,
|
|
6
|
-
PayWithWallet
|
|
7
|
-
} from "../../blocks/Payment";
|
|
8
|
-
import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: "Blocks/PaymentBlocks",
|
|
12
|
-
component: [SelectPayment, CreditCardForm],
|
|
13
|
-
argTypes: {
|
|
14
|
-
theme: {
|
|
15
|
-
options: ["primary", "secondary", "default"],
|
|
16
|
-
control: { type: "select" }
|
|
17
|
-
},
|
|
18
|
-
viaWallet: { control: "boolean" },
|
|
19
|
-
viaApplePay: { control: "boolean" },
|
|
20
|
-
viaGooglePay: { control: "boolean" },
|
|
21
|
-
viaSTCPay: { control: "boolean" },
|
|
22
|
-
viaCreditCard: { control: "boolean" },
|
|
23
|
-
viaPayPal: { control: "boolean" }
|
|
24
|
-
},
|
|
25
|
-
args: {
|
|
26
|
-
theme: "primary",
|
|
27
|
-
viaWallet: true,
|
|
28
|
-
viaMada: true,
|
|
29
|
-
viaApplePay: true,
|
|
30
|
-
viaGooglePay: true,
|
|
31
|
-
viaSTCPay: true,
|
|
32
|
-
viaCreditCard: true,
|
|
33
|
-
viaPayPal: true
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const PaymentSelection = (args) => {
|
|
38
|
-
return (
|
|
39
|
-
<HawaProvider themeName={args.theme}>
|
|
40
|
-
<SelectPayment
|
|
41
|
-
{...args}
|
|
42
|
-
walletLabel="Wallet Balance"
|
|
43
|
-
handleWallet={() => console.log("paying via wallet")}
|
|
44
|
-
visaMasterLabel="Credit Card"
|
|
45
|
-
handleCreditCard={() => console.log("paying via Credit Card")}
|
|
46
|
-
madaLabel="Mada"
|
|
47
|
-
handleMada={() => console.log("paying via Mada")}
|
|
48
|
-
paypalLabel="PayPal"
|
|
49
|
-
handlePayPal={() => console.log("paying via PayPal")}
|
|
50
|
-
applePayLabel="Apple Pay"
|
|
51
|
-
handleApplePay={() => console.log("paying via Apple Pay")}
|
|
52
|
-
googlePayLabel="Google Pay"
|
|
53
|
-
handleGooglePay={() => console.log("paying via Google Pay")}
|
|
54
|
-
stcPayLabel="STC Pay"
|
|
55
|
-
handleSTCPay={() => console.log("paying via STC Pay")}
|
|
56
|
-
/>
|
|
57
|
-
</HawaProvider>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const PayViaWallet = (args) => {
|
|
62
|
-
return (
|
|
63
|
-
<HawaProvider theme={{ ...defaultTheme }}>
|
|
64
|
-
<PayWithWallet theme={args.theme} />
|
|
65
|
-
</HawaProvider>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
export const PayViaCreditCard = (args) => {
|
|
69
|
-
return (
|
|
70
|
-
<HawaProvider theme={{ ...defaultTheme }}>
|
|
71
|
-
<CreditCardForm />
|
|
72
|
-
</HawaProvider>
|
|
73
|
-
);
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const ChargeWallet = (args) => {
|
|
77
|
-
return (
|
|
78
|
-
<HawaProvider themeName={args.theme}>
|
|
79
|
-
<ChargeWalletForm currency="SAR" />
|
|
80
|
-
</HawaProvider>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
ChargeWallet.args = {
|
|
85
|
-
theme: "secondary"
|
|
86
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { UserProfile } from "../../blocks/Account";
|
|
3
|
-
import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: "Blocks/UserBlocks",
|
|
7
|
-
component: UserProfile,
|
|
8
|
-
argTypes: {
|
|
9
|
-
theme: {
|
|
10
|
-
options: ["primary", "secondary", "default"],
|
|
11
|
-
control: { type: "select" }
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const theme = {
|
|
17
|
-
...defaultTheme,
|
|
18
|
-
paddings: 20
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const UserAccount = (args) => {
|
|
22
|
-
return (
|
|
23
|
-
<HawaProvider theme={{ ...defaultTheme, ...theme }}>
|
|
24
|
-
<UserProfile {...args} />
|
|
25
|
-
</HawaProvider>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
UserAccount.args = {
|
|
30
|
-
theme: "primary"
|
|
31
|
-
};
|
|
32
|
-
export const UserSettings = (args) => {
|
|
33
|
-
return (
|
|
34
|
-
<HawaProvider theme={{ ...defaultTheme, ...theme }}>
|
|
35
|
-
<UserProfile {...args} />
|
|
36
|
-
</HawaProvider>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
UserSettings.args = {
|
|
40
|
-
theme: "primary"
|
|
41
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { HawaProvider } from "../themes/HawaProvider";
|
|
3
|
-
|
|
4
|
-
const Template = (args) => {
|
|
5
|
-
const theme = {
|
|
6
|
-
borderRadius: 20,
|
|
7
|
-
primaryColor: "green",
|
|
8
|
-
secondaryColor: "red",
|
|
9
|
-
// margins: "10px",
|
|
10
|
-
paddings: 10
|
|
11
|
-
};
|
|
12
|
-
return (
|
|
13
|
-
<HawaProvider theme={theme}>
|
|
14
|
-
<div>test</div>
|
|
15
|
-
</HawaProvider>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default {
|
|
20
|
-
title: "Globals/HawaProvider",
|
|
21
|
-
component: HawaProvider
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"./node_modules/@storybook/components/dist/esm/ScrollArea/GlobalScrollAreaStyles.js":function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"getScrollAreaStyles",(function(){return getScrollAreaStyles}));__webpack_require__("./node_modules/core-js/modules/es.array.slice.js"),__webpack_require__("./node_modules/core-js/modules/es.object.freeze.js");var _templateObject,react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),react__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__),_storybook_theming__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@emotion/core/dist/core.browser.esm.js");var hsResizeObserverDummyAnimation=Object(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.d)(_templateObject||(_templateObject=function _taggedTemplateLiteral(strings,raw){return raw||(raw=strings.slice(0)),Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}))}(["0%{z-index:0}to{z-index:-1}"]))),getScrollAreaStyles=function getScrollAreaStyles(theme){return{"html.os-html, html.os-html>.os-host":{display:"block",overflow:"hidden",boxSizing:"border-box",height:"100%!important",width:"100%!important",minWidth:"100%!important",minHeight:"100%!important",margin:"0!important",position:"absolute!important"},"html.os-html>.os-host>.os-padding":{position:"absolute"},"body.os-dragging, body.os-dragging *":{cursor:"default"},".os-host, .os-host-textarea":{position:"relative",overflow:"visible!important",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignContent:"flex-start",alignItems:"flex-start"},".os-host-flexbox":{overflow:"hidden!important",display:"flex"},".os-host-flexbox>.os-size-auto-observer":{height:"inherit!important"},".os-host-flexbox>.os-content-glue":{flexGrow:1,flexShrink:0},".os-host-flexbox>.os-size-auto-observer, .os-host-flexbox>.os-content-glue":{minHeight:0,minWidth:0,flexGrow:0,flexShrink:1,flexBasis:"auto"},"#os-dummy-scrollbar-size":{position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:500,width:500},"#os-dummy-scrollbar-size>div":{width:"200%",height:"200%",margin:10},"#os-dummy-scrollbar-size, .os-viewport":{},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size, .os-viewport-native-scrollbars-invisible.os-viewport":{scrollbarWidth:"none!important"},".os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar, .os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner, .os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner":{display:"none!important",width:"0!important",height:"0!important",visibility:"hidden!important",background:"0 0!important"},".os-content-glue":{boxSizing:"inherit",maxHeight:"100%",maxWidth:"100%",width:"100%",pointerEvents:"none"},".os-padding":{boxSizing:"inherit",direction:"inherit",position:"absolute",overflow:"visible",padding:0,margin:0,left:0,top:0,bottom:0,right:0,width:"auto!important",height:"auto!important",zIndex:1},".os-host-overflow>.os-padding":{overflow:"hidden"},".os-viewport":{direction:"inherit!important",boxSizing:"inherit!important",resize:"none!important",outline:"0!important",position:"absolute",overflow:"hidden",top:0,left:0,bottom:0,right:0,padding:0,margin:0},".os-content-arrange":{position:"absolute",zIndex:-1,minHeight:1,minWidth:1,pointerEvents:"none"},".os-content":{direction:"inherit",boxSizing:"border-box!important",position:"relative",display:"block",height:"100%",width:"100%",visibility:"visible"},".os-content:before, .os-content:after":{content:"''",display:"table",width:0,height:0,lineHeight:0,fontSize:0},".os-content>.os-textarea":{boxSizing:"border-box!important",direction:"inherit!important",background:"0 0!important",outline:"0 transparent!important",overflow:"hidden!important",position:"absolute!important",display:"block!important",top:"0!important",left:"0!important",margin:"0!important",borderRadius:"0!important",float:"none!important",filter:"none!important",border:"0!important",resize:"none!important",transform:"none!important",maxWidth:"none!important",maxHeight:"none!important",boxShadow:"none!important",perspective:"none!important",opacity:"1!important",zIndex:"1!important",clip:"auto!important",verticalAlign:"baseline!important",padding:0},".os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea":{right:"0!important"},".os-content>.os-textarea-cover":{zIndex:-1,pointerEvents:"none"},".os-content>.os-textarea[wrap=off]":{whiteSpace:"pre!important",margin:"0!important"},".os-text-inherit":{fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",fontStyle:"inherit",fontVariant:"inherit",textTransform:"inherit",textDecoration:"inherit",textIndent:"inherit",textAlign:"inherit",textShadow:"inherit",textOverflow:"inherit",letterSpacing:"inherit",wordSpacing:"inherit",lineHeight:"inherit",unicodeBidi:"inherit",direction:"inherit",color:"inherit",cursor:"text"},".os-resize-observer, .os-resize-observer-host":{boxSizing:"inherit",display:"block",opacity:0,position:"absolute",top:0,left:0,height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none",zIndex:-1},".os-resize-observer-host":{padding:"inherit",border:"inherit",borderColor:"transparent",borderStyle:"solid",boxSizing:"border-box"},".os-resize-observer-host:after":{content:"''"},".os-resize-observer-host>.os-resize-observer, .os-resize-observer-host:after":{height:"200%",width:"200%",padding:"inherit",border:"inherit",margin:0,display:"block",boxSizing:"content-box"},".os-resize-observer.observed, object.os-resize-observer":{boxSizing:"border-box!important"},".os-size-auto-observer":{boxSizing:"inherit!important",height:"100%",width:"inherit",maxWidth:1,position:"relative",float:"left",maxHeight:1,overflow:"hidden",zIndex:-1,padding:0,margin:0,pointerEvents:"none",flexGrow:"inherit",flexShrink:0,flexBasis:0},".os-size-auto-observer>.os-resize-observer":{width:"1000%",height:"1000%",minHeight:1,minWidth:1},".os-resize-observer-item":{position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden",zIndex:-1,opacity:0,direction:"ltr!important",flex:"none!important"},".os-resize-observer-item-final":{position:"absolute",left:0,top:0,transition:"none!important",flex:"none!important"},".os-resize-observer":{animationDuration:".001s",animationName:"".concat(hsResizeObserverDummyAnimation)},".os-host-transition>.os-scrollbar, .os-host-transition>.os-scrollbar-corner":{transition:"opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s"},"html.os-html>.os-host>.os-scrollbar":{position:"absolute",zIndex:999999},".os-scrollbar, .os-scrollbar-corner":{position:"absolute",opacity:1,zIndex:1},".os-scrollbar-corner":{bottom:0,right:0,height:10,width:10,backgroundColor:"transparent"},".os-scrollbar":{pointerEvents:"none",padding:2,boxSizing:"border-box",background:0},".os-scrollbar-track":{pointerEvents:"auto",position:"relative",height:"100%",width:"100%",padding:"0!important",border:"0!important"},".os-scrollbar-handle":{pointerEvents:"auto",position:"absolute",width:"100%",height:"100%"},".os-scrollbar-handle-off, .os-scrollbar-track-off":{pointerEvents:"none"},".os-scrollbar.os-scrollbar-unusable, .os-scrollbar.os-scrollbar-unusable *":{pointerEvents:"none!important"},".os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0!important"},".os-scrollbar-horizontal":{bottom:0,left:0,right:10,height:10},".os-scrollbar-vertical":{top:0,right:0,bottom:10,width:10},".os-host-rtl>.os-scrollbar-horizontal":{right:0},".os-host-rtl>.os-scrollbar-vertical":{right:"auto",left:0},".os-host-rtl>.os-scrollbar-corner":{right:"auto",left:0},".os-scrollbar-auto-hidden, .os-padding+.os-scrollbar-corner, .os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner, .os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal, .os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner, .os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner, .os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner, .os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner":{opacity:0,visibility:"hidden",pointerEvents:"none"},".os-scrollbar-corner-resize-both":{cursor:"nwse-resize"},".os-host-rtl>.os-scrollbar-corner-resize-both":{cursor:"nesw-resize"},".os-scrollbar-corner-resize-horizontal":{cursor:"ew-resize"},".os-scrollbar-corner-resize-vertical":{cursor:"ns-resize"},".os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize":{cursor:"default"},".os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical":{top:0,bottom:0},".os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal, .os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal":{right:0,left:0},".os-scrollbar:hover, .os-scrollbar-corner.os-scrollbar-corner-resize":{opacity:"1!important",visibility:"visible!important"},".os-scrollbar-corner.os-scrollbar-corner-resize":{backgroundImage:"linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.4) 100%)",backgroundRepeat:"no-repeat",backgroundPosition:"100% 100%",pointerEvents:"auto!important"},".os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize":{transform:"scale(-1,1)"},".os-host-overflow":{overflow:"hidden!important"},".os-theme-dark.os-host-rtl>.os-scrollbar-horizontal":{left:10,right:0},".os-scrollbar.os-scrollbar-unusable":{background:0},".os-scrollbar>.os-scrollbar-track":{background:0},".os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle":{minWidth:30},".os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle":{minHeight:30},".os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{transition:"background-color .3s"},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle, .os-scrollbar>.os-scrollbar-track":{borderRadius:10},".os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle":{background:theme.color.mediumdark,opacity:.5},".os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle":{opacity:.6},".os-scrollbar-horizontal .os-scrollbar-handle:before, .os-scrollbar-vertical .os-scrollbar-handle:before":{content:"''",position:"absolute",left:0,right:0,top:0,bottom:0,display:"block"},".os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before":{display:"none"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:-6,bottom:-2},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:-6,right:-2},".os-host-rtl.os-scrollbar-vertical .os-scrollbar-handle:before":{right:-6,left:-2}}},GlobalScrollAreaStyles=function GlobalScrollAreaStyles(){return react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(_storybook_theming__WEBPACK_IMPORTED_MODULE_3__.a,{styles:getScrollAreaStyles})};GlobalScrollAreaStyles.displayName="GlobalScrollAreaStyles",__webpack_exports__.default=GlobalScrollAreaStyles}}]);
|