playbook_ui 7.0.0.pre.alpha9 → 7.0.1.pre.alpha1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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 +109 -0
- data/app/controllers/playbook/samples_controller.rb +40 -0
- data/app/helpers/playbook/pb_doc_helper.rb +1 -0
- data/app/helpers/playbook/pb_kit_helper.rb +20 -3
- data/app/pb_kits/playbook/_playbook.scss +0 -1
- data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
- data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
- data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
- data/app/pb_kits/playbook/index.js +0 -4
- data/app/pb_kits/playbook/packs/application.js +55 -0
- data/app/pb_kits/playbook/packs/examples.js +175 -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 +133 -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 +8 -3
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
- data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
- data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_body/_body.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
- data/app/pb_kits/playbook/pb_body/body.rb +1 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
- data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
- data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
- data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +17 -31
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +5 -7
- data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -3
- data/app/pb_kits/playbook/pb_caption/_caption.scss +0 -3
- data/app/pb_kits/playbook/pb_caption/caption.rb +1 -4
- data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
- data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
- data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
- data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
- data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
- data/app/pb_kits/playbook/pb_date/_date.html.erb +8 -32
- data/app/pb_kits/playbook/pb_date/_date.jsx +67 -76
- data/app/pb_kits/playbook/pb_date/_date.scss +0 -25
- data/app/pb_kits/playbook/pb_date/date.rb +11 -20
- data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +9 -1
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +28 -0
- data/app/pb_kits/playbook/pb_date/docs/_description.md +0 -2
- data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -6
- data/app/pb_kits/playbook/pb_date/docs/index.js +1 -3
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
- 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_file_upload/_file_upload.jsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
- data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
- data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
- data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +28 -6
- data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
- data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +42 -18
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
- data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +6 -7
- data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
- data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
- data/app/pb_kits/playbook/pb_select/_select.scss +4 -8
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
- data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
- data/app/pb_kits/playbook/pb_time/_time.jsx +5 -7
- data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +2 -0
- data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +3 -1
- data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -0
- data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
- data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -4
- data/app/pb_kits/playbook/tokens/_colors.scss +24 -23
- data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
- data/app/pb_kits/playbook/vendor.js +0 -5
- data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
- data/app/views/layouts/playbook/_nav.html.erb +33 -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/playbook/engine.rb +0 -1
- data/lib/playbook/version.rb +1 -1
- data/lib/tasks/pb_release.rake +0 -3
- metadata +64 -55
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
- data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
- data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
- data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -28
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +0 -1
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +0 -16
- data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
- data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
- data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
- 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 -32
- data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +0 -20
- data/app/pb_kits/playbook/pb_date/docs/_date_default_react.md +0 -3
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +0 -51
- data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +0 -6
- 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 -39
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +0 -59
- data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +0 -11
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +0 -1
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +0 -17
- data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +0 -3
- data/app/pb_kits/playbook/react_rails_kits.js +0 -5
- data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -1,7 +1,6 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
3
|
- card_light: Default
|
4
|
-
- card_dark: Dark Cards
|
5
4
|
- card_highlight: Highlight Cards
|
6
5
|
- card_header: Header Cards
|
7
6
|
- card_selected: Selected
|
@@ -12,7 +11,6 @@ examples:
|
|
12
11
|
- card_border_none: No Border
|
13
12
|
react:
|
14
13
|
- card_light: Default
|
15
|
-
- card_dark: Dark Cards
|
16
14
|
- card_highlight: Highlight Cards
|
17
15
|
- card_header: Header Cards
|
18
16
|
- card_selected: Selected
|
@@ -6,5 +6,4 @@ export { default as CardPadding } from './_card_padding.jsx'
|
|
6
6
|
export { default as CardShadow } from './_card_shadow.jsx'
|
7
7
|
export { default as CardContent } from './_card_content.jsx'
|
8
8
|
export { default as CardSeparator } from './_card_separator.jsx'
|
9
|
-
export { default as CardDark } from './_card_dark.jsx'
|
10
9
|
export { default as CardBorderNone } from './_card_border_none.jsx'
|
@@ -1,10 +1,8 @@
|
|
1
1
|
@import "../tokens/colors";
|
2
|
-
@import "../tokens/transition";
|
3
2
|
$transition: $transition_cubic;
|
4
3
|
|
5
4
|
[class^=pb_checkbox_kit] {
|
6
5
|
display: inline-flex;
|
7
|
-
cursor: pointer;
|
8
6
|
.pb_checkbox_label {
|
9
7
|
padding-left: $space_xs;
|
10
8
|
cursor: pointer;
|
@@ -17,8 +15,7 @@ $transition: $transition_cubic;
|
|
17
15
|
width: 22px;
|
18
16
|
border: solid $border_light 2px;
|
19
17
|
border-radius: $border_rad_light;
|
20
|
-
|
21
|
-
.check_icon {
|
18
|
+
.check_icon{
|
22
19
|
opacity: 0;
|
23
20
|
position: relative;
|
24
21
|
top: -2px;
|
@@ -29,10 +26,9 @@ $transition: $transition_cubic;
|
|
29
26
|
|
30
27
|
}
|
31
28
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
}
|
29
|
+
|
30
|
+
&:hover input ~ .pb_checkbox_checkmark {
|
31
|
+
border-color: $primary_action;
|
36
32
|
}
|
37
33
|
|
38
34
|
input {
|
@@ -62,10 +58,8 @@ $transition: $transition_cubic;
|
|
62
58
|
border-color: $primary_action;
|
63
59
|
}
|
64
60
|
|
65
|
-
|
66
|
-
|
67
|
-
border-color: $primary_action;
|
68
|
-
}
|
61
|
+
&:hover .pb_checkbox_checkmark {
|
62
|
+
border-color: $primary_action;
|
69
63
|
}
|
70
64
|
|
71
65
|
&.error {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { Checkbox } from '../../'
|
3
3
|
|
4
|
-
const CheckboxCustom = () => {
|
4
|
+
const CheckboxCustom = (props) => {
|
5
5
|
const [checked, setChecked] = useState(false)
|
6
6
|
|
7
7
|
const handleOnChange = () => {
|
@@ -14,7 +14,10 @@ const CheckboxCustom = () => {
|
|
14
14
|
<br />
|
15
15
|
<br />
|
16
16
|
<div>
|
17
|
-
<Checkbox
|
17
|
+
<Checkbox
|
18
|
+
{...props}
|
19
|
+
text="Toggle Me"
|
20
|
+
>
|
18
21
|
<input
|
19
22
|
checked={checked}
|
20
23
|
name="custom-name"
|
@@ -2,15 +2,11 @@ examples:
|
|
2
2
|
rails:
|
3
3
|
- checkbox_default: Default
|
4
4
|
- checkbox_checked: Load as checked
|
5
|
-
- checkbox_dark: Dark
|
6
5
|
- checkbox_custom: Custom Checkbox
|
7
6
|
- checkbox_error: Default w/ Error
|
8
|
-
- checkbox_dark_error: Dark w/ Error
|
9
7
|
|
10
8
|
react:
|
11
9
|
- checkbox_default: Default
|
12
10
|
- checkbox_checked: Load as checked
|
13
|
-
- checkbox_dark: Dark
|
14
11
|
- checkbox_custom: Custom Checkbox
|
15
12
|
- checkbox_error: Default w/ Error
|
16
|
-
- checkbox_dark_error: Dark w/ Error
|
@@ -1,6 +1,4 @@
|
|
1
1
|
export { default as CheckboxDefault } from './_checkbox_default.jsx'
|
2
|
-
export { default as CheckboxDark } from './_checkbox_dark.jsx'
|
3
2
|
export { default as CheckboxCustom } from './_checkbox_custom.jsx'
|
4
3
|
export { default as CheckboxError } from './_checkbox_error.jsx'
|
5
|
-
export { default as CheckboxDarkError } from './_checkbox_dark_error.jsx'
|
6
4
|
export { default as CheckboxChecked } from './_checkbox_checked.jsx'
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../..'
|
3
3
|
|
4
|
-
const CircleIconButtonClick = () => (
|
4
|
+
const CircleIconButtonClick = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
onClick={() => alert('Click!')}
|
9
10
|
variant="primary"
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonDefault = () => (
|
4
|
+
const CircleIconButtonDefault = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="plus"
|
8
9
|
variant="primary"
|
9
10
|
/>
|
@@ -11,6 +12,7 @@ const CircleIconButtonDefault = () => (
|
|
11
12
|
<br />
|
12
13
|
|
13
14
|
<CircleIconButton
|
15
|
+
{...props}
|
14
16
|
icon="pen"
|
15
17
|
variant="secondary"
|
16
18
|
/>
|
@@ -18,6 +20,7 @@ const CircleIconButtonDefault = () => (
|
|
18
20
|
<br />
|
19
21
|
|
20
22
|
<CircleIconButton
|
23
|
+
{...props}
|
21
24
|
disabled
|
22
25
|
icon="times"
|
23
26
|
/>
|
@@ -25,6 +28,7 @@ const CircleIconButtonDefault = () => (
|
|
25
28
|
<br />
|
26
29
|
|
27
30
|
<CircleIconButton
|
31
|
+
{...props}
|
28
32
|
icon="user"
|
29
33
|
variant="link"
|
30
34
|
/>
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { CircleIconButton } from '../../'
|
3
3
|
|
4
|
-
const CircleIconButtonLink = () => (
|
4
|
+
const CircleIconButtonLink = (props) => (
|
5
5
|
<div>
|
6
6
|
<CircleIconButton
|
7
|
+
{...props}
|
7
8
|
icon="search"
|
8
9
|
link="https://google.com"
|
9
10
|
variant="primary"
|
@@ -13,6 +14,7 @@ const CircleIconButtonLink = () => (
|
|
13
14
|
<br />
|
14
15
|
|
15
16
|
<CircleIconButton
|
17
|
+
{...props}
|
16
18
|
icon="window"
|
17
19
|
link="https://google.com"
|
18
20
|
newWindow
|
@@ -2,11 +2,9 @@ examples:
|
|
2
2
|
|
3
3
|
rails:
|
4
4
|
- circle_icon_button_default: Default
|
5
|
-
- circle_icon_button_dark: Dark
|
6
5
|
- circle_icon_button_link: Link
|
7
6
|
|
8
7
|
react:
|
9
8
|
- circle_icon_button_default: Default
|
10
9
|
- circle_icon_button_click: Click Handler
|
11
|
-
- circle_icon_button_dark: Dark
|
12
10
|
- circle_icon_button_link: Link
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
|
2
2
|
export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
|
3
|
-
export { default as CircleIconButtonDark } from './_circle_icon_button_dark.jsx'
|
4
3
|
export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
|
@@ -1,26 +1,31 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactType="cell"
|
9
10
|
contactValue="349-185-9988"
|
10
11
|
/>
|
11
12
|
<Contact
|
13
|
+
{...props}
|
12
14
|
contactValue="5555555555"
|
13
15
|
/>
|
14
16
|
<Contact
|
17
|
+
{...props}
|
15
18
|
contactType="email"
|
16
19
|
contactValue="email@example.com"
|
17
20
|
/>
|
18
21
|
<Contact
|
22
|
+
{...props}
|
19
23
|
contactType="work"
|
20
24
|
contactValue="3245627482"
|
21
25
|
|
22
26
|
/>
|
23
27
|
<Contact
|
28
|
+
{...props}
|
24
29
|
contactType="work-cell"
|
25
30
|
contactValue="3245627482"
|
26
31
|
/>
|
@@ -1,24 +1,28 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Contact } from '../../'
|
3
3
|
|
4
|
-
const ContactDefault = () => {
|
4
|
+
const ContactDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<Contact
|
8
|
+
{...props}
|
8
9
|
contactDetail="Cell"
|
9
10
|
contactType="cell"
|
10
11
|
contactValue="349-185-9988"
|
11
12
|
/>
|
12
13
|
<Contact
|
14
|
+
{...props}
|
13
15
|
contactDetail="Home"
|
14
16
|
contactValue="5555555555"
|
15
17
|
/>
|
16
18
|
<Contact
|
19
|
+
{...props}
|
17
20
|
contactDetail="Work"
|
18
21
|
contactType="work"
|
19
22
|
contactValue="3245627482"
|
20
23
|
/>
|
21
24
|
<Contact
|
25
|
+
{...props}
|
22
26
|
contactDetail="Work-Cell"
|
23
27
|
contactType="work-cell"
|
24
28
|
contactValue="3245627482"
|
@@ -1,14 +1,16 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Currency } from '../../'
|
3
3
|
|
4
|
-
const CurrencyLarge = () => {
|
4
|
+
const CurrencyLarge = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<Currency
|
8
|
+
{...props}
|
8
9
|
amount="2,000.50"
|
9
10
|
size="lg"
|
10
11
|
/>
|
11
12
|
<Currency
|
13
|
+
{...props}
|
12
14
|
align="center"
|
13
15
|
amount="342"
|
14
16
|
label="Caption"
|
@@ -16,6 +18,7 @@ const CurrencyLarge = () => {
|
|
16
18
|
symbol="€"
|
17
19
|
/>
|
18
20
|
<Currency
|
21
|
+
{...props}
|
19
22
|
align="right"
|
20
23
|
amount="45"
|
21
24
|
label="Caption"
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Currency } from '../../'
|
3
3
|
|
4
|
-
const CurrencyMedium = () => {
|
4
|
+
const CurrencyMedium = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<Currency
|
8
|
+
{...props}
|
8
9
|
amount="2,000.50"
|
9
10
|
label="Caption"
|
10
11
|
size="md"
|
11
12
|
/>
|
12
13
|
<Currency
|
14
|
+
{...props}
|
13
15
|
align="center"
|
14
16
|
amount="342"
|
15
17
|
label="Caption"
|
@@ -17,6 +19,7 @@ const CurrencyMedium = () => {
|
|
17
19
|
symbol="€"
|
18
20
|
/>
|
19
21
|
<Currency
|
22
|
+
{...props}
|
20
23
|
align="right"
|
21
24
|
amount="45"
|
22
25
|
label="Caption"
|
@@ -1,15 +1,17 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Currency } from '../../'
|
3
3
|
|
4
|
-
const CurrencySmall = () => {
|
4
|
+
const CurrencySmall = (props) => {
|
5
5
|
return (
|
6
6
|
<>
|
7
7
|
<Currency
|
8
|
+
{...props}
|
8
9
|
amount="2,000.50"
|
9
10
|
label="Caption"
|
10
11
|
size="sm"
|
11
12
|
/>
|
12
13
|
<Currency
|
14
|
+
{...props}
|
13
15
|
align="center"
|
14
16
|
amount="342"
|
15
17
|
label="Caption"
|
@@ -17,6 +19,7 @@ const CurrencySmall = () => {
|
|
17
19
|
symbol="€"
|
18
20
|
/>
|
19
21
|
<Currency
|
22
|
+
{...props}
|
20
23
|
align="right"
|
21
24
|
amount="45"
|
22
25
|
label="Caption"
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { DashboardValue } from '../../'
|
3
3
|
|
4
|
-
const DashboardValueAlign = () => {
|
4
|
+
const DashboardValueAlign = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<DashboardValue
|
8
|
+
{...props}
|
8
9
|
statChange={{ change: 'decrease', value: '26.1' }}
|
9
10
|
statLabel="Top Title Value"
|
10
11
|
statValue={{ value: '1,428', unit: 'appts' }}
|
@@ -14,6 +15,7 @@ const DashboardValueAlign = () => {
|
|
14
15
|
<br />
|
15
16
|
|
16
17
|
<DashboardValue
|
18
|
+
{...props}
|
17
19
|
align="center"
|
18
20
|
statChange={{ change: 'decrease', value: 56.1 }}
|
19
21
|
statLabel="Top Title Value"
|
@@ -24,6 +26,7 @@ const DashboardValueAlign = () => {
|
|
24
26
|
<br />
|
25
27
|
|
26
28
|
<DashboardValue
|
29
|
+
{...props}
|
27
30
|
align="right"
|
28
31
|
statChange={{ change: 'decrease', value: 86 }}
|
29
32
|
statLabel="Top Title Value"
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { DashboardValue } from '../../'
|
3
3
|
|
4
|
-
const DashboardValueDefault = () => {
|
4
|
+
const DashboardValueDefault = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
7
|
<DashboardValue
|
8
|
+
{...props}
|
8
9
|
statChange={{ change: 'decrease', value: '26.1' }}
|
9
10
|
statLabel="Decreased Value"
|
10
11
|
statValue={{ value: '1,428', unit: 'appts' }}
|
@@ -14,6 +15,7 @@ const DashboardValueDefault = () => {
|
|
14
15
|
<br />
|
15
16
|
|
16
17
|
<DashboardValue
|
18
|
+
{...props}
|
17
19
|
statChange={{ change: 'increase', value: 56.1 }}
|
18
20
|
statLabel="Increased Value"
|
19
21
|
statValue={{ value: '938', unit: 'homes' }}
|
@@ -23,6 +25,7 @@ const DashboardValueDefault = () => {
|
|
23
25
|
<br />
|
24
26
|
|
25
27
|
<DashboardValue
|
28
|
+
{...props}
|
26
29
|
statChange={{ value: 86 }}
|
27
30
|
statLabel="Neutral Value"
|
28
31
|
statValue={{ value: '261', unit: 'windows' }}
|