@yklyklpackages/message-card 0.6.2 → 0.7.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/dist/components/MessageCard.d.ts +4 -2
- package/dist/components/MessageCard.d.ts.map +1 -1
- package/dist/components/action/dispatcher.d.ts.map +1 -1
- package/dist/components/action/handlers.d.ts +5 -1
- package/dist/components/action/handlers.d.ts.map +1 -1
- package/dist/components/core/ComponentRenderer.d.ts.map +1 -1
- package/dist/components/core/LayoutWrapper.d.ts +1 -0
- package/dist/components/core/LayoutWrapper.d.ts.map +1 -1
- package/dist/components/core/LeafWrapper.d.ts.map +1 -1
- package/dist/components/layout/AbsoluteViewLayout.d.ts.map +1 -1
- package/dist/components/layout/AnimationLayout.d.ts.map +1 -1
- package/dist/components/layout/CardLayout.d.ts +23 -0
- package/dist/components/layout/CardLayout.d.ts.map +1 -0
- package/dist/components/layout/FullRowLayout.d.ts +0 -1
- package/dist/components/layout/FullRowLayout.d.ts.map +1 -1
- package/dist/components/layout/MultipleColumnLayout.d.ts +3 -7
- package/dist/components/layout/MultipleColumnLayout.d.ts.map +1 -1
- package/dist/components/layout/RadioGroupLayout.d.ts +2 -0
- package/dist/components/layout/RadioGroupLayout.d.ts.map +1 -0
- package/dist/components/layout/ResponsiveTwoColumnLayout.d.ts +13 -0
- package/dist/components/layout/ResponsiveTwoColumnLayout.d.ts.map +1 -0
- package/dist/components/layout/ScrollViewLayout.d.ts +3 -2
- package/dist/components/layout/ScrollViewLayout.d.ts.map +1 -1
- package/dist/components/message/MessageContainer.d.ts +5 -1
- package/dist/components/message/MessageContainer.d.ts.map +1 -1
- package/dist/components/render/ButtonJDH.d.ts +13 -0
- package/dist/components/render/ButtonJDH.d.ts.map +1 -0
- package/dist/components/render/Checkbox.d.ts +1 -13
- package/dist/components/render/Checkbox.d.ts.map +1 -1
- package/dist/components/render/ChoiceJDH.d.ts +14 -0
- package/dist/components/render/ChoiceJDH.d.ts.map +1 -0
- package/dist/components/render/Image.d.ts.map +1 -1
- package/dist/components/render/Input.d.ts +1 -13
- package/dist/components/render/Input.d.ts.map +1 -1
- package/dist/components/render/InputJDH.d.ts +15 -0
- package/dist/components/render/InputJDH.d.ts.map +1 -0
- package/dist/components/render/Markdown.d.ts.map +1 -1
- package/dist/components/render/Radio.d.ts +1 -13
- package/dist/components/render/Radio.d.ts.map +1 -1
- package/dist/components/render/Select.d.ts +1 -13
- package/dist/components/render/Select.d.ts.map +1 -1
- package/dist/components/render/TextareaJDH.d.ts +15 -0
- package/dist/components/render/TextareaJDH.d.ts.map +1 -0
- package/dist/components/theme/ScreenTheme375.d.ts.map +1 -1
- package/dist/components/theme/ThemeContext.d.ts.map +1 -1
- package/dist/components/theme/ZhiYiPCTheme.d.ts +4 -0
- package/dist/components/theme/ZhiYiPCTheme.d.ts.map +1 -0
- package/dist/components/theme/defaultTheme.d.ts.map +1 -1
- package/dist/components/types/component.d.ts +2 -2
- package/dist/components/types/component.d.ts.map +1 -1
- package/dist/components/utils/ResponsiveContext.d.ts +1 -0
- package/dist/components/utils/ResponsiveContext.d.ts.map +1 -1
- package/dist/components/utils/styleHelpers.d.ts +46 -8
- package/dist/components/utils/styleHelpers.d.ts.map +1 -1
- package/dist/components/validator/ComponentValidator.d.ts.map +1 -1
- package/dist/index.cjs +6248 -25575
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6261 -25572
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6178 -25504
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +480 -0
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import { ILayoutCommonProps, IRenderCommonProps } from '@jdh-cross/aui-types';
|
|
2
|
+
import { IButtonRenderComponent, IChoiceRenderComponent, IInputRenderComponent, ILayoutCommonProps, IRenderCommonProps, ITextareaRenderComponent } from '@jdh-cross/aui-types';
|
|
3
3
|
import { Theme, LayoutProps, CommonProps } from '../types/component';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -16,7 +16,7 @@ export declare const baseContainerStyle: (props?: CommonProps, scale?: number) =
|
|
|
16
16
|
* - horizontal: true 表示横向布局(Two/Three/Four),false 表示纵向(FullRow)
|
|
17
17
|
*/
|
|
18
18
|
export declare const containerGapStyle: (gap?: number) => CSSProperties;
|
|
19
|
-
export declare const childGapStyle: (index: number, count: number, gap?: number, horizontal?: boolean, scale?: number) => CSSProperties;
|
|
19
|
+
export declare const childGapStyle: (index: number, count: number, theme: Theme, gap?: number | string, horizontal?: boolean, scale?: number, isWrap?: boolean) => CSSProperties;
|
|
20
20
|
/**
|
|
21
21
|
* padding处理
|
|
22
22
|
* 将 padding 参数转换为内联样式
|
|
@@ -28,6 +28,7 @@ export declare const childGapStyle: (index: number, count: number, gap?: number,
|
|
|
28
28
|
export declare const resolveSpace: (val: string | number | undefined, theme: Theme, scale?: number) => string | number | undefined;
|
|
29
29
|
export declare const paddingToStyle: (padding: ILayoutCommonProps["padding"] | undefined, theme: Theme, scale?: number) => CSSProperties;
|
|
30
30
|
export declare const marginToStyle: (margin: ILayoutCommonProps["margin"] | undefined, theme: Theme, scale?: number) => CSSProperties;
|
|
31
|
+
export declare const resolvedLineHeight: (lineHeight: number | string, theme: Theme, scale?: number) => string | number;
|
|
31
32
|
/**
|
|
32
33
|
* 主题相关辅助:文本样式
|
|
33
34
|
*/
|
|
@@ -60,7 +61,7 @@ export declare const fractionWidth: (percent: string) => CSSProperties;
|
|
|
60
61
|
/**
|
|
61
62
|
* 构建布局子项容器基础样式
|
|
62
63
|
*/
|
|
63
|
-
export declare const buildItemContainerStyle: (index: number, count: number, props?: LayoutProps, horizontal?: boolean, scale?: number) => CSSProperties;
|
|
64
|
+
export declare const buildItemContainerStyle: (index: number, count: number, theme: Theme, props?: LayoutProps, horizontal?: boolean, scale?: number, isWrap?: boolean) => CSSProperties;
|
|
64
65
|
/**
|
|
65
66
|
* 构建布局容器的基础样式(flex)
|
|
66
67
|
*/
|
|
@@ -69,10 +70,47 @@ export declare const buildLayoutContainerStyle: (props: ILayoutCommonProps | und
|
|
|
69
70
|
* 定位布局容器的基础样式
|
|
70
71
|
*/
|
|
71
72
|
export declare const buildAbsoluteLayoutStyle: (props: ILayoutCommonProps | undefined, direction: "column" | "row" | undefined, theme: Theme, scale?: number) => CSSProperties;
|
|
72
|
-
/**
|
|
73
|
-
* 样式字符串计算方法
|
|
74
|
-
* 支持传入'2 2px 0 0',也支持[2,"2px"],或者'2px'/2,以及0的情况。
|
|
75
|
-
* 遇到数值和2px要把2提取出来,通过Transform转换为新的值。
|
|
76
|
-
*/
|
|
77
73
|
export declare const runStyle: (val: string | number | (string | number)[] | undefined, scale?: number) => string | number;
|
|
74
|
+
export declare const resolveColor: (color: string, theme: Theme) => any;
|
|
75
|
+
export declare const buildCardLayoutStyle: (props: (Pick<ILayoutCommonProps, "margin" | "hideComponent"> & {
|
|
76
|
+
title?: string;
|
|
77
|
+
subDescription?: string;
|
|
78
|
+
}) | undefined, theme: Theme, scale?: number) => {
|
|
79
|
+
warpStyle: CSSProperties;
|
|
80
|
+
containerStyle: CSSProperties;
|
|
81
|
+
titleWrapStyle: CSSProperties;
|
|
82
|
+
titleStyle: CSSProperties;
|
|
83
|
+
titleLeftSlotStyle: CSSProperties;
|
|
84
|
+
titleRightSlotStyle: CSSProperties;
|
|
85
|
+
subDescriptionStyle: CSSProperties;
|
|
86
|
+
contentStyle: CSSProperties;
|
|
87
|
+
};
|
|
88
|
+
export declare const buildChoiceRenderStyle: (props: IChoiceRenderComponent["props"], isSelected: boolean, theme: Theme, scale?: number) => {
|
|
89
|
+
wrapStyle: CSSProperties;
|
|
90
|
+
labelLineStyle: CSSProperties;
|
|
91
|
+
labelStyle: CSSProperties;
|
|
92
|
+
subDescriptionStyle: CSSProperties;
|
|
93
|
+
imgTopStyle: CSSProperties;
|
|
94
|
+
imgLeftStyle: CSSProperties;
|
|
95
|
+
};
|
|
96
|
+
export declare const buildButtonRenderStyle: (props: IButtonRenderComponent["props"], theme: Theme, scale?: number) => {
|
|
97
|
+
wrapStyle: CSSProperties;
|
|
98
|
+
iconStyle: CSSProperties;
|
|
99
|
+
arrowStyle: CSSProperties;
|
|
100
|
+
};
|
|
101
|
+
export declare const buildInputRenderStyle: (props: IInputRenderComponent["props"], theme: Theme, scale?: number) => {
|
|
102
|
+
wrapStyle: CSSProperties;
|
|
103
|
+
inputStyle: CSSProperties;
|
|
104
|
+
clearStyle: CSSProperties;
|
|
105
|
+
clearIconStyle: CSSProperties;
|
|
106
|
+
msgStyle: CSSProperties;
|
|
107
|
+
passwordStyle: CSSProperties;
|
|
108
|
+
passwordIconStyle: CSSProperties;
|
|
109
|
+
};
|
|
110
|
+
export declare const buildTextareaRenderStyle: (props: ITextareaRenderComponent["props"], value: string, theme: Theme, scale?: number) => {
|
|
111
|
+
wrapStyle: CSSProperties;
|
|
112
|
+
textareaStyle: CSSProperties;
|
|
113
|
+
msgStyle: CSSProperties;
|
|
114
|
+
maxLengthTipsStyle: CSSProperties;
|
|
115
|
+
};
|
|
78
116
|
//# sourceMappingURL=styleHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styleHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/utils/styleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"styleHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/utils/styleHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,KAA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ator/ComponentValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D;;;;GAIG;AAEH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAID,eAAO,MAAM,YAAY,GACvB,OAAO,cAAc,EAAE,EACvB,kBAAkB,KACjB,
|
|
1
|
+
{"version":3,"file":"ComponentValidator.d.ts","sourceRoot":"","sources":["../../../src/components/validator/ComponentValidator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D;;;;GAIG;AAEH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAID,eAAO,MAAM,YAAY,GACvB,OAAO,cAAc,EAAE,EACvB,kBAAkB,KACjB,cA4DF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,cAAc,EAAE,EAAE,QAAQ,MAAM,SAQtE,CAAC"}
|