@selfhelp/shared 1.0.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 +39 -0
- package/LICENSE +381 -0
- package/README.md +266 -0
- package/dist/common-B96dASgu.d.mts +80 -0
- package/dist/common-B96dASgu.d.ts +80 -0
- package/dist/index-Bg60YTsF.d.mts +1743 -0
- package/dist/index-DEOVT86P.d.ts +1743 -0
- package/dist/index.d.mts +597 -0
- package/dist/index.d.ts +597 -0
- package/dist/index.js +796 -0
- package/dist/index.mjs +718 -0
- package/dist/registry/index.d.mts +2 -0
- package/dist/registry/index.d.ts +2 -0
- package/dist/registry/index.js +134 -0
- package/dist/registry/index.mjs +105 -0
- package/dist/theme/index.d.mts +63 -0
- package/dist/theme/index.d.ts +63 -0
- package/dist/theme/index.js +202 -0
- package/dist/theme/index.mjs +162 -0
- package/dist/theme/tailwind.d.mts +36 -0
- package/dist/theme/tailwind.d.ts +36 -0
- package/dist/theme/tailwind.js +125 -0
- package/dist/theme/tailwind.mjs +97 -0
- package/package.json +69 -0
- package/src/api/endpoints.ts +58 -0
- package/src/api/index.ts +5 -0
- package/src/assets/index.ts +5 -0
- package/src/assets/resolveAssetUrl.ts +44 -0
- package/src/cms-classes/allow-list.ts +158 -0
- package/src/cms-classes/classify.ts +90 -0
- package/src/cms-classes/index.ts +7 -0
- package/src/cms-classes/remap.ts +44 -0
- package/src/condition/evaluate.ts +121 -0
- package/src/condition/index.ts +5 -0
- package/src/index.ts +25 -0
- package/src/interpolation/index.ts +5 -0
- package/src/interpolation/replaceCalcedValues.ts +27 -0
- package/src/registry/index.ts +37 -0
- package/src/registry/styles.registry.ts +158 -0
- package/src/theme/index.ts +6 -0
- package/src/theme/tailwind.ts +73 -0
- package/src/theme/tokens.ts +177 -0
- package/src/types/api/auth.ts +46 -0
- package/src/types/api/envelope.ts +34 -0
- package/src/types/api/forms.ts +38 -0
- package/src/types/api/index.ts +9 -0
- package/src/types/api/language.ts +12 -0
- package/src/types/api/page.ts +9 -0
- package/src/types/auth.ts +110 -0
- package/src/types/index.ts +17 -0
- package/src/types/mantine/common.ts +142 -0
- package/src/types/pages.ts +107 -0
- package/src/types/styles/auth.ts +165 -0
- package/src/types/styles/base.ts +72 -0
- package/src/types/styles/composite.ts +131 -0
- package/src/types/styles/forms.ts +439 -0
- package/src/types/styles/interactive.ts +165 -0
- package/src/types/styles/layout.ts +184 -0
- package/src/types/styles/media.ts +68 -0
- package/src/types/styles/typography.ts +118 -0
- package/src/types/styles/unknown.ts +220 -0
- package/src/utils/index.ts +6 -0
- package/src/utils/spacing.ts +64 -0
- package/src/utils/transformPageData.ts +93 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import type { IBaseStyle, IContentField, IStyleWithSpacing } from './base';
|
|
6
|
+
import type {
|
|
7
|
+
TMantineSize,
|
|
8
|
+
TMantineColor,
|
|
9
|
+
TMantineRadius,
|
|
10
|
+
TMantineSpacing,
|
|
11
|
+
TMantineOrientation,
|
|
12
|
+
TMantineAccordionVariant,
|
|
13
|
+
TMantineTabsVariant,
|
|
14
|
+
TMantineTimelineLineVariant,
|
|
15
|
+
} from '../mantine/common';
|
|
16
|
+
import type { TMantineWidth, TMantineHeight } from './layout';
|
|
17
|
+
import type { TMantineLineClamp } from './typography';
|
|
18
|
+
|
|
19
|
+
export type TMantineAccordionMultiple = '0' | '1';
|
|
20
|
+
export type TMantineAccordionChevronPosition = 'left' | 'right';
|
|
21
|
+
export type TMantineAccordionDisableChevronRotation = '0' | '1';
|
|
22
|
+
export type TMantineAccordionLoop = '0' | '1';
|
|
23
|
+
export type TMantineTimelineAlign = 'left' | 'right';
|
|
24
|
+
export type TMantineListType = 'ordered' | 'unordered';
|
|
25
|
+
export type TMantineListStyleType =
|
|
26
|
+
| 'none'
|
|
27
|
+
| 'disc'
|
|
28
|
+
| 'circle'
|
|
29
|
+
| 'square'
|
|
30
|
+
| 'decimal'
|
|
31
|
+
| 'decimal-leading-zero'
|
|
32
|
+
| 'lower-roman'
|
|
33
|
+
| 'upper-roman'
|
|
34
|
+
| 'lower-alpha'
|
|
35
|
+
| 'upper-alpha'
|
|
36
|
+
| string;
|
|
37
|
+
export type TMantineListWithPadding = '0' | '1';
|
|
38
|
+
export type TMantineListCenter = '0' | '1';
|
|
39
|
+
|
|
40
|
+
export interface IAccordionStyle extends IStyleWithSpacing {
|
|
41
|
+
style_name: 'accordion';
|
|
42
|
+
mantine_accordion_variant?: IContentField<TMantineAccordionVariant>;
|
|
43
|
+
mantine_accordion_multiple?: IContentField<TMantineAccordionMultiple>;
|
|
44
|
+
mantine_accordion_chevron_position?: IContentField<TMantineAccordionChevronPosition>;
|
|
45
|
+
mantine_accordion_chevron_size?: IContentField<string>;
|
|
46
|
+
mantine_accordion_disable_chevron_rotation?: IContentField<TMantineAccordionDisableChevronRotation>;
|
|
47
|
+
mantine_accordion_loop?: IContentField<TMantineAccordionLoop>;
|
|
48
|
+
mantine_accordion_transition_duration?: IContentField<string>;
|
|
49
|
+
mantine_accordion_default_value?: IContentField<string>;
|
|
50
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
51
|
+
use_mantine_style?: IContentField<string>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IAccordionItemStyle extends IStyleWithSpacing {
|
|
55
|
+
style_name: 'accordion-item';
|
|
56
|
+
mantine_accordion_item_value?: IContentField<string>;
|
|
57
|
+
label?: IContentField<string>;
|
|
58
|
+
mantine_accordion_item_icon?: IContentField<string>;
|
|
59
|
+
disabled?: IContentField<string>;
|
|
60
|
+
use_mantine_style?: IContentField<string>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ITabsStyle extends IStyleWithSpacing {
|
|
64
|
+
style_name: 'tabs';
|
|
65
|
+
mantine_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
66
|
+
mantine_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
67
|
+
mantine_tabs_radius?: IContentField<TMantineRadius>;
|
|
68
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
69
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
70
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
71
|
+
use_mantine_style?: IContentField<string>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ITabStyle extends IBaseStyle {
|
|
75
|
+
style_name: 'tab';
|
|
76
|
+
label?: IContentField<string>;
|
|
77
|
+
mantine_left_icon?: IContentField<string>;
|
|
78
|
+
mantine_right_icon?: IContentField<string>;
|
|
79
|
+
mantine_tab_disabled?: IContentField<string>;
|
|
80
|
+
mantine_width?: IContentField<TMantineWidth>;
|
|
81
|
+
mantine_height?: IContentField<TMantineHeight>;
|
|
82
|
+
use_mantine_style?: IContentField<string>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ITimelineStyle extends IStyleWithSpacing {
|
|
86
|
+
style_name: 'timeline';
|
|
87
|
+
mantine_timeline_bullet_size?: IContentField<string>;
|
|
88
|
+
mantine_timeline_line_width?: IContentField<string>;
|
|
89
|
+
mantine_timeline_active?: IContentField<string>;
|
|
90
|
+
mantine_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
91
|
+
mantine_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
92
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
93
|
+
use_mantine_style?: IContentField<string>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface IListStyle extends IStyleWithSpacing {
|
|
97
|
+
style_name: 'list';
|
|
98
|
+
mantine_list_type?: IContentField<TMantineListType>;
|
|
99
|
+
mantine_spacing?: IContentField<TMantineSpacing>;
|
|
100
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
101
|
+
use_mantine_style?: IContentField<string>;
|
|
102
|
+
mantine_list_list_style_type?: IContentField<TMantineListStyleType>;
|
|
103
|
+
mantine_list_with_padding?: IContentField<TMantineListWithPadding>;
|
|
104
|
+
mantine_list_center?: IContentField<TMantineListCenter>;
|
|
105
|
+
mantine_list_icon?: IContentField<string>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface IListItemStyle extends IStyleWithSpacing {
|
|
109
|
+
style_name: 'list-item';
|
|
110
|
+
mantine_list_item_content?: IContentField<string>;
|
|
111
|
+
mantine_list_item_icon?: IContentField<string>;
|
|
112
|
+
use_mantine_style?: IContentField<string>;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface IEntryListStyle extends IBaseStyle {
|
|
116
|
+
style_name: 'entryList';
|
|
117
|
+
line_clamp?: IContentField<TMantineLineClamp>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface IEntryRecordStyle extends IBaseStyle {
|
|
121
|
+
style_name: 'entryRecord';
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface IEntryRecordDeleteStyle extends IBaseStyle {
|
|
125
|
+
style_name: 'entryRecordDelete';
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface ILoopStyle extends IBaseStyle {
|
|
129
|
+
style_name: 'loop';
|
|
130
|
+
loop?: IContentField<unknown[]>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
/*
|
|
2
|
+
SPDX-FileCopyrightText: 2026 Humdek, University of Bern
|
|
3
|
+
SPDX-License-Identifier: MPL-2.0
|
|
4
|
+
*/
|
|
5
|
+
import type { IBaseStyle, IContentField, IStyleWithSpacing } from './base';
|
|
6
|
+
import type {
|
|
7
|
+
TMantineSize,
|
|
8
|
+
TMantineColor,
|
|
9
|
+
TMantineRadius,
|
|
10
|
+
} from '../mantine/common';
|
|
11
|
+
|
|
12
|
+
export type TMantineTextInputVariant = 'default' | 'filled' | 'unstyled';
|
|
13
|
+
export type TMantineTextareaAutosize = '0' | '1';
|
|
14
|
+
export type TMantineTextareaResize = 'none' | 'vertical' | 'both';
|
|
15
|
+
export type TMantineTextareaVariant = 'default' | 'filled' | 'unstyled';
|
|
16
|
+
export type TMantineUseInputWrapper = '0' | '1';
|
|
17
|
+
export type TMantineTranslatable = '0' | '1';
|
|
18
|
+
export type TMantineProgressTransition = '150' | '200' | '300' | '400' | '0' | string;
|
|
19
|
+
export type TMantineCheckboxLabelPosition = 'left' | 'right';
|
|
20
|
+
|
|
21
|
+
export interface IFormStyle extends IStyleWithSpacing {
|
|
22
|
+
style_name: 'form-log' | 'form-record';
|
|
23
|
+
btn_save_label?: IContentField<string>;
|
|
24
|
+
alert_success?: IContentField<string>;
|
|
25
|
+
name?: IContentField<string>;
|
|
26
|
+
is_log?: IContentField<string>;
|
|
27
|
+
redirect_at_end?: IContentField<string>;
|
|
28
|
+
btn_cancel_url?: IContentField<string>;
|
|
29
|
+
btn_cancel_label?: IContentField<string>;
|
|
30
|
+
alert_error?: IContentField<string>;
|
|
31
|
+
buttons_size?: IContentField<string>;
|
|
32
|
+
buttons_radius?: IContentField<string>;
|
|
33
|
+
btn_save_color?: IContentField<string>;
|
|
34
|
+
btn_cancel_color?: IContentField<string>;
|
|
35
|
+
buttons_variant?: IContentField<string>;
|
|
36
|
+
buttons_position?: IContentField<string>;
|
|
37
|
+
use_mantine_style?: IContentField<string>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface IFormLogStyle extends IFormStyle {
|
|
41
|
+
style_name: 'form-log';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IFormRecordStyle extends IFormStyle {
|
|
45
|
+
style_name: 'form-record';
|
|
46
|
+
btn_update_label?: IContentField<string>;
|
|
47
|
+
btn_update_color?: IContentField<string>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface IInputStyle extends IBaseStyle {
|
|
51
|
+
style_name: 'input';
|
|
52
|
+
type_input?: IContentField<string>;
|
|
53
|
+
placeholder?: IContentField<string>;
|
|
54
|
+
is_required?: IContentField<string>;
|
|
55
|
+
name?: IContentField<string>;
|
|
56
|
+
value?: IContentField<string>;
|
|
57
|
+
min?: IContentField<string>;
|
|
58
|
+
max?: IContentField<string>;
|
|
59
|
+
disabled?: IContentField<string>;
|
|
60
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface ITextInputStyle extends IStyleWithSpacing {
|
|
64
|
+
style_name: 'text-input';
|
|
65
|
+
label?: IContentField<string>;
|
|
66
|
+
name?: IContentField<string>;
|
|
67
|
+
value?: IContentField<string>;
|
|
68
|
+
placeholder?: IContentField<string>;
|
|
69
|
+
description?: IContentField<string>;
|
|
70
|
+
is_required?: IContentField<string>;
|
|
71
|
+
disabled?: IContentField<string>;
|
|
72
|
+
mantine_left_icon?: IContentField<string>;
|
|
73
|
+
mantine_right_icon?: IContentField<string>;
|
|
74
|
+
use_mantine_style?: IContentField<string>;
|
|
75
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
76
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
77
|
+
mantine_text_input_variant?: IContentField<TMantineTextInputVariant>;
|
|
78
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface ITextareaStyle extends IStyleWithSpacing {
|
|
82
|
+
style_name: 'textarea';
|
|
83
|
+
label?: IContentField<string>;
|
|
84
|
+
placeholder?: IContentField<string>;
|
|
85
|
+
is_required?: IContentField<string>;
|
|
86
|
+
name?: IContentField<string>;
|
|
87
|
+
value?: IContentField<string>;
|
|
88
|
+
min?: IContentField<string>;
|
|
89
|
+
max?: IContentField<string>;
|
|
90
|
+
markdown_editor?: IContentField<string>;
|
|
91
|
+
description?: IContentField<string>;
|
|
92
|
+
disabled?: IContentField<string>;
|
|
93
|
+
mantine_left_icon?: IContentField<string>;
|
|
94
|
+
mantine_right_icon?: IContentField<string>;
|
|
95
|
+
mantine_textarea_autosize?: IContentField<TMantineTextareaAutosize>;
|
|
96
|
+
mantine_textarea_min_rows?: IContentField<string>;
|
|
97
|
+
mantine_textarea_max_rows?: IContentField<string>;
|
|
98
|
+
mantine_textarea_resize?: IContentField<TMantineTextareaResize>;
|
|
99
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
100
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
101
|
+
mantine_textarea_variant?: IContentField<TMantineTextareaVariant>;
|
|
102
|
+
use_mantine_style?: IContentField<string>;
|
|
103
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
107
|
+
style_name: 'rich-text-editor';
|
|
108
|
+
label?: IContentField<string>;
|
|
109
|
+
name?: IContentField<string>;
|
|
110
|
+
value?: IContentField<string>;
|
|
111
|
+
placeholder?: IContentField<string>;
|
|
112
|
+
description?: IContentField<string>;
|
|
113
|
+
is_required?: IContentField<string>;
|
|
114
|
+
disabled?: IContentField<string>;
|
|
115
|
+
mantine_rich_text_editor_variant?: IContentField<string>;
|
|
116
|
+
mantine_rich_text_editor_placeholder?: IContentField<string>;
|
|
117
|
+
mantine_rich_text_editor_bubble_menu?: IContentField<string>;
|
|
118
|
+
mantine_rich_text_editor_text_color?: IContentField<string>;
|
|
119
|
+
mantine_rich_text_editor_task_list?: IContentField<string>;
|
|
120
|
+
use_mantine_style?: IContentField<string>;
|
|
121
|
+
translatable?: IContentField<TMantineTranslatable>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ISelectStyle extends IBaseStyle {
|
|
125
|
+
style_name: 'select';
|
|
126
|
+
alt?: IContentField<string>;
|
|
127
|
+
is_required?: IContentField<string>;
|
|
128
|
+
name?: IContentField<string>;
|
|
129
|
+
value?: IContentField<string>;
|
|
130
|
+
placeholder?: IContentField<string>;
|
|
131
|
+
options?: IContentField<string>;
|
|
132
|
+
is_multiple?: IContentField<string>;
|
|
133
|
+
max?: IContentField<string>;
|
|
134
|
+
live_search?: IContentField<string>;
|
|
135
|
+
disabled?: IContentField<string>;
|
|
136
|
+
image_selector?: IContentField<string>;
|
|
137
|
+
allow_clear?: IContentField<string>;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface IRadioStyle extends IStyleWithSpacing {
|
|
141
|
+
style_name: 'radio';
|
|
142
|
+
label?: IContentField<string>;
|
|
143
|
+
description?: IContentField<string>;
|
|
144
|
+
name?: IContentField<string>;
|
|
145
|
+
value?: IContentField<string>;
|
|
146
|
+
is_required?: IContentField<string>;
|
|
147
|
+
items?: IContentField<unknown[]>;
|
|
148
|
+
is_inline?: IContentField<string>;
|
|
149
|
+
mantine_orientation?: IContentField<string>;
|
|
150
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
151
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
152
|
+
mantine_radio_options?: IContentField<string>;
|
|
153
|
+
mantine_radio_label_position?: IContentField<string>;
|
|
154
|
+
mantine_radio_variant?: IContentField<string>;
|
|
155
|
+
mantine_radio_card?: IContentField<string>;
|
|
156
|
+
mantine_tooltip_label?: IContentField<string>;
|
|
157
|
+
mantine_tooltip_position?: IContentField<string>;
|
|
158
|
+
disabled?: IContentField<string>;
|
|
159
|
+
use_mantine_style?: IContentField<string>;
|
|
160
|
+
mantine_use_input_wrapper?: IContentField<string>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface ICheckboxStyle extends IStyleWithSpacing {
|
|
164
|
+
style_name: 'checkbox';
|
|
165
|
+
label?: IContentField<string>;
|
|
166
|
+
name?: IContentField<string>;
|
|
167
|
+
value?: IContentField<string>;
|
|
168
|
+
is_required?: IContentField<string>;
|
|
169
|
+
checkbox_value?: IContentField<string>;
|
|
170
|
+
mantine_checkbox_icon?: IContentField<string>;
|
|
171
|
+
mantine_checkbox_labelPosition?: IContentField<TMantineCheckboxLabelPosition>;
|
|
172
|
+
description?: IContentField<string>;
|
|
173
|
+
disabled?: IContentField<string>;
|
|
174
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
175
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
176
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
177
|
+
use_mantine_style?: IContentField<string>;
|
|
178
|
+
mantine_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface ISliderStyle extends IStyleWithSpacing {
|
|
182
|
+
style_name: 'slider';
|
|
183
|
+
label?: IContentField<string>;
|
|
184
|
+
description?: IContentField<string>;
|
|
185
|
+
name?: IContentField<string>;
|
|
186
|
+
value?: IContentField<string>;
|
|
187
|
+
mantine_numeric_min?: IContentField<string>;
|
|
188
|
+
mantine_numeric_max?: IContentField<string>;
|
|
189
|
+
mantine_numeric_step?: IContentField<string>;
|
|
190
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
191
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
192
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
193
|
+
disabled?: IContentField<string>;
|
|
194
|
+
use_mantine_style?: IContentField<string>;
|
|
195
|
+
mantine_slider_marks_values?: IContentField<string>;
|
|
196
|
+
mantine_slider_show_label?: IContentField<string>;
|
|
197
|
+
mantine_slider_labels_always_on?: IContentField<string>;
|
|
198
|
+
mantine_slider_inverted?: IContentField<string>;
|
|
199
|
+
mantine_slider_thumb_size?: IContentField<string>;
|
|
200
|
+
mantine_slider_required?: IContentField<string>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
204
|
+
style_name: 'range-slider';
|
|
205
|
+
label?: IContentField<string>;
|
|
206
|
+
description?: IContentField<string>;
|
|
207
|
+
name?: IContentField<string>;
|
|
208
|
+
value?: IContentField<string>;
|
|
209
|
+
mantine_numeric_min?: IContentField<string>;
|
|
210
|
+
mantine_numeric_max?: IContentField<string>;
|
|
211
|
+
mantine_numeric_step?: IContentField<string>;
|
|
212
|
+
mantine_range_slider_marks_values?: IContentField<string>;
|
|
213
|
+
mantine_range_slider_show_label?: IContentField<string>;
|
|
214
|
+
mantine_range_slider_labels_always_on?: IContentField<string>;
|
|
215
|
+
mantine_range_slider_inverted?: IContentField<string>;
|
|
216
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
217
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
218
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
219
|
+
disabled?: IContentField<string>;
|
|
220
|
+
use_mantine_style?: IContentField<string>;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface IDatePickerStyle extends IStyleWithSpacing {
|
|
224
|
+
style_name: 'datepicker';
|
|
225
|
+
label?: IContentField<string>;
|
|
226
|
+
name?: IContentField<string>;
|
|
227
|
+
value?: IContentField<string>;
|
|
228
|
+
is_required?: IContentField<string>;
|
|
229
|
+
disabled?: IContentField<string>;
|
|
230
|
+
description?: IContentField<string>;
|
|
231
|
+
mantine_datepicker_type?: IContentField<string>;
|
|
232
|
+
mantine_datepicker_format?: IContentField<string>;
|
|
233
|
+
mantine_datepicker_locale?: IContentField<string>;
|
|
234
|
+
mantine_datepicker_placeholder?: IContentField<string>;
|
|
235
|
+
mantine_datepicker_min_date?: IContentField<string>;
|
|
236
|
+
mantine_datepicker_max_date?: IContentField<string>;
|
|
237
|
+
mantine_datepicker_first_day_of_week?: IContentField<string>;
|
|
238
|
+
mantine_datepicker_weekend_days?: IContentField<string>;
|
|
239
|
+
mantine_datepicker_clearable?: IContentField<string>;
|
|
240
|
+
mantine_datepicker_allow_deselect?: IContentField<string>;
|
|
241
|
+
mantine_datepicker_readonly?: IContentField<string>;
|
|
242
|
+
mantine_datepicker_with_time_grid?: IContentField<string>;
|
|
243
|
+
mantine_datepicker_consistent_weeks?: IContentField<string>;
|
|
244
|
+
mantine_datepicker_hide_outside_dates?: IContentField<string>;
|
|
245
|
+
mantine_datepicker_hide_weekends?: IContentField<string>;
|
|
246
|
+
mantine_datepicker_time_step?: IContentField<string>;
|
|
247
|
+
mantine_datepicker_time_format?: IContentField<string>;
|
|
248
|
+
mantine_datepicker_date_format?: IContentField<string>;
|
|
249
|
+
mantine_datepicker_time_grid_config?: IContentField<string>;
|
|
250
|
+
mantine_datepicker_with_seconds?: IContentField<string>;
|
|
251
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
252
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
253
|
+
use_mantine_style?: IContentField<string>;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export interface ISwitchStyle extends IStyleWithSpacing {
|
|
257
|
+
style_name: 'switch';
|
|
258
|
+
label?: IContentField<string>;
|
|
259
|
+
description?: IContentField<string>;
|
|
260
|
+
mantine_switch_on_label?: IContentField<string>;
|
|
261
|
+
mantine_switch_off_label?: IContentField<string>;
|
|
262
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
263
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
264
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
265
|
+
disabled?: IContentField<string>;
|
|
266
|
+
use_mantine_style?: IContentField<string>;
|
|
267
|
+
name?: IContentField<string>;
|
|
268
|
+
is_required?: IContentField<string>;
|
|
269
|
+
mantine_label_position?: IContentField<string>;
|
|
270
|
+
value?: IContentField<string>;
|
|
271
|
+
mantine_switch_on_value?: IContentField<string>;
|
|
272
|
+
mantine_use_input_wrapper?: IContentField<string>;
|
|
273
|
+
mantine_switch_off_value?: IContentField<string>;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface IComboboxStyle extends IStyleWithSpacing {
|
|
277
|
+
style_name: 'combobox';
|
|
278
|
+
placeholder?: IContentField<string>;
|
|
279
|
+
mantine_combobox_options?: IContentField<string>;
|
|
280
|
+
disabled?: IContentField<string>;
|
|
281
|
+
use_mantine_style?: IContentField<string>;
|
|
282
|
+
label?: IContentField<string>;
|
|
283
|
+
description?: IContentField<string>;
|
|
284
|
+
name?: IContentField<string>;
|
|
285
|
+
value?: IContentField<string>;
|
|
286
|
+
is_required?: IContentField<string>;
|
|
287
|
+
mantine_combobox_multi_select?: IContentField<string>;
|
|
288
|
+
mantine_combobox_searchable?: IContentField<string>;
|
|
289
|
+
mantine_combobox_creatable?: IContentField<string>;
|
|
290
|
+
mantine_combobox_clearable?: IContentField<string>;
|
|
291
|
+
mantine_combobox_separator?: IContentField<string>;
|
|
292
|
+
mantine_multi_select_max_values?: IContentField<string>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface IColorInputStyle extends IStyleWithSpacing {
|
|
296
|
+
style_name: 'color-input';
|
|
297
|
+
label?: IContentField<string>;
|
|
298
|
+
mantine_color_format?: IContentField<string>;
|
|
299
|
+
mantine_color_input_swatches?: IContentField<string>;
|
|
300
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
301
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
302
|
+
placeholder?: IContentField<string>;
|
|
303
|
+
name?: IContentField<string>;
|
|
304
|
+
value?: IContentField<string>;
|
|
305
|
+
description?: IContentField<string>;
|
|
306
|
+
is_required?: IContentField<string>;
|
|
307
|
+
disabled?: IContentField<string>;
|
|
308
|
+
use_mantine_style?: IContentField<string>;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
export interface IColorPickerStyle extends IStyleWithSpacing {
|
|
312
|
+
style_name: 'color-picker';
|
|
313
|
+
label?: IContentField<string>;
|
|
314
|
+
mantine_color_format?: IContentField<string>;
|
|
315
|
+
mantine_color_picker_swatches_per_row?: IContentField<string>;
|
|
316
|
+
mantine_color_picker_swatches?: IContentField<string>;
|
|
317
|
+
mantine_color_picker_with_picker?: IContentField<string>;
|
|
318
|
+
mantine_color_picker_saturation_label?: IContentField<string>;
|
|
319
|
+
mantine_color_picker_hue_label?: IContentField<string>;
|
|
320
|
+
mantine_color_picker_alpha_label?: IContentField<string>;
|
|
321
|
+
mantine_color_picker_as_button?: IContentField<string>;
|
|
322
|
+
mantine_color_picker_button_label?: IContentField<string>;
|
|
323
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
324
|
+
mantine_fullwidth?: IContentField<string>;
|
|
325
|
+
name?: IContentField<string>;
|
|
326
|
+
value?: IContentField<string>;
|
|
327
|
+
description?: IContentField<string>;
|
|
328
|
+
is_required?: IContentField<string>;
|
|
329
|
+
use_mantine_style?: IContentField<string>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface IFileInputStyle extends IStyleWithSpacing {
|
|
333
|
+
style_name: 'file-input';
|
|
334
|
+
mantine_file_input_multiple?: IContentField<string>;
|
|
335
|
+
mantine_file_input_accept?: IContentField<string>;
|
|
336
|
+
mantine_file_input_clearable?: IContentField<string>;
|
|
337
|
+
mantine_file_input_max_size?: IContentField<string>;
|
|
338
|
+
mantine_file_input_max_files?: IContentField<string>;
|
|
339
|
+
mantine_file_input_drag_drop?: IContentField<string>;
|
|
340
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
341
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
342
|
+
mantine_left_icon?: IContentField<string>;
|
|
343
|
+
mantine_right_icon?: IContentField<string>;
|
|
344
|
+
placeholder?: IContentField<string>;
|
|
345
|
+
disabled?: IContentField<string>;
|
|
346
|
+
use_mantine_style?: IContentField<string>;
|
|
347
|
+
is_required?: IContentField<string>;
|
|
348
|
+
name?: IContentField<string>;
|
|
349
|
+
label?: IContentField<string>;
|
|
350
|
+
description?: IContentField<string>;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export interface INumberInputStyle extends IStyleWithSpacing {
|
|
354
|
+
style_name: 'number-input';
|
|
355
|
+
mantine_numeric_min?: IContentField<string>;
|
|
356
|
+
mantine_numeric_max?: IContentField<string>;
|
|
357
|
+
mantine_numeric_step?: IContentField<string>;
|
|
358
|
+
mantine_number_input_decimal_scale?: IContentField<string>;
|
|
359
|
+
mantine_number_input_clamp_behavior?: IContentField<string>;
|
|
360
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
361
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
362
|
+
placeholder?: IContentField<string>;
|
|
363
|
+
label?: IContentField<string>;
|
|
364
|
+
description?: IContentField<string>;
|
|
365
|
+
name?: IContentField<string>;
|
|
366
|
+
value?: IContentField<string>;
|
|
367
|
+
is_required?: IContentField<string>;
|
|
368
|
+
disabled?: IContentField<string>;
|
|
369
|
+
use_mantine_style?: IContentField<string>;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
373
|
+
style_name: 'segmented-control';
|
|
374
|
+
mantine_segmented_control_data?: IContentField<string>;
|
|
375
|
+
mantine_orientation?: IContentField<string>;
|
|
376
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
377
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
378
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
379
|
+
fullwidth?: IContentField<string>;
|
|
380
|
+
disabled?: IContentField<string>;
|
|
381
|
+
readonly?: IContentField<string>;
|
|
382
|
+
use_mantine_style?: IContentField<string>;
|
|
383
|
+
mantine_segmented_control_item_border?: IContentField<string>;
|
|
384
|
+
label?: IContentField<string>;
|
|
385
|
+
description?: IContentField<string>;
|
|
386
|
+
value?: IContentField<string>;
|
|
387
|
+
is_required?: IContentField<string>;
|
|
388
|
+
name?: IContentField<string>;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface IRatingStyle extends IStyleWithSpacing {
|
|
392
|
+
style_name: 'rating';
|
|
393
|
+
label?: IContentField<string>;
|
|
394
|
+
description?: IContentField<string>;
|
|
395
|
+
name?: IContentField<string>;
|
|
396
|
+
disabled?: IContentField<string>;
|
|
397
|
+
value?: IContentField<string>;
|
|
398
|
+
readonly?: IContentField<string>;
|
|
399
|
+
mantine_rating_count?: IContentField<string>;
|
|
400
|
+
mantine_rating_fractions?: IContentField<string>;
|
|
401
|
+
mantine_rating_use_smiles?: IContentField<string>;
|
|
402
|
+
mantine_rating_empty_icon?: IContentField<string>;
|
|
403
|
+
mantine_rating_full_icon?: IContentField<string>;
|
|
404
|
+
mantine_rating_highlight_selected_only?: IContentField<string>;
|
|
405
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
406
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
407
|
+
use_mantine_style?: IContentField<string>;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export interface IProgressStyle extends IStyleWithSpacing {
|
|
411
|
+
style_name: 'progress';
|
|
412
|
+
value?: IContentField<string>;
|
|
413
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
414
|
+
mantine_radius?: IContentField<TMantineRadius>;
|
|
415
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
416
|
+
mantine_progress_striped?: IContentField<string>;
|
|
417
|
+
mantine_progress_animated?: IContentField<string>;
|
|
418
|
+
mantine_progress_transition_duration?: IContentField<TMantineProgressTransition>;
|
|
419
|
+
use_mantine_style?: IContentField<string>;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export interface IProgressRootStyle extends IBaseStyle {
|
|
423
|
+
style_name: 'progress-root';
|
|
424
|
+
mantine_size?: IContentField<TMantineSize>;
|
|
425
|
+
mantine_progress_auto_contrast?: IContentField<string>;
|
|
426
|
+
use_mantine_style?: IContentField<string>;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface IProgressSectionStyle extends IBaseStyle {
|
|
430
|
+
style_name: 'progress-section';
|
|
431
|
+
value?: IContentField<string>;
|
|
432
|
+
mantine_color?: IContentField<TMantineColor>;
|
|
433
|
+
mantine_progress_striped?: IContentField<string>;
|
|
434
|
+
mantine_progress_animated?: IContentField<string>;
|
|
435
|
+
label?: IContentField<string>;
|
|
436
|
+
mantine_tooltip_label?: IContentField<string>;
|
|
437
|
+
mantine_tooltip_position?: IContentField<string>;
|
|
438
|
+
use_mantine_style?: IContentField<string>;
|
|
439
|
+
}
|