@sikka/hawa 0.0.244 → 0.0.246

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 (100) hide show
  1. package/dist/styles.css +8 -3
  2. package/es/blocks/AuthForms/CodeConfirmation.d.ts +1 -1
  3. package/es/blocks/Misc/EmptyState.d.ts +5 -0
  4. package/es/blocks/Misc/NoPermission.d.ts +4 -0
  5. package/es/index.es.js +2 -2
  6. package/es/layout/HawaAppLayout.d.ts +1 -0
  7. package/es/layout/index.d.ts +0 -1
  8. package/lib/blocks/AuthForms/CodeConfirmation.d.ts +1 -1
  9. package/lib/blocks/Misc/EmptyState.d.ts +5 -0
  10. package/lib/blocks/Misc/NoPermission.d.ts +4 -0
  11. package/lib/index.js +2 -2
  12. package/lib/layout/HawaAppLayout.d.ts +1 -0
  13. package/lib/layout/index.d.ts +0 -1
  14. package/package.json +2 -4
  15. package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
  16. package/src/blocks/Misc/EmptyState.tsx +16 -6
  17. package/src/blocks/Misc/LeadGenerator.tsx +1 -3
  18. package/src/blocks/Misc/Newsletter.tsx +1 -1
  19. package/src/blocks/Misc/NoPermission.tsx +13 -7
  20. package/src/blocks/Misc/NotFound.tsx +2 -2
  21. package/src/blocks/Misc/Testimonial.tsx +24 -30
  22. package/src/blocks/Payment/ChargeWalletForm.tsx +7 -6
  23. package/src/blocks/Payment/CheckoutForm.tsx +18 -18
  24. package/src/blocks/Payment/Confirmation.tsx +4 -4
  25. package/src/blocks/Referral/ReferralSettlement.tsx +8 -3
  26. package/src/elements/HawaTextField.tsx +1 -1
  27. package/src/layout/HawaAppLayout.tsx +86 -58
  28. package/src/layout/index.ts +0 -1
  29. package/src/styles.css +8 -3
  30. package/docs/CNAME +0 -1
  31. package/docs/README.md +0 -58
  32. package/docs/_layouts/default.html +0 -47
  33. package/docs/assets/css/style.css +0 -366
  34. package/docs/documentation/229.1b36ccba973b04d66b4c.manager.bundle.js +0 -1
  35. package/docs/documentation/229.f7a1c971.iframe.bundle.js +0 -1
  36. package/docs/documentation/295.67c251ec00675ab59b60.manager.bundle.js +0 -1
  37. package/docs/documentation/51.07b491d3.iframe.bundle.js +0 -2
  38. package/docs/documentation/51.07b491d3.iframe.bundle.js.LICENSE.txt +0 -8
  39. package/docs/documentation/51.e44cb3212565a342a42d.manager.bundle.js +0 -2
  40. package/docs/documentation/51.e44cb3212565a342a42d.manager.bundle.js.LICENSE.txt +0 -8
  41. package/docs/documentation/551.67cd309b0648b0a52636.manager.bundle.js +0 -1
  42. package/docs/documentation/551.c82ea8f1.iframe.bundle.js +0 -1
  43. package/docs/documentation/566.80f3d604.iframe.bundle.js +0 -2
  44. package/docs/documentation/566.80f3d604.iframe.bundle.js.LICENSE.txt +0 -105
  45. package/docs/documentation/701.07623c34.iframe.bundle.js +0 -1
  46. package/docs/documentation/767.e90d0d608aa8557f855d.manager.bundle.js +0 -2
  47. package/docs/documentation/767.e90d0d608aa8557f855d.manager.bundle.js.LICENSE.txt +0 -94
  48. package/docs/documentation/807.4e87168c6f719304d458.manager.bundle.js +0 -2
  49. package/docs/documentation/807.4e87168c6f719304d458.manager.bundle.js.LICENSE.txt +0 -31
  50. package/docs/documentation/807.b81f7e21.iframe.bundle.js +0 -2
  51. package/docs/documentation/807.b81f7e21.iframe.bundle.js.LICENSE.txt +0 -31
  52. package/docs/documentation/897.386c170cbd1467abc7ca.manager.bundle.js +0 -2
  53. package/docs/documentation/897.386c170cbd1467abc7ca.manager.bundle.js.LICENSE.txt +0 -12
  54. package/docs/documentation/897.d9a35fd0.iframe.bundle.js +0 -2
  55. package/docs/documentation/897.d9a35fd0.iframe.bundle.js.LICENSE.txt +0 -12
  56. package/docs/documentation/935.3a33e233.iframe.bundle.js +0 -1
  57. package/docs/documentation/935.df0c782bef63c348b9da.manager.bundle.js +0 -1
  58. package/docs/documentation/favicon.ico +0 -0
  59. package/docs/documentation/iframe.html +0 -364
  60. package/docs/documentation/index.html +0 -59
  61. package/docs/documentation/main.051275cac7b0dc69501c.manager.bundle.js +0 -1
  62. package/docs/documentation/main.3c9bbcb1.iframe.bundle.js +0 -1
  63. package/docs/documentation/project.json +0 -1
  64. package/docs/documentation/runtime~main.a832da8f0c3235fa0d36.manager.bundle.js +0 -1
  65. package/docs/documentation/runtime~main.d1d3f3a0.iframe.bundle.js +0 -1
  66. package/es/layout/SimpleGrid.d.ts +0 -10
  67. package/lib/layout/SimpleGrid.d.ts +0 -10
  68. package/src/Assets/images/card-background/1.jpeg +0 -0
  69. package/src/Assets/images/card-background/10.jpeg +0 -0
  70. package/src/Assets/images/card-background/11.jpeg +0 -0
  71. package/src/Assets/images/card-background/12.jpeg +0 -0
  72. package/src/Assets/images/card-background/13.jpeg +0 -0
  73. package/src/Assets/images/card-background/14.jpeg +0 -0
  74. package/src/Assets/images/card-background/15.jpeg +0 -0
  75. package/src/Assets/images/card-background/16.jpeg +0 -0
  76. package/src/Assets/images/card-background/17.jpeg +0 -0
  77. package/src/Assets/images/card-background/18.jpeg +0 -0
  78. package/src/Assets/images/card-background/19.jpeg +0 -0
  79. package/src/Assets/images/card-background/2.jpeg +0 -0
  80. package/src/Assets/images/card-background/20.jpeg +0 -0
  81. package/src/Assets/images/card-background/21.jpeg +0 -0
  82. package/src/Assets/images/card-background/22.jpeg +0 -0
  83. package/src/Assets/images/card-background/23.jpeg +0 -0
  84. package/src/Assets/images/card-background/24.jpeg +0 -0
  85. package/src/Assets/images/card-background/25.jpeg +0 -0
  86. package/src/Assets/images/card-background/3.jpeg +0 -0
  87. package/src/Assets/images/card-background/4.jpeg +0 -0
  88. package/src/Assets/images/card-background/5.jpeg +0 -0
  89. package/src/Assets/images/card-background/6.jpeg +0 -0
  90. package/src/Assets/images/card-background/7.jpeg +0 -0
  91. package/src/Assets/images/card-background/8.jpeg +0 -0
  92. package/src/Assets/images/card-background/9.jpeg +0 -0
  93. package/src/Assets/images/card-type/amex.png +0 -0
  94. package/src/Assets/images/card-type/diners.png +0 -0
  95. package/src/Assets/images/card-type/discover.png +0 -0
  96. package/src/Assets/images/card-type/mastercard.png +0 -0
  97. package/src/Assets/images/card-type/troy.png +0 -0
  98. package/src/Assets/images/card-type/unionpay.png +0 -0
  99. package/src/Assets/images/card-type/visa.png +0 -0
  100. package/src/layout/SimpleGrid.tsx +0 -41
