playbook_ui 14.16.0.pre.alpha.PLAY1938completetooltipfloatinguitransition6830 → 14.16.0.pre.alpha.play1958formgrouperrorborder6922
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +34 -2
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +86 -84
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +10 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows.html.erb +39 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows.html.erb +33 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_no_subrows_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_selectable_rows_rails.md +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/index.js +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +4 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +19 -9
- data/app/pb_kits/playbook/pb_advanced_table/table_header.rb +38 -1
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +49 -37
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +39 -0
- data/app/pb_kits/playbook/pb_button/_button.scss +5 -5
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +34 -34
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +2 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +16 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +0 -11
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +0 -7
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_inline_styles.scss +28 -24
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +3 -4
- data/app/pb_kits/playbook/pb_filter/Filter/SortMenu.tsx +2 -3
- data/app/pb_kits/playbook/pb_form/pb_form_validation.js +1 -1
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +5 -0
- data/app/pb_kits/playbook/pb_lightbox/hooks/useVisibility.js +1 -1
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +2 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.tsx +29 -11
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.html.erb +4 -4
- data/app/pb_kits/playbook/pb_rich_text_editor/rich_text_editor.rb +2 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +4 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless.jsx +50 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_borderless_react.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating.jsx +59 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_header_style_floating_react.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_table/styles/_headers.scss +76 -0
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +11 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +11 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +5 -0
- data/app/pb_kits/playbook/pb_table/table.test.js +17 -0
- data/app/pb_kits/playbook/pb_tooltip/index.js +1 -1
- data/app/pb_kits/playbook/pb_typeahead/index.ts +2 -2
- data/app/pb_kits/playbook/utilities/globalProps.ts +1 -1
- data/app/pb_kits/playbook/utilities/object.test.js +149 -1
- data/app/pb_kits/playbook/utilities/object.ts +124 -42
- data/dist/chunks/_typeahead-Djo6qCne.js +22 -0
- data/dist/chunks/_weekday_stacked-DIIHW0OV.js +45 -0
- data/dist/chunks/{lib-BgzBJfYr.js → lib-BGzBzFZX.js} +3 -3
- data/dist/chunks/{pb_form_validation-CJD-PyIw.js → pb_form_validation-BvNy9Bd6.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +16 -8
- data/dist/chunks/_typeahead-BEyzuDQy.js +0 -22
- data/dist/chunks/_weekday_stacked-BWYgED9z.js +0 -45
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows_no_subrows.md → _advanced_table_selectable_rows_no_subrows_react.md} +0 -0
- /data/app/pb_kits/playbook/pb_advanced_table/docs/{_advanced_table_selectable_rows.md → _advanced_table_selectable_rows_react.md} +0 -0
|
@@ -1,48 +1,60 @@
|
|
|
1
1
|
<%= pb_content_tag(:tr) do %>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<% has_separate_checkbox = object.selectable_rows && object.enable_toggle_expansion == "none" %>
|
|
3
|
+
<% if has_separate_checkbox %>
|
|
4
|
+
<%= object.render_checkbox_cell %>
|
|
5
|
+
<% end %>
|
|
6
|
+
<% object.column_definitions.each_with_index do |column, index| %>
|
|
7
|
+
<% next unless column[:accessor].present? %>
|
|
8
|
+
<%= pb_rails("table/table_cell", props: { classname:object.td_classname(column, index)}) do %>
|
|
9
|
+
<%= pb_rails("flex", props:{ align: "center", justify: index.zero? ? "start" : "end", classname: object.loading ? "loading-cell" : "" }) do %>
|
|
10
|
+
<% if collapsible_trail && index.zero? %>
|
|
11
|
+
<% (1..depth).each do |i| %>
|
|
12
|
+
<% additional_offset = i > 1 ? (i - 1) * 0.25 : 0 %>
|
|
13
|
+
<% left_offset = i * 1.0 + additional_offset %>
|
|
14
|
+
<div class="collapsible-trail" style="left: <%= left_offset %>em"></div>
|
|
12
15
|
<% end %>
|
|
16
|
+
<% end %>
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<%= pb_rails("icon", props: { id: "advanced-table_close_icon", display: "none", icon: "circle-play", cursor: "pointer", rotation: 90 }) %>
|
|
23
|
-
</button>
|
|
18
|
+
<div style="padding-left: <%= depth * 1.25 %>em">
|
|
19
|
+
<%= pb_rails("flex", props:{align: "center", column_gap: "xs"}) do %>
|
|
20
|
+
<% if index.zero? %>
|
|
21
|
+
<% has_integrated_checkbox = object.selectable_rows && object.enable_toggle_expansion != "none" %>
|
|
22
|
+
<% if has_integrated_checkbox %>
|
|
23
|
+
<%= pb_rails("flex/flex_item", props: { padding_right: "xs" }) do %>
|
|
24
|
+
<%= object.render_row_checkbox %>
|
|
25
|
+
<% end %>
|
|
24
26
|
<% end %>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<%=
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
<% if object.row[:children].present? %>
|
|
28
|
+
<button
|
|
29
|
+
id="<%= "#{object.id}_#{object.row.object_id}" %>"
|
|
30
|
+
class="gray-icon expand-toggle-icon"
|
|
31
|
+
data-advanced-table="true">
|
|
32
|
+
<%= pb_rails("icon", props: { id: "advanced-table_open_icon", icon: "circle-play", cursor: "pointer" }) %>
|
|
33
|
+
<%= pb_rails("icon", props: { id: "advanced-table_close_icon", display: "none", icon: "circle-play", cursor: "pointer", rotation: 90 }) %>
|
|
34
|
+
</button>
|
|
35
|
+
<% end %>
|
|
36
|
+
<% end %>
|
|
37
|
+
<%= pb_rails("flex/flex_item", props:{padding_left: index.zero? && (object.row[:children].present? || has_integrated_checkbox) ? "none" : "xs"}) do %>
|
|
38
|
+
<% if column[:custom_renderer].present? %>
|
|
39
|
+
<%= raw(column[:custom_renderer].call(object.row, custom_renderer_value(column, index))) %>
|
|
40
|
+
<% elsif index.zero? %>
|
|
41
|
+
<% if object.depth.zero? %>
|
|
42
|
+
<%= object.row[column[:accessor].to_sym] %>
|
|
43
|
+
<% else %>
|
|
44
|
+
<% object.depth_accessors.each_with_index do |item, accessor_index| %>
|
|
45
|
+
<% if object.depth - 1 == accessor_index %>
|
|
46
|
+
<% key = item.to_sym %>
|
|
47
|
+
<%= object.row[key] %>
|
|
37
48
|
<% end %>
|
|
38
49
|
<% end %>
|
|
39
|
-
<% else %>
|
|
40
|
-
<%= object.row[column[:accessor].to_sym] %>
|
|
41
50
|
<% end %>
|
|
51
|
+
<% else %>
|
|
52
|
+
<%= object.row[column[:accessor].to_sym] %>
|
|
42
53
|
<% end %>
|
|
43
54
|
<% end %>
|
|
44
|
-
|
|
45
|
-
|
|
55
|
+
<% end %>
|
|
56
|
+
</div>
|
|
46
57
|
<% end %>
|
|
47
58
|
<% end %>
|
|
48
|
-
<% end %>
|
|
59
|
+
<% end %>
|
|
60
|
+
<% end %>
|
|
@@ -20,6 +20,13 @@ module Playbook
|
|
|
20
20
|
default: "scroll"
|
|
21
21
|
prop :is_pinned_left, type: Playbook::Props::Boolean,
|
|
22
22
|
default: false
|
|
23
|
+
prop :selectable_rows, type: Playbook::Props::Boolean,
|
|
24
|
+
default: false
|
|
25
|
+
prop :row_id, type: Playbook::Props::String,
|
|
26
|
+
default: ""
|
|
27
|
+
prop :enable_toggle_expansion, type: Playbook::Props::Enum,
|
|
28
|
+
values: %w[all header none],
|
|
29
|
+
default: "header"
|
|
23
30
|
|
|
24
31
|
def data
|
|
25
32
|
Hash(prop(:data)).merge(table_data_attributes)
|
|
@@ -42,6 +49,38 @@ module Playbook
|
|
|
42
49
|
end.compact
|
|
43
50
|
end
|
|
44
51
|
|
|
52
|
+
# Selectable Rows No Subrows - checkboxes in their own first cell
|
|
53
|
+
def render_checkbox_cell
|
|
54
|
+
if selectable_rows
|
|
55
|
+
pb_rails("table/table_cell", props: {
|
|
56
|
+
classname: "checkbox-cell",
|
|
57
|
+
}) do
|
|
58
|
+
pb_rails("checkbox", props: {
|
|
59
|
+
id: "select-row-#{row_id || row.object_id}",
|
|
60
|
+
name: "select-row-#{row_id || row.object_id}",
|
|
61
|
+
data: {
|
|
62
|
+
row_id: row_id || row.object_id.to_s,
|
|
63
|
+
action: "click->pb-advanced-table#toggleRowSelection",
|
|
64
|
+
},
|
|
65
|
+
})
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Selectable Rows w/ Subrows - checkboxes part of toggleable first cell
|
|
71
|
+
def render_row_checkbox
|
|
72
|
+
if selectable_rows
|
|
73
|
+
pb_rails("checkbox", props: {
|
|
74
|
+
id: "select-row-#{row_id || row.object_id}",
|
|
75
|
+
name: "select-row-#{row_id || row.object_id}",
|
|
76
|
+
data: {
|
|
77
|
+
row_id: row_id || row.object_id.to_s,
|
|
78
|
+
action: "click->pb-advanced-table#toggleRowSelection",
|
|
79
|
+
},
|
|
80
|
+
})
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
45
84
|
private
|
|
46
85
|
|
|
47
86
|
def custom_renderer_value(column, index)
|
|
@@ -63,11 +63,6 @@ $pb_button_sizes: (
|
|
|
63
63
|
color: $text_lt_lighter;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
// Disabled =================
|
|
67
|
-
&[class*=_disabled] {
|
|
68
|
-
@include pb_button_disabled;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
66
|
// Block ====================
|
|
72
67
|
&[class*=_block] {
|
|
73
68
|
@include pb_button_block;
|
|
@@ -83,6 +78,11 @@ $pb_button_sizes: (
|
|
|
83
78
|
@include pb_button_danger;
|
|
84
79
|
}
|
|
85
80
|
|
|
81
|
+
// Disabled =================
|
|
82
|
+
&[class*=_disabled] {
|
|
83
|
+
@include pb_button_disabled;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
86
|
// Dark Variants =============
|
|
87
87
|
&.dark {
|
|
88
88
|
&[class*=_primary] {
|
|
@@ -106,41 +106,41 @@ const DatePicker = (props: DatePickerProps): React.ReactElement => {
|
|
|
106
106
|
const inputAriaProps = buildAriaProps(inputAria)
|
|
107
107
|
const inputDataProps = buildDataProps(inputData)
|
|
108
108
|
|
|
109
|
-
useEffect(() => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}, initializeOnce ? [] : undefined)
|
|
109
|
+
useEffect(() => {
|
|
110
|
+
datePickerHelper({
|
|
111
|
+
allowInput,
|
|
112
|
+
customQuickPickDates,
|
|
113
|
+
defaultDate,
|
|
114
|
+
disableDate,
|
|
115
|
+
disableRange,
|
|
116
|
+
disableWeekdays,
|
|
117
|
+
enableTime,
|
|
118
|
+
format,
|
|
119
|
+
hideIcon,
|
|
120
|
+
inLine,
|
|
121
|
+
maxDate,
|
|
122
|
+
minDate,
|
|
123
|
+
mode,
|
|
124
|
+
onChange,
|
|
125
|
+
onClose,
|
|
126
|
+
pickerId,
|
|
127
|
+
plugins,
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
129
|
+
// @ts-ignore
|
|
130
|
+
position,
|
|
131
|
+
positionElement,
|
|
132
|
+
selectionType,
|
|
133
|
+
showTimezone,
|
|
134
|
+
staticPosition,
|
|
135
|
+
thisRangesEndToday,
|
|
136
|
+
yearRange,
|
|
137
|
+
required: false,
|
|
138
|
+
}, scrollContainer)
|
|
139
|
+
}, initializeOnce ? [] : undefined)
|
|
140
140
|
const filteredProps = {...props}
|
|
141
141
|
if (filteredProps.marginBottom === undefined) {
|
|
142
142
|
filteredProps.marginBottom = "sm"
|
|
143
|
-
}
|
|
143
|
+
}
|
|
144
144
|
delete filteredProps?.position
|
|
145
145
|
|
|
146
146
|
const classes = classnames(
|
|
@@ -221,7 +221,7 @@ useEffect(() => {
|
|
|
221
221
|
{hideIcon && inLine ?
|
|
222
222
|
<div>
|
|
223
223
|
<div
|
|
224
|
-
className={iconWrapperClass()}
|
|
224
|
+
className={`${iconWrapperClass()} date-picker-inline-icon-plus`}
|
|
225
225
|
id={`${pickerId}-icon-plus`}
|
|
226
226
|
>
|
|
227
227
|
<Icon
|
|
@@ -230,7 +230,7 @@ useEffect(() => {
|
|
|
230
230
|
/>
|
|
231
231
|
</div>
|
|
232
232
|
<div
|
|
233
|
-
className={iconWrapperClass()}
|
|
233
|
+
className={`${iconWrapperClass()} date-picker-inline-angle-down`}
|
|
234
234
|
id={`${pickerId}-angle-down`}
|
|
235
235
|
>
|
|
236
236
|
<Icon
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<% if object.hide_icon && object.inline %>
|
|
45
45
|
<!-- Plus Icon -->
|
|
46
46
|
<div
|
|
47
|
-
class="<%= object.icon_wrapper_class %>"
|
|
47
|
+
class="<%= object.icon_wrapper_class %> date-picker-inline-icon-plus"
|
|
48
48
|
id="<%= object.picker_id %>-icon-plus"
|
|
49
49
|
>
|
|
50
50
|
<%= pb_rails("icon", props: {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
<!-- Angle Down Icon -->
|
|
57
57
|
<div
|
|
58
|
-
class="<%= object.icon_wrapper_class %>"
|
|
58
|
+
class="<%= object.icon_wrapper_class %> date-picker-inline-angle-down"
|
|
59
59
|
id="<%= object.picker_id %>-angle-down"
|
|
60
60
|
>
|
|
61
61
|
<%= pb_rails("icon", props: {
|
|
@@ -174,6 +174,21 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT
|
|
|
174
174
|
yearInput.value = fp.currentYear?.toString()
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
const handleDatePickerChange = (fp: Instance, selectedDates: Date[]) => {
|
|
178
|
+
const inputEl = fp.input
|
|
179
|
+
|
|
180
|
+
if (inputEl) {
|
|
181
|
+
const inlineDatePickerElem = inputEl.closest('.inline-date-picker')
|
|
182
|
+
if (inlineDatePickerElem) {
|
|
183
|
+
if (selectedDates && selectedDates.length > 0) {
|
|
184
|
+
inlineDatePickerElem.classList.add('show-angle-down-icon')
|
|
185
|
+
} else {
|
|
186
|
+
inlineDatePickerElem.classList.remove('show-angle-down-icon')
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
177
192
|
// ===========================================================
|
|
178
193
|
// | Flatpickr initializer w/ config |
|
|
179
194
|
// ===========================================================
|
|
@@ -204,6 +219,7 @@ const datePickerHelper = (config: DatePickerConfig, scrollContainer: string | HT
|
|
|
204
219
|
onClose(selectedDates, dateStr)
|
|
205
220
|
}],
|
|
206
221
|
onChange: [(selectedDates, dateStr, fp) => {
|
|
222
|
+
handleDatePickerChange(fp, selectedDates)
|
|
207
223
|
yearChangeHook(fp)
|
|
208
224
|
onChange(dateStr, selectedDates)
|
|
209
225
|
}],
|
|
@@ -4,14 +4,3 @@
|
|
|
4
4
|
inline: true,
|
|
5
5
|
picker_id: "date-picker-inline"
|
|
6
6
|
}) %>
|
|
7
|
-
|
|
8
|
-
<%= javascript_tag do %>
|
|
9
|
-
window.addEventListener("DOMContentLoaded", (event) => {
|
|
10
|
-
const fpInline = document.querySelector("#date-picker-inline")._flatpickr
|
|
11
|
-
<!-- Display the angle-down icon when a date has been selected -->
|
|
12
|
-
const showAngleDownHandler = () => {
|
|
13
|
-
document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
|
|
14
|
-
}
|
|
15
|
-
fpInline.config.onChange.push(showAngleDownHandler)
|
|
16
|
-
})
|
|
17
|
-
<% end %>
|
|
@@ -3,19 +3,12 @@ import React from 'react'
|
|
|
3
3
|
import DatePicker from '../_date_picker'
|
|
4
4
|
|
|
5
5
|
const DatePickerInline = (props) => {
|
|
6
|
-
const showAngleDownHandler = (dateSelected) => {
|
|
7
|
-
if (dateSelected) {
|
|
8
|
-
document.querySelector('.inline-date-picker').classList.add('show-angle-down-icon')
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
6
|
return (
|
|
13
7
|
<div>
|
|
14
8
|
<DatePicker
|
|
15
9
|
className="inline-date-picker"
|
|
16
10
|
hideIcon
|
|
17
11
|
inLine
|
|
18
|
-
onChange={showAngleDownHandler}
|
|
19
12
|
pickerId="date-picker-inline"
|
|
20
13
|
{...props}
|
|
21
14
|
/>
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
opacity: 1;
|
|
15
15
|
}
|
|
16
16
|
&:not(:hover) {
|
|
17
|
-
|
|
17
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
18
18
|
svg {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
23
23
|
svg {
|
|
24
24
|
color: $slate;
|
|
25
25
|
display: inline-block;
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper .text_input .placeholder {
|
|
34
34
|
color: $primary;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
37
37
|
svg {
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
42
42
|
svg {
|
|
43
43
|
display: inline-block;
|
|
44
44
|
color: $primary;
|
|
@@ -47,32 +47,34 @@
|
|
|
47
47
|
}
|
|
48
48
|
&.show-angle-down-icon {
|
|
49
49
|
&:not(:hover) {
|
|
50
|
-
|
|
50
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
51
51
|
svg {
|
|
52
52
|
display: inline-block;
|
|
53
53
|
color: $text_lt_light;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
57
57
|
svg {
|
|
58
58
|
display: none;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
63
63
|
svg {
|
|
64
64
|
display: none;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
68
68
|
svg {
|
|
69
69
|
display: inline-block;
|
|
70
70
|
color: $primary;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
.date_picker_input.flatpickr-input,
|
|
75
|
+
.date_picker_input.flatpickr-input .active,
|
|
76
|
+
.text_input.flatpickr-input,
|
|
77
|
+
.text_input.flatpickr-input .active {
|
|
76
78
|
border: none;
|
|
77
79
|
padding: 5px 5px 5px 10px;
|
|
78
80
|
background-color: #FFF;
|
|
@@ -82,8 +84,8 @@
|
|
|
82
84
|
box-shadow: none;
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
.date-picker-inline-angle-down.cal_icon_wrapper,
|
|
88
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
87
89
|
height: 33px;
|
|
88
90
|
border: none;
|
|
89
91
|
}
|
|
@@ -96,12 +98,12 @@
|
|
|
96
98
|
[class^=pb_date_picker_kit].dark {
|
|
97
99
|
&.inline-date-picker {
|
|
98
100
|
&:not(:hover) {
|
|
99
|
-
|
|
101
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
100
102
|
svg {
|
|
101
103
|
display: none;
|
|
102
104
|
}
|
|
103
105
|
}
|
|
104
|
-
|
|
106
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
105
107
|
svg {
|
|
106
108
|
display: inline-block;
|
|
107
109
|
color: $white;
|
|
@@ -115,12 +117,12 @@
|
|
|
115
117
|
[class^="pb_text_input_kit"] .text_input_wrapper .flatpickr-wrapper .text_input .placeholder {
|
|
116
118
|
color: $white;
|
|
117
119
|
}
|
|
118
|
-
|
|
120
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
119
121
|
svg {
|
|
120
122
|
display: none;
|
|
121
123
|
}
|
|
122
124
|
}
|
|
123
|
-
|
|
125
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
124
126
|
svg {
|
|
125
127
|
display: inline-block;
|
|
126
128
|
color: $white;
|
|
@@ -129,32 +131,34 @@
|
|
|
129
131
|
}
|
|
130
132
|
&.show-angle-down-icon {
|
|
131
133
|
&:not(:hover) {
|
|
132
|
-
|
|
134
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
133
135
|
svg {
|
|
134
136
|
display: inline-block;
|
|
135
137
|
color: $white;
|
|
136
138
|
}
|
|
137
139
|
}
|
|
138
|
-
|
|
140
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
139
141
|
svg {
|
|
140
142
|
display: none;
|
|
141
143
|
}
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
|
-
|
|
146
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
145
147
|
svg {
|
|
146
148
|
display: none;
|
|
147
149
|
}
|
|
148
150
|
}
|
|
149
|
-
|
|
151
|
+
.date-picker-inline-angle-down.cal_icon_wrapper {
|
|
150
152
|
svg {
|
|
151
153
|
display: inline-block;
|
|
152
154
|
color: $white;
|
|
153
155
|
}
|
|
154
156
|
}
|
|
155
157
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
.date_picker_input.flatpickr-input,
|
|
159
|
+
.date_picker_input.flatpickr-input .active,
|
|
160
|
+
.text_input.flatpickr-input,
|
|
161
|
+
.text_input.flatpickr-input .active {
|
|
158
162
|
background-color: rgba($white,.10);
|
|
159
163
|
border: none;
|
|
160
164
|
padding: 5px 5px 5px 10px;
|
|
@@ -164,8 +168,8 @@
|
|
|
164
168
|
box-shadow: none;
|
|
165
169
|
}
|
|
166
170
|
}
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
.date-picker-inline-angle-down.cal_icon_wrapper,
|
|
172
|
+
.date-picker-inline-icon-plus.cal_icon_wrapper {
|
|
169
173
|
height: 33px;
|
|
170
174
|
border: none;
|
|
171
175
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { map } from '
|
|
3
|
-
import { isEmpty, omitBy } from '../../utilities/object'
|
|
2
|
+
import { isEmpty, omitBy, map } from '../../utilities/object'
|
|
4
3
|
|
|
5
4
|
import Body from '../../pb_body/_body'
|
|
6
5
|
import Caption from '../../pb_caption/_caption'
|
|
@@ -46,12 +45,12 @@ const CurrentFilters = ({ dark, filters }: CurrentFiltersProps): React.ReactElem
|
|
|
46
45
|
dark={dark}
|
|
47
46
|
size={4}
|
|
48
47
|
tag="h4"
|
|
49
|
-
text={name}
|
|
48
|
+
text={`${name}`}
|
|
50
49
|
/> :
|
|
51
50
|
<div>
|
|
52
51
|
<Caption
|
|
53
52
|
dark={dark}
|
|
54
|
-
text={name}
|
|
53
|
+
text={`${name}`}
|
|
55
54
|
/>
|
|
56
55
|
<Title
|
|
57
56
|
dark={dark}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import { map } from
|
|
3
|
-
import { find, partial } from '../../utilities/object'
|
|
2
|
+
import { find, partial, map } from '../../utilities/object'
|
|
4
3
|
|
|
5
4
|
import Button from '../../pb_button/_button'
|
|
6
5
|
import Icon from '../../pb_icon/_icon'
|
|
@@ -27,7 +26,7 @@ const directionIcon = (dir: Direction) => (
|
|
|
27
26
|
|
|
28
27
|
const renderOptions = (options: SortOptions, value: SortValue[], handleChange: (arg0: SortValue) => void) => (
|
|
29
28
|
map(options, (label, name) => {
|
|
30
|
-
const next = nextValue(value, name)
|
|
29
|
+
const next = nextValue(value, String(name))
|
|
31
30
|
return (
|
|
32
31
|
<ListItem key={`option-${next.name}-${next.dir}`}>
|
|
33
32
|
<Button
|
|
@@ -7,11 +7,12 @@ import {
|
|
|
7
7
|
buildDataProps,
|
|
8
8
|
buildHtmlProps,
|
|
9
9
|
} from "../utilities/props";
|
|
10
|
+
import { cloneDeep } from "../utilities/object";
|
|
11
|
+
|
|
10
12
|
import Icon from "../pb_icon/_icon";
|
|
11
13
|
import FormPill from "../pb_form_pill/_form_pill";
|
|
12
14
|
import Body from "../pb_body/_body";
|
|
13
15
|
import Caption from "../pb_caption/_caption";
|
|
14
|
-
import { cloneDeep } from "lodash";
|
|
15
16
|
import MultiLevelSelectOptions from "./multi_level_select_options";
|
|
16
17
|
import MultiLevelSelectContext from "./context";
|
|
17
18
|
|