@lobehub/ui 1.9.0 → 1.11.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.
- package/es/ActionIcon/index.js +2 -2
- package/es/ActionIcon/style.js +1 -1
- package/es/EditableMessageList/index.js +6 -6
- package/es/EditableText/index.js +1 -4
- package/es/Highlighter/style.js +1 -2
- package/es/Icon/index.d.ts +1 -0
- package/es/Icon/index.js +5 -2
- package/es/Input/index.d.ts +13 -0
- package/es/Input/index.js +38 -0
- package/es/Input/style.d.ts +6 -0
- package/es/Input/style.js +12 -0
- package/es/Markdown/style.js +1 -1
- package/es/MessageInput/index.d.ts +2 -0
- package/es/MessageInput/index.js +10 -8
- package/es/SearchBar/index.d.ts +1 -2
- package/es/SearchBar/index.js +9 -18
- package/es/SearchBar/style.d.ts +1 -3
- package/es/SearchBar/style.js +6 -8
- 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/components/ControlInput.d.ts +1 -1
- package/es/components/ControlInput.js +20 -23
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- 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 -17
- package/es/types/index.js +1 -0
- package/lib/ActionIcon/index.js +2 -2
- package/lib/ActionIcon/style.js +2 -2
- package/lib/EditableMessageList/index.js +6 -6
- package/lib/EditableText/index.js +1 -1
- package/lib/Highlighter/style.js +1 -2
- package/lib/Icon/index.d.ts +1 -0
- package/lib/Icon/index.js +5 -2
- package/lib/Input/index.d.ts +13 -0
- package/lib/Input/index.js +45 -0
- package/lib/Input/style.d.ts +6 -0
- package/lib/Input/style.js +70 -0
- package/lib/Markdown/style.js +5 -1
- package/lib/MessageInput/index.d.ts +2 -0
- package/lib/MessageInput/index.js +6 -5
- package/lib/SearchBar/index.d.ts +1 -2
- package/lib/SearchBar/index.js +8 -26
- package/lib/SearchBar/style.d.ts +1 -3
- package/lib/SearchBar/style.js +1 -20
- package/lib/Snippet/style.js +1 -2
- package/lib/StroyBook/style.js +6 -1
- package/lib/ThemeProvider/index.d.ts +2 -6
- package/lib/ThemeProvider/index.js +12 -23
- package/lib/components/ControlInput.d.ts +1 -1
- package/lib/components/ControlInput.js +9 -19
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -0
- package/lib/styles/algorithms/generateColorPalette.d.ts +11 -0
- package/lib/styles/algorithms/generateColorPalette.js +72 -0
- package/lib/styles/{customStylish.d.ts → algorithms/generateCustomStylish.d.ts} +1 -1
- package/lib/styles/{customStylish.js → algorithms/generateCustomStylish.js} +11 -7
- package/lib/styles/algorithms/generateCustomToken.d.ts +3 -0
- package/lib/styles/{customToken.js → algorithms/generateCustomToken.js} +42 -17
- package/lib/styles/algorithms/generateTheme.d.ts +5 -0
- package/lib/styles/algorithms/generateTheme.js +59 -0
- package/lib/styles/colors.d.ts +38 -0
- package/lib/styles/colors.js +1828 -0
- package/lib/styles/index.d.ts +3 -3
- package/lib/styles/index.js +18 -4
- package/lib/styles/theme/base.d.ts +2 -2
- package/lib/styles/theme/base.js +10 -16
- package/lib/styles/theme/dark.d.ts +3 -4
- package/lib/styles/theme/dark.js +46 -96
- package/lib/styles/theme/light.d.ts +3 -4
- package/lib/styles/theme/light.js +48 -38
- package/lib/types/customToken.d.ts +1027 -0
- package/lib/types/global.d.ts +12 -0
- package/lib/types/index.d.ts +5 -17
- package/lib/{styles/theme → types}/index.js +3 -18
- 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/customToken.d.ts +0 -65
- package/lib/styles/theme/index.d.ts +0 -2
package/es/styles/theme/light.js
CHANGED
|
@@ -1,33 +1,42 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
2
|
+
import { generateColorNeutralPalette, generateColorPalette } from "../algorithms/generateColorPalette";
|
|
3
|
+
import { colorScales } from "../colors";
|
|
4
|
+
import { baseToken } from "./base";
|
|
5
|
+
var primaryToken = generateColorPalette({
|
|
6
|
+
type: 'Primary',
|
|
7
|
+
scale: colorScales.bnw,
|
|
8
|
+
appearance: 'light'
|
|
9
|
+
});
|
|
10
|
+
var neutralToken = generateColorNeutralPalette({
|
|
11
|
+
scale: colorScales.gray,
|
|
12
|
+
appearance: 'light'
|
|
13
|
+
});
|
|
14
|
+
var successToken = generateColorPalette({
|
|
15
|
+
type: 'Success',
|
|
16
|
+
scale: colorScales.grass,
|
|
17
|
+
appearance: 'light'
|
|
18
|
+
});
|
|
19
|
+
var warningToken = generateColorPalette({
|
|
20
|
+
type: 'Warning',
|
|
21
|
+
scale: colorScales.orange,
|
|
22
|
+
appearance: 'light'
|
|
23
|
+
});
|
|
24
|
+
var errorToken = generateColorPalette({
|
|
25
|
+
type: 'Error',
|
|
26
|
+
scale: colorScales.tomato,
|
|
27
|
+
appearance: 'light'
|
|
28
|
+
});
|
|
29
|
+
var infoToken = generateColorPalette({
|
|
30
|
+
type: 'Info',
|
|
31
|
+
scale: colorScales.blue,
|
|
32
|
+
appearance: 'light'
|
|
33
|
+
});
|
|
34
|
+
var lightBaseToken = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, baseToken), primaryToken), neutralToken), successToken), warningToken), errorToken), infoToken), {}, {
|
|
35
|
+
colorTextLightSolid: neutralToken.colorBgLayout,
|
|
36
|
+
colorLinkHover: infoToken.colorInfoTextHover,
|
|
37
|
+
colorLink: infoToken.colorInfoText,
|
|
38
|
+
colorLinkActive: infoToken.colorInfoTextActive,
|
|
39
|
+
boxShadow: '0 12px 20px 6px rgb(104 112 118 / 0.08)',
|
|
40
|
+
boxShadowSecondary: '0 2px 8px 2px rgb(104 112 118 / 0.07), 0 2px 4px -1px rgb(104 112 118 / 0.04)'
|
|
41
|
+
});
|
|
42
|
+
export default lightBaseToken;
|