playbook_ui 14.9.0.pre.alpha.play17004992 → 14.9.0.pre.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +17 -61
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta.html.erb +1 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_beta_sort.html.erb +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -2
  8. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +3 -5
  9. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +1 -3
  10. data/app/pb_kits/playbook/pb_advanced_table/table_row.rb +0 -15
  11. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +2 -0
  12. data/app/pb_kits/playbook/pb_background/_background.tsx +2 -8
  13. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom.jsx +49 -53
  14. data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_custom_rails.html.erb +36 -29
  15. data/app/pb_kits/playbook/pb_body/_body.scss +13 -14
  16. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +16 -22
  17. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +0 -6
  18. data/app/pb_kits/playbook/pb_button/_button.scss +0 -6
  19. data/app/pb_kits/playbook/pb_button/_button.tsx +3 -1
  20. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +0 -15
  21. data/app/pb_kits/playbook/pb_button/button.rb +1 -1
  22. data/app/pb_kits/playbook/pb_button/docs/_button_default.html.erb +0 -1
  23. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -8
  24. data/app/pb_kits/playbook/pb_button/docs/_button_default.md +1 -1
  25. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -2
  26. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
  27. data/app/pb_kits/playbook/pb_checkbox/checkbox.html.erb +2 -2
  28. data/app/pb_kits/playbook/pb_checkbox/checkbox.rb +4 -0
  29. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_indeterminate.html.erb +7 -84
  30. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +4 -11
  31. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx +2 -2
  32. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +2 -2
  33. data/app/pb_kits/playbook/pb_currency/_currency.tsx +3 -7
  34. data/app/pb_kits/playbook/pb_currency/currency.html.erb +2 -2
  35. data/app/pb_kits/playbook/pb_currency/currency.rb +1 -17
  36. data/app/pb_kits/playbook/pb_currency/currency.test.js +3 -40
  37. data/app/pb_kits/playbook/pb_currency/docs/example.yml +0 -2
  38. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  39. data/app/pb_kits/playbook/pb_drawer/_drawer.scss +0 -1
  40. data/app/pb_kits/playbook/pb_drawer/_drawer.tsx +45 -159
  41. data/app/pb_kits/playbook/pb_drawer/docs/example.yml +1 -1
  42. data/app/pb_kits/playbook/pb_drawer/docs/index.js +0 -1
  43. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +0 -1
  44. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.html.erb +1 -0
  45. data/app/pb_kits/playbook/pb_dropdown/dropdown_container.rb +4 -0
  46. data/app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx +2 -13
  47. data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +0 -5
  48. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +2 -7
  49. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +2 -8
  50. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +2 -2
  51. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_loading.html.erb +1 -1
  52. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +12 -63
  53. data/app/pb_kits/playbook/pb_image/_image.tsx +1 -3
  54. data/app/pb_kits/playbook/pb_layout/_layout.tsx +3 -6
  55. data/app/pb_kits/playbook/pb_link/_link.scss +3 -3
  56. data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +1 -11
  57. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +2 -16
  58. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  59. data/app/pb_kits/playbook/pb_overlay/_overlay.tsx +1 -3
  60. data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +2 -2
  61. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.tsx +3 -5
  62. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.html.erb +2 -3
  63. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.rb +0 -5
  64. data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +1 -4
  65. data/app/pb_kits/playbook/pb_section_separator/_section_separator.tsx +1 -3
  66. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
  67. data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +1 -2
  68. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -1
  69. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +36 -44
  70. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +4 -4
  71. data/app/pb_kits/playbook/pb_table/_table.tsx +25 -109
  72. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -5
  73. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -6
  74. data/app/pb_kits/playbook/pb_table/index.ts +26 -100
  75. data/app/pb_kits/playbook/pb_table/styles/_all.scss +0 -3
  76. data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -106
  77. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  78. data/app/pb_kits/playbook/pb_table/table.rb +2 -17
  79. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +3 -35
  80. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +0 -1
  81. data/app/pb_kits/playbook/pb_text_input/docs/index.js +0 -1
  82. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +2 -139
  83. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.html.erb +0 -47
  84. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_children.jsx +0 -59
  85. data/app/pb_kits/playbook/pb_title/_title.scss +5 -6
  86. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +0 -13
  87. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +0 -3
  88. data/app/pb_kits/playbook/pb_typeahead/index.ts +3 -29
  89. data/app/pb_kits/playbook/pb_typeahead/typeahead.html.erb +2 -5
  90. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +0 -4
  91. data/app/pb_kits/playbook/tokens/_titles.scss +8 -0
  92. data/app/pb_kits/playbook/utilities/_hover.scss +2 -11
  93. data/app/pb_kits/playbook/utilities/_max_width.scss +9 -29
  94. data/app/pb_kits/playbook/utilities/_min_width.scss +2 -6
  95. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +1 -1
  96. data/app/pb_kits/playbook/utilities/globalProps.ts +4 -39
  97. data/app/pb_kits/playbook/utilities/test/globalProps/hover.test.js +0 -15
  98. data/dist/chunks/_typeahead-D0PihN_3.js +22 -0
  99. data/dist/chunks/_weekday_stacked-uMIX8f-A.js +45 -0
  100. data/dist/chunks/{lib-CuCy3_xO.js → lib-BC6ESsxG.js} +3 -3
  101. data/dist/chunks/{pb_form_validation-D37k10a0.js → pb_form_validation-B_Z9rEbg.js} +1 -1
  102. data/dist/chunks/vendor.js +1 -1
  103. data/dist/menu.yml +1 -322
  104. data/dist/playbook-doc.js +1 -1
  105. data/dist/playbook-rails-react-bindings.js +1 -1
  106. data/dist/playbook-rails.js +1 -1
  107. data/dist/playbook.css +1 -1
  108. data/lib/playbook/classnames.rb +0 -4
  109. data/lib/playbook/forms/builder/typeahead_field.rb +0 -13
  110. data/lib/playbook/hover.rb +1 -7
  111. data/lib/playbook/kit_base.rb +1 -16
  112. data/lib/playbook/spacing.rb +0 -21
  113. data/lib/playbook/version.rb +2 -2
  114. metadata +6 -42
  115. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.html.erb +0 -53
  116. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell_rails.md +0 -5
  117. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.jsx +0 -50
  118. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination.md +0 -1
  119. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.jsx +0 -57
  120. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pagination_with_props.md +0 -5
  121. data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_pagination_mock_data.json +0 -5600
  122. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +0 -4
  123. data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +0 -16
  124. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.jsx +0 -31
  125. data/app/pb_kits/playbook/pb_drawer/docs/_drawer_menu.md +0 -6
  126. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +0 -95
  127. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +0 -87
  128. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +0 -2
  129. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +0 -75
  130. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.md +0 -1
  131. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.jsx +0 -108
  132. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.md +0 -2
  133. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.jsx +0 -94
  134. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_content.md +0 -0
  135. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.jsx +0 -83
  136. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_rows.md +0 -3
  137. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.jsx +0 -120
  138. data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_nested_table.md +0 -1
  139. data/app/pb_kits/playbook/pb_table/styles/_collapsible.scss +0 -35
  140. data/app/pb_kits/playbook/pb_table/styles/_scroll.scss +0 -4
  141. data/app/pb_kits/playbook/pb_table/styles/_sticky_columns.scss +0 -18
  142. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx +0 -88
  143. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +0 -64
  144. data/app/pb_kits/playbook/tokens/_height.scss +0 -19
  145. data/app/pb_kits/playbook/tokens/exports/_height.module.scss +0 -37
  146. data/app/pb_kits/playbook/utilities/_height.scss +0 -33
  147. data/app/pb_kits/playbook/utilities/_width.scss +0 -45
  148. data/dist/chunks/_typeahead-l1kq1p9m.js +0 -22
  149. data/dist/chunks/_weekday_stacked-B28kYXl9.js +0 -45
  150. data/lib/playbook/height.rb +0 -29
  151. data/lib/playbook/max_height.rb +0 -29
  152. data/lib/playbook/min_height.rb +0 -29
