playbook_ui 16.5.0.pre.alpha.testingplayground15744 → 16.5.0.pre.alpha.typeaheadrailscreateable15620
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/_advanced_table.tsx +3 -15
- data/app/pb_kits/playbook/pb_advanced_table/kit.schema.json +7 -54
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +0 -33
- data/app/pb_kits/playbook/pb_avatar/kit.schema.json +5 -13
- data/app/pb_kits/playbook/pb_background/kit.schema.json +0 -14
- data/app/pb_kits/playbook/pb_badge/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_body/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.tsx +1 -0
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.tsx +1 -0
- data/app/pb_kits/playbook/pb_button_toolbar/kit.schema.json +8 -7
- data/app/pb_kits/playbook/pb_card/kit.schema.json +8 -30
- data/app/pb_kits/playbook/pb_checkbox/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_circle_icon_button/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_collapsible/kit.schema.json +3 -18
- data/app/pb_kits/playbook/pb_contact/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_currency/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_dashboard_value/kit.schema.json +7 -9
- data/app/pb_kits/playbook/pb_date/kit.schema.json +12 -17
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +0 -35
- data/app/pb_kits/playbook/pb_date_picker/kit.schema.json +3 -9
- data/app/pb_kits/playbook/pb_date_range_inline/kit.schema.json +10 -16
- data/app/pb_kits/playbook/pb_date_range_stacked/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_date_stacked/kit.schema.json +6 -12
- data/app/pb_kits/playbook/pb_date_time_stacked/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_date_year_stacked/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_detail/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_dialog/kit.schema.json +19 -17
- data/app/pb_kits/playbook/pb_draggable/kit.schema.json +5 -11
- data/app/pb_kits/playbook/pb_dropdown/kit.schema.json +20 -32
- data/app/pb_kits/playbook/pb_file_upload/kit.schema.json +2 -8
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/kit.schema.json +10 -16
- data/app/pb_kits/playbook/pb_flex/kit.schema.json +0 -18
- data/app/pb_kits/playbook/pb_form_pill/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_hashtag/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_home_address_street/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_icon/kit.schema.json +2 -2
- data/app/pb_kits/playbook/pb_icon_button/kit.schema.json +7 -7
- data/app/pb_kits/playbook/pb_icon_circle/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_icon_stat_value/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_icon_value/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_label_value/kit.schema.json +8 -14
- data/app/pb_kits/playbook/pb_layout/kit.schema.json +2 -18
- data/app/pb_kits/playbook/pb_legend/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_link/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_list/kit.schema.json +12 -17
- data/app/pb_kits/playbook/pb_loading_inline/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_multi_level_select/kit.schema.json +15 -15
- data/app/pb_kits/playbook/pb_multiple_users/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_nav/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_overlay/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_pagination/kit.schema.json +3 -3
- data/app/pb_kits/playbook/pb_passphrase/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_phone_number_input/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_popover/kit.schema.json +8 -7
- data/app/pb_kits/playbook/pb_progress_pills/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_progress_simple/kit.schema.json +0 -12
- data/app/pb_kits/playbook/pb_radio/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_rich_text_editor/kit.schema.json +2 -8
- data/app/pb_kits/playbook/pb_section_separator/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_select/kit.schema.json +1 -13
- data/app/pb_kits/playbook/pb_selectable_card/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_selectable_card_icon/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_selectable_icon/kit.schema.json +1 -7
- data/app/pb_kits/playbook/pb_skeleton_loading/kit.schema.json +0 -30
- data/app/pb_kits/playbook/pb_star_rating/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_stat_change/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_table/kit.schema.json +3 -9
- data/app/pb_kits/playbook/pb_text_input/kit.schema.json +6 -13
- data/app/pb_kits/playbook/pb_textarea/kit.schema.json +1 -1
- data/app/pb_kits/playbook/pb_time/kit.schema.json +12 -16
- data/app/pb_kits/playbook/pb_time_picker/kit.schema.json +2 -8
- data/app/pb_kits/playbook/pb_time_range_inline/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_time_stacked/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_timestamp/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_title_count/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_tooltip/kit.schema.json +2 -48
- data/app/pb_kits/playbook/pb_typeahead/kit.schema.json +3 -24
- data/app/pb_kits/playbook/pb_user/kit.schema.json +0 -6
- data/app/pb_kits/playbook/pb_weekday_stacked/kit.schema.json +0 -6
- data/dist/chunks/{_pb_line_graph-EzcacMw_.js → _pb_line_graph-D6s5rymw.js} +1 -1
- data/dist/chunks/{_typeahead-BYUXg9ZT.js → _typeahead-BN0l-Kf8.js} +1 -1
- data/dist/chunks/{globalProps-6Hsm3bJX.js → globalProps-Ds_6HBhX.js} +1 -1
- data/dist/chunks/{lib-o4u12zAw.js → lib-BaO72ugL.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +6 -191
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +0 -8970
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +0 -403
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_grouped_simple.json +0 -41
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_grouped_triple.json +0 -56
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_standard.json +0 -31
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_standard_sort.json +0 -37
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +0 -44
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_with_ids.json +0 -38
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_inline_loading.json +0 -199
- data/app/pb_kits/playbook/pb_avatar/docs/_playground.json +0 -136
- data/app/pb_kits/playbook/pb_avatar/docs/_playground.overrides.json +0 -94
- data/app/pb_kits/playbook/pb_background/docs/_playground.json +0 -107
- data/app/pb_kits/playbook/pb_background/docs/_playground.overrides.json +0 -72
- data/app/pb_kits/playbook/pb_badge/docs/_playground.json +0 -112
- data/app/pb_kits/playbook/pb_badge/docs/_playground.overrides.json +0 -63
- data/app/pb_kits/playbook/pb_body/docs/_playground.json +0 -78
- data/app/pb_kits/playbook/pb_body/docs/_playground.overrides.json +0 -47
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.json +0 -54
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.overrides.json +0 -44
- data/app/pb_kits/playbook/pb_button/docs/_playground.json +0 -164
- data/app/pb_kits/playbook/pb_button/docs/_playground.overrides.json +0 -45
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.json +0 -81
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.overrides.json +0 -54
- data/app/pb_kits/playbook/pb_caption/docs/_playground.json +0 -64
- data/app/pb_kits/playbook/pb_caption/docs/_playground.overrides.json +0 -39
- data/app/pb_kits/playbook/pb_card/docs/_playground.json +0 -157
- data/app/pb_kits/playbook/pb_card/docs/_playground.overrides.json +0 -119
- data/app/pb_kits/playbook/pb_checkbox/docs/_playground.json +0 -80
- data/app/pb_kits/playbook/pb_checkbox/docs/_playground.overrides.json +0 -58
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_playground.json +0 -113
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_playground.overrides.json +0 -62
- data/app/pb_kits/playbook/pb_collapsible/docs/_playground.json +0 -91
- data/app/pb_kits/playbook/pb_collapsible/docs/_playground.overrides.json +0 -65
- data/app/pb_kits/playbook/pb_contact/docs/_playground.json +0 -69
- data/app/pb_kits/playbook/pb_contact/docs/_playground.overrides.json +0 -60
- data/app/pb_kits/playbook/pb_copy_button/docs/_playground.json +0 -120
- data/app/pb_kits/playbook/pb_copy_button/docs/_playground.overrides.json +0 -96
- data/app/pb_kits/playbook/pb_currency/docs/_playground.json +0 -117
- data/app/pb_kits/playbook/pb_currency/docs/_playground.overrides.json +0 -98
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_playground.json +0 -87
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_playground.overrides.json +0 -19
- data/app/pb_kits/playbook/pb_date/docs/_playground.json +0 -73
- data/app/pb_kits/playbook/pb_date/docs/_playground.overrides.json +0 -54
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +0 -178
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.overrides.json +0 -156
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.json +0 -30
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.json +0 -22
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.json +0 -68
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.overrides.json +0 -51
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.json +0 -76
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.overrides.json +0 -58
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.json +0 -57
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.overrides.json +0 -46
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.json +0 -45
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.overrides.json +0 -36
- data/app/pb_kits/playbook/pb_detail/docs/_playground.json +0 -75
- data/app/pb_kits/playbook/pb_detail/docs/_playground.overrides.json +0 -44
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.json +0 -121
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.overrides.json +0 -95
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.json +0 -25
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.json +0 -54
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.overrides.json +0 -34
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +0 -236
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +0 -137
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.json +0 -34
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +0 -33
- data/app/pb_kits/playbook/pb_filter/docs/_playground.json +0 -13
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.json +0 -36
- data/app/pb_kits/playbook/pb_flex/docs/_playground.json +0 -133
- data/app/pb_kits/playbook/pb_flex/docs/_playground.overrides.json +0 -105
- data/app/pb_kits/playbook/pb_form/docs/_playground.json +0 -13
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.json +0 -23
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.json +0 -36
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.json +0 -29
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.json +0 -22
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.json +0 -37
- data/app/pb_kits/playbook/pb_icon/docs/_playground.json +0 -115
- data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +0 -60
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.json +0 -33
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.json +0 -26
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.json +0 -89
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.overrides.json +0 -29
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.json +0 -60
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.overrides.json +0 -19
- data/app/pb_kits/playbook/pb_image/docs/_playground.json +0 -101
- data/app/pb_kits/playbook/pb_image/docs/_playground.overrides.json +0 -89
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.json +0 -25
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.json +0 -126
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.overrides.json +0 -52
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +0 -38
- data/app/pb_kits/playbook/pb_legend/docs/_playground.json +0 -25
- data/app/pb_kits/playbook/pb_link/docs/_playground.json +0 -130
- data/app/pb_kits/playbook/pb_link/docs/_playground.overrides.json +0 -81
- data/app/pb_kits/playbook/pb_list/docs/_playground.json +0 -44
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.json +0 -66
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.overrides.json +0 -25
- data/app/pb_kits/playbook/pb_map/docs/_playground.json +0 -25
- data/app/pb_kits/playbook/pb_message/docs/_playground.json +0 -39
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.json +0 -162
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.overrides.json +0 -126
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.json +0 -182
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.overrides.json +0 -167
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.json +0 -145
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.overrides.json +0 -131
- data/app/pb_kits/playbook/pb_nav/docs/_playground.json +0 -65
- data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +0 -45
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.json +0 -71
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.overrides.json +0 -40
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.json +0 -37
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +0 -69
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +0 -61
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.json +0 -33
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.json +0 -21
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.json +0 -21
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.json +0 -21
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.json +0 -21
- data/app/pb_kits/playbook/pb_person/docs/_playground.json +0 -42
- data/app/pb_kits/playbook/pb_person/docs/_playground.overrides.json +0 -28
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.json +0 -98
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.overrides.json +0 -92
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +0 -51
- data/app/pb_kits/playbook/pb_pill/docs/_playground.json +0 -106
- data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +0 -56
- data/app/pb_kits/playbook/pb_popover/docs/_playground.json +0 -104
- data/app/pb_kits/playbook/pb_popover/docs/_playground.overrides.json +0 -67
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.json +0 -90
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.overrides.json +0 -51
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.json +0 -87
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.overrides.json +0 -28
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.json +0 -31
- data/app/pb_kits/playbook/pb_radio/docs/_playground.json +0 -83
- data/app/pb_kits/playbook/pb_radio/docs/_playground.overrides.json +0 -59
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +0 -40
- data/app/pb_kits/playbook/pb_section_separator/docs/_playground.json +0 -128
- data/app/pb_kits/playbook/pb_section_separator/docs/_playground.overrides.json +0 -109
- data/app/pb_kits/playbook/pb_select/docs/_playground.json +0 -149
- data/app/pb_kits/playbook/pb_select/docs/_playground.overrides.json +0 -80
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.json +0 -145
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.overrides.json +0 -115
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.json +0 -37
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.json +0 -113
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.overrides.json +0 -92
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.json +0 -53
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.overrides.json +0 -34
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.json +0 -25
- data/app/pb_kits/playbook/pb_source/docs/_playground.json +0 -27
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.json +0 -128
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.overrides.json +0 -87
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.json +0 -71
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.overrides.json +0 -29
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.json +0 -56
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.overrides.json +0 -23
- data/app/pb_kits/playbook/pb_table/docs/_playground.json +0 -56
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.json +0 -90
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.overrides.json +0 -62
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.json +0 -89
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.overrides.json +0 -62
- data/app/pb_kits/playbook/pb_time/docs/_playground.json +0 -74
- data/app/pb_kits/playbook/pb_time/docs/_playground.overrides.json +0 -54
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.json +0 -119
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.overrides.json +0 -96
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.json +0 -31
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.json +0 -54
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.overrides.json +0 -43
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +0 -27
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.json +0 -104
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.overrides.json +0 -84
- data/app/pb_kits/playbook/pb_title/docs/_playground.json +0 -80
- data/app/pb_kits/playbook/pb_title/docs/_playground.overrides.json +0 -44
- data/app/pb_kits/playbook/pb_title_count/docs/_playground.json +0 -66
- data/app/pb_kits/playbook/pb_title_count/docs/_playground.overrides.json +0 -20
- data/app/pb_kits/playbook/pb_title_detail/docs/_playground.json +0 -60
- data/app/pb_kits/playbook/pb_title_detail/docs/_playground.overrides.json +0 -19
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.json +0 -68
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.overrides.json +0 -53
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.json +0 -91
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.overrides.json +0 -53
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +0 -205
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +0 -115
- data/app/pb_kits/playbook/pb_user/docs/_playground.json +0 -110
- data/app/pb_kits/playbook/pb_user/docs/_playground.overrides.json +0 -89
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.json +0 -61
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.overrides.json +0 -36
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.json +0 -64
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.overrides.json +0 -51
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b741edda0fbf190e36d2c45cd3c326606f329fdf44815028299a302073df5eb5
|
|
4
|
+
data.tar.gz: 207cd40ce174a8291e0bfc870dcbb71ccc3edf5435602de6b1963b97a70d52d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfdce9c095261f380cea8340098fd85436f2380953030481eb5a02274214de51fdcc9b7df9394f0c61796d245e9a2284729a69e3afb4200945f37788eab53063
|
|
7
|
+
data.tar.gz: c0d8a229c0ebc32669b0c6262b005951b52dbc2631ce7538e5eb7df1b37fab57ff50b1a7963c46faa3ddab6cc00cf98bc790cd0443c2d9c5ca29d077bc9c2876
|
|
@@ -37,12 +37,13 @@ type AdvancedTableProps = {
|
|
|
37
37
|
columnDefinitions: GenericObject[]
|
|
38
38
|
columnGroupBorderColor?: "text_lt_default" | "text_lt_light" | "text_lt_lighter" | "text_dk_default" | "text_dk_light" | "text_dk_lighter"
|
|
39
39
|
columnVisibilityControl?: GenericObject
|
|
40
|
-
customSort?:
|
|
40
|
+
customSort?:boolean;
|
|
41
|
+
dark?: boolean
|
|
41
42
|
data?: { [key: string]: string }
|
|
42
43
|
enableToggleExpansion?: "all" | "header" | "none"
|
|
43
44
|
enableSortingRemoval?: boolean
|
|
44
45
|
expandedControl?: GenericObject
|
|
45
|
-
expandByDepth?:
|
|
46
|
+
expandByDepth?: { [key: string]: string | number }
|
|
46
47
|
onExpandByDepthClick?: (arg: number, arg1: any) => void
|
|
47
48
|
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
|
48
49
|
id?: string
|
|
@@ -66,7 +67,6 @@ type AdvancedTableProps = {
|
|
|
66
67
|
persistToggleExpansionButton?: boolean,
|
|
67
68
|
sortControl?: GenericObject
|
|
68
69
|
sortParentOnly?: boolean
|
|
69
|
-
stickyLeftColumn?: string[]
|
|
70
70
|
tableData: GenericObject[]
|
|
71
71
|
tableOptions?: GenericObject
|
|
72
72
|
tableProps?: GenericObject
|
|
@@ -78,18 +78,6 @@ type AdvancedTableProps = {
|
|
|
78
78
|
fullScreenControl?: (controls: FullscreenControls) => void
|
|
79
79
|
} & GlobalProps;
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* Subcomponent props (AdvancedTable.Header / AdvancedTable.Body). Must be a plain `type NameProps = { ... }` block—
|
|
83
|
-
* `yarn generate-ai-metadata` only parses that shape in this file (not Omit<> / intersection).
|
|
84
|
-
* Not used on the root component; playground routes these via propTargets.
|
|
85
|
-
*/
|
|
86
|
-
type _AdvancedTableSubkitSchemaProps = {
|
|
87
|
-
enableSorting?: boolean
|
|
88
|
-
sortIcon?: string | string[]
|
|
89
|
-
collapsibleTrail?: boolean
|
|
90
|
-
subRowHeaders?: string[]
|
|
91
|
-
}
|
|
92
|
-
|
|
93
81
|
const AdvancedTable = (props: AdvancedTableProps) => {
|
|
94
82
|
const {
|
|
95
83
|
aria = {},
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
52
|
"customSort": {
|
|
53
|
-
"type": "boolean",
|
|
53
|
+
"type": "boolean;",
|
|
54
54
|
"platforms": [
|
|
55
55
|
"react"
|
|
56
56
|
]
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
83
|
"expandByDepth": {
|
|
84
|
-
"type": "
|
|
84
|
+
"type": "{ [key: string]: string | number }",
|
|
85
85
|
"platforms": [
|
|
86
86
|
"react"
|
|
87
87
|
]
|
|
@@ -114,22 +114,6 @@
|
|
|
114
114
|
],
|
|
115
115
|
"default": false
|
|
116
116
|
},
|
|
117
|
-
"maxHeight": {
|
|
118
|
-
"type": "enum",
|
|
119
|
-
"platforms": [
|
|
120
|
-
"react"
|
|
121
|
-
],
|
|
122
|
-
"values": [
|
|
123
|
-
"auto",
|
|
124
|
-
"xs",
|
|
125
|
-
"sm",
|
|
126
|
-
"md",
|
|
127
|
-
"lg",
|
|
128
|
-
"xl",
|
|
129
|
-
"xxl",
|
|
130
|
-
"xxxl"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
117
|
"onRowToggleClick": {
|
|
134
118
|
"type": "function",
|
|
135
119
|
"platforms": [
|
|
@@ -149,18 +133,11 @@
|
|
|
149
133
|
]
|
|
150
134
|
},
|
|
151
135
|
"paginationProps": {
|
|
152
|
-
"type": "
|
|
136
|
+
"type": "function",
|
|
153
137
|
"platforms": [
|
|
154
138
|
"react"
|
|
155
139
|
]
|
|
156
140
|
},
|
|
157
|
-
"pinnedRows": {
|
|
158
|
-
"type": "GenericObject",
|
|
159
|
-
"platforms": [
|
|
160
|
-
"react",
|
|
161
|
-
"rails"
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
141
|
"responsive": {
|
|
165
142
|
"type": "enum",
|
|
166
143
|
"platforms": [
|
|
@@ -224,12 +201,6 @@
|
|
|
224
201
|
"react"
|
|
225
202
|
]
|
|
226
203
|
},
|
|
227
|
-
"stickyLeftColumn": {
|
|
228
|
-
"type": "array",
|
|
229
|
-
"platforms": [
|
|
230
|
-
"react"
|
|
231
|
-
]
|
|
232
|
-
},
|
|
233
204
|
"tableData": {
|
|
234
205
|
"type": "array",
|
|
235
206
|
"platforms": [
|
|
@@ -286,29 +257,11 @@
|
|
|
286
257
|
"react"
|
|
287
258
|
]
|
|
288
259
|
},
|
|
289
|
-
"
|
|
290
|
-
"type": "boolean",
|
|
291
|
-
"platforms": [
|
|
292
|
-
"react"
|
|
293
|
-
]
|
|
294
|
-
},
|
|
295
|
-
"sortIcon": {
|
|
296
|
-
"type": "string | string[]",
|
|
297
|
-
"platforms": [
|
|
298
|
-
"react"
|
|
299
|
-
]
|
|
300
|
-
},
|
|
301
|
-
"collapsibleTrail": {
|
|
302
|
-
"type": "boolean",
|
|
303
|
-
"platforms": [
|
|
304
|
-
"react"
|
|
305
|
-
]
|
|
306
|
-
},
|
|
307
|
-
"subRowHeaders": {
|
|
308
|
-
"type": "array",
|
|
260
|
+
"pinnedRows": {
|
|
309
261
|
"platforms": [
|
|
310
|
-
"
|
|
311
|
-
]
|
|
262
|
+
"rails"
|
|
263
|
+
],
|
|
264
|
+
"type": "string"
|
|
312
265
|
}
|
|
313
266
|
},
|
|
314
267
|
"globalProps": true,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<% header_row.each_with_index do |cell, cell_index| %>
|
|
8
8
|
<% header_component = object.header_component_info(cell, cell_index, row_index) %>
|
|
9
9
|
<%= pb_rails(header_component[:name], props: header_component[:props]) do %>
|
|
10
|
-
<%= pb_rails("flex", props: { align: "center", justify:
|
|
10
|
+
<%= pb_rails("flex", props: { align: "center", justify: cell_index.zero? ? "start" : row_index === header_rows.size - 1 ? "end" : "center", text_align: (cell[:header_alignment] || "end") }) do %>
|
|
11
11
|
<% if cell_index.zero? && row_index === header_rows.size - 1 %>
|
|
12
12
|
<% if object.selectable_rows && object.enable_toggle_expansion != "none" %>
|
|
13
13
|
<%= pb_rails("flex/flex_item", props: { padding_right: "xs" }) do %>
|
|
@@ -192,19 +192,6 @@ module Playbook
|
|
|
192
192
|
{ name: component_name, props: component_props }
|
|
193
193
|
end
|
|
194
194
|
|
|
195
|
-
# Flex justify for header cells: column_styling header_alignment when present (otherwisedefault by column/row index)
|
|
196
|
-
def header_flex_justify(cell, cell_index, row_index)
|
|
197
|
-
ha = cell[:header_alignment]
|
|
198
|
-
return header_alignment_to_justify(ha) if ha.present?
|
|
199
|
-
|
|
200
|
-
default_header_flex_justify(cell_index, row_index)
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# Flex text_align from column_styling header_alignment (default is end)
|
|
204
|
-
def header_flex_text_align(cell)
|
|
205
|
-
(cell[:header_alignment].presence || "end").to_s
|
|
206
|
-
end
|
|
207
|
-
|
|
208
195
|
private
|
|
209
196
|
|
|
210
197
|
# Find the original column definition for a cell
|
|
@@ -364,26 +351,6 @@ module Playbook
|
|
|
364
351
|
row[:children] || row["children"]
|
|
365
352
|
end
|
|
366
353
|
end
|
|
367
|
-
|
|
368
|
-
# 2 header alignment helper methods
|
|
369
|
-
def header_alignment_to_justify(header_alignment)
|
|
370
|
-
case header_alignment.to_s
|
|
371
|
-
when "left" then "start"
|
|
372
|
-
when "center" then "center"
|
|
373
|
-
when "right" then "end"
|
|
374
|
-
else "end"
|
|
375
|
-
end
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
def default_header_flex_justify(cell_index, row_index)
|
|
379
|
-
if cell_index.zero?
|
|
380
|
-
"start"
|
|
381
|
-
elsif row_index == header_rows.size - 1
|
|
382
|
-
"end"
|
|
383
|
-
else
|
|
384
|
-
"center"
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
354
|
end
|
|
388
355
|
end
|
|
389
356
|
end
|
|
@@ -7,19 +7,6 @@
|
|
|
7
7
|
"rails"
|
|
8
8
|
],
|
|
9
9
|
"props": {
|
|
10
|
-
"componentOverlay": {
|
|
11
|
-
"type": "GenericObject",
|
|
12
|
-
"platforms": [
|
|
13
|
-
"react",
|
|
14
|
-
"rails"
|
|
15
|
-
]
|
|
16
|
-
},
|
|
17
|
-
"dark": {
|
|
18
|
-
"type": "boolean",
|
|
19
|
-
"platforms": [
|
|
20
|
-
"react"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
10
|
"grayscale": {
|
|
24
11
|
"type": "boolean",
|
|
25
12
|
"platforms": [
|
|
@@ -78,6 +65,11 @@
|
|
|
78
65
|
"offline",
|
|
79
66
|
"online"
|
|
80
67
|
]
|
|
68
|
+
},
|
|
69
|
+
"componentOverlay": {
|
|
70
|
+
"platforms": [
|
|
71
|
+
"rails"
|
|
72
|
+
]
|
|
81
73
|
}
|
|
82
74
|
},
|
|
83
75
|
"globalProps": true,
|
|
@@ -156,20 +156,6 @@
|
|
|
156
156
|
],
|
|
157
157
|
"default": null
|
|
158
158
|
},
|
|
159
|
-
"padding": {
|
|
160
|
-
"type": "enum",
|
|
161
|
-
"platforms": [
|
|
162
|
-
"react"
|
|
163
|
-
],
|
|
164
|
-
"values": [
|
|
165
|
-
"none",
|
|
166
|
-
"xs",
|
|
167
|
-
"sm",
|
|
168
|
-
"md",
|
|
169
|
-
"lg",
|
|
170
|
-
"xl"
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
159
|
"tag": {
|
|
174
160
|
"type": "enum",
|
|
175
161
|
"platforms": [
|
|
@@ -15,6 +15,7 @@ type BreadCrumbsProps = {
|
|
|
15
15
|
data?: {[key: string]: string},
|
|
16
16
|
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
|
17
17
|
id?: string,
|
|
18
|
+
text?: string,
|
|
18
19
|
children?: React.ReactChild[] | React.ReactNode,
|
|
19
20
|
}
|
|
20
21
|
const BreadCrumbs = (props: BreadCrumbsProps): React.ReactElement => {
|
|
@@ -9,6 +9,7 @@ type ButtonToolbarProps = {
|
|
|
9
9
|
aria?: {[key: string]: string},
|
|
10
10
|
children?: React.ReactChild[] | React.ReactChild,
|
|
11
11
|
className?: string,
|
|
12
|
+
connected?: boolean,
|
|
12
13
|
data?: {[key: string]: string},
|
|
13
14
|
htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
|
|
14
15
|
id?: string,
|
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
"rails"
|
|
8
8
|
],
|
|
9
9
|
"props": {
|
|
10
|
+
"connected": {
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"platforms": [
|
|
13
|
+
"react",
|
|
14
|
+
"rails"
|
|
15
|
+
],
|
|
16
|
+
"default": false
|
|
17
|
+
},
|
|
10
18
|
"onClick": {
|
|
11
19
|
"type": "ReactNode",
|
|
12
20
|
"platforms": [
|
|
@@ -43,13 +51,6 @@
|
|
|
43
51
|
"secondary"
|
|
44
52
|
],
|
|
45
53
|
"default": "primary"
|
|
46
|
-
},
|
|
47
|
-
"connected": {
|
|
48
|
-
"platforms": [
|
|
49
|
-
"rails"
|
|
50
|
-
],
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"default": false
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
"globalProps": true,
|
|
@@ -61,21 +61,6 @@
|
|
|
61
61
|
],
|
|
62
62
|
"default": false
|
|
63
63
|
},
|
|
64
|
-
"borderRadius": {
|
|
65
|
-
"type": "enum",
|
|
66
|
-
"platforms": [
|
|
67
|
-
"react"
|
|
68
|
-
],
|
|
69
|
-
"values": [
|
|
70
|
-
"xs",
|
|
71
|
-
"sm",
|
|
72
|
-
"md",
|
|
73
|
-
"lg",
|
|
74
|
-
"xl",
|
|
75
|
-
"none",
|
|
76
|
-
"rounded"
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
64
|
"dragId": {
|
|
80
65
|
"type": "string",
|
|
81
66
|
"platforms": [
|
|
@@ -99,25 +84,12 @@
|
|
|
99
84
|
],
|
|
100
85
|
"default": true
|
|
101
86
|
},
|
|
102
|
-
"highlight": {
|
|
103
|
-
"type": "GenericObject",
|
|
104
|
-
"platforms": [
|
|
105
|
-
"react",
|
|
106
|
-
"rails"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
87
|
"length": {
|
|
110
88
|
"type": "number",
|
|
111
89
|
"platforms": [
|
|
112
90
|
"react"
|
|
113
91
|
]
|
|
114
92
|
},
|
|
115
|
-
"padding": {
|
|
116
|
-
"type": "string",
|
|
117
|
-
"platforms": [
|
|
118
|
-
"react"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
93
|
"selected": {
|
|
122
94
|
"type": "boolean",
|
|
123
95
|
"platforms": [
|
|
@@ -158,6 +130,12 @@
|
|
|
158
130
|
],
|
|
159
131
|
"default": false
|
|
160
132
|
},
|
|
133
|
+
"highlight": {
|
|
134
|
+
"platforms": [
|
|
135
|
+
"rails"
|
|
136
|
+
],
|
|
137
|
+
"type": "string"
|
|
138
|
+
},
|
|
161
139
|
"items": {
|
|
162
140
|
"platforms": [
|
|
163
141
|
"rails"
|
|
@@ -180,11 +158,11 @@
|
|
|
180
158
|
"usage": {
|
|
181
159
|
"react": {
|
|
182
160
|
"import": "import { Card } from 'playbook-ui'",
|
|
183
|
-
"example": "<Card background=\"white\"
|
|
161
|
+
"example": "<Card background=\"white\" tag=\"div\"></Card>"
|
|
184
162
|
},
|
|
185
163
|
"rails": {
|
|
186
164
|
"import": null,
|
|
187
|
-
"example": "<%= pb_rails(\"card\", props: { background: \"white\",
|
|
165
|
+
"example": "<%= pb_rails(\"card\", props: { background: \"white\", tag: \"div\" }) %>"
|
|
188
166
|
}
|
|
189
167
|
}
|
|
190
168
|
}
|
|
@@ -34,24 +34,9 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
"iconSize": {
|
|
37
|
-
"type": "
|
|
37
|
+
"type": "IconSizes",
|
|
38
38
|
"platforms": [
|
|
39
39
|
"react"
|
|
40
|
-
],
|
|
41
|
-
"values": [
|
|
42
|
-
"lg",
|
|
43
|
-
"xs",
|
|
44
|
-
"sm",
|
|
45
|
-
"1x",
|
|
46
|
-
"2x",
|
|
47
|
-
"3x",
|
|
48
|
-
"4x",
|
|
49
|
-
"5x",
|
|
50
|
-
"6x",
|
|
51
|
-
"7x",
|
|
52
|
-
"8x",
|
|
53
|
-
"9x",
|
|
54
|
-
"10x"
|
|
55
40
|
]
|
|
56
41
|
},
|
|
57
42
|
"onIconClick": {
|
|
@@ -95,11 +80,11 @@
|
|
|
95
80
|
"usage": {
|
|
96
81
|
"react": {
|
|
97
82
|
"import": "import { Collapsible } from 'playbook-ui'",
|
|
98
|
-
"example": "<Collapsible iconColor=\"default\"
|
|
83
|
+
"example": "<Collapsible iconColor=\"default\" tag=\"h1\"></Collapsible>"
|
|
99
84
|
},
|
|
100
85
|
"rails": {
|
|
101
86
|
"import": null,
|
|
102
|
-
"example": "<%= pb_rails(\"collapsible\", props: { icon_color: \"default\",
|
|
87
|
+
"example": "<%= pb_rails(\"collapsible\", props: { icon_color: \"default\", tag: \"h1\" }) %>"
|
|
103
88
|
}
|
|
104
89
|
}
|
|
105
90
|
}
|
|
@@ -20,26 +20,24 @@
|
|
|
20
20
|
],
|
|
21
21
|
"default": "left"
|
|
22
22
|
},
|
|
23
|
-
"
|
|
24
|
-
"type": "
|
|
23
|
+
"statLabel": {
|
|
24
|
+
"type": "string statValue?: { unit?: string value?: string | number",
|
|
25
25
|
"platforms": [
|
|
26
26
|
"react",
|
|
27
27
|
"rails"
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
|
-
"
|
|
31
|
-
"type": "string",
|
|
30
|
+
"statChange": {
|
|
32
31
|
"platforms": [
|
|
33
|
-
"react",
|
|
34
32
|
"rails"
|
|
35
|
-
]
|
|
33
|
+
],
|
|
34
|
+
"type": "string"
|
|
36
35
|
},
|
|
37
36
|
"statValue": {
|
|
38
|
-
"type": "GenericObject",
|
|
39
37
|
"platforms": [
|
|
40
|
-
"react",
|
|
41
38
|
"rails"
|
|
42
|
-
]
|
|
39
|
+
],
|
|
40
|
+
"type": "string"
|
|
43
41
|
}
|
|
44
42
|
},
|
|
45
43
|
"globalProps": true,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"props": {
|
|
10
10
|
"alignment": {
|
|
11
|
-
"type": "
|
|
11
|
+
"type": "\"left\" | \"center\" | \"right\";",
|
|
12
12
|
"platforms": [
|
|
13
13
|
"react",
|
|
14
14
|
"rails"
|
|
@@ -20,14 +20,8 @@
|
|
|
20
20
|
],
|
|
21
21
|
"default": "left"
|
|
22
22
|
},
|
|
23
|
-
"dark": {
|
|
24
|
-
"type": "boolean",
|
|
25
|
-
"platforms": [
|
|
26
|
-
"react"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
23
|
"showDayOfWeek": {
|
|
30
|
-
"type": "boolean",
|
|
24
|
+
"type": "boolean;",
|
|
31
25
|
"platforms": [
|
|
32
26
|
"react",
|
|
33
27
|
"rails"
|
|
@@ -35,7 +29,7 @@
|
|
|
35
29
|
"default": false
|
|
36
30
|
},
|
|
37
31
|
"showCurrentYear": {
|
|
38
|
-
"type": "boolean",
|
|
32
|
+
"type": "boolean;",
|
|
39
33
|
"platforms": [
|
|
40
34
|
"react",
|
|
41
35
|
"rails"
|
|
@@ -43,7 +37,7 @@
|
|
|
43
37
|
"default": false
|
|
44
38
|
},
|
|
45
39
|
"showIcon": {
|
|
46
|
-
"type": "boolean",
|
|
40
|
+
"type": "boolean;",
|
|
47
41
|
"platforms": [
|
|
48
42
|
"react",
|
|
49
43
|
"rails"
|
|
@@ -51,20 +45,21 @@
|
|
|
51
45
|
"default": false
|
|
52
46
|
},
|
|
53
47
|
"size": {
|
|
54
|
-
"type": "
|
|
48
|
+
"type": "\"sm\" | \"md\" | \"lg\";",
|
|
55
49
|
"platforms": [
|
|
56
50
|
"react",
|
|
57
51
|
"rails"
|
|
58
52
|
],
|
|
59
53
|
"values": [
|
|
60
|
-
"
|
|
54
|
+
"lg",
|
|
61
55
|
"md",
|
|
62
|
-
"
|
|
56
|
+
"sm",
|
|
57
|
+
"xs"
|
|
63
58
|
],
|
|
64
59
|
"default": "md"
|
|
65
60
|
},
|
|
66
61
|
"unstyled": {
|
|
67
|
-
"type": "boolean",
|
|
62
|
+
"type": "boolean;",
|
|
68
63
|
"platforms": [
|
|
69
64
|
"react",
|
|
70
65
|
"rails"
|
|
@@ -72,7 +67,7 @@
|
|
|
72
67
|
"default": false
|
|
73
68
|
},
|
|
74
69
|
"value": {
|
|
75
|
-
"type": "Date",
|
|
70
|
+
"type": "Date;",
|
|
76
71
|
"platforms": [
|
|
77
72
|
"react"
|
|
78
73
|
]
|
|
@@ -93,11 +88,11 @@
|
|
|
93
88
|
"usage": {
|
|
94
89
|
"react": {
|
|
95
90
|
"import": "import { Date } from 'playbook-ui'",
|
|
96
|
-
"example": "<Date alignment=\"left\" size=\"
|
|
91
|
+
"example": "<Date alignment=\"left\" size=\"lg\"></Date>"
|
|
97
92
|
},
|
|
98
93
|
"rails": {
|
|
99
94
|
"import": null,
|
|
100
|
-
"example": "<%= pb_rails(\"date\", props: { alignment: \"left\", size: \"
|
|
95
|
+
"example": "<%= pb_rails(\"date\", props: { alignment: \"left\", size: \"lg\" }) %>"
|
|
101
96
|
}
|
|
102
97
|
}
|
|
103
98
|
}
|
|
@@ -612,41 +612,6 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT
|
|
|
612
612
|
}
|
|
613
613
|
// === End of Automatic Sync Logic ===
|
|
614
614
|
|
|
615
|
-
// Label click toggles calendar: stop pointer bubbling to document, then toggle (avoids flatpickr close + input-focus reopen).
|
|
616
|
-
const datePickerLabel = document.querySelector(`label[for="${pickerId}"]`)
|
|
617
|
-
if (datePickerLabel) {
|
|
618
|
-
type LabelHandlerRefs = { stopPointer?: (e: Event) => void, click?: (e: MouseEvent) => void }
|
|
619
|
-
const labelWithRefs = datePickerLabel as HTMLElement & { _pbDatePickerLabelHandlers?: LabelHandlerRefs }
|
|
620
|
-
const prev = labelWithRefs._pbDatePickerLabelHandlers
|
|
621
|
-
if (prev?.stopPointer) {
|
|
622
|
-
datePickerLabel.removeEventListener('mousedown', prev.stopPointer)
|
|
623
|
-
datePickerLabel.removeEventListener('touchstart', prev.stopPointer)
|
|
624
|
-
}
|
|
625
|
-
if (prev?.click) {
|
|
626
|
-
datePickerLabel.removeEventListener('click', prev.click)
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
const stopPointerForFlatpickrDocClose = (e: Event) => {
|
|
630
|
-
e.stopPropagation()
|
|
631
|
-
}
|
|
632
|
-
const onDatePickerLabelClick = (e: MouseEvent) => {
|
|
633
|
-
e.preventDefault()
|
|
634
|
-
e.stopPropagation()
|
|
635
|
-
if (picker.input.disabled) return
|
|
636
|
-
picker.toggle()
|
|
637
|
-
if (picker.isOpen) {
|
|
638
|
-
picker.input.focus()
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
datePickerLabel.addEventListener('mousedown', stopPointerForFlatpickrDocClose)
|
|
642
|
-
datePickerLabel.addEventListener('touchstart', stopPointerForFlatpickrDocClose, { passive: true })
|
|
643
|
-
datePickerLabel.addEventListener('click', onDatePickerLabelClick)
|
|
644
|
-
|
|
645
|
-
labelWithRefs._pbDatePickerLabelHandlers = {
|
|
646
|
-
stopPointer: stopPointerForFlatpickrDocClose,
|
|
647
|
-
click: onDatePickerLabelClick,
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
615
|
|
|
651
616
|
// Adding dropdown icons to year and month select
|
|
652
617
|
dropdown.insertAdjacentHTML('afterend', `<i class="year-dropdown-icon">${angleDown}</i>`)
|