playbook_ui 13.19.0.pre.alpha.PBNTR207tabledivsupport2245 → 13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/index.js +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +4 -4
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.md +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.md +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.md +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.md +1 -1
  9. data/app/pb_kits/playbook/pb_icon/_icon.tsx +28 -16
  10. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb +5 -11
  11. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx +44 -18
  12. data/app/pb_kits/playbook/pb_icon/docs/_icon_custom.md +4 -8
  13. data/app/pb_kits/playbook/pb_icon/icon.html.erb +6 -4
  14. data/app/pb_kits/playbook/pb_icon/icon.rb +27 -10
  15. data/app/pb_kits/playbook/pb_table/SubKits/_table_body.tsx +64 -0
  16. data/app/pb_kits/playbook/pb_table/SubKits/_table_cell.tsx +66 -0
  17. data/app/pb_kits/playbook/pb_table/SubKits/_table_head.tsx +64 -0
  18. data/app/pb_kits/playbook/pb_table/SubKits/_table_header.tsx +66 -0
  19. data/app/pb_kits/playbook/pb_table/SubKits/_table_row.tsx +74 -0
  20. data/app/pb_kits/playbook/pb_table/SubKits/index.tsx +5 -0
  21. data/app/pb_kits/playbook/pb_table/_table.tsx +99 -67
  22. data/app/pb_kits/playbook/pb_table/docs/_table_div.html.erb +26 -26
  23. data/app/pb_kits/playbook/pb_table/docs/_table_div.jsx +27 -26
  24. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.jsx +24 -25
  25. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb +34 -0
  26. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx +47 -0
  27. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb +34 -0
  28. data/app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx +48 -0
  29. data/app/pb_kits/playbook/pb_table/docs/example.yml +7 -2
  30. data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
  31. data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -1
  32. data/app/pb_kits/playbook/pb_table/styles/_content.scss +3 -3
  33. data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +15 -15
  34. data/app/pb_kits/playbook/pb_table/styles/_headers.scss +3 -3
  35. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +11 -11
  36. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +15 -15
  37. data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +15 -15
  38. data/app/pb_kits/playbook/pb_table/styles/_reset.scss +3 -3
  39. data/app/pb_kits/playbook/pb_table/styles/_side_highlight.scss +2 -2
  40. data/app/pb_kits/playbook/pb_table/styles/_single-line.scss +4 -4
  41. data/app/pb_kits/playbook/pb_table/styles/_sticky_header.scss +2 -2
  42. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +4 -4
  43. data/app/pb_kits/playbook/pb_table/styles/_structure.scss +22 -8
  44. data/app/pb_kits/playbook/pb_table/styles/_table-card.scss +7 -7
  45. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +14 -14
  46. data/app/pb_kits/playbook/pb_table/styles/_table_header.scss +2 -2
  47. data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +15 -15
  48. data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +3 -3
  49. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -3
  50. data/app/pb_kits/playbook/pb_table/table.test.js +142 -1
  51. data/app/pb_kits/playbook/pb_table/table_body.html.erb +17 -0
  52. data/app/pb_kits/playbook/pb_table/table_body.rb +15 -0
  53. data/app/pb_kits/playbook/pb_table/table_cell.html.erb +17 -0
  54. data/app/pb_kits/playbook/pb_table/table_cell.rb +17 -0
  55. data/app/pb_kits/playbook/pb_table/table_head.html.erb +17 -0
  56. data/app/pb_kits/playbook/pb_table/table_head.rb +15 -0
  57. data/app/pb_kits/playbook/pb_table/table_header.html.erb +49 -39
  58. data/app/pb_kits/playbook/pb_table/table_header.rb +8 -1
  59. data/app/pb_kits/playbook/pb_table/table_row.html.erb +17 -7
  60. data/app/pb_kits/playbook/pb_table/table_row.rb +8 -1
  61. data/dist/playbook-rails.js +6 -6
  62. data/lib/playbook/version.rb +1 -1
  63. metadata +18 -4
  64. data/app/pb_kits/playbook/pb_table/_table_row.tsx +0 -47
  65. data/app/pb_kits/playbook/pb_table/styles/_div_support.scss +0 -22
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.19.0"
5
- VERSION = "13.19.0.pre.alpha.PBNTR207tabledivsupport2245"
5
+ VERSION = "13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318"
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: 13.19.0.pre.alpha.PBNTR207tabledivsupport2245
4
+ version: 13.19.0.pre.alpha.PBNTR211tablekitsubcomponentsreact2318
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: 2024-02-28 00:00:00.000000000 Z
12
+ date: 2024-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2220,9 +2220,14 @@ files:
2220
2220
  - app/pb_kits/playbook/pb_stat_value/stat_value.html.erb
2221
2221
  - app/pb_kits/playbook/pb_stat_value/stat_value.rb
2222
2222
  - app/pb_kits/playbook/pb_stat_value/stat_value.test.js
