playbook_ui 13.31.0.pre.alpha.PLAY882formpillprimaryandneutral3201 → 13.31.0.pre.alpha.PLAY10863204
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +5 -108
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +2 -11
- data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
- data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +1 -5
- data/app/pb_kits/playbook/pb_table/_table.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/index.ts +4 -4
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_body.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_cell.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_head.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_header.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/subcomponents/_table_row.tsx +1 -1
- data/app/pb_kits/playbook/pb_table/table.test.js +2 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +1 -1
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_textarea/_textarea.tsx +45 -27
- data/app/pb_kits/playbook/pb_textarea/index.tsx +3 -3
- data/app/pb_kits/playbook/pb_time/_time.tsx +3 -3
- data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_item.tsx +1 -1
- data/app/pb_kits/playbook/pb_timeline/_timeline.tsx +1 -1
- data/app/pb_kits/playbook/pb_title_detail/_title_detail.tsx +10 -10
- data/app/pb_kits/playbook/pb_toggle/_toggle.tsx +1 -1
- data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +2 -2
- data/app/pb_kits/playbook/pb_treemap_chart/_treemap_chart.tsx +1 -2
- data/app/pb_kits/playbook/pb_treemap_chart/treemapChart.test.js +2 -0
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +4 -4
- data/app/pb_kits/playbook/pb_typeahead/components/Control.tsx +11 -7
- data/app/pb_kits/playbook/pb_typeahead/components/IndicatorsContainer.tsx +8 -3
- data/app/pb_kits/playbook/pb_typeahead/components/MenuList.tsx +6 -1
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +18 -19
- data/app/pb_kits/playbook/pb_typeahead/components/Option.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/Placeholder.tsx +6 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +3 -3
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +2 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -2
- data/app/pb_kits/playbook/pb_typeahead/index.ts +31 -31
- data/app/pb_kits/playbook/pb_user/_user.tsx +1 -1
- data/app/pb_kits/playbook/pb_user_badge/_user_badge.tsx +6 -6
- data/app/pb_kits/playbook/pb_user_badge/badges/million-dollar.tsx +236 -235
- data/app/pb_kits/playbook/pb_user_badge/badges/veteran.tsx +1 -1
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +68 -63
- data/app/pb_kits/playbook/pb_weekday_stacked/_weekday_stacked.tsx +2 -2
- data/dist/playbook-rails.js +2 -2
- data/lib/playbook/version.rb +1 -1
- metadata +1 -2
- data/app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx +0 -53
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 13.31.0.pre.alpha.
|
4
|
+
version: 13.31.0.pre.alpha.PLAY10863204
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -1323,7 +1323,6 @@ files:
|
|
1323
1323
|
- app/pb_kits/playbook/pb_form_group/form_group.rb
|
1324
1324
|
- app/pb_kits/playbook/pb_form_group/form_group.test.js
|
1325
1325
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.scss
|
1326
|
-
- app/pb_kits/playbook/pb_form_pill/_form_pill.test.jsx
|
1327
1326
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.tsx
|
1328
1327
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.html.erb
|
1329
1328
|
- app/pb_kits/playbook/pb_form_pill/docs/_form_pill_example.jsx
|
@@ -1,53 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import { render, screen } from '../utilities/test-utils';
|
3
|
-
import FormPill from './_form_pill';
|
4
|
-
|
5
|
-
const testId = 'formpill';
|
6
|
-
|
7
|
-
test('should render classname', () => {
|
8
|
-
render(
|
9
|
-
<FormPill
|
10
|
-
data={{ testid: testId }}
|
11
|
-
text="test"
|
12
|
-
/>
|
13
|
-
)
|
14
|
-
|
15
|
-
const kit = screen.getByTestId(testId)
|
16
|
-
expect(kit).toHaveClass('pb_form_pill_kit_primary none')
|
17
|
-
});
|
18
|
-
|
19
|
-
test('displays text content', () => {
|
20
|
-
render(
|
21
|
-
<FormPill
|
22
|
-
data={{ testid: testId }}
|
23
|
-
text="test"
|
24
|
-
/>
|
25
|
-
)
|
26
|
-
|
27
|
-
const text = screen.getByText("test")
|
28
|
-
expect(text).toBeInTheDocument()
|
29
|
-
});
|
30
|
-
|
31
|
-
test('displays color variant', () => {
|
32
|
-
render(
|
33
|
-
<FormPill
|
34
|
-
color={"neutral"}
|
35
|
-
data={{ testid: testId }}
|
36
|
-
text={"test"}
|
37
|
-
/>
|
38
|
-
)
|
39
|
-
const kit = screen.getByTestId(testId)
|
40
|
-
expect(kit).toHaveClass(`pb_form_pill_kit_neutral none`)
|
41
|
-
});
|
42
|
-
|
43
|
-
test('displays size variant', () => {
|
44
|
-
render(
|
45
|
-
<FormPill
|
46
|
-
data={{ testid: testId }}
|
47
|
-
size={"small"}
|
48
|
-
text={"test"}
|
49
|
-
/>
|
50
|
-
)
|
51
|
-
const kit = screen.getByTestId('formpill')
|
52
|
-
expect(kit).toHaveClass(`pb_form_pill_kit_primary small none`)
|
53
|
-
});
|