playbook_ui_docs 15.0.0.pre.alpha.PLAY236510413 → 15.0.0.pre.alpha.play1986inlineloadingsolidvariant10321
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_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 +2 -31
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.html.erb +0 -31
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +0 -81
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.html.erb +0 -25
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +0 -40
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.md +0 -5
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.html.erb +0 -27
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +0 -39
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +0 -5
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.html.erb +0 -93
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +0 -131
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.md +0 -14
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.html.erb +0 -42
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +0 -58
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.html.erb +0 -24
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +0 -38
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.html.erb +0 -22
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +0 -33
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.html.erb +0 -118
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +0 -144
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +0 -60
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.html.erb +0 -24
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +0 -42
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.html.erb +0 -38
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +0 -52
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/example.yml +0 -29
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/index.js +0 -11
- 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
@@ -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`.
|