playbook_ui 14.18.0.pre.alpha.dropdownautocomplete7493 → 14.18.0.pre.alpha.play1736highchartslinegraphdefaultrebuild7431

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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +21 -304
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -5
  4. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +1 -6
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md +6 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows_react.jsx → _advanced_table_selectable_rows_no_subrows.jsx} +2 -2
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md +1 -5
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md +2 -3
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +5 -6
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -3
  11. data/app/pb_kits/playbook/pb_advanced_table/index.js +11 -228
  12. data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +1 -9
  13. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +3 -0
  14. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -1
  15. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_error.html.erb +2 -2
  16. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -2
  17. data/app/pb_kits/playbook/pb_draggable/draggable.rb +1 -9
  18. data/app/pb_kits/playbook/pb_draggable/index.js +142 -139
  19. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -5
  20. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +16 -5
  21. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +2 -5
  22. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +64 -17
  23. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_autocomplete_with_subcomponents.jsx → _dropdown_with_autocomplete_and_custom_display.jsx} +25 -11
  24. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md +1 -0
  25. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx +79 -0
  26. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +4 -7
  27. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -2
  28. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +2 -2
  29. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -4
  30. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -45
  31. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +0 -10
  32. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +0 -3
  33. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.html.erb +2 -12
  34. data/app/pb_kits/playbook/pb_dropdown/dropdown_trigger.rb +1 -3
  35. data/app/pb_kits/playbook/pb_dropdown/index.js +0 -57
  36. data/app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js +0 -26
  37. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx +2 -1
  38. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownTrigger.tsx +4 -4
  39. data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
  40. data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +18 -22
  41. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.js +49 -0
  43. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +0 -13
  44. data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +1 -3
  45. data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
  46. data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
  47. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.rb +0 -3
  48. data/app/pb_kits/playbook/pb_phone_number_input/phone_number_input.test.js +0 -19
  49. data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
  50. data/app/pb_kits/playbook/pb_popover/index.ts +1 -13
  51. data/app/pb_kits/playbook/pb_popover/popover.rb +0 -2
  52. data/app/pb_kits/playbook/pb_select/docs/_select_error.html.erb +1 -1
  53. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.html.erb +1 -1
  54. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -5
  55. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_error_state.html.erb +1 -8
  56. data/dist/chunks/{_typeahead-D8CsVBZO.js → _typeahead-0GuhDCLl.js} +2 -2
  57. data/dist/chunks/_weekday_stacked-DGgA3ilU.js +45 -0
  58. data/dist/chunks/{lib-BmTAc7Nc.js → lib-C8GLwWXp.js} +1 -1
  59. data/dist/chunks/{pb_form_validation-BWjy4bFn.js → pb_form_validation-Eul4XODx.js} +1 -1
  60. data/dist/chunks/vendor.js +1 -1
  61. data/dist/playbook-doc.js +1 -1
  62. data/dist/playbook-rails-react-bindings.js +1 -1
  63. data/dist/playbook-rails.js +1 -1
  64. data/dist/playbook.css +1 -1
  65. data/lib/playbook/version.rb +1 -1
  66. metadata +16 -38
  67. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.jsx +0 -80
  68. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +0 -3
  69. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +0 -58
  70. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +0 -3
  71. data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +0 -106
  72. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones.html.erb +0 -43
  73. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors.html.erb +0 -55
  74. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_drop_zones_colors_rails.md +0 -1
  75. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +0 -28
  76. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +0 -58
  77. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.md +0 -1
  78. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.md +0 -1
  79. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +0 -61
  80. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.md +0 -2
  81. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +0 -52
  82. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.md +0 -2
  83. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb +0 -41
  84. data/app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.md +0 -1
  85. data/app/pb_kits/playbook/pb_line_graph/docs/_line_graph_pb_styles.md +0 -1
  86. data/app/pb_kits/playbook/pb_line_graph/lineGraphTheme.ts +0 -110
  87. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.html.erb +0 -10
  88. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.jsx +0 -20
  89. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_country_search.md +0 -1
  90. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb +0 -46
  91. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md +0 -1
  92. data/dist/chunks/_weekday_stacked-Da8b-KUp.js +0 -45
  93. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_rails.html.erb → _advanced_table_selectable_rows.html.erb} +0 -0
  94. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows_rails.html.erb → _advanced_table_selectable_rows_no_subrows.html.erb} +0 -0
  95. /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows.md → _advanced_table_selectable_rows_react.md} +0 -0
  96. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_react.md → _draggable_drop_zones.md} +0 -0
  97. /data/app/pb_kits/playbook/pb_draggable/docs/{_draggable_drop_zones_colors_react.md → _draggable_drop_zones_colors.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bd20052fba74764f8980ddc1b51b9ee894ed353f4945a684221bc970e254f42
4
- data.tar.gz: 972b9183b0086471c49619b5fe5e454c3881cf69ef92025ea66a01acd3ae5abc
3
+ metadata.gz: d78c525af9420178f8164784e8a40900e53019c1bc40e9a166d1344d2ffa5e0a
4
+ data.tar.gz: fd328a2fb678d8011decad133fe86bc9906cec3d42b40c243609e0bd3face89d
5
5
  SHA512:
6
- metadata.gz: d2886034ed0b6530c5137873110184eca7b9d885b9366418f089c6aae68aa9ec768ad3a822d8470e9ad76e73f392574ebcd1912bb3b6bea204495e7e52b69a1a
7
- data.tar.gz: 57f1694272424242ba6d502930af72222ef45ab386458f6f21dfe5666e1aeb4eceeddea86ca48c0c05b1706bcbef9e3f3b2e2d0363e2478fb133717c37fe3d84
6
+ metadata.gz: a35c420eae17362abe96f14342a2da06f1b44bf5885020b0e995f9a4bf0db82a20c08ecf2e32e6d447ae193bb7fed9b019ad365cb248049f3506731e9f7e5e2e
7
+ data.tar.gz: e329136643397969ba9f0d7f6bec4f2aff534476ea73e152da63f912c5dee03d7fbbabdee5d5d5e4208381b68d4a1ab60794c7c71a4e7c55dd69122fca866e84
@@ -13,26 +13,6 @@
13
13
  .pb_advanced_table {
14
14
  $border-color: 1px solid $border_light;
15
15
 
16
- // Base vertical border color variable setup
17
- --column-border-color: #{$border_light};
18
-
19
- // Define color tokens once
20
- $border_color_options: (
21
- "text_lt_default": $text_lt_default,
22
- "text_lt_light": $text_lt_light,
23
- "text_lt_lighter": $text_lt_lighter,
24
- "text_dk_default": $text_dk_default,
25
- "text_dk_light": $text_dk_light,
26
- "text_dk_lighter": $text_dk_lighter
27
- );
28
-
29
- // Generate classes for each color option
30
- @each $color_name, $color_value in $border_color_options {
31
- &.column-group-border-#{$color_name} {
32
- --column-border-color: #{$color_value};
33
- }
34
- }
35
-
36
16
  [id$="-span"] {
37
17
  word-wrap: normal;
38
18
  }
@@ -366,133 +346,13 @@
366
346
  }
