@qiwi/pijma-mobile 1.167.0 → 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/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 +3 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qiwi/pijma-mobile",
|
|
3
|
-
"version": "1.167.
|
|
3
|
+
"version": "1.167.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./target/es5/index.js",
|
|
6
6
|
"module": "./target/es6/index.js",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"build": "concurrently 'npm:build:*' 'npm:guide:build'",
|
|
22
22
|
"start": "concurrently --kill-others --kill-others-on-fail 'npm:guide:start' 'npm:chrome:start'",
|
|
23
23
|
"test": "concurrently --kill-others --kill-others-on-fail --success first 'npm:test:start' 'npm:static:start' 'npm:chrome:start'",
|
|
24
|
-
"build:es5": "
|
|
25
|
-
"build:es6": "
|
|
26
|
-
"build:dts": "tsc
|
|
24
|
+
"build:es5": "yarn build:swc:es5",
|
|
25
|
+
"build:es6": "yarn build:swc:es6",
|
|
26
|
+
"build:dts": "yarn build:tsc",
|
|
27
27
|
"guide:build": "styleguidist --config styleguide.config.cjs build",
|
|
28
28
|
"guide:start": "styleguidist --config styleguide.config.cjs server",
|
|
29
29
|
"static:start": "docker run --rm -p 7070:80 -v $(pwd)/target/webapp:/usr/share/nginx/html nginx@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43",
|
|
30
30
|
"chrome:start": "docker run --rm -p 7171:3000 --add-host=host.docker.internal:host-gateway browserless/chrome@sha256:4655517b70d598367f363e15fa311ea514879f6b4908ba9199d6714d6f8269a3",
|
|
31
31
|
"test:start": "wait-on http-get://localhost:7070/ http-get://localhost:7171/ && styleguidist-visual test --config styleguide.visual.config.cjs",
|
|
32
32
|
"test:approve": "styleguidist-visual approve --config styleguide.visual.config.cjs",
|
|
33
|
-
"format": "
|
|
34
|
-
"lint": "eslint
|
|
33
|
+
"format": "yarn fmt",
|
|
34
|
+
"lint": "yarn lint:eslint"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"target/dts",
|
|
@@ -39,34 +39,21 @@
|
|
|
39
39
|
"target/es6"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@qiwi/pijma-core": "1.165.
|
|
43
|
-
"@swc/helpers": "^0.5.
|
|
42
|
+
"@qiwi/pijma-core": "1.165.1",
|
|
43
|
+
"@swc/helpers": "^0.5.21"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@qiwi/pijma-infra": "1.11.3",
|
|
47
47
|
"concurrently": "8.2.2",
|
|
48
|
-
"
|
|
49
|
-
"eslint": "8.40.0",
|
|
50
|
-
"eslint-config-qiwi": "1.17.6",
|
|
51
|
-
"fast-glob": "3.3.3",
|
|
52
|
-
"file-loader": "6.2.0",
|
|
53
|
-
"prettier": "2.8.8",
|
|
54
|
-
"prettier-config-qiwi": "1.7.2",
|
|
55
|
-
"react-docgen-typescript": "patch:react-docgen-typescript@npm%3A2.2.2#~/.yarn/patches/react-docgen-typescript-npm-2.2.2-afb9698a32.patch",
|
|
56
|
-
"react-styleguidist": "12.0.1",
|
|
57
|
-
"react-styleguidist-visual": "patch:react-styleguidist-visual@npm%3A0.9.0#~/.yarn/patches/react-styleguidist-visual-npm-0.9.0-c05bb39789.patch",
|
|
58
|
-
"style-loader": "3.3.2",
|
|
59
|
-
"tsc-esm-fix": "2.20.13",
|
|
60
|
-
"typescript": "4.9.5",
|
|
61
|
-
"wait-on": "8.0.4",
|
|
62
|
-
"webpack": "5.101.0"
|
|
48
|
+
"wait-on": "8.0.5"
|
|
63
49
|
},
|
|
64
50
|
"repository": {
|
|
65
51
|
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/qiwi/pijma.git"
|
|
52
|
+
"url": "git+https://github.com/qiwi/pijma.git",
|
|
53
|
+
"directory": "packages/mobile"
|
|
67
54
|
},
|
|
68
55
|
"bugs": {
|
|
69
56
|
"url": "https://github.com/qiwi/pijma/issues"
|
|
70
57
|
},
|
|
71
|
-
"homepage": "https://github.com/qiwi/pijma
|
|
58
|
+
"homepage": "https://github.com/qiwi/pijma/tree/master/packages/mobile#readme"
|
|
72
59
|
}
|
|
@@ -13,7 +13,7 @@ var _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcar
|
|
|
13
13
|
var _jsxruntime = require("react/jsx-runtime");
|
|
14
14
|
var _pijmacore = require("@qiwi/pijma-core");
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
16
|
-
var Actions = function(props) {
|
|
16
|
+
var Actions = function Actions(props) {
|
|
17
17
|
var elements = _react.Children.toArray(props.children).filter(function(child) {
|
|
18
18
|
return !!child;
|
|
19
19
|
});
|
|
@@ -28,8 +28,8 @@ var AlertIconName = {
|
|
|
28
28
|
failure: 'attention',
|
|
29
29
|
general: 'info'
|
|
30
30
|
};
|
|
31
|
-
var Alert = function(
|
|
32
|
-
var
|
|
31
|
+
var Alert = function Alert(_0) {
|
|
32
|
+
var _0_type = _0.type, type = _0_type === void 0 ? 'general' : _0_type, text = _0.text, action = _0.action, onHide = _0.onHide, onClick = _0.onClick, rest = _object_without_properties_loose._(_0, [
|
|
33
33
|
"type",
|
|
34
34
|
"text",
|
|
35
35
|
"action",
|
|
@@ -38,7 +38,7 @@ var Alert = function(_param) {
|
|
|
38
38
|
]);
|
|
39
39
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.AlertControl, {
|
|
40
40
|
onHide: onHide,
|
|
41
|
-
children: function(renderProps) {
|
|
41
|
+
children: function children(renderProps) {
|
|
42
42
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Flex, _extends._({
|
|
43
43
|
minHeight: 14,
|
|
44
44
|
justify: "flex-start",
|
|
@@ -55,8 +55,8 @@ var AlertBlockIcon = {
|
|
|
55
55
|
bg: '#fff'
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
var AlertBlock = function(
|
|
59
|
-
var children =
|
|
58
|
+
var AlertBlock = function AlertBlock(_0) {
|
|
59
|
+
var children = _0.children, icon = _0.icon, type = _0.type, onHide = _0.onHide, rest = _object_without_properties_loose._(_0, [
|
|
60
60
|
"children",
|
|
61
61
|
"icon",
|
|
62
62
|
"type",
|
|
@@ -88,7 +88,7 @@ var AlertBlock = function(_param) {
|
|
|
88
88
|
}) : null;
|
|
89
89
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.AlertBlockControl, {
|
|
90
90
|
onHide: onHide,
|
|
91
|
-
children: function(renderProps) {
|
|
91
|
+
children: function children1(renderProps) {
|
|
92
92
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Block, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
93
93
|
bg: AlertBlockBackground[type],
|
|
94
94
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.FlexPos, {
|
|
@@ -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 BlockAccordion = function(
|
|
19
|
-
var items =
|
|
18
|
+
var BlockAccordion = function BlockAccordion(_0) {
|
|
19
|
+
var items = _0.items, _0_tabIndex = _0.tabIndex, tabIndex = _0_tabIndex === void 0 ? 0 : _0_tabIndex, opened = _0.opened, onChange = _0.onChange, rest = _object_without_properties_loose._(_0, [
|
|
20
20
|
"items",
|
|
21
21
|
"tabIndex",
|
|
22
22
|
"opened",
|
|
@@ -26,7 +26,7 @@ var BlockAccordion = function(_param) {
|
|
|
26
26
|
items: items,
|
|
27
27
|
opened: opened,
|
|
28
28
|
onChange: onChange,
|
|
29
|
-
children: function(renderProps) {
|
|
29
|
+
children: function children(renderProps) {
|
|
30
30
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
31
31
|
py: 2,
|
|
32
32
|
children: renderProps.items.map(function(item, index) {
|
|
@@ -18,8 +18,8 @@ var BlockContentIdent = {
|
|
|
18
18
|
m: 4,
|
|
19
19
|
l: 6
|
|
20
20
|
};
|
|
21
|
-
var BlockContent = function(
|
|
22
|
-
var
|
|
21
|
+
var BlockContent = function BlockContent(_0) {
|
|
22
|
+
var _0_indent = _0.indent, indent = _0_indent === void 0 ? 'm' : _0_indent, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
23
23
|
"indent",
|
|
24
24
|
"children"
|
|
25
25
|
]);
|
|
@@ -40,8 +40,8 @@ var FlexOverflow = (0, _pijmacore.styled)(_pijmacore.Flex)({
|
|
|
40
40
|
FlexOverflow.displayName = 'FlexOverflow';
|
|
41
41
|
var TabContent = (0, _pijmacore.styled)(_pijmacore.FlexItem)();
|
|
42
42
|
TabContent.displayName = 'TabContent';
|
|
43
|
-
var BlockTabs = function(
|
|
44
|
-
var items =
|
|
43
|
+
var BlockTabs = function BlockTabs(_0) {
|
|
44
|
+
var items = _0.items, _0_select = _0.select, select = _0_select === void 0 ? 0 : _0_select, _0_tabIndex = _0.tabIndex, tabIndex = _0_tabIndex === void 0 ? 0 : _0_tabIndex, _0_vertical = _0.vertical, vertical = _0_vertical === void 0 ? false : _0_vertical, _0_centered = _0.centered, centered = _0_centered === void 0 ? false : _0_centered, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, _0_hr = _0.hr, hr = _0_hr === void 0 ? true : _0_hr, _0_indent = _0.indent, indent = _0_indent === void 0 ? 'm' : _0_indent, pt = _0.pt, pb = _0.pb, onChange = _0.onChange, rest = _object_without_properties_loose._(_0, [
|
|
45
45
|
"items",
|
|
46
46
|
"select",
|
|
47
47
|
"tabIndex",
|
|
@@ -119,7 +119,7 @@ var BlockTabs = function(_param) {
|
|
|
119
119
|
select: select,
|
|
120
120
|
length: items.length,
|
|
121
121
|
onChange: onChange,
|
|
122
|
-
children: function(renderProps) {
|
|
122
|
+
children: function children(renderProps) {
|
|
123
123
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
124
124
|
type: "relative",
|
|
125
125
|
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Flex, {
|
|
@@ -16,8 +16,8 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
16
16
|
var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
17
17
|
var _navlink = require("../nav-link/index.js");
|
|
18
18
|
var _typography = require("../typography/index.js");
|
|
19
|
-
var Breadcrumbs = function(
|
|
20
|
-
var
|
|
19
|
+
var Breadcrumbs = function Breadcrumbs(_0) {
|
|
20
|
+
var _0_children = _0.children, children = _0_children === void 0 ? [] : _0_children, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
21
21
|
"children",
|
|
22
22
|
"stub"
|
|
23
23
|
]);
|
|
@@ -58,9 +58,9 @@ var stubWidth = {
|
|
|
58
58
|
normal: 21,
|
|
59
59
|
minor: 19
|
|
60
60
|
};
|
|
61
|
-
var Button = function(props) {
|
|
62
|
-
var theme = (0, _pijmacore.useTheme)();
|
|
61
|
+
var Button = function Button(props) {
|
|
63
62
|
var _props_radius;
|
|
63
|
+
var theme = (0, _pijmacore.useTheme)();
|
|
64
64
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Card, {
|
|
65
65
|
width: !props.icon || props.text ? 1 : buttonSize[props.size],
|
|
66
66
|
height: buttonSize[props.size],
|
|
@@ -101,7 +101,7 @@ var Button = function(props) {
|
|
|
101
101
|
onClick: props.onClick,
|
|
102
102
|
onFocus: props.onFocus,
|
|
103
103
|
onBlur: props.onBlur,
|
|
104
|
-
children: function(renderProps) {
|
|
104
|
+
children: function children(renderProps) {
|
|
105
105
|
var _props_radius;
|
|
106
106
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Btn, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
107
107
|
disabled: props.disabled,
|
|
@@ -13,12 +13,12 @@ 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 Checkbox = function(props) {
|
|
16
|
+
var Checkbox = function Checkbox(props) {
|
|
17
17
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SwitchControl, {
|
|
18
18
|
disabled: props.disabled,
|
|
19
19
|
checked: props.checked,
|
|
20
20
|
onChange: props.onChange,
|
|
21
|
-
children: function(renderProps) {
|
|
21
|
+
children: function children(renderProps) {
|
|
22
22
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.OptionField, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
23
23
|
tabIndex: props.tabIndex,
|
|
24
24
|
onFocus: renderProps.onFocus,
|
|
@@ -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 CheckboxField = function(props) {
|
|
16
|
+
var CheckboxField = function CheckboxField(props) {
|
|
17
17
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Box, {
|
|
18
18
|
maxWidth: 1,
|
|
19
19
|
children: [
|
|
@@ -62,7 +62,7 @@ var CheckboxField = function(props) {
|
|
|
62
62
|
onChange: props.onChange,
|
|
63
63
|
onFocus: props.onFocus,
|
|
64
64
|
onBlur: props.onBlur,
|
|
65
|
-
children: function(renderProps) {
|
|
65
|
+
children: function children(renderProps) {
|
|
66
66
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.OptionField, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
67
67
|
title: props.title,
|
|
68
68
|
hint: props.hint,
|
|
@@ -79,7 +79,7 @@ var CheckboxField = function(props) {
|
|
|
79
79
|
onClick: option.onClick,
|
|
80
80
|
onMouseEnter: option.onMouseEnter,
|
|
81
81
|
onMouseLeave: renderProps.onMouseLeave,
|
|
82
|
-
children: function(renderOptionProps) {
|
|
82
|
+
children: function children(renderOptionProps) {
|
|
83
83
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.OptionFieldItem, {
|
|
84
84
|
disabled: option.disabled,
|
|
85
85
|
icon: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, {
|
|
@@ -14,7 +14,7 @@ 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_wildcard._(require("react"));
|
|
17
|
-
var animation = function(count) {
|
|
17
|
+
var animation = function animation(count) {
|
|
18
18
|
var _obj;
|
|
19
19
|
return (0, _pijmacore.keyframes)((_obj = {
|
|
20
20
|
'0%': {
|
|
@@ -26,8 +26,8 @@ var animation = function(count) {
|
|
|
26
26
|
height: '48px'
|
|
27
27
|
}, _obj));
|
|
28
28
|
};
|
|
29
|
-
var CodeField = function(
|
|
30
|
-
var
|
|
29
|
+
var CodeField = function CodeField(_0) {
|
|
30
|
+
var _0_length = _0.length, length = _0_length === void 0 ? 4 : _0_length, _0_autoFocus = _0.autoFocus, autoFocus = _0_autoFocus === void 0 ? false : _0_autoFocus, _0_loading = _0.loading, loading = _0_loading === void 0 ? false : _0_loading, _0_type = _0.type, type = _0_type === void 0 ? 'tel' : _0_type, props = _object_without_properties_loose._(_0, [
|
|
31
31
|
"length",
|
|
32
32
|
"autoFocus",
|
|
33
33
|
"loading",
|
|
@@ -54,7 +54,7 @@ var CodeField = function(_param) {
|
|
|
54
54
|
onFocus: props.onFocus,
|
|
55
55
|
onBlur: props.onBlur,
|
|
56
56
|
onReady: props.onReady,
|
|
57
|
-
children: function(renderProps) {
|
|
57
|
+
children: function children(renderProps) {
|
|
58
58
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Box, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
59
59
|
width: 1,
|
|
60
60
|
minHeight: 12,
|
|
@@ -20,10 +20,10 @@ var _menu = require("../menu/index.js");
|
|
|
20
20
|
var _typography = require("../typography/index.js");
|
|
21
21
|
var CardMenuItem = (0, _pijmacore.styled)(_pijmacore.Card)().withComponent(_menu.MenuItem);
|
|
22
22
|
CardMenuItem.displayName = 'CardMenuItem';
|
|
23
|
-
var ContentSuggest = function(
|
|
24
|
-
var
|
|
23
|
+
var ContentSuggest = function ContentSuggest(_0) {
|
|
24
|
+
var _0_equals = _0.equals, equals = _0_equals === void 0 ? function(a, b) {
|
|
25
25
|
return a === b;
|
|
26
|
-
} :
|
|
26
|
+
} : _0_equals, props = _object_without_properties_loose._(_0, [
|
|
27
27
|
"equals"
|
|
28
28
|
]);
|
|
29
29
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SuggestControl, {
|
|
@@ -39,7 +39,7 @@ var ContentSuggest = function(_param) {
|
|
|
39
39
|
onFocus: props.onFocus,
|
|
40
40
|
onCancel: props.onCancel,
|
|
41
41
|
onSubmit: props.onSubmit,
|
|
42
|
-
children: function(renderProps) {
|
|
42
|
+
children: function children(renderProps) {
|
|
43
43
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.Pos, _extends._({
|
|
44
44
|
type: "relative"
|
|
45
45
|
}, (0, _pijmacore.getDataProps)(props), {
|
|
@@ -81,7 +81,7 @@ var ContentSuggest = function(_param) {
|
|
|
81
81
|
selected: renderProps.selected,
|
|
82
82
|
onSelect: renderProps.onItemSelect,
|
|
83
83
|
onKeyDown: renderProps.onModalItemKeyDown,
|
|
84
|
-
children: function(menuRenderProps) {
|
|
84
|
+
children: function children(menuRenderProps) {
|
|
85
85
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_inputmodal.InputModal, {
|
|
86
86
|
value: props.suggest || '',
|
|
87
87
|
tabIndex: props.tabIndex,
|
|
@@ -175,7 +175,7 @@ var ContentSuggest = function(_param) {
|
|
|
175
175
|
};
|
|
176
176
|
ContentSuggest.displayName = 'ContentSuggest';
|
|
177
177
|
ContentSuggest.defaultProps = {
|
|
178
|
-
equals: function(a, b) {
|
|
178
|
+
equals: function equals(a, b) {
|
|
179
179
|
return a === b;
|
|
180
180
|
}
|
|
181
181
|
};
|
|
@@ -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 CustomAlert = function(
|
|
18
|
-
var children =
|
|
17
|
+
var CustomAlert = function CustomAlert(_0) {
|
|
18
|
+
var children = _0.children, icon = _0.icon, bg = _0.bg, shadow = _0.shadow, textColor = _0.textColor, onHide = _0.onHide, rest = _object_without_properties_loose._(_0, [
|
|
19
19
|
"children",
|
|
20
20
|
"icon",
|
|
21
21
|
"bg",
|
|
@@ -25,7 +25,7 @@ var CustomAlert = function(_param) {
|
|
|
25
25
|
]);
|
|
26
26
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.AlertBlockControl, {
|
|
27
27
|
onHide: onHide,
|
|
28
|
-
children: function(renderProps) {
|
|
28
|
+
children: function children1(renderProps) {
|
|
29
29
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Card, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
30
30
|
bg: bg,
|
|
31
31
|
r: 10,
|
|
@@ -23,8 +23,8 @@ var bottomDots = {
|
|
|
23
23
|
s: '5px',
|
|
24
24
|
m: '7px'
|
|
25
25
|
};
|
|
26
|
-
var Details = function(
|
|
27
|
-
var children =
|
|
26
|
+
var Details = function Details(_0) {
|
|
27
|
+
var children = _0.children, dots = _0.dots, titleWidth = _0.titleWidth, contentWidth = _0.contentWidth, _0_size = _0.size, size = _0_size === void 0 ? 's' : _0_size, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
28
28
|
"children",
|
|
29
29
|
"dots",
|
|
30
30
|
"titleWidth",
|
|
@@ -18,20 +18,20 @@ var translate3d = {
|
|
|
18
18
|
vertical: '0, 100%, 0',
|
|
19
19
|
horizontal: '100%, 0, 0'
|
|
20
20
|
};
|
|
21
|
-
var defaultProps = function(direction) {
|
|
21
|
+
var defaultProps = function defaultProps(direction) {
|
|
22
22
|
return {
|
|
23
23
|
timeout: {
|
|
24
24
|
enter: 370,
|
|
25
25
|
exit: 250
|
|
26
26
|
},
|
|
27
|
-
enterClassName: function(timeout) {
|
|
27
|
+
enterClassName: function enterClassName(timeout) {
|
|
28
28
|
return (0, _pijmacore.css)({
|
|
29
29
|
opacity: 1,
|
|
30
30
|
transform: 'translate3d(0, 0, 0)',
|
|
31
31
|
transition: "opacity " + timeout + "ms ease, transform " + timeout + "ms ease"
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
|
-
exitClassName: function(timeout) {
|
|
34
|
+
exitClassName: function exitClassName(timeout) {
|
|
35
35
|
return (0, _pijmacore.css)({
|
|
36
36
|
opacity: 0,
|
|
37
37
|
transform: "translate3d(" + translate3d[direction] + ")",
|
|
@@ -40,27 +40,27 @@ var defaultProps = function(direction) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
var ContentTransitionVertical = function(props) {
|
|
43
|
+
var ContentTransitionVertical = function ContentTransitionVertical(props) {
|
|
44
44
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('vertical')));
|
|
45
45
|
};
|
|
46
46
|
ContentTransitionVertical.displayName = 'ContentTransitionVertical';
|
|
47
|
-
var ContentTransitionHorizontal = function(props) {
|
|
47
|
+
var ContentTransitionHorizontal = function ContentTransitionHorizontal(props) {
|
|
48
48
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, defaultProps('horizontal')));
|
|
49
49
|
};
|
|
50
50
|
ContentTransitionHorizontal.displayName = 'ContentTransitionHorizontal';
|
|
51
|
-
var BackdropTransition = function(props) {
|
|
51
|
+
var BackdropTransition = function BackdropTransition(props) {
|
|
52
52
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
53
53
|
timeout: {
|
|
54
54
|
enter: 370,
|
|
55
55
|
exit: 250
|
|
56
56
|
},
|
|
57
|
-
enterClassName: function(timeout) {
|
|
57
|
+
enterClassName: function enterClassName(timeout) {
|
|
58
58
|
return (0, _pijmacore.css)({
|
|
59
59
|
opacity: 1,
|
|
60
60
|
transition: "opacity " + timeout + "ms ease"
|
|
61
61
|
});
|
|
62
62
|
},
|
|
63
|
-
exitClassName: function(timeout) {
|
|
63
|
+
exitClassName: function exitClassName(timeout) {
|
|
64
64
|
return (0, _pijmacore.css)({
|
|
65
65
|
opacity: 0,
|
|
66
66
|
transition: "opacity " + timeout + "ms ease"
|
|
@@ -71,7 +71,7 @@ var BackdropTransition = function(props) {
|
|
|
71
71
|
BackdropTransition.displayName = 'BackdropTransition';
|
|
72
72
|
var FlexPosCard = (0, _pijmacore.styled)(_pijmacore.FlexPos)().withComponent(_pijmacore.Card);
|
|
73
73
|
FlexPosCard.displayName = 'FlexPosCard';
|
|
74
|
-
var DropUp = function(props) {
|
|
74
|
+
var DropUp = function DropUp(props) {
|
|
75
75
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Modal, {
|
|
76
76
|
show: props.show,
|
|
77
77
|
autoFocus: props.autoFocus,
|
|
@@ -79,7 +79,7 @@ var DropUp = function(props) {
|
|
|
79
79
|
onHide: props.onHide,
|
|
80
80
|
transition: props.horizontal ? ContentTransitionHorizontal : ContentTransitionVertical,
|
|
81
81
|
backdropTransition: BackdropTransition,
|
|
82
|
-
renderBackdrop: function(backdropProps) {
|
|
82
|
+
renderBackdrop: function renderBackdrop(backdropProps) {
|
|
83
83
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
84
84
|
type: "fixed",
|
|
85
85
|
zIndex: "auto",
|
|
@@ -95,7 +95,7 @@ var DropUp = function(props) {
|
|
|
95
95
|
})
|
|
96
96
|
}));
|
|
97
97
|
},
|
|
98
|
-
renderDialog: function(dialogProps) {
|
|
98
|
+
renderDialog: function renderDialog(dialogProps) {
|
|
99
99
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({
|
|
100
100
|
type: "fixed",
|
|
101
101
|
zIndex: 9999,
|
|
@@ -13,7 +13,7 @@ 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
15
|
var _typography = require("../typography/index.js");
|
|
16
|
-
var ExtendedProgressBar = function(param) {
|
|
16
|
+
var ExtendedProgressBar = function ExtendedProgressBar(param) {
|
|
17
17
|
var value = param.value, _param_maxValue = param.maxValue, maxValue = _param_maxValue === void 0 ? 1 : _param_maxValue, titleStart = param.titleStart, titleEnd = param.titleEnd, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_stub = param.stub, stub = _param_stub === void 0 ? false : _param_stub, _param_formatValue = param.formatValue, formatValue = _param_formatValue === void 0 ? function(v) {
|
|
18
18
|
return v;
|
|
19
19
|
} : _param_formatValue;
|
|
@@ -14,7 +14,7 @@ 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 FooterAppLink = function(props) {
|
|
17
|
+
var FooterAppLink = function FooterAppLink(props) {
|
|
18
18
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Stub, {
|
|
19
19
|
width: 1,
|
|
20
20
|
height: 1,
|
|
@@ -27,7 +27,7 @@ var FooterAppLink = function(props) {
|
|
|
27
27
|
onClick: props.onClick,
|
|
28
28
|
onFocus: props.onFocus,
|
|
29
29
|
onBlur: props.onBlur,
|
|
30
|
-
children: function(renderProps) {
|
|
30
|
+
children: function children(renderProps) {
|
|
31
31
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.BoxLnk, {
|
|
32
32
|
display: "block",
|
|
33
33
|
href: props.href,
|
|
@@ -50,8 +50,8 @@ var FooterAppLink = function(props) {
|
|
|
50
50
|
});
|
|
51
51
|
};
|
|
52
52
|
FooterAppLink.displayName = 'FooterAppLink';
|
|
53
|
-
var FooterApp = function(
|
|
54
|
-
var children =
|
|
53
|
+
var FooterApp = function FooterApp(_0) {
|
|
54
|
+
var children = _0.children, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
55
55
|
"children",
|
|
56
56
|
"stub"
|
|
57
57
|
]);
|
|
@@ -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 _navlink = require("../nav-link/index.js");
|
|
18
|
-
var FooterNav = function(
|
|
19
|
-
var
|
|
18
|
+
var FooterNav = function FooterNav(_0) {
|
|
19
|
+
var _0_children = _0.children, children = _0_children === void 0 ? [] : _0_children, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
20
20
|
"children",
|
|
21
21
|
"stub"
|
|
22
22
|
]);
|
|
@@ -14,7 +14,7 @@ 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 FooterOutLink = function(props) {
|
|
17
|
+
var FooterOutLink = function FooterOutLink(props) {
|
|
18
18
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Card, {
|
|
19
19
|
width: 10,
|
|
20
20
|
height: 10,
|
|
@@ -36,7 +36,7 @@ var FooterOutLink = function(props) {
|
|
|
36
36
|
onClick: props.onClick,
|
|
37
37
|
onFocus: props.onFocus,
|
|
38
38
|
onBlur: props.onBlur,
|
|
39
|
-
children: function(renderProps) {
|
|
39
|
+
children: function children(renderProps) {
|
|
40
40
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.CardLnk, {
|
|
41
41
|
display: "block",
|
|
42
42
|
width: 10,
|
|
@@ -65,8 +65,8 @@ var FooterOutLink = function(props) {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
FooterOutLink.displayName = 'FooterOutLink';
|
|
68
|
-
var FooterOut = function(
|
|
69
|
-
var children =
|
|
68
|
+
var FooterOut = function FooterOut(_0) {
|
|
69
|
+
var children = _0.children, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
70
70
|
"children",
|
|
71
71
|
"stub"
|
|
72
72
|
]);
|
|
@@ -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 Glossary = function(
|
|
19
|
-
var children =
|
|
18
|
+
var Glossary = function Glossary(_0) {
|
|
19
|
+
var children = _0.children, stub = _0.stub, rest = _object_without_properties_loose._(_0, [
|
|
20
20
|
"children",
|
|
21
21
|
"stub"
|
|
22
22
|
]);
|
|
@@ -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 Header = function(
|
|
18
|
-
var
|
|
17
|
+
var Header = function Header(_0) {
|
|
18
|
+
var _0_zIndex = _0.zIndex, zIndex = _0_zIndex === void 0 ? 10002 : _0_zIndex, active = _0.active, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
19
19
|
"zIndex",
|
|
20
20
|
"active",
|
|
21
21
|
"children"
|
|
@@ -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",
|