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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
  3. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +2 -16
  4. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +8 -0
  5. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +41 -0
  6. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +33 -0
  7. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +78 -0
  8. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +3 -0
  9. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +26 -0
  10. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +20 -0
  11. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +59 -0
  12. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +24 -0
  13. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +61 -0
  14. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +24 -0
  15. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +21 -0
  16. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +54 -0
  17. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +1 -0
  18. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +49 -0
  19. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +99 -0
  20. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +20 -0
  21. data/app/pb_kits/playbook/pb_drawer/docs/index.js +7 -0
  22. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb +5 -0
  23. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +24 -0
  24. data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +2 -0
  25. data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
  26. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
  27. data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -0
  30. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +1 -3
  31. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +1 -1
  32. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +22 -1
  34. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_without_pills.html.erb +2 -2
  36. data/dist/playbook-doc.js +2 -2
  37. 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,5 @@
1
+ <%= pb_rails("loading_inline", props: {text: "Dotted Spinner", variant: "dotted"}) %>
2
+
3
+ <br/>
4
+
5
+ <%= pb_rails("loading_inline", props: {text: "Solid Spinner", variant: "solid"}) %>
@@ -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
@@ -1,2 +1,3 @@
1
1
  export { default as LoadingInlineDefault } from './_loading_inline_default.jsx'
2
2
  export { default as LoadingInlineCustom } from './_loading_inline_custom.jsx'
3
+ export { default as LoadingInlineVariant } from './_loading_inline_variant.jsx'
@@ -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="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
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="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
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="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
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"
@@ -5,9 +5,7 @@ import Detail from '../../pb_detail/_detail'
5
5
  import Icon from '../../pb_icon/_icon'
6
6
 
7
7
  const children = (
8
- <Flex alignItems="center"
9
- padding="xs"
10
- >
8
+ <Flex padding="xs">
11
9
  <Icon color="primary"
12
10
  icon="arrow-down"
13
11
  />
@@ -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: "Products", name: :foo, pills: true }) %>
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
 
@@ -13,7 +13,7 @@ const TypeaheadWithPills = (props) => {
13
13
  <>
14
14
  <Typeahead
15
15
  isMulti
16
- label="Products"
16
+ label="Colors"
17
17
  options={options}
18
18
  placeholder=""
19
19
  {...props}
@@ -7,4 +7,25 @@
7
7
  ]
8
8
  %>
9
9
 
10
- <%= pb_rails("typeahead", props: { id: "typeahead-pills-example2", pill_color: "neutral", options: options, label: "Products", name: :foo, pills: true }) %>
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 %>
@@ -13,7 +13,7 @@ const TypeaheadWithPills = (props) => {
13
13
  <>
14
14
  <Typeahead
15
15
  isMulti
16
- label="Products"
16
+ label="Colors"
17
17
  options={options}
18
18
  pillColor="neutral"
19
19
  placeholder=""
@@ -9,9 +9,9 @@
9
9
 
10
10
  <%= pb_rails("typeahead", props: {
11
11
  id: "typeahead-without-pills-example1",
12
- placeholder: "All Products",
12
+ placeholder: "All Colors",
13
13
  options: options,
14
- label: "Products",
14
+ label: "Colors",
15
15
  name: :foo,
16
16
  is_multi: false
17
17
  })