playbook_ui_docs 12.31.0.pre.alpha.multilevelnopillsdesigns944 → 12.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1da8141a143b97cc52b5be1fccc8a1572ddd8af27d820cd8c192689ebd4206dc
4
- data.tar.gz: 2631b62b07dea90867762e2cdb4f5308441c24abab1144d9ba3159558f0e8cc0
3
+ metadata.gz: '01700709d03454065bd3f7c29892078b5e36a98c67633cd5e4a5c7ca8d67f8a2'
4
+ data.tar.gz: fc154b9f27ecc769def6089ee546aec147cfcda0f6f7933ef5fa041af98b6ad5
5
5
  SHA512:
6
- metadata.gz: 0bf5642cc20a5bbb1cd07236c04cb581274870e0517aa5f7823c175ced3285e681a8a1b0a681c22fe9d3804906fef0b8e26f364d37c7db358d3c1a2ac35051df
7
- data.tar.gz: 55d3cc41e4d09d09aa6c2504d7a554de5634a23e9162374f461e8d5a94ced70b207c34d5accaf96d32b209f5abfdc6796fc50a1afb055889d6820f0a82cf4268
6
+ metadata.gz: 67c99086eab351f965e1fab1198f5b9c37cdac0514414f5bda7bcd64ed0d2171a8b40457321313d13b13ffbe88d8489d09555f3decc6962bad42cd10a625d57b
7
+ data.tar.gz: 5aa40d6431811565b9e1dafaa360c496a36bdde350eb9fcdd1aac5c0b5b710ffb811f38486136bbf0b00b38866674361d78b2864797ee24e65d07bc5b6fe4be9
@@ -0,0 +1,3 @@
1
+ <%= pb_rails("button", props: { hover: { shadow: "deep"}, text: "Shadow Deep", margin_right: "lg" }) %>
2
+ <%= pb_rails("button", props: { hover: { shadow: "deeper"}, text: "Shadow Deeper", margin_right: "lg" }) %>
3
+ <%= pb_rails("button", props: { hover: { shadow: "deepest"}, text: "Shadow Deepest", margin_right: "lg" }) %>
@@ -10,6 +10,7 @@ examples:
10
10
  - button_options: Button Additional Options
11
11
  - button_size: Button Size
12
12
  - button_form: Button Form Attribute
13
+
13
14
  react:
14
15
  - button_default: Button Variants
15
16
  - button_full_width: Button Full Width
@@ -0,0 +1,17 @@
1
+ <%= pb_rails("fixed_confirmation_toast", props: {
2
+ padding_y: "none",
3
+ status: "success"
4
+ }) do %>
5
+ <%= pb_rails("title", props: {
6
+ dark: true,
7
+ margin_left: "md",
8
+ text: "Design & Handoff Process was moved to UX Designer Learning Track.",
9
+ size: 4
10
+ }) %>
11
+ <%= pb_rails("button", props: {
12
+ dark: true,
13
+ padding_right: "none",
14
+ text: "Undo",
15
+ variant: "link"
16
+ }) %>
17
+ <% end %>
@@ -0,0 +1,33 @@
1
+ import React from 'react'
2
+
3
+ import FixedConfirmationToast from '../_fixed_confirmation_toast'
4
+ import Button from '../../pb_button/_button'
5
+ import Title from '../../pb_title/_title'
6
+
7
+ const FixedConfirmationToastChildren = (props) => {
8
+ return (
9
+ <>
10
+ <FixedConfirmationToast
11
+ paddingY="none"
12
+ status="success"
13
+ {...props}
14
+ >
15
+ <Title
16
+ dark
17
+ marginLeft="md"
18
+ size={4}
19
+ text="Design & Handoff Process was moved to UX Designer Learning Track."
20
+ />
21
+ <Button
22
+ dark
23
+ onClick={() => alert("button clicked!")}
24
+ paddingRight="none"
25
+ text="Undo"
26
+ variant="link"
27
+ />
28
+ </FixedConfirmationToast>
29
+ </>
30
+ )
31
+ }
32
+
33
+ export default FixedConfirmationToastChildren
@@ -0,0 +1,3 @@
1
+ Pass anything (including any of our kits) to the `children` prop to customize the content of the fixed confirmation toast.
2
+
3
+ **NOTE:** passing `children` overrides any content passed to `text`
@@ -5,6 +5,7 @@ examples:
5
5
  - fixed_confirmation_toast_multi_line: Multi Line
6
6
  - fixed_confirmation_toast_close: Click to Close
7
7
  - fixed_confirmation_toast_positions: Click to Show Positions
8
+ - fixed_confirmation_toast_children: Children
8
9
 
9
10
  react:
10
11
  - fixed_confirmation_toast_default: Default
@@ -12,3 +13,4 @@ examples:
12
13
  - fixed_confirmation_toast_close: Click to Close
13
14
  - fixed_confirmation_toast_positions: Click to Show Positions
14
15
  - fixed_confirmation_toast_auto_close: Click to Show Auto Close
16
+ - fixed_confirmation_toast_children: Children
@@ -3,3 +3,4 @@ export { default as FixedConfirmationToastMultiLine } from './_fixed_confirmatio
3
3
  export { default as FixedConfirmationToastClose } from './_fixed_confirmation_toast_close.jsx'
4
4
  export { default as FixedConfirmationToastPositions } from './_fixed_confirmation_toast_positions.jsx'
5
5
  export { default as FixedConfirmationToastAutoClose } from './_fixed_confirmation_toast_auto_close.jsx'
6
+ export { default as FixedConfirmationToastChildren } from './_fixed_confirmation_toast_children.jsx'
@@ -0,0 +1,25 @@
1
+ <%= pb_rails("message", props: {
2
+ avatar_name: "Mike Bishop",
3
+ avatar_status: "online",
4
+ avatar_url: "https://randomuser.me/api/portraits/men/50.jpg",
5
+ border_radius: "rounded",
6
+ hover: { background: "success_subtle" },
7
+ label: "Anna Black",
8
+ message: "How can we assist you today?",
9
+ padding: "xs",
10
+ }) %>
11
+
12
+ <br><br>
13
+
14
+ <%= pb_rails("message", props: {
15
+ align_timestamp: "left",
16
+ avatar_name: "Lucille Sanchez",
17
+ avatar_url: "https://randomuser.me/api/portraits/women/50.jpg",
18
+ border_radius: "rounded",
19
+ hover: { shadow: "deepest" },
20
+ label: "Becca Jacobs",
21
+ message: "Application for Kate Smith is waiting for your approval",
22
+ padding: "xs",
23
+ }) %>
24
+
25
+ <br><br>
@@ -3,6 +3,7 @@ examples:
3
3
  rails:
4
4
  - message_default: Default
5
5
  - message_timestamp: With Timestamp Hover
6
+ - message_hover: Hover
6
7
 
7
8
 
8
9
  react: