playbook_ui 14.4.0.pre.alpha.stephenagreerpatch13910 → 14.4.0.pre.rc.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/_playbook.scss +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/SortIconButton.tsx +4 -23
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -1
- data/app/pb_kits/playbook/pb_button/_button.tsx +2 -6
- data/app/pb_kits/playbook/pb_collapsible/_helper_functions.ts +0 -4
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +5 -17
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -14
- data/app/pb_kits/playbook/pb_contact/contact.rb +0 -4
- data/app/pb_kits/playbook/pb_contact/contact.test.js +1 -1
- data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +6 -2
- data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +7 -2
- data/app/pb_kits/playbook/pb_date_picker/_date_picker.tsx +3 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +0 -4
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -6
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +3 -2
- data/app/pb_kits/playbook/pb_date_picker/sass_partials/_header_styles.scss +2 -6
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +0 -2
- data/app/pb_kits/playbook/pb_dialog/dialog_header.html.erb +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.html.erb +2 -10
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_height.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_max_width.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb +1 -5
- data/app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb +1 -5
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +23 -245
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +1 -1
- data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -1
- data/app/pb_kits/playbook/pb_gantt_chart/_gantt_chart.tsx +0 -3
- data/app/pb_kits/playbook/pb_icon/icon.rb +1 -1
- data/app/pb_kits/playbook/pb_map/_map_controls.tsx +1 -7
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +5 -20
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -4
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.scss +21 -97
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.test.js +0 -166
- data/app/pb_kits/playbook/pb_multiple_users_stacked/_multiple_users_stacked.tsx +6 -45
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +2 -6
- data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.rb +1 -21
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +1 -12
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change_react.md +1 -3
- data/app/pb_kits/playbook/pb_passphrase/_passphrase.tsx +2 -10
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.html.erb +13 -14
- data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +4 -4
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +32 -41
- data/app/pb_kits/playbook/pb_radio/docs/{_radio_custom_children.jsx → _radio_children.jsx} +2 -5
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_radio/radio.html.erb +13 -35
- data/app/pb_kits/playbook/pb_radio/radio.rb +1 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/TipTap/ToolbarDropdown.tsx +5 -12
- data/app/pb_kits/playbook/pb_select/_select.tsx +2 -5
- data/app/pb_kits/playbook/pb_select/select.html.erb +1 -1
- data/app/pb_kits/playbook/pb_select/select.rb +0 -4
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +1 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.html.erb +1 -0
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +13 -17
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +1 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +1 -18
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +23 -17
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.html.erb +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_margin_bottom.jsx +1 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +3 -7
- data/app/pb_kits/playbook/tokens/_colors.scss +0 -2
- data/app/pb_kits/playbook/utilities/icons/allicons.tsx +13 -136
- data/dist/chunks/_typeahead-es44Ih6G.js +22 -0
- data/dist/chunks/_weekday_stacked-DWJJPUPQ.js +45 -0
- data/dist/chunks/lib-D9uVVKnh.js +16 -0
- data/dist/chunks/{pb_form_validation-D9zkwt2b.js → pb_form_validation-u2wnZ3oe.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +1 -3
- 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/pagination_renderer.rb +2 -10
- data/lib/playbook/version.rb +2 -2
- metadata +7 -40
- data/app/pb_kits/playbook/pb_drawer/_close_icon.tsx +0 -25
- data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -465
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +0 -195
- data/app/pb_kits/playbook/pb_drawer/_drawer_context.tsx +0 -3
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_borders.jsx +0 -117
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_breakpoints.jsx +0 -43
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_default.jsx +0 -63
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_overlay.jsx +0 -55
- data/app/pb_kits/playbook/pb_drawer/docs/_drawer_sizes.jsx +0 -113
- data/app/pb_kits/playbook/pb_drawer/docs/example.yml +0 -12
- data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -5
- data/app/pb_kits/playbook/pb_drawer/drawer.html.erb +0 -12
- data/app/pb_kits/playbook/pb_drawer/drawer.rb +0 -8
- data/app/pb_kits/playbook/pb_drawer/drawer.test.jsx +0 -77
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +0 -117
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +0 -227
- data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +0 -72
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +0 -91
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +0 -1
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.html.erb +0 -73
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_bubble.jsx +0 -86
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.html.erb +0 -50
- data/app/pb_kits/playbook/pb_radio/docs/_radio_custom_children.md +0 -1
- data/app/pb_kits/playbook/pb_radio/index.js +0 -17
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +0 -31
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +0 -26
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +0 -1
- data/app/pb_kits/playbook/utilities/icons/angle-down.svg +0 -3
- data/app/pb_kits/playbook/utilities/icons/envelope.svg +0 -3
- data/dist/chunks/_typeahead-BYw0HEgO.js +0 -22
- data/dist/chunks/_weekday_stacked-DY64Tj7E.js +0 -45
- data/dist/chunks/lib-CEpcaI8y.js +0 -29
@@ -7,7 +7,10 @@
|
|
7
7
|
|
8
8
|
$selector: ".pb_form_pill";
|
9
9
|
$pb_form_pill_height: 27px;
|
10
|
-
$form_pill_colors:
|
10
|
+
$form_pill_colors: (
|
11
|
+
primary: map-get($status_color_text, "primary"),
|
12
|
+
neutral: map-get($status_color_text, "neutral"),
|
13
|
+
);
|
11
14
|
|
12
15
|
|
13
16
|
[class^=pb_form_pill_kit] {
|
@@ -33,18 +36,6 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
33
36
|
color: $text_lt_default;
|
34
37
|
}
|
35
38
|
}
|
36
|
-
@if ($color_name == "warning") {
|
37
|
-
background-color: mix($yellow, $card_light, 10%);
|
38
|
-
.pb_form_pill_icon {
|
39
|
-
color: $yellow;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
@if ($color_name == "accessories") {
|
43
|
-
background-color: mix($product_8_background, $card_light, 10%);
|
44
|
-
.pb_form_pill_icon {
|
45
|
-
color: $product_8_background;
|
46
|
-
}
|
47
|
-
}
|
48
39
|
transition: background-color 0.2s ease;
|
49
40
|
box-shadow: none;
|
50
41
|
@media (hover:hover) {
|
@@ -54,24 +45,12 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
54
45
|
background-color: mix($neutral, $card_light, 20%);
|
55
46
|
border: 1px solid $border_light;
|
56
47
|
}
|
57
|
-
@if ($color_name == "warning") {
|
58
|
-
background-color: mix($yellow, $card_light, 20%);
|
59
|
-
}
|
60
|
-
@if ($color_name == "accessories") {
|
61
|
-
background-color: mix($product_8_background, $card_light, 20%);
|
62
|
-
}
|
63
48
|
}
|
64
49
|
&:active {
|
65
50
|
background-color: mix($color_value, $card_light, 30%);
|
66
51
|
@if ($color_name == "neutral") {
|
67
52
|
background-color: mix($neutral, $card_light, 30%);
|
68
53
|
}
|
69
|
-
@if ($color_name == "warning") {
|
70
|
-
background-color: mix($yellow, $card_light, 30%);
|
71
|
-
}
|
72
|
-
@if ($color_name == "accessories") {
|
73
|
-
background-color: mix($product_8_background, $card_light, 30%);
|
74
|
-
}
|
75
54
|
}
|
76
55
|
}
|
77
56
|
#{$selector}_text {
|
@@ -79,9 +58,6 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
79
58
|
@if ($color_name == "neutral") {
|
80
59
|
color: $text_lt_default;
|
81
60
|
}
|
82
|
-
@if ($color_name == "warning") {
|
83
|
-
color: $yellow;
|
84
|
-
}
|
85
61
|
padding: 0 $space-xs;
|
86
62
|
}
|
87
63
|
#{$selector}_close {
|
@@ -100,23 +76,6 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
100
76
|
background-color: mix($neutral, $card_light, 60%);
|
101
77
|
}
|
102
78
|
}
|
103
|
-
@if ($color_name == "warning") {
|
104
|
-
color: $yellow;
|
105
|
-
}
|
106
|
-
&:hover {
|
107
|
-
background-color: mix($color_value, $card_light, 40%);
|
108
|
-
@if ($color_name == "warning") {
|
109
|
-
background-color: mix($yellow, $card_light, 40%);
|
110
|
-
}
|
111
|
-
}
|
112
|
-
@if ($color_name == "accessories") {
|
113
|
-
color: $product_8_background;
|
114
|
-
}
|
115
|
-
&:hover {
|
116
|
-
@if ($color_name == "accessories") {
|
117
|
-
background-color: mix($product_8_background, $card_light, 40%);
|
118
|
-
}
|
119
|
-
}
|
120
79
|
}
|
121
80
|
#{$selector}_tag {
|
122
81
|
color: $color_value;
|
@@ -124,9 +83,6 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
124
83
|
@if ($color_name == "neutral") {
|
125
84
|
color: $text_lt_default;
|
126
85
|
}
|
127
|
-
@if ($color_name == "warning") {
|
128
|
-
color: $yellow;
|
129
|
-
}
|
130
86
|
}
|
131
87
|
}
|
132
88
|
}
|
@@ -176,23 +132,25 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
176
132
|
}
|
177
133
|
&.dark {
|
178
134
|
@each $color_name, $color_value in $form_pill_colors {
|
135
|
+
// In dark mode, the base patterns below are needed for the next tickets for success, warning, error, info.
|
136
|
+
// Primary and Neutral are exceptions to the general rule in the handoff
|
179
137
|
&[class*=_#{$color_name}] {
|
180
|
-
|
181
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
182
|
-
|
183
|
-
}
|
184
|
-
.pb_form_pill_close {
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
}
|
190
|
-
&:hover {
|
191
|
-
|
192
|
-
}
|
193
|
-
&:active {
|
194
|
-
|
195
|
-
}
|
138
|
+
// background-color: mix($color_value, $card_dark, 10%);
|
139
|
+
// .pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
140
|
+
// color: $color_name;
|
141
|
+
// }
|
142
|
+
// .pb_form_pill_close {
|
143
|
+
// color: $color_name;
|
144
|
+
// &:hover {
|
145
|
+
// background-color: mix($color_value, $card_dark, 40%);
|
146
|
+
// }
|
147
|
+
// }
|
148
|
+
// &:hover {
|
149
|
+
// background-color: mix($color_value, $card_dark, 20%);
|
150
|
+
// }
|
151
|
+
// &:active {
|
152
|
+
// background-color: mix($color_value, $card_dark, 30%);
|
153
|
+
// }
|
196
154
|
@if ($color_name == "neutral") {
|
197
155
|
background-color: transparent;
|
198
156
|
border: 1px solid $border_dark;
|
@@ -227,192 +185,12 @@ $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $produc
|
|
227
185
|
}
|
228
186
|
}
|
229
187
|
&:hover {
|
230
|
-
background-color: mix($active_dark, $card_dark,
|
188
|
+
background-color: mix($active_dark, $card_dark, 20px);
|
231
189
|
}
|
232
190
|
&:active {
|
233
191
|
background-color: mix($active_dark, $card_dark, 30%);
|
234
192
|
}
|
235
193
|
}
|
236
|
-
@if ($color_name == "data_1") {
|
237
|
-
background-color: mix($active_dark, $card_dark, 10%);
|
238
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
239
|
-
color: mix($active_dark, $card_light, 90%);
|
240
|
-
}
|
241
|
-
.pb_form_pill_close {
|
242
|
-
color: mix($active_dark, $card_light, 90%);
|
243
|
-
&:hover {
|
244
|
-
background-color: mix($active_dark, $card_dark, 40%);
|
245
|
-
}
|
246
|
-
}
|
247
|
-
&:hover {
|
248
|
-
background-color: mix($active_dark, $card_dark, 20%);
|
249
|
-
}
|
250
|
-
&:active {
|
251
|
-
background-color: mix($data_1, $card_dark, 30%);
|
252
|
-
}
|
253
|
-
}
|
254
|
-
@if ($color_name == "data_6") {
|
255
|
-
background-color: mix($data_6, $card_dark, 10%);
|
256
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
257
|
-
color: $text_dk_light;
|
258
|
-
}
|
259
|
-
.pb_form_pill_close {
|
260
|
-
color: $text_dk_light;
|
261
|
-
&:hover {
|
262
|
-
background-color: mix($text_dk_light, $card_dark, 40%);
|
263
|
-
}
|
264
|
-
}
|
265
|
-
&:hover {
|
266
|
-
background-color: mix($data_6, $card_dark, 20%);
|
267
|
-
}
|
268
|
-
&:active {
|
269
|
-
background-color: mix($data_6, $card_dark, 30%);
|
270
|
-
}
|
271
|
-
}
|
272
|
-
@if ($color_name == "windows") {
|
273
|
-
background-color: mix($product_1_highlight, $card_dark, 10%);
|
274
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
275
|
-
color: $product_1_highlight;
|
276
|
-
}
|
277
|
-
.pb_form_pill_close {
|
278
|
-
color: $product_1_highlight;
|
279
|
-
&:hover {
|
280
|
-
background-color: mix($product_1_highlight, $card_dark, 40%);
|
281
|
-
}
|
282
|
-
}
|
283
|
-
&:hover {
|
284
|
-
background-color: mix($product_1_highlight, $card_dark, 20%);
|
285
|
-
}
|
286
|
-
&:active {
|
287
|
-
background-color: mix($product_1_highlight, $card_dark, 30%);
|
288
|
-
}
|
289
|
-
}
|
290
|
-
@if ($color_name == "siding") {
|
291
|
-
background-color: mix($product_2_highlight, $card_dark, 10%);
|
292
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
293
|
-
color: $product_2_highlight;
|
294
|
-
}
|
295
|
-
.pb_form_pill_close {
|
296
|
-
color: $product_2_highlight;
|
297
|
-
&:hover {
|
298
|
-
background-color: mix($product_2_highlight, $card_dark, 40%);
|
299
|
-
}
|
300
|
-
}
|
301
|
-
&:hover {
|
302
|
-
background-color: mix($product_2_highlight, $card_dark, 20%);
|
303
|
-
}
|
304
|
-
&:active {
|
305
|
-
background-color: mix($product_2_highlight, $card_dark, 30%);
|
306
|
-
}
|
307
|
-
}
|
308
|
-
@if ($color_name == "roofing") {
|
309
|
-
background-color: mix($product_5_highlight, $card_dark, 10%);
|
310
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
311
|
-
color: $product_5_highlight;
|
312
|
-
}
|
313
|
-
.pb_form_pill_close {
|
314
|
-
color: $product_5_highlight;
|
315
|
-
&:hover {
|
316
|
-
background-color: mix($product_5_highlight, $card_dark, 40%);
|
317
|
-
}
|
318
|
-
}
|
319
|
-
&:hover {
|
320
|
-
background-color: mix($product_5_highlight, $card_dark, 20%);
|
321
|
-
}
|
322
|
-
&:active {
|
323
|
-
background-color: mix($product_5_highlight, $card_dark, 30%);
|
324
|
-
}
|
325
|
-
}
|
326
|
-
@if ($color_name == "doors") {
|
327
|
-
background-color: mix($product_3_highlight, $card_dark, 10%);
|
328
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
329
|
-
color: $product_3_highlight;
|
330
|
-
}
|
331
|
-
.pb_form_pill_close {
|
332
|
-
color: $product_3_highlight;
|
333
|
-
&:hover {
|
334
|
-
background-color: mix($product_3_highlight, $card_dark, 40%);
|
335
|
-
}
|
336
|
-
}
|
337
|
-
&:hover {
|
338
|
-
background-color: mix($product_3_highlight, $card_dark, 20%);
|
339
|
-
}
|
340
|
-
&:active {
|
341
|
-
background-color: mix($product_3_highlight, $card_dark, 30%);
|
342
|
-
}
|
343
|
-
}
|
344
|
-
@if ($color_name == "gutters") {
|
345
|
-
background-color: mix($product_6_highlight, $card_dark, 10%);
|
346
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
347
|
-
color: $product_6_highlight;
|
348
|
-
}
|
349
|
-
.pb_form_pill_close {
|
350
|
-
color: $product_6_highlight;
|
351
|
-
&:hover {
|
352
|
-
background-color: mix($product_6_highlight, $card_dark, 40%);
|
353
|
-
}
|
354
|
-
}
|
355
|
-
&:hover {
|
356
|
-
background-color: mix($product_6_highlight, $card_dark, 20%);
|
357
|
-
}
|
358
|
-
&:active {
|
359
|
-
background-color: mix($product_6_highlight, $card_dark, 30%);
|
360
|
-
}
|
361
|
-
}
|
362
|
-
@if ($color_name == "solar") {
|
363
|
-
background-color: mix($product_4_highlight, $card_dark, 10%);
|
364
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
365
|
-
color: $product_4_highlight;
|
366
|
-
}
|
367
|
-
.pb_form_pill_close {
|
368
|
-
color: $product_4_highlight;
|
369
|
-
&:hover {
|
370
|
-
background-color: mix($product_4_highlight, $card_dark, 40%);
|
371
|
-
}
|
372
|
-
}
|
373
|
-
&:hover {
|
374
|
-
background-color: mix($product_4_highlight, $card_dark, 20%);
|
375
|
-
}
|
376
|
-
&:active {
|
377
|
-
background-color: mix($product_4_highlight, $card_dark, 30%);
|
378
|
-
}
|
379
|
-
}
|
380
|
-
@if ($color_name == "insulation") {
|
381
|
-
background-color: mix($product_7_highlight, $card_dark, 10%);
|
382
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
383
|
-
color: $product_7_highlight;
|
384
|
-
}
|
385
|
-
.pb_form_pill_close {
|
386
|
-
color: $product_7_highlight;
|
387
|
-
&:hover {
|
388
|
-
background-color: mix($product_7_highlight, $card_dark, 40%);
|
389
|
-
}
|
390
|
-
}
|
391
|
-
&:hover {
|
392
|
-
background-color: mix($product_7_highlight, $card_dark, 20%);
|
393
|
-
}
|
394
|
-
&:active {
|
395
|
-
background-color: mix($product_7_highlight, $card_dark, 30%);
|
396
|
-
}
|
397
|
-
}
|
398
|
-
@if ($color_name == "accessories") {
|
399
|
-
background-color: mix($product_8_highlight, $card_dark, 10%);
|
400
|
-
.pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
|
401
|
-
color: $text_dk_light;
|
402
|
-
}
|
403
|
-
.pb_form_pill_close {
|
404
|
-
color: $text_dk_light;
|
405
|
-
&:hover {
|
406
|
-
background-color: mix($product_8_highlight, $card_dark, 40%);
|
407
|
-
}
|
408
|
-
}
|
409
|
-
&:hover {
|
410
|
-
background-color: mix($product_8_highlight, $card_dark, 20%);
|
411
|
-
}
|
412
|
-
&:active {
|
413
|
-
background-color: mix($product_8_highlight, $card_dark, 30%);
|
414
|
-
}
|
415
|
-
}
|
416
194
|
}
|
417
195
|
}
|
418
196
|
}
|
@@ -17,7 +17,7 @@ type FormPillProps = {
|
|
17
17
|
avatarUrl?: string,
|
18
18
|
size?: string,
|
19
19
|
textTransform?: 'none' | 'lowercase',
|
20
|
-
color?: "primary" | "neutral"
|
20
|
+
color?: "primary" | "neutral",
|
21
21
|
data?: {[key: string]: string},
|
22
22
|
tabIndex?: number,
|
23
23
|
icon?: string,
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- form_pill_tag: Form Pill Tag
|
7
7
|
- form_pill_example: Example
|
8
8
|
- form_pill_icon: Form Pill Icon
|
9
|
-
- form_pill_colors: Form Pill Colors
|
10
9
|
|
11
10
|
react:
|
12
11
|
- form_pill_user: Form Pill User
|
@@ -14,4 +13,3 @@ examples:
|
|
14
13
|
- form_pill_tag: Form Pill Tag
|
15
14
|
- form_pill_example: Example
|
16
15
|
- form_pill_icon: Form Pill Icon
|
17
|
-
- form_pill_colors: Form Pill Colors
|
@@ -3,4 +3,3 @@ export { default as FormPillSize } from './_form_pill_size.jsx'
|
|
3
3
|
export { default as FormPillTag } from './_form_pill_tag.jsx'
|
4
4
|
export { default as FormPillExample } from './_form_pill_example.jsx'
|
5
5
|
export { default as FormPillIcon } from './_form_pill_icon.jsx'
|
6
|
-
export { default as FormPillColors } from './_form_pill_colors.jsx'
|
@@ -12,7 +12,7 @@ module Playbook
|
|
12
12
|
values: %w[none lowercase],
|
13
13
|
default: "none"
|
14
14
|
prop :color, type: Playbook::Props::Enum,
|
15
|
-
values: %w[primary neutral
|
15
|
+
values: %w[primary neutral],
|
16
16
|
default: "primary"
|
17
17
|
prop :tabindex
|
18
18
|
prop :icon
|
@@ -16,7 +16,6 @@ type GanttChartProps = {
|
|
16
16
|
data?: { [key: string]: string };
|
17
17
|
htmlOptions?: { [key: string]: string | number | boolean | (() => void) };
|
18
18
|
id?: string;
|
19
|
-
ref?: any
|
20
19
|
};
|
21
20
|
|
22
21
|
const GanttChart = (props: GanttChartProps) => {
|
@@ -28,7 +27,6 @@ const GanttChart = (props: GanttChartProps) => {
|
|
28
27
|
data = {},
|
29
28
|
htmlOptions = {},
|
30
29
|
id,
|
31
|
-
ref,
|
32
30
|
} = props;
|
33
31
|
|
34
32
|
const ariaProps = buildAriaProps(aria);
|
@@ -66,7 +64,6 @@ const GanttChart = (props: GanttChartProps) => {
|
|
66
64
|
}}
|
67
65
|
highcharts={Highcharts}
|
68
66
|
options={options}
|
69
|
-
ref={ref}
|
70
67
|
/>
|
71
68
|
</div>
|
72
69
|
);
|
@@ -9,7 +9,7 @@ module Playbook
|
|
9
9
|
prop :border, type: Playbook::Props::Boolean,
|
10
10
|
default: false
|
11
11
|
prop :fixed_width, type: Playbook::Props::Boolean,
|
12
|
-
default:
|
12
|
+
default: false
|
13
13
|
prop :flip, type: Playbook::Props::Enum,
|
14
14
|
values: ["horizontal", "vertical", "both", nil],
|
15
15
|
default: nil
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
2
2
|
import Button from "../pb_button/_button";
|
3
3
|
import Icon from "../pb_icon/_icon";
|
4
4
|
import Flex from "../pb_flex/_flex";
|
5
|
-
import { getAllIcons } from "../utilities/icons/allicons"
|
6
5
|
|
7
6
|
type MapControlTypes = {
|
8
7
|
zoomBtns?: boolean,
|
@@ -13,8 +12,6 @@ type MapControlTypes = {
|
|
13
12
|
children?: React.ReactNode | React.ReactNode[]
|
14
13
|
}
|
15
14
|
|
16
|
-
const eyeIcon = getAllIcons()["eye"]
|
17
|
-
|
18
15
|
const MapControls = ({
|
19
16
|
zoomBtns,
|
20
17
|
zoomInClick,
|
@@ -45,10 +42,7 @@ const MapControls = ({
|
|
45
42
|
<Button className="map-flyto-button"
|
46
43
|
onClick={flyToClick}
|
47
44
|
>
|
48
|
-
<Icon
|
49
|
-
className="svg-inline--fa"
|
50
|
-
customIcon={eyeIcon.icon as unknown as { [key: string]: SVGElement }}
|
51
|
-
/>
|
45
|
+
<Icon icon="eye" />
|
52
46
|
</Button>
|
53
47
|
) : null}
|
54
48
|
</>
|
@@ -34,7 +34,6 @@ type MultiLevelSelectProps = {
|
|
34
34
|
onSelect?: (prop: { [key: string]: any }) => void
|
35
35
|
selectedIds?: string[]
|
36
36
|
variant?: "multi" | "single"
|
37
|
-
pillColor?: "primary" | "neutral" | "success" | "warning" | "error" | "info" | "data_1" | "data_2" | "data_3" | "data_4" | "data_5" | "data_6" | "data_7" | "data_8" | "windows" | "siding" | "roofing" | "doors" | "gutters" | "solar" | "insulation" | "accessories",
|
38
37
|
} & GlobalProps
|
39
38
|
|
40
39
|
const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
@@ -51,8 +50,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
51
50
|
treeData,
|
52
51
|
onSelect = () => null,
|
53
52
|
selectedIds,
|
54
|
-
variant = "multi"
|
55
|
-
pillColor = "primary"
|
53
|
+
variant = "multi"
|
56
54
|
} = props
|
57
55
|
|
58
56
|
const ariaProps = buildAriaProps(aria)
|
@@ -88,9 +86,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
88
86
|
item: []
|
89
87
|
})
|
90
88
|
|
91
|
-
const arrowDownElementId = `arrow_down_${id}`
|
92
|
-
const arrowUpElementId = `arrow_up_${id}`
|
93
|
-
|
94
89
|
const modifyRecursive = (tree: { [key: string]: any }[], check: boolean) => {
|
95
90
|
if (!Array.isArray(tree)) {
|
96
91
|
return
|
@@ -176,12 +171,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
176
171
|
useEffect(() => {
|
177
172
|
// Function to handle clicks outside the dropdown
|
178
173
|
const handleClickOutside = (event: any) => {
|
179
|
-
if (
|
180
|
-
dropdownRef.current &&
|
181
|
-
!dropdownRef.current.contains(event.target) &&
|
182
|
-
event.target.id !== arrowDownElementId &&
|
183
|
-
event.target.id !== arrowUpElementId
|
184
|
-
) {
|
174
|
+
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
185
175
|
setIsDropdownClosed(true)
|
186
176
|
}
|
187
177
|
}
|
@@ -268,6 +258,7 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
268
258
|
|
269
259
|
// Handle click on input wrapper(entire div with pills, typeahead, etc) so it doesn't close when input or form pill is clicked
|
270
260
|
const handleInputWrapperClick = (e: any) => {
|
261
|
+
e.stopPropagation()
|
271
262
|
if (
|
272
263
|
e.target.id === "multiselect_input" ||
|
273
264
|
e.target.classList.contains("pb_form_pill_tag")
|
@@ -476,7 +467,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
476
467
|
inputDisplay === "pills"
|
477
468
|
? returnedArray.map((item, index) => (
|
478
469
|
<FormPill
|
479
|
-
color={pillColor}
|
480
470
|
key={index}
|
481
471
|
onClick={(event: any) => handlePillClose(event, item)}
|
482
472
|
text={item.label}
|
@@ -489,7 +479,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
489
479
|
inputDisplay === "pills"
|
490
480
|
? defaultReturn.map((item, index) => (
|
491
481
|
<FormPill
|
492
|
-
color={pillColor}
|
493
482
|
key={index}
|
494
483
|
onClick={(event: any) => handlePillClose(event, item)}
|
495
484
|
text={item.label}
|
@@ -525,20 +514,16 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
|
|
525
514
|
</div>
|
526
515
|
|
527
516
|
{isDropdownClosed ? (
|
528
|
-
<div
|
529
|
-
key="chevron-down">
|
517
|
+
<div key="chevron-down">
|
530
518
|
<Icon
|
531
519
|
icon="chevron-down"
|
532
|
-
id={arrowDownElementId}
|
533
520
|
size="xs"
|
534
521
|
/>
|
535
522
|
</div>
|
536
523
|
) : (
|
537
|
-
<div
|
538
|
-
key="chevron-up">
|
524
|
+
<div key="chevron-up">
|
539
525
|
<Icon
|
540
526
|
icon="chevron-up"
|
541
|
-
id={arrowUpElementId}
|
542
527
|
size="xs"
|
543
528
|
/>
|
544
529
|
</div>
|
@@ -6,7 +6,6 @@ examples:
|
|
6
6
|
- multi_level_select_return_all_selected: Return All Selected
|
7
7
|
- multi_level_select_selected_ids: Selected Ids
|
8
8
|
- multi_level_select_with_form: With Form
|
9
|
-
- multi_level_select_color: With Pills (Custom Color)
|
10
9
|
|
11
10
|
react:
|
12
11
|
- multi_level_select_default: Default
|
@@ -14,4 +13,3 @@ examples:
|
|
14
13
|
- multi_level_select_single_children_only: Single Select w/ Hidden Radios
|
15
14
|
- multi_level_select_return_all_selected: Return All Selected
|
16
15
|
- multi_level_select_selected_ids_react: Selected Ids
|
17
|
-
- multi_level_select_color: With Pills (Custom Color)
|
@@ -3,4 +3,3 @@ export { default as MultiLevelSelectSingle } from './_multi_level_select_single.
|
|
3
3
|
export { default as MultiLevelSelectSingleChildrenOnly } from './_multi_level_select_single_children_only.jsx'
|
4
4
|
export { default as MultiLevelSelectReturnAllSelected } from './_multi_level_select_return_all_selected.jsx'
|
5
5
|
export { default as MultiLevelSelectSelectedIdsReact } from "./_multi_level_select_selected_ids_react.jsx"
|
6
|
-
export { default as MultiLevelSelectColor } from './_multi_level_select_color.jsx'
|
@@ -19,9 +19,6 @@ module Playbook
|
|
19
19
|
prop :variant, type: Playbook::Props::Enum,
|
20
20
|
values: %w[multi single],
|
21
21
|
default: "multi"
|
22
|
-
prop :pill_color, type: Playbook::Props::Enum,
|
23
|
-
values: %w[primary neutral success warning error info data_1 data_2 data_3 data_4 data_5 data_6 data_7 data_8 windows siding roofing doors gutters solar insulation accessories],
|
24
|
-
default: "primary"
|
25
22
|
|
26
23
|
def classname
|
27
24
|
generate_classname("pb_multi_level_select")
|
@@ -37,7 +34,6 @@ module Playbook
|
|
37
34
|
selectedIds: selected_ids,
|
38
35
|
input_name: input_name,
|
39
36
|
variant: variant,
|
40
|
-
pillColor: pill_color,
|
41
37
|
}
|
42
38
|
end
|
43
39
|
end
|