@prom-ui/core 0.0.150 → 0.1.1-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 +7 -7
- package/Avatar/cjs/index.development.v2.js +7 -7
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -1
- package/Avatar/index.d.ts +1 -1
- package/Avatar/package.json +1 -1
- package/Backdrop/cjs/index.development.js +7 -7
- package/Backdrop/cjs/index.development.v2.js +7 -7
- package/Backdrop/cjs/index.production.js +1 -1
- package/Backdrop/cjs/index.production.v2.js +1 -1
- package/Backdrop/index.d.ts +1 -1
- package/Backdrop/package.json +1 -1
- package/Body/package.json +1 -1
- package/BodyProvider/cjs/index.development.js +4 -4
- package/BodyProvider/cjs/index.development.v2.js +4 -4
- package/BodyProvider/cjs/index.production.js +1 -1
- package/BodyProvider/cjs/index.production.v2.js +1 -1
- package/BodyProvider/index.d.ts +1 -1
- package/BodyProvider/package.json +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/package.json +1 -1
- package/Button/cjs/index.development.js +5 -5
- package/Button/cjs/index.development.v2.js +5 -5
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -1
- package/Button/cjs/style.development.css +1 -1
- package/Button/cjs/style.development.v2.css +1 -1
- package/Button/cjs/style.production.css +1 -1
- package/Button/cjs/style.production.v2.css +1 -1
- package/Button/index.d.ts +1 -1
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +4 -4
- package/ButtonPageUp/cjs/index.development.v2.js +4 -4
- 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 +8 -8
- package/Checkbox/cjs/index.development.v2.js +8 -8
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -1
- package/Checkbox/index.d.ts +1 -1
- package/Checkbox/package.json +1 -1
- package/Flex/package.json +1 -1
- package/Grid/package.json +1 -1
- package/Icon/cjs/index.development.js +4 -4
- package/Icon/cjs/index.development.v2.js +4 -4
- package/Icon/cjs/index.production.js +1 -1
- package/Icon/cjs/index.production.v2.js +1 -1
- package/Icon/index.d.ts +1 -1
- package/Icon/package.json +1 -1
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +4 -4
- package/ImageEmoji/cjs/index.development.v2.js +4 -4
- package/ImageEmoji/cjs/index.production.js +1 -1
- package/ImageEmoji/cjs/index.production.v2.js +1 -1
- package/ImageEmoji/index.d.ts +1 -1
- package/ImageEmoji/package.json +1 -1
- package/Input/cjs/index.development.js +4 -4
- package/Input/cjs/index.development.v2.js +4 -4
- package/Input/cjs/index.production.js +1 -1
- package/Input/cjs/index.production.v2.js +1 -1
- package/Input/index.d.ts +1 -1
- package/Input/package.json +1 -1
- package/InputField/addons/AfterClearValue.d.ts +1 -1
- package/InputField/addons/AfterTogglePassword.d.ts +1 -1
- package/InputField/addons/ErrorText.d.ts +1 -1
- package/InputField/cjs/index.development.js +4 -4
- package/InputField/cjs/index.development.v2.js +4 -4
- package/InputField/cjs/index.production.js +1 -1
- package/InputField/cjs/index.production.v2.js +1 -1
- package/InputField/index.d.ts +1 -1
- package/InputField/package.json +1 -1
- package/KeyPress/cjs/index.development.js +4 -4
- package/KeyPress/cjs/index.development.v2.js +4 -4
- package/KeyPress/cjs/index.production.js +1 -1
- package/KeyPress/cjs/index.production.v2.js +1 -1
- package/KeyPress/index.d.ts +1 -1
- package/KeyPress/package.json +1 -1
- package/Line/package.json +1 -1
- package/Link/cjs/style.development.css +1 -1
- package/Link/cjs/style.development.v2.css +1 -1
- package/Link/cjs/style.production.css +1 -1
- package/Link/cjs/style.production.v2.css +1 -1
- package/Link/package.json +1 -1
- package/List/package.json +1 -1
- package/Media/breakpoints.d.ts +1 -1
- package/Media/cjs/index.development.js +6 -6
- package/Media/cjs/index.development.v2.js +6 -6
- package/Media/context.d.ts +1 -1
- package/Media/index.d.ts +1 -1
- package/Media/package.json +1 -1
- package/Media/useMedia.d.ts +1 -1
- package/OutsideClick/cjs/index.development.js +4 -4
- package/OutsideClick/cjs/index.development.v2.js +4 -4
- package/OutsideClick/cjs/index.production.js +1 -1
- package/OutsideClick/cjs/index.production.v2.js +1 -1
- package/OutsideClick/index.d.ts +1 -1
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +23 -24
- package/Overlay/cjs/index.development.v2.js +23 -24
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -1
- package/Overlay/components/OverlayHeader.d.ts +1 -1
- package/Overlay/components/SwipeClose.d.ts +1 -1
- package/Overlay/components/TouchScrollable.d.ts +1 -1
- package/Overlay/index.d.ts +1 -1
- package/Overlay/package.json +1 -1
- package/Overlay/utils.d.ts +3 -3
- package/Picture/package.json +1 -1
- package/PortableOverlay/cjs/index.development.js +8 -8
- package/PortableOverlay/cjs/index.development.v2.js +8 -8
- package/PortableOverlay/cjs/index.production.js +1 -1
- package/PortableOverlay/cjs/index.production.v2.js +1 -1
- package/PortableOverlay/cjs/style.development.css +1 -1
- package/PortableOverlay/cjs/style.development.v2.css +1 -1
- package/PortableOverlay/cjs/style.production.css +1 -1
- package/PortableOverlay/cjs/style.production.v2.css +1 -1
- package/PortableOverlay/index.d.ts +1 -1
- package/PortableOverlay/package.json +1 -1
- package/Portal/cjs/index.development.js +4 -4
- package/Portal/cjs/index.development.v2.js +4 -4
- package/Portal/cjs/index.production.js +1 -1
- package/Portal/cjs/index.production.v2.js +1 -1
- package/Portal/index.d.ts +1 -1
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +4 -4
- package/QRCode/cjs/index.development.v2.js +4 -4
- package/QRCode/cjs/index.production.js +1 -1
- package/QRCode/cjs/index.production.v2.js +1 -1
- package/QRCode/index.d.ts +1 -1
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +4 -4
- package/Rating/cjs/index.development.v2.js +4 -4
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -1
- package/Rating/index.d.ts +1 -1
- package/Rating/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +15 -18
- package/SafeQuery/cjs/index.development.v2.js +15 -18
- package/SafeQuery/cjs/index.production.js +1 -1
- package/SafeQuery/cjs/index.production.v2.js +1 -1
- package/SafeQuery/components/Error.d.ts +1 -1
- package/SafeQuery/index.d.ts +1 -1
- package/SafeQuery/package.json +1 -1
- package/Scroll/cjs/index.development.js +4 -4
- package/Scroll/cjs/index.development.v2.js +4 -4
- package/Scroll/cjs/index.production.js +1 -1
- package/Scroll/cjs/index.production.v2.js +1 -1
- package/Scroll/cjs/style.development.css +1 -1
- package/Scroll/cjs/style.development.v2.css +1 -1
- package/Scroll/cjs/style.production.css +1 -1
- package/Scroll/cjs/style.production.v2.css +1 -1
- package/Scroll/index.d.ts +2 -2
- package/Scroll/package.json +1 -1
- package/ScrollControls/ScrollControlsButton.d.ts +1 -1
- package/ScrollControls/cjs/index.development.js +14 -15
- package/ScrollControls/cjs/index.development.v2.js +14 -15
- 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/SideOverlay/blocks.d.ts +1 -1
- package/SideOverlay/cjs/index.development.js +8 -9
- package/SideOverlay/cjs/index.development.v2.js +8 -9
- package/SideOverlay/cjs/index.production.js +1 -1
- package/SideOverlay/cjs/index.production.v2.js +1 -1
- package/SideOverlay/index.d.ts +1 -1
- package/SideOverlay/package.json +1 -1
- package/SideOverlay/utils.d.ts +3 -3
- package/SimpleSlider/cjs/index.development.js +10 -10
- package/SimpleSlider/cjs/index.development.v2.js +10 -10
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -1
- package/SimpleSlider/index.d.ts +1 -1
- package/SimpleSlider/package.json +1 -1
- package/SimpleSlider/useAutoPlay.d.ts +1 -1
- package/SimpleSlider/utils.d.ts +2 -2
- package/Skeleton/cjs/index.development.js +4 -4
- package/Skeleton/cjs/index.development.v2.js +4 -4
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/cjs/style.development.css +1 -1
- package/Skeleton/cjs/style.development.v2.css +1 -1
- package/Skeleton/cjs/style.production.css +1 -1
- package/Skeleton/cjs/style.production.v2.css +1 -1
- package/Skeleton/index.d.ts +1 -1
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +4 -4
- package/Spinner/cjs/index.development.v2.js +4 -4
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/cjs/style.development.css +1 -1
- package/Spinner/cjs/style.development.v2.css +1 -1
- package/Spinner/cjs/style.production.css +1 -1
- package/Spinner/cjs/style.production.v2.css +1 -1
- package/Spinner/index.d.ts +1 -1
- package/Spinner/package.json +1 -1
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +4 -4
- package/TextEmoji/cjs/index.development.v2.js +4 -4
- package/TextEmoji/cjs/index.production.js +1 -1
- package/TextEmoji/cjs/index.production.v2.js +1 -1
- package/TextEmoji/index.d.ts +1 -1
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +8 -8
- package/Tooltip/cjs/index.development.v2.js +8 -8
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -1
- package/Tooltip/index.d.ts +4 -4
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +8 -8
- package/Tumbler/cjs/index.development.v2.js +8 -8
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -1
- package/Tumbler/index.d.ts +1 -1
- package/Tumbler/package.json +1 -1
- package/base/colors-dark.css +11 -11
- package/base/colors.css +57 -57
- package/base/reset.css +1 -1
- package/base/typography.css +8 -8
- package/package.json +71 -68
|
@@ -7,10 +7,10 @@ var classNames = require('classnames');
|
|
|
7
7
|
var Icon = require('@prom-ui/core/Icon');
|
|
8
8
|
var User = require('@prom-ui/icons/User');
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
if (e && e
|
|
12
|
+
function _interopNamespaceCompat(e) {
|
|
13
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
14
14
|
var n = Object.create(null);
|
|
15
15
|
if (e) {
|
|
16
16
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,12 +23,12 @@ function _interopNamespace(e) {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
n
|
|
26
|
+
n.default = e;
|
|
27
27
|
return Object.freeze(n);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var React__namespace = /*#__PURE__*/
|
|
31
|
-
var classNames__default = /*#__PURE__*/
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
32
32
|
|
|
33
33
|
/******************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
@@ -113,7 +113,7 @@ var Avatar = React__namespace.forwardRef(function (_a, ref) {
|
|
|
113
113
|
shortName = stringAvatar(trimName);
|
|
114
114
|
}
|
|
115
115
|
return React__namespace.createElement("div", __assign({
|
|
116
|
-
className: classNames__default
|
|
116
|
+
className: classNames__default.default(css.root, className, (_b = {}, _b[css["theme_".concat(theme)]] = !isImage, _b))
|
|
117
117
|
}, props, {
|
|
118
118
|
style: {
|
|
119
119
|
background: bgColor,
|
|
@@ -7,10 +7,10 @@ var classNames = require('classnames');
|
|
|
7
7
|
var Icon = require('@prom-ui/core/Icon');
|
|
8
8
|
var User = require('@prom-ui/icons/User');
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
if (e && e
|
|
12
|
+
function _interopNamespaceCompat(e) {
|
|
13
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
14
14
|
var n = Object.create(null);
|
|
15
15
|
if (e) {
|
|
16
16
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,12 +23,12 @@ function _interopNamespace(e) {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
n
|
|
26
|
+
n.default = e;
|
|
27
27
|
return Object.freeze(n);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var React__namespace = /*#__PURE__*/
|
|
31
|
-
var classNames__default = /*#__PURE__*/
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
32
32
|
|
|
33
33
|
/******************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
@@ -113,7 +113,7 @@ var Avatar = React__namespace.forwardRef(function (_a, ref) {
|
|
|
113
113
|
shortName = stringAvatar(trimName);
|
|
114
114
|
}
|
|
115
115
|
return React__namespace.createElement("div", __assign({
|
|
116
|
-
className: classNames__default
|
|
116
|
+
className: classNames__default.default(css.root, className, (_b = {}, _b[css["theme_".concat(theme)]] = !isImage, _b))
|
|
117
117
|
}, props, {
|
|
118
118
|
style: {
|
|
119
119
|
background: bgColor,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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=a(e),c=o(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};var u={root:"ap8QD",image:"_52SeG",text:"-Fg0p",icon:"-JCN2",theme_white:"VDWp7","theme_black-100":"AQ1tT","theme_violet-300":"yK-3d","theme_yellow-500":"O2My9",theme_multicolor:"xV5U3"},s=i.forwardRef((function(e,t){var o,a=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,g=e.theme,v=void 0===g?"violet-300":g,y=e.className,h=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["image","name","size","loading","theme","className"]),b=!!a,O=void 0,j=null;if(!b){var w=s?s.trim():"";"multicolor"===v&&(O=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(w)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(w)}return i.createElement("div",l({className:c.default(u.root,y,(o={},o[u["theme_".concat(v)]]=!b,o))},h,{style:{background:O,width:m,height:m,fontSize:m/2.2},ref:t}),b?i.createElement("img",{className:u.image,src:a,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s,require("./style.production.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("classnames"),r=require("@prom-ui/core/Icon"),n=require("@prom-ui/icons/User");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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=a(e),c=o(t),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};var u={root:"G2c2y",image:"A7F5c",text:"ZWoLT",icon:"sQ5M9",theme_white:"alKXP","theme_black-100":"mN0Ch","theme_violet-300":"MEUSj","theme_yellow-500":"lfsbh",theme_multicolor:"zMJTY"},s=i.forwardRef((function(e,t){var o,a=e.image,s=e.name,f=e.size,m=void 0===f?40:f,p=e.loading,d=void 0===p?"eager":p,v=e.theme,h=void 0===v?"violet-300":v,g=e.className,y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["image","name","size","loading","theme","className"]),b=!!a,O=void 0,j=null;if(!b){var w=s?s.trim():"";"multicolor"===h&&(O=function(e){var t,r=0;for(t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r);var n="#";for(t=0;t<3;t+=1)n+="00".concat((r>>8*t&255).toString(16)).slice(-2);return n}(w)),j=function(e){return e.split(" ").slice(0,2).map((function(e){return e[0]})).join("")}(w)}return i.createElement("div",l({className:c.default(u.root,g,(o={},o[u["theme_".concat(h)]]=!b,o))},y,{style:{background:O,width:m,height:m,fontSize:m/2.2},ref:t}),b?i.createElement("img",{className:u.image,src:a,alt:s,width:m,height:m,loading:d}):i.createElement(i.Fragment,null,j?i.createElement("span",{className:u.text},j):i.createElement(r.Icon,{className:u.icon,"icon-as":n.SvgUser})))}));s.displayName="Avatar",exports.Avatar=s,require("./style.production.v2.css");
|
package/Avatar/index.d.ts
CHANGED
package/Avatar/package.json
CHANGED
|
@@ -7,10 +7,10 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var Portal = require('@prom-ui/core/Portal');
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
if (e && e
|
|
12
|
+
function _interopNamespaceCompat(e) {
|
|
13
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
14
14
|
var n = Object.create(null);
|
|
15
15
|
if (e) {
|
|
16
16
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,12 +23,12 @@ function _interopNamespace(e) {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
n
|
|
26
|
+
n.default = e;
|
|
27
27
|
return Object.freeze(n);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var React__namespace = /*#__PURE__*/
|
|
31
|
-
var classNames__default = /*#__PURE__*/
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
32
32
|
|
|
33
33
|
/******************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
@@ -99,7 +99,7 @@ var Backdrop = React__namespace.forwardRef(function (_a, ref) {
|
|
|
99
99
|
isActive: isRenderPortal
|
|
100
100
|
}, React__namespace.createElement("div", __assign({
|
|
101
101
|
ref: ref,
|
|
102
|
-
className: classNames__default
|
|
102
|
+
className: classNames__default.default(css.root, className),
|
|
103
103
|
style: __assign({
|
|
104
104
|
zIndex: zIndex
|
|
105
105
|
}, style),
|
|
@@ -7,10 +7,10 @@ var reactTransitionGroup = require('react-transition-group');
|
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
var Portal = require('@prom-ui/core/Portal');
|
|
9
9
|
|
|
10
|
-
function
|
|
10
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
if (e && e
|
|
12
|
+
function _interopNamespaceCompat(e) {
|
|
13
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
14
14
|
var n = Object.create(null);
|
|
15
15
|
if (e) {
|
|
16
16
|
Object.keys(e).forEach(function (k) {
|
|
@@ -23,12 +23,12 @@ function _interopNamespace(e) {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
n
|
|
26
|
+
n.default = e;
|
|
27
27
|
return Object.freeze(n);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var React__namespace = /*#__PURE__*/
|
|
31
|
-
var classNames__default = /*#__PURE__*/
|
|
30
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
31
|
+
var classNames__default = /*#__PURE__*/_interopDefaultCompat(classNames);
|
|
32
32
|
|
|
33
33
|
/******************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
@@ -99,7 +99,7 @@ var Backdrop = React__namespace.forwardRef(function (_a, ref) {
|
|
|
99
99
|
isActive: isRenderPortal
|
|
100
100
|
}, React__namespace.createElement("div", __assign({
|
|
101
101
|
ref: ref,
|
|
102
|
-
className: classNames__default
|
|
102
|
+
className: classNames__default.default(css.root, className),
|
|
103
103
|
style: __assign({
|
|
104
104
|
zIndex: zIndex
|
|
105
105
|
}, style),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Portal");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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=a(e),c=o(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};var s={root:"mZ7dv",backdrop:"AJyr0",enterActive:"aDdF3",exitActive:"rC-Zl",enter:"NgQBr",exit:"_9LKEC"},d=i.forwardRef((function(e,r){var o=e.isOpen,a=void 0!==o&&o,d=e.isRenderPortal,u=void 0===d||d,f=e.isAnimated,p=void 0===f||f,v=e.style,y=void 0===v?{}:v,b=e.zIndex,O=void 0===b?1e3:b,m=e.children,j=e.className,P=e.onClick,g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["isOpen","isRenderPortal","isAnimated","style","zIndex","children","className","onClick"]);return i.createElement(t.CSSTransition,{in:a,timeout:p?225:0,classNames:s,unmountOnExit:!0},i.createElement(n.Portal,{isActive:u},i.createElement("div",l({ref:r,className:c.default(s.root,j),style:l({zIndex:O},y),"aria-hidden":!0,"data-testid":"backdrop","data-qaid":"backdrop"},g),i.createElement("div",{className:s.backdrop,onClick:P}),m)))}));exports.Backdrop=d,require("./style.production.css");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Portal");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(e){if(e&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-transition-group"),r=require("classnames"),n=require("@prom-ui/core/Portal");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function a(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=a(e),c=o(r),l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};var s={root:"p-RA9",backdrop:"XNSpt",enterActive:"ATDSq",exitActive:"bnta5",enter:"NmGm7",exit:"sD9v-"},u=i.forwardRef((function(e,r){var o=e.isOpen,a=void 0!==o&&o,u=e.isRenderPortal,d=void 0===u||u,p=e.isAnimated,f=void 0===p||p,v=e.style,b=void 0===v?{}:v,y=e.zIndex,O=void 0===y?1e3:y,m=e.children,j=e.className,P=e.onClick,x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["isOpen","isRenderPortal","isAnimated","style","zIndex","children","className","onClick"]);return i.createElement(t.CSSTransition,{in:a,timeout:f?225:0,classNames:s,unmountOnExit:!0},i.createElement(n.Portal,{isActive:d},i.createElement("div",l({ref:r,className:c.default(s.root,j),style:l({zIndex:O},b),"aria-hidden":!0,"data-testid":"backdrop","data-qaid":"backdrop"},x),i.createElement("div",{className:s.backdrop,onClick:P}),m)))}));exports.Backdrop=u,require("./style.production.v2.css");
|
package/Backdrop/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type BackdropProps = React.ComponentPropsWithRef<'div'> & {
|
|
3
3
|
/** Позволяет передавать дочерние элементы в компонент. */
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
/** Определяет, должен ли компонент отображаться `true` или скрыться `false`. */
|
package/Backdrop/package.json
CHANGED
package/Body/package.json
CHANGED
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ttag = require('ttag');
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
if (e && e
|
|
8
|
+
function _interopNamespaceCompat(e) {
|
|
9
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
10
10
|
var n = Object.create(null);
|
|
11
11
|
if (e) {
|
|
12
12
|
Object.keys(e).forEach(function (k) {
|
|
@@ -19,11 +19,11 @@ function _interopNamespace(e) {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
n
|
|
22
|
+
n.default = e;
|
|
23
23
|
return Object.freeze(n);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
var React__namespace = /*#__PURE__*/
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
27
27
|
|
|
28
28
|
var globalTTag = new ttag.TTag();
|
|
29
29
|
var BodyContext = React__namespace.createContext({
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var ttag = require('ttag');
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
if (e && e
|
|
8
|
+
function _interopNamespaceCompat(e) {
|
|
9
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
10
10
|
var n = Object.create(null);
|
|
11
11
|
if (e) {
|
|
12
12
|
Object.keys(e).forEach(function (k) {
|
|
@@ -19,11 +19,11 @@ function _interopNamespace(e) {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
n
|
|
22
|
+
n.default = e;
|
|
23
23
|
return Object.freeze(n);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
var React__namespace = /*#__PURE__*/
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
|
|
27
27
|
|
|
28
28
|
var globalTTag = new ttag.TTag();
|
|
29
29
|
var BodyContext = React__namespace.createContext({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("ttag");function s(e){if(e&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("ttag");function s(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}})),r.default=e,Object.freeze(r)}var n=s(e),t=new r.TTag,a=n.createContext({globalTTag:t});a.displayName="BodyContext";var i={charset:"utf-8",headers:{"Content-Type":"text/plain; charset=utf-8","Plural-Forms":"nplurals = 3; plural = (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);",Language:"uk","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},translations:{"":{"":{msgid:"",msgstr:["Content-Type: text/plain; charset=utf-8\nPlural-Forms: nplurals = 3; plural = (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\nLanguage: uk\nMIME-Version: 1.0\nContent-Transfer-Encoding: 8bit\n"]},"Показать предыдущий баннер":{msgid:"Показать предыдущий баннер",msgstr:["Показати попередній банер"]},"Показать следующий баннер":{msgid:"Показать следующий баннер",msgstr:["Показати наступний банер"]},"Показать баннер номер ${ viewIndex }":{msgid:"Показать баннер номер ${ viewIndex }",msgstr:["Показати банер номер ${ viewIndex }"]},"Закрыть":{msgid:"Закрыть",msgstr:["Закрити"]},"Назад":{msgid:"Назад",msgstr:["Назад"]},"Далее":{msgid:"Далее",msgstr:["Далі"]},"Возникла ошибка:":{msgid:"Возникла ошибка:",msgstr:["Виникла помилка:"]},"Обновить":{msgid:"Обновить",msgstr:["Оновити"]},"Скрыть":{msgid:"Скрыть",msgstr:["Приховати"]},"Очистить":{msgid:"Очистить",msgstr:["Очистити"]},"Скрыть пароль":{msgid:"Скрыть пароль",msgstr:["Приховати пароль"]},"Показать пароль":{msgid:"Показать пароль",msgstr:["Показати пароль"]},"Наверх":{msgid:"Наверх",msgstr:["Вгору"]}}}},g={charset:"utf-8",headers:{"Content-Type":"text/plain; charset=utf-8","Plural-Forms":"nplurals = 3; plural = (n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2);",Language:"ro","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},translations:{"":{"":{msgid:"",msgstr:["Content-Type: text/plain; charset=utf-8\nPlural-Forms: nplurals = 3; plural = (n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2);\nLanguage: ro\nMIME-Version: 1.0\nContent-Transfer-Encoding: 8bit\n"]},"Показать предыдущий баннер":{msgid:"Показать предыдущий баннер",msgstr:["Afișați bannerul anterior"]},"Показать следующий баннер":{msgid:"Показать следующий баннер",msgstr:["Afișează următorul banner"]},"Показать баннер номер ${ viewIndex }":{msgid:"Показать баннер номер ${ viewIndex }",msgstr:["Afișați numărul bannerului ${ viewIndex }"]},"Закрыть":{msgid:"Закрыть",msgstr:["Închide"]},"Назад":{msgid:"Назад",msgstr:["Înapoi"]},"Далее":{msgid:"Далее",msgstr:["Mai departe"]},"Возникла ошибка:":{msgid:"Возникла ошибка:",msgstr:["A aparut o eroare:"]},"Обновить":{msgid:"Обновить",msgstr:["Reîmprospăta"]},"Скрыть":{msgid:"Скрыть",msgstr:["Ascunde"]},"Очистить":{msgid:"Очистить",msgstr:["Clar"]},"Скрыть пароль":{msgid:"Скрыть пароль",msgstr:["Ascunde parola"]},"Показать пароль":{msgid:"Показать пароль",msgstr:["Arata parola"]},"Наверх":{msgid:"Наверх",msgstr:["Top"]}}}},o=function(e){var s=e.children,t=e.locale,o=void 0===t?"ru":t,m=n.useMemo((function(){var e=new r.TTag;return e.addLocale("uk",i),e.addLocale("ro",g),e}),[]);return m.useLocale(o),n.createElement(a.Provider,{value:{globalTTag:m}},s)};o.displayName="BodyProvider",exports.BodyProvider=o,exports.useBodyLocale=function(){return n.useContext(a).globalTTag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("ttag");function s(e){if(e&&e
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("ttag");function s(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(r,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}})),r.default=e,Object.freeze(r)}var n=s(e),t=new r.TTag,a=n.createContext({globalTTag:t});a.displayName="BodyContext";var i={charset:"utf-8",headers:{"Content-Type":"text/plain; charset=utf-8","Plural-Forms":"nplurals = 3; plural = (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);",Language:"uk","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},translations:{"":{"":{msgid:"",msgstr:["Content-Type: text/plain; charset=utf-8\nPlural-Forms: nplurals = 3; plural = (n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\nLanguage: uk\nMIME-Version: 1.0\nContent-Transfer-Encoding: 8bit\n"]},"Показать предыдущий баннер":{msgid:"Показать предыдущий баннер",msgstr:["Показати попередній банер"]},"Показать следующий баннер":{msgid:"Показать следующий баннер",msgstr:["Показати наступний банер"]},"Показать баннер номер ${ viewIndex }":{msgid:"Показать баннер номер ${ viewIndex }",msgstr:["Показати банер номер ${ viewIndex }"]},"Закрыть":{msgid:"Закрыть",msgstr:["Закрити"]},"Назад":{msgid:"Назад",msgstr:["Назад"]},"Далее":{msgid:"Далее",msgstr:["Далі"]},"Возникла ошибка:":{msgid:"Возникла ошибка:",msgstr:["Виникла помилка:"]},"Обновить":{msgid:"Обновить",msgstr:["Оновити"]},"Скрыть":{msgid:"Скрыть",msgstr:["Приховати"]},"Очистить":{msgid:"Очистить",msgstr:["Очистити"]},"Скрыть пароль":{msgid:"Скрыть пароль",msgstr:["Приховати пароль"]},"Показать пароль":{msgid:"Показать пароль",msgstr:["Показати пароль"]},"Наверх":{msgid:"Наверх",msgstr:["Вгору"]}}}},g={charset:"utf-8",headers:{"Content-Type":"text/plain; charset=utf-8","Plural-Forms":"nplurals = 3; plural = (n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2);",Language:"ro","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit"},translations:{"":{"":{msgid:"",msgstr:["Content-Type: text/plain; charset=utf-8\nPlural-Forms: nplurals = 3; plural = (n == 1 ? 0 : (n == 0 || (n % 100 > 0 && n % 100 < 20)) ? 1 : 2);\nLanguage: ro\nMIME-Version: 1.0\nContent-Transfer-Encoding: 8bit\n"]},"Показать предыдущий баннер":{msgid:"Показать предыдущий баннер",msgstr:["Afișați bannerul anterior"]},"Показать следующий баннер":{msgid:"Показать следующий баннер",msgstr:["Afișează următorul banner"]},"Показать баннер номер ${ viewIndex }":{msgid:"Показать баннер номер ${ viewIndex }",msgstr:["Afișați numărul bannerului ${ viewIndex }"]},"Закрыть":{msgid:"Закрыть",msgstr:["Închide"]},"Назад":{msgid:"Назад",msgstr:["Înapoi"]},"Далее":{msgid:"Далее",msgstr:["Mai departe"]},"Возникла ошибка:":{msgid:"Возникла ошибка:",msgstr:["A aparut o eroare:"]},"Обновить":{msgid:"Обновить",msgstr:["Reîmprospăta"]},"Скрыть":{msgid:"Скрыть",msgstr:["Ascunde"]},"Очистить":{msgid:"Очистить",msgstr:["Clar"]},"Скрыть пароль":{msgid:"Скрыть пароль",msgstr:["Ascunde parola"]},"Показать пароль":{msgid:"Показать пароль",msgstr:["Arata parola"]},"Наверх":{msgid:"Наверх",msgstr:["Top"]}}}},o=function(e){var s=e.children,t=e.locale,o=void 0===t?"ru":t,m=n.useMemo((function(){var e=new r.TTag;return e.addLocale("uk",i),e.addLocale("ro",g),e}),[]);return m.useLocale(o),n.createElement(a.Provider,{value:{globalTTag:m}},s)};o.displayName="BodyProvider",exports.BodyProvider=o,exports.useBodyLocale=function(){return n.useContext(a).globalTTag};
|
package/BodyProvider/index.d.ts
CHANGED