@akanjs/ui 0.9.33 → 0.9.34
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/cjs/Dialog/Modal.js +3 -3
- package/esm/Dialog/Modal.js +3 -3
- package/package.json +1 -1
package/cjs/Dialog/Modal.js
CHANGED
|
@@ -138,14 +138,14 @@ const Modal = ({ className, bodyClassName, confirmClose, children, onCancel }) =
|
|
|
138
138
|
import_react_spring.a.div,
|
|
139
139
|
{
|
|
140
140
|
...bind(),
|
|
141
|
-
className: "animate-fadeIn relative z-10 flex w-full cursor-pointer flex-col items-center justify-center px-4 pt-1",
|
|
141
|
+
className: "animate-fadeIn relative z-10 flex w-full cursor-pointer touch-pan-y flex-col items-center justify-center px-4 pt-1",
|
|
142
142
|
children: [
|
|
143
143
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full cursor-pointer items-center justify-center pt-1 opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-1 w-24 rounded-full bg-gray-500" }) }),
|
|
144
144
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex w-full items-center justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full text-start text-lg font-bold", children: title }) })
|
|
145
145
|
]
|
|
146
146
|
}
|
|
147
147
|
) }),
|
|
148
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog.Description, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
149
149
|
"div",
|
|
150
150
|
{
|
|
151
151
|
className: (0, import_client.clsx)(
|
|
@@ -154,7 +154,7 @@ const Modal = ({ className, bodyClassName, confirmClose, children, onCancel }) =
|
|
|
154
154
|
),
|
|
155
155
|
children
|
|
156
156
|
}
|
|
157
|
-
),
|
|
157
|
+
) }),
|
|
158
158
|
action ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full", children: action }) : null
|
|
159
159
|
]
|
|
160
160
|
}
|
package/esm/Dialog/Modal.js
CHANGED
|
@@ -106,14 +106,14 @@ const Modal = ({ className, bodyClassName, confirmClose, children, onCancel }) =
|
|
|
106
106
|
a.div,
|
|
107
107
|
{
|
|
108
108
|
...bind(),
|
|
109
|
-
className: "animate-fadeIn relative z-10 flex w-full cursor-pointer flex-col items-center justify-center px-4 pt-1",
|
|
109
|
+
className: "animate-fadeIn relative z-10 flex w-full cursor-pointer touch-pan-y flex-col items-center justify-center px-4 pt-1",
|
|
110
110
|
children: [
|
|
111
111
|
/* @__PURE__ */ jsx("div", { className: "flex w-full cursor-pointer items-center justify-center pt-1 opacity-50", children: /* @__PURE__ */ jsx("div", { className: "h-1 w-24 rounded-full bg-gray-500" }) }),
|
|
112
112
|
/* @__PURE__ */ jsx("div", { className: "flex w-full items-center justify-start", children: /* @__PURE__ */ jsx("div", { className: "w-full text-start text-lg font-bold", children: title }) })
|
|
113
113
|
]
|
|
114
114
|
}
|
|
115
115
|
) }),
|
|
116
|
-
/* @__PURE__ */ jsx(
|
|
116
|
+
/* @__PURE__ */ jsx(Dialog.Description, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
117
117
|
"div",
|
|
118
118
|
{
|
|
119
119
|
className: clsx(
|
|
@@ -122,7 +122,7 @@ const Modal = ({ className, bodyClassName, confirmClose, children, onCancel }) =
|
|
|
122
122
|
),
|
|
123
123
|
children
|
|
124
124
|
}
|
|
125
|
-
),
|
|
125
|
+
) }),
|
|
126
126
|
action ? /* @__PURE__ */ jsx("div", { className: "w-full", children: action }) : null
|
|
127
127
|
]
|
|
128
128
|
}
|