@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 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
- } & react.RefAttributes<HTMLDivElement & {
205
- bottomSheet?: boolean | undefined;
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
- } & react.RefAttributes<HTMLDivElement & {
205
- bottomSheet?: boolean | undefined;
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((_a, ref) => {
53727
- var _b = _a, { className, children, bottomSheet = false } = _b, props = __objRest(_b, ["className", "children", "bottomSheet"]);
53728
- return /* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(DialogPrimitive.Portal, { children: [
53729
- /* @__PURE__ */ (0, import_jsx_runtime1234.jsx)(DialogOverlay, {}),
53730
- /* @__PURE__ */ (0, import_jsx_runtime1234.jsxs)(
53731
- DialogPrimitive.Content,
53732
- __spreadProps(__spreadValues({
53733
- ref,
53734
- className: cn(
53735
- "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",
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
- className: cn(
53751
- buttonVariants({ variant: "secondary" }),
53752
- iconButtonSizes({ size: "xs" }),
53753
- "absolute right-6 top-6"
53754
- ),
53755
- children: [
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((_a, ref) => {
52351
- var _b = _a, { className, children, bottomSheet = false } = _b, props = __objRest(_b, ["className", "children", "bottomSheet"]);
52352
- return /* @__PURE__ */ jsxs1013(DialogPrimitive.Portal, { children: [
52353
- /* @__PURE__ */ jsx1234(DialogOverlay, {}),
52354
- /* @__PURE__ */ jsxs1013(
52355
- DialogPrimitive.Content,
52356
- __spreadProps(__spreadValues({
52357
- ref,
52358
- className: cn(
52359
- "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",
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
- className: cn(
52375
- buttonVariants({ variant: "secondary" }),
52376
- iconButtonSizes({ size: "xs" }),
52377
- "absolute right-6 top-6"
52378
- ),
52379
- children: [
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snapcall/design-system",
3
- "version": "1.18.2",
3
+ "version": "1.18.3",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",