playbook_ui 14.6.0.pre.alpha.PBNTR5554217 → 14.6.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4222

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_card/_card.tsx +1 -5
  3. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -2
  4. data/app/pb_kits/playbook/pb_currency/_currency.tsx +6 -16
  5. data/app/pb_kits/playbook/pb_currency/currency.rb +11 -38
  6. data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
  7. data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -3
  8. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  9. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +1 -5
  10. data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -3
  11. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +2 -8
  12. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +6 -3
  13. data/app/pb_kits/playbook/pb_flex/flex_item.rb +2 -7
  14. data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
  15. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +67 -1
  16. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +1 -0
  17. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +5 -1
  19. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -3
  20. data/app/pb_kits/playbook/utilities/globalProps.ts +2 -39
  21. data/dist/chunks/_typeahead-BV_n6U5W.js +22 -0
  22. data/dist/chunks/_weekday_stacked-DdxTfWNt.js +45 -0
  23. data/dist/chunks/vendor.js +1 -1
  24. data/dist/playbook-doc.js +1 -1
  25. data/dist/playbook-rails-react-bindings.js +1 -1
  26. data/dist/playbook-rails.js +1 -1
  27. data/dist/playbook.css +1 -1
  28. data/lib/playbook/kit_base.rb +1 -21
  29. data/lib/playbook/version.rb +1 -1
  30. metadata +3 -5
  31. data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.html.erb +0 -7
  32. data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.jsx +0 -18
  33. data/dist/chunks/_typeahead-BhHnXJjy.js +0 -22
  34. data/dist/chunks/_weekday_stacked-C2icYweq.js +0 -45
@@ -73,10 +73,6 @@ module Playbook
73
73
  prop :aria, type: Playbook::Props::HashProp, default: {}
74
74
  prop :html_options, type: Playbook::Props::HashProp, default: {}
75
75
  prop :children, type: Playbook::Props::Proc
76
- prop :style, type: Playbook::Props::HashProp, default: {}
77
- prop :height
78
- prop :min_height
79
- prop :max_height
80
76
 
81
77
  def object
82
78
  self
@@ -86,14 +82,6 @@ module Playbook
86
82
  default_html_options.merge(html_options.deep_merge(data_attributes))
87
83
  end
88
84
 
89
- def global_inline_props
90
- {
91
- height: height,
92
- min_height: min_height,
93
- max_height: max_height,
94
- }.compact
95
- end
96
-
97
85
  # rubocop:disable Layout/CommentIndentation
98
86
  # pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
99
87
  # The pb_content_tag generates HTML content tags for rails kits with flexible options.
@@ -125,15 +113,12 @@ module Playbook
125
113
  private
126
114
 
127
115
  def default_options
128
- options = {
116
+ {
129
117
  id: id,
130
118
  data: data,
131
119
  class: classname,
132
120
  aria: aria,
133
121
  }
134
- inline_styles = dynamic_inline_props
135
- options[:style] = inline_styles if inline_styles.present?
136
- options
137
122
  end
138
123
 
139
124
  def default_html_options
@@ -146,10 +131,5 @@ module Playbook
146
131
  aria: aria,
147
132
  }.transform_keys { |key| key.to_s.tr("_", "-").to_sym }
148
133
  end
149
-
150
- def dynamic_inline_props
151
- styles = global_inline_props.map { |key, value| "#{key.to_s.gsub('_', '-')}: #{value};" if value.present? }.compact
152
- styles.join(" ").presence
153
- end
154
134
  end
155
135
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.6.0"
5
- VERSION = "14.6.0.pre.alpha.PBNTR5554217"
5
+ VERSION = "14.6.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4222"
6
6
  end
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.6.0.pre.alpha.PBNTR5554217
4
+ version: 14.6.0.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4222
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -762,8 +762,6 @@ files:
762
762
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.html.erb
763
763
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.jsx
764
764
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment_swift.md
765
- - app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.html.erb
766
- - app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.jsx
767
765
  - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals.html.erb
768
766
  - app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals.jsx
769
767
  - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.html.erb
@@ -3101,8 +3099,8 @@ files:
3101
3099
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3102
3100
  - app/pb_kits/playbook/utilities/text.ts
3103
3101
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3104
- - dist/chunks/_typeahead-BhHnXJjy.js
3105
- - dist/chunks/_weekday_stacked-C2icYweq.js
3102
+ - dist/chunks/_typeahead-BV_n6U5W.js
3103
+ - dist/chunks/_weekday_stacked-DdxTfWNt.js
3106
3104
  - dist/chunks/lazysizes-B7xYodB-.js
3107
3105
  - dist/chunks/lib-D-mTv-kp.js
3108
3106
  - dist/chunks/pb_form_validation-BkWGwJsl.js
@@ -1,7 +0,0 @@
1
- <%= pb_rails("currency", props: {
2
- amount: '1234567.89',
3
- comma_separator: true,
4
- size: 'lg',
5
- emphasized: false,
6
- decimals: 'matching',
7
- }) %>
@@ -1,18 +0,0 @@
1
- import React from "react"
2
-
3
- import Currency from "../_currency"
4
-
5
- const CurrencyCommaSeparator = (props) => {
6
- return (
7
- <Currency
8
- amount='1234567.89'
9
- commaSeparator
10
- decimals="matching"
11
- emphasized={false}
12
- size="lg"
13
- {...props}
14
- />
15
- )
16
- }
17
-
18
- export default CurrencyCommaSeparator