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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +8 -10
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +3 -0
- data/app/pb_kits/playbook/pb_contact/_contact.tsx +24 -51
- data/app/pb_kits/playbook/pb_contact/contact.html.erb +19 -53
- data/app/pb_kits/playbook/pb_contact/contact.rb +1 -11
- data/app/pb_kits/playbook/pb_contact/contact.test.js +0 -76
- data/app/pb_kits/playbook/pb_contact/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_contact/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +0 -24
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -181
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +88 -91
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +1 -1
- data/app/pb_kits/playbook/pb_filter/Filter/FilterBackground.tsx +3 -3
- data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
- data/app/pb_kits/playbook/pb_select/_select.tsx +3 -8
- data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
- data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
- data/app/pb_kits/playbook/pb_select/select.rb +1 -3
- data/app/pb_kits/playbook/pb_select/select.test.js +0 -23
- data/app/pb_kits/playbook/pb_table/_table.tsx +33 -187
- data/app/pb_kits/playbook/pb_table/docs/example.yml +0 -4
- data/app/pb_kits/playbook/pb_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_table/table.html.erb +12 -68
- data/app/pb_kits/playbook/pb_table/table.rb +3 -22
- data/app/pb_kits/playbook/pb_table/table.test.js +0 -143
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +0 -3
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_with_date.md +1 -1
- data/app/pb_kits/playbook/pb_timeline/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_timeline/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_timeline/item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_timeline/item.rb +0 -2
- data/app/pb_kits/playbook/pb_timeline/label.html.erb +1 -2
- data/app/pb_kits/playbook/pb_timeline/label.rb +0 -2
- data/app/pb_kits/playbook/pb_timeline/subcomponents/Label.tsx +0 -3
- data/app/pb_kits/playbook/pb_timeline/timeline.test.js +0 -51
- data/app/pb_kits/playbook/tokens/_colors.scss +1 -2
- data/dist/chunks/_typeahead-319r1pyq.js +6 -0
- data/dist/chunks/lib-CgpqUb6l.js +29 -0
- data/dist/chunks/vendor.js +3 -3
- 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/forms/builder/collection_select_field.rb +1 -9
- data/lib/playbook/forms/builder/select_field.rb +1 -9
- data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -9
- data/lib/playbook/pb_kit_helper.rb +0 -35
- data/lib/playbook/version.rb +1 -1
- metadata +4 -23
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.html.erb +0 -33
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled.jsx +0 -46
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_rails.md +0 -2
- data/app/pb_kits/playbook/pb_contact/docs/_contact_unstyled_react.md +0 -2
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +0 -30
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.jsx +0 -134
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant.md +0 -34
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.html.erb +0 -101
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_rails.md +0 -33
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.jsx +0 -180
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.html.erb +0 -122
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_with_pagination_rails.md +0 -3
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.html.erb +0 -60
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.jsx +0 -118
- data/app/pb_kits/playbook/pb_timeline/docs/_timeline_show_current_year.md +0 -1
- data/app/pb_kits/playbook/utilities/deprecated.ts +0 -73
- data/dist/chunks/_typeahead-CHwm9MTE.js +0 -6
- data/dist/chunks/lib-Cugvy62C.js +0 -29
|
@@ -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 ------------------------*/
|