playbook_ui 13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504 → 13.21.0.pre.alpha.PLAY12582474

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.
@@ -24,12 +24,9 @@ module Playbook
24
24
 
25
25
  selected_props.map do |k|
26
26
  value = send(k)
27
- css = if value.is_a?(Hash) && value[:inset] && bottom_values.include?(value[:value])
28
- "bottom_#{value[:value]}_inset"
29
- elsif bottom_values.include?(value)
30
- "bottom_#{value}"
31
- end
32
- css
27
+ return nil unless bottom_values.include? value
28
+
29
+ "bottom_#{value}"
33
30
  end.compact.join(" ")
34
31
  end
35
32
  end
data/lib/playbook/left.rb CHANGED
@@ -24,12 +24,9 @@ module Playbook
24
24
 
25
25
  selected_props.map do |k|
26
26
  value = send(k)
27
- css = if value.is_a?(Hash) && value[:inset] && left_values.include?(value[:value])
28
- "left_#{value[:value]}_inset"
29
- elsif bottom_values.include?(value)
30
- "left_#{value}"
31
- end
32
- css
27
+ return nil unless left_values.include? value
28
+
29
+ "left_#{value}"
33
30
  end.compact.join(" ")
34
31
  end
35
32
  end
@@ -24,12 +24,9 @@ module Playbook
24
24
 
25
25
  selected_props.map do |k|
26
26
  value = send(k)
27
- css = if value.is_a?(Hash) && value[:inset] && right_values.include?(value[:value])
28
- "right_#{value[:value]}_inset"
29
- elsif right_values.include?(value)
30
- "right_#{value}"
31
- end
32
- css
27
+ return nil unless right_values.include? value
28
+
29
+ "right_#{value}"
33
30
  end.compact.join(" ")
34
31
  end
35
32
  end
data/lib/playbook/top.rb CHANGED
@@ -24,12 +24,9 @@ module Playbook
24
24
 
25
25
  selected_props.map do |k|
26
26
  value = send(k)
27
- css = if value.is_a?(Hash) && value[:inset] && top_values.include?(value[:value])
28
- "top_#{value[:value]}_inset"
29
- elsif top_values.include?(value)
30
- "top_#{value}"
31
- end
32
- css
27
+ return nil unless top_values.include? value
28
+
29
+ "top_#{value}"
33
30
  end.compact.join(" ")
34
31
  end
35
32
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.21.0"
5
- VERSION = "13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504"
5
+ VERSION = "13.21.0.pre.alpha.PLAY12582474"
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: 13.21.0.pre.alpha.PBNTR243globalpositioningpropinset2504
4
+ version: 13.21.0.pre.alpha.PLAY12582474
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: 2024-03-27 00:00:00.000000000 Z
12
+ date: 2024-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -17,42 +17,42 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 5.2.4.5
20
+ version: 6.1.7.7
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 5.2.4.5
27
+ version: 6.1.7.7
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: actionview
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: 5.2.4.5
34
+ version: 6.1.7.7
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 5.2.4.5
41
+ version: 6.1.7.7
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: activesupport
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 5.2.4.5
48
+ version: 6.1.7.7
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 5.2.4.5
55
+ version: 6.1.7.7
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: react-rails
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - '='
103
103
  - !ruby/object:Gem::Version
104
- version: 11.0.0
104
+ version: 11.1.3
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - '='
110
110
  - !ruby/object:Gem::Version
111
- version: 11.0.0
111
+ version: 11.1.3
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: github_changelog_generator
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -129,14 +129,14 @@ dependencies:
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: 5.2.4.5
132
+ version: 6.1.7.7
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 5.2.4.5
139
+ version: 6.1.7.7
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: rspec-html-matchers
142
142
  requirement: !ruby/object:Gem::Requirement
@@ -832,8 +832,6 @@ files:
832
832
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.html.erb
833
833
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.jsx
834
834
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_label.md
835
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.html.erb
836
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_margin_bottom.jsx
837
835
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.html.erb
838
836
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_min_max.jsx
839
837
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.html.erb
@@ -1,7 +0,0 @@
1
-
2
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-none", margin_bottom: "none"}) %>
3
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-xs", margin_bottom: "xs"}) %>
4
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-sm", margin_bottom: "sm"}) %>
5
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-md", margin_bottom: "md"}) %>
6
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-lg", margin_bottom: "lg"}) %>
7
- <%= pb_rails("date_picker", props: { picker_id: "date-picker-xl", margin_bottom: "xl"}) %>
@@ -1,41 +0,0 @@
1
-
2
- import React from 'react'
3
-
4
- import DatePicker from '../_date_picker'
5
-
6
- const DatePickerMarginBottom = (props) => (
7
- <div>
8
- <DatePicker
9
- marginBottom="none"
10
- pickerId="date-picker-none"
11
- {...props}
12
- />
13
- <DatePicker
14
- marginBottom="xs"
15
- pickerId="date-picker-xs"
16
- {...props}
17
- />
18
- <DatePicker
19
- marginBottom="sm"
20
- pickerId="date-picker-sm"
21
- {...props}
22
- />
23
- <DatePicker
24
- marginBottom="md"
25
- pickerId="date-picker-md"
26
- {...props}
27
- />
28
- <DatePicker
29
- marginBottom="lg"
30
- pickerId="date-picker-lg"
31
- {...props}
32
- />
33
- <DatePicker
34
- marginBottom="xl"
35
- pickerId="date-picker-xl"
36
- {...props}
37
- />
38
- </div>
39
- )
40
-
41
- export default DatePickerMarginBottom