@helpdice/ui 1.5.0 → 1.5.1
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 +551 -547
- 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 +224 -211
- 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 +6 -4
- package/esm/table/table.js +12 -1
- 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(),
|
|
@@ -43580,7 +43571,7 @@ var TableHead = function TableHead(props) {
|
|
|
43580
43571
|
var Header = col.label,
|
|
43581
43572
|
accessor = col.filter,
|
|
43582
43573
|
options = col.options;
|
|
43583
|
-
var filterName = (_String = String(col === null || col ===
|
|
43574
|
+
var filterName = (_String = String(col === null || col === void 0 ? void 0 : col.label)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
43584
43575
|
var unq_accessor = _.uniqueId(filterName);
|
|
43585
43576
|
// if (Header === 'actions') {
|
|
43586
43577
|
// return (
|
|
@@ -43599,7 +43590,7 @@ var TableHead = function TableHead(props) {
|
|
|
43599
43590
|
// key={unq_accessor}
|
|
43600
43591
|
// name={filterName}
|
|
43601
43592
|
, {
|
|
43602
|
-
value: (_filters$filterName = filters[filterName]) !== null && _filters$filterName !==
|
|
43593
|
+
value: (_filters$filterName = filters[filterName]) !== null && _filters$filterName !== void 0 ? _filters$filterName : 'All',
|
|
43603
43594
|
onChange: function onChange(newValue) {
|
|
43604
43595
|
return handleFilterChange(filterName, newValue);
|
|
43605
43596
|
}
|
|
@@ -43649,16 +43640,16 @@ var TableHead = function TableHead(props) {
|
|
|
43649
43640
|
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
43641
|
}, columns.map(function (column, index) {
|
|
43651
43642
|
var _String2;
|
|
43652
|
-
var dataName = (_String2 = String(column === null || column ===
|
|
43643
|
+
var dataName = (_String2 = String(column === null || column === void 0 ? void 0 : column.label)) === null || _String2 === void 0 ? void 0 : _String2.replace(' ', '_').toLowerCase();
|
|
43653
43644
|
return /*#__PURE__*/React$1.createElement("th", {
|
|
43654
43645
|
style: _objectSpread2({
|
|
43655
43646
|
// textAlign: `${column?.align} !important`,
|
|
43656
43647
|
// paddingLeft: '0.3rem',
|
|
43657
43648
|
// paddingRight: '0.3rem',
|
|
43658
43649
|
backgroundColor: '#fff',
|
|
43659
|
-
color: "".concat(column !== null && column !==
|
|
43660
|
-
whiteSpace: column !== null && column !==
|
|
43661
|
-
}, column === null || column ===
|
|
43650
|
+
color: "".concat(column !== null && column !== void 0 && column.color ? column === null || column === void 0 ? void 0 : column.color : '#333'),
|
|
43651
|
+
whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
|
|
43652
|
+
}, column === null || column === void 0 ? void 0 : column.style),
|
|
43662
43653
|
key: "table-th-".concat(column.prop.toString(), "-").concat(index),
|
|
43663
43654
|
"data-column": dataName,
|
|
43664
43655
|
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 || "")
|
|
@@ -43693,17 +43684,17 @@ var TableCell = function TableCell(_ref) {
|
|
|
43693
43684
|
var currentRowValue = row[column.prop];
|
|
43694
43685
|
var cellValue = currentRowValue || emptyText;
|
|
43695
43686
|
var shouldBeRenderElement = column.renderHandler(currentRowValue, row, rowIndex);
|
|
43696
|
-
var dataName = (_String = String(column === null || column ===
|
|
43687
|
+
var dataName = (_String = String(column === null || column === void 0 ? void 0 : column.label)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
43697
43688
|
return /*#__PURE__*/React$1.createElement("td", {
|
|
43698
43689
|
style: _objectSpread2({
|
|
43699
|
-
fontSize: "".concat(column === null || column ===
|
|
43700
|
-
textAlign: "".concat(column === null || column ===
|
|
43690
|
+
fontSize: "".concat(column === null || column === void 0 ? void 0 : column.fontSize),
|
|
43691
|
+
textAlign: "".concat(column === null || column === void 0 ? void 0 : column.align, " !important"),
|
|
43701
43692
|
paddingLeft: '0.3rem',
|
|
43702
43693
|
paddingRight: '0.3rem',
|
|
43703
|
-
color: "".concat(column === null || column ===
|
|
43694
|
+
color: "".concat(column === null || column === void 0 ? void 0 : column.color),
|
|
43704
43695
|
boxSizing: 'border-box',
|
|
43705
|
-
whiteSpace: column !== null && column !==
|
|
43706
|
-
}, currentRowValue === null || currentRowValue ===
|
|
43696
|
+
whiteSpace: column !== null && column !== void 0 && column.noWrap ? 'nowrap' : 'normal'
|
|
43697
|
+
}, currentRowValue === null || currentRowValue === void 0 ? void 0 : currentRowValue.style),
|
|
43707
43698
|
"data-column": dataName,
|
|
43708
43699
|
key: "row-td-".concat(index, "-").concat(column.prop.toString()),
|
|
43709
43700
|
onClick: function onClick() {
|
|
@@ -44044,9 +44035,9 @@ var TextChild = function TextChild(_ref) {
|
|
|
44044
44035
|
var children = _ref.children,
|
|
44045
44036
|
tag = _ref.tag,
|
|
44046
44037
|
_ref$className = _ref.className,
|
|
44047
|
-
className = _ref$className ===
|
|
44038
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44048
44039
|
_ref$type = _ref.type,
|
|
44049
|
-
type = _ref$type ===
|
|
44040
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
44050
44041
|
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
44051
44042
|
var Component = tag;
|
|
44052
44043
|
var theme = useTheme();
|
|
@@ -44103,36 +44094,36 @@ var _getModifierChild = function getModifierChild(tags, children) {
|
|
|
44103
44094
|
};
|
|
44104
44095
|
var TextComponent = function TextComponent(_ref) {
|
|
44105
44096
|
var _ref$h = _ref.h1,
|
|
44106
|
-
h1 = _ref$h ===
|
|
44097
|
+
h1 = _ref$h === void 0 ? false : _ref$h,
|
|
44107
44098
|
_ref$h2 = _ref.h2,
|
|
44108
|
-
h2 = _ref$h2 ===
|
|
44099
|
+
h2 = _ref$h2 === void 0 ? false : _ref$h2,
|
|
44109
44100
|
_ref$h3 = _ref.h3,
|
|
44110
|
-
h3 = _ref$h3 ===
|
|
44101
|
+
h3 = _ref$h3 === void 0 ? false : _ref$h3,
|
|
44111
44102
|
_ref$h4 = _ref.h4,
|
|
44112
|
-
h4 = _ref$h4 ===
|
|
44103
|
+
h4 = _ref$h4 === void 0 ? false : _ref$h4,
|
|
44113
44104
|
_ref$h5 = _ref.h5,
|
|
44114
|
-
h5 = _ref$h5 ===
|
|
44105
|
+
h5 = _ref$h5 === void 0 ? false : _ref$h5,
|
|
44115
44106
|
_ref$h6 = _ref.h6,
|
|
44116
|
-
h6 = _ref$h6 ===
|
|
44107
|
+
h6 = _ref$h6 === void 0 ? false : _ref$h6,
|
|
44117
44108
|
_ref$p = _ref.p,
|
|
44118
|
-
p = _ref$p ===
|
|
44109
|
+
p = _ref$p === void 0 ? false : _ref$p,
|
|
44119
44110
|
_ref$b = _ref.b,
|
|
44120
|
-
b = _ref$b ===
|
|
44111
|
+
b = _ref$b === void 0 ? false : _ref$b,
|
|
44121
44112
|
_ref$small = _ref.small,
|
|
44122
|
-
small = _ref$small ===
|
|
44113
|
+
small = _ref$small === void 0 ? false : _ref$small,
|
|
44123
44114
|
_ref$i = _ref.i,
|
|
44124
|
-
i = _ref$i ===
|
|
44115
|
+
i = _ref$i === void 0 ? false : _ref$i,
|
|
44125
44116
|
_ref$span = _ref.span,
|
|
44126
|
-
span = _ref$span ===
|
|
44117
|
+
span = _ref$span === void 0 ? false : _ref$span,
|
|
44127
44118
|
_ref$del = _ref.del,
|
|
44128
|
-
del = _ref$del ===
|
|
44119
|
+
del = _ref$del === void 0 ? false : _ref$del,
|
|
44129
44120
|
_ref$em = _ref.em,
|
|
44130
|
-
em = _ref$em ===
|
|
44121
|
+
em = _ref$em === void 0 ? false : _ref$em,
|
|
44131
44122
|
_ref$blockquote = _ref.blockquote,
|
|
44132
|
-
blockquote = _ref$blockquote ===
|
|
44123
|
+
blockquote = _ref$blockquote === void 0 ? false : _ref$blockquote,
|
|
44133
44124
|
children = _ref.children,
|
|
44134
44125
|
_ref$className = _ref.className,
|
|
44135
|
-
className = _ref$className ===
|
|
44126
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44136
44127
|
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
44137
44128
|
var elements = {
|
|
44138
44129
|
h1: h1,
|
|
@@ -44203,7 +44194,7 @@ function Placeholder(_ref) {
|
|
|
44203
44194
|
dataLength = _ref.dataLength,
|
|
44204
44195
|
children = _ref.children,
|
|
44205
44196
|
_ref$hide = _ref.hide,
|
|
44206
|
-
hide = _ref$hide ===
|
|
44197
|
+
hide = _ref$hide === void 0 ? false : _ref$hide;
|
|
44207
44198
|
msg = access_denied ? 'Access Denied!' : msg;
|
|
44208
44199
|
if (dataLength !== undefined && dataLength > 0 || hide) {
|
|
44209
44200
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, children);
|
|
@@ -44282,34 +44273,34 @@ function Placeholder(_ref) {
|
|
|
44282
44273
|
|
|
44283
44274
|
function DataTable(_ref) {
|
|
44284
44275
|
var _ref$cols = _ref.cols,
|
|
44285
|
-
cols = _ref$cols ===
|
|
44276
|
+
cols = _ref$cols === void 0 ? [] : _ref$cols,
|
|
44286
44277
|
_ref$rows = _ref.rows,
|
|
44287
|
-
rows = _ref$rows ===
|
|
44278
|
+
rows = _ref$rows === void 0 ? [] : _ref$rows,
|
|
44288
44279
|
_ref$readOnly = _ref.readOnly,
|
|
44289
|
-
readOnly = _ref$readOnly ===
|
|
44280
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44290
44281
|
_ref$heading = _ref.heading,
|
|
44291
|
-
heading = _ref$heading ===
|
|
44282
|
+
heading = _ref$heading === void 0 ? [] : _ref$heading,
|
|
44292
44283
|
_ref$filter = _ref.filter,
|
|
44293
|
-
filter = _ref$filter ===
|
|
44284
|
+
filter = _ref$filter === void 0 ? true : _ref$filter,
|
|
44294
44285
|
menu = _ref.menu,
|
|
44295
44286
|
_ref$sideMenu = _ref.sideMenu,
|
|
44296
|
-
sideMenu = _ref$sideMenu ===
|
|
44287
|
+
sideMenu = _ref$sideMenu === void 0 ? false : _ref$sideMenu,
|
|
44297
44288
|
_ref$style = _ref.style,
|
|
44298
|
-
style = _ref$style ===
|
|
44289
|
+
style = _ref$style === void 0 ? {} : _ref$style,
|
|
44299
44290
|
children = _ref.children,
|
|
44300
44291
|
_ref$onBack = _ref.onBack,
|
|
44301
|
-
onBack = _ref$onBack ===
|
|
44292
|
+
onBack = _ref$onBack === void 0 ? function () {
|
|
44302
44293
|
window.history.back();
|
|
44303
44294
|
} : _ref$onBack,
|
|
44304
44295
|
onRefresh = _ref.onRefresh,
|
|
44305
|
-
|
|
44296
|
+
_onFilters = _ref.onFilters,
|
|
44306
44297
|
onSelectedDelete = _ref.onSelectedDelete,
|
|
44307
44298
|
onSelectedEdit = _ref.onSelectedEdit,
|
|
44308
44299
|
onSelected = _ref.onSelected,
|
|
44309
44300
|
_ref$disableViewColum = _ref.disableViewColumn,
|
|
44310
|
-
disableViewColumn = _ref$disableViewColum ===
|
|
44301
|
+
disableViewColumn = _ref$disableViewColum === void 0 ? false : _ref$disableViewColum,
|
|
44311
44302
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44312
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44303
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44313
44304
|
onDragOver = _ref.onDragOver,
|
|
44314
44305
|
onDragEnter = _ref.onDragEnter,
|
|
44315
44306
|
onDragLeave = _ref.onDragLeave,
|
|
@@ -44319,15 +44310,15 @@ function DataTable(_ref) {
|
|
|
44319
44310
|
viewLength = _ref.viewLength,
|
|
44320
44311
|
_onPageChange = _ref.onPageChange,
|
|
44321
44312
|
_ref$disableMenu = _ref.disableMenu,
|
|
44322
|
-
disableMenu = _ref$disableMenu ===
|
|
44313
|
+
disableMenu = _ref$disableMenu === void 0 ? false : _ref$disableMenu,
|
|
44323
44314
|
_ref$cursorPagination = _ref.cursorPagination,
|
|
44324
|
-
cursorPagination = _ref$cursorPagination ===
|
|
44315
|
+
cursorPagination = _ref$cursorPagination === void 0 ? false : _ref$cursorPagination,
|
|
44325
44316
|
previousCursor = _ref.previousCursor,
|
|
44326
44317
|
nextCursor = _ref.nextCursor,
|
|
44327
44318
|
_ref$hasMore = _ref.hasMore,
|
|
44328
|
-
hasMore = _ref$hasMore ===
|
|
44319
|
+
hasMore = _ref$hasMore === void 0 ? false : _ref$hasMore,
|
|
44329
44320
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
44330
|
-
stickyHeader = _ref$stickyHeader ===
|
|
44321
|
+
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
44331
44322
|
onNextPage = _ref.onNextPage,
|
|
44332
44323
|
onPreviousPage = _ref.onPreviousPage;
|
|
44333
44324
|
var TABLE_ID = _.uniqueId('tbl');
|
|
@@ -44364,7 +44355,7 @@ function DataTable(_ref) {
|
|
|
44364
44355
|
React$1.useEffect(function () {
|
|
44365
44356
|
cols.forEach(function (col) {
|
|
44366
44357
|
var _String;
|
|
44367
|
-
var dataName = (_String = String(col === null || col ===
|
|
44358
|
+
var dataName = (_String = String(col === null || col === void 0 ? void 0 : col.name)) === null || _String === void 0 ? void 0 : _String.replace(' ', '_').toLowerCase();
|
|
44368
44359
|
if (hideColumn.includes(col.name)) {
|
|
44369
44360
|
document.querySelectorAll("[data-column=\"".concat(dataName, "\"]")).forEach(function (el) {
|
|
44370
44361
|
el.style.display = 'none !important';
|
|
@@ -44378,7 +44369,7 @@ function DataTable(_ref) {
|
|
|
44378
44369
|
}, [hideColumn, cols]);
|
|
44379
44370
|
function handleHideColumnClick(_event, _id) {
|
|
44380
44371
|
var _String2;
|
|
44381
|
-
var id = (_String2 = String(_id)) === null || _String2 ===
|
|
44372
|
+
var id = (_String2 = String(_id)) === null || _String2 === void 0 ? void 0 : _String2.replace(' ', '_').toLowerCase();
|
|
44382
44373
|
var selectedIndex = hideColumn.indexOf(id);
|
|
44383
44374
|
var newSelected = [];
|
|
44384
44375
|
if (selectedIndex === -1) {
|
|
@@ -44429,14 +44420,14 @@ function DataTable(_ref) {
|
|
|
44429
44420
|
|
|
44430
44421
|
var COLUMNS = cols.filter(function (col) {
|
|
44431
44422
|
var _String3;
|
|
44432
|
-
var dataName = (_String3 = String(col === null || col ===
|
|
44423
|
+
var dataName = (_String3 = String(col === null || col === void 0 ? void 0 : col.name)) === null || _String3 === void 0 ? void 0 : _String3.replace(' ', '_').toLowerCase();
|
|
44433
44424
|
return !hideColumn.includes(dataName);
|
|
44434
44425
|
});
|
|
44435
44426
|
var content = function content() {
|
|
44436
44427
|
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, cols.map(function (option, index) {
|
|
44437
44428
|
var _String4;
|
|
44438
44429
|
var colunqid = _.uniqueId("".concat(option.name, "-").concat(index));
|
|
44439
|
-
var dataName = (_String4 = String(option.name)) === null || _String4 ===
|
|
44430
|
+
var dataName = (_String4 = String(option.name)) === null || _String4 === void 0 ? void 0 : _String4.replace(' ', '_').toLowerCase();
|
|
44440
44431
|
var isSelected = !hideColumn.includes(dataName);
|
|
44441
44432
|
return /*#__PURE__*/React$1.createElement(Popover.Item, {
|
|
44442
44433
|
selected: isSelected,
|
|
@@ -44483,7 +44474,7 @@ function DataTable(_ref) {
|
|
|
44483
44474
|
},
|
|
44484
44475
|
justify: "flex-end",
|
|
44485
44476
|
alignContent: "center"
|
|
44486
|
-
}, menu, !children && !readOnly ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, onSelectedEdit && selected.length === 1 ? /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
44477
|
+
}, menu, !children && !readOnly ? /*#__PURE__*/React$1.createElement(React$1.Fragment, null, onSelected && onSelected, onSelectedEdit && selected.length === 1 ? /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
44487
44478
|
text: "Edit Selected",
|
|
44488
44479
|
placement: "bottom",
|
|
44489
44480
|
font: 0.8,
|
|
@@ -44531,7 +44522,7 @@ function DataTable(_ref) {
|
|
|
44531
44522
|
scale: 2 / 3,
|
|
44532
44523
|
px: 0.6,
|
|
44533
44524
|
iconRight: /*#__PURE__*/React$1.createElement(Refresh$1, null)
|
|
44534
|
-
})) : null,
|
|
44525
|
+
})) : null, _onFilters && filter ? /*#__PURE__*/React$1.createElement(Tooltip, {
|
|
44535
44526
|
text: "Filters",
|
|
44536
44527
|
placement: "bottomEnd",
|
|
44537
44528
|
font: 0.8,
|
|
@@ -44616,7 +44607,9 @@ function DataTable(_ref) {
|
|
|
44616
44607
|
onSelected: function onSelected(selected) {
|
|
44617
44608
|
return setSelected(selected);
|
|
44618
44609
|
},
|
|
44619
|
-
onFilters: onFilters
|
|
44610
|
+
onFilters: function onFilters(filters) {
|
|
44611
|
+
return _onFilters && _onFilters(filters);
|
|
44612
|
+
},
|
|
44620
44613
|
data: rows,
|
|
44621
44614
|
style: {
|
|
44622
44615
|
borderCollapse: 'collapse',
|
|
@@ -44624,15 +44617,15 @@ function DataTable(_ref) {
|
|
|
44624
44617
|
}
|
|
44625
44618
|
}, COLUMNS.map(function (column, index) {
|
|
44626
44619
|
return /*#__PURE__*/React$1.createElement(Table.Column, {
|
|
44627
|
-
style: column === null || column ===
|
|
44628
|
-
options: column === null || column ===
|
|
44629
|
-
fontSize: column === null || column ===
|
|
44620
|
+
style: column === null || column === void 0 ? void 0 : column.style,
|
|
44621
|
+
options: column === null || column === void 0 ? void 0 : column.options,
|
|
44622
|
+
fontSize: column === null || column === void 0 ? void 0 : column.fontSize,
|
|
44630
44623
|
key: "".concat(column.id, "-").concat(index),
|
|
44631
44624
|
prop: column.id,
|
|
44632
44625
|
label: column.name,
|
|
44633
|
-
filter: column === null || column ===
|
|
44634
|
-
noWrap: column === null || column ===
|
|
44635
|
-
align: column === null || column ===
|
|
44626
|
+
filter: column === null || column === void 0 ? void 0 : column.filter,
|
|
44627
|
+
noWrap: column === null || column === void 0 ? void 0 : column.noWrap,
|
|
44628
|
+
align: column === null || column === void 0 ? void 0 : column.align
|
|
44636
44629
|
});
|
|
44637
44630
|
})))));
|
|
44638
44631
|
}
|
|
@@ -44645,9 +44638,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
44645
44638
|
onCell = _ref.onCell,
|
|
44646
44639
|
rowClassName = _ref.rowClassName,
|
|
44647
44640
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44648
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44641
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44649
44642
|
_ref$readOnly = _ref.readOnly,
|
|
44650
|
-
readOnly = _ref$readOnly ===
|
|
44643
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44651
44644
|
onSelected = _ref.onSelected;
|
|
44652
44645
|
var theme = useTheme();
|
|
44653
44646
|
var _useState = React$1.useState([]),
|
|
@@ -44702,8 +44695,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
44702
44695
|
var urid = _.uniqueId();
|
|
44703
44696
|
var className = rowClassName(row, index);
|
|
44704
44697
|
var rw = _objectSpread2({}, row);
|
|
44705
|
-
var rowStyle = (_row$style = row === null || row ===
|
|
44706
|
-
var onDragStart = row === null || row ===
|
|
44698
|
+
var rowStyle = (_row$style = row === null || row === void 0 ? void 0 : row.style) !== null && _row$style !== void 0 ? _row$style : {};
|
|
44699
|
+
var onDragStart = row === null || row === void 0 ? void 0 : row.onDragStart;
|
|
44707
44700
|
delete rw.table;
|
|
44708
44701
|
delete rw.style;
|
|
44709
44702
|
delete rw.onDragStart;
|
|
@@ -44745,9 +44738,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
44745
44738
|
dynamic: [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]
|
|
44746
44739
|
}, "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
44740
|
}
|
|
44748
|
-
if ((data === null || data ===
|
|
44741
|
+
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
44749
44742
|
return /*#__PURE__*/React$1.createElement("tbody", null, /*#__PURE__*/React$1.createElement("tr", null, /*#__PURE__*/React$1.createElement("td", {
|
|
44750
|
-
colSpan: columns === null || columns ===
|
|
44743
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length
|
|
44751
44744
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Placeholder, {
|
|
44752
44745
|
empty: true,
|
|
44753
44746
|
msg: "No Entries Found"
|
|
@@ -44768,7 +44761,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
44768
44761
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
44769
44762
|
}, "\u2003"));
|
|
44770
44763
|
}
|
|
44771
|
-
return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, renderRow(columns, row, index), (row === null || row ===
|
|
44764
|
+
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
44765
|
key: qid,
|
|
44773
44766
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
44774
44767
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
@@ -44782,11 +44775,11 @@ var TableBody = function TableBody(_ref) {
|
|
|
44782
44775
|
stickyHeader: false,
|
|
44783
44776
|
style: _objectSpread2({
|
|
44784
44777
|
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 ===
|
|
44778
|
+
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
44779
|
+
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
44780
|
+
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
44781
|
+
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
44782
|
+
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
44790
44783
|
}))));
|
|
44791
44784
|
|
|
44792
44785
|
// return (
|
|
@@ -44825,9 +44818,9 @@ var TableColumn = function TableColumn(columnProps) {
|
|
|
44825
44818
|
style = _ref.style,
|
|
44826
44819
|
color = _ref.color,
|
|
44827
44820
|
_ref$fontSize = _ref.fontSize,
|
|
44828
|
-
fontSize = _ref$fontSize ===
|
|
44821
|
+
fontSize = _ref$fontSize === void 0 ? 'smaller' : _ref$fontSize,
|
|
44829
44822
|
_ref$className = _ref.className,
|
|
44830
|
-
className = _ref$className ===
|
|
44823
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44831
44824
|
renderHandler = _ref.render;
|
|
44832
44825
|
var _useTableContext = useTableContext(),
|
|
44833
44826
|
updateColumn = _useTableContext.updateColumn;
|
|
@@ -44862,17 +44855,17 @@ function TableComponent(tableProps) {
|
|
|
44862
44855
|
children = _ref.children,
|
|
44863
44856
|
customData = _ref.data,
|
|
44864
44857
|
_ref$initialData = _ref.initialData,
|
|
44865
|
-
initialData = _ref$initialData ===
|
|
44858
|
+
initialData = _ref$initialData === void 0 ? [] : _ref$initialData,
|
|
44866
44859
|
_ref$hover = _ref.hover,
|
|
44867
|
-
hover = _ref$hover ===
|
|
44860
|
+
hover = _ref$hover === void 0 ? true : _ref$hover,
|
|
44868
44861
|
_ref$emptyText = _ref.emptyText,
|
|
44869
|
-
emptyText = _ref$emptyText ===
|
|
44862
|
+
emptyText = _ref$emptyText === void 0 ? '' : _ref$emptyText,
|
|
44870
44863
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44871
|
-
rowDraggable = _ref$rowDraggable ===
|
|
44864
|
+
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44872
44865
|
_ref$readOnly = _ref.readOnly,
|
|
44873
|
-
readOnly = _ref$readOnly ===
|
|
44866
|
+
readOnly = _ref$readOnly === void 0 ? false : _ref$readOnly,
|
|
44874
44867
|
_ref$cursorPagination = _ref.cursorPagination,
|
|
44875
|
-
cursorPagination = _ref$cursorPagination ===
|
|
44868
|
+
cursorPagination = _ref$cursorPagination === void 0 ? false : _ref$cursorPagination,
|
|
44876
44869
|
previousCursor = _ref.previousCursor,
|
|
44877
44870
|
nextCursor = _ref.nextCursor;
|
|
44878
44871
|
_ref.hasMore;
|
|
@@ -44884,16 +44877,16 @@ function TableComponent(tableProps) {
|
|
|
44884
44877
|
var onFilters = _ref.onFilters,
|
|
44885
44878
|
onPageChange = _ref.onPageChange,
|
|
44886
44879
|
_ref$showFilters = _ref.showFilters,
|
|
44887
|
-
showFilters = _ref$showFilters ===
|
|
44880
|
+
showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
|
|
44888
44881
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
44889
|
-
stickyHeader = _ref$stickyHeader ===
|
|
44882
|
+
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
44890
44883
|
onSelected = _ref.onSelected,
|
|
44891
44884
|
dataLength = _ref.dataLength,
|
|
44892
44885
|
viewLength = _ref.viewLength,
|
|
44893
44886
|
_ref$className = _ref.className,
|
|
44894
|
-
className = _ref$className ===
|
|
44887
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
44895
44888
|
_ref$rowClassName = _ref.rowClassName,
|
|
44896
|
-
rowClassName = _ref$rowClassName ===
|
|
44889
|
+
rowClassName = _ref$rowClassName === void 0 ? function () {
|
|
44897
44890
|
return '';
|
|
44898
44891
|
} : _ref$rowClassName,
|
|
44899
44892
|
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
@@ -44948,6 +44941,15 @@ function TableComponent(tableProps) {
|
|
|
44948
44941
|
endIndex: endIndex
|
|
44949
44942
|
};
|
|
44950
44943
|
};
|
|
44944
|
+
var _useState5 = React$1.useState({}),
|
|
44945
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
44946
|
+
filters = _useState6[0],
|
|
44947
|
+
setFilters = _useState6[1];
|
|
44948
|
+
React$1.useEffect(function () {
|
|
44949
|
+
if (onFilters) {
|
|
44950
|
+
onFilters(filters);
|
|
44951
|
+
}
|
|
44952
|
+
}, [filters]);
|
|
44951
44953
|
return /*#__PURE__*/React$1.createElement(TableContext.Provider, {
|
|
44952
44954
|
value: contextValue
|
|
44953
44955
|
}, /*#__PURE__*/React$1.createElement("table", _extends({
|
|
@@ -44957,7 +44959,9 @@ function TableComponent(tableProps) {
|
|
|
44957
44959
|
}), /*#__PURE__*/React$1.createElement(TableHead, {
|
|
44958
44960
|
stickyHeader: stickyHeader,
|
|
44959
44961
|
columns: columns,
|
|
44960
|
-
onFilters: onFilters
|
|
44962
|
+
onFilters: function onFilters(filters) {
|
|
44963
|
+
return setFilters(filters);
|
|
44964
|
+
},
|
|
44961
44965
|
showFilters: showFilters,
|
|
44962
44966
|
width: width
|
|
44963
44967
|
}), /*#__PURE__*/React$1.createElement(TableBody, {
|
|
@@ -44973,7 +44977,7 @@ function TableComponent(tableProps) {
|
|
|
44973
44977
|
}), children, cursorPagination ? /*#__PURE__*/React$1.createElement("tfoot", {
|
|
44974
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)]]])
|
|
44975
44979
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
44976
|
-
colSpan: columns === null || columns ===
|
|
44980
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
44977
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)]]])
|
|
44978
44982
|
}, /*#__PURE__*/React$1.createElement("div", {
|
|
44979
44983
|
style: {
|
|
@@ -45007,7 +45011,7 @@ function TableComponent(tableProps) {
|
|
|
45007
45011
|
}))))) : dataLength && viewLength && onPageChange ? /*#__PURE__*/React$1.createElement("tfoot", {
|
|
45008
45012
|
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
45013
|
}, /*#__PURE__*/React$1.createElement("td", {
|
|
45010
|
-
colSpan: columns === null || columns ===
|
|
45014
|
+
colSpan: columns === null || columns === void 0 ? void 0 : columns.length,
|
|
45011
45015
|
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
45016
|
}, /*#__PURE__*/React$1.createElement(Pagination, {
|
|
45013
45017
|
style: {
|
|
@@ -45059,11 +45063,11 @@ var Highlight = function Highlight(_ref) {
|
|
|
45059
45063
|
var rect = _ref.rect,
|
|
45060
45064
|
visible = _ref.visible,
|
|
45061
45065
|
_ref$hoverHeightRatio = _ref.hoverHeightRatio,
|
|
45062
|
-
hoverHeightRatio = _ref$hoverHeightRatio ===
|
|
45066
|
+
hoverHeightRatio = _ref$hoverHeightRatio === void 0 ? 1 : _ref$hoverHeightRatio,
|
|
45063
45067
|
_ref$hoverWidthRatio = _ref.hoverWidthRatio,
|
|
45064
|
-
hoverWidthRatio = _ref$hoverWidthRatio ===
|
|
45068
|
+
hoverWidthRatio = _ref$hoverWidthRatio === void 0 ? 1 : _ref$hoverWidthRatio,
|
|
45065
45069
|
_ref$activeOpacity = _ref.activeOpacity,
|
|
45066
|
-
activeOpacity = _ref$activeOpacity ===
|
|
45070
|
+
activeOpacity = _ref$activeOpacity === void 0 ? 0.8 : _ref$activeOpacity,
|
|
45067
45071
|
className = _ref.className,
|
|
45068
45072
|
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
45069
45073
|
var theme = useTheme();
|
|
@@ -45095,26 +45099,26 @@ var TabsComponent = function TabsComponent(_ref) {
|
|
|
45095
45099
|
var userCustomInitialValue = _ref.initialValue,
|
|
45096
45100
|
value = _ref.value,
|
|
45097
45101
|
_ref$hideDivider = _ref.hideDivider,
|
|
45098
|
-
hideDivider = _ref$hideDivider ===
|
|
45102
|
+
hideDivider = _ref$hideDivider === void 0 ? false : _ref$hideDivider,
|
|
45099
45103
|
hideBorder = _ref.hideBorder,
|
|
45100
45104
|
children = _ref.children,
|
|
45101
45105
|
onChange = _ref.onChange,
|
|
45102
45106
|
_ref$className = _ref.className,
|
|
45103
|
-
className = _ref$className ===
|
|
45107
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45104
45108
|
_ref$leftSpace = _ref.leftSpace,
|
|
45105
|
-
leftSpace = _ref$leftSpace ===
|
|
45109
|
+
leftSpace = _ref$leftSpace === void 0 ? '12px' : _ref$leftSpace,
|
|
45106
45110
|
_ref$highlight = _ref.highlight,
|
|
45107
|
-
highlight = _ref$highlight ===
|
|
45111
|
+
highlight = _ref$highlight === void 0 ? true : _ref$highlight,
|
|
45108
45112
|
_ref$hoverHeightRatio = _ref.hoverHeightRatio,
|
|
45109
|
-
hoverHeightRatio = _ref$hoverHeightRatio ===
|
|
45113
|
+
hoverHeightRatio = _ref$hoverHeightRatio === void 0 ? 0.7 : _ref$hoverHeightRatio,
|
|
45110
45114
|
_ref$hoverWidthRatio = _ref.hoverWidthRatio,
|
|
45111
|
-
hoverWidthRatio = _ref$hoverWidthRatio ===
|
|
45115
|
+
hoverWidthRatio = _ref$hoverWidthRatio === void 0 ? 1.15 : _ref$hoverWidthRatio,
|
|
45112
45116
|
_ref$activeClassName = _ref.activeClassName,
|
|
45113
|
-
activeClassName = _ref$activeClassName ===
|
|
45117
|
+
activeClassName = _ref$activeClassName === void 0 ? '' : _ref$activeClassName,
|
|
45114
45118
|
_ref$activeStyle = _ref.activeStyle,
|
|
45115
|
-
activeStyle = _ref$activeStyle ===
|
|
45119
|
+
activeStyle = _ref$activeStyle === void 0 ? {} : _ref$activeStyle,
|
|
45116
45120
|
_ref$align = _ref.align,
|
|
45117
|
-
align = _ref$align ===
|
|
45121
|
+
align = _ref$align === void 0 ? 'left' : _ref$align,
|
|
45118
45122
|
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
45119
45123
|
var theme = useTheme();
|
|
45120
45124
|
var _useScale = useScale(),
|
|
@@ -45218,7 +45222,7 @@ var TabsItemComponent = function TabsItemComponent(_ref) {
|
|
|
45218
45222
|
value = _ref.value,
|
|
45219
45223
|
label = _ref.label,
|
|
45220
45224
|
_ref$disabled = _ref.disabled,
|
|
45221
|
-
disabled = _ref$disabled ===
|
|
45225
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
45222
45226
|
var _useScale = useScale(),
|
|
45223
45227
|
SCALES = _useScale.SCALES;
|
|
45224
45228
|
var _useTabsContext = useTabsContext(),
|
|
@@ -45318,12 +45322,12 @@ var getColors$1 = function getColors(type, palette, invert) {
|
|
|
45318
45322
|
};
|
|
45319
45323
|
var TagComponent = function TagComponent(_ref) {
|
|
45320
45324
|
var _ref$type = _ref.type,
|
|
45321
|
-
type = _ref$type ===
|
|
45325
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
45322
45326
|
children = _ref.children,
|
|
45323
45327
|
_ref$className = _ref.className,
|
|
45324
|
-
className = _ref$className ===
|
|
45328
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45325
45329
|
_ref$invert = _ref.invert,
|
|
45326
|
-
invert = _ref$invert ===
|
|
45330
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
45327
45331
|
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
45328
45332
|
var theme = useTheme();
|
|
45329
45333
|
var _useScale = useScale(),
|
|
@@ -45369,15 +45373,15 @@ var getColors = function getColors(palette, status) {
|
|
|
45369
45373
|
var _excluded$5 = ["initialChecked", "checked", "disabled", "onChange", "type", "className", "children"];
|
|
45370
45374
|
var ToggleComponent = function ToggleComponent(_ref) {
|
|
45371
45375
|
var _ref$initialChecked = _ref.initialChecked,
|
|
45372
|
-
initialChecked = _ref$initialChecked ===
|
|
45376
|
+
initialChecked = _ref$initialChecked === void 0 ? false : _ref$initialChecked,
|
|
45373
45377
|
checked = _ref.checked,
|
|
45374
45378
|
_ref$disabled = _ref.disabled,
|
|
45375
|
-
disabled = _ref$disabled ===
|
|
45379
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
45376
45380
|
onChange = _ref.onChange,
|
|
45377
45381
|
_ref$type = _ref.type,
|
|
45378
|
-
type = _ref$type ===
|
|
45382
|
+
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
45379
45383
|
_ref$className = _ref.className,
|
|
45380
|
-
className = _ref$className ===
|
|
45384
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45381
45385
|
children = _ref.children,
|
|
45382
45386
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
45383
45387
|
var theme = useTheme();
|
|
@@ -45439,9 +45443,9 @@ var Toggle = withScale(ToggleComponent);
|
|
|
45439
45443
|
var TreeFileIcon = function TreeFileIcon(_ref) {
|
|
45440
45444
|
var color = _ref.color,
|
|
45441
45445
|
_ref$width = _ref.width,
|
|
45442
|
-
width = _ref$width ===
|
|
45446
|
+
width = _ref$width === void 0 ? 22 : _ref$width,
|
|
45443
45447
|
_ref$height = _ref.height,
|
|
45444
|
-
height = _ref$height ===
|
|
45448
|
+
height = _ref$height === void 0 ? 22 : _ref$height;
|
|
45445
45449
|
var theme = useTheme();
|
|
45446
45450
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45447
45451
|
viewBox: "0 0 24 24",
|
|
@@ -45513,12 +45517,12 @@ var _excluded$4 = ["name", "parentPath", "level", "extra", "className"];
|
|
|
45513
45517
|
var TreeFile = function TreeFile(_ref) {
|
|
45514
45518
|
var name = _ref.name,
|
|
45515
45519
|
_ref$parentPath = _ref.parentPath,
|
|
45516
|
-
parentPath = _ref$parentPath ===
|
|
45520
|
+
parentPath = _ref$parentPath === void 0 ? '' : _ref$parentPath,
|
|
45517
45521
|
_ref$level = _ref.level,
|
|
45518
|
-
level = _ref$level ===
|
|
45522
|
+
level = _ref$level === void 0 ? 0 : _ref$level,
|
|
45519
45523
|
extra = _ref.extra,
|
|
45520
45524
|
_ref$className = _ref.className,
|
|
45521
|
-
className = _ref$className ===
|
|
45525
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
45522
45526
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
45523
45527
|
var theme = useTheme();
|
|
45524
45528
|
var _useTreeContext = useTreeContext(),
|
|
@@ -45554,9 +45558,9 @@ TreeFile.displayName = 'TreeFile';
|
|
|
45554
45558
|
var TreeFolderIcon = function TreeFolderIcon(_ref) {
|
|
45555
45559
|
var color = _ref.color,
|
|
45556
45560
|
_ref$width = _ref.width,
|
|
45557
|
-
width = _ref$width ===
|
|
45561
|
+
width = _ref$width === void 0 ? 22 : _ref$width,
|
|
45558
45562
|
_ref$height = _ref.height,
|
|
45559
|
-
height = _ref$height ===
|
|
45563
|
+
height = _ref$height === void 0 ? 22 : _ref$height;
|
|
45560
45564
|
var theme = useTheme();
|
|
45561
45565
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45562
45566
|
viewBox: "0 0 24 24",
|
|
@@ -45582,11 +45586,11 @@ TreeFolderIcon.displayName = 'TreeFolderIcon';
|
|
|
45582
45586
|
var TreeStatusIcon = function TreeStatusIcon(_ref) {
|
|
45583
45587
|
var color = _ref.color,
|
|
45584
45588
|
_ref$width = _ref.width,
|
|
45585
|
-
width = _ref$width ===
|
|
45589
|
+
width = _ref$width === void 0 ? 12 : _ref$width,
|
|
45586
45590
|
_ref$height = _ref.height,
|
|
45587
|
-
height = _ref$height ===
|
|
45591
|
+
height = _ref$height === void 0 ? 12 : _ref$height,
|
|
45588
45592
|
_ref$active = _ref.active,
|
|
45589
|
-
active = _ref$active ===
|
|
45593
|
+
active = _ref$active === void 0 ? false : _ref$active;
|
|
45590
45594
|
var theme = useTheme();
|
|
45591
45595
|
return /*#__PURE__*/React$1.createElement("svg", {
|
|
45592
45596
|
viewBox: "0 0 24 24",
|
|
@@ -45624,11 +45628,11 @@ var _excluded$3 = ["name", "children", "parentPath", "level", "extra", "classNam
|
|
|
45624
45628
|
var _TreeFolder = function TreeFolder(_ref) {
|
|
45625
45629
|
var name = _ref.name,
|
|
45626
45630
|
_ref$children = _ref.children,
|
|
45627
|
-
children = _ref$children ===
|
|
45631
|
+
children = _ref$children === void 0 ? '' : _ref$children,
|
|
45628
45632
|
_ref$parentPath = _ref.parentPath,
|
|
45629
|
-
parentPath = _ref$parentPath ===
|
|
45633
|
+
parentPath = _ref$parentPath === void 0 ? '' : _ref$parentPath,
|
|
45630
45634
|
_ref$level = _ref.level,
|
|
45631
|
-
parentLevel = _ref$level ===
|
|
45635
|
+
parentLevel = _ref$level === void 0 ? 0 : _ref$level,
|
|
45632
45636
|
extra = _ref.extra,
|
|
45633
45637
|
className = _ref.className,
|
|
45634
45638
|
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
@@ -45710,7 +45714,7 @@ var Tree = function Tree(_ref) {
|
|
|
45710
45714
|
var children = _ref.children,
|
|
45711
45715
|
onClick = _ref.onClick,
|
|
45712
45716
|
_ref$initialExpand = _ref.initialExpand,
|
|
45713
|
-
initialExpand = _ref$initialExpand ===
|
|
45717
|
+
initialExpand = _ref$initialExpand === void 0 ? false : _ref$initialExpand,
|
|
45714
45718
|
value = _ref.value,
|
|
45715
45719
|
className = _ref.className,
|
|
45716
45720
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
@@ -45871,7 +45875,7 @@ function useTimer() {
|
|
|
45871
45875
|
expiry = _ref.expiryTimestamp,
|
|
45872
45876
|
onExpire = _ref.onExpire,
|
|
45873
45877
|
_ref$autoStart = _ref.autoStart,
|
|
45874
|
-
autoStart = _ref$autoStart ===
|
|
45878
|
+
autoStart = _ref$autoStart === void 0 ? true : _ref$autoStart;
|
|
45875
45879
|
var _useState = React$1.useState(expiry),
|
|
45876
45880
|
_useState2 = _slicedToArray(_useState, 2),
|
|
45877
45881
|
expiryTimestamp = _useState2[0],
|
|
@@ -46011,7 +46015,7 @@ var UserComponent = function UserComponent(_ref) {
|
|
|
46011
46015
|
name = _ref.name,
|
|
46012
46016
|
children = _ref.children,
|
|
46013
46017
|
_ref$className = _ref.className,
|
|
46014
|
-
className = _ref$className ===
|
|
46018
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46015
46019
|
altText = _ref.altText,
|
|
46016
46020
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
46017
46021
|
var theme = useTheme();
|
|
@@ -46044,7 +46048,7 @@ var _excluded = ["href", "className", "children"];
|
|
|
46044
46048
|
var UserLink = /*#__PURE__*/React$1.forwardRef(function (_ref, ref) {
|
|
46045
46049
|
var href = _ref.href,
|
|
46046
46050
|
_ref$className = _ref.className,
|
|
46047
|
-
className = _ref$className ===
|
|
46051
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46048
46052
|
children = _ref.children,
|
|
46049
46053
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
46050
46054
|
return /*#__PURE__*/React$1.createElement("div", _extends({}, props, {
|
|
@@ -46087,9 +46091,9 @@ var makeQueries = function makeQueries(bp, up, down) {
|
|
|
46087
46091
|
var useMediaQuery = function useMediaQuery(breakpoint) {
|
|
46088
46092
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultResponsiveOptions;
|
|
46089
46093
|
var _options$match = options.match,
|
|
46090
|
-
matchType = _options$match ===
|
|
46094
|
+
matchType = _options$match === void 0 ? 'default' : _options$match,
|
|
46091
46095
|
_options$ssrMatchMedi = options.ssrMatchMedia,
|
|
46092
|
-
ssrMatchMedia = _options$ssrMatchMedi ===
|
|
46096
|
+
ssrMatchMedia = _options$ssrMatchMedi === void 0 ? null : _options$ssrMatchMedi;
|
|
46093
46097
|
var supportMedia = typeof window !== 'undefined' && typeof window.matchMedia !== 'undefined';
|
|
46094
46098
|
var theme = useTheme();
|
|
46095
46099
|
var mediaQueries = React$1.useMemo(function () {
|
|
@@ -46239,7 +46243,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
46239
46243
|
width !== null ? skeletonStyle.width = width : skeletonStyle.width = "";
|
|
46240
46244
|
height !== null ? skeletonStyle.height = height : skeletonStyle.height = "";
|
|
46241
46245
|
shape === "circle" ? skeletonStyle.borderRadius = "50%" : skeletonStyle.borderRadius = "";
|
|
46242
|
-
style !== null ? skeletonStyle = _objectSpread2(_objectSpread2({}, skeletonStyle), style) :
|
|
46246
|
+
style !== null ? skeletonStyle = _objectSpread2(_objectSpread2({}, skeletonStyle), style) : void 0;
|
|
46243
46247
|
backgroundColor !== null ? skeletonStyle.backgroundColor = backgroundColor : skeletonStyle.backgroundColor = "white";
|
|
46244
46248
|
if (duration) setTimeout(hideSkeleton, duration);
|
|
46245
46249
|
|
|
@@ -46384,14 +46388,14 @@ var CartProvider = function CartProvider(_ref) {
|
|
|
46384
46388
|
var children = _ref.children,
|
|
46385
46389
|
cartId = _ref.id,
|
|
46386
46390
|
_ref$defaultItems = _ref.defaultItems,
|
|
46387
|
-
defaultItems = _ref$defaultItems ===
|
|
46391
|
+
defaultItems = _ref$defaultItems === void 0 ? [] : _ref$defaultItems,
|
|
46388
46392
|
onSetItems = _ref.onSetItems,
|
|
46389
46393
|
onItemAdd = _ref.onItemAdd,
|
|
46390
46394
|
onItemUpdate = _ref.onItemUpdate,
|
|
46391
46395
|
onItemRemove = _ref.onItemRemove,
|
|
46392
46396
|
onEmptyCart = _ref.onEmptyCart,
|
|
46393
46397
|
_ref$storage = _ref.storage,
|
|
46394
|
-
storage = _ref$storage ===
|
|
46398
|
+
storage = _ref$storage === void 0 ? useLocalStorage : _ref$storage,
|
|
46395
46399
|
metadata = _ref.metadata;
|
|
46396
46400
|
var id = cartId ? cartId : createCartIdentifier();
|
|
46397
46401
|
var _storage = storage(cartId ? "react-use-cart-".concat(id) : "react-use-cart", JSON.stringify(_objectSpread2(_objectSpread2({
|
|
@@ -46550,32 +46554,32 @@ var _window$2 = global.window;
|
|
|
46550
46554
|
var LoginSocialFacebook = function LoginSocialFacebook(_ref) {
|
|
46551
46555
|
var appId = _ref.appId,
|
|
46552
46556
|
_ref$scope = _ref.scope,
|
|
46553
|
-
scope = _ref$scope ===
|
|
46557
|
+
scope = _ref$scope === void 0 ? 'email,public_profile' : _ref$scope,
|
|
46554
46558
|
_ref$state = _ref.state,
|
|
46555
|
-
state = _ref$state ===
|
|
46559
|
+
state = _ref$state === void 0 ? true : _ref$state,
|
|
46556
46560
|
_ref$xfbml = _ref.xfbml,
|
|
46557
|
-
xfbml = _ref$xfbml ===
|
|
46561
|
+
xfbml = _ref$xfbml === void 0 ? true : _ref$xfbml,
|
|
46558
46562
|
_ref$cookie = _ref.cookie,
|
|
46559
|
-
cookie = _ref$cookie ===
|
|
46563
|
+
cookie = _ref$cookie === void 0 ? true : _ref$cookie,
|
|
46560
46564
|
_ref$version = _ref.version,
|
|
46561
|
-
version = _ref$version ===
|
|
46565
|
+
version = _ref$version === void 0 ? 'v2.7' : _ref$version,
|
|
46562
46566
|
_ref$language = _ref.language,
|
|
46563
|
-
language = _ref$language ===
|
|
46567
|
+
language = _ref$language === void 0 ? 'en_EN' : _ref$language,
|
|
46564
46568
|
_ref$auth_type = _ref.auth_type,
|
|
46565
|
-
auth_type = _ref$auth_type ===
|
|
46569
|
+
auth_type = _ref$auth_type === void 0 ? '' : _ref$auth_type,
|
|
46566
46570
|
className = _ref.className,
|
|
46567
46571
|
onLoginStart = _ref.onLoginStart,
|
|
46568
46572
|
onReject = _ref.onReject,
|
|
46569
46573
|
onResolve = _ref.onResolve,
|
|
46570
46574
|
redirect_uri = _ref.redirect_uri,
|
|
46571
46575
|
_ref$fieldsProfile = _ref.fieldsProfile,
|
|
46572
|
-
fieldsProfile = _ref$fieldsProfile ===
|
|
46576
|
+
fieldsProfile = _ref$fieldsProfile === void 0 ? 'id,first_name,last_name,middle_name,name,name_format,picture,short_name,email,gender' : _ref$fieldsProfile,
|
|
46573
46577
|
_ref$response_type = _ref.response_type,
|
|
46574
|
-
response_type = _ref$response_type ===
|
|
46578
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
46575
46579
|
_ref$return_scopes = _ref.return_scopes,
|
|
46576
|
-
return_scopes = _ref$return_scopes ===
|
|
46580
|
+
return_scopes = _ref$return_scopes === void 0 ? true : _ref$return_scopes,
|
|
46577
46581
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46578
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46582
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46579
46583
|
children = _ref.children;
|
|
46580
46584
|
var scriptNodeRef = React$1.useRef(null);
|
|
46581
46585
|
var _useState = React$1.useState(false),
|
|
@@ -46690,36 +46694,36 @@ var _window$1 = global.window;
|
|
|
46690
46694
|
var LoginSocialGoogle = function LoginSocialGoogle(_ref) {
|
|
46691
46695
|
var client_id = _ref.client_id,
|
|
46692
46696
|
_ref$scope = _ref.scope,
|
|
46693
|
-
scope = _ref$scope ===
|
|
46697
|
+
scope = _ref$scope === void 0 ? 'https://www.googleapis.com/auth/userinfo.profile' : _ref$scope,
|
|
46694
46698
|
_ref$prompt = _ref.prompt,
|
|
46695
|
-
prompt = _ref$prompt ===
|
|
46699
|
+
prompt = _ref$prompt === void 0 ? 'select_account' : _ref$prompt,
|
|
46696
46700
|
_ref$typeResponse = _ref.typeResponse,
|
|
46697
|
-
typeResponse = _ref$typeResponse ===
|
|
46701
|
+
typeResponse = _ref$typeResponse === void 0 ? 'accessToken' : _ref$typeResponse,
|
|
46698
46702
|
ux_mode = _ref.ux_mode,
|
|
46699
46703
|
_ref$className = _ref.className,
|
|
46700
|
-
className = _ref$className ===
|
|
46704
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46701
46705
|
_ref$login_hint = _ref.login_hint,
|
|
46702
|
-
login_hint = _ref$login_hint ===
|
|
46706
|
+
login_hint = _ref$login_hint === void 0 ? '' : _ref$login_hint,
|
|
46703
46707
|
_ref$access_type = _ref.access_type,
|
|
46704
|
-
access_type = _ref$access_type ===
|
|
46708
|
+
access_type = _ref$access_type === void 0 ? 'online' : _ref$access_type,
|
|
46705
46709
|
onLoginStart = _ref.onLoginStart,
|
|
46706
46710
|
onReject = _ref.onReject,
|
|
46707
46711
|
onResolve = _ref.onResolve,
|
|
46708
46712
|
_ref$redirect_uri = _ref.redirect_uri,
|
|
46709
|
-
redirect_uri = _ref$redirect_uri ===
|
|
46713
|
+
redirect_uri = _ref$redirect_uri === void 0 ? '/' : _ref$redirect_uri,
|
|
46710
46714
|
_ref$auto_select = _ref.auto_select,
|
|
46711
|
-
auto_select = _ref$auto_select ===
|
|
46715
|
+
auto_select = _ref$auto_select === void 0 ? false : _ref$auto_select,
|
|
46712
46716
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46713
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46717
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46714
46718
|
_ref$cookie_policy = _ref.cookie_policy,
|
|
46715
|
-
cookie_policy = _ref$cookie_policy ===
|
|
46719
|
+
cookie_policy = _ref$cookie_policy === void 0 ? 'single_host_origin' : _ref$cookie_policy,
|
|
46716
46720
|
_ref$hosted_domain = _ref.hosted_domain,
|
|
46717
|
-
hosted_domain = _ref$hosted_domain ===
|
|
46721
|
+
hosted_domain = _ref$hosted_domain === void 0 ? '' : _ref$hosted_domain,
|
|
46718
46722
|
_ref$discoveryDocs = _ref.discoveryDocs,
|
|
46719
|
-
discoveryDocs = _ref$discoveryDocs ===
|
|
46723
|
+
discoveryDocs = _ref$discoveryDocs === void 0 ? '' : _ref$discoveryDocs,
|
|
46720
46724
|
children = _ref.children,
|
|
46721
46725
|
_ref$fetch_basic_prof = _ref.fetch_basic_profile,
|
|
46722
|
-
fetch_basic_profile = _ref$fetch_basic_prof ===
|
|
46726
|
+
fetch_basic_profile = _ref$fetch_basic_prof === void 0 ? true : _ref$fetch_basic_prof;
|
|
46723
46727
|
var scriptNodeRef = React$1.useRef(null);
|
|
46724
46728
|
var _useState = React$1.useState(false),
|
|
46725
46729
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -46798,7 +46802,7 @@ var LoginSocialGoogle = function LoginSocialGoogle(_ref) {
|
|
|
46798
46802
|
provider: 'google',
|
|
46799
46803
|
data: res
|
|
46800
46804
|
});else {
|
|
46801
|
-
if (res !== null && res !==
|
|
46805
|
+
if (res !== null && res !== void 0 && res.access_token) {
|
|
46802
46806
|
if (isOnlyGetToken) onResolve({
|
|
46803
46807
|
provider: 'google',
|
|
46804
46808
|
data: res
|
|
@@ -46882,20 +46886,20 @@ var PREVENT_CORS_URL$4 = ''; //https://cors.bridged.cc
|
|
|
46882
46886
|
|
|
46883
46887
|
var LoginSocialGithub$1 = function LoginSocialGithub(_ref) {
|
|
46884
46888
|
var _ref$state = _ref.state,
|
|
46885
|
-
state = _ref$state ===
|
|
46889
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
46886
46890
|
_ref$scope = _ref.scope,
|
|
46887
|
-
scope = _ref$scope ===
|
|
46891
|
+
scope = _ref$scope === void 0 ? 'repo,gist' : _ref$scope,
|
|
46888
46892
|
client_id = _ref.client_id,
|
|
46889
46893
|
client_secret = _ref.client_secret,
|
|
46890
46894
|
_ref$className = _ref.className,
|
|
46891
|
-
className = _ref$className ===
|
|
46895
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
46892
46896
|
redirect_uri = _ref.redirect_uri,
|
|
46893
46897
|
_ref$allow_signup = _ref.allow_signup,
|
|
46894
|
-
allow_signup = _ref$allow_signup ===
|
|
46898
|
+
allow_signup = _ref$allow_signup === void 0 ? false : _ref$allow_signup,
|
|
46895
46899
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
46896
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
46900
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
46897
46901
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
46898
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
46902
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
46899
46903
|
children = _ref.children,
|
|
46900
46904
|
onReject = _ref.onReject,
|
|
46901
46905
|
onResolve = _ref.onResolve,
|
|
@@ -46904,7 +46908,7 @@ var LoginSocialGithub$1 = function LoginSocialGithub(_ref) {
|
|
|
46904
46908
|
var popupWindowURL = new URL(window.location.href);
|
|
46905
46909
|
var code = popupWindowURL.searchParams.get('code');
|
|
46906
46910
|
var state = popupWindowURL.searchParams.get('state');
|
|
46907
|
-
if (state !== null && state !==
|
|
46911
|
+
if (state !== null && state !== void 0 && state.includes('_github') && code) {
|
|
46908
46912
|
localStorage.setItem('github', code);
|
|
46909
46913
|
window.close();
|
|
46910
46914
|
}
|
|
@@ -47029,21 +47033,21 @@ var INSTAGRAM_API_URL = 'https://graph.instagram.com/';
|
|
|
47029
47033
|
var PREVENT_CORS_URL$3 = '';
|
|
47030
47034
|
var LoginSocialInstagram = function LoginSocialInstagram(_ref) {
|
|
47031
47035
|
var _ref$state = _ref.state,
|
|
47032
|
-
state = _ref$state ===
|
|
47036
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47033
47037
|
client_id = _ref.client_id,
|
|
47034
47038
|
client_secret = _ref.client_secret,
|
|
47035
47039
|
className = _ref.className,
|
|
47036
47040
|
redirect_uri = _ref.redirect_uri,
|
|
47037
47041
|
_ref$fields = _ref.fields,
|
|
47038
|
-
fields = _ref$fields ===
|
|
47042
|
+
fields = _ref$fields === void 0 ? 'id,username,account_type,media_count' : _ref$fields,
|
|
47039
47043
|
_ref$scope = _ref.scope,
|
|
47040
|
-
scope = _ref$scope ===
|
|
47044
|
+
scope = _ref$scope === void 0 ? 'user_profile,user_media' : _ref$scope,
|
|
47041
47045
|
_ref$response_type = _ref.response_type,
|
|
47042
|
-
response_type = _ref$response_type ===
|
|
47046
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47043
47047
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47044
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47048
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47045
47049
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47046
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47050
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47047
47051
|
children = _ref.children,
|
|
47048
47052
|
onReject = _ref.onReject,
|
|
47049
47053
|
onResolve = _ref.onResolve,
|
|
@@ -47052,7 +47056,7 @@ var LoginSocialInstagram = function LoginSocialInstagram(_ref) {
|
|
|
47052
47056
|
var popupWindowURL = new URL(window.location.href);
|
|
47053
47057
|
var code = popupWindowURL.searchParams.get('code');
|
|
47054
47058
|
var state = popupWindowURL.searchParams.get('state');
|
|
47055
|
-
if (state !== null && state !==
|
|
47059
|
+
if (state !== null && state !== void 0 && state.includes('_instagram') && code) {
|
|
47056
47060
|
localStorage.setItem('instagram', code);
|
|
47057
47061
|
window.close();
|
|
47058
47062
|
}
|
|
@@ -47163,29 +47167,29 @@ var MICROSOFT_API_URL = 'https://graph.microsoft.com';
|
|
|
47163
47167
|
|
|
47164
47168
|
var LoginSocialMicrosoft = function LoginSocialMicrosoft(_ref) {
|
|
47165
47169
|
var _ref$tenant = _ref.tenant,
|
|
47166
|
-
tenant = _ref$tenant ===
|
|
47170
|
+
tenant = _ref$tenant === void 0 ? 'common' : _ref$tenant,
|
|
47167
47171
|
_ref$state = _ref.state,
|
|
47168
|
-
state = _ref$state ===
|
|
47172
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47169
47173
|
client_id = _ref.client_id,
|
|
47170
47174
|
className = _ref.className,
|
|
47171
47175
|
redirect_uri = _ref.redirect_uri,
|
|
47172
47176
|
_ref$scope = _ref.scope,
|
|
47173
|
-
scope = _ref$scope ===
|
|
47177
|
+
scope = _ref$scope === void 0 ? 'profile openid email' : _ref$scope,
|
|
47174
47178
|
_ref$response_type = _ref.response_type,
|
|
47175
|
-
response_type = _ref$response_type ===
|
|
47179
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47176
47180
|
_ref$response_mode = _ref.response_mode,
|
|
47177
|
-
response_mode = _ref$response_mode ===
|
|
47181
|
+
response_mode = _ref$response_mode === void 0 ? 'query' : _ref$response_mode,
|
|
47178
47182
|
children = _ref.children,
|
|
47179
47183
|
_ref$code_challenge = _ref.code_challenge,
|
|
47180
|
-
code_challenge = _ref$code_challenge ===
|
|
47184
|
+
code_challenge = _ref$code_challenge === void 0 ? '19cfc47c216dacba8ca23eeee817603e2ba34fe0976378662ba31688ed302fa9' : _ref$code_challenge,
|
|
47181
47185
|
_ref$code_challenge_m = _ref.code_challenge_method,
|
|
47182
|
-
code_challenge_method = _ref$code_challenge_m ===
|
|
47186
|
+
code_challenge_method = _ref$code_challenge_m === void 0 ? 'plain' : _ref$code_challenge_m,
|
|
47183
47187
|
_ref$prompt = _ref.prompt,
|
|
47184
|
-
prompt = _ref$prompt ===
|
|
47188
|
+
prompt = _ref$prompt === void 0 ? 'select_account' : _ref$prompt,
|
|
47185
47189
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47186
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47190
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47187
47191
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47188
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47192
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47189
47193
|
onLoginStart = _ref.onLoginStart,
|
|
47190
47194
|
onReject = _ref.onReject,
|
|
47191
47195
|
onResolve = _ref.onResolve;
|
|
@@ -47193,7 +47197,7 @@ var LoginSocialMicrosoft = function LoginSocialMicrosoft(_ref) {
|
|
|
47193
47197
|
var popupWindowURL = new URL(window.location.href);
|
|
47194
47198
|
var code = popupWindowURL.searchParams.get('code');
|
|
47195
47199
|
var state = popupWindowURL.searchParams.get('state');
|
|
47196
|
-
if (state !== null && state !==
|
|
47200
|
+
if (state !== null && state !== void 0 && state.includes('_microsoft') && code) {
|
|
47197
47201
|
localStorage.setItem('microsoft', code);
|
|
47198
47202
|
window.close();
|
|
47199
47203
|
}
|
|
@@ -47305,20 +47309,20 @@ var LINKEDIN_API_URL = 'https://api.linkedin.com';
|
|
|
47305
47309
|
var PREVENT_CORS_URL$2 = '';
|
|
47306
47310
|
var LoginSocialLinkedin = function LoginSocialLinkedin(_ref) {
|
|
47307
47311
|
var _ref$state = _ref.state,
|
|
47308
|
-
state = _ref$state ===
|
|
47312
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47309
47313
|
_ref$scope = _ref.scope,
|
|
47310
|
-
scope = _ref$scope ===
|
|
47314
|
+
scope = _ref$scope === void 0 ? 'r_liteprofile' : _ref$scope,
|
|
47311
47315
|
client_id = _ref.client_id,
|
|
47312
47316
|
client_secret = _ref.client_secret,
|
|
47313
47317
|
_ref$className = _ref.className,
|
|
47314
|
-
className = _ref$className ===
|
|
47318
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47315
47319
|
redirect_uri = _ref.redirect_uri,
|
|
47316
47320
|
_ref$response_type = _ref.response_type,
|
|
47317
|
-
response_type = _ref$response_type ===
|
|
47321
|
+
response_type = _ref$response_type === void 0 ? 'code' : _ref$response_type,
|
|
47318
47322
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47319
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47323
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47320
47324
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47321
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47325
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47322
47326
|
children = _ref.children,
|
|
47323
47327
|
onLoginStart = _ref.onLoginStart,
|
|
47324
47328
|
onReject = _ref.onReject,
|
|
@@ -47327,7 +47331,7 @@ var LoginSocialLinkedin = function LoginSocialLinkedin(_ref) {
|
|
|
47327
47331
|
var popupWindowURL = new URL(window.location.href);
|
|
47328
47332
|
var code = popupWindowURL.searchParams.get('code');
|
|
47329
47333
|
var state = popupWindowURL.searchParams.get('state');
|
|
47330
|
-
if (state !== null && state !==
|
|
47334
|
+
if (state !== null && state !== void 0 && state.includes('_linkedin') && code) {
|
|
47331
47335
|
localStorage.setItem('linkedin', code);
|
|
47332
47336
|
window.close();
|
|
47333
47337
|
}
|
|
@@ -47442,18 +47446,18 @@ var PINTEREST_URL_API = 'https://api.pinterest.com/v5';
|
|
|
47442
47446
|
var PREVENT_CORS_URL$1 = '';
|
|
47443
47447
|
var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
47444
47448
|
var _ref$state = _ref.state,
|
|
47445
|
-
state = _ref$state ===
|
|
47449
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47446
47450
|
_ref$scope = _ref.scope,
|
|
47447
|
-
scope = _ref$scope ===
|
|
47451
|
+
scope = _ref$scope === void 0 ? 'boards:read,pins:read,user_accounts:read' : _ref$scope,
|
|
47448
47452
|
client_id = _ref.client_id,
|
|
47449
47453
|
client_secret = _ref.client_secret,
|
|
47450
47454
|
_ref$className = _ref.className,
|
|
47451
|
-
className = _ref$className ===
|
|
47455
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47452
47456
|
redirect_uri = _ref.redirect_uri,
|
|
47453
47457
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47454
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47458
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47455
47459
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47456
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47460
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47457
47461
|
children = _ref.children,
|
|
47458
47462
|
onLoginStart = _ref.onLoginStart,
|
|
47459
47463
|
onReject = _ref.onReject,
|
|
@@ -47462,7 +47466,7 @@ var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
47462
47466
|
var popupWindowURL = new URL(window.location.href);
|
|
47463
47467
|
var code = popupWindowURL.searchParams.get('code');
|
|
47464
47468
|
var state = popupWindowURL.searchParams.get('state');
|
|
47465
|
-
if (state !== null && state !==
|
|
47469
|
+
if (state !== null && state !== void 0 && state.includes('_pinterest') && code) {
|
|
47466
47470
|
localStorage.setItem('pinterest', code);
|
|
47467
47471
|
window.close();
|
|
47468
47472
|
}
|
|
@@ -47601,19 +47605,19 @@ var PREVENT_CORS_URL = '';
|
|
|
47601
47605
|
var LoginSocialTwitter = function LoginSocialTwitter(_ref) {
|
|
47602
47606
|
var client_id = _ref.client_id,
|
|
47603
47607
|
_ref$className = _ref.className,
|
|
47604
|
-
className = _ref$className ===
|
|
47608
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47605
47609
|
redirect_uri = _ref.redirect_uri,
|
|
47606
47610
|
children = _ref.children,
|
|
47607
47611
|
_ref$fields = _ref.fields,
|
|
47608
|
-
fields = _ref$fields ===
|
|
47612
|
+
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
47613
|
_ref$state = _ref.state,
|
|
47610
|
-
state = _ref$state ===
|
|
47614
|
+
state = _ref$state === void 0 ? 'state' : _ref$state,
|
|
47611
47615
|
_ref$scope = _ref.scope,
|
|
47612
|
-
scope = _ref$scope ===
|
|
47616
|
+
scope = _ref$scope === void 0 ? 'users.read%20tweet.read' : _ref$scope,
|
|
47613
47617
|
_ref$isOnlyGetCode = _ref.isOnlyGetCode,
|
|
47614
|
-
isOnlyGetCode = _ref$isOnlyGetCode ===
|
|
47618
|
+
isOnlyGetCode = _ref$isOnlyGetCode === void 0 ? false : _ref$isOnlyGetCode,
|
|
47615
47619
|
_ref$isOnlyGetToken = _ref.isOnlyGetToken,
|
|
47616
|
-
isOnlyGetToken = _ref$isOnlyGetToken ===
|
|
47620
|
+
isOnlyGetToken = _ref$isOnlyGetToken === void 0 ? false : _ref$isOnlyGetToken,
|
|
47617
47621
|
onLoginStart = _ref.onLoginStart,
|
|
47618
47622
|
onReject = _ref.onReject,
|
|
47619
47623
|
onResolve = _ref.onResolve;
|
|
@@ -47621,7 +47625,7 @@ var LoginSocialTwitter = function LoginSocialTwitter(_ref) {
|
|
|
47621
47625
|
var popupWindowURL = new URL(window.location.href);
|
|
47622
47626
|
var code = popupWindowURL.searchParams.get('code');
|
|
47623
47627
|
var state = popupWindowURL.searchParams.get('state');
|
|
47624
|
-
if (state !== null && state !==
|
|
47628
|
+
if (state !== null && state !== void 0 && state.includes('_twitter') && code) {
|
|
47625
47629
|
localStorage.setItem('twitter', code);
|
|
47626
47630
|
window.close();
|
|
47627
47631
|
}
|
|
@@ -47765,14 +47769,14 @@ var _window = global.window;
|
|
|
47765
47769
|
var LoginSocialApple = function LoginSocialApple(_ref) {
|
|
47766
47770
|
var client_id = _ref.client_id,
|
|
47767
47771
|
_ref$scope = _ref.scope,
|
|
47768
|
-
scope = _ref$scope ===
|
|
47772
|
+
scope = _ref$scope === void 0 ? 'name email' : _ref$scope,
|
|
47769
47773
|
_ref$className = _ref.className,
|
|
47770
|
-
className = _ref$className ===
|
|
47774
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47771
47775
|
onLoginStart = _ref.onLoginStart,
|
|
47772
47776
|
onReject = _ref.onReject,
|
|
47773
47777
|
onResolve = _ref.onResolve,
|
|
47774
47778
|
_ref$redirect_uri = _ref.redirect_uri,
|
|
47775
|
-
redirect_uri = _ref$redirect_uri ===
|
|
47779
|
+
redirect_uri = _ref$redirect_uri === void 0 ? '/' : _ref$redirect_uri,
|
|
47776
47780
|
children = _ref.children;
|
|
47777
47781
|
var scriptNodeRef = React$1.useRef(null);
|
|
47778
47782
|
var _useState = React$1.useState(false),
|
|
@@ -47806,7 +47810,7 @@ var LoginSocialApple = function LoginSocialApple(_ref) {
|
|
|
47806
47810
|
appleScriptTag.onload = cb;
|
|
47807
47811
|
}, []);
|
|
47808
47812
|
var handleResponse = React$1.useCallback(function (res) {
|
|
47809
|
-
if (res !== null && res !==
|
|
47813
|
+
if (res !== null && res !== void 0 && res.access_token) {
|
|
47810
47814
|
onResolve({
|
|
47811
47815
|
provider: 'apple',
|
|
47812
47816
|
data: res
|
|
@@ -47894,12 +47898,12 @@ var TIKTOK_URL = 'https://www.tiktok.com';
|
|
|
47894
47898
|
|
|
47895
47899
|
var LoginSocialGithub = function LoginSocialGithub(_ref) {
|
|
47896
47900
|
var _ref$state = _ref.state,
|
|
47897
|
-
state = _ref$state ===
|
|
47901
|
+
state = _ref$state === void 0 ? '' : _ref$state,
|
|
47898
47902
|
_ref$scope = _ref.scope,
|
|
47899
|
-
scope = _ref$scope ===
|
|
47903
|
+
scope = _ref$scope === void 0 ? 'user.info.basic' : _ref$scope,
|
|
47900
47904
|
client_key = _ref.client_key,
|
|
47901
47905
|
_ref$className = _ref.className,
|
|
47902
|
-
className = _ref$className ===
|
|
47906
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
47903
47907
|
redirect_uri = _ref.redirect_uri,
|
|
47904
47908
|
children = _ref.children,
|
|
47905
47909
|
onResolve = _ref.onResolve,
|
|
@@ -47908,7 +47912,7 @@ var LoginSocialGithub = function LoginSocialGithub(_ref) {
|
|
|
47908
47912
|
var popupWindowURL = new URL(window.location.href);
|
|
47909
47913
|
var code = popupWindowURL.searchParams.get('code');
|
|
47910
47914
|
var state = popupWindowURL.searchParams.get('state');
|
|
47911
|
-
if (state !== null && state !==
|
|
47915
|
+
if (state !== null && state !== void 0 && state.includes('_tiktok') && code) {
|
|
47912
47916
|
localStorage.setItem('tiktok', code);
|
|
47913
47917
|
window.close();
|
|
47914
47918
|
}
|