jett.admin.npmpackage 1.0.0 → 1.0.1
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 -0
- package/dist/index.mjs +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
CustomInput: () => CustomInput,
|
|
38
38
|
CustomSearch: () => CustomSearch,
|
|
39
39
|
CustomSwitch: () => CustomSwitch,
|
|
40
|
+
CustomTable: () => CustomTable,
|
|
40
41
|
CustomTextarea: () => CustomTextarea,
|
|
41
42
|
CustomUpload: () => CustomUpload,
|
|
42
43
|
ProgressBar: () => ProgressBar,
|
|
@@ -515,6 +516,16 @@ var RightSheet = ({ open, setOpen, children, callBack }) => {
|
|
|
515
516
|
))
|
|
516
517
|
));
|
|
517
518
|
};
|
|
519
|
+
|
|
520
|
+
// src/Table/CustomTable.jsx
|
|
521
|
+
var import_react13 = __toESM(require("react"));
|
|
522
|
+
var CustomTable = ({ tableHeader, setIsAllChecked, isAllChecked, children }) => {
|
|
523
|
+
return /* @__PURE__ */ import_react13.default.createElement("div", { className: "border border-[#e5e5e5] rounded-lg overflow-x-auto" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "w-full relative overflow-x-auto" }, /* @__PURE__ */ import_react13.default.createElement("table", { className: "w-full caption-bottom text-sm overflow-x-auto bg-white" }, /* @__PURE__ */ import_react13.default.createElement("thead", { className: "border-b border-b-[#e5e5e5] p-2" }, /* @__PURE__ */ import_react13.default.createElement("tr", { className: "transition-colors text-[#737373] hover:bg-muted/50 \r\n data-[state=selected]:bg-muted" }, /* @__PURE__ */ import_react13.default.createElement("th", { className: "pl-4 text-left" }, /* @__PURE__ */ import_react13.default.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
|
|
524
|
+
setIsAllChecked(!isAllChecked);
|
|
525
|
+
} })), tableHeader.map((header, index) => {
|
|
526
|
+
return /* @__PURE__ */ import_react13.default.createElement("th", { className: `px-4 py-3 text-sm font-medium ${index == tableHeader.length - 1 ? "text-right" : "text-left"}`, key: header + index }, header);
|
|
527
|
+
}))), /* @__PURE__ */ import_react13.default.createElement("tbody", null, children))));
|
|
528
|
+
};
|
|
518
529
|
// Annotate the CommonJS export names for ESM import in node:
|
|
519
530
|
0 && (module.exports = {
|
|
520
531
|
AppSideBar,
|
|
@@ -525,6 +536,7 @@ var RightSheet = ({ open, setOpen, children, callBack }) => {
|
|
|
525
536
|
CustomInput,
|
|
526
537
|
CustomSearch,
|
|
527
538
|
CustomSwitch,
|
|
539
|
+
CustomTable,
|
|
528
540
|
CustomTextarea,
|
|
529
541
|
CustomUpload,
|
|
530
542
|
ProgressBar,
|
package/dist/index.mjs
CHANGED
|
@@ -469,6 +469,16 @@ var RightSheet = ({ open, setOpen, children, callBack }) => {
|
|
|
469
469
|
))
|
|
470
470
|
));
|
|
471
471
|
};
|
|
472
|
+
|
|
473
|
+
// src/Table/CustomTable.jsx
|
|
474
|
+
import React13 from "react";
|
|
475
|
+
var CustomTable = ({ tableHeader, setIsAllChecked, isAllChecked, children }) => {
|
|
476
|
+
return /* @__PURE__ */ React13.createElement("div", { className: "border border-[#e5e5e5] rounded-lg overflow-x-auto" }, /* @__PURE__ */ React13.createElement("div", { className: "w-full relative overflow-x-auto" }, /* @__PURE__ */ React13.createElement("table", { className: "w-full caption-bottom text-sm overflow-x-auto bg-white" }, /* @__PURE__ */ React13.createElement("thead", { className: "border-b border-b-[#e5e5e5] p-2" }, /* @__PURE__ */ React13.createElement("tr", { className: "transition-colors text-[#737373] hover:bg-muted/50 \r\n data-[state=selected]:bg-muted" }, /* @__PURE__ */ React13.createElement("th", { className: "pl-4 text-left" }, /* @__PURE__ */ React13.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
|
|
477
|
+
setIsAllChecked(!isAllChecked);
|
|
478
|
+
} })), tableHeader.map((header, index) => {
|
|
479
|
+
return /* @__PURE__ */ React13.createElement("th", { className: `px-4 py-3 text-sm font-medium ${index == tableHeader.length - 1 ? "text-right" : "text-left"}`, key: header + index }, header);
|
|
480
|
+
}))), /* @__PURE__ */ React13.createElement("tbody", null, children))));
|
|
481
|
+
};
|
|
472
482
|
export {
|
|
473
483
|
AppSideBar,
|
|
474
484
|
Chip,
|
|
@@ -478,6 +488,7 @@ export {
|
|
|
478
488
|
CustomInput,
|
|
479
489
|
CustomSearch,
|
|
480
490
|
CustomSwitch,
|
|
491
|
+
CustomTable,
|
|
481
492
|
CustomTextarea,
|
|
482
493
|
CustomUpload,
|
|
483
494
|
ProgressBar,
|