@qiwi/pijma-desktop 1.167.2 → 1.168.1
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/package.json +11 -24
- package/target/dts/select-field/SelectField.d.ts +1 -0
- package/target/es5/actions/Actions.js +1 -1
- package/target/es5/alert/Alert.js +3 -3
- package/target/es5/alert-block/AlertBlock.js +3 -3
- package/target/es5/annotation/Annotation.js +2 -2
- package/target/es5/block-accordion/BlockAccordion.js +3 -3
- package/target/es5/block-content/BlockContent.js +2 -2
- package/target/es5/block-tabs/BlockTabs.js +3 -3
- package/target/es5/breadcrumbs/Breadcrumbs.js +2 -2
- package/target/es5/button/Button.js +3 -3
- package/target/es5/checkbox/Checkbox.js +2 -2
- package/target/es5/checkbox-field/CheckboxField.js +3 -3
- package/target/es5/code-field/CodeField.js +4 -4
- package/target/es5/content-suggest/ContentSuggest.js +8 -8
- package/target/es5/custom-alert/CustomAlert.js +3 -3
- package/target/es5/details/Details.js +2 -2
- package/target/es5/drop-down/DropDown.js +6 -6
- package/target/es5/extended-progress-bar/ExtendedProgressBar.js +1 -1
- package/target/es5/footer-app/FooterApp.js +4 -4
- package/target/es5/footer-nav/FooterNav.js +2 -2
- package/target/es5/footer-out/FooterOut.js +4 -4
- package/target/es5/glossary/Glossary.js +2 -2
- package/target/es5/header/Header.js +1 -1
- package/target/es5/header-bank-card-link/HeaderBankCardLink.js +2 -2
- package/target/es5/header-drop-down/HeaderDropDown.js +6 -6
- package/target/es5/header-menu/HeaderMenu.js +1 -1
- package/target/es5/header-menu/HeaderMenuItem.js +1 -1
- package/target/es5/header-suggest/HeaderSuggest.js +9 -9
- package/target/es5/hint/Hint.js +11 -11
- package/target/es5/link/BlockLink.js +2 -2
- package/target/es5/link/FileLink.js +2 -2
- package/target/es5/link/Link.js +2 -2
- package/target/es5/link/SectionLink.js +2 -2
- package/target/es5/list/List.js +2 -2
- package/target/es5/logo-block-link/LogoBlockLink.js +3 -3
- package/target/es5/logo-link/LogoLink.js +3 -3
- package/target/es5/markdown/Markdown.js +14 -14
- package/target/es5/menu/MenuItem.js +6 -3
- package/target/es5/menu/MenuLink.js +2 -2
- package/target/es5/modal/SimpleModal.js +9 -9
- package/target/es5/nav-link/NavLink.js +2 -2
- package/target/es5/notice/Notice.js +3 -3
- package/target/es5/oops/Oops.js +2 -2
- package/target/es5/pagination/Pagination.js +8 -8
- package/target/es5/pagination/PaginationLink.js +2 -2
- package/target/es5/password-field/PasswordField.js +2 -2
- package/target/es5/phone-field/PhoneField.js +6 -6
- package/target/es5/progress-bar/ProgressBar.js +2 -2
- package/target/es5/radio-field/RadioField.js +3 -3
- package/target/es5/rating/Rating.js +3 -3
- package/target/es5/select-field/SelectField.js +13 -11
- package/target/es5/status/Status.js +3 -3
- package/target/es5/suggest-field/SuggestField.js +8 -8
- package/target/es5/switch/Switch.js +2 -2
- package/target/es5/switch-field/SwitchField.js +3 -3
- package/target/es5/tabs/Tabs.js +3 -3
- package/target/es5/text-area-field/TextAreaField.js +2 -2
- package/target/es5/text-field/TextField.js +2 -2
- package/target/es5/typography/Caption.js +2 -2
- package/target/es5/typography/Heading.js +2 -2
- package/target/es5/typography/Paragraph.js +2 -2
- package/target/es5/typography/Text.js +2 -2
- package/target/es5/typography/Title.js +2 -2
- package/target/es6/notice/Notice.js +1 -1
- package/target/es6/select-field/SelectField.js +2 -0
- package/target/es6/status/Status.js +1 -1
|
@@ -22,7 +22,7 @@ var HeaderMenuItem = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
22
22
|
onClick: props.onClick,
|
|
23
23
|
onFocus: props.onFocus,
|
|
24
24
|
onBlur: props.onBlur,
|
|
25
|
-
children: function(renderProps) {
|
|
25
|
+
children: function children(renderProps) {
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.PosLnk, {
|
|
27
27
|
role: "menuitem",
|
|
28
28
|
as: props.href ? 'a' : 'div',
|
|
@@ -20,19 +20,19 @@ var _menu = require("../menu/index.js");
|
|
|
20
20
|
var _typography = require("../typography/index.js");
|
|
21
21
|
var CardItem = (0, _pijmacore.styled)(_pijmacore.Card)().withComponent(_menu.MenuItem);
|
|
22
22
|
CardItem.displayName = 'CardItem';
|
|
23
|
-
var ContentTransition = function(props) {
|
|
23
|
+
var ContentTransition = function ContentTransition(props) {
|
|
24
24
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
25
25
|
timeout: {
|
|
26
26
|
enter: 150,
|
|
27
27
|
exit: 150
|
|
28
28
|
},
|
|
29
|
-
enterClassName: function(timeout) {
|
|
29
|
+
enterClassName: function enterClassName(timeout) {
|
|
30
30
|
return (0, _pijmacore.css)({
|
|
31
31
|
opacity: 1,
|
|
32
32
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
33
33
|
});
|
|
34
34
|
},
|
|
35
|
-
exitClassName: function(timeout) {
|
|
35
|
+
exitClassName: function exitClassName(timeout) {
|
|
36
36
|
return (0, _pijmacore.css)({
|
|
37
37
|
opacity: 0,
|
|
38
38
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
@@ -41,10 +41,10 @@ var ContentTransition = function(props) {
|
|
|
41
41
|
}));
|
|
42
42
|
};
|
|
43
43
|
ContentTransition.displayName = 'ContentTransition';
|
|
44
|
-
var HeaderSuggest = function(
|
|
45
|
-
var
|
|
44
|
+
var HeaderSuggest = function HeaderSuggest(_0) {
|
|
45
|
+
var _0_equals = _0.equals, equals = _0_equals === void 0 ? function(a, b) {
|
|
46
46
|
return a === b;
|
|
47
|
-
} :
|
|
47
|
+
} : _0_equals, _0_placeholder = _0.placeholder, placeholder = _0_placeholder === void 0 ? 'Текстовое поле' : _0_placeholder, props = _object_without_properties_loose._(_0, [
|
|
48
48
|
"equals",
|
|
49
49
|
"placeholder"
|
|
50
50
|
]);
|
|
@@ -61,13 +61,13 @@ var HeaderSuggest = function(_param) {
|
|
|
61
61
|
onFocus: props.onFocus,
|
|
62
62
|
onCancel: props.onCancel,
|
|
63
63
|
onSubmit: props.onSubmit,
|
|
64
|
-
children: function(renderProps) {
|
|
64
|
+
children: function children(renderProps) {
|
|
65
65
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.MenuControl, {
|
|
66
66
|
count: renderProps.items.length,
|
|
67
67
|
selected: renderProps.selected,
|
|
68
68
|
onSelect: renderProps.onItemSelect,
|
|
69
69
|
onKeyDown: renderProps.onModalItemKeyDown,
|
|
70
|
-
children: function(menuRenderProps) {
|
|
70
|
+
children: function children(menuRenderProps) {
|
|
71
71
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.Fragment, {
|
|
72
72
|
children: [
|
|
73
73
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
@@ -93,7 +93,7 @@ var HeaderSuggest = function(_param) {
|
|
|
93
93
|
}
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
|
-
children: function(overlayRenderProps) {
|
|
96
|
+
children: function children(overlayRenderProps) {
|
|
97
97
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Pos, {
|
|
98
98
|
type: "absolute",
|
|
99
99
|
top: 0,
|
package/target/es5/hint/Hint.js
CHANGED
|
@@ -15,31 +15,31 @@ var _jsxruntime = require("react/jsx-runtime");
|
|
|
15
15
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
17
|
var _typography = require("../typography/index.js");
|
|
18
|
-
var Transition = function(props) {
|
|
18
|
+
var Transition = function Transition(props) {
|
|
19
19
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
20
20
|
timeout: {
|
|
21
21
|
enter: 150,
|
|
22
22
|
exit: 150
|
|
23
23
|
},
|
|
24
|
-
enteringClassName: function(timeout) {
|
|
24
|
+
enteringClassName: function enteringClassName(timeout) {
|
|
25
25
|
return (0, _pijmacore.css)({
|
|
26
26
|
opacity: 0,
|
|
27
27
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1), transform " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
28
28
|
});
|
|
29
29
|
},
|
|
30
|
-
enteredClassName: function(timeout) {
|
|
30
|
+
enteredClassName: function enteredClassName(timeout) {
|
|
31
31
|
return (0, _pijmacore.css)({
|
|
32
32
|
opacity: 1,
|
|
33
33
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1), transform " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
|
-
exitingClassName: function(timeout) {
|
|
36
|
+
exitingClassName: function exitingClassName(timeout) {
|
|
37
37
|
return (0, _pijmacore.css)({
|
|
38
38
|
opacity: 0,
|
|
39
39
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1), transform " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
40
40
|
});
|
|
41
41
|
},
|
|
42
|
-
exitedClassName: function(timeout) {
|
|
42
|
+
exitedClassName: function exitedClassName(timeout) {
|
|
43
43
|
return (0, _pijmacore.css)({
|
|
44
44
|
opacity: 0,
|
|
45
45
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1), transform " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
@@ -198,8 +198,8 @@ var ArrowProps = {
|
|
|
198
198
|
'auto-start': {},
|
|
199
199
|
'auto-end': {}
|
|
200
200
|
};
|
|
201
|
-
var Hint = function(
|
|
202
|
-
var placement =
|
|
201
|
+
var Hint = function Hint(_0) {
|
|
202
|
+
var placement = _0.placement, children = _0.children, show = _0.show, flip = _0.flip, onShow = _0.onShow, onHide = _0.onHide, rest = _object_without_properties_loose._(_0, [
|
|
203
203
|
"placement",
|
|
204
204
|
"children",
|
|
205
205
|
"show",
|
|
@@ -211,7 +211,7 @@ var Hint = function(_param) {
|
|
|
211
211
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.HintControl, {
|
|
212
212
|
show: show,
|
|
213
213
|
onShow: onShow,
|
|
214
|
-
children: function(renderProps) {
|
|
214
|
+
children: function children1(renderProps) {
|
|
215
215
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
216
216
|
type: "relative",
|
|
217
217
|
ref: renderProps.container,
|
|
@@ -228,10 +228,10 @@ var Hint = function(_param) {
|
|
|
228
228
|
show: renderProps.show,
|
|
229
229
|
flip: flip,
|
|
230
230
|
placement: placement,
|
|
231
|
-
target: function() {
|
|
231
|
+
target: function target() {
|
|
232
232
|
return renderProps.target.current;
|
|
233
233
|
},
|
|
234
|
-
container: function() {
|
|
234
|
+
container: function container() {
|
|
235
235
|
return renderProps.container.current;
|
|
236
236
|
},
|
|
237
237
|
rootClose: true,
|
|
@@ -251,7 +251,7 @@ var Hint = function(_param) {
|
|
|
251
251
|
}
|
|
252
252
|
]
|
|
253
253
|
},
|
|
254
|
-
children: function(overlayRenderProps) {
|
|
254
|
+
children: function children1(overlayRenderProps) {
|
|
255
255
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Pos, _extends._({
|
|
256
256
|
role: "tooltip",
|
|
257
257
|
zIndex: 999,
|
|
@@ -15,7 +15,7 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
16
|
var BlockCardLnk = (0, _pijmacore.styled)(_pijmacore.CardLnk)().withComponent(_pijmacore.Block);
|
|
17
17
|
BlockCardLnk.displayName = 'BlockCardLnk';
|
|
18
|
-
var BlockLink = function(props) {
|
|
18
|
+
var BlockLink = function BlockLink(props) {
|
|
19
19
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
20
20
|
onClick: props.onClick,
|
|
21
21
|
onFocus: props.onFocus,
|
|
@@ -24,7 +24,7 @@ var BlockLink = function(props) {
|
|
|
24
24
|
target: props.target,
|
|
25
25
|
download: props.download,
|
|
26
26
|
rel: props.rel,
|
|
27
|
-
children: function(renderProps) {
|
|
27
|
+
children: function children(renderProps) {
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(BlockCardLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
29
29
|
accent: props.accent,
|
|
30
30
|
hover: renderProps.hover,
|
|
@@ -14,7 +14,7 @@ var _jsxruntime = require("react/jsx-runtime");
|
|
|
14
14
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
16
|
var _typography = require("../typography/index.js");
|
|
17
|
-
var FileLink = function(props) {
|
|
17
|
+
var FileLink = function FileLink(props) {
|
|
18
18
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
19
19
|
onClick: props.onClick,
|
|
20
20
|
onFocus: props.onFocus,
|
|
@@ -23,7 +23,7 @@ var FileLink = function(props) {
|
|
|
23
23
|
target: props.target,
|
|
24
24
|
download: props.download,
|
|
25
25
|
rel: props.rel,
|
|
26
|
-
children: function(renderProps) {
|
|
26
|
+
children: function children(renderProps) {
|
|
27
27
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.FlexLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
28
28
|
tabIndex: props.tabIndex,
|
|
29
29
|
href: props.href,
|
package/target/es5/link/Link.js
CHANGED
|
@@ -43,7 +43,7 @@ var LinkHeightCompact = {
|
|
|
43
43
|
m: 5,
|
|
44
44
|
l: 7
|
|
45
45
|
};
|
|
46
|
-
var Link = function(props) {
|
|
46
|
+
var Link = function Link(props) {
|
|
47
47
|
var theme = (0, _pijmacore.useTheme)();
|
|
48
48
|
return props.stub ? props.size === undefined ? null : /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Stub, {
|
|
49
49
|
top: props.compact ? StubOffSetCompact[props.size] : StubOffSet[props.size],
|
|
@@ -58,7 +58,7 @@ var Link = function(props) {
|
|
|
58
58
|
target: props.target,
|
|
59
59
|
download: props.download,
|
|
60
60
|
rel: props.rel,
|
|
61
|
-
children: function(renderProps) {
|
|
61
|
+
children: function children(renderProps) {
|
|
62
62
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.TypoLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
63
63
|
tabIndex: props.tabIndex,
|
|
64
64
|
href: props.href,
|
|
@@ -15,7 +15,7 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
16
|
var SectionLnk = (0, _pijmacore.styled)(_pijmacore.Lnk)().withComponent(_pijmacore.Section);
|
|
17
17
|
SectionLnk.displayName = 'SectionLnk';
|
|
18
|
-
var SectionLink = function(props) {
|
|
18
|
+
var SectionLink = function SectionLink(props) {
|
|
19
19
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
20
20
|
href: props.href,
|
|
21
21
|
target: props.target,
|
|
@@ -24,7 +24,7 @@ var SectionLink = function(props) {
|
|
|
24
24
|
onClick: props.onClick,
|
|
25
25
|
onFocus: props.onFocus,
|
|
26
26
|
onBlur: props.onBlur,
|
|
27
|
-
children: function(renderProps) {
|
|
27
|
+
children: function children(renderProps) {
|
|
28
28
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(SectionLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
29
29
|
tag: "a",
|
|
30
30
|
flat: props.flat,
|
package/target/es5/list/List.js
CHANGED
|
@@ -60,8 +60,8 @@ var StubBulletIndent = {
|
|
|
60
60
|
m: 2,
|
|
61
61
|
l: 3
|
|
62
62
|
};
|
|
63
|
-
var List = function(
|
|
64
|
-
var
|
|
63
|
+
var List = function List(_0) {
|
|
64
|
+
var _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, type = _0.type, _0_size = _0.size, size = _0_size === void 0 ? 'm' : _0_size, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
65
65
|
"stub",
|
|
66
66
|
"type",
|
|
67
67
|
"size",
|
|
@@ -16,8 +16,8 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
17
|
var _link = require("../link/index.js");
|
|
18
18
|
var _typography = require("../typography/index.js");
|
|
19
|
-
var LogoBlockLink = function(
|
|
20
|
-
var title =
|
|
19
|
+
var LogoBlockLink = function LogoBlockLink(_0) {
|
|
20
|
+
var title = _0.title, icon = _0.icon, description = _0.description, actions = _0.actions, props = _object_without_properties_loose._(_0, [
|
|
21
21
|
"title",
|
|
22
22
|
"icon",
|
|
23
23
|
"description",
|
|
@@ -125,7 +125,7 @@ var LogoBlockLink = function(_param) {
|
|
|
125
125
|
onClick: props.onClick,
|
|
126
126
|
onFocus: props.onFocus,
|
|
127
127
|
onBlur: props.onBlur,
|
|
128
|
-
children: function(param) {
|
|
128
|
+
children: function children(param) {
|
|
129
129
|
var active = param.active, focus = param.focus, hover = param.hover;
|
|
130
130
|
return props.horizontal ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
131
131
|
p: 4,
|
|
@@ -16,8 +16,8 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
17
|
var _link = require("../link/index.js");
|
|
18
18
|
var _typography = require("../typography/index.js");
|
|
19
|
-
var LogoLink = function(
|
|
20
|
-
var title =
|
|
19
|
+
var LogoLink = function LogoLink(_0) {
|
|
20
|
+
var title = _0.title, icon = _0.icon, description = _0.description, horizontal = _0.horizontal, props = _object_without_properties_loose._(_0, [
|
|
21
21
|
"title",
|
|
22
22
|
"icon",
|
|
23
23
|
"description",
|
|
@@ -31,7 +31,7 @@ var LogoLink = function(_param) {
|
|
|
31
31
|
onClick: props.onClick,
|
|
32
32
|
onFocus: props.onFocus,
|
|
33
33
|
onBlur: props.onBlur,
|
|
34
|
-
children: function() {
|
|
34
|
+
children: function children() {
|
|
35
35
|
return horizontal ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
36
36
|
p: 4,
|
|
37
37
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Flex, {
|
|
@@ -27,7 +27,7 @@ var SizeMargin = {
|
|
|
27
27
|
m: 4,
|
|
28
28
|
l: 5
|
|
29
29
|
};
|
|
30
|
-
var p = function(param) {
|
|
30
|
+
var p = function p(param) {
|
|
31
31
|
var children = param.children, size = param.size;
|
|
32
32
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
33
33
|
mt: SizeMargin[size],
|
|
@@ -38,7 +38,7 @@ var p = function(param) {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
p.displayName = 'p';
|
|
41
|
-
var img = function(param) {
|
|
41
|
+
var img = function img(param) {
|
|
42
42
|
var src = param.src, alt = param.alt;
|
|
43
43
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Image, {
|
|
44
44
|
src: src,
|
|
@@ -48,7 +48,7 @@ var img = function(param) {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
img.displayName = 'img';
|
|
51
|
-
var a = function(param) {
|
|
51
|
+
var a = function a(param) {
|
|
52
52
|
var disableLinks = param.disableLinks, title = param.title, href = param.href, size = param.size, children = param.children;
|
|
53
53
|
if (disableLinks) {
|
|
54
54
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
@@ -64,7 +64,7 @@ var a = function(param) {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
a.displayName = 'a';
|
|
67
|
-
var h1 = function(param) {
|
|
67
|
+
var h1 = function h1(param) {
|
|
68
68
|
var children = param.children;
|
|
69
69
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
70
70
|
mt: 11,
|
|
@@ -75,7 +75,7 @@ var h1 = function(param) {
|
|
|
75
75
|
});
|
|
76
76
|
};
|
|
77
77
|
h1.displayName = 'h1';
|
|
78
|
-
var h2 = function(param) {
|
|
78
|
+
var h2 = function h2(param) {
|
|
79
79
|
var children = param.children;
|
|
80
80
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
81
81
|
mt: 11,
|
|
@@ -86,7 +86,7 @@ var h2 = function(param) {
|
|
|
86
86
|
});
|
|
87
87
|
};
|
|
88
88
|
h2.displayName = 'h2';
|
|
89
|
-
var h3 = function(param) {
|
|
89
|
+
var h3 = function h3(param) {
|
|
90
90
|
var children = param.children;
|
|
91
91
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
92
92
|
mt: 8,
|
|
@@ -97,7 +97,7 @@ var h3 = function(param) {
|
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
h3.displayName = 'h3';
|
|
100
|
-
var h4 = function(param) {
|
|
100
|
+
var h4 = function h4(param) {
|
|
101
101
|
var children = param.children;
|
|
102
102
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
103
103
|
mt: 7,
|
|
@@ -108,7 +108,7 @@ var h4 = function(param) {
|
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
h4.displayName = 'h4';
|
|
111
|
-
var h5 = function(param) {
|
|
111
|
+
var h5 = function h5(param) {
|
|
112
112
|
var children = param.children;
|
|
113
113
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
114
114
|
mt: 6,
|
|
@@ -119,7 +119,7 @@ var h5 = function(param) {
|
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
121
|
h5.displayName = 'h5';
|
|
122
|
-
var strong = function(param) {
|
|
122
|
+
var strong = function strong(param) {
|
|
123
123
|
var children = param.children;
|
|
124
124
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
125
125
|
bold: true,
|
|
@@ -127,7 +127,7 @@ var strong = function(param) {
|
|
|
127
127
|
});
|
|
128
128
|
};
|
|
129
129
|
strong.displayName = 'strong';
|
|
130
|
-
var del = function(param) {
|
|
130
|
+
var del = function del(param) {
|
|
131
131
|
var children = param.children;
|
|
132
132
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
133
133
|
decoration: "line-through",
|
|
@@ -135,7 +135,7 @@ var del = function(param) {
|
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
del.displayName = 'del';
|
|
138
|
-
var li = function(param) {
|
|
138
|
+
var li = function li(param) {
|
|
139
139
|
var size = param.size, children = param.children;
|
|
140
140
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Fragment, {
|
|
141
141
|
children: _react.Children.map(children, function(child, i) {
|
|
@@ -150,7 +150,7 @@ var li = function(param) {
|
|
|
150
150
|
});
|
|
151
151
|
};
|
|
152
152
|
li.displayName = 'li';
|
|
153
|
-
var ul = function(param) {
|
|
153
|
+
var ul = function ul(param) {
|
|
154
154
|
var size = param.size, children = param.children;
|
|
155
155
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
156
156
|
mt: SizeMargin[size],
|
|
@@ -162,7 +162,7 @@ var ul = function(param) {
|
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
164
|
ul.displayName = 'ul';
|
|
165
|
-
var ol = function(param) {
|
|
165
|
+
var ol = function ol(param) {
|
|
166
166
|
var size = param.size, start = param.start, children = param.children;
|
|
167
167
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
168
168
|
mt: SizeMargin[size],
|
|
@@ -189,7 +189,7 @@ var overrides = {
|
|
|
189
189
|
del: del,
|
|
190
190
|
img: img
|
|
191
191
|
};
|
|
192
|
-
var Markdown = function(param) {
|
|
192
|
+
var Markdown = function Markdown(param) {
|
|
193
193
|
var _param_size = param.size, size = _param_size === void 0 ? 'm' : _param_size, _param_disableLinks = param.disableLinks, disableLinks = _param_disableLinks === void 0 ? false : _param_disableLinks, children = param.children;
|
|
194
194
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.MarkdownToJSX, {
|
|
195
195
|
children: children,
|
|
@@ -19,8 +19,11 @@ var IconSize = {
|
|
|
19
19
|
s: 6,
|
|
20
20
|
m: 12
|
|
21
21
|
};
|
|
22
|
-
var MenuItem = /*#__PURE__*/ (0, _react.forwardRef)(function(
|
|
23
|
-
var
|
|
22
|
+
var MenuItem = /*#__PURE__*/ (0, _react.forwardRef)(function(_0, _1) {
|
|
23
|
+
var _ref = [
|
|
24
|
+
_0,
|
|
25
|
+
_1
|
|
26
|
+
], _ref1 = _ref[0], _rest = _ref.slice(1), _ref_tag = _ref1.tag, tag = _ref_tag === void 0 ? 'div' : _ref_tag, text = _ref1.text, notes = _ref1.notes, icon = _ref1.icon, _ref_submenu = _ref1.submenu, submenu = _ref_submenu === void 0 ? false : _ref_submenu, _ref_round = _ref1.round, round = _ref_round === void 0 ? false : _ref_round, _ref_hover = _ref1.hover, hover = _ref_hover === void 0 ? false : _ref_hover, _ref_active = _ref1.active, active = _ref_active === void 0 ? false : _ref_active, _ref_focus = _ref1.focus, focus = _ref_focus === void 0 ? false : _ref_focus, _ref_size = _ref1.size, size = _ref_size === void 0 ? 's' : _ref_size, _ref_stub = _ref1.stub, stub = _ref_stub === void 0 ? false : _ref_stub, rest = _object_without_properties_loose._(_ref1, [
|
|
24
27
|
"tag",
|
|
25
28
|
"text",
|
|
26
29
|
"notes",
|
|
@@ -32,7 +35,7 @@ var MenuItem = /*#__PURE__*/ (0, _react.forwardRef)(function(_param, ref) {
|
|
|
32
35
|
"focus",
|
|
33
36
|
"size",
|
|
34
37
|
"stub"
|
|
35
|
-
]);
|
|
38
|
+
]), ref = _rest[0];
|
|
36
39
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Section, _extends._({
|
|
37
40
|
tag: tag,
|
|
38
41
|
ref: ref,
|
|
@@ -16,7 +16,7 @@ var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
|
16
16
|
var _menu = require("../menu/index.js");
|
|
17
17
|
var MenuItemLnk = (0, _pijmacore.styled)(_pijmacore.Lnk)().withComponent(_menu.MenuItem);
|
|
18
18
|
MenuItemLnk.displayName = 'MenuItemLnk';
|
|
19
|
-
var MenuLink = function(props) {
|
|
19
|
+
var MenuLink = function MenuLink(props) {
|
|
20
20
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_menu.MenuItem, {
|
|
21
21
|
stub: true,
|
|
22
22
|
text: props.title,
|
|
@@ -32,7 +32,7 @@ var MenuLink = function(props) {
|
|
|
32
32
|
onClick: props.onClick,
|
|
33
33
|
onFocus: props.onFocus,
|
|
34
34
|
onBlur: props.onBlur,
|
|
35
|
-
children: function(renderProps) {
|
|
35
|
+
children: function children(renderProps) {
|
|
36
36
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MenuItemLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
37
37
|
tag: props.href ? 'a' : undefined,
|
|
38
38
|
notes: props.notes,
|
|
@@ -13,20 +13,20 @@ var _interop_require_default = require("@swc/helpers/_/_interop_require_default"
|
|
|
13
13
|
var _jsxruntime = require("react/jsx-runtime");
|
|
14
14
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
|
-
var ContentTransition = function(props) {
|
|
16
|
+
var ContentTransition = function ContentTransition(props) {
|
|
17
17
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
18
18
|
timeout: {
|
|
19
19
|
enter: 370,
|
|
20
20
|
exit: 250
|
|
21
21
|
},
|
|
22
|
-
enterClassName: function(timeout) {
|
|
22
|
+
enterClassName: function enterClassName(timeout) {
|
|
23
23
|
return (0, _pijmacore.css)({
|
|
24
24
|
opacity: 1,
|
|
25
25
|
transform: 'translate3d(0, 0, 0)',
|
|
26
26
|
transition: "opacity " + timeout + "ms ease, transform " + timeout + "ms ease"
|
|
27
27
|
});
|
|
28
28
|
},
|
|
29
|
-
exitClassName: function(timeout) {
|
|
29
|
+
exitClassName: function exitClassName(timeout) {
|
|
30
30
|
return (0, _pijmacore.css)({
|
|
31
31
|
opacity: 0,
|
|
32
32
|
transform: 'translate3d(0, 35px, 0)',
|
|
@@ -36,19 +36,19 @@ var ContentTransition = function(props) {
|
|
|
36
36
|
}));
|
|
37
37
|
};
|
|
38
38
|
ContentTransition.displayName = 'ContentTransition';
|
|
39
|
-
var BackdropTransition = function(props) {
|
|
39
|
+
var BackdropTransition = function BackdropTransition(props) {
|
|
40
40
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
41
41
|
timeout: {
|
|
42
42
|
enter: 370,
|
|
43
43
|
exit: 250
|
|
44
44
|
},
|
|
45
|
-
enterClassName: function(timeout) {
|
|
45
|
+
enterClassName: function enterClassName(timeout) {
|
|
46
46
|
return (0, _pijmacore.css)({
|
|
47
47
|
opacity: 1,
|
|
48
48
|
transition: "opacity " + timeout + "ms ease"
|
|
49
49
|
});
|
|
50
50
|
},
|
|
51
|
-
exitClassName: function(timeout) {
|
|
51
|
+
exitClassName: function exitClassName(timeout) {
|
|
52
52
|
return (0, _pijmacore.css)({
|
|
53
53
|
opacity: 0,
|
|
54
54
|
transition: "opacity " + timeout + "ms ease"
|
|
@@ -62,7 +62,7 @@ var ModalWidth = {
|
|
|
62
62
|
m: 145,
|
|
63
63
|
l: 170
|
|
64
64
|
};
|
|
65
|
-
var SimpleModal = function(props) {
|
|
65
|
+
var SimpleModal = function SimpleModal(props) {
|
|
66
66
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
67
67
|
display: "none",
|
|
68
68
|
children: props.children
|
|
@@ -73,7 +73,7 @@ var SimpleModal = function(props) {
|
|
|
73
73
|
onHide: props.onHide,
|
|
74
74
|
transition: ContentTransition,
|
|
75
75
|
backdropTransition: BackdropTransition,
|
|
76
|
-
renderBackdrop: function(backdropProps) {
|
|
76
|
+
renderBackdrop: function renderBackdrop(backdropProps) {
|
|
77
77
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
78
78
|
type: "fixed",
|
|
79
79
|
zIndex: 9999,
|
|
@@ -89,7 +89,7 @@ var SimpleModal = function(props) {
|
|
|
89
89
|
})
|
|
90
90
|
}));
|
|
91
91
|
},
|
|
92
|
-
renderDialog: function(dialogProps) {
|
|
92
|
+
renderDialog: function renderDialog(dialogProps) {
|
|
93
93
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
94
94
|
type: "fixed",
|
|
95
95
|
zIndex: 9999,
|
|
@@ -13,7 +13,7 @@ var _interop_require_default = require("@swc/helpers/_/_interop_require_default"
|
|
|
13
13
|
var _jsxruntime = require("react/jsx-runtime");
|
|
14
14
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
|
-
var NavLink = function(props) {
|
|
16
|
+
var NavLink = function NavLink(props) {
|
|
17
17
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Stub, {
|
|
18
18
|
top: 1.5,
|
|
19
19
|
bottom: 1.5,
|
|
@@ -27,7 +27,7 @@ var NavLink = function(props) {
|
|
|
27
27
|
target: props.target,
|
|
28
28
|
download: props.download,
|
|
29
29
|
rel: props.rel,
|
|
30
|
-
children: function(renderProps) {
|
|
30
|
+
children: function children(renderProps) {
|
|
31
31
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.TypoLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
32
32
|
tabIndex: props.tabIndex,
|
|
33
33
|
href: props.href,
|
|
@@ -14,9 +14,9 @@ var _object_without_properties_loose = require("@swc/helpers/_/_object_without_p
|
|
|
14
14
|
var _jsxruntime = require("react/jsx-runtime");
|
|
15
15
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
|
-
var _ = require("../typography
|
|
18
|
-
var Notice = function(
|
|
19
|
-
var icon =
|
|
17
|
+
var _ = require("../typography/index.js");
|
|
18
|
+
var Notice = function Notice(_0) {
|
|
19
|
+
var icon = _0.icon, title = _0.title, children = _0.children, restProps = _object_without_properties_loose._(_0, [
|
|
20
20
|
"icon",
|
|
21
21
|
"title",
|
|
22
22
|
"children"
|
package/target/es5/oops/Oops.js
CHANGED
|
@@ -15,8 +15,8 @@ var _jsxruntime = require("react/jsx-runtime");
|
|
|
15
15
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
17
|
var _typography = require("../typography/index.js");
|
|
18
|
-
var Oops = function(
|
|
19
|
-
var logo =
|
|
18
|
+
var Oops = function Oops(_0) {
|
|
19
|
+
var logo = _0.logo, error = _0.error, title = _0.title, content = _0.content, footer = _0.footer, restProps = _object_without_properties_loose._(_0, [
|
|
20
20
|
"logo",
|
|
21
21
|
"error",
|
|
22
22
|
"title",
|
|
@@ -16,8 +16,8 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
17
17
|
var _typography = require("../typography/index.js");
|
|
18
18
|
var _PaginationLink = require("./PaginationLink.js");
|
|
19
|
-
var Pagination = function(
|
|
20
|
-
var total =
|
|
19
|
+
var Pagination = function Pagination(_0) {
|
|
20
|
+
var total = _0.total, _0_count = _0.count, count = _0_count === void 0 ? 5 : _0_count, _0_shadowed = _0.shadowed, shadowed = _0_shadowed === void 0 ? false : _0_shadowed, active = _0.active, href = _0.href, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, onChange = _0.onChange, rest = _object_without_properties_loose._(_0, [
|
|
21
21
|
"total",
|
|
22
22
|
"count",
|
|
23
23
|
"shadowed",
|
|
@@ -32,7 +32,7 @@ var Pagination = function(_param) {
|
|
|
32
32
|
active: active,
|
|
33
33
|
href: href,
|
|
34
34
|
onChange: onChange,
|
|
35
|
-
children: function(renderProps) {
|
|
35
|
+
children: function children(renderProps) {
|
|
36
36
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Card, _extends._({}, stub ? {} : (0, _pijmacore.getDataProps)(rest), {
|
|
37
37
|
bg: "#fff",
|
|
38
38
|
s: shadowed ? '0 1px 2px 0 rgba(0,0,0,0.12)' : '0 0 0 1px #e6e6e6',
|
|
@@ -49,7 +49,7 @@ var Pagination = function(_param) {
|
|
|
49
49
|
href: href ? href(1) : undefined,
|
|
50
50
|
stub: stub,
|
|
51
51
|
onClick: renderProps.onPageClick(1, renderProps.active === 1),
|
|
52
|
-
children: function(param) {
|
|
52
|
+
children: function children(param) {
|
|
53
53
|
var disabled = param.disabled;
|
|
54
54
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
55
55
|
name: "angle-double-left-small",
|
|
@@ -64,7 +64,7 @@ var Pagination = function(_param) {
|
|
|
64
64
|
href: href ? href(renderProps.prev) : undefined,
|
|
65
65
|
stub: stub,
|
|
66
66
|
onClick: renderProps.onPageClick(renderProps.prev, renderProps.active === 1),
|
|
67
|
-
children: function(param) {
|
|
67
|
+
children: function children(param) {
|
|
68
68
|
var disabled = param.disabled;
|
|
69
69
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
70
70
|
name: "angle-small-left",
|
|
@@ -80,7 +80,7 @@ var Pagination = function(_param) {
|
|
|
80
80
|
href: href ? href(page) : undefined,
|
|
81
81
|
stub: stub,
|
|
82
82
|
onClick: renderProps.onPageClick(page, false),
|
|
83
|
-
children: function() {
|
|
83
|
+
children: function children() {
|
|
84
84
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
85
85
|
bold: false,
|
|
86
86
|
size: "m",
|
|
@@ -97,7 +97,7 @@ var Pagination = function(_param) {
|
|
|
97
97
|
href: href ? href(renderProps.next) : undefined,
|
|
98
98
|
stub: stub,
|
|
99
99
|
onClick: renderProps.onPageClick(renderProps.next, renderProps.active === renderProps.total),
|
|
100
|
-
children: function(param) {
|
|
100
|
+
children: function children(param) {
|
|
101
101
|
var disabled = param.disabled;
|
|
102
102
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
103
103
|
name: "angle-small-right",
|
|
@@ -113,7 +113,7 @@ var Pagination = function(_param) {
|
|
|
113
113
|
href: href ? href(renderProps.total) : undefined,
|
|
114
114
|
stub: stub,
|
|
115
115
|
onClick: renderProps.onPageClick(renderProps.total, renderProps.active === renderProps.total),
|
|
116
|
-
children: function(param) {
|
|
116
|
+
children: function children(param) {
|
|
117
117
|
var disabled = param.disabled;
|
|
118
118
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
119
119
|
name: "angle-double-right-small",
|
|
@@ -13,11 +13,11 @@ var _interop_require_default = require("@swc/helpers/_/_interop_require_default"
|
|
|
13
13
|
var _jsxruntime = require("react/jsx-runtime");
|
|
14
14
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
|
-
var PaginationLink = function(props) {
|
|
16
|
+
var PaginationLink = function PaginationLink(props) {
|
|
17
17
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
18
18
|
href: props.stub ? undefined : props.href,
|
|
19
19
|
onClick: props.stub ? undefined : props.onClick,
|
|
20
|
-
children: function(renderProps) {
|
|
20
|
+
children: function children(renderProps) {
|
|
21
21
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.CardLnk, _extends._({}, props.stub ? {} : (0, _pijmacore.getDataProps)(props), {
|
|
22
22
|
as: props.stub ? 'div' : 'a',
|
|
23
23
|
transition: "all 100ms cubic-bezier(0.4, 0.0, 0.2, 1)",
|