@selfhelp/shared 1.14.20 → 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.
Files changed (43) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/{common-DMm4kymA.d.mts → common-udJ0O8qC.d.mts} +1 -1
  3. package/dist/{common-DMm4kymA.d.ts → common-udJ0O8qC.d.ts} +1 -1
  4. package/dist/index.d.mts +8 -8
  5. package/dist/index.d.ts +8 -8
  6. package/dist/index.js +6 -6
  7. package/dist/index.mjs +6 -6
  8. package/dist/plugin-sdk/index.d.mts +2 -2
  9. package/dist/plugin-sdk/index.d.ts +2 -2
  10. package/dist/plugin-sdk/index.js +1 -1
  11. package/dist/plugin-sdk/index.mjs +1 -1
  12. package/dist/registry/index.d.mts +3 -3
  13. package/dist/registry/index.d.ts +3 -3
  14. package/dist/registry/index.js +1 -1
  15. package/dist/registry/index.mjs +1 -1
  16. package/dist/{styles.registry-B8IaEULk.d.ts → styles.registry-CZZwODJY.d.mts} +194 -178
  17. package/dist/{styles.registry-DhkxrV2-.d.mts → styles.registry-DQKcvIBZ.d.ts} +194 -178
  18. package/dist/theme/index.d.mts +20 -20
  19. package/dist/theme/index.d.ts +20 -20
  20. package/dist/theme/index.js +5 -5
  21. package/dist/theme/index.mjs +5 -5
  22. package/dist/theme/tailwind.d.mts +2 -2
  23. package/dist/theme/tailwind.d.ts +2 -2
  24. package/package.json +1 -1
  25. package/src/registry/styles.registry.ts +1 -1
  26. package/src/theme/__tests__/semantic.test.ts +19 -19
  27. package/src/theme/mantineVariant.ts +1 -1
  28. package/src/theme/semantic.ts +24 -24
  29. package/src/theme/tailwind.ts +2 -2
  30. package/src/theme/tokens.ts +1 -1
  31. package/src/types/__tests__/mobile-adapters.test.ts +1 -1
  32. package/src/types/mantine/common.ts +1 -1
  33. package/src/types/mobile-adapters.ts +4 -4
  34. package/src/types/styles/auth.ts +10 -10
  35. package/src/types/styles/base.ts +2 -2
  36. package/src/types/styles/composite.ts +7 -7
  37. package/src/types/styles/error.ts +9 -9
  38. package/src/types/styles/forms.ts +74 -58
  39. package/src/types/styles/interactive.ts +34 -32
  40. package/src/types/styles/layout.ts +42 -42
  41. package/src/types/styles/media.ts +6 -6
  42. package/src/types/styles/typography.ts +13 -13
  43. package/src/utils/spacing.ts +1 -1
@@ -59,7 +59,7 @@ void _exhaustiveBackward;
59
59
  /**
60
60
  * Compile-time lock for the authored-colour button passthrough: `MobileButton`
61
61
  * accepts an optional `accentColor` (resolved hex) so a CMS style can colour the
62
- * button for cross-platform parity (e.g. `login`'s `shared_color`). If the prop
62
+ * button for cross-platform parity (e.g. `login`'s `color`). If the prop
63
63
  * is removed or retyped, this assignment fails to type-check.
64
64
  */
65
65
  const _buttonAcceptsAccentColor: IMobileButtonProps = { accentColor: '#fab005' };
@@ -17,7 +17,7 @@ export type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string
17
17
  /**
18
18
  * Cross-platform (`shared_*`) semantic scales — the TRUE common denominator
19
19
  * between Mantine (web) and HeroUI Native / React Native (mobile). HeroUI Native
20
- * only exposes `sm | md | lg`, so portable `shared_size` / `shared_radius` fields
20
+ * only exposes `sm | md | lg`, so portable `size` / `radius` fields
21
21
  * use these narrowed scales instead of the full Mantine `xs..xl` range. The
22
22
  * backend enforces the same domain (migration `Version20260618195450`), and the
23
23
  * semantic mapper (`theme/semantic.ts`) maps these 1:1 without clamping.
@@ -55,7 +55,7 @@ export interface IMobileButtonProps extends IMobileAdapterBaseProps {
55
55
  /**
56
56
  * Optional concrete background colour (resolved hex) that overrides the
57
57
  * variant's themed fill, used for cross-platform parity when a CMS style
58
- * exposes an authored colour (e.g. `login`'s `shared_color`, which Mantine
58
+ * exposes an authored colour (e.g. `login`'s `color`, which Mantine
59
59
  * applies to the web button via `color`). The adapter keeps the variant's
60
60
  * readable foreground (white on a filled button). Leave undefined to use the
61
61
  * variant's default themed colour. Resolve it through the shared mapper
@@ -95,7 +95,7 @@ export interface IMobileInputProps extends IMobileAdapterBaseProps {
95
95
  isRequired?: boolean;
96
96
  secureTextEntry?: boolean;
97
97
  keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
98
- /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
98
+ /** Max characters (maps to RN `maxLength`; from `max_length`). */
99
99
  maxLength?: number;
100
100
  /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
