playbook_ui_docs 16.1.0.pre.alpha.PLAY2684iconbuttonvariant14251 → 16.1.0.pre.alpha.PLAY2698timepickercleanup13920

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_button/docs/example.yml +0 -2
  6. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  7. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -2
  8. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  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 -5
  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_nav/docs/example.yml +6 -2
  17. data/app/pb_kits/playbook/pb_nav/docs/index.js +1 -2
  18. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx +0 -1
  19. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx +0 -1
  20. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
  21. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +0 -2
  22. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb +3 -3
  23. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +0 -3
  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_button/docs/_button_icon_variant.html.erb +0 -21
  30. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant.jsx +0 -180
  31. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_rails.md +0 -1
  32. data/app/pb_kits/playbook/pb_button/docs/_button_icon_variant_react.md +0 -1
  33. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb +0 -6
  34. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx +0 -17
  35. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md +0 -3
  36. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.md +0 -1
  37. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md +0 -3
  38. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb +0 -24
  39. data/app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx +0 -87
  40. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx +0 -44
  41. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md +0 -1
  42. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx +0 -28
  43. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md +0 -1
  44. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.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: e18f62273ec925c94ff02108912de2c0ecfa5e8b4b76e44b6896cad278150d34
4
- data.tar.gz: f5888f9e954ee60ac3046594b4c9e52999522a89a7c6e0b78dbb09b9b748c10a
3
+ metadata.gz: a13f98cd64f9eb9cf99992c41fa014c47e98140d8512f4bd571f0084b49cd37c
4
+ data.tar.gz: 017a19372a90f59e849659e9135d55cc38c0d89e32f5b13c2e5627451d5e7489
5
5
  SHA512:
6
- metadata.gz: 0a3442931f98c002dc51540b8e1f39b3741670417d806f399c582e9a34011b6b43fdd9565b560503b3f52289f41586593eac4d686bcaa94c3f81583a30cabd0a
7
- data.tar.gz: d27b7b8a40f4a07701970e69c517f99dbd296bb0cfc996e6a846d9e92a4842c68f3e5918971133afc385291adb1929bdb777bcf3a2b3171739c0f3be7eb316aa
6
+ metadata.gz: 64d1b96494bf24a1c352df452103f97dcee3168e1ad04b8c7c25b05ef8eb2b460fa0c73f3d2027549e06cca4efd2fc9a234b67b2afadd1e781dde65af8754e2e
7
+ data.tar.gz: b5a401599af51859a5b43d99a5b47ae79c76eb081f9e57c6e9d06c2c976efb745a3e0d9565451667f21aaf4448cd04d74fcca7bed59b8611c60d2bbf0043fe4d
@@ -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'
@@ -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'
@@ -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'
@@ -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,16 +1,14 @@
1
1
  <%= pb_form_with(scope: :example, url: "", method: :get, validate: true) do |form| %>
2
- <%= form.typeahead :example_typeahead_field, props: { label: true, required: true, required_indicator: true } %>
3
2
  <%= form.text_field :example_text_field, props: { label: true, required: true, required_indicator: true } %>
4
3
  <%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label", required: true, required_indicator: true } %>
5
- <%= 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 } %>
6
6
  <%= form.email_field :example_email_field, props: { label: true, required: true, required_indicator: true } %>
7
7
  <%= form.number_field :example_number_field, props: { label: true, required: true, required_indicator: true } %>
8
8
  <%= form.search_field :example_search_field, props: { label: true, required: true, required_indicator: true } %>
9
9
  <%= form.password_field :example_password_field, props: { label: true, required: true, required_indicator: true } %>
10
10
  <%= form.url_field :example_url_field, props: { label: true, required: true, required_indicator: true } %>
11
- <%= form.text_area :example_text_area, props: { label: true, required: true, required_indicator: true } %>
12
- <%= form.text_area :example_text_area_2, props: { label: "Textarea Custom Label", required: true, required_indicator: true } %>
13
- <%# <%= 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 } %>
14
12
  <%= form.time_picker :example_time_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
15
13
 
16
14
  <%= form.actions do |action| %>
@@ -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;
@@ -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'
@@ -1,9 +1,9 @@
1
- <%= pb_rails("textarea", props: { label: "Label", rows: 4, id: "default-example-1" }) %>
1
+ <%= pb_rails("textarea", props: { label: "Label", rows: 4}) %>
2
2
 
3
3
  <br/>
4
4
 
