@sikka/hawa 0.0.269 → 0.0.271
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/.github/workflows/hawa-publish-push.yml +15 -16
- package/dist/styles.css +217 -3
- package/es/elements/HawaDropdownMenu.d.ts +7 -0
- package/es/elements/HawaSnackbar.d.ts +1 -0
- package/es/elements/HawaStats.d.ts +2 -1
- package/es/elements/index.d.ts +1 -1
- package/es/index.es.js +3 -3
- package/lib/elements/HawaDropdownMenu.d.ts +7 -0
- package/lib/elements/HawaSnackbar.d.ts +1 -0
- package/lib/elements/HawaStats.d.ts +2 -1
- package/lib/elements/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/package.json +3 -1
- package/src/blocks/Misc/EmptyState.tsx +1 -2
- package/src/blocks/Misc/NoPermission.tsx +10 -12
- package/src/blocks/Pricing/ComparingPlans.tsx +0 -3
- package/src/blocks/Referral/ReferralAccount.tsx +0 -2
- package/src/blocks/Referral/ReferralSettlement.tsx +0 -1
- package/src/elements/ArrowCarousel.tsx +0 -1
- package/src/elements/BackToTop.tsx +0 -1
- package/src/elements/DragDropImages.tsx +0 -2
- package/src/elements/DraggableCard.tsx +0 -1
- package/src/elements/HawaAccordion.tsx +0 -1
- package/src/elements/HawaAlert.tsx +0 -1
- package/src/elements/HawaButton.tsx +1 -1
- package/src/elements/HawaCodeBlock.tsx +0 -2
- package/src/elements/HawaDropdownMenu.tsx +267 -0
- package/src/elements/HawaItemCard.tsx +0 -1
- package/src/elements/HawaLogoButton.tsx +0 -3
- package/src/elements/HawaModal.tsx +0 -1
- package/src/elements/HawaPricingCard.tsx +0 -1
- package/src/elements/HawaRadio.tsx +4 -3
- package/src/elements/HawaSnackbar.tsx +6 -3
- package/src/elements/HawaStats.tsx +16 -6
- package/src/elements/HawaStepper.tsx +40 -31
- package/src/elements/HawaTable.tsx +83 -11
- package/src/elements/HawaTabs.tsx +2 -0
- package/src/elements/InvoiceAccordion.tsx +26 -4
- package/src/elements/UsageCard.tsx +11 -2
- package/src/elements/UserFeedback.tsx +0 -1
- package/src/elements/index.ts +1 -1
- package/src/layout/Banner.tsx +0 -1
- package/src/layout/HawaAppLayout.tsx +18 -6
- package/src/layout/HawaAppLayoutSimplified.tsx +13 -13
- package/src/layout/HawaSiteLayout.tsx +0 -1
- package/src/styles.css +217 -3
- package/src/tailwind.css +7 -0
- package/tailwind.config.js +77 -2
- package/es/elements/HawaDrawer.d.ts +0 -13
- package/lib/elements/HawaDrawer.d.ts +0 -13
- package/src/elements/HawaDrawer.tsx +0 -116
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
2
|
import clsx from "clsx"
|
|
3
|
-
import { FaCheck } from "react-icons/fa"
|
|
4
3
|
|
|
5
4
|
type THawaTimeline = {
|
|
6
5
|
steps: any[any]
|
|
@@ -53,7 +52,17 @@ export const HawaStepper: FC<THawaTimeline> = ({
|
|
|
53
52
|
)}
|
|
54
53
|
>
|
|
55
54
|
{i + 1 <= props.currentStep ? (
|
|
56
|
-
<
|
|
55
|
+
<svg
|
|
56
|
+
aria-label="Check Mark"
|
|
57
|
+
stroke="currentColor"
|
|
58
|
+
fill="white"
|
|
59
|
+
stroke-width="0"
|
|
60
|
+
viewBox="0 0 512 512"
|
|
61
|
+
height="0.60em"
|
|
62
|
+
width="0.60em"
|
|
63
|
+
>
|
|
64
|
+
<path d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"></path>
|
|
65
|
+
</svg>
|
|
57
66
|
) : (
|
|
58
67
|
i + 1
|
|
59
68
|
)}
|
|
@@ -69,32 +78,32 @@ export const HawaStepper: FC<THawaTimeline> = ({
|
|
|
69
78
|
)
|
|
70
79
|
}
|
|
71
80
|
|
|
72
|
-
const TimelineStep = (props) => {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
81
|
+
// const TimelineStep = (props) => {
|
|
82
|
+
// let defaultStyles = {
|
|
83
|
+
// vertical: "",
|
|
84
|
+
// horizontal: "",
|
|
85
|
+
// }
|
|
86
|
+
// return (
|
|
87
|
+
// <div
|
|
88
|
+
// className={
|
|
89
|
+
// props.orientation === "vertical"
|
|
90
|
+
// ? "flex w-full flex-row items-center"
|
|
91
|
+
// : props.stepNumber === props.steps
|
|
92
|
+
// ? "flex items-center"
|
|
93
|
+
// : "after:border-1 flex items-center after:mx-6 after:hidden after:h-1 after:w-10 after:border-b after:border-gray-200 dark:after:border-gray-700 sm:after:inline-block sm:after:content-[''] md:w-full xl:after:mx-10"
|
|
94
|
+
// }
|
|
95
|
+
// >
|
|
96
|
+
// <div
|
|
97
|
+
// className={clsx(
|
|
98
|
+
// "ring-buttonPrimary-200 m-2 mr-4 flex h-6 w-6 items-center justify-center rounded ring-2 ring-offset-2",
|
|
99
|
+
// props.current
|
|
100
|
+
// ? "bg-buttonPrimary-500 text-white"
|
|
101
|
+
// : "bg-buttonPrimary-200"
|
|
102
|
+
// )}
|
|
103
|
+
// >
|
|
104
|
+
// {props.current ? <FaCheck fontSize={11} /> : props.stepNumber}
|
|
105
|
+
// </div>
|
|
106
|
+
// <div className="whitespace-nowrap">{props.stepName}</div>
|
|
107
|
+
// </div>
|
|
108
|
+
// )
|
|
109
|
+
// }
|
|
@@ -4,8 +4,6 @@ import { HawaMenu } from "./HawaMenu"
|
|
|
4
4
|
import useTable from "../hooks/useTable"
|
|
5
5
|
import { HawaTextField } from "./HawaTextField"
|
|
6
6
|
import { HawaButton } from "./HawaButton"
|
|
7
|
-
import { FaSearch } from "react-icons/fa"
|
|
8
|
-
import { BsChevronRight, BsFilter, BsPlus, BsThreeDots } from "react-icons/bs"
|
|
9
7
|
|
|
10
8
|
// TODO: translate header tools and make it more customizable
|
|
11
9
|
// TODO: pass the onSearch handler to the parent
|
|
@@ -133,18 +131,56 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
133
131
|
<div className={`overflow-x-auto rounded bg-${headerColor}`}>
|
|
134
132
|
{props.headerTools && (
|
|
135
133
|
<div className="flex flex-row items-center justify-between gap-2 px-4 py-2">
|
|
136
|
-
{/* <div className="w-1/2">
|
|
137
|
-
</div> */}
|
|
138
134
|
<HawaTextField
|
|
139
|
-
icon={
|
|
135
|
+
icon={
|
|
136
|
+
<svg
|
|
137
|
+
aria-label="Search Icon"
|
|
138
|
+
stroke="currentColor"
|
|
139
|
+
fill="gray"
|
|
140
|
+
stroke-width="0"
|
|
141
|
+
viewBox="0 0 512 512"
|
|
142
|
+
height="1em"
|
|
143
|
+
width="1em"
|
|
144
|
+
>
|
|
145
|
+
<path d="M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"></path>
|
|
146
|
+
</svg>
|
|
147
|
+
}
|
|
140
148
|
placeholder={"Search"}
|
|
141
149
|
width="full"
|
|
142
150
|
margin="none"
|
|
143
151
|
/>
|
|
144
152
|
<div className="flex flex-row items-center justify-between gap-2">
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
153
|
+
<HawaButton
|
|
154
|
+
startIcon={
|
|
155
|
+
<svg
|
|
156
|
+
aria-label="Filter Icon"
|
|
157
|
+
stroke="currentColor"
|
|
158
|
+
fill="currentColor"
|
|
159
|
+
stroke-width="0"
|
|
160
|
+
viewBox="0 0 16 16"
|
|
161
|
+
height="1em"
|
|
162
|
+
width="1em"
|
|
163
|
+
>
|
|
164
|
+
<path d="M6 10.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"></path>
|
|
165
|
+
</svg>
|
|
166
|
+
}
|
|
167
|
+
endIcon={
|
|
168
|
+
<svg
|
|
169
|
+
aria-label="Chevron Right Icon"
|
|
170
|
+
stroke="currentColor"
|
|
171
|
+
fill="currentColor"
|
|
172
|
+
stroke-width="0"
|
|
173
|
+
viewBox="0 0 16 16"
|
|
174
|
+
height="1em"
|
|
175
|
+
width="1em"
|
|
176
|
+
>
|
|
177
|
+
<path
|
|
178
|
+
fill-rule="evenodd"
|
|
179
|
+
d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
180
|
+
></path>
|
|
181
|
+
</svg>
|
|
182
|
+
}
|
|
183
|
+
>
|
|
148
184
|
{props.texts?.filter ?? "Filter"}
|
|
149
185
|
</HawaButton>
|
|
150
186
|
</div>
|
|
@@ -315,7 +351,17 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
315
351
|
direction={direction}
|
|
316
352
|
>
|
|
317
353
|
<div className="flex w-fit items-center justify-center rounded p-2 hover:bg-gray-200">
|
|
318
|
-
<
|
|
354
|
+
<svg
|
|
355
|
+
aria-label="Vertical Three Dots Menu Icon"
|
|
356
|
+
stroke="currentColor"
|
|
357
|
+
fill="currentColor"
|
|
358
|
+
stroke-width="0"
|
|
359
|
+
viewBox="0 0 16 16"
|
|
360
|
+
height="1em"
|
|
361
|
+
width="1em"
|
|
362
|
+
>
|
|
363
|
+
<path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"></path>
|
|
364
|
+
</svg>
|
|
319
365
|
</div>
|
|
320
366
|
</HawaMenu>
|
|
321
367
|
</div>
|
|
@@ -365,7 +411,20 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
365
411
|
page <= 1 ? setPage(range.length) : setPage(page - 1)
|
|
366
412
|
}
|
|
367
413
|
>
|
|
368
|
-
<
|
|
414
|
+
<svg
|
|
415
|
+
aria-label="Chevron Right Icon"
|
|
416
|
+
stroke="currentColor"
|
|
417
|
+
fill="currentColor"
|
|
418
|
+
stroke-width="0"
|
|
419
|
+
viewBox="0 0 16 16"
|
|
420
|
+
height="1em"
|
|
421
|
+
width="1em"
|
|
422
|
+
>
|
|
423
|
+
<path
|
|
424
|
+
fill-rule="evenodd"
|
|
425
|
+
d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
426
|
+
></path>
|
|
427
|
+
</svg>
|
|
369
428
|
</div>
|
|
370
429
|
{/* Numbered Pagination */}
|
|
371
430
|
<div className="flex flex-row items-center overflow-clip rounded transition-all">
|
|
@@ -462,7 +521,20 @@ export const HawaTable: FC<TableTypes> = ({
|
|
|
462
521
|
"flex h-6 w-6 items-center justify-center rounded bg-gray-100 p-1 text-xs hover:bg-layoutPrimary-700 "
|
|
463
522
|
)}
|
|
464
523
|
>
|
|
465
|
-
<
|
|
524
|
+
<svg
|
|
525
|
+
aria-label="Chevron Right Icon"
|
|
526
|
+
stroke="currentColor"
|
|
527
|
+
fill="currentColor"
|
|
528
|
+
stroke-width="0"
|
|
529
|
+
viewBox="0 0 16 16"
|
|
530
|
+
height="1em"
|
|
531
|
+
width="1em"
|
|
532
|
+
>
|
|
533
|
+
<path
|
|
534
|
+
fill-rule="evenodd"
|
|
535
|
+
d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"
|
|
536
|
+
></path>
|
|
537
|
+
</svg>
|
|
466
538
|
</div>
|
|
467
539
|
</div>
|
|
468
540
|
) : (
|
|
@@ -104,6 +104,7 @@ export const HawaTabs: FC<TabsTypes> = ({
|
|
|
104
104
|
props?.onChangeTab(opt)
|
|
105
105
|
}}
|
|
106
106
|
className={clsx(
|
|
107
|
+
"flex flex-row gap-2 items-center",
|
|
107
108
|
opt.value === selectedOption
|
|
108
109
|
? // props.options[selectedOption].value === opt.value
|
|
109
110
|
[
|
|
@@ -120,6 +121,7 @@ export const HawaTabs: FC<TabsTypes> = ({
|
|
|
120
121
|
// direction === "rtl" ? "bg-yellow-400" : "bg-yellow-400"
|
|
121
122
|
)}
|
|
122
123
|
>
|
|
124
|
+
{opt.icon}
|
|
123
125
|
{opt.label}
|
|
124
126
|
</button>
|
|
125
127
|
</li>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React, { useState, FC } from "react"
|
|
2
2
|
import clsx from "clsx"
|
|
3
|
-
import { HiChevronRight } from "react-icons/hi"
|
|
4
|
-
import { BsThreeDotsVertical } from "react-icons/bs"
|
|
5
3
|
import { HawaChip } from "./HawaChip"
|
|
6
4
|
import { HawaMenu } from "./HawaMenu"
|
|
7
5
|
|
|
@@ -68,7 +66,21 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
|
|
|
68
66
|
)}
|
|
69
67
|
onClick={() => setExpanded(!expanded)}
|
|
70
68
|
>
|
|
71
|
-
<
|
|
69
|
+
<svg
|
|
70
|
+
stroke="currentColor"
|
|
71
|
+
fill="currentColor"
|
|
72
|
+
stroke-width="0"
|
|
73
|
+
viewBox="0 0 20 20"
|
|
74
|
+
aria-hidden="true"
|
|
75
|
+
height="2em"
|
|
76
|
+
width="2em"
|
|
77
|
+
>
|
|
78
|
+
<path
|
|
79
|
+
fill-rule="evenodd"
|
|
80
|
+
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
|
81
|
+
clip-rule="evenodd"
|
|
82
|
+
></path>
|
|
83
|
+
</svg>
|
|
72
84
|
</div>
|
|
73
85
|
)}
|
|
74
86
|
<div
|
|
@@ -89,7 +101,17 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
|
|
|
89
101
|
menuItems={props.invoiceActions}
|
|
90
102
|
>
|
|
91
103
|
<div className=" p-2">
|
|
92
|
-
<BsThreeDotsVertical />
|
|
104
|
+
{/* <BsThreeDotsVertical /> */}
|
|
105
|
+
<svg
|
|
106
|
+
stroke="currentColor"
|
|
107
|
+
fill="currentColor"
|
|
108
|
+
stroke-width="0"
|
|
109
|
+
viewBox="0 0 16 16"
|
|
110
|
+
height="1em"
|
|
111
|
+
width="1em"
|
|
112
|
+
>
|
|
113
|
+
<path d="M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"></path>
|
|
114
|
+
</svg>
|
|
93
115
|
</div>
|
|
94
116
|
</HawaMenu>
|
|
95
117
|
</div>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
2
|
import { HawaTooltip } from "./HawaTooltip"
|
|
3
|
-
import { BsExclamationCircleFill } from "react-icons/bs"
|
|
4
3
|
|
|
5
4
|
type UsageCardTypes = {
|
|
6
5
|
tooltip?: any
|
|
@@ -15,7 +14,17 @@ export const UsageCard: FC<UsageCardTypes> = (props) => {
|
|
|
15
14
|
<span className="bg-white-200">{props.title}</span>
|
|
16
15
|
{props.tooltip && (
|
|
17
16
|
<HawaTooltip content={props.tooltip} position="right-top">
|
|
18
|
-
<
|
|
17
|
+
<svg
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
aria-label="Exclamation Circle"
|
|
20
|
+
fill="currentColor"
|
|
21
|
+
stroke-width="0"
|
|
22
|
+
viewBox="0 0 16 16"
|
|
23
|
+
height="1em"
|
|
24
|
+
width="1em"
|
|
25
|
+
>
|
|
26
|
+
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path>
|
|
27
|
+
</svg>
|
|
19
28
|
</HawaTooltip>
|
|
20
29
|
)}
|
|
21
30
|
</div>
|
package/src/elements/index.ts
CHANGED
|
@@ -18,13 +18,13 @@ export * from "./HawaTooltip"
|
|
|
18
18
|
export * from "./HawaTabs"
|
|
19
19
|
export * from "./HawaModal"
|
|
20
20
|
export * from "./HawaMenu"
|
|
21
|
+
export * from "./HawaDropdownMenu"
|
|
21
22
|
export * from "./HawaCopyrights"
|
|
22
23
|
export * from "./HawaStepper"
|
|
23
24
|
export * from "./HawaStats"
|
|
24
25
|
export * from "./HawaCodeBlock"
|
|
25
26
|
export * from "./HawaSpinner"
|
|
26
27
|
export * from "./HawaRadio"
|
|
27
|
-
export * from "./HawaDrawer"
|
|
28
28
|
export * from "./HawaDatepicker"
|
|
29
29
|
export * from "./DragDropImages"
|
|
30
30
|
export * from "./DraggableCard"
|
package/src/layout/Banner.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from "react"
|
|
2
2
|
import clsx from "clsx"
|
|
3
3
|
import { FaChevronRight } from "react-icons/fa"
|
|
4
|
-
import { FiSettings } from "react-icons/fi"
|
|
5
4
|
import useDiscloser from "../hooks/useDiscloser"
|
|
6
5
|
import useBreakpoint from "../hooks/useBreakpoint"
|
|
7
6
|
import { HawaButton, HawaMenu } from "../elements"
|
|
@@ -135,7 +134,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
135
134
|
onClick={() => setOpenSideMenu(true)}
|
|
136
135
|
className="z-40 mx-1 cursor-pointer rounded p-2 transition-all hover:bg-gray-100"
|
|
137
136
|
>
|
|
138
|
-
|
|
137
|
+
<svg
|
|
139
138
|
stroke="currentColor"
|
|
140
139
|
fill="currentColor"
|
|
141
140
|
stroke-width="0"
|
|
@@ -143,14 +142,14 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
143
142
|
aria-hidden="true"
|
|
144
143
|
height="1.6em"
|
|
145
144
|
width="1.6em"
|
|
146
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
147
145
|
>
|
|
148
146
|
<path
|
|
149
147
|
fill-rule="evenodd"
|
|
150
148
|
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
|
|
151
149
|
clip-rule="evenodd"
|
|
152
150
|
></path>
|
|
153
|
-
</svg>
|
|
151
|
+
</svg>{" "}
|
|
152
|
+
</div>
|
|
154
153
|
{/* Mobile Page Title */}
|
|
155
154
|
{props.pageTitle ? (
|
|
156
155
|
<div className="text-sm">{props.pageTitle}</div>
|
|
@@ -199,7 +198,6 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
199
198
|
className="absolute -left-1 h-10 w-10 text-gray-400"
|
|
200
199
|
fill="currentColor"
|
|
201
200
|
viewBox="0 0 20 20"
|
|
202
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
203
201
|
>
|
|
204
202
|
<path
|
|
205
203
|
fillRule="evenodd"
|
|
@@ -427,7 +425,21 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
427
425
|
className=" cursor-pointer rounded p-2 transition-all hover:bg-layoutPrimary-700"
|
|
428
426
|
onClick={() => onSettingsClick()}
|
|
429
427
|
>
|
|
430
|
-
<FiSettings />
|
|
428
|
+
{/* <FiSettings /> */}
|
|
429
|
+
<svg
|
|
430
|
+
aria-label="Settings Icon"
|
|
431
|
+
stroke="currentColor"
|
|
432
|
+
fill="none"
|
|
433
|
+
stroke-width="2"
|
|
434
|
+
viewBox="0 0 24 24"
|
|
435
|
+
stroke-linecap="round"
|
|
436
|
+
stroke-linejoin="round"
|
|
437
|
+
height="1em"
|
|
438
|
+
width="1em"
|
|
439
|
+
>
|
|
440
|
+
<circle cx="12" cy="12" r="3"></circle>
|
|
441
|
+
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
|
|
442
|
+
</svg>
|
|
431
443
|
</div>
|
|
432
444
|
)}
|
|
433
445
|
{/* Expand Button */}
|
|
@@ -72,11 +72,14 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
72
72
|
|
|
73
73
|
let drawerDefaultStyle =
|
|
74
74
|
"fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all"
|
|
75
|
-
|
|
75
|
+
//The width of the drawer when closed
|
|
76
|
+
let closeDrawerWidth = 56
|
|
77
|
+
//The width of the drawer when opened
|
|
78
|
+
let openDrawerWidth = 200
|
|
76
79
|
let drawerSizeStyle = {
|
|
77
80
|
opened: {
|
|
78
81
|
sm: "100",
|
|
79
|
-
md:
|
|
82
|
+
md: openDrawerWidth,
|
|
80
83
|
lg: "250",
|
|
81
84
|
},
|
|
82
85
|
closed: {
|
|
@@ -85,6 +88,7 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
85
88
|
lg: "56",
|
|
86
89
|
},
|
|
87
90
|
}
|
|
91
|
+
|
|
88
92
|
let drawerSizeCondition =
|
|
89
93
|
size > 600 ? drawerSizeStyle[keepOpen ? "opened" : "closed"][drawerSize] : 0
|
|
90
94
|
return (
|
|
@@ -142,7 +146,6 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
142
146
|
aria-hidden="true"
|
|
143
147
|
height="1.6em"
|
|
144
148
|
width="1.6em"
|
|
145
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
146
149
|
>
|
|
147
150
|
<path
|
|
148
151
|
fill-rule="evenodd"
|
|
@@ -232,8 +235,8 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
232
235
|
style={{
|
|
233
236
|
width:
|
|
234
237
|
size > 600
|
|
235
|
-
? `${openSideMenu ?
|
|
236
|
-
: `${openSideMenu ?
|
|
238
|
+
? `${openSideMenu ? openDrawerWidth : 56}px`
|
|
239
|
+
: `${openSideMenu ? openDrawerWidth : 0}px`,
|
|
237
240
|
}}
|
|
238
241
|
>
|
|
239
242
|
{/* Full Logo */}
|
|
@@ -276,8 +279,8 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
276
279
|
height: "calc(100% - 112px)",
|
|
277
280
|
width:
|
|
278
281
|
size > 600
|
|
279
|
-
? `${openSideMenu ?
|
|
280
|
-
: `${openSideMenu ?
|
|
282
|
+
? `${openSideMenu ? openDrawerWidth : 56}px`
|
|
283
|
+
: `${openSideMenu ? openDrawerWidth : 0}px`,
|
|
281
284
|
}}
|
|
282
285
|
>
|
|
283
286
|
{/* Drawer Items */}
|
|
@@ -401,15 +404,15 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
|
|
|
401
404
|
{/* Drawer Footer */}
|
|
402
405
|
<div
|
|
403
406
|
className={clsx(
|
|
404
|
-
"fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 bg-layoutPrimary-500 transition-all",
|
|
407
|
+
"fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-layoutPrimary-500 transition-all",
|
|
405
408
|
|
|
406
409
|
direction === "rtl" ? "flex-row-reverse" : "flex-row"
|
|
407
410
|
)}
|
|
408
411
|
style={{
|
|
409
412
|
width:
|
|
410
413
|
size > 600
|
|
411
|
-
? `${openSideMenu ?
|
|
412
|
-
: `${openSideMenu ?
|
|
414
|
+
? `${openSideMenu ? openDrawerWidth : 56}px`
|
|
415
|
+
: `${openSideMenu ? openDrawerWidth : 0}px`,
|
|
413
416
|
}}
|
|
414
417
|
>
|
|
415
418
|
{size > 600 && DrawerFooterActions && openSideMenu ? (
|
|
@@ -501,7 +504,6 @@ const AvatarIcon = () => (
|
|
|
501
504
|
className="absolute -left-1 h-10 w-10 text-gray-400"
|
|
502
505
|
fill="currentColor"
|
|
503
506
|
viewBox="0 0 20 20"
|
|
504
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
505
507
|
>
|
|
506
508
|
<path
|
|
507
509
|
fillRule="evenodd"
|
|
@@ -538,7 +540,6 @@ const ArrowIcon = ({ pointing, color }) => {
|
|
|
538
540
|
)}
|
|
539
541
|
fill={color}
|
|
540
542
|
viewBox="0 0 20 20"
|
|
541
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
542
543
|
>
|
|
543
544
|
<path
|
|
544
545
|
fillRule="evenodd"
|
|
@@ -559,7 +560,6 @@ const SettingsIcon = () => (
|
|
|
559
560
|
stroke-linejoin="round"
|
|
560
561
|
height="1em"
|
|
561
562
|
width="1em"
|
|
562
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
563
563
|
>
|
|
564
564
|
<circle cx="12" cy="12" r="3"></circle>
|
|
565
565
|
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
|