@sikka/hawa 0.0.134 → 0.0.135

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.134",
3
+ "version": "0.0.135",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -42,7 +42,6 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
42
42
  )}
43
43
  >
44
44
  {props.pageTitle ? <div>{props.pageTitle}</div> : <div></div>}
45
- {/* <div>currentPage</div> */}
46
45
  <HawaMenu
47
46
  buttonPosition="top-right"
48
47
  menuItems={props.profileMenuItems}
@@ -70,7 +69,7 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
70
69
  <div
71
70
  onMouseEnter={() => setOpenSideMenu(true)}
72
71
  onMouseLeave={() => setOpenSideMenu(false)}
73
- className="fixed top-0 left-0 z-50 flex h-full w-12 flex-col bg-primary-400 transition-all hover:w-40"
72
+ className="fixed top-0 left-0 z-50 flex h-full w-12 flex-col overflow-auto bg-primary-400 transition-all hover:w-40"
74
73
  >
75
74
  <div className="flex flex-row p-2">
76
75
  {/* full logo */}
@@ -86,26 +85,37 @@ export const HawaAppLayout: React.FunctionComponent<HawaAppLayoutTypes> = (
86
85
  />
87
86
  )}
88
87
  </div>
89
- {props.drawerItems.map((dItem, i) => (
90
- <div
91
- key={i}
92
- onClick={() => dItem.action(dItem.slug)}
93
- className={clsx(
94
- "m-1 flex cursor-pointer flex-row items-center overflow-x-clip rounded-lg p-2 pl-3 transition-all hover:bg-primary-500",
95
- props.currentPage === dItem.slug
96
- ? "bg-primary-600 text-white hover:bg-primary-600"
97
- : ""
98
- )}
99
- >
100
- <div className="flex items-center justify-center">{dItem.icon}</div>
101
- <div
102
- className={clsx(
103
- "mx-2 whitespace-nowrap text-sm transition-all",
104
- openSideMenu ? "opacity-100" : "opacity-0"
105
- )}
106
- >
107
- {dItem.label}
108
- </div>
88
+ {props.drawerItems.map((dSection, j) => (
89
+ <div className="flex flex-col items-stretch justify-center">
90
+ {dSection.map((dItem, i) => {
91
+ return (
92
+ <div
93
+ key={i}
94
+ onClick={() => dItem.action(dItem.slug)}
95
+ className={clsx(
96
+ "m-1 flex cursor-pointer flex-row items-center overflow-x-clip rounded-lg p-2 pl-3 transition-all hover:bg-primary-500",
97
+ props.currentPage === dItem.slug
98
+ ? "bg-primary-600 text-white hover:bg-primary-600"
99
+ : ""
100
+ )}
101
+ >
102
+ <div className="flex items-center justify-center">
103
+ {dItem.icon}
104
+ </div>
105
+ <div
106
+ className={clsx(
107
+ "mx-2 whitespace-nowrap text-sm transition-all",
108
+ openSideMenu ? "opacity-100" : "opacity-0"
109
+ )}
110
+ >
111
+ {dItem.label}
112
+ </div>
113
+ </div>
114
+ )
115
+ })}
116
+ {j !== props.drawerItems.length - 1 && (
117
+ <div className="my-2 h-[1px] w-10/12 self-center bg-primary-600 text-center "></div>
118
+ )}{" "}
109
119
  </div>
110
120
  ))}
111
121
  </div>
package/src/styles.css CHANGED
@@ -767,6 +767,9 @@ video {
767
767
  .h-0\.5 {
768
768
  height: 0.125rem;
769
769
  }
770
+ .h-\[1px\] {
771
+ height: 1px;
772
+ }
770
773
  .h-9 {
771
774
  height: 2.25rem;
772
775
  }
@@ -844,6 +847,9 @@ video {
844
847
  .w-12 {
845
848
  width: 3rem;
846
849
  }
850
+ .w-10\/12 {
851
+ width: 83.333333%;
852
+ }
847
853
  .w-\[calc\(100\%-1rem\)\] {
848
854
  width: calc(100% - 1rem);
849
855
  }
@@ -1040,9 +1046,15 @@ video {
1040
1046
  --tw-divide-opacity: 1;
1041
1047
  border-color: rgb(17 24 39 / var(--tw-divide-opacity));
1042
1048
  }
1049
+ .self-center {
1050
+ align-self: center;
1051
+ }
1043
1052
  .justify-self-end {
1044
1053
  justify-self: end;
1045
1054
  }
1055
+ .overflow-auto {
1056
+ overflow: auto;
1057
+ }
1046
1058
  .overflow-hidden {
1047
1059
  overflow: hidden;
1048
1060
  }
@@ -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="669.d0879212.iframe.bundle.js"></script><script src="main.b801e3dc.iframe.bundle.js"></script></body></html>
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="669.d0879212.iframe.bundle.js"></script><script src="main.2d33731c.iframe.bundle.js"></script></body></html>