playbook_ui 14.16.0.pre.alpha.PLAY1938completetooltipfloatinguitransition6830 → 14.16.0.pre.alpha.play1756pbcontenttag6933
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/_advanced_table.scss +34 -2
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +86 -84
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +10 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.html.erb +39 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.html.erb +33 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/index.js +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +4 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +19 -9
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +38 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +49 -37
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +39 -0
- data/app/pb_kits/playbook/pb_button/_button.scss +5 -5
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +34 -34
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +16 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +0 -11
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +0 -7
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +28 -24
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +3 -4
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +2 -3
- data/app/pb_kits/playbook/pb_form/pb_form_validation.js +1 -1
- data/app/pb_kits/playbook/pb_lightbox/hooks/useVisibility.js +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +2 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +29 -11
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb +4 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +2 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +4 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx +50 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx +59 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +76 -0
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +11 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +11 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +5 -0
- data/app/pb_kits/playbook/pb_table/table.test.js +17 -0
- data/app/pb_kits/playbook/pb_tooltip/index.js +1 -1
- data/app/pb_kits/playbook/pb_tooltip/tooltip.html.erb +2 -5
- data/app/pb_kits/playbook/pb_typeahead/index.ts +2 -2
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -5
- data/app/pb_kits/playbook/pb_user/user.html.erb +1 -6
- data/app/pb_kits/playbook/pb_user_badge/user_badge.html.erb +1 -6
- data/app/pb_kits/playbook/utilities/globalProps.ts +1 -1
- data/app/pb_kits/playbook/utilities/object.test.js +149 -1
- data/app/pb_kits/playbook/utilities/object.ts +124 -42
- data/dist/chunks/_typeahead-Djo6qCne.js +22 -0
- data/dist/chunks/_weekday_stacked-DIIHW0OV.js +45 -0
- data/dist/chunks/{lib-BgzBJfYr.js → lib-BGzBzFZX.js} +3 -3
- data/dist/chunks/{pb_form_validation-CJD-PyIw.js → pb_form_validation-BvNy9Bd6.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- 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/kit_base.rb +4 -4
- data/lib/playbook/version.rb +1 -1
- metadata +16 -8
- data/dist/chunks/_typeahead-BEyzuDQy.js +0 -22
- data/dist/chunks/_weekday_stacked-BWYgED9z.js +0 -45
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows.md → _advanced_table_selectable_rows_no_subrows_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows.md → _advanced_table_selectable_rows_react.md} +0 -0
data/lib/playbook/kit_base.rb
CHANGED
@@ -91,11 +91,11 @@ module Playbook
|
|
91
91
|
# rubocop:disable Layout/CommentIndentation
|
92
92
|
# pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
|
93
93
|
# The pb_content_tag generates HTML content tags for rails kits with flexible options.
|
94
|
-
# Modify a generated kit.html.erb file accordingly (the
|
94
|
+
# Modify a generated kit.html.erb file accordingly (the kit_base_default_options listed below no longer need to be explictly outlined in that file, only modifications).
|
95
95
|
# name - the first argument is for HTML tag. The default is :div.
|
96
96
|
# content_or_options_with_block - additional content or options for the tag (i.e., the customizations a dev adds to kit.html.erb).
|
97
97
|
# options - Within combined_options, the empty options hash allows for customizations to
|
98
|
-
# merge with the
|
98
|
+
# merge with the kit_base_default_options and combined_html_options.
|
99
99
|
# escape - set to true, this allows for HTML-escape.
|
100
100
|
# block - an optional block for content inside the tag.
|
101
101
|
# The return is a HTML tag that includes any provided customizations. If nothing is specified in kit.html.erb, the default shape is:
|
@@ -111,7 +111,7 @@ module Playbook
|
|
111
111
|
def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
|
112
112
|
combined_options = options
|
113
113
|
.merge(combined_html_options)
|
114
|
-
.merge(
|
114
|
+
.merge(kit_base_default_options.merge(content_or_options_with_block))
|
115
115
|
content_tag(name, combined_options, options, escape, &block)
|
116
116
|
end
|
117
117
|
# rubocop:enable Style/OptionalBooleanParameter
|
@@ -146,7 +146,7 @@ module Playbook
|
|
146
146
|
|
147
147
|
private
|
148
148
|
|
149
|
-
def
|
149
|
+
def kit_base_default_options
|
150
150
|
options = {
|
151
151
|
id: id,
|
152
152
|
data: data,
|
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: 14.16.0.pre.alpha.
|
4
|
+
version: 14.16.0.pre.alpha.play1756pbcontenttag6933
|
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-03-
|
12
|
+
date: 2025-03-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -326,14 +326,18 @@ files:
|
|
326
326
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.html.erb
|
327
327
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.jsx
|
328
328
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_responsive.md
|
329
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.html.erb
|
329
330
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.jsx
|
330
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.md
|
331
331
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.jsx
|
332
332
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_actions.md
|
333
333
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.jsx
|
334
334
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_header.md
|
335
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.html.erb
|
335
336
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.jsx
|
336
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/
|
337
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md
|
338
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_react.md
|
339
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md
|
340
|
+
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_react.md
|
337
341
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx
|
338
342
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md
|
339
343
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx
|
@@ -2856,6 +2860,10 @@ files:
|
|
2856
2860
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md
|
2857
2861
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.html.erb
|
2858
2862
|
- app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md
|
2863
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
2864
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md
|
2865
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx
|
2866
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md
|
2859
2867
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb
|
2860
2868
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx
|
2861
2869
|
- app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md
|
@@ -3452,11 +3460,11 @@ files:
|
|
3452
3460
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
3453
3461
|
- app/pb_kits/playbook/utilities/text.ts
|
3454
3462
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
3455
|
-
- dist/chunks/_typeahead-
|
3456
|
-
- dist/chunks/_weekday_stacked-
|
3463
|
+
- dist/chunks/_typeahead-Djo6qCne.js
|
3464
|
+
- dist/chunks/_weekday_stacked-DIIHW0OV.js
|
3457
3465
|
- dist/chunks/lazysizes-B7xYodB-.js
|
3458
|
-
- dist/chunks/lib-
|
3459
|
-
- dist/chunks/pb_form_validation-
|
3466
|
+
- dist/chunks/lib-BGzBzFZX.js
|
3467
|
+
- dist/chunks/pb_form_validation-BvNy9Bd6.js
|
3460
3468
|
- dist/chunks/vendor.js
|
3461
3469
|
- dist/menu.yml
|
3462
3470
|
- dist/playbook-doc.js
|