playbook_ui_docs 16.1.0.pre.alpha.play2725datepickermlsrequiredindicator14221 → 16.1.0.pre.alpha.play2771passphraseaccessibility14033

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.md +1 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  5. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -2
  6. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  7. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -2
  8. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -2
  9. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb +1 -1
  10. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -6
  11. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.jsx +0 -1
  12. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.md +1 -3
  13. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +3 -146
  14. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.html.erb +3 -3
  15. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.jsx +7 -4
  16. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
  17. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +17 -18
  18. data/app/pb_kits/playbook/pb_nav/docs/example.yml +6 -2
  19. data/app/pb_kits/playbook/pb_nav/docs/index.js +1 -2
  20. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx +0 -1
  21. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx +0 -1
  22. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
  23. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -2
  24. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  25. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +21 -22
  26. metadata +2 -23
  27. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.jsx +0 -71
  28. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.md +0 -4
  29. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb +0 -6
  30. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx +0 -17
  31. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md +0 -3
  32. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.html.erb +0 -5
  33. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.jsx +0 -13
  34. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.md +0 -1
  35. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md +0 -3
  36. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb +0 -72
  37. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx +0 -87
  38. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md +0 -3
  39. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb +0 -24
  40. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx +0 -87
  41. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx +0 -44
  42. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md +0 -1
  43. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx +0 -28
  44. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md +0 -1
  45. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb +0 -16
  46. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx +0 -23
  47. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fd055411b9ed91c7af7dbe6c8b968d66982309792c16a2f491e51033beb24dd
4
- data.tar.gz: 0b2bc9804504c744514f89e986ba5bbe3ee87887de500caa01eb3b6e7e763a2d
3
+ metadata.gz: 915ce87438a0738bdd314b31e723ebb66da44ec024d2f52859666b2c64aea4ba
4
+ data.tar.gz: de815161c5478ed1dd8bd9451a93d479183a8759a004d43344b7345e7e6aa3c8
5
5
  SHA512:
6
- metadata.gz: 4fc26ec1b6bf5d2cf65a8aa670b5a95a2dbb40382733e10de96f62b78829bfeaaee7039087124c5d9407f149ffed452e62d32033b6cf1b6203e57d7ab1781fb5
7
- data.tar.gz: 34ffc767245d7d0aa7bfe67b709e1b00473439f2282009b67be9994861f8d534843371c5dbf5a5dfebb1961ed0cf3216c7aeb25b6c3512cf23fe98065e47130d
6
+ metadata.gz: 2bd9e94e79ae341b5218c098b91d17c5b7954544906377ff42f276d1c9b462e6f4e0872e9eae23b26923a4170333fe2acf511d10f02de20b8016f1cc3198278d
7
+ data.tar.gz: f0a236c89bd8893292aaafec6b8949d96912aeaf91b3087f5867c8a02c521483d0e3e6851dbd5771ec31b211ef850a98e47c389ba4479045dda217eb2ccec845
@@ -2,4 +2,4 @@ the `enableSorting` prop is a boolean prop set to false by default. If true, the
2
2
 
3
3
  ### sortIcon
4
4
 
5
- An optional prop, `sortIcon` allows you to customize your icon sets by passing it an array of any comma-separated pair of icon values. The first icon value will replace the kit's default icon when sort direction is desc, and the second value will replace the default icon when sort direction is asc. `sortIcon` also allows you to pass it a single icon as a string, in which case the icon will not toggle with the sort state. Default for this prop is `["arrow-up-wide-short", "arrow-down-short-wide"]`. All strings must be valid FA icons.
5
+ An optional prop, `sortIcon` allows you to customize your icon sets by passing it an array of any comma-separated pair of icon values. The first icon value will replace the kit's default icon when sort direction is desc, and the second value will replace the default icon when sort direction is asc. `sortIcon` also allows you to pass it a single icon as a string, in which case the icon will not toggle with the sort state. Default for this prop is `["arrow-up-short-wide", "arrow-down-short-wide"]`. All strings must be valid FA icons.
@@ -78,7 +78,6 @@ examples:
78
78
  - advanced_table_column_styling: Column Styling
79
79
  - advanced_table_column_styling_column_headers: Column Styling with Multiple Headers
80
80
  - advanced_table_column_styling_background: Column Styling Background Color
