playbook_ui_docs 15.5.0.pre.alpha.typeaheadfix12605 → 15.5.0.pre.rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +1 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +1 -3
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +1 -3
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +1 -2
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb +2 -2
  10. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +2 -1
  11. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +2 -2
  12. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +0 -2
  13. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -2
  14. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +0 -1
  15. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +0 -10
  16. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +0 -10
  17. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +0 -7
  18. data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +0 -7
  19. data/app/pb_kits/playbook/pb_currency/docs/_description.md +2 -2
  20. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +1 -3
  21. data/app/pb_kits/playbook/pb_date_time/docs/index.js +0 -1
  22. data/app/pb_kits/playbook/pb_date_time_stacked/docs/example.yml +1 -3
  23. data/app/pb_kits/playbook/pb_date_time_stacked/docs/index.js +0 -1
  24. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +2 -33
  25. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -3
  26. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -2
  27. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +1 -2
  28. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx +1 -2
  29. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +1 -2
  30. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +1 -2
  31. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.jsx +1 -4
  32. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +1 -3
  34. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.jsx +1 -1
  36. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.jsx +1 -1
  37. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.jsx +1 -1
  38. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.jsx +1 -1
  39. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_non_clickable.jsx +2 -1
  40. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.html.erb +1 -1
  41. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.jsx +1 -1
  44. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.jsx +2 -1
  45. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.jsx +2 -1
  46. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +1 -3
  47. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +1 -2
  48. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +1 -2
  49. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +1 -1
  50. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +1 -2
  51. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +1 -2
  52. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +1 -1
  53. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +1 -1
  54. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +1 -1
  55. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +1 -1
  56. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +1 -2
  57. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +1 -1
  58. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +1 -3
  60. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.jsx +1 -1
  61. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.md +2 -2
  62. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.jsx +1 -2
  63. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.jsx +1 -2
  64. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.jsx +1 -2
  65. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.jsx +1 -2
  66. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.jsx +1 -2
  67. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +1 -3
  68. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx +1 -1
  69. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.html.erb +1 -1
  70. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +1 -4
  71. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +5 -1
  72. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +1 -4
  73. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +3 -14
  74. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb +7 -1
  75. data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +0 -3
  76. data/app/pb_kits/playbook/pb_progress_step/docs/index.js +0 -2
  77. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +1 -3
  78. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default_rails.md +7 -0
  79. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb +10 -2
  80. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline_rails.md +1 -0
  81. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +19 -11
  82. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb +5 -1
  83. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb +1 -1
  84. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky_rails.md +1 -0
  85. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -2
  86. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.jsx +1 -3
  87. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.jsx +1 -4
  88. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +1 -2
  89. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.jsx +1 -1
  90. data/dist/playbook-doc.js +1 -0
  91. metadata +6 -34
  92. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant.html.erb +0 -9
  93. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant.jsx +0 -24
  94. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant_rails.md +0 -1
  95. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant_react.md +0 -1
  96. data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.md +0 -1
  97. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_rails.md +0 -1
  98. data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_react.md +0 -1
  99. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.md +0 -1
  100. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_rails.md +0 -1
  101. data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_react.md +0 -1
  102. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year.html.erb +0 -4
  103. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year.jsx +0 -14
  104. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year_rails.md +0 -1
  105. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year_react.md +0 -1
  106. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.html.erb +0 -4
  107. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.jsx +0 -22
  108. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.md +0 -1
  109. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx +0 -180
  110. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md +0 -22
  111. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.md +0 -1
  112. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.md +0 -11
  113. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.md +0 -1
  114. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_default.md +0 -1
  115. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.md +0 -1
  116. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.html.erb +0 -14
  117. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.jsx +0 -29
  118. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.md +0 -3
  119. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.jsx +0 -31
  120. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.md +0 -1
  121. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.md +0 -3
  122. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.md +0 -3
  123. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bec13ccbabaf58119f5debd509cdb34ce179d3e54486eadafaf1c3089748c4e
