playbook_ui_docs 15.3.0.pre.alpha.play249512047 → 15.3.0.pre.alpha.play259311731

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color.md +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_border_color_rails.md +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +1 -4
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +2 -3
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +1 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +1 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +1 -1
  9. data/app/pb_kits/playbook/pb_background/docs/_background_category.md +1 -1
  10. data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
  11. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  12. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  13. data/app/pb_kits/playbook/pb_card/docs/_card_light.md +1 -1
  14. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  15. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +1 -1
  16. data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.md +1 -1
  17. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +1 -1
  18. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +1 -1
  19. data/app/pb_kits/playbook/pb_icon/docs/_icon_color.md +1 -1
  20. data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.md +1 -1
  21. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.html.erb +14 -7
  22. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_icon_stat_value_color.jsx +15 -6
  23. data/app/pb_kits/playbook/pb_layout/docs/_layout_collection.md +1 -1
  24. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md +1 -1
  25. data/app/pb_kits/playbook/pb_nav/docs/_nav_with_spacing_control.md +1 -1
  26. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +1 -1
  27. data/app/pb_kits/playbook/pb_pill/docs/_description.md +1 -1
  28. data/app/pb_kits/playbook/pb_popover/docs/example.yml +0 -1
  29. data/app/pb_kits/playbook/pb_popover/docs/index.js +0 -1
  30. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_description.md +1 -1
  31. data/app/pb_kits/playbook/pb_section_separator/docs/_description.md +1 -1
  32. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +1 -1
  33. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_react.md +1 -1
  34. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md +1 -1
  35. data/app/pb_kits/playbook/pb_table/docs/_table_side_highlight.md +1 -1
  36. data/app/pb_kits/playbook/pb_table/docs/_table_sm.md +1 -1
  37. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -2
  38. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -1
  39. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.html.erb +2 -2
  40. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.jsx +1 -1
  41. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_options.md +1 -1
  42. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_options.html.erb +1 -67
  43. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default_value.jsx +6 -68
  44. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md +1 -1
  45. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +2 -2
  46. data/dist/playbook-doc.js +2 -2
  47. metadata +3 -9
  48. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +0 -68
  49. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to_react.md +0 -1
  50. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.html.erb +0 -63
  51. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible.jsx +0 -89
  52. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_rails.md +0 -4
  53. data/app/pb_kits/playbook/pb_table/docs/_table_with_dynamic_collapsible_react.md +0 -3
  54. /data/app/pb_kits/playbook/pb_popover/docs/{_popover_append_to_rails.md → _popover_append_to.md} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc2949a7d4120a03a9e523d19397a3a25d2758a86c5d5d62646f9c1da414ea3a
4
- data.tar.gz: f9ee556742f8ac87f164eba59e16c45f2c33207fc6a237e3de2813ba44de728d
3
+ metadata.gz: 1047649d80aebbfb6d10ccab977e755246c761d150f329aea700c983028283d2
4
+ data.tar.gz: 618b44e5c53323595024bab405d6f7d59df0abaf36d70589a7f5464cb8c61597
5
5
  SHA512:
6
- metadata.gz: 5394a7cb8a4bdd07191fff9c5517dc77a9ca081a17d875c14424e46db88bd481cd3d31d7bae1456e5a873a6a7423ce2fba2b9d4f3c662e1f98605cb497d7ac59
7
- data.tar.gz: 1cbc9d6212d7840b228c8377918ca66901c4567faf52e96b0530dd34bdda0c7ba1f485db408218347f1cbea295ba635feafcef8002e919d61b491872de33fec0
6
+ metadata.gz: c9fdeaef894a14a5566a144e5fc8d3444b019e36ca2b9c5f2c89e028ec14c63ce88cd03925c6ca1d7fe2f7d2907a79a8cb28b264e1af191e26b150fe9d37b344
7
+ data.tar.gz: d8fcc59193671b9f8bb5409b72d2ac8c5adad51e6b3de981a0644e0375afabf1ac10cbbd238cc76bf1fb1b06b08f44e95accde0a99cd795f299e0d40b3555dd3
@@ -1,3 +1,3 @@
1
1
  The borders of column groups can be set to a different color using the `columnGroupBorderColor` prop. In order for these borders to be visible, this prop must be used with `tableProps` and `verticalBorder` set to true.
