@selfhelp/shared 1.14.17 → 1.14.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +136 -0
- package/dist/{common-DMm4kymA.d.mts → common-udJ0O8qC.d.mts} +1 -1
- package/dist/{common-DMm4kymA.d.ts → common-udJ0O8qC.d.ts} +1 -1
- package/dist/index.d.mts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +1 -1
- package/dist/plugin-sdk/index.mjs +1 -1
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +1 -1
- package/dist/registry/index.mjs +1 -1
- package/dist/{styles.registry-D6u2lOw8.d.ts → styles.registry-CZZwODJY.d.mts} +216 -178
- package/dist/{styles.registry-DPNHAOM1.d.mts → styles.registry-DQKcvIBZ.d.ts} +216 -178
- package/dist/theme/index.d.mts +20 -20
- package/dist/theme/index.d.ts +20 -20
- package/dist/theme/index.js +5 -5
- package/dist/theme/index.mjs +5 -5
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/registry/styles.registry.ts +1 -1
- package/src/theme/__tests__/semantic.test.ts +19 -19
- package/src/theme/mantineVariant.ts +1 -1
- package/src/theme/semantic.ts +24 -24
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +1 -1
- package/src/types/__tests__/mobile-adapters.test.ts +1 -1
- package/src/types/mantine/common.ts +1 -1
- package/src/types/mobile-adapters.ts +30 -4
- package/src/types/styles/auth.ts +13 -9
- package/src/types/styles/base.ts +2 -2
- package/src/types/styles/composite.ts +7 -7
- package/src/types/styles/error.ts +9 -9
- package/src/types/styles/forms.ts +99 -59
- package/src/types/styles/interactive.ts +42 -32
- package/src/types/styles/layout.ts +42 -42
- package/src/types/styles/media.ts +6 -6
- package/src/types/styles/typography.ts +13 -13
- package/src/utils/spacing.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TMantineColor, a as TMantineRadius, b as TSharedSize, c as TMantineJustify, d as TMantineAlign, e as TMantineDirection, f as TMantineWrap, g as TMantineGridOverflow, h as TMantineGridSpan, i as TMantineGridGrow, j as TMantineOrientation, k as TSharedRadius, l as TMantineTitleOrder, m as TMantineSize, n as TMantineFieldsetVariant, o as TMantineSpoilerMaxHeight, p as TMantineVariant, q as TMantineBadgeVariant, r as TMantineAvatarVariant, s as TMantineChipVariant, t as TMantineIndicatorPosition, u as TMantineThemeIconVariant, v as TMantineAccordionVariant, w as TMantineTabsVariant, x as TMantineTimelineLineVariant, y as TMantineSpacing } from './common-
|
|
1
|
+
import { T as TMantineColor, a as TMantineRadius, b as TSharedSize, c as TMantineJustify, d as TMantineAlign, e as TMantineDirection, f as TMantineWrap, g as TMantineGridOverflow, h as TMantineGridSpan, i as TMantineGridGrow, j as TMantineOrientation, k as TSharedRadius, l as TMantineTitleOrder, m as TMantineSize, n as TMantineFieldsetVariant, o as TMantineSpoilerMaxHeight, p as TMantineVariant, q as TMantineBadgeVariant, r as TMantineAvatarVariant, s as TMantineChipVariant, t as TMantineIndicatorPosition, u as TMantineThemeIconVariant, v as TMantineAccordionVariant, w as TMantineTabsVariant, x as TMantineTimelineLineVariant, y as TMantineSpacing } from './common-udJ0O8qC.js';
|
|
2
2
|
|
|
3
3
|
interface ILoginStyle extends IStyleWithSpacing {
|
|
4
4
|
style_name: 'login';
|
|
@@ -11,7 +11,7 @@ interface ILoginStyle extends IStyleWithSpacing {
|
|
|
11
11
|
/** Optional subtitle under the title; hidden when empty. */
|
|
12
12
|
subtitle?: IContentField<string>;
|
|
13
13
|
/** Submit-button colour (cross-platform, via the shared mapper). */
|
|
14
|
-
|
|
14
|
+
color?: IContentField<TMantineColor>;
|
|
15
15
|
/** Label of the link that opens the registration page. */
|
|
16
16
|
label_register?: IContentField<string>;
|
|
17
17
|
}
|
|
@@ -43,6 +43,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
43
43
|
subtitle?: IContentField<string>;
|
|
44
44
|
alert_success?: IContentField<string>;
|
|
45
45
|
label_name?: IContentField<string>;
|
|
46
|
+
/** Label for the timezone select (anonymous-user activation form). */
|
|
47
|
+
label_timezone?: IContentField<string>;
|
|
46
48
|
name_placeholder?: IContentField<string>;
|
|
47
49
|
name_description?: IContentField<string>;
|
|
48
50
|
label_activate?: IContentField<string>;
|
|
@@ -54,16 +56,16 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
54
56
|
label_save?: IContentField<string>;
|
|
55
57
|
label_update?: IContentField<string>;
|
|
56
58
|
label_cancel?: IContentField<string>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
buttons_size?: IContentField<string>;
|
|
60
|
+
buttons_radius?: IContentField<string>;
|
|
61
|
+
buttons_variant?: IContentField<string>;
|
|
62
|
+
buttons_position?: IContentField<string>;
|
|
63
|
+
buttons_order?: IContentField<string>;
|
|
64
|
+
btn_save_color?: IContentField<string>;
|
|
65
|
+
btn_cancel_color?: IContentField<string>;
|
|
64
66
|
web_card_shadow?: IContentField<string>;
|
|
65
67
|
web_card_padding?: IContentField<string>;
|
|
66
|
-
|
|
68
|
+
radius?: IContentField<TMantineRadius>;
|
|
67
69
|
web_border?: IContentField<string>;
|
|
68
70
|
/** Activation lifecycle status text (shown after the registration email). */
|
|
69
71
|
loading_title?: IContentField<string>;
|
|
@@ -77,6 +79,8 @@ interface IValidateStyle extends IStyleWithSpacing {
|
|
|
77
79
|
}
|
|
78
80
|
interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
79
81
|
style_name: 'reset-password';
|
|
82
|
+
/** Submit/link-button colour (cross-platform, via the shared mapper). */
|
|
83
|
+
color?: IContentField<TMantineColor>;
|
|
80
84
|
label_pw_reset?: IContentField<string>;
|
|
81
85
|
alert_success?: IContentField<string>;
|
|
82
86
|
placeholder?: IContentField<string>;
|
|
@@ -196,7 +200,7 @@ type TMantineScrollAreaSize = string;
|
|
|
196
200
|
type TMantineScrollAreaType = 'hover' | 'always' | 'auto' | 'never' | 'scroll';
|
|
197
201
|
interface IContainerStyle extends IStyleWithSpacing {
|
|
198
202
|
style_name: 'container';
|
|
199
|
-
|
|
203
|
+
size?: IContentField<TSharedSize>;
|
|
200
204
|
web_fluid?: IContentField<string>;
|
|
201
205
|
}
|
|
202
206
|
interface IBoxStyle extends IStyleWithSpacing {
|
|
@@ -205,19 +209,19 @@ interface IBoxStyle extends IStyleWithSpacing {
|
|
|
205
209
|
}
|
|
206
210
|
interface IFlexStyle extends IStyleWithSpacing {
|
|
207
211
|
style_name: 'flex';
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
gap?: IContentField<TMantineGap>;
|
|
213
|
+
justify?: IContentField<TMantineJustify>;
|
|
214
|
+
align?: IContentField<TMantineAlign>;
|
|
215
|
+
direction?: IContentField<TMantineDirection>;
|
|
216
|
+
wrap?: IContentField<TMantineWrap>;
|
|
213
217
|
shared_width?: IContentField<TSharedDimension>;
|
|
214
218
|
shared_height?: IContentField<TSharedDimension>;
|
|
215
219
|
}
|
|
216
220
|
interface IGroupStyle extends IStyleWithSpacing {
|
|
217
221
|
style_name: 'group';
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
gap?: IContentField<TMantineGap>;
|
|
223
|
+
justify?: IContentField<TMantineJustify>;
|
|
224
|
+
align?: IContentField<TMantineAlign>;
|
|
221
225
|
shared_width?: IContentField<TSharedDimension>;
|
|
222
226
|
shared_height?: IContentField<TSharedDimension>;
|
|
223
227
|
web_group_wrap?: IContentField<'0' | '1'>;
|
|
@@ -225,17 +229,17 @@ interface IGroupStyle extends IStyleWithSpacing {
|
|
|
225
229
|
}
|
|
226
230
|
interface IStackStyle extends IStyleWithSpacing {
|
|
227
231
|
style_name: 'stack';
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
232
|
+
gap?: IContentField<TMantineGap>;
|
|
233
|
+
justify?: IContentField<TMantineJustify>;
|
|
234
|
+
align?: IContentField<TMantineAlign>;
|
|
231
235
|
shared_width?: IContentField<TSharedDimension>;
|
|
232
236
|
shared_height?: IContentField<TSharedDimension>;
|
|
233
237
|
}
|
|
234
238
|
interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
235
239
|
style_name: 'simple-grid';
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
cols?: IContentField<TSharedCols>;
|
|
241
|
+
gap?: IContentField<TMantineGap>;
|
|
242
|
+
vertical_spacing?: IContentField<TMantineGap>;
|
|
239
243
|
shared_width?: IContentField<TSharedDimension>;
|
|
240
244
|
shared_height?: IContentField<TSharedDimension>;
|
|
241
245
|
web_cols_sm?: IContentField<TSharedCols>;
|
|
@@ -244,53 +248,53 @@ interface ISimpleGridStyle extends IStyleWithSpacing {
|
|
|
244
248
|
}
|
|
245
249
|
interface IGridStyle extends IStyleWithSpacing {
|
|
246
250
|
style_name: 'grid';
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
cols?: IContentField<TSharedCols>;
|
|
252
|
+
gap?: IContentField<TMantineGap>;
|
|
253
|
+
justify?: IContentField<TMantineJustify>;
|
|
254
|
+
align?: IContentField<TMantineAlign>;
|
|
251
255
|
shared_width?: IContentField<TSharedDimension>;
|
|
252
256
|
shared_height?: IContentField<TSharedDimension>;
|
|
253
257
|
web_grid_overflow?: IContentField<TMantineGridOverflow>;
|
|
254
258
|
}
|
|
255
259
|
interface IGridColumnStyle extends IStyleWithSpacing {
|
|
256
260
|
style_name: 'grid-column';
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
+
grid_span?: IContentField<TMantineGridSpan>;
|
|
262
|
+
grid_offset?: IContentField<TMantineGridOffset>;
|
|
263
|
+
grid_order?: IContentField<TMantineGridOrder>;
|
|
264
|
+
grid_grow?: IContentField<TMantineGridGrow>;
|
|
261
265
|
shared_width?: IContentField<TSharedDimension>;
|
|
262
266
|
shared_height?: IContentField<TSharedDimension>;
|
|
263
267
|
}
|
|
264
268
|
interface ISpaceStyle extends IStyleWithSpacing {
|
|
265
269
|
style_name: 'space';
|
|
266
|
-
|
|
267
|
-
|
|
270
|
+
size?: IContentField<TSharedSize>;
|
|
271
|
+
orientation?: IContentField<TMantineOrientation>;
|
|
268
272
|
}
|
|
269
273
|
interface IDividerStyle extends IStyleWithSpacing {
|
|
270
274
|
style_name: 'divider';
|
|
271
|
-
|
|
272
|
-
|
|
275
|
+
divider_variant?: IContentField<TSharedDividerVariant>;
|
|
276
|
+
size?: IContentField<TSharedSize>;
|
|
273
277
|
divider_label?: IContentField<string>;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
278
|
+
divider_label_position?: IContentField<TSharedDividerLabelPosition>;
|
|
279
|
+
orientation?: IContentField<TMantineOrientation>;
|
|
280
|
+
color?: IContentField<TMantineColor>;
|
|
277
281
|
}
|
|
278
282
|
interface IPaperStyle extends IStyleWithSpacing {
|
|
279
283
|
style_name: 'paper';
|
|
280
284
|
title?: IContentField<string>;
|
|
281
285
|
web_paper_shadow?: IContentField<TMantinePaperShadow>;
|
|
282
|
-
|
|
283
|
-
|
|
286
|
+
radius?: IContentField<TSharedRadius>;
|
|
287
|
+
border?: IContentField<TSharedBorder>;
|
|
284
288
|
}
|
|
285
289
|
interface ICenterStyle extends IStyleWithSpacing {
|
|
286
290
|
style_name: 'center';
|
|
287
291
|
web_center_inline?: IContentField<string>;
|
|
288
292
|
shared_width?: IContentField<TSharedDimension>;
|
|
289
293
|
shared_height?: IContentField<TSharedDimension>;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
miw?: IContentField<TSharedDimension>;
|
|
295
|
+
mih?: IContentField<TSharedDimension>;
|
|
296
|
+
maw?: IContentField<TSharedDimension>;
|
|
297
|
+
mah?: IContentField<TSharedDimension>;
|
|
294
298
|
}
|
|
295
299
|
interface IScrollAreaStyle extends IStyleWithSpacing {
|
|
296
300
|
style_name: 'scroll-area';
|
|
@@ -304,13 +308,13 @@ interface ICardStyle extends IStyleWithSpacing {
|
|
|
304
308
|
style_name: 'card';
|
|
305
309
|
title?: IContentField<string>;
|
|
306
310
|
img_src?: IContentField<string>;
|
|
307
|
-
|
|
311
|
+
border?: IContentField<TSharedBorder>;
|
|
308
312
|
web_card_shadow?: IContentField<TMantineCardShadow>;
|
|
309
|
-
|
|
313
|
+
radius?: IContentField<TSharedRadius>;
|
|
310
314
|
}
|
|
311
315
|
interface ICardSegmentStyle extends IStyleWithSpacing {
|
|
312
316
|
style_name: 'card-segment';
|
|
313
|
-
|
|
317
|
+
border?: IContentField<TSharedBorder>;
|
|
314
318
|
web_segment_inherit_padding?: IContentField<'0' | '1'>;
|
|
315
319
|
}
|
|
316
320
|
interface IAspectRatioStyle extends IBaseStyle {
|
|
@@ -320,7 +324,7 @@ interface IAspectRatioStyle extends IBaseStyle {
|
|
|
320
324
|
interface IBackgroundImageStyle extends IStyleWithSpacing {
|
|
321
325
|
style_name: 'background-image';
|
|
322
326
|
img_src?: IContentField<string>;
|
|
323
|
-
|
|
327
|
+
radius?: IContentField<TSharedRadius>;
|
|
324
328
|
}
|
|
325
329
|
/**
|
|
326
330
|
* Renders content referenced from another section. Has no own fields; the
|
|
@@ -356,21 +360,21 @@ interface ITitleStyle extends IStyleWithSpacing {
|
|
|
356
360
|
style_name: 'title';
|
|
357
361
|
content?: IContentField<string>;
|
|
358
362
|
title_order?: IContentField<TMantineTitleOrder>;
|
|
359
|
-
|
|
360
|
-
|
|
363
|
+
size?: IContentField<TMantineSize>;
|
|
364
|
+
color?: IContentField<TMantineColor>;
|
|
361
365
|
web_title_text_wrap?: IContentField<TMantineTitleTextWrap>;
|
|
362
|
-
|
|
366
|
+
line_clamp?: IContentField<TMantineTitleLineClamp>;
|
|
363
367
|
}
|
|
364
368
|
interface ITextStyle extends IStyleWithSpacing {
|
|
365
369
|
style_name: 'text';
|
|
366
370
|
text?: IContentField<string>;
|
|
367
|
-
|
|
368
|
-
|
|
371
|
+
size?: IContentField<TMantineSize>;
|
|
372
|
+
color?: IContentField<TMantineColor>;
|
|
369
373
|
web_text_font_weight?: IContentField<TMantineTextFontWeight>;
|
|
370
374
|
web_text_font_style?: IContentField<TMantineTextFontStyle>;
|
|
371
375
|
web_text_text_decoration?: IContentField<TMantineTextDecoration>;
|
|
372
376
|
web_text_text_transform?: IContentField<TMantineTextTransform>;
|
|
373
|
-
|
|
377
|
+
text_align?: IContentField<TMantineTextAlign>;
|
|
374
378
|
web_text_variant?: IContentField<TMantineTextVariant>;
|
|
375
379
|
web_text_gradient?: IContentField<string>;
|
|
376
380
|
web_text_truncate?: IContentField<TMantineTextTruncate>;
|
|
@@ -381,15 +385,15 @@ interface ITextStyle extends IStyleWithSpacing {
|
|
|
381
385
|
interface ICodeStyle extends IStyleWithSpacing {
|
|
382
386
|
style_name: 'code';
|
|
383
387
|
code_block?: IContentField<string>;
|
|
384
|
-
|
|
385
|
-
|
|
388
|
+
color?: IContentField<TMantineColor>;
|
|
389
|
+
radius?: IContentField<TSharedRadius>;
|
|
386
390
|
content?: IContentField<string>;
|
|
387
391
|
}
|
|
388
392
|
interface IHighlightStyle extends IStyleWithSpacing {
|
|
389
393
|
style_name: 'highlight';
|
|
390
394
|
text?: IContentField<string>;
|
|
391
395
|
highlight_highlight?: IContentField<string>;
|
|
392
|
-
|
|
396
|
+
color?: IContentField<TMantineColor>;
|
|
393
397
|
}
|
|
394
398
|
interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
395
399
|
style_name: 'blockquote';
|
|
@@ -398,7 +402,7 @@ interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
|
398
402
|
cite?: IContentField<string>;
|
|
399
403
|
web_left_icon?: IContentField<string>;
|
|
400
404
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
401
|
-
|
|
405
|
+
color?: IContentField<TMantineColor>;
|
|
402
406
|
}
|
|
403
407
|
interface IHtmlTagStyle extends IBaseStyle {
|
|
404
408
|
style_name: 'html-tag';
|
|
@@ -408,7 +412,7 @@ interface IHtmlTagStyle extends IBaseStyle {
|
|
|
408
412
|
interface IKbdStyle extends IStyleWithSpacing {
|
|
409
413
|
style_name: 'kbd';
|
|
410
414
|
label?: IContentField<string>;
|
|
411
|
-
|
|
415
|
+
size?: IContentField<TMantineSize>;
|
|
412
416
|
}
|
|
413
417
|
interface ITypographyStyle extends IStyleWithSpacing {
|
|
414
418
|
style_name: 'typography';
|
|
@@ -418,7 +422,7 @@ interface IFieldsetStyle extends IStyleWithSpacing {
|
|
|
418
422
|
label?: IContentField<string>;
|
|
419
423
|
legend?: IContentField<string>;
|
|
420
424
|
web_fieldset_variant?: IContentField<TMantineFieldsetVariant>;
|
|
421
|
-
|
|
425
|
+
radius?: IContentField<TMantineRadius>;
|
|
422
426
|
disabled?: IContentField<string>;
|
|
423
427
|
}
|
|
424
428
|
interface ISpoilerStyle extends IStyleWithSpacing {
|
|
@@ -427,7 +431,7 @@ interface ISpoilerStyle extends IStyleWithSpacing {
|
|
|
427
431
|
spoiler_show_label?: IContentField<string>;
|
|
428
432
|
spoiler_hide_label?: IContentField<string>;
|
|
429
433
|
/** Color of the show/hide control link. */
|
|
430
|
-
|
|
434
|
+
color?: IContentField<TMantineColor>;
|
|
431
435
|
}
|
|
432
436
|
|
|
433
437
|
type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
@@ -437,12 +441,10 @@ interface IImageStyle extends IStyleWithSpacing {
|
|
|
437
441
|
is_fluid?: IContentField<string>;
|
|
438
442
|
alt?: IContentField<string>;
|
|
439
443
|
img_src?: IContentField<string>;
|
|
440
|
-
height?: IContentField<string>;
|
|
441
|
-
width?: IContentField<string>;
|
|
442
444
|
web_image_fit?: IContentField<TMantineImageFit>;
|
|
443
445
|
web_width?: IContentField<TMantineWidth>;
|
|
444
446
|
web_height?: IContentField<TMantineHeight>;
|
|
445
|
-
|
|
447
|
+
radius?: IContentField<TMantineRadius>;
|
|
446
448
|
/** Image shown when the main source fails to load (Mantine Image fallbackSrc). */
|
|
447
449
|
fallback_src?: IContentField<string>;
|
|
448
450
|
}
|
|
@@ -486,7 +488,7 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
486
488
|
web_height?: IContentField<string>;
|
|
487
489
|
web_carousel_slide_size?: IContentField<string>;
|
|
488
490
|
web_carousel_slide_gap?: IContentField<string>;
|
|
489
|
-
|
|
491
|
+
orientation?: IContentField<string>;
|
|
490
492
|
web_control_size?: IContentField<string>;
|
|
491
493
|
web_carousel_controls_offset?: IContentField<string>;
|
|
492
494
|
web_carousel_next_control_icon?: IContentField<string>;
|
|
@@ -503,15 +505,20 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
503
505
|
|
|
504
506
|
/** Mantine `Anchor` `underline` behaviour. */
|
|
505
507
|
type TMantineAnchorUnderline = 'always' | 'hover' | 'never';
|
|
508
|
+
/**
|
|
509
|
+
* Mobile-only HeroUI Native Button press feedback (no web equivalent). The web
|
|
510
|
+
* renderer ignores `mobile_*`; only the mobile button renderer reads it.
|
|
511
|
+
*/
|
|
512
|
+
type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale' | 'none';
|
|
506
513
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
507
514
|
style_name: 'button';
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
515
|
+
variant?: IContentField<TMantineVariant>;
|
|
516
|
+
color?: IContentField<TMantineColor>;
|
|
517
|
+
size?: IContentField<TSharedSize>;
|
|
518
|
+
radius?: IContentField<TSharedRadius>;
|
|
512
519
|
web_left_icon?: IContentField<string>;
|
|
513
520
|
web_right_icon?: IContentField<string>;
|
|
514
|
-
|
|
521
|
+
full_width?: IContentField<string>;
|
|
515
522
|
web_compact?: IContentField<string>;
|
|
516
523
|
web_auto_contrast?: IContentField<string>;
|
|
517
524
|
is_link?: IContentField<string>;
|
|
@@ -524,13 +531,14 @@ interface IButtonStyle extends IStyleWithSpacing {
|
|
|
524
531
|
confirmation_title?: IContentField<string>;
|
|
525
532
|
confirmation_continue?: IContentField<string>;
|
|
526
533
|
confirmation_message?: IContentField<string>;
|
|
534
|
+
mobile_button_feedback?: IContentField<TMobileButtonFeedback>;
|
|
527
535
|
}
|
|
528
536
|
interface ILinkStyle extends IStyleWithSpacing {
|
|
529
537
|
style_name: 'link';
|
|
530
538
|
label?: IContentField<string>;
|
|
531
539
|
url?: IContentField<string>;
|
|
532
540
|
open_in_new_tab?: IContentField<string>;
|
|
533
|
-
|
|
541
|
+
color?: IContentField<TMantineColor>;
|
|
534
542
|
web_link_underline?: IContentField<TMantineAnchorUnderline>;
|
|
535
543
|
web_left_icon?: IContentField<string>;
|
|
536
544
|
web_right_icon?: IContentField<string>;
|
|
@@ -539,9 +547,9 @@ interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
539
547
|
style_name: 'action-icon';
|
|
540
548
|
web_variant?: IContentField<TMantineVariant>;
|
|
541
549
|
web_action_icon_loading?: IContentField<string>;
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
550
|
+
size?: IContentField<TSharedSize>;
|
|
551
|
+
radius?: IContentField<TSharedRadius>;
|
|
552
|
+
color?: IContentField<TMantineColor>;
|
|
545
553
|
web_left_icon?: IContentField<string>;
|
|
546
554
|
is_link?: IContentField<string>;
|
|
547
555
|
page_keyword?: IContentField<string>;
|
|
@@ -554,8 +562,8 @@ interface IAlertStyle extends IStyleWithSpacing {
|
|
|
554
562
|
style_name: 'alert';
|
|
555
563
|
alert_title?: IContentField<string>;
|
|
556
564
|
web_variant?: IContentField<TMantineVariant>;
|
|
557
|
-
|
|
558
|
-
|
|
565
|
+
color?: IContentField<TMantineColor>;
|
|
566
|
+
radius?: IContentField<TSharedRadius>;
|
|
559
567
|
web_left_icon?: IContentField<string>;
|
|
560
568
|
/** Cross-platform dismiss toggle (was the web-only `web_with_close_button`). */
|
|
561
569
|
closable?: IContentField<string>;
|
|
@@ -565,15 +573,15 @@ interface IBadgeStyle extends IStyleWithSpacing {
|
|
|
565
573
|
style_name: 'badge';
|
|
566
574
|
label?: IContentField<string>;
|
|
567
575
|
/** Cross-platform variant (web Mantine + mobile HeroUI). Primary control. */
|
|
568
|
-
|
|
569
|
-
/** Web-only variant override (e.g. `dot`); empty falls back to
|
|
576
|
+
variant?: IContentField<TMantineBadgeVariant>;
|
|
577
|
+
/** Web-only variant override (e.g. `dot`); empty falls back to variant. */
|
|
570
578
|
web_variant?: IContentField<TMantineBadgeVariant>;
|
|
571
579
|
/** Render as a circle (equal width/height) for short counts. */
|
|
572
580
|
circle?: IContentField<string>;
|
|
573
|
-
|
|
581
|
+
size?: IContentField<TSharedSize>;
|
|
574
582
|
web_left_icon?: IContentField<string>;
|
|
575
|
-
|
|
576
|
-
|
|
583
|
+
radius?: IContentField<TSharedRadius>;
|
|
584
|
+
color?: IContentField<TMantineColor>;
|
|
577
585
|
web_right_icon?: IContentField<string>;
|
|
578
586
|
web_auto_contrast?: IContentField<string>;
|
|
579
587
|
}
|
|
@@ -583,9 +591,9 @@ interface IAvatarStyle extends IStyleWithSpacing {
|
|
|
583
591
|
/** Person name; seeds auto-initials + a stable auto colour when no image. */
|
|
584
592
|
name?: IContentField<string>;
|
|
585
593
|
web_variant?: IContentField<TMantineAvatarVariant>;
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
594
|
+
size?: IContentField<TSharedSize>;
|
|
595
|
+
radius?: IContentField<TSharedRadius>;
|
|
596
|
+
color?: IContentField<TMantineColor>;
|
|
589
597
|
web_left_icon?: IContentField<string>;
|
|
590
598
|
web_avatar_initials?: IContentField<string>;
|
|
591
599
|
img_src?: IContentField<string>;
|
|
@@ -593,10 +601,10 @@ interface IAvatarStyle extends IStyleWithSpacing {
|
|
|
593
601
|
interface IChipStyle extends IStyleWithSpacing {
|
|
594
602
|
style_name: 'chip';
|
|
595
603
|
label?: IContentField<string>;
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
604
|
+
chip_variant?: IContentField<TMantineChipVariant>;
|
|
605
|
+
size?: IContentField<TSharedSize>;
|
|
606
|
+
radius?: IContentField<TSharedRadius>;
|
|
607
|
+
color?: IContentField<TMantineColor>;
|
|
600
608
|
web_chip_checked?: IContentField<string>;
|
|
601
609
|
web_chip_multiple?: IContentField<string>;
|
|
602
610
|
disabled?: IContentField<string>;
|
|
@@ -623,27 +631,29 @@ interface IIndicatorStyle extends IBaseStyle {
|
|
|
623
631
|
web_indicator_inline?: IContentField<string>;
|
|
624
632
|
web_indicator_offset?: IContentField<string>;
|
|
625
633
|
web_border?: IContentField<string>;
|
|
626
|
-
|
|
627
|
-
|
|
634
|
+
radius?: IContentField<TSharedRadius>;
|
|
635
|
+
color?: IContentField<TMantineColor>;
|
|
628
636
|
}
|
|
629
637
|
interface IThemeIconStyle extends IStyleWithSpacing {
|
|
630
638
|
style_name: 'theme-icon';
|
|
631
639
|
web_variant?: IContentField<TMantineThemeIconVariant>;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
640
|
+
size?: IContentField<TSharedSize>;
|
|
641
|
+
radius?: IContentField<TSharedRadius>;
|
|
642
|
+
color?: IContentField<TMantineColor>;
|
|
635
643
|
web_left_icon?: IContentField<string>;
|
|
636
644
|
}
|
|
637
645
|
interface INotificationStyle extends IStyleWithSpacing {
|
|
638
646
|
style_name: 'notification';
|
|
639
647
|
title?: IContentField<string>;
|
|
640
648
|
content?: IContentField<string>;
|
|
641
|
-
|
|
642
|
-
|
|
649
|
+
/** Portable icon: honoured by both web (Mantine) and mobile renderers. */
|
|
650
|
+
shared_icon?: IContentField<string>;
|
|
651
|
+
color?: IContentField<TMantineColor>;
|
|
643
652
|
web_notification_loading?: IContentField<string>;
|
|
644
|
-
|
|
653
|
+
/** Portable dismiss toggle: both platforms show a close button when '1'. */
|
|
654
|
+
with_close_button?: IContentField<string>;
|
|
645
655
|
web_border?: IContentField<string>;
|
|
646
|
-
|
|
656
|
+
radius?: IContentField<TSharedRadius>;
|
|
647
657
|
}
|
|
648
658
|
|
|
649
659
|
type TMantineTextInputVariant = 'default' | 'filled' | 'unstyled';
|
|
@@ -654,22 +664,36 @@ type TMantineUseInputWrapper = '0' | '1';
|
|
|
654
664
|
type TMantineTranslatable = '0' | '1';
|
|
655
665
|
type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
656
666
|
type TSharedLabelPosition = 'left' | 'right';
|
|
667
|
+
type TMobileSelectPresentation = 'bottom-sheet' | 'dialog' | 'popover';
|
|
668
|
+
type TMobileFieldVariant = 'primary' | 'secondary';
|
|
657
669
|
interface IFormStyle extends IStyleWithSpacing {
|
|
658
670
|
style_name: 'form-log' | 'form-record';
|
|
671
|
+
/** Optional auto-styled heading rendered above the form when set. */
|
|
672
|
+
title?: IContentField<string>;
|
|
673
|
+
/** Optional sub-heading rendered below the title when set. */
|
|
674
|
+
description?: IContentField<string>;
|
|
659
675
|
btn_save_label?: IContentField<string>;
|
|
660
676
|
alert_success?: IContentField<string>;
|
|
677
|
+
/** Translatable heading of the success alert (default "Success"). */
|
|
678
|
+
alert_success_title?: IContentField<string>;
|
|
661
679
|
name?: IContentField<string>;
|
|
662
680
|
redirect_at_end?: IContentField<string>;
|
|
663
681
|
btn_cancel_url?: IContentField<string>;
|
|
664
682
|
btn_cancel_label?: IContentField<string>;
|
|
665
683
|
alert_error?: IContentField<string>;
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
684
|
+
/** Translatable heading of the error alert (default "Error"). */
|
|
685
|
+
alert_error_title?: IContentField<string>;
|
|
686
|
+
/** When '1', a confirmation dialog is shown before submit. */
|
|
687
|
+
confirm_submit?: IContentField<string>;
|
|
688
|
+
/** Message shown in the confirmation dialog before submit. */
|
|
689
|
+
confirm_message?: IContentField<string>;
|
|
690
|
+
buttons_size?: IContentField<string>;
|
|
691
|
+
buttons_radius?: IContentField<string>;
|
|
692
|
+
buttons_variant?: IContentField<string>;
|
|
693
|
+
buttons_position?: IContentField<string>;
|
|
694
|
+
buttons_order?: IContentField<string>;
|
|
695
|
+
btn_save_color?: IContentField<string>;
|
|
696
|
+
btn_cancel_color?: IContentField<string>;
|
|
673
697
|
}
|
|
674
698
|
interface IFormLogStyle extends IFormStyle {
|
|
675
699
|
style_name: 'form-log';
|
|
@@ -677,7 +701,7 @@ interface IFormLogStyle extends IFormStyle {
|
|
|
677
701
|
interface IFormRecordStyle extends IFormStyle {
|
|
678
702
|
style_name: 'form-record';
|
|
679
703
|
btn_update_label?: IContentField<string>;
|
|
680
|
-
|
|
704
|
+
btn_update_color?: IContentField<string>;
|
|
681
705
|
}
|
|
682
706
|
interface IInputStyle extends IBaseStyle {
|
|
683
707
|
style_name: 'input';
|
|
@@ -702,13 +726,14 @@ interface ITextInputStyle extends IStyleWithSpacing {
|
|
|
702
726
|
disabled?: IContentField<string>;
|
|
703
727
|
web_left_icon?: IContentField<string>;
|
|
704
728
|
web_right_icon?: IContentField<string>;
|
|
705
|
-
|
|
706
|
-
|
|
729
|
+
size?: IContentField<TSharedSize>;
|
|
730
|
+
radius?: IContentField<TSharedRadius>;
|
|
707
731
|
web_text_input_variant?: IContentField<TMantineTextInputVariant>;
|
|
708
|
-
|
|
732
|
+
max_length?: IContentField<string>;
|
|
709
733
|
mobile_keyboard_type?: IContentField<string>;
|
|
710
734
|
mobile_auto_capitalize?: IContentField<string>;
|
|
711
735
|
mobile_secure_entry?: IContentField<string>;
|
|
736
|
+
mobile_input_variant?: IContentField<TMobileFieldVariant>;
|
|
712
737
|
translatable?: IContentField<TMantineTranslatable>;
|
|
713
738
|
}
|
|
714
739
|
interface ITextareaStyle extends IStyleWithSpacing {
|
|
@@ -725,15 +750,16 @@ interface ITextareaStyle extends IStyleWithSpacing {
|
|
|
725
750
|
disabled?: IContentField<string>;
|
|
726
751
|
web_left_icon?: IContentField<string>;
|
|
727
752
|
web_right_icon?: IContentField<string>;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
753
|
+
autosize?: IContentField<TMantineTextareaAutosize>;
|
|
754
|
+
min_rows?: IContentField<string>;
|
|
755
|
+
max_rows?: IContentField<string>;
|
|
731
756
|
web_textarea_resize?: IContentField<TMantineTextareaResize>;
|
|
732
|
-
|
|
733
|
-
|
|
757
|
+
size?: IContentField<TSharedSize>;
|
|
758
|
+
radius?: IContentField<TSharedRadius>;
|
|
734
759
|
web_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
735
|
-
|
|
760
|
+
max_length?: IContentField<string>;
|
|
736
761
|
mobile_auto_capitalize?: IContentField<string>;
|
|
762
|
+
mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
|
|
737
763
|
translatable?: IContentField<TMantineTranslatable>;
|
|
738
764
|
}
|
|
739
765
|
interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
@@ -754,6 +780,7 @@ interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
754
780
|
}
|
|
755
781
|
interface ISelectStyle extends IBaseStyle {
|
|
756
782
|
style_name: 'select';
|
|
783
|
+
label?: IContentField<string>;
|
|
757
784
|
is_required?: IContentField<string>;
|
|
758
785
|
name?: IContentField<string>;
|
|
759
786
|
value?: IContentField<string>;
|
|
@@ -761,10 +788,11 @@ interface ISelectStyle extends IBaseStyle {
|
|
|
761
788
|
options?: IContentField<string>;
|
|
762
789
|
is_multiple?: IContentField<string>;
|
|
763
790
|
max?: IContentField<string>;
|
|
764
|
-
|
|
791
|
+
searchable?: IContentField<string>;
|
|
765
792
|
disabled?: IContentField<string>;
|
|
766
793
|
image_selector?: IContentField<string>;
|
|
767
|
-
|
|
794
|
+
clearable?: IContentField<string>;
|
|
795
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
768
796
|
}
|
|
769
797
|
interface IRadioStyle extends IStyleWithSpacing {
|
|
770
798
|
style_name: 'radio';
|
|
@@ -775,9 +803,9 @@ interface IRadioStyle extends IStyleWithSpacing {
|
|
|
775
803
|
is_required?: IContentField<string>;
|
|
776
804
|
items?: IContentField<unknown[]>;
|
|
777
805
|
is_inline?: IContentField<string>;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
806
|
+
orientation?: IContentField<string>;
|
|
807
|
+
size?: IContentField<TSharedSize>;
|
|
808
|
+
color?: IContentField<TMantineColor>;
|
|
781
809
|
radio_options?: IContentField<string>;
|
|
782
810
|
web_radio_label_position?: IContentField<string>;
|
|
783
811
|
web_radio_variant?: IContentField<string>;
|
|
@@ -795,13 +823,14 @@ interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
795
823
|
is_required?: IContentField<string>;
|
|
796
824
|
checkbox_value?: IContentField<string>;
|
|
797
825
|
web_checkbox_icon?: IContentField<string>;
|
|
798
|
-
|
|
826
|
+
label_position?: IContentField<TSharedLabelPosition>;
|
|
799
827
|
description?: IContentField<string>;
|
|
800
828
|
disabled?: IContentField<string>;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
829
|
+
size?: IContentField<TSharedSize>;
|
|
830
|
+
radius?: IContentField<TSharedRadius>;
|
|
831
|
+
color?: IContentField<TMantineColor>;
|
|
804
832
|
web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
833
|
+
mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
|
|
805
834
|
}
|
|
806
835
|
interface ISliderStyle extends IStyleWithSpacing {
|
|
807
836
|
style_name: 'slider';
|
|
@@ -812,9 +841,9 @@ interface ISliderStyle extends IStyleWithSpacing {
|
|
|
812
841
|
web_numeric_min?: IContentField<string>;
|
|
813
842
|
web_numeric_max?: IContentField<string>;
|
|
814
843
|
web_numeric_step?: IContentField<string>;
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
844
|
+
size?: IContentField<TSharedSize>;
|
|
845
|
+
color?: IContentField<TMantineColor>;
|
|
846
|
+
radius?: IContentField<TSharedRadius>;
|
|
818
847
|
disabled?: IContentField<string>;
|
|
819
848
|
slider_marks_values?: IContentField<string>;
|
|
820
849
|
web_slider_show_label?: IContentField<string>;
|
|
@@ -822,6 +851,7 @@ interface ISliderStyle extends IStyleWithSpacing {
|
|
|
822
851
|
web_slider_inverted?: IContentField<string>;
|
|
823
852
|
web_slider_thumb_size?: IContentField<string>;
|
|
824
853
|
web_slider_required?: IContentField<string>;
|
|
854
|
+
mobile_slider_show_value?: IContentField<string>;
|
|
825
855
|
}
|
|
826
856
|
interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
827
857
|
style_name: 'range-slider';
|
|
@@ -836,10 +866,11 @@ interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
836
866
|
web_range_slider_show_label?: IContentField<string>;
|
|
837
867
|
web_range_slider_labels_always_on?: IContentField<string>;
|
|
838
868
|
web_range_slider_inverted?: IContentField<string>;
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
869
|
+
size?: IContentField<TSharedSize>;
|
|
870
|
+
color?: IContentField<TMantineColor>;
|
|
871
|
+
radius?: IContentField<TSharedRadius>;
|
|
842
872
|
disabled?: IContentField<string>;
|
|
873
|
+
mobile_range_slider_show_value?: IContentField<string>;
|
|
843
874
|
}
|
|
844
875
|
interface IDatePickerStyle extends IStyleWithSpacing {
|
|
845
876
|
style_name: 'datepicker';
|
|
@@ -869,8 +900,8 @@ interface IDatePickerStyle extends IStyleWithSpacing {
|
|
|
869
900
|
web_datepicker_date_format?: IContentField<string>;
|
|
870
901
|
web_datepicker_time_grid_config?: IContentField<string>;
|
|
871
902
|
web_datepicker_with_seconds?: IContentField<string>;
|
|
872
|
-
|
|
873
|
-
|
|
903
|
+
size?: IContentField<TSharedSize>;
|
|
904
|
+
radius?: IContentField<TSharedRadius>;
|
|
874
905
|
}
|
|
875
906
|
interface ISwitchStyle extends IStyleWithSpacing {
|
|
876
907
|
style_name: 'switch';
|
|
@@ -878,9 +909,9 @@ interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
878
909
|
description?: IContentField<string>;
|
|
879
910
|
switch_on_label?: IContentField<string>;
|
|
880
911
|
switch_off_label?: IContentField<string>;
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
912
|
+
size?: IContentField<TSharedSize>;
|
|
913
|
+
color?: IContentField<TMantineColor>;
|
|
914
|
+
radius?: IContentField<TSharedRadius>;
|
|
884
915
|
disabled?: IContentField<string>;
|
|
885
916
|
name?: IContentField<string>;
|
|
886
917
|
is_required?: IContentField<string>;
|
|
@@ -908,6 +939,7 @@ interface IComboboxStyle extends IStyleWithSpacing {
|
|
|
908
939
|
web_combobox_clearable?: IContentField<string>;
|
|
909
940
|
web_combobox_separator?: IContentField<string>;
|
|
910
941
|
web_multi_select_max_values?: IContentField<string>;
|
|
942
|
+
mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
|
|
911
943
|
}
|
|
912
944
|
interface IColorInputStyle extends IStyleWithSpacing {
|
|
913
945
|
style_name: 'color-input';
|
|
@@ -917,8 +949,8 @@ interface IColorInputStyle extends IStyleWithSpacing {
|
|
|
917
949
|
web_color_input_with_eye_dropper?: IContentField<string>;
|
|
918
950
|
web_color_input_disallow_input?: IContentField<string>;
|
|
919
951
|
web_color_input_with_preview?: IContentField<string>;
|
|
920
|
-
|
|
921
|
-
|
|
952
|
+
size?: IContentField<TSharedSize>;
|
|
953
|
+
radius?: IContentField<TSharedRadius>;
|
|
922
954
|
placeholder?: IContentField<string>;
|
|
923
955
|
name?: IContentField<string>;
|
|
924
956
|
value?: IContentField<string>;
|
|
@@ -938,8 +970,8 @@ interface IColorPickerStyle extends IStyleWithSpacing {
|
|
|
938
970
|
color_picker_alpha_label?: IContentField<string>;
|
|
939
971
|
web_color_picker_as_button?: IContentField<string>;
|
|
940
972
|
web_color_picker_button_label?: IContentField<string>;
|
|
941
|
-
|
|
942
|
-
|
|
973
|
+
size?: IContentField<TSharedSize>;
|
|
974
|
+
full_width?: IContentField<string>;
|
|
943
975
|
name?: IContentField<string>;
|
|
944
976
|
value?: IContentField<string>;
|
|
945
977
|
description?: IContentField<string>;
|
|
@@ -953,8 +985,8 @@ interface IFileInputStyle extends IStyleWithSpacing {
|
|
|
953
985
|
web_file_input_max_size?: IContentField<string>;
|
|
954
986
|
web_file_input_max_files?: IContentField<string>;
|
|
955
987
|
web_file_input_drag_drop?: IContentField<string>;
|
|
956
|
-
|
|
957
|
-
|
|
988
|
+
size?: IContentField<TSharedSize>;
|
|
989
|
+
radius?: IContentField<TSharedRadius>;
|
|
958
990
|
web_left_icon?: IContentField<string>;
|
|
959
991
|
web_right_icon?: IContentField<string>;
|
|
960
992
|
placeholder?: IContentField<string>;
|
|
@@ -976,8 +1008,8 @@ interface INumberInputStyle extends IStyleWithSpacing {
|
|
|
976
1008
|
web_number_input_thousand_separator?: IContentField<string>;
|
|
977
1009
|
web_number_input_allow_negative?: IContentField<string>;
|
|
978
1010
|
web_number_input_hide_controls?: IContentField<string>;
|
|
979
|
-
|
|
980
|
-
|
|
1011
|
+
size?: IContentField<TSharedSize>;
|
|
1012
|
+
radius?: IContentField<TSharedRadius>;
|
|
981
1013
|
placeholder?: IContentField<string>;
|
|
982
1014
|
label?: IContentField<string>;
|
|
983
1015
|
description?: IContentField<string>;
|
|
@@ -989,10 +1021,10 @@ interface INumberInputStyle extends IStyleWithSpacing {
|
|
|
989
1021
|
interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
990
1022
|
style_name: 'segmented-control';
|
|
991
1023
|
segmented_control_data?: IContentField<string>;
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1024
|
+
orientation?: IContentField<string>;
|
|
1025
|
+
size?: IContentField<TSharedSize>;
|
|
1026
|
+
radius?: IContentField<TSharedRadius>;
|
|
1027
|
+
color?: IContentField<TMantineColor>;
|
|
996
1028
|
fullwidth?: IContentField<string>;
|
|
997
1029
|
disabled?: IContentField<string>;
|
|
998
1030
|
readonly?: IContentField<string>;
|
|
@@ -1017,29 +1049,29 @@ interface IRatingStyle extends IStyleWithSpacing {
|
|
|
1017
1049
|
web_rating_empty_icon?: IContentField<string>;
|
|
1018
1050
|
web_rating_full_icon?: IContentField<string>;
|
|
1019
1051
|
web_rating_highlight_selected_only?: IContentField<string>;
|
|
1020
|
-
|
|
1021
|
-
|
|
1052
|
+
size?: IContentField<TSharedSize>;
|
|
1053
|
+
color?: IContentField<TMantineColor>;
|
|
1022
1054
|
}
|
|
1023
1055
|
interface IProgressStyle extends IStyleWithSpacing {
|
|
1024
1056
|
style_name: 'progress';
|
|
1025
1057
|
value?: IContentField<string>;
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1058
|
+
color?: IContentField<TMantineColor>;
|
|
1059
|
+
radius?: IContentField<TSharedRadius>;
|
|
1060
|
+
size?: IContentField<TSharedSize>;
|
|
1029
1061
|
web_progress_striped?: IContentField<string>;
|
|
1030
1062
|
web_progress_animated?: IContentField<string>;
|
|
1031
1063
|
web_progress_transition_duration?: IContentField<TMantineProgressTransition>;
|
|
1032
1064
|
}
|
|
1033
1065
|
interface IProgressRootStyle extends IBaseStyle {
|
|
1034
1066
|
style_name: 'progress-root';
|
|
1035
|
-
|
|
1036
|
-
|
|
1067
|
+
size?: IContentField<TSharedSize>;
|
|
1068
|
+
radius?: IContentField<TSharedRadius>;
|
|
1037
1069
|
web_progress_auto_contrast?: IContentField<string>;
|
|
1038
1070
|
}
|
|
1039
1071
|
interface IProgressSectionStyle extends IBaseStyle {
|
|
1040
1072
|
style_name: 'progress-section';
|
|
1041
1073
|
value?: IContentField<string>;
|
|
1042
|
-
|
|
1074
|
+
color?: IContentField<TMantineColor>;
|
|
1043
1075
|
web_progress_striped?: IContentField<string>;
|
|
1044
1076
|
web_progress_animated?: IContentField<string>;
|
|
1045
1077
|
label?: IContentField<string>;
|
|
@@ -1054,6 +1086,12 @@ interface IShowUserInputEntry {
|
|
|
1054
1086
|
}
|
|
1055
1087
|
interface IShowUserInputStyle extends IBaseStyle {
|
|
1056
1088
|
style_name: 'show-user-input';
|
|
1089
|
+
/** Optional auto-styled heading rendered above the entries when set. */
|
|
1090
|
+
title?: IContentField<string>;
|
|
1091
|
+
/** Message shown when there are no entries to display (default "No entries found."). */
|
|
1092
|
+
empty_text?: IContentField<string>;
|
|
1093
|
+
/** Source data table the form entries are read from (backend data binding). */
|
|
1094
|
+
data_table?: IContentField<string>;
|
|
1057
1095
|
own_entries_only?: IContentField<string>;
|
|
1058
1096
|
show_timestamp?: IContentField<string>;
|
|
1059
1097
|
dt_sortable?: IContentField<string>;
|
|
@@ -1067,7 +1105,7 @@ interface IShowUserInputStyle extends IBaseStyle {
|
|
|
1067
1105
|
fields_map?: IContentField<string>;
|
|
1068
1106
|
delete_modal_title?: IContentField<string>;
|
|
1069
1107
|
delete_modal_body?: IContentField<string>;
|
|
1070
|
-
|
|
1108
|
+
spacing?: IContentField<string>;
|
|
1071
1109
|
web_table_striped?: IContentField<string>;
|
|
1072
1110
|
web_table_highlight_on_hover?: IContentField<string>;
|
|
1073
1111
|
web_table_with_table_border?: IContentField<string>;
|
|
@@ -1089,15 +1127,15 @@ type TMantineListWithPadding = '0' | '1';
|
|
|
1089
1127
|
type TMantineListCenter = '0' | '1';
|
|
1090
1128
|
interface IAccordionStyle extends IStyleWithSpacing {
|
|
1091
1129
|
style_name: 'accordion';
|
|
1092
|
-
|
|
1093
|
-
|
|
1130
|
+
accordion_variant?: IContentField<TMantineAccordionVariant>;
|
|
1131
|
+
multiple?: IContentField<TMantineAccordionMultiple>;
|
|
1094
1132
|
web_accordion_chevron_position?: IContentField<TMantineAccordionChevronPosition>;
|
|
1095
1133
|
web_accordion_chevron_size?: IContentField<string>;
|
|
1096
1134
|
web_accordion_disable_chevron_rotation?: IContentField<TMantineAccordionDisableChevronRotation>;
|
|
1097
1135
|
web_accordion_loop?: IContentField<TMantineAccordionLoop>;
|
|
1098
1136
|
web_accordion_transition_duration?: IContentField<string>;
|
|
1099
1137
|
web_accordion_default_value?: IContentField<string>;
|
|
1100
|
-
|
|
1138
|
+
radius?: IContentField<TSharedRadius>;
|
|
1101
1139
|
}
|
|
1102
1140
|
interface IAccordionItemStyle extends IStyleWithSpacing {
|
|
1103
1141
|
style_name: 'accordion-item';
|
|
@@ -1112,7 +1150,7 @@ interface ITabsStyle extends IStyleWithSpacing {
|
|
|
1112
1150
|
web_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
1113
1151
|
web_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
1114
1152
|
web_tabs_radius?: IContentField<TMantineRadius>;
|
|
1115
|
-
|
|
1153
|
+
color?: IContentField<TMantineColor>;
|
|
1116
1154
|
web_tabs_grow?: IContentField<string>;
|
|
1117
1155
|
web_tabs_justify?: IContentField<string>;
|
|
1118
1156
|
web_tabs_keep_mounted?: IContentField<string>;
|
|
@@ -1136,7 +1174,7 @@ interface ITimelineStyle extends IStyleWithSpacing {
|
|
|
1136
1174
|
web_timeline_active?: IContentField<string>;
|
|
1137
1175
|
web_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
1138
1176
|
web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
1139
|
-
|
|
1177
|
+
color?: IContentField<TMantineColor>;
|
|
1140
1178
|
}
|
|
1141
1179
|
/**
|
|
1142
1180
|
* A single entry inside a `timeline`. Child-only style; placement is enforced
|
|
@@ -1147,13 +1185,13 @@ interface ITimelineItemStyle extends IBaseStyle {
|
|
|
1147
1185
|
title?: IContentField<string>;
|
|
1148
1186
|
web_timeline_item_bullet?: IContentField<string>;
|
|
1149
1187
|
web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
1150
|
-
|
|
1188
|
+
color?: IContentField<TMantineColor>;
|
|
1151
1189
|
}
|
|
1152
1190
|
interface IListStyle extends IStyleWithSpacing {
|
|
1153
1191
|
style_name: 'list';
|
|
1154
1192
|
web_list_type?: IContentField<TMantineListType>;
|
|
1155
1193
|
web_spacing?: IContentField<TMantineSpacing>;
|
|
1156
|
-
|
|
1194
|
+
size?: IContentField<TSharedSize>;
|
|
1157
1195
|
web_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
1158
1196
|
web_list_with_padding?: IContentField<TMantineListWithPadding>;
|
|
1159
1197
|
web_list_center?: IContentField<TMantineListCenter>;
|
|
@@ -1186,10 +1224,10 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
1186
1224
|
button_label?: IContentField<string>;
|
|
1187
1225
|
login_label?: IContentField<string>;
|
|
1188
1226
|
show_login?: IContentField<string>;
|
|
1189
|
-
|
|
1190
|
-
|
|
1227
|
+
color?: IContentField<string>;
|
|
1228
|
+
radius?: IContentField<TSharedRadius>;
|
|
1191
1229
|
web_shadow?: IContentField<string>;
|
|
1192
|
-
|
|
1230
|
+
variant?: IContentField<string>;
|
|
1193
1231
|
show_icon?: IContentField<string>;
|
|
1194
1232
|
}
|
|
1195
1233
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
@@ -1198,10 +1236,10 @@ interface INotFoundStyle extends IStyleWithSpacing {
|
|
|
1198
1236
|
message?: IContentField<string>;
|
|
1199
1237
|
button_label?: IContentField<string>;
|
|
1200
1238
|
login_label?: IContentField<string>;
|
|
1201
|
-
|
|
1202
|
-
|
|
1239
|
+
color?: IContentField<string>;
|
|
1240
|
+
radius?: IContentField<TSharedRadius>;
|
|
1203
1241
|
web_shadow?: IContentField<string>;
|
|
1204
|
-
|
|
1242
|
+
variant?: IContentField<string>;
|
|
1205
1243
|
show_icon?: IContentField<string>;
|
|
1206
1244
|
}
|
|
1207
1245
|
interface IMissingStyle extends IStyleWithSpacing {
|
|
@@ -1209,10 +1247,10 @@ interface IMissingStyle extends IStyleWithSpacing {
|
|
|
1209
1247
|
title?: IContentField<string>;
|
|
1210
1248
|
message?: IContentField<string>;
|
|
1211
1249
|
button_label?: IContentField<string>;
|
|
1212
|
-
|
|
1213
|
-
|
|
1250
|
+
color?: IContentField<string>;
|
|
1251
|
+
radius?: IContentField<TSharedRadius>;
|
|
1214
1252
|
web_shadow?: IContentField<string>;
|
|
1215
|
-
|
|
1253
|
+
variant?: IContentField<string>;
|
|
1216
1254
|
show_icon?: IContentField<string>;
|
|
1217
1255
|
}
|
|
1218
1256
|
/**
|
|
@@ -1318,8 +1356,8 @@ interface IBaseStyle {
|
|
|
1318
1356
|
}
|
|
1319
1357
|
/** Styles that support the unified spacing field. */
|
|
1320
1358
|
interface IStyleWithSpacing extends IBaseStyle {
|
|
1321
|
-
/** Portable box-model spacing (margin + padding). Backend field `
|
|
1322
|
-
|
|
1359
|
+
/** Portable box-model spacing (margin + padding). Backend field `spacing`; RF-15 merged the legacy margin-only `web_spacing_margin` into this, so every spacing-capable style now uses it. */
|
|
1360
|
+
spacing?: IContentField<string>;
|
|
1323
1361
|
}
|
|
1324
1362
|
|
|
1325
1363
|
/**
|
|
@@ -1751,7 +1789,7 @@ declare const BASE_STYLE_REGISTRY: {
|
|
|
1751
1789
|
readonly canHaveChildren: false;
|
|
1752
1790
|
};
|
|
1753
1791
|
readonly 'rich-text-editor': {
|
|
1754
|
-
readonly description: "Tiptap editor on web;
|
|
1792
|
+
readonly description: "Tiptap editor on web; native inline-format toolbar editor on mobile";
|
|
1755
1793
|
readonly category: "forms";
|
|
1756
1794
|
readonly frontendOnly: true;
|
|
1757
1795
|
readonly canHaveChildren: false;
|
|
@@ -2299,7 +2337,7 @@ declare const STYLE_REGISTRY: {
|
|
|
2299
2337
|
readonly canHaveChildren: false;
|
|
2300
2338
|
};
|
|
2301
2339
|
readonly 'rich-text-editor': {
|
|
2302
|
-
readonly description: "Tiptap editor on web;
|
|
2340
|
+
readonly description: "Tiptap editor on web; native inline-format toolbar editor on mobile";
|
|
2303
2341
|
readonly category: "forms";
|
|
2304
2342
|
readonly frontendOnly: true;
|
|
2305
2343
|
readonly canHaveChildren: false;
|
|
@@ -2565,4 +2603,4 @@ declare function getPluginStyleRegistry(): Record<string, IPluginStyleRegistryEn
|
|
|
2565
2603
|
*/
|
|
2566
2604
|
declare function _resetPluginStyleRegistry(): void;
|
|
2567
2605
|
|
|
2568
|
-
export { type
|
|
2606
|
+
export { type IFormRecordStyle as $, type ICardSegmentStyle as A, BASE_STYLE_REGISTRY as B, type ICardStyle as C, type ICarouselStyle as D, type ICenterStyle as E, type ICheckboxStyle as F, type IChipStyle as G, type ICodeStyle as H, type IStyleRegistryEntry as I, type IColorInputStyle as J, type IColorPickerStyle as K, type IComboboxStyle as L, type IContainerStyle as M, type IDataContainerStyle as N, type IDatePickerStyle as O, type IDividerStyle as P, type IEntryListStyle as Q, type IEntryRecordDeleteStyle as R, STYLE_REGISTRY as S, type TStyleName as T, type IEntryRecordStyle as U, type IFieldsetStyle as V, type IFigureStyle as W, type IFileInputStyle as X, type IFlexStyle as Y, type IFormLogStyle as Z, type _AssertRegistryMatchesStyleName as _, type IPluginStyleRegistryEntry as a, type TMantineAnchorUnderline as a$, type IFormStyle as a0, type IGridColumnStyle as a1, type IGridStyle as a2, type IGroupStyle as a3, type IHighlightStyle as a4, type IHtmlTagStyle as a5, type IImageStyle as a6, type IIndicatorStyle as a7, type IInputStyle as a8, type IKbdStyle as a9, type IShowUserInputStyle as aA, type ISimpleGridStyle as aB, type ISliderStyle as aC, type ISpaceStyle as aD, type ISpoilerStyle as aE, type IStackStyle as aF, type IStyleWithSpacing as aG, type ISwitchStyle as aH, type ITabStyle as aI, type ITabsStyle as aJ, type ITextInputStyle as aK, type ITextStyle as aL, type ITextareaStyle as aM, type IThemeIconStyle as aN, type ITimelineItemStyle as aO, type ITimelineStyle as aP, type ITitleStyle as aQ, type ITwoFactorAuthStyle as aR, type ITypographyStyle as aS, type IUnknownStyle as aT, type IValidateStyle as aU, type IVersionStyle as aV, type IVideoStyle as aW, type TMantineAccordionChevronPosition as aX, type TMantineAccordionDisableChevronRotation as aY, type TMantineAccordionLoop as aZ, type TMantineAccordionMultiple as a_, type ILinkStyle as aa, type IListItemStyle as ab, type IListStyle as ac, type ILoginStyle as ad, type ILoopStyle as ae, type IMissingStyle as af, type INoAccessStyle as ag, type INotFoundStyle as ah, type INotificationStyle as ai, type INumberInputStyle as aj, type IPaperStyle as ak, type IProfileStyle as al, type IProgressRootStyle as am, type IProgressSectionStyle as an, type IProgressStyle as ao, type IRadioStyle as ap, type IRangeSliderStyle as aq, type IRatingStyle as ar, type IRefContainerStyle as as, type IRegisterStyle as at, type IResetPasswordStyle as au, type IRichTextEditorStyle as av, type IScrollAreaStyle as aw, type ISegmentedControlStyle as ax, type ISelectStyle as ay, type IShowUserInputEntry as az, type TStylePlacement as b, type TMantineBorder as b0, type TMantineCardPadding as b1, type TMantineCardShadow as b2, type TMantineCols as b3, type TMantineDividerVariant as b4, type TMantineGap as b5, type TMantineGridOffset as b6, type TMantineGridOrder as b7, type TMantineHeight as b8, type TMantineIconSize as b9, type TMantineTranslatable as bA, type TMantineUseInputWrapper as bB, type TMantineWidth as bC, type TSharedBorder as bD, type TSharedCols as bE, type TSharedDimension as bF, type TSharedDividerLabelPosition as bG, type TSharedDividerVariant as bH, type TSharedLabelPosition as bI, type TStyle as bJ, type TMantineImageFit as ba, type TMantineLineClamp as bb, type TMantineListCenter as bc, type TMantineListStyleType as bd, type TMantineListType as be, type TMantineListWithPadding as bf, type TMantinePaperShadow as bg, type TMantineProgressTransition as bh, type TMantineScrollAreaSize as bi, type TMantineScrollAreaType as bj, type TMantineTextAlign as bk, type TMantineTextDecoration as bl, type TMantineTextFontStyle as bm, type TMantineTextFontWeight as bn, type TMantineTextInherit as bo, type TMantineTextInputVariant as bp, type TMantineTextSpan as bq, type TMantineTextTransform as br, type TMantineTextTruncate as bs, type TMantineTextVariant as bt, type TMantineTextareaAutosize as bu, type TMantineTextareaResize as bv, type TMantineTextareaVariant as bw, type TMantineTimelineAlign as bx, type TMantineTitleLineClamp as by, type TMantineTitleTextWrap as bz, type TConcretePlatform as c, type TStylePlatform as d, type TStyleRegistryKey as e, _resetPluginStyleRegistry as f, extendStyleRegistry as g, getMergedStyleRegistry as h, getPluginStyleRegistry as i, type IContentField as j, type TMobileButtonFeedback as k, type TMobileFieldVariant as l, type TMobileSelectPresentation as m, type IAccordionItemStyle as n, type IAccordionStyle as o, type IActionIconStyle as p, type IAlertStyle as q, type IAspectRatioStyle as r, type IAudioStyle as s, type IAvatarStyle as t, type IBackgroundImageStyle as u, type IBadgeStyle as v, type IBaseStyle as w, type IBlockquoteStyle as x, type IBoxStyle as y, type IButtonStyle as z };
|