playbook_ui_docs 14.3.0.pre.alpha.revert3654PBNTR479removeextraspacingfromradiochildren3734 → 14.3.0.pre.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_collapsible/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.html.erb +1 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.jsx +1 -1
- data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_link.md +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.html.erb +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.jsx +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_link.md +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_nav/docs/index.js +3 -4
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +11 -21
- data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_timestamp/docs/_timestamp_elapsed.html.erb +2 -2
- data/dist/playbook-doc.js +1 -1
- metadata +2 -14
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.html.erb +0 -29
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_loading.jsx +0 -43
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_no_icon.html.erb +0 -10
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_no_icon.jsx +0 -21
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +0 -13
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.md +0 -3
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.html.erb +0 -24
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.jsx +0 -88
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon_rails.md +0 -1
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon_react.md +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_children.jsx +0 -56
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1e7211ecf7112716670cb3bbb193ce80ea642e788ae9fd4e109f50deb8a7456
|
4
|
+
data.tar.gz: 9222fdd7c1417ec2ef587b62f13059a47a997460aa6aedf4dc02172190c20aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
@@ -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",
|
5
|
+
<%= pb_rails("hashtag", props: {text: "Open in a new Window", url: "https://google.com", type: "project", new_window: true}) %>
|
@@ -1 +1 @@
|
|
1
|
-
Use the
|
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)
|
@@ -1 +1 @@
|
|
1
|
-
Use the `
|
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 {
|
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 {
|
21
|
-
export {
|
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"
|
@@ -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"
|
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
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
-
|
20
|
-
|
21
|
-
|
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>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<br>
|
9
9
|
|
10
10
|
<%= pb_rails("timestamp", props: {
|
11
|
-
timestamp: DateTime.now
|
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
|
19
|
+
timestamp: DateTime.now,
|
20
20
|
variant: "elapsed",
|
21
21
|
show_user: false,
|
22
22
|
hide_updated: true
|