nexus-public 1.0.12 → 2.0.0

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.
Files changed (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +109 -0
  3. package/dist/Client.Index.d.ts +1 -0
  4. package/dist/Client.Index.js +3 -0
  5. package/dist/Components/Layouts/SiteBrandMark.d.ts +12 -0
  6. package/dist/Components/Layouts/SiteBrandMark.js +13 -0
  7. package/dist/Components/Layouts/SiteFooter.d.ts +3 -0
  8. package/dist/Components/Layouts/SiteFooter.js +9 -0
  9. package/dist/Components/Layouts/SiteHeader.d.ts +9 -0
  10. package/dist/Components/Layouts/SiteHeader.js +53 -0
  11. package/dist/Components/Layouts/SiteLayout.d.ts +17 -0
  12. package/dist/Components/Layouts/SiteLayout.js +15 -0
  13. package/dist/Components/Sections/FeatureCard.d.ts +12 -0
  14. package/dist/Components/Sections/FeatureCard.js +10 -0
  15. package/dist/Components/Sections/Hero.d.ts +17 -0
  16. package/dist/Components/Sections/Hero.js +6 -0
  17. package/dist/Components/Sections/ShowcaseCard.d.ts +25 -0
  18. package/dist/Components/Sections/ShowcaseCard.js +13 -0
  19. package/dist/Components/Sections/SiteSection.d.ts +16 -0
  20. package/dist/Components/Sections/SiteSection.js +7 -0
  21. package/dist/Helpers/SiteHelpers.d.ts +27 -0
  22. package/dist/Helpers/SiteHelpers.js +42 -0
  23. package/dist/Interfaces/SiteInterfaces.d.ts +59 -0
  24. package/dist/Interfaces/SiteInterfaces.js +1 -0
  25. package/dist/Server.Index.d.ts +1 -0
  26. package/dist/Server.Index.js +3 -0
  27. package/dist/Shared.Index.d.ts +9 -0
  28. package/dist/Shared.Index.js +14 -0
  29. package/package.json +60 -30
  30. package/src/Styles/Nexus.Public.Index.css +9 -0
  31. package/src/Styles/Nexus.Site.css +646 -0
  32. package/src/api-services/system-service.tsx +0 -13
  33. package/src/client.ts +0 -3
  34. package/src/components/layouts/client-layout.tsx +0 -32
  35. package/src/components/layouts/client-menu.tsx +0 -177
  36. package/src/index.ts +0 -1
  37. package/src/styles/nexus.layout.css +0 -24
package/package.json CHANGED
@@ -1,30 +1,60 @@
1
- {
2
- "name": "nexus-public",
3
- "version": "1.0.12",
4
- "description": "Nexus public React components for Next.js",
5
- "type": "module",
6
- "sideEffects": false,
7
- "exports": {
8
- ".": "./src/index.ts",
9
- "./client": "./src/client.ts"
10
- },
11
- "files": [
12
- "src"
13
- ],
14
- "scripts": {
15
- "typecheck": "tsc --noEmit"
16
- },
17
- "peerDependencies": {
18
- "react": "19.2.6",
19
- "react-dom": "19.2.6",
20
- "next": "16.2.6"
21
- },
22
- "dependencies": {
23
- "nexus-shared": "^1.1.21"
24
- },
25
- "devDependencies": {
26
- "@types/react": "^19.2.15",
27
- "@types/react-dom": "^19.2.3",
28
- "typescript": "^5"
29
- }
30
- }
1
+ {
2
+ "name": "nexus-public",
3
+ "version": "2.0.0",
4
+ "description": "Public site building blocks for Nexus apps: the client layout and menu, built on nexus-shared.",
5
+ "keywords": [
6
+ "react",
7
+ "nextjs",
8
+ "layout",
9
+ "public-site",
10
+ "nexus"
11
+ ],
12
+ "license": "MIT",
13
+ "author": "Bijay Adhikari",
14
+ "type": "module",
15
+ "sideEffects": [
16
+ "*.css"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/Shared.Index.d.ts",
21
+ "default": "./dist/Shared.Index.js"
22
+ },
23
+ "./client": {
24
+ "types": "./dist/Client.Index.d.ts",
25
+ "default": "./dist/Client.Index.js"
26
+ },
27
+ "./server": {
28
+ "types": "./dist/Server.Index.d.ts",
29
+ "default": "./dist/Server.Index.js"
30
+ },
31
+ "./styles.css": "./src/Styles/Nexus.Public.Index.css",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "src/Styles"
37
+ ],
38
+ "scripts": {
39
+ "build": "tsc -p tsconfig.build.json",
40
+ "typecheck": "tsc -p tsconfig.json"
41
+ },
42
+ "dependencies": {
43
+ "nexus-icons": "^1.0.0",
44
+ "nexus-shared": "^2.0.0"
45
+ },
46
+ "peerDependencies": {
47
+ "next": ">=16",
48
+ "react": ">=19",
49
+ "react-dom": ">=19"
50
+ },
51
+ "devDependencies": {
52
+ "@types/react": "19.3.0"
53
+ },
54
+ "engines": {
55
+ "node": ">=20.9"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ }
60
+ }
@@ -0,0 +1,9 @@
1
+ /*
2
+ * nexus-public styles: import once, at the root of the app, after the nexus-shared styles.
3
+ * import "nexus-shared/styles.css";
4
+ * import "nexus-public/styles.css";
5
+ *
6
+ * Everything sits in the nexus.components layer that nexus-shared declares, so styles the app writes outside a
7
+ * layer win without !important.
8
+ */
9
+ @import "./Nexus.Site.css";