4
- data.tar.gz: cec4da25a4b4391cd40f76116c481283398b40de26ebb72126ff348da47c3177
3
+ metadata.gz: 3251b709fdb1f49c81517f7ef6e60d3c8d83ce4da554b6f646e03ea94966d4fd
4
+ data.tar.gz: '070835678f96480adb51ec83b0b4bae26b07ff9760a57ca7be485955d6699d35'
5
5
  SHA512:
6
- metadata.gz: 218454ec88593328445ec69ae2ed20eae9b0fa3ff8fbd9e3a0161868a8f0fc055c18e41bc2765caad296f67696f242a2b6975b1322b8f59439bcc7ebd3b1ca4c
7
- data.tar.gz: e1adf27bc836bebd4696fab554be89e820f4ace94795b8a711e900a15b431db94045b20d3640b5a1ae83741423c258a8d71f5cf8a3f5aed6aa62f98e94b19056
6
+ metadata.gz: b211e59843101d9837123ff1397be65a1e5c5f62716e1701685c5afb7f0a0ef56cd92dfeb0dc5bab369c90c05e6732f6b13ff2f3a8016b96d13d27878d351577
7
+ data.tar.gz: 1601b6e0bf78c791c880ef18e5dffd7d1c1140d009c54592c3311f38d8f2e64eae124075dd27116e456eb75471825895c58e1312ceaa98cb9479e60ffdbdd6d6
@@ -1,6 +1,5 @@
1
1
  import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import colors from '../../tokens/exports/_colors.module.scss'
2
+ import { AdvancedTable, colors } from "playbook-ui"
4
3
  import MOCK_DATA from "./advanced_table_mock_data.json"
5
4
 
6
5
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import AdvancedTable from '../_advanced_table';
2
+ import { AdvancedTable } from "playbook-ui";
3
3
  import MOCK_DATA from "./advanced_table_mock_data.json";
4
4
 
