pollination-react-io 1.42.2 → 1.42.3
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/build/RunTable/RunTable.d.ts +1 -1
- package/build/index.esm.js +261 -154
- package/build/index.esm.js.map +1 -1
- package/build/index.js +261 -153
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -29,8 +29,8 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
29
29
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
30
30
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
31
31
|
|
|
32
|
-
function _extends$
|
|
33
|
-
_extends$
|
|
32
|
+
function _extends$G() {
|
|
33
|
+
_extends$G = Object.assign ? Object.assign.bind() : function (target) {
|
|
34
34
|
for (var i = 1; i < arguments.length; i++) {
|
|
35
35
|
var source = arguments[i];
|
|
36
36
|
|
|
@@ -43,7 +43,7 @@ function _extends$F() {
|
|
|
43
43
|
|
|
44
44
|
return target;
|
|
45
45
|
};
|
|
46
|
-
return _extends$
|
|
46
|
+
return _extends$G.apply(this, arguments);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
@@ -229,11 +229,11 @@ function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultCon
|
|
|
229
229
|
return /*#__PURE__*/ React.isValidElement(newElement) ? newElement.props.children : null;
|
|
230
230
|
} else return child;
|
|
231
231
|
});
|
|
232
|
-
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
232
|
+
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$G({}, slotProps, {
|
|
233
233
|
ref: forwardedRef
|
|
234
234
|
}), /*#__PURE__*/ React.isValidElement(newElement) ? /*#__PURE__*/ React.cloneElement(newElement, undefined, newChildren) : null);
|
|
235
235
|
}
|
|
236
|
-
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$
|
|
236
|
+
return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$var$SlotClone, _extends$G({}, slotProps, {
|
|
237
237
|
ref: forwardedRef
|
|
238
238
|
}), children);
|
|
239
239
|
});
|
|
@@ -311,7 +311,7 @@ const $8927f6f2acc4f386$var$NODES = [
|
|
|
311
311
|
React.useEffect(()=>{
|
|
312
312
|
window[Symbol.for('radix-ui')] = true;
|
|
313
313
|
}, []);
|
|
314
|
-
return /*#__PURE__*/ React.createElement(Comp, _extends$
|
|
314
|
+
return /*#__PURE__*/ React.createElement(Comp, _extends$G({}, primitiveProps, {
|
|
315
315
|
ref: forwardedRef
|
|
316
316
|
}));
|
|
317
317
|
});
|
|
@@ -375,7 +375,7 @@ const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ React.forwardRef
|
|
|
375
375
|
scope: __scopeAvatar,
|
|
376
376
|
imageLoadingStatus: imageLoadingStatus,
|
|
377
377
|
onImageLoadingStatusChange: setImageLoadingStatus
|
|
378
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
378
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({}, avatarProps, {
|
|
379
379
|
ref: forwardedRef
|
|
380
380
|
})));
|
|
381
381
|
});
|
|
@@ -396,7 +396,7 @@ const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ React.forwardRef
|
|
|
396
396
|
imageLoadingStatus,
|
|
397
397
|
handleLoadingStatusChange
|
|
398
398
|
]);
|
|
399
|
-
return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends$
|
|
399
|
+
return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends$G({}, imageProps, {
|
|
400
400
|
ref: forwardedRef,
|
|
401
401
|
src: src
|
|
402
402
|
})) : null;
|
|
@@ -418,7 +418,7 @@ const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ React.forwardRef
|
|
|
418
418
|
}, [
|
|
419
419
|
delayMs
|
|
420
420
|
]);
|
|
421
|
-
return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
421
|
+
return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({}, fallbackProps, {
|
|
422
422
|
ref: forwardedRef
|
|
423
423
|
})) : null;
|
|
424
424
|
});
|
|
@@ -1823,20 +1823,20 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1823
1823
|
|
|
1824
1824
|
var PropTypes = propTypes$5;
|
|
1825
1825
|
|
|
1826
|
-
var _excluded$
|
|
1826
|
+
var _excluded$H = ["color", "size", "title"];
|
|
1827
1827
|
|
|
1828
|
-
function _extends$
|
|
1828
|
+
function _extends$F() { _extends$F = Object.assign || 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$F.apply(this, arguments); }
|
|
1829
1829
|
|
|
1830
|
-
function _objectWithoutProperties$
|
|
1830
|
+
function _objectWithoutProperties$B(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$F(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1831
1831
|
|
|
1832
|
-
function _objectWithoutPropertiesLoose$
|
|
1832
|
+
function _objectWithoutPropertiesLoose$F(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1833
1833
|
var ArrowClockwise = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1834
1834
|
var color = _ref.color,
|
|
1835
1835
|
size = _ref.size,
|
|
1836
1836
|
title = _ref.title,
|
|
1837
|
-
rest = _objectWithoutProperties$
|
|
1837
|
+
rest = _objectWithoutProperties$B(_ref, _excluded$H);
|
|
1838
1838
|
|
|
1839
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
1839
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$F({
|
|
1840
1840
|
ref: ref,
|
|
1841
1841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1842
1842
|
viewBox: "0 0 16 16",
|
|
@@ -1862,20 +1862,20 @@ ArrowClockwise.defaultProps = {
|
|
|
1862
1862
|
};
|
|
1863
1863
|
var ArrowClockwise$1 = ArrowClockwise;
|
|
1864
1864
|
|
|
1865
|
-
var _excluded$
|
|
1865
|
+
var _excluded$G = ["color", "size", "title"];
|
|
1866
1866
|
|
|
1867
|
-
function _extends$
|
|
1867
|
+
function _extends$E() { _extends$E = Object.assign || 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$E.apply(this, arguments); }
|
|
1868
1868
|
|
|
1869
|
-
function _objectWithoutProperties$
|
|
1869
|
+
function _objectWithoutProperties$A(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$E(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1870
1870
|
|
|
1871
|
-
function _objectWithoutPropertiesLoose$
|
|
1871
|
+
function _objectWithoutPropertiesLoose$E(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1872
1872
|
var ArrowDown = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1873
1873
|
var color = _ref.color,
|
|
1874
1874
|
size = _ref.size,
|
|
1875
1875
|
title = _ref.title,
|
|
1876
|
-
rest = _objectWithoutProperties$
|
|
1876
|
+
rest = _objectWithoutProperties$A(_ref, _excluded$G);
|
|
1877
1877
|
|
|
1878
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
1878
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$E({
|
|
1879
1879
|
ref: ref,
|
|
1880
1880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1881
1881
|
viewBox: "0 0 16 16",
|
|
@@ -1899,20 +1899,20 @@ ArrowDown.defaultProps = {
|
|
|
1899
1899
|
};
|
|
1900
1900
|
var ArrowDown$1 = ArrowDown;
|
|
1901
1901
|
|
|
1902
|
-
var _excluded$
|
|
1902
|
+
var _excluded$F = ["color", "size", "title"];
|
|
1903
1903
|
|
|
1904
|
-
function _extends$
|
|
1904
|
+
function _extends$D() { _extends$D = Object.assign || 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$D.apply(this, arguments); }
|
|
1905
1905
|
|
|
1906
|
-
function _objectWithoutProperties$
|
|
1906
|
+
function _objectWithoutProperties$z(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$D(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1907
1907
|
|
|
1908
|
-
function _objectWithoutPropertiesLoose$
|
|
1908
|
+
function _objectWithoutPropertiesLoose$D(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1909
1909
|
var ArrowRepeat = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1910
1910
|
var color = _ref.color,
|
|
1911
1911
|
size = _ref.size,
|
|
1912
1912
|
title = _ref.title,
|
|
1913
|
-
rest = _objectWithoutProperties$
|
|
1913
|
+
rest = _objectWithoutProperties$z(_ref, _excluded$F);
|
|
1914
1914
|
|
|
1915
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
1915
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$D({
|
|
1916
1916
|
ref: ref,
|
|
1917
1917
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1918
1918
|
viewBox: "0 0 16 16",
|
|
@@ -1938,20 +1938,20 @@ ArrowRepeat.defaultProps = {
|
|
|
1938
1938
|
};
|
|
1939
1939
|
var ArrowRepeat$1 = ArrowRepeat;
|
|
1940
1940
|
|
|
1941
|
-
var _excluded$
|
|
1941
|
+
var _excluded$E = ["color", "size", "title"];
|
|
1942
1942
|
|
|
1943
|
-
function _extends$
|
|
1943
|
+
function _extends$C() { _extends$C = Object.assign || 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$C.apply(this, arguments); }
|
|
1944
1944
|
|
|
1945
|
-
function _objectWithoutProperties$
|
|
1945
|
+
function _objectWithoutProperties$y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$C(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1946
1946
|
|
|
1947
|
-
function _objectWithoutPropertiesLoose$
|
|
1947
|
+
function _objectWithoutPropertiesLoose$C(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1948
1948
|
var ArrowUpSquare = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1949
1949
|
var color = _ref.color,
|
|
1950
1950
|
size = _ref.size,
|
|
1951
1951
|
title = _ref.title,
|
|
1952
|
-
rest = _objectWithoutProperties$
|
|
1952
|
+
rest = _objectWithoutProperties$y(_ref, _excluded$E);
|
|
1953
1953
|
|
|
1954
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
1954
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$C({
|
|
1955
1955
|
ref: ref,
|
|
1956
1956
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1957
1957
|
viewBox: "0 0 16 16",
|
|
@@ -1975,20 +1975,20 @@ ArrowUpSquare.defaultProps = {
|
|
|
1975
1975
|
};
|
|
1976
1976
|
var ArrowUpSquare$1 = ArrowUpSquare;
|
|
1977
1977
|
|
|
1978
|
-
var _excluded$
|
|
1978
|
+
var _excluded$D = ["color", "size", "title"];
|
|
1979
1979
|
|
|
1980
|
-
function _extends$
|
|
1980
|
+
function _extends$B() { _extends$B = Object.assign || 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$B.apply(this, arguments); }
|
|
1981
1981
|
|
|
1982
|
-
function _objectWithoutProperties$
|
|
1982
|
+
function _objectWithoutProperties$x(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$B(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1983
1983
|
|
|
1984
|
-
function _objectWithoutPropertiesLoose$
|
|
1984
|
+
function _objectWithoutPropertiesLoose$B(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1985
1985
|
var BoundingBox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1986
1986
|
var color = _ref.color,
|
|
1987
1987
|
size = _ref.size,
|
|
1988
1988
|
title = _ref.title,
|
|
1989
|
-
rest = _objectWithoutProperties$
|
|
1989
|
+
rest = _objectWithoutProperties$x(_ref, _excluded$D);
|
|
1990
1990
|
|
|
1991
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
1991
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$B({
|
|
1992
1992
|
ref: ref,
|
|
1993
1993
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1994
1994
|
viewBox: "0 0 16 16",
|
|
@@ -2011,20 +2011,20 @@ BoundingBox.defaultProps = {
|
|
|
2011
2011
|
};
|
|
2012
2012
|
var BoundingBox$1 = BoundingBox;
|
|
2013
2013
|
|
|
2014
|
-
var _excluded$
|
|
2014
|
+
var _excluded$C = ["color", "size", "title"];
|
|
2015
2015
|
|
|
2016
|
-
function _extends$
|
|
2016
|
+
function _extends$A() { _extends$A = Object.assign || 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$A.apply(this, arguments); }
|
|
2017
2017
|
|
|
2018
|
-
function _objectWithoutProperties$
|
|
2018
|
+
function _objectWithoutProperties$w(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$A(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2019
2019
|
|
|
2020
|
-
function _objectWithoutPropertiesLoose$
|
|
2020
|
+
function _objectWithoutPropertiesLoose$A(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2021
2021
|
var Building = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2022
2022
|
var color = _ref.color,
|
|
2023
2023
|
size = _ref.size,
|
|
2024
2024
|
title = _ref.title,
|
|
2025
|
-
rest = _objectWithoutProperties$
|
|
2025
|
+
rest = _objectWithoutProperties$w(_ref, _excluded$C);
|
|
2026
2026
|
|
|
2027
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
2027
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$A({
|
|
2028
2028
|
ref: ref,
|
|
2029
2029
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2030
2030
|
viewBox: "0 0 16 16",
|
|
@@ -2050,20 +2050,20 @@ Building.defaultProps = {
|
|
|
2050
2050
|
};
|
|
2051
2051
|
var Building$1 = Building;
|
|
2052
2052
|
|
|
2053
|
-
var _excluded$
|
|
2053
|
+
var _excluded$B = ["color", "size", "title"];
|
|
2054
2054
|
|
|
2055
|
-
function _extends$
|
|
2055
|
+
function _extends$z() { _extends$z = Object.assign || 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$z.apply(this, arguments); }
|
|
2056
2056
|
|
|
2057
|
-
function _objectWithoutProperties$
|
|
2057
|
+
function _objectWithoutProperties$v(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2058
2058
|
|
|
2059
|
-
function _objectWithoutPropertiesLoose$
|
|
2059
|
+
function _objectWithoutPropertiesLoose$z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2060
2060
|
var CaretDownFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2061
2061
|
var color = _ref.color,
|
|
2062
2062
|
size = _ref.size,
|
|
2063
2063
|
title = _ref.title,
|
|
2064
|
-
rest = _objectWithoutProperties$
|
|
2064
|
+
rest = _objectWithoutProperties$v(_ref, _excluded$B);
|
|
2065
2065
|
|
|
2066
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
2066
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$z({
|
|
2067
2067
|
ref: ref,
|
|
2068
2068
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2069
2069
|
viewBox: "0 0 16 16",
|
|
@@ -2086,20 +2086,20 @@ CaretDownFill.defaultProps = {
|
|
|
2086
2086
|
};
|
|
2087
2087
|
var CaretDownFill$1 = CaretDownFill;
|
|
2088
2088
|
|
|
2089
|
-
var _excluded$
|
|
2089
|
+
var _excluded$A = ["color", "size", "title"];
|
|
2090
2090
|
|
|
2091
|
-
function _extends$
|
|
2091
|
+
function _extends$y() { _extends$y = Object.assign || 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$y.apply(this, arguments); }
|
|
2092
2092
|
|
|
2093
|
-
function _objectWithoutProperties$
|
|
2093
|
+
function _objectWithoutProperties$u(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2094
2094
|
|
|
2095
|
-
function _objectWithoutPropertiesLoose$
|
|
2095
|
+
function _objectWithoutPropertiesLoose$y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2096
2096
|
var CheckCircle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2097
2097
|
var color = _ref.color,
|
|
2098
2098
|
size = _ref.size,
|
|
2099
2099
|
title = _ref.title,
|
|
2100
|
-
rest = _objectWithoutProperties$
|
|
2100
|
+
rest = _objectWithoutProperties$u(_ref, _excluded$A);
|
|
2101
2101
|
|
|
2102
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$
|
|
2102
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$y({
|
|
2103
2103
|
ref: ref,
|
|
2104
2104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2105
2105
|
viewBox: "0 0 16 16",
|
|
@@ -2124,6 +2124,43 @@ CheckCircle.defaultProps = {
|
|
|
2124
2124
|
};
|
|
2125
2125
|
var CheckCircle$1 = CheckCircle;
|
|
2126
2126
|
|
|
2127
|
+
var _excluded$z = ["color", "size", "title"];
|
|
2128
|
+
|
|
2129
|
+
function _extends$x() { _extends$x = Object.assign || 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$x.apply(this, arguments); }
|
|
2130
|
+
|
|
2131
|
+
function _objectWithoutProperties$t(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$x(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
2132
|
+
|
|
2133
|
+
function _objectWithoutPropertiesLoose$x(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
2134
|
+
var ChevronLeft = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2135
|
+
var color = _ref.color,
|
|
2136
|
+
size = _ref.size,
|
|
2137
|
+
title = _ref.title,
|
|
2138
|
+
rest = _objectWithoutProperties$t(_ref, _excluded$z);
|
|
2139
|
+
|
|
2140
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends$x({
|
|
2141
|
+
ref: ref,
|
|
2142
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2143
|
+
viewBox: "0 0 16 16",
|
|
2144
|
+
width: size,
|
|
2145
|
+
height: size,
|
|
2146
|
+
fill: color
|
|
2147
|
+
}, rest), title ? /*#__PURE__*/React__default["default"].createElement("title", null, title) : null, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2148
|
+
fillRule: "evenodd",
|
|
2149
|
+
d: "M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"
|
|
2150
|
+
}));
|
|
2151
|
+
});
|
|
2152
|
+
ChevronLeft.propTypes = {
|
|
2153
|
+
color: PropTypes.string,
|
|
2154
|
+
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
2155
|
+
title: PropTypes.string
|
|
2156
|
+
};
|
|
2157
|
+
ChevronLeft.defaultProps = {
|
|
2158
|
+
color: 'currentColor',
|
|
2159
|
+
size: '1em',
|
|
2160
|
+
title: null
|
|
2161
|
+
};
|
|
2162
|
+
var ChevronLeft$1 = ChevronLeft;
|
|
2163
|
+
|
|
2127
2164
|
var _excluded$y = ["color", "size", "title"];
|
|
2128
2165
|
|
|
2129
2166
|
function _extends$w() { _extends$w = Object.assign || 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$w.apply(this, arguments); }
|
|
@@ -4043,7 +4080,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4043
4080
|
|
|
4044
4081
|
otherStateToSet = pickState(otherStateToSet);
|
|
4045
4082
|
|
|
4046
|
-
_this.internalSetState(_extends$
|
|
4083
|
+
_this.internalSetState(_extends$G({
|
|
4047
4084
|
highlightedIndex: highlightedIndex
|
|
4048
4085
|
}, otherStateToSet));
|
|
4049
4086
|
};
|
|
@@ -4060,7 +4097,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4060
4097
|
_this.selectItem = function (item, otherStateToSet, cb) {
|
|
4061
4098
|
otherStateToSet = pickState(otherStateToSet);
|
|
4062
4099
|
|
|
4063
|
-
_this.internalSetState(_extends$
|
|
4100
|
+
_this.internalSetState(_extends$G({
|
|
4064
4101
|
isOpen: _this.props.defaultIsOpen,
|
|
4065
4102
|
highlightedIndex: _this.props.defaultHighlightedIndex,
|
|
4066
4103
|
selectedItem: item,
|
|
@@ -4092,7 +4129,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4092
4129
|
// See https://github.com/downshift-js/downshift/issues/217 for more info.
|
|
4093
4130
|
|
|
4094
4131
|
if (!isStateToSetFunction && stateToSet.hasOwnProperty('inputValue')) {
|
|
4095
|
-
_this.props.onInputValueChange(stateToSet.inputValue, _extends$
|
|
4132
|
+
_this.props.onInputValueChange(stateToSet.inputValue, _extends$G({}, _this.getStateAndHelpers(), stateToSet));
|
|
4096
4133
|
}
|
|
4097
4134
|
|
|
4098
4135
|
return _this.setState(function (state) {
|
|
@@ -4140,7 +4177,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4140
4177
|
// earlier, so we'll call it now that we know what the inputValue state will be.
|
|
4141
4178
|
|
|
4142
4179
|
if (isStateToSetFunction && newStateToSet.hasOwnProperty('inputValue')) {
|
|
4143
|
-
_this.props.onInputValueChange(newStateToSet.inputValue, _extends$
|
|
4180
|
+
_this.props.onInputValueChange(newStateToSet.inputValue, _extends$G({}, _this.getStateAndHelpers(), newStateToSet));
|
|
4144
4181
|
}
|
|
4145
4182
|
|
|
4146
4183
|
return nextState;
|
|
@@ -4195,7 +4232,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4195
4232
|
var _this$getState = _this.getState(),
|
|
4196
4233
|
isOpen = _this$getState.isOpen;
|
|
4197
4234
|
|
|
4198
|
-
return _extends$
|
|
4235
|
+
return _extends$G((_extends2 = {}, _extends2[refKey] = handleRefs(ref, _this.rootRef), _extends2.role = 'combobox', _extends2['aria-expanded'] = isOpen, _extends2['aria-haspopup'] = 'listbox', _extends2['aria-owns'] = isOpen ? _this.menuId : null, _extends2['aria-labelledby'] = _this.labelId, _extends2), rest);
|
|
4199
4236
|
};
|
|
4200
4237
|
|
|
4201
4238
|
_this.keyDownHandlers = {
|
|
@@ -4288,7 +4325,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4288
4325
|
},
|
|
4289
4326
|
Escape: function Escape(event) {
|
|
4290
4327
|
event.preventDefault();
|
|
4291
|
-
this.reset(_extends$
|
|
4328
|
+
this.reset(_extends$G({
|
|
4292
4329
|
type: keyDownEscape
|
|
4293
4330
|
}, !this.state.isOpen && {
|
|
4294
4331
|
selectedItem: null,
|
|
@@ -4296,7 +4333,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4296
4333
|
}));
|
|
4297
4334
|
}
|
|
4298
4335
|
};
|
|
4299
|
-
_this.buttonKeyDownHandlers = _extends$
|
|
4336
|
+
_this.buttonKeyDownHandlers = _extends$G({}, _this.keyDownHandlers, {
|
|
4300
4337
|
' ': function _(event) {
|
|
4301
4338
|
event.preventDefault();
|
|
4302
4339
|
this.toggleMenu({
|
|
@@ -4304,7 +4341,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4304
4341
|
});
|
|
4305
4342
|
}
|
|
4306
4343
|
});
|
|
4307
|
-
_this.inputKeyDownHandlers = _extends$
|
|
4344
|
+
_this.inputKeyDownHandlers = _extends$G({}, _this.keyDownHandlers, {
|
|
4308
4345
|
Home: function Home(event) {
|
|
4309
4346
|
var _this4 = this;
|
|
4310
4347
|
|
|
@@ -4376,7 +4413,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4376
4413
|
onBlur: callAllEventHandlers(onBlur, _this.buttonHandleBlur)
|
|
4377
4414
|
};
|
|
4378
4415
|
var eventHandlers = rest.disabled ? {} : enabledEventHandlers;
|
|
4379
|
-
return _extends$
|
|
4416
|
+
return _extends$G({
|
|
4380
4417
|
type: 'button',
|
|
4381
4418
|
role: 'button',
|
|
4382
4419
|
'aria-label': isOpen ? 'close menu' : 'open menu',
|
|
@@ -4440,7 +4477,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4440
4477
|
};
|
|
4441
4478
|
|
|
4442
4479
|
_this.getLabelProps = function (props) {
|
|
4443
|
-
return _extends$
|
|
4480
|
+
return _extends$G({
|
|
4444
4481
|
htmlFor: _this.inputId,
|
|
4445
4482
|
id: _this.labelId
|
|
4446
4483
|
}, props);
|
|
@@ -4474,7 +4511,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4474
4511
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, _this.inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, _this.inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, _this.inputHandleBlur), _eventHandlers);
|
|
4475
4512
|
}
|
|
4476
4513
|
|
|
4477
|
-
return _extends$
|
|
4514
|
+
return _extends$G({
|
|
4478
4515
|
'aria-autocomplete': 'list',
|
|
4479
4516
|
'aria-activedescendant': isOpen && typeof highlightedIndex === 'number' && highlightedIndex >= 0 ? _this.getItemId(highlightedIndex) : null,
|
|
4480
4517
|
'aria-controls': isOpen ? _this.menuId : null,
|
|
@@ -4537,7 +4574,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4537
4574
|
_this.getMenuProps.called = true;
|
|
4538
4575
|
_this.getMenuProps.refKey = refKey;
|
|
4539
4576
|
_this.getMenuProps.suppressRefError = suppressRefError;
|
|
4540
|
-
return _extends$
|
|
4577
|
+
return _extends$G((_extends3 = {}, _extends3[refKey] = handleRefs(ref, _this.menuRef), _extends3.role = 'listbox', _extends3['aria-labelledby'] = props && props['aria-label'] ? null : _this.labelId, _extends3.id = _this.menuId, _extends3), props);
|
|
4541
4578
|
};
|
|
4542
4579
|
|
|
4543
4580
|
_this.getItemProps = function (_temp7) {
|
|
@@ -4604,7 +4641,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4604
4641
|
var eventHandlers = rest.disabled ? {
|
|
4605
4642
|
onMouseDown: enabledEventHandlers.onMouseDown
|
|
4606
4643
|
} : enabledEventHandlers;
|
|
4607
|
-
return _extends$
|
|
4644
|
+
return _extends$G({
|
|
4608
4645
|
id: _this.getItemId(index),
|
|
4609
4646
|
role: 'option',
|
|
4610
4647
|
'aria-selected': _this.getState().highlightedIndex === index
|
|
@@ -4624,7 +4661,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4624
4661
|
|
|
4625
4662
|
_this.internalSetState(function (_ref8) {
|
|
4626
4663
|
var selectedItem = _ref8.selectedItem;
|
|
4627
|
-
return _extends$
|
|
4664
|
+
return _extends$G({
|
|
4628
4665
|
isOpen: _this.props.defaultIsOpen,
|
|
4629
4666
|
highlightedIndex: _this.props.defaultHighlightedIndex,
|
|
4630
4667
|
inputValue: _this.props.itemToString(selectedItem)
|
|
@@ -4641,7 +4678,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4641
4678
|
|
|
4642
4679
|
_this.internalSetState(function (_ref9) {
|
|
4643
4680
|
var isOpen = _ref9.isOpen;
|
|
4644
|
-
return _extends$
|
|
4681
|
+
return _extends$G({
|
|
4645
4682
|
isOpen: !isOpen
|
|
4646
4683
|
}, isOpen && {
|
|
4647
4684
|
highlightedIndex: _this.props.defaultHighlightedIndex
|
|
@@ -4680,7 +4717,7 @@ var Downshift = /*#__PURE__*/function () {
|
|
|
4680
4717
|
|
|
4681
4718
|
var resultCount = _this.getItemCount();
|
|
4682
4719
|
|
|
4683
|
-
var status = _this.props.getA11yStatusMessage(_extends$
|
|
4720
|
+
var status = _this.props.getA11yStatusMessage(_extends$G({
|
|
4684
4721
|
itemToString: _this.props.itemToString,
|
|
4685
4722
|
previousResultCount: _this.previousResultCount,
|
|
4686
4723
|
resultCount: resultCount,
|
|
@@ -5170,7 +5207,7 @@ function callOnChangeProps(action, state, newState) {
|
|
|
5170
5207
|
});
|
|
5171
5208
|
|
|
5172
5209
|
if (props.onStateChange && Object.keys(changes).length) {
|
|
5173
|
-
props.onStateChange(_extends$
|
|
5210
|
+
props.onStateChange(_extends$G({
|
|
5174
5211
|
type: type
|
|
5175
5212
|
}, changes));
|
|
5176
5213
|
}
|
|
@@ -5182,7 +5219,7 @@ function invokeOnChangeHandler(key, action, state, newState) {
|
|
|
5182
5219
|
var handler = "on" + capitalizeString(key) + "Change";
|
|
5183
5220
|
|
|
5184
5221
|
if (props[handler] && newState[key] !== undefined && newState[key] !== state[key]) {
|
|
5185
|
-
props[handler](_extends$
|
|
5222
|
+
props[handler](_extends$G({
|
|
5186
5223
|
type: type
|
|
5187
5224
|
}, newState));
|
|
5188
5225
|
}
|
|
@@ -5292,7 +5329,7 @@ function useEnhancedReducer(reducer, initialState, props) {
|
|
|
5292
5329
|
actionRef.current = action;
|
|
5293
5330
|
state = getState(state, action.props);
|
|
5294
5331
|
var changes = reducer(state, action);
|
|
5295
|
-
var newState = action.props.stateReducer(state, _extends$
|
|
5332
|
+
var newState = action.props.stateReducer(state, _extends$G({}, action, {
|
|
5296
5333
|
changes: changes
|
|
5297
5334
|
}));
|
|
5298
5335
|
return newState;
|
|
@@ -5304,7 +5341,7 @@ function useEnhancedReducer(reducer, initialState, props) {
|
|
|
5304
5341
|
|
|
5305
5342
|
var propsRef = useLatestRef$1(props);
|
|
5306
5343
|
var dispatchWithProps = React.useCallback(function (action) {
|
|
5307
|
-
return dispatch(_extends$
|
|
5344
|
+
return dispatch(_extends$G({
|
|
5308
5345
|
props: propsRef.current
|
|
5309
5346
|
}, action));
|
|
5310
5347
|
}, [propsRef]);
|
|
@@ -5550,7 +5587,7 @@ function useA11yMessageSetter(getA11yMessage, dependencyArray, _ref2) {
|
|
|
5550
5587
|
}
|
|
5551
5588
|
|
|
5552
5589
|
updateA11yStatus(function () {
|
|
5553
|
-
return getA11yMessage(_extends$
|
|
5590
|
+
return getA11yMessage(_extends$G({
|
|
5554
5591
|
highlightedIndex: highlightedIndex,
|
|
5555
5592
|
highlightedItem: items[highlightedIndex],
|
|
5556
5593
|
resultCount: items.length
|
|
@@ -5672,7 +5709,7 @@ function downshiftCommonReducer(state, action, stateChangeTypes) {
|
|
|
5672
5709
|
throw new Error('Reducer called without proper action type.');
|
|
5673
5710
|
}
|
|
5674
5711
|
|
|
5675
|
-
return _extends$
|
|
5712
|
+
return _extends$G({}, state, changes);
|
|
5676
5713
|
}
|
|
5677
5714
|
({
|
|
5678
5715
|
items: PropTypes.array.isRequired,
|
|
@@ -5812,7 +5849,7 @@ function getInitialState$1(props) {
|
|
|
5812
5849
|
inputValue = props.itemToString(selectedItem);
|
|
5813
5850
|
}
|
|
5814
5851
|
|
|
5815
|
-
return _extends$
|
|
5852
|
+
return _extends$G({}, initialState, {
|
|
5816
5853
|
inputValue: inputValue
|
|
5817
5854
|
});
|
|
5818
5855
|
}
|
|
@@ -5903,7 +5940,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
5903
5940
|
};
|
|
5904
5941
|
}
|
|
5905
5942
|
|
|
5906
|
-
var defaultProps$1$1 = _extends$
|
|
5943
|
+
var defaultProps$1$1 = _extends$G({}, defaultProps$3$1, {
|
|
5907
5944
|
getA11yStatusMessage: getA11yStatusMessage$1,
|
|
5908
5945
|
circularNavigation: true
|
|
5909
5946
|
});
|
|
@@ -5955,7 +5992,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
5955
5992
|
break;
|
|
5956
5993
|
|
|
5957
5994
|
case InputKeyDownEnter:
|
|
5958
|
-
changes = _extends$
|
|
5995
|
+
changes = _extends$G({}, state.isOpen && state.highlightedIndex >= 0 && {
|
|
5959
5996
|
selectedItem: props.items[state.highlightedIndex],
|
|
5960
5997
|
isOpen: getDefaultValue$1(props, 'isOpen'),
|
|
5961
5998
|
highlightedIndex: getDefaultValue$1(props, 'highlightedIndex'),
|
|
@@ -5964,7 +6001,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
5964
6001
|
break;
|
|
5965
6002
|
|
|
5966
6003
|
case InputKeyDownEscape:
|
|
5967
|
-
changes = _extends$
|
|
6004
|
+
changes = _extends$G({
|
|
5968
6005
|
isOpen: false,
|
|
5969
6006
|
highlightedIndex: -1
|
|
5970
6007
|
}, !state.isOpen && {
|
|
@@ -5986,7 +6023,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
5986
6023
|
break;
|
|
5987
6024
|
|
|
5988
6025
|
case InputBlur:
|
|
5989
|
-
changes = _extends$
|
|
6026
|
+
changes = _extends$G({
|
|
5990
6027
|
isOpen: false,
|
|
5991
6028
|
highlightedIndex: -1
|
|
5992
6029
|
}, state.highlightedIndex >= 0 && action.selectItem && {
|
|
@@ -6020,7 +6057,7 @@ function downshiftUseComboboxReducer(state, action) {
|
|
|
6020
6057
|
return downshiftCommonReducer(state, action, stateChangeTypes$1);
|
|
6021
6058
|
}
|
|
6022
6059
|
|
|
6023
|
-
return _extends$
|
|
6060
|
+
return _extends$G({}, state, changes);
|
|
6024
6061
|
}
|
|
6025
6062
|
/* eslint-enable complexity */
|
|
6026
6063
|
|
|
@@ -6038,7 +6075,7 @@ function useCombobox(userProps) {
|
|
|
6038
6075
|
|
|
6039
6076
|
validatePropTypes$1(userProps, useCombobox); // Props defaults and destructuring.
|
|
6040
6077
|
|
|
6041
|
-
var props = _extends$
|
|
6078
|
+
var props = _extends$G({}, defaultProps$1$1, userProps);
|
|
6042
6079
|
|
|
6043
6080
|
var initialIsOpen = props.initialIsOpen,
|
|
6044
6081
|
defaultIsOpen = props.defaultIsOpen,
|
|
@@ -6080,7 +6117,7 @@ function useCombobox(userProps) {
|
|
|
6080
6117
|
}, [elementIds]); // Effects.
|
|
6081
6118
|
// Sets a11y status message on changes in state.
|
|
6082
6119
|
|
|
6083
|
-
useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
6120
|
+
useA11yMessageSetter(getA11yStatusMessage, [isOpen, highlightedIndex, inputValue, items], _extends$G({
|
|
6084
6121
|
isInitialMount: isInitialMountRef.current,
|
|
6085
6122
|
previousResultCount: previousResultCountRef.current,
|
|
6086
6123
|
items: items,
|
|
@@ -6088,7 +6125,7 @@ function useCombobox(userProps) {
|
|
|
6088
6125
|
itemToString: itemToString
|
|
6089
6126
|
}, state)); // Sets a11y status message on changes in selectedItem.
|
|
6090
6127
|
|
|
6091
|
-
useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], _extends$
|
|
6128
|
+
useA11yMessageSetter(getA11ySelectionMessage, [selectedItem], _extends$G({
|
|
6092
6129
|
isInitialMount: isInitialMountRef.current,
|
|
6093
6130
|
previousResultCount: previousResultCountRef.current,
|
|
6094
6131
|
items: items,
|
|
@@ -6212,7 +6249,7 @@ function useCombobox(userProps) {
|
|
|
6212
6249
|
}, [dispatch, latest, getItemNodeFromIndex]); // Getter props.
|
|
6213
6250
|
|
|
6214
6251
|
var getLabelProps = React.useCallback(function (labelProps) {
|
|
6215
|
-
return _extends$
|
|
6252
|
+
return _extends$G({
|
|
6216
6253
|
id: elementIds.labelId,
|
|
6217
6254
|
htmlFor: elementIds.inputId
|
|
6218
6255
|
}, labelProps);
|
|
@@ -6232,7 +6269,7 @@ function useCombobox(userProps) {
|
|
|
6232
6269
|
suppressRefError = _ref2$suppressRefErro === void 0 ? false : _ref2$suppressRefErro;
|
|
6233
6270
|
|
|
6234
6271
|
setGetterPropCallInfo('getMenuProps', suppressRefError, refKey, menuRef);
|
|
6235
|
-
return _extends$
|
|
6272
|
+
return _extends$G((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function (menuNode) {
|
|
6236
6273
|
menuRef.current = menuNode;
|
|
6237
6274
|
}), _extends2.id = elementIds.menuId, _extends2.role = 'listbox', _extends2['aria-labelledby'] = elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function () {
|
|
6238
6275
|
dispatch({
|
|
@@ -6289,7 +6326,7 @@ function useCombobox(userProps) {
|
|
|
6289
6326
|
}
|
|
6290
6327
|
};
|
|
6291
6328
|
|
|
6292
|
-
return _extends$
|
|
6329
|
+
return _extends$G((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function (itemNode) {
|
|
6293
6330
|
if (itemNode) {
|
|
6294
6331
|
itemRefs.current[elementIds.getItemId(itemIndex)] = itemNode;
|
|
6295
6332
|
}
|
|
@@ -6318,9 +6355,9 @@ function useCombobox(userProps) {
|
|
|
6318
6355
|
}
|
|
6319
6356
|
};
|
|
6320
6357
|
|
|
6321
|
-
return _extends$
|
|
6358
|
+
return _extends$G((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function (toggleButtonNode) {
|
|
6322
6359
|
toggleButtonRef.current = toggleButtonNode;
|
|
6323
|
-
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$
|
|
6360
|
+
}), _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$G({}, {
|
|
6324
6361
|
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
6325
6362
|
}), rest);
|
|
6326
6363
|
}, [dispatch, latest, elementIds]);
|
|
@@ -6381,7 +6418,7 @@ function useCombobox(userProps) {
|
|
|
6381
6418
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers);
|
|
6382
6419
|
}
|
|
6383
6420
|
|
|
6384
|
-
return _extends$
|
|
6421
|
+
return _extends$G((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function (inputNode) {
|
|
6385
6422
|
inputRef.current = inputNode;
|
|
6386
6423
|
}), _extends5.id = elementIds.inputId, _extends5['aria-autocomplete'] = 'list', _extends5['aria-controls'] = elementIds.menuId, _extends5), latestState.isOpen && latestState.highlightedIndex > -1 && {
|
|
6387
6424
|
'aria-activedescendant': elementIds.getItemId(latestState.highlightedIndex)
|
|
@@ -6407,7 +6444,7 @@ function useCombobox(userProps) {
|
|
|
6407
6444
|
suppressRefError = _ref9$suppressRefErro === void 0 ? false : _ref9$suppressRefErro;
|
|
6408
6445
|
|
|
6409
6446
|
setGetterPropCallInfo('getComboboxProps', suppressRefError, refKey, comboboxRef);
|
|
6410
|
-
return _extends$
|
|
6447
|
+
return _extends$G((_extends6 = {}, _extends6[refKey] = handleRefs(ref, function (comboboxNode) {
|
|
6411
6448
|
comboboxRef.current = comboboxNode;
|
|
6412
6449
|
}), _extends6.role = 'combobox', _extends6['aria-haspopup'] = 'listbox', _extends6['aria-owns'] = elementIds.menuId, _extends6['aria-expanded'] = latest.current.state.isOpen, _extends6), rest);
|
|
6413
6450
|
}, [latest, setGetterPropCallInfo, elementIds]); // returns
|
|
@@ -6552,7 +6589,7 @@ const $89eedd556c436f6a$export$1ff3c3f08ae963c0 = /*#__PURE__*/ React.forwardRef
|
|
|
6552
6589
|
'aria-orientation': ariaOrientation,
|
|
6553
6590
|
role: 'separator'
|
|
6554
6591
|
};
|
|
6555
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
6592
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
6556
6593
|
"data-orientation": orientation
|
|
6557
6594
|
}, semanticProps, domProps, {
|
|
6558
6595
|
ref: forwardedRef
|
|
@@ -9071,7 +9108,7 @@ const $5cb92bef7577960e$export$177fb62ff3ec1f22 = /*#__PURE__*/ React.forwardRef
|
|
|
9071
9108
|
return ()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE, handleUpdate)
|
|
9072
9109
|
;
|
|
9073
9110
|
}, []);
|
|
9074
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
9111
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({}, layerProps, {
|
|
9075
9112
|
ref: composedRefs,
|
|
9076
9113
|
style: {
|
|
9077
9114
|
pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? 'auto' : 'none' : undefined,
|
|
@@ -9343,7 +9380,7 @@ const $d3863c46a17e8a28$export$20e40289641fbbb6 = /*#__PURE__*/ React.forwardRef
|
|
|
9343
9380
|
trapped,
|
|
9344
9381
|
focusScope.paused
|
|
9345
9382
|
]);
|
|
9346
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
9383
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
9347
9384
|
tabIndex: -1
|
|
9348
9385
|
}, scopeProps, {
|
|
9349
9386
|
ref: composedRefs,
|
|
@@ -11118,7 +11155,7 @@ const arrow = options => {
|
|
|
11118
11155
|
|
|
11119
11156
|
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
11120
11157
|
const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
|
|
11121
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$
|
|
11158
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.svg, _extends$G({}, arrowProps, {
|
|
11122
11159
|
ref: forwardedRef,
|
|
11123
11160
|
width: width,
|
|
11124
11161
|
height: height,
|
|
@@ -11205,7 +11242,7 @@ const $cf1ac5d9fe0e8206$export$ecd4e1ccab6ed6d = /*#__PURE__*/ React.forwardRef(
|
|
|
11205
11242
|
// `anchorRef` with their virtual ref in this case.
|
|
11206
11243
|
context.onAnchorChange((virtualRef === null || virtualRef === void 0 ? void 0 : virtualRef.current) || ref.current);
|
|
11207
11244
|
});
|
|
11208
|
-
return virtualRef ? null : /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
11245
|
+
return virtualRef ? null : /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({}, anchorProps, {
|
|
11209
11246
|
ref: composedRefs
|
|
11210
11247
|
}));
|
|
11211
11248
|
});
|
|
@@ -11400,7 +11437,7 @@ const $cf1ac5d9fe0e8206$export$79d62cd4e10a3fd0 = /*#__PURE__*/ React.forwardRef
|
|
|
11400
11437
|
}[contentContext.placedSide],
|
|
11401
11438
|
visibility: contentContext.shouldHideArrow ? 'hidden' : undefined
|
|
11402
11439
|
}
|
|
11403
|
-
}, /*#__PURE__*/ React.createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$
|
|
11440
|
+
}, /*#__PURE__*/ React.createElement($7e8f5cd07187803e$export$be92b6f5f03c0fe9, _extends$G({}, arrowProps, {
|
|
11404
11441
|
ref: forwardedRef,
|
|
11405
11442
|
style: {
|
|
11406
11443
|
...arrowProps.style,
|
|
@@ -11611,7 +11648,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ React.forwardRef
|
|
|
11611
11648
|
scope: props.__scopeRovingFocusGroup
|
|
11612
11649
|
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
11613
11650
|
scope: props.__scopeRovingFocusGroup
|
|
11614
|
-
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$
|
|
11651
|
+
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$G({}, props, {
|
|
11615
11652
|
ref: forwardedRef
|
|
11616
11653
|
}))));
|
|
11617
11654
|
});
|
|
@@ -11651,7 +11688,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ React.forwardRef
|
|
|
11651
11688
|
]),
|
|
11652
11689
|
onItemShiftTab: React.useCallback(()=>setIsTabbingBackOut(true)
|
|
11653
11690
|
, [])
|
|
11654
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
11691
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
11655
11692
|
tabIndex: isTabbingBackOut ? -1 : 0,
|
|
11656
11693
|
"data-orientation": orientation
|
|
11657
11694
|
}, groupProps, {
|
|
@@ -11709,7 +11746,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ React.forwardRef(
|
|
|
11709
11746
|
id: id,
|
|
11710
11747
|
focusable: focusable,
|
|
11711
11748
|
active: active
|
|
11712
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
11749
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({
|
|
11713
11750
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
11714
11751
|
"data-orientation": context.orientation
|
|
11715
11752
|
}, itemProps, {
|
|
@@ -12620,7 +12657,7 @@ const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
|
|
|
12620
12657
|
const $6cc32821e9371a1c$export$9fa5ebd18bee4d43 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
12621
12658
|
const { __scopeMenu: __scopeMenu , ...anchorProps } = props;
|
|
12622
12659
|
const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
|
|
12623
|
-
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
12660
|
+
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$G({}, popperScope, anchorProps, {
|
|
12624
12661
|
ref: forwardedRef
|
|
12625
12662
|
}));
|
|
12626
12663
|
});
|
|
@@ -12645,9 +12682,9 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ React.forwardRef
|
|
|
12645
12682
|
present: forceMount || context.open
|
|
12646
12683
|
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$Collection.Slot, {
|
|
12647
12684
|
scope: props.__scopeMenu
|
|
12648
|
-
}, rootContext.modal ? /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$
|
|
12685
|
+
}, rootContext.modal ? /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuRootContentModal, _extends$G({}, contentProps, {
|
|
12649
12686
|
ref: forwardedRef
|
|
12650
|
-
})) : /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$
|
|
12687
|
+
})) : /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuRootContentNonModal, _extends$G({}, contentProps, {
|
|
12651
12688
|
ref: forwardedRef
|
|
12652
12689
|
})))));
|
|
12653
12690
|
});
|
|
@@ -12659,7 +12696,7 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ React.forwardRef
|
|
|
12659
12696
|
const content = ref.current;
|
|
12660
12697
|
if (content) return hideOthers(content);
|
|
12661
12698
|
}, []);
|
|
12662
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
12699
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$G({}, props, {
|
|
12663
12700
|
ref: composedRefs // we make sure we're not trapping once it's been closed
|
|
12664
12701
|
,
|
|
12665
12702
|
trapFocus: context.open // make sure to only disable pointer events when open
|
|
@@ -12676,7 +12713,7 @@ const $6cc32821e9371a1c$export$479f0f2f71193efe = /*#__PURE__*/ React.forwardRef
|
|
|
12676
12713
|
});
|
|
12677
12714
|
const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
12678
12715
|
const context = $6cc32821e9371a1c$var$useMenuContext($6cc32821e9371a1c$var$CONTENT_NAME, props.__scopeMenu);
|
|
12679
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$
|
|
12716
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuContentImpl, _extends$G({}, props, {
|
|
12680
12717
|
ref: forwardedRef,
|
|
12681
12718
|
trapFocus: false,
|
|
12682
12719
|
disableOutsidePointerEvents: false,
|
|
@@ -12785,7 +12822,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ React.forwar
|
|
|
12785
12822
|
onFocusOutside: onFocusOutside,
|
|
12786
12823
|
onInteractOutside: onInteractOutside,
|
|
12787
12824
|
onDismiss: onDismiss
|
|
12788
|
-
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
12825
|
+
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$G({
|
|
12789
12826
|
asChild: true
|
|
12790
12827
|
}, rovingFocusGroupScope, {
|
|
12791
12828
|
dir: rootContext.dir,
|
|
@@ -12797,7 +12834,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ React.forwar
|
|
|
12797
12834
|
// only focus first item when using keyboard
|
|
12798
12835
|
if (!rootContext.isUsingKeyboardRef.current) event.preventDefault();
|
|
12799
12836
|
}
|
|
12800
|
-
}), /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
12837
|
+
}), /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$G({
|
|
12801
12838
|
role: "menu",
|
|
12802
12839
|
"aria-orientation": "vertical",
|
|
12803
12840
|
"data-state": $6cc32821e9371a1c$var$getOpenState(context.open),
|
|
@@ -12851,7 +12888,7 @@ const $6cc32821e9371a1c$var$MenuRootContentNonModal = /*#__PURE__*/ React.forwar
|
|
|
12851
12888
|
});
|
|
12852
12889
|
const $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
12853
12890
|
const { __scopeMenu: __scopeMenu , ...groupProps } = props;
|
|
12854
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
12891
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
12855
12892
|
role: "group"
|
|
12856
12893
|
}, groupProps, {
|
|
12857
12894
|
ref: forwardedRef
|
|
@@ -12859,7 +12896,7 @@ const $6cc32821e9371a1c$export$22a631d1f72787bb = /*#__PURE__*/ React.forwardRef
|
|
|
12859
12896
|
});
|
|
12860
12897
|
const $6cc32821e9371a1c$export$dd37bec0e8a99143 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
12861
12898
|
const { __scopeMenu: __scopeMenu , ...labelProps } = props;
|
|
12862
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
12899
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({}, labelProps, {
|
|
12863
12900
|
ref: forwardedRef
|
|
12864
12901
|
}));
|
|
12865
12902
|
});
|
|
@@ -12890,7 +12927,7 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ React.forwardRef
|
|
|
12890
12927
|
else rootContext.onClose();
|
|
12891
12928
|
}
|
|
12892
12929
|
};
|
|
12893
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$
|
|
12930
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$MenuItemImpl, _extends$G({}, itemProps, {
|
|
12894
12931
|
ref: composedRefs,
|
|
12895
12932
|
disabled: disabled,
|
|
12896
12933
|
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, handleSelect),
|
|
@@ -12942,11 +12979,11 @@ const $6cc32821e9371a1c$export$2ce376c2cc3355c8 = /*#__PURE__*/ React.forwardRef
|
|
|
12942
12979
|
scope: __scopeMenu,
|
|
12943
12980
|
disabled: disabled,
|
|
12944
12981
|
textValue: textValue !== null && textValue !== void 0 ? textValue : textContent
|
|
12945
|
-
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
12982
|
+
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$G({
|
|
12946
12983
|
asChild: true
|
|
12947
12984
|
}, rovingFocusGroupScope, {
|
|
12948
12985
|
focusable: !disabled
|
|
12949
|
-
}), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
12986
|
+
}), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
12950
12987
|
role: "menuitem",
|
|
12951
12988
|
"data-highlighted": isFocused ? '' : undefined,
|
|
12952
12989
|
"aria-disabled": disabled || undefined,
|
|
@@ -12976,7 +13013,7 @@ const $6cc32821e9371a1c$export$f6f243521332502d = /*#__PURE__*/ React.forwardRef
|
|
|
12976
13013
|
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
12977
13014
|
scope: props.__scopeMenu,
|
|
12978
13015
|
checked: checked
|
|
12979
|
-
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
13016
|
+
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$G({
|
|
12980
13017
|
role: "menuitemcheckbox",
|
|
12981
13018
|
"aria-checked": checked
|
|
12982
13019
|
}, checkboxItemProps, {
|
|
@@ -13002,7 +13039,7 @@ const $6cc32821e9371a1c$export$ea2200c9eee416b3 = /*#__PURE__*/ React.forwardRef
|
|
|
13002
13039
|
scope: props.__scopeMenu,
|
|
13003
13040
|
value: value,
|
|
13004
13041
|
onValueChange: handleValueChange
|
|
13005
|
-
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$
|
|
13042
|
+
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$22a631d1f72787bb, _extends$G({}, groupProps, {
|
|
13006
13043
|
ref: forwardedRef
|
|
13007
13044
|
})));
|
|
13008
13045
|
});
|
|
@@ -13016,7 +13053,7 @@ const $6cc32821e9371a1c$export$69bd225e9817f6d0 = /*#__PURE__*/ React.forwardRef
|
|
|
13016
13053
|
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$var$ItemIndicatorProvider, {
|
|
13017
13054
|
scope: props.__scopeMenu,
|
|
13018
13055
|
checked: checked
|
|
13019
|
-
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$
|
|
13056
|
+
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$2ce376c2cc3355c8, _extends$G({
|
|
13020
13057
|
role: "menuitemradio",
|
|
13021
13058
|
"aria-checked": checked
|
|
13022
13059
|
}, radioItemProps, {
|
|
@@ -13041,7 +13078,7 @@ const $6cc32821e9371a1c$export$a2593e23056970a3 = /*#__PURE__*/ React.forwardRef
|
|
|
13041
13078
|
const indicatorContext = $6cc32821e9371a1c$var$useItemIndicatorContext($6cc32821e9371a1c$var$ITEM_INDICATOR_NAME, __scopeMenu);
|
|
13042
13079
|
return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
13043
13080
|
present: forceMount || indicatorContext.checked
|
|
13044
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
13081
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({}, itemIndicatorProps, {
|
|
13045
13082
|
ref: forwardedRef,
|
|
13046
13083
|
"data-state": $6cc32821e9371a1c$var$getCheckedState(indicatorContext.checked)
|
|
13047
13084
|
})));
|
|
@@ -13049,7 +13086,7 @@ const $6cc32821e9371a1c$export$a2593e23056970a3 = /*#__PURE__*/ React.forwardRef
|
|
|
13049
13086
|
const $6cc32821e9371a1c$export$bcdda4773debf5fa = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13050
13087
|
const { __scopeMenu: __scopeMenu , ...arrowProps } = props;
|
|
13051
13088
|
const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);
|
|
13052
|
-
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
13089
|
+
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$G({}, popperScope, arrowProps, {
|
|
13053
13090
|
ref: forwardedRef
|
|
13054
13091
|
}));
|
|
13055
13092
|
});
|
|
@@ -13177,7 +13214,7 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props)=>{
|
|
|
13177
13214
|
setOpen
|
|
13178
13215
|
]),
|
|
13179
13216
|
modal: modal
|
|
13180
|
-
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$
|
|
13217
|
+
}, /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$G({}, menuScope, {
|
|
13181
13218
|
open: open,
|
|
13182
13219
|
onOpenChange: setOpen,
|
|
13183
13220
|
dir: dir,
|
|
@@ -13191,9 +13228,9 @@ const $d08ef79370b62062$export$d2469213b3befba9 = /*#__PURE__*/ React.forwardRef
|
|
|
13191
13228
|
const { __scopeDropdownMenu: __scopeDropdownMenu , disabled: disabled = false , ...triggerProps } = props;
|
|
13192
13229
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$TRIGGER_NAME, __scopeDropdownMenu);
|
|
13193
13230
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13194
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$
|
|
13231
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$G({
|
|
13195
13232
|
asChild: true
|
|
13196
|
-
}, menuScope), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
13233
|
+
}, menuScope), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$G({
|
|
13197
13234
|
type: "button",
|
|
13198
13235
|
id: context.triggerId,
|
|
13199
13236
|
"aria-haspopup": "menu",
|
|
@@ -13235,7 +13272,7 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /*#__PURE__*/ React.forwardRef
|
|
|
13235
13272
|
const context = $d08ef79370b62062$var$useDropdownMenuContext($d08ef79370b62062$var$CONTENT_NAME, __scopeDropdownMenu);
|
|
13236
13273
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13237
13274
|
const hasInteractedOutsideRef = React.useRef(false);
|
|
13238
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$
|
|
13275
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$G({
|
|
13239
13276
|
id: context.contentId,
|
|
13240
13277
|
"aria-labelledby": context.triggerId
|
|
13241
13278
|
}, menuScope, contentProps, {
|
|
@@ -13262,56 +13299,56 @@ const $d08ef79370b62062$export$6e76d93a37c01248 = /*#__PURE__*/ React.forwardRef
|
|
|
13262
13299
|
const $d08ef79370b62062$export$246bebaba3a2f70e = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13263
13300
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...groupProps } = props;
|
|
13264
13301
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13265
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$
|
|
13302
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$G({}, menuScope, groupProps, {
|
|
13266
13303
|
ref: forwardedRef
|
|
13267
13304
|
}));
|
|
13268
13305
|
});
|
|
13269
13306
|
const $d08ef79370b62062$export$76e48c5b57f24495 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13270
13307
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...labelProps } = props;
|
|
13271
13308
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13272
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$
|
|
13309
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$b04be29aa201d4f5, _extends$G({}, menuScope, labelProps, {
|
|
13273
13310
|
ref: forwardedRef
|
|
13274
13311
|
}));
|
|
13275
13312
|
});
|
|
13276
13313
|
const $d08ef79370b62062$export$ed97964d1871885d = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13277
13314
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemProps } = props;
|
|
13278
13315
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13279
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$
|
|
13316
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$G({}, menuScope, itemProps, {
|
|
13280
13317
|
ref: forwardedRef
|
|
13281
13318
|
}));
|
|
13282
13319
|
});
|
|
13283
13320
|
const $d08ef79370b62062$export$53a69729da201fa9 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13284
13321
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...checkboxItemProps } = props;
|
|
13285
13322
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13286
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$
|
|
13323
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$16ce288f89fa631c, _extends$G({}, menuScope, checkboxItemProps, {
|
|
13287
13324
|
ref: forwardedRef
|
|
13288
13325
|
}));
|
|
13289
13326
|
});
|
|
13290
13327
|
const $d08ef79370b62062$export$3323ad73d55f587e = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13291
13328
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioGroupProps } = props;
|
|
13292
13329
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13293
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$
|
|
13330
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$a98f0dcb43a68a25, _extends$G({}, menuScope, radioGroupProps, {
|
|
13294
13331
|
ref: forwardedRef
|
|
13295
13332
|
}));
|
|
13296
13333
|
});
|
|
13297
13334
|
const $d08ef79370b62062$export$e4f69b41b1637536 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13298
13335
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...radioItemProps } = props;
|
|
13299
13336
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13300
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$
|
|
13337
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$371ab307eab489c0, _extends$G({}, menuScope, radioItemProps, {
|
|
13301
13338
|
ref: forwardedRef
|
|
13302
13339
|
}));
|
|
13303
13340
|
});
|
|
13304
13341
|
const $d08ef79370b62062$export$42355ae145153fb6 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13305
13342
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...itemIndicatorProps } = props;
|
|
13306
13343
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13307
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$
|
|
13344
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$c3468e2714d175fa, _extends$G({}, menuScope, itemIndicatorProps, {
|
|
13308
13345
|
ref: forwardedRef
|
|
13309
13346
|
}));
|
|
13310
13347
|
});
|
|
13311
13348
|
const $d08ef79370b62062$export$34b8980744021ec5 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
13312
13349
|
const { __scopeDropdownMenu: __scopeDropdownMenu , ...arrowProps } = props;
|
|
13313
13350
|
const menuScope = $d08ef79370b62062$var$useMenuScope(__scopeDropdownMenu);
|
|
13314
|
-
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$
|
|
13351
|
+
return /*#__PURE__*/ React.createElement($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$G({}, menuScope, arrowProps, {
|
|
13315
13352
|
ref: forwardedRef
|
|
13316
13353
|
}));
|
|
13317
13354
|
});
|
|
@@ -15115,7 +15152,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ React.forwardRef
|
|
|
15115
15152
|
, [
|
|
15116
15153
|
setOpen
|
|
15117
15154
|
])
|
|
15118
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
15155
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
15119
15156
|
"data-state": $409067139f391064$var$getState(open),
|
|
15120
15157
|
"data-disabled": disabled ? '' : undefined
|
|
15121
15158
|
}, collapsibleProps, {
|
|
@@ -15128,7 +15165,7 @@ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ React.forwardRef
|
|
|
15128
15165
|
const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
15129
15166
|
const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;
|
|
15130
15167
|
const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
|
|
15131
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
15168
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$G({
|
|
15132
15169
|
type: "button",
|
|
15133
15170
|
"aria-controls": context.contentId,
|
|
15134
15171
|
"aria-expanded": context.open || false,
|
|
@@ -15148,7 +15185,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ React.forwardRef
|
|
|
15148
15185
|
const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);
|
|
15149
15186
|
return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
15150
15187
|
present: forceMount || context.open
|
|
15151
|
-
}, ({ present: present })=>/*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends$
|
|
15188
|
+
}, ({ present: present })=>/*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends$G({}, contentProps, {
|
|
15152
15189
|
ref: forwardedRef,
|
|
15153
15190
|
present: present
|
|
15154
15191
|
}))
|
|
@@ -15204,7 +15241,7 @@ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ React.forwardRef
|
|
|
15204
15241
|
context.open,
|
|
15205
15242
|
present
|
|
15206
15243
|
]);
|
|
15207
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
15244
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
15208
15245
|
"data-state": $409067139f391064$var$getState(context.open),
|
|
15209
15246
|
"data-disabled": context.disabled ? '' : undefined,
|
|
15210
15247
|
id: context.contentId,
|
|
@@ -15413,7 +15450,7 @@ const $ce77a8961b41be9e$export$d7b12c4107be0d61 = /*#__PURE__*/ React.forwardRef
|
|
|
15413
15450
|
scope: __scopeRadio,
|
|
15414
15451
|
checked: checked,
|
|
15415
15452
|
disabled: disabled
|
|
15416
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
15453
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$G({
|
|
15417
15454
|
type: "button",
|
|
15418
15455
|
role: "radio",
|
|
15419
15456
|
"aria-checked": checked,
|
|
@@ -15456,7 +15493,7 @@ const $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/ React.forwardRef
|
|
|
15456
15493
|
const context = $ce77a8961b41be9e$var$useRadioContext($ce77a8961b41be9e$var$INDICATOR_NAME, __scopeRadio);
|
|
15457
15494
|
return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
15458
15495
|
present: forceMount || context.checked
|
|
15459
|
-
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
15496
|
+
}, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({
|
|
15460
15497
|
"data-state": $ce77a8961b41be9e$var$getState(context.checked),
|
|
15461
15498
|
"data-disabled": context.disabled ? '' : undefined
|
|
15462
15499
|
}, indicatorProps, {
|
|
@@ -15485,7 +15522,7 @@ const $ce77a8961b41be9e$export$d35a9ffa9a04f9e7 = /*#__PURE__*/ React.forwardRef
|
|
|
15485
15522
|
checked,
|
|
15486
15523
|
bubbles
|
|
15487
15524
|
]);
|
|
15488
|
-
return /*#__PURE__*/ React.createElement("input", _extends$
|
|
15525
|
+
return /*#__PURE__*/ React.createElement("input", _extends$G({
|
|
15489
15526
|
type: "radio",
|
|
15490
15527
|
"aria-hidden": true,
|
|
15491
15528
|
defaultChecked: checked
|
|
@@ -15540,13 +15577,13 @@ const $f99a8c78507165f7$export$a98f0dcb43a68a25 = /*#__PURE__*/ React.forwardRef
|
|
|
15540
15577
|
required: required,
|
|
15541
15578
|
value: value,
|
|
15542
15579
|
onValueChange: setValue
|
|
15543
|
-
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$
|
|
15580
|
+
}, /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$G({
|
|
15544
15581
|
asChild: true
|
|
15545
15582
|
}, rovingFocusGroupScope, {
|
|
15546
15583
|
orientation: orientation,
|
|
15547
15584
|
dir: direction,
|
|
15548
15585
|
loop: loop
|
|
15549
|
-
}), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$
|
|
15586
|
+
}), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$G({
|
|
15550
15587
|
role: "radiogroup",
|
|
15551
15588
|
"aria-required": required,
|
|
15552
15589
|
"aria-orientation": orientation,
|
|
@@ -15581,12 +15618,12 @@ const $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/ React.forwardRef
|
|
|
15581
15618
|
document.removeEventListener('keyup', handleKeyUp);
|
|
15582
15619
|
};
|
|
15583
15620
|
}, []);
|
|
15584
|
-
return /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$
|
|
15621
|
+
return /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$G({
|
|
15585
15622
|
asChild: true
|
|
15586
15623
|
}, rovingFocusGroupScope, {
|
|
15587
15624
|
focusable: !disabled,
|
|
15588
15625
|
active: checked
|
|
15589
|
-
}), /*#__PURE__*/ React.createElement($ce77a8961b41be9e$export$d7b12c4107be0d61, _extends$
|
|
15626
|
+
}), /*#__PURE__*/ React.createElement($ce77a8961b41be9e$export$d7b12c4107be0d61, _extends$G({
|
|
15590
15627
|
disabled: disabled,
|
|
15591
15628
|
required: context.required,
|
|
15592
15629
|
checked: checked
|
|
@@ -15612,7 +15649,7 @@ const $f99a8c78507165f7$export$9f866c100ef519e4 = /*#__PURE__*/ React.forwardRef
|
|
|
15612
15649
|
const $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
15613
15650
|
const { __scopeRadioGroup: __scopeRadioGroup , ...indicatorProps } = props;
|
|
15614
15651
|
const radioScope = $f99a8c78507165f7$var$useRadioScope(__scopeRadioGroup);
|
|
15615
|
-
return /*#__PURE__*/ React.createElement($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, _extends$
|
|
15652
|
+
return /*#__PURE__*/ React.createElement($ce77a8961b41be9e$export$d35a9ffa9a04f9e7, _extends$G({}, radioScope, indicatorProps, {
|
|
15616
15653
|
ref: forwardedRef
|
|
15617
15654
|
}));
|
|
15618
15655
|
});
|
|
@@ -15722,7 +15759,7 @@ var TextInput = function (_a) {
|
|
|
15722
15759
|
};
|
|
15723
15760
|
|
|
15724
15761
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
15725
|
-
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$
|
|
15762
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$G({}, props, {
|
|
15726
15763
|
ref: forwardedRef,
|
|
15727
15764
|
style: {
|
|
15728
15765
|
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
@@ -15857,9 +15894,9 @@ const $a093c7e1ec25a057$export$8c610744efcf8a1d = /*#__PURE__*/ React.forwardRef
|
|
|
15857
15894
|
}, [
|
|
15858
15895
|
handlePointerUp
|
|
15859
15896
|
]);
|
|
15860
|
-
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$
|
|
15897
|
+
return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$b688253958b8dfe7, _extends$G({
|
|
15861
15898
|
asChild: true
|
|
15862
|
-
}, popperScope), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$
|
|
15899
|
+
}, popperScope), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$G({
|
|
15863
15900
|
// We purposefully avoid adding `type=button` here because tooltip triggers are also
|
|
15864
15901
|
// commonly anchors and the anchor `type` attribute signifies MIME type.
|
|
15865
15902
|
"aria-describedby": context.open ? context.contentId : undefined,
|
|
@@ -15910,11 +15947,11 @@ const $a093c7e1ec25a057$export$e9003e2be37ec060 = /*#__PURE__*/ React.forwardRef
|
|
|
15910
15947
|
const context = $a093c7e1ec25a057$var$useTooltipContext($a093c7e1ec25a057$var$CONTENT_NAME, props.__scopeTooltip);
|
|
15911
15948
|
return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
15912
15949
|
present: forceMount || context.open
|
|
15913
|
-
}, context.disableHoverableContent ? /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
15950
|
+
}, context.disableHoverableContent ? /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$G({
|
|
15914
15951
|
side: side
|
|
15915
15952
|
}, contentProps, {
|
|
15916
15953
|
ref: forwardedRef
|
|
15917
|
-
})) : /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$
|
|
15954
|
+
})) : /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentHoverable, _extends$G({
|
|
15918
15955
|
side: side
|
|
15919
15956
|
}, contentProps, {
|
|
15920
15957
|
ref: forwardedRef
|
|
@@ -16013,7 +16050,7 @@ const $a093c7e1ec25a057$var$TooltipContentHoverable = /*#__PURE__*/ React.forwar
|
|
|
16013
16050
|
onClose,
|
|
16014
16051
|
handleRemoveGraceArea
|
|
16015
16052
|
]);
|
|
16016
|
-
return /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$
|
|
16053
|
+
return /*#__PURE__*/ React.createElement($a093c7e1ec25a057$var$TooltipContentImpl, _extends$G({}, props, {
|
|
16017
16054
|
ref: composedRefs
|
|
16018
16055
|
}));
|
|
16019
16056
|
});
|
|
@@ -16058,7 +16095,7 @@ const $a093c7e1ec25a057$var$TooltipContentImpl = /*#__PURE__*/ React.forwardRef(
|
|
|
16058
16095
|
onFocusOutside: (event)=>event.preventDefault()
|
|
16059
16096
|
,
|
|
16060
16097
|
onDismiss: onClose
|
|
16061
|
-
}, /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$
|
|
16098
|
+
}, /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$7c6e2c02157bb7d2, _extends$G({
|
|
16062
16099
|
"data-state": context.stateAttribute
|
|
16063
16100
|
}, popperScope, contentProps, {
|
|
16064
16101
|
ref: forwardedRef,
|
|
@@ -16083,7 +16120,7 @@ const $a093c7e1ec25a057$export$c27ee0ad710f7559 = /*#__PURE__*/ React.forwardRef
|
|
|
16083
16120
|
const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
|
|
16084
16121
|
const visuallyHiddenContentContext = $a093c7e1ec25a057$var$useVisuallyHiddenContentContext($a093c7e1ec25a057$var$ARROW_NAME, __scopeTooltip); // if the arrow is inside the `VisuallyHidden`, we don't want to render it all to
|
|
16085
16122
|
// prevent issues in positioning the arrow due to the duplicate
|
|
16086
|
-
return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$
|
|
16123
|
+
return visuallyHiddenContentContext.isInside ? null : /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$21b07c8f274aebd5, _extends$G({}, popperScope, arrowProps, {
|
|
16087
16124
|
ref: forwardedRef
|
|
16088
16125
|
}));
|
|
16089
16126
|
});
|
|
@@ -49130,6 +49167,76 @@ var RunDetails = function (_a) {
|
|
|
49130
49167
|
var css_248z = ":root {\n --background: #FFFAEE;\n --primary: #1890ff;\n --primary2: #40a9ff;\n --primary1: #cceefe;\n --primary0: #e6f7ff;\n --secondary: #fff566;\n --primary3: #000;\n --success: #46A758;\n --warning: #F76809;\n --danger: #FF4616;\n /* radix-ui/colors */\n --slate1: hsl(206, 30.0%, 98.8%);\n --slate2: hsl(210, 16.7%, 97.6%);\n --slate3: hsl(209, 13.3%, 95.3%);\n --slate4: hsl(209, 12.2%, 93.2%);\n --slate5: hsl(208, 11.7%, 91.1%);\n --slate6: hsl(208, 11.3%, 88.9%);\n --slate7: hsl(207, 11.1%, 85.9%);\n --slate8: hsl(205, 10.7%, 78.0%);\n --slate9: hsl(206, 6.0%, 56.1%);\n --slate10: hsl(206, 5.8%, 52.3%);\n --slate11: hsl(206, 6.0%, 43.5%);\n --slate12: hsl(206, 24.0%, 9.0%);\n}\n\n@keyframes spin {\n from {\n transform: rotate(0);\n }\n to {\n transform: rotate(360deg);\n }\n}\n.spin {\n animation: spin 1s linear 0s infinite;\n}\n\n@keyframes Animation {\n 0% {\n background-position: 200%;\n }\n 50% {\n background-position: 100%;\n }\n 100% {\n background-position: 0%;\n }\n}\n.loading {\n background: linear-gradient(45deg, transparent, var(--primary), 12%, transparent);\n background-size: 200%;\n animation: Animation 3s ease infinite;\n}\n\n@keyframes open {\n from {\n height: 0;\n }\n to {\n height: var(--radix-collapsible-content-height);\n }\n}\n@keyframes close {\n from {\n height: var(--radix-collapsible-content-height);\n }\n to {\n height: 0;\n }\n}\n.collapse-content {\n overflow: hidden;\n font-size: inherit;\n color: inherit;\n}\n\n.collapse-content[data-state=open] {\n animation: open 300ms ease-out;\n}\n\n.collapse-content[data-state=closed] {\n animation: close 300ms ease-out;\n}\n\n.run-count {\n grid-area: runcount;\n font-size: 1rem;\n font-weight: 500;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.run-status {\n grid-area: runstatus;\n text-align: right !important;\n font-size: 1rem;\n white-space: nowrap;\n}\n\n.run-details {\n grid-area: rundetails;\n font-size: 0.9rem;\n}\n\n.study-run-container {\n display: grid;\n grid-template-areas: \"runcount runcount runcount runstatus runstatus runstatus\" \"rundetails rundetails rundetails rundetails rundetails rundetails\";\n gap: 0.35rem;\n border: 0.1rem solid;\n align-items: center;\n padding: 0.75rem;\n transition: box-shadow 0.3s ease 0s, border-color 0.3s ease 0s;\n grid-template-rows: auto auto auto;\n border-radius: 6px;\n line-height: 1.5;\n}\n\n.study-run-container:hover {\n cursor: pointer;\n box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 2px -2px, rgba(0, 0, 0, 0.12) 0px 3px 6px 0px, rgba(0, 0, 0, 0.09) 0px 5px 12px 4px;\n}\n\n.run-navigator {\n display: grid;\n grid-template-columns: min-content auto min-content;\n grid-auto-rows: auto;\n align-items: center;\n grid-gap: 1rem;\n}";
|
|
49131
49168
|
styleInject(css_248z);
|
|
49132
49169
|
|
|
49170
|
+
var RunRow = function (_a) {
|
|
49171
|
+
var _b, _c;
|
|
49172
|
+
var projectOwner = _a.projectOwner, projectName = _a.projectName, run = _a.run, index = _a.index, client = _a.client, authUser = _a.authUser, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
|
|
49173
|
+
var statusMap = useRuns(client).statusMap;
|
|
49174
|
+
var _d = React.useState(false), open = _d[0], setOpen = _d[1];
|
|
49175
|
+
return React__default["default"].createElement("div", { style: __assign(__assign({}, style), { margin: '10px 0 0 0', borderColor: (_c = (_b = statusMap[run.status.status]) === null || _b === void 0 ? void 0 : _b.color) !== null && _c !== void 0 ? _c : '#d0d7de' }), key: run.id, tabIndex: 0, role: 'button', onClick: function () { return setOpen(function (p) { return !p; }); }, className: 'study-run-container' },
|
|
49176
|
+
React__default["default"].createElement("div", { className: 'run-count' },
|
|
49177
|
+
"# ",
|
|
49178
|
+
index),
|
|
49179
|
+
React__default["default"].createElement("div", { className: 'run-status' },
|
|
49180
|
+
run.status.status,
|
|
49181
|
+
" ", "".concat(run.meta.progress.completed, "/").concat(run.meta.progress.total, " steps")),
|
|
49182
|
+
open && React__default["default"].createElement("div", { className: 'run-details' },
|
|
49183
|
+
React__default["default"].createElement(RunDetails, { projectOwner: projectOwner, projectName: projectName, run: run, authUser: authUser, client: client, getFileCard: getFileCard, getFolderCard: getFolderCard, style: style })));
|
|
49184
|
+
};
|
|
49185
|
+
|
|
49186
|
+
var RunTable = function (_a) {
|
|
49187
|
+
var projectOwner = _a.projectOwner, projectName = _a.projectName, study = _a.study, client = _a.client, authUser = _a.authUser, style = _a.style, getFileCard = _a.getFileCard, getFolderCard = _a.getFolderCard;
|
|
49188
|
+
var listRuns = useRuns(client).listRuns;
|
|
49189
|
+
var _b = React.useState(1), page = _b[0], setPage = _b[1];
|
|
49190
|
+
var _c = React.useState(20), perPage = _c[0], setPerPage = _c[1];
|
|
49191
|
+
var _d = useSWR(authUser && study ? [projectOwner, projectName, study.id,
|
|
49192
|
+
page, perPage] : undefined, listRuns, {
|
|
49193
|
+
revalidateOnFocus: false,
|
|
49194
|
+
refreshInterval: study.status.finished_at ? 5000 : undefined,
|
|
49195
|
+
errorRetryCount: 3,
|
|
49196
|
+
}), data = _d.data, error = _d.error;
|
|
49197
|
+
if (error)
|
|
49198
|
+
return React__default["default"].createElement("h1", null, "Error");
|
|
49199
|
+
if (!data)
|
|
49200
|
+
return React__default["default"].createElement("div", null,
|
|
49201
|
+
React__default["default"].createElement("span", { style: { float: 'left', margin: '0 5px 0 0' } },
|
|
49202
|
+
React__default["default"].createElement(Logo, null)),
|
|
49203
|
+
" Loading ...");
|
|
49204
|
+
var btnStyle = {
|
|
49205
|
+
all: 'unset',
|
|
49206
|
+
cursor: 'pointer',
|
|
49207
|
+
margin: '10px 0 0 0'
|
|
49208
|
+
};
|
|
49209
|
+
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
49210
|
+
React__default["default"].createElement("div", null,
|
|
49211
|
+
data.resources.map(function (item, index) { return (React__default["default"].createElement(RunRow, { key: "run-".concat(item.id), projectOwner: projectOwner, projectName: projectName, run: item, index: index + (page - 1) * perPage, client: client, authUser: authUser, style: style, getFileCard: getFileCard, getFolderCard: getFolderCard })); }),
|
|
49212
|
+
React__default["default"].createElement("div", { className: 'run-navigator' },
|
|
49213
|
+
React__default["default"].createElement("div", null,
|
|
49214
|
+
React__default["default"].createElement("button", { style: btnStyle, disabled: !data.resources, onClick: function () { return setPage(function (p) {
|
|
49215
|
+
return p - 1 > 1 ? p - 1 : 1;
|
|
49216
|
+
}); } },
|
|
49217
|
+
React__default["default"].createElement(ChevronLeft$1, { size: 24, color: page - 1 < 1 ? 'gray' : '#000' }))),
|
|
49218
|
+
React__default["default"].createElement("div", { style: { margin: '10px auto 0 auto' } },
|
|
49219
|
+
React__default["default"].createElement("input", { onChange: function (e) {
|
|
49220
|
+
var val = parseInt(e.target.value);
|
|
49221
|
+
if (val > 100)
|
|
49222
|
+
val = 100; // Max 100
|
|
49223
|
+
if (!val)
|
|
49224
|
+
val = 1; // Min 1
|
|
49225
|
+
setTimeout(function () {
|
|
49226
|
+
setPerPage(val);
|
|
49227
|
+
}, 3000); // Refresh after 3s
|
|
49228
|
+
}, style: {
|
|
49229
|
+
padding: '5px 5px',
|
|
49230
|
+
borderRadius: '6px',
|
|
49231
|
+
width: '100px',
|
|
49232
|
+
fontSize: '1rem',
|
|
49233
|
+
border: '1px solid rgba(0, 0, 0, 0.125)',
|
|
49234
|
+
}, type: 'number', min: 1, max: data.total_count, defaultValue: perPage })),
|
|
49235
|
+
React__default["default"].createElement("div", null,
|
|
49236
|
+
React__default["default"].createElement("button", { style: btnStyle, disabled: !data.next_page, onClick: function () { return setPage(function (p) { return p + 1; }); } },
|
|
49237
|
+
React__default["default"].createElement(ChevronRight$1, { size: 24, color: !data.next_page ? 'gray' : '#000' })))))));
|
|
49238
|
+
};
|
|
49239
|
+
|
|
49133
49240
|
exports.APIClient = APIClient;
|
|
49134
49241
|
exports.AuthUser = AuthUser;
|
|
49135
49242
|
exports.Avatar = Avatar;
|
|
@@ -49153,6 +49260,7 @@ exports.RadioList = RadioList;
|
|
|
49153
49260
|
exports.RecipeInputsForm = RecipeInputsForm;
|
|
49154
49261
|
exports.RunCard = RunCard;
|
|
49155
49262
|
exports.RunDetails = RunDetails;
|
|
49263
|
+
exports.RunTable = RunTable;
|
|
49156
49264
|
exports.SelectAccount = SelectAccount;
|
|
49157
49265
|
exports.SelectCloudArtifacts = SelectCloudArtifacts;
|
|
49158
49266
|
exports.SelectLocalArtifacts = SelectLocalArtifacts;
|