playbook_ui 14.17.0.pre.alpha.PBNTR766tablenestedcollapsiblerowsborderdoubling7256 → 14.17.0.pre.alpha.PBNTR920emojipickerpoc7130

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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
  3. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  4. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  5. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  6. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  7. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +20 -43
  8. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
  9. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  10. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
  11. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  12. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
  13. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
  14. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
  15. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
  16. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +0 -68
  17. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
  18. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -18
  19. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  20. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
  21. data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
  22. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
  23. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  24. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  25. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
  26. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  27. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
  28. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
  29. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  30. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  31. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  32. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
  33. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  34. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  35. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +0 -84
  36. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +7 -19
  37. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  38. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  39. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_emoji_picker.jsx +371 -0
  40. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -0
  41. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  42. data/dist/chunks/{_typeahead-BY6AFq1l.js → _typeahead-7W5Ha5Td.js} +2 -2
  43. data/dist/chunks/{_weekday_stacked-DvC4wBNS.js → _weekday_stacked-DSKatW3m.js} +2 -2
  44. data/dist/chunks/vendor.js +1 -1
  45. data/dist/playbook-doc.js +1 -1
  46. data/dist/playbook-rails-react-bindings.js +1 -1
  47. data/dist/playbook-rails.js +1 -1
  48. data/dist/playbook.css +1 -1
  49. data/lib/playbook/version.rb +1 -1
  50. metadata +17 -31
  51. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  52. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  53. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
  54. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
  55. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
  56. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  57. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  58. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  59. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  60. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  61. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  62. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  63. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  64. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  65. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  66. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
  67. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
  68. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
  69. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
  70. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
  71. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
  72. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
  73. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
  74. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
  75. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
  76. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.md} +0 -0
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.17.0"
5
- VERSION = "14.17.0.pre.alpha.PBNTR766tablenestedcollapsiblerowsborderdoubling7256"
5
+ VERSION = "14.17.0.pre.alpha.PBNTR920emojipickerpoc7130"
6
6
  end
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.PBNTR766tablenestedcollapsiblerowsborderdoubling7256
4
+ version: 14.17.0.pre.alpha.PBNTR920emojipickerpoc7130
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-17 00:00:00.000000000 Z
12
+ date: 2025-04-04 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.jsx
1217
- - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_rails.md
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
@@ -1837,7 +1833,6 @@ files:
1837
1833
  - app/pb_kits/playbook/pb_layout/sidebar.html.erb
1838
1834
  - app/pb_kits/playbook/pb_layout/sidebar.rb
1839
1835
  - app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx
1840
- - app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx
1841
1836
  - app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx
1842
1837
  - app/pb_kits/playbook/pb_legend/_legend.scss
1843
1838
  - app/pb_kits/playbook/pb_legend/_legend.tsx
@@ -2196,19 +2191,13 @@ files:
2196
2191
  - app/pb_kits/playbook/pb_online_status/online_status.test.js
2197
2192
  - app/pb_kits/playbook/pb_overlay/_overlay.scss
2198
2193
  - app/pb_kits/playbook/pb_overlay/_overlay.tsx
2199
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx
2200
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md
2201
2194
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
2202
2195
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
2203
2196
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
2204
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx
2205
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md
2206
2197
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb
2207
2198
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx
2208
2199
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md
2209
2200
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md
2210
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx
2211
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md
2212
2201
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
2213
2202
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
2214
2203
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
@@ -2878,13 +2867,9 @@ files:
2878
2867
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2879
2868
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2880
2869
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2881
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2882
2870
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2883
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
2884
2871
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
2885
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
2886
2872
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
2887
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
2888
2873
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
2889
2874
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
2890
2875
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -2960,6 +2945,7 @@ files:
2960
2945
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.html.erb
2961
2946
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled.jsx
2962
2947
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_disabled_swift.md
2948
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_emoji_picker.jsx
2963
2949
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb
2964
2950
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.jsx
2965
2951
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md
@@ -3482,8 +3468,8 @@ files:
3482
3468
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3483
3469
  - app/pb_kits/playbook/utilities/text.ts
3484
3470
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3485
- - dist/chunks/_typeahead-BY6AFq1l.js
3486
- - dist/chunks/_weekday_stacked-DvC4wBNS.js
3471
+ - dist/chunks/_typeahead-7W5Ha5Td.js
3472
+ - dist/chunks/_weekday_stacked-DSKatW3m.js
3487
3473
  - dist/chunks/lazysizes-B7xYodB-.js
3488
3474
  - dist/chunks/lib-BGzBzFZX.js
3489
3475
  - 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,79 +0,0 @@
1
- import React from 'react'
2
- import classnames from 'classnames'
3
-
4
- import { buildCss } from '../../utilities/props'
5
- import { GlobalProps, globalProps, globalInlineProps } from '../../utilities/globalProps'
6
-
7
- import Avatar from "../../pb_avatar/_avatar";
8
- import Body from "../../pb_body/_body";
9
- import Flex from "../../pb_flex/_flex";
10
- import Badge from "../../pb_badge/_badge";
11
- import Detail from "../../pb_detail/_detail";
12
- import Background from "../../pb_background/_background";
13
-
14
- type LayoutParticipantProps = {
15
- className?: string,
16
- name?: string,
17
- territory?: string,
18
- points?: string,
19
- rank?: string,
20
- avatar?: string,
21
- winner?: boolean,
22
- self?: boolean,
23
- } & GlobalProps
24
-
25
- export const Participant = (props: LayoutParticipantProps) => {
26
- const { className, name = 'To be determined...', territory = '', points, rank, avatar, winner, self, hasLastWinnerAndSelf } = props
27
- const dynamicInlineProps = globalInlineProps(props)
28
- const isLastWinnerAndSelf = hasLastWinnerAndSelf && self && winner
29
- const classes = classnames(buildCss('layout_participant', winner ? 'winner' : '', self ? 'self' : '', isLastWinnerAndSelf ? 'last' : ''), globalProps(props), className)
30
- return (
31
- <Background
32
- backgroundColor={winner ? "success_subtle" : "white"}
33
- className={classes}
34
- padding="xs"
35
- style={dynamicInlineProps}
36
- >
37
- <Flex justify="between">
38
- <Avatar
39
- imageUrl={avatar}
40
- marginRight="sm"
41
- name={name}
42
- size="sm"
43
- />
44
- <Body flexGrow={1}>
45
- <Flex justify="between">
46
- <Body
47
- color={winner && !isLastWinnerAndSelf ? "success" : "default"}
48
- truncate={1}
49
- >
50
- {winner ? <strong>{name}{self ? ' (You)' : ''}</strong> : name + (self && !isLastWinnerAndSelf ? ' (You)' : '')}
51
- </Body>
52
- <Body
53
- color={winner && !isLastWinnerAndSelf ? "success" : "light"}
54
- display="flex"
55
- >
56
- {points && (<>
57
- <strong>{points}</strong>
58
- <Detail
59
- color={winner && !isLastWinnerAndSelf ? "success" : "light"}
60
- text="pts"
61
- />
62
- </>)}
63
- </Body>
64
- </Flex>
65
- <Body color="light">
66
- {territory}
67
- &nbsp;
68
- <Badge
69
- text={rank}
70
- variant={winner && !isLastWinnerAndSelf ? "success" : self ? "notification" : "neutral"}
71
- />
72
- </Body>
73
- </Body>
74
- </Flex>
75
- </Background>
76
- )
77
- }
78
-
79
- export default Participant
@@ -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).