@akanjs/ui 0.9.32 → 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.
@@ -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
  }
@@ -166,7 +166,7 @@ function EditModal({
166
166
  const Title = () => {
167
167
  const modelFormLoading2 = storeUse[names.modelFormLoading]();
168
168
  const modelForm = storeUse[names.modelForm]();
169
- return modelFormLoading2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}) : renderTitle ? typeof renderTitle === "string" ? `${l(`${modelName}.modelName`)}${renderTitle === "default" ? "" : ` - ${modelForm[renderTitle]}`}` : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: renderTitle(modelForm) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
169
+ return modelFormLoading2 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}) : renderTitle ? typeof renderTitle === "string" ? `${l(`${modelName}.modelName`)}${renderTitle === "default" ? "" : ` - ${modelForm[renderTitle] ?? l("base.new")}`}` : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: renderTitle(modelForm) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {});
170
170
  };
171
171
  const Submit = (0, import_react.useMemo)(
172
172
  () => renderSubmit === false ? () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {}) : typeof renderSubmit === "function" ? () => renderSubmit(storeUse[names.modelForm]()) : () => {
@@ -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
  }
@@ -144,7 +144,7 @@ function EditModal({
144
144
  const Title = () => {
145
145
  const modelFormLoading2 = storeUse[names.modelFormLoading]();
146
146
  const modelForm = storeUse[names.modelForm]();
147
- return modelFormLoading2 ? /* @__PURE__ */ jsx(Fragment, {}) : renderTitle ? typeof renderTitle === "string" ? `${l(`${modelName}.modelName`)}${renderTitle === "default" ? "" : ` - ${modelForm[renderTitle]}`}` : /* @__PURE__ */ jsx(Fragment, { children: renderTitle(modelForm) }) : /* @__PURE__ */ jsx(Fragment, {});
147
+ return modelFormLoading2 ? /* @__PURE__ */ jsx(Fragment, {}) : renderTitle ? typeof renderTitle === "string" ? `${l(`${modelName}.modelName`)}${renderTitle === "default" ? "" : ` - ${modelForm[renderTitle] ?? l("base.new")}`}` : /* @__PURE__ */ jsx(Fragment, { children: renderTitle(modelForm) }) : /* @__PURE__ */ jsx(Fragment, {});
148
148
  };
149
149
  const Submit = useMemo(
150
150
  () => renderSubmit === false ? () => /* @__PURE__ */ jsx(Fragment, {}) : typeof renderSubmit === "function" ? () => renderSubmit(storeUse[names.modelForm]()) : () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/ui",
3
- "version": "0.9.32",
3
+ "version": "0.9.34",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"