@webstudio-is/sdk-components-animation 0.214.0 → 0.216.0

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,7 +1,8 @@
1
1
  import { TextAnimationIcon as t } from "@webstudio-is/icons/svg";
2
2
  import { animation as o } from "./shared/meta.js";
3
3
  import { props as i } from "./__generated__/animate-text.props.js";
4
- const r = {
4
+ import { div as n } from "@webstudio-is/sdk/normalize.css";
5
+ const p = {
5
6
  category: "animations",
6
7
  type: "container",
7
8
  description: "Text animation allows you to split text by char or by word to animate it.",
@@ -14,12 +15,15 @@ const r = {
14
15
  relation: "child",
15
16
  text: !1
16
17
  }
17
- ]
18
- }, m = {
18
+ ],
19
+ presetStyle: {
20
+ div: n
21
+ }
22
+ }, s = {
19
23
  props: i,
20
24
  initialProps: ["slidingWindow", "easing", "splitBy"]
21
25
  };
22
26
  export {
23
- r as meta,
24
- m as propsMeta
27
+ p as meta,
28
+ s as propsMeta
25
29
  };
@@ -1,7 +1,8 @@
1
1
  import { StaggerAnimationIcon as i } from "@webstudio-is/icons/svg";
2
- import { animation as n } from "./shared/meta.js";
3
- import { props as t } from "./__generated__/stagger-animation.props.js";
4
- const r = {
2
+ import { animation as t } from "./shared/meta.js";
3
+ import { props as n } from "./__generated__/stagger-animation.props.js";
4
+ import { div as o } from "@webstudio-is/sdk/normalize.css";
5
+ const s = {
5
6
  category: "animations",
6
7
  type: "container",
7
8
  description: "Stagger animation allows you to animate children elements with a sliding window.",
@@ -9,17 +10,20 @@ const r = {
9
10
  order: 6,
10
11
  label: "Stagger Animation",
11
12
  constraints: [
12
- { relation: "parent", component: { $eq: n.AnimateChildren } },
13
+ { relation: "parent", component: { $eq: t.AnimateChildren } },
13
14
  {
14
15
  relation: "child",
15
16
  text: !1
16
17
  }
17
- ]
18
- }, m = {
19
- props: t,
18
+ ],
19
+ presetStyle: {
20
+ div: o
21
+ }
22
+ }, l = {
23
+ props: n,
20
24
  initialProps: ["slidingWindow", "easing"]
21
25
  };
22
26
  export {
23
- r as meta,
24
- m as propsMeta
27
+ s as meta,
28
+ l as propsMeta
25
29
  };
@@ -16,7 +16,7 @@ declare const split: {
16
16
  'symbol "#"': boolean;
17
17
  'symbol "~"': boolean;
18
18
  };
19
- type AnimateChildrenProps = {
19
+ export declare const AnimateText: import("react").ForwardRefExoticComponent<{
20
20
  /**
21
21
  * Size of the sliding window for the animation:
22
22
  * - 0: Typewriter effect (no animation).
@@ -36,6 +36,7 @@ type AnimateChildrenProps = {
36
36
  * Defines how the text is split for animation (e.g., by character, space, or symbol).
37
37
  */
38
38
  splitBy?: keyof typeof split;
39
- };
40
- export declare const AnimateText: import("react").ForwardRefExoticComponent<AnimateChildrenProps & import("react").RefAttributes<HTMLDivElement>>;
39
+ } & {
40
+ className?: string;
41
+ } & import("react").RefAttributes<HTMLDivElement>>;
41
42
  export {};
@@ -10,7 +10,7 @@ declare const easings: {
10
10
  easeInOutCubic: boolean;
11
11
  easeInOutQuart: boolean;
12
12
  };
13
- type StaggerAnimationProps = {
13
+ export declare const StaggerAnimation: import("react").ForwardRefExoticComponent<{
14
14
  /**
15
15
  * Size of the sliding window for the animation:
16
16
  * - 0: Typewriter effect (no animation).
@@ -26,6 +26,7 @@ type StaggerAnimationProps = {
26
26
  * Text content to animate.
27
27
  */
28
28
  children: React.ReactNode;
29
- };
30
- export declare const StaggerAnimation: import("react").ForwardRefExoticComponent<StaggerAnimationProps & import("react").RefAttributes<HTMLDivElement>>;
29
+ } & {
30
+ className?: string;
31
+ } & import("react").RefAttributes<HTMLDivElement>>;
31
32
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webstudio-is/sdk-components-animation",
3
- "version": "0.214.0",
3
+ "version": "0.216.0",
4
4
  "description": "Webstudio components for animation",
5
5
  "author": "Webstudio <github@webstudio.is>",
6
6
  "homepage": "https://webstudio.is",
@@ -49,10 +49,10 @@
49
49
  "nanostores": "^0.11.3",
50
50
  "react-error-boundary": "^5.0.0",
51
51
  "shallow-equal": "^3.1.0",
52
- "@webstudio-is/css-engine": "0.214.0",
53
- "@webstudio-is/icons": "0.214.0",
54
- "@webstudio-is/react-sdk": "0.214.0",
55
- "@webstudio-is/sdk": "0.214.0"
52
+ "@webstudio-is/css-engine": "0.216.0",
53
+ "@webstudio-is/icons": "0.216.0",
54
+ "@webstudio-is/sdk": "0.216.0",
55
+ "@webstudio-is/react-sdk": "0.216.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/react": "^18.2.70",
@@ -69,9 +69,9 @@
69
69
  "@webstudio-is/design-system": "0.0.0",
70
70
  "@webstudio-is/generate-arg-types": "0.0.0",
71
71
  "@webstudio-is/sdk-cli": "^0.94.0",
72
- "@webstudio-is/sdk-components-react": "0.214.0",
73
- "@webstudio-is/template": "0.214.0",
74
- "@webstudio-is/tsconfig": "1.0.7"
72
+ "@webstudio-is/sdk-components-react": "0.216.0",
73
+ "@webstudio-is/tsconfig": "1.0.7",
74
+ "@webstudio-is/template": "0.216.0"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "vite build --config ../../vite.sdk-components.config.ts",