playbook_ui_docs 14.3.0.pre.alpha.revert3654PBNTR479removeextraspacingfromradiochildren3734 → 14.3.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
  3. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
  4. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +0 -2
  5. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +1 -2
  6. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
  7. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.html.erb +1 -1
  8. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.md +1 -1
  10. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.jsx +1 -1
  12. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.md +1 -1
  13. data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -2
  14. data/app/pb_kits/playbook/pb_nav/docs/index.js +3 -4
  15. data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
  16. data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
  17. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +11 -21
  18. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +0 -1
  19. data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb +2 -2
  20. data/dist/playbook-doc.js +1 -1
  21. metadata +2 -14
  22. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.html.erb +0 -29
  23. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.jsx +0 -43
  24. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_no_icon.html.erb +0 -10
  25. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_no_icon.jsx +0 -21
  26. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +0 -13
  27. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md +0 -3
  28. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.html.erb +0 -24
  29. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.jsx +0 -88
  30. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon_rails.md +0 -1
  31. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon_react.md +0 -1
  32. data/app/pb_kits/playbook/pb_radio/docs/_radio_children.jsx +0 -56
  33. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default_value.html.erb +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab93c8dd0ab0a5618620fbb9e684eedf2b1f83e05007641cbcda0f7b7f23d4c3
4
- data.tar.gz: 43cd4cc453785e1b63c18c6fc3d33130e8e3f8eefc98455732633b2e5c615727
3
+ metadata.gz: d1e7211ecf7112716670cb3bbb193ce80ea642e788ae9fd4e109f50deb8a7456
4
+ data.tar.gz: 9222fdd7c1417ec2ef587b62f13059a47a997460aa6aedf4dc02172190c20aad
5
5
  SHA512:
6
- metadata.gz: bdcc82307a561dc425accb0eb8e2f6615aefabf256e3bf2cc8e5c29599e67e0240575f8dc789caa796a1f654a078bc4ea0e5349fa72ae64636baa6df3a342969
7
- data.tar.gz: e885b778d86a923de98f8471f646c0d077677b38c4c86da6b5423e0efa2abfe0752ed3256fb164a6c4a69b7ac6977a1a24ccde19effee64d5e619062b070ea59
6
+ metadata.gz: 2c35ac6daf6a5048faaebda4695de2e6c9c35f395e3c62618bb0475680ff4575e81dae602afe5c3f4972c1ba68bd45077372f35e6d6d896b04ae7c7f5296f22f
7
+ data.tar.gz: 1a6a5a48dcbf3b39197596f2dfc1794573d1c790903e87168303ca44c958d6282e207687f9f81400778d6e1bbb9a7fa69874e08b39eeeadcd617520ced1951fb
@@ -3,10 +3,8 @@ examples:
3
3
  rails:
4
4
  - circle_icon_button_default: Default
5
5
  - circle_icon_button_link: Link
6
- - circle_icon_button_loading: Loading
7
6
 
8
7
  react:
9
8
  - circle_icon_button_default: Default
10
9
  - circle_icon_button_click: Click Handler
11
10
  - circle_icon_button_link: Link
12
- - circle_icon_button_loading: Loading
@@ -1,4 +1,3 @@
1
1
  export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
2
2
  export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
3
3
  export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
4
- export { default as CircleIconButtonLoading } from './_circle_icon_button_loading.jsx'
@@ -9,7 +9,6 @@ examples:
9
9
  - collapsible_external_controls_multiple: Toggle All Collapsibles With One Control
10
10
  - collapsible_custom_main_rails: Custom Main Section
11
11
  - collapsible_custom_main_with_icon_rails: Custom Main Section With Icon
12
- - collapsible_no_icon: No Icon
13
12
 
14
13
 
15
14
  react:
@@ -20,7 +19,6 @@ examples:
20
19
  - collapsible_state: useCollapsible Hook
21
20
  - collapsible_custom_main: Custom Main Section
22
21
  - collapsible_custom_main_with_icon: Custom Main Section With Icon
23
- - collapsible_no_icon: No Icon
24
22
 
25
23
 
26
24
 
@@ -4,5 +4,4 @@ export { default as CollapsibleColor } from './_collapsible_color.jsx'
4
4
  export { default as CollapsibleIcons } from './_collapsible_icons.jsx'
5
5
  export { default as CollapsibleState } from './_collapsible_state.jsx'
