playbook_ui 17.2.0.pre.rc.3 → 18.0.0.pre.alpha.PLAY3189datepickercloseonselect19522
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/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_background/kit.schema.json +16 -4
- data/app/pb_kits/playbook/pb_card/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +14 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_close_on_select.html.erb +5 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_close_on_select.jsx +21 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_close_on_select.md +3 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx +14 -18
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md +3 -1
- 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 +12 -1
- data/app/pb_kits/playbook/pb_dropdown/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_file_upload/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_filter/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_home_address_street/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_icon/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +1 -4
- data/app/pb_kits/playbook/pb_message/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_multi_level_select/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_overlay/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +1 -1
- data/app/pb_kits/playbook/pb_progress_step/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_radio/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb +1 -1
- data/app/pb_kits/playbook/pb_selectable_card_icon/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_selectable_icon/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/kit.schema.json +8 -2
- data/app/pb_kits/playbook/pb_source/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_stat_change/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_stat_value/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_table/docs/_sections.yml +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +38 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +35 -35
- data/app/pb_kits/playbook/pb_table/docs/_table_as_wrapper.html.erb +34 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_as_wrapper.jsx +46 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_as_wrapper.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_container.html.erb +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_container.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_contrast_border.html.erb +64 -64
- data/app/pb_kits/playbook/pb_table/docs/_table_contrast_border.jsx +64 -65
- data/app/pb_kits/playbook/pb_table/docs/_table_data_table.html.erb +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_data_table.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.html.erb +33 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_disable_hover.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +8 -8
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +35 -35
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +37 -37
- data/app/pb_kits/playbook/pb_table/docs/_table_lg.html.erb +33 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_lg.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_md.html.erb +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_md.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_multiline.html.erb +54 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_multiline.jsx +38 -38
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +38 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +35 -35
- data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.html.erb +38 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_outer_padding.jsx +35 -41
- data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.html.erb +72 -74
- data/app/pb_kits/playbook/pb_table/docs/_table_responsive_table.jsx +72 -72
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.html.erb +99 -99
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +93 -93
- data/app/pb_kits/playbook/pb_table/docs/_table_single_line.html.erb +53 -46
- data/app/pb_kits/playbook/pb_table/docs/_table_single_line.jsx +38 -38
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.html.erb +33 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb +89 -82
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx +82 -81
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.md +3 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +73 -72
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +72 -72
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +72 -75
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +73 -73
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +72 -72
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +73 -73
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +41 -41
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +37 -37
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +44 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +57 -54
- data/app/pb_kits/playbook/pb_table/docs/_table_vertical_border.html.erb +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +64 -62
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +69 -79
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_react.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +32 -32
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx +32 -32
- data/app/pb_kits/playbook/pb_table/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_table/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_text_input/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_timeline/kit.schema.json +4 -1
- data/app/pb_kits/playbook/pb_user_badge/user_badge.rb +1 -5
- data/dist/ai/all-schemas.json +15873 -0
- data/dist/ai/external-dependencies.json +1 -0
- data/dist/ai/forms.json +1023 -0
- data/dist/ai/global-props.schema.json +1271 -0
- data/dist/ai/index.json +1047 -0
- data/dist/ai/kits/advanced_table.schema.json +334 -0
- data/dist/ai/kits/avatar.schema.json +100 -0
- data/dist/ai/kits/background.schema.json +238 -0
- data/dist/ai/kits/badge.schema.json +83 -0
- data/dist/ai/kits/body.schema.json +111 -0
- data/dist/ai/kits/bread_crumbs.schema.json +32 -0
- data/dist/ai/kits/button.schema.json +291 -0
- data/dist/ai/kits/button_toolbar.schema.json +70 -0
- data/dist/ai/kits/caption.schema.json +95 -0
- data/dist/ai/kits/card.schema.json +203 -0
- data/dist/ai/kits/checkbox.schema.json +321 -0
- data/dist/ai/kits/circle_icon_button.schema.json +127 -0
- data/dist/ai/kits/collapsible.schema.json +109 -0
- data/dist/ai/kits/contact.schema.json +69 -0
- data/dist/ai/kits/container.schema.json +56 -0
- data/dist/ai/kits/copy_button.schema.json +98 -0
- data/dist/ai/kits/currency.schema.json +154 -0
- data/dist/ai/kits/dashboard_value.schema.json +60 -0
- data/dist/ai/kits/date.schema.json +107 -0
- data/dist/ai/kits/date_picker.schema.json +587 -0
- data/dist/ai/kits/date_range_inline.schema.json +88 -0
- data/dist/ai/kits/date_range_stacked.schema.json +48 -0
- data/dist/ai/kits/date_stacked.schema.json +90 -0
- data/dist/ai/kits/date_time.schema.json +107 -0
- data/dist/ai/kits/date_time_stacked.schema.json +74 -0
- data/dist/ai/kits/date_year_stacked.schema.json +54 -0
- data/dist/ai/kits/detail.schema.json +82 -0
- data/dist/ai/kits/dialog.schema.json +188 -0
- data/dist/ai/kits/distribution_bar.schema.json +52 -0
- data/dist/ai/kits/draggable.schema.json +70 -0
- data/dist/ai/kits/dropdown.schema.json +477 -0
- data/dist/ai/kits/empty_state.schema.json +121 -0
- data/dist/ai/kits/file_upload.schema.json +139 -0
- data/dist/ai/kits/filter.schema.json +162 -0
- data/dist/ai/kits/fixed_confirmation_toast.schema.json +128 -0
- data/dist/ai/kits/flex.schema.json +176 -0
- data/dist/ai/kits/form.schema.json +55 -0
- data/dist/ai/kits/form_group.schema.json +34 -0
- data/dist/ai/kits/form_pill.schema.json +142 -0
- data/dist/ai/kits/full_screen.schema.json +93 -0
- data/dist/ai/kits/hashtag.schema.json +81 -0
- data/dist/ai/kits/highlight.schema.json +39 -0
- data/dist/ai/kits/home_address_street.schema.json +136 -0
- data/dist/ai/kits/icon.schema.json +201 -0
- data/dist/ai/kits/icon_circle.schema.json +83 -0
- data/dist/ai/kits/icon_stat_value.schema.json +106 -0
- data/dist/ai/kits/icon_value.schema.json +59 -0
- data/dist/ai/kits/image.schema.json +78 -0
- data/dist/ai/kits/label_pill.schema.json +56 -0
- data/dist/ai/kits/label_value.schema.json +94 -0
- data/dist/ai/kits/layout.schema.json +129 -0
- data/dist/ai/kits/legend.schema.json +54 -0
- data/dist/ai/kits/link.schema.json +135 -0
- data/dist/ai/kits/list.schema.json +121 -0
- data/dist/ai/kits/loading_inline.schema.json +83 -0
- data/dist/ai/kits/map.schema.json +62 -0
- data/dist/ai/kits/message.schema.json +111 -0
- data/dist/ai/kits/multi_level_select.schema.json +376 -0
- data/dist/ai/kits/multiple_users.schema.json +77 -0
- data/dist/ai/kits/multiple_users_stacked.schema.json +65 -0
- data/dist/ai/kits/nav.schema.json +115 -0
- data/dist/ai/kits/online_status.schema.json +66 -0
- data/dist/ai/kits/overlay.schema.json +112 -0
- data/dist/ai/kits/pagination.schema.json +60 -0
- data/dist/ai/kits/passphrase.schema.json +117 -0
- data/dist/ai/kits/pb_bar_graph.schema.json +42 -0
- data/dist/ai/kits/pb_circle_chart.schema.json +42 -0
- data/dist/ai/kits/pb_gauge_chart.schema.json +42 -0
- data/dist/ai/kits/pb_line_graph.schema.json +42 -0
- data/dist/ai/kits/person.schema.json +40 -0
- data/dist/ai/kits/person_contact.schema.json +47 -0
- data/dist/ai/kits/phone_number_input.schema.json +386 -0
- data/dist/ai/kits/pill.schema.json +80 -0
- data/dist/ai/kits/popover.schema.json +137 -0
- data/dist/ai/kits/progress_pills.schema.json +70 -0
- data/dist/ai/kits/progress_simple.schema.json +96 -0
- data/dist/ai/kits/progress_step.schema.json +84 -0
- data/dist/ai/kits/radio.schema.json +117 -0
- data/dist/ai/kits/rich_text_editor.schema.json +194 -0
- data/dist/ai/kits/section_separator.schema.json +89 -0
- data/dist/ai/kits/select.schema.json +422 -0
- data/dist/ai/kits/selectable_card.schema.json +126 -0
- data/dist/ai/kits/selectable_card_icon.schema.json +129 -0
- data/dist/ai/kits/selectable_icon.schema.json +116 -0
- data/dist/ai/kits/selectable_list.schema.json +58 -0
- data/dist/ai/kits/skeleton_loading.schema.json +111 -0
- data/dist/ai/kits/source.schema.json +68 -0
- data/dist/ai/kits/star_rating.schema.json +328 -0
- data/dist/ai/kits/stat_change.schema.json +62 -0
- data/dist/ai/kits/stat_value.schema.json +49 -0
- data/dist/ai/kits/table.schema.json +262 -0
- data/dist/ai/kits/text_input.schema.json +666 -0
- data/dist/ai/kits/textarea.schema.json +363 -0
- data/dist/ai/kits/time.schema.json +104 -0
- data/dist/ai/kits/time_picker.schema.json +324 -0
- data/dist/ai/kits/time_range_inline.schema.json +89 -0
- data/dist/ai/kits/time_stacked.schema.json +70 -0
- data/dist/ai/kits/timeline.schema.json +64 -0
- data/dist/ai/kits/timestamp.schema.json +138 -0
- data/dist/ai/kits/title.schema.json +110 -0
- data/dist/ai/kits/title_count.schema.json +71 -0
- data/dist/ai/kits/title_detail.schema.json +53 -0
- data/dist/ai/kits/toggle.schema.json +80 -0
- data/dist/ai/kits/tooltip.schema.json +174 -0
- data/dist/ai/kits/typeahead.schema.json +531 -0
- data/dist/ai/kits/user.schema.json +157 -0
- data/dist/ai/kits/user_badge.schema.json +51 -0
- data/dist/ai/kits/weekday_stacked.schema.json +73 -0
- data/dist/ai/playgrounds/advanced_table.json +1 -0
- data/dist/ai/playgrounds/avatar.json +1 -0
- data/dist/ai/playgrounds/background.json +1 -0
- data/dist/ai/playgrounds/badge.json +1 -0
- data/dist/ai/playgrounds/body.json +1 -0
- data/dist/ai/playgrounds/bread_crumbs.json +1 -0
- data/dist/ai/playgrounds/button.json +1 -0
- data/dist/ai/playgrounds/button_toolbar.json +1 -0
- data/dist/ai/playgrounds/caption.json +1 -0
- data/dist/ai/playgrounds/card.json +1 -0
- data/dist/ai/playgrounds/checkbox.json +1 -0
- data/dist/ai/playgrounds/circle_icon_button.json +1 -0
- data/dist/ai/playgrounds/collapsible.json +1 -0
- data/dist/ai/playgrounds/contact.json +1 -0
- data/dist/ai/playgrounds/container.json +1 -0
- data/dist/ai/playgrounds/copy_button.json +1 -0
- data/dist/ai/playgrounds/currency.json +1 -0
- data/dist/ai/playgrounds/dashboard_value.json +1 -0
- data/dist/ai/playgrounds/date.json +1 -0
- data/dist/ai/playgrounds/date_picker.json +1 -0
- data/dist/ai/playgrounds/date_range_inline.json +1 -0
- data/dist/ai/playgrounds/date_range_stacked.json +1 -0
- data/dist/ai/playgrounds/date_stacked.json +1 -0
- data/dist/ai/playgrounds/date_time.json +1 -0
- data/dist/ai/playgrounds/date_time_stacked.json +1 -0
- data/dist/ai/playgrounds/date_year_stacked.json +1 -0
- data/dist/ai/playgrounds/detail.json +1 -0
- data/dist/ai/playgrounds/dialog.json +1 -0
- data/dist/ai/playgrounds/distribution_bar.json +1 -0
- data/dist/ai/playgrounds/draggable.json +1 -0
- data/dist/ai/playgrounds/dropdown.json +1 -0
- data/dist/ai/playgrounds/empty_state.json +1 -0
- data/dist/ai/playgrounds/file_upload.json +1 -0
- data/dist/ai/playgrounds/filter.json +1 -0
- data/dist/ai/playgrounds/fixed_confirmation_toast.json +1 -0
- data/dist/ai/playgrounds/flex.json +1 -0
- data/dist/ai/playgrounds/form_group.json +1 -0
- data/dist/ai/playgrounds/form_pill.json +1 -0
- data/dist/ai/playgrounds/full_screen.json +1 -0
- data/dist/ai/playgrounds/hashtag.json +1 -0
- data/dist/ai/playgrounds/highlight.json +1 -0
- data/dist/ai/playgrounds/home_address_street.json +1 -0
- data/dist/ai/playgrounds/icon.json +1 -0
- data/dist/ai/playgrounds/icon_circle.json +1 -0
- data/dist/ai/playgrounds/icon_stat_value.json +1 -0
- data/dist/ai/playgrounds/icon_value.json +1 -0
- data/dist/ai/playgrounds/image.json +1 -0
- data/dist/ai/playgrounds/index.json +1 -0
- data/dist/ai/playgrounds/label_pill.json +1 -0
- data/dist/ai/playgrounds/label_value.json +1 -0
- data/dist/ai/playgrounds/layout.json +1 -0
- data/dist/ai/playgrounds/legend.json +1 -0
- data/dist/ai/playgrounds/link.json +1 -0
- data/dist/ai/playgrounds/list.json +1 -0
- data/dist/ai/playgrounds/loading_inline.json +1 -0
- data/dist/ai/playgrounds/map.json +1 -0
- data/dist/ai/playgrounds/message.json +1 -0
- data/dist/ai/playgrounds/multi_level_select.json +1 -0
- data/dist/ai/playgrounds/multiple_users.json +1 -0
- data/dist/ai/playgrounds/multiple_users_stacked.json +1 -0
- data/dist/ai/playgrounds/nav.json +1 -0
- data/dist/ai/playgrounds/online_status.json +1 -0
- data/dist/ai/playgrounds/overlay.json +1 -0
- data/dist/ai/playgrounds/pagination.json +1 -0
- data/dist/ai/playgrounds/passphrase.json +1 -0
- data/dist/ai/playgrounds/pb_bar_graph.json +1 -0
- data/dist/ai/playgrounds/pb_circle_chart.json +1 -0
- data/dist/ai/playgrounds/pb_gauge_chart.json +1 -0
- data/dist/ai/playgrounds/pb_line_graph.json +1 -0
- data/dist/ai/playgrounds/person.json +1 -0
- data/dist/ai/playgrounds/person_contact.json +1 -0
- data/dist/ai/playgrounds/phone_number_input.json +1 -0
- data/dist/ai/playgrounds/pill.json +1 -0
- data/dist/ai/playgrounds/popover.json +1 -0
- data/dist/ai/playgrounds/progress_pills.json +1 -0
- data/dist/ai/playgrounds/progress_simple.json +1 -0
- data/dist/ai/playgrounds/progress_step.json +1 -0
- data/dist/ai/playgrounds/radio.json +1 -0
- data/dist/ai/playgrounds/rich_text_editor.json +1 -0
- data/dist/ai/playgrounds/section_separator.json +1 -0
- data/dist/ai/playgrounds/select.json +1 -0
- data/dist/ai/playgrounds/selectable_card.json +1 -0
- data/dist/ai/playgrounds/selectable_card_icon.json +1 -0
- data/dist/ai/playgrounds/selectable_icon.json +1 -0
- data/dist/ai/playgrounds/selectable_list.json +1 -0
- data/dist/ai/playgrounds/skeleton_loading.json +1 -0
- data/dist/ai/playgrounds/source.json +1 -0
- data/dist/ai/playgrounds/star_rating.json +1 -0
- data/dist/ai/playgrounds/stat_change.json +1 -0
- data/dist/ai/playgrounds/stat_value.json +1 -0
- data/dist/ai/playgrounds/table.json +1 -0
- data/dist/ai/playgrounds/text_input.json +1 -0
- data/dist/ai/playgrounds/textarea.json +1 -0
- data/dist/ai/playgrounds/time.json +1 -0
- data/dist/ai/playgrounds/time_picker.json +1 -0
- data/dist/ai/playgrounds/time_range_inline.json +1 -0
- data/dist/ai/playgrounds/time_stacked.json +1 -0
- data/dist/ai/playgrounds/timeline.json +1 -0
- data/dist/ai/playgrounds/timestamp.json +1 -0
- data/dist/ai/playgrounds/title.json +1 -0
- data/dist/ai/playgrounds/title_count.json +1 -0
- data/dist/ai/playgrounds/title_detail.json +1 -0
- data/dist/ai/playgrounds/toggle.json +1 -0
- data/dist/ai/playgrounds/tooltip.json +1 -0
- data/dist/ai/playgrounds/typeahead.json +1 -0
- data/dist/ai/playgrounds/user.json +1 -0
- data/dist/ai/playgrounds/user_badge.json +1 -0
- data/dist/ai/playgrounds/weekday_stacked.json +1 -0
- data/dist/ai/visual-index.json +1 -0
- data/dist/chunks/vendor.js +1 -1
- data/lib/playbook/changelog_generator.rb +204 -23
- data/lib/playbook/engine.rb +0 -2
- data/lib/playbook/version.rb +2 -2
- metadata +240 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f50bec89e86b17b4e3f10d0c8eddd11ccc738e5556553a3fd6f384cb22c15581
|
|
4
|
+
data.tar.gz: a69070d490cf5d4773e723a10bab1a246ade330593ed92d93b99b717d80ca9a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f2d8d2620127cf4ab9375801f7289d1a47760f79a23ee6e5871ed26d2d11bfd52c59c1b9c5774ce465ea757132b4b898cb55bda3825e3c6d4f805ebb724d6a1
|
|
7
|
+
data.tar.gz: 4f74761a7f5b6ff8c19468c05009e684bdc1359b22089d94f82657e17dfd921a5f157c057fbd7673b5324bb16eea2ae826b537933dce122896c17045b6c92e9b
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
],
|
|
9
9
|
"props": {
|
|
10
10
|
"actions": {
|
|
11
|
-
"type":
|
|
11
|
+
"type": {
|
|
12
|
+
"react": "React.ReactNode[] | React.ReactNode",
|
|
13
|
+
"rails": "array"
|
|
14
|
+
},
|
|
12
15
|
"platforms": [
|
|
13
16
|
"react",
|
|
14
17
|
"rails"
|
|
@@ -115,7 +118,10 @@
|
|
|
115
118
|
"default": false
|
|
116
119
|
},
|
|
117
120
|
"loading": {
|
|
118
|
-
"type":
|
|
121
|
+
"type": {
|
|
122
|
+
"react": "boolean | string",
|
|
123
|
+
"rails": "boolean"
|
|
124
|
+
},
|
|
119
125
|
"platforms": [
|
|
120
126
|
"react",
|
|
121
127
|
"rails"
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"backgroundColor": {
|
|
17
|
-
"type":
|
|
17
|
+
"type": {
|
|
18
|
+
"react": "ResponsiveProp<BackgroundColors> | BackgroundColors",
|
|
19
|
+
"rails": "enum"
|
|
20
|
+
},
|
|
18
21
|
"platforms": [
|
|
19
22
|
"react",
|
|
20
23
|
"rails"
|
|
@@ -85,7 +88,10 @@
|
|
|
85
88
|
"default": "light"
|
|
86
89
|
},
|
|
87
90
|
"backgroundSize": {
|
|
88
|
-
"type":
|
|
91
|
+
"type": {
|
|
92
|
+
"react": "ResponsiveProp<BackgroundSizes> | BackgroundSizes",
|
|
93
|
+
"rails": "enum"
|
|
94
|
+
},
|
|
89
95
|
"platforms": [
|
|
90
96
|
"react",
|
|
91
97
|
"rails"
|
|
@@ -98,7 +104,10 @@
|
|
|
98
104
|
"default": "cover"
|
|
99
105
|
},
|
|
100
106
|
"backgroundPosition": {
|
|
101
|
-
"type":
|
|
107
|
+
"type": {
|
|
108
|
+
"react": "ResponsiveProp<string> | string",
|
|
109
|
+
"rails": "string"
|
|
110
|
+
},
|
|
102
111
|
"platforms": [
|
|
103
112
|
"react",
|
|
104
113
|
"rails"
|
|
@@ -106,7 +115,10 @@
|
|
|
106
115
|
"default": null
|
|
107
116
|
},
|
|
108
117
|
"backgroundRepeat": {
|
|
109
|
-
"type":
|
|
118
|
+
"type": {
|
|
119
|
+
"react": "ResponsiveProp<BackgroundRepeat> | BackgroundRepeat",
|
|
120
|
+
"rails": "enum"
|
|
121
|
+
},
|
|
110
122
|
"platforms": [
|
|
111
123
|
"react",
|
|
112
124
|
"rails"
|
|
@@ -52,6 +52,7 @@ type DatePickerProps = {
|
|
|
52
52
|
allowInput?: boolean,
|
|
53
53
|
aria?: { [key: string]: string },
|
|
54
54
|
className?: string,
|
|
55
|
+
closeOnSelect?: boolean,
|
|
55
56
|
customQuickPickDates: { override: boolean, dates: any[] },
|
|
56
57
|
dark?: boolean,
|
|
57
58
|
data?: { [key: string]: string },
|
|
@@ -103,6 +104,7 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
|
|
|
103
104
|
allowInput = false,
|
|
104
105
|
aria = {},
|
|
105
106
|
className,
|
|
107
|
+
closeOnSelect = true,
|
|
106
108
|
customQuickPickDates,
|
|
107
109
|
dark = false,
|
|
108
110
|
data = {},
|
|
@@ -180,6 +182,7 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
|
|
|
180
182
|
useEffect(() => {
|
|
181
183
|
datePickerHelper({
|
|
182
184
|
allowInput,
|
|
185
|
+
closeOnSelect,
|
|
183
186
|
customQuickPickDates,
|
|
184
187
|
defaultDate: normalizedDefaultDate,
|
|
185
188
|
disableDate,
|
|
@@ -91,6 +91,8 @@ module Playbook
|
|
|
91
91
|
default: "pointer"
|
|
92
92
|
prop :year_ascending, type: Playbook::Props::Boolean,
|
|
93
93
|
default: false
|
|
94
|
+
prop :close_on_select, type: Playbook::Props::Boolean,
|
|
95
|
+
default: true
|
|
94
96
|
|
|
95
97
|
def classname
|
|
96
98
|
default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
|
|
@@ -101,6 +103,7 @@ module Playbook
|
|
|
101
103
|
def date_picker_config
|
|
102
104
|
{
|
|
103
105
|
allowInput: allow_input,
|
|
106
|
+
closeOnSelect: close_on_select,
|
|
104
107
|
customQuickPickDates: custom_quick_pick_dates,
|
|
105
108
|
defaultDate: default_date,
|
|
106
109
|
disableDate: disable_date,
|
|
@@ -510,4 +510,18 @@ describe('DatePicker Kit', () => {
|
|
|
510
510
|
)
|
|
511
511
|
})
|
|
512
512
|
})
|
|
513
|
+
|
|
514
|
+
test('passes closeOnSelect to flatpickr', async () => {
|
|
515
|
+
render(
|
|
516
|
+
<DatePicker
|
|
517
|
+
closeOnSelect={false}
|
|
518
|
+
pickerId="date-picker-close-on-select"
|
|
519
|
+
/>
|
|
520
|
+
)
|
|
521
|
+
|
|
522
|
+
await waitFor(() => {
|
|
523
|
+
const input = document.getElementById('date-picker-close-on-select')
|
|
524
|
+
expect(input._flatpickr.config.closeOnSelect).toBe(false)
|
|
525
|
+
})
|
|
526
|
+
})
|
|
513
527
|
})
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import DatePicker from '../_date_picker'
|
|
4
|
+
|
|
5
|
+
const DEFAULT_DATE = new Date()
|
|
6
|
+
|
|
7
|
+
const DatePickerCloseOnSelect = (props) => {
|
|
8
|
+
return (
|
|
9
|
+
<>
|
|
10
|
+
<DatePicker
|
|
11
|
+
closeOnSelect={false}
|
|
12
|
+
defaultDate={DEFAULT_DATE}
|
|
13
|
+
initializeOnce
|
|
14
|
+
pickerId="date-picker-close-on-select"
|
|
15
|
+
{...props}
|
|
16
|
+
/>
|
|
17
|
+
</>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default DatePickerCloseOnSelect
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
When `closeOnSelect` / `close_on_select` is set to `false`, the DatePicker remains open after a date is selected and closes when the user clicks outside it. The prop defaults to `true`.
|
|
2
|
+
|
|
3
|
+
In React, use `initializeOnce` when the change handler updates state so that rerendering does not reinitialize and close the DatePicker.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable react/no-multi-comp */
|
|
2
|
-
import React, {
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import DatePicker from '../_date_picker'
|
|
5
5
|
import Body from '../../pb_body/_body'
|
|
@@ -11,26 +11,22 @@ DEFAULT_DATE.setMinutes(0)
|
|
|
11
11
|
const DatePickerTime = (props) => {
|
|
12
12
|
const [selectedDateTime, setSelectedDateTime] = useState(DEFAULT_DATE)
|
|
13
13
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const handleOnInputChanged = (dateTime) => {
|
|
17
|
-
setSelectedDateTime(dateTime)
|
|
14
|
+
const handleOnClose = (selectedDates) => {
|
|
15
|
+
setSelectedDateTime(selectedDates[0])
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
return (
|
|
21
|
-
<div
|
|
22
|
-
<Body marginBottom="md">{selectedDateTime.toString()}</Body>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
/>
|
|
33
|
-
), [props])}
|
|
19
|
+
<div>
|
|
20
|
+
<Body marginBottom="md">{selectedDateTime ? selectedDateTime.toString() : ''}</Body>
|
|
21
|
+
<DatePicker
|
|
22
|
+
defaultDate={DEFAULT_DATE}
|
|
23
|
+
enableTime
|
|
24
|
+
initializeOnce
|
|
25
|
+
onClose={handleOnClose}
|
|
26
|
+
pickerId="date-picker-time"
|
|
27
|
+
showTimezone
|
|
28
|
+
{...props}
|
|
29
|
+
/>
|
|
34
30
|
</div>
|
|
35
31
|
)
|
|
36
32
|
}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
To select time as well, you should pass the `enableTime` boolean prop. You can also enable timezone display by passing `showTimezone`.
|
|
1
|
+
To select time as well, you should pass the `enableTime` / `enable_time` boolean prop. You can also enable timezone display by passing `showTimezone` / `show_timezone`.
|
|
2
|
+
|
|
3
|
+
Use `onClose` when the calendar should stay open while the user picks both a date and a time. It fires once, after the user clicks outside to close the calendar, instead of on every selection the way `onChange` does. For React, pair the handler with `initializeOnce` so storing the value in state does not re-initialize the picker and reset the input back to `defaultDate`.
|
|
@@ -33,6 +33,7 @@ examples:
|
|
|
33
33
|
- date_picker_positions: Custom Positions
|
|
34
34
|
- date_picker_positions_element: Custom Position (based on element)
|
|
35
35
|
- date_picker_required_indicator: Required Indicator
|
|
36
|
+
- date_picker_close_on_select: Close on Select
|
|
36
37
|
- date_picker_turbo_frames: Within Turbo Frames
|
|
37
38
|
|
|
38
39
|
react:
|
|
@@ -68,4 +69,5 @@ examples:
|
|
|
68
69
|
- date_picker_positions: Custom Positions
|
|
69
70
|
- date_picker_positions_element: Custom Position (based on element)
|
|
70
71
|
- date_picker_required_indicator: Required Indicator
|
|
72
|
+
- date_picker_close_on_select: Close on Select
|
|
71
73
|
- date_picker_dialog_submission: Dialog Form Submission
|
|
@@ -31,3 +31,4 @@ export { default as DatePickerAndDropdownRange } from './_date_picker_and_dropdo
|
|
|
31
31
|
export { default as DatePickerRequiredIndicator } from "./_date_picker_required_indicator.jsx";
|
|
32
32
|
export { default as DatePickerDialogSubmission } from "./_date_picker_dialog_submission.jsx";
|
|
33
33
|
export { default as DatePickerYearAsc } from './_date_picker_year_asc.jsx'
|
|
34
|
+
export { default as DatePickerCloseOnSelect } from './_date_picker_close_on_select.jsx'
|
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
],
|
|
16
16
|
"default": false
|
|
17
17
|
},
|
|
18
|
+
"closeOnSelect": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"platforms": [
|
|
21
|
+
"react",
|
|
22
|
+
"rails"
|
|
23
|
+
],
|
|
24
|
+
"default": true
|
|
25
|
+
},
|
|
18
26
|
"customQuickPickDates": {
|
|
19
27
|
"type": "GenericObject",
|
|
20
28
|
"platforms": [
|
|
@@ -189,7 +197,10 @@
|
|
|
189
197
|
"default": "Select Date"
|
|
190
198
|
},
|
|
191
199
|
"positionElement": {
|
|
192
|
-
"type":
|
|
200
|
+
"type": {
|
|
201
|
+
"react": "HTMLElement | null",
|
|
202
|
+
"rails": "string"
|
|
203
|
+
},
|
|
193
204
|
"platforms": [
|
|
194
205
|
"react",
|
|
195
206
|
"rails"
|
|
@@ -53,7 +53,10 @@
|
|
|
53
53
|
"default": false
|
|
54
54
|
},
|
|
55
55
|
"customQuickPickDates": {
|
|
56
|
-
"type":
|
|
56
|
+
"type": {
|
|
57
|
+
"react": "CustomQuickPickDates",
|
|
58
|
+
"rails": "GenericObject"
|
|
59
|
+
},
|
|
57
60
|
"platforms": [
|
|
58
61
|
"react",
|
|
59
62
|
"rails"
|
|
@@ -122,7 +125,10 @@
|
|
|
122
125
|
]
|
|
123
126
|
},
|
|
124
127
|
"options": {
|
|
125
|
-
"type":
|
|
128
|
+
"type": {
|
|
129
|
+
"react": "GenericObject",
|
|
130
|
+
"rails": "array"
|
|
131
|
+
},
|
|
126
132
|
"platforms": [
|
|
127
133
|
"react",
|
|
128
134
|
"rails"
|
|
@@ -8,7 +8,10 @@
|
|
|
8
8
|
],
|
|
9
9
|
"props": {
|
|
10
10
|
"border": {
|
|
11
|
-
"type":
|
|
11
|
+
"type": {
|
|
12
|
+
"react": "boolean | BorderPropValue",
|
|
13
|
+
"rails": "enum"
|
|
14
|
+
},
|
|
12
15
|
"platforms": [
|
|
13
16
|
"react",
|
|
14
17
|
"rails"
|
|
@@ -34,7 +37,10 @@
|
|
|
34
37
|
]
|
|
35
38
|
},
|
|
36
39
|
"customIcon": {
|
|
37
|
-
"type":
|
|
40
|
+
"type": {
|
|
41
|
+
"react": "GenericObject",
|
|
42
|
+
"rails": "string"
|
|
43
|
+
},
|
|
38
44
|
"platforms": [
|
|
39
45
|
"react",
|
|
40
46
|
"rails"
|
|
@@ -97,7 +97,10 @@
|
|
|
97
97
|
"default": true
|
|
98
98
|
},
|
|
99
99
|
"treeData": {
|
|
100
|
-
"type":
|
|
100
|
+
"type": {
|
|
101
|
+
"react": "GenericObject",
|
|
102
|
+
"rails": "array"
|
|
103
|
+
},
|
|
101
104
|
"platforms": [
|
|
102
105
|
"react",
|
|
103
106
|
"rails"
|
|
@@ -124,7 +127,10 @@
|
|
|
124
127
|
"default": "Start typing..."
|
|
125
128
|
},
|
|
126
129
|
"selectedIds": {
|
|
127
|
-
"type":
|
|
130
|
+
"type": {
|
|
131
|
+
"react": "string[] | any",
|
|
132
|
+
"rails": "array"
|
|
133
|
+
},
|
|
128
134
|
"platforms": [
|
|
129
135
|
"react",
|
|
130
136
|
"rails"
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
"default": false
|
|
37
37
|
},
|
|
38
38
|
"variant": {
|
|
39
|
-
"type":
|
|
39
|
+
"type": {
|
|
40
|
+
"react": "string",
|
|
41
|
+
"rails": "enum"
|
|
42
|
+
},
|
|
40
43
|
"platforms": [
|
|
41
44
|
"react",
|
|
42
45
|
"rails"
|
|
@@ -48,7 +51,10 @@
|
|
|
48
51
|
"default": "default"
|
|
49
52
|
},
|
|
50
53
|
"color": {
|
|
51
|
-
"type":
|
|
54
|
+
"type": {
|
|
55
|
+
"react": "string",
|
|
56
|
+
"rails": "enum"
|
|
57
|
+
},
|
|
52
58
|
"platforms": [
|
|
53
59
|
"react",
|
|
54
60
|
"rails"
|
|
@@ -158,5 +158,5 @@
|
|
|
158
158
|
|
|
159
159
|
<%# Module script: rich_text_editor_rails.js %>
|
|
160
160
|
<script type="module">
|
|
161
|
-
<%= File.read(Playbook.kit_path("rich_text_editor", "rich_text_editor_rails.js")).html_safe %>
|
|
161
|
+
<%= ::File.read(Playbook.kit_path("rich_text_editor", "rich_text_editor_rails.js")).html_safe %>
|
|
162
162
|
</script>
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"default": "100%"
|
|
25
25
|
},
|
|
26
26
|
"borderRadius": {
|
|
27
|
-
"type":
|
|
27
|
+
"type": {
|
|
28
|
+
"react": "string",
|
|
29
|
+
"rails": "enum"
|
|
30
|
+
},
|
|
28
31
|
"platforms": [
|
|
29
32
|
"react",
|
|
30
33
|
"rails"
|
|
@@ -41,7 +44,10 @@
|
|
|
41
44
|
"default": "sm"
|
|
42
45
|
},
|
|
43
46
|
"gap": {
|
|
44
|
-
"type":
|
|
47
|
+
"type": {
|
|
48
|
+
"react": "Sizes | \"none\"",
|
|
49
|
+
"rails": "enum"
|
|
50
|
+
},
|
|
45
51
|
"platforms": [
|
|
46
52
|
"react",
|
|
47
53
|
"rails"
|