@baseline-ui/core 0.45.0 → 0.45.2
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/Acknowledgements.md +9920 -14399
- package/dist/index.css +1 -1
- package/dist/index.d.mts +150 -189
- package/dist/index.d.ts +150 -189
- package/dist/index.js +9 -18
- package/dist/index.mjs +9 -18
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ import { OnRender, OnRenderStart, OnDragStart, OnDrag, OnDragEnd, OnResizeStart,
|
|
|
7
7
|
import { Sprinkles, Theme } from '@baseline-ui/tokens';
|
|
8
8
|
import { TreeItem } from 'react-complex-tree';
|
|
9
9
|
import { ImperativePanelGroupHandle as ImperativePanelGroupHandle$1, ImperativePanelHandle as ImperativePanelHandle$1, PanelProps as PanelProps$1, PanelGroupProps as PanelGroupProps$1, PanelResizeHandleProps as PanelResizeHandleProps$1 } from 'react-resizable-panels';
|
|
10
|
+
import * as PropTypes from 'prop-types';
|
|
10
11
|
|
|
11
12
|
/*
|
|
12
13
|
* Copyright 2020 Adobe. All rights reserved.
|
|
@@ -13942,80 +13943,6 @@ declare namespace DataType {
|
|
|
13942
13943
|
type ViewportLength<TLength> = TLength | "auto" | (string & {});
|
|
13943
13944
|
}
|
|
13944
13945
|
|
|
13945
|
-
type ReactComponentLike =
|
|
13946
|
-
| string
|
|
13947
|
-
| ((props: any, context?: any) => any)
|
|
13948
|
-
| (new(props: any, context?: any) => any);
|
|
13949
|
-
|
|
13950
|
-
interface ReactElementLike {
|
|
13951
|
-
type: ReactComponentLike;
|
|
13952
|
-
props: any;
|
|
13953
|
-
key: string | null;
|
|
13954
|
-
}
|
|
13955
|
-
|
|
13956
|
-
interface ReactNodeArray extends Iterable<ReactNodeLike> {}
|
|
13957
|
-
|
|
13958
|
-
type ReactNodeLike =
|
|
13959
|
-
| ReactElementLike
|
|
13960
|
-
| ReactNodeArray
|
|
13961
|
-
| string
|
|
13962
|
-
| number
|
|
13963
|
-
| boolean
|
|
13964
|
-
| null
|
|
13965
|
-
| undefined;
|
|
13966
|
-
|
|
13967
|
-
declare const nominalTypeHack: unique symbol;
|
|
13968
|
-
|
|
13969
|
-
type IsOptional<T> = undefined extends T ? true : false;
|
|
13970
|
-
|
|
13971
|
-
type RequiredKeys<V> = {
|
|
13972
|
-
[K in keyof V]-?: Exclude<V[K], undefined> extends Validator<infer T> ? IsOptional<T> extends true ? never : K
|
|
13973
|
-
: never;
|
|
13974
|
-
}[keyof V];
|
|
13975
|
-
type OptionalKeys<V> = Exclude<keyof V, RequiredKeys<V>>;
|
|
13976
|
-
type InferPropsInner<V> = { [K in keyof V]-?: InferType<V[K]> };
|
|
13977
|
-
|
|
13978
|
-
interface Validator<T> {
|
|
13979
|
-
(
|
|
13980
|
-
props: { [key: string]: any },
|
|
13981
|
-
propName: string,
|
|
13982
|
-
componentName: string,
|
|
13983
|
-
location: string,
|
|
13984
|
-
propFullName: string,
|
|
13985
|
-
): Error | null;
|
|
13986
|
-
[nominalTypeHack]?: {
|
|
13987
|
-
type: T;
|
|
13988
|
-
} | undefined;
|
|
13989
|
-
}
|
|
13990
|
-
|
|
13991
|
-
interface Requireable<T> extends Validator<T | undefined | null> {
|
|
13992
|
-
isRequired: Validator<NonNullable<T>>;
|
|
13993
|
-
}
|
|
13994
|
-
|
|
13995
|
-
type ValidationMap<T> = { [K in keyof T]?: Validator<T[K]> };
|
|
13996
|
-
|
|
13997
|
-
type InferType<V> = V extends Validator<infer T> ? T : any;
|
|
13998
|
-
type InferProps<V> =
|
|
13999
|
-
& InferPropsInner<Pick<V, RequiredKeys<V>>>
|
|
14000
|
-
& Partial<InferPropsInner<Pick<V, OptionalKeys<V>>>>;
|
|
14001
|
-
|
|
14002
|
-
declare const any: Requireable<any>;
|
|
14003
|
-
declare const array: Requireable<any[]>;
|
|
14004
|
-
declare const bool: Requireable<boolean>;
|
|
14005
|
-
declare const func: Requireable<(...args: any[]) => any>;
|
|
14006
|
-
declare const number: Requireable<number>;
|
|
14007
|
-
declare const object: Requireable<object>;
|
|
14008
|
-
declare const string: Requireable<string>;
|
|
14009
|
-
declare const node: Requireable<ReactNodeLike>;
|
|
14010
|
-
declare const element: Requireable<ReactElementLike>;
|
|
14011
|
-
declare function instanceOf<T>(expectedClass: new(...args: any[]) => T): Requireable<T>;
|
|
14012
|
-
declare function oneOf<T>(types: readonly T[]): Requireable<T>;
|
|
14013
|
-
declare function oneOfType<T extends Validator<any>>(types: T[]): Requireable<NonNullable<InferType<T>>>;
|
|
14014
|
-
declare function arrayOf<T>(type: Validator<T>): Requireable<T[]>;
|
|
14015
|
-
declare function objectOf<T>(type: Validator<T>): Requireable<{ [K in keyof any]: T }>;
|
|
14016
|
-
declare function shape<P extends ValidationMap<any>>(type: P): Requireable<InferProps<P>>;
|
|
14017
|
-
declare function exact<P extends ValidationMap<any>>(type: P): Requireable<Required<InferProps<P>>>;
|
|
14018
|
-
|
|
14019
13946
|
// NOTE: Users of the `experimental` builds of React should add a reference
|
|
14020
13947
|
// to 'react/experimental' in their project. See experimental.d.ts's top comment
|
|
14021
13948
|
// for reference and documentation on how exactly to do it.
|
|
@@ -18145,17 +18072,17 @@ declare namespace React {
|
|
|
18145
18072
|
/**
|
|
18146
18073
|
* @deprecated Use `Validator` from the ´prop-types` instead.
|
|
18147
18074
|
*/
|
|
18148
|
-
type Validator<T> = Validator<T>;
|
|
18075
|
+
type Validator<T> = PropTypes.Validator<T>;
|
|
18149
18076
|
|
|
18150
18077
|
/**
|
|
18151
18078
|
* @deprecated Use `Requireable` from the ´prop-types` instead.
|
|
18152
18079
|
*/
|
|
18153
|
-
type Requireable<T> = Requireable<T>;
|
|
18080
|
+
type Requireable<T> = PropTypes.Requireable<T>;
|
|
18154
18081
|
|
|
18155
18082
|
/**
|
|
18156
18083
|
* @deprecated Use `ValidationMap` from the ´prop-types` instead.
|
|
18157
18084
|
*/
|
|
18158
|
-
type ValidationMap<T> = ValidationMap<T>;
|
|
18085
|
+
type ValidationMap<T> = PropTypes.ValidationMap<T>;
|
|
18159
18086
|
|
|
18160
18087
|
/**
|
|
18161
18088
|
* @deprecated Use `WeakValidationMap` from the ´prop-types` instead.
|
|
@@ -18170,22 +18097,22 @@ declare namespace React {
|
|
|
18170
18097
|
* @deprecated Use `PropTypes.*` where `PropTypes` comes from `import * as PropTypes from 'prop-types'` instead.
|
|
18171
18098
|
*/
|
|
18172
18099
|
interface ReactPropTypes {
|
|
18173
|
-
any: typeof any;
|
|
18174
|
-
array: typeof array;
|
|
18175
|
-
bool: typeof bool;
|
|
18176
|
-
func: typeof func;
|
|
18177
|
-
number: typeof number;
|
|
18178
|
-
object: typeof object;
|
|
18179
|
-
string: typeof string;
|
|
18180
|
-
node: typeof node;
|
|
18181
|
-
element: typeof element;
|
|
18182
|
-
instanceOf: typeof instanceOf;
|
|
18183
|
-
oneOf: typeof oneOf;
|
|
18184
|
-
oneOfType: typeof oneOfType;
|
|
18185
|
-
arrayOf: typeof arrayOf;
|
|
18186
|
-
objectOf: typeof objectOf;
|
|
18187
|
-
shape: typeof shape;
|
|
18188
|
-
exact: typeof exact;
|
|
18100
|
+
any: typeof PropTypes.any;
|
|
18101
|
+
array: typeof PropTypes.array;
|
|
18102
|
+
bool: typeof PropTypes.bool;
|
|
18103
|
+
func: typeof PropTypes.func;
|
|
18104
|
+
number: typeof PropTypes.number;
|
|
18105
|
+
object: typeof PropTypes.object;
|
|
18106
|
+
string: typeof PropTypes.string;
|
|
18107
|
+
node: typeof PropTypes.node;
|
|
18108
|
+
element: typeof PropTypes.element;
|
|
18109
|
+
instanceOf: typeof PropTypes.instanceOf;
|
|
18110
|
+
oneOf: typeof PropTypes.oneOf;
|
|
18111
|
+
oneOfType: typeof PropTypes.oneOfType;
|
|
18112
|
+
arrayOf: typeof PropTypes.arrayOf;
|
|
18113
|
+
objectOf: typeof PropTypes.objectOf;
|
|
18114
|
+
shape: typeof PropTypes.shape;
|
|
18115
|
+
exact: typeof PropTypes.exact;
|
|
18189
18116
|
}
|
|
18190
18117
|
|
|
18191
18118
|
//
|
|
@@ -18300,8 +18227,8 @@ type Defaultize<P, D> = P extends any ? string extends keyof P ? P
|
|
|
18300
18227
|
: never;
|
|
18301
18228
|
|
|
18302
18229
|
type ReactManagedAttributes<C, P> = C extends { propTypes: infer T; defaultProps: infer D }
|
|
18303
|
-
? Defaultize<MergePropTypes<P, InferProps<T>>, D>
|
|
18304
|
-
: C extends { propTypes: infer T } ? MergePropTypes<P, InferProps<T>>
|
|
18230
|
+
? Defaultize<MergePropTypes<P, PropTypes.InferProps<T>>, D>
|
|
18231
|
+
: C extends { propTypes: infer T } ? MergePropTypes<P, PropTypes.InferProps<T>>
|
|
18305
18232
|
: C extends { defaultProps: infer D } ? Defaultize<P, D>
|
|
18306
18233
|
: P;
|
|
18307
18234
|
|
|
@@ -18577,12 +18504,24 @@ declare function clearAnnouncer(assertiveness: Assertiveness): void;
|
|
|
18577
18504
|
*/
|
|
18578
18505
|
declare function destroyAnnouncer(): void;
|
|
18579
18506
|
|
|
18507
|
+
declare const MotionGlobalConfig: {
|
|
18508
|
+
skipAnimations?: boolean;
|
|
18509
|
+
instantAnimations?: boolean;
|
|
18510
|
+
useManualTiming?: boolean;
|
|
18511
|
+
WillChange?: any;
|
|
18512
|
+
mix?: <T>(a: T, b: T) => (p: number) => T;
|
|
18513
|
+
};
|
|
18514
|
+
|
|
18580
18515
|
interface ProgressTimeline {
|
|
18581
18516
|
currentTime: null | {
|
|
18582
18517
|
value: number;
|
|
18583
18518
|
};
|
|
18584
18519
|
cancel?: VoidFunction;
|
|
18585
18520
|
}
|
|
18521
|
+
interface TimelineWithFallback {
|
|
18522
|
+
timeline?: ProgressTimeline;
|
|
18523
|
+
observe: (animation: AnimationPlaybackControls) => VoidFunction;
|
|
18524
|
+
}
|
|
18586
18525
|
/**
|
|
18587
18526
|
* Methods to control an animation.
|
|
18588
18527
|
*/
|
|
@@ -18605,7 +18544,7 @@ interface AnimationPlaybackControls {
|
|
|
18605
18544
|
*
|
|
18606
18545
|
* This is currently for internal use only.
|
|
18607
18546
|
*/
|
|
18608
|
-
state
|
|
18547
|
+
state: AnimationPlayState;
|
|
18609
18548
|
duration: number;
|
|
18610
18549
|
/**
|
|
18611
18550
|
* Stops the animation at its current state, and prevents it from
|
|
@@ -18628,26 +18567,16 @@ interface AnimationPlaybackControls {
|
|
|
18628
18567
|
* Cancels the animation and applies the initial state.
|
|
18629
18568
|
*/
|
|
18630
18569
|
cancel: () => void;
|
|
18631
|
-
/**
|
|
18632
|
-
* Allows the animation to be awaited.
|
|
18633
|
-
*/
|
|
18634
|
-
then: (onResolve: VoidFunction, onReject?: VoidFunction) => Promise<void>;
|
|
18635
18570
|
/**
|
|
18636
18571
|
* Attaches a timeline to the animation, for instance the `ScrollTimeline`.
|
|
18637
18572
|
*
|
|
18638
18573
|
* This is currently for internal use only.
|
|
18639
18574
|
*/
|
|
18640
|
-
attachTimeline
|
|
18641
|
-
/**
|
|
18642
|
-
* Flattens the animation's easing curve to linear.
|
|
18643
|
-
*
|
|
18644
|
-
* This is currently for internal use only, and is used by scroll() to
|
|
18645
|
-
* ensure an animation is being scrubbed by progress rather than eased time.
|
|
18646
|
-
*/
|
|
18647
|
-
flatten: () => void;
|
|
18648
|
-
}
|
|
18649
|
-
type AnimationPlaybackControlsWithFinished = Omit<AnimationPlaybackControls, "then"> & {
|
|
18575
|
+
attachTimeline: (timeline: TimelineWithFallback) => VoidFunction;
|
|
18650
18576
|
finished: Promise<any>;
|
|
18577
|
+
}
|
|
18578
|
+
type AnimationPlaybackControlsWithThen = AnimationPlaybackControls & {
|
|
18579
|
+
then: (onResolve: VoidFunction, onReject?: VoidFunction) => Promise<void>;
|
|
18651
18580
|
};
|
|
18652
18581
|
interface TransformProperties {
|
|
18653
18582
|
x?: string | number;
|
|
@@ -18674,29 +18603,22 @@ interface TransformProperties {
|
|
|
18674
18603
|
transformPerspective?: string | number;
|
|
18675
18604
|
}
|
|
18676
18605
|
|
|
18677
|
-
declare global {
|
|
18678
|
-
interface Window {
|
|
18679
|
-
ScrollTimeline: ScrollTimeline$1;
|
|
18680
|
-
}
|
|
18681
|
-
}
|
|
18682
|
-
declare class ScrollTimeline$1 implements ProgressTimeline {
|
|
18683
|
-
constructor(options: ScrollOptions);
|
|
18684
|
-
currentTime: null | {
|
|
18685
|
-
value: number;
|
|
18686
|
-
};
|
|
18687
|
-
cancel?: VoidFunction;
|
|
18688
|
-
}
|
|
18689
|
-
|
|
18690
18606
|
/**
|
|
18691
18607
|
* @public
|
|
18692
18608
|
*/
|
|
18693
18609
|
type Subscriber<T> = (v: T) => void;
|
|
18610
|
+
/**
|
|
18611
|
+
* @public
|
|
18612
|
+
*/
|
|
18613
|
+
type PassiveEffect<T> = (v: T, safeSetter: (v: T) => void) => void;
|
|
18614
|
+
type StartAnimation = (complete: () => void) => AnimationPlaybackControlsWithThen | undefined;
|
|
18694
18615
|
interface MotionValueEventCallbacks<V> {
|
|
18695
18616
|
animationStart: () => void;
|
|
18696
18617
|
animationComplete: () => void;
|
|
18697
18618
|
animationCancel: () => void;
|
|
18698
18619
|
change: (latestValue: V) => void;
|
|
18699
18620
|
renderRequest: () => void;
|
|
18621
|
+
destroy: () => void;
|
|
18700
18622
|
}
|
|
18701
18623
|
interface ResolvedValues$1 {
|
|
18702
18624
|
[key: string]: string | number;
|
|
@@ -18708,17 +18630,15 @@ interface Owner {
|
|
|
18708
18630
|
transformTemplate?: (transform: TransformProperties, generatedTransform: string) => string;
|
|
18709
18631
|
};
|
|
18710
18632
|
}
|
|
18633
|
+
interface MotionValueOptions {
|
|
18634
|
+
owner?: Owner;
|
|
18635
|
+
}
|
|
18711
18636
|
/**
|
|
18712
18637
|
* `MotionValue` is used to track the state and velocity of motion values.
|
|
18713
18638
|
*
|
|
18714
18639
|
* @public
|
|
18715
18640
|
*/
|
|
18716
18641
|
declare class MotionValue<V = any> {
|
|
18717
|
-
/**
|
|
18718
|
-
* This will be replaced by the build step with the latest version number.
|
|
18719
|
-
* When MotionValues are provided to motion components, warn if versions are mixed.
|
|
18720
|
-
*/
|
|
18721
|
-
version: string;
|
|
18722
18642
|
/**
|
|
18723
18643
|
* If a MotionValue has an owner, it was created internally within Motion
|
|
18724
18644
|
* and therefore has no external listeners. It is therefore safe to animate via WAAPI.
|
|
@@ -18745,10 +18665,30 @@ declare class MotionValue<V = any> {
|
|
|
18745
18665
|
*/
|
|
18746
18666
|
prevUpdatedAt: number | undefined;
|
|
18747
18667
|
private stopPassiveEffect?;
|
|
18668
|
+
/**
|
|
18669
|
+
* Whether the passive effect is active.
|
|
18670
|
+
*/
|
|
18671
|
+
isEffectActive?: boolean;
|
|
18748
18672
|
/**
|
|
18749
18673
|
* A reference to the currently-controlling animation.
|
|
18750
18674
|
*/
|
|
18751
|
-
animation?:
|
|
18675
|
+
animation?: AnimationPlaybackControlsWithThen;
|
|
18676
|
+
/**
|
|
18677
|
+
* A list of MotionValues whose values are computed from this one.
|
|
18678
|
+
* This is a rough start to a proper signal-like dirtying system.
|
|
18679
|
+
*/
|
|
18680
|
+
private dependents;
|
|
18681
|
+
/**
|
|
18682
|
+
* Tracks whether this value should be removed
|
|
18683
|
+
*/
|
|
18684
|
+
liveStyle?: boolean;
|
|
18685
|
+
/**
|
|
18686
|
+
* @param init - The initiating value
|
|
18687
|
+
* @param config - Optional configuration options
|
|
18688
|
+
*
|
|
18689
|
+
* - `transformer`: A function to transform incoming values with.
|
|
18690
|
+
*/
|
|
18691
|
+
constructor(init: V, options?: MotionValueOptions);
|
|
18752
18692
|
setCurrent(current: V): void;
|
|
18753
18693
|
setPrevFrameValue(prevFrameValue?: V | undefined): void;
|
|
18754
18694
|
/**
|
|
@@ -18798,6 +18738,10 @@ declare class MotionValue<V = any> {
|
|
|
18798
18738
|
private events;
|
|
18799
18739
|
on<EventName extends keyof MotionValueEventCallbacks<V>>(eventName: EventName, callback: MotionValueEventCallbacks<V>[EventName]): VoidFunction;
|
|
18800
18740
|
clearListeners(): void;
|
|
18741
|
+
/**
|
|
18742
|
+
* Attaches a passive effect to the `MotionValue`.
|
|
18743
|
+
*/
|
|
18744
|
+
attach(passiveEffect: PassiveEffect<V>, stopPassiveEffect: VoidFunction): void;
|
|
18801
18745
|
/**
|
|
18802
18746
|
* Sets the state of the `MotionValue`.
|
|
18803
18747
|
*
|
|
@@ -18820,6 +18764,9 @@ declare class MotionValue<V = any> {
|
|
|
18820
18764
|
* effects, and resets velocity to `0`.
|
|
18821
18765
|
*/
|
|
18822
18766
|
jump(v: V, endAnimation?: boolean): void;
|
|
18767
|
+
dirty(): void;
|
|
18768
|
+
addDependent(dependent: MotionValue): void;
|
|
18769
|
+
removeDependent(dependent: MotionValue): void;
|
|
18823
18770
|
updateAndNotify: (v: V, render?: boolean) => void;
|
|
18824
18771
|
/**
|
|
18825
18772
|
* Returns the latest state of `MotionValue`
|
|
@@ -18842,6 +18789,17 @@ declare class MotionValue<V = any> {
|
|
|
18842
18789
|
*/
|
|
18843
18790
|
getVelocity(): number;
|
|
18844
18791
|
hasAnimated: boolean;
|
|
18792
|
+
/**
|
|
18793
|
+
* Registers a new animation to control this `MotionValue`. Only one
|
|
18794
|
+
* animation can drive a `MotionValue` at one time.
|
|
18795
|
+
*
|
|
18796
|
+
* ```jsx
|
|
18797
|
+
* value.start()
|
|
18798
|
+
* ```
|
|
18799
|
+
*
|
|
18800
|
+
* @param animation - A function that starts the provided animation
|
|
18801
|
+
*/
|
|
18802
|
+
start(startAnimation: StartAnimation): Promise<void>;
|
|
18845
18803
|
/**
|
|
18846
18804
|
* Stop the currently active animation.
|
|
18847
18805
|
*
|
|
@@ -18867,21 +18825,17 @@ declare class MotionValue<V = any> {
|
|
|
18867
18825
|
destroy(): void;
|
|
18868
18826
|
}
|
|
18869
18827
|
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18828
|
+
type Process = (data: FrameData) => void;
|
|
18829
|
+
type Schedule = (process: Process, keepAlive?: boolean, immediate?: boolean) => Process;
|
|
18830
|
+
type StepId = "setup" | "read" | "resolveKeyframes" | "preUpdate" | "update" | "preRender" | "render" | "postRender";
|
|
18831
|
+
type Batcher = {
|
|
18832
|
+
[key in StepId]: Schedule;
|
|
18833
|
+
};
|
|
18834
|
+
interface FrameData {
|
|
18835
|
+
delta: number;
|
|
18836
|
+
timestamp: number;
|
|
18837
|
+
isProcessing: boolean;
|
|
18876
18838
|
}
|
|
18877
|
-
type SupportedEdgeUnit = "px" | "vw" | "vh" | "%";
|
|
18878
|
-
type EdgeUnit = `${number}${SupportedEdgeUnit}`;
|
|
18879
|
-
type NamedEdges = "start" | "end" | "center";
|
|
18880
|
-
type EdgeString = NamedEdges | EdgeUnit | `${number}`;
|
|
18881
|
-
type Edge = EdgeString | number;
|
|
18882
|
-
type ProgressIntersection = [number, number];
|
|
18883
|
-
type Intersection = `${Edge} ${Edge}`;
|
|
18884
|
-
type ScrollOffset = Array<Edge | Intersection | ProgressIntersection>;
|
|
18885
18839
|
|
|
18886
18840
|
declare global {
|
|
18887
18841
|
interface Window {
|
|
@@ -18889,30 +18843,13 @@ declare global {
|
|
|
18889
18843
|
}
|
|
18890
18844
|
}
|
|
18891
18845
|
declare class ScrollTimeline implements ProgressTimeline {
|
|
18892
|
-
constructor(options: ScrollOptions
|
|
18846
|
+
constructor(options: ScrollOptions);
|
|
18893
18847
|
currentTime: null | {
|
|
18894
18848
|
value: number;
|
|
18895
18849
|
};
|
|
18896
18850
|
cancel?: VoidFunction;
|
|
18897
18851
|
}
|
|
18898
18852
|
|
|
18899
|
-
type Process = (data: FrameData) => void;
|
|
18900
|
-
type Schedule = (process: Process, keepAlive?: boolean, immediate?: boolean) => Process;
|
|
18901
|
-
type StepId = "read" | "resolveKeyframes" | "update" | "preRender" | "render" | "postRender";
|
|
18902
|
-
type Batcher = {
|
|
18903
|
-
[key in StepId]: Schedule;
|
|
18904
|
-
};
|
|
18905
|
-
interface FrameData {
|
|
18906
|
-
delta: number;
|
|
18907
|
-
timestamp: number;
|
|
18908
|
-
isProcessing: boolean;
|
|
18909
|
-
}
|
|
18910
|
-
|
|
18911
|
-
declare const MotionGlobalConfig: {
|
|
18912
|
-
skipAnimations: boolean;
|
|
18913
|
-
useManualTiming: boolean;
|
|
18914
|
-
};
|
|
18915
|
-
|
|
18916
18853
|
declare const optimizedAppearDataAttribute: "data-framer-appear-id";
|
|
18917
18854
|
|
|
18918
18855
|
/**
|
|
@@ -19257,6 +19194,17 @@ declare function cleanKeyFromGlobImport(modules: Record<string, Record<string, s
|
|
|
19257
19194
|
* from the original object.
|
|
19258
19195
|
*/
|
|
19259
19196
|
declare function filterTruthyValues<T extends Record<string, unknown>>(obj: T): Partial<T>;
|
|
19197
|
+
/**
|
|
19198
|
+
* This function converts a boolean or an object to a config object. If the
|
|
19199
|
+
* value is a boolean, the defaults will be returned. If the value is an object,
|
|
19200
|
+
* the defaults will be merged with the value.
|
|
19201
|
+
*
|
|
19202
|
+
* @template T - A type that extends Record<string, unknown>.
|
|
19203
|
+
* @param {boolean | Partial<T>} value - The value to convert.
|
|
19204
|
+
* @param {T} defaults - The defaults to use if the value is a boolean.
|
|
19205
|
+
* @returns {T} - A new object that includes the defaults and the value.
|
|
19206
|
+
*/
|
|
19207
|
+
declare function booleanOrObjectToConfig<T extends Record<string, unknown>>(value: boolean | Partial<T>, defaults: T): T | undefined;
|
|
19260
19208
|
|
|
19261
19209
|
/**
|
|
19262
19210
|
* Lightens a color by a percentage.
|
|
@@ -20218,7 +20166,7 @@ interface I18nProviderProps extends I18nProviderProps$1 {
|
|
|
20218
20166
|
|
|
20219
20167
|
declare const I18nProvider: React__default__default.FC<I18nProviderProps>;
|
|
20220
20168
|
|
|
20221
|
-
declare const directionVar: `var(--${string})
|
|
20169
|
+
declare const directionVar: `var(--${string})`;
|
|
20222
20170
|
|
|
20223
20171
|
type NumberFormatProps = Parameters<typeof useNumberFormatter>[0] & {
|
|
20224
20172
|
/** The number to format. */
|
|
@@ -22328,11 +22276,9 @@ type GridLines = {
|
|
|
22328
22276
|
y: number;
|
|
22329
22277
|
} | null;
|
|
22330
22278
|
} | boolean;
|
|
22331
|
-
interface PointPickerContentProps extends StylingProps, AriaLabelingProps, Omit<FocusProps<FocusableElement>, "isDisabled">, Omit<KeyboardProps, "isDisabled"> {
|
|
22279
|
+
interface PointPickerContentProps extends StylingProps, AriaLabelingProps, Omit<FocusProps<FocusableElement>, "isDisabled">, Omit<KeyboardProps, "isDisabled">, Pick<PressHookProps, "onPress" | "onPressStart" | "onPressEnd"> {
|
|
22332
22280
|
/** The magnifier's content. */
|
|
22333
22281
|
children: React__default__default.ReactElement;
|
|
22334
|
-
/** The callback function that is called when the magnifier is pressed. */
|
|
22335
|
-
onPress?: (e: PressEvent) => void;
|
|
22336
22282
|
/**
|
|
22337
22283
|
* Whether to show the grid lines. If a function is provided, it will be
|
|
22338
22284
|
* called with the current options and should return a boolean or an object
|
|
@@ -22361,11 +22307,16 @@ interface PointPickerContentProps extends StylingProps, AriaLabelingProps, Omit<
|
|
|
22361
22307
|
* snap point.
|
|
22362
22308
|
*/
|
|
22363
22309
|
onMove?: (options: Options) => void;
|
|
22310
|
+
/** The content follows the cursor. */
|
|
22311
|
+
renderTrailingElement?: () => React__default__default.ReactElement;
|
|
22364
22312
|
}
|
|
22365
22313
|
interface Description {
|
|
22366
22314
|
label: string;
|
|
22367
22315
|
icon: React__default__default.FC<IconProps>;
|
|
22368
22316
|
}
|
|
22317
|
+
type FloatingOptions = Pick<PopoverContentProps, "crossOffset" | "offset" | "placement"> & {
|
|
22318
|
+
anchorElement?: "indicator" | "trailing";
|
|
22319
|
+
};
|
|
22369
22320
|
interface PointPickerDisplayProps extends StylingProps {
|
|
22370
22321
|
/**
|
|
22371
22322
|
* The description of the display.
|
|
@@ -22388,11 +22339,11 @@ interface PointPickerDisplayProps extends StylingProps {
|
|
|
22388
22339
|
scale?: number;
|
|
22389
22340
|
};
|
|
22390
22341
|
/**
|
|
22391
|
-
*
|
|
22342
|
+
* Whether to show the display as a floating popover.
|
|
22392
22343
|
*
|
|
22393
|
-
* @default
|
|
22344
|
+
* @default false
|
|
22394
22345
|
*/
|
|
22395
|
-
|
|
22346
|
+
floating?: boolean | FloatingOptions;
|
|
22396
22347
|
/** The content to render in the magnifier. */
|
|
22397
22348
|
renderMagnifierContent?: (options: Options & {
|
|
22398
22349
|
children: React__default__default.ReactNode;
|
|
@@ -22405,33 +22356,18 @@ declare const PointPickerContent: React__default__default.ForwardRefExoticCompon
|
|
|
22405
22356
|
|
|
22406
22357
|
declare const PointPickerDisplay: React__default__default.ForwardRefExoticComponent<PointPickerDisplayProps & React__default__default.RefAttributes<HTMLDivElement>>;
|
|
22407
22358
|
|
|
22408
|
-
interface Point
|
|
22359
|
+
interface Point {
|
|
22409
22360
|
x: number;
|
|
22410
22361
|
y: number;
|
|
22411
22362
|
}
|
|
22412
22363
|
declare function usePointProximity({ snapPoints, snapRadius, }: {
|
|
22413
|
-
snapPoints?: Point
|
|
22364
|
+
snapPoints?: Point[];
|
|
22414
22365
|
snapRadius?: number;
|
|
22415
22366
|
}): {
|
|
22416
|
-
findNearestPoint: (cursor: Point
|
|
22417
|
-
findPointsInRadius: (cursor: Point
|
|
22367
|
+
findNearestPoint: (cursor: Point) => Promise<Point | null>;
|
|
22368
|
+
findPointsInRadius: (cursor: Point) => Promise<Point[]>;
|
|
22418
22369
|
};
|
|
22419
22370
|
|
|
22420
|
-
interface Point {
|
|
22421
|
-
x: number;
|
|
22422
|
-
y: number;
|
|
22423
|
-
}
|
|
22424
|
-
|
|
22425
|
-
interface PointsVisualiserProps {
|
|
22426
|
-
debugPoints: Point[];
|
|
22427
|
-
radius?: number;
|
|
22428
|
-
showRadius?: boolean;
|
|
22429
|
-
showSnapPoints?: boolean;
|
|
22430
|
-
type?: "nearest" | "within";
|
|
22431
|
-
onActivePointsChange?: (points: Point[]) => void;
|
|
22432
|
-
}
|
|
22433
|
-
declare const PointsVisualiser: React__default__default.NamedExoticComponent<PointsVisualiserProps>;
|
|
22434
|
-
|
|
22435
22371
|
/**
|
|
22436
22372
|
* A hook that creates an IntersectionObserver and observes a target element.
|
|
22437
22373
|
*
|
|
@@ -22777,6 +22713,31 @@ declare function useLiveInteractionModality({ ownerDocument, }: {
|
|
|
22777
22713
|
ownerDocument?: Document;
|
|
22778
22714
|
}): "pointer" | "keyboard";
|
|
22779
22715
|
|
|
22716
|
+
/**
|
|
22717
|
+
* This focus prevents the user from interacting with the element or its
|
|
22718
|
+
* children. It is useful for components that are not interactive but need to
|
|
22719
|
+
* prevent focus from being trapped inside them.
|
|
22720
|
+
*
|
|
22721
|
+
* @example
|
|
22722
|
+
* ```tsx
|
|
22723
|
+
* const ref = useRef<HTMLDivElement>(null);
|
|
22724
|
+
* usePreventFocus({ ref, isDisabled: false });
|
|
22725
|
+
*
|
|
22726
|
+
* <div ref={ref}>
|
|
22727
|
+
* <button>Button</button>
|
|
22728
|
+
* <input type="text" />
|
|
22729
|
+
* </div>
|
|
22730
|
+
* ```;
|
|
22731
|
+
*
|
|
22732
|
+
* @param ref - The ref to the element that will be prevented from receiving
|
|
22733
|
+
* focus.
|
|
22734
|
+
* @param isDisabled - Whether the focus prevention is disabled.
|
|
22735
|
+
*/
|
|
22736
|
+
declare function usePreventFocus({ ref, isDisabled, }: {
|
|
22737
|
+
ref: React__default__default.RefObject<HTMLElement>;
|
|
22738
|
+
isDisabled?: boolean;
|
|
22739
|
+
}): void;
|
|
22740
|
+
|
|
22780
22741
|
declare const reactAria_AriaButtonProps: typeof AriaButtonProps;
|
|
22781
22742
|
declare const reactAria_AriaTextFieldOptions: typeof AriaTextFieldOptions;
|
|
22782
22743
|
declare const reactAria_DroppableCollectionReorderEvent: typeof DroppableCollectionReorderEvent;
|
|
@@ -22798,5 +22759,5 @@ declare namespace reactStately {
|
|
|
22798
22759
|
export type { Color };
|
|
22799
22760
|
}
|
|
22800
22761
|
|
|
22801
|
-
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, AlertDialog, AudioPlayer, Avatar, Box, ButtonSelect, Checkbox, ColorInput, ColorSwatch, ColorSwatchPicker, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, DomNodeRenderer, Drawer, Editor, FileUpload, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Link, ListBox, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, MotionGlobalConfig, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay,
|
|
22802
|
-
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, AlertDialogProps, Assertiveness, AudioPlayerProps, AvatarProps, BlockProps, BoxProps, ButtonSelectProps, CheckboxProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ComboBoxProps, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DomNodeRendererProps, DrawerProps, EditorHandle, EditorProps, FileUploadProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, Key, LinkProps, ListBoxProps, ListHandle, ListOption, MarkdownProps, MenuItem, MenuProps, Message, MessageDescriptor, MessageFormatProps, MessageFormatter, ModalContentProps, ModalProps, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps,
|
|
22762
|
+
export { Accordion, AccordionItem, ActionButton, ActionGroup, ActionGroupItem, ActionIconButton, AlertDialog, AudioPlayer, Avatar, Box, ButtonSelect, Checkbox, ColorInput, ColorSwatch, ColorSwatchPicker, ComboBox, DateField, DateFormat, DefaultListOption, DeviceProvider, DeviceProviderContext, Dialog, DialogTitle, DomNodeRenderer, Drawer, Editor, FileUpload, FocusScope, Focusable, FrameProvider, FreehandCanvas, GlobalToastRegion, GridList, Group, I18nProvider, Icon, IconColorInput, IconColorInputButton, IconSelect, IconSlider, ImageDropZone, ImageGallery, InlineAlert, Link, ListBox, Markdown, Menu, MessageFormat, Modal, ModalClose, ModalContent, ModalTrigger, MotionGlobalConfig, NumberFormat, NumberInput, Pagination, Panel, PanelGroup, PanelResizeHandle, PointPicker, PointPickerContent, PointPickerDisplay, Popover, PopoverContent, PopoverTrigger, Portal, PortalContainerProvider, Pressable, Preview, ProgressBar, ProgressSpinner, RadioGroup, Reaction, ScrollControlButton, SearchInput, Select, Separator, Slider, Switch, TabItem, Tabs, TagGroup, TaggedPagination, Text, TextInput, ThemeProvider, TimeField, ToastQueue, ToggleButton, ToggleIconButton, Toolbar, Tooltip, Transform, TreeView, reactAria as UNSAFE_aria, reactStately as UNSAFE_stately, VisuallyHidden, announce, booleanOrObjectToConfig, calculateFontSizeToFitWidth, classNames, cleanKeyFromGlobImport, clearAnnouncer, defineMessages, destroyAnnouncer, directionVar, disableAnimations, enableAnimations, filterDOMProps, filterTruthyValues, findFocusableElements, getAbsoluteBounds, getAbsolutePosition, getActiveElement, getHTMLElement, getOsSpecificKeyboardShortcutLabel, getOwnerDocument, getPlainText, getSvgPathFromStroke, getTextDimensions, invariant, isFocusableElement, isInIframe, isInShadowDOM, isInputThatOpensKeyboard, isInsideOverlayContent, isRect, isUrl, lightenColor, mergeProps, mergeRefs, parseColor, useCollator, useDateFormatter, useDevice, useFocusRing, useFocusVisible, useI18n, useId, useImage, useInteractionModality, useIntersectionObserver, useIsFirstRender, useKeyboard, useLiveInteractionModality, useLocalStorage, useLocale, useMutationObserver, useNumberFormatter, useObjectRef, usePointProximity, usePortalContainer, usePreventFocus, useResizeObserver, useTextSelection, useUndoRedo, useUserPreferences };
|
|
22763
|
+
export type { AccordionItemProps, AccordionProps, ActionButtonProps, ActionGroupProps, ActionIconButtonProps, AlertDialogProps, Assertiveness, AudioPlayerProps, AvatarProps, BlockProps, BoxProps, ButtonSelectProps, CheckboxProps, ColorInputProps, ColorPreset, ColorSwatchPickerProps, ColorSwatchProps, ComboBoxProps, DateFieldProps, DateFormatProps, Device, DeviceProviderProps, DialogProps, DialogTitleProps, DomNodeRendererProps, DrawerProps, EditorHandle, EditorProps, FileUploadProps, FocusableProps, FrameProviderProps, FreehandCanvasProps, GridListProps, GroupProps, I18nProviderProps, I18nResult, IconColorInputProps, IconComponentProps$1 as IconComponentProps, IconProps, IconSelectProps, IconSliderProps, ImageDropZoneProps, ImageGalleryProps, ImperativePanelGroupHandle, ImperativePanelHandle, InlineAlertProps, Key, LinkProps, ListBoxProps, ListHandle, ListOption, MarkdownProps, MenuItem, MenuProps, Message, MessageDescriptor, MessageFormatProps, MessageFormatter, ModalContentProps, ModalProps, NumberFormatProps, NumberInputProps, PaginationProps, PanelGroupProps, PanelProps, PanelResizeHandleProps, PointPickerContentProps, PointPickerDisplayProps, PointPickerProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, PortalProps, PressEvent, PreviewProps, ProgressBarProps, ProgressSpinnerProps, RadioGroupProps, ReactComplexTreeItem, ReactionProps, Rect, SVGRProps, ScrollControlButtonProps, SearchInputProps, SelectProps, SeparatorProps, SliderProps, StylingProps, SwitchProps, TabItemProps, TabsProps, TagGroupProps, TaggedPaginationProps, TextInputProps, TextProps, ThemeProviderProps, TimeFieldProps, ToastProps, ToggleButtonProps, ToggleIconButtonProps, ToolbarProps, TooltipProps, TransformProps, TreeViewProps };
|