playbook_ui_docs 14.25.0.pre.alpha.dialogfix10277 → 14.25.0.pre.alpha.play1986inlineloadingsolidvariant9963
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 +4 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +2 -16
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +8 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +41 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +33 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +78 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +3 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +26 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +20 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +59 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +24 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +61 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +24 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +21 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +54 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +1 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +49 -0
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +99 -0
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +20 -0
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +7 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb +5 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +24 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +1 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +22 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_without_pills.html.erb +2 -2
- data/dist/playbook-doc.js +2 -2
- metadata +22 -2
@@ -0,0 +1,20 @@
|
|
1
|
+
examples:
|
2
|
+
|
3
|
+
rails:
|
4
|
+
- drawer_default: Default
|
5
|
+
- drawer_behavior: Push Behavior
|
6
|
+
- drawer_menu: Within Element
|
7
|
+
- drawer_sizes: Sizes
|
8
|
+
- drawer_overlay: Overlay
|
9
|
+
- drawer_breakpoints: Breakpoints
|
10
|
+
- drawer_borders: Borders
|
11
|
+
|
12
|
+
|
13
|
+
react:
|
14
|
+
- drawer_default: Default
|
15
|
+
- drawer_behavior: Push Behavior
|
16
|
+
- drawer_menu: Within Element
|
17
|
+
- drawer_sizes: Sizes
|
18
|
+
- drawer_overlay: Overlay
|
19
|
+
- drawer_breakpoints: Breakpoints
|
20
|
+
- drawer_borders: Borders
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export { default as DrawerDefault } from './_drawer_default.jsx'
|
2
|
+
export { default as DrawerSizes } from './_drawer_sizes.jsx'
|
3
|
+
export { default as DrawerOverlay } from './_drawer_overlay.jsx'
|
4
|
+
export { default as DrawerBorders } from './_drawer_borders.jsx'
|
5
|
+
export { default as DrawerBreakpoints } from './_drawer_breakpoints.jsx'
|
6
|
+
export { default as DrawerMenu } from './_drawer_menu.jsx'
|
7
|
+
export { default as DrawerBehavior } from './_drawer_behavior.jsx'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { LoadingInline } from 'playbook-ui'
|
3
|
+
|
4
|
+
const LoadingInlineVariant = (props) => {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<LoadingInline
|
8
|
+
text=" Dotted Spinner"
|
9
|
+
variant="dotted"
|
10
|
+
{...props}
|
11
|
+
/>
|
12
|
+
|
13
|
+
<br />
|
14
|
+
|
15
|
+
<LoadingInline
|
16
|
+
text=" Solid Spinner"
|
17
|
+
variant="solid"
|
18
|
+
{...props}
|
19
|
+
/>
|
20
|
+
</div>
|
21
|
+
)
|
22
|
+
}
|
23
|
+
|
24
|
+
export default LoadingInlineVariant
|
@@ -3,9 +3,11 @@ examples:
|
|
3
3
|
rails:
|
4
4
|
- loading_inline_default: Default
|
5
5
|
- loading_inline_custom: Custom Text
|
6
|
+
- loading_inline_variant: Variant
|
6
7
|
|
7
8
|
|
8
9
|
|
9
10
|
react:
|
10
11
|
- loading_inline_default: Default
|
11
12
|
- loading_inline_custom: Custom Text
|
13
|
+
- loading_inline_variant: Variant
|
@@ -26,7 +26,7 @@ const MapDefault = (props) => {
|
|
26
26
|
new maplibregl.Marker({
|
27
27
|
color: mapTheme.marker,
|
28
28
|
}).setLngLat(defaultPosition)
|
29
|
-
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="
|
29
|
+
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
|
30
30
|
.addTo(map);
|
31
31
|
|
32
32
|
// disable map zoom when using scroll
|
@@ -29,7 +29,7 @@ const MapWithCustomButton = (props) => {
|
|
29
29
|
new maplibregl.Marker({
|
30
30
|
color: mapTheme.marker,
|
31
31
|
}).setLngLat(defaultPosition)
|
32
|
-
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="
|
32
|
+
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
|
33
33
|
.addTo(map);
|
34
34
|
|
35
35
|
// disable map zoom when using scroll
|
@@ -26,7 +26,7 @@ const MapWithPlugin = (props) => {
|
|
26
26
|
new maplibregl.Marker({
|
27
27
|
color: mapTheme.marker,
|
28
28
|
}).setLngLat(defaultPosition)
|
29
|
-
.setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="
|
29
|
+
.setPopup(new maplibregl.Popup({className: 'map_popup', closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
|
30
30
|
.addTo(map);
|
31
31
|
|
32
32
|
//add maplibre default zoom controls
|
@@ -19,6 +19,7 @@ const RadioReactHook = () => {
|
|
19
19
|
paddingRight="lg"
|
20
20
|
>
|
21
21
|
<Radio
|
22
|
+
alignment="left"
|
22
23
|
label="Small"
|
23
24
|
marginBottom='sm'
|
24
25
|
name="size"
|
@@ -27,6 +28,7 @@ const RadioReactHook = () => {
|
|
27
28
|
/>
|
28
29
|
<br />
|
29
30
|
<Radio
|
31
|
+
alignment="left"
|
30
32
|
label="Medium"
|
31
33
|
marginBottom='sm'
|
32
34
|
name="size"
|
@@ -35,6 +37,7 @@ const RadioReactHook = () => {
|
|
35
37
|
/>
|
36
38
|
<br />
|
37
39
|
<Radio
|
40
|
+
alignment="left"
|
38
41
|
label="Large"
|
39
42
|
marginBottom='sm'
|
40
43
|
name="size"
|
@@ -7,7 +7,7 @@
|
|
7
7
|
]
|
8
8
|
%>
|
9
9
|
|
10
|
-
<%= pb_rails("typeahead", props: { id: "typeahead-pills-example1", default_options: [options.first], options: options, label: "
|
10
|
+
<%= pb_rails("typeahead", props: { id: "typeahead-pills-example1", default_options: [options.first], options: options, label: "Colors", name: :foo, pills: true }) %>
|
11
11
|
|
12
12
|
<%= pb_rails("button", props: {id: "clear-pills", text: "Clear All Options", variant: "secondary"}) %>
|
13
13
|
|
@@ -7,4 +7,25 @@
|
|
7
7
|
]
|
8
8
|
%>
|
9
9
|
|
10
|
-
<%= pb_rails("typeahead", props: { id: "typeahead-pills-
|
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 %>
|