@ray-js/smart-ui 1.2.2 → 1.3.0-beta-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/dist/@types/button/index.d.ts +1 -1
- package/dist/@types/config-provider/index.d.ts +2 -1
- package/dist/@types/config-provider/theme-vars.d.ts +3 -1
- package/dist/common/theme/dark.d.ts +1 -0
- package/dist/common/theme/dark.js +17 -0
- package/dist/common/theme/light.d.ts +1 -0
- package/dist/common/theme/light.js +17 -0
- package/dist/config-provider/PropTypes.d.ts +2 -2
- package/package.json +3 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type lightTheme from '@tuya-miniapp/smart-ui/lib/common/theme/light';
|
|
1
2
|
type ColorPaletteThemeVars = 'black' | 'white' | 'gray1' | 'gray2' | 'gray3' | 'gray4' | 'gray5' | 'gray6' | 'gray7' | 'gray8' | 'red' | 'blue' | 'orange' | 'orangeDark' | 'orangeLight' | 'green';
|
|
2
3
|
type GradientColorsThemeVars = 'gradientRed' | 'gradientOrange';
|
|
3
4
|
type ComponentColorsThemeVars = 'textColor' | 'activeColor' | 'activeOpacity' | 'disabledOpacity' | 'backgroundColor' | 'backgroundColorLight' | 'textLinkColor';
|
|
@@ -56,8 +57,9 @@ type DropdownMenuThemeVars = 'dropdownMenuHeight' | 'dropdownMenuBackgroundColor
|
|
|
56
57
|
type IndexAnchorThemeVars = 'indexAnchorPadding' | 'indexAnchorTextColor' | 'indexAnchorFontWeight' | 'indexAnchorFontSize' | 'indexAnchorLineHeight' | 'indexAnchorBackgroundColor' | 'indexAnchorActiveBackgroundColor' | 'indexAnchorActiveTextColor';
|
|
57
58
|
type IndexBarThemeVars = 'indexBarIndexFontSize' | 'indexBarIndexLineHeight';
|
|
58
59
|
type SkeletonThemeVars = 'skeletonPadding' | 'skeletonRowHeight' | 'skeletonRowBackgroundColor' | 'skeletonRowMarginTop' | 'skeletonAvatarBackgroundColor' | 'skeletonAnimationDuration';
|
|
60
|
+
export type AppThemeVars = keyof typeof lightTheme;
|
|
59
61
|
/**
|
|
60
62
|
* 主题变量
|
|
61
63
|
*/
|
|
62
|
-
export type ThemeVars = Record<ColorPaletteThemeVars | GradientColorsThemeVars | ComponentColorsThemeVars | PaddingThemeVars | FontThemeVars | AnimationThemeVars | BorderThemeVars | ActionSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CardThemeVars | CellThemeVars | CellGroupThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | DialogThemeVars | FieldThemeVars | GoodsActionThemeVars | ImageThemeVars | InfoThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | OverlayThemeVars | PanelThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | ShareSheetThemeVars | SearchThemeVars | SidebarThemeVars | SidebarItemThemeVars | SliderThemeVars | StepThemeVars | StepsThemeVars | StepperThemeVars | SubmitBarThemeVars | TabbarThemeVars | TabbarItemThemeVars | TabThemeVars | TabsThemeVars | TagThemeVars | ToastThemeVars | GridItemThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | UploaderThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars, string>;
|
|
64
|
+
export type ThemeVars = Record<ColorPaletteThemeVars | GradientColorsThemeVars | ComponentColorsThemeVars | PaddingThemeVars | FontThemeVars | AnimationThemeVars | BorderThemeVars | ActionSheetThemeVars | ButtonThemeVars | CalendarThemeVars | CardThemeVars | CellThemeVars | CellGroupThemeVars | CheckboxThemeVars | CircleThemeVars | CollapseThemeVars | CountDownThemeVars | DialogThemeVars | FieldThemeVars | GoodsActionThemeVars | ImageThemeVars | InfoThemeVars | LoadingThemeVars | NavBarThemeVars | NoticeBarThemeVars | NotifyThemeVars | OverlayThemeVars | PanelThemeVars | PickerThemeVars | PopupThemeVars | ProgressThemeVars | RadioThemeVars | RateThemeVars | SwitchThemeVars | ShareSheetThemeVars | SearchThemeVars | SidebarThemeVars | SidebarItemThemeVars | SliderThemeVars | StepThemeVars | StepsThemeVars | StepperThemeVars | SubmitBarThemeVars | TabbarThemeVars | TabbarItemThemeVars | TabThemeVars | TabsThemeVars | TagThemeVars | ToastThemeVars | GridItemThemeVars | DividerThemeVars | EmptyThemeVars | TreeSelectThemeVars | UploaderThemeVars | DropdownMenuThemeVars | IndexAnchorThemeVars | IndexBarThemeVars | SkeletonThemeVars | AppThemeVars, string>;
|
|
63
65
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tuya-miniapp/smart-ui/lib/common/theme/dark';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
__exportStar(require("@tuya-miniapp/smart-ui/lib/common/theme/dark"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@tuya-miniapp/smart-ui/lib/common/theme/light';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
exports.__esModule = true;
|
|
17
|
+
__exportStar(require("@tuya-miniapp/smart-ui/lib/common/theme/light"), exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SmartConfigProvider, SmartConfigProviderProps } from '../@types';
|
|
2
|
-
export { SmartConfigProvider, SmartConfigProviderProps };
|
|
1
|
+
import { SmartConfigProvider, SmartConfigProviderProps, AppThemeVars } from '../@types';
|
|
2
|
+
export { SmartConfigProvider, SmartConfigProviderProps, AppThemeVars };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ray-js/smart-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0-beta-1",
|
|
4
4
|
"author": "MiniApp Team",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@ray-js/components-ty-progress-bar": "^0.1.1",
|
|
38
38
|
"@ray-js/components-ty-progress-circle": "^0.1.6",
|
|
39
|
-
"@tuya-miniapp/smart-ui": "^1.2.2",
|
|
40
39
|
"@ray-js/components-ty-slider": "^0.2.48",
|
|
40
|
+
"@tuya-miniapp/smart-ui": "^1.3.0-beta-1",
|
|
41
41
|
"lodash-es": "^4.17.21"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"@commitlint/cli": "^7.2.1",
|
|
46
46
|
"@commitlint/config-conventional": "^9.0.1",
|
|
47
47
|
"@ray-js/cli": "^1.5.6",
|
|
48
|
+
"@ray-js/code-sandbox": "^0.0.2",
|
|
48
49
|
"@ray-js/ray": "^1.5.6",
|
|
49
50
|
"@tuya-miniapp/icons": "^1.0.0",
|
|
50
51
|
"@types/fs-extra": "^9.0.13",
|