playbook_ui_docs 15.0.0.pre.alpha.stimulusbutton10763 → 15.0.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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_vertical_border.jsx +2 -2
  3. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +1 -0
  4. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  5. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.html.erb +0 -3
  6. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +0 -8
  7. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb +1 -16
  8. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +0 -15
  9. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb +0 -6
  10. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +0 -6
  11. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +0 -1
  12. data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +0 -2
  13. data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +0 -1
  14. data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -2
  15. data/app/pb_kits/playbook/pb_nav/docs/index.js +1 -2
  16. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +3 -3
  17. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.html.erb +3 -3
  18. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_confirmation.html.erb +3 -3
  19. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.html.erb +3 -3
  20. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.html.erb +3 -3
  21. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +2 -2
  22. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.html.erb +0 -23
  23. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.jsx +7 -45
  24. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -3
  25. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  26. data/app/pb_kits/playbook/pb_timestamp/docs/_time_stamp_default.md +1 -0
  27. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.html.erb +10 -0
  28. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.jsx +9 -0
  29. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.html.erb +17 -3
  30. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.jsx +15 -0
  31. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb +2 -0
  32. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.jsx +2 -0
  33. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.html.erb +14 -0
  34. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.jsx +14 -0
  35. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.html.erb +4 -0
  36. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_unstyled.jsx +4 -0
  37. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.jsx +1 -0
  38. data/app/pb_kits/playbook/pb_timestamp/docs/example.yml +6 -18
  39. data/app/pb_kits/playbook/pb_timestamp/docs/index.js +0 -6
  40. data/dist/playbook-doc.js +2 -2
  41. metadata +3 -91
  42. data/app/pb_kits/playbook/pb_button/docs/_button_managed_disabled.html.erb +0 -29
  43. data/app/pb_kits/playbook/pb_button/docs/_button_managed_disabled.md +0 -5
  44. data/app/pb_kits/playbook/pb_button/docs/_button_managed_disabled_helper.html.erb +0 -18
  45. data/app/pb_kits/playbook/pb_button/docs/_button_managed_disabled_helper.md +0 -5
  46. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.md +0 -5
  47. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb +0 -5
  48. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +0 -24
  49. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_extendedunderline.html.erb +0 -6
  50. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_extendedunderline.jsx +0 -39
  51. data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_extendedunderline.md +0 -1
  52. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.html.erb +0 -35
  53. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.jsx +0 -49
  54. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors_rails.md +0 -1
  55. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors_react.md +0 -2
  56. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.html.erb +0 -38
  57. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.jsx +0 -51
  58. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.html.erb +0 -46
  59. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.jsx +0 -62
  60. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.md +0 -3
  61. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.html.erb +0 -47
  62. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.jsx +0 -60
  63. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.html.erb +0 -25
  64. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.jsx +0 -36
  65. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_non_clickable.jsx +0 -44
  66. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.html.erb +0 -100
  67. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.jsx +0 -126
  68. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.html.erb +0 -32
  69. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.jsx +0 -48
  70. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.html.erb +0 -68
  71. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.jsx +0 -81
  72. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.html.erb +0 -31
  73. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.jsx +0 -42
  74. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.md +0 -2
  75. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.html.erb +0 -35
  76. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.jsx +0 -51
  77. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/example.yml +0 -27
  78. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/index.js +0 -11
  79. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.html.erb +0 -31
  80. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +0 -81
  81. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.html.erb +0 -25
  82. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +0 -40
  83. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.md +0 -5
  84. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.html.erb +0 -27
  85. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +0 -39
  86. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +0 -5
  87. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.html.erb +0 -93
  88. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +0 -131
  89. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.md +0 -14
  90. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.html.erb +0 -42
  91. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +0 -58
  92. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.html.erb +0 -24
  93. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +0 -38
  94. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.html.erb +0 -22
  95. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +0 -33
  96. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.html.erb +0 -118
  97. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +0 -144
  98. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +0 -60
  99. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.html.erb +0 -24
  100. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +0 -42
  101. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.html.erb +0 -38
  102. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +0 -52
  103. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/example.yml +0 -29
  104. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/index.js +0 -11
  105. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.html.erb +0 -41
  106. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.jsx +0 -80
  107. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.md +0 -1
  108. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_align.md +0 -1
  109. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_default.md +0 -1
  110. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.md +0 -5
  111. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.html.erb +0 -12
  112. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.jsx +0 -25
  113. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_current_year.md +0 -1
  114. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.html.erb +0 -4
  115. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.jsx +0 -17
  116. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_date.md +0 -1
  117. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.html.erb +0 -18
  118. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.jsx +0 -44
  119. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_show_time.md +0 -1
  120. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_timezones.md +0 -1
  121. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated.md +0 -5
  122. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.html.erb +0 -16
  123. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.jsx +0 -30
  124. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_current_year.md +0 -1
  125. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.html.erb +0 -16
  126. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.jsx +0 -30
  127. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_date.md +0 -1
  128. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.html.erb +0 -26
  129. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.jsx +0 -41
  130. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_updated_show_time.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5502cf92d841f167813a4288067616d35882ec8104e593f25a900940397d4c7a
