enjanga-components-library 1.0.14 → 1.0.16

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,29 @@ 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)(import_react31.Tabs, { selectedIndex: selected, onChange: ({ selectedIndex }) => setSelected(selectedIndex), children: [
24312
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react31.TabList, { "aria-label": "Sample Tabs", children: [
24313
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab One *" }),
24314
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab Two #" }),
24315
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.Tab, { children: "Tab Three" })
24316
+ ] }),
24317
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_react31.TabPanels, { children: [
24318
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab One" }),
24319
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab Two" }),
24320
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react31.TabPanel, { children: "Content for Tab Three" })
24321
+ ] })
24322
+ ] });
24323
+ };
24324
+ var CustomTabs_default = CustomTabs;
24325
+
24326
+ // src/components/HeadlinedList/index.ts
24327
+ var import_react32 = require("react");
24306
24328
 
24307
24329
  // src/components/HeadlinedList/HeadlinedList.tsx
24308
24330
  var import_clsx11 = __toESM(require("clsx"));
@@ -24312,27 +24334,27 @@ var import_clsx10 = __toESM(require("clsx"));
24312
24334
 
24313
24335
  // src/components/ListItem/ListItem.tsx
24314
24336
  var import_clsx9 = __toESM(require("clsx"));
24315
- var import_jsx_runtime20 = require("react/jsx-runtime");
24337
+ var import_jsx_runtime21 = require("react/jsx-runtime");
24316
24338
  var ListItem = ({ content, href, className, children }) => {
24317
24339
  if (content === void 0) {
24318
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SkeletonAnimation_default, { part: "list-item" });
24340
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SkeletonAnimation_default, { part: "list-item" });
24319
24341
  }
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,
24342
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("li", { className: (0, import_clsx9.default)(className), children: [
24343
+ href ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("a", { href, children: content }) : content,
24322
24344
  children
24323
24345
  ] });
24324
24346
  };
24325
24347
  var ListItem_default = ListItem;
24326
24348
 
24327
24349
  // src/components/List/List.tsx
