Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-09 14:52:46 +00:00
parent 42a0efe70b
commit 47fa6d98b2
28661 changed files with 2421771 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import React from 'react';
import type { WithFalse } from '../../typing';
export type GlobalFooterProps = {
links?: WithFalse<{
key?: string;
title: React.ReactNode;
href: string;
blankTarget?: boolean;
}[]>;
copyright?: React.ReactNode;
style?: React.CSSProperties;
prefixCls?: string;
className?: string;
};
declare const GlobalFooter: ({ className, prefixCls, links, copyright, style, }: GlobalFooterProps) => React.JSX.Element | null;
export { GlobalFooter };

View File

@@ -0,0 +1,48 @@
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.GlobalFooter = void 0;
var _antd = require("antd");
var _classnames = _interopRequireDefault(require("classnames"));
var _react = _interopRequireWildcard(require("react"));
var _style = require("./style");
var _jsxRuntime = require("react/jsx-runtime");
var GlobalFooter = exports.GlobalFooter = function GlobalFooter(_ref) {
var className = _ref.className,
prefixCls = _ref.prefixCls,
links = _ref.links,
copyright = _ref.copyright,
style = _ref.style;
var context = (0, _react.useContext)(_antd.ConfigProvider.ConfigContext);
var baseClassName = context.getPrefixCls(prefixCls || 'pro-global-footer');
var _useStyle = (0, _style.useStyle)(baseClassName),
wrapSSR = _useStyle.wrapSSR,
hashId = _useStyle.hashId;
if ((links == null || links === false || Array.isArray(links) && links.length === 0) && (copyright == null || copyright === false)) {
return null;
}
return wrapSSR( /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
className: (0, _classnames.default)(baseClassName, hashId, className),
style: style,
children: [links && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
className: "".concat(baseClassName, "-list ").concat(hashId).trim(),
children: links.map(function (link) {
return /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
className: "".concat(baseClassName, "-list-link ").concat(hashId).trim(),
title: link.key,
target: link.blankTarget ? '_blank' : '_self',
href: link.href,
rel: "noreferrer",
children: link.title
}, link.key);
})
}), copyright && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
className: "".concat(baseClassName, "-copyright ").concat(hashId).trim(),
children: copyright
})]
}));
};

View File

@@ -0,0 +1,10 @@
/// <reference types="react" />
import type { ProAliasToken } from '@ant-design/pro-provider';
export interface GlobalFooterToken extends ProAliasToken {
componentCls: string;
probgLayout?: string;
}
export declare function useStyle(prefixCls: string): {
wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
hashId: string;
};

View File

@@ -0,0 +1,47 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useStyle = useStyle;
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
var _proProvider = require("@ant-design/pro-provider");
var genFooterToolBarStyle = function genFooterToolBarStyle(token) {
return (0, _defineProperty2.default)({}, token.componentCls, {
marginBlock: 0,
marginBlockStart: 48,
marginBlockEnd: 24,
marginInline: 0,
paddingBlock: 0,
paddingInline: 16,
textAlign: 'center',
'&-list': {
marginBlockEnd: 8,
color: token.colorTextSecondary,
'&-link': {
color: token.colorTextSecondary,
textDecoration: token.linkDecoration
},
'*:not(:last-child)': {
marginInlineEnd: 8
},
'&:hover': {
color: token.colorPrimary
}
},
'&-copyright': {
fontSize: '14px',
color: token.colorText
}
});
};
function useStyle(prefixCls) {
return (0, _proProvider.useStyle)('ProLayoutFooter', function (token) {
var proCardToken = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, token), {}, {
componentCls: ".".concat(prefixCls)
});
return [genFooterToolBarStyle(proCardToken)];
});
}