367
347
  }
368
348
 
369
- // First column separator/border
349
+ // Vertical separator
370
350
  .table-header-cells:first-child,
371
351
  .table-header-cells-custom:first-child,
372
352
  td:first-child,
373
353
  .pb_table_td:first-child,
374
354
  .checkbox-cell.checkbox-cell-header:first-child {
375
- box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
376
- }
377
-
378
- // Color for collapsible trail
379
- .collapsible-trail {
380
- background-color: $border_light !important;
381
- position: absolute;
382
- top: 0;
383
- bottom: 0;
384
- width: 2px;
385
- }
386
-
387
- // Make sure all horizontal borders use the default border color
388
- tr, th, td {
389
- border-top-color: $border_light !important;
390
- border-bottom-color: $border_light !important;
391
- }
392
-
393
- // Apply border colors when columnGroupBorderColor is set
394
- &[class*="column-group-border-"] {
395
- // For top-level column groups
396
- .pb_advanced_table_header {
397
- // The main column group headers
398
- > tr:first-child {
399
- th[colspan]:not([colspan="1"]):not(:last-child) {
400
- border-right: 1px solid var(--column-border-color) !important;
401
- }
402
- }
403
-
404
- // Subgroup headers
405
- > tr:nth-child(2) {
406
- th[colspan]:not([colspan="1"]):not(:last-child) {
407
- border-right: 1px solid var(--column-border-color) !important;
408
- }
409
-
410
- // Last cell in each subgroup
411
- th.last-header-cell:not(:last-child) {
412
- border-right: 1px solid var(--column-border-color) !important;
413
- }
414
- }
415
-
416
- // Individual column headers at subgroup boundaries
417
- > tr:last-child {
418
- // Last cell in each subgroup
419
- th.last-header-cell:not(:last-child) {
420
- border-right: 1px solid var(--column-border-color) !important;
421
- }
422
- }
423
- }
424
-
425
- // For data cells at column group boundaries
426
- .pb_advanced_table_body {
427
- // Apply to cells that are at column group boundaries
428
- td.last-cell:not(:last-child),
429
- .pb_table_td.last-cell:not(:last-child) {
430
- border-right: 1px solid var(--column-border-color) !important;
431
- }
432
-
433
- // Virtualized row cells at column group boundaries
434
- tr.virtualized-table-row {
435
- td.last-cell:not(:last-child) {
436
- border-right: 1px solid var(--column-border-color) !important;
437
- }
438
- }
439
- }
440
-
441
- // Sub-row headers
442
- .toggle-content {
443
- td {
444
- border-bottom: 1px solid $border_light !important;
445
- }
446
- }
447
- }
448
-
449
- // Restore vertical border styling when verticalBorder is true
450
- .pb_table[data-vertical-border="true"] {
451
- .pb_advanced_table_header {
452
- > tr:not(:first-child) {
453
- th:not(:last-child) {
454
- border-right: 1px solid $border_light !important;
455
- }
456
- }
457
- }
458
-
459
- .pb_advanced_table_body {
460
- td:not(:last-child),
461
- .pb_table_td:not(:last-child) {
462
- border-right: 1px solid $border_light !important;
463
- }
464
- }
465
-
466
- tr.virtualized-table-row {
467
- td:not(:last-child) {
468
- border-right: 1px solid $border_light !important;
469
- }
470
- }
471
-
472
- // When both verticalBorder AND columnGroupBorderColor are set,
473
- // override the default border-light with the custom color
474
- &.pb_advanced_table[class*="column-group-border-"] {
475
- .pb_advanced_table_header {
476
- > tr:not(:first-child) {
477
- th:not(:last-child) {
478
- border-right: 1px solid var(--column-border-color) !important;
479
- }
480
- }
481
- }
482
-
483
- .pb_advanced_table_body {
484
- td:not(:last-child),
485
- .pb_table_td:not(:last-child) {
486
- border-right: 1px solid var(--column-border-color) !important;
487
- }
488
- }
489
-
490
- tr.virtualized-table-row {
491
- td:not(:last-child) {
492
- border-right: 1px solid var(--column-border-color) !important;
493
- }
494
- }
495
- }
355
+ box-shadow: 1px 0px 0px 0px $border_light !important;
496
356
  }
