@prom-ui/core 1.19.0 → 2.0.0-alpha.0
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/Avatar/cjs/index.development.js +40 -59
- package/Avatar/cjs/index.development.v2.js +40 -59
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -1
- package/Avatar/package.json +1 -1
- package/Backdrop/cjs/index.development.js +62 -77
- package/Backdrop/cjs/index.development.v2.js +62 -77
- package/Backdrop/cjs/index.production.js +1 -1
- package/Backdrop/cjs/index.production.v2.js +1 -1
- package/Backdrop/package.json +1 -1
- package/Badge/cjs/index.development.js +39 -57
- package/Badge/cjs/index.development.v2.js +39 -57
- package/Badge/cjs/index.production.js +1 -1
- package/Badge/cjs/index.production.v2.js +1 -1
- package/Badge/index.d.ts +5 -5
- package/Badge/package.json +1 -1
- package/Body/package.json +1 -1
- package/BodyContext/cjs/index.development.js +0 -21
- package/BodyContext/cjs/index.development.v2.js +0 -21
- package/BodyContext/cjs/index.production.js +1 -1
- package/BodyContext/cjs/index.production.v2.js +1 -1
- package/BodyContext/index.d.ts +0 -7
- package/BodyContext/package.json +1 -1
- package/BodyProvider/cjs/index.development.js +3 -6
- package/BodyProvider/cjs/index.development.v2.js +3 -6
- package/BodyProvider/cjs/index.production.js +1 -1
- package/BodyProvider/cjs/index.production.v2.js +1 -1
- package/BodyProvider/index.d.ts +0 -3
- package/BodyProvider/package.json +1 -1
- package/BodyScrollLock/cjs/index.development.js +1 -0
- package/BodyScrollLock/cjs/index.development.v2.js +1 -0
- package/BodyScrollLock/package.json +1 -1
- package/Box/cjs/index.development.js +1 -1
- package/Box/cjs/index.development.v2.js +1 -1
- package/Box/cjs/index.production.js +1 -1
- package/Box/cjs/index.production.v2.js +1 -1
- package/Box/cjs/style.development.css +1 -1
- package/Box/cjs/style.development.v2.css +1 -1
- package/Box/cjs/style.production.css +1 -1
- package/Box/cjs/style.production.v2.css +1 -1
- package/Box/index.d.ts +2 -2
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +23 -34
- package/Button/cjs/index.development.v2.js +23 -34
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -1
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +100 -122
- package/ButtonPageUp/cjs/index.development.v2.js +100 -122
- package/ButtonPageUp/cjs/index.production.js +1 -1
- package/ButtonPageUp/cjs/index.production.v2.js +1 -1
- package/ButtonPageUp/index.d.ts +1 -1
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/cjs/index.development.js +43 -59
- package/Checkbox/cjs/index.development.v2.js +43 -59
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -1
- package/Checkbox/package.json +1 -1
- package/ContextMenu/cjs/index.development.js +72 -86
- package/ContextMenu/cjs/index.development.v2.js +72 -86
- package/ContextMenu/cjs/index.production.js +1 -1
- package/ContextMenu/cjs/index.production.v2.js +1 -1
- package/ContextMenu/package.json +1 -1
- package/ErrorCatch/cjs/index.development.js +115 -160
- package/ErrorCatch/cjs/index.development.v2.js +115 -160
- package/ErrorCatch/cjs/index.production.js +1 -1
- package/ErrorCatch/cjs/index.production.v2.js +1 -1
- package/ErrorCatch/package.json +1 -1
- package/ErrorCatch/utils.d.ts +0 -2
- package/ErrorCatch/withErrorCatch.d.ts +1 -1
- package/Flex/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Icon/package.json +1 -1
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +24 -34
- package/ImageEmoji/cjs/index.development.v2.js +24 -34
- package/ImageEmoji/cjs/index.production.js +1 -1
- package/ImageEmoji/cjs/index.production.v2.js +1 -1
- package/ImageEmoji/package.json +1 -1
- package/Input/package.json +1 -1
- package/InputField/cjs/index.development.js +71 -101
- package/InputField/cjs/index.development.v2.js +71 -101
- package/InputField/cjs/index.production.js +1 -1
- package/InputField/cjs/index.production.v2.js +1 -1
- package/InputField/package.json +1 -1
- package/InputField/utils.d.ts +0 -1
- package/KeyPress/package.json +1 -1
- package/Label/cjs/index.development.js +2 -0
- package/Label/cjs/index.development.v2.js +2 -0
- package/Label/package.json +1 -1
- package/Line/package.json +1 -1
- package/Link/package.json +1 -1
- package/List/package.json +1 -1
- package/Media/cjs/index.development.js +37 -38
- package/Media/cjs/index.development.v2.js +37 -38
- package/Media/cjs/index.production.js +1 -1
- package/Media/cjs/index.production.v2.js +1 -1
- package/Media/index.d.ts +1 -1
- package/Media/package.json +1 -1
- package/Modal/cjs/index.development.js +64 -82
- package/Modal/cjs/index.development.v2.js +64 -82
- package/Modal/cjs/index.production.js +1 -1
- package/Modal/cjs/index.production.v2.js +1 -1
- package/Modal/package.json +1 -1
- package/OutsideClick/cjs/index.development.js +62 -75
- package/OutsideClick/cjs/index.development.v2.js +62 -75
- package/OutsideClick/cjs/index.production.js +1 -1
- package/OutsideClick/cjs/index.production.v2.js +1 -1
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +94 -110
- package/Overlay/cjs/index.development.v2.js +94 -110
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -1
- package/Overlay/components/OverlayErrCatch.d.ts +1 -1
- package/Overlay/components/SwipeClose.d.ts +3 -3
- package/Overlay/index.d.ts +1 -1
- package/Overlay/package.json +1 -1
- package/PhotoGallery/cjs/index.development.js +82 -76
- package/PhotoGallery/cjs/index.development.v2.js +82 -76
- package/PhotoGallery/cjs/index.production.js +1 -1
- package/PhotoGallery/cjs/index.production.v2.js +1 -1
- package/PhotoGallery/cjs/style.development.css +1 -1
- package/PhotoGallery/cjs/style.development.v2.css +1 -1
- package/PhotoGallery/cjs/style.production.css +1 -1
- package/PhotoGallery/cjs/style.production.v2.css +1 -1
- package/PhotoGallery/index.d.ts +1 -1
- package/PhotoGallery/package.json +1 -1
- package/PhotoGallery/utils.d.ts +1 -1
- package/Picture/package.json +1 -1
- package/Portal/index.d.ts +1 -1
- package/Portal/package.json +1 -1
- package/Progress/cjs/index.development.js +58 -76
- package/Progress/cjs/index.development.v2.js +58 -76
- package/Progress/cjs/index.production.js +1 -1
- package/Progress/cjs/index.production.v2.js +1 -1
- package/Progress/package.json +1 -1
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +23 -36
- package/Rating/cjs/index.development.v2.js +23 -36
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -1
- package/Rating/package.json +1 -1
- package/RatingSelect/cjs/index.development.js +74 -89
- package/RatingSelect/cjs/index.development.v2.js +74 -89
- package/RatingSelect/cjs/index.production.js +1 -1
- package/RatingSelect/cjs/index.production.v2.js +1 -1
- package/RatingSelect/package.json +1 -1
- package/Scroll/package.json +1 -1
- package/ScrollControls/ScrollControlsButton.d.ts +1 -1
- package/ScrollControls/cjs/index.development.js +86 -108
- package/ScrollControls/cjs/index.development.v2.js +86 -108
- package/ScrollControls/cjs/index.production.js +1 -1
- package/ScrollControls/cjs/index.production.v2.js +1 -1
- package/ScrollControls/index.d.ts +1 -1
- package/ScrollControls/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +112 -133
- package/SimpleSlider/cjs/index.development.v2.js +112 -133
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -1
- package/SimpleSlider/index.d.ts +0 -1
- package/SimpleSlider/package.json +1 -2
- package/SimpleSlider/utils.d.ts +1 -1
- package/Skeleton/cjs/index.development.js +58 -76
- package/Skeleton/cjs/index.development.v2.js +58 -76
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/index.d.ts +6 -6
- package/Skeleton/package.json +1 -1
- package/SnackBar/cjs/index.development.js +62 -77
- package/SnackBar/cjs/index.development.v2.js +62 -77
- package/SnackBar/cjs/index.production.js +1 -1
- package/SnackBar/cjs/index.production.v2.js +1 -1
- package/SnackBar/index.d.ts +8 -8
- package/SnackBar/package.json +1 -1
- package/SnackBarManager/cjs/index.development.js +81 -93
- package/SnackBarManager/cjs/index.development.v2.js +81 -93
- package/SnackBarManager/cjs/index.production.js +1 -1
- package/SnackBarManager/cjs/index.production.v2.js +1 -1
- package/SnackBarManager/package.json +1 -1
- package/Spinner/cjs/index.development.js +22 -34
- package/Spinner/cjs/index.development.v2.js +22 -34
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/index.d.ts +3 -3
- package/Spinner/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +22 -34
- package/TextEmoji/cjs/index.development.v2.js +22 -34
- package/TextEmoji/cjs/index.production.js +1 -1
- package/TextEmoji/cjs/index.production.v2.js +1 -1
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +12 -12
- package/Tooltip/cjs/index.development.v2.js +12 -12
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -1
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +42 -57
- package/Tumbler/cjs/index.development.v2.js +42 -57
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -1
- package/Tumbler/package.json +1 -1
- package/Viewport/cjs/index.development.js +22 -34
- package/Viewport/cjs/index.development.v2.js +22 -34
- package/Viewport/cjs/index.production.js +1 -1
- package/Viewport/cjs/index.production.v2.js +1 -1
- package/Viewport/package.json +1 -1
- package/base/types.d.ts +1 -1
- package/package.json +6 -15
- package/useBodyTTag/package.json +1 -1
- package/useBrowserLayoutEffect/package.json +1 -1
- package/useDebounce/cjs/index.development.js +37 -39
- package/useDebounce/cjs/index.development.v2.js +37 -39
- package/useDebounce/cjs/index.production.js +1 -1
- package/useDebounce/cjs/index.production.v2.js +1 -1
- package/useDebounce/index.d.ts +1 -1
- package/useDebounce/package.json +1 -1
- package/useForwardRef/index.d.ts +1 -1
- package/useForwardRef/package.json +1 -1
- package/useInView/cjs/index.development.js +0 -1
- package/useInView/cjs/index.development.v2.js +0 -1
- package/useInView/cjs/index.production.js +1 -1
- package/useInView/cjs/index.production.v2.js +1 -1
- package/useInView/index.d.ts +0 -1
- package/useInView/package.json +1 -2
- package/useIsMounted/package.json +1 -1
- package/useKeyPress/cjs/index.development.js +47 -40
- package/useKeyPress/cjs/index.development.v2.js +47 -40
- package/useKeyPress/cjs/index.production.js +1 -1
- package/useKeyPress/cjs/index.production.v2.js +1 -1
- package/useKeyPress/package.json +1 -1
- package/useMedia/package.json +1 -1
- package/useOutsideClick/package.json +1 -1
- package/usePortal/cjs/index.development.js +1 -1
- package/usePortal/cjs/index.development.v2.js +1 -1
- package/usePortal/cjs/index.production.js +1 -1
- package/usePortal/cjs/index.production.v2.js +1 -1
- package/usePortal/package.json +1 -1
- package/useScrollPosition/package.json +1 -1
- package/useSnackBar/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +0 -73
- package/SafeQuery/cjs/index.development.v2.js +0 -73
- package/SafeQuery/cjs/index.production.js +0 -1
- package/SafeQuery/cjs/index.production.v2.js +0 -1
- package/SafeQuery/index.d.ts +0 -10
- package/SafeQuery/index.js +0 -7
- package/SafeQuery/index.v2.js +0 -7
- package/SafeQuery/package.json +0 -9
- package/useId/cjs/index.development.js +0 -43
- package/useId/cjs/index.development.v2.js +0 -43
- package/useId/cjs/index.production.js +0 -1
- package/useId/cjs/index.production.v2.js +0 -1
- package/useId/index.d.ts +0 -4
- package/useId/index.js +0 -7
- package/useId/index.v2.js +0 -7
- package/useId/package.json +0 -9
|
@@ -31,81 +31,62 @@ function _interopNamespaceCompat(e) {
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
32
32
|
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
33
33
|
|
|
34
|
-
function _defineProperty(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
writable: true
|
|
42
|
-
});
|
|
43
|
-
} else {
|
|
44
|
-
obj[key] = value;
|
|
45
|
-
}
|
|
46
|
-
return obj;
|
|
34
|
+
function _defineProperty(e, r, t) {
|
|
35
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
|
+
value: t,
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0
|
|
40
|
+
}) : e[r] = t, e;
|
|
47
41
|
}
|
|
48
42
|
function _extends() {
|
|
49
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
50
|
-
for (var
|
|
51
|
-
var
|
|
52
|
-
for (var
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54
|
-
target[key] = source[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
43
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
44
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
45
|
+
var t = arguments[e];
|
|
46
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
57
47
|
}
|
|
58
|
-
return
|
|
59
|
-
};
|
|
60
|
-
return _extends.apply(this, arguments);
|
|
48
|
+
return n;
|
|
49
|
+
}, _extends.apply(null, arguments);
|
|
61
50
|
}
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
target[key] = source[key];
|
|
51
|
+
function _objectWithoutProperties(e, t) {
|
|
52
|
+
if (null == e) return {};
|
|
53
|
+
var o,
|
|
54
|
+
r,
|
|
55
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
56
|
+
if (Object.getOwnPropertySymbols) {
|
|
57
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
58
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
71
59
|
}
|
|
72
|
-
return
|
|
60
|
+
return i;
|
|
73
61
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
81
|
-
key = sourceSymbolKeys[i];
|
|
82
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
83
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
84
|
-
target[key] = source[key];
|
|
85
|
-
}
|
|
62
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
63
|
+
if (null == r) return {};
|
|
64
|
+
var t = {};
|
|
65
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
66
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
67
|
+
t[n] = r[n];
|
|
86
68
|
}
|
|
87
|
-
return
|
|
69
|
+
return t;
|
|
88
70
|
}
|
|
89
|
-
function _toPrimitive(
|
|
90
|
-
if (
|
|
91
|
-
var
|
|
92
|
-
if (
|
|
93
|
-
var
|
|
94
|
-
if (
|
|
71
|
+
function _toPrimitive(t, r) {
|
|
72
|
+
if ("object" != typeof t || !t) return t;
|
|
73
|
+
var e = t[Symbol.toPrimitive];
|
|
74
|
+
if (void 0 !== e) {
|
|
75
|
+
var i = e.call(t, r || "default");
|
|
76
|
+
if ("object" != typeof i) return i;
|
|
95
77
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
96
78
|
}
|
|
97
|
-
return (
|
|
79
|
+
return ("string" === r ? String : Number)(t);
|
|
98
80
|
}
|
|
99
|
-
function _toPropertyKey(
|
|
100
|
-
var
|
|
101
|
-
return
|
|
81
|
+
function _toPropertyKey(t) {
|
|
82
|
+
var i = _toPrimitive(t, "string");
|
|
83
|
+
return "symbol" == typeof i ? i : i + "";
|
|
102
84
|
}
|
|
103
85
|
|
|
104
86
|
var css = {"root":"Checkbox__root___JbPkR","view":"Checkbox__view___Smb1v","input":"Checkbox__input___-KDH8","inputIndeterminate":"Checkbox__inputIndeterminate___S5zL6","inputLoading":"Checkbox__inputLoading___3-2zC","spinner":"Checkbox__spinner___K7NKz","spinnerEnterActive":"Checkbox__spinnerEnterActive___ASYih","spinnerEnterDone":"Checkbox__spinnerEnterDone___vsNQ-","spinnerExitActive":"Checkbox__spinnerExitActive___X-b7M","spinnerExitDone":"Checkbox__spinnerExitDone___MP3D6"};
|
|
105
87
|
|
|
106
88
|
var _excluded = ["className", "type", "loading", "indeterminate"];
|
|
107
89
|
var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
108
|
-
var _classNames;
|
|
109
90
|
var className = _ref.className,
|
|
110
91
|
_ref$type = _ref.type,
|
|
111
92
|
type = _ref$type === void 0 ? 'checkbox' : _ref$type,
|
|
@@ -115,16 +96,18 @@ var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
|
115
96
|
indeterminate = _ref$indeterminate === void 0 ? false : _ref$indeterminate,
|
|
116
97
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
117
98
|
var inputRef = useForwardRef.useForwardRef(ref, null);
|
|
99
|
+
var spinnerRef = React__namespace.useRef(null);
|
|
118
100
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
119
101
|
className: classNames__default.default(css.root, className)
|
|
120
102
|
}, /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
121
|
-
className: classNames__default.default(css.input, (
|
|
103
|
+
className: classNames__default.default(css.input, _defineProperty(_defineProperty({}, css.inputLoading, loading), css.inputIndeterminate, indeterminate)),
|
|
122
104
|
ref: inputRef,
|
|
123
105
|
disabled: loading,
|
|
124
106
|
type: type
|
|
125
107
|
}, props)), /*#__PURE__*/React__namespace.createElement("div", {
|
|
126
108
|
className: css.view
|
|
127
109
|
}, /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.CSSTransition, {
|
|
110
|
+
nodeRef: spinnerRef,
|
|
128
111
|
"in": loading,
|
|
129
112
|
timeout: 100,
|
|
130
113
|
classNames: {
|
|
@@ -135,6 +118,7 @@ var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
|
135
118
|
},
|
|
136
119
|
unmountOnExit: true
|
|
137
120
|
}, /*#__PURE__*/React__namespace.createElement(Spinner.Spinner, {
|
|
121
|
+
ref: spinnerRef,
|
|
138
122
|
className: css.spinner,
|
|
139
123
|
width: "100%",
|
|
140
124
|
height: "100%"
|
|
@@ -31,81 +31,62 @@ function _interopNamespaceCompat(e) {
|
|
|
31
31
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
32
32
|
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
33
33
|
|
|
34
|
-
function _defineProperty(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
writable: true
|
|
42
|
-
});
|
|
43
|
-
} else {
|
|
44
|
-
obj[key] = value;
|
|
45
|
-
}
|
|
46
|
-
return obj;
|
|
34
|
+
function _defineProperty(e, r, t) {
|
|
35
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
36
|
+
value: t,
|
|
37
|
+
enumerable: !0,
|
|
38
|
+
configurable: !0,
|
|
39
|
+
writable: !0
|
|
40
|
+
}) : e[r] = t, e;
|
|
47
41
|
}
|
|
48
42
|
function _extends() {
|
|
49
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
50
|
-
for (var
|
|
51
|
-
var
|
|
52
|
-
for (var
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
54
|
-
target[key] = source[key];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
43
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
44
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
45
|
+
var t = arguments[e];
|
|
46
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
57
47
|
}
|
|
58
|
-
return
|
|
59
|
-
};
|
|
60
|
-
return _extends.apply(this, arguments);
|
|
48
|
+
return n;
|
|
49
|
+
}, _extends.apply(null, arguments);
|
|
61
50
|
}
|
|
62
|
-
function
|
|
63
|
-
if (
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
target[key] = source[key];
|
|
51
|
+
function _objectWithoutProperties(e, t) {
|
|
52
|
+
if (null == e) return {};
|
|
53
|
+
var o,
|
|
54
|
+
r,
|
|
55
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
56
|
+
if (Object.getOwnPropertySymbols) {
|
|
57
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
58
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
71
59
|
}
|
|
72
|
-
return
|
|
60
|
+
return i;
|
|
73
61
|
}
|
|
74
|
-
function
|
|
75
|
-
if (
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
81
|
-
key = sourceSymbolKeys[i];
|
|
82
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
83
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
84
|
-
target[key] = source[key];
|
|
85
|
-
}
|
|
62
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
63
|
+
if (null == r) return {};
|
|
64
|
+
var t = {};
|
|
65
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
66
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
67
|
+
t[n] = r[n];
|
|
86
68
|
}
|
|
87
|
-
return
|
|
69
|
+
return t;
|
|
88
70
|
}
|
|
89
|
-
function _toPrimitive(
|
|
90
|
-
if (
|
|
91
|
-
var
|
|
92
|
-
if (
|
|
93
|
-
var
|
|
94
|
-
if (
|
|
71
|
+
function _toPrimitive(t, r) {
|
|
72
|
+
if ("object" != typeof t || !t) return t;
|
|
73
|
+
var e = t[Symbol.toPrimitive];
|
|
74
|
+
if (void 0 !== e) {
|
|
75
|
+
var i = e.call(t, r || "default");
|
|
76
|
+
if ("object" != typeof i) return i;
|
|
95
77
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
96
78
|
}
|
|
97
|
-
return (
|
|
79
|
+
return ("string" === r ? String : Number)(t);
|
|
98
80
|
}
|
|
99
|
-
function _toPropertyKey(
|
|
100
|
-
var
|
|
101
|
-
return
|
|
81
|
+
function _toPropertyKey(t) {
|
|
82
|
+
var i = _toPrimitive(t, "string");
|
|
83
|
+
return "symbol" == typeof i ? i : i + "";
|
|
102
84
|
}
|
|
103
85
|
|
|
104
86
|
var css = {"root":"Checkbox__root___10rVJ","view":"Checkbox__view___28qka","input":"Checkbox__input___qmAq9","inputIndeterminate":"Checkbox__inputIndeterminate___Ivv1c","inputLoading":"Checkbox__inputLoading___R-ARx","spinner":"Checkbox__spinner___8SelS","spinnerEnterActive":"Checkbox__spinnerEnterActive___KxSc9","spinnerEnterDone":"Checkbox__spinnerEnterDone___MNkDZ","spinnerExitActive":"Checkbox__spinnerExitActive___yE5Eg","spinnerExitDone":"Checkbox__spinnerExitDone___1qltp"};
|
|
105
87
|
|
|
106
88
|
var _excluded = ["className", "type", "loading", "indeterminate"];
|
|
107
89
|
var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
108
|
-
var _classNames;
|
|
109
90
|
var className = _ref.className,
|
|
110
91
|
_ref$type = _ref.type,
|
|
111
92
|
type = _ref$type === void 0 ? 'checkbox' : _ref$type,
|
|
@@ -115,16 +96,18 @@ var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
|
115
96
|
indeterminate = _ref$indeterminate === void 0 ? false : _ref$indeterminate,
|
|
116
97
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
117
98
|
var inputRef = useForwardRef.useForwardRef(ref, null);
|
|
99
|
+
var spinnerRef = React__namespace.useRef(null);
|
|
118
100
|
return /*#__PURE__*/React__namespace.createElement("div", {
|
|
119
101
|
className: classNames__default.default(css.root, className)
|
|
120
102
|
}, /*#__PURE__*/React__namespace.createElement("input", _extends({
|
|
121
|
-
className: classNames__default.default(css.input, (
|
|
103
|
+
className: classNames__default.default(css.input, _defineProperty(_defineProperty({}, css.inputLoading, loading), css.inputIndeterminate, indeterminate)),
|
|
122
104
|
ref: inputRef,
|
|
123
105
|
disabled: loading,
|
|
124
106
|
type: type
|
|
125
107
|
}, props)), /*#__PURE__*/React__namespace.createElement("div", {
|
|
126
108
|
className: css.view
|
|
127
109
|
}, /*#__PURE__*/React__namespace.createElement(reactTransitionGroup.CSSTransition, {
|
|
110
|
+
nodeRef: spinnerRef,
|
|
128
111
|
"in": loading,
|
|
129
112
|
timeout: 100,
|
|
130
113
|
classNames: {
|
|
@@ -135,6 +118,7 @@ var Checkbox = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
|
135
118
|
},
|
|
136
119
|
unmountOnExit: true
|
|
137
120
|
}, /*#__PURE__*/React__namespace.createElement(Spinner.Spinner, {
|
|
121
|
+
ref: spinnerRef,
|
|
138
122
|
className: css.spinner,
|
|
139
123
|
width: "100%",
|
|
140
124
|
height: "100%"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-transition-group"),t=require("clsx"),n=require("@prom-ui/core/Spinner"),i=require("@prom-ui/core/useForwardRef");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-transition-group"),t=require("clsx"),n=require("@prom-ui/core/Spinner"),i=require("@prom-ui/core/useForwardRef");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var u=o(e),c=a(t);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f.apply(null,arguments)}var s="JbPkR",d="Smb1v",b="-KDH8",p="S5zL6",m="_3-2zC",v="K7NKz",y="ASYih",O="vsNQ-",g="X-b7M",j="MP3D6",h=["className","type","loading","indeterminate"],w=u.forwardRef((function(e,t){var a=e.className,o=e.type,w=void 0===o?"checkbox":o,P=e.loading,x=void 0!==P&&P,N=e.indeterminate,S=void 0!==N&&N,E=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,h),q=i.useForwardRef(t,null),R=u.useRef(null);return u.createElement("div",{className:c.default(s,a)},u.createElement("input",f({className:c.default(b,l(l({},m,x),p,S)),ref:q,disabled:x,type:w},E)),u.createElement("div",{className:d},u.createElement(r.CSSTransition,{nodeRef:R,in:x,timeout:100,classNames:{enterActive:y,enterDone:O,exitActive:g,exitDone:j},unmountOnExit:!0},u.createElement(n.Spinner,{ref:R,className:v,width:"100%",height:"100%"}))))}));w.displayName="Checkbox",exports.Checkbox=w,require("./style.production.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-transition-group"),t=require("clsx"),n=require("@prom-ui/core/Spinner"),i=require("@prom-ui/core/useForwardRef");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("react-transition-group"),t=require("clsx"),n=require("@prom-ui/core/Spinner"),i=require("@prom-ui/core/useForwardRef");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var u=o(e),c=a(t);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},f.apply(null,arguments)}var s="_10rVJ",d="_28qka",p="qmAq9",v="Ivv1c",m="R-ARx",b="_8SelS",y="KxSc9",O="MNkDZ",g="yE5Eg",j="_1qltp",x=["className","type","loading","indeterminate"],h=u.forwardRef((function(e,t){var a=e.className,o=e.type,h=void 0===o?"checkbox":o,w=e.loading,E=void 0!==w&&w,S=e.indeterminate,q=void 0!==S&&S,N=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,x),P=i.useForwardRef(t,null),R=u.useRef(null);return u.createElement("div",{className:c.default(s,a)},u.createElement("input",f({className:c.default(p,l(l({},m,E),v,q)),ref:P,disabled:E,type:h},N)),u.createElement("div",{className:d},u.createElement(r.CSSTransition,{nodeRef:R,in:E,timeout:100,classNames:{enterActive:y,enterDone:O,exitActive:g,exitDone:j},unmountOnExit:!0},u.createElement(n.Spinner,{ref:R,className:b,width:"100%",height:"100%"}))))}));h.displayName="Checkbox",exports.Checkbox=h,require("./style.production.v2.css");
|
package/Checkbox/package.json
CHANGED
|
@@ -33,109 +33,95 @@ function _interopNamespaceCompat(e) {
|
|
|
33
33
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
34
34
|
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
35
35
|
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
function _arrayLikeToArray(r, a) {
|
|
37
|
+
(null == a || a > r.length) && (a = r.length);
|
|
38
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
39
|
+
return n;
|
|
40
|
+
}
|
|
41
|
+
function _arrayWithHoles(r) {
|
|
42
|
+
if (Array.isArray(r)) return r;
|
|
43
|
+
}
|
|
44
|
+
function _defineProperty(e, r, t) {
|
|
45
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
46
|
+
value: t,
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0,
|
|
49
|
+
writable: !0
|
|
50
|
+
}) : e[r] = t, e;
|
|
51
|
+
}
|
|
52
|
+
function _iterableToArrayLimit(r, l) {
|
|
53
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
54
|
+
if (null != t) {
|
|
55
|
+
var e,
|
|
56
|
+
n,
|
|
57
|
+
i,
|
|
58
|
+
u,
|
|
59
|
+
a = [],
|
|
60
|
+
f = !0,
|
|
61
|
+
o = !1;
|
|
46
62
|
try {
|
|
47
|
-
if (
|
|
48
|
-
if (Object(
|
|
49
|
-
|
|
50
|
-
} else for (; !(
|
|
51
|
-
} catch (
|
|
52
|
-
|
|
63
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
64
|
+
if (Object(t) !== t) return;
|
|
65
|
+
f = !1;
|
|
66
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
67
|
+
} catch (r) {
|
|
68
|
+
o = !0, n = r;
|
|
53
69
|
} finally {
|
|
54
70
|
try {
|
|
55
|
-
if (!
|
|
71
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
56
72
|
} finally {
|
|
57
|
-
if (
|
|
73
|
+
if (o) throw n;
|
|
58
74
|
}
|
|
59
75
|
}
|
|
60
|
-
return
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function _defineProperty(obj, key, value) {
|
|
64
|
-
key = _toPropertyKey(key);
|
|
65
|
-
if (key in obj) {
|
|
66
|
-
Object.defineProperty(obj, key, {
|
|
67
|
-
value: value,
|
|
68
|
-
enumerable: true,
|
|
69
|
-
configurable: true,
|
|
70
|
-
writable: true
|
|
71
|
-
});
|
|
72
|
-
} else {
|
|
73
|
-
obj[key] = value;
|
|
76
|
+
return a;
|
|
74
77
|
}
|
|
75
|
-
return obj;
|
|
76
78
|
}
|
|
77
|
-
function
|
|
78
|
-
|
|
79
|
-
var target = {};
|
|
80
|
-
var sourceKeys = Object.keys(source);
|
|
81
|
-
var key, i;
|
|
82
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
83
|
-
key = sourceKeys[i];
|
|
84
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
85
|
-
target[key] = source[key];
|
|
86
|
-
}
|
|
87
|
-
return target;
|
|
79
|
+
function _nonIterableRest() {
|
|
80
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
88
81
|
}
|
|
89
|
-
function _objectWithoutProperties(
|
|
90
|
-
if (
|
|
91
|
-
var
|
|
92
|
-
|
|
82
|
+
function _objectWithoutProperties(e, t) {
|
|
83
|
+
if (null == e) return {};
|
|
84
|
+
var o,
|
|
85
|
+
r,
|
|
86
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
93
87
|
if (Object.getOwnPropertySymbols) {
|
|
94
|
-
var
|
|
95
|
-
for (
|
|
96
|
-
key = sourceSymbolKeys[i];
|
|
97
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
98
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
99
|
-
target[key] = source[key];
|
|
100
|
-
}
|
|
88
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
89
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
101
90
|
}
|
|
102
|
-
return
|
|
103
|
-
}
|
|
104
|
-
function _slicedToArray(arr, i) {
|
|
105
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
106
|
-
}
|
|
107
|
-
function _arrayWithHoles(arr) {
|
|
108
|
-
if (Array.isArray(arr)) return arr;
|
|
91
|
+
return i;
|
|
109
92
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
112
|
-
|
|
113
|
-
var n
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
93
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
94
|
+
if (null == r) return {};
|
|
95
|
+
var t = {};
|
|
96
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
97
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
98
|
+
t[n] = r[n];
|
|
99
|
+
}
|
|
100
|
+
return t;
|
|
117
101
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
121
|
-
return arr2;
|
|
102
|
+
function _slicedToArray(r, e) {
|
|
103
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
122
104
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (prim !== undefined) {
|
|
130
|
-
var res = prim.call(input, hint || "default");
|
|
131
|
-
if (typeof res !== "object") return res;
|
|
105
|
+
function _toPrimitive(t, r) {
|
|
106
|
+
if ("object" != typeof t || !t) return t;
|
|
107
|
+
var e = t[Symbol.toPrimitive];
|
|
108
|
+
if (void 0 !== e) {
|
|
109
|
+
var i = e.call(t, r || "default");
|
|
110
|
+
if ("object" != typeof i) return i;
|
|
132
111
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
133
112
|
}
|
|
134
|
-
return (
|
|
113
|
+
return ("string" === r ? String : Number)(t);
|
|
135
114
|
}
|
|
136
|
-
function _toPropertyKey(
|
|
137
|
-
var
|
|
138
|
-
return
|
|
115
|
+
function _toPropertyKey(t) {
|
|
116
|
+
var i = _toPrimitive(t, "string");
|
|
117
|
+
return "symbol" == typeof i ? i : i + "";
|
|
118
|
+
}
|
|
119
|
+
function _unsupportedIterableToArray(r, a) {
|
|
120
|
+
if (r) {
|
|
121
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
122
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
123
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
124
|
+
}
|
|
139
125
|
}
|
|
140
126
|
|
|
141
127
|
var css = {"buttonContent":"ContextMenu__buttonContent___k6I7C","buttonIcon":"ContextMenu__buttonIcon___AMl7D","buttonText":"ContextMenu__buttonText___1HzQ4","list":"ContextMenu__list___O4D4q","listItem":"ContextMenu__listItem___LNQ-G","buttonContentColor_red-900":"ContextMenu__buttonContentColor_red-900___A2TgC"};
|