playbook_ui_docs 14.25.0.pre.alpha.PLAY2467contactkitinternational10238 → 14.25.0.pre.alpha.dialogfix10277

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 (38) 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_contact/docs/_contact_default.html.erb +1 -16
  4. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +0 -15
  5. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb +0 -6
  6. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +0 -6
  7. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_loading.html.erb +16 -2
  8. data/app/pb_kits/playbook/pb_map/docs/_map_default.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_map/docs/_map_with_custom_button.jsx +1 -1
  10. data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +1 -1
  11. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +0 -3
  12. data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +3 -1
  13. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +1 -1
  15. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +1 -22
  16. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_without_pills.html.erb +2 -2
  18. data/dist/playbook-doc.js +2 -2
  19. metadata +2 -21
  20. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.md +0 -5
  21. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.html.erb +0 -8
  22. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx +0 -41
  23. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.html.erb +0 -33
  24. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -78
  25. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.html.erb +0 -3
  26. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -26
  27. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -20
  28. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -59
  29. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.html.erb +0 -24
  30. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +0 -61
  31. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +0 -24
  32. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.html.erb +0 -21
  33. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -54
  34. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.md +0 -1
  35. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.html.erb +0 -49
  36. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -99
  37. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -20
  38. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85940a040bf9846de81940b5f25012f0245a867eb292c4b4ebe658abbf7d624a
4
- data.tar.gz: 48a396a2872c5ef2fdc002e91992e47e3ac5a7de7b1c822d8f5550572970ce64
3
+ metadata.gz: 7abfec4ebca0921c366bb8d9cba6977195354e5bbd8d0606f3beeb18126a3439
4
+ data.tar.gz: 3cbe96b0139189a2670ca5315443ef39c42dc8e38b1bbe2718686be20704fd10
5
5
  SHA512:
6
- metadata.gz: cf6532a6f7406337a4a16ab4b6ddd8363efdb53f411f89da2dc8f869df7402847ec8a7a6cf784331b3147041dd6822422689400b1f10061709a095191b49a05a
7
- data.tar.gz: 14a90da47ffd6b03dfd585e99d3a80a573cb3325c1bbb75a9d8f6dd36b80cf63969aa5ccf3fbd9f311e96422b9b16070c4cbcab1be98c4163a79fd28bc12b173
6
+ metadata.gz: 1b86fdcf24cf3562cc06d1bf9c480ef10b7a8a4277cbe230df656e71d7d498394a2e5154c26b2420d5b333027fb9e931366a015d6e2e3d08cf1a957a40cd209c
7
+ data.tar.gz: 33efda48f5777e62098a09c416996b853572b55c2219930d80e1013923aa02a0b443c54a0f1250c0a28a32fab7efd210d93e0df535fe8dfa909488123af0ea28
@@ -50,7 +50,7 @@
50
50
  <% end %>
51
51
 
52
52
  <%= pb_rails("card", props: { padding: "none", header: true, margin_bottom: "sm"}) do %>
53
- <%= pb_rails("card/card_header", props: { padding: "sm", header_color: "bg_dark" }) do %>
53
+ <%= pb_rails("card/card_header", props: { padding: "sm", header_color: "dark" }) do %>
54
54
  <%= pb_rails("body", props: { text: "Dark", dark: true }) %>
55
55
  <% end %>
56
56
  <%= pb_rails("card/card_body", props: { padding: "md" }) do %>
@@ -13,7 +13,7 @@
13
13
  }) %>
14
14
 
15
15
  <%= pb_rails("contact", props: {
16
- contact_type: "work",
16
+ contact_type: "wrong number",
17
17
  contact_value: "3245627482",
18
18
  }) %>
19
19
 
@@ -21,18 +21,3 @@
21
21
  contact_type: "work-cell",
22
22
  contact_value: "349-185-9988",
23
23
  }) %>
24
-
25
- <%= pb_rails("contact", props: {
26
- contact_type: "wrong-phone",
27
- contact_value: "2124396666",
28
- }) %>
29
-
30
- <%= pb_rails("contact", props: {
31
- contact_type: "extension",
32
- contact_value: "1233",
33
- }) %>
34
-
35
- <%= pb_rails("contact", props: {
36
- contact_type: "international",
37
- contact_value: "+44 7700 900461",
38
- }) %>
@@ -28,21 +28,6 @@ const ContactDefault = (props) => {
28
28
  contactValue="3245627482"
29
29
  {...props}
30
30
  />
31
- <Contact
32
- contactType="wrong-phone"
33
- contactValue="2124396666"
34
- {...props}
35
- />
36
- <Contact
37
- contactType='extension'
38
- contactValue="1234"
39
- {...props}
40
- />
41
- <Contact
42
- contactType="international"
43
- contactValue="+44 7700 900461"
44
- {...props}
45
- />
46
31
  </div>
47
32
  )
48
33
  }
