playbook_ui 15.6.0.pre.alpha.PLAY2686contactkittextonly13049 → 15.6.0.pre.alpha.draggableask12898

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 (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  3. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  4. data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
  5. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +8 -10
  6. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -0
  7. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +3 -0
  8. data/app/pb_kits/playbook/pb_contact/_contact.tsx +24 -51
  9. data/app/pb_kits/playbook/pb_contact/contact.html.erb +19 -53
  10. data/app/pb_kits/playbook/pb_contact/contact.rb +1 -11
  11. data/app/pb_kits/playbook/pb_contact/contact.test.js +0 -76
  12. data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -2
  13. data/app/pb_kits/playbook/pb_contact/docs/index.js +0 -1
  14. data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +0 -24
  15. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -181
  16. data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
  17. data/app/pb_kits/playbook/pb_draggable/context/index.tsx +88 -91
  18. data/app/pb_kits/playbook/pb_draggable/context/types.ts +1 -1
  19. data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx +3 -3
  20. data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
  21. data/app/pb_kits/playbook/pb_select/_select.tsx +3 -8
  22. data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
  23. data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -2
  24. data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
  25. data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
  26. data/app/pb_kits/playbook/pb_select/select.rb +1 -3
  27. data/app/pb_kits/playbook/pb_select/select.test.js +0 -23
  28. data/app/pb_kits/playbook/pb_table/_table.tsx +33 -187
  29. data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -4
  30. data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
  31. data/app/pb_kits/playbook/pb_table/table.html.erb +12 -68
  32. data/app/pb_kits/playbook/pb_table/table.rb +3 -22
  33. data/app/pb_kits/playbook/pb_table/table.test.js +0 -143
  34. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
  35. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
  36. data/app/pb_kits/playbook/pb_timeline/_item.tsx +0 -3
  37. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
  38. data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
  39. data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
  40. data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -1
  41. data/app/pb_kits/playbook/pb_timeline/item.rb +0 -2
  42. data/app/pb_kits/playbook/pb_timeline/label.html.erb +1 -2
  43. data/app/pb_kits/playbook/pb_timeline/label.rb +0 -2
  44. data/app/pb_kits/playbook/pb_timeline/subcomponents/Label.tsx +0 -3
  45. data/app/pb_kits/playbook/pb_timeline/timeline.test.js +0 -51
  46. data/app/pb_kits/playbook/tokens/_colors.scss +1 -2
  47. data/dist/chunks/_typeahead-319r1pyq.js +6 -0
  48. data/dist/chunks/lib-CgpqUb6l.js +29 -0
  49. data/dist/chunks/vendor.js +3 -3
  50. data/dist/playbook-rails-react-bindings.js +1 -1
  51. data/dist/playbook-rails.js +1 -1
  52. data/dist/playbook.css +1 -1
  53. data/lib/playbook/forms/builder/collection_select_field.rb +1 -9
  54. data/lib/playbook/forms/builder/select_field.rb +1 -9
  55. data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -9
  56. data/lib/playbook/pb_kit_helper.rb +0 -35
  57. data/lib/playbook/version.rb +1 -1
  58. metadata +4 -23
  59. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +0 -33
  60. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +0 -46
  61. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +0 -2
  62. data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +0 -2
  63. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +0 -16
  64. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +0 -30
  65. data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +0 -1
  66. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +0 -134
  67. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +0 -34
  68. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +0 -101
  69. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +0 -33
  70. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +0 -180
  71. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +0 -3
  72. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +0 -122
  73. data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +0 -3
  74. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
  75. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
  76. data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
  77. data/app/pb_kits/playbook/utilities/deprecated.ts +0 -73
  78. data/dist/chunks/_typeahead-CHwm9MTE.js +0 -6
  79. data/dist/chunks/lib-Cugvy62C.js +0 -29
@@ -3,8 +3,7 @@
3
3
  <%= pb_rails("date_stacked", props: {
4
4
  date: object.date,
5
5
  size: "sm",
6
- align: "center",
7
- show_current_year: object.show_current_year
6
+ align: "center"
8
7
  }) %>
9
8
  <% else %>
10
9
  <%= content.presence %>
@@ -4,8 +4,6 @@ module Playbook
4
4
  module PbTimeline
5
5
  class Label < Playbook::KitBase
6
6
  prop :date
7
- prop :show_current_year, type: Playbook::Props::Boolean,
8
- default: false
9
7
 
10
8
  def classname
11
9
  generate_classname("pb_timeline_item_left_block")
@@ -9,7 +9,6 @@ type TimelineLabelProps = {
9
9
  children?: React.ReactNode,
10
10
  className?: string,
11
11
  htmlOptions?: { [key: string]: any },
12
- showCurrentYear?: boolean,
13
12
  } & GlobalProps
14
13
 
15
14
  const TimelineLabel: React.FC<TimelineLabelProps> = ({
@@ -17,7 +16,6 @@ const TimelineLabel: React.FC<TimelineLabelProps> = ({
17
16
  children,
18
17
  className,
19
18
  htmlOptions = {},
20
- showCurrentYear = false,
21
19
  ...props
22
20
  }) => {
23
21
  const htmlProps = buildHtmlProps(htmlOptions)
@@ -30,7 +28,6 @@ const TimelineLabel: React.FC<TimelineLabelProps> = ({
30
28
  {date && (
31
29
  <DateStacked align="center"
32
30
  date={date}
33
- showCurrentYear={showCurrentYear}
34
31
  size="sm"
35
32
  />
36
33
  )}
@@ -170,54 +170,3 @@ test('should pass showDate prop with Children', () => {
170
170
  const kit = screen.getByTestId(testId)
171
171
  expect(kit).toHaveClass('pb_timeline_kit_horizontal_with_date')
172
172
  })
173
-
174
- test('should pass showCurrentYear prop to items with date', () => {
175
- const currentYear = new Date().getFullYear().toString()
176
- render(
177
- <Timeline
178
- data={{ testid: testId }}
179
- showDate
180
- >
181
- <Timeline.Item
182
- date={new Date()}
183
- icon="user"
184
- iconColor="royal"
185
- showCurrentYear
186
- >
187
- <TitleDetail
188
- detail="37-27 74th Street"
189
- title="Jackson Heights"
190
- />
191
- </Timeline.Item>
192
- </Timeline>
193
- )
194
- const kit = screen.getByTestId(testId)
195
- expect(kit).toBeInTheDocument()
196
- const yearCaption = kit.querySelector('.pb_caption_kit_xs')
197
- expect(yearCaption).toBeInTheDocument()
198
- expect(yearCaption.textContent).toEqual(currentYear)
199
- })
200
-
201
- test('should not show current year by default', () => {
202
- const currentYear = new Date().getFullYear().toString()
203
- render(
204
- <Timeline
205
- data={{ testid: testId }}
206
- showDate
207
- >
208
- <Timeline.Item
209
- date={new Date()}
210
- icon="user"
211
- iconColor="royal"
212
- >
213
- <TitleDetail
214
- detail="37-27 74th Street"
215
- title="Jackson Heights"
216
- />
217
- </Timeline.Item>
218
- </Timeline>
219
- )
220
- const kit = screen.getByTestId(testId)
221
- expect(kit).toBeInTheDocument()
222
- expect(kit).not.toHaveTextContent(currentYear)
223
- })
@@ -139,8 +139,7 @@ $text_colors: (
139
139
  text_lt_lighter: $text_lt_lighter,
140
140
  text_dk_default: $text_dk_default,
141
141
  text_dk_light: $text_dk_light,
142
- text_dk_lighter: $text_dk_lighter,
143
- text_dk_success_sm: $text_dk_success_sm
142
+ text_dk_lighter: $text_dk_lighter
144
143
  );
145
144
 
146
145
  /* Data colors ------------------------*/