6
6
  export { default as CollapsibleCustomMain } from './_collapsible_custom_main.jsx'
7
- export { default as CollapsibleCustomMainWithIcon } from './_collapsible_custom_main_with_icon.jsx'
8
- export { default as CollapsibleNoIcon } from './_collapsible_no_icon.jsx'
7
+ export { default as CollapsibleCustomMainWithIcon } from './_collapsible_custom_main_with_icon.jsx'
@@ -10,7 +10,6 @@ examples:
10
10
  - dialog_stacked_alert: Stacked Button Alert
11
11
  - dialog_full_height: Full Height
12
12
  - dialog_full_height_placement: Full Height Placement
13
- - dialog_loading: Loading
14
13
 
15
14
 
16
15
  react:
@@ -2,4 +2,4 @@
2
2
 
3
3
  <br/><br/>
4
4
 
5
- <%= pb_rails("hashtag", props: {text: "Open in a new Window", url: "https://google.com", type: "project", target: "_blank"}) %>
5
+ <%= pb_rails("hashtag", props: {text: "Open in a new Window", url: "https://google.com", type: "project", new_window: true}) %>
@@ -13,7 +13,7 @@ const HashtagLink = (props) => {
13
13
  <br />
14
14
  <br />
15
15
  <Hashtag
16
- target="_blank"
16
+ newWindow
17
17
  text="Open in a new window"
18
18
  type="project"
19
19
  url="https://google.com"
@@ -1 +1 @@
1
- Use the `target` prop to control whether the link opens on the same or a new tab (same page is the default behavior). You can use any [web/standard](https://www.w3schools.com/tags/att_a_target.asp) values or a custom string to specify your link target.
1
+ Use the newWindow/new_window prop to control whether the link opens on the same page or a new tab (same page is the default behavior)
@@ -5,7 +5,7 @@
5
5
  home_id: 8250263,
6
6
  home_url: "https://powerhrg.com/",
7
7
  house_style: "Colonial",
8
- target: "_blank",
8
+ new_window: true,
9
9
  state: "PA",
10
10
  zipcode: "19382",
11
11
  territory: "PHL",
@@ -11,8 +11,8 @@ const HomeAddressStreetLink= (props) => {
11
11
  homeId={8250263}
12
12
  homeUrl="https://powerhrg.com/"
13
13
  houseStyle="Colonial"
14
+ newWindow
14
15
  state="PA"
15
- target="_blank"
16
16
  territory="PHL"
17
17
  zipcode="19382"
18
18
  {...props}
@@ -1 +1 @@
1
- Use the `target` prop to control whether the link opens on the same or a new tab (same page is the default behavior). You can use any [web/standard](https://www.w3schools.com/tags/att_a_target.asp) values or a custom string to specify your link target.
1
+ Use the `newWindow` / `new_window` prop to control whether the link opens on the same page or a new tab (same page is the default behavior)
@@ -13,7 +13,6 @@ examples:
13
13
  - nav_with_font_control: Nav With Font Control
14
14
  - collapsible_nav: Collapsible Nav
15
15
  - collapsible_nav_with_all_options: Collapsible Nav With Options
16
- - collapsible_nav_no_icon: Collapsible Nav No Icon
17
16
  - horizontal_nav: Horizontal Nav
18
17
  - subtle_horizontal_nav: Subtle Horizontal Nav
19
18
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -38,7 +37,6 @@ examples:
38
37
  - collapsible_nav_with_all_options: Collapsible Nav With Options
39
38
  - collapsible_nav_item_spacing: Collapsible Nav With ItemSpacing
40
39
  - collapsible_nav_custom: Collapsible Nav With Custom Toggling
41
- - collapsible_nav_no_icon: Collapsible Nav No Icon
42
40
  - horizontal_nav: Horizontal Nav
43
41
  - subtle_horizontal_nav: Subtle Horizontal Nav
44
42
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -15,8 +15,7 @@ export { default as BoldHorizontalNav } from './_bold_horizontal_nav.jsx'
15
15
  export { default as BoldVerticalNav } from './_bold_vertical_nav.jsx'
16
16
  export { default as CollapsibleNav } from './_collapsible_nav.jsx'
17
17
  export { default as CollapsibleNavCustom } from './_collapsible_nav_custom.jsx'
18
- export { default as CollapsibleNavWithAllOptions} from "./_collapsible_nav_with_all_options.jsx"
18
+ export {default as CollapsibleNavWithAllOptions} from "./_collapsible_nav_with_all_options.jsx"
19
19
  export { default as NavWithFontControl } from "./_nav_with_font_control.jsx"
20
- export { default as NavWithSpacingControl } from "./_nav_with_spacing_control.jsx"
21
- export { default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_spacing.jsx"
22
- export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
20
+ export {default as NavWithSpacingControl } from "./_nav_with_spacing_control.jsx"
21
+ export {default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_spacing.jsx"
@@ -14,7 +14,6 @@ examples:
14
14
  - radio_error: With Error
15
15
  - radio_alignment: Alignment
16
16
  - radio_disabled: Disabled
17
- - radio_children: Children
18
17
 
19
18
  swift:
20
19
  - radio_default_swift: Default
@@ -3,4 +3,3 @@ export { default as RadioCustom } from './_radio_custom.jsx'
3
3
  export { default as RadioError } from './_radio_error.jsx'
4
4
  export { default as RadioAlignment } from './_radio_alignment.jsx'
5
5
  export { default as RadioDisabled } from './_radio_disabled.jsx'
6
- export { default as RadioChildren } from './_radio_children.jsx'
@@ -1,7 +1,7 @@
1
1
 
2
2
  <%= pb_rails("rich_text_editor", props: { id: "content-preview-editor" }) %>
3
3
  <div id="card-obfuscation" style="display:none">
4
- <%= pb_rails("card", props: { margin_top: "md", max_width: "md", padding: "sm" }) do %>
4
+ <%= pb_rails("card", props: { margin_top: "md" }) do %>
5
5
  <div id="content-preview" class="trix-content">
6
6
  </div>
7
7
  <% end %>
@@ -11,25 +11,15 @@
11
11
  <% end %>
12
12
 
13
13
  <script>
14
- document.addEventListener('DOMContentLoaded', () => {
15
- function handleButtonClick() {
16
- const editorContainer = [...document.querySelectorAll('[data-react-props]')]
17
- .find(element => element.getAttribute('data-react-props')?.includes('"id":"content-preview-editor"'))
14
+ // Button event handler
15
+ const button = document.getElementById('preview-button');
16
+ button.addEventListener('click', function() {
17
+ const content = document.getElementById('content-preview-editor');
18
+ const previewArea = document.getElementById('content-preview');
19
+ const cardDiv = document.getElementById('card-obfuscation');
18
20
 
19
- const editorElement = editorContainer?.querySelector('trix-editor')
20
- const inputId = editorElement?.getAttribute('input')
21
- const inputElement = inputId && document.getElementById(inputId)
22
-
23
- const editorContent = inputElement?.value || ''
24
- const previewArea = document.getElementById('content-preview')
25
- const cardDiv = document.getElementById('card-obfuscation')
26
-
27
- if (previewArea && cardDiv) {
28
- previewArea.innerHTML = editorContent
29
- cardDiv.style.display = 'block'
30
- }
31
- }
32
-
33
- document.getElementById('preview-button')?.addEventListener('click', handleButtonClick)
34
- })
21
+ previewArea.innerHTML = content.value;
22
+ cardDiv.classList.add('mt_md');
23
+ cardDiv.style.display = 'block';
24
+ });
35
25
  </script>
@@ -7,7 +7,6 @@ examples:
7
7
  - star_rating_number_config: Number Config
8
8
  - star_rating_size_options: Size Options
9
9
  - star_rating_interactive: Interactive
10
- - star_rating_default_value: Default Value
11
10
 
12
11
  react:
13
12
  - star_rating_default: Default
@@ -8,7 +8,7 @@
8
8
  <br>
9
9
 
10
10
  <%= pb_rails("timestamp", props: {
11
- timestamp: DateTime.now - 3.months,
11
+ timestamp: DateTime.now,
12
12
  variant: "elapsed",
13
13
  show_user: false
14
14
  }) %>
@@ -16,7 +16,7 @@
16
16
  <br>
17
17
 
18
18
  <%= pb_rails("timestamp", props: {
19
- timestamp: DateTime.now - 320.days,
19
+ timestamp: DateTime.now,
20
20
  variant: "elapsed",
21
21
  show_user: false,
22
22
  hide_updated: true