impact-ui 4.0.17-alpha.2 → 4.0.18
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/_virtual/index5.js +2 -2
- package/dist/_virtual/index6.js +2 -2
- package/dist/_virtual/index7.js +2 -2
- package/dist/_virtual/index8.js +2 -2
- package/dist/components/Chatbot/Chatbot.types.d.ts +0 -1
- package/dist/components/Chatbot/Chatbot.types.d.ts.map +1 -1
- package/dist/components/Chatbot/chatBotFooter.js +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.d.ts.map +1 -1
- package/dist/components/Chatbot/chatbotModuleMenu.js +12 -2
- package/dist/components/Chatbot/index.d.ts.map +1 -1
- package/dist/components/Chatbot/index.js +4 -10
- package/dist/components/Chatbot/newChatComponent.d.ts +1 -1
- package/dist/components/Chatbot/newChatComponent.d.ts.map +1 -1
- package/dist/components/Chatbot/newChatComponent.js +41 -71
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts +6 -2
- package/dist/components/CommentsPanel/CommentsPanel.impl.d.ts.map +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -6
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts +2 -2
- package/dist/components/CommentsPanel/CommentsPanel.types.d.ts.map +1 -1
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.d.ts.map +1 -1
- package/dist/components/DateRangePicker/dateRangePickerDropdown.js +49 -67
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +1 -3
- package/dist/components/DateRangePicker/utils.d.ts +0 -1
- package/dist/components/DateRangePicker/utils.d.ts.map +1 -1
- package/dist/components/DateRangePicker/utils.js +1 -11
- package/dist/components/Input/HelperText.d.ts.map +1 -1
- package/dist/components/Input/HelperText.js +22 -2
- package/dist/components/Input/index.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.d.ts.map +1 -1
- package/dist/components/KeyboardShortCuts/index.js +112 -38
- package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
- package/dist/components/Menu/IconMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/IconMenuItem.js +1 -2
- package/dist/components/Menu/MenuHeaderInfo.js +1 -1
- package/dist/components/Menu/NestedMenuItem.js +2 -2
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/RadioButtonGroup/index.js +1 -1
- package/dist/components/TableOld/index.d.ts.map +1 -1
- package/dist/components/TableOld/index.js +9 -13
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -2
- package/dist/mcp-component-registry.json +2 -82
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +1 -1
- package/dist/node_modules/@impactsmartsuite/impact-icons/dist/index.js +1 -3
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +18 -90
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/utils/constants.js +1 -1
- package/package.json +2 -7
- package/dist/_virtual/CalendarDay.js +0 -4
- package/dist/_virtual/ModifiersShape.js +0 -4
- package/dist/_virtual/WithStylesContext.js +0 -4
- package/dist/_virtual/and.js +0 -4
- package/dist/_virtual/between.js +0 -4
- package/dist/_virtual/booleanSome.js +0 -4
- package/dist/_virtual/brcast.js +0 -4
- package/dist/_virtual/childrenHavePropXorChildren.js +0 -4
- package/dist/_virtual/childrenOf.js +0 -4
- package/dist/_virtual/childrenOfType.js +0 -4
- package/dist/_virtual/childrenSequenceOf.js +0 -4
- package/dist/_virtual/componentWithName.js +0 -4
- package/dist/_virtual/constants2.js +0 -4
- package/dist/_virtual/constants3.js +0 -4
- package/dist/_virtual/defaultPhrases.js +0 -4
- package/dist/_virtual/direction.js +0 -4
- package/dist/_virtual/disallowedIf.js +0 -4
- package/dist/_virtual/elementType.js +0 -4
- package/dist/_virtual/empty.js +0 -4
- package/dist/_virtual/emptyStylesFn.js +0 -4
- package/dist/_virtual/explicitNull.js +0 -4
- package/dist/_virtual/getCalendarDaySettings.js +0 -4
- package/dist/_virtual/getComponentName.js +0 -4
- package/dist/_virtual/getComponentName2.js +0 -4
- package/dist/_virtual/getPhrase.js +0 -4
- package/dist/_virtual/getPhrasePropTypes.js +0 -4
- package/dist/_virtual/hoist-non-react-statics.cjs.js +0 -2
- package/dist/_virtual/implementation.browser.js +0 -4
- package/dist/_virtual/index10.js +0 -4
- package/dist/_virtual/index11.js +0 -4
- package/dist/_virtual/index9.js +0 -4
- package/dist/_virtual/integer.js +0 -4
- package/dist/_virtual/isInteger.js +0 -4
- package/dist/_virtual/isPlainObject.js +0 -4
- package/dist/_virtual/isPlainObject2.js +0 -4
- package/dist/_virtual/isPrimitive.js +0 -4
- package/dist/_virtual/keysOf.js +0 -4
- package/dist/_virtual/mutuallyExclusiveProps.js +0 -4
- package/dist/_virtual/mutuallyExclusiveTrueProps.js +0 -4
- package/dist/_virtual/nChildren.js +0 -4
- package/dist/_virtual/nonNegativeInteger.js +0 -4
- package/dist/_virtual/nonNegativeNumber.js +0 -4
- package/dist/_virtual/numericString.js +0 -4
- package/dist/_virtual/object.js +0 -4
- package/dist/_virtual/or.js +0 -4
- package/dist/_virtual/perf.js +0 -4
- package/dist/_virtual/performance-now.js +0 -4
- package/dist/_virtual/predicate.js +0 -4
- package/dist/_virtual/range.js +0 -4
- package/dist/_virtual/ref.js +0 -4
- package/dist/_virtual/ref2.js +0 -4
- package/dist/_virtual/renderableChildren.js +0 -4
- package/dist/_virtual/requiredBy.js +0 -4
- package/dist/_virtual/restrictedProp.js +0 -4
- package/dist/_virtual/sequenceOf.js +0 -4
- package/dist/_virtual/shape.js +0 -4
- package/dist/_virtual/stringEndsWith.js +0 -4
- package/dist/_virtual/stringStartsWith.js +0 -4
- package/dist/_virtual/typeOf.js +0 -4
- package/dist/_virtual/uniqueArray.js +0 -4
- package/dist/_virtual/uniqueArrayOf.js +0 -4
- package/dist/_virtual/valuesOf.js +0 -4
- package/dist/_virtual/withDirection.js +0 -4
- package/dist/_virtual/withShape.js +0 -4
- package/dist/_virtual/withStyles.js +0 -4
- package/dist/_virtual/withStylesPropTypes.js +0 -4
- package/dist/_virtual/wrapValidator.js +0 -4
- package/dist/_virtual/wrapValidator2.js +0 -4
- package/dist/components/OnboardingTour/index.d.ts +0 -61
- package/dist/components/OnboardingTour/index.d.ts.map +0 -1
- package/dist/components/OnboardingTour/index.js +0 -232
- package/dist/components/OnboardingTour/productTourList.d.ts +0 -39
- package/dist/components/OnboardingTour/productTourList.d.ts.map +0 -1
- package/dist/components/OnboardingTour/productTourList.js +0 -86
- package/dist/components/OnboardingTour/tooltipCard.d.ts +0 -45
- package/dist/components/OnboardingTour/tooltipCard.d.ts.map +0 -1
- package/dist/components/OnboardingTour/tooltipCard.js +0 -96
- package/dist/components/OnboardingTour/useTooltipCardPosition.d.ts +0 -29
- package/dist/components/OnboardingTour/useTooltipCardPosition.d.ts.map +0 -1
- package/dist/components/OnboardingTour/useTooltipCardPosition.js +0 -221
- package/dist/node_modules/array.prototype.find/implementation.js +0 -37
- package/dist/node_modules/array.prototype.find/index.js +0 -35
- package/dist/node_modules/array.prototype.find/polyfill.js +0 -17
- package/dist/node_modules/array.prototype.find/shim.js +0 -30
- package/dist/node_modules/call-bind/callBound.js +0 -22
- package/dist/node_modules/enzyme-shallow-equal/build/index.js +0 -53
- package/dist/node_modules/es-abstract/2023/CreateMethodProperty.js +0 -46
- package/dist/node_modules/es-abstract/2023/FromPropertyDescriptor.js +0 -22
- package/dist/node_modules/es-abstract/2023/IsDataDescriptor.js +0 -28
- package/dist/node_modules/es-abstract/2023/SameValue.js +0 -21
- package/dist/node_modules/es-abstract/helpers/OwnPropertyKeys.js +0 -12
- package/dist/node_modules/es-set-tostringtag/index.js +0 -39
- package/dist/node_modules/function.prototype.name/implementation.js +0 -59
- package/dist/node_modules/function.prototype.name/index.js +0 -23
- package/dist/node_modules/function.prototype.name/polyfill.js +0 -15
- package/dist/node_modules/function.prototype.name/shim.js +0 -47
- package/dist/node_modules/functions-have-names/index.js +0 -36
- package/dist/node_modules/globalthis/implementation.browser.js +0 -17
- package/dist/node_modules/globalthis/index.js +0 -28
- package/dist/node_modules/globalthis/polyfill.js +0 -18
- package/dist/node_modules/globalthis/shim.js +0 -33
- package/dist/node_modules/is-document.all/index.js +0 -40
- package/dist/node_modules/object-is/implementation.js +0 -25
- package/dist/node_modules/object-is/index.js +0 -27
- package/dist/node_modules/object-is/polyfill.js +0 -15
- package/dist/node_modules/object-is/shim.js +0 -23
- package/dist/node_modules/object.assign/implementation.js +0 -52
- package/dist/node_modules/object.assign/index.js +0 -30
- package/dist/node_modules/object.assign/polyfill.js +0 -53
- package/dist/node_modules/object.assign/shim.js +0 -25
- package/dist/node_modules/object.entries/implementation.js +0 -26
- package/dist/node_modules/object.entries/index.js +0 -27
- package/dist/node_modules/object.entries/polyfill.js +0 -15
- package/dist/node_modules/object.entries/shim.js +0 -23
- package/dist/node_modules/object.values/implementation.js +0 -25
- package/dist/node_modules/object.values/index.js +0 -27
- package/dist/node_modules/object.values/polyfill.js +0 -15
- package/dist/node_modules/object.values/shim.js +0 -23
- package/dist/node_modules/own-keys/index.js +0 -26
- package/dist/node_modules/performance-now/lib/performance-now.js +0 -42
- package/dist/node_modules/prop-types-exact/build/helpers/isPlainObject.js +0 -15
- package/dist/node_modules/prop-types-exact/node_modules/isarray/index.js +0 -14
- package/dist/node_modules/prop-types-exact/src/index.js +0 -52
- package/dist/node_modules/raf/index.js +0 -66
- package/dist/node_modules/react-dates/lib/components/CalendarDay.js +0 -355
- package/dist/node_modules/react-dates/lib/constants.js +0 -68
- package/dist/node_modules/react-dates/lib/defaultPhrases.js +0 -250
- package/dist/node_modules/react-dates/lib/shapes/ModifiersShape.js +0 -41
- package/dist/node_modules/react-dates/lib/utils/getCalendarDaySettings.js +0 -64
- package/dist/node_modules/react-dates/lib/utils/getPhrase.js +0 -23
- package/dist/node_modules/react-dates/lib/utils/getPhrasePropTypes.js +0 -55
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/and.js +0 -53
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/between.js +0 -276
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/booleanSome.js +0 -64
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/childrenHavePropXorChildren.js +0 -65
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/childrenOf.js +0 -105
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/childrenOfType.js +0 -63
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/childrenSequenceOf.js +0 -100
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/componentWithName.js +0 -109
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/disallowedIf.js +0 -64
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/elementType.js +0 -77
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/empty.js +0 -46
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/explicitNull.js +0 -50
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/getComponentName.js +0 -41
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/isInteger.js +0 -23
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/isPlainObject.js +0 -23
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/isPrimitive.js +0 -32
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/renderableChildren.js +0 -26
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/typeOf.js +0 -49
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/helpers/wrapValidator.js +0 -33
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/index.js +0 -123
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/integer.js +0 -45
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/keysOf.js +0 -63
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/mocks/index.js +0 -55
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/mutuallyExclusiveProps.js +0 -100
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/mutuallyExclusiveTrueProps.js +0 -64
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/nChildren.js +0 -47
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/nonNegativeInteger.js +0 -27
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/nonNegativeNumber.js +0 -45
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/numericString.js +0 -55
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/object.js +0 -56
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/or.js +0 -96
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/predicate.js +0 -48
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/range.js +0 -49
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/ref.js +0 -58
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/requiredBy.js +0 -49
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/restrictedProp.js +0 -42
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/sequenceOf.js +0 -211
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/shape.js +0 -58
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/stringEndsWith.js +0 -53
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/stringStartsWith.js +0 -53
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/uniqueArray.js +0 -69
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/uniqueArrayOf.js +0 -116
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/valuesOf.js +0 -54
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/withShape.js +0 -30
- package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/index.js +0 -13
- package/dist/node_modules/react-moment-proptypes/src/core.js +0 -96
- package/dist/node_modules/react-moment-proptypes/src/index.js +0 -48
- package/dist/node_modules/react-moment-proptypes/src/moment-validation-wrapper.js +0 -24
- package/dist/node_modules/react-with-styles/lib/WithStylesContext.js +0 -57
- package/dist/node_modules/react-with-styles/lib/utils/emptyStylesFn.js +0 -22
- package/dist/node_modules/react-with-styles/lib/utils/perf.js +0 -49
- package/dist/node_modules/react-with-styles/lib/withStyles.js +0 -252
- package/dist/node_modules/react-with-styles/lib/withStylesPropTypes.js +0 -28
- package/dist/node_modules/react-with-styles/node_modules/airbnb-prop-types/build/helpers/getComponentName.js +0 -41
- package/dist/node_modules/react-with-styles/node_modules/airbnb-prop-types/build/helpers/isPlainObject.js +0 -23
- package/dist/node_modules/react-with-styles/node_modules/airbnb-prop-types/build/helpers/wrapValidator.js +0 -33
- package/dist/node_modules/react-with-styles/node_modules/airbnb-prop-types/build/ref.js +0 -58
- package/dist/node_modules/react-with-styles/node_modules/deepmerge/dist/cjs.js +0 -85
- package/dist/node_modules/react-with-styles/node_modules/react-with-direction/dist/constants.js +0 -18
- package/dist/node_modules/react-with-styles/node_modules/react-with-direction/dist/proptypes/brcast.js +0 -26
- package/dist/node_modules/react-with-styles/node_modules/react-with-direction/dist/proptypes/direction.js +0 -27
- package/dist/node_modules/react-with-styles/node_modules/react-with-direction/dist/withDirection.js +0 -160
- package/dist/node_modules/reflect.ownkeys/implementation.js +0 -15
- package/dist/node_modules/reflect.ownkeys/index.js +0 -27
- package/dist/node_modules/reflect.ownkeys/polyfill.js +0 -18
- package/dist/node_modules/reflect.ownkeys/shim.js +0 -30
- package/dist/node_modules/safe-push-apply/index.js +0 -22
- package/dist/node_modules/safe-push-apply/node_modules/isarray/index.js +0 -14
- package/dist/stories/generated/cdnGetAssetUrlManifest.d.ts +0 -6
- package/dist/stories/generated/cdnGetAssetUrlManifest.d.ts.map +0 -1
package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/stringEndsWith.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { __exports as stringEndsWith } from "../../../../../_virtual/stringEndsWith.js";
|
|
2
|
-
import { p as propTypesExports } from "../../../../prop-types/index.js";
|
|
3
|
-
import { __require as requireWrapValidator } from "./helpers/wrapValidator.js";
|
|
4
|
-
var hasRequiredStringEndsWith;
|
|
5
|
-
function requireStringEndsWith() {
|
|
6
|
-
if (hasRequiredStringEndsWith) return stringEndsWith;
|
|
7
|
-
hasRequiredStringEndsWith = 1;
|
|
8
|
-
(function(exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports["default"] = stringEndsWithValidator;
|
|
13
|
-
var _propTypes = propTypesExports;
|
|
14
|
-
var _wrapValidator = _interopRequireDefault(requireWrapValidator());
|
|
15
|
-
function _interopRequireDefault(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
17
|
-
}
|
|
18
|
-
function stringEndsWithValidator(end) {
|
|
19
|
-
if (typeof end !== "string" || end.length === 0) {
|
|
20
|
-
throw new TypeError("a non-empty string is required");
|
|
21
|
-
}
|
|
22
|
-
var validator = function stringEndsWith2(props, propName, componentName) {
|
|
23
|
-
var propValue = props[propName];
|
|
24
|
-
if (propValue == null) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
28
|
-
rest[_key - 3] = arguments[_key];
|
|
29
|
-
}
|
|
30
|
-
var stringError = _propTypes.string.apply(void 0, [props, propName, componentName].concat(rest));
|
|
31
|
-
if (stringError) {
|
|
32
|
-
return stringError;
|
|
33
|
-
}
|
|
34
|
-
if (!propValue.endsWith(end) || propValue.length <= end.length) {
|
|
35
|
-
return new TypeError("".concat(componentName, ": ").concat(propName, ' does not end with "').concat(end, '"'));
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
};
|
|
39
|
-
validator.isRequired = function requiredStringEndsWith() {
|
|
40
|
-
var stringError = _propTypes.string.isRequired.apply(_propTypes.string, arguments);
|
|
41
|
-
if (stringError) {
|
|
42
|
-
return stringError;
|
|
43
|
-
}
|
|
44
|
-
return validator.apply(void 0, arguments);
|
|
45
|
-
};
|
|
46
|
-
return (0, _wrapValidator["default"])(validator, "stringEndsWith: ".concat(end));
|
|
47
|
-
}
|
|
48
|
-
})(stringEndsWith);
|
|
49
|
-
return stringEndsWith;
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
requireStringEndsWith as __require
|
|
53
|
-
};
|
package/dist/node_modules/react-dates/node_modules/airbnb-prop-types/build/stringStartsWith.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { __exports as stringStartsWith } from "../../../../../_virtual/stringStartsWith.js";
|
|
2
|
-
import { p as propTypesExports } from "../../../../prop-types/index.js";
|
|
3
|
-
import { __require as requireWrapValidator } from "./helpers/wrapValidator.js";
|
|
4
|
-
var hasRequiredStringStartsWith;
|
|
5
|
-
function requireStringStartsWith() {
|
|
6
|
-
if (hasRequiredStringStartsWith) return stringStartsWith;
|
|
7
|
-
hasRequiredStringStartsWith = 1;
|
|
8
|
-
(function(exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports["default"] = stringStartsWithValidator;
|
|
13
|
-
var _propTypes = propTypesExports;
|
|
14
|
-
var _wrapValidator = _interopRequireDefault(requireWrapValidator());
|
|
15
|
-
function _interopRequireDefault(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
17
|
-
}
|
|
18
|
-
function stringStartsWithValidator(start) {
|
|
19
|
-
if (typeof start !== "string" || start.length === 0) {
|
|
20
|
-
throw new TypeError("a non-empty string is required");
|
|
21
|
-
}
|
|
22
|
-
var validator = function stringStartsWith2(props, propName, componentName) {
|
|
23
|
-
var propValue = props[propName];
|
|
24
|
-
if (propValue == null) {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
28
|
-
rest[_key - 3] = arguments[_key];
|
|
29
|
-
}
|
|
30
|
-
var stringError = _propTypes.string.apply(void 0, [props, propName, componentName].concat(rest));
|
|
31
|
-
if (stringError) {
|
|
32
|
-
return stringError;
|
|
33
|
-
}
|
|
34
|
-
if (!propValue.startsWith(start) || propValue.length <= start.length) {
|
|
35
|
-
return new TypeError("".concat(componentName, ": ").concat(propName, ' does not start with "').concat(start, '"'));
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
};
|
|
39
|
-
validator.isRequired = function requiredStringStartsWith() {
|
|
40
|
-
var stringError = _propTypes.string.isRequired.apply(_propTypes.string, arguments);
|
|
41
|
-
if (stringError) {
|
|
42
|
-
return stringError;
|
|
43
|
-
}
|
|
44
|
-
return validator.apply(void 0, arguments);
|
|
45
|
-
};
|
|
46
|
-
return (0, _wrapValidator["default"])(validator, "stringStartsWith: ".concat(start));
|
|
47
|
-
}
|
|
48
|
-
})(stringStartsWith);
|
|
49
|
-
return stringStartsWith;
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
requireStringStartsWith as __require
|
|
53
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { __exports as uniqueArray } from "../../../../../_virtual/uniqueArray.js";
|
|
2
|
-
import { p as propTypesExports } from "../../../../prop-types/index.js";
|
|
3
|
-
import { __require as requireWrapValidator } from "./helpers/wrapValidator.js";
|
|
4
|
-
var hasRequiredUniqueArray;
|
|
5
|
-
function requireUniqueArray() {
|
|
6
|
-
if (hasRequiredUniqueArray) return uniqueArray;
|
|
7
|
-
hasRequiredUniqueArray = 1;
|
|
8
|
-
(function(exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports["default"] = void 0;
|
|
13
|
-
var _propTypes = propTypesExports;
|
|
14
|
-
var _wrapValidator = _interopRequireDefault(requireWrapValidator());
|
|
15
|
-
function _interopRequireDefault(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
17
|
-
}
|
|
18
|
-
function uniqueCountWithSet(arr) {
|
|
19
|
-
return new Set(arr).size;
|
|
20
|
-
}
|
|
21
|
-
function uniqueCountLegacy(arr) {
|
|
22
|
-
var seen = [];
|
|
23
|
-
arr.forEach(function(item) {
|
|
24
|
-
if (seen.indexOf(item) === -1) {
|
|
25
|
-
seen.push(item);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
return seen.length;
|
|
29
|
-
}
|
|
30
|
-
var getUniqueCount = typeof Set === "function" ? uniqueCountWithSet : (
|
|
31
|
-
/* istanbul ignore next */
|
|
32
|
-
uniqueCountLegacy
|
|
33
|
-
);
|
|
34
|
-
function requiredUniqueArray(props, propName, componentName) {
|
|
35
|
-
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
36
|
-
rest[_key - 3] = arguments[_key];
|
|
37
|
-
}
|
|
38
|
-
var result = _propTypes.array.isRequired.apply(_propTypes.array, [props, propName, componentName].concat(rest));
|
|
39
|
-
if (result != null) {
|
|
40
|
-
return result;
|
|
41
|
-
}
|
|
42
|
-
var propValue = props[propName];
|
|
43
|
-
var uniqueCount = getUniqueCount(propValue);
|
|
44
|
-
if (uniqueCount !== propValue.length) {
|
|
45
|
-
return new RangeError("".concat(componentName, ": values must be unique. ").concat(propValue.length - uniqueCount, " duplicate values found."));
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
function uniqueArray2(props, propName) {
|
|
50
|
-
var propValue = props[propName];
|
|
51
|
-
if (propValue == null) {
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
55
|
-
rest[_key2 - 2] = arguments[_key2];
|
|
56
|
-
}
|
|
57
|
-
return requiredUniqueArray.apply(void 0, [props, propName].concat(rest));
|
|
58
|
-
}
|
|
59
|
-
uniqueArray2.isRequired = requiredUniqueArray;
|
|
60
|
-
var _default = function _default2() {
|
|
61
|
-
return (0, _wrapValidator["default"])(uniqueArray2, "uniqueArray");
|
|
62
|
-
};
|
|
63
|
-
exports["default"] = _default;
|
|
64
|
-
})(uniqueArray);
|
|
65
|
-
return uniqueArray;
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
requireUniqueArray as __require
|
|
69
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { __exports as uniqueArrayOf } from "../../../../../_virtual/uniqueArrayOf.js";
|
|
2
|
-
import { p as propTypesExports } from "../../../../prop-types/index.js";
|
|
3
|
-
import { __require as requireAnd } from "./and.js";
|
|
4
|
-
import { __require as requireUniqueArray } from "./uniqueArray.js";
|
|
5
|
-
var hasRequiredUniqueArrayOf;
|
|
6
|
-
function requireUniqueArrayOf() {
|
|
7
|
-
if (hasRequiredUniqueArrayOf) return uniqueArrayOf;
|
|
8
|
-
hasRequiredUniqueArrayOf = 1;
|
|
9
|
-
(function(exports) {
|
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
|
11
|
-
value: true
|
|
12
|
-
});
|
|
13
|
-
exports["default"] = uniqueArrayOfTypeValidator;
|
|
14
|
-
var _propTypes = propTypesExports;
|
|
15
|
-
var _and = _interopRequireDefault(requireAnd());
|
|
16
|
-
var _uniqueArray = _interopRequireDefault(requireUniqueArray());
|
|
17
|
-
function _interopRequireDefault(obj) {
|
|
18
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
19
|
-
}
|
|
20
|
-
function ownKeys(object, enumerableOnly) {
|
|
21
|
-
var keys = Object.keys(object);
|
|
22
|
-
if (Object.getOwnPropertySymbols) {
|
|
23
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
24
|
-
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
25
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
26
|
-
});
|
|
27
|
-
keys.push.apply(keys, symbols);
|
|
28
|
-
}
|
|
29
|
-
return keys;
|
|
30
|
-
}
|
|
31
|
-
function _objectSpread(target) {
|
|
32
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
33
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
34
|
-
if (i % 2) {
|
|
35
|
-
ownKeys(Object(source), true).forEach(function(key) {
|
|
36
|
-
_defineProperty(target, key, source[key]);
|
|
37
|
-
});
|
|
38
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
39
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
40
|
-
} else {
|
|
41
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
42
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return target;
|
|
47
|
-
}
|
|
48
|
-
function _defineProperty(obj, key, value) {
|
|
49
|
-
if (key in obj) {
|
|
50
|
-
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
51
|
-
} else {
|
|
52
|
-
obj[key] = value;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
}
|
|
56
|
-
var unique = (0, _uniqueArray["default"])();
|
|
57
|
-
function uniqueArrayOfTypeValidator(type) {
|
|
58
|
-
if (typeof type !== "function") {
|
|
59
|
-
throw new TypeError("type must be a validator function");
|
|
60
|
-
}
|
|
61
|
-
var mapper = null;
|
|
62
|
-
var name = "uniqueArrayOfType";
|
|
63
|
-
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
64
|
-
rest[_key - 1] = arguments[_key];
|
|
65
|
-
}
|
|
66
|
-
if (rest.length === 1) {
|
|
67
|
-
if (typeof rest[0] === "function") {
|
|
68
|
-
mapper = rest[0];
|
|
69
|
-
} else if (typeof rest[0] === "string") {
|
|
70
|
-
name = rest[0];
|
|
71
|
-
} else {
|
|
72
|
-
throw new TypeError("single input must either be string or function");
|
|
73
|
-
}
|
|
74
|
-
} else if (rest.length === 2) {
|
|
75
|
-
if (typeof rest[0] === "function" && typeof rest[1] === "string") {
|
|
76
|
-
mapper = rest[0];
|
|
77
|
-
name = rest[1];
|
|
78
|
-
} else {
|
|
79
|
-
throw new TypeError("multiple inputs must be in [function, string] order");
|
|
80
|
-
}
|
|
81
|
-
} else if (rest.length > 2) {
|
|
82
|
-
throw new TypeError("only [], [name], [mapper], and [mapper, name] are valid inputs");
|
|
83
|
-
}
|
|
84
|
-
function uniqueArrayOfMapped(props, propName) {
|
|
85
|
-
var propValue = props[propName];
|
|
86
|
-
if (propValue == null) {
|
|
87
|
-
return null;
|
|
88
|
-
}
|
|
89
|
-
var values = propValue.map(mapper);
|
|
90
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
91
|
-
args[_key2 - 2] = arguments[_key2];
|
|
92
|
-
}
|
|
93
|
-
return unique.apply(void 0, [_objectSpread(_objectSpread({}, props), {}, _defineProperty({}, propName, values)), propName].concat(args));
|
|
94
|
-
}
|
|
95
|
-
uniqueArrayOfMapped.isRequired = function isRequired(props, propName) {
|
|
96
|
-
var propValue = props[propName];
|
|
97
|
-
for (var _len3 = arguments.length, args = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
|
|
98
|
-
args[_key3 - 2] = arguments[_key3];
|
|
99
|
-
}
|
|
100
|
-
if (propValue == null) {
|
|
101
|
-
return _propTypes.array.isRequired.apply(_propTypes.array, [props, propName].concat(args));
|
|
102
|
-
}
|
|
103
|
-
return uniqueArrayOfMapped.apply(void 0, [props, propName].concat(args));
|
|
104
|
-
};
|
|
105
|
-
var arrayValidator = (0, _propTypes.arrayOf)(type);
|
|
106
|
-
var uniqueValidator = mapper ? uniqueArrayOfMapped : unique;
|
|
107
|
-
var validator = (0, _and["default"])([arrayValidator, uniqueValidator], name);
|
|
108
|
-
validator.isRequired = (0, _and["default"])([uniqueValidator.isRequired, arrayValidator.isRequired], "".concat(name, ".isRequired"));
|
|
109
|
-
return validator;
|
|
110
|
-
}
|
|
111
|
-
})(uniqueArrayOf);
|
|
112
|
-
return uniqueArrayOf;
|
|
113
|
-
}
|
|
114
|
-
export {
|
|
115
|
-
requireUniqueArrayOf as __require
|
|
116
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { __exports as valuesOf } from "../../../../../_virtual/valuesOf.js";
|
|
2
|
-
import { __require as requireIsPrimitive } from "./helpers/isPrimitive.js";
|
|
3
|
-
import { __require as requireWrapValidator } from "./helpers/wrapValidator.js";
|
|
4
|
-
var hasRequiredValuesOf;
|
|
5
|
-
function requireValuesOf() {
|
|
6
|
-
if (hasRequiredValuesOf) return valuesOf;
|
|
7
|
-
hasRequiredValuesOf = 1;
|
|
8
|
-
(function(exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports["default"] = valuesOfValidator;
|
|
13
|
-
var _isPrimitive = _interopRequireDefault(requireIsPrimitive());
|
|
14
|
-
var _wrapValidator = _interopRequireDefault(requireWrapValidator());
|
|
15
|
-
function _interopRequireDefault(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
17
|
-
}
|
|
18
|
-
function valuesOfValidator(propType) {
|
|
19
|
-
if (typeof propType !== "function") {
|
|
20
|
-
throw new TypeError("objectOf: propType must be a function");
|
|
21
|
-
}
|
|
22
|
-
var validator = function valuesOf2(props, propName, componentName, location, propFullName) {
|
|
23
|
-
for (var _len = arguments.length, rest = new Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {
|
|
24
|
-
rest[_key - 5] = arguments[_key];
|
|
25
|
-
}
|
|
26
|
-
var propValue = props[propName];
|
|
27
|
-
if (propValue == null || (0, _isPrimitive["default"])(propValue)) {
|
|
28
|
-
return null;
|
|
29
|
-
}
|
|
30
|
-
var firstError;
|
|
31
|
-
Object.keys(propValue).some(function(key) {
|
|
32
|
-
firstError = propType.apply(void 0, [propValue, key, componentName, location, "".concat(propFullName, ".").concat(key)].concat(rest));
|
|
33
|
-
return firstError;
|
|
34
|
-
});
|
|
35
|
-
return firstError || null;
|
|
36
|
-
};
|
|
37
|
-
validator.isRequired = function valuesOfRequired(props, propName, componentName) {
|
|
38
|
-
var propValue = props[propName];
|
|
39
|
-
if (propValue == null) {
|
|
40
|
-
return new TypeError("".concat(componentName, ": ").concat(propName, " is required."));
|
|
41
|
-
}
|
|
42
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {
|
|
43
|
-
rest[_key2 - 3] = arguments[_key2];
|
|
44
|
-
}
|
|
45
|
-
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
46
|
-
};
|
|
47
|
-
return (0, _wrapValidator["default"])(validator, "valuesOf", propType);
|
|
48
|
-
}
|
|
49
|
-
})(valuesOf);
|
|
50
|
-
return valuesOf;
|
|
51
|
-
}
|
|
52
|
-
export {
|
|
53
|
-
requireValuesOf as __require
|
|
54
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __exports as withShape } from "../../../../../_virtual/withShape.js";
|
|
2
|
-
import { __require as requireAnd } from "./and.js";
|
|
3
|
-
import { __require as requireShape } from "./shape.js";
|
|
4
|
-
var hasRequiredWithShape;
|
|
5
|
-
function requireWithShape() {
|
|
6
|
-
if (hasRequiredWithShape) return withShape;
|
|
7
|
-
hasRequiredWithShape = 1;
|
|
8
|
-
(function(exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: true
|
|
11
|
-
});
|
|
12
|
-
exports["default"] = withShape2;
|
|
13
|
-
var _and = _interopRequireDefault(requireAnd());
|
|
14
|
-
var _shape = _interopRequireDefault(requireShape());
|
|
15
|
-
function _interopRequireDefault(obj) {
|
|
16
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
17
|
-
}
|
|
18
|
-
function withShape2(type, shapeTypes) {
|
|
19
|
-
if (typeof type !== "function") {
|
|
20
|
-
throw new TypeError("type must be a valid PropType");
|
|
21
|
-
}
|
|
22
|
-
var shapeValidator = (0, _shape["default"])(shapeTypes);
|
|
23
|
-
return (0, _and["default"])([type, shapeValidator], "withShape");
|
|
24
|
-
}
|
|
25
|
-
})(withShape);
|
|
26
|
-
return withShape;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
requireWithShape as __require
|
|
30
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __require as requireMocks } from "./build/mocks/index.js";
|
|
2
|
-
import { __require as requireBuild } from "./build/index.js";
|
|
3
|
-
var airbnbPropTypes;
|
|
4
|
-
var hasRequiredAirbnbPropTypes;
|
|
5
|
-
function requireAirbnbPropTypes() {
|
|
6
|
-
if (hasRequiredAirbnbPropTypes) return airbnbPropTypes;
|
|
7
|
-
hasRequiredAirbnbPropTypes = 1;
|
|
8
|
-
airbnbPropTypes = process.env.NODE_ENV === "production" ? requireMocks() : requireBuild();
|
|
9
|
-
return airbnbPropTypes;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
requireAirbnbPropTypes as __require
|
|
13
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
var core;
|
|
2
|
-
var hasRequiredCore;
|
|
3
|
-
function requireCore() {
|
|
4
|
-
if (hasRequiredCore) return core;
|
|
5
|
-
hasRequiredCore = 1;
|
|
6
|
-
var messages = {
|
|
7
|
-
invalidPredicate: "`predicate` must be a function",
|
|
8
|
-
invalidPropValidator: "`propValidator` must be a function",
|
|
9
|
-
requiredCore: "is marked as required",
|
|
10
|
-
invalidTypeCore: "Invalid input type",
|
|
11
|
-
predicateFailureCore: "Failed to succeed with predicate",
|
|
12
|
-
anonymousMessage: "<<anonymous>>",
|
|
13
|
-
baseInvalidMessage: "Invalid "
|
|
14
|
-
};
|
|
15
|
-
function constructPropValidatorVariations(propValidator) {
|
|
16
|
-
if (typeof propValidator !== "function") {
|
|
17
|
-
throw new Error(messages.invalidPropValidator);
|
|
18
|
-
}
|
|
19
|
-
var requiredPropValidator = propValidator.bind(null, false, null);
|
|
20
|
-
requiredPropValidator.isRequired = propValidator.bind(null, true, null);
|
|
21
|
-
requiredPropValidator.withPredicate = function predicateApplication(predicate) {
|
|
22
|
-
if (typeof predicate !== "function") {
|
|
23
|
-
throw new Error(messages.invalidPredicate);
|
|
24
|
-
}
|
|
25
|
-
var basePropValidator = propValidator.bind(null, false, predicate);
|
|
26
|
-
basePropValidator.isRequired = propValidator.bind(null, true, predicate);
|
|
27
|
-
return basePropValidator;
|
|
28
|
-
};
|
|
29
|
-
return requiredPropValidator;
|
|
30
|
-
}
|
|
31
|
-
function createInvalidRequiredErrorMessage(propName, componentName, value) {
|
|
32
|
-
return new Error(
|
|
33
|
-
"The prop `" + propName + "` " + messages.requiredCore + " in `" + componentName + "`, but its value is `" + value + "`."
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
var independentGuardianValue = -1;
|
|
37
|
-
function preValidationRequireCheck(isRequired, componentName, propFullName, propValue) {
|
|
38
|
-
var isPropValueUndefined = typeof propValue === "undefined";
|
|
39
|
-
var isPropValueNull = propValue === null;
|
|
40
|
-
if (isRequired) {
|
|
41
|
-
if (isPropValueUndefined) {
|
|
42
|
-
return createInvalidRequiredErrorMessage(propFullName, componentName, "undefined");
|
|
43
|
-
} else if (isPropValueNull) {
|
|
44
|
-
return createInvalidRequiredErrorMessage(propFullName, componentName, "null");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (isPropValueUndefined || isPropValueNull) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return independentGuardianValue;
|
|
51
|
-
}
|
|
52
|
-
function createMomentChecker(type, typeValidator, validator, momentType) {
|
|
53
|
-
function propValidator(isRequired, predicate, props, propName, componentName, location, propFullName) {
|
|
54
|
-
var propValue = props[propName];
|
|
55
|
-
var propType = typeof propValue;
|
|
56
|
-
componentName = componentName || messages.anonymousMessage;
|
|
57
|
-
propFullName = propFullName || propName;
|
|
58
|
-
var preValidationRequireCheckValue = preValidationRequireCheck(
|
|
59
|
-
isRequired,
|
|
60
|
-
componentName,
|
|
61
|
-
propFullName,
|
|
62
|
-
propValue
|
|
63
|
-
);
|
|
64
|
-
if (preValidationRequireCheckValue !== independentGuardianValue) {
|
|
65
|
-
return preValidationRequireCheckValue;
|
|
66
|
-
}
|
|
67
|
-
if (typeValidator && !typeValidator(propValue)) {
|
|
68
|
-
return new Error(
|
|
69
|
-
messages.invalidTypeCore + ": `" + propName + "` of type `" + propType + "` supplied to `" + componentName + "`, expected `" + type + "`."
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
if (!validator(propValue)) {
|
|
73
|
-
return new Error(
|
|
74
|
-
messages.baseInvalidMessage + location + " `" + propName + "` of type `" + propType + "` supplied to `" + componentName + "`, expected `" + momentType + "`."
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
if (predicate && !predicate(propValue)) {
|
|
78
|
-
var predicateName = predicate.name || messages.anonymousMessage;
|
|
79
|
-
return new Error(
|
|
80
|
-
messages.baseInvalidMessage + location + " `" + propName + "` of type `" + propType + "` supplied to `" + componentName + "`. " + messages.predicateFailureCore + " `" + predicateName + "`."
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
return constructPropValidatorVariations(propValidator);
|
|
86
|
-
}
|
|
87
|
-
core = {
|
|
88
|
-
constructPropValidatorVariations,
|
|
89
|
-
createMomentChecker,
|
|
90
|
-
messages
|
|
91
|
-
};
|
|
92
|
-
return core;
|
|
93
|
-
}
|
|
94
|
-
export {
|
|
95
|
-
requireCore as __require
|
|
96
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
import { __require as requireMomentValidationWrapper } from "./moment-validation-wrapper.js";
|
|
3
|
-
import { __require as requireCore } from "./core.js";
|
|
4
|
-
var src;
|
|
5
|
-
var hasRequiredSrc;
|
|
6
|
-
function requireSrc() {
|
|
7
|
-
if (hasRequiredSrc) return src;
|
|
8
|
-
hasRequiredSrc = 1;
|
|
9
|
-
var moment$1 = moment;
|
|
10
|
-
var momentValidationWrapper = requireMomentValidationWrapper();
|
|
11
|
-
var core = requireCore();
|
|
12
|
-
src = {
|
|
13
|
-
momentObj: core.createMomentChecker(
|
|
14
|
-
"object",
|
|
15
|
-
function(obj) {
|
|
16
|
-
return typeof obj === "object";
|
|
17
|
-
},
|
|
18
|
-
function isValid(value) {
|
|
19
|
-
return momentValidationWrapper.isValidMoment(value);
|
|
20
|
-
},
|
|
21
|
-
"Moment"
|
|
22
|
-
),
|
|
23
|
-
momentString: core.createMomentChecker(
|
|
24
|
-
"string",
|
|
25
|
-
function(str) {
|
|
26
|
-
return typeof str === "string";
|
|
27
|
-
},
|
|
28
|
-
function isValid(value) {
|
|
29
|
-
return momentValidationWrapper.isValidMoment(moment$1(value));
|
|
30
|
-
},
|
|
31
|
-
"Moment"
|
|
32
|
-
),
|
|
33
|
-
momentDurationObj: core.createMomentChecker(
|
|
34
|
-
"object",
|
|
35
|
-
function(obj) {
|
|
36
|
-
return typeof obj === "object";
|
|
37
|
-
},
|
|
38
|
-
function isValid(value) {
|
|
39
|
-
return moment$1.isDuration(value);
|
|
40
|
-
},
|
|
41
|
-
"Duration"
|
|
42
|
-
)
|
|
43
|
-
};
|
|
44
|
-
return src;
|
|
45
|
-
}
|
|
46
|
-
export {
|
|
47
|
-
requireSrc as __require
|
|
48
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import moment from "moment";
|
|
2
|
-
var momentValidationWrapper;
|
|
3
|
-
var hasRequiredMomentValidationWrapper;
|
|
4
|
-
function requireMomentValidationWrapper() {
|
|
5
|
-
if (hasRequiredMomentValidationWrapper) return momentValidationWrapper;
|
|
6
|
-
hasRequiredMomentValidationWrapper = 1;
|
|
7
|
-
var moment$1 = moment;
|
|
8
|
-
function isValidMoment(testMoment) {
|
|
9
|
-
if (typeof moment$1.isMoment === "function" && !moment$1.isMoment(testMoment)) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
if (typeof testMoment.isValid === "function") {
|
|
13
|
-
return testMoment.isValid();
|
|
14
|
-
}
|
|
15
|
-
return !isNaN(testMoment);
|
|
16
|
-
}
|
|
17
|
-
momentValidationWrapper = {
|
|
18
|
-
isValidMoment
|
|
19
|
-
};
|
|
20
|
-
return momentValidationWrapper;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
requireMomentValidationWrapper as __require
|
|
24
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { __exports as WithStylesContext } from "../../../_virtual/WithStylesContext.js";
|
|
2
|
-
import require$$0 from "@babel/runtime/helpers/interopRequireDefault";
|
|
3
|
-
import React__default from "react";
|
|
4
|
-
import { p as propTypesExports } from "../../prop-types/index.js";
|
|
5
|
-
import { __require as requireWithDirection } from "../node_modules/react-with-direction/dist/withDirection.js";
|
|
6
|
-
var hasRequiredWithStylesContext;
|
|
7
|
-
function requireWithStylesContext() {
|
|
8
|
-
if (hasRequiredWithStylesContext) return WithStylesContext;
|
|
9
|
-
hasRequiredWithStylesContext = 1;
|
|
10
|
-
(function(exports) {
|
|
11
|
-
var _interopRequireDefault = require$$0;
|
|
12
|
-
Object.defineProperty(exports, "__esModule", {
|
|
13
|
-
value: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(exports, "DIRECTIONS", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
get: function get() {
|
|
18
|
-
return _reactWithDirection.DIRECTIONS;
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
exports["default"] = void 0;
|
|
22
|
-
var _react = React__default;
|
|
23
|
-
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
24
|
-
var _reactWithDirection = requireWithDirection();
|
|
25
|
-
function detectAndCreateContext(defaultValue) {
|
|
26
|
-
if (_react.createContext) {
|
|
27
|
-
return /* @__PURE__ */ (0, _react.createContext)(defaultValue);
|
|
28
|
-
}
|
|
29
|
-
return {
|
|
30
|
-
Provider: function Provider() {
|
|
31
|
-
throw new ReferenceError("WithStylesContext requires React 16.3 or later");
|
|
32
|
-
},
|
|
33
|
-
Consumer: function Consumer() {
|
|
34
|
-
throw new ReferenceError("WithStylesContext requires React 16.3 or later");
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
var WithStylesContext2 = detectAndCreateContext({
|
|
39
|
-
stylesInterface: null,
|
|
40
|
-
stylesTheme: null,
|
|
41
|
-
direction: null
|
|
42
|
-
});
|
|
43
|
-
WithStylesContext2.Provider.propTypes = {
|
|
44
|
-
stylesInterface: _propTypes["default"].object,
|
|
45
|
-
// eslint-disable-line react/forbid-prop-types
|
|
46
|
-
stylesTheme: _propTypes["default"].object,
|
|
47
|
-
// eslint-disable-line react/forbid-prop-types
|
|
48
|
-
direction: _propTypes["default"].oneOf([_reactWithDirection.DIRECTIONS.LTR, _reactWithDirection.DIRECTIONS.RTL])
|
|
49
|
-
};
|
|
50
|
-
var _default = WithStylesContext2;
|
|
51
|
-
exports["default"] = _default;
|
|
52
|
-
})(WithStylesContext);
|
|
53
|
-
return WithStylesContext;
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
requireWithStylesContext as __require
|
|
57
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { __exports as emptyStylesFn } from "../../../../_virtual/emptyStylesFn.js";
|
|
2
|
-
var hasRequiredEmptyStylesFn;
|
|
3
|
-
function requireEmptyStylesFn() {
|
|
4
|
-
if (hasRequiredEmptyStylesFn) return emptyStylesFn;
|
|
5
|
-
hasRequiredEmptyStylesFn = 1;
|
|
6
|
-
(function(exports) {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
var EMPTY_STYLES = {};
|
|
12
|
-
var EMPTY_STYLES_FN = function EMPTY_STYLES_FN2() {
|
|
13
|
-
return EMPTY_STYLES;
|
|
14
|
-
};
|
|
15
|
-
var _default = EMPTY_STYLES_FN;
|
|
16
|
-
exports["default"] = _default;
|
|
17
|
-
})(emptyStylesFn);
|
|
18
|
-
return emptyStylesFn;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
requireEmptyStylesFn as __require
|
|
22
|
-
};
|