playbook_ui 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/_playbook.scss +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +32 -11
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableActionBar.tsx +5 -2
- data/app/pb_kits/playbook/pb_advanced_table/Context/AdvancedTableContext.tsx +27 -2
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +19 -14
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/CellRendererUtils.tsx +4 -2
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/RowUtils.ts +17 -0
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/StickyLayoutHelper.ts +100 -0
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +38 -71
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +27 -77
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +7 -0
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +128 -12
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js +31 -9
- 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_advanced_table/index.js +20 -29
- data/app/pb_kits/playbook/pb_advanced_table/kit.schema.json +0 -12
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +16 -2
- data/app/pb_kits/playbook/pb_badge/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_card/card.rb +1 -1
- data/app/pb_kits/playbook/pb_card/kit.schema.json +2 -0
- data/app/pb_kits/playbook/pb_checkbox/kit.schema.json +2 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/kit.schema.json +2 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +6 -0
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +19 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +58 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +319 -65
- 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_date_picker/kit.schema.json +9 -1
- data/app/pb_kits/playbook/pb_date_time/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +54 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +21 -5
- data/app/pb_kits/playbook/pb_dialog/_dialog_context.tsx +8 -2
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.tsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.html.erb +5 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +125 -0
- data/app/pb_kits/playbook/pb_dialog/index.js +11 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +1 -1
- 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_draggable/index.js +10 -3
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +122 -0
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +114 -35
- 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_dropdown/dropdown.html.erb +5 -4
- data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +6 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +96 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +1 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +2 -0
- data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +2 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +27 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +4 -2
- data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +2 -0
- data/app/pb_kits/playbook/pb_dropdown/hooks/useHandleOnKeydown.tsx +25 -5
- data/app/pb_kits/playbook/pb_dropdown/index.js +270 -25
- data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +19 -10
- data/app/pb_kits/playbook/pb_dropdown/kit.schema.json +8 -0
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +39 -2
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +15 -4
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +22 -13
- 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_file_upload/kit.schema.json +3 -3
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +55 -28
- data/app/pb_kits/playbook/pb_filter/Filter/FilterDouble.tsx +4 -1
- data/app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx +4 -1
- data/app/pb_kits/playbook/pb_filter/Filter/InteractiveFilter.tsx +277 -0
- data/app/pb_kits/playbook/pb_filter/_filter.scss +88 -1
- data/app/pb_kits/playbook/pb_filter/_filter.tsx +27 -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_filter/filter.html.erb +80 -3
- data/app/pb_kits/playbook/pb_filter/filter.rb +71 -0
- data/app/pb_kits/playbook/pb_filter/filter.test.js +78 -0
- data/app/pb_kits/playbook/pb_filter/index.ts +349 -0
- data/app/pb_kits/playbook/pb_filter/kit.schema.json +94 -29
- 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_fixed_confirmation_toast/kit.schema.json +1 -1
- 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_form_pill/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_full_screen/_full_screen.scss +77 -0
- data/app/pb_kits/playbook/pb_full_screen/_full_screen.tsx +183 -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_full_screen/full_screen.html.erb +12 -0
- data/app/pb_kits/playbook/pb_full_screen/full_screen.rb +11 -0
- data/app/pb_kits/playbook/pb_full_screen/full_screen.test.jsx +237 -0
- data/app/pb_kits/playbook/pb_full_screen/kit.schema.json +89 -0
- data/app/pb_kits/playbook/pb_full_screen/useFullScreen.ts +15 -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/_icon.tsx +22 -11
- 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/icon.rb +5 -2
- data/app/pb_kits/playbook/pb_icon/kit.schema.json +3 -5
- 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_button/kit.schema.json +1 -1
- 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/_loading_inline.tsx +3 -1
- 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_loading_inline/kit.schema.json +18 -2
- data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_loading_inline/loading_inline.rb +3 -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/_multi_level_select.scss +7 -7
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +127 -12
- 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_passphrase/index.ts +58 -0
- data/app/pb_kits/playbook/pb_passphrase/kit.schema.json +13 -0
- data/app/pb_kits/playbook/pb_passphrase/passphrase.html.erb +70 -1
- data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +70 -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_bar_graph/kit.schema.json +1 -1
- 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_circle_chart/kit.schema.json +1 -1
- 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_gauge_chart/kit.schema.json +1 -1
- 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_pb_line_graph/kit.schema.json +1 -1
- 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_phone_number_input/kit.schema.json +2 -2
- 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/_popover.scss +27 -0
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +49 -16
- 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_popover/index.ts +35 -4
- data/app/pb_kits/playbook/pb_popover/popover.html.erb +5 -2
- data/app/pb_kits/playbook/pb_popover/popover.test.js +212 -5
- 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_radio/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +12 -24
- 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/_select.tsx +1 -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_select/kit.schema.json +2 -2
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
- 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/kit.schema.json +2 -2
- 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_card_icon/kit.schema.json +2 -2
- 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_icon/kit.schema.json +1 -1
- 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_star_rating/kit.schema.json +1 -1
- 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_stat_value/kit.schema.json +1 -1
- 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_text_input/kit.schema.json +3 -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_textarea/kit.schema.json +1 -1
- 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/_time_picker.scss +42 -0
- data/app/pb_kits/playbook/pb_time_picker/_time_picker.tsx +309 -167
- 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_picker/index.ts +263 -11
- 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_toggle/kit.schema.json +2 -2
- 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/_typeahead.tsx +109 -3
- 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_typeahead/kit.schema.json +8 -2
- 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
- data/app/pb_kits/playbook/tokens/_colors.scss +5 -1
- data/app/pb_kits/playbook/utilities/_border.scss +262 -0
- data/app/pb_kits/playbook/utilities/floatingPortalHosts.ts +565 -0
- data/app/pb_kits/playbook/utilities/global-props.schema.json +98 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +83 -1
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +38 -0
- data/app/pb_kits/playbook/utilities/test/globalProps/border.test.js +66 -0
- data/dist/chunks/{_pb_line_graph-B870s9g1.js → _pb_line_graph-C2H9vs_8.js} +1 -1
- data/dist/chunks/_typeahead-Du8dRYaM.js +5 -0
- data/dist/chunks/globalProps-DIAZ03-L.js +6 -0
- data/dist/chunks/lib-ZHDedNfP.js +29 -0
- data/dist/chunks/time_picker_helper-CVMV9ync.js +1 -0
- data/dist/chunks/vendor.js +5 -5
- data/dist/menu.yml +7 -0
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/border.rb +87 -0
- data/lib/playbook/classnames.rb +1 -0
- data/lib/playbook/forms/builder/form_field_builder.rb +2 -0
- data/lib/playbook/kit_base.rb +2 -0
- data/lib/playbook/pb_forms_global_props_helper.rb +15 -0
- data/lib/playbook/version.rb +2 -2
- metadata +93 -9
- 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
- data/dist/chunks/_typeahead-jMN-A0_C.js +0 -5
- data/dist/chunks/globalProps-BInmh-C7.js +0 -6
- data/dist/chunks/lib-CVYIIiwI.js +0 -29
- data/dist/chunks/time_picker_helper-Bx8nzyM8.js +0 -1
|
@@ -15,26 +15,30 @@
|
|
|
15
15
|
"props": { "status": "online", "size": "md" }
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"name": "
|
|
19
|
-
"props": { "status": "offline", "size": "md" }
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "Away",
|
|
23
|
-
"props": { "status": "away", "size": "md" }
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "Online · sm",
|
|
18
|
+
"name": "Size sm",
|
|
27
19
|
"props": { "status": "online", "size": "sm" }
|
|
28
20
|
},
|
|
29
|
-
{
|
|
30
|
-
"name": "Online · lg",
|
|
31
|
-
"props": { "status": "online", "size": "lg" }
|
|
32
|
-
},
|
|
33
21
|
{
|
|
34
22
|
"name": "No border",
|
|
35
23
|
"props": { "status": "online", "size": "md", "noBorder": true }
|
|
36
24
|
}
|
|
37
25
|
],
|
|
38
26
|
"conditionals": {},
|
|
39
|
-
"hints": {
|
|
27
|
+
"hints": {
|
|
28
|
+
"status": {
|
|
29
|
+
"when": {},
|
|
30
|
+
"message": "status controls the dot color; semantic statuses like online, offline, error, warning, success, info, primary, and neutral are supported.",
|
|
31
|
+
"type": "info"
|
|
32
|
+
},
|
|
33
|
+
"size_sm": {
|
|
34
|
+
"presetName": "Size sm",
|
|
35
|
+
"message": "size changes the rendered indicator diameter. Use sm, md, or lg.",
|
|
36
|
+
"type": "info"
|
|
37
|
+
},
|
|
38
|
+
"no_border": {
|
|
39
|
+
"presetName": "No border",
|
|
40
|
+
"message": "noBorder removes the white ring around the status indicator.",
|
|
41
|
+
"type": "info"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
40
44
|
}
|
|
@@ -4,35 +4,154 @@
|
|
|
4
4
|
"defaults": {
|
|
5
5
|
"color": "card_light",
|
|
6
6
|
"dynamic": false,
|
|
7
|
-
"scrollBarNone": false
|
|
7
|
+
"scrollBarNone": false,
|
|
8
|
+
"gradient": true,
|
|
9
|
+
"layout": {
|
|
10
|
+
"bottom": "full"
|
|
11
|
+
},
|
|
12
|
+
"opacity": "opacity_6",
|
|
13
|
+
"fullScreen": false
|
|
8
14
|
},
|
|
9
15
|
"children": {
|
|
10
16
|
"editable": true,
|
|
11
|
-
"default": "Overlay content"
|
|
17
|
+
"default": "<Card padding=\"md\">\n <Body text=\"Overlay content\" />\n</Card>"
|
|
12
18
|
},
|
|
13
19
|
"groups": [
|
|
14
20
|
{
|
|
15
|
-
"name": "
|
|
21
|
+
"name": "Appearance",
|
|
16
22
|
"props": [
|
|
17
23
|
"color",
|
|
18
|
-
"
|
|
19
|
-
"gradient"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
"opacity",
|
|
25
|
+
"gradient"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "Layout",
|
|
30
|
+
"props": [
|
|
24
31
|
"layout",
|
|
25
|
-
"
|
|
32
|
+
"fullScreen",
|
|
33
|
+
"scrollBarNone"
|
|
26
34
|
]
|
|
27
35
|
}
|
|
28
36
|
],
|
|
29
37
|
"presets": [
|
|
30
38
|
{
|
|
31
39
|
"name": "Default",
|
|
32
|
-
"props": {
|
|
33
|
-
|
|
40
|
+
"props": {
|
|
41
|
+
"color": "card_light",
|
|
42
|
+
"layout": {
|
|
43
|
+
"bottom": "full"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"children": "<Card padding=\"md\">\n <Body text=\"Overlay content\" />\n</Card>"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Black Gradient",
|
|
50
|
+
"structureMode": "standard",
|
|
51
|
+
"props": {
|
|
52
|
+
"color": "black",
|
|
53
|
+
"opacity": "opacity_6",
|
|
54
|
+
"layout": {
|
|
55
|
+
"bottom": "full"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"children": "<Background\n alt=\"Colorful abstract background\"\n backgroundPosition=\"center\"\n imageUrl=\"https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80\"\n minHeight=\"320px\"\n width=\"100%\"\n>\n <Flex minHeight=\"320px\" orientation=\"column\" padding=\"lg\" vertical=\"center\">\n <Title dark size={3} text=\"Gradient Overlay\" />\n <Body color=\"light\" text=\"Full-width Background kit image with Overlay gradient.\" />\n </Flex>\n</Background>"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "No Gradient",
|
|
62
|
+
"structureMode": "standard",
|
|
63
|
+
"props": {
|
|
64
|
+
"color": "black",
|
|
65
|
+
"gradient": false,
|
|
66
|
+
"opacity": "opacity_4",
|
|
67
|
+
"layout": {
|
|
68
|
+
"bottom": "full"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"children": "<Background\n alt=\"Colorful abstract background\"\n backgroundPosition=\"center\"\n imageUrl=\"https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80\"\n minHeight=\"320px\"\n width=\"100%\"\n>\n <Flex minHeight=\"320px\" orientation=\"column\" padding=\"lg\" vertical=\"center\">\n <Title dark size={3} text=\"Flat Overlay\" />\n <Body color=\"light\" text=\"gradient={false} removes the fade treatment.\" />\n </Flex>\n</Background>"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Horizontal",
|
|
75
|
+
"props": {
|
|
76
|
+
"color": "card_light",
|
|
77
|
+
"layout": {
|
|
78
|
+
"x": "xl"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"children": "<Flex columnGap=\"lg\" orientation=\"row\" overflowX=\"auto\">\n <FlexItem fixedSize=\"160px\"><Card>{'Card 1'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 2'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 3'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 4'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 5'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 6'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 7'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 8'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 9'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 10'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 11'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 12'}</Card></FlexItem>\n</Flex>"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "Full Screen",
|
|
85
|
+
"structureMode": "fullscreen",
|
|
86
|
+
"props": {
|
|
87
|
+
"color": "bg_dark",
|
|
88
|
+
"fullScreen": true,
|
|
89
|
+
"gradient": false,
|
|
90
|
+
"opacity": "opacity_4"
|
|
91
|
+
},
|
|
92
|
+
"children": "<FixedConfirmationToast\n closeable\n horizontal=\"center\"\n onClose={handleClose}\n open={open}\n status=\"tip\"\n text=\"Fullscreen overlay content\"\n vertical=\"top\"\n/>"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "Hide Scrollbar",
|
|
96
|
+
"props": {
|
|
97
|
+
"color": "card_light",
|
|
98
|
+
"layout": {
|
|
99
|
+
"x": "xl"
|
|
100
|
+
},
|
|
101
|
+
"scrollBarNone": true
|
|
102
|
+
},
|
|
103
|
+
"children": "<Flex columnGap=\"lg\" orientation=\"row\" overflowX=\"auto\">\n <FlexItem fixedSize=\"160px\"><Card>{'Card 1'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 2'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 3'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 4'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 5'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 6'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 7'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 8'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 9'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 10'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 11'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 12'}</Card></FlexItem>\n</Flex>"
|
|
34
104
|
}
|
|
35
105
|
],
|
|
36
|
-
"conditionals": {
|
|
37
|
-
|
|
106
|
+
"conditionals": {
|
|
107
|
+
"opacity": {
|
|
108
|
+
"requires": {
|
|
109
|
+
"gradient": false
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"hints": {
|
|
114
|
+
"layout": {
|
|
115
|
+
"when": {},
|
|
116
|
+
"message": "layout controls overlay direction and size. Use keys like bottom, top, x, or y with token values like full, xl, or percentages.",
|
|
117
|
+
"type": "info"
|
|
118
|
+
},
|
|
119
|
+
"gradient": {
|
|
120
|
+
"presetName": "No Gradient",
|
|
121
|
+
"message": "gradient={false} removes the default gradient treatment and uses a flatter color overlay.",
|
|
122
|
+
"type": "info"
|
|
123
|
+
},
|
|
124
|
+
"fullscreen": {
|
|
125
|
+
"presetName": "Full Screen",
|
|
126
|
+
"message": "fullScreen changes the overlay to a fixed viewport layer; pair it with content that can close or explain the state.",
|
|
127
|
+
"type": "info"
|
|
128
|
+
},
|
|
129
|
+
"scrollbar": {
|
|
130
|
+
"presetName": "Hide Scrollbar",
|
|
131
|
+
"message": "scrollBarNone hides the scrollbar while preserving scrollable overflow content.",
|
|
132
|
+
"type": "info"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"structureModes": {
|
|
136
|
+
"default": "standard",
|
|
137
|
+
"modes": {
|
|
138
|
+
"standard": {
|
|
139
|
+
"label": "Standard",
|
|
140
|
+
"template": "<Overlay{{props}}>\n {{children}}\n</Overlay>"
|
|
141
|
+
},
|
|
142
|
+
"fullscreen": {
|
|
143
|
+
"label": "Fullscreen",
|
|
144
|
+
"template": "<>\n <Button\n onClick={() => setOpen(true)}\n text=\"Open Fullscreen Overlay\"\n variant=\"secondary\"\n />\n {open && (\n <Overlay{{props}}>\n {{children}}\n </Overlay>\n )}\n</>",
|
|
145
|
+
"wrapper": "const FullscreenOverlayExample = () => {\n const [open, setOpen] = useState(true)\n const handleClose = () => setOpen(false)\n\n return {{component}}\n}\n\n<FullscreenOverlayExample />",
|
|
146
|
+
"externalImports": [
|
|
147
|
+
"import React, { useState } from 'react'"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"hiddenProps": [
|
|
153
|
+
"dynamic",
|
|
154
|
+
"position",
|
|
155
|
+
"size"
|
|
156
|
+
]
|
|
38
157
|
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"structureModes": {
|
|
3
|
+
"default": "standard",
|
|
4
|
+
"modes": {
|
|
5
|
+
"standard": {
|
|
6
|
+
"label": "Standard",
|
|
7
|
+
"template": "<Overlay{{props}}>\n {{children}}\n</Overlay>"
|
|
8
|
+
},
|
|
9
|
+
"fullscreen": {
|
|
10
|
+
"label": "Fullscreen",
|
|
11
|
+
"template": "<>\n <Button\n onClick={() => setOpen(true)}\n text=\"Open Fullscreen Overlay\"\n variant=\"secondary\"\n />\n {open && (\n <Overlay{{props}}>\n {{children}}\n </Overlay>\n )}\n</>",
|
|
12
|
+
"wrapper": "const FullscreenOverlayExample = () => {\n const [open, setOpen] = useState(true)\n const handleClose = () => setOpen(false)\n\n return {{component}}\n}\n\n<FullscreenOverlayExample />",
|
|
13
|
+
"externalImports": [
|
|
14
|
+
"import React, { useState } from 'react'"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"children": {
|
|
20
|
+
"editable": true,
|
|
21
|
+
"default": "<Card padding=\"md\">\n <Body text=\"Overlay content\" />\n</Card>"
|
|
22
|
+
},
|
|
23
|
+
"hiddenProps": [
|
|
24
|
+
"dynamic",
|
|
25
|
+
"position",
|
|
26
|
+
"size"
|
|
27
|
+
],
|
|
28
|
+
"defaults": {
|
|
29
|
+
"color": "card_light",
|
|
30
|
+
"gradient": true,
|
|
31
|
+
"layout": {
|
|
32
|
+
"bottom": "full"
|
|
33
|
+
},
|
|
34
|
+
"opacity": "opacity_6",
|
|
35
|
+
"scrollBarNone": false,
|
|
36
|
+
"fullScreen": false
|
|
37
|
+
},
|
|
38
|
+
"groups": [
|
|
39
|
+
{
|
|
40
|
+
"name": "Appearance",
|
|
41
|
+
"props": [
|
|
42
|
+
"color",
|
|
43
|
+
"opacity",
|
|
44
|
+
"gradient"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Layout",
|
|
49
|
+
"props": [
|
|
50
|
+
"layout",
|
|
51
|
+
"fullScreen",
|
|
52
|
+
"scrollBarNone"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"presets": [
|
|
57
|
+
{
|
|
58
|
+
"name": "Default",
|
|
59
|
+
"props": {
|
|
60
|
+
"color": "card_light",
|
|
61
|
+
"layout": {
|
|
62
|
+
"bottom": "full"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"children": "<Card padding=\"md\">\n <Body text=\"Overlay content\" />\n</Card>"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "Black Gradient",
|
|
69
|
+
"structureMode": "standard",
|
|
70
|
+
"props": {
|
|
71
|
+
"color": "black",
|
|
72
|
+
"opacity": "opacity_6",
|
|
73
|
+
"layout": {
|
|
74
|
+
"bottom": "full"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"children": "<Background\n alt=\"Colorful abstract background\"\n backgroundPosition=\"center\"\n imageUrl=\"https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80\"\n minHeight=\"320px\"\n width=\"100%\"\n>\n <Flex minHeight=\"320px\" orientation=\"column\" padding=\"lg\" vertical=\"center\">\n <Title dark size={3} text=\"Gradient Overlay\" />\n <Body color=\"light\" text=\"Full-width Background kit image with Overlay gradient.\" />\n </Flex>\n</Background>"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "No Gradient",
|
|
81
|
+
"structureMode": "standard",
|
|
82
|
+
"props": {
|
|
83
|
+
"color": "black",
|
|
84
|
+
"gradient": false,
|
|
85
|
+
"opacity": "opacity_4",
|
|
86
|
+
"layout": {
|
|
87
|
+
"bottom": "full"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"children": "<Background\n alt=\"Colorful abstract background\"\n backgroundPosition=\"center\"\n imageUrl=\"https://images.unsplash.com/photo-1528459801416-a9e53bbf4e17?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80\"\n minHeight=\"320px\"\n width=\"100%\"\n>\n <Flex minHeight=\"320px\" orientation=\"column\" padding=\"lg\" vertical=\"center\">\n <Title dark size={3} text=\"Flat Overlay\" />\n <Body color=\"light\" text=\"gradient={false} removes the fade treatment.\" />\n </Flex>\n</Background>"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "Horizontal",
|
|
94
|
+
"props": {
|
|
95
|
+
"color": "card_light",
|
|
96
|
+
"layout": {
|
|
97
|
+
"x": "xl"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"children": "<Flex columnGap=\"lg\" orientation=\"row\" overflowX=\"auto\">\n <FlexItem fixedSize=\"160px\"><Card>{'Card 1'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 2'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 3'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 4'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 5'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 6'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 7'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 8'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 9'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 10'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 11'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 12'}</Card></FlexItem>\n</Flex>"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "Full Screen",
|
|
104
|
+
"structureMode": "fullscreen",
|
|
105
|
+
"props": {
|
|
106
|
+
"color": "bg_dark",
|
|
107
|
+
"fullScreen": true,
|
|
108
|
+
"gradient": false,
|
|
109
|
+
"opacity": "opacity_4"
|
|
110
|
+
},
|
|
111
|
+
"children": "<FixedConfirmationToast\n closeable\n horizontal=\"center\"\n onClose={handleClose}\n open={open}\n status=\"tip\"\n text=\"Fullscreen overlay content\"\n vertical=\"top\"\n/>"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "Hide Scrollbar",
|
|
115
|
+
"props": {
|
|
116
|
+
"color": "card_light",
|
|
117
|
+
"layout": {
|
|
118
|
+
"x": "xl"
|
|
119
|
+
},
|
|
120
|
+
"scrollBarNone": true
|
|
121
|
+
},
|
|
122
|
+
"children": "<Flex columnGap=\"lg\" orientation=\"row\" overflowX=\"auto\">\n <FlexItem fixedSize=\"160px\"><Card>{'Card 1'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 2'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 3'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 4'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 5'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 6'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 7'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 8'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 9'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 10'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 11'}</Card></FlexItem>\n <FlexItem fixedSize=\"160px\"><Card>{'Card 12'}</Card></FlexItem>\n</Flex>"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"conditionals": {
|
|
126
|
+
"opacity": {
|
|
127
|
+
"requires": {
|
|
128
|
+
"gradient": false
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"hints": {
|
|
133
|
+
"layout": {
|
|
134
|
+
"when": {},
|
|
135
|
+
"message": "layout controls overlay direction and size. Use keys like bottom, top, x, or y with token values like full, xl, or percentages.",
|
|
136
|
+
"type": "info"
|
|
137
|
+
},
|
|
138
|
+
"gradient": {
|
|
139
|
+
"presetName": "No Gradient",
|
|
140
|
+
"message": "gradient={false} removes the default gradient treatment and uses a flatter color overlay.",
|
|
141
|
+
"type": "info"
|
|
142
|
+
},
|
|
143
|
+
"fullscreen": {
|
|
144
|
+
"presetName": "Full Screen",
|
|
145
|
+
"message": "fullScreen changes the overlay to a fixed viewport layer; pair it with content that can close or explain the state.",
|
|
146
|
+
"type": "info"
|
|
147
|
+
},
|
|
148
|
+
"scrollbar": {
|
|
149
|
+
"presetName": "Hide Scrollbar",
|
|
150
|
+
"message": "scrollBarNone hides the scrollbar while preserving scrollable overflow content.",
|
|
151
|
+
"type": "info"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"defaults": {
|
|
5
5
|
"current": 1,
|
|
6
6
|
"range": 5,
|
|
7
|
-
"total": 10
|
|
7
|
+
"total": 10,
|
|
8
|
+
"onChange": "(page) => console.log('Page changed', page)"
|
|
8
9
|
},
|
|
9
10
|
"groups": [
|
|
10
11
|
{
|
|
@@ -48,22 +49,42 @@
|
|
|
48
49
|
}
|
|
49
50
|
},
|
|
50
51
|
{
|
|
51
|
-
"name": "
|
|
52
|
+
"name": "Controlled",
|
|
53
|
+
"structureMode": "controlled",
|
|
52
54
|
"props": {
|
|
53
|
-
"
|
|
54
|
-
"total":
|
|
55
|
-
"range": 5
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Wide window",
|
|
60
|
-
"props": {
|
|
61
|
-
"current": 25,
|
|
62
|
-
"total": 50,
|
|
63
|
-
"range": 9
|
|
55
|
+
"range": 5,
|
|
56
|
+
"total": 10
|
|
64
57
|
}
|
|
65
58
|
}
|
|
66
59
|
],
|
|
67
60
|
"conditionals": {},
|
|
68
|
-
"hints": {
|
|
61
|
+
"hints": {
|
|
62
|
+
"range": {
|
|
63
|
+
"when": {},
|
|
64
|
+
"message": "range controls how many page numbers appear around the current page before first/last shortcuts are added.",
|
|
65
|
+
"type": "info"
|
|
66
|
+
},
|
|
67
|
+
"controlled": {
|
|
68
|
+
"presetName": "Controlled",
|
|
69
|
+
"message": "For React-controlled pagination, keep current in state and update it from onChange.",
|
|
70
|
+
"type": "info"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"structureModes": {
|
|
74
|
+
"default": "static",
|
|
75
|
+
"modes": {
|
|
76
|
+
"static": {
|
|
77
|
+
"label": "Static",
|
|
78
|
+
"template": "<Pagination{{props}} />"
|
|
79
|
+
},
|
|
80
|
+
"controlled": {
|
|
81
|
+
"label": "Controlled",
|
|
82
|
+
"template": "<Pagination\n current={currentPage}\n onChange={setCurrentPage}{{props}}\n/>",
|
|
83
|
+
"wrapper": "const PaginationPlayground = () => {\n const [currentPage, setCurrentPage] = useState(1)\n\n return {{component}}\n}\n\n<PaginationPlayground />",
|
|
84
|
+
"externalImports": [
|
|
85
|
+
"import React, { useState } from 'react'"
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
69
90
|
}
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
+
"structureModes": {
|
|
3
|
+
"default": "static",
|
|
4
|
+
"modes": {
|
|
5
|
+
"static": {
|
|
6
|
+
"label": "Static",
|
|
7
|
+
"template": "<Pagination{{props}} />"
|
|
8
|
+
},
|
|
9
|
+
"controlled": {
|
|
10
|
+
"label": "Controlled",
|
|
11
|
+
"template": "<Pagination\n current={currentPage}\n onChange={setCurrentPage}{{props}}\n/>",
|
|
12
|
+
"wrapper": "const PaginationPlayground = () => {\n const [currentPage, setCurrentPage] = useState(1)\n\n return {{component}}\n}\n\n<PaginationPlayground />",
|
|
13
|
+
"externalImports": [
|
|
14
|
+
"import React, { useState } from 'react'"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
2
19
|
"defaults": {
|
|
3
20
|
"current": 1,
|
|
4
21
|
"range": 5,
|
|
5
|
-
"total": 10
|
|
22
|
+
"total": 10,
|
|
23
|
+
"onChange": "(page) => console.log('Page changed', page)"
|
|
6
24
|
},
|
|
7
25
|
"groups": [
|
|
8
26
|
{
|
|
@@ -40,22 +58,25 @@
|
|
|
40
58
|
}
|
|
41
59
|
},
|
|
42
60
|
{
|
|
43
|
-
"name": "
|
|
44
|
-
"
|
|
45
|
-
"current": 12,
|
|
46
|
-
"total": 12,
|
|
47
|
-
"range": 5
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "Wide window",
|
|
61
|
+
"name": "Controlled",
|
|
62
|
+
"structureMode": "controlled",
|
|
52
63
|
"props": {
|
|
53
|
-
"
|
|
54
|
-
"total":
|
|
55
|
-
"range": 9
|
|
64
|
+
"range": 5,
|
|
65
|
+
"total": 10
|
|
56
66
|
}
|
|
57
67
|
}
|
|
58
68
|
],
|
|
59
69
|
"conditionals": {},
|
|
60
|
-
"hints": {
|
|
70
|
+
"hints": {
|
|
71
|
+
"range": {
|
|
72
|
+
"when": {},
|
|
73
|
+
"message": "range controls how many page numbers appear around the current page before first/last shortcuts are added.",
|
|
74
|
+
"type": "info"
|
|
75
|
+
},
|
|
76
|
+
"controlled": {
|
|
77
|
+
"presetName": "Controlled",
|
|
78
|
+
"message": "For React-controlled pagination, keep current in state and update it from onChange.",
|
|
79
|
+
"type": "info"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
61
82
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_breached" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_breached" }) %>
|
|
6
6
|
|
|
7
7
|
<script>
|
|
8
8
|
window.addEventListener("load", () => {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_common" }) %>
|
|
9
9
|
|
|
10
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
10
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_common" }) %>
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
<script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "def_bar" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "def_caption" }) %>
|
|
6
6
|
|
|
7
7
|
<%= pb_rails("text_input", props: { label: "Calculated Strength", value: "0", disabled: true, id: "calc_strength" }) %>
|
|
8
8
|
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
|
|
11
11
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "min_5_bar" }) %>
|
|
12
12
|
|
|
13
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
13
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "min_5_caption" }) %>
|
|
14
14
|
|
|
15
15
|
<%= pb_rails("passphrase", props: { label: "Min length = 30", classname: "min_30" }) %>
|
|
16
16
|
|
|
17
17
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "min_30_bar" }) %>
|
|
18
18
|
|
|
19
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
19
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "min_30_caption" }) %>
|
|
20
20
|
|
|
21
21
|
<%= pb_rails("passphrase", props: { label: "Average Threshold = 1", classname: "avg_1" }) %>
|
|
22
22
|
|
|
23
23
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "avg_1_bar" }) %>
|
|
24
24
|
|
|
25
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
25
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "avg_1_caption" }) %>
|
|
26
26
|
|
|
27
27
|
<%= pb_rails("passphrase", props: { label: "Strong Threshold = 4", classname: "strong_4" }) %>
|
|
28
28
|
|
|
29
29
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "strong_4_bar" }) %>
|
|
30
30
|
|
|
31
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
31
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "strong_4_caption" }) %>
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<%= pb_rails("progress_simple", props: { percent: 0, id: "bar_change" }) %>
|
|
4
4
|
|
|
5
|
-
<%= pb_rails("caption", props: { size: 'xs', text: "
|
|
5
|
+
<%= pb_rails("caption", props: { size: 'xs', text: "", id: "caption_change" }) %>
|
|
6
6
|
|
|
7
7
|
<%= pb_rails("text_input", props: { label: "Passphrase Strength", value: "0", disabled: true, id: "calc_strength_change" }) %>
|
|
8
8
|
|