24328
- var import_jsx_runtime21 = require("react/jsx-runtime");
24350
+ var import_jsx_runtime22 = require("react/jsx-runtime");
24329
24351
  var List = ({ type = "unordered", className, content }) => {
24330
24352
  const ListWrapper = type === "unordered" ? "ul" : "ol";
24331
24353
  if (!content || content.length < 1) {
24332
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SkeletonAnimation_default, { part: "list" });
24354
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SkeletonAnimation_default, { part: "list" });
24333
24355
  }
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)(
24356
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(ListWrapper, { className: (0, import_clsx10.default)("enj-list", className), children: content.map((item) => {
24357
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
24336
24358
  ListItem_default,
24337
24359
  {
24338
24360
  content: item.content,
@@ -24347,26 +24369,26 @@ var List = ({ type = "unordered", className, content }) => {
24347
24369
  var List_default = List;
24348
24370
 
24349
24371
  // src/components/HeadlinedList/HeadlinedList.tsx
24350
- var import_jsx_runtime22 = require("react/jsx-runtime");
24372
+ var import_jsx_runtime23 = require("react/jsx-runtime");
24351
24373
  var HeadlinedList = ({
24352
24374
  wrapper = { tag: "div", cssClass: "" },
24353
24375
  heading = { children: void 0, level: 3, className: "" },
24354
24376
  list
24355
24377
  }) => {
24356
24378
  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, {})
24379
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Wrapper, { className: (0, import_clsx11.default)("enj-HeadlinedList", wrapper.cssClass), children: [
24380
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24381
+ list?.content?.length ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(List_default, { ...list }) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(List_default, {})
24360
24382
  ] });
24361
24383
  };
24362
24384
  var HeadlinedList_default = HeadlinedList;
24363
24385
 
24364
24386
  // src/components/HeadlinedList/index.ts
24365
- var MemoizedHeadlinedList = (0, import_react30.memo)(HeadlinedList_default);
24387
+ var MemoizedHeadlinedList = (0, import_react32.memo)(HeadlinedList_default);
24366
24388
 
24367
24389
  // src/components/List/index.ts
24368
- var import_react31 = require("react");
24369
- var MemoizedList = (0, import_react31.memo)(List_default);
24390
+ var import_react33 = require("react");
24391
+ var MemoizedList = (0, import_react33.memo)(List_default);
24370
24392
  // Annotate the CommonJS export names for ESM import in node:
24371
24393
  0 && (module.exports = {
24372
24394
  AppHeader,
@@ -24377,6 +24399,7 @@ var MemoizedList = (0, import_react31.memo)(List_default);
24377
24399
  CP_pictogramMap,
24378
24400
  ContactButton,
24379
24401
  CustomPictogram,
24402
+ CustomTabs,
24380
24403
  CustomTile,
24381
24404
  FeatureText,
24382
24405
  HeadlinedList,
package/dist/index.mjs CHANGED
@@ -24298,6 +24298,27 @@ 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(Tabs, { selectedIndex: selected, onChange: ({ selectedIndex }) => setSelected(selectedIndex), children: [
24308
+ /* @__PURE__ */ jsxs11(TabList, { "aria-label": "Sample Tabs", children: [
24309
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab One *" }),
24310
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab Two #" }),
24311
+ /* @__PURE__ */ jsx20(Tab, { children: "Tab Three" })
24312
+ ] }),
24313
+ /* @__PURE__ */ jsxs11(TabPanels, { children: [
24314
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab One" }),
24315
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab Two" }),
24316
+ /* @__PURE__ */ jsx20(TabPanel, { children: "Content for Tab Three" })
24317
+ ] })
24318
+ ] });
24319
+ };
24320
+ var CustomTabs_default = CustomTabs;
24321
+
24301
24322
  // src/components/HeadlinedList/index.ts
24302
24323
  import { memo as memo2 } from "react";
24303
24324
 
@@ -24309,27 +24330,27 @@ import clsx10 from "clsx";
24309
24330
 
24310
24331
  // src/components/ListItem/ListItem.tsx
24311
24332
  import clsx9 from "clsx";
24312
- import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
24333
+ import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
24313
24334
  var ListItem = ({ content, href, className, children }) => {
24314
24335
  if (content === void 0) {
24315
- return /* @__PURE__ */ jsx20(SkeletonAnimation_default, { part: "list-item" });
24336
+ return /* @__PURE__ */ jsx21(SkeletonAnimation_default, { part: "list-item" });
24316
24337
  }
24317
- return /* @__PURE__ */ jsxs11("li", { className: clsx9(className), children: [
24318
- href ? /* @__PURE__ */ jsx20("a", { href, children: content }) : content,
24338
+ return /* @__PURE__ */ jsxs12("li", { className: clsx9(className), children: [
24339
+ href ? /* @__PURE__ */ jsx21("a", { href, children: content }) : content,
24319
24340
  children
24320
24341
  ] });
24321
24342
  };
24322
24343
  var ListItem_default = ListItem;
24323
24344
 
24324
24345
  // src/components/List/List.tsx
24325
- import { jsx as jsx21 } from "react/jsx-runtime";
24346
+ import { jsx as jsx22 } from "react/jsx-runtime";
24326
24347
  var List = ({ type = "unordered", className, content }) => {
24327
24348
  const ListWrapper = type === "unordered" ? "ul" : "ol";
24328
24349
  if (!content || content.length < 1) {
24329
- return /* @__PURE__ */ jsx21(SkeletonAnimation_default, { part: "list" });
24350
+ return /* @__PURE__ */ jsx22(SkeletonAnimation_default, { part: "list" });
24330
24351
  }
24331
- return /* @__PURE__ */ jsx21(ListWrapper, { className: clsx10("enj-list", className), children: content.map((item) => {
24332
- return /* @__PURE__ */ jsx21(
24352
+ return /* @__PURE__ */ jsx22(ListWrapper, { className: clsx10("enj-list", className), children: content.map((item) => {
24353
+ return /* @__PURE__ */ jsx22(
24333
24354
  ListItem_default,
24334
24355
  {
24335
24356
  content: item.content,
@@ -24344,16 +24365,16 @@ var List = ({ type = "unordered", className, content }) => {
24344
24365
  var List_default = List;
24345
24366
 
24346
24367
  // src/components/HeadlinedList/HeadlinedList.tsx
24347
- import { jsx as jsx22, jsxs as jsxs12 } from "react/jsx-runtime";
24368
+ import { jsx as jsx23, jsxs as jsxs13 } from "react/jsx-runtime";
24348
24369
  var HeadlinedList = ({
24349
24370
  wrapper = { tag: "div", cssClass: "" },
24350
24371
  heading = { children: void 0, level: 3, className: "" },
24351
24372
  list
24352
24373
  }) => {
24353
24374
  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, {})
24375
+ return /* @__PURE__ */ jsxs13(Wrapper, { className: clsx11("enj-HeadlinedList", wrapper.cssClass), children: [
24376
+ /* @__PURE__ */ jsx23(Heading_default, { level: heading.level, className: heading.className, children: heading.children }),
24377
+ list?.content?.length ? /* @__PURE__ */ jsx23(List_default, { ...list }) : /* @__PURE__ */ jsx23(List_default, {})
24357
24378
  ] });
24358
24379
  };
24359
24380
  var HeadlinedList_default = HeadlinedList;
@@ -24373,6 +24394,7 @@ export {
24373
24394
  CP_pictogramMap,
24374
24395
  ContactButton_default as ContactButton,
24375
24396
  CustomPictogram_default as CustomPictogram,
24397
+ CustomTabs_default as CustomTabs,
24376
24398
  CustomTile_default as CustomTile,
24377
24399
  FeatureText_default as FeatureText,
24378
24400
  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.16",
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",