@snapcall/design-system 1.18.2 → 1.18.3
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.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +40 -38
- package/dist/index.mjs +40 -38
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -201,9 +201,8 @@ declare const Dialog: react.FC<SheetPrimitive.DialogProps>;
|
|
|
201
201
|
declare const DialogTrigger: react.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
202
202
|
declare const DialogContent: react.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
203
203
|
bottomSheet?: boolean | undefined;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}>>;
|
|
204
|
+
showClose?: boolean | undefined;
|
|
205
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
207
206
|
declare const DialogHeader: {
|
|
208
207
|
({ className, ...props }: react.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
209
208
|
displayName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -201,9 +201,8 @@ declare const Dialog: react.FC<SheetPrimitive.DialogProps>;
|
|
|
201
201
|
declare const DialogTrigger: react.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
202
202
|
declare const DialogContent: react.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
203
203
|
bottomSheet?: boolean | undefined;
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}>>;
|
|
204
|
+
showClose?: boolean | undefined;
|
|
205
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
207
206
|
declare const DialogHeader: {
|
|
208
207
|
({ className, ...props }: react.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
209
208
|
displayName: string;
|
package/dist/index.js
CHANGED
|
@@ -53723,46 +53723,48 @@ var DialogOverlay = React9.forwardRef((_a, ref) => {
|
|
|
53723
53723
|
);
|
|
53724
53724
|
});
|
|
53725
53725
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
53726
|
-
var DialogContent = React9.forwardRef(
|
|
53727
|
-
|
|
53728
|
-
|
|
53729
|
-
/* @__PURE__ */ (0, import_jsx_runtime1234.
|
|
53730
|
-
|
|
53731
|
-
|
|
53732
|
-
|
|
53733
|
-
|
|
53734
|
-
|
|
53735
|
-
|
|
53736
|
-
|
|
53737
|
-
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] data-[state=open]:slide-in-from-left-[50%] data-[state=closed]:slide-out-to-left-[50%] rounded-t-3xl": bottomSheet
|
|
53738
|
-
},
|
|
53739
|
-
{
|
|
53740
|
-
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]": !bottomSheet
|
|
53741
|
-
},
|
|
53742
|
-
className
|
|
53743
|
-
)
|
|
53744
|
-
}, props), {
|
|
53745
|
-
children: [
|
|
53746
|
-
children,
|
|
53747
|
-
/* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
|
|
53748
|
-
DialogPrimitive.Close,
|
|
53726
|
+
var DialogContent = React9.forwardRef(
|
|
53727
|
+
(_a, ref) => {
|
|
53728
|
+
var _b = _a, { className, children, bottomSheet = false, showClose = true } = _b, props = __objRest(_b, ["className", "children", "bottomSheet", "showClose"]);
|
|
53729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(DialogPrimitive.Portal, { children: [
|
|
53730
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(DialogOverlay, {}),
|
|
53731
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
|
|
53732
|
+
DialogPrimitive.Content,
|
|
53733
|
+
__spreadProps(__spreadValues({
|
|
53734
|
+
ref,
|
|
53735
|
+
className: cn(
|
|
53736
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg md:w-full",
|
|
53749
53737
|
{
|
|
53750
|
-
|
|
53751
|
-
|
|
53752
|
-
|
|
53753
|
-
|
|
53754
|
-
|
|
53755
|
-
|
|
53756
|
-
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(XCloseIcon, { className: "w-3 h-3" }),
|
|
53757
|
-
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)("span", { className: "sr-only", children: "Close" })
|
|
53758
|
-
]
|
|
53759
|
-
}
|
|
53738
|
+
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] data-[state=open]:slide-in-from-left-[50%] data-[state=closed]:slide-out-to-left-[50%] rounded-t-3xl": bottomSheet
|
|
53739
|
+
},
|
|
53740
|
+
{
|
|
53741
|
+
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]": !bottomSheet
|
|
53742
|
+
},
|
|
53743
|
+
className
|
|
53760
53744
|
)
|
|
53761
|
-
|
|
53762
|
-
|
|
53763
|
-
|
|
53764
|
-
|
|
53765
|
-
|
|
53745
|
+
}, props), {
|
|
53746
|
+
children: [
|
|
53747
|
+
children,
|
|
53748
|
+
showClose && /* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
|
|
53749
|
+
DialogPrimitive.Close,
|
|
53750
|
+
{
|
|
53751
|
+
className: cn(
|
|
53752
|
+
buttonVariants({ variant: "secondary" }),
|
|
53753
|
+
iconButtonSizes({ size: "xs" }),
|
|
53754
|
+
"absolute right-6 top-6"
|
|
53755
|
+
),
|
|
53756
|
+
children: [
|
|
53757
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(XCloseIcon, { className: "w-3 h-3" }),
|
|
53758
|
+
/* @__PURE__ */ (0, import_jsx_runtime1234.jsx)("span", { className: "sr-only", children: "Close" })
|
|
53759
|
+
]
|
|
53760
|
+
}
|
|
53761
|
+
)
|
|
53762
|
+
]
|
|
53763
|
+
})
|
|
53764
|
+
)
|
|
53765
|
+
] });
|
|
53766
|
+
}
|
|
53767
|
+
);
|
|
53766
53768
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
53767
53769
|
var DialogHeader = (_a) => {
|
|
53768
53770
|
var _b = _a, {
|
package/dist/index.mjs
CHANGED
|
@@ -52347,46 +52347,48 @@ var DialogOverlay = React9.forwardRef((_a, ref) => {
|
|
|
52347
52347
|
);
|
|
52348
52348
|
});
|
|
52349
52349
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
52350
|
-
var DialogContent = React9.forwardRef(
|
|
52351
|
-
|
|
52352
|
-
|
|
52353
|
-
/* @__PURE__ */
|
|
52354
|
-
|
|
52355
|
-
|
|
52356
|
-
|
|
52357
|
-
|
|
52358
|
-
|
|
52359
|
-
|
|
52360
|
-
|
|
52361
|
-
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] data-[state=open]:slide-in-from-left-[50%] data-[state=closed]:slide-out-to-left-[50%] rounded-t-3xl": bottomSheet
|
|
52362
|
-
},
|
|
52363
|
-
{
|
|
52364
|
-
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]": !bottomSheet
|
|
52365
|
-
},
|
|
52366
|
-
className
|
|
52367
|
-
)
|
|
52368
|
-
}, props), {
|
|
52369
|
-
children: [
|
|
52370
|
-
children,
|
|
52371
|
-
/* @__PURE__ */ jsxs1013(
|
|
52372
|
-
DialogPrimitive.Close,
|
|
52350
|
+
var DialogContent = React9.forwardRef(
|
|
52351
|
+
(_a, ref) => {
|
|
52352
|
+
var _b = _a, { className, children, bottomSheet = false, showClose = true } = _b, props = __objRest(_b, ["className", "children", "bottomSheet", "showClose"]);
|
|
52353
|
+
return /* @__PURE__ */ jsxs1013(DialogPrimitive.Portal, { children: [
|
|
52354
|
+
/* @__PURE__ */ jsx1234(DialogOverlay, {}),
|
|
52355
|
+
/* @__PURE__ */ jsxs1013(
|
|
52356
|
+
DialogPrimitive.Content,
|
|
52357
|
+
__spreadProps(__spreadValues({
|
|
52358
|
+
ref,
|
|
52359
|
+
className: cn(
|
|
52360
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-[400px] translate-x-[-50%] translate-y-[-50%] gap-6 border bg-white p-6 shadow-lg md:w-full",
|
|
52373
52361
|
{
|
|
52374
|
-
|
|
52375
|
-
|
|
52376
|
-
|
|
52377
|
-
|
|
52378
|
-
|
|
52379
|
-
|
|
52380
|
-
/* @__PURE__ */ jsx1234(XCloseIcon, { className: "w-3 h-3" }),
|
|
52381
|
-
/* @__PURE__ */ jsx1234("span", { className: "sr-only", children: "Close" })
|
|
52382
|
-
]
|
|
52383
|
-
}
|
|
52362
|
+
"top-auto bottom-0 translate-y-0 ease-[cubic-bezier(0.075,0.82,0.165,1)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:slide-in-from-bottom-[100%] data-[state=closed]:slide-out-to-bottom-[100%] data-[state=open]:slide-in-from-left-[50%] data-[state=closed]:slide-out-to-left-[50%] rounded-t-3xl": bottomSheet
|
|
52363
|
+
},
|
|
52364
|
+
{
|
|
52365
|
+
"duration-200 rounded-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]": !bottomSheet
|
|
52366
|
+
},
|
|
52367
|
+
className
|
|
52384
52368
|
)
|
|
52385
|
-
|
|
52386
|
-
|
|
52387
|
-
|
|
52388
|
-
|
|
52389
|
-
|
|
52369
|
+
}, props), {
|
|
52370
|
+
children: [
|
|
52371
|
+
children,
|
|
52372
|
+
showClose && /* @__PURE__ */ jsxs1013(
|
|
52373
|
+
DialogPrimitive.Close,
|
|
52374
|
+
{
|
|
52375
|
+
className: cn(
|
|
52376
|
+
buttonVariants({ variant: "secondary" }),
|
|
52377
|
+
iconButtonSizes({ size: "xs" }),
|
|
52378
|
+
"absolute right-6 top-6"
|
|
52379
|
+
),
|
|
52380
|
+
children: [
|
|
52381
|
+
/* @__PURE__ */ jsx1234(XCloseIcon, { className: "w-3 h-3" }),
|
|
52382
|
+
/* @__PURE__ */ jsx1234("span", { className: "sr-only", children: "Close" })
|
|
52383
|
+
]
|
|
52384
|
+
}
|
|
52385
|
+
)
|
|
52386
|
+
]
|
|
52387
|
+
})
|
|
52388
|
+
)
|
|
52389
|
+
] });
|
|
52390
|
+
}
|
|
52391
|
+
);
|
|
52390
52392
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
52391
52393
|
var DialogHeader = (_a) => {
|
|
52392
52394
|
var _b = _a, {
|