@hashrytech/quick-components-kit 0.16.4 → 0.16.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @hashrytech/quick-components-kit
|
|
2
2
|
|
|
3
|
+
## 0.16.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor: Going back to previous approach for disable-scroll
|
|
8
|
+
|
|
9
|
+
## 0.16.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix: Fix props for drawer ally
|
|
14
|
+
|
|
3
15
|
## 0.16.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -13,12 +13,9 @@ export function disableScroll(node, enabled = true) {
|
|
|
13
13
|
const originalBodyWidth = document.body.style.width;
|
|
14
14
|
const originalTop = document.body.style.top;
|
|
15
15
|
const originalOverflow = document.documentElement.style.overflowY;
|
|
16
|
-
const hasVerticalScrollbar = document.documentElement.scrollHeight > document.documentElement.clientHeight;
|
|
17
16
|
function applyLock() {
|
|
18
17
|
document.body.style.top = `-${scrollTop}px`;
|
|
19
|
-
|
|
20
|
-
document.documentElement.style.overflowY = 'scroll'; // ensure layout doesn't shift
|
|
21
|
-
}
|
|
18
|
+
document.documentElement.style.overflowY = 'scroll';
|
|
22
19
|
document.body.style.position = 'fixed';
|
|
23
20
|
document.body.style.width = '100%';
|
|
24
21
|
}
|
|
@@ -103,11 +103,10 @@ The `<Overlay>` component is used to darken the background and optionally block
|
|
|
103
103
|
</script>
|
|
104
104
|
|
|
105
105
|
{#if open}
|
|
106
|
-
<div class="
|
|
107
|
-
|
|
106
|
+
<div class="">
|
|
108
107
|
<Overlay {transitionDuration} {disableBodyScroll} class={overlayClasses} onclick={() => open = false} />
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
<div role="dialog" aria-modal="true" aria-label={ariaLabel} tabindex="{open ? 0 : -1}" aria-hidden="{!open}"
|
|
109
|
+
class={twMerge("fixed flex flex-col items-center gap-2 bg-white outline-0 focus:outline-0 active:outline-focus-primary focus:outline-focus-primary overflow-y-auto z-50", postionClasses[position], props.class)}
|
|
111
110
|
in:fly={transitionProperties}
|
|
112
111
|
out:fly={transitionProperties}
|
|
113
112
|
use:onKeydown={{key: "Escape", callback: handleKeydown}}>
|