81
- - advanced_table_column_styling_background_custom: Column Styling Background Color (Custom)
82
81
  - advanced_table_column_styling_background_multi: Column Styling Background Color with Multiple Headers
83
82
  - advanced_table_padding_control: Padding Control using Column Styling
84
83
  - advanced_table_column_border_color: Column Group Border Color
@@ -47,5 +47,4 @@ export { default as AdvancedTableSortPerColumnForMultiColumn } from './_advanced
47
47
  export { default as AdvancedTablePaddingControl } from './_advanced_table_padding_control.jsx'
48
48
  export { default as AdvancedTablePaddingControlPerRow } from './_advanced_table_padding_control_per_row.jsx'
49
49
  export { default as AdvancedTableColumnStylingBackground } from './_advanced_table_column_styling_background.jsx'
50
- export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
51
- export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
50
+ export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
@@ -8,7 +8,6 @@ examples:
8
8
  - checkbox_indeterminate: Indeterminate Checkbox
9
9
  - checkbox_disabled: Disabled Checkbox
10
10
  - checkbox_form: Form and Hidden Input
11
- # - checkbox_required_indicator: Required Indicator
12
11
 
13
12
  react:
14
13
  - checkbox_default: Default
@@ -18,7 +17,6 @@ examples:
18
17
  - checkbox_error: Default w/ Error
19
18
  - checkbox_indeterminate: Indeterminate Checkbox
20
19
  - checkbox_disabled: Disabled Checkbox
21
- # - checkbox_required_indicator: Required Indicator
22
20
 
23
21
  swift:
24
22
  - checkbox_default_swift: Default
@@ -5,4 +5,3 @@ export { default as CheckboxError } from './_checkbox_error.jsx'
5
5
  export { default as CheckboxChecked } from './_checkbox_checked.jsx'
6
6
  export { default as CheckboxIndeterminate } from './_checkbox_indeterminate.jsx'
7
7
  export { default as CheckboxDisabled } from './_checkbox_disabled.jsx'
8
- export { default as CheckboxRequiredIndicator } from './_checkbox_required_indicator.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'
@@ -76,7 +76,7 @@
76
76
  const option = e.detail;
77
77
  const dropdown = e.target;
78
78
 
79
- const display = dropdown.querySelector("[data-dropdown-trigger-custom-display]");
79
+ const display = dropdown.querySelector("#dropdown_trigger_custom_display");
80
80
  if (!display) return;
81
81
 
82
82
  const nameEl = display.querySelector("#dropdown-avatar-name");
@@ -1,13 +1,10 @@
1
- <%
1
+ <%
2
2
  options = [
3
3
  { label: 'United States', value: 'unitedStates', id: 'us' },
4
4
  { label: 'Canada', value: 'canada', id: 'ca' },
5
5
  { label: 'Pakistan', value: 'pakistan', id: 'pk' },
6
6
  ]
7
+
7
8
  %>
8
9
 
