playbook_ui_docs 14.6.2.pre.alpha.PLAY1613darkdatetimecolors4432 → 14.6.2.pre.alpha.PLAY15814348
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_advanced_table/docs/_advanced_table_custom_cell.jsx +2 -13
- data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +17 -3
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +1 -24
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +2 -25
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -0
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
- data/dist/playbook-doc.js +1 -1
- metadata +3 -19
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +0 -3
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.jsx +0 -51
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.jsx +0 -26
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.jsx +0 -11
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +0 -59
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.jsx +0 -20
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +0 -13
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -43
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -68
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.md +0 -2
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.6.2.pre.alpha.
|
4
|
+
version: 14.6.2.pre.alpha.PLAY15814348
|
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: 2024-11-
|
12
|
+
date: 2024-11-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -856,8 +856,7 @@ files:
|
|
856
856
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx
|
857
857
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb
|
858
858
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx
|
859
|
-
- app/pb_kits/playbook/pb_form_pill/docs/
|
860
|
-
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md
|
859
|
+
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md
|
861
860
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb
|
862
861
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx
|
863
862
|
- app/pb_kits/playbook/pb_form_pill/docs/example.yml
|
@@ -1606,18 +1605,6 @@ files:
|
|
1606
1605
|
- app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_radio.jsx
|
1607
1606
|
- app/pb_kits/playbook/pb_selectable_list/docs/example.yml
|
1608
1607
|
- app/pb_kits/playbook/pb_selectable_list/docs/index.js
|
1609
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.jsx
|
1610
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.md
|
1611
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.jsx
|
1612
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.md
|
1613
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb
|
1614
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.jsx
|
1615
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx
|
1616
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.md
|
1617
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.jsx
|
1618
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md
|
1619
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml
|
1620
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/index.js
|
1621
1608
|
- app/pb_kits/playbook/pb_source/docs/_description.md
|
1622
1609
|
- app/pb_kits/playbook/pb_source/docs/_source_default.html.erb
|
1623
1610
|
- app/pb_kits/playbook/pb_source/docs/_source_default.jsx
|
@@ -1826,9 +1813,6 @@ files:
|
|
1826
1813
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx
|
1827
1814
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.html.erb
|
1828
1815
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx
|
1829
|
-
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb
|
1830
|
-
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx
|
1831
|
-
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.md
|
1832
1816
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.html.erb
|
1833
1817
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.jsx
|
1834
1818
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md
|
@@ -1,3 +0,0 @@
|
|
1
|
-
For Form Pills with longer text, the truncate global prop can be used to truncate the label within each Form Pill. See [here](https://playbook.powerapp.cloud/visual_guidelines/truncate) for more information on the truncate global prop.
|
2
|
-
|
3
|
-
__NOTE__: For Rails Form Pills (not ones embedded within a React-rendered Typeahead or MultiLevelSelect), a unique `id` is required to enable the Tooltip functionality displaying the text or tag section of the Form Pill.
|
@@ -1 +0,0 @@
|
|
1
|
-
For Form Pills with longer text, the `truncate` global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See [here](https://playbook.powerapp.cloud/visual_guidelines/truncate) for more information on the truncate global prop.
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Flex, SkeletonLoading } from "playbook-ui"
|
3
|
-
|
4
|
-
|
5
|
-
const SkeletonLoadingBorderRadius = (props) => (
|
6
|
-
<Flex justify="evenly">
|
7
|
-
<SkeletonLoading
|
8
|
-
borderRadius="rounded"
|
9
|
-
height="50px"
|
10
|
-
width="100px"
|
11
|
-
{...props}
|
12
|
-
/>
|
13
|
-
<SkeletonLoading
|
14
|
-
borderRadius="xl"
|
15
|
-
height="50px"
|
16
|
-
width="100px"
|
17
|
-
{...props}
|
18
|
-
/>
|
19
|
-
<SkeletonLoading
|
20
|
-
borderRadius="lg"
|
21
|
-
height="50px"
|
22
|
-
width="100px"
|
23
|
-
{...props}
|
24
|
-
/>
|
25
|
-
<SkeletonLoading
|
26
|
-
borderRadius="md"
|
27
|
-
height="50px"
|
28
|
-
width="100px"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
<SkeletonLoading
|
32
|
-
height="50px"
|
33
|
-
width="100px"
|
34
|
-
{...props}
|
35
|
-
/>
|
36
|
-
<SkeletonLoading
|
37
|
-
borderRadius="xs"
|
38
|
-
height="50px"
|
39
|
-
width="100px"
|
40
|
-
{...props}
|
41
|
-
/>
|
42
|
-
<SkeletonLoading
|
43
|
-
borderRadius="none"
|
44
|
-
height="50px"
|
45
|
-
width="100px"
|
46
|
-
{...props}
|
47
|
-
/>
|
48
|
-
</Flex>
|
49
|
-
)
|
50
|
-
|
51
|
-
export default SkeletonLoadingBorderRadius
|
@@ -1 +0,0 @@
|
|
1
|
-
The `borderRadius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/visual_guidelines/border_radius) tokens, with `sm` as default.
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Card, SkeletonLoading } from "playbook-ui"
|
3
|
-
|
4
|
-
|
5
|
-
const SkeletonLoadingColor = (props) => (
|
6
|
-
<div>
|
7
|
-
<Card
|
8
|
-
borderNone
|
9
|
-
{...props}
|
10
|
-
>
|
11
|
-
<SkeletonLoading {...props}/>
|
12
|
-
</Card>
|
13
|
-
<Card
|
14
|
-
background="light"
|
15
|
-
borderNone
|
16
|
-
{...props}
|
17
|
-
>
|
18
|
-
<SkeletonLoading
|
19
|
-
color="white"
|
20
|
-
{...props}
|
21
|
-
/>
|
22
|
-
</Card>
|
23
|
-
</div>
|
24
|
-
)
|
25
|
-
|
26
|
-
export default SkeletonLoadingColor
|
@@ -1 +0,0 @@
|
|
1
|
-
The SkeletonLoading component has a default and a white `color` variant.
|
@@ -1 +0,0 @@
|
|
1
|
-
<%= pb_rails("skeleton_loading") %>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Card, SkeletonLoading } from "playbook-ui"
|
3
|
-
|
4
|
-
|
5
|
-
const SkeletonLoadingHeightWidth = (props) => (
|
6
|
-
<div>
|
7
|
-
<SkeletonLoading
|
8
|
-
height="100px"
|
9
|
-
width="50%"
|
10
|
-
{...props}
|
11
|
-
/>
|
12
|
-
<SkeletonLoading
|
13
|
-
gap="md"
|
14
|
-
height="20px"
|
15
|
-
marginY="md"
|
16
|
-
stack="3"
|
17
|
-
width="50px"
|
18
|
-
{...props}
|
19
|
-
/>
|
20
|
-
<Card htmlOptions={{ style: { height: '200px', width: '100%' }}}
|
21
|
-
marginBottom="md"
|
22
|
-
padding="none"
|
23
|
-
>
|
24
|
-
<SkeletonLoading
|
25
|
-
borderRadius="md"
|
26
|
-
gap="xl"
|
27
|
-
height="50%"
|
28
|
-
width="300px"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
</Card>
|
32
|
-
<Card htmlOptions={{ style: { height: '200px', width: '100%' }}}
|
33
|
-
padding="none"
|
34
|
-
>
|
35
|
-
<SkeletonLoading
|
36
|
-
borderRadius="md"
|
37
|
-
gap="xl"
|
38
|
-
height="30%"
|
39
|
-
stack="2"
|
40
|
-
width="70%"
|
41
|
-
{...props}
|
42
|
-
/>
|
43
|
-
</Card>
|
44
|
-
<SkeletonLoading
|
45
|
-
height="150px"
|
46
|
-
marginY="md"
|
47
|
-
width="150px"
|
48
|
-
{...props}
|
49
|
-
/>
|
50
|
-
<SkeletonLoading
|
51
|
-
borderRadius="rounded"
|
52
|
-
height="150px"
|
53
|
-
width="150px"
|
54
|
-
{...props}
|
55
|
-
/>
|
56
|
-
</div>
|
57
|
-
)
|
58
|
-
|
59
|
-
export default SkeletonLoadingHeightWidth
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The `height` and `width` props accept pixel and percentage values. If using a percentage for `height`, the parent container must have a set height.
|
2
|
-
|
3
|
-
Set the `height` and `width` props to the same value to make a square. A `rounded` borderRadius will make a square a circle. If using percentages to make a square, your parent container must also be a square.
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { SkeletonLoading } from "playbook-ui"
|
3
|
-
|
4
|
-
|
5
|
-
const SkeletonLoadingLayout = (props) => (
|
6
|
-
<div>
|
7
|
-
<SkeletonLoading
|
8
|
-
stack="5"
|
9
|
-
{...props}
|
10
|
-
/>
|
11
|
-
<SkeletonLoading
|
12
|
-
gap="md"
|
13
|
-
paddingTop="xl"
|
14
|
-
stack="3"
|
15
|
-
{...props}
|
16
|
-
/>
|
17
|
-
</div>
|
18
|
-
)
|
19
|
-
|
20
|
-
export default SkeletonLoadingLayout
|
@@ -1,3 +0,0 @@
|
|
1
|
-
Use the `stack` and `gap` props in conjunction to layer multiple Skeleton loading bars on top of each other.
|
2
|
-
|
3
|
-
`stack` accepts a number that correlates to the number of rows (1 is default), and `gap` accepts a portion of our [spacing props](https://playbook.powerapp.cloud/visual_guidelines/spacing) (`xxs` as default, `xs`, `sm`, `md`, `lg`, `xl`, `xxl`) to set the pixel distance between each row. `gap` will not do anything if there is no corresponding `stack` prop set.
|
@@ -1,13 +0,0 @@
|
|
1
|
-
examples:
|
2
|
-
|
3
|
-
rails:
|
4
|
-
# - skeleton_loading_default: Default
|
5
|
-
|
6
|
-
|
7
|
-
react:
|
8
|
-
- skeleton_loading_default: Default
|
9
|
-
- skeleton_loading_color: Color
|
10
|
-
- skeleton_loading_layout: Layout
|
11
|
-
- skeleton_loading_border_radius: Border Radius
|
12
|
-
- skeleton_loading_height_width: Height & Width
|
13
|
-
|
@@ -1,5 +0,0 @@
|
|
1
|
-
export { default as SkeletonLoadingDefault } from './_skeleton_loading_default.jsx'
|
2
|
-
export { default as SkeletonLoadingColor } from './_skeleton_loading_color.jsx'
|
3
|
-
export { default as SkeletonLoadingLayout } from './_skeleton_loading_layout.jsx'
|
4
|
-
export { default as SkeletonLoadingBorderRadius } from './_skeleton_loading_border_radius.jsx'
|
5
|
-
export { default as SkeletonLoadingHeightWidth } from './_skeleton_loading_height_width.jsx'
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<%= pb_rails("timeline", props: {orientation: "horizontal", show_date: true}) do %>
|
2
|
-
<%= pb_rails("timeline/item", props: { line_style: "solid"}) do |item| %>
|
3
|
-
|
4
|
-
<% item.label do %>
|
5
|
-
<%= pb_rails("timeline/label") do %>
|
6
|
-
<%= pb_rails("title", props: { text: "Any Kit Here", size: 2 }) %>
|
7
|
-
<% end %>
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
<% item.step do %>
|
11
|
-
<%= pb_rails("timeline/step", props: { icon: 'check', icon_color: 'teal' }) %>
|
12
|
-
<% end %>
|
13
|
-
|
14
|
-
<% item.detail do %>
|
15
|
-
<%= pb_rails("title_detail", props: {
|
16
|
-
title: "Jackson Heights",
|
17
|
-
detail: "37-27 74th Street"
|
18
|
-
}) %>
|
19
|
-
<% end %>
|
20
|
-
<% end %>
|
21
|
-
<%= pb_rails("timeline/item", props: { line_style: "dotted"}) do |item| %>
|
22
|
-
|
23
|
-
<% item.step do %>
|
24
|
-
<%= pb_rails("timeline/step") do %>
|
25
|
-
<%= pb_rails("pill", props: { text: "Any Kit" , variant: "success" }) %>
|
26
|
-
<% end %>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<% item.detail do %>
|
30
|
-
<%= pb_rails("title_detail", props: {
|
31
|
-
title: "Greenpoint",
|
32
|
-
detail: "81 Gate St Brooklyn"
|
33
|
-
}) %>
|
34
|
-
<% end %>
|
35
|
-
<% end %>
|
36
|
-
|
37
|
-
<%= pb_rails("timeline/item", props: {icon: "map-marker-alt", icon_color: "purple", date: Date.today+1 }) do |item| %>
|
38
|
-
<%= pb_rails("title_detail", props: {
|
39
|
-
title: "Society Hill",
|
40
|
-
detail: "72 E St Astoria"
|
41
|
-
}) %>
|
42
|
-
<% end %>
|
43
|
-
<% end %>
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Timeline from '../_timeline'
|
4
|
-
import Title from '../../pb_title/_title'
|
5
|
-
import Pill from '../../pb_pill/_pill'
|
6
|
-
|
7
|
-
import TitleDetail from '../../pb_title_detail/_title_detail'
|
8
|
-
|
9
|
-
const TimelineWithChildren = (props) => (
|
10
|
-
<div>
|
11
|
-
<Timeline orientation="horizontal"
|
12
|
-
showDate
|
13
|
-
{...props}
|
14
|
-
>
|
15
|
-
<Timeline.Item lineStyle="solid"
|
16
|
-
{...props}
|
17
|
-
>
|
18
|
-
<Timeline.Label>
|
19
|
-
<Title size={2}
|
20
|
-
text='Any Kit Here'
|
21
|
-
/>
|
22
|
-
</Timeline.Label>
|
23
|
-
<Timeline.Step icon="user"
|
24
|
-
iconColor="royal"
|
25
|
-
/>
|
26
|
-
<Timeline.Detail>
|
27
|
-
<TitleDetail detail="37-27 74th Street"
|
28
|
-
title="Jackson Heights"
|
29
|
-
{...props}
|
30
|
-
/>
|
31
|
-
</Timeline.Detail>
|
32
|
-
</Timeline.Item>
|
33
|
-
|
34
|
-
<Timeline.Item lineStyle="dotted"
|
35
|
-
{...props}
|
36
|
-
>
|
37
|
-
<Timeline.Step>
|
38
|
-
<Pill text="Any Kit"
|
39
|
-
variant="success"
|
40
|
-
/>
|
41
|
-
</Timeline.Step>
|
42
|
-
<Timeline.Detail>
|
43
|
-
<TitleDetail detail="81 Gate St Brooklyn"
|
44
|
-
title="Greenpoint"
|
45
|
-
{...props}
|
46
|
-
/>
|
47
|
-
</Timeline.Detail>
|
48
|
-
</Timeline.Item>
|
49
|
-
|
50
|
-
<Timeline.Item lineStyle="solid"
|
51
|
-
{...props}
|
52
|
-
>
|
53
|
-
<Timeline.Label date={new Date(new Date().setDate(new Date().getDate() + 1))} />
|
54
|
-
<Timeline.Step icon="map-marker-alt"
|
55
|
-
iconColor="purple"
|
56
|
-
/>
|
57
|
-
<Timeline.Detail>
|
58
|
-
<TitleDetail detail="72 E St Astoria"
|
59
|
-
title="Society Hill"
|
60
|
-
{...props}
|
61
|
-
/>
|
62
|
-
</Timeline.Detail>
|
63
|
-
</Timeline.Item>
|
64
|
-
</Timeline>
|
65
|
-
</div>
|
66
|
-
)
|
67
|
-
|
68
|
-
export default TimelineWithChildren
|