497
357
 
498
358
  @include chrome_styles($border-color);
@@ -515,25 +375,12 @@
515
375
  height: auto;
516
376
  }
517
377
 
518
- // Mixin to apply sticky column styles for different color modes and themes
519
- @mixin apply-sticky-colors($theme) {
520
- @each $color_name, $color_value in $border_color_options {
521
- &.column-group-border-#{$color_name} {
522
- @if $theme == "light" {
523
- @include advanced-table-sticky-mixin(
524
- $color_value,
525
- $white,
526
- lighten($silver, $opacity_7)
527
- );
528
- } @else if $theme == "dark" {
529
- @include advanced-table-sticky-mixin(
530
- $color_value,
531
- $bg_dark_card,
532
- $bg_dark
533
- );
534
- }
535
- }
536
- }
378
+ .collapsible-trail {
379
+ background-color: $border_light;
380
+ position: absolute;
381
+ top: 0;
382
+ bottom: 0;
383
+ width: 2px;
537
384
  }
538
385
 
539
386
  // Sticky Left Columns Styling
@@ -550,9 +397,6 @@
550
397
  $white,
551
398
  lighten($silver, $opacity_7)
552
399
  );
553
-
554
- // Apply border colors for sticky columns
555
- @include apply-sticky-colors("light");
556
400
  }
