playbook_ui 7.3.0.pre.alpha1 → 7.3.0.pre.alpha2
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/README.md +2 -1
- data/app/controllers/playbook/application_controller.rb +2 -0
- data/app/controllers/playbook/guides_controller.rb +11 -0
- data/app/controllers/playbook/pages_controller.rb +99 -0
- data/app/controllers/playbook/samples_controller.rb +40 -0
- data/app/pb_kits/playbook/_playbook.scss +1 -1
- data/app/pb_kits/playbook/data/menu.yml +4 -4
- data/app/pb_kits/playbook/index.js +1 -4
- data/app/pb_kits/playbook/packs/application.js +55 -0
- data/app/pb_kits/playbook/packs/examples.js +182 -0
- data/app/pb_kits/playbook/packs/main.scss +12 -0
- data/app/pb_kits/playbook/packs/samples.js +21 -0
- data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
- data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
- data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +148 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
- data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -5
- data/app/pb_kits/playbook/pb_badge/_badge.jsx +2 -4
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_body/body.rb +1 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +1 -5
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +3 -7
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +90 -82
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +2 -4
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +7 -17
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +9 -32
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +7 -18
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +9 -37
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +29 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +11 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +34 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +7 -3
- data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_caption/_caption.html.erb +5 -7
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -5
- data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -3
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -5
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.html.erb +9 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +142 -0
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +17 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_content.html.erb +7 -0
- data/app/pb_kits/playbook/pb_collapsible/child_kits/_collapsible_main.html.erb +16 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible.rb +15 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +21 -0
- data/app/pb_kits/playbook/pb_collapsible/collapsible_main.rb +24 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.html.erb +10 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_dark.jsx +17 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_collapsible/index.js +82 -0
- data/app/pb_kits/playbook/pb_contact/_contact.jsx +1 -5
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +1 -5
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -5
- data/app/pb_kits/playbook/pb_date/_date.html.erb +8 -64
- data/app/pb_kits/playbook/pb_date/_date.jsx +66 -115
- data/app/pb_kits/playbook/pb_date/_date.scss +0 -30
- data/app/pb_kits/playbook/pb_date/date.rb +9 -21
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +6 -21
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +12 -43
- data/app/pb_kits/playbook/pb_date/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_date/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +5 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +31 -37
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +13 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +2 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +0 -4
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +1 -3
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +4 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +14 -8
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +39 -122
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +2 -33
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +9 -44
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +1 -14
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +1 -45
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +1 -5
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +1 -5
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
- data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +2 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +17 -31
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +0 -10
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +1 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +1 -7
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -10
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +2 -7
- data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +0 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -3
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +1 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +1 -5
- data/app/pb_kits/playbook/pb_image/_image.jsx +1 -5
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -5
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +4 -4
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_list/_list.jsx +2 -3
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -3
- data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +1 -5
- data/app/pb_kits/playbook/pb_message/_message.jsx +1 -5
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -5
- data/app/pb_kits/playbook/pb_nav/_item.html.erb +0 -3
- data/app/pb_kits/playbook/pb_nav/_item.jsx +1 -14
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -5
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +3 -22
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_nav/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_nav/item.rb +0 -1
- data/app/pb_kits/playbook/pb_nav/nav.rb +1 -6
- data/app/pb_kits/playbook/pb_person/_person.jsx +1 -5
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -12
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +0 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +1 -5
- data/app/pb_kits/playbook/pb_popover/_popover.scss +4 -6
- data/app/pb_kits/playbook/pb_popover/index.js +1 -3
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +4 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -4
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +33 -168
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +1 -3
- data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +8 -10
- data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +16 -14
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -6
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +1 -17
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +3 -10
- data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +1 -11
- data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.html.erb +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_radio/radio.rb +4 -2
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +3 -1
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +47 -26
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +2 -6
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +1 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_vertical.jsx +3 -9
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +1 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.html.erb +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +9 -16
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.html.erb +2 -3
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/example.yml +3 -4
- data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +0 -3
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.html.erb +3 -3
- data/app/pb_kits/playbook/pb_selectable_icon/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +0 -10
- data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +3 -3
- data/app/pb_kits/playbook/pb_stat_value/docs/_stat_value_default.jsx +1 -6
- data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +1 -1
- data/app/pb_kits/playbook/pb_time/_time.html.erb +20 -17
- data/app/pb_kits/playbook/pb_time/_time.jsx +29 -42
- data/app/pb_kits/playbook/pb_time/_time.scss +24 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +1 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +1 -13
- data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +1 -4
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +1 -3
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.html.erb +1 -2
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +2 -7
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +1 -1
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +3 -3
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +1 -5
- data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +1 -5
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +5 -5
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +3 -3
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +43 -41
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.html.erb +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_size.jsx +44 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +2 -5
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +20 -24
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -19
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +1 -8
- data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +13 -21
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +3 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +45 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +3 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +27 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -24
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -5
- data/app/pb_kits/playbook/props.rb +1 -1
- data/app/pb_kits/playbook/props/base.rb +4 -6
- data/app/pb_kits/playbook/tokens/_colors.scss +23 -22
- data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
- data/app/pb_kits/playbook/vendor.js +3 -8
- data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
- data/app/views/layouts/playbook/_nav.html.erb +37 -0
- data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
- data/app/views/layouts/playbook/application.html.erb +26 -0
- data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
- data/app/views/layouts/playbook/grid.html.slim +10 -0
- data/app/views/layouts/playbook/samples.html.erb +19 -0
- data/app/views/playbook/guides/create_kit.html.slim +16 -0
- data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
- data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
- data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
- data/app/views/playbook/guides/use_nitro.html.slim +6 -0
- data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
- data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
- data/app/views/playbook/pages/fullscreen.html.slim +10 -0
- data/app/views/playbook/pages/grid.html.slim +2 -0
- data/app/views/playbook/pages/home.html.slim +4 -0
- data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
- data/app/views/playbook/pages/kit_show.html.erb +33 -0
- data/app/views/playbook/pages/kits.html.erb +12 -0
- data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
- data/app/views/playbook/pages/principles.html.slim +3 -0
- data/app/views/playbook/pages/tokens.html.slim +15 -0
- data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
- data/app/views/playbook/pages/utilities.html.slim +116 -0
- data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
- data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
- data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
- data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
- data/app/views/playbook/samples/dashboards/index.jsx +130 -0
- data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
- data/app/views/playbook/samples/filter_table/index.jsx +433 -0
- data/app/views/playbook/samples/registration/index.html.erb +316 -0
- data/app/views/playbook/samples/registration/index.jsx +476 -0
- data/app/views/playbook/samples/sample_show.html.erb +36 -0
- data/lib/generators/kit/USAGE +5 -0
- data/lib/generators/kit/kit_generator.rb +95 -0
- data/lib/generators/kit/templates/kit_example_rails.erb.tt +1 -0
- data/lib/generators/kit/templates/kit_example_react.erb.tt +10 -0
- data/lib/generators/kit/templates/kit_example_yml.erb.tt +9 -0
- data/lib/generators/kit/templates/kit_html.erb.tt +7 -0
- data/lib/generators/kit/templates/kit_js.erb.tt +1 -0
- data/lib/generators/kit/templates/kit_jsx.erb.tt +68 -0
- data/lib/generators/kit/templates/kit_ruby.erb.tt +11 -0
- data/lib/generators/kit/templates/kit_ruby_spec.erb.tt +11 -0
- data/lib/generators/kit/templates/kit_scss.erb +3 -0
- data/lib/playbook/engine.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- data/lib/tasks/pb_release.rake +77 -0
- data/lib/tasks/playbook_tasks.rake +26 -0
- metadata +104 -53
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +0 -57
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +0 -27
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +0 -11
- data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +0 -28
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +0 -24
- data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +0 -35
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +0 -27
- data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +0 -43
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.jsx +0 -34
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_on_change.md +0 -3
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +0 -21
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +0 -38
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +0 -18
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.html.erb +0 -6
- data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +0 -29
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb +0 -7
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.jsx +0 -42
- data/app/pb_kits/playbook/pb_nav/docs/_with_img_nav.md +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_options.html.erb +0 -9
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +0 -32
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb +0 -15
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +0 -61
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +0 -89
- data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +0 -68
- data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +0 -43
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +0 -80
- data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +0 -1
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +0 -10
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +0 -8
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +0 -30
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +0 -11
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +0 -25
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +0 -1
- data/app/pb_kits/playbook/react_rails_kits.js +0 -6
- data/app/pb_kits/playbook/tokens/index.scss +0 -11
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { SectionSeparator } from '../../'
|
|
3
3
|
|
|
4
|
-
const SectionSeparatorTextBackground = (
|
|
4
|
+
const SectionSeparatorTextBackground = () => {
|
|
5
5
|
return (
|
|
6
6
|
<SectionSeparator
|
|
7
|
-
{...props}
|
|
8
7
|
text="Title Separator"
|
|
9
8
|
variant="background"
|
|
10
9
|
/>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { Flex, FlexItem, SectionSeparator } from '../../'
|
|
3
3
|
|
|
4
|
-
const SectionSeparatorVertical = (
|
|
4
|
+
const SectionSeparatorVertical = () => {
|
|
5
5
|
return (
|
|
6
6
|
<Flex
|
|
7
7
|
inline="flex-container"
|
|
@@ -10,17 +10,11 @@ const SectionSeparatorVertical = (props) => {
|
|
|
10
10
|
<FlexItem>
|
|
11
11
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
|
12
12
|
</FlexItem>
|
|
13
|
-
<SectionSeparator
|
|
14
|
-
{...props}
|
|
15
|
-
orientation="vertical"
|
|
16
|
-
/>
|
|
13
|
+
<SectionSeparator orientation="vertical" />
|
|
17
14
|
<FlexItem>
|
|
18
15
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
|
19
16
|
</FlexItem>
|
|
20
|
-
<SectionSeparator
|
|
21
|
-
{...props}
|
|
22
|
-
orientation="vertical"
|
|
23
|
-
/>
|
|
17
|
+
<SectionSeparator orientation="vertical" />
|
|
24
18
|
<FlexItem>
|
|
25
19
|
{'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
|
|
26
20
|
</FlexItem>
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
class: object.classname) do %>
|
|
5
5
|
|
|
6
6
|
<% if object.multi %>
|
|
7
|
-
<%= check_box_tag
|
|
7
|
+
<%= check_box_tag object.name, object.value, object.checked, id: object.input_id_present, disabled: object.disabled %>
|
|
8
8
|
<% else %>
|
|
9
|
-
<%= radio_button_tag
|
|
9
|
+
<%= radio_button_tag object.name, object.value, object.checked, id: object.input_id_present, disabled: object.disabled %>
|
|
10
10
|
<% end %>
|
|
11
11
|
|
|
12
12
|
<label for="<%= object.input_id_present %>">
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<% end %>
|
|
18
18
|
<% if object.icon %>
|
|
19
19
|
<div class="pb_selectable_card_circle">
|
|
20
|
-
<%= pb_rails("icon", props: { icon: "check", fixed_width: true
|
|
20
|
+
<%= pb_rails("icon", props: { icon: "check", fixed_width: true}) %>
|
|
21
21
|
</div>
|
|
22
22
|
<% end %>
|
|
23
23
|
</label>
|
|
24
24
|
|
|
25
|
-
<% end %>
|
|
25
|
+
<% end %>
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
examples:
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
rails:
|
|
4
4
|
- selectable_card_default: Default
|
|
5
5
|
- selectable_card_single_select: Single Select
|
|
6
6
|
- selectable_card_block: Block
|
|
7
|
-
- selectable_card_options: With Options
|
|
8
|
-
|
|
9
7
|
|
|
8
|
+
|
|
10
9
|
react:
|
|
11
10
|
- selectable_card_default: Default
|
|
12
11
|
- selectable_card_single_select: Single Select
|
|
@@ -8,21 +8,21 @@ module Playbook
|
|
|
8
8
|
partial "pb_selectable_card/selectable_card"
|
|
9
9
|
|
|
10
10
|
prop :checked, type: Playbook::Props::Boolean,
|
|
11
|
-
|
|
11
|
+
default: false
|
|
12
12
|
prop :disabled, type: Playbook::Props::Boolean,
|
|
13
|
-
|
|
13
|
+
default: false
|
|
14
14
|
prop :icon, type: Playbook::Props::Boolean,
|
|
15
15
|
default: false
|
|
16
16
|
prop :multi, type: Playbook::Props::Boolean,
|
|
17
|
-
|
|
17
|
+
default: true
|
|
18
18
|
prop :input_id, type: Playbook::Props::String
|
|
19
|
-
|
|
20
|
-
prop :input_options, type: Playbook::Props::Hash,
|
|
21
|
-
default: {}
|
|
22
19
|
prop :name
|
|
23
20
|
prop :text
|
|
24
21
|
prop :value
|
|
25
22
|
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
26
|
def classname
|
|
27
27
|
generate_classname("pb_selectable_card_kit", checked_class, enable_disabled_class)
|
|
28
28
|
end
|
|
@@ -31,17 +31,10 @@ module Playbook
|
|
|
31
31
|
input_id.present? ? input_id : name
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def additional_input_options
|
|
35
|
-
input_options.merge(
|
|
36
|
-
id: input_id_present,
|
|
37
|
-
disabled: disabled
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
34
|
private
|
|
42
|
-
|
|
35
|
+
|
|
43
36
|
def checked_class
|
|
44
|
-
checked ? "checked" : nil
|
|
37
|
+
checked ? "checked" : nil
|
|
45
38
|
end
|
|
46
39
|
|
|
47
40
|
def enable_disabled_class
|
|
@@ -49,4 +42,4 @@ module Playbook
|
|
|
49
42
|
end
|
|
50
43
|
end
|
|
51
44
|
end
|
|
52
|
-
end
|
|
45
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%= content_tag(:div,
|
|
2
2
|
data: object.data,
|
|
3
3
|
class: object.classname) do %>
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
<%= pb_rails("selectable_card", props: {
|
|
6
6
|
input_id: object.input_id,
|
|
7
7
|
name: object.name,
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
disabled: object.disabled,
|
|
11
11
|
icon: object.checkmark,
|
|
12
12
|
multi: object.multi,
|
|
13
|
-
dark: object.dark
|
|
14
|
-
input_options: object.input_options
|
|
13
|
+
dark: object.dark
|
|
15
14
|
}) do %>
|
|
16
15
|
|
|
17
16
|
<%= pb_rails("selectable_icon", props: {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
examples:
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
rails:
|
|
4
4
|
- selectable_card_icon_default: Default
|
|
5
5
|
- selectable_card_icon_checkmark: Checkmark
|
|
6
6
|
- selectable_card_icon_single_select: Single Select
|
|
7
|
-
- selectable_card_icon_options: With Options
|
|
8
|
-
|
|
9
|
-
|
|
10
7
|
|
|
8
|
+
|
|
9
|
+
|
|
11
10
|
react:
|
|
12
11
|
- selectable_card_icon_default: Default
|
|
13
12
|
- selectable_card_icon_checkmark: Checkmark
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
class: object.classname) do %>
|
|
5
5
|
|
|
6
6
|
<% if object.inputs == "disabled" %>
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
<%= pb_rails("icon", props: { icon: object.icon, size: "2x" }) %>
|
|
9
9
|
<%= pb_rails("title", props: { text: object.text, tag: "h4", size: 4 }) %>
|
|
10
10
|
|
|
11
11
|
<% else %>
|
|
12
12
|
<% if object.multi %>
|
|
13
|
-
<%= check_box_tag
|
|
13
|
+
<%= check_box_tag object.name, object.value, object.checked, id: object.input_id, disabled: object.disabled %>
|
|
14
14
|
<% else %>
|
|
15
|
-
<%= radio_button_tag
|
|
15
|
+
<%= radio_button_tag object.name, object.value, object.checked, id: object.input_id, disabled: object.disabled %>
|
|
16
16
|
<% end %>
|
|
17
17
|
|
|
18
18
|
<label for="<%= object.input_id_present %>">
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
examples:
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
rails:
|
|
4
4
|
- selectable_icon_default: Default
|
|
5
5
|
- selectable_icon_single_select: Single Select
|
|
6
|
-
- selectable_icon_options: With Options
|
|
7
|
-
|
|
8
6
|
|
|
7
|
+
|
|
9
8
|
react:
|
|
10
9
|
- selectable_icon_default: Default
|
|
11
10
|
- selectable_icon_single_select: Single Select
|
|
@@ -23,9 +23,6 @@ module Playbook
|
|
|
23
23
|
default: false
|
|
24
24
|
prop :value
|
|
25
25
|
|
|
26
|
-
prop :input_options, type: Playbook::Props::Hash,
|
|
27
|
-
default: {}
|
|
28
|
-
|
|
29
26
|
# Conditional rendering for input field
|
|
30
27
|
prop :inputs, type: Playbook::Props::String,
|
|
31
28
|
default: "enabled"
|
|
@@ -38,13 +35,6 @@ module Playbook
|
|
|
38
35
|
input_id.present? ? input_id : name
|
|
39
36
|
end
|
|
40
37
|
|
|
41
|
-
def additional_input_options
|
|
42
|
-
input_options.merge(
|
|
43
|
-
id: input_id_present,
|
|
44
|
-
disabled: disabled
|
|
45
|
-
)
|
|
46
|
-
end
|
|
47
|
-
|
|
48
38
|
private
|
|
49
39
|
|
|
50
40
|
def checked_class
|
|
@@ -21,11 +21,11 @@ const StatValue = (props: StatValueProps) => {
|
|
|
21
21
|
} = props
|
|
22
22
|
|
|
23
23
|
const displayValue = function(value) {
|
|
24
|
-
if (value
|
|
24
|
+
if (value) {
|
|
25
25
|
return (
|
|
26
26
|
<Title
|
|
27
27
|
size={1}
|
|
28
|
-
text={
|
|
28
|
+
text={value}
|
|
29
29
|
/>
|
|
30
30
|
)
|
|
31
31
|
}
|
|
@@ -44,7 +44,7 @@ const StatValue = (props: StatValueProps) => {
|
|
|
44
44
|
|
|
45
45
|
return (
|
|
46
46
|
<div
|
|
47
|
-
className={classnames('pb_stat_value_kit', globalProps(props)
|
|
47
|
+
className={classnames('pb_stat_value_kit', className, globalProps(props))}
|
|
48
48
|
id={id}
|
|
49
49
|
>
|
|
50
50
|
<div className="pb_stat_value_wrapper">
|
|
@@ -44,6 +44,7 @@ const Table = (props: TableProps) => {
|
|
|
44
44
|
{...ariaProps}
|
|
45
45
|
{...dataProps}
|
|
46
46
|
className={classnames(
|
|
47
|
+
className,
|
|
47
48
|
'pb_table',
|
|
48
49
|
`table-${size}`,
|
|
49
50
|
`table-responsive-${responsive}`,
|
|
@@ -54,8 +55,7 @@ const Table = (props: TableProps) => {
|
|
|
54
55
|
'single-line': singleLine,
|
|
55
56
|
'no-hover': disableHover,
|
|
56
57
|
},
|
|
57
|
-
globalProps(props)
|
|
58
|
-
className
|
|
58
|
+
globalProps(props)
|
|
59
59
|
)}
|
|
60
60
|
id={id}
|
|
61
61
|
>
|
|
@@ -10,12 +10,6 @@ examples:
|
|
|
10
10
|
- table_single_line: Force Single Line
|
|
11
11
|
- table_data_table: Data Table
|
|
12
12
|
- table_responsive_table: Responsive Tables
|
|
13
|
-
- table_one_action: Table with 1 Action
|
|
14
|
-
- table_two_actions: Table with 2 Actions
|
|
15
|
-
- table_two_plus_actions: Table with 2+ Actions
|
|
16
|
-
- table_action_middle: Table with Actions in the Middle
|
|
17
|
-
- table_icon_buttons: Table with Icon Buttons
|
|
18
|
-
|
|
19
13
|
|
|
20
14
|
react:
|
|
21
15
|
- table_sm: Small
|
|
@@ -28,9 +22,3 @@ examples:
|
|
|
28
22
|
- table_single_line: Force Single Line
|
|
29
23
|
- table_data_table: Data Table
|
|
30
24
|
- table_responsive_table: Responsive Tables
|
|
31
|
-
- table_one_action: Table with 1 Action
|
|
32
|
-
- table_two_actions: Table with 2 Actions
|
|
33
|
-
- table_two_plus_actions: Table with 2+ Actions
|
|
34
|
-
- table_action_middle: Table with Actions in the Middle
|
|
35
|
-
- table_icon_buttons: Table with Icon Buttons
|
|
36
|
-
|
|
@@ -8,9 +8,3 @@ export { default as TableResponsiveTable } from './_table_responsive_table.jsx'
|
|
|
8
8
|
export { default as TableDisableHover } from './_table_disable_hover.jsx'
|
|
9
9
|
export { default as TableSingleLine } from './_table_single_line.jsx'
|
|
10
10
|
export { default as TableMultiline } from './_table_multiline.jsx'
|
|
11
|
-
export { default as TableOneAction } from './_table_one_action.jsx'
|
|
12
|
-
export { default as TableTwoActions } from './_table_two_actions.jsx'
|
|
13
|
-
export { default as TableTwoPlusActions } from './_table_two_plus_actions.jsx'
|
|
14
|
-
export { default as TableActionMiddle } from './_table_action_middle.jsx'
|
|
15
|
-
export { default as TableIconButtons } from './_table_icon_buttons.jsx'
|
|
16
|
-
|
|
@@ -42,7 +42,7 @@ const Textarea = ({
|
|
|
42
42
|
}: TextareaProps) => {
|
|
43
43
|
const errorClass = error ? 'error' : null
|
|
44
44
|
const resizeClass = `resize_${resize}`
|
|
45
|
-
const classes = classnames('pb_textarea_kit', errorClass, resizeClass, globalProps(props)
|
|
45
|
+
const classes = classnames('pb_textarea_kit', className, errorClass, resizeClass, globalProps(props))
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<div className={classes}>
|
|
@@ -2,36 +2,39 @@
|
|
|
2
2
|
id: object.id,
|
|
3
3
|
data: object.data,
|
|
4
4
|
class: object.classname) do %>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
<%
|
|
6
|
+
# convert deprecated prop values
|
|
7
|
+
size = object.size
|
|
8
|
+
size = "sm" if object.size == "xs"
|
|
9
|
+
size = "md" if object.size == "lg"
|
|
10
|
+
%>
|
|
11
11
|
<% if size == "md" %>
|
|
12
12
|
<% if object.show_icon %>
|
|
13
13
|
<%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
|
|
14
|
-
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
|
|
14
|
+
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true, size: "lg" }) %>
|
|
15
15
|
<% end %>
|
|
16
16
|
<% end %>
|
|
17
|
-
<%= pb_rails("
|
|
17
|
+
<%= pb_rails("caption", props: { tag: "span", text: object.format_time_string, size: "lg" }) %>
|
|
18
18
|
<% if object.show_timezone %>
|
|
19
|
-
<%=
|
|
19
|
+
<%= content_tag(:span, class: "pb_time_timezone") do %>
|
|
20
|
+
<%= object.pb_date_time.to_timezone.upcase %>
|
|
21
|
+
<% end %>
|
|
20
22
|
<% end %>
|
|
21
23
|
<% else %>
|
|
22
24
|
<% if object.show_icon %>
|
|
23
25
|
<%= pb_rails("body", props: { color: "light", tag: "span"}) do %>
|
|
24
|
-
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true
|
|
26
|
+
<%= pb_rails("icon", props: { icon: "clock", fixed_width: true }) %>
|
|
25
27
|
<% end %>
|
|
26
28
|
<% end %>
|
|
27
|
-
|
|
28
|
-
<%= pb_rails("caption", props: { color: "light", tag: "span", text: object.format_time_string }) do %>
|
|
29
|
+
<%= pb_rails("body", props: { color: "light", tag: "span", text: object.format_time_string }) do %>
|
|
29
30
|
<%= content_tag(:time, datetime: object.pb_date_time.to_iso) do %>
|
|
30
|
-
<%=
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<%=
|
|
34
|
-
|
|
31
|
+
<%= content_tag(:span) do %>
|
|
32
|
+
<%= object.format_time_string %>
|
|
33
|
+
<% if object.show_timezone %>
|
|
34
|
+
<%= content_tag(:span, class: "pb_time_timezone") do %>
|
|
35
|
+
<%= object.pb_date_time.to_timezone.upcase %>
|
|
36
|
+
<% end %>
|
|
37
|
+
<% end %>
|
|
35
38
|
<% end %>
|
|
36
39
|
<% end %>
|
|
37
40
|
<% end %>
|