@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +136 -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 +33 -9
  5. package/dist/index.d.ts +33 -9
  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-D6u2lOw8.d.ts → styles.registry-CZZwODJY.d.mts} +216 -178
  17. package/dist/{styles.registry-DPNHAOM1.d.mts → styles.registry-DQKcvIBZ.d.ts} +216 -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 +30 -4
  34. package/src/types/styles/auth.ts +13 -9
  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 +99 -59
  39. package/src/types/styles/interactive.ts +42 -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.
@@ -26,6 +26,8 @@ SPDX-License-Identifier: MPL-2.0
26
26
  */
27
27
  import type { ComponentType, ReactNode } from 'react';
28
28
  import type { THeroUiButtonVariant, THeroUiSize } from '../theme/semantic';
29
+ import type { TMobileFieldVariant, TMobileSelectPresentation } from './styles/forms';
30
+ import type { TMobileButtonFeedback } from './styles/interactive';
29
31
 
30
32
  /** Props shared by every adapter (styling + accessibility passthrough). */
31
33
  export interface IMobileAdapterBaseProps {
@@ -45,10 +47,15 @@ export interface IMobileButtonProps extends IMobileAdapterBaseProps {
45
47
  isLoading?: boolean;
46
48
  isIconOnly?: boolean;
47
49
  fullWidth?: boolean;
50
+ /**
51
+ * Native press feedback (HeroUI Native `feedbackVariant`). No web
52
+ * equivalent — driven by the mobile-only `mobile_button_feedback` field.
53
+ */
54
+ feedbackVariant?: TMobileButtonFeedback;
48
55
  /**
49
56
  * Optional concrete background colour (resolved hex) that overrides the
50
57
  * variant's themed fill, used for cross-platform parity when a CMS style
51
- * exposes an authored colour (e.g. `login`'s `shared_color`, which Mantine
58
+ * exposes an authored colour (e.g. `login`'s `color`, which Mantine
52
59
  * applies to the web button via `color`). The adapter keeps the variant's
53
60
  * readable foreground (white on a filled button). Leave undefined to use the
54
61
  * variant's default themed colour. Resolve it through the shared mapper
@@ -88,10 +95,12 @@ export interface IMobileInputProps extends IMobileAdapterBaseProps {
88
95
  isRequired?: boolean;
89
96
  secureTextEntry?: boolean;
90
97
  keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad' | 'url';
91
- /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
98
+ /** Max characters (maps to RN `maxLength`; from `max_length`). */
92
99
  maxLength?: number;
93
100
  /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
94
101
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
102
+ /** HeroUI Native field variant (from `mobile_input_variant`). */
103
+ variant?: TMobileFieldVariant;
95
104
  }
96
105
 
97
106
  export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
@@ -104,10 +113,12 @@ export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
104
113
  isRequired?: boolean;
105
114
  /** Minimum visible rows (maps to RN `numberOfLines`). */
106
115
  numberOfLines?: number;
107
- /** Max characters (maps to RN `maxLength`; from `shared_max_length`). */
116
+ /** Max characters (maps to RN `maxLength`; from `max_length`). */
108
117
  maxLength?: number;
109
118
  /** Native auto-capitalize behaviour (from `mobile_auto_capitalize`). */
110
119
  autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters';
120
+ /** HeroUI Native field variant (from `mobile_textarea_variant`). */
121
+ variant?: TMobileFieldVariant;
111
122
  }
112
123
 
113
124
  export interface IMobileSwitchProps extends IMobileAdapterBaseProps {
@@ -124,10 +135,12 @@ export interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
124
135
  label?: string;
125
136
  /**
126
137
  * Where the label sits relative to the box. Mirrors the cross-platform
127
- * `shared_label_position` field (Mantine `labelPosition` on web). Defaults
138
+ * `label_position` field (Mantine `labelPosition` on web). Defaults
128
139
  * to `right`.
129
140
  */
130
141
  labelPosition?: 'left' | 'right';
142
+ /** HeroUI Native checkbox variant (from `mobile_checkbox_variant`). */
143
+ variant?: TMobileFieldVariant;
131
144
  }
132
145
 
