playbook_ui_docs 15.5.0.pre.rc.2 → 15.5.0.pre.rc.3
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_copy_button/docs/_copy_button_icon_variant.jsx +24 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_icon_variant_react.md +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -5
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.html.erb +14 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.jsx +29 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.jsx +31 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.md +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +4 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +14 -3
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb +1 -7
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.md +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/index.js +2 -0
- data/dist/playbook-doc.js +1 -1
- metadata +12 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 67521f39b3bf3e61512adc17e8bac9e1038f17adebe8ead35fac4f256e4c1a5d
|
|
4
|
+
data.tar.gz: 499f18183db76bd3e1dee73d53c1918829a82082ac829448127ced136bf8f367
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab6215c0a3811cc649c1b961a5a97bbe9a65831611fa59295edaf9f12017350d469d979642fcc0e6e46b719aeafdf66da83cf33b0217fbd67988c0f16d617bed
|
|
7
|
+
data.tar.gz: 87c3cff9e2433d5d76b8c34229619b02dc28e78c3285b98022ef4cc82634af5431134d00dd4e49984fd0eb425e2a8f1c7790ef8a42a3979ec180dc2b16b23e0a
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import CopyButton from '../../pb_copy_button/_copy_button'
|
|
4
|
+
import Textarea from '../../pb_textarea/_textarea'
|
|
5
|
+
|
|
6
|
+
const CopyIconVariant = (props) => (
|
|
7
|
+
<div>
|
|
8
|
+
<CopyButton
|
|
9
|
+
{...props}
|
|
10
|
+
text="Copy Text"
|
|
11
|
+
tooltipPlacement="right"
|
|
12
|
+
tooltipText="Text copied!"
|
|
13
|
+
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."
|
|
14
|
+
variant="icon"
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
<Textarea
|
|
18
|
+
{...props}
|
|
19
|
+
placeholder="Copy and paste here"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default CopyIconVariant
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Pass in `variant="icon"` to replace the Button with the Circle Icon Button kit.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as CopyButtonDefault } from './_copy_button_default.jsx'
|
|
2
2
|
export { default as CopyButtonFrom } from './_copy_button_from.jsx'
|
|
3
3
|
export { default as CopyButtonHook } from './_copy_button_hook.jsx'
|
|
4
|
+
export { default as CopyButtonIconVariant } from './_copy_button_icon_variant.jsx'
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
Progress
|
|
2
|
-
|
|
3
|
-
**Tracker**
|
|
4
|
-
You must set the icon prop to true for this kit.
|
|
5
|
-
This variant takes children just like the default progress step. It is best to use the caption kit for children in this variant.
|
|
1
|
+
Progress Step kit is used to show the progress of a process. There are three types of steps in this kit: completed, active, and inactive. Completed steps are indicated by a solid, blue circle (with or without an icon). The current, or active, step is indicated by an outlined blue circle. The inactive, or future, step is indicated by a solid gray circle.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<br><br>
|
|
2
|
+
<%= pb_rails("progress_step",props:{ variant:"tracker", icon:true, color: "info"}) do %>
|
|
3
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
|
4
|
+
<%= pb_rails("caption", props:{text: "Ordered"})%>
|
|
5
|
+
<% end %>
|
|
6
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
|
7
|
+
<%= pb_rails("caption", props:{text: "Shipped"})%>
|
|
8
|
+
<% end %>
|
|
9
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
|
10
|
+
<%= pb_rails("caption", props:{text: "Delivered"})%>
|
|
11
|
+
<% end %>
|
|
12
|
+
<% end %>
|
|
13
|
+
|
|
14
|
+
<br>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import ProgressStep from '../_progress_step.tsx'
|
|
4
|
+
import ProgressStepItem from '../_progress_step_item.tsx'
|
|
5
|
+
import Caption from '../../pb_caption/_caption'
|
|
6
|
+
|
|
7
|
+
const ProgressStepColor = (props) => (
|
|
8
|
+
<div>
|
|
9
|
+
<br />
|
|
10
|
+
<ProgressStep
|
|
11
|
+
color="info"
|
|
12
|
+
icon
|
|
13
|
+
variant="tracker"
|
|
14
|
+
{...props}
|
|
15
|
+
>
|
|
16
|
+
<ProgressStepItem status="complete">
|
|
17
|
+
<Caption>{'Ordered'}</Caption>
|
|
18
|
+
</ProgressStepItem>
|
|
19
|
+
<ProgressStepItem status="active">
|
|
20
|
+
<Caption>{'Shipped'}</Caption>
|
|
21
|
+
</ProgressStepItem>
|
|
22
|
+
<ProgressStepItem status="inactive">
|
|
23
|
+
<Caption>{'Delivered'}</Caption>
|
|
24
|
+
</ProgressStepItem>
|
|
25
|
+
</ProgressStep>
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
export default ProgressStepColor
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import ProgressStep from '../_progress_step.tsx'
|
|
4
|
+
import ProgressStepItem from '../_progress_step_item.tsx'
|
|
5
|
+
import Caption from '../../pb_caption/_caption'
|
|
6
|
+
|
|
7
|
+
const ProgressStepCustomIcon = (props) => (
|
|
8
|
+
<div>
|
|
9
|
+
<br />
|
|
10
|
+
<ProgressStep
|
|
11
|
+
icon
|
|
12
|
+
variant="tracker"
|
|
13
|
+
{...props}
|
|
14
|
+
>
|
|
15
|
+
<ProgressStepItem status="complete">
|
|
16
|
+
<Caption>{'Ordered'}</Caption>
|
|
17
|
+
</ProgressStepItem>
|
|
18
|
+
<ProgressStepItem
|
|
19
|
+
icon="exclamation-triangle"
|
|
20
|
+
status="active"
|
|
21
|
+
>
|
|
22
|
+
<Caption>{'Shipped'}</Caption>
|
|
23
|
+
</ProgressStepItem>
|
|
24
|
+
<ProgressStepItem status="inactive">
|
|
25
|
+
<Caption>{'Delivered'}</Caption>
|
|
26
|
+
</ProgressStepItem>
|
|
27
|
+
</ProgressStep>
|
|
28
|
+
</div>
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
export default ProgressStepCustomIcon
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Custom icons can also be set for individual steps. Simply use the `icon` prop for the relevant `ProgressStepItem`/`progress_step_item` as shown here.
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "complete"}) do %>
|
|
40
40
|
step 2
|
|
41
41
|
<% end %>
|
|
42
|
-
<%= pb_rails("progress_step/progress_step_item", props: {status: "
|
|
42
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
|
43
43
|
step 3
|
|
44
|
+
<% end %>
|
|
45
|
+
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
|
46
|
+
step 4
|
|
44
47
|
<% end %>
|
|
45
48
|
<% end %>
|
|
@@ -6,7 +6,6 @@ import ProgressStepItem from '../_progress_step_item.tsx'
|
|
|
6
6
|
const ProgressStepDefault = (props) => (
|
|
7
7
|
<div>
|
|
8
8
|
<ProgressStep
|
|
9
|
-
icon
|
|
10
9
|
{...props}
|
|
11
10
|
>
|
|
12
11
|
<ProgressStepItem status="complete" />
|
|
@@ -19,12 +18,24 @@ const ProgressStepDefault = (props) => (
|
|
|
19
18
|
|
|
20
19
|
<ProgressStep {...props}>
|
|
21
20
|
<ProgressStepItem status="complete">{'Step 1'}</ProgressStepItem>
|
|
22
|
-
<ProgressStepItem status="
|
|
23
|
-
<ProgressStepItem status="
|
|
21
|
+
<ProgressStepItem status="complete">{'Step 2'}</ProgressStepItem>
|
|
22
|
+
<ProgressStepItem status="active">{'Step 3'}</ProgressStepItem>
|
|
23
|
+
<ProgressStepItem status="inactive">{'Step 4'}</ProgressStepItem>
|
|
24
|
+
<ProgressStepItem status="inactive">{'Step 5'}</ProgressStepItem>
|
|
24
25
|
</ProgressStep>
|
|
25
26
|
|
|
26
27
|
<br />
|
|
27
28
|
<br />
|
|
29
|
+
|
|
30
|
+
<ProgressStep
|
|
31
|
+
icon
|
|
32
|
+
{...props}
|
|
33
|
+
>
|
|
34
|
+
<ProgressStepItem status="complete">{'Step 1'}</ProgressStepItem>
|
|
35
|
+
<ProgressStepItem status="complete">{'Step 2'}</ProgressStepItem>
|
|
36
|
+
<ProgressStepItem status="active">{'Step 3'}</ProgressStepItem>
|
|
37
|
+
<ProgressStepItem status="inactive">{'Step 4'}</ProgressStepItem>
|
|
38
|
+
</ProgressStep>
|
|
28
39
|
</div>
|
|
29
40
|
)
|
|
30
41
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
The `variant` prop can be set to `tracker` to achieve this UI. Tracker is only available with the horizontal orientation and it is also recommended that you set the `icon` prop to true for this variant.
|
|
2
|
+
|
|
3
|
+
This variant takes children just like the default progress step, however, it is best to use the caption kit for children in this variant.
|
|
@@ -25,13 +25,7 @@
|
|
|
25
25
|
Child
|
|
26
26
|
<% end %>
|
|
27
27
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "active"}) do %>
|
|
28
|
-
|
|
29
|
-
Card content
|
|
30
|
-
<% end %>
|
|
31
|
-
<br>
|
|
32
|
-
<%= pb_rails("card", props: {highlight: {position: "side", color:"windows"}}) do %>
|
|
33
|
-
Card content
|
|
34
|
-
<% end %>
|
|
28
|
+
Child
|
|
35
29
|
<% end %>
|
|
36
30
|
<%= pb_rails("progress_step/progress_step_item", props: {status: "inactive"}) do %>
|
|
37
31
|
Child
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
`orientation` can also be set to `vertical` as shown here. By default, this is set to `horizontal`.
|
|
@@ -3,6 +3,7 @@ examples:
|
|
|
3
3
|
- progress_step_default: Default
|
|
4
4
|
- progress_step_vertical: Vertical
|
|
5
5
|
- progress_step_tracker: Tracker
|
|
6
|
+
- progress_step_color: Color
|
|
6
7
|
- progress_step_custom_icon: Custom Icon
|
|
7
8
|
- progress_step_tooltip: Tooltip
|
|
8
9
|
|
|
@@ -10,4 +11,6 @@ examples:
|
|
|
10
11
|
- progress_step_default: Default
|
|
11
12
|
- progress_step_vertical: Vertical
|
|
12
13
|
- progress_step_tracker: Tracker
|
|
14
|
+
- progress_step_color: Color
|
|
15
|
+
- progress_step_custom_icon: Custom Icon
|
|
13
16
|
- progress_step_tracker_click_events: Using State
|
|
@@ -2,3 +2,5 @@ export { default as ProgressStepDefault } from './_progress_step_default.jsx'
|
|
|
2
2
|
export { default as ProgressStepVertical } from './_progress_step_vertical.jsx'
|
|
3
3
|
export { default as ProgressStepTracker } from './_progress_step_tracker.jsx'
|
|
4
4
|
export { default as ProgressStepTrackerClickEvents } from './_progress_step_tracker_click_events.jsx'
|
|
5
|
+
export { default as ProgressStepColor } from './_progress_step_color.jsx'
|
|
6
|
+
export { default as ProgressStepCustomIcon } from './_progress_step_custom_icon.jsx'
|