playbook_ui 15.3.0.pre.alpha.PLAY2407daterangeinlineshowcurrentyear12138 → 15.3.0.pre.alpha.PLAY2565formkitsubmitfix11681
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +1 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableActions.ts +3 -18
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +14 -71
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableHeader.tsx +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +3 -12
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -122
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.html.erb +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_background_control_rails.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.html.erb +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_rails.md +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +0 -28
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.md +2 -11
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.jsx +1 -9
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_padding_control.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +2 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx +0 -16
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +20 -90
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -31
- data/app/pb_kits/playbook/pb_background/background.html.erb +2 -10
- data/app/pb_kits/playbook/pb_background/docs/_background_category.md +1 -1
- data/app/pb_kits/playbook/pb_badge/_badge.tsx +1 -4
- data/app/pb_kits/playbook/pb_badge/badge.test.js +0 -13
- data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_light.md +1 -1
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +7 -20
- data/app/pb_kits/playbook/pb_currency/currency.rb +8 -35
- data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -47
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +1 -1
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +4 -16
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_quick_pick_styles.scss +30 -11
- data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.tsx +13 -20
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +4 -6
- data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js +0 -17
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_date_range_inline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +6 -111
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -5
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -5
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +2 -148
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.md +1 -1
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +1 -15
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +8 -9
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb +10 -11
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +1 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +1 -1
- data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.md +1 -1
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +14 -7
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +15 -6
- data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.md +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md +1 -1
- data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.md +1 -1
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +1 -1
- data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +34 -69
- data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_popover/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_popover/popover.test.js +0 -80
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_section_separator/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +0 -29
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +1 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_react.md +1 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sm.md +1 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_text_input/text_input.rb +2 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -7
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -105
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +9 -23
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +1 -33
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +1 -67
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +6 -68
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
- data/dist/chunks/{_line_graph-BRirnhGy.js → _line_graph-h5H-imfn.js} +1 -1
- data/dist/chunks/_typeahead-U8AjZIIW.js +6 -0
- data/dist/chunks/_weekday_stacked-CbCUYuuZ.js +37 -0
- data/dist/chunks/{lib-BXBHAZMY.js → lib-CGxXTQ75.js} +1 -1
- data/dist/chunks/{pb_form_validation-BZppqQZM.js → pb_form_validation-DebqlUKZ.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +8 -35
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.html.erb +0 -104
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.md +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js +0 -42
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.jsx +0 -38
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.md +0 -14
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb +0 -4
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.jsx +0 -43
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx +0 -18
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md +0 -4
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx +0 -18
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.jsx +0 -19
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.jsx +0 -38
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.md +0 -14
- data/app/pb_kits/playbook/pb_dropdown/quickpick/index.ts +0 -60
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +0 -68
- data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx +0 -89
- data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md +0 -4
- data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md +0 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb +0 -64
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx +0 -70
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md +0 -1
- data/dist/chunks/_typeahead-CFOqvZNu.js +0 -6
- data/dist/chunks/_weekday_stacked-DEkzyJsS.js +0 -37
- /data/app/pb_kits/playbook/pb_popover/docs/{_popover_append_to_rails.md → _popover_append_to.md} +0 -0
data/lib/playbook/version.rb
CHANGED
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: 15.3.0.pre.alpha.
|
|
4
|
+
version: 15.3.0.pre.alpha.PLAY2565formkitsubmitfix11681
|
|
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-
|
|
12
|
+
date: 2025-10-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -411,12 +411,9 @@ files:
|
|
|
411
411
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header.md
|
|
412
412
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.jsx
|
|
413
413
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header.md
|
|
414
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.html.erb
|
|
415
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_multi_header_rails.md
|
|
416
414
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.html.erb
|
|
417
415
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_with_custom_header_rails.md
|
|
418
416
|
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js
|
|
419
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js
|
|
420
417
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json
|
|
421
418
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_infinite_scroll.json
|
|
422
419
|
- app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_no_subrows.json
|
|
@@ -948,7 +945,6 @@ files:
|
|
|
948
945
|
- app/pb_kits/playbook/pb_currency/docs/_currency_unstyled.md
|
|
949
946
|
- app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb
|
|
950
947
|
- app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx
|
|
951
|
-
- app/pb_kits/playbook/pb_currency/docs/_currency_variants.md
|
|
952
948
|
- app/pb_kits/playbook/pb_currency/docs/_description.md
|
|
953
949
|
- app/pb_kits/playbook/pb_currency/docs/example.yml
|
|
954
950
|
- app/pb_kits/playbook/pb_currency/docs/index.js
|
|
@@ -1006,8 +1002,6 @@ files:
|
|
|
1006
1002
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb
|
|
1007
1003
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx
|
|
1008
1004
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md
|
|
1009
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.jsx
|
|
1010
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_and_dropdown_range.md
|
|
1011
1005
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_anti_patterns.html.erb
|
|
1012
1006
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb
|
|
1013
1007
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx
|
|
@@ -1114,9 +1108,6 @@ files:
|
|
|
1114
1108
|
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx
|
|
1115
1109
|
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md
|
|
1116
1110
|
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md
|
|
1117
|
-
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb
|
|
1118
|
-
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.jsx
|
|
1119
|
-
- app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.md
|
|
1120
1111
|
- app/pb_kits/playbook/pb_date_range_inline/docs/_description.md
|
|
1121
1112
|
- app/pb_kits/playbook/pb_date_range_inline/docs/example.yml
|
|
1122
1113
|
- app/pb_kits/playbook/pb_date_range_inline/docs/index.js
|
|
@@ -1374,14 +1365,6 @@ files:
|
|
|
1374
1365
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_custom_options.jsx
|
|
1375
1366
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.html.erb
|
|
1376
1367
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_multi_select_with_default.jsx
|
|
1377
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.jsx
|
|
1378
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick.md
|
|
1379
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.jsx
|
|
1380
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_default_dates.md
|
|
1381
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.jsx
|
|
1382
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_range_end.md
|
|
1383
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.jsx
|
|
1384
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers.md
|
|
1385
1368
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb
|
|
1386
1369
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx
|
|
1387
1370
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
|
|
@@ -1446,7 +1429,6 @@ files:
|
|
|
1446
1429
|
- app/pb_kits/playbook/pb_dropdown/hooks/useHandleOnKeydown.tsx
|
|
1447
1430
|
- app/pb_kits/playbook/pb_dropdown/index.js
|
|
1448
1431
|
- app/pb_kits/playbook/pb_dropdown/keyboard_accessibility.js
|
|
1449
|
-
- app/pb_kits/playbook/pb_dropdown/quickpick/index.ts
|
|
1450
1432
|
- app/pb_kits/playbook/pb_dropdown/scss_partials/_dropdown_animation.scss
|
|
1451
1433
|
- app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownContainer.tsx
|
|
1452
1434
|
- app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx
|
|
@@ -2655,9 +2637,7 @@ files:
|
|
|
2655
2637
|
- app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.html.erb
|
|
2656
2638
|
- app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx
|
|
2657
2639
|
- app/pb_kits/playbook/pb_popover/docs/_popover_append_to.html.erb
|
|
2658
|
-
- app/pb_kits/playbook/pb_popover/docs/_popover_append_to.
|
|
2659
|
-
- app/pb_kits/playbook/pb_popover/docs/_popover_append_to_rails.md
|
|
2660
|
-
- app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md
|
|
2640
|
+
- app/pb_kits/playbook/pb_popover/docs/_popover_append_to.md
|
|
2661
2641
|
- app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb
|
|
2662
2642
|
- app/pb_kits/playbook/pb_popover/docs/_popover_close.jsx
|
|
2663
2643
|
- app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb
|
|
@@ -3197,10 +3177,6 @@ files:
|
|
|
3197
3177
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
|
3198
3178
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
|
|
3199
3179
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
|
|
3200
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb
|
|
3201
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx
|
|
3202
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md
|
|
3203
|
-
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md
|
|
3204
3180
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
|
|
3205
3181
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
|
3206
3182
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
|
|
@@ -3594,9 +3570,6 @@ files:
|
|
|
3594
3570
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx
|
|
3595
3571
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx
|
|
3596
3572
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx
|
|
3597
|
-
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb
|
|
3598
|
-
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx
|
|
3599
|
-
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md
|
|
3600
3573
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb
|
|
3601
3574
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx
|
|
3602
3575
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb
|
|
@@ -3817,13 +3790,13 @@ files:
|
|
|
3817
3790
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
|
3818
3791
|
- app/pb_kits/playbook/utilities/text.ts
|
|
3819
3792
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
|
3820
|
-
- dist/chunks/_line_graph-
|
|
3821
|
-
- dist/chunks/_typeahead-
|
|
3822
|
-
- dist/chunks/_weekday_stacked-
|
|
3793
|
+
- dist/chunks/_line_graph-h5H-imfn.js
|
|
3794
|
+
- dist/chunks/_typeahead-U8AjZIIW.js
|
|
3795
|
+
- dist/chunks/_weekday_stacked-CbCUYuuZ.js
|
|
3823
3796
|
- dist/chunks/componentRegistry-DzmmLR2x.js
|
|
3824
3797
|
- dist/chunks/lazysizes-B7xYodB-.js
|
|
3825
|
-
- dist/chunks/lib-
|
|
3826
|
-
- dist/chunks/pb_form_validation-
|
|
3798
|
+
- dist/chunks/lib-CGxXTQ75.js
|
|
3799
|
+
- dist/chunks/pb_form_validation-DebqlUKZ.js
|
|
3827
3800
|
- dist/chunks/vendor.js
|
|
3828
3801
|
- dist/menu.yml
|
|
3829
3802
|
- dist/playbook-doc.js
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
column_definitions = [
|
|
3
|
-
{
|
|
4
|
-
accessor: "year",
|
|
5
|
-
label: "Year",
|
|
6
|
-
id: "year",
|
|
7
|
-
cellAccessors: ["quarter", "month", "day"],
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
label: "Enrollment Data",
|
|
11
|
-
id: "enrollmentData",
|
|
12
|
-
header: ->(cell, label) {
|
|
13
|
-
capture do
|
|
14
|
-
pb_rails("flex", props: { align_items: "center", justify_content: "center" }) do
|
|
15
|
-
pb_rails("caption", props: { margin_right: "xs", text: "Enrollment Data" }) +
|
|
16
|
-
pb_rails("icon", props: { id: "tooltip-interact-multi", icon: "info", size: "xs", cursor: "pointer" }) +
|
|
17
|
-
pb_rails("tooltip", props: {
|
|
18
|
-
trigger_element_id: "tooltip-interact-multi",
|
|
19
|
-
tooltip_id: "example-custom-tooltip-multi",
|
|
20
|
-
position: "top",
|
|
21
|
-
z_index: "10"
|
|
22
|
-
}) do
|
|
23
|
-
"Whoa. I'm a Tooltip"
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
},
|
|
28
|
-
columns: [
|
|
29
|
-
{
|
|
30
|
-
label: "Enrollment Stats",
|
|
31
|
-
id: "enrollmentStats",
|
|
32
|
-
columns: [
|
|
33
|
-
{
|
|
34
|
-
accessor: "newEnrollments",
|
|
35
|
-
id: "newEnrollments",
|
|
36
|
-
label: "New Enrollments",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
accessor: "scheduledMeetings",
|
|
40
|
-
id: "scheduledMeetings",
|
|
41
|
-
label: "Scheduled Meetings",
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
label: "Performance Data",
|
|
49
|
-
id: "performanceData",
|
|
50
|
-
columns: [
|
|
51
|
-
{
|
|
52
|
-
label: "Completion Metrics",
|
|
53
|
-
id: "completionMetrics",
|
|
54
|
-
columns: [
|
|
55
|
-
{
|
|
56
|
-
accessor: "completedClasses",
|
|
57
|
-
id: "completedClasses",
|
|
58
|
-
label: "Completed Classes",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
accessor: "classCompletionRate",
|
|
62
|
-
id: "classCompletionRate",
|
|
63
|
-
label: "Class Completion Rate",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "Attendance",
|
|
69
|
-
id: "attendance",
|
|
70
|
-
header: ->(cell, label) {
|
|
71
|
-
capture do
|
|
72
|
-
pb_rails("flex", props: { align_items: "center", justify_content: "center" }) do
|
|
73
|
-
pb_rails("caption", props: { margin_right: "xs", text: "Attendance" }) +
|
|
74
|
-
pb_rails("icon", props: { id: "tooltip-interact-multi-2", icon: "info", size: "xs", cursor: "pointer" }) +
|
|
75
|
-
pb_rails("tooltip", props: {
|
|
76
|
-
trigger_element_id: "tooltip-interact-multi-2",
|
|
77
|
-
tooltip_id: "example-custom-tooltip-multi-2",
|
|
78
|
-
position: "top",
|
|
79
|
-
z_index: "10"
|
|
80
|
-
}) do
|
|
81
|
-
"Whoa. I'm a Tooltip Too!"
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
},
|
|
86
|
-
columns: [
|
|
87
|
-
{
|
|
88
|
-
accessor: "attendanceRate",
|
|
89
|
-
id: "attendanceRate",
|
|
90
|
-
label: "Attendance Rate",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
accessor: "scheduledMeetings",
|
|
94
|
-
id: "scheduledMeetings",
|
|
95
|
-
label: "Scheduled Meetings",
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
},
|
|
101
|
-
]
|
|
102
|
-
%>
|
|
103
|
-
|
|
104
|
-
<%= pb_rails("advanced_table", props: { id: "custom_header_multi_header_table", table_data: @table_data, column_definitions: column_definitions }) %>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The optional `header` item within `column_definitions` can also be used with multi headers as seen here.
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export const MOCK_DATA_INLINE_LOADING_EMPTY_CHILDREN = [
|
|
2
|
-
{
|
|
3
|
-
year: "2021",
|
|
4
|
-
quarter: null,
|
|
5
|
-
month: null,
|
|
6
|
-
day: null,
|
|
7
|
-
newEnrollments: "20",
|
|
8
|
-
scheduledMeetings: "10",
|
|
9
|
-
attendanceRate: "51%",
|
|
10
|
-
completedClasses: "3",
|
|
11
|
-
classCompletionRate: "33%",
|
|
12
|
-
graduatedStudents: "19",
|
|
13
|
-
children: [],
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
year: "2022",
|
|
17
|
-
quarter: null,
|
|
18
|
-
month: null,
|
|
19
|
-
day: null,
|
|
20
|
-
newEnrollments: "25",
|
|
21
|
-
scheduledMeetings: "17",
|
|
22
|
-
attendanceRate: "75%",
|
|
23
|
-
completedClasses: "5",
|
|
24
|
-
classCompletionRate: "45%",
|
|
25
|
-
graduatedStudents: "32",
|
|
26
|
-
children: [],
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
year: "2023",
|
|
30
|
-
quarter: null,
|
|
31
|
-
month: null,
|
|
32
|
-
day: null,
|
|
33
|
-
newEnrollments: "10",
|
|
34
|
-
scheduledMeetings: "15",
|
|
35
|
-
attendanceRate: "65%",
|
|
36
|
-
completedClasses: "4",
|
|
37
|
-
classCompletionRate: "49%",
|
|
38
|
-
graduatedStudents: "29",
|
|
39
|
-
children: [],
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
**NOTE:** The value passed into the `amount` prop can be either a string or numeric value.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Dropdown from "../../pb_dropdown/_dropdown";
|
|
3
|
-
import DatePicker from "../../pb_date_picker/_date_picker";
|
|
4
|
-
|
|
5
|
-
const DatePickerAndDropdownRange = (props) => {
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<Dropdown
|
|
9
|
-
controlsEndId="end-date-picker1"
|
|
10
|
-
controlsStartId="start-date-picker1"
|
|
11
|
-
id="dropdown-as-quickpick"
|
|
12
|
-
label="Date Range"
|
|
13
|
-
marginBottom="sm"
|
|
14
|
-
placeholder="Select a Date Range"
|
|
15
|
-
variant="quickpick"
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<DatePicker
|
|
20
|
-
label="Start Date"
|
|
21
|
-
pickerId="start-date-picker1"
|
|
22
|
-
placeholder="Select a Start Date"
|
|
23
|
-
syncStartWith="dropdown-as-quickpick"
|
|
24
|
-
{...props}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<DatePicker
|
|
28
|
-
label="End Date"
|
|
29
|
-
pickerId="end-date-picker1"
|
|
30
|
-
placeholder="Select an End Date"
|
|
31
|
-
syncEndWith="dropdown-as-quickpick"
|
|
32
|
-
{...props}
|
|
33
|
-
/>
|
|
34
|
-
</>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default DatePickerAndDropdownRange;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
You can link a Dropdown (`quickpick` variant) to standard DatePickers using the following props:
|
|
2
|
-
|
|
3
|
-
**For the Dropdown**:
|
|
4
|
-
`controlsStartId`: ID of the DatePicker that should receive the start date.
|
|
5
|
-
|
|
6
|
-
`controlsEndId`: ID of the DatePicker that should receive the end date.
|
|
7
|
-
|
|
8
|
-
When a quickpick option like “This Year” is selected, it automatically populates the linked start and end inputs.
|
|
9
|
-
|
|
10
|
-
**For the Start/End DatePickers**:
|
|
11
|
-
`syncStartWith`: ID of the quickpick this start date is synced to.
|
|
12
|
-
`syncEndWith`: ID of the quickpick this end date is synced to.
|
|
13
|
-
|
|
14
|
-
When a user manually edits the start or end date, it clears the selected quickpick to prevent conflicting values.
|
data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), size: "xs", show_current_year: true }) %>
|
|
2
|
-
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), show_current_year: true }) %>
|
|
3
|
-
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), align: "center", icon: true, size: "xs", show_current_year: true }) %>
|
|
4
|
-
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), align: "center", icon: true, show_current_year: true }) %>
|
data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.jsx
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import DateRangeInline from '../_date_range_inline'
|
|
3
|
-
|
|
4
|
-
const DateRangeInlineShowCurrentYear = (props) => {
|
|
5
|
-
return (
|
|
6
|
-
<div>
|
|
7
|
-
<DateRangeInline
|
|
8
|
-
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
9
|
-
showCurrentYear
|
|
10
|
-
size="xs"
|
|
11
|
-
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
12
|
-
{...props}
|
|
13
|
-
/>
|
|
14
|
-
<DateRangeInline
|
|
15
|
-
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
16
|
-
showCurrentYear
|
|
17
|
-
size="sm"
|
|
18
|
-
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
19
|
-
{...props}
|
|
20
|
-
/>
|
|
21
|
-
<DateRangeInline
|
|
22
|
-
align="center"
|
|
23
|
-
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
24
|
-
icon
|
|
25
|
-
showCurrentYear
|
|
26
|
-
size="xs"
|
|
27
|
-
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
28
|
-
{...props}
|
|
29
|
-
/>
|
|
30
|
-
<DateRangeInline
|
|
31
|
-
align="center"
|
|
32
|
-
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
33
|
-
icon
|
|
34
|
-
showCurrentYear
|
|
35
|
-
size="sm"
|
|
36
|
-
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
37
|
-
{...props}
|
|
38
|
-
/>
|
|
39
|
-
</div>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default DateRangeInlineShowCurrentYear
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
By default, the Date Range Inline kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting `showCurrentYear`/`show_current_year` to true as shown here.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Dropdown from '../../pb_dropdown/_dropdown'
|
|
3
|
-
|
|
4
|
-
const DropdownQuickpick = (props) => {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<Dropdown
|
|
9
|
-
label="Date Range"
|
|
10
|
-
onSelect={(selectedItem) => console.log(selectedItem)}
|
|
11
|
-
variant="quickpick"
|
|
12
|
-
{...props}
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default DropdownQuickpick
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Dropdown from '../../pb_dropdown/_dropdown'
|
|
3
|
-
|
|
4
|
-
const DropdownQuickpickDefaultDates = (props) => {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<Dropdown
|
|
9
|
-
defaultValue="This Year"
|
|
10
|
-
label="Date Range"
|
|
11
|
-
variant="quickpick"
|
|
12
|
-
{...props}
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default DropdownQuickpickDefaultDates
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
To set a default value for the Dropdown, you can use the label of the range you want set as default, for example "This Year", "Today", etc.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Dropdown from '../../pb_dropdown/_dropdown'
|
|
3
|
-
|
|
4
|
-
const DropdownQuickpickRangeEnd = (props) => {
|
|
5
|
-
|
|
6
|
-
return (
|
|
7
|
-
<div>
|
|
8
|
-
<Dropdown
|
|
9
|
-
label="Date Range"
|
|
10
|
-
onSelect={(selectedItem) => console.log(selectedItem)}
|
|
11
|
-
rangeEndsToday
|
|
12
|
-
variant="quickpick"
|
|
13
|
-
{...props}
|
|
14
|
-
/>
|
|
15
|
-
</div>
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default DropdownQuickpickRangeEnd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The optional `rangeEndsToday` prop can be used with the quickpick variant to set end date on all ranges that start with 'this' to today's date. For instance, by default 'This Year' will set end day to 12/31/(current year), but if `rangeEndsToday` prop is used, end date on that range will be today's date.
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Dropdown from "../../pb_dropdown/_dropdown";
|
|
3
|
-
import DatePicker from "../../pb_date_picker/_date_picker";
|
|
4
|
-
|
|
5
|
-
const DropdownQuickpickWithDatePickers = (props) => {
|
|
6
|
-
return (
|
|
7
|
-
<>
|
|
8
|
-
<Dropdown
|
|
9
|
-
controlsEndId="end-date-picker"
|
|
10
|
-
controlsStartId="start-date-picker"
|
|
11
|
-
id="dropdown-quickpick"
|
|
12
|
-
label="Range"
|
|
13
|
-
marginBottom="sm"
|
|
14
|
-
placeholder="Select a Date Range"
|
|
15
|
-
variant="quickpick"
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
<DatePicker
|
|
20
|
-
label="Start Date"
|
|
21
|
-
pickerId="start-date-picker"
|
|
22
|
-
placeholder="Select a Start Date"
|
|
23
|
-
syncStartWith="dropdown-quickpick"
|
|
24
|
-
{...props}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<DatePicker
|
|
28
|
-
label="End Date"
|
|
29
|
-
pickerId="end-date-picker"
|
|
30
|
-
placeholder="Select an End Date"
|
|
31
|
-
syncEndWith="dropdown-quickpick"
|
|
32
|
-
{...props}
|
|
33
|
-
/>
|
|
34
|
-
</>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default DropdownQuickpickWithDatePickers;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
You can link a Dropdown (`quickpick` variant) to standard DatePickers using the following props:
|
|
2
|
-
|
|
3
|
-
**For the Dropdown**:
|
|
4
|
-
`controlsStartId`: ID of the DatePicker that should receive the start date.
|
|
5
|
-
|
|
6
|
-
`controlsEndId`: ID of the DatePicker that should receive the end date.
|
|
7
|
-
|
|
8
|
-
When a quickpick option like “This Year” is selected, it automatically populates the linked start and end inputs.
|
|
9
|
-
|
|
10
|
-
**For the Start/End DatePickers**:
|
|
11
|
-
`syncStartWith`: ID of the quickpick this start date is synced to.
|
|
12
|
-
`syncEndWith`: ID of the quickpick this end date is synced to.
|
|
13
|
-
|
|
14
|
-
When a user manually edits the start or end date, it clears the selected quickpick to prevent conflicting values.
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// QuickPick default options for Dropdown
|
|
2
|
-
// This provides date range options similar to the DatePicker QuickPick functionality
|
|
3
|
-
|
|
4
|
-
import DateTime from '../../pb_kit/dateTime';
|
|
5
|
-
|
|
6
|
-
type QuickPickOption = {
|
|
7
|
-
label: string;
|
|
8
|
-
value: Date[];
|
|
9
|
-
formattedStartDate?: string;
|
|
10
|
-
formattedEndDate?: string;
|
|
11
|
-
id?: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// Helper to get QuickPick options with date ranges
|
|
15
|
-
const getQuickPickOptions = (rangeEndsToday = false): QuickPickOption[] => {
|
|
16
|
-
const today = new Date();
|
|
17
|
-
const yesterday = DateTime.getYesterdayDate(new Date());
|
|
18
|
-
|
|
19
|
-
const thisWeekStartDate = DateTime.getFirstDayOfWeek(new Date());
|
|
20
|
-
const thisWeekEndDate = rangeEndsToday ? new Date() : DateTime.getLastDayOfWeek(new Date());
|
|
21
|
-
const lastWeekStartDate = DateTime.getPreviousWeekStartDate(new Date());
|
|
22
|
-
const lastWeekEndDate = DateTime.getPreviousWeekEndDate(new Date());
|
|
23
|
-
|
|
24
|
-
const thisMonthStartDate = DateTime.getMonthStartDate(new Date());
|
|
25
|
-
const thisMonthEndDate = rangeEndsToday ? new Date() : DateTime.getMonthEndDate(new Date());
|
|
26
|
-
const lastMonthStartDate = DateTime.getPreviousMonthStartDate(new Date());
|
|
27
|
-
const lastMonthEndDate = DateTime.getPreviousMonthEndDate(new Date());
|
|
28
|
-
|
|
29
|
-
const thisQuarterStartDate = DateTime.getQuarterStartDate(new Date());
|
|
30
|
-
const thisQuarterEndDate = rangeEndsToday ? new Date() : DateTime.getQuarterEndDate(new Date());
|
|
31
|
-
const lastQuarterStartDate = DateTime.getPreviousQuarterStartDate(new Date());
|
|
32
|
-
const lastQuarterEndDate = DateTime.getPreviousQuarterEndDate(new Date());
|
|
33
|
-
|
|
34
|
-
const thisYearStartDate = DateTime.getYearStartDate(new Date());
|
|
35
|
-
const thisYearEndDate = rangeEndsToday ? new Date() : DateTime.getYearEndDate(new Date());
|
|
36
|
-
const lastYearStartDate = DateTime.getPreviousYearStartDate(new Date());
|
|
37
|
-
const lastYearEndDate = DateTime.getPreviousYearEndDate(new Date());
|
|
38
|
-
|
|
39
|
-
const formatDate = (date: Date) => {
|
|
40
|
-
const day = String(date.getDate()).padStart(2, "0")
|
|
41
|
-
const month = String(date.getMonth() + 1).padStart(2, "0")
|
|
42
|
-
const year = date.getFullYear()
|
|
43
|
-
|
|
44
|
-
return `${month}/${day}/${year}`
|
|
45
|
-
}
|
|
46
|
-
return [
|
|
47
|
-
{ label: 'Today', value: [today, today], id: 'quickpick-today' },
|
|
48
|
-
{ label: 'Yesterday', value: [yesterday, yesterday], formattedStartDate: `${formatDate(yesterday)}`, formattedEndDate: `${formatDate(yesterday)}`, id: 'quickpick-yesterday' },
|
|
49
|
-
{ label: 'This Week', value: [thisWeekStartDate, thisWeekEndDate], formattedStartDate: `${formatDate(thisWeekStartDate)}`, formattedEndDate: `${formatDate(thisWeekEndDate)}`, id: 'quickpick-this-week' },
|
|
50
|
-
{ label: 'This Month', value: [thisMonthStartDate, thisMonthEndDate], formattedStartDate: `${formatDate(thisMonthStartDate)}`, formattedEndDate: `${formatDate(thisMonthEndDate)}`, id: 'quickpick-this-month' },
|
|
51
|
-
{ label: 'This Quarter', value: [thisQuarterStartDate, thisQuarterEndDate], formattedStartDate: `${formatDate(thisQuarterStartDate)}`, formattedEndDate: `${formatDate(thisQuarterEndDate)}`, id: 'quickpick-this-quarter' },
|
|
52
|
-
{ label: 'This Year', value: [thisYearStartDate, thisYearEndDate], formattedStartDate: `${formatDate(thisYearStartDate)}`, formattedEndDate: `${formatDate(thisYearEndDate)}`, id: 'quickpick-this-year' },
|
|
53
|
-
{ label: 'Last Week', value: [lastWeekStartDate, lastWeekEndDate], formattedStartDate: `${formatDate(lastWeekStartDate)}`, formattedEndDate: `${formatDate(lastWeekEndDate)}`, id: 'quickpick-last-week' },
|
|
54
|
-
{ label: 'Last Month', value: [lastMonthStartDate, lastMonthEndDate], formattedStartDate: `${formatDate(lastMonthStartDate)}`, formattedEndDate: `${formatDate(lastMonthEndDate)}`, id: 'quickpick-last-month' },
|
|
55
|
-
{ label: 'Last Quarter', value: [lastQuarterStartDate, lastQuarterEndDate], formattedStartDate: `${formatDate(lastQuarterStartDate)}`, formattedEndDate: `${formatDate(lastQuarterEndDate)}`, id: 'quickpick-last-quarter' },
|
|
56
|
-
{ label: 'Last Year', value: [lastYearStartDate, lastYearEndDate], formattedStartDate: `${formatDate(lastYearStartDate)}`, formattedEndDate: `${formatDate(lastYearEndDate)}`, id: 'quickpick-last-year' },
|
|
57
|
-
];
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export default getQuickPickOptions
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { PbReactPopover, CircleIconButton, Body, Flex } from "playbook-ui";
|
|
3
|
-
|
|
4
|
-
const PopoverAppendTo = (props) => {
|
|
5
|
-
const [showParentPopover, setShowParentPopover] = useState(false);
|
|
6
|
-
const [showSelectorPopover, setShowSelectorPopover] = useState(false);
|
|
7
|
-
|
|
8
|
-
const parentPopoverReference = (
|
|
9
|
-
<CircleIconButton
|
|
10
|
-
icon="info"
|
|
11
|
-
onClick={() => setShowParentPopover(!showParentPopover)}
|
|
12
|
-
variant="secondary"
|
|
13
|
-
/>
|
|
14
|
-
);
|
|
15
|
-
|
|
16
|
-
const selectorPopoverReference = (
|
|
17
|
-
<CircleIconButton
|
|
18
|
-
icon="info"
|
|
19
|
-
onClick={() => setShowSelectorPopover(!showSelectorPopover)}
|
|
20
|
-
variant="secondary"
|
|
21
|
-
/>
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<>
|
|
26
|
-
<Flex
|
|
27
|
-
marginBottom="md"
|
|
28
|
-
orientation="row"
|
|
29
|
-
vertical="center"
|
|
30
|
-
{...props}
|
|
31
|
-
>
|
|
32
|
-
<Body text="Click info for more details" />
|
|
33
|
-
|
|
34
|
-
<PbReactPopover
|
|
35
|
-
appendTo="parent"
|
|
36
|
-
offset
|
|
37
|
-
placement="top"
|
|
38
|
-
reference={parentPopoverReference}
|
|
39
|
-
show={showParentPopover}
|
|
40
|
-
{...props}
|
|
41
|
-
>
|
|
42
|
-
{'I\'m a popover. I have been appended to my parent element.'}
|
|
43
|
-
</PbReactPopover>
|
|
44
|
-
</Flex>
|
|
45
|
-
|
|
46
|
-
<Flex
|
|
47
|
-
orientation="row"
|
|
48
|
-
vertical="center"
|
|
49
|
-
{...props}
|
|
50
|
-
>
|
|
51
|
-
<Body text="Click info for more details" />
|
|
52
|
-
|
|
53
|
-
<PbReactPopover
|
|
54
|
-
appendTo=".kit-show-wrapper"
|
|
55
|
-
offset
|
|
56
|
-
placement="top"
|
|
57
|
-
reference={selectorPopoverReference}
|
|
58
|
-
show={showSelectorPopover}
|
|
59
|
-
{...props}
|
|
60
|
-
>
|
|
61
|
-
{'I\'m a popover. I have been appended to the .kit-show-wrapper.'}
|
|
62
|
-
</PbReactPopover>
|
|
63
|
-
</Flex>
|
|
64
|
-
</>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export default PopoverAppendTo;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
By default, the popover tooltip attaches to the `<body>`. To attach it elsewhere, use the `appendTo` prop. Set it to `"parent"` to place the tooltip inside its parent element, or pass any CSS selector (`#id` or `.class`) to specify a custom container.
|