playbook_ui_docs 14.13.0.pre.alpha.play1851checkboxreacthook6083 → 14.13.0.pre.alpha.play1852reacthookformsupportradio6153

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +64 -0
  3. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +1 -0
  4. data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +1 -0
  5. data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +1 -0
  6. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -2
  7. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  8. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb +2 -2
  9. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md +4 -1
  10. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx +90 -0
  11. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +5 -0
  12. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -0
  13. data/app/pb_kits/playbook/pb_draggable/docs/index.js +2 -1
  14. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +60 -0
  15. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.md +1 -0
  16. data/app/pb_kits/playbook/pb_radio/docs/example.yml +2 -1
  17. data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -0
  18. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +1 -1
  19. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb +51 -0
  20. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_rails.md +2 -0
  21. data/app/pb_kits/playbook/pb_table/docs/example.yml +1 -0
  22. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +14 -0
  23. data/dist/playbook-doc.js +1 -1
  24. metadata +11 -5
  25. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +0 -69
  26. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md +0 -1
  27. /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible_with_custom_click.md → _table_with_collapsible_with_custom_click_react.md} +0 -0
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: 14.13.0.pre.alpha.play1851checkboxreacthook6083
4
+ version: 14.13.0.pre.alpha.play1852reacthookformsupportradio6153
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: 2025-02-12 00:00:00.000000000 Z
12
+ date: 2025-02-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -197,6 +197,8 @@ files:
197
197
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_legend_position.md
198
198
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.html.erb
199
199
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_negative_numbers.jsx
200
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx
201
+ - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md
200
202
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.html.erb
201
203
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.jsx
202
204
  - app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_secondary_y_axis.md
@@ -354,8 +356,6 @@ files:
354
356
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate_swift.md
355
357
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_options.html.erb
356
358
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_props_swift.md
357
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx
358
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md
359
359
  - app/pb_kits/playbook/pb_checkbox/docs/_description.md
360
360
  - app/pb_kits/playbook/pb_checkbox/docs/example.yml
361
361
  - app/pb_kits/playbook/pb_checkbox/docs/index.js
@@ -718,6 +718,8 @@ files:
718
718
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md
719
719
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb
720
720
  - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md
721
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx
722
+ - app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md
721
723
  - app/pb_kits/playbook/pb_draggable/docs/example.yml
722
724
  - app/pb_kits/playbook/pb_draggable/docs/index.js
723
725
  - app/pb_kits/playbook/pb_drawer/docs/_drawer_behavior.jsx
@@ -1549,6 +1551,8 @@ files:
1549
1551
  - app/pb_kits/playbook/pb_radio/docs/_radio_orientation_swift.md
1550
1552
  - app/pb_kits/playbook/pb_radio/docs/_radio_padding_swift.md
1551
1553
  - app/pb_kits/playbook/pb_radio/docs/_radio_props_swift.md
1554
+ - app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx
1555
+ - app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.md
1552
1556
  - app/pb_kits/playbook/pb_radio/docs/_radio_spacing_swift.md
1553
1557
  - app/pb_kits/playbook/pb_radio/docs/_radio_subtitle_swift.md
1554
1558
  - app/pb_kits/playbook/pb_radio/docs/example.yml
@@ -1852,8 +1856,10 @@ files:
1852
1856
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx
1853
1857
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_rails.md
1854
1858
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_react.md
1859
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb
1855
1860
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx
1856
- - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md
1861
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_rails.md
1862
+ - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_react.md
1857
1863
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx
1858
1864
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md
1859
1865
  - app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content_rails.html.erb
@@ -1,69 +0,0 @@
1
- import React, { useState } from "react"
2
- import { useForm } from "react-hook-form"
3
- import { Button, Checkbox, Flex, Body } from "playbook-ui"
4
-
5
- const CheckboxReactHook = () => {
6
- const { register, handleSubmit } = useForm({
7
- defaultValues: {
8
- Small: false,
9
- Medium: false,
10
- Large: false,
11
- },
12
- })
13
-
14
- const [submittedData, setSubmittedData] = useState({
15
- Small: false,
16
- Medium: false,
17
- Large: false,
18
- })
19
-
20
- const onSubmit = (data) => {
21
- setSubmittedData(data)
22
- }
23
-
24
- return (
25
- <Flex orientation="row">
26
- <Flex align="start"
27
- orientation="column"
28
- paddingRight="lg"
29
- >
30
- <form onSubmit={handleSubmit(onSubmit)}>
31
- <Checkbox padding="xs"
32
- text="Small"
33
- {...register("Small")}
34
- />
35
- <br />
36
- <Checkbox padding="xs"
37
- text="Medium"
38
- {...register("Medium")}
39
- />
40
- <br />
41
- <Checkbox padding="xs"
42
- text="Large"
43
- {...register("Large")}
44
- />
45
- <br />
46
- <Button htmlType="submit"
47
- marginTop="sm"
48
- text="submit"
49
- />
50
- </form>
51
- </Flex>
52
- <Flex align="start"
53
- orientation="column"
54
- >
55
- <Body padding="xs"
56
- text={`Small: ${submittedData.Small ? "true" : "false"}`}
57
- />
58
- <Body padding="xs"
59
- text={`Medium: ${submittedData.Medium ? "true" : "false"}`}
60
- />
61
- <Body padding="xs"
62
- text={`Large: ${submittedData.Large ? "true" : "false"}`}
63
- />
64
- </Flex>
65
- </Flex>
66
- )
67
- }
68
-
69
- export default CheckboxReactHook
@@ -1 +0,0 @@
1
- You can pass react hook props to the checkbox kit.