cynx-lib 1.3.41 → 1.3.44
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/index.cjs +2 -0
- package/package.json +33 -9
- package/ui/index.cjs +182 -0
- package/utils/index.cjs +80 -0
- package/utils/utils/db.cjs +779 -0
- package/utils/utils/duration.cjs +119 -0
- package/utils/utils/oidc.cjs +164 -0
- package/utils/utils/realtime.cjs +881 -0
- package/utils/utils/session.cjs +61 -0
- package/utils/utils/storage.cjs +344 -0
- package/utils/utils/storage_manager.cjs +1177 -0
- package/utils/utils/tz.cjs +542 -0
- package/utils/utils/ui.cjs +105 -0
- package/utils/utils/uid.cjs +187 -0
package/index.cjs
ADDED
package/package.json
CHANGED
|
@@ -1,24 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cynx-lib",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.44",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"main": "./index.
|
|
5
|
+
"main": "./index.cjs",
|
|
6
|
+
"module": "./index.js",
|
|
6
7
|
"bin": {
|
|
7
8
|
"cynx-gen": "./gen.js"
|
|
8
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "node scripts/build-cjs.js",
|
|
12
|
+
"prepublishOnly": "node scripts/build-cjs.js"
|
|
13
|
+
},
|
|
9
14
|
"exports": {
|
|
10
|
-
".":
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"./
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./index.js",
|
|
17
|
+
"require": "./index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./ui": {
|
|
20
|
+
"import": "./ui/index.js",
|
|
21
|
+
"require": "./ui/index.cjs"
|
|
22
|
+
},
|
|
23
|
+
"./utils": {
|
|
24
|
+
"import": "./utils/index.js",
|
|
25
|
+
"require": "./utils/index.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./db": {
|
|
28
|
+
"import": "./utils/utils/db.js",
|
|
29
|
+
"require": "./utils/utils/db.cjs"
|
|
30
|
+
},
|
|
31
|
+
"./storage": {
|
|
32
|
+
"import": "./utils/utils/storage_manager.js",
|
|
33
|
+
"require": "./utils/utils/storage_manager.cjs"
|
|
34
|
+
},
|
|
15
35
|
"./gen": "./gen.js"
|
|
16
36
|
},
|
|
17
37
|
"peerDependencies": {
|
|
38
|
+
"lucide-react": ">=0.300",
|
|
18
39
|
"react": ">=18",
|
|
19
40
|
"react-dom": ">=18",
|
|
20
|
-
"react-router-dom": ">=6"
|
|
21
|
-
"lucide-react": ">=0.300"
|
|
41
|
+
"react-router-dom": ">=6"
|
|
22
42
|
},
|
|
23
43
|
"peerDependenciesMeta": {
|
|
24
44
|
"react": {
|
|
@@ -34,10 +54,14 @@
|
|
|
34
54
|
"optional": true
|
|
35
55
|
}
|
|
36
56
|
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"esbuild": "^0.25.12"
|
|
59
|
+
},
|
|
37
60
|
"files": [
|
|
38
61
|
"ui/",
|
|
39
62
|
"utils/",
|
|
40
63
|
"index.js",
|
|
64
|
+
"index.cjs",
|
|
41
65
|
"gen.js"
|
|
42
66
|
]
|
|
43
67
|
}
|
package/ui/index.cjs
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
var index_exports = {};
|
|
29
|
+
__export(index_exports, {
|
|
30
|
+
ActionsMenu: () => ActionsMenu,
|
|
31
|
+
ActivityCard: () => ActivityCard,
|
|
32
|
+
AuthOverlay: () => AuthOverlay,
|
|
33
|
+
Badge: () => Badge,
|
|
34
|
+
BrandingCard: () => BrandingCard,
|
|
35
|
+
Button: () => Button,
|
|
36
|
+
CardHdr: () => CardHdr,
|
|
37
|
+
Checkbox: () => Checkbox,
|
|
38
|
+
ChipSelect: () => ChipSelect,
|
|
39
|
+
CircularProgress: () => CircularProgress,
|
|
40
|
+
Confirm: () => Confirm,
|
|
41
|
+
ConfirmRoot: () => ConfirmRoot,
|
|
42
|
+
DatePicker: () => DatePicker,
|
|
43
|
+
Divider: () => Divider,
|
|
44
|
+
Dropzone: () => Dropzone,
|
|
45
|
+
FilePicker: () => FilePicker,
|
|
46
|
+
HoverCard: () => HoverCard,
|
|
47
|
+
ImageUpload: () => ImageUpload,
|
|
48
|
+
InfoBadge: () => InfoBadge,
|
|
49
|
+
Input: () => Input,
|
|
50
|
+
LinearProgress: () => LinearProgress,
|
|
51
|
+
Modal: () => Modal,
|
|
52
|
+
PageShell: () => PageShell,
|
|
53
|
+
Pagination: () => Pagination,
|
|
54
|
+
PulseDot: () => PulseDot,
|
|
55
|
+
Select: () => Select,
|
|
56
|
+
Skeleton: () => Skeleton,
|
|
57
|
+
SkeletonCard: () => SkeletonCard,
|
|
58
|
+
SkeletonRows: () => SkeletonRows,
|
|
59
|
+
SkeletonStats: () => SkeletonStats,
|
|
60
|
+
SkeletonTable: () => SkeletonTable,
|
|
61
|
+
SkeletonText: () => SkeletonText,
|
|
62
|
+
Spinner: () => Spinner,
|
|
63
|
+
StatBarCard: () => StatBarCard,
|
|
64
|
+
StatCard: () => StatCard,
|
|
65
|
+
StatCardSkeleton: () => StatCardSkeleton,
|
|
66
|
+
StatsBar: () => StatsBar,
|
|
67
|
+
StatsCard: () => StatsCard,
|
|
68
|
+
TabBar: () => TabBar,
|
|
69
|
+
TableCard: () => TableCard,
|
|
70
|
+
TableCardBody: () => TableCardBody,
|
|
71
|
+
TableCardFilters: () => TableCardFilters,
|
|
72
|
+
TableCardFooter: () => TableCardFooter,
|
|
73
|
+
Tabs: () => Tabs,
|
|
74
|
+
TimePicker: () => TimePicker,
|
|
75
|
+
Toast: () => Toast,
|
|
76
|
+
Toggle: () => Toggle,
|
|
77
|
+
UptimeBar: () => UptimeBar,
|
|
78
|
+
XTable: () => XTable,
|
|
79
|
+
XTbody: () => XTbody,
|
|
80
|
+
XTd: () => XTd,
|
|
81
|
+
XTh: () => XTh,
|
|
82
|
+
XThead: () => XThead,
|
|
83
|
+
XTr: () => XTr,
|
|
84
|
+
confirm: () => confirm,
|
|
85
|
+
toast: () => toast,
|
|
86
|
+
useToast: () => useToast
|
|
87
|
+
});
|
|
88
|
+
module.exports = __toCommonJS(index_exports);
|
|
89
|
+
var import_Button = __toESM(require("./components/Button.jsx"), 1);
|
|
90
|
+
var import_Input = __toESM(require("./components/Input.jsx"), 1);
|
|
91
|
+
var import_Toggle = __toESM(require("./components/Toggle.jsx"), 1);
|
|
92
|
+
var import_Spinner = __toESM(require("./components/Spinner.jsx"), 1);
|
|
93
|
+
var import_TabBar = __toESM(require("./components/TabBar.jsx"), 1);
|
|
94
|
+
var import_ImageUpload = __toESM(require("./components/ImageUpload.jsx"), 1);
|
|
95
|
+
var import_ChipSelect = __toESM(require("./components/ChipSelect.jsx"), 1);
|
|
96
|
+
var import_Checkbox = __toESM(require("./components/Checkbox.jsx"), 1);
|
|
97
|
+
var import_AuthOverlay = __toESM(require("./components/AuthOverlay.jsx"), 1);
|
|
98
|
+
var import_UptimeBar = __toESM(require("./components/UptimeBar.jsx"), 1);
|
|
99
|
+
var import_LinearProgress = __toESM(require("./components/LinearProgress.jsx"), 1);
|
|
100
|
+
var import_StatBarCard = __toESM(require("./components/StatBarCard.jsx"), 1);
|
|
101
|
+
var import_StatsCard = __toESM(require("./components/StatsCard.jsx"), 1);
|
|
102
|
+
var import_ActivityCard = __toESM(require("./components/ActivityCard.jsx"), 1);
|
|
103
|
+
var import_HoverCard = __toESM(require("./components/HoverCard.jsx"), 1);
|
|
104
|
+
var import_StatsBar = __toESM(require("./components/StatsBar.jsx"), 1);
|
|
105
|
+
var import_Select = __toESM(require("./components/Select.jsx"), 1);
|
|
106
|
+
var import_Badge = __toESM(require("./components/Badge.jsx"), 1);
|
|
107
|
+
var import_PulseDot = __toESM(require("./components/PulseDot.jsx"), 1);
|
|
108
|
+
var import_CircularProgress = __toESM(require("./components/CircularProgress.jsx"), 1);
|
|
109
|
+
var import_Skeleton = __toESM(require("./components/Skeleton.jsx"), 1);
|
|
110
|
+
var import_Modal = require("./components/Modal.jsx");
|
|
111
|
+
var import_Toast = require("./components/Toast.jsx");
|
|
112
|
+
var import_Confirm = require("./components/Confirm.jsx");
|
|
113
|
+
var import_Pagination = require("./components/Pagination.jsx");
|
|
114
|
+
var import_DatePicker = require("./components/DatePicker.jsx");
|
|
115
|
+
var import_TimePicker = require("./components/TimePicker.jsx");
|
|
116
|
+
var import_ActionsMenu = require("./components/ActionsMenu.jsx");
|
|
117
|
+
var import_BrandingCard = require("./components/BrandingCard.jsx");
|
|
118
|
+
var import_Dropzone = require("./components/Dropzone.jsx");
|
|
119
|
+
var import_Tabs = require("./components/Tabs.jsx");
|
|
120
|
+
var import_Skeleton2 = require("./components/Skeleton.jsx");
|
|
121
|
+
var import_XTable = require("./components/XTable.jsx");
|
|
122
|
+
var import_Card = require("./components/Card.jsx");
|
|
123
|
+
var import_FilePicker = __toESM(require("./components/FilePicker.jsx"), 1);
|
|
124
|
+
var import_Divider = __toESM(require("./components/Divider.jsx"), 1);
|
|
125
|
+
var import_InfoBadge = __toESM(require("./components/InfoBadge.jsx"), 1);
|
|
126
|
+
const Button = import_Button.default;
|
|
127
|
+
const FilePicker = import_FilePicker.default;
|
|
128
|
+
const Divider = import_Divider.default;
|
|
129
|
+
const InfoBadge = import_InfoBadge.default;
|
|
130
|
+
const Input = import_Input.default;
|
|
131
|
+
const Toggle = import_Toggle.default;
|
|
132
|
+
const Spinner = import_Spinner.default || import_Spinner.Spinner;
|
|
133
|
+
const TabBar = import_TabBar.default;
|
|
134
|
+
const ImageUpload = import_ImageUpload.default;
|
|
135
|
+
const ChipSelect = import_ChipSelect.default;
|
|
136
|
+
const Checkbox = import_Checkbox.default;
|
|
137
|
+
const AuthOverlay = import_AuthOverlay.default;
|
|
138
|
+
const UptimeBar = import_UptimeBar.default;
|
|
139
|
+
const LinearProgress = import_LinearProgress.default;
|
|
140
|
+
const StatBarCard = import_StatBarCard.default;
|
|
141
|
+
const StatsCard = import_StatsCard.default;
|
|
142
|
+
const ActivityCard = import_ActivityCard.default;
|
|
143
|
+
const HoverCard = import_HoverCard.default;
|
|
144
|
+
const StatsBar = import_StatsBar.default;
|
|
145
|
+
const Select = import_Select.default;
|
|
146
|
+
const Badge = import_Badge.default;
|
|
147
|
+
const PulseDot = import_PulseDot.default;
|
|
148
|
+
const CircularProgress = import_CircularProgress.default;
|
|
149
|
+
const Skeleton = import_Skeleton.default;
|
|
150
|
+
const Modal = import_Modal.Modal;
|
|
151
|
+
const Confirm = import_Modal.Confirm;
|
|
152
|
+
const toast = import_Toast.toast;
|
|
153
|
+
const useToast = import_Toast.useToast;
|
|
154
|
+
const Toast = import_Toast.Toast;
|
|
155
|
+
const ConfirmRoot = import_Confirm.ConfirmRoot;
|
|
156
|
+
const confirm = import_Confirm.confirm;
|
|
157
|
+
const Pagination = import_Pagination.Pagination;
|
|
158
|
+
const DatePicker = import_DatePicker.DatePicker;
|
|
159
|
+
const TimePicker = import_TimePicker.TimePicker;
|
|
160
|
+
const ActionsMenu = import_ActionsMenu.ActionsMenu;
|
|
161
|
+
const BrandingCard = import_BrandingCard.BrandingCard;
|
|
162
|
+
const Dropzone = import_Dropzone.Dropzone;
|
|
163
|
+
const Tabs = import_Tabs.Tabs;
|
|
164
|
+
const SkeletonText = import_Skeleton2.SkeletonText;
|
|
165
|
+
const SkeletonCard = import_Skeleton2.SkeletonCard;
|
|
166
|
+
const SkeletonRows = import_Skeleton2.SkeletonRows;
|
|
167
|
+
const SkeletonStats = import_Skeleton2.SkeletonStats;
|
|
168
|
+
const XTable = import_XTable.XTable;
|
|
169
|
+
const XThead = import_XTable.XThead;
|
|
170
|
+
const XTbody = import_XTable.XTbody;
|
|
171
|
+
const XTr = import_XTable.XTr;
|
|
172
|
+
const XTh = import_XTable.XTh;
|
|
173
|
+
const XTd = import_XTable.XTd;
|
|
174
|
+
const SkeletonTable = import_XTable.SkeletonTable;
|
|
175
|
+
const PageShell = import_Card.PageShell;
|
|
176
|
+
const TableCard = import_Card.TableCard;
|
|
177
|
+
const TableCardFilters = import_Card.TableCardFilters;
|
|
178
|
+
const TableCardBody = import_Card.TableCardBody;
|
|
179
|
+
const TableCardFooter = import_Card.TableCardFooter;
|
|
180
|
+
const CardHdr = import_Card.CardHdr;
|
|
181
|
+
const StatCard = import_Card.StatCard;
|
|
182
|
+
const StatCardSkeleton = import_Card.StatCardSkeleton;
|
package/utils/index.cjs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var index_exports = {};
|
|
30
|
+
__export(index_exports, {
|
|
31
|
+
dbUtil: () => import_db.default,
|
|
32
|
+
durationUtil: () => import_duration.default,
|
|
33
|
+
oidcUtil: () => import_oidc.default,
|
|
34
|
+
realtimeUtil: () => import_realtime.default,
|
|
35
|
+
sessionUtil: () => import_session.default,
|
|
36
|
+
storageUtil: () => import_storage.default,
|
|
37
|
+
tzUtil: () => import_tz.default,
|
|
38
|
+
uiUtil: () => import_ui.default,
|
|
39
|
+
uidUtil: () => import_uid.default
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(index_exports);
|
|
42
|
+
__reExport(index_exports, require("./utils/uid.cjs"), module.exports);
|
|
43
|
+
__reExport(index_exports, require("./utils/realtime.cjs"), module.exports);
|
|
44
|
+
__reExport(index_exports, require("./utils/tz.cjs"), module.exports);
|
|
45
|
+
__reExport(index_exports, require("./utils/oidc.cjs"), module.exports);
|
|
46
|
+
__reExport(index_exports, require("./utils/storage.cjs"), module.exports);
|
|
47
|
+
__reExport(index_exports, require("./utils/duration.cjs"), module.exports);
|
|
48
|
+
__reExport(index_exports, require("./utils/session.cjs"), module.exports);
|
|
49
|
+
__reExport(index_exports, require("./utils/ui.cjs"), module.exports);
|
|
50
|
+
__reExport(index_exports, require("./utils/db.cjs"), module.exports);
|
|
51
|
+
var import_uid = __toESM(require("./utils/uid.cjs"), 1);
|
|
52
|
+
var import_realtime = __toESM(require("./utils/realtime.cjs"), 1);
|
|
53
|
+
var import_tz = __toESM(require("./utils/tz.cjs"), 1);
|
|
54
|
+
var import_oidc = __toESM(require("./utils/oidc.cjs"), 1);
|
|
55
|
+
var import_storage = __toESM(require("./utils/storage.cjs"), 1);
|
|
56
|
+
var import_duration = __toESM(require("./utils/duration.cjs"), 1);
|
|
57
|
+
var import_session = __toESM(require("./utils/session.cjs"), 1);
|
|
58
|
+
var import_ui = __toESM(require("./utils/ui.cjs"), 1);
|
|
59
|
+
var import_db = __toESM(require("./utils/db.cjs"), 1);
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
dbUtil,
|
|
63
|
+
durationUtil,
|
|
64
|
+
oidcUtil,
|
|
65
|
+
realtimeUtil,
|
|
66
|
+
sessionUtil,
|
|
67
|
+
storageUtil,
|
|
68
|
+
tzUtil,
|
|
69
|
+
uiUtil,
|
|
70
|
+
uidUtil,
|
|
71
|
+
...require("./utils/uid.cjs"),
|
|
72
|
+
...require("./utils/realtime.cjs"),
|
|
73
|
+
...require("./utils/tz.cjs"),
|
|
74
|
+
...require("./utils/oidc.cjs"),
|
|
75
|
+
...require("./utils/storage.cjs"),
|
|
76
|
+
...require("./utils/duration.cjs"),
|
|
77
|
+
...require("./utils/session.cjs"),
|
|
78
|
+
...require("./utils/ui.cjs"),
|
|
79
|
+
...require("./utils/db.cjs")
|
|
80
|
+
});
|