playbook_ui 8.3.0.alpha.select.pre.margin → 8.3.0.deps2
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 +4 -4
- data/app/pb_kits/playbook/data/menu.yml +3 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +0 -7
- data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +24 -23
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +54 -63
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +1 -2
- data/app/pb_kits/playbook/pb_select/_select.jsx +1 -10
- data/app/pb_kits/playbook/pb_select/_select.scss +28 -35
- data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.jsx +1 -4
- data/app/pb_kits/playbook/pb_select/select.rb +1 -5
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_input.jsx +135 -145
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +18 -17
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +19 -29
- data/app/pb_kits/playbook/pb_textarea/_textarea_mixin.scss +4 -9
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_character_counter.jsx +1 -5
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx +2 -4
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +15 -17
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -1
- data/app/pb_kits/playbook/tokens/_colors.scss +1 -1
- data/lib/playbook/version.rb +2 -1
- metadata +36 -36
@@ -22,7 +22,7 @@
|
|
22
22
|
overflow-wrap: break-word;
|
23
23
|
resize: none;
|
24
24
|
transition-property: box-shadow, color, background-color;
|
25
|
-
transition-duration: .
|
25
|
+
transition-duration: .24s;
|
26
26
|
transition-timing-function: $bezier;
|
27
27
|
&[type=number] {
|
28
28
|
-moz-appearance:textfield;
|
@@ -40,9 +40,9 @@
|
|
40
40
|
&:-webkit-autofill,
|
41
41
|
&:-webkit-autofill:hover,
|
42
42
|
&:-internal-autofill-selected {
|
43
|
-
color: $text_color;
|
44
|
-
|
45
|
-
transition: background-color
|
43
|
+
-webkit-text-fill-color: $text_color;
|
44
|
+
-webkit-box-shadow: 0 0 0px 1000px transparent inset;
|
45
|
+
transition: background-color 5000s ease-in-out 0s;
|
46
46
|
font-family: $font_family_base;
|
47
47
|
}
|
48
48
|
}
|
@@ -68,8 +68,3 @@
|
|
68
68
|
@mixin pb_textarea_focus_dark {
|
69
69
|
@include pb_textarea_focus($focus_input_dark);
|
70
70
|
}
|
71
|
-
|
72
|
-
// Transitions ======================
|
73
|
-
@mixin transition_default{
|
74
|
-
transition: background-color 0.3s ease-in-out 0s, border-color 0.3s ease-in-out 0s;
|
75
|
-
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { Textarea } from '../../'
|
3
3
|
|
4
|
-
const TextareaCharacterCounter = (
|
4
|
+
const TextareaCharacterCounter = () => {
|
5
5
|
const [value1, setValue1] = useState('Counting characters!')
|
6
6
|
const [value2, setValue2] = useState('This counter prevents the user from exceeding the maximum number of allowed characters. Just try it!')
|
7
7
|
const [value3, setValue3] = useState('This counter alerts the user that they have exceeded the maximum number of allowed characters.')
|
@@ -41,7 +41,6 @@ const TextareaCharacterCounter = (props) => {
|
|
41
41
|
label="Count Only"
|
42
42
|
onChange={(event) => setCount1(event.target.value.length)}
|
43
43
|
rows={4}
|
44
|
-
{...props}
|
45
44
|
/>
|
46
45
|
|
47
46
|
<br />
|
@@ -53,7 +52,6 @@ const TextareaCharacterCounter = (props) => {
|
|
53
52
|
onChange={() => handleMaxCount(event)}
|
54
53
|
rows={4}
|
55
54
|
value={value1}
|
56
|
-
{...props}
|
57
55
|
/>
|
58
56
|
|
59
57
|
<br />
|
@@ -65,7 +63,6 @@ const TextareaCharacterCounter = (props) => {
|
|
65
63
|
onChange={() => handleMaxCountWithBlocker(event, 100)}
|
66
64
|
rows={4}
|
67
65
|
value={value2}
|
68
|
-
{...props}
|
69
66
|
/>
|
70
67
|
|
71
68
|
<br />
|
@@ -78,7 +75,6 @@ const TextareaCharacterCounter = (props) => {
|
|
78
75
|
onChange={() => handleMaxCountWithError(event, 75)}
|
79
76
|
rows={4}
|
80
77
|
value={value3}
|
81
|
-
{...props}
|
82
78
|
/>
|
83
79
|
</>
|
84
80
|
)
|
@@ -4,14 +4,12 @@ import { Textarea } from '../../'
|
|
4
4
|
const TextareaCustom = (props) => {
|
5
5
|
return (
|
6
6
|
<div>
|
7
|
-
<Textarea
|
8
|
-
label="Label"
|
9
|
-
{...props}
|
10
|
-
>
|
7
|
+
<Textarea label="Label">
|
11
8
|
<textarea
|
12
9
|
className="my_custom_class"
|
13
10
|
name="custom_textarea"
|
14
11
|
rows={4}
|
12
|
+
{...props}
|
15
13
|
>
|
16
14
|
{'Content goes here.'}
|
17
15
|
</textarea>
|
@@ -4,18 +4,9 @@
|
|
4
4
|
@import "../tokens/shadows";
|
5
5
|
|
6
6
|
[class^=pb_typeahead_kit] {
|
7
|
-
.typeahead-kit-select__option {
|
8
|
-
cursor: pointer;
|
9
|
-
}
|
10
7
|
.pb_typeahead_wrapper {
|
11
8
|
position: relative;
|
12
|
-
|
13
|
-
cursor: text;
|
14
|
-
}
|
15
|
-
.text_input_indicators,
|
16
|
-
.pb_list_kit {
|
17
|
-
cursor: pointer;
|
18
|
-
}
|
9
|
+
|
19
10
|
.pb_typeahead_loading_indicator {
|
20
11
|
position: absolute;
|
21
12
|
width: min-content;
|
@@ -26,6 +17,7 @@
|
|
26
17
|
transition: opacity .15s ease-in-out;
|
27
18
|
}
|
28
19
|
}
|
20
|
+
|
29
21
|
[class^=pb_text_input_kit] {
|
30
22
|
.text_input_wrapper {
|
31
23
|
& > input:first-child {
|
@@ -33,6 +25,7 @@
|
|
33
25
|
}
|
34
26
|
}
|
35
27
|
}
|
28
|
+
|
36
29
|
.pb_item_kit {
|
37
30
|
padding: ($space_xs + 2) 0;
|
38
31
|
|
@@ -42,6 +35,7 @@
|
|
42
35
|
}
|
43
36
|
}
|
44
37
|
}
|
38
|
+
|
45
39
|
[class^=pb_list_kit] {
|
46
40
|
max-height: 18em;
|
47
41
|
overflow-y: auto;
|
@@ -55,14 +49,17 @@
|
|
55
49
|
border-radius: $border_rad_heavier;
|
56
50
|
transition: opacity .25s ease-in-out;
|
57
51
|
}
|
52
|
+
|
58
53
|
&:focus-within [class^=pb_list_kit] {
|
59
54
|
display: block;
|
60
55
|
opacity: 1;
|
61
56
|
}
|
57
|
+
|
62
58
|
&:not(:focus-within) [class^=pb_list_kit] {
|
63
59
|
display: none;
|
64
60
|
opacity: 0;
|
65
61
|
}
|
62
|
+
|
66
63
|
[class^=pb_list_kit] {
|
67
64
|
margin-top: -$space-sm;
|
68
65
|
li {
|
@@ -72,6 +69,7 @@
|
|
72
69
|
&:focus-within {
|
73
70
|
background-color: $active_light;
|
74
71
|
}
|
72
|
+
|
75
73
|
> button {
|
76
74
|
background: none;
|
77
75
|
color: $text_lt_default;
|
@@ -86,6 +84,7 @@
|
|
86
84
|
}
|
87
85
|
}
|
88
86
|
}
|
87
|
+
|
89
88
|
&[class*=dark] {
|
90
89
|
.pb_typeahead_wrapper .pb_typeahead_loading_indicator {
|
91
90
|
color: $text_dk_light;
|
@@ -98,10 +97,7 @@
|
|
98
97
|
color: $white;
|
99
98
|
}
|
100
99
|
.typeahead-kit-select__option:hover {
|
101
|
-
background-color: $
|
102
|
-
}
|
103
|
-
.typeahead-kit-select__indicator:hover {
|
104
|
-
color: $white;
|
100
|
+
background-color: tint($focus_input_dark, 5%);
|
105
101
|
}
|
106
102
|
.typeahead-kit-select__input {
|
107
103
|
color: white;
|
@@ -109,12 +105,13 @@
|
|
109
105
|
box-shadow: none;
|
110
106
|
}
|
111
107
|
}
|
112
|
-
.typeahead-kit-select__single-value
|
108
|
+
.typeahead-kit-select__single-value{
|
113
109
|
color: white;
|
114
110
|
}
|
115
111
|
.typeahead-kit-select__option--is-focused {
|
116
|
-
background-color: $
|
112
|
+
background-color: tint($focus_input_dark, 5%);
|
117
113
|
}
|
114
|
+
|
118
115
|
[class^=pb_list_kit] {
|
119
116
|
background-color: $bg_dark;
|
120
117
|
}
|
@@ -124,11 +121,12 @@
|
|
124
121
|
}
|
125
122
|
@media (hover:hover) {
|
126
123
|
&:hover {
|
127
|
-
background-color:
|
124
|
+
background-color: tint($focus_input_dark, 5%);
|
128
125
|
}
|
129
126
|
}
|
130
127
|
}
|
131
128
|
}
|
129
|
+
|
132
130
|
&.react-select, &.react-select .dark {
|
133
131
|
.text_input {
|
134
132
|
display: inherit;
|
@@ -90,7 +90,6 @@ const TypeaheadWithPillsAsyncUsers = (props) => {
|
|
90
90
|
isMulti
|
91
91
|
label="Github Users"
|
92
92
|
loadOptions={promiseOptions}
|
93
|
-
noOptionsMessage={() => 'Type to Search'}
|
94
93
|
onChange={handleOnChange}
|
95
94
|
onMultiValueClick={handleOnMultiValueClick}
|
96
95
|
placeholder="type the name of a Github user"
|
@@ -114,7 +114,7 @@ $shadow_colors: (
|
|
114
114
|
|
115
115
|
/* Text colors ------------------------*/
|
116
116
|
$text_lt_default: $charcoal;
|
117
|
-
$text_lt_light: #
|
117
|
+
$text_lt_light: #919EAB;
|
118
118
|
$text_lt_lighter: $slate;
|
119
119
|
$text_dk_default: $white;
|
120
120
|
$text_dk_light: rgba($white, $opacity_6);
|
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: 8.3.0.
|
4
|
+
version: 8.3.0.deps2
|
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-
|
12
|
+
date: 2021-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -75,128 +75,128 @@ dependencies:
|
|
75
75
|
name: react-rails
|
76
76
|
requirement: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 2.6
|
80
|
+
version: '2.6'
|
81
81
|
type: :runtime
|
82
82
|
prerelease: false
|
83
83
|
version_requirements: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - "~>"
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 2.6
|
87
|
+
version: '2.6'
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
89
|
name: redcarpet
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: 3.5
|
94
|
+
version: '3.5'
|
95
95
|
type: :runtime
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - "~>"
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 3.5
|
101
|
+
version: '3.5'
|
102
102
|
- !ruby/object:Gem::Dependency
|
103
103
|
name: rouge
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
105
|
requirements:
|
106
|
-
- -
|
106
|
+
- - "~>"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version: 3.15
|
108
|
+
version: '3.15'
|
109
109
|
type: :runtime
|
110
110
|
prerelease: false
|
111
111
|
version_requirements: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - "~>"
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: 3.15
|
115
|
+
version: '3.15'
|
116
116
|
- !ruby/object:Gem::Dependency
|
117
117
|
name: sassc-rails
|
118
118
|
requirement: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 1.3
|
122
|
+
version: '1.3'
|
123
123
|
type: :runtime
|
124
124
|
prerelease: false
|
125
125
|
version_requirements: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
|
-
- -
|
127
|
+
- - "~>"
|
128
128
|
- !ruby/object:Gem::Version
|
129
|
-
version: 1.3
|
129
|
+
version: '1.3'
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
131
|
name: slim-rails
|
132
132
|
requirement: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
134
|
-
- -
|
134
|
+
- - "~>"
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: 3.2
|
136
|
+
version: '3.2'
|
137
137
|
type: :runtime
|
138
138
|
prerelease: false
|
139
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
|
-
- -
|
141
|
+
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 3.2
|
143
|
+
version: '3.2'
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
145
|
name: sprockets-rails
|
146
146
|
requirement: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
|
-
- -
|
148
|
+
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: 2.3
|
150
|
+
version: '2.3'
|
151
151
|
type: :runtime
|
152
152
|
prerelease: false
|
153
153
|
version_requirements: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- -
|
155
|
+
- - "~>"
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version: 2.3
|
157
|
+
version: '2.3'
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
159
|
name: view_component
|
160
160
|
requirement: !ruby/object:Gem::Requirement
|
161
161
|
requirements:
|
162
|
-
- -
|
162
|
+
- - "~>"
|
163
163
|
- !ruby/object:Gem::Version
|
164
|
-
version: 2.23
|
164
|
+
version: '2.23'
|
165
165
|
type: :runtime
|
166
166
|
prerelease: false
|
167
167
|
version_requirements: !ruby/object:Gem::Requirement
|
168
168
|
requirements:
|
169
|
-
- -
|
169
|
+
- - "~>"
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version: 2.23
|
171
|
+
version: '2.23'
|
172
172
|
- !ruby/object:Gem::Dependency
|
173
173
|
name: webpacker
|
174
174
|
requirement: !ruby/object:Gem::Requirement
|
175
175
|
requirements:
|
176
|
-
- -
|
176
|
+
- - "~>"
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version: 4.2
|
178
|
+
version: '4.2'
|
179
179
|
type: :runtime
|
180
180
|
prerelease: false
|
181
181
|
version_requirements: !ruby/object:Gem::Requirement
|
182
182
|
requirements:
|
183
|
-
- -
|
183
|
+
- - "~>"
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: 4.2
|
185
|
+
version: '4.2'
|
186
186
|
- !ruby/object:Gem::Dependency
|
187
187
|
name: webpacker-react
|
188
188
|
requirement: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: 0.3
|
192
|
+
version: '0.3'
|
193
193
|
type: :runtime
|
194
194
|
prerelease: false
|
195
195
|
version_requirements: !ruby/object:Gem::Requirement
|
196
196
|
requirements:
|
197
197
|
- - "~>"
|
198
198
|
- !ruby/object:Gem::Version
|
199
|
-
version: 0.3
|
199
|
+
version: '0.3'
|
200
200
|
- !ruby/object:Gem::Dependency
|
201
201
|
name: better_errors
|
202
202
|
requirement: !ruby/object:Gem::Requirement
|