@sikka/hawa 0.1.57 → 0.1.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 (39) hide show
  1. package/{src/elements → archive}/HawaSnackbar.tsx +1 -1
  2. package/{src/elements → archive}/HawaSwitch.tsx +1 -1
  3. package/dist/index.d.mts +24 -45
  4. package/dist/index.d.ts +24 -45
  5. package/dist/index.js +1954 -2030
  6. package/dist/index.mjs +1773 -1825
  7. package/dist/styles.css +106 -99
  8. package/package.json +2 -1
  9. package/src/blocks/AuthForms/AppLanding.tsx +5 -5
  10. package/src/blocks/Misc/EmptyState.tsx +1 -1
  11. package/src/blocks/Misc/NoPermission.tsx +1 -1
  12. package/src/blocks/Payment/SelectPayment.tsx +153 -54
  13. package/src/blocks/Pricing/ComparingPlans.tsx +1 -1
  14. package/src/blocks/Pricing/HorizontalPricing.tsx +5 -5
  15. package/src/blocks/Referral/ReferralAccount.tsx +2 -2
  16. package/src/blocks/Referral/ReferralSettlement.tsx +1 -1
  17. package/src/elements/Button.tsx +1 -0
  18. package/src/elements/DragDropImages.tsx +32 -4
  19. package/src/elements/DropdownMenu.tsx +35 -34
  20. package/src/elements/HawaCodeBlock.tsx +3 -3
  21. package/src/elements/HawaDropdownMenu.tsx +4 -4
  22. package/src/elements/HawaRadio.tsx +3 -3
  23. package/src/elements/HawaSettingsRow.tsx +3 -3
  24. package/src/elements/HawaStepper.tsx +1 -1
  25. package/src/elements/HawaTable.tsx +12 -11
  26. package/src/elements/InvoiceAccordion.tsx +4 -4
  27. package/src/elements/Select.tsx +3 -3
  28. package/src/elements/Switch.tsx +68 -0
  29. package/src/elements/UsageCard.tsx +1 -1
  30. package/src/elements/UserFeedback.tsx +6 -3
  31. package/src/elements/index.ts +1 -3
  32. package/src/layout/AppLayout.tsx +57 -22
  33. package/src/layout/HawaAppLayout.tsx +6 -6
  34. package/src/layout/HawaAppLayoutSimplified.tsx +6 -6
  35. package/src/layout/HawaSiteLayout.tsx +3 -3
  36. package/src/layout/Sidebar.tsx +0 -2
  37. package/src/styles.css +106 -99
  38. package/src/tailwind.css +3 -2
  39. package/src/elements/HawaLogoButton.tsx +0 -154
