playbook_ui 15.6.0.pre.alpha.PLAY2611selectinputoptions12951 → 15.6.0.pre.alpha.PLAY2686contactkittextonly13049
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_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_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +10 -8
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +0 -1
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +0 -3
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +51 -24
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +53 -19
- data/app/pb_kits/playbook/pb_contact/contact.rb +11 -1
- data/app/pb_kits/playbook/pb_contact/contact.test.js +76 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +33 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +46 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +2 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +2 -0
- data/app/pb_kits/playbook/pb_contact/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_contact/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +24 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +181 -3
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +316 -15
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +1 -1
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx +3 -3
- data/app/pb_kits/playbook/pb_table/_table.tsx +187 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +134 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +34 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +101 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +33 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +180 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +3 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +122 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +3 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_table/table.html.erb +68 -12
- data/app/pb_kits/playbook/pb_table/table.rb +22 -3
- data/app/pb_kits/playbook/pb_table/table.test.js +143 -0
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +3 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +60 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +118 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +1 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_timeline/item.rb +2 -0
- data/app/pb_kits/playbook/pb_timeline/label.html.erb +2 -1
- data/app/pb_kits/playbook/pb_timeline/label.rb +2 -0
- data/app/pb_kits/playbook/pb_timeline/subcomponents/Label.tsx +3 -0
- data/app/pb_kits/playbook/pb_timeline/timeline.test.js +51 -0
- data/app/pb_kits/playbook/tokens/_colors.scss +2 -1
- data/app/pb_kits/playbook/utilities/deprecated.ts +73 -0
- data/dist/chunks/_typeahead-CHwm9MTE.js +6 -0
- data/dist/chunks/lib-Cugvy62C.js +29 -0
- data/dist/chunks/vendor.js +3 -3
- 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/pb_kit_helper.rb +35 -0
- data/lib/playbook/version.rb +1 -1
- metadata +20 -4
- data/dist/chunks/_typeahead-BXM7QUuy.js +0 -6
- data/dist/chunks/lib-CgpqUb6l.js +0 -29
|
@@ -13,5 +13,40 @@ module Playbook
|
|
|
13
13
|
render kit.new(props, &block), &block
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
|
+
|
|
17
|
+
def deprecated_kit_warning(kit_name, message = nil)
|
|
18
|
+
# Skip in test and production environments
|
|
19
|
+
return "".html_safe if Rails.env.test? || Rails.env.production?
|
|
20
|
+
|
|
21
|
+
# Build the warning message
|
|
22
|
+
base_message = "PLAYBOOK DEPRECATION WARNING\\n ----------------------------\\n The \\\"#{kit_name}\\\" kit is deprecated and will be removed in a future version."
|
|
23
|
+
|
|
24
|
+
full_message = if message
|
|
25
|
+
"#{base_message} #{message}"
|
|
26
|
+
else
|
|
27
|
+
"#{base_message} Please migrate to the recommended alternative"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Escape the message for JavaScript
|
|
31
|
+
escaped_message = full_message.gsub("'", "\\\\'").gsub("\n", "\\n")
|
|
32
|
+
|
|
33
|
+
# Return a self-executing script that checks if we're already warned
|
|
34
|
+
# Uses client-side tracking to ensure one warning per page load
|
|
35
|
+
# Only shows warnings on localhost (matching React behavior)
|
|
36
|
+
script = "<script type=\"text/javascript\">\n"
|
|
37
|
+
script += "(function() {\n"
|
|
38
|
+
script += " var hostname = window.location.hostname;\n"
|
|
39
|
+
script += " var isLocalDev = hostname === 'localhost' || hostname === '127.0.0.1' || hostname.endsWith('.local') || hostname.includes('local.') || !hostname;\n"
|
|
40
|
+
script += " if (!isLocalDev) return;\n"
|
|
41
|
+
script += " if (!window.__PB_WARNED_KITS__) window.__PB_WARNED_KITS__ = new Set();\n"
|
|
42
|
+
script += " if (!window.__PB_WARNED_KITS__.has('#{kit_name}')) {\n"
|
|
43
|
+
script += " window.__PB_WARNED_KITS__.add('#{kit_name}');\n"
|
|
44
|
+
script += " console.warn('#{escaped_message}');\n"
|
|
45
|
+
script += " }\n"
|
|
46
|
+
script += "})();\n"
|
|
47
|
+
script += "</script>"
|
|
48
|
+
|
|
49
|
+
script.html_safe
|
|
50
|
+
end
|
|
16
51
|
end
|
|
17
52
|
end
|
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.6.0.pre.alpha.
|
|
4
|
+
version: 15.6.0.pre.alpha.PLAY2686contactkittextonly13049
|
|
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-
|
|
12
|
+
date: 2025-12-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -892,6 +892,10 @@ files:
|
|
|
892
892
|
- app/pb_kits/playbook/pb_contact/docs/_contact_default.md
|
|
893
893
|
- app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md
|
|
894
894
|
- app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md
|
|
895
|
+
- app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb
|
|
896
|
+
- app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx
|
|
897
|
+
- app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md
|
|
898
|
+
- app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md
|
|
895
899
|
- app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb
|
|
896
900
|
- app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx
|
|
897
901
|
- app/pb_kits/playbook/pb_contact/docs/_contact_with_detail_swift.md
|
|
@@ -3245,6 +3249,14 @@ files:
|
|
|
3245
3249
|
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx
|
|
3246
3250
|
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md
|
|
3247
3251
|
- app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md
|
|
3252
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx
|
|
3253
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md
|
|
3254
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb
|
|
3255
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md
|
|
3256
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx
|
|
3257
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md
|
|
3258
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb
|
|
3259
|
+
- app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md
|
|
3248
3260
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.html.erb
|
|
3249
3261
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx
|
|
3250
3262
|
- app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_rails.md
|
|
@@ -3429,6 +3441,9 @@ files:
|
|
|
3429
3441
|
- app/pb_kits/playbook/pb_timeline/docs/_description.md
|
|
3430
3442
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_default.html.erb
|
|
3431
3443
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_default.jsx
|
|
3444
|
+
- app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb
|
|
3445
|
+
- app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx
|
|
3446
|
+
- app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md
|
|
3432
3447
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.html.erb
|
|
3433
3448
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_vertical.jsx
|
|
3434
3449
|
- app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb
|
|
@@ -3825,6 +3840,7 @@ files:
|
|
|
3825
3840
|
- app/pb_kits/playbook/utilities/_truncate.scss
|
|
3826
3841
|
- app/pb_kits/playbook/utilities/_vertical_align.scss
|
|
3827
3842
|
- app/pb_kits/playbook/utilities/_width.scss
|
|
3843
|
+
- app/pb_kits/playbook/utilities/deprecated.ts
|
|
3828
3844
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_align_content.scss
|
|
3829
3845
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_align_items.scss
|
|
3830
3846
|
- app/pb_kits/playbook/utilities/flexbox_global_props/_align_self.scss
|
|
@@ -3864,9 +3880,9 @@ files:
|
|
|
3864
3880
|
- app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
|
|
3865
3881
|
- app/pb_kits/playbook/utilities/text.ts
|
|
3866
3882
|
- app/pb_kits/playbook/utilities/validEmojiChecker.ts
|
|
3867
|
-
- dist/chunks/_typeahead-
|
|
3883
|
+
- dist/chunks/_typeahead-CHwm9MTE.js
|
|
3868
3884
|
- dist/chunks/lazysizes-B7xYodB-.js
|
|
3869
|
-
- dist/chunks/lib-
|
|
3885
|
+
- dist/chunks/lib-Cugvy62C.js
|
|
3870
3886
|
- dist/chunks/vendor.js
|
|
3871
3887
|
- dist/menu.yml
|
|
3872
3888
|
- dist/playbook-rails-react-bindings.js
|