playbook_ui_docs 14.4.0.pre.rc.11 → 14.4.0.pre.rc.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97f2531d17f7e8871a7c546e01c4b87189180c69a6732bdb72b30159db5959cc
4
- data.tar.gz: 817adbaf9c5802a5ae74afdcf1466b4598c8946532fe168b7db0e6b516396d10
3
+ metadata.gz: 8414bc98ced0c229a450053155028b6066f5ca63da6d9e96f63728121d32eab4
4
+ data.tar.gz: 99fba9b24519b27db72568b30393b4200a4c82db9ee3388a4b5c2b34257a5c57
5
5
  SHA512:
6
- metadata.gz: d409158edd4fa39a9bf91a40b59144c4b94fcab6e7fc2b07b90e28d1ad8f4212a312c67606953713f80b45a65981ab6e49d8bf2dfbc6455a67160a7d9a7e5580
7
- data.tar.gz: 70e9eb25f5c3e55e788381b2c99780605976b23aaf38f763cdb19ffe1bf80468981f031cb1e1686eb5e1a84edec834d8802dd7cab7aa2e15c61f3cf82c9b1ef0
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.11
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-13 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