@selfhelp/shared 1.8.0 → 1.10.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 +48 -0
- package/dist/{common-B96dASgu.d.mts → common-CJSHQL1E.d.mts} +13 -1
- package/dist/{common-B96dASgu.d.ts → common-CJSHQL1E.d.ts} +13 -1
- package/dist/index.d.mts +7 -44
- package/dist/index.d.ts +7 -44
- package/dist/index.js +395 -8
- package/dist/index.mjs +371 -8
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +10 -1
- package/dist/plugin-sdk/index.mjs +10 -1
- package/dist/registry/index.d.mts +42 -4
- package/dist/registry/index.d.ts +42 -4
- package/dist/registry/index.js +56 -3
- package/dist/registry/index.mjs +48 -2
- package/dist/{styles.registry-ClluRYkN.d.ts → styles.registry-BV1iF7k-.d.ts} +678 -461
- package/dist/{styles.registry-nl8uzvMN.d.mts → styles.registry-DkoT-FmN.d.mts} +678 -461
- package/dist/theme/index.d.mts +225 -4
- package/dist/theme/index.d.ts +225 -4
- package/dist/theme/index.js +343 -9
- package/dist/theme/index.mjs +325 -8
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/registry/__tests__/platform.test.ts +187 -0
- package/src/registry/index.ts +73 -0
- package/src/registry/styles.registry.ts +60 -0
- package/src/theme/__tests__/mantineVariant.test.ts +87 -0
- package/src/theme/__tests__/semantic.test.ts +231 -0
- package/src/theme/index.ts +2 -0
- package/src/theme/mantineVariant.ts +145 -0
- package/src/theme/semantic.ts +472 -0
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +2 -2
- package/src/types/mantine/common.ts +13 -0
- package/src/types/styles/auth.ts +11 -11
- package/src/types/styles/base.ts +4 -4
- package/src/types/styles/composite.ts +59 -45
- package/src/types/styles/error.ts +24 -13
- package/src/types/styles/forms.ts +184 -184
- package/src/types/styles/interactive.ts +81 -76
- package/src/types/styles/layout.ts +103 -85
- package/src/types/styles/media.ts +20 -20
- package/src/types/styles/typography.ts +39 -39
- package/src/types/styles/unknown.ts +20 -2
- package/src/utils/spacing.ts +1 -1
|
@@ -4,31 +4,31 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
4
4
|
*/
|
|
5
5
|
import type { IBaseStyle, IContentField, IStyleWithSpacing } from './base';
|
|
6
6
|
import type {
|
|
7
|
-
TMantineSize,
|
|
8
7
|
TMantineColor,
|
|
9
|
-
TMantineRadius,
|
|
10
8
|
TMantineVariant,
|
|
11
9
|
TMantineBadgeVariant,
|
|
12
10
|
TMantineAvatarVariant,
|
|
13
11
|
TMantineChipVariant,
|
|
14
12
|
TMantineIndicatorPosition,
|
|
15
13
|
TMantineThemeIconVariant,
|
|
14
|
+
TSharedSize,
|
|
15
|
+
TSharedRadius,
|
|
16
16
|
} from '../mantine/common';
|
|
17
17
|
import type { TMantineIconSize } from './typography';
|
|
18
18
|
|
|
19
19
|
export interface IButtonStyle extends IStyleWithSpacing {
|
|
20
20
|
style_name: 'button';
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
web_variant?: IContentField<TMantineVariant>;
|
|
22
|
+
web_color?: IContentField<TMantineColor>;
|
|
23
|
+
shared_size?: IContentField<TSharedSize>;
|
|
24
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
25
|
+
web_left_icon?: IContentField<string>;
|
|
26
|
+
web_right_icon?: IContentField<string>;
|
|
27
|
+
shared_full_width?: IContentField<string>;
|
|
28
|
+
web_compact?: IContentField<string>;
|
|
29
|
+
web_auto_contrast?: IContentField<string>;
|
|
30
30
|
is_link?: IContentField<string>;
|
|
31
|
-
|
|
31
|
+
use_web_style?: IContentField<string>;
|
|
32
32
|
disabled?: IContentField<string>;
|
|
33
33
|
open_in_new_tab?: IContentField<string>;
|
|
34
34
|
page_keyword?: IContentField<string>;
|
|
@@ -49,78 +49,78 @@ export interface ILinkStyle extends IStyleWithSpacing {
|
|
|
49
49
|
|
|
50
50
|
export interface IActionIconStyle extends IStyleWithSpacing {
|
|
51
51
|
style_name: 'action-icon';
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
web_variant?: IContentField<TMantineVariant>;
|
|
53
|
+
web_action_icon_loading?: IContentField<string>;
|
|
54
|
+
shared_size?: IContentField<TSharedSize>;
|
|
55
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
56
|
+
web_color?: IContentField<TMantineColor>;
|
|
57
|
+
web_left_icon?: IContentField<string>;
|
|
58
58
|
is_link?: IContentField<string>;
|
|
59
59
|
page_keyword?: IContentField<string>;
|
|
60
60
|
open_in_new_tab?: IContentField<string>;
|
|
61
61
|
disabled?: IContentField<string>;
|
|
62
|
-
|
|
62
|
+
use_web_style?: IContentField<string>;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface IAlertStyle extends IStyleWithSpacing {
|
|
66
66
|
style_name: 'alert';
|
|
67
|
-
|
|
67
|
+
web_alert_title?: IContentField<string>;
|
|
68
68
|
close_button_label?: IContentField<string>;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
web_variant?: IContentField<TMantineVariant>;
|
|
70
|
+
web_color?: IContentField<TMantineColor>;
|
|
71
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
72
|
+
web_left_icon?: IContentField<string>;
|
|
73
|
+
web_with_close_button?: IContentField<string>;
|
|
74
74
|
content?: IContentField<string>;
|
|
75
|
-
|
|
75
|
+
use_web_style?: IContentField<string>;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface IBadgeStyle extends IStyleWithSpacing {
|
|
79
79
|
style_name: 'badge';
|
|
80
80
|
label?: IContentField<string>;
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
81
|
+
web_variant?: IContentField<TMantineBadgeVariant>;
|
|
82
|
+
shared_size?: IContentField<TSharedSize>;
|
|
83
|
+
web_left_icon?: IContentField<string>;
|
|
84
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
85
|
+
web_color?: IContentField<TMantineColor>;
|
|
86
|
+
use_web_style?: IContentField<string>;
|
|
87
|
+
web_right_icon?: IContentField<string>;
|
|
88
|
+
web_auto_contrast?: IContentField<string>;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export interface IAvatarStyle extends IStyleWithSpacing {
|
|
92
92
|
style_name: 'avatar';
|
|
93
93
|
alt?: IContentField<string>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
94
|
+
web_avatar_variant?: IContentField<TMantineAvatarVariant>;
|
|
95
|
+
shared_size?: IContentField<TSharedSize>;
|
|
96
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
97
|
+
web_color?: IContentField<TMantineColor>;
|
|
98
|
+
use_web_style?: IContentField<string>;
|
|
99
|
+
web_left_icon?: IContentField<string>;
|
|
100
|
+
web_avatar_initials?: IContentField<string>;
|
|
101
101
|
img_src?: IContentField<string>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface IChipStyle extends IStyleWithSpacing {
|
|
105
105
|
style_name: 'chip';
|
|
106
106
|
label?: IContentField<string>;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
web_chip_variant?: IContentField<TMantineChipVariant>;
|
|
108
|
+
shared_size?: IContentField<TSharedSize>;
|
|
109
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
110
|
+
web_color?: IContentField<TMantineColor>;
|
|
111
|
+
web_chip_checked?: IContentField<string>;
|
|
112
|
+
web_chip_multiple?: IContentField<string>;
|
|
113
113
|
disabled?: IContentField<string>;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
use_web_style?: IContentField<string>;
|
|
115
|
+
web_left_icon?: IContentField<string>;
|
|
116
|
+
web_icon_size?: IContentField<TMantineIconSize>;
|
|
117
117
|
name?: IContentField<string>;
|
|
118
118
|
value?: IContentField<string>;
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
web_chip_on_value?: IContentField<string>;
|
|
120
|
+
web_chip_off_value?: IContentField<string>;
|
|
121
121
|
is_required?: IContentField<string>;
|
|
122
122
|
tooltip?: IContentField<string>;
|
|
123
|
-
|
|
123
|
+
web_tooltip_position?: IContentField<string>;
|
|
124
124
|
chip_on_value?: IContentField<string>;
|
|
125
125
|
chip_off_value?: IContentField<string>;
|
|
126
126
|
chip_checked?: IContentField<string>;
|
|
@@ -128,38 +128,43 @@ export interface IChipStyle extends IStyleWithSpacing {
|
|
|
128
128
|
|
|
129
129
|
export interface IIndicatorStyle extends IBaseStyle {
|
|
130
130
|
style_name: 'indicator';
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
131
|
+
web_indicator_processing?: IContentField<string>;
|
|
132
|
+
web_indicator_disabled?: IContentField<string>;
|
|
133
|
+
web_indicator_size?: IContentField<string>;
|
|
134
|
+
web_indicator_position?: IContentField<TMantineIndicatorPosition>;
|
|
135
135
|
label?: IContentField<string>;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
136
|
+
web_indicator_inline?: IContentField<string>;
|
|
137
|
+
web_indicator_offset?: IContentField<string>;
|
|
138
|
+
web_border?: IContentField<string>;
|
|
139
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
140
|
+
web_color?: IContentField<TMantineColor>;
|
|
141
|
+
use_web_style?: IContentField<string>;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export interface IThemeIconStyle extends IStyleWithSpacing {
|
|
145
145
|
style_name: 'theme-icon';
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
web_variant?: IContentField<TMantineThemeIconVariant>;
|
|
147
|
+
shared_size?: IContentField<TSharedSize>;
|
|
148
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
149
|
+
web_color?: IContentField<TMantineColor>;
|
|
150
|
+
use_web_style?: IContentField<string>;
|
|
151
|
+
web_left_icon?: IContentField<string>;
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
export interface INotificationStyle extends IStyleWithSpacing {
|
|
155
155
|
style_name: 'notification';
|
|
156
156
|
title?: IContentField<string>;
|
|
157
157
|
content?: IContentField<string>;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
web_left_icon?: IContentField<string>;
|
|
159
|
+
web_color?: IContentField<TMantineColor>;
|
|
160
|
+
web_notification_loading?: IContentField<string>;
|
|
161
|
+
web_notification_with_close_button?: IContentField<string>;
|
|
162
|
+
web_border?: IContentField<string>;
|
|
163
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
164
|
+
use_web_style?: IContentField<string>;
|
|
165
165
|
}
|
|
166
|
+
|
|
167
|
+
// NOTE: `fab-button` and `biometric-login-button` are deferred (mobile rendering
|
|
168
|
+
// plan, milestone-one scope). They are NOT part of the established 90-style
|
|
169
|
+
// catalog and were removed from the registry, union and interfaces. Reintroduce
|
|
170
|
+
// only with a concrete CMS authoring use case, fields, render target, and tests.
|
|
@@ -4,9 +4,7 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
4
4
|
*/
|
|
5
5
|
import type { IBaseStyle, IContentField, IStyleWithSpacing } from './base';
|
|
6
6
|
import type {
|
|
7
|
-
TMantineSize,
|
|
8
7
|
TMantineSpacing,
|
|
9
|
-
TMantineRadius,
|
|
10
8
|
TMantineColor,
|
|
11
9
|
TMantineOrientation,
|
|
12
10
|
TMantineDirection,
|
|
@@ -14,6 +12,8 @@ import type {
|
|
|
14
12
|
TMantineJustify,
|
|
15
13
|
TMantineAlign,
|
|
16
14
|
TMantineGridSpan,
|
|
15
|
+
TSharedSize,
|
|
16
|
+
TSharedRadius,
|
|
17
17
|
} from '../mantine/common';
|
|
18
18
|
|
|
19
19
|
// Style-specific helper types only used in layout interfaces
|
|
@@ -32,153 +32,171 @@ export type TMantineScrollAreaType = 'hover' | 'always' | 'never' | 'scroll';
|
|
|
32
32
|
|
|
33
33
|
export interface IContainerStyle extends IStyleWithSpacing {
|
|
34
34
|
style_name: 'container';
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
shared_size?: IContentField<TSharedSize>;
|
|
36
|
+
web_fluid?: IContentField<string>;
|
|
37
|
+
web_px?: IContentField<TMantineSpacing>;
|
|
38
|
+
web_py?: IContentField<TMantineSpacing>;
|
|
39
|
+
use_web_style?: IContentField<string>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export interface IBoxStyle extends IStyleWithSpacing {
|
|
43
43
|
style_name: 'box';
|
|
44
44
|
content?: IContentField<string>;
|
|
45
|
-
|
|
45
|
+
use_web_style?: IContentField<string>;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export interface IFlexStyle extends IStyleWithSpacing {
|
|
49
49
|
style_name: 'flex';
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
shared_gap?: IContentField<TMantineGap>;
|
|
51
|
+
shared_justify?: IContentField<TMantineJustify>;
|
|
52
|
+
shared_align?: IContentField<TMantineAlign>;
|
|
53
|
+
shared_direction?: IContentField<TMantineDirection>;
|
|
54
|
+
shared_wrap?: IContentField<TMantineWrap>;
|
|
55
|
+
web_width?: IContentField<TMantineWidth>;
|
|
56
|
+
web_height?: IContentField<TMantineHeight>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
export interface IGroupStyle extends IStyleWithSpacing {
|
|
60
60
|
style_name: 'group';
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
shared_gap?: IContentField<TMantineGap>;
|
|
62
|
+
shared_justify?: IContentField<TMantineJustify>;
|
|
63
|
+
shared_align?: IContentField<TMantineAlign>;
|
|
64
|
+
web_group_wrap?: IContentField<'0' | '1'>;
|
|
65
|
+
web_group_grow?: IContentField<'0' | '1'>;
|
|
66
|
+
web_width?: IContentField<TMantineWidth>;
|
|
67
|
+
web_height?: IContentField<TMantineHeight>;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export interface IStackStyle extends IStyleWithSpacing {
|
|
71
71
|
style_name: 'stack';
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
shared_gap?: IContentField<TMantineGap>;
|
|
73
|
+
shared_justify?: IContentField<TMantineJustify>;
|
|
74
|
+
shared_align?: IContentField<TMantineAlign>;
|
|
75
|
+
web_width?: IContentField<TMantineWidth>;
|
|
76
|
+
web_height?: IContentField<TMantineHeight>;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
80
80
|
style_name: 'simple-grid';
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
web_cols?: IContentField<TMantineCols>;
|
|
82
|
+
web_spacing?: IContentField<TMantineSpacing>;
|
|
83
|
+
web_breakpoints?: IContentField<string>;
|
|
84
|
+
web_vertical_spacing?: IContentField<TMantineSpacing>;
|
|
85
|
+
web_width?: IContentField<TMantineWidth>;
|
|
86
|
+
web_height?: IContentField<TMantineHeight>;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export interface IGridStyle extends IStyleWithSpacing {
|
|
90
90
|
style_name: 'grid';
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
web_cols?: IContentField<TMantineCols>;
|
|
92
|
+
shared_gap?: IContentField<TMantineGap>;
|
|
93
|
+
shared_justify?: IContentField<TMantineJustify>;
|
|
94
|
+
shared_align?: IContentField<TMantineAlign>;
|
|
95
|
+
web_grid_overflow?: IContentField<string>;
|
|
96
|
+
web_width?: IContentField<TMantineWidth>;
|
|
97
|
+
web_height?: IContentField<TMantineHeight>;
|
|
98
|
+
use_web_style?: IContentField<string>;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface IGridColumnStyle extends IStyleWithSpacing {
|
|
102
102
|
style_name: 'grid-column';
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
web_grid_span?: IContentField<TMantineGridSpan>;
|
|
104
|
+
web_grid_offset?: IContentField<TMantineGridOffset>;
|
|
105
|
+
web_grid_order?: IContentField<TMantineGridOrder>;
|
|
106
|
+
web_grid_grow?: IContentField<string>;
|
|
107
|
+
web_width?: IContentField<TMantineWidth>;
|
|
108
|
+
web_height?: IContentField<TMantineHeight>;
|
|
109
|
+
use_web_style?: IContentField<string>;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface ISpaceStyle extends IStyleWithSpacing {
|
|
113
113
|
style_name: 'space';
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
shared_size?: IContentField<TSharedSize>;
|
|
115
|
+
web_space_direction?: IContentField<string>;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export interface IDividerStyle extends IBaseStyle {
|
|
119
119
|
style_name: 'divider';
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
web_divider_variant?: IContentField<TMantineDividerVariant>;
|
|
121
|
+
shared_size?: IContentField<TSharedSize>;
|
|
122
|
+
web_divider_label?: IContentField<string>;
|
|
123
|
+
web_divider_label_position?: IContentField<string>;
|
|
124
|
+
shared_orientation?: IContentField<TMantineOrientation>;
|
|
125
|
+
web_color?: IContentField<TMantineColor>;
|
|
126
|
+
use_web_style?: IContentField<string>;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export interface IPaperStyle extends IStyleWithSpacing {
|
|
130
130
|
style_name: 'paper';
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
web_paper_shadow?: IContentField<TMantinePaperShadow>;
|
|
132
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
133
|
+
web_px?: IContentField<TMantineSpacing>;
|
|
134
|
+
web_py?: IContentField<TMantineSpacing>;
|
|
135
|
+
web_border?: IContentField<TMantineBorder>;
|
|
136
|
+
use_web_style?: IContentField<string>;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export interface ICenterStyle extends IBaseStyle {
|
|
140
140
|
style_name: 'center';
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
web_center_inline?: IContentField<string>;
|
|
142
|
+
web_width?: IContentField<TMantineWidth>;
|
|
143
|
+
web_height?: IContentField<TMantineHeight>;
|
|
144
|
+
web_miw?: IContentField<TMantineWidth>;
|
|
145
|
+
web_mih?: IContentField<TMantineHeight>;
|
|
146
|
+
web_maw?: IContentField<TMantineWidth>;
|
|
147
|
+
web_mah?: IContentField<TMantineHeight>;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
export interface IScrollAreaStyle extends IStyleWithSpacing {
|
|
151
151
|
style_name: 'scroll-area';
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
152
|
+
web_scroll_area_scrollbar_size?: IContentField<TMantineScrollAreaSize>;
|
|
153
|
+
web_scroll_area_type?: IContentField<TMantineScrollAreaType>;
|
|
154
|
+
web_scroll_area_offset_scrollbars?: IContentField<string>;
|
|
155
|
+
web_scroll_area_scroll_hide_delay?: IContentField<string>;
|
|
156
|
+
web_height?: IContentField<TMantineHeight>;
|
|
157
|
+
web_width?: IContentField<TMantineWidth>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
export interface ICardStyle extends IStyleWithSpacing {
|
|
161
161
|
style_name: 'card';
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
web_card_shadow?: IContentField<TMantineCardShadow>;
|
|
163
|
+
web_border?: IContentField<TMantineBorder>;
|
|
164
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
165
|
+
use_web_style?: IContentField<string>;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export interface ICardSegmentStyle extends IStyleWithSpacing {
|
|
169
169
|
style_name: 'card-segment';
|
|
170
|
-
|
|
170
|
+
use_web_style?: IContentField<string>;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export interface IAspectRatioStyle extends IBaseStyle {
|
|
174
174
|
style_name: 'aspect-ratio';
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
web_aspect_ratio?: IContentField<string>;
|
|
176
|
+
use_web_style?: IContentField<string>;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
export interface IBackgroundImageStyle extends IStyleWithSpacing {
|
|
180
180
|
style_name: 'background-image';
|
|
181
181
|
img_src?: IContentField<string>;
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
shared_radius?: IContentField<TSharedRadius>;
|
|
183
|
+
use_web_style?: IContentField<string>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Renders content referenced from another section. Has no own fields; the
|
|
188
|
+
* referenced subtree arrives as `children`. Renderers must reuse the normal
|
|
189
|
+
* recursive section renderer (no second renderer).
|
|
190
|
+
*/
|
|
191
|
+
export interface IRefContainerStyle extends IBaseStyle {
|
|
192
|
+
style_name: 'ref-container';
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* A data-scoped container. `scope` selects the backend data context that the
|
|
197
|
+
* subtree is rendered against (mirrors backend `data-container`).
|
|
198
|
+
*/
|
|
199
|
+
export interface IDataContainerStyle extends IBaseStyle {
|
|
200
|
+
style_name: 'data-container';
|
|
201
|
+
scope?: IContentField<string>;
|
|
184
202
|
}
|
|
@@ -16,11 +16,11 @@ export interface IImageStyle extends IStyleWithSpacing {
|
|
|
16
16
|
img_src?: IContentField<string>;
|
|
17
17
|
height?: IContentField<string>;
|
|
18
18
|
width?: IContentField<string>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
web_image_fit?: IContentField<TMantineImageFit>;
|
|
20
|
+
web_width?: IContentField<TMantineWidth>;
|
|
21
|
+
web_height?: IContentField<TMantineHeight>;
|
|
22
|
+
shared_radius?: IContentField<TMantineRadius>;
|
|
23
|
+
use_web_style?: IContentField<string>;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export interface IVideoStyle extends IBaseStyle {
|
|
@@ -48,21 +48,21 @@ export interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
48
48
|
has_indicators?: IContentField<string>;
|
|
49
49
|
has_crossfade?: IContentField<string>;
|
|
50
50
|
sources?: IContentField<unknown[]>;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
web_height?: IContentField<string>;
|
|
52
|
+
web_carousel_slide_size?: IContentField<string>;
|
|
53
|
+
web_carousel_slide_gap?: IContentField<string>;
|
|
54
|
+
shared_orientation?: IContentField<string>;
|
|
55
|
+
web_control_size?: IContentField<string>;
|
|
56
|
+
web_carousel_controls_offset?: IContentField<string>;
|
|
57
|
+
web_carousel_next_control_icon?: IContentField<string>;
|
|
58
|
+
web_carousel_previous_control_icon?: IContentField<string>;
|
|
59
|
+
web_loop?: IContentField<string>;
|
|
60
60
|
drag_free?: IContentField<string>;
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
web_carousel_align?: IContentField<string>;
|
|
62
|
+
web_carousel_contain_scroll?: IContentField<string>;
|
|
63
63
|
skip_snaps?: IContentField<string>;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
web_carousel_in_view_threshold?: IContentField<string>;
|
|
65
|
+
web_carousel_duration?: IContentField<string>;
|
|
66
|
+
web_carousel_embla_options?: IContentField<string>;
|
|
67
|
+
use_web_style?: IContentField<string>;
|
|
68
68
|
}
|