2
2
 
3
- The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/tokens/colors).
3
+ The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -1,3 +1,3 @@
1
1
  The borders of column groups can be set to a different color using the `column_group_border_color` prop. In order for these borders to be visible, this prop must be used with `table_props` and `vertical_border` set to true.
2
2
 
3
- The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/tokens/colors).
3
+ The available colors for the border are Playbook's Text Colors, which can be found [here](https://playbook.powerapp.cloud/visual_guidelines/colors).
@@ -38,10 +38,7 @@ const AdvancedTablePaginationWithProps = (props) => {
38
38
  const paginationProps = {
39
39
  pageIndex: 1,
40
40
  pageSize: 10,
41
- range: 2,
42
- onPageChange: (pageIndex) => {
43
- console.log('Current page index:', pageIndex);
44
- }
41
+ range: 2
45
42
  }
46
43
 
47
44
  return (
@@ -1,6 +1,5 @@
1
- `paginationProps` is an optional prop that can be used to further customize pagination for the AdvancedTable. This prop is an object with the following optional items:
1
+ `paginationProps` is an optional prop that can be used to further customize pagination for the AdvancedTable. This prop is an object with 2 optional items:
2
2
 
3
3
  - `pageIndex`: An optional prop to set which page is set to open on initial load. Default is '0'
4
4
  - `pageSize`: An optional prop to set total number of rows for each page before the Table paginates. Default is '20'
5
- - `range`: The range prop determines how many pages to display in the Pagination component. Regardless of this value, the first two and last two pages are always visible to facilitate navigation to the beginning and end of the pagination. If these always-visible pages fall within the specified range, they are included in the display. If they fall outside the range, the pagination will show additional pages up to the number defined by the range prop. See [here for more details](https://playbook.powerapp.cloud/kits/pagination/react#default). Default is set to '5'
6
- - `onPageChange`: A callback function that gives to access to the current page index.
5
+ - `range`: The range prop determines how many pages to display in the Pagination component. Regardless of this value, the first two and last two pages are always visible to facilitate navigation to the beginning and end of the pagination. If these always-visible pages fall within the specified range, they are included in the display. If they fall outside the range, the pagination will show additional pages up to the number defined by the range prop. See [here for more details](https://playbook.powerapp.cloud/kits/pagination/react#default). Default is set to '5'
@@ -1,7 +1,7 @@
1
1
  To achieve a sticky header AND sticky columns together, in addition to the `stickyLeftColumn` logic outlined above, you can:
2
2
 
3
3
  - Set `sticky: true` via `tableProps`
4
- - Give the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud//global_props/max_height) global prop.
4
+ - Give the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
5
5
 
6
6
  **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the column stickiness.
7
7
 
@@ -1,4 +1,4 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/global_props/max_height) global prop.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `table_props` and giving the AdvancedTable a `max_height` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
3
  **NOTE**: This behavior requires a `max_height` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
4
 
@@ -1,4 +1,4 @@
1
- Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/global_props/max_height) global prop.
1
+ Create a sticky header that works for responsive Advanced Tables by setting `sticky: true` via `tableProps` and giving the AdvancedTable a `maxHeight` using our [Max Height](https://playbook.powerapp.cloud/visual_guidelines/max_height) global prop.
2
2
 
3
3
  **NOTE**: This behavior requires a `maxHeight` to work. The header is sticky within the table container, allowing for it to work along with the first column stickiness of a responsive table on smaller screen sizes.
4
4
 
@@ -1 +1 @@
1
- Category colors can be passed into the background kit. Values `category_1` to `category_21` are accepted. List of all category and status colors can be viewed <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">here</a>.
1
+ Category colors can be passed into the background kit. Values `category_1` to `category_21` are accepted. List of all category and status colors can be viewed <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">here</a>.
@@ -1 +1 @@
1
- Add a background color by passing the color name to background. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">here</a> under Product Colors and Status: Subtle Variations.
1
+ Add a background color by passing the color name to background. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">here</a> under Product Colors and Status: Subtle Variations.
@@ -1 +1 @@
1
- Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
1
+ Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">here</a>.
@@ -1 +1 @@
1
- Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
1
+ Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">here</a>.
@@ -1 +1 @@
1
- Card can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/global_props/max_width" target="_blank">visual guidelines.</a>
1
+ Card can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">visual guidelines.</a>
@@ -1 +1 @@
1
- You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](https://playbook.powerapp.cloud/token/colors) for reference.
1
+ You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](/visual_guidelines) for reference.
@@ -1,4 +1,4 @@
1
1
  The `activeStyle` prop can be used to customize the appearance of the dropdown selection indicator. It accepts an object with the following keys: `backgroundColor` sets the background color of the selected item (and its hover state); `fontColor` sets the font color of the selected item.
2
2
 
3
3
  `backgroundColor` **Type**: String | **Values**: bg_light | white | **Default**: (no selection) is primary
4
- `fontColor` **Type**: String | **Values**: primary | all [Playbook Text Colors](https://playbook.powerapp.cloud/global_props/colors) | **Default**: (no selection) is white
4
+ `fontColor` **Type**: String | **Values**: primary | all [Playbook Text Colors](https://playbook.powerapp.cloud/visual_guidelines/colors) | **Default**: (no selection) is white
@@ -1 +1 @@
1
- Filter can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/global_props/max_width" target="_blank">visual guidelines.</a>
1
+ Filter can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">visual guidelines.</a>
@@ -1,3 +1,3 @@
1
- For Form Pills with longer text, the truncate global prop can be used to truncate the label within each Form Pill. See [here](https://playbook.powerapp.cloud/global_props/truncate) for more information on the truncate global prop.
1
+ For Form Pills with longer text, the truncate global prop can be used to truncate the label within each Form Pill. See [here](https://playbook.powerapp.cloud/visual_guidelines/truncate) for more information on the truncate global prop.
2
2
 
3
3
  __NOTE__: For Rails Form Pills (not ones embedded within a React-rendered Typeahead or MultiLevelSelect), a unique `id` is required to enable the Tooltip functionality displaying the text or tag section of the Form Pill.
@@ -1 +1 @@
1
- For Form Pills with longer text, the `truncate` global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See [here](https://playbook.powerapp.cloud/global_props/truncate) for more information on the truncate global prop.
1
+ For Form Pills with longer text, the `truncate` global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See [here](https://playbook.powerapp.cloud/visual_guidelines/truncate) for more information on the truncate global prop.
@@ -1 +1 @@
1
- Pass any text, status, data, product, or category Playbook <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">color token</a> to the `color` prop to change any icon's color.
1
+ Pass any text, status, data, product, or category Playbook <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">color token</a> to the `color` prop to change any icon's color.
@@ -1 +1 @@
1
- Customize your icon circle by passing one of our seven base colors to the `variant` prop: `royal` `orange` `purple` `teal` `red` `yellow` `green`
1
+ Customize your icon circle by passing one of our seven base colors to the `variant` prop: `royal` `blue` `orange` `purple` `teal` `red` `yellow` `green`
@@ -3,41 +3,48 @@
3
3
  text: "Mercury",
4
4
  unit: "AU",
5
5
  value: 0.39,
6
- variant:"royal"
6
+ variant:"blue"
7
7
  }) %>
8
8
  <br>
9
9
  <%= pb_rails("icon_stat_value", props: { icon: "planet-ringed",
10
10
  text: "Venus",
11
11
  unit: "AU",
12
12
  value: 0.723,
13
- variant:"purple"
13
+ variant:"royal"
14
14
  }) %>
15
15
  <br>
16
16
  <%= pb_rails("icon_stat_value", props: { icon: "planet-moon",
17
17
  text: "Earth",
18
18
  unit: "AU",
19
19
  value: 1.0,
20
- variant:"teal"
20
+ variant:"purple"
21
21
  }) %>
22
22
  <br>
23
23
  <%= pb_rails("icon_stat_value", props: { icon: "solar-system",
24
24
  text: "Mars",
25
25
  unit: "AU",
26
26
  value: 1.524,
27
- variant:"red"
27
+ variant:"teal"
28
28
  }) %>
29
29
  <br>
30
30
  <%= pb_rails("icon_stat_value", props: { icon: "globe-americas",
31
- text: "Jupiter",
31
+ text: "Jupitar",
32
32
  unit: "AU",
33
33
  value: 5.203,
34
- variant:"yellow"
34
+ variant:"red"
35
35
  }) %>
36
36
  <br>
37
37
  <%= pb_rails("icon_stat_value", props: { icon: "globe-africa",
38
38
  text: "Saturn",
39
39
  unit: "AU",
40
40
  value: 9.539,
41
+ variant:"yellow"
42
+ }) %>
43
+ <br>
44
+ <%= pb_rails("icon_stat_value", props: { icon: "globe",
45
+ text: "Uranus",
46
+ unit: "AU",
47
+ value: 19.18,
41
48
  variant:"green"
42
49
  }) %>
43
50
  <br>
@@ -46,4 +53,4 @@
46
53
  unit: "AU",
47
54
  value: 19.18,
48
55
  variant:"orange"
49
- }) %>
56
+ }) %>
@@ -9,7 +9,7 @@ const IconStatValueColor = (props) => {
9
9
  text="Mercury"
10
10
  unit="AU"
11
11
  value={0.39}
12
- variant="royal"
12
+ variant="blue"
13
13
  {...props}
14
14
  />
15
15
  <br />
@@ -18,7 +18,7 @@ const IconStatValueColor = (props) => {
18
18
  text="Venus"
19
19
  unit="AU"
20
20
  value={0.723}
21
- variant="purple"
21
+ variant="royal"
22
22
  {...props}
23
23
  />
24
24
  <br />
@@ -27,7 +27,7 @@ const IconStatValueColor = (props) => {
27
27
  text="Earth"
28
28
  unit="AU"
29
29
  value={1.0}
30
- variant="teal"
30
+ variant="purple"
31
31
  {...props}
32
32
  />
33
33
  <br />
@@ -36,16 +36,16 @@ const IconStatValueColor = (props) => {
36
36
  text="Mars"
37
37
  unit="AU"
38
38
  value={1.524}
39
- variant="red"
39
+ variant="teal"
40
40
  {...props}
41
41
  />
42
42
  <br />
43
43
  <IconStatValue
44
44
  icon="globe-americas"
45
- text="Jupiter"
45
+ text="Jupitar"
46
46
  unit="AU"
47
47
  value={5.203}
48
- variant="yellow"
48
+ variant="red"
49
49
  {...props}
50
50
  />
51
51
  <br />
@@ -54,6 +54,15 @@ const IconStatValueColor = (props) => {
54
54
  text="Saturn"
55
55
  unit="AU"
56
56
  value={9.539}
57
+ variant="yellow"
58
+ {...props}
59
+ />
60
+ <br />
61
+ <IconStatValue
62
+ icon="globe"
63
+ text="Uranus"
64
+ unit="AU"
65
+ value={19.18}
57
66
  variant="green"
58
67
  {...props}
59
68
  />
@@ -1 +1 @@
1
- Layout can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/global_props/max_width" target="_blank">visual guidelines.</a>
1
+ Layout can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">visual guidelines.</a>
@@ -1 +1 @@
1
- The `itemSpacing` prop can optionally be applied to the `Nav` parent element and accepts an object through which any of our Spacing ([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/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.
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.
@@ -1 +1 @@
1
- All Nav variants' navItems accept our global Spacing ([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/margin)) props for custom spacing requirements. This example uses paddingY="xxs" and margin="none" on the bold variant to show this in action!
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!
@@ -2,4 +2,4 @@ The optional `layout` prop accepts the `position` and `size` of the overlay as a
2
2
 
3
3
  The `position` key accepts `bottom` (default), `top`, `y` (for both top and bottom) `right`, `left`, or `x` (for both left and right), which sets the side(s) where the `color` overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of `bottom` starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.
4
4
 
5
- The `size` value is `full` (100%) by default, but accepts our spacing tokens([padding](https://playbook.powerapp.cloud/global_props/padding), [margin](https://playbook.powerapp.cloud/global_props/margin)) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
5
+ The `size` value is `full` (100%) by default, but accepts our [spacing tokens](https://playbook.powerapp.cloud/visual_guidelines/spacing) or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).
@@ -1 +1 @@
1
- A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color <a href="https://playbook.powerapp.cloud/global_props/colors" target="_blank">here</a>.
1
+ A pill uses both a keyword and a specific color to categorize an item. Each pill directly corresponds to a data color <a href="https://playbook.powerapp.cloud/visual_guidelines/colors" target="_blank">here</a>.
@@ -15,4 +15,3 @@ examples:
15
15
  - popover_z_index: Set Z-Index
16
16
  - popover_scroll_height: Scroll and Height Settings
17
17
  - popover_actionable_content: With Actionable Content
18
- - popover_append_to: Append To
@@ -4,4 +4,3 @@ export { default as PopoverClose } from './_popover_close.jsx'
4
4
  export { default as PopoverZIndex } from './_popover_z_index.jsx'
5
5
  export { default as PopoverScrollHeight } from './_popover_scroll_height.jsx'
6
6
  export { default as PopoverActionableContent } from './_popover_actionable_content.jsx'
7
- export { default as PopoverAppendTo } from './_popover_append_to.jsx'
@@ -1 +1 @@
1
- NOTE: All editors have a default max-width of "md". Use our [Max Width global prop](https://playbook.powerapp.cloud/global_props/max_width) to override this default, as necessary.
1
+ NOTE: All editors have a default max-width of "md". Use our [Max Width global prop](https://playbook.powerapp.cloud/visual_guidelines/max_width) to override this default, as necessary.
@@ -1,3 +1,3 @@
1
1
  Section separator is a divider line that compartmentalizes content, typically used on cards or white backgrounds.
2
2
 
3
- To ensure that the section separator is properly rendered, please be sure to use our global `width` prop to set width to 100%. [See here](https://playbook.powerapp.cloud/global_props/width) for more information on the global width prop.
3
+ To ensure that the section separator is properly rendered, please be sure to use our global `width` prop to set width to 100%. [See here](https://playbook.powerapp.cloud/visual_guidelines/width) for more information on the global width prop.
@@ -1 +1 @@
1
- The `border_radius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/global_props/border_radius) tokens, with `sm` as default.
1
+ The `border_radius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/visual_guidelines/border_radius) tokens, with `sm` as default.
@@ -1 +1 @@
1
- The `borderRadius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/global_props/border_radius) tokens, with `sm` as default.
1
+ The `borderRadius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/visual_guidelines/border_radius) tokens, with `sm` as default.
@@ -1,3 +1,3 @@
1
1
  Use the `stack` and `gap` props in conjunction to layer multiple Skeleton loading bars on top of each other.
2
2
 
3
- `stack` accepts a number that correlates to the number of rows (1 is default), and `gap` accepts a portion of our [spacing props](https://playbook.powerapp.cloud/global_props/spacing) (`xxs` as default, `xs`, `sm`, `md`, `lg`, `xl`, `xxl`) to set the pixel distance between each row. `gap` will not do anything if there is no corresponding `stack` prop set.
3
+ `stack` accepts a number that correlates to the number of rows (1 is default), and `gap` accepts a portion of our [spacing props](https://playbook.powerapp.cloud/visual_guidelines/spacing) (`xxs` as default, `xs`, `sm`, `md`, `lg`, `xl`, `xxl`) to set the pixel distance between each row. `gap` will not do anything if there is no corresponding `stack` prop set.
@@ -1,3 +1,3 @@
1
- Side highlight can take product, status, and category colors. To view full list of colors, visit <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">token colors</a>.
1
+ Side highlight can take product, status, and category colors. To view full list of colors, visit <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">token colors</a>.
2
2
 
3
3
  Note: Only use category colors for categories. Do not mix it with product or status colors.
@@ -1,3 +1,3 @@
1
1
  Use table size `"sm"` when data density is a priority. Smaller row height enables the user to view more data without the need for scrolling.
2
2
 
3
- Table can leverage the max-width property. Learn more on our <a href="https://playbook.powerapp.cloud/global_props/max_width" target="_blank">Max Width Global Props page.</a>
3
+ Table can leverage the max-width property. Learn more in our <a href="https://playbook.powerapp.cloud/visual_guidelines" target="_blank">visual guidelines.</a>
@@ -31,7 +31,6 @@ examples:
31
31
  - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
32
32
  - table_outer_padding: Outer Padding
33
33
  - table_with_collapsible: Table with Collapsible
34
- - table_with_dynamic_collapsible: Table with Dynamic Collapsible
35
34
  - table_with_collapsible_with_custom_click: Table with Collapsible with Custom Click
36
35
  - table_with_collapsible_with_custom_content_rails: Table with Collapsible with Custom Content
37
36
  - table_with_collapsible_with_nested_rows_rails: Table with Collapsible with Nested Rows
@@ -72,7 +71,6 @@ examples:
72
71
  - table_with_subcomponents_as_divs: Table with Sub Components (Divs)
73
72
  - table_outer_padding: Outer Padding
74
73
  - table_with_collapsible: Table with Collapsible
75
- - table_with_dynamic_collapsible: Table with Dynamic Collapsible
76
74
  - table_with_collapsible_with_custom_click: Table with Collapsible with Custom Click
77
75
  - table_with_collapsible_with_custom_content: Table with Collapsible with Custom Content
78
76
  - table_with_collapsible_with_nested_rows: Table with Collapsible with Nested Rows
@@ -29,7 +29,6 @@ export { default as TableStickyLeftColumns } from './_table_sticky_left_columns.
29
29
  export { default as TableStickyRightColumns } from './_table_sticky_right_columns.jsx'
30
30
  export { default as TableStickyColumns } from './_table_sticky_columns.jsx'
31
31
  export { default as TableWithCollapsible } from './_table_with_collapsible.jsx'
32
- export { default as TableWithDynamicCollapsible } from './_table_with_dynamic_collapsible.jsx'
33
32
  export { default as TableWithCollapsibleWithCustomContent } from './_table_with_collapsible_with_custom_content.jsx'
34
33
  export { default as TableWithCollapsibleWithNestedTable } from './_table_with_collapsible_with_nested_table.jsx'
35
34
  export { default as TableWithCollapsibleWithNestedRows } from './_table_with_collapsible_with_nested_rows.jsx'
@@ -52,13 +52,13 @@
52
52
  }
53
53
  ]
54
54
  %>
55
- <br />
55
+
56
56
  <%= pb_rails("typeahead", props: {
57
+ default_options:[{ label: "Pink", value: "#FFC0CB" }],
57
58
  id: "typeahead-custom-options",
58
59
  options: grouped_options,
59
60
  label: "Colors",
60
61
  name: :foo,
61
- placeholder: "Select a Color...",
62
62
  is_multi: false
63
63
  })
64
64
  %>
@@ -58,9 +58,9 @@ const groupedOptions = [
58
58
  const TypeaheadCustomOptions = (props) => {
59
59
  return (
60
60
  <Typeahead
61
+ defaultValue={[{ label: "Pink", value: "#FFC0CB" }]}
61
62
  label="Colors"
62
63
  options={groupedOptions}
63
- placeholder="Select a Color..."
64
64
  {...props}
65
65
  />
66
66
  )
@@ -1 +1 @@
1
- Grouped options can be rendered via structuring the options in the way shown in the code snippet below.
1
+ Grouped options can also be achieved with the Typeahead as seen here.
@@ -25,77 +25,11 @@
25
25
  ]
26
26
  %>
27
27
 
28
- <%
29
- grouped_options = [
30
- {
31
- label: "Warm Colors",
32
- options: [
33
- { label: "Red", value: "#FF0000" },
34
- { label: "Orange", value: "#FFA500" },
35
- { label: "Yellow", value: "#FFFF00" },
36
- { label: "Coral", value: "#FF7F50" },
37
- { label: "Gold", value: "#FFD700" }
38
- ]
39
- },
40
- {
41
- label: "Cool Colors",
42
- options: [
43
- { label: "Blue", value: "#0000FF" },
44
- { label: "Teal", value: "#008080" },
45
- { label: "Cyan", value: "#00FFFF" },
46
- { label: "Navy", value: "#000080" },
47
- { label: "Turquoise", value: "#40E0D0" }
48
- ]
49
- },
50
- {
51
- label: "Neutrals",
52
- options: [
53
- { label: "White", value: "#FFFFFF" },
54
- { label: "Black", value: "#000000" },
55
- { label: "Gray", value: "#808080" },
56
- { label: "Beige", value: "#F5F5DC" },
57
- { label: "Silver", value: "#C0C0C0" }
58
- ]
59
- },
60
- {
61
- label: "Earth Tones",
62
- options: [
63
- { label: "Brown", value: "#A52A2A" },
64
- { label: "Olive", value: "#808000" },
65
- { label: "Forest Green", value: "#228B22" },
66
- { label: "Tan", value: "#D2B48C" },
67
- { label: "Maroon", value: "#800000" }
68
- ]
69
- },
70
- {
71
- label: "Fun Shades",
72
- options: [
73
- { label: "Pink", value: "#FFC0CB" },
74
- { label: "Magenta", value: "#FF00FF" },
75
- { label: "Lime", value: "#00FF00" },
76
- { label: "Purple", value: "#800080" },
77
- { label: "Indigo", value: "#4B0082" }
78
- ]
79
- }
80
- ]
81
- %>
82
-
83
-
84
28
  <%= pb_rails("typeahead", props: {
85
29
  default_options: [{ label: 'Gray', value: '#808080' }],
86
30
  id: "typeahead-default-value",
87
31
  options: options,
88
- label: "Default Value with basic options",
89
- name: :foo,
90
- is_multi: false
91
- })
92
- %>
93
-
94
- <%= pb_rails("typeahead", props: {
95
- default_options:[{ label: "Pink", value: "#FFC0CB" }],
96
- id: "typeahead-default-value-grouped-options",
97
- options: grouped_options,
98
- label: "Default Value with grouped options",
32
+ label: "Colors",
99
33
  name: :foo,
100
34
  is_multi: false
101
35
  })
@@ -27,76 +27,14 @@ const options = [
27
27
  { label: 'Coral', value: '#FF7F50' }
28
28
  ]
29
29
 
30
- const groupedOptions = [
31
- {
32
- label: "Warm Colors",
33
- options: [
34
- { label: "Red", value: "#FF0000" },
35
- { label: "Orange", value: "#FFA500" },
36
- { label: "Yellow", value: "#FFFF00" },
37
- { label: "Coral", value: "#FF7F50" },
38
- { label: "Gold", value: "#FFD700" }
39
- ]
40
- },
41
- {
42
- label: "Cool Colors",
43
- options: [
44
- { label: "Blue", value: "#0000FF" },
45
- { label: "Teal", value: "#008080" },
46
- { label: "Cyan", value: "#00FFFF" },
47
- { label: "Navy", value: "#000080" },
48
- { label: "Turquoise", value: "#40E0D0" }
49
- ]
50
- },
51
- {
52
- label: "Neutrals",
53
- options: [
54
- { label: "White", value: "#FFFFFF" },
55
- { label: "Black", value: "#000000" },
56
- { label: "Gray", value: "#808080" },
57
- { label: "Beige", value: "#F5F5DC" },
58
- { label: "Silver", value: "#C0C0C0" }
59
- ]
60
- },
61
- {
62
- label: "Earth Tones",
63
- options: [
64
- { label: "Brown", value: "#A52A2A" },
65
- { label: "Olive", value: "#808000" },
66
- { label: "Forest Green", value: "#228B22" },
67
- { label: "Tan", value: "#D2B48C" },
68
- { label: "Maroon", value: "#800000" }
69
- ]
70
- },
71
- {
72
- label: "Fun Shades",
73
- options: [
74
- { label: "Pink", value: "#FFC0CB" },
75
- { label: "Magenta", value: "#FF00FF" },
76
- { label: "Lime", value: "#00FF00" },
77
- { label: "Purple", value: "#800080" },
78
- { label: "Indigo", value: "#4B0082" }
79
- ]
80
- }
81
- ]
82
-
83
30
  const TypeaheadDefaultValue = (props) => {
84
31
  return (
85
- <>
86
- <Typeahead
87
- defaultValue={options[10]}
88
- label="Default Value with basic options"
89
- options={options}
90
- {...props}
91
- />
92
- <br />
93
- <Typeahead
94
- defaultValue={{ label: "Pink", value: "#FFC0CB" }}
95
- label="Default Value with grouped options"
96
- options={groupedOptions}
97
- {...props}
98
- />
99
- </>
32
+ <Typeahead
33
+ defaultValue={options[10]}
34
+ label="Colors"
35
+ options={options}
36
+ {...props}
37
+ />
100
38
  )
101
39
  }
102
40
 
@@ -1 +1 @@
1
- For Form Pills with longer text, the `truncate` global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See [here](https://playbook.powerapp.cloud/global_props/truncate) for more information on the truncate global prop.
1
+ For Form Pills with longer text, the `truncate` global prop can be used to truncate the label within each Form Pill. Hover over the truncated Form Pill and a Tooltip containing the text or tag section of the Form Pill will appear. See [here](https://playbook.powerapp.cloud/visual_guidelines/truncate) for more information on the truncate global prop.
@@ -1,8 +1,8 @@
1
1
  examples:
2
2
  rails:
3
3
  - typeahead_default: Default
4
- - typeahead_custom_options: With Grouped Options
5
4
  - typeahead_default_options: With Default Options
5
+ - typeahead_custom_options: With Grouped Options
6
6
  - typeahead_with_context: With Context
7
7
  - typeahead_with_pills: With Pills
8
8
  - typeahead_without_pills: Without Pills (Single Select)
@@ -21,8 +21,8 @@ examples:
21
21
 
22
22
  react:
23
23
  - typeahead_default: Default
24
- - typeahead_custom_options: With Grouped Options
25
24
  - typeahead_default_value: With Default Value
25
+ - typeahead_custom_options: With Grouped Options
26
26
  - typeahead_react_hook: React Hook
27
27
  - typeahead_with_highlight: With Highlight
28
28
  - typeahead_with_pills: With Pills