playbook_ui 12.38.0.pre.alpha.PBNTR78selectkitmultipleprop1094 → 12.38.0.pre.alpha.PLAY932removemomentqp1088
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +18 -8
- data/app/pb_kits/playbook/pb_date_picker/plugins/quickPick.tsx +45 -39
- data/app/pb_kits/playbook/pb_kit/dateTime.ts +204 -1
- data/app/pb_kits/playbook/pb_select/_select.scss +0 -37
- data/app/pb_kits/playbook/pb_select/_select.tsx +5 -9
- data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_select/select.html.erb +9 -5
- data/app/pb_kits/playbook/pb_select/select.rb +0 -14
- data/app/pb_kits/playbook/pb_select/select.test.js +0 -17
- data/dist/playbook-rails.js +7 -279
- data/lib/playbook/version.rb +1 -1
- metadata +1 -6
- data/app/pb_kits/playbook/pb_select/docs/_select_attributes.html.erb +0 -26
- data/app/pb_kits/playbook/pb_select/docs/_select_attributes.md +0 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_multiple.html.erb +0 -36
- data/app/pb_kits/playbook/pb_select/docs/_select_multiple.jsx +0 -50
- data/app/pb_kits/playbook/pb_select/docs/_select_multiple.md +0 -1
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: 12.38.0.pre.alpha.
|
4
|
+
version: 12.38.0.pre.alpha.PLAY932removemomentqp1088
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -1851,8 +1851,6 @@ files:
|
|
1851
1851
|
- app/pb_kits/playbook/pb_select/_select.tsx
|
1852
1852
|
- app/pb_kits/playbook/pb_select/docs/_description.md
|
1853
1853
|
- app/pb_kits/playbook/pb_select/docs/_footer.md
|
1854
|
-
- app/pb_kits/playbook/pb_select/docs/_select_attributes.html.erb
|
1855
|
-
- app/pb_kits/playbook/pb_select/docs/_select_attributes.md
|
1856
1854
|
- app/pb_kits/playbook/pb_select/docs/_select_blank.html.erb
|
1857
1855
|
- app/pb_kits/playbook/pb_select/docs/_select_blank.jsx
|
1858
1856
|
- app/pb_kits/playbook/pb_select/docs/_select_custom_select.html.erb
|
@@ -1870,9 +1868,6 @@ files:
|
|
1870
1868
|
- app/pb_kits/playbook/pb_select/docs/_select_inline.jsx
|
1871
1869
|
- app/pb_kits/playbook/pb_select/docs/_select_inline_compact.html.erb
|
1872
1870
|
- app/pb_kits/playbook/pb_select/docs/_select_inline_compact.jsx
|
1873
|
-
- app/pb_kits/playbook/pb_select/docs/_select_multiple.html.erb
|
1874
|
-
- app/pb_kits/playbook/pb_select/docs/_select_multiple.jsx
|
1875
|
-
- app/pb_kits/playbook/pb_select/docs/_select_multiple.md
|
1876
1871
|
- app/pb_kits/playbook/pb_select/docs/_select_required.html.erb
|
1877
1872
|
- app/pb_kits/playbook/pb_select/docs/_select_required.jsx
|
1878
1873
|
- app/pb_kits/playbook/pb_select/docs/_select_value_text_same.html.erb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<%= pb_rails("select", props: {
|
2
|
-
attributes: {
|
3
|
-
data: { options: "data_attribute" },
|
4
|
-
},
|
5
|
-
label: "Favorite Food",
|
6
|
-
name: "food",
|
7
|
-
options: [
|
8
|
-
{
|
9
|
-
value: "1",
|
10
|
-
value_text: "Burgers",
|
11
|
-
},
|
12
|
-
{
|
13
|
-
value: "2",
|
14
|
-
selected: true,
|
15
|
-
value_text: "Pizza",
|
16
|
-
},
|
17
|
-
{
|
18
|
-
value: "3",
|
19
|
-
value_text: "Tacos",
|
20
|
-
},
|
21
|
-
{
|
22
|
-
value: "4",
|
23
|
-
value_text: "BBQ",
|
24
|
-
},
|
25
|
-
]
|
26
|
-
}) %>
|
@@ -1 +0,0 @@
|
|
1
|
-
Inspect the element and notice the data-attribute being added to the `<select>` element
|
@@ -1,36 +0,0 @@
|
|
1
|
-
<%= pb_rails("select", props: {
|
2
|
-
label: "Favorite Food",
|
3
|
-
name: "food",
|
4
|
-
multiple: true,
|
5
|
-
options: [
|
6
|
-
{
|
7
|
-
value: "1",
|
8
|
-
value_text: "Burgers",
|
9
|
-
},
|
10
|
-
{
|
11
|
-
value: "2",
|
12
|
-
selected: true,
|
13
|
-
value_text: "Pizza",
|
14
|
-
},
|
15
|
-
{
|
16
|
-
value: "3",
|
17
|
-
value_text: "Tacos",
|
18
|
-
},
|
19
|
-
{
|
20
|
-
value: "4",
|
21
|
-
value_text: "BBQ",
|
22
|
-
},
|
23
|
-
{
|
24
|
-
value: "4",
|
25
|
-
value_text: "Sushi",
|
26
|
-
},
|
27
|
-
{
|
28
|
-
value: "4",
|
29
|
-
value_text: "Chinese",
|
30
|
-
},
|
31
|
-
{
|
32
|
-
value: "4",
|
33
|
-
value_text: "Hot Dogs",
|
34
|
-
},
|
35
|
-
]
|
36
|
-
}) %>
|
@@ -1,50 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Select from '../_select'
|
4
|
-
|
5
|
-
const SelectMultiple = (props) => {
|
6
|
-
const options = [
|
7
|
-
{
|
8
|
-
value: '1',
|
9
|
-
text: 'Burgers',
|
10
|
-
},
|
11
|
-
{
|
12
|
-
value: '2',
|
13
|
-
text: 'Pizza',
|
14
|
-
},
|
15
|
-
{
|
16
|
-
value: '3',
|
17
|
-
text: 'Tacos',
|
18
|
-
},
|
19
|
-
{
|
20
|
-
value: '3',
|
21
|
-
text: 'BBQ',
|
22
|
-
},
|
23
|
-
{
|
24
|
-
value: '3',
|
25
|
-
text: 'Sushi',
|
26
|
-
},
|
27
|
-
{
|
28
|
-
value: '3',
|
29
|
-
text: 'Chinese',
|
30
|
-
},
|
31
|
-
{
|
32
|
-
value: '3',
|
33
|
-
text: 'Hot Dogs',
|
34
|
-
},
|
35
|
-
]
|
36
|
-
|
37
|
-
return (
|
38
|
-
<div>
|
39
|
-
<Select
|
40
|
-
label="Favorite Food"
|
41
|
-
multiple
|
42
|
-
name="food"
|
43
|
-
options={options}
|
44
|
-
{...props}
|
45
|
-
/>
|
46
|
-
</div>
|
47
|
-
)
|
48
|
-
}
|
49
|
-
|
50
|
-
export default SelectMultiple
|
@@ -1 +0,0 @@
|
|
1
|
-
We recommend using a typeahead for better UX
|