enjanga-components-library 1.0.15 → 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.js +12 -19
- package/dist/index.mjs +12 -19
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24308,25 +24308,18 @@ var import_react31 = require("@carbon/react");
|
|
|
24308
24308
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
24309
24309
|
var CustomTabs = () => {
|
|
24310
24310
|
const [selected, setSelected] = (0, import_react30.useState)(0);
|
|
24311
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
24312
|
-
import_react31.Tabs,
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
24319
|
-
|
|
24320
|
-
|
|
24321
|
-
|
|
24322
|
-
|
|
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
|
-
);
|
|
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
|
+
] });
|
|
24330
24323
|
};
|
|
24331
24324
|
var CustomTabs_default = CustomTabs;
|
|
24332
24325
|
|
package/dist/index.mjs
CHANGED
|
@@ -24304,25 +24304,18 @@ import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@carbon/react";
|
|
|
24304
24304
|
import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
24305
24305
|
var CustomTabs = () => {
|
|
24306
24306
|
const [selected, setSelected] = useState4(0);
|
|
24307
|
-
return /* @__PURE__ */ jsxs11(
|
|
24308
|
-
Tabs,
|
|
24309
|
-
|
|
24310
|
-
|
|
24311
|
-
|
|
24312
|
-
|
|
24313
|
-
|
|
24314
|
-
|
|
24315
|
-
|
|
24316
|
-
|
|
24317
|
-
|
|
24318
|
-
|
|
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
|
-
);
|
|
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
|
+
] });
|
|
24326
24319
|
};
|
|
24327
24320
|
var CustomTabs_default = CustomTabs;
|
|
24328
24321
|
|
package/package.json
CHANGED