4
- data.tar.gz: eab2af3154f8a86ec8da0a7080f4aecb2cec77de3227f2f3b9f266d65ab4252e
3
+ metadata.gz: 2d156fed572020a8d5687970113736401a8e949da7d78b02c7a52b830d025da8
4
+ data.tar.gz: 1cb6e138149788777c222d44d2e481ed4fa48b05be03eb52f3405b9a06cbac61
5
5
  SHA512:
6
- metadata.gz: 297cde1570bc5b8ead5fcd0dea29270ff28fc4771b2a8256ed76f61024879af7fa732dc9496392e5baa589515013d9f68ef56a7b37e2bfb142e648af0839a199
7
- data.tar.gz: 5b194a51746088a4d063cf029f742d759229d34b5d25791843fe989363df66df8328828df483ae38d2c9c3504c799abe9d0a1cc69b7ec4d2b71ea69c48593c86
6
+ metadata.gz: b007c353f23e5fba4dcb5a3a9a9ebada24368c45806ee863be89d9ed2091ed4d74861bbec9790c1679dc41a4bbb83ec0593940f64e476b10dcd695695817be1e
7
+ data.tar.gz: 60e54628d10f793973df03dedf2f2177cc7e53b18d616f8b760c911d8f35b4afba777945679147f42ad6b87270a058d9745e64d39be5ef5130e310cb9981660b
@@ -44,9 +44,9 @@ const AdvancedTableColumnHeadersVerticalBorder = (props) => {
44
44
  ],
45
45
  },
46
46
  ];
47
-
47
+
48
48
  const tableProps = {
49
- verticalBorder: true,
49
+ verticalBorder: true
50
50
  }
51
51
 
52
52
  return (
@@ -4,6 +4,7 @@ examples:
4
4
  - bar_graph_default: Default
5
5
  - bar_graph_legend: Legend
6
6
  - bar_graph_legend_position: Legend Position
7
+ - bar_graph_legend_non_clickable: Legend Non Clickable
7
8
  - bar_graph_height: Height
8
9
  - bar_graph_spline: Spline
9
10
  - bar_graph_colors: Color Overrides
@@ -11,8 +11,6 @@ examples:
11
11
  - button_options: Button Additional Options
12
12
  - button_size: Button Size
13
13
  - button_form: Button Form Attribute
14
- - button_managed_disabled: Button Toggle Disabled State
15
- - button_managed_disabled_helper: Button Toggle Disabled State Helper
16
14
 
17
15
  react:
18
16
  - button_default: Button Variants
@@ -4,9 +4,6 @@
4
4
  <%= pb_rails("card", props: {highlight: {position: "top", color:"warning"}, margin_bottom: "sm"}) do %>
5
5
  Top Position & Warning Color
6
6
  <% end %>
7
- <%= pb_rails("card", props: {highlight: {position: "right_side", color:"product_5_highlight"}, margin_bottom: "sm"}) do %>
8
- Right Side Position & Product 5 Highlight Color
9
- <% end %>
10
7
  <%= pb_rails("card", props: {highlight: {position: "side", color:"category_2"}, margin_bottom: "sm"}) do %>
11
8
  Side Position & Category 2 Color
12
9
  <% end %>
@@ -21,14 +21,6 @@ const CardHighlight = (props) => {
21
21
  {'Top Position & Warning Color'}
22
22
  </Card>
23
23
 
24
- <Card
25
- {...props}
26
- highlight={{ position: 'right_side', color: 'product_5_highlight' }}
27
- marginBottom="sm"
28
- >
29
- {'Right Side Position & Product 5 Highlight Color'}
30
- </Card>
31
-
32
24
  <Card
33
25
  {...props}
34
26
  highlight={{ position: 'side', color: 'category_2' }}
@@ -13,7 +13,7 @@
13
13
  }) %>
