@rescui/typography 0.27.0 → 0.27.1-RUI-296-Build-docs-md-files-for-each-docs-section-2a311c841.18

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/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Typography
2
2
 
3
- * [General info](./docs/main.md)
4
- * [Use with React](./docs/use-in-react.md)
5
- * [Text styles](./docs/text-styles.md)
6
- * [Lists](./docs/lists.md)
7
- * [Code](./docs/code.md)
3
+ ## LLM
4
+
5
+ To get the docs for the LLM, check out [this index](./llm/index.md).
8
6
 
@@ -1,98 +1,98 @@
1
- import { Theme } from '@rescui/ui-contexts';
2
- export declare type Texts = 'rs-text-1' | 'rs-text-2' | 'rs-text-3';
3
- export declare type Link = 'rs-link';
4
- export declare type OrderedList = 'rs-ol';
5
- export declare type UnorderedList = 'rs-ul';
6
- export declare type Subtitles = 'rs-subtitle-1' | 'rs-subtitle-2';
7
- export declare type Digits = 'rs-digits-1' | 'rs-digits-2';
8
- export declare type SubtitlesAndDigits = Subtitles | Digits;
9
- export declare type Others = 'rs-super-hero' | 'rs-middle-hero' | 'rs-hero' | 'rs-h1' | 'rs-h2' | 'rs-h3-plus' | 'rs-h3' | 'rs-h4' | 'rs-h5' | 'rs-overline' | 'rs-pre' | 'rs-code';
10
- export declare type Type = Texts | Link | OrderedList | UnorderedList | SubtitlesAndDigits | Others;
11
- export declare type Hardness = 'average' | 'hard' | 'pale';
12
- export declare type TextsParams = {
13
- /**
14
- * @default false
15
- */
16
- paragraphOffsetAuto?: boolean;
17
- /**
18
- * @default average
19
- */
20
- hardness?: Hardness;
21
- };
22
- export declare type SubtitlesAndDigitsParams = {
23
- /**
24
- * @default hard
25
- */
26
- hardness?: Hardness;
27
- };
28
- export declare type Mode = 'classic' | 'rock' | 'clear' | 'standalone';
29
- export declare type LinkParams = {
30
- /**
31
- * @default false
32
- */
33
- external?: boolean;
34
- /**
35
- * @default null
36
- */
37
- hardness?: Hardness;
38
- /**
39
- * @default classic
40
- */
41
- mode?: Mode;
42
- };
43
- export declare type Alpha = 'lower' | 'upper';
44
- export declare type OffsetItems = 4 | 8 | 12 | 16 | 24;
45
- export declare type OrderedListParams = {
46
- /**
47
- * @default null
48
- */
49
- alpha?: Alpha;
50
- offsetItems?: OffsetItems;
51
- /**
52
- * @default false
53
- */
54
- compact?: boolean;
55
- };
56
- export declare type UnorderedListParams = {
57
- offsetItems?: OffsetItems;
58
- /**
59
- * @default false
60
- */
61
- compact?: boolean;
62
- };
63
- declare type MapParams<Types extends string, Params extends Record<string, unknown>> = {
64
- [T in Types]: Params;
65
- };
66
- /**
67
- * The example of the map content:
68
- * ```
69
- * {
70
- * 'rs-text-1': TextsParams,
71
- * 'rs-text-2': TextsParams,
72
- * 'rs-text-3': TextsParams,
73
- * 'rs-subtitle-1': SubtitlesAndDigitsParams,
74
- * // ...
75
- * }
76
- * ```
77
- */
78
- export declare type TypeToParams = MapParams<Texts, TextsParams> & MapParams<SubtitlesAndDigits, SubtitlesAndDigitsParams> & MapParams<Link, LinkParams> & MapParams<OrderedList, OrderedListParams> & MapParams<UnorderedList, UnorderedListParams> & MapParams<Others, never>;
79
- export declare function createTextCn(theme?: Theme): {
80
- <T extends Texts | SubtitlesAndDigits | Others | "rs-link" | "rs-ol" | "rs-ul">(type: T, params?: TypeToParams[T]): string;
81
- (type: Texts, params?: TextsParams): string;
82
- (type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
83
- (type: Link, params?: LinkParams): string;
84
- (type: OrderedList, params?: OrderedListParams): string;
85
- (type: UnorderedList, params?: UnorderedListParams): string;
86
- (type: Others): string;
87
- };
88
- export declare const textCn: {
89
- <T extends Texts | SubtitlesAndDigits | Others | "rs-link" | "rs-ol" | "rs-ul">(type: T, params?: TypeToParams[T]): string;
90
- (type: Texts, params?: TextsParams): string;
91
- (type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
92
- (type: Link, params?: LinkParams): string;
93
- (type: OrderedList, params?: OrderedListParams): string;
94
- (type: UnorderedList, params?: UnorderedListParams): string;
95
- (type: Others): string;
96
- };
97
- export declare const colorCn: (color: Hardness | 'base') => any;
98
- export {};
1
+ import { Theme } from '@rescui/ui-contexts';
2
+ export type Texts = 'rs-text-1' | 'rs-text-2' | 'rs-text-3';
3
+ export type Link = 'rs-link';
4
+ export type OrderedList = 'rs-ol';
5
+ export type UnorderedList = 'rs-ul';
6
+ export type Subtitles = 'rs-subtitle-1' | 'rs-subtitle-2';
7
+ export type Digits = 'rs-digits-1' | 'rs-digits-2';
8
+ export type SubtitlesAndDigits = Subtitles | Digits;
9
+ export type Others = 'rs-super-hero' | 'rs-middle-hero' | 'rs-hero' | 'rs-h1' | 'rs-h2' | 'rs-h3-plus' | 'rs-h3' | 'rs-h4' | 'rs-h5' | 'rs-overline' | 'rs-pre' | 'rs-code';
10
+ export type Type = Texts | Link | OrderedList | UnorderedList | SubtitlesAndDigits | Others;
11
+ export type Hardness = 'average' | 'hard' | 'pale';
12
+ export type TextsParams = {
13
+ /**
14
+ * @default false
15
+ */
16
+ paragraphOffsetAuto?: boolean;
17
+ /**
18
+ * @default average
19
+ */
20
+ hardness?: Hardness;
21
+ };
22
+ export type SubtitlesAndDigitsParams = {
23
+ /**
24
+ * @default hard
25
+ */
26
+ hardness?: Hardness;
27
+ };
28
+ export type Mode = 'classic' | 'rock' | 'clear' | 'standalone';
29
+ export type LinkParams = {
30
+ /**
31
+ * @default false
32
+ */
33
+ external?: boolean;
34
+ /**
35
+ * @default null
36
+ */
37
+ hardness?: Hardness;
38
+ /**
39
+ * @default classic
40
+ */
41
+ mode?: Mode;
42
+ };
43
+ export type Alpha = 'lower' | 'upper';
44
+ export type OffsetItems = 4 | 8 | 12 | 16 | 24;
45
+ export type OrderedListParams = {
46
+ /**
47
+ * @default null
48
+ */
49
+ alpha?: Alpha;
50
+ offsetItems?: OffsetItems;
51
+ /**
52
+ * @default false
53
+ */
54
+ compact?: boolean;
55
+ };
56
+ export type UnorderedListParams = {
57
+ offsetItems?: OffsetItems;
58
+ /**
59
+ * @default false
60
+ */
61
+ compact?: boolean;
62
+ };
63
+ type MapParams<Types extends string, Params extends Record<string, unknown>> = {
64
+ [T in Types]: Params;
65
+ };
66
+ /**
67
+ * The example of the map content:
68
+ * ```
69
+ * {
70
+ * 'rs-text-1': TextsParams,
71
+ * 'rs-text-2': TextsParams,
72
+ * 'rs-text-3': TextsParams,
73
+ * 'rs-subtitle-1': SubtitlesAndDigitsParams,
74
+ * // ...
75
+ * }
76
+ * ```
77
+ */
78
+ export type TypeToParams = MapParams<Texts, TextsParams> & MapParams<SubtitlesAndDigits, SubtitlesAndDigitsParams> & MapParams<Link, LinkParams> & MapParams<OrderedList, OrderedListParams> & MapParams<UnorderedList, UnorderedListParams> & MapParams<Others, never>;
79
+ export declare function createTextCn(theme?: Theme): {
80
+ <T extends keyof TypeToParams>(type: T, params?: TypeToParams[T]): string;
81
+ (type: Texts, params?: TextsParams): string;
82
+ (type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
83
+ (type: Link, params?: LinkParams): string;
84
+ (type: OrderedList, params?: OrderedListParams): string;
85
+ (type: UnorderedList, params?: UnorderedListParams): string;
86
+ (type: Others): string;
87
+ };
88
+ export declare const textCn: {
89
+ <T extends keyof TypeToParams>(type: T, params?: TypeToParams[T]): string;
90
+ (type: Texts, params?: TextsParams): string;
91
+ (type: SubtitlesAndDigits, params?: SubtitlesAndDigitsParams): string;
92
+ (type: Link, params?: LinkParams): string;
93
+ (type: OrderedList, params?: OrderedListParams): string;
94
+ (type: UnorderedList, params?: UnorderedListParams): string;
95
+ (type: Others): string;
96
+ };
97
+ export declare const colorCn: (color: Hardness | "base") => any;
98
+ export {};