playbook_ui_docs 13.0.0 → 13.2.0.pre.alpha.PLAY986dateTimeRounding1150

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_file_upload/docs/_description.md +0 -7
  3. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom.html.erb +7 -0
  4. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom.md +1 -0
  5. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.html.erb +3 -0
  6. data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +2 -0
  7. data/app/pb_kits/playbook/pb_file_upload/docs/test.html +25 -0
  8. data/app/pb_kits/playbook/pb_nav/docs/_block_no_title_nav.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_nav/docs/_borderless_nav.jsx +4 -1
  10. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.html.erb +4 -4
  11. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.jsx +4 -10
  12. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md +1 -1
  13. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx +6 -1
  14. data/app/pb_kits/playbook/pb_nav/docs/{_collapsible_nav_emphasize.jsx → _collapsible_nav_item_spacing.jsx} +18 -17
  15. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md +1 -0
  16. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.html.erb +23 -0
  17. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.jsx +55 -0
  18. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_with_all_options.md +4 -0
  19. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.html.erb +6 -0
  20. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.jsx +46 -0
  21. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_font_control.md +4 -0
  22. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.html.erb +6 -0
  23. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.jsx +47 -0
  24. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.md +1 -0
  25. data/app/pb_kits/playbook/pb_nav/docs/_no_highlight_nav.jsx +4 -1
  26. data/app/pb_kits/playbook/pb_nav/docs/_subtle_nav.jsx +4 -1
  27. data/app/pb_kits/playbook/pb_nav/docs/_subtle_with_icons_nav.jsx +4 -1
  28. data/app/pb_kits/playbook/pb_nav/docs/example.yml +10 -5
  29. data/app/pb_kits/playbook/pb_nav/docs/index.js +4 -1
  30. data/app/pb_kits/playbook/pb_select/docs/_select_multiple.md +1 -1
  31. data/dist/playbook-doc.js +9 -9
  32. metadata +22 -10
  33. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.html.erb +0 -23
  34. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_emphasize.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51135798aedd7950657c2bb5395d2ca5d6a24ef73cd9d6896bd03698c22383b7
4
- data.tar.gz: c5996c0b91ea99079247e9763ed70252235cebe185cf41608b32ec69d9e55421
3
+ metadata.gz: 90f6896845509edb763de24ac67790c51a4f59d7cefbb44a4e366e8365387e36
4
+ data.tar.gz: e3d50fff0e5bf4ac3ec0e7374f7b71e3804e057b77396d355f2e8376d8303eda
5
5
  SHA512:
