playbook_ui 14.3.2.pre.alpha.pbntr523enablekitsforradiofix3809 → 14.3.2.pre.alpha.play1472newicons3773
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_advanced_table/Components/SortIconButton.tsx +23 -4
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +17 -5
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +14 -6
- data/app/pb_kits/playbook/pb_contact/contact.rb +4 -0
- data/app/pb_kits/playbook/pb_contact/contact.test.js +1 -1
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +4 -3
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +4 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +6 -3
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +3 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +6 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +23 -245
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -1
- data/app/pb_kits/playbook/pb_map/_map_controls.tsx +7 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -5
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -4
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +21 -97
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.test.js +0 -166
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +6 -45
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +2 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +1 -21
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +10 -2
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +33 -92
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_radio/radio.html.erb +13 -35
- data/app/pb_kits/playbook/pb_radio/radio.rb +1 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +12 -5
- data/app/pb_kits/playbook/pb_select/_select.tsx +5 -2
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
- data/app/pb_kits/playbook/pb_select/select.rb +4 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +0 -16
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +0 -4
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
- data/app/pb_kits/playbook/tokens/_colors.scss +0 -2
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +123 -0
- data/app/pb_kits/playbook/utilities/icons/angle-down.svg +3 -0
- data/app/pb_kits/playbook/utilities/icons/envelope.svg +3 -0
- data/dist/chunks/_typeahead-C7opsM-6.js +22 -0
- data/dist/chunks/_weekday_stacked-Bhq2bj8p.js +45 -0
- data/dist/chunks/lib-ACUFk6Hu.js +29 -0
- data/dist/chunks/{pb_form_validation-zV9OpdSt.js → pb_form_validation-CA0nEXlG.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/version.rb +1 -1
- metadata +8 -23
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +0 -117
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +0 -227
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +0 -72
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +0 -91
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +0 -73
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +0 -86
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -48
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.jsx +0 -59
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +0 -1
- data/app/pb_kits/playbook/pb_radio/index.js +0 -17
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +0 -31
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +0 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +0 -1
- data/dist/chunks/_typeahead-468tQVei.js +0 -22
- data/dist/chunks/_weekday_stacked-CODev76A.js +0 -45
- data/dist/chunks/lib-D2U4I1U6.js +0 -16
@@ -1,86 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import MultipleUsersStacked from '../_multiple_users_stacked'
|
4
|
-
|
5
|
-
const MultipleUsersStackedBubble = (props) => {
|
6
|
-
return (
|
7
|
-
<div>
|
8
|
-
<MultipleUsersStacked
|
9
|
-
users={[
|
10
|
-
{
|
11
|
-
name: 'Patrick Welch',
|
12
|
-
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
13
|
-
},
|
14
|
-
]}
|
15
|
-
variant="bubble"
|
16
|
-
{...props}
|
17
|
-
/>
|
18
|
-
<br />
|
19
|
-
<br />
|
20
|
-
<MultipleUsersStacked
|
21
|
-
users={[
|
22
|
-
{
|
23
|
-
name: 'Patrick Welch',
|
24
|
-
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
25
|
-
},
|
26
|
-
{
|
27
|
-
name: 'Lucille Sanchez',
|
28
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
29
|
-
},
|
30
|
-
]}
|
31
|
-
variant="bubble"
|
32
|
-
{...props}
|
33
|
-
/>
|
34
|
-
<br />
|
35
|
-
<br />
|
36
|
-
<MultipleUsersStacked
|
37
|
-
users={[
|
38
|
-
{
|
39
|
-
name: 'Patrick Welch',
|
40
|
-
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
41
|
-
},
|
42
|
-
{
|
43
|
-
name: 'Lucille Sanchez',
|
44
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
45
|
-
},
|
46
|
-
{
|
47
|
-
name: 'Beverly Reyes',
|
48
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
|
49
|
-
},
|
50
|
-
]}
|
51
|
-
variant="bubble"
|
52
|
-
{...props}
|
53
|
-
/>
|
54
|
-
<br />
|
55
|
-
<br />
|
56
|
-
<MultipleUsersStacked
|
57
|
-
users={[
|
58
|
-
{
|
59
|
-
name: 'Patrick Welch',
|
60
|
-
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
61
|
-
},
|
62
|
-
{
|
63
|
-
name: 'Lucille Sanchez',
|
64
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
65
|
-
},
|
66
|
-
{
|
67
|
-
name: 'Beverly Reyes',
|
68
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
|
69
|
-
},
|
70
|
-
{
|
71
|
-
name: 'Keith Craig',
|
72
|
-
imageUrl: 'https://randomuser.me/api/portraits/men/40.jpg',
|
73
|
-
},
|
74
|
-
{
|
75
|
-
name: 'Alicia Cooper',
|
76
|
-
imageUrl: 'https://randomuser.me/api/portraits/women/46.jpg',
|
77
|
-
},
|
78
|
-
]}
|
79
|
-
variant="bubble"
|
80
|
-
{...props}
|
81
|
-
/>
|
82
|
-
</div>
|
83
|
-
)
|
84
|
-
}
|
85
|
-
|
86
|
-
export default MultipleUsersStackedBubble
|
@@ -1,48 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
options = [
|
3
|
-
{ label: "Orange", value: "Orange" },
|
4
|
-
{ label: "Red", value: "Red" },
|
5
|
-
{ label: "Green", value: "Green" },
|
6
|
-
{ label: "Blue", value: "Blue" },
|
7
|
-
]
|
8
|
-
%>
|
9
|
-
|
10
|
-
<%= pb_rails("radio", props: {
|
11
|
-
custom_children: true,
|
12
|
-
label: "Select",
|
13
|
-
name: "Group1",
|
14
|
-
value: "Select",
|
15
|
-
}) do %>
|
16
|
-
<%= pb_rails("select", props: {
|
17
|
-
min_width: "xs",
|
18
|
-
options: options,
|
19
|
-
}) %>
|
20
|
-
<% end %>
|
21
|
-
|
22
|
-
<%= pb_rails("radio", props: {
|
23
|
-
custom_children: true,
|
24
|
-
label: "Typeahead",
|
25
|
-
name: "Group1",
|
26
|
-
value: "Typeahead",
|
27
|
-
}) do %>
|
28
|
-
<%= pb_rails("typeahead", props: {
|
29
|
-
id: "typeahead-radio",
|
30
|
-
is_multi: false,
|
31
|
-
min_width: "xs",
|
32
|
-
options: options,
|
33
|
-
placeholder: "Select...",
|
34
|
-
})
|
35
|
-
%>
|
36
|
-
<% end %>
|
37
|
-
|
38
|
-
<%= pb_rails("radio", props: {
|
39
|
-
custom_children: true,
|
40
|
-
label: "Typography",
|
41
|
-
name: "Group1",
|
42
|
-
value: "Typography",
|
43
|
-
}) do %>
|
44
|
-
<%= pb_rails("title", props: {
|
45
|
-
text: "Custom Typography",
|
46
|
-
})
|
47
|
-
%>
|
48
|
-
<% end %>
|
@@ -1,59 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Radio from '../_radio'
|
3
|
-
import Select from '../../pb_select/_select'
|
4
|
-
import Typeahead from '../../pb_typeahead/_typeahead'
|
5
|
-
import Title from '../../pb_title/_title'
|
6
|
-
|
7
|
-
const RadioChildren = (props) => {
|
8
|
-
|
9
|
-
|
10
|
-
const options = [
|
11
|
-
{ label: 'Orange', value: 'Orange' },
|
12
|
-
{ label: 'Red', value: 'Red' },
|
13
|
-
{ label: 'Green', value: 'Green' },
|
14
|
-
{ label: 'Blue', value: 'Blue' },
|
15
|
-
]
|
16
|
-
|
17
|
-
return (
|
18
|
-
<div>
|
19
|
-
<Radio
|
20
|
-
customChildren
|
21
|
-
label="Select"
|
22
|
-
name="Group1"
|
23
|
-
tabIndex={0}
|
24
|
-
value="Select"
|
25
|
-
{...props}
|
26
|
-
>
|
27
|
-
<Select
|
28
|
-
minWidth="xs"
|
29
|
-
options={options}
|
30
|
-
/>
|
31
|
-
</Radio>
|
32
|
-
<Radio
|
33
|
-
customChildren
|
34
|
-
label="Typeahead"
|
35
|
-
name="Group1"
|
36
|
-
tabIndex={0}
|
37
|
-
value="Typeahead"
|
38
|
-
{...props}
|
39
|
-
>
|
40
|
-
<Typeahead
|
41
|
-
minWidth="xs"
|
42
|
-
options={options}
|
43
|
-
/>
|
44
|
-
</Radio>
|
45
|
-
<br />
|
46
|
-
<Radio
|
47
|
-
customChildren
|
48
|
-
defaultChecked={false}
|
49
|
-
label="Typography"
|
50
|
-
name="Group1"
|
51
|
-
value="Typography"
|
52
|
-
{...props}
|
53
|
-
>
|
54
|
-
<Title text="Custom Typography" />
|
55
|
-
</Radio>
|
56
|
-
</div>
|
57
|
-
)
|
58
|
-
}
|
59
|
-
export default RadioChildren
|
@@ -1 +0,0 @@
|
|
1
|
-
Use the `custom_children` prop to enable the use of kits instead of text labels.
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import PbEnhancedElement from "../pb_enhanced_element"
|
2
|
-
|
3
|
-
const RADIO_SELECTOR = "[data-pb-radio-children]"
|
4
|
-
const RADIO_WRAPPER_SELECTOR = "[data-pb-radio-children-wrapper]"
|
5
|
-
|
6
|
-
export default class PbRadio extends PbEnhancedElement {
|
7
|
-
static get selector() {
|
8
|
-
return RADIO_SELECTOR
|
9
|
-
}
|
10
|
-
|
11
|
-
connect() {
|
12
|
-
const radioWrapperElement = this.element.parentElement.querySelector(RADIO_WRAPPER_SELECTOR)
|
13
|
-
radioWrapperElement.addEventListener("click", () => {
|
14
|
-
this.element.querySelector("input[type='radio']").click()
|
15
|
-
})
|
16
|
-
}
|
17
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
options = [
|
3
|
-
{ label: 'Windows', value: '#FFA500' },
|
4
|
-
{ label: 'Siding', value: '#FF0000' },
|
5
|
-
{ label: 'Doors', value: '#00FF00' },
|
6
|
-
{ label: 'Roofs', value: '#0000FF' },
|
7
|
-
]
|
8
|
-
%>
|
9
|
-
|
10
|
-
<%= pb_rails("typeahead", props: { id: "typeahead-pills-example1", pill_color: "neutral", default_options: [options.first], options: options, label: "Colors", name: :foo, pills: true }) %>
|
11
|
-
|
12
|
-
<%= pb_rails("button", props: {id: "clear-pills", text: "Clear All Options", variant: "secondary"}) %>
|
13
|
-
|
14
|
-
<!-- This section is an example of the available JavaScript event hooks -->
|
15
|
-
<%= javascript_tag defer: "defer" do %>
|
16
|
-
document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-option-select", function(event) {
|
17
|
-
console.log('Option selected')
|
18
|
-
console.dir(event.detail)
|
19
|
-
})
|
20
|
-
document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-option-remove", function(event) {
|
21
|
-
console.log('Option removed')
|
22
|
-
console.dir(event.detail)
|
23
|
-
})
|
24
|
-
document.addEventListener("pb-typeahead-kit-typeahead-pills-example1-result-clear", function() {
|
25
|
-
console.log('All options cleared')
|
26
|
-
})
|
27
|
-
|
28
|
-
document.querySelector('#clear-pills').addEventListener('click', function() {
|
29
|
-
document.dispatchEvent(new CustomEvent('pb-typeahead-kit-typeahead-pills-example1:clear'))
|
30
|
-
})
|
31
|
-
<% end %>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Typeahead } from 'playbook-ui'
|
3
|
-
|
4
|
-
const options = [
|
5
|
-
{ label: 'Windows', value: '#FFA500' },
|
6
|
-
{ label: 'Siding', value: '#FF0000' },
|
7
|
-
{ label: 'Doors', value: '#00FF00' },
|
8
|
-
{ label: 'Roofs', value: '#0000FF' },
|
9
|
-
]
|
10
|
-
|
11
|
-
const TypeaheadWithPills = (props) => {
|
12
|
-
return (
|
13
|
-
<>
|
14
|
-
<Typeahead
|
15
|
-
isMulti
|
16
|
-
label="Colors"
|
17
|
-
options={options}
|
18
|
-
pillColor="neutral"
|
19
|
-
placeholder=""
|
20
|
-
{...props}
|
21
|
-
/>
|
22
|
-
</>
|
23
|
-
)
|
24
|
-
}
|
25
|
-
|
26
|
-
export default TypeaheadWithPills
|
@@ -1 +0,0 @@
|
|
1
|
-
Change the form pill color by passing the optional `pill_color` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.
|
@@ -1 +0,0 @@
|
|
1
|
-
Change the form pill color by passing the optional `pillColor` prop. Product, Data, and Status colors are available options. Check them out <a href="https://playbook.powerapp.cloud/kits/form_pill/react#form-pill-colors" target="_blank">here</a> in the Form Pill colors example.
|