@selfhelp/shared 1.12.0 → 1.14.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 +72 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- 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-B8OzYnXv.d.mts → styles.registry-Do9q4NOK.d.mts} +52 -52
- package/dist/{styles.registry-CtM17edk.d.ts → styles.registry-HutHKku8.d.ts} +52 -52
- package/dist/theme/index.d.mts +3 -2
- package/dist/theme/index.d.ts +3 -2
- package/package.json +1 -1
- package/src/theme/mantineVariant.ts +3 -2
- package/src/types/styles/composite.ts +4 -4
- package/src/types/styles/error.ts +6 -6
- package/src/types/styles/forms.ts +24 -24
- package/src/types/styles/interactive.ts +9 -9
- package/src/types/styles/layout.ts +2 -2
- package/src/types/styles/typography.ts +7 -7
|
@@ -268,10 +268,10 @@ interface IDividerStyle extends IBaseStyle {
|
|
|
268
268
|
style_name: 'divider';
|
|
269
269
|
web_divider_variant?: IContentField<TMantineDividerVariant>;
|
|
270
270
|
shared_size?: IContentField<TSharedSize>;
|
|
271
|
-
|
|
271
|
+
divider_label?: IContentField<string>;
|
|
272
272
|
web_divider_label_position?: IContentField<string>;
|
|
273
273
|
shared_orientation?: IContentField<TMantineOrientation>;
|
|
274
|
-
|
|
274
|
+
shared_color?: IContentField<TMantineColor>;
|
|
275
275
|
}
|
|
276
276
|
interface IPaperStyle extends IStyleWithSpacing {
|
|
277
277
|
style_name: 'paper';
|
|
@@ -360,7 +360,7 @@ interface ITextStyle extends IStyleWithSpacing {
|
|
|
360
360
|
style_name: 'text';
|
|
361
361
|
text?: IContentField<string>;
|
|
362
362
|
shared_size?: IContentField<TMantineSize>;
|
|
363
|
-
|
|
363
|
+
shared_color?: IContentField<TMantineColor>;
|
|
364
364
|
web_text_font_weight?: IContentField<TMantineTextFontWeight>;
|
|
365
365
|
web_text_font_style?: IContentField<TMantineTextFontStyle>;
|
|
366
366
|
web_text_text_decoration?: IContentField<TMantineTextDecoration>;
|
|
@@ -376,14 +376,14 @@ interface ITextStyle extends IStyleWithSpacing {
|
|
|
376
376
|
interface ICodeStyle extends IStyleWithSpacing {
|
|
377
377
|
style_name: 'code';
|
|
378
378
|
web_code_block?: IContentField<string>;
|
|
379
|
-
|
|
379
|
+
shared_color?: IContentField<TMantineColor>;
|
|
380
380
|
content?: IContentField<string>;
|
|
381
381
|
}
|
|
382
382
|
interface IHighlightStyle extends IStyleWithSpacing {
|
|
383
383
|
style_name: 'highlight';
|
|
384
384
|
text?: IContentField<string>;
|
|
385
|
-
|
|
386
|
-
|
|
385
|
+
highlight_highlight?: IContentField<string>;
|
|
386
|
+
shared_color?: IContentField<TMantineColor>;
|
|
387
387
|
}
|
|
388
388
|
interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
389
389
|
style_name: 'blockquote';
|
|
@@ -391,7 +391,7 @@ interface IBlockquoteStyle extends IStyleWithSpacing {
|
|
|
391
391
|
cite?: IContentField<string>;
|
|
392
392
|
web_left_icon?: IContentField<string>;
|
|
393
393
|
web_icon_size?: IContentField<TMantineIconSize>;
|
|
394
|
-
|
|
394
|
+
shared_color?: IContentField<TMantineColor>;
|
|
395
395
|
}
|
|
396
396
|
interface IHtmlTagStyle extends IBaseStyle {
|
|
397
397
|
style_name: 'html-tag';
|
|
@@ -417,8 +417,8 @@ interface IFieldsetStyle extends IStyleWithSpacing {
|
|
|
417
417
|
interface ISpoilerStyle extends IStyleWithSpacing {
|
|
418
418
|
style_name: 'spoiler';
|
|
419
419
|
web_height?: IContentField<TMantineSpoilerMaxHeight>;
|
|
420
|
-
|
|
421
|
-
|
|
420
|
+
spoiler_show_label?: IContentField<string>;
|
|
421
|
+
spoiler_hide_label?: IContentField<string>;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
type TMantineImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
@@ -478,7 +478,7 @@ interface ICarouselStyle extends IStyleWithSpacing {
|
|
|
478
478
|
interface IButtonStyle extends IStyleWithSpacing {
|
|
479
479
|
style_name: 'button';
|
|
480
480
|
web_variant?: IContentField<TMantineVariant>;
|
|
481
|
-
|
|
481
|
+
shared_color?: IContentField<TMantineColor>;
|
|
482
482
|
shared_size?: IContentField<TSharedSize>;
|
|
483
483
|
shared_radius?: IContentField<TSharedRadius>;
|
|
484
484
|
web_left_icon?: IContentField<string>;
|
|
@@ -509,7 +509,7 @@ interface IActionIconStyle extends IStyleWithSpacing {
|
|
|
509
509
|
web_action_icon_loading?: IContentField<string>;
|
|
510
510
|
shared_size?: IContentField<TSharedSize>;
|
|
511
511
|
shared_radius?: IContentField<TSharedRadius>;
|
|
512
|
-
|
|
512
|
+
shared_color?: IContentField<TMantineColor>;
|
|
513
513
|
web_left_icon?: IContentField<string>;
|
|
514
514
|
is_link?: IContentField<string>;
|
|
515
515
|
page_keyword?: IContentField<string>;
|
|
@@ -520,7 +520,7 @@ interface IAlertStyle extends IStyleWithSpacing {
|
|
|
520
520
|
style_name: 'alert';
|
|
521
521
|
alert_title?: IContentField<string>;
|
|
522
522
|
web_variant?: IContentField<TMantineVariant>;
|
|
523
|
-
|
|
523
|
+
shared_color?: IContentField<TMantineColor>;
|
|
524
524
|
shared_radius?: IContentField<TSharedRadius>;
|
|
525
525
|
web_left_icon?: IContentField<string>;
|
|
526
526
|
web_with_close_button?: IContentField<string>;
|
|
@@ -533,7 +533,7 @@ interface IBadgeStyle extends IStyleWithSpacing {
|
|
|
533
533
|
shared_size?: IContentField<TSharedSize>;
|
|
534
534
|
web_left_icon?: IContentField<string>;
|
|
535
535
|
shared_radius?: IContentField<TSharedRadius>;
|
|
536
|
-
|
|
536
|
+
shared_color?: IContentField<TMantineColor>;
|
|
537
537
|
web_right_icon?: IContentField<string>;
|
|
538
538
|
web_auto_contrast?: IContentField<string>;
|
|
539
539
|
}
|
|
@@ -543,7 +543,7 @@ interface IAvatarStyle extends IStyleWithSpacing {
|
|
|
543
543
|
web_avatar_variant?: IContentField<TMantineAvatarVariant>;
|
|
544
544
|
shared_size?: IContentField<TSharedSize>;
|
|
545
545
|
shared_radius?: IContentField<TSharedRadius>;
|
|
546
|
-
|
|
546
|
+
shared_color?: IContentField<TMantineColor>;
|
|
547
547
|
web_left_icon?: IContentField<string>;
|
|
548
548
|
web_avatar_initials?: IContentField<string>;
|
|
549
549
|
img_src?: IContentField<string>;
|
|
@@ -554,7 +554,7 @@ interface IChipStyle extends IStyleWithSpacing {
|
|
|
554
554
|
web_chip_variant?: IContentField<TMantineChipVariant>;
|
|
555
555
|
shared_size?: IContentField<TSharedSize>;
|
|
556
556
|
shared_radius?: IContentField<TSharedRadius>;
|
|
557
|
-
|
|
557
|
+
shared_color?: IContentField<TMantineColor>;
|
|
558
558
|
web_chip_checked?: IContentField<string>;
|
|
559
559
|
web_chip_multiple?: IContentField<string>;
|
|
560
560
|
disabled?: IContentField<string>;
|
|
@@ -582,14 +582,14 @@ interface IIndicatorStyle extends IBaseStyle {
|
|
|
582
582
|
web_indicator_offset?: IContentField<string>;
|
|
583
583
|
web_border?: IContentField<string>;
|
|
584
584
|
shared_radius?: IContentField<TSharedRadius>;
|
|
585
|
-
|
|
585
|
+
shared_color?: IContentField<TMantineColor>;
|
|
586
586
|
}
|
|
587
587
|
interface IThemeIconStyle extends IStyleWithSpacing {
|
|
588
588
|
style_name: 'theme-icon';
|
|
589
589
|
web_variant?: IContentField<TMantineThemeIconVariant>;
|
|
590
590
|
shared_size?: IContentField<TSharedSize>;
|
|
591
591
|
shared_radius?: IContentField<TSharedRadius>;
|
|
592
|
-
|
|
592
|
+
shared_color?: IContentField<TMantineColor>;
|
|
593
593
|
web_left_icon?: IContentField<string>;
|
|
594
594
|
}
|
|
595
595
|
interface INotificationStyle extends IStyleWithSpacing {
|
|
@@ -597,7 +597,7 @@ interface INotificationStyle extends IStyleWithSpacing {
|
|
|
597
597
|
title?: IContentField<string>;
|
|
598
598
|
content?: IContentField<string>;
|
|
599
599
|
web_left_icon?: IContentField<string>;
|
|
600
|
-
|
|
600
|
+
shared_color?: IContentField<TMantineColor>;
|
|
601
601
|
web_notification_loading?: IContentField<string>;
|
|
602
602
|
web_notification_with_close_button?: IContentField<string>;
|
|
603
603
|
web_border?: IContentField<string>;
|
|
@@ -697,7 +697,7 @@ interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
697
697
|
is_required?: IContentField<string>;
|
|
698
698
|
disabled?: IContentField<string>;
|
|
699
699
|
web_rich_text_editor_variant?: IContentField<string>;
|
|
700
|
-
|
|
700
|
+
rich_text_editor_placeholder?: IContentField<string>;
|
|
701
701
|
web_rich_text_editor_bubble_menu?: IContentField<string>;
|
|
702
702
|
web_rich_text_editor_text_color?: IContentField<string>;
|
|
703
703
|
web_rich_text_editor_task_list?: IContentField<string>;
|
|
@@ -729,12 +729,12 @@ interface IRadioStyle extends IStyleWithSpacing {
|
|
|
729
729
|
is_inline?: IContentField<string>;
|
|
730
730
|
shared_orientation?: IContentField<string>;
|
|
731
731
|
shared_size?: IContentField<TSharedSize>;
|
|
732
|
-
|
|
733
|
-
|
|
732
|
+
shared_color?: IContentField<TMantineColor>;
|
|
733
|
+
radio_options?: IContentField<string>;
|
|
734
734
|
web_radio_label_position?: IContentField<string>;
|
|
735
735
|
web_radio_variant?: IContentField<string>;
|
|
736
736
|
web_radio_card?: IContentField<string>;
|
|
737
|
-
|
|
737
|
+
tooltip_label?: IContentField<string>;
|
|
738
738
|
web_tooltip_position?: IContentField<string>;
|
|
739
739
|
disabled?: IContentField<string>;
|
|
740
740
|
web_use_input_wrapper?: IContentField<string>;
|
|
@@ -747,12 +747,12 @@ interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
747
747
|
is_required?: IContentField<string>;
|
|
748
748
|
checkbox_value?: IContentField<string>;
|
|
749
749
|
web_checkbox_icon?: IContentField<string>;
|
|
750
|
-
|
|
750
|
+
web_checkbox_label_position?: IContentField<TMantineCheckboxLabelPosition>;
|
|
751
751
|
description?: IContentField<string>;
|
|
752
752
|
disabled?: IContentField<string>;
|
|
753
753
|
shared_size?: IContentField<TSharedSize>;
|
|
754
754
|
shared_radius?: IContentField<TSharedRadius>;
|
|
755
|
-
|
|
755
|
+
shared_color?: IContentField<TMantineColor>;
|
|
756
756
|
web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
757
757
|
}
|
|
758
758
|
interface ISliderStyle extends IStyleWithSpacing {
|
|
@@ -765,10 +765,10 @@ interface ISliderStyle extends IStyleWithSpacing {
|
|
|
765
765
|
web_numeric_max?: IContentField<string>;
|
|
766
766
|
web_numeric_step?: IContentField<string>;
|
|
767
767
|
shared_size?: IContentField<TSharedSize>;
|
|
768
|
-
|
|
768
|
+
shared_color?: IContentField<TMantineColor>;
|
|
769
769
|
shared_radius?: IContentField<TSharedRadius>;
|
|
770
770
|
disabled?: IContentField<string>;
|
|
771
|
-
|
|
771
|
+
slider_marks_values?: IContentField<string>;
|
|
772
772
|
web_slider_show_label?: IContentField<string>;
|
|
773
773
|
web_slider_labels_always_on?: IContentField<string>;
|
|
774
774
|
web_slider_inverted?: IContentField<string>;
|
|
@@ -784,12 +784,12 @@ interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
784
784
|
web_numeric_min?: IContentField<string>;
|
|
785
785
|
web_numeric_max?: IContentField<string>;
|
|
786
786
|
web_numeric_step?: IContentField<string>;
|
|
787
|
-
|
|
787
|
+
range_slider_marks_values?: IContentField<string>;
|
|
788
788
|
web_range_slider_show_label?: IContentField<string>;
|
|
789
789
|
web_range_slider_labels_always_on?: IContentField<string>;
|
|
790
790
|
web_range_slider_inverted?: IContentField<string>;
|
|
791
791
|
shared_size?: IContentField<TSharedSize>;
|
|
792
|
-
|
|
792
|
+
shared_color?: IContentField<TMantineColor>;
|
|
793
793
|
shared_radius?: IContentField<TSharedRadius>;
|
|
794
794
|
disabled?: IContentField<string>;
|
|
795
795
|
}
|
|
@@ -804,7 +804,7 @@ interface IDatePickerStyle extends IStyleWithSpacing {
|
|
|
804
804
|
web_datepicker_type?: IContentField<string>;
|
|
805
805
|
web_datepicker_format?: IContentField<string>;
|
|
806
806
|
web_datepicker_locale?: IContentField<string>;
|
|
807
|
-
|
|
807
|
+
datepicker_placeholder?: IContentField<string>;
|
|
808
808
|
web_datepicker_min_date?: IContentField<string>;
|
|
809
809
|
web_datepicker_max_date?: IContentField<string>;
|
|
810
810
|
web_datepicker_first_day_of_week?: IContentField<string>;
|
|
@@ -828,10 +828,10 @@ interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
828
828
|
style_name: 'switch';
|
|
829
829
|
label?: IContentField<string>;
|
|
830
830
|
description?: IContentField<string>;
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
switch_on_label?: IContentField<string>;
|
|
832
|
+
switch_off_label?: IContentField<string>;
|
|
833
833
|
shared_size?: IContentField<TSharedSize>;
|
|
834
|
-
|
|
834
|
+
shared_color?: IContentField<TMantineColor>;
|
|
835
835
|
shared_radius?: IContentField<TSharedRadius>;
|
|
836
836
|
disabled?: IContentField<string>;
|
|
837
837
|
name?: IContentField<string>;
|
|
@@ -845,7 +845,7 @@ interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
845
845
|
interface IComboboxStyle extends IStyleWithSpacing {
|
|
846
846
|
style_name: 'combobox';
|
|
847
847
|
placeholder?: IContentField<string>;
|
|
848
|
-
|
|
848
|
+
combobox_options?: IContentField<string>;
|
|
849
849
|
disabled?: IContentField<string>;
|
|
850
850
|
label?: IContentField<string>;
|
|
851
851
|
description?: IContentField<string>;
|
|
@@ -880,9 +880,9 @@ interface IColorPickerStyle extends IStyleWithSpacing {
|
|
|
880
880
|
web_color_picker_swatches_per_row?: IContentField<string>;
|
|
881
881
|
web_color_picker_swatches?: IContentField<string>;
|
|
882
882
|
web_color_picker_with_picker?: IContentField<string>;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
883
|
+
color_picker_saturation_label?: IContentField<string>;
|
|
884
|
+
color_picker_hue_label?: IContentField<string>;
|
|
885
|
+
color_picker_alpha_label?: IContentField<string>;
|
|
886
886
|
web_color_picker_as_button?: IContentField<string>;
|
|
887
887
|
web_color_picker_button_label?: IContentField<string>;
|
|
888
888
|
shared_size?: IContentField<TSharedSize>;
|
|
@@ -930,11 +930,11 @@ interface INumberInputStyle extends IStyleWithSpacing {
|
|
|
930
930
|
}
|
|
931
931
|
interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
932
932
|
style_name: 'segmented-control';
|
|
933
|
-
|
|
933
|
+
segmented_control_data?: IContentField<string>;
|
|
934
934
|
shared_orientation?: IContentField<string>;
|
|
935
935
|
shared_size?: IContentField<TSharedSize>;
|
|
936
936
|
shared_radius?: IContentField<TSharedRadius>;
|
|
937
|
-
|
|
937
|
+
shared_color?: IContentField<TMantineColor>;
|
|
938
938
|
fullwidth?: IContentField<string>;
|
|
939
939
|
disabled?: IContentField<string>;
|
|
940
940
|
readonly?: IContentField<string>;
|
|
@@ -960,12 +960,12 @@ interface IRatingStyle extends IStyleWithSpacing {
|
|
|
960
960
|
web_rating_full_icon?: IContentField<string>;
|
|
961
961
|
web_rating_highlight_selected_only?: IContentField<string>;
|
|
962
962
|
shared_size?: IContentField<TSharedSize>;
|
|
963
|
-
|
|
963
|
+
shared_color?: IContentField<TMantineColor>;
|
|
964
964
|
}
|
|
965
965
|
interface IProgressStyle extends IStyleWithSpacing {
|
|
966
966
|
style_name: 'progress';
|
|
967
967
|
value?: IContentField<string>;
|
|
968
|
-
|
|
968
|
+
shared_color?: IContentField<TMantineColor>;
|
|
969
969
|
shared_radius?: IContentField<TSharedRadius>;
|
|
970
970
|
shared_size?: IContentField<TSharedSize>;
|
|
971
971
|
web_progress_striped?: IContentField<string>;
|
|
@@ -980,11 +980,11 @@ interface IProgressRootStyle extends IBaseStyle {
|
|
|
980
980
|
interface IProgressSectionStyle extends IBaseStyle {
|
|
981
981
|
style_name: 'progress-section';
|
|
982
982
|
value?: IContentField<string>;
|
|
983
|
-
|
|
983
|
+
shared_color?: IContentField<TMantineColor>;
|
|
984
984
|
web_progress_striped?: IContentField<string>;
|
|
985
985
|
web_progress_animated?: IContentField<string>;
|
|
986
986
|
label?: IContentField<string>;
|
|
987
|
-
|
|
987
|
+
tooltip_label?: IContentField<string>;
|
|
988
988
|
web_tooltip_position?: IContentField<string>;
|
|
989
989
|
}
|
|
990
990
|
interface IShowUserInputEntry {
|
|
@@ -1052,7 +1052,7 @@ interface ITabsStyle extends IStyleWithSpacing {
|
|
|
1052
1052
|
web_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
1053
1053
|
web_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
1054
1054
|
web_tabs_radius?: IContentField<TMantineRadius>;
|
|
1055
|
-
|
|
1055
|
+
shared_color?: IContentField<TMantineColor>;
|
|
1056
1056
|
web_width?: IContentField<TMantineWidth>;
|
|
1057
1057
|
web_height?: IContentField<TMantineHeight>;
|
|
1058
1058
|
}
|
|
@@ -1072,7 +1072,7 @@ interface ITimelineStyle extends IStyleWithSpacing {
|
|
|
1072
1072
|
web_timeline_active?: IContentField<string>;
|
|
1073
1073
|
web_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
1074
1074
|
web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
1075
|
-
|
|
1075
|
+
shared_color?: IContentField<TMantineColor>;
|
|
1076
1076
|
}
|
|
1077
1077
|
/**
|
|
1078
1078
|
* A single entry inside a `timeline`. Child-only style; placement is enforced
|
|
@@ -1083,7 +1083,7 @@ interface ITimelineItemStyle extends IBaseStyle {
|
|
|
1083
1083
|
title?: IContentField<string>;
|
|
1084
1084
|
web_timeline_item_bullet?: IContentField<string>;
|
|
1085
1085
|
web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
1086
|
-
|
|
1086
|
+
shared_color?: IContentField<TMantineColor>;
|
|
1087
1087
|
}
|
|
1088
1088
|
interface IListStyle extends IStyleWithSpacing {
|
|
1089
1089
|
style_name: 'list';
|
|
@@ -1097,7 +1097,7 @@ interface IListStyle extends IStyleWithSpacing {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
interface IListItemStyle extends IStyleWithSpacing {
|
|
1099
1099
|
style_name: 'list-item';
|
|
1100
|
-
|
|
1100
|
+
list_item_content?: IContentField<string>;
|
|
1101
1101
|
web_list_item_icon?: IContentField<string>;
|
|
1102
1102
|
}
|
|
1103
1103
|
interface IEntryListStyle extends IBaseStyle {
|
|
@@ -1122,10 +1122,10 @@ interface INoAccessStyle extends IStyleWithSpacing {
|
|
|
1122
1122
|
button_label?: IContentField<string>;
|
|
1123
1123
|
login_label?: IContentField<string>;
|
|
1124
1124
|
show_login?: IContentField<string>;
|
|
1125
|
-
|
|
1125
|
+
shared_color?: IContentField<string>;
|
|
1126
1126
|
shared_radius?: IContentField<TSharedRadius>;
|
|
1127
1127
|
web_shadow?: IContentField<string>;
|
|
1128
|
-
|
|
1128
|
+
shared_variant?: IContentField<string>;
|
|
1129
1129
|
show_icon?: IContentField<string>;
|
|
1130
1130
|
}
|
|
1131
1131
|
interface INotFoundStyle extends IStyleWithSpacing {
|
|
@@ -1134,10 +1134,10 @@ interface INotFoundStyle extends IStyleWithSpacing {
|
|
|
1134
1134
|
message?: IContentField<string>;
|
|
1135
1135
|
button_label?: IContentField<string>;
|
|
1136
1136
|
login_label?: IContentField<string>;
|
|
1137
|
-
|
|
1137
|
+
shared_color?: IContentField<string>;
|
|
1138
1138
|
shared_radius?: IContentField<TSharedRadius>;
|
|
1139
1139
|
web_shadow?: IContentField<string>;
|
|
1140
|
-
|
|
1140
|
+
shared_variant?: IContentField<string>;
|
|
1141
1141
|
show_icon?: IContentField<string>;
|
|
1142
1142
|
}
|
|
1143
1143
|
interface IMissingStyle extends IStyleWithSpacing {
|
|
@@ -1145,10 +1145,10 @@ interface IMissingStyle extends IStyleWithSpacing {
|
|
|
1145
1145
|
title?: IContentField<string>;
|
|
1146
1146
|
message?: IContentField<string>;
|
|
1147
1147
|
button_label?: IContentField<string>;
|
|
1148
|
-
|
|
1148
|
+
shared_color?: IContentField<string>;
|
|
1149
1149
|
shared_radius?: IContentField<TSharedRadius>;
|
|
1150
1150
|
web_shadow?: IContentField<string>;
|
|
1151
|
-
|
|
1151
|
+
shared_variant?: IContentField<string>;
|
|
1152
1152
|
show_icon?: IContentField<string>;
|
|
1153
1153
|
}
|
|
1154
1154
|
/**
|
package/dist/theme/index.d.mts
CHANGED
|
@@ -253,8 +253,9 @@ declare const resolveSharedStyleForMobile: typeof toHeroUiSemanticProps;
|
|
|
253
253
|
* for style mapping:
|
|
254
254
|
* - `semantic.ts` maps renderer-agnostic shared fields
|
|
255
255
|
* (`intent` / `size` / `radius` / `spacing`) per platform.
|
|
256
|
-
* - `mantineVariant.ts` resolves
|
|
257
|
-
*
|
|
256
|
+
* - `mantineVariant.ts` resolves a Mantine palette `color` + `variant` value
|
|
257
|
+
* pair (e.g. the semantic `shared_color` + `web_variant`)
|
|
258
|
+
* into concrete RGB. Its only runtime
|
|
258
259
|
* consumer today is the mobile **Expo Web preview**
|
|
259
260
|
* fallback (where `heroui-native` cannot render and the
|
|
260
261
|
* renderer reproduces the Mantine look); the web
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -253,8 +253,9 @@ declare const resolveSharedStyleForMobile: typeof toHeroUiSemanticProps;
|
|
|
253
253
|
* for style mapping:
|
|
254
254
|
* - `semantic.ts` maps renderer-agnostic shared fields
|
|
255
255
|
* (`intent` / `size` / `radius` / `spacing`) per platform.
|
|
256
|
-
* - `mantineVariant.ts` resolves
|
|
257
|
-
*
|
|
256
|
+
* - `mantineVariant.ts` resolves a Mantine palette `color` + `variant` value
|
|
257
|
+
* pair (e.g. the semantic `shared_color` + `web_variant`)
|
|
258
|
+
* into concrete RGB. Its only runtime
|
|
258
259
|
* consumer today is the mobile **Expo Web preview**
|
|
259
260
|
* fallback (where `heroui-native` cannot render and the
|
|
260
261
|
* renderer reproduces the Mantine look); the web
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selfhelp/shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Shared TypeScript package for SelfHelp web frontend and mobile app: style registry, types, API contracts, Mantine theme tokens, condition + interpolation engines, CMS class allow-list.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,9 @@ SPDX-License-Identifier: MPL-2.0
|
|
|
15
15
|
* for style mapping:
|
|
16
16
|
* - `semantic.ts` maps renderer-agnostic shared fields
|
|
17
17
|
* (`intent` / `size` / `radius` / `spacing`) per platform.
|
|
18
|
-
* - `mantineVariant.ts` resolves
|
|
19
|
-
*
|
|
18
|
+
* - `mantineVariant.ts` resolves a Mantine palette `color` + `variant` value
|
|
19
|
+
* pair (e.g. the semantic `shared_color` + `web_variant`)
|
|
20
|
+
* into concrete RGB. Its only runtime
|
|
20
21
|
* consumer today is the mobile **Expo Web preview**
|
|
21
22
|
* fallback (where `heroui-native` cannot render and the
|
|
22
23
|
* renderer reproduces the Mantine look); the web
|
|
@@ -62,7 +62,7 @@ export interface ITabsStyle extends IStyleWithSpacing {
|
|
|
62
62
|
web_tabs_variant?: IContentField<TMantineTabsVariant>;
|
|
63
63
|
web_tabs_orientation?: IContentField<TMantineOrientation>;
|
|
64
64
|
web_tabs_radius?: IContentField<TMantineRadius>;
|
|
65
|
-
|
|
65
|
+
shared_color?: IContentField<TMantineColor>;
|
|
66
66
|
web_width?: IContentField<TMantineWidth>;
|
|
67
67
|
web_height?: IContentField<TMantineHeight>;}
|
|
68
68
|
|
|
@@ -82,7 +82,7 @@ export interface ITimelineStyle extends IStyleWithSpacing {
|
|
|
82
82
|
web_timeline_active?: IContentField<string>;
|
|
83
83
|
web_timeline_align?: IContentField<TMantineTimelineAlign>;
|
|
84
84
|
web_timeline_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
85
|
-
|
|
85
|
+
shared_color?: IContentField<TMantineColor>;}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* A single entry inside a `timeline`. Child-only style; placement is enforced
|
|
@@ -93,7 +93,7 @@ export interface ITimelineItemStyle extends IBaseStyle {
|
|
|
93
93
|
title?: IContentField<string>;
|
|
94
94
|
web_timeline_item_bullet?: IContentField<string>;
|
|
95
95
|
web_timeline_item_line_variant?: IContentField<TMantineTimelineLineVariant>;
|
|
96
|
-
|
|
96
|
+
shared_color?: IContentField<TMantineColor>;}
|
|
97
97
|
|
|
98
98
|
export interface IListStyle extends IStyleWithSpacing {
|
|
99
99
|
style_name: 'list';
|
|
@@ -107,7 +107,7 @@ export interface IListStyle extends IStyleWithSpacing {
|
|
|
107
107
|
|
|
108
108
|
export interface IListItemStyle extends IStyleWithSpacing {
|
|
109
109
|
style_name: 'list-item';
|
|
110
|
-
|
|
110
|
+
list_item_content?: IContentField<string>;
|
|
111
111
|
web_list_item_icon?: IContentField<string>;}
|
|
112
112
|
|
|
113
113
|
export interface IEntryListStyle extends IBaseStyle {
|
|
@@ -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
|
-
|
|
15
|
+
shared_color?: IContentField<string>;
|
|
16
16
|
shared_radius?: IContentField<TSharedRadius>;
|
|
17
17
|
web_shadow?: IContentField<string>;
|
|
18
|
-
|
|
18
|
+
shared_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
|
-
|
|
28
|
+
shared_color?: IContentField<string>;
|
|
29
29
|
shared_radius?: IContentField<TSharedRadius>;
|
|
30
30
|
web_shadow?: IContentField<string>;
|
|
31
|
-
|
|
31
|
+
shared_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
|
-
|
|
40
|
+
shared_color?: IContentField<string>;
|
|
41
41
|
shared_radius?: IContentField<TSharedRadius>;
|
|
42
42
|
web_shadow?: IContentField<string>;
|
|
43
|
-
|
|
43
|
+
shared_variant?: IContentField<string>;
|
|
44
44
|
show_icon?: IContentField<string>;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -105,7 +105,7 @@ export interface IRichTextEditorStyle extends IStyleWithSpacing {
|
|
|
105
105
|
is_required?: IContentField<string>;
|
|
106
106
|
disabled?: IContentField<string>;
|
|
107
107
|
web_rich_text_editor_variant?: IContentField<string>;
|
|
108
|
-
|
|
108
|
+
rich_text_editor_placeholder?: IContentField<string>;
|
|
109
109
|
web_rich_text_editor_bubble_menu?: IContentField<string>;
|
|
110
110
|
web_rich_text_editor_text_color?: IContentField<string>;
|
|
111
111
|
web_rich_text_editor_task_list?: IContentField<string>; translatable?: IContentField<TMantineTranslatable>;
|
|
@@ -138,12 +138,12 @@ export interface IRadioStyle extends IStyleWithSpacing {
|
|
|
138
138
|
is_inline?: IContentField<string>;
|
|
139
139
|
shared_orientation?: IContentField<string>;
|
|
140
140
|
shared_size?: IContentField<TSharedSize>;
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
shared_color?: IContentField<TMantineColor>;
|
|
142
|
+
radio_options?: IContentField<string>;
|
|
143
143
|
web_radio_label_position?: IContentField<string>;
|
|
144
144
|
web_radio_variant?: IContentField<string>;
|
|
145
145
|
web_radio_card?: IContentField<string>;
|
|
146
|
-
|
|
146
|
+
tooltip_label?: IContentField<string>;
|
|
147
147
|
web_tooltip_position?: IContentField<string>;
|
|
148
148
|
disabled?: IContentField<string>; web_use_input_wrapper?: IContentField<string>;
|
|
149
149
|
}
|
|
@@ -156,12 +156,12 @@ export interface ICheckboxStyle extends IStyleWithSpacing {
|
|
|
156
156
|
is_required?: IContentField<string>;
|
|
157
157
|
checkbox_value?: IContentField<string>;
|
|
158
158
|
web_checkbox_icon?: IContentField<string>;
|
|
159
|
-
|
|
159
|
+
web_checkbox_label_position?: IContentField<TMantineCheckboxLabelPosition>;
|
|
160
160
|
description?: IContentField<string>;
|
|
161
161
|
disabled?: IContentField<string>;
|
|
162
162
|
shared_size?: IContentField<TSharedSize>;
|
|
163
163
|
shared_radius?: IContentField<TSharedRadius>;
|
|
164
|
-
|
|
164
|
+
shared_color?: IContentField<TMantineColor>; web_use_input_wrapper?: IContentField<TMantineUseInputWrapper>;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
export interface ISliderStyle extends IStyleWithSpacing {
|
|
@@ -174,9 +174,9 @@ export interface ISliderStyle extends IStyleWithSpacing {
|
|
|
174
174
|
web_numeric_max?: IContentField<string>;
|
|
175
175
|
web_numeric_step?: IContentField<string>;
|
|
176
176
|
shared_size?: IContentField<TSharedSize>;
|
|
177
|
-
|
|
177
|
+
shared_color?: IContentField<TMantineColor>;
|
|
178
178
|
shared_radius?: IContentField<TSharedRadius>;
|
|
179
|
-
disabled?: IContentField<string>;
|
|
179
|
+
disabled?: IContentField<string>; slider_marks_values?: IContentField<string>;
|
|
180
180
|
web_slider_show_label?: IContentField<string>;
|
|
181
181
|
web_slider_labels_always_on?: IContentField<string>;
|
|
182
182
|
web_slider_inverted?: IContentField<string>;
|
|
@@ -193,12 +193,12 @@ export interface IRangeSliderStyle extends IStyleWithSpacing {
|
|
|
193
193
|
web_numeric_min?: IContentField<string>;
|
|
194
194
|
web_numeric_max?: IContentField<string>;
|
|
195
195
|
web_numeric_step?: IContentField<string>;
|
|
196
|
-
|
|
196
|
+
range_slider_marks_values?: IContentField<string>;
|
|
197
197
|
web_range_slider_show_label?: IContentField<string>;
|
|
198
198
|
web_range_slider_labels_always_on?: IContentField<string>;
|
|
199
199
|
web_range_slider_inverted?: IContentField<string>;
|
|
200
200
|
shared_size?: IContentField<TSharedSize>;
|
|
201
|
-
|
|
201
|
+
shared_color?: IContentField<TMantineColor>;
|
|
202
202
|
shared_radius?: IContentField<TSharedRadius>;
|
|
203
203
|
disabled?: IContentField<string>;}
|
|
204
204
|
|
|
@@ -213,7 +213,7 @@ export interface IDatePickerStyle extends IStyleWithSpacing {
|
|
|
213
213
|
web_datepicker_type?: IContentField<string>;
|
|
214
214
|
web_datepicker_format?: IContentField<string>;
|
|
215
215
|
web_datepicker_locale?: IContentField<string>;
|
|
216
|
-
|
|
216
|
+
datepicker_placeholder?: IContentField<string>;
|
|
217
217
|
web_datepicker_min_date?: IContentField<string>;
|
|
218
218
|
web_datepicker_max_date?: IContentField<string>;
|
|
219
219
|
web_datepicker_first_day_of_week?: IContentField<string>;
|
|
@@ -237,10 +237,10 @@ export interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
237
237
|
style_name: 'switch';
|
|
238
238
|
label?: IContentField<string>;
|
|
239
239
|
description?: IContentField<string>;
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
switch_on_label?: IContentField<string>;
|
|
241
|
+
switch_off_label?: IContentField<string>;
|
|
242
242
|
shared_size?: IContentField<TSharedSize>;
|
|
243
|
-
|
|
243
|
+
shared_color?: IContentField<TMantineColor>;
|
|
244
244
|
shared_radius?: IContentField<TSharedRadius>;
|
|
245
245
|
disabled?: IContentField<string>; name?: IContentField<string>;
|
|
246
246
|
is_required?: IContentField<string>;
|
|
@@ -254,7 +254,7 @@ export interface ISwitchStyle extends IStyleWithSpacing {
|
|
|
254
254
|
export interface IComboboxStyle extends IStyleWithSpacing {
|
|
255
255
|
style_name: 'combobox';
|
|
256
256
|
placeholder?: IContentField<string>;
|
|
257
|
-
|
|
257
|
+
combobox_options?: IContentField<string>;
|
|
258
258
|
disabled?: IContentField<string>; label?: IContentField<string>;
|
|
259
259
|
description?: IContentField<string>;
|
|
260
260
|
name?: IContentField<string>;
|
|
@@ -289,9 +289,9 @@ export interface IColorPickerStyle extends IStyleWithSpacing {
|
|
|
289
289
|
web_color_picker_swatches_per_row?: IContentField<string>;
|
|
290
290
|
web_color_picker_swatches?: IContentField<string>;
|
|
291
291
|
web_color_picker_with_picker?: IContentField<string>;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
color_picker_saturation_label?: IContentField<string>;
|
|
293
|
+
color_picker_hue_label?: IContentField<string>;
|
|
294
|
+
color_picker_alpha_label?: IContentField<string>;
|
|
295
295
|
web_color_picker_as_button?: IContentField<string>;
|
|
296
296
|
web_color_picker_button_label?: IContentField<string>;
|
|
297
297
|
shared_size?: IContentField<TSharedSize>;
|
|
@@ -339,11 +339,11 @@ export interface INumberInputStyle extends IStyleWithSpacing {
|
|
|
339
339
|
|
|
340
340
|
export interface ISegmentedControlStyle extends IStyleWithSpacing {
|
|
341
341
|
style_name: 'segmented-control';
|
|
342
|
-
|
|
342
|
+
segmented_control_data?: IContentField<string>;
|
|
343
343
|
shared_orientation?: IContentField<string>;
|
|
344
344
|
shared_size?: IContentField<TSharedSize>;
|
|
345
345
|
shared_radius?: IContentField<TSharedRadius>;
|
|
346
|
-
|
|
346
|
+
shared_color?: IContentField<TMantineColor>;
|
|
347
347
|
fullwidth?: IContentField<string>;
|
|
348
348
|
disabled?: IContentField<string>;
|
|
349
349
|
readonly?: IContentField<string>; web_segmented_control_item_border?: IContentField<string>;
|
|
@@ -369,12 +369,12 @@ export interface IRatingStyle extends IStyleWithSpacing {
|
|
|
369
369
|
web_rating_full_icon?: IContentField<string>;
|
|
370
370
|
web_rating_highlight_selected_only?: IContentField<string>;
|
|
371
371
|
shared_size?: IContentField<TSharedSize>;
|
|
372
|
-
|
|
372
|
+
shared_color?: IContentField<TMantineColor>;}
|
|
373
373
|
|
|
374
374
|
export interface IProgressStyle extends IStyleWithSpacing {
|
|
375
375
|
style_name: 'progress';
|
|
376
376
|
value?: IContentField<string>;
|
|
377
|
-
|
|
377
|
+
shared_color?: IContentField<TMantineColor>;
|
|
378
378
|
shared_radius?: IContentField<TSharedRadius>;
|
|
379
379
|
shared_size?: IContentField<TSharedSize>;
|
|
380
380
|
web_progress_striped?: IContentField<string>;
|
|
@@ -389,11 +389,11 @@ export interface IProgressRootStyle extends IBaseStyle {
|
|
|
389
389
|
export interface IProgressSectionStyle extends IBaseStyle {
|
|
390
390
|
style_name: 'progress-section';
|
|
391
391
|
value?: IContentField<string>;
|
|
392
|
-
|
|
392
|
+
shared_color?: IContentField<TMantineColor>;
|
|
393
393
|
web_progress_striped?: IContentField<string>;
|
|
394
394
|
web_progress_animated?: IContentField<string>;
|
|
395
395
|
label?: IContentField<string>;
|
|
396
|
-
|
|
396
|
+
tooltip_label?: IContentField<string>;
|
|
397
397
|
web_tooltip_position?: IContentField<string>;}
|
|
398
398
|
|
|
399
399
|
export interface IShowUserInputEntry {
|