playbook_ui 10.23.0.pre.alpha2 → 10.23.0.pre.cachetest

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) 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_group/_form_group.scss +0 -2
  56. data/app/pb_kits/playbook/pb_form_pill/_form_pill.jsx +2 -2
  57. data/app/pb_kits/playbook/pb_gauge/_gauge.jsx +0 -3
  58. data/app/pb_kits/playbook/pb_gauge/gauge.rb +0 -1
  59. data/app/pb_kits/playbook/pb_highlight/_highlight.jsx +1 -1
  60. data/app/pb_kits/playbook/pb_icon/_icon.jsx +1 -1
  61. data/app/pb_kits/playbook/pb_icon/icon.rb +1 -1
  62. data/app/pb_kits/playbook/pb_icon_stat_value/_icon_stat_value.jsx +1 -1
  63. data/app/pb_kits/playbook/pb_image/{_image.tsx → _image.jsx} +15 -11
  64. data/app/pb_kits/playbook/pb_image/_image.scss +3 -3
  65. data/app/pb_kits/playbook/pb_image/docs/{_default_image.tsx → _default_image.jsx} +1 -1
  66. data/app/pb_kits/playbook/pb_image/docs/index.js +4 -4
  67. data/app/pb_kits/playbook/pb_image/image.rb +1 -1
  68. data/app/pb_kits/playbook/pb_image/image.test.js +1 -1
  69. data/app/pb_kits/playbook/pb_label_pill/_label_pill.jsx +1 -1
  70. data/app/pb_kits/playbook/pb_layout/_layout.jsx +1 -1
  71. data/app/pb_kits/playbook/pb_line_graph/_line_graph.jsx +1 -5
  72. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_height.jsx +0 -1
  73. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +0 -1
  74. data/app/pb_kits/playbook/pb_list/_list.jsx +1 -1
  75. data/app/pb_kits/playbook/pb_list/_list_item.jsx +1 -1
  76. data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.jsx +1 -1
  77. data/app/pb_kits/playbook/pb_online_status/{_online_status.tsx → _online_status.jsx} +6 -4
  78. data/app/pb_kits/playbook/pb_passphrase/_passphrase.jsx +1 -2
  79. data/app/pb_kits/playbook/pb_pill/_pill.jsx +1 -1
  80. data/app/pb_kits/playbook/pb_popover/_popover.jsx +5 -3
  81. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +7 -7
  82. data/app/pb_kits/playbook/pb_popover/index.js +9 -4
  83. data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -1
  84. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +1 -1
  85. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +1 -1
  86. data/app/pb_kits/playbook/pb_radio/_radio.jsx +1 -1
  87. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +93 -83
  88. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -1
  89. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +8 -15
  90. data/app/pb_kits/playbook/pb_table/_table.jsx +1 -1
  91. data/app/pb_kits/playbook/pb_table/_table_row.jsx +1 -1
  92. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +1 -1
  93. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +1 -1
  94. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +0 -14
  95. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +0 -1
  96. data/app/pb_kits/playbook/pb_time/_time.jsx +1 -1
  97. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
  98. data/app/pb_kits/playbook/pb_toggle/_toggle.jsx +1 -1
  99. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +1 -1
  100. data/app/pb_kits/playbook/pb_user_badge/_user_badge.jsx +1 -1
  101. data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.jsx +1 -1
  102. data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.jsx +1 -1
  103. data/app/pb_kits/playbook/plugins/pb_chart.js +4 -8
  104. data/app/pb_kits/playbook/types.js +4 -0
  105. data/app/pb_kits/playbook/utilities/globalProps.js +97 -0
  106. data/app/pb_kits/playbook/utilities/{props.ts → props.js} +7 -9
  107. data/lib/playbook/classnames.rb +0 -11
  108. data/lib/playbook/kit_base.rb +0 -22
  109. data/lib/playbook/version.rb +2 -2
  110. metadata +9 -42
  111. data/app/pb_kits/playbook/pb_background/docs/_background_image.md +0 -1
  112. data/app/pb_kits/playbook/pb_button/docs/_button_form.html.erb +0 -1
  113. data/app/pb_kits/playbook/pb_button/docs/_button_form.jsx +0 -14
  114. data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +0 -3
  115. data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -26
  116. data/app/pb_kits/playbook/pb_button/docs/_button_size.md +0 -1
  117. data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
  118. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.html.erb +0 -27
  119. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.jsx +0 -44
  120. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.js +0 -215
  121. data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +0 -40
  122. data/app/pb_kits/playbook/utilities/_align_content.scss +0 -29
  123. data/app/pb_kits/playbook/utilities/_align_items.scss +0 -35
  124. data/app/pb_kits/playbook/utilities/_align_self.scss +0 -29
  125. data/app/pb_kits/playbook/utilities/_flex.scss +0 -15
  126. data/app/pb_kits/playbook/utilities/_flex_direction.scss +0 -19
  127. data/app/pb_kits/playbook/utilities/_flex_grow.scss +0 -9
  128. data/app/pb_kits/playbook/utilities/_flex_shrink.scss +0 -9
  129. data/app/pb_kits/playbook/utilities/_flex_wrap.scss +0 -14
  130. data/app/pb_kits/playbook/utilities/_flexbox.scss +0 -11
  131. data/app/pb_kits/playbook/utilities/_justify_content.scss +0 -23
  132. data/app/pb_kits/playbook/utilities/_justify_self.scss +0 -19
  133. data/app/pb_kits/playbook/utilities/_order.scss +0 -55
  134. data/app/pb_kits/playbook/utilities/globalProps.ts +0 -274
  135. data/lib/playbook/align_content.rb +0 -29
  136. data/lib/playbook/align_items.rb +0 -29
  137. data/lib/playbook/align_self.rb +0 -29
  138. data/lib/playbook/flex.rb +0 -29
  139. data/lib/playbook/flex_direction.rb +0 -29
  140. data/lib/playbook/flex_grow.rb +0 -29
  141. data/lib/playbook/flex_shrink.rb +0 -29
  142. data/lib/playbook/flex_wrap.rb +0 -29
  143. data/lib/playbook/justify_content.rb +0 -29
  144. data/lib/playbook/justify_self.rb +0 -29
  145. data/lib/playbook/order.rb +0 -29
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "10.22.1"
5
- VERSION = "10.23.0.pre.alpha2"
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.23.0.pre.alpha2
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-11 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,12 +1076,12 @@ 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
1095
- - app/pb_kits/playbook/pb_image/docs/_default_image.tsx
1084
+ - app/pb_kits/playbook/pb_image/docs/_default_image.jsx
1096
1085
  - app/pb_kits/playbook/pb_image/docs/_description.md
