playbook_ui 14.11.0.pre.rc.15 → 14.11.0.pre.rc.16
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 +1 -0
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +5 -5
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.html.erb +4 -5
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.jsx +4 -4
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_gap.md +1 -1
- data/app/pb_kits/playbook/pb_timeline/timeline.rb +6 -6
- data/app/pb_kits/playbook/utilities/_gap.scss +29 -0
- data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
- data/app/pb_kits/playbook/utilities/globalProps.ts +18 -9
- data/dist/chunks/{_typeahead-DPsPSYxe.js → _typeahead-C2iCBqxQ.js} +1 -1
- data/dist/chunks/{_weekday_stacked-CJTPh4if.js → _weekday_stacked-CWnbnW7m.js} +2 -2
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- 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/classnames.rb +1 -0
- data/lib/playbook/spacing.rb +21 -0
- data/lib/playbook/version.rb +1 -1
- metadata +4 -3
data/lib/playbook/classnames.rb
CHANGED
data/lib/playbook/spacing.rb
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
module Playbook
|
4
4
|
module Spacing
|
5
5
|
def self.included(base)
|
6
|
+
base.prop :gap
|
6
7
|
base.prop :margin
|
7
8
|
base.prop :margin_bottom
|
8
9
|
base.prop :margin_left
|
@@ -52,6 +53,16 @@ module Playbook
|
|
52
53
|
%w[0% xs sm md lg xl xxl 0 none 100%]
|
53
54
|
end
|
54
55
|
|
56
|
+
def gap_values
|
57
|
+
%w[none xxs xs sm md lg xl]
|
58
|
+
end
|
59
|
+
|
60
|
+
def gap_options
|
61
|
+
{
|
62
|
+
gap: "gap",
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
55
66
|
def spacing_options
|
56
67
|
{
|
57
68
|
margin: "m",
|
@@ -146,5 +157,15 @@ module Playbook
|
|
146
157
|
"width_#{filter_classname(width_value)}" if width_values.include? width_value
|
147
158
|
end.compact.join(" ")
|
148
159
|
end
|
160
|
+
|
161
|
+
def gap_props
|
162
|
+
selected_gap_props = gap_options.keys.select { |sk| try(sk) }
|
163
|
+
return nil unless selected_gap_props.present?
|
164
|
+
|
165
|
+
selected_gap_props.map do |k|
|
166
|
+
gap_value = send(k)
|
167
|
+
"gap_#{gap_value}" if gap_values.include? gap_value
|
168
|
+
end.compact.join(" ")
|
169
|
+
end
|
149
170
|
end
|
150
171
|
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.11.0.pre.rc.
|
4
|
+
version: 14.11.0.pre.rc.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -3181,6 +3181,7 @@ files:
|
|
3181
3181
|
- app/pb_kits/playbook/utilities/_display.scss
|
3182
3182
|
- app/pb_kits/playbook/utilities/_flexbox.scss
|
3183
3183
|
- app/pb_kits/playbook/utilities/_focus.scss
|
3184
|
+
- app/pb_kits/playbook/utilities/_gap.scss
|
3184
3185
|
- app/pb_kits/playbook/utilities/_height.scss
|
3185
3186
|
- app/pb_kits/playbook/utilities/_hover.scss
|
3186
3187
|
- app/pb_kits/playbook/utilities/_line_height.scss
|
@@ -3234,8 +3235,8 @@ files:
|
|
3234
3235
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3235
3236
|
- app/pb_kits/playbook/utilities/text.ts
|
3236
3237
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3237
|
-
- dist/chunks/_typeahead-
|
3238
|
-
- dist/chunks/_weekday_stacked-
|
3238
|
+
- dist/chunks/_typeahead-C2iCBqxQ.js
|
3239
|
+
- dist/chunks/_weekday_stacked-CWnbnW7m.js
|
3239
3240
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3240
3241
|
- dist/chunks/lib-B7sgJtGS.js
|
3241
3242
|
- dist/chunks/pb_form_validation-C5Cc0-1v.js
|