@woosmap/ui 4.228.9 → 4.229.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.228.9",
3
+ "version": "4.229.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -21,6 +21,7 @@ export default class Button extends Component {
21
21
  className,
22
22
  disabled,
23
23
  label,
24
+ ariaLabel,
24
25
  onClick,
25
26
  isLoading,
26
27
  active,
@@ -53,7 +54,7 @@ export default class Button extends Component {
53
54
  <button
54
55
  ref={this.elementRef}
55
56
  type={submitType ? 'submit' : 'button'}
56
- aria-label={label}
57
+ aria-label={ariaLabel}
57
58
  disabled={disabled}
58
59
  onClick={isLoading || disabled ? undefined : onClick}
59
60
  {...rest}
@@ -78,6 +79,7 @@ Button.defaultProps = {
78
79
  type: 'primary',
79
80
  className: '',
80
81
  label: '',
82
+ ariaLabel: null,
81
83
  icon: null,
82
84
  iconSize: 22,
83
85
  isLoading: false,
@@ -118,6 +120,7 @@ Button.propTypes = {
118
120
  isLoading: PropTypes.bool,
119
121
  active: PropTypes.bool,
120
122
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
123
+ ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
121
124
  icon: PropTypes.string,
122
125
  iconSize: PropTypes.number,
123
126
  className: PropTypes.string,
@@ -370,6 +370,7 @@ class Dropdown extends Component {
370
370
  disabled,
371
371
  className,
372
372
  label,
373
+ ariaLabel,
373
374
  btnFace,
374
375
  btnSize,
375
376
  btnFaceIcon,
@@ -405,6 +406,7 @@ class Dropdown extends Component {
405
406
  size={btnSize}
406
407
  iconSize={btnFaceIconSize}
407
408
  label={label}
409
+ ariaLabel={ariaLabel}
408
410
  testId={testId}
409
411
  onMouseEnter={this.onMouseEnter}
410
412
  onMouseLeave={this.onMouseLeave}
@@ -424,6 +426,7 @@ Dropdown.defaultProps = {
424
426
  disableCloseOutside: false,
425
427
  onDoubleClick: null,
426
428
  label: null,
429
+ ariaLabel: null,
427
430
  className: null,
428
431
  closeCb: null,
429
432
  openOnMouseEnter: false,
@@ -443,6 +446,7 @@ Dropdown.propTypes = {
443
446
  disableCloseOutside: PropTypes.bool,
444
447
  openOnMouseEnter: PropTypes.bool,
445
448
  label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
449
+ ariaLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
446
450
  testId: PropTypes.string,
447
451
  children: PropTypes.node.isRequired,
448
452
  className: PropTypes.string,
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
@@ -1,30 +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="16">
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
- <item index="4" class="java.lang.String" itemvalue="schedule" />
14
- <item index="5" class="java.lang.String" itemvalue="tzlocal" />
15
- <item index="6" class="java.lang.String" itemvalue="pydantic" />
16
- <item index="7" class="java.lang.String" itemvalue="django" />
17
- <item index="8" class="java.lang.String" itemvalue="django-cors-middleware" />
18
- <item index="9" class="java.lang.String" itemvalue="timezonefinder" />
19
- <item index="10" class="java.lang.String" itemvalue="application_kit" />
20
- <item index="11" class="java.lang.String" itemvalue="requests" />
21
- <item index="12" class="java.lang.String" itemvalue="PLY" />
22
- <item index="13" class="java.lang.String" itemvalue="ddtrace" />
23
- <item index="14" class="java.lang.String" itemvalue="humanize" />
24
- <item index="15" class="java.lang.String" itemvalue="types-redis" />
25
- </list>
26
- </value>
27
- </option>
28
- </inspection_tool>
29
- </profile>
30
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <settings>
3
- <option name="USE_PROJECT_PROFILE" value="false" />
4
- <version value="1.0" />
5
- </settings>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
4
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/ui.iml" filepath="$PROJECT_DIR$/.idea/ui.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/.idea/ui.iml DELETED
@@ -1,8 +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
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>