@yusr_systems/ui 3.1.6 → 5.0.1

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
@@ -1368,6 +1368,8 @@ export declare type YusrSidBarProps = {
1368
1368
  * @param {YusrSidBarMainMenuProps["items"]} [navMain] The main navigation items for the sidebar.
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
+ *
1372
+ * for more details about, read the documentation [here](https://docs.yusrsys.com/docs/templates/ui/yusr-sidebar)
1371
1373
  */
1372
1374
  export declare function YusrSideBar({ LinkComponent, logos, displayCompany, navMain, navSecondary, children, ...props }: React.ComponentProps<typeof Sidebar> & YusrSidBarProps & PropsWithChildren): JSX.Element;
1373
1375
 
package/dist/yusr-ui.js CHANGED
@@ -4693,11 +4693,11 @@ function ns(e, t) {
4693
4693
  //#endregion
4694
4694
  //#region src/state/authListener.ts
4695
4695
  var rs = (e, t) => {
4696
- window.addEventListener("storage", (n) => {
4696
+ typeof window > "u" || (window.addEventListener("storage", (n) => {
4697
4697
  n.key === Ye.AuthCheckStorageItemName && e(t.syncFromStorage());
4698
4698
  }), window.addEventListener(Ye.UnauthorizedEventName, () => {
4699
4699
  e(t.logout());
4700
- });
4700
+ }));
4701
4701
  };
4702
4702
  //#endregion
4703
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": "3.1.6",
3
+ "version": "5.0.1",
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": "^2.2.10",
48
+ "@yusr_systems/core": "^2.4.0",
49
49
  "class-variance-authority": "^0.7.1",
50
50
  "clsx": "^2.1.1",
51
51
  "cmdk": "^1.1.1",