playbook_ui_docs 16.1.0.pre.alpha.ghostcrewfileuploadtext14338 → 16.1.0.pre.alpha.play2708fixmaxdisplayeduserprop14270
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_button/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +1 -153
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +0 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +0 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb +3 -3
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.html.erb +4 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_full_width.jsx +1 -4
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +17 -18
- data/app/pb_kits/playbook/pb_select/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.html.erb +1 -1
- data/app/pb_kits/playbook/pb_star_rating/docs/_star_rating_interactive.jsx +0 -1
- metadata +2 -18
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant.html.erb +0 -21
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant.jsx +0 -180
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_rails.md +0 -1
- data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_react.md +0 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.html.erb +0 -5
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.jsx +0 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.md +0 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.html.erb +0 -14
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.jsx +0 -42
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb +0 -72
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx +0 -87
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md +0 -3
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb +0 -24
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx +0 -33
- data/app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b44d1d184aad40c52b0f91004898044fccd1ae90d81b046c32c7905e0b4d2386
|
|
4
|
+
data.tar.gz: 3fde61e9017bd10e33c2e222b546624270b6c373888ccfb8fe365b49318ca8cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3535426edd132589740a177b374975f04573e8c370bb16096bb7ed7ae409a880af9ae995dc9cc6451e85e0c16fd52cae31d822c2d8e6e00d0cd0e22a4f6cdb2f
|
|
7
|
+
data.tar.gz: 9f78a03db214a1a06e809956167890941f21f4c1fff1b0eea51d92c2d4cb2612e439a15a92aa6096a607585b8f0ffa739a8c8b8653ad3e6421d4aa949998bf2d
|
|
@@ -13,7 +13,6 @@ examples:
|
|
|
13
13
|
- button_form: Button Form Attribute
|
|
14
14
|
- button_managed_disabled: Button Toggle Disabled State
|
|
15
15
|
- button_managed_disabled_helper: Button Toggle Disabled State Helper
|
|
16
|
-
- button_icon_variant: Icon Button Variant
|
|
17
16
|
|
|
18
17
|
react:
|
|
19
18
|
- button_default: Button Variants
|
|
@@ -28,7 +27,6 @@ examples:
|
|
|
28
27
|
- button_size: Button Size
|
|
29
28
|
- button_form: Button Form Attribute
|
|
30
29
|
- button_hover: Button Hover
|
|
31
|
-
- button_icon_variant: Icon Button Variant
|
|
32
30
|
|
|
33
31
|
swift:
|
|
34
32
|
- button_default_swift: Button Variants
|
|
@@ -4,7 +4,6 @@ export { default as ButtonLink } from './_button_link.jsx'
|
|
|
4
4
|
export { default as ButtonLoading } from './_button_loading.jsx'
|
|
5
5
|
export { default as ButtonBlockContent } from './_button_block_content.jsx'
|
|
6
6
|
export { default as ButtonIconOptions } from './_button_icon_options.jsx'
|
|
7
|
-
export { default as ButtonIconVariant } from './_button_icon_variant.jsx'
|
|
8
7
|
export { default as ButtonAccessibility } from './_button_accessibility.jsx'
|
|
9
8
|
export { default as ButtonOptions } from './_button_options.jsx'
|
|
10
9
|
export { default as ButtonSize } from './_button_size.jsx'
|
|
@@ -31,7 +31,6 @@ examples:
|
|
|
31
31
|
- date_picker_time: Time Selection
|
|
32
32
|
- date_picker_positions: Custom Positions
|
|
33
33
|
- date_picker_positions_element: Custom Position (based on element)
|
|
34
|
-
- date_picker_required_indicator: Required Indicator
|
|
35
34
|
- date_picker_turbo_frames: Within Turbo Frames
|
|
36
35
|
|
|
37
36
|
react:
|
|
@@ -65,4 +64,3 @@ examples:
|
|
|
65
64
|
- date_picker_time: Time Selection
|
|
66
65
|
- date_picker_positions: Custom Positions
|
|
67
66
|
- date_picker_positions_element: Custom Position (based on element)
|
|
68
|
-
- date_picker_required_indicator: Required Indicator
|
|
@@ -27,5 +27,4 @@ export { default as DatePickerQuickPickCustom } from './_date_picker_quick_pick_
|
|
|
27
27
|
export { default as DatePickerQuickPickCustomOverride } from './_date_picker_quick_pick_custom_override'
|
|
28
28
|
export { default as DatePickerQuickPickDefaultDate } from './_date_picker_quick_pick_default_date'
|
|
29
29
|
export { default as DatePickerRangePattern } from './_date_picker_range_pattern'
|
|
30
|
-
export { default as DatePickerAndDropdownRange } from './_date_picker_and_dropdown_range.jsx'
|
|
31
|
-
export { default as DatePickerRequiredIndicator } from "./_date_picker_required_indicator.jsx";
|
|
30
|
+
export { default as DatePickerAndDropdownRange } from './_date_picker_and_dropdown_range.jsx'
|
|
@@ -31,7 +31,6 @@ examples:
|
|
|
31
31
|
- dropdown_quickpick_custom_rails: Quick Pick Variant (Custom Quick Pick Dates)
|
|
32
32
|
- dropdown_quickpick_with_date_pickers_rails: Quick Pick with Date Pickers
|
|
33
33
|
- dropdown_quickpick_with_date_pickers_default_rails: Quick Pick with Date Pickers (Default Value)
|
|
34
|
-
- dropdown_required_indicator: Required Indicator
|
|
35
34
|
|
|
36
35
|
react:
|
|
37
36
|
- dropdown_default: Default
|
|
@@ -67,4 +66,5 @@ examples:
|
|
|
67
66
|
- dropdown_quickpick_default_dates: Quick Pick Variant (Default Dates)
|
|
68
67
|
- dropdown_quickpick_custom: Quick Pick Variant (Custom Quick Pick Dates)
|
|
69
68
|
- dropdown_quickpick_with_date_pickers: Quick Pick Variant with Date Pickers
|
|
70
|
-
|
|
69
|
+
|
|
70
|
+
|
|
@@ -30,5 +30,4 @@ export { default as DropdownQuickpickDefaultDates } from './_dropdown_quickpick_
|
|
|
30
30
|
export { default as DropdownQuickpickWithDatePickers } from './_dropdown_quickpick_with_date_pickers.jsx'
|
|
31
31
|
export { default as DropdownQuickpickCustom } from './_dropdown_quickpick_custom.jsx'
|
|
32
32
|
export { default as DropdownWithClearable } from './_dropdown_with_clearable.jsx'
|
|
33
|
-
export { default as DropdownWithConstrainHeight } from './_dropdown_with_constrain_height.jsx'
|
|
34
|
-
export { default as DropdownRequiredIndicator } from "./_dropdown_required_indicator.jsx";
|
|
33
|
+
export { default as DropdownWithConstrainHeight } from './_dropdown_with_constrain_height.jsx'
|
|
@@ -1,135 +1,3 @@
|
|
|
1
|
-
<% tree_data = [
|
|
2
|
-
{
|
|
3
|
-
label: "HQ",
|
|
4
|
-
value: "hQ",
|
|
5
|
-
id: "hq",
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
label: "Philadelphia",
|
|
9
|
-
value: "philadelphia",
|
|
10
|
-
id: "phl",
|
|
11
|
-
children: [
|
|
12
|
-
{
|
|
13
|
-
label: "Marketing & Sales PHL",
|
|
14
|
-
value: "marketingAndSalesPhl",
|
|
15
|
-
id: "marketingPHL",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
label: "Installation Office PHL",
|
|
19
|
-
value: "installationOfficePhl",
|
|
20
|
-
id: "installationPHL",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: "Warehouse PHL",
|
|
24
|
-
value: "warehousePhl",
|
|
25
|
-
id: "warehousePHL",
|
|
26
|
-
},
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: "New Jersey",
|
|
31
|
-
value: "newJersey",
|
|
32
|
-
id: "nj",
|
|
33
|
-
children: [
|
|
34
|
-
{
|
|
35
|
-
label: "New Jersey",
|
|
36
|
-
value: "newJersey",
|
|
37
|
-
id: "nj1",
|
|
38
|
-
children: [
|
|
39
|
-
{
|
|
40
|
-
label: "Marketing & Sales NJ",
|
|
41
|
-
value: "marketingAndSalesNj",
|
|
42
|
-
id: "marketingNJ",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
label: "Installation Office NJ",
|
|
46
|
-
value: "installationOfficeNj",
|
|
47
|
-
id: "installationNJ",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: "Warehouse NJ",
|
|
51
|
-
value: "warehouseNj",
|
|
52
|
-
id: "warehouseNJ",
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: "Princeton",
|
|
58
|
-
value: "princeton",
|
|
59
|
-
id: "princeton",
|
|
60
|
-
children: [
|
|
61
|
-
{
|
|
62
|
-
label: "Marketing & Sales Princeton",
|
|
63
|
-
value: "marketingAndSalesPrinceton",
|
|
64
|
-
id: "marketingPR",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
label: "Installation Office Princeton",
|
|
68
|
-
value: "installationOfficePrinceton",
|
|
69
|
-
id: "installationPR",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: "Warehouse Princeton",
|
|
73
|
-
value: "warehousePrinceton",
|
|
74
|
-
id: "warehousePR",
|
|
75
|
-
},
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
]
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
label: "Maryland",
|
|
82
|
-
value: "maryland",
|
|
83
|
-
id: "MD",
|
|
84
|
-
children: [
|
|
85
|
-
{
|
|
86
|
-
label: "Marketing & Sales MD",
|
|
87
|
-
value: "marketingAndSalesMd",
|
|
88
|
-
id: "marketingMD",
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
label: "Installation Office MD",
|
|
92
|
-
value: "installationOfficeMd",
|
|
93
|
-
id: "installationMD",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: "Warehouse MD",
|
|
97
|
-
value: "warehouseMd",
|
|
98
|
-
id: "warehouseMD",
|
|
99
|
-
},
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: "Connecticut",
|
|
104
|
-
value: "connecticut",
|
|
105
|
-
id: "CT",
|
|
106
|
-
children: [
|
|
107
|
-
{
|
|
108
|
-
label: "Marketing & Sales CT",
|
|
109
|
-
value: "marketingAndSalesCt",
|
|
110
|
-
id: "marketingCT",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
label: "Installation Office CT",
|
|
114
|
-
value: "installationOfficeCt",
|
|
115
|
-
id: "installationCT",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
label: "Warehouse CT",
|
|
119
|
-
value: "warehouseCt",
|
|
120
|
-
id: "warehouseCT",
|
|
121
|
-
},
|
|
122
|
-
]
|
|
123
|
-
},
|
|
124
|
-
]; %>
|
|
125
|
-
<%
|
|
126
|
-
example_dropdown_options = [
|
|
127
|
-
{ label: 'United States', value: 'United States', id: 'us' },
|
|
128
|
-
{ label: 'Canada', value: 'Canada', id: 'ca' },
|
|
129
|
-
{ label: 'Pakistan', value: 'Pakistan', id: 'pk' }
|
|
130
|
-
]
|
|
131
|
-
%>
|
|
132
|
-
|
|
133
1
|
<%= pb_form_with(scope: :example, url: "", method: :get, validate: true) do |form| %>
|
|
134
2
|
<%= form.typeahead :example_typeahead_field, props: { label: true, required: true, required_indicator: true } %>
|
|
135
3
|
<%= form.text_field :example_text_field, props: { label: true, required: true, required_indicator: true } %>
|
|
@@ -142,28 +10,8 @@
|
|
|
142
10
|
<%= form.url_field :example_url_field, props: { label: true, required: true, required_indicator: true } %>
|
|
143
11
|
<%= form.text_area :example_text_area, props: { label: true, required: true, required_indicator: true } %>
|
|
144
12
|
<%= form.text_area :example_text_area_2, props: { label: "Textarea Custom Label", required: true, required_indicator: true } %>
|
|
145
|
-
<%# form.check_box :example_checkbox, props: { label: true, text: "Checkbox Label", required: true, required_indicator: true } %>
|
|
13
|
+
<%# <%= form.check_box :example_checkbox, props: { label: true, text: "Checkbox Label", required: true, required_indicator: true } %>
|
|
146
14
|
<%= form.time_picker :example_time_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
147
|
-
<%= form.date_picker :example_date_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
148
|
-
<%= form.date_picker :example_date_picker_required_indicator_custom, props: { label: "Custom Date Picker Label", required: true, required_indicator: true } %>
|
|
149
|
-
<%= form.select :example_select_required_indicator, [["Yes", 1], ["No", 2]], props: { label: true, required: true, required_indicator: true } %>
|
|
150
|
-
<%= form.select :example_select_required_indicator_2, [["Yes", 1], ["No", 2]], props: { label: "Example Select Field", required: true, required_indicator: true } %>
|
|
151
|
-
<%= form.multi_level_select :example_multi_level_select_required_indicator, props: {
|
|
152
|
-
label: true,
|
|
153
|
-
margin_y: 'sm',
|
|
154
|
-
required: true,
|
|
155
|
-
required_indicator: true,
|
|
156
|
-
tree_data: tree_data
|
|
157
|
-
} %>
|
|
158
|
-
<%= form.multi_level_select :example_multi_level_select_required_indicator_custom, props: {
|
|
159
|
-
label: "Custom Multi Level Select Label",
|
|
160
|
-
margin_y: 'sm',
|
|
161
|
-
required: true,
|
|
162
|
-
required_indicator: true,
|
|
163
|
-
tree_data: tree_data
|
|
164
|
-
} %>
|
|
165
|
-
<%= form.dropdown_field :example_dropdown, props: { label: true, options: example_dropdown_options, required: true, required_indicator: true } %>
|
|
166
|
-
<%= form.dropdown_field :example_dropdown_2, props: { label: "Dropdown Custom Label", options: example_dropdown_options, required: true, required_indicator: true } %>
|
|
167
15
|
|
|
168
16
|
<%= form.actions do |action| %>
|
|
169
17
|
<%= action.submit %>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "with label", placeholder: "Search"
|
|
3
|
+
<%= pb_rails("text_input", props: { label: "with label", placeholder: "Search" }) %>
|
|
4
4
|
<%= pb_rails("button", props: { text: "Submit", variant: "secondary" }) %>
|
|
5
5
|
<% end %>
|
|
6
6
|
<br/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "Event", placeholder: "Event Name"
|
|
3
|
+
<%= pb_rails("text_input", props: { label: "Event", placeholder: "Event Name" }) %>
|
|
4
4
|
<%= pb_rails("date_picker", props: { label: "Event Date", picker_id: "date-picker-default" }) %>
|
|
5
5
|
<% end %>
|
|
6
6
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "First Name", placeholder: "Enter First Name"
|
|
4
|
-
<%= pb_rails("text_input", props: { label: "Middle
|
|
5
|
-
<%= pb_rails("text_input", props: { label: "Last Name", placeholder: "Enter Last Name"
|
|
3
|
+
<%= pb_rails("text_input", props: { label: "First Name", placeholder: "Enter First Name" }) %>
|
|
4
|
+
<%= pb_rails("text_input", props: { label: "Middle Intial", placeholder: "Enter Middle Initial" }) %>
|
|
5
|
+
<%= pb_rails("text_input", props: { label: "Last Name", placeholder: "Enter Last Name" }) %>
|
|
6
6
|
<% end %>
|
|
7
7
|
</div>
|
|
@@ -7,19 +7,16 @@ const FormGroupDefault = (props) => (
|
|
|
7
7
|
<div>
|
|
8
8
|
<FormGroup>
|
|
9
9
|
<TextInput
|
|
10
|
-
id="first-name"
|
|
11
10
|
label="First Name"
|
|
12
11
|
placeholder="Enter First Name"
|
|
13
12
|
{...props}
|
|
14
13
|
/>
|
|
15
14
|
<TextInput
|
|
16
|
-
|
|
17
|
-
label="Middle Initial"
|
|
15
|
+
label="Middle Intial"
|
|
18
16
|
placeholder="Enter Middle Initial"
|
|
19
17
|
{...props}
|
|
20
18
|
/>
|
|
21
19
|
<TextInput
|
|
22
|
-
id="last-name"
|
|
23
20
|
label="Last Name"
|
|
24
21
|
placeholder="Enter Last Name"
|
|
25
22
|
{...props}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<div>
|
|
2
2
|
<%= pb_rails("form_group", props: { full_width: true }) do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "First Name", placeholder: "Enter First Name"
|
|
4
|
-
<%= pb_rails("text_input", props: { label: "Middle
|
|
5
|
-
<%= pb_rails("text_input", props: { label: "Last Name", placeholder: "Enter Last Name"
|
|
3
|
+
<%= pb_rails("text_input", props: { label: "First Name", placeholder: "Enter First Name" }) %>
|
|
4
|
+
<%= pb_rails("text_input", props: { label: "Middle Intial", placeholder: "Enter Middle Initial" }) %>
|
|
5
|
+
<%= pb_rails("text_input", props: { label: "Last Name", placeholder: "Enter Last Name" }) %>
|
|
6
6
|
<% end %>
|
|
7
7
|
<br/>
|
|
8
8
|
<br/>
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
<%= pb_rails("text_input", props: { placeholder: "Search" }) %>
|
|
11
11
|
<%= pb_rails("button", props: { text: "Submit", variant: "secondary" }) %>
|
|
12
12
|
<% end %>
|
|
13
|
-
</div>
|
|
13
|
+
</div>
|
|
@@ -9,19 +9,16 @@ const FormGroupFullWidth = (props) => (
|
|
|
9
9
|
<div>
|
|
10
10
|
<FormGroup fullWidth>
|
|
11
11
|
<TextInput
|
|
12
|
-
id="first-name-full-width"
|
|
13
12
|
label="First Name"
|
|
14
13
|
placeholder="Enter First Name"
|
|
15
14
|
{...props}
|
|
16
15
|
/>
|
|
17
16
|
<TextInput
|
|
18
|
-
|
|
19
|
-
label="Middle Initial"
|
|
17
|
+
label="Middle Intial"
|
|
20
18
|
placeholder="Enter Middle Initial"
|
|
21
19
|
{...props}
|
|
22
20
|
/>
|
|
23
21
|
<TextInput
|
|
24
|
-
id="last-name-full-width"
|
|
25
22
|
label="Last Name"
|
|
26
23
|
placeholder="Enter Last Name"
|
|
27
24
|
{...props}
|
|
@@ -17,7 +17,6 @@ examples:
|
|
|
17
17
|
- multi_level_select_disabled_options_parent_default: Disabled Parent Option (Default)
|
|
18
18
|
- multi_level_select_disabled_options_parent: Disabled Parent Option (Return All Selected)
|
|
19
19
|
- multi_level_select_single_disabled: Disabled Options (Single Select)
|
|
20
|
-
- multi_level_select_required_indicator: Required Indicator
|
|
21
20
|
|
|
22
21
|
react:
|
|
23
22
|
- multi_level_select_default: Default
|
|
@@ -38,4 +37,3 @@ examples:
|
|
|
38
37
|
- multi_level_select_disabled_options_parent_default: Disabled Parent Option (Default)
|
|
39
38
|
- multi_level_select_disabled_options_parent: Disabled Parent Option (Return All Selected)
|
|
40
39
|
- multi_level_select_single_disabled: Disabled Options (Single Select)
|
|
41
|
-
- multi_level_select_required_indicator: Required Indicator
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
export { default as MultiLevelSelectDefault } from
|
|
2
|
-
export { default as MultiLevelSelectSingle } from
|
|
3
|
-
export { default as MultiLevelSelectSingleChildrenOnly } from
|
|
4
|
-
export { default as MultiLevelSelectReturnAllSelected } from
|
|
1
|
+
export { default as MultiLevelSelectDefault } from './_multi_level_select_default.jsx'
|
|
2
|
+
export { default as MultiLevelSelectSingle } from './_multi_level_select_single.jsx'
|
|
3
|
+
export { default as MultiLevelSelectSingleChildrenOnly } from './_multi_level_select_single_children_only.jsx'
|
|
4
|
+
export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'
|
|
5
5
|
export { default as MultiLevelSelectSelectedIdsReact } from "./_multi_level_select_selected_ids_react.jsx"
|
|
6
|
-
export { default as MultiLevelSelectColor } from
|
|
7
|
-
export { default as MultiLevelSelectInputDisplay } from
|
|
8
|
-
export { default as MultiLevelSelectWithChildren } from
|
|
9
|
-
export { default as MultiLevelSelectWithChildrenWithRadios } from
|
|
10
|
-
export { default as MultiLevelSelectDisabled } from
|
|
11
|
-
export { default as MultiLevelSelectReactHook
|
|
12
|
-
export { default as MultiLevelSelectError } from
|
|
13
|
-
export { default as MultiLevelSelectDisabledOptions } from
|
|
14
|
-
export { default as MultiLevelSelectDisabledOptionsParent } from
|
|
15
|
-
export { default as MultiLevelSelectDisabledOptionsParentDefault } from
|
|
16
|
-
export { default as MultiLevelSelectDisabledOptionsDefault } from
|
|
17
|
-
export { default as MultiLevelSelectLabel } from
|
|
18
|
-
export { default as MultiLevelSelectSingleDisabled } from
|
|
19
|
-
export { default as MultiLevelSelectRequiredIndicator } from "./_multi_level_select_required_indicator.jsx"
|
|
6
|
+
export { default as MultiLevelSelectColor } from './_multi_level_select_color.jsx'
|
|
7
|
+
export { default as MultiLevelSelectInputDisplay } from './_multi_level_select_input_display.jsx'
|
|
8
|
+
export { default as MultiLevelSelectWithChildren } from './_multi_level_select_with_children.jsx'
|
|
9
|
+
export { default as MultiLevelSelectWithChildrenWithRadios } from './_multi_level_select_with_children_with_radios.jsx'
|
|
10
|
+
export { default as MultiLevelSelectDisabled } from './_multi_level_select_disabled.jsx'
|
|
11
|
+
export { default as MultiLevelSelectReactHook } from './_multi_level_select_react_hook.jsx'
|
|
12
|
+
export { default as MultiLevelSelectError } from './_multi_level_select_error.jsx'
|
|
13
|
+
export { default as MultiLevelSelectDisabledOptions } from './_multi_level_select_disabled_options.jsx'
|
|
14
|
+
export { default as MultiLevelSelectDisabledOptionsParent } from './_multi_level_select_disabled_options_parent.jsx'
|
|
15
|
+
export { default as MultiLevelSelectDisabledOptionsParentDefault } from './_multi_level_select_disabled_options_parent_default.jsx'
|
|
16
|
+
export { default as MultiLevelSelectDisabledOptionsDefault } from './_multi_level_select_disabled_options_default.jsx'
|
|
17
|
+
export { default as MultiLevelSelectLabel } from './_multi_level_select_label.jsx'
|
|
18
|
+
export { default as MultiLevelSelectSingleDisabled } from './_multi_level_select_single_disabled.jsx'
|
|
@@ -16,7 +16,7 @@ examples:
|
|
|
16
16
|
- select_attributes: Select W/ Attributes
|
|
17
17
|
- select_multiple: Select Multiple
|
|
18
18
|
- select_input_options: Input Options
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
react:
|
|
@@ -35,9 +35,8 @@ examples:
|
|
|
35
35
|
- select_multiple: Select Multiple
|
|
36
36
|
- select_react_hook: React Hook
|
|
37
37
|
- select_input_options: Input Options
|
|
38
|
-
- select_required_indicator: Required Indicator
|
|
39
38
|
|
|
40
39
|
swift:
|
|
41
40
|
- select_default_swift: Default
|
|
42
41
|
- select_error_swift: Error
|
|
43
|
-
- select_props_table: ""
|
|
42
|
+
- select_props_table: ""
|
|
@@ -13,4 +13,3 @@ export { default as SelectMultiple } from './_select_multiple.jsx'
|
|
|
13
13
|
export { default as SelectReactHook } from './_select_react_hook.jsx'
|
|
14
14
|
export { default as SelectCustomSelectSubheaders } from './_select_custom_select_subheaders.jsx'
|
|
15
15
|
export { default as SelectInputOptions } from './_select_input_options.jsx'
|
|
16
|
-
export { default as SelectRequiredIndicator } from './_select_required_indicator.jsx'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<%= pb_rails("star_rating", props: {
|
|
1
|
+
<%= pb_rails("star_rating", props: { padding_bottom: "xs", variant: "interactive" }) %>
|
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: 16.1.0.pre.alpha.
|
|
4
|
+
version: 16.1.0.pre.alpha.play2708fixmaxdisplayeduserprop14270
|
|
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: 2026-02-
|
|
12
|
+
date: 2026-02-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: playbook_ui
|
|
@@ -311,10 +311,6 @@ files:
|
|
|
311
311
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx
|
|
312
312
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options.md
|
|
313
313
|
- app/pb_kits/playbook/pb_button/docs/_button_icon_options_swift.md
|
|
314
|
-
- app/pb_kits/playbook/pb_button/docs/_button_icon_variant.html.erb
|
|
315
|
-
- app/pb_kits/playbook/pb_button/docs/_button_icon_variant.jsx
|
|
316
|
-
- app/pb_kits/playbook/pb_button/docs/_button_icon_variant_rails.md
|
|
317
|
-
- app/pb_kits/playbook/pb_button/docs/_button_icon_variant_react.md
|
|
318
314
|
- app/pb_kits/playbook/pb_button/docs/_button_link.html.erb
|
|
319
315
|
- app/pb_kits/playbook/pb_button/docs/_button_link.jsx
|
|
320
316
|
- app/pb_kits/playbook/pb_button/docs/_button_link.md
|
|
@@ -652,9 +648,6 @@ files:
|
|
|
652
648
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.md
|
|
653
649
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb
|
|
654
650
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md
|
|
655
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.html.erb
|
|
656
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.jsx
|
|
657
|
-
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.md
|
|
658
651
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
|
|
659
652
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
|
|
660
653
|
- app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
|
|
@@ -901,9 +894,6 @@ files:
|
|
|
901
894
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_default_rails.md
|
|
902
895
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.html.erb
|
|
903
896
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_quickpick_with_date_pickers_rails.md
|
|
904
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.html.erb
|
|
905
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.jsx
|
|
906
|
-
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_required_indicator.md
|
|
907
897
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.html.erb
|
|
908
898
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_separators_hidden.jsx
|
|
909
899
|
- app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
|
|
@@ -1447,9 +1437,6 @@ files:
|
|
|
1447
1437
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md
|
|
1448
1438
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx
|
|
1449
1439
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md
|
|
1450
|
-
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb
|
|
1451
|
-
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx
|
|
1452
|
-
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md
|
|
1453
1440
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
|
|
1454
1441
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md
|
|
1455
1442
|
- app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb
|
|
@@ -2058,9 +2045,6 @@ files:
|
|
|
2058
2045
|
- app/pb_kits/playbook/pb_select/docs/_select_react_hook.md
|
|
2059
2046
|
- app/pb_kits/playbook/pb_select/docs/_select_required.html.erb
|
|
2060
2047
|
- app/pb_kits/playbook/pb_select/docs/_select_required.jsx
|
|
2061
|
-
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.html.erb
|
|
2062
|
-
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.jsx
|
|
2063
|
-
- app/pb_kits/playbook/pb_select/docs/_select_required_indicator.md
|
|
2064
2048
|
- app/pb_kits/playbook/pb_select/docs/_select_value_text_same.html.erb
|
|
2065
2049
|
- app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx
|
|
2066
2050
|
- app/pb_kits/playbook/pb_select/docs/example.yml
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<%= pb_rails("caption", props: { margin_y: "md", text: "Small Size (sm)" }) %>
|
|
2
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", margin_right: "lg" }) %>
|
|
3
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", variant: "secondary", margin_right: "lg" }) %>
|
|
4
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", variant: "link", margin_right: "lg" }) %>
|
|
5
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", variant: "danger", margin_right: "lg" }) %>
|
|
6
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", disabled: true, margin_right: "lg" }) %>
|
|
7
|
-
<%= pb_rails("button", props: { icon: "plus", size: "sm", loading: true, margin_right: "lg" }) %>
|
|
8
|
-
<%= pb_rails("caption", props: { margin_y: "md", text: "Medium Size (md)" }) %>
|
|
9
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", margin_right: "lg" }) %>
|
|
10
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", variant: "secondary", margin_right: "lg" }) %>
|
|
11
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", variant: "link", margin_right: "lg" }) %>
|
|
12
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", variant: "danger", margin_right: "lg" }) %>
|
|
13
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", disabled: true, margin_right: "lg" }) %>
|
|
14
|
-
<%= pb_rails("button", props: { icon: "plus", size: "md", loading: true, margin_right: "lg" }) %>
|
|
15
|
-
<%= pb_rails("caption", props: { margin_y: "md", text: "Large Size (lg)" }) %>
|
|
16
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", margin_right: "lg" }) %>
|
|
17
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", variant: "secondary", margin_right: "lg" }) %>
|
|
18
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", variant: "link", margin_right: "lg" }) %>
|
|
19
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", variant: "danger", margin_right: "lg" }) %>
|
|
20
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", disabled: true, margin_right: "lg" }) %>
|
|
21
|
-
<%= pb_rails("button", props: { icon: "plus", size: "lg", loading: true, margin_right: "lg" }) %>
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import Button from "../../pb_button/_button"
|
|
3
|
-
import Caption from "../../pb_caption/_caption"
|
|
4
|
-
|
|
5
|
-
const ButtonIconVariant = (props) => (
|
|
6
|
-
<div>
|
|
7
|
-
<Caption
|
|
8
|
-
marginY="md"
|
|
9
|
-
text="Small Size (sm)"
|
|
10
|
-
/>
|
|
11
|
-
<Button
|
|
12
|
-
icon="plus"
|
|
13
|
-
marginRight='lg'
|
|
14
|
-
size="sm"
|
|
15
|
-
tabIndex={0}
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
{' '}
|
|
19
|
-
<Button
|
|
20
|
-
icon="plus"
|
|
21
|
-
marginRight='lg'
|
|
22
|
-
size="sm"
|
|
23
|
-
tabIndex={0}
|
|
24
|
-
variant="secondary"
|
|
25
|
-
{...props}
|
|
26
|
-
/>
|
|
27
|
-
{' '}
|
|
28
|
-
<Button
|
|
29
|
-
icon="plus"
|
|
30
|
-
marginRight='lg'
|
|
31
|
-
size="sm"
|
|
32
|
-
tabIndex={0}
|
|
33
|
-
variant="link"
|
|
34
|
-
{...props}
|
|
35
|
-
/>
|
|
36
|
-
{' '}
|
|
37
|
-
<Button
|
|
38
|
-
icon="plus"
|
|
39
|
-
marginRight='lg'
|
|
40
|
-
size="sm"
|
|
41
|
-
tabIndex={0}
|
|
42
|
-
variant="danger"
|
|
43
|
-
{...props}
|
|
44
|
-
/>
|
|
45
|
-
{' '}
|
|
46
|
-
<Button
|
|
47
|
-
disabled
|
|
48
|
-
icon="plus"
|
|
49
|
-
marginRight='lg'
|
|
50
|
-
size="sm"
|
|
51
|
-
tabIndex={0}
|
|
52
|
-
{...props}
|
|
53
|
-
/>
|
|
54
|
-
{' '}
|
|
55
|
-
<Button
|
|
56
|
-
icon="plus"
|
|
57
|
-
loading
|
|
58
|
-
marginRight='lg'
|
|
59
|
-
size="sm"
|
|
60
|
-
tabIndex={0}
|
|
61
|
-
{...props}
|
|
62
|
-
/>
|
|
63
|
-
<br/>
|
|
64
|
-
<Caption
|
|
65
|
-
marginY="md"
|
|
66
|
-
text="Medium Size (md)"
|
|
67
|
-
/>
|
|
68
|
-
<Button
|
|
69
|
-
icon="plus"
|
|
70
|
-
marginRight='lg'
|
|
71
|
-
size="md"
|
|
72
|
-
tabIndex={0}
|
|
73
|
-
{...props}
|
|
74
|
-
/>
|
|
75
|
-
{' '}
|
|
76
|
-
<Button
|
|
77
|
-
icon="plus"
|
|
78
|
-
marginRight='lg'
|
|
79
|
-
size="md"
|
|
80
|
-
tabIndex={0}
|
|
81
|
-
variant="secondary"
|
|
82
|
-
{...props}
|
|
83
|
-
/>
|
|
84
|
-
{' '}
|
|
85
|
-
<Button
|
|
86
|
-
icon="plus"
|
|
87
|
-
marginRight='lg'
|
|
88
|
-
size="md"
|
|
89
|
-
tabIndex={0}
|
|
90
|
-
variant="link"
|
|
91
|
-
{...props}
|
|
92
|
-
/>
|
|
93
|
-
{' '}
|
|
94
|
-
<Button
|
|
95
|
-
icon="plus"
|
|
96
|
-
marginRight='lg'
|
|
97
|
-
size="md"
|
|
98
|
-
tabIndex={0}
|
|
99
|
-
variant="danger"
|
|
100
|
-
{...props}
|
|
101
|
-
/>
|
|
102
|
-
{' '}
|
|
103
|
-
<Button
|
|
104
|
-
disabled
|
|
105
|
-
icon="plus"
|
|
106
|
-
marginRight='lg'
|
|
107
|
-
size="md"
|
|
108
|
-
tabIndex={0}
|
|
109
|
-
{...props}
|
|
110
|
-
/>
|
|
111
|
-
{' '}
|
|
112
|
-
<Button
|
|
113
|
-
icon="plus"
|
|
114
|
-
loading
|
|
115
|
-
marginRight='lg'
|
|
116
|
-
size="md"
|
|
117
|
-
tabIndex={0}
|
|
118
|
-
{...props}
|
|
119
|
-
/>
|
|
120
|
-
<br/>
|
|
121
|
-
<Caption
|
|
122
|
-
marginY="md"
|
|
123
|
-
text="Large Size (lg)"
|
|
124
|
-
/>
|
|
125
|
-
<Button
|
|
126
|
-
icon="plus"
|
|
127
|
-
marginRight='lg'
|
|
128
|
-
size="lg"
|
|
129
|
-
tabIndex={0}
|
|
130
|
-
{...props}
|
|
131
|
-
/>
|
|
132
|
-
{' '}
|
|
133
|
-
<Button
|
|
134
|
-
icon="plus"
|
|
135
|
-
marginRight='lg'
|
|
136
|
-
size="lg"
|
|
137
|
-
tabIndex={0}
|
|
138
|
-
variant="secondary"
|
|
139
|
-
{...props}
|
|
140
|
-
/>
|
|
141
|
-
{' '}
|
|
142
|
-
<Button
|
|
143
|
-
icon="plus"
|
|
144
|
-
marginRight='lg'
|
|
145
|
-
size="lg"
|
|
146
|
-
tabIndex={0}
|
|
147
|
-
variant="link"
|
|
148
|
-
{...props}
|
|
149
|
-
/>
|
|
150
|
-
{' '}
|
|
151
|
-
<Button
|
|
152
|
-
icon="plus"
|
|
153
|
-
marginRight='lg'
|
|
154
|
-
size="lg"
|
|
155
|
-
tabIndex={0}
|
|
156
|
-
variant="danger"
|
|
157
|
-
{...props}
|
|
158
|
-
/>
|
|
159
|
-
{' '}
|
|
160
|
-
<Button
|
|
161
|
-
disabled
|
|
162
|
-
icon="plus"
|
|
163
|
-
marginRight='lg'
|
|
164
|
-
size="lg"
|
|
165
|
-
tabIndex={0}
|
|
166
|
-
{...props}
|
|
167
|
-
/>
|
|
168
|
-
{' '}
|
|
169
|
-
<Button
|
|
170
|
-
icon="plus"
|
|
171
|
-
loading
|
|
172
|
-
marginRight='lg'
|
|
173
|
-
size="lg"
|
|
174
|
-
tabIndex={0}
|
|
175
|
-
{...props}
|
|
176
|
-
/>
|
|
177
|
-
</div>
|
|
178
|
-
)
|
|
179
|
-
|
|
180
|
-
export default ButtonIconVariant
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The icon button variant automatically renders when you provide an `icon` prop without a corresponding `text` prop. The button will only display an icon (no text) and will be wrapped with the icon button styling. This works with all button variants including "link", "primary", "secondary", etc. Simply use `<%= pb_rails("button", props: { icon: "plus", variant: "secondary" }) %>` to get an icon button.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The icon button variant automatically renders when you provide an `icon` prop without a corresponding `text` prop. The button will only display an icon (no text) and will be wrapped with the icon button styling. This works with all button variants including "link", "primary", "secondary", etc. Simply use `<Button icon="rocket" variant="primary" />` to get an icon button.
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import DatePicker from "../_date_picker"
|
|
3
|
-
|
|
4
|
-
const DatePickerRequiredIndicator = (props) => (
|
|
5
|
-
<DatePicker
|
|
6
|
-
label="Required Date Picker"
|
|
7
|
-
pickerId="date_picker_required_indicator"
|
|
8
|
-
requiredIndicator
|
|
9
|
-
{...props}
|
|
10
|
-
/>
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
export default DatePickerRequiredIndicator
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
The `requiredIndicator`/`required_indicator` prop displays a red asterisk (*) next to the label to visually indicate that the field is required. This is purely visual and does not enforce validation—you can pair it with HTML `required`, client-side validation, or server-side validation as needed.
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
options = [
|
|
3
|
-
{ label: 'United States', value: 'unitedStates', id: 'us' },
|
|
4
|
-
{ label: 'Canada', value: 'canada', id: 'ca' },
|
|
5
|
-
{ label: 'Pakistan', value: 'pakistan', id: 'pk' }
|
|
6
|
-
]
|
|
7
|
-
%>
|
|
8
|
-
|
|
9
|
-
<%= pb_rails("dropdown", props: {
|
|
10
|
-
id: "dropdown_required_indicator",
|
|
11
|
-
label: "Select a Country",
|
|
12
|
-
options: options,
|
|
13
|
-
required_indicator: true
|
|
14
|
-
}) %>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Dropdown from "../../pb_dropdown/_dropdown";
|
|
3
|
-
|
|
4
|
-
const DropdownRequiredIndicator = (props) => {
|
|
5
|
-
const options = [
|
|
6
|
-
{
|
|
7
|
-
label: "United States",
|
|
8
|
-
value: "unitedStates",
|
|
9
|
-
id: "us",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
label: "Canada",
|
|
13
|
-
value: "canada",
|
|
14
|
-
id: "ca",
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
label: "Pakistan",
|
|
18
|
-
value: "pakistan",
|
|
19
|
-
id: "pk",
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
return (
|
|
24
|
-
<div>
|
|
25
|
-
<Dropdown
|
|
26
|
-
label="Select a Country"
|
|
27
|
-
options={options}
|
|
28
|
-
requiredIndicator
|
|
29
|
-
{...props}
|
|
30
|
-
>
|
|
31
|
-
{options.map((option) => (
|
|
32
|
-
<Dropdown.Option
|
|
33
|
-
key={option.id}
|
|
34
|
-
option={option}
|
|
35
|
-
/>
|
|
36
|
-
))}
|
|
37
|
-
</Dropdown>
|
|
38
|
-
</div>
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export default DropdownRequiredIndicator;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `requiredIndicator`/`required_indicator` prop displays a red asterisk (\*) next to the label, visually indicating that the field is required. This is purely visual and does not enforce validation.
|
|
2
|
-
|
|
3
|
-
You can use `requiredIndicator`/`required_indicator` with any validation approach: HTML5 validation via the `required` prop, client-side validation, or backend validation. For this reason, it works independently and doesn't need to be paired with the `required` prop.
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<% treeData = [{
|
|
2
|
-
label: "Power Home Remodeling",
|
|
3
|
-
value: "powerHomeRemodeling",
|
|
4
|
-
id: "100",
|
|
5
|
-
expanded: true,
|
|
6
|
-
children: [
|
|
7
|
-
{
|
|
8
|
-
label: "People",
|
|
9
|
-
value: "people",
|
|
10
|
-
id: "101",
|
|
11
|
-
expanded: true,
|
|
12
|
-
children: [
|
|
13
|
-
{
|
|
14
|
-
label: "Talent Acquisition",
|
|
15
|
-
value: "talentAcquisition",
|
|
16
|
-
id: "102",
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
label: "Business Affairs",
|
|
20
|
-
value: "businessAffairs",
|
|
21
|
-
id: "103",
|
|
22
|
-
children: [
|
|
23
|
-
{
|
|
24
|
-
label: "Initiatives",
|
|
25
|
-
value: "initiatives",
|
|
26
|
-
id: "104",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
label: "Learning & Development",
|
|
30
|
-
value: "learningAndDevelopment",
|
|
31
|
-
id: "105",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "People Experience",
|
|
37
|
-
value: "peopleExperience",
|
|
38
|
-
id: "106",
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
label: "Contact Center",
|
|
44
|
-
value: "contactCenter",
|
|
45
|
-
id: "107",
|
|
46
|
-
children: [
|
|
47
|
-
{
|
|
48
|
-
label: "Appointment Management",
|
|
49
|
-
value: "appointmentManagement",
|
|
50
|
-
id: "108",
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
label: "Customer Service",
|
|
54
|
-
value: "customerService",
|
|
55
|
-
id: "109",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
label: "Energy",
|
|
59
|
-
value: "energy",
|
|
60
|
-
id: "110",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
],
|
|
65
|
-
}] %>
|
|
66
|
-
|
|
67
|
-
<%= pb_rails("multi_level_select", props: {
|
|
68
|
-
id: "select_a_department",
|
|
69
|
-
label: "Select a Department",
|
|
70
|
-
required_indicator: true,
|
|
71
|
-
tree_data: treeData
|
|
72
|
-
}) %>
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
import MultiLevelSelect from "../_multi_level_select"
|
|
3
|
-
|
|
4
|
-
const treeData = [
|
|
5
|
-
{
|
|
6
|
-
label: "Power Home Remodeling",
|
|
7
|
-
value: "powerHomeRemodeling",
|
|
8
|
-
id: "powerhome1",
|
|
9
|
-
expanded: true,
|
|
10
|
-
children: [
|
|
11
|
-
{
|
|
12
|
-
label: "People",
|
|
13
|
-
value: "people",
|
|
14
|
-
id: "people1",
|
|
15
|
-
expanded: true,
|
|
16
|
-
children: [
|
|
17
|
-
{
|
|
18
|
-
label: "Talent Acquisition",
|
|
19
|
-
value: "talentAcquisition",
|
|
20
|
-
id: "talent1"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
label: "Business Affairs",
|
|
24
|
-
value: "businessAffairs",
|
|
25
|
-
id: "business1",
|
|
26
|
-
children: [
|
|
27
|
-
{
|
|
28
|
-
label: "Initiatives",
|
|
29
|
-
value: "initiatives",
|
|
30
|
-
id: "initiative1"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: "Learning & Development",
|
|
34
|
-
value: "learningAndDevelopment",
|
|
35
|
-
id: "development1"
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
label: "People Experience",
|
|
41
|
-
value: "peopleExperience",
|
|
42
|
-
id: "experience1"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
label: "Contact Center",
|
|
48
|
-
value: "contactCenter",
|
|
49
|
-
id: "contact1",
|
|
50
|
-
children: [
|
|
51
|
-
{
|
|
52
|
-
label: "Appointment Management",
|
|
53
|
-
value: "appointmentManagement",
|
|
54
|
-
id: "appointment1"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: "Customer Service",
|
|
58
|
-
value: "customerService",
|
|
59
|
-
id: "customer1"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
label: "Energy",
|
|
63
|
-
value: "energy",
|
|
64
|
-
id: "energy1"
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
|
|
72
|
-
const MultiLevelSelectRequiredIndicator = (props) => {
|
|
73
|
-
return (
|
|
74
|
-
<div>
|
|
75
|
-
<MultiLevelSelect
|
|
76
|
-
id="select_a_department"
|
|
77
|
-
label="Select a Department"
|
|
78
|
-
onSelect={(selectedNodes) => console.log("Selected Items", selectedNodes)}
|
|
79
|
-
requiredIndicator
|
|
80
|
-
treeData={treeData}
|
|
81
|
-
{...props}
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export default MultiLevelSelectRequiredIndicator
|
data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `requiredIndicator`/`required_indicator` prop displays a red asterisk (*) next to the label, visually indicating that the field is required. This is purely visual and does not enforce validation.
|
|
2
|
-
|
|
3
|
-
You can use `requiredIndicator`/`required_indicator` with any validation approach: HTML5 validation via the `required` prop, client-side validation, or backend validation. For this reason, it works independently and doesn't need to be paired with the `required` prop.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<%= pb_rails("select", props: {
|
|
2
|
-
label: "Favorite Snacks",
|
|
3
|
-
name: "food",
|
|
4
|
-
required_indicator: true,
|
|
5
|
-
options: [
|
|
6
|
-
{
|
|
7
|
-
value: "1",
|
|
8
|
-
value_text: "Popcorn",
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
value: "2",
|
|
12
|
-
selected: true,
|
|
13
|
-
value_text: "Chips",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
value: "3",
|
|
17
|
-
value_text: "Twizzlers",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
value: "4",
|
|
21
|
-
value_text: "Cookies",
|
|
22
|
-
},
|
|
23
|
-
]
|
|
24
|
-
}) %>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
import { Select } from "playbook-ui";
|
|
4
|
-
|
|
5
|
-
const SelectRequiredIndicator = () => {
|
|
6
|
-
const options = [
|
|
7
|
-
{
|
|
8
|
-
value: "1",
|
|
9
|
-
text: "Popcorn",
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
value: "2",
|
|
13
|
-
text: "Chips",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
value: "3",
|
|
17
|
-
text: "Twizzlers",
|
|
18
|
-
},
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div>
|
|
23
|
-
<Select
|
|
24
|
-
label="Favorite Snack"
|
|
25
|
-
name="food"
|
|
26
|
-
options={options}
|
|
27
|
-
requiredIndicator
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default SelectRequiredIndicator;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
The `requiredIndicator`/`required_indicator` prop displays a red asterisk (\*) next to the label, visually indicating that the field is required. This is purely visual and does not enforce validation.
|
|
2
|
-
|
|
3
|
-
You can use `requiredIndicator`/`required_indicator` with any validation approach: HTML5 validation via the `required` prop, client-side validation, or backend validation. For this reason, it works independently and doesn't need to be paired with the `required` prop.
|