playbook_ui_docs 14.4.0.pre.rc.12 → 14.4.0.pre.rc.14

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: cbe2d265c795fe07fab076722de9e3b00cc69ad38dcd47da35530880a34bcaa9
4
- data.tar.gz: 7d7f398d8270a66ce2bd7289d58fd4b12ca88638f8992d94e3db58097bb1acf7
3
+ metadata.gz: 4890973c065302551d87cf95fecab804ac71b9c621d43bdef11ddb93260eddbc
4
+ data.tar.gz: 4ae00ca6add66524578b83fe3f13149b4e8125342d5e0b5ecba86891a159474d
5
5
  SHA512:
6
- metadata.gz: 602a239a9c11cfb65441c158b67c75e911b9183e7e34aa5252db2714a82e766711d23f04b60f27c7de6ae1cc878b4e38a82f2bcf20fc37901865e24fba58ac6b
7
- data.tar.gz: 817d114fa1cc9593912560f267e994332aadd697fce94346cd2e3e7a4993abc36bc5e3186dc138999433301f2454916494004de286aedc5b678064aee2e904a2
6
+ metadata.gz: a2a571d9577b9646b207b1ecbc3a4e8dfd012907d3ea54df5d7e5e8f490d03f162ada84e3dea2cd51f5c16b1d9b422183216187172a472c6b7c7305ced781e8c
7
+ data.tar.gz: 8122a4539cb3513c9f6b4fcb642fba25d94bea810115ef51bffb378e900fad2a2e5f93a123e77aa93cab9712b53d9412ec7ec8bbec5d8c6f4f9a48b49397a030
@@ -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.14
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