playbook_ui 14.17.0.pre.alpha.aticonclosefix7325 → 14.17.0.pre.alpha.play1499backgroundkitoverlay7105

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 (108) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +3 -23
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -11
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +128 -60
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +0 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +2 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +2 -6
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +2 -6
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -6
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -4
  14. data/app/pb_kits/playbook/pb_advanced_table/index.js +0 -7
  15. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -1
  16. data/app/pb_kits/playbook/pb_background/_background.scss +2 -2
  17. data/app/pb_kits/playbook/pb_background/_background.tsx +5 -3
  18. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  19. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +4 -3
  20. data/app/pb_kits/playbook/pb_background/docs/example.yml +1 -1
  21. data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +45 -19
  22. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -1
  23. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -2
  24. data/app/pb_kits/playbook/pb_draggable/_draggable.scss +20 -43
  25. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.jsx +105 -102
  26. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.md +3 -3
  27. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.jsx +48 -50
  28. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.md +1 -1
  29. data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table.jsx → _draggable_with_table_react.jsx} +1 -1
  30. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +1 -3
  31. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +6 -9
  32. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -4
  33. data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +0 -68
  34. data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +3 -4
  35. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -18
  36. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  37. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
  38. data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
  39. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
  40. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  41. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  42. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
  43. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  44. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
  45. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
  46. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  47. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  48. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  49. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
  50. data/app/pb_kits/playbook/pb_table/_table.tsx +2 -2
  51. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +1 -3
  52. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +1 -3
  53. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +1 -3
  54. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +1 -3
  55. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  56. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  57. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +1 -1
  58. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +7 -19
  59. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  60. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  61. data/dist/chunks/{_typeahead-CHd0V9EL.js → _typeahead-ySWHB-7p.js} +3 -3
  62. data/dist/chunks/_weekday_stacked-36N8xzXL.js +45 -0
  63. data/dist/chunks/{lib-BV_AF_eh.js → lib-BGzBzFZX.js} +3 -3
  64. data/dist/chunks/{pb_form_validation-nsvkJU2J.js → pb_form_validation-BvNy9Bd6.js} +1 -1
  65. data/dist/chunks/vendor.js +1 -1
  66. data/dist/playbook-doc.js +1 -1
  67. data/dist/playbook-rails-react-bindings.js +1 -1
  68. data/dist/playbook-rails.js +1 -1
  69. data/dist/playbook.css +1 -1
  70. data/lib/playbook/version.rb +1 -1
  71. metadata +18 -43
  72. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
  73. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
  74. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
  75. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
  76. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
  77. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
  78. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
  79. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
  80. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +0 -97
  81. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +0 -54
  82. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +0 -3
  83. data/app/pb_kits/playbook/pb_copy_button/usePBCopy.ts +0 -45
  84. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.jsx +0 -110
  85. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_line.md +0 -5
  86. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
  87. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  88. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  89. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  90. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  91. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  92. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  93. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  94. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  95. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  96. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  97. data/dist/chunks/_weekday_stacked-CdE0nXPu.js +0 -45
  98. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default_react.md → _draggable_default.md} +0 -0
  99. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_default.html.erb → _draggable_default_rails.html.erb} +0 -0
  100. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers_react.md → _draggable_multiple_containers.md} +0 -0
  101. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_multiple_containers.html.erb → _draggable_multiple_containers_rails.html.erb} +0 -0
  102. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards_react.md → _draggable_with_cards.md} +0 -0
  103. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_cards.html.erb → _draggable_with_cards_rails.html.erb} +0 -0
  104. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list_react.md → _draggable_with_list.md} +0 -0
  105. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_list.html.erb → _draggable_with_list_rails.html.erb} +0 -0
  106. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list_react.md → _draggable_with_selectable_list.md} +0 -0
  107. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_selectable_list.html.erb → _draggable_with_selectable_list_rails.html.erb} +0 -0
  108. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_with_table_rails.md → _draggable_with_table.md} +0 -0
@@ -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).