playbook_ui_docs 14.4.0.pre.rc.12 → 14.4.0.pre.rc.13

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbe2d265c795fe07fab076722de9e3b00cc69ad38dcd47da35530880a34bcaa9
4
- data.tar.gz: 7d7f398d8270a66ce2bd7289d58fd4b12ca88638f8992d94e3db58097bb1acf7
3
+ metadata.gz: 8414bc98ced0c229a450053155028b6066f5ca63da6d9e96f63728121d32eab4
4
+ data.tar.gz: 99fba9b24519b27db72568b30393b4200a4c82db9ee3388a4b5c2b34257a5c57
5
5
  SHA512:
6
- metadata.gz: 602a239a9c11cfb65441c158b67c75e911b9183e7e34aa5252db2714a82e766711d23f04b60f27c7de6ae1cc878b4e38a82f2bcf20fc37901865e24fba58ac6b
7
- data.tar.gz: 817d114fa1cc9593912560f267e994332aadd697fce94346cd2e3e7a4993abc36bc5e3186dc138999433301f2454916494004de286aedc5b678064aee2e904a2
6
+ metadata.gz: d3f2c55d2d3386f6bc0b4a78974d806b4aa0340fd16298cafb2fd77afac2024fcbe496097d00956318b0f7d0434f31d69bed7b4a43dcb9dfd584b69f48633f24
7
+ data.tar.gz: 94fe87add5b1c9ac22516605cb74d881ba264e81229d20be03dc60193009562c1019c987db075fc07401efc4ac2b7083e4f9aa16f32fce9f5b1c96ed3c52a3cc
@@ -0,0 +1,48 @@
1
+ <%
2
+ options = [
3
+ { label: "Orange", value: "Orange" },
4
+ { label: "Red", value: "Red" },
5
+ { label: "Green", value: "Green" },
6
+ { label: "Blue", value: "Blue" },
7
+ ]
8
+ %>
9
+
10
+ <%= pb_rails("radio", props: {
11
+ custom_children: true,
12
+ label: "Select",
13
+ name: "Group1",
14
+ value: "Select",
15
+ }) do %>
16
+ <%= pb_rails("select", props: {
17
+ min_width: "xs",
18
+ options: options,
19
+ }) %>
20
+ <% end %>
21
+
22
+ <%= pb_rails("radio", props: {
23
+ custom_children: true,
24
+ label: "Typeahead",
25
+ name: "Group1",
26
+ value: "Typeahead",
27
+ }) do %>
28
+ <%= pb_rails("typeahead", props: {
29
+ id: "typeahead-radio",
30
+ is_multi: false,
31
+ min_width: "xs",
32
+ options: options,
33
+ placeholder: "Select...",
34
+ })
35
+ %>
36
+ <% end %>
37
+
38
+ <%= pb_rails("radio", props: {
39
+ custom_children: true,
40
+ label: "Typography",
41
+ name: "Group1",
42
+ value: "Typography",
43
+ }) do %>
44
+ <%= pb_rails("title", props: {
45
+ text: "Custom Typography",
46
+ })
47
+ %>
48
+ <% end %>
@@ -0,0 +1 @@
1
+ Use the `custom_children` prop to enable the use of kits instead of text labels.
@@ -7,6 +7,7 @@ examples:
7
7
  - radio_options: With Options
8
8
  - radio_alignment: Alignment
9
9
  - radio_disabled: Disabled
10
+ - radio_custom_children: Custom Children
10
11
 
11
12
  react:
12
13
  - radio_default: Default
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.4.0.pre.rc.12
4
+ version: 14.4.0.pre.rc.13
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-09-15 00:00:00.000000000 Z
12
+ date: 2024-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -1394,6 +1394,8 @@ files:
1394
1394
  - app/pb_kits/playbook/pb_radio/docs/_radio_alignment_swift.md
1395
1395
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom.html.erb
1396
1396
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx
1397
+ - app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb
1398
+ - app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md
1397
1399
  - app/pb_kits/playbook/pb_radio/docs/_radio_custom_swift.md
1398
1400
  - app/pb_kits/playbook/pb_radio/docs/_radio_default.html.erb
1399
1401
  - app/pb_kits/playbook/pb_radio/docs/_radio_default.jsx