playbook_ui_docs 15.6.0.pre.alpha.play266013023 → 15.6.0.pre.rc.0

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +163 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +190 -0
  4. data/app/pb_kits/playbook/pb_background/docs/_background_light.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -0
  6. data/app/pb_kits/playbook/pb_background/docs/example.yml +2 -2
  7. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  8. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  9. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -0
  10. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +3 -0
  11. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +0 -31
  12. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +0 -2
  13. data/app/pb_kits/playbook/pb_dialog/docs/index.js +1 -2
  14. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  15. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -3
  16. data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -2
  17. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -1
  19. data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
  20. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +4 -34
  21. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +7 -16
  22. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
  23. data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
  24. data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -2
  25. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  26. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
  27. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
  28. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
  29. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
  30. data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
  31. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  32. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
  33. metadata +2 -19
  34. data/app/pb_kits/playbook/pb_background/docs/_background_light.md +0 -1
  35. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.html.erb +0 -24
  36. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.jsx +0 -60
  37. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_closeable.md +0 -3
  38. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx +0 -180
  39. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md +0 -22
  40. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx +0 -42
  41. data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md +0 -1
  42. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +0 -16
  43. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +0 -30
  44. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +0 -1
  45. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
  46. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
  47. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
  48. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb +0 -30
  49. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx +0 -37
  50. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81c5bdf599a2aa0124c42d936e5ccd93325331a7a37f6404b41ebe8a8b94fac5
4
- data.tar.gz: 9bba26c50106688348749d493e632289a29c57f984e60c8108936d4a0bf1e50e
3
+ metadata.gz: 828fd024c2950b857d0ff61e9aced530635e804cea10943f716aae842a061588
4
+ data.tar.gz: 6c1b739e7cac2a08139638f8c5215a8d88f90f96179218c23d8c899a1836ae44
5
5
  SHA512:
6
- metadata.gz: 799d5958ac0ee12aa22dc67b335066b8d3324e47d43d70e6b04eb575d82de91105d39b6aff4cfcffa6058f3c28353432959eb8c2402bc8b1893d6c2de2e01ccb
7
- data.tar.gz: 3486d7241cc465158b554a11eced62382a43b62d2a6b877e7d41f4c68600ea517b7bf0f6cc7939ecc6e0163378db690e650800a5f43130106c107a85d967b8b7
6
+ metadata.gz: 505e690902c0dae8ae9fe2597ebb432daa2326010de9559048913b5714fdfdd23c1b9221a3c40cae285bd4baa675bd379850abaa2e1658a48447f29a8252feca
7
+ data.tar.gz: 5adae0c2447b01560e700be5cd1a3e9becea1df8faa306dd9b4c689ebafb53fd14e8f24f01bc64927085c509cd26cba562f715f6954604a1d2c46640a33e2690
@@ -29,5 +29,167 @@
29
29
  label: "Graduated Students",
30
30
  }
31
31
  ] %>
32
+ <%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Table Props" }) %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, margin_bottom: "md", column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
32
34
 
