playbook_ui_docs 16.9.0 → 16.10.0.pre.alpha.PLAY3053advancedtablebottompinnedrowsreact17469
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +19 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +4 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +6 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +36 -44
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +10 -19
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +3 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +2 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +1 -8
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.html.erb +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.jsx +15 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb +35 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md +8 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +3 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.json +260 -19
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.overrides.json +258 -13
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.html.erb +93 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.jsx +127 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.md +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.html.erb +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.jsx +37 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.html.erb +10 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.jsx +37 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.md +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +150 -237
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +58 -74
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +3 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.html.erb +66 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.jsx +53 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.md +5 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +2 -1
- data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_file_upload/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.html.erb +116 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.md +12 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.jsx +153 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.md +10 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_playground.json +308 -5
- data/app/pb_kits/playbook/pb_filter/docs/_playground.overrides.json +312 -0
- data/app/pb_kits/playbook/pb_filter/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_filter/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.json +210 -14
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.overrides.json +231 -0
- data/app/pb_kits/playbook/pb_flex/docs/_playground.json +297 -38
- data/app/pb_kits/playbook/pb_flex/docs/_playground.overrides.json +300 -40
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +20 -19
- data/app/pb_kits/playbook/pb_form/docs/_playground.json +1 -13
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.json +82 -5
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.overrides.json +91 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.json +155 -14
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.overrides.json +147 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_description.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.jsx +68 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.jsx +71 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.html.erb +3 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.jsx +63 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.jsx +68 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.jsx +68 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.jsx +149 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.md +1 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_playground.json +155 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/_playground.overrides.json +137 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/example.yml +14 -0
- data/app/pb_kits/playbook/pb_full_screen/docs/index.js +6 -0
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.json +72 -11
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.overrides.json +75 -0
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.json +75 -4
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.overrides.json +75 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.json +138 -12
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.overrides.json +162 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon/docs/_playground.json +66 -41
- data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +85 -27
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.json +111 -9
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.overrides.json +131 -0
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.json +92 -7
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.overrides.json +108 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.json +32 -17
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.overrides.json +81 -8
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.json +28 -18
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.overrides.json +58 -9
- data/app/pb_kits/playbook/pb_image/docs/_playground.json +124 -47
- data/app/pb_kits/playbook/pb_image/docs/_playground.overrides.json +122 -47
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.json +68 -6
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.overrides.json +85 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.json +59 -36
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.overrides.json +101 -30
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +216 -10
- data/app/pb_kits/playbook/pb_layout/docs/_playground.overrides.json +188 -0
- data/app/pb_kits/playbook/pb_legend/docs/_playground.json +60 -7
- data/app/pb_kits/playbook/pb_legend/docs/_playground.overrides.json +77 -0
- data/app/pb_kits/playbook/pb_list/docs/_playground.json +165 -17
- data/app/pb_kits/playbook/pb_list/docs/_playground.overrides.json +191 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.html.erb +21 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.jsx +55 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.md +1 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.json +28 -1
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.overrides.json +27 -1
- data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_map/docs/_playground.json +164 -7
- data/app/pb_kits/playbook/pb_map/docs/_playground.overrides.json +180 -0
- data/app/pb_kits/playbook/pb_message/docs/_playground.json +114 -8
- data/app/pb_kits/playbook/pb_message/docs/_playground.overrides.json +144 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.json +310 -61
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.overrides.json +327 -44
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.json +35 -6
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.overrides.json +35 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.json +32 -21
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.overrides.json +32 -21
- data/app/pb_kits/playbook/pb_nav/docs/_playground.json +546 -18
- data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +561 -14
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.json +18 -23
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.overrides.json +18 -14
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.json +133 -14
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.overrides.json +154 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +35 -14
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +35 -14
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.html.erb +5 -5
- data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.html.erb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.json +129 -14
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.overrides.json +148 -0
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.json +378 -4
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.overrides.json +245 -0
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.json +215 -4
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.overrides.json +224 -0
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.json +149 -4
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.overrides.json +162 -0
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.json +392 -4
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.overrides.json +212 -0
- data/app/pb_kits/playbook/pb_person/docs/_playground.json +27 -11
- data/app/pb_kits/playbook/pb_person/docs/_playground.overrides.json +34 -9
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.json +72 -21
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.overrides.json +71 -21
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +179 -21
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.overrides.json +180 -0
- data/app/pb_kits/playbook/pb_pill/docs/_playground.json +16 -49
- data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +33 -30
- data/app/pb_kits/playbook/pb_popover/docs/_playground.json +155 -46
- data/app/pb_kits/playbook/pb_popover/docs/_playground.overrides.json +162 -30
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +9 -11
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.json +26 -13
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.overrides.json +24 -6
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.json +50 -17
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.overrides.json +41 -7
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.json +197 -10
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.overrides.json +189 -0
- data/app/pb_kits/playbook/pb_radio/docs/_playground.json +80 -6
- data/app/pb_kits/playbook/pb_radio/docs/_playground.overrides.json +82 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +152 -22
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.overrides.json +153 -0
- data/app/pb_kits/playbook/pb_select/docs/_playground.json +65 -19
- data/app/pb_kits/playbook/pb_select/docs/_playground.overrides.json +54 -14
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.json +75 -82
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.overrides.json +76 -76
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.json +105 -15
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.overrides.json +106 -0
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.json +37 -21
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.overrides.json +35 -18
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.json +174 -12
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.overrides.json +162 -10
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.json +68 -6
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.overrides.json +80 -0
- data/app/pb_kits/playbook/pb_source/docs/_playground.json +67 -6
- data/app/pb_kits/playbook/pb_source/docs/_playground.overrides.json +80 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.json +28 -53
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.overrides.json +33 -32
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.json +15 -9
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.overrides.json +15 -5
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.json +19 -9
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.overrides.json +18 -7
- data/app/pb_kits/playbook/pb_table/docs/_playground.json +223 -21
- data/app/pb_kits/playbook/pb_table/docs/_playground.overrides.json +176 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.json +44 -5
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.overrides.json +39 -3
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.json +35 -3
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.overrides.json +28 -3
- data/app/pb_kits/playbook/pb_time/docs/_playground.json +28 -14
- data/app/pb_kits/playbook/pb_time/docs/_playground.overrides.json +26 -13
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.json +36 -30
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.overrides.json +31 -26
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.json +63 -9
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.overrides.json +69 -0
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.json +30 -9
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.overrides.json +30 -9
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +178 -6
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.overrides.json +165 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.json +36 -21
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.overrides.json +35 -20
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.json +24 -13
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.overrides.json +20 -12
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.json +42 -23
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.overrides.json +35 -15
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +124 -44
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +98 -31
- data/app/pb_kits/playbook/pb_user/docs/_playground.json +33 -15
- data/app/pb_kits/playbook/pb_user/docs/_playground.overrides.json +32 -15
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.json +26 -12
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.overrides.json +26 -9
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.json +32 -5
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.overrides.json +30 -4
- metadata +73 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +0 -92
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +0 -3
|
@@ -21,5 +21,31 @@
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"conditionals": {},
|
|
24
|
-
"hints": {
|
|
24
|
+
"hints": {
|
|
25
|
+
"align_left": {
|
|
26
|
+
"presetName": "Align left",
|
|
27
|
+
"message": "Align left uses the default left-aligned inline loading treatment.",
|
|
28
|
+
"type": "info"
|
|
29
|
+
},
|
|
30
|
+
"align_center": {
|
|
31
|
+
"presetName": "Align center",
|
|
32
|
+
"message": "Align center centers the spinner and loading text in the available width.",
|
|
33
|
+
"type": "info"
|
|
34
|
+
},
|
|
35
|
+
"align_right": {
|
|
36
|
+
"presetName": "Align right",
|
|
37
|
+
"message": "Align right pushes the inline loading indicator to the right edge.",
|
|
38
|
+
"type": "info"
|
|
39
|
+
},
|
|
40
|
+
"solid_spinner": {
|
|
41
|
+
"presetName": "Solid spinner",
|
|
42
|
+
"message": "Solid spinner switches the icon from the dotted spinner to the solid circle-notch variant.",
|
|
43
|
+
"type": "info"
|
|
44
|
+
},
|
|
45
|
+
"custom_label": {
|
|
46
|
+
"presetName": "Custom label",
|
|
47
|
+
"message": "Custom label changes the text displayed next to the loading icon.",
|
|
48
|
+
"type": "info"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
25
51
|
}
|
|
@@ -4,6 +4,7 @@ examples:
|
|
|
4
4
|
- loading_inline_default: Default
|
|
5
5
|
- loading_inline_custom: Custom Text
|
|
6
6
|
- loading_inline_variant: Variant
|
|
7
|
+
- loading_inline_color: Color
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
@@ -11,3 +12,4 @@ examples:
|
|
|
11
12
|
- loading_inline_default: Default
|
|
12
13
|
- loading_inline_custom: Custom Text
|
|
13
14
|
- loading_inline_variant: Variant
|
|
15
|
+
- loading_inline_color: Color
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as LoadingInlineDefault } from './_loading_inline_default.jsx'
|
|
2
2
|
export { default as LoadingInlineCustom } from './_loading_inline_custom.jsx'
|
|
3
3
|
export { default as LoadingInlineVariant } from './_loading_inline_variant.jsx'
|
|
4
|
+
export { default as LoadingInlineColor } from './_loading_inline_color.jsx'
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"template": "<Map{{props}} />",
|
|
3
3
|
"propTargets": {},
|
|
4
|
-
"defaults": {
|
|
4
|
+
"defaults": {
|
|
5
|
+
"zoomBtns": true,
|
|
6
|
+
"flyTo": false,
|
|
7
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
8
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
9
|
+
"flyToClick": "() => handleFlyTo(mapInstance)",
|
|
10
|
+
"htmlOptions": {
|
|
11
|
+
"style": {
|
|
12
|
+
"height": "320px",
|
|
13
|
+
"position": "relative",
|
|
14
|
+
"width": "100%"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
5
18
|
"groups": [
|
|
6
19
|
{
|
|
7
|
-
"name": "
|
|
20
|
+
"name": "Controls",
|
|
8
21
|
"props": [
|
|
9
22
|
"zoomBtns",
|
|
10
|
-
"flyTo"
|
|
23
|
+
"flyTo"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Callbacks",
|
|
28
|
+
"props": [
|
|
11
29
|
"zoomInClick",
|
|
12
30
|
"zoomOutClick",
|
|
13
31
|
"flyToClick"
|
|
@@ -16,10 +34,149 @@
|
|
|
16
34
|
],
|
|
17
35
|
"presets": [
|
|
18
36
|
{
|
|
19
|
-
"name": "
|
|
20
|
-
"
|
|
37
|
+
"name": "Zoom Controls",
|
|
38
|
+
"structureMode": "maplibre",
|
|
39
|
+
"props": {
|
|
40
|
+
"zoomBtns": true,
|
|
41
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
42
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "Zoom and Fly To",
|
|
47
|
+
"structureMode": "maplibre",
|
|
48
|
+
"props": {
|
|
49
|
+
"zoomBtns": true,
|
|
50
|
+
"flyTo": true,
|
|
51
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
52
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
53
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "No Controls",
|
|
58
|
+
"structureMode": "maplibre",
|
|
59
|
+
"props": {
|
|
60
|
+
"zoomBtns": false,
|
|
61
|
+
"flyTo": false
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "Custom Buttons",
|
|
66
|
+
"structureMode": "custom_controls",
|
|
67
|
+
"props": {
|
|
68
|
+
"zoomBtns": true,
|
|
69
|
+
"flyTo": true,
|
|
70
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
71
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
72
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
73
|
+
}
|
|
21
74
|
}
|
|
22
75
|
],
|
|
23
|
-
"conditionals": {
|
|
24
|
-
|
|
76
|
+
"conditionals": {
|
|
77
|
+
"flyTo": {
|
|
78
|
+
"requires": "zoomBtns"
|
|
79
|
+
},
|
|
80
|
+
"zoomInClick": {
|
|
81
|
+
"requires": "zoomBtns"
|
|
82
|
+
},
|
|
83
|
+
"zoomOutClick": {
|
|
84
|
+
"requires": "zoomBtns"
|
|
85
|
+
},
|
|
86
|
+
"flyToClick": {
|
|
87
|
+
"requires": {
|
|
88
|
+
"flyTo": true
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"hints": {
|
|
93
|
+
"maplibre_setup": {
|
|
94
|
+
"when": {},
|
|
95
|
+
"message": "Map uses MapLibre: import maplibregl from 'maplibre-gl', include the MapLibre CSS, use mapTheme, and give .pb_map a relative container with explicit height and width.",
|
|
96
|
+
"type": "info"
|
|
97
|
+
},
|
|
98
|
+
"zoom_controls": {
|
|
99
|
+
"presetName": "Zoom Controls",
|
|
100
|
+
"message": "zoomBtns renders Playbook Map.Controls and the callbacks call MapLibre zoomIn and zoomOut on the loaded map instance.",
|
|
101
|
+
"type": "info"
|
|
102
|
+
},
|
|
103
|
+
"zoom_and_fly_to": {
|
|
104
|
+
"presetName": "Zoom and Fly To",
|
|
105
|
+
"message": "flyTo adds the extra control button; flyToClick calls map.flyTo with the default marker position and mapTheme.flyToConfig.",
|
|
106
|
+
"type": "info"
|
|
107
|
+
},
|
|
108
|
+
"no_controls": {
|
|
109
|
+
"presetName": "No Controls",
|
|
110
|
+
"message": "With zoomBtns false, Map still wraps the MapLibre container but does not render Playbook map controls.",
|
|
111
|
+
"type": "info"
|
|
112
|
+
},
|
|
113
|
+
"custom_buttons": {
|
|
114
|
+
"presetName": "Custom Buttons",
|
|
115
|
+
"message": "Custom Buttons composes Map.Controls and MapCustomButton children; control props move onto Map.Controls in this structure.",
|
|
116
|
+
"type": "info"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"structureModes": {
|
|
120
|
+
"default": "maplibre",
|
|
121
|
+
"modes": {
|
|
122
|
+
"maplibre": {
|
|
123
|
+
"label": "MapLibre",
|
|
124
|
+
"template": "<Map{{props}}>\n <div\n ref={mapContainerRef}\n style={mapContainerStyle}\n />\n</Map>",
|
|
125
|
+
"props": {
|
|
126
|
+
"htmlOptions": {
|
|
127
|
+
"style": {
|
|
128
|
+
"height": "320px",
|
|
129
|
+
"position": "relative",
|
|
130
|
+
"width": "100%"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"imports": [
|
|
135
|
+
"mapTheme"
|
|
136
|
+
],
|
|
137
|
+
"externalImports": [
|
|
138
|
+
"import React, { useEffect, useRef, useState } from 'react'",
|
|
139
|
+
"import maplibregl from 'maplibre-gl'"
|
|
140
|
+
],
|
|
141
|
+
"wrapper": "const defaultPosition = [-75.379143, 39.831200]\nconst mapContainerStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n}\n\nconst MapPlaygroundExample = () => {\n const [mapInstance, setMapInstance] = useState(null)\n const mapContainerRef = useRef(null)\n\n const handleZoomIn = (map) => map?.zoomIn({ ...mapTheme.zoomConfig })\n const handleZoomOut = (map) => map?.zoomOut({ ...mapTheme.zoomConfig })\n const handleFlyTo = (map) => map?.flyTo({\n center: defaultPosition,\n ...mapTheme.flyToConfig,\n })\n\n useEffect(() => {\n if (!mapContainerRef.current) return undefined\n\n const map = new maplibregl.Map({\n container: mapContainerRef.current,\n center: defaultPosition,\n ...mapTheme.mapConfig,\n })\n\n map.on('load', ({ target }) => {\n new maplibregl.Marker({ color: mapTheme.marker })\n .setLngLat(defaultPosition)\n .setPopup(\n new maplibregl.Popup({ closeButton: false }).setHTML(\n '<h4 class=\"pb_title_kit pb_title_4\">Hello World!</h4>'\n )\n )\n .addTo(target)\n\n target.scrollZoom.disable()\n target.addControl(new maplibregl.AttributionControl({ compact: true }))\n setMapInstance(target)\n })\n\n return () => map.remove()\n }, [])\n\n return {{component}}\n}\n\n<MapPlaygroundExample />"
|
|
142
|
+
},
|
|
143
|
+
"custom_controls": {
|
|
144
|
+
"label": "Custom Controls",
|
|
145
|
+
"template": "<Map{{props}}>\n <Map.Controls{{Controls.props}}>\n <MapCustomButton\n icon=\"home\"\n onClick={() => console.log('home clicked')}\n />\n <MapCustomButton\n icon=\"search\"\n onClick={() => console.log('search clicked')}\n />\n </Map.Controls>\n <div\n ref={mapContainerRef}\n style={mapContainerStyle}\n />\n</Map>",
|
|
146
|
+
"props": {
|
|
147
|
+
"htmlOptions": {
|
|
148
|
+
"style": {
|
|
149
|
+
"height": "320px",
|
|
150
|
+
"position": "relative",
|
|
151
|
+
"width": "100%"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"zoomBtns": true,
|
|
155
|
+
"flyTo": true,
|
|
156
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
157
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
158
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
159
|
+
},
|
|
160
|
+
"propTargets": {
|
|
161
|
+
"zoomBtns": "Controls.props",
|
|
162
|
+
"flyTo": "Controls.props",
|
|
163
|
+
"zoomInClick": "Controls.props",
|
|
164
|
+
"zoomOutClick": "Controls.props",
|
|
165
|
+
"flyToClick": "Controls.props"
|
|
166
|
+
},
|
|
167
|
+
"imports": [
|
|
168
|
+
"mapTheme"
|
|
169
|
+
],
|
|
170
|
+
"externalImports": [
|
|
171
|
+
"import React, { useEffect, useRef, useState } from 'react'",
|
|
172
|
+
"import maplibregl from 'maplibre-gl'"
|
|
173
|
+
],
|
|
174
|
+
"wrapper": "const defaultPosition = [-75.379143, 39.831200]\nconst mapContainerStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n}\n\nconst MapPlaygroundExample = () => {\n const [mapInstance, setMapInstance] = useState(null)\n const mapContainerRef = useRef(null)\n\n const handleZoomIn = (map) => map?.zoomIn({ ...mapTheme.zoomConfig })\n const handleZoomOut = (map) => map?.zoomOut({ ...mapTheme.zoomConfig })\n const handleFlyTo = (map) => map?.flyTo({\n center: defaultPosition,\n ...mapTheme.flyToConfig,\n })\n\n useEffect(() => {\n if (!mapContainerRef.current) return undefined\n\n const map = new maplibregl.Map({\n container: mapContainerRef.current,\n center: defaultPosition,\n ...mapTheme.mapConfig,\n })\n\n map.on('load', ({ target }) => {\n new maplibregl.Marker({ color: mapTheme.marker })\n .setLngLat(defaultPosition)\n .setPopup(\n new maplibregl.Popup({ closeButton: false }).setHTML(\n '<h4 class=\"pb_title_kit pb_title_4\">Hello World!</h4>'\n )\n )\n .addTo(target)\n\n target.scrollZoom.disable()\n target.addControl(new maplibregl.AttributionControl({ compact: true }))\n setMapInstance(target)\n })\n\n return () => map.remove()\n }, [])\n\n return {{component}}\n}\n\n<MapPlaygroundExample />"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"children": {
|
|
179
|
+
"editable": false,
|
|
180
|
+
"default": ""
|
|
181
|
+
}
|
|
25
182
|
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
{
|
|
2
|
+
"structureModes": {
|
|
3
|
+
"default": "maplibre",
|
|
4
|
+
"modes": {
|
|
5
|
+
"maplibre": {
|
|
6
|
+
"label": "MapLibre",
|
|
7
|
+
"template": "<Map{{props}}>\n <div\n ref={mapContainerRef}\n style={mapContainerStyle}\n />\n</Map>",
|
|
8
|
+
"props": {
|
|
9
|
+
"htmlOptions": {
|
|
10
|
+
"style": {
|
|
11
|
+
"height": "320px",
|
|
12
|
+
"position": "relative",
|
|
13
|
+
"width": "100%"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"imports": [
|
|
18
|
+
"mapTheme"
|
|
19
|
+
],
|
|
20
|
+
"externalImports": [
|
|
21
|
+
"import React, { useEffect, useRef, useState } from 'react'",
|
|
22
|
+
"import maplibregl from 'maplibre-gl'"
|
|
23
|
+
],
|
|
24
|
+
"wrapper": "const defaultPosition = [-75.379143, 39.831200]\nconst mapContainerStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n}\n\nconst MapPlaygroundExample = () => {\n const [mapInstance, setMapInstance] = useState(null)\n const mapContainerRef = useRef(null)\n\n const handleZoomIn = (map) => map?.zoomIn({ ...mapTheme.zoomConfig })\n const handleZoomOut = (map) => map?.zoomOut({ ...mapTheme.zoomConfig })\n const handleFlyTo = (map) => map?.flyTo({\n center: defaultPosition,\n ...mapTheme.flyToConfig,\n })\n\n useEffect(() => {\n if (!mapContainerRef.current) return undefined\n\n const map = new maplibregl.Map({\n container: mapContainerRef.current,\n center: defaultPosition,\n ...mapTheme.mapConfig,\n })\n\n map.on('load', ({ target }) => {\n new maplibregl.Marker({ color: mapTheme.marker })\n .setLngLat(defaultPosition)\n .setPopup(\n new maplibregl.Popup({ closeButton: false }).setHTML(\n '<h4 class=\"pb_title_kit pb_title_4\">Hello World!</h4>'\n )\n )\n .addTo(target)\n\n target.scrollZoom.disable()\n target.addControl(new maplibregl.AttributionControl({ compact: true }))\n setMapInstance(target)\n })\n\n return () => map.remove()\n }, [])\n\n return {{component}}\n}\n\n<MapPlaygroundExample />"
|
|
25
|
+
},
|
|
26
|
+
"custom_controls": {
|
|
27
|
+
"label": "Custom Controls",
|
|
28
|
+
"template": "<Map{{props}}>\n <Map.Controls{{Controls.props}}>\n <MapCustomButton\n icon=\"home\"\n onClick={() => console.log('home clicked')}\n />\n <MapCustomButton\n icon=\"search\"\n onClick={() => console.log('search clicked')}\n />\n </Map.Controls>\n <div\n ref={mapContainerRef}\n style={mapContainerStyle}\n />\n</Map>",
|
|
29
|
+
"props": {
|
|
30
|
+
"htmlOptions": {
|
|
31
|
+
"style": {
|
|
32
|
+
"height": "320px",
|
|
33
|
+
"position": "relative",
|
|
34
|
+
"width": "100%"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"zoomBtns": true,
|
|
38
|
+
"flyTo": true,
|
|
39
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
40
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
41
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
42
|
+
},
|
|
43
|
+
"propTargets": {
|
|
44
|
+
"zoomBtns": "Controls.props",
|
|
45
|
+
"flyTo": "Controls.props",
|
|
46
|
+
"zoomInClick": "Controls.props",
|
|
47
|
+
"zoomOutClick": "Controls.props",
|
|
48
|
+
"flyToClick": "Controls.props"
|
|
49
|
+
},
|
|
50
|
+
"imports": [
|
|
51
|
+
"mapTheme"
|
|
52
|
+
],
|
|
53
|
+
"externalImports": [
|
|
54
|
+
"import React, { useEffect, useRef, useState } from 'react'",
|
|
55
|
+
"import maplibregl from 'maplibre-gl'"
|
|
56
|
+
],
|
|
57
|
+
"wrapper": "const defaultPosition = [-75.379143, 39.831200]\nconst mapContainerStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n}\n\nconst MapPlaygroundExample = () => {\n const [mapInstance, setMapInstance] = useState(null)\n const mapContainerRef = useRef(null)\n\n const handleZoomIn = (map) => map?.zoomIn({ ...mapTheme.zoomConfig })\n const handleZoomOut = (map) => map?.zoomOut({ ...mapTheme.zoomConfig })\n const handleFlyTo = (map) => map?.flyTo({\n center: defaultPosition,\n ...mapTheme.flyToConfig,\n })\n\n useEffect(() => {\n if (!mapContainerRef.current) return undefined\n\n const map = new maplibregl.Map({\n container: mapContainerRef.current,\n center: defaultPosition,\n ...mapTheme.mapConfig,\n })\n\n map.on('load', ({ target }) => {\n new maplibregl.Marker({ color: mapTheme.marker })\n .setLngLat(defaultPosition)\n .setPopup(\n new maplibregl.Popup({ closeButton: false }).setHTML(\n '<h4 class=\"pb_title_kit pb_title_4\">Hello World!</h4>'\n )\n )\n .addTo(target)\n\n target.scrollZoom.disable()\n target.addControl(new maplibregl.AttributionControl({ compact: true }))\n setMapInstance(target)\n })\n\n return () => map.remove()\n }, [])\n\n return {{component}}\n}\n\n<MapPlaygroundExample />"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"children": {
|
|
62
|
+
"editable": false,
|
|
63
|
+
"default": ""
|
|
64
|
+
},
|
|
65
|
+
"defaults": {
|
|
66
|
+
"zoomBtns": true,
|
|
67
|
+
"flyTo": false,
|
|
68
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
69
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
70
|
+
"flyToClick": "() => handleFlyTo(mapInstance)",
|
|
71
|
+
"htmlOptions": {
|
|
72
|
+
"style": {
|
|
73
|
+
"height": "320px",
|
|
74
|
+
"position": "relative",
|
|
75
|
+
"width": "100%"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"groups": [
|
|
80
|
+
{
|
|
81
|
+
"name": "Controls",
|
|
82
|
+
"props": [
|
|
83
|
+
"zoomBtns",
|
|
84
|
+
"flyTo"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "Callbacks",
|
|
89
|
+
"props": [
|
|
90
|
+
"zoomInClick",
|
|
91
|
+
"zoomOutClick",
|
|
92
|
+
"flyToClick"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"presets": [
|
|
97
|
+
{
|
|
98
|
+
"name": "Zoom Controls",
|
|
99
|
+
"structureMode": "maplibre",
|
|
100
|
+
"props": {
|
|
101
|
+
"zoomBtns": true,
|
|
102
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
103
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "Zoom and Fly To",
|
|
108
|
+
"structureMode": "maplibre",
|
|
109
|
+
"props": {
|
|
110
|
+
"zoomBtns": true,
|
|
111
|
+
"flyTo": true,
|
|
112
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
113
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
114
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "No Controls",
|
|
119
|
+
"structureMode": "maplibre",
|
|
120
|
+
"props": {
|
|
121
|
+
"zoomBtns": false,
|
|
122
|
+
"flyTo": false
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "Custom Buttons",
|
|
127
|
+
"structureMode": "custom_controls",
|
|
128
|
+
"props": {
|
|
129
|
+
"zoomBtns": true,
|
|
130
|
+
"flyTo": true,
|
|
131
|
+
"zoomInClick": "() => handleZoomIn(mapInstance)",
|
|
132
|
+
"zoomOutClick": "() => handleZoomOut(mapInstance)",
|
|
133
|
+
"flyToClick": "() => handleFlyTo(mapInstance)"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"conditionals": {
|
|
138
|
+
"flyTo": {
|
|
139
|
+
"requires": "zoomBtns"
|
|
140
|
+
},
|
|
141
|
+
"zoomInClick": {
|
|
142
|
+
"requires": "zoomBtns"
|
|
143
|
+
},
|
|
144
|
+
"zoomOutClick": {
|
|
145
|
+
"requires": "zoomBtns"
|
|
146
|
+
},
|
|
147
|
+
"flyToClick": {
|
|
148
|
+
"requires": {
|
|
149
|
+
"flyTo": true
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"hints": {
|
|
154
|
+
"maplibre_setup": {
|
|
155
|
+
"when": {},
|
|
156
|
+
"message": "Map uses MapLibre: import maplibregl from 'maplibre-gl', include the MapLibre CSS, use mapTheme, and give .pb_map a relative container with explicit height and width.",
|
|
157
|
+
"type": "info"
|
|
158
|
+
},
|
|
159
|
+
"zoom_controls": {
|
|
160
|
+
"presetName": "Zoom Controls",
|
|
161
|
+
"message": "zoomBtns renders Playbook Map.Controls and the callbacks call MapLibre zoomIn and zoomOut on the loaded map instance.",
|
|
162
|
+
"type": "info"
|
|
163
|
+
},
|
|
164
|
+
"zoom_and_fly_to": {
|
|
165
|
+
"presetName": "Zoom and Fly To",
|
|
166
|
+
"message": "flyTo adds the extra control button; flyToClick calls map.flyTo with the default marker position and mapTheme.flyToConfig.",
|
|
167
|
+
"type": "info"
|
|
168
|
+
},
|
|
169
|
+
"no_controls": {
|
|
170
|
+
"presetName": "No Controls",
|
|
171
|
+
"message": "With zoomBtns false, Map still wraps the MapLibre container but does not render Playbook map controls.",
|
|
172
|
+
"type": "info"
|
|
173
|
+
},
|
|
174
|
+
"custom_buttons": {
|
|
175
|
+
"presetName": "Custom Buttons",
|
|
176
|
+
"message": "Custom Buttons composes Map.Controls and MapCustomButton children; control props move onto Map.Controls in this structure.",
|
|
177
|
+
"type": "info"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
@@ -8,18 +8,31 @@
|
|
|
8
8
|
},
|
|
9
9
|
"children": {
|
|
10
10
|
"editable": true,
|
|
11
|
-
"default": "
|
|
11
|
+
"default": "",
|
|
12
|
+
"hideWhenPropSet": [
|
|
13
|
+
"message"
|
|
14
|
+
]
|
|
12
15
|
},
|
|
13
16
|
"groups": [
|
|
14
17
|
{
|
|
15
|
-
"name": "
|
|
18
|
+
"name": "Avatar",
|
|
16
19
|
"props": [
|
|
17
|
-
"avatarGrayscale",
|
|
18
20
|
"avatarName",
|
|
19
|
-
"avatarStatus",
|
|
20
21
|
"avatarUrl",
|
|
22
|
+
"avatarStatus",
|
|
23
|
+
"avatarGrayscale"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Content",
|
|
28
|
+
"props": [
|
|
21
29
|
"label",
|
|
22
|
-
"message"
|
|
30
|
+
"message"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Time",
|
|
35
|
+
"props": [
|
|
23
36
|
"timestamp",
|
|
24
37
|
"timestampObject",
|
|
25
38
|
"timezone",
|
|
@@ -30,10 +43,103 @@
|
|
|
30
43
|
"presets": [
|
|
31
44
|
{
|
|
32
45
|
"name": "Default",
|
|
33
|
-
"props": {
|
|
34
|
-
|
|
46
|
+
"props": {
|
|
47
|
+
"avatarName": "Mike Bishop",
|
|
48
|
+
"avatarStatus": "online",
|
|
49
|
+
"avatarUrl": "https://randomuser.me/api/portraits/men/50.jpg",
|
|
50
|
+
"label": "Anna Black",
|
|
51
|
+
"message": "How can we assist you today?",
|
|
52
|
+
"timestamp": "20 seconds ago"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "No Avatar",
|
|
57
|
+
"props": {
|
|
58
|
+
"label": "Keith Craig",
|
|
59
|
+
"message": "Please hold for one moment, I will check with my manager.",
|
|
60
|
+
"timestamp": "2 days ago"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "Grayscale",
|
|
65
|
+
"props": {
|
|
66
|
+
"avatarGrayscale": true,
|
|
67
|
+
"avatarName": "Mike Bishop",
|
|
68
|
+
"avatarStatus": "offline",
|
|
69
|
+
"avatarUrl": "https://randomuser.me/api/portraits/men/50.jpg",
|
|
70
|
+
"label": "Mike Bishop",
|
|
71
|
+
"message": "So long, and thanks for all the fish!",
|
|
72
|
+
"timestamp": "3 months ago"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "Timestamp Object",
|
|
77
|
+
"props": {
|
|
78
|
+
"alignTimestamp": "left",
|
|
79
|
+
"avatarName": "Wade Winningham",
|
|
80
|
+
"avatarUrl": "https://randomuser.me/api/portraits/men/14.jpg",
|
|
81
|
+
"label": "Becca Jacobs",
|
|
82
|
+
"message": "Application for Kate Smith is waiting for your approval.",
|
|
83
|
+
"timestamp": "12:20p",
|
|
84
|
+
"timestampObject": "2026-06-12T12:20:00-04:00"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "Hover",
|
|
89
|
+
"props": {
|
|
90
|
+
"avatarName": "Mike Bishop",
|
|
91
|
+
"avatarStatus": "online",
|
|
92
|
+
"avatarUrl": "https://randomuser.me/api/portraits/men/50.jpg",
|
|
93
|
+
"borderRadius": "rounded",
|
|
94
|
+
"hover": {
|
|
95
|
+
"background": "success_subtle"
|
|
96
|
+
},
|
|
97
|
+
"label": "Anna Black",
|
|
98
|
+
"message": "How can we assist you today?",
|
|
99
|
+
"padding": "xs"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "Mentions",
|
|
104
|
+
"props": {
|
|
105
|
+
"avatarName": "Keith Craig",
|
|
106
|
+
"label": "Keith Craig",
|
|
107
|
+
"timestamp": "2 days ago"
|
|
108
|
+
},
|
|
109
|
+
"children": "<Message.Mention variant=\"user\">@all</Message.Mention>{' please welcome '}<Message.Mention variant=\"self\">@Lucille Sanchez</Message.Mention>{' to the team this week!'}"
|
|
35
110
|
}
|
|
36
111
|
],
|
|
37
112
|
"conditionals": {},
|
|
38
|
-
"hints": {
|
|
113
|
+
"hints": {
|
|
114
|
+
"default": {
|
|
115
|
+
"presetName": "Default",
|
|
116
|
+
"message": "Default renders an avatar, label, message body, and relative timestamp.",
|
|
117
|
+
"type": "info"
|
|
118
|
+
},
|
|
119
|
+
"no_avatar": {
|
|
120
|
+
"presetName": "No Avatar",
|
|
121
|
+
"message": "When avatarName and avatarUrl are omitted, Message uses the compact non-avatar layout.",
|
|
122
|
+
"type": "info"
|
|
123
|
+
},
|
|
124
|
+
"grayscale": {
|
|
125
|
+
"presetName": "Grayscale",
|
|
126
|
+
"message": "avatarGrayscale desaturates the avatar while keeping avatar status visible.",
|
|
127
|
+
"type": "info"
|
|
128
|
+
},
|
|
129
|
+
"timestamp_object": {
|
|
130
|
+
"presetName": "Timestamp Object",
|
|
131
|
+
"message": "timestampObject emits a Date instance in generated JSX for humanized timestamp behavior.",
|
|
132
|
+
"type": "info"
|
|
133
|
+
},
|
|
134
|
+
"hover": {
|
|
135
|
+
"presetName": "Hover",
|
|
136
|
+
"message": "Hover uses global hover and spacing props alongside the Message-specific props.",
|
|
137
|
+
"type": "info"
|
|
138
|
+
},
|
|
139
|
+
"mentions": {
|
|
140
|
+
"presetName": "Mentions",
|
|
141
|
+
"message": "Mentions are composed as Message.Mention children with user and self variants.",
|
|
142
|
+
"type": "info"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
39
145
|
}
|