@@ -19,6 +19,7 @@ type HawaAppLayoutTypes = {
19
19
  email?: string;
20
20
  drawerSize?: "sm" | "md" | "large";
21
21
  profileMenuItems?: MenuItems[][];
22
+ onSettingsClick?: () => void;
22
23
  };
23
24
  type MenuItems = {
24
25
  icon?: JSX.Element;
@@ -3,6 +3,5 @@ export * from "./HawaBottomAppBar";
3
3
  export * from "./HawaSiteLayout";
4
4
  export * from "./HawaAppLayout";
5
5
  export * from "./HawaContainer";
6
- export * from "./SimpleGrid";
7
6
  export * from "./AppSidebar";
8
7
  export * from "./Footer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.244",
3
+ "version": "0.0.246",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -113,8 +113,6 @@
113
113
  "react-select": "^5.3.2",
114
114
  "rollup-plugin-typescript2": "^0.34.1",
115
115
  "slate": "^0.94.1",
116
- "slate-history": "^0.93.0",
117
- "slate-react": "^0.97.1",
118
- "start": "^5.1.0"
116
+ "slate-react": "^0.97.1"
119
117
  }
120
118
  }
@@ -15,7 +15,7 @@ type TConfirmation = {
15
15
  codePlaceholder: string
16
16
  codeRequiredText: string
17
17
  confirm: string
18
- cancel
18
+ cancel: string
19
19
  }
