playbook_ui 16.1.0.pre.alpha.play274314102 → 16.1.0.pre.alpha.play276813969

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 (92) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +2 -12
  3. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -33
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  6. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +1 -1
  7. data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +0 -17
  8. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +1 -10
  9. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +0 -2
  10. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -2
  11. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
  12. data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +5 -14
  13. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +3 -6
  14. data/app/pb_kits/playbook/pb_form/pb_form_validation.js +2 -9
  15. data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -20
  16. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +34 -71
  17. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_required_indicator.jsx +0 -1
  18. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.html.erb +5 -0
  19. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx +0 -4
  20. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -0
  21. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx +0 -4
  22. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb +3 -0
  23. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx +0 -5
  24. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb +6 -0
  25. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx +0 -4
  26. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +35 -0
  27. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx +0 -4
  28. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.html.erb +10 -0
  29. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx +0 -5
  30. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb +1 -0
  31. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx +0 -4
  32. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb +1 -0
  33. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx +0 -4
  34. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb +115 -0
  35. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx +0 -4
  36. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb +4 -0
  37. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx +14 -0
  38. data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +20 -23
  39. data/app/pb_kits/playbook/pb_rich_text_editor/docs/index.js +1 -2
  40. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb +5 -0
  41. data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +63 -0
  42. data/app/pb_kits/playbook/pb_table/index.ts +27 -29
  43. data/app/pb_kits/playbook/pb_text_input/text_input.html.erb +10 -10
  44. data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +0 -10
  45. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb +3 -3
  46. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +0 -3
  47. data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +9 -25
  48. data/app/pb_kits/playbook/pb_textarea/textarea.rb +1 -7
  49. data/app/pb_kits/playbook/pb_time_picker/_time_picker.tsx +11 -97
  50. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.jsx +2 -5
  51. data/app/pb_kits/playbook/pb_time_picker/docs/example.yml +0 -2
  52. data/app/pb_kits/playbook/pb_time_picker/docs/index.js +0 -1
  53. data/app/pb_kits/playbook/pb_time_picker/time_picker.rb +0 -3
  54. data/app/pb_kits/playbook/pb_time_picker/time_picker.test.jsx +1 -47
  55. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +323 -410
  56. data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +0 -2
  57. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  58. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +21 -22
  59. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -3
  60. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -3
  61. data/dist/chunks/{_pb_line_graph-DuJNCf7N.js → _pb_line_graph-BgKF_zz1.js} +1 -1
  62. data/dist/chunks/_typeahead-C4YsbA48.js +1 -0
  63. data/dist/chunks/{globalProps-Bc-FVsRt.js → globalProps-BhVYCqRf.js} +1 -1
  64. data/dist/chunks/lib-DD34ZrWL.js +29 -0
  65. data/dist/chunks/vendor.js +3 -3
  66. data/dist/menu.yml +2 -2
  67. data/dist/playbook-rails-react-bindings.js +1 -1
  68. data/dist/playbook-rails.js +1 -1
  69. data/lib/playbook/forms/builder/form_field_builder.rb +1 -1
  70. data/lib/playbook/forms/builder/typeahead_field.rb +1 -15
  71. data/lib/playbook/forms/builder.rb +2 -2
  72. data/lib/playbook/version.rb +1 -1
  73. metadata +19 -23
  74. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.jsx +0 -71
  75. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.md +0 -4
  76. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb +0 -6
  77. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx +0 -17
  78. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md +0 -3
  79. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.md +0 -1
  80. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx +0 -44
  81. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md +0 -1
  82. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx +0 -33
  83. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md +0 -1
  84. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md +0 -1
  85. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.html.erb +0 -6
  86. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.jsx +0 -16
  87. data/app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.md +0 -3
  88. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb +0 -16
  89. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx +0 -23
  90. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md +0 -3
  91. data/dist/chunks/_typeahead-Cx2lp7TD.js +0 -1
  92. data/dist/chunks/lib-BwX82vim.js +0 -29
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.1.0.pre.alpha.play274314102
4
+ version: 16.1.0.pre.alpha.play276813969
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-03 00:00:00.000000000 Z
12
+ date: 2026-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -304,8 +304,6 @@ files:
304
304
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md
305
305
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.jsx
306
306
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background.md
307
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.jsx
308
- - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_custom.md
309
307
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.jsx
310
308
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_background_multi.md
311
309
  - app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx
@@ -741,9 +739,6 @@ files:
741
739
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_props_swift.md
742
740
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx
743
741
  - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md
744
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.html.erb
745
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.jsx
746
- - app/pb_kits/playbook/pb_checkbox/docs/_checkbox_required_indicator.md
747
742
  - app/pb_kits/playbook/pb_checkbox/docs/_description.md
748
743
  - app/pb_kits/playbook/pb_checkbox/docs/example.yml
749
744
  - app/pb_kits/playbook/pb_checkbox/docs/index.js
@@ -960,7 +955,6 @@ files:
960
955
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_anti_patterns.html.erb
961
956
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.html.erb
962
957
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.jsx
963
- - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default.md
964
958
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb
965
959
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx
966
960
  - app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md