101
101
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
@@ -113,7 +113,7 @@ export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
113
113
  isRequired?: boolean;
114
114
  /** Minimum visible rows (maps to RN `numberOfLines`). */
115
115
  numberOfLines?: number;
116
- /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
116
+ /** Max characters (maps to RN `maxLength`; from `max_length`). */
117
117
  maxLength?: number;
118
118
  /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
119
119
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
@@ -135,7 +135,7 @@ export interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
135
135
  label?: string;
136
136
  /**
137
137
  * Where the label sits relative to the box. Mirrors the cross-platform
138
- * `shared_label_position` field (Mantine `labelPosition` on web). Defaults
138
+ * `label_position` field (Mantine `labelPosition` on web). Defaults
139
139
  * to `right`.
140
140
  */
141
141
  labelPosition?: 'left' | 'right';
@@ -16,7 +16,7 @@ export interface ILoginStyle extends IStyleWithSpacing {
16
16
  /** Optional subtitle under the title; hidden when empty. */
17
17
  subtitle?: IContentField<string>;
18
18
  /** Submit-button colour (cross-platform, via the shared mapper). */
19
- shared_color?: IContentField<TMantineColor>;
19
+ color?: IContentField<TMantineColor>;
20
20
  /** Label of the link that opens the registration page. */
21
21
  label_register?: IContentField<string>;
22
22
  }
