playbook_ui 10.22.0 → 10.23.0.pre.cachetest

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/index.js +3 -0
  4. data/app/pb_kits/playbook/pb_avatar/{_avatar.tsx → _avatar.jsx} +14 -13
  5. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +2 -2
  6. data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
  7. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +1 -1
  8. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_background/_background.jsx +3 -8
  10. data/app/pb_kits/playbook/pb_background/_background.scss +8 -24
  11. data/app/pb_kits/playbook/pb_background/background.rb +6 -6
  12. data/app/pb_kits/playbook/pb_background/docs/_background_image.html.erb +2 -50
  13. data/app/pb_kits/playbook/pb_background/docs/_background_image.jsx +28 -71
  14. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.jsx +1 -5
  15. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +0 -1
  16. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumb_item.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_bread_crumbs/_bread_crumbs.jsx +1 -1
  18. data/app/pb_kits/playbook/pb_button/_button.jsx +4 -8
  19. data/app/pb_kits/playbook/pb_button/_button.scss +1 -18
  20. data/app/pb_kits/playbook/pb_button/button.rb +3 -13
  21. data/app/pb_kits/playbook/pb_button/button.test.js +0 -13
  22. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.html.erb +1 -1
  23. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -4
  24. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -2
  25. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -1
  27. data/app/pb_kits/playbook/pb_card/_card.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_card/card.html.erb +1 -1
  29. data/app/pb_kits/playbook/pb_card/card.rb +0 -88
  30. data/app/pb_kits/playbook/pb_card/card_body.rb +1 -1
  31. data/app/pb_kits/playbook/pb_checkbox/_checkbox.jsx +1 -1
  32. data/app/pb_kits/playbook/pb_circle_chart/_circle_chart.jsx +0 -3
  33. data/app/pb_kits/playbook/pb_circle_chart/circle_chart.rb +0 -1
  34. data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +1 -1
  36. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_currency/_currency.jsx +3 -24
  38. data/app/pb_kits/playbook/pb_currency/currency.rb +3 -12
  39. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +1 -1
  40. data/app/pb_kits/playbook/pb_currency/docs/example.yml +0 -2
  41. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  42. data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +1 -1
  44. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx +1 -1
  45. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx +1 -1
  46. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +10 -17
  49. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx +1 -1
  50. data/app/pb_kits/playbook/pb_flex/_flex.jsx +1 -1
  51. data/app/pb_kits/playbook/pb_flex/_flex_item.jsx +1 -1
  52. data/app/pb_kits/playbook/pb_flex/docs/_flex_align.jsx +1 -1
  53. data/app/pb_kits/playbook/pb_flex/flex_item.rb +24 -2
  54. data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +1 -1
  55. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -2
  56. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -3
  57. data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -1
  58. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_icon/_icon.jsx +1 -1
  60. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +1 -1
  61. data/app/pb_kits/playbook/pb_image/{_image.tsx → _image.jsx} +15 -11
  62. data/app/pb_kits/playbook/pb_image/_image.scss +3 -3
  63. data/app/pb_kits/playbook/pb_image/image.rb +1 -1
  64. data/app/pb_kits/playbook/pb_image/image.test.js +1 -1
  65. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -1
  66. data/app/pb_kits/playbook/pb_layout/_layout.jsx +1 -1
  67. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -5
  68. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -1
  69. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -1
  70. data/app/pb_kits/playbook/pb_list/_list.jsx +1 -1
  71. data/app/pb_kits/playbook/pb_list/_list_item.jsx +1 -1
  72. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +1 -1
  73. data/app/pb_kits/playbook/pb_online_status/{_online_status.tsx → _online_status.jsx} +6 -4
  74. data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +1 -2
  75. data/app/pb_kits/playbook/pb_pill/_pill.jsx +1 -1
  76. data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -3
  77. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +7 -7
  78. data/app/pb_kits/playbook/pb_popover/index.js +9 -4
  79. data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -1
  80. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
  82. data/app/pb_kits/playbook/pb_radio/_radio.jsx +1 -1
  83. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +0 -5
  84. data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
  85. data/app/pb_kits/playbook/pb_table/_table_row.jsx +1 -1
  86. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -4
  87. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  88. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +0 -14
  89. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +0 -1
  90. data/app/pb_kits/playbook/pb_time/_time.jsx +1 -1
  91. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
  92. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +1 -1
  93. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -1
  94. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +1 -1
  95. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.jsx +1 -1
  96. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +1 -1
  97. data/app/pb_kits/playbook/plugins/pb_chart.js +4 -8
  98. data/app/pb_kits/playbook/types.js +4 -0
  99. data/app/pb_kits/playbook/utilities/globalProps.js +3 -81
  100. data/app/pb_kits/playbook/utilities/{props.ts → props.js} +7 -9
  101. data/lib/playbook/classnames.rb +0 -11
  102. data/lib/playbook/kit_base.rb +0 -22
  103. data/lib/playbook/version.rb +2 -2
  104. metadata +9 -43
  105. data/app/pb_kits/playbook/pb_background/docs/_background_image.md +0 -1
  106. data/app/pb_kits/playbook/pb_button/docs/_button_form.html.erb +0 -1
  107. data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +0 -14
  108. data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +0 -3
  109. data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -26
  110. data/app/pb_kits/playbook/pb_button/docs/_button_size.md +0 -1
  111. data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
  112. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb +0 -27
  113. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx +0 -44
  114. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js +0 -215
  115. data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +0 -40
  116. data/app/pb_kits/playbook/utilities/_align_content.scss +0 -29
  117. data/app/pb_kits/playbook/utilities/_align_items.scss +0 -35
  118. data/app/pb_kits/playbook/utilities/_align_self.scss +0 -29
  119. data/app/pb_kits/playbook/utilities/_flex.scss +0 -15
  120. data/app/pb_kits/playbook/utilities/_flex_direction.scss +0 -19
  121. data/app/pb_kits/playbook/utilities/_flex_grow.scss +0 -9
  122. data/app/pb_kits/playbook/utilities/_flex_shrink.scss +0 -9
  123. data/app/pb_kits/playbook/utilities/_flex_wrap.scss +0 -14
  124. data/app/pb_kits/playbook/utilities/_flexbox.scss +0 -11
  125. data/app/pb_kits/playbook/utilities/_justify_content.scss +0 -23
  126. data/app/pb_kits/playbook/utilities/_justify_self.scss +0 -19
  127. data/app/pb_kits/playbook/utilities/_order.scss +0 -55
  128. data/app/pb_kits/playbook/utilities/globalProps.ts +0 -156
  129. data/lib/playbook/align_content.rb +0 -29
  130. data/lib/playbook/align_items.rb +0 -29
  131. data/lib/playbook/align_self.rb +0 -29
  132. data/lib/playbook/flex.rb +0 -29
  133. data/lib/playbook/flex_direction.rb +0 -29
  134. data/lib/playbook/flex_grow.rb +0 -29
  135. data/lib/playbook/flex_shrink.rb +0 -29
  136. data/lib/playbook/flex_wrap.rb +0 -29
  137. data/lib/playbook/justify_content.rb +0 -29
  138. data/lib/playbook/justify_self.rb +0 -29
  139. data/lib/playbook/order.rb +0 -29
