playbook_ui 14.8.0.pre.alpha.PLAY1680newwidthprop4661 → 14.8.0.pre.alpha.PLAY16254545

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -2
  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 +12 -63
  12. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +1 -2
  13. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -47
  14. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -59
  15. data/app/pb_kits/playbook/pb_typeahead/index.ts +3 -29
  16. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -5
  17. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
  18. data/app/pb_kits/playbook/utilities/_max_width.scss +9 -29
  19. data/app/pb_kits/playbook/utilities/_min_width.scss +2 -6
  20. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -1
  21. data/app/pb_kits/playbook/utilities/globalProps.ts +4 -37
  22. data/dist/chunks/{_typeahead-Bg7nPSBj.js → _typeahead-D0PihN_3.js} +2 -2
  23. data/dist/chunks/{_weekday_stacked-9V0rzCNn.js → _weekday_stacked-uMIX8f-A.js} +1 -1
  24. data/dist/chunks/{lib-SyD3buPZ.js → lib-BC6ESsxG.js} +1 -1
  25. data/dist/chunks/{pb_form_validation-Dt8UJgrJ.js → pb_form_validation-B_Z9rEbg.js} +1 -1
  26. data/dist/chunks/vendor.js +1 -1
  27. data/dist/menu.yml +0 -321
  28. data/dist/playbook-doc.js +1 -1
  29. data/dist/playbook-rails-react-bindings.js +1 -1
  30. data/dist/playbook-rails.js +1 -1
  31. data/dist/playbook.css +1 -1
  32. data/lib/playbook/classnames.rb +0 -4
  33. data/lib/playbook/forms/builder/typeahead_field.rb +0 -13
  34. data/lib/playbook/kit_base.rb +1 -16
  35. data/lib/playbook/spacing.rb +0 -21
  36. data/lib/playbook/version.rb +1 -1
  37. metadata +6 -13
  38. data/app/pb_kits/playbook/tokens/_height.scss +0 -19
  39. data/app/pb_kits/playbook/tokens/exports/_height.module.scss +0 -37
  40. data/app/pb_kits/playbook/utilities/_height.scss +0 -33
  41. data/app/pb_kits/playbook/utilities/_width.scss +0 -45
  42. data/lib/playbook/height.rb +0 -29
  43. data/lib/playbook/max_height.rb +0 -29
  44. data/lib/playbook/min_height.rb +0 -29
@@ -95,16 +95,12 @@ type Margin = {
95
95
  default?: string
96
96
  }
97
97
 
98
- type Width = {
99
- width?: string
100
- }
101
-
102
98
  type MaxWidth = {
103
- maxWidth?: string,
99
+ maxWidth?: Sizes,
104
100
  }
105
101
 
106
102
  type MinWidth = {
107
- minWidth?: string,
103
+ minWidth?: Sizes,
108
104
  }
109
105
 
110
106
  type NumberSpacing = {
@@ -180,7 +176,7 @@ type ZIndex = {
180
176
  } | ZIndexResponsiveType
181
177
 
182
178
  type Height = {
183
- height?: string
179
+ height?: string
184
180
  }
185
181
 
186
182
  type MaxHeight = {
@@ -195,7 +191,7 @@ type MinHeight = {
195
191
  export type GlobalProps = AlignContent & AlignItems & AlignSelf &
196
192
  BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
197
193
  FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
198
- LineHeight & Margin & Width & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
194
+ LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
199
195
  Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left & Height & MaxHeight & MinHeight;
200
196
 
201
197
  const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
@@ -355,11 +351,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
355
351
  css += numberSpacing ? `ns_${numberSpacing} ` : ''
356
352
  return css
357
353
  },
358
- widthProps: ({ width }: Width) => {
359
- let css = ''
360
- css += width ? `width_${filterClassName(width)} ` : ''
361
- return css.trimEnd()
362
- },
363
354
  minWidthProps: ({ minWidth }: MinWidth) => {
364
355
  let css = ''
365
356
  css += minWidth ? `min_width_${filterClassName(minWidth)} ` : ''
@@ -370,30 +361,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
370
361
  css += maxWidth ? `max_width_${filterClassName(maxWidth)} ` : ''
371
362
  return css.trimEnd()
372
363
  },
373
- minHeightProps: ({ minHeight }: MinHeight) => {
374
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
375
- if (heightValues.includes(minHeight)) {
376
- let css = ''
377
- css += minHeight ? `min_height_${filterClassName(minHeight)} ` : ''
378
- return css.trimEnd()
379
- }
380
- },
381
- maxHeightProps: ({ maxHeight }: MaxHeight) => {
382
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
383
- if (heightValues.includes(maxHeight)) {
384
- let css = ''
385
- css += maxHeight ? `max_height_${filterClassName(maxHeight)} ` : ''
386
- return css.trimEnd()
387
- }
388
- },
389
- heightProps: ({ height }: Height) => {
390
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
391
- if (heightValues.includes(height)) {
392
- let css = ''
393
- css += height ? `height_${filterClassName(height)} ` : ''
394
- return css.trimEnd()
395
- }
396
- },
397
364
  zIndexProps: (zIndex: ZIndex) => {
398
365
  let css = ''
399
366
  Object.entries(zIndex).forEach((zIndexEntry) => {