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
@@ -8,7 +8,7 @@
8
8
  @include pb_card_selected;
9
9
  }
10
10
 
11
- &.dark {
11
+ &[class*=_dark] {
12
12
  @include pb_card_dark;
13
13
 
14
14
  &[class*=_selected] {
@@ -40,9 +40,6 @@
40
40
  flex-basis: auto;
41
41
  min-height: 1px;
42
42
  border: 0;
43
- &.dark {
44
- @include pb_card_dark;
45
- }
46
43
  }
47
44
 
48
45
  @each $name, $shadow in $box_shadows {
@@ -13,6 +13,8 @@ module Playbook
13
13
  default: "none"
14
14
  prop :highlight, type: Playbook::Props::Hash,
15
15
  default: {}
16
+ prop :dark, type: Playbook::Props::Boolean,
17
+ default: false
16
18
  prop :border_none, type: Playbook::Props::Boolean,
17
19
  default: false
18
20
 
@@ -22,13 +24,14 @@ module Playbook
22
24
  shadow_class,
23
25
  highlight_position_class,
24
26
  highlight_color_class,
27
+ dark_class,
25
28
  border_class)
26
29
  end
27
30
 
28
31
  def body_padding
29
- if padding.present?
32
+ if padding.present?
30
33
  ""
31
- else
34
+ else
32
35
  "p_md"
33
36
  end
34
37
  end
@@ -52,6 +55,10 @@ module Playbook
52
55
  highlight[:color].present? ? "highlight_#{highlight[:color]}" : nil
53
56
  end
54
57
 
58
+ def dark_class
59
+ dark ? "dark" : nil
60
+ end
61
+
55
62
  def border_class
56
63
  border_none == true ? "border_none" : nil
57
64
  end
@@ -1,3 +1,3 @@
1
1
  <%= pb_rails("card", props: { dark: true }) do %>
2
- Card Content
2
+ Dark Card content
3
3
  <% end %>
@@ -5,7 +5,7 @@ import Body from '../pb_body/_body.jsx'
5
5
  import Icon from '../pb_icon/_icon.jsx'
6
6
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
7
7
  import classnames from 'classnames'
8
- import { globalProps } from '../utilities/globalProps.js'
8
+ import { spacing } from '../utilities/spacing.js'
9
9
 
10
10
  type CheckboxProps = {
11
11
  aria?: object,
@@ -41,7 +41,7 @@ const Checkbox = (props: CheckboxProps) => {
41
41
  const dataProps = buildDataProps(data)
42
42
  const ariaProps = buildAriaProps(aria)
43
43
  const classes = classnames(buildCss('pb_checkbox_kit',
44
- { checked: checked, error: error }), className, globalProps(props))
44
+ { dark: dark, checked: checked, error: error }), className, spacing(props))
45
45
 
46
46
  return (
47
47
  <label
@@ -7,23 +7,23 @@ module Playbook
7
7
  include ActionView::Helpers::FormTagHelper
8
8
  include ActionView::Context
9
9
 
10
+
11
+
10
12
  partial "pb_checkbox/checkbox"
11
13
 
14
+ prop :dark, type: Playbook::Props::Boolean, default: false
12
15
  prop :error, type: Playbook::Props::Boolean, default: false
13
16
  prop :checked, type: Playbook::Props::Boolean, default: false
14
17
  prop :text
15
18
  prop :value
16
19
  prop :name
17
20
 
18
- prop :required, type: Playbook::Props::Boolean,
19
- default: false
20
-
21
21
  def checked_html
22
22
  checked ? "checked='true'" : nil
23
23
  end
24
24
 
25
25
  def classname
26
- generate_classname("pb_checkbox_kit", checked_class) + error_class
26
+ generate_classname("pb_checkbox_kit", dark_class, checked_class) + error_class
27
27
  end
28
28
 
29
29
  def input
@@ -43,6 +43,10 @@ module Playbook
43
43
  def checked_class
44
44
  checked ? "on" : "off"
45
45
  end
46
+
47
+ def dark_class
48
+ dark ? "dark" : nil
49
+ end
46
50
  end
47
51
  end
48
52
  end
@@ -11,7 +11,7 @@ import {
11
11
  noop,
12
12
  } from '../utilities/props'
13
13
 
14
- import { globalProps } from '../utilities/globalProps.js'
14
+ import { spacing } from '../utilities/spacing.js'
15
15
 
16
16
  type CircleIconButtonProps = {
17
17
  aria?: object,
@@ -46,7 +46,7 @@ const CircleIconButton = (props: CircleIconButtonProps) => {
46
46
 
47
47
  const ariaProps = buildAriaProps(aria)
48
48
  const dataProps = buildDataProps(data)
49
- const classes = classnames(buildCss('pb_circle_icon_button_kit'), className, globalProps(props))
49
+ const classes = classnames(buildCss('pb_circle_icon_button_kit'), className, spacing(props))
50
50
 
51
51
  return (
52
52
  <div
@@ -14,6 +14,8 @@ module Playbook
14
14
  prop :disabled, type: Playbook::Props::Boolean,
15
15
  default: false
16
16
  prop :icon, required: true
17
+ prop :dark, type: Playbook::Props::Boolean,
18
+ default: false
17
19
  prop :link
18
20
  prop :new_window, type: Playbook::Props::Boolean,
19
21
  default: false
@@ -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 { Body, Caption, Icon } from '../'
7
7
 
8
8
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
@@ -58,7 +58,7 @@ const Contact = (props: ContactProps) => {
58
58
  id } = props
59
59
  const ariaProps = buildAriaProps(aria)
60
60
  const dataProps = buildDataProps(data)
61
- const classes = classnames(buildCss('pb_contact_kit'), className, globalProps(props))
61
+ const classes = classnames(buildCss('pb_contact_kit'), className, spacing(props))
62
62
 
63
63
  return (
64
64
  <div
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
 
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
  import { Body, Caption, Title } from '../'
8
8
  import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
9
9
 
@@ -45,7 +45,7 @@ const Currency = (props: CurrencyProps) => {
45
45
  const [whole, decimal = '00'] = amount.split('.')
46
46
  const ariaProps = buildAriaProps(aria)
47
47
  const dataProps = buildDataProps(data)
48
- const classes = classnames(buildCss('pb_currency_kit', align, size, { dark: dark }), className, globalProps(props))
48
+ const classes = classnames(buildCss('pb_currency_kit', align, size, { dark: dark }), className, spacing(props))
49
49
 
50
50
  return (
51
51
  <div
@@ -124,13 +124,6 @@ const highchartsTheme = {
124
124
  fontSize: typography.text_smaller,
125
125
  },
126
126
  },
127
- // specific to gauge
128
- // unfilled gauge color
129
- pane: {
130
- background: {
131
- borderColor: colors.border_light,
132
- },
133
- },
134
127
 
135
128
  plotOptions: {
136
129
  series: {
@@ -151,25 +144,6 @@ const highchartsTheme = {
151
144
  threshold: null,
152
145
  },
153
146
 
154
- // GAUGE STYLES
155
- solidgauge: {
156
- borderColor: colors.primary,
157
- borderWidth: 20,
158
- radius: 90,
159
- innerRadius: '90%',
160
- dataLabels: {
161
- borderWidth: 0,
162
- color: colors.text_lt_default,
163
- enabled: true,
164
- style: {
165
- fontFamily: typography.font_family_base,
166
- fontWeight: typography.regular,
167
- fontSize: typography.heading_2,
168
- },
169
- y: -26,
170
- },
171
- },
172
-
173
147
  // PIE STYLES
174
148
  pie: {
175
149
  colors: [
@@ -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
  import {
8
8
  Body,
9
9
  StatChange,
@@ -41,7 +41,7 @@ const DashboardValue = (props: DashboardValueProps) => {
41
41
 
42
42
  const ariaProps = buildAriaProps(aria)
43
43
  const dataProps = buildDataProps(data)
44
- const classes = classnames(buildCss('pb_dashboard_value_kit', align), className, globalProps(props))
44
+ const classes = classnames(buildCss('pb_dashboard_value_kit', align), className, spacing(props))
45
45
 
46
46
  return (
47
47
  <div
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import DateTime from '../pb_kit/dateTime.js'
5
5
  import { Icon } from '../'
6
6
  import classnames from 'classnames'
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  const defaultDateString = (value: DateTime) => {
10
10
  const weekday = value.toWeekday().toUpperCase()
@@ -26,13 +26,13 @@ type DateSubcomponent = {
26
26
  }
27
27
 
28
28
  const ExtraSmallDate = ({ value, ...props }: DateSubcomponent) => (
29
- <h3 className={classnames('pb_title_kit_4', globalProps(props))}>
29
+ <h3 className={classnames('pb_title_kit_4', spacing(props))}>
30
30
  {defaultDateString(value)}
31
31
  </h3>
32
32
  )
33
33
 
34
34
  const SmallDate = ({ value, ...props }: DateSubcomponent) => (
35
- <h3 className={classnames('pb_title_kit_4', globalProps(props))}>
35
+ <h3 className={classnames('pb_title_kit_4', spacing(props))}>
36
36
  <Icon
37
37
  fixedWidth
38
38
  icon="calendar"
@@ -42,7 +42,7 @@ const SmallDate = ({ value, ...props }: DateSubcomponent) => (
42
42
  )
43
43
 
44
44
  const LargeDate = ({ value, ...props }: DateSubcomponent) => (
45
- <h3 className={classnames('pb_title_kit_3', globalProps(props))}>
45
+ <h3 className={classnames('pb_title_kit_3', spacing(props))}>
46
46
  {largeDateString(value)}
47
47
  </h3>
48
48
  )
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import DateTime from '../pb_kit/dateTime.js'
5
5
  import { Body, Icon } from '../'
6
6
  import classnames from 'classnames'
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  type DateRangeInlineProps = {
10
10
  className?: String,
@@ -27,7 +27,7 @@ const dateTimeIso = (dateValue) => {
27
27
  const DateRangeInline = (props: DateRangeInlineProps) => {
28
28
  const { endDate, startDate } = props
29
29
  return (
30
- <div className={classnames('pb_date_range_inline', globalProps(props))}>
30
+ <div className={classnames('pb_date_range_inline', spacing(props))}>
31
31
  <Body
32
32
  color="light"
33
33
  tag="span"
@@ -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 } from '../utilities/spacing.js'
7
7
 
8
8
  import { Body, DateYearStacked, Flex, FlexItem, Icon } from '../'
9
9
 
@@ -18,7 +18,7 @@ type DateRangeStackedProps = {
18
18
 
19
19
  const DateRangeStacked = (props: DateRangeStackedProps) => {
20
20
  const { className, dark = false, endDate, startDate } = props
21
- const css = classnames(className, buildCss('pb_date_range_stacked'), globalProps(props))
21
+ const css = classnames(className, buildCss('pb_date_range_stacked'), spacing(props))
22
22
 
23
23
  return (
24
24
  <div className={css}>
@@ -5,7 +5,7 @@ import classnames from 'classnames'
5
5
  import DateTime from '../pb_kit/dateTime.js'
6
6
  import { buildCss } from '../utilities/props'
7
7
  import { Caption, Title } from '../'
8
- import { globalProps } from '../utilities/globalProps.js'
8
+ import { spacing } from '../utilities/spacing.js'
9
9
 
10
10
  type DateStackedProps = {
11
11
  align?: "left" | "center" | "right",
@@ -38,7 +38,7 @@ const DateStacked = (props: DateStackedProps) => {
38
38
  dark: dark,
39
39
  reverse: reverse,
40
40
  }),
41
- globalProps(props)
41
+ spacing(props)
42
42
  )
43
43
 
44
44
  const currentYear = new Date().getFullYear().toString()
@@ -2,7 +2,7 @@
2
2
 
3
3
  import React from 'react'
4
4
  import { DateStacked, Flex, FlexItem, TimeStacked } from '../'
5
- import { globalProps } from '../utilities/globalProps.js'
5
+ import { spacing } from '../utilities/spacing.js'
6
6
 
7
7
  type DateTimeStackedProps = {
8
8
  data?: String,
@@ -15,7 +15,7 @@ const DateTimeStacked = (props: DateTimeStackedProps) => {
15
15
  const { date, dark } = props
16
16
  return (
17
17
  <Flex
18
- className={globalProps(props)}
18
+ className={spacing(props)}
19
19
  orientation="row"
20
20
  vertical="center"
21
21
  >
@@ -4,7 +4,7 @@ import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { buildCss } from '../utilities/props'
6
6
  import DateTime from '../pb_kit/dateTime.js'
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  import { Body, Title } from '../'
10
10
 
@@ -20,7 +20,7 @@ type DateYearStackedProps = {
20
20
  const DateYearStacked = (props: DateYearStackedProps) => {
21
21
  const { align = 'left', className, dark = false, date } = props
22
22
  const dateTimestamp = new DateTime({ value: date })
23
- const css = classnames(className, buildCss('pb_date_year_stacked', align), globalProps(props))
23
+ const css = classnames(className, buildCss('pb_date_year_stacked', align), spacing(props))
24
24
 
25
25
  return (
26
26
  <div className={css}>
@@ -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 DistributionBarProps = {
8
8
  className?: String,
@@ -37,7 +37,7 @@ const DistributionBar = (props: DistributionBarProps) => {
37
37
  const normalizedValues = normalizeCharacters(widths)
38
38
 
39
39
  return (
40
- <div className={classnames(`pb_distribution_bar_${size}`, globalProps(props))}>
40
+ <div className={classnames(`pb_distribution_bar_${size}`, spacing(props))}>
41
41
  {barValues(normalizedValues)}
42
42
  </div>
43
43
  )
@@ -4,7 +4,7 @@ import React, { useCallback } from 'react'
4
4
  import { useDropzone } from 'react-dropzone'
5
5
  import { buildCss, noop } from '../utilities/props'
6
6
  import classnames from 'classnames'
7
- import { globalProps } from '../utilities/globalProps.js'
7
+ import { spacing } from '../utilities/spacing.js'
8
8
 
9
9
  import type { Callback } from '../types.js'
10
10
 
@@ -33,7 +33,7 @@ const FileUpload = (props: FileUploadProps) => {
33
33
 
34
34
  return (
35
35
  <div
36
- className={classnames(buildCss('pb_file_upload_kit', className), globalProps(props))}
36
+ className={classnames(buildCss('pb_file_upload_kit', className), spacing(props))}
37
37
  {...getRootProps()}
38
38
  >
39
39
  <Card>
@@ -3,7 +3,7 @@
3
3
  import React, { Node } from 'react'
4
4
  import { Card } from '../../'
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 FilterBackgroundProps = {
9
9
  background: boolean,
@@ -14,7 +14,7 @@ const FilterBackground = (props: FilterBackgroundProps) => {
14
14
  const { background = true, className, children } = props
15
15
 
16
16
  return (
17
- <div className={classnames(`pb_filter_kit ${className}`, globalProps(props))}>
17
+ <div className={classnames(`pb_filter_kit ${className}`, spacing(props))}>
18
18
  <Choose>
19
19
  <When condition={background}>
20
20
  <Card padding="none">{children}</Card>
@@ -28,12 +28,8 @@
28
28
  ]
29
29
  %>
30
30
  <%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
31
- <%# <%= form.text_field :example_text_field, props: { label: true } %>
32
- <%# <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
33
- <%= pb_rails("caption", props: { text: "Status", margin_bottom: "sm" }) %>
34
- <%= form.check_box :example_checkbox, props: { text: "Delivered", margin_right: "md" } %>
35
- <%= form.check_box :example_checkbox, props: { text: "Unsubscribed", margin_right: "md" } %>
36
- <%= form.check_box :example_checkbox, props: { text: "Failed", margin_right: "md" } %>
31
+ <%= form.text_field :example_text_field, props: { label: true } %>
32
+ <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
37
33
 
38
34
  <%= form.actions do |action| %>
39
35
  <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import classnames from 'classnames'
5
5
  import { Icon, Title } from '../'
6
- import { globalProps } from '../utilities/globalProps.js'
6
+ import { spacing } from '../utilities/spacing.js'
7
7
 
8
8
  const iconMap = {
9
9
  success: 'check',
@@ -25,7 +25,7 @@ const FixedConfirmationToast = (props: FixedConfirmationToastProps) => {
25
25
  const css = classnames(
26
26
  className,
27
27
  `pb_fixed_confirmation_toast_kit_${status}`,
28
- globalProps(props)
28
+ spacing(props)
29
29
  )
30
30
  const icon = iconMap[status]
31
31