@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.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11315,6 +11315,7 @@ var DrawerContent = React43.forwardRef(
|
|
|
11315
11315
|
showHandle = true,
|
|
11316
11316
|
closeOnOverlayClick = true,
|
|
11317
11317
|
lockScroll = true,
|
|
11318
|
+
disableDrag = false,
|
|
11318
11319
|
...props
|
|
11319
11320
|
}, ref) => {
|
|
11320
11321
|
const finalContainer = container || getCustomContainer() || void 0;
|
|
@@ -11379,6 +11380,7 @@ var DrawerContent = React43.forwardRef(
|
|
|
11379
11380
|
bounds: { top: 0 },
|
|
11380
11381
|
handle: "[data-drawer-handle]",
|
|
11381
11382
|
nodeRef,
|
|
11383
|
+
disabled: disableDrag,
|
|
11382
11384
|
onDrag: handleDrag,
|
|
11383
11385
|
onStop: handleStop,
|
|
11384
11386
|
position: { x: 0, y: dragOffsetY },
|
|
@@ -11395,7 +11397,10 @@ var DrawerContent = React43.forwardRef(
|
|
|
11395
11397
|
"div",
|
|
11396
11398
|
{
|
|
11397
11399
|
"data-drawer-handle": true,
|
|
11398
|
-
className:
|
|
11400
|
+
className: cn(
|
|
11401
|
+
"mx-auto flex h-8 w-24 touch-none items-center justify-center",
|
|
11402
|
+
disableDrag ? "cursor-default" : "cursor-grab active:cursor-grabbing"
|
|
11403
|
+
),
|
|
11399
11404
|
children: /* @__PURE__ */ (0, import_jsx_runtime142.jsx)("span", { className: "block h-1.5 w-12 rounded-full bg-[#D9D7D3]" })
|
|
11400
11405
|
}
|
|
11401
11406
|
),
|
|
@@ -12523,7 +12528,8 @@ function ResponsiveSheet({
|
|
|
12523
12528
|
showCloseButton = true,
|
|
12524
12529
|
showDrawerHandle = true,
|
|
12525
12530
|
closeOnOverlayClick = true,
|
|
12526
|
-
closeOnEscape = true
|
|
12531
|
+
closeOnEscape = true,
|
|
12532
|
+
disableDrag = false
|
|
12527
12533
|
}) {
|
|
12528
12534
|
const { isMatch: isMobile2 } = useScreenResize(DEVICE.tablet);
|
|
12529
12535
|
const isMobileMode = isMobile2 && isMobileModalModeAvailable();
|
|
@@ -12583,6 +12589,7 @@ function ResponsiveSheet({
|
|
|
12583
12589
|
onClose,
|
|
12584
12590
|
showHandle: showDrawerHandle,
|
|
12585
12591
|
closeOnOverlayClick,
|
|
12592
|
+
disableDrag,
|
|
12586
12593
|
lockScroll: false,
|
|
12587
12594
|
onEscapeKeyDown: handleEscapeKeyDown,
|
|
12588
12595
|
className: cn(className, drawerClassName),
|