@rescui/typography 0.18.1 → 0.19.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/lib/create-text-cn.d.ts +27 -3
- package/lib/index-moduled.css +184 -138
- package/lib/index-moduled.p.module.css.js +120 -120
- package/lib/index.css +69 -23
- package/lib/mixins.p.css +69 -23
- package/lib/mixins.pcss +69 -23
- package/lib/public-api.p.css +165 -47
- package/lib/public-api.pcss +165 -47
- package/package.json +2 -2
package/lib/create-text-cn.d.ts
CHANGED
|
@@ -68,8 +68,32 @@ declare type MapParams<Types extends string, Params extends Record<string, unkno
|
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
export declare type TypeToParams = MapParams<Texts, TextsParams> & MapParams<SubtitlesAndDigits, SubtitlesAndDigitsParams> & MapParams<Link, LinkParams> & MapParams<OrderedList, OrderedListParams> & MapParams<UnorderedList, UnorderedListParams> & MapParams<Others, never>;
|
|
71
|
-
export declare function createTextCn(theme?: Theme):
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
export declare function createTextCn(theme?: Theme): {
|
|
72
|
+
<T extends Texts | SubtitlesAndDigits | Others | "rs-link" | "rs-ol" | "rs-ul">(type: T, params?: TypeToParams[T]): string;
|
|
73
|
+
(type: Texts, params?: TextsParams): string;
|
|
74
|
+
(type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
|
|
75
|
+
(type: Link, params?: LinkParams): string;
|
|
76
|
+
(type: OrderedList, params?: OrderedListParams): string;
|
|
77
|
+
(type: UnorderedList, params?: UnorderedListParams): string;
|
|
78
|
+
(type: Others): string;
|
|
79
|
+
};
|
|
80
|
+
export declare const textCn: {
|
|
81
|
+
<T extends Texts | SubtitlesAndDigits | Others | "rs-link" | "rs-ol" | "rs-ul">(type: T, params?: TypeToParams[T]): string;
|
|
82
|
+
(type: Texts, params?: TextsParams): string;
|
|
83
|
+
(type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
|
|
84
|
+
(type: Link, params?: LinkParams): string;
|
|
85
|
+
(type: OrderedList, params?: OrderedListParams): string;
|
|
86
|
+
(type: UnorderedList, params?: UnorderedListParams): string;
|
|
87
|
+
(type: Others): string;
|
|
88
|
+
};
|
|
89
|
+
export declare const useTextStyles: () => {
|
|
90
|
+
<T extends Texts | SubtitlesAndDigits | Others | "rs-link" | "rs-ol" | "rs-ul">(type: T, params?: TypeToParams[T]): string;
|
|
91
|
+
(type: Texts, params?: TextsParams): string;
|
|
92
|
+
(type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
|
|
93
|
+
(type: Link, params?: LinkParams): string;
|
|
94
|
+
(type: OrderedList, params?: OrderedListParams): string;
|
|
95
|
+
(type: UnorderedList, params?: UnorderedListParams): string;
|
|
96
|
+
(type: Others): string;
|
|
97
|
+
};
|
|
74
98
|
export declare const colorCn: (color: Hardness | 'base') => any;
|
|
75
99
|
export {};
|