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.d.cts CHANGED
@@ -135,7 +135,7 @@ interface CardFooterProps {
135
135
  children: React.ReactNode;
136
136
  className?: string;
137
137
  }
138
- declare function export_default({ children, className }: CardProps): React.JSX.Element;
138
+ declare function Card({ children, className }: CardProps): React.JSX.Element;
139
139
  declare const CardHeader: React.FC<CardHeaderProps>;
140
140
  declare const CardTitle: React.FC<CardTitleProps>;
141
141
  declare const CardDescription: React.FC<CardDescriptionProps>;
@@ -438,7 +438,7 @@ declare const radioVariants: (props?: ({
438
438
  } & class_variance_authority_types.ClassProp) | undefined) => string;
439
439
  declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
440
440
 
441
- type UploadStatus = 'idle' | 'uploading' | 'success' | 'error';
441
+ type UploadStatus = "idle" | "uploading" | "success" | "error";
442
442
  interface UploadItem {
443
443
  id: string;
444
444
  file?: File;
@@ -746,4 +746,4 @@ declare const typographyVariant: (props?: ({
746
746
  } & class_variance_authority_types.ClassProp) | undefined) => string;
747
747
  declare const Typography: ({ as, variant, intent, children, className, ...props }: TypographyProps) => React.JSX.Element;
748
748
 
749
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Callout, export_default as Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Drawer, Dropdown, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownWithIcon, FileSelector, FileUpload, FileUploadPreview, GlobalNavigation, HelperText, ImageUploadControlled, Input, Label, ListPagination, Loading, Modal, Notice, OTPInput, Pagination, ProgressBar, Radio, Sidebar, Skeleton, Slider, Spinner, SplitButton, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, TextInputWithLabel, Textarea, Toggle, Tooltip, TreeView, Typography, defaultGetFileIcon };
749
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Callout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Drawer, Dropdown, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownWithIcon, FileSelector, FileUpload, FileUploadPreview, GlobalNavigation, HelperText, ImageUploadControlled, Input, Label, ListPagination, Loading, Modal, Notice, OTPInput, Pagination, ProgressBar, Radio, Sidebar, Skeleton, Slider, Spinner, SplitButton, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, TextInputWithLabel, Textarea, Toggle, Tooltip, TreeView, Typography, defaultGetFileIcon };
package/dist/index.d.ts CHANGED
@@ -135,7 +135,7 @@ interface CardFooterProps {
135
135
  children: React.ReactNode;
136
136
  className?: string;
137
137
  }
138
- declare function export_default({ children, className }: CardProps): React.JSX.Element;
138
+ declare function Card({ children, className }: CardProps): React.JSX.Element;
139
139
  declare const CardHeader: React.FC<CardHeaderProps>;
140
140
  declare const CardTitle: React.FC<CardTitleProps>;
141
141
  declare const CardDescription: React.FC<CardDescriptionProps>;
@@ -438,7 +438,7 @@ declare const radioVariants: (props?: ({
438
438
  } & class_variance_authority_types.ClassProp) | undefined) => string;
439
439
  declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
440
440
 
