@modul/mbui 0.0.10-beta-pv-52970-19d10001 → 0.0.10-beta-pv-52970-8c953d22

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.
@@ -24,16 +24,14 @@ exports.DrawerTitle = DrawerTitle;
24
24
  DrawerTitle.displayName = vaul_1.Drawer.Title.displayName;
25
25
  const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => {
26
26
  const direction = (0, react_1.useContext)(DrawerContext);
27
- console.log("direction", direction);
28
27
  return (React.createElement(DrawerPortal, null,
29
- React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`${direction ?? 'bottom'}-0 z-50 fixed inset-x-0 flex bg-page drop-shadow-1 sm:container flex-col *:shrink-0 rounded-t-1`, className), ...props },
28
+ React.createElement(vaul_1.Drawer.Content, { ref: ref, className: (0, utils_1.cn)(`z-50 fixed inset-x-0 flex flex-col bg-page drop-shadow-1 rounded-t-1 max-h-[94%] sm:container`, direction === 'top' ? 'top-0' : 'bottom-0', className), ...props },
30
29
  direction !== 'top' && (React.createElement(DrawerClose, { className: "pt-[4px] pb-[16px]" },
31
30
  React.createElement("span", { className: "block bg-[#cbcdd1] mx-auto rounded-full w-[36px] h-[5px]" }))),
32
31
  children,
33
- direction === 'top' &&
34
- React.createElement(DrawerClose, { className: "pt-[24px] pb-[16px]" },
35
- React.createElement("svg", { className: "mx-auto", width: "38", height: "10", viewBox: "0 0 38 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
36
- React.createElement("path", { d: "M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z", fill: "#cbcdd1" }))))));
32
+ direction === 'top' && (React.createElement(DrawerClose, { className: "pt-[24px] pb-[16px]" },
33
+ React.createElement("svg", { className: "mx-auto", width: "38", height: "10", viewBox: "0 0 38 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
34
+ React.createElement("path", { d: "M0 7.39774C0 8.68678 1.25226 9.60455 2.48147 9.21638L17.7955 4.38038C18.5794 4.13282 19.4206 4.13282 20.2045 4.38038L35.5185 9.21638C36.7477 9.60455 38 8.68678 38 7.39774C38 6.56568 37.4606 5.82966 36.6671 5.5791L20.2045 0.380377C19.4206 0.132817 18.5794 0.132817 17.7955 0.380377L1.33286 5.5791C0.539422 5.82966 0 6.56568 0 7.39774Z", fill: "#cbcdd1" })))))));
37
35
  });
38
36
  exports.DrawerContent = DrawerContent;
39
37
  DrawerContent.displayName = 'DrawerContent';
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","sourceRoot":"","sources":["../../src/Drawer/Drawer.tsx"],"names":[],"mappings":";;;;AAAA,0DAA8B;AAC9B,+BAAgD;AAChD,0CAAmC;AACnC,iCAAkC;AAElC,MAAM,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAA;AAEnD,MAAM,MAAM,GAAG,CAAC,EAAE,GAAG,KAAK,EAAqD,EAAE,EAAE;IAClF,OAAO,CACN,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,SAAS;QAC7C,oBAAC,aAAe,CAAC,IAAI,OAAK,KAAK,GAAI,CACX,CACzB,CAAA;AACF,CAAC,CAAA;AA2EQ,wBAAM;AAzEf,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAA;AAE7B,MAAM,aAAa,GAAG,aAAe,CAAC,OAAO,CAAA;AAuE5B,sCAAa;AArE9B,MAAM,YAAY,GAAG,aAAe,CAAC,MAAM,CAAA;AAE3C,MAAM,WAAW,GAAG,aAAe,CAAC,KAAK,CAAA;AAmEmB,kCAAW;AAjEvE,MAAM,aAA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CAGpC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC5C,MAAM,SAAS,GAAG,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAA;IAE3C,OAAO,CACN,oBAAC,YAAY;QACZ,oBAAC,aAAe,CAAC,OAAO,IACvB,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,UAAE,EACZ,+FAA+F,EAC/F,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,EAC1C,SAAS,CACT,KACG,KAAK;YAER,SAAS,KAAK,KAAK,IAAI,CACvB,oBAAC,WAAW,IAAC,SAAS,EAAC,oBAAoB;gBAC1C,8BAAM,SAAS,EAAC,0DAA0D,GAAG,CAChE,CACd;YAEA,QAAQ;YAER,SAAS,KAAK,KAAK,IAAI,CACvB,oBAAC,WAAW,IAAC,SAAS,EAAC,qBAAqB;gBAC3C,6BACC,SAAS,EAAC,SAAS,EACnB,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;oBAElC,8BACC,CAAC,EAAC,+UAA+U,EACjV,IAAI,EAAC,SAAS,GACb,CACG,CACO,CACd,CACwB,CACZ,CACf,CAAA;AACF,CAAC,CAAC,CAAA;AAG8B,sCAAa;AAF7C,aAAa,CAAC,WAAW,GAAG,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modul/mbui",
3
- "version": "0.0.10-beta-pv-52970-19d10001",
3
+ "version": "0.0.10-beta-pv-52970-8c953d22",
4
4
  "packageManager": "yarn@3.5.1",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,16 +41,14 @@ const DrawerContent = React.forwardRef<
41
41
  React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>
42
42
  >(({ className, children, ...props }, ref) => {
43
43
  const direction = useContext(DrawerContext)
44
- console.log("direction", direction)
45
44
 
46
45
  return (
47
46
  <DrawerPortal>
48
47
  <DrawerPrimitive.Content
49
48
  ref={ref}
50
49
  className={cn(
51
- `${
52
- direction ?? 'bottom'
53
- }-0 z-50 fixed inset-x-0 flex bg-page drop-shadow-1 sm:container flex-col *:shrink-0 rounded-t-1`,
50
+ `z-50 fixed inset-x-0 flex flex-col bg-page drop-shadow-1 rounded-t-1 max-h-[94%] sm:container`,
51
+ direction === 'top' ? 'top-0' : 'bottom-0',
54
52
  className
55
53
  )}
56
54
  {...props}
@@ -63,7 +61,7 @@ const DrawerContent = React.forwardRef<
63
61
 
64
62
  {children}
65
63
 
66
- {direction === 'top' &&
64
+ {direction === 'top' && (
67
65
  <DrawerClose className="pt-[24px] pb-[16px]">
68
66
  <svg
69
67
  className="mx-auto"
@@ -79,7 +77,7 @@ const DrawerContent = React.forwardRef<
79
77
  />
80
78
  </svg>
81
79
  </DrawerClose>
82
- }
80
+ )}
83
81
  </DrawerPrimitive.Content>
84
82
  </DrawerPortal>
85
83
  )