playbook_ui_docs 13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301 → 13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268

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 (32) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.md +0 -4
  3. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +0 -4
  4. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -3
  5. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb +1 -5
  6. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx +0 -1
  7. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.html.erb +0 -2
  8. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_size.jsx +0 -2
  9. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.html.erb +1 -4
  10. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_tag.jsx +2 -3
  11. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.html.erb +0 -2
  12. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_user.jsx +0 -2
  13. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.html.erb +7 -0
  14. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.jsx +46 -0
  15. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +1 -0
  16. data/app/pb_kits/playbook/pb_icon/docs/example.yml +2 -0
  17. data/app/pb_kits/playbook/pb_icon/docs/index.js +1 -0
  18. data/app/pb_kits/playbook/pb_nav/docs/example.yml +0 -1
  19. data/app/pb_kits/playbook/pb_star_rating/docs/example.yml +1 -1
  20. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +0 -2
  22. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +57 -22
  23. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -2
  24. data/dist/playbook-doc.js +9 -9
  25. metadata +5 -9
  26. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb +0 -10
  27. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx +0 -31
  28. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb +0 -10
  29. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx +0 -31
  30. data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb +0 -48
  31. data/app/pb_kits/playbook/pb_nav/docs/_tab_nav.md +0 -3
  32. data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb +0 -1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui_docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.32.0.pre.alpha.PBNTR405dropdownformfixesrails3301
4
+ version: 13.32.0.pre.alpha.PLAY1138iconkitaddcolorprop3268
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-07-19 00:00:00.000000000 Z
12
+ date: 2024-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -644,13 +644,9 @@ files:
644
644
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list.md
645
645
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
646
646
  - app/pb_kits/playbook/pb_draggable/docs/index.js
647
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.html.erb
648
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_blank_selection.jsx
649
647
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
650
648
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
651
649
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
652
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.html.erb
653
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default_value.jsx
654
650
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.html.erb
655
651
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_error.jsx
656
652
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
@@ -888,6 +884,9 @@ files:
888
884
  - app/pb_kits/playbook/pb_icon/docs/_icon_border.html.erb
889
885
  - app/pb_kits/playbook/pb_icon/docs/_icon_border.jsx
890
886
  - app/pb_kits/playbook/pb_icon/docs/_icon_border_swift.md
887
+ - app/pb_kits/playbook/pb_icon/docs/_icon_color.html.erb
888
+ - app/pb_kits/playbook/pb_icon/docs/_icon_color.jsx
889
+ - app/pb_kits/playbook/pb_icon/docs/_icon_color.md
891
890
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.html.erb
892
891
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.jsx
893
892
  - app/pb_kits/playbook/pb_icon/docs/_icon_custom.md
@@ -1195,8 +1194,6 @@ files:
1195
1194
  - app/pb_kits/playbook/pb_nav/docs/_subtle_no_highlight_nav.jsx
1196
1195
  - app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.html.erb
1197
1196
  - app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx
1198
- - app/pb_kits/playbook/pb_nav/docs/_tab_nav.html.erb
1199
- - app/pb_kits/playbook/pb_nav/docs/_tab_nav.md
1200
1197
  - app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.html.erb
1201
1198
  - app/pb_kits/playbook/pb_nav/docs/_with_icons_nav.jsx
1202
1199
  - app/pb_kits/playbook/pb_nav/docs/_with_img_nav.html.erb
@@ -1527,7 +1524,6 @@ files:
1527
1524
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_default.jsx
1528
1525
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.html.erb
1529
1526
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_hide.jsx
1530
- - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb
1531
1527
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.html.erb
1532
1528
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_number_config.jsx
1533
1529
  - app/pb_kits/playbook/pb_star_rating/docs/_star_rating_size_options.html.erb