9
- <%= pb_rails("dropdown", props: {
10
- id: "select_a_country",
11
- label: "Select a Country",
12
- options: options
13
- }) %>
10
+ <%= pb_rails("dropdown", props: {options: options, label: "Select a Country"}) %>
@@ -25,7 +25,6 @@ const DropdownDefault = (props) => {
25
25
  return (
26
26
  <div>
27
27
  <Dropdown
28
- id="select_a_country"
29
28
  label="Select a Country"
30
29
  options={options}
31
30
  {...props}
@@ -1,3 +1 @@
1
- The top-level Dropdown component optionally accepts any string through a `label` prop to produce a label above your trigger element.
2
-
3
- Add an `id` to wire the label to the trigger so that clicking the label will move focus directly to the input, and open the drop-down.
1
+ The top-level Dropdown component optionally accepts any string through a `label` prop to produce a label above your trigger element.
@@ -1,158 +1,15 @@
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
1
  <%= pb_form_with(scope: :example, url: "", method: :get, validate: true) do |form| %>
127
- <%= form.typeahead :example_typeahead_field, props: { label: true, required: true, required_indicator: true } %>
128
2
  <%= form.text_field :example_text_field, props: { label: true, required: true, required_indicator: true } %>
129
3
  <%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label", required: true, required_indicator: true } %>
130
- <%= form.phone_number_field :example_phone_number_field, props: { label: true, required: true, required_indicator: true } %>
4
+ <%= form.text_area :example_text_area, props: { label: true, required: true, required_indicator: true } %>
5
+ <%= form.text_area :example_text_area_2, props: { label: "Textarea Custom Label", required: true, required_indicator: true } %>
131
6
  <%= form.email_field :example_email_field, props: { label: true, required: true, required_indicator: true } %>
132
7
  <%= form.number_field :example_number_field, props: { label: true, required: true, required_indicator: true } %>
133
8
  <%= form.search_field :example_search_field, props: { label: true, required: true, required_indicator: true } %>
134
9
  <%= form.password_field :example_password_field, props: { label: true, required: true, required_indicator: true } %>
135
10
  <%= form.url_field :example_url_field, props: { label: true, required: true, required_indicator: true } %>
136
- <%= form.text_area :example_text_area, props: { label: true, required: true, required_indicator: true } %>
137
- <%= form.text_area :example_text_area_2, props: { label: "Textarea Custom Label", required: true, required_indicator: true } %>
138
- <%# form.check_box :example_checkbox, props: { label: true, text: "Checkbox Label", required: true, required_indicator: true } %>
11
+ <%= form.phone_number_field :example_phone_number_field, props: { label: true, required: true, required_indicator: true } %>
139
12
  <%= form.time_picker :example_time_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
140
- <%= form.date_picker :example_date_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
141
- <%= form.date_picker :example_date_picker_required_indicator_custom, props: { label: "Custom Date Picker Label", required: true, required_indicator: true } %>
142
- <%= form.multi_level_select :example_multi_level_select_required_indicator, props: {
143
- label: true,
144
- margin_y: 'sm',
145
- required: true,
146
- required_indicator: true,
147
- tree_data: tree_data
148
- } %>
149
- <%= form.multi_level_select :example_multi_level_select_required_indicator_custom, props: {
150
- label: "Custom Multi Level Select Label",
151
- margin_y: 'sm',
152
- required: true,
153
- required_indicator: true,
154
- tree_data: tree_data
155
- } %>
156
13
 
157
14
  <%= form.actions do |action| %>
158
15
  <%= action.submit %>
@@ -65,7 +65,7 @@
65
65
  }] %>
66
66
 
67
67
  <%= pb_rails("multi_level_select", props: {
68
- id: "select_a_department",
69
- label: "Select a Department",
70
- tree_data: treeData
68
+ id: "multi-level-select-label-rails",
69
+ label: "Select a department",
70
+ tree_data: treeData
71
71
  }) %>
@@ -73,11 +73,14 @@ const MultiLevelSelectDefault = (props) => {
73
73
  return (
74
74
  <div>
75
75
  <MultiLevelSelect
76
- id="select_a_department"
76
+ id='multiselect-label'
77
77
  label="Select a Department"
78
78
  onSelect={(selectedNodes) =>
79
- console.log("Selected Items", selectedNodes)
80
- }
79
+ console.log(
80
+ "Selected Items",
81
+ selectedNodes
82
+ )
83
+ }
81
84
  treeData={treeData}
82
85
  {...props}
83
86
  />
@@ -85,4 +88,4 @@ const MultiLevelSelectDefault = (props) => {
85
88
  )
86
89
  };
87
90
 
88
- export default MultiLevelSelectDefault;
91
+ export default MultiLevelSelectDefault;
@@ -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 "./_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"
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 "./_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"
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'
@@ -14,7 +14,6 @@ examples:
14
14
  - collapsible_nav: Collapsible Nav
15
15
  - collapsible_nav_with_all_options: Collapsible Nav With Options
16
16
  - collapsible_nav_no_icon: Collapsible Nav No Icon
17
- - collapsible_nav_disabled_item: Collapsible Nav With Disabled Item
18
17
  - horizontal_nav: Horizontal Nav
19
18
  - subtle_horizontal_nav: Subtle Horizontal Nav
20
19
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -43,7 +42,6 @@ examples:
43
42
  - collapsible_nav_item_spacing: Collapsible Nav With ItemSpacing
44
43
  - collapsible_nav_custom: Collapsible Nav With Custom Toggling
45
44
  - collapsible_nav_no_icon: Collapsible Nav No Icon
46
- - collapsible_nav_disabled_item: Collapsible Nav With Disabled Item
47
45
  - horizontal_nav: Horizontal Nav
48
46
  - subtle_horizontal_nav: Subtle Horizontal Nav
49
47
  - bold_horizontal_nav: Bold Horizontal Nav
