@rxdrag/website-lib 0.0.86 → 0.0.94

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.86",
3
+ "version": "0.0.94",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts"
@@ -24,10 +24,10 @@
24
24
  "eslint": "^7.32.0",
25
25
  "gsap": "^3.12.7",
26
26
  "typescript": "^5",
27
+ "@rxdrag/slate-preview": "1.2.61",
28
+ "@rxdrag/eslint-config-custom": "0.2.12",
27
29
  "@rxdrag/entify-hooks": "0.2.76",
28
30
  "@rxdrag/rxcms-models": "0.3.94",
29
- "@rxdrag/eslint-config-custom": "0.2.12",
30
- "@rxdrag/slate-preview": "1.2.61",
31
31
  "@rxdrag/tsconfig": "0.2.0"
32
32
  },
33
33
  "dependencies": {
@@ -35,7 +35,7 @@
35
35
  "react": "^19.1.0",
36
36
  "react-dom": "^19.1.0",
37
37
  "@rxdrag/rxcms-models": "0.3.94",
38
- "@rxdrag/website-lib-core": "0.0.88"
38
+ "@rxdrag/website-lib-core": "0.0.93"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "astro": "^4.0.0 || ^5.0.0"
@@ -0,0 +1,43 @@
1
+ ---
2
+ import type {
3
+ AnimationConfig,
4
+ BackgroundConfig,
5
+ } from "@rxdrag/website-lib-core";
6
+ import BackgroundGroup from "./BackgroundGroup.astro";
7
+ import Container from "./Container.astro";
8
+
9
+ /**
10
+ * 区块
11
+ */
12
+
13
+ interface Props {
14
+ class?: string;
15
+ className?: string;
16
+ containerClassName?: string;
17
+ backgrounds?: BackgroundConfig[];
18
+ //动效
19
+ animation?: AnimationConfig;
20
+ disableContainer?: boolean;
21
+ }
22
+
23
+ const {
24
+ className,
25
+ containerClassName,
26
+ backgrounds,
27
+ disableContainer,
28
+ class: originalClass,
29
+ } = Astro.props;
30
+ ---
31
+
32
+ <footer class:list={["footer-block", className, originalClass]}>
33
+ <BackgroundGroup backgrounds={backgrounds} />
34
+ {
35
+ disableContainer ? (
36
+ <slot />
37
+ ) : (
38
+ <Container class:list={["w-full h-full", containerClassName]}>
39
+ <slot />
40
+ </Container>
41
+ )
42
+ }
43
+ </footer>
@@ -17,18 +17,27 @@ interface AnchorAttributes {
17
17
  options?: {
18
18
  productsSlug?: string;
19
19
  postsSlug?: string;
20
- }
20
+ };
21
21
  }
22
22
 
23
23
  interface Props extends IMotionProps, AnchorAttributes {
24
24
  type?: LinkType | string;
25
25
  to?: string | undefined;
26
26
  class?: string;
27
+ className?: string;
27
28
  //用于active类名的传递
28
29
  activeWhen?: string | true;
29
30
  }
30
31
 
31
- const { type, to, class: className, activeWhen, options, ...props } = Astro.props;
32
+ const {
33
+ type,
34
+ to,
35
+ class: cls,
36
+ className,
37
+ activeWhen,
38
+ options,
39
+ ...props
40
+ } = Astro.props;
32
41
  const href = toHref(type || "", to || "", options);
33
42
  const hrefObj = href ? { href } : {};
34
43
  ---
@@ -37,7 +46,7 @@ const hrefObj = href ? { href } : {};
37
46
  as={"a"}
38
47
  data-actived-path={activeWhen}
39
48
  {...hrefObj}
40
- class={className}
49
+ class:list={[cls, className]}
41
50
  {...props}
42
51
  >
43
52
  <slot />
@@ -7,6 +7,7 @@ export { default as CollapseTrigger } from "./CollapseTrigger.astro";
7
7
  export { default as CollapsePanel } from "./CollapsePanel.astro";
8
8
  export { default as Container } from "./Container.astro";
9
9
  export { default as Flip } from "./Flip.astro";
10
+ export { default as Footer } from "./Footer.astro";
10
11
  export { default as Grid } from "./Grid.astro";
11
12
  export { default as GridCell } from "./GridCell.astro";
12
13
  export { default as Icon } from "./Icon.astro";