@@ -1,10 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'United States', value: 'United States', id: 'us' },
4
- { label: 'Canada', value: 'Canada', id: 'ca' },
5
- { label: 'Pakistan', value: 'Pakistan', id: 'pk' },
6
- ]
7
-
8
- %>
9
-
10
- <%= pb_rails("dropdown", props: { blank_selection: "Select One...", options: options }) %>
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
- import { Dropdown } from '../../'
3
-
4
- const DropdownBlankSelection = (props) => {
5
- const options = [
6
- {
7
- label: "United States",
8
- value: "United States",
9
- },
10
- {
11
- label: "Canada",
12
- value: "Canada",
13
- },
14
- {
15
- label: "Pakistan",
16
- value: "Pakistan",
17
- }
18
- ];
19
-
20
- return (
21
- <>
22
- <Dropdown
23
- blankSelection="Select one..."
24
- options={options}
25
- {...props}
26
- />
27
- </>
28
- )
29
- }
30
-
31
- export default DropdownBlankSelection
@@ -1,10 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'United States', value: 'United States', id: 'us' },
4
- { label: 'Canada', value: 'Canada', id: 'ca' },
5
- { label: 'Pakistan', value: 'Pakistan', id: 'pk' },
6
- ]
7
-
8
- %>
9
-
10
- <%= pb_rails("dropdown", props: {options: options, default_value: options.last}) %>
@@ -1,31 +0,0 @@
1
- import React from 'react'
2
- import { Dropdown } from '../../'
3
-
4
- const DropdownDefaultValue = (props) => {
5
- const options = [
6
- {
7
- label: "United States",
8
- value: "United States",
9
- },
10
- {
11
- label: "Canada",
12
- value: "Canada",
13
- },
14
- {
15
- label: "Pakistan",
16
- value: "Pakistan",
17
- }
18
- ];
19
-
20
- return (
21
- <>
22
- <Dropdown
23
- defaultValue={options[2]}
24
- options={options}
25
- {...props}
26
- />
27
- </>
28
- )
29
- }
30
-
31
- export default DropdownDefaultValue
@@ -1,48 +0,0 @@
1
- <%= pb_rails("nav", props: { orientation: "horizontal", tabbing: true, padding_bottom: "sm" }) do %>
2
- <%= pb_rails("nav/item", props: { text: "About", active: true, data: { pb_tab_target: "about" }, cursor: "pointer" }) %>
3
- <%= pb_rails("nav/item", props: { text: "Case Studies", data: { pb_tab_target: "case_studies" }, cursor: "pointer" }) %>
4
- <%= pb_rails("nav/item", props: { text: "Service", data: { pb_tab_target: "service" }, cursor: "pointer" }) %>
5
- <%= pb_rails("nav/item", props: { text: "Contacts", data: { pb_tab_target: "contacts" }, cursor: "pointer" }) %>
6
- <% end %>
7
-
8
- <div id="about">
9
- <%= pb_rails("body", props: { text: "This is about!" }) %>
10
- </div>
11
-
12
- <div id="case_studies">
13
- <%= pb_rails("body", props: { text: "This is case studies!" }) %>
14
- </div>
15
-
16
- <div id="service">
17
- <%= pb_rails("body", props: { text: "This is service!" }) %>
18
- </div>
19
-
20
- <div id="contacts">
21
- <%= pb_rails("body", props: { text: "This is contacts!" }) %>
22
- </div>
23
-
24
- <script>
25
- // The script in the code snippet below is for demonstrating the active state and NOT needed for the kit to function.
26
- // The active prop can be used to highlight this active state.
27
- const navItemClass = "pb_nav_list_kit_item"
28
- const navItemActiveClass = "pb_nav_list_kit_item_active"
29
- const dataNavItems = "[data-pb-tab-target]"
30
-
31
- const navItemTabs = document.querySelectorAll(dataNavItems)
32
- navItemTabs.forEach(navItemTab => {
33
- navItemTab.addEventListener("click", event => {
34
- const navItemTabs = document.querySelectorAll(dataNavItems)
35
- navItemTabs.forEach(navItemTab => {
36
- if (navItemTab === event.target.closest(dataNavItems)) {
37
- navItemTab.classList.add(navItemActiveClass)
38
- navItemTab.classList.remove(navItemClass)
39
- } else {
40
- if (navItemTab.classList.contains(navItemActiveClass)) {
41
- navItemTab.classList.remove(navItemActiveClass)
42
- navItemTab.classList.add(navItemClass)
43
- }
44
- }
45
- })
46
- })
47
- })
48
- </script>
@@ -1,3 +0,0 @@
1
- The Nav kit can also be used to create dynamic tabbing. To do so, use the boolean `tabbing` prop as shown here.
2
-
3
- All divs you want to use as tabs MUST have an id attached to them. To link the tab to the nav, use the required data attribute `pb_tab_target` on each nav/item and pass it the id of the tab you want linked to that specific nav/item. See code example below to see this in action.
@@ -1 +0,0 @@
1
- <%= pb_rails("star_rating", props: { padding_bottom: "xs", variant: "interactive" }) %>