@@ -49,11 +49,10 @@
49
49
  }
50
50
 
51
51
  &.dark {
52
- @include title_dark;
53
- @each $name, $color in $pb_dark_title_colors {
54
- &[class*="_#{$name}"] {
55
- color: $color;
56
- }
57
- }
52
+ @include pb_title_dark;
53
+ }
54
+
55
+ &.dark[class*=_link] {
56
+ @include pb_title_dark_link;
58
57
  }
59
58
  }
@@ -9,15 +9,6 @@ $pb_title_colors: (
9
9
  link: $primary
10
10
  );
11
11
 
12
- $pb_dark_title_colors: (
13
- default: $text_dk_default,
14
- light: $text_dk_light,
15
- lighter: $text_dk_lighter,
16
- success: $success,
17
- error: $error_dark,
18
- link: $active_dark
19
- );
20
-
21
12
  @mixin title_colors {
22
13
  @each $name, $color in $pb_title_colors {
23
14
  &[class*=_#{$name}] {
@@ -25,7 +16,3 @@ $pb_dark_title_colors: (
25
16
  }
26
17
  }
27
18
  }
28
-
29
- @mixin title_dark {
30
- color: $text_dk_default;
31
- }
@@ -2,7 +2,6 @@
2
2
  @import "../tokens/border_radius";
3
3
  @import "../tokens/spacing";
4
4
  @import "../tokens/shadows";
5
- @import "../tokens/positioning";
6
5
 
7
6
  [class^=pb_typeahead_kit] {
8
7
  .typeahead-kit-select__option {
@@ -100,7 +99,6 @@
100
99
  .typeahead-kit-select__menu {
101
100
  background-color: $bg_dark;
102
101
  color: $white;
103
- z-index: $z_1;
104
102
  }
105
103
  .typeahead-kit-select__option:hover {
106
104
  background-color: $active_dark;
@@ -184,7 +182,6 @@
184
182
  }
185
183
 
186
184
  .typeahead-kit-select__menu {
187
- z-index: $z_1;
188
185
  .typeahead-kit-select__menu-list {
189
186
  padding: 0;
190
187
  }
@@ -4,12 +4,11 @@ import { debounce } from 'lodash'
4
4
  export default class PbTypeahead extends PbEnhancedElement {
5
5
  _searchInput: HTMLInputElement
6
6
  _resultsElement: HTMLElement
7
- _debouncedSearch: () => void
7
+ _debouncedSearch: Function
8
8
  _resultsLoadingIndicator: HTMLElement
9
9
  _resultOptionTemplate: HTMLElement
10
10
  _resultsOptionCache: Map<string, Array<DocumentFragment>>
11
11
  _searchContext: string
12
- _validSelection: boolean
13
12
 
14
13
  static get selector() {
15
14
  return '[data-pb-typeahead-kit]'
@@ -87,9 +86,6 @@ export default class PbTypeahead extends PbEnhancedElement {
87
86
  const resultOption = (event.target as Element).closest('[data-result-option-item]')
88
87
  if (!resultOption) return
89
88
 
90
- this._validSelection = true
91
- this.removeValidationError()
92
-
93
89
  this.resultsCacheClear()
94
90
  this.searchInputClear()
95
91
  this.clearResults()
@@ -97,28 +93,6 @@ export default class PbTypeahead extends PbEnhancedElement {
97
93
  this.element.dispatchEvent(new CustomEvent('pb-typeahead-kit-result-option-selected', { bubbles: true, detail: { selected: resultOption, typeahead: this } }))
98
94
  }
99
95
 
100
- removeValidationError() {
101
- const inputWrapper = this.searchInput.closest('.text_input_wrapper')
102
- if (inputWrapper) {
103
- const errorMessage = inputWrapper.querySelector('.pb_body_kit_negative') as HTMLElement
104
- if (errorMessage) {
105
- errorMessage.style.display = 'none'
106
- }
107
- this.searchInput.classList.remove('error')
108
- }
109
- }
110
-
111
- showValidationError() {
112
- const inputWrapper = this.searchInput.closest('.text_input_wrapper')
113
- if (inputWrapper) {
114
- const errorMessage = inputWrapper.querySelector('.pb_body_kit_negative') as HTMLElement
115
- if (errorMessage) {
116
- errorMessage.style.display = 'block'
117
- }
118
- this.searchInput.classList.add('error')
119
- }
120
- }
121
-
122
96
  clearResults() {
123
97
  this.resultsElement.innerHTML = ''
124
98
  }
@@ -227,8 +201,8 @@ export default class PbTypeahead extends PbEnhancedElement {
227
201
  }
228
202
 
229
203
  toggleResultsLoadingIndicator(visible: boolean) {
230
- let visibilityProperty = '0'
204
+ var visibilityProperty = '0'
231
205
  if (visible) visibilityProperty = '1'
232
206
  this.resultsLoadingIndicator.style.opacity = visibilityProperty
233
207
  }
234
- }
208
+ }
@@ -17,14 +17,11 @@
17
17
  <%= pb_rails("text_input", props: {
18
18
  type: "search",
19
19
  input_options: object.input_options,
20
+ label: object.label,
20
21
  name: object.name,
21
22
  value: object.value,
22
23
  placeholder: object.placeholder,
23
24
  margin_bottom: "none",
24
- required: object.required,
25
- validation: object.validation,
26
- label: object.label,
27
- id: object.input_options[:id],
28
25
  }) %>
29
26
  <%= pb_rails("list", props: { ordered: false, borderless: false, xpadding: true, role: "status", aria: { live: "polite" }, data: { pb_typeahead_kit_results: true } }) do %>
30
27
  <% end %>
@@ -36,4 +33,4 @@
36
33
  <% end %>
37
34
  </template>
38
35
  <% end %>
39
- <% end %>
36
+ <% end %>
@@ -40,10 +40,6 @@ module Playbook
40
40
  prop :pill_color, type: Playbook::Props::Enum,
41
41
  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],
42
42
  default: "primary"
43
- prop :required, type: Playbook::Props::Boolean,
44
- default: false
45
- prop :validation, type: Playbook::Props::HashProp,
46
- default: {}
47
43
 
48
44
  def classname
49
45
  default_margin_bottom = margin_bottom.present? ? "" : " mb_sm"
@@ -33,6 +33,14 @@
33
33
  @include pb_title($heading_4, $bolder, $letterSpacing: $lspace_normal);
34
34
  }
35
35
 
36
+ @mixin pb_title_dark {
37
+ color: $text_dk_default;
38
+ }
39
+
40
+ @mixin pb_title_dark_link {
41
+ color: $active_dark;
42
+ }
43
+
36
44
  @mixin pb_title_bold {
37
45
  font-weight: $bolder;
38
46
  }
@@ -20,13 +20,6 @@
20
20
  }
21
21
  }
22
22
 
23
- @mixin hover-underline {
24
- .hover_underline:hover {
25
- text-decoration: underline;
26
- transition: text-decoration $transition-speed ease;
27
- }
28
- }
29
-
30
23
  @mixin hover-color-classes($colors-list) {
31
24
  @each $name, $color in $colors-list {
32
25
  .hover_background-#{"" + $name}:hover {
@@ -39,9 +32,7 @@
39
32
  }
40
33
  }
41
34
  }
