playbook_ui 14.21.2.pre.alpha.PLAY22558410 → 14.21.2

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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +2 -5
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +4 -20
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +5 -25
  5. data/app/pb_kits/playbook/pb_advanced_table/Components/VirtualizedTableView.tsx +16 -36
  6. data/app/pb_kits/playbook/pb_advanced_table/Context/AdvancedTableContext.tsx +5 -18
  7. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +17 -37
  8. data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +5 -30
  9. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +0 -3
  10. data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +40 -91
  11. data/app/pb_kits/playbook/pb_advanced_table/Utilities/CellRendererUtils.tsx +1 -4
  12. data/app/pb_kits/playbook/pb_advanced_table/Utilities/TableContainerStyles.ts +2 -3
  13. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +4 -49
  14. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +18 -36
  15. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +2 -105
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_subrow_headers.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.html.erb +1 -1
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.html.erb +1 -1
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +3 -5
  22. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx +2 -2
  23. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions_rails.html.erb +2 -3
  24. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +1 -1
  25. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -6
  26. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -4
  27. data/app/pb_kits/playbook/pb_advanced_table/flat_advanced_table.js +84 -60
  28. data/app/pb_kits/playbook/pb_advanced_table/index.js +213 -125
  29. data/app/pb_kits/playbook/pb_advanced_table/table_action_bar.html.erb +1 -1
  30. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +1 -1
  31. data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +0 -5
  32. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +2 -2
  33. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -33
  34. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +3 -3
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +4 -7
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.jsx +3 -6
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx +3 -6
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_rails.html.erb +3 -3
  39. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +3 -3
  40. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +4 -7
  41. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb +3 -3
  42. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx +4 -7
  43. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select.jsx +10 -19
  44. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display.jsx +10 -19
  45. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_display_rails.html.erb +10 -10
  46. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_rails.html.erb +10 -10
  47. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.html.erb +10 -10
  48. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_autocomplete.jsx +11 -20
  49. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.html.erb +3 -3
  50. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.jsx +8 -8
  51. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.html.erb +10 -10
  52. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx +14 -23
  53. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb +3 -3
  54. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx +3 -6
  55. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx +3 -6
  56. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.html.erb +3 -3
  57. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.html.erb +3 -3
  58. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subtle_variant.jsx +3 -6
  59. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.html.erb +3 -3
  60. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx +3 -3
  61. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.html.erb +4 -4
  62. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_with_subcomponents.jsx +4 -4
  63. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +4 -4
  64. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +4 -4
  65. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +3 -3
  66. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb +3 -3
  67. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb +3 -3
  68. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx +3 -3
  69. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +3 -3
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb +3 -3
  71. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx +3 -3
  72. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -3
  73. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +3 -6
  74. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search.jsx +3 -3
  75. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_search_rails.html.erb +3 -3
  76. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -4
  77. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -3
  78. data/app/pb_kits/playbook/pb_filter/Filter/index.tsx +0 -13
  79. data/app/pb_kits/playbook/pb_filter/_filter.scss +0 -4
  80. data/app/pb_kits/playbook/pb_filter/docs/example.yml +0 -1
  81. data/app/pb_kits/playbook/pb_filter/docs/index.js +0 -1
  82. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.html.erb +8 -8
  83. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_rails.md +1 -1
  84. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +12 -12
  85. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +2 -2
  86. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.html.erb +12 -12
  87. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_rails.md +2 -2
  88. data/app/pb_kits/playbook/pb_table/index.ts +4 -4
  89. data/app/pb_kits/playbook/pb_table/styles/_vertical_border.scss +0 -4
  90. data/dist/chunks/_typeahead-BlPRej0F.js +22 -0
  91. data/dist/chunks/_weekday_stacked-CzxoxxCR.js +45 -0
  92. data/dist/chunks/lazysizes-DHz07jlL.js +1 -0
  93. data/dist/chunks/lib-D4vXIZF5.js +29 -0
  94. data/dist/chunks/{pb_form_validation-BVF3TmcL.js → pb_form_validation-DyvJ8iPe.js} +1 -1
  95. data/dist/chunks/vendor.js +1 -1
  96. data/dist/playbook-doc.js +3 -3
  97. data/dist/playbook-rails-react-bindings.js +1 -1
  98. data/dist/playbook-rails.js +1 -1
  99. data/dist/playbook.css +1 -1
  100. data/lib/playbook/version.rb +2 -2
  101. metadata +7 -31
  102. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ColumnStylingHelper.ts +0 -15
  103. data/app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js +0 -36
  104. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +0 -51
  105. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -7
  106. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +0 -77
  107. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md +0 -1
  108. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb +0 -63
  109. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.md +0 -1
  110. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +0 -38
  111. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +0 -7
  112. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md +0 -3
  113. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +0 -64
  114. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md +0 -7
  115. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.html.erb +0 -52
  116. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.jsx +0 -99
  117. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_rails.md +0 -1
  118. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_react.md +0 -1
  119. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.html.erb +0 -28
  120. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +0 -47
  121. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_rails.md +0 -1
  122. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +0 -1
  123. data/app/pb_kits/playbook/pb_filter/Filter/FilterSection.tsx +0 -49
  124. data/app/pb_kits/playbook/pb_filter/Filter/FilterSidebar.tsx +0 -69
  125. data/app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx +0 -224
  126. data/dist/chunks/_typeahead-B80UsDrG.js +0 -22
  127. data/dist/chunks/_weekday_stacked-D1bqIne1.js +0 -45
  128. data/dist/chunks/lazysizes-B7xYodB-.js +0 -1
  129. data/dist/chunks/lib-CTkMyvfQ.js +0 -29
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.21.2"
5
- VERSION = "14.21.2.pre.alpha.PLAY22558410"
4
+ PREVIOUS_VERSION = "14.21.1"
5
+ VERSION = "14.21.2"
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.21.2.pre.alpha.PLAY22558410
4
+ version: 14.21.2
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-06-13 00:00:00.000000000 Z
12
+ date: 2025-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -274,7 +274,6 @@ files:
274
274
  - app/pb_kits/playbook/pb_advanced_table/Utilities/ActionBarAnimationHelper.ts
