nexus-shared 1.1.7 → 1.1.9

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.7",
3
+ "version": "1.1.9",
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,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useEffect, useState } from "react";
2
4
  import { CreateClone, DynamicSorting, GetVisibleAndHiddenItems } from "../../helpers/datasource-helpers";
3
5
  import { RenderChildren } from "../../helpers/element-helpers";
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useEffect } from "react";
2
4
  import { GetInputId } from "../../helpers/input-helpers";
3
5
  import { IForm, IFormCreateResults, IInputCreateResults } from "../../interfaces/input-interfaces";
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useEffect } from "react";
2
4
  import { ConvertRemToPixels, IsKeyPressed } from "../../helpers/browser-helpers";
3
5
  import { Debounce, DebouncedFunction } from "../../helpers/utility-helpers";
@@ -1,3 +1,5 @@
1
+ 'use server'
2
+
1
3
  import Script from "next/script";
2
4
  import React from "react";
3
5
  import {
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import { useEffect } from "react";
2
4
  import { RemoveElement } from "../../helpers/browser-helpers";
3
5
  import { IGlobalLayout, ROOT_LOADER_IDENTITY } from "../../interfaces/layout-interfaces";
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  import React, { useEffect } from "react";
2
4
  import { GetButton, IButton } from "../../interfaces/button-interfaces";
3
5
  import { EIconTypes } from "../../interfaces/icon-interfaces";
package/src/index.ts CHANGED
@@ -4,36 +4,14 @@ import "./load-env";
4
4
  export * from "./api-services/preference-service";
5
5
  export * from "./api-services/system-service";
6
6
 
7
- // Components — documents
8
- export * from "./components/documents/button";
9
- export * from "./components/documents/icon-box";
7
+ // Components — documents (server-safe)
10
8
  export * from "./components/documents/page-title";
11
- export * from "./components/documents/tab-button";
12
9
 
13
- // Components — inputs
14
- export * from "./components/inputs/checkbox-input";
15
- export * from "./components/inputs/input";
16
- export * from "./components/inputs/input-box";
17
- export * from "./components/inputs/input-element";
18
- export * from "./components/inputs/input-form";
19
- export * from "./components/inputs/number-input";
20
- export * from "./components/inputs/radiobox-input";
21
- export * from "./components/inputs/textarea-input";
22
- export * from "./components/inputs/textbox-input";
23
-
24
-
25
- // Components — layouts
10
+ // Components — layouts (server-safe)
26
11
  export * from "./components/layouts/global-layout";
27
- export * from "./components/layouts/global-dialogbox";
28
- export * from "./components/layouts/layout-helpers";
29
- export * from "./components/layouts/utility-menu";
30
-
31
- // Components — panels
32
- export * from "./components/panels/theme-panel";
33
12
 
34
13
  // Helpers
35
14
  export * from "./helpers/bitwise-helpers";
36
- export * from "./helpers/browser-helpers";
37
15
  export * from "./helpers/datasource-helpers";
38
16
  export * from "./helpers/element-helpers";
39
17
  export * from "./helpers/input-helpers";
@@ -57,11 +35,6 @@ export * from "./interfaces/system-interfaces";
57
35
  export * from "./interfaces/theme-interfaces";
58
36
  export * from "./interfaces/type-interfaces";
59
37
 
60
- // Services
61
- export * from "./services/loader-service";
62
- export * from "./services/localstorage-service";
63
- export * from "./services/theme-service";
64
-
65
38
  // Core
66
39
  export * from "./nexus-client";
67
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";