@selfhelp/shared 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/dist/index.d.mts +133 -4
- package/dist/index.d.ts +133 -4
- package/dist/plugin-sdk/index.d.mts +1 -1
- package/dist/plugin-sdk/index.d.ts +1 -1
- package/dist/registry/index.d.mts +2 -2
- package/dist/registry/index.d.ts +2 -2
- package/dist/{styles.registry-DkoT-FmN.d.mts → styles.registry-B8OzYnXv.d.mts} +1 -66
- package/dist/{styles.registry-BV1iF7k-.d.ts → styles.registry-CtM17edk.d.ts} +1 -66
- package/package.json +1 -1
- package/src/types/__tests__/mobile-adapters.test.ts +80 -0
- package/src/types/index.ts +1 -0
- package/src/types/mobile-adapters.ts +144 -0
- package/src/types/styles/auth.ts +1 -6
- package/src/types/styles/composite.ts +8 -24
- package/src/types/styles/forms.ts +21 -63
- package/src/types/styles/interactive.ts +10 -30
- package/src/types/styles/layout.ts +10 -30
- package/src/types/styles/media.ts +2 -6
- package/src/types/styles/typography.ts +9 -27
- package/src/types/styles/unknown.ts +1 -3
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Mobile UI adapter contract — the SINGLE public source of the capability
|
|
7
|
+
* shape both mobile tiers implement (mobile rendering plan, sections 8.3 / 9).
|
|
8
|
+
*
|
|
9
|
+
* The public mobile app renders CMS styles through these `Mobile*` capability
|
|
10
|
+
* interfaces only, never directly against a UI library, so the build can swap
|
|
11
|
+
* the implementation behind the `@selfhelp/mobile-pro-ui` specifier:
|
|
12
|
+
* - OSS tier -> the public app's in-repo adapters on open `heroui-native` +
|
|
13
|
+
* React Native primitives.
|
|
14
|
+
* - Pro tier -> the private `@selfhelp/mobile-pro-ui` package built on paid
|
|
15
|
+
* HeroUI Pro components.
|
|
16
|
+
*
|
|
17
|
+
* It lives here (not copied into each consumer) so the public app and the Pro
|
|
18
|
+
* package consume ONE contract and cannot silently drift. This module is
|
|
19
|
+
* type-only: it imports `react` types and the shared semantic scales, and
|
|
20
|
+
* pulls in NO React Native runtime dependency, which is why it belongs in
|
|
21
|
+
* `@selfhelp/shared` rather than a separate contract package (plan 8.3).
|
|
22
|
+
*
|
|
23
|
+
* Props are normalized + renderer-agnostic (driven by the shared semantic
|
|
24
|
+
* mapper in this package), NOT raw library props, so both tiers share one
|
|
25
|
+
* contract.
|
|
26
|
+
*/
|
|
27
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
28
|
+
import type { THeroUiButtonVariant, THeroUiSize } from '../theme/semantic';
|
|
29
|
+
|
|
30
|
+
/** Props shared by every adapter (styling + accessibility passthrough). */
|
|
31
|
+
export interface IMobileAdapterBaseProps {
|
|
32
|
+
/** Uniwind/Tailwind class string (from `css_mobile` + spacing). */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Accessibility label for assistive tech. */
|
|
35
|
+
accessibilityLabel?: string;
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface IMobileButtonProps extends IMobileAdapterBaseProps {
|
|
40
|
+
label?: string;
|
|
41
|
+
onPress?: () => void;
|
|
42
|
+
variant?: THeroUiButtonVariant;
|
|
43
|
+
size?: THeroUiSize;
|
|
44
|
+
isDisabled?: boolean;
|
|
45
|
+
isLoading?: boolean;
|
|
46
|
+
isIconOnly?: boolean;
|
|
47
|
+
fullWidth?: boolean;
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface IMobileTextProps extends IMobileAdapterBaseProps {
|
|
52
|
+
children?: ReactNode;
|
|
53
|
+
/** Map to a heading level / emphasis; renderer decides exact styling. */
|
|
54
|
+
emphasis?: 'title' | 'body' | 'muted';
|
|
55
|
+
numberOfLines?: number;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface IMobileContainerProps extends IMobileAdapterBaseProps {
|
|
59
|
+
children?: ReactNode;
|
|
60
|
+
fullWidth?: boolean;
|
|
61
|
+
/** Resolved padding in px (from shared spacing). */
|
|
62
|
+
paddingPx?: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface IMobileCardProps extends IMobileAdapterBaseProps {
|
|
66
|
+
children?: ReactNode;
|
|
67
|
+
/** Resolved corner radius in px (from shared radius). */
|
|
68
|
+
radiusPx?: number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface IMobileInputProps extends IMobileAdapterBaseProps {
|
|
72
|
+
value?: string;
|
|
73
|
+
onChangeText?: (next: string) => void;
|
|
74
|
+
placeholder?: string;
|
|
75
|
+
label?: string;
|
|
76
|
+
isDisabled?: boolean;
|
|
77
|
+
isInvalid?: boolean;
|
|
78
|
+
isRequired?: boolean;
|
|
79
|
+
secureTextEntry?: boolean;
|
|
80
|
+
keyboardType?: 'default' | 'email-address' | 'numeric' | 'phone-pad';
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface IMobileTextareaProps extends IMobileAdapterBaseProps {
|
|
84
|
+
value?: string;
|
|
85
|
+
onChangeText?: (next: string) => void;
|
|
86
|
+
placeholder?: string;
|
|
87
|
+
label?: string;
|
|
88
|
+
isDisabled?: boolean;
|
|
89
|
+
isInvalid?: boolean;
|
|
90
|
+
isRequired?: boolean;
|
|
91
|
+
/** Minimum visible rows (maps to RN `numberOfLines`). */
|
|
92
|
+
numberOfLines?: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface IMobileSwitchProps extends IMobileAdapterBaseProps {
|
|
96
|
+
isSelected?: boolean;
|
|
97
|
+
onSelectedChange?: (next: boolean) => void;
|
|
98
|
+
isDisabled?: boolean;
|
|
99
|
+
label?: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface IMobileCheckboxProps extends IMobileAdapterBaseProps {
|
|
103
|
+
isSelected?: boolean;
|
|
104
|
+
onSelectedChange?: (next: boolean) => void;
|
|
105
|
+
isDisabled?: boolean;
|
|
106
|
+
label?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface IMobileSelectOption {
|
|
110
|
+
value: string;
|
|
111
|
+
label: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface IMobileSelectProps extends IMobileAdapterBaseProps {
|
|
115
|
+
value?: string;
|
|
116
|
+
onValueChange?: (next: string) => void;
|
|
117
|
+
options: readonly IMobileSelectOption[];
|
|
118
|
+
placeholder?: string;
|
|
119
|
+
isDisabled?: boolean;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface IMobileModalProps extends IMobileAdapterBaseProps {
|
|
123
|
+
isOpen: boolean;
|
|
124
|
+
onClose: () => void;
|
|
125
|
+
title?: string;
|
|
126
|
+
children?: ReactNode;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The full adapter set every tier must provide. Both the public app's OSS
|
|
131
|
+
* index and the private Pro package satisfy this exact shape.
|
|
132
|
+
*/
|
|
133
|
+
export interface IMobileUiAdapters {
|
|
134
|
+
MobileButton: ComponentType<IMobileButtonProps>;
|
|
135
|
+
MobileText: ComponentType<IMobileTextProps>;
|
|
136
|
+
MobileContainer: ComponentType<IMobileContainerProps>;
|
|
137
|
+
MobileCard: ComponentType<IMobileCardProps>;
|
|
138
|
+
MobileInput: ComponentType<IMobileInputProps>;
|
|
139
|
+
MobileTextarea: ComponentType<IMobileTextareaProps>;
|
|
140
|
+
MobileSwitch: ComponentType<IMobileSwitchProps>;
|
|
141
|
+
MobileCheckbox: ComponentType<IMobileCheckboxProps>;
|
|
142
|
+
MobileSelect: ComponentType<IMobileSelectProps>;
|
|
143
|
+
MobileModal: ComponentType<IMobileModalProps>;
|
|
144
|
+
}
|
package/src/types/styles/auth.ts
CHANGED
|
@@ -13,7 +13,6 @@ export interface ILoginStyle extends IStyleWithSpacing {
|
|
|
13
13
|
label_pw_reset?: IContentField<string>;
|
|
14
14
|
alert_fail?: IContentField<string>;
|
|
15
15
|
login_title?: IContentField<string>;
|
|
16
|
-
type?: IContentField<string>;
|
|
17
16
|
/** Label of the link that opens the registration page. */
|
|
18
17
|
label_register?: IContentField<string>;
|
|
19
18
|
}
|
|
@@ -87,12 +86,8 @@ export interface IValidateStyle extends IStyleWithSpacing {
|
|
|
87
86
|
export interface IResetPasswordStyle extends IStyleWithSpacing {
|
|
88
87
|
style_name: 'reset-password';
|
|
89
88
|
label_pw_reset?: IContentField<string>;
|
|
90
|
-
type?: IContentField<string>;
|
|
91
89
|
alert_success?: IContentField<string>;
|
|
92
|
-
placeholder?: IContentField<string>;
|
|
93
|
-
subject_user?: IContentField<string>;
|
|
94
|
-
is_html?: IContentField<string>;
|
|
95
|
-
reset_title?: IContentField<string>;
|
|
90
|
+
placeholder?: IContentField<string>; reset_title?: IContentField<string>;
|
|
96
91
|
reset_label_pw?: IContentField<string>;
|
|
97
92
|
reset_pw_placeholder?: IContentField<string>;
|
|
98
93
|
reset_label_pw_confirm?: IContentField<string>;
|
|
@@ -48,18 +48,14 @@ export interface IAccordionStyle extends IStyleWithSpacing {
|
|
|
48
48
|
web_accordion_loop?: IContentField<TMantineAccordionLoop>;
|
|
49
49
|
web_accordion_transition_duration?: IContentField<string>;
|
|
50
50
|
web_accordion_default_value?: IContentField<string>;
|
|
51
|
-
shared_radius?: IContentField<TSharedRadius>;
|
|
52
|
-
use_web_style?: IContentField<string>;
|
|
53
|
-
}
|
|
51
|
+
shared_radius?: IContentField<TSharedRadius>;}
|
|
54
52
|
|
|
55
53
|
export interface IAccordionItemStyle extends IStyleWithSpacing {
|
|
56
54
|
style_name: 'accordion-item';
|
|
57
55
|
web_accordion_item_value?: IContentField<string>;
|
|
58
56
|
label?: IContentField<string>;
|
|
59
57
|
web_accordion_item_icon?: IContentField<string>;
|
|
60
|
-
disabled?: IContentField<string>;
|
|
61
|
-
use_web_style?: IContentField<string>;
|
|
62
|
-
}
|
|
58
|
+
disabled?: IContentField<string>;}
|
|
63
59
|
|
|
64
60
|
export interface ITabsStyle extends IStyleWithSpacing {
|
|
65
61
|
style_name: 'tabs';
|
|
@@ -68,9 +64,7 @@ export interface ITabsStyle extends IStyleWithSpacing {
|
|
|
68
64
|
web_tabs_radius?: IContentField<TMantineRadius>;
|
|
69
65
|
web_color?: IContentField<TMantineColor>;
|
|
70
66
|
web_width?: IContentField<TMantineWidth>;
|
|
71
|
-
web_height?: IContentField<TMantineHeight>;
|
|
72
|
-
use_web_style?: IContentField<string>;
|
|
73
|
-
}
|
|
67
|
+
web_height?: IContentField<TMantineHeight>;}
|
|
74
68
|
|
|
75
69
|
export interface ITabStyle extends IBaseStyle {
|
|
76
70
|
style_name: 'tab';
|
|
@@ -79,9 +73,7 @@ export interface ITabStyle extends IBaseStyle {
|
|
|
79
73
|
web_right_icon?: IContentField<string>;
|
|
80
74
|
web_tab_disabled?: IContentField<string>;
|
|
81
75
|
web_width?: IContentField<TMantineWidth>;
|
|
82
|
-
web_height?: IContentField<TMantineHeight>;
|
|
83
|
-
use_web_style?: IContentField<string>;
|
|
84
|
-
}
|
|
76
|
+
web_height?: IContentField<TMantineHeight>;}
|
|
85
77
|
|
|
86
78
|
export interface ITimelineStyle extends IStyleWithSpacing {
|
|
87
79
|
style_name: 'timeline';
|
|
@@ -90,9 +82,7 @@ export interface ITimelineStyle extends IStyleWithSpacing {
|
|
|
90
82
|
web_timeline_active?: IContentField<string>;
|
|
91
83
|
web_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
92
84
|
web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
93
|
-
web_color?: IContentField<TMantineColor>;
|
|
94
|
-
use_web_style?: IContentField<string>;
|
|
95
|
-
}
|
|
85
|
+
web_color?: IContentField<TMantineColor>;}
|
|
96
86
|
|
|
97
87
|
/**
|
|
98
88
|
* A single entry inside a `timeline`. Child-only style; placement is enforced
|
|
@@ -103,17 +93,13 @@ export interface ITimelineItemStyle extends IBaseStyle {
|
|
|
103
93
|
title?: IContentField<string>;
|
|
104
94
|
web_timeline_item_bullet?: IContentField<string>;
|
|
105
95
|
web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
106
|
-
web_color?: IContentField<TMantineColor>;
|
|
107
|
-
use_web_style?: IContentField<string>;
|
|
108
|
-
}
|
|
96
|
+
web_color?: IContentField<TMantineColor>;}
|
|
109
97
|
|
|
110
98
|
export interface IListStyle extends IStyleWithSpacing {
|
|
111
99
|
style_name: 'list';
|
|
112
100
|
web_list_type?: IContentField<TMantineListType>;
|
|
113
101
|
web_spacing?: IContentField<TMantineSpacing>;
|
|
114
|
-
shared_size?: IContentField<TSharedSize>;
|
|
115
|
-
use_web_style?: IContentField<string>;
|
|
116
|
-
web_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
102
|
+
shared_size?: IContentField<TSharedSize>; web_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
117
103
|
web_list_with_padding?: IContentField<TMantineListWithPadding>;
|
|
118
104
|
web_list_center?: IContentField<TMantineListCenter>;
|
|
119
105
|
web_list_icon?: IContentField<string>;
|
|
@@ -122,9 +108,7 @@ export interface IListStyle extends IStyleWithSpacing {
|
|
|
122
108
|
export interface IListItemStyle extends IStyleWithSpacing {
|
|
123
109
|
style_name: 'list-item';
|
|
124
110
|
web_list_item_content?: IContentField<string>;
|
|
125
|
-
web_list_item_icon?: IContentField<string>;
|
|
126
|
-
use_web_style?: IContentField<string>;
|
|
127
|
-
}
|
|
111
|
+
web_list_item_icon?: IContentField<string>;}
|
|
128
112
|
|
|
129
113
|
export interface IEntryListStyle extends IBaseStyle {
|
|
130
114
|
style_name: 'entry-list';
|
|
@@ -22,9 +22,7 @@ export interface IFormStyle extends IStyleWithSpacing {
|
|
|
22
22
|
style_name: 'form-log' | 'form-record';
|
|
23
23
|
btn_save_label?: IContentField<string>;
|
|
24
24
|
alert_success?: IContentField<string>;
|
|
25
|
-
name?: IContentField<string>;
|
|
26
|
-
is_log?: IContentField<string>;
|
|
27
|
-
redirect_at_end?: IContentField<string>;
|
|
25
|
+
name?: IContentField<string>; redirect_at_end?: IContentField<string>;
|
|
28
26
|
btn_cancel_url?: IContentField<string>;
|
|
29
27
|
btn_cancel_label?: IContentField<string>;
|
|
30
28
|
alert_error?: IContentField<string>;
|
|
@@ -33,9 +31,7 @@ export interface IFormStyle extends IStyleWithSpacing {
|
|
|
33
31
|
btn_save_color?: IContentField<string>;
|
|
34
32
|
btn_cancel_color?: IContentField<string>;
|
|
35
33
|
buttons_variant?: IContentField<string>;
|
|
36
|
-
buttons_position?: IContentField<string>;
|
|
37
|
-
use_web_style?: IContentField<string>;
|
|
38
|
-
}
|
|
34
|
+
buttons_position?: IContentField<string>;}
|
|
39
35
|
|
|
40
36
|
export interface IFormLogStyle extends IFormStyle {
|
|
41
37
|
style_name: 'form-log';
|
|
@@ -70,9 +66,7 @@ export interface ITextInputStyle extends IStyleWithSpacing {
|
|
|
70
66
|
is_required?: IContentField<string>;
|
|
71
67
|
disabled?: IContentField<string>;
|
|
72
68
|
web_left_icon?: IContentField<string>;
|
|
73
|
-
web_right_icon?: IContentField<string>;
|
|
74
|
-
use_web_style?: IContentField<string>;
|
|
75
|
-
shared_size?: IContentField<TSharedSize>;
|
|
69
|
+
web_right_icon?: IContentField<string>; shared_size?: IContentField<TSharedSize>;
|
|
76
70
|
shared_radius?: IContentField<TSharedRadius>;
|
|
77
71
|
web_text_input_variant?: IContentField<TMantineTextInputVariant>;
|
|
78
72
|
translatable?: IContentField<TMantineTranslatable>;
|
|
@@ -98,9 +92,7 @@ export interface ITextareaStyle extends IStyleWithSpacing {
|
|
|
98
92
|
web_textarea_resize?: IContentField<TMantineTextareaResize>;
|
|
99
93
|
shared_size?: IContentField<TSharedSize>;
|
|
100
94
|
shared_radius?: IContentField<TSharedRadius>;
|
|
101
|
-
web_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
102
|
-
use_web_style?: IContentField<string>;
|
|
103
|
-
translatable?: IContentField<TMantineTranslatable>;
|
|
95
|
+
web_textarea_variant?: IContentField<TMantineTextareaVariant>; translatable?: IContentField<TMantineTranslatable>;
|
|
104
96
|
}
|
|
105
97
|
|
|
106
98
|
export interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
@@ -116,9 +108,7 @@ export interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
116
108
|
web_rich_text_editor_placeholder?: IContentField<string>;
|
|
117
109
|
web_rich_text_editor_bubble_menu?: IContentField<string>;
|
|
118
110
|
web_rich_text_editor_text_color?: IContentField<string>;
|
|
119
|
-
web_rich_text_editor_task_list?: IContentField<string>;
|
|
120
|
-
use_web_style?: IContentField<string>;
|
|
121
|
-
translatable?: IContentField<TMantineTranslatable>;
|
|
111
|
+
web_rich_text_editor_task_list?: IContentField<string>; translatable?: IContentField<TMantineTranslatable>;
|
|
122
112
|
}
|
|
123
113
|
|
|
124
114
|
export interface ISelectStyle extends IBaseStyle {
|
|
@@ -155,9 +145,7 @@ export interface IRadioStyle extends IStyleWithSpacing {
|
|
|
155
145
|
web_radio_card?: IContentField<string>;
|
|
156
146
|
web_tooltip_label?: IContentField<string>;
|
|
157
147
|
web_tooltip_position?: IContentField<string>;
|
|
158
|
-
disabled?: IContentField<string>;
|
|
159
|
-
use_web_style?: IContentField<string>;
|
|
160
|
-
web_use_input_wrapper?: IContentField<string>;
|
|
148
|
+
disabled?: IContentField<string>; web_use_input_wrapper?: IContentField<string>;
|
|
161
149
|
}
|
|
162
150
|
|
|
163
151
|
export interface ICheckboxStyle extends IStyleWithSpacing {
|
|
@@ -173,9 +161,7 @@ export interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
173
161
|
disabled?: IContentField<string>;
|
|
174
162
|
shared_size?: IContentField<TSharedSize>;
|
|
175
163
|
shared_radius?: IContentField<TSharedRadius>;
|
|
176
|
-
web_color?: IContentField<TMantineColor>;
|
|
177
|
-
use_web_style?: IContentField<string>;
|
|
178
|
-
web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
164
|
+
web_color?: IContentField<TMantineColor>; web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
179
165
|
}
|
|
180
166
|
|
|
181
167
|
export interface ISliderStyle extends IStyleWithSpacing {
|
|
@@ -190,9 +176,7 @@ export interface ISliderStyle extends IStyleWithSpacing {
|
|
|
190
176
|
shared_size?: IContentField<TSharedSize>;
|
|
191
177
|
web_color?: IContentField<TMantineColor>;
|
|
192
178
|
shared_radius?: IContentField<TSharedRadius>;
|
|
193
|
-
disabled?: IContentField<string>;
|
|
194
|
-
use_web_style?: IContentField<string>;
|
|
195
|
-
web_slider_marks_values?: IContentField<string>;
|
|
179
|
+
disabled?: IContentField<string>; web_slider_marks_values?: IContentField<string>;
|
|
196
180
|
web_slider_show_label?: IContentField<string>;
|
|
197
181
|
web_slider_labels_always_on?: IContentField<string>;
|
|
198
182
|
web_slider_inverted?: IContentField<string>;
|
|
@@ -216,9 +200,7 @@ export interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
216
200
|
shared_size?: IContentField<TSharedSize>;
|
|
217
201
|
web_color?: IContentField<TMantineColor>;
|
|
218
202
|
shared_radius?: IContentField<TSharedRadius>;
|
|
219
|
-
disabled?: IContentField<string>;
|
|
220
|
-
use_web_style?: IContentField<string>;
|
|
221
|
-
}
|
|
203
|
+
disabled?: IContentField<string>;}
|
|
222
204
|
|
|
223
205
|
export interface IDatePickerStyle extends IStyleWithSpacing {
|
|
224
206
|
style_name: 'datepicker';
|
|
@@ -249,9 +231,7 @@ export interface IDatePickerStyle extends IStyleWithSpacing {
|
|
|
249
231
|
web_datepicker_time_grid_config?: IContentField<string>;
|
|
250
232
|
web_datepicker_with_seconds?: IContentField<string>;
|
|
251
233
|
shared_size?: IContentField<TSharedSize>;
|
|
252
|
-
shared_radius?: IContentField<TSharedRadius>;
|
|
253
|
-
use_web_style?: IContentField<string>;
|
|
254
|
-
}
|
|
234
|
+
shared_radius?: IContentField<TSharedRadius>;}
|
|
255
235
|
|
|
256
236
|
export interface ISwitchStyle extends IStyleWithSpacing {
|
|
257
237
|
style_name: 'switch';
|
|
@@ -262,9 +242,7 @@ export interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
262
242
|
shared_size?: IContentField<TSharedSize>;
|
|
263
243
|
web_color?: IContentField<TMantineColor>;
|
|
264
244
|
shared_radius?: IContentField<TSharedRadius>;
|
|
265
|
-
disabled?: IContentField<string>;
|
|
266
|
-
use_web_style?: IContentField<string>;
|
|
267
|
-
name?: IContentField<string>;
|
|
245
|
+
disabled?: IContentField<string>; name?: IContentField<string>;
|
|
268
246
|
is_required?: IContentField<string>;
|
|
269
247
|
web_label_position?: IContentField<string>;
|
|
270
248
|
value?: IContentField<string>;
|
|
@@ -277,9 +255,7 @@ export interface IComboboxStyle extends IStyleWithSpacing {
|
|
|
277
255
|
style_name: 'combobox';
|
|
278
256
|
placeholder?: IContentField<string>;
|
|
279
257
|
web_combobox_options?: IContentField<string>;
|
|
280
|
-
disabled?: IContentField<string>;
|
|
281
|
-
use_web_style?: IContentField<string>;
|
|
282
|
-
label?: IContentField<string>;
|
|
258
|
+
disabled?: IContentField<string>; label?: IContentField<string>;
|
|
283
259
|
description?: IContentField<string>;
|
|
284
260
|
name?: IContentField<string>;
|
|
285
261
|
value?: IContentField<string>;
|
|
@@ -304,9 +280,7 @@ export interface IColorInputStyle extends IStyleWithSpacing {
|
|
|
304
280
|
value?: IContentField<string>;
|
|
305
281
|
description?: IContentField<string>;
|
|
306
282
|
is_required?: IContentField<string>;
|
|
307
|
-
disabled?: IContentField<string>;
|
|
308
|
-
use_web_style?: IContentField<string>;
|
|
309
|
-
}
|
|
283
|
+
disabled?: IContentField<string>;}
|
|
310
284
|
|
|
311
285
|
export interface IColorPickerStyle extends IStyleWithSpacing {
|
|
312
286
|
style_name: 'color-picker';
|
|
@@ -325,9 +299,7 @@ export interface IColorPickerStyle extends IStyleWithSpacing {
|
|
|
325
299
|
name?: IContentField<string>;
|
|
326
300
|
value?: IContentField<string>;
|
|
327
301
|
description?: IContentField<string>;
|
|
328
|
-
is_required?: IContentField<string>;
|
|
329
|
-
use_web_style?: IContentField<string>;
|
|
330
|
-
}
|
|
302
|
+
is_required?: IContentField<string>;}
|
|
331
303
|
|
|
332
304
|
export interface IFileInputStyle extends IStyleWithSpacing {
|
|
333
305
|
style_name: 'file-input';
|
|
@@ -342,9 +314,7 @@ export interface IFileInputStyle extends IStyleWithSpacing {
|
|
|
342
314
|
web_left_icon?: IContentField<string>;
|
|
343
315
|
web_right_icon?: IContentField<string>;
|
|
344
316
|
placeholder?: IContentField<string>;
|
|
345
|
-
disabled?: IContentField<string>;
|
|
346
|
-
use_web_style?: IContentField<string>;
|
|
347
|
-
is_required?: IContentField<string>;
|
|
317
|
+
disabled?: IContentField<string>; is_required?: IContentField<string>;
|
|
348
318
|
name?: IContentField<string>;
|
|
349
319
|
label?: IContentField<string>;
|
|
350
320
|
description?: IContentField<string>;
|
|
@@ -365,9 +335,7 @@ export interface INumberInputStyle extends IStyleWithSpacing {
|
|
|
365
335
|
name?: IContentField<string>;
|
|
366
336
|
value?: IContentField<string>;
|
|
367
337
|
is_required?: IContentField<string>;
|
|
368
|
-
disabled?: IContentField<string>;
|
|
369
|
-
use_web_style?: IContentField<string>;
|
|
370
|
-
}
|
|
338
|
+
disabled?: IContentField<string>;}
|
|
371
339
|
|
|
372
340
|
export interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
373
341
|
style_name: 'segmented-control';
|
|
@@ -378,9 +346,7 @@ export interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
|
378
346
|
web_color?: IContentField<TMantineColor>;
|
|
379
347
|
fullwidth?: IContentField<string>;
|
|
380
348
|
disabled?: IContentField<string>;
|
|
381
|
-
readonly?: IContentField<string>;
|
|
382
|
-
use_web_style?: IContentField<string>;
|
|
383
|
-
web_segmented_control_item_border?: IContentField<string>;
|
|
349
|
+
readonly?: IContentField<string>; web_segmented_control_item_border?: IContentField<string>;
|
|
384
350
|
label?: IContentField<string>;
|
|
385
351
|
description?: IContentField<string>;
|
|
386
352
|
value?: IContentField<string>;
|
|
@@ -403,9 +369,7 @@ export interface IRatingStyle extends IStyleWithSpacing {
|
|
|
403
369
|
web_rating_full_icon?: IContentField<string>;
|
|
404
370
|
web_rating_highlight_selected_only?: IContentField<string>;
|
|
405
371
|
shared_size?: IContentField<TSharedSize>;
|
|
406
|
-
web_color?: IContentField<TMantineColor>;
|
|
407
|
-
use_web_style?: IContentField<string>;
|
|
408
|
-
}
|
|
372
|
+
web_color?: IContentField<TMantineColor>;}
|
|
409
373
|
|
|
410
374
|
export interface IProgressStyle extends IStyleWithSpacing {
|
|
411
375
|
style_name: 'progress';
|
|
@@ -415,16 +379,12 @@ export interface IProgressStyle extends IStyleWithSpacing {
|
|
|
415
379
|
shared_size?: IContentField<TSharedSize>;
|
|
416
380
|
web_progress_striped?: IContentField<string>;
|
|
417
381
|
web_progress_animated?: IContentField<string>;
|
|
418
|
-
web_progress_transition_duration?: IContentField<TMantineProgressTransition>;
|
|
419
|
-
use_web_style?: IContentField<string>;
|
|
420
|
-
}
|
|
382
|
+
web_progress_transition_duration?: IContentField<TMantineProgressTransition>;}
|
|
421
383
|
|
|
422
384
|
export interface IProgressRootStyle extends IBaseStyle {
|
|
423
385
|
style_name: 'progress-root';
|
|
424
386
|
shared_size?: IContentField<TSharedSize>;
|
|
425
|
-
web_progress_auto_contrast?: IContentField<string>;
|
|
426
|
-
use_web_style?: IContentField<string>;
|
|
427
|
-
}
|
|
387
|
+
web_progress_auto_contrast?: IContentField<string>;}
|
|
428
388
|
|
|
429
389
|
export interface IProgressSectionStyle extends IBaseStyle {
|
|
430
390
|
style_name: 'progress-section';
|
|
@@ -434,9 +394,7 @@ export interface IProgressSectionStyle extends IBaseStyle {
|
|
|
434
394
|
web_progress_animated?: IContentField<string>;
|
|
435
395
|
label?: IContentField<string>;
|
|
436
396
|
web_tooltip_label?: IContentField<string>;
|
|
437
|
-
web_tooltip_position?: IContentField<string>;
|
|
438
|
-
use_web_style?: IContentField<string>;
|
|
439
|
-
}
|
|
397
|
+
web_tooltip_position?: IContentField<string>;}
|
|
440
398
|
|
|
441
399
|
export interface IShowUserInputEntry {
|
|
442
400
|
record_id: number;
|
|
@@ -27,9 +27,7 @@ export interface IButtonStyle extends IStyleWithSpacing {
|
|
|
27
27
|
shared_full_width?: IContentField<string>;
|
|
28
28
|
web_compact?: IContentField<string>;
|
|
29
29
|
web_auto_contrast?: IContentField<string>;
|
|
30
|
-
is_link?: IContentField<string>;
|
|
31
|
-
use_web_style?: IContentField<string>;
|
|
32
|
-
disabled?: IContentField<string>;
|
|
30
|
+
is_link?: IContentField<string>; disabled?: IContentField<string>;
|
|
33
31
|
open_in_new_tab?: IContentField<string>;
|
|
34
32
|
page_keyword?: IContentField<string>;
|
|
35
33
|
url?: IContentField<string>;
|
|
@@ -58,22 +56,16 @@ export interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
58
56
|
is_link?: IContentField<string>;
|
|
59
57
|
page_keyword?: IContentField<string>;
|
|
60
58
|
open_in_new_tab?: IContentField<string>;
|
|
61
|
-
disabled?: IContentField<string>;
|
|
62
|
-
use_web_style?: IContentField<string>;
|
|
63
|
-
}
|
|
59
|
+
disabled?: IContentField<string>;}
|
|
64
60
|
|
|
65
61
|
export interface IAlertStyle extends IStyleWithSpacing {
|
|
66
62
|
style_name: 'alert';
|
|
67
|
-
|
|
68
|
-
close_button_label?: IContentField<string>;
|
|
69
|
-
web_variant?: IContentField<TMantineVariant>;
|
|
63
|
+
alert_title?: IContentField<string>; web_variant?: IContentField<TMantineVariant>;
|
|
70
64
|
web_color?: IContentField<TMantineColor>;
|
|
71
65
|
shared_radius?: IContentField<TSharedRadius>;
|
|
72
66
|
web_left_icon?: IContentField<string>;
|
|
73
67
|
web_with_close_button?: IContentField<string>;
|
|
74
|
-
content?: IContentField<string>;
|
|
75
|
-
use_web_style?: IContentField<string>;
|
|
76
|
-
}
|
|
68
|
+
content?: IContentField<string>;}
|
|
77
69
|
|
|
78
70
|
export interface IBadgeStyle extends IStyleWithSpacing {
|
|
79
71
|
style_name: 'badge';
|
|
@@ -82,9 +74,7 @@ export interface IBadgeStyle extends IStyleWithSpacing {
|
|
|
82
74
|
shared_size?: IContentField<TSharedSize>;
|
|
83
75
|
web_left_icon?: IContentField<string>;
|
|
84
76
|
shared_radius?: IContentField<TSharedRadius>;
|
|
85
|
-
web_color?: IContentField<TMantineColor>;
|
|
86
|
-
use_web_style?: IContentField<string>;
|
|
87
|
-
web_right_icon?: IContentField<string>;
|
|
77
|
+
web_color?: IContentField<TMantineColor>; web_right_icon?: IContentField<string>;
|
|
88
78
|
web_auto_contrast?: IContentField<string>;
|
|
89
79
|
}
|
|
90
80
|
|
|
@@ -94,9 +84,7 @@ export interface IAvatarStyle extends IStyleWithSpacing {
|
|
|
94
84
|
web_avatar_variant?: IContentField<TMantineAvatarVariant>;
|
|
95
85
|
shared_size?: IContentField<TSharedSize>;
|
|
96
86
|
shared_radius?: IContentField<TSharedRadius>;
|
|
97
|
-
web_color?: IContentField<TMantineColor>;
|
|
98
|
-
use_web_style?: IContentField<string>;
|
|
99
|
-
web_left_icon?: IContentField<string>;
|
|
87
|
+
web_color?: IContentField<TMantineColor>; web_left_icon?: IContentField<string>;
|
|
100
88
|
web_avatar_initials?: IContentField<string>;
|
|
101
89
|
img_src?: IContentField<string>;
|
|
102
90
|
}
|
|
@@ -110,9 +98,7 @@ export interface IChipStyle extends IStyleWithSpacing {
|
|
|
110
98
|
web_color?: IContentField<TMantineColor>;
|
|
111
99
|
web_chip_checked?: IContentField<string>;
|
|
112
100
|
web_chip_multiple?: IContentField<string>;
|
|
113
|
-
disabled?: IContentField<string>;
|
|
114
|
-
use_web_style?: IContentField<string>;
|
|
115
|
-
web_left_icon?: IContentField<string>;
|
|
101
|
+
disabled?: IContentField<string>; web_left_icon?: IContentField<string>;
|
|
116
102
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
117
103
|
name?: IContentField<string>;
|
|
118
104
|
value?: IContentField<string>;
|
|
@@ -137,18 +123,14 @@ export interface IIndicatorStyle extends IBaseStyle {
|
|
|
137
123
|
web_indicator_offset?: IContentField<string>;
|
|
138
124
|
web_border?: IContentField<string>;
|
|
139
125
|
shared_radius?: IContentField<TSharedRadius>;
|
|
140
|
-
web_color?: IContentField<TMantineColor>;
|
|
141
|
-
use_web_style?: IContentField<string>;
|
|
142
|
-
}
|
|
126
|
+
web_color?: IContentField<TMantineColor>;}
|
|
143
127
|
|
|
144
128
|
export interface IThemeIconStyle extends IStyleWithSpacing {
|
|
145
129
|
style_name: 'theme-icon';
|
|
146
130
|
web_variant?: IContentField<TMantineThemeIconVariant>;
|
|
147
131
|
shared_size?: IContentField<TSharedSize>;
|
|
148
132
|
shared_radius?: IContentField<TSharedRadius>;
|
|
149
|
-
web_color?: IContentField<TMantineColor>;
|
|
150
|
-
use_web_style?: IContentField<string>;
|
|
151
|
-
web_left_icon?: IContentField<string>;
|
|
133
|
+
web_color?: IContentField<TMantineColor>; web_left_icon?: IContentField<string>;
|
|
152
134
|
}
|
|
153
135
|
|
|
154
136
|
export interface INotificationStyle extends IStyleWithSpacing {
|
|
@@ -160,9 +142,7 @@ export interface INotificationStyle extends IStyleWithSpacing {
|
|
|
160
142
|
web_notification_loading?: IContentField<string>;
|
|
161
143
|
web_notification_with_close_button?: IContentField<string>;
|
|
162
144
|
web_border?: IContentField<string>;
|
|
163
|
-
shared_radius?: IContentField<TSharedRadius>;
|
|
164
|
-
use_web_style?: IContentField<string>;
|
|
165
|
-
}
|
|
145
|
+
shared_radius?: IContentField<TSharedRadius>;}
|
|
166
146
|
|
|
167
147
|
// NOTE: `fab-button` and `biometric-login-button` are deferred (mobile rendering
|
|
168
148
|
// plan, milestone-one scope). They are NOT part of the established 90-style
|
|
@@ -35,15 +35,11 @@ export interface IContainerStyle extends IStyleWithSpacing {
|
|
|
35
35
|
shared_size?: IContentField<TSharedSize>;
|
|
36
36
|
web_fluid?: IContentField<string>;
|
|
37
37
|
web_px?: IContentField<TMantineSpacing>;
|
|
38
|
-
web_py?: IContentField<TMantineSpacing>;
|
|
39
|
-
use_web_style?: IContentField<string>;
|
|
40
|
-
}
|
|
38
|
+
web_py?: IContentField<TMantineSpacing>;}
|
|
41
39
|
|
|
42
40
|
export interface IBoxStyle extends IStyleWithSpacing {
|
|
43
41
|
style_name: 'box';
|
|
44
|
-
content?: IContentField<string>;
|
|
45
|
-
use_web_style?: IContentField<string>;
|
|
46
|
-
}
|
|
42
|
+
content?: IContentField<string>;}
|
|
47
43
|
|
|
48
44
|
export interface IFlexStyle extends IStyleWithSpacing {
|
|
49
45
|
style_name: 'flex';
|
|
@@ -94,9 +90,7 @@ export interface IGridStyle extends IStyleWithSpacing {
|
|
|
94
90
|
shared_align?: IContentField<TMantineAlign>;
|
|
95
91
|
web_grid_overflow?: IContentField<string>;
|
|
96
92
|
web_width?: IContentField<TMantineWidth>;
|
|
97
|
-
web_height?: IContentField<TMantineHeight>;
|
|
98
|
-
use_web_style?: IContentField<string>;
|
|
99
|
-
}
|
|
93
|
+
web_height?: IContentField<TMantineHeight>;}
|
|
100
94
|
|
|
101
95
|
export interface IGridColumnStyle extends IStyleWithSpacing {
|
|
102
96
|
style_name: 'grid-column';
|
|
@@ -105,9 +99,7 @@ export interface IGridColumnStyle extends IStyleWithSpacing {
|
|
|
105
99
|
web_grid_order?: IContentField<TMantineGridOrder>;
|
|
106
100
|
web_grid_grow?: IContentField<string>;
|
|
107
101
|
web_width?: IContentField<TMantineWidth>;
|
|
108
|
-
web_height?: IContentField<TMantineHeight>;
|
|
109
|
-
use_web_style?: IContentField<string>;
|
|
110
|
-
}
|
|
102
|
+
web_height?: IContentField<TMantineHeight>;}
|
|
111
103
|
|
|
112
104
|
export interface ISpaceStyle extends IStyleWithSpacing {
|
|
113
105
|
style_name: 'space';
|
|
@@ -122,9 +114,7 @@ export interface IDividerStyle extends IBaseStyle {
|
|
|
122
114
|
web_divider_label?: IContentField<string>;
|
|
123
115
|
web_divider_label_position?: IContentField<string>;
|
|
124
116
|
shared_orientation?: IContentField<TMantineOrientation>;
|
|
125
|
-
web_color?: IContentField<TMantineColor>;
|
|
126
|
-
use_web_style?: IContentField<string>;
|
|
127
|
-
}
|
|
117
|
+
web_color?: IContentField<TMantineColor>;}
|
|
128
118
|
|
|
129
119
|
export interface IPaperStyle extends IStyleWithSpacing {
|
|
130
120
|
style_name: 'paper';
|
|
@@ -132,9 +122,7 @@ export interface IPaperStyle extends IStyleWithSpacing {
|
|
|
132
122
|
shared_radius?: IContentField<TSharedRadius>;
|
|
133
123
|
web_px?: IContentField<TMantineSpacing>;
|
|
134
124
|
web_py?: IContentField<TMantineSpacing>;
|
|
135
|
-
web_border?: IContentField<TMantineBorder>;
|
|
136
|
-
use_web_style?: IContentField<string>;
|
|
137
|
-
}
|
|
125
|
+
web_border?: IContentField<TMantineBorder>;}
|
|
138
126
|
|
|
139
127
|
export interface ICenterStyle extends IBaseStyle {
|
|
140
128
|
style_name: 'center';
|
|
@@ -161,27 +149,19 @@ export interface ICardStyle extends IStyleWithSpacing {
|
|
|
161
149
|
style_name: 'card';
|
|
162
150
|
web_card_shadow?: IContentField<TMantineCardShadow>;
|
|
163
151
|
web_border?: IContentField<TMantineBorder>;
|
|
164
|
-
shared_radius?: IContentField<TSharedRadius>;
|
|
165
|
-
use_web_style?: IContentField<string>;
|
|
166
|
-
}
|
|
152
|
+
shared_radius?: IContentField<TSharedRadius>;}
|
|
167
153
|
|
|
168
154
|
export interface ICardSegmentStyle extends IStyleWithSpacing {
|
|
169
|
-
style_name: 'card-segment';
|
|
170
|
-
use_web_style?: IContentField<string>;
|
|
171
|
-
}
|
|
155
|
+
style_name: 'card-segment';}
|
|
172
156
|
|
|
173
157
|
export interface IAspectRatioStyle extends IBaseStyle {
|
|
174
158
|
style_name: 'aspect-ratio';
|
|
175
|
-
web_aspect_ratio?: IContentField<string>;
|
|
176
|
-
use_web_style?: IContentField<string>;
|
|
177
|
-
}
|
|
159
|
+
web_aspect_ratio?: IContentField<string>;}
|
|
178
160
|
|
|
179
161
|
export interface IBackgroundImageStyle extends IStyleWithSpacing {
|
|
180
162
|
style_name: 'background-image';
|
|
181
163
|
img_src?: IContentField<string>;
|
|
182
|
-
shared_radius?: IContentField<TSharedRadius>;
|
|
183
|
-
use_web_style?: IContentField<string>;
|
|
184
|
-
}
|
|
164
|
+
shared_radius?: IContentField<TSharedRadius>;}
|
|
185
165
|
|
|
186
166
|
/**
|
|
187
167
|
* Renders content referenced from another section. Has no own fields; the
|