playbook_ui 14.8.0.pre.alpha.PLAY1615movenegativetoleftofcurrencysign4543 → 14.8.0.pre.alpha.PLAY1658tanstackbump4657

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -0
  3. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +2 -2
  4. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -4
  5. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +84 -7
  6. data/app/pb_kits/playbook/pb_currency/_currency.tsx +3 -7
  7. data/app/pb_kits/playbook/pb_currency/currency.html.erb +2 -2
  8. data/app/pb_kits/playbook/pb_currency/currency.rb +1 -17
  9. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -0
  10. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +0 -1
  11. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +0 -4
  12. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
  13. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +63 -12
  15. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +2 -1
  16. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +47 -0
  17. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +59 -0
  18. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +3 -0
  19. data/app/pb_kits/playbook/pb_typeahead/index.ts +29 -3
  20. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +5 -2
  21. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +4 -0
  22. data/app/pb_kits/playbook/tokens/_height.scss +19 -0
  23. data/app/pb_kits/playbook/tokens/exports/_height.module.scss +37 -0
  24. data/app/pb_kits/playbook/utilities/_height.scss +33 -0
  25. data/app/pb_kits/playbook/utilities/_max_width.scss +4 -0
  26. data/app/pb_kits/playbook/utilities/_min_width.scss +1 -1
  27. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -1
  28. data/app/pb_kits/playbook/utilities/globalProps.ts +24 -0
  29. data/dist/chunks/{_typeahead-D0PihN_3.js → _typeahead-C8Q_fFYF.js} +2 -2
  30. data/dist/chunks/_weekday_stacked-BmcCeSXm.js +45 -0
  31. data/dist/chunks/{lib-BC6ESsxG.js → lib-SyD3buPZ.js} +1 -1
  32. data/dist/chunks/{pb_form_validation-B_Z9rEbg.js → pb_form_validation-Dt8UJgrJ.js} +1 -1
  33. data/dist/chunks/vendor.js +1 -1
  34. data/dist/menu.yml +321 -0
  35. data/dist/playbook-doc.js +1 -1
  36. data/dist/playbook-rails-react-bindings.js +1 -1
  37. data/dist/playbook-rails.js +1 -1
  38. data/dist/playbook.css +1 -1
  39. data/lib/playbook/classnames.rb +3 -0
  40. data/lib/playbook/forms/builder/typeahead_field.rb +13 -0
  41. data/lib/playbook/height.rb +29 -0
  42. data/lib/playbook/kit_base.rb +16 -1
  43. data/lib/playbook/max_height.rb +29 -0
  44. data/lib/playbook/min_height.rb +29 -0
  45. data/lib/playbook/version.rb +1 -1
  46. metadata +12 -6
  47. data/dist/chunks/_weekday_stacked-CVx1CzK-.js +0 -45
@@ -0,0 +1,37 @@
1
+ @import "../height";
2
+
3
+ :export {
4
+ @mixin export_height($height_list) {
5
+ @each $name, $value in $height_list {
6
+ .#{$name} {
7
+ height: $value;
8
+ }
9
+ }
10
+ }
11
+
12
+ @include export_height($heights);
13
+ }
14
+
15
+ :export {
16
+ @mixin export_max_height($height_list) {
17
+ @each $name, $value in $height_list {
18
+ .max_#{$name} {
19
+ max-height: $value;
20
+ }
21
+ }
22
+ }
23
+
24
+ @include export_max_height($heights);
25
+ }
26
+
27
+ :export {
28
+ @mixin export_min_height($height_list) {
29
+ @each $name, $value in $height_list {
30
+ .min_#{$name} {
31
+ min-height: $value;
32
+ }
33
+ }
34
+ }
35
+
36
+ @include export_min_height($heights);
37
+ }
@@ -0,0 +1,33 @@
1
+ @import "../tokens/exports/height.module";
2
+
3
+ @mixin export_height($height_list) {
4
+ @each $name, $value in $height_list {
5
+ .#{$name} {
6
+ height: $value;
7
+ }
8
+ }
9
+ }
10
+
11
+ @mixin export_max_height($height_list) {
12
+ @each $name, $value in $height_list {
13
+ .max_#{$name} {
14
+ max-height: $value;
15
+ }
16
+ }
17
+ }
18
+
19
+ @mixin export_min_height($height_list) {
20
+ @each $name, $value in $height_list {
21
+ .min_#{$name} {
22
+ min-height: $value;
23
+ }
24
+ }
25
+ }
26
+
27
+ @include export_height($heights);
28
+ @include export_max_height($heights);
29
+ @include export_min_height($heights);
30
+
31
+ .height-resize {
32
+ resize: vertical;
33
+ }
@@ -27,3 +27,7 @@
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
- .minwidth-resize {
43
+ .width-resize {
44
44
  resize: horizontal;
45
45
  }
@@ -7,7 +7,6 @@ export default [
7
7
  "right",
8
8
  "top",
9
9
  "hover",
10
- "groupHover",
11
10
  "zIndex",
12
11
  "verticalAlign",
13
12
  "truncate",
@@ -361,6 +361,30 @@ 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
+ },
364
388
  zIndexProps: (zIndex: ZIndex) => {
365
389
  let css = ''
366
390
  Object.entries(zIndex).forEach((zIndexEntry) => {