@selfhelp/shared 1.14.20 → 1.14.24
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 +109 -0
- package/dist/{common-DMm4kymA.d.mts → common-qaDIAYS3.d.mts} +5 -4
- package/dist/{common-DMm4kymA.d.ts → common-qaDIAYS3.d.ts} +5 -4
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +99 -175
- package/dist/index.mjs +99 -172
- package/dist/plugin-sdk/index.d.mts +2 -2
- package/dist/plugin-sdk/index.d.ts +2 -2
- package/dist/plugin-sdk/index.js +90 -91
- package/dist/plugin-sdk/index.mjs +90 -91
- package/dist/registry/index.d.mts +3 -3
- package/dist/registry/index.d.ts +3 -3
- package/dist/registry/index.js +90 -90
- package/dist/registry/index.mjs +90 -90
- package/dist/{styles.registry-B8IaEULk.d.ts → styles.registry-4W0LzmZB.d.mts} +194 -365
- package/dist/{styles.registry-DhkxrV2-.d.mts → styles.registry-D6xMm5VR.d.ts} +194 -365
- package/dist/theme/index.d.mts +42 -91
- package/dist/theme/index.d.ts +42 -91
- package/dist/theme/index.js +9 -85
- package/dist/theme/index.mjs +9 -82
- package/dist/theme/tailwind.d.mts +2 -2
- package/dist/theme/tailwind.d.ts +2 -2
- package/package.json +1 -1
- package/src/plugin-sdk/define.ts +0 -1
- package/src/registry/__tests__/platform.test.ts +0 -4
- package/src/registry/__tests__/registry.test.ts +0 -2
- package/src/registry/styles.registry.ts +90 -96
- package/src/theme/__tests__/mantineVariant.test.ts +2 -2
- package/src/theme/__tests__/semantic.test.ts +34 -71
- package/src/theme/mantineVariant.ts +3 -3
- package/src/theme/semantic.ts +45 -185
- package/src/theme/tailwind.ts +2 -2
- package/src/theme/tokens.ts +3 -3
- package/src/types/__tests__/mobile-adapters.test.ts +1 -1
- package/src/types/mantine/common.ts +4 -3
- package/src/types/mobile-adapters.ts +4 -4
- package/src/types/styles/auth.ts +10 -10
- package/src/types/styles/base.ts +2 -2
- package/src/types/styles/composite.ts +7 -9
- package/src/types/styles/error.ts +9 -9
- package/src/types/styles/forms.ts +74 -58
- package/src/types/styles/interactive.ts +34 -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
|
@@ -15,14 +15,15 @@ export type TMantineRadius = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string;
|
|
|
15
15
|
export type TMantineSpacing = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'none' | string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Cross-platform
|
|
18
|
+
* Cross-platform 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 `
|
|
20
|
+
* only exposes `sm | md | lg`, so the portable unprefixed `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.
|
|
24
24
|
*
|
|
25
|
-
*
|
|
25
|
+
* Genuinely web-specific size/radius fields (typed `TMantineSize` / `TMantineRadius`)
|
|
26
|
+
* keep the full Mantine range.
|
|
26
27
|
*/
|
|
27
28
|
export type TSharedSize = 'sm' | 'md' | 'lg';
|
|
28
29
|
export type TSharedRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
@@ -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 `
|
|
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 `
|
|
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 `
|
|
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
|
-
* `
|
|
138
|
+
* `label_position` field (Mantine `labelPosition` on web). Defaults
|
|
139
139
|
* to `right`.
|
|
140
140
|
*/
|
|
141
141
|
labelPosition?: 'left' | 'right';
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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>;
|
package/src/types/styles/base.ts
CHANGED
|
@@ -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 `
|
|
69
|
-
|
|
68
|
+
/** Portable box-model spacing (margin + padding). Backend field `spacing`; every spacing-capable style uses this single unified field. */
|
|
69
|
+
spacing?: IContentField<string>;
|
|
70
70
|
}
|
|
@@ -6,7 +6,6 @@ import type { IBaseStyle, IContentField, IStyleWithSpacing } from './base';
|
|
|
6
6
|
import type {
|
|
7
7
|
TMantineColor,
|
|
8
8
|
TMantineRadius,
|
|
9
|
-
TMantineSpacing,
|
|
10
9
|
TMantineOrientation,
|
|
11
10
|
TMantineAccordionVariant,
|
|
12
11
|
TMantineTabsVariant,
|
|
@@ -43,16 +42,16 @@ export interface IAccordionStyle extends IStyleWithSpacing {
|
|
|
43
42
|
// Cross-platform variant token: web -> Mantine variant
|
|
44
43
|
// (default/contained/filled/separated), mobile -> HeroUI Native
|
|
45
44
|
// default ('default') / surface (contained/filled/separated).
|
|
46
|
-
|
|
45
|
+
accordion_variant?: IContentField<TMantineAccordionVariant>;
|
|
47
46
|
// RF-19: selection mode (single vs multiple open) is portable; mobile reads it.
|
|
48
|
-
|
|
47
|
+
multiple?: IContentField<TMantineAccordionMultiple>;
|
|
49
48
|
web_accordion_chevron_position?: IContentField<TMantineAccordionChevronPosition>;
|
|
50
49
|
web_accordion_chevron_size?: IContentField<string>;
|
|
51
50
|
web_accordion_disable_chevron_rotation?: IContentField<TMantineAccordionDisableChevronRotation>;
|
|
52
51
|
web_accordion_loop?: IContentField<TMantineAccordionLoop>;
|
|
53
52
|
web_accordion_transition_duration?: IContentField<string>;
|
|
54
53
|
web_accordion_default_value?: IContentField<string>;
|
|
55
|
-
|
|
54
|
+
radius?: IContentField<TSharedRadius>;}
|
|
56
55
|
|
|
57
56
|
export interface IAccordionItemStyle extends IStyleWithSpacing {
|
|
58
57
|
style_name: 'accordion-item';
|
|
@@ -68,7 +67,7 @@ export interface ITabsStyle extends IStyleWithSpacing {
|
|
|
68
67
|
web_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
69
68
|
web_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
70
69
|
web_tabs_radius?: IContentField<TMantineRadius>;
|
|
71
|
-
|
|
70
|
+
color?: IContentField<TMantineColor>;
|
|
72
71
|
// Capability pass (2026-06-22): list layout + panel mount behaviour.
|
|
73
72
|
web_tabs_grow?: IContentField<string>;
|
|
74
73
|
web_tabs_justify?: IContentField<string>;
|
|
@@ -93,7 +92,7 @@ export interface ITimelineStyle extends IStyleWithSpacing {
|
|
|
93
92
|
web_timeline_active?: IContentField<string>;
|
|
94
93
|
web_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
95
94
|
web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
96
|
-
|
|
95
|
+
color?: IContentField<TMantineColor>;}
|
|
97
96
|
|
|
98
97
|
/**
|
|
99
98
|
* A single entry inside a `timeline`. Child-only style; placement is enforced
|
|
@@ -104,13 +103,12 @@ export interface ITimelineItemStyle extends IBaseStyle {
|
|
|
104
103
|
title?: IContentField<string>;
|
|
105
104
|
web_timeline_item_bullet?: IContentField<string>;
|
|
106
105
|
web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
107
|
-
|
|
106
|
+
color?: IContentField<TMantineColor>;}
|
|
108
107
|
|
|
109
108
|
export interface IListStyle extends IStyleWithSpacing {
|
|
110
109
|
style_name: 'list';
|
|
111
110
|
web_list_type?: IContentField<TMantineListType>;
|
|
112
|
-
|
|
113
|
-
shared_size?: IContentField<TSharedSize>; web_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
111
|
+
size?: IContentField<TSharedSize>; web_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
114
112
|
web_list_with_padding?: IContentField<TMantineListWithPadding>;
|
|
115
113
|
web_list_center?: IContentField<TMantineListCenter>;
|
|
116
114
|
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
|
-
|
|
16
|
-
|
|
15
|
+
color?: IContentField<string>;
|
|
16
|
+
radius?: IContentField<TSharedRadius>;
|
|
17
17
|
web_shadow?: IContentField<string>;
|
|
18
|
-
|
|
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
|
-
|
|
29
|
-
|
|
28
|
+
color?: IContentField<string>;
|
|
29
|
+
radius?: IContentField<TSharedRadius>;
|
|
30
30
|
web_shadow?: IContentField<string>;
|
|
31
|
-
|
|
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
|
-
|
|
41
|
-
|
|
40
|
+
color?: IContentField<string>;
|
|
41
|
+
radius?: IContentField<TSharedRadius>;
|
|
42
42
|
web_shadow?: IContentField<string>;
|
|
43
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
-
|
|
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>;
|
|
78
|
-
|
|
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
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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
|
-
|
|
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
|
-
|
|
162
|
+
searchable?: IContentField<string>;
|
|
151
163
|
disabled?: IContentField<string>;
|
|
152
164
|
image_selector?: IContentField<string>;
|
|
153
|
-
|
|
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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
201
|
+
label_position?: IContentField<TSharedLabelPosition>;
|
|
190
202
|
description?: IContentField<string>;
|
|
191
203
|
disabled?: IContentField<string>;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
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
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
271
|
-
|
|
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
|
-
|
|
280
|
-
|
|
281
|
-
|
|
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
|
-
|
|
324
|
-
|
|
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
|
-
|
|
345
|
-
|
|
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
|
-
|
|
360
|
-
|
|
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
|
-
|
|
384
|
-
|
|
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
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
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
|
-
|
|
425
|
-
|
|
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
|
-
|
|
431
|
-
|
|
432
|
-
|
|
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
|
-
|
|
440
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
|
|
95
|
-
/** Web-only variant override (e.g. `dot`); empty falls back to
|
|
94
|
+
variant?: IContentField<TMantineBadgeVariant>;
|
|
95
|
+
/** Web-only variant override (e.g. `dot`); empty falls back to variant. */
|
|
96
96
|
web_variant?: IContentField<TMantineBadgeVariant>;
|
|
97
97
|
/** Render as a circle (equal width/height) for short counts. */
|
|
98
98
|
circle?: IContentField<string>;
|
|
99
|
-
|
|
99
|
+
size?: IContentField<TSharedSize>;
|
|
100
100
|
web_left_icon?: IContentField<string>;
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
156
|
-
|
|
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
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
|
|
171
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|