42
-
43
-
44
- @include hover-underline;
35
+
45
36
  @include hover-scale-classes($scales);
46
37
  @include hover-shadow-classes($box_shadows);
47
38
  @include hover-color-classes($product_colors);
@@ -73,4 +64,4 @@
73
64
  .group_hover.hover_visibility {
74
65
  opacity: 1;
75
66
  }
76
- }
67
+ }
@@ -1,49 +1,29 @@
1
- @import "../tokens/container";
2
-
1
+ .max_width_xs {
2
+ max-width: 360px;
3
+ }
3
4
  .max_width_0 {
4
- max-width: map-get($containers, 'none');
5
+ max-width: 0;
5
6
  }
6
-
7
7
  .max_width_none {
8
8
  max-width: none;
9
9
  }
10
10
 
11
- .max_width_0_percent {
12
- max-width: $container_0;
13
- }
14
-
15
- .max_width_xxs {
16
- max-width: $container_xxs;
17
- }
18
-
19
- .max_width_xs {
20
- max-width: $container_xs;
21
- }
22
-
23
11
  .max_width_sm {
24
- max-width: $container_sm;
12
+ max-width: 540px;
25
13
  }
26
14
 
27
15
  .max_width_md {
28
- max-width: $container_md;
16
+ max-width: 720px;
29
17
  }
