@lobehub/ui 1.152.3 → 1.153.1
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/es/AuroraBackground/index.js +3 -2
- package/es/Hero/index.js +6 -2
- package/es/Hero/style.js +1 -8
- package/package.json +10 -10
|
@@ -12,13 +12,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
var useStyles = createStyles(function (_ref) {
|
|
14
14
|
var isDarkMode = _ref.isDarkMode,
|
|
15
|
-
css = _ref.css
|
|
15
|
+
css = _ref.css,
|
|
16
|
+
responsive = _ref.responsive;
|
|
16
17
|
var aurora = keyframes(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n 0% {\n background-position: 50% 50%, 50% 50%;\n }\n 100% {\n background-position: 350% 50%, 350% 50%;\n }\n"])));
|
|
17
18
|
var dark = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-image: repeating-linear-gradient(\n 100deg,\n rgb(0, 0, 0) 0%,\n rgb(0, 0, 0) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(0, 0, 0) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n "])));
|
|
18
19
|
var light = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-image: repeating-linear-gradient(\n 100deg,\n rgb(255, 255, 255) 0%,\n rgb(255, 255, 255) 7%,\n rgba(0, 0, 0, 0%) 10%,\n rgba(0, 0, 0, 0%) 12%,\n rgb(255, 255, 255) 16%\n ),\n repeating-linear-gradient(\n 100deg,\n rgb(59, 130, 246) 10%,\n rgb(165, 180, 252) 15%,\n rgb(147, 197, 253) 20%,\n rgb(221, 214, 254) 25%,\n rgb(96, 165, 250) 30%\n );\n "])));
|
|
19
20
|
var background = isDarkMode ? dark : light;
|
|
20
21
|
return {
|
|
21
|
-
bg: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n animation: ", " 100s linear infinite;\n\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: blur(10px) invert(", ");\n\n pointer-events: none;\n\n position: absolute;\n inset: -10px;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n opacity: ", ";\n\n will-change: transform;\n\n &::after {\n ", ";\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ", " 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n "])), background, aurora, isDarkMode ? 0 : 1, isDarkMode ? 0.3 : 0.6, background, aurora),
|
|
22
|
+
bg: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n animation: ", " 100s linear infinite;\n\n background-size: 300%, 200%;\n background-position:\n 50% 50%,\n 50% 50%;\n filter: blur(10px) invert(", ");\n\n pointer-events: none;\n\n position: absolute;\n inset: -10px;\n\n mask-image: radial-gradient(at 100% 0, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0%) 70%);\n\n opacity: ", ";\n\n will-change: transform;\n\n max-height: 100vh;\n\n &::after {\n ", ";\n position: absolute;\n\n content: '';\n\n inset: 0;\n\n animation: ", " 100s linear infinite;\n\n mix-blend-mode: difference;\n background-attachment: fixed;\n background-size: 200%, 100%;\n }\n\n ", " {\n transform: scale(2);\n max-height: 25vh;\n }\n "])), background, aurora, isDarkMode ? 0 : 1, isDarkMode ? 0.3 : 0.6, background, aurora, responsive.mobile),
|
|
22
23
|
wrapper: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 0;\n inset: 0;\n overflow: hidden;\n "])))
|
|
23
24
|
};
|
|
24
25
|
});
|
package/es/Hero/index.js
CHANGED
|
@@ -75,11 +75,15 @@ var Hero = /*#__PURE__*/memo(function (_ref) {
|
|
|
75
75
|
distribution: 'center',
|
|
76
76
|
horizontal: true,
|
|
77
77
|
children: /*#__PURE__*/_jsxs(Center, {
|
|
78
|
-
children: [title && /*#__PURE__*/_jsx(
|
|
78
|
+
children: [title && /*#__PURE__*/_jsx(Center, {
|
|
79
|
+
as: 'h1',
|
|
79
80
|
className: styles.title,
|
|
80
81
|
dangerouslySetInnerHTML: {
|
|
81
82
|
__html: title
|
|
82
|
-
}
|
|
83
|
+
},
|
|
84
|
+
gap: '0.25em',
|
|
85
|
+
horizontal: true,
|
|
86
|
+
wrap: 'wrap'
|
|
83
87
|
}), description && /*#__PURE__*/_jsx("p", {
|
|
84
88
|
className: styles.desc,
|
|
85
89
|
dangerouslySetInnerHTML: {
|
package/es/Hero/style.js
CHANGED
|
@@ -10,13 +10,6 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
10
10
|
actions: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin-block-start: 24px;\n\n button {\n padding-inline: 32px !important;\n font-weight: 500;\n }\n\n ", " {\n flex-direction: column;\n gap: 16px;\n width: 100%;\n margin-block-start: 24px;\n\n button {\n width: 100%;\n }\n }\n "])), responsive.mobile),
|
|
11
11
|
container: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: relative;\n box-sizing: border-box;\n text-align: center;\n "]))),
|
|
12
12
|
desc: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-block-start: 0;\n font-size: ", "px;\n color: ", ";\n text-align: center;\n\n ", " {\n margin-block: 24px;\n margin-inline: 16px;\n font-size: ", "px;\n }\n "])), token.fontSizeHeading3, token.colorTextSecondary, responsive.mobile, token.fontSizeHeading5),
|
|
13
|
-
title: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 10;\n margin: 0;\n font-size: 100px;\n
|
|
14
|
-
mobile: {
|
|
15
|
-
display: 'flex',
|
|
16
|
-
flexDirection: 'column',
|
|
17
|
-
fontSize: 72,
|
|
18
|
-
lineHeight: 1.2
|
|
19
|
-
}
|
|
20
|
-
}), stylish.gradientAnimation)
|
|
13
|
+
title: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n z-index: 10;\n\n margin: 0;\n\n font-size: min(100px, 10vw);\n line-height: 1.2;\n text-align: center;\n\n b {\n ", "\n position: relative;\n z-index: 5;\n background-clip: text;\n\n -webkit-text-fill-color: transparent;\n\n &::selection {\n -webkit-text-fill-color: #000 !important;\n }\n }\n\n ", " {\n font-size: 64px;\n }\n "])), stylish.gradientAnimation, responsive.mobile)
|
|
21
14
|
};
|
|
22
15
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.153.1",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"lint:circular": "dpdm src/**/*.{ts,tsx} --warning false --tree false --exit-code circular:1 -T true",
|
|
44
44
|
"lint:md": "remark . --quiet --frail --output",
|
|
45
45
|
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
46
|
-
"prepare": "husky
|
|
46
|
+
"prepare": "husky && npm run setup",
|
|
47
47
|
"prepublishOnly": "father doctor && npm run build",
|
|
48
48
|
"prettier": "prettier -c --write --no-error-on-unmatched-pattern \"**/**\"",
|
|
49
49
|
"pull": "git pull",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@babel/runtime": "^7.26.0",
|
|
79
|
-
"@dnd-kit/core": "^6.
|
|
79
|
+
"@dnd-kit/core": "^6.2.0",
|
|
80
80
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
81
81
|
"@dnd-kit/sortable": "^8.0.0",
|
|
82
82
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@react-spring/web": "^9.7.5",
|
|
89
89
|
"@shikijs/transformers": "^1.23.1",
|
|
90
90
|
"@splinetool/runtime": "^0.9.526",
|
|
91
|
-
"chroma-js": "^
|
|
91
|
+
"chroma-js": "^3.1.2",
|
|
92
92
|
"dayjs": "^1.11.13",
|
|
93
93
|
"emoji-mart": "^5.6.0",
|
|
94
94
|
"emoji-regex": "^10.4.0",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"ts-md5": "^1.3.1",
|
|
121
121
|
"url-join": "^5.0.0",
|
|
122
122
|
"use-merge-value": "^1.2.0",
|
|
123
|
-
"uuid": "^
|
|
123
|
+
"uuid": "^11.0.3"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@ant-design/icons": "^5.5.1",
|
|
@@ -141,15 +141,15 @@
|
|
|
141
141
|
"@vitest/coverage-v8": "~1.2.2",
|
|
142
142
|
"babel-plugin-antd-style": "^1.0.4",
|
|
143
143
|
"commitlint": "^19.6.0",
|
|
144
|
-
"concurrently": "^
|
|
144
|
+
"concurrently": "^9.1.0",
|
|
145
145
|
"cross-env": "^7.0.3",
|
|
146
146
|
"dpdm": "^3.14.0",
|
|
147
147
|
"dumi": "^2.4.14",
|
|
148
|
-
"dumi-theme-lobehub": "^1.
|
|
148
|
+
"dumi-theme-lobehub": "^1.9.1",
|
|
149
149
|
"eslint": "^8.57.1",
|
|
150
150
|
"father": "^4.5.1",
|
|
151
|
-
"husky": "9.
|
|
152
|
-
"jsdom": "^
|
|
151
|
+
"husky": "^9.1.7",
|
|
152
|
+
"jsdom": "^25.0.1",
|
|
153
153
|
"lint-staged": "^15.2.10",
|
|
154
154
|
"prettier": "^3.3.3",
|
|
155
155
|
"react": "^18.3.1",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"remark-cli": "^11.0.0",
|
|
159
159
|
"semantic-release": "^21.1.2",
|
|
160
160
|
"stylelint": "^15.11.0",
|
|
161
|
-
"typescript": "^5.
|
|
161
|
+
"typescript": "^5.7.2",
|
|
162
162
|
"unist-util-is": "^6.0.0",
|
|
163
163
|
"unist-util-visit": "^5.0.0",
|
|
164
164
|
"vitest": "~1.2.2"
|