@rxdrag/website-lib 0.0.140 → 0.0.143
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.
|
@@ -19,7 +19,7 @@ interface Props extends HTMLAttributes<"header"> {
|
|
|
19
19
|
const { className, backgrounds, class: originalClass, ...rest } = Astro.props;
|
|
20
20
|
---
|
|
21
21
|
|
|
22
|
-
<header class:list={["header
|
|
22
|
+
<header class:list={["header", className, originalClass]} {...rest}>
|
|
23
23
|
<BackgroundGroup backgrounds={backgrounds} />
|
|
24
24
|
<slot />
|
|
25
25
|
</header>
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
import type { HTMLAttributes } from "astro/types";
|
|
3
3
|
import BaseBlock from "./BaseBlock.astro";
|
|
4
|
+
import type { BackgroundConfig } from "@rxdrag/website-lib-core";
|
|
5
|
+
import BackgroundGroup from "./BackgroundGroup.astro";
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* 容器
|
|
@@ -13,9 +15,10 @@ import BaseBlock from "./BaseBlock.astro";
|
|
|
13
15
|
interface Props extends HTMLAttributes<"div"> {
|
|
14
16
|
//布局
|
|
15
17
|
className?: string;
|
|
18
|
+
backgrounds?: BackgroundConfig[];
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
const { className, class: classAttr, ...rest } = Astro.props;
|
|
21
|
+
const { className, class: classAttr, backgrounds, ...rest } = Astro.props;
|
|
19
22
|
---
|
|
20
23
|
|
|
21
24
|
<BaseBlock
|
|
@@ -24,5 +27,6 @@ const { className, class: classAttr, ...rest } = Astro.props;
|
|
|
24
27
|
class={classAttr}
|
|
25
28
|
{...rest}
|
|
26
29
|
>
|
|
30
|
+
<BackgroundGroup backgrounds={backgrounds} />
|
|
27
31
|
<slot />
|
|
28
32
|
</BaseBlock>
|
package/components/Popover.astro
CHANGED
|
@@ -30,13 +30,13 @@ const panelClassList = normalize(classNames?.panel);
|
|
|
30
30
|
will-change: height;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
[data-popover-arrow] {
|
|
33
|
+
:global([data-popover-arrow]) {
|
|
34
34
|
display: inline-flex;
|
|
35
35
|
transform-origin: center;
|
|
36
36
|
transition: transform 200ms ease;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
[data-popover][data-open="1"] [data-popover-arrow] {
|
|
39
|
+
[data-popover][data-open="1"] :global([data-popover-arrow]) {
|
|
40
40
|
transform: rotate(180deg);
|
|
41
41
|
}
|
|
42
42
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdrag/website-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.143",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./index.ts",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"eslint": "^9.39.2",
|
|
27
27
|
"gsap": "^3.12.7",
|
|
28
28
|
"typescript": "^5",
|
|
29
|
+
"@rxdrag/eslint-config-custom": "0.2.13",
|
|
30
|
+
"@rxdrag/entify-hooks": "0.2.79",
|
|
29
31
|
"@rxdrag/rxcms-models": "0.3.106",
|
|
30
32
|
"@rxdrag/tiptap-preview": "0.0.3",
|
|
31
|
-
"@rxdrag/
|
|
32
|
-
"@rxdrag/tsconfig": "0.2.1",
|
|
33
|
-
"@rxdrag/entify-hooks": "0.2.79"
|
|
33
|
+
"@rxdrag/tsconfig": "0.2.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"aos": "3.0.0-beta.6",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"react": "^19.1.0",
|
|
39
39
|
"react-dom": "^19.1.0",
|
|
40
40
|
"vanilla-cookieconsent": "3.1.0",
|
|
41
|
-
"@rxdrag/
|
|
42
|
-
"@rxdrag/
|
|
41
|
+
"@rxdrag/rxcms-models": "0.3.106",
|
|
42
|
+
"@rxdrag/website-lib-core": "0.0.125"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"astro": "^5.16.6"
|