275
275
  - app/pb_kits/playbook/pb_advanced_table/Utilities/BrowserCheck.tsx
276
276
  - app/pb_kits/playbook/pb_advanced_table/Utilities/CellRendererUtils.tsx
277
- - app/pb_kits/playbook/pb_advanced_table/Utilities/ColumnStylingHelper.ts
278
277
  - app/pb_kits/playbook/pb_advanced_table/Utilities/ExpansionControlHelpers.tsx
279
278
  - app/pb_kits/playbook/pb_advanced_table/Utilities/IconHelpers.tsx
280
279
  - app/pb_kits/playbook/pb_advanced_table/Utilities/RowUtils.ts
@@ -286,7 +285,6 @@ files:
286
285
  - app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb
287
286
  - app/pb_kits/playbook/pb_advanced_table/advanced_table.rb
288
287
  - app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx
289
- - app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js
290
288
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb
291
289
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.md
292
290
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb
@@ -308,14 +306,6 @@ files:
308
306
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
309
307
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
310
308
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
311
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx
312
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
313
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
314
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.md
315
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.html.erb
316
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers_rails.md
317
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb
318
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md
319
309
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.jsx
320
310
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility.md
321
311
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_visibility_custom.jsx
@@ -337,7 +327,6 @@ files:
337
327
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx
338
328
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md
339
329
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx
340
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.md
341
330
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx
342
331
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.md
343
332
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx
@@ -357,8 +346,6 @@ files:
357
346
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
358
347
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
359
348
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
360
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx
361
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.md
362
349
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.html.erb
363
350
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_scrollbar_none.jsx
364
351
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
@@ -1390,10 +1377,6 @@ files:
1390
1377
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
1391
1378
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
1392
1379
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.md
1393
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.html.erb
1394
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options.jsx
1395
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_rails.md
1396
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_icon_options_react.md
1397
1380
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx
1398
1381
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.md
1399
1382
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb
@@ -1401,10 +1384,6 @@ files:
1401
1384
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
1402
1385
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx
1403
1386
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md
1404
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.html.erb
1405
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx
1406
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_rails.md
1407
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md
1408
1387
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx
1409
1388
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.md
1410
1389
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb
@@ -1483,8 +1462,6 @@ files:
1483
1462
  - app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx
