app-studio 0.8.5 → 0.8.7
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/dist/native/index.d.mts +5 -5
- package/dist/native/index.d.ts +5 -5
- package/dist/web/app-studio.umd.production.min.global.js +8 -14
- package/dist/web/app-studio.umd.production.min.global.js.map +1 -1
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.mts +79 -13
- package/dist/web/index.d.ts +79 -13
- package/dist/web/index.js +4 -4
- package/dist/web/index.js.map +1 -1
- package/package.json +16 -21
package/dist/web/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
import react__default, { ReactNode, CSSProperties, HTMLAttributes, HTMLAttributeReferrerPolicy, JSX, RefObject } from 'react';
|
|
3
3
|
import { C as ColorSingleton, a as ColorPalette, A as AnimationProps, S as Shadow, V as ViewStyleProps, I as ImageStyleProps, T as TextStyleProps } from '../viewAnimation-B4BIoOwQ.mjs';
|
|
4
4
|
export { b as AnalyticsConfig, c as AnalyticsContext, d as AnalyticsProvider, e as Animation, B as BlurAnimationOptions, f as ColorConfig, R as RotateAnimationOptions, g as ScaleAnimationOptions, h as Shadows, i as SlideAnimationOptions, j as Typography, k as ViewAnimationConfig, l as ViewAnimationFillMode, m as ViewAnimationOptions, n as ViewAnimationRange, o as ViewAnimationTimingFunction, p as animateOnView, q as blurInOnView, r as blurOutOnView, s as createViewAnimation, t as defaultColors, u as defaultDarkColors, v as defaultDarkPalette, w as defaultLightColors, x as defaultLightPalette, y as fadeInOnView, z as fadeOutOnView, D as flipXOnView, E as flipYOnView, F as getWindowInitialProps, G as hasColorToken, H as isBrowser, J as isDev, K as isMobile, L as isProd, M as isSSR, N as replaceColorTokens, O as revealOnView, P as rotateInOnView, Q as scaleDownOnView, U as scaleUpOnView, W as slideDownOnView, X as slideLeftOnView, Y as slideRightOnView, Z as slideUpOnView, _ as useAnalytics, $ as viewAnimationPresets } from '../viewAnimation-B4BIoOwQ.mjs';
|
|
5
5
|
|
|
@@ -98,6 +98,8 @@ interface CssProps extends CSSProperties {
|
|
|
98
98
|
_focusVisible?: CSSProperties | string;
|
|
99
99
|
_focusWithin?: CSSProperties | string;
|
|
100
100
|
_placeholder?: CSSProperties | string;
|
|
101
|
+
_odd?: CSSProperties | string;
|
|
102
|
+
_even?: CSSProperties | string;
|
|
101
103
|
_groupHover?: CSSProperties | string;
|
|
102
104
|
_groupFocus?: CSSProperties | string;
|
|
103
105
|
_groupActive?: CSSProperties | string;
|
|
@@ -125,6 +127,68 @@ interface CssProps extends CSSProperties {
|
|
|
125
127
|
webkitUserDrag?: CSSProperties['userSelect'];
|
|
126
128
|
}
|
|
127
129
|
interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttributes<HTMLElement> | 'children' | 'style' | 'pointerEvents'>, Omit<HTMLAttributes<HTMLElement>, 'color' | 'style' | 'content' | 'translate'> {
|
|
130
|
+
src?: string;
|
|
131
|
+
alt?: string;
|
|
132
|
+
controls?: boolean;
|
|
133
|
+
muted?: boolean;
|
|
134
|
+
autoPlay?: boolean;
|
|
135
|
+
loop?: boolean;
|
|
136
|
+
poster?: string;
|
|
137
|
+
playsInline?: boolean;
|
|
138
|
+
preload?: 'none' | 'metadata' | 'auto' | '';
|
|
139
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
140
|
+
srcSet?: string;
|
|
141
|
+
sizes?: string;
|
|
142
|
+
loading?: 'eager' | 'lazy';
|
|
143
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
|
144
|
+
decoding?: 'async' | 'auto' | 'sync';
|
|
145
|
+
name?: string;
|
|
146
|
+
value?: string | number | readonly string[];
|
|
147
|
+
defaultValue?: string | number | readonly string[];
|
|
148
|
+
multiple?: boolean;
|
|
149
|
+
disabled?: boolean;
|
|
150
|
+
readOnly?: boolean;
|
|
151
|
+
required?: boolean;
|
|
152
|
+
autoComplete?: string;
|
|
153
|
+
autoFocus?: boolean;
|
|
154
|
+
placeholder?: string;
|
|
155
|
+
pattern?: string;
|
|
156
|
+
min?: number | string;
|
|
157
|
+
max?: number | string;
|
|
158
|
+
minLength?: number;
|
|
159
|
+
maxLength?: number;
|
|
160
|
+
step?: number | string;
|
|
161
|
+
form?: string;
|
|
162
|
+
formAction?: string;
|
|
163
|
+
formEncType?: string;
|
|
164
|
+
formMethod?: 'get' | 'post' | 'dialog';
|
|
165
|
+
formNoValidate?: boolean;
|
|
166
|
+
formTarget?: string;
|
|
167
|
+
rows?: number;
|
|
168
|
+
cols?: number;
|
|
169
|
+
/** HTML textarea wrap attribute. Browsers accept 'hard' | 'soft' | 'off' but
|
|
170
|
+
* the DOM type widens to plain `string`, so we mirror that here. */
|
|
171
|
+
wrap?: string;
|
|
172
|
+
list?: string;
|
|
173
|
+
accept?: string;
|
|
174
|
+
capture?: boolean | 'user' | 'environment';
|
|
175
|
+
colSpan?: number;
|
|
176
|
+
rowSpan?: number;
|
|
177
|
+
headers?: string;
|
|
178
|
+
scope?: string;
|
|
179
|
+
href?: string;
|
|
180
|
+
target?: string;
|
|
181
|
+
rel?: string;
|
|
182
|
+
hrefLang?: string;
|
|
183
|
+
download?: string | boolean;
|
|
184
|
+
xmlns?: string;
|
|
185
|
+
viewBox?: string;
|
|
186
|
+
preserveAspectRatio?: string;
|
|
187
|
+
open?: boolean;
|
|
188
|
+
scoped?: boolean;
|
|
189
|
+
reversed?: boolean;
|
|
190
|
+
start?: number;
|
|
191
|
+
htmlFor?: string;
|
|
128
192
|
on?: Record<string, CssProps>;
|
|
129
193
|
media?: Record<string, CssProps>;
|
|
130
194
|
only?: string[];
|
|
@@ -172,6 +236,8 @@ interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttribut
|
|
|
172
236
|
_focusVisible?: CssProps | string;
|
|
173
237
|
_focusWithin?: CssProps | string;
|
|
174
238
|
_placeholder?: CssProps | string;
|
|
239
|
+
_odd?: CssProps | string;
|
|
240
|
+
_even?: CssProps | string;
|
|
175
241
|
_groupHover?: CssProps | string;
|
|
176
242
|
_groupFocus?: CssProps | string;
|
|
177
243
|
_groupActive?: CssProps | string;
|
|
@@ -197,7 +263,7 @@ interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttribut
|
|
|
197
263
|
_mozFocusInner?: CssProps | string;
|
|
198
264
|
}
|
|
199
265
|
|
|
200
|
-
declare const Element$1: react__default.
|
|
266
|
+
declare const Element$1: react__default.NamedExoticComponent<ElementProps & react__default.RefAttributes<HTMLElement>>;
|
|
201
267
|
|
|
202
268
|
interface ViewProps extends Omit<ViewStyleProps, keyof ElementProps>, ElementProps {
|
|
203
269
|
onPress?: (..._args: any) => void;
|
|
@@ -418,7 +484,7 @@ interface WindowSizeProviderProps {
|
|
|
418
484
|
declare const WindowSizeProvider: ({ children, targetWindow, }: WindowSizeProviderProps) => react__default.JSX.Element;
|
|
419
485
|
|
|
420
486
|
declare function useActive<T extends HTMLElement = HTMLElement>(): [
|
|
421
|
-
React.RefObject<T>,
|
|
487
|
+
React.RefObject<T | null>,
|
|
422
488
|
boolean
|
|
423
489
|
];
|
|
424
490
|
|
|
@@ -426,7 +492,7 @@ interface UseClickOutsideOptions {
|
|
|
426
492
|
/** Optional target window to use (for iframe support). Defaults to global window. */
|
|
427
493
|
targetWindow?: Window;
|
|
428
494
|
}
|
|
429
|
-
declare function useClickOutside<T extends HTMLElement = HTMLElement>(options?: UseClickOutsideOptions): [React.RefObject<T>, boolean];
|
|
495
|
+
declare function useClickOutside<T extends HTMLElement = HTMLElement>(options?: UseClickOutsideOptions): [React.RefObject<T | null>, boolean];
|
|
430
496
|
|
|
431
497
|
interface RelativePlacement {
|
|
432
498
|
vertical: 'top' | 'bottom';
|
|
@@ -452,7 +518,7 @@ interface UseElementPositionOptions {
|
|
|
452
518
|
}
|
|
453
519
|
interface UseElementPositionReturn {
|
|
454
520
|
/** React ref to attach to the target HTML element. */
|
|
455
|
-
ref: React.RefObject<HTMLElement>;
|
|
521
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
456
522
|
/**
|
|
457
523
|
* The calculated viewport relation data, or null if not yet calculated
|
|
458
524
|
* or element not found.
|
|
@@ -468,12 +534,12 @@ interface UseElementPositionReturn {
|
|
|
468
534
|
declare function useElementPosition<T extends HTMLElement = HTMLElement>(options?: UseElementPositionOptions): UseElementPositionReturn;
|
|
469
535
|
|
|
470
536
|
declare function useFocus<T extends HTMLElement = HTMLElement>(): [
|
|
471
|
-
React.RefObject<T>,
|
|
537
|
+
React.RefObject<T | null>,
|
|
472
538
|
boolean
|
|
473
539
|
];
|
|
474
540
|
|
|
475
541
|
declare function useHover<T extends HTMLElement = HTMLElement>(): [
|
|
476
|
-
React.RefObject<T>,
|
|
542
|
+
React.RefObject<T | null>,
|
|
477
543
|
boolean
|
|
478
544
|
];
|
|
479
545
|
|
|
@@ -485,7 +551,7 @@ interface UseOnScreenOptions extends IntersectionObserverInit {
|
|
|
485
551
|
/** Optional target window to use (for iframe support). Defaults to global window. */
|
|
486
552
|
targetWindow?: Window;
|
|
487
553
|
}
|
|
488
|
-
declare function useOnScreen<T extends HTMLElement = HTMLElement>(options?: UseOnScreenOptions): [React.RefObject<T>, boolean];
|
|
554
|
+
declare function useOnScreen<T extends HTMLElement = HTMLElement>(options?: UseOnScreenOptions): [React.RefObject<T | null>, boolean];
|
|
489
555
|
|
|
490
556
|
/**
|
|
491
557
|
* Optimized hook for components that only need breakpoint information.
|
|
@@ -563,7 +629,7 @@ interface ScrollPosition {
|
|
|
563
629
|
elementProgress?: number;
|
|
564
630
|
}
|
|
565
631
|
interface UseScrollOptions {
|
|
566
|
-
container?: RefObject<HTMLElement>;
|
|
632
|
+
container?: RefObject<HTMLElement | null>;
|
|
567
633
|
offset?: [number, number];
|
|
568
634
|
throttleMs?: number;
|
|
569
635
|
disabled?: boolean;
|
|
@@ -584,11 +650,11 @@ interface UseInfiniteScrollOptions {
|
|
|
584
650
|
debounceMs?: number;
|
|
585
651
|
}
|
|
586
652
|
declare const useScroll: ({ container, offset, throttleMs, disabled, }?: UseScrollOptions) => ScrollPosition;
|
|
587
|
-
declare const useScrollAnimation: (ref: RefObject<HTMLElement>, options?: UseScrollAnimationOptions) => {
|
|
653
|
+
declare const useScrollAnimation: (ref: RefObject<HTMLElement | null>, options?: UseScrollAnimationOptions) => {
|
|
588
654
|
isInView: boolean;
|
|
589
655
|
progress: number;
|
|
590
656
|
};
|
|
591
|
-
declare const useSmoothScroll: (targetWindow?: Window) => (element: HTMLElement | null, offset?:
|
|
657
|
+
declare const useSmoothScroll: (targetWindow?: Window) => (element: HTMLElement | null, offset?: number) => void;
|
|
592
658
|
declare const useInfiniteScroll: (callback: () => void, options?: UseInfiniteScrollOptions) => {
|
|
593
659
|
sentinelRef: react.Dispatch<react.SetStateAction<HTMLDivElement | null>>;
|
|
594
660
|
};
|
|
@@ -605,7 +671,7 @@ interface InViewOptions extends IntersectionObserverInit {
|
|
|
605
671
|
targetWindow?: Window;
|
|
606
672
|
}
|
|
607
673
|
declare function useInView(options?: InViewOptions): {
|
|
608
|
-
ref: react.RefObject<HTMLElement>;
|
|
674
|
+
ref: react.RefObject<HTMLElement | null>;
|
|
609
675
|
inView: boolean;
|
|
610
676
|
};
|
|
611
677
|
|
|
@@ -650,4 +716,4 @@ declare function useIframe(iframeRef: React.RefObject<HTMLIFrameElement>): {
|
|
|
650
716
|
isLoaded: boolean;
|
|
651
717
|
};
|
|
652
718
|
|
|
653
|
-
export { AnimationUtils, type BreakpointConfig, BreakpointContext, Button, type ButtonProps, Center, ColorPalette, ColorSingleton, type Colors, type CssProps, type DeviceConfig, type DeviceType, Div, Element$1 as Element, type ElementPosition, type ElementProps, Form, type FormProps, Horizontal, HorizontalResponsive, Image, ImageBackground, type ImageProps, Input, type InputProps, type QueryConfig, type RelativePlacement, type ResponsiveConfig, ResponsiveContext, ResponsiveProvider, type ResponsiveProviderProps, SafeArea, type ScreenConfig, type ScreenOrientation, Scroll, type ScrollPosition, Shadow, Skeleton, Span, StyleRegistry, Text, type TextProps, type Theme, ThemeContext, ThemeProvider, type UseClickOutsideOptions, type UseElementPositionOptions, type UseElementPositionReturn, type UseInfiniteScrollOptions, type UseOnScreenOptions, type UseScrollAnimationOptions, type UseScrollOptions, UtilityClassManager, Vertical, VerticalResponsive, View, type ViewProps, type WindowDimensions, WindowDimensionsContext, WindowSizeContext, WindowSizeProvider, type WindowSizeProviderProps, createStyleRegistry, debounce, deepMerge, defaultThemeMain, extractUtilityClasses, propertyShorthand, useActive, useBreakpoint, useBreakpointContext, useClickOutside, useElementPosition, useFocus, useHover, useIframe, useIframeStyles, useInView, useInfiniteScroll, useKeyPress, useMount, useOnScreen, useResponsive, useResponsiveContext, useScroll, useScrollAnimation, useScrollDirection, useServerInsertedHTML, useSmoothScroll, useStyleRegistry, useTheme, useWindowDimensions, useWindowDimensionsContext, useWindowSize, utilityClassManager };
|
|
719
|
+
export { AnimationProps, AnimationUtils, type BreakpointConfig, BreakpointContext, Button, type ButtonProps, Center, ColorPalette, ColorSingleton, type Colors, type CssProps, type DeviceConfig, type DeviceType, Div, Element$1 as Element, type ElementPosition, type ElementProps, Form, type FormProps, Horizontal, HorizontalResponsive, Image, ImageBackground, type ImageProps, Input, type InputProps, type QueryConfig, type RelativePlacement, type ResponsiveConfig, ResponsiveContext, ResponsiveProvider, type ResponsiveProviderProps, SafeArea, type ScreenConfig, type ScreenOrientation, Scroll, type ScrollPosition, Shadow, Skeleton, Span, StyleRegistry, Text, type TextProps, type Theme, ThemeContext, ThemeProvider, type UseClickOutsideOptions, type UseElementPositionOptions, type UseElementPositionReturn, type UseInfiniteScrollOptions, type UseOnScreenOptions, type UseScrollAnimationOptions, type UseScrollOptions, UtilityClassManager, Vertical, VerticalResponsive, View, type ViewProps, type WindowDimensions, WindowDimensionsContext, WindowSizeContext, WindowSizeProvider, type WindowSizeProviderProps, createStyleRegistry, debounce, deepMerge, defaultThemeMain, extractUtilityClasses, propertyShorthand, useActive, useBreakpoint, useBreakpointContext, useClickOutside, useElementPosition, useFocus, useHover, useIframe, useIframeStyles, useInView, useInfiniteScroll, useKeyPress, useMount, useOnScreen, useResponsive, useResponsiveContext, useScroll, useScrollAnimation, useScrollDirection, useServerInsertedHTML, useSmoothScroll, useStyleRegistry, useTheme, useWindowDimensions, useWindowDimensionsContext, useWindowSize, utilityClassManager };
|
package/dist/web/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { ReactNode, CSSProperties, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
import react__default, { ReactNode, CSSProperties, HTMLAttributes, HTMLAttributeReferrerPolicy, JSX, RefObject } from 'react';
|
|
3
3
|
import { C as ColorSingleton, a as ColorPalette, A as AnimationProps, S as Shadow, V as ViewStyleProps, I as ImageStyleProps, T as TextStyleProps } from '../viewAnimation-B4BIoOwQ.js';
|
|
4
4
|
export { b as AnalyticsConfig, c as AnalyticsContext, d as AnalyticsProvider, e as Animation, B as BlurAnimationOptions, f as ColorConfig, R as RotateAnimationOptions, g as ScaleAnimationOptions, h as Shadows, i as SlideAnimationOptions, j as Typography, k as ViewAnimationConfig, l as ViewAnimationFillMode, m as ViewAnimationOptions, n as ViewAnimationRange, o as ViewAnimationTimingFunction, p as animateOnView, q as blurInOnView, r as blurOutOnView, s as createViewAnimation, t as defaultColors, u as defaultDarkColors, v as defaultDarkPalette, w as defaultLightColors, x as defaultLightPalette, y as fadeInOnView, z as fadeOutOnView, D as flipXOnView, E as flipYOnView, F as getWindowInitialProps, G as hasColorToken, H as isBrowser, J as isDev, K as isMobile, L as isProd, M as isSSR, N as replaceColorTokens, O as revealOnView, P as rotateInOnView, Q as scaleDownOnView, U as scaleUpOnView, W as slideDownOnView, X as slideLeftOnView, Y as slideRightOnView, Z as slideUpOnView, _ as useAnalytics, $ as viewAnimationPresets } from '../viewAnimation-B4BIoOwQ.js';
|
|
5
5
|
|
|
@@ -98,6 +98,8 @@ interface CssProps extends CSSProperties {
|
|
|
98
98
|
_focusVisible?: CSSProperties | string;
|
|
99
99
|
_focusWithin?: CSSProperties | string;
|
|
100
100
|
_placeholder?: CSSProperties | string;
|
|
101
|
+
_odd?: CSSProperties | string;
|
|
102
|
+
_even?: CSSProperties | string;
|
|
101
103
|
_groupHover?: CSSProperties | string;
|
|
102
104
|
_groupFocus?: CSSProperties | string;
|
|
103
105
|
_groupActive?: CSSProperties | string;
|
|
@@ -125,6 +127,68 @@ interface CssProps extends CSSProperties {
|
|
|
125
127
|
webkitUserDrag?: CSSProperties['userSelect'];
|
|
126
128
|
}
|
|
127
129
|
interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttributes<HTMLElement> | 'children' | 'style' | 'pointerEvents'>, Omit<HTMLAttributes<HTMLElement>, 'color' | 'style' | 'content' | 'translate'> {
|
|
130
|
+
src?: string;
|
|
131
|
+
alt?: string;
|
|
132
|
+
controls?: boolean;
|
|
133
|
+
muted?: boolean;
|
|
134
|
+
autoPlay?: boolean;
|
|
135
|
+
loop?: boolean;
|
|
136
|
+
poster?: string;
|
|
137
|
+
playsInline?: boolean;
|
|
138
|
+
preload?: 'none' | 'metadata' | 'auto' | '';
|
|
139
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
140
|
+
srcSet?: string;
|
|
141
|
+
sizes?: string;
|
|
142
|
+
loading?: 'eager' | 'lazy';
|
|
143
|
+
referrerPolicy?: HTMLAttributeReferrerPolicy;
|
|
144
|
+
decoding?: 'async' | 'auto' | 'sync';
|
|
145
|
+
name?: string;
|
|
146
|
+
value?: string | number | readonly string[];
|
|
147
|
+
defaultValue?: string | number | readonly string[];
|
|
148
|
+
multiple?: boolean;
|
|
149
|
+
disabled?: boolean;
|
|
150
|
+
readOnly?: boolean;
|
|
151
|
+
required?: boolean;
|
|
152
|
+
autoComplete?: string;
|
|
153
|
+
autoFocus?: boolean;
|
|
154
|
+
placeholder?: string;
|
|
155
|
+
pattern?: string;
|
|
156
|
+
min?: number | string;
|
|
157
|
+
max?: number | string;
|
|
158
|
+
minLength?: number;
|
|
159
|
+
maxLength?: number;
|
|
160
|
+
step?: number | string;
|
|
161
|
+
form?: string;
|
|
162
|
+
formAction?: string;
|
|
163
|
+
formEncType?: string;
|
|
164
|
+
formMethod?: 'get' | 'post' | 'dialog';
|
|
165
|
+
formNoValidate?: boolean;
|
|
166
|
+
formTarget?: string;
|
|
167
|
+
rows?: number;
|
|
168
|
+
cols?: number;
|
|
169
|
+
/** HTML textarea wrap attribute. Browsers accept 'hard' | 'soft' | 'off' but
|
|
170
|
+
* the DOM type widens to plain `string`, so we mirror that here. */
|
|
171
|
+
wrap?: string;
|
|
172
|
+
list?: string;
|
|
173
|
+
accept?: string;
|
|
174
|
+
capture?: boolean | 'user' | 'environment';
|
|
175
|
+
colSpan?: number;
|
|
176
|
+
rowSpan?: number;
|
|
177
|
+
headers?: string;
|
|
178
|
+
scope?: string;
|
|
179
|
+
href?: string;
|
|
180
|
+
target?: string;
|
|
181
|
+
rel?: string;
|
|
182
|
+
hrefLang?: string;
|
|
183
|
+
download?: string | boolean;
|
|
184
|
+
xmlns?: string;
|
|
185
|
+
viewBox?: string;
|
|
186
|
+
preserveAspectRatio?: string;
|
|
187
|
+
open?: boolean;
|
|
188
|
+
scoped?: boolean;
|
|
189
|
+
reversed?: boolean;
|
|
190
|
+
start?: number;
|
|
191
|
+
htmlFor?: string;
|
|
128
192
|
on?: Record<string, CssProps>;
|
|
129
193
|
media?: Record<string, CssProps>;
|
|
130
194
|
only?: string[];
|
|
@@ -172,6 +236,8 @@ interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttribut
|
|
|
172
236
|
_focusVisible?: CssProps | string;
|
|
173
237
|
_focusWithin?: CssProps | string;
|
|
174
238
|
_placeholder?: CssProps | string;
|
|
239
|
+
_odd?: CssProps | string;
|
|
240
|
+
_even?: CssProps | string;
|
|
175
241
|
_groupHover?: CssProps | string;
|
|
176
242
|
_groupFocus?: CssProps | string;
|
|
177
243
|
_groupActive?: CssProps | string;
|
|
@@ -197,7 +263,7 @@ interface ElementProps extends CssProps, Omit<ViewStyleProps, keyof HTMLAttribut
|
|
|
197
263
|
_mozFocusInner?: CssProps | string;
|
|
198
264
|
}
|
|
199
265
|
|
|
200
|
-
declare const Element$1: react__default.
|
|
266
|
+
declare const Element$1: react__default.NamedExoticComponent<ElementProps & react__default.RefAttributes<HTMLElement>>;
|
|
201
267
|
|
|
202
268
|
interface ViewProps extends Omit<ViewStyleProps, keyof ElementProps>, ElementProps {
|
|
203
269
|
onPress?: (..._args: any) => void;
|
|
@@ -418,7 +484,7 @@ interface WindowSizeProviderProps {
|
|
|
418
484
|
declare const WindowSizeProvider: ({ children, targetWindow, }: WindowSizeProviderProps) => react__default.JSX.Element;
|
|
419
485
|
|
|
420
486
|
declare function useActive<T extends HTMLElement = HTMLElement>(): [
|
|
421
|
-
React.RefObject<T>,
|
|
487
|
+
React.RefObject<T | null>,
|
|
422
488
|
boolean
|
|
423
489
|
];
|
|
424
490
|
|
|
@@ -426,7 +492,7 @@ interface UseClickOutsideOptions {
|
|
|
426
492
|
/** Optional target window to use (for iframe support). Defaults to global window. */
|
|
427
493
|
targetWindow?: Window;
|
|
428
494
|
}
|
|
429
|
-
declare function useClickOutside<T extends HTMLElement = HTMLElement>(options?: UseClickOutsideOptions): [React.RefObject<T>, boolean];
|
|
495
|
+
declare function useClickOutside<T extends HTMLElement = HTMLElement>(options?: UseClickOutsideOptions): [React.RefObject<T | null>, boolean];
|
|
430
496
|
|
|
431
497
|
interface RelativePlacement {
|
|
432
498
|
vertical: 'top' | 'bottom';
|
|
@@ -452,7 +518,7 @@ interface UseElementPositionOptions {
|
|
|
452
518
|
}
|
|
453
519
|
interface UseElementPositionReturn {
|
|
454
520
|
/** React ref to attach to the target HTML element. */
|
|
455
|
-
ref: React.RefObject<HTMLElement>;
|
|
521
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
456
522
|
/**
|
|
457
523
|
* The calculated viewport relation data, or null if not yet calculated
|
|
458
524
|
* or element not found.
|
|
@@ -468,12 +534,12 @@ interface UseElementPositionReturn {
|
|
|
468
534
|
declare function useElementPosition<T extends HTMLElement = HTMLElement>(options?: UseElementPositionOptions): UseElementPositionReturn;
|
|
469
535
|
|
|
470
536
|
declare function useFocus<T extends HTMLElement = HTMLElement>(): [
|
|
471
|
-
React.RefObject<T>,
|
|
537
|
+
React.RefObject<T | null>,
|
|
472
538
|
boolean
|
|
473
539
|
];
|
|
474
540
|
|
|
475
541
|
declare function useHover<T extends HTMLElement = HTMLElement>(): [
|
|
476
|
-
React.RefObject<T>,
|
|
542
|
+
React.RefObject<T | null>,
|
|
477
543
|
boolean
|
|
478
544
|
];
|
|
479
545
|
|
|
@@ -485,7 +551,7 @@ interface UseOnScreenOptions extends IntersectionObserverInit {
|
|
|
485
551
|
/** Optional target window to use (for iframe support). Defaults to global window. */
|
|
486
552
|
targetWindow?: Window;
|
|
487
553
|
}
|
|
488
|
-
declare function useOnScreen<T extends HTMLElement = HTMLElement>(options?: UseOnScreenOptions): [React.RefObject<T>, boolean];
|
|
554
|
+
declare function useOnScreen<T extends HTMLElement = HTMLElement>(options?: UseOnScreenOptions): [React.RefObject<T | null>, boolean];
|
|
489
555
|
|
|
490
556
|
/**
|
|
491
557
|
* Optimized hook for components that only need breakpoint information.
|
|
@@ -563,7 +629,7 @@ interface ScrollPosition {
|
|
|
563
629
|
elementProgress?: number;
|
|
564
630
|
}
|
|
565
631
|
interface UseScrollOptions {
|
|
566
|
-
container?: RefObject<HTMLElement>;
|
|
632
|
+
container?: RefObject<HTMLElement | null>;
|
|
567
633
|
offset?: [number, number];
|
|
568
634
|
throttleMs?: number;
|
|
569
635
|
disabled?: boolean;
|
|
@@ -584,11 +650,11 @@ interface UseInfiniteScrollOptions {
|
|
|
584
650
|
debounceMs?: number;
|
|
585
651
|
}
|
|
586
652
|
declare const useScroll: ({ container, offset, throttleMs, disabled, }?: UseScrollOptions) => ScrollPosition;
|
|
587
|
-
declare const useScrollAnimation: (ref: RefObject<HTMLElement>, options?: UseScrollAnimationOptions) => {
|
|
653
|
+
declare const useScrollAnimation: (ref: RefObject<HTMLElement | null>, options?: UseScrollAnimationOptions) => {
|
|
588
654
|
isInView: boolean;
|
|
589
655
|
progress: number;
|
|
590
656
|
};
|
|
591
|
-
declare const useSmoothScroll: (targetWindow?: Window) => (element: HTMLElement | null, offset?:
|
|
657
|
+
declare const useSmoothScroll: (targetWindow?: Window) => (element: HTMLElement | null, offset?: number) => void;
|
|
592
658
|
declare const useInfiniteScroll: (callback: () => void, options?: UseInfiniteScrollOptions) => {
|
|
593
659
|
sentinelRef: react.Dispatch<react.SetStateAction<HTMLDivElement | null>>;
|
|
594
660
|
};
|
|
@@ -605,7 +671,7 @@ interface InViewOptions extends IntersectionObserverInit {
|
|
|
605
671
|
targetWindow?: Window;
|
|
606
672
|
}
|
|
607
673
|
declare function useInView(options?: InViewOptions): {
|
|
608
|
-
ref: react.RefObject<HTMLElement>;
|
|
674
|
+
ref: react.RefObject<HTMLElement | null>;
|
|
609
675
|
inView: boolean;
|
|
610
676
|
};
|
|
611
677
|
|
|
@@ -650,4 +716,4 @@ declare function useIframe(iframeRef: React.RefObject<HTMLIFrameElement>): {
|
|
|
650
716
|
isLoaded: boolean;
|
|
651
717
|
};
|
|
652
718
|
|
|
653
|
-
export { AnimationUtils, type BreakpointConfig, BreakpointContext, Button, type ButtonProps, Center, ColorPalette, ColorSingleton, type Colors, type CssProps, type DeviceConfig, type DeviceType, Div, Element$1 as Element, type ElementPosition, type ElementProps, Form, type FormProps, Horizontal, HorizontalResponsive, Image, ImageBackground, type ImageProps, Input, type InputProps, type QueryConfig, type RelativePlacement, type ResponsiveConfig, ResponsiveContext, ResponsiveProvider, type ResponsiveProviderProps, SafeArea, type ScreenConfig, type ScreenOrientation, Scroll, type ScrollPosition, Shadow, Skeleton, Span, StyleRegistry, Text, type TextProps, type Theme, ThemeContext, ThemeProvider, type UseClickOutsideOptions, type UseElementPositionOptions, type UseElementPositionReturn, type UseInfiniteScrollOptions, type UseOnScreenOptions, type UseScrollAnimationOptions, type UseScrollOptions, UtilityClassManager, Vertical, VerticalResponsive, View, type ViewProps, type WindowDimensions, WindowDimensionsContext, WindowSizeContext, WindowSizeProvider, type WindowSizeProviderProps, createStyleRegistry, debounce, deepMerge, defaultThemeMain, extractUtilityClasses, propertyShorthand, useActive, useBreakpoint, useBreakpointContext, useClickOutside, useElementPosition, useFocus, useHover, useIframe, useIframeStyles, useInView, useInfiniteScroll, useKeyPress, useMount, useOnScreen, useResponsive, useResponsiveContext, useScroll, useScrollAnimation, useScrollDirection, useServerInsertedHTML, useSmoothScroll, useStyleRegistry, useTheme, useWindowDimensions, useWindowDimensionsContext, useWindowSize, utilityClassManager };
|
|
719
|
+
export { AnimationProps, AnimationUtils, type BreakpointConfig, BreakpointContext, Button, type ButtonProps, Center, ColorPalette, ColorSingleton, type Colors, type CssProps, type DeviceConfig, type DeviceType, Div, Element$1 as Element, type ElementPosition, type ElementProps, Form, type FormProps, Horizontal, HorizontalResponsive, Image, ImageBackground, type ImageProps, Input, type InputProps, type QueryConfig, type RelativePlacement, type ResponsiveConfig, ResponsiveContext, ResponsiveProvider, type ResponsiveProviderProps, SafeArea, type ScreenConfig, type ScreenOrientation, Scroll, type ScrollPosition, Shadow, Skeleton, Span, StyleRegistry, Text, type TextProps, type Theme, ThemeContext, ThemeProvider, type UseClickOutsideOptions, type UseElementPositionOptions, type UseElementPositionReturn, type UseInfiniteScrollOptions, type UseOnScreenOptions, type UseScrollAnimationOptions, type UseScrollOptions, UtilityClassManager, Vertical, VerticalResponsive, View, type ViewProps, type WindowDimensions, WindowDimensionsContext, WindowSizeContext, WindowSizeProvider, type WindowSizeProviderProps, createStyleRegistry, debounce, deepMerge, defaultThemeMain, extractUtilityClasses, propertyShorthand, useActive, useBreakpoint, useBreakpointContext, useClickOutside, useElementPosition, useFocus, useHover, useIframe, useIframeStyles, useInView, useInfiniteScroll, useKeyPress, useMount, useOnScreen, useResponsive, useResponsiveContext, useScroll, useScrollAnimation, useScrollDirection, useServerInsertedHTML, useSmoothScroll, useStyleRegistry, useTheme, useWindowDimensions, useWindowDimensionsContext, useWindowSize, utilityClassManager };
|
package/dist/web/index.js
CHANGED
|
@@ -4951,7 +4951,7 @@ var WindowSizeProvider = ({
|
|
|
4951
4951
|
width: win?.innerWidth || 0,
|
|
4952
4952
|
height: win?.innerHeight || 0
|
|
4953
4953
|
});
|
|
4954
|
-
const timeoutRef = useRef4();
|
|
4954
|
+
const timeoutRef = useRef4(void 0);
|
|
4955
4955
|
useEffect4(() => {
|
|
4956
4956
|
if (!win) return;
|
|
4957
4957
|
const handleResize = () => {
|
|
@@ -5327,7 +5327,7 @@ var useScroll = ({
|
|
|
5327
5327
|
elementProgress: 0
|
|
5328
5328
|
});
|
|
5329
5329
|
const lastUpdateRef = useRef12(0);
|
|
5330
|
-
const frameRef = useRef12();
|
|
5330
|
+
const frameRef = useRef12(void 0);
|
|
5331
5331
|
const ticking = useRef12(false);
|
|
5332
5332
|
const getContext = useCallback5(() => {
|
|
5333
5333
|
const targetEl = container?.current ?? null;
|
|
@@ -5488,7 +5488,7 @@ var useSmoothScroll = (targetWindow) => {
|
|
|
5488
5488
|
var useInfiniteScroll = (callback, options = DEFAULT_INFINITE_SCROLL_OPTIONS) => {
|
|
5489
5489
|
const [sentinel, setSentinel] = useState12(null);
|
|
5490
5490
|
const callbackRef = useRef12(callback);
|
|
5491
|
-
const timeoutRef = useRef12();
|
|
5491
|
+
const timeoutRef = useRef12(void 0);
|
|
5492
5492
|
useEffect13(() => {
|
|
5493
5493
|
callbackRef.current = callback;
|
|
5494
5494
|
}, [callback]);
|
|
@@ -5535,7 +5535,7 @@ var useScrollDirection = (threshold = 5, targetWindow) => {
|
|
|
5535
5535
|
const [scrollDirection, setScrollDirection] = useState12("up");
|
|
5536
5536
|
const lastScrollY = useRef12(0);
|
|
5537
5537
|
const lastDirection = useRef12("up");
|
|
5538
|
-
const animationFrame = useRef12();
|
|
5538
|
+
const animationFrame = useRef12(void 0);
|
|
5539
5539
|
const ticking = useRef12(false);
|
|
5540
5540
|
const updateDirection = useCallback5(() => {
|
|
5541
5541
|
const win = targetWindow || (typeof window !== "undefined" ? window : null);
|