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 +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/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
- data/dist/playbook-doc.js +2 -2
- metadata +3 -7
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb +0 -5
- data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +0 -24
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.html.erb +0 -41
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.jsx +0 -80
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.md +0 -1
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: 15.0.0.pre.alpha.
|
4
|
+
version: 15.0.0.pre.alpha.PLAY2467contactkitinternational10329
|
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: 2025-09-
|
12
|
+
date: 2025-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -511,6 +511,7 @@ files:
|
|
511
511
|
- app/pb_kits/playbook/pb_collapsible/docs/index.js
|
512
512
|
- app/pb_kits/playbook/pb_contact/docs/_contact_default.html.erb
|
513
513
|
- app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx
|
514
|
+
- app/pb_kits/playbook/pb_contact/docs/_contact_default.md
|
514
515
|
- app/pb_kits/playbook/pb_contact/docs/_contact_default_swift.md
|
515
516
|
- app/pb_kits/playbook/pb_contact/docs/_contact_props_swift.md
|
516
517
|
- app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.html.erb
|
@@ -1384,8 +1385,6 @@ files:
|
|
1384
1385
|
- app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_custom.jsx
|
1385
1386
|
- app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_default.html.erb
|
1386
1387
|
- app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_default.jsx
|
1387
|
-
- app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.html.erb
|
1388
|
-
- app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx
|
1389
1388
|
- app/pb_kits/playbook/pb_loading_inline/docs/example.yml
|
1390
1389
|
- app/pb_kits/playbook/pb_loading_inline/docs/index.js
|
1391
1390
|
- app/pb_kits/playbook/pb_map/docs/_map_default.jsx
|
@@ -2137,9 +2136,6 @@ files:
|
|
2137
2136
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.html.erb
|
2138
2137
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on.jsx
|
2139
2138
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_add_on_swift.md
|
2140
|
-
- app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.html.erb
|
2141
|
-
- app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.jsx
|
2142
|
-
- app/pb_kits/playbook/pb_text_input/docs/_text_input_autocomplete.md
|
2143
2139
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.html.erb
|
2144
2140
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
|
2145
2141
|
- app/pb_kits/playbook/pb_text_input/docs/_text_input_default.html.erb
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { LoadingInline } from 'playbook-ui'
|
3
|
-
|
4
|
-
const LoadingInlineVariant = (props) => {
|
5
|
-
return (
|
6
|
-
<div>
|
7
|
-
<LoadingInline
|
8
|
-
text=" Dotted Spinner"
|
9
|
-
variant="dotted"
|
10
|
-
{...props}
|
11
|
-
/>
|
12
|
-
|
13
|
-
<br />
|
14
|
-
|
15
|
-
<LoadingInline
|
16
|
-
text=" Solid Spinner"
|
17
|
-
variant="solid"
|
18
|
-
{...props}
|
19
|
-
/>
|
20
|
-
</div>
|
21
|
-
)
|
22
|
-
}
|
23
|
-
|
24
|
-
export default LoadingInlineVariant
|
@@ -1,41 +0,0 @@
|
|
1
|
-
<%= pb_rails("text_input", props: {
|
2
|
-
autocomplete: false,
|
3
|
-
label: "autocomplete='off'",
|
4
|
-
name: "firstName",
|
5
|
-
placeholder: "Enter first name",
|
6
|
-
}) %>
|
7
|
-
|
8
|
-
<%= pb_rails("text_input", props: {
|
9
|
-
label: "no autocomplete attribute (let browser decide- basically 'on')",
|
10
|
-
name: "lastName",
|
11
|
-
placeholder: "Enter last name"
|
12
|
-
}) %>
|
13
|
-
|
14
|
-
<%= pb_rails("text_input", props: {
|
15
|
-
autocomplete: true,
|
16
|
-
label: "autocomplete='on'",
|
17
|
-
name: "phone",
|
18
|
-
type: "phone",
|
19
|
-
placeholder: "Enter phone number"
|
20
|
-
}) %>
|
21
|
-
|
22
|
-
<%= pb_rails("body", props: { margin_bottom: "sm" }) do %>
|
23
|
-
The following have the same autocomplete attributes (email), but have
|
24
|
-
different name attributes (email and emailAlt). Many browsers will
|
25
|
-
open autocomplete based on name attributes instead of autocomplete:
|
26
|
-
<% end %>
|
27
|
-
|
28
|
-
<%= pb_rails("text_input", props: {
|
29
|
-
autocomplete: "email",
|
30
|
-
label: "autocomplete='email' name='email'",
|
31
|
-
name: "email",
|
32
|
-
placeholder: "Enter email address"
|
33
|
-
}) %>
|
34
|
-
|
35
|
-
<%= pb_rails("text_input", props: {
|
36
|
-
autocomplete: "email",
|
37
|
-
label: "autocomplete='email' name='emailAlt'",
|
38
|
-
name: "emailAlt",
|
39
|
-
type: "email",
|
40
|
-
placeholder: "Enter email address"
|
41
|
-
}) %>
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
|
3
|
-
import TextInput from '../../pb_text_input/_text_input'
|
4
|
-
import Body from '../../pb_body/_body'
|
5
|
-
|
6
|
-
|
7
|
-
const TextInputAutocomplete = (props) => {
|
8
|
-
const [formFields, setFormFields] = useState({
|
9
|
-
firstName: "",
|
10
|
-
lastName: "",
|
11
|
-
phone: "",
|
12
|
-
emailTest: "",
|
13
|
-
email: "",
|
14
|
-
});
|
15
|
-
|
16
|
-
const handleOnChangeFormField = ({ target }) => {
|
17
|
-
const { name, value } = target;
|
18
|
-
setFormFields({ ...formFields, [name]: value });
|
19
|
-
};
|
20
|
-
|
21
|
-
return (
|
22
|
-
<div>
|
23
|
-
<TextInput
|
24
|
-
autoComplete={false}
|
25
|
-
label="autocomplete='off'"
|
26
|
-
name="firstName"
|
27
|
-
onChange={handleOnChangeFormField}
|
28
|
-
placeholder="Enter first name"
|
29
|
-
value={formFields.firstName}
|
30
|
-
{...props}
|
31
|
-
/>
|
32
|
-
<TextInput
|
33
|
-
label="no autocomplete attribute (let browser decide- basically 'on')"
|
34
|
-
name="lastName"
|
35
|
-
onChange={handleOnChangeFormField}
|
36
|
-
placeholder="Enter last name"
|
37
|
-
value={formFields.lastName}
|
38
|
-
{...props}
|
39
|
-
/>
|
40
|
-
<TextInput
|
41
|
-
autoComplete
|
42
|
-
label="autocomplete='on'"
|
43
|
-
name="phone"
|
44
|
-
onChange={handleOnChangeFormField}
|
45
|
-
placeholder="Enter phone number"
|
46
|
-
type="phone"
|
47
|
-
value={formFields.phone}
|
48
|
-
{...props}
|
49
|
-
/>
|
50
|
-
<Body marginBottom="sm">
|
51
|
-
The following have the same autocomplete attributes (email), but have
|
52
|
-
different name attributes (email and emailAlt). Many browsers will
|
53
|
-
open autocomplete based on name attributes instead of autocomplete:
|
54
|
-
</Body>
|
55
|
-
<TextInput
|
56
|
-
autoComplete="email"
|
57
|
-
label="autocomplete='email' name='email'"
|
58
|
-
name="email"
|
59
|
-
onChange={handleOnChangeFormField}
|
60
|
-
placeholder="Enter email address"
|
61
|
-
type="email"
|
62
|
-
value={formFields.email}
|
63
|
-
{...props}
|
64
|
-
/>
|
65
|
-
<TextInput
|
66
|
-
autoComplete="email"
|
67
|
-
label="autocomplete='email' name='emailAlt'"
|
68
|
-
marginTop="sm"
|
69
|
-
name="emailTest"
|
70
|
-
onChange={handleOnChangeFormField}
|
71
|
-
placeholder="Enter email address"
|
72
|
-
type="email"
|
73
|
-
value={formFields.emailTest}
|
74
|
-
{...props}
|
75
|
-
/>
|
76
|
-
</div>
|
77
|
-
);
|
78
|
-
};
|
79
|
-
|
80
|
-
export default TextInputAutocomplete;
|
@@ -1 +0,0 @@
|
|
1
|
-
Set this prop to `false` or `"off"` to remove autocomplete from text inputs. You can also set it to a string, but browsers will often defer to other attributes like `name`.
|