5
- <%= pb_rails("textarea", props: { label: "Label", placeholder: "Placeholder text", id: "default-example-2" }) %>
5
+ <%= pb_rails("textarea", props: { label: "Label", placeholder: "Placeholder text" }) %>
6
6
 
7
7
  <br/>
8
8
 
9
- <%= pb_rails("textarea", props: { label: "Label", name: "comment", value: "Default value text", id: "default-example-3" }) %>
9
+ <%= pb_rails("textarea", props: { label: "Label", name: "comment", value: "Default value text" }) %>
@@ -13,7 +13,6 @@ const TextareaDefault = (props) => {
13
13
  label="Label"
14
14
  rows={4}
15
15
  {...props}
16
- id="default-example-1"
17
16
  />
18
17
 
19
18
  <br />
@@ -22,7 +21,6 @@ const TextareaDefault = (props) => {
22
21
  label="Label"
23
22
  placeholder="Placeholder text"
24
23
  {...props}
25
- id="default-example-2"
26
24
  />
27
25
 
28
26
  <br />
@@ -34,7 +32,6 @@ const TextareaDefault = (props) => {
34
32
  placeholder="Placeholder text"
35
33
  value={value}
36
34
  {...props}
37
- id="default-example-3"
38
35
  />
39
36
 
40
37
  </div>
@@ -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.PLAY2684iconbuttonvariant14251
4
+ version: 16.1.0.pre.alpha.PLAY2698timepickercleanup13920
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-09 00:00:00.000000000 Z
12
+ date: 2026-01-28 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
@@ -311,10 +309,6 @@ files:
311
309
  - app/pb_kits/playbook/pb_button/docs/_button_icon_options.jsx
312
310
  - app/pb_kits/playbook/pb_button/docs/_button_icon_options.md
313
311
  - 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
312
  - app/pb_kits/playbook/pb_button/docs/_button_link.html.erb
319
313
  - app/pb_kits/playbook/pb_button/docs/_button_link.jsx
320
314
  - app/pb_kits/playbook/pb_button/docs/_button_link.md
@@ -425,9 +419,6 @@ files:
425
419
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_props_swift.md
426
420
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx
427
421
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md
428
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb
429
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx
430
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md
431
422
  - app/pb_kits/playbook/pb_checkbox/docs/_description.md
432
423
  - app/pb_kits/playbook/pb_checkbox/docs/example.yml
433
424
  - app/pb_kits/playbook/pb_checkbox/docs/index.js
@@ -585,7 +576,6 @@ files:
585
576
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_anti_patterns.html.erb
586
577
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb
587
578
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx
588
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.md
589
579
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb
590
580
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx
591
581
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md
@@ -1438,7 +1428,6 @@ files:
1438
1428
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_input_display.md
1439
1429
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.html.erb
1440
1430
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.jsx
1441
- - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_label.md
1442
1431
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.jsx
1443
1432
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_react_hook.md
1444
1433
  - app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb
@@ -1514,8 +1503,6 @@ files:
1514
1503
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav.md
1515
1504
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.jsx
1516
1505
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_custom.md
1517
- - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.html.erb
1518
- - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_disabled_item.jsx
1519
1506
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.jsx
1520
1507
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_item_spacing.md
1521
1508
  - app/pb_kits/playbook/pb_nav/docs/_collapsible_nav_no_icon.html.erb
@@ -1942,8 +1929,6 @@ files:
1942
1929
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
1943
1930
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
1944
1931
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
1945
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx
1946
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md
1947
1932
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
1948
1933
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md
1949
1934
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
@@ -1962,8 +1947,6 @@ files:
1962
1947
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx
1963
1948
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb
1964
1949
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx
1965
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx
1966
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md
1967
1950
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx
1968
1951
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md
1969
1952
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb
@@ -2360,7 +2343,6 @@ files:
2360
2343
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx
2361
2344
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb
2362
2345
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
2363
- - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md
2364
2346
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md
2365
2347
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.html.erb
2366
2348
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.jsx
@@ -2627,9 +2609,6 @@ files:
2627
2609
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_react.md
2628
2610
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx
2629
2611
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md
2630
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb
2631
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx
2632
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md
2633
2612
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb
2634
2613
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx
2635
2614
  - 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,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,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 +0,0 @@
1
- `pickerId`/`picker_id` is a **required prop** to instantiate the Date Picker. The presence of `pickerId`/`picker_id` in your Date Picker also associates the label with the input, providing the ability to focus the Date Picker by clicking the label.
@@ -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,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 +0,0 @@
1
- Add an `id` to your Textarea so that clicking the label will move focus directly to the input.
@@ -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.