33
- <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
35
+ <% column_definitions_two = [
36
+ {
37
+ accessor: "year",
38
+ label: "Year",
39
+ cellAccessors: ["quarter", "month", "day"],
40
+ },
41
+ {
42
+ label: "Enrollment Data",
43
+ columns: [
44
+ {
45
+ accessor: "newEnrollments",
46
+ label: "New Enrollments",
47
+ },
48
+ {
49
+ accessor: "scheduledMeetings",
50
+ label: "Scheduled Meetings",
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ label: "Performance Data",
56
+ columns: [
57
+ {
58
+ accessor: "attendanceRate",
59
+ label: "Attendance Rate",
60
+ },
61
+ {
62
+ accessor: "completedClasses",
63
+ label: "Completed Classes",
64
+ },
65
+ {
66
+ accessor: "classCompletionRate",
67
+ label: "Class Completion Rate",
68
+ },
69
+ {
70
+ accessor: "graduatedStudents",
71
+ label: "Graduated Students",
72
+ },
73
+ ],
74
+ },
75
+ ] %>
76
+ <%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header" }) %>
77
+ <%= pb_rails("advanced_table", props: { id: "table_multi_headers_vertical_borders", margin_bottom: "md", table_data: @table_data, column_definitions: column_definitions_two, table_props: { vertical_border: true } }) %>
78
+
79
+ <% column_definitions_three = [
80
+ {
81
+ accessor: "year",
82
+ label: "Year",
83
+ cellAccessors: ["quarter", "month", "day"],
84
+ },
85
+ {
86
+ label: "Enrollment Data",
87
+ columns: [
88
+ {
89
+ label: "Enrollment Stats",
90
+ columns: [
91
+ {
92
+ accessor: "newEnrollments",
93
+ label: "New Enrollments",
94
+ },
95
+ {
96
+ accessor: "scheduledMeetings",
97
+ label: "Scheduled Meetings",
98
+ },
99
+ ],
100
+ },
101
+ ],
102
+ },
103
+ {
104
+ label: "Performance Data",
105
+ columns: [
106
+ {
107
+ label: "Completion Metrics",
108
+ columns: [
109
+ {
110
+ accessor: "completedClasses",
111
+ label: "Completed Classes",
112
+ },
113
+ {
114
+ accessor: "classCompletionRate",
115
+ label: "Class Completion Rate",
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ label: "Attendance",
121
+ columns: [
122
+ {
123
+ accessor: "attendanceRate",
124
+ label: "Attendance Rate",
125
+ },
126
+ {
127
+ accessor: "scheduledMeetings",
128
+ label: "Scheduled Meetings",
129
+ },
130
+ ],
131
+ },
132
+ ],
133
+ },
134
+ ] %>
135
+ <%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header with Column Group Border Color" }) %>
136
+ <%= pb_rails("advanced_table", props: { id: "beta_table_with_color_headers", margin_bottom: "md", table_data: @table_data, column_definitions: column_definitions_three, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
137
+
138
+ <% column_definitions_four = [
139
+ {
140
+ accessor: "year",
141
+ label: "Year",
142
+ cellAccessors: ["quarter", "month", "day"],
143
+ },
144
+ {
145
+ label: "Enrollment Data",
146
+ columns: [
147
+ {
148
+ label: "Enrollment Stats",
149
+ columns: [
150
+ {
151
+ accessor: "newEnrollments",
152
+ label: "New Enrollments",
153
+ },
154
+ {
155
+ accessor: "scheduledMeetings",
156
+ label: "Scheduled Meetings",
157
+ },
158
+ ],
159
+ },
160
+ ],
161
+ },
162
+ {
163
+ label: "Performance Data",
164
+ columns: [
165
+ {
166
+ label: "Completion Metrics",
167
+ columns: [
168
+ {
169
+ accessor: "completedClasses",
170
+ label: "Completed Classes",
171
+ },
172
+ {
173
+ accessor: "classCompletionRate",
174
+ label: "Class Completion Rate",
175
+ },
176
+ ],
177
+ },
178
+ {
179
+ label: "Attendance",
180
+ columns: [
181
+ {
182
+ accessor: "attendanceRate",
183
+ label: "Attendance Rate",
184
+ },
185
+ {
186
+ accessor: "scheduledMeetings",
187
+ label: "Scheduled Meetings",
188
+ },
189
+ ],
190
+ },
191
+ ],
192
+ },
193
+ ] %>
194
+ <%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header No Vertical Border" }) %>
195
+ <%= pb_rails("advanced_table", props: {id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions_four }) %>
@@ -1,6 +1,7 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data.json"
4
+ import Caption from "../../pb_caption/_caption"
4
5
 
5
6
  const AdvancedTableTableProps = (props) => {
6
7
  const columnDefinitions = [
@@ -40,14 +41,203 @@ const AdvancedTableTableProps = (props) => {
40
41
  verticalBorder: true
41
42
  }
42
43
 
44
+ const columnDefinitionsTwo = [
45
+ {
46
+ accessor: "year",
47
+ label: "Year",
48
+ cellAccessors: ["quarter", "month", "day"],
49
+ },
50
+ {
51
+ label: "Enrollment Data",
52
+ columns: [
53
+ {
54
+ accessor: "newEnrollments",
55
+ label: "New Enrollments",
56
+ },
57
+ {
58
+ accessor: "scheduledMeetings",
59
+ label: "Scheduled Meetings",
60
+ },
61
+ ],
62
+ },
63
+ {
64
+ label: "Performance Data",
65
+ columns: [
66
+ {
67
+ accessor: "attendanceRate",
68
+ label: "Attendance Rate",
69
+ },
70
+ {
71
+ accessor: "completedClasses",
72
+ label: "Completed Classes",
73
+ },
74
+ {
75
+ accessor: "classCompletionRate",
76
+ label: "Class Completion Rate",
77
+ },
78
+ {
79
+ accessor: "graduatedStudents",
80
+ label: "Graduated Students",
81
+ },
82
+ ],
83
+ },
84
+ ];
85
+
86
+ const tablePropsTwo = {
87
+ verticalBorder: true,
88
+ }
89
+
90
+ const columnDefinitionsThree = [
91
+ {
92
+ accessor: "year",
93
+ label: "Year",
94
+ cellAccessors: ["quarter", "month", "day"],
95
+ },
96
+ {
97
+ label: "Enrollment Data",
98
+ columns: [
99
+ {
100
+ label: "Enrollment Stats",
101
+ columns: [
102
+ {
103
+ accessor: "newEnrollments",
104
+ label: "New Enrollments",
105
+ },
106
+ {
107
+ accessor: "scheduledMeetings",
108
+ label: "Scheduled Meetings",
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ },
114
+ {
115
+ label: "Performance Data",
116
+ columns: [
117
+ {
118
+ label: "Completion Metrics",
119
+ columns: [
120
+ {
121
+ accessor: "completedClasses",
122
+ label: "Completed Classes",
123
+ },
124
+ {
125
+ accessor: "classCompletionRate",
126
+ label: "Class Completion Rate",
127
+ },
128
+ ],
129
+ },
130
+ {
131
+ label: "Attendance",
132
+ columns: [
133
+ {
134
+ accessor: "attendanceRate",
135
+ label: "Attendance Rate",
136
+ },
137
+ {
138
+ accessor: "scheduledMeetings",
139
+ label: "Scheduled Meetings",
140
+ },
141
+ ],
142
+ },
143
+ ],
144
+ },
145
+ ];
146
+
147
+ const tablePropsThree = {
148
+ verticalBorder: true
149
+ }
150
+
151
+ const columnDefinitionsFour = [
152
+ {
153
+ accessor: "year",
154
+ label: "Year",
155
+ cellAccessors: ["quarter", "month", "day"],
156
+ },
157
+ {
158
+ label: "Enrollment Data",
159
+ columns: [
160
+ {
161
+ label: "Enrollment Stats",
162
+ columns: [
163
+ {
164
+ accessor: "newEnrollments",
165
+ label: "New Enrollments",
166
+ },
167
+ {
168
+ accessor: "scheduledMeetings",
169
+ label: "Scheduled Meetings",
170
+ },
171
+ ],
172
+ },
173
+ ],
174
+ },
175
+ {
176
+ label: "Performance Data",
177
+ columns: [
178
+ {
179
+ label: "Completion Metrics",
180
+ columns: [
181
+ {
182
+ accessor: "completedClasses",
183
+ label: "Completed Classes",
184
+ },
185
+ {
186
+ accessor: "classCompletionRate",
187
+ label: "Class Completion Rate",
188
+ },
189
+ ],
190
+ },
191
+ {
192
+ label: "Attendance",
193
+ columns: [
194
+ {
195
+ accessor: "attendanceRate",
196
+ label: "Attendance Rate",
197
+ },
198
+ {
199
+ accessor: "scheduledMeetings",
200
+ label: "Scheduled Meetings",
201
+ },
202
+ ],
203
+ },
204
+ ],
205
+ },
206
+ ];
207
+
43
208
  return (
44
209
  <div>
210
+ <Caption text="Advanced Table Vertical Border Table Props" />
45
211
  <AdvancedTable
46
212
  columnDefinitions={columnDefinitions}
213
+ marginBottom="md"
47
214
  tableData={MOCK_DATA}
48
215
  tableProps={tableProps}
49
216
  {...props}
50
217
  />
218
+ <Caption text="Advanced Table Vertical Border Multi Header" />
219
+ <AdvancedTable
220
+ columnDefinitions={columnDefinitionsTwo}
221
+ marginBottom="md"
222
+ tableData={MOCK_DATA}
223
+ tableProps={tablePropsTwo}
224
+ {...props}
225
+ />
226
+ <Caption text="Advanced Table Vertical Border Multi Header with Column Group Border Color" />
227
+ <AdvancedTable
228
+ columnDefinitions={columnDefinitionsThree}
229
+ columnGroupBorderColor="text_lt_default"
230
+ marginBottom="md"
231
+ tableData={MOCK_DATA}
232
+ tableProps={tablePropsThree}
233
+ {...props}
234
+ />
235
+ <Caption text="Advanced Table Vertical Border Multi Header No Vertical Border" />
236
+ <AdvancedTable
237
+ columnDefinitions={columnDefinitionsFour}
238
+ tableData={MOCK_DATA}
239
+ {...props}
240
+ />
51
241
  </div>
52
242
  )
53
243
  }
@@ -1,3 +1,3 @@
1
- <%= pb_rails("background", props: { padding: "xl" }) do %>
1
+ <%= pb_rails("background", props: { background_color: "light", padding: "xl" }) do %>
2
2
 
3
3
  <% end %>
@@ -3,6 +3,7 @@ import Background from '../../pb_background/_background'
3
3
 
4
4
  const BackgroundLight = (props) => (
5
5
  <Background
6
+ backgroundColor="light"
6
7
  padding="xl"
7
8
  {...props}
8
9
  />
@@ -1,7 +1,7 @@
1
1
  examples:
2
2
 
3
3
  rails:
4
- - background_light: Default
4
+ - background_light: Light
5
5
  - background_white: White
6
6
  - background_gradient: Gradient
7
7
  - background_image: Image
@@ -11,7 +11,7 @@ examples:
11
11
  - background_size: Size
12
12
 
13
13
  react:
14
- - background_light: Default
14
+ - background_light: Light
15
15
  - background_white: White
16
16
  - background_gradient: Gradient
17
17
  - background_image: Image
@@ -1 +1 @@
1
- Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">here</a>.
1
+ Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
@@ -1 +1 @@
1
- Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/tokens/colors" target="_blank">here</a>.
1
+ Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
@@ -7,6 +7,7 @@ const CollapsibleIcons = (props) => {
7
7
  <>
8
8
  <Collapsible
9
9
  icon={['plus','minus']}
10
+ iconColor='white'
10
11
  >
11
12
  <Collapsible.Main {...props}>
12
13
  <div>{'Main Section'}</div>
@@ -22,6 +22,7 @@ const CollapsibleState = (props) => {
22
22
  <Collapsible
23
23
  collapsed={isCollapsed}
24
24
  icon={["plus", "minus"]}
25
+ iconColor='white'
25
26
  padding="none"
26
27
  >
27
28
  <Collapsible.Main padding="sm"
@@ -40,6 +41,7 @@ const CollapsibleState = (props) => {
40
41
  <Collapsible
41
42
  collapsed={isCollapsed}
42
43
  icon={["plus", "minus"]}
44
+ iconColor='white'
43
45
  padding="none"
44
46
  >
45
47
  <Collapsible.Main padding="sm"
@@ -58,6 +60,7 @@ const CollapsibleState = (props) => {
58
60
  <Collapsible
59
61
  collapsed={isCollapsed}
60
62
  icon={["plus", "minus"]}
63
+ iconColor='white'
61
64
  padding="none"
62
65
  >
63
66
  <Collapsible.Main padding="sm"
@@ -1,24 +1,3 @@
1
- <%
2
- options = [
3
- {
4
- label: "United States",
5
- value: "unitedStates",
6
- id: "us"
7
- },
8
- {
9
- label: "United Kingdom",
10
- value: "unitedKingdom",
11
- id: "gb"
12
- },
13
- {
14
- label: "Pakistan",
15
- value: "pakistan",
16
- id: "pk"
17
- }
18
- ]
19
- %>
20
-
21
-
22
1
  <%= pb_rails("button", props: { text: "Open Complex Dialog", data:{"open-dialog": "dialog-complex"} }) %>
23
2
 
24
3
  <%= pb_rails("dialog", props: { id:"dialog-complex", size: "lg", full_height: true }) do %>
@@ -31,16 +10,6 @@
31
10
  <%= pb_rails("rich_text_editor", props: {id: "default", value: "Add your text here"}) %>
32
11
  <%= pb_rails("caption", props: { text: "Type in a word or term too help find tickets later. ex. training, phone setup, hr", margin_bottom: "xs", margin_top: "sm" }) %>
33
12
  <%= pb_rails("typeahead", props: { placeholder: "Tags.."}) %>
34
- <%= pb_rails("dropdown", props: {options: options, autocomplete: true}) %>
35
- <%= pb_rails("typeahead", props: {
36
- id: "typeahead-default",
37
- placeholder: "Select one...",
38
- options: options,
39
- name: :foo,
40
- margin_top: "sm",
41
- is_multi: false
42
- })
43
- %>
44
13
 
45
14
  <% end %>
46
15
  <%= pb_rails("dialog/dialog_footer", props: {cancel_button: "Back", confirm_button: "Send my Issue", confirm_button_id:"confirm-complex", id: "dialog-complex"}) %>
@@ -12,7 +12,6 @@ examples:
12
12
  - dialog_full_height_placement: Full Height Placement
13
13
  - dialog_loading: Loading
14
14
  - dialog_turbo_frames: Within Turbo Frames
15
- - dialog_closeable: Close Button in Header
16
15
 
17
16
 
18
17
  react:
@@ -26,7 +25,6 @@ examples:
26
25
  - dialog_full_height: Full Height
27
26
  - dialog_full_height_placement: Full Height Placement
28
27
  - dialog_loading: Loading
29
- - dialog_closeable: Close Button in Header
30
28
 
31
29
  swift:
32
30
  - dialog_default_swift: Simple
@@ -8,5 +8,4 @@ export { default as DialogStatus } from './_dialog_status.jsx'
8
8
  export { default as DialogStackedAlert } from './_dialog_stacked_alert.jsx'
9
9
  export { default as DialogFullHeight } from './_dialog_full_height.jsx'
10
10
  export { default as DialogFullHeightPlacement } from './_dialog_full_height_placement.jsx'
11
- export { default as DialogLoading } from './_dialog_loading.jsx'
12
- export { default as DialogCloseable } from './_dialog_closeable.jsx'
11
+ export { default as DialogLoading } from './_dialog_loading.jsx'
@@ -1 +1 @@
1
- You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](https://playbook.powerapp.cloud/tokens/colors) for reference.
1
+ You can customize the order of the colors you would like to use by using the `colors` prop. Only the data and status colors will work for Playbook charts. See the [design page](https://playbook.powerapp.cloud/token/colors) for reference.
@@ -5,12 +5,11 @@ examples:
5
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
6
6
  - draggable_with_cards: Draggable with Cards
7
7
  - draggable_with_table: Draggable with Table
8
+ - draggable_multiple_containers: Dragging Across Multiple Containers
8
9
  - draggable_drop_zones: Draggable Drop Zones
9
10
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
10
11
  - draggable_drop_zones_line: Draggable Drop Zones Line
11
12
  - draggable_event_listeners: Draggable Event Listeners
12
- - draggable_multiple_containers: Dragging Across Multiple Containers
13
- - draggable_multiple_containers_dropzone: Dragging Across Multiple Containers with Dropzones
14
13
 
15
14
  rails:
16
15
  - draggable_default: Default
@@ -18,8 +17,8 @@ examples:
18
17
  - draggable_with_selectable_list: Draggable with SelectableList Kit
19
18
  - draggable_with_cards: Draggable with Cards
20
19
  - draggable_with_table: Draggable with Table
20
+ - draggable_multiple_containers: Dragging Across Multiple Containers
21
21
  - draggable_drop_zones: Draggable Drop Zones
22
22
  - draggable_drop_zones_colors: Draggable Drop Zones Colors
23
23
  - draggable_drop_zones_line: Draggable Drop Zones Line
24
24
  - draggable_event_listeners: Draggable Event Listeners
25
- - draggable_multiple_containers: Dragging Across Multiple Containers
@@ -7,5 +7,4 @@ export { default as DraggableWithTable } from './_draggable_with_table.jsx'
7
7
  export { default as DraggableDropZones } from './_draggable_drop_zones.jsx'
8
8
  export { default as DraggableDropZonesColors } from './_draggable_drop_zones_colors.jsx'
9
9
  export { default as DraggableDropZonesLine } from './_draggable_drop_zones_line.jsx'
10
- export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
11
- export { default as DraggableMultipleContainersDropzone } from './_draggable_multiple_containers_dropzone.jsx'
10
+ export { default as DraggableEventListeners } from './_draggable_event_listeners.jsx'
@@ -8,4 +8,4 @@
8
8
  state: "PA",
9
9
  zipcode: "19382",
10
10
  territory: "PHL",
11
- }) %>
11
+ }) %>
@@ -10,7 +10,6 @@ examples:
10
10
  - multiple_users_default: Default
11
11
  - multiple_users_reverse: Reverse
12
12
  - multiple_users_size: Size
13
- - multiple_users_with_tooltip: With Tooltip
14
13
 
15
14
  swift:
16
15
  - multiple_users_default_swift: Default
@@ -1,4 +1,3 @@
1
1
  export { default as MultipleUsersDefault } from './_multiple_users_default.jsx'
2
2
  export { default as MultipleUsersReverse } from './_multiple_users_reverse.jsx'
3
3
  export { default as MultipleUsersSize } from './_multiple_users_size.jsx'
4
- export { default as MultipleUsersWithTooltip } from './_multiple_users_with_tooltip.jsx'
@@ -1,42 +1,12 @@
1
1
  <form id="example-form-validation" action="" method="get">
2
- <%= pb_rails("phone_number_input", props: {
3
- id: "validation",
4
- initial_country: "af",
5
- value: "",
6
- required: true
7
- }) %>
2
+ <%= pb_rails("phone_number_input", props: { error: "Missing phone number", id: "validation", initial_country: "af", value: "", required: true }) %>
8
3
  <%= pb_rails("button", props: {html_type: "submit", text: "Save Phone Number"}) %>
9
4
  </form>
10
5
 
11
6
  <%= javascript_tag do %>
12
7
  document.addEventListener('DOMContentLoaded', function () {
13
- const form = document.querySelector('#example-form-validation');
14
-
15
- // Wait for React component to mount
16
- function waitForComponent() {
17
- const phoneInput = form.querySelector('#validation');
18
-
19
- if (!phoneInput) {
20
- setTimeout(waitForComponent, 100);
21
- return;
22
- }
23
-
24
- // Wait for intl-tel-input to initialize, then focus and blur to trigger validation
25
- setTimeout(function() {
26
- phoneInput.focus({ preventScroll: true });
27
- setTimeout(function() {
28
- phoneInput.blur();
29
- }, 100);
30
- }, 500);
31
- }
32
-
33
- waitForComponent();
34
-
35
- // Prevent form submission if there are validation errors
36
- form.addEventListener('submit', function (e) {
37
- if (e.target.querySelectorAll('[error]:not([error=""])').length > 0) {
38
- e.preventDefault();
39
- }
40
- });
8
+ document.querySelector('#example-form-validation').addEventListener('submit', function (e) {
9
+ if (e.target.querySelectorAll('[error]:not([error=""])').length > 0) e.preventDefault();
10
+ })
41
11
  })
42
12
  <% end %>