nexus-shared 1.1.6 → 1.1.8

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,14 +1,13 @@
1
1
  {
2
2
  "name": "nexus-shared",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Nexus shared React components for Next.js",
5
5
  "type": "module",
6
6
  "sideEffects": [ "**/*.css" ],
7
7
  "exports": {
8
8
  ".": "./src/index.ts",
9
- "./interface": "./src/interface.ts",
10
- "./server": "./src/server.ts",
11
- "./client": "./src/client.ts"
9
+ "./client": "./src/client.ts",
10
+ "./interface": "./src/interface.ts"
12
11
  },
13
12
  "files": [ "src" ],
14
13
  "scripts": {
package/src/client.ts ADDED
@@ -0,0 +1,26 @@
1
+ "use client";
2
+
3
+ // React hooks (useEffect / useState)
4
+ export * from "./components/layouts/layout-helpers";
5
+ export * from "./components/layouts/global-dialogbox";
6
+ export * from "./components/layouts/utility-menu";
7
+ export * from "./components/documents/tab-button";
8
+ export * from "./components/panels/theme-panel";
9
+
10
+ export * from "./components/inputs/input-form";
11
+ export * from "./components/inputs/checkbox-input";
12
+ export * from "./components/inputs/number-input";
13
+ export * from "./components/inputs/radiobox-input";
14
+ export * from "./components/inputs/textarea-input";
15
+ export * from "./components/inputs/textbox-input";
16
+
17
+ // document / window / localStorage
18
+ export * from "./helpers/browser-helpers";
19
+ export * from "./services/loader-service";
20
+ export * from "./services/theme-service";
21
+ export * from "./services/localstorage-service";
22
+ export * from "./components/documents/button";
23
+ export * from "./components/documents/icon-box";
24
+ export * from "./components/inputs/input-box";
25
+ export * from "./components/inputs/input-element";
26
+ export * from "./components/inputs/input";
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { useEffect } from "react";
4
2
  import { RemoveElement } from "../../helpers/browser-helpers";
5
3
  import { IGlobalLayout, ROOT_LOADER_IDENTITY } from "../../interfaces/layout-interfaces";
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import React, { JSX } from "react";
4
2
  import { EIconTypes } from "../../interfaces/icon-interfaces";
5
3
  import { EPositions, ESizes, IGlobalLayout } from "../../interfaces/layout-interfaces";
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { EAnimationClasses } from "../interfaces/layout-interfaces";
4
2
  import { NEXUS_INFO } from "../nexus.environments";
5
3
  import { EKeyModifier, EKeys } from "./../interfaces/browser-interfaces";
package/src/index.ts CHANGED
@@ -0,0 +1,40 @@
1
+ import "./load-env";
2
+
3
+ // API services
4
+ export * from "./api-services/preference-service";
5
+ export * from "./api-services/system-service";
6
+
7
+ // Components — documents (server-safe)
8
+ export * from "./components/documents/page-title";
9
+
10
+ // Components — layouts (server-safe)
11
+ export * from "./components/layouts/global-layout";
12
+
13
+ // Helpers
14
+ export * from "./helpers/bitwise-helpers";
15
+ export * from "./helpers/datasource-helpers";
16
+ export * from "./helpers/element-helpers";
17
+ export * from "./helpers/input-helpers";
18
+ export * from "./helpers/string-helpers";
19
+ export * from "./helpers/utility-helpers";
20
+
21
+ // Interfaces
22
+ export * from "./interfaces/browser-interfaces";
23
+ export * from "./interfaces/button-interfaces";
24
+ export * from "./interfaces/datatable-interfaces";
25
+ export * from "./interfaces/datasource-interfaces";
26
+ export * from "./interfaces/dialogbox-interfaces";
27
+ export * from "./interfaces/http-interfaces";
28
+ export * from "./interfaces/icon-interfaces";
29
+ export * from "./interfaces/input-interfaces";
30
+ export * from "./interfaces/layout-interfaces";
31
+ export * from "./interfaces/menu-interfaces";
32
+ export * from "./interfaces/permission-interfaces";
33
+ export * from "./interfaces/storage-interfaces";
34
+ export * from "./interfaces/system-interfaces";
35
+ export * from "./interfaces/theme-interfaces";
36
+ export * from "./interfaces/type-interfaces";
37
+
38
+ // Core
39
+ export * from "./nexus-client";
40
+ export * from "./nexus.environments";
@@ -0,0 +1,15 @@
1
+ export * from "./interfaces/browser-interfaces";
2
+ export * from "./interfaces/button-interfaces";
3
+ export * from "./interfaces/datatable-interfaces";
4
+ export * from "./interfaces/datasource-interfaces";
5
+ export * from "./interfaces/dialogbox-interfaces";
6
+ export * from "./interfaces/http-interfaces";
7
+ export * from "./interfaces/icon-interfaces";
8
+ export * from "./interfaces/input-interfaces";
9
+ export * from "./interfaces/layout-interfaces";
10
+ export * from "./interfaces/menu-interfaces";
11
+ export * from "./interfaces/permission-interfaces";
12
+ export * from "./interfaces/storage-interfaces";
13
+ export * from "./interfaces/system-interfaces";
14
+ export * from "./interfaces/theme-interfaces";
15
+ export * from "./interfaces/type-interfaces";
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { IAccessAction } from "./interfaces/permission-interfaces";
4
2
  import { IThemeInformation } from "./interfaces/theme-interfaces";
5
3
 
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { CreateUpdatePreference } from "../api-services/preference-service";
4
2
  import { IsBrowser } from "../helpers/browser-helpers";
5
3
  import { Debounce } from "../helpers/utility-helpers";
@@ -1,5 +1,3 @@
1
- "use client";
2
-
3
1
  import { DEFAULT_SMALL_ICON_BOX_SIZE } from "../interfaces/icon-interfaces";
4
2
  import { DEFAULT_FONT_WEIGHTS } from "../interfaces/layout-interfaces";
5
3
  import { O } from "../nexus-client";