@ikatec/nebula-react 1.3.2 → 1.3.3-beta.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.
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -2663,22 +2663,19 @@ var DrawerOverlay = React8__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
2663
2663
|
}
|
|
2664
2664
|
));
|
|
2665
2665
|
DrawerOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
2666
|
-
var DrawerVariants = classVarianceAuthority.cva(
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
left: "inset-y-0 h-full left-0 w-3/4 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left sm:max-w-sm",
|
|
2674
|
-
right: "inset-y-0 h-full right-0 w-3/4 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right sm:max-w-sm"
|
|
2675
|
-
}
|
|
2676
|
-
},
|
|
2677
|
-
defaultVariants: {
|
|
2678
|
-
side: "right"
|
|
2666
|
+
var DrawerVariants = classVarianceAuthority.cva("fixed flex flex-col z-50 shadow-lg", {
|
|
2667
|
+
variants: {
|
|
2668
|
+
side: {
|
|
2669
|
+
top: "inset-x-0 top-0 data-[state=open]:animate-slide-in-from-top data-[state=closed]:animate-slide-out-to-top",
|
|
2670
|
+
bottom: "inset-x-0 bottom-0 data-[state=open]:animate-slide-in-from-bottom data-[state=closed]:animate-slide-out-to-bottom",
|
|
2671
|
+
left: "inset-y-0 h-full left-0 w-3/4 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left sm:max-w-sm",
|
|
2672
|
+
right: "inset-y-0 h-full right-0 w-3/4 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right sm:max-w-sm"
|
|
2679
2673
|
}
|
|
2674
|
+
},
|
|
2675
|
+
defaultVariants: {
|
|
2676
|
+
side: "right"
|
|
2680
2677
|
}
|
|
2681
|
-
);
|
|
2678
|
+
});
|
|
2682
2679
|
var DrawerContent = React8__namespace.forwardRef(({ side = "right", className, portal = false, children, ...props }, ref) => {
|
|
2683
2680
|
const Comp = portal ? DrawerPortal : React8__namespace.Fragment;
|
|
2684
2681
|
return /* @__PURE__ */ jsxRuntime.jsxs(Comp, { children: [
|
|
@@ -2927,7 +2924,7 @@ var Tooltip = React8__namespace.forwardRef(
|
|
|
2927
2924
|
}, ref) => {
|
|
2928
2925
|
const Comp = portal ? TooltipPrimitive__namespace.Portal : React8__namespace.Fragment;
|
|
2929
2926
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Provider, { children: /* @__PURE__ */ jsxRuntime.jsxs(TooltipPrimitive__namespace.Root, { children: [
|
|
2930
|
-
/* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { children }),
|
|
2927
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Trigger, { type: "button", children }),
|
|
2931
2928
|
/* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2932
2929
|
TooltipPrimitive__namespace.Content,
|
|
2933
2930
|
{
|
|
@@ -4757,9 +4754,25 @@ var useFileUpload = (options = {}) => {
|
|
|
4757
4754
|
},
|
|
4758
4755
|
[accept, multiple, handleFileChange]
|
|
4759
4756
|
);
|
|
4760
|
-
return
|
|
4761
|
-
|
|
4762
|
-
|
|
4757
|
+
return React8.useMemo(
|
|
4758
|
+
() => [
|
|
4759
|
+
state,
|
|
4760
|
+
{
|
|
4761
|
+
addFiles,
|
|
4762
|
+
removeFile,
|
|
4763
|
+
clearFiles,
|
|
4764
|
+
clearErrors,
|
|
4765
|
+
handleDragEnter,
|
|
4766
|
+
handleDragLeave,
|
|
4767
|
+
handleDragOver,
|
|
4768
|
+
handleDrop,
|
|
4769
|
+
handleFileChange,
|
|
4770
|
+
openFileDialog,
|
|
4771
|
+
getInputProps
|
|
4772
|
+
}
|
|
4773
|
+
],
|
|
4774
|
+
[
|
|
4775
|
+
state,
|
|
4763
4776
|
addFiles,
|
|
4764
4777
|
removeFile,
|
|
4765
4778
|
clearFiles,
|
|
@@ -4771,8 +4784,8 @@ var useFileUpload = (options = {}) => {
|
|
|
4771
4784
|
handleFileChange,
|
|
4772
4785
|
openFileDialog,
|
|
4773
4786
|
getInputProps
|
|
4774
|
-
|
|
4775
|
-
|
|
4787
|
+
]
|
|
4788
|
+
);
|
|
4776
4789
|
};
|
|
4777
4790
|
var formatBytes = (bytes, decimals = 2) => {
|
|
4778
4791
|
if (bytes === 0) return "0 Bytes";
|
|
@@ -4827,7 +4840,7 @@ function FileUpload({
|
|
|
4827
4840
|
});
|
|
4828
4841
|
React8.useEffect(() => {
|
|
4829
4842
|
onError?.(errors);
|
|
4830
|
-
}, [errors
|
|
4843
|
+
}, [errors]);
|
|
4831
4844
|
const disabled = React8.useMemo(() => {
|
|
4832
4845
|
if (rest.disabled) return true;
|
|
4833
4846
|
if (rest.multiple) {
|
|
@@ -6111,7 +6124,7 @@ var ProfileImage = ({
|
|
|
6111
6124
|
const [isDialogOpen, setIsDialogOpen] = React8.useState(false);
|
|
6112
6125
|
React8.useEffect(() => {
|
|
6113
6126
|
onError?.(errors);
|
|
6114
|
-
}, [errors
|
|
6127
|
+
}, [errors]);
|
|
6115
6128
|
const [file] = files;
|
|
6116
6129
|
const fileId = file?.id;
|
|
6117
6130
|
const previousFileIdRef = React8.useRef(null);
|
package/dist/index.mjs
CHANGED
|
@@ -2621,22 +2621,19 @@ var DrawerOverlay = React8.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2621
2621
|
}
|
|
2622
2622
|
));
|
|
2623
2623
|
DrawerOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2624
|
-
var DrawerVariants = cva(
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
left: "inset-y-0 h-full left-0 w-3/4 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left sm:max-w-sm",
|
|
2632
|
-
right: "inset-y-0 h-full right-0 w-3/4 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right sm:max-w-sm"
|
|
2633
|
-
}
|
|
2634
|
-
},
|
|
2635
|
-
defaultVariants: {
|
|
2636
|
-
side: "right"
|
|
2624
|
+
var DrawerVariants = cva("fixed flex flex-col z-50 shadow-lg", {
|
|
2625
|
+
variants: {
|
|
2626
|
+
side: {
|
|
2627
|
+
top: "inset-x-0 top-0 data-[state=open]:animate-slide-in-from-top data-[state=closed]:animate-slide-out-to-top",
|
|
2628
|
+
bottom: "inset-x-0 bottom-0 data-[state=open]:animate-slide-in-from-bottom data-[state=closed]:animate-slide-out-to-bottom",
|
|
2629
|
+
left: "inset-y-0 h-full left-0 w-3/4 data-[state=open]:animate-slide-in-from-left data-[state=closed]:animate-slide-out-to-left sm:max-w-sm",
|
|
2630
|
+
right: "inset-y-0 h-full right-0 w-3/4 data-[state=open]:animate-slide-in-from-right data-[state=closed]:animate-slide-out-to-right sm:max-w-sm"
|
|
2637
2631
|
}
|
|
2632
|
+
},
|
|
2633
|
+
defaultVariants: {
|
|
2634
|
+
side: "right"
|
|
2638
2635
|
}
|
|
2639
|
-
);
|
|
2636
|
+
});
|
|
2640
2637
|
var DrawerContent = React8.forwardRef(({ side = "right", className, portal = false, children, ...props }, ref) => {
|
|
2641
2638
|
const Comp = portal ? DrawerPortal : React8.Fragment;
|
|
2642
2639
|
return /* @__PURE__ */ jsxs(Comp, { children: [
|
|
@@ -2885,7 +2882,7 @@ var Tooltip = React8.forwardRef(
|
|
|
2885
2882
|
}, ref) => {
|
|
2886
2883
|
const Comp = portal ? TooltipPrimitive.Portal : React8.Fragment;
|
|
2887
2884
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { children: [
|
|
2888
|
-
/* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { children }),
|
|
2885
|
+
/* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { type: "button", children }),
|
|
2889
2886
|
/* @__PURE__ */ jsx(Comp, { children: /* @__PURE__ */ jsxs(
|
|
2890
2887
|
TooltipPrimitive.Content,
|
|
2891
2888
|
{
|
|
@@ -4715,9 +4712,25 @@ var useFileUpload = (options = {}) => {
|
|
|
4715
4712
|
},
|
|
4716
4713
|
[accept, multiple, handleFileChange]
|
|
4717
4714
|
);
|
|
4718
|
-
return
|
|
4719
|
-
|
|
4720
|
-
|
|
4715
|
+
return useMemo(
|
|
4716
|
+
() => [
|
|
4717
|
+
state,
|
|
4718
|
+
{
|
|
4719
|
+
addFiles,
|
|
4720
|
+
removeFile,
|
|
4721
|
+
clearFiles,
|
|
4722
|
+
clearErrors,
|
|
4723
|
+
handleDragEnter,
|
|
4724
|
+
handleDragLeave,
|
|
4725
|
+
handleDragOver,
|
|
4726
|
+
handleDrop,
|
|
4727
|
+
handleFileChange,
|
|
4728
|
+
openFileDialog,
|
|
4729
|
+
getInputProps
|
|
4730
|
+
}
|
|
4731
|
+
],
|
|
4732
|
+
[
|
|
4733
|
+
state,
|
|
4721
4734
|
addFiles,
|
|
4722
4735
|
removeFile,
|
|
4723
4736
|
clearFiles,
|
|
@@ -4729,8 +4742,8 @@ var useFileUpload = (options = {}) => {
|
|
|
4729
4742
|
handleFileChange,
|
|
4730
4743
|
openFileDialog,
|
|
4731
4744
|
getInputProps
|
|
4732
|
-
|
|
4733
|
-
|
|
4745
|
+
]
|
|
4746
|
+
);
|
|
4734
4747
|
};
|
|
4735
4748
|
var formatBytes = (bytes, decimals = 2) => {
|
|
4736
4749
|
if (bytes === 0) return "0 Bytes";
|
|
@@ -4785,7 +4798,7 @@ function FileUpload({
|
|
|
4785
4798
|
});
|
|
4786
4799
|
useEffect(() => {
|
|
4787
4800
|
onError?.(errors);
|
|
4788
|
-
}, [errors
|
|
4801
|
+
}, [errors]);
|
|
4789
4802
|
const disabled = useMemo(() => {
|
|
4790
4803
|
if (rest.disabled) return true;
|
|
4791
4804
|
if (rest.multiple) {
|
|
@@ -6069,7 +6082,7 @@ var ProfileImage = ({
|
|
|
6069
6082
|
const [isDialogOpen, setIsDialogOpen] = useState(false);
|
|
6070
6083
|
useEffect(() => {
|
|
6071
6084
|
onError?.(errors);
|
|
6072
|
-
}, [errors
|
|
6085
|
+
}, [errors]);
|
|
6073
6086
|
const [file] = files;
|
|
6074
6087
|
const fileId = file?.id;
|
|
6075
6088
|
const previousFileIdRef = useRef(null);
|
package/package.json
CHANGED
|
Binary file
|