playbook_ui_docs 15.0.0.pre.alpha.PLAY2453formtextfieldtextinputprops10419 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04cdf95124b3174deb3af4cee4ce8960ccafc0da4961da20aa27fc629fc759b1
4
- data.tar.gz: 0fa3cf1ba4e1ee5031b27de6d8ca29205b42965d9c2eb042e9bccfd1ad4d935b
3
+ metadata.gz: 1ddf5b71ec8cd139aab7b582651ee013d6197d1f9314ac23f36e79326dc3703b
4
+ data.tar.gz: 9656375b5312c3f24ddf341c06ad88419212afcab8e5512954f9c91f89438dca
5
5
  SHA512:
6
- metadata.gz: 839f196f996001e791df32006d801bf9dfbb68f3b930a9206b9e9036a30c65a084ade4340c250829f78a50e2073061f24a8ae7158fca35803e930da1bcf91c28
7
- data.tar.gz: 0eaf3cc425ec9a697a763bcec8feaa2837ec1f5471a3490d18ad8a2abc78e1e9f598c0a87a1fa2c12a3c6a8dfc3463962827f57cd28c6ea5d4527373ab56f1ae
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: "wrong number",
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.
@@ -26,3 +26,9 @@
26
26
  contact_value: "1233",
27
27
  contact_detail: "Ext",
28
28
  }) %>
29
+
30
+ <%= pb_rails("contact", props: {
31
+ contact_type: "international",
32
+ contact_value: "+44 7700 900461",
33
+ contact_detail: "International",
34
+ }) %>
@@ -33,6 +33,12 @@ const ContactDefault = (props) => {
33
33
  contactValue="1234"
34
34
  {...props}
35
35
  />
36
+ <Contact
37
+ contactDetail="International"
38
+ contactType="international"
39
+ contactValue="+44 7700 900461"
40
+ {...props}
41
+ />
36
42
  </div>
37
43
  )
38
44
  }
@@ -3,11 +3,9 @@ examples:
3
3
  rails:
4
4
  - loading_inline_default: Default
5
5
  - loading_inline_custom: Custom Text
6
- - loading_inline_variant: Variant
7
6
 
8
7
 
9
8
 
10
9
  react:
11
10
  - loading_inline_default: Default
12
11
  - loading_inline_custom: Custom Text
13
- - loading_inline_variant: Variant
@@ -1,3 +1,2 @@
1
1
  export { default as LoadingInlineDefault } from './_loading_inline_default.jsx'
2
2
  export { default as LoadingInlineCustom } from './_loading_inline_custom.jsx'
3
- export { default as LoadingInlineVariant } from './_loading_inline_variant.jsx'
@@ -9,8 +9,6 @@ examples:
9
9
  - text_input_no_label: No Label
10
10
  - text_input_options: Input Options
11
11
  - text_input_mask: Mask
12
- - text_input_autocomplete: Autocomplete
13
-
14
12
  react:
15
13
  - text_input_default: Default
16
14
  - text_input_error: With Error
@@ -21,7 +19,6 @@ examples:
21
19
  - text_input_no_label: No Label
22
20
  - text_input_mask: Mask
23
21
  - text_input_sanitize: Sanitized Masked Input
24
- - text_input_autocomplete: Autocomplete
25
22
 
26
23
 
27
24
  swift:
@@ -7,4 +7,3 @@ export { default as TextInputInline } from './_text_input_inline.jsx'
7
7
  export { default as TextInputNoLabel } from './_text_input_no_label.jsx'
8
8
  export { default as TextInputMask } from './_text_input_mask.jsx'
9
9
  export { default as TextInputSanitize } from './_text_input_sanitize.jsx'
10
- export { default as TextInputAutocomplete } from './_text_input_autocomplete.jsx'