playbook_ui 14.25.0.pre.alpha.testingcss9700 → 14.25.0.pre.alpha.testingcss9713
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 +0 -1
- 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 +60 -65
- data/app/pb_kits/playbook/pb_background/_background.scss +3 -3
- data/app/pb_kits/playbook/pb_badge/_badge.scss +30 -32
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.scss +1 -1
- data/app/pb_kits/playbook/pb_button/_button.scss +13 -13
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +19 -19
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +15 -15
- data/app/pb_kits/playbook/pb_caption/_caption.scss +1 -1
- data/app/pb_kits/playbook/pb_card/_card.scss +79 -68
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +4 -4
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +1 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +5 -5
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +3 -3
- data/app/pb_kits/playbook/pb_currency/_currency.scss +30 -30
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss +1 -1
- data/app/pb_kits/playbook/pb_date/_date.scss +5 -5
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +19 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +1 -0
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +2 -2
- 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 -5
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +13 -13
- data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.scss +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.scss +13 -13
- data/app/pb_kits/playbook/pb_date_time/_date_time.scss +6 -6
- data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.scss +6 -6
- data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.scss +7 -7
- data/app/pb_kits/playbook/pb_detail/_detail.scss +2 -2
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +61 -252
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.scss +3 -3
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -1
- data/app/pb_kits/playbook/pb_filter/_filter.scss +7 -7
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +2 -2
- data/app/pb_kits/playbook/pb_flex/_flex.scss +106 -100
- data/app/pb_kits/playbook/pb_flex/_flex.tsx +38 -28
- data/app/pb_kits/playbook/pb_flex/_flex_item.scss +146 -51
- data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +19 -8
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb +12 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx +26 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md +11 -0
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md +11 -0
- data/app/pb_kits/playbook/pb_flex/flex.rb +73 -39
- data/app/pb_kits/playbook/pb_flex/flex_item.rb +51 -6
- data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +47 -47
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +5 -5
- 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_icon/_icon.scss +4 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +2 -2
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.scss +15 -15
- data/app/pb_kits/playbook/pb_icon_value/_icon_value.scss +6 -6
- data/app/pb_kits/playbook/pb_image/_image.scss +1 -1
- 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 -2
- data/app/pb_kits/playbook/pb_layout/_layout.scss +330 -305
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +14 -11
- data/app/pb_kits/playbook/pb_layout/body.rb +1 -1
- data/app/pb_kits/playbook/pb_layout/footer.rb +1 -1
- data/app/pb_kits/playbook/pb_layout/header.rb +1 -1
- data/app/pb_kits/playbook/pb_layout/item.rb +1 -7
- data/app/pb_kits/playbook/pb_layout/layout.rb +16 -25
- data/app/pb_kits/playbook/pb_layout/layout.test.js +3 -3
- data/app/pb_kits/playbook/pb_layout/sidebar.rb +1 -1
- data/app/pb_kits/playbook/pb_legend/_legend.scss +1 -1
- data/app/pb_kits/playbook/pb_link/_link.scss +4 -4
- data/app/pb_kits/playbook/pb_list/_list.scss +8 -8
- data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.scss +4 -4
- data/app/pb_kits/playbook/pb_message/_message.scss +4 -4
- data/app/pb_kits/playbook/pb_message/_message_mixins.scss +2 -2
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +2 -2
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +2 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +9 -9
- data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +8 -8
- data/app/pb_kits/playbook/pb_online_status/_online_status.scss +2 -2
- data/app/pb_kits/playbook/pb_overlay/_overlay.scss +2 -2
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.scss +1 -1
- data/app/pb_kits/playbook/pb_person/_person.scss +1 -1
- data/app/pb_kits/playbook/pb_pill/_pill.scss +3 -3
- data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.scss +7 -7
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +10 -10
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +36 -36
- 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 +12 -12
- data/app/pb_kits/playbook/pb_select/_select.scss +3 -3
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.scss +7 -7
- data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +2 -2
- data/app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss +5 -5
- data/app/pb_kits/playbook/pb_source/_source.scss +7 -7
- data/app/pb_kits/playbook/pb_star_rating/_star_rating.scss +1 -1
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_alignment.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_content.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_hover.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_outer_padding.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_reset.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +12 -12
- data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_striped.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_structure.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +2 -2
- data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +4 -4
- data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +1 -1
- data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +15 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +3 -3
- data/app/pb_kits/playbook/pb_time/_time.scss +5 -5
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +13 -13
- data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.scss +3 -3
- data/app/pb_kits/playbook/pb_timeline/_timeline.scss +41 -41
- data/app/pb_kits/playbook/pb_timestamp/_timestamp.scss +4 -4
- data/app/pb_kits/playbook/pb_title/_title.scss +14 -14
- data/app/pb_kits/playbook/pb_title_count/_title_count.scss +3 -3
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.scss +7 -7
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.scss +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +10 -10
- data/app/pb_kits/playbook/pb_user/_user.scss +13 -13
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.scss +1 -1
- data/app/pb_kits/playbook/utilities/_gap.scss +12 -24
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +2 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +28 -4
- data/dist/chunks/_line_graph-0Y0wuiB9.js +1 -0
- data/dist/chunks/_typeahead-B2gV75O0.js +6 -0
- data/dist/chunks/_weekday_stacked-Dblcf2V8.js +37 -0
- data/dist/chunks/lazysizes-B7xYodB-.js +1 -0
- data/dist/chunks/lib-CY5ZPzic.js +29 -0
- data/dist/chunks/pb_form_validation-D3b0JKHH.js +1 -0
- data/dist/chunks/vendor.js +1 -11
- data/dist/menu.yml +0 -6
- data/dist/playbook-doc.js +3 -67243
- data/dist/playbook-rails-react-bindings.js +1 -112
- data/dist/playbook-rails.js +1 -2464
- data/dist/playbook.css +2 -92354
- data/dist/reset.css +1 -89
- data/lib/playbook/classnames.rb +2 -0
- data/lib/playbook/spacing.rb +53 -1
- data/lib/playbook/version.rb +1 -1
- metadata +10 -38
- data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +0 -25
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -381
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +0 -231
- data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +0 -3
- data/app/pb_kits/playbook/pb_drawer/context.ts +0 -11
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +0 -8
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +0 -41
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +0 -33
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -78
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +0 -3
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -26
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -20
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -59
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +0 -24
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +0 -61
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +0 -24
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +0 -21
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -54
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +0 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +0 -49
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -99
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -20
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -7
- data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +0 -20
- data/app/pb_kits/playbook/pb_drawer/drawer.rb +0 -56
- data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +0 -81
- data/app/pb_kits/playbook/pb_drawer/hooks/useBreakpoint.tsx +0 -60
- data/app/pb_kits/playbook/pb_drawer/hooks/useDrawerAnimation.tsx +0 -21
- data/app/pb_kits/playbook/pb_drawer/index.js +0 -257
- data/app/pb_kits/playbook/pb_flex/docs/_flex_gap.md +0 -9
- data/dist/chunks/_line_graph-DPTwfQR-.js +0 -544
- data/dist/chunks/_typeahead-CEqlHw0H.js +0 -30978
- data/dist/chunks/_weekday_stacked-D3dG14OB.js +0 -20894
- data/dist/chunks/lazysizes-BUUj27EF.js +0 -611
- data/dist/chunks/lib-CIetbXpr.js +0 -9609
- data/dist/chunks/pb_form_validation-D_g9rOE9.js +0 -60
data/dist/reset.css
CHANGED
@@ -1,89 +1 @@
|
|
1
|
-
|
2
|
-
Base colors should not be documented.
|
3
|
-
Only document color use.
|
4
|
-
|
5
|
-
Colors -----------------------------*/
|
6
|
-
/* Specialty Gradient -----------------*/
|
7
|
-
/* Interface colors -------------------*/
|
8
|
-
/* Main colors ------------------------*/
|
9
|
-
/*=====================================
|
10
|
-
|
11
|
-
Background colors ------------------*/
|
12
|
-
/* Card colors ------------------*/
|
13
|
-
/* Active colors ----------------------*/
|
14
|
-
/* Hover colors -----------------------*/
|
15
|
-
/* Focus colors -----------------------*/
|
16
|
-
/* Border colors ----------------------*/
|
17
|
-
/* Shadow colors ----------------------*/
|
18
|
-
/* Text colors ------------------------*/
|
19
|
-
/* Data colors ------------------------*/
|
20
|
-
/* Status colors ----------------------*/
|
21
|
-
/* Link colors ------------------------*/
|
22
|
-
/* Product colors ---------------------*/
|
23
|
-
/* Category colors ---------------------*/
|
24
|
-
/* CLEAN UP AND REMOVE */
|
25
|
-
/* Headings */
|
26
|
-
/* Standard Font Weights */
|
27
|
-
/* Non_Standard Font Weights */
|
28
|
-
/* Link Colors */
|
29
|
-
/*=====================================
|
30
|
-
Base colors should not be documented.
|
31
|
-
Only document color use.
|
32
|
-
|
33
|
-
Colors -----------------------------*/
|
34
|
-
/* Specialty Gradient -----------------*/
|
35
|
-
/* Interface colors -------------------*/
|
36
|
-
/* Main colors ------------------------*/
|
37
|
-
/*=====================================
|
38
|
-
|
39
|
-
Background colors ------------------*/
|
40
|
-
/* Card colors ------------------*/
|
41
|
-
/* Active colors ----------------------*/
|
42
|
-
/* Hover colors -----------------------*/
|
43
|
-
/* Focus colors -----------------------*/
|
44
|
-
/* Border colors ----------------------*/
|
45
|
-
/* Shadow colors ----------------------*/
|
46
|
-
/* Text colors ------------------------*/
|
47
|
-
/* Data colors ------------------------*/
|
48
|
-
/* Status colors ----------------------*/
|
49
|
-
/* Link colors ------------------------*/
|
50
|
-
/* Product colors ---------------------*/
|
51
|
-
/* Category colors ---------------------*/
|
52
|
-
* {
|
53
|
-
box-sizing: border-box;
|
54
|
-
margin: 0;
|
55
|
-
padding: 0;
|
56
|
-
}
|
57
|
-
*:before, *:after {
|
58
|
-
box-sizing: border-box;
|
59
|
-
}
|
60
|
-
|
61
|
-
html {
|
62
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
63
|
-
height: 100vh;
|
64
|
-
overflow-x: hidden;
|
65
|
-
}
|
66
|
-
|
67
|
-
body {
|
68
|
-
font-family: "Power Centra", "Helvetica Neue", Helvetica, Arial, sans_serif;
|
69
|
-
font-size: 15.5px;
|
70
|
-
line-height: 1.5;
|
71
|
-
background-color: #F3F7FB;
|
72
|
-
height: 100%;
|
73
|
-
letter-spacing: 0.003em;
|
74
|
-
font-weight: 400;
|
75
|
-
font-style: normal;
|
76
|
-
text-rendering: optimizeLegibility;
|
77
|
-
-moz-font-feature-settings: "liga" on;
|
78
|
-
color: #242B42;
|
79
|
-
margin: 0 !important;
|
80
|
-
padding: 0 !important;
|
81
|
-
box-sizing: border-box;
|
82
|
-
min-height: 100vh;
|
83
|
-
padding: 50px;
|
84
|
-
}
|
85
|
-
|
86
|
-
a {
|
87
|
-
text-decoration: none;
|
88
|
-
color: #0056CF;
|
89
|
-
}
|
1
|
+
*{box-sizing:border-box;margin:0;padding:0}*:before,*:after{box-sizing:border-box}html{-webkit-tap-highlight-color:rgba(0,0,0,0);height:100vh;overflow-x:hidden}body{font-family:Power Centra,Helvetica Neue,Helvetica,Arial,sans_serif;font-size:15.5px;line-height:1.5;background-color:#f3f7fb;height:100%;letter-spacing:.003em;font-weight:400;font-style:normal;text-rendering:optimizeLegibility;-moz-font-feature-settings:"liga" on;color:#242b42;margin:0!important;padding:0!important;box-sizing:border-box;min-height:100vh;padding:50px}a{text-decoration:none;color:#0056cf}
|
data/lib/playbook/classnames.rb
CHANGED
data/lib/playbook/spacing.rb
CHANGED
@@ -4,6 +4,8 @@ module Playbook
|
|
4
4
|
module Spacing
|
5
5
|
def self.included(base)
|
6
6
|
base.prop :gap
|
7
|
+
base.prop :column_gap
|
8
|
+
base.prop :row_gap
|
7
9
|
base.prop :margin
|
8
10
|
base.prop :margin_bottom
|
9
11
|
base.prop :margin_left
|
@@ -63,6 +65,18 @@ module Playbook
|
|
63
65
|
}
|
64
66
|
end
|
65
67
|
|
68
|
+
def column_gap_options
|
69
|
+
{
|
70
|
+
column_gap: "column_gap",
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
def row_gap_options
|
75
|
+
{
|
76
|
+
row_gap: "row_gap",
|
77
|
+
}
|
78
|
+
end
|
79
|
+
|
66
80
|
def spacing_options
|
67
81
|
{
|
68
82
|
margin: "m",
|
@@ -164,7 +178,45 @@ module Playbook
|
|
164
178
|
|
165
179
|
selected_gap_props.map do |k|
|
166
180
|
gap_value = send(k)
|
167
|
-
|
181
|
+
if gap_value.is_a?(Hash)
|
182
|
+
gap_value.map do |media_size, gap_spacing_value|
|
183
|
+
"gap_#{media_size}_#{gap_spacing_value.underscore}" if gap_values.include?(gap_spacing_value.to_s)
|
184
|
+
end
|
185
|
+
elsif gap_values.include?(gap_value.to_s)
|
186
|
+
"gap_#{gap_value.underscore}"
|
187
|
+
end
|
188
|
+
end.compact.join(" ")
|
189
|
+
end
|
190
|
+
|
191
|
+
def column_gap_props
|
192
|
+
selected_column_gap_props = column_gap_options.keys.select { |sk| try(sk) }
|
193
|
+
return nil unless selected_column_gap_props.present?
|
194
|
+
|
195
|
+
selected_column_gap_props.map do |k|
|
196
|
+
column_gap_value = send(k)
|
197
|
+
if column_gap_value.is_a?(Hash)
|
198
|
+
column_gap_value.map do |media_size, column_gap_spacing_value|
|
199
|
+
"column_gap_#{media_size}_#{column_gap_spacing_value.underscore}" if gap_values.include?(column_gap_spacing_value.to_s)
|
200
|
+
end
|
201
|
+
elsif gap_values.include?(column_gap_value.to_s)
|
202
|
+
"column_gap_#{column_gap_value.underscore}"
|
203
|
+
end
|
204
|
+
end.compact.join(" ")
|
205
|
+
end
|
206
|
+
|
207
|
+
def row_gap_props
|
208
|
+
selected_row_gap_props = row_gap_options.keys.select { |sk| try(sk) }
|
209
|
+
return nil unless selected_row_gap_props.present?
|
210
|
+
|
211
|
+
selected_row_gap_props.map do |k|
|
212
|
+
row_gap_value = send(k)
|
213
|
+
if row_gap_value.is_a?(Hash)
|
214
|
+
row_gap_value.map do |media_size, row_gap_spacing_value|
|
215
|
+
"row_gap_#{media_size}_#{row_gap_spacing_value.underscore}" if gap_values.include?(row_gap_spacing_value.to_s)
|
216
|
+
end
|
217
|
+
elsif gap_values.include?(row_gap_value.to_s)
|
218
|
+
"row_gap_#{row_gap_value.underscore}"
|
219
|
+
end
|
168
220
|
end.compact.join(" ")
|
169
221
|
end
|
170
222
|
end
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.25.0.pre.alpha.
|
4
|
+
version: 14.25.0.pre.alpha.testingcss9713
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-08-
|
12
|
+
date: 2025-08-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1336,35 +1336,6 @@ files:
|
|
1336
1336
|
- app/pb_kits/playbook/pb_draggable/index.js
|
1337
1337
|
- app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx
|
1338
1338
|
- app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx
|
1339
|
-
- app/pb_kits/playbook/pb_drawer/_close_icon.tsx
|
1340
|
-
- app/pb_kits/playbook/pb_drawer/_drawer.scss
|
1341
|
-
- app/pb_kits/playbook/pb_drawer/_drawer.tsx
|
1342
|
-
- app/pb_kits/playbook/pb_drawer/_drawer_context.tsx
|
1343
|
-
- app/pb_kits/playbook/pb_drawer/context.ts
|
1344
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb
|
1345
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx
|
1346
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb
|
1347
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx
|
1348
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb
|
1349
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx
|
1350
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb
|
1351
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx
|
1352
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb
|
1353
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx
|
1354
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md
|
1355
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb
|
1356
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx
|
1357
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md
|
1358
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb
|
1359
|
-
- app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx
|
1360
|
-
- app/pb_kits/playbook/pb_drawer/docs/example.yml
|
1361
|
-
- app/pb_kits/playbook/pb_drawer/docs/index.js
|
1362
|
-
- app/pb_kits/playbook/pb_drawer/drawer.html.erb
|
1363
|
-
- app/pb_kits/playbook/pb_drawer/drawer.rb
|
1364
|
-
- app/pb_kits/playbook/pb_drawer/drawer.test.jsx
|
1365
|
-
- app/pb_kits/playbook/pb_drawer/hooks/useBreakpoint.tsx
|
1366
|
-
- app/pb_kits/playbook/pb_drawer/hooks/useDrawerAnimation.tsx
|
1367
|
-
- app/pb_kits/playbook/pb_drawer/index.js
|
1368
1339
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.scss
|
1369
1340
|
- app/pb_kits/playbook/pb_dropdown/_dropdown.tsx
|
1370
1341
|
- app/pb_kits/playbook/pb_dropdown/_dropdown_mixin.scss
|
@@ -1605,7 +1576,8 @@ files:
|
|
1605
1576
|
- app/pb_kits/playbook/pb_flex/docs/_flex_default.md
|
1606
1577
|
- app/pb_kits/playbook/pb_flex/docs/_flex_gap.html.erb
|
1607
1578
|
- app/pb_kits/playbook/pb_flex/docs/_flex_gap.jsx
|
1608
|
-
- app/pb_kits/playbook/pb_flex/docs/
|
1579
|
+
- app/pb_kits/playbook/pb_flex/docs/_flex_gap_rails.md
|
1580
|
+
- app/pb_kits/playbook/pb_flex/docs/_flex_gap_react.md
|
1609
1581
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.html.erb
|
1610
1582
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.jsx
|
1611
1583
|
- app/pb_kits/playbook/pb_flex/docs/_flex_inline.md
|
@@ -3647,12 +3619,12 @@ files:
|
|
3647
3619
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3648
3620
|
- app/pb_kits/playbook/utilities/text.ts
|
3649
3621
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3650
|
-
- dist/chunks/_line_graph-
|
3651
|
-
- dist/chunks/_typeahead-
|
3652
|
-
- dist/chunks/_weekday_stacked-
|
3653
|
-
- dist/chunks/lazysizes-
|
3654
|
-
- dist/chunks/lib-
|
3655
|
-
- dist/chunks/pb_form_validation-
|
3622
|
+
- dist/chunks/_line_graph-0Y0wuiB9.js
|
3623
|
+
- dist/chunks/_typeahead-B2gV75O0.js
|
3624
|
+
- dist/chunks/_weekday_stacked-Dblcf2V8.js
|
3625
|
+
- dist/chunks/lazysizes-B7xYodB-.js
|
3626
|
+
- dist/chunks/lib-CY5ZPzic.js
|
3627
|
+
- dist/chunks/pb_form_validation-D3b0JKHH.js
|
3656
3628
|
- dist/chunks/vendor.js
|
3657
3629
|
- dist/menu.yml
|
3658
3630
|
- dist/playbook-doc.js
|
@@ -1,25 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Icon from '../pb_icon/_icon'
|
3
|
-
|
4
|
-
import { getAllIcons } from "../utilities/icons/allicons"
|
5
|
-
|
6
|
-
type CloseIconProps = {
|
7
|
-
onClose: () => void,
|
8
|
-
}
|
9
|
-
|
10
|
-
export const CloseIcon = (props: CloseIconProps): React.ReactElement => {
|
11
|
-
const { onClose } = props
|
12
|
-
const timesIcon = getAllIcons()["times"]
|
13
|
-
return (
|
14
|
-
<div
|
15
|
-
className="pb_dialog_close_icon"
|
16
|
-
onClick={onClose}
|
17
|
-
>
|
18
|
-
<Icon
|
19
|
-
className="svg-inline--fa"
|
20
|
-
customIcon={timesIcon.icon as unknown as { [key: string]: SVGElement }}
|
21
|
-
fixedWidth
|
22
|
-
/>
|
23
|
-
</div>
|
24
|
-
)
|
25
|
-
}
|
@@ -1,381 +0,0 @@
|
|
1
|
-
@import "../tokens/positioning";
|
2
|
-
@import "../tokens/colors";
|
3
|
-
@import "../pb_card/card_mixin";
|
4
|
-
@import "../tokens/shadows";
|
5
|
-
@import "../tokens/border_radius";
|
6
|
-
@import "../tokens/spacing";
|
7
|
-
@import "../tokens/animation-curves";
|
8
|
-
@import "../tokens/positioning";
|
9
|
-
|
10
|
-
$gutter: $space_lg;
|
11
|
-
$xsmall: 64px;
|
12
|
-
$small: 200px;
|
13
|
-
$medium: 250px;
|
14
|
-
$large: 300px;
|
15
|
-
$xlarge: 365px;
|
16
|
-
$animation-duration: .25s;
|
17
|
-
$z-index: $z_7;
|
18
|
-
|
19
|
-
@keyframes modalFadeInLeft {
|
20
|
-
from {
|
21
|
-
transform: translateX(-100%);
|
22
|
-
}
|
23
|
-
to {
|
24
|
-
transform: translateX(0);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
@keyframes modalFadeOutLeft {
|
29
|
-
from {
|
30
|
-
transform: translateX(0);
|
31
|
-
}
|
32
|
-
to {
|
33
|
-
transform: translateX(-100%);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
@keyframes modalFadeInRight {
|
38
|
-
from {
|
39
|
-
transform: translateX(100%);
|
40
|
-
}
|
41
|
-
to {
|
42
|
-
transform: translateX(0);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
@keyframes modalFadeOutRight {
|
47
|
-
from {
|
48
|
-
transform: translateX(0);
|
49
|
-
}
|
50
|
-
to {
|
51
|
-
transform: translateX(100%);
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
@keyframes modalFadeIn {
|
56
|
-
from {
|
57
|
-
transform: translateY(-100%);
|
58
|
-
}
|
59
|
-
to {
|
60
|
-
transform: translateY(0);
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
@keyframes modalFadeOut {
|
65
|
-
from {
|
66
|
-
transform: translateY(0);
|
67
|
-
}
|
68
|
-
to {
|
69
|
-
transform: translateY(-100%);
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
@keyframes overlayFade {
|
74
|
-
from {
|
75
|
-
opacity: 0;
|
76
|
-
transform: translateY(0);
|
77
|
-
}
|
78
|
-
to {
|
79
|
-
opacity: 1;
|
80
|
-
transform: translateY(0);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
@keyframes overlayFadeOut {
|
85
|
-
from {
|
86
|
-
opacity: 1;
|
87
|
-
}
|
88
|
-
to {
|
89
|
-
opacity: 0;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
|
93
|
-
@keyframes modalFadeDownIn {
|
94
|
-
from {
|
95
|
-
transform: translateY(-100%);
|
96
|
-
}
|
97
|
-
to {
|
98
|
-
transform: translateY(0);
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
@keyframes modalFadeDownOut {
|
103
|
-
from {
|
104
|
-
transform: translateY(0);
|
105
|
-
}
|
106
|
-
to {
|
107
|
-
transform: translateY(-100%);
|
108
|
-
}
|
109
|
-
}
|
110
|
-
|
111
|
-
@keyframes modalFadeUpIn {
|
112
|
-
from {
|
113
|
-
transform: translateY(100%);
|
114
|
-
}
|
115
|
-
to {
|
116
|
-
transform: translateY(0);
|
117
|
-
}
|
118
|
-
}
|
119
|
-
|
120
|
-
@keyframes modalFadeUpOut {
|
121
|
-
from {
|
122
|
-
transform: translateY(0);
|
123
|
-
}
|
124
|
-
to {
|
125
|
-
transform: translateY(100%);
|
126
|
-
}
|
127
|
-
}
|
128
|
-
|
129
|
-
body.PBDrawer__Body--open {
|
130
|
-
transition: margin-left $animation-duration ease-in, margin-right $animation-duration ease-in;
|
131
|
-
}
|
132
|
-
|
133
|
-
body.PBDrawer__Body--close {
|
134
|
-
transition: margin-left $animation-duration ease-out, margin-right $animation-duration ease-out;
|
135
|
-
}
|
136
|
-
|
137
|
-
.pb_drawer_lg_left .pb_drawer {
|
138
|
-
transform: translateX(-100%);
|
139
|
-
}
|
140
|
-
|
141
|
-
.pb_drawer_lg_right .pb_drawer {
|
142
|
-
transform: translateX(100%);
|
143
|
-
}
|
144
|
-
|
145
|
-
.pb_drawer.pb_drawer_after_open {
|
146
|
-
pointer-events: auto;
|
147
|
-
transform: translate3d(0, 0, 0);
|
148
|
-
}
|
149
|
-
|
150
|
-
// Drawer Styles
|
151
|
-
.pb_drawer {
|
152
|
-
background-color: $white;
|
153
|
-
z-index: $z-index;
|
154
|
-
border: 0;
|
155
|
-
height: 100%;
|
156
|
-
overflow: auto;
|
157
|
-
animation-duration: $animation-duration;
|
158
|
-
outline: none;
|
159
|
-
|
160
|
-
&.pb_drawer_within_element_rails {
|
161
|
-
position: relative;
|
162
|
-
width: 100%;
|
163
|
-
display: block;
|
164
|
-
background-color: $white;
|
165
|
-
overflow: hidden;
|
166
|
-
|
167
|
-
// Use max-height for a smooth accordion-like animation
|
168
|
-
max-height: 0;
|
169
|
-
transition: max-height $animation-duration ease-in-out;
|
170
|
-
z-index: 1;
|
171
|
-
|
172
|
-
&.open {
|
173
|
-
max-height: 1000px;
|
174
|
-
}
|
175
|
-
|
176
|
-
&::before {
|
177
|
-
content: '';
|
178
|
-
position: absolute;
|
179
|
-
top: 0;
|
180
|
-
left: 0;
|
181
|
-
right: 0;
|
182
|
-
bottom: 0;
|
183
|
-
background-color: inherit;
|
184
|
-
z-index: -1;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
|
188
|
-
&.pb_drawer_within_element {
|
189
|
-
position: relative;
|
190
|
-
width: 100%;
|
191
|
-
display: block;
|
192
|
-
background-color: $white;
|
193
|
-
overflow: hidden;
|
194
|
-
transition: height $animation-duration ease-in-out;
|
195
|
-
height: var(--drawer-height);
|
196
|
-
z-index: 1;
|
197
|
-
|
198
|
-
&.pb_drawer_before_close {
|
199
|
-
height: 0;
|
200
|
-
}
|
201
|
-
|
202
|
-
&::before {
|
203
|
-
content: '';
|
204
|
-
position: absolute;
|
205
|
-
top: 0;
|
206
|
-
left: 0;
|
207
|
-
right: 0;
|
208
|
-
bottom: 0;
|
209
|
-
background-color: inherit;
|
210
|
-
z-index: -1;
|
211
|
-
}
|
212
|
-
}
|
213
|
-
|
214
|
-
.toggle-content.is-visible {
|
215
|
-
display: block;
|
216
|
-
height: auto;
|
217
|
-
}
|
218
|
-
|
219
|
-
.drawer {
|
220
|
-
position: sticky;
|
221
|
-
will-change: transform;
|
222
|
-
top: 0;
|
223
|
-
background-color: $white;
|
224
|
-
z-index: $z_9;
|
225
|
-
}
|
226
|
-
|
227
|
-
&[class*="_left"] {
|
228
|
-
animation-name: modalFadeInLeft;
|
229
|
-
}
|
230
|
-
|
231
|
-
&[class*="_left"][class*="_before_close"] {
|
232
|
-
animation-name: modalFadeOutLeft;
|
233
|
-
animation-duration: $animation-duration;
|
234
|
-
transform: translateX(-100%);
|
235
|
-
}
|
236
|
-
|
237
|
-
&[class*="_right"] {
|
238
|
-
animation-name: modalFadeInRight;
|
239
|
-
justify-content: flex-end;
|
240
|
-
}
|
241
|
-
|
242
|
-
&[class*="_right"][class*="_before_close"] {
|
243
|
-
animation-name: modalFadeOutRight;
|
244
|
-
animation-duration: $animation-duration;
|
245
|
-
transform: translateX(100%);
|
246
|
-
}
|
247
|
-
|
248
|
-
&[class*="_bottom"] {
|
249
|
-
animation: none;
|
250
|
-
transform: none;
|
251
|
-
}
|
252
|
-
|
253
|
-
&[class*="_bottom"][class*="_before_close"] {
|
254
|
-
animation: none;
|
255
|
-
transform: none;
|
256
|
-
}
|
257
|
-
|
258
|
-
&[class*="_top"] {
|
259
|
-
animation-name: modalFadeUpIn;
|
260
|
-
}
|
261
|
-
|
262
|
-
&[class*="_top"][class*="_before_close"] {
|
263
|
-
animation-name: modalFadeUpOut;
|
264
|
-
animation-duration: $animation-duration;
|
265
|
-
}
|
266
|
-
|
267
|
-
|
268
|
-
&[class*="_xs_"] {
|
269
|
-
width: $xsmall;
|
270
|
-
max-width: $xsmall;
|
271
|
-
}
|
272
|
-
|
273
|
-
&[class*="_sm_"] {
|
274
|
-
width: $small;
|
275
|
-
max-width: $small;
|
276
|
-
}
|
277
|
-
|
278
|
-
&[class*="_md_"] {
|
279
|
-
width: $medium;
|
280
|
-
max-width: $medium;
|
281
|
-
}
|
282
|
-
|
283
|
-
&[class*="_lg_"] {
|
284
|
-
width: $large;
|
285
|
-
max-width: $large;
|
286
|
-
}
|
287
|
-
|
288
|
-
&[class*="_xl_"] {
|
289
|
-
width: $xlarge;
|
290
|
-
max-width: $xlarge;
|
291
|
-
}
|
292
|
-
|
293
|
-
&[class*="_full_"] {
|
294
|
-
width: 100%;
|
295
|
-
max-width: 100%;
|
296
|
-
}
|
297
|
-
|
298
|
-
&.drawer_border-full {
|
299
|
-
box-shadow: none;
|
300
|
-
border: 2px solid #f3f7fb;
|
301
|
-
}
|
302
|
-
|
303
|
-
&.drawer_border-right {
|
304
|
-
border-right: 2px solid #f3f7fb;
|
305
|
-
}
|
306
|
-
|
307
|
-
&.drawer_border-left {
|
308
|
-
border-left: 2px solid #f3f7fb;
|
309
|
-
}
|
310
|
-
|
311
|
-
&.no-background {
|
312
|
-
background-color: transparent;
|
313
|
-
}
|
314
|
-
|
315
|
-
&_close_icon {
|
316
|
-
cursor: pointer;
|
317
|
-
}
|
318
|
-
|
319
|
-
&_overlay {
|
320
|
-
position: fixed;
|
321
|
-
top: 0;
|
322
|
-
left: 0;
|
323
|
-
right: 0;
|
324
|
-
bottom: 0;
|
325
|
-
display: flex;
|
326
|
-
background-color: rgba($bg_dark, $opacity_4);
|
327
|
-
z-index: $z-index;
|
328
|
-
animation: overlayFade $animation-duration ease-in-out forwards;
|
329
|
-
|
330
|
-
&[class*="_left"]{
|
331
|
-
justify-content: flex-start;
|
332
|
-
}
|
333
|
-
|
334
|
-
&[class*="_center"]{
|
335
|
-
justify-content: center;
|
336
|
-
}
|
337
|
-
|
338
|
-
&[class*="_right"]{
|
339
|
-
justify-content: flex-end;
|
340
|
-
}
|
341
|
-
|
342
|
-
&_before_close {
|
343
|
-
animation: overlayFadeOut $animation-duration ease-in-out forwards;
|
344
|
-
opacity: 0;
|
345
|
-
// height: 0;
|
346
|
-
}
|
347
|
-
}
|
348
|
-
|
349
|
-
&_no_overlay {
|
350
|
-
position: fixed;
|
351
|
-
top: 0;
|
352
|
-
left: 0;
|
353
|
-
right: 0;
|
354
|
-
bottom: 0;
|
355
|
-
display: flex;
|
356
|
-
z-index: $z-index;
|
357
|
-
opacity: 1;
|
358
|
-
pointer-events: none;
|
359
|
-
|
360
|
-
&[class*="_right"]{
|
361
|
-
justify-content: flex-end;
|
362
|
-
}
|
363
|
-
|
364
|
-
&[class*="_left"]{
|
365
|
-
justify-content: flex-start;
|
366
|
-
}
|
367
|
-
|
368
|
-
&[class*="_center"]{
|
369
|
-
justify-content: center;
|
370
|
-
}
|
371
|
-
|
372
|
-
&_before_close {
|
373
|
-
height: 0;
|
374
|
-
}
|
375
|
-
}
|
376
|
-
|
377
|
-
|
378
|
-
&.pb_drawer_before_close {
|
379
|
-
transform: translateX(-100%);
|
380
|
-
}
|
381
|
-
}
|