@lobehub/ui 1.10.0 → 1.11.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/ActionIcon/style.js +1 -1
- package/es/Highlighter/style.js +1 -2
- package/es/Input/index.js +7 -5
- package/es/Input/style.js +2 -3
- package/es/Markdown/style.js +1 -1
- package/es/SearchBar/index.js +2 -1
- package/es/Snippet/style.js +1 -2
- package/es/StroyBook/style.js +1 -1
- package/es/ThemeProvider/index.d.ts +2 -6
- package/es/ThemeProvider/index.js +8 -18
- package/es/styles/algorithms/generateColorPalette.d.ts +11 -0
- package/es/styles/algorithms/generateColorPalette.js +31 -0
- package/es/styles/{customStylish.d.ts → algorithms/generateCustomStylish.d.ts} +1 -1
- package/es/styles/{customStylish.js → algorithms/generateCustomStylish.js} +1 -1
- package/es/styles/algorithms/generateCustomToken.d.ts +3 -0
- package/es/styles/algorithms/generateCustomToken.js +57 -0
- package/es/styles/algorithms/generateTheme.d.ts +5 -0
- package/es/styles/algorithms/generateTheme.js +18 -0
- package/es/styles/colors.d.ts +38 -0
- package/es/styles/colors.js +176 -0
- package/es/styles/index.d.ts +3 -3
- package/es/styles/index.js +3 -3
- package/es/styles/theme/base.d.ts +2 -2
- package/es/styles/theme/base.js +8 -14
- package/es/styles/theme/dark.d.ts +3 -4
- package/es/styles/theme/dark.js +40 -71
- package/es/styles/theme/light.d.ts +3 -4
- package/es/styles/theme/light.js +41 -32
- package/es/types/customToken.d.ts +1027 -0
- package/es/types/global.d.ts +12 -0
- package/es/types/index.d.ts +5 -28
- package/es/types/index.js +1 -0
- package/lib/ActionIcon/index.js +77 -79
- package/lib/ActionIcon/style.js +17 -61
- package/lib/Avatar/index.js +62 -67
- package/lib/Chat/const.js +6 -27
- package/lib/Chat/index.js +24 -28
- package/lib/Chat/store/index.js +46 -40
- package/lib/Chat/store/initialState.js +6 -27
- package/lib/Chat/store/messageReducer.js +51 -58
- package/lib/Chat/store/selectors.js +44 -46
- package/lib/Chat/store/store.js +242 -115
- package/lib/Chat/types.js +4 -16
- package/lib/Chat/utils/fetch.js +104 -68
- package/lib/ContextMenu/MenuItem/icons.js +48 -66
- package/lib/ContextMenu/MenuItem/index.js +73 -66
- package/lib/ContextMenu/MenuItem/style.js +19 -89
- package/lib/ContextMenu/index.js +194 -178
- package/lib/ContextMenu/style.js +17 -85
- package/lib/ContextMenu/types/index.js +15 -18
- package/lib/ContextMenu/types/menuItem.js +4 -16
- package/lib/Conversation/App.js +47 -50
- package/lib/Conversation/ChatList/MessageItem/Content.js +98 -93
- package/lib/Conversation/ChatList/MessageItem/Toolbar.js +94 -104
- package/lib/Conversation/ChatList/MessageItem/index.js +125 -157
- package/lib/Conversation/ChatList/index.js +64 -58
- package/lib/Conversation/InputArea/ActionBar.js +74 -92
- package/lib/Conversation/InputArea/index.js +103 -142
- package/lib/Conversation/StoreUpdater.js +28 -48
- package/lib/Conversation/index.js +30 -42
- package/lib/CopyButton/index.js +37 -62
- package/lib/DraggablePanel/index.js +192 -207
- package/lib/DraggablePanel/style.js +30 -278
- package/lib/DraggablePanel/utils.js +14 -35
- package/lib/EditableMessage/index.js +66 -89
- package/lib/EditableMessageList/index.js +97 -112
- package/lib/EditableText/index.js +36 -49
- package/lib/Highlighter/SyntaxHighlighter/Prism.js +43 -38
- package/lib/Highlighter/SyntaxHighlighter/index.js +62 -53
- package/lib/Highlighter/SyntaxHighlighter/style.js +18 -56
- package/lib/Highlighter/index.js +52 -58
- package/lib/Highlighter/style.js +22 -102
- package/lib/Icon/index.js +29 -36
- package/lib/Input/index.js +45 -39
- package/lib/Input/style.js +17 -68
- package/lib/List/ListItem/index.js +108 -150
- package/lib/List/ListItem/time.js +15 -47
- package/lib/List/index.js +9 -37
- package/lib/Logo/Divider.js +21 -34
- package/lib/Logo/Logo3D.js +17 -33
- package/lib/Logo/LogoFlat.js +108 -118
- package/lib/Logo/LogoHighContrast.js +30 -33
- package/lib/Logo/LogoText.js +21 -34
- package/lib/Logo/index.js +97 -59
- package/lib/Logo/style.js +13 -36
- package/lib/Markdown/Code.js +16 -30
- package/lib/Markdown/CodeBlock.js +33 -65
- package/lib/Markdown/index.js +35 -54
- package/lib/Markdown/style.js +15 -125
- package/lib/MessageInput/index.js +60 -56
- package/lib/MessageModal/index.js +80 -91
- package/lib/SearchBar/index.js +86 -72
- package/lib/SearchBar/style.js +18 -46
- package/lib/SideNav/index.js +43 -31
- package/lib/SideNav/style.js +13 -43
- package/lib/Snippet/index.js +42 -45
- package/lib/Snippet/style.js +13 -72
- package/lib/StroyBook/index.js +60 -61
- package/lib/StroyBook/style.js +19 -87
- package/lib/Swatches/index.js +35 -53
- package/lib/TabsNav/index.js +23 -31
- package/lib/TabsNav/style.js +17 -60
- package/lib/ThemeProvider/GlobalStyle.js +29 -92
- package/lib/ThemeProvider/index.d.ts +2 -6
- package/lib/ThemeProvider/index.js +44 -69
- package/lib/ThemeSwitch/index.js +62 -46
- package/lib/Tooltip/index.js +26 -31
- package/lib/Tooltip/style.js +13 -49
- package/lib/components/ControlInput.js +86 -87
- package/lib/hooks/useCopied.js +27 -37
- package/lib/hooks/useHighlight.js +65 -70
- package/lib/index.js +211 -120
- package/lib/styles/algorithms/generateColorPalette.d.ts +11 -0
- package/lib/styles/algorithms/generateColorPalette.js +40 -0
- package/lib/styles/{customStylish.d.ts → algorithms/generateCustomStylish.d.ts} +1 -1
- package/lib/styles/algorithms/generateCustomStylish.js +27 -0
- package/lib/styles/algorithms/generateCustomToken.d.ts +3 -0
- package/lib/styles/algorithms/generateCustomToken.js +65 -0
- package/lib/styles/algorithms/generateTheme.d.ts +5 -0
- package/lib/styles/algorithms/generateTheme.js +28 -0
- package/lib/styles/colors.d.ts +38 -0
- package/lib/styles/colors.js +183 -0
- package/lib/styles/index.d.ts +3 -3
- package/lib/styles/index.js +25 -20
- package/lib/styles/theme/base.d.ts +2 -2
- package/lib/styles/theme/base.js +17 -44
- package/lib/styles/theme/dark.d.ts +3 -4
- package/lib/styles/theme/dark.js +45 -119
- package/lib/styles/theme/light.d.ts +3 -4
- package/lib/styles/theme/light.js +47 -61
- package/lib/types/customToken.d.ts +1027 -0
- package/lib/types/global.d.ts +12 -0
- package/lib/types/index.d.ts +5 -28
- package/lib/types/index.js +5 -0
- package/lib/utils/colorUtils.js +14 -48
- package/package.json +1 -1
- package/es/styles/algorithms/colorRelationship.d.ts +0 -6
- package/es/styles/algorithms/colorRelationship.js +0 -88
- package/es/styles/algorithms/index.d.ts +0 -15
- package/es/styles/algorithms/index.js +0 -66
- package/es/styles/algorithms/paletteGenerator.d.ts +0 -51
- package/es/styles/algorithms/paletteGenerator.js +0 -74
- package/es/styles/antdTheme.d.ts +0 -2
- package/es/styles/antdTheme.js +0 -4
- package/es/styles/customToken.d.ts +0 -65
- package/es/styles/customToken.js +0 -24
- package/es/styles/theme/index.d.ts +0 -2
- package/es/styles/theme/index.js +0 -2
- package/lib/styles/algorithms/colorRelationship.d.ts +0 -6
- package/lib/styles/algorithms/colorRelationship.js +0 -87
- package/lib/styles/algorithms/index.d.ts +0 -15
- package/lib/styles/algorithms/index.js +0 -81
- package/lib/styles/algorithms/paletteGenerator.d.ts +0 -51
- package/lib/styles/algorithms/paletteGenerator.js +0 -91
- package/lib/styles/antdTheme.d.ts +0 -2
- package/lib/styles/antdTheme.js +0 -30
- package/lib/styles/customStylish.js +0 -118
- package/lib/styles/customToken.d.ts +0 -65
- package/lib/styles/customToken.js +0 -54
- package/lib/styles/theme/index.d.ts +0 -2
- package/lib/styles/theme/index.js +0 -32
|
@@ -1,64 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
lightColorPalettes: () => lightColorPalettes,
|
|
23
|
-
lightTheme: () => lightTheme
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
24
6
|
});
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
colorBgLayout: "#fafafa",
|
|
35
|
-
colorBgContainer: "#ffffff",
|
|
36
|
-
colorBgElevated: "#f2f2f2",
|
|
37
|
-
colorBgSpotlight: "#999999",
|
|
38
|
-
colorBorder: "#eaeaea",
|
|
39
|
-
colorBorderSecondary: "#eaeaea",
|
|
40
|
-
colorText: "#000000",
|
|
41
|
-
colorTextSecondary: "#444444",
|
|
42
|
-
colorTextTertiary: "#666666",
|
|
43
|
-
colorTextQuaternary: "#888888",
|
|
44
|
-
colorPrimary: "#000000",
|
|
45
|
-
colorFill: "rgba(0,0,0,0.1)",
|
|
46
|
-
colorFillSecondary: "rgba(0,0,0,0.075)",
|
|
47
|
-
colorFillTertiary: "rgba(0,0,0,0.05)",
|
|
48
|
-
colorFillQuaternary: "rgba(0,0,0,0)",
|
|
49
|
-
boxShadow: "0 12px 20px 6px rgb(104 112 118 / 0.08)",
|
|
50
|
-
boxShadowSecondary: "0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)",
|
|
51
|
-
colorLinkHover: "#3291ff",
|
|
52
|
-
colorLink: "#0070f3",
|
|
53
|
-
colorLinkActive: "#0761d1"
|
|
54
|
-
},
|
|
55
|
-
algorithm: (seedToken, mapToken) => ({
|
|
56
|
-
...mapToken,
|
|
57
|
-
...lightMode.tokens
|
|
58
|
-
})
|
|
59
|
-
};
|
|
60
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
-
0 && (module.exports = {
|
|
62
|
-
lightColorPalettes,
|
|
63
|
-
lightTheme
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _generateColorPalette = require("../algorithms/generateColorPalette");
|
|
10
|
+
var _colors = require("../colors");
|
|
11
|
+
var _base = require("./base");
|
|
12
|
+
var primaryToken = (0, _generateColorPalette.generateColorPalette)({
|
|
13
|
+
type: 'Primary',
|
|
14
|
+
scale: _colors.colorScales.bnw,
|
|
15
|
+
appearance: 'light'
|
|
64
16
|
});
|
|
17
|
+
var neutralToken = (0, _generateColorPalette.generateColorNeutralPalette)({
|
|
18
|
+
scale: _colors.colorScales.gray,
|
|
19
|
+
appearance: 'light'
|
|
20
|
+
});
|
|
21
|
+
var successToken = (0, _generateColorPalette.generateColorPalette)({
|
|
22
|
+
type: 'Success',
|
|
23
|
+
scale: _colors.colorScales.grass,
|
|
24
|
+
appearance: 'light'
|
|
25
|
+
});
|
|
26
|
+
var warningToken = (0, _generateColorPalette.generateColorPalette)({
|
|
27
|
+
type: 'Warning',
|
|
28
|
+
scale: _colors.colorScales.orange,
|
|
29
|
+
appearance: 'light'
|
|
30
|
+
});
|
|
31
|
+
var errorToken = (0, _generateColorPalette.generateColorPalette)({
|
|
32
|
+
type: 'Error',
|
|
33
|
+
scale: _colors.colorScales.tomato,
|
|
34
|
+
appearance: 'light'
|
|
35
|
+
});
|
|
36
|
+
var infoToken = (0, _generateColorPalette.generateColorPalette)({
|
|
37
|
+
type: 'Info',
|
|
38
|
+
scale: _colors.colorScales.blue,
|
|
39
|
+
appearance: 'light'
|
|
40
|
+
});
|
|
41
|
+
var lightBaseToken = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _base.baseToken), primaryToken), neutralToken), successToken), warningToken), errorToken), infoToken), {}, {
|
|
42
|
+
colorTextLightSolid: neutralToken.colorBgLayout,
|
|
43
|
+
colorLinkHover: infoToken.colorInfoTextHover,
|
|
44
|
+
colorLink: infoToken.colorInfoText,
|
|
45
|
+
colorLinkActive: infoToken.colorInfoTextActive,
|
|
46
|
+
boxShadow: '0 12px 20px 6px rgb(104 112 118 / 0.08)',
|
|
47
|
+
boxShadowSecondary: '0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)'
|
|
48
|
+
});
|
|
49
|
+
var _default = lightBaseToken;
|
|
50
|
+
exports.default = _default;
|