playbook_ui 6.0.1.pre.alpha6 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -2
  3. data/app/pb_kits/playbook/data/menu.yml +2 -3
  4. data/app/pb_kits/playbook/index.js +0 -1
  5. data/app/pb_kits/playbook/packs/examples.js +0 -2
  6. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +2 -2
  7. data/app/pb_kits/playbook/pb_badge/_badge.jsx +5 -2
  8. data/app/pb_kits/playbook/pb_badge/_badge.scss +1 -1
  9. data/app/pb_kits/playbook/pb_badge/badge.rb +6 -1
  10. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +2 -2
  11. data/app/pb_kits/playbook/pb_body/_body.jsx +6 -3
  12. data/app/pb_kits/playbook/pb_body/_body.scss +0 -6
  13. data/app/pb_kits/playbook/pb_body/body.rb +8 -2
  14. data/app/pb_kits/playbook/pb_button/_button.jsx +5 -2
  15. data/app/pb_kits/playbook/pb_button/_button.scss +1 -1
  16. data/app/pb_kits/playbook/pb_button/button.rb +7 -1
  17. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -2
  18. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -2
  19. data/app/pb_kits/playbook/pb_card/_card.jsx +14 -17
  20. data/app/pb_kits/playbook/pb_card/_card.scss +1 -4
  21. data/app/pb_kits/playbook/pb_card/card.rb +9 -2
  22. data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +1 -1
  23. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +2 -2
  24. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +8 -4
  25. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +2 -2
  26. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +2 -0
  27. data/app/pb_kits/playbook/pb_contact/_contact.jsx +2 -2
  28. data/app/pb_kits/playbook/pb_currency/_currency.jsx +2 -2
  29. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js +0 -26
  30. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +2 -2
  31. data/app/pb_kits/playbook/pb_date/_date.jsx +4 -4
  32. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +2 -2
  33. data/app/pb_kits/playbook/pb_date_range_stacked/_date_range_stacked.jsx +2 -2
  34. data/app/pb_kits/playbook/pb_date_stacked/_date_stacked.jsx +2 -2
  35. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +2 -2
  36. data/app/pb_kits/playbook/pb_date_year_stacked/_date_year_stacked.jsx +2 -2
  37. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +2 -2
  38. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +2 -2
  39. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +2 -2
  40. data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -6
  41. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +2 -2
  42. data/app/pb_kits/playbook/pb_flex/_flex.jsx +2 -2
  43. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +2 -2
  44. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  45. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +0 -1
  46. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +1 -3
  47. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +1 -3
  48. data/app/pb_kits/playbook/pb_form/form_builder.rb +0 -2
  49. data/app/pb_kits/playbook/pb_form/form_builder/form_field_builder.rb +0 -1
  50. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -2
  51. data/app/pb_kits/playbook/pb_hashtag/_hashtag.jsx +2 -2
  52. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +2 -2
  53. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.jsx +2 -2
  54. data/app/pb_kits/playbook/pb_icon/_icon.jsx +2 -2
  55. data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_icon_value/_icon_value.jsx +2 -2
  57. data/app/pb_kits/playbook/pb_image/_image.jsx +2 -2
  58. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +2 -2
  59. data/app/pb_kits/playbook/pb_label_value/_label_value.jsx +2 -2
  60. data/app/pb_kits/playbook/pb_layout/_layout.jsx +6 -6
  61. data/app/pb_kits/playbook/pb_legend/_legend.jsx +2 -2
  62. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +2 -2
  63. data/app/pb_kits/playbook/pb_list/_list.jsx +2 -2
  64. data/app/pb_kits/playbook/pb_list/_list_item.jsx +2 -2
  65. data/app/pb_kits/playbook/pb_loading_inline/_loading_inline.jsx +2 -2
  66. data/app/pb_kits/playbook/pb_message/_message.jsx +2 -2
  67. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +2 -2
  68. data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.jsx +2 -2
  69. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
  70. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -2
  71. data/app/pb_kits/playbook/pb_person/_person.jsx +2 -2
  72. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +2 -2
  73. data/app/pb_kits/playbook/pb_pill/_pill.jsx +2 -2
  74. data/app/pb_kits/playbook/pb_popover/_popover.jsx +2 -2
  75. data/app/pb_kits/playbook/pb_progress_pills/_progress_pills.jsx +2 -2
  76. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +2 -2
  77. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +2 -2
  78. data/app/pb_kits/playbook/pb_radio/_radio.jsx +2 -2
  79. data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +2 -2
  80. data/app/pb_kits/playbook/pb_select/_select.jsx +2 -2
  81. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +2 -2
  82. data/app/pb_kits/playbook/pb_stat_change/_stat_change.jsx +2 -2
  83. data/app/pb_kits/playbook/pb_stat_value/_stat_value.jsx +2 -2
  84. data/app/pb_kits/playbook/pb_table/_table.jsx +2 -2
  85. data/app/pb_kits/playbook/pb_table/_table_row.jsx +2 -2
  86. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +2 -2
  87. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +2 -2
  88. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.jsx +2 -2
  89. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +2 -2
  90. data/app/pb_kits/playbook/pb_timestamp/_timestamp.jsx +2 -2
  91. data/app/pb_kits/playbook/pb_title/_title.jsx +2 -2
  92. data/app/pb_kits/playbook/pb_title_count/_title_count.jsx +2 -2
  93. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +2 -2
  94. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +2 -2
  95. data/app/pb_kits/playbook/pb_user/_user.jsx +2 -2
  96. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +2 -2
  97. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +2 -2
  98. data/app/pb_kits/playbook/plugins/pb_chart.js +0 -74
  99. data/app/pb_kits/playbook/props.rb +0 -6
  100. data/app/pb_kits/playbook/utilities/props.js +0 -1
  101. data/app/pb_kits/playbook/utilities/{globalProps.js → spacing.js} +1 -14
  102. data/lib/generators/kit/templates/kit_jsx.erb.tt +2 -2
  103. data/lib/playbook/version.rb +1 -1
  104. metadata +6 -34
  105. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +0 -26
  106. data/app/pb_kits/playbook/pb_gauge/_gauge.html.erb +0 -12
  107. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -110
  108. data/app/pb_kits/playbook/pb_gauge/_gauge.scss +0 -11
  109. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.html.erb +0 -11
  110. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_default.jsx +0 -17
  111. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.html.erb +0 -12
  112. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_disable_animation.jsx +0 -18
  113. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.html.erb +0 -14
  114. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_full_circle.jsx +0 -20
  115. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.html.erb +0 -15
  116. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_height.jsx +0 -23
  117. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_live_data.jsx +0 -40
  118. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.html.erb +0 -15
  119. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.jsx +0 -21
  120. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_min_max.md +0 -1
  121. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.html.erb +0 -26
  122. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.jsx +0 -37
  123. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_sizing.md +0 -1
  124. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.html.erb +0 -14
  125. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_title.jsx +0 -20
  126. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.html.erb +0 -29
  127. data/app/pb_kits/playbook/pb_gauge/docs/_gauge_units.jsx +0 -29
  128. data/app/pb_kits/playbook/pb_gauge/docs/example.yml +0 -24
  129. data/app/pb_kits/playbook/pb_gauge/docs/index.js +0 -9
  130. data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -57
  131. data/app/pb_kits/playbook/pb_logistic/_logistic.jsx +0 -111
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildCss } from '../utilities/props'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing as spacingFunc } from '../utilities/spacing.js'
7
7
  type FlexProps = {
8
8
  children: Array<React.ReactNode> | React.ReactNode,
9
9
  className?: String,
@@ -52,7 +52,7 @@ const Flex = (props: FlexProps) => {
52
52
  wrapClass
53
53
  ),
54
54
  className,
55
- globalProps(props)
55
+ spacingFunc(props)
56
56
  )}
