playbook_ui 14.1.0.pre.alpha.PBNTR417addcolorsupdatedefaultcolor3608 → 14.1.0.pre.alpha.PBNTR449rtepreviewerrails3605

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +23 -245
  3. data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +5 -5
  4. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +2 -2
  5. data/app/pb_kits/playbook/pb_form_pill/docs/example.yml +0 -2
  6. data/app/pb_kits/playbook/pb_form_pill/docs/index.js +0 -1
  7. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +2 -2
  8. data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +1 -5
  9. data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +0 -2
  10. data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +0 -1
  11. data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.rb +0 -4
  12. data/app/pb_kits/playbook/pb_rich_text_editor/_previewer_mixin.scss +49 -13
  13. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.scss +0 -12
  14. data/app/pb_kits/playbook/pb_rich_text_editor/_tiptap_styles.scss +23 -23
  15. data/app/pb_kits/playbook/pb_rich_text_editor/_trix_styles.scss +19 -27
  16. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_preview.html.erb +21 -11
  17. data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +2 -18
  18. data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +0 -4
  19. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -26
  20. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  21. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  22. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
  23. data/app/pb_kits/playbook/tokens/_colors.scss +0 -2
  24. data/dist/chunks/{_typeahead-BbHBDL7C.js → _typeahead-Cq7RLPBA.js} +2 -2
  25. data/dist/chunks/{_weekday_stacked-DEfI42pf.js → _weekday_stacked-Cykj5kLZ.js} +1 -1
  26. data/dist/chunks/{lib-u02fp5X7.js → lib-DErGXNy3.js} +1 -1
  27. data/dist/chunks/{pb_form_validation-iGj5wwU2.js → pb_form_validation-BC6kh7Hu.js} +1 -1
  28. data/dist/chunks/vendor.js +1 -1
  29. data/dist/playbook-doc.js +1 -1
  30. data/dist/playbook-rails-react-bindings.js +1 -1
  31. data/dist/playbook-rails.js +1 -1
  32. data/dist/playbook.css +1 -1
  33. data/lib/playbook/version.rb +1 -1
  34. metadata +6 -17
  35. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.html.erb +0 -117
  36. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.jsx +0 -227
  37. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_colors.md +0 -1
  38. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.html.erb +0 -72
  39. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color.jsx +0 -91
  40. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_rails.md +0 -1
  41. data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_color_react.md +0 -1
  42. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.html.erb +0 -31
  43. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color.jsx +0 -26
  44. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_rails.md +0 -1
  45. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_color_react.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d14c55461df216c1a1d2757bf7035194b7480c4ed582d5644376b4d5ebb3ccd
4
- data.tar.gz: ca7918de17e4fd6585896955df44528e29740e28434e4f1d6b86be3e2c7156a0
3
+ metadata.gz: a8d134303f815c6e0076c01a0aa625cda4c97ceff14ec8eff52b2716ebbb60a8
4
+ data.tar.gz: 1188d83da657ab95a2c0fb418f04734f2039c73278e1191fc8b75b14a37348f4
5
5
  SHA512:
6
- metadata.gz: c1fd3cb4bd75222ace6058f9e514eb9785ed9b05177d0de60dd305abbf341a000b55f90dae080ec3396fc2ebdcaf79d23bd8255755646ec613808cc65c824286
7
- data.tar.gz: 8d6ba7abbee7dad6cea9a4a7acfc15396b742689e9b6033a7a7fbae510c96ea582d83f8e554cb81ff81147b54836e1403a4687cac17d79926165f2e20154a7ae
6
+ metadata.gz: d04fdd2687e6accfad40120bbeba65830b7be5c3a15157d21a2ed1cd7b4d0c13202179cf5eeece62f5a7f21559e79af4da3760f7b83ef76ad70c7df607563a75
7
+ data.tar.gz: 173ab72b24320b444d7f5930fd41e2fae8a2122bacf85e46f142ac8860d05d12dcee0111bcd730ebbdba5586fdceab590667b7c560f921218140e46803b46f06
@@ -7,7 +7,10 @@
7
7
 
8
8
  $selector: ".pb_form_pill";
9
9
  $pb_form_pill_height: 27px;
10
- $form_pill_colors: map-merge($status_color_text, map-merge($data_colors, $product_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
- background-color: mix($color_value, $card_dark, 10%);
181
- .pb_form_pill_text, .pb_form_pill_tag, .pb_form_pill_icon {
182
- color: $color_name;
183
- }
184
- .pb_form_pill_close {
185
- color: $color_name;
186
- &:hover {
187
- background-color: mix($color_value, $card_dark, 40%);
188
- }
189
- }
190
- &:hover {
191
- background-color: mix($color_value, $card_dark, 20%);
192
- }
193
- &:active {
194
- background-color: mix($color_value, $card_dark, 30%);
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, 20%);
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
  }
@@ -13,7 +13,7 @@ test('should render classname', () => {
13
13
  )
14
14
 
15
15
  const kit = screen.getByTestId(testId)
16
- expect(kit).toHaveClass('pb_form_pill_kit_neutral none')
16
+ expect(kit).toHaveClass('pb_form_pill_kit_primary none')
17
17
  });
