@lobehub/ui 1.40.0 → 1.41.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.
@@ -0,0 +1,3 @@
1
+ import { Theme } from 'antd-style';
2
+ declare const _default: (token: Theme) => import("antd-style").SerializedStyles;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { css } from 'antd-style';
4
+ export default (function (token) {
5
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding: 4px 8px;\n\n color: ", ";\n\n background-color: ", ";\n border-radius: ", "px;\n }\n\n .ant-tooltip-arrow {\n &::before,\n &::after {\n background: ", ";\n }\n }\n"])), token.colorBgLayout, token.colorText, token.borderRadiusSM, token.colorText);
6
+ });
@@ -0,0 +1,3 @@
1
+ import { Theme } from 'antd-style';
2
+ declare const _default: (token: Theme) => import("antd-style").SerializedStyles;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
+ var _templateObject;
3
+ import { css } from 'antd-style';
4
+ export default (function (token) {
5
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html,\n 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 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 -webkit-text-fill-color: unset !important;\n }\n\n * {\n box-sizing: border-box;\n vertical-align: baseline;\n }\n\n @media only screen and (min-width: 574px) {\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 }\n"])), token.fontFamily, token.fontSize, token.colorTextBase, token.colorBgLayout, token.fontFamilyCode, token.fontFamilyCode, token.yellow9, token.motionEaseOut, token.colorText, token.colorFill);
6
+ });
@@ -0,0 +1,8 @@
1
+ import { createGlobalStyle } from 'antd-style';
2
+ import antdOverride from "./antdOverride";
3
+ import global from "./global";
4
+ var GlobalStyle = createGlobalStyle(function (_ref) {
5
+ var theme = _ref.theme;
6
+ return [global(theme), antdOverride(theme)];
7
+ });
8
+ export default GlobalStyle;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.40.0",
3
+ "version": "1.41.0",
4
4
  "description": "Lobe UI is an open-source UI component library for building chatbot web apps",
5
5
  "keywords": [
6
6
  "lobehub",
@@ -1,47 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
2
- var _templateObject;
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 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 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\t -webkit-text-fill-color: unset !important;\n }\n\n * {\n\t box-sizing: border-box;\n\t vertical-align: baseline;\n }\n\n @media only screen and (min-width: 574px) {\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 }\n\n .ant-tooltip-inner {\n\t display: flex;\n\t align-items: center;\n\t justify-content: center;\n\n\t min-height: unset;\n\t padding: 4px 8px;\n\n\t color: ", ";\n\n\t background-color: ", ";\n\t border-radius: ", "px;\n }\n\n .ant-tooltip-arrow {\n\t &::before,\n\t &::after {\n\t\t background: ", ";\n\t }\n }\n"])), function (_ref) {
5
- var theme = _ref.theme;
6
- return theme.fontFamily;
7
- }, function (_ref2) {
8
- var theme = _ref2.theme;
9
- return theme.fontSize;
10
- }, function (_ref3) {
11
- var theme = _ref3.theme;
12
- return theme.colorTextBase;
13
- }, function (_ref4) {
14
- var theme = _ref4.theme;
15
- return theme.colorBgLayout;
16
- }, function (_ref5) {
17
- var theme = _ref5.theme;
18
- return theme.fontFamilyCode;
19
- }, function (_ref6) {
20
- var theme = _ref6.theme;
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;
34
- }, function (_ref11) {
35
- var theme = _ref11.theme;
36
- return theme.colorBgLayout;
37
- }, function (_ref12) {
38
- var theme = _ref12.theme;
39
- return theme.colorText;
40
- }, function (_ref13) {
41
- var theme = _ref13.theme;
42
- return theme.borderRadiusSM;
43
- }, function (_ref14) {
44
- var theme = _ref14.theme;
45
- return theme.colorText;
46
- });
47
- export default GlobalStyle;