557
401
 
558
402
  // Responsive Styles
@@ -560,29 +404,13 @@
560
404
  &[class*="advanced-table-responsive-scroll"] {
561
405
  overflow-x: auto;
562
406
  width: 100%;
563
-
564
- // These are the responsive borders that should NOT inherit the custom color
565
407
  @include advanced-table-sticky-mixin(
566
408
  $border_light,
567
409
  $white,
568
410
  lighten($silver, $opacity_7)
569
411
  );
570
-
571
- // Override any columnGroupBorderColor inheritance for responsive borders
572
- .sticky-left {
573
- box-shadow: $shadow_deep !important;
574
- }
575
-
576
- .pb_advanced_table_header,
577
- .pb_advanced_table_body {
578
- th.sticky-left,
579
- td.sticky-left {
580
- border-right: 1px solid $border_light !important;
581
- }
582
- }
583
412
  }
584
413
  }
585
-
586
414
  @media only screen and (min-width: $screen-xl-min) {
587
415
  &[class*="advanced-table-responsive-scroll"] {
588
416
  overflow-x: visible;
@@ -590,20 +418,6 @@
590
418
  }
591
419
 
592
420
  &.dark {
593
- // Override default border color for dark mode
594
- --column-border-color: #{$border_dark};
595
-
596
- // Dark mode default border colors for trails and horizontal borders
597
- .collapsible-trail {
598
- background-color: $border_dark !important;
599
- }
600
-
601
- // Make sure all horizontal borders use the default border color in dark mode
602
- tr, th, td {
603
- border-top-color: $border_dark !important;
604
- border-bottom-color: $border_dark !important;
605
- }
606
-
607
421
  .bg-white {
608
422
  background: $bg_dark_card;
609
423
  }
@@ -632,104 +446,13 @@
632
446
  }
633
447
 
634
448
  .table-header-cells:first-child,
635
- .table-header-cells-custom:first-child,
636
449
  td:first-child,
637
- .pb_table_td:first-child,
638
- .checkbox-cell.checkbox-cell-header:first-child {
639
- box-shadow: 1px 0px 0px 0px var(--column-border-color) !important;
450
+ .pb_table_td:first-child {
451
+ box-shadow: 1px 0px 0px 0px $border_dark !important;
640
452
  }
641
453
 
642
- // Apply border colors in dark mode
643
- &[class*="column-group-border-"] {
644
- // For top-level column groups (ENROLLMENT DATA, PERFORMANCE DATA)
645
- .pb_advanced_table_header {
646
- // The main column group headers - NOT the last column
647
- > tr:first-child {
648
- th[colspan]:not([colspan="1"]):not(:last-child) {
649
- border-right: 1px solid var(--column-border-color) !important;
650
- }
651
- }
652
-
653
- // Subgroup headers
654
- > tr:nth-child(2) {
655
- th[colspan]:not([colspan="1"]):not(:last-child) {
656
- border-right: 1px solid var(--column-border-color) !important;
657
- }
658
-
659
- // Last cell in each subgroup
660
- th.last-header-cell:not(:last-child) {
661
- border-right: 1px solid var(--column-border-color) !important;
662
- }
663
- }
664
-
665
- // Individual column headers at subgroup boundaries
666
- > tr:last-child {
667
- // Last cell in each subgroup
668
- th.last-header-cell:not(:last-child) {
669
- border-right: 1px solid var(--column-border-color) !important;
670
- }
671
- }
672
- }
673
-
674
- // For data cells at column group boundaries in dark mode
675
- .pb_advanced_table_body {
676
- // Apply to cells that are at column group boundaries
677
- td.last-cell:not(:last-child),
678
- .pb_table_td.last-cell:not(:last-child) {
679
- border-right: 1px solid var(--column-border-color) !important;
680
- }
681
-
682
- // Virtualized row cells at column group boundaries
683
- tr.virtualized-table-row {
684
- td.last-cell:not(:last-child) {
685
- border-right: 1px solid var(--column-border-color) !important;
686
- }
687
- }
688
- }
689
-
690
- // Sub-row headers
691
- .toggle-content {
692
- td {
693
- border-bottom: 1px solid $border_dark !important;
694
- }
695
- }
696
- }
697
-
698
- // Restore vertical border styling in dark mode when verticalBorder is true
699
- .pb_table[data-vertical-border="true"] {
700
- .pb_advanced_table_header {
701
- > tr:not(:first-child) {
702
- th:not(:last-child) {
703
- border-right: 1px solid $border_dark !important;
704
- }
705
- }
706
- }
707
-
708
- .pb_advanced_table_body {
709
- td:not(:last-child),
710
- .pb_table_td:not(:last-child) {
711
- border-right: 1px solid $border_dark !important;
712
- }
713
- }
714
-
715
- // When both verticalBorder AND columnGroupBorderColor are set in dark mode,
716
- // override the default border-dark with the custom color
717
- &.pb_advanced_table[class*="column-group-border-"] {
718
- .pb_advanced_table_header {
719
- > tr:not(:first-child) {
720
- th:not(:last-child) {
721
- border-right: 1px solid var(--column-border-color) !important;
722
- }
723
- }
724
- }
725
-
726
- .pb_advanced_table_body {
727
- td:not(:last-child),
728
- .pb_table_td:not(:last-child) {
729
- border-right: 1px solid var(--column-border-color) !important;
730
- }
731
- }
732
- }
454
+ .collapsible-trail {
455
+ background-color: $border_dark !important;
733
456
  }
734
457
 
735
458
  .sort-button-icon,
@@ -761,6 +484,15 @@
761
484
  }
762
485
  }
763
486
 
487
+ // Vertical separator
488
+ .table-header-cells:first-child,
489
+ .table-header-cells-custom:first-child,
490
+ td:first-child,
491
+ .pb_table_td:first-child,
492
+ .checkbox-cell.checkbox-cell-header:first-child {
493
+ box-shadow: 1px 0px 0px 0px $border_dark !important;
494
+ }
495
+
764
496
  // Fullscreen
765
497
  &.advanced-table-fullscreen {
766
498
  background: $bg_dark;
@@ -794,26 +526,11 @@
794
526
  }
795
527
  }
