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
@@ -45,15 +45,11 @@ const SelectableIcon = ({
|
|
45
45
|
const ariaProps = buildAriaProps(aria)
|
46
46
|
const dataProps = buildDataProps(data)
|
47
47
|
|
48
|
-
const classes = classnames(
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
}),
|
54
|
-
globalProps(props),
|
55
|
-
className
|
56
|
-
)
|
48
|
+
const classes = classnames(buildCss('pb_selectable_icon_kit',
|
49
|
+
{ 'checked': checked,
|
50
|
+
'disabled': disabled,
|
51
|
+
'enabled': !disabled },
|
52
|
+
className), globalProps(props))
|
57
53
|
|
58
54
|
const inputType = multi === false ? 'radio' : 'checkbox'
|
59
55
|
|
@@ -1,80 +1,82 @@
|
|
1
|
-
@import "../tokens/transition";
|
2
|
-
|
3
1
|
[class^=pb_selectable_icon] {
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
transition: all $transition_short ease;
|
8
|
-
@media (hover:hover) {
|
9
|
-
&:hover * {
|
10
|
-
transition: all $transition_short ease;
|
11
|
-
transform: translateY(-2px);
|
12
|
-
}
|
13
|
-
}
|
3
|
+
text-align: center;
|
4
|
+
cursor: pointer;
|
14
5
|
|
15
|
-
|
16
|
-
|
17
|
-
|
6
|
+
:hover * {
|
7
|
+
filter: drop-shadow(0 0 8px rgba($shadow, 0.25));
|
8
|
+
transition-duration: $transition_short;
|
9
|
+
transition-timing-function: $easeIn;
|
10
|
+
}
|
18
11
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
transition: color $transition_short ease;
|
23
|
-
}
|
12
|
+
* {
|
13
|
+
cursor: pointer;
|
14
|
+
}
|
24
15
|
|
25
|
-
|
26
|
-
|
27
|
-
|
16
|
+
h4 {
|
17
|
+
margin-top: $space_xs !important;
|
18
|
+
user-select: none;
|
19
|
+
}
|
28
20
|
|
29
|
-
|
21
|
+
&[class*=_disabled] {
|
30
22
|
opacity: $opacity_6;
|
31
23
|
cursor: not-allowed;
|
24
|
+
|
32
25
|
* {
|
33
|
-
|
26
|
+
cursor: not-allowed;
|
34
27
|
}
|
35
28
|
}
|
36
29
|
|
37
|
-
|
38
|
-
|
30
|
+
input[type="checkbox"],
|
31
|
+
input[type="radio"] {
|
39
32
|
-webkit-appearance: none;
|
40
33
|
-moz-appearance: none;
|
41
34
|
display: none;
|
42
35
|
appearance: none;
|
43
|
-
|
36
|
+
|
37
|
+
transition-property: color;
|
38
|
+
transition-duration: $transition_short;
|
44
39
|
|
45
40
|
&:checked ~ label * {
|
46
|
-
transition:
|
41
|
+
transition-timing-function: $easeIn;
|
47
42
|
color: $primary;
|
48
43
|
}
|
49
44
|
|
50
45
|
&:not(:checked) ~ label {
|
51
|
-
transition:
|
46
|
+
transition-timing-function: $easeOut;
|
52
47
|
color: $slate;
|
53
48
|
|
49
|
+
h4 {
|
50
|
+
transition-delay: .15s;
|
51
|
+
}
|
54
52
|
}
|
55
53
|
}
|
56
54
|
|
57
55
|
|
58
|
-
|
56
|
+
&.dark {
|
57
|
+
|
59
58
|
input[type="checkbox"],
|
60
59
|
input[type="radio"] {
|
61
60
|
-webkit-appearance: none;
|
62
61
|
-moz-appearance: none;
|
63
62
|
display: none;
|
64
63
|
appearance: none;
|
65
|
-
|
66
|
-
|
64
|
+
|
65
|
+
transition-property: color;
|
66
|
+
transition-duration: $transition_short;
|
67
|
+
|
68
|
+
|
67
69
|
&:checked ~ label * {
|
68
|
-
transition:
|
70
|
+
transition-timing-function: $easeIn;
|
69
71
|
color: $active_dark !important;
|
70
72
|
}
|
71
73
|
|
72
74
|
&:not(:checked) ~ label {
|
73
|
-
transition:
|
75
|
+
transition-timing-function: $easeOut;
|
74
76
|
color: $text_dk_lighter;
|
75
77
|
|
76
78
|
h4 {
|
77
|
-
transition:
|
79
|
+
transition-delay: .15s;
|
78
80
|
color: $text_dk_default;
|
79
81
|
}
|
80
82
|
}
|
@@ -19,16 +19,14 @@ $transition-speed: 0.2s;
|
|
19
19
|
transition: all $transition-speed ease;
|
20
20
|
}
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
box-shadow: 0 2px 10px 0 rgba($slate, $opacity-6);
|
22
|
+
&:hover {
|
23
|
+
box-shadow: 0 2px 10px 0 rgba($slate, $opacity-6);
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
}
|
25
|
+
td {
|
26
|
+
background: $white;
|
27
|
+
border-color: darken($border_light, 10%);
|
28
|
+
border-top-width: 1px;
|
29
|
+
border-top-color: transparent;
|
32
30
|
}
|
33
31
|
}
|
34
32
|
}
|
@@ -40,12 +38,11 @@ $transition-speed: 0.2s;
|
|
40
38
|
border-top-color: $border_light;
|
41
39
|
border-top-width: 1px;
|
42
40
|
}
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
}
|
41
|
+
|
42
|
+
&:hover {
|
43
|
+
td {
|
44
|
+
border-top-width: 1px;
|
45
|
+
border-top-color: $border_light;
|
49
46
|
}
|
50
47
|
}
|
51
48
|
}
|
@@ -42,12 +42,10 @@ $table-dark-card-bg: $bg_dark;
|
|
42
42
|
&:not(.no-hover) {
|
43
43
|
tbody {
|
44
44
|
tr {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
background: $bg_dark;
|
50
|
-
}
|
45
|
+
&:hover {
|
46
|
+
td {
|
47
|
+
border-color: $border_dark !important;
|
48
|
+
background: $bg_dark;
|
51
49
|
}
|
52
50
|
}
|
53
51
|
}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
@include pb_body_light;
|
18
18
|
}
|
19
19
|
|
20
|
-
input {
|
20
|
+
> input:first-child {
|
21
21
|
@include pb_textarea_light;
|
22
22
|
@include pb_title_4;
|
23
23
|
overflow: hidden;
|
@@ -38,7 +38,7 @@
|
|
38
38
|
@include pb_body_light_dark;
|
39
39
|
}
|
40
40
|
|
41
|
-
input {
|
41
|
+
> input:first-child {
|
42
42
|
@include pb_textarea_dark;
|
43
43
|
@include pb_title_4;
|
44
44
|
@include pb_title_dark;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
|
55
55
|
&.error {
|
56
56
|
.text_input_wrapper {
|
57
|
-
input {
|
57
|
+
> input:first-child {
|
58
58
|
border-color: $error_dark;
|
59
59
|
}
|
60
60
|
}
|
@@ -66,7 +66,7 @@
|
|
66
66
|
[class*=pb_body_kit] {
|
67
67
|
margin-top: $space_xs / 2;
|
68
68
|
}
|
69
|
-
input {
|
69
|
+
> input:first-child {
|
70
70
|
border-color: $error;
|
71
71
|
}
|
72
72
|
}
|
@@ -10,24 +10,24 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
10
10
|
import { Body, Icon, Title } from '../'
|
11
11
|
|
12
12
|
type TimeProps = {
|
13
|
-
align?: 'left
|
13
|
+
align?: 'left" | "center' | 'right',
|
14
14
|
className?: string | array<string>,
|
15
15
|
data?: string,
|
16
16
|
date: string,
|
17
17
|
id?: string,
|
18
|
+
showTimezone?: boolean,
|
18
19
|
size?: 'lg' | 'sm' | 'xs',
|
19
|
-
timeZone?: string,
|
20
20
|
}
|
21
21
|
|
22
22
|
const Time = (props: TimeProps) => {
|
23
|
-
const { align, className, date,
|
23
|
+
const { align, className, date, showTimezone, size } = props
|
24
24
|
const classes = classnames(
|
25
25
|
className,
|
26
26
|
buildCss('pb_time_kit', align, size),
|
27
27
|
globalProps(props)
|
28
28
|
)
|
29
29
|
|
30
|
-
const dateTimestamp = new DateTime({ value: date
|
30
|
+
const dateTimestamp = new DateTime({ value: date })
|
31
31
|
|
32
32
|
return (
|
33
33
|
<div className={classes}>
|
@@ -53,9 +53,7 @@ const Time = (props: TimeProps) => {
|
|
53
53
|
text={dateTimestamp.toTimeWithMeridian()}
|
54
54
|
/>
|
55
55
|
</If>
|
56
|
-
<
|
57
|
-
<span className="pb_time_timezone">{dateTimestamp.toTimezone()}</span>
|
58
|
-
</If>
|
56
|
+
{ showTimezone && <span className="pb_time_timezone">{dateTimestamp.toTimezone()}</span> }
|
59
57
|
</span>
|
60
58
|
</time>
|
61
59
|
</span>
|
@@ -6,17 +6,19 @@ const TimeDefault = () => {
|
|
6
6
|
<div>
|
7
7
|
<Time
|
8
8
|
date={new Date()}
|
9
|
+
showTimezone
|
9
10
|
size="lg"
|
10
|
-
timeZone="America/New_York"
|
11
11
|
/>
|
12
12
|
<br />
|
13
13
|
<Time
|
14
14
|
date={new Date().getTime()}
|
15
|
+
showTimezone
|
15
16
|
size="sm"
|
16
17
|
/>
|
17
18
|
<br />
|
18
19
|
<Time
|
19
20
|
date="2012-08-02T09:49:29Z"
|
21
|
+
showTimezone
|
20
22
|
size="xs"
|
21
23
|
/>
|
22
24
|
</div>
|
@@ -6,6 +6,7 @@ const TimeStamp = () => {
|
|
6
6
|
<div>
|
7
7
|
<Time
|
8
8
|
date={new Date()}
|
9
|
+
showTimezone
|
9
10
|
size="sm"
|
10
11
|
/>
|
11
12
|
|
@@ -13,6 +14,7 @@ const TimeStamp = () => {
|
|
13
14
|
|
14
15
|
<Time
|
15
16
|
date={new Date().getTime()}
|
17
|
+
showTimezone
|
16
18
|
size="sm"
|
17
19
|
/>
|
18
20
|
|
@@ -20,6 +22,7 @@ const TimeStamp = () => {
|
|
20
22
|
|
21
23
|
<Time
|
22
24
|
date="2012-08-02T15:49:29Z"
|
25
|
+
showTimezone
|
23
26
|
size="sm"
|
24
27
|
/>
|
25
28
|
</div>
|
@@ -2,4 +2,3 @@ export { default as TimeDefault } from './_time_default.jsx'
|
|
2
2
|
export { default as TimeTimestamp } from './_time_timestamp.jsx'
|
3
3
|
export { default as TimeAlign } from './_time_align.jsx'
|
4
4
|
export { default as TimeDark } from './_time_dark.jsx'
|
5
|
-
export { default as TimeTimezone } from './_time_timezone.jsx'
|
@@ -10,11 +10,11 @@ import { buildCss, buildDataProps } from '../utilities/props'
|
|
10
10
|
|
11
11
|
type TitleDetailProps = {
|
12
12
|
align?: "left" | "center" | "right",
|
13
|
-
className?:
|
13
|
+
className?: String,
|
14
14
|
data?: object,
|
15
|
-
detail:
|
16
|
-
id?:
|
17
|
-
title:
|
15
|
+
detail: String,
|
16
|
+
id?: String,
|
17
|
+
title: String,
|
18
18
|
}
|
19
19
|
|
20
20
|
const TitleDetail = (props: TitleDetailProps) => {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@import "./opacity";
|
2
2
|
|
3
|
-
|
4
|
-
Base colors should not be documented.
|
5
|
-
Only document color use.
|
3
|
+
//=====================================
|
4
|
+
// Base colors should not be documented.
|
5
|
+
// Only document color use.
|
6
6
|
|
7
|
-
Colors
|
7
|
+
// Colors -----------------------------
|
8
8
|
$royal: #0056CF;
|
9
9
|
$purple: #9E64E9;
|
10
10
|
$teal: #00C4D7;
|
@@ -22,11 +22,11 @@ $colors: (
|
|
22
22
|
orange: $orange
|
23
23
|
);
|
24
24
|
|
25
|
-
|
25
|
+
// Specialty Gradient -----------------
|
26
26
|
$gradient_start: #1C75F2;
|
27
27
|
$gradient_end: $royal;
|
28
28
|
|
29
|
-
|
29
|
+
// Interface colors -------------------
|
30
30
|
$white: #FFFFFF;
|
31
31
|
$silver: #F3F7FB;
|
32
32
|
$slate: #C1CDD6;
|
@@ -42,7 +42,7 @@ $interface_colors: (
|
|
42
42
|
|
43
43
|
);
|
44
44
|
|
45
|
-
|
45
|
+
// Main colors ------------------------
|
46
46
|
$primary: $royal;
|
47
47
|
$secondary: $yellow;
|
48
48
|
$tertiary: $purple;
|
@@ -51,17 +51,17 @@ $main_colors: (
|
|
51
51
|
secondary: $secondary,
|
52
52
|
tertiary: $tertiary
|
53
53
|
);
|
54
|
-
|
54
|
+
//=====================================
|
55
55
|
|
56
|
-
Background colors
|
56
|
+
// Background colors ------------------
|
57
57
|
$bg_light: $silver;
|
58
|
-
$bg_dark: #
|
58
|
+
$bg_dark: #0a0527;
|
59
59
|
$background_colors: (
|
60
60
|
bg_light: $bg_light,
|
61
61
|
bg_dark: $bg_dark
|
62
62
|
);
|
63
63
|
|
64
|
-
|
64
|
+
// Card colors ------------------
|
65
65
|
$card_light: $white;
|
66
66
|
$card_dark: rgba($white, $opacity_1);
|
67
67
|
$card_colors: (
|
@@ -74,15 +74,15 @@ $action_colors: (
|
|
74
74
|
primary_action: $primary-action
|
75
75
|
);
|
76
76
|
|
77
|
-
|
77
|
+
// Active colors ----------------------
|
78
78
|
$active_light: lighten(#E5F2FF, 3.5%);
|
79
|
-
$active_dark: #0082ff;
|
79
|
+
$active_dark: #0082ff;
|
80
80
|
$active_colors: (
|
81
81
|
active_light: $active_light,
|
82
82
|
active_dark: $active_dark
|
83
83
|
);
|
84
84
|
|
85
|
-
|
85
|
+
// Hover colors -----------------------
|
86
86
|
$hover_light: darken($silver, 5%);
|
87
87
|
$hover_dark: rgba($white, $opacity_2);
|
88
88
|
$hover_colors: (
|
@@ -90,7 +90,7 @@ $hover_colors: (
|
|
90
90
|
hover_dark: $hover_dark
|
91
91
|
);
|
92
92
|
|
93
|
-
|
93
|
+
// Focus colors -----------------------
|
94
94
|
$focus_input_light: rgba($active_light, $opacity_5);
|
95
95
|
$focus_input_dark: rgba(#144075, $opacity_5);
|
96
96
|
$focus_input_colors: (
|
@@ -98,7 +98,7 @@ $focus_input_colors: (
|
|
98
98
|
focus_input_dark: $focus_input_dark
|
99
99
|
);
|
100
100
|
|
101
|
-
|
101
|
+
// Border colors ----------------------
|
102
102
|
$border_light: #E4E8F0;
|
103
103
|
$border_dark: rgba($white, $opacity_1);
|
104
104
|
$border_colors: (
|
@@ -106,13 +106,13 @@ $border_colors: (
|
|
106
106
|
border_dark: $border_dark
|
107
107
|
);
|
108
108
|
|
109
|
-
|
109
|
+
// Shadow colors ----------------------
|
110
110
|
$shadow: rgba(#3C6AAC, $opacity_2);
|
111
111
|
$shadow_colors: (
|
112
112
|
shadow: $shadow,
|
113
113
|
);
|
114
114
|
|
115
|
-
|
115
|
+
// Text colors ------------------------
|
116
116
|
$text_lt_default: $charcoal;
|
117
117
|
$text_lt_light: #919EAB;
|
118
118
|
$text_lt_lighter: $slate;
|
@@ -128,7 +128,7 @@ $text_colors: (
|
|
128
128
|
text_dk_lighter: $text_dk_lighter
|
129
129
|
);
|
130
130
|
|
131
|
-
|
131
|
+
// Data colors ------------------------
|
132
132
|
$data_1: $royal;
|
133
133
|
$data_2: $yellow;
|
134
134
|
$data_3: $purple;
|
@@ -148,7 +148,7 @@ $data_colors: (
|
|
148
148
|
data_8: $data_8
|
149
149
|
);
|
150
150
|
|
151
|
-
|
151
|
+
// Status colors ----------------------
|
152
152
|
$success: $green;
|
153
153
|
$warning: $yellow;
|
154
154
|
$error: $red;
|
@@ -174,10 +174,10 @@ $status_color_text: (
|
|
174
174
|
primary: $primary
|
175
175
|
);
|
176
176
|
|
177
|
-
|
177
|
+
// Link colors ------------------------
|
178
178
|
$primary_action: $primary;
|
179
179
|
|
180
|
-
|
180
|
+
// Product colors ---------------------
|
181
181
|
$windows: $royal;
|
182
182
|
$siding: $yellow;
|
183
183
|
$doors: $teal;
|
@@ -195,7 +195,7 @@ $product_colors: (
|
|
195
195
|
insulation: $insulation
|
196
196
|
);
|
197
197
|
|
198
|
-
|
198
|
+
// Category colors ---------------------
|
199
199
|
$category_1: $royal;
|
200
200
|
$category_2: #0CD2E5;
|
201
201
|
$category_3: $yellow;
|
@@ -252,6 +252,7 @@ $transparent: transparent;
|
|
252
252
|
}
|
253
253
|
|
254
254
|
:export {
|
255
|
+
|
255
256
|
@mixin export-colors($colors-list) {
|
256
257
|
@each $name, $color in $colors-list {
|
257
258
|
#{$name}: $color;
|