playbook_ui 16.12.0.pre.alpha.play312818196 → 16.12.0.pre.alpha.play313618286
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/pb_form_group/_form_group.scss +24 -10
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.html.erb +19 -14
- data/app/pb_kits/playbook/pb_form_group/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +3 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -0
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d541ce2ea3773c6d4c9a83e2731c3c47b6a4560d2ef28f7f7ad478c926133484
|
|
4
|
+
data.tar.gz: b9601e35598e14df595fd51f3a6fe0a2ef69612caa93612dc2452e6ae602d8dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7068b902936990d1e20a948eea5929ac06c56ab27a88cd4a24d1b437165b459eb2d8f94ede0f93748682ec8d75cdadab0e83b54929e7af2712c1033dcad82be
|
|
7
|
+
data.tar.gz: 0c18c58e5bd88ceda477580a9a9681f850c715b3cbac71032b4b7652e8218d995070912550b12aee7394de71c479ab529c1facb736d0a2023be04f80500867e1
|
|
@@ -202,23 +202,37 @@
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
-
& > [class^=pb_typeahead_kit]
|
|
205
|
+
& > [class^=pb_typeahead_kit],
|
|
206
|
+
& > [data-pb-react-component] > [class^=pb_typeahead_kit] {
|
|
206
207
|
min-width: 200px;
|
|
207
208
|
}
|
|
208
209
|
|
|
209
|
-
& > [class^=pb_typeahead_kit]:not(:last-child)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
& > [class^=pb_typeahead_kit]:not(:last-child),
|
|
211
|
+
& > [data-pb-react-component]:not(:last-child) > [class^=pb_typeahead_kit] {
|
|
212
|
+
[class^=pb_text_input_kit] .text_input_wrapper {
|
|
213
|
+
input,
|
|
214
|
+
.text_input,
|
|
215
|
+
.typeahead-kit-select__control {
|
|
216
|
+
border-bottom-right-radius: 0 !important;
|
|
217
|
+
border-top-right-radius: 0 !important;
|
|
218
|
+
border-right-width: 0 !important;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
[class^=pb_text_input_kit] .text_input_wrapper div.text_input {
|
|
214
223
|
min-height: 26px;
|
|
215
224
|
}
|
|
216
225
|
}
|
|
217
226
|
|
|
218
|
-
& > [class^=pb_typeahead_kit]:not(:first-child)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
227
|
+
& > [class^=pb_typeahead_kit]:not(:first-child),
|
|
228
|
+
& > [data-pb-react-component]:not(:first-child) > [class^=pb_typeahead_kit] {
|
|
229
|
+
[class^=pb_text_input_kit] .text_input_wrapper {
|
|
230
|
+
input,
|
|
231
|
+
.text_input,
|
|
232
|
+
.typeahead-kit-select__control {
|
|
233
|
+
border-bottom-left-radius: 0 !important;
|
|
234
|
+
border-top-left-radius: 0 !important;
|
|
235
|
+
}
|
|
222
236
|
}
|
|
223
237
|
}
|
|
224
238
|
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
<div>
|
|
2
|
+
|
|
3
|
+
<%
|
|
4
|
+
options = [
|
|
5
|
+
{ label: 'Orange', value: '#FFA500' },
|
|
6
|
+
{ label: 'Red', value: '#FF0000' },
|
|
7
|
+
{ label: 'Green', value: '#00FF00' },
|
|
8
|
+
{ label: 'Blue', value: '#0000FF' },
|
|
9
|
+
]
|
|
10
|
+
%>
|
|
2
11
|
<%= pb_rails("form_group") do %>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
id: "form-group-typeahead-example",
|
|
14
|
-
label: "Products",
|
|
15
|
-
options: options,
|
|
16
|
-
}) %>
|
|
12
|
+
|
|
13
|
+
<%= pb_rails("typeahead", props: {
|
|
14
|
+
id: "typeahead-default",
|
|
15
|
+
placeholder: "All Colors",
|
|
16
|
+
options: options,
|
|
17
|
+
label: "Colors",
|
|
18
|
+
name: :foo,
|
|
19
|
+
is_multi: false,
|
|
20
|
+
})
|
|
21
|
+
%>
|
|
17
22
|
<%= pb_rails("button", props: {
|
|
18
23
|
id: "form-group-button",
|
|
19
24
|
text: "Add",
|
|
@@ -5,7 +5,7 @@ examples:
|
|
|
5
5
|
- form_group_button: Button
|
|
6
6
|
- form_group_full_width: Full Width
|
|
7
7
|
- form_group_date_picker: Date Picker
|
|
8
|
-
|
|
8
|
+
- form_group_typeahead: Typeahead
|
|
9
9
|
- form_group_select: Select
|
|
10
10
|
- form_group_selectable_card: Selectable Card
|
|
11
11
|
- form_group_selectable_card_icon: Selectable Card Icon
|
|
@@ -16,7 +16,7 @@ examples:
|
|
|
16
16
|
- form_group_button: Button
|
|
17
17
|
- form_group_full_width: Full Width
|
|
18
18
|
- form_group_date_picker: Date Picker
|
|
19
|
-
|
|
19
|
+
- form_group_typeahead: Typeahead
|
|
20
20
|
- form_group_select: Select
|
|
21
21
|
- form_group_selectable_card: Selectable Card
|
|
22
22
|
- form_group_selectable_card_icon: Selectable Card Icon
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
color: $input_text_active;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
// React select control only — Rails <input class="text_input"> must keep max-height: 45px
|
|
48
|
+
div.text_input {
|
|
48
49
|
max-height: none;
|
|
49
50
|
}
|
|
50
51
|
& > input:first-child {
|
|
@@ -142,6 +143,7 @@
|
|
|
142
143
|
&__control {
|
|
143
144
|
&--is-disabled {
|
|
144
145
|
background-color: $input_background_disabled;
|
|
146
|
+
border-color: $input_border_disabled;
|
|
145
147
|
}
|
|
146
148
|
&--is-focused {
|
|
147
149
|
@include pb_textarea_focus;
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
required_indicator: object.required_indicator,
|
|
25
25
|
id: object.input_options[:id],
|
|
26
26
|
dark: object.dark,
|
|
27
|
+
disabled: object.disabled,
|
|
27
28
|
}) %>
|
|
28
29
|
<%= pb_rails("list", props: { ordered: false, borderless: true, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
|
|
29
30
|
<% end %>
|