@lobehub/ui 1.26.2 → 1.26.4
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/README.md
CHANGED
|
@@ -106,7 +106,7 @@ $ pnpm start
|
|
|
106
106
|
|
|
107
107
|
<!-- CONTRIBUTION GROUP -->
|
|
108
108
|
|
|
109
|
-
> 📊 Total: <kbd>**
|
|
109
|
+
> 📊 Total: <kbd>**5**</kbd>
|
|
110
110
|
|
|
111
111
|
<a href="https://github.com/canisminor1990" title="canisminor1990">
|
|
112
112
|
<img src="https://avatars.githubusercontent.com/u/17870709?v=4" width="50" />
|
|
@@ -120,6 +120,9 @@ $ pnpm start
|
|
|
120
120
|
<a href="https://github.com/actions-user" title="actions-user">
|
|
121
121
|
<img src="https://avatars.githubusercontent.com/u/65916846?v=4" width="50" />
|
|
122
122
|
</a>
|
|
123
|
+
<a href="https://github.com/meganjohnson96" title="meganjohnson96">
|
|
124
|
+
<img src="https://avatars.githubusercontent.com/u/136729222?v=4" width="50" />
|
|
125
|
+
</a>
|
|
123
126
|
|
|
124
127
|
<!-- CONTRIBUTION END -->
|
|
125
128
|
|
|
@@ -27,7 +27,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
27
27
|
choiceActive: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n background: ", ";\n "])), token.colorTextLightSolid, token.colorPrimary),
|
|
28
28
|
container: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: relative;\n padding: 12px;\n border-radius: 4px;\n\n ", " {\n padding-inline: 0;\n }\n\n &:hover {\n background: ", ";\n\n .", " {\n opacity: 1;\n }\n }\n "])), responsive.mobile, token.colorFillQuaternary, toolbarClassName),
|
|
29
29
|
floatAction: cx(toolbarClassName, css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: absolute;\n z-index: ", ";\n top: 4px;\n right: 4px;\n\n opacity: 0;\n "])), token.zIndexPopupBase - 100)),
|
|
30
|
-
md: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow:
|
|
30
|
+
md: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n overflow-x: hidden;\n overflow-y: auto;\n max-width: 100%;\n .", " {\n max-width: 100%;\n }\n "])), responsive.mobile),
|
|
31
31
|
system: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n filter: invert(1);\n "]))),
|
|
32
32
|
user: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: linear-gradient(to right, ", ", ", ");\n "])), token.green3, token.gold3)
|
|
33
33
|
};
|
|
@@ -10,7 +10,7 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
10
10
|
var prefix = "".concat(prefixCls, "-highlighter");
|
|
11
11
|
return {
|
|
12
12
|
loading: cx(stylish.blur, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n z-index: 10;\n top: 0;\n right: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n height: 34px;\n padding: 0 8px;\n\n font-family: ", ";\n color: ", ";\n\n border-radius: ", ";\n "])), token.fontFamilyCode, token.colorTextTertiary, token.borderRadius)),
|
|
13
|
-
prism: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n pre {\n overflow
|
|
14
|
-
shiki: cx("".concat(prefix, "-shiki"), css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .shiki {\n overflow-x:
|
|
13
|
+
prism: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n pre {\n overflow: auto;\n font-family: ", " !important;\n }\n "])), token.fontFamilyCode),
|
|
14
|
+
shiki: cx("".concat(prefix, "-shiki"), css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .shiki {\n overflow-x: auto;\n background: none !important;\n }\n "]))))
|
|
15
15
|
};
|
|
16
16
|
});
|
package/es/MessageModal/style.js
CHANGED
|
@@ -5,7 +5,7 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
5
5
|
var css = _ref.css,
|
|
6
6
|
prefixCls = _ref.prefixCls;
|
|
7
7
|
return {
|
|
8
|
-
body: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-y:
|
|
8
|
+
body: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n overflow-x: hidden;\n overflow-y: auto;\n max-height: 70vh;\n "]))),
|
|
9
9
|
modal: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 70%;\n .", "-modal-header {\n margin-bottom: 24px;\n }\n "])), prefixCls)
|
|
10
10
|
};
|
|
11
11
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
3
|
import { createGlobalStyle } from 'antd-style';
|
|
4
|
-
var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n html,body {\n --font-settings: \"cv01\", \"tnum\", \"kern\";\n --font-variations: \"opsz\" auto, tabular-nums;\n\n overflow-x: hidden;\n\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ", ";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-tap-highlight-color: transparent;\n }\n\n body {\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n }\n\n\n
|
|
4
|
+
var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\n html,body {\n --font-settings: \"cv01\", \"tnum\", \"kern\";\n --font-variations: \"opsz\" auto, tabular-nums;\n\n overflow-x: hidden;\n overflow-y: auto;\n\n margin: 0;\n padding: 0;\n\n font-family: ", ";\n font-size: ", "px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n line-height: 1;\n color: ", ";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n vertical-align: baseline;\n\n color-scheme: dark;\n background-color: ", ";\n\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n -webkit-overflow-scrolling:touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n body {\n overflow-x: hidden;\n overflow-y: auto;\n height: 100vh;\n }\n\n #root {\n min-height: 100vh;\n }\n\n code {\n font-family: ", " !important;\n\n span {\n font-family: ", " !important;\n }\n }\n\n p {\n text-align: justify;\n word-wrap: break-word;\n }\n\n ::selection {\n color: #000;\n background: ", ";\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n\n ::-webkit-scrollbar {\n cursor: pointer;\n width: 4px;\n height: 4px;\n background-color: transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n cursor: pointer;\n background-color: transparent;\n border-radius: 2px;\n transition: background-color 500ms ", ";\n\n &:hover {\n background-color: ", ";\n }\n }\n\n ::-webkit-scrollbar-corner {\n display: none;\n width: 0;\n height: 0;\n }\n\n &:hover {\n ::-webkit-scrollbar-thumb {\n background-color: ", ";\n }\n }\n }\n"])), function (_ref) {
|
|
5
5
|
var theme = _ref.theme;
|
|
6
6
|
return theme.fontFamily;
|
|
7
7
|
}, function (_ref2) {
|
|
@@ -15,9 +15,21 @@ var GlobalStyle = createGlobalStyle(_templateObject || (_templateObject = _tagge
|
|
|
15
15
|
return theme.colorBgLayout;
|
|
16
16
|
}, function (_ref5) {
|
|
17
17
|
var theme = _ref5.theme;
|
|
18
|
-
return theme.
|
|
18
|
+
return theme.fontFamilyCode;
|
|
19
19
|
}, function (_ref6) {
|
|
20
20
|
var theme = _ref6.theme;
|
|
21
21
|
return theme.fontFamilyCode;
|
|
22
|
+
}, function (_ref7) {
|
|
23
|
+
var theme = _ref7.theme;
|
|
24
|
+
return theme.yellow9;
|
|
25
|
+
}, function (_ref8) {
|
|
26
|
+
var theme = _ref8.theme;
|
|
27
|
+
return theme.motionEaseOut;
|
|
28
|
+
}, function (_ref9) {
|
|
29
|
+
var theme = _ref9.theme;
|
|
30
|
+
return theme.colorText;
|
|
31
|
+
}, function (_ref10) {
|
|
32
|
+
var theme = _ref10.theme;
|
|
33
|
+
return theme.colorFill;
|
|
22
34
|
});
|
|
23
35
|
export default GlobalStyle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.4",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building chatbot web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
"prism-react-renderer": "^2",
|
|
92
92
|
"rc-footer": "^0",
|
|
93
93
|
"re-resizable": "^6",
|
|
94
|
-
"react-font-loader": "^2",
|
|
95
94
|
"react-layout-kit": "^1",
|
|
96
95
|
"react-markdown": "^8",
|
|
97
96
|
"react-rnd": "^10",
|