1097
1086
  - app/pb_kits/playbook/pb_image/docs/_rounded_image.html.erb
1098
1087
  - app/pb_kits/playbook/pb_image/docs/_rounded_image.jsx
@@ -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,48 +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
- - app/pb_kits/playbook/utilities/globalProps.ts
2090
- - app/pb_kits/playbook/utilities/props.ts
2067
+ - app/pb_kits/playbook/utilities/globalProps.js
2068
+ - app/pb_kits/playbook/utilities/props.js
2091
2069
  - app/pb_kits/playbook/utilities/test-utils.js
2092
2070
  - app/pb_kits/playbook/utilities/text.js
2093
2071
  - dist/reset.css
2094
2072
  - fonts/fontawesome-min.js
2095
2073
  - fonts/regular-min.js
2096
2074
  - lib/playbook.rb
2097
- - lib/playbook/align_content.rb
2098
- - lib/playbook/align_items.rb
2099
- - lib/playbook/align_self.rb
2100
2075
  - lib/playbook/classnames.rb
2101
2076
  - lib/playbook/cursor.rb
2102
2077
  - lib/playbook/display.rb
2103
2078
  - lib/playbook/engine.rb
2104
- - lib/playbook/flex.rb
2105
- - lib/playbook/flex_direction.rb
2106
- - lib/playbook/flex_grow.rb
2107
- - lib/playbook/flex_shrink.rb
2108
- - lib/playbook/flex_wrap.rb
2109
2079
  - lib/playbook/forms.rb
2110
2080
  - lib/playbook/forms/builder.rb
2111
2081
  - lib/playbook/forms/builder/action_area.rb
@@ -2115,8 +2085,6 @@ files:
2115
2085
  - lib/playbook/forms/builder/form_field_builder.rb
2116
2086
  - lib/playbook/forms/builder/select_field.rb
2117
2087
  - lib/playbook/forms/builder/typeahead_field.rb
2118
- - lib/playbook/justify_content.rb
2119
- - lib/playbook/justify_self.rb
2120
2088
  - lib/playbook/kit_base.rb
