@fluentui/react-utilities 9.0.0-rc.3 → 9.0.0-rc.6
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 +84 -1
- package/CHANGELOG.md +33 -2
- package/dist/react-utilities.d.ts +15 -1
- package/lib/compose/types.d.ts +6 -0
- package/lib/compose/types.js +1 -5
- package/lib/compose/types.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -2
- package/lib/hooks/index.js +2 -2
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useId.d.ts +1 -1
- package/lib/hooks/useId.js +9 -3
- package/lib/hooks/useId.js.map +1 -1
- package/lib/index.d.ts +8 -4
- package/lib/index.js +5 -4
- package/lib/index.js.map +1 -1
- package/lib/utils/getNativeElementProps.js +2 -1
- package/lib/utils/getNativeElementProps.js.map +1 -1
- package/lib/utils/properties.d.ts +6 -0
- package/lib/utils/properties.js +8 -0
- package/lib/utils/properties.js.map +1 -1
- package/lib/utils/shouldPreventDefaultOnKeyDown.js +4 -0
- package/lib/utils/shouldPreventDefaultOnKeyDown.js.map +1 -1
- package/lib-commonjs/compose/types.d.ts +6 -0
- package/lib-commonjs/compose/types.js +1 -5
- package/lib-commonjs/compose/types.js.map +1 -1
- package/lib-commonjs/hooks/index.d.ts +2 -2
- package/lib-commonjs/hooks/index.js +4 -4
- package/lib-commonjs/hooks/index.js.map +1 -1
- package/lib-commonjs/hooks/useId.d.ts +1 -1
- package/lib-commonjs/hooks/useId.js +9 -3
- package/lib-commonjs/hooks/useId.js.map +1 -1
- package/lib-commonjs/index.d.ts +8 -4
- package/lib-commonjs/index.js +376 -5
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/getNativeElementProps.js +1 -0
- package/lib-commonjs/utils/getNativeElementProps.js.map +1 -1
- package/lib-commonjs/utils/properties.d.ts +6 -0
- package/lib-commonjs/utils/properties.js +9 -1
- package/lib-commonjs/utils/properties.js.map +1 -1
- package/lib-commonjs/utils/shouldPreventDefaultOnKeyDown.js +4 -0
- package/lib-commonjs/utils/shouldPreventDefaultOnKeyDown.js.map +1 -1
- package/package.json +10 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":[
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
|
@@ -1,8 +1,9 @@
|
|
1
|
-
export * from './useControllableState';
|
2
1
|
export * from './useBoolean';
|
3
2
|
export * from './useConst';
|
3
|
+
export * from './useControllableState';
|
4
4
|
export * from './useEventCallback';
|
5
5
|
export * from './useFirstMount';
|
6
|
+
export * from './useForceUpdate';
|
6
7
|
export * from './useId';
|
7
8
|
export * from './useIsomorphicLayoutEffect';
|
8
9
|
export * from './useMergedEventCallbacks';
|
@@ -13,4 +14,3 @@ export * from './useOnScrollOutside';
|
|
13
14
|
export * from './usePrevious';
|
14
15
|
export * from './useTimeout';
|
15
16
|
export * from './useUnmount';
|
16
|
-
export * from './useForceUpdate';
|
@@ -6,16 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
|
7
7
|
const tslib_1 = /*#__PURE__*/require("tslib");
|
8
8
|
|
9
|
-
tslib_1.__exportStar(require("./useControllableState"), exports);
|
10
|
-
|
11
9
|
tslib_1.__exportStar(require("./useBoolean"), exports);
|
12
10
|
|
13
11
|
tslib_1.__exportStar(require("./useConst"), exports);
|
14
12
|
|
13
|
+
tslib_1.__exportStar(require("./useControllableState"), exports);
|
14
|
+
|
15
15
|
tslib_1.__exportStar(require("./useEventCallback"), exports);
|
16
16
|
|
17
17
|
tslib_1.__exportStar(require("./useFirstMount"), exports);
|
18
18
|
|
19
|
+
tslib_1.__exportStar(require("./useForceUpdate"), exports);
|
20
|
+
|
19
21
|
tslib_1.__exportStar(require("./useId"), exports);
|
20
22
|
|
21
23
|
tslib_1.__exportStar(require("./useIsomorphicLayoutEffect"), exports);
|
@@ -35,6 +37,4 @@ tslib_1.__exportStar(require("./usePrevious"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./useTimeout"), exports);
|
36
38
|
|
37
39
|
tslib_1.__exportStar(require("./useUnmount"), exports);
|
38
|
-
|
39
|
-
tslib_1.__exportStar(require("./useForceUpdate"), exports);
|
40
40
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,
|
1
|
+
{"version":3,"sources":["hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,wBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,kBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,SAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,6BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,2BAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,YAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,sBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './useBoolean';\nexport * from './useConst';\nexport * from './useControllableState';\nexport * from './useEventCallback';\nexport * from './useFirstMount';\nexport * from './useForceUpdate';\nexport * from './useId';\nexport * from './useIsomorphicLayoutEffect';\nexport * from './useMergedEventCallbacks';\nexport * from './useMergedRefs';\nexport * from './useMount';\nexport * from './useOnClickOutside';\nexport * from './useOnScrollOutside';\nexport * from './usePrevious';\nexport * from './useTimeout';\nexport * from './useUnmount';\n"],"sourceRoot":"../src/"}
|
@@ -7,7 +7,7 @@ export declare function resetIdsForTests(): void;
|
|
7
7
|
/**
|
8
8
|
* Hook to generate a unique ID.
|
9
9
|
*
|
10
|
-
* @param prefix - Optional prefix for the ID
|
10
|
+
* @param prefix - Optional prefix for the ID. Defaults to 'fui-'.
|
11
11
|
* @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,
|
12
12
|
* without conditioning the hook call
|
13
13
|
* @returns The ID
|
@@ -23,15 +23,21 @@ exports.resetIdsForTests = resetIdsForTests;
|
|
23
23
|
/**
|
24
24
|
* Hook to generate a unique ID.
|
25
25
|
*
|
26
|
-
* @param prefix - Optional prefix for the ID
|
26
|
+
* @param prefix - Optional prefix for the ID. Defaults to 'fui-'.
|
27
27
|
* @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,
|
28
28
|
* without conditioning the hook call
|
29
29
|
* @returns The ID
|
30
30
|
*/
|
31
31
|
|
32
|
-
function useId(prefix, providedId) {
|
32
|
+
function useId(prefix = 'fui-', providedId) {
|
33
33
|
const contextValue = index_1.useSSRContext();
|
34
|
-
return React.useMemo(() =>
|
34
|
+
return React.useMemo(() => {
|
35
|
+
if (providedId) {
|
36
|
+
return providedId;
|
37
|
+
}
|
38
|
+
|
39
|
+
return `${prefix}${++contextValue.current}`;
|
40
|
+
}, [prefix, providedId, contextValue]);
|
35
41
|
}
|
36
42
|
|
37
43
|
exports.useId = useId;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["hooks/useId.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAEA;;;;AAIG;;;AACH,SAAgB,gBAAhB,GAAgC;AAC9B,EAAA,OAAA,CAAA,sBAAA,CAAuB,OAAvB,GAAiC,CAAjC;AACD;;AAFD,OAAA,CAAA,gBAAA,GAAA,gBAAA;AAIA;;;;;;;AAOG;;AACH,SAAgB,KAAhB,CAAsB,
|
1
|
+
{"version":3,"sources":["hooks/useId.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;AAEA;;;;AAIG;;;AACH,SAAgB,gBAAhB,GAAgC;AAC9B,EAAA,OAAA,CAAA,sBAAA,CAAuB,OAAvB,GAAiC,CAAjC;AACD;;AAFD,OAAA,CAAA,gBAAA,GAAA,gBAAA;AAIA;;;;;;;AAOG;;AACH,SAAgB,KAAhB,CAAsB,MAAA,GAAiB,MAAvC,EAA+C,UAA/C,EAAkE;AAChE,QAAM,YAAY,GAAG,OAAA,CAAA,aAAA,EAArB;AAEA,SAAO,KAAK,CAAC,OAAN,CAAc,MAAK;AACxB,QAAI,UAAJ,EAAgB;AACd,aAAO,UAAP;AACD;;AAED,WAAO,GAAG,MAAM,GAAG,EAAE,YAAY,CAAC,OAAO,EAAzC;AACD,GANM,EAMJ,CAAC,MAAD,EAAS,UAAT,EAAqB,YAArB,CANI,CAAP;AAOD;;AAVD,OAAA,CAAA,KAAA,GAAA,KAAA","sourcesContent":["import * as React from 'react';\nimport { defaultSSRContextValue, useSSRContext } from '../ssr/index';\n\n/**\n * Resets generated IDs, should be used only in tests.\n *\n * @private\n */\nexport function resetIdsForTests(): void {\n defaultSSRContextValue.current = 0;\n}\n\n/**\n * Hook to generate a unique ID.\n *\n * @param prefix - Optional prefix for the ID. Defaults to 'fui-'.\n * @param providedId - Optional id provided by a parent component. Defaults to the provided value if present,\n * without conditioning the hook call\n * @returns The ID\n */\nexport function useId(prefix: string = 'fui-', providedId?: string): string {\n const contextValue = useSSRContext();\n\n return React.useMemo(() => {\n if (providedId) {\n return providedId;\n }\n\n return `${prefix}${++contextValue.current}`;\n }, [prefix, providedId, contextValue]);\n}\n"],"sourceRoot":"../src/"}
|
package/lib-commonjs/index.d.ts
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export
|
1
|
+
export { getSlots, resolveShorthand } from './compose/index';
|
2
|
+
export type { AsIntrinsicElement, ComponentProps, ComponentState, ExtractSlotProps, ForwardRefComponent, IsSingleton, PropsWithoutRef, ReplaceNullWithUndefined, ResolveShorthandFunction, ResolveShorthandOptions, Slot, Slots, SlotClassNames, SlotPropsRecord, SlotRenderFunction, SlotShorthandValue, UnionToIntersection, UnknownSlotProps, } from './compose/index';
|
3
|
+
export { resetIdsForTests, useBoolean, useConst, useControllableState, useEventCallback, useFirstMount, useForceUpdate, useId, useIsomorphicLayoutEffect, useMergedEventCallbacks, useMergedRefs, useMount, useOnClickOutside, useOnScrollOutside, usePrevious, useTimeout, useUnmount, } from './hooks/index';
|
4
|
+
export type { RefObjectFunction, UseBooleanCallbacks, UseControllableStateOptions, UseOnClickOrScrollOutsideOptions, } from './hooks/index';
|
5
|
+
export { canUseDOM, defaultSSRContextValue, useIsSSR, useSSRContext, SSRContext, SSRProvider } from './ssr/index';
|
6
|
+
export type { SSRContextValue } from './ssr/index';
|
7
|
+
export { anchorProperties, applyTriggerPropsToChildren, audioProperties, baseElementEvents, baseElementProperties, buttonProperties, clamp, colGroupProperties, colProperties, divProperties, fieldsetProperties, formProperties, getNativeElementProps, getNativeProps, getPartitionedNativeProps, getRTLSafeKey, getTriggerChild, htmlElementProperties, iframeProperties, imageProperties, imgProperties, inputProperties, isFluentTrigger, labelProperties, liProperties, olProperties, omit, optionProperties, selectProperties, shouldPreventDefaultOnKeyDown, tableProperties, tdProperties, textAreaProperties, thProperties, trProperties, videoProperties, } from './utils/index';
|
8
|
+
export type { FluentTriggerComponent } from './utils/index';
|
package/lib-commonjs/index.js
CHANGED
@@ -3,14 +3,385 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.liProperties = exports.labelProperties = exports.isFluentTrigger = exports.inputProperties = exports.imgProperties = exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.getTriggerChild = exports.getRTLSafeKey = exports.getPartitionedNativeProps = exports.getNativeProps = exports.getNativeElementProps = exports.formProperties = exports.fieldsetProperties = exports.divProperties = exports.colProperties = exports.colGroupProperties = exports.clamp = exports.buttonProperties = exports.baseElementProperties = exports.baseElementEvents = exports.audioProperties = exports.applyTriggerPropsToChildren = exports.anchorProperties = exports.SSRProvider = exports.SSRContext = exports.useSSRContext = exports.useIsSSR = exports.defaultSSRContextValue = exports.canUseDOM = exports.useUnmount = exports.useTimeout = exports.usePrevious = exports.useOnScrollOutside = exports.useOnClickOutside = exports.useMount = exports.useMergedRefs = exports.useMergedEventCallbacks = exports.useIsomorphicLayoutEffect = exports.useId = exports.useForceUpdate = exports.useFirstMount = exports.useEventCallback = exports.useControllableState = exports.useConst = exports.useBoolean = exports.resetIdsForTests = exports.resolveShorthand = exports.getSlots = void 0;
|
7
|
+
exports.videoProperties = exports.trProperties = exports.thProperties = exports.textAreaProperties = exports.tdProperties = exports.tableProperties = exports.shouldPreventDefaultOnKeyDown = exports.selectProperties = exports.optionProperties = exports.omit = exports.olProperties = void 0;
|
6
8
|
|
7
|
-
|
9
|
+
var index_1 = /*#__PURE__*/require("./compose/index");
|
8
10
|
|
9
|
-
|
11
|
+
Object.defineProperty(exports, "getSlots", {
|
12
|
+
enumerable: true,
|
13
|
+
get: function () {
|
14
|
+
return index_1.getSlots;
|
15
|
+
}
|
16
|
+
});
|
17
|
+
Object.defineProperty(exports, "resolveShorthand", {
|
18
|
+
enumerable: true,
|
19
|
+
get: function () {
|
20
|
+
return index_1.resolveShorthand;
|
21
|
+
}
|
22
|
+
});
|
23
|
+
|
24
|
+
var index_2 = /*#__PURE__*/require("./hooks/index");
|
25
|
+
|
26
|
+
Object.defineProperty(exports, "resetIdsForTests", {
|
27
|
+
enumerable: true,
|
28
|
+
get: function () {
|
29
|
+
return index_2.resetIdsForTests;
|
30
|
+
}
|
31
|
+
});
|
32
|
+
Object.defineProperty(exports, "useBoolean", {
|
33
|
+
enumerable: true,
|
34
|
+
get: function () {
|
35
|
+
return index_2.useBoolean;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
Object.defineProperty(exports, "useConst", {
|
39
|
+
enumerable: true,
|
40
|
+
get: function () {
|
41
|
+
return index_2.useConst;
|
42
|
+
}
|
43
|
+
});
|
44
|
+
Object.defineProperty(exports, "useControllableState", {
|
45
|
+
enumerable: true,
|
46
|
+
get: function () {
|
47
|
+
return index_2.useControllableState;
|
48
|
+
}
|
49
|
+
});
|
50
|
+
Object.defineProperty(exports, "useEventCallback", {
|
51
|
+
enumerable: true,
|
52
|
+
get: function () {
|
53
|
+
return index_2.useEventCallback;
|
54
|
+
}
|
55
|
+
});
|
56
|
+
Object.defineProperty(exports, "useFirstMount", {
|
57
|
+
enumerable: true,
|
58
|
+
get: function () {
|
59
|
+
return index_2.useFirstMount;
|
60
|
+
}
|
61
|
+
});
|
62
|
+
Object.defineProperty(exports, "useForceUpdate", {
|
63
|
+
enumerable: true,
|
64
|
+
get: function () {
|
65
|
+
return index_2.useForceUpdate;
|
66
|
+
}
|
67
|
+
});
|
68
|
+
Object.defineProperty(exports, "useId", {
|
69
|
+
enumerable: true,
|
70
|
+
get: function () {
|
71
|
+
return index_2.useId;
|
72
|
+
}
|
73
|
+
});
|
74
|
+
Object.defineProperty(exports, "useIsomorphicLayoutEffect", {
|
75
|
+
enumerable: true,
|
76
|
+
get: function () {
|
77
|
+
return index_2.useIsomorphicLayoutEffect;
|
78
|
+
}
|
79
|
+
});
|
80
|
+
Object.defineProperty(exports, "useMergedEventCallbacks", {
|
81
|
+
enumerable: true,
|
82
|
+
get: function () {
|
83
|
+
return index_2.useMergedEventCallbacks;
|
84
|
+
}
|
85
|
+
});
|
86
|
+
Object.defineProperty(exports, "useMergedRefs", {
|
87
|
+
enumerable: true,
|
88
|
+
get: function () {
|
89
|
+
return index_2.useMergedRefs;
|
90
|
+
}
|
91
|
+
});
|
92
|
+
Object.defineProperty(exports, "useMount", {
|
93
|
+
enumerable: true,
|
94
|
+
get: function () {
|
95
|
+
return index_2.useMount;
|
96
|
+
}
|
97
|
+
});
|
98
|
+
Object.defineProperty(exports, "useOnClickOutside", {
|
99
|
+
enumerable: true,
|
100
|
+
get: function () {
|
101
|
+
return index_2.useOnClickOutside;
|
102
|
+
}
|
103
|
+
});
|
104
|
+
Object.defineProperty(exports, "useOnScrollOutside", {
|
105
|
+
enumerable: true,
|
106
|
+
get: function () {
|
107
|
+
return index_2.useOnScrollOutside;
|
108
|
+
}
|
109
|
+
});
|
110
|
+
Object.defineProperty(exports, "usePrevious", {
|
111
|
+
enumerable: true,
|
112
|
+
get: function () {
|
113
|
+
return index_2.usePrevious;
|
114
|
+
}
|
115
|
+
});
|
116
|
+
Object.defineProperty(exports, "useTimeout", {
|
117
|
+
enumerable: true,
|
118
|
+
get: function () {
|
119
|
+
return index_2.useTimeout;
|
120
|
+
}
|
121
|
+
});
|
122
|
+
Object.defineProperty(exports, "useUnmount", {
|
123
|
+
enumerable: true,
|
124
|
+
get: function () {
|
125
|
+
return index_2.useUnmount;
|
126
|
+
}
|
127
|
+
});
|
128
|
+
|
129
|
+
var index_3 = /*#__PURE__*/require("./ssr/index");
|
130
|
+
|
131
|
+
Object.defineProperty(exports, "canUseDOM", {
|
132
|
+
enumerable: true,
|
133
|
+
get: function () {
|
134
|
+
return index_3.canUseDOM;
|
135
|
+
}
|
136
|
+
});
|
137
|
+
Object.defineProperty(exports, "defaultSSRContextValue", {
|
138
|
+
enumerable: true,
|
139
|
+
get: function () {
|
140
|
+
return index_3.defaultSSRContextValue;
|
141
|
+
}
|
142
|
+
});
|
143
|
+
Object.defineProperty(exports, "useIsSSR", {
|
144
|
+
enumerable: true,
|
145
|
+
get: function () {
|
146
|
+
return index_3.useIsSSR;
|
147
|
+
}
|
148
|
+
});
|
149
|
+
Object.defineProperty(exports, "useSSRContext", {
|
150
|
+
enumerable: true,
|
151
|
+
get: function () {
|
152
|
+
return index_3.useSSRContext;
|
153
|
+
}
|
154
|
+
});
|
155
|
+
Object.defineProperty(exports, "SSRContext", {
|
156
|
+
enumerable: true,
|
157
|
+
get: function () {
|
158
|
+
return index_3.SSRContext;
|
159
|
+
}
|
160
|
+
});
|
161
|
+
Object.defineProperty(exports, "SSRProvider", {
|
162
|
+
enumerable: true,
|
163
|
+
get: function () {
|
164
|
+
return index_3.SSRProvider;
|
165
|
+
}
|
166
|
+
});
|
10
167
|
|
11
|
-
|
168
|
+
var index_4 = /*#__PURE__*/require("./utils/index");
|
12
169
|
|
13
|
-
|
170
|
+
Object.defineProperty(exports, "anchorProperties", {
|
171
|
+
enumerable: true,
|
172
|
+
get: function () {
|
173
|
+
return index_4.anchorProperties;
|
174
|
+
}
|
175
|
+
});
|
176
|
+
Object.defineProperty(exports, "applyTriggerPropsToChildren", {
|
177
|
+
enumerable: true,
|
178
|
+
get: function () {
|
179
|
+
return index_4.applyTriggerPropsToChildren;
|
180
|
+
}
|
181
|
+
});
|
182
|
+
Object.defineProperty(exports, "audioProperties", {
|
183
|
+
enumerable: true,
|
184
|
+
get: function () {
|
185
|
+
return index_4.audioProperties;
|
186
|
+
}
|
187
|
+
});
|
188
|
+
Object.defineProperty(exports, "baseElementEvents", {
|
189
|
+
enumerable: true,
|
190
|
+
get: function () {
|
191
|
+
return index_4.baseElementEvents;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
Object.defineProperty(exports, "baseElementProperties", {
|
195
|
+
enumerable: true,
|
196
|
+
get: function () {
|
197
|
+
return index_4.baseElementProperties;
|
198
|
+
}
|
199
|
+
});
|
200
|
+
Object.defineProperty(exports, "buttonProperties", {
|
201
|
+
enumerable: true,
|
202
|
+
get: function () {
|
203
|
+
return index_4.buttonProperties;
|
204
|
+
}
|
205
|
+
});
|
206
|
+
Object.defineProperty(exports, "clamp", {
|
207
|
+
enumerable: true,
|
208
|
+
get: function () {
|
209
|
+
return index_4.clamp;
|
210
|
+
}
|
211
|
+
});
|
212
|
+
Object.defineProperty(exports, "colGroupProperties", {
|
213
|
+
enumerable: true,
|
214
|
+
get: function () {
|
215
|
+
return index_4.colGroupProperties;
|
216
|
+
}
|
217
|
+
});
|
218
|
+
Object.defineProperty(exports, "colProperties", {
|
219
|
+
enumerable: true,
|
220
|
+
get: function () {
|
221
|
+
return index_4.colProperties;
|
222
|
+
}
|
223
|
+
});
|
224
|
+
Object.defineProperty(exports, "divProperties", {
|
225
|
+
enumerable: true,
|
226
|
+
get: function () {
|
227
|
+
return index_4.divProperties;
|
228
|
+
}
|
229
|
+
});
|
230
|
+
Object.defineProperty(exports, "fieldsetProperties", {
|
231
|
+
enumerable: true,
|
232
|
+
get: function () {
|
233
|
+
return index_4.fieldsetProperties;
|
234
|
+
}
|
235
|
+
});
|
236
|
+
Object.defineProperty(exports, "formProperties", {
|
237
|
+
enumerable: true,
|
238
|
+
get: function () {
|
239
|
+
return index_4.formProperties;
|
240
|
+
}
|
241
|
+
});
|
242
|
+
Object.defineProperty(exports, "getNativeElementProps", {
|
243
|
+
enumerable: true,
|
244
|
+
get: function () {
|
245
|
+
return index_4.getNativeElementProps;
|
246
|
+
}
|
247
|
+
});
|
248
|
+
Object.defineProperty(exports, "getNativeProps", {
|
249
|
+
enumerable: true,
|
250
|
+
get: function () {
|
251
|
+
return index_4.getNativeProps;
|
252
|
+
}
|
253
|
+
});
|
254
|
+
Object.defineProperty(exports, "getPartitionedNativeProps", {
|
255
|
+
enumerable: true,
|
256
|
+
get: function () {
|
257
|
+
return index_4.getPartitionedNativeProps;
|
258
|
+
}
|
259
|
+
});
|
260
|
+
Object.defineProperty(exports, "getRTLSafeKey", {
|
261
|
+
enumerable: true,
|
262
|
+
get: function () {
|
263
|
+
return index_4.getRTLSafeKey;
|
264
|
+
}
|
265
|
+
});
|
266
|
+
Object.defineProperty(exports, "getTriggerChild", {
|
267
|
+
enumerable: true,
|
268
|
+
get: function () {
|
269
|
+
return index_4.getTriggerChild;
|
270
|
+
}
|
271
|
+
});
|
272
|
+
Object.defineProperty(exports, "htmlElementProperties", {
|
273
|
+
enumerable: true,
|
274
|
+
get: function () {
|
275
|
+
return index_4.htmlElementProperties;
|
276
|
+
}
|
277
|
+
});
|
278
|
+
Object.defineProperty(exports, "iframeProperties", {
|
279
|
+
enumerable: true,
|
280
|
+
get: function () {
|
281
|
+
return index_4.iframeProperties;
|
282
|
+
}
|
283
|
+
}); // eslint-disable-next-line deprecation/deprecation
|
14
284
|
|
15
|
-
|
285
|
+
Object.defineProperty(exports, "imageProperties", {
|
286
|
+
enumerable: true,
|
287
|
+
get: function () {
|
288
|
+
return index_4.imageProperties;
|
289
|
+
}
|
290
|
+
});
|
291
|
+
Object.defineProperty(exports, "imgProperties", {
|
292
|
+
enumerable: true,
|
293
|
+
get: function () {
|
294
|
+
return index_4.imgProperties;
|
295
|
+
}
|
296
|
+
});
|
297
|
+
Object.defineProperty(exports, "inputProperties", {
|
298
|
+
enumerable: true,
|
299
|
+
get: function () {
|
300
|
+
return index_4.inputProperties;
|
301
|
+
}
|
302
|
+
});
|
303
|
+
Object.defineProperty(exports, "isFluentTrigger", {
|
304
|
+
enumerable: true,
|
305
|
+
get: function () {
|
306
|
+
return index_4.isFluentTrigger;
|
307
|
+
}
|
308
|
+
});
|
309
|
+
Object.defineProperty(exports, "labelProperties", {
|
310
|
+
enumerable: true,
|
311
|
+
get: function () {
|
312
|
+
return index_4.labelProperties;
|
313
|
+
}
|
314
|
+
});
|
315
|
+
Object.defineProperty(exports, "liProperties", {
|
316
|
+
enumerable: true,
|
317
|
+
get: function () {
|
318
|
+
return index_4.liProperties;
|
319
|
+
}
|
320
|
+
});
|
321
|
+
Object.defineProperty(exports, "olProperties", {
|
322
|
+
enumerable: true,
|
323
|
+
get: function () {
|
324
|
+
return index_4.olProperties;
|
325
|
+
}
|
326
|
+
});
|
327
|
+
Object.defineProperty(exports, "omit", {
|
328
|
+
enumerable: true,
|
329
|
+
get: function () {
|
330
|
+
return index_4.omit;
|
331
|
+
}
|
332
|
+
});
|
333
|
+
Object.defineProperty(exports, "optionProperties", {
|
334
|
+
enumerable: true,
|
335
|
+
get: function () {
|
336
|
+
return index_4.optionProperties;
|
337
|
+
}
|
338
|
+
});
|
339
|
+
Object.defineProperty(exports, "selectProperties", {
|
340
|
+
enumerable: true,
|
341
|
+
get: function () {
|
342
|
+
return index_4.selectProperties;
|
343
|
+
}
|
344
|
+
});
|
345
|
+
Object.defineProperty(exports, "shouldPreventDefaultOnKeyDown", {
|
346
|
+
enumerable: true,
|
347
|
+
get: function () {
|
348
|
+
return index_4.shouldPreventDefaultOnKeyDown;
|
349
|
+
}
|
350
|
+
});
|
351
|
+
Object.defineProperty(exports, "tableProperties", {
|
352
|
+
enumerable: true,
|
353
|
+
get: function () {
|
354
|
+
return index_4.tableProperties;
|
355
|
+
}
|
356
|
+
});
|
357
|
+
Object.defineProperty(exports, "tdProperties", {
|
358
|
+
enumerable: true,
|
359
|
+
get: function () {
|
360
|
+
return index_4.tdProperties;
|
361
|
+
}
|
362
|
+
});
|
363
|
+
Object.defineProperty(exports, "textAreaProperties", {
|
364
|
+
enumerable: true,
|
365
|
+
get: function () {
|
366
|
+
return index_4.textAreaProperties;
|
367
|
+
}
|
368
|
+
});
|
369
|
+
Object.defineProperty(exports, "thProperties", {
|
370
|
+
enumerable: true,
|
371
|
+
get: function () {
|
372
|
+
return index_4.thProperties;
|
373
|
+
}
|
374
|
+
});
|
375
|
+
Object.defineProperty(exports, "trProperties", {
|
376
|
+
enumerable: true,
|
377
|
+
get: function () {
|
378
|
+
return index_4.trProperties;
|
379
|
+
}
|
380
|
+
});
|
381
|
+
Object.defineProperty(exports, "videoProperties", {
|
382
|
+
enumerable: true,
|
383
|
+
get: function () {
|
384
|
+
return index_4.videoProperties;
|
385
|
+
}
|
386
|
+
});
|
16
387
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,aAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './compose/index';\nexport * from './hooks/index';\nexport * from './ssr/index';\nexport * from './utils/index';\n"],"sourceRoot":"../src/"}
|
1
|
+
{"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,UAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,QAAA;AAAQ;AAAR,CAAA;AAAU,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,kBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,gBAAA;AAAgB;AAAhB,CAAA;;AAsBnB,IA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insicElement,\n ComponentProps,\n ComponentState,\n ExtractSlotProps,\n ForwardRefComponent,\n IsSingleton,\n PropsWithoutRef,\n ReplaceNullWithUndefined,\n ResolveShorthandFunction,\n ResolveShorthandOptions,\n Slot,\n Slots,\n SlotClassNames,\n SlotPropsRecord,\n SlotRenderFunction,\n SlotShorthandValue,\n UnionToIntersection,\n UnknownSlotProps,\n} from './compose/index';\n\nexport {\n resetIdsForTests,\n useBoolean,\n useConst,\n useControllableState,\n useEventCallback,\n useFirstMount,\n useForceUpdate,\n useId,\n useIsomorphicLayoutEffect,\n useMergedEventCallbacks,\n useMergedRefs,\n useMount,\n useOnClickOutside,\n useOnScrollOutside,\n usePrevious,\n useTimeout,\n useUnmount,\n} from './hooks/index';\nexport type {\n RefObjectFunction,\n UseBooleanCallbacks,\n UseControllableStateOptions,\n UseOnClickOrScrollOutsideOptions,\n} from './hooks/index';\n\nexport { canUseDOM, defaultSSRContextValue, useIsSSR, useSSRContext, SSRContext, SSRProvider } from './ssr/index';\nexport type { SSRContextValue } from './ssr/index';\n\nexport {\n anchorProperties,\n applyTriggerPropsToChildren,\n audioProperties,\n baseElementEvents,\n baseElementProperties,\n buttonProperties,\n clamp,\n colGroupProperties,\n colProperties,\n divProperties,\n fieldsetProperties,\n formProperties,\n getNativeElementProps,\n getNativeProps,\n getPartitionedNativeProps,\n getRTLSafeKey,\n getTriggerChild,\n htmlElementProperties,\n iframeProperties,\n // eslint-disable-next-line deprecation/deprecation\n imageProperties,\n imgProperties,\n inputProperties,\n isFluentTrigger,\n labelProperties,\n liProperties,\n olProperties,\n omit,\n optionProperties,\n selectProperties,\n shouldPreventDefaultOnKeyDown,\n tableProperties,\n tdProperties,\n textAreaProperties,\n thProperties,\n trProperties,\n videoProperties,\n} from './utils/index';\nexport type { FluentTriggerComponent } from './utils/index';\n"],"sourceRoot":"../src/"}
|
@@ -25,6 +25,7 @@ const nativeElementMap = {
|
|
25
25
|
td: properties_1.tdProperties,
|
26
26
|
colGroup: properties_1.colGroupProperties,
|
27
27
|
col: properties_1.colProperties,
|
28
|
+
fieldset: properties_1.fieldsetProperties,
|
28
29
|
form: properties_1.formProperties,
|
29
30
|
iframe: properties_1.iframeProperties,
|
30
31
|
img: properties_1.imgProperties
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["utils/getNativeElementProps.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;
|
1
|
+
{"version":3,"sources":["utils/getNativeElementProps.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AA0BA,MAAM,gBAAgB,GAA2C;AAC/D,EAAA,KAAK,EAAE,YAAA,CAAA,eADwD;AAE/D,EAAA,KAAK,EAAE,YAAA,CAAA,eAFwD;AAG/D,EAAA,KAAK,EAAE,YAAA,CAAA,eAHwD;AAI/D,EAAA,EAAE,EAAE,YAAA,CAAA,YAJ2D;AAK/D,EAAA,EAAE,EAAE,YAAA,CAAA,YAL2D;AAM/D,EAAA,CAAC,EAAE,YAAA,CAAA,gBAN4D;AAO/D,EAAA,MAAM,EAAE,YAAA,CAAA,gBAPuD;AAQ/D,EAAA,KAAK,EAAE,YAAA,CAAA,eARwD;AAS/D,EAAA,QAAQ,EAAE,YAAA,CAAA,kBATqD;AAU/D,EAAA,MAAM,EAAE,YAAA,CAAA,gBAVuD;AAW/D,EAAA,MAAM,EAAE,YAAA,CAAA,gBAXuD;AAY/D,EAAA,KAAK,EAAE,YAAA,CAAA,eAZwD;AAa/D,EAAA,EAAE,EAAE,YAAA,CAAA,YAb2D;AAc/D,EAAA,EAAE,EAAE,YAAA,CAAA,YAd2D;AAe/D,EAAA,EAAE,EAAE,YAAA,CAAA,YAf2D;AAgB/D,EAAA,QAAQ,EAAE,YAAA,CAAA,kBAhBqD;AAiB/D,EAAA,GAAG,EAAE,YAAA,CAAA,aAjB0D;AAkB/D,EAAA,QAAQ,EAAE,YAAA,CAAA,kBAlBqD;AAmB/D,EAAA,IAAI,EAAE,YAAA,CAAA,cAnByD;AAoB/D,EAAA,MAAM,EAAE,YAAA,CAAA,gBApBuD;AAqB/D,EAAA,GAAG,EAAE,YAAA,CAAA;AArB0D,CAAjE;AAwBA;;;;;;AAMG;AACH;;AACA,SAAgB,qBAAhB,CACE,OADF,EAEE,KAFF,EAGE,iBAHF,EAG8B;AAE5B,QAAM,gBAAgB,GAAI,OAAO,IAAI,gBAAgB,CAAC,OAAD,CAA5B,IAA0C,YAAA,CAAA,qBAAnE;AACA,EAAA,gBAAgB,CAAC,EAAjB,GAAsB,CAAtB;AAEA,SAAO,YAAA,CAAA,cAAA,CAAe,KAAf,EAAsB,gBAAtB,EAAwC,iBAAxC,CAAP;AACD;;AATD,OAAA,CAAA,qBAAA,GAAA,qBAAA;AAWA;;;;;;;AAOG;;AACI,MAAM,yBAAyB,GAAG,CAGvC;AACA,EAAA,kBADA;AAEA,EAAA,KAFA;AAGA,EAAA;AAHA,CAHuC,KAgBpC;AACH,SAAO;AACL,IAAA,IAAI,EAAE;AAAE,MAAA,KAAK,EAAE,KAAK,CAAC,KAAf;AAAsB,MAAA,SAAS,EAAE,KAAK,CAAC;AAAvC,KADD;AAEL,IAAA,OAAO,EAAE,qBAAqB,CAAgC,kBAAhC,EAAoD,KAApD,EAA2D,CACvF,IAAI,iBAAiB,IAAI,EAAzB,CADuF,EAEvF,OAFuF,EAGvF,WAHuF,CAA3D;AAFzB,GAAP;AAQD,CAzBM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourcesContent":["import * as React from 'react';\nimport {\n labelProperties,\n audioProperties,\n videoProperties,\n olProperties,\n liProperties,\n anchorProperties,\n buttonProperties,\n inputProperties,\n textAreaProperties,\n selectProperties,\n optionProperties,\n tableProperties,\n trProperties,\n thProperties,\n tdProperties,\n colGroupProperties,\n colProperties,\n fieldsetProperties,\n formProperties,\n iframeProperties,\n imgProperties,\n htmlElementProperties,\n getNativeProps,\n} from './properties';\n\nconst nativeElementMap: Record<string, Record<string, number>> = {\n label: labelProperties,\n audio: audioProperties,\n video: videoProperties,\n ol: olProperties,\n li: liProperties,\n a: anchorProperties,\n button: buttonProperties,\n input: inputProperties,\n textarea: textAreaProperties,\n select: selectProperties,\n option: optionProperties,\n table: tableProperties,\n tr: trProperties,\n th: thProperties,\n td: tdProperties,\n colGroup: colGroupProperties,\n col: colProperties,\n fieldset: fieldsetProperties,\n form: formProperties,\n iframe: iframeProperties,\n img: imgProperties,\n};\n\n/**\n * Given an element tagname and user props, filters the props to only allowed props for the given\n * element type.\n * @param tagName - Tag name (e.g. \"div\")\n * @param props - Props object\n * @param excludedPropNames - List of props to disallow\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function getNativeElementProps<TAttributes extends React.HTMLAttributes<any>>(\n tagName: string,\n props: {},\n excludedPropNames?: string[],\n): TAttributes {\n const allowedPropNames = (tagName && nativeElementMap[tagName]) || htmlElementProperties;\n allowedPropNames.as = 1;\n\n return getNativeProps(props, allowedPropNames, excludedPropNames);\n}\n\n/**\n * Splits the native props into ones that go to the `root` slot, and ones that go to the primary slot.\n *\n * This function is only for use with components that have a primary slot other than `root`.\n * Most components should use {@link getNativeElementProps} for their root slot if it is the primary slot.\n *\n * @returns An object containing the native props for the `root` and primary slots.\n */\nexport const getPartitionedNativeProps = <\n Props extends Pick<React.HTMLAttributes<HTMLElement>, 'style' | 'className'>,\n ExcludedPropKeys extends Extract<keyof Props, string> = never\n>({\n primarySlotTagName,\n props,\n excludedPropNames,\n}: {\n /** The primary slot's element type (e.g. 'div') */\n primarySlotTagName: keyof JSX.IntrinsicElements;\n\n /** The component's props object */\n props: Props;\n\n /** List of native props to exclude from the returned value */\n excludedPropNames?: ExcludedPropKeys[];\n}) => {\n return {\n root: { style: props.style, className: props.className },\n primary: getNativeElementProps<Omit<Props, ExcludedPropKeys>>(primarySlotTagName, props, [\n ...(excludedPropNames || []),\n 'style',\n 'className',\n ]),\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -103,6 +103,12 @@ export declare const thProperties: Record<string, number>;
|
|
103
103
|
export declare const tdProperties: Record<string, number>;
|
104
104
|
export declare const colGroupProperties: Record<string, number>;
|
105
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>;
|
106
112
|
/**
|
107
113
|
* An array of FORM tag properties and events.
|
108
114
|
*
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.getNativeProps = exports.divProperties = exports.imageProperties = exports.imgProperties = exports.iframeProperties = exports.formProperties = exports.colProperties = exports.colGroupProperties = exports.tdProperties = exports.thProperties = exports.trProperties = exports.tableProperties = exports.optionProperties = exports.selectProperties = exports.textAreaProperties = exports.inputProperties = exports.buttonProperties = exports.anchorProperties = exports.liProperties = exports.olProperties = exports.videoProperties = exports.audioProperties = exports.labelProperties = exports.htmlElementProperties = exports.baseElementProperties = exports.baseElementEvents = void 0;
|
6
|
+
exports.getNativeProps = exports.divProperties = exports.imageProperties = exports.imgProperties = exports.iframeProperties = exports.formProperties = exports.fieldsetProperties = exports.colProperties = exports.colGroupProperties = exports.tdProperties = exports.thProperties = exports.trProperties = exports.tableProperties = exports.optionProperties = exports.selectProperties = exports.textAreaProperties = exports.inputProperties = exports.buttonProperties = exports.anchorProperties = exports.liProperties = exports.olProperties = exports.videoProperties = exports.audioProperties = exports.labelProperties = exports.htmlElementProperties = exports.baseElementProperties = exports.baseElementEvents = void 0;
|
7
7
|
|
8
8
|
const toObjectMap = (...items) => {
|
9
9
|
const result = {};
|
@@ -158,6 +158,14 @@ exports.colGroupProperties = /*#__PURE__*/toObjectMap(exports.htmlElementPropert
|
|
158
158
|
]);
|
159
159
|
exports.colProperties = /*#__PURE__*/toObjectMap(exports.htmlElementProperties, ['span' // col, colgroup
|
160
160
|
]);
|
161
|
+
/**
|
162
|
+
* An array of FIELDSET tag properties and events.
|
163
|
+
*
|
164
|
+
* @public
|
165
|
+
*/
|
166
|
+
|
167
|
+
exports.fieldsetProperties = /*#__PURE__*/toObjectMap(exports.htmlElementProperties, ['disabled', 'form' // button, fieldset, input, label, meter, object, output, select, textarea
|
168
|
+
]);
|
161
169
|
/**
|
162
170
|
* An array of FORM tag properties and events.
|
163
171
|
*
|