app-studio 0.7.17 → 0.8.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.
Files changed (102) hide show
  1. package/README.md +11 -1
  2. package/dist/native/index.cjs +3360 -0
  3. package/dist/native/index.cjs.map +1 -0
  4. package/dist/native/index.d.mts +251 -0
  5. package/dist/native/index.d.ts +251 -0
  6. package/dist/native/index.js +3268 -0
  7. package/dist/native/index.js.map +1 -0
  8. package/dist/viewAnimation-B4BIoOwQ.d.mts +2246 -0
  9. package/dist/viewAnimation-B4BIoOwQ.d.ts +2246 -0
  10. package/dist/web/app-studio.umd.production.min.global.js +28 -0
  11. package/dist/web/app-studio.umd.production.min.global.js.map +1 -0
  12. package/dist/web/index.cjs +6109 -0
  13. package/dist/web/index.cjs.map +1 -0
  14. package/dist/web/index.d.mts +624 -0
  15. package/dist/web/index.d.ts +624 -0
  16. package/dist/web/index.js +6008 -0
  17. package/dist/web/index.js.map +1 -0
  18. package/docs/README.md +10 -0
  19. package/package.json +76 -14
  20. package/dist/app-studio.cjs.development.js +0 -6742
  21. package/dist/app-studio.cjs.development.js.map +0 -1
  22. package/dist/app-studio.cjs.production.min.js +0 -2
  23. package/dist/app-studio.cjs.production.min.js.map +0 -1
  24. package/dist/app-studio.esm.js +0 -6638
  25. package/dist/app-studio.esm.js.map +0 -1
  26. package/dist/app-studio.umd.development.js +0 -6745
  27. package/dist/app-studio.umd.development.js.map +0 -1
  28. package/dist/app-studio.umd.production.min.js +0 -2
  29. package/dist/app-studio.umd.production.min.js.map +0 -1
  30. package/dist/components/Form.d.ts +0 -17
  31. package/dist/components/Image.d.ts +0 -7
  32. package/dist/components/Skeleton.d.ts +0 -3
  33. package/dist/components/Text/Text.props.d.ts +0 -27
  34. package/dist/components/Text/Text.type.d.ts +0 -3
  35. package/dist/components/Text/Text.utils.d.ts +0 -2
  36. package/dist/components/Text/Text.view.d.ts +0 -20
  37. package/dist/components/Text.d.ts +0 -5
  38. package/dist/components/View.d.ts +0 -16
  39. package/dist/components/Wrapper.d.ts +0 -4
  40. package/dist/element/Animation.d.ts +0 -1164
  41. package/dist/element/Element.d.ts +0 -4
  42. package/dist/element/Element.types.d.ts +0 -123
  43. package/dist/element/css.d.ts +0 -50
  44. package/dist/element/utils.d.ts +0 -4
  45. package/dist/hooks/useActive.d.ts +0 -2
  46. package/dist/hooks/useClickOutside.d.ts +0 -6
  47. package/dist/hooks/useElementPosition.d.ts +0 -39
  48. package/dist/hooks/useFocus.d.ts +0 -2
  49. package/dist/hooks/useHover.d.ts +0 -2
  50. package/dist/hooks/useIframeStyles.d.ts +0 -41
  51. package/dist/hooks/useInView.d.ts +0 -11
  52. package/dist/hooks/useKeyPress.d.ts +0 -1
  53. package/dist/hooks/useMount.d.ts +0 -1
  54. package/dist/hooks/useOnScreen.d.ts +0 -6
  55. package/dist/hooks/useResponsive.d.ts +0 -59
  56. package/dist/hooks/useScroll.d.ts +0 -49
  57. package/dist/hooks/useWindowSize.d.ts +0 -4
  58. package/dist/index.d.ts +0 -33
  59. package/dist/index.js +0 -8
  60. package/dist/providers/Analytics.d.ts +0 -9
  61. package/dist/providers/Responsive.d.ts +0 -58
  62. package/dist/providers/StyleRegistry.d.ts +0 -32
  63. package/dist/providers/Theme.d.ts +0 -46
  64. package/dist/providers/WindowSize.d.ts +0 -11
  65. package/dist/stories/AnimateOn.stories.d.ts +0 -30
  66. package/dist/stories/Animation.stories.d.ts +0 -35
  67. package/dist/stories/BorderColor.stories.d.ts +0 -4
  68. package/dist/stories/Color.stories.d.ts +0 -4
  69. package/dist/stories/ColorAlpha.stories.d.ts +0 -5
  70. package/dist/stories/Component.stories.d.ts +0 -7
  71. package/dist/stories/CrossBrowserCompatibility.stories.d.ts +0 -6
  72. package/dist/stories/EmptyBeforeExample.stories.d.ts +0 -7
  73. package/dist/stories/EventHandlers.stories.d.ts +0 -6
  74. package/dist/stories/GradientColors.stories.d.ts +0 -6
  75. package/dist/stories/GroupPeer.stories.d.ts +0 -7
  76. package/dist/stories/Hooks.stories.d.ts +0 -17
  77. package/dist/stories/IframeCSSSupport.stories.d.ts +0 -28
  78. package/dist/stories/IframeSupport.stories.d.ts +0 -20
  79. package/dist/stories/Image.stories.d.ts +0 -6
  80. package/dist/stories/Scroll.stories.d.ts +0 -9
  81. package/dist/stories/ScrollAnimation.stories.d.ts +0 -36
  82. package/dist/stories/ScrollTimeline.stories.d.ts +0 -6
  83. package/dist/stories/Skeleton.stories.d.ts +0 -5
  84. package/dist/stories/Text.stories.d.ts +0 -18
  85. package/dist/stories/VendorPrefix.stories.d.ts +0 -6
  86. package/dist/stories/View.stories.d.ts +0 -10
  87. package/dist/stories/ViewAnimation.stories.d.ts +0 -33
  88. package/dist/test/CssVariablesTest.d.ts +0 -3
  89. package/dist/test/LowercaseVendorPrefixTest.d.ts +0 -3
  90. package/dist/test/VendorPrefixTest.d.ts +0 -3
  91. package/dist/test/WebkitTextStrokeTest.d.ts +0 -3
  92. package/dist/types/scrollAnimation.types.d.ts +0 -75
  93. package/dist/utils/colors.d.ts +0 -21
  94. package/dist/utils/constants.d.ts +0 -24
  95. package/dist/utils/cssProperties.d.ts +0 -8
  96. package/dist/utils/env.d.ts +0 -15
  97. package/dist/utils/hash.d.ts +0 -4
  98. package/dist/utils/shadow.d.ts +0 -10
  99. package/dist/utils/style.d.ts +0 -22
  100. package/dist/utils/typography.d.ts +0 -45
  101. package/dist/utils/vendorPrefixes.d.ts +0 -19
  102. package/dist/utils/viewAnimation.d.ts +0 -138
