@sikka/hawa 0.0.5 → 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.
Files changed (69) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -5
  4. package/src/blocks/AuthForms/NewPasswordForm.js +80 -14
  5. package/src/blocks/AuthForms/ResetPasswordForm.js +46 -3
  6. package/src/blocks/AuthForms/SignInForm.js +60 -13
  7. package/src/blocks/AuthForms/SignUpForm.js +70 -18
  8. package/src/blocks/Payment/ChargeWalletForm.js +32 -0
  9. package/src/blocks/Payment/PayWithWallet.js +35 -0
  10. package/src/blocks/Payment/SelectPayment.js +15 -16
  11. package/src/blocks/Payment/index.js +2 -0
  12. package/src/layout/Box.js +0 -1
  13. package/src/stories/BlocksStories/AuthForm.stories.js +11 -5
  14. package/src/stories/BlocksStories/PaymentForm.stories.js +12 -41
  15. package/src/stories/Introduction.stories.js +132 -110
  16. package/src/stories/{ActionButton.stories.js → UIStories/ActionButton.stories.js} +2 -2
  17. package/src/stories/{AdaptiveButton.stories.js → UIStories/AdaptiveButton.stories.js} +2 -2
  18. package/src/stories/UIStories/Alert.stories.js +55 -0
  19. package/src/stories/{CheckBox.stories.js → UIStories/CheckBox.stories.js} +3 -4
  20. package/src/stories/UIStories/InputLabel.stories.js +13 -0
  21. package/src/stories/{RadioSelector.stories.js → UIStories/RadioSelector.stories.js} +5 -6
  22. package/src/stories/{TextField.stories.js → UIStories/TextField.stories.js} +4 -5
  23. package/src/themes/HawaProvider.js +54 -2
  24. package/src/ui/ApplePayButton.js +0 -1
  25. package/src/ui/GithubButton.js +0 -1
  26. package/src/ui/GoogleButton.js +0 -1
  27. package/src/ui/GooglePayButton.js +1 -2
  28. package/src/ui/HawaAlert.js +37 -0
  29. package/src/ui/HawaButton.js +48 -0
  30. package/src/ui/{Checkbox.js → HawaCheckbox.js} +1 -1
  31. package/src/ui/HawaInputLabel.js +0 -1
  32. package/src/ui/HawaLogoButton.js +48 -0
  33. package/src/ui/{RadioSelector.js → HawaRadio.js} +1 -1
  34. package/src/ui/HawaTextField.js +52 -57
  35. package/src/ui/HawaTypography.js +29 -0
  36. package/src/ui/MadaButton.js +0 -1
  37. package/src/ui/PayPalButton.js +1 -2
  38. package/src/ui/STCPayButton.js +1 -2
  39. package/src/ui/TwitterButton.js +0 -1
  40. package/src/ui/VisaMasterButton.js +0 -1
  41. package/src/ui/WalletButton.js +4 -71
  42. package/src/ui/index.js +8 -5
  43. package/storybook-static/{1.95be85dd.iframe.bundle.js → 0.0d994c92.iframe.bundle.js} +3 -3
  44. package/storybook-static/{1.95be85dd.iframe.bundle.js.LICENSE.txt → 0.0d994c92.iframe.bundle.js.LICENSE.txt} +0 -0
  45. package/storybook-static/0.0d994c92.iframe.bundle.js.map +1 -0
  46. package/storybook-static/1.aabc3f3a.iframe.bundle.js +1 -0
  47. package/storybook-static/{3.d72f7fac.iframe.bundle.js → 2.430bf1e3.iframe.bundle.js} +1 -1
  48. package/storybook-static/{7.ffb0d84b.iframe.bundle.js → 6.704d1e8d.iframe.bundle.js} +1 -1
  49. package/storybook-static/{8.68cd1217.iframe.bundle.js → 7.9ce807e3.iframe.bundle.js} +3 -3
  50. package/storybook-static/{8.68cd1217.iframe.bundle.js.LICENSE.txt → 7.9ce807e3.iframe.bundle.js.LICENSE.txt} +0 -0
  51. package/storybook-static/7.9ce807e3.iframe.bundle.js.map +1 -0
  52. package/storybook-static/{9.488e3969.iframe.bundle.js → 8.c4cb6081.iframe.bundle.js} +1 -1
  53. package/storybook-static/iframe.html +1 -1
  54. package/storybook-static/main.e55ce615.iframe.bundle.js +1 -0
  55. package/storybook-static/runtime~main.cfefe972.iframe.bundle.js +1 -0
  56. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js +76 -0
  57. package/storybook-static/{vendors~main.d75dc38b.iframe.bundle.js.LICENSE.txt → vendors~main.30a2c5d7.iframe.bundle.js.LICENSE.txt} +15 -0
  58. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js.map +1 -0
  59. package/src/stories/Alert.stories.js +0 -41
  60. package/src/stories/InputLabel.stories.js +0 -92
  61. package/src/ui/StyledAlert.js +0 -30
  62. package/storybook-static/0.54f7e52e.iframe.bundle.js +0 -1
  63. package/storybook-static/1.95be85dd.iframe.bundle.js.map +0 -1
  64. package/storybook-static/2.eb601582.iframe.bundle.js +0 -1
  65. package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
  66. package/storybook-static/main.044648aa.iframe.bundle.js +0 -1
  67. package/storybook-static/runtime~main.3e280e98.iframe.bundle.js +0 -1
  68. package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js +0 -76
  69. package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js.map +0 -1