@@ -26,9 +26,3 @@
26
26
  contact_value: "1233",
27
27
  contact_detail: "Ext",
28
28
  }) %>
29
-
30
- <%= pb_rails("contact", props: {
31
- contact_type: "international",
32
- contact_value: "+44 7700 900461",
33
- contact_detail: "International",
34
- }) %>
@@ -33,12 +33,6 @@ const ContactDefault = (props) => {
33
33
  contactValue="1234"
34
34
  {...props}
35
35
  />
36
- <Contact
37
- contactDetail="International"
38
- contactType="international"
39
- contactValue="+44 7700 900461"
40
- {...props}
41
- />
42
36
  </div>
43
37
  )
44
38
  }
@@ -21,13 +21,27 @@
21
21
  let currentClass = okayLoadingButton.className;
22
22
  let cancelClass = cancelButton ? cancelButton.className : "";
23
23
 
24
+ okayLoadingButton.disabled = true;
25
+ okayLoadingButton.classList.add("pb_button_loading");
26
+ okayLoadingButton.classList.remove("pb_button_enabled");
27
+ okayLoadingButton.classList.add("pb_button_disabled");
28
+
29
+ if (cancelButton) {
30
+ cancelButton.disabled = true;
31
+ cancelButton.classList.remove("pb_button_enabled");
32
+ cancelButton.classList.add("pb_button_disabled");
33
+ }
34
+
24
35
  setTimeout(function() {
25
36
  okayLoadingButton.disabled = false;
26
- okayLoadingButton.className = currentClass.replace("_disabled_loading", "_enabled");
37
+ okayLoadingButton.classList.remove("pb_button_loading");
38
+ okayLoadingButton.classList.remove("pb_button_disabled");
39
+ okayLoadingButton.classList.add("pb_button_enabled");
27
40
 
28
41
  if (cancelButton) {
29
42
  cancelButton.disabled = false;
30
- cancelButton.className = cancelClass.replace("_disabled", "_enabled");
43
+ cancelButton.classList.remove("pb_button_disabled");
44
+ cancelButton.classList.add("pb_button_enabled");
31
45
  }
32
46
  }, 5000);
33
47
 
@@ -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_size_4">Hello World!</h4>`)) // add popup
29
+ .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_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_size_4">Hello World!</h4>`)) // add popup
32
+ .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_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({className: 'map_popup', closeButton: false}).setHTML(`<h4 class="pb_title_kit_size_4">Hello World!</h4>`)) // add popup
29
+ .setPopup(new maplibregl.Popup({closeButton: false}).setHTML(`<h4 class="pb_title_kit pb_title_4">Hello World!</h4>`)) // add popup
30
30
  .addTo(map);
31
31
 
32
32
  //add maplibre default zoom controls
@@ -19,7 +19,6 @@ const RadioReactHook = () => {
19
19
  paddingRight="lg"
20
20
  >
21
21
  <Radio
22
- alignment="left"
23
22
  label="Small"
24
23
  marginBottom='sm'
25
24
  name="size"
@@ -28,7 +27,6 @@ const RadioReactHook = () => {
28
27
  />
29
28
  <br />
30
29
  <Radio
31
- alignment="left"
32
30
  label="Medium"
33
31
  marginBottom='sm'
34
32
  name="size"
@@ -37,7 +35,6 @@ const RadioReactHook = () => {
37
35
  />
38
36
  <br />
39
37
  <Radio
40
- alignment="left"
41
38
  label="Large"
42
39
  marginBottom='sm'
43
40
  name="size"
@@ -5,7 +5,9 @@ import Detail from '../../pb_detail/_detail'
5
5
  import Icon from '../../pb_icon/_icon'
6
6
 
7
7
  const children = (
8
- <Flex padding="xs">
8
+ <Flex alignItems="center"
9
+ padding="xs"
10
+ >
9
11
  <Icon color="primary"
10
12
  icon="arrow-down"
11
13
  />
@@ -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: "Colors", name: :foo, pills: true }) %>
10
+ <%= pb_rails("typeahead", props: { id: "typeahead-pills-example1", default_options: [options.first], options: options, label: "Products", 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="Colors"
16
+ label="Products"
17
17
  options={options}
18
18
  placeholder=""
19
19
  {...props}
@@ -7,25 +7,4 @@
7
7
  ]
8
8
  %>
9
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 %>
10
+ <%= pb_rails("typeahead", props: { id: "typeahead-pills-example2", pill_color: "neutral", options: options, label: "Products", name: :foo, pills: true }) %>
@@ -13,7 +13,7 @@ const TypeaheadWithPills = (props) => {
13
13
  <>
14
14
  <Typeahead
15
15
  isMulti
16
- label="Colors"
16
+ label="Products"
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 Colors",
12
+ placeholder: "All Products",
13
13
  options: options,
14
- label: "Colors",
14
+ label: "Products",
15
15
  name: :foo,
16
16
  is_multi: false
17
17
  })