@lynx-js/web-elements-canary 0.8.10 → 0.8.11-canary-20251111-e71e4234
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 +16 -7
- package/package.json +2 -2
- package/src/XList/x-list.css +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @lynx-js/web-elements
|
|
2
2
|
|
|
3
|
+
## 0.8.11-canary-20251111093302-e71e4234aa1fa40b393fad9ff77d230d9ec5f3b1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix: when estimated-main-axis-size-px is not set, should use the height of list ([#1930](https://github.com/lynx-family/lynx-stack/pull/1930))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/web-elements-template@0.8.11-canary-20251111093302-e71e4234aa1fa40b393fad9ff77d230d9ec5f3b1
|
|
11
|
+
|
|
3
12
|
## 0.8.10
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -651,8 +660,8 @@
|
|
|
651
660
|
For compating usage, `@lynx-js/web-elements-compat/LinearContainer` is provided.
|
|
652
661
|
|
|
653
662
|
```javascript
|
|
654
|
-
import
|
|
655
|
-
import
|
|
663
|
+
import "@lynx-js/web-elements-compat/LinearContainer";
|
|
664
|
+
import "@lynx-js/web-elements/all";
|
|
656
665
|
```
|
|
657
666
|
|
|
658
667
|
- f8d1d98: break: rename the `blur` and `focus` event to `lynxblur` and `lynxfocus` for x-input element
|
|
@@ -674,11 +683,11 @@
|
|
|
674
683
|
There is also a simple way to use this feature
|
|
675
684
|
|
|
676
685
|
```javascript
|
|
677
|
-
import { LynxCard } from
|
|
678
|
-
import { loadElement } from
|
|
679
|
-
import
|
|
680
|
-
import
|
|
681
|
-
import
|
|
686
|
+
import { LynxCard } from "@lynx-js/web-core";
|
|
687
|
+
import { loadElement } from "@lynx-js/web-elements/lazy";
|
|
688
|
+
import "@lynx-js/web-elements/index.css";
|
|
689
|
+
import "@lynx-js/web-core/index.css";
|
|
690
|
+
import "./index.css";
|
|
682
691
|
|
|
683
692
|
const lynxcard = new LynxCard({
|
|
684
693
|
...beforeConfigs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-elements-canary",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11-canary-20251111-e71e4234",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
],
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"@lynx-js/web-elements-reactive": "npm:@lynx-js/web-elements-reactive-canary@0.2.2",
|
|
104
|
-
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.
|
|
104
|
+
"@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.11-canary-20251111-e71e4234"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"tslib": "^2.8.1"
|
package/src/XList/x-list.css
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
x-list {
|
|
7
7
|
contain: layout;
|
|
8
8
|
scrollbar-width: none;
|
|
9
|
+
container-type: size;
|
|
9
10
|
--list-item-sticky-offset: 0;
|
|
10
11
|
--list-item-span-count: 0;
|
|
11
12
|
--list-main-axis-gap: 0px;
|
|
@@ -61,7 +62,11 @@ list-item {
|
|
|
61
62
|
flex: 0 0 auto !important;
|
|
62
63
|
position: static;
|
|
63
64
|
contain: size;
|
|
64
|
-
contain-intrinsic-size: auto var(--estimated-main-axis-size-px);
|
|
65
|
+
contain-intrinsic-size: none auto var(--estimated-main-axis-size-px, 100cqh);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
x-list[scroll-orientation="horizontal"] list-item {
|
|
69
|
+
contain-intrinsic-size: auto var(--estimated-main-axis-size-px, 100cqw) none;
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
x-list > list-item, x-list > lynx-wrapper > list-item {
|