playbook_ui 14.25.0.pre.alpha.dialogfix10277 → 14.25.0.pre.alpha.play1986inlineloadingsolidvariant9963
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +6 -6
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_avatar/_avatar.scss +65 -60
- data/app/pb_kits/playbook/pb_avatar/avatar.test.js +1 -1
- data/app/pb_kits/playbook/pb_background/_background.scss +3 -3
- data/app/pb_kits/playbook/pb_badge/_badge.scss +29 -135
- data/app/pb_kits/playbook/pb_body/_body.scss +35 -108
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +30 -17
- data/app/pb_kits/playbook/pb_button/_button.scss +31 -39
- data/app/pb_kits/playbook/pb_button/_button.tsx +12 -12
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_button/button.rb +18 -11
- data/app/pb_kits/playbook/pb_button/button.test.js +3 -3
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +73 -82
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +33 -32
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.test.js +2 -2
- data/app/pb_kits/playbook/pb_caption/_caption.scss +17 -100
- data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +8 -1
- data/app/pb_kits/playbook/pb_card/_card.scss +79 -116
- data/app/pb_kits/playbook/pb_card/_card.tsx +11 -26
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_card/card.rb +7 -8
- data/app/pb_kits/playbook/pb_card/card_header.rb +2 -6
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +2 -11
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +7 -7
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +1 -1
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +4 -4
- data/app/pb_kits/playbook/pb_copy_button/copy_button.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_currency/_currency.scss +39 -124
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss +6 -16
- data/app/pb_kits/playbook/pb_date/_date.scss +18 -16
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +12 -12
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_input_styles.scss +2 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_time_selection_styles.scss +5 -6
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +23 -29
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.scss +1 -1
- data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.test.js +2 -2
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.scss +26 -66
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.rb +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/date_stacked.test.js +2 -2
- data/app/pb_kits/playbook/pb_date_time/_date_time.scss +15 -8
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +7 -6
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.scss +14 -17
- data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.test.js +1 -1
- data/app/pb_kits/playbook/pb_detail/_detail.scss +21 -86
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +123 -330
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +7 -5
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +2 -16
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss +7 -10
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +25 -0
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +381 -0
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +231 -0
- data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +3 -0
- data/app/pb_kits/playbook/pb_drawer/context.ts +11 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +8 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +41 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +33 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +78 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +3 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +26 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +20 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +59 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +24 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +61 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +24 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +21 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +54 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +1 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +49 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +99 -0
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +20 -0
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +7 -0
- data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +20 -0
- data/app/pb_kits/playbook/pb_drawer/drawer.rb +56 -0
- data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +81 -0
- data/app/pb_kits/playbook/pb_drawer/hooks/useBreakpoint.tsx +60 -0
- data/app/pb_kits/playbook/pb_drawer/hooks/useDrawerAnimation.tsx +21 -0
- data/app/pb_kits/playbook/pb_drawer/index.js +257 -0
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +6 -6
- data/app/pb_kits/playbook/pb_dropdown/index.js +3 -3
- data/app/pb_kits/playbook/pb_empty_state/_empty_state.scss +4 -4
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +9 -20
- data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/_filter.scss +8 -8
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +29 -65
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.tsx +2 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.test.js +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex.scss +100 -106
- data/app/pb_kits/playbook/pb_flex/_flex.tsx +25 -32
- data/app/pb_kits/playbook/pb_flex/_flex_item.scss +51 -146
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +8 -19
- data/app/pb_kits/playbook/pb_flex/flex.rb +16 -16
- data/app/pb_kits/playbook/pb_flex/flex_item.rb +6 -6
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +1 -1
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +344 -381
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +4 -4
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +7 -8
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +2 -9
- data/app/pb_kits/playbook/pb_gauge/_gauge.scss +5 -5
- data/app/pb_kits/playbook/pb_hashtag/_hashtag.scss +1 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.scss +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/home_adress_street.test.js +2 -2
- data/app/pb_kits/playbook/pb_icon_button/_icon_button.scss +4 -4
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +39 -40
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.test.js +1 -1
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.scss +15 -16
- data/app/pb_kits/playbook/pb_image/_image.scss +36 -41
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.scss +1 -1
- data/app/pb_kits/playbook/pb_label_value/_label_value.scss +2 -3
- data/app/pb_kits/playbook/pb_label_value/label_value.test.js +2 -2
- data/app/pb_kits/playbook/pb_layout/_layout.scss +305 -336
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +11 -14
- data/app/pb_kits/playbook/pb_layout/item.rb +7 -1
- data/app/pb_kits/playbook/pb_layout/layout.rb +25 -16
- data/app/pb_kits/playbook/pb_layout/layout.test.js +3 -3
- data/app/pb_kits/playbook/pb_legend/_legend.scss +16 -66
- data/app/pb_kits/playbook/pb_legend/legend.test.js +1 -1
- data/app/pb_kits/playbook/pb_lightbox/lightbox.scss +4 -4
- data/app/pb_kits/playbook/pb_lightbox/lightbox.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_link/_link.scss +19 -113
- data/app/pb_kits/playbook/pb_list/_list.scss +1 -1
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.scss +11 -13
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.tsx +3 -1
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb +5 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +24 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_loading_inline/loading_inline.rb +11 -0
- data/app/pb_kits/playbook/pb_map/_map.scss +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
- data/app/pb_kits/playbook/pb_message/_message.scss +16 -21
- data/app/pb_kits/playbook/pb_message/_message.tsx +0 -1
- data/app/pb_kits/playbook/pb_message/_message_mixins.scss +12 -5
- data/app/pb_kits/playbook/pb_message/message.html.erb +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +3 -6
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +15 -16
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +1 -1
- data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +1 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.scss +15 -19
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -1
- data/app/pb_kits/playbook/pb_online_status/online_status.rb +4 -5
- data/app/pb_kits/playbook/pb_online_status/online_status.test.js +2 -2
- data/app/pb_kits/playbook/pb_overlay/_overlay.scss +1 -1
- data/app/pb_kits/playbook/pb_overlay/overlay.rb +1 -1
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +2 -5
- data/app/pb_kits/playbook/pb_person/_person.scss +1 -1
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +1 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +21 -23
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +13 -15
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +33 -108
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.scss +52 -71
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +4 -4
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +70 -81
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -9
- data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +1 -3
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +1 -7
- data/app/pb_kits/playbook/pb_select/_select.scss +4 -4
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +2 -6
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.scss +8 -17
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +29 -39
- data/app/pb_kits/playbook/pb_selectable_list/_item.tsx +0 -2
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss +11 -8
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list.test.js +3 -2
- data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.html.erb +2 -2
- data/app/pb_kits/playbook/pb_source/_source.scss +8 -8
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +1 -1
- data/app/pb_kits/playbook/pb_star_rating/star_rating.test.js +1 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.scss +2 -2
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +5 -5
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +6 -6
- data/app/pb_kits/playbook/pb_time/_time.scss +17 -44
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +23 -44
- data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.rb +1 -1
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.scss +8 -5
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.scss +10 -16
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.tsx +4 -1
- data/app/pb_kits/playbook/pb_timestamp/timestamp.rb +1 -1
- data/app/pb_kits/playbook/pb_timestamp/timestamp.test.js +2 -2
- data/app/pb_kits/playbook/pb_title/_title.scss +39 -44
- data/app/pb_kits/playbook/pb_title/_title.tsx +8 -17
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +2 -2
- data/app/pb_kits/playbook/pb_title/title.rb +10 -20
- data/app/pb_kits/playbook/pb_title/title.test.js +4 -4
- data/app/pb_kits/playbook/pb_title_count/_title_count.scss +8 -19
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.scss +11 -10
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +1 -4
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.scss +4 -3
- data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +22 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_without_pills.html.erb +2 -2
- data/app/pb_kits/playbook/pb_user/_user.scss +33 -83
- data/app/pb_kits/playbook/pb_user/user.test.js +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.scss +8 -23
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.scss +10 -10
- data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.test.jsx +3 -3
- data/dist/chunks/{_line_graph-CApw7aQD.js → _line_graph-CiVc-Cod.js} +1 -1
- data/dist/chunks/{_typeahead-J1_avqdO.js → _typeahead-BQnvz-Ks.js} +1 -1
- data/dist/chunks/_weekday_stacked-BkvHv3ZO.js +37 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +6 -0
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +36 -5
- data/dist/chunks/_weekday_stacked-Bugv1mOh.js +0 -37
@@ -13,14 +13,7 @@ $confirmation_toast_colors: (
|
|
13
13
|
tip: transparent,
|
14
14
|
);
|
15
15
|
|
16
|
-
|
17
|
-
.pb_fixed_confirmation_toast_kit_success_multi_line,
|
18
|
-
.pb_fixed_confirmation_toast_kit_error,
|
19
|
-
.pb_fixed_confirmation_toast_kit_error_multi_line,
|
20
|
-
.pb_fixed_confirmation_toast_kit_neutral,
|
21
|
-
.pb_fixed_confirmation_toast_kit_neutral_multi_line,
|
22
|
-
.pb_fixed_confirmation_toast_kit_tip,
|
23
|
-
.pb_fixed_confirmation_toast_kit_tip_multi_line {
|
16
|
+
[class^=pb_fixed_confirmation_toast_kit] {
|
24
17
|
display: inline-flex;
|
25
18
|
justify-content: center;
|
26
19
|
align-items: center;
|
@@ -70,63 +63,34 @@ $confirmation_toast_colors: (
|
|
70
63
|
right: $space_md;
|
71
64
|
}
|
72
65
|
}
|
73
|
-
}
|
74
|
-
|
75
|
-
.pb_fixed_confirmation_toast_kit_neutral,
|
76
|
-
.pb_fixed_confirmation_toast_kit_neutral_multi_line {
|
77
|
-
background: $text_lt_light;
|
78
|
-
|
79
|
-
.pb_icon {
|
80
|
-
color: $white !important;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
.pb_fixed_confirmation_toast_text {
|
85
|
-
color: $white !important;
|
86
|
-
margin: 0 $space_md 0 $space_md !important;
|
87
|
-
text-align: center;
|
88
|
-
white-space: pre;
|
89
|
-
}
|
90
|
-
|
91
|
-
.pb_fixed_confirmation_toast_kit_success,
|
92
|
-
.pb_fixed_confirmation_toast_kit_success_multi_line {
|
93
|
-
background: $success;
|
94
|
-
.pb_icon {
|
95
|
-
color: $white !important;
|
96
|
-
}
|
97
|
-
}
|
98
|
-
|
99
|
-
.pb_fixed_confirmation_toast_kit_error,
|
100
|
-
.pb_fixed_confirmation_toast_kit_error_multi_line {
|
101
|
-
background: $error;
|
102
|
-
|
103
66
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
67
|
+
@each $color_name, $color_value in $confirmation_toast_colors {
|
68
|
+
&[class*=_#{$color_name}] {
|
69
|
+
background: $color_value;
|
70
|
+
@if $color_name == "tip" {
|
71
|
+
@include gradient;
|
72
|
+
}
|
73
|
+
|
74
|
+
.pb_fixed_confirmation_toast_text {
|
75
|
+
color: $white;
|
76
|
+
margin: 0 $space_md 0 $space_md;
|
77
|
+
text-align: center;
|
78
|
+
white-space: pre;
|
79
|
+
}
|
80
|
+
|
81
|
+
.pb_icon {
|
82
|
+
color: $white;
|
83
|
+
}
|
84
|
+
|
85
|
+
&[class*=_multi_line] .pb_fixed_confirmation_toast_text {
|
86
|
+
color: $white;
|
87
|
+
overflow: hidden;
|
88
|
+
display: -webkit-box;
|
89
|
+
-webkit-line-clamp: 3;
|
90
|
+
-webkit-box-orient: vertical;
|
91
|
+
white-space: normal;
|
92
|
+
text-align: left;
|
93
|
+
}
|
94
|
+
}
|
114
95
|
}
|
115
|
-
@include gradient;
|
116
96
|
}
|
117
|
-
|
118
|
-
.pb_fixed_confirmation_toast_kit_success_multi_line,
|
119
|
-
.pb_fixed_confirmation_toast_kit_error_multi_line,
|
120
|
-
.pb_fixed_confirmation_toast_kit_neutral_multi_line,
|
121
|
-
.pb_fixed_confirmation_toast_kit_tip_multi_line {
|
122
|
-
.pb_fixed_confirmation_toast_text {
|
123
|
-
color: $white !important;
|
124
|
-
overflow: hidden;
|
125
|
-
display: -webkit-box;
|
126
|
-
-webkit-line-clamp: 3;
|
127
|
-
line-clamp: 3;
|
128
|
-
-webkit-box-orient: vertical;
|
129
|
-
white-space: normal;
|
130
|
-
text-align: left;
|
131
|
-
}
|
132
|
-
}
|
@@ -55,7 +55,8 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps): React.React
|
|
55
55
|
const iconClass = icon && icon !== "none" ? "custom_icon" : ""
|
56
56
|
|
57
57
|
const css = classnames(
|
58
|
-
`pb_fixed_confirmation_toast_kit_${status}
|
58
|
+
`pb_fixed_confirmation_toast_kit_${status}`,
|
59
|
+
{ _multi_line: multiLine },
|
59
60
|
{ [`positioned_toast ${vertical} ${horizontal}`]: vertical && horizontal },
|
60
61
|
`${iconClass}`,
|
61
62
|
globalProps(props),
|
@@ -64,7 +64,7 @@ test("renders no icon when icon prop is 'none'", () => {
|
|
64
64
|
|
65
65
|
test('renders correctly with multiLine prop', () => {
|
66
66
|
const { container } = render(<FixedConfirmationToast multiLine />);
|
67
|
-
expect(container.querySelector('.
|
67
|
+
expect(container.querySelector('._multi_line')).toBeInTheDocument();
|
68
68
|
});
|
69
69
|
|
70
70
|
test('renders position when provided', () => {
|
@@ -14,135 +14,129 @@ $gapTypes: (
|
|
14
14
|
gap: gap,
|
15
15
|
columnGap: column-gap,
|
16
16
|
rowGap: row-gap
|
17
|
-
);
|
17
|
+
);
|
18
18
|
|
19
|
-
|
20
|
-
.pb_flex_kit {
|
19
|
+
[class^=pb_flex_kit] {
|
21
20
|
display: flex;
|
22
21
|
flex-wrap: nowrap;
|
23
|
-
}
|
24
|
-
|
25
|
-
// Inline variant
|
26
|
-
.pb_flex_kit_inline {
|
27
|
-
display: inline-flex;
|
28
|
-
}
|
29
22
|
|
30
|
-
//
|
31
|
-
|
32
|
-
|
33
|
-
}
|
23
|
+
// Inline
|
24
|
+
&[class*=_inline] {
|
25
|
+
display: inline-flex;
|
26
|
+
}
|
34
27
|
|
35
|
-
//
|
36
|
-
|
37
|
-
|
38
|
-
}
|
28
|
+
// Wrap
|
29
|
+
&[class*=_wrap] {
|
30
|
+
flex-wrap: wrap;
|
31
|
+
}
|
39
32
|
|
40
|
-
|
41
|
-
|
42
|
-
|
33
|
+
// Orientation
|
34
|
+
&[class*=_orientation_row] {
|
35
|
+
flex-direction: row;
|
43
36
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
}
|
37
|
+
&[class*=_reverse] {
|
38
|
+
flex-direction: row-reverse;
|
39
|
+
}
|
40
|
+
}
|
48
41
|
|
49
|
-
|
50
|
-
|
51
|
-
}
|
42
|
+
&[class*=_orientation_column] {
|
43
|
+
flex-direction: column;
|
52
44
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
justify-content: flex-start;
|
58
|
-
}
|
45
|
+
&[class*=_reverse] {
|
46
|
+
flex-direction: column-reverse;
|
47
|
+
}
|
48
|
+
}
|
59
49
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
50
|
+
// Alignment: Justify Content
|
51
|
+
&[class*=justify_content_left],
|
52
|
+
&[class*=justify_content_top],
|
53
|
+
&[class*=justify_content_start] {
|
54
|
+
justify-content: flex-start;
|
55
|
+
&[class*=_reverse] {
|
56
|
+
justify-content: flex-end;
|
57
|
+
}
|
58
|
+
}
|
65
59
|
|
66
|
-
|
67
|
-
|
68
|
-
|
60
|
+
&[class*=justify_content_right],
|
61
|
+
&[class*=justify_content_bottom],
|
62
|
+
&[class*=justify_content_end] {
|
63
|
+
justify-content: flex-end;
|
64
|
+
&[class*=_reverse] {
|
65
|
+
justify-content: flex-start;
|
66
|
+
}
|
67
|
+
}
|
69
68
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
.pb_flex_kit_justify_content_start.pb_flex_kit_reverse {
|
74
|
-
justify-content: flex-end;
|
75
|
-
}
|
69
|
+
&[class*=justify_content_center] {
|
70
|
+
justify-content: center;
|
71
|
+
}
|
76
72
|
|
77
|
-
.pb_flex_kit_justify_content_right.pb_flex_kit_reverse,
|
78
|
-
.pb_flex_kit_justify_content_bottom.pb_flex_kit_reverse,
|
79
|
-
.pb_flex_kit_justify_content_end.pb_flex_kit_reverse {
|
80
|
-
justify-content: flex-start;
|
81
|
-
}
|
82
73
|
|
83
|
-
// Align Items
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
}
|
74
|
+
// Alignment: Align Items
|
75
|
+
&[class*=align_items_left],
|
76
|
+
&[class*=align_items_top],
|
77
|
+
&[class*=align_items_start] {
|
78
|
+
align-items: flex-start;
|
79
|
+
}
|
89
80
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
}
|
81
|
+
&[class*=align_items_right],
|
82
|
+
&[class*=align_items_bottom],
|
83
|
+
&[class*=align_items_end] {
|
84
|
+
align-items: flex-end;
|
85
|
+
}
|
95
86
|
|
96
|
-
|
97
|
-
|
98
|
-
}
|
87
|
+
&[class*=align_items_center] {
|
88
|
+
align-items: center;
|
89
|
+
}
|
99
90
|
|
100
|
-
|
101
|
-
|
102
|
-
}
|
91
|
+
&[class*=align_items_stretch] {
|
92
|
+
align-items: stretch;
|
93
|
+
}
|
103
94
|
|
104
|
-
|
105
|
-
|
106
|
-
}
|
95
|
+
&[class*=align_items_baseline] {
|
96
|
+
align-items: baseline;
|
97
|
+
}
|
107
98
|
|
108
|
-
// Align Self
|
109
|
-
|
110
|
-
|
111
|
-
}
|
99
|
+
// Alignment: Align Self - Rails & React
|
100
|
+
&[class*=align_self_start] {
|
101
|
+
align-self: flex-start;
|
102
|
+
}
|
103
|
+
|
104
|
+
&[class*=align_self_end] {
|
105
|
+
align-self: flex-end;
|
106
|
+
}
|
107
|
+
|
108
|
+
&[class*=align_self_center] {
|
109
|
+
align-self: center;
|
110
|
+
}
|
111
|
+
|
112
|
+
&[class*=align_self_stretch] {
|
113
|
+
align-self: stretch;
|
114
|
+
}
|
112
115
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
+
// Spacing
|
117
|
+
&[class*=spacing_around],
|
118
|
+
&[class*=justify_content_around] {
|
119
|
+
justify-content: space-around;
|
120
|
+
}
|
116
121
|
|
117
|
-
|
118
|
-
|
119
|
-
|
122
|
+
&[class*=spacing_between],
|
123
|
+
&[class*=justify_content_between] {
|
124
|
+
justify-content: space-between;
|
125
|
+
}
|
120
126
|
|
121
|
-
|
122
|
-
|
123
|
-
|
127
|
+
&[class*=spacing_evenly],
|
128
|
+
&[class*=justify_content_evenly] {
|
129
|
+
justify-content: space-evenly;
|
130
|
+
}
|
124
131
|
|
125
|
-
//
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
}
|
132
|
+
//Gap
|
133
|
+
@each $gapType, $gapValue in $gapTypes{
|
134
|
+
@each $sizeName, $sizeValue in $gapSpaces {
|
135
|
+
&[class*=_#{$gapType}_#{$sizeName}]{
|
136
|
+
#{$gapValue}: $sizeValue;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
130
140
|
|
131
|
-
.pb_flex_kit_spacing_between,
|
132
|
-
.pb_flex_kit_justify_content_between {
|
133
|
-
justify-content: space-between;
|
134
|
-
}
|
135
141
|
|
136
|
-
.pb_flex_kit_spacing_evenly,
|
137
|
-
.pb_flex_kit_justify_content_evenly {
|
138
|
-
justify-content: space-evenly;
|
139
142
|
}
|
140
|
-
|
141
|
-
// Gap utility classes
|
142
|
-
@each $gapType, $gapValue in $gapTypes {
|
143
|
-
@each $sizeName, $sizeValue in $gapSpaces {
|
144
|
-
.pb_flex_kit_#{$gapType}_#{$sizeName} {
|
145
|
-
#{$gapValue}: $sizeValue;
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
@@ -50,24 +50,18 @@ const Flex = (props: FlexProps): React.ReactElement => {
|
|
50
50
|
} = props
|
51
51
|
|
52
52
|
const orientationClass =
|
53
|
-
orientation !== undefined ? `
|
53
|
+
orientation !== undefined ? `orientation_${orientation}` : ''
|
54
54
|
const justifyClass =
|
55
|
-
justify !== 'none' ? `
|
56
|
-
const alignClass = align !== 'none' ? `
|
57
|
-
const inlineClass = inline === true ? '
|
58
|
-
const spacingClass = spacing !== undefined ? `
|
59
|
-
const gapClass = gap !== 'none' && typeof gap === '
|
60
|
-
const rowGapClass = rowGap !== 'none' && typeof rowGap === '
|
61
|
-
const columnGapClass = columnGap !== 'none' && typeof columnGap === '
|
62
|
-
|
63
|
-
|
64
|
-
const
|
65
|
-
const responsiveRowGapClass = (rowGap !== 'none' && typeof rowGap === 'object' && rowGap !== null && !Array.isArray(rowGap)) ? 'pb_flex_kit_rowGap_responsive' : ''
|
66
|
-
const responsiveColumnGapClass = (columnGap !== 'none' && typeof columnGap === 'object' && columnGap !== null && !Array.isArray(columnGap)) ? 'pb_flex_kit_columnGap_responsive' : ''
|
67
|
-
|
68
|
-
const wrapClass = wrap === true ? 'pb_flex_kit_wrap' : ''
|
69
|
-
const reverseClass = reverse === true ? 'pb_flex_kit_reverse' : ''
|
70
|
-
const alignSelfClass = alignSelf !== 'none' ? `pb_flex_kit_align_self_${alignSelf}` : ''
|
55
|
+
justify !== 'none' ? `justify_content_${justify}` : `justify_content_${horizontal}`
|
56
|
+
const alignClass = align !== 'none' ? `align_items_${align}` : `align_items_${vertical}`
|
57
|
+
const inlineClass = inline === true ? 'inline' : ''
|
58
|
+
const spacingClass = spacing !== undefined ? `spacing_${spacing}` : ''
|
59
|
+
const gapClass = (gap !== 'none' && typeof gap === 'object') ? `gap_${gap}` : ''
|
60
|
+
const rowGapClass = (rowGap !== 'none' && typeof rowGap === 'object') ? `rowGap_${rowGap}` : ''
|
61
|
+
const columnGapClass = (columnGap !== 'none' && typeof columnGap === 'object') ? `columnGap_${columnGap}` : ''
|
62
|
+
const wrapClass = wrap === true ? 'wrap' : ''
|
63
|
+
const reverseClass = reverse === true ? 'reverse' : ''
|
64
|
+
const alignSelfClass = alignSelf !== 'none' ? `align_self_${alignSelf}` : ''
|
71
65
|
const dataProps = buildDataProps(data)
|
72
66
|
const htmlProps = buildHtmlProps(htmlOptions)
|
73
67
|
const dynamicInlineProps = globalInlineProps(props)
|
@@ -76,21 +70,20 @@ const Flex = (props: FlexProps): React.ReactElement => {
|
|
76
70
|
return (
|
77
71
|
<div
|
78
72
|
className={classnames(
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
alignSelfClass,
|
73
|
+
buildCss(
|
74
|
+
'pb_flex_kit',
|
75
|
+
orientationClass,
|
76
|
+
justifyClass,
|
77
|
+
alignClass,
|
78
|
+
inlineClass,
|
79
|
+
reverseClass,
|
80
|
+
wrapClass,
|
81
|
+
spacingClass,
|
82
|
+
gapClass,
|
83
|
+
rowGapClass,
|
84
|
+
columnGapClass,
|
85
|
+
alignSelfClass
|
86
|
+
),
|
94
87
|
globalProps(props),
|
95
88
|
className
|
96
89
|
)}
|
@@ -1,147 +1,52 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
[class^=pb_flex_item_kit] {
|
2
|
+
&[class*=_fixed_size] {
|
3
|
+
flex-grow: 0;
|
4
|
+
flex-shrink: 0;
|
5
|
+
}
|
6
|
+
|
7
|
+
&[class*=_grow] {
|
8
|
+
flex-grow: 1;
|
9
|
+
}
|
10
|
+
|
11
|
+
&[class*=_shrink] {
|
12
|
+
flex-shrink: 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Display Flex - Rails & React
|
16
|
+
&[class*=display_flex] {
|
17
|
+
display: flex;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Alignment: Align Self - Rails & React
|
21
|
+
&[class*=align_self_start] {
|
22
|
+
align-self: flex-start;
|
23
|
+
}
|
24
|
+
|
25
|
+
&[class*=align_self_end] {
|
26
|
+
align-self: flex-end;
|
27
|
+
}
|
28
|
+
|
29
|
+
&[class*=align_self_center] {
|
30
|
+
align-self: center;
|
31
|
+
}
|
32
|
+
|
33
|
+
&[class*=align_self_stretch] {
|
34
|
+
align-self: stretch;
|
35
|
+
}
|
36
|
+
|
37
|
+
//Order Items
|
38
|
+
@for $i from 0 through 12 {
|
39
|
+
&[class*=order_#{$i}]{
|
40
|
+
order: $i;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
&[class*=order_first]{
|
44
|
+
order: -1;
|
45
|
+
}
|
46
|
+
|
47
|
+
@for $i from 0 through 12 {
|
48
|
+
&[class*=_flex_#{$i}]{
|
49
|
+
flex: $i;
|
50
|
+
}
|
51
|
+
}
|
5
52
|
}
|
6
|
-
|
7
|
-
// Grow
|
8
|
-
.pb_flex_item_kit_grow {
|
9
|
-
flex-grow: 1;
|
10
|
-
}
|
11
|
-
|
12
|
-
// Shrink
|
13
|
-
.pb_flex_item_kit_shrink {
|
14
|
-
flex-shrink: 1;
|
15
|
-
}
|
16
|
-
|
17
|
-
// Display Flex
|
18
|
-
.pb_flex_item_kit_display_flex {
|
19
|
-
display: flex;
|
20
|
-
}
|
21
|
-
|
22
|
-
// Align Self
|
23
|
-
.pb_flex_item_kit_align_self_start {
|
24
|
-
align-self: flex-start;
|
25
|
-
}
|
26
|
-
|
27
|
-
.pb_flex_item_kit_align_self_end {
|
28
|
-
align-self: flex-end;
|
29
|
-
}
|
30
|
-
|
31
|
-
.pb_flex_item_kit_align_self_center {
|
32
|
-
align-self: center;
|
33
|
-
}
|
34
|
-
|
35
|
-
.pb_flex_item_kit_align_self_stretch {
|
36
|
-
align-self: stretch;
|
37
|
-
}
|
38
|
-
|
39
|
-
// Order classes
|
40
|
-
.pb_flex_item_kit_order_0 {
|
41
|
-
order: 0;
|
42
|
-
}
|
43
|
-
|
44
|
-
.pb_flex_item_kit_order_1 {
|
45
|
-
order: 1;
|
46
|
-
}
|
47
|
-
|
48
|
-
.pb_flex_item_kit_order_2 {
|
49
|
-
order: 2;
|
50
|
-
}
|
51
|
-
|
52
|
-
.pb_flex_item_kit_order_3 {
|
53
|
-
order: 3;
|
54
|
-
}
|
55
|
-
|
56
|
-
.pb_flex_item_kit_order_4 {
|
57
|
-
order: 4;
|
58
|
-
}
|
59
|
-
|
60
|
-
.pb_flex_item_kit_order_5 {
|
61
|
-
order: 5;
|
62
|
-
}
|
63
|
-
|
64
|
-
.pb_flex_item_kit_order_6 {
|
65
|
-
order: 6;
|
66
|
-
}
|
67
|
-
|
68
|
-
.pb_flex_item_kit_order_7 {
|
69
|
-
order: 7;
|
70
|
-
}
|
71
|
-
|
72
|
-
.pb_flex_item_kit_order_8 {
|
73
|
-
order: 8;
|
74
|
-
}
|
75
|
-
|
76
|
-
.pb_flex_item_kit_order_9 {
|
77
|
-
order: 9;
|
78
|
-
}
|
79
|
-
|
80
|
-
.pb_flex_item_kit_order_10 {
|
81
|
-
order: 10;
|
82
|
-
}
|
83
|
-
|
84
|
-
.pb_flex_item_kit_order_11 {
|
85
|
-
order: 11;
|
86
|
-
}
|
87
|
-
|
88
|
-
.pb_flex_item_kit_order_12 {
|
89
|
-
order: 12;
|
90
|
-
}
|
91
|
-
|
92
|
-
.pb_flex_item_kit_order_first {
|
93
|
-
order: -1;
|
94
|
-
}
|
95
|
-
|
96
|
-
// Flex values
|
97
|
-
.pb_flex_item_kit_flex_0 {
|
98
|
-
flex: 0;
|
99
|
-
}
|
100
|
-
|
101
|
-
.pb_flex_item_kit_flex_1 {
|
102
|
-
flex: 1;
|
103
|
-
}
|
104
|
-
|
105
|
-
.pb_flex_item_kit_flex_2 {
|
106
|
-
flex: 2;
|
107
|
-
}
|
108
|
-
|
109
|
-
.pb_flex_item_kit_flex_3 {
|
110
|
-
flex: 3;
|
111
|
-
}
|
112
|
-
|
113
|
-
.pb_flex_item_kit_flex_4 {
|
114
|
-
flex: 4;
|
115
|
-
}
|
116
|
-
|
117
|
-
.pb_flex_item_kit_flex_5 {
|
118
|
-
flex: 5;
|
119
|
-
}
|
120
|
-
|
121
|
-
.pb_flex_item_kit_flex_6 {
|
122
|
-
flex: 6;
|
123
|
-
}
|
124
|
-
|
125
|
-
.pb_flex_item_kit_flex_7 {
|
126
|
-
flex: 7;
|
127
|
-
}
|
128
|
-
|
129
|
-
.pb_flex_item_kit_flex_8 {
|
130
|
-
flex: 8;
|
131
|
-
}
|
132
|
-
|
133
|
-
.pb_flex_item_kit_flex_9 {
|
134
|
-
flex: 9;
|
135
|
-
}
|
136
|
-
|
137
|
-
.pb_flex_item_kit_flex_10 {
|
138
|
-
flex: 10;
|
139
|
-
}
|
140
|
-
|
141
|
-
.pb_flex_item_kit_flex_11 {
|
142
|
-
flex: 11;
|
143
|
-
}
|
144
|
-
|
145
|
-
.pb_flex_item_kit_flex_12 {
|
146
|
-
flex: 12;
|
147
|
-
}
|
@@ -9,8 +9,7 @@ type FlexItemPropTypes = {
|
|
9
9
|
htmlOptions?: { [key: string]: string | number | boolean | (() => void) },
|
10
10
|
shrink?: boolean,
|
11
11
|
className?: string,
|
12
|
-
|
13
|
-
order?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'first' | 'none',
|
12
|
+
order?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'first' | 'none',
|
14
13
|
alignSelf?: "start" | "end" | "center" | "stretch" | null,
|
15
14
|
displayFlex?: boolean
|
16
15
|
} & GlobalProps
|
@@ -28,14 +27,14 @@ const FlexItem = (props: FlexItemPropTypes): React.ReactElement => {
|
|
28
27
|
alignSelf,
|
29
28
|
displayFlex
|
30
29
|
} = props
|
31
|
-
const growClass = grow === true ? '
|
32
|
-
const displayFlexClass = displayFlex === true ?
|
33
|
-
const flexClass = flex !== 'none' ? `
|
34
|
-
const shrinkClass = shrink === true ? '
|
35
|
-
const alignSelfClass = alignSelf ? `
|
30
|
+
const growClass = grow === true ? 'grow' : ''
|
31
|
+
const displayFlexClass = displayFlex === true ? `display_flex_${displayFlex}` : ''
|
32
|
+
const flexClass = flex !== 'none' ? `flex_${flex}` : ''
|
33
|
+
const shrinkClass = shrink === true ? 'shrink' : ''
|
34
|
+
const alignSelfClass = alignSelf ? `align_self_${alignSelf}` : ''
|
36
35
|
const fixedStyle =
|
37
36
|
fixedSize !== undefined ? { flexBasis: `${fixedSize}` } : null
|
38
|
-
const orderClass = order !== 'none' ? `
|
37
|
+
const orderClass = order !== 'none' ? `order_${order}` : null
|
39
38
|
const dynamicInlineProps = globalInlineProps(props)
|
40
39
|
const combinedStyles = {
|
41
40
|
...fixedStyle,
|
@@ -48,17 +47,7 @@ const FlexItem = (props: FlexItemPropTypes): React.ReactElement => {
|
|
48
47
|
return (
|
49
48
|
<div
|
50
49
|
{...htmlProps}
|
51
|
-
className={classnames(
|
52
|
-
'pb_flex_item_kit',
|
53
|
-
growClass,
|
54
|
-
shrinkClass,
|
55
|
-
flexClass,
|
56
|
-
displayFlexClass,
|
57
|
-
orderClass,
|
58
|
-
alignSelfClass,
|
59
|
-
globalProps(props),
|
60
|
-
className
|
61
|
-
)}
|
50
|
+
className={classnames(buildCss('pb_flex_item_kit', growClass, shrinkClass, flexClass, displayFlexClass), orderClass, alignSelfClass, globalProps(props), className)}
|
62
51
|
style={combinedStyles}
|
63
52
|
>
|
64
53
|
{children}
|