enjanga-components-library 1.0.14 → 1.0.15

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.mts CHANGED
@@ -147,6 +147,8 @@ type CTL_propsType = {
147
147
 
148
148
  declare const CustomTile: ({ className, featuredText, layoutStyle, media, mediaPictogram, mediaImage, modalIsAvailable, modalPlainDescription, modalRichDescription, linksTo, linkTarget, }: CTL_propsType) => react_jsx_runtime.JSX.Element;
149
149
 
150
+ declare const CustomTabs: () => react_jsx_runtime.JSX.Element;
151
+
150
152
  interface LIT_propsType {
151
153
  content?: string;
152
154
  href?: string;
@@ -205,4 +207,4 @@ interface CRT_propsType {
205
207
 
206
208
  declare const CMSRichText: ({ data, className }: CRT_propsType) => react_jsx_runtime.JSX.Element;
207
209
 
208
- export { AppHeader, Banner, BrandLogo, CMSRichText, CP_getPictogram, type CP_nameType, CP_pictogramMap, type CTL_valid_linkTo, ContactButton, CustomPictogram, CustomTile, FeatureText, HeadlinedList, List, SmartText };
210
+ export { AppHeader, Banner, BrandLogo, CMSRichText, CP_getPictogram, type CP_nameType, CP_pictogramMap, type CTL_valid_linkTo, ContactButton, CustomPictogram, CustomTabs, CustomTile, FeatureText, HeadlinedList, List, SmartText };
package/dist/index.d.ts CHANGED
@@ -147,6 +147,8 @@ type CTL_propsType = {
147
147
 
148
148
  declare const CustomTile: ({ className, featuredText, layoutStyle, media, mediaPictogram, mediaImage, modalIsAvailable, modalPlainDescription, modalRichDescription, linksTo, linkTarget, }: CTL_propsType) => react_jsx_runtime.JSX.Element;
149
149
 
150
+ declare const CustomTabs: () => react_jsx_runtime.JSX.Element;
151
+
150
152
  interface LIT_propsType {
151
153
  content?: string;
152
154
  href?: string;
@@ -205,4 +207,4 @@ interface CRT_propsType {
205
207
 
206
208
  declare const CMSRichText: ({ data, className }: CRT_propsType) => react_jsx_runtime.JSX.Element;
207
209
 
208
- export { AppHeader, Banner, BrandLogo, CMSRichText, CP_getPictogram, type CP_nameType, CP_pictogramMap, type CTL_valid_linkTo, ContactButton, CustomPictogram, CustomTile, FeatureText, HeadlinedList, List, SmartText };
210
+ export { AppHeader, Banner, BrandLogo, CMSRichText, CP_getPictogram, type CP_nameType, CP_pictogramMap, type CTL_valid_linkTo, ContactButton, CustomPictogram, CustomTabs, CustomTile, FeatureText, HeadlinedList, List, SmartText };
package/dist/index.js CHANGED
@@ -1830,6 +1830,7 @@ __export(index_exports, {
1830
1830
  CP_pictogramMap: () => CP_pictogramMap,
1831
1831
  ContactButton: () => ContactButton_default,
1832
1832
  CustomPictogram: () => CustomPictogram_default,
1833
+ CustomTabs: () => CustomTabs_default,
1833
1834
  CustomTile: () => CustomTile_default,
1834
1835
  FeatureText: () => FeatureText_default,
1835
1836
  HeadlinedList: () => HeadlinedList_default,
@@ -24301,8 +24302,36 @@ var CustomTile_default = CustomTile;
24301
24302
  // src/components/CustomTile/index.ts
24302
24303
  var MemoizedCustomTile = (0, import_react29.memo)(CustomTile_default);
24303
24304
 
24304
- // src/components/HeadlinedList/index.ts
24305
+ // src/components/CustomTabs/CustomTabs.tsx
24305
24306
  var import_react30 = require("react");
24307
+ var import_react31 = require("@carbon/react");
24308
+ var import_jsx_runtime20 = require("react/jsx-runtime");
24309
+ var CustomTabs = () => {
24310
+ const [selected, setSelected] = (0, import_react30.useState)(0);
24311
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
24312
+ import_react31.Tabs,
24313
+ {
24314
+ selectedIndex: selected,
24315
+ onChange: ({ selectedIndex }) => setSelected(selectedIndex),
24316
+ children: [
24317
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react31.TabList, { "aria-label": "Sample Tabs", children: [
24318
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab One" }),
24319
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab Two" }),
24320
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab Three" })
24321
+ ] }),
24322
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react31.TabPanels, { children: [
24323
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab One" }),
24324
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab Two" }),
24325
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab Three" })
24326
+ ] })
24327
+ ]
24328
+ }
24329
+ );
24330
+ };
24331
+ var CustomTabs_default = CustomTabs;
24332
+
24333
+ // src/components/HeadlinedList/index.ts
24334
+ var import_react32 = require("react");
24306
24335
 
24307
24336
  // src/components/HeadlinedList/HeadlinedList.tsx
24308
24337
  var import_clsx11 = __toESM(require("clsx"));
@@ -24312,27 +24341,27 @@ var import_clsx10 = __toESM(require("clsx"));
24312
24341
 
24313
24342
  // src/components/ListItem/ListItem.tsx
24314
24343
  var import_clsx9 = __toESM(require("clsx"));
24315
- var import_jsx_runtime20 = require("react/jsx-runtime");
24344
+ var import_jsx_runtime21 = require("react/jsx-runtime");
24316
24345
  var ListItem = ({ content, href, className, children }) => {
24317
24346
  if (content === void 0) {
24318
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SkeletonAnimation_default, { part: "list-item" });
24347
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SkeletonAnimation_default, { part: "list-item" });
24319
24348
  }
24320
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("li", { className: (0, import_clsx9.default)(className), children: [
24321
- href ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("a", { href, children: content }) : content,
24349
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("li", { className: (0, import_clsx9.default)(className), children: [
24350
+ href ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("a", { href, children: content }) : content,
24322
24351
  children
24323
24352
  ] });
24324
24353
  };
24325
24354
  var ListItem_default = ListItem;
24326
24355
 
24327
24356
  // src/components/List/List.tsx
24328
- var import_jsx_runtime21 = require("react/jsx-runtime");
24357
+ var import_jsx_runtime22 = require("react/jsx-runtime");
24329
24358
  var List = ({ type = "unordered", className, content }) => {
24330
24359
  const ListWrapper = type === "unordered" ? "ul" : "ol";
24331
24360
  if (!content || content.length < 1) {
24332
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SkeletonAnimation_default, { part: "list" });
24361
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SkeletonAnimation_default, { part: "list" });
24333
24362
  }
24334
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ListWrapper, { className: (0, import_clsx10.default)("enj-list", className), children: content.map((item) => {
24335
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
24363
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ListWrapper, { className: (0, import_clsx10.default)("enj-list", className), children: content.map((item) => {
24364
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
24336
24365
  ListItem_default,
24337
24366
  {
24338
24367
  content: item.content,
@@ -24347,26 +24376,26 @@ var List = ({ type = "unordered", className, content }) => {
24347
24376
  var List_default = List;
24348
24377
 
24349
24378
  // src/components/HeadlinedList/HeadlinedList.tsx
24350
- var import_jsx_runtime22 = require("react/jsx-runtime");
24379
+ var import_jsx_runtime23 = require("react/jsx-runtime");
24351
24380
  var HeadlinedList = ({
24352
24381
  wrapper = { tag: "div", cssClass: "" },
24353
24382
  heading = { children: void 0, level: 3, className: "" },
24354
24383
  list
24355
24384
  }) => {
24356
24385
  const Wrapper = wrapper.tag;
24357
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Wrapper, { className: (0, import_clsx11.default)("enj-HeadlinedList", wrapper.cssClass), children: [
24358
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24359
- list?.content?.length ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(List_default, { ...list }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(List_default, {})
24386
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Wrapper, { className: (0, import_clsx11.default)("enj-HeadlinedList", wrapper.cssClass), children: [
24387
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24388
+ list?.content?.length ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(List_default, { ...list }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(List_default, {})
24360
24389
  ] });
24361
24390
  };
24362
24391
  var HeadlinedList_default = HeadlinedList;
24363
24392
 
24364
24393
  // src/components/HeadlinedList/index.ts
24365
- var MemoizedHeadlinedList = (0, import_react30.memo)(HeadlinedList_default);
24394
+ var MemoizedHeadlinedList = (0, import_react32.memo)(HeadlinedList_default);
24366
24395
 
24367
24396
  // src/components/List/index.ts
24368
- var import_react31 = require("react");
24369
- var MemoizedList = (0, import_react31.memo)(List_default);
24397
+ var import_react33 = require("react");
24398
+ var MemoizedList = (0, import_react33.memo)(List_default);
24370
24399
  // Annotate the CommonJS export names for ESM import in node:
24371
24400
  0 && (module.exports = {
24372
24401
  AppHeader,
@@ -24377,6 +24406,7 @@ var MemoizedList = (0, import_react31.memo)(List_default);
24377
24406
  CP_pictogramMap,
24378
24407
  ContactButton,
24379
24408
  CustomPictogram,
24409
+ CustomTabs,
24380
24410
  CustomTile,
24381
24411
  FeatureText,
24382
24412
  HeadlinedList,
package/dist/index.mjs CHANGED
@@ -24298,6 +24298,34 @@ var CustomTile_default = CustomTile;
24298
24298
  // src/components/CustomTile/index.ts
24299
24299
  var MemoizedCustomTile = memo(CustomTile_default);
24300
24300
 
24301
+ // src/components/CustomTabs/CustomTabs.tsx
24302
+ import { useState as useState4 } from "react";
24303
+ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@carbon/react";
24304
+ import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
24305
+ var CustomTabs = () => {
24306
+ const [selected, setSelected] = useState4(0);
24307
+ return /* @__PURE__ */ jsxs11(
24308
+ Tabs,
24309
+ {
24310
+ selectedIndex: selected,
24311
+ onChange: ({ selectedIndex }) => setSelected(selectedIndex),
24312
+ children: [
24313
+ /* @__PURE__ */ jsxs11(TabList, { "aria-label": "Sample Tabs", children: [
24314
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab One" }),
24315
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab Two" }),
24316
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab Three" })
24317
+ ] }),
24318
+ /* @__PURE__ */ jsxs11(TabPanels, { children: [
24319
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab One" }),
24320
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab Two" }),
24321
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab Three" })
24322
+ ] })
24323
+ ]
24324
+ }
24325
+ );
24326
+ };
24327
+ var CustomTabs_default = CustomTabs;
24328
+
24301
24329
  // src/components/HeadlinedList/index.ts
24302
24330
  import { memo as memo2 } from "react";
24303
24331
 
@@ -24309,27 +24337,27 @@ import clsx10 from "clsx";
24309
24337
 
24310
24338
  // src/components/ListItem/ListItem.tsx
24311
24339
  import clsx9 from "clsx";
24312
- import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
24340
+ import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
24313
24341
  var ListItem = ({ content, href, className, children }) => {
24314
24342
  if (content === void 0) {
24315
- return /* @__PURE__ */ jsx20(SkeletonAnimation_default, { part: "list-item" });
24343
+ return /* @__PURE__ */ jsx21(SkeletonAnimation_default, { part: "list-item" });
24316
24344
  }
24317
- return /* @__PURE__ */ jsxs11("li", { className: clsx9(className), children: [
24318
- href ? /* @__PURE__ */ jsx20("a", { href, children: content }) : content,
24345
+ return /* @__PURE__ */ jsxs12("li", { className: clsx9(className), children: [
24346
+ href ? /* @__PURE__ */ jsx21("a", { href, children: content }) : content,
24319
24347
  children
24320
24348
  ] });
24321
24349
  };
24322
24350
  var ListItem_default = ListItem;
24323
24351
 
24324
24352
  // src/components/List/List.tsx
24325
- import { jsx as jsx21 } from "react/jsx-runtime";
24353
+ import { jsx as jsx22 } from "react/jsx-runtime";
24326
24354
  var List = ({ type = "unordered", className, content }) => {
24327
24355
  const ListWrapper = type === "unordered" ? "ul" : "ol";
24328
24356
  if (!content || content.length < 1) {
24329
- return /* @__PURE__ */ jsx21(SkeletonAnimation_default, { part: "list" });
24357
+ return /* @__PURE__ */ jsx22(SkeletonAnimation_default, { part: "list" });
24330
24358
  }
24331
- return /* @__PURE__ */ jsx21(ListWrapper, { className: clsx10("enj-list", className), children: content.map((item) => {
24332
- return /* @__PURE__ */ jsx21(
24359
+ return /* @__PURE__ */ jsx22(ListWrapper, { className: clsx10("enj-list", className), children: content.map((item) => {
24360
+ return /* @__PURE__ */ jsx22(
24333
24361
  ListItem_default,
24334
24362
  {
24335
24363
  content: item.content,
@@ -24344,16 +24372,16 @@ var List = ({ type = "unordered", className, content }) => {
24344
24372
  var List_default = List;
24345
24373
 
24346
24374
  // src/components/HeadlinedList/HeadlinedList.tsx
24347
- import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
24375
+ import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
24348
24376
  var HeadlinedList = ({
24349
24377
  wrapper = { tag: "div", cssClass: "" },
24350
24378
  heading = { children: void 0, level: 3, className: "" },
24351
24379
  list
24352
24380
  }) => {
24353
24381
  const Wrapper = wrapper.tag;
24354
- return /* @__PURE__ */ jsxs12(Wrapper, { className: clsx11("enj-HeadlinedList", wrapper.cssClass), children: [
24355
- /* @__PURE__ */ jsx22(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24356
- list?.content?.length ? /* @__PURE__ */ jsx22(List_default, { ...list }) : /* @__PURE__ */ jsx22(List_default, {})
24382
+ return /* @__PURE__ */ jsxs13(Wrapper, { className: clsx11("enj-HeadlinedList", wrapper.cssClass), children: [
24383
+ /* @__PURE__ */ jsx23(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24384
+ list?.content?.length ? /* @__PURE__ */ jsx23(List_default, { ...list }) : /* @__PURE__ */ jsx23(List_default, {})
24357
24385
  ] });
24358
24386
  };
24359
24387
  var HeadlinedList_default = HeadlinedList;
@@ -24373,6 +24401,7 @@ export {
24373
24401
  CP_pictogramMap,
24374
24402
  ContactButton_default as ContactButton,
24375
24403
  CustomPictogram_default as CustomPictogram,
24404
+ CustomTabs_default as CustomTabs,
24376
24405
  CustomTile_default as CustomTile,
24377
24406
  FeatureText_default as FeatureText,
24378
24407
  HeadlinedList_default as HeadlinedList,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enjanga-components-library",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
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",