2223
+ - app/pb_kits/playbook/pb_table/SubKits/_table_body.tsx
2224
+ - app/pb_kits/playbook/pb_table/SubKits/_table_cell.tsx
2225
+ - app/pb_kits/playbook/pb_table/SubKits/_table_head.tsx
2226
+ - app/pb_kits/playbook/pb_table/SubKits/_table_header.tsx
2227
+ - app/pb_kits/playbook/pb_table/SubKits/_table_row.tsx
2228
+ - app/pb_kits/playbook/pb_table/SubKits/index.tsx
2223
2229
  - app/pb_kits/playbook/pb_table/_table.scss
2224
2230
  - app/pb_kits/playbook/pb_table/_table.tsx
2225
- - app/pb_kits/playbook/pb_table/_table_row.tsx
2226
2231
  - app/pb_kits/playbook/pb_table/docs/_description.md
2227
2232
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb
2228
2233
  - app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx
@@ -2289,6 +2294,10 @@ files:
2289
2294
  - app/pb_kits/playbook/pb_table/docs/_table_vertical_border.jsx
2290
2295
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb
2291
2296
  - app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx
2297
+ - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.html.erb
2298
+ - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents.jsx
2299
+ - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.html.erb
2300
+ - app/pb_kits/playbook/pb_table/docs/_table_with_subcomponents_as_divs.jsx
2292
2301
  - app/pb_kits/playbook/pb_table/docs/example.yml
2293
2302
  - app/pb_kits/playbook/pb_table/docs/index.js
2294
2303
  - app/pb_kits/playbook/pb_table/index.ts
@@ -2296,7 +2305,6 @@ files:
2296
2305
  - app/pb_kits/playbook/pb_table/styles/_all.scss
2297
2306
  - app/pb_kits/playbook/pb_table/styles/_content.scss
2298
2307
  - app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss
2299
- - app/pb_kits/playbook/pb_table/styles/_div_support.scss
2300
2308
  - app/pb_kits/playbook/pb_table/styles/_headers.scss
2301
2309
  - app/pb_kits/playbook/pb_table/styles/_hover.scss
2302
2310
  - app/pb_kits/playbook/pb_table/styles/_mobile.scss
@@ -2316,6 +2324,12 @@ files:
2316
2324
  - app/pb_kits/playbook/pb_table/table.html.erb
2317
2325
  - app/pb_kits/playbook/pb_table/table.rb
2318
2326
  - app/pb_kits/playbook/pb_table/table.test.js
2327
+ - app/pb_kits/playbook/pb_table/table_body.html.erb
2328
+ - app/pb_kits/playbook/pb_table/table_body.rb
2329
+ - app/pb_kits/playbook/pb_table/table_cell.html.erb
2330
+ - app/pb_kits/playbook/pb_table/table_cell.rb
2331
+ - app/pb_kits/playbook/pb_table/table_head.html.erb
2332
+ - app/pb_kits/playbook/pb_table/table_head.rb
2319
2333
  - app/pb_kits/playbook/pb_table/table_header.html.erb
2320
2334
  - app/pb_kits/playbook/pb_table/table_header.rb
2321
2335
  - app/pb_kits/playbook/pb_table/table_row.html.erb
@@ -1,47 +0,0 @@
1
- import React from 'react'
2
- import classnames from 'classnames'
3
- import { buildAriaProps, buildCss, buildDataProps, buildHtmlProps } from '../utilities/props'
4
- import { globalProps } from '../utilities/globalProps'
5
-
6
- type TableRowPropTypes = {
7
- aria?: { [key: string]: string },
8
- children: React.ReactNode[] | React.ReactNode,
9
- className: string,
10
- data?: { [key: string]: string },
11
- htmlOptions?: {[key: string]: string | number | boolean | (() => void)},
12
- id?: string,
13
- sideHighlightColor: string,
14
- }
15
-
16
- const TableRow = (props: TableRowPropTypes) => {
17
- const {
18
- aria = {},
19
- children,
20
- className,
21
- data = {},
22
- htmlOptions = {},
23
- id,
24
- sideHighlightColor = 'windows',
25
- } = props
26
-
27
- const ariaProps = buildAriaProps(aria)
28
- const dataProps = buildDataProps(data)
29
- const htmlProps = buildHtmlProps(htmlOptions)
30
- const sideHighlightClass =
31
- sideHighlightColor != '' ? `side_highlight_${sideHighlightColor}` : null
32
- const classes = classnames(buildCss('pb_table_row_kit', sideHighlightClass), globalProps(props), className)
33
-
34
- return (
35
- <tr
36
- {...ariaProps}
37
- {...dataProps}
38
- {...htmlProps}
39
- className={classes}
40
- id={id}
41
- >
42
- {children}
43
- </tr>
44
- )
45
- }
46
-
47
- export default TableRow
@@ -1,22 +0,0 @@
1
- [class^=pb_table] {
2
- .div-table {
3
- display: table;
4
- width: 100%;
5
- }
6
-
7
- .thead {
8
- display: table-header-group;
9
- }
10
-
11
- .tbody {
12
- display: table-row-group;
13
- }
14
-
15
- .tr {
16
- display: table-row;
17
- }
18
-
19
- .th, .td {
20
- display: table-cell;
21
- }
22
- }