@fluentui/react-utilities 9.0.0-rc.6 → 9.0.0-rc.9
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/CHANGELOG.json +60 -1
- package/CHANGELOG.md +100 -72
- package/dist/{react-utilities.d.ts → index.d.ts} +0 -0
- package/{lib → dist}/tsdoc-metadata.json +0 -0
- package/lib/utils/getNativeElementProps.js +3 -2
- package/lib/utils/getNativeElementProps.js.map +1 -1
- package/lib/utils/properties.js +8 -0
- package/lib/utils/properties.js.map +1 -1
- package/lib-commonjs/utils/getNativeElementProps.js +2 -1
- package/lib-commonjs/utils/getNativeElementProps.js.map +1 -1
- package/lib-commonjs/utils/properties.js +9 -1
- package/lib-commonjs/utils/properties.js.map +1 -1
- package/package.json +4 -5
- package/lib/compose/getSlots.d.ts +0 -30
- package/lib/compose/index.d.ts +0 -3
- package/lib/compose/resolveShorthand.d.ts +0 -16
- package/lib/compose/types.d.ts +0 -161
- package/lib/hooks/index.d.ts +0 -16
- package/lib/hooks/useBoolean.d.ts +0 -17
- package/lib/hooks/useConst.d.ts +0 -12
- package/lib/hooks/useControllableState.d.ts +0 -31
- package/lib/hooks/useEventCallback.d.ts +0 -13
- package/lib/hooks/useFirstMount.d.ts +0 -11
- package/lib/hooks/useForceUpdate.d.ts +0 -4
- package/lib/hooks/useId.d.ts +0 -15
- package/lib/hooks/useIsomorphicLayoutEffect.d.ts +0 -11
- package/lib/hooks/useMergedEventCallbacks.d.ts +0 -18
- package/lib/hooks/useMergedRefs.d.ts +0 -13
- package/lib/hooks/useMount.d.ts +0 -6
- package/lib/hooks/useOnClickOutside.d.ts +0 -29
- package/lib/hooks/useOnScrollOutside.d.ts +0 -5
- package/lib/hooks/usePrevious.d.ts +0 -1
- package/lib/hooks/useTimeout.d.ts +0 -8
- package/lib/hooks/useUnmount.d.ts +0 -6
- package/lib/index.d.ts +0 -8
- package/lib/ssr/SSRContext.d.ts +0 -33
- package/lib/ssr/canUseDOM.d.ts +0 -4
- package/lib/ssr/index.d.ts +0 -2
- package/lib/utils/applyTriggerPropsToChildren.d.ts +0 -5
- package/lib/utils/clamp.d.ts +0 -8
- package/lib/utils/getNativeElementProps.d.ts +0 -31
- package/lib/utils/getRTLSafeKey.d.ts +0 -4
- package/lib/utils/getReactCallbackName.d.ts +0 -25
- package/lib/utils/getTriggerChild.d.ts +0 -22
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/isFluentTrigger.d.ts +0 -22
- package/lib/utils/omit.d.ts +0 -14
- package/lib/utils/properties.d.ts +0 -154
- package/lib/utils/shouldPreventDefaultOnKeyDown.d.ts +0 -7
- package/lib-commonjs/compose/getSlots.d.ts +0 -30
- package/lib-commonjs/compose/index.d.ts +0 -3
- package/lib-commonjs/compose/resolveShorthand.d.ts +0 -16
- package/lib-commonjs/compose/types.d.ts +0 -161
- package/lib-commonjs/hooks/index.d.ts +0 -16
- package/lib-commonjs/hooks/useBoolean.d.ts +0 -17
- package/lib-commonjs/hooks/useConst.d.ts +0 -12
- package/lib-commonjs/hooks/useControllableState.d.ts +0 -31
- package/lib-commonjs/hooks/useEventCallback.d.ts +0 -13
- package/lib-commonjs/hooks/useFirstMount.d.ts +0 -11
- package/lib-commonjs/hooks/useForceUpdate.d.ts +0 -4
- package/lib-commonjs/hooks/useId.d.ts +0 -15
- package/lib-commonjs/hooks/useIsomorphicLayoutEffect.d.ts +0 -11
- package/lib-commonjs/hooks/useMergedEventCallbacks.d.ts +0 -18
- package/lib-commonjs/hooks/useMergedRefs.d.ts +0 -13
- package/lib-commonjs/hooks/useMount.d.ts +0 -6
- package/lib-commonjs/hooks/useOnClickOutside.d.ts +0 -29
- package/lib-commonjs/hooks/useOnScrollOutside.d.ts +0 -5
- package/lib-commonjs/hooks/usePrevious.d.ts +0 -1
- package/lib-commonjs/hooks/useTimeout.d.ts +0 -8
- package/lib-commonjs/hooks/useUnmount.d.ts +0 -6
- package/lib-commonjs/index.d.ts +0 -8
- package/lib-commonjs/ssr/SSRContext.d.ts +0 -33
- package/lib-commonjs/ssr/canUseDOM.d.ts +0 -4
- package/lib-commonjs/ssr/index.d.ts +0 -2
- package/lib-commonjs/utils/applyTriggerPropsToChildren.d.ts +0 -5
- package/lib-commonjs/utils/clamp.d.ts +0 -8
- package/lib-commonjs/utils/getNativeElementProps.d.ts +0 -31
- package/lib-commonjs/utils/getRTLSafeKey.d.ts +0 -4
- package/lib-commonjs/utils/getReactCallbackName.d.ts +0 -25
- package/lib-commonjs/utils/getTriggerChild.d.ts +0 -22
- package/lib-commonjs/utils/index.d.ts +0 -9
- package/lib-commonjs/utils/isFluentTrigger.d.ts +0 -22
- package/lib-commonjs/utils/omit.d.ts +0 -14
- package/lib-commonjs/utils/properties.d.ts +0 -154
- package/lib-commonjs/utils/shouldPreventDefaultOnKeyDown.d.ts +0 -7
@@ -1,154 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* An array of events that are allowed on every html element type.
|
3
|
-
*
|
4
|
-
* @public
|
5
|
-
*/
|
6
|
-
export declare const baseElementEvents: Record<string, number>;
|
7
|
-
/**
|
8
|
-
* An array of element attributes which are allowed on every html element type.
|
9
|
-
*
|
10
|
-
* @public
|
11
|
-
*/
|
12
|
-
export declare const baseElementProperties: Record<string, number>;
|
13
|
-
/**
|
14
|
-
* An array of HTML element properties and events.
|
15
|
-
*
|
16
|
-
* @public
|
17
|
-
*/
|
18
|
-
export declare const htmlElementProperties: Record<string, number>;
|
19
|
-
/**
|
20
|
-
* An array of LABEL tag properties and events.
|
21
|
-
*
|
22
|
-
* @public
|
23
|
-
*/
|
24
|
-
export declare const labelProperties: Record<string, number>;
|
25
|
-
/**
|
26
|
-
* An array of AUDIO tag properties and events.
|
27
|
-
|
28
|
-
* @public
|
29
|
-
*/
|
30
|
-
export declare const audioProperties: Record<string, number>;
|
31
|
-
/**
|
32
|
-
* An array of VIDEO tag properties and events.
|
33
|
-
*
|
34
|
-
* @public
|
35
|
-
*/
|
36
|
-
export declare const videoProperties: Record<string, number>;
|
37
|
-
/**
|
38
|
-
* An array of OL tag properties and events.
|
39
|
-
*
|
40
|
-
* @public
|
41
|
-
*/
|
42
|
-
export declare const olProperties: Record<string, number>;
|
43
|
-
/**
|
44
|
-
* An array of LI tag properties and events.
|
45
|
-
*
|
46
|
-
* @public
|
47
|
-
*/
|
48
|
-
export declare const liProperties: Record<string, number>;
|
49
|
-
/**
|
50
|
-
* An array of A tag properties and events.
|
51
|
-
*
|
52
|
-
* @public
|
53
|
-
*/
|
54
|
-
export declare const anchorProperties: Record<string, number>;
|
55
|
-
/**
|
56
|
-
* An array of BUTTON tag properties and events.
|
57
|
-
*
|
58
|
-
* @public
|
59
|
-
*/
|
60
|
-
export declare const buttonProperties: Record<string, number>;
|
61
|
-
/**
|
62
|
-
* An array of INPUT tag properties and events.
|
63
|
-
*
|
64
|
-
* @public
|
65
|
-
*/
|
66
|
-
export declare const inputProperties: Record<string, number>;
|
67
|
-
/**
|
68
|
-
* An array of TEXTAREA tag properties and events.
|
69
|
-
*
|
70
|
-
* @public
|
71
|
-
*/
|
72
|
-
export declare const textAreaProperties: Record<string, number>;
|
73
|
-
/**
|
74
|
-
* An array of SELECT tag properties and events.
|
75
|
-
*
|
76
|
-
* @public
|
77
|
-
*/
|
78
|
-
export declare const selectProperties: Record<string, number>;
|
79
|
-
export declare const optionProperties: Record<string, number>;
|
80
|
-
/**
|
81
|
-
* An array of TABLE tag properties and events.
|
82
|
-
*
|
83
|
-
* @public
|
84
|
-
*/
|
85
|
-
export declare const tableProperties: Record<string, number>;
|
86
|
-
/**
|
87
|
-
* An array of TR tag properties and events.
|
88
|
-
*
|
89
|
-
* @public
|
90
|
-
*/
|
91
|
-
export declare const trProperties: Record<string, number>;
|
92
|
-
/**
|
93
|
-
* An array of TH tag properties and events.
|
94
|
-
*
|
95
|
-
* @public
|
96
|
-
*/
|
97
|
-
export declare const thProperties: Record<string, number>;
|
98
|
-
/**
|
99
|
-
* An array of TD tag properties and events.
|
100
|
-
*
|
101
|
-
* @public
|
102
|
-
*/
|
103
|
-
export declare const tdProperties: Record<string, number>;
|
104
|
-
export declare const colGroupProperties: Record<string, number>;
|
105
|
-
export declare const colProperties: Record<string, number>;
|
106
|
-
/**
|
107
|
-
* An array of FIELDSET tag properties and events.
|
108
|
-
*
|
109
|
-
* @public
|
110
|
-
*/
|
111
|
-
export declare const fieldsetProperties: Record<string, number>;
|
112
|
-
/**
|
113
|
-
* An array of FORM tag properties and events.
|
114
|
-
*
|
115
|
-
* @public
|
116
|
-
*/
|
117
|
-
export declare const formProperties: Record<string, number>;
|
118
|
-
/**
|
119
|
-
* An array of IFRAME tag properties and events.
|
120
|
-
*
|
121
|
-
* @public
|
122
|
-
*/
|
123
|
-
export declare const iframeProperties: Record<string, number>;
|
124
|
-
/**
|
125
|
-
* An array of IMAGE tag properties and events.
|
126
|
-
*
|
127
|
-
* @public
|
128
|
-
*/
|
129
|
-
export declare const imgProperties: Record<string, number>;
|
130
|
-
/**
|
131
|
-
* @deprecated Use imgProperties for img elements.
|
132
|
-
*/
|
133
|
-
export declare const imageProperties: Record<string, number>;
|
134
|
-
/**
|
135
|
-
* An array of DIV tag properties and events.
|
136
|
-
*
|
137
|
-
* @public
|
138
|
-
*/
|
139
|
-
export declare const divProperties: Record<string, number>;
|
140
|
-
/**
|
141
|
-
* Gets native supported props for an html element provided the allowance set. Use one of the property
|
142
|
-
* sets defined (divProperties, buttonPropertes, etc) to filter out supported properties from a given
|
143
|
-
* props set. Note that all data- and aria- prefixed attributes will be allowed.
|
144
|
-
* NOTE: getNativeProps should always be applied first when adding props to a react component. The
|
145
|
-
* non-native props should be applied second. This will prevent getNativeProps from overriding your custom props.
|
146
|
-
* For example, if props passed to getNativeProps has an onClick function and getNativeProps is added to
|
147
|
-
* the component after an onClick function is added, then the getNativeProps onClick will override it.
|
148
|
-
*
|
149
|
-
* @public
|
150
|
-
* @param props - The unfiltered input props
|
151
|
-
* @param allowedPropsNames - The array or record of allowed prop names.
|
152
|
-
* @returns The filtered props
|
153
|
-
*/
|
154
|
-
export declare function getNativeProps<T extends Record<string, any>>(props: Record<string, any>, allowedPropNames: string[] | Record<string, number>, excludedPropNames?: string[]): T;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
/**
|
3
|
-
* Checks if the keyboard event should preventDefault() for Enter and Spacebar keys
|
4
|
-
*
|
5
|
-
* Useful for situations where a keydown needs to be transformed to a click event
|
6
|
-
*/
|
7
|
-
export declare function shouldPreventDefaultOnKeyDown(e: KeyboardEvent | React.KeyboardEvent): boolean;
|