playbook_ui 14.17.0.pre.alpha.play1906overlaykitaddopacityandgradient7232 → 14.17.0.pre.alpha.play1964tablekitheadertextstylefix7164
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/_background.scss +0 -26
- data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
- data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
- 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/_draggable.scss +20 -43
- 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_draggable/draggable.test.jsx +0 -68
- data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
- data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
- data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
- 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_overlay/overlay.test.jsx +1 -39
- 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_table/table.rb +1 -13
- data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
- data/dist/chunks/{_typeahead-C2GOKWtm.js → _typeahead-7W5Ha5Td.js} +1 -1
- data/dist/chunks/{_weekday_stacked-Cw9LuHnt.js → _weekday_stacked-DSKatW3m.js} +2 -2
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +16 -30
- 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
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.17.0.pre.alpha.
|
4
|
+
version: 14.17.0.pre.alpha.play1964tablekitheadertextstylefix7164
|
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-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -421,8 +421,6 @@ files:
|
|
421
421
|
- app/pb_kits/playbook/pb_background/docs/_background_image.md
|
422
422
|
- app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
|
423
423
|
- app/pb_kits/playbook/pb_background/docs/_background_light.jsx
|
424
|
-
- app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
|
425
|
-
- app/pb_kits/playbook/pb_background/docs/_background_overlay.md
|
426
424
|
- app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
|
427
425
|
- app/pb_kits/playbook/pb_background/docs/_background_size.jsx
|
428
426
|
- app/pb_kits/playbook/pb_background/docs/_background_size.md
|
@@ -1186,35 +1184,33 @@ files:
|
|
1186
1184
|
- app/pb_kits/playbook/pb_draggable/_draggable.tsx
|
1187
1185
|
- app/pb_kits/playbook/pb_draggable/context/index.tsx
|
1188
1186
|
- app/pb_kits/playbook/pb_draggable/context/types.ts
|
1189
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.html.erb
|
1190
1187
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.jsx
|
1188
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default.md
|
1189
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.html.erb
|
1191
1190
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_rails.md
|
1192
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_default_react.md
|
1193
1191
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx
|
1194
1192
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md
|
1195
1193
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx
|
1196
1194
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md
|
1197
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx
|
1198
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md
|
1199
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.html.erb
|
1200
1195
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.jsx
|
1196
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers.md
|
1197
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb
|
1201
1198
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md
|
1202
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md
|
1203
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.html.erb
|
1204
1199
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.jsx
|
1200
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards.md
|
1201
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.html.erb
|
1205
1202
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md
|
1206
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_react.md
|
1207
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.html.erb
|
1208
1203
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.jsx
|
1204
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list.md
|
1205
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.html.erb
|
1209
1206
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md
|
1210
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md
|
1211
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.html.erb
|
1212
1207
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.jsx
|
1208
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
|
1209
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.html.erb
|
1213
1210
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
|
1214
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_react.md
|
1215
1211
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb
|
1216
|
-
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.
|
1217
|
-
- app/pb_kits/playbook/pb_draggable/docs/
|
1212
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md
|
1213
|
+
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx
|
1218
1214
|
- app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md
|
1219
1215
|
- app/pb_kits/playbook/pb_draggable/docs/example.yml
|
1220
1216
|
- app/pb_kits/playbook/pb_draggable/docs/index.js
|
@@ -2195,19 +2191,13 @@ files:
|
|
2195
2191
|
- app/pb_kits/playbook/pb_online_status/online_status.test.js
|
2196
2192
|
- app/pb_kits/playbook/pb_overlay/_overlay.scss
|
2197
2193
|
- app/pb_kits/playbook/pb_overlay/_overlay.tsx
|
2198
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx
|
2199
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md
|
2200
2194
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
|
2201
2195
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
|
2202
2196
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
|
2203
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx
|
2204
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md
|
2205
2197
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb
|
2206
2198
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx
|
2207
2199
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md
|
2208
2200
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md
|
2209
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx
|
2210
|
-
- app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md
|
2211
2201
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
|
2212
2202
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
|
2213
2203
|
- app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
|
@@ -2877,13 +2867,9 @@ files:
|
|
2877
2867
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
2878
2868
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
|
2879
2869
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
|
2880
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
|
2881
2870
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
2882
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
|
2883
2871
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
|
2884
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
|
2885
2872
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
|
2886
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
|
2887
2873
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
|
2888
2874
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
|
2889
2875
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
|
@@ -3481,8 +3467,8 @@ files:
|
|
3481
3467
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3482
3468
|
- app/pb_kits/playbook/utilities/text.ts
|
3483
3469
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3484
|
-
- dist/chunks/_typeahead-
|
3485
|
-
- dist/chunks/_weekday_stacked-
|
3470
|
+
- dist/chunks/_typeahead-7W5Ha5Td.js
|
3471
|
+
- dist/chunks/_weekday_stacked-DSKatW3m.js
|
3486
3472
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3487
3473
|
- dist/chunks/lib-BGzBzFZX.js
|
3488
3474
|
- dist/chunks/pb_form_validation-BvNy9Bd6.js
|
@@ -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
|