@@ -1,138 +0,0 @@
1
- /**
2
- * View Animation Utilities
3
- *
4
- * Create performant CSS scroll-driven animations using view() timeline.
5
- * These animations are pure CSS - no JavaScript state or IntersectionObserver needed!
6
- */
7
- import { ViewAnimationConfig, ViewAnimationOptions, SlideAnimationOptions, ScaleAnimationOptions, BlurAnimationOptions, RotateAnimationOptions } from '../types/scrollAnimation.types';
8
- import { AnimationProps } from './constants';
9
- /**
10
- * Convert ViewAnimationConfig to AnimationProps with view() timeline
11
- * This enables CSS-only animations without JavaScript state
12
- *
13
- * @example
14
- * <View animate={createViewAnimation({
15
- * keyframes: { from: { opacity: 0 }, to: { opacity: 1 } },
16
- * range: 'entry'
17
- * })} />
18
- */
19
- export declare const createViewAnimation: (config: ViewAnimationConfig) => AnimationProps;
20
- /**
21
- * Create an animation that triggers when element enters viewport
22
- * Uses CSS view() timeline - NO JavaScript state required!
23
- *
24
- * @example
25
- * <View animate={animateOnView({
26
- * keyframes: { from: { opacity: 0 }, to: { opacity: 1 } },
27
- * range: 'entry'
28
- * })} />
29
- */
30
- export declare const animateOnView: (config: ViewAnimationConfig) => AnimationProps;
31
- /**
32
- * Preset: Fade in when entering viewport
33
- *
34
- * @example
35
- * <View animate={fadeInOnView()} />
36
- * <View animate={fadeInOnView({ duration: '1s' })} />
37
- */
38
- export declare const fadeInOnView: (options?: ViewAnimationOptions) => AnimationProps;
39
- /**
40
- * Preset: Fade out when exiting viewport
41
- *
42
- * @example
43
- * <View animate={fadeOutOnView()} />
44
- */
45
- export declare const fadeOutOnView: (options?: ViewAnimationOptions) => AnimationProps;
46
- /**
47
- * Preset: Slide up and fade in when entering viewport
48
- *
49
- * @example
50
- * <View animate={slideUpOnView()} />
51
- * <View animate={slideUpOnView({ distance: '50px', duration: '0.8s' })} />
52
- */
53
- export declare const slideUpOnView: (options?: SlideAnimationOptions) => AnimationProps;
54
- /**
55
- * Preset: Slide down and fade in when entering viewport
56
- *
57
- * @example
58
- * <View animate={slideDownOnView()} />
59
- */
60
- export declare const slideDownOnView: (options?: SlideAnimationOptions) => AnimationProps;
61
- /**
62
- * Preset: Slide in from left when entering viewport
63
- *
64
- * @example
65
- * <View animate={slideLeftOnView()} />
66
- */
67
- export declare const slideLeftOnView: (options?: SlideAnimationOptions) => AnimationProps;
68
- /**
69
- * Preset: Slide in from right when entering viewport
70
- *
71
- * @example
72
- * <View animate={slideRightOnView()} />
73
- */
74
- export declare const slideRightOnView: (options?: SlideAnimationOptions) => AnimationProps;
75
- /**
76
- * Preset: Scale up when entering viewport
77
- *
78
- * @example
79
- * <View animate={scaleUpOnView()} />
80
- * <View animate={scaleUpOnView({ scale: 0.8 })} />
81
- */
82
- export declare const scaleUpOnView: (options?: ScaleAnimationOptions) => AnimationProps;
83
- /**
84
- * Preset: Scale down when entering viewport
85
- *
86
- * @example
87
- * <View animate={scaleDownOnView({ scale: 1.1 })} />
88
- */
89
- export declare const scaleDownOnView: (options?: ScaleAnimationOptions) => AnimationProps;
90
- /**
91
- * Preset: Blur in when entering viewport
92
- *
93
- * @example
94
- * <View animate={blurInOnView()} />
95
- * <View animate={blurInOnView({ blur: '15px' })} />
96
- */
97
- export declare const blurInOnView: (options?: BlurAnimationOptions) => AnimationProps;
98
- /**
99
- * Preset: Blur out when exiting viewport
100
- *
101
- * @example
102
- * <View animate={blurOutOnView()} />
103
- */
104
- export declare const blurOutOnView: (options?: BlurAnimationOptions) => AnimationProps;
105
- /**
106
- * Preset: Rotate in when entering viewport
107
- *
108
- * @example
109
- * <View animate={rotateInOnView()} />
110
- * <View animate={rotateInOnView({ angle: '-15deg' })} />
111
- */
112
- export declare const rotateInOnView: (options?: RotateAnimationOptions) => AnimationProps;
113
- /**
114
- * Preset: Reveal with clip-path from bottom
115
- *
116
- * @example
117
- * <View animate={revealOnView()} />
118
- */
119
- export declare const revealOnView: (options?: ViewAnimationOptions) => AnimationProps;
120
- /**
121
- * Preset: Flip in on X axis
122
- *
123
- * @example
124
- * <View animate={flipXOnView()} />
125
- */
126
- export declare const flipXOnView: (options?: ViewAnimationOptions) => AnimationProps;
127
- /**
128
- * Preset: Flip in on Y axis
129
- *
130
- * @example
131
- * <View animate={flipYOnView()} />
132
- */
133
- export declare const flipYOnView: (options?: ViewAnimationOptions) => AnimationProps;
134
- /**
135
- * Preset JSON configurations for common view animations
136
- * Use with createViewAnimation() or animateOnView()
137
- */
138
- export declare const viewAnimationPresets: Record<string, ViewAnimationConfig>;