jy-headless 0.2.11 → 0.2.13
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/package.json +1 -11
- package/version.txt +1 -1
- package/_virtual/_tslib.js +0 -35
- package/_virtual/index/index.js +0 -5
- package/_virtual/index/index2.js +0 -3
- package/_virtual/jsx-runtime/index.js +0 -5
- package/_virtual/jsx-runtime/index2.js +0 -3
- package/_virtual/jsx-runtime.js +0 -5
- package/_virtual/jsx-runtime2.js +0 -3
- package/_virtual/react-jsx-runtime.development/index.js +0 -3
- package/_virtual/react-jsx-runtime.development.js +0 -3
- package/_virtual/react-jsx-runtime.production/index.js +0 -3
- package/_virtual/react-jsx-runtime.production.js +0 -3
- package/_virtual/react.development/index.js +0 -3
- package/_virtual/react.production/index.js +0 -3
- package/buttons/Button/index.js +0 -20
- package/cjs/_virtual/_tslib.js +0 -37
- package/cjs/_virtual/index/index.js +0 -7
- package/cjs/_virtual/index/index2.js +0 -5
- package/cjs/_virtual/jsx-runtime/index.js +0 -7
- package/cjs/_virtual/jsx-runtime/index2.js +0 -5
- package/cjs/_virtual/jsx-runtime.js +0 -7
- package/cjs/_virtual/jsx-runtime2.js +0 -5
- package/cjs/_virtual/react-jsx-runtime.development/index.js +0 -5
- package/cjs/_virtual/react-jsx-runtime.development.js +0 -5
- package/cjs/_virtual/react-jsx-runtime.production/index.js +0 -5
- package/cjs/_virtual/react-jsx-runtime.production.js +0 -5
- package/cjs/_virtual/react.development/index.js +0 -5
- package/cjs/_virtual/react.production/index.js +0 -5
- package/cjs/buttons/Button/index.js +0 -22
- package/cjs/index/index.js +0 -7
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development/index.js +0 -668
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -668
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production/index.js +0 -46
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -46
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.development/index.js +0 -1535
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.production/index.js +0 -550
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/index/index.js +0 -21
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime/index.js +0 -21
- package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -21
- package/esm/_virtual/_tslib.js +0 -35
- package/esm/_virtual/jsx-runtime.js +0 -5
- package/esm/_virtual/jsx-runtime2.js +0 -3
- package/esm/_virtual/react-jsx-runtime.development.js +0 -3
- package/esm/_virtual/react-jsx-runtime.production.js +0 -3
- package/esm/buttons/Button.d.ts +0 -3
- package/esm/buttons/Button.js +0 -20
- package/esm/buttons/index.d.ts +0 -1
- package/esm/index.d.ts +0 -1
- package/esm/index.js +0 -1
- package/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -666
- package/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -19
- package/esm/types/buttons/types.d.ts +0 -6
- package/esm/types/index.d.ts +0 -1
- package/index/index.js +0 -1
package/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react.production/index.js
DELETED
|
@@ -1,550 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var react_production = require('../../../../../../../_virtual/react.production/index.js');
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @license React
|
|
7
|
-
* react.production.js
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var hasRequiredReact_production;
|
|
16
|
-
|
|
17
|
-
function requireReact_production () {
|
|
18
|
-
if (hasRequiredReact_production) return react_production.__exports;
|
|
19
|
-
hasRequiredReact_production = 1;
|
|
20
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
21
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
22
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
23
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
24
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
25
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
26
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
27
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
28
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
29
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
30
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
31
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
32
|
-
function getIteratorFn(maybeIterable) {
|
|
33
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
34
|
-
maybeIterable =
|
|
35
|
-
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
36
|
-
maybeIterable["@@iterator"];
|
|
37
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
38
|
-
}
|
|
39
|
-
var ReactNoopUpdateQueue = {
|
|
40
|
-
isMounted: function () {
|
|
41
|
-
return false;
|
|
42
|
-
},
|
|
43
|
-
enqueueForceUpdate: function () {},
|
|
44
|
-
enqueueReplaceState: function () {},
|
|
45
|
-
enqueueSetState: function () {}
|
|
46
|
-
},
|
|
47
|
-
assign = Object.assign,
|
|
48
|
-
emptyObject = {};
|
|
49
|
-
function Component(props, context, updater) {
|
|
50
|
-
this.props = props;
|
|
51
|
-
this.context = context;
|
|
52
|
-
this.refs = emptyObject;
|
|
53
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
54
|
-
}
|
|
55
|
-
Component.prototype.isReactComponent = {};
|
|
56
|
-
Component.prototype.setState = function (partialState, callback) {
|
|
57
|
-
if (
|
|
58
|
-
"object" !== typeof partialState &&
|
|
59
|
-
"function" !== typeof partialState &&
|
|
60
|
-
null != partialState
|
|
61
|
-
)
|
|
62
|
-
throw Error(
|
|
63
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
64
|
-
);
|
|
65
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
66
|
-
};
|
|
67
|
-
Component.prototype.forceUpdate = function (callback) {
|
|
68
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
69
|
-
};
|
|
70
|
-
function ComponentDummy() {}
|
|
71
|
-
ComponentDummy.prototype = Component.prototype;
|
|
72
|
-
function PureComponent(props, context, updater) {
|
|
73
|
-
this.props = props;
|
|
74
|
-
this.context = context;
|
|
75
|
-
this.refs = emptyObject;
|
|
76
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
77
|
-
}
|
|
78
|
-
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
79
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
80
|
-
assign(pureComponentPrototype, Component.prototype);
|
|
81
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
82
|
-
var isArrayImpl = Array.isArray,
|
|
83
|
-
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
84
|
-
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
85
|
-
function ReactElement(type, key, self, source, owner, props) {
|
|
86
|
-
self = props.ref;
|
|
87
|
-
return {
|
|
88
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
89
|
-
type: type,
|
|
90
|
-
key: key,
|
|
91
|
-
ref: undefined !== self ? self : null,
|
|
92
|
-
props: props
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
96
|
-
return ReactElement(
|
|
97
|
-
oldElement.type,
|
|
98
|
-
newKey,
|
|
99
|
-
undefined,
|
|
100
|
-
undefined,
|
|
101
|
-
undefined,
|
|
102
|
-
oldElement.props
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
function isValidElement(object) {
|
|
106
|
-
return (
|
|
107
|
-
"object" === typeof object &&
|
|
108
|
-
null !== object &&
|
|
109
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
function escape(key) {
|
|
113
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
114
|
-
return (
|
|
115
|
-
"$" +
|
|
116
|
-
key.replace(/[=:]/g, function (match) {
|
|
117
|
-
return escaperLookup[match];
|
|
118
|
-
})
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
122
|
-
function getElementKey(element, index) {
|
|
123
|
-
return "object" === typeof element && null !== element && null != element.key
|
|
124
|
-
? escape("" + element.key)
|
|
125
|
-
: index.toString(36);
|
|
126
|
-
}
|
|
127
|
-
function noop$1() {}
|
|
128
|
-
function resolveThenable(thenable) {
|
|
129
|
-
switch (thenable.status) {
|
|
130
|
-
case "fulfilled":
|
|
131
|
-
return thenable.value;
|
|
132
|
-
case "rejected":
|
|
133
|
-
throw thenable.reason;
|
|
134
|
-
default:
|
|
135
|
-
switch (
|
|
136
|
-
("string" === typeof thenable.status
|
|
137
|
-
? thenable.then(noop$1, noop$1)
|
|
138
|
-
: ((thenable.status = "pending"),
|
|
139
|
-
thenable.then(
|
|
140
|
-
function (fulfilledValue) {
|
|
141
|
-
"pending" === thenable.status &&
|
|
142
|
-
((thenable.status = "fulfilled"),
|
|
143
|
-
(thenable.value = fulfilledValue));
|
|
144
|
-
},
|
|
145
|
-
function (error) {
|
|
146
|
-
"pending" === thenable.status &&
|
|
147
|
-
((thenable.status = "rejected"), (thenable.reason = error));
|
|
148
|
-
}
|
|
149
|
-
)),
|
|
150
|
-
thenable.status)
|
|
151
|
-
) {
|
|
152
|
-
case "fulfilled":
|
|
153
|
-
return thenable.value;
|
|
154
|
-
case "rejected":
|
|
155
|
-
throw thenable.reason;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
throw thenable;
|
|
159
|
-
}
|
|
160
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
161
|
-
var type = typeof children;
|
|
162
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
163
|
-
var invokeCallback = false;
|
|
164
|
-
if (null === children) invokeCallback = true;
|
|
165
|
-
else
|
|
166
|
-
switch (type) {
|
|
167
|
-
case "bigint":
|
|
168
|
-
case "string":
|
|
169
|
-
case "number":
|
|
170
|
-
invokeCallback = true;
|
|
171
|
-
break;
|
|
172
|
-
case "object":
|
|
173
|
-
switch (children.$$typeof) {
|
|
174
|
-
case REACT_ELEMENT_TYPE:
|
|
175
|
-
case REACT_PORTAL_TYPE:
|
|
176
|
-
invokeCallback = true;
|
|
177
|
-
break;
|
|
178
|
-
case REACT_LAZY_TYPE:
|
|
179
|
-
return (
|
|
180
|
-
(invokeCallback = children._init),
|
|
181
|
-
mapIntoArray(
|
|
182
|
-
invokeCallback(children._payload),
|
|
183
|
-
array,
|
|
184
|
-
escapedPrefix,
|
|
185
|
-
nameSoFar,
|
|
186
|
-
callback
|
|
187
|
-
)
|
|
188
|
-
);
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
if (invokeCallback)
|
|
192
|
-
return (
|
|
193
|
-
(callback = callback(children)),
|
|
194
|
-
(invokeCallback =
|
|
195
|
-
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
196
|
-
isArrayImpl(callback)
|
|
197
|
-
? ((escapedPrefix = ""),
|
|
198
|
-
null != invokeCallback &&
|
|
199
|
-
(escapedPrefix =
|
|
200
|
-
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
|
201
|
-
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
|
202
|
-
return c;
|
|
203
|
-
}))
|
|
204
|
-
: null != callback &&
|
|
205
|
-
(isValidElement(callback) &&
|
|
206
|
-
(callback = cloneAndReplaceKey(
|
|
207
|
-
callback,
|
|
208
|
-
escapedPrefix +
|
|
209
|
-
(null == callback.key ||
|
|
210
|
-
(children && children.key === callback.key)
|
|
211
|
-
? ""
|
|
212
|
-
: ("" + callback.key).replace(
|
|
213
|
-
userProvidedKeyEscapeRegex,
|
|
214
|
-
"$&/"
|
|
215
|
-
) + "/") +
|
|
216
|
-
invokeCallback
|
|
217
|
-
)),
|
|
218
|
-
array.push(callback)),
|
|
219
|
-
1
|
|
220
|
-
);
|
|
221
|
-
invokeCallback = 0;
|
|
222
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
223
|
-
if (isArrayImpl(children))
|
|
224
|
-
for (var i = 0; i < children.length; i++)
|
|
225
|
-
(nameSoFar = children[i]),
|
|
226
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
227
|
-
(invokeCallback += mapIntoArray(
|
|
228
|
-
nameSoFar,
|
|
229
|
-
array,
|
|
230
|
-
escapedPrefix,
|
|
231
|
-
type,
|
|
232
|
-
callback
|
|
233
|
-
));
|
|
234
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
235
|
-
for (
|
|
236
|
-
children = i.call(children), i = 0;
|
|
237
|
-
!(nameSoFar = children.next()).done;
|
|
238
|
-
|
|
239
|
-
)
|
|
240
|
-
(nameSoFar = nameSoFar.value),
|
|
241
|
-
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
242
|
-
(invokeCallback += mapIntoArray(
|
|
243
|
-
nameSoFar,
|
|
244
|
-
array,
|
|
245
|
-
escapedPrefix,
|
|
246
|
-
type,
|
|
247
|
-
callback
|
|
248
|
-
));
|
|
249
|
-
else if ("object" === type) {
|
|
250
|
-
if ("function" === typeof children.then)
|
|
251
|
-
return mapIntoArray(
|
|
252
|
-
resolveThenable(children),
|
|
253
|
-
array,
|
|
254
|
-
escapedPrefix,
|
|
255
|
-
nameSoFar,
|
|
256
|
-
callback
|
|
257
|
-
);
|
|
258
|
-
array = String(children);
|
|
259
|
-
throw Error(
|
|
260
|
-
"Objects are not valid as a React child (found: " +
|
|
261
|
-
("[object Object]" === array
|
|
262
|
-
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
|
263
|
-
: array) +
|
|
264
|
-
"). If you meant to render a collection of children, use an array instead."
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
return invokeCallback;
|
|
268
|
-
}
|
|
269
|
-
function mapChildren(children, func, context) {
|
|
270
|
-
if (null == children) return children;
|
|
271
|
-
var result = [],
|
|
272
|
-
count = 0;
|
|
273
|
-
mapIntoArray(children, result, "", "", function (child) {
|
|
274
|
-
return func.call(context, child, count++);
|
|
275
|
-
});
|
|
276
|
-
return result;
|
|
277
|
-
}
|
|
278
|
-
function lazyInitializer(payload) {
|
|
279
|
-
if (-1 === payload._status) {
|
|
280
|
-
var ctor = payload._result;
|
|
281
|
-
ctor = ctor();
|
|
282
|
-
ctor.then(
|
|
283
|
-
function (moduleObject) {
|
|
284
|
-
if (0 === payload._status || -1 === payload._status)
|
|
285
|
-
(payload._status = 1), (payload._result = moduleObject);
|
|
286
|
-
},
|
|
287
|
-
function (error) {
|
|
288
|
-
if (0 === payload._status || -1 === payload._status)
|
|
289
|
-
(payload._status = 2), (payload._result = error);
|
|
290
|
-
}
|
|
291
|
-
);
|
|
292
|
-
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
|
293
|
-
}
|
|
294
|
-
if (1 === payload._status) return payload._result.default;
|
|
295
|
-
throw payload._result;
|
|
296
|
-
}
|
|
297
|
-
var reportGlobalError =
|
|
298
|
-
"function" === typeof reportError
|
|
299
|
-
? reportError
|
|
300
|
-
: function (error) {
|
|
301
|
-
if (
|
|
302
|
-
"object" === typeof window &&
|
|
303
|
-
"function" === typeof window.ErrorEvent
|
|
304
|
-
) {
|
|
305
|
-
var event = new window.ErrorEvent("error", {
|
|
306
|
-
bubbles: true,
|
|
307
|
-
cancelable: true,
|
|
308
|
-
message:
|
|
309
|
-
"object" === typeof error &&
|
|
310
|
-
null !== error &&
|
|
311
|
-
"string" === typeof error.message
|
|
312
|
-
? String(error.message)
|
|
313
|
-
: String(error),
|
|
314
|
-
error: error
|
|
315
|
-
});
|
|
316
|
-
if (!window.dispatchEvent(event)) return;
|
|
317
|
-
} else if (
|
|
318
|
-
"object" === typeof process &&
|
|
319
|
-
"function" === typeof process.emit
|
|
320
|
-
) {
|
|
321
|
-
process.emit("uncaughtException", error);
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
console.error(error);
|
|
325
|
-
};
|
|
326
|
-
function noop() {}
|
|
327
|
-
react_production.__exports.Children = {
|
|
328
|
-
map: mapChildren,
|
|
329
|
-
forEach: function (children, forEachFunc, forEachContext) {
|
|
330
|
-
mapChildren(
|
|
331
|
-
children,
|
|
332
|
-
function () {
|
|
333
|
-
forEachFunc.apply(this, arguments);
|
|
334
|
-
},
|
|
335
|
-
forEachContext
|
|
336
|
-
);
|
|
337
|
-
},
|
|
338
|
-
count: function (children) {
|
|
339
|
-
var n = 0;
|
|
340
|
-
mapChildren(children, function () {
|
|
341
|
-
n++;
|
|
342
|
-
});
|
|
343
|
-
return n;
|
|
344
|
-
},
|
|
345
|
-
toArray: function (children) {
|
|
346
|
-
return (
|
|
347
|
-
mapChildren(children, function (child) {
|
|
348
|
-
return child;
|
|
349
|
-
}) || []
|
|
350
|
-
);
|
|
351
|
-
},
|
|
352
|
-
only: function (children) {
|
|
353
|
-
if (!isValidElement(children))
|
|
354
|
-
throw Error(
|
|
355
|
-
"React.Children.only expected to receive a single React element child."
|
|
356
|
-
);
|
|
357
|
-
return children;
|
|
358
|
-
}
|
|
359
|
-
};
|
|
360
|
-
react_production.__exports.Component = Component;
|
|
361
|
-
react_production.__exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
362
|
-
react_production.__exports.Profiler = REACT_PROFILER_TYPE;
|
|
363
|
-
react_production.__exports.PureComponent = PureComponent;
|
|
364
|
-
react_production.__exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
365
|
-
react_production.__exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
366
|
-
react_production.__exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
367
|
-
ReactSharedInternals;
|
|
368
|
-
react_production.__exports.act = function () {
|
|
369
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
370
|
-
};
|
|
371
|
-
react_production.__exports.cache = function (fn) {
|
|
372
|
-
return function () {
|
|
373
|
-
return fn.apply(null, arguments);
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
react_production.__exports.cloneElement = function (element, config, children) {
|
|
377
|
-
if (null === element || undefined === element)
|
|
378
|
-
throw Error(
|
|
379
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
380
|
-
);
|
|
381
|
-
var props = assign({}, element.props),
|
|
382
|
-
key = element.key,
|
|
383
|
-
owner = undefined;
|
|
384
|
-
if (null != config)
|
|
385
|
-
for (propName in (undefined !== config.ref && (owner = undefined),
|
|
386
|
-
undefined !== config.key && (key = "" + config.key),
|
|
387
|
-
config))
|
|
388
|
-
!hasOwnProperty.call(config, propName) ||
|
|
389
|
-
"key" === propName ||
|
|
390
|
-
"__self" === propName ||
|
|
391
|
-
"__source" === propName ||
|
|
392
|
-
("ref" === propName && undefined === config.ref) ||
|
|
393
|
-
(props[propName] = config[propName]);
|
|
394
|
-
var propName = arguments.length - 2;
|
|
395
|
-
if (1 === propName) props.children = children;
|
|
396
|
-
else if (1 < propName) {
|
|
397
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
398
|
-
childArray[i] = arguments[i + 2];
|
|
399
|
-
props.children = childArray;
|
|
400
|
-
}
|
|
401
|
-
return ReactElement(element.type, key, undefined, undefined, owner, props);
|
|
402
|
-
};
|
|
403
|
-
react_production.__exports.createContext = function (defaultValue) {
|
|
404
|
-
defaultValue = {
|
|
405
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
406
|
-
_currentValue: defaultValue,
|
|
407
|
-
_currentValue2: defaultValue,
|
|
408
|
-
_threadCount: 0,
|
|
409
|
-
Provider: null,
|
|
410
|
-
Consumer: null
|
|
411
|
-
};
|
|
412
|
-
defaultValue.Provider = defaultValue;
|
|
413
|
-
defaultValue.Consumer = {
|
|
414
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
415
|
-
_context: defaultValue
|
|
416
|
-
};
|
|
417
|
-
return defaultValue;
|
|
418
|
-
};
|
|
419
|
-
react_production.__exports.createElement = function (type, config, children) {
|
|
420
|
-
var propName,
|
|
421
|
-
props = {},
|
|
422
|
-
key = null;
|
|
423
|
-
if (null != config)
|
|
424
|
-
for (propName in (undefined !== config.key && (key = "" + config.key), config))
|
|
425
|
-
hasOwnProperty.call(config, propName) &&
|
|
426
|
-
"key" !== propName &&
|
|
427
|
-
"__self" !== propName &&
|
|
428
|
-
"__source" !== propName &&
|
|
429
|
-
(props[propName] = config[propName]);
|
|
430
|
-
var childrenLength = arguments.length - 2;
|
|
431
|
-
if (1 === childrenLength) props.children = children;
|
|
432
|
-
else if (1 < childrenLength) {
|
|
433
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
434
|
-
childArray[i] = arguments[i + 2];
|
|
435
|
-
props.children = childArray;
|
|
436
|
-
}
|
|
437
|
-
if (type && type.defaultProps)
|
|
438
|
-
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
439
|
-
undefined === props[propName] &&
|
|
440
|
-
(props[propName] = childrenLength[propName]);
|
|
441
|
-
return ReactElement(type, key, undefined, undefined, null, props);
|
|
442
|
-
};
|
|
443
|
-
react_production.__exports.createRef = function () {
|
|
444
|
-
return { current: null };
|
|
445
|
-
};
|
|
446
|
-
react_production.__exports.forwardRef = function (render) {
|
|
447
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
|
448
|
-
};
|
|
449
|
-
react_production.__exports.isValidElement = isValidElement;
|
|
450
|
-
react_production.__exports.lazy = function (ctor) {
|
|
451
|
-
return {
|
|
452
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
453
|
-
_payload: { _status: -1, _result: ctor },
|
|
454
|
-
_init: lazyInitializer
|
|
455
|
-
};
|
|
456
|
-
};
|
|
457
|
-
react_production.__exports.memo = function (type, compare) {
|
|
458
|
-
return {
|
|
459
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
460
|
-
type: type,
|
|
461
|
-
compare: undefined === compare ? null : compare
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
react_production.__exports.startTransition = function (scope) {
|
|
465
|
-
var prevTransition = ReactSharedInternals.T,
|
|
466
|
-
currentTransition = {};
|
|
467
|
-
ReactSharedInternals.T = currentTransition;
|
|
468
|
-
try {
|
|
469
|
-
var returnValue = scope(),
|
|
470
|
-
onStartTransitionFinish = ReactSharedInternals.S;
|
|
471
|
-
null !== onStartTransitionFinish &&
|
|
472
|
-
onStartTransitionFinish(currentTransition, returnValue);
|
|
473
|
-
"object" === typeof returnValue &&
|
|
474
|
-
null !== returnValue &&
|
|
475
|
-
"function" === typeof returnValue.then &&
|
|
476
|
-
returnValue.then(noop, reportGlobalError);
|
|
477
|
-
} catch (error) {
|
|
478
|
-
reportGlobalError(error);
|
|
479
|
-
} finally {
|
|
480
|
-
ReactSharedInternals.T = prevTransition;
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
|
-
react_production.__exports.unstable_useCacheRefresh = function () {
|
|
484
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
485
|
-
};
|
|
486
|
-
react_production.__exports.use = function (usable) {
|
|
487
|
-
return ReactSharedInternals.H.use(usable);
|
|
488
|
-
};
|
|
489
|
-
react_production.__exports.useActionState = function (action, initialState, permalink) {
|
|
490
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
491
|
-
};
|
|
492
|
-
react_production.__exports.useCallback = function (callback, deps) {
|
|
493
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
494
|
-
};
|
|
495
|
-
react_production.__exports.useContext = function (Context) {
|
|
496
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
497
|
-
};
|
|
498
|
-
react_production.__exports.useDebugValue = function () {};
|
|
499
|
-
react_production.__exports.useDeferredValue = function (value, initialValue) {
|
|
500
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
501
|
-
};
|
|
502
|
-
react_production.__exports.useEffect = function (create, deps) {
|
|
503
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
504
|
-
};
|
|
505
|
-
react_production.__exports.useId = function () {
|
|
506
|
-
return ReactSharedInternals.H.useId();
|
|
507
|
-
};
|
|
508
|
-
react_production.__exports.useImperativeHandle = function (ref, create, deps) {
|
|
509
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
510
|
-
};
|
|
511
|
-
react_production.__exports.useInsertionEffect = function (create, deps) {
|
|
512
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
513
|
-
};
|
|
514
|
-
react_production.__exports.useLayoutEffect = function (create, deps) {
|
|
515
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
516
|
-
};
|
|
517
|
-
react_production.__exports.useMemo = function (create, deps) {
|
|
518
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
519
|
-
};
|
|
520
|
-
react_production.__exports.useOptimistic = function (passthrough, reducer) {
|
|
521
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
522
|
-
};
|
|
523
|
-
react_production.__exports.useReducer = function (reducer, initialArg, init) {
|
|
524
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
525
|
-
};
|
|
526
|
-
react_production.__exports.useRef = function (initialValue) {
|
|
527
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
528
|
-
};
|
|
529
|
-
react_production.__exports.useState = function (initialState) {
|
|
530
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
531
|
-
};
|
|
532
|
-
react_production.__exports.useSyncExternalStore = function (
|
|
533
|
-
subscribe,
|
|
534
|
-
getSnapshot,
|
|
535
|
-
getServerSnapshot
|
|
536
|
-
) {
|
|
537
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
538
|
-
subscribe,
|
|
539
|
-
getSnapshot,
|
|
540
|
-
getServerSnapshot
|
|
541
|
-
);
|
|
542
|
-
};
|
|
543
|
-
react_production.__exports.useTransition = function () {
|
|
544
|
-
return ReactSharedInternals.H.useTransition();
|
|
545
|
-
};
|
|
546
|
-
react_production.__exports.version = "19.0.0";
|
|
547
|
-
return react_production.__exports;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
|
-
exports.__require = requireReact_production;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var index = require('../../../../../../_virtual/index/index2.js');
|
|
4
|
-
var react_production = require('../cjs/react.production/index.js');
|
|
5
|
-
var react_development = require('../cjs/react.development/index.js');
|
|
6
|
-
|
|
7
|
-
var hasRequiredReact;
|
|
8
|
-
|
|
9
|
-
function requireReact () {
|
|
10
|
-
if (hasRequiredReact) return index.__module.exports;
|
|
11
|
-
hasRequiredReact = 1;
|
|
12
|
-
|
|
13
|
-
if (process.env.NODE_ENV === 'production') {
|
|
14
|
-
index.__module.exports = react_production.__require();
|
|
15
|
-
} else {
|
|
16
|
-
index.__module.exports = react_development.__require();
|
|
17
|
-
}
|
|
18
|
-
return index.__module.exports;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
exports.__require = requireReact;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('../../../../../../_virtual/jsx-runtime/index2.js');
|
|
4
|
-
var reactJsxRuntime_production = require('../cjs/react-jsx-runtime.production/index.js');
|
|
5
|
-
var reactJsxRuntime_development = require('../cjs/react-jsx-runtime.development/index.js');
|
|
6
|
-
|
|
7
|
-
var hasRequiredJsxRuntime;
|
|
8
|
-
|
|
9
|
-
function requireJsxRuntime () {
|
|
10
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.__module.exports;
|
|
11
|
-
hasRequiredJsxRuntime = 1;
|
|
12
|
-
|
|
13
|
-
if (process.env.NODE_ENV === 'production') {
|
|
14
|
-
jsxRuntime.__module.exports = reactJsxRuntime_production.__require();
|
|
15
|
-
} else {
|
|
16
|
-
jsxRuntime.__module.exports = reactJsxRuntime_development.__require();
|
|
17
|
-
}
|
|
18
|
-
return jsxRuntime.__module.exports;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
exports.__require = requireJsxRuntime;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('../../../../../_virtual/jsx-runtime2.js');
|
|
4
|
-
var reactJsxRuntime_production = require('./cjs/react-jsx-runtime.production.js');
|
|
5
|
-
var reactJsxRuntime_development = require('./cjs/react-jsx-runtime.development.js');
|
|
6
|
-
|
|
7
|
-
var hasRequiredJsxRuntime;
|
|
8
|
-
|
|
9
|
-
function requireJsxRuntime () {
|
|
10
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.__module.exports;
|
|
11
|
-
hasRequiredJsxRuntime = 1;
|
|
12
|
-
|
|
13
|
-
if (process.env.NODE_ENV === 'production') {
|
|
14
|
-
jsxRuntime.__module.exports = reactJsxRuntime_production.__require();
|
|
15
|
-
} else {
|
|
16
|
-
jsxRuntime.__module.exports = reactJsxRuntime_development.__require();
|
|
17
|
-
}
|
|
18
|
-
return jsxRuntime.__module.exports;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
exports.__require = requireJsxRuntime;
|
package/esm/_virtual/_tslib.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
15
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __rest(s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
-
var e = new Error(message);
|
|
32
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export { __rest };
|
package/esm/buttons/Button.d.ts
DELETED
package/esm/buttons/Button.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { useRef } from 'react';
|
|
3
|
-
|
|
4
|
-
const Button = ({ onClick, debounce = false, loading = false, readOnly = false, disabled = false, children, ...props }) => {
|
|
5
|
-
const timer = useRef(0);
|
|
6
|
-
const handleClick = (() => {
|
|
7
|
-
if (!onClick)
|
|
8
|
-
return;
|
|
9
|
-
if (debounce) {
|
|
10
|
-
return () => {
|
|
11
|
-
clearTimeout(timer.current);
|
|
12
|
-
timer.current = setTimeout(onClick, 300);
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
return onClick;
|
|
16
|
-
})();
|
|
17
|
-
return (jsx("button", { onClick: handleClick, disabled: disabled || loading || readOnly, ...props, children: children }));
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export { Button as default };
|