@sikka/hawa 0.0.141 → 0.0.143
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 +21 -10
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/elements/HawaMenu.tsx +1 -1
- package/src/elements/HawaTextField.tsx +7 -1
- package/src/layout/HawaAppLayout.tsx +24 -4
- package/src/styles.css +21 -10
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.64f67baa.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/main.f7aca500.iframe.bundle.js +0 -1
package/package.json
CHANGED
|
@@ -98,7 +98,7 @@ export const HawaMenu: React.FunctionComponent<TMenuTypes> = ({
|
|
|
98
98
|
onClick={(e) => item.action(e, item.label)}
|
|
99
99
|
className={
|
|
100
100
|
item.isButton
|
|
101
|
-
? "mx-1 flex cursor-pointer flex-row items-center rounded-lg bg-primary-500 py-2 px-4 text-white hover:bg-primary-600 rtl:flex-row-reverse dark:hover:bg-primary-600 dark:hover:text-white"
|
|
101
|
+
? "mx-1 my-1 flex cursor-pointer flex-row items-center rounded-lg bg-primary-500 py-2 px-4 text-white hover:bg-primary-600 rtl:flex-row-reverse dark:hover:bg-primary-600 dark:hover:text-white"
|
|
102
102
|
: "mx-1 flex cursor-pointer flex-row items-center rounded-lg py-2 px-4 hover:bg-gray-200 rtl:flex-row-reverse dark:hover:bg-gray-600 dark:hover:text-white"
|
|
103
103
|
}
|
|
104
104
|
>
|
|
@@ -54,7 +54,13 @@ export const HawaTextField: React.FunctionComponent<TextFieldTypes> = ({
|
|
|
54
54
|
id="message"
|
|
55
55
|
rows={4}
|
|
56
56
|
className="block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 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"
|
|
57
|
-
|
|
57
|
+
onChange={props.onChange}
|
|
58
|
+
type={props.type}
|
|
59
|
+
aria-label={props.label}
|
|
60
|
+
placeholder={props.placeholder}
|
|
61
|
+
defaultValue={props.defaultValue}
|
|
62
|
+
value={props.value}
|
|
63
|
+
{...props}
|
|
58
64
|
/>
|
|
59
65
|
) : props.type === "search" ? (
|
|
60
66
|
<div className="relative">
|
|
@@ -100,13 +100,33 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
|
|
|
100
100
|
onMouseLeave={() => setOpenSideMenu(false)}
|
|
101
101
|
ref={ref}
|
|
102
102
|
className={clsx(
|
|
103
|
-
"fixed top-0 left-0 z-50 flex h-full flex-col
|
|
103
|
+
"fixed top-0 left-0 z-50 flex h-full flex-col bg-primary-400 transition-all hover:w-40 hover:overflow-auto",
|
|
104
104
|
size > 600 ? "w-12" : "w-0",
|
|
105
105
|
openSideMenu ? "w-40" : ""
|
|
106
106
|
)}
|
|
107
107
|
>
|
|
108
|
-
<div className="
|
|
109
|
-
|
|
108
|
+
<div className=" mb-9 h-12 w-12 p-2">
|
|
109
|
+
<img
|
|
110
|
+
className={clsx(
|
|
111
|
+
"fixed top-2 h-9",
|
|
112
|
+
!openSideMenu ? "invisible" : "visible"
|
|
113
|
+
)}
|
|
114
|
+
height={10}
|
|
115
|
+
src={props.logoLink}
|
|
116
|
+
// src={"https://beta-my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75"}
|
|
117
|
+
/>
|
|
118
|
+
|
|
119
|
+
<img
|
|
120
|
+
className={clsx(
|
|
121
|
+
// " bg-green-500",
|
|
122
|
+
"fixed top-2 h-9",
|
|
123
|
+
openSideMenu ? "invisible" : "visible"
|
|
124
|
+
)}
|
|
125
|
+
src={props.logoSymbol}
|
|
126
|
+
// src="https://beta-admin.qawaim.app/_next/image?url=%2Fqawaim-symbol.svg&w=128&q=75"
|
|
127
|
+
/>
|
|
128
|
+
|
|
129
|
+
{/* {openSideMenu ? (
|
|
110
130
|
<img
|
|
111
131
|
className={clsx("h-10", !openSideMenu ? "invisible" : "visible")}
|
|
112
132
|
src="https://beta-my.qawaim.app/_next/image?url=%2Fqawaim-logo.svg&w=256&q=75"
|
|
@@ -116,7 +136,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
|
|
|
116
136
|
className={clsx("h-10", openSideMenu ? "invisible" : "visible")}
|
|
117
137
|
src="https://beta-admin.qawaim.app/_next/image?url=%2Fqawaim-symbol.svg&w=128&q=75"
|
|
118
138
|
/>
|
|
119
|
-
)}
|
|
139
|
+
)} */}
|
|
120
140
|
</div>
|
|
121
141
|
|
|
122
142
|
{props.drawerItems.map((dSection, j) => (
|
package/src/styles.css
CHANGED
|
@@ -556,6 +556,9 @@ video {
|
|
|
556
556
|
.-left-1 {
|
|
557
557
|
left: -0.25rem;
|
|
558
558
|
}
|
|
559
|
+
.top-2 {
|
|
560
|
+
top: 0.5rem;
|
|
561
|
+
}
|
|
559
562
|
.top-auto {
|
|
560
563
|
top: auto;
|
|
561
564
|
}
|
|
@@ -565,9 +568,6 @@ video {
|
|
|
565
568
|
.right-2\.5 {
|
|
566
569
|
right: 0.625rem;
|
|
567
570
|
}
|
|
568
|
-
.top-2 {
|
|
569
|
-
top: 0.5rem;
|
|
570
|
-
}
|
|
571
571
|
.z-10 {
|
|
572
572
|
z-index: 10;
|
|
573
573
|
}
|
|
@@ -608,6 +608,10 @@ video {
|
|
|
608
608
|
margin-top: 0.5rem;
|
|
609
609
|
margin-bottom: 0.5rem;
|
|
610
610
|
}
|
|
611
|
+
.my-1 {
|
|
612
|
+
margin-top: 0.25rem;
|
|
613
|
+
margin-bottom: 0.25rem;
|
|
614
|
+
}
|
|
611
615
|
.my-7 {
|
|
612
616
|
margin-top: 1.75rem;
|
|
613
617
|
margin-bottom: 1.75rem;
|
|
@@ -670,6 +674,9 @@ video {
|
|
|
670
674
|
.mr-4 {
|
|
671
675
|
margin-right: 1rem;
|
|
672
676
|
}
|
|
677
|
+
.mb-9 {
|
|
678
|
+
margin-bottom: 2.25rem;
|
|
679
|
+
}
|
|
673
680
|
.mt-14 {
|
|
674
681
|
margin-top: 3.5rem;
|
|
675
682
|
}
|
|
@@ -767,14 +774,14 @@ video {
|
|
|
767
774
|
.h-0\.5 {
|
|
768
775
|
height: 0.125rem;
|
|
769
776
|
}
|
|
770
|
-
.h
|
|
771
|
-
height:
|
|
777
|
+
.h-12 {
|
|
778
|
+
height: 3rem;
|
|
772
779
|
}
|
|
773
780
|
.h-9 {
|
|
774
781
|
height: 2.25rem;
|
|
775
782
|
}
|
|
776
|
-
.h
|
|
777
|
-
height:
|
|
783
|
+
.h-\[1px\] {
|
|
784
|
+
height: 1px;
|
|
778
785
|
}
|
|
779
786
|
.h-20 {
|
|
780
787
|
height: 5rem;
|
|
@@ -1056,9 +1063,6 @@ video {
|
|
|
1056
1063
|
.justify-self-end {
|
|
1057
1064
|
justify-self: end;
|
|
1058
1065
|
}
|
|
1059
|
-
.overflow-auto {
|
|
1060
|
-
overflow: auto;
|
|
1061
|
-
}
|
|
1062
1066
|
.overflow-hidden {
|
|
1063
1067
|
overflow: hidden;
|
|
1064
1068
|
}
|
|
@@ -1366,6 +1370,10 @@ video {
|
|
|
1366
1370
|
--tw-bg-opacity: 1;
|
|
1367
1371
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
|
1368
1372
|
}
|
|
1373
|
+
.bg-green-500 {
|
|
1374
|
+
--tw-bg-opacity: 1;
|
|
1375
|
+
background-color: rgb(34 197 94 / var(--tw-bg-opacity));
|
|
1376
|
+
}
|
|
1369
1377
|
.bg-primary-600 {
|
|
1370
1378
|
--tw-bg-opacity: 1;
|
|
1371
1379
|
background-color: rgb(6 92 198 / var(--tw-bg-opacity));
|
|
@@ -1819,6 +1827,9 @@ body {
|
|
|
1819
1827
|
.hover\:cursor-pointer:hover {
|
|
1820
1828
|
cursor: pointer;
|
|
1821
1829
|
}
|
|
1830
|
+
.hover\:overflow-auto:hover {
|
|
1831
|
+
overflow: auto;
|
|
1832
|
+
}
|
|
1822
1833
|
.hover\:bg-gray-200:hover {
|
|
1823
1834
|
--tw-bg-opacity: 1;
|
|
1824
1835
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
@@ -361,4 +361,4 @@
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
|
|
364
|
-
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.4a2964ac.iframe.bundle.js"></script><script src="870.32eb3abe.iframe.bundle.js"></script><script src="main.
|
|
364
|
+
window['STORIES'] = [{"titlePrefix":"","directory":"./src","files":"**/*.stories.mdx","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.mdx)$"},{"titlePrefix":"","directory":"./src","files":"**/*.stories.@(js|jsx|ts|tsx)","importPathMatcher":"^\\.[\\\\/](?:src(?:\\/(?!\\.)(?:(?:(?!(?:^|\\/)\\.).)*?)\\/|\\/|$)(?!\\.)(?=.)[^/]*?\\.stories\\.(js|jsx|ts|tsx))$"}];</script><script src="runtime~main.4a2964ac.iframe.bundle.js"></script><script src="870.32eb3abe.iframe.bundle.js"></script><script src="main.64f67baa.iframe.bundle.js"></script></body></html>
|