playbook_ui 13.5.0.pre.alpha.PLAY823globalpropoverflow1188 → 13.5.0.pre.alpha.play984collapsiblekithidestooltips1203

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/pb_body/_body.tsx +1 -1
  3. data/app/pb_kits/playbook/pb_caption/_caption.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_card/card.rb +1 -1
  5. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +1 -1
  6. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +0 -1
  7. data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +26 -22
  8. data/app/pb_kits/playbook/pb_collapsible/index.js +4 -0
  9. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb +2 -2
  10. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +1 -1
  11. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +2 -2
  12. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.tsx +1 -1
  13. data/app/pb_kits/playbook/pb_file_upload/file_upload.rb +1 -1
  14. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +0 -1
  15. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +6 -6
  16. data/app/pb_kits/playbook/pb_passphrase/passphrase.rb +1 -1
  17. data/app/pb_kits/playbook/pb_radio/radio.rb +1 -1
  18. data/app/pb_kits/playbook/pb_select/select.rb +1 -1
  19. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +1 -1
  20. data/app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb +1 -1
  21. data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb +1 -1
  22. data/app/pb_kits/playbook/pb_selectable_list/selectable_list_item.rb +1 -1
  23. data/app/pb_kits/playbook/pb_source/source.rb +1 -1
  24. data/app/pb_kits/playbook/pb_table/docs/_table_header.html.erb +31 -27
  25. data/app/pb_kits/playbook/pb_table/docs/_table_header.md +8 -1
  26. data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +20 -1
  27. data/app/pb_kits/playbook/pb_table/table_header.html.erb +23 -49
  28. data/app/pb_kits/playbook/pb_table/table_header.rb +34 -6
  29. data/app/pb_kits/playbook/pb_text_input/text_input.rb +2 -2
  30. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.tsx +1 -1
  31. data/app/pb_kits/playbook/pb_title/_title.tsx +1 -1
  32. data/app/pb_kits/playbook/pb_toggle/toggle.rb +1 -1
  33. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -1
  34. data/app/pb_kits/playbook/utilities/globalProps.ts +7 -7
  35. data/dist/playbook-rails.js +3 -3
  36. data/lib/playbook/kit_base.rb +2 -2
  37. data/lib/playbook/props/base.rb +1 -1
  38. data/lib/playbook/props/hash.rb +1 -1
  39. data/lib/playbook/version.rb +1 -1
  40. metadata +2 -2
@@ -11,7 +11,7 @@ module Playbook
11
11
  prop :error
12
12
  prop :inline, type: Playbook::Props::Boolean,
13
13
  default: false
14
- prop :input_options, type: Playbook::Props::Hash,
14
+ prop :input_options, type: Playbook::Props::HashProp,
15
15
  default: {}
16
16
  prop :label
17
17
  prop :name
@@ -19,7 +19,7 @@ module Playbook
19
19
  prop :required, type: Playbook::Props::Boolean,
20
20
  default: false
21
21
  prop :type, default: "text"
22
- prop :validation, type: Playbook::Props::Hash,
22
+ prop :validation, type: Playbook::Props::HashProp,
23
23
  default: {}
24
24
  prop :value
25
25
  prop :add_on, type: Playbook::Props::NestedProps,
@@ -20,7 +20,7 @@ type TimeStackedProps = {
20
20
  }
21
21
 
22
22
  const TimeStackedDefault = (props: TimeStackedProps): React.ReactElement => {
23
- if (props.date) deprecatedProps('Time Stacked', ['date']) //date prop is deprecated, use time instead
23
+ if (props.date) deprecatedProps() //date prop is deprecated, use time instead
24
24
 
25
25
  const {
26
26
  align = 'left',
@@ -22,7 +22,7 @@ type TitleProps = {
22
22
  } & GlobalProps
23
23
 
24
24
  const Title = (props: TitleProps): React.ReactElement => {
25
- if (props.variant) deprecatedProps('Title', ['variant']) //variant prop is deprecated, use color instead
25
+ if (props.variant) deprecatedProps() //variant prop is deprecated, use color instead
26
26
  const {
27
27
  aria = {},
28
28
  children,
@@ -5,7 +5,7 @@ require "action_view"
5
5
  module Playbook
6
6
  module PbToggle
7
7
  class Toggle < Playbook::KitBase
8
- prop :input_options, type: Playbook::Props::Hash,
8
+ prop :input_options, type: Playbook::Props::HashProp,
9
9
  default: {}
10
10
 
11
11
  prop :checked, type: Playbook::Props::Boolean,
@@ -19,7 +19,7 @@ module Playbook
19
19
  prop :name
20
20
  prop :options, type: Playbook::Props::HashArray,
21
21
  default: []
22
- prop :input_options, type: Playbook::Props::Hash,
22
+ prop :input_options, type: Playbook::Props::HashProp,
23
23
  default: {}
24
24
 
25
25
  prop :is_multi, type: Playbook::Props::Boolean,
@@ -432,13 +432,13 @@ export const globalProps = (props: GlobalProps, defaultProps: DefaultProps = {})
432
432
  }
433
433
 
434
434
 
435
- export const deprecatedProps = (kit: string, props: string[] = []): void => {
436
- if (process.env.NODE_ENV === 'development') {
437
- /* eslint no-console: ["error", { allow: ["warn", "error"] }] */
438
- props.forEach((prop) => {
439
- console.warn(`${kit} Kit: The prop '${prop}' is deprecated and will be removed in a future release!`)
440
- })
441
- }
435
+ export const deprecatedProps = (): void => {
436
+ // if (process.env.NODE_ENV === 'development') {
437
+ // /* eslint no-console: ["error", { allow: ["warn", "error"] }] */
438
+ // props.forEach((prop) => {
439
+ // console.warn(`${kit} Kit: The prop '${prop}' is deprecated and will be removed in a future release!`)
440
+ // })
441
+ // }
442
442
  }
443
443
 
444
444
  export const domSafeProps = (props: {[key: string]: string}): {[key: string]: string} => {