1484
1463
  - app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx
1485
1464
  - app/pb_kits/playbook/pb_filter/Filter/FilterDouble.tsx
1486
- - app/pb_kits/playbook/pb_filter/Filter/FilterSection.tsx
1487
- - app/pb_kits/playbook/pb_filter/Filter/FilterSidebar.tsx
1488
1465
  - app/pb_kits/playbook/pb_filter/Filter/FilterSingle.tsx
1489
1466
  - app/pb_kits/playbook/pb_filter/Filter/FiltersPopover.tsx
1490
1467
  - app/pb_kits/playbook/pb_filter/Filter/ResultsCount.tsx
@@ -1516,7 +1493,6 @@ files:
1516
1493
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.jsx
1517
1494
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_rails.md
1518
1495
  - app/pb_kits/playbook/pb_filter/docs/_filter_popover_props_react.md
1519
- - app/pb_kits/playbook/pb_filter/docs/_filter_sidebar.jsx
1520
1496
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
1521
1497
  - app/pb_kits/playbook/pb_filter/docs/_filter_single.jsx
1522
1498
  - app/pb_kits/playbook/pb_filter/docs/_filter_within_turbo_frames.html.erb
@@ -3633,11 +3609,11 @@ files:
3633
3609
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3634
3610
  - app/pb_kits/playbook/utilities/text.ts
3635
3611
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3636
- - dist/chunks/_typeahead-B80UsDrG.js
3637
- - dist/chunks/_weekday_stacked-D1bqIne1.js
3638
- - dist/chunks/lazysizes-B7xYodB-.js
3639
- - dist/chunks/lib-CTkMyvfQ.js
3640
- - dist/chunks/pb_form_validation-BVF3TmcL.js
3612
+ - dist/chunks/_typeahead-BlPRej0F.js
3613
+ - dist/chunks/_weekday_stacked-CzxoxxCR.js
3614
+ - dist/chunks/lazysizes-DHz07jlL.js
3615
+ - dist/chunks/lib-D4vXIZF5.js
3616
+ - dist/chunks/pb_form_validation-DyvJ8iPe.js
3641
3617
  - dist/chunks/vendor.js
3642
3618
  - dist/menu.yml
3643
3619
  - dist/playbook-doc.js
