@helpdice/ui 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CircularProgress/index.js +6 -6
- package/dist/Placeholder/index.js +41 -41
- package/dist/auto-complete/index.js +60 -60
- package/dist/avatar/index.js +28 -28
- package/dist/badge/index.js +27 -27
- package/dist/breadcrumbs/index.js +34 -34
- package/dist/button/index.js +42 -42
- package/dist/button-dropdown/index.js +34 -34
- package/dist/button-group/index.js +25 -25
- package/dist/capacity/index.js +26 -26
- package/dist/card/index.js +44 -44
- package/dist/checkbox/index.js +30 -30
- package/dist/code/index.js +27 -27
- package/dist/col/index.js +8 -8
- package/dist/collapse/index.js +30 -30
- package/dist/css-baseline/index.js +6 -6
- package/dist/description/index.js +26 -26
- package/dist/display/index.js +26 -26
- package/dist/divider/index.js +26 -26
- package/dist/dot/index.js +25 -25
- package/dist/drawer/index.js +53 -53
- package/dist/fieldset/index.js +33 -33
- package/dist/form/FormWrapper.d.ts +7 -7
- package/dist/form/connect.d.ts +1 -0
- package/dist/grid/index.js +33 -33
- package/dist/image/index.js +37 -37
- package/dist/index.js +732 -762
- package/dist/input/index.js +40 -40
- package/dist/keyboard/index.js +28 -28
- package/dist/link/index.js +29 -29
- package/dist/loading/index.js +26 -26
- package/dist/modal/index.js +75 -75
- package/dist/note/index.js +27 -27
- package/dist/page/index.js +30 -30
- package/dist/pagination/index.js +27 -27
- package/dist/popover/index.js +57 -57
- package/dist/progress/index.js +29 -29
- package/dist/radio/index.js +30 -30
- package/dist/rating/index.js +29 -29
- package/dist/row/index.js +11 -11
- package/dist/search-bar/index.js +1826 -61
- package/dist/select/index.js +60 -60
- package/dist/slider/index.js +35 -35
- package/dist/snippet/index.js +30 -30
- package/dist/spacer/index.js +25 -25
- package/dist/spinner/index.js +24 -24
- package/dist/table/index.js +8519 -8540
- package/dist/table/table-head.d.ts +0 -2
- package/dist/table/table.d.ts +0 -1
- package/dist/tabs/index.js +39 -39
- package/dist/tag/index.js +26 -26
- package/dist/text/index.js +40 -40
- package/dist/textarea/index.js +29 -29
- package/dist/themes/index.js +2 -2
- package/dist/toggle/index.js +27 -27
- package/dist/tooltip/index.js +42 -42
- package/dist/tree/index.js +23 -23
- package/dist/ui-provider/index.js +48 -48
- package/dist/use-all-themes/index.js +2 -2
- package/dist/use-body-scroll/index.js +5 -5
- package/dist/use-clipboard/index.js +1 -1
- package/dist/use-current-state/index.js +1 -1
- package/dist/use-input/index.js +1 -1
- package/dist/use-keyboard/index.js +5 -5
- package/dist/use-media-query/index.js +5 -5
- package/dist/use-modal/index.js +1 -1
- package/dist/use-scale/index.js +19 -19
- package/dist/use-tabs/index.js +1 -1
- package/dist/use-theme/index.js +2 -2
- package/dist/use-toasts/index.js +3 -3
- package/dist/user/index.js +36 -36
- package/esm/form/FastField.js +1 -1
- package/esm/form/FormWrapper.d.ts +7 -7
- package/esm/form/FormWrapper.js +2 -2
- package/esm/form/connect.d.ts +1 -0
- package/esm/form/connect.js +2 -1
- package/esm/link/link.js +2 -0
- package/esm/login-with/LoginSocialAmazon/index.js +162 -134
- package/esm/login-with/index.js +2 -0
- package/esm/search-bar/components/index.js +4 -7
- package/esm/table/data-table.js +95 -19
- package/esm/table/table-head.d.ts +0 -2
- package/esm/table/table-head.js +3 -98
- package/esm/table/table.d.ts +0 -1
- package/esm/table/table.js +1 -4
- package/package.json +3 -2
- package/esm/formik-native/src/index.js +0 -12
- package/esm/formik-native/test/blah.test.js +0 -5
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ function _arrayWithoutHoles(r) {
|
|
|
36
36
|
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
37
37
|
}
|
|
38
38
|
function _assertThisInitialized(e) {
|
|
39
|
-
if (
|
|
39
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
40
40
|
return e;
|
|
41
41
|
}
|
|
42
42
|
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
@@ -60,7 +60,7 @@ function _asyncToGenerator(n) {
|
|
|
60
60
|
function _throw(n) {
|
|
61
61
|
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
62
62
|
}
|
|
63
|
-
_next(
|
|
63
|
+
_next(void 0);
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
}
|
|
@@ -250,7 +250,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
250
250
|
}
|
|
251
251
|
function _possibleConstructorReturn(t, e) {
|
|
252
252
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
253
|
-
if (
|
|
253
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
254
254
|
return _assertThisInitialized(t);
|
|
255
255
|
}
|
|
256
256
|
function _regeneratorRuntime() {
|
|
@@ -453,7 +453,7 @@ function _regeneratorRuntime() {
|
|
|
453
453
|
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
454
454
|
return this;
|
|
455
455
|
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
456
|
-
|
|
456
|
+
void 0 === i && (i = Promise);
|
|
457
457
|
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
458
458
|
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
459
459
|
return t.done ? t.value : a.next();
|
|
@@ -568,8 +568,8 @@ function _toConsumableArray(r) {
|
|
|
568
568
|
function _toPrimitive(t, r) {
|
|
569
569
|
if ("object" != typeof t || !t) return t;
|
|
570
570
|
var e = t[Symbol.toPrimitive];
|
|
571
|
-
if (
|
|
572
|
-
var i = e.call(t, r
|
|
571
|
+
if (void 0 !== e) {
|
|
572
|
+
var i = e.call(t, r);
|
|
573
573
|
if ("object" != typeof i) return i;
|
|
574
574
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
575
575
|
}
|
|
@@ -592,7 +592,7 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
592
592
|
if (r) {
|
|
593
593
|
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
594
594
|
var t = {}.toString.call(r).slice(8, -1);
|
|
595
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) :
|
|
595
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
|
|
@@ -628,7 +628,7 @@ function requireIndex () {
|
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
631
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
631
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
632
632
|
return Constructor;
|
|
633
633
|
}
|
|
634
634
|
var isProd = typeof process !== "undefined" && process.env && process.env.NODE_ENV === "production";
|
|
@@ -637,7 +637,7 @@ function requireIndex () {
|
|
|
637
637
|
};
|
|
638
638
|
var StyleSheet = /*#__PURE__*/ function() {
|
|
639
639
|
function StyleSheet(param) {
|
|
640
|
-
var ref = param ===
|
|
640
|
+
var ref = param === void 0 ? {} : param, _name = ref.name, name = _name === void 0 ? "stylesheet" : _name, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? isProd : _optimizeForSpeed;
|
|
641
641
|
invariant$1(isString(name), "`name` must be a string");
|
|
642
642
|
this._name = name;
|
|
643
643
|
this._deletedRulePlaceholder = "#" + name + "-deleted-rule____{}";
|
|
@@ -895,7 +895,7 @@ function requireIndex () {
|
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
function mapRulesToStyle(cssRules, options) {
|
|
898
|
-
if (options ===
|
|
898
|
+
if (options === void 0) options = {};
|
|
899
899
|
return cssRules.map(function(args) {
|
|
900
900
|
var id = args[0];
|
|
901
901
|
var css = args[1];
|
|
@@ -912,7 +912,7 @@ function requireIndex () {
|
|
|
912
912
|
}
|
|
913
913
|
var StyleSheetRegistry = /*#__PURE__*/ function() {
|
|
914
914
|
function StyleSheetRegistry(param) {
|
|
915
|
-
var ref = param ===
|
|
915
|
+
var ref = param === void 0 ? {} : param, _styleSheet = ref.styleSheet, styleSheet = _styleSheet === void 0 ? null : _styleSheet, _optimizeForSpeed = ref.optimizeForSpeed, optimizeForSpeed = _optimizeForSpeed === void 0 ? false : _optimizeForSpeed;
|
|
916
916
|
this._sheet = styleSheet || new StyleSheet({
|
|
917
917
|
name: "styled-jsx",
|
|
918
918
|
optimizeForSpeed: optimizeForSpeed
|
|
@@ -1400,7 +1400,7 @@ var InputBlockLabel = /*#__PURE__*/React$1.memo(InputBlockLabelComponent);
|
|
|
1400
1400
|
var InputIconComponent = function InputIconComponent(_ref) {
|
|
1401
1401
|
var icon = _ref.icon,
|
|
1402
1402
|
_ref$clickable = _ref.clickable,
|
|
1403
|
-
clickable = _ref$clickable ===
|
|
1403
|
+
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
|
1404
1404
|
onClick = _ref.onClick;
|
|
1405
1405
|
return /*#__PURE__*/React$1.createElement("span", {
|
|
1406
1406
|
onClick: onClick,
|
|
@@ -1660,7 +1660,7 @@ var isChildElement = function isChildElement(parent, child) {
|
|
|
1660
1660
|
};
|
|
1661
1661
|
var isGeistElement = function isGeistElement(el) {
|
|
1662
1662
|
if (!el) return false;
|
|
1663
|
-
if (el !== null && el !==
|
|
1663
|
+
if (el !== null && el !== void 0 && el.dataset && el !== null && el !== void 0 && el.dataset['helpdice']) return true;
|
|
1664
1664
|
el.attributes.getNamedItem('data-helpdice');
|
|
1665
1665
|
return !!el.attributes.getNamedItem('data-helpdice');
|
|
1666
1666
|
};
|
|
@@ -1762,9 +1762,9 @@ var withScale = function withScale(Render) {
|
|
|
1762
1762
|
margin = props.margin,
|
|
1763
1763
|
padding = props.padding,
|
|
1764
1764
|
_props$unit = props.unit,
|
|
1765
|
-
unit = _props$unit ===
|
|
1765
|
+
unit = _props$unit === void 0 ? layout.unit : _props$unit,
|
|
1766
1766
|
_props$scale = props.scale,
|
|
1767
|
-
scale = _props$scale ===
|
|
1767
|
+
scale = _props$scale === void 0 ? 1 : _props$scale;
|
|
1768
1768
|
var makeScaleHandler = function makeScaleHandler(attrValue) {
|
|
1769
1769
|
return function (scale1x, defaultValue) {
|
|
1770
1770
|
// 0 means disable scale and the default value is 0
|
|
@@ -1785,20 +1785,20 @@ var withScale = function withScale(Render) {
|
|
|
1785
1785
|
var value = {
|
|
1786
1786
|
unit: unit,
|
|
1787
1787
|
SCALES: {
|
|
1788
|
-
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !==
|
|
1789
|
-
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !==
|
|
1790
|
-
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !==
|
|
1791
|
-
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !==
|
|
1792
|
-
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !==
|
|
1793
|
-
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !==
|
|
1794
|
-
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !==
|
|
1795
|
-
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !==
|
|
1796
|
-
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !==
|
|
1797
|
-
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !==
|
|
1798
|
-
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !==
|
|
1799
|
-
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !==
|
|
1800
|
-
width: makeScaleHandler(width !== null && width !==
|
|
1801
|
-
height: makeScaleHandler(height !== null && height !==
|
|
1788
|
+
pt: makeScaleHandler((_ref2 = (_ref3 = paddingTop !== null && paddingTop !== void 0 ? paddingTop : pt) !== null && _ref3 !== void 0 ? _ref3 : py) !== null && _ref2 !== void 0 ? _ref2 : padding),
|
|
1789
|
+
pr: makeScaleHandler((_ref4 = (_ref5 = paddingRight !== null && paddingRight !== void 0 ? paddingRight : pr) !== null && _ref5 !== void 0 ? _ref5 : px) !== null && _ref4 !== void 0 ? _ref4 : padding),
|
|
1790
|
+
pb: makeScaleHandler((_ref6 = (_ref7 = paddingBottom !== null && paddingBottom !== void 0 ? paddingBottom : pb) !== null && _ref7 !== void 0 ? _ref7 : py) !== null && _ref6 !== void 0 ? _ref6 : padding),
|
|
1791
|
+
pl: makeScaleHandler((_ref8 = (_ref9 = paddingLeft !== null && paddingLeft !== void 0 ? paddingLeft : pl) !== null && _ref9 !== void 0 ? _ref9 : px) !== null && _ref8 !== void 0 ? _ref8 : padding),
|
|
1792
|
+
px: makeScaleHandler((_ref10 = (_ref11 = (_ref12 = (_ref13 = px !== null && px !== void 0 ? px : paddingLeft) !== null && _ref13 !== void 0 ? _ref13 : paddingRight) !== null && _ref12 !== void 0 ? _ref12 : pl) !== null && _ref11 !== void 0 ? _ref11 : pr) !== null && _ref10 !== void 0 ? _ref10 : padding),
|
|
1793
|
+
py: makeScaleHandler((_ref14 = (_ref15 = (_ref16 = (_ref17 = py !== null && py !== void 0 ? py : paddingTop) !== null && _ref17 !== void 0 ? _ref17 : paddingBottom) !== null && _ref16 !== void 0 ? _ref16 : pt) !== null && _ref15 !== void 0 ? _ref15 : pb) !== null && _ref14 !== void 0 ? _ref14 : padding),
|
|
1794
|
+
mt: makeScaleHandler((_ref18 = (_ref19 = marginTop !== null && marginTop !== void 0 ? marginTop : mt) !== null && _ref19 !== void 0 ? _ref19 : my) !== null && _ref18 !== void 0 ? _ref18 : margin),
|
|
1795
|
+
mr: makeScaleHandler((_ref20 = (_ref21 = marginRight !== null && marginRight !== void 0 ? marginRight : mr) !== null && _ref21 !== void 0 ? _ref21 : mx) !== null && _ref20 !== void 0 ? _ref20 : margin),
|
|
1796
|
+
mb: makeScaleHandler((_ref22 = (_ref23 = marginBottom !== null && marginBottom !== void 0 ? marginBottom : mb) !== null && _ref23 !== void 0 ? _ref23 : my) !== null && _ref22 !== void 0 ? _ref22 : margin),
|
|
1797
|
+
ml: makeScaleHandler((_ref24 = (_ref25 = marginLeft !== null && marginLeft !== void 0 ? marginLeft : ml) !== null && _ref25 !== void 0 ? _ref25 : mx) !== null && _ref24 !== void 0 ? _ref24 : margin),
|
|
1798
|
+
mx: makeScaleHandler((_ref26 = (_ref27 = (_ref28 = (_ref29 = mx !== null && mx !== void 0 ? mx : marginLeft) !== null && _ref29 !== void 0 ? _ref29 : marginRight) !== null && _ref28 !== void 0 ? _ref28 : ml) !== null && _ref27 !== void 0 ? _ref27 : mr) !== null && _ref26 !== void 0 ? _ref26 : margin),
|
|
1799
|
+
my: makeScaleHandler((_ref30 = (_ref31 = (_ref32 = (_ref33 = my !== null && my !== void 0 ? my : marginTop) !== null && _ref33 !== void 0 ? _ref33 : marginBottom) !== null && _ref32 !== void 0 ? _ref32 : mt) !== null && _ref31 !== void 0 ? _ref31 : mb) !== null && _ref30 !== void 0 ? _ref30 : margin),
|
|
1800
|
+
width: makeScaleHandler(width !== null && width !== void 0 ? width : w),
|
|
1801
|
+
height: makeScaleHandler(height !== null && height !== void 0 ? height : h),
|
|
1802
1802
|
font: makeScaleHandler(font)
|
|
1803
1803
|
},
|
|
1804
1804
|
getScaleProps: generateGetScaleProps(props),
|
|
@@ -1825,35 +1825,35 @@ var InputComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
|
1825
1825
|
var label = _ref.label,
|
|
1826
1826
|
labelRight = _ref.labelRight,
|
|
1827
1827
|
_ref$type = _ref.type,
|
|
1828
|
-
type = _ref$type ===
|
|
1828
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
1829
1829
|
error = _ref.error,
|
|
1830
1830
|
_ref$htmlType = _ref.htmlType,
|
|
1831
|
-
htmlType = _ref$htmlType ===
|
|
1831
|
+
htmlType = _ref$htmlType === void 0 ? 'text' : _ref$htmlType,
|
|
1832
1832
|
icon = _ref.icon,
|
|
1833
1833
|
iconRight = _ref.iconRight,
|
|
1834
1834
|
_ref$iconClickable = _ref.iconClickable,
|
|
1835
|
-
iconClickable = _ref$iconClickable ===
|
|
1835
|
+
iconClickable = _ref$iconClickable === void 0 ? false : _ref$iconClickable,
|
|
1836
1836
|
onIconClick = _ref.onIconClick,
|
|
1837
1837
|
_ref$initialValue = _ref.initialValue,
|
|
1838
|
-
initialValue = _ref$initialValue ===
|
|
1838
|
+
initialValue = _ref$initialValue === void 0 ? '' : _ref$initialValue,
|
|
1839
1839
|
onChange = _ref.onChange,
|
|
1840
1840
|
_ref$readOnly = _ref.readOnly,
|
|
1841
|
-
readOnly = _ref$readOnly ===
|
|
1841
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
1842
1842
|
value = _ref.value,
|
|
1843
1843
|
onClearClick = _ref.onClearClick,
|
|
1844
1844
|
_ref$clearable = _ref.clearable,
|
|
1845
|
-
clearable = _ref$clearable ===
|
|
1845
|
+
clearable = _ref$clearable === void 0 ? false : _ref$clearable,
|
|
1846
1846
|
_ref$className = _ref.className,
|
|
1847
|
-
className = _ref$className ===
|
|
1847
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1848
1848
|
onBlur = _ref.onBlur,
|
|
1849
1849
|
onFocus = _ref.onFocus,
|
|
1850
1850
|
_ref$autoComplete = _ref.autoComplete,
|
|
1851
|
-
autoComplete = _ref$autoComplete ===
|
|
1851
|
+
autoComplete = _ref$autoComplete === void 0 ? 'off' : _ref$autoComplete,
|
|
1852
1852
|
_ref$placeholder = _ref.placeholder,
|
|
1853
|
-
placeholder = _ref$placeholder ===
|
|
1853
|
+
placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
|
|
1854
1854
|
children = _ref.children,
|
|
1855
1855
|
_ref$disabled = _ref.disabled,
|
|
1856
|
-
disabled = _ref$disabled ===
|
|
1856
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1857
1857
|
props = _objectWithoutProperties(_ref, _excluded$1o);
|
|
1858
1858
|
var theme = useTheme();
|
|
1859
1859
|
var _useScale = useScale(),
|
|
@@ -2006,22 +2006,22 @@ var _excluded$1n = ["type", "disabled", "readOnly", "onFocus", "onBlur", "classN
|
|
|
2006
2006
|
tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
|
|
2007
2007
|
var TextareaComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
2008
2008
|
var _ref$type = _ref.type,
|
|
2009
|
-
type = _ref$type ===
|
|
2009
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
2010
2010
|
_ref$disabled = _ref.disabled,
|
|
2011
|
-
disabled = _ref$disabled ===
|
|
2011
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
2012
2012
|
_ref$readOnly = _ref.readOnly,
|
|
2013
|
-
readOnly = _ref$readOnly ===
|
|
2013
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
2014
2014
|
onFocus = _ref.onFocus,
|
|
2015
2015
|
onBlur = _ref.onBlur,
|
|
2016
2016
|
_ref$className = _ref.className,
|
|
2017
|
-
className = _ref$className ===
|
|
2017
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2018
2018
|
_ref$initialValue = _ref.initialValue,
|
|
2019
|
-
initialValue = _ref$initialValue ===
|
|
2019
|
+
initialValue = _ref$initialValue === void 0 ? '' : _ref$initialValue,
|
|
2020
2020
|
onChange = _ref.onChange,
|
|
2021
2021
|
value = _ref.value,
|
|
2022
2022
|
placeholder = _ref.placeholder,
|
|
2023
2023
|
_ref$resize = _ref.resize,
|
|
2024
|
-
resize = _ref$resize ===
|
|
2024
|
+
resize = _ref$resize === void 0 ? 'none' : _ref$resize,
|
|
2025
2025
|
props = _objectWithoutProperties(_ref, _excluded$1n);
|
|
2026
2026
|
var theme = useTheme();
|
|
2027
2027
|
var _useScale = useScale(),
|
|
@@ -2292,17 +2292,17 @@ var _excluded$1l = ["children", "className", "visible", "enterTime", "leaveTime"
|
|
|
2292
2292
|
var CssTransition = function CssTransition(_ref) {
|
|
2293
2293
|
var children = _ref.children,
|
|
2294
2294
|
_ref$className = _ref.className,
|
|
2295
|
-
className = _ref$className ===
|
|
2295
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2296
2296
|
_ref$visible = _ref.visible,
|
|
2297
|
-
visible = _ref$visible ===
|
|
2297
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
2298
2298
|
_ref$enterTime = _ref.enterTime,
|
|
2299
|
-
enterTime = _ref$enterTime ===
|
|
2299
|
+
enterTime = _ref$enterTime === void 0 ? 60 : _ref$enterTime,
|
|
2300
2300
|
_ref$leaveTime = _ref.leaveTime,
|
|
2301
|
-
leaveTime = _ref$leaveTime ===
|
|
2301
|
+
leaveTime = _ref$leaveTime === void 0 ? 60 : _ref$leaveTime,
|
|
2302
2302
|
_ref$clearTime = _ref.clearTime,
|
|
2303
|
-
clearTime = _ref$clearTime ===
|
|
2303
|
+
clearTime = _ref$clearTime === void 0 ? 60 : _ref$clearTime,
|
|
2304
2304
|
_ref$name = _ref.name,
|
|
2305
|
-
name = _ref$name ===
|
|
2305
|
+
name = _ref$name === void 0 ? 'transition' : _ref$name,
|
|
2306
2306
|
props = _objectWithoutProperties(_ref, _excluded$1l);
|
|
2307
2307
|
var _useState = React$1.useState(''),
|
|
2308
2308
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -2375,7 +2375,7 @@ var useDOMObserver = function useDOMObserver(ref) {
|
|
|
2375
2375
|
var unmount = false;
|
|
2376
2376
|
var done = function done() {
|
|
2377
2377
|
if (unmount) return;
|
|
2378
|
-
callback.apply(
|
|
2378
|
+
callback.apply(void 0, arguments);
|
|
2379
2379
|
};
|
|
2380
2380
|
var observer = new MutationObserver(done);
|
|
2381
2381
|
observer.observe(ref.current, config);
|
|
@@ -2446,12 +2446,12 @@ var getRefRect = function getRefRect(ref, getContainer) {
|
|
|
2446
2446
|
};
|
|
2447
2447
|
var getEventRect = function getEventRect(event, getContainer) {
|
|
2448
2448
|
var _event$target;
|
|
2449
|
-
var rect = event === null || event ===
|
|
2449
|
+
var rect = event === null || event === void 0 || (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.getBoundingClientRect();
|
|
2450
2450
|
if (!rect) return defaultRect$2;
|
|
2451
2451
|
return getRectFromDOMWithContainer(rect, getContainer);
|
|
2452
2452
|
};
|
|
2453
2453
|
var isRefTarget = function isRefTarget(eventOrRef) {
|
|
2454
|
-
return typeof (eventOrRef === null || eventOrRef ===
|
|
2454
|
+
return typeof (eventOrRef === null || eventOrRef === void 0 ? void 0 : eventOrRef.target) === 'undefined';
|
|
2455
2455
|
};
|
|
2456
2456
|
var useRect = function useRect(initialState) {
|
|
2457
2457
|
var _useState = React$1.useState(initialState || defaultRect$2),
|
|
@@ -2557,9 +2557,9 @@ var AutoCompleteDropdown = function AutoCompleteDropdown(_ref) {
|
|
|
2557
2557
|
var children = _ref.children,
|
|
2558
2558
|
visible = _ref.visible,
|
|
2559
2559
|
_ref$className = _ref.className,
|
|
2560
|
-
className = _ref$className ===
|
|
2560
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2561
2561
|
_ref$dropdownStyle = _ref.dropdownStyle,
|
|
2562
|
-
dropdownStyle = _ref$dropdownStyle ===
|
|
2562
|
+
dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
|
|
2563
2563
|
disableMatchWidth = _ref.disableMatchWidth,
|
|
2564
2564
|
getPopupContainer = _ref.getPopupContainer;
|
|
2565
2565
|
var theme = useTheme();
|
|
@@ -2613,9 +2613,9 @@ var AutoCompleteSearch = withScale(AutoCompleteSearchComponent);
|
|
|
2613
2613
|
var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
2614
2614
|
var children = _ref.children,
|
|
2615
2615
|
_ref$hidden = _ref.hidden,
|
|
2616
|
-
hidden = _ref$hidden ===
|
|
2616
|
+
hidden = _ref$hidden === void 0 ? false : _ref$hidden,
|
|
2617
2617
|
_ref$className = _ref.className,
|
|
2618
|
-
className = _ref$className ===
|
|
2618
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
2619
2619
|
if (hidden) return null;
|
|
2620
2620
|
return /*#__PURE__*/React$1.createElement(AutoCompleteSearch, {
|
|
2621
2621
|
className: className
|
|
@@ -2637,12 +2637,12 @@ var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
|
2637
2637
|
var LoadingComponent = function LoadingComponent(_ref) {
|
|
2638
2638
|
var children = _ref.children,
|
|
2639
2639
|
_ref$type = _ref.type,
|
|
2640
|
-
type = _ref$type ===
|
|
2640
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
2641
2641
|
color = _ref.color,
|
|
2642
2642
|
_ref$className = _ref.className,
|
|
2643
|
-
className = _ref$className ===
|
|
2643
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
2644
2644
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
2645
|
-
spaceRatio = _ref$spaceRatio ===
|
|
2645
|
+
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
2646
2646
|
props = _objectWithoutProperties(_ref, _excluded$1k);
|
|
2647
2647
|
var theme = useTheme();
|
|
2648
2648
|
var _useScale = useScale(),
|
|
@@ -12593,9 +12593,9 @@ var getSearchIcon = function getSearchIcon(searching) {
|
|
|
12593
12593
|
};
|
|
12594
12594
|
var AutoCompleteComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, userRef) {
|
|
12595
12595
|
var _ref$options = _ref.options,
|
|
12596
|
-
options = _ref$options ===
|
|
12596
|
+
options = _ref$options === void 0 ? [] : _ref$options,
|
|
12597
12597
|
_ref$initialValue = _ref.initialValue,
|
|
12598
|
-
customInitialValue = _ref$initialValue ===
|
|
12598
|
+
customInitialValue = _ref$initialValue === void 0 ? '' : _ref$initialValue,
|
|
12599
12599
|
onSelect = _ref.onSelect,
|
|
12600
12600
|
onSearch = _ref.onSearch,
|
|
12601
12601
|
onChange = _ref.onChange,
|
|
@@ -12604,15 +12604,15 @@ var AutoCompleteComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, user
|
|
|
12604
12604
|
type = _ref.type,
|
|
12605
12605
|
value = _ref.value,
|
|
12606
12606
|
_ref$clearable = _ref.clearable,
|
|
12607
|
-
clearable = _ref$clearable ===
|
|
12607
|
+
clearable = _ref$clearable === void 0 ? false : _ref$clearable,
|
|
12608
12608
|
_ref$disabled = _ref.disabled,
|
|
12609
|
-
disabled = _ref$disabled ===
|
|
12609
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12610
12610
|
dropdownClassName = _ref.dropdownClassName,
|
|
12611
12611
|
dropdownStyle = _ref.dropdownStyle,
|
|
12612
12612
|
_ref$disableMatchWidt = _ref.disableMatchWidth,
|
|
12613
|
-
disableMatchWidth = _ref$disableMatchWidt ===
|
|
12613
|
+
disableMatchWidth = _ref$disableMatchWidt === void 0 ? false : _ref$disableMatchWidt,
|
|
12614
12614
|
_ref$disableFreeSolo = _ref.disableFreeSolo,
|
|
12615
|
-
disableFreeSolo = _ref$disableFreeSolo ===
|
|
12615
|
+
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
12616
12616
|
getPopupContainer = _ref.getPopupContainer,
|
|
12617
12617
|
props = _objectWithoutProperties(_ref, _excluded$1j);
|
|
12618
12618
|
var resetTimer = React$1.useRef();
|
|
@@ -12770,13 +12770,13 @@ var safeText = function safeText(text) {
|
|
|
12770
12770
|
var AvatarComponent = function AvatarComponent(_ref) {
|
|
12771
12771
|
var src = _ref.src,
|
|
12772
12772
|
_ref$stacked = _ref.stacked,
|
|
12773
|
-
stacked = _ref$stacked ===
|
|
12773
|
+
stacked = _ref$stacked === void 0 ? false : _ref$stacked,
|
|
12774
12774
|
_ref$text = _ref.text,
|
|
12775
|
-
text = _ref$text ===
|
|
12775
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
12776
12776
|
_ref$isSquare = _ref.isSquare,
|
|
12777
|
-
isSquare = _ref$isSquare ===
|
|
12777
|
+
isSquare = _ref$isSquare === void 0 ? false : _ref$isSquare,
|
|
12778
12778
|
_ref$className = _ref.className,
|
|
12779
|
-
className = _ref$className ===
|
|
12779
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12780
12780
|
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
12781
12781
|
var theme = useTheme();
|
|
12782
12782
|
var _useScale = useScale(),
|
|
@@ -12806,7 +12806,7 @@ var Avatar = withScale(AvatarComponent);
|
|
|
12806
12806
|
var AvatarGroupComponent = function AvatarGroupComponent(_ref) {
|
|
12807
12807
|
var count = _ref.count,
|
|
12808
12808
|
_ref$className = _ref.className,
|
|
12809
|
-
className = _ref$className ===
|
|
12809
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12810
12810
|
children = _ref.children;
|
|
12811
12811
|
var theme = useTheme();
|
|
12812
12812
|
var _useScale = useScale(),
|
|
@@ -12840,12 +12840,12 @@ var getBgColor = function getBgColor(type, palette) {
|
|
|
12840
12840
|
};
|
|
12841
12841
|
var BadgeComponent = function BadgeComponent(_ref) {
|
|
12842
12842
|
var _ref$type = _ref.type,
|
|
12843
|
-
type = _ref$type ===
|
|
12843
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
12844
12844
|
_ref$className = _ref.className,
|
|
12845
|
-
className = _ref$className ===
|
|
12845
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
12846
12846
|
children = _ref.children,
|
|
12847
12847
|
_ref$dot = _ref.dot,
|
|
12848
|
-
dot = _ref$dot ===
|
|
12848
|
+
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
12849
12849
|
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
12850
12850
|
var theme = useTheme();
|
|
12851
12851
|
var _useScale = useScale(),
|
|
@@ -12903,7 +12903,7 @@ var getTransform = function getTransform(placement) {
|
|
|
12903
12903
|
var BadgeAnchor = function BadgeAnchor(_ref) {
|
|
12904
12904
|
var children = _ref.children,
|
|
12905
12905
|
_ref$placement = _ref.placement,
|
|
12906
|
-
placement = _ref$placement ===
|
|
12906
|
+
placement = _ref$placement === void 0 ? 'topRight' : _ref$placement;
|
|
12907
12907
|
var _pickChild = pickChild(children, Badge),
|
|
12908
12908
|
_pickChild2 = _slicedToArray(_pickChild, 2),
|
|
12909
12909
|
withoutBadgeChildren = _pickChild2[0],
|
|
@@ -12935,7 +12935,7 @@ Badge.Anchor = BadgeAnchor;
|
|
|
12935
12935
|
var Separator = function Separator(_ref) {
|
|
12936
12936
|
var children = _ref.children,
|
|
12937
12937
|
_ref$className = _ref.className,
|
|
12938
|
-
className = _ref$className ===
|
|
12938
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
12939
12939
|
var _useScale = useScale(),
|
|
12940
12940
|
SCALES = _useScale.SCALES;
|
|
12941
12941
|
var classes = useClasses('separator', className);
|
|
@@ -12986,10 +12986,10 @@ var addColorAlpha = function addColorAlpha(color, alpha) {
|
|
|
12986
12986
|
|
|
12987
12987
|
var BreadcrumbsComponent = function BreadcrumbsComponent(_ref) {
|
|
12988
12988
|
var _ref$separator = _ref.separator,
|
|
12989
|
-
separator = _ref$separator ===
|
|
12989
|
+
separator = _ref$separator === void 0 ? '/' : _ref$separator,
|
|
12990
12990
|
children = _ref.children,
|
|
12991
12991
|
_ref$className = _ref.className,
|
|
12992
|
-
className = _ref$className ===
|
|
12992
|
+
className = _ref$className === void 0 ? '' : _ref$className;
|
|
12993
12993
|
var theme = useTheme();
|
|
12994
12994
|
var _useScale = useScale(),
|
|
12995
12995
|
SCALES = _useScale.SCALES;
|
|
@@ -13050,18 +13050,18 @@ var LinkIcon = /*#__PURE__*/React$1.memo(LinkIconComponent);
|
|
|
13050
13050
|
var _excluded$1g = ["href", "showColor", "underline", "children", "className", "block", "icon"];
|
|
13051
13051
|
var LinkComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
13052
13052
|
var _ref$href = _ref.href,
|
|
13053
|
-
href = _ref$href ===
|
|
13053
|
+
href = _ref$href === void 0 ? '' : _ref$href,
|
|
13054
13054
|
_ref$showColor = _ref.showColor,
|
|
13055
|
-
showColor = _ref$showColor ===
|
|
13055
|
+
showColor = _ref$showColor === void 0 ? false : _ref$showColor,
|
|
13056
13056
|
_ref$underline = _ref.underline,
|
|
13057
|
-
underline = _ref$underline ===
|
|
13057
|
+
underline = _ref$underline === void 0 ? false : _ref$underline,
|
|
13058
13058
|
children = _ref.children,
|
|
13059
13059
|
_ref$className = _ref.className,
|
|
13060
|
-
className = _ref$className ===
|
|
13060
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13061
13061
|
_ref$block = _ref.block,
|
|
13062
|
-
block = _ref$block ===
|
|
13062
|
+
block = _ref$block === void 0 ? false : _ref$block,
|
|
13063
13063
|
_ref$icon = _ref.icon,
|
|
13064
|
-
icon = _ref$icon ===
|
|
13064
|
+
icon = _ref$icon === void 0 ? false : _ref$icon,
|
|
13065
13065
|
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
13066
13066
|
var theme = useTheme();
|
|
13067
13067
|
var _useScale = useScale(),
|
|
@@ -13089,11 +13089,11 @@ var _excluded$1f = ["href", "nextLink", "onClick", "children", "className"];
|
|
|
13089
13089
|
var BreadcrumbsItem = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
13090
13090
|
var href = _ref.href,
|
|
13091
13091
|
_ref$nextLink = _ref.nextLink,
|
|
13092
|
-
nextLink = _ref$nextLink ===
|
|
13092
|
+
nextLink = _ref$nextLink === void 0 ? false : _ref$nextLink,
|
|
13093
13093
|
onClick = _ref.onClick,
|
|
13094
13094
|
children = _ref.children,
|
|
13095
13095
|
_ref$className = _ref.className,
|
|
13096
|
-
className = _ref$className ===
|
|
13096
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13097
13097
|
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
13098
13098
|
var isLink = React$1.useMemo(function () {
|
|
13099
13099
|
return href !== undefined || nextLink;
|
|
@@ -13127,9 +13127,9 @@ Breadcrumbs.Separator = BreadcrumbsSeparator;
|
|
|
13127
13127
|
|
|
13128
13128
|
var ButtonDrip = function ButtonDrip(_ref) {
|
|
13129
13129
|
var _ref$x = _ref.x,
|
|
13130
|
-
x = _ref$x ===
|
|
13130
|
+
x = _ref$x === void 0 ? 0 : _ref$x,
|
|
13131
13131
|
_ref$y = _ref.y,
|
|
13132
|
-
y = _ref$y ===
|
|
13132
|
+
y = _ref$y === void 0 ? 0 : _ref$y,
|
|
13133
13133
|
color = _ref.color,
|
|
13134
13134
|
onCompleted = _ref.onCompleted;
|
|
13135
13135
|
var dripRef = React$1.useRef(null);
|
|
@@ -13194,11 +13194,11 @@ ButtonLoading.displayName = 'GeistButtonLoading';
|
|
|
13194
13194
|
var _excluded$1e = ["isRight", "isSingle", "children", "className"];
|
|
13195
13195
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
13196
13196
|
var _ref$isRight = _ref.isRight,
|
|
13197
|
-
isRight = _ref$isRight ===
|
|
13197
|
+
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
13198
13198
|
isSingle = _ref.isSingle,
|
|
13199
13199
|
children = _ref.children,
|
|
13200
13200
|
_ref$className = _ref.className,
|
|
13201
|
-
className = _ref$className ===
|
|
13201
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13202
13202
|
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
13203
13203
|
var classes = useClasses('icon', {
|
|
13204
13204
|
right: isRight,
|
|
@@ -13333,7 +13333,7 @@ var getButtonColors = function getButtonColors(palette, props) {
|
|
|
13333
13333
|
* Color['success'] === Color['success-light']
|
|
13334
13334
|
* Color['warning'] === Color['warning-light']
|
|
13335
13335
|
*/
|
|
13336
|
-
var withoutLightType = type === null || type ===
|
|
13336
|
+
var withoutLightType = type === null || type === void 0 ? void 0 : type.replace('-light', '');
|
|
13337
13337
|
var defaultColor = colors["default"];
|
|
13338
13338
|
if (ghost) return getButtonGhostColors(palette, withoutLightType) || defaultColor;
|
|
13339
13339
|
return colors[withoutLightType] || defaultColor;
|
|
@@ -13472,27 +13472,27 @@ var ButtonComponent = /*#__PURE__*/React$1.forwardRef(function (btnProps, ref) {
|
|
|
13472
13472
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
13473
13473
|
var children = filteredProps.children,
|
|
13474
13474
|
_filteredProps$disabl = filteredProps.disabled,
|
|
13475
|
-
disabled = _filteredProps$disabl ===
|
|
13475
|
+
disabled = _filteredProps$disabl === void 0 ? false : _filteredProps$disabl;
|
|
13476
13476
|
filteredProps.type;
|
|
13477
13477
|
var _filteredProps$loadin = filteredProps.loading,
|
|
13478
|
-
loading = _filteredProps$loadin ===
|
|
13478
|
+
loading = _filteredProps$loadin === void 0 ? false : _filteredProps$loadin,
|
|
13479
13479
|
_filteredProps$shadow = filteredProps.shadow,
|
|
13480
|
-
shadow = _filteredProps$shadow ===
|
|
13480
|
+
shadow = _filteredProps$shadow === void 0 ? false : _filteredProps$shadow,
|
|
13481
13481
|
_filteredProps$ghost = filteredProps.ghost,
|
|
13482
|
-
ghost = _filteredProps$ghost ===
|
|
13482
|
+
ghost = _filteredProps$ghost === void 0 ? false : _filteredProps$ghost,
|
|
13483
13483
|
_filteredProps$effect = filteredProps.effect,
|
|
13484
|
-
effect = _filteredProps$effect ===
|
|
13484
|
+
effect = _filteredProps$effect === void 0 ? true : _filteredProps$effect,
|
|
13485
13485
|
_filteredProps$round = filteredProps.round,
|
|
13486
|
-
round = _filteredProps$round ===
|
|
13486
|
+
round = _filteredProps$round === void 0 ? false : _filteredProps$round,
|
|
13487
13487
|
onClick = filteredProps.onClick,
|
|
13488
13488
|
_filteredProps$auto = filteredProps.auto,
|
|
13489
|
-
auto = _filteredProps$auto ===
|
|
13489
|
+
auto = _filteredProps$auto === void 0 ? false : _filteredProps$auto,
|
|
13490
13490
|
icon = filteredProps.icon,
|
|
13491
13491
|
_filteredProps$htmlTy = filteredProps.htmlType,
|
|
13492
|
-
htmlType = _filteredProps$htmlTy ===
|
|
13492
|
+
htmlType = _filteredProps$htmlTy === void 0 ? 'button' : _filteredProps$htmlTy,
|
|
13493
13493
|
iconRight = filteredProps.iconRight,
|
|
13494
13494
|
_filteredProps$classN = filteredProps.className,
|
|
13495
|
-
className = _filteredProps$classN ===
|
|
13495
|
+
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
13496
13496
|
filteredProps.crossOrigin;
|
|
13497
13497
|
var props = _objectWithoutProperties(filteredProps, _excluded$1d);
|
|
13498
13498
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
@@ -13565,12 +13565,12 @@ var Button = withScale(ButtonComponent);
|
|
|
13565
13565
|
|
|
13566
13566
|
var CompactButton = function CompactButton(_ref) {
|
|
13567
13567
|
var _ref$to = _ref.to,
|
|
13568
|
-
to = _ref$to ===
|
|
13568
|
+
to = _ref$to === void 0 ? '/' : _ref$to,
|
|
13569
13569
|
children = _ref.children,
|
|
13570
13570
|
iconRight = _ref.iconRight,
|
|
13571
13571
|
icon = _ref.icon,
|
|
13572
13572
|
_ref$scale = _ref.scale,
|
|
13573
|
-
scale = _ref$scale ===
|
|
13573
|
+
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
13574
13574
|
type = _ref.type,
|
|
13575
13575
|
style = _ref.style,
|
|
13576
13576
|
a = _ref.a,
|
|
@@ -13750,11 +13750,11 @@ var _excluded$1c = ["children", "onClick", "className", "main", "icon", "type"];
|
|
|
13750
13750
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
13751
13751
|
var children = _ref.children,
|
|
13752
13752
|
_ref$onClick = _ref.onClick,
|
|
13753
|
-
onClick = _ref$onClick ===
|
|
13753
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
13754
13754
|
_ref$className = _ref.className,
|
|
13755
|
-
className = _ref$className ===
|
|
13755
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13756
13756
|
_ref$main = _ref.main,
|
|
13757
|
-
main = _ref$main ===
|
|
13757
|
+
main = _ref$main === void 0 ? false : _ref$main,
|
|
13758
13758
|
icon = _ref.icon,
|
|
13759
13759
|
selfType = _ref.type,
|
|
13760
13760
|
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
@@ -13802,15 +13802,15 @@ var stopPropagation$1 = function stopPropagation(event) {
|
|
|
13802
13802
|
var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
13803
13803
|
var children = _ref.children,
|
|
13804
13804
|
_ref$type = _ref.type,
|
|
13805
|
-
type = _ref$type ===
|
|
13805
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
13806
13806
|
_ref$auto = _ref.auto,
|
|
13807
|
-
auto = _ref$auto ===
|
|
13807
|
+
auto = _ref$auto === void 0 ? false : _ref$auto,
|
|
13808
13808
|
_ref$className = _ref.className,
|
|
13809
|
-
className = _ref$className ===
|
|
13809
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13810
13810
|
_ref$disabled = _ref.disabled,
|
|
13811
|
-
disabled = _ref$disabled ===
|
|
13811
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13812
13812
|
_ref$loading = _ref.loading,
|
|
13813
|
-
loading = _ref$loading ===
|
|
13813
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
13814
13814
|
icon = _ref.icon,
|
|
13815
13815
|
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
13816
13816
|
var _useScale = useScale(),
|
|
@@ -13889,9 +13889,9 @@ ButtonDropdown.Item = ButtonDropdownItem;
|
|
|
13889
13889
|
var _excluded$1a = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
13890
13890
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
13891
13891
|
var _props$ghost = props.ghost,
|
|
13892
|
-
ghost = _props$ghost ===
|
|
13892
|
+
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
13893
13893
|
_props$type = props.type,
|
|
13894
|
-
type = _props$type ===
|
|
13894
|
+
type = _props$type === void 0 ? 'default' : _props$type;
|
|
13895
13895
|
if (!ghost && type !== 'default') return palette.background;
|
|
13896
13896
|
var colors = {
|
|
13897
13897
|
"default": palette.border,
|
|
@@ -13978,12 +13978,12 @@ var getColor$3 = function getColor(val, palette) {
|
|
|
13978
13978
|
};
|
|
13979
13979
|
var CapacityComponent = function CapacityComponent(_ref) {
|
|
13980
13980
|
var _ref$value = _ref.value,
|
|
13981
|
-
value = _ref$value ===
|
|
13981
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
13982
13982
|
_ref$limit = _ref.limit,
|
|
13983
|
-
limit = _ref$limit ===
|
|
13983
|
+
limit = _ref$limit === void 0 ? 100 : _ref$limit,
|
|
13984
13984
|
userColor = _ref.color,
|
|
13985
13985
|
_ref$className = _ref.className,
|
|
13986
|
-
className = _ref$className ===
|
|
13986
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13987
13987
|
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
13988
13988
|
var theme = useTheme();
|
|
13989
13989
|
var _useScale = useScale(),
|
|
@@ -14065,9 +14065,9 @@ var _excluded$18 = ["children", "className", "disableAutoMargin"];
|
|
|
14065
14065
|
var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
14066
14066
|
var children = _ref.children,
|
|
14067
14067
|
_ref$className = _ref.className,
|
|
14068
|
-
className = _ref$className ===
|
|
14068
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14069
14069
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
14070
|
-
disableAutoMargin = _ref$disableAutoMargi ===
|
|
14070
|
+
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
14071
14071
|
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
14072
14072
|
var theme = useTheme();
|
|
14073
14073
|
var _useScale = useScale(),
|
|
@@ -14088,7 +14088,7 @@ var CardFooter = withScale(CardFooterComponent);
|
|
|
14088
14088
|
var _excluded$17 = ["className", "children"];
|
|
14089
14089
|
var CardContentComponent = function CardContentComponent(_ref) {
|
|
14090
14090
|
var _ref$className = _ref.className,
|
|
14091
|
-
className = _ref$className ===
|
|
14091
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14092
14092
|
children = _ref.children,
|
|
14093
14093
|
props = _objectWithoutProperties(_ref, _excluded$17);
|
|
14094
14094
|
var _useScale = useScale(),
|
|
@@ -14106,7 +14106,7 @@ var CardContent = withScale(CardContentComponent);
|
|
|
14106
14106
|
var _excluded$16 = ["opacity"];
|
|
14107
14107
|
var ImageSkeleton = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
14108
14108
|
var _ref$opacity = _ref.opacity,
|
|
14109
|
-
opacity = _ref$opacity ===
|
|
14109
|
+
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
14110
14110
|
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
14111
14111
|
var theme = useTheme();
|
|
14112
14112
|
return /*#__PURE__*/React$1.createElement("div", _extends({}, props, {
|
|
@@ -14137,11 +14137,11 @@ var _excluded$15 = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
|
14137
14137
|
var ImageComponent = function ImageComponent(_ref) {
|
|
14138
14138
|
var src = _ref.src,
|
|
14139
14139
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
14140
|
-
disableSkeleton = _ref$disableSkeleton ===
|
|
14140
|
+
disableSkeleton = _ref$disableSkeleton === void 0 ? false : _ref$disableSkeleton,
|
|
14141
14141
|
_ref$className = _ref.className,
|
|
14142
|
-
className = _ref$className ===
|
|
14142
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14143
14143
|
_ref$maxDelay = _ref.maxDelay,
|
|
14144
|
-
maxDelay = _ref$maxDelay ===
|
|
14144
|
+
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
14145
14145
|
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
14146
14146
|
var _useScale = useScale(),
|
|
14147
14147
|
SCALES = _useScale.SCALES,
|
|
@@ -14266,13 +14266,13 @@ var ImageBrowserComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, ref)
|
|
|
14266
14266
|
title = _ref.title,
|
|
14267
14267
|
children = _ref.children,
|
|
14268
14268
|
_ref$showFullLink = _ref.showFullLink,
|
|
14269
|
-
showFullLink = _ref$showFullLink ===
|
|
14269
|
+
showFullLink = _ref$showFullLink === void 0 ? false : _ref$showFullLink,
|
|
14270
14270
|
_ref$invert = _ref.invert,
|
|
14271
|
-
invert = _ref$invert ===
|
|
14271
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
14272
14272
|
_ref$anchorProps = _ref.anchorProps,
|
|
14273
|
-
anchorProps = _ref$anchorProps ===
|
|
14273
|
+
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
14274
14274
|
_ref$className = _ref.className,
|
|
14275
|
-
className = _ref$className ===
|
|
14275
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14276
14276
|
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
14277
14277
|
var theme = useTheme();
|
|
14278
14278
|
var _useScale = useScale(),
|
|
@@ -14313,13 +14313,13 @@ var _excluded$13 = ["children", "hoverable", "className", "shadow", "type"];
|
|
|
14313
14313
|
var CardComponent = function CardComponent(_ref) {
|
|
14314
14314
|
var children = _ref.children,
|
|
14315
14315
|
_ref$hoverable = _ref.hoverable,
|
|
14316
|
-
hoverable = _ref$hoverable ===
|
|
14316
|
+
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
14317
14317
|
_ref$className = _ref.className,
|
|
14318
|
-
className = _ref$className ===
|
|
14318
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14319
14319
|
_ref$shadow = _ref.shadow,
|
|
14320
|
-
shadow = _ref$shadow ===
|
|
14320
|
+
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
14321
14321
|
_ref$type = _ref.type,
|
|
14322
|
-
type = _ref$type ===
|
|
14322
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
14323
14323
|
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
14324
14324
|
var theme = useTheme();
|
|
14325
14325
|
var _useScale = useScale(),
|
|
@@ -14446,17 +14446,17 @@ var _excluded$12 = ["checked", "initialChecked", "disabled", "onChange", "classN
|
|
|
14446
14446
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
14447
14447
|
var checked = _ref.checked,
|
|
14448
14448
|
_ref$initialChecked = _ref.initialChecked,
|
|
14449
|
-
initialChecked = _ref$initialChecked ===
|
|
14449
|
+
initialChecked = _ref$initialChecked === void 0 ? false : _ref$initialChecked,
|
|
14450
14450
|
_ref$disabled = _ref.disabled,
|
|
14451
|
-
disabled = _ref$disabled ===
|
|
14451
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
14452
14452
|
onChange = _ref.onChange,
|
|
14453
14453
|
_ref$className = _ref.className,
|
|
14454
|
-
className = _ref$className ===
|
|
14454
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14455
14455
|
children = _ref.children,
|
|
14456
14456
|
_ref$type = _ref.type,
|
|
14457
|
-
type = _ref$type ===
|
|
14457
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
14458
14458
|
_ref$value = _ref.value,
|
|
14459
|
-
value = _ref$value ===
|
|
14459
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
|
14460
14460
|
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
14461
14461
|
var theme = useTheme();
|
|
14462
14462
|
var _useScale = useScale(),
|
|
@@ -14534,12 +14534,12 @@ var Checkbox = withScale(CheckboxComponent);
|
|
|
14534
14534
|
var _excluded$11 = ["disabled", "onChange", "value", "children", "className"];
|
|
14535
14535
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
14536
14536
|
var _ref$disabled = _ref.disabled,
|
|
14537
|
-
disabled = _ref$disabled ===
|
|
14537
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
14538
14538
|
onChange = _ref.onChange,
|
|
14539
14539
|
value = _ref.value,
|
|
14540
14540
|
children = _ref.children,
|
|
14541
14541
|
_ref$className = _ref.className,
|
|
14542
|
-
className = _ref$className ===
|
|
14542
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14543
14543
|
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
14544
14544
|
var _useScale = useScale(),
|
|
14545
14545
|
SCALES = _useScale.SCALES;
|
|
@@ -14591,13 +14591,13 @@ var _excluded$10 = ["children", "block", "className", "name", "classic"];
|
|
|
14591
14591
|
var CodeComponent = function CodeComponent(_ref) {
|
|
14592
14592
|
var children = _ref.children,
|
|
14593
14593
|
_ref$block = _ref.block,
|
|
14594
|
-
block = _ref$block ===
|
|
14594
|
+
block = _ref$block === void 0 ? false : _ref$block,
|
|
14595
14595
|
_ref$className = _ref.className,
|
|
14596
|
-
className = _ref$className ===
|
|
14596
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
14597
14597
|
_ref$name = _ref.name,
|
|
14598
|
-
name = _ref$name ===
|
|
14598
|
+
name = _ref$name === void 0 ? '' : _ref$name,
|
|
14599
14599
|
_ref$classic = _ref.classic,
|
|
14600
|
-
classic = _ref$classic ===
|
|
14600
|
+
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
14601
14601
|
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
14602
14602
|
var _useScale = useScale(),
|
|
14603
14603
|
SCALES = _useScale.SCALES;
|
|
@@ -14938,9 +14938,9 @@ var useRealShape = function useRealShape(ref) {
|
|
|
14938
14938
|
|
|
14939
14939
|
var Expand = function Expand(_ref) {
|
|
14940
14940
|
var _ref$isExpanded = _ref.isExpanded,
|
|
14941
|
-
isExpanded = _ref$isExpanded ===
|
|
14941
|
+
isExpanded = _ref$isExpanded === void 0 ? false : _ref$isExpanded,
|
|
14942
14942
|
_ref$delay = _ref.delay,
|
|
14943
|
-
delay = _ref$delay ===
|
|
14943
|
+
delay = _ref$delay === void 0 ? 200 : _ref$delay,
|
|
14944
14944
|
children = _ref.children;
|
|
14945
14945
|
var _useState = React$1.useState(isExpanded ? 'auto' : '0'),
|
|
14946
14946
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15031,11 +15031,11 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
15031
15031
|
title = _ref.title,
|
|
15032
15032
|
subtitle = _ref.subtitle,
|
|
15033
15033
|
_ref$initialVisible = _ref.initialVisible,
|
|
15034
|
-
initialVisible = _ref$initialVisible ===
|
|
15034
|
+
initialVisible = _ref$initialVisible === void 0 ? false : _ref$initialVisible,
|
|
15035
15035
|
_ref$shadow = _ref.shadow,
|
|
15036
|
-
shadow = _ref$shadow ===
|
|
15036
|
+
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
15037
15037
|
_ref$className = _ref.className,
|
|
15038
|
-
className = _ref$className ===
|
|
15038
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15039
15039
|
index = _ref.index,
|
|
15040
15040
|
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
15041
15041
|
var theme = useTheme();
|
|
@@ -15097,9 +15097,9 @@ var _excluded$Z = ["children", "accordion", "className"];
|
|
|
15097
15097
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
15098
15098
|
var children = _ref.children,
|
|
15099
15099
|
_ref$accordion = _ref.accordion,
|
|
15100
|
-
accordion = _ref$accordion ===
|
|
15100
|
+
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
15101
15101
|
_ref$className = _ref.className,
|
|
15102
|
-
className = _ref$className ===
|
|
15102
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15103
15103
|
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
15104
15104
|
var _useScale = useScale(),
|
|
15105
15105
|
SCALES = _useScale.SCALES;
|
|
@@ -15156,11 +15156,11 @@ Collapse.Group = CollapseGroup;
|
|
|
15156
15156
|
var _excluded$Y = ["title", "content", "className"];
|
|
15157
15157
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
15158
15158
|
var _ref$title = _ref.title,
|
|
15159
|
-
title = _ref$title ===
|
|
15159
|
+
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
|
15160
15160
|
_ref$content = _ref.content,
|
|
15161
|
-
content = _ref$content ===
|
|
15161
|
+
content = _ref$content === void 0 ? '' : _ref$content,
|
|
15162
15162
|
_ref$className = _ref.className,
|
|
15163
|
-
className = _ref$className ===
|
|
15163
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15164
15164
|
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
15165
15165
|
var theme = useTheme();
|
|
15166
15166
|
var _useScale = useScale(),
|
|
@@ -15184,11 +15184,11 @@ var _excluded$X = ["children", "caption", "shadow", "className"];
|
|
|
15184
15184
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
15185
15185
|
var children = _ref.children,
|
|
15186
15186
|
_ref$caption = _ref.caption,
|
|
15187
|
-
caption = _ref$caption ===
|
|
15187
|
+
caption = _ref$caption === void 0 ? '' : _ref$caption,
|
|
15188
15188
|
_ref$shadow = _ref.shadow,
|
|
15189
|
-
shadow = _ref$shadow ===
|
|
15189
|
+
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
15190
15190
|
_ref$className = _ref.className,
|
|
15191
|
-
className = _ref$className ===
|
|
15191
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15192
15192
|
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
15193
15193
|
var theme = useTheme();
|
|
15194
15194
|
var _useScale = useScale(),
|
|
@@ -15226,12 +15226,12 @@ var getColor$2 = function getColor(type, palette) {
|
|
|
15226
15226
|
};
|
|
15227
15227
|
var DividerComponent = function DividerComponent(_ref) {
|
|
15228
15228
|
var _ref$type = _ref.type,
|
|
15229
|
-
type = _ref$type ===
|
|
15229
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
15230
15230
|
_ref$align = _ref.align,
|
|
15231
|
-
align = _ref$align ===
|
|
15231
|
+
align = _ref$align === void 0 ? 'center' : _ref$align,
|
|
15232
15232
|
children = _ref.children,
|
|
15233
15233
|
_ref$className = _ref.className,
|
|
15234
|
-
className = _ref$className ===
|
|
15234
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15235
15235
|
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
15236
15236
|
var theme = useTheme();
|
|
15237
15237
|
var _useScale = useScale(),
|
|
@@ -15273,10 +15273,10 @@ var getColor$1 = function getColor(type, theme) {
|
|
|
15273
15273
|
};
|
|
15274
15274
|
var DotComponent = function DotComponent(_ref) {
|
|
15275
15275
|
var _ref$type = _ref.type,
|
|
15276
|
-
type = _ref$type ===
|
|
15276
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
15277
15277
|
children = _ref.children,
|
|
15278
15278
|
_ref$className = _ref.className,
|
|
15279
|
-
className = _ref$className ===
|
|
15279
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15280
15280
|
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
15281
15281
|
var theme = useTheme();
|
|
15282
15282
|
var _useScale = useScale(),
|
|
@@ -15304,12 +15304,12 @@ var defaultOptions$1 = {
|
|
|
15304
15304
|
};
|
|
15305
15305
|
var elementStack = new Map();
|
|
15306
15306
|
var getOwnerPaddingRight = function getOwnerPaddingRight(element) {
|
|
15307
|
-
var owner = (element === null || element ===
|
|
15307
|
+
var owner = (element === null || element === void 0 ? void 0 : element.ownerDocument) || document;
|
|
15308
15308
|
var view = owner.defaultView || window;
|
|
15309
15309
|
return Number.parseInt(view.getComputedStyle(element).paddingRight, 10) || 0;
|
|
15310
15310
|
};
|
|
15311
15311
|
var getOwnerScrollbarWidth = function getOwnerScrollbarWidth(element) {
|
|
15312
|
-
var doc = (element === null || element ===
|
|
15312
|
+
var doc = (element === null || element === void 0 ? void 0 : element.ownerDocument) || document;
|
|
15313
15313
|
return Math.abs(window.innerWidth - doc.documentElement.clientWidth);
|
|
15314
15314
|
};
|
|
15315
15315
|
var useBodyScroll = function useBodyScroll(elementRef, options) {
|
|
@@ -15482,15 +15482,15 @@ var useKeyboard = function useKeyboard(handler, keyBindings) {
|
|
|
15482
15482
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
15483
15483
|
var bindings = Array.isArray(keyBindings) ? keyBindings : [keyBindings];
|
|
15484
15484
|
var _options$disableGloba = options.disableGlobalEvent,
|
|
15485
|
-
disableGlobalEvent = _options$disableGloba ===
|
|
15485
|
+
disableGlobalEvent = _options$disableGloba === void 0 ? false : _options$disableGloba,
|
|
15486
15486
|
_options$capture = options.capture,
|
|
15487
|
-
capture = _options$capture ===
|
|
15487
|
+
capture = _options$capture === void 0 ? false : _options$capture,
|
|
15488
15488
|
_options$stopPropagat = options.stopPropagation,
|
|
15489
|
-
stopPropagation = _options$stopPropagat ===
|
|
15489
|
+
stopPropagation = _options$stopPropagat === void 0 ? false : _options$stopPropagat,
|
|
15490
15490
|
_options$preventDefau = options.preventDefault,
|
|
15491
|
-
preventDefault = _options$preventDefau ===
|
|
15491
|
+
preventDefault = _options$preventDefau === void 0 ? true : _options$preventDefau,
|
|
15492
15492
|
_options$event = options.event,
|
|
15493
|
-
event = _options$event ===
|
|
15493
|
+
event = _options$event === void 0 ? 'keydown' : _options$event;
|
|
15494
15494
|
var activeModMap = getActiveModMap(bindings);
|
|
15495
15495
|
var keyCode = bindings.filter(function (item) {
|
|
15496
15496
|
return !KeyMod[item];
|
|
@@ -15547,18 +15547,18 @@ var _excluded$U = ["children", "onClick", "visible", "width", "onContentClick",
|
|
|
15547
15547
|
var Backdrop = /*#__PURE__*/React$1.memo(function (_ref) {
|
|
15548
15548
|
var children = _ref.children,
|
|
15549
15549
|
_ref$onClick = _ref.onClick,
|
|
15550
|
-
onClick = _ref$onClick ===
|
|
15550
|
+
onClick = _ref$onClick === void 0 ? function () {} : _ref$onClick,
|
|
15551
15551
|
_ref$visible = _ref.visible,
|
|
15552
|
-
visible = _ref$visible ===
|
|
15552
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
15553
15553
|
width = _ref.width,
|
|
15554
15554
|
_ref$onContentClick = _ref.onContentClick,
|
|
15555
|
-
onContentClick = _ref$onContentClick ===
|
|
15555
|
+
onContentClick = _ref$onContentClick === void 0 ? function () {} : _ref$onContentClick,
|
|
15556
15556
|
_ref$backdropClassNam = _ref.backdropClassName,
|
|
15557
|
-
backdropClassName = _ref$backdropClassNam ===
|
|
15557
|
+
backdropClassName = _ref$backdropClassNam === void 0 ? '' : _ref$backdropClassNam,
|
|
15558
15558
|
_ref$positionClassNam = _ref.positionClassName,
|
|
15559
|
-
positionClassName = _ref$positionClassNam ===
|
|
15559
|
+
positionClassName = _ref$positionClassNam === void 0 ? '' : _ref$positionClassNam,
|
|
15560
15560
|
_ref$layerClassName = _ref.layerClassName,
|
|
15561
|
-
layerClassName = _ref$layerClassName ===
|
|
15561
|
+
layerClassName = _ref$layerClassName === void 0 ? '' : _ref$layerClassName,
|
|
15562
15562
|
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
15563
15563
|
var theme = useTheme();
|
|
15564
15564
|
var _useCurrentState = useCurrentState(false),
|
|
@@ -15630,10 +15630,10 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
15630
15630
|
var _excluded$T = ["className", "children", "visible", "placement"];
|
|
15631
15631
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
15632
15632
|
var _ref$className = _ref.className,
|
|
15633
|
-
className = _ref$className ===
|
|
15633
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15634
15634
|
children = _ref.children,
|
|
15635
15635
|
_ref$visible = _ref.visible,
|
|
15636
|
-
visible = _ref$visible ===
|
|
15636
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
15637
15637
|
placement = _ref.placement,
|
|
15638
15638
|
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
15639
15639
|
var theme = useTheme();
|
|
@@ -15699,16 +15699,16 @@ var _excluded$S = ["visible", "keyboard", "disableBackdropClick", "onClose", "on
|
|
|
15699
15699
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
15700
15700
|
var customVisible = _ref.visible,
|
|
15701
15701
|
_ref$keyboard = _ref.keyboard,
|
|
15702
|
-
keyboard = _ref$keyboard ===
|
|
15702
|
+
keyboard = _ref$keyboard === void 0 ? true : _ref$keyboard,
|
|
15703
15703
|
_ref$disableBackdropC = _ref.disableBackdropClick,
|
|
15704
|
-
disableBackdropClick = _ref$disableBackdropC ===
|
|
15704
|
+
disableBackdropClick = _ref$disableBackdropC === void 0 ? false : _ref$disableBackdropC,
|
|
15705
15705
|
onClose = _ref.onClose,
|
|
15706
15706
|
onContentClick = _ref.onContentClick,
|
|
15707
15707
|
_ref$wrapClassName = _ref.wrapClassName,
|
|
15708
|
-
wrapClassName = _ref$wrapClassName ===
|
|
15708
|
+
wrapClassName = _ref$wrapClassName === void 0 ? '' : _ref$wrapClassName,
|
|
15709
15709
|
children = _ref.children,
|
|
15710
15710
|
_ref$placement = _ref.placement,
|
|
15711
|
-
placement = _ref$placement ===
|
|
15711
|
+
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
15712
15712
|
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
15713
15713
|
var portal = usePortal('drawer');
|
|
15714
15714
|
var _useState = React$1.useState(false),
|
|
@@ -15757,7 +15757,7 @@ DrawerComponent.displayName = 'Drawer';
|
|
|
15757
15757
|
var _excluded$R = ["className", "children"];
|
|
15758
15758
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
15759
15759
|
var _ref$className = _ref.className,
|
|
15760
|
-
className = _ref$className ===
|
|
15760
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15761
15761
|
children = _ref.children,
|
|
15762
15762
|
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
15763
15763
|
var theme = useTheme();
|
|
@@ -15776,7 +15776,7 @@ var ModalTitle = withScale(ModalTitleComponent);
|
|
|
15776
15776
|
var _excluded$Q = ["className", "children"];
|
|
15777
15777
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
15778
15778
|
var _ref$className = _ref.className,
|
|
15779
|
-
className = _ref$className ===
|
|
15779
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15780
15780
|
children = _ref.children,
|
|
15781
15781
|
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
15782
15782
|
var theme = useTheme();
|
|
@@ -15795,7 +15795,7 @@ var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
|
15795
15795
|
var _excluded$P = ["className", "children"];
|
|
15796
15796
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
15797
15797
|
var _ref$className = _ref.className,
|
|
15798
|
-
className = _ref$className ===
|
|
15798
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15799
15799
|
children = _ref.children,
|
|
15800
15800
|
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
15801
15801
|
var _useScale = useScale(),
|
|
@@ -15818,7 +15818,7 @@ DrawerComponent.Content = ModalContent;
|
|
|
15818
15818
|
var _excluded$O = ["className", "children"];
|
|
15819
15819
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
15820
15820
|
var _ref$className = _ref.className,
|
|
15821
|
-
className = _ref$className ===
|
|
15821
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15822
15822
|
children = _ref.children,
|
|
15823
15823
|
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
15824
15824
|
var classes = useClasses('title', className);
|
|
@@ -15833,7 +15833,7 @@ FieldsetTitle.displayName = 'FieldsetTitle';
|
|
|
15833
15833
|
var _excluded$N = ["className", "children"];
|
|
15834
15834
|
var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
15835
15835
|
var _ref$className = _ref.className,
|
|
15836
|
-
className = _ref$className ===
|
|
15836
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15837
15837
|
children = _ref.children,
|
|
15838
15838
|
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
15839
15839
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", _extends({}, props, {
|
|
@@ -15847,7 +15847,7 @@ FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
|
15847
15847
|
var _excluded$M = ["className", "children"];
|
|
15848
15848
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
15849
15849
|
var _ref$className = _ref.className,
|
|
15850
|
-
className = _ref$className ===
|
|
15850
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15851
15851
|
children = _ref.children,
|
|
15852
15852
|
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
15853
15853
|
var theme = useTheme();
|
|
@@ -15866,7 +15866,7 @@ var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
|
15866
15866
|
var _excluded$L = ["className", "children"];
|
|
15867
15867
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
15868
15868
|
var _ref$className = _ref.className,
|
|
15869
|
-
className = _ref$className ===
|
|
15869
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15870
15870
|
children = _ref.children,
|
|
15871
15871
|
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
15872
15872
|
var _useScale = useScale(),
|
|
@@ -15896,16 +15896,16 @@ var useFieldset = function useFieldset() {
|
|
|
15896
15896
|
var _excluded$K = ["className", "title", "subtitle", "children", "value", "label"];
|
|
15897
15897
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
15898
15898
|
var _ref$className = _ref.className,
|
|
15899
|
-
className = _ref$className ===
|
|
15899
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15900
15900
|
_ref$title = _ref.title,
|
|
15901
|
-
title = _ref$title ===
|
|
15901
|
+
title = _ref$title === void 0 ? '' : _ref$title,
|
|
15902
15902
|
_ref$subtitle = _ref.subtitle,
|
|
15903
|
-
subtitle = _ref$subtitle ===
|
|
15903
|
+
subtitle = _ref$subtitle === void 0 ? '' : _ref$subtitle,
|
|
15904
15904
|
children = _ref.children,
|
|
15905
15905
|
_ref$value = _ref.value,
|
|
15906
|
-
value = _ref$value ===
|
|
15906
|
+
value = _ref$value === void 0 ? '' : _ref$value,
|
|
15907
15907
|
_ref$label = _ref.label,
|
|
15908
|
-
label = _ref$label ===
|
|
15908
|
+
label = _ref$label === void 0 ? '' : _ref$label,
|
|
15909
15909
|
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
15910
15910
|
var theme = useTheme();
|
|
15911
15911
|
var _useScale = useScale(),
|
|
@@ -15963,7 +15963,7 @@ var Fieldset = withScale(FieldsetComponent);
|
|
|
15963
15963
|
var _excluded$J = ["className", "children", "value", "onChange"];
|
|
15964
15964
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
15965
15965
|
var _ref$className = _ref.className,
|
|
15966
|
-
className = _ref$className ===
|
|
15966
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
15967
15967
|
children = _ref.children,
|
|
15968
15968
|
value = _ref.value,
|
|
15969
15969
|
onChange = _ref.onChange,
|
|
@@ -20739,7 +20739,7 @@ function formikReducer(state, msg) {
|
|
|
20739
20739
|
}
|
|
20740
20740
|
}
|
|
20741
20741
|
|
|
20742
|
-
// Initial empty states // objects
|
|
20742
|
+
// Initial empty states // objects // FormikErrors<unkown>
|
|
20743
20743
|
var emptyErrors = {};
|
|
20744
20744
|
var emptyTouched = {};
|
|
20745
20745
|
|
|
@@ -20748,14 +20748,14 @@ var emptyTouched = {};
|
|
|
20748
20748
|
|
|
20749
20749
|
function useFormik(_ref) {
|
|
20750
20750
|
var _ref$validateOnChange = _ref.validateOnChange,
|
|
20751
|
-
validateOnChange = _ref$validateOnChange ===
|
|
20751
|
+
validateOnChange = _ref$validateOnChange === void 0 ? true : _ref$validateOnChange,
|
|
20752
20752
|
_ref$validateOnBlur = _ref.validateOnBlur,
|
|
20753
|
-
validateOnBlur = _ref$validateOnBlur ===
|
|
20753
|
+
validateOnBlur = _ref$validateOnBlur === void 0 ? true : _ref$validateOnBlur,
|
|
20754
20754
|
_ref$validateOnMount = _ref.validateOnMount,
|
|
20755
|
-
validateOnMount = _ref$validateOnMount ===
|
|
20755
|
+
validateOnMount = _ref$validateOnMount === void 0 ? false : _ref$validateOnMount,
|
|
20756
20756
|
isInitialValid = _ref.isInitialValid,
|
|
20757
20757
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
20758
|
-
enableReinitialize = _ref$enableReinitiali ===
|
|
20758
|
+
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
20759
20759
|
onSubmit = _ref.onSubmit,
|
|
20760
20760
|
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
20761
20761
|
var props = _objectSpread2({
|
|
@@ -20929,7 +20929,7 @@ function useFormik(_ref) {
|
|
|
20929
20929
|
});
|
|
20930
20930
|
}
|
|
20931
20931
|
return combinedErrors;
|
|
20932
|
-
});
|
|
20932
|
+
}); // CODE UPDATED
|
|
20933
20933
|
});
|
|
20934
20934
|
React__namespace.useEffect(function () {
|
|
20935
20935
|
if (validateOnMount && isMounted.current === true && isEqual(initialValues.current, props.initialValues)) {
|
|
@@ -21628,7 +21628,7 @@ function useEventCallback(fn) {
|
|
|
21628
21628
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
21629
21629
|
args[_key] = arguments[_key];
|
|
21630
21630
|
}
|
|
21631
|
-
return ref.current.apply(
|
|
21631
|
+
return ref.current.apply(void 0, args);
|
|
21632
21632
|
}, []);
|
|
21633
21633
|
}
|
|
21634
21634
|
|
|
@@ -21655,7 +21655,7 @@ var _excluded$H = ["mapPropsToValues"],
|
|
|
21655
21655
|
*/
|
|
21656
21656
|
function withFormik(_ref) {
|
|
21657
21657
|
var _ref$mapPropsToValues = _ref.mapPropsToValues,
|
|
21658
|
-
mapPropsToValues = _ref$mapPropsToValues ===
|
|
21658
|
+
mapPropsToValues = _ref$mapPropsToValues === void 0 ? function (vanillaProps) {
|
|
21659
21659
|
var val = {};
|
|
21660
21660
|
for (var k in vanillaProps) {
|
|
21661
21661
|
if (vanillaProps.hasOwnProperty(k) && typeof vanillaProps[k] !== 'function') {
|
|
@@ -21800,7 +21800,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
21800
21800
|
var children = _ref.children,
|
|
21801
21801
|
themeType = _ref.themeType,
|
|
21802
21802
|
_ref$themes = _ref.themes,
|
|
21803
|
-
themes = _ref$themes ===
|
|
21803
|
+
themes = _ref$themes === void 0 ? [] : _ref$themes;
|
|
21804
21804
|
var _React$useState = React$1.useState({
|
|
21805
21805
|
themes: Themes.getPresets()
|
|
21806
21806
|
}),
|
|
@@ -21815,7 +21815,7 @@ var ThemeProvider = function ThemeProvider(_ref) {
|
|
|
21815
21815
|
return Themes.getPresetStaticTheme();
|
|
21816
21816
|
}, [allThemes, themeType]);
|
|
21817
21817
|
React$1.useEffect(function () {
|
|
21818
|
-
if (!(themes !== null && themes !==
|
|
21818
|
+
if (!(themes !== null && themes !== void 0 && themes.length)) return;
|
|
21819
21819
|
setAllThemes(function (last) {
|
|
21820
21820
|
var safeThemes = themes.filter(function (item) {
|
|
21821
21821
|
return Themes.isAvailableThemeType(item.type);
|
|
@@ -22112,22 +22112,22 @@ var getItemLayout = function getItemLayout(val) {
|
|
|
22112
22112
|
};
|
|
22113
22113
|
var GridBasicItem = function GridBasicItem(_ref) {
|
|
22114
22114
|
var _ref$xs = _ref.xs,
|
|
22115
|
-
xs = _ref$xs ===
|
|
22115
|
+
xs = _ref$xs === void 0 ? false : _ref$xs,
|
|
22116
22116
|
_ref$sm = _ref.sm,
|
|
22117
|
-
sm = _ref$sm ===
|
|
22117
|
+
sm = _ref$sm === void 0 ? false : _ref$sm,
|
|
22118
22118
|
_ref$md = _ref.md,
|
|
22119
|
-
md = _ref$md ===
|
|
22119
|
+
md = _ref$md === void 0 ? false : _ref$md,
|
|
22120
22120
|
_ref$lg = _ref.lg,
|
|
22121
|
-
lg = _ref$lg ===
|
|
22121
|
+
lg = _ref$lg === void 0 ? false : _ref$lg,
|
|
22122
22122
|
_ref$xl = _ref.xl,
|
|
22123
|
-
xl = _ref$xl ===
|
|
22123
|
+
xl = _ref$xl === void 0 ? false : _ref$xl,
|
|
22124
22124
|
justify = _ref.justify,
|
|
22125
22125
|
direction = _ref.direction,
|
|
22126
22126
|
alignItems = _ref.alignItems,
|
|
22127
22127
|
alignContent = _ref.alignContent,
|
|
22128
22128
|
children = _ref.children,
|
|
22129
22129
|
_ref$className = _ref.className,
|
|
22130
|
-
className = _ref$className ===
|
|
22130
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
22131
22131
|
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
22132
22132
|
var theme = useTheme();
|
|
22133
22133
|
var _useScale = useScale(),
|
|
@@ -22172,7 +22172,7 @@ var _excluded$E = ["children", "className"];
|
|
|
22172
22172
|
var GridComponent = function GridComponent(_ref) {
|
|
22173
22173
|
var children = _ref.children,
|
|
22174
22174
|
_ref$className = _ref.className,
|
|
22175
|
-
className = _ref$className ===
|
|
22175
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
22176
22176
|
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
22177
22177
|
var _useScale = useScale(),
|
|
22178
22178
|
SCALES = _useScale.SCALES;
|
|
@@ -22196,12 +22196,12 @@ var Grid = withScale(GridComponent);
|
|
|
22196
22196
|
var _excluded$D = ["gap", "wrap", "children", "className"];
|
|
22197
22197
|
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
22198
22198
|
var _ref$gap = _ref.gap,
|
|
22199
|
-
gap = _ref$gap ===
|
|
22199
|
+
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
22200
22200
|
_ref$wrap = _ref.wrap,
|
|
22201
|
-
wrap = _ref$wrap ===
|
|
22201
|
+
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
22202
22202
|
children = _ref.children,
|
|
22203
22203
|
_ref$className = _ref.className,
|
|
22204
|
-
className = _ref$className ===
|
|
22204
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
22205
22205
|
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
22206
22206
|
var _useScale = useScale(),
|
|
22207
22207
|
unit = _useScale.unit,
|
|
@@ -22455,20 +22455,11 @@ var EXPRESSIONS = /*#__PURE__*/Object.freeze({
|
|
|
22455
22455
|
// https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
|
|
22456
22456
|
const NODE_TYPE = {
|
|
22457
22457
|
element: 1,
|
|
22458
|
-
attribute: 2,
|
|
22459
22458
|
text: 3,
|
|
22460
|
-
cdataSection: 4,
|
|
22461
|
-
entityReference: 5,
|
|
22462
|
-
// Deprecated
|
|
22463
|
-
entityNode: 6,
|
|
22464
22459
|
// Deprecated
|
|
22465
22460
|
progressingInstruction: 7,
|
|
22466
22461
|
comment: 8,
|
|
22467
|
-
document: 9
|
|
22468
|
-
documentType: 10,
|
|
22469
|
-
documentFragment: 11,
|
|
22470
|
-
notation: 12 // Deprecated
|
|
22471
|
-
};
|
|
22462
|
+
document: 9};
|
|
22472
22463
|
const getGlobal = function getGlobal() {
|
|
22473
22464
|
return typeof window === 'undefined' ? null : window;
|
|
22474
22465
|
};
|
|
@@ -23577,16 +23568,16 @@ var HtmlRenderer = function HtmlRenderer(_ref) {
|
|
|
23577
23568
|
var _excluded$C = ["command", "shift", "option", "ctrl", "children", "className"];
|
|
23578
23569
|
var KeyboardComponent = function KeyboardComponent(_ref) {
|
|
23579
23570
|
var _ref$command = _ref.command,
|
|
23580
|
-
command = _ref$command ===
|
|
23571
|
+
command = _ref$command === void 0 ? false : _ref$command,
|
|
23581
23572
|
_ref$shift = _ref.shift,
|
|
23582
|
-
shift = _ref$shift ===
|
|
23573
|
+
shift = _ref$shift === void 0 ? false : _ref$shift,
|
|
23583
23574
|
_ref$option = _ref.option,
|
|
23584
|
-
option = _ref$option ===
|
|
23575
|
+
option = _ref$option === void 0 ? false : _ref$option,
|
|
23585
23576
|
_ref$ctrl = _ref.ctrl,
|
|
23586
|
-
ctrl = _ref$ctrl ===
|
|
23577
|
+
ctrl = _ref$ctrl === void 0 ? false : _ref$ctrl,
|
|
23587
23578
|
children = _ref.children,
|
|
23588
23579
|
_ref$className = _ref.className,
|
|
23589
|
-
className = _ref$className ===
|
|
23580
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
23590
23581
|
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
23591
23582
|
var theme = useTheme();
|
|
23592
23583
|
var _useScale = useScale(),
|
|
@@ -23614,10 +23605,10 @@ var Keyboard = withScale(KeyboardComponent);
|
|
|
23614
23605
|
var _excluded$B = ["className", "children", "visible"];
|
|
23615
23606
|
var ModalWrapper = function ModalWrapper(_ref) {
|
|
23616
23607
|
var _ref$className = _ref.className,
|
|
23617
|
-
className = _ref$className ===
|
|
23608
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
23618
23609
|
children = _ref.children,
|
|
23619
23610
|
_ref$visible = _ref.visible,
|
|
23620
|
-
visible = _ref$visible ===
|
|
23611
|
+
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
23621
23612
|
props = _objectWithoutProperties(_ref, _excluded$B);
|
|
23622
23613
|
var theme = useTheme();
|
|
23623
23614
|
var _useScale = useScale(),
|
|
@@ -23685,13 +23676,13 @@ var useModalContext = function useModalContext() {
|
|
|
23685
23676
|
var _excluded$A = ["className", "children", "onClick", "passive", "disabled"];
|
|
23686
23677
|
var ModalActionComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
23687
23678
|
var _ref$className = _ref.className,
|
|
23688
|
-
className = _ref$className ===
|
|
23679
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
23689
23680
|
children = _ref.children,
|
|
23690
23681
|
onClick = _ref.onClick,
|
|
23691
23682
|
_ref$passive = _ref.passive,
|
|
23692
|
-
passive = _ref$passive ===
|
|
23683
|
+
passive = _ref$passive === void 0 ? false : _ref$passive,
|
|
23693
23684
|
_ref$disabled = _ref.disabled,
|
|
23694
|
-
disabled = _ref$disabled ===
|
|
23685
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23695
23686
|
props = _objectWithoutProperties(_ref, _excluded$A);
|
|
23696
23687
|
var theme = useTheme();
|
|
23697
23688
|
var _useScale = useScale(),
|
|
@@ -23773,18 +23764,18 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
|
23773
23764
|
onClose = _ref.onClose,
|
|
23774
23765
|
children = _ref.children,
|
|
23775
23766
|
_ref$keyboard = _ref.keyboard,
|
|
23776
|
-
keyboard = _ref$keyboard ===
|
|
23767
|
+
keyboard = _ref$keyboard === void 0 ? true : _ref$keyboard,
|
|
23777
23768
|
_ref$wrapClassName = _ref.wrapClassName,
|
|
23778
|
-
wrapClassName = _ref$wrapClassName ===
|
|
23769
|
+
wrapClassName = _ref$wrapClassName === void 0 ? '' : _ref$wrapClassName,
|
|
23779
23770
|
onContentClick = _ref.onContentClick,
|
|
23780
23771
|
_ref$disableBackdropC = _ref.disableBackdropClick,
|
|
23781
|
-
disableBackdropClick = _ref$disableBackdropC ===
|
|
23772
|
+
disableBackdropClick = _ref$disableBackdropC === void 0 ? false : _ref$disableBackdropC,
|
|
23782
23773
|
_ref$positionClassNam = _ref.positionClassName,
|
|
23783
|
-
positionClassName = _ref$positionClassNam ===
|
|
23774
|
+
positionClassName = _ref$positionClassNam === void 0 ? '' : _ref$positionClassNam,
|
|
23784
23775
|
_ref$backdropClassNam = _ref.backdropClassName,
|
|
23785
|
-
backdropClassName = _ref$backdropClassNam ===
|
|
23776
|
+
backdropClassName = _ref$backdropClassNam === void 0 ? '' : _ref$backdropClassNam,
|
|
23786
23777
|
_ref$layerClassName = _ref.layerClassName,
|
|
23787
|
-
layerClassName = _ref$layerClassName ===
|
|
23778
|
+
layerClassName = _ref$layerClassName === void 0 ? '' : _ref$layerClassName;
|
|
23788
23779
|
var portal = usePortal('modal');
|
|
23789
23780
|
var _useScale = useScale(),
|
|
23790
23781
|
SCALES = _useScale.SCALES;
|
|
@@ -23875,13 +23866,13 @@ var getStatusColor = function getStatusColor(type, filled, theme) {
|
|
|
23875
23866
|
var NoteComponent = function NoteComponent(_ref) {
|
|
23876
23867
|
var children = _ref.children,
|
|
23877
23868
|
_ref$type = _ref.type,
|
|
23878
|
-
type = _ref$type ===
|
|
23869
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
23879
23870
|
_ref$label = _ref.label,
|
|
23880
|
-
label = _ref$label ===
|
|
23871
|
+
label = _ref$label === void 0 ? 'note' : _ref$label,
|
|
23881
23872
|
_ref$filled = _ref.filled,
|
|
23882
|
-
filled = _ref$filled ===
|
|
23873
|
+
filled = _ref$filled === void 0 ? false : _ref$filled,
|
|
23883
23874
|
_ref$className = _ref.className,
|
|
23884
|
-
className = _ref$className ===
|
|
23875
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
23885
23876
|
props = _objectWithoutProperties(_ref, _excluded$y);
|
|
23886
23877
|
var theme = useTheme();
|
|
23887
23878
|
var _useScale = useScale(),
|
|
@@ -23909,7 +23900,7 @@ var Note = withScale(NoteComponent);
|
|
|
23909
23900
|
var _excluded$x = ["className", "children"];
|
|
23910
23901
|
var PageContentComponent = function PageContentComponent(_ref) {
|
|
23911
23902
|
var _ref$className = _ref.className,
|
|
23912
|
-
className = _ref$className ===
|
|
23903
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
23913
23904
|
children = _ref.children,
|
|
23914
23905
|
props = _objectWithoutProperties(_ref, _excluded$x);
|
|
23915
23906
|
var _useScale = useScale(),
|
|
@@ -23945,14 +23936,14 @@ var DotStyles = function DotStyles(_ref) {
|
|
|
23945
23936
|
var PageComponent = function PageComponent(_ref2) {
|
|
23946
23937
|
var children = _ref2.children,
|
|
23947
23938
|
_ref2$render = _ref2.render,
|
|
23948
|
-
render = _ref2$render ===
|
|
23939
|
+
render = _ref2$render === void 0 ? 'default' : _ref2$render,
|
|
23949
23940
|
_ref2$dotBackdrop = _ref2.dotBackdrop,
|
|
23950
|
-
dotBackdrop = _ref2$dotBackdrop ===
|
|
23941
|
+
dotBackdrop = _ref2$dotBackdrop === void 0 ? false : _ref2$dotBackdrop,
|
|
23951
23942
|
className = _ref2.className,
|
|
23952
23943
|
_ref2$dotSize = _ref2.dotSize,
|
|
23953
|
-
dotSize = _ref2$dotSize ===
|
|
23944
|
+
dotSize = _ref2$dotSize === void 0 ? '1px' : _ref2$dotSize,
|
|
23954
23945
|
_ref2$dotSpace = _ref2.dotSpace,
|
|
23955
|
-
dotSpace = _ref2$dotSpace ===
|
|
23946
|
+
dotSpace = _ref2$dotSpace === void 0 ? 1 : _ref2$dotSpace,
|
|
23956
23947
|
props = _objectWithoutProperties(_ref2, _excluded$w);
|
|
23957
23948
|
var theme = useTheme();
|
|
23958
23949
|
var _useScale = useScale(),
|
|
@@ -23996,9 +23987,9 @@ var _excluded$v = ["children", "center", "className"];
|
|
|
23996
23987
|
var PageHeaderComponent = function PageHeaderComponent(_ref) {
|
|
23997
23988
|
var children = _ref.children,
|
|
23998
23989
|
_ref$center = _ref.center,
|
|
23999
|
-
center = _ref$center ===
|
|
23990
|
+
center = _ref$center === void 0 ? false : _ref$center,
|
|
24000
23991
|
_ref$className = _ref.className,
|
|
24001
|
-
className = _ref$className ===
|
|
23992
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24002
23993
|
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
24003
23994
|
var _useScale = useScale(),
|
|
24004
23995
|
SCALES = _useScale.SCALES;
|
|
@@ -24262,15 +24253,15 @@ var _excluded$q = ["page", "initialPage", "count", "limit", "children", "onChang
|
|
|
24262
24253
|
var PaginationComponent = function PaginationComponent(_ref) {
|
|
24263
24254
|
var customPage = _ref.page,
|
|
24264
24255
|
_ref$initialPage = _ref.initialPage,
|
|
24265
|
-
initialPage = _ref$initialPage ===
|
|
24256
|
+
initialPage = _ref$initialPage === void 0 ? 1 : _ref$initialPage,
|
|
24266
24257
|
_ref$count = _ref.count,
|
|
24267
|
-
count = _ref$count ===
|
|
24258
|
+
count = _ref$count === void 0 ? 1 : _ref$count,
|
|
24268
24259
|
_ref$limit = _ref.limit,
|
|
24269
|
-
limit = _ref$limit ===
|
|
24260
|
+
limit = _ref$limit === void 0 ? 7 : _ref$limit,
|
|
24270
24261
|
children = _ref.children,
|
|
24271
24262
|
onChange = _ref.onChange,
|
|
24272
24263
|
_ref$className = _ref.className,
|
|
24273
|
-
className = _ref$className ===
|
|
24264
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24274
24265
|
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
24275
24266
|
var _useScale = useScale(),
|
|
24276
24267
|
SCALES = _useScale.SCALES;
|
|
@@ -24628,28 +24619,28 @@ var _excluded$p = ["children", "initialVisible", "text", "offset", "placement",
|
|
|
24628
24619
|
var TooltipComponent = function TooltipComponent(_ref) {
|
|
24629
24620
|
var children = _ref.children,
|
|
24630
24621
|
_ref$initialVisible = _ref.initialVisible,
|
|
24631
|
-
initialVisible = _ref$initialVisible ===
|
|
24622
|
+
initialVisible = _ref$initialVisible === void 0 ? false : _ref$initialVisible,
|
|
24632
24623
|
text = _ref.text,
|
|
24633
24624
|
_ref$offset = _ref.offset,
|
|
24634
|
-
offset = _ref$offset ===
|
|
24625
|
+
offset = _ref$offset === void 0 ? 12 : _ref$offset,
|
|
24635
24626
|
_ref$placement = _ref.placement,
|
|
24636
|
-
placement = _ref$placement ===
|
|
24627
|
+
placement = _ref$placement === void 0 ? 'top' : _ref$placement,
|
|
24637
24628
|
_ref$portalClassName = _ref.portalClassName,
|
|
24638
|
-
portalClassName = _ref$portalClassName ===
|
|
24629
|
+
portalClassName = _ref$portalClassName === void 0 ? '' : _ref$portalClassName,
|
|
24639
24630
|
_ref$enterDelay = _ref.enterDelay,
|
|
24640
|
-
enterDelay = _ref$enterDelay ===
|
|
24631
|
+
enterDelay = _ref$enterDelay === void 0 ? 100 : _ref$enterDelay,
|
|
24641
24632
|
_ref$leaveDelay = _ref.leaveDelay,
|
|
24642
|
-
leaveDelay = _ref$leaveDelay ===
|
|
24633
|
+
leaveDelay = _ref$leaveDelay === void 0 ? 150 : _ref$leaveDelay,
|
|
24643
24634
|
_ref$trigger = _ref.trigger,
|
|
24644
|
-
trigger = _ref$trigger ===
|
|
24635
|
+
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
|
24645
24636
|
_ref$type = _ref.type,
|
|
24646
|
-
type = _ref$type ===
|
|
24637
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
24647
24638
|
_ref$className = _ref.className,
|
|
24648
|
-
className = _ref$className ===
|
|
24639
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24649
24640
|
_ref$onVisibleChange = _ref.onVisibleChange,
|
|
24650
|
-
onVisibleChange = _ref$onVisibleChange ===
|
|
24641
|
+
onVisibleChange = _ref$onVisibleChange === void 0 ? function () {} : _ref$onVisibleChange,
|
|
24651
24642
|
_ref$hideArrow = _ref.hideArrow,
|
|
24652
|
-
hideArrow = _ref$hideArrow ===
|
|
24643
|
+
hideArrow = _ref$hideArrow === void 0 ? false : _ref$hideArrow,
|
|
24653
24644
|
customVisible = _ref.visible,
|
|
24654
24645
|
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
24655
24646
|
var timer = React$1.useRef();
|
|
@@ -24659,7 +24650,7 @@ var TooltipComponent = function TooltipComponent(_ref) {
|
|
|
24659
24650
|
visible = _useState2[0],
|
|
24660
24651
|
setVisible = _useState2[1];
|
|
24661
24652
|
var iconOffset = React$1.useMemo(function () {
|
|
24662
|
-
if (!(ref !== null && ref !==
|
|
24653
|
+
if (!(ref !== null && ref !== void 0 && ref.current)) return {
|
|
24663
24654
|
x: '0.75em',
|
|
24664
24655
|
y: '0.75em'
|
|
24665
24656
|
};
|
|
@@ -24668,7 +24659,7 @@ var TooltipComponent = function TooltipComponent(_ref) {
|
|
|
24668
24659
|
x: "".concat(rect.width ? rect.width / 2 : 0, "px"),
|
|
24669
24660
|
y: "".concat(rect.height ? rect.height / 2 : 0, "px")
|
|
24670
24661
|
};
|
|
24671
|
-
}, [ref === null || ref ===
|
|
24662
|
+
}, [ref === null || ref === void 0 ? void 0 : ref.current]);
|
|
24672
24663
|
var contentProps = {
|
|
24673
24664
|
type: type,
|
|
24674
24665
|
visible: visible,
|
|
@@ -24748,25 +24739,25 @@ var PopoverComponent = function PopoverComponent(_ref) {
|
|
|
24748
24739
|
var child = _ref.child,
|
|
24749
24740
|
children = _ref.children,
|
|
24750
24741
|
_ref$enterDelay = _ref.enterDelay,
|
|
24751
|
-
enterDelay = _ref$enterDelay ===
|
|
24742
|
+
enterDelay = _ref$enterDelay === void 0 ? 100 : _ref$enterDelay,
|
|
24752
24743
|
_ref$leaveDelay = _ref.leaveDelay,
|
|
24753
|
-
leaveDelay = _ref$leaveDelay ===
|
|
24744
|
+
leaveDelay = _ref$leaveDelay === void 0 ? 150 : _ref$leaveDelay,
|
|
24754
24745
|
_ref$offset = _ref.offset,
|
|
24755
|
-
offset = _ref$offset ===
|
|
24746
|
+
offset = _ref$offset === void 0 ? 12 : _ref$offset,
|
|
24756
24747
|
_ref$type = _ref.type,
|
|
24757
|
-
type = _ref$type ===
|
|
24748
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
24758
24749
|
_ref$trigger = _ref.trigger,
|
|
24759
|
-
trigger = _ref$trigger ===
|
|
24750
|
+
trigger = _ref$trigger === void 0 ? 'click' : _ref$trigger,
|
|
24760
24751
|
_ref$placement = _ref.placement,
|
|
24761
|
-
placement = _ref$placement ===
|
|
24752
|
+
placement = _ref$placement === void 0 ? 'bottom' : _ref$placement,
|
|
24762
24753
|
_ref$initialVisible = _ref.initialVisible,
|
|
24763
|
-
initialVisible = _ref$initialVisible ===
|
|
24754
|
+
initialVisible = _ref$initialVisible === void 0 ? false : _ref$initialVisible,
|
|
24764
24755
|
_ref$portalClassName = _ref.portalClassName,
|
|
24765
|
-
portalClassName = _ref$portalClassName ===
|
|
24756
|
+
portalClassName = _ref$portalClassName === void 0 ? '' : _ref$portalClassName,
|
|
24766
24757
|
_ref$disableItemsAuto = _ref.disableItemsAutoClose,
|
|
24767
|
-
disableItemsAutoClose = _ref$disableItemsAuto ===
|
|
24758
|
+
disableItemsAutoClose = _ref$disableItemsAuto === void 0 ? false : _ref$disableItemsAuto,
|
|
24768
24759
|
_ref$onVisibleChange = _ref.onVisibleChange,
|
|
24769
|
-
onVisibleChange = _ref$onVisibleChange ===
|
|
24760
|
+
onVisibleChange = _ref$onVisibleChange === void 0 ? function () {} : _ref$onVisibleChange,
|
|
24770
24761
|
customVisible = _ref.visible,
|
|
24771
24762
|
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
24772
24763
|
var _useScale = useScale(),
|
|
@@ -24821,16 +24812,16 @@ var _excluded$n = ["children", "line", "showTitle", "className", "onClick", "sel
|
|
|
24821
24812
|
var PopoverItemComponent = function PopoverItemComponent(_ref) {
|
|
24822
24813
|
var children = _ref.children,
|
|
24823
24814
|
_ref$line = _ref.line,
|
|
24824
|
-
line = _ref$line ===
|
|
24815
|
+
line = _ref$line === void 0 ? false : _ref$line,
|
|
24825
24816
|
_ref$showTitle = _ref.showTitle,
|
|
24826
|
-
showTitle = _ref$showTitle ===
|
|
24817
|
+
showTitle = _ref$showTitle === void 0 ? false : _ref$showTitle,
|
|
24827
24818
|
_ref$className = _ref.className,
|
|
24828
|
-
className = _ref$className ===
|
|
24819
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24829
24820
|
onClick = _ref.onClick,
|
|
24830
24821
|
_ref$selected = _ref.selected,
|
|
24831
|
-
selected = _ref$selected ===
|
|
24822
|
+
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
24832
24823
|
_ref$disableAutoClose = _ref.disableAutoClose,
|
|
24833
|
-
disableAutoClose = _ref$disableAutoClose ===
|
|
24824
|
+
disableAutoClose = _ref$disableAutoClose === void 0 ? false : _ref$disableAutoClose,
|
|
24834
24825
|
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
24835
24826
|
var theme = useTheme();
|
|
24836
24827
|
var _useScale = useScale(),
|
|
@@ -24893,18 +24884,18 @@ var getCurrentColor = function getCurrentColor(ratio, palette, type) {
|
|
|
24893
24884
|
};
|
|
24894
24885
|
var ProgressComponent = function ProgressComponent(_ref) {
|
|
24895
24886
|
var _ref$value = _ref.value,
|
|
24896
|
-
value = _ref$value ===
|
|
24887
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
24897
24888
|
_ref$max = _ref.max,
|
|
24898
|
-
max = _ref$max ===
|
|
24889
|
+
max = _ref$max === void 0 ? 100 : _ref$max,
|
|
24899
24890
|
_ref$className = _ref.className,
|
|
24900
|
-
className = _ref$className ===
|
|
24891
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24901
24892
|
_ref$type = _ref.type,
|
|
24902
|
-
type = _ref$type ===
|
|
24893
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
24903
24894
|
colors = _ref.colors,
|
|
24904
24895
|
_ref$fixedTop = _ref.fixedTop,
|
|
24905
|
-
fixedTop = _ref$fixedTop ===
|
|
24896
|
+
fixedTop = _ref$fixedTop === void 0 ? false : _ref$fixedTop,
|
|
24906
24897
|
_ref$fixedBottom = _ref.fixedBottom,
|
|
24907
|
-
fixedBottom = _ref$fixedBottom ===
|
|
24898
|
+
fixedBottom = _ref$fixedBottom === void 0 ? false : _ref$fixedBottom,
|
|
24908
24899
|
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
24909
24900
|
var theme = useTheme();
|
|
24910
24901
|
var _useScale = useScale(),
|
|
@@ -24947,7 +24938,7 @@ var useRadioContext = function useRadioContext() {
|
|
|
24947
24938
|
var _excluded$l = ["className", "children"];
|
|
24948
24939
|
var RadioDescriptionComponent = function RadioDescriptionComponent(_ref) {
|
|
24949
24940
|
var _ref$className = _ref.className,
|
|
24950
|
-
className = _ref$className ===
|
|
24941
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
24951
24942
|
children = _ref.children,
|
|
24952
24943
|
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
24953
24944
|
var theme = useTheme();
|
|
@@ -24998,13 +24989,13 @@ var getColors$4 = function getColors(palette, status) {
|
|
|
24998
24989
|
var _excluded$k = ["className", "checked", "onChange", "disabled", "type", "value", "children"];
|
|
24999
24990
|
var RadioComponent = function RadioComponent(_ref) {
|
|
25000
24991
|
var _ref$className = _ref.className,
|
|
25001
|
-
className = _ref$className ===
|
|
24992
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25002
24993
|
checked = _ref.checked,
|
|
25003
24994
|
onChange = _ref.onChange,
|
|
25004
24995
|
_ref$disabled = _ref.disabled,
|
|
25005
|
-
disabled = _ref$disabled ===
|
|
24996
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25006
24997
|
_ref$type = _ref.type,
|
|
25007
|
-
type = _ref$type ===
|
|
24998
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
25008
24999
|
radioValue = _ref.value,
|
|
25009
25000
|
children = _ref.children,
|
|
25010
25001
|
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
@@ -25092,15 +25083,15 @@ var Radio = withScale(RadioComponent);
|
|
|
25092
25083
|
var _excluded$j = ["disabled", "onChange", "value", "children", "className", "initialValue", "useRow"];
|
|
25093
25084
|
var RadioGroupComponent = function RadioGroupComponent(_ref) {
|
|
25094
25085
|
var _ref$disabled = _ref.disabled,
|
|
25095
|
-
disabled = _ref$disabled ===
|
|
25086
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25096
25087
|
onChange = _ref.onChange,
|
|
25097
25088
|
value = _ref.value,
|
|
25098
25089
|
children = _ref.children,
|
|
25099
25090
|
_ref$className = _ref.className,
|
|
25100
|
-
className = _ref$className ===
|
|
25091
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25101
25092
|
initialValue = _ref.initialValue,
|
|
25102
25093
|
_ref$useRow = _ref.useRow,
|
|
25103
|
-
useRow = _ref$useRow ===
|
|
25094
|
+
useRow = _ref$useRow === void 0 ? false : _ref$useRow,
|
|
25104
25095
|
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
25105
25096
|
var _useScale = useScale(),
|
|
25106
25097
|
SCALES = _useScale.SCALES;
|
|
@@ -25171,19 +25162,19 @@ var getColor = function getColor(type, palette) {
|
|
|
25171
25162
|
};
|
|
25172
25163
|
var RatingComponent = function RatingComponent(_ref) {
|
|
25173
25164
|
var _ref$type = _ref.type,
|
|
25174
|
-
type = _ref$type ===
|
|
25165
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
25175
25166
|
_ref$className = _ref.className,
|
|
25176
|
-
className = _ref$className ===
|
|
25167
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25177
25168
|
_ref$icon = _ref.icon,
|
|
25178
|
-
icon = _ref$icon ===
|
|
25169
|
+
icon = _ref$icon === void 0 ? /*#__PURE__*/React$1.createElement(RatingIcon, null) : _ref$icon,
|
|
25179
25170
|
_ref$count = _ref.count,
|
|
25180
|
-
count = _ref$count ===
|
|
25171
|
+
count = _ref$count === void 0 ? 5 : _ref$count,
|
|
25181
25172
|
customValue = _ref.value,
|
|
25182
25173
|
_ref$initialValue = _ref.initialValue,
|
|
25183
|
-
initialValue = _ref$initialValue ===
|
|
25174
|
+
initialValue = _ref$initialValue === void 0 ? 1 : _ref$initialValue,
|
|
25184
25175
|
onValueChange = _ref.onValueChange,
|
|
25185
25176
|
_ref$locked = _ref.locked,
|
|
25186
|
-
locked = _ref$locked ===
|
|
25177
|
+
locked = _ref$locked === void 0 ? false : _ref$locked,
|
|
25187
25178
|
onLockedChange = _ref.onLockedChange,
|
|
25188
25179
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
25189
25180
|
var theme = useTheme();
|
|
@@ -25279,9 +25270,9 @@ var SelectDropdown = /*#__PURE__*/React$1.forwardRef(function (_ref, dropdownRef
|
|
|
25279
25270
|
var visible = _ref.visible,
|
|
25280
25271
|
children = _ref.children,
|
|
25281
25272
|
_ref$className = _ref.className,
|
|
25282
|
-
className = _ref$className ===
|
|
25273
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25283
25274
|
_ref$dropdownStyle = _ref.dropdownStyle,
|
|
25284
|
-
dropdownStyle = _ref$dropdownStyle ===
|
|
25275
|
+
dropdownStyle = _ref$dropdownStyle === void 0 ? {} : _ref$dropdownStyle,
|
|
25285
25276
|
disableMatchWidth = _ref.disableMatchWidth,
|
|
25286
25277
|
getPopupContainer = _ref.getPopupContainer;
|
|
25287
25278
|
var theme = useTheme();
|
|
@@ -25406,7 +25397,7 @@ var SelectInput = /*#__PURE__*/React$1.forwardRef(function (_ref, inputRef) {
|
|
|
25406
25397
|
React$1.useEffect(function () {
|
|
25407
25398
|
if (visible) {
|
|
25408
25399
|
var _ref$current;
|
|
25409
|
-
(_ref$current = ref.current) === null || _ref$current ===
|
|
25400
|
+
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();
|
|
25410
25401
|
}
|
|
25411
25402
|
}, [visible]);
|
|
25412
25403
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("input", {
|
|
@@ -25431,30 +25422,30 @@ var SelectComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, selectRef)
|
|
|
25431
25422
|
var children = _ref.children,
|
|
25432
25423
|
label = _ref.label,
|
|
25433
25424
|
_ref$type = _ref.type,
|
|
25434
|
-
type = _ref$type ===
|
|
25425
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
25435
25426
|
_ref$disabled = _ref.disabled,
|
|
25436
|
-
disabled = _ref$disabled ===
|
|
25427
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25437
25428
|
init = _ref.initialValue,
|
|
25438
25429
|
customValue = _ref.value,
|
|
25439
25430
|
_ref$icon = _ref.icon,
|
|
25440
|
-
Icon = _ref$icon ===
|
|
25431
|
+
Icon = _ref$icon === void 0 ? SelectIcon : _ref$icon,
|
|
25441
25432
|
onChange = _ref.onChange,
|
|
25442
25433
|
_ref$pure = _ref.pure,
|
|
25443
|
-
pure = _ref$pure ===
|
|
25434
|
+
pure = _ref$pure === void 0 ? false : _ref$pure,
|
|
25444
25435
|
_ref$multiple = _ref.multiple,
|
|
25445
|
-
multiple = _ref$multiple ===
|
|
25436
|
+
multiple = _ref$multiple === void 0 ? false : _ref$multiple,
|
|
25446
25437
|
_ref$clearable = _ref.clearable,
|
|
25447
|
-
clearable = _ref$clearable ===
|
|
25438
|
+
clearable = _ref$clearable === void 0 ? true : _ref$clearable,
|
|
25448
25439
|
placeholder = _ref.placeholder,
|
|
25449
25440
|
_ref$className = _ref.className,
|
|
25450
|
-
className = _ref$className ===
|
|
25441
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25451
25442
|
dropdownClassName = _ref.dropdownClassName,
|
|
25452
25443
|
dropdownStyle = _ref.dropdownStyle,
|
|
25453
25444
|
_ref$disableMatchWidt = _ref.disableMatchWidth,
|
|
25454
|
-
disableMatchWidth = _ref$disableMatchWidt ===
|
|
25445
|
+
disableMatchWidth = _ref$disableMatchWidt === void 0 ? false : _ref$disableMatchWidt,
|
|
25455
25446
|
getPopupContainer = _ref.getPopupContainer,
|
|
25456
25447
|
_ref$onDropdownVisibl = _ref.onDropdownVisibleChange,
|
|
25457
|
-
onDropdownVisibleChange = _ref$onDropdownVisibl ===
|
|
25448
|
+
onDropdownVisibleChange = _ref$onDropdownVisibl === void 0 ? function () {} : _ref$onDropdownVisibl,
|
|
25458
25449
|
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
25459
25450
|
var theme = useTheme();
|
|
25460
25451
|
var _useScale = useScale(),
|
|
@@ -25539,15 +25530,15 @@ var SelectComponent = /*#__PURE__*/React$1.forwardRef(function (_ref, selectRef)
|
|
|
25539
25530
|
return {
|
|
25540
25531
|
focus: function focus() {
|
|
25541
25532
|
var _inputRef$current;
|
|
25542
|
-
return (_inputRef$current = inputRef.current) === null || _inputRef$current ===
|
|
25533
|
+
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
25543
25534
|
},
|
|
25544
25535
|
blur: function blur() {
|
|
25545
25536
|
var _inputRef$current2;
|
|
25546
|
-
return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 ===
|
|
25537
|
+
return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
|
|
25547
25538
|
},
|
|
25548
25539
|
scrollTo: function scrollTo(options) {
|
|
25549
25540
|
var _dropdownRef$current;
|
|
25550
|
-
return (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current ===
|
|
25541
|
+
return (_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.scrollTo(options);
|
|
25551
25542
|
}
|
|
25552
25543
|
};
|
|
25553
25544
|
}, [inputRef, dropdownRef]);
|
|
@@ -25631,16 +25622,16 @@ var _excluded$g = ["value", "className", "children", "disabled", "divider", "lab
|
|
|
25631
25622
|
var SelectOptionComponent = function SelectOptionComponent(_ref) {
|
|
25632
25623
|
var identValue = _ref.value,
|
|
25633
25624
|
_ref$className = _ref.className,
|
|
25634
|
-
className = _ref$className ===
|
|
25625
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25635
25626
|
children = _ref.children,
|
|
25636
25627
|
_ref$disabled = _ref.disabled,
|
|
25637
|
-
disabled = _ref$disabled ===
|
|
25628
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25638
25629
|
_ref$divider = _ref.divider,
|
|
25639
|
-
divider = _ref$divider ===
|
|
25630
|
+
divider = _ref$divider === void 0 ? false : _ref$divider,
|
|
25640
25631
|
_ref$label = _ref.label,
|
|
25641
|
-
label = _ref$label ===
|
|
25632
|
+
label = _ref$label === void 0 ? false : _ref$label,
|
|
25642
25633
|
_ref$preventAllEvents = _ref.preventAllEvents,
|
|
25643
|
-
preventAllEvents = _ref$preventAllEvents ===
|
|
25634
|
+
preventAllEvents = _ref$preventAllEvents === void 0 ? false : _ref$preventAllEvents,
|
|
25644
25635
|
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
25645
25636
|
var theme = useTheme();
|
|
25646
25637
|
var _useScale = useScale(),
|
|
@@ -25769,11 +25760,11 @@ var useDrag = function useDrag(elementRef) {
|
|
|
25769
25760
|
var SliderDot = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
25770
25761
|
var children = _ref.children,
|
|
25771
25762
|
_ref$disabled = _ref.disabled,
|
|
25772
|
-
disabled = _ref$disabled ===
|
|
25763
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25773
25764
|
_ref$left = _ref.left,
|
|
25774
|
-
left = _ref$left ===
|
|
25765
|
+
left = _ref$left === void 0 ? 0 : _ref$left,
|
|
25775
25766
|
_ref$isClick = _ref.isClick,
|
|
25776
|
-
isClick = _ref$isClick ===
|
|
25767
|
+
isClick = _ref$isClick === void 0 ? false : _ref$isClick;
|
|
25777
25768
|
var theme = useTheme();
|
|
25778
25769
|
var classes = useClasses('dot', {
|
|
25779
25770
|
disabled: disabled,
|
|
@@ -25858,25 +25849,25 @@ var getValue = function getValue(max, min, step, offsetX, railWidth) {
|
|
|
25858
25849
|
};
|
|
25859
25850
|
var SliderComponent = function SliderComponent(_ref) {
|
|
25860
25851
|
var _ref$hideValue = _ref.hideValue,
|
|
25861
|
-
hideValue = _ref$hideValue ===
|
|
25852
|
+
hideValue = _ref$hideValue === void 0 ? false : _ref$hideValue,
|
|
25862
25853
|
_ref$disabled = _ref.disabled,
|
|
25863
|
-
disabled = _ref$disabled ===
|
|
25854
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
25864
25855
|
_ref$type = _ref.type,
|
|
25865
|
-
type = _ref$type ===
|
|
25856
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
25866
25857
|
_ref$step = _ref.step,
|
|
25867
|
-
step = _ref$step ===
|
|
25858
|
+
step = _ref$step === void 0 ? 1 : _ref$step,
|
|
25868
25859
|
_ref$max = _ref.max,
|
|
25869
|
-
max = _ref$max ===
|
|
25860
|
+
max = _ref$max === void 0 ? 100 : _ref$max,
|
|
25870
25861
|
_ref$min = _ref.min,
|
|
25871
|
-
min = _ref$min ===
|
|
25862
|
+
min = _ref$min === void 0 ? 0 : _ref$min,
|
|
25872
25863
|
_ref$initialValue = _ref.initialValue,
|
|
25873
|
-
initialValue = _ref$initialValue ===
|
|
25864
|
+
initialValue = _ref$initialValue === void 0 ? 0 : _ref$initialValue,
|
|
25874
25865
|
customValue = _ref.value,
|
|
25875
25866
|
onChange = _ref.onChange,
|
|
25876
25867
|
_ref$className = _ref.className,
|
|
25877
|
-
className = _ref$className ===
|
|
25868
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
25878
25869
|
_ref$showMarkers = _ref.showMarkers,
|
|
25879
|
-
showMarkers = _ref$showMarkers ===
|
|
25870
|
+
showMarkers = _ref$showMarkers === void 0 ? false : _ref$showMarkers,
|
|
25880
25871
|
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
25881
25872
|
var theme = useTheme();
|
|
25882
25873
|
var _useScale = useScale(),
|
|
@@ -26187,21 +26178,21 @@ var textArrayToString = function textArrayToString(text) {
|
|
|
26187
26178
|
};
|
|
26188
26179
|
var SnippetComponent = function SnippetComponent(_ref) {
|
|
26189
26180
|
var _ref$type = _ref.type,
|
|
26190
|
-
type = _ref$type ===
|
|
26181
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
26191
26182
|
_ref$filled = _ref.filled,
|
|
26192
|
-
filled = _ref$filled ===
|
|
26183
|
+
filled = _ref$filled === void 0 ? false : _ref$filled,
|
|
26193
26184
|
children = _ref.children,
|
|
26194
26185
|
_ref$symbol = _ref.symbol,
|
|
26195
|
-
symbol = _ref$symbol ===
|
|
26186
|
+
symbol = _ref$symbol === void 0 ? '$' : _ref$symbol,
|
|
26196
26187
|
_ref$toastText = _ref.toastText,
|
|
26197
|
-
toastText = _ref$toastText ===
|
|
26188
|
+
toastText = _ref$toastText === void 0 ? 'Copied to clipboard!' : _ref$toastText,
|
|
26198
26189
|
_ref$toastType = _ref.toastType,
|
|
26199
|
-
toastType = _ref$toastType ===
|
|
26190
|
+
toastType = _ref$toastType === void 0 ? 'success' : _ref$toastType,
|
|
26200
26191
|
text = _ref.text,
|
|
26201
26192
|
_ref$copy = _ref.copy,
|
|
26202
|
-
copyType = _ref$copy ===
|
|
26193
|
+
copyType = _ref$copy === void 0 ? 'default' : _ref$copy,
|
|
26203
26194
|
_ref$className = _ref.className,
|
|
26204
|
-
className = _ref$className ===
|
|
26195
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
26205
26196
|
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
26206
26197
|
var theme = useTheme();
|
|
26207
26198
|
var _useScale = useScale(),
|
|
@@ -26261,9 +26252,9 @@ var Snippet = withScale(SnippetComponent);
|
|
|
26261
26252
|
var _excluded$d = ["inline", "className"];
|
|
26262
26253
|
var SpacerComponent = function SpacerComponent(_ref) {
|
|
26263
26254
|
var _ref$inline = _ref.inline,
|
|
26264
|
-
inline = _ref$inline ===
|
|
26255
|
+
inline = _ref$inline === void 0 ? false : _ref$inline,
|
|
26265
26256
|
_ref$className = _ref.className,
|
|
26266
|
-
className = _ref$className ===
|
|
26257
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
26267
26258
|
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
26268
26259
|
var _useScale = useScale(),
|
|
26269
26260
|
SCALES = _useScale.SCALES;
|
|
@@ -26291,7 +26282,7 @@ var getSpans = function getSpans(theme) {
|
|
|
26291
26282
|
};
|
|
26292
26283
|
var SpinnerComponent = function SpinnerComponent(_ref) {
|
|
26293
26284
|
var _ref$className = _ref.className,
|
|
26294
|
-
className = _ref$className ===
|
|
26285
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
26295
26286
|
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
26296
26287
|
var theme = useTheme();
|
|
26297
26288
|
var _useScale = useScale(),
|
|
@@ -26309,6 +26300,123 @@ var SpinnerComponent = function SpinnerComponent(_ref) {
|
|
|
26309
26300
|
SpinnerComponent.displayName = 'Spinner';
|
|
26310
26301
|
var Spinner = withScale(SpinnerComponent);
|
|
26311
26302
|
|
|
26303
|
+
var makeColgroup = function makeColgroup(width, columns) {
|
|
26304
|
+
var unsetWidthCount = columns.filter(function (c) {
|
|
26305
|
+
return !c.width;
|
|
26306
|
+
}).length;
|
|
26307
|
+
var customWidthTotal = columns.reduce(function (pre, current) {
|
|
26308
|
+
return current.width ? pre + current.width : pre;
|
|
26309
|
+
}, 0);
|
|
26310
|
+
var averageWidth = (width - customWidthTotal) / unsetWidthCount;
|
|
26311
|
+
if (averageWidth <= 0) return /*#__PURE__*/React$1.createElement("colgroup", null);
|
|
26312
|
+
return /*#__PURE__*/React$1.createElement("colgroup", null, columns.map(function (column, index) {
|
|
26313
|
+
return /*#__PURE__*/React$1.createElement("col", {
|
|
26314
|
+
key: "colgroup-".concat(index),
|
|
26315
|
+
width: column.width || averageWidth
|
|
26316
|
+
});
|
|
26317
|
+
}));
|
|
26318
|
+
};
|
|
26319
|
+
var TableHead = function TableHead(props) {
|
|
26320
|
+
var theme = useTheme();
|
|
26321
|
+
var _ref = props,
|
|
26322
|
+
columns = _ref.columns,
|
|
26323
|
+
width = _ref.width,
|
|
26324
|
+
stickyHeader = _ref.stickyHeader;
|
|
26325
|
+
var isScalableWidth = React$1.useMemo(function () {
|
|
26326
|
+
return columns.find(function (item) {
|
|
26327
|
+
return !!item.width;
|
|
26328
|
+
});
|
|
26329
|
+
}, [columns]);
|
|
26330
|
+
var colgroup = React$1.useMemo(function () {
|
|
26331
|
+
if (!isScalableWidth) return /*#__PURE__*/React$1.createElement("colgroup", null);
|
|
26332
|
+
return makeColgroup(width, columns);
|
|
26333
|
+
}, [isScalableWidth, width]);
|
|
26334
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, colgroup, /*#__PURE__*/React$1.createElement("thead", {
|
|
26335
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
26336
|
+
}, /*#__PURE__*/React$1.createElement("tr", {
|
|
26337
|
+
style: {
|
|
26338
|
+
backgroundColor: '#fff'
|
|
26339
|
+
},
|
|
26340
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
26341
|
+
}, columns.map(function (column, index) {
|
|
26342
|
+
var _String;
|
|
26343
|
+
var dataName = (_String = String(column === null || column === void 0 ? void 0 : column.label)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
26344
|
+
return /*#__PURE__*/React$1.createElement("th", {
|
|
26345
|
+
style: _objectSpread2({
|
|
26346
|
+
// textAlign: `${column?.align} !important`,
|
|
26347
|
+
// paddingLeft: '0.3rem',
|
|
26348
|
+
// paddingRight: '0.3rem',
|
|
26349
|
+
backgroundColor: '#fff',
|
|
26350
|
+
color: "".concat(column !== null && column !== void 0 && column.color ? column === null || column === void 0 ? void 0 : column.color : '#333'),
|
|
26351
|
+
whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
|
|
26352
|
+
}, column === null || column === void 0 ? void 0 : column.style),
|
|
26353
|
+
key: "table-th-".concat(column.prop.toString(), "-").concat(index),
|
|
26354
|
+
"data-column": dataName,
|
|
26355
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + (column.className || "")
|
|
26356
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
26357
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + "thead-box"
|
|
26358
|
+
}, column.label, /*#__PURE__*/React$1.createElement("br", {
|
|
26359
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
26360
|
+
}), /*#__PURE__*/React$1.createElement("span", {
|
|
26361
|
+
style: {
|
|
26362
|
+
textAlign: 'center'
|
|
26363
|
+
},
|
|
26364
|
+
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
26365
|
+
}, column.text)));
|
|
26366
|
+
}))), /*#__PURE__*/React$1.createElement(_JSXStyle, {
|
|
26367
|
+
id: "2156261549",
|
|
26368
|
+
dynamic: [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
|
|
26369
|
+
}, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;background-color:#fff;font-size:inherit;".concat(stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", ";}th.__jsx-style-dynamic-selector{padding:0 0.5em;font-size:calc(0.75 * var(--table-font-size));font-weight:normal;text-align:left;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;vertical-align:middle;min-height:calc(2.5 * var(--table-font-size));color:").concat(theme.palette.accents_5, ";background:").concat(theme.palette.accents_1, ";border-bottom:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-radius:0;}th.__jsx-style-dynamic-selector:nth-child(1){border-bottom:1px solid ").concat(theme.palette.border, ";border-left:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}th.__jsx-style-dynamic-selector:last-child{border-bottom:1px solid ").concat(theme.palette.border, ";border-right:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.thead-box.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-align:center;min-height:calc(2.5 * var(--table-font-size));text-transform:uppercase;}")));
|
|
26370
|
+
};
|
|
26371
|
+
TableHead.displayName = 'TableHead';
|
|
26372
|
+
|
|
26373
|
+
var TableCell = function TableCell(_ref) {
|
|
26374
|
+
var columns = _ref.columns,
|
|
26375
|
+
row = _ref.row,
|
|
26376
|
+
rowIndex = _ref.rowIndex,
|
|
26377
|
+
emptyText = _ref.emptyText,
|
|
26378
|
+
onCellClick = _ref.onCellClick;
|
|
26379
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
26380
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, columns.map(function (column, index) {
|
|
26381
|
+
var _String;
|
|
26382
|
+
var currentRowValue = row[column.prop];
|
|
26383
|
+
var cellValue = currentRowValue || emptyText;
|
|
26384
|
+
var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
|
|
26385
|
+
var dataName = (_String = String(column === null || column === void 0 ? void 0 : column.label)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
26386
|
+
return /*#__PURE__*/React$1.createElement("td", {
|
|
26387
|
+
style: _objectSpread2({
|
|
26388
|
+
fontSize: "".concat(column === null || column === void 0 ? void 0 : column.fontSize),
|
|
26389
|
+
textAlign: "".concat(column === null || column === void 0 ? void 0 : column.align, " !important"),
|
|
26390
|
+
paddingLeft: '0.3rem',
|
|
26391
|
+
paddingRight: '0.3rem',
|
|
26392
|
+
color: "".concat(column === null || column === void 0 ? void 0 : column.color),
|
|
26393
|
+
boxSizing: 'border-box',
|
|
26394
|
+
whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
|
|
26395
|
+
}, currentRowValue === null || currentRowValue === void 0 ? void 0 : currentRowValue.style),
|
|
26396
|
+
"data-column": dataName,
|
|
26397
|
+
key: "row-td-".concat(index, "-").concat(column.prop.toString()),
|
|
26398
|
+
onClick: function onClick() {
|
|
26399
|
+
return onCellClick && onCellClick(currentRowValue, rowIndex, index);
|
|
26400
|
+
},
|
|
26401
|
+
className: column.className
|
|
26402
|
+
}, /*#__PURE__*/React$1.createElement("div", {
|
|
26403
|
+
className: "cell"
|
|
26404
|
+
}, shouldBeRenderElement ? shouldBeRenderElement : cellValue));
|
|
26405
|
+
}));
|
|
26406
|
+
/* eslint-enable */
|
|
26407
|
+
};
|
|
26408
|
+
|
|
26409
|
+
/* "use client" */
|
|
26410
|
+
|
|
26411
|
+
var defaultContext$2 = {
|
|
26412
|
+
columns: [],
|
|
26413
|
+
updateColumn: function updateColumn() {}
|
|
26414
|
+
};
|
|
26415
|
+
var TableContext = /*#__PURE__*/React$1.createContext(defaultContext$2);
|
|
26416
|
+
var useTableContext = function useTableContext() {
|
|
26417
|
+
return React$1.useContext(TableContext);
|
|
26418
|
+
};
|
|
26419
|
+
|
|
26312
26420
|
var lodash$1 = {exports: {}};
|
|
26313
26421
|
|
|
26314
26422
|
/**
|
|
@@ -43521,213 +43629,6 @@ function requireLodash () {
|
|
|
43521
43629
|
var lodashExports = requireLodash();
|
|
43522
43630
|
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
43523
43631
|
|
|
43524
|
-
var makeColgroup = function makeColgroup(width, columns) {
|
|
43525
|
-
var unsetWidthCount = columns.filter(function (c) {
|
|
43526
|
-
return !c.width;
|
|
43527
|
-
}).length;
|
|
43528
|
-
var customWidthTotal = columns.reduce(function (pre, current) {
|
|
43529
|
-
return current.width ? pre + current.width : pre;
|
|
43530
|
-
}, 0);
|
|
43531
|
-
var averageWidth = (width - customWidthTotal) / unsetWidthCount;
|
|
43532
|
-
if (averageWidth <= 0) return /*#__PURE__*/React$1.createElement("colgroup", null);
|
|
43533
|
-
return /*#__PURE__*/React$1.createElement("colgroup", null, columns.map(function (column, index) {
|
|
43534
|
-
return /*#__PURE__*/React$1.createElement("col", {
|
|
43535
|
-
key: "colgroup-".concat(index),
|
|
43536
|
-
width: column.width || averageWidth
|
|
43537
|
-
});
|
|
43538
|
-
}));
|
|
43539
|
-
};
|
|
43540
|
-
var TableHead = function TableHead(props) {
|
|
43541
|
-
var theme = useTheme();
|
|
43542
|
-
var _React$useState = React$1.useState({}),
|
|
43543
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
43544
|
-
filters = _React$useState2[0],
|
|
43545
|
-
setFilters = _React$useState2[1];
|
|
43546
|
-
var _ref = props,
|
|
43547
|
-
columns = _ref.columns,
|
|
43548
|
-
width = _ref.width,
|
|
43549
|
-
onFilters = _ref.onFilters,
|
|
43550
|
-
showFilters = _ref.showFilters,
|
|
43551
|
-
stickyHeader = _ref.stickyHeader;
|
|
43552
|
-
var isScalableWidth = React$1.useMemo(function () {
|
|
43553
|
-
return columns.find(function (item) {
|
|
43554
|
-
return !!item.width;
|
|
43555
|
-
});
|
|
43556
|
-
}, [columns]);
|
|
43557
|
-
var colgroup = React$1.useMemo(function () {
|
|
43558
|
-
if (!isScalableWidth) return /*#__PURE__*/React$1.createElement("colgroup", null);
|
|
43559
|
-
return makeColgroup(width, columns);
|
|
43560
|
-
}, [isScalableWidth, width]);
|
|
43561
|
-
var handleFilterChange = function handleFilterChange(name, value) {
|
|
43562
|
-
setFilters(function (prevFilters) {
|
|
43563
|
-
var updatedFilters = _objectSpread2(_objectSpread2({}, prevFilters), {}, _defineProperty$1({}, name, value));
|
|
43564
|
-
if (onFilters) {
|
|
43565
|
-
onFilters(updatedFilters);
|
|
43566
|
-
}
|
|
43567
|
-
return updatedFilters;
|
|
43568
|
-
});
|
|
43569
|
-
};
|
|
43570
|
-
|
|
43571
|
-
// const applyFilters = () => {
|
|
43572
|
-
// if (onFilters) {
|
|
43573
|
-
// onFilters(filters);
|
|
43574
|
-
// }
|
|
43575
|
-
// }
|
|
43576
|
-
|
|
43577
|
-
var generateFilterInputs = function generateFilterInputs() {
|
|
43578
|
-
return columns.map(function (col) {
|
|
43579
|
-
var _String, _filters$filterName;
|
|
43580
|
-
var Header = col.label,
|
|
43581
|
-
accessor = col.filter,
|
|
43582
|
-
options = col.options;
|
|
43583
|
-
var filterName = (_String = String(col === null || col === undefined ? undefined : col.label)) === null || _String === undefined ? undefined : _String.replace(' ', '_').toLowerCase();
|
|
43584
|
-
var unq_accessor = _.uniqueId(filterName);
|
|
43585
|
-
// if (Header === 'actions') {
|
|
43586
|
-
// return (
|
|
43587
|
-
// <th style={{ margin: '3px' }} data-column={Header} key={unq_accessor}>
|
|
43588
|
-
// <Button onClick={applyFilters} auto px={0.6} scale={2 / 3}>Apply</Button>
|
|
43589
|
-
// </th>
|
|
43590
|
-
// )
|
|
43591
|
-
// }
|
|
43592
|
-
return /*#__PURE__*/React$1.createElement("th", {
|
|
43593
|
-
style: {
|
|
43594
|
-
padding: '3px'
|
|
43595
|
-
},
|
|
43596
|
-
"data-column": Header,
|
|
43597
|
-
key: unq_accessor
|
|
43598
|
-
}, accessor === 'fixed' && /*#__PURE__*/React$1.createElement(Select
|
|
43599
|
-
// key={unq_accessor}
|
|
43600
|
-
// name={filterName}
|
|
43601
|
-
, {
|
|
43602
|
-
value: (_filters$filterName = filters[filterName]) !== null && _filters$filterName !== undefined ? _filters$filterName : 'All',
|
|
43603
|
-
onChange: function onChange(newValue) {
|
|
43604
|
-
return handleFilterChange(filterName, newValue);
|
|
43605
|
-
}
|
|
43606
|
-
}, /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
43607
|
-
value: "All"
|
|
43608
|
-
}, "All ", Header), options ? options.map(function (option) {
|
|
43609
|
-
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
43610
|
-
value: option.value
|
|
43611
|
-
}, option.name);
|
|
43612
|
-
}) : null), accessor === 'date' && /*#__PURE__*/React$1.createElement(Input
|
|
43613
|
-
// id={`filter-date-${filterName}`}
|
|
43614
|
-
, {
|
|
43615
|
-
htmlType: "date"
|
|
43616
|
-
// name={filterName}
|
|
43617
|
-
,
|
|
43618
|
-
value: filters[filterName],
|
|
43619
|
-
onChange: function onChange(e) {
|
|
43620
|
-
return handleFilterChange(filterName, e.target.value);
|
|
43621
|
-
}
|
|
43622
|
-
}), accessor === 'search' && /*#__PURE__*/React$1.createElement(Input
|
|
43623
|
-
// id={`filter-search-${filterName}`}
|
|
43624
|
-
, {
|
|
43625
|
-
htmlType: "text",
|
|
43626
|
-
autoComplete: "off"
|
|
43627
|
-
// ref={filterRefs.current[filterName]} // Dynamically set ref}
|
|
43628
|
-
// name={filterName}
|
|
43629
|
-
,
|
|
43630
|
-
style: {
|
|
43631
|
-
height: 30,
|
|
43632
|
-
minWidth: 160
|
|
43633
|
-
},
|
|
43634
|
-
value: filters[filterName],
|
|
43635
|
-
onChange: function onChange(e) {
|
|
43636
|
-
return handleFilterChange(filterName, e.target.value);
|
|
43637
|
-
},
|
|
43638
|
-
placeholder: "Search...",
|
|
43639
|
-
fullWidth: true
|
|
43640
|
-
}));
|
|
43641
|
-
});
|
|
43642
|
-
};
|
|
43643
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, colgroup, /*#__PURE__*/React$1.createElement("thead", {
|
|
43644
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
43645
|
-
}, /*#__PURE__*/React$1.createElement("tr", {
|
|
43646
|
-
style: {
|
|
43647
|
-
backgroundColor: '#fff'
|
|
43648
|
-
},
|
|
43649
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
43650
|
-
}, columns.map(function (column, index) {
|
|
43651
|
-
var _String2;
|
|
43652
|
-
var dataName = (_String2 = String(column === null || column === undefined ? undefined : column.label)) === null || _String2 === undefined ? undefined : _String2.replace(' ', '_').toLowerCase();
|
|
43653
|
-
return /*#__PURE__*/React$1.createElement("th", {
|
|
43654
|
-
style: _objectSpread2({
|
|
43655
|
-
// textAlign: `${column?.align} !important`,
|
|
43656
|
-
// paddingLeft: '0.3rem',
|
|
43657
|
-
// paddingRight: '0.3rem',
|
|
43658
|
-
backgroundColor: '#fff',
|
|
43659
|
-
color: "".concat(column !== null && column !== undefined && column.color ? column === null || column === undefined ? undefined : column.color : '#333'),
|
|
43660
|
-
whiteSpace: column !== null && column !== undefined && column.noWrap ? 'nowrap' : 'normal'
|
|
43661
|
-
}, column === null || column === undefined ? undefined : column.style),
|
|
43662
|
-
key: "table-th-".concat(column.prop.toString(), "-").concat(index),
|
|
43663
|
-
"data-column": dataName,
|
|
43664
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + (column.className || "")
|
|
43665
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
43666
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]]) + " " + "thead-box"
|
|
43667
|
-
}, column.label, /*#__PURE__*/React$1.createElement("br", {
|
|
43668
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
43669
|
-
}), /*#__PURE__*/React$1.createElement("span", {
|
|
43670
|
-
style: {
|
|
43671
|
-
textAlign: 'center'
|
|
43672
|
-
},
|
|
43673
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
43674
|
-
}, column.text)));
|
|
43675
|
-
})), showFilters && /*#__PURE__*/React$1.createElement("tr", {
|
|
43676
|
-
className: _JSXStyle.dynamic([["2156261549", [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]]])
|
|
43677
|
-
}, generateFilterInputs())), /*#__PURE__*/React$1.createElement(_JSXStyle, {
|
|
43678
|
-
id: "2156261549",
|
|
43679
|
-
dynamic: [stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", theme.palette.accents_5, theme.palette.accents_1, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius, theme.palette.border, theme.palette.border, theme.palette.border, theme.layout.radius, theme.layout.radius]
|
|
43680
|
-
}, "thead.__jsx-style-dynamic-selector{border-collapse:separate;border-spacing:0;background-color:#fff;font-size:inherit;".concat(stickyHeader && "\n position: sticky;\n top: 0;\n z-index: 1;\n ", ";}th.__jsx-style-dynamic-selector{padding:0 0.5em;font-size:calc(0.75 * var(--table-font-size));font-weight:normal;text-align:left;-webkit-letter-spacing:0;-moz-letter-spacing:0;-ms-letter-spacing:0;letter-spacing:0;vertical-align:middle;min-height:calc(2.5 * var(--table-font-size));color:").concat(theme.palette.accents_5, ";background:").concat(theme.palette.accents_1, ";border-bottom:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-radius:0;}th.__jsx-style-dynamic-selector:nth-child(1){border-bottom:1px solid ").concat(theme.palette.border, ";border-left:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}th.__jsx-style-dynamic-selector:last-child{border-bottom:1px solid ").concat(theme.palette.border, ";border-right:1px solid ").concat(theme.palette.border, ";border-top:1px solid ").concat(theme.palette.border, ";border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.thead-box.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-align:center;min-height:calc(2.5 * var(--table-font-size));text-transform:uppercase;}")));
|
|
43681
|
-
};
|
|
43682
|
-
TableHead.displayName = 'TableHead';
|
|
43683
|
-
|
|
43684
|
-
var TableCell = function TableCell(_ref) {
|
|
43685
|
-
var columns = _ref.columns,
|
|
43686
|
-
row = _ref.row,
|
|
43687
|
-
rowIndex = _ref.rowIndex,
|
|
43688
|
-
emptyText = _ref.emptyText,
|
|
43689
|
-
onCellClick = _ref.onCellClick;
|
|
43690
|
-
/* eslint-disable react/jsx-no-useless-fragment */
|
|
43691
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, columns.map(function (column, index) {
|
|
43692
|
-
var _String;
|
|
43693
|
-
var currentRowValue = row[column.prop];
|
|
43694
|
-
var cellValue = currentRowValue || emptyText;
|
|
43695
|
-
var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
|
|
43696
|
-
var dataName = (_String = String(column === null || column === undefined ? undefined : column.label)) === null || _String === undefined ? undefined : _String.replace(' ', '_').toLowerCase();
|
|
43697
|
-
return /*#__PURE__*/React$1.createElement("td", {
|
|
43698
|
-
style: _objectSpread2({
|
|
43699
|
-
fontSize: "".concat(column === null || column === undefined ? undefined : column.fontSize),
|
|
43700
|
-
textAlign: "".concat(column === null || column === undefined ? undefined : column.align, " !important"),
|
|
43701
|
-
paddingLeft: '0.3rem',
|
|
43702
|
-
paddingRight: '0.3rem',
|
|
43703
|
-
color: "".concat(column === null || column === undefined ? undefined : column.color),
|
|
43704
|
-
boxSizing: 'border-box',
|
|
43705
|
-
whiteSpace: column !== null && column !== undefined && column.noWrap ? 'nowrap' : 'normal'
|
|
43706
|
-
}, currentRowValue === null || currentRowValue === undefined ? undefined : currentRowValue.style),
|
|
43707
|
-
"data-column": dataName,
|
|
43708
|
-
key: "row-td-".concat(index, "-").concat(column.prop.toString()),
|
|
43709
|
-
onClick: function onClick() {
|
|
43710
|
-
return onCellClick && onCellClick(currentRowValue, rowIndex, index);
|
|
43711
|
-
},
|
|
43712
|
-
className: column.className
|
|
43713
|
-
}, /*#__PURE__*/React$1.createElement("div", {
|
|
43714
|
-
className: "cell"
|
|
43715
|
-
}, shouldBeRenderElement ? shouldBeRenderElement : cellValue));
|
|
43716
|
-
}));
|
|
43717
|
-
/* eslint-enable */
|
|
43718
|
-
};
|
|
43719
|
-
|
|
43720
|
-
/* "use client" */
|
|
43721
|
-
|
|
43722
|
-
var defaultContext$2 = {
|
|
43723
|
-
columns: [],
|
|
43724
|
-
updateColumn: function updateColumn() {}
|
|
43725
|
-
};
|
|
43726
|
-
var TableContext = /*#__PURE__*/React$1.createContext(defaultContext$2);
|
|
43727
|
-
var useTableContext = function useTableContext() {
|
|
43728
|
-
return React$1.useContext(TableContext);
|
|
43729
|
-
};
|
|
43730
|
-
|
|
43731
43632
|
function Empty() {
|
|
43732
43633
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
43733
43634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -44044,9 +43945,9 @@ var TextChild = function TextChild(_ref) {
|
|
|
44044
43945
|
var children = _ref.children,
|
|
44045
43946
|
tag = _ref.tag,
|
|
44046
43947
|
_ref$className = _ref.className,
|
|
44047
|
-
className = _ref$className ===
|
|
43948
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44048
43949
|
_ref$type = _ref.type,
|
|
44049
|
-
type = _ref$type ===
|
|
43950
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
44050
43951
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
44051
43952
|
var Component = tag;
|
|
44052
43953
|
var theme = useTheme();
|
|
@@ -44103,36 +44004,36 @@ var _getModifierChild = function getModifierChild(tags, children) {
|
|
|
44103
44004
|
};
|
|
44104
44005
|
var TextComponent = function TextComponent(_ref) {
|
|
44105
44006
|
var _ref$h = _ref.h1,
|
|
44106
|
-
h1 = _ref$h ===
|
|
44007
|
+
h1 = _ref$h === void 0 ? false : _ref$h,
|
|
44107
44008
|
_ref$h2 = _ref.h2,
|
|
44108
|
-
h2 = _ref$h2 ===
|
|
44009
|
+
h2 = _ref$h2 === void 0 ? false : _ref$h2,
|
|
44109
44010
|
_ref$h3 = _ref.h3,
|
|
44110
|
-
h3 = _ref$h3 ===
|
|
44011
|
+
h3 = _ref$h3 === void 0 ? false : _ref$h3,
|
|
44111
44012
|
_ref$h4 = _ref.h4,
|
|
44112
|
-
h4 = _ref$h4 ===
|
|
44013
|
+
h4 = _ref$h4 === void 0 ? false : _ref$h4,
|
|
44113
44014
|
_ref$h5 = _ref.h5,
|
|
44114
|
-
h5 = _ref$h5 ===
|
|
44015
|
+
h5 = _ref$h5 === void 0 ? false : _ref$h5,
|
|
44115
44016
|
_ref$h6 = _ref.h6,
|
|
44116
|
-
h6 = _ref$h6 ===
|
|
44017
|
+
h6 = _ref$h6 === void 0 ? false : _ref$h6,
|
|
44117
44018
|
_ref$p = _ref.p,
|
|
44118
|
-
p = _ref$p ===
|
|
44019
|
+
p = _ref$p === void 0 ? false : _ref$p,
|
|
44119
44020
|
_ref$b = _ref.b,
|
|
44120
|
-
b = _ref$b ===
|
|
44021
|
+
b = _ref$b === void 0 ? false : _ref$b,
|
|
44121
44022
|
_ref$small = _ref.small,
|
|
44122
|
-
small = _ref$small ===
|
|
44023
|
+
small = _ref$small === void 0 ? false : _ref$small,
|
|
44123
44024
|
_ref$i = _ref.i,
|
|
44124
|
-
i = _ref$i ===
|
|
44025
|
+
i = _ref$i === void 0 ? false : _ref$i,
|
|
44125
44026
|
_ref$span = _ref.span,
|
|
44126
|
-
span = _ref$span ===
|
|
44027
|
+
span = _ref$span === void 0 ? false : _ref$span,
|
|
44127
44028
|
_ref$del = _ref.del,
|
|
44128
|
-
del = _ref$del ===
|
|
44029
|
+
del = _ref$del === void 0 ? false : _ref$del,
|
|
44129
44030
|
_ref$em = _ref.em,
|
|
44130
|
-
em = _ref$em ===
|
|
44031
|
+
em = _ref$em === void 0 ? false : _ref$em,
|
|
44131
44032
|
_ref$blockquote = _ref.blockquote,
|
|
44132
|
-
blockquote = _ref$blockquote ===
|
|
44033
|
+
blockquote = _ref$blockquote === void 0 ? false : _ref$blockquote,
|
|
44133
44034
|
children = _ref.children,
|
|
44134
44035
|
_ref$className = _ref.className,
|
|
44135
|
-
className = _ref$className ===
|
|
44036
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44136
44037
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
44137
44038
|
var elements = {
|
|
44138
44039
|
h1: h1,
|
|
@@ -44203,7 +44104,7 @@ function Placeholder(_ref) {
|
|
|
44203
44104
|
dataLength = _ref.dataLength,
|
|
44204
44105
|
children = _ref.children,
|
|
44205
44106
|
_ref$hide = _ref.hide,
|
|
44206
|
-
hide = _ref$hide ===
|
|
44107
|
+
hide = _ref$hide === void 0 ? false : _ref$hide;
|
|
44207
44108
|
msg = access_denied ? 'Access Denied!' : msg;
|
|
44208
44109
|
if (dataLength !== undefined && dataLength > 0 || hide) {
|
|
44209
44110
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, children);
|
|
@@ -44282,23 +44183,23 @@ function Placeholder(_ref) {
|
|
|
44282
44183
|
|
|
44283
44184
|
function DataTable(_ref) {
|
|
44284
44185
|
var _ref$cols = _ref.cols,
|
|
44285
|
-
cols = _ref$cols ===
|
|
44186
|
+
cols = _ref$cols === void 0 ? [] : _ref$cols,
|
|
44286
44187
|
_ref$rows = _ref.rows,
|
|
44287
|
-
rows = _ref$rows ===
|
|
44188
|
+
rows = _ref$rows === void 0 ? [] : _ref$rows,
|
|
44288
44189
|
_ref$readOnly = _ref.readOnly,
|
|
44289
|
-
readOnly = _ref$readOnly ===
|
|
44190
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44290
44191
|
_ref$heading = _ref.heading,
|
|
44291
|
-
heading = _ref$heading ===
|
|
44192
|
+
heading = _ref$heading === void 0 ? [] : _ref$heading,
|
|
44292
44193
|
_ref$filter = _ref.filter,
|
|
44293
|
-
filter = _ref$filter ===
|
|
44194
|
+
filter = _ref$filter === void 0 ? true : _ref$filter,
|
|
44294
44195
|
menu = _ref.menu,
|
|
44295
44196
|
_ref$sideMenu = _ref.sideMenu,
|
|
44296
|
-
sideMenu = _ref$sideMenu ===
|
|
44197
|
+
sideMenu = _ref$sideMenu === void 0 ? false : _ref$sideMenu,
|
|
44297
44198
|
_ref$style = _ref.style,
|
|
44298
|
-
style = _ref$style ===
|
|
44199
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
44299
44200
|
children = _ref.children,
|
|
44300
44201
|
_ref$onBack = _ref.onBack,
|
|
44301
|
-
onBack = _ref$onBack ===
|
|
44202
|
+
onBack = _ref$onBack === void 0 ? function () {
|
|
44302
44203
|
window.history.back();
|
|
44303
44204
|
} : _ref$onBack,
|
|
44304
44205
|
onRefresh = _ref.onRefresh,
|
|
@@ -44307,9 +44208,9 @@ function DataTable(_ref) {
|
|
|
44307
44208
|
onSelectedEdit = _ref.onSelectedEdit,
|
|
44308
44209
|
onSelected = _ref.onSelected,
|
|
44309
44210
|
_ref$disableViewColum = _ref.disableViewColumn,
|
|
44310
|
-
disableViewColumn = _ref$disableViewColum ===
|
|
44211
|
+
disableViewColumn = _ref$disableViewColum === void 0 ? false : _ref$disableViewColum,
|
|
44311
44212
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44312
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44213
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44313
44214
|
onDragOver = _ref.onDragOver,
|
|
44314
44215
|
onDragEnter = _ref.onDragEnter,
|
|
44315
44216
|
onDragLeave = _ref.onDragLeave,
|
|
@@ -44319,15 +44220,15 @@ function DataTable(_ref) {
|
|
|
44319
44220
|
viewLength = _ref.viewLength,
|
|
44320
44221
|
_onPageChange = _ref.onPageChange,
|
|
44321
44222
|
_ref$disableMenu = _ref.disableMenu,
|
|
44322
|
-
disableMenu = _ref$disableMenu ===
|
|
44223
|
+
disableMenu = _ref$disableMenu === void 0 ? false : _ref$disableMenu,
|
|
44323
44224
|
_ref$cursorPagination = _ref.cursorPagination,
|
|
44324
|
-
cursorPagination = _ref$cursorPagination ===
|
|
44225
|
+
cursorPagination = _ref$cursorPagination === void 0 ? false : _ref$cursorPagination,
|
|
44325
44226
|
previousCursor = _ref.previousCursor,
|
|
44326
44227
|
nextCursor = _ref.nextCursor,
|
|
44327
44228
|
_ref$hasMore = _ref.hasMore,
|
|
44328
|
-
hasMore = _ref$hasMore ===
|
|
44229
|
+
hasMore = _ref$hasMore === void 0 ? false : _ref$hasMore,
|
|
44329
44230
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
44330
|
-
stickyHeader = _ref$stickyHeader ===
|
|
44231
|
+
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
44331
44232
|
onNextPage = _ref.onNextPage,
|
|
44332
44233
|
onPreviousPage = _ref.onPreviousPage;
|
|
44333
44234
|
var TABLE_ID = _.uniqueId('tbl');
|
|
@@ -44336,35 +44237,34 @@ function DataTable(_ref) {
|
|
|
44336
44237
|
_useState2 = _slicedToArray(_useState, 2),
|
|
44337
44238
|
selected = _useState2[0],
|
|
44338
44239
|
setSelected = _useState2[1];
|
|
44240
|
+
var _useState3 = React$1.useState({}),
|
|
44241
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
44242
|
+
filters = _useState4[0],
|
|
44243
|
+
setFilters = _useState4[1];
|
|
44339
44244
|
// const [table_filters] = useDebounce(filters, 500);
|
|
44340
44245
|
// const open = Boolean(anchorEl);
|
|
44341
44246
|
// const handleMenuOpen = (event: any) => {
|
|
44342
44247
|
// setAnchorEl(event.currentTarget);
|
|
44343
44248
|
// };
|
|
44344
|
-
var
|
|
44345
|
-
|
|
44346
|
-
hideColumn =
|
|
44347
|
-
setHideColumn =
|
|
44249
|
+
var _useState5 = React$1.useState([]),
|
|
44250
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
44251
|
+
hideColumn = _useState6[0],
|
|
44252
|
+
setHideColumn = _useState6[1];
|
|
44348
44253
|
// const handleMenuClose = () => {
|
|
44349
44254
|
// setAnchorEl(null);
|
|
44350
44255
|
// };
|
|
44351
44256
|
|
|
44352
|
-
var
|
|
44353
|
-
|
|
44354
|
-
openFilter =
|
|
44355
|
-
setOpenFilter =
|
|
44257
|
+
var _useState7 = React$1.useState(false),
|
|
44258
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
44259
|
+
openFilter = _useState8[0],
|
|
44260
|
+
setOpenFilter = _useState8[1];
|
|
44356
44261
|
function handleShowFilter() {
|
|
44357
44262
|
return setOpenFilter(!openFilter);
|
|
44358
44263
|
}
|
|
44359
|
-
React$1.useEffect(function () {
|
|
44360
|
-
if (selected.length > 0 && onSelected) {
|
|
44361
|
-
onSelected(selected);
|
|
44362
|
-
}
|
|
44363
|
-
}, [selected]);
|
|
44364
44264
|
React$1.useEffect(function () {
|
|
44365
44265
|
cols.forEach(function (col) {
|
|
44366
44266
|
var _String;
|
|
44367
|
-
var dataName = (_String = String(col === null || col ===
|
|
44267
|
+
var dataName = (_String = String(col === null || col === void 0 ? void 0 : col.name)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
44368
44268
|
if (hideColumn.includes(col.name)) {
|
|
44369
44269
|
document.querySelectorAll("[data-column=\"".concat(dataName, "\"]")).forEach(function (el) {
|
|
44370
44270
|
el.style.display = 'none !important';
|
|
@@ -44378,7 +44278,7 @@ function DataTable(_ref) {
|
|
|
44378
44278
|
}, [hideColumn, cols]);
|
|
44379
44279
|
function handleHideColumnClick(_event, _id) {
|
|
44380
44280
|
var _String2;
|
|
44381
|
-
var id = (_String2 = String(_id)) === null || _String2 ===
|
|
44281
|
+
var id = (_String2 = String(_id)) === null || _String2 === void 0 ? void 0 : _String2.replace(' ', '_').toLowerCase();
|
|
44382
44282
|
var selectedIndex = hideColumn.indexOf(id);
|
|
44383
44283
|
var newSelected = [];
|
|
44384
44284
|
if (selectedIndex === -1) {
|
|
@@ -44429,14 +44329,89 @@ function DataTable(_ref) {
|
|
|
44429
44329
|
|
|
44430
44330
|
var COLUMNS = cols.filter(function (col) {
|
|
44431
44331
|
var _String3;
|
|
44432
|
-
var dataName = (_String3 = String(col === null || col ===
|
|
44332
|
+
var dataName = (_String3 = String(col === null || col === void 0 ? void 0 : col.name)) === null || _String3 === void 0 ? void 0 : _String3.replace(' ', '_').toLowerCase();
|
|
44433
44333
|
return !hideColumn.includes(dataName);
|
|
44434
44334
|
});
|
|
44335
|
+
var handleFilterChange = function handleFilterChange(name, value) {
|
|
44336
|
+
setFilters(function (prevFilters) {
|
|
44337
|
+
var updatedFilters = _objectSpread2(_objectSpread2({}, prevFilters), {}, _defineProperty$1({}, name, value));
|
|
44338
|
+
if (onFilters) {
|
|
44339
|
+
onFilters(updatedFilters);
|
|
44340
|
+
}
|
|
44341
|
+
return updatedFilters;
|
|
44342
|
+
});
|
|
44343
|
+
};
|
|
44344
|
+
var generateFilterInputs = function generateFilterInputs() {
|
|
44345
|
+
return COLUMNS.map(function (col) {
|
|
44346
|
+
var _String4, _filters$filterName;
|
|
44347
|
+
var Header = col.label,
|
|
44348
|
+
accessor = col.filter,
|
|
44349
|
+
options = col.options;
|
|
44350
|
+
var filterName = (_String4 = String(col === null || col === void 0 ? void 0 : col.label)) === null || _String4 === void 0 ? void 0 : _String4.replace(' ', '_').toLowerCase();
|
|
44351
|
+
var unq_accessor = _.uniqueId(filterName);
|
|
44352
|
+
// if (Header === 'actions') {
|
|
44353
|
+
// return (
|
|
44354
|
+
// <th style={{ margin: '3px' }} data-column={Header} key={unq_accessor}>
|
|
44355
|
+
// <Button onClick={applyFilters} auto px={0.6} scale={2 / 3}>Apply</Button>
|
|
44356
|
+
// </th>
|
|
44357
|
+
// )
|
|
44358
|
+
// }
|
|
44359
|
+
return /*#__PURE__*/React$1.createElement("div", {
|
|
44360
|
+
style: {
|
|
44361
|
+
padding: '3px'
|
|
44362
|
+
},
|
|
44363
|
+
"data-column": Header,
|
|
44364
|
+
key: unq_accessor
|
|
44365
|
+
}, accessor === 'fixed' && /*#__PURE__*/React$1.createElement(Select
|
|
44366
|
+
// key={unq_accessor}
|
|
44367
|
+
// name={filterName}
|
|
44368
|
+
, {
|
|
44369
|
+
value: (_filters$filterName = filters[filterName]) !== null && _filters$filterName !== void 0 ? _filters$filterName : 'All',
|
|
44370
|
+
onChange: function onChange(newValue) {
|
|
44371
|
+
return handleFilterChange(filterName, newValue);
|
|
44372
|
+
}
|
|
44373
|
+
}, /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
44374
|
+
value: "All"
|
|
44375
|
+
}, "All ", Header), options ? options.map(function (option) {
|
|
44376
|
+
return /*#__PURE__*/React$1.createElement(Select.Option, {
|
|
44377
|
+
value: option.value
|
|
44378
|
+
}, option.name);
|
|
44379
|
+
}) : null), accessor === 'date' && /*#__PURE__*/React$1.createElement(Input
|
|
44380
|
+
// id={`filter-date-${filterName}`}
|
|
44381
|
+
, {
|
|
44382
|
+
htmlType: "date"
|
|
44383
|
+
// name={filterName}
|
|
44384
|
+
,
|
|
44385
|
+
value: filters[filterName],
|
|
44386
|
+
onChange: function onChange(e) {
|
|
44387
|
+
return handleFilterChange(filterName, e.target.value);
|
|
44388
|
+
}
|
|
44389
|
+
}), accessor === 'search' && /*#__PURE__*/React$1.createElement(Input
|
|
44390
|
+
// id={`filter-search-${filterName}`}
|
|
44391
|
+
, {
|
|
44392
|
+
htmlType: "text",
|
|
44393
|
+
autoComplete: "off"
|
|
44394
|
+
// ref={filterRefs.current[filterName]} // Dynamically set ref}
|
|
44395
|
+
// name={filterName}
|
|
44396
|
+
,
|
|
44397
|
+
style: {
|
|
44398
|
+
height: 30,
|
|
44399
|
+
minWidth: 160
|
|
44400
|
+
},
|
|
44401
|
+
value: filters[filterName],
|
|
44402
|
+
onChange: function onChange(e) {
|
|
44403
|
+
return handleFilterChange(filterName, e.target.value);
|
|
44404
|
+
},
|
|
44405
|
+
placeholder: "Search...",
|
|
44406
|
+
fullWidth: true
|
|
44407
|
+
}));
|
|
44408
|
+
});
|
|
44409
|
+
};
|
|
44435
44410
|
var content = function content() {
|
|
44436
44411
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, cols.map(function (option, index) {
|
|
44437
|
-
var
|
|
44412
|
+
var _String5;
|
|
44438
44413
|
var colunqid = _.uniqueId("".concat(option.name, "-").concat(index));
|
|
44439
|
-
var dataName = (
|
|
44414
|
+
var dataName = (_String5 = String(option.name)) === null || _String5 === void 0 ? void 0 : _String5.replace(' ', '_').toLowerCase();
|
|
44440
44415
|
var isSelected = !hideColumn.includes(dataName);
|
|
44441
44416
|
return /*#__PURE__*/React$1.createElement(Popover.Item, {
|
|
44442
44417
|
selected: isSelected,
|
|
@@ -44483,7 +44458,7 @@ function DataTable(_ref) {
|
|
|
44483
44458
|
},
|
|
44484
44459
|
justify: "flex-end",
|
|
44485
44460
|
alignContent: "center"
|
|
44486
|
-
}, menu, !children && !readOnly ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, onSelectedEdit && selected.length === 1 ? /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
44461
|
+
}, menu, !children && !readOnly ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, selected.length > 0 && onSelected ? onSelected(selected) : null, onSelectedEdit && selected.length === 1 ? /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
44487
44462
|
text: "Edit Selected",
|
|
44488
44463
|
placement: "bottom",
|
|
44489
44464
|
font: 0.8,
|
|
@@ -44573,7 +44548,7 @@ function DataTable(_ref) {
|
|
|
44573
44548
|
display: 'flex',
|
|
44574
44549
|
flexDirection: sideMenu ? 'row' : 'column'
|
|
44575
44550
|
}
|
|
44576
|
-
}, sideMenu
|
|
44551
|
+
}, sideMenu || openFilter ? /*#__PURE__*/React$1.createElement(GridContainer, {
|
|
44577
44552
|
direction: "column",
|
|
44578
44553
|
style: {
|
|
44579
44554
|
width: '15rem',
|
|
@@ -44581,7 +44556,7 @@ function DataTable(_ref) {
|
|
|
44581
44556
|
border: '1px solid #cfcfcf',
|
|
44582
44557
|
borderRadius: '5px'
|
|
44583
44558
|
}
|
|
44584
|
-
}, sideMenu), /*#__PURE__*/React$1.createElement("div", {
|
|
44559
|
+
}, openFilter ? generateFilterInputs() : sideMenu) : null, /*#__PURE__*/React$1.createElement("div", {
|
|
44585
44560
|
onDragOver: onDragOver,
|
|
44586
44561
|
onDragEnter: onDragEnter,
|
|
44587
44562
|
onDragLeave: onDragLeave,
|
|
@@ -44616,7 +44591,6 @@ function DataTable(_ref) {
|
|
|
44616
44591
|
onSelected: function onSelected(selected) {
|
|
44617
44592
|
return setSelected(selected);
|
|
44618
44593
|
},
|
|
44619
|
-
onFilters: onFilters,
|
|
44620
44594
|
data: rows,
|
|
44621
44595
|
style: {
|
|
44622
44596
|
borderCollapse: 'collapse',
|
|
@@ -44624,15 +44598,15 @@ function DataTable(_ref) {
|
|
|
44624
44598
|
}
|
|
44625
44599
|
}, COLUMNS.map(function (column, index) {
|
|
44626
44600
|
return /*#__PURE__*/React$1.createElement(Table.Column, {
|
|
44627
|
-
style: column === null || column ===
|
|
44628
|
-
options: column === null || column ===
|
|
44629
|
-
fontSize: column === null || column ===
|
|
44601
|
+
style: column === null || column === void 0 ? void 0 : column.style,
|
|
44602
|
+
options: column === null || column === void 0 ? void 0 : column.options,
|
|
44603
|
+
fontSize: column === null || column === void 0 ? void 0 : column.fontSize,
|
|
44630
44604
|
key: "".concat(column.id, "-").concat(index),
|
|
44631
44605
|
prop: column.id,
|
|
44632
44606
|
label: column.name,
|
|
44633
|
-
filter: column === null || column ===
|
|
44634
|
-
noWrap: column === null || column ===
|
|
44635
|
-
align: column === null || column ===
|
|
44607
|
+
filter: column === null || column === void 0 ? void 0 : column.filter,
|
|
44608
|
+
noWrap: column === null || column === void 0 ? void 0 : column.noWrap,
|
|
44609
|
+
align: column === null || column === void 0 ? void 0 : column.align
|
|
44636
44610
|
});
|
|
44637
44611
|
})))));
|
|
44638
44612
|
}
|
|
@@ -44645,9 +44619,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
44645
44619
|
onCell = _ref.onCell,
|
|
44646
44620
|
rowClassName = _ref.rowClassName,
|
|
44647
44621
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44648
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44622
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44649
44623
|
_ref$readOnly = _ref.readOnly,
|
|
44650
|
-
readOnly = _ref$readOnly ===
|
|
44624
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44651
44625
|
onSelected = _ref.onSelected;
|
|
44652
44626
|
var theme = useTheme();
|
|
44653
44627
|
var _useState = React$1.useState([]),
|
|
@@ -44702,8 +44676,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
44702
44676
|
var urid = _.uniqueId();
|
|
44703
44677
|
var className = rowClassName(row, index);
|
|
44704
44678
|
var rw = _objectSpread2({}, row);
|
|
44705
|
-
var rowStyle = (_row$style = row === null || row ===
|
|
44706
|
-
var onDragStart = row === null || row ===
|
|
44679
|
+
var rowStyle = (_row$style = row === null || row === void 0 ? void 0 : row.style) !== null && _row$style !== void 0 ? _row$style : {};
|
|
44680
|
+
var onDragStart = row === null || row === void 0 ? void 0 : row.onDragStart;
|
|
44707
44681
|
delete rw.table;
|
|
44708
44682
|
delete rw.style;
|
|
44709
44683
|
delete rw.onDragStart;
|
|
@@ -44745,9 +44719,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
44745
44719
|
dynamic: [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]
|
|
44746
44720
|
}, "tr.__jsx-style-dynamic-selector{-webkit-transition:background-color 0.25s ease;transition:background-color 0.25s ease;font-size:inherit;}tr.hover.__jsx-style-dynamic-selector:hover{background-color:".concat(theme.palette.accents_1, ";}tr.draggable.__jsx-style-dynamic-selector:hover{border:2px dashed #dfdfdf;margin:3px;}tr.__jsx-style-dynamic-selector td{padding:0 0.5em;border-bottom:1px solid ").concat(theme.palette.border, ";color:").concat(theme.palette.accents_6, ";font-size:calc(0.875 * var(--table-font-size));text-align:left;}tr.__jsx-style-dynamic-selector .cell{min-height:calc(2.125 * var(--table-font-size));display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;}")));
|
|
44747
44721
|
}
|
|
44748
|
-
if ((data === null || data ===
|
|
44722
|
+
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
44749
44723
|
return /*#__PURE__*/React$1.createElement("tbody", null, /*#__PURE__*/React$1.createElement("tr", null, /*#__PURE__*/React$1.createElement("td", {
|
|
44750
|
-
colSpan: columns === null || columns ===
|
|
44724
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length
|
|
44751
44725
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Placeholder, {
|
|
44752
44726
|
empty: true,
|
|
44753
44727
|
msg: "No Entries Found"
|
|
@@ -44768,7 +44742,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
44768
44742
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
44769
44743
|
}, "\u2003"));
|
|
44770
44744
|
}
|
|
44771
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, renderRow(columns, row, index), (row === null || row ===
|
|
44745
|
+
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, renderRow(columns, row, index), (row === null || row === void 0 ? void 0 : row.table) && /*#__PURE__*/React$1.createElement("tr", {
|
|
44772
44746
|
key: qid,
|
|
44773
44747
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
44774
44748
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
@@ -44782,11 +44756,11 @@ var TableBody = function TableBody(_ref) {
|
|
|
44782
44756
|
stickyHeader: false,
|
|
44783
44757
|
style: _objectSpread2({
|
|
44784
44758
|
height: 'auto !important'
|
|
44785
|
-
}, row === null || row ===
|
|
44786
|
-
menu: (_row$table2 = row.table) === null || _row$table2 ===
|
|
44787
|
-
rows: (_row$table3 = row.table) === null || _row$table3 ===
|
|
44788
|
-
heading: (_row$table4 = row.table) === null || _row$table4 ===
|
|
44789
|
-
cols: (_row$table5 = row.table) === null || _row$table5 ===
|
|
44759
|
+
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
44760
|
+
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
44761
|
+
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
44762
|
+
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
44763
|
+
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
44790
44764
|
}))));
|
|
44791
44765
|
|
|
44792
44766
|
// return (
|
|
@@ -44825,9 +44799,9 @@ var TableColumn = function TableColumn(columnProps) {
|
|
|
44825
44799
|
style = _ref.style,
|
|
44826
44800
|
color = _ref.color,
|
|
44827
44801
|
_ref$fontSize = _ref.fontSize,
|
|
44828
|
-
fontSize = _ref$fontSize ===
|
|
44802
|
+
fontSize = _ref$fontSize === void 0 ? 'smaller' : _ref$fontSize,
|
|
44829
44803
|
_ref$className = _ref.className,
|
|
44830
|
-
className = _ref$className ===
|
|
44804
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44831
44805
|
renderHandler = _ref.render;
|
|
44832
44806
|
var _useTableContext = useTableContext(),
|
|
44833
44807
|
updateColumn = _useTableContext.updateColumn;
|
|
@@ -44855,24 +44829,24 @@ var TableColumn = function TableColumn(columnProps) {
|
|
|
44855
44829
|
};
|
|
44856
44830
|
TableColumn.displayName = 'TableColumn';
|
|
44857
44831
|
|
|
44858
|
-
var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "
|
|
44832
|
+
var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
44859
44833
|
function TableComponent(tableProps) {
|
|
44860
44834
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
44861
44835
|
var _ref = tableProps,
|
|
44862
44836
|
children = _ref.children,
|
|
44863
44837
|
customData = _ref.data,
|
|
44864
44838
|
_ref$initialData = _ref.initialData,
|
|
44865
|
-
initialData = _ref$initialData ===
|
|
44839
|
+
initialData = _ref$initialData === void 0 ? [] : _ref$initialData,
|
|
44866
44840
|
_ref$hover = _ref.hover,
|
|
44867
|
-
hover = _ref$hover ===
|
|
44841
|
+
hover = _ref$hover === void 0 ? true : _ref$hover,
|
|
44868
44842
|
_ref$emptyText = _ref.emptyText,
|
|
44869
|
-
emptyText = _ref$emptyText ===
|
|
44843
|
+
emptyText = _ref$emptyText === void 0 ? '' : _ref$emptyText,
|
|
44870
44844
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44871
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44845
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44872
44846
|
_ref$readOnly = _ref.readOnly,
|
|
44873
|
-
readOnly = _ref$readOnly ===
|
|
44847
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44874
44848
|
_ref$cursorPagination = _ref.cursorPagination,
|
|
44875
|
-
cursorPagination = _ref$cursorPagination ===
|
|
44849
|
+
cursorPagination = _ref$cursorPagination === void 0 ? false : _ref$cursorPagination,
|
|
44876
44850
|
previousCursor = _ref.previousCursor,
|
|
44877
44851
|
nextCursor = _ref.nextCursor;
|
|
44878
44852
|
_ref.hasMore;
|
|
@@ -44881,19 +44855,17 @@ function TableComponent(tableProps) {
|
|
|
44881
44855
|
onRow = _ref.onRow,
|
|
44882
44856
|
onCell = _ref.onCell;
|
|
44883
44857
|
_ref.onChange;
|
|
44884
|
-
var
|
|
44885
|
-
|
|
44886
|
-
_ref$
|
|
44887
|
-
|
|
44888
|
-
_ref$stickyHeader = _ref.stickyHeader,
|
|
44889
|
-
stickyHeader = _ref$stickyHeader === undefined ? false : _ref$stickyHeader,
|
|
44858
|
+
var onPageChange = _ref.onPageChange;
|
|
44859
|
+
_ref.showFilters;
|
|
44860
|
+
var _ref$stickyHeader = _ref.stickyHeader,
|
|
44861
|
+
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
44890
44862
|
onSelected = _ref.onSelected,
|
|
44891
44863
|
dataLength = _ref.dataLength,
|
|
44892
44864
|
viewLength = _ref.viewLength,
|
|
44893
44865
|
_ref$className = _ref.className,
|
|
44894
|
-
className = _ref$className ===
|
|
44866
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44895
44867
|
_ref$rowClassName = _ref.rowClassName,
|
|
44896
|
-
rowClassName = _ref$rowClassName ===
|
|
44868
|
+
rowClassName = _ref$rowClassName === void 0 ? function () {
|
|
44897
44869
|
return '';
|
|
44898
44870
|
} : _ref$rowClassName,
|
|
44899
44871
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
@@ -44957,8 +44929,6 @@ function TableComponent(tableProps) {
|
|
|
44957
44929
|
}), /*#__PURE__*/React$1.createElement(TableHead, {
|
|
44958
44930
|
stickyHeader: stickyHeader,
|
|
44959
44931
|
columns: columns,
|
|
44960
|
-
onFilters: onFilters,
|
|
44961
|
-
showFilters: showFilters,
|
|
44962
44932
|
width: width
|
|
44963
44933
|
}), /*#__PURE__*/React$1.createElement(TableBody, {
|
|
44964
44934
|
data: data,
|
|
@@ -44973,7 +44943,7 @@ function TableComponent(tableProps) {
|
|
|
44973
44943
|
}), children, cursorPagination ? /*#__PURE__*/React$1.createElement("tfoot", {
|
|
44974
44944
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
44975
44945
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
44976
|
-
colSpan: columns === null || columns ===
|
|
44946
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
44977
44947
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
44978
44948
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
44979
44949
|
style: {
|
|
@@ -45007,7 +44977,7 @@ function TableComponent(tableProps) {
|
|
|
45007
44977
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React$1.createElement("tfoot", {
|
|
45008
44978
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
45009
44979
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
45010
|
-
colSpan: columns === null || columns ===
|
|
44980
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
45011
44981
|
className: _JSXStyle.dynamic([["1971279331", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]])
|
|
45012
44982
|
}, /*#__PURE__*/React$1.createElement(Pagination, {
|
|
45013
44983
|
style: {
|
|
@@ -45059,11 +45029,11 @@ var Highlight = function Highlight(_ref) {
|
|
|
45059
45029
|
var rect = _ref.rect,
|
|
45060
45030
|
visible = _ref.visible,
|
|
45061
45031
|
_ref$hoverHeightRatio = _ref.hoverHeightRatio,
|
|
45062
|
-
hoverHeightRatio = _ref$hoverHeightRatio ===
|
|
45032
|
+
hoverHeightRatio = _ref$hoverHeightRatio === void 0 ? 1 : _ref$hoverHeightRatio,
|
|
45063
45033
|
_ref$hoverWidthRatio = _ref.hoverWidthRatio,
|
|
45064
|
-
hoverWidthRatio = _ref$hoverWidthRatio ===
|
|
45034
|
+
hoverWidthRatio = _ref$hoverWidthRatio === void 0 ? 1 : _ref$hoverWidthRatio,
|
|
45065
45035
|
_ref$activeOpacity = _ref.activeOpacity,
|
|
45066
|
-
activeOpacity = _ref$activeOpacity ===
|
|
45036
|
+
activeOpacity = _ref$activeOpacity === void 0 ? 0.8 : _ref$activeOpacity,
|
|
45067
45037
|
className = _ref.className,
|
|
45068
45038
|
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
45069
45039
|
var theme = useTheme();
|
|
@@ -45095,26 +45065,26 @@ var TabsComponent = function TabsComponent(_ref) {
|
|
|
45095
45065
|
var userCustomInitialValue = _ref.initialValue,
|
|
45096
45066
|
value = _ref.value,
|
|
45097
45067
|
_ref$hideDivider = _ref.hideDivider,
|
|
45098
|
-
hideDivider = _ref$hideDivider ===
|
|
45068
|
+
hideDivider = _ref$hideDivider === void 0 ? false : _ref$hideDivider,
|
|
45099
45069
|
hideBorder = _ref.hideBorder,
|
|
45100
45070
|
children = _ref.children,
|
|
45101
45071
|
onChange = _ref.onChange,
|
|
45102
45072
|
_ref$className = _ref.className,
|
|
45103
|
-
className = _ref$className ===
|
|
45073
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45104
45074
|
_ref$leftSpace = _ref.leftSpace,
|
|
45105
|
-
leftSpace = _ref$leftSpace ===
|
|
45075
|
+
leftSpace = _ref$leftSpace === void 0 ? '12px' : _ref$leftSpace,
|
|
45106
45076
|
_ref$highlight = _ref.highlight,
|
|
45107
|
-
highlight = _ref$highlight ===
|
|
45077
|
+
highlight = _ref$highlight === void 0 ? true : _ref$highlight,
|
|
45108
45078
|
_ref$hoverHeightRatio = _ref.hoverHeightRatio,
|
|
45109
|
-
hoverHeightRatio = _ref$hoverHeightRatio ===
|
|
45079
|
+
hoverHeightRatio = _ref$hoverHeightRatio === void 0 ? 0.7 : _ref$hoverHeightRatio,
|
|
45110
45080
|
_ref$hoverWidthRatio = _ref.hoverWidthRatio,
|
|
45111
|
-
hoverWidthRatio = _ref$hoverWidthRatio ===
|
|
45081
|
+
hoverWidthRatio = _ref$hoverWidthRatio === void 0 ? 1.15 : _ref$hoverWidthRatio,
|
|
45112
45082
|
_ref$activeClassName = _ref.activeClassName,
|
|
45113
|
-
activeClassName = _ref$activeClassName ===
|
|
45083
|
+
activeClassName = _ref$activeClassName === void 0 ? '' : _ref$activeClassName,
|
|
45114
45084
|
_ref$activeStyle = _ref.activeStyle,
|
|
45115
|
-
activeStyle = _ref$activeStyle ===
|
|
45085
|
+
activeStyle = _ref$activeStyle === void 0 ? {} : _ref$activeStyle,
|
|
45116
45086
|
_ref$align = _ref.align,
|
|
45117
|
-
align = _ref$align ===
|
|
45087
|
+
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
45118
45088
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
45119
45089
|
var theme = useTheme();
|
|
45120
45090
|
var _useScale = useScale(),
|
|
@@ -45218,7 +45188,7 @@ var TabsItemComponent = function TabsItemComponent(_ref) {
|
|
|
45218
45188
|
value = _ref.value,
|
|
45219
45189
|
label = _ref.label,
|
|
45220
45190
|
_ref$disabled = _ref.disabled,
|
|
45221
|
-
disabled = _ref$disabled ===
|
|
45191
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
45222
45192
|
var _useScale = useScale(),
|
|
45223
45193
|
SCALES = _useScale.SCALES;
|
|
45224
45194
|
var _useTabsContext = useTabsContext(),
|
|
@@ -45318,12 +45288,12 @@ var getColors$1 = function getColors(type, palette, invert) {
|
|
|
45318
45288
|
};
|
|
45319
45289
|
var TagComponent = function TagComponent(_ref) {
|
|
45320
45290
|
var _ref$type = _ref.type,
|
|
45321
|
-
type = _ref$type ===
|
|
45291
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
45322
45292
|
children = _ref.children,
|
|
45323
45293
|
_ref$className = _ref.className,
|
|
45324
|
-
className = _ref$className ===
|
|
45294
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45325
45295
|
_ref$invert = _ref.invert,
|
|
45326
|
-
invert = _ref$invert ===
|
|
45296
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
45327
45297
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
45328
45298
|
var theme = useTheme();
|
|
45329
45299
|
var _useScale = useScale(),
|
|
@@ -45369,15 +45339,15 @@ var getColors = function getColors(palette, status) {
|
|
|
45369
45339
|
var _excluded$5 = ["initialChecked", "checked", "disabled", "onChange", "type", "className", "children"];
|
|
45370
45340
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
45371
45341
|
var _ref$initialChecked = _ref.initialChecked,
|
|
45372
|
-
initialChecked = _ref$initialChecked ===
|
|
45342
|
+
initialChecked = _ref$initialChecked === void 0 ? false : _ref$initialChecked,
|
|
45373
45343
|
checked = _ref.checked,
|
|
45374
45344
|
_ref$disabled = _ref.disabled,
|
|
45375
|
-
disabled = _ref$disabled ===
|
|
45345
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
45376
45346
|
onChange = _ref.onChange,
|
|
45377
45347
|
_ref$type = _ref.type,
|
|
45378
|
-
type = _ref$type ===
|
|
45348
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
45379
45349
|
_ref$className = _ref.className,
|
|
45380
|
-
className = _ref$className ===
|
|
45350
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45381
45351
|
children = _ref.children,
|
|
45382
45352
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
45383
45353
|
var theme = useTheme();
|
|
@@ -45439,9 +45409,9 @@ var Toggle = withScale(ToggleComponent);
|
|
|
45439
45409
|
var TreeFileIcon = function TreeFileIcon(_ref) {
|
|
45440
45410
|
var color = _ref.color,
|
|
45441
45411
|
_ref$width = _ref.width,
|
|
45442
|
-
width = _ref$width ===
|
|
45412
|
+
width = _ref$width === void 0 ? 22 : _ref$width,
|
|
45443
45413
|
_ref$height = _ref.height,
|
|
45444
|
-
height = _ref$height ===
|
|
45414
|
+
height = _ref$height === void 0 ? 22 : _ref$height;
|
|
45445
45415
|
var theme = useTheme();
|
|
45446
45416
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45447
45417
|
viewBox: "0 0 24 24",
|
|
@@ -45513,12 +45483,12 @@ var _excluded$4 = ["name", "parentPath", "level", "extra", "className"];
|
|
|
45513
45483
|
var TreeFile = function TreeFile(_ref) {
|
|
45514
45484
|
var name = _ref.name,
|
|
45515
45485
|
_ref$parentPath = _ref.parentPath,
|
|
45516
|
-
parentPath = _ref$parentPath ===
|
|
45486
|
+
parentPath = _ref$parentPath === void 0 ? '' : _ref$parentPath,
|
|
45517
45487
|
_ref$level = _ref.level,
|
|
45518
|
-
level = _ref$level ===
|
|
45488
|
+
level = _ref$level === void 0 ? 0 : _ref$level,
|
|
45519
45489
|
extra = _ref.extra,
|
|
45520
45490
|
_ref$className = _ref.className,
|
|
45521
|
-
className = _ref$className ===
|
|
45491
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45522
45492
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
45523
45493
|
var theme = useTheme();
|
|
45524
45494
|
var _useTreeContext = useTreeContext(),
|
|
@@ -45554,9 +45524,9 @@ TreeFile.displayName = 'TreeFile';
|
|
|
45554
45524
|
var TreeFolderIcon = function TreeFolderIcon(_ref) {
|
|
45555
45525
|
var color = _ref.color,
|
|
45556
45526
|
_ref$width = _ref.width,
|
|
45557
|
-
width = _ref$width ===
|
|
45527
|
+
width = _ref$width === void 0 ? 22 : _ref$width,
|
|
45558
45528
|
_ref$height = _ref.height,
|
|
45559
|
-
height = _ref$height ===
|
|
45529
|
+
height = _ref$height === void 0 ? 22 : _ref$height;
|
|
45560
45530
|
var theme = useTheme();
|
|
45561
45531
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45562
45532
|
viewBox: "0 0 24 24",
|
|
@@ -45582,11 +45552,11 @@ TreeFolderIcon.displayName = 'TreeFolderIcon';
|
|
|
45582
45552
|
var TreeStatusIcon = function TreeStatusIcon(_ref) {
|
|
45583
45553
|
var color = _ref.color,
|
|
45584
45554
|
_ref$width = _ref.width,
|
|
45585
|
-
width = _ref$width ===
|
|
45555
|
+
width = _ref$width === void 0 ? 12 : _ref$width,
|
|
45586
45556
|
_ref$height = _ref.height,
|
|
45587
|
-
height = _ref$height ===
|
|
45557
|
+
height = _ref$height === void 0 ? 12 : _ref$height,
|
|
45588
45558
|
_ref$active = _ref.active,
|
|
45589
|
-
active = _ref$active ===
|
|
45559
|
+
active = _ref$active === void 0 ? false : _ref$active;
|
|
45590
45560
|
var theme = useTheme();
|
|
45591
45561
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45592
45562
|
viewBox: "0 0 24 24",
|
|
@@ -45624,11 +45594,11 @@ var _excluded$3 = ["name", "children", "parentPath", "level", "extra", "classNam
|
|
|
45624
45594
|
var _TreeFolder = function TreeFolder(_ref) {
|
|
45625
45595
|
var name = _ref.name,
|
|
45626
45596
|
_ref$children = _ref.children,
|
|
45627
|
-
children = _ref$children ===
|
|
45597
|
+
children = _ref$children === void 0 ? '' : _ref$children,
|
|
45628
45598
|
_ref$parentPath = _ref.parentPath,
|
|
45629
|
-
parentPath = _ref$parentPath ===
|
|
45599
|
+
parentPath = _ref$parentPath === void 0 ? '' : _ref$parentPath,
|
|
45630
45600
|
_ref$level = _ref.level,
|
|
45631
|
-
parentLevel = _ref$level ===
|
|
45601
|
+
parentLevel = _ref$level === void 0 ? 0 : _ref$level,
|
|
45632
45602
|
extra = _ref.extra,
|
|
45633
45603
|
className = _ref.className,
|
|
45634
45604
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
@@ -45710,7 +45680,7 @@ var Tree = function Tree(_ref) {
|
|
|
45710
45680
|
var children = _ref.children,
|
|
45711
45681
|
onClick = _ref.onClick,
|
|
45712
45682
|
_ref$initialExpand = _ref.initialExpand,
|
|
45713
|
-
initialExpand = _ref$initialExpand ===
|
|
45683
|
+
initialExpand = _ref$initialExpand === void 0 ? false : _ref$initialExpand,
|
|
45714
45684
|
value = _ref.value,
|
|
45715
45685
|
className = _ref.className,
|
|
45716
45686
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
@@ -45871,7 +45841,7 @@ function useTimer() {
|
|
|
45871
45841
|
expiry = _ref.expiryTimestamp,
|
|
45872
45842
|
onExpire = _ref.onExpire,
|
|
45873
45843
|
_ref$autoStart = _ref.autoStart,
|
|
45874
|
-
autoStart = _ref$autoStart ===
|
|
45844
|
+
autoStart = _ref$autoStart === void 0 ? true : _ref$autoStart;
|
|
45875
45845
|
var _useState = React$1.useState(expiry),
|
|
45876
45846
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45877
45847
|
expiryTimestamp = _useState2[0],
|
|
@@ -46011,7 +45981,7 @@ var UserComponent = function UserComponent(_ref) {
|
|
|
46011
45981
|
name = _ref.name,
|
|
46012
45982
|
children = _ref.children,
|
|
46013
45983
|
_ref$className = _ref.className,
|
|
46014
|
-
className = _ref$className ===
|
|
45984
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46015
45985
|
altText = _ref.altText,
|
|
46016
45986
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
46017
45987
|
var theme = useTheme();
|
|
@@ -46044,7 +46014,7 @@ var _excluded = ["href", "className", "children"];
|
|
|
46044
46014
|
var UserLink = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
46045
46015
|
var href = _ref.href,
|
|
46046
46016
|
_ref$className = _ref.className,
|
|
46047
|
-
className = _ref$className ===
|
|
46017
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46048
46018
|
children = _ref.children,
|
|
46049
46019
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
46050
46020
|
return /*#__PURE__*/React$1.createElement("div", _extends({}, props, {
|
|
@@ -46087,9 +46057,9 @@ var makeQueries = function makeQueries(bp, up, down) {
|
|
|
46087
46057
|
var useMediaQuery = function useMediaQuery(breakpoint) {
|
|
46088
46058
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultResponsiveOptions;
|
|
46089
46059
|
var _options$match = options.match,
|
|
46090
|
-
matchType = _options$match ===
|
|
46060
|
+
matchType = _options$match === void 0 ? 'default' : _options$match,
|
|
46091
46061
|
_options$ssrMatchMedi = options.ssrMatchMedia,
|
|
46092
|
-
ssrMatchMedia = _options$ssrMatchMedi ===
|
|
46062
|
+
ssrMatchMedia = _options$ssrMatchMedi === void 0 ? null : _options$ssrMatchMedi;
|
|
46093
46063
|
var supportMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
46094
46064
|
var theme = useTheme();
|
|
46095
46065
|
var mediaQueries = React$1.useMemo(function () {
|
|
@@ -46239,7 +46209,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
46239
46209
|
width !== null ? skeletonStyle.width = width : skeletonStyle.width = "";
|
|
46240
46210
|
height !== null ? skeletonStyle.height = height : skeletonStyle.height = "";
|
|
46241
46211
|
shape === "circle" ? skeletonStyle.borderRadius = "50%" : skeletonStyle.borderRadius = "";
|
|
46242
|
-
style !== null ? skeletonStyle = _objectSpread2(_objectSpread2({}, skeletonStyle), style) :
|
|
46212
|
+
style !== null ? skeletonStyle = _objectSpread2(_objectSpread2({}, skeletonStyle), style) : void 0;
|
|
46243
46213
|
backgroundColor !== null ? skeletonStyle.backgroundColor = backgroundColor : skeletonStyle.backgroundColor = "white";
|
|
46244
46214
|
if (duration) setTimeout(hideSkeleton, duration);
|
|
46245
46215
|
|
|
@@ -46384,14 +46354,14 @@ var CartProvider = function CartProvider(_ref) {
|
|
|
46384
46354
|
var children = _ref.children,
|
|
46385
46355
|
cartId = _ref.id,
|
|
46386
46356
|
_ref$defaultItems = _ref.defaultItems,
|
|
46387
|
-
defaultItems = _ref$defaultItems ===
|
|
46357
|
+
defaultItems = _ref$defaultItems === void 0 ? [] : _ref$defaultItems,
|
|
46388
46358
|
onSetItems = _ref.onSetItems,
|
|
46389
46359
|
onItemAdd = _ref.onItemAdd,
|
|
46390
46360
|
onItemUpdate = _ref.onItemUpdate,
|
|
46391
46361
|
onItemRemove = _ref.onItemRemove,
|
|
46392
46362
|
onEmptyCart = _ref.onEmptyCart,
|
|
46393
46363
|
_ref$storage = _ref.storage,
|
|
46394
|
-
storage = _ref$storage ===
|
|
46364
|
+
storage = _ref$storage === void 0 ? useLocalStorage : _ref$storage,
|
|
46395
46365
|
metadata = _ref.metadata;
|
|
46396
46366
|
var id = cartId ? cartId : createCartIdentifier();
|
|
46397
46367
|
var _storage = storage(cartId ? "react-use-cart-".concat(id) : "react-use-cart", JSON.stringify(_objectSpread2(_objectSpread2({
|
|
@@ -46550,32 +46520,32 @@ var _window$2 = global.window;
|
|
|
46550
46520
|
var LoginSocialFacebook = function LoginSocialFacebook(_ref) {
|
|
46551
46521
|
var appId = _ref.appId,
|
|
46552
46522
|
_ref$scope = _ref.scope,
|
|
46553
|
-
scope = _ref$scope ===
|
|
46523
|
+
scope = _ref$scope === void 0 ? 'email,public_profile' : _ref$scope,
|
|
46554
46524
|
_ref$state = _ref.state,
|
|
46555
|
-
state = _ref$state ===
|
|
46525
|
+
state = _ref$state === void 0 ? true : _ref$state,
|
|
46556
46526
|
_ref$xfbml = _ref.xfbml,
|
|
46557
|
-
xfbml = _ref$xfbml ===
|
|
46527
|
+
xfbml = _ref$xfbml === void 0 ? true : _ref$xfbml,
|
|
46558
46528
|
_ref$cookie = _ref.cookie,
|
|
46559
|
-
cookie = _ref$cookie ===
|
|
46529
|
+
cookie = _ref$cookie === void 0 ? true : _ref$cookie,
|
|
46560
46530
|
_ref$version = _ref.version,
|
|
46561
|
-
version = _ref$version ===
|
|
46531
|
+
version = _ref$version === void 0 ? 'v2.7' : _ref$version,
|
|
46562
46532
|
_ref$language = _ref.language,
|
|
46563
|
-
language = _ref$language ===
|
|
46533
|
+
language = _ref$language === void 0 ? 'en_EN' : _ref$language,
|
|
46564
46534
|
_ref$auth_type = _ref.auth_type,
|
|
46565
|
-
auth_type = _ref$auth_type ===
|
|
46535
|
+
auth_type = _ref$auth_type === void 0 ? '' : _ref$auth_type,
|
|
46566
46536
|
className = _ref.className,
|
|
46567
46537
|
onLoginStart = _ref.onLoginStart,
|
|
46568
46538
|
onReject = _ref.onReject,
|
|
46569
46539
|
onResolve = _ref.onResolve,
|
|
46570
46540
|
redirect_uri = _ref.redirect_uri,
|
|
46571
46541
|
_ref$fieldsProfile = _ref.fieldsProfile,
|
|
46572
|
-
fieldsProfile = _ref$fieldsProfile ===
|
|
46542
|
+
fieldsProfile = _ref$fieldsProfile === void 0 ? 'id,first_name,last_name,middle_name,name,name_format,picture,short_name,email,gender' : _ref$fieldsProfile,
|
|
46573
46543
|
_ref$response_type = _ref.response_type,
|
|
46574
|
-
response_type = _ref$response_type ===
|
|
46544
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
46575
46545
|
_ref$return_scopes = _ref.return_scopes,
|
|
46576
|
-
return_scopes = _ref$return_scopes ===
|
|
46546
|
+
return_scopes = _ref$return_scopes === void 0 ? true : _ref$return_scopes,
|
|
46577
46547
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46578
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46548
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46579
46549
|
children = _ref.children;
|
|
46580
46550
|
var scriptNodeRef = React$1.useRef(null);
|
|
46581
46551
|
var _useState = React$1.useState(false),
|
|
@@ -46690,36 +46660,36 @@ var _window$1 = global.window;
|
|
|
46690
46660
|
var LoginSocialGoogle = function LoginSocialGoogle(_ref) {
|
|
46691
46661
|
var client_id = _ref.client_id,
|
|
46692
46662
|
_ref$scope = _ref.scope,
|
|
46693
|
-
scope = _ref$scope ===
|
|
46663
|
+
scope = _ref$scope === void 0 ? 'https://www.googleapis.com/auth/userinfo.profile' : _ref$scope,
|
|
46694
46664
|
_ref$prompt = _ref.prompt,
|
|
46695
|
-
prompt = _ref$prompt ===
|
|
46665
|
+
prompt = _ref$prompt === void 0 ? 'select_account' : _ref$prompt,
|
|
46696
46666
|
_ref$typeResponse = _ref.typeResponse,
|
|
46697
|
-
typeResponse = _ref$typeResponse ===
|
|
46667
|
+
typeResponse = _ref$typeResponse === void 0 ? 'accessToken' : _ref$typeResponse,
|
|
46698
46668
|
ux_mode = _ref.ux_mode,
|
|
46699
46669
|
_ref$className = _ref.className,
|
|
46700
|
-
className = _ref$className ===
|
|
46670
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46701
46671
|
_ref$login_hint = _ref.login_hint,
|
|
46702
|
-
login_hint = _ref$login_hint ===
|
|
46672
|
+
login_hint = _ref$login_hint === void 0 ? '' : _ref$login_hint,
|
|
46703
46673
|
_ref$access_type = _ref.access_type,
|
|
46704
|
-
access_type = _ref$access_type ===
|
|
46674
|
+
access_type = _ref$access_type === void 0 ? 'online' : _ref$access_type,
|
|
46705
46675
|
onLoginStart = _ref.onLoginStart,
|
|
46706
46676
|
onReject = _ref.onReject,
|
|
46707
46677
|
onResolve = _ref.onResolve,
|
|
46708
46678
|
_ref$redirect_uri = _ref.redirect_uri,
|
|
46709
|
-
redirect_uri = _ref$redirect_uri ===
|
|
46679
|
+
redirect_uri = _ref$redirect_uri === void 0 ? '/' : _ref$redirect_uri,
|
|
46710
46680
|
_ref$auto_select = _ref.auto_select,
|
|
46711
|
-
auto_select = _ref$auto_select ===
|
|
46681
|
+
auto_select = _ref$auto_select === void 0 ? false : _ref$auto_select,
|
|
46712
46682
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46713
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46683
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46714
46684
|
_ref$cookie_policy = _ref.cookie_policy,
|
|
46715
|
-
cookie_policy = _ref$cookie_policy ===
|
|
46685
|
+
cookie_policy = _ref$cookie_policy === void 0 ? 'single_host_origin' : _ref$cookie_policy,
|
|
46716
46686
|
_ref$hosted_domain = _ref.hosted_domain,
|
|
46717
|
-
hosted_domain = _ref$hosted_domain ===
|
|
46687
|
+
hosted_domain = _ref$hosted_domain === void 0 ? '' : _ref$hosted_domain,
|
|
46718
46688
|
_ref$discoveryDocs = _ref.discoveryDocs,
|
|
46719
|
-
discoveryDocs = _ref$discoveryDocs ===
|
|
46689
|
+
discoveryDocs = _ref$discoveryDocs === void 0 ? '' : _ref$discoveryDocs,
|
|
46720
46690
|
children = _ref.children,
|
|
46721
46691
|
_ref$fetch_basic_prof = _ref.fetch_basic_profile,
|
|
46722
|
-
fetch_basic_profile = _ref$fetch_basic_prof ===
|
|
46692
|
+
fetch_basic_profile = _ref$fetch_basic_prof === void 0 ? true : _ref$fetch_basic_prof;
|
|
46723
46693
|
var scriptNodeRef = React$1.useRef(null);
|
|
46724
46694
|
var _useState = React$1.useState(false),
|
|
46725
46695
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46798,7 +46768,7 @@ var LoginSocialGoogle = function LoginSocialGoogle(_ref) {
|
|
|
46798
46768
|
provider: 'google',
|
|
46799
46769
|
data: res
|
|
46800
46770
|
});else {
|
|
46801
|
-
if (res !== null && res !==
|
|
46771
|
+
if (res !== null && res !== void 0 && res.access_token) {
|
|
46802
46772
|
if (isOnlyGetToken) onResolve({
|
|
46803
46773
|
provider: 'google',
|
|
46804
46774
|
data: res
|
|
@@ -46882,20 +46852,20 @@ var PREVENT_CORS_URL$4 = ''; //https://cors.bridged.cc
|
|
|
46882
46852
|
|
|
46883
46853
|
var LoginSocialGithub$1 = function LoginSocialGithub(_ref) {
|
|
46884
46854
|
var _ref$state = _ref.state,
|
|
46885
|
-
state = _ref$state ===
|
|
46855
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
46886
46856
|
_ref$scope = _ref.scope,
|
|
46887
|
-
scope = _ref$scope ===
|
|
46857
|
+
scope = _ref$scope === void 0 ? 'repo,gist' : _ref$scope,
|
|
46888
46858
|
client_id = _ref.client_id,
|
|
46889
46859
|
client_secret = _ref.client_secret,
|
|
46890
46860
|
_ref$className = _ref.className,
|
|
46891
|
-
className = _ref$className ===
|
|
46861
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46892
46862
|
redirect_uri = _ref.redirect_uri,
|
|
46893
46863
|
_ref$allow_signup = _ref.allow_signup,
|
|
46894
|
-
allow_signup = _ref$allow_signup ===
|
|
46864
|
+
allow_signup = _ref$allow_signup === void 0 ? false : _ref$allow_signup,
|
|
46895
46865
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46896
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46866
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46897
46867
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
46898
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
46868
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
46899
46869
|
children = _ref.children,
|
|
46900
46870
|
onReject = _ref.onReject,
|
|
46901
46871
|
onResolve = _ref.onResolve,
|
|
@@ -46904,7 +46874,7 @@ var LoginSocialGithub$1 = function LoginSocialGithub(_ref) {
|
|
|
46904
46874
|
var popupWindowURL = new URL(window.location.href);
|
|
46905
46875
|
var code = popupWindowURL.searchParams.get('code');
|
|
46906
46876
|
var state = popupWindowURL.searchParams.get('state');
|
|
46907
|
-
if (state !== null && state !==
|
|
46877
|
+
if (state !== null && state !== void 0 && state.includes('_github') && code) {
|
|
46908
46878
|
localStorage.setItem('github', code);
|
|
46909
46879
|
window.close();
|
|
46910
46880
|
}
|
|
@@ -47029,21 +46999,21 @@ var INSTAGRAM_API_URL = 'https://graph.instagram.com/';
|
|
|
47029
46999
|
var PREVENT_CORS_URL$3 = '';
|
|
47030
47000
|
var LoginSocialInstagram = function LoginSocialInstagram(_ref) {
|
|
47031
47001
|
var _ref$state = _ref.state,
|
|
47032
|
-
state = _ref$state ===
|
|
47002
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47033
47003
|
client_id = _ref.client_id,
|
|
47034
47004
|
client_secret = _ref.client_secret,
|
|
47035
47005
|
className = _ref.className,
|
|
47036
47006
|
redirect_uri = _ref.redirect_uri,
|
|
47037
47007
|
_ref$fields = _ref.fields,
|
|
47038
|
-
fields = _ref$fields ===
|
|
47008
|
+
fields = _ref$fields === void 0 ? 'id,username,account_type,media_count' : _ref$fields,
|
|
47039
47009
|
_ref$scope = _ref.scope,
|
|
47040
|
-
scope = _ref$scope ===
|
|
47010
|
+
scope = _ref$scope === void 0 ? 'user_profile,user_media' : _ref$scope,
|
|
47041
47011
|
_ref$response_type = _ref.response_type,
|
|
47042
|
-
response_type = _ref$response_type ===
|
|
47012
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47043
47013
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47044
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47014
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47045
47015
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47046
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47016
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47047
47017
|
children = _ref.children,
|
|
47048
47018
|
onReject = _ref.onReject,
|
|
47049
47019
|
onResolve = _ref.onResolve,
|
|
@@ -47052,7 +47022,7 @@ var LoginSocialInstagram = function LoginSocialInstagram(_ref) {
|
|
|
47052
47022
|
var popupWindowURL = new URL(window.location.href);
|
|
47053
47023
|
var code = popupWindowURL.searchParams.get('code');
|
|
47054
47024
|
var state = popupWindowURL.searchParams.get('state');
|
|
47055
|
-
if (state !== null && state !==
|
|
47025
|
+
if (state !== null && state !== void 0 && state.includes('_instagram') && code) {
|
|
47056
47026
|
localStorage.setItem('instagram', code);
|
|
47057
47027
|
window.close();
|
|
47058
47028
|
}
|
|
@@ -47163,29 +47133,29 @@ var MICROSOFT_API_URL = 'https://graph.microsoft.com';
|
|
|
47163
47133
|
|
|
47164
47134
|
var LoginSocialMicrosoft = function LoginSocialMicrosoft(_ref) {
|
|
47165
47135
|
var _ref$tenant = _ref.tenant,
|
|
47166
|
-
tenant = _ref$tenant ===
|
|
47136
|
+
tenant = _ref$tenant === void 0 ? 'common' : _ref$tenant,
|
|
47167
47137
|
_ref$state = _ref.state,
|
|
47168
|
-
state = _ref$state ===
|
|
47138
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47169
47139
|
client_id = _ref.client_id,
|
|
47170
47140
|
className = _ref.className,
|
|
47171
47141
|
redirect_uri = _ref.redirect_uri,
|
|
47172
47142
|
_ref$scope = _ref.scope,
|
|
47173
|
-
scope = _ref$scope ===
|
|
47143
|
+
scope = _ref$scope === void 0 ? 'profile openid email' : _ref$scope,
|
|
47174
47144
|
_ref$response_type = _ref.response_type,
|
|
47175
|
-
response_type = _ref$response_type ===
|
|
47145
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47176
47146
|
_ref$response_mode = _ref.response_mode,
|
|
47177
|
-
response_mode = _ref$response_mode ===
|
|
47147
|
+
response_mode = _ref$response_mode === void 0 ? 'query' : _ref$response_mode,
|
|
47178
47148
|
children = _ref.children,
|
|
47179
47149
|
_ref$code_challenge = _ref.code_challenge,
|
|
47180
|
-
code_challenge = _ref$code_challenge ===
|
|
47150
|
+
code_challenge = _ref$code_challenge === void 0 ? '19cfc47c216dacba8ca23eeee817603e2ba34fe0976378662ba31688ed302fa9' : _ref$code_challenge,
|
|
47181
47151
|
_ref$code_challenge_m = _ref.code_challenge_method,
|
|
47182
|
-
code_challenge_method = _ref$code_challenge_m ===
|
|
47152
|
+
code_challenge_method = _ref$code_challenge_m === void 0 ? 'plain' : _ref$code_challenge_m,
|
|
47183
47153
|
_ref$prompt = _ref.prompt,
|
|
47184
|
-
prompt = _ref$prompt ===
|
|
47154
|
+
prompt = _ref$prompt === void 0 ? 'select_account' : _ref$prompt,
|
|
47185
47155
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47186
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47156
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47187
47157
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47188
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47158
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47189
47159
|
onLoginStart = _ref.onLoginStart,
|
|
47190
47160
|
onReject = _ref.onReject,
|
|
47191
47161
|
onResolve = _ref.onResolve;
|
|
@@ -47193,7 +47163,7 @@ var LoginSocialMicrosoft = function LoginSocialMicrosoft(_ref) {
|
|
|
47193
47163
|
var popupWindowURL = new URL(window.location.href);
|
|
47194
47164
|
var code = popupWindowURL.searchParams.get('code');
|
|
47195
47165
|
var state = popupWindowURL.searchParams.get('state');
|
|
47196
|
-
if (state !== null && state !==
|
|
47166
|
+
if (state !== null && state !== void 0 && state.includes('_microsoft') && code) {
|
|
47197
47167
|
localStorage.setItem('microsoft', code);
|
|
47198
47168
|
window.close();
|
|
47199
47169
|
}
|
|
@@ -47305,20 +47275,20 @@ var LINKEDIN_API_URL = 'https://api.linkedin.com';
|
|
|
47305
47275
|
var PREVENT_CORS_URL$2 = '';
|
|
47306
47276
|
var LoginSocialLinkedin = function LoginSocialLinkedin(_ref) {
|
|
47307
47277
|
var _ref$state = _ref.state,
|
|
47308
|
-
state = _ref$state ===
|
|
47278
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47309
47279
|
_ref$scope = _ref.scope,
|
|
47310
|
-
scope = _ref$scope ===
|
|
47280
|
+
scope = _ref$scope === void 0 ? 'r_liteprofile' : _ref$scope,
|
|
47311
47281
|
client_id = _ref.client_id,
|
|
47312
47282
|
client_secret = _ref.client_secret,
|
|
47313
47283
|
_ref$className = _ref.className,
|
|
47314
|
-
className = _ref$className ===
|
|
47284
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47315
47285
|
redirect_uri = _ref.redirect_uri,
|
|
47316
47286
|
_ref$response_type = _ref.response_type,
|
|
47317
|
-
response_type = _ref$response_type ===
|
|
47287
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47318
47288
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47319
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47289
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47320
47290
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47321
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47291
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47322
47292
|
children = _ref.children,
|
|
47323
47293
|
onLoginStart = _ref.onLoginStart,
|
|
47324
47294
|
onReject = _ref.onReject,
|
|
@@ -47327,7 +47297,7 @@ var LoginSocialLinkedin = function LoginSocialLinkedin(_ref) {
|
|
|
47327
47297
|
var popupWindowURL = new URL(window.location.href);
|
|
47328
47298
|
var code = popupWindowURL.searchParams.get('code');
|
|
47329
47299
|
var state = popupWindowURL.searchParams.get('state');
|
|
47330
|
-
if (state !== null && state !==
|
|
47300
|
+
if (state !== null && state !== void 0 && state.includes('_linkedin') && code) {
|
|
47331
47301
|
localStorage.setItem('linkedin', code);
|
|
47332
47302
|
window.close();
|
|
47333
47303
|
}
|
|
@@ -47442,18 +47412,18 @@ var PINTEREST_URL_API = 'https://api.pinterest.com/v5';
|
|
|
47442
47412
|
var PREVENT_CORS_URL$1 = '';
|
|
47443
47413
|
var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
47444
47414
|
var _ref$state = _ref.state,
|
|
47445
|
-
state = _ref$state ===
|
|
47415
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47446
47416
|
_ref$scope = _ref.scope,
|
|
47447
|
-
scope = _ref$scope ===
|
|
47417
|
+
scope = _ref$scope === void 0 ? 'boards:read,pins:read,user_accounts:read' : _ref$scope,
|
|
47448
47418
|
client_id = _ref.client_id,
|
|
47449
47419
|
client_secret = _ref.client_secret,
|
|
47450
47420
|
_ref$className = _ref.className,
|
|
47451
|
-
className = _ref$className ===
|
|
47421
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47452
47422
|
redirect_uri = _ref.redirect_uri,
|
|
47453
47423
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47454
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47424
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47455
47425
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47456
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47426
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47457
47427
|
children = _ref.children,
|
|
47458
47428
|
onLoginStart = _ref.onLoginStart,
|
|
47459
47429
|
onReject = _ref.onReject,
|
|
@@ -47462,7 +47432,7 @@ var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
47462
47432
|
var popupWindowURL = new URL(window.location.href);
|
|
47463
47433
|
var code = popupWindowURL.searchParams.get('code');
|
|
47464
47434
|
var state = popupWindowURL.searchParams.get('state');
|
|
47465
|
-
if (state !== null && state !==
|
|
47435
|
+
if (state !== null && state !== void 0 && state.includes('_pinterest') && code) {
|
|
47466
47436
|
localStorage.setItem('pinterest', code);
|
|
47467
47437
|
window.close();
|
|
47468
47438
|
}
|
|
@@ -47601,19 +47571,19 @@ var PREVENT_CORS_URL = '';
|
|
|
47601
47571
|
var LoginSocialTwitter = function LoginSocialTwitter(_ref) {
|
|
47602
47572
|
var client_id = _ref.client_id,
|
|
47603
47573
|
_ref$className = _ref.className,
|
|
47604
|
-
className = _ref$className ===
|
|
47574
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47605
47575
|
redirect_uri = _ref.redirect_uri,
|
|
47606
47576
|
children = _ref.children,
|
|
47607
47577
|
_ref$fields = _ref.fields,
|
|
47608
|
-
fields = _ref$fields ===
|
|
47578
|
+
fields = _ref$fields === void 0 ? 'created_at,description,entities,id,location,name,pinned_tweet_id,profile_image_url,protected,public_metrics,url,username,verified,withheld' : _ref$fields,
|
|
47609
47579
|
_ref$state = _ref.state,
|
|
47610
|
-
state = _ref$state ===
|
|
47580
|
+
state = _ref$state === void 0 ? 'state' : _ref$state,
|
|
47611
47581
|
_ref$scope = _ref.scope,
|
|
47612
|
-
scope = _ref$scope ===
|
|
47582
|
+
scope = _ref$scope === void 0 ? 'users.read%20tweet.read' : _ref$scope,
|
|
47613
47583
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47614
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47584
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47615
47585
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47616
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47586
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47617
47587
|
onLoginStart = _ref.onLoginStart,
|
|
47618
47588
|
onReject = _ref.onReject,
|
|
47619
47589
|
onResolve = _ref.onResolve;
|
|
@@ -47621,7 +47591,7 @@ var LoginSocialTwitter = function LoginSocialTwitter(_ref) {
|
|
|
47621
47591
|
var popupWindowURL = new URL(window.location.href);
|
|
47622
47592
|
var code = popupWindowURL.searchParams.get('code');
|
|
47623
47593
|
var state = popupWindowURL.searchParams.get('state');
|
|
47624
|
-
if (state !== null && state !==
|
|
47594
|
+
if (state !== null && state !== void 0 && state.includes('_twitter') && code) {
|
|
47625
47595
|
localStorage.setItem('twitter', code);
|
|
47626
47596
|
window.close();
|
|
47627
47597
|
}
|
|
@@ -47765,14 +47735,14 @@ var _window = global.window;
|
|
|
47765
47735
|
var LoginSocialApple = function LoginSocialApple(_ref) {
|
|
47766
47736
|
var client_id = _ref.client_id,
|
|
47767
47737
|
_ref$scope = _ref.scope,
|
|
47768
|
-
scope = _ref$scope ===
|
|
47738
|
+
scope = _ref$scope === void 0 ? 'name email' : _ref$scope,
|
|
47769
47739
|
_ref$className = _ref.className,
|
|
47770
|
-
className = _ref$className ===
|
|
47740
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47771
47741
|
onLoginStart = _ref.onLoginStart,
|
|
47772
47742
|
onReject = _ref.onReject,
|
|
47773
47743
|
onResolve = _ref.onResolve,
|
|
47774
47744
|
_ref$redirect_uri = _ref.redirect_uri,
|
|
47775
|
-
redirect_uri = _ref$redirect_uri ===
|
|
47745
|
+
redirect_uri = _ref$redirect_uri === void 0 ? '/' : _ref$redirect_uri,
|
|
47776
47746
|
children = _ref.children;
|
|
47777
47747
|
var scriptNodeRef = React$1.useRef(null);
|
|
47778
47748
|
var _useState = React$1.useState(false),
|
|
@@ -47806,7 +47776,7 @@ var LoginSocialApple = function LoginSocialApple(_ref) {
|
|
|
47806
47776
|
appleScriptTag.onload = cb;
|
|
47807
47777
|
}, []);
|
|
47808
47778
|
var handleResponse = React$1.useCallback(function (res) {
|
|
47809
|
-
if (res !== null && res !==
|
|
47779
|
+
if (res !== null && res !== void 0 && res.access_token) {
|
|
47810
47780
|
onResolve({
|
|
47811
47781
|
provider: 'apple',
|
|
47812
47782
|
data: res
|
|
@@ -47894,12 +47864,12 @@ var TIKTOK_URL = 'https://www.tiktok.com';
|
|
|
47894
47864
|
|
|
47895
47865
|
var LoginSocialGithub = function LoginSocialGithub(_ref) {
|
|
47896
47866
|
var _ref$state = _ref.state,
|
|
47897
|
-
state = _ref$state ===
|
|
47867
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47898
47868
|
_ref$scope = _ref.scope,
|
|
47899
|
-
scope = _ref$scope ===
|
|
47869
|
+
scope = _ref$scope === void 0 ? 'user.info.basic' : _ref$scope,
|
|
47900
47870
|
client_key = _ref.client_key,
|
|
47901
47871
|
_ref$className = _ref.className,
|
|
47902
|
-
className = _ref$className ===
|
|
47872
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47903
47873
|
redirect_uri = _ref.redirect_uri,
|
|
47904
47874
|
children = _ref.children,
|
|
47905
47875
|
onResolve = _ref.onResolve,
|
|
@@ -47908,7 +47878,7 @@ var LoginSocialGithub = function LoginSocialGithub(_ref) {
|
|
|
47908
47878
|
var popupWindowURL = new URL(window.location.href);
|
|
47909
47879
|
var code = popupWindowURL.searchParams.get('code');
|
|
47910
47880
|
var state = popupWindowURL.searchParams.get('state');
|
|
47911
|
-
if (state !== null && state !==
|
|
47881
|
+
if (state !== null && state !== void 0 && state.includes('_tiktok') && code) {
|
|
47912
47882
|
localStorage.setItem('tiktok', code);
|
|
47913
47883
|
window.close();
|
|
47914
47884
|
}
|