796
528
  }
797
-
798
- // These are the responsive borders that should NOT inherit the custom color
799
529
  @include advanced-table-sticky-mixin(
800
530
  $border_dark,
801
531
  $bg_dark_card,
802
532
  $bg_dark
803
533
  );
804
-
805
- // Override any columnGroupBorderColor inheritance for responsive borders in dark mode
806
- .sticky-left {
807
- box-shadow: $shadow_deep !important;
808
- }
809
-
810
- .pb_advanced_table_header,
811
- .pb_advanced_table_body {
812
- th.sticky-left,
813
- td.sticky-left {
814
- border-right: 1px solid $border_dark !important;
815
- }
816
- }
817
534
  }
818
535
  }
819
536
  }
@@ -34,7 +34,6 @@ type AdvancedTableProps = {
34
34
  children?: React.ReactNode | React.ReactNode[]
35
35
  className?: string
36
36
  columnDefinitions: GenericObject[]
37
- columnGroupBorderColor?: "text_lt_default" | "text_lt_light" | "text_lt_lighter" | "text_dk_default" | "text_dk_light" | "text_dk_lighter"
38
37
  dark?: boolean
39
38
  data?: { [key: string]: string }
40
39
  enableToggleExpansion?: "all" | "header" | "none"
@@ -72,7 +71,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
72
71
  children,
73
72
  className,
74
73
  columnDefinitions,
75
- columnGroupBorderColor,
76
74
  dark = false,
77
75
  data = {},
78
76
  enableToggleExpansion = "header",
@@ -241,7 +239,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
241
239
  'advanced-table-allow-fullscreen': allowFullScreen
242
240
  },