@@ -66,13 +66,13 @@ const ChevronIcon = () => (
66
66
  aria-label="Chevron Right Icon"
67
67
  stroke="currentColor"
68
68
  fill="currentColor"
69
- stroke-width="0"
69
+ strokeWidth="0"
70
70
  viewBox="0 0 16 16"
71
71
  height="1em"
72
72
  width="1em"
73
73
  >
74
74
  <path
75
- fill-rule="evenodd"
75
+ fillRule="evenodd"
76
76
  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"
77
77
  ></path>
78
78
  </svg>
@@ -137,7 +137,7 @@ export const HawaTable: FC<TableTypes> = ({
137
137
  aria-label="Search Icon"
138
138
  stroke="currentColor"
139
139
  fill="gray"
140
- stroke-width="0"
140
+ strokeWidth="0"
141
141
  viewBox="0 0 512 512"
142
142
  height="1em"
143
143
  width="1em"
@@ -155,7 +155,7 @@ export const HawaTable: FC<TableTypes> = ({
155
155
  aria-label="Filter Icon"
156
156
  stroke="currentColor"
157
157
  fill="currentColor"
158
- stroke-width="0"
158
+ strokeWidth="0"
159
159
  viewBox="0 0 16 16"
160
160
  height="1em"
161
161
  width="1em"
@@ -167,13 +167,13 @@ export const HawaTable: FC<TableTypes> = ({
167
167
  aria-label="Chevron Right Icon"
168
168
  stroke="currentColor"
169
169
  fill="currentColor"
170
- stroke-width="0"
170
+ strokeWidth="0"
171
171
  viewBox="0 0 16 16"
172
172
  height="1em"
173
173
  width="1em"
174
174
  >
175
175
  <path
176
- fill-rule="evenodd"
176
+ fillRule="evenodd"
177
177
  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"
178
178
  ></path>
179
179
  </svg>
@@ -329,6 +329,7 @@ export const HawaTable: FC<TableTypes> = ({
329
329
  >
330
330
  <div className="flex items-center justify-center">
331
331
  <DropdownMenu
332
+ width="sm"
332
333
  direction={direction}
333
334
  side="right"
334
335
  items={props.actions}
@@ -338,7 +339,7 @@ export const HawaTable: FC<TableTypes> = ({
338
339
  aria-label="Vertical Three Dots Menu Icon"
339
340
  stroke="currentColor"
340
341
  fill="currentColor"
341
- stroke-width="0"
342
+ strokeWidth="0"
342
343
  viewBox="0 0 16 16"
343
344
  height="1em"
344
345
  width="1em"
@@ -574,13 +575,13 @@ export const HawaTable: FC<TableTypes> = ({
574
575
  // aria-label="Chevron Right Icon"
575
576
  // stroke="currentColor"
576
577
  // fill="currentColor"
577
- // stroke-width="0"
578
+ // strokeWidth="0"
578
579
  // viewBox="0 0 16 16"
579
580
  // height="1em"
580
581
  // width="1em"
581
582
  // >
582
583
  // <path
583
- // fill-rule="evenodd"
584
+ // fillRule="evenodd"
584
585
  // 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"
585
586
  // ></path>
586
587
  // </svg>
@@ -685,13 +686,13 @@ export const HawaTable: FC<TableTypes> = ({
685
686
  // aria-label="Chevron Right Icon"
686
687
  // stroke="currentColor"
687
688
  // fill="currentColor"
688
- // stroke-width="0"
689
+ // strokeWidth="0"
689
690
  // viewBox="0 0 16 16"
690
691
  // height="1em"
691
692
  // width="1em"
692
693
  // >
693
694
  // <path
694
- // fill-rule="evenodd"
695
+ // fillRule="evenodd"
695
696
  // 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"
696
697
  // ></path>
697
698
  // </svg>
@@ -69,16 +69,16 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
69
69
  <svg
70
70
  stroke="currentColor"
71
71
  fill="currentColor"
72
- stroke-width="0"
72
+ strokeWidth="0"
73
73
  viewBox="0 0 20 20"
74
74
  aria-hidden="true"
75
75
  height="2em"
76
76
  width="2em"
77
77
  >
78
78
  <path
79
- fill-rule="evenodd"
79
+ fillRule="evenodd"
80
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"
81
+ clipRule="evenodd"
82
82
  ></path>
83
83
  </svg>
84
84
  </div>
@@ -105,7 +105,7 @@ export const InvoiceAccordion: FC<InvoiceAccordionTypes> = ({
105
105
  <svg
106
106
  stroke="currentColor"
107
107
  fill="currentColor"
108
- stroke-width="0"
108
+ strokeWidth="0"
109
109
  viewBox="0 0 16 16"
110
110
  height="1em"
111
111
  width="1em"
@@ -25,13 +25,13 @@ const SelectTrigger = React.forwardRef<
25
25
  aria-label="Chevron Right Icon"
26
26
  stroke="currentColor"
27
27
  fill="currentColor"
28
- stroke-width="0"
28
+ strokeWidth="0"
29
29
  viewBox="0 0 16 16"
30
30
  height="1em"
31
31
  width="1em"
32
32
  >
33
33
  <path
34
- fill-rule="evenodd"
34
+ fillRule="evenodd"
35
35
  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"
36
36
  ></path>
37
37
  </svg>
@@ -101,7 +101,7 @@ const SelectItem = React.forwardRef<
101
101
  aria-label="Check Mark"
102
102
  stroke="currentColor"
103
103
  fill="currentColor"
104
- stroke-width="0"
104
+ strokeWidth="0"
105
105
  viewBox="0 0 512 512"
106
106
  height="0.60em"
107
107
  width="0.60em"
@@ -0,0 +1,68 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as SwitchPrimitives from "@radix-ui/react-switch"
5
+ import { cn } from "../util"
6
+
7
+ let rootSize = {
8
+ default: "h-[25px] w-[42px]",
9
+ sm: "h-[20px] w-[37px]",
10
+ }
11
+ let thumbSize = {
12
+ default: "h-[21px] w-[21px]",
13
+ sm: "h-[16px] w-[16px]",
14
+ }
15
+
16
+ interface SwitchProps
17
+ extends React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> {
18
+ size?: "default" | "sm" | "lg" // Define the possible sizes here
19
+ label?: string
20
+ }
21
+
22
+ export const Switch = React.forwardRef<
23
+ React.ElementRef<typeof SwitchPrimitives.Root>,
24
+ SwitchProps
25
+ >(({ className, size = "default", label, ...props }, ref) => {
26
+ const [parentDirection, setParentDirection] = React.useState(null)
27
+ const parentRef = React.useRef(null)
28
+
29
+ React.useEffect(() => {
30
+ if (parentRef.current && parentRef.current.parentNode) {
31
+ const dir = window.getComputedStyle(
32
+ parentRef.current.parentNode
33
+ ).direction
34
+ setParentDirection(dir)
35
+ }
36
+ })
37
+
38
+ return (
39
+ <div className="flex flex-row items-center" ref={parentRef}>
40
+ <SwitchPrimitives.Root
41
+ className={cn(
42
+ "relative cursor-pointer rounded-full bg-primary/20 outline-none data-[state=checked]:bg-primary",
43
+ className,
44
+ rootSize[size]
45
+ )}
46
+ {...props}
47
+ ref={ref}
48
+ >
49
+ <SwitchPrimitives.Thumb
50
+ className={cn(
51
+ thumbSize[size],
52
+ "block rounded-full bg-white transition-transform duration-100 will-change-transform data-[state=checked]:bg-primary-foreground dark:bg-background",
53
+
54
+ parentDirection === "rtl"
55
+ ? "-translate-x-0.5 data-[state=checked]:-translate-x-[19px]"
56
+ : "translate-x-0.5 data-[state=checked]:translate-x-[19px]"
57
+ )}
58
+ />
59
+ </SwitchPrimitives.Root>
60
+ {label && (
61
+ <span className="mx-2 text-sm font-medium text-gray-900 dark:text-gray-300">
62
+ {label}
63
+ </span>
64
+ )}
65
+ </div>
66
+ )
67
+ })
68
+ Switch.displayName = SwitchPrimitives.Root.displayName
@@ -18,7 +18,7 @@ export const UsageCard: FC<UsageCardTypes> = (props) => {
18
18
  stroke="currentColor"
19
19
  aria-label="Exclamation Circle"
20
20
  fill="currentColor"
21
- stroke-width="0"
21
+ strokeWidth="0"
22
22
  viewBox="0 0 16 16"
23
23
  height="1em"
24
24
  width="1em"
@@ -1,6 +1,7 @@
1
1
  import React, { FC, useEffect, useRef, useState } from "react"
2
2
  import clsx from "clsx"
3
3
  import { HawaButton } from "./HawaButton"
4
+ import { Button } from "./Button"
4
5
 
5
6
  type ComponentTypes = {
6
7
  title?: string
@@ -30,7 +31,9 @@ export const UserFeedback: FC<ComponentTypes> = ({
30
31
  useEffect(() => {
31
32
  //To change opacity and hide the component
32
33
  const timeoutHide = setTimeout(() => {
33
- setClosingTimer(closingTimer - 1)
34
+ if (closingTimer >= 0) {
35
+ setClosingTimer(closingTimer - 1)
36
+ }
34
37
  }, 1000)
35
38
 
36
39
  return () => {
@@ -110,13 +113,13 @@ export const UserFeedback: FC<ComponentTypes> = ({
110
113
  </div>
111
114
  )}
112
115
  {answered && (
113
- <div className="absolute left-0 top-0 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all">
116
+ <div className="absolute left-0 top-0 gap-2 flex h-full w-full flex-col items-center justify-center rounded bg-black bg-opacity-80 p-4 text-center transition-all">
114
117
  <span className="font-bold text-white">
115
118
  Thank you for your answer. This box will disappear in
116
119
  {" " + closingTimer} seconds
117
120
  </span>
118
121
  <div className="flex flex-row gap-2">
119
- <HawaButton onClick={() => slowClose()}>Close</HawaButton>
122
+ <Button onClick={() => slowClose()}>Close</Button>
120
123
  </div>
121
124
  </div>
122
125
  )}
@@ -1,5 +1,3 @@
1
- export * from "./HawaSnackbar"
2
- export * from "./HawaSwitch"
3
1
  export * from "./HawaCheckbox"
4
2
  export * from "./HawaPanelTabs"
5
3
  export * from "./HawaChip"
@@ -51,7 +49,6 @@ export * from "./HawaLandingCard"
51
49
  //Buttons
52
50
  export * from "./HawaButton"
53
51
  export * from "./HawaStoreButtons"
54
- export * from "./HawaLogoButton"
55
52
 
56
53
  // v0.1
57
54
  export * from "./Button"
@@ -69,3 +66,4 @@ export * from "./Textarea"
69
66
  export * from "./Separator"
70
67
  export * from "./Toast"
71
68
  export * from "./Toaster"
69
+ export * from "./Switch"
@@ -6,6 +6,7 @@ import { Button, DropdownMenu, Tooltip } from "../elements"
6
6
  import { SidebarGroup } from "./Sidebar"
7
7
 
8
8
  type AppLayoutTypes = {
9
+ design?: "default" | "bubbles" | "floating"
9
10
  /** The pages of the side drawer */
10
11
  drawerItems: Item[]
11
12
  // The direction of the layout
@@ -62,6 +63,7 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
62
63
  DrawerFooterActions,
63
64
  currentPage,
64
65
  clickedItem,
66
+ design = "default",
65
67
  ...props
66
68
  }) => {
67
69
  let closeDrawerWidth = 56
@@ -167,16 +169,16 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
167
169
  <svg
168
170
  stroke="currentColor"
169
171
  fill="currentColor"
170
- stroke-width="0"
172
+ strokeWidth={0}
171
173
  viewBox="0 0 20 20"
172
174
  aria-hidden="true"
173
175
  height="1.6em"
174
176
  width="1.6em"
175
177
  >
176
178
  <path
177
- fill-rule="evenodd"
179
+ fillRule="evenodd"
180
+ clipRule="evenodd"
178
181
  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"
179
- clip-rule="evenodd"
180
182
  ></path>
181
183
  </svg>
182
184
  </div>
@@ -241,8 +243,14 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
241
243
  */}
242
244
  <div
243
245
  className={clsx(
244
- "fixed top-0 z-40 flex h-full flex-col justify-between overflow-x-clip transition-all",
245
- isRTL ? "right-0" : "left-0"
246
+ "fixed z-40 flex flex-col justify-between overflow-x-clip transition-all",
247
+ design === "floating"
248
+ ? isRTL
249
+ ? "right-5 top-5"
250
+ : "bottom-5 left-5 top-5"
251
+ : isRTL
252
+ ? "right-0 top-0 h-full"
253
+ : "left-0 top-0 h-full"
246
254
  )}
247
255
  style={{
248
256
  width:
@@ -258,8 +266,13 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
258
266
  setOpenSideMenu(true)
259
267
  }}
260
268
  onMouseLeave={() => {
261
- keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false)
262
- setOpenedSidebarItem("")
269
+ if (keepOpen) {
270
+ setOpenSideMenu(true)
271
+ } else {
272
+ setOpenedSidebarItem("")
273
+ setOpenSideMenu(false)
274
+ }
275
+ // keepOpen ? setOpenSideMenu(true) : setOpenSideMenu(false)
263
276
  }}
264
277
  ref={ref}
265
278
  >
@@ -271,7 +284,8 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
271
284
  <div
272
285
  dir={direction}
273
286
  className={clsx(
274
- "fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center bg-primary-foreground transition-all"
287
+ "fixed z-50 mb-2 flex h-14 w-full flex-row items-center justify-center transition-all",
288
+ "bg-primary-foreground"
275
289
  )}
276
290
  style={{
277
291
  width:
@@ -288,15 +302,8 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
288
302
  <img
289
303
  className={clsx(
290
304
  "h-9 opacity-0 transition-all",
291
- // isRTL ? "right-2.5" : "left-2.5",
292
305
  !openSideMenu ? "invisible opacity-0" : "visible opacity-100"
293
- // size > 600 ? "" : "right-4"
294
306
  )}
295
- // className={clsx(
296
- // "fixed top-2.5 h-9 transition-all",
297
- // isRTL ? "right-2.5" : "left-2.5",
298
- // !openSideMenu ? "invisible opacity-0" : "visible opacity-100"
299
- // )}
300
307
  src={props.logoLink}
301
308
  />
302
309
  {/*
@@ -307,8 +314,17 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
307
314
  {size > 600 ? (
308
315
  <img
309
316
  className={clsx(
310
- "fixed top-2.5 h-9 transition-all",
311
- isRTL ? "right-2.5" : "left-2.5",
317
+ "fixed h-9 transition-all",
318
+ // isRTL ? "right-2.5" : "left-2.5",
319
+
320
+ design === "floating"
321
+ ? isRTL
322
+ ? "right-7.5 top-7"
323
+ : "left-7.5 top-7"
324
+ : isRTL
325
+ ? "right-2.5 top-2.5"
326
+ : "left-2.5 top-2.5",
327
+
312
328
  openSideMenu ? "invisible opacity-0" : "visible opacity-100"
313
329
  )}
314
330
  src={props.logoSymbol}
@@ -322,11 +338,15 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
322
338
  */}
323
339
  <div
324
340
  className={clsx(
325
- "fixed bottom-14 top-14 bg-primary-foreground p-2 py-2 transition-all",
341
+ "fixed bottom-14 bg-primary-foreground p-2 py-2 transition-all",
342
+ design === "floating" ? "top-[76px]" : "top-14",
326
343
  openSideMenu ? "overflow-auto" : "overflow-hidden"
327
344
  )}
328
345
  style={{
329
- height: "calc(100% - 112px)",
346
+ height:
347
+ design === "floating"
348
+ ? "calc(100% - 152px)"
349
+ : "calc(100% - 112px)",
330
350
  width:
331
351
  size > 600
332
352
  ? `${openSideMenu ? openDrawerWidth : 56}px`
@@ -363,8 +383,9 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
363
383
  */}
364
384
  <div
365
385
  className={clsx(
366
- "fixed bottom-0 flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",
367
- direction === "rtl" ? "flex-row-reverse" : "flex-row"
386
+ "fixed flex h-14 w-full items-center justify-center gap-2 overflow-clip bg-primary-foreground transition-all",
387
+ direction === "rtl" ? "flex-row-reverse" : "flex-row",
388
+ design === "floating" ? "bottom-5" : "bottom-0"
368
389
  )}
369
390
  style={{
370
391
  width:
@@ -426,7 +447,21 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
426
447
  <div
427
448
  className="fixed overflow-y-auto transition-all"
428
449
  style={
429
- isRTL
450
+ design === "floating"
451
+ ? isRTL
452
+ ? {
453
+ height: `calc(100% - ${props.topBar ? "56" : "0"}px)`,
454
+ width: `calc(100% - ${drawerSizeCondition + 20}px)`,
455
+ left: "0px",
456
+ top: props.topBar ? "56px" : "0px",
457
+ }
458
+ : {
459
+ height: `calc(100% - ${props.topBar ? "56" : "0"}px)`,
460
+ width: `calc(100% - ${drawerSizeCondition + 20}px)`,
461
+ left: `${drawerSizeCondition + 20}px`,
462
+ top: props.topBar ? "56px" : "0px",
463
+ }
464
+ : isRTL
430
465
  ? {
431
466
  height: `calc(100% - ${props.topBar ? "56" : "0"}px)`,
432
467
  width: `calc(100% - ${drawerSizeCondition}px)`,
@@ -137,16 +137,16 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
137
137
  <svg
138
138
  stroke="currentColor"
139
139
  fill="currentColor"
140
- stroke-width="0"
140
+ strokeWidth="0"
141
141
  viewBox="0 0 20 20"
142
142
  aria-hidden="true"
143
143
  height="1.6em"
144
144
  width="1.6em"
145
145
  >
146
146
  <path
147
- fill-rule="evenodd"
147
+ fillRule="evenodd"
148
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"
149
- clip-rule="evenodd"
149
+ clipRule="evenodd"
150
150
  ></path>
151
151
  </svg>{" "}
152
152
  </div>
@@ -430,10 +430,10 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
430
430
  aria-label="Settings Icon"
431
431
  stroke="currentColor"
432
432
  fill="none"
433
- stroke-width="2"
433
+ strokeWidth="2"
434
434
  viewBox="0 0 24 24"
435
- stroke-linecap="round"
436
- stroke-linejoin="round"
435
+ strokeLinecap="round"
436
+ strokeLinejoin="round"
437
437
  height="1em"
438
438
  width="1em"
439
439
  >
@@ -151,16 +151,16 @@ export const HawaAppLayoutSimplified: React.FunctionComponent<
151
151
  <svg
152
152
  stroke="currentColor"
153
153
  fill="currentColor"
154
- stroke-width="0"
154
+ strokeWidth="0"
155
155
  viewBox="0 0 20 20"
156
156
  aria-hidden="true"
157
157
  height="1.6em"
158
158
  width="1.6em"
159
159
  >
160
160
  <path
161
- fill-rule="evenodd"
161
+ fillRule="evenodd"
162
162
  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"
163
- clip-rule="evenodd"
163
+ clipRule="evenodd"
164
164
  ></path>
165
165
  </svg>
166
166
  </div>
@@ -576,10 +576,10 @@ const SettingsIcon = () => (
576
576
  <svg
577
577
  stroke="currentColor"
578
578
  fill="none"
579
- stroke-width="2"
579
+ strokeWidth="2"
580
580
  viewBox="0 0 24 24"
581
- stroke-linecap="round"
582
- stroke-linejoin="round"
581
+ strokeLinecap="round"
582
+ strokeLinejoin="round"
583
583
  height="1em"
584
584
  width="1em"
585
585
  >
@@ -120,16 +120,16 @@ export const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes> = ({
120
120
  <svg
121
121
  stroke="currentColor"
122
122
  fill="currentColor"
123
- stroke-width="0"
123
+ strokeWidth="0"
124
124
  viewBox="0 0 20 20"
125
125
  aria-hidden="true"
126
126
  height="1.6em"
127
127
  width="1.6em"
128
128
  >
129
129
  <path
130
- fill-rule="evenodd"
130
+ fillRule="evenodd"
131
131
  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"
132
- clip-rule="evenodd"
132
+ clipRule="evenodd"
133
133
  ></path>
134
134
  </svg>{" "}
135
135
  </div>
@@ -36,14 +36,12 @@ const AccordionTrigger = React.forwardRef<
36
36
  aria-label="Chevron Right Icon"
37
37
  stroke="currentColor"
38
38
  fill="currentColor"
39
- stroke-width="1"
40
39
  viewBox="0 0 16 16"
41
40
  height="1em"
42
41
  width="1em"
43
42
  className="h-4 w-4 shrink-0 rotate-90 transition-transform duration-200"
44
43
  >
45
44
  <path
46
- fill-rule="evenodd"
47
45
  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"
48
46
  ></path>
49
47
  </svg>