14
14
 
15
15
  <%= pb_rails("contact", props: {
16
- contact_type: "work",
16
+ contact_type: "wrong number",
17
17
  contact_value: "3245627482",
18
18
  }) %>
19
19
 
@@ -21,18 +21,3 @@
21
21
  contact_type: "work-cell",
22
22
  contact_value: "349-185-9988",
23
23
  }) %>
24
-
25
- <%= pb_rails("contact", props: {
26
- contact_type: "wrong-phone",
27
- contact_value: "2124396666",
28
- }) %>
29
-
30
- <%= pb_rails("contact", props: {
31
- contact_type: "extension",
32
- contact_value: "1233",
33
- }) %>
34
-
35
- <%= pb_rails("contact", props: {
36
- contact_type: "international",
37
- contact_value: "+44 7700 900461",
38
- }) %>
@@ -28,21 +28,6 @@ const ContactDefault = (props) => {
28
28
  contactValue="3245627482"
29
29
  {...props}
30
30
  />
31
- <Contact
32
- contactType="wrong-phone"
33
- contactValue="2124396666"
34
- {...props}
35
- />
36
- <Contact
37
- contactType='extension'
38
- contactValue="1234"
39
- {...props}
40
- />
41
- <Contact
42
- contactType="international"
43
- contactValue="+44 7700 900461"
44
- {...props}
45
- />
46
31
  </div>
47
32
  )
48
33
  }
@@ -26,9 +26,3 @@
26
26
  contact_value: "1233",
27
27
  contact_detail: "Ext",
28
28
  }) %>
29
-
30
- <%= pb_rails("contact", props: {
31
- contact_type: "international",
32
- contact_value: "+44 7700 900461",
33
- contact_detail: "International",
34
- }) %>
@@ -33,12 +33,6 @@ const ContactDefault = (props) => {
33
33
  contactValue="1234"
34
34
  {...props}
35
35
  />
36
- <Contact
37
- contactDetail="International"
38
- contactType="international"
39
- contactValue="+44 7700 900461"
40
- {...props}
41
- />
42
36
  </div>
43
37
  )
44
38
  }
@@ -91,7 +91,6 @@
91
91
  <%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
92
92
  <%= form.typeahead :example_typeahead, props: { data: { typeahead_example1: true, user: {} }, label: true, placeholder: "Search for a user" } %>
93
93
  <%= form.text_field :example_text_field, props: { label: true } %>
94
- <%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label" } %>
95
94
  <%= form.phone_number_field :example_phone_number_field, props: { label: "Example phone field", hidden_inputs: true } %>
96
95
  <%= form.email_field :example_email_field, props: { label: true } %>
97
96
  <%= form.number_field :example_number_field, props: { label: true } %>
@@ -3,11 +3,9 @@ examples:
3
3
  rails:
4
4
  - loading_inline_default: Default
5
5
  - loading_inline_custom: Custom Text
6
- - loading_inline_variant: Variant
7
6
 
8
7
 
9
8
 
10
9
  react:
11
10
  - loading_inline_default: Default
12
11
  - loading_inline_custom: Custom Text
13
- - loading_inline_variant: Variant
@@ -1,3 +1,2 @@
1
1
  export { default as LoadingInlineDefault } from './_loading_inline_default.jsx'
2
2
  export { default as LoadingInlineCustom } from './_loading_inline_custom.jsx'
3
- export { default as LoadingInlineVariant } from './_loading_inline_variant.jsx'
@@ -17,7 +17,6 @@ examples:
17
17
  - horizontal_nav: Horizontal Nav
18
18
  - subtle_horizontal_nav: Subtle Horizontal Nav
19
19
  - bold_horizontal_nav: Bold Horizontal Nav
