add all frontend files

This commit is contained in:
2026-01-17 15:16:36 -05:00
parent ff16ae7858
commit e40287e4aa
25704 changed files with 1935289 additions and 0 deletions

8
node_modules/rc-util/es/Children/mapSelf.js generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import React from 'react';
function mirror(o) {
return o;
}
export default function mapSelf(children) {
// return ReactFragment
return React.Children.map(children, mirror);
}

5
node_modules/rc-util/es/Children/toArray.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import React from 'react';
export interface Option {
keepEmpty?: boolean;
}
export default function toArray(children: React.ReactNode, option?: Option): React.ReactElement[];

19
node_modules/rc-util/es/Children/toArray.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
import isFragment from "../React/isFragment";
import React from 'react';
export default function toArray(children) {
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var ret = [];
React.Children.forEach(children, function (child) {
if ((child === undefined || child === null) && !option.keepEmpty) {
return;
}
if (Array.isArray(child)) {
ret = ret.concat(toArray(child));
} else if (isFragment(child) && child.props) {
ret = ret.concat(toArray(child.props.children, option));
} else {
ret.push(child);
}
});
return ret;
}