playbook_ui 14.17.0.pre.alpha.PLAY1823maskedsanitizedtextinput7271 → 14.17.0.pre.alpha.PLAY1967bracketlayoutphase27198

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 (71) 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_background/_background.scss +0 -26
  15. data/app/pb_kits/playbook/pb_background/_background.tsx +3 -5
  16. data/app/pb_kits/playbook/pb_background/background.test.js +0 -5
  17. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -1
  18. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  19. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +2 -18
  20. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +5 -15
  21. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +5 -20
  22. data/app/pb_kits/playbook/pb_layout/_layout.scss +2 -36
  23. data/app/pb_kits/playbook/pb_layout/_layout.tsx +2 -27
  24. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +14 -18
  25. data/app/pb_kits/playbook/pb_layout/subcomponents/_game.tsx +21 -35
  26. data/app/pb_kits/playbook/pb_layout/subcomponents/_participant.tsx +6 -12
  27. data/app/pb_kits/playbook/pb_layout/subcomponents/_round.tsx +4 -21
  28. data/app/pb_kits/playbook/pb_overlay/_overlay.scss +22 -49
  29. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +4 -15
  30. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +7 -1
  31. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -3
  32. data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -3
  33. data/app/pb_kits/playbook/pb_overlay/overlay.test.jsx +1 -39
  34. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -1
  35. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  36. data/app/pb_kits/playbook/pb_table/table.rb +1 -13
  37. data/app/pb_kits/playbook/pb_table/table_header.rb +1 -13
  38. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +5 -13
  39. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +1 -8
  40. data/dist/chunks/_typeahead-DZZ1n1Oe.js +22 -0
  41. data/dist/chunks/_weekday_stacked-P4lpbU7P.js +45 -0
  42. data/dist/chunks/vendor.js +1 -1
  43. data/dist/playbook-doc.js +1 -1
  44. data/dist/playbook-rails-react-bindings.js +1 -1
  45. data/dist/playbook-rails.js +1 -1
  46. data/dist/playbook.css +1 -1
  47. data/lib/playbook/version.rb +1 -1
  48. metadata +4 -25
  49. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +0 -58
  50. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +0 -6
  51. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +0 -64
  52. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +0 -8
  53. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +0 -55
  54. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -3
  55. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +0 -33
  56. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -3
  57. data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +0 -97
  58. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx +0 -35
  59. data/app/pb_kits/playbook/pb_background/docs/_background_overlay.md +0 -1
  60. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +0 -63
  61. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +0 -3
  62. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +0 -39
  63. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +0 -1
  64. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +0 -40
  65. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +0 -5
  66. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb +0 -34
  67. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md +0 -1
  68. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb +0 -36
  69. data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md +0 -1
  70. data/dist/chunks/_typeahead-CtCqFlTG.js +0 -22
  71. data/dist/chunks/_weekday_stacked-DSsdjRl5.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.PLAY1823maskedsanitizedtextinput7271"
5
+ VERSION = "14.17.0.pre.alpha.PLAY1967bracketlayoutphase27198"
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.PLAY1823maskedsanitizedtextinput7271
4
+ version: 14.17.0.pre.alpha.PLAY1967bracketlayoutphase27198
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-18 00:00:00.000000000 Z
12
+ date: 2025-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -344,14 +344,6 @@ 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
349
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx
350
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md
351
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx
352
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md
353
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb
354
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md
355
347
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx
356
348
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md
357
349
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx
@@ -376,7 +368,6 @@ files:
376
368
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_chrome_styles.scss
377
369
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_loading.scss
378
370
  - app/pb_kits/playbook/pb_advanced_table/scss_partials/_pseudo_states.scss
379
- - app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss
380
371
  - app/pb_kits/playbook/pb_advanced_table/table_body.html.erb
381
372
  - app/pb_kits/playbook/pb_advanced_table/table_body.rb
382
373
  - app/pb_kits/playbook/pb_advanced_table/table_header.html.erb
