playbook_ui 14.6.2.pre.alpha.PBNTR667railstypeaheadformintegration4424 → 14.6.2.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4247

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.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +1 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -8
  4. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +28 -21
  5. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +1 -37
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx +2 -13
  7. data/app/pb_kits/playbook/pb_currency/_currency.tsx +6 -16
  8. data/app/pb_kits/playbook/pb_currency/currency.rb +11 -38
  9. data/app/pb_kits/playbook/pb_currency/currency.test.js +0 -35
  10. data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -3
  11. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  12. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +7 -8
  13. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
  14. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
  15. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +12 -63
  16. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -6
  17. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +26 -30
  18. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +1 -24
  19. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +2 -25
  20. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -0
  21. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +8 -46
  22. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +1 -1
  23. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx +1 -1
  24. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +2 -2
  25. data/app/pb_kits/playbook/pb_timeline/_item.tsx +23 -59
  26. data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +0 -8
  27. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +1 -2
  28. data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
  29. data/app/pb_kits/playbook/pb_timeline/item.html.erb +21 -17
  30. data/app/pb_kits/playbook/pb_timeline/item.rb +0 -4
  31. data/app/pb_kits/playbook/pb_timeline/timeline.test.js +0 -84
  32. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +1 -7
  33. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -2
  34. data/app/pb_kits/playbook/tokens/_typography.scss +0 -35
  35. data/app/pb_kits/playbook/utilities/_hover.scss +43 -46
  36. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -1
  37. data/app/pb_kits/playbook/utilities/globalProps.ts +1 -6
  38. data/dist/chunks/_typeahead-BV_n6U5W.js +22 -0
  39. data/dist/chunks/_weekday_stacked-Cyqgh5-q.js +45 -0
  40. data/dist/chunks/vendor.js +1 -1
  41. data/dist/menu.yml +0 -3
  42. data/dist/playbook-doc.js +1 -1
  43. data/dist/playbook-rails-react-bindings.js +1 -1
  44. data/dist/playbook-rails.js +1 -1
  45. data/dist/playbook.css +1 -1
  46. data/lib/playbook/forms/builder/typeahead_field.rb +0 -1
  47. data/lib/playbook/hover.rb +1 -4
  48. data/lib/playbook/version.rb +1 -1
  49. metadata +5 -39
  50. data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.html.erb +0 -7
  51. data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.jsx +0 -18
  52. data/app/pb_kits/playbook/pb_currency/docs/_currency_comma_separator.md +0 -3
  53. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_rails.md +0 -3
  54. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text_react.md +0 -1
  55. data/app/pb_kits/playbook/pb_link/_link.scss +0 -66
  56. data/app/pb_kits/playbook/pb_link/_link.tsx +0 -107
  57. data/app/pb_kits/playbook/pb_link/docs/_link_color.html.erb +0 -30
  58. data/app/pb_kits/playbook/pb_link/docs/_link_color.jsx +0 -40
  59. data/app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb +0 -5
  60. data/app/pb_kits/playbook/pb_link/docs/_link_disabled.jsx +0 -15
  61. data/app/pb_kits/playbook/pb_link/docs/_link_icon.html.erb +0 -15
  62. data/app/pb_kits/playbook/pb_link/docs/_link_icon.jsx +0 -25
  63. data/app/pb_kits/playbook/pb_link/docs/_link_tag.html.erb +0 -35
  64. data/app/pb_kits/playbook/pb_link/docs/_link_tag.jsx +0 -45
  65. data/app/pb_kits/playbook/pb_link/docs/_link_underline.html.erb +0 -5
  66. data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +0 -15
  67. data/app/pb_kits/playbook/pb_link/docs/example.yml +0 -16
  68. data/app/pb_kits/playbook/pb_link/docs/index.js +0 -5
  69. data/app/pb_kits/playbook/pb_link/link.html.erb +0 -21
  70. data/app/pb_kits/playbook/pb_link/link.rb +0 -44
  71. data/app/pb_kits/playbook/pb_link/link.test.jsx +0 -92
  72. data/app/pb_kits/playbook/pb_timeline/detail.html.erb +0 -3
  73. data/app/pb_kits/playbook/pb_timeline/detail.rb +0 -11
  74. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -43
  75. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -68
  76. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.md +0 -2
  77. data/app/pb_kits/playbook/pb_timeline/label.html.erb +0 -12
  78. data/app/pb_kits/playbook/pb_timeline/label.rb +0 -13
  79. data/app/pb_kits/playbook/pb_timeline/step.html.erb +0 -14
  80. data/app/pb_kits/playbook/pb_timeline/step.rb +0 -16
  81. data/app/pb_kits/playbook/pb_timeline/subcomponents/Detail.tsx +0 -29
  82. data/app/pb_kits/playbook/pb_timeline/subcomponents/Label.tsx +0 -38
  83. data/app/pb_kits/playbook/pb_timeline/subcomponents/Step.tsx +0 -42
  84. data/app/pb_kits/playbook/pb_timeline/subcomponents/index.tsx +0 -3
  85. data/dist/chunks/_typeahead-5m7Pr_Rh.js +0 -22
  86. data/dist/chunks/_weekday_stacked-B4YQ6Z-d.js +0 -45
@@ -1,54 +1,51 @@
1
1
  @import "../tokens/exports/scale.module";
2
2
 