@@ -64,3 +62,9 @@ examples:
64
62
  - nav_horizontal_subtle_no_highlight_swift: Horizontal Subtle No Highlight
65
63
  - nav_horizontal_bold_swift: Horizontal Bold
66
64
  - nav_props_swift: ""
65
+
66
+
67
+
68
+
69
+
70
+
@@ -22,5 +22,4 @@ export { default as CollapsibleNavItemSpacing } from "./_collapsible_nav_item_sp
22
22
  export { default as CollapsibleNavNoIcon } from "./_collapsible_nav_no_icon.jsx"
23
23
  export { default as HorizontalNavExtendedunderline } from './_horizontal_nav_extendedunderline.jsx'
24
24
  export { default as HorizontalNavDisabled } from './_horizontal_nav_disabled.jsx'
25
- export { default as VerticalNavDisabled } from './_vertical_nav_disabled.jsx'
26
- export { default as CollapsibleNavDisabledItem } from './_collapsible_nav_disabled_item.jsx'
25
+ export { default as VerticalNavDisabled } from './_vertical_nav_disabled.jsx'
@@ -22,7 +22,6 @@ const RichTextEditorAdvancedRequiredIndicator = (props) => {
22
22
  <div>
23
23
  <RichTextEditor
24
24
  advancedEditor={editor}
25
- id={"required-advanced"}
26
25
  label="Label"
27
26
  requiredIndicator
28
27
  {...props}
@@ -8,7 +8,6 @@ const RichTextEditorRequiredIndicator = (props) => {
8
8
  return (
9
9
  <div>
10
10
  <RichTextEditor
11
- inputOptions = {{ id: "required" }}
12
11
  label="Label"
13
12
  onChange={handleOnChange}
14
13
  requiredIndicator
@@ -32,8 +32,6 @@ examples:
32
32
  - rich_text_editor_advanced_inline: Advanced (Inline)
33
33
  - rich_text_editor_advanced_height: Advanced Height
34
34
  - rich_text_editor_advanced_min_height: Advanced Min Height
35
- - rich_text_editor_label: Label
36
- - rich_text_editor_advanced_label: Advanced (Label)
37
35
  - rich_text_editor_required_indicator: Required Indicator
38
36
  - rich_text_editor_advanced_required_indicator: Advanced Required Indicator
39
37
  - rich_text_editor_preview: Preview
@@ -21,5 +21,3 @@ export { default as RichTextEditorAdvancedHeight } from './_rich_text_editor_adv
21
21
  export { default as RichTextEditorAdvancedMinHeight } from './_rich_text_editor_advanced_min_height.jsx'
22
22
  export { default as RichTextEditorRequiredIndicator } from './_rich_text_editor_required_indicator.jsx'
23
23
  export { default as RichTextEditorAdvancedRequiredIndicator } from './_rich_text_editor_advanced_required_indicator.jsx'
24
- export { default as RichTextEditorLabel } from './_rich_text_editor_label.jsx'
25
- export { default as RichTextEditorAdvancedLabel } from './_rich_text_editor_advanced_label.jsx'
@@ -19,7 +19,6 @@ examples:
19
19
  - typeahead_dynamic_options_pure_rails: Dynamic Options (Pure Rails)
20
20
  - typeahead_disabled: Disabled
21
21
  - typeahead_preserve_input: Preserve Search Input
22
- - typeahead_required_indicator: Required Indicator
23
22
 
24
23
  react:
25
24
  - typeahead_default: Default
@@ -43,4 +42,3 @@ examples:
43
42
  - typeahead_truncated_text: Truncated Text
44
43
  - typeahead_disabled: Disabled
45
44
  - typeahead_preserve_input: Preserve Search Input
46
- - typeahead_required_indicator: Required Indicator
@@ -1,22 +1,21 @@
1
- export {default as TypeaheadDefault} from "./_typeahead_default.jsx"
2
- export {default as TypeaheadWithHighlight} from "./_typeahead_with_highlight.jsx"
3
- export {default as TypeaheadWithPills} from "./_typeahead_with_pills.jsx"
4
- export {default as TypeaheadWithPillsAsync} from "./_typeahead_with_pills_async.jsx"
5
- export {default as TypeaheadWithPillsAsyncUsers} from "./_typeahead_with_pills_async_users.jsx"
6
- export {default as TypeaheadWithPillsAsyncCustomOptions} from "./_typeahead_with_pills_async_custom_options.jsx"
7
- export {default as TypeaheadInline} from "./_typeahead_inline.jsx"
8
- export {default as TypeaheadMultiKit} from "./_typeahead_multi_kit.jsx"
9
- export {default as TypeaheadCreateable} from "./_typeahead_createable.jsx"
10
- export {default as TypeaheadAsyncCreateable} from "./_typeahead_async_createable.jsx"
11
- export {default as TypeaheadErrorState} from "./_typeahead_error_state.jsx"
12
- export {default as TypeaheadCustomMenuList} from "./_typeahead_custom_menu_list.jsx"
13
- export {default as TypeaheadMarginBottom} from "./_typeahead_margin_bottom.jsx"
14
- export {default as TypeaheadWithPillsColor} from "./_typeahead_with_pills_color.jsx"
15
- export {default as TypeaheadTruncatedText} from "./_typeahead_truncated_text.jsx"
16
- export {default as TypeaheadReactHook} from "./_typeahead_react_hook.jsx"
17
- export {default as TypeaheadDisabled} from "./_typeahead_disabled.jsx"
18
- export {default as TypeaheadPreserveInput} from "./_typeahead_preserve_input.jsx"
19
- export {default as TypeaheadDefaultValue} from "./_typeahead_default_value.jsx"
20
- export {default as TypeaheadCustomOptions} from "./_typeahead_custom_options.jsx"
21
- export {default as TypeaheadInputDisplay} from "./_typeahead_input_display.jsx"
22
- export {default as TypeaheadRequiredIndicator} from "./_typeahead_required_indicator.jsx"
1
+ export { default as TypeaheadDefault } from './_typeahead_default.jsx'
2
+ export { default as TypeaheadWithHighlight } from './_typeahead_with_highlight.jsx'
3
+ export { default as TypeaheadWithPills } from './_typeahead_with_pills.jsx'
4
+ export { default as TypeaheadWithPillsAsync } from './_typeahead_with_pills_async.jsx'
5
+ export { default as TypeaheadWithPillsAsyncUsers } from './_typeahead_with_pills_async_users.jsx'
6
+ export { default as TypeaheadWithPillsAsyncCustomOptions } from './_typeahead_with_pills_async_custom_options.jsx'
7
+ export { default as TypeaheadInline } from './_typeahead_inline.jsx'
8
+ export { default as TypeaheadMultiKit } from './_typeahead_multi_kit.jsx'
9
+ export { default as TypeaheadCreateable } from './_typeahead_createable.jsx'
10
+ export { default as TypeaheadAsyncCreateable } from './_typeahead_async_createable.jsx'
11
+ export { default as TypeaheadErrorState } from './_typeahead_error_state.jsx'
12
+ export { default as TypeaheadCustomMenuList } from './_typeahead_custom_menu_list.jsx'
13
+ export { default as TypeaheadMarginBottom } from './_typeahead_margin_bottom.jsx'
14
+ export { default as TypeaheadWithPillsColor } from './_typeahead_with_pills_color.jsx'
15
+ export { default as TypeaheadTruncatedText } from './_typeahead_truncated_text.jsx'
16
+ export { default as TypeaheadReactHook } from './_typeahead_react_hook.jsx'
17
+ export { default as TypeaheadDisabled } from './_typeahead_disabled.jsx'
18
+ export { default as TypeaheadPreserveInput } from './_typeahead_preserve_input.jsx'
19
+ export { default as TypeaheadDefaultValue } from './_typeahead_default_value.jsx'
20
+ export { default as TypeaheadCustomOptions } from './_typeahead_custom_options.jsx'
21
+ export { default as TypeaheadInputDisplay } from './_typeahead_input_display.jsx'
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.play2725datepickermlsrequiredindicator14221
4
+ version: 16.1.0.pre.alpha.play2771passphraseaccessibility14033
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-05 00:00:00.000000000 Z
12
+ date: 2026-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: playbook_ui
@@ -64,8 +64,6 @@ files:
64
64
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
65
65
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx
66
66
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md
67
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.jsx
68
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.md
69
67
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx
70
68
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md
71
69
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
@@ -421,9 +419,6 @@ files:
421
419
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_props_swift.md
422
420
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx
423
421
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md
424
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb
425
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx
426
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md
427
422
  - app/pb_kits/playbook/pb_checkbox/docs/_description.md
428
423
  - app/pb_kits/playbook/pb_checkbox/docs/example.yml
429
424
  - app/pb_kits/playbook/pb_checkbox/docs/index.js
@@ -648,9 +643,6 @@ files:
648
643
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern.md
649
644
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.html.erb
650
645
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range_pattern_rails.md
651
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.html.erb
652
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.jsx
653
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_required_indicator.md
654
646
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.html.erb
655
647
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.jsx
656
648
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_time.md
@@ -1437,12 +1429,8 @@ files:
1437
1429
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_input_display.md
1438
1430
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.html.erb
1439
1431
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.jsx
1440
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md
1441
1432
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx
1442
1433
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md
1443
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.html.erb
1444
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.jsx
1445
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_required_indicator.md
1446
1434
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
1447
1435
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md
1448
1436
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_return_all_selected.html.erb
@@ -1516,8 +1504,6 @@ files:
1516
1504
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md
1517
1505
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx
1518
1506
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.md
1519
- - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb
1520
- - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx
1521
1507
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx
1522
1508
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md
1523
1509
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.html.erb
@@ -1944,8 +1930,6 @@ files:
1944
1930
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
1945
1931
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
1946
1932
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
1947
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx
1948
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md
1949
1933
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
1950
1934
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md
1951
1935
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
@@ -1964,8 +1948,6 @@ files:
1964
1948
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx
1965
1949
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb
1966
1950
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx
1967
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx
1968
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md
1969
1951
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx
1970
1952
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md
1971
1953
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb
@@ -2629,9 +2611,6 @@ files:
2629
2611
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_react.md
2630
2612
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx
2631
2613
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md
2632
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb
2633
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx
2634
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md
2635
2614
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb
2636
2615
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx
2637
2616
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md
@@ -1,71 +0,0 @@
1
- import React from "react"
2
- import AdvancedTable from '../_advanced_table'
3
- import colors from '../../tokens/exports/_colors.module.scss'
4
- import MOCK_DATA from "./advanced_table_mock_data.json"
5
- import Flex from '../../pb_flex/_flex'
6
- import Title from '../../pb_title/_title'
7
- import Body from '../../pb_body/_body'
8
-
9
-
10
- const AdvancedTableColumnStylingBackgroundCustom = (props) => {
11
- const columnDefinitions = [
12
- {
13
- accessor: "year",
14
- label: "Year",
15
- cellAccessors: ["quarter", "month", "day"],
16
- customRenderer: (row, value) => (
17
- <Flex flexDirection="column">
18
- <Title size={4}
19
- text={value}
20
- />
21
- <Body text="lorem ipsum" />
22
- <Body text="lorem ipsum" />
23
- </Flex>
24
- ),
25
- },
26
- {
27
- accessor: "newEnrollments",
28
- label: "New Enrollments",
29
- columnStyling:{
30
- cellBackgroundColor: (row) => row.original.newEnrollments > 15 ? colors.success_subtle : colors.error_subtle,
31
- fontColor: (row) => row.original.newEnrollments > 15 ? colors.success : colors.error,
32
- },
33
- },
34
- {
35
- accessor: "scheduledMeetings",
36
- label: "Scheduled Meetings",
37
- columnStyling:{
38
- cellBackgroundColor: (row) => row.original.scheduledMeetings >= 15 ? colors.info_subtle : colors.warning_subtle
39
- },
40
- },
41
- {
42
- accessor: "attendanceRate",
43
- label: "Attendance Rate",
44
- columnStyling:{cellBackgroundColor: colors.info, headerBackgroundColor: colors.info, fontColor: colors.white, headerFontColor: colors.white},
45
- },
46
- {
47
- accessor: "completedClasses",
48
- label: "Completed Classes",
49
- },
50
- {
51
- accessor: "classCompletionRate",
52
- label: "Class Completion Rate",
53
- },
54
- {
55
- accessor: "graduatedStudents",
56
- label: "Graduated Students",
57
- },
58
- ]
59
-
60
- return (
61
- <div>
62
- <AdvancedTable
63
- columnDefinitions={columnDefinitions}
64
- tableData={MOCK_DATA}
65
- {...props}
66
- />
67
- </div>
68
- )
69
- }
70
-
71
- export default AdvancedTableColumnStylingBackgroundCustom
@@ -1,4 +0,0 @@
1
- `cellBackgroundColor` and `fontColor` can also accept functions for conditional styling based on row data. The function receives the row object and returns a color value.
2
-
3
- See the code snippet below for more details.
4
-
@@ -1,6 +0,0 @@
1
- <%= pb_rails("checkbox" , props: {
2
- required_indicator: true,
3
- text: "Checkbox Label",
4
- value: "checkbox-value",
5
- name: "checkbox-name"
6
- }) %>
@@ -1,17 +0,0 @@
1
- import React from 'react'
2
- import Checkbox from '../_checkbox'
3
-
4
- const CheckboxRequiredIndicator = () => {
5
- return (
6
- <div>
7
- <Checkbox
8
- name="checkbox-name"
9
- requiredIndicator
10
- text="Checkbox label"
11
- value="check-box value"
12
- />
13
- </div>
14
- )
15
- }
16
-
17
- export default CheckboxRequiredIndicator
@@ -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,5 +0,0 @@
1
- <%= pb_rails("date_picker", props: {
2
- picker_id: "date_picker_required_indicator",
3
- label: "Required Date Picker",
4
- required_indicator: true,
5
- }) %>
@@ -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,3 +0,0 @@
1
- The MultiLevelSelect component optionally accepts a `label` prop to produce a label above the input.
2
-
3
- Add an `id` to wire the label to the input so that clicking the label will move focus directly to the input, and open the drop-down.
@@ -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
- }) %>
@@ -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
@@ -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("nav", props: { variant: "bold" }) do %>
2
- <%= pb_rails("nav/item", props: { text: "Overview", link: "#", collapsible: true, icon_left:"city", disabled: true }) do %>
3
- <%= pb_rails("nav", props: { variant: "bold" }) do %>
4
- <%= pb_rails("nav/item", props: { text: "City", link: "#" }) %>
5
- <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
6
- <%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
7
- <% end %>
8
- <% end %>
9
- <%= pb_rails("nav/item", props: { text: "Albums", link: "#", active: true, collapsible: true, icon_left: "theater-masks" }) do %>
10
- <%= pb_rails("nav", props: { variant: "bold" }) do %>
11
- <%= pb_rails("nav/item", props: { text: "Entertainment", link: "#" }) %>
12
- <%= pb_rails("nav/item", props: { text: "Food", link: "#" }) %>
13
- <%= pb_rails("nav/item", props: { text: "Style", link: "#" }) %>
14
- <% end %>
15
- <% end %>
16
- <%= pb_rails("nav/item", props: { text: "Similar Artists", link: "#", collapsible: true, icon_left: "city" }) do %>
17
- <%= pb_rails("nav", props: { variant: "bold" }) do %>
18
- <%= pb_rails("nav/item", props: { text: "City", link: "#", disabled: true }) %>
19
- <%= pb_rails("nav/item", props: { text: "People", link: "#" }) %>
20
- <%= pb_rails("nav/item", props: { text: "Business", link: "#" }) %>
21
- <% end %>
22
- <% end %>
23
- <% end %>
24
-
@@ -1,87 +0,0 @@
1
- import React from "react";
2
- import Nav from '../../pb_nav/_nav'
3
- import NavItem from '../../pb_nav/_item'
4
-
5
- const CollapsibleNavDisabledItem = (props) => {
6
- return (
7
- <Nav
8
- variant="bold"
9
- {...props}
10
- >
11
- <NavItem
12
- collapsed={false}
13
- collapsible
14
- disabled
15
- iconLeft="city"
16
- link="#"
17
- text="Overview"
18
- {...props}
19
- >
20
- <NavItem
21
- link="#"
22
- text="City"
23
- {...props}
24
- />
25
- <NavItem
26
- link="#"
27
- text="People"
28
- {...props}
29
- />
30
- <NavItem
31
- link="#"
32
- text="Business"
33
- {...props}
34
- />
35
- </NavItem>
36
- <NavItem
37
- collapsible
38
- iconLeft="theater-masks"
39
- link="#"
40
- text="Albums"
41
- {...props}
42
- >
43
- <NavItem
44
- disabled
45
- link="#"
46
- text="Entertainment"
47
- {...props}
48
- />
49
- <NavItem
50
- link="#"
51
- text="Food"
52
- {...props}
53
- />
54
- <NavItem
55
- link="#"
56
- text="Style"
57
- {...props}
58
- />
59
- </NavItem>
60
- <NavItem
61
- collapsible
62
- iconLeft="city"
63
- link="#"
64
- text="Similar Artists"
65
- {...props}
66
- >
67
- <NavItem
68
- link="#"
69
- text="City"
70
- {...props}
71
- />
72
- <NavItem
73
- link="#"
74
- text="People"
75
- {...props}
76
- />
77
- <NavItem
78
- link="#"
79
- text="Business"
80
- {...props}
81
- />
82
- </NavItem>
83
- </Nav>
84
- );
85
- };
86
-
87
- export default CollapsibleNavDisabledItem
@@ -1,44 +0,0 @@
1
- import React from 'react'
2
- import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
3
- import { useEditor, EditorContent } from "@tiptap/react"
4
- import StarterKit from "@tiptap/starter-kit"
5
- import Link from '@tiptap/extension-link'
6
-
7
-
8
- const RichTextEditorAdvancedLabel = (props) => {
9
-
10
- const editor = useEditor({
11
- extensions: [StarterKit, Link],
12
- content: "Add your text here. You can format your text, add links, quotes, and bullets.",
13
- })
14
-
15
- const editorNoLabel = useEditor({
16
- extensions: [StarterKit, Link],
17
- content: "Add your text here. You can format your text, add links, quotes, and bullets.",
18
- })
19
-
20
- if (!editor || !editorNoLabel) return null
21
-
22
- return (
23
- <div>
24
- <RichTextEditor
25
- advancedEditor={editor}
26
- id={"advanced-example"}
27
- label="Advanced Example Label"
28
- {...props}
29
- >
30
- <EditorContent editor={editor}/>
31
- </RichTextEditor>
32
- <br/>
33
- <RichTextEditor
34
- advancedEditor={editorNoLabel}
35
- label="Advanced Example Label No ID"
36
- {...props}
37
- >
38
- <EditorContent editor={editorNoLabel}/>
39
- </RichTextEditor>
40
- </div>
41
- )
42
- }
43
-
44
- export default RichTextEditorAdvancedLabel
@@ -1 +0,0 @@
1
- The optional `label` prop adds a visible label to the advanced editor. Passing in the `id` prop associates the `label` with the editor for accessibility, enabling screen reader support and label-based focus behavior.
@@ -1,28 +0,0 @@
1
- import React, { useState } from 'react'
2
- import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
3
-
4
- const RichTextEditorLabel = (props) => {
5
- const [value, setValue] = useState(''),
6
- handleOnChange = (html) => setValue(html)
7
-
8
- return (
9
- <div>
10
- <RichTextEditor
11
- id="example"
12
- label="Example Label"
13
- onChange={handleOnChange}
14
- value={value}
15
- {...props}
16
- />
17
- <br/>
18
- <RichTextEditor
19
- label="Example Label No ID"
20
- onChange={handleOnChange}
21
- value={value}
22
- {...props}
23
- />
24
- </div>
25
- )
26
- }
27
-
28
- export default RichTextEditorLabel
@@ -1 +0,0 @@
1
- The optional `label` prop adds a visible label to the editor. Passing in the `id` prop associates the `label` with the editor for accessibility, enabling screen reader support and label-based focus behavior.
@@ -1,16 +0,0 @@
1
- <%
2
- options = [
3
- { label: 'Orange', value: '#FFA500' },
4
- { label: 'Red', value: '#FF0000' },
5
- { label: 'Green', value: '#00FF00' },
6
- { label: 'Blue', value: '#0000FF' },
7
- ]
8
- %>
9
-
10
- <%= pb_rails("typeahead", props: {
11
- id: "typeahead-required-indicator",
12
- is_multi: false,
13
- label: "Colors",
14
- options: options,
15
- required_indicator: true,
16
- }) %>
@@ -1,23 +0,0 @@
1
- import React from "react"
2
- import Typeahead from "../../pb_typeahead/_typeahead"
3
-
4
- const options = [
5
- {label: "Orange", value: "#FFA500"},
6
- {label: "Red", value: "#FF0000"},
7
- {label: "Green", value: "#00FF00"},
8
- {label: "Blue", value: "#0000FF"},
9
- ]
10
-
11
- const TypeaheadRequiredIndicator = (props) => {
12
- return (
13
- <Typeahead
14
- id="typeahead_required_indicator"
15
- label="Colors"
16
- options={options}
17
- requiredIndicator
18
- {...props}
19
- />
20
- )
21
- }
22
-
23
- export default TypeaheadRequiredIndicator
@@ -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.