@rxdrag/website-lib 0.0.65 → 0.0.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/website-lib",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -24,18 +24,18 @@
24
24
  "eslint": "^7.32.0",
25
25
  "gsap": "^3.12.7",
26
26
  "typescript": "^5",
27
- "@rxdrag/entify-hooks": "0.2.70",
28
- "@rxdrag/eslint-config-custom": "0.2.12",
29
27
  "@rxdrag/rxcms-models": "0.3.89",
30
28
  "@rxdrag/slate-preview": "1.2.58",
31
- "@rxdrag/tsconfig": "0.2.0"
29
+ "@rxdrag/eslint-config-custom": "0.2.12",
30
+ "@rxdrag/tsconfig": "0.2.0",
31
+ "@rxdrag/entify-hooks": "0.2.70"
32
32
  },
33
33
  "dependencies": {
34
34
  "clsx": "^2.1.0",
35
35
  "react": "^19.1.0",
36
36
  "react-dom": "^19.1.0",
37
- "@rxdrag/rxcms-models": "0.3.89",
38
- "@rxdrag/website-lib-core": "0.0.65"
37
+ "@rxdrag/website-lib-core": "0.0.65",
38
+ "@rxdrag/rxcms-models": "0.3.89"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "astro": "^4.0.0 || ^5.0.0"
@@ -0,0 +1,24 @@
1
+ ---
2
+ import type {
3
+ AnimationConfig,
4
+ BackgroundConfig,
5
+ IEntify,
6
+ } from "@rxdrag/website-lib-core";
7
+ import BackgroundGroup from "./BackgroundGroup.astro";
8
+
9
+ interface Props {
10
+ class?: string;
11
+ className?: string;
12
+ backgrounds?: BackgroundConfig[];
13
+ //动效
14
+ animation?: AnimationConfig;
15
+ rx: IEntify;
16
+ }
17
+
18
+ const { className, class: originalClass, backgrounds, rx } = Astro.props;
19
+ ---
20
+
21
+ <div class:list={["w-full, h-full flex flex-col", className, originalClass]}>
22
+ <BackgroundGroup backgrounds={backgrounds} rx={rx} />
23
+ <slot />
24
+ </div>
@@ -1,6 +1,7 @@
1
1
  export { default as AnimationNumber } from "./AnimationNumber.astro";
2
2
  export { default as Background } from "./Background.astro";
3
3
  export { default as BackgroundGroup } from "./BackgroundGroup.astro";
4
+ export { default as Box } from "./Box.astro";
4
5
  export { default as Collapse } from "./Collapse.astro";
5
6
  export { default as CollapseTrigger } from "./CollapseTrigger.astro";
6
7
  export { default as CollapsePanel } from "./CollapsePanel.astro";