playbook_ui 9.2.2.pre.alpha.margin → 9.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f6b95a3c95145f9fa13efaa05c1af0bdc4b5d77efc767cd11c9588ed5871841
4
- data.tar.gz: 1f3893825e6110b9e775be7e1ed44cead8f43db6230598e0be2b214e079265b4
3
+ metadata.gz: 6e9366429ab3c44f1d80714f564bfcb258f57d59f52ff8394cea0fb3c2fdd95c
4
+ data.tar.gz: 8141ba61150a6f617a1a23f69544f5aa91270660b35c5bef6eb99814edfa214a
5
5
  SHA512:
6
- metadata.gz: 78cd605adedf925049192ccd2c2c2abd952d87655da946ffd588226ea81a1dcef01c1c7fb8c3d242940e3217aa8c84b4b1a80c92d1b9d9e5221d067a3c28356b
7
- data.tar.gz: 93034591e014904a575f68766841f9420ce4961af01a8b64619e01b8f31aec439e660f93b90611138bf4ea495fd997d21375ffb3b9ef74595c32476620a7deeb
6
+ metadata.gz: a0c62f4bc0a43899d686841f3965d451acc9619ccd9e288f8540ef2a52b066ed291a7f28de0bc9443327b55daf4c532e3c48ddb90d8e3eff561a7ffb88dfad58
7
+ data.tar.gz: 256020def86c309d2eec1fe3a80a92cdd6a7b7b6fa93204bde73bc7cbc69134e3cccdbf93d5b9bcc2c8458ffba6a62fd15a8369e56169bbf703c504d3c945c53
@@ -1,30 +1,31 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- module PbDialog
5
- class DialogHeader
6
- include Playbook::Props
4
+ module PbDialog
5
+ class DialogHeader
6
+ include Playbook::Props
7
+
8
+ partial "pb_dialog/child_kits/dialog_header"
7
9
 
8
- partial "pb_dialog/child_kits/dialog_header"
9
-
10
- prop :closeable, type: Playbook::Props::Boolean, default: true
11
- prop :padding
12
- prop :separator, type: Playbook::Props::Boolean, default: true
13
- prop :spacing
14
- prop :text
15
- prop :title
16
-
17
- def dialog_header_options
18
- {
19
- id: id,
20
- closeable: closeable,
21
- padding: padding,
22
- separator: separator,
23
- spacing: spacing,
24
- text: text,
25
- title: title,
26
- }
10
+ prop :closeable, type: Playbook::Props::Boolean, default: true
11
+ prop :padding
12
+ prop :separator, type: Playbook::Props::Boolean, default: true
13
+ prop :spacing
14
+ prop :text
15
+ prop :title
16
+
17
+ def dialog_header_options
18
+ {
19
+ id: id,
20
+ closeable: closeable,
21
+ padding: padding,
22
+ separator: separator,
23
+ spacing: spacing,
24
+ text: text,
25
+ title: title,
26
+ }
27
+ end
27
28
  end
28
29
  end
29
30
  end
