@qiwi/pijma-mobile 1.166.2 → 1.167.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 +12 -25
- 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/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 +6 -6
- package/target/es5/custom-alert/CustomAlert.js +3 -3
- package/target/es5/details/Details.js +2 -2
- package/target/es5/drop-up/DropUp.js +11 -11
- 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 +2 -2
- package/target/es5/header/HeaderMenu.js +11 -11
- package/target/es5/hint/Hint.js +3 -3
- package/target/es5/input-modal/InputModal.js +5 -5
- 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 +13 -13
- package/target/es5/menu/MenuCaption.js +2 -2
- package/target/es5/menu/MenuContainer.js +2 -2
- package/target/es5/menu/MenuItem.js +6 -3
- package/target/es5/menu/MenuLink.js +2 -2
- package/target/es5/modal/SimpleModal.js +10 -10
- 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 +6 -6
- package/target/es5/pagination/PaginationLink.js +2 -2
- package/target/es5/password-field/PasswordField.js +2 -2
- package/target/es5/phone-field/PhoneField.js +4 -4
- 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 +5 -3
- package/target/es5/status/Status.js +2 -2
- package/target/es5/suggest-field/SuggestField.js +6 -6
- 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
|
@@ -23,19 +23,19 @@ var translate3d = {
|
|
|
23
23
|
bottom: '0, 100%, 0',
|
|
24
24
|
left: '-100%, 0, 0'
|
|
25
25
|
};
|
|
26
|
-
var defaultProps = function(direction) {
|
|
26
|
+
var defaultProps = function defaultProps(direction) {
|
|
27
27
|
return {
|
|
28
28
|
timeout: {
|
|
29
29
|
enter: 300,
|
|
30
30
|
exit: 100
|
|
31
31
|
},
|
|
32
|
-
enterClassName: function(timeout) {
|
|
32
|
+
enterClassName: function enterClassName(timeout) {
|
|
33
33
|
return (0, _pijmacore.css)({
|
|
34
34
|
transform: 'translate3d(0, 0, 0)',
|
|
35
35
|
transition: "transform " + (timeout - 1) + "ms cubic-bezier(0.4, 0.0, 0.2, 1) 1ms"
|
|
36
36
|
});
|
|
37
37
|
},
|
|
38
|
-
exitClassName: function(timeout) {
|
|
38
|
+
exitClassName: function exitClassName(timeout) {
|
|
39
39
|
return (0, _pijmacore.css)({
|
|
40
40
|
transform: "translate3d(" + translate3d[direction] + ")",
|
|
41
41
|
transition: "transform " + (timeout - 1) + "ms cubic-bezier(0.4, 0.0, 0.2, 1) 1ms"
|
|
@@ -43,19 +43,19 @@ var defaultProps = function(direction) {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
var ContentTransitionTop = function(props) {
|
|
46
|
+
var ContentTransitionTop = function ContentTransitionTop(props) {
|
|
47
47
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('top')));
|
|
48
48
|
};
|
|
49
49
|
ContentTransitionTop.displayName = 'ContentTransitionTop';
|
|
50
|
-
var ContentTransitionRight = function(props) {
|
|
50
|
+
var ContentTransitionRight = function ContentTransitionRight(props) {
|
|
51
51
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('right')));
|
|
52
52
|
};
|
|
53
53
|
ContentTransitionRight.displayName = 'ContentTransitionRight';
|
|
54
|
-
var ContentTransitionBottom = function(props) {
|
|
54
|
+
var ContentTransitionBottom = function ContentTransitionBottom(props) {
|
|
55
55
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('bottom')));
|
|
56
56
|
};
|
|
57
57
|
ContentTransitionBottom.displayName = 'ContentTransitionBottom';
|
|
58
|
-
var ContentTransitionLeft = function(props) {
|
|
58
|
+
var ContentTransitionLeft = function ContentTransitionLeft(props) {
|
|
59
59
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('left')));
|
|
60
60
|
};
|
|
61
61
|
ContentTransitionLeft.displayName = 'ContentTransitionLeft';
|
|
@@ -65,8 +65,8 @@ var ContentTransition = {
|
|
|
65
65
|
bottom: ContentTransitionBottom,
|
|
66
66
|
left: ContentTransitionLeft
|
|
67
67
|
};
|
|
68
|
-
var HeaderMenu = function(
|
|
69
|
-
var show =
|
|
68
|
+
var HeaderMenu = function HeaderMenu(_0) {
|
|
69
|
+
var show = _0.show, _0_zIndex = _0.zIndex, zIndex = _0_zIndex === void 0 ? 9999 : _0_zIndex, header = _0.header, from = _0.from, stub = _0.stub, onShow = _0.onShow, onHide = _0.onHide, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
70
70
|
"show",
|
|
71
71
|
"zIndex",
|
|
72
72
|
"header",
|
|
@@ -111,7 +111,7 @@ var HeaderMenu = function(_param) {
|
|
|
111
111
|
onHide: onHide,
|
|
112
112
|
containerClassName: containerClassName,
|
|
113
113
|
transition: ContentTransition[from],
|
|
114
|
-
renderDialog: function(dialogProps) {
|
|
114
|
+
renderDialog: function renderDialog(dialogProps) {
|
|
115
115
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
116
116
|
type: "fixed",
|
|
117
117
|
zIndex: zIndex,
|
|
@@ -123,7 +123,7 @@ var HeaderMenu = function(_param) {
|
|
|
123
123
|
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.OffsetScrollControl, {
|
|
124
124
|
content: children,
|
|
125
125
|
top: "8px",
|
|
126
|
-
children: function(renderProps) {
|
|
126
|
+
children: function children(renderProps) {
|
|
127
127
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.FlexCard, {
|
|
128
128
|
display: "flex",
|
|
129
129
|
direction: "column",
|
package/target/es5/hint/Hint.js
CHANGED
|
@@ -16,8 +16,8 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
17
17
|
var _modal = require("../modal/index.js");
|
|
18
18
|
var _typography = require("../typography/index.js");
|
|
19
|
-
var Hint = function(
|
|
20
|
-
var children =
|
|
19
|
+
var Hint = function Hint(_0) {
|
|
20
|
+
var children = _0.children, show = _0.show, onShow = _0.onShow, onHide = _0.onHide, rest = _object_without_properties_loose._(_0, [
|
|
21
21
|
"children",
|
|
22
22
|
"show",
|
|
23
23
|
"onShow",
|
|
@@ -26,7 +26,7 @@ var Hint = function(_param) {
|
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.HintControl, {
|
|
27
27
|
show: show,
|
|
28
28
|
onShow: onShow,
|
|
29
|
-
children: function(renderProps) {
|
|
29
|
+
children: function children1(renderProps) {
|
|
30
30
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.Fragment, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
31
31
|
children: [
|
|
32
32
|
/*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
@@ -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, -100%, 0)',
|
|
@@ -38,7 +38,7 @@ var ContentTransition = function(props) {
|
|
|
38
38
|
ContentTransition.displayName = 'ContentTransition';
|
|
39
39
|
var PosFlexCard = (0, _pijmacore.styled)(_pijmacore.CardPos)().withComponent(_pijmacore.Flex);
|
|
40
40
|
PosFlexCard.displayName = 'PosFlexCard';
|
|
41
|
-
var InputModal = function(props) {
|
|
41
|
+
var InputModal = function InputModal(props) {
|
|
42
42
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Modal, {
|
|
43
43
|
show: props.show,
|
|
44
44
|
onShow: props.onShow,
|
|
@@ -46,7 +46,7 @@ var InputModal = function(props) {
|
|
|
46
46
|
onEscapeKeyDown: props.onEscape,
|
|
47
47
|
transition: ContentTransition,
|
|
48
48
|
restoreFocus: false,
|
|
49
|
-
renderDialog: function(dialogProps) {
|
|
49
|
+
renderDialog: function renderDialog(dialogProps) {
|
|
50
50
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
51
51
|
type: "fixed",
|
|
52
52
|
zIndex: 10050,
|
|
@@ -15,7 +15,7 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
16
|
var BlockLnk = (0, _pijmacore.styled)(_pijmacore.CardLnk)().withComponent(_pijmacore.Block);
|
|
17
17
|
BlockLnk.displayName = 'BlockLnk';
|
|
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)(BlockLnk, _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",
|
|
@@ -122,7 +122,7 @@ var LogoBlockLink = function(_param) {
|
|
|
122
122
|
onClick: props.onClick,
|
|
123
123
|
onFocus: props.onFocus,
|
|
124
124
|
onBlur: props.onBlur,
|
|
125
|
-
children: function() {
|
|
125
|
+
children: function children() {
|
|
126
126
|
return props.horizontal ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
127
127
|
p: 4,
|
|
128
128
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Flex, {
|
|
@@ -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: 3,
|
|
28
28
|
l: 3
|
|
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: 6,
|
|
@@ -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: 6,
|
|
@@ -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: 5,
|
|
@@ -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: 4,
|
|
@@ -108,7 +108,7 @@ var h4 = function(param) {
|
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
h4.displayName = 'h4';
|
|
111
|
-
var strong = function(param) {
|
|
111
|
+
var strong = function strong(param) {
|
|
112
112
|
var children = param.children;
|
|
113
113
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
114
114
|
bold: true,
|
|
@@ -116,7 +116,7 @@ var strong = function(param) {
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
strong.displayName = 'strong';
|
|
119
|
-
var del = function(param) {
|
|
119
|
+
var del = function del(param) {
|
|
120
120
|
var children = param.children;
|
|
121
121
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
122
122
|
decoration: "line-through",
|
|
@@ -124,7 +124,7 @@ var del = function(param) {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
del.displayName = 'del';
|
|
127
|
-
var li = function(param) {
|
|
127
|
+
var li = function li(param) {
|
|
128
128
|
var size = param.size, children = param.children;
|
|
129
129
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_react.Fragment, {
|
|
130
130
|
children: _react.Children.map(children, function(child, i) {
|
|
@@ -139,7 +139,7 @@ var li = function(param) {
|
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
li.displayName = 'li';
|
|
142
|
-
var ul = function(param) {
|
|
142
|
+
var ul = function ul(param) {
|
|
143
143
|
var size = param.size, children = param.children;
|
|
144
144
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
145
145
|
mt: SizeMargin[size],
|
|
@@ -151,7 +151,7 @@ var ul = function(param) {
|
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
153
|
ul.displayName = 'ul';
|
|
154
|
-
var ol = function(param) {
|
|
154
|
+
var ol = function ol(param) {
|
|
155
155
|
var size = param.size, start = param.start, children = param.children;
|
|
156
156
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(MarkdownBox, {
|
|
157
157
|
mt: SizeMargin[size],
|
|
@@ -177,7 +177,7 @@ var overrides = {
|
|
|
177
177
|
del: del,
|
|
178
178
|
img: img
|
|
179
179
|
};
|
|
180
|
-
var Markdown = function(param) {
|
|
180
|
+
var Markdown = function Markdown(param) {
|
|
181
181
|
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;
|
|
182
182
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.MarkdownToJSX, {
|
|
183
183
|
children: children,
|
|
@@ -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 MenuCaption = function(
|
|
19
|
-
var text =
|
|
18
|
+
var MenuCaption = function MenuCaption(_0) {
|
|
19
|
+
var text = _0.text, rest = _object_without_properties_loose._(_0, [
|
|
20
20
|
"text"
|
|
21
21
|
]);
|
|
22
22
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, _extends._({
|
|
@@ -14,8 +14,8 @@ 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 MenuContainer = function(
|
|
18
|
-
var children =
|
|
17
|
+
var MenuContainer = function MenuContainer(_0) {
|
|
18
|
+
var children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
19
19
|
"children"
|
|
20
20
|
]);
|
|
21
21
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, _extends._({
|
|
@@ -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), 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_attention = _ref1.attention, attention = _ref_attention === void 0 ? false : _ref_attention, _ref_stub = _ref1.stub, stub = _ref_stub === void 0 ? false : _ref_stub, rest = _object_without_properties_loose._(_ref1, [
|
|
24
27
|
"text",
|
|
25
28
|
"notes",
|
|
26
29
|
"icon",
|
|
@@ -32,7 +35,7 @@ var MenuItem = /*#__PURE__*/ (0, _react.forwardRef)(function(_param, ref) {
|
|
|
32
35
|
"size",
|
|
33
36
|
"attention",
|
|
34
37
|
"stub"
|
|
35
|
-
]);
|
|
38
|
+
]), ref = _rest[0];
|
|
36
39
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Section, _extends._({
|
|
37
40
|
ref: ref,
|
|
38
41
|
active: active,
|
|
@@ -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
|
notes: props.notes,
|
|
38
38
|
text: props.title,
|
|
@@ -14,20 +14,20 @@ 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 ContentTransition = function(props) {
|
|
17
|
+
var ContentTransition = function ContentTransition(props) {
|
|
18
18
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
19
19
|
timeout: {
|
|
20
20
|
enter: 370,
|
|
21
21
|
exit: 250
|
|
22
22
|
},
|
|
23
|
-
enterClassName: function(timeout) {
|
|
23
|
+
enterClassName: function enterClassName(timeout) {
|
|
24
24
|
return (0, _pijmacore.css)({
|
|
25
25
|
opacity: 1,
|
|
26
26
|
transform: 'translate3d(0, 0, 0)',
|
|
27
27
|
transition: "opacity " + timeout + "ms ease, transform " + timeout + "ms ease"
|
|
28
28
|
});
|
|
29
29
|
},
|
|
30
|
-
exitClassName: function(timeout) {
|
|
30
|
+
exitClassName: function exitClassName(timeout) {
|
|
31
31
|
return (0, _pijmacore.css)({
|
|
32
32
|
opacity: 0,
|
|
33
33
|
transform: 'translate3d(0, -100%, 0)',
|
|
@@ -37,19 +37,19 @@ var ContentTransition = function(props) {
|
|
|
37
37
|
}));
|
|
38
38
|
};
|
|
39
39
|
ContentTransition.displayName = 'ContentTransition';
|
|
40
|
-
var BackdropTransition = function(props) {
|
|
40
|
+
var BackdropTransition = function BackdropTransition(props) {
|
|
41
41
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
42
42
|
timeout: {
|
|
43
43
|
enter: 370,
|
|
44
44
|
exit: 250
|
|
45
45
|
},
|
|
46
|
-
enterClassName: function(timeout) {
|
|
46
|
+
enterClassName: function enterClassName(timeout) {
|
|
47
47
|
return (0, _pijmacore.css)({
|
|
48
48
|
opacity: 1,
|
|
49
49
|
transition: "opacity " + timeout + "ms ease"
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
|
-
exitClassName: function(timeout) {
|
|
52
|
+
exitClassName: function exitClassName(timeout) {
|
|
53
53
|
return (0, _pijmacore.css)({
|
|
54
54
|
opacity: 0,
|
|
55
55
|
transition: "opacity " + timeout + "ms ease"
|
|
@@ -58,8 +58,8 @@ var BackdropTransition = function(props) {
|
|
|
58
58
|
}));
|
|
59
59
|
};
|
|
60
60
|
BackdropTransition.displayName = 'BackdropTransition';
|
|
61
|
-
var SimpleModal = function(
|
|
62
|
-
var stub =
|
|
61
|
+
var SimpleModal = function SimpleModal(_0) {
|
|
62
|
+
var stub = _0.stub, children = _0.children, show = _0.show, escapeClose = _0.escapeClose, onShow = _0.onShow, onHide = _0.onHide, backdropClose = _0.backdropClose, _0_zIndex = _0.zIndex, zIndex = _0_zIndex === void 0 ? 10050 : _0_zIndex, closable = _0.closable, rest = _object_without_properties_loose._(_0, [
|
|
63
63
|
"stub",
|
|
64
64
|
"children",
|
|
65
65
|
"show",
|
|
@@ -81,7 +81,7 @@ var SimpleModal = function(_param) {
|
|
|
81
81
|
onBackdropClick: backdropClose ? onHide : undefined,
|
|
82
82
|
transition: ContentTransition,
|
|
83
83
|
backdropTransition: BackdropTransition,
|
|
84
|
-
renderBackdrop: function(backdropProps) {
|
|
84
|
+
renderBackdrop: function renderBackdrop(backdropProps) {
|
|
85
85
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
86
86
|
type: "fixed",
|
|
87
87
|
zIndex: "auto",
|
|
@@ -97,7 +97,7 @@ var SimpleModal = function(_param) {
|
|
|
97
97
|
})
|
|
98
98
|
}));
|
|
99
99
|
},
|
|
100
|
-
renderDialog: function(dialogProps) {
|
|
100
|
+
renderDialog: function renderDialog(dialogProps) {
|
|
101
101
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
102
102
|
type: "fixed",
|
|
103
103
|
top: 0,
|
|
@@ -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, rest = _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, rest = _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 ? 3 : _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',
|
|
@@ -47,7 +47,7 @@ var Pagination = function(_param) {
|
|
|
47
47
|
href: href ? href(renderProps.prev) : undefined,
|
|
48
48
|
stub: stub,
|
|
49
49
|
onClick: renderProps.onPageClick(renderProps.prev, renderProps.active === 1),
|
|
50
|
-
children: function(param) {
|
|
50
|
+
children: function children(param) {
|
|
51
51
|
var disabled = param.disabled;
|
|
52
52
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
53
53
|
name: "angle-small-left",
|
|
@@ -62,7 +62,7 @@ var Pagination = function(_param) {
|
|
|
62
62
|
href: href ? href(page) : undefined,
|
|
63
63
|
stub: stub,
|
|
64
64
|
onClick: renderProps.onPageClick(page, false),
|
|
65
|
-
children: function() {
|
|
65
|
+
children: function children() {
|
|
66
66
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_typography.Text, {
|
|
67
67
|
bold: false,
|
|
68
68
|
size: "m",
|
|
@@ -78,7 +78,7 @@ var Pagination = function(_param) {
|
|
|
78
78
|
href: href ? href(renderProps.next) : undefined,
|
|
79
79
|
stub: stub,
|
|
80
80
|
onClick: renderProps.onPageClick(renderProps.next, renderProps.active === renderProps.total),
|
|
81
|
-
children: function(param) {
|
|
81
|
+
children: function children(param) {
|
|
82
82
|
var disabled = param.disabled;
|
|
83
83
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Icon, {
|
|
84
84
|
name: "angle-small-right",
|
|
@@ -12,11 +12,11 @@ var _interop_require_default = require("@swc/helpers/_/_interop_require_default"
|
|
|
12
12
|
var _jsxruntime = require("react/jsx-runtime");
|
|
13
13
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
14
14
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
15
|
-
var PaginationLink = function(props) {
|
|
15
|
+
var PaginationLink = function PaginationLink(props) {
|
|
16
16
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
17
17
|
href: props.stub ? undefined : props.href,
|
|
18
18
|
onClick: props.stub ? undefined : props.onClick,
|
|
19
|
-
children: function(renderProps) {
|
|
19
|
+
children: function children(renderProps) {
|
|
20
20
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.CardLnk, {
|
|
21
21
|
as: props.stub ? 'div' : 'a',
|
|
22
22
|
transition: "all 100ms cubic-bezier(0.4, 0.0, 0.2, 1)",
|