playbook_ui_docs 15.0.0.pre.alpha.PLAY2423circleiconbuttonaria10326 → 15.0.0.pre.alpha.PLAY2467contactkitinternational10329
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 +4 -4
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb +16 -1
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +15 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_default.md +5 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb +6 -0
- data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +6 -0
- data/dist/playbook-doc.js +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ddf5b71ec8cd139aab7b582651ee013d6197d1f9314ac23f36e79326dc3703b
|
4
|
+
data.tar.gz: 9656375b5312c3f24ddf341c06ad88419212afcab8e5512954f9c91f89438dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3962e3967f6e929268089ca85de8dee4645b30f72dfe15250541b9c9ab9a7145cb132d9f1673ce754e37589ab87ceebf604b8320f4c15fecb2c1b19c813cc427
|
7
|
+
data.tar.gz: 44120daf66b8d884a2334b8967372936c2572ad65838dac76d275c8547e1c154e31049d2906f077a8e4b9954f6232584630bcb1c0f5daa90ba220cc7312c03a6
|
@@ -13,7 +13,7 @@
|
|
13
13
|
}) %>
|
14
14
|
|
15
15
|
<%= pb_rails("contact", props: {
|
16
|
-
contact_type: "
|
16
|
+
contact_type: "work",
|
17
17
|
contact_value: "3245627482",
|
18
18
|
}) %>
|
19
19
|
|
@@ -21,3 +21,18 @@
|
|
21
21
|
contact_type: "work-cell",
|
22
22
|
contact_value: "349-185-9988",
|
23
23
|
}) %>
|
24
|
+
|
25
|
+
<%= pb_rails("contact", props: {
|
26
|
+
contact_type: "wrong-phone",
|
27
|
+
contact_value: "2124396666",
|
28
|
+
}) %>
|
29
|
+
|
30
|
+
<%= pb_rails("contact", props: {
|
31
|
+
contact_type: "extension",
|
32
|
+
contact_value: "1233",
|
33
|
+
}) %>
|
34
|
+
|
35
|
+
<%= pb_rails("contact", props: {
|
36
|
+
contact_type: "international",
|
37
|
+
contact_value: "+44 7700 900461",
|
38
|
+
}) %>
|
@@ -28,6 +28,21 @@ const ContactDefault = (props) => {
|
|
28
28
|
contactValue="3245627482"
|
29
29
|
{...props}
|
30
30
|
/>
|
31
|
+
<Contact
|
32
|
+
contactType="wrong-phone"
|
33
|
+
contactValue="2124396666"
|
34
|
+
{...props}
|
35
|
+
/>
|
36
|
+
<Contact
|
37
|
+
contactType='extension'
|
38
|
+
contactValue="1234"
|
39
|
+
{...props}
|
40
|
+
/>
|
41
|
+
<Contact
|
42
|
+
contactType="international"
|
43
|
+
contactValue="+44 7700 900461"
|
44
|
+
{...props}
|
45
|
+
/>
|
31
46
|
</div>
|
32
47
|
)
|
33
48
|
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
The Contact kit automatically formats US phone numbers when the `contactType` / `contact_type` is one of: `home` (default), `work`, `cell`, `work-cell`, `wrong-phone`.
|
2
|
+
|
3
|
+
- Use `email` to display emails.
|
4
|
+
- Use `international` to display International phone numbers exactly as provided (no formatting applied).
|
5
|
+
- Use `extension` to display four digit phone extensions.
|