3
- @mixin hover-scale-classes($scales-list) {
4
- @each $name, $scale in $scales-list {
5
- .hover_#{"" + $name}:hover,
6
- .group_hover:hover .group_hover.hover_#{"" + $name} {
7
- transform: $scale;
8
- transition: transform $transition-speed ease;
3
+ @mixin hover-color-classes($colors-list) {
4
+ @each $name, $color in $colors-list {
5
+ .hover_background_#{"" + $name}:hover {
6
+ background-color: $color !important;
7
+ transition: background-color $transition-speed ease;
8
+ }
9
+ .hover_color_#{"" + $name}:hover {
10
+ color: $color !important;
11
+ transition: color $transition-speed ease;
12
+ }
9
13
  }
10
14
  }
11
- }
12
-
13
- @mixin hover-shadow-classes($shadows-list) {
14
- @each $name, $shadow in $shadows-list {
15
- .hover_#{"" + $name}:hover,
16
- .group_hover:hover .group_hover.hover_#{"" + $name} {
17
- box-shadow: $shadow;
18
- transition: box-shadow $transition-speed ease;
15
+
16
+ @mixin hover-shadow-classes($shadows-list) {
17
+ @each $name, $shadow in $shadows-list {
18
+ .hover_#{"" + $name}:hover {
19
+ box-shadow: $shadow;
20
+ transition: box-shadow $transition-speed ease;
21
+ }
19
22
  }
20
23
  }
21
- }
22
-
23
- @mixin hover-color-classes($colors-list) {
24
- @each $name, $color in $colors-list {
25
- .hover_background_#{"" + $name}:hover,
26
- .group_hover:hover .group_hover.hover_background_#{"" + $name} {
27
- background-color: $color !important;
28
- transition: background-color $transition-speed ease;
29
- }
30
- .hover_color_#{"" + $name}:hover,
31
- .group_hover:hover .group_hover.hover_color_#{"" + $name} {
32
- color: $color !important;
33
- transition: color $transition-speed ease;
24
+
25
+ @mixin hover-scale-classes($scales-list) {
26
+ @each $name, $scale in $scales-list {
27
+ .hover_#{"" + $name}:hover {
28
+ transform: $scale;
29
+ transition: transform $transition-speed ease;
30
+ }
34
31
  }
35
32
  }
36
- }
37
-
38
- @include hover-scale-classes($scales);
39
- @include hover-shadow-classes($box_shadows);
40
- @include hover-color-classes($product_colors);
41
- @include hover-color-classes($status_colors);
42
- @include hover-color-classes($data_colors);
43
- @include hover-color-classes($shadow_colors);
44
- @include hover-color-classes($colors);
45
- @include hover-color-classes($interface_colors);
46
- @include hover-color-classes($main_colors);
47
- @include hover-color-classes($background_colors);
48
- @include hover-color-classes($card_colors);
49
- @include hover-color-classes($active_colors);
50
- @include hover-color-classes($action_colors);
51
- @include hover-color-classes($hover_colors);
52
- @include hover-color-classes($border_colors);
53
- @include hover-color-classes($text_colors);
54
- @include hover-color-classes($category_colors);
33
+
34
+
35
+ @include hover-scale-classes($scales);
36
+ @include hover-shadow-classes($box_shadows);
37
+ @include hover-color-classes($product_colors);
38
+ @include hover-color-classes($status_colors);
39
+ @include hover-color-classes($data_colors);
40
+ @include hover-color-classes($shadow_colors);
41
+ @include hover-color-classes($colors);
42
+ @include hover-color-classes($interface_colors);
43
+ @include hover-color-classes($main_colors);
44
+ @include hover-color-classes($background_colors);
45
+ @include hover-color-classes($card_colors);
46
+ @include hover-color-classes($active_colors);
47
+ @include hover-color-classes($action_colors);
48
+ @include hover-color-classes($hover_colors);
49
+ @include hover-color-classes($border_colors);
50
+ @include hover-color-classes($text_colors);
51
+ @include hover-color-classes($category_colors);
@@ -4,7 +4,6 @@ export default [
4
4
  "right",
5
5
  "top",
6
6
  "hover",
7
- "groupHover",
8
7
  "zIndex",
9
8
  "verticalAlign",
10
9
  "truncate",
@@ -66,10 +66,6 @@ type Hover = Shadow & {
66
66
  scale?: "sm" | "md" | "lg"
67
67
  }
68
68
 
69
- type GroupHover = {
70
- groupHover?: boolean,
71
- }
72
-
73
69
  type JustifyContent = {
74
70
  justifyContent?: Alignment & Space
75
71
  }
@@ -179,7 +175,7 @@ export type GlobalProps = AlignContent & AlignItems & AlignSelf &
179
175
  BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
180
176
  FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
181
177
  LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
182
- Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & GroupHover & { hover?: string } & Top & Right & Bottom & Left;
178
+ Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left;
183
179
 
184
180
  const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
185
181
  const keys: string[] = Object.keys(prop)
@@ -213,7 +209,6 @@ const filterClassName = (value: string): string => {
213
209
  // Prop categories
214
210
  const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} = {
215
211
 
216
- groupHoverProps: ({ groupHover }: GroupHover ) => groupHover ? 'group_hover ' : '',
217
212
  hoverProps: ({ hover }: { hover?: Hover }) => {
218
213
  let css = '';
219
214
  if (!hover) return css;