playbook_ui 13.22.0 → 13.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +8 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.jsx +6 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_expanded_control.md +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_loading.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sort_control.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_subrow_headers.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_options.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data.json +278 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +0 -7
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +0 -7
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +7 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +7 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_footer.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +2 -2
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +2 -0
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +34 -0
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +17 -1
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +18 -2
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.scss +14 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.tsx +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.html.erb +5 -0
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_sizes.jsx +6 -0
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.rb +1 -1
- data/app/pb_kits/playbook/pb_icon_circle/icon_circle.test.js +1 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb +0 -2
- data/app/pb_kits/playbook/pb_list/list.rb +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids.md +2 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/{_multi_level_select_selected_ids.jsx → _multi_level_select_selected_ids_react.jsx} +2 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_selected_ids_react.md +5 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status.scss +1 -10
- data/app/pb_kits/playbook/pb_online_status/_online_status.tsx +1 -1
- data/app/pb_kits/playbook/pb_online_status/_online_status_mixins.scss +7 -13
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.html.erb +6 -9
- data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +18 -7
- data/app/pb_kits/playbook/pb_online_status/online_status.rb +1 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default.html.erb +2 -1
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +2 -2
- data/app/pb_kits/playbook/pb_toggle/_toggle.scss +39 -6
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +17 -12
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.html.erb +11 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_toggle_disabled.jsx +21 -0
- data/app/pb_kits/playbook/pb_toggle/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_toggle/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_toggle/toggle.rb +2 -1
- data/app/pb_kits/playbook/pb_toggle/toggle.test.js +7 -0
- data/app/pb_kits/playbook/utilities/_positioning.scss +23 -10
- data/app/pb_kits/playbook/utilities/globalProps.ts +26 -8
- data/dist/menu.yml +4 -0
- data/dist/playbook-rails.js +7 -7
- data/lib/playbook/bottom.rb +6 -3
- data/lib/playbook/kit_base.rb +1 -1
- data/lib/playbook/left.rb +6 -3
- data/lib/playbook/pb_doc_helper.rb +1 -1
- data/lib/playbook/position_props_css.rb +17 -0
- data/lib/playbook/props/percentage.rb +2 -2
- data/lib/playbook/right.rb +6 -3
- data/lib/playbook/top.rb +6 -3
- data/lib/playbook/version.rb +2 -2
- metadata +14 -38
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data.js +0 -278
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1111185a0ba8189b593aac01cc00c8e0e25665e52023c6dae98205d0a8292c97
|
4
|
+
data.tar.gz: '08738c3ea661ac56922035b3e069885ea4b6233d7f7e6704d441e728a1c64aed'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 339c41e64df36a935e6bdd362dae6b6260faae9c524ea9f0aad8bd73ea26d9fd3c63fd69ce1234f97839794cd60c020120e583f814ea80b96654aa6771c3384c
|
7
|
+
data.tar.gz: b86306732da6f9f96493f2c0b9bdef887aff78f0de2b2aeb7ba9d0a64aff1cd198021c55acf36fcd9bee75f68e3fbf457a95f43dfd1be203eb9943de53ae5065
|
@@ -24,12 +24,16 @@ export const CustomCell = ({
|
|
24
24
|
row,
|
25
25
|
value,
|
26
26
|
}: CustomCellProps & GlobalProps) => {
|
27
|
-
const { setExpanded, expanded, inlineRowLoading } = useContext(AdvancedTableContext)
|
27
|
+
const { setExpanded, expanded, expandedControl, inlineRowLoading } = useContext(AdvancedTableContext);
|
28
28
|
|
29
29
|
const handleOnExpand = (row: Row<GenericObject>) => {
|
30
|
-
onRowToggleClick && onRowToggleClick(row)
|
31
|
-
|
32
|
-
|
30
|
+
onRowToggleClick && onRowToggleClick(row);
|
31
|
+
|
32
|
+
if (!expandedControl) {
|
33
|
+
setExpanded({ ...expanded, [row.id]: !row.getIsExpanded() });
|
34
|
+
}
|
35
|
+
};
|
36
|
+
|
33
37
|
const RowHasChildren = row.original.children ? true : false
|
34
38
|
const renderButton = inlineRowLoading ? RowHasChildren : row.getCanExpand()
|
35
39
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from "react"
|
2
2
|
import { AdvancedTable } from "../../"
|
3
|
-
import
|
3
|
+
import MOCK_DATA from "./advanced_table_mock_data.json"
|
4
4
|
|
5
5
|
const AdvancedTableExpandedControl = (props) => {
|
6
6
|
const columnDefinitions = [
|
@@ -44,11 +44,16 @@ const AdvancedTableExpandedControl = (props) => {
|
|
44
44
|
onChange: setExpanded,
|
45
45
|
}
|
46
46
|
|
47
|
+
const onRowToggleClick = (row) => {
|
48
|
+
setExpanded({ ...expanded, [row.id]: !expanded[row.id] })
|
49
|
+
}
|
50
|
+
|
47
51
|
return (
|
48
52
|
<div>
|
49
53
|
<AdvancedTable
|
50
54
|
columnDefinitions={columnDefinitions}
|
51
55
|
expandedControl={expandedControl}
|
56
|
+
onRowToggleClick={onRowToggleClick}
|
52
57
|
tableData={MOCK_DATA}
|
53
58
|
{...props}
|
54
59
|
/>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
**NOTE**: If using `expandedControl` the dev is expected to manage the row level expansion state themselves, the kit itself will NOT do it by default.
|
2
|
+
|
1
3
|
`expandedControl` is an optional prop that can be used to gain greater control over the expansion state of the Advanced Table. Tanstack handles expansion itself, however it does provide for a way to handle the state manually if needed. Usecases for this include needing to store the expansion state so it persists on page reload, set an initial expansion state, etc.
|
2
4
|
|
3
5
|
In this example we are showing that if initial expansion state is set, it will render the table expanded according to that state.
|
@@ -0,0 +1,278 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"year": "2021",
|
4
|
+
"quarter": null,
|
5
|
+
"month": null,
|
6
|
+
"day": null,
|
7
|
+
"newEnrollments": "20",
|
8
|
+
"scheduledMeetings": "10",
|
9
|
+
"attendanceRate": "51%",
|
10
|
+
"completedClasses": "3",
|
11
|
+
"classCompletionRate": "33%",
|
12
|
+
"graduatedStudents": "19",
|
13
|
+
"children": [
|
14
|
+
{
|
15
|
+
"year": "2021",
|
16
|
+
"quarter": "Q1",
|
17
|
+
"month": null,
|
18
|
+
"day": null,
|
19
|
+
"newEnrollments": "2",
|
20
|
+
"scheduledMeetings": "35",
|
21
|
+
"attendanceRate": "32%",
|
22
|
+
"completedClasses": "15",
|
23
|
+
"classCompletionRate": "52%",
|
24
|
+
"graduatedStudents": "36",
|
25
|
+
"children": [
|
26
|
+
{
|
27
|
+
"year": "2021",
|
28
|
+
"quarter": "Q1",
|
29
|
+
"month": "January",
|
30
|
+
"day": null,
|
31
|
+
"newEnrollments": "16",
|
32
|
+
"scheduledMeetings": "20",
|
33
|
+
"attendanceRate": "11%",
|
34
|
+
"completedClasses": "13",
|
35
|
+
"classCompletionRate": "47%",
|
36
|
+
"graduatedStudents": "28",
|
37
|
+
"children": [
|
38
|
+
{
|
39
|
+
"year": "2021",
|
40
|
+
"quarter": "Q1",
|
41
|
+
"month": "January",
|
42
|
+
"day": "10",
|
43
|
+
"newEnrollments": "34",
|
44
|
+
"scheduledMeetings": "28",
|
45
|
+
"attendanceRate": "97%",
|
46
|
+
"completedClasses": "20",
|
47
|
+
"classCompletionRate": "15%",
|
48
|
+
"graduatedStudents": "17"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"year": "2021",
|
52
|
+
"quarter": "Q1",
|
53
|
+
"month": "January",
|
54
|
+
"day": "20",
|
55
|
+
"newEnrollments": "43",
|
56
|
+
"scheduledMeetings": "23",
|
57
|
+
"attendanceRate": "66%",
|
58
|
+
"completedClasses": "26",
|
59
|
+
"classCompletionRate": "47%",
|
60
|
+
"graduatedStudents": "9"
|
61
|
+
}
|
62
|
+
]
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"year": "2021",
|
66
|
+
"quarter": "Q1",
|
67
|
+
"month": "February",
|
68
|
+
"day": null,
|
69
|
+
"newEnrollments": "20",
|
70
|
+
"scheduledMeetings": "41",
|
71
|
+
"attendanceRate": "95%",
|
72
|
+
"completedClasses": "26",
|
73
|
+
"classCompletionRate": "83%",
|
74
|
+
"graduatedStudents": "43",
|
75
|
+
"children": [
|
76
|
+
{
|
77
|
+
"year": "2021",
|
78
|
+
"quarter": "Q1",
|
79
|
+
"month": "February",
|
80
|
+
"day": "15",
|
81
|
+
"newEnrollments": "19",
|
82
|
+
"scheduledMeetings": "35",
|
83
|
+
"attendanceRate": "69%",
|
84
|
+
"completedClasses": "8",
|
85
|
+
"classCompletionRate": "75%",
|
86
|
+
"graduatedStudents": "23"
|
87
|
+
}
|
88
|
+
]
|
89
|
+
}
|
90
|
+
]
|
91
|
+
}
|
92
|
+
]
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"year": "2022",
|
96
|
+
"quarter": null,
|
97
|
+
"month": null,
|
98
|
+
"day": null,
|
99
|
+
"newEnrollments": "25",
|
100
|
+
"scheduledMeetings": "17",
|
101
|
+
"attendanceRate": "75%",
|
102
|
+
"completedClasses": "5",
|
103
|
+
"classCompletionRate": "45%",
|
104
|
+
"graduatedStudents": "32",
|
105
|
+
"children": [
|
106
|
+
{
|
107
|
+
"year": "2022",
|
108
|
+
"quarter": "Q1",
|
109
|
+
"month": null,
|
110
|
+
"day": null,
|
111
|
+
"newEnrollments": "2",
|
112
|
+
"scheduledMeetings": "35",
|
113
|
+
"attendanceRate": "32%",
|
114
|
+
"completedClasses": "15",
|
115
|
+
"classCompletionRate": "52%",
|
116
|
+
"graduatedStudents": "36",
|
117
|
+
"children": [
|
118
|
+
{
|
119
|
+
"year": "2022",
|
120
|
+
"quarter": "Q1",
|
121
|
+
"month": "January",
|
122
|
+
"day": null,
|
123
|
+
"newEnrollments": "16",
|
124
|
+
"scheduledMeetings": "20",
|
125
|
+
"attendanceRate": "11%",
|
126
|
+
"completedClasses": "13",
|
127
|
+
"classCompletionRate": "47%",
|
128
|
+
"graduatedStudents": "28",
|
129
|
+
"children": [
|
130
|
+
{
|
131
|
+
"year": "2022",
|
132
|
+
"quarter": "Q1",
|
133
|
+
"month": "January",
|
134
|
+
"day": "15",
|
135
|
+
"newEnrollments": "34",
|
136
|
+
"scheduledMeetings": "28",
|
137
|
+
"attendanceRate": "97%",
|
138
|
+
"completedClasses": "20",
|
139
|
+
"classCompletionRate": "15%",
|
140
|
+
"graduatedStudents": "17"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"year": "2022",
|
144
|
+
"quarter": "Q1",
|
145
|
+
"month": "January",
|
146
|
+
"day": "25",
|
147
|
+
"newEnrollments": "43",
|
148
|
+
"scheduledMeetings": "23",
|
149
|
+
"attendanceRate": "66%",
|
150
|
+
"completedClasses": "26",
|
151
|
+
"classCompletionRate": "47%",
|
152
|
+
"graduatedStudents": "9"
|
153
|
+
}
|
154
|
+
]
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"year": "2022",
|
158
|
+
"quarter": "Q1",
|
159
|
+
"month": "May",
|
160
|
+
"day": null,
|
161
|
+
"newEnrollments": "20",
|
162
|
+
"scheduledMeetings": "41",
|
163
|
+
"attendanceRate": "95%",
|
164
|
+
"completedClasses": "26",
|
165
|
+
"classCompletionRate": "83%",
|
166
|
+
"graduatedStudents": "43",
|
167
|
+
"children": [
|
168
|
+
{
|
169
|
+
"year": "2022",
|
170
|
+
"quarter": "Q1",
|
171
|
+
"month": "May",
|
172
|
+
"day": "2",
|
173
|
+
"newEnrollments": "19",
|
174
|
+
"scheduledMeetings": "35",
|
175
|
+
"attendanceRate": "69%",
|
176
|
+
"completedClasses": "8",
|
177
|
+
"classCompletionRate": "75%",
|
178
|
+
"graduatedStudents": "23"
|
179
|
+
}
|
180
|
+
]
|
181
|
+
}
|
182
|
+
]
|
183
|
+
}
|
184
|
+
]
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"year": "2023",
|
188
|
+
"quarter": null,
|
189
|
+
"month": null,
|
190
|
+
"day": null,
|
191
|
+
"newEnrollments": "10",
|
192
|
+
"scheduledMeetings": "15",
|
193
|
+
"attendanceRate": "65%",
|
194
|
+
"completedClasses": "4",
|
195
|
+
"classCompletionRate": "49%",
|
196
|
+
"graduatedStudents": "29",
|
197
|
+
"children": [
|
198
|
+
{
|
199
|
+
"year": "2023",
|
200
|
+
"quarter": "Q1",
|
201
|
+
"month": null,
|
202
|
+
"day": null,
|
203
|
+
"newEnrollments": "2",
|
204
|
+
"scheduledMeetings": "35",
|
205
|
+
"attendanceRate": "32%",
|
206
|
+
"completedClasses": "15",
|
207
|
+
"classCompletionRate": "52%",
|
208
|
+
"graduatedStudents": "36",
|
209
|
+
"children": [
|
210
|
+
{
|
211
|
+
"year": "2023",
|
212
|
+
"quarter": "Q1",
|
213
|
+
"month": "March",
|
214
|
+
"day": null,
|
215
|
+
"newEnrollments": "16",
|
216
|
+
"scheduledMeetings": "20",
|
217
|
+
"attendanceRate": "11%",
|
218
|
+
"completedClasses": "13",
|
219
|
+
"classCompletionRate": "47%",
|
220
|
+
"graduatedStudents": "28",
|
221
|
+
"children": [
|
222
|
+
{
|
223
|
+
"year": "2023",
|
224
|
+
"quarter": "Q1",
|
225
|
+
"month": "March",
|
226
|
+
"day": "10",
|
227
|
+
"newEnrollments": "34",
|
228
|
+
"scheduledMeetings": "28",
|
229
|
+
"attendanceRate": "97%",
|
230
|
+
"completedClasses": "20",
|
231
|
+
"classCompletionRate": "15%",
|
232
|
+
"graduatedStudents": "17"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"year": "2023",
|
236
|
+
"quarter": "Q1",
|
237
|
+
"month": "March",
|
238
|
+
"day": "11",
|
239
|
+
"newEnrollments": "43",
|
240
|
+
"scheduledMeetings": "23",
|
241
|
+
"attendanceRate": "66%",
|
242
|
+
"completedClasses": "26",
|
243
|
+
"classCompletionRate": "47%",
|
244
|
+
"graduatedStudents": "9"
|
245
|
+
}
|
246
|
+
]
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"year": "2023",
|
250
|
+
"quarter": "Q1",
|
251
|
+
"month": "April",
|
252
|
+
"day": null,
|
253
|
+
"newEnrollments": "20",
|
254
|
+
"scheduledMeetings": "41",
|
255
|
+
"attendanceRate": "95%",
|
256
|
+
"completedClasses": "26",
|
257
|
+
"classCompletionRate": "83%",
|
258
|
+
"graduatedStudents": "43",
|
259
|
+
"children": [
|
260
|
+
{
|
261
|
+
"year": "2023",
|
262
|
+
"quarter": "Q1",
|
263
|
+
"month": "April",
|
264
|
+
"day": "15",
|
265
|
+
"newEnrollments": "19",
|
266
|
+
"scheduledMeetings": "35",
|
267
|
+
"attendanceRate": "69%",
|
268
|
+
"completedClasses": "8",
|
269
|
+
"classCompletionRate": "75%",
|
270
|
+
"graduatedStudents": "23"
|
271
|
+
}
|
272
|
+
]
|
273
|
+
}
|
274
|
+
]
|
275
|
+
}
|
276
|
+
]
|
277
|
+
}
|
278
|
+
]
|
@@ -10,13 +10,6 @@
|
|
10
10
|
picker_id: "date-picker-default-date2"
|
11
11
|
}) %>
|
12
12
|
|
13
|
-
<%= pb_rails("date_picker", props: {
|
14
|
-
default_date: [DateTime.current.utc.iso8601, (DateTime.current + 7.day).utc.iso8601],
|
15
|
-
label: "Default Date Range",
|
16
|
-
mode: "range",
|
17
|
-
picker_id: "date-picker-default-date3"
|
18
|
-
}) %>
|
19
|
-
|
20
13
|
<%= pb_rails("date_picker", props: {
|
21
14
|
label: "Default Behavior",
|
22
15
|
picker_id: "date-picker-default-date4"
|
@@ -16,13 +16,6 @@ const DatePickerDefaultDate = (props) => (
|
|
16
16
|
pickerId="date-picker-default-date2"
|
17
17
|
{...props}
|
18
18
|
/>
|
19
|
-
<DatePicker
|
20
|
-
defaultDate={[new Date(), new Date().fp_incr(7)]}
|
21
|
-
label="Default Date Range"
|
22
|
-
mode="range"
|
23
|
-
pickerId="date-picker-default-date3"
|
24
|
-
{...props}
|
25
|
-
/>
|
26
19
|
<DatePicker
|
27
20
|
label="Default Behavior"
|
28
21
|
pickerId="date-picker-default-date4"
|
@@ -2,4 +2,11 @@
|
|
2
2
|
default_date: [DateTime.current.utc.iso8601, (DateTime.current + 7.day).utc.iso8601],
|
3
3
|
mode: "range",
|
4
4
|
picker_id: "date-picker-range"
|
5
|
+
}) %>
|
6
|
+
|
7
|
+
<%= pb_rails("date_picker", props: {
|
8
|
+
default_date: [DateTime.current.utc.iso8601, (DateTime.current + 7.day).utc.iso8601],
|
9
|
+
label: "Default Date Range",
|
10
|
+
mode: "range",
|
11
|
+
picker_id: "date-picker-default-date3"
|
5
12
|
}) %>
|
@@ -10,6 +10,13 @@ const DatePickerRange = (props) => (
|
|
10
10
|
pickerId="date-picker-range"
|
11
11
|
{...props}
|
12
12
|
/>
|
13
|
+
<DatePicker
|
14
|
+
defaultDate={[new Date(), new Date().fp_incr(7)]}
|
15
|
+
label="Default Date Range"
|
16
|
+
mode="range"
|
17
|
+
pickerId="date-picker-default-date3"
|
18
|
+
{...props}
|
19
|
+
/>
|
13
20
|
</div>
|
14
21
|
)
|
15
22
|
|
@@ -7,7 +7,7 @@ examples:
|
|
7
7
|
- date_picker_allow_input: Allow Input
|
8
8
|
- date_picker_input: Input Field
|
9
9
|
- date_picker_label: Label
|
10
|
-
- date_picker_range: Range
|
10
|
+
# - date_picker_range: Range
|
11
11
|
- date_picker_quick_pick_rails: Range (Quick Pick)
|
12
12
|
- date_picker_quick_pick_range_limit: Range (Quick Pick w/ “This” Range limit)
|
13
13
|
- date_picker_quick_pick_custom: Custom Quick Pick Dates
|
@@ -37,7 +37,7 @@ examples:
|
|
37
37
|
- date_picker_label: Label
|
38
38
|
- date_picker_on_change: onChange
|
39
39
|
- date_picker_on_close: onClose
|
40
|
-
- date_picker_range: Range
|
40
|
+
# - date_picker_range: Range
|
41
41
|
- date_picker_quick_pick_react: Range (Quick Pick)
|
42
42
|
- date_picker_quick_pick_range_limit: Range (Quick Pick w/ “This” Range limit)
|
43
43
|
- date_picker_quick_pick_custom: Custom Quick Pick Dates
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<%= pb_rails("button", props: { type: "submit", id: object.confirm_button_id }) do %>
|
10
10
|
<%= object.confirm_button %>
|
11
11
|
<% end %>
|
12
|
-
<%= pb_rails("button", props: { data: {"close-dialog": "#{object.id}" }, id: object.cancel_button_id, variant: "link"}) do %>
|
12
|
+
<%= pb_rails("button", props: { type: "button", data: {"close-dialog": "#{object.id}" }, id: object.cancel_button_id, variant: "link"}) do %>
|
13
13
|
<%= object.cancel_button %>
|
14
14
|
<% end %>
|
15
15
|
<% end %>
|
@@ -6,8 +6,8 @@
|
|
6
6
|
**combined_html_options) do %>
|
7
7
|
<%= pb_rails("flex", props: {classname:object.classname, spacing:"between", padding:"sm", align:"center"}) do %>
|
8
8
|
<%= content.presence || object.title %>
|
9
|
-
|
10
|
-
<button class="dialog-button-class" data-close-dialog= <%= object.id %> >
|
9
|
+
|
10
|
+
<button class="dialog-button-class" type="button" data-close-dialog= <%= object.id %> >
|
11
11
|
<%= pb_rails("icon", props:{icon: "times"}) %>
|
12
12
|
</button>
|
13
13
|
<% end %>
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<%= pb_rails("button", props: { text: "Open Complex Dialog", data:{"open-dialog": "dialog-complex"} }) %>
|
2
2
|
|
3
3
|
<%= pb_rails("dialog", props: { id:"dialog-complex", size: "lg", full_height: true }) do %>
|
4
|
+
<form>
|
4
5
|
<%= pb_rails("dialog/dialog_header", props: { id: "dialog-complex" } ) do %>
|
5
6
|
<%= pb_rails("body", props: { text: "What do you need us to take care of?" }) %>
|
6
7
|
<% end %>
|
@@ -12,4 +13,5 @@
|
|
12
13
|
|
13
14
|
<% end %>
|
14
15
|
<%= pb_rails("dialog/dialog_footer", props: {cancel_button: "Back", confirm_button: "Send my Issue", confirm_button_id:"confirm-complex", id: "dialog-complex"}) %>
|
16
|
+
</form>
|
15
17
|
<% end %>
|
@@ -57,6 +57,36 @@
|
|
57
57
|
margin-bottom: 16px;
|
58
58
|
}
|
59
59
|
|
60
|
+
& > [class^=pb_phone_number_input]:not(:last-child) {
|
61
|
+
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
62
|
+
border-bottom-right-radius: 0;
|
63
|
+
border-top-right-radius: 0;
|
64
|
+
border-right-width: 0;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
& > [class^=pb_phone_number_input]:not(:first-child) {
|
69
|
+
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
70
|
+
border-bottom-left-radius: 0;
|
71
|
+
border-top-left-radius: 0;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
& > div:not(:first-child) > [class^=pb_phone_number_input] {
|
76
|
+
.text_input {
|
77
|
+
border-bottom-left-radius: 0;
|
78
|
+
border-top-left-radius: 0;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
& > div:not(:last-child) > [class^=pb_phone_number_input] {
|
83
|
+
.text_input {
|
84
|
+
border-bottom-right-radius: 0;
|
85
|
+
border-top-right-radius: 0;
|
86
|
+
border-right: none;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
60
90
|
&[class*=rails] > [class^=pb_date_picker_kit] {
|
61
91
|
margin-bottom: 0px;
|
62
92
|
}
|
@@ -82,6 +112,10 @@
|
|
82
112
|
border-bottom-right-radius: 0;
|
83
113
|
border-top-right-radius: 0;
|
84
114
|
border-right-width: 0;
|
115
|
+
&:focus {
|
116
|
+
outline: $primary solid 1px;
|
117
|
+
outline-offset: -1px;
|
118
|
+
}
|
85
119
|
}
|
86
120
|
}
|
87
121
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
<div>
|
2
|
+
|
2
3
|
<%= pb_rails("form_group") do %>
|
3
|
-
<%= pb_rails("text_input", props: {
|
4
|
+
<%= pb_rails("text_input", props: { placeholder: "Enter Artist Name" }) %>
|
4
5
|
<%= pb_rails("select", props: {
|
5
6
|
blank_selection: "Genre",
|
6
7
|
options: [
|
@@ -16,4 +17,19 @@
|
|
16
17
|
]
|
17
18
|
}) %>
|
18
19
|
<% end %>
|
20
|
+
<br>
|
21
|
+
<br>
|
22
|
+
<%= pb_rails("form_group") do %>
|
23
|
+
<%= pb_rails("select", props: {
|
24
|
+
blank_selection: "Phone",
|
25
|
+
options: [
|
26
|
+
{ value: "Cell" },
|
27
|
+
{ value: "Work" },
|
28
|
+
{ value: "Home" },
|
29
|
+
]
|
30
|
+
}) %>
|
31
|
+
<%= pb_rails("phone_number_input", props: {
|
32
|
+
id: "phone"
|
33
|
+
}) %>
|
34
|
+
<% end %>
|
19
35
|
</div>
|