@sikka/hawa 0.17.9-next → 0.17.11-next

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/index.d.mts CHANGED
@@ -984,6 +984,7 @@ declare const Stats: FC<StatTypes>;
984
984
 
985
985
  type AppSidebarItemProps = {
986
986
  value: string;
987
+ slug?: string;
987
988
  label: string;
988
989
  badge?: {
989
990
  label: string;
@@ -997,6 +998,7 @@ type AppSidebarItemProps = {
997
998
  type SubItem = {
998
999
  value: string;
999
1000
  label: string;
1001
+ slug?: string;
1000
1002
  icon?: any;
1001
1003
  onMouseDown?: (e: React$1.MouseEvent) => void;
1002
1004
  onClick?: (e: React$1.MouseEvent) => void;
package/dist/index.d.ts CHANGED
@@ -984,6 +984,7 @@ declare const Stats: FC<StatTypes>;
984
984
 
985
985
  type AppSidebarItemProps = {
986
986
  value: string;
987
+ slug?: string;
987
988
  label: string;
988
989
  badge?: {
989
990
  label: string;
@@ -997,6 +998,7 @@ type AppSidebarItemProps = {
997
998
  type SubItem = {
998
999
  value: string;
999
1000
  label: string;
1001
+ slug?: string;
1000
1002
  icon?: any;
1001
1003
  onMouseDown?: (e: React$1.MouseEvent) => void;
1002
1004
  onClick?: (e: React$1.MouseEvent) => void;
package/dist/index.js CHANGED
@@ -5860,7 +5860,7 @@ var DataTable = ({
5860
5860
  /* @__PURE__ */ React45.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
5861
5861
  " ",
5862
5862
  /* @__PURE__ */ React45.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
5863
- ), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
5863
+ ), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
5864
5864
  "input",
5865
5865
  {
5866
5866
  max: table.getPageCount(),
@@ -5901,7 +5901,7 @@ var DataTable = ({
5901
5901
  ),
5902
5902
  onItemSelect: (e) => table.setPageSize(Number(e))
5903
5903
  }
5904
- ), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
5904
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
5905
5905
  Button,
5906
5906
  {
5907
5907
  "aria-label": "Previous Table Page",
@@ -5909,7 +5909,9 @@ var DataTable = ({
5909
5909
  size: "smallIcon",
5910
5910
  onClick: () => table.previousPage(),
5911
5911
  disabled: !table.getCanPreviousPage(),
5912
- className: cn(props.direction === "ltr" && "hawa-rotate-180")
5912
+ className: cn(
5913
+ props.direction === "ltr" && "hawa-rotate-180"
5914
+ )
5913
5915
  },
5914
5916
  /* @__PURE__ */ React45.createElement(
5915
5917
  "svg",
@@ -5938,7 +5940,9 @@ var DataTable = ({
5938
5940
  size: "smallIcon",
5939
5941
  onClick: () => table.nextPage(),
5940
5942
  disabled: !table.getCanNextPage(),
5941
- className: cn(props.direction === "rtl" && "hawa-rotate-180")
5943
+ className: cn(
5944
+ props.direction === "rtl" && "hawa-rotate-180"
5945
+ )
5942
5946
  },
5943
5947
  /* @__PURE__ */ React45.createElement(
5944
5948
  "svg",
@@ -5959,7 +5963,7 @@ var DataTable = ({
5959
5963
  }
5960
5964
  )
5961
5965
  )
5962
- )))
5966
+ ))))
5963
5967
  ));
5964
5968
  };
5965
5969
 
@@ -7412,8 +7416,9 @@ var SidebarItem = ({
7412
7416
  )
7413
7417
  },
7414
7418
  item.subitems.map((subitem, idx) => /* @__PURE__ */ React63.createElement(
7415
- "li",
7419
+ "a",
7416
7420
  {
7421
+ href: subitem.slug,
7417
7422
  key: idx,
7418
7423
  onMouseDown: (e) => {
7419
7424
  if (subitem.onMouseDown) {
@@ -7442,8 +7447,9 @@ var SidebarItem = ({
7442
7447
  );
7443
7448
  } else {
7444
7449
  return /* @__PURE__ */ React63.createElement(
7445
- "div",
7450
+ "a",
7446
7451
  {
7452
+ href: item.slug,
7447
7453
  dir: direction,
7448
7454
  onMouseDown: (e) => {
7449
7455
  if (item.onMouseDown) {
package/dist/index.mjs CHANGED
@@ -5649,7 +5649,7 @@ var DataTable = ({
5649
5649
  /* @__PURE__ */ React45.createElement("span", null, (_g = props.texts) == null ? void 0 : _g.total),
5650
5650
  " ",
5651
5651
  /* @__PURE__ */ React45.createElement("span", null, table.getFilteredRowModel().rows.length.toLocaleString())
5652
- ), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
5652
+ ), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 " }, enableGoTo && /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-center hawa-items-center hawa-gap-2" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-text-sm" }, (_h = props.texts) == null ? void 0 : _h.goTo), /* @__PURE__ */ React45.createElement(
5653
5653
  "input",
5654
5654
  {
5655
5655
  max: table.getPageCount(),
@@ -5690,7 +5690,7 @@ var DataTable = ({
5690
5690
  ),
5691
5691
  onItemSelect: (e) => table.setPageSize(Number(e))
5692
5692
  }
5693
- ), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
5693
+ ), table.getPageCount() > 1 && /* @__PURE__ */ React45.createElement(React45.Fragment, null, /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-text-sm " }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-flex hawa-items-center hawa-gap-1" }, /* @__PURE__ */ React45.createElement("div", null, (_j = props.texts) == null ? void 0 : _j.page), /* @__PURE__ */ React45.createElement("div", { className: "hawa-flex hawa-flex-row hawa-gap-1" }, /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getState().pagination.pageIndex + 1), /* @__PURE__ */ React45.createElement("span", null, (_k = props.texts) == null ? void 0 : _k.of), /* @__PURE__ */ React45.createElement("span", { className: "hawa-font-bold" }, table.getPageCount())))), /* @__PURE__ */ React45.createElement(
5694
5694
  Button,
5695
5695
  {
5696
5696
  "aria-label": "Previous Table Page",
@@ -5698,7 +5698,9 @@ var DataTable = ({
5698
5698
  size: "smallIcon",
5699
5699
  onClick: () => table.previousPage(),
5700
5700
  disabled: !table.getCanPreviousPage(),
5701
- className: cn(props.direction === "ltr" && "hawa-rotate-180")
5701
+ className: cn(
5702
+ props.direction === "ltr" && "hawa-rotate-180"
5703
+ )
5702
5704
  },
5703
5705
  /* @__PURE__ */ React45.createElement(
5704
5706
  "svg",
@@ -5727,7 +5729,9 @@ var DataTable = ({
5727
5729
  size: "smallIcon",
5728
5730
  onClick: () => table.nextPage(),
5729
5731
  disabled: !table.getCanNextPage(),
5730
- className: cn(props.direction === "rtl" && "hawa-rotate-180")
5732
+ className: cn(
5733
+ props.direction === "rtl" && "hawa-rotate-180"
5734
+ )
5731
5735
  },
5732
5736
  /* @__PURE__ */ React45.createElement(
5733
5737
  "svg",
@@ -5748,7 +5752,7 @@ var DataTable = ({
5748
5752
  }
5749
5753
  )
5750
5754
  )
5751
- )))
5755
+ ))))
5752
5756
  ));
5753
5757
  };
5754
5758
 
@@ -7207,8 +7211,9 @@ var SidebarItem = ({
7207
7211
  )
7208
7212
  },
7209
7213
  item.subitems.map((subitem, idx) => /* @__PURE__ */ React63.createElement(
7210
- "li",
7214
+ "a",
7211
7215
  {
7216
+ href: subitem.slug,
7212
7217
  key: idx,
7213
7218
  onMouseDown: (e) => {
7214
7219
  if (subitem.onMouseDown) {
@@ -7237,8 +7242,9 @@ var SidebarItem = ({
7237
7242
  );
7238
7243
  } else {
7239
7244
  return /* @__PURE__ */ React63.createElement(
7240
- "div",
7245
+ "a",
7241
7246
  {
7247
+ href: item.slug,
7242
7248
  dir: direction,
7243
7249
  onMouseDown: (e) => {
7244
7250
  if (item.onMouseDown) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.17.9-next",
3
+ "version": "0.17.11-next",
4
4
  "description": "Modern UI Kit made with Tailwind",
5
5
  "author": {
6
6
  "name": "Sikka Software",