57
57
  >
58
58
  {children}
@@ -2,7 +2,7 @@
2
2
  import React from 'react'
3
3
  import classnames from 'classnames'
4
4
  import { buildCss } from '../utilities/props'
5
- import { globalProps } from '../utilities/globalProps.js'
5
+ import { spacing } from '../utilities/spacing.js'
6
6
  type FlexItemPropTypes = {
7
7
  children: Array<React.ReactNode> | React.ReactNode,
8
8
  fixedSize: String,
@@ -18,7 +18,7 @@ const FlexItem = (props: FlexItemPropTypes) => {
18
18
 
19
19
  return (
20
20
  <div
21
- className={classnames(buildCss('pb_flex_item_kit', growClass), className, globalProps(props))}
21
+ className={classnames(buildCss('pb_flex_item_kit', growClass), className, spacing(props))}
22
22
  style={fixedStyle}
23
23
  >
24
24
  {children}
@@ -24,7 +24,6 @@
24
24
  <%= form.text_area :example_text_area, props: { label: true } %>
25
25
  <%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
26
26
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
27
- <%= form.check_box :example_checkbox, data: { field1: "value1", field2: "value2" }, props: { text: "Example Checkbox", label: true, value: "test-val" } %>
28
27
 
29
28
  <%= form.actions do |action| %>
30
29
  <%= action.submit %>
@@ -27,7 +27,6 @@
27
27
  <%= form.text_area :example_text_area, props: { label: true, required: true } %>
28
28
  <%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true, blank_selection: "Select One...", required: true } %>
29
29
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true, blank_selection: "Select One...", required: true } %>
30
- <%= form.check_box :example_checkbox, props: { text: "Example Checkbox", label: true, required: true } %>
31
30
 
32
31
  <%= form.actions do |action| %>
33
32
  <%= action.submit %>
@@ -13,8 +13,7 @@
13
13
  :example_url_field,
14
14
  :example_text_area,
15
15
  :example_select_field,
16
- :example_collection_select_field,
17
- :example_checkbox_field
16
+ :example_collection_select_field
18
17
 
19
18
 
20
19
  def self.model_name
@@ -50,7 +49,6 @@
50
49
  <%= form.input :example_text_area, as: :text %>
51
50
  <%= form.select :example_select_field, [["Yes", 1], ["No", 2]], props: { label: true } %>
52
51
  <%= form.collection_select :example_collection_select_field, example_collection, :value, :name, props: { label: true } %>
53
- <%= form.check_box :example_checkbox_field, props: { text: "Example Checkbox", label: true } %>
54
52
 
55
53
  <%= form.actions do |action| %>
56
54
  <%= action.submit %>
@@ -13,8 +13,7 @@
13
13
  :example_url_field,
14
14
  :example_text_area,
15
15
  :example_select_field,
16
- :example_collection_select_field,
17
- :example_checkbox_field
16
+ :example_collection_select_field
18
17
 
19
18
 
20
19
  def self.model_name
@@ -50,7 +49,6 @@
50
49
  <%= form.input :example_text_area, {as: :text, input_html: {props: {required: true}}} %>
51
50
  <%= form.select :example_select_field, [["Yes", 1], ["No", 2]], props: { required: true, blank_selection: "Select One...", label: true } %>
52
51
  <%= form.collection_select :example_collection_select_field, example_collection, :value, :name, props: { required: true, blank_selection: "Select One...", label: true } %>
53
- <%= form.check_box :example_checkbox_field, props: { text: "Example Checkbox", label: true, required: true } %>
54
52
 
55
53
  <%= form.actions do |action| %>
56
54
  <%= action.submit %>
@@ -14,11 +14,9 @@ module Playbook
14
14
  prepend(FormFieldBuilder.new(:password_field, kit_name: "text_input"))
15
15
  prepend(FormFieldBuilder.new(:url_field, kit_name: "text_input"))
16
16
  prepend(FormFieldBuilder.new(:text_area, kit_name: "textarea"))
17
- # prepend(FormFieldBuilder.new(:check_box, kit_name: "checkbox"))
18
17
  prepend(TypeaheadField)
19
18
  prepend(SelectField)
20
19
  prepend(CollectionSelectField)
21
- prepend(CheckboxField)
22
20
 
23
21
  def actions(&block)
24
22
  ActionArea.new(self).wrapper(&block)
@@ -12,7 +12,6 @@ module Playbook
12
12
  options[:skip_default_ids] = false unless options.key?(:skip_default_ids)
13
13
  options[:required] = true if props[:required]
14
14
  options[:placeholder] = props[:placeholder] || ""
15
- options[:value] = props[:value]
16
15
 
17
16
  if props.key?(:validation)
18
17
  validation = props[:validation]
@@ -4,7 +4,7 @@ import classnames from 'classnames'
4
4
  import Title from '../pb_title/_title.jsx'
5
5
  import Icon from '../pb_icon/_icon.jsx'
6
6
  import Avatar from '../pb_avatar/_avatar.jsx'
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  type FormPillProps = {
10
10
  className?: String,
@@ -19,7 +19,7 @@ const FormPill = (props: FormPillProps) => {
19
19
  const { className, text, name, onClick = () => {}, avatarUrl } = props
20
20
  const css = classnames(
21
21
  [`pb_form_pill_kit_${'primary'}`, className],
22
- globalProps(props)
22
+ spacing(props)
23
23
  )
24
24
  return (
25
25
  <div className={css}>
@@ -6,7 +6,7 @@ import classnames from 'classnames'
6
6
 
7
7
  import { Badge } from '../'
8
8
  import { buildCss } from '../utilities/props'
9
- import { globalProps } from '../utilities/globalProps.js'
9
+ import { spacing } from '../utilities/spacing.js'
10
10
 
11
11
  type HashtagProps = {
12
12
  className?: String,
@@ -32,7 +32,7 @@ const Hashtag = (props: HashtagProps) => {
32
32
  className={classnames(
33
33
  className,
34
34
  buildCss('pb_hashtag_kit', { dark: dark }),
35
- globalProps(props)
35
+ spacing(props)
36
36
  )}
37
37
  >
38
38
  <a href={url}>
@@ -3,7 +3,7 @@
3
3
  import Highlighter from 'react-highlight-words'
4
4
  import React from 'react'
5
5
  import classnames from 'classnames'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  type HighlightProps = {
9
9
  className?: String,
@@ -27,7 +27,7 @@ const Highlight = (props: HighlightProps) => {
27
27
  <Highlighter
28
28
  autoEscape
29
29
  data={data}
30
- highlightClassName={classnames(className, globalProps(props))}
30
+ highlightClassName={classnames(className, spacing(props))}
31
31
  highlightTag="span"
32
32
  id={id}
33
33
  searchWords={highlightedText}
@@ -5,7 +5,7 @@ import classnames from 'classnames'
5
5
 
6
6
  import { joinPresent, titleize } from '../utilities/text'
7
7
  import { Body, Hashtag, Title } from '../'
8
- import { globalProps } from '../utilities/globalProps.js'
8
+ import { spacing } from '../utilities/spacing.js'
9
9
 
10
10
  type HomeAddressStreetProps = {
11
11
  address: String,
@@ -45,7 +45,7 @@ const HomeAddressStreet = (props: HomeAddressStreetProps) => {
45
45
  'pb_home_address_street': !dark,
46
46
  'pb_home_address_street_dark': dark,
47
47
  },
48
- globalProps(props)
48
+ spacing(props)
49
49
  )
50
50
  return (
51
51
  <div className={classes(className, dark)}>
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
- import { globalProps } from '../utilities/globalProps.js'
5
+ import { spacing } from '../utilities/spacing.js'
6
6
 
7
7
  type IconProps = {
8
8
  aria?: Object,
@@ -72,7 +72,7 @@ const Icon = (props: IconProps) => {
72
72
  [`fa-pull-${pull}`]: pull,
73
73
  [`fa-rotate-${rotation}`]: rotation,
74
74
  },
75
- globalProps(props)
75
+ spacing(props)
76
76
  )
77
77
 
78
78
  return (
@@ -6,7 +6,7 @@ import classnames from 'classnames'
6
6
 
7
7
  import { Icon } from '../'
8
8
  import { buildCss } from '../utilities/props'
9
- import { globalProps } from '../utilities/globalProps.js'
9
+ import { spacing } from '../utilities/spacing.js'
10
10
 
11
11
  type IconCircleProps = {
12
12
  className?: string,
@@ -27,7 +27,7 @@ const IconCircle = (props: IconCircleProps) => {
27
27
  const css = buildCss('pb_icon_circle_kit', size, variant)
28
28
 
29
29
  return (
30
- <div className={classnames(className, css, globalProps(props))}>
30
+ <div className={classnames(className, css, spacing(props))}>
31
31
  <Icon icon={icon} />
32
32
  </div>
33
33
  )
@@ -6,7 +6,7 @@ import { Body, Icon } from '../'
6
6
 
7
7
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
8
8
 
9
- import { globalProps } from '../utilities/globalProps.js'
9
+ import { spacing } from '../utilities/spacing.js'
10
10
 
11
11
  type IconValueProps = {
12
12
  align?: "left" | "center" | "right",
@@ -36,7 +36,7 @@ const IconValue = (props: IconValueProps) => {
36
36
  <div
37
37
  {...ariaProps}
38
38
  {...dataProps}
39
- className={classnames(className, pbCss, globalProps(props))}
39
+ className={classnames(className, pbCss, spacing(props))}
40
40
  id={id}
41
41
  >
42
42
  <Body color="light">
@@ -2,8 +2,8 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
- import { globalProps } from '../utilities/globalProps.js'
6
5
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  type ImageProps = {
9
9
  alt?: String,
@@ -25,7 +25,7 @@ const Image = (props: ImageProps) => {
25
25
  } = props
26
26
 
27
27
  const ariaProps = buildAriaProps(aria)
28
- const classes = classnames(buildCss('pb_image lazyload blur_up'), className, globalProps(props))
28
+ const classes = classnames(buildCss('pb_image lazyload blur_up'), className, spacing(props))
29
29
  const dataProps = buildDataProps(data)
30
30
 
31
31
  return (
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
- import { globalProps } from '../utilities/globalProps.js'
5
+ import { spacing } from '../utilities/spacing.js'
6
6
 
7
7
  import { buildAriaProps, buildDataProps } from '../utilities/props'
8
8
 
@@ -30,7 +30,7 @@ const LabelPill = (props: LabelPillProps) => {
30
30
  } = props
31
31
  const ariaProps = buildAriaProps(aria)
32
32
  const dataProps = buildDataProps(data)
33
- const css = classnames(['pb_label_pill_kit', className], globalProps(props))
33
+ const css = classnames(['pb_label_pill_kit', className], spacing(props))
34
34
 
35
35
  return (
36
36
  <div
@@ -4,8 +4,8 @@ import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import DateTime from '../pb_kit/dateTime.js'
6
6
  import { buildAriaProps, buildDataProps } from '../utilities/props'
7
- import { globalProps } from '../utilities/globalProps.js'
8
7
  import { Body, Caption, Flex, Icon, Title } from '../'
8
+ import { spacing } from '../utilities/spacing.js'
9
9
 
10
10
  type LabelValueProps = {
11
11
  aria?: object,
@@ -53,7 +53,7 @@ const LabelValue = (props: LabelValueProps) => {
53
53
  const themeStyle = dark === true ? '_dark' : ''
54
54
  const css = classnames(
55
55
  ['pb_label_value_kit' + themeStyle, className],
56
- globalProps(props)
56
+ spacing(props)
57
57
  )
58
58
 
59
59
  return (
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
6
 
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  type LayoutPropTypes = {
10
10
  aria?: object,
@@ -46,7 +46,7 @@ type LayoutFooterProps = {
46
46
  const Side = (props: LayoutSideProps) => {
47
47
  const { children, className } = props
48
48
  return (
49
- <div className={classnames('layout_sidebar', className, globalProps(props))}>
49
+ <div className={classnames('layout_sidebar', className, spacing(props))}>
50
50
  {children}
51
51
  </div>
52
52
  )
@@ -56,7 +56,7 @@ const Side = (props: LayoutSideProps) => {
56
56
  const Body = (props: LayoutBodyProps) => {
57
57
  const { children, className } = props
58
58
  return (
59
- <div className={classnames('layout_body', className, globalProps(props))}>
59
+ <div className={classnames('layout_body', className, spacing(props))}>
60
60
  {children}
61
61
  </div>
62
62
  )
@@ -66,7 +66,7 @@ const Body = (props: LayoutBodyProps) => {
66
66
  const Header = (props: LayoutHeaderProps) => {
67
67
  const { children, className } = props
68
68
  return (
69
- <div className={classnames('layout_header', className, globalProps(props))}>
69
+ <div className={classnames('layout_header', className, spacing(props))}>
70
70
  {children}
71
71
  </div>
72
72
  )
@@ -76,7 +76,7 @@ const Header = (props: LayoutHeaderProps) => {
76
76
  const Footer = (props: LayoutFooterProps) => {
77
77
  const { children, className } = props
78
78
  return (
79
- <div className={classnames('layout_footer', className, globalProps(props))}>
79
+ <div className={classnames('layout_footer', className, spacing(props))}>
80
80
  {children}
81
81
  </div>
82
82
  )
@@ -148,7 +148,7 @@ const Layout = (props: LayoutPropTypes) => {
148
148
  layoutCss,
149
149
  layoutCollapseCss,
150
150
  className,
151
- globalProps(props)
151
+ spacing(props)
152
152
  )}
153
153
  >
154
154
  {subComponentTags('Side')}
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  import { Body, Title } from '../'
9
9
 
@@ -41,7 +41,7 @@ const Legend = (props: LegendProps) => {
41
41
  const darkClass = dark ? 'dark' : 'light'
42
42
  const bodyCSS = classnames(
43
43
  buildCss('pb_legend_kit', color, darkClass), className,
44
- globalProps(props)
44
+ spacing(props)
45
45
  )
46
46
 
47
47
  return (
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
- import { globalProps } from '../utilities/globalProps.js'
5
+ import { spacing } from '../utilities/spacing.js'
6
6
  import { pbChart } from '../'
7
7
 
8
8
  type LineGraphProps = {
@@ -77,7 +77,7 @@ export default class LineGraph extends React.Component<LineGraphProps> {
77
77
 
78
78
  return (
79
79
  <div
80
- className={classnames(className, globalProps(this.props))}
80
+ className={classnames(className, spacing(this.props))}
81
81
  id={id}
82
82
  />
83
83
  )
@@ -3,7 +3,7 @@
3
3
  import React, { type Node } from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  type ListProps = {
9
9
  aria?: object,
@@ -53,7 +53,7 @@ const List = (props: ListProps) => {
53
53
  ordered: ordered,
54
54
  xpadding: xpadding,
55
55
  }), className,
56
- globalProps(props)
56
+ spacing(props)
57
57
  )
58
58
 
59
59
  return (
@@ -3,7 +3,7 @@
3
3
  import React, { type Node } from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  type ListItemProps = {
9
9
  aria?: object,
@@ -28,7 +28,7 @@ const ListItem = (props: ListItemProps) => {
28
28
  const dataProps = buildDataProps(data)
29
29
  const classes = classnames(
30
30
  buildCss('pb_item_kit'), className,
31
- globalProps(props)
31
+ spacing(props)
32
32
  )
33
33
 
34
34
  return (
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { Body, Icon } from '../'
6
6
 
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  type LoadingInlineProps = {
10
10
  align?: "left" | "center" | "right",
@@ -18,7 +18,7 @@ const LoadingInline = (props: LoadingInlineProps) => {
18
18
  const { align = 'left' } = props
19
19
  return (
20
20
  <div
21
- className={classnames(`pb_loading_inline_kit_${align}`, globalProps(props))}
21
+ className={classnames(`pb_loading_inline_kit_${align}`, spacing(props))}
22
22
  >
23
23
  <Body color="light">
24
24
  <Icon