133
146
  export interface IMobileSelectOption {
@@ -141,6 +154,19 @@ export interface IMobileSelectProps extends IMobileAdapterBaseProps {
141
154
  options: readonly IMobileSelectOption[];
142
155
  placeholder?: string;
143
156
  isDisabled?: boolean;
157
+ /**
158
+ * Multi-select mode (CMS `is_multiple`). When true the contract value is a
159
+ * comma-separated list of option values and `onValueChange` emits the same
160
+ * comma-separated form; the adapter renders HeroUI Native's
161
+ * `selectionMode="multiple"`.
162
+ */
163
+ multiple?: boolean;
164
+ /**
165
+ * How the option list opens (HeroUI Native Select.Content presentation).
166
+ * From the mobile-only `mobile_select_presentation` field; empty/undefined
167
+ * falls back to the renderer default (`bottom-sheet`).
168
+ */
169
+ presentation?: TMobileSelectPresentation;
144
170
  }
145
171
 
146
172
  export interface IMobileModalProps extends IMobileAdapterBaseProps {
@@ -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
  }
@@ -50,6 +50,8 @@ export interface IValidateStyle extends IStyleWithSpacing {
50
50
  subtitle?: IContentField<string>;
51
51
  alert_success?: IContentField<string>;
52
52
  label_name?: IContentField<string>;
53
+ /** Label for the timezone select (anonymous-user activation form). */
54
+ label_timezone?: IContentField<string>;
53
55
  name_placeholder?: IContentField<string>;
54
56
  name_description?: IContentField<string>;
55
57
  label_activate?: IContentField<string>;
@@ -64,16 +66,16 @@ export interface IValidateStyle extends IStyleWithSpacing {
64
66
  label_update?: IContentField<string>;
65
67
  label_cancel?: IContentField<string>;
66
68
  // RF-21: shared with form-log/form-record so the mobile custom form matches.
67
- shared_buttons_size?: IContentField<string>;
68
- shared_buttons_radius?: IContentField<string>;
69
- shared_buttons_variant?: IContentField<string>;
70
- shared_buttons_position?: IContentField<string>;
71
- shared_buttons_order?: IContentField<string>;
72
- shared_btn_save_color?: IContentField<string>;
73
- 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>;
74
76
  web_card_shadow?: IContentField<string>;
75
77
  web_card_padding?: IContentField<string>;
76
- shared_radius?: IContentField<TMantineRadius>;
78
+ radius?: IContentField<TMantineRadius>;
77
79
  web_border?: IContentField<string>;
78
80
  /** Activation lifecycle status text (shown after the registration email). */
79
81
  loading_title?: IContentField<string>;
@@ -88,6 +90,8 @@ export interface IValidateStyle extends IStyleWithSpacing {
88
90
 
89
91
  export interface IResetPasswordStyle extends IStyleWithSpacing {
90
92
  style_name: 'reset-password';
93
+ /** Submit/link-button colour (cross-platform, via the shared mapper). */
94
+ color?: IContentField<TMantineColor>;
91
95
  label_pw_reset?: IContentField<string>;
92
96
  alert_success?: IContentField<string>;
93
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
 
@@ -17,24 +17,40 @@ export type TMantineUseInputWrapper = '0' | '1';
17
17
  export type TMantineTranslatable = '0' | '1';
18
18
  export type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
19
19
  export type TSharedLabelPosition = 'left' | 'right';
20
+ // Mobile-only HeroUI Native knobs (no web/Mantine equivalent). The web
21
+ // renderer ignores `mobile_*`; only the mobile renderers read these.
22
+ export type TMobileSelectPresentation = 'bottom-sheet' | 'dialog' | 'popover';
23
+ export type TMobileFieldVariant = 'primary' | 'secondary';
20
24
 
21
25
  export interface IFormStyle extends IStyleWithSpacing {
22
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>;
23
31
  btn_save_label?: IContentField<string>;
24
32
  alert_success?: IContentField<string>;
33
+ /** Translatable heading of the success alert (default "Success"). */
34
+ alert_success_title?: IContentField<string>;
25
35
  name?: IContentField<string>; redirect_at_end?: IContentField<string>;
26
36
  btn_cancel_url?: IContentField<string>;
27
37
  btn_cancel_label?: IContentField<string>;
28
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>;
29
45
  // RF-21: button knobs are portable to the mobile custom form (not a 1:1
30
46
  // component map). Promoted web_* -> shared_* so both renderers read them.
31
- shared_buttons_size?: IContentField<string>;
32
- shared_buttons_radius?: IContentField<string>;
33
- shared_buttons_variant?: IContentField<string>;
34
- shared_buttons_position?: IContentField<string>;
35
- shared_buttons_order?: IContentField<string>;
36
- shared_btn_save_color?: IContentField<string>;
37
- 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>;
38
54
  }
39
55
 
40
56
  export interface IFormLogStyle extends IFormStyle {
@@ -44,7 +60,7 @@ export interface IFormLogStyle extends IFormStyle {
44
60
  export interface IFormRecordStyle extends IFormStyle {
45
61
  style_name: 'form-record';
46
62
  btn_update_label?: IContentField<string>;
47
- shared_btn_update_color?: IContentField<string>;
63
+ btn_update_color?: IContentField<string>;
48
64
  }
49
65
 
50
66
  export interface IInputStyle extends IBaseStyle {
@@ -70,14 +86,16 @@ export interface ITextInputStyle extends IStyleWithSpacing {
70
86
  is_required?: IContentField<string>;
71
87
  disabled?: IContentField<string>;
72
88
  web_left_icon?: IContentField<string>;
73
- web_right_icon?: IContentField<string>; shared_size?: IContentField<TSharedSize>;
74
- shared_radius?: IContentField<TSharedRadius>;
89
+ web_right_icon?: IContentField<string>; size?: IContentField<TSharedSize>;
90
+ radius?: IContentField<TSharedRadius>;
75
91
  web_text_input_variant?: IContentField<TMantineTextInputVariant>;
76
92
  // Capability pass (2026-06-22): max length (web + mobile) + mobile keyboard knobs.
77
- shared_max_length?: IContentField<string>;
93
+ max_length?: IContentField<string>;
78
94
  mobile_keyboard_type?: IContentField<string>;
79
95
  mobile_auto_capitalize?: IContentField<string>;
80
96
  mobile_secure_entry?: IContentField<string>;
97
+ // Mobile-only HeroUI Native field variant (primary = bordered, secondary = filled).
98
+ mobile_input_variant?: IContentField<TMobileFieldVariant>;
81
99
  translatable?: IContentField<TMantineTranslatable>;
82
100
  }
83
101
 
@@ -96,17 +114,19 @@ export interface ITextareaStyle extends IStyleWithSpacing {
96
114
  web_left_icon?: IContentField<string>;
97
115
  web_right_icon?: IContentField<string>;
98
116
  // RF-18: row sizing is portable (mobile maps to numberOfLines / auto-grow).
99
- shared_autosize?: IContentField<TMantineTextareaAutosize>;
100
- shared_min_rows?: IContentField<string>;
101
- shared_max_rows?: IContentField<string>;
117
+ autosize?: IContentField<TMantineTextareaAutosize>;
118
+ min_rows?: IContentField<string>;
119
+ max_rows?: IContentField<string>;
102
120
  // RF-16: resize/variant have no clean React Native peer — stay web-only.
103
121
  web_textarea_resize?: IContentField<TMantineTextareaResize>;
104
- shared_size?: IContentField<TSharedSize>;
105
- shared_radius?: IContentField<TSharedRadius>;
122
+ size?: IContentField<TSharedSize>;
123
+ radius?: IContentField<TSharedRadius>;
106
124
  web_textarea_variant?: IContentField<TMantineTextareaVariant>;
107
125
  // Capability pass (2026-06-22): max length (web + mobile) + mobile auto-capitalize.
108
- shared_max_length?: IContentField<string>;
126
+ max_length?: IContentField<string>;
109
127
  mobile_auto_capitalize?: IContentField<string>;
128
+ // Mobile-only HeroUI Native field variant (primary = bordered, secondary = filled).
129
+ mobile_textarea_variant?: IContentField<TMobileFieldVariant>;
110
130
  translatable?: IContentField<TMantineTranslatable>;
111
131
  }
112
132
 
@@ -128,6 +148,7 @@ export interface IRichTextEditorStyle extends IStyleWithSpacing {
128
148
 
129
149
  export interface ISelectStyle extends IBaseStyle {
130
150
  style_name: 'select';
151
+ label?: IContentField<string>;
131
152
  is_required?: IContentField<string>;
132
153
  name?: IContentField<string>;
133
154
  value?: IContentField<string>;
@@ -138,10 +159,13 @@ export interface ISelectStyle extends IBaseStyle {
138
159
  // RF-17: searchable/clearable are portable behaviour (was the stale
139
160
  // web-only `live_search` / `allow_clear`; mobile maps to search-field /
140
161
  // clear affordance where the adapter supports it).
141
- shared_searchable?: IContentField<string>;
162
+ searchable?: IContentField<string>;
142
163
  disabled?: IContentField<string>;
143
164
  image_selector?: IContentField<string>;
144
- shared_clearable?: IContentField<string>;
165
+ clearable?: IContentField<string>;
166
+ // Mobile-only: how the option list opens (HeroUI Native Select.Content
167
+ // presentation). Empty = renderer default (bottom-sheet).
168
+ mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
145
169
  }
146
170
 
147
171
  export interface IRadioStyle extends IStyleWithSpacing {
@@ -153,9 +177,9 @@ export interface IRadioStyle extends IStyleWithSpacing {
153
177
  is_required?: IContentField<string>;
154
178
  items?: IContentField<unknown[]>;
155
179
  is_inline?: IContentField<string>;
156
- shared_orientation?: IContentField<string>;
157
- shared_size?: IContentField<TSharedSize>;
158
- shared_color?: IContentField<TMantineColor>;
180
+ orientation?: IContentField<string>;
181
+ size?: IContentField<TSharedSize>;
182
+ color?: IContentField<TMantineColor>;
159
183
  radio_options?: IContentField<string>;
160
184
  web_radio_label_position?: IContentField<string>;
161
185
  web_radio_variant?: IContentField<string>;
@@ -174,12 +198,14 @@ export interface ICheckboxStyle extends IStyleWithSpacing {
174
198
  checkbox_value?: IContentField<string>;
175
199
  web_checkbox_icon?: IContentField<string>;
176
200
  // Label side (left/right) honoured on both platforms.
177
- shared_label_position?: IContentField<TSharedLabelPosition>;
201
+ label_position?: IContentField<TSharedLabelPosition>;
178
202
  description?: IContentField<string>;
179
203
  disabled?: IContentField<string>;
180
- shared_size?: IContentField<TSharedSize>;
181
- shared_radius?: IContentField<TSharedRadius>;
182
- 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>;
207
+ // Mobile-only HeroUI Native checkbox variant (primary / secondary).
208
+ mobile_checkbox_variant?: IContentField<TMobileFieldVariant>;
183
209
  }
184
210
 
185
211
  export interface ISliderStyle extends IStyleWithSpacing {
@@ -191,15 +217,17 @@ export interface ISliderStyle extends IStyleWithSpacing {
191
217
  web_numeric_min?: IContentField<string>;
192
218
  web_numeric_max?: IContentField<string>;
193
219
  web_numeric_step?: IContentField<string>;
194
- shared_size?: IContentField<TSharedSize>;
195
- shared_color?: IContentField<TMantineColor>;
196
- shared_radius?: IContentField<TSharedRadius>;
220
+ size?: IContentField<TSharedSize>;
221
+ color?: IContentField<TMantineColor>;
222
+ radius?: IContentField<TSharedRadius>;
197
223
  disabled?: IContentField<string>; slider_marks_values?: IContentField<string>;
198
224
  web_slider_show_label?: IContentField<string>;
199
225
  web_slider_labels_always_on?: IContentField<string>;
200
226
  web_slider_inverted?: IContentField<string>;
201
227
  web_slider_thumb_size?: IContentField<string>;
202
228
  web_slider_required?: IContentField<string>;
229
+ // Mobile-only: toggle the HeroUI Native Slider.Output value bubble.
230
+ mobile_slider_show_value?: IContentField<string>;
203
231
  }
204
232
 
205
233
  export interface IRangeSliderStyle extends IStyleWithSpacing {
@@ -215,10 +243,13 @@ export interface IRangeSliderStyle extends IStyleWithSpacing {
215
243
  web_range_slider_show_label?: IContentField<string>;
216
244
  web_range_slider_labels_always_on?: IContentField<string>;
217
245
  web_range_slider_inverted?: IContentField<string>;
218
- shared_size?: IContentField<TSharedSize>;
219
- shared_color?: IContentField<TMantineColor>;
220
- shared_radius?: IContentField<TSharedRadius>;
221
- disabled?: IContentField<string>;}
246
+ size?: IContentField<TSharedSize>;
247
+ color?: IContentField<TMantineColor>;
248
+ radius?: IContentField<TSharedRadius>;
249
+ disabled?: IContentField<string>;
250
+ // Mobile-only: toggle the HeroUI Native Slider.Output value bubble.
251
+ mobile_range_slider_show_value?: IContentField<string>;
252
+ }
222
253
 
223
254
  export interface IDatePickerStyle extends IStyleWithSpacing {
224
255
  style_name: 'datepicker';
@@ -248,8 +279,8 @@ export interface IDatePickerStyle extends IStyleWithSpacing {
248
279
  web_datepicker_date_format?: IContentField<string>;
249
280
  web_datepicker_time_grid_config?: IContentField<string>;
250
281
  web_datepicker_with_seconds?: IContentField<string>;
251
- shared_size?: IContentField<TSharedSize>;
252
- shared_radius?: IContentField<TSharedRadius>;}
282
+ size?: IContentField<TSharedSize>;
283
+ radius?: IContentField<TSharedRadius>;}
253
284
 
254
285
  export interface ISwitchStyle extends IStyleWithSpacing {
255
286
  style_name: 'switch';
@@ -257,9 +288,9 @@ export interface ISwitchStyle extends IStyleWithSpacing {
257
288
  description?: IContentField<string>;
258
289
  switch_on_label?: IContentField<string>;
259
290
  switch_off_label?: IContentField<string>;
260
- shared_size?: IContentField<TSharedSize>;
261
- shared_color?: IContentField<TMantineColor>;
262
- shared_radius?: IContentField<TSharedRadius>;
291
+ size?: IContentField<TSharedSize>;
292
+ color?: IContentField<TMantineColor>;
293
+ radius?: IContentField<TSharedRadius>;
263
294
  disabled?: IContentField<string>; name?: IContentField<string>;
264
295
  is_required?: IContentField<string>;
265
296
  web_label_position?: IContentField<string>;
@@ -287,6 +318,9 @@ export interface IComboboxStyle extends IStyleWithSpacing {
287
318
  web_combobox_clearable?: IContentField<string>;
288
319
  web_combobox_separator?: IContentField<string>;
289
320
  web_multi_select_max_values?: IContentField<string>;
321
+ // Mobile-only: reuses the select renderer; how the option list opens
322
+ // (HeroUI Native Select.Content presentation). Empty = default bottom-sheet.
323
+ mobile_select_presentation?: IContentField<TMobileSelectPresentation>;
290
324
  }
291
325
 
292
326
  export interface IColorInputStyle extends IStyleWithSpacing {
@@ -298,8 +332,8 @@ export interface IColorInputStyle extends IStyleWithSpacing {
298
332
  web_color_input_with_eye_dropper?: IContentField<string>;
299
333
  web_color_input_disallow_input?: IContentField<string>;
300
334
  web_color_input_with_preview?: IContentField<string>;
301
- shared_size?: IContentField<TSharedSize>;
302
- shared_radius?: IContentField<TSharedRadius>;
335
+ size?: IContentField<TSharedSize>;
336
+ radius?: IContentField<TSharedRadius>;
303
337
  placeholder?: IContentField<string>;
304
338
  name?: IContentField<string>;
305
339
  value?: IContentField<string>;
@@ -319,8 +353,8 @@ export interface IColorPickerStyle extends IStyleWithSpacing {
319
353
  color_picker_alpha_label?: IContentField<string>;
320
354
  web_color_picker_as_button?: IContentField<string>;
321
355
  web_color_picker_button_label?: IContentField<string>;
322
- shared_size?: IContentField<TSharedSize>;
323
- shared_full_width?: IContentField<string>;
356
+ size?: IContentField<TSharedSize>;
357
+ full_width?: IContentField<string>;
324
358
  name?: IContentField<string>;
325
359
  value?: IContentField<string>;
326
360
  description?: IContentField<string>;
@@ -334,8 +368,8 @@ export interface IFileInputStyle extends IStyleWithSpacing {
334
368
  web_file_input_max_size?: IContentField<string>;
335
369
  web_file_input_max_files?: IContentField<string>;
336
370
  web_file_input_drag_drop?: IContentField<string>;
337
- shared_size?: IContentField<TSharedSize>;
338
- shared_radius?: IContentField<TSharedRadius>;
371
+ size?: IContentField<TSharedSize>;
372
+ radius?: IContentField<TSharedRadius>;
339
373
  web_left_icon?: IContentField<string>;
340
374
  web_right_icon?: IContentField<string>;
341
375
  placeholder?: IContentField<string>;
@@ -358,8 +392,8 @@ export interface INumberInputStyle extends IStyleWithSpacing {
358
392
  web_number_input_thousand_separator?: IContentField<string>;
359
393
  web_number_input_allow_negative?: IContentField<string>;
360
394
  web_number_input_hide_controls?: IContentField<string>;
361
- shared_size?: IContentField<TSharedSize>;
362
- shared_radius?: IContentField<TSharedRadius>;
395
+ size?: IContentField<TSharedSize>;
396
+ radius?: IContentField<TSharedRadius>;
363
397
  placeholder?: IContentField<string>;
364
398
  label?: IContentField<string>;
365
399
  description?: IContentField<string>;
@@ -371,10 +405,10 @@ export interface INumberInputStyle extends IStyleWithSpacing {
371
405
  export interface ISegmentedControlStyle extends IStyleWithSpacing {
372
406
  style_name: 'segmented-control';
373
407
  segmented_control_data?: IContentField<string>;
374
- shared_orientation?: IContentField<string>;
375
- shared_size?: IContentField<TSharedSize>;
376
- shared_radius?: IContentField<TSharedRadius>;
377
- shared_color?: IContentField<TMantineColor>;
408
+ orientation?: IContentField<string>;
409
+ size?: IContentField<TSharedSize>;
410
+ radius?: IContentField<TSharedRadius>;
411
+ color?: IContentField<TMantineColor>;
378
412
  fullwidth?: IContentField<string>;
379
413
  disabled?: IContentField<string>;
380
414
  readonly?: IContentField<string>; web_segmented_control_item_border?: IContentField<string>;
@@ -399,29 +433,29 @@ export interface IRatingStyle extends IStyleWithSpacing {
399
433
  web_rating_empty_icon?: IContentField<string>;
400
434
  web_rating_full_icon?: IContentField<string>;
401
435
  web_rating_highlight_selected_only?: IContentField<string>;
402
- shared_size?: IContentField<TSharedSize>;
403
- shared_color?: IContentField<TMantineColor>;}
436
+ size?: IContentField<TSharedSize>;
437
+ color?: IContentField<TMantineColor>;}
404
438
 
405
439
  export interface IProgressStyle extends IStyleWithSpacing {
406
440
  style_name: 'progress';
407
441
  value?: IContentField<string>;
408
- shared_color?: IContentField<TMantineColor>;
409
- shared_radius?: IContentField<TSharedRadius>;
410
- shared_size?: IContentField<TSharedSize>;
442
+ color?: IContentField<TMantineColor>;
443
+ radius?: IContentField<TSharedRadius>;
444
+ size?: IContentField<TSharedSize>;
411
445
  web_progress_striped?: IContentField<string>;
412
446
  web_progress_animated?: IContentField<string>;
413
447
  web_progress_transition_duration?: IContentField<TMantineProgressTransition>;}
414
448
 
415
449
  export interface IProgressRootStyle extends IBaseStyle {
416
450
  style_name: 'progress-root';
417
- shared_size?: IContentField<TSharedSize>;
418
- shared_radius?: IContentField<TSharedRadius>;
451
+ size?: IContentField<TSharedSize>;
452
+ radius?: IContentField<TSharedRadius>;
419
453
  web_progress_auto_contrast?: IContentField<string>;}
420
454
 
421
455
  export interface IProgressSectionStyle extends IBaseStyle {
422
456
  style_name: 'progress-section';
423
457
  value?: IContentField<string>;
424
- shared_color?: IContentField<TMantineColor>;
458
+ color?: IContentField<TMantineColor>;
425
459
  web_progress_striped?: IContentField<string>;
426
460
  web_progress_animated?: IContentField<string>;
427
461
  label?: IContentField<string>;
@@ -437,6 +471,12 @@ export interface IShowUserInputEntry {
437
471
 
438
472
  export interface IShowUserInputStyle extends IBaseStyle {
439
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>;
478
+ /** Source data table the form entries are read from (backend data binding). */
479
+ data_table?: IContentField<string>;
440
480
  own_entries_only?: IContentField<string>;
441
481
  show_timestamp?: IContentField<string>;
442
482
  dt_sortable?: IContentField<string>;
@@ -450,7 +490,7 @@ export interface IShowUserInputStyle extends IBaseStyle {
450
490
  fields_map?: IContentField<string>;
451
491
  delete_modal_title?: IContentField<string>;
452
492
  delete_modal_body?: IContentField<string>;
453
- shared_spacing?: IContentField<string>;
493
+ spacing?: IContentField<string>;
454
494
  web_table_striped?: IContentField<string>;
455
495
  web_table_highlight_on_hover?: IContentField<string>;
456
496
  web_table_with_table_border?: IContentField<string>;