441
- type UploadStatus = 'idle' | 'uploading' | 'success' | 'error';
441
+ type UploadStatus = "idle" | "uploading" | "success" | "error";
442
442
  interface UploadItem {
443
443
  id: string;
444
444
  file?: File;
@@ -746,4 +746,4 @@ declare const typographyVariant: (props?: ({
746
746
  } & class_variance_authority_types.ClassProp) | undefined) => string;
747
747
  declare const Typography: ({ as, variant, intent, children, className, ...props }: TypographyProps) => React.JSX.Element;
748
748
 
749
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Callout, export_default as Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Drawer, Dropdown, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownWithIcon, FileSelector, FileUpload, FileUploadPreview, GlobalNavigation, HelperText, ImageUploadControlled, Input, Label, ListPagination, Loading, Modal, Notice, OTPInput, Pagination, ProgressBar, Radio, Sidebar, Skeleton, Slider, Spinner, SplitButton, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, TextInputWithLabel, Textarea, Toggle, Tooltip, TreeView, Typography, defaultGetFileIcon };
749
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Avatar, AvatarGroup, Breadcrumbs as BreadCrumb, Button, Callout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CircularProgressBar as CircularProgress, Divider, Drawer, Dropdown, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, DropdownWithIcon, FileSelector, FileUpload, FileUploadPreview, GlobalNavigation, HelperText, ImageUploadControlled, Input, Label, ListPagination, Loading, Modal, Notice, OTPInput, Pagination, ProgressBar, Radio, Sidebar, Skeleton, Slider, Spinner, SplitButton, Stepper, Tab, TabList, TabPanel, Table, TableBody, TableDataCell, TableHead, TableHeadCell, TableRow, TabsContainer, TextInputWithLabel, Textarea, Toggle, Tooltip, TreeView, Typography, defaultGetFileIcon };
package/dist/index.js CHANGED
@@ -189,10 +189,11 @@ var Avatar = forwardRef((props, ref) => {
189
189
  {
190
190
  ref,
191
191
  className: cn(
192
- "relative -z-10 ",
192
+ "relative",
193
193
  rounded && "rounded-full",
194
194
  border && "border border-gray-200",
195
- disabled && "opacity-50 pointer-events-none select-none"
195
+ disabled && "opacity-50 pointer-events-none select-none",
196
+ onClick && "cursor-pointer"
196
197
  ),
197
198
  style: {
198
199
  borderColor,
@@ -204,7 +205,7 @@ var Avatar = forwardRef((props, ref) => {
204
205
  "div",
205
206
  {
206
207
  className: cn(
207
- "relative -z-10 flex items-center justify-center",
208
+ "relative flex items-center justify-center",
208
209
  sizes[size],
209
210
  className
210
211
  ),
@@ -556,7 +557,7 @@ var Callout_default = Callout;
556
557
 
557
558
  // app/components/Card.tsx
558
559
  import React7 from "react";
559
- function Card_default({ children, className }) {
560
+ function Card({ children, className }) {
560
561
  return /* @__PURE__ */ React7.createElement("div", { className: cn("bg-white rounded-lg border border-gray-200 shadow-sm", className) }, children);
561
562
  }
562
563
  var CardHeader = ({ children, className }) => {
@@ -912,7 +913,7 @@ var Input = forwardRef4(
912
913
  "div",
913
914
  {
914
915
  className: cn(
915
- "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-gray-800 focus-within:bg-gray-25 focus-within:hover:bg-gray-50 focus-within:hover:border-gray-800 has-[:disabled]:opacity-30 has-[:disabled]:bg-gray-300 has-[:disabled]:select-none has-[:disabled]:pointer-events-none",
916
+ "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",
916
917
  size === "sm" ? "w-[320px] h-10" : size === "lg" ? "w-[313px] h-11" : "w-full h-10",
917
918
  error && "border-error-500 hover:border-error-600 focus-within:border-error-500 focus-within:hover:border-error-500",
918
919
  className
@@ -2780,34 +2781,109 @@ var Spinner = ({ size = "md", color = "primary" }) => {
2780
2781
  var Spinner_default = Spinner;
2781
2782
 
2782
2783
  // app/components/RazorPayFileUpload.tsx
2784
+ var fileSvg = () => {
2785
+ return /* @__PURE__ */ React32.createElement(
2786
+ "svg",
2787
+ {
2788
+ xmlns: "http://www.w3.org/2000/svg",
2789
+ width: "40",
2790
+ height: "55",
2791
+ viewBox: "0 0 36 47",
2792
+ fill: "none"
2793
+ },
2794
+ /* @__PURE__ */ React32.createElement(
2795
+ "path",
2796
+ {
2797
+ 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",
2798
+ fill: "var(--primary-600)"
2799
+ }
2800
+ ),
2801
+ /* @__PURE__ */ React32.createElement("g", { filter: "url(#filter0_d_5101_541)" }, /* @__PURE__ */ React32.createElement(
2802
+ "path",
2803
+ {
2804
+ d: "M20.5334 13.4052V2.85828L33 15.8582L22.974 15.8482C21.6257 15.8469 20.5334 14.7535 20.5334 13.4052Z",
2805
+ fill: "var(--primary-300)"
2806
+ }
2807
+ )),
2808
+ /* @__PURE__ */ React32.createElement("defs", null, /* @__PURE__ */ React32.createElement(
2809
+ "filter",
2810
+ {
2811
+ id: "filter0_d_5101_541",
2812
+ x: "14.7435",
2813
+ y: "-2.98023e-05",
2814
+ width: "21.1148",
2815
+ height: "21.6482",
2816
+ filterUnits: "userSpaceOnUse",
2817
+ "color-interpolation-filters": "sRGB"
2818
+ },
2819
+ /* @__PURE__ */ React32.createElement("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
2820
+ /* @__PURE__ */ React32.createElement(
2821
+ "feColorMatrix",
2822
+ {
2823
+ in: "SourceAlpha",
2824
+ type: "matrix",
2825
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
2826
+ result: "hardAlpha"
2827
+ }
2828
+ ),
2829
+ /* @__PURE__ */ React32.createElement("feOffset", { dx: "-1.4658", dy: "1.4658" }),
2830
+ /* @__PURE__ */ React32.createElement("feGaussianBlur", { stdDeviation: "2.16205" }),
2831
+ /* @__PURE__ */ React32.createElement("feComposite", { in2: "hardAlpha", operator: "out" }),
2832
+ /* @__PURE__ */ React32.createElement(
2833
+ "feColorMatrix",
2834
+ {
2835
+ type: "matrix",
2836
+ 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"
2837
+ }
2838
+ ),
2839
+ /* @__PURE__ */ React32.createElement(
2840
+ "feBlend",
2841
+ {
2842
+ mode: "normal",
2843
+ in2: "BackgroundImageFix",
2844
+ result: "effect1_dropShadow_5101_541"
2845
+ }
2846
+ ),
2847
+ /* @__PURE__ */ React32.createElement(
2848
+ "feBlend",
2849
+ {
2850
+ mode: "normal",
2851
+ in: "SourceGraphic",
2852
+ in2: "effect1_dropShadow_5101_541",
2853
+ result: "shape"
2854
+ }
2855
+ )
2856
+ ))
2857
+ );
2858
+ };
2783
2859
  var defaultGetFileIcon = (fileName, fileType) => {
2784
2860
  var _a;
2785
2861
  const extension = ((_a = fileName.split(".").pop()) == null ? void 0 : _a.toLowerCase()) || "";
2786
2862
  if (fileType.startsWith("image/") || ["jpg", "jpeg", "png", "gif", "svg", "webp", "bmp"].includes(extension)) {
2787
- return /* @__PURE__ */ React32.createElement(RiImageLine2, { className: "w-6 h-6 text-white" });
2863
+ return /* @__PURE__ */ React32.createElement(RiImageLine2, { className: "w-5 h-5 text-white" });
2788
2864
  }
2789
2865
  if (fileType.startsWith("audio/") || ["mp3", "wav", "ogg", "m4a"].includes(extension)) {
2790
- return /* @__PURE__ */ React32.createElement(RiMusic2Line2, { className: "w-6 h-6 text-white" });
2866
+ return /* @__PURE__ */ React32.createElement(RiMusic2Line2, { className: "w-5 h-5 text-white" });
2791
2867
  }
2792
2868
  if (fileType.startsWith("video/") || ["mp4", "avi", "mkv", "mov", "wmv"].includes(extension)) {
2793
- return /* @__PURE__ */ React32.createElement(RiVideoLine2, { className: "w-6 h-6 text-white" });
2869
+ return /* @__PURE__ */ React32.createElement(RiVideoLine2, { className: "w-5 h-5 text-white" });
2794
2870
  }
2795
2871
  if (fileType.includes("excel") || ["xls", "xlsx", "csv", "txt", "ods"].includes(extension)) {
2796
- return /* @__PURE__ */ React32.createElement(RiFileExcel2Line2, { className: "w-6 h-6 text-white" });
2872
+ return /* @__PURE__ */ React32.createElement(RiFileExcel2Line2, { className: "w-5 h-5 text-white" });
2797
2873
  }
2798
2874
  if (fileType.includes("word") || ["doc", "docx", "odt", "xml"].includes(extension)) {
2799
- return /* @__PURE__ */ React32.createElement(RiFileWord2Line2, { className: "w-6 h-6 text-white" });
2875
+ return /* @__PURE__ */ React32.createElement(RiFileWord2Line2, { className: "w-5 h-5 text-white" });
2800
2876
  }
2801
2877
  if (["pptx", "pptm", "xps", "ppsx"].includes(extension)) {
2802
- return /* @__PURE__ */ React32.createElement(RiFilePpt2Line2, { className: "w-6 h-6 text-white" });
2878
+ return /* @__PURE__ */ React32.createElement(RiFilePpt2Line2, { className: "w-5 h-5 text-white" });
2803
2879
  }
2804
2880
  if (fileType.includes("zip") || ["zip", "rar", "7z", "tar", "gz"].includes(extension)) {
2805
- return /* @__PURE__ */ React32.createElement(RiFileZipLine2, { className: "w-6 h-6 text-white" });
2881
+ return /* @__PURE__ */ React32.createElement(RiFileZipLine2, { className: "w-5 h-5 text-white" });
2806
2882
  }
2807
2883
  if (fileType === "application/pdf" || extension === "pdf") {
2808
- return /* @__PURE__ */ React32.createElement(RiFilePdf2Line2, { className: "w-6 h-6 text-white" });
2884
+ return /* @__PURE__ */ React32.createElement(RiFilePdf2Line2, { className: "w-5 h-5 text-white" });
2809
2885
  }
2810
- return /* @__PURE__ */ React32.createElement(RiFileLine2, { className: "w-6 h-6 text-white" });
2886
+ return /* @__PURE__ */ React32.createElement(RiFileLine2, { className: "w-5 h-5 text-white" });
2811
2887
  };
2812
2888
  function ImageUploadControlled({
2813
2889
  items,
@@ -3071,14 +3147,7 @@ function ImageUploadControlled({
3071
3147
  key: item == null ? void 0 : item.id,
3072
3148
  className: "flex items-center gap-4 bg-white max-w-[564px] w-full p-4 rounded-lg border border-gray-200"
3073
3149
  },
3074
- /* @__PURE__ */ React32.createElement("div", { className: "w-14 h-14 flex-shrink-0 rounded-md overflow-hidden relative" }, /* @__PURE__ */ React32.createElement(
3075
- "img",
3076
- {
3077
- src: "/fileImg.svg",
3078
- className: "absolute inset-0 w-full h-full object-contain",
3079
- alt: "file"
3080
- }
3081
- ), /* @__PURE__ */ React32.createElement("div", { className: "relative z-10 mt-2 -ml-[2px] flex items-center justify-center w-full h-full text-white" }, fileIcon)),
3150
+ /* @__PURE__ */ React32.createElement("div", { className: "w-14 h-14 flex-shrink-0 rounded-md overflow-hidden relative" }, /* @__PURE__ */ React32.createElement("div", { className: "absolute inset-0 w-full h-full object-contain" }, fileSvg()), /* @__PURE__ */ React32.createElement("div", { className: "relative z-10 top-2 -left-2.5 flex items-center justify-center w-full h-full text-white" }, fileIcon)),
3082
3151
  /* @__PURE__ */ React32.createElement("div", { className: "flex-1 min-w-0" }, /* @__PURE__ */ React32.createElement("div", { className: "flex items-start justify-between gap-2 mb-3" }, /* @__PURE__ */ React32.createElement("div", { className: "min-w-0" }, /* @__PURE__ */ React32.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__ */ React32.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__ */ React32.createElement("div", { className: "ml-2 font-medium flex items-center gap-1" }, (statusInfo == null ? void 0 : statusInfo.showSpinner) ? /* @__PURE__ */ React32.createElement(React32.Fragment, null, statusInfo.icon, /* @__PURE__ */ React32.createElement("span", { className: statusInfo.color }, statusInfo.text)) : /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(
3083
3152
  "div",
3084
3153
  {
@@ -3917,17 +3986,7 @@ import React40, {
3917
3986
  forwardRef as forwardRef13
3918
3987
  } from "react";
3919
3988
  var Textarea = forwardRef13(
3920
- ({
3921
- size,
3922
- className,
3923
- rows,
3924
- cols,
3925
- disabled,
3926
- error,
3927
- children,
3928
- id,
3929
- ...props
3930
- }, ref) => {
3989
+ ({ size, className, rows, cols, disabled, error, children, id, ...props }, ref) => {
3931
3990
  return /* @__PURE__ */ React40.createElement(
3932
3991
  "textarea",
3933
3992
  {
@@ -3937,7 +3996,7 @@ var Textarea = forwardRef13(
3937
3996
  rows,
3938
3997
  cols,
3939
3998
  className: cn(
3940
- "group flex items-center gap-2 border border-gray-200 rounded-lg bg-gray-50 shadow-xs hover:bg-gray-50 hover:border-gray-300 text-sm focus-within:border-gray-800 focus-within:bg-gray-25 focus-within:hover:bg-gray-50 focus-within:hover:border-gray-800 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]",
3999
+ "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]",
3941
4000
  size === "sm" ? "py-2.5 px-3.5" : "p-2.5",
3942
4001
  error && "border-error-500 hover:border-error-600 focus-within:hover:border-error-500 focus-within:border-error-500",
3943
4002
  className,
@@ -4372,7 +4431,7 @@ export {
4372
4431
  Breadcrumb_default as BreadCrumb,
4373
4432
  Button_default as Button,
4374
4433
  Callout_default as Callout,
4375
- Card_default as Card,
4434
+ Card,
4376
4435
  CardAction,
4377
4436
  CardContent,
4378
4437
  CardDescription,