@selfhelp/shared 1.10.0 → 1.12.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/CHANGELOG.md +46 -0
- package/dist/index.d.mts +133 -4
- package/dist/index.d.ts +133 -4
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-DkoT-FmN.d.mts → styles.registry-B8OzYnXv.d.mts} +1 -66
- package/dist/{styles.registry-BV1iF7k-.d.ts → styles.registry-CtM17edk.d.ts} +1 -66
- package/package.json +1 -1
- package/src/types/__tests__/mobile-adapters.test.ts +80 -0
- package/src/types/index.ts +1 -0
- package/src/types/mobile-adapters.ts +144 -0
- package/src/types/styles/auth.ts +1 -6
- package/src/types/styles/composite.ts +8 -24
- package/src/types/styles/forms.ts +21 -63
- package/src/types/styles/interactive.ts +10 -30
- package/src/types/styles/layout.ts +10 -30
- package/src/types/styles/media.ts +2 -6
- package/src/types/styles/typography.ts +9 -27
- package/src/types/styles/unknown.ts +1 -3
|
@@ -19,9 +19,7 @@ export interface IImageStyle extends IStyleWithSpacing {
|
|
|
19
19
|
web_image_fit?: IContentField<TMantineImageFit>;
|
|
20
20
|
web_width?: IContentField<TMantineWidth>;
|
|
21
21
|
web_height?: IContentField<TMantineHeight>;
|
|
22
|
-
shared_radius?: IContentField<TMantineRadius>;
|
|
23
|
-
use_web_style?: IContentField<string>;
|
|
24
|
-
}
|
|
22
|
+
shared_radius?: IContentField<TMantineRadius>;}
|
|
25
23
|
|
|
26
24
|
export interface IVideoStyle extends IBaseStyle {
|
|
27
25
|
style_name: 'video';
|
|
@@ -63,6 +61,4 @@ export interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
63
61
|
skip_snaps?: IContentField<string>;
|
|
64
62
|
web_carousel_in_view_threshold?: IContentField<string>;
|
|
65
63
|
web_carousel_duration?: IContentField<string>;
|
|
66
|
-
web_carousel_embla_options?: IContentField<string>;
|
|
67
|
-
use_web_style?: IContentField<string>;
|
|
68
|
-
}
|
|
64
|
+
web_carousel_embla_options?: IContentField<string>;}
|
|
@@ -32,9 +32,7 @@ export interface ITitleStyle extends IStyleWithSpacing {
|
|
|
32
32
|
web_title_order?: IContentField<TMantineTitleOrder>;
|
|
33
33
|
shared_size?: IContentField<TMantineSize>;
|
|
34
34
|
web_title_text_wrap?: IContentField<TMantineTitleTextWrap>;
|
|
35
|
-
web_title_line_clamp?: IContentField<TMantineTitleLineClamp>;
|
|
36
|
-
use_web_style?: IContentField<string>;
|
|
37
|
-
}
|
|
35
|
+
web_title_line_clamp?: IContentField<TMantineTitleLineClamp>;}
|
|
38
36
|
|
|
39
37
|
export interface ITextStyle extends IStyleWithSpacing {
|
|
40
38
|
style_name: 'text';
|
|
@@ -51,25 +49,19 @@ export interface ITextStyle extends IStyleWithSpacing {
|
|
|
51
49
|
web_text_truncate?: IContentField<TMantineTextTruncate>;
|
|
52
50
|
web_text_line_clamp?: IContentField<TMantineLineClamp>;
|
|
53
51
|
web_text_inherit?: IContentField<TMantineTextInherit>;
|
|
54
|
-
web_text_span?: IContentField<TMantineTextSpan>;
|
|
55
|
-
use_web_style?: IContentField<string>;
|
|
56
|
-
}
|
|
52
|
+
web_text_span?: IContentField<TMantineTextSpan>;}
|
|
57
53
|
|
|
58
54
|
export interface ICodeStyle extends IStyleWithSpacing {
|
|
59
55
|
style_name: 'code';
|
|
60
56
|
web_code_block?: IContentField<string>;
|
|
61
|
-
web_color?: IContentField<TMantineColor>;
|
|
62
|
-
use_web_style?: IContentField<string>;
|
|
63
|
-
content?: IContentField<string>;
|
|
57
|
+
web_color?: IContentField<TMantineColor>; content?: IContentField<string>;
|
|
64
58
|
}
|
|
65
59
|
|
|
66
60
|
export interface IHighlightStyle extends IStyleWithSpacing {
|
|
67
61
|
style_name: 'highlight';
|
|
68
62
|
text?: IContentField<string>;
|
|
69
63
|
web_highlight_highlight?: IContentField<string>;
|
|
70
|
-
web_color?: IContentField<TMantineColor>;
|
|
71
|
-
use_web_style?: IContentField<string>;
|
|
72
|
-
}
|
|
64
|
+
web_color?: IContentField<TMantineColor>;}
|
|
73
65
|
|
|
74
66
|
export interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
75
67
|
style_name: 'blockquote';
|
|
@@ -77,9 +69,7 @@ export interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
|
77
69
|
cite?: IContentField<string>;
|
|
78
70
|
web_left_icon?: IContentField<string>;
|
|
79
71
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
80
|
-
web_color?: IContentField<TMantineColor>;
|
|
81
|
-
use_web_style?: IContentField<string>;
|
|
82
|
-
}
|
|
72
|
+
web_color?: IContentField<TMantineColor>;}
|
|
83
73
|
|
|
84
74
|
export interface IHtmlTagStyle extends IBaseStyle {
|
|
85
75
|
style_name: 'html-tag';
|
|
@@ -90,29 +80,21 @@ export interface IHtmlTagStyle extends IBaseStyle {
|
|
|
90
80
|
export interface IKbdStyle extends IStyleWithSpacing {
|
|
91
81
|
style_name: 'kbd';
|
|
92
82
|
label?: IContentField<string>;
|
|
93
|
-
shared_size?: IContentField<TMantineSize>;
|
|
94
|
-
use_web_style?: IContentField<string>;
|
|
95
|
-
}
|
|
83
|
+
shared_size?: IContentField<TMantineSize>;}
|
|
96
84
|
|
|
97
85
|
export interface ITypographyStyle extends IStyleWithSpacing {
|
|
98
|
-
style_name: 'typography';
|
|
99
|
-
use_web_style?: IContentField<string>;
|
|
100
|
-
}
|
|
86
|
+
style_name: 'typography';}
|
|
101
87
|
|
|
102
88
|
export interface IFieldsetStyle extends IStyleWithSpacing {
|
|
103
89
|
style_name: 'fieldset';
|
|
104
90
|
label?: IContentField<string>;
|
|
105
91
|
legend?: IContentField<string>;
|
|
106
92
|
web_fieldset_variant?: IContentField<TMantineFieldsetVariant>;
|
|
107
|
-
shared_radius?: IContentField<TMantineRadius>;
|
|
108
|
-
use_web_style?: IContentField<string>;
|
|
109
|
-
disabled?: IContentField<string>;
|
|
93
|
+
shared_radius?: IContentField<TMantineRadius>; disabled?: IContentField<string>;
|
|
110
94
|
}
|
|
111
95
|
|
|
112
96
|
export interface ISpoilerStyle extends IStyleWithSpacing {
|
|
113
97
|
style_name: 'spoiler';
|
|
114
98
|
web_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
115
99
|
web_spoiler_show_label?: IContentField<string>;
|
|
116
|
-
web_spoiler_hide_label?: IContentField<string>;
|
|
117
|
-
use_web_style?: IContentField<string>;
|
|
118
|
-
}
|
|
100
|
+
web_spoiler_hide_label?: IContentField<string>;}
|