react-asc 25.5.5 → 25.5.6
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/index.d.ts +1028 -0
- package/index.es.js +29 -40
- package/index.js +93 -111
- package/package.json +1 -1
- package/index.es.js.map +0 -1
- package/index.js.map +0 -1
package/index.es.js
CHANGED
|
@@ -1164,20 +1164,16 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
1164
1164
|
* LICENSE file in the root directory of this source tree.
|
|
1165
1165
|
*/
|
|
1166
1166
|
|
|
1167
|
-
var ReactPropTypesSecret$
|
|
1167
|
+
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1168
1168
|
|
|
1169
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$
|
|
1169
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
1170
1170
|
|
|
1171
|
-
var has$
|
|
1172
|
-
|
|
1173
|
-
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
1174
|
-
|
|
1175
|
-
var has$1 = has$2;
|
|
1171
|
+
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
1176
1172
|
|
|
1177
1173
|
var printWarning$1 = function() {};
|
|
1178
1174
|
|
|
1179
1175
|
if (process.env.NODE_ENV !== 'production') {
|
|
1180
|
-
var ReactPropTypesSecret =
|
|
1176
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1181
1177
|
var loggedTypeFailures = {};
|
|
1182
1178
|
var has = has$1;
|
|
1183
1179
|
|
|
@@ -1206,7 +1202,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1206
1202
|
* @param {?Function} getStack Returns the component stack.
|
|
1207
1203
|
* @private
|
|
1208
1204
|
*/
|
|
1209
|
-
function checkPropTypes
|
|
1205
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
1210
1206
|
if (process.env.NODE_ENV !== 'production') {
|
|
1211
1207
|
for (var typeSpecName in typeSpecs) {
|
|
1212
1208
|
if (has(typeSpecs, typeSpecName)) {
|
|
@@ -1261,15 +1257,13 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
|
|
|
1261
1257
|
*
|
|
1262
1258
|
* @private
|
|
1263
1259
|
*/
|
|
1264
|
-
checkPropTypes
|
|
1260
|
+
checkPropTypes.resetWarningCache = function() {
|
|
1265
1261
|
if (process.env.NODE_ENV !== 'production') {
|
|
1266
1262
|
loggedTypeFailures = {};
|
|
1267
1263
|
}
|
|
1268
1264
|
};
|
|
1269
1265
|
|
|
1270
|
-
var checkPropTypes_1 = checkPropTypes
|
|
1271
|
-
|
|
1272
|
-
var checkPropTypes = checkPropTypes_1;
|
|
1266
|
+
var checkPropTypes_1 = checkPropTypes;
|
|
1273
1267
|
|
|
1274
1268
|
var printWarning = function() {};
|
|
1275
1269
|
|
|
@@ -1434,7 +1428,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1434
1428
|
componentName = componentName || ANONYMOUS;
|
|
1435
1429
|
propFullName = propFullName || propName;
|
|
1436
1430
|
|
|
1437
|
-
if (secret !==
|
|
1431
|
+
if (secret !== ReactPropTypesSecret_1) {
|
|
1438
1432
|
if (throwOnDirectAccess) {
|
|
1439
1433
|
// New behavior only for users of `prop-types` package
|
|
1440
1434
|
var err = new Error(
|
|
@@ -1518,7 +1512,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1518
1512
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
1519
1513
|
}
|
|
1520
1514
|
for (var i = 0; i < propValue.length; i++) {
|
|
1521
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']',
|
|
1515
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
1522
1516
|
if (error instanceof Error) {
|
|
1523
1517
|
return error;
|
|
1524
1518
|
}
|
|
@@ -1611,7 +1605,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1611
1605
|
}
|
|
1612
1606
|
for (var key in propValue) {
|
|
1613
1607
|
if (has$1(propValue, key)) {
|
|
1614
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1608
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1615
1609
|
if (error instanceof Error) {
|
|
1616
1610
|
return error;
|
|
1617
1611
|
}
|
|
@@ -1643,7 +1637,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1643
1637
|
var expectedTypes = [];
|
|
1644
1638
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
1645
1639
|
var checker = arrayOfTypeCheckers[i];
|
|
1646
|
-
var checkerResult = checker(props, propName, componentName, location, propFullName,
|
|
1640
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
1647
1641
|
if (checkerResult == null) {
|
|
1648
1642
|
return null;
|
|
1649
1643
|
}
|
|
@@ -1686,7 +1680,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1686
1680
|
if (typeof checker !== 'function') {
|
|
1687
1681
|
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
1688
1682
|
}
|
|
1689
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1683
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1690
1684
|
if (error) {
|
|
1691
1685
|
return error;
|
|
1692
1686
|
}
|
|
@@ -1717,7 +1711,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1717
1711
|
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1718
1712
|
);
|
|
1719
1713
|
}
|
|
1720
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key,
|
|
1714
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1721
1715
|
if (error) {
|
|
1722
1716
|
return error;
|
|
1723
1717
|
}
|
|
@@ -1859,8 +1853,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
1859
1853
|
return propValue.constructor.name;
|
|
1860
1854
|
}
|
|
1861
1855
|
|
|
1862
|
-
ReactPropTypes.checkPropTypes =
|
|
1863
|
-
ReactPropTypes.resetWarningCache =
|
|
1856
|
+
ReactPropTypes.checkPropTypes = checkPropTypes_1;
|
|
1857
|
+
ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
|
|
1864
1858
|
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1865
1859
|
|
|
1866
1860
|
return ReactPropTypes;
|
|
@@ -1872,7 +1866,7 @@ emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
|
1872
1866
|
|
|
1873
1867
|
var factoryWithThrowingShims = function() {
|
|
1874
1868
|
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1875
|
-
if (secret ===
|
|
1869
|
+
if (secret === ReactPropTypesSecret_1) {
|
|
1876
1870
|
// It is still safe when called from React.
|
|
1877
1871
|
return;
|
|
1878
1872
|
}
|
|
@@ -1919,10 +1913,6 @@ var factoryWithThrowingShims = function() {
|
|
|
1919
1913
|
return ReactPropTypes;
|
|
1920
1914
|
};
|
|
1921
1915
|
|
|
1922
|
-
var require$$1 = factoryWithTypeCheckers;
|
|
1923
|
-
|
|
1924
|
-
var require$$2 = factoryWithThrowingShims;
|
|
1925
|
-
|
|
1926
1916
|
var propTypes = createCommonjsModule(function (module) {
|
|
1927
1917
|
/**
|
|
1928
1918
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1937,11 +1927,11 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1937
1927
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1938
1928
|
// http://fb.me/prop-types-in-prod
|
|
1939
1929
|
var throwOnDirectAccess = true;
|
|
1940
|
-
module.exports =
|
|
1930
|
+
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1941
1931
|
} else {
|
|
1942
1932
|
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1943
1933
|
// http://fb.me/prop-types-in-prod
|
|
1944
|
-
module.exports =
|
|
1934
|
+
module.exports = factoryWithThrowingShims();
|
|
1945
1935
|
}
|
|
1946
1936
|
});
|
|
1947
1937
|
|
|
@@ -2626,6 +2616,8 @@ function isObject(value) {
|
|
|
2626
2616
|
|
|
2627
2617
|
var lodash_memoize = memoize;
|
|
2628
2618
|
|
|
2619
|
+
var memoize$1 = lodash_memoize;
|
|
2620
|
+
|
|
2629
2621
|
function resolver(options) {
|
|
2630
2622
|
return JSON.stringify(options);
|
|
2631
2623
|
}
|
|
@@ -2669,13 +2661,13 @@ function getUserLocalesInternal(_temp) {
|
|
|
2669
2661
|
return normalizeLocales(uniqDefined(languageList));
|
|
2670
2662
|
}
|
|
2671
2663
|
|
|
2672
|
-
var getUserLocales =
|
|
2664
|
+
var getUserLocales = memoize$1(getUserLocalesInternal, resolver);
|
|
2673
2665
|
|
|
2674
2666
|
function getUserLocaleInternal(options) {
|
|
2675
2667
|
return getUserLocales(options)[0] || null;
|
|
2676
2668
|
}
|
|
2677
2669
|
|
|
2678
|
-
var getUserLocale =
|
|
2670
|
+
var getUserLocale = memoize$1(getUserLocaleInternal, resolver);
|
|
2679
2671
|
|
|
2680
2672
|
/**
|
|
2681
2673
|
* Utils
|
|
@@ -4429,7 +4421,7 @@ function getInitialActiveStartDate(props) {
|
|
|
4429
4421
|
var getIsSingleValue = function getIsSingleValue(value) {
|
|
4430
4422
|
return value && [].concat(value).length === 1;
|
|
4431
4423
|
};
|
|
4432
|
-
var Calendar
|
|
4424
|
+
var Calendar = /*#__PURE__*/function (_Component) {
|
|
4433
4425
|
_inherits(Calendar, _Component);
|
|
4434
4426
|
var _super = _createSuper(Calendar);
|
|
4435
4427
|
function Calendar() {
|
|
@@ -4881,7 +4873,7 @@ var Calendar$1 = /*#__PURE__*/function (_Component) {
|
|
|
4881
4873
|
}]);
|
|
4882
4874
|
return Calendar;
|
|
4883
4875
|
}(Component);
|
|
4884
|
-
Calendar
|
|
4876
|
+
Calendar.defaultProps = {
|
|
4885
4877
|
goToRangeStartOnSelect: true,
|
|
4886
4878
|
maxDate: defaultMaxDate,
|
|
4887
4879
|
maxDetail: 'month',
|
|
@@ -4893,7 +4885,7 @@ Calendar$1.defaultProps = {
|
|
|
4893
4885
|
};
|
|
4894
4886
|
var isActiveStartDate = PropTypes.instanceOf(Date);
|
|
4895
4887
|
var isLooseValue = PropTypes.oneOfType([PropTypes.string, isValue]);
|
|
4896
|
-
Calendar
|
|
4888
|
+
Calendar.propTypes = {
|
|
4897
4889
|
activeStartDate: isActiveStartDate,
|
|
4898
4890
|
allowPartialRange: PropTypes.bool,
|
|
4899
4891
|
calendarType: isCalendarType,
|
|
@@ -4950,8 +4942,6 @@ Calendar$1.propTypes = {
|
|
|
4950
4942
|
view: isView
|
|
4951
4943
|
};
|
|
4952
4944
|
|
|
4953
|
-
var Calendar = Calendar$1;
|
|
4954
|
-
|
|
4955
4945
|
var css_248z$H = ".DatePicker-module_datePicker__mTJ3f {\n width: 100%;\n}";
|
|
4956
4946
|
var styles$H = {"datePicker":"DatePicker-module_datePicker__mTJ3f"};
|
|
4957
4947
|
styleInject(css_248z$H);
|
|
@@ -6266,7 +6256,7 @@ const Sidebar = (props) => {
|
|
|
6266
6256
|
jsx(ListItemAction, { children: item.isCollapsed ? jsx(ChevronDownSolidIcon, {}) : jsx(ChevronUpSolidIcon, {}) })] }), !item.isCollapsed && item.items && item.items.length > 0 && (jsx(List, { className: "list-level-1", children: item.items.map(subItem => (jsx(ListItem, { className: "list-item-level-1", active: isMenuItemActive(subItem.path), onClick: (e) => handleClickSubItem(item.path, subItem.path, e), children: subItem.label }, subItem.id))) }, `${item.id}-sub`))] }, item.id))) }) }));
|
|
6267
6257
|
};
|
|
6268
6258
|
|
|
6269
|
-
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(
|
|
6259
|
+
var css_248z$j = "@keyframes SkeletonAvatar-module_skeleton-loading__eM-ZU {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonAvatar-module_skeletonAvatar__03QnJ {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n background-color: var(--secondary);\n animation: SkeletonAvatar-module_skeleton-loading__eM-ZU 1s linear infinite alternate;\n}";
|
|
6270
6260
|
var styles$j = {"skeletonAvatar":"SkeletonAvatar-module_skeletonAvatar__03QnJ","skeleton-loading":"SkeletonAvatar-module_skeleton-loading__eM-ZU"};
|
|
6271
6261
|
styleInject(css_248z$j);
|
|
6272
6262
|
|
|
@@ -6281,7 +6271,7 @@ const SkeletonAvatar = (props) => {
|
|
|
6281
6271
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6282
6272
|
};
|
|
6283
6273
|
|
|
6284
|
-
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(
|
|
6274
|
+
var css_248z$i = "@keyframes SkeletonText-module_skeleton-loading__EYFfJ {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonText-module_skeletonText__E5NCO {\n width: 100%;\n height: 0.7rem;\n margin-bottom: 0.5rem;\n border-radius: 0.25rem;\n animation: SkeletonText-module_skeleton-loading__EYFfJ 1s linear infinite alternate;\n}";
|
|
6285
6275
|
var styles$i = {"skeletonText":"SkeletonText-module_skeletonText__E5NCO","skeleton-loading":"SkeletonText-module_skeleton-loading__EYFfJ"};
|
|
6286
6276
|
styleInject(css_248z$i);
|
|
6287
6277
|
|
|
@@ -6296,7 +6286,7 @@ const SkeletonText = (props) => {
|
|
|
6296
6286
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6297
6287
|
};
|
|
6298
6288
|
|
|
6299
|
-
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(
|
|
6289
|
+
var css_248z$h = "@keyframes SkeletonFooter-module_skeleton-loading__OEErv {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonFooter-module_skeletonFooter__u2Gxc {\n width: 30%;\n height: 0.7rem;\n border-radius: 0.25rem;\n animation: SkeletonFooter-module_skeleton-loading__OEErv 1s linear infinite alternate;\n}";
|
|
6300
6290
|
var styles$h = {"skeletonFooter":"SkeletonFooter-module_skeletonFooter__u2Gxc","skeleton-loading":"SkeletonFooter-module_skeleton-loading__OEErv"};
|
|
6301
6291
|
styleInject(css_248z$h);
|
|
6302
6292
|
|
|
@@ -6311,7 +6301,7 @@ const SkeletonFooter = (props) => {
|
|
|
6311
6301
|
return (jsx("div", { className: getCssClasses(), ...rest }));
|
|
6312
6302
|
};
|
|
6313
6303
|
|
|
6314
|
-
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(
|
|
6304
|
+
var css_248z$g = "@keyframes SkeletonImage-module_skeleton-loading__04lJ7 {\n 0% {\n background-color: hsl(200, 20%, 80%);\n }\n 100% {\n background-color: hsl(200, 20%, 95%);\n }\n}\n.SkeletonImage-module_skeletonImage__2EwDG {\n height: 10rem;\n margin: 0.5rem 0;\n border-radius: 0.75rem;\n animation: SkeletonImage-module_skeleton-loading__04lJ7 1s linear infinite alternate;\n}\n\n.SkeletonImage-module_div__tqqrB {\n width: 100%;\n height: 100%;\n object-fit: cover;\n margin: auto;\n border-radius: 0.75rem;\n border-color: none;\n}";
|
|
6315
6305
|
var styles$g = {"skeletonImage":"SkeletonImage-module_skeletonImage__2EwDG","skeleton-loading":"SkeletonImage-module_skeleton-loading__04lJ7","div":"SkeletonImage-module_div__tqqrB"};
|
|
6316
6306
|
styleInject(css_248z$g);
|
|
6317
6307
|
|
|
@@ -6975,4 +6965,3 @@ const TreeItem = (props) => {
|
|
|
6975
6965
|
};
|
|
6976
6966
|
|
|
6977
6967
|
export { Alert, AppBar, AppBarTitle, AutoComplete, Backdrop, Badge, Breadcrumb, BreadcrumbItem, Button, ButtonContext, ButtonGroup, COLOR, Card, CardBody, CardFooter, CardImage, CardSubtitle, CardText, CardTitle, CaretDownSolidIcon, CheckSolidIcon, CheckSquareRegularIcon, Checkbox, ChevronDownSolidIcon, ChevronLeftSolidIcon, ChevronRightSolidIcon, ChevronUpSolidIcon, Chip, CircleSolidIcon, Column, ConditionalWrapper, CssTransition, DATEMODE, DatePicker, DateSelect, DaySelect, Dot, Drawer, EmailValidator, ExpansionPanel, ExpansionPanelContent, ExpansionPanelHeader, FileInput, FloatingActionButton, Form, FormControl, FormError, FormGroup, FormHint, FormInput, FormLabel, GlobalModal, HomeSolidIcon, HourSelect, Icon, IconButton, IsEmptyValidator, IsEqualValidator, Link, List, ListItem, ListItemAction, ListItemAvatar, ListItemIcon, ListItemText, LoadingIndicator, LoadingIndicatorContainer, MODALBUTTONTYPE, MODALTYPE, MaxValidator, Menu, MenuBody, MenuDivider, MenuItem, MenuToggle, MilliSecondSelect, MinValidator, MinuteSelect, Modal, ModalBody, ModalFooter, ModalHeader, MonthSelect, NumberSelect, POSITION, PlusSolidIcon, Portal$1 as Portal, ProgressBar, Row, SIZE, STATUS, SecondSelect, Select, Sidebar, SkeletonAvatar, SkeletonFooter, SkeletonImage, SkeletonText, Snackbar, SpeedDial, SpeedDialAction, SpeedDialIcon, SpinnerSolidIcon, SquareRegularIcon, Step, Stepper, StepperActions, TIMEMODE, Tab, TabPanel, Table, TableBody, TableCell, TableHead, TableRow, Tabs, Textarea, TimeSelect, TimesCircleSolidIcon, TimesSolidIcon, Tooltip, TreeItem, TreeView, Typography, VARIANT, YearSelect, loadingIndicatorService, modalService, snackbarService, useButtonContext, useConstructor, useCssClasses, useDebounce, useHover, useMobileDetect, useOnDestroy, useWindowSize };
|
|
6978
|
-
//# sourceMappingURL=index.es.js.map
|