@@ -430,8 +421,6 @@ files:
430
421
  - app/pb_kits/playbook/pb_background/docs/_background_image.md
431
422
  - app/pb_kits/playbook/pb_background/docs/_background_light.html.erb
432
423
  - app/pb_kits/playbook/pb_background/docs/_background_light.jsx
433
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.jsx
434
- - app/pb_kits/playbook/pb_background/docs/_background_overlay.md
435
424
  - app/pb_kits/playbook/pb_background/docs/_background_size.html.erb
436
425
  - app/pb_kits/playbook/pb_background/docs/_background_size.jsx
437
426
  - app/pb_kits/playbook/pb_background/docs/_background_size.md
@@ -2205,19 +2194,13 @@ files:
2205
2194
  - app/pb_kits/playbook/pb_online_status/online_status.test.js
2206
2195
  - app/pb_kits/playbook/pb_overlay/_overlay.scss
2207
2196
  - app/pb_kits/playbook/pb_overlay/_overlay.tsx
2208
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx
2209
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md
2210
2197
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.html.erb
2211
2198
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.jsx
2212
2199
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md
2213
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx
2214
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md
2215
2200
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.html.erb
2216
2201
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar.jsx
2217
2202
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_rails.md
2218
2203
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_hide_scroll_bar_react.md
2219
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx
2220
- - app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md
2221
2204
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.html.erb
2222
2205
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.jsx
2223
2206
  - app/pb_kits/playbook/pb_overlay/docs/_overlay_multi_directional.md
@@ -2887,13 +2870,9 @@ files:
2887
2870
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
2888
2871
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
2889
2872
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
2890
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
2891
2873
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
2892
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
2893
2874
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
2894
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.html.erb
2895
2875
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
2896
- - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_rails.md
2897
2876
  - app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
2898
2877
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
2899
2878
  - app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
@@ -3491,8 +3470,8 @@ files:
3491
3470
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3492
3471
  - app/pb_kits/playbook/utilities/text.ts
3493
3472
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3494
- - dist/chunks/_typeahead-CtCqFlTG.js
3495
- - dist/chunks/_weekday_stacked-DSsdjRl5.js
3473
+ - dist/chunks/_typeahead-DZZ1n1Oe.js
3474
+ - dist/chunks/_weekday_stacked-P4lpbU7P.js
3496
3475
  - dist/chunks/lazysizes-B7xYodB-.js
3497
3476
  - dist/chunks/lib-BGzBzFZX.js
3498
3477
  - dist/chunks/pb_form_validation-BvNy9Bd6.js