@@ -1,15 +0,0 @@
1
- export const findColumnDefByAccessor = (
2
- defs: any[],
3
- targetAccessor: string
4
- ): any | undefined => {
5
- for (const def of defs) {
6
- if (def.accessor === targetAccessor) {
7
- return def;
8
- }
9
- if (Array.isArray(def.columns) && def.columns.length) {
10
- const found = findColumnDefByAccessor(def.columns, targetAccessor);
11
- if (found) return found;
12
- }
13
- }
14
- return undefined;
15
- };
@@ -1,36 +0,0 @@
1
- function showActionBar(actionBar, selectedCount) {
2
- // Show action bar directly
3
- actionBar.style.height = "auto";
4
- actionBar.style.overflow = "visible";
5
- actionBar.style.opacity = "1";
6
- actionBar.style.transitionProperty = "all";
7
- actionBar.style.transitionTimingFunction = "ease-in-out";
8
- actionBar.classList.remove("p_none");
9
- actionBar.classList.add("p_xs", "is-visible", "show-action-card");
10
-
11
- // Update the count
12
- const countElement = actionBar.querySelector(".selected-count");
13
- if (countElement) {
14
- countElement.textContent = `${selectedCount} Selected`;
15
- }
16
- }
17
-
18
- function hideActionBar(actionBar) {
19
- // Hide action bar directly
20
- actionBar.style.height = "0px";
21
- actionBar.style.overflow = "hidden";
22
- actionBar.style.opacity = "0";
23
- actionBar.classList.add("p_none");
24
- actionBar.classList.remove("p_xs", "is-visible", "show-action-card");
25
- }
26
-
27
- export function updateSelectionActionBar(table, selectedCount) {
28
- const actionBar = table.querySelector(".row-selection-actions-card");
29
- if (!actionBar) return;
30
-
31
- if (selectedCount > 0) {
32
- showActionBar(actionBar, selectedCount);
33
- } else {
34
- hideActionBar(actionBar);
35
- }
36
- }
@@ -1,51 +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 AdvancedTableColumnStyling = (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
- columnStyling:{headerAlignment: "left", cellAlignment: "left"},
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- columnStyling:{headerAlignment: "center", cellAlignment: "center"},
21
- },
22
- {
23
- accessor: "attendanceRate",
24
- label: "Attendance Rate",
25
- },
26
- {
27
- accessor: "completedClasses",
28
- label: "Completed Classes",
29
- },
30
- {
31
- accessor: "classCompletionRate",
32
- label: "Class Completion Rate",
33
- },
34
- {
35
- accessor: "graduatedStudents",
36
- label: "Graduated Students",
37
- },
38
- ]
39
-
40
- return (
41
- <div>
42
- <AdvancedTable
43
- columnDefinitions={columnDefinitions}
44
- tableData={MOCK_DATA}
45
- {...props}
46
- />
47
- </div>
48
- )
49
- }
50
-
51
- export default AdvancedTableColumnStyling
@@ -1,7 +0,0 @@
1
- The `columnStyling` prop is an optional item that can be used within `columnDefinitions` as shown in the code snippet below. It is an object that has 2 optional key/value pairs:
2
-
3
- 1) `headerAlignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
-
5
- 2) `cellAlignment`: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to `left`, `right` or `center`.
6
-
7
- `columnStyling` can be used within the columnDefinition of all the columns or some of them, as shown. Each column has its own individual control in this way.
@@ -1,77 +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 AdvancedTableColumnStylingColumnHeaders = (props) => {
6
- const columnDefinitions = [
7
- {
8
- accessor: "year",
9
- label: "Year",
10
- cellAccessors: ["quarter", "month", "day"],
11
- },
12
- {
13
- label: "Enrollment Data",
14
- columns: [
15
- {
16
- label: "Enrollment Stats",
17
- columns: [
18
- {
19
- accessor: "newEnrollments",
20
- label: "New Enrollments",
21
- columnStyling:{headerAlignment: "left", cellAlignment: "left"},
22
-
23
- },
24
- {
25
- accessor: "scheduledMeetings",
26
- label: "Scheduled Meetings",
27
- },
28
- ],
29
- },
30
- ],
31
- },
32
- {
33
- label: "Performance Data",
34
- columns: [
35
- {
36
- label: "Completion Metrics",
37
- columns: [
38
- {
39
- accessor: "completedClasses",
40
- label: "Completed Classes",
41
- columnStyling:{headerAlignment: "center", cellAlignment: "center"},
42
- },
43
- {
44
- accessor: "classCompletionRate",
45
- label: "Class Completion Rate",
46
- },
47
- ],
48
- },
49
- {
50
- label: "Attendance",
51
- columns: [
52
- {
53
- accessor: "attendanceRate",
54
- label: "Attendance Rate",
55
- },
56
- {
57
- accessor: "scheduledMeetings",
58
- label: "Scheduled Meetings",
59
- },
60
- ],
61
- },
62
- ],
63
- },
64
- ];
65
-
66
- return (
67
- <>
68
- <AdvancedTable
69
- columnDefinitions={columnDefinitions}
70
- tableData={MOCK_DATA}
71
- {...props}
72
- />
73
- </>
74
- );
75
- };
76
-
77
- export default AdvancedTableColumnStylingColumnHeaders
@@ -1 +0,0 @@
1
- `columnStyling` can also be used with the multi column logic. When used in this way, `columnStyling` must be used within the leaf column's columnDefinition as shown.
@@ -1,63 +0,0 @@
1
- <% column_definitions = [
2
- {
3
- accessor: "year",
4
- label: "Year",
5
- cellAccessors: ["quarter", "month", "day"],
6
- },
7
- {
8
- label: "Enrollment Data",
9
- columns: [
10
- {
11
- label: "Enrollment Stats",
12
- columns: [
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- column_styling:{header_alignment:"left", cell_alignment:"left"}
17
- },
18
- {
19
- accessor: "scheduledMeetings",
20
- label: "Scheduled Meetings",
21
- },
22
- ],
23
- },
24
- ],
25
- },
26
- {
27
- label: "Performance Data",
28
- columns: [
29
- {
30
- label: "Completion Metrics",
31
- columns: [
32
- {
33
- accessor: "completedClasses",
34
- label: "Completed Classes",
35
- column_styling:{header_alignment:"center", cell_alignment:"center"}
36
- },
37
- {
38
- accessor: "classCompletionRate",
39
- label: "Class Completion Rate",
40
- },
41
- ],
42
- },
43
- {
44
- label: "Attendance",
45
- columns: [
46
- {
47
- accessor: "attendanceRate",
48
- label: "Attendance Rate",
49
- },
50
- {
51
- accessor: "scheduledMeetings",
52
- label: "Scheduled Meetings",
53
- },
54
- ],
55
- },
56
- ],
57
- },
58
- ] %>
59
-
60
- <%= pb_rails("advanced_table", props: { id: "column-styling-multi", table_data: @table_data, column_definitions: column_definitions }) do %>
61
- <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
62
- <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions }) %>
63
- <% end %>
@@ -1 +0,0 @@
1
- `column_styling` can also be used with the multi column logic. When used in this way, `column_styling` must be used within the leaf column's column_definition as shown.
@@ -1,38 +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
- column_styling:{header_alignment:"left", cell_alignment:"left"}
11
- },
12
- {
13
- accessor: "scheduledMeetings",
14
- label: "Scheduled Meetings",
15
- column_styling:{header_alignment:"center", cell_alignment:"center"}
16
- },
17
- {
18
- accessor: "attendanceRate",
19
- label: "Attendance Rate",
20
- },
21
- {
22
- accessor: "completedClasses",
23
- label: "Completed Classes",
24
- },
25
- {
26
- accessor: "classCompletionRate",
27
- label: "Class Completion Rate",
28
- },
29
- {
30
- accessor: "graduatedStudents",
31
- label: "Graduated Students",
32
- }
33
- ] %>
34
-
35
- <%= pb_rails("advanced_table", props: { id: "column-styling", table_data: @table_data, column_definitions: column_definitions }) do %>
36
- <%= pb_rails("advanced_table/table_header", props: { column_definitions: column_definitions }) %>
37
- <%= pb_rails("advanced_table/table_body", props: { table_data: @table_data, column_definitions: column_definitions }) %>
38
- <% end %>
@@ -1,7 +0,0 @@
1
- The `column_styling` prop is an optional item that can be used within `column_definitions` as shown in the code snippet below. It is an object that has 2 optional key/value pairs:
2
-
3
- 1) `header_alignment`: This will allow you to control alignment of header content which is set to right aligned by default. you can set this to `left`, `right` or `center`.
4
-
5
- 2) `cell_alignment`: This will allow you to control alignment of content within all cells in the given column. This is set to right aligned by default. you can set this to `left`, `right` or `center`.
6
-
7
- `column_styling` can be used within the column_definition of all the columns or some of them, as shown. Each column has its own individual control in this way.
@@ -1,3 +0,0 @@
1
- The `virtualizedRows` boolean prop enables the rendering of a virtualized table using [Tanstack's Virtualizer Library](https://tanstack.com/virtual/v3/docs/api/virtualizer) with infinite scroll capabilities for large data sets.
2
-
3
- **Note:** Not all Advanced Table props work perfectly with the Virtualized Table - for complex table configurations with many added features or controls consider using the [Pagination](https://playbook.powerapp.cloud/kits/advanced_table/react#pagination) version instead. Additionally, it is a known issue that due to the use of absolute positioning for the virtualized header, it does not render in Safari.
@@ -1,64 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
4
- import { colors } from "playbook-ui"
5
-
6
- const AdvancedTableRowStyling = (props) => {
7
- const columnDefinitions = [
8
- {
9
- accessor: "year",
10
- label: "Year",
11
- cellAccessors: ["quarter", "month", "day"],
12
- },
13
- {
14
- accessor: "newEnrollments",
15
- label: "New Enrollments",
16
- },
17
- {
18
- accessor: "scheduledMeetings",
19
- label: "Scheduled Meetings",
20
- },
21
- {
22
- accessor: "attendanceRate",
23
- label: "Attendance Rate",
24
- },
25
- {
26
- accessor: "completedClasses",
27
- label: "Completed Classes",
28
- },
29
- {
30
- accessor: "classCompletionRate",
31
- label: "Class Completion Rate",
32
- },
33
- {
34
- accessor: "graduatedStudents",
35
- label: "Graduated Students",
36
- },
37
- ]
38
-
39
- const rowStyling = [
40
- {
41
- rowId: "1",
42
- backgroundColor: colors.warning,
43
- },
44
- {
45
- rowId: "8",
46
- backgroundColor: colors.category_1,
47
- fontColor: colors.white,
48
- expandButtonColor: colors.white,
49
- },
50
- ];
51
-
52
- return (
53
- <div>
54
- <AdvancedTable
55
- columnDefinitions={columnDefinitions}
56
- rowStyling={rowStyling}
57
- tableData={MOCK_DATA}
58
- {...props}
59
- />
60
- </div>
61
- )
62
- }
63
-
64
- export default AdvancedTableRowStyling
@@ -1,7 +0,0 @@
1
- The `rowStyling` prop can be used in conjunction with row ids to control certain styling options on individual rows. Currently, `rowStyling` gives you 3 optional controls:
2
-
3
- - `backgroundColor` : use this to control the background color of the row
4
- - `fontColor`: use this to control font color for each row if needed, for example if using a darker background color.
5
- - `expandButtonColor`: use this to control the color of the expand icon if needed, for example if using a darker background color.
6
-
7
- **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.
@@ -1,52 +0,0 @@
1
- <%
2
- options = [
3
- { label: "Item 1", value: "item-1", id: "1" },
4
- { label: "Item 2", value: "item-2", id: "2" },
5
- { label: "Item 3", value: "item-3", id: "3" }
6
- ]
7
- %>
8
-
9
- <%= pb_rails("dropdown", props: { label: "Multiple Icons", options: options }) do %>
10
- <%= pb_rails("dropdown/dropdown_trigger") %>
11
- <%= pb_rails("dropdown/dropdown_container") do %>
12
- <% options.each do |option| %>
13
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
14
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
15
- <%= pb_rails("flex") do %>
16
- <%= pb_rails("icon", props: { icon: "calendar", padding_right: "xs" }) %>
17
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
18
- <% end %>
19
- <%= pb_rails("icon", props: { icon: "check" }) %>
20
- <% end %>
21
- <% end %>
22
- <% end %>
23
- <% end %>
24
- <% end %>
25
-
26
- <%= pb_rails("dropdown", props: { label: "Icon on Left", options: options, padding_y: "md" }) do %>
27
- <%= pb_rails("dropdown/dropdown_trigger") %>
28
- <%= pb_rails("dropdown/dropdown_container") do %>
29
- <% options.each do |option| %>
30
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
31
- <%= pb_rails("flex", props: { align: "center" }) do %>
32
- <%= pb_rails("icon", props: { icon: "calendar", padding_right: "xs" }) %>
33
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
34
- <% end %>
35
- <% end %>
36
- <% end %>
37
- <% end %>
38
- <% end %>
39
-
40
- <%= pb_rails("dropdown", props: { label: "Icon on Right", options: options }) do %>
41
- <%= pb_rails("dropdown/dropdown_trigger") %>
42
- <%= pb_rails("dropdown/dropdown_container") do %>
43
- <% options.each do |option| %>
44
- <%= pb_rails("dropdown/dropdown_option", props: { option: option }) do %>
45
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
46
- <%= pb_rails("body", props: { color: "default", text: option[:label] }) %>
47
- <%= pb_rails("icon", props: { icon: "check" }) %>
48
- <% end %>
49
- <% end %>
50
- <% end %>
51
- <% end %>
52
- <% end %>
@@ -1,99 +0,0 @@
1
- import React from 'react'
2
- import Dropdown from '../_dropdown'
3
-
4
- import Body from '../../pb_body/_body'
5
- import Flex from '../../pb_flex/_flex'
6
- import Icon from '../../pb_icon/_icon'
7
-
8
- const DropdownCustomIconOptions = (props) => {
9
-
10
- const options = [
11
- { label: "Item 1", value: "item-1", id: "1" },
12
- { label: "Item 2", value: "item-2", id: "2" },
13
- { label: "Item 3", value: "item-3", id: "3" },
14
- ]
15
-
16
-
17
- return (
18
- <div>
19
- <Dropdown label="Multiple Icons"
20
- options={options}
21
- {...props}
22
- >
23
- {options.map((option) => (
24
- <Dropdown.Option key={option.id}
25
- option={option}
26
- >
27
- <Flex align="center"
28
- justify="between"
29
- >
30
- <Flex align="center">
31
- <Icon icon="calendar"
32
- paddingRight="xs"
33
- {...props}
34
- />
35
- <Body color="default"
36
- text={option.label}
37
- {...props}
38
- />
39
- </Flex>
40
- <Icon icon="check"
41
- {...props}
42
- />
43
- </Flex>
44
- </Dropdown.Option>
45
- ))}
46
- </Dropdown>
47
-
48
- <Dropdown label="Icon on Left"
49
- options={options}
50
- paddingY="md"
51
- {...props}
52
- >
53
- {options.map((option) => (
54
- <Dropdown.Option key={option.id}
55
- option={option}
56
- >
57
- <Flex align="center">
58
- <Icon icon="calendar"
59
- paddingRight="xs"
60
- {...props}
61
- />
62
- <Body color="default"
63
- text={option.label}
64
- {...props}
65
- />
66
- </Flex>
67
- </Dropdown.Option>
68
- ))}
69
- </Dropdown>
70
-
71
- <Dropdown label="Icon on Right"
72
- options={options}
73
- {...props}
74
- >
75
- {options.map((option) => (
76
- <Dropdown.Option key={option.id}
77
- option={option}
78
- >
79
- <Flex align="center"
80
- justify="between"
81
- >
82
- <Flex align="center">
83
- <Body color="default"
84
- text={option.label}
85
- {...props}
86
- />
87
- </Flex>
88
- <Icon icon="check"
89
- {...props}
90
- />
91
- </Flex>
92
- </Dropdown.Option>
93
- ))}
94
- </Dropdown>
95
- </div>
96
- )
97
- }
98
-
99
- export default DropdownCustomIconOptions