18
18
 
19
19
  test('displays text content', () => {
@@ -31,13 +31,13 @@ test('displays text content', () => {
31
31
  test('displays color variant', () => {
32
32
  render(
33
33
  <FormPill
34
- color={"primary"}
34
+ color={"neutral"}
35
35
  data={{ testid: testId }}
36
36
  text={"test"}
37
37
  />
38
38
  )
39
39
  const kit = screen.getByTestId(testId)
40
- expect(kit).toHaveClass(`pb_form_pill_kit_primary none`)
40
+ expect(kit).toHaveClass(`pb_form_pill_kit_neutral none`)
41
41
  });
42
42
 
43
43
  test('displays size variant', () => {
@@ -49,7 +49,7 @@ test('displays size variant', () => {
49
49
  />
50
50
  )
51
51
  const kit = screen.getByTestId('formpill')
52
- expect(kit).toHaveClass(`pb_form_pill_kit_neutral small none`)
52
+ expect(kit).toHaveClass(`pb_form_pill_kit_primary small none`)
53
53
  });
54
54
 
55
55
  test('displays icon', () => {
@@ -60,5 +60,5 @@ test('displays icon', () => {
60
60
  />
61
61
  )
62
62
  const kit = screen.getByTestId('formpill')
63
- expect(kit).toHaveClass(`pb_form_pill_kit_neutral_icon none`)
63
+ expect(kit).toHaveClass(`pb_form_pill_kit_primary_icon none`)
64
64
  });
@@ -17,7 +17,7 @@ type FormPillProps = {
17
17
  avatarUrl?: string,
18
18
  size?: string,
19
19
  textTransform?: 'none' | 'lowercase',
20
- color?: "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",
20
+ color?: "primary" | "neutral",
21
21
  data?: {[key: string]: string},
22
22
  tabIndex?: number,
23
23
  icon?: string,
@@ -39,7 +39,7 @@ const FormPill = (props: FormPillProps): React.ReactElement => {
39
39
  closeProps = {},
40
40
  size = '',
41
41
  textTransform = 'none',
42
- color = "neutral",
42
+ color = "primary",
43
43
  data = {},
44
44
  tabIndex,
45
45
  icon = "",
@@ -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,8 +12,8 @@ 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 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],
16
- default: "neutral"
15
+ values: %w[primary neutral],
16
+ default: "primary"
17
17
  prop :tabindex
18
18
  prop :icon
19
19
 
@@ -34,7 +34,6 @@ type MultiLevelSelectProps = {
34
34
  onSelect?: (prop: { [key: string]: any }) => void
35
35
  selectedIds?: string[]
36
36
  variant?: "multi" | "single"
37
- color?: "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
- color = "neutral"
53
+ variant = "multi"
56
54
  } = props
57
55
 
58
56
  const ariaProps = buildAriaProps(aria)
@@ -469,7 +467,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
469
467
  inputDisplay === "pills"
470
468
  ? returnedArray.map((item, index) => (
471
469
  <FormPill
472
- color={color}
473
470
  key={index}
474
471
  onClick={(event: any) => handlePillClose(event, item)}
475
472
  text={item.label}
@@ -482,7 +479,6 @@ const MultiLevelSelect = (props: MultiLevelSelectProps) => {
482
479
  inputDisplay === "pills"
483
480
  ? defaultReturn.map((item, index) => (
484
481
  <FormPill
485
- color={color}
486
482
  key={index}
487
483
  onClick={(event: any) => handlePillClose(event, item)}
488
484
  text={item.label}
@@ -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: 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: 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 :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: "neutral"
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
- color: color,
41
37
  }
42
38
  end
43
39
  end
@@ -3,18 +3,20 @@
3
3
  @import "../tokens/spacing";
4
4
  @import "../tokens/typography";
5
5
 
6
- @mixin preview_first_child {
6
+
7
+ // Tiptap mixins section (React Advanced Editor)
8
+ @mixin preview_tiptap_first_child {
7
9
  :first-child {
8
10
  margin-top: 0;
9
11
  }
10
12
  }
11
13
 
12
- @mixin preview_p {
14
+ @mixin preview_tiptap_p {
13
15
  margin: 1rem 0 0 0;
14
16
  min-height: 1rem;
15
17
  }
16
18
 
17
- @mixin preview_code {
19
+ @mixin preview_tiptap_code {
18
20
  font-family: monospace;
19
21
  background: $bg_light;
20
22
  padding: 0.1rem 0.3rem;
@@ -23,7 +25,7 @@
23
25
  overflow: hidden;
24
26
  }
25
27
 
26
- @mixin preview_pre_codeblock {
28
+ @mixin preview_tiptap_pre_codeblock {
27
29
  display: inline-block;
28
30
  width: 100%;
29
31
  vertical-align: top;
@@ -44,7 +46,7 @@
44
46
  }
45
47
  }
46
48
 
47
- @mixin preview_a {
49
+ @mixin preview_tiptap_a {
48
50
  color: $primary;
49
51
  border-bottom: 1px solid $primary;
50
52
  &:hover {
@@ -53,7 +55,7 @@
53
55
  }
54
56
  }
55
57
 
56
- @mixin preview_blockquote {
58
+ @mixin preview_tiptap_blockquote {
57
59
  font-size: $font_larger;
58
60
  padding: $space_sm $space_md;
59
61
  font-style: italic;
@@ -63,7 +65,7 @@
63
65
  }
64
66
  }
65
67
 
66
- @mixin preview_h1 {
68
+ @mixin preview_tiptap_h1 {
67
69
  font-size: $text_largest;
68
70
  line-height: $text_larger;
69
71
  font-weight: $bolder;
@@ -71,7 +73,7 @@
71
73
  margin: 2.1rem 0 0 0;
72
74
  }
73
75
 
74
- @mixin preview_h2 {
76
+ @mixin preview_tiptap_h2 {
75
77
  font-size: $text_larger;
76
78
  line-height: $text_larger;
77
79
  font-weight: $bolder;
@@ -79,7 +81,7 @@
79
81
  margin: 1.9rem 0 0 0;
80
82
  }
81
83
 
82
- @mixin preview_h3 {
84
+ @mixin preview_tiptap_h3 {
83
85
  font-size: $text_large;
84
86
  line-height: $text_large;
85
87
  font-weight: $bolder;
@@ -87,7 +89,7 @@
87
89
  margin: 1.7rem 0 0 0;
88
90
  }
89
91
 
90
- @mixin preview_smaller_headings {
92
+ @mixin preview_tiptap_smaller_headings {
91
93
  font-size: $text_base;
92
94
  line-height: $text_base;
93
95
  letter-spacing: $lspace_tight;
@@ -95,7 +97,7 @@
95
97
  margin: 1rem 0 0 0;
96
98
  }
97
99
 
98
- @mixin preview_hr {
100
+ @mixin preview_tiptap_hr {
99
101
  margin: 2.2rem 0;
100
102
  box-sizing: content-box;
101
103
  overflow: hidden;
@@ -107,7 +109,7 @@
107
109
  border: 0;
108
110
  }
109
111
 
110
- @mixin preview_ol {
112
+ @mixin preview_tiptap_ol {
111
113
  margin: 1rem 0 0 0;
112
114
  padding-left: $space_md;
113
115
  list-style: decimal;
@@ -119,7 +121,7 @@
119
121
  }
120
122
  }
121
123
 
122
- @mixin preview_ul {
124
+ @mixin preview_tiptap_ul {
123
125
  list-style-position: disc;
124
126
  margin: 1rem 0 0 0;
125
127
  padding-left: $space_md;
@@ -130,3 +132,37 @@
130
132
  }
131
133
  }
132
134
  }
135
+
136
+ // Trix mixins section (Rails and React default editor)
137
+ @mixin preview_trix_div {
138
+ line-height: 1.4;
139
+ }
140
+
141
+ @mixin preview_trix_h1 {
142
+ font-size: 2em;
143
+ line-height: 1.4;
144
+ }
145
+ @mixin preview_trix_blockquote {
146
+ border: 0 solid #ccc;
147
+ border-left-width: 0.3em;
148
+ margin-left: 0.3em;
149
+ padding-left: 0.6em;
150
+ line-height: 1.4;
151
+ }
152
+
153
+ @mixin preview_trix_li {
154
+ line-height: 1.4;
155
+ margin-left: $space_sm;
156
+ }
157
+
158
+ @mixin preview_trix_pre {
159
+ display: inline-block;
160
+ width: 100%;
161
+ vertical-align: top;
162
+ font-family: monospace;
163
+ font-size: 0.9em;
164
+ padding: 0.5em;
165
+ white-space: pre;
166
+ background-color: #eee;
167
+ overflow-x: auto;
168
+ }
@@ -10,18 +10,6 @@
10
10
  @import "./trix_styles";
11
11
  @import "./tiptap_styles";
12
12
 
13
- .trix-content pre {
14
- display: inline-block;
15
- width: 100%;
16
- vertical-align: top;
17
- font-family: monospace;
18
- font-size: 0.9em;
19
- padding: 0.5em;
20
- white-space: pre;
21
- background-color: #ccc !important;
22
- color: black !important;
23
- overflow-x: auto;
24
- }
25
13
  [class^=pb_rich_text_editor_kit] {
26
14
  // Disables File Attatchment Button in Toolbar
27
15
  trix-toolbar [data-trix-button-group="file-tools"] {