playbook_ui_docs 16.6.0.pre.rc.1 → 16.6.0.pre.rc.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23f8499a53cf571ec4a935e604ac8cfea4d45c390edad7eccb170a6e08b02899
|
|
4
|
+
data.tar.gz: '089ebf0de47ee2837c6f187c162721ca9a0acbecea4fc3ff6b2764c04822a854'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34f51f19fb4fe4e4184b0a576c13851baf307de912c84d7782ad8b7d0eb4350f004c30c49d5cf9e1ae64bac5a255bc37e0115f81262038d027722111312b68b9
|
|
7
|
+
data.tar.gz: abc84830870424208f7283b5681df742be7c011dd3050adf602ceee591d75028aee5d7dcc20c9e91b9de847f8cd14976e6fc97fe866e8383b1766a85e3bfed5c
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<%
|
|
2
|
+
options = [
|
|
3
|
+
{ label: 'Orange', value: '#FFA500' },
|
|
4
|
+
{ label: 'Red', value: '#FF0000' },
|
|
5
|
+
{ label: 'Green', value: '#00FF00' },
|
|
6
|
+
{ label: 'Blue', value: '#0000FF' },
|
|
7
|
+
]
|
|
8
|
+
%>
|
|
9
|
+
|
|
10
|
+
<%= pb_rails("typeahead", props: {
|
|
11
|
+
id: "typeahead-creatable",
|
|
12
|
+
placeholder: "All Colors",
|
|
13
|
+
options: options,
|
|
14
|
+
label: "Colors",
|
|
15
|
+
name: :foo,
|
|
16
|
+
createable: true,
|
|
17
|
+
pills: true,
|
|
18
|
+
})
|
|
19
|
+
%>
|
|
20
|
+
|
|
21
|
+
<%= javascript_tag defer: "defer" do %>
|
|
22
|
+
document.addEventListener("pb-typeahead-kit-typeahead-creatable-result-option-select", function(event) {
|
|
23
|
+
console.log('Single Option selected')
|
|
24
|
+
console.dir(event.detail)
|
|
25
|
+
})
|
|
26
|
+
document.addEventListener("pb-typeahead-kit-typeahead-creatable-result-clear", function() {
|
|
27
|
+
console.log('All options cleared')
|
|
28
|
+
})
|
|
29
|
+
<% end %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The `createable` prop allows users to create new options by typing a value that doesn't exist in the options list.
|
|
@@ -11,6 +11,7 @@ examples:
|
|
|
11
11
|
- typeahead_with_pills_async_users: With Pills (Async Data w/ Users)
|
|
12
12
|
- typeahead_inline: Inline
|
|
13
13
|
- typeahead_multi_kit: Multi Kit Options
|
|
14
|
+
- typeahead_createable: Createable
|
|
14
15
|
- typeahead_error_state: Error State
|
|
15
16
|
- typeahead_margin_bottom: Margin Bottom
|
|
16
17
|
- typeahead_with_pills_color: With Pills (Custom Color)
|
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.6.0.pre.rc.
|
|
4
|
+
version: 16.6.0.pre.rc.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: 2026-04-
|
|
12
|
+
date: 2026-04-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -2623,7 +2623,9 @@ files:
|
|
|
2623
2623
|
- app/pb_kits/playbook/pb_typeahead/docs/_description.md
|
|
2624
2624
|
- app/pb_kits/playbook/pb_typeahead/docs/_footer.md
|
|
2625
2625
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_async_createable.jsx
|
|
2626
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.html.erb
|
|
2626
2627
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.jsx
|
|
2628
|
+
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.md
|
|
2627
2629
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx
|
|
2628
2630
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb
|
|
2629
2631
|
- app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx
|