30
- end
31
+
@@ -37,8 +37,6 @@ type SelectProps = {
37
37
  id?: string,
38
38
  includeBlank?: string,
39
39
  label?: string,
40
- margin: string,
41
- marginBottom: string,
42
40
  multiple?: boolean,
43
41
  name?: string,
44
42
  required?: boolean,
@@ -76,14 +74,7 @@ const Select = ({
76
74
  const dataProps = buildDataProps(data)
77
75
  const optionsList = createOptions(options)
78
76
 
79
- const classes = classnames(
80
- buildCss('pb_select'),
81
- globalProps({
82
- ...props,
83
- marginBottom: props.marginBottom || props.margin || 'sm',
84
- }),
85
- className)
86
-
77
+ const classes = classnames(buildCss('pb_select'), globalProps(props), className)
87
78
  const selectWrapperClass = classnames(buildCss('pb_select_kit_wrapper'), { error }, className)
88
79
 
89
80
  return (
@@ -4,6 +4,7 @@
4
4
  @import "../tokens/colors";
5
5
 
6
6
  [class^=pb_select] {
7
+ margin-bottom: $space_sm;
7
8
  select {
8
9
  @include pb_textarea_light;
9
10
  @include pb_body_light;
@@ -64,36 +65,38 @@
64
65
  transform: translateY(-50%);
65
66
  pointer-events: none;
66
67
  }
67
- }
68
-
69
- [class^=pb_select].dark {
70
- select {
71
- @include pb_textarea_dark;
72
- @include pb_body_light_dark;
73
- background: none;
74
- background-color: rgba($white,.10);
75
- box-shadow: inset 0 -11px 20px rgba($white, 0.05);
76
- text-shadow: 0 0 0 $text_dk_default;
77
- padding-right: $space_xl;
78
- white-space: nowrap;
79
- overflow: hidden;
80
- text-overflow: ellipsis;
81
- @media (hover:hover) {
82
- &:hover, &:active, &:focus {
83
- background-color: rgba($white,.05);
68
+ &.dark {
69
+ select {
70
+ @include pb_textarea_dark;
71
+ @include pb_body_light_dark;
72
+ background: none;
73
+ background-color: rgba($white,.10);
74
+ box-shadow: inset 0 -11px 20px rgba($white, 0.05);
75
+ text-shadow: 0 0 0 $text_dk_default;
76
+ padding-right: $space_xl;
77
+ white-space: nowrap;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ @media (hover:hover) {
81
+ &:hover, &:active, &:focus {
82
+ background-color: rgba($white,.05);
83
+ }
84
+ }
85
+ &:focus{
86
+ border-color: $active_dark;
84
87
  }
85
88
  }
86
- }
87
- .pb_select_kit_caret {
88
- color: $white;
89
- }
90
- .pb_select_kit_wrapper {
91
- &.error {
92
- .pb_select_kit_wrapper {
93
- > select:first-child {
94
- border-color: $error_dark;
89
+ .pb_select_kit_caret {
90
+ color: $white;
91
+ }
92
+ .pb_select_kit_wrapper {
93
+ &.error {
94
+ .pb_select_kit_wrapper {
95
+ > select:first-child {
96
+ border-color: $error_dark;
97
+ }
95
98
  }
96
99
  }
97
100
  }
98
101
  }
99
- }
102
+ }
@@ -17,17 +17,13 @@ module Playbook
17
17
  prop :required, type: Playbook::Props::Boolean, default: false
18
18
 
19
19
  def classname
20
- generate_classname("pb_select", select_margin_bottom, separator: " ")
20
+ generate_classname("pb_select")
21
21
  end
22
22
 
23
23
  def select_wrapper_class
24
24
  "pb_select_kit_wrapper" + error_class
25
25
  end
26
26
 
27
- def select_margin_bottom
28
- margin.present? || margin_bottom.present? ? nil : "mb_sm"
29
- end
30
-
31
27
  def options_to_array
32
28
  options.map { |option| [option[:value_text] || option[:value], option[:value]] }
33
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "9.2.2.pre.alpha.margin"
4
+ VERSION = "9.2.2"
5
5
  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: 9.2.2.pre.alpha.margin
4
+ version: 9.2.2
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: 2021-04-08 00:00:00.000000000 Z
12
+ date: 2021-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2103,9 +2103,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2103
2103
  version: '0'
2104
2104
  required_rubygems_version: !ruby/object:Gem::Requirement
2105
2105
  requirements:
2106
- - - ">"
2106
+ - - ">="
2107
2107
  - !ruby/object:Gem::Version
2108
- version: 1.3.1
2108
+ version: '0'
2109
2109
  requirements: []
2110
2110
  rubyforge_project:
2111
2111
  rubygems_version: 2.7.3