20
20
  phoneNumber?: string
21
21
  submitConfirmation?: any
@@ -5,20 +5,30 @@ import { FaCheck } from "react-icons/fa"
5
5
 
6
6
  type TEmptyState = {
7
7
  variant?: "outlined" | "contained" | "neobrutalism"
8
+ onActionClick: () => void
9
+ texts: {
10
+ youreCaughtUp?: string
11
+ actionText?: string
12
+ }
8
13
  }
9
14
 
10
- export const EmptyState: FC<TEmptyState> = ({ variant = "contained" }) => {
15
+ export const EmptyState: FC<TEmptyState> = ({
16
+ variant = "contained",
17
+ texts,
18
+ onActionClick,
19
+ }) => {
11
20
  return (
12
- <HawaContainer variant={variant} centered={true}>
21
+ <HawaContainer variant={variant} centered={true} maxWidth="small">
13
22
  <div className="flex flex-col items-center justify-center text-center dark:text-white">
14
23
  <div className="flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-buttonPrimary-300 text-6xl font-bold">
15
24
  <FaCheck size={20} color="white" />
16
25
  </div>
17
- <div className="m-2 text-xl font-bold">You're all caught up</div>
18
- <div>If you're lost, please contact us help@sikka.io </div>
26
+ <div className="m-2 text-xl font-bold">
27
+ {texts?.youreCaughtUp ?? "You're all caught up"}
28
+ </div>
19
29
  </div>
20
- <HawaButton color="primary" width="full">
21
- Action
30
+ <HawaButton color="primary" width="half" onClick={() => onActionClick()}>
31
+ {texts?.actionText ?? "Go Home"}
22
32
  </HawaButton>
23
33
  </HawaContainer>
24
34
  )
@@ -37,9 +37,7 @@ export const LeadGenerator: FC<TLeadGenerator> = ({
37
37
  placeholder={"example@sikka.io"}
38
38
  margin="none"
39
39
  />
40
- <HawaButton size="full" margins="none">
41
- {texts?.submit ?? "Submit"}
42
- </HawaButton>
40
+ <HawaButton margins="none">{texts?.submit ?? "Submit"}</HawaButton>
43
41
  </form>
44
42
  </HawaContainer>
45
43
  )
@@ -41,7 +41,7 @@ export const Newsletter: FC<TNewsletter> = ({
41
41
  placeholder={"example@sikka.io"}
42
42
  margin="none"
43
43
  />
44
- <HawaButton size="full" margins="none">
44
+ <HawaButton margins="none">
45
45
  {texts?.submit ?? "Submit"}
46
46
  </HawaButton>
47
47
  </form>
@@ -4,24 +4,30 @@ import { FaLock } from "react-icons/fa"
4
4
 
5
5
  type TNoPermission = {
6
6
  variant?: "outlined" | "contained" | "neobrutalism"
7
+ texts?: {
8
+ title: string
9
+ subtitle: string
10
+ }
7
11
  }
8
12
 
9
- export const NoPermission: FC<TNoPermission> = ({ variant = "contained" }) => {
13
+ export const NoPermission: FC<TNoPermission> = ({
14
+ variant = "contained",
15
+ texts,
16
+ }) => {
10
17
  return (
11
18
  <HawaContainer variant={variant} centered={true}>
12
19
  <div className="flex flex-col items-center justify-center text-center dark:text-white">
13
20
  <div className="flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-buttonPrimary-300 text-6xl font-bold">
14
21
  <FaLock size={20} color="white" />
15
22
  </div>
16
- <div className="m-2 text-xl font-bold">You don't have permission</div>
23
+ <div className="m-2 text-xl font-bold">
24
+ {texts?.title ?? "You don't have permission"}
25
+ </div>
17
26
  <div>
18
- If you think this is a problem please contact your administrator or
19
- our customer support
27
+ {texts?.subtitle ??
28
+ "If you think this is a problem please contact your administrator or our customer support"}
20
29
  </div>
21
30
  </div>
22
- {/* <HawaButton color="primary" width="full">
23
- Action
24
- </HawaButton> */}
25
31
  </HawaContainer>
26
32
  )
27
33
  }
@@ -22,10 +22,10 @@ export const NotFound: FC<NotFoundTypes> = ({
22
22
  <div className="m-2 text-center text-xl font-bold ">
23
23
  {texts?.pageNotFound ?? "Page Not Found"}
24
24
  </div>
25
- <div className="text-center ">
25
+ <div className="text-center mb-4">
26
26
  {texts?.ifLost ?? "If you're lost please contact us help@sikka.io"}
27
27
  </div>
28
- <HawaButton color="primary" width="full">
28
+ <HawaButton color="primary" width="full" margins="none">
29
29
  {texts?.home ?? "Home"}
30
30
  </HawaButton>
31
31
  </div>
@@ -1,50 +1,44 @@
1
1
  import { FC } from "react"
2
- // import { HawaButton } from "../../elements"
3
- // import { HawaContainer } from "../../layout"
4
- // import { FaCheck } from "react-icons/fa"
2
+
5
3
  type TEmptyState = {
6
4
  variant?: "outlined" | "contained" | "neobrutalism"
7
5
  }
8
6
 
9
- export const Testimonial: FC<TEmptyState> = ({ variant = "contained" }) => {
7
+ export const Testimonial: FC<TEmptyState> = (props) => {
10
8
  return (
11
- <div
12
- className="flex flex-col gap-2 rounded border-2 border-gray-200 bg-white p-4"
13
- // style={{ width: "249.708px", marginRight: "24px" }}
14
- >
15
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none">
16
- <rect width="48" height="48" rx="24" fill="#45BE8B"></rect>
17
- <path
18
- d="M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z"
19
- fill="#FFFFFF"
20
- ></path>
21
- <path
22
- d="M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z"
23
- fill="#FFFFFF"
24
- ></path>
25
- </svg>
9
+ <div className="flex w-fit flex-col gap-2 rounded border-2 border-gray-200 bg-white p-4">
26
10
  <div>
27
- <p>
28
- The team at Tines is simply amazing. The tech is easy to follow, easy
29
- to work with, and infinitely flexible. The solution opportunities
30
- created by Tines are endless.
11
+ <p className="mb-4 max-w-sm">
12
+ The team at Sikka Software is simply amazing. The tech is easy to
13
+ follow, easy to work with, and infinitely flexible. The solution
14
+ opportunities created by Tines are endless.
31
15
  </p>
32
16
  </div>
33
- <cite>
17
+ <div className="flex flex-row gap-4">
18
+ <svg width="48" height="48" viewBox="0 0 48 48" fill="none">
19
+ <rect width="48" height="48" rx="24" fill="#45BE8B"></rect>
20
+ <path
21
+ d="M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z"
22
+ fill="#FFFFFF"
23
+ ></path>
24
+ <path
25
+ d="M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z"
26
+ fill="#FFFFFF"
27
+ ></path>
28
+ </svg>
29
+ <span className="border border-l "></span>{" "}
34
30
  <div>
35
- <div>
36
- <strong style={{ color: "#45BE8B" }}>Brent Lassi</strong>
37
- </div>
31
+ <strong>Brent Lassi</strong>
38
32
  <div> Chief Information Security Officer</div>
39
33
  </div>
40
- <div>
34
+ {/* <div>
41
35
  <img
42
36
  src="https://www.datocms-assets.com/55802/1636449069-bluecore-logo-dark.svg"
43
37
  title="Logo of Brent Lassi"
44
38
  alt="Logo of Brent Lassi"
45
39
  />
46
- </div>
47
- </cite>
40
+ </div> */}
41
+ </div>
48
42
  </div>
49
43
  )
50
44
  }
@@ -22,16 +22,17 @@ export const ChargeWalletForm: FC<ChargeWalletTypes> = (props) => {
22
22
  </div>
23
23
  <div className="text-sm font-normal">{props.currency || "SAR"}</div>
24
24
  </div>
25
- <div className="mb-2 flex w-full flex-row gap-2 text-center">
26
- <div className="w-40 whitespace-nowrap rounded bg-gray-100 p-4">
25
+ <div className="mb-2 flex w-full flex-row gap-4 text-center">
26
+ <HawaButton variant="outlined" margins="none" className="h-full">
27
27
  10 SAR
28
- </div>
29
- <div className="w-40 whitespace-nowrap rounded bg-gray-100 p-4">
28
+ </HawaButton>
29
+ <HawaButton variant="outlined" margins="none" className="h-full">
30
30
  100 SAR
31
- </div>
31
+ </HawaButton>
32
+
32
33
  <input
33
34
  placeholder="Custom"
34
- className="h-auto rounded bg-gray-100 p-4"
35
+ className="h-auto w-full rounded bg-gray-100 p-4"
35
36
  />
36
37
  </div>
37
38
  {/* <FormProvider {...methods}>
@@ -156,60 +156,59 @@ export const CheckoutForm: FC<CheckoutFormTypes> = (props) => {
156
156
  />
157
157
  )}
158
158
  />
159
- <div style={{ width: 20 }} />
159
+ </div>
160
160
 
161
+ <div className="flex flex-col md:flex-row">
161
162
  <Controller
162
163
  control={control}
163
- name="buildingNumber"
164
+ name="province"
164
165
  rules={{ required: props.texts?.required }}
165
166
  render={({ field }) => (
166
167
  <HawaTextField
167
168
  width="full"
168
169
  type="text"
169
- label={props.texts?.buildingNumberLabel + " *"}
170
- helperText={errors.buildingNumber?.message}
170
+ label={props.texts?.stateLabel + " *"}
171
+ helperText={errors.province?.message}
171
172
  {...field}
172
173
  value={field.value ?? ""}
173
174
  />
174
175
  )}
175
176
  />
176
- </div>
177
+ <div style={{ width: 20 }} />
177
178
 
178
- <div className="flex flex-col md:flex-row">
179
179
  <Controller
180
180
  control={control}
181
- name="province"
181
+ name="city"
182
182
  rules={{ required: props.texts?.required }}
183
183
  render={({ field }) => (
184
184
  <HawaTextField
185
185
  width="full"
186
186
  type="text"
187
- label={props.texts?.stateLabel + " *"}
188
- helperText={errors.province?.message}
187
+ label={props.texts?.cityLabel + " *"}
188
+ helperText={errors.city?.message}
189
189
  {...field}
190
190
  value={field.value ?? ""}
191
191
  />
192
192
  )}
193
193
  />
194
- <div style={{ width: 20 }} />
195
-
194
+ </div>
195
+ <div className="flex flex-col md:flex-row">
196
196
  <Controller
197
197
  control={control}
198
- name="city"
198
+ name="buildingNumber"
199
199
  rules={{ required: props.texts?.required }}
200
200
  render={({ field }) => (
201
201
  <HawaTextField
202
202
  width="full"
203
203
  type="text"
204
- label={props.texts?.cityLabel + " *"}
205
- helperText={errors.city?.message}
204
+ label={props.texts?.buildingNumberLabel + " *"}
205
+ helperText={errors.buildingNumber?.message}
206
206
  {...field}
207
207
  value={field.value ?? ""}
208
208
  />
209
209
  )}
210
210
  />
211
- </div>
212
- <div className="mb-3">
211
+ <div style={{ width: 20 }} />
213
212
  <Controller
214
213
  control={control}
215
214
  name="zipCode"
@@ -225,8 +224,9 @@ export const CheckoutForm: FC<CheckoutFormTypes> = (props) => {
225
224
  />
226
225
  )}
227
226
  />
228
- <div style={{ width: 20 }} />
229
-
227
+ {/* <div style={{ width: 20 }} /> */}
228
+ </div>
229
+ <div className="mb-3">
230
230
  <Controller
231
231
  control={control}
232
232
  name="country"
@@ -56,7 +56,7 @@ export const ConfirmationPage: FC<ConfirmationPageTypes> = (props) => {
56
56
  <div className="text-center">{props.texts.yourOrderNumber}</div>
57
57
  <div className="text-center font-bold">{props.orderNumber}</div>
58
58
  </div>
59
- <div className="py-5">
59
+ {/* <div className="py-5">
60
60
  <div className="mb-3 text-center text-xl font-semibold">
61
61
  {props.texts.orderDetails}
62
62
  </div>
@@ -70,8 +70,8 @@ export const ConfirmationPage: FC<ConfirmationPageTypes> = (props) => {
70
70
  rows={props.products}
71
71
  />
72
72
  )}
73
- </div>
74
- <div className="flex flex-col justify-center py-5 pt-0">
73
+ </div> */}
74
+ <div className="flex flex-col items-center justify-center py-5 pt-0">
75
75
  <HawaButton color="primary" width="full" onClick={props.handlePrint}>
76
76
  {props.texts.print}
77
77
  </HawaButton>
@@ -85,7 +85,7 @@ export const ConfirmationPage: FC<ConfirmationPageTypes> = (props) => {
85
85
  {props.texts.fasterPaymentNote}
86
86
  </div>
87
87
  <a
88
- className="w-fit cursor-pointer text-center text-xs font-normal"
88
+ className="w-fit cursor-pointer text-center text-xs font-normal"
89
89
  onClick={props.handleRefundPolicyLink}
90
90
  >
91
91
  {props.texts.refundPolicy}
@@ -95,14 +95,19 @@ export const ReferralSettlement: FC<TReferralSettlement> = ({
95
95
  }
96
96
 
97
97
  const SettlementAccountCard = (props) => (
98
- <div className="mb-3 flex flex-row items-center justify-between rounded border-b bg-white p-2">
98
+ <div className="mb-3 flex flex-row items-center justify-between rounded border-b bg-white p-3">
99
99
  <div className="flex flex-col justify-between">
100
100
  <div className="text-xs">{props.bank}</div>
101
101
  <div>{props.accountHolder}</div>
102
102
  <div className="text-xs">{props.iban}</div>
103
103
  </div>
104
- <div className="flex flex-row items-center justify-center gap-1">
105
- {props.default && <HawaChip size="normal" label="Default" />}
104
+ <div className="flex flex-row items-center justify-center gap-2">
105
+ {props.default && (
106
+ <HawaButton disabled variant="outlined" size="small">
107
+ Default
108
+ </HawaButton>
109
+ )}
110
+ {/* {props.default && <HawaChip size="normal" label="Default" />} */}
106
111
  {!props.default && <HawaButton size="small">Make Default</HawaButton>}
107
112
  <HawaButton tooltip="Delete">
108
113
  <FaTimes />
@@ -50,7 +50,7 @@ export const HawaTextField: FC<TextFieldTypes> = ({
50
50
 
51
51
  let defaultStyle = "flex max-h-fit flex-col justify-center"
52
52
  let defaultInputStyle =
53
- "block w-full rounded outline outline-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
53
+ "block w-full rounded outline outline-1 outline-gray-300 bg-white p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
54
54
  let previewInputStyle =
55
55
  "block w-full rounded bg-gray-50 p-2 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500"
56
56
  // "mb-0 block w-full rounded border border-gray-300 bg-gray-50 p-2 text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",
@@ -2,9 +2,10 @@ import React, { useEffect, useRef, useState } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HiMenu } from "react-icons/hi"
4
4
  import { FaChevronRight } from "react-icons/fa"
5
+ import { FiSettings } from "react-icons/fi"
5
6
  import useDiscloser from "../hooks/useDiscloser"
6
7
  import useBreakpoint from "../hooks/useBreakpoint"
7
- import { HawaMenu } from "../elements"
8
+ import { HawaButton, HawaMenu } from "../elements"
8
9
 
9
10
  // TODO: when no navbar, the drawer can't be opened
10
11
  // TODO: when no pagetitle, navbar gets messy
@@ -29,6 +30,7 @@ type HawaAppLayoutTypes = {
29
30
  email?: string
30
31
  drawerSize?: "sm" | "md" | "large"
31
32
  profileMenuItems?: MenuItems[][]
33
+ onSettingsClick?: () => void
32
34
  }
33
35
 
34
36
  type MenuItems = {
@@ -40,6 +42,7 @@ type MenuItems = {
40
42
  export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
41
43
  direction = "rtl",
42
44
  drawerSize = "md",
45
+ onSettingsClick,
43
46
  ...props
44
47
  }) => {
45
48
  const [openSideMenu, setOpenSideMenu] = useState(false)
@@ -89,7 +92,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
89
92
  {props.topBar && (
90
93
  <div
91
94
  className={clsx(
92
- "fixed top-0 left-0 right-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",
95
+ "fixed left-0 right-0 top-0 z-30 flex h-14 w-full items-center justify-between bg-layoutPrimary-500 p-2",
93
96
  isRTL ? "flex-row-reverse" : "flex-row"
94
97
  )}
95
98
  >
@@ -234,7 +237,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
234
237
  <div
235
238
  dir={direction}
236
239
  className={clsx(
237
- "fixed z-50 mb-2 flex h-14 flex-row items-center ",
240
+ "fixed z-50 mb-2 flex h-14 flex-row items-center transition-all ",
238
241
  size > 600 || openSideMenu
239
242
  ? "bg-layoutPrimary-500"
240
243
  : "w-0 bg-transparent"
@@ -245,7 +248,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
245
248
  ? `${
246
249
  drawerSizeStyle[openSideMenu ? "opened" : "closed"][
247
250
  drawerSize
248
- ]
251
+ ] - 16
249
252
  }px`
250
253
  : "full",
251
254
  }}
@@ -277,62 +280,9 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
277
280
  src={props.logoSymbol}
278
281
  />
279
282
  ) : null}
280
-
281
- {/* Expand Button */}
282
- {size > 600 ? (
283
- <div
284
- className={clsx("fixed right-0 w-fit transition-all")}
285
- // style={isRTL ? {} : {left: }}
286
- style={
287
- isRTL
288
- ? {
289
- right: `${
290
- drawerSizeStyle[openSideMenu ? "opened" : "closed"][
291
- drawerSize
292
- ] - 30
293
- }px`,
294
- }
295
- : {
296
- left: `${
297
- drawerSizeStyle[openSideMenu ? "opened" : "closed"][
298
- drawerSize
299
- ] - 30
300
- }px`,
301
- }
302
- }
303
- >
304
- <div
305
- dir={direction}
306
- className={clsx(
307
- "relative top-0 left-0 transition-all",
308
- openSideMenu ? " opacity-100" : " opacity-0"
309
- )}
310
- >
311
- <div
312
- onClick={() => setKeepOpen(!keepOpen)}
313
- className={
314
- "w-fit cursor-pointer rounded bg-gray-300 p-1 transition-all"
315
- }
316
- >
317
- <FaChevronRight
318
- fontSize={11}
319
- className={clsx(
320
- isRTL
321
- ? keepOpen
322
- ? "rotate-0"
323
- : "rotate-180"
324
- : keepOpen
325
- ? "rotate-180"
326
- : "rotate-0"
327
- )}
328
- />
329
- </div>
330
- </div>
331
- </div>
332
- ) : null}
333
283
  </div>
334
284
  {/* Drawer Items */}
335
- <div className="mt-14 mb-8">
285
+ <div className="mb-10 mt-14">
336
286
  {props.drawerItems?.map((dSection, dIndex) => (
337
287
  <div
338
288
  key={dIndex}
@@ -441,6 +391,84 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
441
391
  </div>
442
392
  ))}
443
393
  </div>
394
+ {/* Drawer Footer */}
395
+ {openSideMenu && (
396
+ <div
397
+ className={clsx(
398
+ "fixed bottom-0 left-0 right-0 flex flex-row items-center bg-layoutPrimary-500 p-4",
399
+ openSideMenu ? "bg-layoutPrimary-500" : "bg-transparent",
400
+ onSettingsClick ? "justify-between" : "justify-end"
401
+ )}
402
+ style={{
403
+ width: `${
404
+ drawerSizeStyle[openSideMenu ? "opened" : "closed"][
405
+ drawerSize
406
+ ] - 16
407
+ }px`,
408
+ }}
409
+ >
410
+ {onSettingsClick && (
411
+ <div
412
+ className=" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700"
413
+ onClick={() => onSettingsClick()}
414
+ >
415
+ <FiSettings />
416
+ </div>
417
+ )}
418
+ {/* Expand Button */}
419
+ {size > 600 ? (
420
+ <div
421
+ className={clsx("w-fit transition-all")}
422
+ // style={isRTL ? {} : {left: }}
423
+ style={
424
+ isRTL
425
+ ? {
426
+ right: `${
427
+ drawerSizeStyle[openSideMenu ? "opened" : "closed"][
428
+ drawerSize
429
+ ] - 35
430
+ }px`,
431
+ }
432
+ : {
433
+ left: `${
434
+ drawerSizeStyle[openSideMenu ? "opened" : "closed"][
435
+ drawerSize
436
+ ] - 35
437
+ }px`,
438
+ }
439
+ }
440
+ >
441
+ <div
442
+ dir={direction}
443
+ className={clsx(
444
+ "relative left-0 top-0 transition-all",
445
+ openSideMenu ? " opacity-100" : " opacity-0"
446
+ )}
447
+ >
448
+ <div
449
+ onClick={() => setKeepOpen(!keepOpen)}
450
+ className={
451
+ "w-fit cursor-pointer rounded bg-gray-300 p-2 transition-all hover:bg-gray-400"
452
+ }
453
+ >
454
+ <FaChevronRight
455
+ fontSize={14}
456
+ className={clsx(
457
+ isRTL
458
+ ? keepOpen
459
+ ? "rotate-0"
460
+ : "rotate-180"
461
+ : keepOpen
462
+ ? "rotate-180"
463
+ : "rotate-0"
464
+ )}
465
+ />
466
+ </div>
467
+ </div>
468
+ </div>
469
+ ) : null}
470
+ </div>
471
+ )}
444
472
  </div>
445
473
  </div>
446
474
  {/*
@@ -3,6 +3,5 @@ export * from "./HawaBottomAppBar"
3
3
  export * from "./HawaSiteLayout"
4
4
  export * from "./HawaAppLayout"
5
5
  export * from "./HawaContainer"
6
- export * from "./SimpleGrid"
7
6
  export * from "./AppSidebar"
8
7
  export * from "./Footer"
package/src/styles.css CHANGED
@@ -730,6 +730,9 @@ video {
730
730
  .mb-1 {
731
731
  margin-bottom: 0.25rem;
732
732
  }
733
+ .mb-10 {
734
+ margin-bottom: 2.5rem;
735
+ }
733
736
  .mb-2 {
734
737
  margin-bottom: 0.5rem;
735
738
  }
@@ -742,9 +745,6 @@ video {
742
745
  .mb-5 {
743
746
  margin-bottom: 1.25rem;
744
747
  }
745
- .mb-8 {
746
- margin-bottom: 2rem;
747
- }
748
748
  .ml-0 {
749
749
  margin-left: 0px;
750
750
  }
@@ -2246,6 +2246,11 @@ body {
2246
2246
  background-color: rgb(229 231 235 / var(--tw-bg-opacity));
2247
2247
  }
2248
2248
 
2249
+ .hover\:bg-gray-400:hover {
2250
+ --tw-bg-opacity: 1;
2251
+ background-color: rgb(156 163 175 / var(--tw-bg-opacity));
2252
+ }
2253
+
2249
2254
  .hover\:bg-gray-50:hover {
2250
2255
  --tw-bg-opacity: 1;
2251
2256
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
package/docs/CNAME DELETED
@@ -1 +0,0 @@
1
- hawa.style