@@ -2764,8 +2758,6 @@ files:
2764
2758
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_height.md
2765
2759
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.jsx
2766
2760
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_inline.md
2767
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.jsx
2768
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_label.md
2769
2761
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.jsx
2770
2762
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_min_height.md
2771
2763
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_preview.jsx
@@ -2776,26 +2768,37 @@ files:
2776
2768
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_sticky.md
2777
2769
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx
2778
2770
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.md
2771
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.html.erb
2779
2772
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_attributes.jsx
2773
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb
2780
2774
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.jsx
2775
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.html.erb
2781
2776
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_focus.jsx
2777
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.html.erb
2782
2778
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_inline.jsx
2783
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.jsx
2784
- - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_label.md
2785
2779
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.jsx
2786
2780
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_more_extensions.md
2781
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb
2787
2782
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.jsx
2783
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.html.erb
2788
2784
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.jsx
2789
2785
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_required_indicator.md
2786
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.html.erb
2790
2787
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_simple.jsx
2788
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.html.erb
2791
2789
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_sticky.jsx
2790
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.html.erb
2792
2791
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_templates.jsx
2792
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.html.erb
2793
+ - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_bottom.jsx
2793
2794
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.jsx
2794
2795
  - app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_toolbar_disabled.md
2795
2796
  - app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml
2796
2797
  - app/pb_kits/playbook/pb_rich_text_editor/docs/index.js
2797
2798
  - app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js
2798
2799
  - app/pb_kits/playbook/pb_rich_text_editor/inlineFocus.ts
2800
+ - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb
2801
+ - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb
2799
2802
  - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.test.js
2800
2803
  - app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor_advanced.test.js
2801
2804
  - app/pb_kits/playbook/pb_rich_text_editor/types.d.ts
@@ -3305,7 +3308,6 @@ files:
3305
3308
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx
3306
3309
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb
3307
3310
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
3308
- - app/pb_kits/playbook/pb_textarea/docs/_textarea_default.md
3309
3311
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_default_swift.md
3310
3312
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.html.erb
3311
3313
  - app/pb_kits/playbook/pb_textarea/docs/_textarea_emoji_mask.jsx
@@ -3376,9 +3378,6 @@ files:
3376
3378
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_min_max_time.md
3377
3379
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.jsx
3378
3380
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_on_handler.md
3379
- - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.html.erb
3380
- - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.jsx
3381
- - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_required_indicator.md
3382
3381
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.html.erb
3383
3382
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.jsx
3384
3383
  - app/pb_kits/playbook/pb_time_picker/docs/_time_picker_timezone.md
@@ -3660,9 +3659,6 @@ files:
3660
3659
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_preserve_input_react.md
3661
3660
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx
3662
3661
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.md
3663
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.html.erb
3664
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.jsx
3665
- - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_required_indicator.md
3666
3662
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.html.erb
3667
3663
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.jsx
3668
3664
  - app/pb_kits/playbook/pb_typeahead/docs/_typeahead_truncated_text.md
@@ -3881,12 +3877,12 @@ files:
3881
3877
  - app/pb_kits/playbook/utilities/test/globalProps/zIndex.test.js
3882
3878
  - app/pb_kits/playbook/utilities/text.ts
3883
3879
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3884
- - dist/chunks/_pb_line_graph-DuJNCf7N.js
3885
- - dist/chunks/_typeahead-Cx2lp7TD.js
3880
+ - dist/chunks/_pb_line_graph-BgKF_zz1.js
3881
+ - dist/chunks/_typeahead-C4YsbA48.js
3886
3882
  - dist/chunks/componentRegistry-DzmmLR2x.js
3887
- - dist/chunks/globalProps-Bc-FVsRt.js
3883
+ - dist/chunks/globalProps-BhVYCqRf.js
3888
3884
  - dist/chunks/lazysizes-B7xYodB-.js
3889
- - dist/chunks/lib-BwX82vim.js
3885
+ - dist/chunks/lib-DD34ZrWL.js
3890
3886
  - dist/chunks/vendor.js
3891
3887
  - dist/menu.yml
3892
3888
  - dist/playbook-rails-react-bindings.js
@@ -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 +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,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,33 +0,0 @@
1
- import React, { useState } from 'react'
2
- import RichTextEditor from '../../pb_rich_text_editor/_rich_text_editor'
3
- import { TrixEditor } from 'react-trix'
4
- // eslint-disable-next-line no-unused-vars
5
- import Trix from 'trix'
6
-
7
- const RichTextEditorLabel = (props) => {
8
- const [value, setValue] = useState(''),
9
- handleOnChange = (html) => setValue(html)
10
-
11
- return (
12
- <div>
13
- <RichTextEditor
14
- TrixEditor={TrixEditor}
15
- id="example"
16
- label="Example Label"
17
- onChange={handleOnChange}
18
- value={value}
19
- {...props}
20
- />
21
- <br/>
22
- <RichTextEditor
23
- TrixEditor={TrixEditor}
24
- label="Example Label No ID"
25
- onChange={handleOnChange}
26
- value={value}
27
- {...props}
28
- />
29
- </div>
30
- )
31
- }
32
-
33
- 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,6 +0,0 @@
1
- <%= pb_rails("time_picker", props: {
2
- id: "time-picker-required-indicator",
3
- label: "Select Time",
4
- required_indicator: true,
5
- }) %>
6
-
@@ -1,16 +0,0 @@
1
- import React from 'react'
2
- import TimePicker from '../_time_picker'
3
-
4
- const TimePickerRequiredIndicator = (props) => (
5
- <div>
6
- <TimePicker
7
- id="time-picker-required-indicator"
8
- label="Select Time"
9
- requiredIndicator
10
- {...props}
11
- />
12
- </div>
13
- )
14
-
15
- export default TimePickerRequiredIndicator
16
-
@@ -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,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.