playbook_ui 14.8.0.pre.alpha.play1648heightglobalprops4606 → 14.8.0.pre.alpha.revert3916revert3893PBNTR667railstypeaheadformintegration4565

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +2 -2
  4. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +4 -0
  5. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +7 -84
  6. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -1
  7. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +1 -0
  8. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +4 -0
  9. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
  10. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +63 -12
  12. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +1 -2
  13. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -3
  14. data/app/pb_kits/playbook/pb_typeahead/index.ts +291 -2
  15. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +5 -2
  16. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +4 -0
  17. data/app/pb_kits/playbook/utilities/_max_width.scss +0 -4
  18. data/app/pb_kits/playbook/utilities/_min_width.scss +1 -1
  19. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -0
  20. data/app/pb_kits/playbook/utilities/globalProps.ts +0 -24
  21. data/dist/chunks/{_typeahead-dal1XERd.js → _typeahead-IoHUnHeF.js} +2 -2
  22. data/dist/chunks/{_weekday_stacked-KjwZgsC3.js → _weekday_stacked-BuaqHM9z.js} +1 -1
  23. data/dist/chunks/{lib-BC6ESsxG.js → lib-SyD3buPZ.js} +1 -1
  24. data/dist/chunks/{pb_form_validation-B_Z9rEbg.js → pb_form_validation-Dt8UJgrJ.js} +1 -1
  25. data/dist/chunks/vendor.js +1 -1
  26. data/dist/playbook-doc.js +1 -1
  27. data/dist/playbook-rails-react-bindings.js +1 -1
  28. data/dist/playbook-rails.js +1 -1
  29. data/dist/playbook.css +1 -1
  30. data/lib/playbook/classnames.rb +0 -3
  31. data/lib/playbook/forms/builder/typeahead_field.rb +13 -0
  32. data/lib/playbook/kit_base.rb +1 -16
  33. data/lib/playbook/version.rb +1 -1
  34. metadata +6 -12
  35. data/app/pb_kits/playbook/tokens/_height.scss +0 -19
  36. data/app/pb_kits/playbook/tokens/exports/_height.module.scss +0 -37
  37. data/app/pb_kits/playbook/utilities/_height.scss +0 -33
  38. data/lib/playbook/height.rb +0 -29
  39. data/lib/playbook/max_height.rb +0 -29
  40. data/lib/playbook/min_height.rb +0 -29
@@ -17,11 +17,14 @@
17
17
  <%= pb_rails("text_input", props: {
18
18
  type: "search",
19
19
  input_options: object.input_options,
20
- label: object.label,
21
20
  name: object.name,
22
21
  value: object.value,
23
22
  placeholder: object.placeholder,
24
23
  margin_bottom: "none",
24
+ required: object.required,
25
+ validation: object.validation,
26
+ label: object.label,
27
+ id: object.input_options[:id],
25
28
  }) %>
26
29
  <%= pb_rails("list", props: { ordered: false, borderless: false, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
27
30
  <% end %>
@@ -33,4 +36,4 @@
33
36
  <% end %>
34
37
  </template>
35
38
  <% end %>
36
- <% end %>
39
+ <% end %>
@@ -40,6 +40,10 @@ module Playbook
40
40
  prop :pill_color, type: Playbook::Props::Enum,
41
41
  values: %w[primary neutral success warning error info data_1 data_2 data_3 data_4 data_5 data_6 data_7 data_8 windows siding roofing doors gutters solar insulation accessories],
42
42
  default: "primary"
43
+ prop :required, type: Playbook::Props::Boolean,
44
+ default: false
45
+ prop :validation, type: Playbook::Props::HashProp,
46
+ default: {}
43
47
 
44
48
  def classname
45
49
  default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
@@ -27,7 +27,3 @@
27
27
  .max_width_xxl {
28
28
  max-width: 1320px;
29
29
  }
30
-
31
- .width-resize {
32
- resize: horizontal;
33
- }
@@ -40,6 +40,6 @@
40
40
  min-width: $container_100;
41
41
  }
42
42
 
43
- .width-resize {
43
+ .minwidth-resize {
44
44
  resize: horizontal;
45
45
  }
@@ -7,6 +7,7 @@ export default [
7
7
  "right",
8
8
  "top",
9
9
  "hover",
10
+ "groupHover",
10
11
  "zIndex",
11
12
  "verticalAlign",
12
13
  "truncate",
@@ -361,30 +361,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
361
361
  css += maxWidth ? `max_width_${filterClassName(maxWidth)} ` : ''
362
362
  return css.trimEnd()
363
363
  },
364
- minHeightProps: ({ minHeight }: MinHeight) => {
365
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
366
- if (heightValues.includes(minHeight)) {
367
- let css = ''
368
- css += minHeight ? `min_height_${filterClassName(minHeight)} ` : ''
369
- return css.trimEnd()
370
- }
371
- },
372
- maxHeightProps: ({ maxHeight }: MaxHeight) => {
373
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
374
- if (heightValues.includes(maxHeight)) {
375
- let css = ''
376
- css += maxHeight ? `max_height_${filterClassName(maxHeight)} ` : ''
377
- return css.trimEnd()
378
- }
379
- },
380
- heightProps: ({ height }: Height) => {
381
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
382
- if (heightValues.includes(height)) {
383
- let css = ''
384
- css += height ? `height_${filterClassName(height)} ` : ''
385
- return css.trimEnd()
386
- }
387
- },
388
364
  zIndexProps: (zIndex: ZIndex) => {
389
365
  let css = ''
390
366
  Object.entries(zIndex).forEach((zIndexEntry) => {