ynotsoft-dynamic-form 1.0.4 → 1.0.6
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react");var p={exports:{}},m={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var $;function ee(){if($)return m;$=1;var u=Symbol.for("react.transitional.element"),E=Symbol.for("react.fragment");function c(i,o,s){var f=null;if(s!==void 0&&(f=""+s),o.key!==void 0&&(f=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:u,type:i,key:f,ref:o!==void 0?o:null,props:s}}return m.Fragment=E,m.jsx=c,m.jsxs=c,m}var _={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var I;function re(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case U:return"Profiler";case W:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case L:return"Portal";case J:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case T:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function E(e){return""+e}function c(e){try{E(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),E(e)}}function i(e){if(e===v)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===T)return"<...>";try{var r=u(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function f(e){if(w.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function t(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function D(){var e=u(this.type);return h[e]||(h[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,R,S){var a=t.ref;return e={$$typeof:g,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,r,t,n,R,S){var a=r.children;if(a!==void 0)if(n)if(Z(a)){for(n=0;n<a.length;n++)P(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else P(a);if(w.call(r,"key")){a=u(e);var l=Object.keys(r).filter(function(Q){return Q!=="key"});n=0<l.length?"{key: someKey, "+l.join(": ..., ")+": ...}":"{key: someKey}",Y[a+n]||(l=0<l.length?"{"+l.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,n,a,l,a),Y[a+n]=!0)}if(a=null,t!==void 0&&(c(t),a=""+t),f(r)&&(c(r.key),a=""+r.key),"key"in r){t={};for(var A in r)A!=="key"&&(t[A]=r[A])}else t=r;return a&&d(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,a,t,o(),R,S)}function P(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===T&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}var b=K,g=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),k=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,Z=Array.isArray,O=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(e){return e()}};var j,h={},N=b.react_stack_bottom_frame.bind(b,s)(),C=O(i(s)),Y={};_.Fragment=v,_.jsx=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return y(e,r,t,!1,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)},_.jsxs=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return y(e,r,t,!0,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)}})()),_}var F;function te(){return F||(F=1,process.env.NODE_ENV==="production"?p.exports=ee():p.exports=re()),p.exports}var ne=te();function ae({children:u}){return ne.jsx("button",{style:{backgroundColor:"red",color:"white",border:"none",padding:"10px 20px",borderRadius:"4px",cursor:"pointer"},children:u})}exports.Buttons=ae;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import K from "react";
|
|
2
|
-
var
|
|
2
|
+
var p = { exports: {} }, m = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -11,27 +11,27 @@ var v = { exports: {} }, _ = {};
|
|
|
11
11
|
*/
|
|
12
12
|
var $;
|
|
13
13
|
function ee() {
|
|
14
|
-
if ($) return
|
|
14
|
+
if ($) return m;
|
|
15
15
|
$ = 1;
|
|
16
|
-
var u = Symbol.for("react.transitional.element"),
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
if (s !== void 0 && (
|
|
16
|
+
var u = Symbol.for("react.transitional.element"), E = Symbol.for("react.fragment");
|
|
17
|
+
function c(i, o, s) {
|
|
18
|
+
var f = null;
|
|
19
|
+
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
20
20
|
s = {};
|
|
21
21
|
for (var d in o)
|
|
22
22
|
d !== "key" && (s[d] = o[d]);
|
|
23
23
|
} else s = o;
|
|
24
24
|
return o = s.ref, {
|
|
25
25
|
$$typeof: u,
|
|
26
|
-
type:
|
|
27
|
-
key:
|
|
26
|
+
type: i,
|
|
27
|
+
key: f,
|
|
28
28
|
ref: o !== void 0 ? o : null,
|
|
29
29
|
props: s
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var _ = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -50,7 +50,7 @@ function re() {
|
|
|
50
50
|
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
51
51
|
if (typeof e == "string") return e;
|
|
52
52
|
switch (e) {
|
|
53
|
-
case
|
|
53
|
+
case v:
|
|
54
54
|
return "Fragment";
|
|
55
55
|
case U:
|
|
56
56
|
return "Profiler";
|
|
@@ -87,12 +87,12 @@ function re() {
|
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function E(e) {
|
|
91
91
|
return "" + e;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function c(e) {
|
|
94
94
|
try {
|
|
95
|
-
|
|
95
|
+
E(e);
|
|
96
96
|
var r = !1;
|
|
97
97
|
} catch {
|
|
98
98
|
r = !0;
|
|
@@ -104,11 +104,11 @@ function re() {
|
|
|
104
104
|
r,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
106
|
n
|
|
107
|
-
),
|
|
107
|
+
), E(e);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (e ===
|
|
110
|
+
function i(e) {
|
|
111
|
+
if (e === v) return "<>";
|
|
112
112
|
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
@@ -125,8 +125,8 @@ function re() {
|
|
|
125
125
|
function s() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
128
|
+
function f(e) {
|
|
129
|
+
if (g.call(e, "key")) {
|
|
130
130
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
131
131
|
if (r && r.isReactWarning) return !1;
|
|
132
132
|
}
|
|
@@ -134,7 +134,7 @@ function re() {
|
|
|
134
134
|
}
|
|
135
135
|
function d(e, r) {
|
|
136
136
|
function t() {
|
|
137
|
-
|
|
137
|
+
j || (j = !0, console.error(
|
|
138
138
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
139
|
r
|
|
140
140
|
));
|
|
@@ -150,10 +150,10 @@ function re() {
|
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
151
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
152
152
|
}
|
|
153
|
-
function L(e, r, t, n,
|
|
153
|
+
function L(e, r, t, n, b, A) {
|
|
154
154
|
var a = t.ref;
|
|
155
155
|
return e = {
|
|
156
|
-
$$typeof:
|
|
156
|
+
$$typeof: y,
|
|
157
157
|
type: e,
|
|
158
158
|
key: r,
|
|
159
159
|
props: t,
|
|
@@ -175,7 +175,7 @@ function re() {
|
|
|
175
175
|
configurable: !1,
|
|
176
176
|
enumerable: !1,
|
|
177
177
|
writable: !0,
|
|
178
|
-
value:
|
|
178
|
+
value: b
|
|
179
179
|
}), Object.defineProperty(e, "_debugTask", {
|
|
180
180
|
configurable: !1,
|
|
181
181
|
enumerable: !1,
|
|
@@ -183,25 +183,25 @@ function re() {
|
|
|
183
183
|
value: A
|
|
184
184
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function S(e, r, t, n, b, A) {
|
|
187
187
|
var a = r.children;
|
|
188
188
|
if (a !== void 0)
|
|
189
189
|
if (n)
|
|
190
190
|
if (Z(a)) {
|
|
191
191
|
for (n = 0; n < a.length; n++)
|
|
192
|
-
|
|
192
|
+
P(a[n]);
|
|
193
193
|
Object.freeze && Object.freeze(a);
|
|
194
194
|
} else
|
|
195
195
|
console.error(
|
|
196
196
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
197
197
|
);
|
|
198
|
-
else
|
|
199
|
-
if (
|
|
198
|
+
else P(a);
|
|
199
|
+
if (g.call(r, "key")) {
|
|
200
200
|
a = u(e);
|
|
201
|
-
var
|
|
201
|
+
var l = Object.keys(r).filter(function(Q) {
|
|
202
202
|
return Q !== "key";
|
|
203
203
|
});
|
|
204
|
-
n = 0 <
|
|
204
|
+
n = 0 < l.length ? "{key: someKey, " + l.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (l = 0 < l.length ? "{" + l.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
205
205
|
`A props object containing a "key" prop is being spread into JSX:
|
|
206
206
|
let props = %s;
|
|
207
207
|
<%s {...props} />
|
|
@@ -210,14 +210,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
210
210
|
<%s key={someKey} {...props} />`,
|
|
211
211
|
n,
|
|
212
212
|
a,
|
|
213
|
-
|
|
213
|
+
l,
|
|
214
214
|
a
|
|
215
215
|
), Y[a + n] = !0);
|
|
216
216
|
}
|
|
217
|
-
if (a = null, t !== void 0 && (
|
|
217
|
+
if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
|
|
218
218
|
t = {};
|
|
219
|
-
for (var
|
|
220
|
-
|
|
219
|
+
for (var x in r)
|
|
220
|
+
x !== "key" && (t[x] = r[x]);
|
|
221
221
|
} else t = r;
|
|
222
222
|
return a && d(
|
|
223
223
|
t,
|
|
@@ -227,62 +227,72 @@ React keys must be passed directly to JSX without using spread:
|
|
|
227
227
|
a,
|
|
228
228
|
t,
|
|
229
229
|
o(),
|
|
230
|
-
|
|
230
|
+
b,
|
|
231
231
|
A
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
function P(e) {
|
|
235
|
+
w(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? w(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
236
236
|
}
|
|
237
|
-
function
|
|
238
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
237
|
+
function w(e) {
|
|
238
|
+
return typeof e == "object" && e !== null && e.$$typeof === y;
|
|
239
239
|
}
|
|
240
|
-
var
|
|
240
|
+
var R = K, y = Symbol.for("react.transitional.element"), M = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), U = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), J = Symbol.for("react.context"), V = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), H = Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
241
241
|
return null;
|
|
242
242
|
};
|
|
243
|
-
|
|
243
|
+
R = {
|
|
244
244
|
react_stack_bottom_frame: function(e) {
|
|
245
245
|
return e();
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
|
-
var
|
|
249
|
-
|
|
248
|
+
var j, h = {}, N = R.react_stack_bottom_frame.bind(
|
|
249
|
+
R,
|
|
250
250
|
s
|
|
251
|
-
)(), C = O(
|
|
252
|
-
|
|
251
|
+
)(), C = O(i(s)), Y = {};
|
|
252
|
+
_.Fragment = v, _.jsx = function(e, r, t) {
|
|
253
253
|
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
254
|
-
return
|
|
254
|
+
return S(
|
|
255
255
|
e,
|
|
256
256
|
r,
|
|
257
257
|
t,
|
|
258
258
|
!1,
|
|
259
259
|
n ? Error("react-stack-top-frame") : N,
|
|
260
|
-
n ? O(
|
|
260
|
+
n ? O(i(e)) : C
|
|
261
261
|
);
|
|
262
|
-
},
|
|
262
|
+
}, _.jsxs = function(e, r, t) {
|
|
263
263
|
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
264
|
-
return
|
|
264
|
+
return S(
|
|
265
265
|
e,
|
|
266
266
|
r,
|
|
267
267
|
t,
|
|
268
268
|
!0,
|
|
269
269
|
n ? Error("react-stack-top-frame") : N,
|
|
270
|
-
n ? O(
|
|
270
|
+
n ? O(i(e)) : C
|
|
271
271
|
);
|
|
272
272
|
};
|
|
273
|
-
})()),
|
|
273
|
+
})()), _;
|
|
274
274
|
}
|
|
275
275
|
var F;
|
|
276
276
|
function te() {
|
|
277
|
-
return F || (F = 1, process.env.NODE_ENV === "production" ?
|
|
277
|
+
return F || (F = 1, process.env.NODE_ENV === "production" ? p.exports = ee() : p.exports = re()), p.exports;
|
|
278
278
|
}
|
|
279
279
|
var ne = te();
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
280
|
+
function oe({ children: u }) {
|
|
281
|
+
return /* @__PURE__ */ ne.jsx(
|
|
282
|
+
"button",
|
|
283
|
+
{
|
|
284
|
+
style: {
|
|
285
|
+
backgroundColor: "red",
|
|
286
|
+
color: "white",
|
|
287
|
+
border: "none",
|
|
288
|
+
padding: "10px 20px",
|
|
289
|
+
borderRadius: "4px",
|
|
290
|
+
cursor: "pointer"
|
|
291
|
+
},
|
|
292
|
+
children: u
|
|
293
|
+
}
|
|
294
|
+
);
|
|
285
295
|
}
|
|
286
296
|
export {
|
|
287
|
-
|
|
297
|
+
oe as Buttons
|
|
288
298
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ynotsoft-dynamic-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Dynamic form component library built with React + Vite",
|
|
5
5
|
"main": "./dist/ynotsoft-dynamic-form.cjs.js",
|
|
6
6
|
"module": "./dist/ynotsoft-dynamic-form.es.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"react-dom": "^19.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.36.0",
|
|
31
|
-
"@types/react": "^19.1.16",
|
|
32
|
-
"@types/react-dom": "^19.1.9",
|
|
33
30
|
"@vitejs/plugin-react": "^5.0.4",
|
|
31
|
+
"vite": "^7.1.7",
|
|
34
32
|
"eslint": "^9.36.0",
|
|
35
33
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
36
34
|
"eslint-plugin-react-refresh": "^0.4.22",
|
|
37
|
-
"
|
|
38
|
-
"
|
|
35
|
+
"@eslint/js": "^9.36.0",
|
|
36
|
+
"@types/react": "^19.1.16",
|
|
37
|
+
"@types/react-dom": "^19.1.9",
|
|
38
|
+
"globals": "^16.4.0"
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._button_1x4bi_1{padding:1rem}
|