playbook_ui 14.9.0.pre.alpha.PBNTR746datepickerdefaultbug4903 → 14.9.0.pre.alpha.PBNTR767advancedtablemultiheadercolumns5136
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/CollapsibleTrail.tsx +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +32 -19
- data/app/pb_kits/playbook/pb_advanced_table/SubKits/TableBody.tsx +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +48 -3
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +33 -19
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb +36 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx +60 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx +74 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_body.rb +4 -2
- data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +8 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.html.erb +8 -0
- data/app/pb_kits/playbook/pb_advanced_table/table_subrow_header.rb +2 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +53 -49
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +29 -36
- data/app/pb_kits/playbook/pb_card/_card.tsx +7 -7
- data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +21 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +50 -0
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +9 -4
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +2 -2
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +2 -2
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +2 -4
- data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +2 -2
- data/app/pb_kits/playbook/pb_form_group/_error_state_mixin.scss +57 -0
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +11 -2
- data/app/pb_kits/playbook/pb_gauge/_gauge.scss +31 -1
- data/app/pb_kits/playbook/pb_gauge/_gauge.tsx +3 -3
- data/app/pb_kits/playbook/pb_gauge/docs/_gauge_complex.jsx +25 -5
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +17 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.html.erb +17 -1
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +15 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.md +2 -1
- data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +15 -1
- data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb +32 -0
- data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.rb +29 -0
- data/app/pb_kits/playbook/pb_layout/_layout.tsx +30 -11
- data/app/pb_kits/playbook/pb_link/_link.scss +3 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +166 -0
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +2 -0
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +89 -0
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_table/_table.tsx +6 -6
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +30 -48
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +75 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +108 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md +2 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +94 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md +0 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +83 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +3 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +120 -0
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +1 -0
- data/app/pb_kits/playbook/pb_table/docs/example.yml +7 -0
- data/app/pb_kits/playbook/pb_table/docs/index.js +5 -0
- data/app/pb_kits/playbook/pb_table/index.ts +5 -3
- data/app/pb_kits/playbook/pb_table/styles/_all.scss +2 -1
- data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +35 -0
- data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +28 -3
- data/app/pb_kits/playbook/pb_table/styles/_sticky_columns.scss +0 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +106 -1
- data/app/pb_kits/playbook/pb_table/table.html.erb +7 -1
- data/app/pb_kits/playbook/pb_table/table.rb +4 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +35 -3
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx +88 -0
- data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_text_input/inputMask.ts +64 -0
- data/app/pb_kits/playbook/pb_text_input/text_input.test.js +139 -2
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +115 -46
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_highlight.jsx +9 -2
- data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +3 -2
- data/dist/chunks/_typeahead-C63YYbKQ.js +22 -0
- data/dist/chunks/_weekday_stacked-CPOjyT4z.js +45 -0
- data/dist/chunks/lib-sMFo2JZy.js +29 -0
- data/dist/chunks/{pb_form_validation-DXJs12Hd.js → pb_form_validation-CgvjWbOK.js} +1 -1
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +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 +31 -6
- data/dist/chunks/_typeahead-8iXlv4ii.js +0 -22
- data/dist/chunks/_weekday_stacked-QiMNKnzf.js +0 -45
- data/dist/chunks/lib-orI4wF5u.js +0 -29
@@ -90,50 +90,7 @@
|
|
90
90
|
}
|
91
91
|
}
|
92
92
|
}
|
93
|
-
|
94
|
-
.pb_typeahead_wrapper .pb_typeahead_loading_indicator {
|
95
|
-
color: $text_dk_light;
|
96
|
-
}
|
97
|
-
[class^=pb_text_input_kit].dark .text_input_wrapper .text_input {
|
98
|
-
display: inherit !important;
|
99
|
-
}
|
100
|
-
.typeahead-kit-select__menu {
|
101
|
-
background-color: $bg_dark;
|
102
|
-
color: $white;
|
103
|
-
z-index: $z_1;
|
104
|
-
}
|
105
|
-
.typeahead-kit-select__option:hover {
|
106
|
-
background-color: $active_dark;
|
107
|
-
}
|
108
|
-
.typeahead-kit-select__indicator:hover {
|
109
|
-
color: $white;
|
110
|
-
}
|
111
|
-
.typeahead-kit-select__input {
|
112
|
-
color: white;
|
113
|
-
input:focus {
|
114
|
-
box-shadow: none;
|
115
|
-
}
|
116
|
-
}
|
117
|
-
.typeahead-kit-select__single-value {
|
118
|
-
color: white;
|
119
|
-
}
|
120
|
-
.typeahead-kit-select__option--is-focused {
|
121
|
-
background-color: $active_dark;
|
122
|
-
}
|
123
|
-
[class^=pb_list_kit] {
|
124
|
-
background-color: $bg_dark;
|
125
|
-
}
|
126
|
-
.pb_item_kit {
|
127
|
-
button {
|
128
|
-
color: white !important;
|
129
|
-
}
|
130
|
-
@media (hover:hover) {
|
131
|
-
&:hover {
|
132
|
-
background-color: rgba($white,.1);
|
133
|
-
}
|
134
|
-
}
|
135
|
-
}
|
136
|
-
}
|
93
|
+
|
137
94
|
&.react-select, &.react-select .dark {
|
138
95
|
.text_input {
|
139
96
|
display: inherit;
|
@@ -182,7 +139,7 @@
|
|
182
139
|
}
|
183
140
|
}
|
184
141
|
}
|
185
|
-
|
142
|
+
|
186
143
|
.typeahead-kit-select__menu {
|
187
144
|
z-index: $z_1;
|
188
145
|
.typeahead-kit-select__menu-list {
|
@@ -215,5 +172,117 @@
|
|
215
172
|
}
|
216
173
|
}
|
217
174
|
}
|
218
|
-
}
|
219
175
|
|
176
|
+
&[class*=dark] {
|
177
|
+
.pb_typeahead_wrapper .pb_typeahead_loading_indicator {
|
178
|
+
color: $text_dk_light;
|
179
|
+
}
|
180
|
+
.pb_text_input_kit_label {
|
181
|
+
color: $text_dk_light;
|
182
|
+
}
|
183
|
+
[class^=pb_text_input_kit].dark .text_input_wrapper .text_input {
|
184
|
+
display: inherit !important;
|
185
|
+
}
|
186
|
+
.typeahead-kit-select__menu {
|
187
|
+
background-color: $bg_dark;
|
188
|
+
color: $white;
|
189
|
+
z-index: $z_1;
|
190
|
+
.typeahead-kit-select__menu-list {
|
191
|
+
padding: 0;
|
192
|
+
}
|
193
|
+
.typeahead-kit-select__single-value {
|
194
|
+
color: white;
|
195
|
+
}
|
196
|
+
|
197
|
+
.typeahead-kit-select__option {
|
198
|
+
&.typeahead-kit-select__option--is-focused {
|
199
|
+
background-color: $hover_dark;
|
200
|
+
}
|
201
|
+
&.typeahead-kit-select__option--is-selected {
|
202
|
+
background-color: $active_dark;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
.text_input_wrapper{
|
207
|
+
color: text_dk_default;
|
208
|
+
}
|
209
|
+
.typeahead-kit-select__option:hover {
|
210
|
+
background-color: $active_dark;
|
211
|
+
}
|
212
|
+
.typeahead-kit-select__indicator {
|
213
|
+
color: $text_dk_default;
|
214
|
+
}
|
215
|
+
.typeahead-kit-select__indicator:hover {
|
216
|
+
color: $text_dk_lighter;
|
217
|
+
}
|
218
|
+
.typeahead-kit-select__input {
|
219
|
+
color: white;
|
220
|
+
input:focus {
|
221
|
+
box-shadow: none;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
.typeahead-kit-select__option--is-focused {
|
225
|
+
background-color: $active_dark;
|
226
|
+
}
|
227
|
+
[class^=pb_list_kit] {
|
228
|
+
background-color: $bg_dark;
|
229
|
+
}
|
230
|
+
.pb_item_kit {
|
231
|
+
button {
|
232
|
+
color: white !important;
|
233
|
+
}
|
234
|
+
@media (hover:hover) {
|
235
|
+
&:hover {
|
236
|
+
background-color: $hover_dark;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
.text_input {
|
242
|
+
.typeahead-kit-select__input-container{
|
243
|
+
color: $text_dk_default
|
244
|
+
}
|
245
|
+
.typeahead-kit-select {
|
246
|
+
&__single-value{
|
247
|
+
color: $text_dk_default;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
&.typeahead-kit-select {
|
251
|
+
&__single-value{
|
252
|
+
color: $text_dk_default;
|
253
|
+
}
|
254
|
+
&__control {
|
255
|
+
&--is-focused {
|
256
|
+
@include pb_textarea_focus;
|
257
|
+
@include transition_default;
|
258
|
+
border-color: $active_dark;
|
259
|
+
background-color: rgba($focus_input_dark,$opacity_5);
|
260
|
+
box-shadow: none;
|
261
|
+
.typeahead-plus-icon {
|
262
|
+
display: none;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
&.inline {
|
270
|
+
&:not(:hover) {
|
271
|
+
.text_input {
|
272
|
+
background-color: transparent;
|
273
|
+
border-color: transparent;
|
274
|
+
}
|
275
|
+
.typeahead-kit-select__indicator {
|
276
|
+
color: transparent;
|
277
|
+
}
|
278
|
+
}
|
279
|
+
|
280
|
+
&:hover {
|
281
|
+
.text_input {
|
282
|
+
background-color: $hover_dark;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
|
287
|
+
}
|
288
|
+
}
|
@@ -55,11 +55,18 @@ const TypeaheadWithHighlight = (props) => {
|
|
55
55
|
marginRight="sm"
|
56
56
|
name={name}
|
57
57
|
size="sm"
|
58
|
+
{...props}
|
58
59
|
/>
|
59
60
|
</FlexItem>
|
60
61
|
<FlexItem>
|
61
|
-
<Title
|
62
|
-
|
62
|
+
<Title
|
63
|
+
size={4}
|
64
|
+
{...props}
|
65
|
+
>
|
66
|
+
<span dangerouslySetInnerHTML={{ __html: highlighted(name) }} /></Title>
|
67
|
+
<Body color="light"
|
68
|
+
{...props}
|
69
|
+
>
|
63
70
|
<span dangerouslySetInnerHTML={{ __html: highlighted(title) }} />{" • "}
|
64
71
|
{territory}
|
65
72
|
</Body>
|
@@ -25,8 +25,9 @@
|
|
25
25
|
validation: object.validation,
|
26
26
|
label: object.label,
|
27
27
|
id: object.input_options[:id],
|
28
|
+
dark: object.dark,
|
28
29
|
}) %>
|
29
|
-
<%= pb_rails("list", props: { ordered: false, borderless:
|
30
|
+
<%= pb_rails("list", props: { ordered: false, borderless: true, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
|
30
31
|
<% end %>
|
31
32
|
</div>
|
32
33
|
|
@@ -36,4 +37,4 @@
|
|
36
37
|
<% end %>
|
37
38
|
</template>
|
38
39
|
<% end %>
|
39
|
-
<% end %>
|
40
|
+
<% end %>
|