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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34b91c692c809e3b344f5c2238d908dad3f752fbcd67e149db06d408f1a68e8d
4
- data.tar.gz: 3aa632fe7e8a4ecf3f5f2042499ea5a6a28d474250049e0ec20365203a17fab1
3
+ metadata.gz: d541ce2ea3773c6d4c9a83e2731c3c47b6a4560d2ef28f7f7ad478c926133484
4
+ data.tar.gz: b9601e35598e14df595fd51f3a6fe0a2ef69612caa93612dc2452e6ae602d8dd
5
5
  SHA512:
6
- metadata.gz: 9cf054ba701609690494520eb16bfa86a9f3c643510017aaa327701a1658243b316e411f97b5095529ae39f16f69d5f07b94750400210bbd0f6501f4ae419f05
7
- data.tar.gz: b2c0a747082af19522656345d7f81936dbeb03709367dc116939d2ce6bbfa64897d1e03409e6773a2555f803a3f3814cfe1978f802b78bb78f2327568ee1887c
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
- [class^=pb_text_input_kit] .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
211
- border-bottom-right-radius: 0;
212
- border-top-right-radius: 0;
213
- border-right-width: 0;
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
- [class^=pb_text_input_kit] .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
220
- border-bottom-left-radius: 0;
221
- border-top-left-radius: 0;
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
- options = [
5
- { label: 'Windows', value: 'windows' },
6
- { label: 'Roof', value: 'roof' },
7
- { label: 'Siding', value: 'siding' },
8
- { label: 'Doors', value: 'doors' },
9
- ]
10
- %>
11
- <%= pb_rails("typeahead", props: {
12
- default_options: [options.first],
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
- # - form_group_typeahead: Typeahead
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
- # - form_group_typeahead: Typeahead
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
- .text_input {
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 %>