@nulogy/components 10.1.3 → 10.2.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/main.js +260 -219
- package/dist/main.module.js +256 -215
- package/dist/src/Button/IconicButton.d.ts +7 -5
- package/dist/src/Button/IconicButton.story.d.ts +6 -0
- package/dist/src/FieldLabel/HelpText.d.ts +0 -1
- package/dist/src/Icon/Icon.d.ts +3 -19
- package/dist/src/StatusIndicator/StatusIndicator.d.ts +3 -4
- package/dist/src/Type/Headings.d.ts +0 -1
- package/dist/src/Type/Text.d.ts +0 -1
- package/package.json +2 -2
package/dist/main.module.js
CHANGED
|
@@ -5,9 +5,9 @@ import assign$1 from 'object-assign';
|
|
|
5
5
|
import icons from '@nulogy/icons';
|
|
6
6
|
import _slicedToArray$1 from '@babel/runtime/helpers/slicedToArray';
|
|
7
7
|
import _defineProperty$1 from '@babel/runtime/helpers/defineProperty';
|
|
8
|
+
import _typeof$1 from '@babel/runtime/helpers/typeof';
|
|
8
9
|
import _classCallCheck$1 from '@babel/runtime/helpers/classCallCheck';
|
|
9
10
|
import _createClass$1 from '@babel/runtime/helpers/createClass';
|
|
10
|
-
import _typeof$1 from '@babel/runtime/helpers/typeof';
|
|
11
11
|
import { stringify, COMMENT, rulesheet, middleware, RULESET, combine, match as match$k, serialize, copy as copy$1, replace, WEBKIT, MOZ, MS, KEYFRAMES, DECLARATION, compile, dealloc, alloc, hash as hash$2, charat, strlen, indexof, next, token, from, peek, delimit, slice, position as position$1 } from 'stylis';
|
|
12
12
|
import _extends$4 from '@babel/runtime/helpers/extends';
|
|
13
13
|
import 'hoist-non-react-statics';
|
|
@@ -8800,49 +8800,6 @@ var Heading4 = styled(Text).attrs(function () {
|
|
|
8800
8800
|
};
|
|
8801
8801
|
}, addStyledProps);
|
|
8802
8802
|
|
|
8803
|
-
var defaultOptions = {
|
|
8804
|
-
bindI18n: 'languageChanged',
|
|
8805
|
-
bindI18nStore: '',
|
|
8806
|
-
transEmptyNodeValue: '',
|
|
8807
|
-
transSupportBasicHtmlNodes: true,
|
|
8808
|
-
transWrapTextNodes: '',
|
|
8809
|
-
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
|
|
8810
|
-
useSuspense: true
|
|
8811
|
-
};
|
|
8812
|
-
var i18nInstance;
|
|
8813
|
-
var I18nContext = React__default.createContext();
|
|
8814
|
-
function getDefaults() {
|
|
8815
|
-
return defaultOptions;
|
|
8816
|
-
}
|
|
8817
|
-
var ReportNamespaces = function () {
|
|
8818
|
-
function ReportNamespaces() {
|
|
8819
|
-
_classCallCheck$1(this, ReportNamespaces);
|
|
8820
|
-
|
|
8821
|
-
this.usedNamespaces = {};
|
|
8822
|
-
}
|
|
8823
|
-
|
|
8824
|
-
_createClass$1(ReportNamespaces, [{
|
|
8825
|
-
key: "addUsedNamespaces",
|
|
8826
|
-
value: function addUsedNamespaces(namespaces) {
|
|
8827
|
-
var _this = this;
|
|
8828
|
-
|
|
8829
|
-
namespaces.forEach(function (ns) {
|
|
8830
|
-
if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;
|
|
8831
|
-
});
|
|
8832
|
-
}
|
|
8833
|
-
}, {
|
|
8834
|
-
key: "getUsedNamespaces",
|
|
8835
|
-
value: function getUsedNamespaces() {
|
|
8836
|
-
return Object.keys(this.usedNamespaces);
|
|
8837
|
-
}
|
|
8838
|
-
}]);
|
|
8839
|
-
|
|
8840
|
-
return ReportNamespaces;
|
|
8841
|
-
}();
|
|
8842
|
-
function getI18n() {
|
|
8843
|
-
return i18nInstance;
|
|
8844
|
-
}
|
|
8845
|
-
|
|
8846
8803
|
function warn() {
|
|
8847
8804
|
if (console && console.warn) {
|
|
8848
8805
|
var _console;
|
|
@@ -8866,8 +8823,9 @@ function warnOnce() {
|
|
|
8866
8823
|
if (typeof args[0] === 'string') alreadyWarned[args[0]] = new Date();
|
|
8867
8824
|
warn.apply(void 0, args);
|
|
8868
8825
|
}
|
|
8869
|
-
|
|
8870
|
-
|
|
8826
|
+
|
|
8827
|
+
var loadedClb = function loadedClb(i18n, cb) {
|
|
8828
|
+
return function () {
|
|
8871
8829
|
if (i18n.isInitialized) {
|
|
8872
8830
|
cb();
|
|
8873
8831
|
} else {
|
|
@@ -8880,16 +8838,22 @@ function loadNamespaces(i18n, ns, cb) {
|
|
|
8880
8838
|
|
|
8881
8839
|
i18n.on('initialized', initialized);
|
|
8882
8840
|
}
|
|
8841
|
+
};
|
|
8842
|
+
};
|
|
8843
|
+
|
|
8844
|
+
function loadNamespaces(i18n, ns, cb) {
|
|
8845
|
+
i18n.loadNamespaces(ns, loadedClb(i18n, cb));
|
|
8846
|
+
}
|
|
8847
|
+
function loadLanguages(i18n, lng, ns, cb) {
|
|
8848
|
+
if (typeof ns === 'string') ns = [ns];
|
|
8849
|
+
ns.forEach(function (n) {
|
|
8850
|
+
if (i18n.options.ns.indexOf(n) < 0) i18n.options.ns.push(n);
|
|
8883
8851
|
});
|
|
8852
|
+
i18n.loadLanguages(lng, loadedClb(i18n, cb));
|
|
8884
8853
|
}
|
|
8885
|
-
function hasLoadedNamespace(ns, i18n) {
|
|
8886
|
-
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
8887
|
-
|
|
8888
|
-
if (!i18n.languages || !i18n.languages.length) {
|
|
8889
|
-
warnOnce('i18n.languages were undefined or empty', i18n.languages);
|
|
8890
|
-
return true;
|
|
8891
|
-
}
|
|
8892
8854
|
|
|
8855
|
+
function oldI18nextHasLoadedNamespace(ns, i18n) {
|
|
8856
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
8893
8857
|
var lng = i18n.languages[0];
|
|
8894
8858
|
var fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
|
|
8895
8859
|
var lastLng = i18n.languages[i18n.languages.length - 1];
|
|
@@ -8902,14 +8866,123 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
8902
8866
|
|
|
8903
8867
|
if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns)) return false;
|
|
8904
8868
|
if (i18n.hasResourceBundle(lng, ns)) return true;
|
|
8905
|
-
if (!i18n.services.backendConnector.backend) return true;
|
|
8869
|
+
if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages) return true;
|
|
8906
8870
|
if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns))) return true;
|
|
8907
8871
|
return false;
|
|
8908
8872
|
}
|
|
8909
8873
|
|
|
8874
|
+
function hasLoadedNamespace(ns, i18n) {
|
|
8875
|
+
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
8876
|
+
|
|
8877
|
+
if (!i18n.languages || !i18n.languages.length) {
|
|
8878
|
+
warnOnce('i18n.languages were undefined or empty', i18n.languages);
|
|
8879
|
+
return true;
|
|
8880
|
+
}
|
|
8881
|
+
|
|
8882
|
+
var isNewerI18next = i18n.options.ignoreJSONStructure !== undefined;
|
|
8883
|
+
|
|
8884
|
+
if (!isNewerI18next) {
|
|
8885
|
+
return oldI18nextHasLoadedNamespace(ns, i18n, options);
|
|
8886
|
+
}
|
|
8887
|
+
|
|
8888
|
+
return i18n.hasLoadedNamespace(ns, {
|
|
8889
|
+
lng: options.lng,
|
|
8890
|
+
precheck: function precheck(i18nInstance, loadNotPending) {
|
|
8891
|
+
if (options.bindI18n && options.bindI18n.indexOf('languageChanging') > -1 && i18nInstance.services.backendConnector.backend && i18nInstance.isLanguageChangingTo && !loadNotPending(i18nInstance.isLanguageChangingTo, ns)) return false;
|
|
8892
|
+
}
|
|
8893
|
+
});
|
|
8894
|
+
}
|
|
8895
|
+
|
|
8896
|
+
var matchHtmlEntity = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
|
|
8897
|
+
var htmlEntities = {
|
|
8898
|
+
'&': '&',
|
|
8899
|
+
'&': '&',
|
|
8900
|
+
'<': '<',
|
|
8901
|
+
'<': '<',
|
|
8902
|
+
'>': '>',
|
|
8903
|
+
'>': '>',
|
|
8904
|
+
''': "'",
|
|
8905
|
+
''': "'",
|
|
8906
|
+
'"': '"',
|
|
8907
|
+
'"': '"',
|
|
8908
|
+
' ': ' ',
|
|
8909
|
+
' ': ' ',
|
|
8910
|
+
'©': '©',
|
|
8911
|
+
'©': '©',
|
|
8912
|
+
'®': '®',
|
|
8913
|
+
'®': '®',
|
|
8914
|
+
'…': '…',
|
|
8915
|
+
'…': '…',
|
|
8916
|
+
'/': '/',
|
|
8917
|
+
'/': '/'
|
|
8918
|
+
};
|
|
8919
|
+
|
|
8920
|
+
var unescapeHtmlEntity = function unescapeHtmlEntity(m) {
|
|
8921
|
+
return htmlEntities[m];
|
|
8922
|
+
};
|
|
8923
|
+
|
|
8924
|
+
var unescape = function unescape(text) {
|
|
8925
|
+
return text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
8926
|
+
};
|
|
8927
|
+
|
|
8928
|
+
var defaultOptions = {
|
|
8929
|
+
bindI18n: 'languageChanged',
|
|
8930
|
+
bindI18nStore: '',
|
|
8931
|
+
transEmptyNodeValue: '',
|
|
8932
|
+
transSupportBasicHtmlNodes: true,
|
|
8933
|
+
transWrapTextNodes: '',
|
|
8934
|
+
transKeepBasicHtmlNodesFor: ['br', 'strong', 'i', 'p'],
|
|
8935
|
+
useSuspense: true,
|
|
8936
|
+
unescape: unescape
|
|
8937
|
+
};
|
|
8938
|
+
function getDefaults() {
|
|
8939
|
+
return defaultOptions;
|
|
8940
|
+
}
|
|
8941
|
+
|
|
8942
|
+
var i18nInstance;
|
|
8943
|
+
function getI18n() {
|
|
8944
|
+
return i18nInstance;
|
|
8945
|
+
}
|
|
8946
|
+
|
|
8947
|
+
var I18nContext = createContext();
|
|
8948
|
+
var ReportNamespaces = function () {
|
|
8949
|
+
function ReportNamespaces() {
|
|
8950
|
+
_classCallCheck$1(this, ReportNamespaces);
|
|
8951
|
+
|
|
8952
|
+
this.usedNamespaces = {};
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8955
|
+
_createClass$1(ReportNamespaces, [{
|
|
8956
|
+
key: "addUsedNamespaces",
|
|
8957
|
+
value: function addUsedNamespaces(namespaces) {
|
|
8958
|
+
var _this = this;
|
|
8959
|
+
|
|
8960
|
+
namespaces.forEach(function (ns) {
|
|
8961
|
+
if (!_this.usedNamespaces[ns]) _this.usedNamespaces[ns] = true;
|
|
8962
|
+
});
|
|
8963
|
+
}
|
|
8964
|
+
}, {
|
|
8965
|
+
key: "getUsedNamespaces",
|
|
8966
|
+
value: function getUsedNamespaces() {
|
|
8967
|
+
return Object.keys(this.usedNamespaces);
|
|
8968
|
+
}
|
|
8969
|
+
}]);
|
|
8970
|
+
|
|
8971
|
+
return ReportNamespaces;
|
|
8972
|
+
}();
|
|
8973
|
+
|
|
8910
8974
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
8911
8975
|
|
|
8912
8976
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8977
|
+
|
|
8978
|
+
var usePrevious = function usePrevious(value, ignore) {
|
|
8979
|
+
var ref = useRef();
|
|
8980
|
+
useEffect(function () {
|
|
8981
|
+
ref.current = ignore ? ref.current : value;
|
|
8982
|
+
}, [value, ignore]);
|
|
8983
|
+
return ref.current;
|
|
8984
|
+
};
|
|
8985
|
+
|
|
8913
8986
|
function useTranslation(ns) {
|
|
8914
8987
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8915
8988
|
var i18nFromProps = props.i18n;
|
|
@@ -8924,7 +8997,9 @@ function useTranslation(ns) {
|
|
|
8924
8997
|
if (!i18n) {
|
|
8925
8998
|
warnOnce('You will need to pass in an i18next instance by using initReactI18next');
|
|
8926
8999
|
|
|
8927
|
-
var notReadyT = function notReadyT(k) {
|
|
9000
|
+
var notReadyT = function notReadyT(k, optsOrDefaultValue) {
|
|
9001
|
+
if (typeof optsOrDefaultValue === 'string') return optsOrDefaultValue;
|
|
9002
|
+
if (optsOrDefaultValue && _typeof$1(optsOrDefaultValue) === 'object' && typeof optsOrDefaultValue.defaultValue === 'string') return optsOrDefaultValue.defaultValue;
|
|
8928
9003
|
return Array.isArray(k) ? k[k.length - 1] : k;
|
|
8929
9004
|
};
|
|
8930
9005
|
|
|
@@ -8949,7 +9024,7 @@ function useTranslation(ns) {
|
|
|
8949
9024
|
});
|
|
8950
9025
|
|
|
8951
9026
|
function getT() {
|
|
8952
|
-
return i18n.getFixedT(null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
9027
|
+
return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === 'fallback' ? namespaces : namespaces[0], keyPrefix);
|
|
8953
9028
|
}
|
|
8954
9029
|
|
|
8955
9030
|
var _useState = useState(getT),
|
|
@@ -8957,6 +9032,9 @@ function useTranslation(ns) {
|
|
|
8957
9032
|
t = _useState2[0],
|
|
8958
9033
|
setT = _useState2[1];
|
|
8959
9034
|
|
|
9035
|
+
var joinedNS = namespaces.join();
|
|
9036
|
+
if (props.lng) joinedNS = "".concat(props.lng).concat(joinedNS);
|
|
9037
|
+
var previousJoinedNS = usePrevious(joinedNS);
|
|
8960
9038
|
var isMounted = useRef(true);
|
|
8961
9039
|
useEffect(function () {
|
|
8962
9040
|
var bindI18n = i18nOptions.bindI18n,
|
|
@@ -8964,9 +9042,19 @@ function useTranslation(ns) {
|
|
|
8964
9042
|
isMounted.current = true;
|
|
8965
9043
|
|
|
8966
9044
|
if (!ready && !useSuspense) {
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
9045
|
+
if (props.lng) {
|
|
9046
|
+
loadLanguages(i18n, props.lng, namespaces, function () {
|
|
9047
|
+
if (isMounted.current) setT(getT);
|
|
9048
|
+
});
|
|
9049
|
+
} else {
|
|
9050
|
+
loadNamespaces(i18n, namespaces, function () {
|
|
9051
|
+
if (isMounted.current) setT(getT);
|
|
9052
|
+
});
|
|
9053
|
+
}
|
|
9054
|
+
}
|
|
9055
|
+
|
|
9056
|
+
if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
|
|
9057
|
+
setT(getT);
|
|
8970
9058
|
}
|
|
8971
9059
|
|
|
8972
9060
|
function boundReset() {
|
|
@@ -8984,7 +9072,7 @@ function useTranslation(ns) {
|
|
|
8984
9072
|
return i18n.store.off(e, boundReset);
|
|
8985
9073
|
});
|
|
8986
9074
|
};
|
|
8987
|
-
}, [i18n,
|
|
9075
|
+
}, [i18n, joinedNS]);
|
|
8988
9076
|
var isInitial = useRef(true);
|
|
8989
9077
|
useEffect(function () {
|
|
8990
9078
|
if (isMounted.current && !isInitial.current) {
|
|
@@ -8992,7 +9080,7 @@ function useTranslation(ns) {
|
|
|
8992
9080
|
}
|
|
8993
9081
|
|
|
8994
9082
|
isInitial.current = false;
|
|
8995
|
-
}, [i18n]);
|
|
9083
|
+
}, [i18n, keyPrefix]);
|
|
8996
9084
|
var ret = [t, i18n, ready];
|
|
8997
9085
|
ret.t = t;
|
|
8998
9086
|
ret.i18n = i18n;
|
|
@@ -9000,9 +9088,15 @@ function useTranslation(ns) {
|
|
|
9000
9088
|
if (ready) return ret;
|
|
9001
9089
|
if (!ready && !useSuspense) return ret;
|
|
9002
9090
|
throw new Promise(function (resolve) {
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9091
|
+
if (props.lng) {
|
|
9092
|
+
loadLanguages(i18n, props.lng, namespaces, function () {
|
|
9093
|
+
return resolve();
|
|
9094
|
+
});
|
|
9095
|
+
} else {
|
|
9096
|
+
loadNamespaces(i18n, namespaces, function () {
|
|
9097
|
+
return resolve();
|
|
9098
|
+
});
|
|
9099
|
+
}
|
|
9006
9100
|
});
|
|
9007
9101
|
}
|
|
9008
9102
|
|
|
@@ -9022,20 +9116,17 @@ function I18nextProvider(_ref) {
|
|
|
9022
9116
|
}
|
|
9023
9117
|
|
|
9024
9118
|
function _extends$2() {
|
|
9025
|
-
_extends$2 = Object.assign
|
|
9119
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function (target) {
|
|
9026
9120
|
for (var i = 1; i < arguments.length; i++) {
|
|
9027
9121
|
var source = arguments[i];
|
|
9028
|
-
|
|
9029
9122
|
for (var key in source) {
|
|
9030
9123
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9031
9124
|
target[key] = source[key];
|
|
9032
9125
|
}
|
|
9033
9126
|
}
|
|
9034
9127
|
}
|
|
9035
|
-
|
|
9036
9128
|
return target;
|
|
9037
9129
|
};
|
|
9038
|
-
|
|
9039
9130
|
return _extends$2.apply(this, arguments);
|
|
9040
9131
|
}
|
|
9041
9132
|
|
|
@@ -9043,16 +9134,14 @@ function _assertThisInitialized$1(self) {
|
|
|
9043
9134
|
if (self === void 0) {
|
|
9044
9135
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9045
9136
|
}
|
|
9046
|
-
|
|
9047
9137
|
return self;
|
|
9048
9138
|
}
|
|
9049
9139
|
|
|
9050
9140
|
function _setPrototypeOf$1(o, p) {
|
|
9051
|
-
_setPrototypeOf$1 = Object.setPrototypeOf
|
|
9141
|
+
_setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
9052
9142
|
o.__proto__ = p;
|
|
9053
9143
|
return o;
|
|
9054
9144
|
};
|
|
9055
|
-
|
|
9056
9145
|
return _setPrototypeOf$1(o, p);
|
|
9057
9146
|
}
|
|
9058
9147
|
|
|
@@ -9063,66 +9152,51 @@ function _inheritsLoose$1(subClass, superClass) {
|
|
|
9063
9152
|
}
|
|
9064
9153
|
|
|
9065
9154
|
function _getPrototypeOf(o) {
|
|
9066
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
9155
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
9067
9156
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
9068
9157
|
};
|
|
9069
9158
|
return _getPrototypeOf(o);
|
|
9070
9159
|
}
|
|
9071
9160
|
|
|
9072
9161
|
function _isNativeFunction(fn) {
|
|
9073
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
9074
|
-
}
|
|
9075
|
-
|
|
9076
|
-
function _isNativeReflectConstruct() {
|
|
9077
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
9078
|
-
if (Reflect.construct.sham) return false;
|
|
9079
|
-
if (typeof Proxy === "function") return true;
|
|
9080
|
-
|
|
9081
9162
|
try {
|
|
9082
|
-
|
|
9083
|
-
return true;
|
|
9163
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
9084
9164
|
} catch (e) {
|
|
9085
|
-
return
|
|
9165
|
+
return typeof fn === "function";
|
|
9086
9166
|
}
|
|
9087
9167
|
}
|
|
9088
9168
|
|
|
9089
|
-
function
|
|
9090
|
-
|
|
9091
|
-
|
|
9092
|
-
}
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
var instance = new Constructor();
|
|
9098
|
-
if (Class) _setPrototypeOf$1(instance, Class.prototype);
|
|
9099
|
-
return instance;
|
|
9100
|
-
};
|
|
9101
|
-
}
|
|
9169
|
+
function _isNativeReflectConstruct() {
|
|
9170
|
+
try {
|
|
9171
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
9172
|
+
} catch (t) {}
|
|
9173
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
9174
|
+
return !!t;
|
|
9175
|
+
})();
|
|
9176
|
+
}
|
|
9102
9177
|
|
|
9103
|
-
|
|
9178
|
+
function _construct(t, e, r) {
|
|
9179
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
9180
|
+
var o = [null];
|
|
9181
|
+
o.push.apply(o, e);
|
|
9182
|
+
var p = new (t.bind.apply(t, o))();
|
|
9183
|
+
return r && _setPrototypeOf$1(p, r.prototype), p;
|
|
9104
9184
|
}
|
|
9105
9185
|
|
|
9106
9186
|
function _wrapNativeSuper(Class) {
|
|
9107
9187
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
9108
|
-
|
|
9109
9188
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
9110
9189
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
9111
|
-
|
|
9112
9190
|
if (typeof Class !== "function") {
|
|
9113
9191
|
throw new TypeError("Super expression must either be null or a function");
|
|
9114
9192
|
}
|
|
9115
|
-
|
|
9116
9193
|
if (typeof _cache !== "undefined") {
|
|
9117
9194
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
9118
|
-
|
|
9119
9195
|
_cache.set(Class, Wrapper);
|
|
9120
9196
|
}
|
|
9121
|
-
|
|
9122
9197
|
function Wrapper() {
|
|
9123
9198
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
9124
9199
|
}
|
|
9125
|
-
|
|
9126
9200
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
9127
9201
|
constructor: {
|
|
9128
9202
|
value: Wrapper,
|
|
@@ -9133,7 +9207,6 @@ function _wrapNativeSuper(Class) {
|
|
|
9133
9207
|
});
|
|
9134
9208
|
return _setPrototypeOf$1(Wrapper, Class);
|
|
9135
9209
|
};
|
|
9136
|
-
|
|
9137
9210
|
return _wrapNativeSuper(Class);
|
|
9138
9211
|
}
|
|
9139
9212
|
|
|
@@ -10250,7 +10323,34 @@ var Alert$1 = styled(Alert).withConfig({
|
|
|
10250
10323
|
componentId: "sc-quomwu-0"
|
|
10251
10324
|
})(styles);
|
|
10252
10325
|
|
|
10326
|
+
function _typeof(o) {
|
|
10327
|
+
"@babel/helpers - typeof";
|
|
10328
|
+
|
|
10329
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
10330
|
+
return typeof o;
|
|
10331
|
+
} : function (o) {
|
|
10332
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10333
|
+
}, _typeof(o);
|
|
10334
|
+
}
|
|
10335
|
+
|
|
10336
|
+
function toPrimitive(t, r) {
|
|
10337
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
10338
|
+
var e = t[Symbol.toPrimitive];
|
|
10339
|
+
if (void 0 !== e) {
|
|
10340
|
+
var i = e.call(t, r || "default");
|
|
10341
|
+
if ("object" != _typeof(i)) return i;
|
|
10342
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10343
|
+
}
|
|
10344
|
+
return ("string" === r ? String : Number)(t);
|
|
10345
|
+
}
|
|
10346
|
+
|
|
10347
|
+
function toPropertyKey(t) {
|
|
10348
|
+
var i = toPrimitive(t, "string");
|
|
10349
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
10350
|
+
}
|
|
10351
|
+
|
|
10253
10352
|
function _defineProperty(obj, key, value) {
|
|
10353
|
+
key = toPropertyKey(key);
|
|
10254
10354
|
if (key in obj) {
|
|
10255
10355
|
Object.defineProperty(obj, key, {
|
|
10256
10356
|
value: value,
|
|
@@ -10261,46 +10361,29 @@ function _defineProperty(obj, key, value) {
|
|
|
10261
10361
|
} else {
|
|
10262
10362
|
obj[key] = value;
|
|
10263
10363
|
}
|
|
10264
|
-
|
|
10265
10364
|
return obj;
|
|
10266
10365
|
}
|
|
10267
10366
|
|
|
10268
|
-
function ownKeys(
|
|
10269
|
-
var
|
|
10270
|
-
|
|
10367
|
+
function ownKeys(e, r) {
|
|
10368
|
+
var t = Object.keys(e);
|
|
10271
10369
|
if (Object.getOwnPropertySymbols) {
|
|
10272
|
-
var
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
}
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
10288
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
10289
|
-
|
|
10290
|
-
if (i % 2) {
|
|
10291
|
-
ownKeys(Object(source), true).forEach(function (key) {
|
|
10292
|
-
_defineProperty(target, key, source[key]);
|
|
10293
|
-
});
|
|
10294
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
10295
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10296
|
-
} else {
|
|
10297
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
10298
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10299
|
-
});
|
|
10300
|
-
}
|
|
10370
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
10371
|
+
r && (o = o.filter(function (r) {
|
|
10372
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
10373
|
+
})), t.push.apply(t, o);
|
|
10374
|
+
}
|
|
10375
|
+
return t;
|
|
10376
|
+
}
|
|
10377
|
+
function _objectSpread2(e) {
|
|
10378
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
10379
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
10380
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
10381
|
+
_defineProperty(e, r, t[r]);
|
|
10382
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
10383
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
10384
|
+
});
|
|
10301
10385
|
}
|
|
10302
|
-
|
|
10303
|
-
return target;
|
|
10386
|
+
return e;
|
|
10304
10387
|
}
|
|
10305
10388
|
|
|
10306
10389
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -10315,13 +10398,15 @@ function _defineProperties(target, props) {
|
|
|
10315
10398
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
10316
10399
|
descriptor.configurable = true;
|
|
10317
10400
|
if ("value" in descriptor) descriptor.writable = true;
|
|
10318
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10401
|
+
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
|
|
10319
10402
|
}
|
|
10320
10403
|
}
|
|
10321
|
-
|
|
10322
10404
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
10323
10405
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
10324
10406
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
10407
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
10408
|
+
writable: false
|
|
10409
|
+
});
|
|
10325
10410
|
return Constructor;
|
|
10326
10411
|
}
|
|
10327
10412
|
|
|
@@ -10329,7 +10414,6 @@ function _inherits(subClass, superClass) {
|
|
|
10329
10414
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
10330
10415
|
throw new TypeError("Super expression must either be null or a function");
|
|
10331
10416
|
}
|
|
10332
|
-
|
|
10333
10417
|
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
10334
10418
|
constructor: {
|
|
10335
10419
|
value: subClass,
|
|
@@ -10337,16 +10421,18 @@ function _inherits(subClass, superClass) {
|
|
|
10337
10421
|
configurable: true
|
|
10338
10422
|
}
|
|
10339
10423
|
});
|
|
10424
|
+
Object.defineProperty(subClass, "prototype", {
|
|
10425
|
+
writable: false
|
|
10426
|
+
});
|
|
10340
10427
|
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
10341
10428
|
}
|
|
10342
10429
|
|
|
10343
10430
|
function _possibleConstructorReturn(self, call) {
|
|
10344
|
-
if (call && (_typeof
|
|
10431
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
10345
10432
|
return call;
|
|
10346
10433
|
} else if (call !== void 0) {
|
|
10347
10434
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
10348
10435
|
}
|
|
10349
|
-
|
|
10350
10436
|
return _assertThisInitialized$1(self);
|
|
10351
10437
|
}
|
|
10352
10438
|
|
|
@@ -10354,26 +10440,20 @@ function _createSuper(Derived) {
|
|
|
10354
10440
|
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
10355
10441
|
return function _createSuperInternal() {
|
|
10356
10442
|
var Super = _getPrototypeOf(Derived),
|
|
10357
|
-
|
|
10358
|
-
|
|
10443
|
+
result;
|
|
10359
10444
|
if (hasNativeReflectConstruct) {
|
|
10360
10445
|
var NewTarget = _getPrototypeOf(this).constructor;
|
|
10361
10446
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
10362
10447
|
} else {
|
|
10363
10448
|
result = Super.apply(this, arguments);
|
|
10364
10449
|
}
|
|
10365
|
-
|
|
10366
10450
|
return _possibleConstructorReturn(this, result);
|
|
10367
10451
|
};
|
|
10368
10452
|
}
|
|
10369
10453
|
|
|
10370
10454
|
function _arrayLikeToArray(arr, len) {
|
|
10371
10455
|
if (len == null || len > arr.length) len = arr.length;
|
|
10372
|
-
|
|
10373
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
10374
|
-
arr2[i] = arr[i];
|
|
10375
|
-
}
|
|
10376
|
-
|
|
10456
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
10377
10457
|
return arr2;
|
|
10378
10458
|
}
|
|
10379
10459
|
|
|
@@ -12358,34 +12438,32 @@ function _arrayWithHoles(arr) {
|
|
|
12358
12438
|
if (Array.isArray(arr)) return arr;
|
|
12359
12439
|
}
|
|
12360
12440
|
|
|
12361
|
-
function _iterableToArrayLimit(
|
|
12362
|
-
var
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
try {
|
|
12372
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
12373
|
-
_arr.push(_s.value);
|
|
12374
|
-
|
|
12375
|
-
if (i && _arr.length === i) break;
|
|
12376
|
-
}
|
|
12377
|
-
} catch (err) {
|
|
12378
|
-
_d = true;
|
|
12379
|
-
_e = err;
|
|
12380
|
-
} finally {
|
|
12441
|
+
function _iterableToArrayLimit(r, l) {
|
|
12442
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12443
|
+
if (null != t) {
|
|
12444
|
+
var e,
|
|
12445
|
+
n,
|
|
12446
|
+
i,
|
|
12447
|
+
u,
|
|
12448
|
+
a = [],
|
|
12449
|
+
f = !0,
|
|
12450
|
+
o = !1;
|
|
12381
12451
|
try {
|
|
12382
|
-
if (
|
|
12452
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
12453
|
+
if (Object(t) !== t) return;
|
|
12454
|
+
f = !1;
|
|
12455
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
12456
|
+
} catch (r) {
|
|
12457
|
+
o = !0, n = r;
|
|
12383
12458
|
} finally {
|
|
12384
|
-
|
|
12459
|
+
try {
|
|
12460
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
12461
|
+
} finally {
|
|
12462
|
+
if (o) throw n;
|
|
12463
|
+
}
|
|
12385
12464
|
}
|
|
12465
|
+
return a;
|
|
12386
12466
|
}
|
|
12387
|
-
|
|
12388
|
-
return _arr;
|
|
12389
12467
|
}
|
|
12390
12468
|
|
|
12391
12469
|
function _nonIterableRest() {
|
|
@@ -12401,13 +12479,11 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
12401
12479
|
var target = {};
|
|
12402
12480
|
var sourceKeys = Object.keys(source);
|
|
12403
12481
|
var key, i;
|
|
12404
|
-
|
|
12405
12482
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
12406
12483
|
key = sourceKeys[i];
|
|
12407
12484
|
if (excluded.indexOf(key) >= 0) continue;
|
|
12408
12485
|
target[key] = source[key];
|
|
12409
12486
|
}
|
|
12410
|
-
|
|
12411
12487
|
return target;
|
|
12412
12488
|
}
|
|
12413
12489
|
|
|
@@ -12415,10 +12491,8 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
12415
12491
|
if (source == null) return {};
|
|
12416
12492
|
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
12417
12493
|
var key, i;
|
|
12418
|
-
|
|
12419
12494
|
if (Object.getOwnPropertySymbols) {
|
|
12420
12495
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
12421
|
-
|
|
12422
12496
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12423
12497
|
key = sourceSymbolKeys[i];
|
|
12424
12498
|
if (excluded.indexOf(key) >= 0) continue;
|
|
@@ -12426,31 +12500,13 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
12426
12500
|
target[key] = source[key];
|
|
12427
12501
|
}
|
|
12428
12502
|
}
|
|
12429
|
-
|
|
12430
12503
|
return target;
|
|
12431
12504
|
}
|
|
12432
12505
|
|
|
12433
|
-
function _typeof(obj) {
|
|
12434
|
-
"@babel/helpers - typeof";
|
|
12435
|
-
|
|
12436
|
-
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
|
12437
|
-
_typeof = function _typeof(obj) {
|
|
12438
|
-
return typeof obj;
|
|
12439
|
-
};
|
|
12440
|
-
} else {
|
|
12441
|
-
_typeof = function _typeof(obj) {
|
|
12442
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
12443
|
-
};
|
|
12444
|
-
}
|
|
12445
|
-
|
|
12446
|
-
return _typeof(obj);
|
|
12447
|
-
}
|
|
12448
|
-
|
|
12449
12506
|
function _taggedTemplateLiteral(strings, raw) {
|
|
12450
12507
|
if (!raw) {
|
|
12451
12508
|
raw = strings.slice(0);
|
|
12452
12509
|
}
|
|
12453
|
-
|
|
12454
12510
|
return Object.freeze(Object.defineProperties(strings, {
|
|
12455
12511
|
raw: {
|
|
12456
12512
|
value: Object.freeze(raw)
|
|
@@ -24815,12 +24871,10 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
|
|
|
24815
24871
|
}]
|
|
24816
24872
|
}, function (_ref6) {
|
|
24817
24873
|
var ref = _ref6.ref,
|
|
24818
|
-
style = _ref6.style
|
|
24819
|
-
placement = _ref6.placement;
|
|
24874
|
+
style = _ref6.style;
|
|
24820
24875
|
return labelHidden || tooltip ? /*#__PURE__*/React__default.createElement(HoverText, {
|
|
24821
24876
|
ref: ref,
|
|
24822
|
-
style: style
|
|
24823
|
-
placement: placement
|
|
24877
|
+
style: style
|
|
24824
24878
|
}, tooltip ? tooltip : children) : null;
|
|
24825
24879
|
})), children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /*#__PURE__*/React__default.createElement(Text, {
|
|
24826
24880
|
fontSize: fontSize,
|
|
@@ -24829,16 +24883,6 @@ var IconicButton = /*#__PURE__*/React__default.forwardRef(function (_a, forwarde
|
|
|
24829
24883
|
color: color
|
|
24830
24884
|
}, children) : children));
|
|
24831
24885
|
});
|
|
24832
|
-
IconicButton.propTypes = {
|
|
24833
|
-
className: PropTypes.string,
|
|
24834
|
-
color: PropTypes.string,
|
|
24835
|
-
disabled: PropTypes.bool,
|
|
24836
|
-
onClick: PropTypes.func,
|
|
24837
|
-
icon: PropTypes.string,
|
|
24838
|
-
iconSize: PropTypes.string,
|
|
24839
|
-
tooltip: PropTypes.string,
|
|
24840
|
-
children: PropTypes.node
|
|
24841
|
-
};
|
|
24842
24886
|
|
|
24843
24887
|
var WrapperButton = styled.button.withConfig({
|
|
24844
24888
|
displayName: "CloseButton__WrapperButton",
|
|
@@ -45768,18 +45812,15 @@ function _objectSpread(target) {
|
|
|
45768
45812
|
for (var i = 1; i < arguments.length; i++) {
|
|
45769
45813
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
45770
45814
|
var ownKeys = Object.keys(source);
|
|
45771
|
-
|
|
45772
45815
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
45773
45816
|
ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
45774
45817
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
45775
45818
|
}));
|
|
45776
45819
|
}
|
|
45777
|
-
|
|
45778
45820
|
ownKeys.forEach(function (key) {
|
|
45779
45821
|
_defineProperty(target, key, source[key]);
|
|
45780
45822
|
});
|
|
45781
45823
|
}
|
|
45782
|
-
|
|
45783
45824
|
return target;
|
|
45784
45825
|
}
|
|
45785
45826
|
|