enjanga-components-library 1.0.20 → 1.0.21

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.js CHANGED
@@ -20,6 +20,7 @@ var __copyProps = (to, from, except, desc) => {
20
20
  }
21
21
  return to;
22
22
  };
23
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
25
  // If the importer is in node compatibility mode or this is not an ESM
25
26
  // file that has been converted to a CommonJS file using a Babel-
@@ -1562,7 +1563,18 @@ module.exports = __toCommonJS(index_exports);
1562
1563
 
1563
1564
  // src/components/AppHeader/AppHeader.tsx
1564
1565
  var import_react = require("@carbon/react");
1565
- var import_next = require("enjanga-core-setup/next");
1566
+
1567
+ // node_modules/enjanga-core-setup/dist/next.mjs
1568
+ var next_exports = {};
1569
+ __export(next_exports, {
1570
+ Image: () => import_image.default,
1571
+ Link: () => import_link.default
1572
+ });
1573
+ var import_link = __toESM(require("next/link"), 1);
1574
+ var import_image = __toESM(require("next/image"), 1);
1575
+ __reExport(next_exports, require("next/navigation"));
1576
+
1577
+ // src/components/AppHeader/AppHeader.tsx
1566
1578
  var import_jsx_runtime = require("react/jsx-runtime");
1567
1579
  var AppHeader = ({
1568
1580
  brand,
@@ -1585,7 +1597,7 @@ var AppHeader = ({
1585
1597
  isActive: isSideNavExpanded
1586
1598
  }
1587
1599
  ),
1588
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.HeaderName, { prefix: "", as: import_next.Link, href: brandRoute, passHref: true, children: brand }),
1600
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.HeaderName, { prefix: "", as: import_link.default, href: brandRoute, passHref: true, children: brand }),
1589
1601
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.HeaderNavigation, { "aria-label": brandLabel, children: navigation }),
1590
1602
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1591
1603
  import_react.SideNav,
package/dist/index.mjs CHANGED
@@ -13,6 +13,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
13
13
  var __commonJS = (cb, mod) => function __require2() {
14
14
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
15
  };
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
16
20
  var __copyProps = (to, from, except, desc) => {
17
21
  if (from && typeof from === "object" || typeof from === "function") {
18
22
  for (let key of __getOwnPropNames(from))
@@ -21,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
21
25
  }
22
26
  return to;
23
27
  };
28
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
24
29
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
30
  // If the importer is in node compatibility mode or this is not an ESM
26
31
  // file that has been converted to a CommonJS file using a Babel-
@@ -1550,7 +1555,19 @@ import {
1550
1555
  SideNav,
1551
1556
  HeaderSideNavItems
1552
1557
  } from "@carbon/react";
1553
- import { Link } from "enjanga-core-setup/next";
1558
+
1559
+ // node_modules/enjanga-core-setup/dist/next.mjs
1560
+ var next_exports = {};
1561
+ __export(next_exports, {
1562
+ Image: () => default3,
1563
+ Link: () => default2
1564
+ });
1565
+ __reExport(next_exports, navigation_star);
1566
+ import { default as default2 } from "next/link";
1567
+ import { default as default3 } from "next/image";
1568
+ import * as navigation_star from "next/navigation";
1569
+
1570
+ // src/components/AppHeader/AppHeader.tsx
1554
1571
  import { jsx, jsxs } from "react/jsx-runtime";
1555
1572
  var AppHeader = ({
1556
1573
  brand,
@@ -1573,7 +1590,7 @@ var AppHeader = ({
1573
1590
  isActive: isSideNavExpanded
1574
1591
  }
1575
1592
  ),
1576
- /* @__PURE__ */ jsx(HeaderName, { prefix: "", as: Link, href: brandRoute, passHref: true, children: brand }),
1593
+ /* @__PURE__ */ jsx(HeaderName, { prefix: "", as: default2, href: brandRoute, passHref: true, children: brand }),
1577
1594
  /* @__PURE__ */ jsx(HeaderNavigation, { "aria-label": brandLabel, children: navigation }),
1578
1595
  /* @__PURE__ */ jsx(
1579
1596
  SideNav,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enjanga-components-library",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Reusable component library for Next.js 13+ projects with Carbon design system.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,10 +31,10 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "prepare": "yarn build",
34
- "build": "yarn build:css && tsup src/index.ts --dts --format esm,cjs --out-dir dist --external react --external react-dom --external @carbon/react --external clsx",
34
+ "build": "yarn build:css && tsup src/index.ts --dts --format esm,cjs --out-dir dist --external react --external react-dom --external @carbon/react --external clsx --external react-is",
35
35
  "build:css": "mkdir -p dist && sass --load-path=node_modules --no-source-map --style=compressed src/styles/index.scss dist/styles.css",
36
36
  "watch": "concurrently \"yarn watch:ts\" \"yarn watch:css\"",
37
- "watch:ts": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --watch --external react --external react-dom --external @carbon/react --external clsx",
37
+ "watch:ts": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --watch --external react --external react-dom --external @carbon/react --external clsx --external react-is",
38
38
  "watch:css": "sass -I node_modules --no-source-map --watch src/styles/index.scss dist/styles.css",
39
39
  "storybook": "storybook dev -p 6006",
40
40
  "build-storybook": "storybook build",
@@ -45,7 +45,8 @@
45
45
  "@carbon/react": "^1",
46
46
  "next": "^13.0.0 || ^14.0.0 || ^15.0.0",
47
47
  "react": "^19.0.0",
48
- "react-dom": "^19.0.0"
48
+ "react-dom": "^19.0.0",
49
+ "react-is": "^19.0.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@babel/core": "^7.28.4",
@@ -62,16 +63,18 @@
62
63
  "@storybook/react-webpack5": "^8.6.14",
63
64
  "@storybook/types": "^8.6.14",
64
65
  "@types/node": "^24.5.2",
65
- "@types/react": "^18.2.0",
66
- "@types/react-dom": "^18.2.0",
66
+ "@types/react": "19",
67
+ "@types/react-dom": "19",
67
68
  "@types/webpack": "^5.28.5",
68
69
  "babel-loader": "^10.0.0",
69
70
  "clsx": "^2.1.1",
70
71
  "concurrently": "^9.1.2",
71
72
  "css-loader": "^7.1.2",
72
- "react": "19.1.1",
73
+ "enjanga-core-setup": "^1.0.19",
74
+ "react": "^19.0.0",
73
75
  "react-docgen-typescript": "^2.4.0",
74
- "react-dom": "19.1.1",
76
+ "react-dom": "^19.0.0",
77
+ "react-is": "^19.0.0",
75
78
  "sass": "^1.93.0",
76
79
  "sass-loader": "^16.0.5",
77
80
  "storybook": "^8.6.14",
@@ -79,10 +82,7 @@
79
82
  "tsup": "^8.5.0",
80
83
  "typescript": "^5.0.0"
81
84
  },
82
- "dependencies": {
83
- "enjanga-core-setup": "^1.0.19",
84
- "react-is": "^19.0.0"
85
- },
85
+ "dependencies": {},
86
86
  "repository": {
87
87
  "type": "git",
88
88
  "url": "https://github.com/ericnjanga/enjanga-components-library.git"