playbook_ui 14.9.0.pre.rc.16 → 14.9.0.pre.rc.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,6 +13,7 @@ module Playbook
13
13
  prop(:classname),
14
14
  spacing_props,
15
15
  dark_props,
16
+ width_props,
16
17
  min_width_props,
17
18
  max_width_props,
18
19
  z_index_props,
@@ -12,6 +12,7 @@ module Playbook
12
12
  base.prop :margin_y
13
13
  base.prop :max_width
14
14
  base.prop :min_width
15
+ base.prop :width
15
16
  base.prop :padding
16
17
  base.prop :padding_bottom
17
18
  base.prop :padding_left
@@ -33,6 +34,12 @@ module Playbook
33
34
  }
34
35
  end
35
36
 
37
+ def width_options
38
+ {
39
+ width: "w",
40
+ }
41
+ end
42
+
36
43
  def max_width_values
37
44
  %w[0% xs sm md lg xl xxl 0 none 100%]
38
45
  end
@@ -41,6 +48,10 @@ module Playbook
41
48
  %w[0% xs sm md lg xl xxl 0 none 100%]
42
49
  end
43
50
 
51
+ def width_values
52
+ %w[0% xs sm md lg xl xxl 0 none 100%]
53
+ end
54
+
44
55
  def spacing_options
45
56
  {
46
57
  margin: "m",
@@ -125,5 +136,15 @@ module Playbook
125
136
  "max_width_#{filter_classname(width_value)}" if max_width_values.include? width_value
126
137
  end.compact.join(" ")
127
138
  end
139
+
140
+ def width_props
141
+ selected_w_props = width_options.keys.select { |sk| try(sk) }
142
+ return nil unless selected_w_props.present?
143
+
144
+ selected_w_props.map do |k|
145
+ width_value = send(k)
146
+ "width_#{filter_classname(width_value)}" if width_values.include? width_value
147
+ end.compact.join(" ")
148
+ end
128
149
  end
129
150
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.8.0"
5
- VERSION = "14.9.0.pre.rc.16"
5
+ VERSION = "14.9.0.pre.rc.17"
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.9.0.pre.rc.16
4
+ version: 14.9.0.pre.rc.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -3143,6 +3143,7 @@ files:
3143
3143
  - app/pb_kits/playbook/utilities/_text_align.scss
3144
3144
  - app/pb_kits/playbook/utilities/_truncate.scss
3145
3145
  - app/pb_kits/playbook/utilities/_vertical_align.scss
3146
+ - app/pb_kits/playbook/utilities/_width.scss
3146
3147
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_content.scss
3147
3148
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_items.scss
3148
3149
  - app/pb_kits/playbook/utilities/flexbox_global_props/_align_self.scss
@@ -3181,8 +3182,8 @@ files:
3181
3182
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3182
3183
  - app/pb_kits/playbook/utilities/text.ts
3183
3184
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3184
- - dist/chunks/_typeahead-Dmun8ckv.js
3185
- - dist/chunks/_weekday_stacked-Bpkyzced.js
3185
+ - dist/chunks/_typeahead-B8fkIeXA.js
3186
+ - dist/chunks/_weekday_stacked-4d5sISq_.js
3186
3187
  - dist/chunks/lazysizes-B7xYodB-.js
3187
3188
  - dist/chunks/lib-SyD3buPZ.js
3188
3189
  - dist/chunks/pb_form_validation-Dt8UJgrJ.js