playbook_ui 14.17.0.pre.alpha.PLAY1967bracketlayoutphase27244 → 14.17.0.pre.alpha.PLAY20267223

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +23 -3
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +11 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +60 -128
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +3 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +58 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +6 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +97 -0
  11. data/app/pb_kits/playbook/pb_background/_background.scss +0 -26
  12. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  13. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  14. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  15. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  16. data/app/pb_kits/playbook/pb_layout/_layout.scss +1 -70
  17. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -29
  18. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +118 -322
  19. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  20. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +43 -74
  21. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  22. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  23. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  24. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  25. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  26. data/dist/chunks/{_typeahead-BY6AFq1l.js → _typeahead-HqfDnjRe.js} +2 -2
  27. data/dist/chunks/_weekday_stacked-CPNaHtxQ.js +45 -0
  28. data/dist/chunks/vendor.js +1 -1
  29. data/dist/playbook-doc.js +1 -1
  30. data/dist/playbook-rails-react-bindings.js +1 -1
  31. data/dist/playbook-rails.js +1 -1
  32. data/dist/playbook.css +1 -1
  33. data/lib/playbook/version.rb +1 -1
  34. metadata +7 -11
  35. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  36. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  37. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +0 -79
  38. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  39. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  40. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  41. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  42. data/dist/chunks/_weekday_stacked-CHQAKYTa.js +0 -45
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.17.0"
5
- VERSION = "14.17.0.pre.alpha.PLAY1967bracketlayoutphase27244"
5
+ VERSION = "14.17.0.pre.alpha.PLAY20267223"
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.PLAY1967bracketlayoutphase27244
4
+ version: 14.17.0.pre.alpha.PLAY20267223
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-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -344,6 +344,8 @@ files:
344
344
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
345
345
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
346
346
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.md
347
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx
348
+ - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md
347
349
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
348
350
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md
349
351
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx
@@ -368,6 +370,7 @@ files:
368
370
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_chrome_styles.scss
369
371
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_loading.scss
370
372
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_pseudo_states.scss
373
+ - app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss
371
374
  - app/pb_kits/playbook/pb_advanced_table/table_body.html.erb
372
375
  - app/pb_kits/playbook/pb_advanced_table/table_body.rb
373
376
  - app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
@@ -421,8 +424,6 @@ files:
421
424
  - app/pb_kits/playbook/pb_background/docs/_background_image.md
422
425
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
423
426
  - 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
427
  - app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
427
428
  - app/pb_kits/playbook/pb_background/docs/_background_size.jsx
428
429
  - app/pb_kits/playbook/pb_background/docs/_background_size.md
@@ -1837,7 +1838,6 @@ files:
1837
1838
  - app/pb_kits/playbook/pb_layout/sidebar.html.erb
1838
1839
  - app/pb_kits/playbook/pb_layout/sidebar.rb
1839
1840
  - app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx
1840
- - app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx
1841
1841
  - app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx
1842
1842
  - app/pb_kits/playbook/pb_legend/_legend.scss
1843
1843
  - app/pb_kits/playbook/pb_legend/_legend.tsx
@@ -2872,13 +2872,9 @@ files:
2872
2872
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2873
2873
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2874
2874
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2875
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2876
2875
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2877
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
2878
2876
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
2879
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
2880
2877
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
2881
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
2882
2878
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
2883
2879
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
2884
2880
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -3476,8 +3472,8 @@ files:
3476
3472
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3477
3473
  - app/pb_kits/playbook/utilities/text.ts
3478
3474
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3479
- - dist/chunks/_typeahead-BY6AFq1l.js
3480
- - dist/chunks/_weekday_stacked-CHQAKYTa.js
3475
+ - dist/chunks/_typeahead-HqfDnjRe.js
3476
+ - dist/chunks/_weekday_stacked-CPNaHtxQ.js
3481
3477
  - dist/chunks/lazysizes-B7xYodB-.js
3482
3478
  - dist/chunks/lib-BGzBzFZX.js
3483
3479
  - 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,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,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).