playbook_ui_docs 14.17.0.pre.alpha.PBNTR766tablenestedcollapsiblerowsborderdoubling7256 → 14.17.0.pre.alpha.PBNTR920emojipickerpoc7143
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_background/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
- data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
- data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_emoji_picker.jsx +371 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
- data/dist/playbook-doc.js +1 -1
- metadata +15 -28
- data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
- data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
- /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.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.17.0.pre.alpha.
|
4
|
+
version: 14.17.0.pre.alpha.PBNTR920emojipickerpoc7143
|
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-04-
|
12
|
+
date: 2025-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -147,8 +147,6 @@ files:
|
|
147
147
|
- app/pb_kits/playbook/pb_background/docs/_background_image.md
|
148
148
|
- app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
|
149
149
|
- app/pb_kits/playbook/pb_background/docs/_background_light.jsx
|
150
|
-
- app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
|
151
|
-
- app/pb_kits/playbook/pb_background/docs/_background_overlay.md
|
152
150
|
- app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
|
153
151
|
- app/pb_kits/playbook/pb_background/docs/_background_size.jsx
|
154
152
|
- app/pb_kits/playbook/pb_background/docs/_background_size.md
|
@@ -708,35 +706,33 @@ files:
|
|
708
706
|
- app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_default.jsx
|
709
707
|
- app/pb_kits/playbook/pb_distribution_bar/docs/example.yml
|
710
708
|
- app/pb_kits/playbook/pb_distribution_bar/docs/index.js
|
711
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.html.erb
|
712
709
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
|
710
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md
|
711
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
|
713
712
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md
|
714
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_react.md
|
715
713
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx
|
716
714
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md
|
717
715
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx
|
718
716
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md
|
719
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
|
720
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
|
721
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
|
722
717
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
|
718
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md
|
719
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb
|
723
720
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
|
724
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
|
725
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb
|
726
721
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
|
722
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md
|
723
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
|
727
724
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md
|
728
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_react.md
|
729
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.html.erb
|
730
725
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
|
726
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
|
727
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
|
731
728
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md
|
732
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md
|
733
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.html.erb
|
734
729
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
|
730
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
|
731
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb
|
735
732
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
|
736
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_react.md
|
737
733
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb
|
738
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.
|
739
|
-
- app/pb_kits/playbook/pb_draggable/docs/
|
734
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md
|
735
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx
|
740
736
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md
|
741
737
|
- app/pb_kits/playbook/pb_draggable/docs/example.yml
|
742
738
|
- app/pb_kits/playbook/pb_draggable/docs/index.js
|
@@ -1433,19 +1429,13 @@ files:
|
|
1433
1429
|
- app/pb_kits/playbook/pb_online_status/docs/_online_status_size.jsx
|
1434
1430
|
- app/pb_kits/playbook/pb_online_status/docs/example.yml
|
1435
1431
|
- app/pb_kits/playbook/pb_online_status/docs/index.js
|
1436
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx
|
1437
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md
|
1438
1432
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
|
1439
1433
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
|
1440
1434
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
|
1441
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx
|
1442
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md
|
1443
1435
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb
|
1444
1436
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx
|
1445
1437
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md
|
1446
1438
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md
|
1447
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx
|
1448
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md
|
1449
1439
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
|
1450
1440
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
|
1451
1441
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
|
@@ -1958,13 +1948,9 @@ files:
|
|
1958
1948
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
1959
1949
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
|
1960
1950
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
|
1961
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
|
1962
1951
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
1963
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
|
1964
1952
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
|
1965
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
|
1966
1953
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
|
1967
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
|
1968
1954
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
|
1969
1955
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
|
1970
1956
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
|
@@ -1991,6 +1977,7 @@ files:
|
|
1991
1977
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.html.erb
|
1992
1978
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx
|
1993
1979
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md
|
1980
|
+
- app/pb_kits/playbook/pb_text_input/docs/_text_input_emoji_picker.jsx
|
1994
1981
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb
|
1995
1982
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
|
1996
1983
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Background from "../../pb_background/_background"
|
3
|
-
import Flex from "../../pb_flex/_flex"
|
4
|
-
import FlexItem from "../../pb_flex/_flex_item"
|
5
|
-
import Title from "../../pb_title/_title"
|
6
|
-
|
7
|
-
const BackgroundOverlay = (props) => {
|
8
|
-
return (
|
9
|
-
<Background
|
10
|
-
alt="colorful background"
|
11
|
-
backgroundColor="category_21"
|
12
|
-
className="background lazyload"
|
13
|
-
imageOverlay="opacity_2"
|
14
|
-
imageUrl="https://unsplash.it/500/400/?image=633"
|
15
|
-
{...props}
|
16
|
-
>
|
17
|
-
<Flex
|
18
|
-
orientation="column"
|
19
|
-
vertical="center"
|
20
|
-
{...props}
|
21
|
-
>
|
22
|
-
<FlexItem>
|
23
|
-
<Title
|
24
|
-
dark
|
25
|
-
padding="lg"
|
26
|
-
size={1}
|
27
|
-
text="Background Kit Image"
|
28
|
-
/>
|
29
|
-
</FlexItem>
|
30
|
-
</Flex>
|
31
|
-
</Background>
|
32
|
-
)
|
33
|
-
}
|
34
|
-
|
35
|
-
export default BackgroundOverlay
|
@@ -1 +0,0 @@
|
|
1
|
-
An overlay can be added to the background image by setting the `imageOverlay` prop and adding a `backgroundColor`. The `imageOverlay` prop can be set to any opacity ranging from `opacity_1` to `opacity_10`.
|
@@ -1,110 +0,0 @@
|
|
1
|
-
import React, { useState } from "react";
|
2
|
-
import Flex from '../../pb_flex/_flex'
|
3
|
-
import Caption from '../../pb_caption/_caption'
|
4
|
-
import Draggable from '../_draggable'
|
5
|
-
import { DraggableProvider } from '../context'
|
6
|
-
import Image from '../../pb_image/_image'
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
const dataLineVertical = [
|
11
|
-
{
|
12
|
-
id: "211",
|
13
|
-
url: "https://unsplash.it/500/400/?image=633",
|
14
|
-
},
|
15
|
-
{
|
16
|
-
id: "212",
|
17
|
-
url: "https://unsplash.it/500/400/?image=634",
|
18
|
-
},
|
19
|
-
{
|
20
|
-
id: "213",
|
21
|
-
url: "https://unsplash.it/500/400/?image=637",
|
22
|
-
},
|
23
|
-
];
|
24
|
-
|
25
|
-
const dataLineHorizontal = [
|
26
|
-
{
|
27
|
-
id: "2111",
|
28
|
-
url: "https://unsplash.it/500/400/?image=633",
|
29
|
-
},
|
30
|
-
{
|
31
|
-
id: "2122",
|
32
|
-
url: "https://unsplash.it/500/400/?image=634",
|
33
|
-
},
|
34
|
-
{
|
35
|
-
id: "2133",
|
36
|
-
url: "https://unsplash.it/500/400/?image=637",
|
37
|
-
},
|
38
|
-
];
|
39
|
-
|
40
|
-
const DraggableDropZones = (props) => {
|
41
|
-
const [initialLineVerticalState, setInitialLineVerticalState] = useState(dataLineVertical);
|
42
|
-
const [initialLineHorizontalState, setInitialLineHorizontalState] = useState(dataLineHorizontal);
|
43
|
-
|
44
|
-
return (
|
45
|
-
<>
|
46
|
-
<Caption marginBottom="xs"
|
47
|
-
marginTop="xl"
|
48
|
-
text="Vertical"
|
49
|
-
/>
|
50
|
-
<DraggableProvider
|
51
|
-
dropZone={{ type: "line", color: "purple" }}
|
52
|
-
initialItems={dataLineVertical}
|
53
|
-
onReorder={(items) => setInitialLineVerticalState(items)}
|
54
|
-
>
|
55
|
-
<Draggable.Container {...props}>
|
56
|
-
<Flex flexDirection="column"
|
57
|
-
height="367px"
|
58
|
-
>
|
59
|
-
{initialLineVerticalState.map(({ id, url }) => (
|
60
|
-
<Draggable.Item dragId={id}
|
61
|
-
key={id}
|
62
|
-
marginBottom="sm"
|
63
|
-
>
|
64
|
-
<Image alt={id}
|
65
|
-
size="md"
|
66
|
-
url={url}
|
67
|
-
/>
|
68
|
-
</Draggable.Item>
|
69
|
-
))}
|
70
|
-
</Flex>
|
71
|
-
</Draggable.Container>
|
72
|
-
</DraggableProvider>
|
73
|
-
<Caption marginBottom="xs"
|
74
|
-
marginTop="xl"
|
75
|
-
text="Horizontal"
|
76
|
-
/>
|
77
|
-
<Flex>
|
78
|
-
<DraggableProvider
|
79
|
-
dropZone={{ type: "line", direction: "horizontal" }}
|
80
|
-
initialItems={dataLineHorizontal}
|
81
|
-
onReorder={(items) => setInitialLineHorizontalState(items)}
|
82
|
-
>
|
83
|
-
<Draggable.Container
|
84
|
-
htmlOptions={{style:{ width: "285px"}}}
|
85
|
-
{...props}
|
86
|
-
>
|
87
|
-
<Flex alignItems="stretch"
|
88
|
-
flexDirection="row"
|
89
|
-
height="110px"
|
90
|
-
>
|
91
|
-
{initialLineHorizontalState.map(({ id, url }) => (
|
92
|
-
<Draggable.Item dragId={id}
|
93
|
-
key={id}
|
94
|
-
marginRight="sm"
|
95
|
-
>
|
96
|
-
<Image alt={id}
|
97
|
-
size="md"
|
98
|
-
url={url}
|
99
|
-
/>
|
100
|
-
</Draggable.Item>
|
101
|
-
))}
|
102
|
-
</Flex>
|
103
|
-
</Draggable.Container>
|
104
|
-
</DraggableProvider>
|
105
|
-
</Flex>
|
106
|
-
</>
|
107
|
-
);
|
108
|
-
};
|
109
|
-
|
110
|
-
export default DraggableDropZones;
|
@@ -1,5 +0,0 @@
|
|
1
|
-
When using the "line" style, make sure to set the appropriate `direction` attribute within the `dropZone` prop based on the orientation of your draggable view. By default, this is set to "vertical," but it can also be adjusted to "horizontal." Note that the direction attribute only applies to the "line" style and does not affect other drop zone styles. The default `color` for "line" is "primary" and "purple" is the only alternative color option.
|
2
|
-
|
3
|
-
The length of the line is calculated based off of the width (for "vertical") or height (for "horizontal") of the parent container holding the draggable items.
|
4
|
-
|
5
|
-
Additionally, if the parent container of the `DraggableProvider`/`DraggableContainer` (or a subcontainer within) does not have a set height (for "vertical") or width (for "horizontal"), like the [Draggable Drop Zones doc example](https://playbook.powerapp.cloud/kits/draggable/react#draggable-drop-zones) does, elements on the page may jump up (for "vertical") or to the left (for "horizontal") when an item is actively being dragged. To prevent this, give a parent element a fixed height (for "vertical") or width (for "horizontal") as demonstrated in this doc example.
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Image from '../../pb_image/_image'
|
5
|
-
import Flex from '../../pb_flex/_flex'
|
6
|
-
|
7
|
-
const OverlayColor = () => (
|
8
|
-
<Flex
|
9
|
-
justify="around"
|
10
|
-
wrap
|
11
|
-
>
|
12
|
-
<Overlay
|
13
|
-
color="black"
|
14
|
-
marginBottom="xxs"
|
15
|
-
>
|
16
|
-
<Image
|
17
|
-
alt="picture of a misty forest"
|
18
|
-
display="block"
|
19
|
-
size="xl"
|
20
|
-
url="https://unsplash.it/500/400/?image=634"
|
21
|
-
/>
|
22
|
-
</Overlay>
|
23
|
-
<Overlay
|
24
|
-
color="black"
|
25
|
-
gradient={false}
|
26
|
-
marginBottom="xxs"
|
27
|
-
opacity="opacity_4"
|
28
|
-
>
|
29
|
-
<Image
|
30
|
-
alt="picture of a misty forest"
|
31
|
-
display="block"
|
32
|
-
size="xl"
|
33
|
-
url="https://unsplash.it/500/400/?image=634"
|
34
|
-
/>
|
35
|
-
</Overlay>
|
36
|
-
<Overlay
|
37
|
-
color="error"
|
38
|
-
marginBottom="xxs"
|
39
|
-
>
|
40
|
-
<Image
|
41
|
-
alt="picture of a misty forest"
|
42
|
-
display="block"
|
43
|
-
size="xl"
|
44
|
-
url="https://unsplash.it/500/400/?image=634"
|
45
|
-
/>
|
46
|
-
</Overlay>
|
47
|
-
<Overlay
|
48
|
-
color="error"
|
49
|
-
gradient={false}
|
50
|
-
marginBottom="xxs"
|
51
|
-
opacity="opacity_4"
|
52
|
-
>
|
53
|
-
<Image
|
54
|
-
alt="picture of a misty forest"
|
55
|
-
display="block"
|
56
|
-
size="xl"
|
57
|
-
url="https://unsplash.it/500/400/?image=634"
|
58
|
-
/>
|
59
|
-
</Overlay>
|
60
|
-
</Flex>
|
61
|
-
)
|
62
|
-
|
63
|
-
export default OverlayColor
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The `color` prop is used to change the color of the solid or gradient mask. Gradient overlays always start opaque and fade to transparent.
|
2
|
-
|
3
|
-
NOTE: Images are set to `display: block` to remove the default inline spacing caused by line height. This ensures the image fully fills the container without unexpected gaps.
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Image from '../../pb_image/_image'
|
5
|
-
import Flex from '../../pb_flex/_flex'
|
6
|
-
|
7
|
-
const OverlayGradientOpacity = () => (
|
8
|
-
<Flex
|
9
|
-
justify="around"
|
10
|
-
wrap
|
11
|
-
>
|
12
|
-
<Overlay
|
13
|
-
gradient={false}
|
14
|
-
marginBottom="xxs"
|
15
|
-
opacity="opacity_2"
|
16
|
-
>
|
17
|
-
<Image
|
18
|
-
alt="picture of a misty forest"
|
19
|
-
display="block"
|
20
|
-
maxWidth="100%"
|
21
|
-
url="https://unsplash.it/500/400/?image=634"
|
22
|
-
/>
|
23
|
-
</Overlay>
|
24
|
-
<Overlay
|
25
|
-
gradient={false}
|
26
|
-
marginBottom="xxs"
|
27
|
-
opacity="opacity_8"
|
28
|
-
>
|
29
|
-
<Image
|
30
|
-
alt="picture of a misty forest"
|
31
|
-
display="block"
|
32
|
-
maxWidth="100%"
|
33
|
-
url="https://unsplash.it/500/400/?image=634"
|
34
|
-
/>
|
35
|
-
</Overlay>
|
36
|
-
</Flex>
|
37
|
-
)
|
38
|
-
|
39
|
-
export default OverlayGradientOpacity
|
@@ -1 +0,0 @@
|
|
1
|
-
By default, the overlay is rendered as a gradient. Setting the `gradient` prop to `false` renders the overlay as a solid color. You can adjust the transparency of the solid overlay by using the `opacity` prop.
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Overlay from '../../pb_overlay/_overlay'
|
4
|
-
import Table from '../../pb_table/_table'
|
5
|
-
|
6
|
-
|
7
|
-
const TableExample = () => {
|
8
|
-
return (
|
9
|
-
<Table size="sm">
|
10
|
-
<thead>
|
11
|
-
<tr>
|
12
|
-
<th>{'Column 1'}</th>
|
13
|
-
<th>{'Column 2'}</th>
|
14
|
-
<th>{'Column 3'}</th>
|
15
|
-
<th>{'Column 4'}</th>
|
16
|
-
<th>{'Column 5'}</th>
|
17
|
-
</tr>
|
18
|
-
</thead>
|
19
|
-
<tbody>
|
20
|
-
{Array.from({ length: 7 }, (_, index) => (
|
21
|
-
<tr key={index}>
|
22
|
-
{Array.from({ length: 5 }, (_, columnIndex) => (
|
23
|
-
<td key={columnIndex}>{`Value ${columnIndex + 1}`}</td>
|
24
|
-
))}
|
25
|
-
</tr>
|
26
|
-
))}
|
27
|
-
</tbody>
|
28
|
-
</Table>
|
29
|
-
)
|
30
|
-
}
|
31
|
-
|
32
|
-
const OverlayLayout = () => (
|
33
|
-
<>
|
34
|
-
<Overlay layout={{ y: "xl" }}>
|
35
|
-
<TableExample />
|
36
|
-
</Overlay>
|
37
|
-
</>
|
38
|
-
)
|
39
|
-
|
40
|
-
export default OverlayLayout
|
@@ -1,5 +0,0 @@
|
|
1
|
-
The optional `layout` prop accepts the `position` and `size` of the overlay as a key:value pair.
|
2
|
-
|
3
|
-
The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
|
4
|
-
|
5
|
-
The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
|
@@ -1,34 +0,0 @@
|
|
1
|
-
<%= pb_rails("table", props: { size: "sm", header_style: "borderless" }) do %>
|
2
|
-
<thead>
|
3
|
-
<tr>
|
4
|
-
<th>Column 1</th>
|
5
|
-
<th>Column 2</th>
|
6
|
-
<th>Column 3</th>
|
7
|
-
<th>Column 4</th>
|
8
|
-
<th>Column 5</th>
|
9
|
-
</tr>
|
10
|
-
</thead>
|
11
|
-
<tbody>
|
12
|
-
<tr>
|
13
|
-
<td>Value 1</td>
|
14
|
-
<td>Value 2</td>
|
15
|
-
<td>Value 3</td>
|
16
|
-
<td>Value 4</td>
|
17
|
-
<td>Value 5</td>
|
18
|
-
</tr>
|
19
|
-
<tr>
|
20
|
-
<td>Value 1</td>
|
21
|
-
<td>Value 2</td>
|
22
|
-
<td>Value 3</td>
|
23
|
-
<td>Value 4</td>
|
24
|
-
<td>Value 5</td>
|
25
|
-
</tr>
|
26
|
-
<tr>
|
27
|
-
<td>Value 1</td>
|
28
|
-
<td>Value 2</td>
|
29
|
-
<td>Value 3</td>
|
30
|
-
<td>Value 4</td>
|
31
|
-
<td>Value 5</td>
|
32
|
-
</tr>
|
33
|
-
</tbody>
|
34
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Customize your header by removing the header borders with the `header_style: "borderless"` prop.
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<%= pb_rails("card", props: { background: "light" }) do %>
|
2
|
-
<%= pb_rails("table", props: { size: "sm", header_style: "floating" }) do %>
|
3
|
-
<%= pb_rails("table/table_head") do %>
|
4
|
-
<%= pb_rails("background", props: { background_color: "light", tag: "tr" }) do %>
|
5
|
-
<%= pb_rails("table/table_header", props: { text: "Column 1"}) %>
|
6
|
-
<%= pb_rails("table/table_header", props: { text: "Column 2"}) %>
|
7
|
-
<%= pb_rails("table/table_header", props: { text: "Column 3"}) %>
|
8
|
-
<%= pb_rails("table/table_header", props: { text: "Column 4"}) %>
|
9
|
-
<%= pb_rails("table/table_header", props: { text: "Column 5"}) %>
|
10
|
-
<% end %>
|
11
|
-
<% end %>
|
12
|
-
<%= pb_rails("table/table_body") do %>
|
13
|
-
<%= pb_rails("table/table_row") do %>
|
14
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
15
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
16
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
17
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
18
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
19
|
-
<% end %>
|
20
|
-
<%= pb_rails("table/table_row") do %>
|
21
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
22
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
23
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
24
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
25
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
26
|
-
<% end %>
|
27
|
-
<%= pb_rails("table/table_row") do %>
|
28
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 1"}) %>
|
29
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 2"}) %>
|
30
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 3"}) %>
|
31
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 4"}) %>
|
32
|
-
<%= pb_rails("table/table_cell", props: { text: "Value 5"}) %>
|
33
|
-
<% end %>
|
34
|
-
<% end %>
|
35
|
-
<% end %>
|
36
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Further customize your header by using the [table with background kit](https://playbook.powerapp.cloud/kits/table/rails#table-with-background-kit) logic to give your table header a custom background color. Use the `header_style: "floating"` prop to visually nest the borderless table within a card or collapsible with a matching background color (the `background_color` passed to Background kit should match the `background` or `background_color` for the element in which it is nested).
|
/data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|