243
241
  {'advanced-table-sticky-left-columns': stickyLeftColumn && stickyLeftColumn.length > 0},
244
- columnGroupBorderColor ? `column-group-border-${columnGroupBorderColor}` : '',
245
242
  globalProps(props),
246
243
  className
247
244
  );
@@ -285,7 +282,6 @@ const AdvancedTable = (props: AdvancedTableProps) => {
285
282
  {renderFullscreenHeader()}
286
283
  <AdvancedTableProvider
287
284
  columnDefinitions={columnDefinitions}
288
- columnGroupBorderColor={columnGroupBorderColor}
289
285
  enableToggleExpansion={enableToggleExpansion}
290
286
  enableVirtualization={virtualizedRows}
291
287
  expandByDepth={expandByDepth}
@@ -338,7 +334,7 @@ const AdvancedTable = (props: AdvancedTableProps) => {
338
334
  </Table>
339
335
  </React.Fragment>
340
336
  </AdvancedTableProvider>
341
-
337
+
342
338
  </div>
343
339
  {/* Bottom Pagination */}
344
340
  {pagination && (
@@ -7,9 +7,6 @@ module Playbook
7
7
  default: []
8
8
  prop :column_definitions, type: Playbook::Props::Array,
9
9
  default: []
10
- prop :column_group_border_color, type: Playbook::Props::Enum,
11
- values: %w[text_lt_default text_lt_light text_lt_lighter text_dk_default text_dk_light text_dk_lighter none],
12
- default: "none"
13
10
  prop :enable_toggle_expansion, type: Playbook::Props::Enum,
14
11
  values: %w[all header none],
15
12
  default: "header"
@@ -27,9 +24,7 @@ module Playbook
27
24
  default: false
28
25
 
29
26
  def classname
30
- additional_classes = [responsive_classname, max_height_classname]
31
- additional_classes << "column-group-border-#{column_group_border_color}" if column_group_border_color != "none"
32
- generate_classname("pb_advanced_table", *additional_classes, separator: " ")
27
+ generate_classname("pb_advanced_table", responsive_classname, max_height_classname, separator: " ")
33
28
  end
34
29
 
35
30
  def responsive_classname
@@ -1,3 +1,9 @@
1
+ **BETA VERSION**
2
+ This kit's Rails version is currently under development. Some features may not work as expected, and breaking changes may still occur; use with caution.
3
+ <br />
4
+ <br />
5
+ <br />
6
+
1
7
  The AdvancedTable kit accepts tree data and automatically renders expansion controls for nested subrows, to any depth, based on the data it is given. In it's simplest form, __the kit has two required props__:
2
8
 
3
9
  ### table_data
@@ -2,7 +2,7 @@ import React from "react"
2
2
  import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data_no_subrows.json"
4
4
 
5
- const AdvancedTableSelectableRowsNoSubrowsReact = (props) => {
5
+ const AdvancedTableSelectableRowsNoSubrows = (props) => {
6
6
  const columnDefinitions = [
7
7
  {
8
8
  accessor: "year",
@@ -49,4 +49,4 @@ const AdvancedTableSelectableRowsNoSubrowsReact = (props) => {
49
49
  )
50
50
  }
51
51
 
52
- export default AdvancedTableSelectableRowsNoSubrowsReact
52
+ export default AdvancedTableSelectableRowsNoSubrows
@@ -1,5 +1 @@
1
- `selectable_rows` can also be used with tables without nested row data. Set `enable_toggle_expansion: none` to adjust the Advanced Table styling to fit a table without subrows.
2
-
3
- The data attribute `data-selected-rows` on the parent `pb_advanced_table` div will update dynamically with each selection to show an array of ids corresponding to the current selection.
4
-
5
- __NOTE__: Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
1
+ `selectable_rows` can also be used with tables without nested row data. Set `enable_toggle_expansion: none` to adjust the Advanced Table styling to fit a table without subrows.
@@ -2,6 +2,5 @@
2
2
 
3
3
  When a parent row is clicked, it will check all nested children rows, Children rows can be manually checked or unchecked as well.
4
4
 
5
- The data attribute `data-selected-rows` on the parent `pb_advanced_table` div will update dynamically with each selection to show an array of ids corresponding to the current selection.
6
-
7
- __NOTE__: Each object within the `table_data` Array must contain a unique id in order to attach an id to all Rows for this to function.
5
+ __ALERT TO DEVS__: UPDATE THIS PARAGRAPH IN THE FOLLOW UP STORY WHEN CHECKBOX FUNCTIONALITY IS SET PLEASE
6
+ The `onRowSelectionChange` prop returns an array of ids of all Rows that have been selected. Open the console on this example and check and uncheck checkboxes to see this is action! __NOTE__: Each object within the `tableData`Array must contain a unique id in order to attach an id to all Rows for this to function.
@@ -12,9 +12,9 @@ examples:
12
12
  - advanced_table_custom_cell_rails: Custom Components for Cells
13
13
  - advanced_table_column_headers: Multi-Header Columns
14
14
  - advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
15
- - advanced_table_column_border_color_rails: Column Group Border Color
16
- - advanced_table_selectable_rows_rails: Selectable Rows
17
- - advanced_table_selectable_rows_no_subrows_rails: Selectable Rows (No Subrows)
15
+ # - advanced_table_selectable_rows: Selectable Rows
16
+ # - advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
17
+
18
18
 
19
19
  react:
20
20
  - advanced_table_default: Default (Required Props)
@@ -39,11 +39,10 @@ examples:
39
39
  - advanced_table_column_headers: Multi-Header Columns
40
40
  - advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
41
41
  - advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
42
- - advanced_table_column_border_color: Column Group Border Color
43
42
  # - advanced_table_no_subrows: Table with No Subrows
44
43
  - advanced_table_selectable_rows: Selectable Rows
45
- - advanced_table_selectable_rows_no_subrows_react: Selectable Rows (No Subrows)
44
+ - advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
46
45
  - advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
47
46
  - advanced_table_selectable_rows_header: Selectable Rows (No Actions Bar)
48
47
  - advanced_table_inline_editing: Inline Cell Editing
49
- - advanced_table_fullscreen: Fullscreen
48
+ - advanced_table_fullscreen: Fullscreen
@@ -15,7 +15,7 @@ export { default as AdvancedTablePaginationWithProps } from './_advanced_table_p
15
15
  export { default as AdvancedTableColumnHeaders } from './_advanced_table_column_headers.jsx'
16
16
  export { default as AdvancedTableColumnHeadersMultiple } from './_advanced_table_column_headers_multiple.jsx'
17
17
  export { default as AdvancedTableSelectableRows } from './_advanced_table_selectable_rows.jsx'
18
- export { default as AdvancedTableSelectableRowsNoSubrowsReact } from './_advanced_table_selectable_rows_no_subrows_react.jsx'
18
+ export { default as AdvancedTableSelectableRowsNoSubrows } from './_advanced_table_selectable_rows_no_subrows.jsx'
19
19
  export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.jsx'
20
20
  export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
21
21
  export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
@@ -26,5 +26,4 @@ export { default as AdvancedTableFullscreen } from './_advanced_table_fullscreen
26
26
  export { default as AdvancedTableStickyColumns } from './_advanced_table_sticky_columns.jsx'
27
27
  export { default as AdvancedTableStickyHeader } from './_advanced_table_sticky_header.jsx'
28
28
  export { default as AdvancedTableStickyColumnsAndHeader } from './_advanced_table_sticky_columns_and_header.jsx'
29
- export { default as AdvancedTableExpandByDepth } from './_advanced_table_expand_by_depth.jsx'
30
- export { default as AdvancedTableColumnBorderColor} from './_advanced_table_column_border_color.jsx'
29
+ export { default as AdvancedTableExpandByDepth } from './_advanced_table_expand_by_depth.jsx'