playbook_ui_docs 16.8.0.pre.alpha.PLAY2945selectformblankselection16424 → 16.8.0.pre.alpha.PLAY2966draggablemobile16518
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_draggable/docs/_draggable_with_list_rails.md +2 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md +3 -1
- data/app/pb_kits/playbook/pb_form/docs/example.yml +0 -1
- metadata +3 -4
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_select_examples.html.erb +0 -31
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2df1d1b8c8203ed71f852c595babd3c4321ab1937fef855dea4e820f4d31a52
|
|
4
|
+
data.tar.gz: 36b7990d2030503a3aede4537a87e122069e09e99021ab855f64c0533c44980a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5475ff18326174799475f411ac71f374dea0f36a424c1dc27e1a7c41cb13bcb2b4e6160f4849b4e155aa27ef9138484a0ce36e84f338c555ac9ca8ad97ffdd0
|
|
7
|
+
data.tar.gz: 82c782a1224003ba69832fc4445c629ea65ff80eb299c94cc30737cf1a668012fec2369f079f4577a5f7fb2c0b74d7651d7ee8722770e5154a5bb42bac17f714
|
|
@@ -3,3 +3,5 @@ For a simplified version of the Draggable API for the List kit, you can do the f
|
|
|
3
3
|
The List kit is optimized to work with the draggable kit. To enable drag, use the `enable_drag` prop on List kit with an array of the included items AND `drag_id` prop on ListItems. You will also need to include the `items` prop containing your array of listed items for the Draggable API.
|
|
4
4
|
|
|
5
5
|
An additional optional boolean prop (set to true by default) of `drag_handle` is also available on ListItem kit to show the drag handle icon.
|
|
6
|
+
|
|
7
|
+
On touch devices (phones and tablets), reordering is started from the grip handle only. Touch the grip and move slightly to drag; you do not need a long press. Touching and swiping the rest of the list row scrolls the page as usual. Keep `drag_handle` enabled on mobile so users have a clear drag target separate from scroll. Desktop mouse drag is unchanged.
|
|
@@ -2,4 +2,6 @@ For a simplified version of the Draggable API for the List kit, you can do the f
|
|
|
2
2
|
|
|
3
3
|
Use `DraggableProvider` and manage state as shown.
|
|
4
4
|
|
|
5
|
-
The List kit is optimized to work with the draggable kit. To enable drag, use the `enableDrag` prop on List kit AND `dragId` prop on ListItem. An additional optional boolean prop (set to true by default) of `dragHandle` is also available on
|
|
5
|
+
The List kit is optimized to work with the draggable kit. To enable drag, use the `enableDrag` prop on List kit AND `dragId` prop on ListItem. An additional optional boolean prop (set to true by default) of `dragHandle` is also available on ListItem to show the drag handle icon.
|
|
6
|
+
|
|
7
|
+
On touch devices (phones and tablets), reordering is started from the grip handle only. Touch the grip and move slightly to drag; you do not need a long press. Touching and swiping the rest of the list row scrolls the page as usual. Keep `dragHandle` enabled on mobile so users have a clear drag target separate from scroll. Desktop mouse drag is unchanged.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: playbook_ui_docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 16.8.0.pre.alpha.
|
|
4
|
+
version: 16.8.0.pre.alpha.PLAY2966draggablemobile16518
|
|
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: 2026-05-
|
|
12
|
+
date: 2026-05-20 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -1192,7 +1192,6 @@ files:
|
|
|
1192
1192
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb
|
|
1193
1193
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb
|
|
1194
1194
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.md
|
|
1195
|
-
- app/pb_kits/playbook/pb_form/docs/_form_form_with_select_examples.html.erb
|
|
1196
1195
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb
|
|
1197
1196
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.md
|
|
1198
1197
|
- app/pb_kits/playbook/pb_form/docs/_form_form_with_validation_msg.html.erb
|
|
@@ -2957,7 +2956,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
2957
2956
|
- !ruby/object:Gem::Version
|
|
2958
2957
|
version: '0'
|
|
2959
2958
|
requirements: []
|
|
2960
|
-
rubygems_version: 3.5.
|
|
2959
|
+
rubygems_version: 3.5.22
|
|
2961
2960
|
signing_key:
|
|
2962
2961
|
specification_version: 4
|
|
2963
2962
|
summary: Playbook Design System Docs
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
example_collection = [
|
|
3
|
-
OpenStruct.new(name: "Alabama", value: 1),
|
|
4
|
-
OpenStruct.new(name: "Alaska", value: 2),
|
|
5
|
-
OpenStruct.new(name: "Arizona", value: 3),
|
|
6
|
-
OpenStruct.new(name: "Arkansas", value: 4),
|
|
7
|
-
OpenStruct.new(name: "California", value: 5),
|
|
8
|
-
OpenStruct.new(name: "Colorado", value: 6),
|
|
9
|
-
OpenStruct.new(name: "Connecticut", value: 7),
|
|
10
|
-
OpenStruct.new(name: "Delaware", value: 8),
|
|
11
|
-
OpenStruct.new(name: "Florida", value: 9),
|
|
12
|
-
OpenStruct.new(name: "Georgia", value: 10),
|
|
13
|
-
]
|
|
14
|
-
%>
|
|
15
|
-
|
|
16
|
-
<%= pb_form_with(scope: :example, url: "", method: :get) do |form| %>
|
|
17
|
-
<%= form.select :example_select, [ ["Yes", 1], ["No", 2], ["Maybe", 3] ], props: { label: "Select Default" } %>
|
|
18
|
-
<%= form.select :example_select_2, [ ["Yes", 1], ["No", 2], ["Maybe", 3] ], props: { label: "Select with Blank Selection", blank_selection: "Blank selection..." } %>
|
|
19
|
-
<%= form.select :example_select_3, [ ["Yes", 1], ["No", 2], ["Maybe", 3] ], { include_blank: "Include blank..." }, {}, props: { label: "Select with Include Blank" } %>
|
|
20
|
-
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: "Collection Select Default" } %>
|
|
21
|
-
<%= form.collection_select :example_collection_select_2, example_collection, :value, :name, props: { label: "Collection Select with Blank Selection", blank_selection: "Blank selection..." } %>
|
|
22
|
-
<%= form.collection_select :example_collection_select_3, example_collection, :value, :name, { include_blank: "Include blank..." }, {}, props: { label: "Collection Select with Include Blank" } %>
|
|
23
|
-
<%= form.time_zone_select_field :example_time_zone_select, ActiveSupport::TimeZone.us_zones, props: { label: "Time Zone Select Default" } %>
|
|
24
|
-
<%= form.time_zone_select_field :example_time_zone_select_2, ActiveSupport::TimeZone.us_zones, { default: "Eastern Time (US & Canada)" }, props: { label: "Time Zone Select with a Default Selection" } %>
|
|
25
|
-
<%= form.time_zone_select_field :example_time_zone_select_3, ActiveSupport::TimeZone.us_zones, props: { label: "Time Zone Select with Blank Selection", blank_selection: "Blank selection..." } %>
|
|
26
|
-
<%= form.time_zone_select_field :example_time_zone_select_4, ActiveSupport::TimeZone.us_zones, { include_blank: "Include blank..." }, {}, props: { label: "Time Zone Select with Include Blank" } %>
|
|
27
|
-
<%= form.actions do |action| %>
|
|
28
|
-
<%= action.submit %>
|
|
29
|
-
<%= action.button props: { type: "reset", text: "Cancel", variant: "secondary" } %>
|
|
30
|
-
<% end %>
|
|
31
|
-
<% end %>
|