playbook_ui 10.23.0.pre.alpha2 → 10.23.0.pre.cachetest
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +0 -1
- data/app/pb_kits/playbook/index.js +3 -0
- data/app/pb_kits/playbook/pb_avatar/{_avatar.tsx → _avatar.jsx} +14 -13
- data/app/pb_kits/playbook/pb_avatar/_avatar.scss +2 -2
- data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
- data/app/pb_kits/playbook/pb_avatar/avatar.test.js +1 -1
- data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_background/_background.jsx +3 -8
- data/app/pb_kits/playbook/pb_background/_background.scss +8 -24
- data/app/pb_kits/playbook/pb_background/background.rb +6 -6
- data/app/pb_kits/playbook/pb_background/docs/_background_image.html.erb +2 -50
- data/app/pb_kits/playbook/pb_background/docs/_background_image.jsx +28 -71
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -5
- data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/_button.jsx +4 -8
- data/app/pb_kits/playbook/pb_button/_button.scss +1 -18
- data/app/pb_kits/playbook/pb_button/button.rb +3 -13
- data/app/pb_kits/playbook/pb_button/button.test.js +0 -13
- data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.html.erb +1 -1
- data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +1 -1
- data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -1
- data/app/pb_kits/playbook/pb_card/_card.jsx +1 -1
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -1
- data/app/pb_kits/playbook/pb_card/card.rb +0 -88
- data/app/pb_kits/playbook/pb_card/card_body.rb +1 -1
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +1 -1
- data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +0 -3
- data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +0 -1
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +1 -1
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.jsx +1 -1
- data/app/pb_kits/playbook/pb_currency/_currency.jsx +3 -24
- data/app/pb_kits/playbook/pb_currency/currency.rb +3 -12
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +1 -1
- data/app/pb_kits/playbook/pb_currency/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.jsx +1 -1
- data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +1 -1
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +10 -17
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/docs/_flex_align.jsx +1 -1
- data/app/pb_kits/playbook/pb_flex/flex_item.rb +24 -2
- data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +1 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -2
- data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -3
- data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -1
- data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon/_icon.jsx +1 -1
- data/app/pb_kits/playbook/pb_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +1 -1
- data/app/pb_kits/playbook/pb_image/{_image.tsx → _image.jsx} +15 -11
- data/app/pb_kits/playbook/pb_image/_image.scss +3 -3
- data/app/pb_kits/playbook/pb_image/docs/{_default_image.tsx → _default_image.jsx} +1 -1
- data/app/pb_kits/playbook/pb_image/docs/index.js +4 -4
- data/app/pb_kits/playbook/pb_image/image.rb +1 -1
- data/app/pb_kits/playbook/pb_image/image.test.js +1 -1
- data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -1
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +1 -1
- data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -5
- data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -1
- data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -1
- data/app/pb_kits/playbook/pb_list/_list.jsx +1 -1
- data/app/pb_kits/playbook/pb_list/_list_item.jsx +1 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +1 -1
- data/app/pb_kits/playbook/pb_online_status/{_online_status.tsx → _online_status.jsx} +6 -4
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +1 -2
- data/app/pb_kits/playbook/pb_pill/_pill.jsx +1 -1
- data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -3
- data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +7 -7
- data/app/pb_kits/playbook/pb_popover/index.js +9 -4
- data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -1
- data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +1 -1
- data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/_radio.jsx +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +93 -83
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +8 -15
- data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/_table_row.jsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +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.test.js +0 -14
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +0 -1
- data/app/pb_kits/playbook/pb_time/_time.jsx +1 -1
- data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
- data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.jsx +1 -1
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +1 -1
- data/app/pb_kits/playbook/plugins/pb_chart.js +4 -8
- data/app/pb_kits/playbook/types.js +4 -0
- data/app/pb_kits/playbook/utilities/globalProps.js +97 -0
- data/app/pb_kits/playbook/utilities/{props.ts → props.js} +7 -9
- data/lib/playbook/classnames.rb +0 -11
- data/lib/playbook/kit_base.rb +0 -22
- data/lib/playbook/version.rb +2 -2
- metadata +9 -42
- data/app/pb_kits/playbook/pb_background/docs/_background_image.md +0 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_form.html.erb +0 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +0 -14
- data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +0 -3
- data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -26
- data/app/pb_kits/playbook/pb_button/docs/_button_size.md +0 -1
- data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
- data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb +0 -27
- data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx +0 -44
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js +0 -215
- data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +0 -40
- data/app/pb_kits/playbook/utilities/_align_content.scss +0 -29
- data/app/pb_kits/playbook/utilities/_align_items.scss +0 -35
- data/app/pb_kits/playbook/utilities/_align_self.scss +0 -29
- data/app/pb_kits/playbook/utilities/_flex.scss +0 -15
- data/app/pb_kits/playbook/utilities/_flex_direction.scss +0 -19
- data/app/pb_kits/playbook/utilities/_flex_grow.scss +0 -9
- data/app/pb_kits/playbook/utilities/_flex_shrink.scss +0 -9
- data/app/pb_kits/playbook/utilities/_flex_wrap.scss +0 -14
- data/app/pb_kits/playbook/utilities/_flexbox.scss +0 -11
- data/app/pb_kits/playbook/utilities/_justify_content.scss +0 -23
- data/app/pb_kits/playbook/utilities/_justify_self.scss +0 -19
- data/app/pb_kits/playbook/utilities/_order.scss +0 -55
- data/app/pb_kits/playbook/utilities/globalProps.ts +0 -274
- data/lib/playbook/align_content.rb +0 -29
- data/lib/playbook/align_items.rb +0 -29
- data/lib/playbook/align_self.rb +0 -29
- data/lib/playbook/flex.rb +0 -29
- data/lib/playbook/flex_direction.rb +0 -29
- data/lib/playbook/flex_grow.rb +0 -29
- data/lib/playbook/flex_shrink.rb +0 -29
- data/lib/playbook/flex_wrap.rb +0 -29
- data/lib/playbook/justify_content.rb +0 -29
- data/lib/playbook/justify_self.rb +0 -29
- data/lib/playbook/order.rb +0 -29
data/lib/playbook/flex_wrap.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module FlexWrap
|
5
|
-
def self.included(base)
|
6
|
-
base.prop :flex_wrap
|
7
|
-
end
|
8
|
-
|
9
|
-
def flex_wrap_props
|
10
|
-
selected_props = flex_wrap_options.keys.select { |sk| try(sk) }
|
11
|
-
return nil unless selected_props.present?
|
12
|
-
|
13
|
-
selected_props.map do |k|
|
14
|
-
flex_wrap_value = send(k)
|
15
|
-
"flex_wrap_#{flex_wrap_value}" if flex_wrap_values.include? flex_wrap_value
|
16
|
-
end.compact.join(" ")
|
17
|
-
end
|
18
|
-
|
19
|
-
def flex_wrap_options
|
20
|
-
{
|
21
|
-
flex_wrap: "flex_wrap",
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
def flex_wrap_values
|
26
|
-
%w[wrap nowrap wrap_reverse]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module JustifyContent
|
5
|
-
def self.included(base)
|
6
|
-
base.prop :justify_content
|
7
|
-
end
|
8
|
-
|
9
|
-
def justify_content_props
|
10
|
-
selected_props = justify_content_options.keys.select { |sk| try(sk) }
|
11
|
-
return nil unless selected_props.present?
|
12
|
-
|
13
|
-
selected_props.map do |k|
|
14
|
-
justify_content_value = send(k)
|
15
|
-
"justify_content_#{justify_content_value}" if justify_content_values.include? justify_content_value
|
16
|
-
end.compact.join(" ")
|
17
|
-
end
|
18
|
-
|
19
|
-
def justify_content_options
|
20
|
-
{
|
21
|
-
justify_content: "justify_content",
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
def justify_content_values
|
26
|
-
%w[start end center space_between space_around space_evenly]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module JustifySelf
|
5
|
-
def self.included(base)
|
6
|
-
base.prop :justify_self
|
7
|
-
end
|
8
|
-
|
9
|
-
def justify_self_props
|
10
|
-
selected_props = justify_self_options.keys.select { |sk| try(sk) }
|
11
|
-
return nil unless selected_props.present?
|
12
|
-
|
13
|
-
selected_props.map do |k|
|
14
|
-
justify_self_value = send(k)
|
15
|
-
"justify_self_#{justify_self_value}" if justify_self_values.include? justify_self_value
|
16
|
-
end.compact.join(" ")
|
17
|
-
end
|
18
|
-
|
19
|
-
def justify_self_options
|
20
|
-
{
|
21
|
-
justify_self: "justify_self",
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
def justify_self_values
|
26
|
-
%w[auto start end center stretch]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
data/lib/playbook/order.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module Order
|
5
|
-
def self.included(base)
|
6
|
-
base.prop :order
|
7
|
-
end
|
8
|
-
|
9
|
-
def order_props
|
10
|
-
selected_props = order_options.keys.select { |sk| try(sk) }
|
11
|
-
return nil unless selected_props.present?
|
12
|
-
|
13
|
-
selected_props.map do |k|
|
14
|
-
order_value = send(k)
|
15
|
-
"order_#{order_value}" if order_values.include? order_value
|
16
|
-
end.compact.join(" ")
|
17
|
-
end
|
18
|
-
|
19
|
-
def order_options
|
20
|
-
{
|
21
|
-
order: "order",
|
22
|
-
}
|
23
|
-
end
|
24
|
-
|
25
|
-
def order_values
|
26
|
-
%w[1 2 3 4 5 6 7 8 9 10 11 12 first none]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|