@yusr_systems/ui 6.0.1 → 6.0.2

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.ts CHANGED
@@ -1369,7 +1369,7 @@ export declare type YusrSidBarProps = {
1369
1369
  * @param {YusrSidBarMainMenuProps["items"]} [navSecondary] The secondary navigation items for the sidebar.
1370
1370
  * @param {React.ReactNode} [children] The children of the sidebar component.
1371
1371
  *
1372
- * for more details about, read the documentation [here](https://docs.yusrsys.com/docs/templates/ui/yusr-sidebar)
1372
+ * for more details about, read the documentation [here](https://yusrsystems.github.io/yusr-ui-docs/docs/Templates/yusr-sidebar/)
1373
1373
  */
1374
1374
  export declare function YusrSideBar({ LinkComponent, logos, displayCompany, navMain, navSecondary, children, ...props }: React.ComponentProps<typeof Sidebar> & YusrSidBarProps & PropsWithChildren): JSX.Element;
1375
1375
 
package/dist/yusr-ui.js CHANGED
@@ -4569,25 +4569,23 @@ function $o(e, t) {
4569
4569
  //#endregion
4570
4570
  //#region src/hooks/useEntityForm.ts
4571
4571
  function es(e, t) {
4572
- let [n, i] = c({ ...e }), [o, s] = c(e);
4573
- a(() => {
4574
- i({ ...e }), s(e);
4575
- }, [e]);
4576
- let l = $o(n, t);
4572
+ let [n, i] = c({ ...e }), [a, o] = c(e);
4573
+ e !== a && (i({ ...e }), o(e));
4574
+ let s = $o(n, t);
4577
4575
  return {
4578
4576
  formData: n,
4579
4577
  handleChange: r((e) => {
4580
4578
  i((t) => {
4581
4579
  let n = typeof e == "function" ? e(t) : e;
4582
4580
  return Object.keys(n).forEach((e) => {
4583
- l.clearError(e);
4581
+ s.clearError(e);
4584
4582
  }), {
4585
4583
  ...t,
4586
4584
  ...n
4587
4585
  };
4588
4586
  });
4589
- }, [l]),
4590
- ...l
4587
+ }, [s]),
4588
+ ...s
4591
4589
  };
4592
4590
  }
4593
4591
  //#endregion
@@ -4695,11 +4693,11 @@ function ns(e, t) {
4695
4693
  //#endregion
4696
4694
  //#region src/state/authListener.ts
4697
4695
  var rs = (e, t) => {
4698
- typeof window > "u" || (window.addEventListener("storage", (n) => {
4696
+ window.addEventListener("storage", (n) => {
4699
4697
  n.key === Ye.AuthCheckStorageItemName && e(t.syncFromStorage());
4700
4698
  }), window.addEventListener(Ye.UnauthorizedEventName, () => {
4701
4699
  e(t.logout());
4702
- }));
4700
+ });
4703
4701
  };
4704
4702
  //#endregion
4705
4703
  //#region src/state/generics/genericDialogSlice.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yusr_systems/ui",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  "@radix-ui/react-toggle": "^1.1.10",
46
46
  "@radix-ui/react-toggle-group": "^1.1.11",
47
47
  "@radix-ui/react-tooltip": "^1.2.8",
48
- "@yusr_systems/core": "^6.0.1",
48
+ "@yusr_systems/core": "^6.0.2",
49
49
  "class-variance-authority": "^0.7.1",
50
50
  "clsx": "^2.1.1",
51
51
  "cmdk": "^1.1.1",