jett.admin.npmpackage 1.0.6 → 1.0.8

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.css CHANGED
@@ -254,15 +254,27 @@
254
254
  .absolute {
255
255
  position: absolute;
256
256
  }
257
+ .fixed {
258
+ position: fixed;
259
+ }
257
260
  .relative {
258
261
  position: relative;
259
262
  }
260
263
  .sticky {
261
264
  position: sticky;
262
265
  }
266
+ .inset-0 {
267
+ inset: calc(var(--spacing) * 0);
268
+ }
269
+ .top-0 {
270
+ top: calc(var(--spacing) * 0);
271
+ }
263
272
  .top-full {
264
273
  top: 100%;
265
274
  }
275
+ .right-0 {
276
+ right: calc(var(--spacing) * 0);
277
+ }
266
278
  .bottom-0 {
267
279
  bottom: calc(var(--spacing) * 0);
268
280
  }
@@ -311,6 +323,9 @@
311
323
  .inline-flex {
312
324
  display: inline-flex;
313
325
  }
326
+ .table {
327
+ display: table;
328
+ }
314
329
  .h-2 {
315
330
  height: calc(var(--spacing) * 2);
316
331
  }
@@ -323,6 +338,9 @@
323
338
  .h-10 {
324
339
  height: calc(var(--spacing) * 10);
325
340
  }
341
+ .h-\[90px\] {
342
+ height: 90px;
343
+ }
326
344
  .h-auto {
327
345
  height: auto;
328
346
  }
@@ -341,6 +359,9 @@
341
359
  .min-h-\[50px\] {
342
360
  min-height: 50px;
343
361
  }
362
+ .min-h-full {
363
+ min-height: 100%;
364
+ }
344
365
  .w-4 {
345
366
  width: calc(var(--spacing) * 4);
346
367
  }
@@ -362,12 +383,24 @@
362
383
  .w-full {
363
384
  width: 100%;
364
385
  }
386
+ .min-w-\[100\%\] {
387
+ min-width: 100%;
388
+ }
365
389
  .flex-1 {
366
390
  flex: 1;
367
391
  }
368
392
  .shrink-0 {
369
393
  flex-shrink: 0;
370
394
  }
395
+ .table-fixed {
396
+ table-layout: fixed;
397
+ }
398
+ .caption-bottom {
399
+ caption-side: bottom;
400
+ }
401
+ .border-collapse {
402
+ border-collapse: collapse;
403
+ }
371
404
  .translate-x-1 {
372
405
  --tw-translate-x: calc(var(--spacing) * 1);
373
406
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -376,6 +409,10 @@
376
409
  --tw-translate-x: calc(var(--spacing) * 6);
377
410
  translate: var(--tw-translate-x) var(--tw-translate-y);
378
411
  }
412
+ .translate-x-\[100\%\] {
413
+ --tw-translate-x: 100%;
414
+ translate: var(--tw-translate-x) var(--tw-translate-y);
415
+ }
379
416
  .rotate-180 {
380
417
  rotate: 180deg;
381
418
  }
@@ -394,6 +431,9 @@
394
431
  .flex-col {
395
432
  flex-direction: column;
396
433
  }
434
+ .flex-col-reverse {
435
+ flex-direction: column-reverse;
436
+ }
397
437
  .flex-wrap {
398
438
  flex-wrap: wrap;
399
439
  }
@@ -423,9 +463,18 @@
423
463
  text-overflow: ellipsis;
424
464
  white-space: nowrap;
425
465
  }
466
+ .overflow-auto {
467
+ overflow: auto;
468
+ }
426
469
  .overflow-hidden {
427
470
  overflow: hidden;
428
471
  }
472
+ .overflow-x-auto {
473
+ overflow-x: auto;
474
+ }
475
+ .overflow-x-hidden {
476
+ overflow-x: hidden;
477
+ }
429
478
  .overflow-y-auto {
430
479
  overflow-y: auto;
431
480
  }
@@ -474,6 +523,9 @@
474
523
  .border-\[\#e5e5e5\] {
475
524
  border-color: #e5e5e5;
476
525
  }
526
+ .border-\[\#e6e6e6\] {
527
+ border-color: #e6e6e6;
528
+ }
477
529
  .border-\[hsl\(0_0\%_89\.8\%\)\] {
478
530
  border-color: hsl(0 0% 89.8%);
479
531
  }
@@ -495,6 +547,12 @@
495
547
  .bg-black {
496
548
  background-color: var(--color-black);
497
549
  }
