@sikka/hawa 0.0.173 → 0.0.174
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/dist/styles.css +36 -45
- package/es/elements/HawaChip.d.ts +1 -1
- package/es/elements/SubsectionList.d.ts +19 -0
- package/es/elements/index.d.ts +1 -0
- package/es/index.es.js +1 -1
- package/lib/elements/HawaChip.d.ts +1 -1
- package/lib/elements/SubsectionList.d.ts +19 -0
- package/lib/elements/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/DraggableCard.tsx +1 -1
- package/src/elements/HawaButton.tsx +3 -3
- package/src/elements/HawaChip.tsx +1 -1
- package/src/elements/HawaLogoButton.tsx +3 -2
- package/src/elements/HawaMenu.tsx +1 -1
- package/src/elements/HawaPricingCard.tsx +7 -1
- package/src/elements/HawaRadio.tsx +1 -1
- package/src/elements/HawaStats.tsx +1 -1
- package/src/elements/HawaTable.tsx +1 -1
- package/src/elements/HawaTabs.tsx +7 -7
- package/src/elements/HawaTimeline.tsx +8 -6
- package/src/elements/SubsectionList.tsx +78 -0
- package/src/elements/index.ts +1 -0
- package/src/layout/HawaAppLayout.tsx +6 -6
- package/src/layout/HawaContainer.tsx +1 -1
- package/src/layout/HawaSiteLayout.tsx +3 -3
- package/src/styles.css +36 -45
- package/src/tailwind.css +4 -3
- package/storybook-static/{870.6284ce82.iframe.bundle.js → 239.5e8067ea.iframe.bundle.js} +2 -2
- package/storybook-static/{870.6284ce82.iframe.bundle.js.LICENSE.txt → 239.5e8067ea.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.ea6f9b48.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/tailwind.config.js +8 -42
- package/storybook-static/main.653018b6.iframe.bundle.js +0 -1
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export const DraggableCard: React.FunctionComponent<DraggableCardTypes> = (
|
|
|
7
7
|
props
|
|
8
8
|
) => {
|
|
9
9
|
return (
|
|
10
|
-
<div className="bg-layoutPrimary-
|
|
10
|
+
<div className="bg-layoutPrimary-500 flex flex-row rounded p-4">
|
|
11
11
|
<button
|
|
12
12
|
className="inline-flex items-center rounded bg-white p-2 text-center text-sm font-medium text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-50 dark:bg-gray-800 dark:text-white dark:hover:bg-gray-700 dark:focus:ring-gray-600"
|
|
13
13
|
type="button"
|
|
@@ -31,7 +31,7 @@ const sizeStyles = {
|
|
|
31
31
|
const widthStyles = {
|
|
32
32
|
full: "w-full flex justify-center px-5 py-2.5 text-center inline-flex items-center",
|
|
33
33
|
normal:
|
|
34
|
-
"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-darker dark:hover:brightness-90 dark:focus:ring-
|
|
34
|
+
"w-fit dark:bg-buttonPrimary-dark dark:hover:bg-buttonPrimary-darker dark:hover:brightness-90 dark:focus:ring-buttonPrimary-500",
|
|
35
35
|
half: "w-1/2",
|
|
36
36
|
}
|
|
37
37
|
const variantStyles = {
|
|
@@ -42,9 +42,9 @@ const variantStyles = {
|
|
|
42
42
|
const colorStyles = {
|
|
43
43
|
contained: {
|
|
44
44
|
default:
|
|
45
|
-
"text-neutral-900 bg-buttonPrimary-
|
|
45
|
+
"text-neutral-900 bg-buttonPrimary-500 hover:bg-buttonPrimary-darker bg-buttonPrimary-500 text-white",
|
|
46
46
|
primary:
|
|
47
|
-
"text-white bg-buttonPrimary-
|
|
47
|
+
"text-white bg-buttonPrimary-500 hover:bg-buttonPrimary-darker transition-all",
|
|
48
48
|
secondary:
|
|
49
49
|
"text-neutral-900 bg-buttonSecondary-default hover:text-white hover:bg-buttonSecondary-darker",
|
|
50
50
|
},
|
|
@@ -146,17 +146,18 @@ export const HawaLogoButton: React.FunctionComponent<LogoButtonTypes> = (
|
|
|
146
146
|
default:
|
|
147
147
|
break
|
|
148
148
|
}
|
|
149
|
+
|
|
149
150
|
return (
|
|
150
151
|
<button
|
|
151
152
|
style={{ direction: isArabic ? "rtl" : "ltr" }}
|
|
152
153
|
onClick={props.onClick}
|
|
153
|
-
className="
|
|
154
|
+
className="my-2 flex h-11 w-full flex-row justify-center rounded bg-white align-middle transition-all hover:ring-1 hover:ring-buttonPrimary-500 hover:brightness-90"
|
|
154
155
|
>
|
|
155
156
|
<div className="flex h-full flex-row items-center justify-end">
|
|
156
157
|
{logoElement}
|
|
157
158
|
</div>
|
|
158
159
|
<div style={{ width: 10 }} />
|
|
159
|
-
<div className="flex h-full flex-col items-start justify-center">
|
|
160
|
+
<div className="flex h-full flex-col items-start justify-center dark:text-black">
|
|
160
161
|
{props.buttonText}
|
|
161
162
|
</div>
|
|
162
163
|
</button>
|
|
@@ -106,7 +106,7 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
|
|
|
106
106
|
onClick={(e) => item.action(e, item.label)}
|
|
107
107
|
className={
|
|
108
108
|
item.isButton
|
|
109
|
-
? "mx-1 my-1 flex cursor-pointer flex-row items-center rounded bg-buttonPrimary-
|
|
109
|
+
? "mx-1 my-1 flex cursor-pointer flex-row items-center rounded bg-buttonPrimary-500 py-2 px-4 text-white hover:bg-buttonPrimary-darker rtl:flex-row-reverse dark:hover:bg-buttonPrimary-darker dark:hover:text-white"
|
|
110
110
|
: "mx-1 flex cursor-pointer flex-row items-center rounded py-2 px-4 hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
|
|
111
111
|
}
|
|
112
112
|
>
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
|
|
3
|
+
// TODO: make the texts in one object property
|
|
4
|
+
// TODO: give it a background color (white)
|
|
5
|
+
// TODO: remove title_ar
|
|
6
|
+
// TODO: spicifiy features object
|
|
7
|
+
// TODO: remove features_ar
|
|
8
|
+
|
|
3
9
|
type PricingCardTypes = {
|
|
4
10
|
lang: "ar" | "en"
|
|
5
11
|
features: [any]
|
|
@@ -95,7 +101,7 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = (
|
|
|
95
101
|
</span>
|
|
96
102
|
</div>
|
|
97
103
|
<ul role="list" className="my-7 space-y-0">
|
|
98
|
-
{
|
|
104
|
+
{props.features?.map((feature, o) => {
|
|
99
105
|
return (
|
|
100
106
|
<li key={o} className="flex ">
|
|
101
107
|
<svg
|
|
@@ -14,7 +14,7 @@ type RadioTypes = {
|
|
|
14
14
|
export const HawaRadio: React.FunctionComponent<RadioTypes> = (props) => {
|
|
15
15
|
const [selectedOption, setSelectedOption] = useState(props.defaultValue)
|
|
16
16
|
let activeTabStyle =
|
|
17
|
-
"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-
|
|
17
|
+
"inline-block py-2 px-4 w-full text-white bg-buttonPrimary-500 rounded active"
|
|
18
18
|
let inactiveTabStyle =
|
|
19
19
|
"inline-block py-2 px-4 w-full bg-gray-100 rounded hover:text-gray-900 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-white"
|
|
20
20
|
|
|
@@ -15,7 +15,7 @@ export const HawaStats: React.FunctionComponent<StatTypes> = (props) => {
|
|
|
15
15
|
"flex flex-col gap-1 rounded p-4 text-sm h-fit max-h-fit"
|
|
16
16
|
let statStyles = {
|
|
17
17
|
plain: "",
|
|
18
|
-
contained: "bg-layoutPrimary-
|
|
18
|
+
contained: "bg-layoutPrimary-500 w-fit",
|
|
19
19
|
outlined: "ring-2 w-fit",
|
|
20
20
|
}
|
|
21
21
|
return (
|
|
@@ -31,7 +31,7 @@ export const HawaTable: React.FunctionComponent<TableTypes> = ({
|
|
|
31
31
|
return (
|
|
32
32
|
<div className="relative overflow-x-clip rounded">
|
|
33
33
|
<table className="w-full text-left text-sm text-gray-500 dark:text-gray-400">
|
|
34
|
-
<thead className="bg-layoutPrimary-
|
|
34
|
+
<thead className="bg-layoutPrimary-500 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400">
|
|
35
35
|
<tr>
|
|
36
36
|
{props.columns.map((col: any, i: any) => (
|
|
37
37
|
<th key={i} scope="col" className={clsx(sizeStyles[size])}>
|
|
@@ -18,9 +18,9 @@ export const HawaTabs: React.FunctionComponent<TabsTypes> = ({
|
|
|
18
18
|
// const [selectedOption, setSelectedOption] = useState(props.defaultValue - 1)
|
|
19
19
|
let activeTabStyle = {
|
|
20
20
|
vertical:
|
|
21
|
-
"inline-block py-2 px-4 text-white bg-buttonPrimary-
|
|
21
|
+
"inline-block py-2 px-4 text-white bg-buttonPrimary-500 active",
|
|
22
22
|
horizontal:
|
|
23
|
-
"inline-block py-2 px-4 text-white bg-buttonPrimary-
|
|
23
|
+
"inline-block py-2 px-4 text-white bg-buttonPrimary-500 rounded rounded-br-none rounded-bl-none active",
|
|
24
24
|
}
|
|
25
25
|
let inactiveTabStyle = {
|
|
26
26
|
vertical:
|
|
@@ -33,11 +33,11 @@ export const HawaTabs: React.FunctionComponent<TabsTypes> = ({
|
|
|
33
33
|
let orientationStyle = {
|
|
34
34
|
vertical: {
|
|
35
35
|
container: "flex flex-row",
|
|
36
|
-
tabs: "flex flex-col w-fit flex-wrap rounded border-b-
|
|
36
|
+
tabs: "flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
|
|
37
37
|
},
|
|
38
38
|
horizontal: {
|
|
39
39
|
container: "",
|
|
40
|
-
tabs: "flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-
|
|
40
|
+
tabs: "flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
|
|
41
41
|
},
|
|
42
42
|
}
|
|
43
43
|
let containerStyle = {
|
|
@@ -46,9 +46,9 @@ export const HawaTabs: React.FunctionComponent<TabsTypes> = ({
|
|
|
46
46
|
}
|
|
47
47
|
let tabsStyle = {
|
|
48
48
|
vertical:
|
|
49
|
-
"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-
|
|
49
|
+
"sticky top-2 h-fit flex flex-col w-fit flex-wrap rounded border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
|
|
50
50
|
horizontal:
|
|
51
|
-
"flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-
|
|
51
|
+
"flex w-fit flex-wrap rounded rounded-br-none rounded-bl-none border-b-buttonPrimary-500 bg-gray-100 text-center text-sm font-medium text-gray-500 dark:text-gray-400",
|
|
52
52
|
}
|
|
53
53
|
return (
|
|
54
54
|
<div
|
|
@@ -61,7 +61,7 @@ export const HawaTabs: React.FunctionComponent<TabsTypes> = ({
|
|
|
61
61
|
<ul
|
|
62
62
|
className={clsx(
|
|
63
63
|
tabsStyle[orientation],
|
|
64
|
-
"border-buttonPrimary-
|
|
64
|
+
"border-buttonPrimary-500",
|
|
65
65
|
orientation === "vertical"
|
|
66
66
|
? direction === "rtl"
|
|
67
67
|
? "rounded-none rounded-r-lg border-l-2"
|
|
@@ -17,12 +17,12 @@ export const HawaTimeline: React.FunctionComponent<THawaTimeline> = ({
|
|
|
17
17
|
}
|
|
18
18
|
let lineStyles = {
|
|
19
19
|
vertical: {
|
|
20
|
-
default: "w-1 h-32 rounded bg-buttonPrimary-
|
|
21
|
-
selected: "w-1 h-32 rounded bg-buttonPrimary-
|
|
20
|
+
default: "w-1 h-32 rounded bg-buttonPrimary-500 ml-6 my-2",
|
|
21
|
+
selected: "w-1 h-32 rounded bg-buttonPrimary-500 ml-6 my-2",
|
|
22
22
|
},
|
|
23
23
|
horizontal: {
|
|
24
|
-
default: "h-0.5 w-full rounded bg-buttonPrimary-
|
|
25
|
-
selected: "h-0.5 w-full rounded bg-buttonPrimary-
|
|
24
|
+
default: "h-0.5 w-full rounded bg-buttonPrimary-500",
|
|
25
|
+
selected: "h-0.5 w-full rounded bg-buttonPrimary-500",
|
|
26
26
|
},
|
|
27
27
|
}
|
|
28
28
|
return (
|
|
@@ -71,8 +71,10 @@ const TimelineStep = (props) => (
|
|
|
71
71
|
>
|
|
72
72
|
<div
|
|
73
73
|
className={clsx(
|
|
74
|
-
"m-2 mr-4 flex h-10 w-10 items-center justify-center rounded ring-2 ring-
|
|
75
|
-
props.current
|
|
74
|
+
"ring-buttonPrimary-200 m-2 mr-4 flex h-10 w-10 items-center justify-center rounded ring-2 ring-offset-2",
|
|
75
|
+
props.current
|
|
76
|
+
? "bg-buttonPrimary-500 text-white"
|
|
77
|
+
: "bg-buttonPrimary-200"
|
|
76
78
|
)}
|
|
77
79
|
>
|
|
78
80
|
{props.stepNumber}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import clsx from "clsx"
|
|
2
|
+
import React, { useState } from "react"
|
|
3
|
+
import { HawaChip } from "./HawaChip"
|
|
4
|
+
|
|
5
|
+
type SubsectionListTypes = {
|
|
6
|
+
align?: any
|
|
7
|
+
subsections: [
|
|
8
|
+
{
|
|
9
|
+
title: string
|
|
10
|
+
sections: [
|
|
11
|
+
{
|
|
12
|
+
label: string
|
|
13
|
+
action: () => void
|
|
14
|
+
icon?: any
|
|
15
|
+
value?: any
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
export const SubsectionList: React.FunctionComponent<SubsectionListTypes> = ({
|
|
22
|
+
subsections,
|
|
23
|
+
}) => {
|
|
24
|
+
const [selectedSection, setSelectedSection] = useState(null)
|
|
25
|
+
return (
|
|
26
|
+
<div className="w-full max-w-2xs rounded bg-layoutPrimary-500 p-4 ">
|
|
27
|
+
{subsections.map((ss) => (
|
|
28
|
+
<div className="my-0">
|
|
29
|
+
{ss.title && <div className="my-4 font-bold">{ss.title}</div>}
|
|
30
|
+
{ss.sections.map((s) => (
|
|
31
|
+
<SubsectionItem
|
|
32
|
+
onItemClick={() => setSelectedSection(s.value)}
|
|
33
|
+
selected={selectedSection}
|
|
34
|
+
value={s.value}
|
|
35
|
+
icon={s.icon}
|
|
36
|
+
title={s.label}
|
|
37
|
+
chip="Upgrade"
|
|
38
|
+
/>
|
|
39
|
+
))}
|
|
40
|
+
</div>
|
|
41
|
+
))}
|
|
42
|
+
</div>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type TSubsectionItem = {
|
|
47
|
+
chip?: string
|
|
48
|
+
title: string
|
|
49
|
+
value: string
|
|
50
|
+
icon?: any
|
|
51
|
+
selected?: any
|
|
52
|
+
onItemClick?: () => void
|
|
53
|
+
}
|
|
54
|
+
const SubsectionItem: React.FunctionComponent<TSubsectionItem> = ({
|
|
55
|
+
title,
|
|
56
|
+
value,
|
|
57
|
+
icon,
|
|
58
|
+
chip,
|
|
59
|
+
selected,
|
|
60
|
+
onItemClick,
|
|
61
|
+
}) => {
|
|
62
|
+
return (
|
|
63
|
+
<div
|
|
64
|
+
onClick={onItemClick}
|
|
65
|
+
className={clsx(
|
|
66
|
+
"flex w-full cursor-pointer flex-row items-center justify-between gap-2 rounded p-2 transition-all ",
|
|
67
|
+
selected === value
|
|
68
|
+
? "bg-buttonPrimary-500 text-white hover:bg-buttonPrimary-500"
|
|
69
|
+
: "hover:bg-layoutPrimary-300"
|
|
70
|
+
)}
|
|
71
|
+
>
|
|
72
|
+
<div className="flex w-full flex-row items-center justify-start gap-2">
|
|
73
|
+
{icon} <span>{title}</span>
|
|
74
|
+
</div>
|
|
75
|
+
{chip && <HawaChip label="Upgrade" size="normal" />}{" "}
|
|
76
|
+
</div>
|
|
77
|
+
)
|
|
78
|
+
}
|
package/src/elements/index.ts
CHANGED
|
@@ -71,12 +71,12 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
71
71
|
//less than 600
|
|
72
72
|
//as nothing and expands as button is clicked
|
|
73
73
|
let ltrDrawerStyle = [
|
|
74
|
-
" fixed top-0 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-
|
|
74
|
+
" fixed top-0 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",
|
|
75
75
|
size > 600 ? "w-14 hover:w-40" : "w-0",
|
|
76
76
|
openSideMenu ? "w-40" : "w-14",
|
|
77
77
|
]
|
|
78
78
|
let rtlDrawerStyle = [
|
|
79
|
-
"fixed top-0 right-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-
|
|
79
|
+
"fixed top-0 right-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",
|
|
80
80
|
size > 600 ? "w-14 hover:w-40" : "w-0",
|
|
81
81
|
openSideMenu ? "w-40" : "w-14",
|
|
82
82
|
]
|
|
@@ -100,7 +100,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
100
100
|
{props.topBar && (
|
|
101
101
|
<div
|
|
102
102
|
className={clsx(
|
|
103
|
-
"fixed top-0 z-30 flex h-14 flex-row items-center justify-between bg-layoutPrimary-
|
|
103
|
+
"fixed top-0 z-30 flex h-14 flex-row items-center justify-between bg-layoutPrimary-500",
|
|
104
104
|
// size > 600 ? "w-[calc(100%-3rem)] translate-x-[3rem]" : "w-full",
|
|
105
105
|
"w-full",
|
|
106
106
|
"p-2",
|
|
@@ -178,7 +178,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
178
178
|
>
|
|
179
179
|
<div
|
|
180
180
|
className={clsx(
|
|
181
|
-
"fixed z-50 mb-2 flex h-12 items-center justify-center bg-layoutPrimary-
|
|
181
|
+
"fixed z-50 mb-2 flex h-12 items-center justify-center bg-layoutPrimary-500 p-2 transition-all",
|
|
182
182
|
openSideMenu ? "w-40" : "w-14"
|
|
183
183
|
)}
|
|
184
184
|
>
|
|
@@ -228,7 +228,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
228
228
|
}}
|
|
229
229
|
className={clsx(
|
|
230
230
|
props.currentPage === dItem.slug
|
|
231
|
-
? "bg-buttonPrimary-
|
|
231
|
+
? "bg-buttonPrimary-500 text-white"
|
|
232
232
|
: "hover:bg-buttonPrimary-lighter",
|
|
233
233
|
"m-2 flex cursor-pointer flex-row items-center overflow-x-clip rounded p-2 pl-3 transition-all ",
|
|
234
234
|
direction === "rtl" ? "flex-row-reverse pr-3" : ""
|
|
@@ -263,7 +263,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = ({
|
|
|
263
263
|
)
|
|
264
264
|
})}
|
|
265
265
|
{j !== props.drawerItems.length - 1 && (
|
|
266
|
-
<div className="my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-
|
|
266
|
+
<div className="my-2 h-[1px] w-10/12 self-center bg-buttonPrimary-500 text-center "></div>
|
|
267
267
|
)}{" "}
|
|
268
268
|
</div>
|
|
269
269
|
))}
|
|
@@ -20,7 +20,7 @@ export const HawaContainer: React.FunctionComponent<ContainerTypes> = ({
|
|
|
20
20
|
normal: "max-w-sm md:max-w-md",
|
|
21
21
|
}
|
|
22
22
|
let variantStyles = {
|
|
23
|
-
contained: "bg-layoutPrimary-
|
|
23
|
+
contained: "bg-layoutPrimary-500 dark:bg-layoutPrimary-dark",
|
|
24
24
|
outlined: "bg-transparent border-2 border-black w-fit",
|
|
25
25
|
neobrutalism: "shadow-neobrutalism border-4 border-black bg-white",
|
|
26
26
|
}
|
|
@@ -66,12 +66,12 @@ export const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes> = ({
|
|
|
66
66
|
//less than 600
|
|
67
67
|
//as nothing and expands as button is clicked
|
|
68
68
|
let ltrDrawerStyle = [
|
|
69
|
-
" fixed top-0 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-
|
|
69
|
+
" fixed top-0 left-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",
|
|
70
70
|
size > 600 ? "w-14 hover:w-40" : "w-0",
|
|
71
71
|
openSideMenu ? "w-40" : "w-14",
|
|
72
72
|
]
|
|
73
73
|
let rtlDrawerStyle = [
|
|
74
|
-
"fixed top-0 right-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-
|
|
74
|
+
"fixed top-0 right-0 z-40 flex h-full flex-col justify-between overflow-x-clip bg-layoutPrimary-500 transition-all",
|
|
75
75
|
size > 600 ? "w-14 hover:w-40" : "w-0",
|
|
76
76
|
openSideMenu ? "w-40" : "w-14",
|
|
77
77
|
]
|
|
@@ -94,7 +94,7 @@ export const HawaSiteLayout: React.FunctionComponent<HawaSiteLayoutTypes> = ({
|
|
|
94
94
|
<div className="h-full w-full">
|
|
95
95
|
<div
|
|
96
96
|
className={clsx(
|
|
97
|
-
"z-30 flex flex-row items-start justify-between bg-layoutPrimary-
|
|
97
|
+
"z-30 flex flex-row items-start justify-between bg-layoutPrimary-500 transition-all",
|
|
98
98
|
navigationSizeStyles[navigationSize],
|
|
99
99
|
"rounded p-3",
|
|
100
100
|
openSideMenu ? "h-44" : "",
|
package/src/styles.css
CHANGED
|
@@ -375,11 +375,12 @@ video {
|
|
|
375
375
|
display: none;
|
|
376
376
|
}
|
|
377
377
|
:root {
|
|
378
|
-
--layout-primary: #
|
|
378
|
+
--layout-primary-500: #dfdcfc;
|
|
379
|
+
--layout-primary-300: #e7e5fa;
|
|
379
380
|
--layout-secondary: #d2cdfa;
|
|
380
381
|
|
|
381
|
-
--button-primary: #4c37eb;
|
|
382
|
-
--button-primary-
|
|
382
|
+
--button-primary-500: #4c37eb;
|
|
383
|
+
--button-primary-700: #2e1dac;
|
|
383
384
|
|
|
384
385
|
--button-secondary: #ffc011;
|
|
385
386
|
--button-secondary-darker: #b48d24;
|
|
@@ -719,6 +720,10 @@ video {
|
|
|
719
720
|
margin-top: 0px;
|
|
720
721
|
margin-bottom: 0px;
|
|
721
722
|
}
|
|
723
|
+
.my-4 {
|
|
724
|
+
margin-top: 1rem;
|
|
725
|
+
margin-bottom: 1rem;
|
|
726
|
+
}
|
|
722
727
|
.ml-auto {
|
|
723
728
|
margin-left: auto;
|
|
724
729
|
}
|
|
@@ -1016,6 +1021,9 @@ video {
|
|
|
1016
1021
|
.max-w-lg {
|
|
1017
1022
|
max-width: 32rem;
|
|
1018
1023
|
}
|
|
1024
|
+
.max-w-2xs {
|
|
1025
|
+
max-width: 250px;
|
|
1026
|
+
}
|
|
1019
1027
|
.max-w-full {
|
|
1020
1028
|
max-width: 100%;
|
|
1021
1029
|
}
|
|
@@ -1372,10 +1380,6 @@ video {
|
|
|
1372
1380
|
--tw-border-opacity: 1;
|
|
1373
1381
|
border-color: rgb(75 85 99 / var(--tw-border-opacity));
|
|
1374
1382
|
}
|
|
1375
|
-
.border-secondary-800 {
|
|
1376
|
-
--tw-border-opacity: 1;
|
|
1377
|
-
border-color: rgb(89 116 27 / var(--tw-border-opacity));
|
|
1378
|
-
}
|
|
1379
1383
|
.border-gray-300 {
|
|
1380
1384
|
--tw-border-opacity: 1;
|
|
1381
1385
|
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
|
@@ -1388,23 +1392,22 @@ video {
|
|
|
1388
1392
|
--tw-border-opacity: 1;
|
|
1389
1393
|
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
|
1390
1394
|
}
|
|
1391
|
-
.border-buttonPrimary-
|
|
1392
|
-
border-color: var(--button-primary);
|
|
1395
|
+
.border-buttonPrimary-500 {
|
|
1396
|
+
border-color: var(--button-primary-500);
|
|
1393
1397
|
}
|
|
1394
1398
|
.border-t-white {
|
|
1395
1399
|
--tw-border-opacity: 1;
|
|
1396
1400
|
border-top-color: rgb(255 255 255 / var(--tw-border-opacity));
|
|
1397
1401
|
}
|
|
1398
|
-
.border-b-
|
|
1399
|
-
|
|
1400
|
-
border-bottom-color: rgb(61 147 249 / var(--tw-border-opacity));
|
|
1402
|
+
.border-b-buttonPrimary-500 {
|
|
1403
|
+
border-bottom-color: var(--button-primary-500);
|
|
1401
1404
|
}
|
|
1402
1405
|
.bg-gray-900 {
|
|
1403
1406
|
--tw-bg-opacity: 1;
|
|
1404
1407
|
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
|
1405
1408
|
}
|
|
1406
|
-
.bg-layoutPrimary-
|
|
1407
|
-
background-color: var(--layout-primary);
|
|
1409
|
+
.bg-layoutPrimary-500 {
|
|
1410
|
+
background-color: var(--layout-primary-500);
|
|
1408
1411
|
}
|
|
1409
1412
|
.bg-white {
|
|
1410
1413
|
--tw-bg-opacity: 1;
|
|
@@ -1433,8 +1436,8 @@ video {
|
|
|
1433
1436
|
.bg-transparent {
|
|
1434
1437
|
background-color: transparent;
|
|
1435
1438
|
}
|
|
1436
|
-
.bg-buttonPrimary-
|
|
1437
|
-
background-color: var(--button-primary);
|
|
1439
|
+
.bg-buttonPrimary-500 {
|
|
1440
|
+
background-color: var(--button-primary-500);
|
|
1438
1441
|
}
|
|
1439
1442
|
.bg-buttonSecondary-default {
|
|
1440
1443
|
background-color: var(--button-secondary);
|
|
@@ -1467,10 +1470,6 @@ video {
|
|
|
1467
1470
|
--tw-bg-opacity: 1;
|
|
1468
1471
|
background-color: rgb(191 219 254 / var(--tw-bg-opacity));
|
|
1469
1472
|
}
|
|
1470
|
-
.bg-layout-1200 {
|
|
1471
|
-
--tw-bg-opacity: 1;
|
|
1472
|
-
background-color: rgb(238 247 252 / var(--tw-bg-opacity));
|
|
1473
|
-
}
|
|
1474
1473
|
.bg-gray-500 {
|
|
1475
1474
|
--tw-bg-opacity: 1;
|
|
1476
1475
|
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
|
|
@@ -1487,10 +1486,6 @@ video {
|
|
|
1487
1486
|
--tw-bg-opacity: 1;
|
|
1488
1487
|
background-color: rgb(250 204 21 / var(--tw-bg-opacity));
|
|
1489
1488
|
}
|
|
1490
|
-
.bg-primary-200 {
|
|
1491
|
-
--tw-bg-opacity: 1;
|
|
1492
|
-
background-color: rgb(196 222 253 / var(--tw-bg-opacity));
|
|
1493
|
-
}
|
|
1494
1489
|
.bg-gray-600 {
|
|
1495
1490
|
--tw-bg-opacity: 1;
|
|
1496
1491
|
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
|
@@ -1773,10 +1768,6 @@ video {
|
|
|
1773
1768
|
--tw-text-opacity: 1;
|
|
1774
1769
|
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
1775
1770
|
}
|
|
1776
|
-
.text-secondary-800 {
|
|
1777
|
-
--tw-text-opacity: 1;
|
|
1778
|
-
color: rgb(89 116 27 / var(--tw-text-opacity));
|
|
1779
|
-
}
|
|
1780
1771
|
.text-gray-300 {
|
|
1781
1772
|
--tw-text-opacity: 1;
|
|
1782
1773
|
color: rgb(209 213 219 / var(--tw-text-opacity));
|
|
@@ -1854,10 +1845,6 @@ video {
|
|
|
1854
1845
|
--tw-ring-opacity: 1;
|
|
1855
1846
|
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
|
|
1856
1847
|
}
|
|
1857
|
-
.ring-primary-200 {
|
|
1858
|
-
--tw-ring-opacity: 1;
|
|
1859
|
-
--tw-ring-color: rgb(196 222 253 / var(--tw-ring-opacity));
|
|
1860
|
-
}
|
|
1861
1848
|
.ring-offset-1 {
|
|
1862
1849
|
--tw-ring-offset-width: 1px;
|
|
1863
1850
|
}
|
|
@@ -1972,10 +1959,6 @@ body {
|
|
|
1972
1959
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
|
1973
1960
|
}
|
|
1974
1961
|
|
|
1975
|
-
.hover\:bg-buttonPrimary-darker:hover {
|
|
1976
|
-
background-color: var(--button-primary-darker);
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
1962
|
.hover\:bg-buttonSecondary-darker:hover {
|
|
1980
1963
|
background-color: var(--button-secondary-darker);
|
|
1981
1964
|
}
|
|
@@ -1995,6 +1978,14 @@ body {
|
|
|
1995
1978
|
background-color: rgb(29 78 216 / var(--tw-bg-opacity));
|
|
1996
1979
|
}
|
|
1997
1980
|
|
|
1981
|
+
.hover\:bg-buttonPrimary-500:hover {
|
|
1982
|
+
background-color: var(--button-primary-500);
|
|
1983
|
+
}
|
|
1984
|
+
|
|
1985
|
+
.hover\:bg-layoutPrimary-300:hover {
|
|
1986
|
+
background-color: var(--layout-primary-300);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1998
1989
|
.hover\:bg-gray-700:hover {
|
|
1999
1990
|
--tw-bg-opacity: 1;
|
|
2000
1991
|
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
|
@@ -2046,8 +2037,8 @@ body {
|
|
|
2046
2037
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2047
2038
|
}
|
|
2048
2039
|
|
|
2049
|
-
.hover\:ring-buttonPrimary-
|
|
2050
|
-
--tw-ring-color: var(--button-primary);
|
|
2040
|
+
.hover\:ring-buttonPrimary-500:hover {
|
|
2041
|
+
--tw-ring-color: var(--button-primary-500);
|
|
2051
2042
|
}
|
|
2052
2043
|
|
|
2053
2044
|
.hover\:brightness-90:hover {
|
|
@@ -2248,6 +2239,11 @@ body {
|
|
|
2248
2239
|
color: rgb(239 68 68 / var(--tw-text-opacity));
|
|
2249
2240
|
}
|
|
2250
2241
|
|
|
2242
|
+
.dark .dark\:text-black {
|
|
2243
|
+
--tw-text-opacity: 1;
|
|
2244
|
+
color: rgb(0 0 0 / var(--tw-text-opacity));
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2251
2247
|
.dark .dark\:text-gray-200 {
|
|
2252
2248
|
--tw-text-opacity: 1;
|
|
2253
2249
|
color: rgb(229 231 235 / var(--tw-text-opacity));
|
|
@@ -2297,10 +2293,6 @@ body {
|
|
|
2297
2293
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
2298
2294
|
}
|
|
2299
2295
|
|
|
2300
|
-
.dark .dark\:hover\:bg-buttonPrimary-darker:hover {
|
|
2301
|
-
background-color: var(--button-primary-darker);
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
2296
|
.dark .dark\:hover\:text-white:hover {
|
|
2305
2297
|
--tw-text-opacity: 1;
|
|
2306
2298
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
@@ -2331,9 +2323,8 @@ body {
|
|
|
2331
2323
|
--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity));
|
|
2332
2324
|
}
|
|
2333
2325
|
|
|
2334
|
-
.dark .dark\:focus\:ring-
|
|
2335
|
-
--tw-ring-
|
|
2336
|
-
--tw-ring-color: rgb(5 74 158 / var(--tw-ring-opacity));
|
|
2326
|
+
.dark .dark\:focus\:ring-buttonPrimary-500:focus {
|
|
2327
|
+
--tw-ring-color: var(--button-primary-500);
|
|
2337
2328
|
}
|
|
2338
2329
|
|
|
2339
2330
|
.dark .dark\:focus\:ring-blue-500:focus {
|
package/src/tailwind.css
CHANGED
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;700&display=swap");
|
|
5
5
|
@layer base {
|
|
6
6
|
:root {
|
|
7
|
-
--layout-primary: #
|
|
7
|
+
--layout-primary-500: #dfdcfc;
|
|
8
|
+
--layout-primary-300: #e7e5fa;
|
|
8
9
|
--layout-secondary: #d2cdfa;
|
|
9
10
|
|
|
10
|
-
--button-primary: #4c37eb;
|
|
11
|
-
--button-primary-
|
|
11
|
+
--button-primary-500: #4c37eb;
|
|
12
|
+
--button-primary-700: #2e1dac;
|
|
12
13
|
|
|
13
14
|
--button-secondary: #ffc011;
|
|
14
15
|
--button-secondary-darker: #b48d24;
|