jett.admin.npmpackage 1.0.0

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.mjs ADDED
@@ -0,0 +1,485 @@
1
+ // src/utils/cn.ts
2
+ import { clsx } from "clsx";
3
+ import { twMerge } from "tailwind-merge";
4
+ function cn(...inputs) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ // src/Button.jsx
9
+ import React from "react";
10
+ var variantStyles = {
11
+ PRIMARY: "bg-white",
12
+ SECONDARY: "bg-black text-white",
13
+ DEFAULT: "bg-white text-black hover:bg-gray-100"
14
+ };
15
+ var CustomButton = ({
16
+ variant,
17
+ children,
18
+ className,
19
+ onClick,
20
+ disabled = false
21
+ }) => {
22
+ console.log(disabled);
23
+ return /* @__PURE__ */ React.createElement(
24
+ "div",
25
+ {
26
+ className: cn(
27
+ `cursor-pointer flex items-center py-2 px-3 min-h-10 justify-center border rounded-[6px] border-[#e5e5e5]`,
28
+ variantStyles[variant],
29
+ className
30
+ ),
31
+ onClick
32
+ },
33
+ children
34
+ );
35
+ };
36
+
37
+ // src/inputs/Autocomplete.jsx
38
+ import React2, { useState, useRef } from "react";
39
+ import { ChevronDown, Check, Search } from "lucide-react";
40
+ var CustomAutocomplete = ({
41
+ label,
42
+ value,
43
+ onChange,
44
+ options,
45
+ placeholder = "Search & select...",
46
+ isRequired = false,
47
+ error,
48
+ heading,
49
+ disabled = false
50
+ }) => {
51
+ const [open, setOpen] = useState(false);
52
+ const [search, setSearch] = useState("");
53
+ const wrapperRef = useRef(null);
54
+ const selectedOptions = options.filter((opt) => value.includes(opt.value));
55
+ const handleBlur = (e) => {
56
+ var _a;
57
+ if (!((_a = wrapperRef.current) == null ? void 0 : _a.contains(e.relatedTarget))) {
58
+ setOpen(false);
59
+ }
60
+ };
61
+ const filteredOptions = options.filter(
62
+ (opt) => opt.label.toLowerCase().includes(search.toLowerCase())
63
+ );
64
+ const toggleValue = (val) => {
65
+ if (value.includes(val)) {
66
+ onChange(value.filter((v) => v !== val));
67
+ } else {
68
+ onChange([...value, val]);
69
+ }
70
+ };
71
+ return /* @__PURE__ */ React2.createElement(
72
+ "div",
73
+ {
74
+ className: "flex flex-col w-full relative",
75
+ ref: wrapperRef,
76
+ tabIndex: disabled ? -1 : 0,
77
+ onBlur: handleBlur
78
+ },
79
+ heading && /* @__PURE__ */ React2.createElement("h3", { className: "text-lg font-semibold leading-6 mb-1" }, heading),
80
+ label && /* @__PURE__ */ React2.createElement(
81
+ "label",
82
+ {
83
+ className: `font-[500] text-sm leading-5 mb-1 ${heading ? "text-[#737373]" : "text-black"}`
84
+ },
85
+ label,
86
+ " ",
87
+ isRequired && /* @__PURE__ */ React2.createElement("span", { className: "text-red-500" }, "*")
88
+ ),
89
+ /* @__PURE__ */ React2.createElement(
90
+ "div",
91
+ {
92
+ onClick: () => {
93
+ if (!disabled) setOpen((prev) => !prev);
94
+ },
95
+ className: `flex justify-between items-center flex-wrap gap-1 rounded-md px-3 py-2 text-sm transition border h-auto min-h-10
96
+ ${disabled ? "bg-gray-100 cursor-not-allowed text-gray-400" : "cursor-text"}
97
+ ${error ? "border-red-500 bg-red-50" : "bg-white border-[hsl(0_0%_89.8%)] hover:border-gray-400"}
98
+ `
99
+ },
100
+ /* @__PURE__ */ React2.createElement("div", { className: "flex flex-wrap gap-1 flex-1" }, selectedOptions.length > 0 ? selectedOptions.map((opt) => /* @__PURE__ */ React2.createElement(
101
+ "span",
102
+ {
103
+ key: opt.value,
104
+ className: "bg-gray-100 border border-gray-300 px-2 py-0.5 rounded text-xs flex items-center gap-1"
105
+ },
106
+ opt.label,
107
+ /* @__PURE__ */ React2.createElement(
108
+ "button",
109
+ {
110
+ onClick: (e) => {
111
+ e.stopPropagation();
112
+ toggleValue(opt.value);
113
+ },
114
+ className: "text-gray-500 hover:text-gray-700"
115
+ },
116
+ "\u2715"
117
+ )
118
+ )) : /* @__PURE__ */ React2.createElement("span", { className: "text-gray-400" }, placeholder)),
119
+ /* @__PURE__ */ React2.createElement(
120
+ ChevronDown,
121
+ {
122
+ className: `w-4 h-4 text-gray-500 transition-transform ${open ? "rotate-180" : ""}`
123
+ }
124
+ )
125
+ ),
126
+ !disabled && open && /* @__PURE__ */ React2.createElement("div", { className: "absolute top-full mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto" }, /* @__PURE__ */ React2.createElement("div", { className: "flex items-center gap-2 p-2 border-b border-gray-200" }, /* @__PURE__ */ React2.createElement(Search, { size: 16, className: "text-gray-400" }), /* @__PURE__ */ React2.createElement(
127
+ "input",
128
+ {
129
+ type: "text",
130
+ value: search,
131
+ onChange: (e) => setSearch(e.target.value),
132
+ placeholder: "Search...",
133
+ className: "flex-1 text-sm focus:outline-none"
134
+ }
135
+ )), /* @__PURE__ */ React2.createElement("ul", null, filteredOptions.length > 0 ? filteredOptions.map((opt) => {
136
+ const selected = value.includes(opt.value);
137
+ return /* @__PURE__ */ React2.createElement(
138
+ "li",
139
+ {
140
+ key: opt.value,
141
+ onClick: () => toggleValue(opt.value),
142
+ className: `flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 ${selected ? "bg-gray-50 font-medium" : ""}`
143
+ },
144
+ /* @__PURE__ */ React2.createElement(
145
+ "span",
146
+ {
147
+ className: `w-4 h-4 flex items-center justify-center border rounded-sm ${selected ? "bg-blue-600 border-blue-600 text-white" : "border-gray-300"}`
148
+ },
149
+ selected && /* @__PURE__ */ React2.createElement(Check, { size: 14 })
150
+ ),
151
+ opt.label
152
+ );
153
+ }) : /* @__PURE__ */ React2.createElement("li", { className: "px-3 py-2 text-sm text-gray-400" }, "No results found")))
154
+ );
155
+ };
156
+
157
+ // src/inputs/Checkbox.jsx
158
+ import React3 from "react";
159
+ var CustomCheckbox = ({ onChange, checked }) => {
160
+ const handleChange = (e) => {
161
+ onChange(e.target.checked);
162
+ };
163
+ return /* @__PURE__ */ React3.createElement("label", { className: "inline-flex items-center cursor-pointer select-none" }, /* @__PURE__ */ React3.createElement(
164
+ "input",
165
+ {
166
+ type: "checkbox",
167
+ checked,
168
+ onChange: handleChange,
169
+ className: "peer hidden"
170
+ }
171
+ ), /* @__PURE__ */ React3.createElement(
172
+ "span",
173
+ {
174
+ className: "\r\n w-4 h-4 flex items-center justify-center border-2 border-gray-400 rounded \r\n peer-checked:bg-black peer-checked:border-black\r\n transition-colors\r\n "
175
+ },
176
+ checked && /* @__PURE__ */ React3.createElement(
177
+ "svg",
178
+ {
179
+ className: "w-4 h-4 text-white",
180
+ fill: "none",
181
+ stroke: "currentColor",
182
+ strokeWidth: "3",
183
+ viewBox: "0 0 24 24"
184
+ },
185
+ /* @__PURE__ */ React3.createElement("path", { d: "M5 13l4 4L19 7" })
186
+ )
187
+ ));
188
+ };
189
+
190
+ // src/inputs/Chip.jsx
191
+ import React4 from "react";
192
+ var VARIANTS = {
193
+ PRIMARY: "bg-gray-100 text-black",
194
+ GREEN: "bg-green-100 text-green-800",
195
+ RED: "bg-red-100 text-red-800",
196
+ YELLOW: "bg-yellow-100 text-yellow-800"
197
+ };
198
+ var Chip = ({ label, variant }) => {
199
+ return /* @__PURE__ */ React4.createElement(
200
+ "div",
201
+ {
202
+ className: `inline-flex text-[12px] items-center px-3 py-1 rounded-full ${VARIANTS[variant] || VARIANTS.PRIMARY} text-sm font-[600]`
203
+ },
204
+ label
205
+ );
206
+ };
207
+
208
+ // src/inputs/CustomSwitch.jsx
209
+ import React5 from "react";
210
+ var CustomSwitch = ({ checked, onChange, label, description }) => {
211
+ return /* @__PURE__ */ React5.createElement("div", { className: "flex items-start gap-3 rounded-lg border border-gray-200 p-4 bg-white mb-4" }, /* @__PURE__ */ React5.createElement(
212
+ "button",
213
+ {
214
+ type: "button",
215
+ role: "switch",
216
+ "aria-checked": checked,
217
+ onClick: () => onChange(!checked),
218
+ className: `relative inline-flex h-6 w-11 shrink-0 items-center rounded-full transition-colors ${checked ? "bg-black" : "bg-gray-300"}`
219
+ },
220
+ /* @__PURE__ */ React5.createElement(
221
+ "span",
222
+ {
223
+ className: `inline-block h-4 w-4 transform rounded-full bg-white shadow transition ${checked ? "translate-x-6" : "translate-x-1"}`
224
+ }
225
+ )
226
+ ), /* @__PURE__ */ React5.createElement("div", { className: "flex flex-col" }, label && /* @__PURE__ */ React5.createElement("h3", { className: "font-[500] text-sm text-black mb-2" }, label), description && /* @__PURE__ */ React5.createElement("p", { className: "font-[500] text-sm text-[#737373]" }, description)));
227
+ };
228
+
229
+ // src/inputs/Input.jsx
230
+ import React6 from "react";
231
+ var CustomInput = ({
232
+ label,
233
+ isRequired,
234
+ value,
235
+ onChange,
236
+ placeholder,
237
+ disabled = false,
238
+ error,
239
+ heading
240
+ }) => {
241
+ return /* @__PURE__ */ React6.createElement("div", { className: "flex flex-col gap-1 w-full" }, heading && /* @__PURE__ */ React6.createElement("h3", { className: "text-lg font-semibold" }, heading), /* @__PURE__ */ React6.createElement(
242
+ "label",
243
+ {
244
+ className: `font-[500] text-sm ${heading ? "text-[#737373]" : "text-black"}`
245
+ },
246
+ label,
247
+ " ",
248
+ isRequired && /* @__PURE__ */ React6.createElement("span", { className: "text-red-500" }, "*")
249
+ ), /* @__PURE__ */ React6.createElement(
250
+ "input",
251
+ {
252
+ className: `border border-gray-200 rounded-md h-10 px-4 py-2 w-full text-[14px]
253
+ focus:outline-2 outline-black outline-offset-2
254
+ ${disabled ? "bg-gray-100 cursor-not-allowed text-gray-500 border-gray-300" : error ? "border-red-500 bg-red-50" : "bg-white border-[hsl(0_0%_89.8%)]"}
255
+ `,
256
+ value,
257
+ onChange: (e) => onChange == null ? void 0 : onChange(e.target.value),
258
+ placeholder,
259
+ disabled,
260
+ readOnly: disabled
261
+ }
262
+ ));
263
+ };
264
+
265
+ // src/inputs/ProgressBar.jsx
266
+ import React7 from "react";
267
+ var ProgressBar = ({ step, totalSteps }) => {
268
+ const progress = step / totalSteps * 100;
269
+ return /* @__PURE__ */ React7.createElement("div", { className: "mb-6" }, /* @__PURE__ */ React7.createElement("p", { className: "text-gray-600 text-sm mb-2" }, "Step ", step, " of ", totalSteps), /* @__PURE__ */ React7.createElement("div", { className: "w-full bg-gray-200 rounded-full h-2" }, /* @__PURE__ */ React7.createElement(
270
+ "div",
271
+ {
272
+ className: "bg-black h-2 rounded-full transition-all duration-300",
273
+ style: { width: `${progress}%` }
274
+ }
275
+ )));
276
+ };
277
+
278
+ // src/inputs/Search.jsx
279
+ import React8 from "react";
280
+ import { Search as Search2 } from "lucide-react";
281
+ var CustomSearch = ({
282
+ value,
283
+ onChange,
284
+ placeholder = "Search Markets..."
285
+ }) => {
286
+ return /* @__PURE__ */ React8.createElement("div", { className: "flex items-center border bg-transparent text-[14px] border-[hsl(0_0%_89.8%)] \r\n rounded-md h-10 px-2 w-full focus-within:outline-2 focus-within:outline-black focus-within:outline-offset-2" }, /* @__PURE__ */ React8.createElement(Search2, { width: 16, height: 16, color: "gray", className: "mr-2" }), /* @__PURE__ */ React8.createElement(
287
+ "input",
288
+ {
289
+ type: "text",
290
+ value,
291
+ onChange,
292
+ placeholder,
293
+ className: "bg-transparent w-full h-full focus:outline-none"
294
+ }
295
+ ));
296
+ };
297
+
298
+ // src/inputs/TextArea.jsx
299
+ import React9 from "react";
300
+ var CustomTextarea = ({
301
+ label,
302
+ isRequired,
303
+ value,
304
+ onChange,
305
+ placeholder,
306
+ disabled = false,
307
+ error,
308
+ heading,
309
+ rows = 4
310
+ }) => {
311
+ return /* @__PURE__ */ React9.createElement("div", { className: "flex flex-col gap-1 w-full" }, heading && /* @__PURE__ */ React9.createElement("h3", { className: "text-lg font-semibold" }, heading), /* @__PURE__ */ React9.createElement(
312
+ "label",
313
+ {
314
+ className: `font-[500] text-sm ${heading ? "text-[#737373]" : "text-black"}`
315
+ },
316
+ label,
317
+ " ",
318
+ isRequired && /* @__PURE__ */ React9.createElement("span", { className: "text-red-500" }, "*")
319
+ ), /* @__PURE__ */ React9.createElement(
320
+ "textarea",
321
+ {
322
+ rows,
323
+ className: `border rounded-md px-4 py-2 w-full text-[14px]
324
+ focus:outline-2 focus:outline-black focus:outline-offset-2
325
+ focus:ring-0 focus:shadow-none focus:border-black
326
+ ${disabled ? "bg-gray-100 text-gray-500 border-gray-300" : error ? "border-red-500 bg-red-50" : "bg-white border-[hsl(0_0%_89.8%)]"}
327
+ `,
328
+ value,
329
+ onChange: (e) => onChange == null ? void 0 : onChange(e.target.value),
330
+ placeholder,
331
+ disabled,
332
+ readOnly: disabled
333
+ }
334
+ ));
335
+ };
336
+
337
+ // src/inputs/Upload.jsx
338
+ import React10, { useRef as useRef2 } from "react";
339
+ import { Upload } from "lucide-react";
340
+ var CustomUpload = ({
341
+ label = "Supporting documents",
342
+ description = "Drop items here or Browse Files",
343
+ accept = ".pdf,.jpg,.jpeg,.png",
344
+ maxSizeMB = 5,
345
+ onChange,
346
+ error,
347
+ value
348
+ }) => {
349
+ const inputRef = useRef2(null);
350
+ const handleFileSelect = (files) => {
351
+ if (!files || files.length === 0) return;
352
+ const selectedFile = files[0];
353
+ if (selectedFile.size > maxSizeMB * 1024 * 1024) {
354
+ alert(`File size must be less than ${maxSizeMB} MB`);
355
+ return;
356
+ }
357
+ onChange == null ? void 0 : onChange(selectedFile);
358
+ };
359
+ return /* @__PURE__ */ React10.createElement("div", { className: "flex flex-col gap-2 w-full" }, label && /* @__PURE__ */ React10.createElement("label", { className: "text-sm font-medium" }, label), /* @__PURE__ */ React10.createElement(
360
+ "div",
361
+ {
362
+ className: `border-2 border-dashed rounded-lg p-6 flex flex-col items-center justify-center text-center cursor-pointer transition
363
+ ${error ? "border-red-500 bg-red-50" : "border-gray-300 hover:border-gray-400 bg-gray-50"}`,
364
+ onClick: () => {
365
+ var _a;
366
+ return (_a = inputRef.current) == null ? void 0 : _a.click();
367
+ },
368
+ onDragOver: (e) => e.preventDefault(),
369
+ onDrop: (e) => {
370
+ e.preventDefault();
371
+ handleFileSelect(e.dataTransfer.files);
372
+ }
373
+ },
374
+ /* @__PURE__ */ React10.createElement(Upload, { className: "w-6 h-6 text-gray-500 mb-2" }),
375
+ /* @__PURE__ */ React10.createElement("p", { className: "text-sm text-gray-700" }, description),
376
+ /* @__PURE__ */ React10.createElement("p", { className: "text-xs text-gray-500 mt-1" }, "File Supported: PDF/JPG/PNG, up to ", maxSizeMB, " MB"),
377
+ /* @__PURE__ */ React10.createElement(
378
+ "input",
379
+ {
380
+ ref: inputRef,
381
+ type: "file",
382
+ accept,
383
+ className: "hidden",
384
+ onChange: (e) => handleFileSelect(e.target.files)
385
+ }
386
+ )
387
+ ), value && /* @__PURE__ */ React10.createElement("span", { className: "text-sm truncate text-gray-500" }, "Selected: ", value.name), error && /* @__PURE__ */ React10.createElement("p", { className: "text-xs text-red-500" }, error));
388
+ };
389
+
390
+ // src/sideBar/SideBar.jsx
391
+ import { ChevronDown as ChevronDown2, LogOut } from "lucide-react";
392
+ import React11 from "react";
393
+ var AppSideBar = ({ sideBarHeading, username, role, navItems, additionalItems }) => {
394
+ const handleIconRotate = (e, index) => {
395
+ let dropDownIcon = e.currentTarget.children[2];
396
+ if (!dropDownIcon) return;
397
+ if (dropDownIcon.classList.contains("rotate-180")) {
398
+ dropDownIcon.classList.remove("rotate-180");
399
+ } else {
400
+ dropDownIcon.classList.add("transition-all");
401
+ dropDownIcon.classList.add("rotate-180");
402
+ }
403
+ const optionsContainer = document.getElementById(`dropDownOptions-${index}`);
404
+ if (!optionsContainer) return;
405
+ optionsContainer.classList.add("transition-all");
406
+ if (optionsContainer.classList.contains("max-h-0")) {
407
+ optionsContainer.classList.remove("max-h-0");
408
+ optionsContainer.classList.add("min-h-[50px]");
409
+ } else {
410
+ optionsContainer.classList.remove("min-h-[50px]");
411
+ optionsContainer.classList.add("max-h-0");
412
+ }
413
+ };
414
+ return /* @__PURE__ */ React11.createElement("div", { className: "w-72 bg-gray-50 border-r border-gray-200 flex flex-col p-4 h-full" }, /* @__PURE__ */ React11.createElement("div", { className: "p-2 mb-4" }, /* @__PURE__ */ React11.createElement("div", { className: "w-24 h-10 bg-black text-white flex items-center \r\n justify-center font-bold text-2xl border-2border-black" }, sideBarHeading)), /* @__PURE__ */ React11.createElement("div", null, navItems.map((item, index) => {
415
+ return /* @__PURE__ */ React11.createElement("div", { key: index, className: "" }, /* @__PURE__ */ React11.createElement("div", { className: "flex items-center gap-3 p-2 hover:bg-[#f3f4f6] cursor-pointer", onClick: (e) => {
416
+ item.onClick && item.onClick(e);
417
+ handleIconRotate(e, index);
418
+ } }, /* @__PURE__ */ React11.createElement(item.Icon, { width: 20, height: 20, color: "rgb(75 85 99)" }), /* @__PURE__ */ React11.createElement("span", { className: "font-medium text-[#374151]" }, item.label), item.isDropDown && /* @__PURE__ */ React11.createElement("div", { className: `ml-auto transition-all delay-75` }, /* @__PURE__ */ React11.createElement(ChevronDown2, { width: 20, height: 20 }))), item.options && item.options.length > 0 && /* @__PURE__ */ React11.createElement("div", { className: "ml-[40px] max-h-0 overflow-hidden flex flex-col", id: `dropDownOptions-${index}` }, item.options.map((options) => {
419
+ return /* @__PURE__ */ React11.createElement(
420
+ "div",
421
+ {
422
+ className: "p-2 rounded-lg hover:bg-gray-100 text-gray-600 font-medium text-sm",
423
+ onClick: () => options.onclick && options.onclick()
424
+ },
425
+ options.label
426
+ );
427
+ })));
428
+ })), /* @__PURE__ */ React11.createElement("div", { className: "border-t border-[#e5e5e5] mt-4" }, (additionalItems == null ? void 0 : additionalItems.length) > 0 && additionalItems.map((item, index) => {
429
+ return /* @__PURE__ */ React11.createElement("div", { key: index, className: "flex items-center gap-3 p-2 hover:bg-[#f3f4f6] cursor-pointer", onClick: () => item.onClick && item.onClick() }, /* @__PURE__ */ React11.createElement(item.Icon, { width: 20, height: 20, color: "rgb(75 85 99)" }), /* @__PURE__ */ React11.createElement("span", { className: "font-medium text-[#374151]" }, item.label));
430
+ })), /* @__PURE__ */ React11.createElement("div", { className: "mt-auto bg-gray-50 border-t border-[#e5e5e5] sticky bottom-0 pt-2" }, /* @__PURE__ */ React11.createElement("div", { className: "flex items-center justify-between p-2 rounded-lg hover:bg-gray-100 cursor-pointer" }, /* @__PURE__ */ React11.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React11.createElement("span", { className: "relative flex shrink-0 overflow-hidden rounded-full h-10 w-10" }, /* @__PURE__ */ React11.createElement("span", { className: "flex h-full w-full items-center justify-center rounded-full bg-muted" }, username && username.split("")[0])), /* @__PURE__ */ React11.createElement("div", null, /* @__PURE__ */ React11.createElement("p", { className: "font-semibold" }, username), /* @__PURE__ */ React11.createElement("p", { className: "text-sm text-gray-500" }, role))), /* @__PURE__ */ React11.createElement(LogOut, null))));
431
+ };
432
+
433
+ // src/RightSheet/RightSheet.jsx
434
+ import React12, { useEffect, useState as useState2 } from "react";
435
+ var RightSheet = ({ open, setOpen, children, callBack }) => {
436
+ const [visible, setVisible] = useState2(open);
437
+ useEffect(() => {
438
+ if (open) {
439
+ document.body.style.overflow = "hidden";
440
+ setVisible(true);
441
+ }
442
+ return () => {
443
+ document.body.style.overflow = "auto";
444
+ };
445
+ }, [open]);
446
+ const handleClose = () => {
447
+ setOpen(false);
448
+ setTimeout(() => {
449
+ setVisible(false);
450
+ callBack();
451
+ }, 200);
452
+ };
453
+ if (!visible) return null;
454
+ return /* @__PURE__ */ React12.createElement("div", { className: "fixed inset-0 overflow-x-hidden bg-black/80 sheetPopIn h-full overflow-auto ", onClick: handleClose }, /* @__PURE__ */ React12.createElement(
455
+ "div",
456
+ {
457
+ className: `absolute flex flex-col right-0 top-0 min-h-full min-w-[100%] md:min-w-[576px] bg-white
458
+ ${open ? "sheetRightSlide" : "transition-all duration-200 translate-x-[100%]"} justify-between `,
459
+ onClick: (e) => e.stopPropagation()
460
+ },
461
+ /* @__PURE__ */ React12.createElement("div", { className: "bg-white min-h-full " }, children),
462
+ /* @__PURE__ */ React12.createElement("div", { className: "h-[90px] flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2 p-6 border-t sticky bottom-0 bg-white border-[#e6e6e6]" }, /* @__PURE__ */ React12.createElement(
463
+ CustomButton,
464
+ {
465
+ variant: "SECONDARY",
466
+ onClick: () => handleClose()
467
+ },
468
+ "Cancel"
469
+ ))
470
+ ));
471
+ };
472
+ export {
473
+ AppSideBar,
474
+ Chip,
475
+ CustomAutocomplete,
476
+ CustomButton,
477
+ CustomCheckbox,
478
+ CustomInput,
479
+ CustomSearch,
480
+ CustomSwitch,
481
+ CustomTextarea,
482
+ CustomUpload,
483
+ ProgressBar,
484
+ RightSheet
485
+ };
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "jett.admin.npmpackage",
3
+ "version": "1.0.0",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.mjs",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/index.mjs",
9
+ "require": "./dist/index.js"
10
+ },
11
+ "./dist/index.css": "./dist/index.css"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "build": "tsup src/index.js --format esm,cjs"
18
+ },
19
+ "peerDependencies": {
20
+ "react": ">=18",
21
+ "react-dom": ">=18"
22
+ },
23
+ "dependencies": {
24
+ "@tailwindcss/postcss": "^4.1.13",
25
+ "clsx": "^2.1.1",
26
+ "lucide-react": "^0.544.0",
27
+ "tailwind-merge": "^3.3.1",
28
+ "tsup": "^8.5.0"
29
+ },
30
+ "devDependencies": {
31
+ "autoprefixer": "^10.4.21",
32
+ "postcss": "^8.5.6",
33
+ "tailwindcss": "^4.1.13",
34
+ "typescript": "^5.9.2",
35
+ "vite": "^7.1.5"
36
+ }
37
+ }