formifex 0.3.2 → 0.3.4

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("@keyframes flicker{0%{opacity:.1}50%{opacity:.85}to{opacity:.1}}.flicker{animation:flicker 2s infinite}.form-flex-wrapper{display:flex;gap:8px;flex-wrap:wrap}.form-flex-wrapper>*{flex:1;min-width:250px}.form-grid-wrapper{display:grid;grid-template-columns:repeat(auto-fit,minmax(0px,1fr));row-gap:8px;column-gap:8px}.ant-input-number{width:100%}.ant-radio-wrapper .ant-radio,.ant-checkbox{align-self:start;margin-top:3px}.form-components-collapsible.ant-collapse .ant-collapse-item .ant-collapse-header{padding:12px 0}.form-components-collapsible.ant-collapse .ant-collapse-item .ant-collapse-content .ant-collapse-content-box{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-flow:row;padding:10px 0;align-self:stretch;align-items:flex-start;gap:10px}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("@keyframes flicker{0%{opacity:.1}50%{opacity:.85}to{opacity:.1}}.flicker{animation:flicker 2s infinite}.ant-form-item-tooltip{pointer-events:auto}.form-flex-wrapper{display:flex;gap:8px;flex-wrap:wrap}.form-flex-wrapper>*{flex:1;min-width:250px}.form-grid-wrapper{display:grid;grid-template-columns:repeat(auto-fit,minmax(0px,1fr));row-gap:8px;column-gap:8px}.ant-input-number{width:100%}.ant-radio-wrapper .ant-radio,.ant-checkbox{align-self:start;margin-top:3px}.form-components-collapsible.ant-collapse .ant-collapse-item .ant-collapse-header{padding:12px 0}.form-components-collapsible.ant-collapse .ant-collapse-item .ant-collapse-content .ant-collapse-content-box{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-flow:row;padding:10px 0;align-self:stretch;align-items:flex-start;gap:10px}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
2
  import * as a from "react";
3
3
  import fe, { useRef as xe, cloneElement as Il, forwardRef as kr, useState as Pe, useImperativeHandle as br, useEffect as $e, isValidElement as HT, version as $T, createContext as n2, useContext as f4, useMemo as i1, useLayoutEffect as Ll, useCallback as s1, memo as _T, useReducer as IT } from "react";
4
4
  import { Input as y4, Form as M1, Checkbox as LT, Switch as DT, InputNumber as BT, DatePicker as AT, Select as yr, ColorPicker as PT, Radio as kT, Rate as jT, TimePicker as qT, Slider as WT, Image as to, Upload as S4, message as d4, Spin as UT, Button as C3, Divider as X3, Tooltip as no, Typography as GT, Collapse as YT, Modal as XT, Row as KT, Col as g6 } from "antd";
@@ -17052,9 +17052,7 @@ const Zb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17052
17052
  loading: F,
17053
17053
  searchPropList: x,
17054
17054
  ...I
17055
- } = n;
17056
- console.log(I);
17057
- const $ = h == null ? void 0 : h.map((M) => {
17055
+ } = n, $ = h == null ? void 0 : h.map((M) => {
17058
17056
  let H = M.split(".");
17059
17057
  return M1.useWatch(H, n.form);
17060
17058
  }).filter(Boolean), P = m == null ? void 0 : m.reduce((M, H) => {
@@ -17170,13 +17168,12 @@ const Zb = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17170
17168
  ...(b || C) && { suffixIcon: /* @__PURE__ */ A.jsx(A.Fragment, {}) },
17171
17169
  filterOption: (M, H) => {
17172
17170
  var j;
17173
- return console.log(H, M), x && x.length > 0 ? x.some((Q) => {
17171
+ return x && x.length > 0 ? x.some((Q) => {
17174
17172
  var Z;
17175
17173
  return H != null && H[Q] ? (Z = H == null ? void 0 : H[Q]) == null ? void 0 : Z.toLowerCase().includes(M.toLowerCase()) : !1;
17176
17174
  }) : (j = H == null ? void 0 : H[z || "label"]) == null ? void 0 : j.toLowerCase().includes(M.toLowerCase());
17177
17175
  },
17178
17176
  onChange: (M) => {
17179
- console.log(M);
17180
17177
  let H = c || [];
17181
17178
  H = [...H], H.push(M), u == null || u.setFieldValue(g, H);
17182
17179
  },
@@ -21604,7 +21601,10 @@ const B6 = /* @__PURE__ */ Dl(J2), Rce = (n, e) => {
21604
21601
  {
21605
21602
  colon: typeof n.colon == "boolean" ? n.colon : !0,
21606
21603
  className: n.wrapperClassName,
21607
- style: n.wrapperStyle,
21604
+ style: {
21605
+ ...n.wrapperStyle,
21606
+ ...n.readOnly ? { pointerEvents: "none" } : {}
21607
+ },
21608
21608
  label: typeof n.label == "function" ? n.label(T) : n.label,
21609
21609
  name: N,
21610
21610
  tooltip: n.tooltip,