@@ -5,31 +5,83 @@ import {
5
5
  ActionButton,
6
6
  GoogleButton,
7
7
  GithubButton,
8
- TwitterButton
8
+ TwitterButton,
9
+ HawaAlert
9
10
  } from "../../ui";
10
11
  import PropTypes from "prop-types";
12
+ import { FormProvider, useForm } from "react-hook-form";
11
13
 
12
14
  export const SignUpForm = (props) => {
15
+ const methods = useForm();
16
+ const {
17
+ formState: { errors },
18
+ handleSubmit,
19
+ getValues,
20
+ register,
21
+ watch,
22
+ reset,
23
+ setValue
24
+ } = methods;
25
+
13
26
  return (
14
27
  <Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
15
28
  <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
- />
29
+ {props.error && (
30
+ <HawaAlert
31
+ themeType={props.theme}
32
+ text="This is a sign in alert"
33
+ severity="error"
34
+ />
35
+ )}
36
+ <FormProvider {...methods}>
37
+ <form onSubmit={handleSubmit(props.handleSignUp)}>
38
+ <HawaTextField
39
+ themeType={props.theme}
40
+ type="text"
41
+ inputLabel="Email"
42
+ placeholder="Email"
43
+ name="email"
44
+ rules={{
45
+ required: "Email is required",
46
+ pattern: {
47
+ value:
48
+ /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
49
+ message: "Invalid email address"
50
+ }
51
+ }}
52
+ helperText={errors.email?.message}
53
+ />
54
+ <HawaTextField
55
+ name="password"
56
+ placeholder="Password"
57
+ themeType={props.theme}
58
+ type="password"
59
+ inputLabel="Password"
60
+ rules={{
61
+ required: "Password is rquired"
62
+ }}
63
+ helperText={errors.password?.message}
64
+ />
65
+ <HawaTextField
66
+ name="confirmPassword"
67
+ placeholder="Password"
68
+ themeType={props.theme}
69
+ type="password"
70
+ inputLabel="Confirm Password"
71
+ rules={{
72
+ required: "Password is rquired"
73
+ }}
74
+ helperText={errors.confirmPassword?.message}
75
+ />
76
+ <ActionButton
77
+ fullWidth
78
+ type="submit"
79
+ text="Sign Up"
80
+ last
81
+ themeType={props.theme}
82
+ />
83
+ </form>
84
+ </FormProvider>
33
85
  </Box>
34
86
  {props.viaGoogle && (
35
87
  <GoogleButton
@@ -0,0 +1,32 @@
1
+ import React, { useState } from "react";
2
+ import { HawaTextField, ActionButton, HawaTypography } from "../../ui";
3
+ import { Box } from "../../layout";
4
+
5
+ export const ChargeWalletForm = (props) => {
6
+ const [walletAmount, setWalletAmount] = useState(0);
7
+ return (
8
+ <Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
9
+ <Box themeType={props.theme} noMargin>
10
+ <HawaTypography variant="h2" align="center" themeType={props.theme}>
11
+ {walletAmount.toLocaleString("en")}{" "}
12
+ <span style={{ fontSize: 20, letterSpacing: 1 }}>
13
+ {props.currency}
14
+ </span>
15
+ </HawaTypography>
16
+ <HawaTypography themeType={props.theme}></HawaTypography>
17
+ <HawaTextField
18
+ themeType={props.theme}
19
+ type="number"
20
+ inputLabel="Amount" //move this to props
21
+ onChange={(e) => setWalletAmount(e.target.value)}
22
+ />
23
+ <ActionButton
24
+ last
25
+ text={"Charge Wallet"} //move this to props
26
+ themeType={props.theme}
27
+ onClick={props.handleSignIn}
28
+ />
29
+ </Box>
30
+ </Box>
31
+ );
32
+ };
@@ -0,0 +1,35 @@
1
+ import React from "react";
2
+ import {
3
+ HawaTextField,
4
+ ActionButton,
5
+ GoogleButton,
6
+ TwitterButton,
7
+ GithubButton,
8
+ VisaMasterButton,
9
+ MadaButton,
10
+ STCPayButton,
11
+ PayPalButton,
12
+ GooglePayButton,
13
+ ApplePayButton,
14
+ WalletButton
15
+ } from "../../ui";
16
+ import { Box } from "../../layout";
17
+ import PropTypes from "prop-types";
18
+
19
+ export const PayWithWallet = (props) => {
20
+ return (
21
+ <Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
22
+ <Box themeType={props.theme} noMargin>
23
+ <div>Wallet Balance</div>
24
+ {props.viaWallet && (
25
+ <WalletButton
26
+ themeType={props.theme}
27
+ outlined
28
+ buttonText={props.walletLabel}
29
+ handleClick={props.handleWallet}
30
+ />
31
+ )}
32
+ </Box>
33
+ </Box>
34
+ );
35
+ };
@@ -1,46 +1,45 @@
1
1
  import React from "react";
2
+ import PropTypes from "prop-types";
3
+ import { Box } from "../../layout";
2
4
  import {
3
5
  HawaTextField,
4
- ActionButton,
5
- GoogleButton,
6
- TwitterButton,
7
- GithubButton,
8
6
  VisaMasterButton,
9
7
  MadaButton,
10
8
  STCPayButton,
11
9
  PayPalButton,
12
10
  GooglePayButton,
13
11
  ApplePayButton,
14
- WalletButton
12
+ WalletButton,
13
+ HawaTypography
15
14
  } from "../../ui";
16
- import { Box } from "../../layout";
17
- import PropTypes from "prop-types";
18
15
 
19
16
  export const SelectPayment = (props) => {
20
17
  return (
21
18
  <Box themeType={props.theme} maxWidth={400} noColor noMargin noPadding>
22
19
  <Box themeType={props.theme} noMargin>
23
- <div>Choose Payment</div>
20
+ <HawaTypography themeType={props.theme} align="center">
21
+ Choose Payment
22
+ </HawaTypography>
24
23
  {props.viaWallet && (
25
24
  <WalletButton
26
- themeType={props.theme}
27
25
  outlined
26
+ themeType={props.theme}
28
27
  buttonText={props.walletLabel}
29
- handleClick={props.handleWallet}
28
+ onClick={props.handleWallet}
30
29
  />
31
30
  )}
32
31
  {props.viaCreditCard && (
33
32
  <VisaMasterButton
34
- themeType={props.theme}
35
33
  outlined
34
+ themeType={props.theme}
36
35
  buttonText={props.visaMasterLabel}
37
36
  handleClick={props.handleCreditCard}
38
37
  />
39
38
  )}
40
39
  {props.viaMada && (
41
40
  <MadaButton
42
- themeType={props.theme}
43
41
  outlined
42
+ themeType={props.theme}
44
43
  buttonText={props.madaLabel}
45
44
  handleClick={props.handleMada}
46
45
  />
@@ -48,24 +47,24 @@ export const SelectPayment = (props) => {
48
47
 
49
48
  {props.viaSTCPay && (
50
49
  <STCPayButton
51
- themeType={props.theme}
52
50
  outlined
51
+ themeType={props.theme}
53
52
  buttonText={props.stcPayLabel}
54
53
  handleClick={props.handleSTCPay}
55
54
  />
56
55
  )}
57
56
  {props.viaPayPal && (
58
57
  <PayPalButton
59
- themeType={props.theme}
60
58
  outlined
59
+ themeType={props.theme}
61
60
  buttonText={props.paypalLabel}
62
61
  handleClick={props.handlePayPal}
63
62
  />
64
63
  )}
65
64
  {props.viaGooglePay && (
66
65
  <GooglePayButton
67
- themeType={props.theme}
68
66
  outlined
67
+ themeType={props.theme}
69
68
  buttonText={props.googlePayLabel}
70
69
  handleClick={props.handleGooglePay}
71
70
  />
@@ -73,8 +72,8 @@ export const SelectPayment = (props) => {
73
72
 
74
73
  {props.viaApplePay && (
75
74
  <ApplePayButton
76
- themeType={props.theme}
77
75
  outlined
76
+ themeType={props.theme}
78
77
  buttonText={props.applePayLabel}
79
78
  handleClick={props.handleApplePay}
80
79
  />
@@ -14,3 +14,5 @@
14
14
 
15
15
  export * from "./SelectPayment";
16
16
  export * from "./CreditCardForm";
17
+ export * from "./ChargeWalletForm";
18
+ export * from "./PayWithWallet";
package/src/layout/Box.js CHANGED
@@ -5,7 +5,6 @@ export const Box = (props) => {
5
5
  const theme = useContext(ThemeProvider);
6
6
  let boxStyle = {};
7
7
 
8
- console.log(Object.keys(theme.actionButton));
9
8
  let currentTheme = Object.keys(theme.actionButton).find(
10
9
  (themeName) => themeName.toLowerCase() === props.themeType?.toLowerCase()
11
10
  );
@@ -23,8 +23,9 @@ const SignInTemplate = (args) => {
23
23
  <HawaProvider theme={{ ...defaultTheme }}>
24
24
  <SignInForm
25
25
  {...args}
26
+ error={args.showError}
26
27
  theme={args.theme}
27
- handleSignIn={() => console.log("singing in via email")}
28
+ handleSignIn={(e) => console.log("singing in via email", e)}
28
29
  viaGoogle={args.viaGoogle}
29
30
  googleButtonLabel={"Sign in with Google"}
30
31
  handleGoogleSignIn={() => console.log("signing in via google")}
@@ -44,6 +45,7 @@ SignIn.args = {
44
45
  viaGoogle: true,
45
46
  viaGithub: true,
46
47
  viaTwitter: true,
48
+ showError: false,
47
49
  theme: "primary"
48
50
  };
49
51
 
@@ -53,6 +55,7 @@ const SignUpTemplate = (args) => {
53
55
  <SignUpForm
54
56
  {...args}
55
57
  theme={args.theme}
58
+ error={args.showError}
56
59
  handleSignUp={() => console.log("singing up via email")}
57
60
  viaGoogle={args.viaGoogle}
58
61
  googleButtonLabel={"Sign up with Google"}
@@ -72,28 +75,31 @@ SignUp.args = {
72
75
  viaGoogle: true,
73
76
  viaGithub: true,
74
77
  viaTwitter: true,
78
+ showError: false,
75
79
  theme: "primary"
76
80
  };
77
81
 
78
82
  const ResetPasswordTemplate = (args) => {
79
83
  return (
80
84
  <HawaProvider theme={{ ...defaultTheme }}>
81
- <ResetPasswordForm theme={args.theme} {...args} />
85
+ <ResetPasswordForm error={args.showError} theme={args.theme} {...args} />
82
86
  </HawaProvider>
83
87
  );
84
88
  };
85
89
  export const ResetPassword = ResetPasswordTemplate.bind({});
86
90
  ResetPassword.args = {
87
- theme: "primary"
91
+ theme: "primary",
92
+ showError: false
88
93
  };
89
94
  const NewPasswordTemplate = (args) => {
90
95
  return (
91
96
  <HawaProvider theme={{ ...defaultTheme }}>
92
- <NewPasswordForm theme={args.theme} {...args} />
97
+ <NewPasswordForm error={args.showError} theme={args.theme} {...args} />
93
98
  </HawaProvider>
94
99
  );
95
100
  };
96
101
  export const NewPassword = NewPasswordTemplate.bind({});
97
102
  NewPassword.args = {
98
- theme: "primary"
103
+ theme: "primary",
104
+ showError: false
99
105
  };
@@ -1,5 +1,10 @@
1
1
  import React from "react";
2
- import { SelectPayment, CreditCardForm } from "../../blocks/Payment";
2
+ import {
3
+ SelectPayment,
4
+ CreditCardForm,
5
+ ChargeWalletForm,
6
+ PayWithWallet
7
+ } from "../../blocks/Payment";
3
8
  import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
4
9
 
5
10
  export default {
@@ -56,24 +61,7 @@ export const PaymentSelection = (args) => {
56
61
  export const PayViaWallet = (args) => {
57
62
  return (
58
63
  <HawaProvider theme={{ ...defaultTheme }}>
59
- <SelectPayment
60
- {...args}
61
- theme={args.theme}
62
- walletLabel="Wallet Balance"
63
- handleWallet={() => console.log("paying via wallet")}
64
- visaMasterLabel="Credit Card"
65
- handleCreditCard={() => console.log("paying via Credit Card")}
66
- madaLabel="Mada"
67
- handleMada={() => console.log("paying via Mada")}
68
- paypalLabel="PayPal"
69
- handlePayPal={() => console.log("paying via PayPal")}
70
- applePayLabel="Apple Pay"
71
- handleApplePay={() => console.log("paying via Apple Pay")}
72
- googlePayLabel="Google Pay"
73
- handleGooglePay={() => console.log("paying via Google Pay")}
74
- stcPayLabel="STC Pay"
75
- handleSTCPay={() => console.log("paying via STC Pay")}
76
- />
64
+ <PayWithWallet theme={args.theme} />
77
65
  </HawaProvider>
78
66
  );
79
67
  };
@@ -86,26 +74,9 @@ export const PayViaCreditCard = (args) => {
86
74
  };
87
75
 
88
76
  export const ChargeWallet = (args) => {
89
- return (
90
- <HawaProvider theme={{ ...defaultTheme }}>
91
- <SelectPayment
92
- {...args}
93
- theme={args.theme}
94
- walletLabel="Wallet Balance"
95
- handleWallet={() => console.log("paying via wallet")}
96
- visaMasterLabel="Credit Card"
97
- handleCreditCard={() => console.log("paying via Credit Card")}
98
- madaLabel="Mada"
99
- handleMada={() => console.log("paying via Mada")}
100
- paypalLabel="PayPal"
101
- handlePayPal={() => console.log("paying via PayPal")}
102
- applePayLabel="Apple Pay"
103
- handleApplePay={() => console.log("paying via Apple Pay")}
104
- googlePayLabel="Google Pay"
105
- handleGooglePay={() => console.log("paying via Google Pay")}
106
- stcPayLabel="STC Pay"
107
- handleSTCPay={() => console.log("paying via STC Pay")}
108
- />
109
- </HawaProvider>
110
- );
77
+ return <ChargeWalletForm theme={args.theme} currency="SAR" />;
111
78
  };
79
+
80
+ // ChargeWallet.args = {
81
+ // theme: "secondary"
82
+ // };
@@ -1,16 +1,18 @@
1
- import { Meta } from '@storybook/addon-docs';
2
- import Code from './assets/code-brackets.svg';
3
- import Colors from './assets/colors.svg';
4
- import Comments from './assets/comments.svg';
5
- import Direction from './assets/direction.svg';
6
- import Flow from './assets/flow.svg';
7
- import Plugin from './assets/plugin.svg';
8
- import Repo from './assets/repo.svg';
9
- import StackAlt from './assets/stackalt.svg';
10
-
11
- <Meta title="Example/Introduction" />
12
-
13
- <style>{`
1
+ import { Meta } from "@storybook/addon-docs";
2
+ // import Code from "./assets/code-brackets.svg";
3
+ // import Colors from "./assets/colors.svg";
4
+ // import Comments from "./assets/comments.svg";
5
+ // import Direction from "./assets/direction.svg";
6
+ // import Flow from "./assets/flow.svg";
7
+ // import Plugin from "./assets/plugin.svg";
8
+ // import Repo from "./assets/repo.svg";
9
+ // import StackAlt from "./assets/stackalt.svg";
10
+
11
+ <Meta title="Example/Introduction" />;
12
+
13
+ {
14
+ /* <style>
15
+ {`
14
16
  .subheading {
15
17
  --mediumdark: '#999999';
16
18
  font-weight: 900;
@@ -112,100 +114,120 @@ import StackAlt from './assets/stackalt.svg';
112
114
  }
113
115
 
114
116
 
115
- `}</style>
116
-
117
- # Welcome to Storybook
118
-
119
- Storybook helps you build UI components in isolation from your app's business logic, data, and context.
120
- That makes it easy to develop hard - to - reach states.Save these UI states as ** stories ** to revisit during development, testing, or QA.
121
-
122
- Browse example stories now by navigating to them in the sidebar.
123
- View their code in the`src/stories` directory to learn how they work.
124
- We recommend building UIs with a[** component - driven **](https://componentdriven.org) process starting with atomic components and ending with pages.
125
-
126
- <div className="subheading">Configure</div>
127
-
128
- <div className="link-list">
129
- <a
130
- className="link-item"
131
- href="https://storybook.js.org/docs/react/addons/addon-types"
132
- target="_blank"
133
- >
134
- <img src={Plugin} alt="plugin" />
135
- <span>
136
- <strong>Presets for popular tools</strong>
137
- Easy setup for TypeScript, SCSS and more.
138
- </span>
139
- </a>
140
- <a
141
- className="link-item"
142
- href="https://storybook.js.org/docs/react/configure/webpack"
143
- target="_blank"
144
- >
145
- <img src={StackAlt} alt="Build" />
146
- <span>
147
- <strong>Build configuration</strong>
148
- How to customize webpack and Babel
149
- </span>
150
- </a>
151
- <a
152
- className="link-item"
153
- href="https://storybook.js.org/docs/react/configure/styling-and-css"
154
- target="_blank"
155
- >
156
- <img src={Colors} alt="colors" />
157
- <span>
158
- <strong>Styling</strong>
159
- How to load and configure CSS libraries
160
- </span>
161
- </a>
162
- <a
163
- className="link-item"
164
- href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
165
- target="_blank"
166
- >
167
- <img src={Flow} alt="flow" />
168
- <span>
169
- <strong>Data</strong>
170
- Providers and mocking for data libraries
171
- </span>
172
- </a>
173
- </div>
174
-
175
- <div className="subheading">Learn</div>
176
-
177
- <div className="link-list">
178
- <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
179
- <img src={Repo} alt="repo" />
180
- <span>
181
- <strong>Storybook documentation</strong>
182
- Configure, customize, and extend
183
- </span>
184
- </a>
185
- <a className="link-item" href="https://storybook.js.org/tutorials/" target="_blank">
186
- <img src={Direction} alt="direction" />
187
- <span>
188
- <strong>In-depth guides</strong>
189
- Best practices from leading teams
190
- </span>
191
- </a>
192
- <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
193
- <img src={Code} alt="code" />
194
- <span>
195
- <strong>GitHub project</strong>
196
- View the source and add issues
197
- </span>
198
- </a>
199
- <a className="link-item" href="https://discord.gg/storybook" target="_blank">
200
- <img src={Comments} alt="comments" />
201
- <span>
202
- <strong>Discord chat</strong>
203
- Chat with maintainers and the community
204
- </span>
205
- </a>
206
- </div>
207
-
208
- <div className="tip-wrapper">
209
- <span className="tip">Tip</span>Edit the Markdown in{' '}
210
- <code>src/stories/Introduction.stories.mdx</code>
211
- </div>
117
+ `}
118
+ </style> */
119
+ }
120
+
121
+ // # Welcome to Storybook
122
+
123
+ // Storybook helps you build UI components in isolation from your app's business logic, data, and context.
124
+ // That makes it easy to develop hard - to - reach states.Save these UI states as ** stories ** to revisit during development, testing, or QA.
125
+
126
+ // Browse example stories now by navigating to them in the sidebar.
127
+ // View their code in the`src/stories` directory to learn how they work.
128
+ // We recommend building UIs with a[** component - driven **](https://componentdriven.org) process starting with atomic components and ending with pages.
129
+
130
+ <>
131
+ <div className="subheading">Configure</div>
132
+
133
+ <div className="link-list">
134
+ <a
135
+ className="link-item"
136
+ href="https://storybook.js.org/docs/react/addons/addon-types"
137
+ target="_blank"
138
+ >
139
+ {/* <img src={Plugin} alt="plugin" /> */}
140
+ <span>
141
+ <strong>Presets for popular tools</strong>
142
+ Easy setup for TypeScript, SCSS and more.
143
+ </span>
144
+ </a>
145
+ <a
146
+ className="link-item"
147
+ href="https://storybook.js.org/docs/react/configure/webpack"
148
+ target="_blank"
149
+ >
150
+ {/* <img src={StackAlt} alt="Build" /> */}
151
+ <span>
152
+ <strong>Build configuration</strong>
153
+ How to customize webpack and Babel
154
+ </span>
155
+ </a>
156
+ <a
157
+ className="link-item"
158
+ href="https://storybook.js.org/docs/react/configure/styling-and-css"
159
+ target="_blank"
160
+ >
161
+ {/* <img src={Colors} alt="colors" /> */}
162
+ <span>
163
+ <strong>Styling</strong>
164
+ How to load and configure CSS libraries
165
+ </span>
166
+ </a>
167
+ <a
168
+ className="link-item"
169
+ href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
170
+ target="_blank"
171
+ >
172
+ {/* <img src={Flow} alt="flow" /> */}
173
+ <span>
174
+ <strong>Data</strong>
175
+ Providers and mocking for data libraries
176
+ </span>
177
+ </a>
178
+ </div>
179
+
180
+ <div className="subheading">Learn</div>
181
+
182
+ <div className="link-list">
183
+ <a
184
+ className="link-item"
185
+ href="https://storybook.js.org/docs"
186
+ target="_blank"
187
+ >
188
+ {/* <img src={Repo} alt="repo" /> */}
189
+ <span>
190
+ <strong>Storybook documentation</strong>
191
+ Configure, customize, and extend
192
+ </span>
193
+ </a>
194
+ <a
195
+ className="link-item"
196
+ href="https://storybook.js.org/tutorials/"
197
+ target="_blank"
198
+ >
199
+ {/* <img src={Direction} alt="direction" /> */}
200
+ <span>
201
+ <strong>In-depth guides</strong>
202
+ Best practices from leading teams
203
+ </span>
204
+ </a>
205
+ <a
206
+ className="link-item"
207
+ href="https://github.com/storybookjs/storybook"
208
+ target="_blank"
209
+ >
210
+ {/* <img src={Code} alt="code" /> */}
211
+ <span>
212
+ <strong>GitHub project</strong>
213
+ View the source and add issues
214
+ </span>
215
+ </a>
216
+ <a
217
+ className="link-item"
218
+ href="https://discord.gg/storybook"
219
+ target="_blank"
220
+ >
221
+ {/* <img src={Comments} alt="comments" /> */}
222
+ <span>
223
+ <strong>Discord chat</strong>
224
+ Chat with maintainers and the community
225
+ </span>
226
+ </a>
227
+ </div>
228
+
229
+ <div className="tip-wrapper">
230
+ <span className="tip">Tip</span>Edit the Markdown in{" "}
231
+ <code>src/stories/Introduction.stories.mdx</code>
232
+ </div>
233
+ </>;