2121
2089
  - lib/playbook/kit_resolver.rb
2122
2090
  - lib/playbook/line_height.rb
@@ -2124,7 +2092,6 @@ files:
2124
2092
  - lib/playbook/markdown/helper.rb
2125
2093
  - lib/playbook/markdown/template_handler.rb
2126
2094
  - lib/playbook/number_spacing.rb
2127
- - lib/playbook/order.rb
2128
2095
  - lib/playbook/pb_doc_helper.rb
2129
2096
  - lib/playbook/pb_forms_helper.rb
2130
2097
  - lib/playbook/pb_kit_helper.rb
@@ -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
@@ -1,215 +0,0 @@
1
- import colors from '../tokens/exports/_colors.scss'
2
- import typography from '../tokens/exports/_typography.scss'
3
-
4
- import Highcharts from 'highcharts'
5
-
6
- const highchartsDarkTheme = {
7
- lang: {
8
- thousandsSep: ',',
9
- },
10
- colors: [
11
- colors.data_1,
12
- colors.data_2,
13
- colors.data_3,
14
- colors.data_4,
15
- colors.data_5,
16
- colors.data_6,
17
- colors.data_7,
18
- ],
19
- chart: {
20
- borderWidth: 0,
21
- borderRadius: 0,
22
- plotBackgroundColor: null,
23
- plotShadow: false,
24
- plotBorderWidth: 0,
25
- },
26
- title: {
27
- style: {
28
- color: colors.text_dk_default,
29
- fontFamily: typography.font_family_base,
30
- fontWeight: typography.regular,
31
- fontSize: typography.heading_3,
32
- },
33
- },
34
- subtitle: {
35
- style: {
36
- fontFamily: typography.font_family_base,
37
- color: colors.text_dk_light,
38
- fontWeight: typography.regular,
39
- fontSize: typography.text_base,
40
- },
41
- },
42
- xAxis: {
43
- gridLineWidth: 0,
44
- lineColor: colors.border_dark,
45
- tickColor: colors.border_dark,
46
- labels: {
47
- style: {
48
- fontFamily: typography.font_family_base,
49
- color: colors.text_dk_lighter,
50
- fontWeight: typography.bold,
51
- fontSize: typography.text_smaller,
52
- },
53
- },
54
- title: {
55
- style: {
56
- color: colors.text_dk_default,
57
- fontFamily: typography.font_family_base,
58
- fontWeight: typography.regular,
59
- fontSize: typography.heading_4,
60
- },
61
- },
62
- },
63
- yAxis: {
64
- alternateGridColor: null,
65
- minorTickInterval: null,
66
- gridLineColor: colors.border_dark,
67
- minorGridLineColor: colors.border_dark,
68
- lineWidth: 0,
69
- tickWidth: 0,
70
- labels: {
71
- style: {
72
- fontFamily: typography.font_family_base,
73
- color: colors.text_dk_lighter,
74
- fontWeight: typography.bold,
75
- fontSize: typography.text_smaller,
76
- },
77
- },
78
- title: {
79
- style: {
80
- fontFamily: typography.font_family_base,
81
- color: colors.text_dk_lighter,
82
- fontWeight: typography.bold,
83
- fontSize: typography.text_smaller,
84
- },
85
- },
86
- },
87
- legend: {
88
- layout: 'horizontal',
89
- align: 'center',
90
- verticalAlign: 'bottom',
91
- itemStyle: {
92
- fontFamily: typography.font_family_base,
93
- color: colors.text_dk_light,
94
- fontWeight: typography.regular,
95
- fontSize: typography.text_smaller,
96
- },
97
- itemHoverStyle: {
98
- color: colors.text_dk_default,
99
- },
100
- itemHiddenStyle: {
101
- color: colors.text_dk_lighter,
102
- },
103
- },
104
- labels: {
105
- style: {
106
- color: colors.primary,
107
- },
108
- },
109
- tooltip: {
110
- backgroundColor: {
111
- linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 },
112
- stops: [
113
- [0, colors.card_light],
114
- [1, colors.card_light],
115
- ],
116
- },
117
- shadow: false,
118
- borderWidth: 0,
119
- borderRadius: 10,
120
- style: {
121
- fontFamily: typography.font_family_base,
122
- color: colors.text_lt_default,
123
- fontWeight: typography.regular,
124
- fontSize: typography.text_smaller,
125
- },
126
- },
127
- // specific to gauge
128
- // unfilled gauge color
129
- pane: {
130
- background: {
131
- borderColor: colors.border_dark,
132
- },
133
- },
134
-
135
- plotOptions: {
136
- series: {
137
- type: 'area',
138
- nullColor: colors.text_dk_lighter,
139
- fillColor: {
140
- linearGradient: {
141
- x1: 0,
142
- y1: 0,
143
- x2: 0,
144
- y2: 1,
145
- },
146
- stops: [
147
- [0, Highcharts.getOptions().colors[0]],
148
- [1, 'white'],
149
- ],
150
- },
151
- threshold: null,
152
- },
153
-
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_dk_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
- // PIE STYLES
174
- pie: {
175
- colors: [
176
- colors.data_1,
177
- colors.data_2,
178
- colors.data_3,
179
- colors.data_4,
180
- colors.data_5,
181
- colors.data_6,
182
- colors.data_7,
183
- ],
184
- dataLabels: {
185
- style: {
186
- fontFamily: typography.font_family_base,
187
- fontSize: typography.text_smaller,
188
- color: colors.text_dk_light,
189
- fontWeight: typography.regular,
190
- },
191
- },
192
- },
193
-
194
- // LINE CHART STYLES
195
- line: {
196
- dataLabels: {
197
- color: colors.text_dk_light,
198
- },
199
- marker: {
200
- lineColor: colors.border_dark,
201
- },
202
- area: {
203
- shadow: false,
204
- states: {
205
- hover: {
206
- lineWidth: 1,
207
- },
208
- },
209
- threshold: null,
210
- },
211
- },
212
- },
213
- }
214
-
215
- export { highchartsDarkTheme }
@@ -1,40 +0,0 @@
1
- import React from 'react'
2
- import { render, screen } from '../utilities/test-utils'
3
-
4
- import FileUpload from './_file_upload'
5
-
6
- const testid = 'fileupload-test'
7
-
8
- test('returns namespaced class name', () => {
9
- render(
10
- <FileUpload
11
- data={{ testid: testid }}
12
- />
13
- )
14
-
15
- const kit = screen.getByTestId(testid)
16
- expect(kit).toHaveClass('pb_file_upload_kit')
17
- })
18
-
19
- test('shows default drag text', () => {
20
- render(
21
- <FileUpload
22
- data={{ testid: testid }}
23
- />
24
- )
25
-
26
- const kit = screen.getByTestId(testid)
27
- expect(kit).toHaveTextContent('Choose a file or drag it here')
28
- })
29
-
30
- test('shows type-specific drag text', () => {
31
- render(
32
- <FileUpload
33
- accept={['image/svg+xml']}
34
- data={{ testid: testid }}
35
- />
36
- )
37
-
38
- const kit = screen.getByTestId(testid)
39
- expect(kit).toHaveTextContent('Choose a file or drag it here. The accepted file types are: svg+xml')
40
- })
@@ -1,29 +0,0 @@
1
- .align_content_start {
2
- display: flex;
3
- align-content: start !important;
4
- }
5
-
6
- .align_content_end {
7
- display: flex;
8
- align-content: end !important;
9
- }
10
-
11
- .align_content_center {
12
- display: flex;
13
- align-content: center !important;
14
- }
15
-
16
- .align_content_space_between {
17
- display: flex;
18
- align-content: space-between !important;
19
- }
20
-
21
- .align_content_space_around {
22
- display: flex;
23
- align-content: space-around !important;
24
- }
25
-
26
- .align_content_space_evenly {
27
- display: flex;
28
- align-content: space-evenly !important;
29
- }
@@ -1,35 +0,0 @@
1
- .align_items_flex_start {
2
- display: flex;
3
- align-items: flex-start !important;
4
- }
5
-
6
- .align_items_flex_end {
7
- display: flex;
8
- align-items: flex-end !important;
9
- }
10
-
11
- .align_items_start {
12
- display: flex;
13
- align-items: start !important;
14
- }
15
-
16
- .align_items_end {
17
- display: flex;
18
- align-items: end !important;
19
- }
20
-
21
-
22
- .align_items_center {
23
- display: flex;
24
- align-items: center !important;
25
- }
26
-
27
- .align_items_baseline {
28
- display: flex;
29
- align-items: baseline !important;
30
- }
31
-
32
- .align_items_stretch {
33
- display: flex;
34
- align-items: stretch !important;
35
- }