@ray-js/smart-ui 1.2.4 → 1.3.0-beta-2
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.
|
@@ -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,18 @@
|
|
|
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
|
+
exports.__esModule = true;
|
|
14
|
+
exports.defaultAppDarkThemeVars = exports.defaultAppLightThemeVars = void 0;
|
|
15
|
+
var light_1 = require("@tuya-miniapp/smart-ui/lib/common/theme/light");
|
|
16
|
+
__createBinding(exports, light_1, "default", "defaultAppLightThemeVars");
|
|
17
|
+
var dark_1 = require("@tuya-miniapp/smart-ui/lib/common/theme/dark");
|
|
18
|
+
__createBinding(exports, dark_1, "default", "defaultAppDarkThemeVars");
|
|
@@ -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.2
|
|
3
|
+
"version": "1.3.0-beta-2",
|
|
4
4
|
"author": "MiniApp Team",
|
|
5
5
|
"description": "轻量、可靠的智能小程序 UI 组件库",
|
|
6
6
|
"scripts": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@ray-js/components-ty-progress-bar": "^0.1.1",
|
|
38
38
|
"@ray-js/components-ty-progress-circle": "^0.1.6",
|
|
39
39
|
"@ray-js/components-ty-slider": "^0.2.48",
|
|
40
|
-
"@tuya-miniapp/smart-ui": "^1.
|
|
40
|
+
"@tuya-miniapp/smart-ui": "^1.3.0-beta-1",
|
|
41
41
|
"lodash-es": "^4.17.21"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|