@prom-ui/core 0.0.22 → 0.0.30
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/Body/cjs/index.development.js +14 -0
- package/Body/cjs/index.production.js +1 -0
- package/Body/cjs/style.development.css +1 -0
- package/Body/cjs/style.production.css +1 -0
- package/Body/index.js +5 -12
- package/Body/package.json +1 -1
- package/Box/cjs/index.development.js +20 -0
- package/Box/cjs/index.production.js +1 -0
- package/Box/cjs/style.development.css +1 -0
- package/Box/cjs/style.production.css +1 -0
- package/Box/index.js +5 -18
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +95 -0
- package/Button/cjs/index.production.js +1 -0
- package/Button/cjs/style.development.css +1 -0
- package/Button/cjs/style.production.css +1 -0
- package/Button/index.d.ts +5 -4
- package/Button/index.js +4 -81
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +170 -0
- package/ButtonPageUp/cjs/index.production.js +1 -0
- package/ButtonPageUp/index.d.ts +12 -5
- package/ButtonPageUp/index.js +4 -169
- package/ButtonPageUp/package.json +1 -2
- package/Checkbox/cjs/index.development.js +111 -0
- package/Checkbox/cjs/index.production.js +1 -0
- package/Checkbox/cjs/style.development.css +1 -0
- package/Checkbox/cjs/style.production.css +1 -0
- package/Checkbox/index.d.ts +4 -4
- package/Checkbox/index.js +4 -96
- package/Checkbox/package.json +1 -1
- package/Flex/cjs/index.development.js +25 -0
- package/Flex/cjs/index.production.js +1 -0
- package/Flex/cjs/style.development.css +1 -0
- package/Flex/cjs/style.production.css +1 -0
- package/Flex/index.js +5 -23
- package/Flex/package.json +1 -1
- package/Grid/cjs/index.development.js +25 -0
- package/Grid/cjs/index.production.js +1 -0
- package/Grid/cjs/style.development.css +1 -0
- package/Grid/cjs/style.production.css +1 -0
- package/Grid/index.js +5 -23
- package/Grid/package.json +1 -1
- package/Icon/cjs/index.development.js +41 -0
- package/Icon/cjs/index.production.js +1 -0
- package/Icon/cjs/style.development.css +1 -0
- package/Icon/cjs/style.production.css +1 -0
- package/Icon/index.d.ts +7 -12
- package/Icon/index.js +4 -76
- package/Icon/package.json +1 -1
- package/Image/cjs/index.development.js +20 -0
- package/Image/cjs/index.production.js +1 -0
- package/Image/cjs/style.development.css +1 -0
- package/Image/cjs/style.production.css +1 -0
- package/Image/index.js +5 -18
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +90 -0
- package/ImageEmoji/cjs/index.production.js +1 -0
- package/ImageEmoji/index.d.ts +6 -4
- package/ImageEmoji/index.js +4 -86
- package/ImageEmoji/package.json +1 -1
- package/Input/cjs/index.development.js +39 -0
- package/Input/cjs/index.production.js +1 -0
- package/Input/cjs/style.development.css +1 -0
- package/Input/cjs/style.production.css +1 -0
- package/Input/index.d.ts +23 -23
- package/Input/index.js +4 -81
- package/Input/package.json +1 -1
- package/KeyPress/cjs/index.development.js +56 -0
- package/KeyPress/cjs/index.production.js +1 -0
- package/KeyPress/index.d.ts +8 -7
- package/KeyPress/index.js +5 -53
- package/KeyPress/package.json +2 -5
- package/Line/cjs/index.development.js +20 -0
- package/Line/cjs/index.production.js +1 -0
- package/Line/cjs/style.development.css +1 -0
- package/Line/cjs/style.production.css +1 -0
- package/Line/index.js +5 -18
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +22 -0
- package/Link/cjs/index.production.js +1 -0
- package/Link/cjs/style.development.css +1 -0
- package/Link/cjs/style.production.css +1 -0
- package/Link/index.js +5 -20
- package/Link/package.json +1 -1
- package/List/cjs/index.development.js +25 -0
- package/List/cjs/index.production.js +1 -0
- package/List/cjs/style.development.css +1 -0
- package/List/cjs/style.production.css +1 -0
- package/List/index.js +5 -23
- package/List/package.json +1 -1
- package/Media/breakpoints.d.ts +17 -0
- package/Media/cjs/index.development.js +60 -0
- package/Media/cjs/index.production.js +1 -0
- package/Media/index.d.ts +11 -0
- package/Media/index.js +7 -0
- package/{Tooltip → Media}/package.json +3 -3
- package/Media/useMedia.d.ts +7 -0
- package/{Tooltip/Trigger/index.js → OutsideClick/cjs/index.development.js} +32 -24
- package/OutsideClick/cjs/index.production.js +1 -0
- package/OutsideClick/index.d.ts +6 -3
- package/OutsideClick/index.js +4 -74
- package/OutsideClick/package.json +2 -5
- package/Picture/cjs/index.development.js +25 -0
- package/Picture/cjs/index.production.js +1 -0
- package/Picture/cjs/style.development.css +1 -0
- package/Picture/cjs/style.production.css +1 -0
- package/Picture/index.js +5 -23
- package/Picture/package.json +1 -1
- package/PortableOverlay/cjs/index.development.js +111 -0
- package/PortableOverlay/cjs/index.production.js +1 -0
- package/PortableOverlay/cjs/style.development.css +1 -0
- package/PortableOverlay/cjs/style.production.css +1 -0
- package/PortableOverlay/index.d.ts +6 -4
- package/PortableOverlay/index.js +5 -112
- package/PortableOverlay/package.json +1 -2
- package/Portal/cjs/index.development.js +57 -0
- package/Portal/cjs/index.production.js +1 -0
- package/Portal/index.d.ts +6 -4
- package/Portal/index.js +5 -52
- package/Portal/package.json +2 -5
- package/Rating/cjs/index.development.js +105 -0
- package/Rating/cjs/index.production.js +1 -0
- package/Rating/cjs/style.development.css +1 -0
- package/Rating/cjs/style.production.css +1 -0
- package/Rating/index.d.ts +6 -5
- package/Rating/index.js +4 -98
- package/Rating/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +181 -0
- package/SafeQuery/cjs/index.production.js +1 -0
- package/SafeQuery/cjs/style.development.css +1 -0
- package/SafeQuery/cjs/style.production.css +1 -0
- package/SafeQuery/components/Error.d.ts +7 -0
- package/SafeQuery/index.d.ts +10 -0
- package/SafeQuery/index.js +7 -0
- package/SafeQuery/package.json +12 -0
- package/Scroll/cjs/index.development.js +40 -0
- package/Scroll/cjs/index.production.js +1 -0
- package/Scroll/cjs/style.development.css +1 -0
- package/Scroll/cjs/style.production.css +1 -0
- package/Scroll/index.d.ts +18 -16
- package/Scroll/index.js +4 -76
- package/Scroll/package.json +1 -1
- package/ScrollControls/cjs/index.development.js +243 -0
- package/ScrollControls/cjs/index.production.js +1 -0
- package/ScrollControls/cjs/style.development.css +1 -0
- package/ScrollControls/cjs/style.production.css +1 -0
- package/ScrollControls/index.d.ts +16 -6
- package/ScrollControls/index.js +4 -244
- package/ScrollControls/package.json +1 -2
- package/SideOverlay/cjs/index.development.js +210 -0
- package/SideOverlay/cjs/index.production.js +1 -0
- package/SideOverlay/cjs/style.development.css +1 -0
- package/SideOverlay/cjs/style.production.css +1 -0
- package/SideOverlay/index.d.ts +28 -13
- package/SideOverlay/index.js +4 -251
- package/SideOverlay/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +433 -0
- package/SimpleSlider/cjs/index.production.js +1 -0
- package/SimpleSlider/cjs/style.development.css +1 -0
- package/SimpleSlider/cjs/style.production.css +1 -0
- package/SimpleSlider/index.d.ts +17 -3
- package/SimpleSlider/index.js +4 -477
- package/SimpleSlider/package.json +1 -1
- package/Skeleton/cjs/index.development.js +103 -0
- package/Skeleton/cjs/index.production.js +1 -0
- package/Skeleton/cjs/style.development.css +1 -0
- package/Skeleton/cjs/style.production.css +1 -0
- package/Skeleton/index.d.ts +9 -5
- package/Skeleton/index.js +4 -110
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +85 -0
- package/Spinner/cjs/index.production.js +1 -0
- package/Spinner/cjs/style.development.css +1 -0
- package/Spinner/cjs/style.production.css +1 -0
- package/Spinner/index.d.ts +7 -6
- package/Spinner/index.js +5 -76
- package/Spinner/package.json +1 -1
- package/Text/cjs/index.development.js +20 -0
- package/Text/cjs/index.production.js +1 -0
- package/Text/cjs/style.development.css +1 -0
- package/Text/cjs/style.production.css +1 -0
- package/Text/index.js +5 -18
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +94 -0
- package/TextEmoji/cjs/index.production.js +1 -0
- package/TextEmoji/index.d.ts +4 -4
- package/TextEmoji/index.js +4 -84
- package/TextEmoji/package.json +1 -1
- package/Tumbler/cjs/index.development.js +110 -0
- package/Tumbler/cjs/index.production.js +1 -0
- package/Tumbler/cjs/style.development.css +1 -0
- package/Tumbler/cjs/style.production.css +1 -0
- package/Tumbler/index.d.ts +4 -4
- package/Tumbler/index.js +4 -95
- package/Tumbler/package.json +1 -1
- package/package.json +15 -9
- package/Body/style.css +0 -741
- package/Box/style.css +0 -9676
- package/Button/style.css +0 -3393
- package/Checkbox/style.css +0 -133
- package/Flex/style.css +0 -786
- package/Grid/style.css +0 -7350
- package/Icon/style.css +0 -46
- package/Image/style.css +0 -664
- package/Input/style.css +0 -345
- package/Line/style.css +0 -138
- package/Link/style.css +0 -259
- package/List/style.css +0 -312
- package/Picture/style.css +0 -1426
- package/PortableOverlay/style.css +0 -44
- package/Rating/style.css +0 -26
- package/Scroll/style.css +0 -169
- package/ScrollControls/style.css +0 -67
- package/SideOverlay/style.css +0 -208
- package/SimpleSlider/style.css +0 -134
- package/Skeleton/style.css +0 -145
- package/Spinner/style.css +0 -80
- package/Text/style.css +0 -840
- package/Tooltip/Popper/index.d.ts +0 -12
- package/Tooltip/Popper/index.js +0 -88
- package/Tooltip/Popper/package.json +0 -9
- package/Tooltip/Popper/style.css +0 -133
- package/Tooltip/Trigger/index.d.ts +0 -5
- package/Tooltip/Trigger/package.json +0 -9
- package/Tooltip/Trigger/style.css +0 -36
- package/Tooltip/index.d.ts +0 -24
- package/Tooltip/index.js +0 -284
- package/Tooltip/style.css +0 -170
- package/Tooltip/utils.d.ts +0 -1
- package/Tumbler/style.css +0 -118
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var evokit = require('evokit');
|
|
7
|
+
|
|
8
|
+
function _interopNamespace(e) {
|
|
9
|
+
if (e && e.__esModule) 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]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
n["default"] = e;
|
|
23
|
+
return Object.freeze(n);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
|
+
|
|
28
|
+
/******************************************************************************
|
|
29
|
+
Copyright (c) Microsoft Corporation.
|
|
30
|
+
|
|
31
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
32
|
+
purpose with or without fee is hereby granted.
|
|
33
|
+
|
|
34
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
35
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
36
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
38
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
39
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
40
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
41
|
+
***************************************************************************** */
|
|
42
|
+
|
|
43
|
+
var __assign = function() {
|
|
44
|
+
__assign = Object.assign || function __assign(t) {
|
|
45
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
46
|
+
s = arguments[i];
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
48
|
+
}
|
|
49
|
+
return t;
|
|
50
|
+
};
|
|
51
|
+
return __assign.apply(this, arguments);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
function __rest(s, e) {
|
|
55
|
+
var t = {};
|
|
56
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
57
|
+
t[p] = s[p];
|
|
58
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
59
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
60
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
61
|
+
t[p[i]] = s[p[i]];
|
|
62
|
+
}
|
|
63
|
+
return t;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var css = {"ek-rating":"Rating__ek-rating___fJb0G","ek-rating_size_small":"Rating__ek-rating_size_small___YZP0u","ek-rating_size_default":"Rating__ek-rating_size_default___X0xeh","ek-rating_size_big":"Rating__ek-rating_size_big___fQ-Lk"};
|
|
67
|
+
|
|
68
|
+
var RatingBlock = evokit.createBlock('svg', 'rating', ['size'], {
|
|
69
|
+
css: css
|
|
70
|
+
});
|
|
71
|
+
var Rating = React__namespace.forwardRef(function (_a, ref) {
|
|
72
|
+
var _b = _a.value,
|
|
73
|
+
value = _b === void 0 ? 0 : _b,
|
|
74
|
+
_c = _a.percent,
|
|
75
|
+
percent = _c === void 0 ? 0 : _c,
|
|
76
|
+
_d = _a.size,
|
|
77
|
+
size = _d === void 0 ? 'default' : _d,
|
|
78
|
+
props = __rest(_a, ["value", "percent", "size"]);
|
|
79
|
+
|
|
80
|
+
var gradientOffset = Math.round(percent > 0 ? percent : value / 5 * 100);
|
|
81
|
+
var gradientId = "pds-rating-gradient-".concat(gradientOffset);
|
|
82
|
+
return React__namespace.createElement(RatingBlock, __assign({}, props, {
|
|
83
|
+
ref: ref,
|
|
84
|
+
"rating-size": size,
|
|
85
|
+
viewBox: '0 0 100 20',
|
|
86
|
+
tabIndex: -1,
|
|
87
|
+
focusable: false
|
|
88
|
+
}), React__namespace.createElement("defs", null, React__namespace.createElement("linearGradient", {
|
|
89
|
+
id: gradientId
|
|
90
|
+
}, React__namespace.createElement("stop", {
|
|
91
|
+
offset: "".concat(gradientOffset, "%"),
|
|
92
|
+
stopColor: 'var(--violet-500)'
|
|
93
|
+
}), React__namespace.createElement("stop", {
|
|
94
|
+
offset: "".concat(gradientOffset, "%"),
|
|
95
|
+
stopColor: 'var(--black-400)'
|
|
96
|
+
}))), React__namespace.createElement("path", {
|
|
97
|
+
fill: "url(#".concat(gradientId, ")"),
|
|
98
|
+
d: 'M10 1.5l2.781 5.595L19 7.998l-4.5 4.353 1.062 6.149L10\n 15.595 4.438 18.5 5.5 12.35 1 7.999l6.219-.903L10\n 1.5zM30.067 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061\n 6.149-5.562-2.905-5.562 2.905 1.062-6.15-4.5-4.352\n 6.22-.903 2.78-5.595zM50.125 1.5l2.781 5.595\n 6.219.903-4.5 4.353 1.062 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.219-.903L50.125 1.5zM70.047\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.22-.903 2.78-5.595zM89.861\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905L84.3\n 18.5l1.062-6.15-4.5-4.352 6.22-.903L89.86 1.5z'
|
|
99
|
+
}));
|
|
100
|
+
});
|
|
101
|
+
Rating.displayName = 'Rating';
|
|
102
|
+
|
|
103
|
+
exports.Rating = Rating;
|
|
104
|
+
|
|
105
|
+
require('./style.development.css');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("evokit");function r(e){if(e&&e.__esModule)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 n=r(e),a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},a.apply(this,arguments)};var o=t.createBlock("svg","rating",["size"],{css:{"ek-rating":"fJb0G","ek-rating_size_small":"YZP0u","ek-rating_size_default":"X0xeh","ek-rating_size_big":"fQ-Lk"}}),l=n.forwardRef((function(e,t){var r=e.value,l=void 0===r?0:r,i=e.percent,c=void 0===i?0:i,s=e.size,f=void 0===s?"default":s,u=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 a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}(e,["value","percent","size"]),p=Math.round(c>0?c:l/5*100),d="pds-rating-gradient-".concat(p);return n.createElement(o,a({},u,{ref:t,"rating-size":f,viewBox:"0 0 100 20",tabIndex:-1,focusable:!1}),n.createElement("defs",null,n.createElement("linearGradient",{id:d},n.createElement("stop",{offset:"".concat(p,"%"),stopColor:"var(--violet-500)"}),n.createElement("stop",{offset:"".concat(p,"%"),stopColor:"var(--black-400)"}))),n.createElement("path",{fill:"url(#".concat(d,")"),d:"M10 1.5l2.781 5.595L19 7.998l-4.5 4.353 1.062 6.149L10\n 15.595 4.438 18.5 5.5 12.35 1 7.999l6.219-.903L10\n 1.5zM30.067 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061\n 6.149-5.562-2.905-5.562 2.905 1.062-6.15-4.5-4.352\n 6.22-.903 2.78-5.595zM50.125 1.5l2.781 5.595\n 6.219.903-4.5 4.353 1.062 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.219-.903L50.125 1.5zM70.047\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.22-.903 2.78-5.595zM89.861\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905L84.3\n 18.5l1.062-6.15-4.5-4.352 6.22-.903L89.86 1.5z"}))}));l.displayName="Rating",exports.Rating=l,require("./style.production.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Rating__ek-rating___fJb0G{display:block;-webkit-tap-highlight-color:transparent;box-sizing:border-box;height:1em;width:calc(1em*5)}.Rating__ek-rating___fJb0G:focus{outline:0}.Rating__ek-rating_size_small___YZP0u{height:14px;width:calc(14px*5)}.Rating__ek-rating_size_default___X0xeh{height:18px;width:calc(18px*5)}.Rating__ek-rating_size_big___fQ-Lk{height:22px;width:calc(22px*5)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fJb0G{display:block;-webkit-tap-highlight-color:transparent;box-sizing:border-box;height:1em;width:calc(1em*5)}.fJb0G:focus{outline:0}.YZP0u{height:14px;width:calc(14px*5)}.X0xeh{height:18px;width:calc(18px*5)}.fQ-Lk{height:22px;width:calc(22px*5)}
|
package/Rating/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare type
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type RatingProps = React.ComponentPropsWithRef<"svg"> & {
|
|
3
|
+
/** Значение рейтинга, от 0 до 5 */
|
|
3
4
|
value?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
5
|
+
/** Значение рейтинга в процентах от `0` до `100` */
|
|
4
6
|
percent?: number;
|
|
7
|
+
/** Размер */
|
|
5
8
|
size?: 'small' | 'default' | 'big';
|
|
6
9
|
};
|
|
7
|
-
declare
|
|
8
|
-
export declare const Rating: React.FC<RatingProps>;
|
|
9
|
-
export {};
|
|
10
|
+
export declare const Rating: React.ForwardRefExoticComponent<Pick<RatingProps, "string" | "size" | "style" | "clipPath" | "filter" | "mask" | "path" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "value" | "percent"> & React.RefAttributes<HTMLOrSVGElement>>;
|
package/Rating/index.js
CHANGED
|
@@ -1,101 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var evokit = require('evokit');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
13
|
-
|
|
14
|
-
/******************************************************************************
|
|
15
|
-
Copyright (c) Microsoft Corporation.
|
|
16
|
-
|
|
17
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
-
purpose with or without fee is hereby granted.
|
|
19
|
-
|
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
-
***************************************************************************** */
|
|
28
|
-
|
|
29
|
-
var __assign = function() {
|
|
30
|
-
__assign = Object.assign || function __assign(t) {
|
|
31
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
32
|
-
s = arguments[i];
|
|
33
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
34
|
-
}
|
|
35
|
-
return t;
|
|
36
|
-
};
|
|
37
|
-
return __assign.apply(this, arguments);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
function __rest(s, e) {
|
|
41
|
-
var t = {};
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
45
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
46
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
47
|
-
t[p[i]] = s[p[i]];
|
|
48
|
-
}
|
|
49
|
-
return t;
|
|
3
|
+
if (process.env.NODE_ENV === 'production') {
|
|
4
|
+
module.exports = require('./cjs/index.production.js');
|
|
5
|
+
} else {
|
|
6
|
+
module.exports = require('./cjs/index.development.js');
|
|
50
7
|
}
|
|
51
|
-
|
|
52
|
-
var css = {"ek-rating":"Rating__ek-rating___fJb0G","ek-rating_size_small":"Rating__ek-rating_size_small___YZP0u","ek-rating_size_default":"Rating__ek-rating_size_default___X0xeh","ek-rating_size_big":"Rating__ek-rating_size_big___fQ-Lk"};
|
|
53
|
-
|
|
54
|
-
var RatingBlock = evokit.createBlock('svg', 'rating', ['size'], {
|
|
55
|
-
css: css
|
|
56
|
-
});
|
|
57
|
-
var Rating = React.memo(React.forwardRef(function (_a, ref) {
|
|
58
|
-
var _b = _a.value,
|
|
59
|
-
value = _b === void 0 ? 0 : _b,
|
|
60
|
-
_c = _a.percent,
|
|
61
|
-
percent = _c === void 0 ? 0 : _c,
|
|
62
|
-
_d = _a.size,
|
|
63
|
-
size = _d === void 0 ? 'default' : _d,
|
|
64
|
-
props = __rest(_a, ["value", "percent", "size"]);
|
|
65
|
-
|
|
66
|
-
var gradientOffset = Math.round(percent > 0 ? percent : value / 5 * 100);
|
|
67
|
-
var gradientId = "pds-rating-gradient-".concat(gradientOffset);
|
|
68
|
-
return React__default["default"].createElement(RatingBlock, __assign({}, props, {
|
|
69
|
-
ref: ref,
|
|
70
|
-
"rating-size": size,
|
|
71
|
-
viewBox: '0 0 100 20',
|
|
72
|
-
tabIndex: -1,
|
|
73
|
-
focusable: false
|
|
74
|
-
}), React__default["default"].createElement("defs", null, React__default["default"].createElement("linearGradient", {
|
|
75
|
-
id: gradientId
|
|
76
|
-
}, React__default["default"].createElement("stop", {
|
|
77
|
-
offset: "".concat(gradientOffset, "%"),
|
|
78
|
-
stopColor: 'var(--violet-500)'
|
|
79
|
-
}), React__default["default"].createElement("stop", {
|
|
80
|
-
offset: "".concat(gradientOffset, "%"),
|
|
81
|
-
stopColor: 'var(--black-400)'
|
|
82
|
-
}))), React__default["default"].createElement("path", {
|
|
83
|
-
fill: "url(#".concat(gradientId, ")"),
|
|
84
|
-
d: 'M10 1.5l2.781 5.595L19 7.998l-4.5 4.353 1.062 6.149L10\n 15.595 4.438 18.5 5.5 12.35 1 7.999l6.219-.903L10\n 1.5zM30.067 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061\n 6.149-5.562-2.905-5.562 2.905 1.062-6.15-4.5-4.352\n 6.22-.903 2.78-5.595zM50.125 1.5l2.781 5.595\n 6.219.903-4.5 4.353 1.062 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.219-.903L50.125 1.5zM70.047\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905-5.562\n 2.905 1.062-6.15-4.5-4.352 6.22-.903 2.78-5.595zM89.861\n 1.5l2.781 5.595 6.22.903-4.5 4.353 1.061 6.149-5.562-2.905L84.3\n 18.5l1.062-6.15-4.5-4.352 6.22-.903L89.86 1.5z'
|
|
85
|
-
}));
|
|
86
|
-
}));
|
|
87
|
-
Rating.displayName = 'Rating';
|
|
88
|
-
Rating.propTypes = {
|
|
89
|
-
/** Значение рейтинга, от 0 до 5 */
|
|
90
|
-
value: PropTypes__default["default"].oneOf([0, 1, 2, 3, 4, 5]),
|
|
91
|
-
|
|
92
|
-
/** Значение рейтинга в процентах от `0` до `100` */
|
|
93
|
-
// percent: PropTypes.number,
|
|
94
|
-
|
|
95
|
-
/** Размер */
|
|
96
|
-
size: PropTypes__default["default"].oneOf(['small', 'default', 'big'])
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
exports.Rating = Rating;
|
|
100
|
-
|
|
101
|
-
require('./style.css');
|
package/Rating/package.json
CHANGED
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var components = require('@apollo/client/react/components');
|
|
7
|
+
var errcatch = require('@evo/errcatch');
|
|
8
|
+
var Box = require('@prom-ui/core/Box');
|
|
9
|
+
var Button = require('@prom-ui/core/Button');
|
|
10
|
+
var Text = require('@prom-ui/core/Text');
|
|
11
|
+
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
|
+
|
|
14
|
+
function _interopNamespace(e) {
|
|
15
|
+
if (e && e.__esModule) return e;
|
|
16
|
+
var n = Object.create(null);
|
|
17
|
+
if (e) {
|
|
18
|
+
Object.keys(e).forEach(function (k) {
|
|
19
|
+
if (k !== 'default') {
|
|
20
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
21
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () { return e[k]; }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
n["default"] = e;
|
|
29
|
+
return Object.freeze(n);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
34
|
+
|
|
35
|
+
/******************************************************************************
|
|
36
|
+
Copyright (c) Microsoft Corporation.
|
|
37
|
+
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
43
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
45
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
+
***************************************************************************** */
|
|
49
|
+
|
|
50
|
+
var __assign = function() {
|
|
51
|
+
__assign = Object.assign || function __assign(t) {
|
|
52
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
53
|
+
s = arguments[i];
|
|
54
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
return __assign.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
function __rest(s, e) {
|
|
62
|
+
var t = {};
|
|
63
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
64
|
+
t[p] = s[p];
|
|
65
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
66
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
68
|
+
t[p[i]] = s[p[i]];
|
|
69
|
+
}
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var css = {"root":"SafeQuery__root___RWb3q"};
|
|
74
|
+
|
|
75
|
+
var SafeQueryError = function (_a) {
|
|
76
|
+
var componentErrorName = _a.componentErrorName,
|
|
77
|
+
onReload = _a.onReload;
|
|
78
|
+
|
|
79
|
+
var _b = React.useState(false),
|
|
80
|
+
isHidden = _b[0],
|
|
81
|
+
setHidden = _b[1];
|
|
82
|
+
|
|
83
|
+
if (isHidden) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
88
|
+
if (typeof window === 'undefined') return null;
|
|
89
|
+
return React__default["default"].createElement(Box.Box, {
|
|
90
|
+
className: css.root,
|
|
91
|
+
"box-background": 'red-500',
|
|
92
|
+
"box-padding": ['s m', 'm@large l@large'],
|
|
93
|
+
"box-position": 'relative',
|
|
94
|
+
"box-round": 'm',
|
|
95
|
+
"data-qaid": 'err_catch_trace'
|
|
96
|
+
}, React__default["default"].createElement(Box.Box, {
|
|
97
|
+
"box-margin-right": '5xl'
|
|
98
|
+
}, React__default["default"].createElement(Text.Text, {
|
|
99
|
+
"text-color": 'white'
|
|
100
|
+
}, "\u0412\u043E\u0437\u043D\u0438\u043A\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430:", ' ', React__default["default"].createElement(Text.Text, {
|
|
101
|
+
"text-weight": 'bold',
|
|
102
|
+
style: {
|
|
103
|
+
fontFamily: 'Consolas, "Liberation Mono", Menlo, monospace',
|
|
104
|
+
userSelect: 'all'
|
|
105
|
+
}
|
|
106
|
+
}, componentErrorName))), React__default["default"].createElement(Box.Box, {
|
|
107
|
+
"box-position": 'absolute center-right',
|
|
108
|
+
"box-margin-right": 's'
|
|
109
|
+
}, React__default["default"].createElement(Button.Button, {
|
|
110
|
+
"button-padding": 'xxs',
|
|
111
|
+
"button-theme": 'white-inherit',
|
|
112
|
+
onClick: onReload,
|
|
113
|
+
title: '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C'
|
|
114
|
+
}, React__default["default"].createElement("svg", {
|
|
115
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
116
|
+
viewBox: '0 0 18 18',
|
|
117
|
+
width: 18,
|
|
118
|
+
height: 18
|
|
119
|
+
}, React__default["default"].createElement("path", {
|
|
120
|
+
fill: '#fff',
|
|
121
|
+
d: 'M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24\n 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66\n 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0\n 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z'
|
|
122
|
+
}))), React__default["default"].createElement(Button.Button, {
|
|
123
|
+
"button-padding": 'xxs',
|
|
124
|
+
"button-theme": 'white-inherit',
|
|
125
|
+
onClick: function () {
|
|
126
|
+
return setHidden(true);
|
|
127
|
+
},
|
|
128
|
+
title: '\u0421\u043A\u0440\u044B\u0442\u044C'
|
|
129
|
+
}, React__default["default"].createElement("svg", {
|
|
130
|
+
xmlns: 'http://www.w3.org/2000/svg',
|
|
131
|
+
viewBox: '0 0 24 24',
|
|
132
|
+
width: 18,
|
|
133
|
+
height: 18
|
|
134
|
+
}, React__default["default"].createElement("path", {
|
|
135
|
+
fill: '#fff',
|
|
136
|
+
d: 'M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5\n 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'
|
|
137
|
+
})))));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return null;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
var SafeQuery = function (_a) {
|
|
144
|
+
var _b = _a.componentErrorName,
|
|
145
|
+
componentErrorName = _b === void 0 ? 'SafeQuery' : _b,
|
|
146
|
+
children = _a.children,
|
|
147
|
+
props = __rest(_a, ["componentErrorName", "children"]);
|
|
148
|
+
|
|
149
|
+
var _c = React__namespace.useState(false),
|
|
150
|
+
isReload = _c[0],
|
|
151
|
+
setReload = _c[1];
|
|
152
|
+
|
|
153
|
+
React__namespace.useEffect(function () {
|
|
154
|
+
if (isReload) {
|
|
155
|
+
setReload(false);
|
|
156
|
+
}
|
|
157
|
+
}, [isReload]);
|
|
158
|
+
|
|
159
|
+
if (isReload) {
|
|
160
|
+
return null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
var errorComponent = React__namespace.createElement(SafeQueryError, {
|
|
164
|
+
componentErrorName: componentErrorName,
|
|
165
|
+
onReload: function () {
|
|
166
|
+
return setReload(true);
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
return React__namespace.createElement(errcatch.ErrCatch, {
|
|
170
|
+
name: componentErrorName,
|
|
171
|
+
errorComponent: errorComponent
|
|
172
|
+
}, React__namespace.createElement(components.Query, __assign({}, props), function (queryResult) {
|
|
173
|
+
var error = queryResult.error;
|
|
174
|
+
if (error) throw error;
|
|
175
|
+
return children(queryResult);
|
|
176
|
+
}));
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
exports.SafeQuery = SafeQuery;
|
|
180
|
+
|
|
181
|
+
require('./style.development.css');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@apollo/client/react/components"),r=require("@evo/errcatch"),n=require("@prom-ui/core/Box"),o=require("@prom-ui/core/Button"),a=require("@prom-ui/core/Text");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)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 c=l(e),u=i(e),f=function(){return f=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},f.apply(this,arguments)};var d="RWb3q",p=function(t){var r=t.componentErrorName,l=t.onReload,i=e.useState(!1),u=i[0],f=i[1];return u?null:"production"!==process.env.NODE_ENV?"undefined"==typeof window?null:c.default.createElement(n.Box,{className:d,"box-background":"red-500","box-padding":["s m","m@large l@large"],"box-position":"relative","box-round":"m","data-qaid":"err_catch_trace"},c.default.createElement(n.Box,{"box-margin-right":"5xl"},c.default.createElement(a.Text,{"text-color":"white"},"Возникла ошибка:"," ",c.default.createElement(a.Text,{"text-weight":"bold",style:{fontFamily:'Consolas, "Liberation Mono", Menlo, monospace',userSelect:"all"}},r))),c.default.createElement(n.Box,{"box-position":"absolute center-right","box-margin-right":"s"},c.default.createElement(o.Button,{"button-padding":"xxs","button-theme":"white-inherit",onClick:l,title:"Обновить"},c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",width:18,height:18},c.default.createElement("path",{fill:"#fff",d:"M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24\n 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66\n 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0\n 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z"}))),c.default.createElement(o.Button,{"button-padding":"xxs","button-theme":"white-inherit",onClick:function(){return f(!0)},title:"Скрыть"},c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:18,height:18},c.default.createElement("path",{fill:"#fff",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5\n 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))))):null};exports.SafeQuery=function(e){var n=e.componentErrorName,o=void 0===n?"SafeQuery":n,a=e.children,l=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,["componentErrorName","children"]),i=u.useState(!1),c=i[0],d=i[1];if(u.useEffect((function(){c&&d(!1)}),[c]),c)return null;var s=u.createElement(p,{componentErrorName:o,onReload:function(){return d(!0)}});return u.createElement(r.ErrCatch,{name:o,errorComponent:s},u.createElement(t.Query,f({},l),(function(e){var t=e.error;if(t)throw t;return a(e)})))},require("./style.production.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.SafeQuery__root___RWb3q+.SafeQuery__root___RWb3q{margin-top:10px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.RWb3q+.RWb3q{margin-top:10px}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type SafeQueryProps = {
|
|
3
|
+
/** Название компонента в тексте с ошибкой */
|
|
4
|
+
componentErrorName?: string;
|
|
5
|
+
/** React children */
|
|
6
|
+
children: (arg: any) => JSX.Element;
|
|
7
|
+
query: any;
|
|
8
|
+
variables?: any;
|
|
9
|
+
};
|
|
10
|
+
export declare const SafeQuery: React.FC<SafeQueryProps>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var evokit = require('evokit');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var evokit__namespace = /*#__PURE__*/_interopNamespace(evokit);
|
|
26
|
+
|
|
27
|
+
var css = {"ek-scroll":"Scroll__ek-scroll___m6Vr5","ek-scroll__item":"Scroll__ek-scroll__item___bfetG","ek-scroll__item_blackhole_width-fit-content":"Scroll__ek-scroll__item_blackhole_width-fit-content___k-fNo","ek-scroll__item_blackhole_width-max-content":"Scroll__ek-scroll__item_blackhole_width-max-content___s8gGl","ek-scroll_padding_xxs":"Scroll__ek-scroll_padding_xxs___9vZpV","ek-scroll_padding_xs":"Scroll__ek-scroll_padding_xs___L5kMA","ek-scroll_padding_s":"Scroll__ek-scroll_padding_s___Nr3Ig","ek-scroll_padding_m":"Scroll__ek-scroll_padding_m___hcRCz","ek-scroll_padding_l":"Scroll__ek-scroll_padding_l___SKeiS","ek-scroll_padding_xl":"Scroll__ek-scroll_padding_xl___MG4J-","ek-scroll_padding_xxl":"Scroll__ek-scroll_padding_xxl___m8ou2","ek-scroll_padding_3xl":"Scroll__ek-scroll_padding_3xl___xy72W","ek-scroll_padding_4xl":"Scroll__ek-scroll_padding_4xl___gzW-I","ek-scroll_padding_5xl":"Scroll__ek-scroll_padding_5xl___JErmt","ek-scroll_column_1":"Scroll__ek-scroll_column_1___n5mTi","ek-scroll_column_2":"Scroll__ek-scroll_column_2___GqdmF","ek-scroll_column_3":"Scroll__ek-scroll_column_3___DKZCp","ek-scroll_column_4":"Scroll__ek-scroll_column_4___-Nf-L","ek-scroll_column_5":"Scroll__ek-scroll_column_5___OxDq-","ek-scroll_column_6":"Scroll__ek-scroll_column_6___wP8Pu","ek-scroll_column_7":"Scroll__ek-scroll_column_7___-ZDSB","ek-scroll_column_8":"Scroll__ek-scroll_column_8___PnnsU","ek-scroll_column_9":"Scroll__ek-scroll_column_9___DDqgb","ek-scroll_column_10":"Scroll__ek-scroll_column_10___Hh-uZ","ek-scroll_gap_xxs":"Scroll__ek-scroll_gap_xxs___15vfK","ek-scroll_gap_xs":"Scroll__ek-scroll_gap_xs___Kvr2J","ek-scroll_gap_s":"Scroll__ek-scroll_gap_s___71-or","ek-scroll_gap_m":"Scroll__ek-scroll_gap_m___glUvB","ek-scroll_gap_l":"Scroll__ek-scroll_gap_l___pQC7Z","ek-scroll_gap_xl":"Scroll__ek-scroll_gap_xl___L1iAD","ek-scroll_gap_xxl":"Scroll__ek-scroll_gap_xxl___wVNm-","ek-scroll_gap_3xl":"Scroll__ek-scroll_gap_3xl___4tQXK","ek-scroll_gap_4xl":"Scroll__ek-scroll_gap_4xl___1-5dw","ek-scroll_gap_5xl":"Scroll__ek-scroll_gap_5xl___ym2qM","ek-scroll_bar_none":"Scroll__ek-scroll_bar_none___c1gVV","ek-scroll_bar_auto":"Scroll__ek-scroll_bar_auto___-TbaH","ek-scroll_align_normal":"Scroll__ek-scroll_align_normal___zoDjM","ek-scroll_align_start":"Scroll__ek-scroll_align_start___4mACC","ek-scroll_align_center":"Scroll__ek-scroll_align_center___3PWHW","ek-scroll_align_end":"Scroll__ek-scroll_align_end___AwLLA"};
|
|
28
|
+
|
|
29
|
+
var Scroll = evokit__namespace.createBlock('ul', 'scroll', ['align', 'bar', 'column', 'gap', 'padding'], {
|
|
30
|
+
css: css
|
|
31
|
+
});
|
|
32
|
+
var ScrollItem = evokit__namespace.createBlock('li', 'scroll__item', [], {
|
|
33
|
+
css: css
|
|
34
|
+
});
|
|
35
|
+
Scroll.Item = ScrollItem;
|
|
36
|
+
|
|
37
|
+
exports.Scroll = Scroll;
|
|
38
|
+
exports.ScrollItem = ScrollItem;
|
|
39
|
+
|
|
40
|
+
require('./style.development.css');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function l(l){if(l&&l.__esModule)return l;var e=Object.create(null);return l&&Object.keys(l).forEach((function(_){if("default"!==_){var r=Object.getOwnPropertyDescriptor(l,_);Object.defineProperty(e,_,r.get?r:{enumerable:!0,get:function(){return l[_]}})}})),e.default=l,Object.freeze(e)}Object.defineProperty(exports,"__esModule",{value:!0});var e=l(require("evokit")),_={"ek-scroll":"m6Vr5","ek-scroll__item":"bfetG","ek-scroll__item_blackhole_width-fit-content":"k-fNo","ek-scroll__item_blackhole_width-max-content":"s8gGl","ek-scroll_padding_xxs":"_9vZpV","ek-scroll_padding_xs":"L5kMA","ek-scroll_padding_s":"Nr3Ig","ek-scroll_padding_m":"hcRCz","ek-scroll_padding_l":"SKeiS","ek-scroll_padding_xl":"MG4J-","ek-scroll_padding_xxl":"m8ou2","ek-scroll_padding_3xl":"xy72W","ek-scroll_padding_4xl":"gzW-I","ek-scroll_padding_5xl":"JErmt","ek-scroll_column_1":"n5mTi","ek-scroll_column_2":"GqdmF","ek-scroll_column_3":"DKZCp","ek-scroll_column_4":"-Nf-L","ek-scroll_column_5":"OxDq-","ek-scroll_column_6":"wP8Pu","ek-scroll_column_7":"-ZDSB","ek-scroll_column_8":"PnnsU","ek-scroll_column_9":"DDqgb","ek-scroll_column_10":"Hh-uZ","ek-scroll_gap_xxs":"_15vfK","ek-scroll_gap_xs":"Kvr2J","ek-scroll_gap_s":"_71-or","ek-scroll_gap_m":"glUvB","ek-scroll_gap_l":"pQC7Z","ek-scroll_gap_xl":"L1iAD","ek-scroll_gap_xxl":"wVNm-","ek-scroll_gap_3xl":"_4tQXK","ek-scroll_gap_4xl":"_1-5dw","ek-scroll_gap_5xl":"ym2qM","ek-scroll_bar_none":"c1gVV","ek-scroll_bar_auto":"-TbaH","ek-scroll_align_normal":"zoDjM","ek-scroll_align_start":"_4mACC","ek-scroll_align_center":"_3PWHW","ek-scroll_align_end":"AwLLA"},r=e.createBlock("ul","scroll",["align","bar","column","gap","padding"],{css:_}),o=e.createBlock("li","scroll__item",[],{css:_});r.Item=o,exports.Scroll=r,exports.ScrollItem=o,require("./style.production.css");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Scroll__ek-scroll___m6Vr5{display:flex;flex-wrap:nowrap;flex-direction:row;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;list-style:none;padding:0;margin:0;box-sizing:border-box}.Scroll__ek-scroll___m6Vr5::after,.Scroll__ek-scroll___m6Vr5::before{content:"";align-self:normal}.Scroll__ek-scroll__item___bfetG{margin:0;padding:0;flex:0 0 auto;box-sizing:border-box}.Scroll__ek-scroll__item_blackhole_width-fit-content___k-fNo{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.Scroll__ek-scroll__item_blackhole_width-max-content___s8gGl{width:-webkit-max-content;width:-moz-max-content;width:max-content}.Scroll__ek-scroll_padding_xxs___9vZpV::after,.Scroll__ek-scroll_padding_xxs___9vZpV::before{flex:0 0 var(--pds-spacing-xxs)}.Scroll__ek-scroll_padding_xs___L5kMA::after,.Scroll__ek-scroll_padding_xs___L5kMA::before{flex:0 0 var(--pds-spacing-xs)}.Scroll__ek-scroll_padding_s___Nr3Ig::after,.Scroll__ek-scroll_padding_s___Nr3Ig::before{flex:0 0 var(--pds-spacing-s)}.Scroll__ek-scroll_padding_m___hcRCz::after,.Scroll__ek-scroll_padding_m___hcRCz::before{flex:0 0 var(--pds-spacing-m)}.Scroll__ek-scroll_padding_l___SKeiS::after,.Scroll__ek-scroll_padding_l___SKeiS::before{flex:0 0 var(--pds-spacing-l)}.Scroll__ek-scroll_padding_xl___MG4J-::after,.Scroll__ek-scroll_padding_xl___MG4J-::before{flex:0 0 var(--pds-spacing-xl)}.Scroll__ek-scroll_padding_xxl___m8ou2::after,.Scroll__ek-scroll_padding_xxl___m8ou2::before{flex:0 0 var(--pds-spacing-xxl)}.Scroll__ek-scroll_padding_3xl___xy72W::after,.Scroll__ek-scroll_padding_3xl___xy72W::before{flex:0 0 var(--pds-spacing-3xl)}.Scroll__ek-scroll_padding_4xl___gzW-I::after,.Scroll__ek-scroll_padding_4xl___gzW-I::before{flex:0 0 var(--pds-spacing-4xl)}.Scroll__ek-scroll_padding_5xl___JErmt::after,.Scroll__ek-scroll_padding_5xl___JErmt::before{flex:0 0 var(--pds-spacing-5xl)}.Scroll__ek-scroll_column_1___n5mTi>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/1);min-width:0}.Scroll__ek-scroll_column_2___GqdmF>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/2);min-width:0}.Scroll__ek-scroll_column_3___DKZCp>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/3);min-width:0}.Scroll__ek-scroll_column_4___-Nf-L>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/4);min-width:0}.Scroll__ek-scroll_column_5___OxDq->.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/5);min-width:0}.Scroll__ek-scroll_column_6___wP8Pu>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/6);min-width:0}.Scroll__ek-scroll_column_7___-ZDSB>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/7);min-width:0}.Scroll__ek-scroll_column_8___PnnsU>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/8);min-width:0}.Scroll__ek-scroll_column_9___DDqgb>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/9);min-width:0}.Scroll__ek-scroll_column_10___Hh-uZ>.Scroll__ek-scroll__item___bfetG{flex-basis:calc(100%/10);min-width:0}.Scroll__ek-scroll_gap_xxs___15vfK>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-xxs)}.Scroll__ek-scroll_gap_xs___Kvr2J>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-xs)}.Scroll__ek-scroll_gap_s___71-or>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-s)}.Scroll__ek-scroll_gap_m___glUvB>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-m)}.Scroll__ek-scroll_gap_l___pQC7Z>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-l)}.Scroll__ek-scroll_gap_xl___L1iAD>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-xl)}.Scroll__ek-scroll_gap_xxl___wVNm->.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-xxl)}.Scroll__ek-scroll_gap_3xl___4tQXK>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-3xl)}.Scroll__ek-scroll_gap_4xl___1-5dw>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-4xl)}.Scroll__ek-scroll_gap_5xl___ym2qM>.Scroll__ek-scroll__item___bfetG+.Scroll__ek-scroll__item___bfetG{margin-left:var(--pds-spacing-5xl)}.Scroll__ek-scroll_bar_none___c1gVV{-ms-overflow-style:none;scrollbar-width:none}.Scroll__ek-scroll_bar_none___c1gVV::-webkit-scrollbar{display:none}.Scroll__ek-scroll_bar_auto___-TbaH{-ms-overflow-style:auto;scrollbar-width:auto}.Scroll__ek-scroll_bar_auto___-TbaH::-webkit-scrollbar{display:auto}.Scroll__ek-scroll_align_normal___zoDjM{align-items:normal}.Scroll__ek-scroll_align_start___4mACC{align-items:flex-start}.Scroll__ek-scroll_align_center___3PWHW{align-items:center}.Scroll__ek-scroll_align_end___AwLLA{align-items:flex-end}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.m6Vr5{display:flex;flex-wrap:nowrap;flex-direction:row;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;list-style:none;padding:0;margin:0;box-sizing:border-box}.m6Vr5::after,.m6Vr5::before{content:"";align-self:normal}.bfetG{margin:0;padding:0;flex:0 0 auto;box-sizing:border-box}.k-fNo{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.s8gGl{width:-webkit-max-content;width:-moz-max-content;width:max-content}._9vZpV::after,._9vZpV::before{flex:0 0 var(--pds-spacing-xxs)}.L5kMA::after,.L5kMA::before{flex:0 0 var(--pds-spacing-xs)}.Nr3Ig::after,.Nr3Ig::before{flex:0 0 var(--pds-spacing-s)}.hcRCz::after,.hcRCz::before{flex:0 0 var(--pds-spacing-m)}.SKeiS::after,.SKeiS::before{flex:0 0 var(--pds-spacing-l)}.MG4J-::after,.MG4J-::before{flex:0 0 var(--pds-spacing-xl)}.m8ou2::after,.m8ou2::before{flex:0 0 var(--pds-spacing-xxl)}.xy72W::after,.xy72W::before{flex:0 0 var(--pds-spacing-3xl)}.gzW-I::after,.gzW-I::before{flex:0 0 var(--pds-spacing-4xl)}.JErmt::after,.JErmt::before{flex:0 0 var(--pds-spacing-5xl)}.n5mTi>.bfetG{flex-basis:calc(100%/1);min-width:0}.GqdmF>.bfetG{flex-basis:calc(100%/2);min-width:0}.DKZCp>.bfetG{flex-basis:calc(100%/3);min-width:0}.-Nf-L>.bfetG{flex-basis:calc(100%/4);min-width:0}.OxDq->.bfetG{flex-basis:calc(100%/5);min-width:0}.wP8Pu>.bfetG{flex-basis:calc(100%/6);min-width:0}.-ZDSB>.bfetG{flex-basis:calc(100%/7);min-width:0}.PnnsU>.bfetG{flex-basis:calc(100%/8);min-width:0}.DDqgb>.bfetG{flex-basis:calc(100%/9);min-width:0}.Hh-uZ>.bfetG{flex-basis:calc(100%/10);min-width:0}._15vfK>.bfetG+.bfetG{margin-left:var(--pds-spacing-xxs)}.Kvr2J>.bfetG+.bfetG{margin-left:var(--pds-spacing-xs)}._71-or>.bfetG+.bfetG{margin-left:var(--pds-spacing-s)}.glUvB>.bfetG+.bfetG{margin-left:var(--pds-spacing-m)}.pQC7Z>.bfetG+.bfetG{margin-left:var(--pds-spacing-l)}.L1iAD>.bfetG+.bfetG{margin-left:var(--pds-spacing-xl)}.wVNm->.bfetG+.bfetG{margin-left:var(--pds-spacing-xxl)}._4tQXK>.bfetG+.bfetG{margin-left:var(--pds-spacing-3xl)}._1-5dw>.bfetG+.bfetG{margin-left:var(--pds-spacing-4xl)}.ym2qM>.bfetG+.bfetG{margin-left:var(--pds-spacing-5xl)}.c1gVV{-ms-overflow-style:none;scrollbar-width:none}.c1gVV::-webkit-scrollbar{display:none}.-TbaH{-ms-overflow-style:auto;scrollbar-width:auto}.-TbaH::-webkit-scrollbar{display:auto}.zoDjM{align-items:normal}._4mACC{align-items:flex-start}._3PWHW{align-items:center}.AwLLA{align-items:flex-end}
|
package/Scroll/index.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type ScrollProps = React.ComponentProps<"ul"> & {
|
|
3
|
+
/** Скрыть/показать полосу прокрутки */
|
|
4
|
+
'scroll-bar'?: 'none' | 'auto';
|
|
5
|
+
/** Выравнивание ячеек по горизонтальной оси */
|
|
6
|
+
'scroll-align'?: 'start' | 'center' | 'end' | 'normal';
|
|
7
|
+
/** Количество видимых ячеек */
|
|
8
|
+
'scroll-column'?: '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10';
|
|
9
|
+
/** Отступ между ячейками */
|
|
10
|
+
'scroll-gap'?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl';
|
|
11
|
+
/** Внутренний отступ контейнера по бокам */
|
|
12
|
+
'scroll-padding'?: 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl';
|
|
13
|
+
};
|
|
14
|
+
export declare type ScrollItemProps = React.ComponentProps<"li">;
|
|
15
|
+
export declare const Scroll: React.FC<ScrollProps> & {
|
|
16
|
+
Item: any;
|
|
17
|
+
};
|
|
18
|
+
export declare const ScrollItem: React.FC<ScrollItemProps>;
|