playbook_ui 14.24.0.pre.rc.2 → 14.24.0.pre.rc.4
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/_playbook.scss +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableActionBar.tsx +10 -10
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +53 -1
- data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +9 -6
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.rb +12 -2
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table_action_bar.js +16 -0
- data/app/pb_kits/playbook/pb_advanced_table/scss_partials/advanced_table_sticky_mixin.scss +7 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +17 -1
- data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +6 -0
- data/app/pb_kits/playbook/pb_dropdown/_dropdown_mixin.scss +36 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options.jsx +90 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_active_style_options_react.md +4 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options.jsx +1 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_radio_options_react.md +1 -1
- data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_dropdown/docs/index.js +2 -1
- data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +24 -0
- data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +11 -1
- data/app/pb_kits/playbook/pb_pagination/_pagination.tsx +4 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_rails.md +3 -1
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_default_react.md +3 -1
- data/app/pb_kits/playbook/pb_select/select.rb +4 -2
- data/dist/chunks/_weekday_stacked-9aguRqOv.js +37 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/menu.yml +0 -7
- data/dist/playbook-doc.js +2 -2
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +6 -14
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.scss +0 -0
- data/app/pb_kits/playbook/pb_walkthrough/_walkthrough.tsx +0 -202
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_continuous.jsx +0 -69
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_default.jsx +0 -71
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_multi_beacon.jsx +0 -110
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_beacon.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_no_overlay.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/_walkthrough_styled.jsx +0 -76
- data/app/pb_kits/playbook/pb_walkthrough/docs/example.yml +0 -10
- data/app/pb_kits/playbook/pb_walkthrough/docs/index.js +0 -6
- data/app/pb_kits/playbook/pb_walkthrough/walkthrough.test.jsx +0 -34
- data/dist/chunks/_weekday_stacked-DfH_cGOX.js +0 -61
@@ -1,76 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import Button from '../../pb_button/_button'
|
3
|
-
import Walkthrough from '../../pb_walkthrough/_walkthrough'
|
4
|
-
|
5
|
-
const WalkthroughStyled = (props) => {
|
6
|
-
const [state, setState] = useState({
|
7
|
-
run: false,
|
8
|
-
steps: [
|
9
|
-
{
|
10
|
-
title: 'Example title',
|
11
|
-
content:
|
12
|
-
'This was an example of a Beacon in the Walkthrough Kit it is used as a simple indicator to inform users about a particular thing',
|
13
|
-
target: '.styled',
|
14
|
-
},
|
15
|
-
{
|
16
|
-
title: 'Toggle',
|
17
|
-
content:
|
18
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
19
|
-
target: '.pb_toggle_control',
|
20
|
-
},
|
21
|
-
{
|
22
|
-
title: 'Top Nav',
|
23
|
-
content:
|
24
|
-
'By default the walkthrough kit will cycle through each step provided.',
|
25
|
-
target: '.pb--page--topNav',
|
26
|
-
},
|
27
|
-
],
|
28
|
-
})
|
29
|
-
|
30
|
-
return (
|
31
|
-
<div>
|
32
|
-
<div
|
33
|
-
className="styled"
|
34
|
-
style={{ 'display': 'inline' }}
|
35
|
-
>
|
36
|
-
{'Start the Tour. Then click the Beacon to demo the default behavior of the Walkthrough Kit'}
|
37
|
-
</div>
|
38
|
-
<br />
|
39
|
-
<br />
|
40
|
-
<Button
|
41
|
-
onClick={() => {
|
42
|
-
setState({ ...state,
|
43
|
-
run: true,
|
44
|
-
})
|
45
|
-
}}
|
46
|
-
>
|
47
|
-
{'Start Tour'}
|
48
|
-
</Button>
|
49
|
-
<br />
|
50
|
-
<br />
|
51
|
-
<Button
|
52
|
-
onClick={() => {
|
53
|
-
setState({
|
54
|
-
...state,
|
55
|
-
run: false,
|
56
|
-
})
|
57
|
-
}}
|
58
|
-
>
|
59
|
-
{'Reset/Stop Tour'}
|
60
|
-
</Button>
|
61
|
-
|
62
|
-
<Walkthrough
|
63
|
-
run={state.run}
|
64
|
-
steps={state.steps}
|
65
|
-
styles={{
|
66
|
-
options: {
|
67
|
-
beaconSize: 120,
|
68
|
-
},
|
69
|
-
}}
|
70
|
-
{...props}
|
71
|
-
/>
|
72
|
-
</div>
|
73
|
-
)
|
74
|
-
}
|
75
|
-
|
76
|
-
export default WalkthroughStyled
|
@@ -1,6 +0,0 @@
|
|
1
|
-
export { default as WalkthroughDefault } from './_walkthrough_default.jsx'
|
2
|
-
export { default as WalkthroughContinuous } from './_walkthrough_continuous.jsx'
|
3
|
-
export { default as WalkthroughNoBeacon } from './_walkthrough_no_beacon.jsx'
|
4
|
-
export { default as WalkthroughMultiBeacon } from './_walkthrough_multi_beacon.jsx'
|
5
|
-
export { default as WalkthroughNoOverlay } from './_walkthrough_no_overlay.jsx'
|
6
|
-
export { default as WalkthroughStyled } from './_walkthrough_styled.jsx'
|
@@ -1,34 +0,0 @@
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
2
|
-
import { ensureAccessible, render, renderKit, screen } from '../utilities/test-utils'
|
3
|
-
import React from 'react'
|
4
|
-
import { Walkthrough } from 'playbook-ui'
|
5
|
-
|
6
|
-
/* See these resources for more testing info:
|
7
|
-
- https://github.com/testing-library/jest-dom#usage for useage and examples
|
8
|
-
- https://jestjs.io/docs/en/using-matchers
|
9
|
-
*/
|
10
|
-
|
11
|
-
const testId = 'walkthroughKitTest',
|
12
|
-
kitClass = 'pb_walkthrough'
|
13
|
-
|
14
|
-
test('expect kit to exist', () => {
|
15
|
-
const props = {
|
16
|
-
data: { testid: testId },
|
17
|
-
}
|
18
|
-
|
19
|
-
const kit = renderKit(Walkthrough, props)
|
20
|
-
expect(kit).toBeInTheDocument()
|
21
|
-
expect(kit).toHaveClass(kitClass)
|
22
|
-
})
|
23
|
-
|
24
|
-
test('returns namespaced class name', () => {
|
25
|
-
render(
|
26
|
-
<Walkthrough
|
27
|
-
className="additional_class"
|
28
|
-
data={{ testid: testId }}
|
29
|
-
/>
|
30
|
-
)
|
31
|
-
|
32
|
-
const kit = screen.getByTestId(testId)
|
33
|
-
expect(kit).toHaveClass('additional_class')
|
34
|
-
})
|