@yahoo/uds-v5-wip 1.58.0 → 1.59.0
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/config/dist/createConfig.js +1 -1
- package/dist/core/dist/compositeStyles.d.ts +2 -1
- package/dist/core/dist/configurable-prop-helpers.d.ts +2 -1
- package/dist/core/dist/createComponent.d.ts +2 -1
- package/dist/core/dist/createComponentExample.d.ts +2 -1
- package/dist/core/dist/createProvider.d.ts +2 -1
- package/dist/core/dist/generated/stylePropsTwMap.d.ts +2 -1
- package/dist/core/dist/getComponentStyles.d.ts +2 -1
- package/dist/core/dist/getStyles.d.ts +2 -1
- package/dist/core/dist/modifier-mappings.d.ts +2 -1
- package/dist/core/dist/resolveMotionState.d.ts +2 -1
- package/dist/core/dist/style-prop-data.d.ts +2 -1
- package/dist/core/dist/transformPreset.d.ts +2 -1
- package/dist/core/dist/withDefaultStyleProps.d.ts +2 -1
- package/dist/loader/dist/_virtual/_rolldown/runtime.js +6 -0
- package/dist/loader/dist/loader/create-component-lowering.js +1 -1
- package/dist/loader/dist/loader/data-attr-transform.js +1 -1
- package/dist/loader/dist/loader/lower-new-api-primitive.js +0 -28
- package/dist/loader/dist/loader/style-transform.js +4 -4
- package/dist/loader/dist/loader.d.ts +2 -1
- package/dist/loader/dist/loader.js +3 -3
- package/dist/loader/dist/next.d.ts +2 -1
- package/dist/loader/dist/next.js +1 -1
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.development.js +203 -0
- package/dist/loader/dist/node_modules/react/cjs/react-jsx-runtime.production.js +25 -0
- package/dist/loader/dist/node_modules/react/cjs/react.development.js +762 -0
- package/dist/loader/dist/node_modules/react/cjs/react.production.js +351 -0
- package/dist/loader/dist/node_modules/react/index.js +10 -0
- package/dist/loader/dist/node_modules/react/jsx-runtime.js +10 -0
- package/dist/loader/dist/packages/core/dist/color-opacity-map.js +33 -0
- package/dist/loader/dist/packages/core/dist/compositeStyles.js +43 -0
- package/dist/loader/dist/packages/core/dist/createComponent.js +6 -0
- package/dist/loader/dist/packages/core/dist/createProvider.js +7 -0
- package/dist/loader/dist/packages/core/dist/generated/stylePropsTwMap.js +570 -0
- package/dist/loader/dist/packages/core/dist/getComponentStyles.js +2 -0
- package/dist/loader/dist/packages/core/dist/getStyles.js +60 -0
- package/dist/loader/dist/packages/core/dist/index.js +6 -0
- package/dist/loader/dist/packages/core/dist/modifier-mappings.js +61 -0
- package/dist/loader/dist/packages/core/dist/style-prop-data.js +1257 -0
- package/dist/loader/dist/packages/core/dist/withDefaultStyleProps.js +1 -0
- package/dist/loader.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -7
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
(/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
4
|
+
function getIteratorFn(maybeIterable) {
|
|
5
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
6
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
7
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
8
|
+
}
|
|
9
|
+
var ReactNoopUpdateQueue = {
|
|
10
|
+
isMounted: function() {
|
|
11
|
+
return !1;
|
|
12
|
+
},
|
|
13
|
+
enqueueForceUpdate: function() {},
|
|
14
|
+
enqueueReplaceState: function() {},
|
|
15
|
+
enqueueSetState: function() {}
|
|
16
|
+
}, assign = Object.assign, emptyObject = {};
|
|
17
|
+
function Component(props, context, updater) {
|
|
18
|
+
this.props = props;
|
|
19
|
+
this.context = context;
|
|
20
|
+
this.refs = emptyObject;
|
|
21
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
22
|
+
}
|
|
23
|
+
Component.prototype.isReactComponent = {};
|
|
24
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
25
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
26
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
27
|
+
};
|
|
28
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
29
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
30
|
+
};
|
|
31
|
+
function ComponentDummy() {}
|
|
32
|
+
ComponentDummy.prototype = Component.prototype;
|
|
33
|
+
function PureComponent(props, context, updater) {
|
|
34
|
+
this.props = props;
|
|
35
|
+
this.context = context;
|
|
36
|
+
this.refs = emptyObject;
|
|
37
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
38
|
+
}
|
|
39
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
40
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
41
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
42
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
43
|
+
var isArrayImpl = Array.isArray;
|
|
44
|
+
function noop() {}
|
|
45
|
+
var ReactSharedInternals = {
|
|
46
|
+
H: null,
|
|
47
|
+
A: null,
|
|
48
|
+
T: null,
|
|
49
|
+
S: null
|
|
50
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
51
|
+
function ReactElement(type, key, props) {
|
|
52
|
+
var refProp = props.ref;
|
|
53
|
+
return {
|
|
54
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
55
|
+
type,
|
|
56
|
+
key,
|
|
57
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
58
|
+
props
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
62
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
63
|
+
}
|
|
64
|
+
function isValidElement(object) {
|
|
65
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
66
|
+
}
|
|
67
|
+
function escape(key) {
|
|
68
|
+
var escaperLookup = {
|
|
69
|
+
"=": "=0",
|
|
70
|
+
":": "=2"
|
|
71
|
+
};
|
|
72
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
73
|
+
return escaperLookup[match];
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
77
|
+
function getElementKey(element, index) {
|
|
78
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
79
|
+
}
|
|
80
|
+
function resolveThenable(thenable) {
|
|
81
|
+
switch (thenable.status) {
|
|
82
|
+
case "fulfilled": return thenable.value;
|
|
83
|
+
case "rejected": throw thenable.reason;
|
|
84
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
85
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
86
|
+
}, function(error) {
|
|
87
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
88
|
+
})), thenable.status) {
|
|
89
|
+
case "fulfilled": return thenable.value;
|
|
90
|
+
case "rejected": throw thenable.reason;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
throw thenable;
|
|
94
|
+
}
|
|
95
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
96
|
+
var type = typeof children;
|
|
97
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
98
|
+
var invokeCallback = !1;
|
|
99
|
+
if (null === children) invokeCallback = !0;
|
|
100
|
+
else switch (type) {
|
|
101
|
+
case "bigint":
|
|
102
|
+
case "string":
|
|
103
|
+
case "number":
|
|
104
|
+
invokeCallback = !0;
|
|
105
|
+
break;
|
|
106
|
+
case "object": switch (children.$$typeof) {
|
|
107
|
+
case REACT_ELEMENT_TYPE:
|
|
108
|
+
case REACT_PORTAL_TYPE:
|
|
109
|
+
invokeCallback = !0;
|
|
110
|
+
break;
|
|
111
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
115
|
+
return c;
|
|
116
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
117
|
+
invokeCallback = 0;
|
|
118
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
119
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
120
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
121
|
+
else if ("object" === type) {
|
|
122
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
123
|
+
array = String(children);
|
|
124
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
125
|
+
}
|
|
126
|
+
return invokeCallback;
|
|
127
|
+
}
|
|
128
|
+
function mapChildren(children, func, context) {
|
|
129
|
+
if (null == children) return children;
|
|
130
|
+
var result = [], count = 0;
|
|
131
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
132
|
+
return func.call(context, child, count++);
|
|
133
|
+
});
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
function lazyInitializer(payload) {
|
|
137
|
+
if (-1 === payload._status) {
|
|
138
|
+
var ctor = payload._result;
|
|
139
|
+
ctor = ctor();
|
|
140
|
+
ctor.then(function(moduleObject) {
|
|
141
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
142
|
+
}, function(error) {
|
|
143
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
144
|
+
});
|
|
145
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
146
|
+
}
|
|
147
|
+
if (1 === payload._status) return payload._result.default;
|
|
148
|
+
throw payload._result;
|
|
149
|
+
}
|
|
150
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
151
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
152
|
+
var event = new window.ErrorEvent("error", {
|
|
153
|
+
bubbles: !0,
|
|
154
|
+
cancelable: !0,
|
|
155
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
156
|
+
error
|
|
157
|
+
});
|
|
158
|
+
if (!window.dispatchEvent(event)) return;
|
|
159
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
160
|
+
process.emit("uncaughtException", error);
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
console.error(error);
|
|
164
|
+
}, Children = {
|
|
165
|
+
map: mapChildren,
|
|
166
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
167
|
+
mapChildren(children, function() {
|
|
168
|
+
forEachFunc.apply(this, arguments);
|
|
169
|
+
}, forEachContext);
|
|
170
|
+
},
|
|
171
|
+
count: function(children) {
|
|
172
|
+
var n = 0;
|
|
173
|
+
mapChildren(children, function() {
|
|
174
|
+
n++;
|
|
175
|
+
});
|
|
176
|
+
return n;
|
|
177
|
+
},
|
|
178
|
+
toArray: function(children) {
|
|
179
|
+
return mapChildren(children, function(child) {
|
|
180
|
+
return child;
|
|
181
|
+
}) || [];
|
|
182
|
+
},
|
|
183
|
+
only: function(children) {
|
|
184
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
185
|
+
return children;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
189
|
+
exports.Children = Children;
|
|
190
|
+
exports.Component = Component;
|
|
191
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
192
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
193
|
+
exports.PureComponent = PureComponent;
|
|
194
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
195
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
196
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
197
|
+
exports.__COMPILER_RUNTIME = {
|
|
198
|
+
__proto__: null,
|
|
199
|
+
c: function(size) {
|
|
200
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
exports.cache = function(fn) {
|
|
204
|
+
return function() {
|
|
205
|
+
return fn.apply(null, arguments);
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
exports.cacheSignal = function() {
|
|
209
|
+
return null;
|
|
210
|
+
};
|
|
211
|
+
exports.cloneElement = function(element, config, children) {
|
|
212
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
213
|
+
var props = assign({}, element.props), key = element.key;
|
|
214
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
215
|
+
var propName = arguments.length - 2;
|
|
216
|
+
if (1 === propName) props.children = children;
|
|
217
|
+
else if (1 < propName) {
|
|
218
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
219
|
+
props.children = childArray;
|
|
220
|
+
}
|
|
221
|
+
return ReactElement(element.type, key, props);
|
|
222
|
+
};
|
|
223
|
+
exports.createContext = function(defaultValue) {
|
|
224
|
+
defaultValue = {
|
|
225
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
226
|
+
_currentValue: defaultValue,
|
|
227
|
+
_currentValue2: defaultValue,
|
|
228
|
+
_threadCount: 0,
|
|
229
|
+
Provider: null,
|
|
230
|
+
Consumer: null
|
|
231
|
+
};
|
|
232
|
+
defaultValue.Provider = defaultValue;
|
|
233
|
+
defaultValue.Consumer = {
|
|
234
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
235
|
+
_context: defaultValue
|
|
236
|
+
};
|
|
237
|
+
return defaultValue;
|
|
238
|
+
};
|
|
239
|
+
exports.createElement = function(type, config, children) {
|
|
240
|
+
var propName, props = {}, key = null;
|
|
241
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
242
|
+
var childrenLength = arguments.length - 2;
|
|
243
|
+
if (1 === childrenLength) props.children = children;
|
|
244
|
+
else if (1 < childrenLength) {
|
|
245
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
246
|
+
props.children = childArray;
|
|
247
|
+
}
|
|
248
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
249
|
+
return ReactElement(type, key, props);
|
|
250
|
+
};
|
|
251
|
+
exports.createRef = function() {
|
|
252
|
+
return { current: null };
|
|
253
|
+
};
|
|
254
|
+
exports.forwardRef = function(render) {
|
|
255
|
+
return {
|
|
256
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
257
|
+
render
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
exports.isValidElement = isValidElement;
|
|
261
|
+
exports.lazy = function(ctor) {
|
|
262
|
+
return {
|
|
263
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
264
|
+
_payload: {
|
|
265
|
+
_status: -1,
|
|
266
|
+
_result: ctor
|
|
267
|
+
},
|
|
268
|
+
_init: lazyInitializer
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
exports.memo = function(type, compare) {
|
|
272
|
+
return {
|
|
273
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
274
|
+
type,
|
|
275
|
+
compare: void 0 === compare ? null : compare
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
exports.startTransition = function(scope) {
|
|
279
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
280
|
+
ReactSharedInternals.T = currentTransition;
|
|
281
|
+
try {
|
|
282
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
283
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
284
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
285
|
+
} catch (error) {
|
|
286
|
+
reportGlobalError(error);
|
|
287
|
+
} finally {
|
|
288
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
exports.unstable_useCacheRefresh = function() {
|
|
292
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
293
|
+
};
|
|
294
|
+
exports.use = function(usable) {
|
|
295
|
+
return ReactSharedInternals.H.use(usable);
|
|
296
|
+
};
|
|
297
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
298
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
299
|
+
};
|
|
300
|
+
exports.useCallback = function(callback, deps) {
|
|
301
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
302
|
+
};
|
|
303
|
+
exports.useContext = function(Context) {
|
|
304
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
305
|
+
};
|
|
306
|
+
exports.useDebugValue = function() {};
|
|
307
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
308
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
309
|
+
};
|
|
310
|
+
exports.useEffect = function(create, deps) {
|
|
311
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
312
|
+
};
|
|
313
|
+
exports.useEffectEvent = function(callback) {
|
|
314
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
315
|
+
};
|
|
316
|
+
exports.useId = function() {
|
|
317
|
+
return ReactSharedInternals.H.useId();
|
|
318
|
+
};
|
|
319
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
320
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
321
|
+
};
|
|
322
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
323
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
324
|
+
};
|
|
325
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
326
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
327
|
+
};
|
|
328
|
+
exports.useMemo = function(create, deps) {
|
|
329
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
330
|
+
};
|
|
331
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
332
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
333
|
+
};
|
|
334
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
335
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
336
|
+
};
|
|
337
|
+
exports.useRef = function(initialValue) {
|
|
338
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
339
|
+
};
|
|
340
|
+
exports.useState = function(initialState) {
|
|
341
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
342
|
+
};
|
|
343
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
344
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
345
|
+
};
|
|
346
|
+
exports.useTransition = function() {
|
|
347
|
+
return ReactSharedInternals.H.useTransition();
|
|
348
|
+
};
|
|
349
|
+
exports.version = "19.2.5";
|
|
350
|
+
})))();
|
|
351
|
+
//#endregion
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import "./cjs/react.production.js";
|
|
3
|
+
import { require_react_development } from "./cjs/react.development.js";
|
|
4
|
+
//#region ../loader/dist/node_modules/react/index.js
|
|
5
|
+
var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
module.exports = require_react_development();
|
|
7
|
+
}));
|
|
8
|
+
require_react();
|
|
9
|
+
//#endregion
|
|
10
|
+
export { require_react };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import "./cjs/react-jsx-runtime.production.js";
|
|
3
|
+
import { require_react_jsx_runtime_development } from "./cjs/react-jsx-runtime.development.js";
|
|
4
|
+
//#region ../loader/dist/node_modules/react/jsx-runtime.js
|
|
5
|
+
var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
module.exports = require_react_jsx_runtime_development();
|
|
7
|
+
}));
|
|
8
|
+
require_jsx_runtime();
|
|
9
|
+
//#endregion
|
|
10
|
+
export { require_jsx_runtime };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region ../loader/dist/packages/core/dist/color-opacity-map.js
|
|
2
|
+
/**
|
|
3
|
+
* Maps each color prop name to its corresponding opacity prop name.
|
|
4
|
+
* Used by the runtime (`getStyles`) and loader (`style-transform`) to merge
|
|
5
|
+
* a color value with its opacity before class generation.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* `bg="primary"` + `bgOpacity="75"` → class `bg-primary_75`
|
|
9
|
+
*/
|
|
10
|
+
const colorPropToOpacityProp = {
|
|
11
|
+
bg: "bgOpacity",
|
|
12
|
+
color: "colorOpacity",
|
|
13
|
+
textDecorationColor: "textDecorationColorOpacity",
|
|
14
|
+
borderColor: "borderColorOpacity",
|
|
15
|
+
borderYColor: "borderYColorOpacity",
|
|
16
|
+
borderXColor: "borderXColorOpacity",
|
|
17
|
+
borderStartColor: "borderStartColorOpacity",
|
|
18
|
+
borderLeftColor: "borderLeftColorOpacity",
|
|
19
|
+
borderEndColor: "borderEndColorOpacity",
|
|
20
|
+
borderRightColor: "borderRightColorOpacity",
|
|
21
|
+
borderTopColor: "borderTopColorOpacity",
|
|
22
|
+
borderBottomColor: "borderBottomColorOpacity",
|
|
23
|
+
divideColor: "divideColorOpacity",
|
|
24
|
+
outlineColor: "outlineColorOpacity",
|
|
25
|
+
ringColor: "ringColorOpacity",
|
|
26
|
+
ringOffsetColor: "ringOffsetColorOpacity",
|
|
27
|
+
fillColor: "fillColorOpacity",
|
|
28
|
+
strokeColor: "strokeColorOpacity",
|
|
29
|
+
shadowColor: "shadowColorOpacity",
|
|
30
|
+
caretColor: "caretColorOpacity"
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { colorPropToOpacityProp };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { safeTokenName } from "../../../../../utils/dist/string-utils/cssVar.js";
|
|
2
|
+
import "../../../../../utils/dist/index.js";
|
|
3
|
+
//#region ../loader/dist/packages/core/dist/compositeStyles.js
|
|
4
|
+
/**
|
|
5
|
+
* Runtime composite-styles config — set by the loader/codegen at build time.
|
|
6
|
+
* Maps composite-style group names to a `{ label, description?, styles }`
|
|
7
|
+
* definition where `styles` holds variant id -> style bag.
|
|
8
|
+
*/
|
|
9
|
+
let compositeStylesConfig = {};
|
|
10
|
+
/**
|
|
11
|
+
* Expand composite-style props into their constituent style props + marker classes.
|
|
12
|
+
*
|
|
13
|
+
* - Composite styles are lowest priority: explicit props always win
|
|
14
|
+
* - Nested composite styles are supported (a style bag can reference another group)
|
|
15
|
+
* - Circular references are detected and throw
|
|
16
|
+
* - Marker classes (e.g. "elevation-0") are returned for modifier targeting
|
|
17
|
+
*/
|
|
18
|
+
function expandCompositeStyles(props, config = compositeStylesConfig) {
|
|
19
|
+
const expanded = {};
|
|
20
|
+
const markers = [];
|
|
21
|
+
const seen = /* @__PURE__ */ new Set();
|
|
22
|
+
function expand(key, value) {
|
|
23
|
+
const def = config[key];
|
|
24
|
+
if (def && typeof value === "string") {
|
|
25
|
+
if (seen.has(key)) throw new Error(`Circular composite style: ${[...seen, key].join(" → ")}`);
|
|
26
|
+
seen.add(key);
|
|
27
|
+
markers.push(`${key}-${safeTokenName(value)}`);
|
|
28
|
+
const bag = def.styles[value];
|
|
29
|
+
if (bag) {
|
|
30
|
+
for (const [k, v] of Object.entries(bag)) if (!(k in expanded)) expand(k, v);
|
|
31
|
+
}
|
|
32
|
+
seen.delete(key);
|
|
33
|
+
} else if (!(key in expanded)) expanded[key] = value;
|
|
34
|
+
}
|
|
35
|
+
for (const [key, value] of Object.entries(props)) if (key in config) expand(key, value);
|
|
36
|
+
for (const [key, value] of Object.entries(props)) if (!(key in config)) expanded[key] = value;
|
|
37
|
+
return {
|
|
38
|
+
expanded,
|
|
39
|
+
markerClasses: markers
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { expandCompositeStyles };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { require_react } from "../../../node_modules/react/index.js";
|
|
3
|
+
import { require_jsx_runtime } from "../../../node_modules/react/jsx-runtime.js";
|
|
4
|
+
//#region ../loader/dist/packages/core/dist/createProvider.js
|
|
5
|
+
require_react();
|
|
6
|
+
require_jsx_runtime();
|
|
7
|
+
//#endregion
|