@erikey/react 0.4.5 → 0.4.7
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/ui/index.mjs +6 -185
- package/dist/ui/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/ui/index.mjs
CHANGED
|
@@ -1,166 +1,7 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
|
-
get: (a2, b) => (typeof require !== "undefined" ? require : a2)[b]
|
|
10
|
-
}) : x)(function(x) {
|
|
11
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
12
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
-
});
|
|
14
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
15
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
16
|
-
};
|
|
17
|
-
var __copyProps = (to, from, except, desc) => {
|
|
18
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
-
for (let key of __getOwnPropNames(from))
|
|
20
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
-
}
|
|
23
|
-
return to;
|
|
24
|
-
};
|
|
25
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
26
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
27
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
28
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
29
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
30
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
31
|
-
mod
|
|
32
|
-
));
|
|
33
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
34
4
|
|
|
35
|
-
// ../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
36
|
-
var require_use_sync_external_store_shim_production = __commonJS({
|
|
37
|
-
"../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
|
|
38
|
-
"use strict";
|
|
39
|
-
var React49 = __require("react");
|
|
40
|
-
function is(x, y) {
|
|
41
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
42
|
-
}
|
|
43
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
44
|
-
var useState65 = React49.useState;
|
|
45
|
-
var useEffect49 = React49.useEffect;
|
|
46
|
-
var useLayoutEffect6 = React49.useLayoutEffect;
|
|
47
|
-
var useDebugValue = React49.useDebugValue;
|
|
48
|
-
function useSyncExternalStore$2(subscribe3, getSnapshot) {
|
|
49
|
-
var value = getSnapshot(), _useState = useState65({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
50
|
-
useLayoutEffect6(
|
|
51
|
-
function() {
|
|
52
|
-
inst.value = value;
|
|
53
|
-
inst.getSnapshot = getSnapshot;
|
|
54
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
55
|
-
},
|
|
56
|
-
[subscribe3, value, getSnapshot]
|
|
57
|
-
);
|
|
58
|
-
useEffect49(
|
|
59
|
-
function() {
|
|
60
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
61
|
-
return subscribe3(function() {
|
|
62
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
[subscribe3]
|
|
66
|
-
);
|
|
67
|
-
useDebugValue(value);
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
function checkIfSnapshotChanged(inst) {
|
|
71
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
72
|
-
inst = inst.value;
|
|
73
|
-
try {
|
|
74
|
-
var nextValue = latestGetSnapshot();
|
|
75
|
-
return !objectIs(inst, nextValue);
|
|
76
|
-
} catch (error) {
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function useSyncExternalStore$1(subscribe3, getSnapshot) {
|
|
81
|
-
return getSnapshot();
|
|
82
|
-
}
|
|
83
|
-
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
84
|
-
exports.useSyncExternalStore = void 0 !== React49.useSyncExternalStore ? React49.useSyncExternalStore : shim;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
// ../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
89
|
-
var require_use_sync_external_store_shim_development = __commonJS({
|
|
90
|
-
"../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
91
|
-
"use strict";
|
|
92
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
93
|
-
function is(x, y) {
|
|
94
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
95
|
-
}
|
|
96
|
-
function useSyncExternalStore$2(subscribe3, getSnapshot) {
|
|
97
|
-
didWarnOld18Alpha || void 0 === React49.startTransition || (didWarnOld18Alpha = true, console.error(
|
|
98
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
99
|
-
));
|
|
100
|
-
var value = getSnapshot();
|
|
101
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
102
|
-
var cachedValue = getSnapshot();
|
|
103
|
-
objectIs(value, cachedValue) || (console.error(
|
|
104
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
105
|
-
), didWarnUncachedGetSnapshot = true);
|
|
106
|
-
}
|
|
107
|
-
cachedValue = useState65({
|
|
108
|
-
inst: { value, getSnapshot }
|
|
109
|
-
});
|
|
110
|
-
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
111
|
-
useLayoutEffect6(
|
|
112
|
-
function() {
|
|
113
|
-
inst.value = value;
|
|
114
|
-
inst.getSnapshot = getSnapshot;
|
|
115
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
116
|
-
},
|
|
117
|
-
[subscribe3, value, getSnapshot]
|
|
118
|
-
);
|
|
119
|
-
useEffect49(
|
|
120
|
-
function() {
|
|
121
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
122
|
-
return subscribe3(function() {
|
|
123
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
124
|
-
});
|
|
125
|
-
},
|
|
126
|
-
[subscribe3]
|
|
127
|
-
);
|
|
128
|
-
useDebugValue(value);
|
|
129
|
-
return value;
|
|
130
|
-
}
|
|
131
|
-
function checkIfSnapshotChanged(inst) {
|
|
132
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
133
|
-
inst = inst.value;
|
|
134
|
-
try {
|
|
135
|
-
var nextValue = latestGetSnapshot();
|
|
136
|
-
return !objectIs(inst, nextValue);
|
|
137
|
-
} catch (error) {
|
|
138
|
-
return true;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function useSyncExternalStore$1(subscribe3, getSnapshot) {
|
|
142
|
-
return getSnapshot();
|
|
143
|
-
}
|
|
144
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
145
|
-
var React49 = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState65 = React49.useState, useEffect49 = React49.useEffect, useLayoutEffect6 = React49.useLayoutEffect, useDebugValue = React49.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
146
|
-
exports.useSyncExternalStore = void 0 !== React49.useSyncExternalStore ? React49.useSyncExternalStore : shim;
|
|
147
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
148
|
-
})();
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
// ../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js
|
|
153
|
-
var require_shim = __commonJS({
|
|
154
|
-
"../../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
|
|
155
|
-
"use strict";
|
|
156
|
-
if (process.env.NODE_ENV === "production") {
|
|
157
|
-
module.exports = require_use_sync_external_store_shim_production();
|
|
158
|
-
} else {
|
|
159
|
-
module.exports = require_use_sync_external_store_shim_development();
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
|
|
164
5
|
// ../../../node_modules/.pnpm/lucide-react@0.462.0_react@19.0.0/node_modules/lucide-react/dist/esm/createLucideIcon.js
|
|
165
6
|
import { forwardRef as forwardRef2, createElement as createElement2 } from "react";
|
|
166
7
|
|
|
@@ -17717,10 +17558,12 @@ function composeContextScopes2(...scopes) {
|
|
|
17717
17558
|
return createScope;
|
|
17718
17559
|
}
|
|
17719
17560
|
|
|
17561
|
+
// src/stubs/use-sync-external-store.ts
|
|
17562
|
+
import { useSyncExternalStore as useSyncExternalStore3 } from "react";
|
|
17563
|
+
|
|
17720
17564
|
// ../../../node_modules/.pnpm/@radix-ui+react-use-is-hydrated@0.1.0_@types+react@19.0.4_react@19.0.0/node_modules/@radix-ui/react-use-is-hydrated/dist/index.mjs
|
|
17721
|
-
var import_shim = __toESM(require_shim(), 1);
|
|
17722
17565
|
function useIsHydrated2() {
|
|
17723
|
-
return (
|
|
17566
|
+
return useSyncExternalStore3(
|
|
17724
17567
|
subscribe2,
|
|
17725
17568
|
() => true,
|
|
17726
17569
|
() => false
|
|
@@ -27717,12 +27560,12 @@ var __defProp2 = Object.defineProperty;
|
|
|
27717
27560
|
var __defProps = Object.defineProperties;
|
|
27718
27561
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
27719
27562
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
27720
|
-
var
|
|
27563
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
27721
27564
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
27722
27565
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
27723
27566
|
var __spreadValues = (a2, b) => {
|
|
27724
27567
|
for (var prop in b || (b = {}))
|
|
27725
|
-
if (
|
|
27568
|
+
if (__hasOwnProp.call(b, prop))
|
|
27726
27569
|
__defNormalProp2(a2, prop, b[prop]);
|
|
27727
27570
|
if (__getOwnPropSymbols)
|
|
27728
27571
|
for (var prop of __getOwnPropSymbols(b)) {
|
|
@@ -38179,28 +38022,6 @@ export {
|
|
|
38179
38022
|
};
|
|
38180
38023
|
/*! Bundled license information:
|
|
38181
38024
|
|
|
38182
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
38183
|
-
(**
|
|
38184
|
-
* @license React
|
|
38185
|
-
* use-sync-external-store-shim.production.js
|
|
38186
|
-
*
|
|
38187
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38188
|
-
*
|
|
38189
|
-
* This source code is licensed under the MIT license found in the
|
|
38190
|
-
* LICENSE file in the root directory of this source tree.
|
|
38191
|
-
*)
|
|
38192
|
-
|
|
38193
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
38194
|
-
(**
|
|
38195
|
-
* @license React
|
|
38196
|
-
* use-sync-external-store-shim.development.js
|
|
38197
|
-
*
|
|
38198
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38199
|
-
*
|
|
38200
|
-
* This source code is licensed under the MIT license found in the
|
|
38201
|
-
* LICENSE file in the root directory of this source tree.
|
|
38202
|
-
*)
|
|
38203
|
-
|
|
38204
38025
|
lucide-react/dist/esm/shared/src/utils.js:
|
|
38205
38026
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
38206
38027
|
lucide-react/dist/esm/Icon.js:
|