5
5
  const AdvancedTableColumnStylingColumnHeaders = (props) => {
@@ -1,7 +1,5 @@
1
1
  import React, { useState } from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import Flex from '../../pb_flex/_flex'
4
- import Button from '../../pb_button/_button'
2
+ import { AdvancedTable, Button, Flex } from "playbook-ui"
5
3
  import MOCK_DATA from "./advanced_table_mock_data.json"
6
4
  import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
7
5
 
@@ -1,5 +1,5 @@
1
1
  import React from "react"
2
- import AdvancedTable from '../_advanced_table'
2
+ import { AdvancedTable } from "playbook-ui"
3
3
  import MOCK_DATA from "./advanced_table_mock_data_infinite_scroll.json"
4
4
 
5
5
  const AdvancedTableInfiniteScroll = (props) => {
@@ -1,7 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import TextInput from '../../pb_text_input/_text_input'
4
- import Body from '../../pb_body/_body'
2
+ import { AdvancedTable, TextInput, Body } from "playbook-ui";
5
3
  import MOCK_DATA from "./advanced_table_mock_data.json";
6
4
 
7
5
  const AdvancedTableInlineEditing = (props) => {
@@ -1,8 +1,7 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
4
- import colors from '../../tokens/exports/_colors.module.scss'
5
-
4
+ import { colors } from "playbook-ui"
6
5
 
7
6
  const AdvancedTableRowStyling = (props) => {
8
7
  const columnDefinitions = [
@@ -30,4 +30,4 @@
30
30
  }
31
31
  ] %>
32
32
 
33
- <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
@@ -1,2 +1,2 @@
1
- <%= pb_rails("copy_button", props: { id: "default-copy-button", value: "Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease." } ) %>
2
- <%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Click the icon above to copy and paste here" }) %>
1
+ <%= pb_rails("copy_button", props: { id: "default-copy-button", text: "Copy Text", value: "Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease." } ) %>
2
+ <%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
@@ -7,6 +7,7 @@ const CopyButtonDefault = (props) => (
7
7
  <div>
8
8
  <CopyButton
9
9
  {...props}
10
+ text="Copy Text"
10
11
  tooltipPlacement="right"
11
12
  tooltipText="Text copied!"
12
13
  value="Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease."
@@ -14,7 +15,7 @@ const CopyButtonDefault = (props) => (
14
15
 
15
16
  <Textarea
16
17
  {...props}
17
- placeholder="Click the icon above to copy and paste here"
18
+ placeholder="Copy and paste here"
18
19
  />
19
20
  </div>
20
21
  )
@@ -1,5 +1,5 @@
1
1
  <%= pb_rails("body", props: { id: "body", text: "Copy this body text!"}) %>
2
- <%= pb_rails("copy_button", props: { text: "Copy Body text", from: "body", id: "copy-body-button", variant: "button" }) %>
2
+ <%= pb_rails("copy_button", props: { text: "Copy Body text", from: "body", id: "copy-body-button" }) %>
3
3
  <%= pb_rails("text_input", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
4
- <%= pb_rails("copy_button", props: { text: "Copy Text Input", from: "copy-input", id: "copy-input-button", variant: "button" }) %>
4
+ <%= pb_rails("copy_button", props: { text: "Copy Text Input", from: "copy-input", id: "copy-input-button" }) %>
5
5
  <%= pb_rails("text_input", props: { margin_top: "xs", id: "copy-input" , value: "Copy and paste here" }) %>
@@ -21,7 +21,6 @@ const CopyButtonFrom = (props) => {
21
21
  text="Copy Body text"
22
22
  tooltipPlacement="right"
23
23
  tooltipText="Body text copied!"
24
- variant="button"
25
24
  />
26
25
 
27
26
  <TextInput
@@ -37,7 +36,6 @@ const CopyButtonFrom = (props) => {
37
36
  text="Copy Text Input"
38
37
  tooltipPlacement="right"
39
38
  tooltipText="Text input copied!"
40
- variant="button"
41
39
  />
42
40
 
43
41
  <Textarea
@@ -1,12 +1,10 @@
1
1
  examples:
2
2
  rails:
3
3
  - copy_button_default: Default
4
- - copy_button_button_variant: Button Variant
5
4
  - copy_button_from: Copy From
6
5
  - copy_button_hook_rails: Copy Hook
7
6
 
8
7
  react:
9
8
  - copy_button_default: Default
10
- - copy_button_button_variant: Button Variant
11
9
  - copy_button_from: Copy From
12
10
  - copy_button_hook: Copy Hook
@@ -1,4 +1,3 @@
1
1
  export { default as CopyButtonDefault } from './_copy_button_default.jsx'
2
2
  export { default as CopyButtonFrom } from './_copy_button_from.jsx'
3
3
  export { default as CopyButtonHook } from './_copy_button_hook.jsx'
4
- export { default as CopyButtonButtonVariant } from './_copy_button_button_variant.jsx'
@@ -1,14 +1,4 @@
1
1
  <%= pb_rails("currency", props: {
2
2
  amount: "-2,000.50",
3
3
  size: "sm",
4
- }) %>
5
-
6
- <%= pb_rails("currency", props: {
7
- amount: "-2,000.50",
8
- size: "md",
9
- }) %>
10
-
11
- <%= pb_rails("currency", props: {
12
- amount: "-2,000.50",
13
- size: "lg",
14
4
  }) %>
@@ -9,16 +9,6 @@ const CurrencyNegative = (props) => {
9
9
  amount="-2,000.50"
10
10
  {...props}
11
11
  />
12
- <Currency
13
- amount="-2,000.50"
14
- size="md"
15
- {...props}
16
- />
17
- <Currency
18
- amount="-2,000.50"
19
- size="lg"
20
- {...props}
21
- />
22
12
  </>
23
13
  )
24
14
  }
@@ -1,10 +1,3 @@
1
- <%= pb_rails("currency", props: {
2
- amount: "30,327.43",
3
- label: "Default",
4
- size: "sm",
5
- margin_bottom: "md",
6
- }) %>
7
-
8
1
  <%= pb_rails("currency", props: {
9
2
  amount: "2,000.50",
10
3
  emphasized: false,
@@ -5,13 +5,6 @@ import Currency from '../_currency'
5
5
  const CurrencyVariants = (props) => {
6
6
  return (
7
7
  <>
8
- <Currency
9
- amount="30,327.43"
10
- label="Default"
11
- marginBottom="md"
12
- size="sm"
13
- {...props}
14
- />
15
8
  <Currency
16
9
  amount="2,000.50"
17
10
  emphasized={false}
@@ -1,2 +1,2 @@
1
- Use this kit to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. Pairing it with labels improves user understanding.
2
- Cents are automatically ".00" unless otherwise overwritten (i.e. `unit` prop).
1
+ Use to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. User understanding increase when paired with labels.
2
+ Cents is automatically ".00" unless other wise overwritten (i.e. unit prop).
@@ -1,16 +1,14 @@
1
1
  examples:
2
-
2
+
3
3
  rails:
4
4
  - date_time_default: Default
5
5
  - date_time_align: Alignment
6
6
  - date_time_size: Size
7
- - date_time_show_current_year: Show Current Year
8
7
 
9
8
  react:
10
9
  - date_time_default: Default
11
10
  - date_time_align: Alignment
12
11
  - date_time_size: Size
13
- - date_time_show_current_year: Show Current Year
14
12
 
15
13
  swift:
16
14
  - date_time_default_swift: Default
@@ -1,4 +1,3 @@
1
1
  export { default as DateTimeDefault } from './_date_time_default.jsx'
2
2
  export { default as DateTimeAlign } from './_date_time_align.jsx'
3
3
  export { default as DateTimeSize } from './_date_time_size.jsx'
4
- export { default as DateTimeShowCurrentYear } from './_date_time_show_current_year.jsx'
@@ -2,11 +2,9 @@ examples:
2
2
 
3
3
  rails:
4
4
  - date_time_stacked_default: Default
5
- - date_time_stacked_show_current_year: Show Current Year
6
-
5
+
7
6
  react:
8
7
  - date_time_stacked_default: Default
9
- - date_time_stacked_show_current_year: Show Current Year
10
8
 
11
9
  swift:
12
10
  - date_time_stacked_default_swift: Default
@@ -1,2 +1 @@
1
1
  export { default as DateTimeStackedDefault } from './_date_time_stacked_default.jsx'
2
- export { default as DateTimeStackedShowCurrentYear } from './_date_time_stacked_show_current_year.jsx'
@@ -1,28 +1,7 @@
1
- <%
2
- options = [
3
- {
4
- label: "United States",
5
- value: "unitedStates",
6
- id: "us"
7
- },
8
- {
9
- label: "United Kingdom",
10
- value: "unitedKingdom",
11
- id: "gb"
12
- },
13
- {
14
- label: "Pakistan",
15
- value: "pakistan",
16
- id: "pk"
17
- }
18
- ]
19
- %>
20
-
21
-
22
1
  <%= pb_rails("button", props: { text: "Open Complex Dialog", data:{"open-dialog": "dialog-complex"} }) %>
23
2
 
24
3
  <%= pb_rails("dialog", props: { id:"dialog-complex", size: "lg", full_height: true }) do %>
25
- <%= pb_form_with(scope: :example, method: :get, url: "", options: { remote: true }) do |form| %>
4
+ <form>
26
5
  <%= pb_rails("dialog/dialog_header", props: { id: "dialog-complex" } ) do %>
27
6
  <%= pb_rails("body", props: { text: "What do you need us to take care of?" }) %>
28
7
  <% end %>
@@ -31,18 +10,8 @@
31
10
  <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
32
11
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
33
12
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
34
- <%= pb_rails("dropdown", props: {options: options, autocomplete: true}) %>
35
- <%= pb_rails("typeahead", props: {
36
- id: "typeahead-default",
37
- placeholder: "Select one...",
38
- options: options,
39
- name: :foo,
40
- margin_top: "sm",
41
- is_multi: false
42
- })
43
- %>
44
13
 
45
14
  <% end %>
46
15
  <%= pb_rails("dialog/dialog_footer", props: {cancel_button: "Back", confirm_button: "Send my Issue", confirm_button_id:"confirm-complex", id: "dialog-complex"}) %>
47
- <% end %>
16
+ </form>
48
17
  <% end %>
@@ -5,12 +5,11 @@ examples:
5
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
6
6
  - draggable_with_cards: Draggable with Cards
7
7
  - draggable_with_table: Draggable with Table
8
+ - draggable_multiple_containers: Dragging Across Multiple Containers
8
9
  - draggable_drop_zones: Draggable Drop Zones
9
10
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
10
11
  - draggable_drop_zones_line: Draggable Drop Zones Line
11
12
  - draggable_event_listeners: Draggable Event Listeners
12
- - draggable_multiple_containers: Dragging Across Multiple Containers
13
- - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
14
13
 
15
14
  rails:
16
15
  - draggable_default: Default
@@ -18,8 +17,8 @@ examples:
18
17
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
18
  - draggable_with_cards: Draggable with Cards
20
19
  - draggable_with_table: Draggable with Table
20
+ - draggable_multiple_containers: Dragging Across Multiple Containers
21
21
  - draggable_drop_zones: Draggable Drop Zones
22
22
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
23
23
  - draggable_drop_zones_line: Draggable Drop Zones Line
24
24
  - draggable_event_listeners: Draggable Event Listeners
25
- - draggable_multiple_containers: Dragging Across Multiple Containers
@@ -7,5 +7,4 @@ export { default as DraggableWithTable } from './_draggable_with_table.jsx'
7
7
  export { default as DraggableDropZones } from './_draggable_drop_zones.jsx'
8
8
  export { default as DraggableDropZonesColors } from './_draggable_drop_zones_colors.jsx'
9
9
  export { default as DraggableDropZonesLine } from './_draggable_drop_zones_line.jsx'
10
- export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
11
- export { default as DraggableMultipleContainersDropzone } from './_draggable_multiple_containers_dropzone.jsx'
10
+ export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import EmptyState from '../_empty_state'
3
- import Flex from '../../pb_flex/_flex'
2
+ import { EmptyState, Flex } from 'playbook-ui'
4
3
 
5
4
  const EmptyStateAlignment = (props) => (
6
5
  <Flex align="center"
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import EmptyState from '../_empty_state'
3
- import Flex from '../../pb_flex/_flex'
2
+ import { EmptyState, Flex } from 'playbook-ui'
4
3
 
5
4
  const EmptyStateDefault = (props) => (
6
5
  <Flex align="center"
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import EmptyState from '../_empty_state'
3
- import Flex from '../../pb_flex/_flex'
2
+ import { EmptyState, Flex } from 'playbook-ui'
4
3
 
5
4
  const EmptyStateOrientation = (props) => (
6
5
  <Flex align="center"
@@ -1,6 +1,5 @@
1
1
  import React from 'react'
2
- import EmptyState from '../_empty_state'
3
- import Flex from '../../pb_flex/_flex'
2
+ import { EmptyState, Flex } from 'playbook-ui'
4
3
 
5
4
  const EmptyStateSize = (props) => (
6
5
  <Flex align="center"
@@ -1,8 +1,5 @@
1
1
  import React from 'react'
2
- import Card from '../../pb_card/_card'
3
- import Caption from '../../pb_caption/_caption'
4
- import FormPill from '../_form_pill'
5
- import Typeahead from '../../pb_typeahead/_typeahead'
2
+ import { Card, Caption, FormPill, Typeahead } from 'playbook-ui'
6
3
 
7
4
  const names = [
8
5
  { label: 'Alexander Nathaniel Montgomery', value: 'Alexander Nathaniel Montgomery' },
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import LoadingInline from '../_loading_inline'
2
+ import { LoadingInline } from 'playbook-ui'
3
3
 
4
4
  const LoadingInlineVariant = (props) => {
5
5
  return (
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
  import colors from '../../tokens/exports/_colors.module.scss'
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Installation',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Number of Installations',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartOptions = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Number of Installations',
@@ -36,7 +36,7 @@
36
36
  }
37
37
  %>
38
38
 
39
- <%= pb_rails("title", props: {size: 4, text: "align | verticalAlign", padding_top: "sm", padding_bottom: "sm"})%>
39
+ <%= pb_rails("title", props: {size: 4, text: "align | vertical_align", padding_top: "sm", padding_bottom: "sm"})%>
40
40
 
41
41
 
42
42
  <%= pb_rails("pb_bar_graph", props: {options: chart_options_right}) %>
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
  import Title from "../../pb_title/_title"
4
4
 
5
5
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
3
 
4
4
  import colors from '../../tokens/exports/_colors.module.scss'
5
5
  import typography from '../../tokens/exports/_typography.module.scss'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Number of Installations',
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import PbBarGraph from '../_pb_bar_graph'
2
+ import { PbBarGraph } from 'playbook-ui'
3
+
3
4
 
4
5
  const chartData = [{
5
6
  name: 'Installation',
@@ -1,5 +1,3 @@
1
- **In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo.**
2
-
3
- This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. Once 'highcharts' and 'highcharts-react-official are installed into your repo, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
1
+ This kit is a wrapper around the Highcharts library. It applies styling and default settings but does NOT ship Highcharts. In order to use this kit, 'highcharts' and 'highcharts-react-official' must be installed in your repo. Once done, any prop or functionality provided by Highcharts can be used with this kit without requiring specific props from Playbook. The doc examples below showcase a few common usecases but are not a comprehensive list of all the functionalities possible.
4
2
 
5
3
  See the [highcharts API docs](https://api.highcharts.com/highcharts/) for a comprehensive look at what is possible.
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Title from "../../pb_title/_title";
2
+ import { PbCircleChart, Title } from "playbook-ui";
4
3
 
5
4
  const data= [
6
5
  {
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import colors from '../../tokens/exports/_colors.module.scss';
2
+ import { PbCircleChart, colors } from "playbook-ui";
4
3
 
5
4
  const data= [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [
5
5
  {
@@ -1,5 +1,4 @@
1
- Tooltip options from Highcharts:
2
-
1
+ Custom tooltip formatting is configured through the tooltip object in the options passed to the kit:
3
2
  `headerFormat` **Type**: String | when set to null will disable the header.
4
3
  `pointFormat` **Type**: String | defines the HTML template for each data point and supports custom HTML when `useHTML` is enabled.
5
4
  `useHTML` **Type**: boolean (default false) | enables HTML rendering in tooltips.
@@ -1,6 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Title from "../../pb_title/_title";
2
+ import { PbCircleChart, Title } from "playbook-ui";
4
3
 
5
4
  const dataFirst = [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data = [{
5
5
  name: 'Bugs',
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const chartOptions = {
5
5
  series: [
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const dataFirst = [
5
5
  {
@@ -1,6 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
3
- import Button from "../../pb_button/_button";
2
+ import { PbCircleChart, Button } from "playbook-ui";
4
3
 
5
4
  const chartData = [
6
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data= [
5
5
  {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import PbCircleChart from "../_pb_circle_chart";
2
+ import { PbCircleChart } from "playbook-ui";
3
3
 
4
4
  const data= [
5
5
  {