playbook_ui_docs 14.4.0.pre.alpha.pbntr523enablekitsforradiofix3826 → 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/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_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_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_radio/docs/{_radio_custom_children.jsx → _radio_children.jsx} +5 -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_typeahead/docs/_typeahead_margin_bottom.html.erb +88 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +60 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -1
- data/dist/playbook-doc.js +1 -1
- metadata +5 -18
- 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.md +0 -1
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c54ba703b184e586be6b60ae78c1906b177980ba3df3acb632c62c25fa50ef34
|
4
|
+
data.tar.gz: ec484d6808853c43e08c09ea1847c83314cd338575f255f9344207396f4448f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808f9245ee0a6c7ff53fc321ea929b2ed4eafadd0019774941e15901f21b8bbd41d43e2f4c6c3a457ce1247f766d192852a073d9d7e3d64c7d2e887bb1dc9fd3
|
7
|
+
data.tar.gz: 2cb4480e4d498adf7a1789194588fa9d4375ba0c33a9e5e2ee6d1a9af4fa1d570e735302c5f6c69b29838fe49ce5773e1fa6eab85c78b6d6b76496a33cfff008
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- form_pill_tag: Form Pill Tag
|
7
7
|
- form_pill_example: Example
|
8
8
|
- form_pill_icon: Form Pill Icon
|
9
|
-
- form_pill_colors: Form Pill Colors
|
10
9
|
|
11
10
|
react:
|
12
11
|
- form_pill_user: Form Pill User
|
@@ -14,4 +13,3 @@ examples:
|
|
14
13
|
- form_pill_tag: Form Pill Tag
|
15
14
|
- form_pill_example: Example
|
16
15
|
- form_pill_icon: Form Pill Icon
|
17
|
-
- form_pill_colors: Form Pill Colors
|
@@ -3,4 +3,3 @@ export { default as FormPillSize } from './_form_pill_size.jsx'
|
|
3
3
|
export { default as FormPillTag } from './_form_pill_tag.jsx'
|
4
4
|
export { default as FormPillExample } from './_form_pill_example.jsx'
|
5
5
|
export { default as FormPillIcon } from './_form_pill_icon.jsx'
|
6
|
-
export { default as FormPillColors } from './_form_pill_colors.jsx'
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- multi_level_select_return_all_selected: Return All Selected
|
7
7
|
- multi_level_select_selected_ids: Selected Ids
|
8
8
|
- multi_level_select_with_form: With Form
|
9
|
-
- multi_level_select_color: With Pills (Custom Color)
|
10
9
|
|
11
10
|
react:
|
12
11
|
- multi_level_select_default: Default
|
@@ -14,4 +13,3 @@ examples:
|
|
14
13
|
- multi_level_select_single_children_only: Single Select w/ Hidden Radios
|
15
14
|
- multi_level_select_return_all_selected: Return All Selected
|
16
15
|
- multi_level_select_selected_ids_react: Selected Ids
|
17
|
-
- multi_level_select_color: With Pills (Custom Color)
|
@@ -3,4 +3,3 @@ export { default as MultiLevelSelectSingle } from './_multi_level_select_single.
|
|
3
3
|
export { default as MultiLevelSelectSingleChildrenOnly } from './_multi_level_select_single_children_only.jsx'
|
4
4
|
export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'
|
5
5
|
export { default as MultiLevelSelectSelectedIdsReact } from "./_multi_level_select_selected_ids_react.jsx"
|
6
|
-
export { default as MultiLevelSelectColor } from './_multi_level_select_color.jsx'
|
@@ -2,12 +2,10 @@ examples:
|
|
2
2
|
|
3
3
|
rails:
|
4
4
|
- multiple_users_stacked_default: Default
|
5
|
-
- multiple_users_stacked_bubble: Bubble
|
6
5
|
|
7
6
|
|
8
7
|
react:
|
9
8
|
- multiple_users_stacked_default: Default
|
10
|
-
- multiple_users_stacked_bubble: Bubble
|
11
9
|
|
12
10
|
swift:
|
13
11
|
- multiple_users_stacked_default_swift: Default
|
@@ -17,34 +17,34 @@ const RadioChildren = (props) => {
|
|
17
17
|
return (
|
18
18
|
<div>
|
19
19
|
<Radio
|
20
|
-
customChildren
|
21
20
|
label="Select"
|
21
|
+
marginBottom="sm"
|
22
22
|
name="Group1"
|
23
23
|
tabIndex={0}
|
24
24
|
value="Select"
|
25
25
|
{...props}
|
26
26
|
>
|
27
27
|
<Select
|
28
|
+
marginBottom="none"
|
28
29
|
minWidth="xs"
|
29
30
|
options={options}
|
30
31
|
/>
|
31
32
|
</Radio>
|
32
33
|
<Radio
|
33
|
-
customChildren
|
34
34
|
label="Typeahead"
|
35
|
+
marginBottom="sm"
|
35
36
|
name="Group1"
|
36
37
|
tabIndex={0}
|
37
38
|
value="Typeahead"
|
38
39
|
{...props}
|
39
40
|
>
|
40
41
|
<Typeahead
|
42
|
+
marginBottom="none"
|
41
43
|
minWidth="xs"
|
42
44
|
options={options}
|
43
45
|
/>
|
44
46
|
</Radio>
|
45
|
-
<br />
|
46
47
|
<Radio
|
47
|
-
customChildren
|
48
48
|
defaultChecked={false}
|
49
49
|
label="Typography"
|
50
50
|
name="Group1"
|
@@ -56,4 +56,4 @@ const RadioChildren = (props) => {
|
|
56
56
|
</div>
|
57
57
|
)
|
58
58
|
}
|
59
|
-
export default RadioChildren
|
59
|
+
export default RadioChildren
|
@@ -7,7 +7,6 @@ examples:
|
|
7
7
|
- radio_options: With Options
|
8
8
|
- radio_alignment: Alignment
|
9
9
|
- radio_disabled: Disabled
|
10
|
-
- radio_custom_children: Custom Children
|
11
10
|
|
12
11
|
react:
|
13
12
|
- radio_default: Default
|
@@ -15,7 +14,7 @@ examples:
|
|
15
14
|
- radio_error: With Error
|
16
15
|
- radio_alignment: Alignment
|
17
16
|
- radio_disabled: Disabled
|
18
|
-
-
|
17
|
+
- radio_children: Children
|
19
18
|
|
20
19
|
swift:
|
21
20
|
- radio_default_swift: Default
|
@@ -3,4 +3,4 @@ export { default as RadioCustom } from './_radio_custom.jsx'
|
|
3
3
|
export { default as RadioError } from './_radio_error.jsx'
|
4
4
|
export { default as RadioAlignment } from './_radio_alignment.jsx'
|
5
5
|
export { default as RadioDisabled } from './_radio_disabled.jsx'
|
6
|
-
export { default as
|
6
|
+
export { default as RadioChildren } from './_radio_children.jsx'
|
@@ -0,0 +1,88 @@
|
|
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-default",
|
12
|
+
placeholder: "All Colors",
|
13
|
+
options: options,
|
14
|
+
label: "None",
|
15
|
+
name: :foo,
|
16
|
+
is_multi: false,
|
17
|
+
margin_bottom: "none",
|
18
|
+
})
|
19
|
+
%>
|
20
|
+
<%= pb_rails("typeahead", props: {
|
21
|
+
id: "typeahead-default",
|
22
|
+
placeholder: "All Colors",
|
23
|
+
options: options,
|
24
|
+
label: "XXS",
|
25
|
+
name: :foo,
|
26
|
+
is_multi: false,
|
27
|
+
margin_bottom: "xxs",
|
28
|
+
})
|
29
|
+
%>
|
30
|
+
<%= pb_rails("typeahead", props: {
|
31
|
+
id: "typeahead-default",
|
32
|
+
placeholder: "All Colors",
|
33
|
+
options: options,
|
34
|
+
label: "XS",
|
35
|
+
name: :foo,
|
36
|
+
is_multi: false,
|
37
|
+
margin_bottom: "xs",
|
38
|
+
})
|
39
|
+
%>
|
40
|
+
<%= pb_rails("typeahead", props: {
|
41
|
+
id: "typeahead-default",
|
42
|
+
placeholder: "All Colors",
|
43
|
+
options: options,
|
44
|
+
label: "Default - SM",
|
45
|
+
name: :foo,
|
46
|
+
is_multi: false,
|
47
|
+
})
|
48
|
+
%>
|
49
|
+
<%= pb_rails("typeahead", props: {
|
50
|
+
id: "typeahead-default",
|
51
|
+
placeholder: "All Colors",
|
52
|
+
options: options,
|
53
|
+
label: "MD",
|
54
|
+
name: :foo,
|
55
|
+
is_multi: false,
|
56
|
+
margin_bottom: "md",
|
57
|
+
})
|
58
|
+
%>
|
59
|
+
<%= pb_rails("typeahead", props: {
|
60
|
+
id: "typeahead-default",
|
61
|
+
placeholder: "All Colors",
|
62
|
+
options: options,
|
63
|
+
label: "LG",
|
64
|
+
name: :foo,
|
65
|
+
is_multi: false,
|
66
|
+
margin_bottom: "lg",
|
67
|
+
})
|
68
|
+
%>
|
69
|
+
<%= pb_rails("typeahead", props: {
|
70
|
+
id: "typeahead-default",
|
71
|
+
placeholder: "All Colors",
|
72
|
+
options: options,
|
73
|
+
label: "XL",
|
74
|
+
name: :foo,
|
75
|
+
is_multi: false,
|
76
|
+
margin_bottom: "xl",
|
77
|
+
})
|
78
|
+
%>
|
79
|
+
|
80
|
+
<%= javascript_tag defer: "defer" do %>
|
81
|
+
document.addEventListener("pb-typeahead-kit-typeahead-default-result-option-select", function(event) {
|
82
|
+
console.log('Single Option selected')
|
83
|
+
console.dir(event.detail)
|
84
|
+
})
|
85
|
+
document.addEventListener("pb-typeahead-kit-typeahead-default-result-clear", function() {
|
86
|
+
console.log('All options cleared')
|
87
|
+
})
|
88
|
+
<% end %>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import Typeahead from '../_typeahead'
|
4
|
+
|
5
|
+
const options = [
|
6
|
+
{ label: 'Orange', value: '#FFA500' },
|
7
|
+
{ label: 'Red', value: '#FF0000' },
|
8
|
+
{ label: 'Green', value: '#00FF00' },
|
9
|
+
{ label: 'Blue', value: '#0000FF' },
|
10
|
+
]
|
11
|
+
|
12
|
+
const TypeaheadMarginBottom = (props) => {
|
13
|
+
return (
|
14
|
+
<>
|
15
|
+
<Typeahead
|
16
|
+
label="None"
|
17
|
+
marginBottom="none"
|
18
|
+
options={options}
|
19
|
+
{...props}
|
20
|
+
/>
|
21
|
+
<Typeahead
|
22
|
+
label="XXS"
|
23
|
+
marginBottom="xxs"
|
24
|
+
options={options}
|
25
|
+
{...props}
|
26
|
+
/>
|
27
|
+
<Typeahead
|
28
|
+
label="XS"
|
29
|
+
marginBottom="xs"
|
30
|
+
options={options}
|
31
|
+
{...props}
|
32
|
+
/>
|
33
|
+
<Typeahead
|
34
|
+
label="Default - SM"
|
35
|
+
options={options}
|
36
|
+
{...props}
|
37
|
+
/>
|
38
|
+
<Typeahead
|
39
|
+
label="MD"
|
40
|
+
marginBottom="md"
|
41
|
+
options={options}
|
42
|
+
{...props}
|
43
|
+
/>
|
44
|
+
<Typeahead
|
45
|
+
label="LG"
|
46
|
+
marginBottom="lg"
|
47
|
+
options={options}
|
48
|
+
{...props}
|
49
|
+
/>
|
50
|
+
<Typeahead
|
51
|
+
label="XL"
|
52
|
+
marginBottom="xl"
|
53
|
+
options={options}
|
54
|
+
{...props}
|
55
|
+
/>
|
56
|
+
</>
|
57
|
+
)
|
58
|
+
}
|
59
|
+
|
60
|
+
export default TypeaheadMarginBottom
|
@@ -9,7 +9,7 @@ examples:
|
|
9
9
|
- typeahead_inline: Inline
|
10
10
|
- typeahead_multi_kit: Multi Kit Options
|
11
11
|
- typeahead_error_state: Error State
|
12
|
-
-
|
12
|
+
- typeahead_margin_bottom: Margin Bottom
|
13
13
|
|
14
14
|
react:
|
15
15
|
- typeahead_default: Default
|
@@ -24,4 +24,4 @@ examples:
|
|
24
24
|
- typeahead_async_createable: Createable (+ Async Data)
|
25
25
|
- typeahead_error_state: Error State
|
26
26
|
- typeahead_custom_menu_list: Custom MenuList
|
27
|
-
-
|
27
|
+
- typeahead_margin_bottom: Margin Bottom
|
@@ -10,4 +10,4 @@ export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
|
|
10
10
|
export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'
|
11
11
|
export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
|
12
12
|
export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
|
13
|
-
export { default as
|
13
|
+
export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
|