@semcore/popper
Advanced tools
Comparing version 5.36.0 to 5.36.1-prerelease.0
@@ -5,2 +5,8 @@ # Changelog | ||
## [5.36.1] - 2024-06-14 | ||
### Added | ||
- Possibility to open `focusable` popper by click on it (if the trigger is already focused). | ||
## [5.36.0] - 2024-06-13 | ||
@@ -7,0 +13,0 @@ |
@@ -44,8 +44,8 @@ "use strict"; | ||
/*__reshadow-styles__:"./style/popper.shadow.css"*/ | ||
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPopper_12xxf_gg_{outline:0;z-index:var(--intergalactic-z-index-popper, 700);color:var(--intergalactic-text-primary, #191b23)}.___SPopper_12xxf_gg_.__keyboardFocused_12xxf_gg_:focus:after{position:absolute;display:block;content:\"\";top:0;right:0;bottom:0;left:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));pointer-events:none;border-radius:var(--intergalactic-popper-rounded, 6px)}.___SPopper_12xxf_gg_.__keyboardFocused_12xxf_gg_.__hideFocus_12xxf_gg_:focus:after{box-shadow:none}.___SFocusHint_12xxf_gg_{display:none}.___STrigger_12xxf_gg_:focus .___SFocusHint_12xxf_gg_,.___STrigger_12xxf_gg_:focus-within .___SFocusHint_12xxf_gg_{display:inline}" /*__inner_css_end__*/, "12xxf_gg_") /*__reshadow_css_end__*/, { | ||
"__SPopper": "___SPopper_12xxf_gg_", | ||
"_keyboardFocused": "__keyboardFocused_12xxf_gg_", | ||
"_hideFocus": "__hideFocus_12xxf_gg_", | ||
"__SFocusHint": "___SFocusHint_12xxf_gg_", | ||
"__STrigger": "___STrigger_12xxf_gg_" | ||
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SPopper_jht5t_gg_{outline:0;z-index:var(--intergalactic-z-index-popper, 700);color:var(--intergalactic-text-primary, #191b23)}.___SPopper_jht5t_gg_.__keyboardFocused_jht5t_gg_:focus:after{position:absolute;display:block;content:\"\";top:0;right:0;bottom:0;left:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));pointer-events:none;border-radius:var(--intergalactic-popper-rounded, 6px)}.___SPopper_jht5t_gg_.__keyboardFocused_jht5t_gg_.__hideFocus_jht5t_gg_:focus:after{box-shadow:none}.___SFocusHint_jht5t_gg_{display:none}.___STrigger_jht5t_gg_:focus .___SFocusHint_jht5t_gg_,.___STrigger_jht5t_gg_:focus-within .___SFocusHint_jht5t_gg_{display:inline}" /*__inner_css_end__*/, "jht5t_gg_") /*__reshadow_css_end__*/, { | ||
"__SPopper": "___SPopper_jht5t_gg_", | ||
"_keyboardFocused": "__keyboardFocused_jht5t_gg_", | ||
"_hideFocus": "__hideFocus_jht5t_gg_", | ||
"__SFocusHint": "___SFocusHint_jht5t_gg_", | ||
"__STrigger": "___STrigger_jht5t_gg_" | ||
}); | ||
@@ -108,3 +108,3 @@ function isObject(obj) { | ||
focus: { | ||
trigger: [['onFocus'], ['onBlur']], | ||
trigger: [['onFocus', 'onClick'], ['onBlur']], | ||
// to intercept faster than onBlur on the trigger | ||
@@ -111,0 +111,0 @@ popper: [['onFocusCapture'], ['onBlur']] |
@@ -38,8 +38,8 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2"; | ||
/*__reshadow-styles__:"./style/popper.shadow.css"*/ | ||
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_12xxf_gg_{outline:0;z-index:var(--intergalactic-z-index-popper, 700);color:var(--intergalactic-text-primary, #191b23)}.___SPopper_12xxf_gg_.__keyboardFocused_12xxf_gg_:focus:after{position:absolute;display:block;content:\"\";top:0;right:0;bottom:0;left:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));pointer-events:none;border-radius:var(--intergalactic-popper-rounded, 6px)}.___SPopper_12xxf_gg_.__keyboardFocused_12xxf_gg_.__hideFocus_12xxf_gg_:focus:after{box-shadow:none}.___SFocusHint_12xxf_gg_{display:none}.___STrigger_12xxf_gg_:focus .___SFocusHint_12xxf_gg_,.___STrigger_12xxf_gg_:focus-within .___SFocusHint_12xxf_gg_{display:inline}" /*__inner_css_end__*/, "12xxf_gg_") /*__reshadow_css_end__*/, { | ||
"__SPopper": "___SPopper_12xxf_gg_", | ||
"_keyboardFocused": "__keyboardFocused_12xxf_gg_", | ||
"_hideFocus": "__hideFocus_12xxf_gg_", | ||
"__SFocusHint": "___SFocusHint_12xxf_gg_", | ||
"__STrigger": "___STrigger_12xxf_gg_" | ||
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPopper_jht5t_gg_{outline:0;z-index:var(--intergalactic-z-index-popper, 700);color:var(--intergalactic-text-primary, #191b23)}.___SPopper_jht5t_gg_.__keyboardFocused_jht5t_gg_:focus:after{position:absolute;display:block;content:\"\";top:0;right:0;bottom:0;left:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));pointer-events:none;border-radius:var(--intergalactic-popper-rounded, 6px)}.___SPopper_jht5t_gg_.__keyboardFocused_jht5t_gg_.__hideFocus_jht5t_gg_:focus:after{box-shadow:none}.___SFocusHint_jht5t_gg_{display:none}.___STrigger_jht5t_gg_:focus .___SFocusHint_jht5t_gg_,.___STrigger_jht5t_gg_:focus-within .___SFocusHint_jht5t_gg_{display:inline}" /*__inner_css_end__*/, "jht5t_gg_") /*__reshadow_css_end__*/, { | ||
"__SPopper": "___SPopper_jht5t_gg_", | ||
"_keyboardFocused": "__keyboardFocused_jht5t_gg_", | ||
"_hideFocus": "__hideFocus_jht5t_gg_", | ||
"__SFocusHint": "___SFocusHint_jht5t_gg_", | ||
"__STrigger": "___STrigger_jht5t_gg_" | ||
}); | ||
@@ -101,3 +101,3 @@ function isObject(obj) { | ||
focus: { | ||
trigger: [['onFocus'], ['onBlur']], | ||
trigger: [['onFocus', 'onClick'], ['onBlur']], | ||
// to intercept faster than onBlur on the trigger | ||
@@ -104,0 +104,0 @@ popper: [['onFocusCapture'], ['onBlur']] |
{ | ||
"name": "@semcore/popper", | ||
"description": "Semrush Popper Component", | ||
"version": "5.36.0", | ||
"version": "5.36.1-prerelease.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "lib/es6/index.js", |
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
267730
2