@@ -1,7 +1,6 @@
1
1
  import Highcharts from 'highcharts'
2
2
 
3
3
  import { highchartsTheme } from '../pb_dashboard/pbChartsLightTheme'
4
- import { highchartsDarkTheme } from '../pb_dashboard/pbChartsDarkTheme'
5
4
  import colors from '../tokens/exports/_colors.scss'
6
5
 
7
6
  import pie from 'highcharts/modules/variable-pie'
@@ -68,14 +67,10 @@ class pbChart {
68
67
  }
69
68
  }
70
69
 
71
- setupTheme() {
72
- this.options.dark ? Highcharts.setOptions(highchartsDarkTheme) : Highcharts.setOptions(highchartsTheme)
73
- }
74
-
75
70
  setupGauge(options) {
76
71
  highchartsMore(Highcharts)
77
72
  solidGauge(Highcharts)
78
- this.setupTheme()
73
+ Highcharts.setOptions(highchartsTheme)
79
74
 
80
75
  Highcharts.chart(this.defaults.id, {
81
76
  chart: {
@@ -145,7 +140,7 @@ class pbChart {
145
140
  }
146
141
 
147
142
  setupPieChart(options) {
148
- this.setupTheme()
143
+ Highcharts.setOptions(highchartsTheme)
149
144
  Highcharts.chart(this.defaults.id, {
150
145
  title: {
151
146
  text: this.defaults.title,
@@ -192,7 +187,8 @@ class pbChart {
192
187
  }
193
188
 
194
189
  setupChart(options) {
195
- this.setupTheme()
190
+ Highcharts.setOptions(highchartsTheme)
191
+
196
192
  const configOptions = {
197
193
  title: {
198
194
  text: this.defaults.title,
@@ -0,0 +1,4 @@
1
+ // @flow
2
+
3
+ export type Callback<T, K> = T => K
4
+ export type InputCallback<T> = Callback<SyntheticEvent<T>, void>
@@ -47,13 +47,13 @@ const numberSpacingProps = ({ numberSpacing }) => {
47
47
 
48
48
  const maxWidthProps = ({ maxWidth }) => {
49
49
  let css = ''
50
- css += maxWidth ? `max_width_${maxWidth} ` : ''
50
+ css += maxWidth ? `max_width_${maxWidth } ` : ''
51
51
  return css
52
52
  }
53
53
 
54
54
  const zIndexProps = ({ zIndex }) => {
55
55
  let css = ''
56
- css += zIndex ? `z_index_${zIndex} ` : ''
56
+ css += zIndex ? `z_index_${zIndex } ` : ''
57
57
  return css
58
58
  }
59
59
 
@@ -81,88 +81,10 @@ const cursorProps = ({ cursor }) => {
81
81
  return css
82
82
  }
83
83
 
84
- const flexDirectionProps = ({ flexDirection }) => {
85
- let css = ''
86
- css += flexDirection == 'columnReverse' ? 'flex_direction_column_reverse' :
87
- flexDirection == 'rowReverse' ? 'flex_direction_row_reverse' :
88
- flexDirection ? `flex_direction_${flexDirection} ` : ''
89
- return css
90
- }
91
-
92
- const flexWrapProps = ({ flexWrap }) => {
93
- let css = ''
94
- css += flexWrap == 'wrapReverse' ? 'flex_wrap_reverse' :
95
- flexWrap == 'noWrap' ? 'flex_nowrap' :
96
- flexWrap ? `flex_wrap_${flexWrap} ` : ''
97
- return css
98
- }
99
-
100
- const justifyContentProps = ({ justifyContent }) => {
101
- let css = ''
102
- css += justifyContent == 'spaceBetween' ? 'justify_content_space_between' :
103
- justifyContent == 'spaceEvenly' ? 'justify_content_space_evenly' :
104
- justifyContent == 'spaceAround' ? 'justify_content_space_around' :
105
- justifyContent ? `justify_content_${justifyContent}` : ''
106
- return css
107
- }
108
-
109
- const justifySelfProps = ({ justifySelf }) => {
110
- let css = ''
111
- css += justifySelf ? `justify_self_${justifySelf}` : ''
112
- return css
113
- }
114
-
115
- const alignItemsProps = ({ alignItems }) => {
116
- let css = ''
117
- css += alignItems == 'flexStart' ? 'align_items_flex_start' :
118
- alignItems == 'flexEnd' ? 'align_items_flex_end' :
119
- alignItems ? `align_items_${alignItems}` : ''
120
- return css
121
- }
122
-
123
- const alignContentProps = ({ alignContent }) => {
124
- let css = ''
125
- css += alignContent == 'spaceBetween' ? 'align_content_space_between' :
126
- alignContent == 'spaceEvenly' ? 'align_content_space_evenly' :
127
- alignContent == 'spaceAround' ? 'align_content_space_around' :
128
- alignContent ? `align_content_${alignContent}` : ''
129
- return css
130
- }
131
-
132
- const alignSelfProps = ({ alignSelf }) => {
133
- let css = ''
134
- css += alignSelf ? `align_self_${alignSelf}` : ''
135
- return css
136
- }
137
-
138
- const flexProps = ({ flex }) => {
139
- let css = ''
140
- css += flex ? `flex_${flex}` : ''
141
- return css
142
- }
143
-
144
- const flexGrowProps = ({ flexGrow }) => {
145
- let css = ''
146
- css += flexGrow ? `flex_grow_${flexGrow}` : ''
147
- return css
148
- }
149
-
150
- const flexShrinkProps = ({ flexShrink }) => {
151
- let css = ''
152
- css += flexShrink ? `flex_shrink_${flexShrink}` : ''
153
- return css
154
- }
155
-
156
- const orderProps = ({ order }) => {
157
- let css = ''
158
- css += order ? `order_${order}` : ''
159
- return css
160
- }
161
-
162
84
  // All Exported as a single function
163
85
  export const globalProps = (props, defaultProps = {}) => {
164
86
  const allProps = { ...props, ...defaultProps }
165
- return spacingProps(allProps) + darkProps(allProps) + maxWidthProps(allProps) + zIndexProps(allProps) + numberSpacingProps(allProps) + shadowProps(allProps) + lineHeightProps(allProps) + cursorProps(allProps) + displayProps(allProps) + flexDirectionProps(allProps) + flexWrapProps(allProps) + justifyContentProps(allProps) + justifySelfProps(allProps) + alignItemsProps(allProps) + alignContentProps(allProps) + alignSelfProps(allProps) + flexProps(allProps) + flexGrowProps(allProps) + flexShrinkProps(allProps) + orderProps(allProps)
87
+ return spacingProps(allProps) + darkProps(allProps) + maxWidthProps(allProps) + zIndexProps(allProps) + numberSpacingProps(allProps) + shadowProps(allProps) + lineHeightProps(allProps) + cursorProps(allProps) + displayProps(allProps)
166
88
  }
167
89
 
168
90
  export const deprecatedProps = (kit, props = []) => {
@@ -10,11 +10,10 @@ import classnames from 'classnames'
10
10
  * @param {Object} data the object containing the data to derive the props from.
11
11
  * @returns {Object} an object whose keys have the prefix added to them.
12
12
  */
13
- const buildPrefixedProps = (prefix: string, data: {[key: string]: any}) =>
14
- Object.keys(data).reduce((props: {[key: string]: any}, key: string) => {
15
- props[`${prefix}-${key}`] = data[key]
16
- return props
17
- }, {})
13
+ const buildPrefixedProps = (prefix, data) => Object.keys(data).reduce((props, key) => {
14
+ props[`${prefix}-${key}`] = data[key]
15
+ return props
16
+ }, {})
18
17
 
19
18
  /**
20
19
  * Represent a "No-Operation" function that can be used as a sensible
@@ -30,8 +29,7 @@ export const noop = () => {}
30
29
  * @param {Object} aria the object containing the aria prop values.
31
30
  * @returns {Object} an object holding the HTML valid aria props and their values.
32
31
  */
33
- export const buildAriaProps = (aria: {[key: string]: string}): {[key: string]: string} =>
34
- buildPrefixedProps('aria', aria)
32
+ export const buildAriaProps = (aria) => buildPrefixedProps('aria', aria)
35
33
 
36
34
  /**
37
35
  * Maps a given data object into HTML valid data attribtues and their values.
@@ -39,7 +37,7 @@ export const buildAriaProps = (aria: {[key: string]: string}): {[key: string]: s
39
37
  * @param {Object} data the object containing the data prop values.
40
38
  * @returns {Object} an object holding the HTML valid data props and their values.
41
39
  */
42
- export const buildDataProps = (data: {[key: string]: any}) => buildPrefixedProps('data', data)
40
+ export const buildDataProps = (data) => buildPrefixedProps('data', data)
43
41
 
44
42
  /**
45
43
  * Builds a Playbook valid root className off of the incoming css rules.
@@ -47,5 +45,5 @@ export const buildDataProps = (data: {[key: string]: any}) => buildPrefixedProps
47
45
  * @param {Object} rules a 'classnames' compliant rules object, used to derive the root className.
48
46
  * @returns {String} the derived root className value.
49
47
  */
50
- export const buildCss = (...rules: string[]) => classnames(rules).replace(/\s/g, '_')
48
+ export const buildCss = (...rules) => classnames(rules).replace(/\s/g, '_')
51
49
 
@@ -20,17 +20,6 @@ module Playbook
20
20
  line_height_props,
21
21
  display_props,
22
22
  cursor_props,
23
- flex_direction_props,
24
- flex_wrap_props,
25
- justify_content_props,
26
- justify_self_props,
27
- align_items_props,
28
- align_content_props,
29
- align_self_props,
30
- flex_props,
31
- flex_grow_props,
32
- flex_shrink_props,
33
- order_props,
34
23
  ].compact.join(" ")
35
24
  end
36
25
 
@@ -8,17 +8,6 @@ require "playbook/shadow"
8
8
  require "playbook/line_height"
9
9
  require "playbook/display"
10
10
  require "playbook/cursor"
11
- require "playbook/flex_direction"
12
- require "playbook/flex_wrap"
13
- require "playbook/justify_content"
14
- require "playbook/justify_self"
15
- require "playbook/align_items"
16
- require "playbook/align_content"
17
- require "playbook/align_self"
18
- require "playbook/flex"
19
- require "playbook/flex_grow"
20
- require "playbook/flex_shrink"
21
- require "playbook/order"
22
11
 
23
12
  module Playbook
24
13
  class KitBase < ViewComponent::Base
@@ -32,17 +21,6 @@ module Playbook
32
21
  include Playbook::LineHeight
33
22
  include Playbook::Display
34
23
  include Playbook::Cursor
35
- include Playbook::FlexDirection
36
- include Playbook::FlexWrap
37
- include Playbook::JustifyContent
38
- include Playbook::JustifySelf
39
- include Playbook::AlignItems
40
- include Playbook::AlignContent
41
- include Playbook::AlignSelf
42
- include Playbook::Flex
43
- include Playbook::FlexGrow
44
- include Playbook::FlexShrink
45
- include Playbook::Order
46
24
 
47
25
  prop :id
48
26
  prop :data, type: Playbook::Props::Hash, default: {}
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "10.21.0"
5
- VERSION = "10.22.0"
4
+ PREVIOUS_VERSION = "10.20.0"
5
+ VERSION = "10.23.0.pre.cachetest"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.22.0
4
+ version: 10.23.0.pre.cachetest
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-01 00:00:00.000000000 Z
12
+ date: 2022-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -282,8 +282,8 @@ files:
282
282
  - app/pb_kits/playbook/_reset.scss
283
283
  - app/pb_kits/playbook/data/menu.yml
284
284
  - app/pb_kits/playbook/index.js
285
+ - app/pb_kits/playbook/pb_avatar/_avatar.jsx
285
286
  - app/pb_kits/playbook/pb_avatar/_avatar.scss
286
- - app/pb_kits/playbook/pb_avatar/_avatar.tsx
287
287
  - app/pb_kits/playbook/pb_avatar/avatar.html.erb
288
288
  - app/pb_kits/playbook/pb_avatar/avatar.rb
289
289
  - app/pb_kits/playbook/pb_avatar/avatar.test.js
@@ -330,7 +330,6 @@ files:
330
330
  - app/pb_kits/playbook/pb_background/docs/_background_gradient.jsx
331
331
  - app/pb_kits/playbook/pb_background/docs/_background_image.html.erb
332
332
  - app/pb_kits/playbook/pb_background/docs/_background_image.jsx
333
- - app/pb_kits/playbook/pb_background/docs/_background_image.md
334
333
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
335
334
  - app/pb_kits/playbook/pb_background/docs/_background_light.jsx
336
335
  - app/pb_kits/playbook/pb_background/docs/_background_status.html.erb
@@ -417,8 +416,6 @@ files:
417
416
  - app/pb_kits/playbook/pb_button/docs/_button_default.html.erb
418
417
  - app/pb_kits/playbook/pb_button/docs/_button_default.jsx
419
418
  - app/pb_kits/playbook/pb_button/docs/_button_default.md
420
- - app/pb_kits/playbook/pb_button/docs/_button_form.html.erb
421
- - app/pb_kits/playbook/pb_button/docs/_button_form.jsx
422
419
  - app/pb_kits/playbook/pb_button/docs/_button_full_width.html.erb
423
420
  - app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx
424
421
  - app/pb_kits/playbook/pb_button/docs/_button_full_width.md
@@ -429,9 +426,6 @@ files:
429
426
  - app/pb_kits/playbook/pb_button/docs/_button_loading.md
430
427
  - app/pb_kits/playbook/pb_button/docs/_button_options.html.erb
431
428
  - app/pb_kits/playbook/pb_button/docs/_button_options.jsx
432
- - app/pb_kits/playbook/pb_button/docs/_button_size.html.erb
433
- - app/pb_kits/playbook/pb_button/docs/_button_size.jsx
434
- - app/pb_kits/playbook/pb_button/docs/_button_size.md
435
429
  - app/pb_kits/playbook/pb_button/docs/_footer.md
436
430
  - app/pb_kits/playbook/pb_button/docs/example.yml
437
431
  - app/pb_kits/playbook/pb_button/docs/index.js
@@ -596,9 +590,6 @@ files:
596
590
  - app/pb_kits/playbook/pb_currency/_currency.scss
597
591
  - app/pb_kits/playbook/pb_currency/currency.html.erb
598
592
  - app/pb_kits/playbook/pb_currency/currency.rb
599
- - app/pb_kits/playbook/pb_currency/currency.test.js
600
- - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb
601
- - app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx
602
593
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.html.erb
603
594
  - app/pb_kits/playbook/pb_currency/docs/_currency_alignment.jsx
604
595
  - app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol.html.erb
@@ -611,7 +602,6 @@ files:
611
602
  - app/pb_kits/playbook/pb_currency/docs/example.yml
612
603
  - app/pb_kits/playbook/pb_currency/docs/index.js
613
604
  - app/pb_kits/playbook/pb_dashboard/commonSettings.js
614
- - app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js
615
605
  - app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js
616
606
  - app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.jsx
617
607
  - app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.scss
@@ -814,7 +804,6 @@ files:
814
804
  - app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx
815
805
  - app/pb_kits/playbook/pb_file_upload/docs/example.yml
816
806
  - app/pb_kits/playbook/pb_file_upload/docs/index.js
817
- - app/pb_kits/playbook/pb_file_upload/fileupload.test.js
818
807
  - app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx
819
808
  - app/pb_kits/playbook/pb_filter/Filter/FilterBackground.jsx
820
809
  - app/pb_kits/playbook/pb_filter/Filter/FilterDouble.jsx
@@ -1087,8 +1076,8 @@ files:
1087
1076
  - app/pb_kits/playbook/pb_icon_value/docs/index.js
1088
1077
  - app/pb_kits/playbook/pb_icon_value/icon_value.html.erb
1089
1078
  - app/pb_kits/playbook/pb_icon_value/icon_value.rb
1079
+ - app/pb_kits/playbook/pb_image/_image.jsx
1090
1080
  - app/pb_kits/playbook/pb_image/_image.scss
1091
- - app/pb_kits/playbook/pb_image/_image.tsx
1092
1081
  - app/pb_kits/playbook/pb_image/docs/_custom_error_image.html.erb
1093
1082
  - app/pb_kits/playbook/pb_image/docs/_custom_error_image.jsx
1094
1083
  - app/pb_kits/playbook/pb_image/docs/_default_image.html.erb
@@ -1323,8 +1312,8 @@ files:
1323
1312
  - app/pb_kits/playbook/pb_nav/item.rb
1324
1313
  - app/pb_kits/playbook/pb_nav/nav.html.erb
1325
1314
  - app/pb_kits/playbook/pb_nav/nav.rb
1315
+ - app/pb_kits/playbook/pb_online_status/_online_status.jsx
1326
1316
  - app/pb_kits/playbook/pb_online_status/_online_status.scss
1327
- - app/pb_kits/playbook/pb_online_status/_online_status.tsx
1328
1317
  - app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss
1329
1318
  - app/pb_kits/playbook/pb_online_status/docs/_description.md
1330
1319
  - app/pb_kits/playbook/pb_online_status/docs/_online_status_default.html.erb
@@ -2064,49 +2053,29 @@ files:
2064
2053
  - app/pb_kits/playbook/tokens/exports/_spacing.scss
2065
2054
  - app/pb_kits/playbook/tokens/exports/_typography.scss
2066
2055
  - app/pb_kits/playbook/tokens/index.scss
2067
- - app/pb_kits/playbook/utilities/_align_content.scss
2068
- - app/pb_kits/playbook/utilities/_align_items.scss
2069
- - app/pb_kits/playbook/utilities/_align_self.scss
2056
+ - app/pb_kits/playbook/types.js
2070
2057
  - app/pb_kits/playbook/utilities/_background_colors.scss
2071
2058
  - app/pb_kits/playbook/utilities/_colors.scss
2072
2059
  - app/pb_kits/playbook/utilities/_cursor.scss
2073
2060
  - app/pb_kits/playbook/utilities/_display.scss
2074
- - app/pb_kits/playbook/utilities/_flex.scss
2075
- - app/pb_kits/playbook/utilities/_flex_direction.scss
2076
- - app/pb_kits/playbook/utilities/_flex_grow.scss
2077
- - app/pb_kits/playbook/utilities/_flex_shrink.scss
2078
- - app/pb_kits/playbook/utilities/_flex_wrap.scss
2079
- - app/pb_kits/playbook/utilities/_flexbox.scss
2080
- - app/pb_kits/playbook/utilities/_justify_content.scss
2081
- - app/pb_kits/playbook/utilities/_justify_self.scss
2082
2061
  - app/pb_kits/playbook/utilities/_line_height.scss
2083
2062
  - app/pb_kits/playbook/utilities/_max_width.scss
2084
2063
  - app/pb_kits/playbook/utilities/_number_spacing.scss
2085
- - app/pb_kits/playbook/utilities/_order.scss
2086
2064
  - app/pb_kits/playbook/utilities/_positioning.scss
2087
2065
  - app/pb_kits/playbook/utilities/_shadow.scss
2088
2066
  - app/pb_kits/playbook/utilities/_spacing.scss
2089
2067
  - app/pb_kits/playbook/utilities/globalProps.js
2090
- - app/pb_kits/playbook/utilities/globalProps.ts
2091
- - app/pb_kits/playbook/utilities/props.ts
2068
+ - app/pb_kits/playbook/utilities/props.js
2092
2069
  - app/pb_kits/playbook/utilities/test-utils.js
2093
2070
  - app/pb_kits/playbook/utilities/text.js
2094
2071
  - dist/reset.css
2095
2072
  - fonts/fontawesome-min.js
2096
2073
  - fonts/regular-min.js
2097
2074
  - lib/playbook.rb
2098
- - lib/playbook/align_content.rb
2099
- - lib/playbook/align_items.rb
2100
- - lib/playbook/align_self.rb
2101
2075
  - lib/playbook/classnames.rb
2102
2076
  - lib/playbook/cursor.rb
2103
2077
  - lib/playbook/display.rb
2104
2078
  - lib/playbook/engine.rb
2105
- - lib/playbook/flex.rb
2106
- - lib/playbook/flex_direction.rb
2107
- - lib/playbook/flex_grow.rb
2108
- - lib/playbook/flex_shrink.rb
2109
- - lib/playbook/flex_wrap.rb
2110
2079
  - lib/playbook/forms.rb
2111
2080
  - lib/playbook/forms/builder.rb
2112
2081
  - lib/playbook/forms/builder/action_area.rb
@@ -2116,8 +2085,6 @@ files:
2116
2085
  - lib/playbook/forms/builder/form_field_builder.rb
2117
2086
  - lib/playbook/forms/builder/select_field.rb
2118
2087
  - lib/playbook/forms/builder/typeahead_field.rb
2119
- - lib/playbook/justify_content.rb
2120
- - lib/playbook/justify_self.rb
2121
2088
  - lib/playbook/kit_base.rb
2122
2089
  - lib/playbook/kit_resolver.rb
2123
2090
  - lib/playbook/line_height.rb
@@ -2125,7 +2092,6 @@ files:
2125
2092
  - lib/playbook/markdown/helper.rb
2126
2093
  - lib/playbook/markdown/template_handler.rb
2127
2094
  - lib/playbook/number_spacing.rb
2128
- - lib/playbook/order.rb
2129
2095
  - lib/playbook/pb_doc_helper.rb
2130
2096
  - lib/playbook/pb_forms_helper.rb
2131
2097
  - lib/playbook/pb_kit_helper.rb
@@ -2164,9 +2130,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2164
2130
  version: '0'
2165
2131
  required_rubygems_version: !ruby/object:Gem::Requirement
2166
2132
  requirements:
2167
- - - ">="
2133
+ - - ">"
2168
2134
  - !ruby/object:Gem::Version
2169
- version: '0'
2135
+ version: 1.3.1
2170
2136
  requirements: []
2171
2137
  rubygems_version: 3.1.6
2172
2138
  signing_key:
@@ -1 +0,0 @@
1
- To add a lazyload on the background image simply use the `transition` prop and one of the three string options `"fade"`, `"blur"`, or `"scale"`.
@@ -1 +0,0 @@
1
- <%= pb_rails("button", props: { text: "Button with Form Attribute", form: "form-id"}) %>
@@ -1,14 +0,0 @@
1
- import React from 'react'
2
- import { Button } from '../../'
3
-
4
- const ButtonForm = (props) => (
5
- <div>
6
- <Button
7
- form="form-id"
8
- text="Button with Form Attribute"
9
- {...props}
10
- />
11
- </div>
12
- )
13
-
14
- export default ButtonForm
@@ -1,3 +0,0 @@
1
- <%= pb_rails("button", props: { text: "Button sm size", size: "sm" }) %>
2
- <%= pb_rails("button", props: { text: "Button md size", size: "md" }) %>
3
- <%= pb_rails("button", props: { text: "Button lg size", size: "lg" }) %>
@@ -1,26 +0,0 @@
1
- import React from 'react'
2
- import { Button } from '../../'
3
-
4
- const ButtonSize = (props) => (
5
- <div>
6
- <Button
7
- size="sm"
8
- text="Button sm size"
9
- {...props}
10
- />
11
- {' '}
12
- <Button
13
- size="md"
14
- text="Button md size"
15
- {...props}
16
- />
17
- {' '}
18
- <Button
19
- size="lg"
20
- text="Button lg size"
21
- {...props}
22
- />
23
- </div>
24
- )
25
-
26
- export default ButtonSize
@@ -1 +0,0 @@
1
- By default button has the `md` size style, even if you don't explicitly pass a size prop.
@@ -1,35 +0,0 @@
1
- import React from 'react'
2
- import { render, screen } from '../utilities/test-utils'
3
- import Currency from './_currency'
4
-
5
- test('abbreviate prop returns proper abbreviated amount', () => {
6
- render(
7
- <>
8
- <Currency
9
- abbreviate
10
- amount="3200"
11
- data={{ testid: 'test-thousands' }}
12
- />
13
- <Currency
14
- abbreviate
15
- amount="3,200,000"
16
- data={{ testid: 'test-millions' }}
17
- />
18
- <Currency
19
- abbreviate
20
- amount="3200000000"
21
- data={{ testid: 'test-billions' }}
22
- />
23
- <Currency
24
- abbreviate
25
- amount="3,200,000,000,000"
26
- data={{ testid: 'test-trillions' }}
27
- />
28
- </>
29
- )
30
-
31
- expect(screen.getByTestId('test-thousands')).toHaveTextContent('$3.2K')
32
- expect(screen.getByTestId('test-millions')).toHaveTextContent('$3.2M')
33
- expect(screen.getByTestId('test-billions')).toHaveTextContent('$3.2B')
34
- expect(screen.getByTestId('test-trillions')).toHaveTextContent('$3.2T')
35
- })
@@ -1,27 +0,0 @@
1
- <%= pb_rails("currency", props: {
2
- abbreviate: true,
3
- amount: "2,200.50",
4
- label: "Thousands (with Unit)",
5
- margin_bottom: "md",
6
- unit: "/mo",
7
- }) %>
8
-
9
- <%= pb_rails("currency", props: {
10
- abbreviate: true,
11
- amount: "3424123",
12
- label: "Millions",
13
- margin_bottom: "md",
14
- }) %>
15
-
16
- <%= pb_rails("currency", props: {
17
- abbreviate: true,
18
- amount: "45,300,000,000",
19
- label: "Billions",
20
- margin_bottom: "md",
21
- }) %>
22
-
23
- <%= pb_rails("currency", props: {
24
- abbreviate: true,
25
- amount: "983,200,000,000,000",
26
- label: "Trillions",
27
- }) %>
@@ -1,44 +0,0 @@
1
- import React from 'react'
2
-
3
- import Currency from '../_currency'
4
-
5
- const CurrencyAbbreviated = (props) => {
6
- return (
7
- <>
8
- <Currency
9
- abbreviate
10
- amount="2,500"
11
- label="Thousands (with Unit)"
12
- marginBottom="md"
13
- size="md"
14
- unit="/mo"
15
- {...props}
16
- />
17
- <Currency
18
- abbreviate
19
- amount="45300000"
20
- label="Millions"
21
- marginBottom="md"
22
- size="md"
23
- {...props}
24
- />
25
- <Currency
26
- abbreviate
27
- amount="6,700,000,000"
28
- label="Billions"
29
- marginBottom="md"
30
- size="md"
31
- {...props}
32
- />
33
- <Currency
34
- abbreviate
35
- amount="9,900,000,000,000"
36
- label="Trillions"
37
- size="md"
38
- {...props}
39
- />
40
- </>
41
- )
42
- }
43
-
44
- export default CurrencyAbbreviated