jett.admin.npmpackage 1.0.35 → 1.0.37
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 +48 -0
- package/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -25,10 +25,13 @@
|
|
|
25
25
|
--color-red-100: oklch(93.6% 0.032 17.717);
|
|
26
26
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
27
27
|
--color-red-800: oklch(44.4% 0.177 26.899);
|
|
28
|
+
--color-red-900: oklch(39.6% 0.141 25.723);
|
|
28
29
|
--color-yellow-100: oklch(97.3% 0.071 103.193);
|
|
29
30
|
--color-yellow-800: oklch(47.6% 0.114 61.907);
|
|
31
|
+
--color-yellow-900: oklch(42.1% 0.095 57.708);
|
|
30
32
|
--color-green-100: oklch(96.2% 0.044 156.743);
|
|
31
33
|
--color-green-800: oklch(44.8% 0.119 151.328);
|
|
34
|
+
--color-green-900: oklch(39.3% 0.095 152.535);
|
|
32
35
|
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
33
36
|
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
34
37
|
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
@@ -38,6 +41,7 @@
|
|
|
38
41
|
--color-gray-500: oklch(55.1% 0.027 264.364);
|
|
39
42
|
--color-gray-600: oklch(44.6% 0.03 256.802);
|
|
40
43
|
--color-gray-700: oklch(37.3% 0.034 259.733);
|
|
44
|
+
--color-gray-800: oklch(27.8% 0.033 256.848);
|
|
41
45
|
--color-black: #000;
|
|
42
46
|
--color-white: #fff;
|
|
43
47
|
--spacing: 0.25rem;
|
|
@@ -980,21 +984,56 @@
|
|
|
980
984
|
background-color: var(--color-black);
|
|
981
985
|
}
|
|
982
986
|
}
|
|
987
|
+
.dark\:bg-gray-800 {
|
|
988
|
+
&:where(.dark, .dark *) {
|
|
989
|
+
background-color: var(--color-gray-800);
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
.dark\:bg-green-900 {
|
|
993
|
+
&:where(.dark, .dark *) {
|
|
994
|
+
background-color: var(--color-green-900);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
.dark\:bg-red-900 {
|
|
998
|
+
&:where(.dark, .dark *) {
|
|
999
|
+
background-color: var(--color-red-900);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
983
1002
|
.dark\:bg-transparent {
|
|
984
1003
|
&:where(.dark, .dark *) {
|
|
985
1004
|
background-color: transparent;
|
|
986
1005
|
}
|
|
987
1006
|
}
|
|
1007
|
+
.dark\:bg-yellow-900 {
|
|
1008
|
+
&:where(.dark, .dark *) {
|
|
1009
|
+
background-color: var(--color-yellow-900);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
988
1012
|
.dark\:text-\[\#f4f4f5cc\] {
|
|
989
1013
|
&:where(.dark, .dark *) {
|
|
990
1014
|
color: #f4f4f5cc;
|
|
991
1015
|
}
|
|
992
1016
|
}
|
|
1017
|
+
.dark\:text-green-100 {
|
|
1018
|
+
&:where(.dark, .dark *) {
|
|
1019
|
+
color: var(--color-green-100);
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
.dark\:text-red-100 {
|
|
1023
|
+
&:where(.dark, .dark *) {
|
|
1024
|
+
color: var(--color-red-100);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
993
1027
|
.dark\:text-white {
|
|
994
1028
|
&:where(.dark, .dark *) {
|
|
995
1029
|
color: var(--color-white);
|
|
996
1030
|
}
|
|
997
1031
|
}
|
|
1032
|
+
.dark\:text-yellow-100 {
|
|
1033
|
+
&:where(.dark, .dark *) {
|
|
1034
|
+
color: var(--color-yellow-100);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
998
1037
|
.dark\:outline-white {
|
|
999
1038
|
&:where(.dark, .dark *) {
|
|
1000
1039
|
outline-color: var(--color-white);
|
|
@@ -1009,6 +1048,15 @@
|
|
|
1009
1048
|
}
|
|
1010
1049
|
}
|
|
1011
1050
|
}
|
|
1051
|
+
.dark\:hover\:bg-gray-800 {
|
|
1052
|
+
&:where(.dark, .dark *) {
|
|
1053
|
+
&:hover {
|
|
1054
|
+
@media (hover: hover) {
|
|
1055
|
+
background-color: var(--color-gray-800);
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1012
1060
|
}
|
|
1013
1061
|
@property --tw-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
1014
1062
|
@property --tw-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
package/dist/index.js
CHANGED
|
@@ -152,7 +152,7 @@ var CustomAutocomplete = ({
|
|
|
152
152
|
"span",
|
|
153
153
|
{
|
|
154
154
|
key: opt.value,
|
|
155
|
-
className: "bg-gray-100 border border-gray-300 px-2 py-0.5 rounded text-xs flex items-center gap-1"
|
|
155
|
+
className: "bg-gray-100 border border-gray-300 px-2 dark:bg-gray-800 dark:text-white py-0.5 rounded text-xs flex items-center gap-1"
|
|
156
156
|
},
|
|
157
157
|
opt.label,
|
|
158
158
|
/* @__PURE__ */ import_react2.default.createElement(
|
|
@@ -162,7 +162,7 @@ var CustomAutocomplete = ({
|
|
|
162
162
|
e.stopPropagation();
|
|
163
163
|
toggleValue(opt.value);
|
|
164
164
|
},
|
|
165
|
-
className: "text-gray-500 hover:text-gray-700"
|
|
165
|
+
className: "text-gray-500 hover:text-gray-700 dark:text-white"
|
|
166
166
|
},
|
|
167
167
|
"\u2715"
|
|
168
168
|
)
|
|
@@ -190,7 +190,7 @@ var CustomAutocomplete = ({
|
|
|
190
190
|
{
|
|
191
191
|
key: opt.value,
|
|
192
192
|
onClick: () => toggleValue(opt.value),
|
|
193
|
-
className: `flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 ${selected ? "bg-gray-50 font-medium" : ""}`
|
|
193
|
+
className: `flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 ${selected ? "bg-gray-50 font-medium" : ""}`
|
|
194
194
|
},
|
|
195
195
|
/* @__PURE__ */ import_react2.default.createElement(
|
|
196
196
|
"span",
|
|
@@ -241,10 +241,10 @@ var CustomCheckbox = ({ onChange, checked }) => {
|
|
|
241
241
|
// src/inputs/Chip.jsx
|
|
242
242
|
var import_react4 = __toESM(require("react"));
|
|
243
243
|
var VARIANTS = {
|
|
244
|
-
PRIMARY: "bg-gray-100 text-black",
|
|
245
|
-
GREEN: "bg-green-100 text-green-800",
|
|
246
|
-
RED: "bg-red-100 text-red-800",
|
|
247
|
-
YELLOW: "bg-yellow-100 text-yellow-800"
|
|
244
|
+
PRIMARY: "bg-gray-100 text-black dark:bg-gray-800 dark:text-white",
|
|
245
|
+
GREEN: "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",
|
|
246
|
+
RED: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",
|
|
247
|
+
YELLOW: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100"
|
|
248
248
|
};
|
|
249
249
|
var Chip = ({ label, variant }) => {
|
|
250
250
|
return /* @__PURE__ */ import_react4.default.createElement(
|
|
@@ -732,11 +732,11 @@ var RightSheet = ({
|
|
|
732
732
|
"div",
|
|
733
733
|
{
|
|
734
734
|
className: `absolute flex flex-col right-0 top-0 min-h-full min-w-[100%] md:min-w-[576px] bg-white
|
|
735
|
-
${visible ? "sheetRightSlide" : "transition-all duration-200 translate-x-[100%]"} justify-between `,
|
|
735
|
+
${visible ? "sheetRightSlide" : "transition-all duration-200 translate-x-[100%]"} justify-between dark:bg-black dark:text-white`,
|
|
736
736
|
onClick: (e) => e.stopPropagation()
|
|
737
737
|
},
|
|
738
738
|
/* @__PURE__ */ import_react12.default.createElement("div", { className: "bg-white min-h-full " }, children),
|
|
739
|
-
/* @__PURE__ */ import_react12.default.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__ */ import_react12.default.createElement(CustomButton, { variant: "SECONDARY", onClick: () => handleClose() }, "Cancel"), /* @__PURE__ */ import_react12.default.createElement(CustomButton, { variant: "SECONDARY", onClick: handleAction }, actionLabel))
|
|
739
|
+
/* @__PURE__ */ import_react12.default.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] dark:border-[#303036] dark:bg-black dark:text-white" }, /* @__PURE__ */ import_react12.default.createElement(CustomButton, { variant: "SECONDARY", onClick: () => handleClose() }, "Cancel"), /* @__PURE__ */ import_react12.default.createElement(CustomButton, { variant: "SECONDARY", onClick: handleAction }, actionLabel))
|
|
740
740
|
)
|
|
741
741
|
);
|
|
742
742
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -104,7 +104,7 @@ var CustomAutocomplete = ({
|
|
|
104
104
|
"span",
|
|
105
105
|
{
|
|
106
106
|
key: opt.value,
|
|
107
|
-
className: "bg-gray-100 border border-gray-300 px-2 py-0.5 rounded text-xs flex items-center gap-1"
|
|
107
|
+
className: "bg-gray-100 border border-gray-300 px-2 dark:bg-gray-800 dark:text-white py-0.5 rounded text-xs flex items-center gap-1"
|
|
108
108
|
},
|
|
109
109
|
opt.label,
|
|
110
110
|
/* @__PURE__ */ React2.createElement(
|
|
@@ -114,7 +114,7 @@ var CustomAutocomplete = ({
|
|
|
114
114
|
e.stopPropagation();
|
|
115
115
|
toggleValue(opt.value);
|
|
116
116
|
},
|
|
117
|
-
className: "text-gray-500 hover:text-gray-700"
|
|
117
|
+
className: "text-gray-500 hover:text-gray-700 dark:text-white"
|
|
118
118
|
},
|
|
119
119
|
"\u2715"
|
|
120
120
|
)
|
|
@@ -142,7 +142,7 @@ var CustomAutocomplete = ({
|
|
|
142
142
|
{
|
|
143
143
|
key: opt.value,
|
|
144
144
|
onClick: () => toggleValue(opt.value),
|
|
145
|
-
className: `flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 ${selected ? "bg-gray-50 font-medium" : ""}`
|
|
145
|
+
className: `flex items-center gap-2 px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800 ${selected ? "bg-gray-50 font-medium" : ""}`
|
|
146
146
|
},
|
|
147
147
|
/* @__PURE__ */ React2.createElement(
|
|
148
148
|
"span",
|
|
@@ -193,10 +193,10 @@ var CustomCheckbox = ({ onChange, checked }) => {
|
|
|
193
193
|
// src/inputs/Chip.jsx
|
|
194
194
|
import React4 from "react";
|
|
195
195
|
var VARIANTS = {
|
|
196
|
-
PRIMARY: "bg-gray-100 text-black",
|
|
197
|
-
GREEN: "bg-green-100 text-green-800",
|
|
198
|
-
RED: "bg-red-100 text-red-800",
|
|
199
|
-
YELLOW: "bg-yellow-100 text-yellow-800"
|
|
196
|
+
PRIMARY: "bg-gray-100 text-black dark:bg-gray-800 dark:text-white",
|
|
197
|
+
GREEN: "bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100",
|
|
198
|
+
RED: "bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100",
|
|
199
|
+
YELLOW: "bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100"
|
|
200
200
|
};
|
|
201
201
|
var Chip = ({ label, variant }) => {
|
|
202
202
|
return /* @__PURE__ */ React4.createElement(
|
|
@@ -684,11 +684,11 @@ var RightSheet = ({
|
|
|
684
684
|
"div",
|
|
685
685
|
{
|
|
686
686
|
className: `absolute flex flex-col right-0 top-0 min-h-full min-w-[100%] md:min-w-[576px] bg-white
|
|
687
|
-
${visible ? "sheetRightSlide" : "transition-all duration-200 translate-x-[100%]"} justify-between `,
|
|
687
|
+
${visible ? "sheetRightSlide" : "transition-all duration-200 translate-x-[100%]"} justify-between dark:bg-black dark:text-white`,
|
|
688
688
|
onClick: (e) => e.stopPropagation()
|
|
689
689
|
},
|
|
690
690
|
/* @__PURE__ */ React12.createElement("div", { className: "bg-white min-h-full " }, children),
|
|
691
|
-
/* @__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(CustomButton, { variant: "SECONDARY", onClick: () => handleClose() }, "Cancel"), /* @__PURE__ */ React12.createElement(CustomButton, { variant: "SECONDARY", onClick: handleAction }, actionLabel))
|
|
691
|
+
/* @__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] dark:border-[#303036] dark:bg-black dark:text-white" }, /* @__PURE__ */ React12.createElement(CustomButton, { variant: "SECONDARY", onClick: () => handleClose() }, "Cancel"), /* @__PURE__ */ React12.createElement(CustomButton, { variant: "SECONDARY", onClick: handleAction }, actionLabel))
|
|
692
692
|
)
|
|
693
693
|
);
|
|
694
694
|
};
|