@semcore/dropdown
Advanced tools
Comparing version 4.36.3 to 4.36.4-prerelease.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [4.36.4] - 2024-08-28 | ||
### Added | ||
- `aria-haspopup=dialog` in Trigger. | ||
## [4.36.3] - 2024-08-20 | ||
@@ -7,0 +13,0 @@ |
@@ -30,7 +30,6 @@ "use strict"; | ||
var _useFocusLock = require("@semcore/utils/lib/use/useFocusLock"); | ||
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance")); | ||
var _excluded = ["Children", "forwardRef", "modifiers", "stretch"]; | ||
/*__reshadow-styles__:"./style/dropdown.shadow.css"*/ | ||
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownPopper_14b3o_gg_{position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);white-space:normal;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "14b3o_gg_") /*__reshadow_css_end__*/, { | ||
"__SDropdownPopper": "___SDropdownPopper_14b3o_gg_" | ||
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SDropdownPopper_1r0rx_gg_{position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);white-space:normal;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "1r0rx_gg_") /*__reshadow_css_end__*/, { | ||
"__SDropdownPopper": "___SDropdownPopper_1r0rx_gg_" | ||
}); | ||
@@ -113,3 +112,4 @@ var INTERACTION_TAGS = ['INPUT', 'TEXTAREA']; | ||
'aria-expanded': visible ? 'true' : 'false', | ||
onKeyDown: this.handlerTriggerKeyDown | ||
onKeyDown: this.handlerTriggerKeyDown, | ||
'aria-haspopup': 'dialog' | ||
}; | ||
@@ -116,0 +116,0 @@ } |
@@ -25,7 +25,6 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2"; | ||
/*__reshadow-styles__:"./style/dropdown.shadow.css"*/ | ||
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownPopper_14b3o_gg_{position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);white-space:normal;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "14b3o_gg_") /*__reshadow_css_end__*/, { | ||
"__SDropdownPopper": "___SDropdownPopper_14b3o_gg_" | ||
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDropdownPopper_1r0rx_gg_{position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;border:1px solid var(--intergalactic-border-secondary, #e0e1e9);white-space:normal;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));color:var(--intergalactic-text-primary, #191b23)}" /*__inner_css_end__*/, "1r0rx_gg_") /*__reshadow_css_end__*/, { | ||
"__SDropdownPopper": "___SDropdownPopper_1r0rx_gg_" | ||
}); | ||
import { hasFocusableIn } from '@semcore/utils/lib/use/useFocusLock'; | ||
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance'; | ||
var INTERACTION_TAGS = ['INPUT', 'TEXTAREA']; | ||
@@ -107,3 +106,4 @@ var Dropdown = /*#__PURE__*/function (_Component) { | ||
'aria-expanded': visible ? 'true' : 'false', | ||
onKeyDown: this.handlerTriggerKeyDown | ||
onKeyDown: this.handlerTriggerKeyDown, | ||
'aria-haspopup': 'dialog' | ||
}; | ||
@@ -110,0 +110,0 @@ } |
{ | ||
"name": "@semcore/dropdown", | ||
"description": "Semrush Dropdown Component", | ||
"version": "4.36.3", | ||
"version": "4.36.4-prerelease.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -12,8 +12,8 @@ "module": "lib/es6/index.js", | ||
"dependencies": { | ||
"@semcore/flex-box": "5.31.2", | ||
"@semcore/popper": "5.39.4", | ||
"@semcore/utils": "4.32.2" | ||
"@semcore/flex-box": "5.32.0-prerelease.0", | ||
"@semcore/popper": "5.39.5-prerelease.0", | ||
"@semcore/utils": "4.35.0-prerelease.0" | ||
}, | ||
"peerDependencies": { | ||
"@semcore/core": "^2.17.5", | ||
"@semcore/core": "^2.30.0-prerelease.0", | ||
"react": "16.8 - 18", | ||
@@ -20,0 +20,0 @@ "react-dom": "16.8 - 18" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85239
2
+ Added@semcore/animation@2.32.0-prerelease.0(transitive)
+ Added@semcore/flex-box@5.32.0-prerelease.0(transitive)
+ Added@semcore/neighbor-location@4.30.0-prerelease.0(transitive)
+ Added@semcore/outside-click@3.30.0-prerelease.0(transitive)
+ Added@semcore/popper@5.39.5-prerelease.0(transitive)
+ Added@semcore/portal@3.32.0-prerelease.0(transitive)
+ Added@semcore/utils@4.35.0-prerelease.0(transitive)
- Removed@semcore/animation@2.31.2(transitive)
- Removed@semcore/flex-box@5.31.2(transitive)
- Removed@semcore/neighbor-location@4.29.2(transitive)
- Removed@semcore/outside-click@3.29.2(transitive)
- Removed@semcore/popper@5.39.4(transitive)
- Removed@semcore/portal@3.31.2(transitive)
- Removed@semcore/utils@4.32.2(transitive)