playbook_ui_docs 14.18.0.pre.rc.0 → 14.18.0.pre.rc.2

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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.jsx +58 -0
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns.md +6 -0
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.jsx +64 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_columns_and_header.md +8 -0
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +55 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +3 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +33 -0
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +3 -0
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -2
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +2 -2
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +6 -2
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +6 -2
  16. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +6 -2
  17. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +4 -1
  18. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.jsx +54 -0
  19. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_hook.md +3 -0
  20. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +1 -0
  21. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +2 -1
  22. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +15 -5
  23. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +39 -6
  24. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.jsx +322 -118
  25. data/app/pb_kits/playbook/pb_layout/docs/_layout_bracket.md +1 -1
  26. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.jsx +63 -0
  27. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_color.md +3 -0
  28. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_default.md +1 -7
  29. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.jsx +39 -0
  30. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_gradient_opacity.md +1 -0
  31. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.jsx +40 -0
  32. data/app/pb_kits/playbook/pb_overlay/docs/_overlay_layout.md +5 -0
  33. data/app/pb_kits/playbook/pb_overlay/docs/example.yml +3 -0
  34. data/app/pb_kits/playbook/pb_overlay/docs/index.js +3 -0
  35. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +3 -1
  36. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows_rails.md +3 -1
  37. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +3 -1
  38. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table_rails.md +3 -1
  39. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.jsx +94 -0
  40. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_sanitize.md +1 -0
  41. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +2 -0
  42. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  43. data/dist/playbook-doc.js +1 -1
  44. metadata +20 -2
@@ -0,0 +1,5 @@
1
+ The optional `layout` prop accepts the `position` and `size` of the overlay as a key:value pair.
2
+
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
+
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,6 +1,9 @@
1
1
  examples:
2
2
  react:
3
3
  - overlay_default: Default
4
+ - overlay_gradient_opacity: Gradient & Opacity
5
+ - overlay_color: Color
6
+ - overlay_layout: Layout
4
7
  - overlay_multi_directional: Multi-directional
5
8
  - overlay_vertical_dynamic_multi_directional: Vertical Dynamic Multi-directional
6
9
  - overlay_toggle: Toggle
@@ -1,4 +1,7 @@
1
1
  export { default as OverlayDefault } from './_overlay_default.jsx'
2
+ export { default as OverlayGradientOpacity } from './_overlay_gradient_opacity.jsx'
3
+ export { default as OverlayColor } from './_overlay_color.jsx'
4
+ export { default as OverlayLayout } from './_overlay_layout.jsx'
2
5
  export { default as OverlayMultiDirectional } from './_overlay_multi_directional.jsx'
3
6
  export { default as OverlayToggle } from './_overlay_toggle.jsx'
4
7
  export { default as OverlayVerticalDynamicMultiDirectional } from './_overlay_vertical_dynamic_multi_directional.jsx'
@@ -1,3 +1,5 @@
1
1
  The `collapsibleContent` can display any content, including nested Table Rows.
2
2
 
3
- Additionally, the `collapsibleSideHighlight` can also be removed by setting it to false if needed. This prop is set to true by default.
3
+ Additionally, the `collapsibleSideHighlight` can also be removed by setting it to false if needed. This prop is set to true by default.
4
+
5
+ **NOTE**: We advise against using the `disableHover` Table prop when nesting Table Rows within a Table.
@@ -1,3 +1,5 @@
1
1
  The `collapsible_content` can display any content, including nested Table Rows.
2
2
 
