@deque/cauldron-react 5.7.1 → 5.8.0-canary.20933343
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/lib/add-user.js +23 -8
- package/lib/arrow-circle.js +23 -8
- package/lib/arrow.js +23 -8
- package/lib/arrows-alt.js +23 -8
- package/lib/bolt.js +23 -8
- package/lib/caution.js +23 -8
- package/lib/check-circle.js +23 -8
- package/lib/check-shield.js +23 -8
- package/lib/check-solid.js +23 -8
- package/lib/check.js +23 -8
- package/lib/checkbox-checked.js +23 -8
- package/lib/checkbox-unchecked.js +23 -8
- package/lib/chevron-double.js +23 -8
- package/lib/chevron.js +23 -8
- package/lib/clipboard.js +23 -8
- package/lib/clock.js +39 -0
- package/lib/close.js +23 -8
- package/lib/code.js +23 -8
- package/lib/components/Accordion/Accordion.d.ts +4 -4
- package/lib/components/Address/index.d.ts +5 -5
- package/lib/components/Alert/index.d.ts +3 -3
- package/lib/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/lib/components/Breadcrumb/BreadcrumbItem.d.ts +1 -1
- package/lib/components/Card/Card.d.ts +1 -1
- package/lib/components/Card/CardContent.d.ts +2 -2
- package/lib/components/Card/CardFooter.d.ts +2 -2
- package/lib/components/Card/CardHeader.d.ts +2 -2
- package/lib/components/Code/index.d.ts +1 -1
- package/lib/components/Combobox/Combobox.d.ts +30 -0
- package/lib/components/Combobox/ComboboxContext.d.ts +22 -0
- package/lib/components/Combobox/ComboboxGroup.d.ts +7 -0
- package/lib/components/Combobox/ComboboxOption.d.ts +12 -0
- package/lib/components/Combobox/index.d.ts +3 -0
- package/lib/components/DescriptionList/index.d.ts +8 -8
- package/lib/components/Dialog/index.d.ts +5 -5
- package/lib/components/ExpandCollapsePanel/ExpandCollapsePanel.d.ts +3 -3
- package/lib/components/ExpandCollapsePanel/PanelTrigger.d.ts +2 -2
- package/lib/components/Icon/types.d.ts +1 -1
- package/lib/components/IconButton/index.d.ts +1 -1
- package/lib/components/IssuePanel/index.d.ts +2 -2
- package/lib/components/Layout/index.d.ts +4 -4
- package/lib/components/Line/index.d.ts +1 -1
- package/lib/components/Link/index.d.ts +3 -3
- package/lib/components/Listbox/Listbox.d.ts +16 -0
- package/lib/components/Listbox/ListboxContext.d.ts +27 -0
- package/lib/components/Listbox/ListboxGroup.d.ts +9 -0
- package/lib/components/Listbox/ListboxOption.d.ts +10 -0
- package/lib/components/Listbox/index.d.ts +4 -0
- package/lib/components/LoaderOverlay/axe-loader.d.ts +2 -1
- package/lib/components/Main/index.d.ts +4 -4
- package/lib/components/MenuBar/index.d.ts +2 -2
- package/lib/components/MenuItem/index.d.ts +4 -4
- package/lib/components/Modal/index.d.ts +3 -3
- package/lib/components/NavBar/NavBar.d.ts +2 -2
- package/lib/components/NavBar/NavItem.d.ts +1 -1
- package/lib/components/Offscreen/index.d.ts +2 -2
- package/lib/components/OptionsMenu/OptionsMenu.d.ts +5 -5
- package/lib/components/OptionsMenu/OptionsMenuList.d.ts +4 -4
- package/lib/components/OptionsMenu/OptionsMenuWrapper.d.ts +2 -2
- package/lib/components/Pointout/index.d.ts +6 -6
- package/lib/components/Popover/index.d.ts +31 -0
- package/lib/components/ProgressBar/index.d.ts +1 -1
- package/lib/components/RadioCardGroup/index.d.ts +1 -1
- package/lib/components/Scrim/index.d.ts +1 -1
- package/lib/components/Select/index.d.ts +1 -1
- package/lib/components/SideBar/SideBar.d.ts +2 -2
- package/lib/components/SkipLink/index.d.ts +1 -1
- package/lib/components/Stepper/index.d.ts +4 -4
- package/lib/components/Table/Table.d.ts +3 -3
- package/lib/components/Table/TableBody.d.ts +3 -3
- package/lib/components/Table/TableCell.d.ts +3 -3
- package/lib/components/Table/TableFooter.d.ts +3 -3
- package/lib/components/Table/TableHead.d.ts +3 -3
- package/lib/components/Table/TableHeader.d.ts +4 -4
- package/lib/components/Table/TableRow.d.ts +3 -3
- package/lib/components/Tabs/Tabs.d.ts +2 -2
- package/lib/components/Tag/index.d.ts +4 -4
- package/lib/components/TextField/index.d.ts +4 -4
- package/lib/components/Toast/index.d.ts +4 -4
- package/lib/components/Tooltip/index.d.ts +3 -3
- package/lib/components/TooltipTabstop/index.d.ts +2 -2
- package/lib/components/TopBar/TopBar.d.ts +1 -1
- package/lib/components/TopBar/TopBarMenu.d.ts +2 -2
- package/lib/components/TwoColumnPanel/ColumnGroupHeader.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnHeader.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnLeft.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnList.d.ts +1 -1
- package/lib/components/TwoColumnPanel/ColumnRight.d.ts +1 -1
- package/lib/components/Workspace/index.d.ts +6 -6
- package/lib/contexts/theme.d.ts +2 -2
- package/lib/copy.js +23 -8
- package/lib/download.js +23 -8
- package/lib/dropper.js +23 -8
- package/lib/exchange.js +23 -8
- package/lib/export-solid.js +23 -8
- package/lib/external-link.js +23 -8
- package/lib/eye.js +23 -8
- package/lib/filter-solid.js +23 -8
- package/lib/filter.js +23 -8
- package/lib/flag.js +23 -8
- package/lib/gears.js +23 -7
- package/lib/github.js +23 -8
- package/lib/grid.js +23 -8
- package/lib/hamburger-menu.js +26 -11
- package/lib/hashtag.js +23 -8
- package/lib/highlight.js +23 -8
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1624 -6084
- package/lib/info-circle-alt.js +23 -8
- package/lib/info-circle.js +23 -8
- package/lib/info-square.js +23 -8
- package/lib/kabob.js +23 -8
- package/lib/link.js +23 -8
- package/lib/linkedin.js +23 -8
- package/lib/list.js +29 -14
- package/lib/lock.js +23 -8
- package/lib/magnifying-glass.js +23 -8
- package/lib/menu.js +23 -8
- package/lib/minus.js +23 -8
- package/lib/new-releases.js +24 -9
- package/lib/new.js +23 -8
- package/lib/no.js +23 -8
- package/lib/pencil.js +23 -8
- package/lib/person-running.js +23 -8
- package/lib/play.js +23 -8
- package/lib/plus.js +23 -8
- package/lib/propTypes.d.ts +1 -1
- package/lib/question-circle-alt.js +23 -8
- package/lib/question-circle.js +23 -8
- package/lib/radio-checked.js +23 -8
- package/lib/radio-unchecked.js +23 -8
- package/lib/recycle-square.js +23 -8
- package/lib/recycle.js +23 -8
- package/lib/resend.js +23 -8
- package/lib/robot.js +24 -9
- package/lib/run-again.js +23 -8
- package/lib/save.js +23 -8
- package/lib/share-nodes.js +23 -8
- package/lib/share.js +23 -8
- package/lib/sort-triangle.js +23 -8
- package/lib/sort.js +23 -8
- package/lib/star.js +23 -8
- package/lib/sun.js +23 -8
- package/lib/table-sort-ascending.js +24 -9
- package/lib/table-sort-descending.js +24 -9
- package/lib/tag.js +23 -8
- package/lib/target.js +25 -10
- package/lib/trash.js +23 -8
- package/lib/triangle.js +23 -8
- package/lib/twitter.js +23 -8
- package/lib/types.d.ts +1 -1
- package/lib/upload.js +23 -8
- package/lib/utils/polymorphic-type/index.d.ts +4 -4
- package/lib/utils/useIntersectionRef.d.ts +12 -0
- package/package.json +11 -14
package/lib/trash.js
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
|
-
var React__default = _interopDefault(React);
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
var _path;
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
const SvgTrash = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
13
28
|
overflow: "visible",
|
|
14
29
|
preserveAspectRatio: "none",
|
|
15
30
|
viewBox: "0 0 24 24",
|
|
16
31
|
height: 24,
|
|
17
32
|
width: 24
|
|
18
|
-
}, props), _path || (_path = /*#__PURE__*/
|
|
33
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
19
34
|
d: "M9.91 17.24a.34.34 0 0 1-.24.09H9c-.18.01-.32-.13-.33-.31V9.67c-.01-.18.12-.33.3-.34h.7c.18-.01.32.13.33.31V17c0 .09-.03.18-.09.24zm2.67 0a.34.34 0 0 1-.24.09h-.67a.317.317 0 0 1-.34-.3V9.67c-.01-.18.13-.32.31-.33h.69c.18-.01.32.13.33.31V17c0 .09-.03.18-.09.24h.01zm2.67 0a.34.34 0 0 1-.24.09h-.68c-.18.01-.32-.13-.33-.31V9.67c-.01-.18.13-.32.31-.33H15c.18-.01.32.13.33.31V17c0 .09-.03.18-.09.24h.01zM10.18 5.45c.04-.06.11-.1.18-.11h3.3c.07.01.14.05.18.11l.5 1.22H9.67l.51-1.22zM19.33 7c.01-.18-.13-.32-.31-.33h-3.24l-.73-1.74c-.11-.27-.31-.5-.56-.66-.24-.17-.53-.26-.82-.27h-3.34c-.29.01-.58.1-.82.27-.25.16-.45.39-.56.66l-.73 1.74H5c-.18-.01-.32.13-.33.31v.69c-.01.18.13.32.31.33H6v9.91c-.01.53.16 1.05.49 1.47.27.38.71.61 1.18.62h8.66c.47-.01.91-.24 1.18-.63.33-.43.5-.96.49-1.5V8h1c.18.01.32-.13.33-.31V7z",
|
|
20
35
|
vectorEffect: "non-scaling-stroke",
|
|
21
36
|
fill: "currentColor"
|
|
22
37
|
})));
|
|
23
38
|
|
|
24
|
-
exports
|
|
39
|
+
exports["default"] = SvgTrash;
|
package/lib/triangle.js
CHANGED
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
|
-
var React__default = _interopDefault(React);
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
var _path;
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
const SvgTriangle = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
13
28
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
29
|
overflow: "visible",
|
|
15
30
|
preserveAspectRatio: "none",
|
|
16
31
|
viewBox: "0 0 24 24",
|
|
17
32
|
height: 24,
|
|
18
33
|
width: 24
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/
|
|
34
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
20
35
|
d: "m7 10 5 5 5-5z",
|
|
21
36
|
fill: "currentColor",
|
|
22
37
|
vectorEffect: "non-scaling-stroke"
|
|
23
38
|
})));
|
|
24
39
|
|
|
25
|
-
exports
|
|
40
|
+
exports["default"] = SvgTriangle;
|
package/lib/twitter.js
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
|
-
var React__default = _interopDefault(React);
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
var _path;
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
const SvgTwitter = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
13
28
|
overflow: "visible",
|
|
14
29
|
preserveAspectRatio: "none",
|
|
15
30
|
viewBox: "0 0 24 24",
|
|
16
31
|
height: 24,
|
|
17
32
|
width: 24
|
|
18
|
-
}, props), _path || (_path = /*#__PURE__*/
|
|
33
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
19
34
|
d: "M21.53 7.11c.02.21.02.43.02.64 0 6.5-4.95 13.99-13.99 13.99-2.79 0-5.38-.81-7.55-2.21.4.05.78.06 1.19.06 2.3 0 4.42-.78 6.11-2.1a4.94 4.94 0 0 1-4.6-3.41c.3.05.61.08.93.08.44 0 .88-.06 1.29-.17A4.926 4.926 0 0 1 .99 9.16V9.1c.65.37 1.42.59 2.22.62a4.92 4.92 0 0 1-2.19-4.1c0-.91.24-1.75.67-2.48a14.02 14.02 0 0 0 10.14 5.15c-.08-.37-.12-.75-.12-1.13 0-2.71 2.19-4.92 4.92-4.92 1.42 0 2.7.59 3.59 1.55 1.11-.21 2.18-.62 3.12-1.19a4.93 4.93 0 0 1-2.16 2.71c.99-.11 1.95-.38 2.83-.76-.67.97-1.51 1.84-2.47 2.54Z",
|
|
20
35
|
fill: "currentColor",
|
|
21
36
|
vectorEffect: "non-scaling-stroke"
|
|
22
37
|
})));
|
|
23
38
|
|
|
24
|
-
exports
|
|
39
|
+
exports["default"] = SvgTwitter;
|
package/lib/types.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ export declare namespace Cauldron {
|
|
|
10
10
|
* This type is meant to ensure that a prop can actually be rendered as content.
|
|
11
11
|
* Explicit equivalent of Exclude<ReactNode, boolean | null | undefined>
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type ContentNode = string | number | ReactFragment | ReactPortal | ReactElement;
|
package/lib/upload.js
CHANGED
|
@@ -1,24 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
3
|
var React = require('react');
|
|
6
|
-
var React__default = _interopDefault(React);
|
|
7
4
|
|
|
8
|
-
|
|
5
|
+
function _interopNamespace(e) {
|
|
6
|
+
if (e && e.__esModule) return e;
|
|
7
|
+
var n = Object.create(null);
|
|
8
|
+
if (e) {
|
|
9
|
+
Object.keys(e).forEach(function (k) {
|
|
10
|
+
if (k !== 'default') {
|
|
11
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return e[k]; }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
n["default"] = e;
|
|
20
|
+
return Object.freeze(n);
|
|
21
|
+
}
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
var _path;
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
const SvgUpload = props => /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
13
28
|
overflow: "visible",
|
|
14
29
|
preserveAspectRatio: "none",
|
|
15
30
|
viewBox: "0 0 512 512",
|
|
16
31
|
height: 24,
|
|
17
32
|
width: 24
|
|
18
|
-
}, props), _path || (_path = /*#__PURE__*/
|
|
33
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
19
34
|
d: "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z",
|
|
20
35
|
vectorEffect: "non-scaling-stroke",
|
|
21
36
|
fill: "currentColor"
|
|
22
37
|
})));
|
|
23
38
|
|
|
24
|
-
exports
|
|
39
|
+
exports["default"] = SvgUpload;
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
* https://github.com/radix-ui/primitives/blob/main/packages/react/polymorphic/src/polymorphic.ts
|
|
4
4
|
*/
|
|
5
5
|
import * as React from 'react';
|
|
6
|
-
|
|
6
|
+
type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
7
7
|
/**
|
|
8
8
|
* Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
type OwnProps<E> = E extends ForwardRefComponent<any, infer P> ? P : {};
|
|
11
11
|
/**
|
|
12
12
|
* Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
|
|
13
13
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
type IntrinsicElement<E> = E extends ForwardRefComponent<infer I, any> ? I : never;
|
|
15
|
+
type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
|
|
16
16
|
as?: E;
|
|
17
17
|
}>>;
|
|
18
18
|
interface ForwardRefComponent<IntrinsicElementString, OwnProps = {}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* When a component needs to track intersection via a ref, useIntersectionRef
|
|
4
|
+
* will return a ref object containing the results from IntersectionObserver
|
|
5
|
+
* for the current intersection entry.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const elementRef = useRef<HTMLElement>()
|
|
9
|
+
* const intersectionRef = useIntersectionRef<HTMLElement>(elementRef)
|
|
10
|
+
* return <span ref={elementRef}>...</span>
|
|
11
|
+
*/
|
|
12
|
+
export default function useIntersectionRef<T extends HTMLElement>(element: T | MutableRefObject<T>, intersectionObserverOptions?: IntersectionObserverInit): MutableRefObject<IntersectionObserverEntry | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deque/cauldron-react",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0-canary.20933343",
|
|
4
4
|
"description": "Fully accessible react components library for Deque Cauldron",
|
|
5
5
|
"homepage": "https://cauldron.dequelabs.com/",
|
|
6
6
|
"publishConfig": {
|
|
@@ -34,18 +34,15 @@
|
|
|
34
34
|
"tslib": "^2.4.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/
|
|
38
|
-
"@babel/
|
|
39
|
-
"@babel/
|
|
40
|
-
"@babel/
|
|
41
|
-
"@babel/preset-
|
|
42
|
-
"@babel/
|
|
43
|
-
"@babel/preset-stage-0": "^7.8.3",
|
|
44
|
-
"@babel/preset-typescript": "^7.9.0",
|
|
45
|
-
"@babel/register": "^7.9.0",
|
|
37
|
+
"@babel/core": "^7.22.10",
|
|
38
|
+
"@babel/plugin-proposal-export-default-from": "^7.22.5",
|
|
39
|
+
"@babel/preset-env": "^7.22.10",
|
|
40
|
+
"@babel/preset-react": "^7.22.5",
|
|
41
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
42
|
+
"@babel/register": "^7.22.5",
|
|
46
43
|
"@rollup/plugin-commonjs": "^14.0.0",
|
|
47
44
|
"@rollup/plugin-dynamic-import-vars": "^1.4.2",
|
|
48
|
-
"@rollup/plugin-typescript": "^
|
|
45
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
49
46
|
"@svgr/rollup": "^6.1.2",
|
|
50
47
|
"@types/classnames": "^2.2.10",
|
|
51
48
|
"@types/node": "^17.0.42",
|
|
@@ -78,7 +75,7 @@
|
|
|
78
75
|
"rollup": "^2.23.0",
|
|
79
76
|
"sinon": "^10.0.0",
|
|
80
77
|
"ts-node": "^10.9.1",
|
|
81
|
-
"typescript": "
|
|
78
|
+
"typescript": "~5.0.0"
|
|
82
79
|
},
|
|
83
80
|
"repository": {
|
|
84
81
|
"type": "git",
|
|
@@ -113,7 +110,7 @@
|
|
|
113
110
|
"**/__tests__/demo/**/*.js"
|
|
114
111
|
],
|
|
115
112
|
"collectCoverageFrom": [
|
|
116
|
-
"**/src/**/*.tsx"
|
|
113
|
+
"**/src/**/*.{ts,tsx}"
|
|
117
114
|
],
|
|
118
115
|
"moduleNameMapper": {
|
|
119
116
|
"\\.(css|less)$": "<rootDir>/__tests__/styleMock.js",
|
|
@@ -122,4 +119,4 @@
|
|
|
122
119
|
"\\.svg$": "<rootDir>/__tests__/svgMock.js"
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
|
-
}
|
|
122
|
+
}
|