550
+ .bg-black\/80 {
551
+ background-color: color-mix(in srgb, #000 80%, transparent);
552
+ @supports (color: color-mix(in lab, red, red)) {
553
+ background-color: color-mix(in oklab, var(--color-black) 80%, transparent);
554
+ }
555
+ }
498
556
  .bg-blue-600 {
499
557
  background-color: var(--color-blue-600);
500
558
  }
@@ -555,12 +613,21 @@
555
613
  .py-2 {
556
614
  padding-block: calc(var(--spacing) * 2);
557
615
  }
616
+ .py-3 {
617
+ padding-block: calc(var(--spacing) * 3);
618
+ }
558
619
  .pt-2 {
559
620
  padding-top: calc(var(--spacing) * 2);
560
621
  }
561
622
  .text-center {
562
623
  text-align: center;
563
624
  }
625
+ .text-left {
626
+ text-align: left;
627
+ }
628
+ .text-right {
629
+ text-align: right;
630
+ }
564
631
  .text-2xl {
565
632
  font-size: var(--text-2xl);
566
633
  line-height: var(--tw-leading, var(--text-2xl--line-height));
@@ -731,6 +798,10 @@
731
798
  .delay-75 {
732
799
  transition-delay: 75ms;
733
800
  }
801
+ .duration-200 {
802
+ --tw-duration: 200ms;
803
+ transition-duration: 200ms;
804
+ }
734
805
  .duration-300 {
735
806
  --tw-duration: 300ms;
736
807
  transition-duration: 300ms;
@@ -842,6 +913,30 @@
842
913
  outline-style: none;
843
914
  }
844
915
  }
916
+ .sm\:flex-row {
917
+ @media (width >= 40rem) {
918
+ flex-direction: row;
919
+ }
920
+ }
921
+ .sm\:justify-end {
922
+ @media (width >= 40rem) {
923
+ justify-content: flex-end;
924
+ }
925
+ }
926
+ .sm\:space-x-2 {
927
+ @media (width >= 40rem) {
928
+ :where(& > :not(:last-child)) {
929
+ --tw-space-x-reverse: 0;
930
+ margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
931
+ margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
932
+ }
933
+ }
934
+ }
935
+ .md\:min-w-\[576px\] {
936
+ @media (width >= 48rem) {
937
+ min-width: 576px;
938
+ }
939
+ }
845
940
  }
846
941
  @property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
847
942
  @property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
@@ -870,6 +965,7 @@
870
965
  @property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
871
966
  @property --tw-duration { syntax: "*"; inherits: false; }
872
967
  @property --tw-outline-style { syntax: "*"; inherits: false; initial-value: solid; }
968
+ @property --tw-space-x-reverse { syntax: "*"; inherits: false; initial-value: 0; }
873
969
  @layer properties {
874
970
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
875
971
  *,
@@ -903,6 +999,7 @@
903
999
  --tw-ring-offset-shadow: 0 0 #0000;
904
1000
  --tw-duration: initial;
905
1001
  --tw-outline-style: solid;
1002
+ --tw-space-x-reverse: 0;
906
1003
  }
907
1004
  }
908
1005
  }
package/dist/index.js CHANGED
@@ -519,10 +519,11 @@ var RightSheet = ({ open, setOpen, children, callBack }) => {
519
519
 
520
520
  // src/Table/CustomTable.jsx
521
521
  var import_react13 = __toESM(require("react"));
522
+ var import_clsx2 = __toESM(require("clsx"));
522
523
  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-[#e5e5e5]" }, /* @__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 py-3 text-left" }, /* @__PURE__ */ import_react13.default.createElement("div", { className: "h-[48px]" }, /* @__PURE__ */ import_react13.default.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
524
+ 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 table-fixed border-collapse" }, /* @__PURE__ */ import_react13.default.createElement("thead", { className: "border-b border-[#e5e5e5]" }, /* @__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: "px-4 py-3 text-left" }, /* @__PURE__ */ import_react13.default.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
524
525
  setIsAllChecked(!isAllChecked);
525
- } }))), tableHeader.map((header, index) => {
526
+ } })), tableHeader.map((header, index) => {
526
527
  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
528
  }))), /* @__PURE__ */ import_react13.default.createElement("tbody", null, children))));
528
529
  };
package/dist/index.mjs CHANGED
@@ -472,10 +472,11 @@ var RightSheet = ({ open, setOpen, children, callBack }) => {
472
472
 
473
473
  // src/Table/CustomTable.jsx
474
474
  import React13 from "react";
475
+ import clsx2 from "clsx";
475
476
  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-[#e5e5e5]" }, /* @__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 py-3 text-left" }, /* @__PURE__ */ React13.createElement("div", { className: "h-[48px]" }, /* @__PURE__ */ React13.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
477
+ 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 table-fixed border-collapse" }, /* @__PURE__ */ React13.createElement("thead", { className: "border-b border-[#e5e5e5]" }, /* @__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: "px-4 py-3 text-left" }, /* @__PURE__ */ React13.createElement(CustomCheckbox, { checked: isAllChecked, onChange: () => {
477
478
  setIsAllChecked(!isAllChecked);
478
- } }))), tableHeader.map((header, index) => {
479
+ } })), tableHeader.map((header, index) => {
479
480
  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
481
  }))), /* @__PURE__ */ React13.createElement("tbody", null, children))));
481
482
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jett.admin.npmpackage",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {
@@ -14,7 +14,8 @@
14
14
  "dist"
15
15
  ],
16
16
  "scripts": {
17
- "build": "tsup src/index.js --format esm,cjs"
17
+ "build:css": "postcss src/index.css -o dist/index.css",
18
+ "build": "npm run build:css && tsup src/index.js --format esm,cjs"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "react": ">=18",
@@ -30,6 +31,7 @@
30
31
  "devDependencies": {
31
32
  "autoprefixer": "^10.4.21",
32
33
  "postcss": "^8.5.6",
34
+ "postcss-cli": "^11.0.1",
33
35
  "tailwindcss": "^4.1.13",
34
36
  "typescript": "^5.9.2",
35
37
  "vite": "^7.1.5"