@jobber/components 3.5.10 → 4.0.1-pre.4
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/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/Autocomplete/Option.d.ts +2 -2
- package/dist/Autocomplete/index.js +51 -67
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/index.js +2 -2
- package/dist/{Avatar-cfd04e86.js → Avatar-89cfd0a6.js} +14 -18
- package/dist/Banner/Banner.d.ts +1 -1
- package/dist/Banner/index.js +15 -19
- package/dist/Button/Button.d.ts +1 -1
- package/dist/Button/index.js +3 -4
- package/dist/{Button-cd30df0f.js → Button-16e043ec.js} +21 -24
- package/dist/ButtonDismiss/index.js +4 -5
- package/dist/{ButtonDismiss-a9590195.js → ButtonDismiss-3fb1eaf9.js} +2 -3
- package/dist/Card/Card.d.ts +1 -1
- package/dist/Card/index.js +6 -7
- package/dist/Card/types.d.ts +1 -1
- package/dist/{Card-b9f8d6f3.js → Card-edab9c3c.js} +18 -22
- package/dist/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Checkbox/index.js +4 -5
- package/dist/{Checkbox-5103d2b9.js → Checkbox-c1efc2f6.js} +10 -12
- package/dist/Chips/ChipsTypes.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/InternalChipDismissibleTypes.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissible.d.ts +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/useInternalChipDismissibleInput.d.ts +3 -3
- package/dist/Chips/InternalChipMultiSelect.d.ts +1 -1
- package/dist/Chips/InternalChipSingleSelect.d.ts +1 -1
- package/dist/Chips/index.js +165 -185
- package/dist/ConfirmationModal/ConfirmationModal.d.ts +1 -1
- package/dist/ConfirmationModal/index.js +11 -12
- package/dist/{ConfirmationModal-e95f46d7.js → ConfirmationModal-6a7beee2.js} +28 -31
- package/dist/Content/index.js +1 -1
- package/dist/{Content-18de5fbb.js → Content-05df8f7f.js} +2 -3
- package/dist/Countdown/Countdown.d.ts +1 -1
- package/dist/Countdown/computeTimeUnit.d.ts +1 -1
- package/dist/Countdown/index.js +15 -18
- package/dist/DataDump/index.js +9 -11
- package/dist/DataTable/Footer.d.ts +1 -1
- package/dist/DataTable/createTableSettings.d.ts +2 -2
- package/dist/DataTable/index.js +74 -106
- package/dist/DataTable/test-utilities/helpers.d.ts +1 -1
- package/dist/DataTable/types.d.ts +2 -2
- package/dist/DatePicker/DatePicker.d.ts +1 -1
- package/dist/DatePicker/index.js +4 -5
- package/dist/{DatePicker-7c67e8d2.js → DatePicker-af21ae91.js} +31 -36
- package/dist/DescriptionList/index.js +5 -10
- package/dist/Disclosure/index.js +8 -10
- package/dist/Divider/index.js +8 -10
- package/dist/Drawer/index.js +10 -14
- package/dist/Emphasis/index.js +2 -3
- package/dist/{Emphasis-75a3f411.js → Emphasis-23dc2a0a.js} +4 -6
- package/dist/FeatureSwitch/index.js +15 -17
- package/dist/Form/index.js +23 -33
- package/dist/FormField/FormFieldTypes.d.ts +2 -2
- package/dist/FormField/index.js +8 -8
- package/dist/{FormField-76068c0b.js → FormField-1e444bb6.js} +68 -76
- package/dist/FormatDate/index.js +2 -3
- package/dist/FormatEmail/index.js +2 -3
- package/dist/FormatFile/index.js +13 -14
- package/dist/{FormatFile-18e8a54a.js → FormatFile-3512f838.js} +33 -40
- package/dist/FormatRelativeDateTime/index.js +5 -6
- package/dist/FormatTime/index.js +6 -7
- package/dist/Gallery/GalleryTypes.d.ts +2 -2
- package/dist/Gallery/index.js +31 -33
- package/dist/Heading/index.js +2 -3
- package/dist/{Heading-a9a66964.js → Heading-7b203f7f.js} +4 -6
- package/dist/Icon/index.js +1 -1
- package/dist/{Icon-d5ad1a6d.js → Icon-405a216c.js} +7 -8
- package/dist/InlineLabel/InlineLabel.d.ts +1 -1
- package/dist/InlineLabel/index.js +4 -6
- package/dist/InputAvatar/index.js +15 -20
- package/dist/InputDate/index.js +15 -15
- package/dist/InputEmail/InputEmail.d.ts +1 -1
- package/dist/InputEmail/index.js +12 -12
- package/dist/InputFile/index.js +6 -6
- package/dist/{InputFile-e108a7f8.js → InputFile-5e0ed2b5.js} +48 -62
- package/dist/InputGroup/index.js +4 -5
- package/dist/InputNumber/index.js +22 -22
- package/dist/InputPassword/index.js +12 -12
- package/dist/InputText/InputText.d.ts +1 -1
- package/dist/InputText/index.js +9 -9
- package/dist/{InputText-523d0e48.js → InputText-12b112a9.js} +23 -24
- package/dist/InputTime/index.js +27 -27
- package/dist/InputValidation/index.js +4 -5
- package/dist/{InputValidation-06a8a7ba.js → InputValidation-97dd0dcf.js} +7 -8
- package/dist/LightBox/index.js +5 -6
- package/dist/{LightBox-1ad62669.js → LightBox-dd1afa97.js} +22 -26
- package/dist/List/index.js +26 -32
- package/dist/Markdown/index.js +6 -7
- package/dist/{Markdown-b53e0308.js → Markdown-be2dcd0c.js} +12 -18
- package/dist/Menu/index.js +4 -5
- package/dist/{Menu-826cfb89.js → Menu-d6a7d17b.js} +31 -36
- package/dist/Modal/index.js +6 -7
- package/dist/{Modal-cc3bd7bf.js → Modal-757e83fd.js} +13 -17
- package/dist/MultiSelect/index.js +53 -60
- package/dist/MultiSelect/types.d.ts +1 -1
- package/dist/{Option-fdf21181.js → Option-13150f4a.js} +3 -5
- package/dist/Page/Page.d.ts +1 -1
- package/dist/Page/index.js +21 -24
- package/dist/Popover/index.js +11 -13
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-e9a49129.js → ProgressBar-f028b159.js} +3 -4
- package/dist/RadioGroup/RadioOption.d.ts +2 -2
- package/dist/RadioGroup/index.js +9 -13
- package/dist/RecurringSelect/types.d.ts +2 -2
- package/dist/Select/Select.d.ts +1 -1
- package/dist/Select/index.js +9 -9
- package/dist/Spinner/index.js +1 -1
- package/dist/{Spinner-e4e9c8eb.js → Spinner-ae4c8a85.js} +5 -7
- package/dist/StatusLabel/StatusLabel.d.ts +1 -1
- package/dist/StatusLabel/index.js +6 -9
- package/dist/Switch/index.js +2 -3
- package/dist/{Switch-f03b70fc.js → Switch-7ac32f7b.js} +12 -16
- package/dist/Table/index.js +9 -17
- package/dist/Tabs/index.js +28 -34
- package/dist/Text/index.js +2 -3
- package/dist/{Text-e012fb46.js → Text-7ce00adb.js} +4 -5
- package/dist/Toast/Toast.d.ts +2 -2
- package/dist/Toast/index.js +42 -40
- package/dist/Tooltip/index.js +3 -4
- package/dist/Tooltip/useTooltipPositioning.d.ts +1 -1
- package/dist/{Tooltip-041feb00.js → Tooltip-1090a43d.js} +25 -28
- package/dist/Typography/Typography.d.ts +1 -1
- package/dist/Typography/index.js +1 -2
- package/dist/{Typography-fbe0ed6e.js → Typography-9262511f.js} +5 -7
- package/dist/tslib.es6-efe27175.js +38 -0
- package/package.json +8 -8
- package/dist/tslib.es6-5b50eb8e.js +0 -103
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var classnames = require('classnames');
|
|
6
5
|
var ReactDOM = require('react-dom');
|
|
7
6
|
var framerMotion = require('framer-motion');
|
|
8
7
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
9
8
|
var reactPopper = require('react-popper');
|
|
10
|
-
var Text = require('./Text-
|
|
9
|
+
var Text = require('./Text-7ce00adb.js');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
12
|
|
|
@@ -21,10 +20,10 @@ styleInject_es.styleInject(css);
|
|
|
21
20
|
|
|
22
21
|
function useTooltipPositioning() {
|
|
23
22
|
var _a, _b;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
const shadowRef = React.useRef(null);
|
|
24
|
+
const [positionElement, setTooltipRef] = React.useState();
|
|
25
|
+
const [arrowElement, setArrowRef] = React.useState();
|
|
26
|
+
const popper = reactPopper.usePopper((_a = shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling, positionElement, {
|
|
28
27
|
placement: "top",
|
|
29
28
|
modifiers: [
|
|
30
29
|
{ name: "flip", options: { fallbackPlacements: ["bottom"] } },
|
|
@@ -34,25 +33,24 @@ function useTooltipPositioning() {
|
|
|
34
33
|
},
|
|
35
34
|
],
|
|
36
35
|
});
|
|
37
|
-
return
|
|
38
|
-
setArrowRef
|
|
39
|
-
setTooltipRef
|
|
36
|
+
return Object.assign(Object.assign({}, popper), { placement: (_b = popper.state) === null || _b === void 0 ? void 0 : _b.placement, shadowRef,
|
|
37
|
+
setArrowRef,
|
|
38
|
+
setTooltipRef });
|
|
40
39
|
}
|
|
41
40
|
|
|
42
|
-
|
|
41
|
+
const variation = {
|
|
43
42
|
startOrStop: { scale: 0.6, opacity: 0 },
|
|
44
43
|
done: { scale: 1, opacity: 1 },
|
|
45
44
|
};
|
|
46
|
-
function Tooltip(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var _c = useTooltipPositioning(), attributes = _c.attributes, placement = _c.placement, shadowRef = _c.shadowRef, popperStyles = _c.styles, setArrowRef = _c.setArrowRef, setTooltipRef = _c.setTooltipRef;
|
|
45
|
+
function Tooltip({ message, children }) {
|
|
46
|
+
const [show, setShow] = React.useState(false);
|
|
47
|
+
const { attributes, placement, shadowRef, styles: popperStyles, setArrowRef, setTooltipRef, } = useTooltipPositioning();
|
|
50
48
|
initializeListeners();
|
|
51
|
-
|
|
49
|
+
const toolTipClassNames = classnames__default["default"](styles.tooltipWrapper, placement === "bottom" && styles.below, placement === "top" && styles.above);
|
|
52
50
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
53
51
|
React__default["default"].createElement("span", { className: styles.shadowActivator, ref: shadowRef }),
|
|
54
52
|
children,
|
|
55
|
-
React__default["default"].createElement(TooltipPortal, null, show && (React__default["default"].createElement("div",
|
|
53
|
+
React__default["default"].createElement(TooltipPortal, null, show && (React__default["default"].createElement("div", Object.assign({ className: toolTipClassNames, style: popperStyles.popper, ref: setTooltipRef, role: "tooltip" }, attributes.popper),
|
|
56
54
|
React__default["default"].createElement(framerMotion.motion.div, { className: styles.tooltip, variants: variation, initial: "startOrStop", animate: "done", exit: "startOrStop", transition: {
|
|
57
55
|
type: "spring",
|
|
58
56
|
damping: 20,
|
|
@@ -61,16 +59,16 @@ function Tooltip(_a) {
|
|
|
61
59
|
React__default["default"].createElement(Text.Text, null, message),
|
|
62
60
|
React__default["default"].createElement("div", { ref: setArrowRef, style: popperStyles.arrow, className: styles.arrow })))))));
|
|
63
61
|
function initializeListeners() {
|
|
64
|
-
|
|
62
|
+
const showTooltip = () => {
|
|
65
63
|
setShow(true);
|
|
66
64
|
};
|
|
67
|
-
|
|
65
|
+
const hideTooltip = () => {
|
|
68
66
|
setShow(false);
|
|
69
67
|
};
|
|
70
|
-
|
|
68
|
+
const injectAttributes = () => {
|
|
71
69
|
var _a;
|
|
72
70
|
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
73
|
-
|
|
71
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
74
72
|
// Manually inject "aria-description" and "tabindex" to let the screen
|
|
75
73
|
// readers read the tooltip message.
|
|
76
74
|
// This is to avoid having to add those attribute as a prop on every
|
|
@@ -79,37 +77,36 @@ function Tooltip(_a) {
|
|
|
79
77
|
activator.setAttribute("tabindex", "0"); // enable focus
|
|
80
78
|
}
|
|
81
79
|
};
|
|
82
|
-
|
|
80
|
+
const addListeners = () => {
|
|
83
81
|
var _a;
|
|
84
82
|
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
85
|
-
|
|
83
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
86
84
|
activator.addEventListener("mouseenter", showTooltip);
|
|
87
85
|
activator.addEventListener("mouseleave", hideTooltip);
|
|
88
86
|
activator.addEventListener("focus", showTooltip);
|
|
89
87
|
activator.addEventListener("blur", hideTooltip);
|
|
90
88
|
}
|
|
91
89
|
};
|
|
92
|
-
|
|
90
|
+
const removeListeners = () => {
|
|
93
91
|
var _a;
|
|
94
92
|
if ((_a = shadowRef === null || shadowRef === void 0 ? void 0 : shadowRef.current) === null || _a === void 0 ? void 0 : _a.nextElementSibling) {
|
|
95
|
-
|
|
93
|
+
const activator = shadowRef.current.nextElementSibling;
|
|
96
94
|
activator.removeEventListener("mouseenter", showTooltip);
|
|
97
95
|
activator.removeEventListener("mouseleave", hideTooltip);
|
|
98
96
|
activator.removeEventListener("focus", showTooltip);
|
|
99
97
|
activator.removeEventListener("blur", hideTooltip);
|
|
100
98
|
}
|
|
101
99
|
};
|
|
102
|
-
React.useLayoutEffect(
|
|
100
|
+
React.useLayoutEffect(() => {
|
|
103
101
|
injectAttributes();
|
|
104
102
|
addListeners();
|
|
105
|
-
return
|
|
103
|
+
return () => {
|
|
106
104
|
removeListeners();
|
|
107
105
|
};
|
|
108
106
|
}, []);
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
|
-
function TooltipPortal(
|
|
112
|
-
var children = _a.children;
|
|
109
|
+
function TooltipPortal({ children }) {
|
|
113
110
|
return ReactDOM__default["default"].createPortal(children, document.body);
|
|
114
111
|
}
|
|
115
112
|
|
|
@@ -33,6 +33,6 @@ interface TypographyProps {
|
|
|
33
33
|
readonly children: ReactNode;
|
|
34
34
|
numberOfLines?: number;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
36
|
+
export type TypographyOptions = Omit<TypographyProps, "children">;
|
|
37
37
|
export declare function Typography({ id, children, element: Tag, size, align, fontWeight, textCase, textColor, emphasisType, numberOfLines, fontFamily, }: TypographyProps): JSX.Element;
|
|
38
38
|
export {};
|
package/dist/Typography/index.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var Typography = require('../Typography-
|
|
6
|
-
require('../tslib.es6-5b50eb8e.js');
|
|
5
|
+
var Typography = require('../Typography-9262511f.js');
|
|
7
6
|
require('react');
|
|
8
7
|
require('classnames');
|
|
9
8
|
require('../style-inject.es-dcee06b6.js');
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var tslib_es6 = require('./tslib.es6-5b50eb8e.js');
|
|
4
3
|
var React = require('react');
|
|
5
4
|
var classnames = require('classnames');
|
|
6
5
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
@@ -46,12 +45,11 @@ var css = ".IO8ujZ7qHogIbFAEazAGH {\n font-family: var(--typography--fontFamily
|
|
|
46
45
|
var fontFamilies = {"base":"IO8ujZ7qHogIbFAEazAGH","display":"_2VhNxoLIw82qbVgNH2yiv7"};
|
|
47
46
|
styleInject_es.styleInject(css);
|
|
48
47
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var truncateLines;
|
|
48
|
+
/* eslint-disable import/no-internal-modules */
|
|
49
|
+
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, }) {
|
|
50
|
+
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
|
51
|
+
const className = classnames__default["default"](styles.base, fontWeights[fontWeight], size && fontSizes[size], textCase && textCases[textCase], textColor && textColors[textColor], emphasisType && emphasis[emphasisType], fontFamily && fontFamilies[fontFamily], shouldTruncateText && truncate.textTruncate, Object.assign({}, (align && { [alignment[align]]: align !== `start` })));
|
|
52
|
+
let truncateLines;
|
|
55
53
|
if (shouldTruncateText) {
|
|
56
54
|
truncateLines = {
|
|
57
55
|
WebkitLineClamp: numberOfLines,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/*! *****************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
6
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
7
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
10
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
11
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
12
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
13
|
+
|
|
14
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
15
|
+
and limitations under the License.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
|
|
18
|
+
function __rest(s, e) {
|
|
19
|
+
var t = {};
|
|
20
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
+
t[p] = s[p];
|
|
22
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
24
|
+
t[p[i]] = s[p[i]];
|
|
25
|
+
return t;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
29
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
30
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
31
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
32
|
+
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
33
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.__awaiter = __awaiter;
|
|
38
|
+
exports.__rest = __rest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1-pre.4+4571dcdb",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@jobber/design": "^0.29.5",
|
|
21
21
|
"@jobber/formatters": "^0.2.2",
|
|
22
|
-
"@jobber/hooks": "^
|
|
22
|
+
"@jobber/hooks": "^2.0.0",
|
|
23
23
|
"@popperjs/core": "^2.0.6",
|
|
24
24
|
"@std-proposal/temporal": "0.0.1",
|
|
25
25
|
"@tanstack/react-table": "8.5.13",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@types/lodash": "^4.14.136",
|
|
28
28
|
"@types/react-datepicker": "^4.8.0",
|
|
29
29
|
"@types/react-router": "5.1.7",
|
|
30
|
-
"@types/react-router-dom": "5.
|
|
30
|
+
"@types/react-router-dom": "^5.3.3",
|
|
31
31
|
"@types/uuid": "^8.3.3",
|
|
32
32
|
"@use-it/event-listener": "^0.1.3",
|
|
33
33
|
"axios": "^0.21.2",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"react-hook-form": "^6.15.8",
|
|
43
43
|
"react-markdown": "^8.0.3",
|
|
44
44
|
"react-popper": "^2.2.5",
|
|
45
|
-
"react-router-dom": "
|
|
45
|
+
"react-router-dom": "^5.3.4",
|
|
46
46
|
"time-input-polyfill": "^1.0.7",
|
|
47
47
|
"ts-xor": "^1.0.8",
|
|
48
48
|
"uuid": "^8.3.2"
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
"rollup-plugin-postcss": "^2.0.3",
|
|
71
71
|
"ts-node": "^8.1.0",
|
|
72
72
|
"typed-css-modules": "^0.7.0",
|
|
73
|
-
"typescript": "^
|
|
73
|
+
"typescript": "^4.9.5",
|
|
74
74
|
"uuid": "^8.3.2"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"react": "
|
|
78
|
-
"react-dom": "
|
|
77
|
+
"react": "^18",
|
|
78
|
+
"react-dom": "^18"
|
|
79
79
|
},
|
|
80
80
|
"browserslist": [
|
|
81
81
|
"last 1 version",
|
|
82
82
|
"> 1%",
|
|
83
83
|
"IE 10"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "4571dcdba147e4546152abbbdd85f6b107b717fe"
|
|
86
86
|
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/*! *****************************************************************************
|
|
4
|
-
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
6
|
-
this file except in compliance with the License. You may obtain a copy of the
|
|
7
|
-
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
10
|
-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
11
|
-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
12
|
-
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
13
|
-
|
|
14
|
-
See the Apache Version 2.0 License for specific language governing permissions
|
|
15
|
-
and limitations under the License.
|
|
16
|
-
***************************************************************************** */
|
|
17
|
-
|
|
18
|
-
exports.__assign = function() {
|
|
19
|
-
exports.__assign = Object.assign || function __assign(t) {
|
|
20
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
21
|
-
s = arguments[i];
|
|
22
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
23
|
-
}
|
|
24
|
-
return t;
|
|
25
|
-
};
|
|
26
|
-
return exports.__assign.apply(this, arguments);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
function __rest(s, e) {
|
|
30
|
-
var t = {};
|
|
31
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
32
|
-
t[p] = s[p];
|
|
33
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
34
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
|
35
|
-
t[p[i]] = s[p[i]];
|
|
36
|
-
return t;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
40
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
-
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
|
44
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
function __generator(thisArg, body) {
|
|
49
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
50
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
51
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
52
|
-
function step(op) {
|
|
53
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
54
|
-
while (_) try {
|
|
55
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
56
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
57
|
-
switch (op[0]) {
|
|
58
|
-
case 0: case 1: t = op; break;
|
|
59
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
60
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
61
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
62
|
-
default:
|
|
63
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
64
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
65
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
66
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
67
|
-
if (t[2]) _.ops.pop();
|
|
68
|
-
_.trys.pop(); continue;
|
|
69
|
-
}
|
|
70
|
-
op = body.call(thisArg, _);
|
|
71
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
72
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function __read(o, n) {
|
|
77
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
78
|
-
if (!m) return o;
|
|
79
|
-
var i = m.call(o), r, ar = [], e;
|
|
80
|
-
try {
|
|
81
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
82
|
-
}
|
|
83
|
-
catch (error) { e = { error: error }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
87
|
-
}
|
|
88
|
-
finally { if (e) throw e.error; }
|
|
89
|
-
}
|
|
90
|
-
return ar;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function __spread() {
|
|
94
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
95
|
-
ar = ar.concat(__read(arguments[i]));
|
|
96
|
-
return ar;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
exports.__awaiter = __awaiter;
|
|
100
|
-
exports.__generator = __generator;
|
|
101
|
-
exports.__read = __read;
|
|
102
|
-
exports.__rest = __rest;
|
|
103
|
-
exports.__spread = __spread;
|