@selfhelp/shared 1.0.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 +39 -0
- package/LICENSE +381 -0
- package/README.md +266 -0
- package/dist/common-B96dASgu.d.mts +80 -0
- package/dist/common-B96dASgu.d.ts +80 -0
- package/dist/index-Bg60YTsF.d.mts +1743 -0
- package/dist/index-DEOVT86P.d.ts +1743 -0
- package/dist/index.d.mts +597 -0
- package/dist/index.d.ts +597 -0
- package/dist/index.js +796 -0
- package/dist/index.mjs +718 -0
- package/dist/registry/index.d.mts +2 -0
- package/dist/registry/index.d.ts +2 -0
- package/dist/registry/index.js +134 -0
- package/dist/registry/index.mjs +105 -0
- package/dist/theme/index.d.mts +63 -0
- package/dist/theme/index.d.ts +63 -0
- package/dist/theme/index.js +202 -0
- package/dist/theme/index.mjs +162 -0
- package/dist/theme/tailwind.d.mts +36 -0
- package/dist/theme/tailwind.d.ts +36 -0
- package/dist/theme/tailwind.js +125 -0
- package/dist/theme/tailwind.mjs +97 -0
- package/package.json +69 -0
- package/src/api/endpoints.ts +58 -0
- package/src/api/index.ts +5 -0
- package/src/assets/index.ts +5 -0
- package/src/assets/resolveAssetUrl.ts +44 -0
- package/src/cms-classes/allow-list.ts +158 -0
- package/src/cms-classes/classify.ts +90 -0
- package/src/cms-classes/index.ts +7 -0
- package/src/cms-classes/remap.ts +44 -0
- package/src/condition/evaluate.ts +121 -0
- package/src/condition/index.ts +5 -0
- package/src/index.ts +25 -0
- package/src/interpolation/index.ts +5 -0
- package/src/interpolation/replaceCalcedValues.ts +27 -0
- package/src/registry/index.ts +37 -0
- package/src/registry/styles.registry.ts +158 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/tailwind.ts +73 -0
- package/src/theme/tokens.ts +177 -0
- package/src/types/api/auth.ts +46 -0
- package/src/types/api/envelope.ts +34 -0
- package/src/types/api/forms.ts +38 -0
- package/src/types/api/index.ts +9 -0
- package/src/types/api/language.ts +12 -0
- package/src/types/api/page.ts +9 -0
- package/src/types/auth.ts +110 -0
- package/src/types/index.ts +17 -0
- package/src/types/mantine/common.ts +142 -0
- package/src/types/pages.ts +107 -0
- package/src/types/styles/auth.ts +165 -0
- package/src/types/styles/base.ts +72 -0
- package/src/types/styles/composite.ts +131 -0
- package/src/types/styles/forms.ts +439 -0
- package/src/types/styles/interactive.ts +165 -0
- package/src/types/styles/layout.ts +184 -0
- package/src/types/styles/media.ts +68 -0
- package/src/types/styles/typography.ts +118 -0
- package/src/types/styles/unknown.ts +220 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/spacing.ts +64 -0
- package/src/utils/transformPageData.ts +93 -0
|
@@ -0,0 +1,1743 @@
|
|
|
1
|
+
import { T as TMantineRadius, a as TMantineSize, b as TMantineSpacing, c as TMantineJustify, d as TMantineAlign, e as TMantineDirection, f as TMantineWrap, g as TMantineGridSpan, h as TMantineOrientation, i as TMantineColor, j as TMantineTitleOrder, k as TMantineFieldsetVariant, l as TMantineSpoilerMaxHeight, m as TMantineVariant, n as TMantineBadgeVariant, o as TMantineAvatarVariant, p as TMantineChipVariant, q as TMantineIndicatorPosition, r as TMantineThemeIconVariant, s as TMantineAccordionVariant, t as TMantineTabsVariant, u as TMantineTimelineLineVariant } from './common-B96dASgu.mjs';
|
|
2
|
+
|
|
3
|
+
interface ILoginStyle extends IStyleWithSpacing {
|
|
4
|
+
style_name: 'login';
|
|
5
|
+
label_user?: IContentField<string>;
|
|
6
|
+
label_pw?: IContentField<string>;
|
|
7
|
+
label_login?: IContentField<string>;
|
|
8
|
+
label_pw_reset?: IContentField<string>;
|
|
9
|
+
alert_fail?: IContentField<string>;
|
|
10
|
+
login_title?: IContentField<string>;
|
|
11
|
+
type?: IContentField<string>;
|
|
12
|
+
}
|
|
13
|
+
interface IRegisterStyle extends IStyleWithSpacing {
|
|
14
|
+
style_name: 'register';
|
|
15
|
+
label_user?: IContentField<string>;
|
|
16
|
+
label_pw?: IContentField<string>;
|
|
17
|
+
label_submit?: IContentField<string>;
|
|
18
|
+
alert_fail?: IContentField<string>;
|
|
19
|
+
alert_success?: IContentField<string>;
|
|
20
|
+
title?: IContentField<string>;
|
|
21
|
+
success?: IContentField<string>;
|
|
22
|
+
}
|
|
23
|
+
interface IValidateStyle extends IStyleWithSpacing {
|
|
24
|
+
style_name: 'validate';
|
|
25
|
+
label_pw?: IContentField<string>;
|
|
26
|
+
label_login?: IContentField<string>;
|
|
27
|
+
alert_fail?: IContentField<string>;
|
|
28
|
+
label_pw_confirm?: IContentField<string>;
|
|
29
|
+
title?: IContentField<string>;
|
|
30
|
+
subtitle?: IContentField<string>;
|
|
31
|
+
alert_success?: IContentField<string>;
|
|
32
|
+
label_name?: IContentField<string>;
|
|
33
|
+
name_placeholder?: IContentField<string>;
|
|
34
|
+
name_description?: IContentField<string>;
|
|
35
|
+
label_activate?: IContentField<string>;
|
|
36
|
+
pw_placeholder?: IContentField<string>;
|
|
37
|
+
success?: IContentField<string>;
|
|
38
|
+
name?: IContentField<string>;
|
|
39
|
+
page_keyword?: IContentField<string>;
|
|
40
|
+
value_name?: IContentField<string>;
|
|
41
|
+
anonymous_user_name_description?: IContentField<string>;
|
|
42
|
+
redirect_at_end?: IContentField<string>;
|
|
43
|
+
cancel_url?: IContentField<string>;
|
|
44
|
+
label_save?: IContentField<string>;
|
|
45
|
+
label_update?: IContentField<string>;
|
|
46
|
+
label_cancel?: IContentField<string>;
|
|
47
|
+
mantine_buttons_size?: IContentField<string>;
|
|
48
|
+
mantine_buttons_radius?: IContentField<string>;
|
|
49
|
+
mantine_buttons_variant?: IContentField<string>;
|
|
50
|
+
mantine_buttons_position?: IContentField<string>;
|
|
51
|
+
mantine_buttons_order?: IContentField<string>;
|
|
52
|
+
mantine_btn_save_color?: IContentField<string>;
|
|
53
|
+
mantine_btn_cancel_color?: IContentField<string>;
|
|
54
|
+
mantine_card_shadow?: IContentField<string>;
|
|
55
|
+
mantine_card_padding?: IContentField<string>;
|
|
56
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
57
|
+
mantine_border?: IContentField<string>;
|
|
58
|
+
}
|
|
59
|
+
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
60
|
+
style_name: 'resetPassword';
|
|
61
|
+
label_pw_reset?: IContentField<string>;
|
|
62
|
+
text_md?: IContentField<string>;
|
|
63
|
+
type?: IContentField<string>;
|
|
64
|
+
alert_success?: IContentField<string>;
|
|
65
|
+
placeholder?: IContentField<string>;
|
|
66
|
+
email_user?: IContentField<string>;
|
|
67
|
+
subject_user?: IContentField<string>;
|
|
68
|
+
is_html?: IContentField<string>;
|
|
69
|
+
}
|
|
70
|
+
interface ITwoFactorAuthStyle extends IStyleWithSpacing {
|
|
71
|
+
style_name: 'twoFactorAuth';
|
|
72
|
+
label_code?: IContentField<string>;
|
|
73
|
+
label_submit?: IContentField<string>;
|
|
74
|
+
alert_fail?: IContentField<string>;
|
|
75
|
+
title?: IContentField<string>;
|
|
76
|
+
text_md?: IContentField<string>;
|
|
77
|
+
label_expiration_2fa?: IContentField<string>;
|
|
78
|
+
}
|
|
79
|
+
interface IProfileStyle extends IStyleWithSpacing {
|
|
80
|
+
style_name: 'profile';
|
|
81
|
+
profile_title?: IContentField<string>;
|
|
82
|
+
profile_account_info_title?: IContentField<string>;
|
|
83
|
+
profile_label_email?: IContentField<string>;
|
|
84
|
+
profile_label_username?: IContentField<string>;
|
|
85
|
+
profile_label_name?: IContentField<string>;
|
|
86
|
+
profile_label_created?: IContentField<string>;
|
|
87
|
+
profile_label_last_login?: IContentField<string>;
|
|
88
|
+
profile_label_timezone?: IContentField<string>;
|
|
89
|
+
profile_name_change_title?: IContentField<string>;
|
|
90
|
+
profile_name_change_description?: IContentField<string>;
|
|
91
|
+
profile_name_change_label?: IContentField<string>;
|
|
92
|
+
profile_name_change_placeholder?: IContentField<string>;
|
|
93
|
+
profile_name_change_button?: IContentField<string>;
|
|
94
|
+
profile_name_change_success?: IContentField<string>;
|
|
95
|
+
profile_name_change_error_required?: IContentField<string>;
|
|
96
|
+
profile_name_change_error_invalid?: IContentField<string>;
|
|
97
|
+
profile_name_change_error_general?: IContentField<string>;
|
|
98
|
+
profile_timezone_change_title?: IContentField<string>;
|
|
99
|
+
profile_timezone_change_description?: IContentField<string>;
|
|
100
|
+
profile_timezone_change_label?: IContentField<string>;
|
|
101
|
+
profile_timezone_change_placeholder?: IContentField<string>;
|
|
102
|
+
profile_timezone_change_button?: IContentField<string>;
|
|
103
|
+
profile_timezone_change_success?: IContentField<string>;
|
|
104
|
+
profile_timezone_change_error_required?: IContentField<string>;
|
|
105
|
+
profile_timezone_change_error_general?: IContentField<string>;
|
|
106
|
+
profile_password_reset_title?: IContentField<string>;
|
|
107
|
+
profile_password_reset_description?: IContentField<string>;
|
|
108
|
+
profile_password_reset_label_current?: IContentField<string>;
|
|
109
|
+
profile_password_reset_label_new?: IContentField<string>;
|
|
110
|
+
profile_password_reset_label_confirm?: IContentField<string>;
|
|
111
|
+
profile_password_reset_placeholder_current?: IContentField<string>;
|
|
112
|
+
profile_password_reset_placeholder_new?: IContentField<string>;
|
|
113
|
+
profile_password_reset_placeholder_confirm?: IContentField<string>;
|
|
114
|
+
profile_password_reset_button?: IContentField<string>;
|
|
115
|
+
profile_password_reset_success?: IContentField<string>;
|
|
116
|
+
profile_password_reset_error_current_required?: IContentField<string>;
|
|
117
|
+
profile_password_reset_error_current_wrong?: IContentField<string>;
|
|
118
|
+
profile_password_reset_error_new_required?: IContentField<string>;
|
|
119
|
+
profile_password_reset_error_confirm_required?: IContentField<string>;
|
|
120
|
+
profile_password_reset_error_mismatch?: IContentField<string>;
|
|
121
|
+
profile_password_reset_error_weak?: IContentField<string>;
|
|
122
|
+
profile_password_reset_error_general?: IContentField<string>;
|
|
123
|
+
profile_delete_title?: IContentField<string>;
|
|
124
|
+
profile_delete_description?: IContentField<string>;
|
|
125
|
+
profile_delete_alert_text?: IContentField<string>;
|
|
126
|
+
profile_delete_modal_warning?: IContentField<string>;
|
|
127
|
+
profile_delete_label_email?: IContentField<string>;
|
|
128
|
+
profile_delete_placeholder_email?: IContentField<string>;
|
|
129
|
+
profile_delete_button?: IContentField<string>;
|
|
130
|
+
profile_delete_success?: IContentField<string>;
|
|
131
|
+
profile_delete_error_email_required?: IContentField<string>;
|
|
132
|
+
profile_delete_error_email_mismatch?: IContentField<string>;
|
|
133
|
+
profile_delete_error_general?: IContentField<string>;
|
|
134
|
+
profile_gap?: IContentField<string>;
|
|
135
|
+
profile_use_accordion?: IContentField<string>;
|
|
136
|
+
profile_accordion_multiple?: IContentField<string>;
|
|
137
|
+
profile_accordion_default_opened?: IContentField<string>;
|
|
138
|
+
profile_variant?: IContentField<string>;
|
|
139
|
+
profile_radius?: IContentField<string>;
|
|
140
|
+
profile_shadow?: IContentField<string>;
|
|
141
|
+
profile_columns?: IContentField<string>;
|
|
142
|
+
alert_fail?: IContentField<string>;
|
|
143
|
+
alert_del_fail?: IContentField<string>;
|
|
144
|
+
alert_del_success?: IContentField<string>;
|
|
145
|
+
alert_success?: IContentField<string>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
type TMantineBorder = '0' | '1';
|
|
149
|
+
type TMantineWidth = string;
|
|
150
|
+
type TMantineHeight = string;
|
|
151
|
+
type TMantineDividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
152
|
+
type TMantinePaperShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
153
|
+
type TMantineCardShadow = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
154
|
+
type TMantineGap = '0' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
155
|
+
type TMantineCols = string;
|
|
156
|
+
type TMantineGridOffset = string;
|
|
157
|
+
type TMantineGridOrder = string;
|
|
158
|
+
type TMantineScrollAreaSize = string;
|
|
159
|
+
type TMantineScrollAreaType = 'hover' | 'always' | 'never' | 'scroll';
|
|
160
|
+
interface IContainerStyle extends IStyleWithSpacing {
|
|
161
|
+
style_name: 'container';
|
|
162
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
163
|
+
mantine_fluid?: IContentField<string>;
|
|
164
|
+
mantine_px?: IContentField<TMantineSpacing>;
|
|
165
|
+
mantine_py?: IContentField<TMantineSpacing>;
|
|
166
|
+
use_mantine_style?: IContentField<string>;
|
|
167
|
+
}
|
|
168
|
+
interface IBoxStyle extends IStyleWithSpacing {
|
|
169
|
+
style_name: 'box';
|
|
170
|
+
content?: IContentField<string>;
|
|
171
|
+
use_mantine_style?: IContentField<string>;
|
|
172
|
+
}
|
|
173
|
+
interface IFlexStyle extends IStyleWithSpacing {
|
|
174
|
+
style_name: 'flex';
|
|
175
|
+
mantine_gap?: IContentField<TMantineGap>;
|
|
176
|
+
mantine_justify?: IContentField<TMantineJustify>;
|
|
177
|
+
mantine_align?: IContentField<TMantineAlign>;
|
|
178
|
+
mantine_direction?: IContentField<TMantineDirection>;
|
|
179
|
+
mantine_wrap?: IContentField<TMantineWrap>;
|
|
180
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
181
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
182
|
+
}
|
|
183
|
+
interface IGroupStyle extends IStyleWithSpacing {
|
|
184
|
+
style_name: 'group';
|
|
185
|
+
mantine_gap?: IContentField<TMantineGap>;
|
|
186
|
+
mantine_justify?: IContentField<TMantineJustify>;
|
|
187
|
+
mantine_align?: IContentField<TMantineAlign>;
|
|
188
|
+
mantine_group_wrap?: IContentField<'0' | '1'>;
|
|
189
|
+
mantine_group_grow?: IContentField<'0' | '1'>;
|
|
190
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
191
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
192
|
+
}
|
|
193
|
+
interface IStackStyle extends IStyleWithSpacing {
|
|
194
|
+
style_name: 'stack';
|
|
195
|
+
mantine_gap?: IContentField<TMantineGap>;
|
|
196
|
+
mantine_justify?: IContentField<TMantineJustify>;
|
|
197
|
+
mantine_align?: IContentField<TMantineAlign>;
|
|
198
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
199
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
200
|
+
}
|
|
201
|
+
interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
202
|
+
style_name: 'simple-grid';
|
|
203
|
+
mantine_cols?: IContentField<TMantineCols>;
|
|
204
|
+
mantine_spacing?: IContentField<TMantineSpacing>;
|
|
205
|
+
mantine_breakpoints?: IContentField<string>;
|
|
206
|
+
mantine_vertical_spacing?: IContentField<TMantineSpacing>;
|
|
207
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
208
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
209
|
+
}
|
|
210
|
+
interface IGridStyle extends IStyleWithSpacing {
|
|
211
|
+
style_name: 'grid';
|
|
212
|
+
mantine_cols?: IContentField<TMantineCols>;
|
|
213
|
+
mantine_gap?: IContentField<TMantineGap>;
|
|
214
|
+
mantine_justify?: IContentField<TMantineJustify>;
|
|
215
|
+
mantine_align?: IContentField<TMantineAlign>;
|
|
216
|
+
mantine_grid_overflow?: IContentField<string>;
|
|
217
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
218
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
219
|
+
use_mantine_style?: IContentField<string>;
|
|
220
|
+
}
|
|
221
|
+
interface IGridColumnStyle extends IStyleWithSpacing {
|
|
222
|
+
style_name: 'grid-column';
|
|
223
|
+
mantine_grid_span?: IContentField<TMantineGridSpan>;
|
|
224
|
+
mantine_grid_offset?: IContentField<TMantineGridOffset>;
|
|
225
|
+
mantine_grid_order?: IContentField<TMantineGridOrder>;
|
|
226
|
+
mantine_grid_grow?: IContentField<string>;
|
|
227
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
228
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
229
|
+
use_mantine_style?: IContentField<string>;
|
|
230
|
+
}
|
|
231
|
+
interface ISpaceStyle extends IStyleWithSpacing {
|
|
232
|
+
style_name: 'space';
|
|
233
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
234
|
+
mantine_space_direction?: IContentField<string>;
|
|
235
|
+
}
|
|
236
|
+
interface IDividerStyle extends IBaseStyle {
|
|
237
|
+
style_name: 'divider';
|
|
238
|
+
mantine_divider_variant?: IContentField<TMantineDividerVariant>;
|
|
239
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
240
|
+
mantine_divider_label?: IContentField<string>;
|
|
241
|
+
mantine_divider_label_position?: IContentField<string>;
|
|
242
|
+
mantine_orientation?: IContentField<TMantineOrientation>;
|
|
243
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
244
|
+
use_mantine_style?: IContentField<string>;
|
|
245
|
+
}
|
|
246
|
+
interface IPaperStyle extends IStyleWithSpacing {
|
|
247
|
+
style_name: 'paper';
|
|
248
|
+
mantine_paper_shadow?: IContentField<TMantinePaperShadow>;
|
|
249
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
250
|
+
mantine_px?: IContentField<TMantineSpacing>;
|
|
251
|
+
mantine_py?: IContentField<TMantineSpacing>;
|
|
252
|
+
mantine_border?: IContentField<TMantineBorder>;
|
|
253
|
+
use_mantine_style?: IContentField<string>;
|
|
254
|
+
}
|
|
255
|
+
interface ICenterStyle extends IBaseStyle {
|
|
256
|
+
style_name: 'center';
|
|
257
|
+
mantine_center_inline?: IContentField<string>;
|
|
258
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
259
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
260
|
+
mantine_miw?: IContentField<TMantineWidth>;
|
|
261
|
+
mantine_mih?: IContentField<TMantineHeight>;
|
|
262
|
+
mantine_maw?: IContentField<TMantineWidth>;
|
|
263
|
+
mantine_mah?: IContentField<TMantineHeight>;
|
|
264
|
+
}
|
|
265
|
+
interface IScrollAreaStyle extends IStyleWithSpacing {
|
|
266
|
+
style_name: 'scroll-area';
|
|
267
|
+
mantine_scroll_area_scrollbar_size?: IContentField<TMantineScrollAreaSize>;
|
|
268
|
+
mantine_scroll_area_type?: IContentField<TMantineScrollAreaType>;
|
|
269
|
+
mantine_scroll_area_offset_scrollbars?: IContentField<string>;
|
|
270
|
+
mantine_scroll_area_scroll_hide_delay?: IContentField<string>;
|
|
271
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
272
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
273
|
+
}
|
|
274
|
+
interface ICardStyle extends IStyleWithSpacing {
|
|
275
|
+
style_name: 'card';
|
|
276
|
+
mantine_card_shadow?: IContentField<TMantineCardShadow>;
|
|
277
|
+
mantine_border?: IContentField<TMantineBorder>;
|
|
278
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
279
|
+
use_mantine_style?: IContentField<string>;
|
|
280
|
+
}
|
|
281
|
+
interface ICardSegmentStyle extends IStyleWithSpacing {
|
|
282
|
+
style_name: 'card-segment';
|
|
283
|
+
use_mantine_style?: IContentField<string>;
|
|
284
|
+
}
|
|
285
|
+
interface IAspectRatioStyle extends IBaseStyle {
|
|
286
|
+
style_name: 'aspect-ratio';
|
|
287
|
+
mantine_aspect_ratio?: IContentField<string>;
|
|
288
|
+
use_mantine_style?: IContentField<string>;
|
|
289
|
+
}
|
|
290
|
+
interface IBackgroundImageStyle extends IStyleWithSpacing {
|
|
291
|
+
style_name: 'background-image';
|
|
292
|
+
img_src?: IContentField<string>;
|
|
293
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
294
|
+
use_mantine_style?: IContentField<string>;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
type TMantineTitleTextWrap = 'wrap' | 'balance' | 'nowrap';
|
|
298
|
+
type TMantineTitleLineClamp = '1' | '2' | '3' | '4' | '5' | string;
|
|
299
|
+
type TMantineTextFontWeight = '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
300
|
+
type TMantineTextFontStyle = 'normal' | 'italic';
|
|
301
|
+
type TMantineTextDecoration = 'none' | 'underline' | 'line-through';
|
|
302
|
+
type TMantineTextTransform = 'none' | 'uppercase' | 'capitalize' | 'lowercase';
|
|
303
|
+
type TMantineTextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
304
|
+
type TMantineTextVariant = 'default' | 'gradient';
|
|
305
|
+
type TMantineTextTruncate = 'none' | 'end' | 'start';
|
|
306
|
+
type TMantineLineClamp = '2' | '3' | '4' | '5' | string;
|
|
307
|
+
type TMantineTextInherit = '0' | '1';
|
|
308
|
+
type TMantineTextSpan = '0' | '1';
|
|
309
|
+
type TMantineIconSize = string;
|
|
310
|
+
interface ITitleStyle extends IStyleWithSpacing {
|
|
311
|
+
style_name: 'title';
|
|
312
|
+
content?: IContentField<string>;
|
|
313
|
+
mantine_title_order?: IContentField<TMantineTitleOrder>;
|
|
314
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
315
|
+
mantine_title_text_wrap?: IContentField<TMantineTitleTextWrap>;
|
|
316
|
+
mantine_title_line_clamp?: IContentField<TMantineTitleLineClamp>;
|
|
317
|
+
use_mantine_style?: IContentField<string>;
|
|
318
|
+
}
|
|
319
|
+
interface ITextStyle extends IStyleWithSpacing {
|
|
320
|
+
style_name: 'text';
|
|
321
|
+
text?: IContentField<string>;
|
|
322
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
323
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
324
|
+
mantine_text_font_weight?: IContentField<TMantineTextFontWeight>;
|
|
325
|
+
mantine_text_font_style?: IContentField<TMantineTextFontStyle>;
|
|
326
|
+
mantine_text_text_decoration?: IContentField<TMantineTextDecoration>;
|
|
327
|
+
mantine_text_text_transform?: IContentField<TMantineTextTransform>;
|
|
328
|
+
mantine_text_align?: IContentField<TMantineTextAlign>;
|
|
329
|
+
mantine_text_variant?: IContentField<TMantineTextVariant>;
|
|
330
|
+
mantine_text_gradient?: IContentField<string>;
|
|
331
|
+
mantine_text_truncate?: IContentField<TMantineTextTruncate>;
|
|
332
|
+
mantine_text_line_clamp?: IContentField<TMantineLineClamp>;
|
|
333
|
+
mantine_text_inherit?: IContentField<TMantineTextInherit>;
|
|
334
|
+
mantine_text_span?: IContentField<TMantineTextSpan>;
|
|
335
|
+
use_mantine_style?: IContentField<string>;
|
|
336
|
+
}
|
|
337
|
+
interface ICodeStyle extends IStyleWithSpacing {
|
|
338
|
+
style_name: 'code';
|
|
339
|
+
mantine_code_block?: IContentField<string>;
|
|
340
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
341
|
+
use_mantine_style?: IContentField<string>;
|
|
342
|
+
content?: IContentField<string>;
|
|
343
|
+
}
|
|
344
|
+
interface IHighlightStyle extends IStyleWithSpacing {
|
|
345
|
+
style_name: 'highlight';
|
|
346
|
+
text?: IContentField<string>;
|
|
347
|
+
mantine_highlight_highlight?: IContentField<string>;
|
|
348
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
349
|
+
use_mantine_style?: IContentField<string>;
|
|
350
|
+
}
|
|
351
|
+
interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
352
|
+
style_name: 'blockquote';
|
|
353
|
+
content?: IContentField<string>;
|
|
354
|
+
cite?: IContentField<string>;
|
|
355
|
+
mantine_left_icon?: IContentField<string>;
|
|
356
|
+
mantine_icon_size?: IContentField<TMantineIconSize>;
|
|
357
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
358
|
+
use_mantine_style?: IContentField<string>;
|
|
359
|
+
}
|
|
360
|
+
interface IHtmlTagStyle extends IBaseStyle {
|
|
361
|
+
style_name: 'html-tag';
|
|
362
|
+
html_tag?: IContentField<string>;
|
|
363
|
+
html_tag_content?: IContentField<string>;
|
|
364
|
+
}
|
|
365
|
+
interface IKbdStyle extends IStyleWithSpacing {
|
|
366
|
+
style_name: 'kbd';
|
|
367
|
+
label?: IContentField<string>;
|
|
368
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
369
|
+
use_mantine_style?: IContentField<string>;
|
|
370
|
+
}
|
|
371
|
+
interface ITypographyStyle extends IStyleWithSpacing {
|
|
372
|
+
style_name: 'typography';
|
|
373
|
+
use_mantine_style?: IContentField<string>;
|
|
374
|
+
}
|
|
375
|
+
interface IFieldsetStyle extends IStyleWithSpacing {
|
|
376
|
+
style_name: 'fieldset';
|
|
377
|
+
label?: IContentField<string>;
|
|
378
|
+
legend?: IContentField<string>;
|
|
379
|
+
mantine_fieldset_variant?: IContentField<TMantineFieldsetVariant>;
|
|
380
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
381
|
+
use_mantine_style?: IContentField<string>;
|
|
382
|
+
disabled?: IContentField<string>;
|
|
383
|
+
}
|
|
384
|
+
interface ISpoilerStyle extends IStyleWithSpacing {
|
|
385
|
+
style_name: 'spoiler';
|
|
386
|
+
mantine_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
387
|
+
mantine_spoiler_show_label?: IContentField<string>;
|
|
388
|
+
mantine_spoiler_hide_label?: IContentField<string>;
|
|
389
|
+
use_mantine_style?: IContentField<string>;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
393
|
+
interface IImageStyle extends IStyleWithSpacing {
|
|
394
|
+
style_name: 'image';
|
|
395
|
+
title?: IContentField<string>;
|
|
396
|
+
is_fluid?: IContentField<string>;
|
|
397
|
+
alt?: IContentField<string>;
|
|
398
|
+
img_src?: IContentField<string>;
|
|
399
|
+
height?: IContentField<string>;
|
|
400
|
+
width?: IContentField<string>;
|
|
401
|
+
mantine_image_fit?: IContentField<TMantineImageFit>;
|
|
402
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
403
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
404
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
405
|
+
use_mantine_style?: IContentField<string>;
|
|
406
|
+
}
|
|
407
|
+
interface IVideoStyle extends IBaseStyle {
|
|
408
|
+
style_name: 'video';
|
|
409
|
+
is_fluid?: IContentField<string>;
|
|
410
|
+
alt?: IContentField<string>;
|
|
411
|
+
sources?: IContentField<unknown[]>;
|
|
412
|
+
}
|
|
413
|
+
interface IAudioStyle extends IBaseStyle {
|
|
414
|
+
style_name: 'audio';
|
|
415
|
+
sources?: IContentField<unknown[]>;
|
|
416
|
+
}
|
|
417
|
+
interface IFigureStyle extends IBaseStyle {
|
|
418
|
+
style_name: 'figure';
|
|
419
|
+
caption_title?: IContentField<string>;
|
|
420
|
+
caption?: IContentField<string>;
|
|
421
|
+
}
|
|
422
|
+
interface ICarouselStyle extends IStyleWithSpacing {
|
|
423
|
+
style_name: 'carousel';
|
|
424
|
+
id_prefix?: IContentField<string>;
|
|
425
|
+
has_controls?: IContentField<string>;
|
|
426
|
+
has_indicators?: IContentField<string>;
|
|
427
|
+
has_crossfade?: IContentField<string>;
|
|
428
|
+
sources?: IContentField<unknown[]>;
|
|
429
|
+
mantine_height?: IContentField<string>;
|
|
430
|
+
mantine_carousel_slide_size?: IContentField<string>;
|
|
431
|
+
mantine_carousel_slide_gap?: IContentField<string>;
|
|
432
|
+
mantine_orientation?: IContentField<string>;
|
|
433
|
+
mantine_control_size?: IContentField<string>;
|
|
434
|
+
mantine_carousel_controls_offset?: IContentField<string>;
|
|
435
|
+
mantine_carousel_next_control_icon?: IContentField<string>;
|
|
436
|
+
mantine_carousel_previous_control_icon?: IContentField<string>;
|
|
437
|
+
mantine_loop?: IContentField<string>;
|
|
438
|
+
drag_free?: IContentField<string>;
|
|
439
|
+
mantine_carousel_align?: IContentField<string>;
|
|
440
|
+
mantine_carousel_contain_scroll?: IContentField<string>;
|
|
441
|
+
skip_snaps?: IContentField<string>;
|
|
442
|
+
mantine_carousel_in_view_threshold?: IContentField<string>;
|
|
443
|
+
mantine_carousel_duration?: IContentField<string>;
|
|
444
|
+
mantine_carousel_embla_options?: IContentField<string>;
|
|
445
|
+
use_mantine_style?: IContentField<string>;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
interface IButtonStyle extends IStyleWithSpacing {
|
|
449
|
+
style_name: 'button';
|
|
450
|
+
mantine_variant?: IContentField<TMantineVariant>;
|
|
451
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
452
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
453
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
454
|
+
mantine_left_icon?: IContentField<string>;
|
|
455
|
+
mantine_right_icon?: IContentField<string>;
|
|
456
|
+
mantine_fullwidth?: IContentField<string>;
|
|
457
|
+
mantine_compact?: IContentField<string>;
|
|
458
|
+
mantine_auto_contrast?: IContentField<string>;
|
|
459
|
+
is_link?: IContentField<string>;
|
|
460
|
+
use_mantine_style?: IContentField<string>;
|
|
461
|
+
disabled?: IContentField<string>;
|
|
462
|
+
open_in_new_tab?: IContentField<string>;
|
|
463
|
+
page_keyword?: IContentField<string>;
|
|
464
|
+
url?: IContentField<string>;
|
|
465
|
+
label?: IContentField<string>;
|
|
466
|
+
label_cancel?: IContentField<string>;
|
|
467
|
+
confirmation_title?: IContentField<string>;
|
|
468
|
+
confirmation_continue?: IContentField<string>;
|
|
469
|
+
confirmation_message?: IContentField<string>;
|
|
470
|
+
}
|
|
471
|
+
interface ILinkStyle extends IStyleWithSpacing {
|
|
472
|
+
style_name: 'link';
|
|
473
|
+
label?: IContentField<string>;
|
|
474
|
+
url?: IContentField<string>;
|
|
475
|
+
open_in_new_tab?: IContentField<string>;
|
|
476
|
+
}
|
|
477
|
+
interface IActionIconStyle extends IStyleWithSpacing {
|
|
478
|
+
style_name: 'action-icon';
|
|
479
|
+
mantine_variant?: IContentField<TMantineVariant>;
|
|
480
|
+
mantine_action_icon_loading?: IContentField<string>;
|
|
481
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
482
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
483
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
484
|
+
mantine_left_icon?: IContentField<string>;
|
|
485
|
+
is_link?: IContentField<string>;
|
|
486
|
+
page_keyword?: IContentField<string>;
|
|
487
|
+
open_in_new_tab?: IContentField<string>;
|
|
488
|
+
disabled?: IContentField<string>;
|
|
489
|
+
use_mantine_style?: IContentField<string>;
|
|
490
|
+
}
|
|
491
|
+
interface IAlertStyle extends IStyleWithSpacing {
|
|
492
|
+
style_name: 'alert';
|
|
493
|
+
mantine_alert_title?: IContentField<string>;
|
|
494
|
+
close_button_label?: IContentField<string>;
|
|
495
|
+
mantine_variant?: IContentField<TMantineVariant>;
|
|
496
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
497
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
498
|
+
mantine_left_icon?: IContentField<string>;
|
|
499
|
+
mantine_with_close_button?: IContentField<string>;
|
|
500
|
+
content?: IContentField<string>;
|
|
501
|
+
use_mantine_style?: IContentField<string>;
|
|
502
|
+
}
|
|
503
|
+
interface IBadgeStyle extends IStyleWithSpacing {
|
|
504
|
+
style_name: 'badge';
|
|
505
|
+
label?: IContentField<string>;
|
|
506
|
+
mantine_variant?: IContentField<TMantineBadgeVariant>;
|
|
507
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
508
|
+
mantine_left_icon?: IContentField<string>;
|
|
509
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
510
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
511
|
+
use_mantine_style?: IContentField<string>;
|
|
512
|
+
mantine_right_icon?: IContentField<string>;
|
|
513
|
+
mantine_auto_contrast?: IContentField<string>;
|
|
514
|
+
}
|
|
515
|
+
interface IAvatarStyle extends IStyleWithSpacing {
|
|
516
|
+
style_name: 'avatar';
|
|
517
|
+
alt?: IContentField<string>;
|
|
518
|
+
mantine_avatar_variant?: IContentField<TMantineAvatarVariant>;
|
|
519
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
520
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
521
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
522
|
+
use_mantine_style?: IContentField<string>;
|
|
523
|
+
mantine_left_icon?: IContentField<string>;
|
|
524
|
+
mantine_avatar_initials?: IContentField<string>;
|
|
525
|
+
img_src?: IContentField<string>;
|
|
526
|
+
}
|
|
527
|
+
interface IChipStyle extends IStyleWithSpacing {
|
|
528
|
+
style_name: 'chip';
|
|
529
|
+
label?: IContentField<string>;
|
|
530
|
+
mantine_chip_variant?: IContentField<TMantineChipVariant>;
|
|
531
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
532
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
533
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
534
|
+
mantine_chip_checked?: IContentField<string>;
|
|
535
|
+
mantine_chip_multiple?: IContentField<string>;
|
|
536
|
+
disabled?: IContentField<string>;
|
|
537
|
+
use_mantine_style?: IContentField<string>;
|
|
538
|
+
mantine_left_icon?: IContentField<string>;
|
|
539
|
+
mantine_icon_size?: IContentField<TMantineIconSize>;
|
|
540
|
+
name?: IContentField<string>;
|
|
541
|
+
value?: IContentField<string>;
|
|
542
|
+
mantine_chip_on_value?: IContentField<string>;
|
|
543
|
+
mantine_chip_off_value?: IContentField<string>;
|
|
544
|
+
is_required?: IContentField<string>;
|
|
545
|
+
tooltip?: IContentField<string>;
|
|
546
|
+
mantine_tooltip_position?: IContentField<string>;
|
|
547
|
+
chip_on_value?: IContentField<string>;
|
|
548
|
+
chip_off_value?: IContentField<string>;
|
|
549
|
+
chip_checked?: IContentField<string>;
|
|
550
|
+
}
|
|
551
|
+
interface IIndicatorStyle extends IBaseStyle {
|
|
552
|
+
style_name: 'indicator';
|
|
553
|
+
mantine_indicator_processing?: IContentField<string>;
|
|
554
|
+
mantine_indicator_disabled?: IContentField<string>;
|
|
555
|
+
mantine_indicator_size?: IContentField<string>;
|
|
556
|
+
mantine_indicator_position?: IContentField<TMantineIndicatorPosition>;
|
|
557
|
+
label?: IContentField<string>;
|
|
558
|
+
mantine_indicator_inline?: IContentField<string>;
|
|
559
|
+
mantine_indicator_offset?: IContentField<string>;
|
|
560
|
+
mantine_border?: IContentField<string>;
|
|
561
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
562
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
563
|
+
use_mantine_style?: IContentField<string>;
|
|
564
|
+
}
|
|
565
|
+
interface IThemeIconStyle extends IStyleWithSpacing {
|
|
566
|
+
style_name: 'theme-icon';
|
|
567
|
+
mantine_variant?: IContentField<TMantineThemeIconVariant>;
|
|
568
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
569
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
570
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
571
|
+
use_mantine_style?: IContentField<string>;
|
|
572
|
+
mantine_left_icon?: IContentField<string>;
|
|
573
|
+
}
|
|
574
|
+
interface INotificationStyle extends IStyleWithSpacing {
|
|
575
|
+
style_name: 'notification';
|
|
576
|
+
title?: IContentField<string>;
|
|
577
|
+
content?: IContentField<string>;
|
|
578
|
+
mantine_left_icon?: IContentField<string>;
|
|
579
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
580
|
+
mantine_notification_loading?: IContentField<string>;
|
|
581
|
+
mantine_notification_with_close_button?: IContentField<string>;
|
|
582
|
+
mantine_border?: IContentField<string>;
|
|
583
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
584
|
+
use_mantine_style?: IContentField<string>;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
type TMantineTextInputVariant = 'default' | 'filled' | 'unstyled';
|
|
588
|
+
type TMantineTextareaAutosize = '0' | '1';
|
|
589
|
+
type TMantineTextareaResize = 'none' | 'vertical' | 'both';
|
|
590
|
+
type TMantineTextareaVariant = 'default' | 'filled' | 'unstyled';
|
|
591
|
+
type TMantineUseInputWrapper = '0' | '1';
|
|
592
|
+
type TMantineTranslatable = '0' | '1';
|
|
593
|
+
type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
594
|
+
type TMantineCheckboxLabelPosition = 'left' | 'right';
|
|
595
|
+
interface IFormStyle extends IStyleWithSpacing {
|
|
596
|
+
style_name: 'form-log' | 'form-record';
|
|
597
|
+
btn_save_label?: IContentField<string>;
|
|
598
|
+
alert_success?: IContentField<string>;
|
|
599
|
+
name?: IContentField<string>;
|
|
600
|
+
is_log?: IContentField<string>;
|
|
601
|
+
redirect_at_end?: IContentField<string>;
|
|
602
|
+
btn_cancel_url?: IContentField<string>;
|
|
603
|
+
btn_cancel_label?: IContentField<string>;
|
|
604
|
+
alert_error?: IContentField<string>;
|
|
605
|
+
buttons_size?: IContentField<string>;
|
|
606
|
+
buttons_radius?: IContentField<string>;
|
|
607
|
+
btn_save_color?: IContentField<string>;
|
|
608
|
+
btn_cancel_color?: IContentField<string>;
|
|
609
|
+
buttons_variant?: IContentField<string>;
|
|
610
|
+
buttons_position?: IContentField<string>;
|
|
611
|
+
use_mantine_style?: IContentField<string>;
|
|
612
|
+
}
|
|
613
|
+
interface IFormLogStyle extends IFormStyle {
|
|
614
|
+
style_name: 'form-log';
|
|
615
|
+
}
|
|
616
|
+
interface IFormRecordStyle extends IFormStyle {
|
|
617
|
+
style_name: 'form-record';
|
|
618
|
+
btn_update_label?: IContentField<string>;
|
|
619
|
+
btn_update_color?: IContentField<string>;
|
|
620
|
+
}
|
|
621
|
+
interface IInputStyle extends IBaseStyle {
|
|
622
|
+
style_name: 'input';
|
|
623
|
+
type_input?: IContentField<string>;
|
|
624
|
+
placeholder?: IContentField<string>;
|
|
625
|
+
is_required?: IContentField<string>;
|
|
626
|
+
name?: IContentField<string>;
|
|
627
|
+
value?: IContentField<string>;
|
|
628
|
+
min?: IContentField<string>;
|
|
629
|
+
max?: IContentField<string>;
|
|
630
|
+
disabled?: IContentField<string>;
|
|
631
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
632
|
+
}
|
|
633
|
+
interface ITextInputStyle extends IStyleWithSpacing {
|
|
634
|
+
style_name: 'text-input';
|
|
635
|
+
label?: IContentField<string>;
|
|
636
|
+
name?: IContentField<string>;
|
|
637
|
+
value?: IContentField<string>;
|
|
638
|
+
placeholder?: IContentField<string>;
|
|
639
|
+
description?: IContentField<string>;
|
|
640
|
+
is_required?: IContentField<string>;
|
|
641
|
+
disabled?: IContentField<string>;
|
|
642
|
+
mantine_left_icon?: IContentField<string>;
|
|
643
|
+
mantine_right_icon?: IContentField<string>;
|
|
644
|
+
use_mantine_style?: IContentField<string>;
|
|
645
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
646
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
647
|
+
mantine_text_input_variant?: IContentField<TMantineTextInputVariant>;
|
|
648
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
649
|
+
}
|
|
650
|
+
interface ITextareaStyle extends IStyleWithSpacing {
|
|
651
|
+
style_name: 'textarea';
|
|
652
|
+
label?: IContentField<string>;
|
|
653
|
+
placeholder?: IContentField<string>;
|
|
654
|
+
is_required?: IContentField<string>;
|
|
655
|
+
name?: IContentField<string>;
|
|
656
|
+
value?: IContentField<string>;
|
|
657
|
+
min?: IContentField<string>;
|
|
658
|
+
max?: IContentField<string>;
|
|
659
|
+
markdown_editor?: IContentField<string>;
|
|
660
|
+
description?: IContentField<string>;
|
|
661
|
+
disabled?: IContentField<string>;
|
|
662
|
+
mantine_left_icon?: IContentField<string>;
|
|
663
|
+
mantine_right_icon?: IContentField<string>;
|
|
664
|
+
mantine_textarea_autosize?: IContentField<TMantineTextareaAutosize>;
|
|
665
|
+
mantine_textarea_min_rows?: IContentField<string>;
|
|
666
|
+
mantine_textarea_max_rows?: IContentField<string>;
|
|
667
|
+
mantine_textarea_resize?: IContentField<TMantineTextareaResize>;
|
|
668
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
669
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
670
|
+
mantine_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
671
|
+
use_mantine_style?: IContentField<string>;
|
|
672
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
673
|
+
}
|
|
674
|
+
interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
675
|
+
style_name: 'rich-text-editor';
|
|
676
|
+
label?: IContentField<string>;
|
|
677
|
+
name?: IContentField<string>;
|
|
678
|
+
value?: IContentField<string>;
|
|
679
|
+
placeholder?: IContentField<string>;
|
|
680
|
+
description?: IContentField<string>;
|
|
681
|
+
is_required?: IContentField<string>;
|
|
682
|
+
disabled?: IContentField<string>;
|
|
683
|
+
mantine_rich_text_editor_variant?: IContentField<string>;
|
|
684
|
+
mantine_rich_text_editor_placeholder?: IContentField<string>;
|
|
685
|
+
mantine_rich_text_editor_bubble_menu?: IContentField<string>;
|
|
686
|
+
mantine_rich_text_editor_text_color?: IContentField<string>;
|
|
687
|
+
mantine_rich_text_editor_task_list?: IContentField<string>;
|
|
688
|
+
use_mantine_style?: IContentField<string>;
|
|
689
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
690
|
+
}
|
|
691
|
+
interface ISelectStyle extends IBaseStyle {
|
|
692
|
+
style_name: 'select';
|
|
693
|
+
alt?: IContentField<string>;
|
|
694
|
+
is_required?: IContentField<string>;
|
|
695
|
+
name?: IContentField<string>;
|
|
696
|
+
value?: IContentField<string>;
|
|
697
|
+
placeholder?: IContentField<string>;
|
|
698
|
+
options?: IContentField<string>;
|
|
699
|
+
is_multiple?: IContentField<string>;
|
|
700
|
+
max?: IContentField<string>;
|
|
701
|
+
live_search?: IContentField<string>;
|
|
702
|
+
disabled?: IContentField<string>;
|
|
703
|
+
image_selector?: IContentField<string>;
|
|
704
|
+
allow_clear?: IContentField<string>;
|
|
705
|
+
}
|
|
706
|
+
interface IRadioStyle extends IStyleWithSpacing {
|
|
707
|
+
style_name: 'radio';
|
|
708
|
+
label?: IContentField<string>;
|
|
709
|
+
description?: IContentField<string>;
|
|
710
|
+
name?: IContentField<string>;
|
|
711
|
+
value?: IContentField<string>;
|
|
712
|
+
is_required?: IContentField<string>;
|
|
713
|
+
items?: IContentField<unknown[]>;
|
|
714
|
+
is_inline?: IContentField<string>;
|
|
715
|
+
mantine_orientation?: IContentField<string>;
|
|
716
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
717
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
718
|
+
mantine_radio_options?: IContentField<string>;
|
|
719
|
+
mantine_radio_label_position?: IContentField<string>;
|
|
720
|
+
mantine_radio_variant?: IContentField<string>;
|
|
721
|
+
mantine_radio_card?: IContentField<string>;
|
|
722
|
+
mantine_tooltip_label?: IContentField<string>;
|
|
723
|
+
mantine_tooltip_position?: IContentField<string>;
|
|
724
|
+
disabled?: IContentField<string>;
|
|
725
|
+
use_mantine_style?: IContentField<string>;
|
|
726
|
+
mantine_use_input_wrapper?: IContentField<string>;
|
|
727
|
+
}
|
|
728
|
+
interface ICheckboxStyle extends IStyleWithSpacing {
|
|
729
|
+
style_name: 'checkbox';
|
|
730
|
+
label?: IContentField<string>;
|
|
731
|
+
name?: IContentField<string>;
|
|
732
|
+
value?: IContentField<string>;
|
|
733
|
+
is_required?: IContentField<string>;
|
|
734
|
+
checkbox_value?: IContentField<string>;
|
|
735
|
+
mantine_checkbox_icon?: IContentField<string>;
|
|
736
|
+
mantine_checkbox_labelPosition?: IContentField<TMantineCheckboxLabelPosition>;
|
|
737
|
+
description?: IContentField<string>;
|
|
738
|
+
disabled?: IContentField<string>;
|
|
739
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
740
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
741
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
742
|
+
use_mantine_style?: IContentField<string>;
|
|
743
|
+
mantine_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
744
|
+
}
|
|
745
|
+
interface ISliderStyle extends IStyleWithSpacing {
|
|
746
|
+
style_name: 'slider';
|
|
747
|
+
label?: IContentField<string>;
|
|
748
|
+
description?: IContentField<string>;
|
|
749
|
+
name?: IContentField<string>;
|
|
750
|
+
value?: IContentField<string>;
|
|
751
|
+
mantine_numeric_min?: IContentField<string>;
|
|
752
|
+
mantine_numeric_max?: IContentField<string>;
|
|
753
|
+
mantine_numeric_step?: IContentField<string>;
|
|
754
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
755
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
756
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
757
|
+
disabled?: IContentField<string>;
|
|
758
|
+
use_mantine_style?: IContentField<string>;
|
|
759
|
+
mantine_slider_marks_values?: IContentField<string>;
|
|
760
|
+
mantine_slider_show_label?: IContentField<string>;
|
|
761
|
+
mantine_slider_labels_always_on?: IContentField<string>;
|
|
762
|
+
mantine_slider_inverted?: IContentField<string>;
|
|
763
|
+
mantine_slider_thumb_size?: IContentField<string>;
|
|
764
|
+
mantine_slider_required?: IContentField<string>;
|
|
765
|
+
}
|
|
766
|
+
interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
767
|
+
style_name: 'range-slider';
|
|
768
|
+
label?: IContentField<string>;
|
|
769
|
+
description?: IContentField<string>;
|
|
770
|
+
name?: IContentField<string>;
|
|
771
|
+
value?: IContentField<string>;
|
|
772
|
+
mantine_numeric_min?: IContentField<string>;
|
|
773
|
+
mantine_numeric_max?: IContentField<string>;
|
|
774
|
+
mantine_numeric_step?: IContentField<string>;
|
|
775
|
+
mantine_range_slider_marks_values?: IContentField<string>;
|
|
776
|
+
mantine_range_slider_show_label?: IContentField<string>;
|
|
777
|
+
mantine_range_slider_labels_always_on?: IContentField<string>;
|
|
778
|
+
mantine_range_slider_inverted?: IContentField<string>;
|
|
779
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
780
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
781
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
782
|
+
disabled?: IContentField<string>;
|
|
783
|
+
use_mantine_style?: IContentField<string>;
|
|
784
|
+
}
|
|
785
|
+
interface IDatePickerStyle extends IStyleWithSpacing {
|
|
786
|
+
style_name: 'datepicker';
|
|
787
|
+
label?: IContentField<string>;
|
|
788
|
+
name?: IContentField<string>;
|
|
789
|
+
value?: IContentField<string>;
|
|
790
|
+
is_required?: IContentField<string>;
|
|
791
|
+
disabled?: IContentField<string>;
|
|
792
|
+
description?: IContentField<string>;
|
|
793
|
+
mantine_datepicker_type?: IContentField<string>;
|
|
794
|
+
mantine_datepicker_format?: IContentField<string>;
|
|
795
|
+
mantine_datepicker_locale?: IContentField<string>;
|
|
796
|
+
mantine_datepicker_placeholder?: IContentField<string>;
|
|
797
|
+
mantine_datepicker_min_date?: IContentField<string>;
|
|
798
|
+
mantine_datepicker_max_date?: IContentField<string>;
|
|
799
|
+
mantine_datepicker_first_day_of_week?: IContentField<string>;
|
|
800
|
+
mantine_datepicker_weekend_days?: IContentField<string>;
|
|
801
|
+
mantine_datepicker_clearable?: IContentField<string>;
|
|
802
|
+
mantine_datepicker_allow_deselect?: IContentField<string>;
|
|
803
|
+
mantine_datepicker_readonly?: IContentField<string>;
|
|
804
|
+
mantine_datepicker_with_time_grid?: IContentField<string>;
|
|
805
|
+
mantine_datepicker_consistent_weeks?: IContentField<string>;
|
|
806
|
+
mantine_datepicker_hide_outside_dates?: IContentField<string>;
|
|
807
|
+
mantine_datepicker_hide_weekends?: IContentField<string>;
|
|
808
|
+
mantine_datepicker_time_step?: IContentField<string>;
|
|
809
|
+
mantine_datepicker_time_format?: IContentField<string>;
|
|
810
|
+
mantine_datepicker_date_format?: IContentField<string>;
|
|
811
|
+
mantine_datepicker_time_grid_config?: IContentField<string>;
|
|
812
|
+
mantine_datepicker_with_seconds?: IContentField<string>;
|
|
813
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
814
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
815
|
+
use_mantine_style?: IContentField<string>;
|
|
816
|
+
}
|
|
817
|
+
interface ISwitchStyle extends IStyleWithSpacing {
|
|
818
|
+
style_name: 'switch';
|
|
819
|
+
label?: IContentField<string>;
|
|
820
|
+
description?: IContentField<string>;
|
|
821
|
+
mantine_switch_on_label?: IContentField<string>;
|
|
822
|
+
mantine_switch_off_label?: IContentField<string>;
|
|
823
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
824
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
825
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
826
|
+
disabled?: IContentField<string>;
|
|
827
|
+
use_mantine_style?: IContentField<string>;
|
|
828
|
+
name?: IContentField<string>;
|
|
829
|
+
is_required?: IContentField<string>;
|
|
830
|
+
mantine_label_position?: IContentField<string>;
|
|
831
|
+
value?: IContentField<string>;
|
|
832
|
+
mantine_switch_on_value?: IContentField<string>;
|
|
833
|
+
mantine_use_input_wrapper?: IContentField<string>;
|
|
834
|
+
mantine_switch_off_value?: IContentField<string>;
|
|
835
|
+
}
|
|
836
|
+
interface IComboboxStyle extends IStyleWithSpacing {
|
|
837
|
+
style_name: 'combobox';
|
|
838
|
+
placeholder?: IContentField<string>;
|
|
839
|
+
mantine_combobox_options?: IContentField<string>;
|
|
840
|
+
disabled?: IContentField<string>;
|
|
841
|
+
use_mantine_style?: IContentField<string>;
|
|
842
|
+
label?: IContentField<string>;
|
|
843
|
+
description?: IContentField<string>;
|
|
844
|
+
name?: IContentField<string>;
|
|
845
|
+
value?: IContentField<string>;
|
|
846
|
+
is_required?: IContentField<string>;
|
|
847
|
+
mantine_combobox_multi_select?: IContentField<string>;
|
|
848
|
+
mantine_combobox_searchable?: IContentField<string>;
|
|
849
|
+
mantine_combobox_creatable?: IContentField<string>;
|
|
850
|
+
mantine_combobox_clearable?: IContentField<string>;
|
|
851
|
+
mantine_combobox_separator?: IContentField<string>;
|
|
852
|
+
mantine_multi_select_max_values?: IContentField<string>;
|
|
853
|
+
}
|
|
854
|
+
interface IColorInputStyle extends IStyleWithSpacing {
|
|
855
|
+
style_name: 'color-input';
|
|
856
|
+
label?: IContentField<string>;
|
|
857
|
+
mantine_color_format?: IContentField<string>;
|
|
858
|
+
mantine_color_input_swatches?: IContentField<string>;
|
|
859
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
860
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
861
|
+
placeholder?: IContentField<string>;
|
|
862
|
+
name?: IContentField<string>;
|
|
863
|
+
value?: IContentField<string>;
|
|
864
|
+
description?: IContentField<string>;
|
|
865
|
+
is_required?: IContentField<string>;
|
|
866
|
+
disabled?: IContentField<string>;
|
|
867
|
+
use_mantine_style?: IContentField<string>;
|
|
868
|
+
}
|
|
869
|
+
interface IColorPickerStyle extends IStyleWithSpacing {
|
|
870
|
+
style_name: 'color-picker';
|
|
871
|
+
label?: IContentField<string>;
|
|
872
|
+
mantine_color_format?: IContentField<string>;
|
|
873
|
+
mantine_color_picker_swatches_per_row?: IContentField<string>;
|
|
874
|
+
mantine_color_picker_swatches?: IContentField<string>;
|
|
875
|
+
mantine_color_picker_with_picker?: IContentField<string>;
|
|
876
|
+
mantine_color_picker_saturation_label?: IContentField<string>;
|
|
877
|
+
mantine_color_picker_hue_label?: IContentField<string>;
|
|
878
|
+
mantine_color_picker_alpha_label?: IContentField<string>;
|
|
879
|
+
mantine_color_picker_as_button?: IContentField<string>;
|
|
880
|
+
mantine_color_picker_button_label?: IContentField<string>;
|
|
881
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
882
|
+
mantine_fullwidth?: IContentField<string>;
|
|
883
|
+
name?: IContentField<string>;
|
|
884
|
+
value?: IContentField<string>;
|
|
885
|
+
description?: IContentField<string>;
|
|
886
|
+
is_required?: IContentField<string>;
|
|
887
|
+
use_mantine_style?: IContentField<string>;
|
|
888
|
+
}
|
|
889
|
+
interface IFileInputStyle extends IStyleWithSpacing {
|
|
890
|
+
style_name: 'file-input';
|
|
891
|
+
mantine_file_input_multiple?: IContentField<string>;
|
|
892
|
+
mantine_file_input_accept?: IContentField<string>;
|
|
893
|
+
mantine_file_input_clearable?: IContentField<string>;
|
|
894
|
+
mantine_file_input_max_size?: IContentField<string>;
|
|
895
|
+
mantine_file_input_max_files?: IContentField<string>;
|
|
896
|
+
mantine_file_input_drag_drop?: IContentField<string>;
|
|
897
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
898
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
899
|
+
mantine_left_icon?: IContentField<string>;
|
|
900
|
+
mantine_right_icon?: IContentField<string>;
|
|
901
|
+
placeholder?: IContentField<string>;
|
|
902
|
+
disabled?: IContentField<string>;
|
|
903
|
+
use_mantine_style?: IContentField<string>;
|
|
904
|
+
is_required?: IContentField<string>;
|
|
905
|
+
name?: IContentField<string>;
|
|
906
|
+
label?: IContentField<string>;
|
|
907
|
+
description?: IContentField<string>;
|
|
908
|
+
}
|
|
909
|
+
interface INumberInputStyle extends IStyleWithSpacing {
|
|
910
|
+
style_name: 'number-input';
|
|
911
|
+
mantine_numeric_min?: IContentField<string>;
|
|
912
|
+
mantine_numeric_max?: IContentField<string>;
|
|
913
|
+
mantine_numeric_step?: IContentField<string>;
|
|
914
|
+
mantine_number_input_decimal_scale?: IContentField<string>;
|
|
915
|
+
mantine_number_input_clamp_behavior?: IContentField<string>;
|
|
916
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
917
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
918
|
+
placeholder?: IContentField<string>;
|
|
919
|
+
label?: IContentField<string>;
|
|
920
|
+
description?: IContentField<string>;
|
|
921
|
+
name?: IContentField<string>;
|
|
922
|
+
value?: IContentField<string>;
|
|
923
|
+
is_required?: IContentField<string>;
|
|
924
|
+
disabled?: IContentField<string>;
|
|
925
|
+
use_mantine_style?: IContentField<string>;
|
|
926
|
+
}
|
|
927
|
+
interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
928
|
+
style_name: 'segmented-control';
|
|
929
|
+
mantine_segmented_control_data?: IContentField<string>;
|
|
930
|
+
mantine_orientation?: IContentField<string>;
|
|
931
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
932
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
933
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
934
|
+
fullwidth?: IContentField<string>;
|
|
935
|
+
disabled?: IContentField<string>;
|
|
936
|
+
readonly?: IContentField<string>;
|
|
937
|
+
use_mantine_style?: IContentField<string>;
|
|
938
|
+
mantine_segmented_control_item_border?: IContentField<string>;
|
|
939
|
+
label?: IContentField<string>;
|
|
940
|
+
description?: IContentField<string>;
|
|
941
|
+
value?: IContentField<string>;
|
|
942
|
+
is_required?: IContentField<string>;
|
|
943
|
+
name?: IContentField<string>;
|
|
944
|
+
}
|
|
945
|
+
interface IRatingStyle extends IStyleWithSpacing {
|
|
946
|
+
style_name: 'rating';
|
|
947
|
+
label?: IContentField<string>;
|
|
948
|
+
description?: IContentField<string>;
|
|
949
|
+
name?: IContentField<string>;
|
|
950
|
+
disabled?: IContentField<string>;
|
|
951
|
+
value?: IContentField<string>;
|
|
952
|
+
readonly?: IContentField<string>;
|
|
953
|
+
mantine_rating_count?: IContentField<string>;
|
|
954
|
+
mantine_rating_fractions?: IContentField<string>;
|
|
955
|
+
mantine_rating_use_smiles?: IContentField<string>;
|
|
956
|
+
mantine_rating_empty_icon?: IContentField<string>;
|
|
957
|
+
mantine_rating_full_icon?: IContentField<string>;
|
|
958
|
+
mantine_rating_highlight_selected_only?: IContentField<string>;
|
|
959
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
960
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
961
|
+
use_mantine_style?: IContentField<string>;
|
|
962
|
+
}
|
|
963
|
+
interface IProgressStyle extends IStyleWithSpacing {
|
|
964
|
+
style_name: 'progress';
|
|
965
|
+
value?: IContentField<string>;
|
|
966
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
967
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
968
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
969
|
+
mantine_progress_striped?: IContentField<string>;
|
|
970
|
+
mantine_progress_animated?: IContentField<string>;
|
|
971
|
+
mantine_progress_transition_duration?: IContentField<TMantineProgressTransition>;
|
|
972
|
+
use_mantine_style?: IContentField<string>;
|
|
973
|
+
}
|
|
974
|
+
interface IProgressRootStyle extends IBaseStyle {
|
|
975
|
+
style_name: 'progress-root';
|
|
976
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
977
|
+
mantine_progress_auto_contrast?: IContentField<string>;
|
|
978
|
+
use_mantine_style?: IContentField<string>;
|
|
979
|
+
}
|
|
980
|
+
interface IProgressSectionStyle extends IBaseStyle {
|
|
981
|
+
style_name: 'progress-section';
|
|
982
|
+
value?: IContentField<string>;
|
|
983
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
984
|
+
mantine_progress_striped?: IContentField<string>;
|
|
985
|
+
mantine_progress_animated?: IContentField<string>;
|
|
986
|
+
label?: IContentField<string>;
|
|
987
|
+
mantine_tooltip_label?: IContentField<string>;
|
|
988
|
+
mantine_tooltip_position?: IContentField<string>;
|
|
989
|
+
use_mantine_style?: IContentField<string>;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
type TMantineAccordionMultiple = '0' | '1';
|
|
993
|
+
type TMantineAccordionChevronPosition = 'left' | 'right';
|
|
994
|
+
type TMantineAccordionDisableChevronRotation = '0' | '1';
|
|
995
|
+
type TMantineAccordionLoop = '0' | '1';
|
|
996
|
+
type TMantineTimelineAlign = 'left' | 'right';
|
|
997
|
+
type TMantineListType = 'ordered' | 'unordered';
|
|
998
|
+
type TMantineListStyleType = 'none' | 'disc' | 'circle' | 'square' | 'decimal' | 'decimal-leading-zero' | 'lower-roman' | 'upper-roman' | 'lower-alpha' | 'upper-alpha' | string;
|
|
999
|
+
type TMantineListWithPadding = '0' | '1';
|
|
1000
|
+
type TMantineListCenter = '0' | '1';
|
|
1001
|
+
interface IAccordionStyle extends IStyleWithSpacing {
|
|
1002
|
+
style_name: 'accordion';
|
|
1003
|
+
mantine_accordion_variant?: IContentField<TMantineAccordionVariant>;
|
|
1004
|
+
mantine_accordion_multiple?: IContentField<TMantineAccordionMultiple>;
|
|
1005
|
+
mantine_accordion_chevron_position?: IContentField<TMantineAccordionChevronPosition>;
|
|
1006
|
+
mantine_accordion_chevron_size?: IContentField<string>;
|
|
1007
|
+
mantine_accordion_disable_chevron_rotation?: IContentField<TMantineAccordionDisableChevronRotation>;
|
|
1008
|
+
mantine_accordion_loop?: IContentField<TMantineAccordionLoop>;
|
|
1009
|
+
mantine_accordion_transition_duration?: IContentField<string>;
|
|
1010
|
+
mantine_accordion_default_value?: IContentField<string>;
|
|
1011
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
1012
|
+
use_mantine_style?: IContentField<string>;
|
|
1013
|
+
}
|
|
1014
|
+
interface IAccordionItemStyle extends IStyleWithSpacing {
|
|
1015
|
+
style_name: 'accordion-item';
|
|
1016
|
+
mantine_accordion_item_value?: IContentField<string>;
|
|
1017
|
+
label?: IContentField<string>;
|
|
1018
|
+
mantine_accordion_item_icon?: IContentField<string>;
|
|
1019
|
+
disabled?: IContentField<string>;
|
|
1020
|
+
use_mantine_style?: IContentField<string>;
|
|
1021
|
+
}
|
|
1022
|
+
interface ITabsStyle extends IStyleWithSpacing {
|
|
1023
|
+
style_name: 'tabs';
|
|
1024
|
+
mantine_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
1025
|
+
mantine_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
1026
|
+
mantine_tabs_radius?: IContentField<TMantineRadius>;
|
|
1027
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
1028
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
1029
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
1030
|
+
use_mantine_style?: IContentField<string>;
|
|
1031
|
+
}
|
|
1032
|
+
interface ITabStyle extends IBaseStyle {
|
|
1033
|
+
style_name: 'tab';
|
|
1034
|
+
label?: IContentField<string>;
|
|
1035
|
+
mantine_left_icon?: IContentField<string>;
|
|
1036
|
+
mantine_right_icon?: IContentField<string>;
|
|
1037
|
+
mantine_tab_disabled?: IContentField<string>;
|
|
1038
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
1039
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
1040
|
+
use_mantine_style?: IContentField<string>;
|
|
1041
|
+
}
|
|
1042
|
+
interface ITimelineStyle extends IStyleWithSpacing {
|
|
1043
|
+
style_name: 'timeline';
|
|
1044
|
+
mantine_timeline_bullet_size?: IContentField<string>;
|
|
1045
|
+
mantine_timeline_line_width?: IContentField<string>;
|
|
1046
|
+
mantine_timeline_active?: IContentField<string>;
|
|
1047
|
+
mantine_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
1048
|
+
mantine_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
1049
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
1050
|
+
use_mantine_style?: IContentField<string>;
|
|
1051
|
+
}
|
|
1052
|
+
interface IListStyle extends IStyleWithSpacing {
|
|
1053
|
+
style_name: 'list';
|
|
1054
|
+
mantine_list_type?: IContentField<TMantineListType>;
|
|
1055
|
+
mantine_spacing?: IContentField<TMantineSpacing>;
|
|
1056
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
1057
|
+
use_mantine_style?: IContentField<string>;
|
|
1058
|
+
mantine_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
1059
|
+
mantine_list_with_padding?: IContentField<TMantineListWithPadding>;
|
|
1060
|
+
mantine_list_center?: IContentField<TMantineListCenter>;
|
|
1061
|
+
mantine_list_icon?: IContentField<string>;
|
|
1062
|
+
}
|
|
1063
|
+
interface IListItemStyle extends IStyleWithSpacing {
|
|
1064
|
+
style_name: 'list-item';
|
|
1065
|
+
mantine_list_item_content?: IContentField<string>;
|
|
1066
|
+
mantine_list_item_icon?: IContentField<string>;
|
|
1067
|
+
use_mantine_style?: IContentField<string>;
|
|
1068
|
+
}
|
|
1069
|
+
interface IEntryListStyle extends IBaseStyle {
|
|
1070
|
+
style_name: 'entryList';
|
|
1071
|
+
line_clamp?: IContentField<TMantineLineClamp>;
|
|
1072
|
+
}
|
|
1073
|
+
interface IEntryRecordStyle extends IBaseStyle {
|
|
1074
|
+
style_name: 'entryRecord';
|
|
1075
|
+
}
|
|
1076
|
+
interface IEntryRecordDeleteStyle extends IBaseStyle {
|
|
1077
|
+
style_name: 'entryRecordDelete';
|
|
1078
|
+
}
|
|
1079
|
+
interface ILoopStyle extends IBaseStyle {
|
|
1080
|
+
style_name: 'loop';
|
|
1081
|
+
loop?: IContentField<unknown[]>;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Discriminated union of every supported user-facing style. Adding a new
|
|
1086
|
+
* style means adding its interface AND extending this union AND registering
|
|
1087
|
+
* it in `STYLE_REGISTRY`.
|
|
1088
|
+
*
|
|
1089
|
+
* Admin/CMS-only styles are intentionally NOT in this union — the mobile
|
|
1090
|
+
* app does not render them.
|
|
1091
|
+
*/
|
|
1092
|
+
type TStyle = ILoginStyle | IRegisterStyle | IValidateStyle | IResetPasswordStyle | ITwoFactorAuthStyle | IProfileStyle | IContainerStyle | IBoxStyle | IFlexStyle | IGroupStyle | IStackStyle | ISimpleGridStyle | IGridStyle | IGridColumnStyle | ISpaceStyle | IDividerStyle | IPaperStyle | ICenterStyle | IScrollAreaStyle | ICardStyle | ICardSegmentStyle | IAspectRatioStyle | IBackgroundImageStyle | ITitleStyle | ITextStyle | ICodeStyle | IHighlightStyle | IBlockquoteStyle | IHtmlTagStyle | IKbdStyle | ITypographyStyle | IFieldsetStyle | ISpoilerStyle | IImageStyle | IVideoStyle | IAudioStyle | IFigureStyle | ICarouselStyle | IButtonStyle | ILinkStyle | IActionIconStyle | IAlertStyle | IBadgeStyle | IAvatarStyle | IChipStyle | IIndicatorStyle | IThemeIconStyle | INotificationStyle | IFormLogStyle | IFormRecordStyle | IInputStyle | ITextInputStyle | ITextareaStyle | IRichTextEditorStyle | ISelectStyle | IRadioStyle | ICheckboxStyle | ISliderStyle | IRangeSliderStyle | IDatePickerStyle | ISwitchStyle | IComboboxStyle | IColorInputStyle | IColorPickerStyle | IFileInputStyle | INumberInputStyle | ISegmentedControlStyle | IRatingStyle | IProgressStyle | IProgressRootStyle | IProgressSectionStyle | IAccordionStyle | IAccordionItemStyle | ITabsStyle | ITabStyle | ITimelineStyle | IListStyle | IListItemStyle | IEntryListStyle | IEntryRecordStyle | IEntryRecordDeleteStyle | ILoopStyle;
|
|
1093
|
+
/**
|
|
1094
|
+
* Discriminator — name of every supported style. Derived from the
|
|
1095
|
+
* `STYLE_REGISTRY` keys (declared in `src/registry/styles.registry.ts`).
|
|
1096
|
+
*
|
|
1097
|
+
* NOTE: Keep in sync with `STYLE_REGISTRY`. The registry is the source of
|
|
1098
|
+
* truth at runtime; this type is the source of truth at compile time.
|
|
1099
|
+
*/
|
|
1100
|
+
type TStyleName = TStyle['style_name'];
|
|
1101
|
+
/**
|
|
1102
|
+
* Catch-all for styles a renderer doesn't know about (yet). Keeps the
|
|
1103
|
+
* tree alive and lets the renderer surface debug info.
|
|
1104
|
+
*/
|
|
1105
|
+
interface IUnknownStyle {
|
|
1106
|
+
id: number;
|
|
1107
|
+
id_styles: number;
|
|
1108
|
+
style_name: string;
|
|
1109
|
+
can_have_children: number | null;
|
|
1110
|
+
position: number;
|
|
1111
|
+
path: string;
|
|
1112
|
+
children?: TStyle[];
|
|
1113
|
+
fields: Record<string, IContentField<unknown>>;
|
|
1114
|
+
css?: string;
|
|
1115
|
+
css_mobile?: string;
|
|
1116
|
+
use_mantine_style?: IContentField<string>;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Base interfaces shared by every CMS style. Mirrors what the backend
|
|
1121
|
+
* `PageService` returns per section: a `style_name` discriminator, a
|
|
1122
|
+
* `fields` map, and a handful of side-channel fields (css, condition, debug).
|
|
1123
|
+
*
|
|
1124
|
+
* The per-style interfaces (in `auth.ts`, `layout.ts`, …) extend these.
|
|
1125
|
+
*/
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* One translatable / typed field as returned by the backend. The backend
|
|
1129
|
+
* stores `{ content, meta?, type?, id?, default? }` per field; we keep
|
|
1130
|
+
* the same shape so the renderer can simply read `field.content`.
|
|
1131
|
+
*/
|
|
1132
|
+
interface IContentField<T> {
|
|
1133
|
+
content: T;
|
|
1134
|
+
meta?: string;
|
|
1135
|
+
type?: string;
|
|
1136
|
+
id?: string;
|
|
1137
|
+
default?: string;
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Common fields every style has. The discriminator is `style_name`.
|
|
1141
|
+
*
|
|
1142
|
+
* - `id` / `id_styles` / `position` / `path` come from the section row.
|
|
1143
|
+
* - `fields` is the field map (some styles also expose specific fields
|
|
1144
|
+
* directly at the top level — those are typed in the per-style interfaces).
|
|
1145
|
+
* - `css` is the web-only CSS class string. Mobile renderer reads ONLY
|
|
1146
|
+
* `css_mobile` per the project decision.
|
|
1147
|
+
* - `condition` is a JSON-Logic expression evaluated client-side for
|
|
1148
|
+
* visibility (mirrors backend `ConditionService`).
|
|
1149
|
+
* - `data_config` is an optional JSON config string used by data-bound
|
|
1150
|
+
* styles (entryList, formUserInputRecord, …).
|
|
1151
|
+
*/
|
|
1152
|
+
interface IBaseStyle {
|
|
1153
|
+
id: number;
|
|
1154
|
+
id_styles: number;
|
|
1155
|
+
style_name: string;
|
|
1156
|
+
can_have_children: number | null;
|
|
1157
|
+
position: number;
|
|
1158
|
+
path: string;
|
|
1159
|
+
children?: TStyle[];
|
|
1160
|
+
section_name: string;
|
|
1161
|
+
section_data?: unknown[];
|
|
1162
|
+
fields: Record<string, IContentField<unknown>>;
|
|
1163
|
+
condition: string | null;
|
|
1164
|
+
css: string | null;
|
|
1165
|
+
css_mobile: string | null;
|
|
1166
|
+
debug: number | null;
|
|
1167
|
+
data_config: string | number | null;
|
|
1168
|
+
condition_debug?: {
|
|
1169
|
+
condition?: string;
|
|
1170
|
+
result: boolean;
|
|
1171
|
+
error?: unknown[];
|
|
1172
|
+
variables?: Record<string, unknown>;
|
|
1173
|
+
condition_object?: unknown;
|
|
1174
|
+
} | null;
|
|
1175
|
+
}
|
|
1176
|
+
/** Styles that support the unified spacing field. */
|
|
1177
|
+
interface IStyleWithSpacing extends IBaseStyle {
|
|
1178
|
+
/** Legacy / margin-only field still used by many Mantine styles in the DB. */
|
|
1179
|
+
mantine_spacing_margin?: IContentField<string>;
|
|
1180
|
+
/** Newer box-model field that supports both margin and padding. */
|
|
1181
|
+
mantine_spacing_margin_padding?: IContentField<string>;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* STYLE_REGISTRY — single source of truth for every supported user-facing
|
|
1186
|
+
* style. Both the web and mobile renderers import this map and TypeScript
|
|
1187
|
+
* forces them to provide an implementation for each key (see
|
|
1188
|
+
* `createStyleImplMap` in `index.ts`).
|
|
1189
|
+
*
|
|
1190
|
+
* Adding a new style:
|
|
1191
|
+
* 1. Add the per-style interface in `src/types/styles/<group>.ts`.
|
|
1192
|
+
* 2. Extend `TStyle` in `src/types/styles/unknown.ts`.
|
|
1193
|
+
* 3. Add the entry below.
|
|
1194
|
+
* 4. Both apps will fail to compile until they add an impl.
|
|
1195
|
+
*/
|
|
1196
|
+
|
|
1197
|
+
interface IStyleRegistryEntry {
|
|
1198
|
+
/** Human description for docs / tooling. */
|
|
1199
|
+
description: string;
|
|
1200
|
+
/** UX category for grouping in tools / cookbook. */
|
|
1201
|
+
category: 'auth' | 'layout' | 'typography' | 'media' | 'interactive' | 'forms' | 'composite';
|
|
1202
|
+
/**
|
|
1203
|
+
* Whether the style is intended for end-user pages. Mobile renders
|
|
1204
|
+
* only `frontendOnly: true` styles. Today every entry below is true;
|
|
1205
|
+
* if/when an admin-only style is added it must be marked false.
|
|
1206
|
+
*/
|
|
1207
|
+
frontendOnly: true;
|
|
1208
|
+
/**
|
|
1209
|
+
* Whether the style can have child sections (mirrors backend
|
|
1210
|
+
* `styles.can_have_children`). Renderers use this to short-circuit
|
|
1211
|
+
* children traversal.
|
|
1212
|
+
*/
|
|
1213
|
+
canHaveChildren: boolean;
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Single-source registry. Keys here drive `TStyleName` (declared in
|
|
1217
|
+
* `types/styles/unknown.ts`); both files must stay in sync.
|
|
1218
|
+
*/
|
|
1219
|
+
declare const STYLE_REGISTRY: {
|
|
1220
|
+
readonly login: {
|
|
1221
|
+
readonly description: "User login form";
|
|
1222
|
+
readonly category: "auth";
|
|
1223
|
+
readonly frontendOnly: true;
|
|
1224
|
+
readonly canHaveChildren: false;
|
|
1225
|
+
};
|
|
1226
|
+
readonly register: {
|
|
1227
|
+
readonly description: "User registration form";
|
|
1228
|
+
readonly category: "auth";
|
|
1229
|
+
readonly frontendOnly: true;
|
|
1230
|
+
readonly canHaveChildren: false;
|
|
1231
|
+
};
|
|
1232
|
+
readonly validate: {
|
|
1233
|
+
readonly description: "Email/account validation flow";
|
|
1234
|
+
readonly category: "auth";
|
|
1235
|
+
readonly frontendOnly: true;
|
|
1236
|
+
readonly canHaveChildren: true;
|
|
1237
|
+
};
|
|
1238
|
+
readonly resetPassword: {
|
|
1239
|
+
readonly description: "Reset password form";
|
|
1240
|
+
readonly category: "auth";
|
|
1241
|
+
readonly frontendOnly: true;
|
|
1242
|
+
readonly canHaveChildren: false;
|
|
1243
|
+
};
|
|
1244
|
+
readonly twoFactorAuth: {
|
|
1245
|
+
readonly description: "Two-factor auth code form";
|
|
1246
|
+
readonly category: "auth";
|
|
1247
|
+
readonly frontendOnly: true;
|
|
1248
|
+
readonly canHaveChildren: false;
|
|
1249
|
+
};
|
|
1250
|
+
readonly profile: {
|
|
1251
|
+
readonly description: "User profile management";
|
|
1252
|
+
readonly category: "auth";
|
|
1253
|
+
readonly frontendOnly: true;
|
|
1254
|
+
readonly canHaveChildren: false;
|
|
1255
|
+
};
|
|
1256
|
+
readonly container: {
|
|
1257
|
+
readonly description: "Mantine Container with responsive max-width";
|
|
1258
|
+
readonly category: "layout";
|
|
1259
|
+
readonly frontendOnly: true;
|
|
1260
|
+
readonly canHaveChildren: true;
|
|
1261
|
+
};
|
|
1262
|
+
readonly box: {
|
|
1263
|
+
readonly description: "Generic Mantine Box wrapper";
|
|
1264
|
+
readonly category: "layout";
|
|
1265
|
+
readonly frontendOnly: true;
|
|
1266
|
+
readonly canHaveChildren: true;
|
|
1267
|
+
};
|
|
1268
|
+
readonly flex: {
|
|
1269
|
+
readonly description: "Mantine Flex layout";
|
|
1270
|
+
readonly category: "layout";
|
|
1271
|
+
readonly frontendOnly: true;
|
|
1272
|
+
readonly canHaveChildren: true;
|
|
1273
|
+
};
|
|
1274
|
+
readonly group: {
|
|
1275
|
+
readonly description: "Mantine Group horizontal layout";
|
|
1276
|
+
readonly category: "layout";
|
|
1277
|
+
readonly frontendOnly: true;
|
|
1278
|
+
readonly canHaveChildren: true;
|
|
1279
|
+
};
|
|
1280
|
+
readonly stack: {
|
|
1281
|
+
readonly description: "Mantine Stack vertical layout";
|
|
1282
|
+
readonly category: "layout";
|
|
1283
|
+
readonly frontendOnly: true;
|
|
1284
|
+
readonly canHaveChildren: true;
|
|
1285
|
+
};
|
|
1286
|
+
readonly 'simple-grid': {
|
|
1287
|
+
readonly description: "Mantine SimpleGrid";
|
|
1288
|
+
readonly category: "layout";
|
|
1289
|
+
readonly frontendOnly: true;
|
|
1290
|
+
readonly canHaveChildren: true;
|
|
1291
|
+
};
|
|
1292
|
+
readonly grid: {
|
|
1293
|
+
readonly description: "Mantine Grid";
|
|
1294
|
+
readonly category: "layout";
|
|
1295
|
+
readonly frontendOnly: true;
|
|
1296
|
+
readonly canHaveChildren: true;
|
|
1297
|
+
};
|
|
1298
|
+
readonly 'grid-column': {
|
|
1299
|
+
readonly description: "Mantine Grid.Col";
|
|
1300
|
+
readonly category: "layout";
|
|
1301
|
+
readonly frontendOnly: true;
|
|
1302
|
+
readonly canHaveChildren: true;
|
|
1303
|
+
};
|
|
1304
|
+
readonly space: {
|
|
1305
|
+
readonly description: "Mantine Space spacer";
|
|
1306
|
+
readonly category: "layout";
|
|
1307
|
+
readonly frontendOnly: true;
|
|
1308
|
+
readonly canHaveChildren: false;
|
|
1309
|
+
};
|
|
1310
|
+
readonly divider: {
|
|
1311
|
+
readonly description: "Mantine Divider";
|
|
1312
|
+
readonly category: "layout";
|
|
1313
|
+
readonly frontendOnly: true;
|
|
1314
|
+
readonly canHaveChildren: false;
|
|
1315
|
+
};
|
|
1316
|
+
readonly paper: {
|
|
1317
|
+
readonly description: "Mantine Paper surface";
|
|
1318
|
+
readonly category: "layout";
|
|
1319
|
+
readonly frontendOnly: true;
|
|
1320
|
+
readonly canHaveChildren: true;
|
|
1321
|
+
};
|
|
1322
|
+
readonly center: {
|
|
1323
|
+
readonly description: "Mantine Center alignment";
|
|
1324
|
+
readonly category: "layout";
|
|
1325
|
+
readonly frontendOnly: true;
|
|
1326
|
+
readonly canHaveChildren: true;
|
|
1327
|
+
};
|
|
1328
|
+
readonly 'scroll-area': {
|
|
1329
|
+
readonly description: "Mantine ScrollArea";
|
|
1330
|
+
readonly category: "layout";
|
|
1331
|
+
readonly frontendOnly: true;
|
|
1332
|
+
readonly canHaveChildren: true;
|
|
1333
|
+
};
|
|
1334
|
+
readonly card: {
|
|
1335
|
+
readonly description: "Mantine Card";
|
|
1336
|
+
readonly category: "layout";
|
|
1337
|
+
readonly frontendOnly: true;
|
|
1338
|
+
readonly canHaveChildren: true;
|
|
1339
|
+
};
|
|
1340
|
+
readonly 'card-segment': {
|
|
1341
|
+
readonly description: "Mantine Card.Section";
|
|
1342
|
+
readonly category: "layout";
|
|
1343
|
+
readonly frontendOnly: true;
|
|
1344
|
+
readonly canHaveChildren: true;
|
|
1345
|
+
};
|
|
1346
|
+
readonly 'aspect-ratio': {
|
|
1347
|
+
readonly description: "Mantine AspectRatio wrapper";
|
|
1348
|
+
readonly category: "layout";
|
|
1349
|
+
readonly frontendOnly: true;
|
|
1350
|
+
readonly canHaveChildren: true;
|
|
1351
|
+
};
|
|
1352
|
+
readonly 'background-image': {
|
|
1353
|
+
readonly description: "Mantine BackgroundImage";
|
|
1354
|
+
readonly category: "layout";
|
|
1355
|
+
readonly frontendOnly: true;
|
|
1356
|
+
readonly canHaveChildren: true;
|
|
1357
|
+
};
|
|
1358
|
+
readonly title: {
|
|
1359
|
+
readonly description: "Mantine Title";
|
|
1360
|
+
readonly category: "typography";
|
|
1361
|
+
readonly frontendOnly: true;
|
|
1362
|
+
readonly canHaveChildren: false;
|
|
1363
|
+
};
|
|
1364
|
+
readonly text: {
|
|
1365
|
+
readonly description: "Mantine Text";
|
|
1366
|
+
readonly category: "typography";
|
|
1367
|
+
readonly frontendOnly: true;
|
|
1368
|
+
readonly canHaveChildren: false;
|
|
1369
|
+
};
|
|
1370
|
+
readonly code: {
|
|
1371
|
+
readonly description: "Mantine Code (inline / block)";
|
|
1372
|
+
readonly category: "typography";
|
|
1373
|
+
readonly frontendOnly: true;
|
|
1374
|
+
readonly canHaveChildren: false;
|
|
1375
|
+
};
|
|
1376
|
+
readonly highlight: {
|
|
1377
|
+
readonly description: "Mantine Highlight";
|
|
1378
|
+
readonly category: "typography";
|
|
1379
|
+
readonly frontendOnly: true;
|
|
1380
|
+
readonly canHaveChildren: false;
|
|
1381
|
+
};
|
|
1382
|
+
readonly blockquote: {
|
|
1383
|
+
readonly description: "Mantine Blockquote";
|
|
1384
|
+
readonly category: "typography";
|
|
1385
|
+
readonly frontendOnly: true;
|
|
1386
|
+
readonly canHaveChildren: false;
|
|
1387
|
+
};
|
|
1388
|
+
readonly 'html-tag': {
|
|
1389
|
+
readonly description: "Generic HTML tag wrapper (web), maps to View on RN";
|
|
1390
|
+
readonly category: "typography";
|
|
1391
|
+
readonly frontendOnly: true;
|
|
1392
|
+
readonly canHaveChildren: true;
|
|
1393
|
+
};
|
|
1394
|
+
readonly kbd: {
|
|
1395
|
+
readonly description: "Mantine Kbd";
|
|
1396
|
+
readonly category: "typography";
|
|
1397
|
+
readonly frontendOnly: true;
|
|
1398
|
+
readonly canHaveChildren: false;
|
|
1399
|
+
};
|
|
1400
|
+
readonly typography: {
|
|
1401
|
+
readonly description: "Mantine Typography wrapper";
|
|
1402
|
+
readonly category: "typography";
|
|
1403
|
+
readonly frontendOnly: true;
|
|
1404
|
+
readonly canHaveChildren: true;
|
|
1405
|
+
};
|
|
1406
|
+
readonly fieldset: {
|
|
1407
|
+
readonly description: "Mantine Fieldset";
|
|
1408
|
+
readonly category: "typography";
|
|
1409
|
+
readonly frontendOnly: true;
|
|
1410
|
+
readonly canHaveChildren: true;
|
|
1411
|
+
};
|
|
1412
|
+
readonly spoiler: {
|
|
1413
|
+
readonly description: "Mantine Spoiler reveal";
|
|
1414
|
+
readonly category: "typography";
|
|
1415
|
+
readonly frontendOnly: true;
|
|
1416
|
+
readonly canHaveChildren: true;
|
|
1417
|
+
};
|
|
1418
|
+
readonly image: {
|
|
1419
|
+
readonly description: "Mantine Image / RN Image";
|
|
1420
|
+
readonly category: "media";
|
|
1421
|
+
readonly frontendOnly: true;
|
|
1422
|
+
readonly canHaveChildren: false;
|
|
1423
|
+
};
|
|
1424
|
+
readonly video: {
|
|
1425
|
+
readonly description: "HTML5 video / expo-video";
|
|
1426
|
+
readonly category: "media";
|
|
1427
|
+
readonly frontendOnly: true;
|
|
1428
|
+
readonly canHaveChildren: false;
|
|
1429
|
+
};
|
|
1430
|
+
readonly audio: {
|
|
1431
|
+
readonly description: "HTML5 audio / expo-audio";
|
|
1432
|
+
readonly category: "media";
|
|
1433
|
+
readonly frontendOnly: true;
|
|
1434
|
+
readonly canHaveChildren: false;
|
|
1435
|
+
};
|
|
1436
|
+
readonly figure: {
|
|
1437
|
+
readonly description: "Figure with caption";
|
|
1438
|
+
readonly category: "media";
|
|
1439
|
+
readonly frontendOnly: true;
|
|
1440
|
+
readonly canHaveChildren: true;
|
|
1441
|
+
};
|
|
1442
|
+
readonly carousel: {
|
|
1443
|
+
readonly description: "Embla on web, reanimated-carousel on RN";
|
|
1444
|
+
readonly category: "media";
|
|
1445
|
+
readonly frontendOnly: true;
|
|
1446
|
+
readonly canHaveChildren: true;
|
|
1447
|
+
};
|
|
1448
|
+
readonly button: {
|
|
1449
|
+
readonly description: "Mantine Button / HeroUI Button";
|
|
1450
|
+
readonly category: "interactive";
|
|
1451
|
+
readonly frontendOnly: true;
|
|
1452
|
+
readonly canHaveChildren: false;
|
|
1453
|
+
};
|
|
1454
|
+
readonly link: {
|
|
1455
|
+
readonly description: "Anchor / Pressable navigation";
|
|
1456
|
+
readonly category: "interactive";
|
|
1457
|
+
readonly frontendOnly: true;
|
|
1458
|
+
readonly canHaveChildren: false;
|
|
1459
|
+
};
|
|
1460
|
+
readonly 'action-icon': {
|
|
1461
|
+
readonly description: "Mantine ActionIcon";
|
|
1462
|
+
readonly category: "interactive";
|
|
1463
|
+
readonly frontendOnly: true;
|
|
1464
|
+
readonly canHaveChildren: false;
|
|
1465
|
+
};
|
|
1466
|
+
readonly alert: {
|
|
1467
|
+
readonly description: "Mantine Alert";
|
|
1468
|
+
readonly category: "interactive";
|
|
1469
|
+
readonly frontendOnly: true;
|
|
1470
|
+
readonly canHaveChildren: true;
|
|
1471
|
+
};
|
|
1472
|
+
readonly badge: {
|
|
1473
|
+
readonly description: "Mantine Badge";
|
|
1474
|
+
readonly category: "interactive";
|
|
1475
|
+
readonly frontendOnly: true;
|
|
1476
|
+
readonly canHaveChildren: false;
|
|
1477
|
+
};
|
|
1478
|
+
readonly avatar: {
|
|
1479
|
+
readonly description: "Mantine Avatar";
|
|
1480
|
+
readonly category: "interactive";
|
|
1481
|
+
readonly frontendOnly: true;
|
|
1482
|
+
readonly canHaveChildren: false;
|
|
1483
|
+
};
|
|
1484
|
+
readonly chip: {
|
|
1485
|
+
readonly description: "Mantine Chip";
|
|
1486
|
+
readonly category: "interactive";
|
|
1487
|
+
readonly frontendOnly: true;
|
|
1488
|
+
readonly canHaveChildren: false;
|
|
1489
|
+
};
|
|
1490
|
+
readonly indicator: {
|
|
1491
|
+
readonly description: "Mantine Indicator dot";
|
|
1492
|
+
readonly category: "interactive";
|
|
1493
|
+
readonly frontendOnly: true;
|
|
1494
|
+
readonly canHaveChildren: true;
|
|
1495
|
+
};
|
|
1496
|
+
readonly 'theme-icon': {
|
|
1497
|
+
readonly description: "Mantine ThemeIcon";
|
|
1498
|
+
readonly category: "interactive";
|
|
1499
|
+
readonly frontendOnly: true;
|
|
1500
|
+
readonly canHaveChildren: false;
|
|
1501
|
+
};
|
|
1502
|
+
readonly notification: {
|
|
1503
|
+
readonly description: "Mantine Notification";
|
|
1504
|
+
readonly category: "interactive";
|
|
1505
|
+
readonly frontendOnly: true;
|
|
1506
|
+
readonly canHaveChildren: false;
|
|
1507
|
+
};
|
|
1508
|
+
readonly 'form-log': {
|
|
1509
|
+
readonly description: "Append-only form (one row per submit)";
|
|
1510
|
+
readonly category: "forms";
|
|
1511
|
+
readonly frontendOnly: true;
|
|
1512
|
+
readonly canHaveChildren: true;
|
|
1513
|
+
};
|
|
1514
|
+
readonly 'form-record': {
|
|
1515
|
+
readonly description: "Per-user record form";
|
|
1516
|
+
readonly category: "forms";
|
|
1517
|
+
readonly frontendOnly: true;
|
|
1518
|
+
readonly canHaveChildren: true;
|
|
1519
|
+
};
|
|
1520
|
+
readonly input: {
|
|
1521
|
+
readonly description: "Plain HTML input";
|
|
1522
|
+
readonly category: "forms";
|
|
1523
|
+
readonly frontendOnly: true;
|
|
1524
|
+
readonly canHaveChildren: false;
|
|
1525
|
+
};
|
|
1526
|
+
readonly 'text-input': {
|
|
1527
|
+
readonly description: "Mantine TextInput";
|
|
1528
|
+
readonly category: "forms";
|
|
1529
|
+
readonly frontendOnly: true;
|
|
1530
|
+
readonly canHaveChildren: false;
|
|
1531
|
+
};
|
|
1532
|
+
readonly textarea: {
|
|
1533
|
+
readonly description: "Mantine Textarea";
|
|
1534
|
+
readonly category: "forms";
|
|
1535
|
+
readonly frontendOnly: true;
|
|
1536
|
+
readonly canHaveChildren: false;
|
|
1537
|
+
};
|
|
1538
|
+
readonly 'rich-text-editor': {
|
|
1539
|
+
readonly description: "Tiptap editor on web; READ-ONLY viewer on mobile v1";
|
|
1540
|
+
readonly category: "forms";
|
|
1541
|
+
readonly frontendOnly: true;
|
|
1542
|
+
readonly canHaveChildren: false;
|
|
1543
|
+
};
|
|
1544
|
+
readonly select: {
|
|
1545
|
+
readonly description: "HTML select / Mantine Select";
|
|
1546
|
+
readonly category: "forms";
|
|
1547
|
+
readonly frontendOnly: true;
|
|
1548
|
+
readonly canHaveChildren: false;
|
|
1549
|
+
};
|
|
1550
|
+
readonly radio: {
|
|
1551
|
+
readonly description: "Mantine Radio / RadioGroup";
|
|
1552
|
+
readonly category: "forms";
|
|
1553
|
+
readonly frontendOnly: true;
|
|
1554
|
+
readonly canHaveChildren: false;
|
|
1555
|
+
};
|
|
1556
|
+
readonly checkbox: {
|
|
1557
|
+
readonly description: "Mantine Checkbox";
|
|
1558
|
+
readonly category: "forms";
|
|
1559
|
+
readonly frontendOnly: true;
|
|
1560
|
+
readonly canHaveChildren: false;
|
|
1561
|
+
};
|
|
1562
|
+
readonly slider: {
|
|
1563
|
+
readonly description: "Mantine Slider";
|
|
1564
|
+
readonly category: "forms";
|
|
1565
|
+
readonly frontendOnly: true;
|
|
1566
|
+
readonly canHaveChildren: false;
|
|
1567
|
+
};
|
|
1568
|
+
readonly 'range-slider': {
|
|
1569
|
+
readonly description: "Mantine RangeSlider";
|
|
1570
|
+
readonly category: "forms";
|
|
1571
|
+
readonly frontendOnly: true;
|
|
1572
|
+
readonly canHaveChildren: false;
|
|
1573
|
+
};
|
|
1574
|
+
readonly datepicker: {
|
|
1575
|
+
readonly description: "Mantine DatePicker";
|
|
1576
|
+
readonly category: "forms";
|
|
1577
|
+
readonly frontendOnly: true;
|
|
1578
|
+
readonly canHaveChildren: false;
|
|
1579
|
+
};
|
|
1580
|
+
readonly switch: {
|
|
1581
|
+
readonly description: "Mantine Switch";
|
|
1582
|
+
readonly category: "forms";
|
|
1583
|
+
readonly frontendOnly: true;
|
|
1584
|
+
readonly canHaveChildren: false;
|
|
1585
|
+
};
|
|
1586
|
+
readonly combobox: {
|
|
1587
|
+
readonly description: "Mantine Combobox";
|
|
1588
|
+
readonly category: "forms";
|
|
1589
|
+
readonly frontendOnly: true;
|
|
1590
|
+
readonly canHaveChildren: false;
|
|
1591
|
+
};
|
|
1592
|
+
readonly 'color-input': {
|
|
1593
|
+
readonly description: "Mantine ColorInput";
|
|
1594
|
+
readonly category: "forms";
|
|
1595
|
+
readonly frontendOnly: true;
|
|
1596
|
+
readonly canHaveChildren: false;
|
|
1597
|
+
};
|
|
1598
|
+
readonly 'color-picker': {
|
|
1599
|
+
readonly description: "Mantine ColorPicker";
|
|
1600
|
+
readonly category: "forms";
|
|
1601
|
+
readonly frontendOnly: true;
|
|
1602
|
+
readonly canHaveChildren: false;
|
|
1603
|
+
};
|
|
1604
|
+
readonly 'file-input': {
|
|
1605
|
+
readonly description: "Mantine FileInput / DocumentPicker on RN";
|
|
1606
|
+
readonly category: "forms";
|
|
1607
|
+
readonly frontendOnly: true;
|
|
1608
|
+
readonly canHaveChildren: false;
|
|
1609
|
+
};
|
|
1610
|
+
readonly 'number-input': {
|
|
1611
|
+
readonly description: "Mantine NumberInput";
|
|
1612
|
+
readonly category: "forms";
|
|
1613
|
+
readonly frontendOnly: true;
|
|
1614
|
+
readonly canHaveChildren: false;
|
|
1615
|
+
};
|
|
1616
|
+
readonly 'segmented-control': {
|
|
1617
|
+
readonly description: "Mantine SegmentedControl";
|
|
1618
|
+
readonly category: "forms";
|
|
1619
|
+
readonly frontendOnly: true;
|
|
1620
|
+
readonly canHaveChildren: false;
|
|
1621
|
+
};
|
|
1622
|
+
readonly rating: {
|
|
1623
|
+
readonly description: "Mantine Rating";
|
|
1624
|
+
readonly category: "forms";
|
|
1625
|
+
readonly frontendOnly: true;
|
|
1626
|
+
readonly canHaveChildren: false;
|
|
1627
|
+
};
|
|
1628
|
+
readonly progress: {
|
|
1629
|
+
readonly description: "Mantine Progress";
|
|
1630
|
+
readonly category: "forms";
|
|
1631
|
+
readonly frontendOnly: true;
|
|
1632
|
+
readonly canHaveChildren: false;
|
|
1633
|
+
};
|
|
1634
|
+
readonly 'progress-root': {
|
|
1635
|
+
readonly description: "Mantine Progress.Root";
|
|
1636
|
+
readonly category: "forms";
|
|
1637
|
+
readonly frontendOnly: true;
|
|
1638
|
+
readonly canHaveChildren: true;
|
|
1639
|
+
};
|
|
1640
|
+
readonly 'progress-section': {
|
|
1641
|
+
readonly description: "Mantine Progress.Section";
|
|
1642
|
+
readonly category: "forms";
|
|
1643
|
+
readonly frontendOnly: true;
|
|
1644
|
+
readonly canHaveChildren: false;
|
|
1645
|
+
};
|
|
1646
|
+
readonly accordion: {
|
|
1647
|
+
readonly description: "Mantine Accordion";
|
|
1648
|
+
readonly category: "composite";
|
|
1649
|
+
readonly frontendOnly: true;
|
|
1650
|
+
readonly canHaveChildren: true;
|
|
1651
|
+
};
|
|
1652
|
+
readonly 'accordion-item': {
|
|
1653
|
+
readonly description: "Mantine Accordion.Item";
|
|
1654
|
+
readonly category: "composite";
|
|
1655
|
+
readonly frontendOnly: true;
|
|
1656
|
+
readonly canHaveChildren: true;
|
|
1657
|
+
};
|
|
1658
|
+
readonly tabs: {
|
|
1659
|
+
readonly description: "Mantine Tabs";
|
|
1660
|
+
readonly category: "composite";
|
|
1661
|
+
readonly frontendOnly: true;
|
|
1662
|
+
readonly canHaveChildren: true;
|
|
1663
|
+
};
|
|
1664
|
+
readonly tab: {
|
|
1665
|
+
readonly description: "Mantine Tabs.Tab + Tabs.Panel pair";
|
|
1666
|
+
readonly category: "composite";
|
|
1667
|
+
readonly frontendOnly: true;
|
|
1668
|
+
readonly canHaveChildren: true;
|
|
1669
|
+
};
|
|
1670
|
+
readonly timeline: {
|
|
1671
|
+
readonly description: "Mantine Timeline";
|
|
1672
|
+
readonly category: "composite";
|
|
1673
|
+
readonly frontendOnly: true;
|
|
1674
|
+
readonly canHaveChildren: true;
|
|
1675
|
+
};
|
|
1676
|
+
readonly list: {
|
|
1677
|
+
readonly description: "Mantine List";
|
|
1678
|
+
readonly category: "composite";
|
|
1679
|
+
readonly frontendOnly: true;
|
|
1680
|
+
readonly canHaveChildren: true;
|
|
1681
|
+
};
|
|
1682
|
+
readonly 'list-item': {
|
|
1683
|
+
readonly description: "Mantine List.Item";
|
|
1684
|
+
readonly category: "composite";
|
|
1685
|
+
readonly frontendOnly: true;
|
|
1686
|
+
readonly canHaveChildren: true;
|
|
1687
|
+
};
|
|
1688
|
+
readonly entryList: {
|
|
1689
|
+
readonly description: "Data-driven list of entries (form-log table)";
|
|
1690
|
+
readonly category: "composite";
|
|
1691
|
+
readonly frontendOnly: true;
|
|
1692
|
+
readonly canHaveChildren: true;
|
|
1693
|
+
};
|
|
1694
|
+
readonly entryRecord: {
|
|
1695
|
+
readonly description: "Single-record container";
|
|
1696
|
+
readonly category: "composite";
|
|
1697
|
+
readonly frontendOnly: true;
|
|
1698
|
+
readonly canHaveChildren: true;
|
|
1699
|
+
};
|
|
1700
|
+
readonly entryRecordDelete: {
|
|
1701
|
+
readonly description: "Inline delete confirmation for an entry";
|
|
1702
|
+
readonly category: "composite";
|
|
1703
|
+
readonly frontendOnly: true;
|
|
1704
|
+
readonly canHaveChildren: false;
|
|
1705
|
+
};
|
|
1706
|
+
readonly loop: {
|
|
1707
|
+
readonly description: "Loop / repeater over backend-provided rows";
|
|
1708
|
+
readonly category: "composite";
|
|
1709
|
+
readonly frontendOnly: true;
|
|
1710
|
+
readonly canHaveChildren: true;
|
|
1711
|
+
};
|
|
1712
|
+
};
|
|
1713
|
+
type TStyleRegistryKey = keyof typeof STYLE_REGISTRY;
|
|
1714
|
+
/**
|
|
1715
|
+
* Compile-time guard: every key in the registry must be a valid TStyleName,
|
|
1716
|
+
* and every TStyleName must be a registry key.
|
|
1717
|
+
*/
|
|
1718
|
+
type _AssertRegistryMatchesStyleName = TStyleName extends TStyleRegistryKey ? TStyleRegistryKey extends TStyleName ? true : never : never;
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Helper for renderers: produces a typed map shape that requires every
|
|
1722
|
+
* registry key to be implemented. Pass this to your dispatcher and let
|
|
1723
|
+
* TypeScript enforce 100% style coverage.
|
|
1724
|
+
*
|
|
1725
|
+
* type IStyleImpls = TStyleImplMap<React.FC<{ style: TStyle }>>;
|
|
1726
|
+
*
|
|
1727
|
+
* `keyof TStyleImplMap<...>` is exactly the union of style names.
|
|
1728
|
+
*/
|
|
1729
|
+
type TStyleImplMap<TImpl> = {
|
|
1730
|
+
readonly [K in TStyleName]: TImpl;
|
|
1731
|
+
};
|
|
1732
|
+
/**
|
|
1733
|
+
* Get an entry from the registry safely. Returns undefined if the
|
|
1734
|
+
* style_name isn't registered (the renderer should fall back to
|
|
1735
|
+
* UnknownStyle).
|
|
1736
|
+
*/
|
|
1737
|
+
declare function getRegistryEntry(name: string): (typeof STYLE_REGISTRY)[TStyleName] | undefined;
|
|
1738
|
+
/**
|
|
1739
|
+
* Type guard to narrow a string to TStyleName.
|
|
1740
|
+
*/
|
|
1741
|
+
declare function isKnownStyleName(name: string): name is TStyleName;
|
|
1742
|
+
|
|
1743
|
+
export { type INumberInputStyle as $, type IEntryListStyle as A, type IEntryRecordDeleteStyle as B, type IEntryRecordStyle as C, type IFieldsetStyle as D, type IFigureStyle as E, type IFileInputStyle as F, type IFlexStyle as G, type IFormLogStyle as H, type IContentField as I, type IFormRecordStyle as J, type IFormStyle as K, type IGridColumnStyle as L, type IGridStyle as M, type IGroupStyle as N, type IHighlightStyle as O, type IHtmlTagStyle as P, type IImageStyle as Q, type IIndicatorStyle as R, type IInputStyle as S, type TStyleName as T, type IKbdStyle as U, type ILinkStyle as V, type IListItemStyle as W, type IListStyle as X, type ILoginStyle as Y, type ILoopStyle as Z, type INotificationStyle as _, type IAccordionItemStyle as a, type TMantineTextFontWeight as a$, type IPaperStyle as a0, type IProfileStyle as a1, type IProgressRootStyle as a2, type IProgressSectionStyle as a3, type IProgressStyle as a4, type IRadioStyle as a5, type IRangeSliderStyle as a6, type IRatingStyle as a7, type IRegisterStyle as a8, type IResetPasswordStyle as a9, type TMantineAccordionChevronPosition as aA, type TMantineAccordionDisableChevronRotation as aB, type TMantineAccordionLoop as aC, type TMantineAccordionMultiple as aD, type TMantineBorder as aE, type TMantineCardShadow as aF, type TMantineCheckboxLabelPosition as aG, type TMantineCols as aH, type TMantineDividerVariant as aI, type TMantineGap as aJ, type TMantineGridOffset as aK, type TMantineGridOrder as aL, type TMantineHeight as aM, type TMantineIconSize as aN, type TMantineImageFit as aO, type TMantineLineClamp as aP, type TMantineListCenter as aQ, type TMantineListStyleType as aR, type TMantineListType as aS, type TMantineListWithPadding as aT, type TMantinePaperShadow as aU, type TMantineProgressTransition as aV, type TMantineScrollAreaSize as aW, type TMantineScrollAreaType as aX, type TMantineTextAlign as aY, type TMantineTextDecoration as aZ, type TMantineTextFontStyle as a_, type IRichTextEditorStyle as aa, type IScrollAreaStyle as ab, type ISegmentedControlStyle as ac, type ISelectStyle as ad, type ISimpleGridStyle as ae, type ISliderStyle as af, type ISpaceStyle as ag, type ISpoilerStyle as ah, type IStackStyle as ai, type IStyleRegistryEntry as aj, type IStyleWithSpacing as ak, type ISwitchStyle as al, type ITabStyle as am, type ITabsStyle as an, type ITextInputStyle as ao, type ITextStyle as ap, type ITextareaStyle as aq, type IThemeIconStyle as ar, type ITimelineStyle as as, type ITitleStyle as at, type ITwoFactorAuthStyle as au, type ITypographyStyle as av, type IUnknownStyle as aw, type IValidateStyle as ax, type IVideoStyle as ay, STYLE_REGISTRY as az, type IAccordionStyle as b, type TMantineTextInherit as b0, type TMantineTextInputVariant as b1, type TMantineTextSpan as b2, type TMantineTextTransform as b3, type TMantineTextTruncate as b4, type TMantineTextVariant as b5, type TMantineTextareaAutosize as b6, type TMantineTextareaResize as b7, type TMantineTextareaVariant as b8, type TMantineTimelineAlign as b9, type TMantineTitleLineClamp as ba, type TMantineTitleTextWrap as bb, type TMantineTranslatable as bc, type TMantineUseInputWrapper as bd, type TMantineWidth as be, type TStyle as bf, type TStyleImplMap as bg, type TStyleRegistryKey as bh, type _AssertRegistryMatchesStyleName as bi, getRegistryEntry as bj, isKnownStyleName as bk, type IActionIconStyle as c, type IAlertStyle as d, type IAspectRatioStyle as e, type IAudioStyle as f, type IAvatarStyle as g, type IBackgroundImageStyle as h, type IBadgeStyle as i, type IBaseStyle as j, type IBlockquoteStyle as k, type IBoxStyle as l, type IButtonStyle as m, type ICardSegmentStyle as n, type ICardStyle as o, type ICarouselStyle as p, type ICenterStyle as q, type ICheckboxStyle as r, type IChipStyle as s, type ICodeStyle as t, type IColorInputStyle as u, type IColorPickerStyle as v, type IComboboxStyle as w, type IContainerStyle as x, type IDatePickerStyle as y, type IDividerStyle as z };
|