playbook_ui 14.4.0.pre.alpha.stephenagreerpatch13910 → 14.4.0.pre.rc.0
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/_playbook.scss +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +4 -23
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/_button.tsx +2 -6
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +0 -4
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +5 -17
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -14
- data/app/pb_kits/playbook/pb_contact/contact.rb +0 -4
- data/app/pb_kits/playbook/pb_contact/contact.test.js +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +6 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +7 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -4
- 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 +0 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -6
- 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 +2 -6
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +0 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -10
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +1 -5
- 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_gantt_chart/_gantt_chart.tsx +0 -3
- data/app/pb_kits/playbook/pb_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_map/_map_controls.tsx +1 -7
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -20
- 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_pagination/docs/_pagination_page_change.jsx +1 -12
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -10
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +32 -41
- data/app/pb_kits/playbook/pb_radio/docs/{_radio_custom_children.jsx → _radio_children.jsx} +2 -5
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -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 +5 -12
- data/app/pb_kits/playbook/pb_select/_select.tsx +2 -5
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
- data/app/pb_kits/playbook/pb_select/select.rb +0 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +13 -17
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -18
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +23 -17
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +1 -1
- 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 +3 -7
- data/app/pb_kits/playbook/tokens/_colors.scss +0 -2
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +13 -136
- data/dist/chunks/_typeahead-es44Ih6G.js +22 -0
- data/dist/chunks/_weekday_stacked-DWJJPUPQ.js +45 -0
- data/dist/chunks/lib-D9uVVKnh.js +16 -0
- data/dist/chunks/{pb_form_validation-D9zkwt2b.js → pb_form_validation-u2wnZ3oe.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +1 -3
- 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/pagination_renderer.rb +2 -10
- data/lib/playbook/version.rb +2 -2
- metadata +7 -40
- data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +0 -25
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -465
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +0 -195
- data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +0 -3
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +0 -12
- data/app/pb_kits/playbook/pb_drawer/drawer.rb +0 -8
- data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +0 -77
- 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 -50
- 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/app/pb_kits/playbook/utilities/icons/angle-down.svg +0 -3
- data/app/pb_kits/playbook/utilities/icons/envelope.svg +0 -3
- data/dist/chunks/_typeahead-BYw0HEgO.js +0 -22
- data/dist/chunks/_weekday_stacked-DY64Tj7E.js +0 -45
- data/dist/chunks/lib-CEpcaI8y.js +0 -29
@@ -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,50 +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
|
-
margin_bottom: "sm",
|
14
|
-
name: "Group1",
|
15
|
-
value: "Select",
|
16
|
-
}) do %>
|
17
|
-
<%= pb_rails("select", props: {
|
18
|
-
min_width: "xs",
|
19
|
-
options: options,
|
20
|
-
}) %>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<%= pb_rails("radio", props: {
|
24
|
-
custom_children: true,
|
25
|
-
label: "Typeahead",
|
26
|
-
margin_bottom: "sm",
|
27
|
-
name: "Group1",
|
28
|
-
value: "Typeahead",
|
29
|
-
}) do %>
|
30
|
-
<%= pb_rails("typeahead", props: {
|
31
|
-
id: "typeahead-radio",
|
32
|
-
is_multi: false,
|
33
|
-
min_width: "xs",
|
34
|
-
options: options,
|
35
|
-
placeholder: "Select...",
|
36
|
-
})
|
37
|
-
%>
|
38
|
-
<% end %>
|
39
|
-
|
40
|
-
<%= pb_rails("radio", props: {
|
41
|
-
custom_children: true,
|
42
|
-
label: "Typography",
|
43
|
-
name: "Group1",
|
44
|
-
value: "Typography",
|
45
|
-
}) do %>
|
46
|
-
<%= pb_rails("title", props: {
|
47
|
-
text: "Custom Typography",
|
48
|
-
})
|
49
|
-
%>
|
50
|
-
<% end %>
|
@@ -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.
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="30" height="24" viewBox="0 0 30 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.54314 7.6905C6.9916 7.26047 7.70376 7.27541 8.13379 7.72387L15 14.8844L21.8662 7.72387C22.2962 7.27541 23.0084 7.26047 23.4568 7.6905C23.9053 8.12053 23.9202 8.83268 23.4902 9.28114L16.0827 17.0062C15.4922 17.6219 14.5078 17.6219 13.9173 17.0062L6.50977 9.28114C6.07975 8.83268 6.09469 8.12053 6.54314 7.6905Z" fill="black"/>
|
3
|
-
</svg>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
<svg width="30" height="25" viewBox="0 0 30 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.62488 6.28574C5.62488 6.07863 5.79277 5.91074 5.99988 5.91074H23.9999C24.207 5.91074 24.3749 6.07863 24.3749 6.28574V7.92165L14.9999 13.9502L5.62488 7.92163V6.28574ZM3.37488 8.5181C3.37472 8.52916 3.37472 8.54021 3.37488 8.55126V18.2857C3.37488 19.7355 4.55013 20.9107 5.99988 20.9107H23.9999C25.4496 20.9107 26.6249 19.7355 26.6249 18.2857V8.55315C26.6251 8.54084 26.6251 8.52853 26.6249 8.51621V6.28574C26.6249 4.83599 25.4496 3.66074 23.9999 3.66074H5.99988C4.55013 3.66074 3.37488 4.83599 3.37488 6.28574V8.5181ZM24.3749 10.5967V18.2857C24.3749 18.4928 24.207 18.6607 23.9999 18.6607H5.99988C5.79277 18.6607 5.62488 18.4928 5.62488 18.2857V10.5967L14.1886 16.1036C14.6828 16.4214 15.317 16.4214 15.8112 16.1036L24.3749 10.5967Z" fill="black"/>
|
3
|
-
</svg>
|