3
- Additionally, the `collapsible_side_highlight` can also be removed by setting it to false if needed. This prop is set to true by default.
3
+ Additionally, the `collapsible_side_highlight` can also be removed by setting it to false if needed. This prop is set to true by default.
4
+
5
+ **NOTE**: We advise against using the `disable_hover` Table prop when nesting Table Rows within a Table.
@@ -1 +1,3 @@
1
- The `collapsibleContent` can also be used to display nested Tables within each Row.
1
+ The `collapsibleContent` can also be used to display nested Tables within each Row.
2
+
3
+ **NOTE**: We advise against using the `disableHover` Table prop when nesting Tables within a Table.
@@ -1 +1,3 @@
1
- The `collapsible_content` can also be used to display nested Tables within each Row.
1
+ The `collapsible_content` can also be used to display nested Tables within each Row.
2
+
3
+ **NOTE**: We advise against using the `disable_hover` Table prop when nesting Tables within a Table.
@@ -0,0 +1,94 @@
1
+ import React, { useState } from 'react'
2
+
3
+ import TextInput from '../../pb_text_input/_text_input'
4
+
5
+ const TextInputSanitize = (props) => {
6
+ const ref = React.createRef()
7
+
8
+ const [currency, setCurrency] = useState('')
9
+ const [sanitizedCurrency, setSanitizedCurrency] = useState('')
10
+ const handleOnChangeSanitizeCurrency = ({ target }, sanitizedValue) => {
11
+ setCurrency(target.value)
12
+ setSanitizedCurrency(sanitizedValue);
13
+ }
14
+
15
+ const [creditCard, setCreditCard] = useState('')
16
+ const [sanitizedCreditCard, setSanitizedCreditCard] = useState('')
17
+ const handleOnChangeSanitizeCC = ({ target }, sanitizedValue) => {
18
+ setCreditCard(target.value)
19
+ setSanitizedCreditCard(sanitizedValue);
20
+ }
21
+
22
+ const [ssn, setSSN] = useState('')
23
+ const [sanitizedSSN, setSanitizedSSN] = useState('')
24
+ const handleOnChangeSanitizeSSN = ({ target }, sanitizedValue) => {
25
+ setSSN(target.value)
26
+ setSanitizedSSN(sanitizedValue);
27
+ }
28
+
29
+ return (
30
+ <div>
31
+ <TextInput
32
+ label="Currency"
33
+ mask="currency"
34
+ onChange={handleOnChangeSanitizeCurrency}
35
+ placeholder="Enter Amount"
36
+ ref={ref}
37
+ value={currency}
38
+ {...props}
39
+ />
40
+
41
+ {currency !== "" && (
42
+ <React.Fragment>{`The masked value is: ${currency}`}</React.Fragment>
43
+ )}
44
+ <br />
45
+ {sanitizedCurrency !== "" && (
46
+ <React.Fragment>{`The sanitized value is: ${sanitizedCurrency}`}</React.Fragment>
47
+ )}
48
+
49
+ <br />
50
+ <br />
51
+
52
+ <TextInput
53
+ label="Credit Card"
54
+ mask="creditCard"
55
+ onChange={handleOnChangeSanitizeCC}
56
+ placeholder="Enter Card"
57
+ ref={ref}
58
+ value={creditCard}
59
+ {...props}
60
+ />
61
+
62
+ {creditCard !== "" && (
63
+ <React.Fragment>{`The masked value is: ${creditCard}`}</React.Fragment>
64
+ )}
65
+ <br />
66
+ {sanitizedCreditCard !== "" && (
67
+ <React.Fragment>{`The sanitized value is: ${sanitizedCreditCard}`}</React.Fragment>
68
+ )}
69
+
70
+ <br />
71
+ <br />
72
+
73
+ <TextInput
74
+ label="SSN"
75
+ mask="ssn"
76
+ onChange={handleOnChangeSanitizeSSN}
77
+ placeholder="Enter Amount"
78
+ ref={ref}
79
+ value={ssn}
80
+ {...props}
81
+ />
82
+
83
+ {ssn !== "" && (
84
+ <React.Fragment>{`The masked value is: ${ssn}`}</React.Fragment>
85
+ )}
86
+ <br />
87
+ {sanitizedSSN !== "" && (
88
+ <React.Fragment>{`The sanitized value is: ${sanitizedSSN}`}</React.Fragment>
89
+ )}
90
+ </div>
91
+ )
92
+ }
93
+
94
+ export default TextInputSanitize
@@ -0,0 +1 @@
1
+ When utilizing the Mask prop, you can retrieve the sanitized value of your input through an event handler that targets `sanitizedValue`.
@@ -18,6 +18,8 @@ examples:
18
18
  - text_input_inline: Inline
19
19
  - text_input_no_label: No Label
20
20
  - text_input_mask: Mask
21
+ - text_input_sanitize: Sanitized Masked Input
22
+
21
23
 
22
24
  swift:
23
25
  - text_input_default_swift: Default
@@ -6,3 +6,4 @@ export { default as TextInputAddOn } from './_text_input_add_on.jsx'
6
6
  export { default as TextInputInline } from './_text_input_inline.jsx'
7
7
  export { default as TextInputNoLabel } from './_text_input_no_label.jsx'
8
8
  export { default as TextInputMask } from './_text_input_mask.jsx'
9
+ export { default as TextInputSanitize } from './_text_input_sanitize.jsx'