playbook_ui_docs 14.12.0.pre.alpha.PBNTR8335906 → 14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +3 -9
- data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +2 -6
- data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +3 -3
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +5 -13
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_link/docs/example.yml +3 -5
- data/app/pb_kits/playbook/pb_link/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tooltip.html.erb +6 -6
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +9 -6
- data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +9 -6
- data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_user/docs/index.js +0 -1
- data/dist/playbook-doc.js +1 -1
- metadata +3 -12
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb +0 -2
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +0 -5
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +0 -58
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +0 -3
- data/app/pb_kits/playbook/pb_link/docs/_link_target.html.erb +0 -15
- data/app/pb_kits/playbook/pb_link/docs/_link_target.jsx +0 -29
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb +0 -42
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +0 -59
- data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.md +0 -2
- /data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/{_fixed_confirmation_toast_auto_close_react.md → _fixed_confirmation_toast_auto_close.md} +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.12.0.pre.alpha.
|
4
|
+
version: 14.12.0.pre.alpha.PLAY1602lightboxoverlapnitrobugzindextoken5751
|
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: 2025-
|
12
|
+
date: 2025-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -436,9 +436,7 @@ files:
|
|
436
436
|
- app/pb_kits/playbook/pb_contact/docs/_description.md
|
437
437
|
- app/pb_kits/playbook/pb_contact/docs/example.yml
|
438
438
|
- app/pb_kits/playbook/pb_contact/docs/index.js
|
439
|
-
- app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb
|
440
439
|
- app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx
|
441
|
-
- app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb
|
442
440
|
- app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx
|
443
441
|
- app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md
|
444
442
|
- app/pb_kits/playbook/pb_copy_button/docs/example.yml
|
@@ -813,10 +811,8 @@ files:
|
|
813
811
|
- app/pb_kits/playbook/pb_filter/docs/example.yml
|
814
812
|
- app/pb_kits/playbook/pb_filter/docs/index.js
|
815
813
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_description.md
|
816
|
-
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb
|
817
814
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.jsx
|
818
|
-
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/
|
819
|
-
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_react.md
|
815
|
+
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.md
|
820
816
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.html.erb
|
821
817
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.jsx
|
822
818
|
- app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.md
|
@@ -1172,8 +1168,6 @@ files:
|
|
1172
1168
|
- app/pb_kits/playbook/pb_link/docs/_link_icon.jsx
|
1173
1169
|
- app/pb_kits/playbook/pb_link/docs/_link_tag.html.erb
|
1174
1170
|
- app/pb_kits/playbook/pb_link/docs/_link_tag.jsx
|
1175
|
-
- app/pb_kits/playbook/pb_link/docs/_link_target.html.erb
|
1176
|
-
- app/pb_kits/playbook/pb_link/docs/_link_target.jsx
|
1177
1171
|
- app/pb_kits/playbook/pb_link/docs/_link_underline.html.erb
|
1178
1172
|
- app/pb_kits/playbook/pb_link/docs/_link_underline.jsx
|
1179
1173
|
- app/pb_kits/playbook/pb_link/docs/example.yml
|
@@ -2114,9 +2108,6 @@ files:
|
|
2114
2108
|
- app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
|
2115
2109
|
- app/pb_kits/playbook/pb_user/docs/_user_default.jsx
|
2116
2110
|
- app/pb_kits/playbook/pb_user/docs/_user_horizontal_swift.md
|
2117
|
-
- app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb
|
2118
|
-
- app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx
|
2119
|
-
- app/pb_kits/playbook/pb_user/docs/_user_light_weight.md
|
2120
2111
|
- app/pb_kits/playbook/pb_user/docs/_user_presence_indicator_swift.md
|
2121
2112
|
- app/pb_kits/playbook/pb_user/docs/_user_props_table.md
|
2122
2113
|
- app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
|
@@ -1,2 +0,0 @@
|
|
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" }) %>
|
@@ -1,5 +0,0 @@
|
|
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" }) %>
|
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" }) %>
|
5
|
-
<%= pb_rails("text_input", props: { margin_top: "xs", id: "copy-input" , value: "Copy and paste here" }) %>
|
@@ -1,58 +0,0 @@
|
|
1
|
-
<%= pb_rails("button", props: { text: "Show Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close" } }) %>
|
2
|
-
<%= pb_rails("button", props: { text: "Show Closeable Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close-closeable" } }) %>
|
3
|
-
|
4
|
-
<%= pb_rails("fixed_confirmation_toast", props: {
|
5
|
-
auto_close: 3000,
|
6
|
-
classname: "toast-to-hide",
|
7
|
-
id: "toast-auto-close",
|
8
|
-
text: "I will disappear in 3 seconds.",
|
9
|
-
status: "tip",
|
10
|
-
vertical: "top",
|
11
|
-
horizontal: "center"
|
12
|
-
}) %>
|
13
|
-
|
14
|
-
<%= pb_rails("fixed_confirmation_toast", props: {
|
15
|
-
auto_close: 10000,
|
16
|
-
closeable: true,
|
17
|
-
id: "toast-auto-close-closeable",
|
18
|
-
text: "I will disappear in 10 seconds.",
|
19
|
-
status: "tip",
|
20
|
-
vertical: "top",
|
21
|
-
horizontal: "center"
|
22
|
-
}) %>
|
23
|
-
|
24
|
-
<script>
|
25
|
-
document.addEventListener('DOMContentLoaded', () => {
|
26
|
-
// Initialize toast elements and buttons
|
27
|
-
const toasts = {
|
28
|
-
'#toast-auto-close': document.querySelector("#toast-auto-close"),
|
29
|
-
'#toast-auto-close-closeable': document.querySelector("#toast-auto-close-closeable")
|
30
|
-
}
|
31
|
-
|
32
|
-
const buttons = {
|
33
|
-
'#toast-auto-close': document.querySelector("button[data-toast='#toast-auto-close']"),
|
34
|
-
'#toast-auto-close-closeable': document.querySelector("button[data-toast='#toast-auto-close-closeable']")
|
35
|
-
}
|
36
|
-
|
37
|
-
// Store original toasts and remove them from DOM
|
38
|
-
const originalToasts = {}
|
39
|
-
Object.entries(toasts).forEach(([id, toast]) => {
|
40
|
-
if (toast) {
|
41
|
-
originalToasts[id] = toast.cloneNode(true)
|
42
|
-
toast.remove()
|
43
|
-
}
|
44
|
-
})
|
45
|
-
|
46
|
-
// Set up button click handlers
|
47
|
-
Object.keys(buttons).forEach((toastId) => {
|
48
|
-
const button = buttons[toastId]
|
49
|
-
if (button) {
|
50
|
-
button.onclick = () => {
|
51
|
-
const newToast = originalToasts[toastId].cloneNode(true)
|
52
|
-
newToast.style.display = "flex"
|
53
|
-
document.body.appendChild(newToast)
|
54
|
-
}
|
55
|
-
}
|
56
|
-
})
|
57
|
-
})
|
58
|
-
</script>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
Auto close is used when you want the confirmation toast to close automatically after a certain time. `auto_close` property will be a delay number in ms.
|
2
|
-
|
3
|
-
The script tag in this code snippet is for demonstration purposes only. It clones the toasts in order to have it appear with a button click prompt and not upon initial page load. In a typical production environment the event triggering a fixed confirmation toast to appear would be handled by a controller or a separate javascript file.
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<div>
|
2
|
-
<%= pb_rails("link", props: {
|
3
|
-
href: "http://google.com",
|
4
|
-
target: "blank",
|
5
|
-
text: "Open In New Window"
|
6
|
-
}) %>
|
7
|
-
</div>
|
8
|
-
|
9
|
-
<div>
|
10
|
-
<%= pb_rails("link", props: {
|
11
|
-
href: "https://playbook.powerapp.cloud/",
|
12
|
-
target: "child",
|
13
|
-
text: "Open In Child Tab",
|
14
|
-
}) %>
|
15
|
-
</div>
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Link } from 'playbook-ui'
|
3
|
-
|
4
|
-
const LinkTarget = (props) => (
|
5
|
-
<div>
|
6
|
-
<div>
|
7
|
-
<Link
|
8
|
-
aria={{ label: 'Link to Google in new window' }}
|
9
|
-
href="https://google.com"
|
10
|
-
tabIndex={0}
|
11
|
-
target='blank'
|
12
|
-
text="Open In New Window"
|
13
|
-
{...props}
|
14
|
-
/>
|
15
|
-
</div>
|
16
|
-
<div>
|
17
|
-
<Link
|
18
|
-
aria={{ label: 'Link to Playbook in a child tab' }}
|
19
|
-
href="https://playbook.powerapp.cloud/"
|
20
|
-
tabIndex={0}
|
21
|
-
target='child'
|
22
|
-
text="Open In Child Tab"
|
23
|
-
{...props}
|
24
|
-
/>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
)
|
28
|
-
|
29
|
-
export default LinkTarget
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<div class="pb--doc-demo-row">
|
2
|
-
<div>
|
3
|
-
<%= pb_rails("user", props: {
|
4
|
-
name: "Anna Black",
|
5
|
-
title: "Remodeling Consultant",
|
6
|
-
orientation: "vertical",
|
7
|
-
align: "center",
|
8
|
-
size: "lg",
|
9
|
-
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
10
|
-
bold: false
|
11
|
-
}) %>
|
12
|
-
</div>
|
13
|
-
<div>
|
14
|
-
<%= pb_rails("user", props: {
|
15
|
-
name: "Anna Black",
|
16
|
-
title: "Remodeling Consultant",
|
17
|
-
orientation: "horizontal",
|
18
|
-
align: "left",
|
19
|
-
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
20
|
-
bold: false
|
21
|
-
}) %>
|
22
|
-
</div>
|
23
|
-
<div>
|
24
|
-
<%= pb_rails("user", props: {
|
25
|
-
name: "Anna Black",
|
26
|
-
orientation: "horizontal",
|
27
|
-
align: "left",
|
28
|
-
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
29
|
-
bold: false
|
30
|
-
}) %>
|
31
|
-
|
32
|
-
<br>
|
33
|
-
|
34
|
-
<%= pb_rails("user", props: {
|
35
|
-
name: "Anna Black",
|
36
|
-
orientation: "horizontal",
|
37
|
-
align: "left",
|
38
|
-
avatar: true,
|
39
|
-
bold: false
|
40
|
-
}) %>
|
41
|
-
</div>
|
42
|
-
</div>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { User } from 'playbook-ui'
|
3
|
-
|
4
|
-
const UserLightWeight = (props) => {
|
5
|
-
return (
|
6
|
-
<div className="pb--doc-demo-row">
|
7
|
-
|
8
|
-
<div>
|
9
|
-
<User
|
10
|
-
align="center"
|
11
|
-
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
12
|
-
bold={false}
|
13
|
-
name="Anna Black"
|
14
|
-
orientation="vertical"
|
15
|
-
size="lg"
|
16
|
-
title="Remodeling Consultant"
|
17
|
-
{...props}
|
18
|
-
/>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
<div>
|
22
|
-
<User
|
23
|
-
align="left"
|
24
|
-
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
25
|
-
bold={false}
|
26
|
-
name="Anna Black"
|
27
|
-
orientation="horizontal"
|
28
|
-
title="Remodeling Consultant"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div>
|
34
|
-
<User
|
35
|
-
align="left"
|
36
|
-
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
37
|
-
bold={false}
|
38
|
-
name="Anna Black"
|
39
|
-
orientation="horizontal"
|
40
|
-
{...props}
|
41
|
-
/>
|
42
|
-
|
43
|
-
<br />
|
44
|
-
|
45
|
-
<User
|
46
|
-
align="left"
|
47
|
-
avatar
|
48
|
-
bold={false}
|
49
|
-
name="Anna Black"
|
50
|
-
orientation="horizontal"
|
51
|
-
{...props}
|
52
|
-
/>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
</div>
|
56
|
-
)
|
57
|
-
}
|
58
|
-
|
59
|
-
export default UserLightWeight
|