@@ -1,58 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyColumns = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- id: "year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- id: "newEnrollments",
17
- },
18
- {
19
- accessor: "scheduledMeetings",
20
- label: "Scheduled Meetings",
21
- id: "scheduledMeetings",
22
- },
23
- {
24
- accessor: "attendanceRate",
25
- label: "Attendance Rate",
26
- id: "attendanceRate",
27
- },
28
- {
29
- accessor: "completedClasses",
30
- label: "Completed Classes",
31
- id: "completedClasses",
32
- },
33
- {
34
- accessor: "classCompletionRate",
35
- label: "Class Completion Rate",
36
- id: "classCompletionRate",
37
- },
38
- {
39
- accessor: "graduatedStudents",
40
- label: "Graduated Students",
41
- id: "graduatedStudents",
42
- },
43
- ]
44
-
45
- return (
46
- <div>
47
- <AdvancedTable
48
- columnDefinitions={columnDefinitions}
49
- responsive="none"
50
- stickyLeftColumn={["year"]}
51
- tableData={MOCK_DATA}
52
- {...props}
53
- />
54
- </div>
55
- )
56
- }
57
-
58
- export default AdvancedTableStickyColumns
@@ -1,6 +0,0 @@
1
- To render sticky columns for the Advanced Table, you can use the `stickyLeftColumn` prop. This prop expects an array of the column ids you want to be sticky.
2
-
3
- To achieve this:
4
- - Make sure to provide an id for each column via columnDefinitions as shown below. Id can be any string.
5
- - One or multiple columns can be made sticky, it is recommended to set the ids within `stickyLeftColumn` in the order in which the columns are rendered.
6
- - It is recommended to set `responsive` to none when using `stickyLeftColumn` since responsive just makes the first column sticky and the slightly different styling for `responsive` and `stickyLeftColumn` may override each other in unexpected ways.
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyColumnsAndHeader = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- id: "year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- id: "newEnrollments",
17
- },
18
- {
19
- accessor: "scheduledMeetings",
20
- label: "Scheduled Meetings",
21
- id: "scheduledMeetings",
22
- },
23
- {
24
- accessor: "attendanceRate",
25
- label: "Attendance Rate",
26
- id: "attendanceRate",
27
- },
28
- {
29
- accessor: "completedClasses",
30
- label: "Completed Classes",
31
- id: "completedClasses",
32
- },
33
- {
34
- accessor: "classCompletionRate",
35
- label: "Class Completion Rate",
36
- id: "classCompletionRate",
37
- },
38
- {
39
- accessor: "graduatedStudents",
40
- label: "Graduated Students",
41
- id: "graduatedStudents",
42
- },
43
- ]
44
-
45
- const tableProps = {
46
- sticky: true
47
- }
48
-
49
- return (
50
- <div>
51
- <AdvancedTable
52
- columnDefinitions={columnDefinitions}
53
- maxHeight="xs"
54
- responsive="none"
55
- stickyLeftColumn={["year"]}
56
- tableData={MOCK_DATA}
57
- tableProps={tableProps}
58
- {...props}
59
- />
60
- </div>
61
- )
62
- }
63
-
64
- export default AdvancedTableStickyColumnsAndHeader
@@ -1,8 +0,0 @@
1
- To achieve a sticky header AND sticky columns together, in addition to the `stickyLeftColumn` logic outlined above, you can:
2
-
3
- - Set `sticky: true` via `tableProps`
4
- - Give the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
5
-
6
- **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the column stickiness.
7
-
8
- Expand the table above to see this in action.
@@ -1,55 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data.json"
4
-
5
- const AdvancedTableStickyHeader = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- cellAccessors: ["quarter", "month", "day"],
11
- },
12
- {
13
- accessor: "newEnrollments",
14
- label: "New Enrollments",
15
- },
16
- {
17
- accessor: "scheduledMeetings",
18
- label: "Scheduled Meetings",
19
- },
20
- {
21
- accessor: "attendanceRate",
22
- label: "Attendance Rate",
23
- },
24
- {
25
- accessor: "completedClasses",
26
- label: "Completed Classes",
27
- },
28
- {
29
- accessor: "classCompletionRate",
30
- label: "Class Completion Rate",
31
- },
32
- {
33
- accessor: "graduatedStudents",
34
- label: "Graduated Students",
35
- },
36
- ]
37
-
38
- const tableProps = {
39
- sticky: true
40
- }
41
-
42
- return (
43
- <div>
44
- <AdvancedTable
45
- columnDefinitions={columnDefinitions}
46
- responsive="none"
47
- tableData={MOCK_DATA}
48
- tableProps={tableProps}
49
- {...props}
50
- />
51
- </div>
52
- )
53
- }
54
-
55
- export default AdvancedTableStickyHeader
@@ -1,3 +0,0 @@
1
- The `TableProps` prop can also be used to render a sticky header for the Advanced Table.
2
-
3
- This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "Sticky Header for Responsive Table" doc example below.
@@ -1,33 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- accessor: "newEnrollments",
9
- label: "New Enrollments",
10
- },
11
- {
12
- accessor: "scheduledMeetings",
13
- label: "Scheduled Meetings",
14
- },
15
- {
16
- accessor: "attendanceRate",
17
- label: "Attendance Rate",
18
- },
19
- {
20
- accessor: "completedClasses",
21
- label: "Completed Classes",
22
- },
23
- {
24
- accessor: "classCompletionRate",
25
- label: "Class Completion Rate",
26
- },
27
- {
28
- accessor: "graduatedStudents",
29
- label: "Graduated Students",
30
- }
31
- ] %>
32
-
33
- <%= pb_rails("advanced_table", props: { id: "sticky_header_table", table_data: @table_data, column_definitions: column_definitions, responsive: "none", table_props: { sticky: true }}) %>
@@ -1,3 +0,0 @@
1
- The `table_props` prop can also be used to render a sticky header for the Advanced Table.
2
-
3
- This doc example showcases how to set a sticky header for a nonresponsive table (see the `responsive` prop set to "none"). To achieve sticky header AND responsive functionality, see the "[Sticky Header for Responsive Table](https://playbook.powerapp.cloud/kits/advanced_table/react#sticky-header-for-responsive-table)" doc example below.
@@ -1,97 +0,0 @@
1
- @mixin advanced-table-sticky-mixin(
2
- $border-color,
3
- $bg-main,
4
- $bg-secondary,
5
- $highlight: $info_subtle
6
- ) {
7
- border-radius: 4px;
8
- box-shadow: 1px 0 0 0px $border-color, -1px 0 0 0px $border-color;
9
- display: block;
10
- [class^="pb_table"].table-sm.table-card thead tr th:first-child,
11
- [class^="pb_table"].table-sm:not(.no-hover).table-card
12
- tbody
13
- tr
14
- td:first-child {
15
- border-left-width: 0px !important;
16
- }
17
- [class^="pb_table"].table-sm.table-card thead tr th:last-child,
18
- [class^="pb_table"].table-sm:not(.no-hover).table-card
19
- tbody
20
- tr
21
- td:last-child {
22
- border-right-width: 0px;
23
- }
24
- [class^="pb_table"].table-sm.table-card tbody tr:last-child td:first-child,
25
- [class^="pb_table"].table-sm.table-card tbody tr:last-child td:last-child {
26
- border-radius: 0 0 0 0;
27
- }
28
- .table-header-cells:first-child,
29
- td:first-child,
30
- .pb_table_td:first-child,
31
- .checkbox-cell.checkbox-cell-header:first-child,
32
- .table-header-cells.sticky-left,
33
- [class*="pinned-left"] {
34
- background-color: $bg-main;
35
- box-shadow: $shadow_deep !important;
36
- position: sticky !important;
37
- left: 0;
38
- z-index: 2;
39
- }
40
-
41
- .bg-silver {
42
- td:first-child,
43
- .sticky-left {
44
- background-color: $bg-secondary;
45
- }
46
- }
47
- .bg-row-selection {
48
- td:first-child,
49
- .sticky-left {
50
- background-color: $highlight;
51
- }
52
- }
53
-
54
- .bg-white {
55
- td:first-child,
56
- .sticky-left {
57
- background-color: $bg-main;
58
- }
59
- }
60
-
61
- .virtualized-table-row {
62
- &.bg-silver td:first-child {
63
- background-color: $bg-secondary;
64
- }
65
- &.bg-white td:first-child {
66
- background-color: $bg-main;
67
- }
68
- &.bg-row-selection td:first-child {
69
- background-color: $highlight;
70
- }
71
- }
72
-
73
- .row-selection-actions-card {
74
- border-right-width: 0px;
75
- border-left-width: 0px;
76
- position: sticky;
77
- top: 0;
78
- left: 0;
79
- border-radius: unset;
80
- }
81
-
82
- .checkbox-cell {
83
- display: table-cell !important;
84
- }
85
-
86
- .sticky-header {
87
- thead {
88
- th:first-child {
89
- box-shadow: 1px 0 10px -2px $border-color !important;
90
- }
91
- }
92
-
93
- .pb_advanced_table_header {
94
- box-shadow: none !important;
95
- }
96
- }
97
- }
@@ -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,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 %>