@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.
Files changed (40) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -3
  4. package/src/blocks/Account/UserProfileForm.js +9 -5
  5. package/src/blocks/Account/UserSettingsForm.js +10 -5
  6. package/src/blocks/AuthForms/CodeConfirmation.js +5 -5
  7. package/src/blocks/AuthForms/NewPasswordForm.js +9 -5
  8. package/src/blocks/AuthForms/ResetPasswordForm.js +9 -5
  9. package/src/blocks/AuthForms/SignInForm.js +5 -10
  10. package/src/blocks/AuthForms/SignInPhone.js +4 -5
  11. package/src/blocks/AuthForms/SignUpForm.js +4 -10
  12. package/src/blocks/Misc/NotFound.js +1 -1
  13. package/src/blocks/Payment/ChargeWalletForm.js +9 -5
  14. package/src/blocks/Payment/CheckoutForm.js +6 -8
  15. package/src/blocks/Payment/Confirmation.js +19 -12
  16. package/src/blocks/Payment/CreditCardForm.js +6 -7
  17. package/src/blocks/Payment/Form/CForm.js +2 -12
  18. package/src/blocks/Payment/PayWithWallet.js +9 -5
  19. package/src/blocks/Payment/SelectPayment.js +4 -2
  20. package/src/elements/DragDropImages.js +2 -3
  21. package/src/elements/HawaButton.js +13 -6
  22. package/src/elements/HawaItemCard.js +38 -155
  23. package/src/elements/HawaPanelTabs.js +17 -69
  24. package/src/elements/HawaRadio.js +32 -0
  25. package/src/elements/HawaSettingsRow.js +2 -4
  26. package/src/elements/HawaTooltip.js +2 -41
  27. package/src/elements/index.js +0 -2
  28. package/src/layout/HawaContainer.js +12 -0
  29. package/src/layout/index.js +1 -0
  30. package/storybook-static/iframe.html +1 -1
  31. package/storybook-static/main.e6b8be7f.iframe.bundle.js +1 -0
  32. package/storybook-static/project.json +1 -1
  33. package/storybook-static/{vendors~main.8be71844.iframe.bundle.js → vendors~main.305b437b.iframe.bundle.js} +3 -3
  34. package/storybook-static/{vendors~main.8be71844.iframe.bundle.js.LICENSE.txt → vendors~main.305b437b.iframe.bundle.js.LICENSE.txt} +0 -0
  35. package/storybook-static/vendors~main.305b437b.iframe.bundle.js.map +1 -0
  36. package/src/elements/ActionButton.js +0 -14
  37. package/src/elements/RadioBox.js +0 -29
  38. package/src/elements/ResponsiveButton.js +0 -34
  39. package/storybook-static/main.89a5002b.iframe.bundle.js +0 -1
  40. package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +0 -1
@@ -1,17 +1,24 @@
1
1
  import React from "react";
2
+ import { HawaTooltip } from "./HawaTooltip";
2
3
 
3
4
  export const HawaButton = (props) => {
5
+ let iconStyle = "pr-2 flex flex-col justify-center items-center";
4
6
  let styles =
5
- "text-center 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";
7
+ "m-1 px-2.5 py-2.5 text-center 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 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";
6
8
  if (props.fullWidth) {
7
9
  styles =
8
- "mt-2 w-full flex justify-center 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 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";
10
+ "my-1 w-full flex justify-center 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 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";
11
+ }
12
+ if (props.iconOnly) {
13
+ iconStyle = "flex flex-col justify-center items-center";
9
14
  }
10
15
  return (
11
- <button type="button" className={styles} {...props}>
12
- {props.icon ? <div class="mr-2 -ml-1 w-5 h-5">{props.icon}</div> : null}
13
-
14
- {props.children}
16
+ <button data-tooltip-target={props.tooltip} type="button" className={styles} {...props}>
17
+ {props.tooltip && (
18
+ <HawaTooltip tooltipID={props.tooltip} content={props.tooltip} />
19
+ )}
20
+ {props.icon ? <div className={iconStyle}>{props.icon}</div> : null}
21
+ {!props.iconOnly && props.text}
15
22
  </button>
16
23
  );
17
24
  };
@@ -2,177 +2,60 @@ import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
 