6
- metadata.gz: 8896446aaafd2f5f1c0ae0a713875738eb72a037493c039dd86eca14c32b9c42413c6dce3a92ef7c5f8f9687e5736bdcc86fbe2ee7776e34d53162e7bf4fb19a
7
- data.tar.gz: e737d8d82b1e0f7cbd1fec4f47ef7bfee68ea1455b69acbf284d3eb329f94bc032b8626b94b6e277192bec32b31d122698969be5d8a47e16120f494f8e23867e
6
+ metadata.gz: 7df4fd817d0258ae5c6638320a14c37f8bbcfe11b105cce3f1e8da08a35343907839bf5f23b8ff4bab59bf83c2c4783158d450f1ecd1403e0053c1d0e9135b85
7
+ data.tar.gz: 762869ca5dd0867b61d5b6e5a0e69769f8684733fb413a4c988096a94ffabe4a9f1d49384b832821584aba0b42ad96b918550db7ef110c1a05da6364327315ce
@@ -1,7 +0,0 @@
1
- This kit provides a drag and drop interface for file uploads. Currently, the kit leverages [react-dropzone](https://github.com/react-dropzone/react-dropzone).
2
-
3
- ### Props
4
-
5
- `accept: [String]` Use this prop to set the list of valid file types
6
- `customMessage: [String]` Use this prop to set a custom message, replacing the default text
7
- `onFilesAccepted: Function` The callback function, providing the list of dropped files
@@ -0,0 +1,7 @@
1
+ <%= pb_rails("file_upload", props: {id: "import_file"}) do %>
2
+ <input
3
+ id="import_file"
4
+ type="file"
5
+ name="import_file"
6
+ />
7
+ <% end %>
@@ -0,0 +1 @@
1
+ The `id` for the File Upload and the existing input you are choosing to wrap with our Kit with must match each other. This will ensure that the click on the button a.k.a, the underlying label's `for`, triggers the File Upload.
@@ -0,0 +1,3 @@
1
+ <%= pb_rails("file_upload") %>
2
+
3
+
@@ -1,6 +1,8 @@
1
1
  examples:
2
2
 
3
3
  rails:
4
+ - file_upload_default: File Upload
5
+ - file_upload_custom: Custom
4
6
 
5
7
  react:
6
8
  - file_upload_default: Default List of files to upload
@@ -0,0 +1,25 @@
1
+
2
+ <div class="pb_file_upload_kit" id="import_file">
3
+ <div class="pb_form_group_kit cursor_pointer">
4
+ <label for="import_file" class="pb_button_kit_secondary_inline_enabled">Upload File</label>
5
+ <div class="pb_text_input_kit">
6
+ <div class=" text_input_wrapper">
7
+ <input placeholder="custom-placeholder" id="import_file" type="file">
8
+ </div>
9
+ </div>
10
+ </div>
11
+ </div>
12
+
13
+ <h1>not custom</h1>
14
+
15
+ <div class="pb_file_upload_kit" id="test">
16
+ <div class="pb_form_group_kit cursor_pointer">
17
+ <label for="upload-test" class="pb_button_kit_secondary_inline_enabled">Upload File</label>
18
+ <div class="pb_text_input_kit">
19
+ <div class=" text_input_wrapper">
20
+ <input class="text_input cursor_pointer" id="upload-test" type="file" classname="cursor_pointer">
21
+ </div>
22
+ </div>
23
+ </div>
24
+ </div>
25
+
@@ -5,7 +5,7 @@ import NavItem from '../_item'
5
5
 
6
6
  const BlockNoTitleNav = (props) => {
7
7
  return (
8
- <Nav>
8
+ <Nav {...props}>
9
9
  <NavItem
10
10
  iconLeft="newspaper"
11
11
  link="#"
@@ -5,7 +5,10 @@ import NavItem from '../_item'
5
5
 
6
6
  const BorderlessNav = (props) => {
7
7
  return (
8
- <Nav borderless>
8
+ <Nav
9
+ borderless
10
+ {...props}
11
+ >
9
12
  <NavItem
10
13
  active
11
14
  link="#"
@@ -1,20 +1,20 @@
1
- <%= pb_rails("nav", props: { variant: "subtle" }) do %>
1
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
2
2
  <%= pb_rails("nav/item", props: { text: "Overview", link: "#", collapsible: true, icon_left:"city" }) do %>
3
- <%= pb_rails("nav", props: { variant: "subtle" }) do %>
3
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
4
4
  <%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
5
5
  <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
6
6
  <%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
7
7
  <% end %>
8
8
  <% end %>
9
9
  <%= pb_rails("nav/item", props: { text: "Albums", link: "#", active: true, collapsible: true, icon_left: "theater-masks" }) do %>
10
- <%= pb_rails("nav", props: { variant: "subtle" }) do %>
10
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
11
11
  <%= pb_rails("nav/item", props: { text: "Entertainment", link: "#" }) %>
12
12
  <%= pb_rails("nav/item", props: { text: "Food", link: "#" }) %>
13
13
  <%= pb_rails("nav/item", props: { text: "Style", link: "#" }) %>
14
14
  <% end %>
15
15
  <% end %>
16
16
  <%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", collapsible: true, icon_left: "city" }) do %>
17
- <%= pb_rails("nav", props: { variant: "subtle" }) do %>
17
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
18
18
  <%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
19
19
  <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
20
20
  <%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
@@ -3,14 +3,14 @@ import { Nav, NavItem } from '../..'
3
3
 
4
4
  const CollapsibleNav = (props) => {
5
5
  return (
6
- <Nav>
6
+ <Nav
7
+ variant="bold"
8
+ {...props}
9
+ >
7
10
  <NavItem
8
11
  active
9
12
  collapsible
10
- collapsibleTrail
11
- fontWeight="bolder"
12
13
  iconLeft="city"
13
- iconRight={["plus", "minus"]}
14
14
  link="#"
15
15
  text="Overview"
16
16
  {...props}
@@ -33,10 +33,7 @@ const CollapsibleNav = (props) => {
33
33
  </NavItem>
34
34
  <NavItem
35
35
  collapsible
36
- collapsibleTrail
37
- fontWeight="bolder"
38
36
  iconLeft="theater-masks"
39
- iconRight={["plus", "minus"]}
40
37
  link="#"
41
38
  text="Albums"
42
39
  {...props}
@@ -59,10 +56,7 @@ const CollapsibleNav = (props) => {
59
56
  </NavItem>
60
57
  <NavItem
61
58
  collapsible
62
- collapsibleTrail
63
- fontWeight="bolder"
64
59
  iconLeft="city"
65
- iconRight={["plus", "minus"]}
66
60
  link="#"
67
61
  text="Similar Artists"
68
62
  {...props}
@@ -1 +1 @@
1
- The `collapsible` prop allows users to create a nested, collapsible nav. Pass `collapsible` to NavItem and nest as many more NavItems as needed as children for that NavItem to see this in action.
1
+ The `collapsible` prop allows users to create a nested, collapsible nav. Pass `collapsible` to any NavItem and pass that navItem any number of NavItems as children to create a collapsible nav.
@@ -18,7 +18,10 @@ const CollapsibleNavCustom = (props) => {
18
18
 
19
19
  return (
20
20
  <>
21
- <Nav variant='bold'>
21
+ <Nav
22
+ variant="bold"
23
+ {...props}
24
+ >
22
25
  {navItems.map((text, index) => {
23
26
  const [collapsed] = collapsibles[index]
24
27
  return (
@@ -26,8 +29,10 @@ const CollapsibleNavCustom = (props) => {
26
29
  collapsed={collapsed}
27
30
  collapsible
28
31
  collapsibleTrail
32
+ fontSize="small"
29
33
  fontWeight="bolder"
30
34
  iconLeft="chevron-down"
35
+ iconRight={["plus", "minus"]}
31
36
  id={`collapsible-nav-item-${index + 1}`}
32
37
  key={index}
33
38
  link="#"
@@ -1,87 +1,88 @@
1
1
  import React from "react";
2
2
  import { Nav, NavItem } from '../..'
3
3
 
4
- const CollapsibleNavEmphasize = (props) => {
4
+ const CollapsibleNavItemSpacing = (props) => {
5
5
  return (
6
- <Nav variant="bold">
6
+ <Nav
7
+ itemSpacing={{padding: "xs", marginY: "none"}}
8
+ variant="bold"
9
+ {...props}
10
+ >
7
11
  <NavItem
8
- active
9
- collapsible
10
- collapsibleTrail
11
- fontSize="small"
12
- fontWeight="bolder"
12
+ active
13
+ collapsible
13
14
  iconLeft="city"
14
- iconRight={["plus", "minus"]}
15
15
  link="#"
16
16
  text="Overview"
17
17
  {...props}
18
18
  >
19
19
  <NavItem
20
20
  link="#"
21
+ paddingY="none"
21
22
  text="City"
22
23
  {...props}
23
24
  />
24
25
  <NavItem
25
26
  link="#"
27
+ paddingY="none"
26
28
  text="People"
27
29
  {...props}
28
30
  />
29
31
  <NavItem
30
32
  link="#"
33
+ paddingY="none"
31
34
  text="Business"
32
35
  {...props}
33
36
  />
34
37
  </NavItem>
35
38
  <NavItem
36
39
  collapsible
37
- collapsibleTrail
38
- fontSize="small"
39
- fontWeight="bolder"
40
40
  iconLeft="theater-masks"
41
- iconRight={["plus", "minus"]}
42
41
  link="#"
43
42
  text="Albums"
44
43
  {...props}
45
44
  >
46
45
  <NavItem
47
46
  link="#"
47
+ paddingY="none"
48
48
  text="Entertainment"
49
49
  {...props}
50
50
  />
51
51
  <NavItem
52
52
  link="#"
53
+ paddingY="none"
53
54
  text="Food"
54
55
  {...props}
55
56
  />
56
57
  <NavItem
57
58
  link="#"
59
+ paddingY="none"
58
60
  text="Style"
59
61
  {...props}
60
62
  />
61
63
  </NavItem>
62
64
  <NavItem
63
65
  collapsible
64
- collapsibleTrail
65
- fontSize="small"
66
- fontWeight="bolder"
67
66
  iconLeft="city"
68
- iconRight={["plus", "minus"]}
69
67
  link="#"
70
68
  text="Similar Artists"
71
69
  {...props}
72
70
  >
73
71
  <NavItem
74
72
  link="#"
73
+ paddingY="none"
75
74
  text="City"
76
75
  {...props}
77
76
  />
78
77
  <NavItem
79
78
  link="#"
79
+ paddingY="none"
80
80
  text="People"
81
81
  {...props}
82
82
  />
83
83
  <NavItem
84
84
  link="#"
85
+ paddingY="none"
85
86
  text="Business"
86
87
  {...props}
87
88
  />
@@ -90,4 +91,4 @@ const CollapsibleNavEmphasize = (props) => {
90
91
  );
91
92
  };
92
93
 
93
- export default CollapsibleNavEmphasize;
94
+ export default CollapsibleNavItemSpacing
@@ -0,0 +1 @@
1
+ The `itemSpacing` prop can optionally be applied to the `Nav` parent element and accepts an object through which any of our [Spacing](https://playbook.powerapp.cloud/visual_guidelines/spacing) (padding, margin) global prop values can be passed as an object. All spacing values passed to `itemSpacing` will be applied to all navItems within the nav. Spacing (padding, margin) global props can still be used on nested navItems in conjunction with `itenSpacing` on the Nav for customized control. Any Spacing (padding,margin) global props applied directly to a navItem will override any competing `itemSpacing` value.
@@ -0,0 +1,23 @@
1
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
2
+ <%= pb_rails("nav/item", props: { text: "Overview", link: "#", collapsible: true, icon_left:"city", collapsible_trail: true, font_weight:"bolder", font_size:"small", icon_right:["plus", "minus"] }) do %>
3
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
4
+ <%= pb_rails("nav/item", props: { text: "City", link: "#", font_size:"small", margin_y:"none" }) %>
5
+ <%= pb_rails("nav/item", props: { text: "People", link: "#", font_size:"small", margin_y:"none" }) %>
6
+ <%= pb_rails("nav/item", props: { text: "Business", link: "#", font_size:"small", margin_y:"none" }) %>
7
+ <% end %>
8
+ <% end %>
9
+ <%= pb_rails("nav/item", props: { text: "Albums", link: "#", active: true, collapsible: true, icon_left: "theater-masks", collapsible_trail: true, font_weight:"bolder", font_size:"small", icon_right:["plus", "minus"] }) do %>
10
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
11
+ <%= pb_rails("nav/item", props: { text: "Entertainment", link: "#", font_size:"small", margin_y:"none" }) %>
12
+ <%= pb_rails("nav/item", props: { text: "Food", link: "#", font_size:"small", margin_y:"none" }) %>
13
+ <%= pb_rails("nav/item", props: { text: "Style", link: "#", font_size:"small", margin_y:"none" }) %>
14
+ <% end %>
15
+ <% end %>
16
+ <%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", collapsible: true, icon_left: "city", collapsible_trail: true, font_weight:"bolder", font_size:"small", icon_right:["plus", "minus"] }) do %>
17
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
18
+ <%= pb_rails("nav/item", props: { text: "City", link: "#", font_size:"small", margin_y:"none" }) %>
19
+ <%= pb_rails("nav/item", props: { text: "People", link: "#", font_size:"small", margin_y:"none" }) %>
20
+ <%= pb_rails("nav/item", props: { text: "Business", link: "#", font_size:"small", margin_y:"none" }) %>
21
+ <% end %>
22
+ <% end %>
23
+ <% end %>
@@ -0,0 +1,55 @@
1
+ import React from "react"
2
+ import { Nav, NavItem } from "../.."
3
+
4
+ const CollapsibleNavWithAllOptions = (props) => {
5
+ const navItems = ["Overview", "Albums", "Similar Artists"]
6
+
7
+ return (
8
+ <>
9
+ <Nav
10
+ variant="bold"
11
+ {...props}
12
+ >
13
+ {navItems.map((text, index) => {
14
+ return (
15
+ <NavItem
16
+ collapsible
17
+ collapsibleTrail
18
+ fontWeight="bolder"
19
+ iconLeft="city"
20
+ iconRight={["plus", "minus"]}
21
+ key={index}
22
+ link="#"
23
+ text={text}
24
+ {...props}
25
+ >
26
+ <NavItem
27
+ fontSize="small"
28
+ link="#"
29
+ marginY="none"
30
+ text="City"
31
+ {...props}
32
+ />
33
+ <NavItem
34
+ fontSize="small"
35
+ link="#"
36
+ marginY="none"
37
+ text="People"
38
+ {...props}
39
+ />
40
+ <NavItem
41
+ fontSize="small"
42
+ link="#"
43
+ marginY="none"
44
+ text="Business"
45
+ {...props}
46
+ />
47
+ </NavItem>
48
+ );
49
+ })}
50
+ </Nav>
51
+ </>
52
+ )
53
+ }
54
+
55
+ export default CollapsibleNavWithAllOptions
@@ -0,0 +1,4 @@
1
+ Collapsible Navs optionally accept the following props:
2
+
3
+ - `collapsibleTrail` / `collapsible_trail`, enables a vertical guideline to the left of the collapsible nav's children
4
+ - `iconRight` optionally accepts an array of 2 icon values; the first is used as the default icon when the node is collapsed, the second is toggled when the node is expanded. If only 1 icon value is passed, the icon will not toggle between collapsible states.
@@ -0,0 +1,6 @@
1
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
2
+ <%= pb_rails("nav/item", props: { text: "About", link: "#", font_weight:"bolder", font_size:"small" }) %>
3
+ <%= pb_rails("nav/item", props: { text: "Case Studies", link: "#", active: true, font_weight:"bolder", font_size:"small" }) %>
4
+ <%= pb_rails("nav/item", props: { text: "Service", link: "#", font_weight:"bolder", font_size:"small" }) %>
5
+ <%= pb_rails("nav/item", props: { text: "Contacts", link: "#", font_weight:"bolder", font_size:"small" }) %>
6
+ <% end %>
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import { Nav, NavItem } from '../..'
3
+
4
+ const NavWithFontControl = (props) => {
5
+ return (
6
+ <Nav
7
+ link="#"
8
+ orientation="vertical"
9
+ variant="bold"
10
+ {...props}
11
+ >
12
+ <NavItem
13
+ fontSize="small"
14
+ fontWeight="bolder"
15
+ link="#"
16
+ text="About"
17
+ {...props}
18
+ />
19
+ <NavItem
20
+ active
21
+ fontSize="small"
22
+ fontWeight="bolder"
23
+ link="#"
24
+ text="Case Studies"
25
+ {...props}
26
+ />
27
+ <NavItem
28
+ fontSize="small"
29
+ fontWeight="bolder"
30
+ link="#"
31
+ text="Service"
32
+ {...props}
33
+ />
34
+ <NavItem
35
+ fontSize="small"
36
+ fontWeight="bolder"
37
+ link="#"
38
+ text="Contacts"
39
+ {...props}
40
+ />
41
+ </Nav>
42
+
43
+ );
44
+ };
45
+
46
+ export default NavWithFontControl;
@@ -0,0 +1,4 @@
1
+ All Nav variants' navItems accept the following props for customizing font:
2
+
3
+ - `fontSize` / `font_size` defaults to `normal`, also accepts `small`
4
+ - `fontWeight` / `font_weight` defaults to `regular`, also accepts `bold` and `bolder`
@@ -0,0 +1,6 @@
1
+ <%= pb_rails("nav", props: { variant: "bold" }) do %>
2
+ <%= pb_rails("nav/item", props: { text: "About", link: "#", padding_y:"xxs", margin:"none" }) %>
3
+ <%= pb_rails("nav/item", props: { text: "Case Studies", link: "#", active: true, padding_y:"xxs", margin:"none" }) %>
4
+ <%= pb_rails("nav/item", props: { text: "Service", link: "#", padding_y:"xxs", margin:"none" }) %>
5
+ <%= pb_rails("nav/item", props: { text: "Contacts", link: "#", padding_y:"xxs", margin:"none" }) %>
6
+ <% end %>
@@ -0,0 +1,47 @@
1
+ import React from 'react'
2
+
3
+ import Nav from '../_nav'
4
+ import NavItem from '../_item'
5
+
6
+ const NavWithSpacingControl = (props) => {
7
+ return (
8
+ <Nav
9
+ link="#"
10
+ orientation="vertical"
11
+ variant="bold"
12
+ {...props}
13
+ >
14
+ <NavItem
15
+ link="#"
16
+ margin="none"
17
+ paddingY="xxs"
18
+ text="About"
19
+ {...props}
20
+ />
21
+ <NavItem
22
+ active
23
+ link="#"
24
+ margin="none"
25
+ paddingY="xxs"
26
+ text="Case Studies"
27
+ {...props}
28
+ />
29
+ <NavItem
30
+ link="#"
31
+ margin="none"
32
+ paddingY="xxs"
33
+ text="Service"
34
+ {...props}
35
+ />
36
+ <NavItem
37
+ link="#"
38
+ margin="none"
39
+ paddingY="xxs"
40
+ text="Contacts"
41
+ {...props}
42
+ />
43
+ </Nav>
44
+ )
45
+ }
46
+
47
+ export default NavWithSpacingControl
@@ -0,0 +1 @@
1
+ All Nav variants' navItems accept our [global Spacing](https://playbook.powerapp.cloud/visual_guidelines/spacing) (padding, margin) props for custom spacing requirements. This example uses paddingY="xxs" and margin="none" on the bold variant to show this in action!
@@ -5,7 +5,10 @@ import NavItem from '../_item'
5
5
 
6
6
  const NoHighlightNav = (props) => {
7
7
  return (
8
- <Nav highlight={false}>
8
+ <Nav
9
+ highlight={false}
10
+ {...props}
11
+ >
9
12
  <NavItem
10
13
  active
11
14
  link="#"
@@ -5,7 +5,10 @@ import NavItem from '../_item'
5
5
 
6
6
  const SubtleNav = (props) => {
7
7
  return (
8
- <Nav variant="subtle">
8
+ <Nav
9
+ variant="subtle"
10
+ {...props}
11
+ >
9
12
  <NavItem
10
13
  link="#"
11
14
  text="Overview"
@@ -5,7 +5,10 @@ import NavItem from '../_item'
5
5
 
6
6
  const SubtleWithIconsNav = (props) => {
7
7
  return (
8
- <Nav variant="subtle">
8
+ <Nav
9
+ variant="subtle"
10
+ {...props}
11
+ >
9
12
  <NavItem
10
13
  iconLeft="city"
11
14
  link="#"
@@ -7,10 +7,12 @@ examples:
7
7
  - borderless_nav: No Borders
8
8
  - subtle_nav: Subtle Variant
9
9
  - subtle_with_icons_nav: Subtle With Icons
10
- # - collapsible_nav: Collapsible Nav
11
- # - collapsible_nav_emphasize: Collapsible Nav with Emphasize Styling
12
10
  - subtle_no_highlight_nav: Subtle No Highlight
13
11
  - bold_vertical_nav: Bold Variant
12
+ - nav_with_spacing_control: Nav with Spacing Control
13
+ - nav_with_font_control: Nav With Font Control
14
+ - collapsible_nav: Collapsible Nav
15
+ - collapsible_nav_with_all_options: Collapsible Nav With Options
14
16
  - horizontal_nav: Horizontal Nav
15
17
  - subtle_horizontal_nav: Subtle Horizontal Nav
16
18
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -26,11 +28,14 @@ examples:
26
28
  - borderless_nav: No Borders
27
29
  - subtle_nav: Subtle Variant
28
30
  - subtle_with_icons_nav: Subtle With Icons
29
- # - collapsible_nav: Collapsible Nav
30
- # - collapsible_nav_emphasize: Collapsible Nav with Emphasize Styling
31
- # - collapsible_nav_custom: Collapsible Nav With Custom Toggling
32
31
  - subtle_no_highlight_nav: Subtle No Highlight
33
32
  - bold_vertical_nav: Bold Variant
33
+ - nav_with_spacing_control: Nav with Spacing Control
34
+ - nav_with_font_control: Nav With Font Control
35
+ - collapsible_nav: Collapsible Nav
36
+ - collapsible_nav_with_all_options: Collapsible Nav With Options
37
+ - collapsible_nav_item_spacing: Collapsible Nav With ItemSpacing
38
+ - collapsible_nav_custom: Collapsible Nav With Custom Toggling
34
39
  - horizontal_nav: Horizontal Nav
35
40
  - subtle_horizontal_nav: Subtle Horizontal Nav
36
41
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -15,4 +15,7 @@ export { default as BoldHorizontalNav } from './_bold_horizontal_nav.jsx'
15
15
  export { default as BoldVerticalNav } from './_bold_vertical_nav.jsx'
16
16
  export { default as CollapsibleNav } from './_collapsible_nav.jsx'
17
17
  export { default as CollapsibleNavCustom } from './_collapsible_nav_custom.jsx'
18
- export { default as CollapsibleNavEmphasize } from "./_collapsible_nav_emphasize.jsx"
18
+ export {default as CollapsibleNavWithAllOptions} from "./_collapsible_nav_with_all_options.jsx"
19
+ export { default as NavWithFontControl } from "./_nav_with_font_control.jsx"
20
+ export {default as NavWithSpacingControl } from "./_nav_with_spacing_control.jsx"
21
+ export {default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_spacing.jsx"
@@ -1 +1 @@
1
- We recommend using a typeahead for better UX
1
+ The `multiple` prop enables multiple selections; however, for a better user experience, we recommend our [Typeahead](https://playbook.powerapp.cloud/kits/typeahead/react) kit.