@selfhelp/shared 1.14.17 → 1.14.23
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 +136 -0
- package/dist/{common-DMm4kymA.d.mts → common-udJ0O8qC.d.mts} +1 -1
- package/dist/{common-DMm4kymA.d.ts → common-udJ0O8qC.d.ts} +1 -1
- package/dist/index.d.mts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/index.mjs +1 -1
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +1 -1
- package/dist/registry/index.mjs +1 -1
- package/dist/{styles.registry-D6u2lOw8.d.ts → styles.registry-CZZwODJY.d.mts} +216 -178
- package/dist/{styles.registry-DPNHAOM1.d.mts → styles.registry-DQKcvIBZ.d.ts} +216 -178
- package/dist/theme/index.d.mts +20 -20
- package/dist/theme/index.d.ts +20 -20
- package/dist/theme/index.js +5 -5
- package/dist/theme/index.mjs +5 -5
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/registry/styles.registry.ts +1 -1
- package/src/theme/__tests__/semantic.test.ts +19 -19
- package/src/theme/mantineVariant.ts +1 -1
- package/src/theme/semantic.ts +24 -24
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +1 -1
- package/src/types/__tests__/mobile-adapters.test.ts +1 -1
- package/src/types/mantine/common.ts +1 -1
- package/src/types/mobile-adapters.ts +30 -4
- package/src/types/styles/auth.ts +13 -9
- package/src/types/styles/base.ts +2 -2
- package/src/types/styles/composite.ts +7 -7
- package/src/types/styles/error.ts +9 -9
- package/src/types/styles/forms.ts +99 -59
- package/src/types/styles/interactive.ts +42 -32
- package/src/types/styles/layout.ts +42 -42
- package/src/types/styles/media.ts +6 -6
- package/src/types/styles/typography.ts +13 -13
- package/src/utils/spacing.ts +1 -1
|
@@ -19,15 +19,21 @@ import type { TMantineIconSize } from './typography';
|
|
|
19
19
|
/** Mantine `Anchor` `underline` behaviour. */
|
|
20
20
|
export type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Mobile-only HeroUI Native Button press feedback (no web equivalent). The web
|
|
24
|
+
* renderer ignores `mobile_*`; only the mobile button renderer reads it.
|
|
25
|
+
*/
|
|
26
|
+
export type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale' | 'none';
|
|
27
|
+
|
|
22
28
|
export interface IButtonStyle extends IStyleWithSpacing {
|
|
23
29
|
style_name: 'button';
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
variant?: IContentField<TMantineVariant>;
|
|
31
|
+
color?: IContentField<TMantineColor>;
|
|
32
|
+
size?: IContentField<TSharedSize>;
|
|
33
|
+
radius?: IContentField<TSharedRadius>;
|
|
28
34
|
web_left_icon?: IContentField<string>;
|
|
29
35
|
web_right_icon?: IContentField<string>;
|
|
30
|
-
|
|
36
|
+
full_width?: IContentField<string>;
|
|
31
37
|
web_compact?: IContentField<string>;
|
|
32
38
|
web_auto_contrast?: IContentField<string>;
|
|
33
39
|
is_link?: IContentField<string>; disabled?: IContentField<string>;
|
|
@@ -39,6 +45,8 @@ export interface IButtonStyle extends IStyleWithSpacing {
|
|
|
39
45
|
confirmation_title?: IContentField<string>;
|
|
40
46
|
confirmation_continue?: IContentField<string>;
|
|
41
47
|
confirmation_message?: IContentField<string>;
|
|
48
|
+
// Mobile-only HeroUI Native press feedback (scale-highlight / scale-ripple / scale / none).
|
|
49
|
+
mobile_button_feedback?: IContentField<TMobileButtonFeedback>;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
export interface ILinkStyle extends IStyleWithSpacing {
|
|
@@ -46,7 +54,7 @@ export interface ILinkStyle extends IStyleWithSpacing {
|
|
|
46
54
|
label?: IContentField<string>;
|
|
47
55
|
url?: IContentField<string>;
|
|
48
56
|
open_in_new_tab?: IContentField<string>;
|
|
49
|
-
|
|
57
|
+
color?: IContentField<TMantineColor>;
|
|
50
58
|
web_link_underline?: IContentField<TMantineAnchorUnderline>;
|
|
51
59
|
web_left_icon?: IContentField<string>;
|
|
52
60
|
web_right_icon?: IContentField<string>;
|
|
@@ -56,9 +64,9 @@ export interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
56
64
|
style_name: 'action-icon';
|
|
57
65
|
web_variant?: IContentField<TMantineVariant>;
|
|
58
66
|
web_action_icon_loading?: IContentField<string>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
size?: IContentField<TSharedSize>;
|
|
68
|
+
radius?: IContentField<TSharedRadius>;
|
|
69
|
+
color?: IContentField<TMantineColor>;
|
|
62
70
|
web_left_icon?: IContentField<string>;
|
|
63
71
|
is_link?: IContentField<string>;
|
|
64
72
|
page_keyword?: IContentField<string>;
|
|
@@ -71,8 +79,8 @@ export interface IAlertStyle extends IStyleWithSpacing {
|
|
|
71
79
|
style_name: 'alert';
|
|
72
80
|
alert_title?: IContentField<string>;
|
|
73
81
|
web_variant?: IContentField<TMantineVariant>;
|
|
74
|
-
|
|
75
|
-
|
|
82
|
+
color?: IContentField<TMantineColor>;
|
|
83
|
+
radius?: IContentField<TSharedRadius>;
|
|
76
84
|
web_left_icon?: IContentField<string>;
|
|
77
85
|
/** Cross-platform dismiss toggle (was the web-only `web_with_close_button`). */
|
|
78
86
|
closable?: IContentField<string>;
|
|
@@ -83,15 +91,15 @@ export interface IBadgeStyle extends IStyleWithSpacing {
|
|
|
83
91
|
style_name: 'badge';
|
|
84
92
|
label?: IContentField<string>;
|
|
85
93
|
/** Cross-platform variant (web Mantine + mobile HeroUI). Primary control. */
|
|
86
|
-
|
|
87
|
-
/** Web-only variant override (e.g. `dot`); empty falls back to
|
|
94
|
+
variant?: IContentField<TMantineBadgeVariant>;
|
|
95
|
+
/** Web-only variant override (e.g. `dot`); empty falls back to variant. */
|
|
88
96
|
web_variant?: IContentField<TMantineBadgeVariant>;
|
|
89
97
|
/** Render as a circle (equal width/height) for short counts. */
|
|
90
98
|
circle?: IContentField<string>;
|
|
91
|
-
|
|
99
|
+
size?: IContentField<TSharedSize>;
|
|
92
100
|
web_left_icon?: IContentField<string>;
|
|
93
|
-
|
|
94
|
-
|
|
101
|
+
radius?: IContentField<TSharedRadius>;
|
|
102
|
+
color?: IContentField<TMantineColor>;
|
|
95
103
|
web_right_icon?: IContentField<string>;
|
|
96
104
|
web_auto_contrast?: IContentField<string>;
|
|
97
105
|
}
|
|
@@ -102,9 +110,9 @@ export interface IAvatarStyle extends IStyleWithSpacing {
|
|
|
102
110
|
/** Person name; seeds auto-initials + a stable auto colour when no image. */
|
|
103
111
|
name?: IContentField<string>;
|
|
104
112
|
web_variant?: IContentField<TMantineAvatarVariant>;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
113
|
+
size?: IContentField<TSharedSize>;
|
|
114
|
+
radius?: IContentField<TSharedRadius>;
|
|
115
|
+
color?: IContentField<TMantineColor>;
|
|
108
116
|
web_left_icon?: IContentField<string>;
|
|
109
117
|
web_avatar_initials?: IContentField<string>;
|
|
110
118
|
img_src?: IContentField<string>;
|
|
@@ -114,10 +122,10 @@ export interface IChipStyle extends IStyleWithSpacing {
|
|
|
114
122
|
style_name: 'chip';
|
|
115
123
|
label?: IContentField<string>;
|
|
116
124
|
// Cross-platform variant (Mantine filled/outline/light; HeroUI Native chip variant).
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
125
|
+
chip_variant?: IContentField<TMantineChipVariant>;
|
|
126
|
+
size?: IContentField<TSharedSize>;
|
|
127
|
+
radius?: IContentField<TSharedRadius>;
|
|
128
|
+
color?: IContentField<TMantineColor>;
|
|
121
129
|
web_chip_checked?: IContentField<string>;
|
|
122
130
|
web_chip_multiple?: IContentField<string>;
|
|
123
131
|
disabled?: IContentField<string>; web_left_icon?: IContentField<string>;
|
|
@@ -144,27 +152,29 @@ export interface IIndicatorStyle extends IBaseStyle {
|
|
|
144
152
|
web_indicator_inline?: IContentField<string>;
|
|
145
153
|
web_indicator_offset?: IContentField<string>;
|
|
146
154
|
web_border?: IContentField<string>;
|
|
147
|
-
|
|
148
|
-
|
|
155
|
+
radius?: IContentField<TSharedRadius>;
|
|
156
|
+
color?: IContentField<TMantineColor>;}
|
|
149
157
|
|
|
150
158
|
export interface IThemeIconStyle extends IStyleWithSpacing {
|
|
151
159
|
style_name: 'theme-icon';
|
|
152
160
|
web_variant?: IContentField<TMantineThemeIconVariant>;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
161
|
+
size?: IContentField<TSharedSize>;
|
|
162
|
+
radius?: IContentField<TSharedRadius>;
|
|
163
|
+
color?: IContentField<TMantineColor>; web_left_icon?: IContentField<string>;
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
export interface INotificationStyle extends IStyleWithSpacing {
|
|
159
167
|
style_name: 'notification';
|
|
160
168
|
title?: IContentField<string>;
|
|
161
169
|
content?: IContentField<string>;
|
|
162
|
-
|
|
163
|
-
|
|
170
|
+
/** Portable icon: honoured by both web (Mantine) and mobile renderers. */
|
|
171
|
+
shared_icon?: IContentField<string>;
|
|
172
|
+
color?: IContentField<TMantineColor>;
|
|
164
173
|
web_notification_loading?: IContentField<string>;
|
|
165
|
-
|
|
174
|
+
/** Portable dismiss toggle: both platforms show a close button when '1'. */
|
|
175
|
+
with_close_button?: IContentField<string>;
|
|
166
176
|
web_border?: IContentField<string>;
|
|
167
|
-
|
|
177
|
+
radius?: IContentField<TSharedRadius>;}
|
|
168
178
|
|
|
169
179
|
// NOTE: `fab-button` and `biometric-login-button` are deferred (mobile rendering
|
|
170
180
|
// plan, milestone-one scope). They are NOT part of the established 90-style
|
|
@@ -45,7 +45,7 @@ export type TMantineScrollAreaType = 'hover' | 'always' | 'auto' | 'never' | 'sc
|
|
|
45
45
|
|
|
46
46
|
export interface IContainerStyle extends IStyleWithSpacing {
|
|
47
47
|
style_name: 'container';
|
|
48
|
-
|
|
48
|
+
size?: IContentField<TSharedSize>;
|
|
49
49
|
web_fluid?: IContentField<string>;
|
|
50
50
|
}
|
|
51
51
|
|
|
@@ -55,20 +55,20 @@ export interface IBoxStyle extends IStyleWithSpacing {
|
|
|
55
55
|
|
|
56
56
|
export interface IFlexStyle extends IStyleWithSpacing {
|
|
57
57
|
style_name: 'flex';
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
gap?: IContentField<TMantineGap>;
|
|
59
|
+
justify?: IContentField<TMantineJustify>;
|
|
60
|
+
align?: IContentField<TMantineAlign>;
|
|
61
|
+
direction?: IContentField<TMantineDirection>;
|
|
62
|
+
wrap?: IContentField<TMantineWrap>;
|
|
63
63
|
shared_width?: IContentField<TSharedDimension>;
|
|
64
64
|
shared_height?: IContentField<TSharedDimension>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
export interface IGroupStyle extends IStyleWithSpacing {
|
|
68
68
|
style_name: 'group';
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
gap?: IContentField<TMantineGap>;
|
|
70
|
+
justify?: IContentField<TMantineJustify>;
|
|
71
|
+
align?: IContentField<TMantineAlign>;
|
|
72
72
|
shared_width?: IContentField<TSharedDimension>;
|
|
73
73
|
shared_height?: IContentField<TSharedDimension>;
|
|
74
74
|
web_group_wrap?: IContentField<'0' | '1'>;
|
|
@@ -77,21 +77,21 @@ export interface IGroupStyle extends IStyleWithSpacing {
|
|
|
77
77
|
|
|
78
78
|
export interface IStackStyle extends IStyleWithSpacing {
|
|
79
79
|
style_name: 'stack';
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
gap?: IContentField<TMantineGap>;
|
|
81
|
+
justify?: IContentField<TMantineJustify>;
|
|
82
|
+
align?: IContentField<TMantineAlign>;
|
|
83
83
|
shared_width?: IContentField<TSharedDimension>;
|
|
84
84
|
shared_height?: IContentField<TSharedDimension>;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
export interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
88
88
|
style_name: 'simple-grid';
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
cols?: IContentField<TSharedCols>;
|
|
90
|
+
gap?: IContentField<TMantineGap>;
|
|
91
|
+
vertical_spacing?: IContentField<TMantineGap>;
|
|
92
92
|
shared_width?: IContentField<TSharedDimension>;
|
|
93
93
|
shared_height?: IContentField<TSharedDimension>;
|
|
94
|
-
// Web-only responsive column overrides; clear to inherit
|
|
94
|
+
// Web-only responsive column overrides; clear to inherit cols.
|
|
95
95
|
web_cols_sm?: IContentField<TSharedCols>;
|
|
96
96
|
web_cols_md?: IContentField<TSharedCols>;
|
|
97
97
|
web_cols_lg?: IContentField<TSharedCols>;
|
|
@@ -99,10 +99,10 @@ export interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
|
99
99
|
|
|
100
100
|
export interface IGridStyle extends IStyleWithSpacing {
|
|
101
101
|
style_name: 'grid';
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
cols?: IContentField<TSharedCols>;
|
|
103
|
+
gap?: IContentField<TMantineGap>;
|
|
104
|
+
justify?: IContentField<TMantineJustify>;
|
|
105
|
+
align?: IContentField<TMantineAlign>;
|
|
106
106
|
shared_width?: IContentField<TSharedDimension>;
|
|
107
107
|
shared_height?: IContentField<TSharedDimension>;
|
|
108
108
|
web_grid_overflow?: IContentField<TMantineGridOverflow>;
|
|
@@ -110,28 +110,28 @@ export interface IGridStyle extends IStyleWithSpacing {
|
|
|
110
110
|
|
|
111
111
|
export interface IGridColumnStyle extends IStyleWithSpacing {
|
|
112
112
|
style_name: 'grid-column';
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
113
|
+
grid_span?: IContentField<TMantineGridSpan>;
|
|
114
|
+
grid_offset?: IContentField<TMantineGridOffset>;
|
|
115
|
+
grid_order?: IContentField<TMantineGridOrder>;
|
|
116
|
+
grid_grow?: IContentField<TMantineGridGrow>;
|
|
117
117
|
shared_width?: IContentField<TSharedDimension>;
|
|
118
118
|
shared_height?: IContentField<TSharedDimension>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
export interface ISpaceStyle extends IStyleWithSpacing {
|
|
122
122
|
style_name: 'space';
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
size?: IContentField<TSharedSize>;
|
|
124
|
+
orientation?: IContentField<TMantineOrientation>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export interface IDividerStyle extends IStyleWithSpacing {
|
|
128
128
|
style_name: 'divider';
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
divider_variant?: IContentField<TSharedDividerVariant>;
|
|
130
|
+
size?: IContentField<TSharedSize>;
|
|
131
131
|
divider_label?: IContentField<string>;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
divider_label_position?: IContentField<TSharedDividerLabelPosition>;
|
|
133
|
+
orientation?: IContentField<TMantineOrientation>;
|
|
134
|
+
color?: IContentField<TMantineColor>;}
|
|
135
135
|
|
|
136
136
|
export interface IPaperStyle extends IStyleWithSpacing {
|
|
137
137
|
style_name: 'paper';
|
|
@@ -139,18 +139,18 @@ export interface IPaperStyle extends IStyleWithSpacing {
|
|
|
139
139
|
// never auto-creates a child section.
|
|
140
140
|
title?: IContentField<string>;
|
|
141
141
|
web_paper_shadow?: IContentField<TMantinePaperShadow>;
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
radius?: IContentField<TSharedRadius>;
|
|
143
|
+
border?: IContentField<TSharedBorder>;}
|
|
144
144
|
|
|
145
145
|
export interface ICenterStyle extends IStyleWithSpacing {
|
|
146
146
|
style_name: 'center';
|
|
147
147
|
web_center_inline?: IContentField<string>;
|
|
148
148
|
shared_width?: IContentField<TSharedDimension>;
|
|
149
149
|
shared_height?: IContentField<TSharedDimension>;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
miw?: IContentField<TSharedDimension>;
|
|
151
|
+
mih?: IContentField<TSharedDimension>;
|
|
152
|
+
maw?: IContentField<TSharedDimension>;
|
|
153
|
+
mah?: IContentField<TSharedDimension>;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
export interface IScrollAreaStyle extends IStyleWithSpacing {
|
|
@@ -169,17 +169,17 @@ export interface ICardStyle extends IStyleWithSpacing {
|
|
|
169
169
|
title?: IContentField<string>;
|
|
170
170
|
img_src?: IContentField<string>;
|
|
171
171
|
// Cross-platform border (Mantine withBorder / themed border on mobile).
|
|
172
|
-
|
|
173
|
-
// NOTE: no web-only card padding — padding is the portable `
|
|
172
|
+
border?: IContentField<TSharedBorder>;
|
|
173
|
+
// NOTE: no web-only card padding — padding is the portable `spacing`
|
|
174
174
|
// (pt/pb/ps/pe), which renders on web AND mobile. The renderer keeps a fixed
|
|
175
175
|
// Mantine inner padding ("md") as the default + Card.Section bleed reference.
|
|
176
176
|
web_card_shadow?: IContentField<TMantineCardShadow>;
|
|
177
|
-
|
|
177
|
+
radius?: IContentField<TSharedRadius>;}
|
|
178
178
|
|
|
179
179
|
export interface ICardSegmentStyle extends IStyleWithSpacing {
|
|
180
180
|
style_name: 'card-segment';
|
|
181
181
|
// Mantine Card.Section withBorder (themed divider on mobile).
|
|
182
|
-
|
|
182
|
+
border?: IContentField<TSharedBorder>;
|
|
183
183
|
// Mantine Card.Section inheritPadding (web only).
|
|
184
184
|
web_segment_inherit_padding?: IContentField<'0' | '1'>;}
|
|
185
185
|
|
|
@@ -190,7 +190,7 @@ export interface IAspectRatioStyle extends IBaseStyle {
|
|
|
190
190
|
export interface IBackgroundImageStyle extends IStyleWithSpacing {
|
|
191
191
|
style_name: 'background-image';
|
|
192
192
|
img_src?: IContentField<string>;
|
|
193
|
-
|
|
193
|
+
radius?: IContentField<TSharedRadius>;}
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
196
|
* Renders content referenced from another section. Has no own fields; the
|
|
@@ -14,14 +14,13 @@ export interface IImageStyle extends IStyleWithSpacing {
|
|
|
14
14
|
is_fluid?: IContentField<string>;
|
|
15
15
|
alt?: IContentField<string>;
|
|
16
16
|
img_src?: IContentField<string>;
|
|
17
|
-
height?: IContentField<string>;
|
|
18
|
-
width?: IContentField<string>;
|
|
19
17
|
web_image_fit?: IContentField<TMantineImageFit>;
|
|
20
18
|
web_width?: IContentField<TMantineWidth>;
|
|
21
19
|
web_height?: IContentField<TMantineHeight>;
|
|
22
|
-
|
|
20
|
+
radius?: IContentField<TMantineRadius>;
|
|
23
21
|
/** Image shown when the main source fails to load (Mantine Image fallbackSrc). */
|
|
24
|
-
fallback_src?: IContentField<string>;
|
|
22
|
+
fallback_src?: IContentField<string>;
|
|
23
|
+
}
|
|
25
24
|
|
|
26
25
|
export interface IVideoStyle extends IStyleWithSpacing {
|
|
27
26
|
style_name: 'video';
|
|
@@ -66,7 +65,7 @@ export interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
66
65
|
web_height?: IContentField<string>;
|
|
67
66
|
web_carousel_slide_size?: IContentField<string>;
|
|
68
67
|
web_carousel_slide_gap?: IContentField<string>;
|
|
69
|
-
|
|
68
|
+
orientation?: IContentField<string>;
|
|
70
69
|
web_control_size?: IContentField<string>;
|
|
71
70
|
web_carousel_controls_offset?: IContentField<string>;
|
|
72
71
|
web_carousel_next_control_icon?: IContentField<string>;
|
|
@@ -78,4 +77,5 @@ export interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
78
77
|
skip_snaps?: IContentField<string>;
|
|
79
78
|
web_carousel_in_view_threshold?: IContentField<string>;
|
|
80
79
|
web_carousel_duration?: IContentField<string>;
|
|
81
|
-
web_carousel_embla_options?: IContentField<string>;
|
|
80
|
+
web_carousel_embla_options?: IContentField<string>;
|
|
81
|
+
}
|
|
@@ -32,22 +32,22 @@ export interface ITitleStyle extends IStyleWithSpacing {
|
|
|
32
32
|
content?: IContentField<string>;
|
|
33
33
|
// Semantic heading level (H1-H6) read on both platforms.
|
|
34
34
|
title_order?: IContentField<TMantineTitleOrder>;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
size?: IContentField<TMantineSize>;
|
|
36
|
+
color?: IContentField<TMantineColor>;
|
|
37
37
|
web_title_text_wrap?: IContentField<TMantineTitleTextWrap>;
|
|
38
38
|
// Web lineClamp / mobile numberOfLines.
|
|
39
|
-
|
|
39
|
+
line_clamp?: IContentField<TMantineTitleLineClamp>;}
|
|
40
40
|
|
|
41
41
|
export interface ITextStyle extends IStyleWithSpacing {
|
|
42
42
|
style_name: 'text';
|
|
43
43
|
text?: IContentField<string>;
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
size?: IContentField<TMantineSize>;
|
|
45
|
+
color?: IContentField<TMantineColor>;
|
|
46
46
|
web_text_font_weight?: IContentField<TMantineTextFontWeight>;
|
|
47
47
|
web_text_font_style?: IContentField<TMantineTextFontStyle>;
|
|
48
48
|
web_text_text_decoration?: IContentField<TMantineTextDecoration>;
|
|
49
49
|
web_text_text_transform?: IContentField<TMantineTextTransform>;
|
|
50
|
-
|
|
50
|
+
text_align?: IContentField<TMantineTextAlign>;
|
|
51
51
|
web_text_variant?: IContentField<TMantineTextVariant>;
|
|
52
52
|
web_text_gradient?: IContentField<string>;
|
|
53
53
|
web_text_truncate?: IContentField<TMantineTextTruncate>;
|
|
@@ -59,8 +59,8 @@ export interface ICodeStyle extends IStyleWithSpacing {
|
|
|
59
59
|
style_name: 'code';
|
|
60
60
|
// Cross-platform block-vs-inline behaviour.
|
|
61
61
|
code_block?: IContentField<string>;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
color?: IContentField<TMantineColor>;
|
|
63
|
+
radius?: IContentField<TSharedRadius>;
|
|
64
64
|
content?: IContentField<string>;
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ export interface IHighlightStyle extends IStyleWithSpacing {
|
|
|
68
68
|
style_name: 'highlight';
|
|
69
69
|
text?: IContentField<string>;
|
|
70
70
|
highlight_highlight?: IContentField<string>;
|
|
71
|
-
|
|
71
|
+
color?: IContentField<TMantineColor>;}
|
|
72
72
|
|
|
73
73
|
export interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
74
74
|
style_name: 'blockquote';
|
|
@@ -77,7 +77,7 @@ export interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
|
77
77
|
cite?: IContentField<string>;
|
|
78
78
|
web_left_icon?: IContentField<string>;
|
|
79
79
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
80
|
-
|
|
80
|
+
color?: IContentField<TMantineColor>;}
|
|
81
81
|
|
|
82
82
|
export interface IHtmlTagStyle extends IBaseStyle {
|
|
83
83
|
style_name: 'html-tag';
|
|
@@ -88,7 +88,7 @@ export interface IHtmlTagStyle extends IBaseStyle {
|
|
|
88
88
|
export interface IKbdStyle extends IStyleWithSpacing {
|
|
89
89
|
style_name: 'kbd';
|
|
90
90
|
label?: IContentField<string>;
|
|
91
|
-
|
|
91
|
+
size?: IContentField<TMantineSize>;}
|
|
92
92
|
|
|
93
93
|
export interface ITypographyStyle extends IStyleWithSpacing {
|
|
94
94
|
style_name: 'typography';}
|
|
@@ -98,7 +98,7 @@ export interface IFieldsetStyle extends IStyleWithSpacing {
|
|
|
98
98
|
label?: IContentField<string>;
|
|
99
99
|
legend?: IContentField<string>;
|
|
100
100
|
web_fieldset_variant?: IContentField<TMantineFieldsetVariant>;
|
|
101
|
-
|
|
101
|
+
radius?: IContentField<TMantineRadius>; disabled?: IContentField<string>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface ISpoilerStyle extends IStyleWithSpacing {
|
|
@@ -107,4 +107,4 @@ export interface ISpoilerStyle extends IStyleWithSpacing {
|
|
|
107
107
|
spoiler_show_label?: IContentField<string>;
|
|
108
108
|
spoiler_hide_label?: IContentField<string>;
|
|
109
109
|
/** Color of the show/hide control link. */
|
|
110
|
-
|
|
110
|
+
color?: IContentField<TMantineColor>;}
|
package/src/utils/spacing.ts
CHANGED
|
@@ -3,7 +3,7 @@ SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
|
3
3
|
SPDX-License-Identifier: MPL-2.0
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Parse the unified `
|
|
6
|
+
* Parse the unified `spacing` field. The CMS
|
|
7
7
|
* stores this as a JSON string with optional keys for each side:
|
|
8
8
|
*
|
|
9
9
|
* { "mt": "md", "mb": "lg", "ms": "0", "me": "auto",
|