4
4
  export const HawaItemCard = (props) => {
5
- let isArabic = props.lang === "ar";
6
- const handleParentClick = (e) => {
7
- e.stopPropagation();
8
- props.onCardClick();
9
- };
10
5
  return (
11
- <div
12
- // href="#"
13
- class="block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 "
14
- >
15
- <div class="flex justify-end pr-6">
16
- <button
17
- id="dropdownButton"
18
- data-dropdown-toggle="dropdown"
19
- class="inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-4 focus:outline-none focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm"
20
- type="button"
21
- >
22
- <span class="sr-only">Open dropdown</span>
23
- <svg
24
- class="w-6 h-6"
25
- aria-hidden="true"
26
- fill="currentColor"
27
- viewBox="0 0 20 20"
28
- xmlns="http://www.w3.org/2000/svg"
29
- >
30
- <path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"></path>
31
- </svg>
32
- </button>
33
- <div
34
- id="dropdown"
35
- class="hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
36
- >
37
- <ul class="py-1" aria-labelledby="dropdownButton">
38
- <li>
39
- <a
40
- href="#"
41
- class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
42
- >
43
- Edit
44
- </a>
45
- </li>
46
- <li>
47
- <a
48
- href="#"
49
- class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
50
- >
51
- Export Data
52
- </a>
53
- </li>
54
- <li>
55
- <a
56
- href="#"
57
- class="block py-2 px-4 text-sm text-red-600 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
58
- >
59
- Delete
60
- </a>
61
- </li>
62
- </ul>
63
- </div>
64
- </div>
65
- <div class="px-6">
66
- <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
67
- Noteworthy technology acquisitions 2021
68
- </h5>
69
- <p class="font-normal text-gray-700 dark:text-gray-400">
70
- Here are the biggest enterprise technology acquisitions of 2021 so
71
- far, in reverse chronological order.
72
- </p>
73
- </div>
74
- <div className="p-3 mt-6 rounded-b-lg flex justify-end">
75
- <div class="inline-flex rounded-md shadow-sm" role="group">
76
- <button
77
- type="button"
78
- class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-l-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white"
79
- >
80
- <svg
81
- aria-hidden="true"
82
- class="mr-0 w-4 h-4 fill-current"
83
- fill="currentColor"
84
- viewBox="0 0 20 20"
85
- xmlns="http://www.w3.org/2000/svg"
86
- >
87
- <path
88
- fill-rule="evenodd"
89
- d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z"
90
- clip-rule="evenodd"
91
- ></path>
92
- </svg>
93
- {/* Profile */}
94
- </button>
6
+ <div class="block pt-6 max-w-sm bg-white rounded-lg border border-gray-200 shadow-md dark:bg-gray-800 dark:border-gray-700 ">
7
+ {props.headerActions && (
8
+ <div class="flex justify-end pr-6">
95
9
  <button
10
+ id="dropdownButton"
11
+ data-dropdown-toggle="dropdown"
12
+ class="inline-block text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:ring-4 focus:outline-none focus:ring-gray-200 dark:focus:ring-gray-700 rounded-lg text-sm"
96
13
  type="button"
97
- class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white border-t border-b border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white"
98
14
  >
15
+ <span class="sr-only">Open dropdown</span>
99
16
  <svg
17
+ class="w-6 h-6"
100
18
  aria-hidden="true"
101
- class="mr-0 w-4 h-4 fill-current"
102
19
  fill="currentColor"
103
20
  viewBox="0 0 20 20"
104
21
  xmlns="http://www.w3.org/2000/svg"
105
22
  >
106
- <path d="M5 4a1 1 0 00-2 0v7.268a2 2 0 000 3.464V16a1 1 0 102 0v-1.268a2 2 0 000-3.464V4zM11 4a1 1 0 10-2 0v1.268a2 2 0 000 3.464V16a1 1 0 102 0V8.732a2 2 0 000-3.464V4zM16 3a1 1 0 011 1v7.268a2 2 0 010 3.464V16a1 1 0 11-2 0v-1.268a2 2 0 010-3.464V4a1 1 0 011-1z"></path>
23
+ <path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z"></path>
107
24
  </svg>
108
- {/* Settings */}
109
25
  </button>
110
- <button
111
- type="button"
112
- class="inline-flex items-center py-2 px-4 text-sm font-medium text-gray-900 bg-white rounded-r-md border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-blue-500 dark:focus:text-white"
26
+ <div
27
+ id="dropdown"
28
+ class="hidden z-10 w-44 text-base list-none bg-white rounded divide-y divide-gray-100 shadow dark:bg-gray-700"
113
29
  >
114
- <svg
115
- aria-hidden="true"
116
- class="mr-0 w-4 h-4 fill-current"
117
- fill="currentColor"
118
- viewBox="0 0 20 20"
119
- xmlns="http://www.w3.org/2000/svg"
120
- >
121
- <path
122
- fill-rule="evenodd"
123
- d="M2 9.5A3.5 3.5 0 005.5 13H9v2.586l-1.293-1.293a1 1 0 00-1.414 1.414l3 3a1 1 0 001.414 0l3-3a1 1 0 00-1.414-1.414L11 15.586V13h2.5a4.5 4.5 0 10-.616-8.958 4.002 4.002 0 10-7.753 1.977A3.5 3.5 0 002 9.5zm9 3.5H9V8a1 1 0 012 0v5z"
124
- clip-rule="evenodd"
125
- ></path>
126
- </svg>
127
- {/* Downloads */}
128
- </button>
30
+ <ul class="py-1" aria-labelledby="dropdownButton">
31
+ {props.headerActions.map((action) => {
32
+ return (
33
+ <li>
34
+ <a
35
+ href="#"
36
+ class="block py-2 px-4 text-sm text-gray-700 hover:bg-gray-100 dark:hover:bg-gray-600 dark:text-gray-200 dark:hover:text-white"
37
+ >
38
+ {action.label}
39
+ </a>
40
+ </li>
41
+ );
42
+ })}
43
+ </ul>
44
+ </div>
129
45
  </div>
46
+ )}
47
+ <div class="px-6">
48
+ <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">
49
+ {props.header}{" "}
50
+ </h5>
51
+ <p class="font-normal text-gray-700 dark:text-gray-400">
52
+ {props.content}
53
+ </p>
54
+ </div>
55
+ <div className="p-3 mt-6 rounded-b-lg flex justify-end">
56
+ {props.actions}
130
57
  </div>
131
58
  </div>
132
-
133
- // <Container
134
- // onClick={handleParentClick}
135
- // maxWidth="xs"
136
- // variant="card-container"
137
- // dataValue="parent"
138
- // // variant={props.selectedPlan ? "selected-plan-card" : "plan-card"}
139
- // style={{ direction: isArabic ? "rtl" : "ltr" }}
140
- // >
141
- // {props.header && (
142
- // <Container style={{ zIndex: 20 }} variant="card-header">
143
- // {props.headerActions && (
144
- // <div
145
- // style={{
146
- // margin: 0,
147
- // marginRight: -20,
148
- // marginLeft: -20,
149
- // marginBottom: -20,
150
- // // backgroundColor: "red",
151
- // display: "flex",
152
- // paddingTop: 5,
153
- // paddingLeft: 5,
154
- // paddingRight: 5,
155
- // justifyContent: "flex-end"
156
- // }}
157
- // >
158
- // {props.headerActions}
159
- // </div>
160
- // )}
161
- // {props.header}
162
- // </Container>
163
- // )}
164
- // {props.content && (
165
- // <Container style={{ zIndex: 20 }} variant="card-content">
166
- // {props.content}
167
- // </Container>
168
- // )}
169
-
170
- // {props.actions && (
171
- // <Container style={{ zIndex: 20 }} variant="card-actions">
172
- // {props.actions}
173
- // </Container>
174
- // )}
175
- // </Container>
176
59
  );
177
60
  };