@@ -66,16 +66,16 @@ export interface IValidateStyle extends IStyleWithSpacing {
66
66
  label_update?: IContentField<string>;
67
67
  label_cancel?: IContentField<string>;
68
68
  // RF-21: shared with form-log/form-record so the mobile custom form matches.
69
- shared_buttons_size?: IContentField<string>;
70
- shared_buttons_radius?: IContentField<string>;
71
- shared_buttons_variant?: IContentField<string>;
72
- shared_buttons_position?: IContentField<string>;
73
- shared_buttons_order?: IContentField<string>;
74
- shared_btn_save_color?: IContentField<string>;
75
- shared_btn_cancel_color?: IContentField<string>;
69
+ buttons_size?: IContentField<string>;
70
+ buttons_radius?: IContentField<string>;
71
+ buttons_variant?: IContentField<string>;
72
+ buttons_position?: IContentField<string>;
73
+ buttons_order?: IContentField<string>;
74
+ btn_save_color?: IContentField<string>;
75
+ btn_cancel_color?: IContentField<string>;
76
76
  web_card_shadow?: IContentField<string>;
77
77
  web_card_padding?: IContentField<string>;
78
- shared_radius?: IContentField<TMantineRadius>;
78
+ radius?: IContentField<TMantineRadius>;
79
79
  web_border?: IContentField<string>;
80
80
  /** Activation lifecycle status text (shown after the registration email). */
81
81
  loading_title?: IContentField<string>;
@@ -91,7 +91,7 @@ export interface IValidateStyle extends IStyleWithSpacing {
91
91
  export interface IResetPasswordStyle extends IStyleWithSpacing {
92
92
  style_name: 'reset-password';
93
93
  /** Submit/link-button colour (cross-platform, via the shared mapper). */
94
- shared_color?: IContentField<TMantineColor>;
94
+ color?: IContentField<TMantineColor>;
95
95
  label_pw_reset?: IContentField<string>;
96
96
  alert_success?: IContentField<string>;
97
97
  placeholder?: IContentField<string>; reset_title?: IContentField<string>;
@@ -65,6 +65,6 @@ export interface IBaseStyle {
65
65
 
66
66
  /** Styles that support the unified spacing field. */
67
67
  export interface IStyleWithSpacing extends IBaseStyle {
68
- /** Portable box-model spacing (margin + padding). Backend field `shared_spacing`; RF-15 merged the legacy margin-only `web_spacing_margin` into this, so every spacing-capable style now uses it. */
69
- shared_spacing?: IContentField<string>;
68
+ /** 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. */
69
+ spacing?: IContentField<string>;
70
70
  }
@@ -43,16 +43,16 @@ export interface IAccordionStyle extends IStyleWithSpacing {
43
43
  // Cross-platform variant token: web -> Mantine variant
44
44
  // (default/contained/filled/separated), mobile -> HeroUI Native
45
45
  // default ('default') / surface (contained/filled/separated).
46
- shared_accordion_variant?: IContentField<TMantineAccordionVariant>;
46
+ accordion_variant?: IContentField<TMantineAccordionVariant>;
47
47
  // RF-19: selection mode (single vs multiple open) is portable; mobile reads it.
48
- shared_multiple?: IContentField<TMantineAccordionMultiple>;
48
+ multiple?: IContentField<TMantineAccordionMultiple>;
49
49
  web_accordion_chevron_position?: IContentField<TMantineAccordionChevronPosition>;
50
50
  web_accordion_chevron_size?: IContentField<string>;
51
51
  web_accordion_disable_chevron_rotation?: IContentField<TMantineAccordionDisableChevronRotation>;
52
52
  web_accordion_loop?: IContentField<TMantineAccordionLoop>;
53
53
  web_accordion_transition_duration?: IContentField<string>;
54
54
  web_accordion_default_value?: IContentField<string>;
55
- shared_radius?: IContentField<TSharedRadius>;}
55
+ radius?: IContentField<TSharedRadius>;}
56
56
 
57
57
  export interface IAccordionItemStyle extends IStyleWithSpacing {
58
58
  style_name: 'accordion-item';
@@ -68,7 +68,7 @@ export interface ITabsStyle extends IStyleWithSpacing {
68
68
  web_tabs_variant?: IContentField<TMantineTabsVariant>;
69
69
  web_tabs_orientation?: IContentField<TMantineOrientation>;
70
70
  web_tabs_radius?: IContentField<TMantineRadius>;
71
- shared_color?: IContentField<TMantineColor>;
71
+ color?: IContentField<TMantineColor>;
72
72
  // Capability pass (2026-06-22): list layout + panel mount behaviour.
73
73
  web_tabs_grow?: IContentField<string>;
74
74
  web_tabs_justify?: IContentField<string>;
@@ -93,7 +93,7 @@ export interface ITimelineStyle extends IStyleWithSpacing {
93
93
  web_timeline_active?: IContentField<string>;
94
94
  web_timeline_align?: IContentField<TMantineTimelineAlign>;
95
95
  web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
96
- shared_color?: IContentField<TMantineColor>;}
96
+ color?: IContentField<TMantineColor>;}
97
97
 
98
98
  /**
99
99
  * A single entry inside a `timeline`. Child-only style; placement is enforced
@@ -104,13 +104,13 @@ export interface ITimelineItemStyle extends IBaseStyle {
104
104
  title?: IContentField<string>;
105
105
  web_timeline_item_bullet?: IContentField<string>;
106
106
  web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
107
- shared_color?: IContentField<TMantineColor>;}
107
+ color?: IContentField<TMantineColor>;}
108
108
 
109
109
  export interface IListStyle extends IStyleWithSpacing {
110
110
  style_name: 'list';
111
111
  web_list_type?: IContentField<TMantineListType>;
112
112
  web_spacing?: IContentField<TMantineSpacing>;
113
- shared_size?: IContentField<TSharedSize>; web_list_list_style_type?: IContentField<TMantineListStyleType>;
113
+ size?: IContentField<TSharedSize>; web_list_list_style_type?: IContentField<TMantineListStyleType>;
114
114
  web_list_with_padding?: IContentField<TMantineListWithPadding>;
115
115
  web_list_center?: IContentField<TMantineListCenter>;
116
116
  web_list_icon?: IContentField<string>;
@@ -12,10 +12,10 @@ export interface INoAccessStyle extends IStyleWithSpacing {
12
12
  button_label?: IContentField<string>;
13
13
  login_label?: IContentField<string>;
14
14
  show_login?: IContentField<string>;
15
- shared_color?: IContentField<string>;
16
- shared_radius?: IContentField<TSharedRadius>;
15
+ color?: IContentField<string>;
16
+ radius?: IContentField<TSharedRadius>;
17
17
  web_shadow?: IContentField<string>;
18
- shared_variant?: IContentField<string>;
18
+ variant?: IContentField<string>;
19
19
  show_icon?: IContentField<string>;
20
20
  }
21
21
 
@@ -25,10 +25,10 @@ export interface INotFoundStyle extends IStyleWithSpacing {
25
25
  message?: IContentField<string>;
26
26
  button_label?: IContentField<string>;
27
27
  login_label?: IContentField<string>;
28
- shared_color?: IContentField<string>;
29
- shared_radius?: IContentField<TSharedRadius>;
28
+ color?: IContentField<string>;
29
+ radius?: IContentField<TSharedRadius>;
30
30
  web_shadow?: IContentField<string>;
31
- shared_variant?: IContentField<string>;
31
+ variant?: IContentField<string>;
32
32
  show_icon?: IContentField<string>;
33
33
  }
34
34
 
@@ -37,10 +37,10 @@ export interface IMissingStyle extends IStyleWithSpacing {
37
37
  title?: IContentField<string>;
38
38
  message?: IContentField<string>;
39
39
  button_label?: IContentField<string>;
40
- shared_color?: IContentField<string>;
41
- shared_radius?: IContentField<TSharedRadius>;
40
+ color?: IContentField<string>;
41
+ radius?: IContentField<TSharedRadius>;
42
42
  web_shadow?: IContentField<string>;
43
- shared_variant?: IContentField<string>;
43
+ variant?: IContentField<string>;
44
44
  show_icon?: IContentField<string>;
45
45
  }
46
46
 
@@ -24,21 +24,33 @@ export type TMobileFieldVariant = 'primary' | 'secondary';
24
24
 
25
25
  export interface IFormStyle extends IStyleWithSpacing {
26
26
  style_name: 'form-log' | 'form-record';
27
+ /** Optional auto-styled heading rendered above the form when set. */
28
+ title?: IContentField<string>;
29
+ /** Optional sub-heading rendered below the title when set. */
30
+ description?: IContentField<string>;
27
31
  btn_save_label?: IContentField<string>;
28
32
  alert_success?: IContentField<string>;
33
+ /** Translatable heading of the success alert (default "Success"). */
34
+ alert_success_title?: IContentField<string>;
29
35
  name?: IContentField<string>; redirect_at_end?: IContentField<string>;
30
36
  btn_cancel_url?: IContentField<string>;
31
37
  btn_cancel_label?: IContentField<string>;
32
38
  alert_error?: IContentField<string>;
39
+ /** Translatable heading of the error alert (default "Error"). */
40
+ alert_error_title?: IContentField<string>;
41
+ /** When '1', a confirmation dialog is shown before submit. */
42
+ confirm_submit?: IContentField<string>;
43
+ /** Message shown in the confirmation dialog before submit. */
44
+ confirm_message?: IContentField<string>;
33
45
  // RF-21: button knobs are portable to the mobile custom form (not a 1:1
34
46
  // component map). Promoted web_* -> shared_* so both renderers read them.
35
- shared_buttons_size?: IContentField<string>;
36
- shared_buttons_radius?: IContentField<string>;
37
- shared_buttons_variant?: IContentField<string>;
38
- shared_buttons_position?: IContentField<string>;
39
- shared_buttons_order?: IContentField<string>;
40
- shared_btn_save_color?: IContentField<string>;
41
- shared_btn_cancel_color?: IContentField<string>;
47
+ buttons_size?: IContentField<string>;
48
+ buttons_radius?: IContentField<string>;
49
+ buttons_variant?: IContentField<string>;
50
+ buttons_position?: IContentField<string>;
51
+ buttons_order?: IContentField<string>;
52
+ btn_save_color?: IContentField<string>;
53
+ btn_cancel_color?: IContentField<string>;
42
54
  }
43
55
 
44
56
  export interface IFormLogStyle extends IFormStyle {
@@ -48,7 +60,7 @@ export interface IFormLogStyle extends IFormStyle {
48
60
  export interface IFormRecordStyle extends IFormStyle {
49
61
  style_name: 'form-record';
50
62
  btn_update_label?: IContentField<string>;
51
- shared_btn_update_color?: IContentField<string>;
63
+ btn_update_color?: IContentField<string>;
52
64
  }
53
65
 
54
66
  export interface IInputStyle extends IBaseStyle {
@@ -74,11 +86,11 @@ export interface ITextInputStyle extends IStyleWithSpacing {
74
86
  is_required?: IContentField<string>;
75
87
  disabled?: IContentField<string>;
76
88
  web_left_icon?: IContentField<string>;
77
- web_right_icon?: IContentField<string>; shared_size?: IContentField<TSharedSize>;
78
- shared_radius?: IContentField<TSharedRadius>;
89
+ web_right_icon?: IContentField<string>; size?: IContentField<TSharedSize>;
90
+ radius?: IContentField<TSharedRadius>;
79
91
  web_text_input_variant?: IContentField<TMantineTextInputVariant>;
80
92
  // Capability pass (2026-06-22): max length (web + mobile) + mobile keyboard knobs.
81
- shared_max_length?: IContentField<string>;
93
+ max_length?: IContentField<string>;
82
94
  mobile_keyboard_type?: IContentField<string>;
83
95
  mobile_auto_capitalize?: IContentField<string>;
84
96
  mobile_secure_entry?: IContentField<string>;
@@ -102,16 +114,16 @@ export interface ITextareaStyle extends IStyleWithSpacing {
102
114
  web_left_icon?: IContentField<string>;
103
115
  web_right_icon?: IContentField<string>;
104
116
  // RF-18: row sizing is portable (mobile maps to numberOfLines / auto-grow).
105
- shared_autosize?: IContentField<TMantineTextareaAutosize>;
106
- shared_min_rows?: IContentField<string>;
107
- shared_max_rows?: IContentField<string>;
117
+ autosize?: IContentField<TMantineTextareaAutosize>;
118
+ min_rows?: IContentField<string>;
119
+ max_rows?: IContentField<string>;
108
120
  // RF-16: resize/variant have no clean React Native peer — stay web-only.
109
121
  web_textarea_resize?: IContentField<TMantineTextareaResize>;
110
- shared_size?: IContentField<TSharedSize>;
111
- shared_radius?: IContentField<TSharedRadius>;
122
+ size?: IContentField<TSharedSize>;
123
+ radius?: IContentField<TSharedRadius>;
112
124
  web_textarea_variant?: IContentField<TMantineTextareaVariant>;
113
125
  // Capability pass (2026-06-22): max length (web + mobile) + mobile auto-capitalize.
114
- shared_max_length?: IContentField<string>;
126
+ max_length?: IContentField<string>;
115
127
  mobile_auto_capitalize?: IContentField<string>;
116
128
  // Mobile-only HeroUI Native field variant (primary = bordered, secondary = filled).
117
129
  mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
@@ -147,10 +159,10 @@ export interface ISelectStyle extends IBaseStyle {
147
159
  // RF-17: searchable/clearable are portable behaviour (was the stale
148
160
  // web-only `live_search` / `allow_clear`; mobile maps to search-field /
149
161
  // clear affordance where the adapter supports it).
150
- shared_searchable?: IContentField<string>;
162
+ searchable?: IContentField<string>;
151
163
  disabled?: IContentField<string>;
152
164
  image_selector?: IContentField<string>;
153
- shared_clearable?: IContentField<string>;
165
+ clearable?: IContentField<string>;
154
166
  // Mobile-only: how the option list opens (HeroUI Native Select.Content
155
167
  // presentation). Empty = renderer default (bottom-sheet).
156
168
  mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
@@ -165,9 +177,9 @@ export interface IRadioStyle extends IStyleWithSpacing {
165
177
  is_required?: IContentField<string>;
166
178
  items?: IContentField<unknown[]>;
167
179
  is_inline?: IContentField<string>;
168
- shared_orientation?: IContentField<string>;
169
- shared_size?: IContentField<TSharedSize>;
170
- shared_color?: IContentField<TMantineColor>;
180
+ orientation?: IContentField<string>;
181
+ size?: IContentField<TSharedSize>;
182
+ color?: IContentField<TMantineColor>;
171
183
  radio_options?: IContentField<string>;
172
184
  web_radio_label_position?: IContentField<string>;
173
185
  web_radio_variant?: IContentField<string>;
@@ -186,12 +198,12 @@ export interface ICheckboxStyle extends IStyleWithSpacing {
186
198
  checkbox_value?: IContentField<string>;
187
199
  web_checkbox_icon?: IContentField<string>;
188
200
  // Label side (left/right) honoured on both platforms.
189
- shared_label_position?: IContentField<TSharedLabelPosition>;
201
+ label_position?: IContentField<TSharedLabelPosition>;
190
202
  description?: IContentField<string>;
191
203
  disabled?: IContentField<string>;
192
- shared_size?: IContentField<TSharedSize>;
193
- shared_radius?: IContentField<TSharedRadius>;
194
- shared_color?: IContentField<TMantineColor>; web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
204
+ size?: IContentField<TSharedSize>;
205
+ radius?: IContentField<TSharedRadius>;
206
+ color?: IContentField<TMantineColor>; web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
195
207
  // Mobile-only HeroUI Native checkbox variant (primary / secondary).
196
208
  mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
197
209
  }
@@ -205,9 +217,9 @@ export interface ISliderStyle extends IStyleWithSpacing {
205
217
  web_numeric_min?: IContentField<string>;
206
218
  web_numeric_max?: IContentField<string>;
207
219
  web_numeric_step?: IContentField<string>;
208
- shared_size?: IContentField<TSharedSize>;
209
- shared_color?: IContentField<TMantineColor>;
210
- shared_radius?: IContentField<TSharedRadius>;
220
+ size?: IContentField<TSharedSize>;
221
+ color?: IContentField<TMantineColor>;
222
+ radius?: IContentField<TSharedRadius>;
211
223
  disabled?: IContentField<string>; slider_marks_values?: IContentField<string>;
212
224
  web_slider_show_label?: IContentField<string>;
213
225
  web_slider_labels_always_on?: IContentField<string>;
@@ -231,9 +243,9 @@ export interface IRangeSliderStyle extends IStyleWithSpacing {
231
243
  web_range_slider_show_label?: IContentField<string>;
232
244
  web_range_slider_labels_always_on?: IContentField<string>;
233
245
  web_range_slider_inverted?: IContentField<string>;
234
- shared_size?: IContentField<TSharedSize>;
235
- shared_color?: IContentField<TMantineColor>;
236
- shared_radius?: IContentField<TSharedRadius>;
246
+ size?: IContentField<TSharedSize>;
247
+ color?: IContentField<TMantineColor>;
248
+ radius?: IContentField<TSharedRadius>;
237
249
  disabled?: IContentField<string>;
238
250
  // Mobile-only: toggle the HeroUI Native Slider.Output value bubble.
239
251
  mobile_range_slider_show_value?: IContentField<string>;
@@ -267,8 +279,8 @@ export interface IDatePickerStyle extends IStyleWithSpacing {
267
279
  web_datepicker_date_format?: IContentField<string>;
268
280
  web_datepicker_time_grid_config?: IContentField<string>;
269
281
  web_datepicker_with_seconds?: IContentField<string>;
270
- shared_size?: IContentField<TSharedSize>;
271
- shared_radius?: IContentField<TSharedRadius>;}
282
+ size?: IContentField<TSharedSize>;
283
+ radius?: IContentField<TSharedRadius>;}
272
284
 
273
285
  export interface ISwitchStyle extends IStyleWithSpacing {
274
286
  style_name: 'switch';
@@ -276,9 +288,9 @@ export interface ISwitchStyle extends IStyleWithSpacing {
276
288
  description?: IContentField<string>;
277
289
  switch_on_label?: IContentField<string>;
278
290
  switch_off_label?: IContentField<string>;
279
- shared_size?: IContentField<TSharedSize>;
280
- shared_color?: IContentField<TMantineColor>;
281
- shared_radius?: IContentField<TSharedRadius>;
291
+ size?: IContentField<TSharedSize>;
292
+ color?: IContentField<TMantineColor>;
293
+ radius?: IContentField<TSharedRadius>;
282
294
  disabled?: IContentField<string>; name?: IContentField<string>;
283
295
  is_required?: IContentField<string>;
284
296
  web_label_position?: IContentField<string>;
@@ -320,8 +332,8 @@ export interface IColorInputStyle extends IStyleWithSpacing {
320
332
  web_color_input_with_eye_dropper?: IContentField<string>;
321
333
  web_color_input_disallow_input?: IContentField<string>;
322
334
  web_color_input_with_preview?: IContentField<string>;
323
- shared_size?: IContentField<TSharedSize>;
324
- shared_radius?: IContentField<TSharedRadius>;
335
+ size?: IContentField<TSharedSize>;
336
+ radius?: IContentField<TSharedRadius>;
325
337
  placeholder?: IContentField<string>;
326
338
  name?: IContentField<string>;
327
339
  value?: IContentField<string>;
@@ -341,8 +353,8 @@ export interface IColorPickerStyle extends IStyleWithSpacing {
341
353
  color_picker_alpha_label?: IContentField<string>;
342
354
  web_color_picker_as_button?: IContentField<string>;
343
355
  web_color_picker_button_label?: IContentField<string>;
344
- shared_size?: IContentField<TSharedSize>;
345
- shared_full_width?: IContentField<string>;
356
+ size?: IContentField<TSharedSize>;
357
+ full_width?: IContentField<string>;
346
358
  name?: IContentField<string>;
347
359
  value?: IContentField<string>;
348
360
  description?: IContentField<string>;
@@ -356,8 +368,8 @@ export interface IFileInputStyle extends IStyleWithSpacing {
356
368
  web_file_input_max_size?: IContentField<string>;
357
369
  web_file_input_max_files?: IContentField<string>;
358
370
  web_file_input_drag_drop?: IContentField<string>;
359
- shared_size?: IContentField<TSharedSize>;
360
- shared_radius?: IContentField<TSharedRadius>;
371
+ size?: IContentField<TSharedSize>;
372
+ radius?: IContentField<TSharedRadius>;
361
373
  web_left_icon?: IContentField<string>;
362
374
  web_right_icon?: IContentField<string>;
363
375
  placeholder?: IContentField<string>;
@@ -380,8 +392,8 @@ export interface INumberInputStyle extends IStyleWithSpacing {
380
392
  web_number_input_thousand_separator?: IContentField<string>;
381
393
  web_number_input_allow_negative?: IContentField<string>;
382
394
  web_number_input_hide_controls?: IContentField<string>;
383
- shared_size?: IContentField<TSharedSize>;
384
- shared_radius?: IContentField<TSharedRadius>;
395
+ size?: IContentField<TSharedSize>;
396
+ radius?: IContentField<TSharedRadius>;
385
397
  placeholder?: IContentField<string>;
386
398
  label?: IContentField<string>;
387
399
  description?: IContentField<string>;
@@ -393,10 +405,10 @@ export interface INumberInputStyle extends IStyleWithSpacing {
393
405
  export interface ISegmentedControlStyle extends IStyleWithSpacing {
394
406
  style_name: 'segmented-control';
395
407
  segmented_control_data?: IContentField<string>;
396
- shared_orientation?: IContentField<string>;
397
- shared_size?: IContentField<TSharedSize>;
398
- shared_radius?: IContentField<TSharedRadius>;
399
- shared_color?: IContentField<TMantineColor>;
408
+ orientation?: IContentField<string>;
409
+ size?: IContentField<TSharedSize>;
410
+ radius?: IContentField<TSharedRadius>;
411
+ color?: IContentField<TMantineColor>;
400
412
  fullwidth?: IContentField<string>;
401
413
  disabled?: IContentField<string>;
402
414
  readonly?: IContentField<string>; web_segmented_control_item_border?: IContentField<string>;
@@ -421,29 +433,29 @@ export interface IRatingStyle extends IStyleWithSpacing {
421
433
  web_rating_empty_icon?: IContentField<string>;
422
434
  web_rating_full_icon?: IContentField<string>;
423
435
  web_rating_highlight_selected_only?: IContentField<string>;
424
- shared_size?: IContentField<TSharedSize>;
425
- shared_color?: IContentField<TMantineColor>;}
436
+ size?: IContentField<TSharedSize>;
437
+ color?: IContentField<TMantineColor>;}
426
438
 
427
439
  export interface IProgressStyle extends IStyleWithSpacing {
428
440
  style_name: 'progress';
429
441
  value?: IContentField<string>;
430
- shared_color?: IContentField<TMantineColor>;
431
- shared_radius?: IContentField<TSharedRadius>;
432
- shared_size?: IContentField<TSharedSize>;
442
+ color?: IContentField<TMantineColor>;
443
+ radius?: IContentField<TSharedRadius>;
444
+ size?: IContentField<TSharedSize>;
433
445
  web_progress_striped?: IContentField<string>;
434
446
  web_progress_animated?: IContentField<string>;
435
447
  web_progress_transition_duration?: IContentField<TMantineProgressTransition>;}
436
448
 
437
449
  export interface IProgressRootStyle extends IBaseStyle {
438
450
  style_name: 'progress-root';
439
- shared_size?: IContentField<TSharedSize>;
440
- shared_radius?: IContentField<TSharedRadius>;
451
+ size?: IContentField<TSharedSize>;
452
+ radius?: IContentField<TSharedRadius>;
441
453
  web_progress_auto_contrast?: IContentField<string>;}
442
454
 
443
455
  export interface IProgressSectionStyle extends IBaseStyle {
444
456
  style_name: 'progress-section';
445
457
  value?: IContentField<string>;
446
- shared_color?: IContentField<TMantineColor>;
458
+ color?: IContentField<TMantineColor>;
447
459
  web_progress_striped?: IContentField<string>;
448
460
  web_progress_animated?: IContentField<string>;
449
461
  label?: IContentField<string>;
@@ -459,6 +471,10 @@ export interface IShowUserInputEntry {
459
471
 
460
472
  export interface IShowUserInputStyle extends IBaseStyle {
461
473
  style_name: 'show-user-input';
474
+ /** Optional auto-styled heading rendered above the entries when set. */
475
+ title?: IContentField<string>;
476
+ /** Message shown when there are no entries to display (default "No entries found."). */
477
+ empty_text?: IContentField<string>;
462
478
  /** Source data table the form entries are read from (backend data binding). */
463
479
  data_table?: IContentField<string>;
464
480
  own_entries_only?: IContentField<string>;
@@ -474,7 +490,7 @@ export interface IShowUserInputStyle extends IBaseStyle {
474
490
  fields_map?: IContentField<string>;
475
491
  delete_modal_title?: IContentField<string>;
476
492
  delete_modal_body?: IContentField<string>;
477
- shared_spacing?: IContentField<string>;
493
+ spacing?: IContentField<string>;
478
494
  web_table_striped?: IContentField<string>;
479
495
  web_table_highlight_on_hover?: IContentField<string>;
480
496
  web_table_with_table_border?: IContentField<string>;
@@ -27,13 +27,13 @@ export type TMobileButtonFeedback = 'scale-highlight' | 'scale-ripple' | 'scale'
27
27
 
28
28
  export interface IButtonStyle extends IStyleWithSpacing {
29
29
  style_name: 'button';
30
- shared_variant?: IContentField<TMantineVariant>;
31
- shared_color?: IContentField<TMantineColor>;
32
- shared_size?: IContentField<TSharedSize>;
33
- shared_radius?: IContentField<TSharedRadius>;
30
+ variant?: IContentField<TMantineVariant>;
31
+ color?: IContentField<TMantineColor>;
32
+ size?: IContentField<TSharedSize>;
33
+ radius?: IContentField<TSharedRadius>;
34
34
  web_left_icon?: IContentField<string>;
35
35
  web_right_icon?: IContentField<string>;
36
- shared_full_width?: IContentField<string>;
36
+ full_width?: IContentField<string>;
37
37
  web_compact?: IContentField<string>;
38
38
  web_auto_contrast?: IContentField<string>;
39
39
  is_link?: IContentField<string>; disabled?: IContentField<string>;
@@ -54,7 +54,7 @@ export interface ILinkStyle extends IStyleWithSpacing {
54
54
  label?: IContentField<string>;
55
55
  url?: IContentField<string>;
56
56
  open_in_new_tab?: IContentField<string>;
57
- shared_color?: IContentField<TMantineColor>;
57
+ color?: IContentField<TMantineColor>;
58
58
  web_link_underline?: IContentField<TMantineAnchorUnderline>;
59
59
  web_left_icon?: IContentField<string>;
60
60
  web_right_icon?: IContentField<string>;
@@ -64,9 +64,9 @@ export interface IActionIconStyle extends IStyleWithSpacing {
64
64
  style_name: 'action-icon';
65
65
  web_variant?: IContentField<TMantineVariant>;
66
66
  web_action_icon_loading?: IContentField<string>;
67
- shared_size?: IContentField<TSharedSize>;
68
- shared_radius?: IContentField<TSharedRadius>;
69
- shared_color?: IContentField<TMantineColor>;
67
+ size?: IContentField<TSharedSize>;
68
+ radius?: IContentField<TSharedRadius>;
69
+ color?: IContentField<TMantineColor>;
70
70
  web_left_icon?: IContentField<string>;
71
71
  is_link?: IContentField<string>;
72
72
  page_keyword?: IContentField<string>;
@@ -79,8 +79,8 @@ export interface IAlertStyle extends IStyleWithSpacing {
79
79
  style_name: 'alert';
80
80
  alert_title?: IContentField<string>;
81
81
  web_variant?: IContentField<TMantineVariant>;
82
- shared_color?: IContentField<TMantineColor>;
83
- shared_radius?: IContentField<TSharedRadius>;
82
+ color?: IContentField<TMantineColor>;
83
+ radius?: IContentField<TSharedRadius>;
84
84
  web_left_icon?: IContentField<string>;
85
85
  /** Cross-platform dismiss toggle (was the web-only `web_with_close_button`). */
86
86
  closable?: IContentField<string>;
@@ -91,15 +91,15 @@ export interface IBadgeStyle extends IStyleWithSpacing {
91
91
  style_name: 'badge';
92
92
  label?: IContentField<string>;
93
93
  /** Cross-platform variant (web Mantine + mobile HeroUI). Primary control. */
94
- shared_variant?: IContentField<TMantineBadgeVariant>;
95
- /** Web-only variant override (e.g. `dot`); empty falls back to shared_variant. */
94
+ variant?: IContentField<TMantineBadgeVariant>;
95
+ /** Web-only variant override (e.g. `dot`); empty falls back to variant. */
96
96
  web_variant?: IContentField<TMantineBadgeVariant>;
97
97
  /** Render as a circle (equal width/height) for short counts. */
98
98
  circle?: IContentField<string>;
99
- shared_size?: IContentField<TSharedSize>;
99
+ size?: IContentField<TSharedSize>;
100
100
  web_left_icon?: IContentField<string>;
101
- shared_radius?: IContentField<TSharedRadius>;
102
- shared_color?: IContentField<TMantineColor>;
101
+ radius?: IContentField<TSharedRadius>;
102
+ color?: IContentField<TMantineColor>;
103
103
  web_right_icon?: IContentField<string>;
104
104
  web_auto_contrast?: IContentField<string>;
105
105
  }
@@ -110,9 +110,9 @@ export interface IAvatarStyle extends IStyleWithSpacing {
110
110
  /** Person name; seeds auto-initials + a stable auto colour when no image. */
111
111
  name?: IContentField<string>;
112
112
  web_variant?: IContentField<TMantineAvatarVariant>;
113
- shared_size?: IContentField<TSharedSize>;
114
- shared_radius?: IContentField<TSharedRadius>;
115
- shared_color?: IContentField<TMantineColor>;
113
+ size?: IContentField<TSharedSize>;
114
+ radius?: IContentField<TSharedRadius>;
115
+ color?: IContentField<TMantineColor>;
116
116
  web_left_icon?: IContentField<string>;
117
117
  web_avatar_initials?: IContentField<string>;
118
118
  img_src?: IContentField<string>;
@@ -122,10 +122,10 @@ export interface IChipStyle extends IStyleWithSpacing {
122
122
  style_name: 'chip';
123
123
  label?: IContentField<string>;
124
124
  // Cross-platform variant (Mantine filled/outline/light; HeroUI Native chip variant).
125
- shared_chip_variant?: IContentField<TMantineChipVariant>;
126
- shared_size?: IContentField<TSharedSize>;
127
- shared_radius?: IContentField<TSharedRadius>;
128
- shared_color?: IContentField<TMantineColor>;
125
+ chip_variant?: IContentField<TMantineChipVariant>;
126
+ size?: IContentField<TSharedSize>;
127
+ radius?: IContentField<TSharedRadius>;
128
+ color?: IContentField<TMantineColor>;
129
129
  web_chip_checked?: IContentField<string>;
130
130
  web_chip_multiple?: IContentField<string>;
131
131
  disabled?: IContentField<string>; web_left_icon?: IContentField<string>;
@@ -152,27 +152,29 @@ export interface IIndicatorStyle extends IBaseStyle {
152
152
  web_indicator_inline?: IContentField<string>;
153
153
  web_indicator_offset?: IContentField<string>;
154
154
  web_border?: IContentField<string>;
155
- shared_radius?: IContentField<TSharedRadius>;
156
- shared_color?: IContentField<TMantineColor>;}
155
+ radius?: IContentField<TSharedRadius>;
156
+ color?: IContentField<TMantineColor>;}
157
157
 
158
158
  export interface IThemeIconStyle extends IStyleWithSpacing {
159
159
  style_name: 'theme-icon';
160
160
  web_variant?: IContentField<TMantineThemeIconVariant>;
161
- shared_size?: IContentField<TSharedSize>;
162
- shared_radius?: IContentField<TSharedRadius>;
163
- shared_color?: IContentField<TMantineColor>; web_left_icon?: IContentField<string>;
161
+ size?: IContentField<TSharedSize>;
162
+ radius?: IContentField<TSharedRadius>;
163
+ color?: IContentField<TMantineColor>; web_left_icon?: IContentField<string>;
164
164
  }
165
165
 
166
166
  export interface INotificationStyle extends IStyleWithSpacing {
167
167
  style_name: 'notification';
168
168
  title?: IContentField<string>;
169
169
  content?: IContentField<string>;
170
- web_left_icon?: IContentField<string>;
171
- shared_color?: IContentField<TMantineColor>;
170
+ /** Portable icon: honoured by both web (Mantine) and mobile renderers. */
171
+ shared_icon?: IContentField<string>;
172
+ color?: IContentField<TMantineColor>;
172
173
  web_notification_loading?: IContentField<string>;
173
- web_notification_with_close_button?: IContentField<string>;
174
+ /** Portable dismiss toggle: both platforms show a close button when '1'. */
175
+ with_close_button?: IContentField<string>;
174
176
  web_border?: IContentField<string>;
175
- shared_radius?: IContentField<TSharedRadius>;}
177
+ radius?: IContentField<TSharedRadius>;}
176
178
 
177
179
  // NOTE: `fab-button` and `biometric-login-button` are deferred (mobile rendering
178
180
  // plan, milestone-one scope). They are NOT part of the established 90-style