@chekinapp/ui 0.0.88 → 0.0.89

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
@@ -2709,6 +2709,7 @@ declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimit
2709
2709
  showHandle?: boolean;
2710
2710
  closeOnOverlayClick?: boolean;
2711
2711
  lockScroll?: boolean;
2712
+ disableDrag?: boolean;
2712
2713
  } & React$1.RefAttributes<HTMLDivElement>>;
2713
2714
  declare const DrawerHeader: {
2714
2715
  ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
@@ -2744,8 +2745,9 @@ type ResponsiveSheetProps = {
2744
2745
  showDrawerHandle?: boolean;
2745
2746
  closeOnOverlayClick?: boolean;
2746
2747
  closeOnEscape?: boolean;
2748
+ disableDrag?: boolean;
2747
2749
  };
2748
- declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
2750
+ declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, disableDrag, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
2749
2751
 
2750
2752
  type DropdownSide = 'top' | 'right' | 'bottom' | 'left';
2751
2753
  type DropdownAlign = 'start' | 'center' | 'end';
package/dist/index.d.ts CHANGED
@@ -2709,6 +2709,7 @@ declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimit
2709
2709
  showHandle?: boolean;
2710
2710
  closeOnOverlayClick?: boolean;
2711
2711
  lockScroll?: boolean;
2712
+ disableDrag?: boolean;
2712
2713
  } & React$1.RefAttributes<HTMLDivElement>>;
2713
2714
  declare const DrawerHeader: {
2714
2715
  ({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
@@ -2744,8 +2745,9 @@ type ResponsiveSheetProps = {
2744
2745
  showDrawerHandle?: boolean;
2745
2746
  closeOnOverlayClick?: boolean;
2746
2747
  closeOnEscape?: boolean;
2748
+ disableDrag?: boolean;
2747
2749
  };
2748
- declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
2750
+ declare function ResponsiveSheet({ open, onClose, title, description, children, className, contentClassName, dialogClassName, drawerClassName, titleClassName, descriptionClassName, showCloseButton, showDrawerHandle, closeOnOverlayClick, closeOnEscape, disableDrag, }: Readonly<ResponsiveSheetProps>): react_jsx_runtime.JSX.Element;
2749
2751
 
2750
2752
  type DropdownSide = 'top' | 'right' | 'bottom' | 'left';
2751
2753
  type DropdownAlign = 'start' | 'center' | 'end';
package/dist/index.js CHANGED
@@ -10951,6 +10951,7 @@ var DrawerContent = React43.forwardRef(
10951
10951
  showHandle = true,
10952
10952
  closeOnOverlayClick = true,
10953
10953
  lockScroll = true,
10954
+ disableDrag = false,
10954
10955
  ...props
10955
10956
  }, ref) => {
10956
10957
  const finalContainer = container || getCustomContainer() || void 0;
@@ -11015,6 +11016,7 @@ var DrawerContent = React43.forwardRef(
11015
11016
  bounds: { top: 0 },
11016
11017
  handle: "[data-drawer-handle]",
11017
11018
  nodeRef,
11019
+ disabled: disableDrag,
11018
11020
  onDrag: handleDrag,
11019
11021
  onStop: handleStop,
11020
11022
  position: { x: 0, y: dragOffsetY },
@@ -11031,7 +11033,10 @@ var DrawerContent = React43.forwardRef(
11031
11033
  "div",
11032
11034
  {
11033
11035
  "data-drawer-handle": true,
11034
- className: "mx-auto flex h-8 w-24 cursor-grab touch-none items-center justify-center active:cursor-grabbing",
11036
+ className: cn(
11037
+ "mx-auto flex h-8 w-24 touch-none items-center justify-center",
11038
+ disableDrag ? "cursor-default" : "cursor-grab active:cursor-grabbing"
11039
+ ),
11035
11040
  children: /* @__PURE__ */ jsx140("span", { className: "block h-1.5 w-12 rounded-full bg-[#D9D7D3]" })
11036
11041
  }
11037
11042
  ),
@@ -12159,7 +12164,8 @@ function ResponsiveSheet({
12159
12164
  showCloseButton = true,
12160
12165
  showDrawerHandle = true,
12161
12166
  closeOnOverlayClick = true,
12162
- closeOnEscape = true
12167
+ closeOnEscape = true,
12168
+ disableDrag = false
12163
12169
  }) {
12164
12170
  const { isMatch: isMobile2 } = useScreenResize(DEVICE.tablet);
12165
12171
  const isMobileMode = isMobile2 && isMobileModalModeAvailable();
@@ -12219,6 +12225,7 @@ function ResponsiveSheet({
12219
12225
  onClose,
12220
12226
  showHandle: showDrawerHandle,
12221
12227
  closeOnOverlayClick,
12228
+ disableDrag,
12222
12229
  lockScroll: false,
12223
12230
  onEscapeKeyDown: handleEscapeKeyDown,
12224
12231
  className: cn(className, drawerClassName),