178
61
  HawaItemCard.propTypes = {
@@ -19,11 +19,11 @@ export const HawaPanelTabs = (props) => {
19
19
  <li class="mr-2" role="presentation">
20
20
  <button
21
21
  class="inline-block p-4 rounded-t-lg border-b-2 text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500"
22
- id="profile-tab"
23
- data-tabs-target="#profile"
22
+ id={`${option.value}-tab`}
23
+ data-tabs-target={`#${option.value}`}
24
24
  type="button"
25
25
  role="tab"
26
- aria-controls="profile"
26
+ aria-controls={option.value}
27
27
  aria-selected="true"
28
28
  >
29
29
  {option.label}
@@ -33,72 +33,20 @@ export const HawaPanelTabs = (props) => {
33
33
  })}
34
34
  </ul>
35
35
  </div>
36
- {/* <div id="myTabContent">
37
- <div
38
- class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
39
- id="profile"
40
- role="tabpanel"
41
- aria-labelledby="profile-tab"
42
- >
43
- <p class="text-sm text-gray-500 dark:text-gray-400">
44
- This is some placeholder content the{" "}
45
- <strong class="font-medium text-gray-800 dark:text-white">
46
- Profile tab's associated content
47
- </strong>
48
- . Clicking another tab will toggle the visibility of this one for
49
- the next. The tab JavaScript swaps classes to control the content
50
- visibility and styling.
51
- </p>
52
- </div>
53
- <div
54
- class="hidden p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
55
- id="dashboard"
56
- role="tabpanel"
57
- aria-labelledby="dashboard-tab"
58
- >
59
- <p class="text-sm text-gray-500 dark:text-gray-400">
60
- This is some placeholder content the{" "}
61
- <strong class="font-medium text-gray-800 dark:text-white">
62
- Dashboard tab's associated content
63
- </strong>
64
- . Clicking another tab will toggle the visibility of this one for
65
- the next. The tab JavaScript swaps classes to control the content
66
- visibility and styling.
67
- </p>
68
- </div>
69
- <div
70
- class="hidden p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
71
- id="settings"
72
- role="tabpanel"
73
- aria-labelledby="settings-tab"
74
- >
75
- <p class="text-sm text-gray-500 dark:text-gray-400">
76
- This is some placeholder content the{" "}
77
- <strong class="font-medium text-gray-800 dark:text-white">
78
- Settings tab's associated content
79
- </strong>
80
- . Clicking another tab will toggle the visibility of this one for
81
- the next. The tab JavaScript swaps classes to control the content
82
- visibility and styling.
83
- </p>
84
- </div>
85
- <div
86
- class="hidden p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
87
- id="contacts"
88
- role="tabpanel"
89
- aria-labelledby="contacts-tab"
90
- >
91
- <p class="text-sm text-gray-500 dark:text-gray-400">
92
- This is some placeholder content the{" "}
93
- <strong class="font-medium text-gray-800 dark:text-white">
94
- Contacts tab's associated content
95
- </strong>
96
- . Clicking another tab will toggle the visibility of this one for
97
- the next. The tab JavaScript swaps classes to control the content
98
- visibility and styling.
99
- </p>
100
- </div>
101
- </div> */}
36
+ <div id="myTabContent">
37
+ {props.options.map((option) => {
38
+ return (
39
+ <div
40
+ class="p-4 bg-gray-50 rounded-lg dark:bg-gray-800"
41
+ id={option.value}
42
+ role="tabpanel"
43
+ aria-labelledby={`${option.value}-tab`}
44
+ >
45
+ {option.content}
46
+ </div>
47
+ );
48
+ })}
49
+ </div>
102
50
  </div>