30
18
 
31
19
  .max_width_lg {
32
- max-width: $container_lg;
20
+ max-width: 960px;
33
21
  }
34
22
 
35
23
  .max_width_xl {
36
- max-width: $container_xl;
24
+ max-width: 1140px;
37
25
  }
38
26
 
39
27
  .max_width_xxl {
40
- max-width: $container_xxl;
41
- }
42
-
43
- .max_width_100_percent {
44
- max-width: $container_100;
45
- }
46
-
47
- .width-resize {
48
- resize: horizontal;
28
+ max-width: 1320px;
49
29
  }
@@ -4,11 +4,7 @@
4
4
  min-width: map-get($containers, 'none');
5
5
  }
6
6
 
7
- .min_width_none {
8
- min-width: none;
9
- }
10
-
11
- .min_width_0_percent {
7
+ .min_with_0_percent {
12
8
  min-width: $container_0;
13
9
  }
14
10
 
@@ -44,6 +40,6 @@
44
40
  min-width: $container_100;
45
41
  }
46
42
 
47
- .width-resize {
43
+ .minwidth-resize {
48
44
  resize: horizontal;
49
45
  }
@@ -7,6 +7,7 @@ export default [
7
7
  "right",
8
8
  "top",
9
9
  "hover",
10
+ "groupHover",
10
11
  "zIndex",
11
12
  "verticalAlign",
12
13
  "truncate",
@@ -29,7 +30,6 @@ export default [
29
30
  "numberSpacing",
30
31
  "maxWidth",
31
32
  "minWidth",
32
- "width",
33
33
  "marginRight",
34
34
  "marginLeft",
35
35
  "marginTop",
@@ -64,7 +64,6 @@ type Hover = Shadow & {
64
64
  background?: string,
65
65
  color?: string,
66
66
  scale?: "sm" | "md" | "lg",
67
- underline?: boolean,
68
67
  visibility?: boolean,
69
68
  }
70
69
 
@@ -96,16 +95,12 @@ type Margin = {
96
95
  default?: string
97
96
  }
98
97
 
99
- type Width = {
100
- width?: string
101
- }
102
-
103
98
  type MaxWidth = {
104
- maxWidth?: string,
99
+ maxWidth?: Sizes,
105
100
  }
106
101
 
107
102
  type MinWidth = {
108
- minWidth?: string,
103
+ minWidth?: Sizes,
109
104
  }
110
105
 
111
106
  type NumberSpacing = {
@@ -181,7 +176,7 @@ type ZIndex = {
181
176
  } | ZIndexResponsiveType
182
177
 
183
178
  type Height = {
184
- height?: string
179
+ height?: string
185
180
  }
186
181
 
187
182
  type MaxHeight = {
@@ -196,7 +191,7 @@ type MinHeight = {
196
191
  export type GlobalProps = AlignContent & AlignItems & AlignSelf &
197
192
  BorderRadius & Cursor & Dark & Display & DisplaySizes & Flex & FlexDirection &
198
193
  FlexGrow & FlexShrink & FlexWrap & JustifyContent & JustifySelf &
199
- LineHeight & Margin & Width & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
194
+ LineHeight & Margin & MinWidth & MaxWidth & NumberSpacing & Order & Overflow & Padding &
200
195
  Position & Shadow & TextAlign & Truncate & VerticalAlign & ZIndex & { hover?: string } & Top & Right & Bottom & Left & Height & MaxHeight & MinHeight;
201
196
 
202
197
  const getResponsivePropClasses = (prop: {[key: string]: string}, classPrefix: string) => {
@@ -237,7 +232,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
237
232
  if (!hover) return css;
238
233
  css += hover.shadow ? `hover_shadow_${hover.shadow} ` : '';
239
234
  css += hover.background ? `hover_background-${hover.background } ` : '';
240
- css += hover.underline ? `hover_underline ` : '';
241
235
  css += hover.scale ? `hover_scale_${hover.scale} ` : '';
242
236
  css += hover.color ? `hover_color-${hover.color } ` : '';
243
237
  css += hover.visibility ? `hover_visibility` : '';
@@ -357,11 +351,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
357
351
  css += numberSpacing ? `ns_${numberSpacing} ` : ''
358
352
  return css
359
353
  },
360
- widthProps: ({ width }: Width) => {
361
- let css = ''
362
- css += width ? `width_${filterClassName(width)} ` : ''
363
- return css.trimEnd()
364
- },
365
354
  minWidthProps: ({ minWidth }: MinWidth) => {
366
355
  let css = ''
367
356
  css += minWidth ? `min_width_${filterClassName(minWidth)} ` : ''
@@ -372,30 +361,6 @@ const PROP_CATEGORIES: {[key:string]: (props: {[key: string]: any}) => string} =
372
361
  css += maxWidth ? `max_width_${filterClassName(maxWidth)} ` : ''
373
362
  return css.trimEnd()
374
363
  },
375
- minHeightProps: ({ minHeight }: MinHeight) => {
376
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
377
- if (heightValues.includes(minHeight)) {
378
- let css = ''
379
- css += minHeight ? `min_height_${filterClassName(minHeight)} ` : ''
380
- return css.trimEnd()
381
- }
382
- },
383
- maxHeightProps: ({ maxHeight }: MaxHeight) => {
384
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
385
- if (heightValues.includes(maxHeight)) {
386
- let css = ''
387
- css += maxHeight ? `max_height_${filterClassName(maxHeight)} ` : ''
388
- return css.trimEnd()
389
- }
390
- },
391
- heightProps: ({ height }: Height) => {
392
- const heightValues = ["auto", "xs", "sm", "md", "lg", "xl", "xxl", "xxxl"]
393
- if (heightValues.includes(height)) {
394
- let css = ''
395
- css += height ? `height_${filterClassName(height)} ` : ''
396
- return css.trimEnd()
397
- }
398
- },
399
364
  zIndexProps: (zIndex: ZIndex) => {
400
365
  let css = ''
401
366
  Object.entries(zIndex).forEach((zIndexEntry) => {
@@ -57,19 +57,6 @@ test('Hover Props: returns proper class name', () => {
57
57
  expectedClassName = `hover_scale_xl`;
58
58
  expect(kit).toHaveClass(expectedClassName);
59
59
 
60
- const testIdUnderline = `${testSubject}-hover-underline`;
61
- render(
62
- <Body
63
- data={{ testid: testIdUnderline }}
64
- hover={{ underline: true }}
65
- text="Hi"
66
- />
67
- );
68
-
69
- kit = screen.getByTestId(testIdUnderline);
70
- expectedClassName = `hover_underline`;
71
- expect(kit).toHaveClass(expectedClassName);
72
-
73
60
  const testIdMultiple = `${testSubject}-hover-multiple`;
74
61
  render(
75
62
  <Body
@@ -79,7 +66,6 @@ test('Hover Props: returns proper class name', () => {
79
66
  background: 'error',
80
67
  shadow: 'deeper',
81
68
  scale: 'xl',
82
- underline: true,
83
69
  }}
84
70
  text="Hi"
85
71
  />
@@ -90,5 +76,4 @@ test('Hover Props: returns proper class name', () => {
90
76
  expect(kit).toHaveClass('hover_background-error');
91
77
  expect(kit).toHaveClass('hover_shadow_deeper');
92
78
  expect(kit).toHaveClass('hover_scale_xl');
93
- expect(kit).toHaveClass('hover_underline');
94
79
  });