@prom-ui/core 1.3.1 → 1.4.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 +99 -67
- package/Avatar/cjs/index.development.v2.js +99 -67
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -1
- package/Avatar/index.d.ts +14 -14
- package/Avatar/package.json +1 -1
- package/Avatar/utils.d.ts +2 -2
- package/Backdrop/cjs/index.development.js +131 -77
- package/Backdrop/cjs/index.development.v2.js +131 -77
- package/Backdrop/cjs/index.production.js +1 -1
- package/Backdrop/cjs/index.production.v2.js +1 -1
- package/Backdrop/index.d.ts +25 -25
- package/Backdrop/package.json +1 -1
- package/Body/cjs/index.development.js +2 -0
- package/Body/cjs/index.development.v2.js +2 -0
- package/Body/index.d.ts +36 -36
- package/Body/package.json +1 -1
- package/BodyContext/cjs/index.development.js +6 -7
- package/BodyContext/cjs/index.development.v2.js +6 -7
- package/BodyContext/cjs/index.production.js +1 -1
- package/BodyContext/cjs/index.production.v2.js +1 -1
- package/BodyContext/index.d.ts +12 -12
- package/BodyContext/package.json +1 -1
- package/BodyProvider/cjs/index.development.js +7 -6
- package/BodyProvider/cjs/index.development.v2.js +7 -6
- package/BodyProvider/index.d.ts +10 -10
- package/BodyProvider/package.json +1 -1
- package/Box/cjs/index.development.js +4 -4
- package/Box/cjs/index.development.v2.js +4 -4
- package/Box/index.d.ts +106 -106
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +67 -62
- package/Button/cjs/index.development.v2.js +67 -62
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -1
- package/Button/index.d.ts +45 -45
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +195 -85
- package/ButtonPageUp/cjs/index.development.v2.js +195 -85
- package/ButtonPageUp/cjs/index.production.js +1 -1
- package/ButtonPageUp/cjs/index.production.v2.js +1 -1
- package/ButtonPageUp/index.d.ts +18 -18
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/cjs/index.development.js +99 -67
- package/Checkbox/cjs/index.development.v2.js +99 -67
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -1
- package/Checkbox/index.d.ts +8 -8
- package/Checkbox/package.json +1 -1
- package/Flex/index.d.ts +34 -34
- package/Flex/package.json +1 -1
- package/Grid/index.d.ts +46 -46
- package/Grid/package.json +1 -1
- package/Icon/index.d.ts +9 -9
- package/Icon/package.json +1 -1
- package/Image/index.d.ts +42 -42
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +70 -63
- package/ImageEmoji/cjs/index.development.v2.js +70 -63
- package/ImageEmoji/cjs/index.production.js +1 -1
- package/ImageEmoji/cjs/index.production.v2.js +1 -1
- package/ImageEmoji/index.d.ts +9 -9
- package/ImageEmoji/package.json +1 -1
- package/Input/index.d.ts +18 -18
- package/Input/package.json +1 -1
- package/InputField/addons/AfterClearValue.d.ts +3 -3
- package/InputField/addons/AfterCorrectValue.d.ts +2 -2
- package/InputField/addons/AfterLoading.d.ts +2 -2
- package/InputField/addons/AfterTogglePassword.d.ts +6 -6
- package/InputField/addons/ErrorText.d.ts +6 -6
- package/InputField/cjs/index.development.js +237 -173
- package/InputField/cjs/index.development.v2.js +237 -173
- package/InputField/cjs/index.production.js +1 -1
- package/InputField/cjs/index.production.v2.js +1 -1
- package/InputField/index.d.ts +18 -18
- package/InputField/package.json +1 -1
- package/InputField/utils.d.ts +10 -10
- package/KeyPress/cjs/index.development.js +13 -13
- package/KeyPress/cjs/index.development.v2.js +13 -13
- package/KeyPress/index.d.ts +14 -14
- package/KeyPress/package.json +1 -1
- package/Line/index.d.ts +13 -13
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +5 -5
- package/Link/cjs/index.development.v2.js +5 -5
- package/Link/index.d.ts +28 -28
- package/Link/package.json +1 -1
- package/List/index.d.ts +23 -23
- package/List/package.json +1 -1
- package/Media/MediaProvider.d.ts +8 -8
- package/Media/cjs/index.development.js +70 -19
- package/Media/cjs/index.development.v2.js +70 -19
- package/Media/cjs/index.production.js +1 -1
- package/Media/cjs/index.production.v2.js +1 -1
- package/Media/index.d.ts +20 -20
- package/Media/package.json +1 -1
- package/OutsideClick/cjs/index.development.js +117 -61
- package/OutsideClick/cjs/index.development.v2.js +117 -61
- package/OutsideClick/cjs/index.production.js +1 -1
- package/OutsideClick/cjs/index.production.v2.js +1 -1
- package/OutsideClick/index.d.ts +12 -12
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +197 -183
- package/Overlay/cjs/index.development.v2.js +197 -183
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -1
- package/Overlay/components/OverlayHeader.d.ts +11 -11
- package/Overlay/components/SwipeClose.d.ts +11 -11
- package/Overlay/components/TouchScrollable.d.ts +8 -8
- package/Overlay/index.d.ts +76 -76
- package/Overlay/package.json +1 -1
- package/Overlay/utils.d.ts +10 -10
- package/Picture/index.d.ts +70 -70
- package/Picture/package.json +1 -1
- package/Portal/cjs/index.development.js +11 -11
- package/Portal/cjs/index.development.v2.js +11 -11
- package/Portal/index.d.ts +10 -10
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +11 -11
- package/QRCode/cjs/index.development.v2.js +11 -11
- package/QRCode/index.d.ts +17 -17
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +75 -69
- package/Rating/cjs/index.development.v2.js +75 -69
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -1
- package/Rating/index.d.ts +17 -17
- package/Rating/package.json +1 -1
- package/RatingSelect/cjs/index.development.js +148 -68
- package/RatingSelect/cjs/index.development.v2.js +148 -68
- package/RatingSelect/cjs/index.production.js +1 -1
- package/RatingSelect/cjs/index.production.v2.js +1 -1
- package/RatingSelect/index.d.ts +22 -18
- package/RatingSelect/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +158 -110
- package/SafeQuery/cjs/index.development.v2.js +158 -110
- package/SafeQuery/cjs/index.production.js +1 -1
- package/SafeQuery/cjs/index.production.v2.js +1 -1
- package/SafeQuery/components/Error.d.ts +7 -7
- package/SafeQuery/index.d.ts +10 -10
- package/SafeQuery/package.json +1 -1
- package/Scroll/index.d.ts +25 -25
- package/Scroll/package.json +1 -1
- package/ScrollControls/ScrollControlsButton.d.ts +11 -11
- package/ScrollControls/cjs/index.development.js +201 -113
- package/ScrollControls/cjs/index.development.v2.js +201 -113
- package/ScrollControls/cjs/index.production.js +1 -1
- package/ScrollControls/cjs/index.production.v2.js +1 -1
- package/ScrollControls/index.d.ts +16 -16
- package/ScrollControls/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +270 -158
- package/SimpleSlider/cjs/index.development.v2.js +270 -158
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -1
- package/SimpleSlider/index.d.ts +41 -41
- package/SimpleSlider/package.json +1 -1
- package/SimpleSlider/useAutoPlay.d.ts +3 -3
- package/SimpleSlider/utils.d.ts +19 -19
- package/Skeleton/cjs/index.development.js +118 -64
- package/Skeleton/cjs/index.development.v2.js +118 -64
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/index.d.ts +37 -37
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +66 -61
- package/Spinner/cjs/index.development.v2.js +66 -61
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/index.d.ts +29 -29
- package/Spinner/package.json +1 -1
- package/Text/index.d.ts +25 -25
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +65 -60
- package/TextEmoji/cjs/index.development.v2.js +65 -60
- package/TextEmoji/cjs/index.production.js +1 -1
- package/TextEmoji/cjs/index.production.v2.js +1 -1
- package/TextEmoji/index.d.ts +9 -9
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +80 -91
- package/Tooltip/cjs/index.development.v2.js +80 -91
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -1
- package/Tooltip/index.d.ts +87 -87
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +98 -66
- package/Tumbler/cjs/index.development.v2.js +98 -66
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -1
- package/Tumbler/index.d.ts +8 -8
- package/Tumbler/package.json +1 -1
- package/package.json +7 -5
- package/useBodyTTag/cjs/index.development.js +1 -1
- package/useBodyTTag/cjs/index.development.v2.js +1 -1
- package/useBodyTTag/index.d.ts +2 -2
- package/useBodyTTag/package.json +1 -1
- package/useDebounce/cjs/index.development.js +58 -6
- package/useDebounce/cjs/index.development.v2.js +58 -6
- package/useDebounce/cjs/index.production.js +1 -1
- package/useDebounce/cjs/index.production.v2.js +1 -1
- package/useDebounce/index.d.ts +4 -4
- package/useDebounce/package.json +1 -1
- package/useId/cjs/index.development.js +6 -7
- package/useId/cjs/index.development.v2.js +6 -7
- package/useId/cjs/index.production.js +1 -1
- package/useId/cjs/index.production.v2.js +1 -1
- package/useId/index.d.ts +4 -4
- package/useId/package.json +1 -1
- package/useIsMounted/cjs/index.development.js +3 -3
- package/useIsMounted/cjs/index.development.v2.js +3 -3
- package/useIsMounted/index.d.ts +4 -4
- package/useIsMounted/package.json +1 -1
- package/useKeyPress/cjs/index.development.js +76 -22
- package/useKeyPress/cjs/index.development.v2.js +76 -22
- package/useKeyPress/cjs/index.production.js +1 -1
- package/useKeyPress/cjs/index.production.v2.js +1 -1
- package/useKeyPress/index.d.ts +6 -6
- package/useKeyPress/package.json +1 -1
- package/useMedia/cjs/index.development.js +5 -5
- package/useMedia/cjs/index.development.v2.js +5 -5
- package/useMedia/index.d.ts +21 -21
- package/useMedia/package.json +1 -1
- package/useOutsideClick/cjs/index.development.js +2 -2
- package/useOutsideClick/cjs/index.development.v2.js +2 -2
- package/useOutsideClick/index.d.ts +5 -5
- package/useOutsideClick/package.json +1 -1
- package/usePortal/cjs/index.development.js +32 -27
- package/usePortal/cjs/index.development.v2.js +32 -27
- package/usePortal/index.d.ts +12 -12
- package/usePortal/package.json +1 -1
- package/useScrollPosition/cjs/index.development.js +2 -2
- package/useScrollPosition/cjs/index.development.v2.js +2 -2
- package/useScrollPosition/index.d.ts +5 -5
- package/useScrollPosition/package.json +1 -1
|
@@ -6,86 +6,91 @@ var React = require('react');
|
|
|
6
6
|
var evokit = require('evokit');
|
|
7
7
|
|
|
8
8
|
function _interopNamespaceCompat(e) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
}
|
|
9
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
20
18
|
});
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
28
|
+
function _extends() {
|
|
29
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31
|
+
var source = arguments[i];
|
|
32
|
+
for (var key in source) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
34
|
+
target[key] = source[key];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return target;
|
|
39
|
+
};
|
|
40
|
+
return _extends.apply(this, arguments);
|
|
41
|
+
}
|
|
42
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
43
|
+
if (source == null) return {};
|
|
44
|
+
var target = {};
|
|
45
|
+
var sourceKeys = Object.keys(source);
|
|
46
|
+
var key, i;
|
|
47
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
48
|
+
key = sourceKeys[i];
|
|
49
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
50
|
+
target[key] = source[key];
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function _objectWithoutProperties(source, excluded) {
|
|
55
|
+
if (source == null) return {};
|
|
56
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
57
|
+
var key, i;
|
|
58
|
+
if (Object.getOwnPropertySymbols) {
|
|
59
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
60
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
61
|
+
key = sourceSymbolKeys[i];
|
|
62
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
63
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
64
|
+
target[key] = source[key];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return target;
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
var css = {"ek-spinner":"Spinner__ek-spinner___rQ9Id","rotate":"Spinner__rotate___3-ehr","ek-spinner__circle":"Spinner__ek-spinner__circle___WUAuk","dash":"Spinner__dash___7Gan0","ek-spinner_color_violet-500":"Spinner__ek-spinner_color_violet-500___2-Ca6","ek-spinner_color_white":"Spinner__ek-spinner_color_white___8PnDF","ek-spinner_color_yellow-500":"Spinner__ek-spinner_color_yellow-500___qa3Oc"};
|
|
67
71
|
|
|
72
|
+
var _excluded = ["width", "height"];
|
|
68
73
|
var SpinnerBlock = evokit.createBlock('svg', 'spinner', ['color'], {
|
|
69
74
|
css: css
|
|
70
75
|
});
|
|
71
76
|
var SpinnerCircleBlock = evokit.createBlock('circle', 'spinner__circle', [], {
|
|
72
77
|
css: css
|
|
73
78
|
});
|
|
74
|
-
var Spinner = React__namespace.forwardRef(function (
|
|
75
|
-
var
|
|
76
|
-
width =
|
|
77
|
-
|
|
78
|
-
height =
|
|
79
|
-
props =
|
|
80
|
-
return React__namespace.createElement(SpinnerBlock,
|
|
79
|
+
var Spinner = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
80
|
+
var _ref$width = _ref.width,
|
|
81
|
+
width = _ref$width === void 0 ? '1em' : _ref$width,
|
|
82
|
+
_ref$height = _ref.height,
|
|
83
|
+
height = _ref$height === void 0 ? '1em' : _ref$height,
|
|
84
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
85
|
+
return /*#__PURE__*/React__namespace.createElement(SpinnerBlock, _extends({
|
|
81
86
|
ref: ref,
|
|
82
|
-
role:
|
|
87
|
+
role: "progressbar",
|
|
83
88
|
width: width,
|
|
84
89
|
height: height
|
|
85
90
|
}, props, {
|
|
86
|
-
viewBox:
|
|
87
|
-
}), React__namespace.createElement(SpinnerCircleBlock, {
|
|
88
|
-
fill:
|
|
91
|
+
viewBox: "22 22 44 44"
|
|
92
|
+
}), /*#__PURE__*/React__namespace.createElement(SpinnerCircleBlock, {
|
|
93
|
+
fill: "none",
|
|
89
94
|
cx: 44,
|
|
90
95
|
cy: 44,
|
|
91
96
|
r: 20.2,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("evokit");function t(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 n=t(e)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("evokit");function t(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 n=t(e);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}function i(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var c={"ek-spinner":"K7r-c",rotate:"aKoVD","ek-spinner__circle":"a5Jex",dash:"bKr0a","ek-spinner_color_violet-500":"_9sMtP","ek-spinner_color_white":"Vd4Z7","ek-spinner_color_yellow-500":"Wp548"},l=["width","height"],a=r.createBlock("svg","spinner",["color"],{css:c}),s=r.createBlock("circle","spinner__circle",[],{css:c}),u=n.forwardRef((function(e,r){var t=e.width,c=void 0===t?"1em":t,u=e.height,f=void 0===u?"1em":u,p=i(e,l);return n.createElement(a,o({ref:r,role:"progressbar",width:c,height:f},p,{viewBox:"22 22 44 44"}),n.createElement(s,{fill:"none",cx:44,cy:44,r:20.2,strokeWidth:3.6}))}));u.displayName="Spinner",exports.Spinner=u,require("./style.production.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("evokit");function t(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 n=t(e)
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("evokit");function t(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 n=t(e);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},i.apply(this,arguments)}function o(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c={"ek-spinner":"rQ9Id",rotate:"_3-ehr","ek-spinner__circle":"WUAuk",dash:"_7Gan0","ek-spinner_color_violet-500":"_2-Ca6","ek-spinner_color_white":"_8PnDF","ek-spinner_color_yellow-500":"qa3Oc"},l=["width","height"],a=r.createBlock("svg","spinner",["color"],{css:c}),s=r.createBlock("circle","spinner__circle",[],{css:c}),u=n.forwardRef((function(e,r){var t=e.width,c=void 0===t?"1em":t,u=e.height,f=void 0===u?"1em":u,p=o(e,l);return n.createElement(a,i({ref:r,role:"progressbar",width:c,height:f},p,{viewBox:"22 22 44 44"}),n.createElement(s,{fill:"none",cx:44,cy:44,r:20.2,strokeWidth:3.6}))}));u.displayName="Spinner",exports.Spinner=u,require("./style.production.v2.css");
|
package/Spinner/index.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { EvokitProp } from '@prom-ui/core/base/types';
|
|
3
|
-
type SpinnerBlockProps = {
|
|
4
|
-
/** Цвет */
|
|
5
|
-
'spinner-color'?: EvokitProp<'white' | 'violet-500' | 'yellow-500'>;
|
|
6
|
-
};
|
|
7
|
-
export type SpinnerProps = React.ComponentPropsWithoutRef<'svg'> & SpinnerBlockProps & {
|
|
8
|
-
/** Ширина */
|
|
9
|
-
width?: React.ComponentPropsWithRef<'svg'>['width'];
|
|
10
|
-
/** Высота */
|
|
11
|
-
height?: React.ComponentPropsWithRef<'svg'>['height'];
|
|
12
|
-
/**
|
|
13
|
-
* @ignore
|
|
14
|
-
* HIT FIX property 'fr' is missing in type '{}' but required in type
|
|
15
|
-
* */
|
|
16
|
-
fr?: React.ComponentPropsWithRef<'svg'>['fr'];
|
|
17
|
-
};
|
|
18
|
-
export declare const Spinner: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & SpinnerBlockProps & {
|
|
19
|
-
/** Ширина */
|
|
20
|
-
width?: React.ComponentPropsWithRef<'svg'>['width'];
|
|
21
|
-
/** Высота */
|
|
22
|
-
height?: React.ComponentPropsWithRef<'svg'>['height'];
|
|
23
|
-
/**
|
|
24
|
-
* @ignore
|
|
25
|
-
* HIT FIX property 'fr' is missing in type '{}' but required in type
|
|
26
|
-
* */
|
|
27
|
-
fr?: React.ComponentPropsWithRef<'svg'>['fr'];
|
|
28
|
-
} & React.RefAttributes<SVGSVGElement>>;
|
|
29
|
-
export {};
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { EvokitProp } from '@prom-ui/core/base/types';
|
|
3
|
+
type SpinnerBlockProps = {
|
|
4
|
+
/** Цвет */
|
|
5
|
+
'spinner-color'?: EvokitProp<'white' | 'violet-500' | 'yellow-500'>;
|
|
6
|
+
};
|
|
7
|
+
export type SpinnerProps = React.ComponentPropsWithoutRef<'svg'> & SpinnerBlockProps & {
|
|
8
|
+
/** Ширина */
|
|
9
|
+
width?: React.ComponentPropsWithRef<'svg'>['width'];
|
|
10
|
+
/** Высота */
|
|
11
|
+
height?: React.ComponentPropsWithRef<'svg'>['height'];
|
|
12
|
+
/**
|
|
13
|
+
* @ignore
|
|
14
|
+
* HIT FIX property 'fr' is missing in type '{}' but required in type
|
|
15
|
+
* */
|
|
16
|
+
fr?: React.ComponentPropsWithRef<'svg'>['fr'];
|
|
17
|
+
};
|
|
18
|
+
export declare const Spinner: React.ForwardRefExoticComponent<Omit<React.SVGProps<SVGSVGElement>, "ref"> & SpinnerBlockProps & {
|
|
19
|
+
/** Ширина */
|
|
20
|
+
width?: React.ComponentPropsWithRef<'svg'>['width'];
|
|
21
|
+
/** Высота */
|
|
22
|
+
height?: React.ComponentPropsWithRef<'svg'>['height'];
|
|
23
|
+
/**
|
|
24
|
+
* @ignore
|
|
25
|
+
* HIT FIX property 'fr' is missing in type '{}' but required in type
|
|
26
|
+
* */
|
|
27
|
+
fr?: React.ComponentPropsWithRef<'svg'>['fr'];
|
|
28
|
+
} & React.RefAttributes<SVGSVGElement>>;
|
|
29
|
+
export {};
|
package/Spinner/package.json
CHANGED
package/Text/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
|
|
2
|
-
type TextAlign = EvokitMediaSufix<'left' | 'center' | 'right' | 'justify'>;
|
|
3
|
-
type TextThemes = EvokitMediaSufix<'black-300' | 'black-400' | 'black-600' | 'black-700' | 'black-800' | 'black-900' | 'blue-500' | 'green-500' | 'green-700' | 'green-800' | 'yellow-500' | 'orange-500' | 'orange-900' | 'red-500' | 'red-900' | 'violet-500' | 'white'>;
|
|
4
|
-
type TextDisplay = EvokitMediaSufix<'inline' | 'none'>;
|
|
5
|
-
type TextLheight = EvokitMediaSufix<'default' | 'medium' | 'large'>;
|
|
6
|
-
type TextSize = EvokitMediaSufix<'none' | 'inherit' | 'default' | 'small' | 'big' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
7
|
-
type TextStyle = EvokitMediaSufix<'italic' | 'strike' | 'underline' | 'overline'>;
|
|
8
|
-
type TextTransform = EvokitMediaSufix<'none' | 'capitalize' | 'lowercase' | 'uppercase'>;
|
|
9
|
-
type TextValign = EvokitMediaSufix<'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top'>;
|
|
10
|
-
type TextWeight = EvokitMediaSufix<'default' | 'thin' | 'light' | 'medium' | 'bold' | 'black'>;
|
|
11
|
-
type TextWrap = EvokitMediaSufix<'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break' | 'ellipsis' | 'three-line' | 'two-line'>;
|
|
12
|
-
export type TextProps = {
|
|
13
|
-
'text-align'?: EvokitProp<TextAlign>;
|
|
14
|
-
'text-color'?: EvokitProp<TextThemes>;
|
|
15
|
-
'text-display'?: EvokitProp<TextDisplay>;
|
|
16
|
-
'text-lheight'?: EvokitProp<TextLheight>;
|
|
17
|
-
'text-size'?: EvokitProp<TextSize>;
|
|
18
|
-
'text-style'?: EvokitProp<TextStyle>;
|
|
19
|
-
'text-transform'?: EvokitProp<TextTransform>;
|
|
20
|
-
'text-valign'?: EvokitProp<TextValign>;
|
|
21
|
-
'text-weight'?: EvokitProp<TextWeight>;
|
|
22
|
-
'text-wrap'?: EvokitProp<TextWrap>;
|
|
23
|
-
};
|
|
24
|
-
export declare const Text: CreateBlock<'span', 'text', TextProps>;
|
|
25
|
-
export {};
|
|
1
|
+
import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
|
|
2
|
+
type TextAlign = EvokitMediaSufix<'left' | 'center' | 'right' | 'justify'>;
|
|
3
|
+
type TextThemes = EvokitMediaSufix<'black-300' | 'black-400' | 'black-600' | 'black-700' | 'black-800' | 'black-900' | 'blue-500' | 'green-500' | 'green-700' | 'green-800' | 'yellow-500' | 'orange-500' | 'orange-900' | 'red-500' | 'red-900' | 'violet-500' | 'white'>;
|
|
4
|
+
type TextDisplay = EvokitMediaSufix<'inline' | 'none'>;
|
|
5
|
+
type TextLheight = EvokitMediaSufix<'default' | 'medium' | 'large'>;
|
|
6
|
+
type TextSize = EvokitMediaSufix<'none' | 'inherit' | 'default' | 'small' | 'big' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
|
|
7
|
+
type TextStyle = EvokitMediaSufix<'italic' | 'strike' | 'underline' | 'overline'>;
|
|
8
|
+
type TextTransform = EvokitMediaSufix<'none' | 'capitalize' | 'lowercase' | 'uppercase'>;
|
|
9
|
+
type TextValign = EvokitMediaSufix<'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top'>;
|
|
10
|
+
type TextWeight = EvokitMediaSufix<'default' | 'thin' | 'light' | 'medium' | 'bold' | 'black'>;
|
|
11
|
+
type TextWrap = EvokitMediaSufix<'normal' | 'nowrap' | 'pre' | 'pre-wrap' | 'pre-line' | 'break' | 'ellipsis' | 'three-line' | 'two-line'>;
|
|
12
|
+
export type TextProps = {
|
|
13
|
+
'text-align'?: EvokitProp<TextAlign>;
|
|
14
|
+
'text-color'?: EvokitProp<TextThemes>;
|
|
15
|
+
'text-display'?: EvokitProp<TextDisplay>;
|
|
16
|
+
'text-lheight'?: EvokitProp<TextLheight>;
|
|
17
|
+
'text-size'?: EvokitProp<TextSize>;
|
|
18
|
+
'text-style'?: EvokitProp<TextStyle>;
|
|
19
|
+
'text-transform'?: EvokitProp<TextTransform>;
|
|
20
|
+
'text-valign'?: EvokitProp<TextValign>;
|
|
21
|
+
'text-weight'?: EvokitProp<TextWeight>;
|
|
22
|
+
'text-wrap'?: EvokitProp<TextWrap>;
|
|
23
|
+
};
|
|
24
|
+
export declare const Text: CreateBlock<'span', 'text', TextProps>;
|
|
25
|
+
export {};
|
package/Text/package.json
CHANGED
|
@@ -7,66 +7,71 @@ var emojiText = require('@evo/emoji-text');
|
|
|
7
7
|
var Text = require('@prom-ui/core/Text');
|
|
8
8
|
|
|
9
9
|
function _interopNamespaceCompat(e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
}
|
|
10
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
21
19
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
29
|
+
function _extends() {
|
|
30
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i];
|
|
33
|
+
for (var key in source) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
+
target[key] = source[key];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
41
|
+
return _extends.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
44
|
+
if (source == null) return {};
|
|
45
|
+
var target = {};
|
|
46
|
+
var sourceKeys = Object.keys(source);
|
|
47
|
+
var key, i;
|
|
48
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
49
|
+
key = sourceKeys[i];
|
|
50
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
51
|
+
target[key] = source[key];
|
|
52
|
+
}
|
|
53
|
+
return target;
|
|
54
|
+
}
|
|
55
|
+
function _objectWithoutProperties(source, excluded) {
|
|
56
|
+
if (source == null) return {};
|
|
57
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
58
|
+
var key, i;
|
|
59
|
+
if (Object.getOwnPropertySymbols) {
|
|
60
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
61
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
62
|
+
key = sourceSymbolKeys[i];
|
|
63
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
64
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
65
|
+
target[key] = source[key];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return target;
|
|
65
69
|
}
|
|
66
70
|
|
|
71
|
+
var _excluded = ["children", "size", "type"];
|
|
67
72
|
var TEXT_SIZES_LIST = {
|
|
68
73
|
small: 11,
|
|
69
|
-
default: 13,
|
|
74
|
+
"default": 13,
|
|
70
75
|
big: 15,
|
|
71
76
|
h1: 24,
|
|
72
77
|
h2: 22,
|
|
@@ -75,16 +80,16 @@ var TEXT_SIZES_LIST = {
|
|
|
75
80
|
h5: 16,
|
|
76
81
|
h6: 14
|
|
77
82
|
};
|
|
78
|
-
var TextEmoji = React__namespace.forwardRef(function (
|
|
79
|
-
var children =
|
|
80
|
-
|
|
81
|
-
size =
|
|
82
|
-
|
|
83
|
-
type =
|
|
84
|
-
props =
|
|
85
|
-
return React__namespace.createElement(Text.Text,
|
|
83
|
+
var TextEmoji = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
84
|
+
var children = _ref.children,
|
|
85
|
+
_ref$size = _ref.size,
|
|
86
|
+
size = _ref$size === void 0 ? TEXT_SIZES_LIST["default"] : _ref$size,
|
|
87
|
+
_ref$type = _ref.type,
|
|
88
|
+
type = _ref$type === void 0 ? 'apple' : _ref$type,
|
|
89
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
90
|
+
return /*#__PURE__*/React__namespace.createElement(Text.Text, _extends({
|
|
86
91
|
ref: ref
|
|
87
|
-
}, props), React__namespace.createElement(emojiText.EmojiText, {
|
|
92
|
+
}, props), /*#__PURE__*/React__namespace.createElement(emojiText.EmojiText, {
|
|
88
93
|
size: TEXT_SIZES_LIST[props['text-size']] || size,
|
|
89
94
|
type: type
|
|
90
95
|
}, children));
|
|
@@ -7,66 +7,71 @@ var emojiText = require('@evo/emoji-text');
|
|
|
7
7
|
var Text = require('@prom-ui/core/Text');
|
|
8
8
|
|
|
9
9
|
function _interopNamespaceCompat(e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
20
|
-
}
|
|
10
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
21
19
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
29
|
+
function _extends() {
|
|
30
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = arguments[i];
|
|
33
|
+
for (var key in source) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
|
+
target[key] = source[key];
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return target;
|
|
40
|
+
};
|
|
41
|
+
return _extends.apply(this, arguments);
|
|
42
|
+
}
|
|
43
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
44
|
+
if (source == null) return {};
|
|
45
|
+
var target = {};
|
|
46
|
+
var sourceKeys = Object.keys(source);
|
|
47
|
+
var key, i;
|
|
48
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
49
|
+
key = sourceKeys[i];
|
|
50
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
51
|
+
target[key] = source[key];
|
|
52
|
+
}
|
|
53
|
+
return target;
|
|
54
|
+
}
|
|
55
|
+
function _objectWithoutProperties(source, excluded) {
|
|
56
|
+
if (source == null) return {};
|
|
57
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
58
|
+
var key, i;
|
|
59
|
+
if (Object.getOwnPropertySymbols) {
|
|
60
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
61
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
62
|
+
key = sourceSymbolKeys[i];
|
|
63
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
64
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
65
|
+
target[key] = source[key];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return target;
|
|
65
69
|
}
|
|
66
70
|
|
|
71
|
+
var _excluded = ["children", "size", "type"];
|
|
67
72
|
var TEXT_SIZES_LIST = {
|
|
68
73
|
small: 11,
|
|
69
|
-
default: 13,
|
|
74
|
+
"default": 13,
|
|
70
75
|
big: 15,
|
|
71
76
|
h1: 24,
|
|
72
77
|
h2: 22,
|
|
@@ -75,16 +80,16 @@ var TEXT_SIZES_LIST = {
|
|
|
75
80
|
h5: 16,
|
|
76
81
|
h6: 14
|
|
77
82
|
};
|
|
78
|
-
var TextEmoji = React__namespace.forwardRef(function (
|
|
79
|
-
var children =
|
|
80
|
-
|
|
81
|
-
size =
|
|
82
|
-
|
|
83
|
-
type =
|
|
84
|
-
props =
|
|
85
|
-
return React__namespace.createElement(Text.Text,
|
|
83
|
+
var TextEmoji = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
84
|
+
var children = _ref.children,
|
|
85
|
+
_ref$size = _ref.size,
|
|
86
|
+
size = _ref$size === void 0 ? TEXT_SIZES_LIST["default"] : _ref$size,
|
|
87
|
+
_ref$type = _ref.type,
|
|
88
|
+
type = _ref$type === void 0 ? 'apple' : _ref$type,
|
|
89
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
90
|
+
return /*#__PURE__*/React__namespace.createElement(Text.Text, _extends({
|
|
86
91
|
ref: ref
|
|
87
|
-
}, props), React__namespace.createElement(emojiText.EmojiText, {
|
|
92
|
+
}, props), /*#__PURE__*/React__namespace.createElement(emojiText.EmojiText, {
|
|
88
93
|
size: TEXT_SIZES_LIST[props['text-size']] || size,
|
|
89
94
|
type: type
|
|
90
95
|
}, children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@evo/emoji-text"),r=require("@prom-ui/core/Text");function n(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@evo/emoji-text"),r=require("@prom-ui/core/Text");function n(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=n(e);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var a=["children","size","type"],c={small:11,default:13,big:15,h1:24,h2:22,h3:20,h4:18,h5:16,h6:14},f=i.forwardRef((function(e,n){var f=e.children,l=e.size,p=void 0===l?c.default:l,s=e.type,b=void 0===s?"apple":s,O=u(e,a);return i.createElement(r.Text,o({ref:n},O),i.createElement(t.EmojiText,{size:c[O["text-size"]]||p,type:b},f))}));exports.TextEmoji=f;
|