20
- - horizontal_nav_extendedunderline: Horizontal Nav With Extended Underline
21
20
  - block_nav: Block
22
21
  - block_no_title_nav: Without Title
23
22
  - new_tab: Open in a New Tab
@@ -43,7 +42,6 @@ examples:
43
42
  - horizontal_nav: Horizontal Nav
44
43
  - subtle_horizontal_nav: Subtle Horizontal Nav
45
44
  - bold_horizontal_nav: Bold Horizontal Nav
46
- - horizontal_nav_extendedunderline: Horizontal Nav With Extended Underline
47
45
  - block_nav: Block
48
46
  - block_no_title_nav: Without Title
49
47
  - new_tab: Open in a New Tab
@@ -19,5 +19,4 @@ export { default as CollapsibleNavWithAllOptions} from "./_collapsible_nav_with_
19
19
  export { default as NavWithFontControl } from "./_nav_with_font_control.jsx"
20
20
  export { default as NavWithSpacingControl } from "./_nav_with_spacing_control.jsx"
21
21
  export { default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_spacing.jsx"
22
- export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
23
- export { default as HorizontalNavExtendedunderline } from './_horizontal_nav_extendedunderline.jsx'
22
+ export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
@@ -4,8 +4,8 @@
4
4
 
5
5
  <%= pb_rails("caption", props: { size: 'xs', text: "hello", id: "caption_breached" }) %>
6
6
 
7
- <script>
8
- window.addEventListener("load", () => {
7
+ <%= javascript_tag do %>
8
+ window.addEventListener("DOMContentLoaded", () => {
9
9
 
10
10
  // variables for the kits you are targeting
11
11
  const passphrase = document.querySelector(".passphrase_breached").querySelector("input")
@@ -142,4 +142,4 @@
142
142
  });
143
143
 
144
144
  })
145
- </script>
145
+ <% end %>
@@ -10,8 +10,8 @@
10
10
  <%= pb_rails("caption", props: { size: 'xs', text: "hello", id: "caption_common" }) %>
11
11
 
12
12
 
13
- <script>
14
- window.addEventListener("load", () => {
13
+ <%= javascript_tag do %>
14
+ window.addEventListener("DOMContentLoaded", () => {
15
15
 
16
16
  const commonText = document.querySelector("#body_common")
17
17
 
@@ -133,4 +133,4 @@
133
133
  });
134
134
 
135
135
  })
136
- </script>
136
+ <% end %>
@@ -4,8 +4,8 @@
4
4
 
5
5
  <div id="match"> </div>
6
6
 
7
- <script>
8
- window.addEventListener("load", () => {
7
+ <%= javascript_tag do %>
8
+ window.addEventListener("DOMContentLoaded", () => {
9
9
 
10
10
  const useState = (defaultValue) => {
11
11
  let value = defaultValue;
@@ -48,4 +48,4 @@
48
48
 
49
49
  }
50
50
  })
51
- </script>
51
+ <% end %>
@@ -32,8 +32,8 @@
32
32
 
33
33
 
34
34
 
35
- <script>
36
- window.addEventListener("load", () => {
35
+ <%= javascript_tag do %>
36
+ window.addEventListener("DOMContentLoaded", () => {
37
37
 
38
38
 
39
39
  // variables for the passphrase kits you are targeting
@@ -320,4 +320,4 @@
320
320
 
321
321
 
322
322
  })
323
- </script>
323
+ <% end %>
@@ -7,8 +7,8 @@
7
7
  <%= pb_rails("text_input", props: { label: "Passphrase Strength", value: "0", disabled: true, id: "calc_strength_change" }) %>
8
8
 
9
9
 
10
- <script>
11
- window.addEventListener("load", () => {
10
+ <%= javascript_tag do %>
11
+ window.addEventListener("DOMContentLoaded", () => {
12
12
 
13
13
  // variables for the kits you are targeting
14
14
  const passphrase = document.querySelector(".passphrase_change").querySelector("input")
@@ -120,4 +120,4 @@
120
120
  });
121
121
 
122
122
  })
123
- </script>
123
+ <% end %>
@@ -13,8 +13,8 @@
13
13
  <script>
14
14
  document.addEventListener('DOMContentLoaded', () => {
15
15
  function handleButtonClick() {
16
- const editorContainer = [...document.querySelectorAll('[data-pb-react-props]')]
17
- .find(element => element.getAttribute('data-pb-react-props')?.includes('"id":"content-preview-editor"'))
16
+ const editorContainer = [...document.querySelectorAll('[data-react-props]')]
17
+ .find(element => element.getAttribute('data-react-props')?.includes('"id":"content-preview-editor"'))
18
18
 
19
19
  const editorElement = editorContainer?.querySelector('trix-editor')
20
20
  const inputId = editorElement?.getAttribute('input')
@@ -11,27 +11,4 @@
11
11
  padding_right: "xs"
12
12
  }) %>
13
13
  <% end %>
14
- <% end %>
15
-
16
- <%= pb_rails("flex", props: { classname: "flex-container", margin_top: "lg", vertical: "stretch" }) do %>
17
- <%= pb_rails("body", props: { classname: "flex-item" }) do %>
18
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
19
- <% end %>
20
- <%= pb_rails("section_separator", props: { orientation: "vertical" }) do %>
21
- <%= pb_rails("card", props: {
22
- border_radius: "rounded",
23
- justify_content: "center",
24
- padding: "none"
25
- }) do %>
26
- <%= pb_rails("caption", props: {
27
- text: "TODAY",
28
- size: "xs",
29
- padding_left: "xs",
30
- padding_right: "xs"
31
- }) %>
32
- <% end %>
33
- <% end %>
34
- <%= pb_rails("body", props: { classname: "flex-item" }) do %>
35
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua
36
- <% end %>
37
14
  <% end %>
@@ -2,25 +2,8 @@ import React from 'react'
2
2
  import Card from '../../pb_card/_card'
3
3
  import Caption from '../../pb_caption/_caption'
4
4
  import SectionSeparator from '../../pb_section_separator/_section_separator'
5
- import Flex from '../../pb_flex/_flex'
6
- import FlexItem from '../../pb_flex/_flex_item'
7
5
 
8
- const childrenHorizontal = (
9
- <Card
10
- borderRadius="rounded"
11
- justifyContent="center"
12
- padding="none"
13
- >
14
- <Caption
15
- paddingLeft="xs"
16
- paddingRight="xs"
17
- size="xs"
18
- text="TODAY"
19
- />
20
- </Card>
21
- )
22
-
23
- const childrenVertical = (
6
+ const children = (
24
7
  <Card
25
8
  borderRadius="rounded"
26
9
  justifyContent="center"
@@ -37,33 +20,12 @@ const childrenVertical = (
37
20
 
38
21
  const SectionSeparatorChildren = (props) => {
39
22
  return (
40
- <>
41
- <SectionSeparator
42
- {...props}
43
- lineStyle='dashed'
44
- >
45
- {childrenHorizontal}
46
- </SectionSeparator>
47
- <Flex
48
- inline="flex-container"
49
- marginTop="lg"
50
- vertical="stretch"
51
- >
52
- <FlexItem>
53
- {'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
54
- </FlexItem>
55
- <SectionSeparator
56
- orientation="vertical"
57
- {...props}
58
- >
59
- {childrenVertical}
60
- </SectionSeparator>
61
- <FlexItem>
62
- {'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'}
63
- </FlexItem>
64
- </Flex>
65
- </>
66
-
23
+ <SectionSeparator
24
+ {...props}
25
+ lineStyle='dashed'
26
+ >
27
+ {children}
28
+ </SectionSeparator>
67
29
  )
68
30
  }
69
31
 
@@ -9,8 +9,6 @@ examples:
9
9
  - text_input_no_label: No Label
10
10
  - text_input_options: Input Options
11
11
  - text_input_mask: Mask
12
- - text_input_autocomplete: Autocomplete
13
-
14
12
  react:
15
13
  - text_input_default: Default
16
14
  - text_input_error: With Error
@@ -21,7 +19,6 @@ examples:
21
19
  - text_input_no_label: No Label
22
20
  - text_input_mask: Mask
23
21
  - text_input_sanitize: Sanitized Masked Input
24
- - text_input_autocomplete: Autocomplete
25
22
 
26
23
 
27
24
  swift:
@@ -7,4 +7,3 @@ export { default as TextInputInline } from './_text_input_inline.jsx'
7
7
  export { default as TextInputNoLabel } from './_text_input_no_label.jsx'
8
8
  export { default as TextInputMask } from './_text_input_mask.jsx'
9
9
  export { default as TextInputSanitize } from './_text_input_sanitize.jsx'
10
- export { default as TextInputAutocomplete } from './_text_input_autocomplete.jsx'
@@ -0,0 +1 @@
1
+ Use these only to display status updates in areas that has a lot of data.
@@ -8,6 +8,7 @@
8
8
 
9
9
  <%= pb_rails("timestamp", props: {
10
10
  timestamp: DateTime.now,
11
+ show_date: true,
11
12
  align: "left"
12
13
  }) %>
13
14
 
@@ -15,6 +16,7 @@
15
16
 
16
17
  <%= pb_rails("timestamp", props: {
17
18
  timestamp: DateTime.now + 4.years,
19
+ show_date: true,
18
20
  align: "left"
19
21
  }) %>
20
22
 
@@ -22,6 +24,7 @@
22
24
 
23
25
  <%= pb_rails("timestamp", props: {
24
26
  timestamp: DateTime.now - 1.year,
27
+ show_date: true,
25
28
  align: "left"
26
29
  }) %>
27
30
 
@@ -37,6 +40,7 @@
37
40
 
38
41
  <%= pb_rails("timestamp", props: {
39
42
  timestamp: DateTime.now,
43
+ show_date: true,
40
44
  align: "center"
41
45
  }) %>
42
46
 
@@ -44,6 +48,7 @@
44
48
 
45
49
  <%= pb_rails("timestamp", props: {
46
50
  timestamp: DateTime.now + 4.years,
51
+ show_date: true,
47
52
  align: "center"
48
53
  }) %>
49
54
 
@@ -51,6 +56,7 @@
51
56
 
52
57
  <%= pb_rails("timestamp", props: {
53
58
  timestamp: DateTime.now - 1.year,
59
+ show_date: true,
54
60
  align: "center"
55
61
  }) %>
56
62
 
@@ -58,6 +64,7 @@
58
64
 
59
65
  <%= pb_rails("timestamp", props: {
60
66
  timestamp: DateTime.now,
67
+ show_date: false,
61
68
  align: "right"
62
69
  }) %>
63
70
 
@@ -65,6 +72,7 @@
65
72
 
66
73
  <%= pb_rails("timestamp", props: {
67
74
  timestamp: DateTime.now,
75
+ show_date: true,
68
76
  align: "right"
69
77
  }) %>
70
78
 
@@ -72,6 +80,7 @@
72
80
 
73
81
  <%= pb_rails("timestamp", props: {
74
82
  timestamp: DateTime.now + 4.years,
83
+ show_date: true,
75
84
  align: "right"
76
85
  }) %>
77
86
 
@@ -79,5 +88,6 @@
79
88
 
80
89
  <%= pb_rails("timestamp", props: {
81
90
  timestamp: DateTime.now - 1.year,
91
+ show_date: true,
82
92
  align: "right"
83
93
  }) %>
@@ -25,6 +25,7 @@ const TimestampAlign = (props) => {
25
25
 
26
26
  <Timestamp
27
27
  align="left"
28
+ showDate
28
29
  timestamp={todaysDate}
29
30
  {...props}
30
31
  />
@@ -33,6 +34,7 @@ const TimestampAlign = (props) => {
33
34
 
34
35
  <Timestamp
35
36
  align="left"
37
+ showDate
36
38
  timestamp={futureDate}
37
39
  {...props}
38
40
  />
@@ -41,6 +43,7 @@ const TimestampAlign = (props) => {
41
43
 
42
44
  <Timestamp
43
45
  align="left"
46
+ showDate
44
47
  timestamp={pastDate}
45
48
  {...props}
46
49
  />
@@ -59,6 +62,7 @@ const TimestampAlign = (props) => {
59
62
 
60
63
  <Timestamp
61
64
  align="center"
65
+ showDate
62
66
  timestamp={todaysDate}
63
67
  {...props}
64
68
  />
@@ -67,6 +71,7 @@ const TimestampAlign = (props) => {
67
71
 
68
72
  <Timestamp
69
73
  align="center"
74
+ showDate
70
75
  timestamp={futureDate}
71
76
  {...props}
72
77
  />
@@ -75,6 +80,7 @@ const TimestampAlign = (props) => {
75
80
 
76
81
  <Timestamp
77
82
  align="center"
83
+ showDate
78
84
  timestamp={pastDate}
79
85
  {...props}
80
86
  />
@@ -93,6 +99,7 @@ const TimestampAlign = (props) => {
93
99
 
94
100
  <Timestamp
95
101
  align="right"
102
+ showDate
96
103
  timestamp={todaysDate}
97
104
  {...props}
98
105
  />
@@ -101,6 +108,7 @@ const TimestampAlign = (props) => {
101
108
 
102
109
  <Timestamp
103
110
  align="right"
111
+ showDate
104
112
  timestamp={futureDate}
105
113
  {...props}
106
114
  />
@@ -109,6 +117,7 @@ const TimestampAlign = (props) => {
109
117
 
110
118
  <Timestamp
111
119
  align="right"
120
+ showDate
112
121
  timestamp={pastDate}
113
122
  {...props}
114
123
  />
@@ -1,15 +1,29 @@
1
1
  <%= pb_rails("timestamp", props: {
2
- timestamp: DateTime.now
2
+ timestamp: DateTime.now,
3
+ show_date: false,
4
+ align: "left"
3
5
  }) %>
4
6
 
5
7
  <br>
6
8
 
7
9
  <%= pb_rails("timestamp", props: {
8
- timestamp: DateTime.now + 4.years
10
+ timestamp: DateTime.now,
11
+ show_date: true,
12
+ align: "left"
9
13
  }) %>
10
14
 
11
15
  <br>
12
16
 
13
17
  <%= pb_rails("timestamp", props: {
14
- timestamp: DateTime.now - 1.year
18
+ timestamp: DateTime.now + 4.years,
19
+ show_date: true,
20
+ align: "left"
21
+ }) %>
22
+
23
+ <br>
24
+
25
+ <%= pb_rails("timestamp", props: {
26
+ timestamp: DateTime.now - 1.year,
27
+ show_date: true,
28
+ align: "left"
15
29
  }) %>
@@ -15,6 +15,8 @@ const TimestampDefault = (props) => {
15
15
  return (
16
16
  <div>
17
17
  <Timestamp
18
+ align="left"
19
+ showDate={false}
18
20
  timestamp={todaysDate}
19
21
  {...props}
20
22
  />
@@ -22,6 +24,17 @@ const TimestampDefault = (props) => {
22
24
  <br />
23
25
 
24
26
  <Timestamp
27
+ align="left"
28
+ showDate
29
+ timestamp={todaysDate}
30
+ {...props}
31
+ />
32
+
33
+ <br />
34
+
35
+ <Timestamp
36
+ align="left"
37
+ showDate
25
38
  timestamp={futureDate}
26
39
  {...props}
27
40
  />
@@ -29,6 +42,8 @@ const TimestampDefault = (props) => {
29
42
  <br />
30
43
 
31
44
  <Timestamp
45
+ align="left"
46
+ showDate
32
47
  timestamp={pastDate}
33
48
  {...props}
34
49
  />
@@ -10,6 +10,7 @@
10
10
  <%= pb_rails("timestamp", props: {
11
11
  timestamp: DateTime.now - 3.months,
12
12
  variant: "elapsed",
13
+ show_user: false
13
14
  }) %>
14
15
 
15
16
  <br>
@@ -17,5 +18,6 @@
17
18
  <%= pb_rails("timestamp", props: {
18
19
  timestamp: DateTime.now - 320.days,
19
20
  variant: "elapsed",
21
+ show_user: false,
20
22
  hide_updated: true
21
23
  }) %>
@@ -23,6 +23,7 @@ const TimestampElapsed = (props) => {
23
23
  <br />
24
24
 
25
25
  <Timestamp
26
+ showUser={false}
26
27
  timestamp={customDate}
27
28
  variant="elapsed"
28
29
  {...props}
@@ -32,6 +33,7 @@ const TimestampElapsed = (props) => {
32
33
 
33
34
  <Timestamp
34
35
  hideUpdated
36
+ showUser={false}
35
37
  timestamp={customDate}
36
38
  variant="elapsed"
37
39
  {...props}