@sikka/hawa 0.1.78 → 0.1.80

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.
@@ -71,10 +71,12 @@ jobs:
71
71
 
72
72
  - name: Change working directory to ./landing
73
73
  run: cd ./landing
74
+
74
75
  - name: Use Node.js ${{ matrix.node-version }}
75
76
  uses: actions/setup-node@v2
76
77
  with:
77
78
  node-version: ${{ matrix.node-version }}
79
+
78
80
  - name: Install Hawa Landing
79
81
  run: |
80
82
  rm -fr /home/cloudpanel/htdocs/hawa.style || true
@@ -84,6 +86,14 @@ jobs:
84
86
  npm install
85
87
  npm run build --if-present
86
88
  ln -s /var/www/html/sikka-software/_work/Hawa/Hawa/landing /home/cloudpanel/htdocs/hawa.style
89
+
90
+ - name: Stop and Delete Previous PM2 Process
91
+ run: |
87
92
  pm2 stop hawa-landing || true
88
93
  pm2 delete hawa-landing || true
89
- pm2 start npm --name "hawa-landing" -- start || true
94
+
95
+ - name: Start Hawa Landing with PM2
96
+ run: pm2 start npm --name "hawa-landing" -- start || true
97
+
98
+ - name: Save PM2 Process List
99
+ run: pm2 save || true
package/dist/index.d.mts CHANGED
@@ -907,6 +907,7 @@ type AppLayoutTypes = {
907
907
  topBar?: boolean;
908
908
  username?: string;
909
909
  email?: string;
910
+ avatarImage?: any;
910
911
  drawerSize?: "sm" | "md" | "large";
911
912
  profileMenuItems?: MenuItemType[];
912
913
  onSettingsClick?: () => void;
package/dist/index.d.ts CHANGED
@@ -907,6 +907,7 @@ type AppLayoutTypes = {
907
907
  topBar?: boolean;
908
908
  username?: string;
909
909
  email?: string;
910
+ avatarImage?: any;
910
911
  drawerSize?: "sm" | "md" | "large";
911
912
  profileMenuItems?: MenuItemType[];
912
913
  onSettingsClick?: () => void;
package/dist/index.js CHANGED
@@ -6047,7 +6047,10 @@ var BackToTop = function(_param) {
6047
6047
  setVisible(scrollTop >= rect2.height + (props.paddingThreshold || 100));
6048
6048
  };
6049
6049
  var backToTop = function() {
6050
- props.anchor.current.scrollTo(0, 0);
6050
+ props.anchor.current.scrollTo({
6051
+ top: 0,
6052
+ behavior: "smooth"
6053
+ });
6051
6054
  };
6052
6055
  (0, import_react42.useEffect)(function() {
6053
6056
  if (!props.anchor.current) return;
@@ -7614,7 +7617,10 @@ var AppLayout = function(_param) {
7614
7617
  direction: isRTL ? "rtl" : "ltr",
7615
7618
  trigger: /* @__PURE__ */ import_react61.default.createElement("div", {
7616
7619
  className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600"
7617
- }, /* @__PURE__ */ import_react61.default.createElement("svg", {
7620
+ }, props.avatarImage ? /* @__PURE__ */ import_react61.default.createElement("img", {
7621
+ src: props.avatarImage,
7622
+ alt: "User Avatar"
7623
+ }) : /* @__PURE__ */ import_react61.default.createElement("svg", {
7618
7624
  "aria-label": "Avatar Icon",
7619
7625
  className: "absolute -left-1 h-10 w-10 text-gray-400",
7620
7626
  fill: "currentColor",
package/dist/index.mjs CHANGED
@@ -5762,7 +5762,7 @@ var BackToTop = ({ ...props }) => {
5762
5762
  setVisible(scrollTop >= rect2.height + (props.paddingThreshold || 100));
5763
5763
  };
5764
5764
  const backToTop = () => {
5765
- props.anchor.current.scrollTo(0, 0);
5765
+ props.anchor.current.scrollTo({ top: 0, behavior: "smooth" });
5766
5766
  };
5767
5767
  useEffect16(() => {
5768
5768
  if (!props.anchor.current)
@@ -7591,7 +7591,7 @@ var AppLayout = ({
7591
7591
  side: "bottom",
7592
7592
  sideOffset: 5,
7593
7593
  direction: isRTL ? "rtl" : "ltr",
7594
- trigger: /* @__PURE__ */ React75.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, /* @__PURE__ */ React75.createElement(
7594
+ trigger: /* @__PURE__ */ React75.createElement("div", { className: "relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600" }, props.avatarImage ? /* @__PURE__ */ React75.createElement("img", { src: props.avatarImage, alt: "User Avatar" }) : /* @__PURE__ */ React75.createElement(
7595
7595
  "svg",
7596
7596
  {
7597
7597
  "aria-label": "Avatar Icon",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.1.78",
3
+ "version": "0.1.80",
4
4
  "description": "Modern UI Kit made with Tailwind & Radix Primitives",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,7 +36,7 @@ export const BackToTop: FC<BackToTopTypes> = ({ ...props }) => {
36
36
  }
37
37
 
38
38
  const backToTop = () => {
39
- props.anchor.current.scrollTo(0, 0)
39
+ props.anchor.current.scrollTo({ top: 0, behavior: "smooth" })
40
40
  }
41
41
 
42
42
  // FIXME: Observers and listeners run twice
@@ -21,6 +21,7 @@ type AppLayoutTypes = {
21
21
  topBar?: boolean
22
22
  username?: string
23
23
  email?: string
24
+ avatarImage?: any
24
25
  drawerSize?: "sm" | "md" | "large"
25
26
  profileMenuItems?: MenuItemType[]
26
27
  onSettingsClick?: () => void
@@ -205,18 +206,22 @@ export const AppLayout: React.FunctionComponent<AppLayoutTypes> = ({
205
206
  direction={isRTL ? "rtl" : "ltr"}
206
207
  trigger={
207
208
  <div className="relative h-8 w-8 cursor-pointer overflow-clip rounded ring-1 ring-primary/30 dark:bg-gray-600">
208
- <svg
209
- aria-label="Avatar Icon"
210
- className="absolute -left-1 h-10 w-10 text-gray-400"
211
- fill="currentColor"
212
- viewBox="0 0 20 20"
213
- >
214
- <path
215
- fillRule="evenodd"
216
- d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"
217
- clipRule="evenodd"
218
- ></path>
219
- </svg>
209
+ {props.avatarImage ? (
210
+ <img src={props.avatarImage} alt="User Avatar" />
211
+ ) : (
212
+ <svg
213
+ aria-label="Avatar Icon"
214
+ className="absolute -left-1 h-10 w-10 text-gray-400"
215
+ fill="currentColor"
216
+ viewBox="0 0 20 20"
217
+ >
218
+ <path
219
+ fillRule="evenodd"
220
+ d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z"
221
+ clipRule="evenodd"
222
+ ></path>
223
+ </svg>
224
+ )}
220
225
  </div>
221
226
  }
222
227
  items={props.profileMenuItems}