@woosmap/ui 4.0.2 → 4.2.0
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.
- package/package.json +1 -1
- package/src/components/Dropdown/Dropdown.js +1 -1
- package/src/components/Dropdown/Dropdown.styl +5 -0
- package/src/components/Dropdown/Dropdown.test.js +4 -0
- package/.idea/encodings.xml +0 -6
- package/.idea/inspectionProfiles/Project_Default.xml +0 -18
- package/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- package/.idea/misc.xml +0 -4
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -6
- package/.idea/ui.iml +0 -15
- package/.idea/vcs.xml +0 -6
package/package.json
CHANGED
|
@@ -424,7 +424,7 @@ Dropdown.propTypes = {
|
|
|
424
424
|
testId: PropTypes.string,
|
|
425
425
|
children: PropTypes.node.isRequired,
|
|
426
426
|
className: PropTypes.string,
|
|
427
|
-
btnFace: PropTypes.oneOf(['link-flex', 'primary', 'secondary', 'important', 'transparent', 'link']),
|
|
427
|
+
btnFace: PropTypes.oneOf(['link-flex', 'primary', 'secondary', 'important', 'transparent', 'link', 'sidebar-link']),
|
|
428
428
|
btnFaceIcon: PropTypes.string,
|
|
429
429
|
size: PropTypes.oneOf(['normal', 'small', 'mini']),
|
|
430
430
|
btnSize: PropTypes.oneOf(['large', 'normal', 'small', 'mini']),
|
|
@@ -3,6 +3,7 @@ import { fireEvent, render, screen } from '@testing-library/react';
|
|
|
3
3
|
import '@testing-library/jest-dom/extend-expect';
|
|
4
4
|
import 'resize-observer-polyfill/dist/ResizeObserver.global';
|
|
5
5
|
|
|
6
|
+
import { act } from 'react-dom/test-utils';
|
|
6
7
|
import Dropdown from './Dropdown';
|
|
7
8
|
|
|
8
9
|
it('renders a Dropdown component ', () => {
|
|
@@ -14,6 +15,9 @@ it('renders a Dropdown component ', () => {
|
|
|
14
15
|
</Dropdown>
|
|
15
16
|
);
|
|
16
17
|
expect(getByTestId('dropdown').parentElement).toHaveClass('dropdown');
|
|
18
|
+
act(() => {
|
|
19
|
+
fireEvent.click(getByTestId('dropdown'));
|
|
20
|
+
})
|
|
17
21
|
const menu = screen.getByRole('menu');
|
|
18
22
|
expect(menu).toHaveClass('dropdown__menu');
|
|
19
23
|
});
|
package/.idea/encodings.xml
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<component name="InspectionProjectProfileManager">
|
|
2
|
-
<profile version="1.0">
|
|
3
|
-
<option name="myName" value="Project Default" />
|
|
4
|
-
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
5
|
-
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
|
6
|
-
<option name="ignoredPackages">
|
|
7
|
-
<value>
|
|
8
|
-
<list size="4">
|
|
9
|
-
<item index="0" class="java.lang.String" itemvalue="Fabric" />
|
|
10
|
-
<item index="1" class="java.lang.String" itemvalue="PyYAML" />
|
|
11
|
-
<item index="2" class="java.lang.String" itemvalue="Jinja2" />
|
|
12
|
-
<item index="3" class="java.lang.String" itemvalue="github3.py" />
|
|
13
|
-
</list>
|
|
14
|
-
</value>
|
|
15
|
-
</option>
|
|
16
|
-
</inspection_tool>
|
|
17
|
-
</profile>
|
|
18
|
-
</component>
|
package/.idea/misc.xml
DELETED
package/.idea/modules.xml
DELETED
package/.idea/prettier.xml
DELETED
package/.idea/ui.iml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="PYTHON_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$" />
|
|
5
|
-
<orderEntry type="inheritedJdk" />
|
|
6
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
-
</component>
|
|
8
|
-
<component name="TemplatesService">
|
|
9
|
-
<option name="TEMPLATE_FOLDERS">
|
|
10
|
-
<list>
|
|
11
|
-
<option value="$MODULE_DIR$/node_modules/@storybook/core/dist/server/templates" />
|
|
12
|
-
</list>
|
|
13
|
-
</option>
|
|
14
|
-
</component>
|
|
15
|
-
</module>
|