103
51
  // <Container variant={props.location || "panelTabs"}>
104
52
  // {props.options.map((singleOption, i) => {
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import "flowbite";
3
+
4
+ export const HawaRadio = (props) => {
5
+ return (
6
+ <div>
7
+ <ul class="items-center w-full text-sm font-medium text-gray-900 bg-white rounded-lg border border-gray-200 sm:flex dark:bg-gray-700 dark:border-gray-600 dark:text-white">
8
+ {props.options.map((option) => {
9
+ return (
10
+ <li class="w-full border-b border-gray-200 sm:border-b-0 sm:border-r dark:border-gray-600">
11
+ <div class="flex items-center pl-3">
12
+ <input
13
+ id="horizontal-list-radio-license"
14
+ type="radio"
15
+ value=""
16
+ name="list-radio"
17
+ class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-700 focus:ring-2 dark:bg-gray-600 dark:border-gray-500"
18
+ />
19
+ <label
20
+ for="horizontal-list-radio-license"
21
+ class="py-3 ml-2 w-full text-sm font-medium text-gray-900 dark:text-gray-300"
22
+ >
23
+ {option.label}
24
+ </label>
25
+ </div>
26
+ </li>
27
+ );
28
+ })}
29
+ </ul>
30
+ </div>
31
+ );
32
+ };
@@ -2,11 +2,11 @@ import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import { HawaTypography } from "./HawaTypography";
4
4
  import { HawaTextField } from "./HawaTextField";
