@sheinx/base 3.0.0-alpha.27 → 3.0.0-alpha.28
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["sticky.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAsB5C,QAAA,MAAM,MAAM,UAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["sticky.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAsB5C,QAAA,MAAM,MAAM,UAAW,WAAW,gBA0OjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/cjs/sticky/sticky.js
CHANGED
|
@@ -192,6 +192,14 @@ var Sticky = function Sticky(props) {
|
|
|
192
192
|
} else {
|
|
193
193
|
target.parentNode.insertBefore(context.div, target);
|
|
194
194
|
}
|
|
195
|
+
var _style4 = window.getComputedStyle(target);
|
|
196
|
+
if (_style4.position === 'absolute' || _style4.position === 'fixed') {
|
|
197
|
+
context.div.style.position = _style4.position;
|
|
198
|
+
context.div.style.top = _style4.top;
|
|
199
|
+
context.div.style.left = _style4.left;
|
|
200
|
+
context.div.style.right = _style4.right;
|
|
201
|
+
context.div.style.bottom = _style4.bottom;
|
|
202
|
+
}
|
|
195
203
|
if (window.IntersectionObserver) {
|
|
196
204
|
var observer = new IntersectionObserver(handlePosition, {
|
|
197
205
|
root: target,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["sticky.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAsB5C,QAAA,MAAM,MAAM,UAAW,WAAW,
|
|
1
|
+
{"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["sticky.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAsB5C,QAAA,MAAM,MAAM,UAAW,WAAW,gBA0OjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/esm/sticky/sticky.js
CHANGED
|
@@ -192,6 +192,14 @@ var Sticky = function Sticky(props) {
|
|
|
192
192
|
} else {
|
|
193
193
|
target.parentNode.insertBefore(context.div, target);
|
|
194
194
|
}
|
|
195
|
+
var _style4 = window.getComputedStyle(target);
|
|
196
|
+
if (_style4.position === 'absolute' || _style4.position === 'fixed') {
|
|
197
|
+
context.div.style.position = _style4.position;
|
|
198
|
+
context.div.style.top = _style4.top;
|
|
199
|
+
context.div.style.left = _style4.left;
|
|
200
|
+
context.div.style.right = _style4.right;
|
|
201
|
+
context.div.style.bottom = _style4.bottom;
|
|
202
|
+
}
|
|
195
203
|
if (window.IntersectionObserver) {
|
|
196
204
|
var observer = new IntersectionObserver(handlePosition, {
|
|
197
205
|
root: target,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.0.0-alpha.
|
|
13
|
+
"@sheinx/hooks": "3.0.0-alpha.28",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"valtio": "^1.13.0"
|