atomos_next_genesis 0.0.8 → 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.cjs +94 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +19 -36
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +94 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ __export(app_exports, {
|
|
|
39
39
|
BreadCrumb: () => Breadcrumb_default,
|
|
40
40
|
Button: () => Button_default,
|
|
41
41
|
Callout: () => Callout_default,
|
|
42
|
-
Card: () =>
|
|
42
|
+
Card: () => Card,
|
|
43
43
|
CardAction: () => CardAction,
|
|
44
44
|
CardContent: () => CardContent,
|
|
45
45
|
CardDescription: () => CardDescription,
|
|
@@ -295,10 +295,11 @@ var Avatar = (0, import_react3.forwardRef)((props, ref) => {
|
|
|
295
295
|
{
|
|
296
296
|
ref,
|
|
297
297
|
className: cn(
|
|
298
|
-
"relative
|
|
298
|
+
"relative",
|
|
299
299
|
rounded && "rounded-full",
|
|
300
300
|
border && "border border-gray-200",
|
|
301
|
-
disabled && "opacity-50 pointer-events-none select-none"
|
|
301
|
+
disabled && "opacity-50 pointer-events-none select-none",
|
|
302
|
+
onClick && "cursor-pointer"
|
|
302
303
|
),
|
|
303
304
|
style: {
|
|
304
305
|
borderColor,
|
|
@@ -310,7 +311,7 @@ var Avatar = (0, import_react3.forwardRef)((props, ref) => {
|
|
|
310
311
|
"div",
|
|
311
312
|
{
|
|
312
313
|
className: cn(
|
|
313
|
-
"relative
|
|
314
|
+
"relative flex items-center justify-center",
|
|
314
315
|
sizes[size],
|
|
315
316
|
className
|
|
316
317
|
),
|
|
@@ -662,7 +663,7 @@ var Callout_default = Callout;
|
|
|
662
663
|
|
|
663
664
|
// app/components/Card.tsx
|
|
664
665
|
var import_react8 = __toESM(require("react"), 1);
|
|
665
|
-
function
|
|
666
|
+
function Card({ children, className }) {
|
|
666
667
|
return /* @__PURE__ */ import_react8.default.createElement("div", { className: cn("bg-white rounded-lg border border-gray-200 shadow-sm", className) }, children);
|
|
667
668
|
}
|
|
668
669
|
var CardHeader = ({ children, className }) => {
|
|
@@ -1007,7 +1008,7 @@ var Input = (0, import_react15.forwardRef)(
|
|
|
1007
1008
|
"div",
|
|
1008
1009
|
{
|
|
1009
1010
|
className: cn(
|
|
1010
|
-
"group flex items-center gap-2 p-3.5 border border-gray-200 rounded-lg bg-white shadow-[0px_1px_2px_0px_#1018280D] hover:bg-gray-50 hover:border-gray-300 focus-within:border-
|
|
1011
|
+
"group flex items-center gap-2 p-3.5 border border-gray-200 rounded-lg bg-white shadow-[0px_1px_2px_0px_#1018280D] hover:bg-gray-50 hover:border-gray-300 focus-within:border-primary-600 focus-within:bg-gray-25 focus-within:hover:bg-gray-50 focus-within:hover:border-primary-600 has-[:disabled]:opacity-30 has-[:disabled]:bg-gray-300 has-[:disabled]:select-none has-[:disabled]:pointer-events-none",
|
|
1011
1012
|
size === "sm" ? "w-[320px] h-10" : size === "lg" ? "w-[313px] h-11" : "w-full h-10",
|
|
1012
1013
|
error && "border-error-500 hover:border-error-600 focus-within:border-error-500 focus-within:hover:border-error-500",
|
|
1013
1014
|
className
|
|
@@ -2827,34 +2828,109 @@ var Spinner = ({ size = "md", color = "primary" }) => {
|
|
|
2827
2828
|
var Spinner_default = Spinner;
|
|
2828
2829
|
|
|
2829
2830
|
// app/components/RazorPayFileUpload.tsx
|
|
2831
|
+
var fileSvg = () => {
|
|
2832
|
+
return /* @__PURE__ */ import_react43.default.createElement(
|
|
2833
|
+
"svg",
|
|
2834
|
+
{
|
|
2835
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2836
|
+
width: "40",
|
|
2837
|
+
height: "55",
|
|
2838
|
+
viewBox: "0 0 36 47",
|
|
2839
|
+
fill: "none"
|
|
2840
|
+
},
|
|
2841
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
|
2842
|
+
"path",
|
|
2843
|
+
{
|
|
2844
|
+
d: "M0 8.72494C0 5.48487 2.6266 2.85828 5.86667 2.85828H20.5333L33 15.8583V40.9916C33 44.2317 30.3734 46.8583 27.1333 46.8583H5.86667C2.6266 46.8583 0 44.2317 0 40.9916V8.72494Z",
|
|
2845
|
+
fill: "var(--primary-600)"
|
|
2846
|
+
}
|
|
2847
|
+
),
|
|
2848
|
+
/* @__PURE__ */ import_react43.default.createElement("g", { filter: "url(#filter0_d_5101_541)" }, /* @__PURE__ */ import_react43.default.createElement(
|
|
2849
|
+
"path",
|
|
2850
|
+
{
|
|
2851
|
+
d: "M20.5334 13.4052V2.85828L33 15.8582L22.974 15.8482C21.6257 15.8469 20.5334 14.7535 20.5334 13.4052Z",
|
|
2852
|
+
fill: "var(--primary-300)"
|
|
2853
|
+
}
|
|
2854
|
+
)),
|
|
2855
|
+
/* @__PURE__ */ import_react43.default.createElement("defs", null, /* @__PURE__ */ import_react43.default.createElement(
|
|
2856
|
+
"filter",
|
|
2857
|
+
{
|
|
2858
|
+
id: "filter0_d_5101_541",
|
|
2859
|
+
x: "14.7435",
|
|
2860
|
+
y: "-2.98023e-05",
|
|
2861
|
+
width: "21.1148",
|
|
2862
|
+
height: "21.6482",
|
|
2863
|
+
filterUnits: "userSpaceOnUse",
|
|
2864
|
+
"color-interpolation-filters": "sRGB"
|
|
2865
|
+
},
|
|
2866
|
+
/* @__PURE__ */ import_react43.default.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
|
2867
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
|
2868
|
+
"feColorMatrix",
|
|
2869
|
+
{
|
|
2870
|
+
in: "SourceAlpha",
|
|
2871
|
+
type: "matrix",
|
|
2872
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
2873
|
+
result: "hardAlpha"
|
|
2874
|
+
}
|
|
2875
|
+
),
|
|
2876
|
+
/* @__PURE__ */ import_react43.default.createElement("feOffset", { dx: "-1.4658", dy: "1.4658" }),
|
|
2877
|
+
/* @__PURE__ */ import_react43.default.createElement("feGaussianBlur", { stdDeviation: "2.16205" }),
|
|
2878
|
+
/* @__PURE__ */ import_react43.default.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
2879
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
|
2880
|
+
"feColorMatrix",
|
|
2881
|
+
{
|
|
2882
|
+
type: "matrix",
|
|
2883
|
+
values: "0 0 0 0 0.0417487 0 0 0 0 0.107741 0 0 0 0 0.401705 0 0 0 0.07 0"
|
|
2884
|
+
}
|
|
2885
|
+
),
|
|
2886
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
|
2887
|
+
"feBlend",
|
|
2888
|
+
{
|
|
2889
|
+
mode: "normal",
|
|
2890
|
+
in2: "BackgroundImageFix",
|
|
2891
|
+
result: "effect1_dropShadow_5101_541"
|
|
2892
|
+
}
|
|
2893
|
+
),
|
|
2894
|
+
/* @__PURE__ */ import_react43.default.createElement(
|
|
2895
|
+
"feBlend",
|
|
2896
|
+
{
|
|
2897
|
+
mode: "normal",
|
|
2898
|
+
in: "SourceGraphic",
|
|
2899
|
+
in2: "effect1_dropShadow_5101_541",
|
|
2900
|
+
result: "shape"
|
|
2901
|
+
}
|
|
2902
|
+
)
|
|
2903
|
+
))
|
|
2904
|
+
);
|
|
2905
|
+
};
|
|
2830
2906
|
var defaultGetFileIcon = (fileName, fileType) => {
|
|
2831
2907
|
var _a;
|
|
2832
2908
|
const extension = ((_a = fileName.split(".").pop()) == null ? void 0 : _a.toLowerCase()) || "";
|
|
2833
2909
|
if (fileType.startsWith("image/") || ["jpg", "jpeg", "png", "gif", "svg", "webp", "bmp"].includes(extension)) {
|
|
2834
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiImageLine, { className: "w-
|
|
2910
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiImageLine, { className: "w-5 h-5 text-white" });
|
|
2835
2911
|
}
|
|
2836
2912
|
if (fileType.startsWith("audio/") || ["mp3", "wav", "ogg", "m4a"].includes(extension)) {
|
|
2837
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiMusic2Line, { className: "w-
|
|
2913
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiMusic2Line, { className: "w-5 h-5 text-white" });
|
|
2838
2914
|
}
|
|
2839
2915
|
if (fileType.startsWith("video/") || ["mp4", "avi", "mkv", "mov", "wmv"].includes(extension)) {
|
|
2840
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiVideoLine, { className: "w-
|
|
2916
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiVideoLine, { className: "w-5 h-5 text-white" });
|
|
2841
2917
|
}
|
|
2842
2918
|
if (fileType.includes("excel") || ["xls", "xlsx", "csv", "txt", "ods"].includes(extension)) {
|
|
2843
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileExcel2Line, { className: "w-
|
|
2919
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileExcel2Line, { className: "w-5 h-5 text-white" });
|
|
2844
2920
|
}
|
|
2845
2921
|
if (fileType.includes("word") || ["doc", "docx", "odt", "xml"].includes(extension)) {
|
|
2846
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileWord2Line, { className: "w-
|
|
2922
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileWord2Line, { className: "w-5 h-5 text-white" });
|
|
2847
2923
|
}
|
|
2848
2924
|
if (["pptx", "pptm", "xps", "ppsx"].includes(extension)) {
|
|
2849
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFilePpt2Line, { className: "w-
|
|
2925
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFilePpt2Line, { className: "w-5 h-5 text-white" });
|
|
2850
2926
|
}
|
|
2851
2927
|
if (fileType.includes("zip") || ["zip", "rar", "7z", "tar", "gz"].includes(extension)) {
|
|
2852
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileZipLine, { className: "w-
|
|
2928
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileZipLine, { className: "w-5 h-5 text-white" });
|
|
2853
2929
|
}
|
|
2854
2930
|
if (fileType === "application/pdf" || extension === "pdf") {
|
|
2855
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFilePdf2Line, { className: "w-
|
|
2931
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFilePdf2Line, { className: "w-5 h-5 text-white" });
|
|
2856
2932
|
}
|
|
2857
|
-
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileLine, { className: "w-
|
|
2933
|
+
return /* @__PURE__ */ import_react43.default.createElement(import_react44.RiFileLine, { className: "w-5 h-5 text-white" });
|
|
2858
2934
|
};
|
|
2859
2935
|
function ImageUploadControlled({
|
|
2860
2936
|
items,
|
|
@@ -3118,14 +3194,7 @@ function ImageUploadControlled({
|
|
|
3118
3194
|
key: item == null ? void 0 : item.id,
|
|
3119
3195
|
className: "flex items-center gap-4 bg-white max-w-[564px] w-full p-4 rounded-lg border border-gray-200"
|
|
3120
3196
|
},
|
|
3121
|
-
/* @__PURE__ */ import_react43.default.createElement("div", { className: "w-14 h-14 flex-shrink-0 rounded-md overflow-hidden relative" }, /* @__PURE__ */ import_react43.default.createElement(
|
|
3122
|
-
"img",
|
|
3123
|
-
{
|
|
3124
|
-
src: "/fileImg.svg",
|
|
3125
|
-
className: "absolute inset-0 w-full h-full object-contain",
|
|
3126
|
-
alt: "file"
|
|
3127
|
-
}
|
|
3128
|
-
), /* @__PURE__ */ import_react43.default.createElement("div", { className: "relative z-10 mt-2 -ml-[2px] flex items-center justify-center w-full h-full text-white" }, fileIcon)),
|
|
3197
|
+
/* @__PURE__ */ import_react43.default.createElement("div", { className: "w-14 h-14 flex-shrink-0 rounded-md overflow-hidden relative" }, /* @__PURE__ */ import_react43.default.createElement("div", { className: "absolute inset-0 w-full h-full object-contain" }, fileSvg()), /* @__PURE__ */ import_react43.default.createElement("div", { className: "relative z-10 top-2 -left-2.5 flex items-center justify-center w-full h-full text-white" }, fileIcon)),
|
|
3129
3198
|
/* @__PURE__ */ import_react43.default.createElement("div", { className: "flex-1 min-w-0" }, /* @__PURE__ */ import_react43.default.createElement("div", { className: "flex items-start justify-between gap-2 mb-3" }, /* @__PURE__ */ import_react43.default.createElement("div", { className: "min-w-0" }, /* @__PURE__ */ import_react43.default.createElement("h4", { className: "text-sm font-medium text-gray-900 truncate" }, (item == null ? void 0 : item.name) || ((_a2 = item.file) == null ? void 0 : _a2.name) || "Unnamed file"), showSizeText && /* @__PURE__ */ import_react43.default.createElement("div", { className: "text-xs text-gray-500 mt-1 flex items-center gap-1" }, formatSize((item == null ? void 0 : item.size) || ((_b = item.file) == null ? void 0 : _b.size)), statusInfo.text && /* @__PURE__ */ import_react43.default.createElement("div", { className: "ml-2 font-medium flex items-center gap-1" }, (statusInfo == null ? void 0 : statusInfo.showSpinner) ? /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, statusInfo.icon, /* @__PURE__ */ import_react43.default.createElement("span", { className: statusInfo.color }, statusInfo.text)) : /* @__PURE__ */ import_react43.default.createElement(import_react43.default.Fragment, null, /* @__PURE__ */ import_react43.default.createElement(
|
|
3130
3199
|
"div",
|
|
3131
3200
|
{
|
|
@@ -3959,17 +4028,7 @@ Tab.displayName = "Tab";
|
|
|
3959
4028
|
// app/components/Textarea.tsx
|
|
3960
4029
|
var import_react54 = __toESM(require("react"), 1);
|
|
3961
4030
|
var Textarea = (0, import_react54.forwardRef)(
|
|
3962
|
-
({
|
|
3963
|
-
size,
|
|
3964
|
-
className,
|
|
3965
|
-
rows,
|
|
3966
|
-
cols,
|
|
3967
|
-
disabled,
|
|
3968
|
-
error,
|
|
3969
|
-
children,
|
|
3970
|
-
id,
|
|
3971
|
-
...props
|
|
3972
|
-
}, ref) => {
|
|
4031
|
+
({ size, className, rows, cols, disabled, error, children, id, ...props }, ref) => {
|
|
3973
4032
|
return /* @__PURE__ */ import_react54.default.createElement(
|
|
3974
4033
|
"textarea",
|
|
3975
4034
|
{
|
|
@@ -3979,7 +4038,7 @@ var Textarea = (0, import_react54.forwardRef)(
|
|
|
3979
4038
|
rows,
|
|
3980
4039
|
cols,
|
|
3981
4040
|
className: cn(
|
|
3982
|
-
"group flex items-center gap-2 border border-gray-200 rounded-lg bg-gray-
|
|
4041
|
+
"group flex items-center gap-2 border border-gray-200 rounded-lg bg-gray-25 shadow-xs hover:bg-gray-50 hover:border-gray-300 text-sm focus-within:border-primary-600 focus-within:bg-gray-25 focus-within:hover:bg-gray-50 focus-within:hover:border-primary-600 outline-none disabled:bg-gray-300 disabled:select-none disabled:pointer-events-none disabled:opacity-30 w-full placeholder:text-gray-500 hover:placeholder:text-gray-500 shadow-[0px_1px_2px_0px_#1018280D]",
|
|
3983
4042
|
size === "sm" ? "py-2.5 px-3.5" : "p-2.5",
|
|
3984
4043
|
error && "border-error-500 hover:border-error-600 focus-within:hover:border-error-500 focus-within:border-error-500",
|
|
3985
4044
|
className,
|