5
- import { HawaPanelTabs } from "./HawaPanelTabs";
6
5
  import { HawaSwitch } from "./HawaSwitch";
7
6
  import { HawaColorPicker } from "./HawaColorPicker";
8
7
  import { HawaRange } from "./HawaRange";
9
8
  import { HawaCheckbox } from "./HawaCheckbox";
9
+ import { HawaRadio } from "./HawaRadio";
10
10
 
11
11
  export const HawaSettingsRow = (props) => {
12
12
  return (
@@ -17,9 +17,7 @@ export const HawaSettingsRow = (props) => {
17
17
  {props.settingsType === "boolean" && <HawaSwitch {...props} />}
18
18
  {props.settingsType === "range" && <HawaRange {...props} />}
19
19
  {props.settingsType === "color" && <HawaColorPicker {...props} />}
20
- {props.settingsType === "radio" && (
21
- <HawaPanelTabs location="inSettings" {...props} />
22
- )}
20
+ {props.settingsType === "radio" && <HawaRadio {...props} />}
23
21
  </div>
24
22
  );
25
23
  };
@@ -1,54 +1,15 @@
1
1
  import React from "react";
2
2
  import "flowbite";
3
+
3
4
  export const HawaTooltip = (props) => {
4
- const screenSize = {
5
- width: 1500,
6
- height: 200
7
- };
8
5
  return (
9
6
  <div
10
7
  id={props.tooltipID}
11
8
  role="tooltip"
12
9
  class="inline-block absolute invisible z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm opacity-0 transition-opacity duration-300 tooltip dark:bg-gray-700"
13
10
  >
14
- Tooltip content
11
+ {props.content}
15
12
  <div class="tooltip-arrow" data-popper-arrow></div>
16
13
  </div>
17
-
18
- // <Tooltip
19
- // placement={screenSize.width > 400 ? "bottom-center" : "top-center"}
20
- // enterTouchDelay={100}
21
- // title={
22
- // props.hint ? (
23
- // props.hint
24
- // ) : (
25
- // <div>
26
- // <div
27
- // style={{
28
- // fontSize: 20,
29
- // fontWeight: 800,
30
- // padding: 10,
31
- // paddingBottom: 5,
32
- // textAlign: "center"
33
- // }}
34
- // >
35
- // {props.hintTitle}
36
- // </div>
37
- // <div
38
- // style={{
39
- // fontSize: 13,
40
- // fontWeight: 100,
41
- // padding: 10,
42
- // textAlign: "center"
43
- // }}
44
- // >
45
- // {props.hintContent}
46
- // </div>
47
- // </div>
48
- // )
49
- // }
50
- // >
51
- // {props.children}
52
- // </Tooltip>
53
14
  );
54
15
  };
@@ -1,5 +1,3 @@
1
- export * from "./ResponsiveButton";
2
- export * from "./ActionButton";
3
1
  export * from "./HawaSnackbar";
4
2
  export * from "./HawaSwitch";
5
3
  export * from "./HawaCheckbox";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+
3
+ export const HawaContainer = (props) => {
4
+ let containerStyle = "";
5
+ if (props.withDividers) {
6
+ containerStyle =
7
+ "w-full max-w-sm flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4";
8
+ } else {
9
+ containerStyle = "w-full max-w-sm flex flex-col bg-blue-300 rounded-xl p-4";
10
+ }
11
+ return <div className={containerStyle}>{props.children}</div>;
12
+ };
@@ -5,3 +5,4 @@ export * from "./HawaPageControls";
5
5
  export * from "./HawaBottomAppBar";
6
6
  export * from "./HawaDrawer";
7
7
  export * from "./HawaLayout";
8
+ export * from "./HawaContainer";
@@ -361,4 +361,4 @@
361
361
 
362
362
 
363
363
 
364
- 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.6b765954.iframe.bundle.js"></script><script src="vendors~main.8be71844.iframe.bundle.js"></script><script src="main.89a5002b.iframe.bundle.js"></script></body></html>
364
+ 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.6b765954.iframe.bundle.js"></script><script src="vendors~main.305b437b.iframe.bundle.js"></script><script src="main.e6b8be7f.iframe.bundle.js"></script></body></html>