@qiwi/pijma-desktop 1.168.0 → 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/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 +11 -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/status/Status.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qiwi/pijma-desktop",
|
|
3
|
-
"version": "1.168.
|
|
3
|
+
"version": "1.168.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 6060:80 -v $(pwd)/target/webapp:/usr/share/nginx/html nginx@sha256:480868e8c8c797794257e2abd88d0f9a8809b2fe956cbfbc05dcc0bca1f7cd43",
|
|
30
30
|
"chrome:start": "docker run --rm -p 6161:3000 --add-host=host.docker.internal:host-gateway browserless/chrome@sha256:4655517b70d598367f363e15fa311ea514879f6b4908ba9199d6714d6f8269a3",
|
|
31
31
|
"test:start": "wait-on http-get://localhost:6060/ http-get://localhost:6161/ && 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.
|
|
42
|
+
"@qiwi/pijma-core": "1.165.1",
|
|
43
43
|
"@swc/helpers": "^0.5.17"
|
|
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/desktop"
|
|
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/desktop#readme"
|
|
72
59
|
}
|
|
@@ -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._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
43
43
|
minHeight: 16,
|
|
44
44
|
py: 5,
|
|
@@ -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, {
|
|
@@ -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 Annotation = function(
|
|
18
|
-
var children =
|
|
17
|
+
var Annotation = function Annotation(_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.Card, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
@@ -20,8 +20,8 @@ var BlockAccordionIndent = {
|
|
|
20
20
|
m: 11,
|
|
21
21
|
l: 17
|
|
22
22
|
};
|
|
23
|
-
var BlockAccordion = function(
|
|
24
|
-
var items =
|
|
23
|
+
var BlockAccordion = function BlockAccordion(_0) {
|
|
24
|
+
var items = _0.items, _0_indent = _0.indent, indent = _0_indent === void 0 ? 'm' : _0_indent, _0_tabIndex = _0.tabIndex, tabIndex = _0_tabIndex === void 0 ? 0 : _0_tabIndex, opened = _0.opened, onChange = _0.onChange, rest = _object_without_properties_loose._(_0, [
|
|
25
25
|
"items",
|
|
26
26
|
"indent",
|
|
27
27
|
"tabIndex",
|
|
@@ -32,7 +32,7 @@ var BlockAccordion = function(_param) {
|
|
|
32
32
|
items: items,
|
|
33
33
|
opened: opened,
|
|
34
34
|
onChange: onChange,
|
|
35
|
-
children: function(renderProps) {
|
|
35
|
+
children: function children(renderProps) {
|
|
36
36
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Box, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
37
37
|
py: 3,
|
|
38
38
|
children: renderProps.items.map(function(item, index) {
|
|
@@ -19,8 +19,8 @@ var BlockContentIdent = {
|
|
|
19
19
|
m: '44px 44px 48px',
|
|
20
20
|
l: '44px 68px 48px'
|
|
21
21
|
};
|
|
22
|
-
var BlockContent = function(
|
|
23
|
-
var
|
|
22
|
+
var BlockContent = function BlockContent(_0) {
|
|
23
|
+
var _0_indent = _0.indent, indent = _0_indent === void 0 ? 'm' : _0_indent, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
24
24
|
"indent",
|
|
25
25
|
"children"
|
|
26
26
|
]);
|
|
@@ -51,8 +51,8 @@ var FlexOverflow = (0, _pijmacore.styled)(_pijmacore.Flex)({
|
|
|
51
51
|
FlexOverflow.displayName = 'FlexOverflow';
|
|
52
52
|
var TabContent = (0, _pijmacore.styled)(_pijmacore.FlexItem)();
|
|
53
53
|
TabContent.displayName = 'TabContent';
|
|
54
|
-
var BlockTabs = function(
|
|
55
|
-
var items =
|
|
54
|
+
var BlockTabs = function BlockTabs(_0) {
|
|
55
|
+
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, [
|
|
56
56
|
"items",
|
|
57
57
|
"select",
|
|
58
58
|
"tabIndex",
|
|
@@ -130,7 +130,7 @@ var BlockTabs = function(_param) {
|
|
|
130
130
|
select: select,
|
|
131
131
|
length: items.length,
|
|
132
132
|
onChange: onChange,
|
|
133
|
-
children: function(renderProps) {
|
|
133
|
+
children: function children(renderProps) {
|
|
134
134
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
135
135
|
type: "relative",
|
|
136
136
|
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
|
]);
|
|
@@ -53,9 +53,9 @@ var stubWidth = {
|
|
|
53
53
|
normal: 21,
|
|
54
54
|
minor: 19
|
|
55
55
|
};
|
|
56
|
-
var Button = function(props) {
|
|
57
|
-
var theme = (0, _pijmacore.useTheme)();
|
|
56
|
+
var Button = function Button(props) {
|
|
58
57
|
var _props_radius;
|
|
58
|
+
var theme = (0, _pijmacore.useTheme)();
|
|
59
59
|
return props.stub ? /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Card, {
|
|
60
60
|
width: !props.icon || props.text ? 1 : buttonSize[props.size],
|
|
61
61
|
height: buttonSize[props.size],
|
|
@@ -97,7 +97,7 @@ var Button = function(props) {
|
|
|
97
97
|
onClick: props.onClick,
|
|
98
98
|
onFocus: props.onFocus,
|
|
99
99
|
onBlur: props.onBlur,
|
|
100
|
-
children: function(renderProps) {
|
|
100
|
+
children: function children(renderProps) {
|
|
101
101
|
var _props_radius;
|
|
102
102
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Btn, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
103
103
|
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,13 +39,13 @@ var ContentSuggest = function(_param) {
|
|
|
39
39
|
onFocus: props.onFocus,
|
|
40
40
|
onSubmit: props.onSubmit,
|
|
41
41
|
onCancel: props.onCancel,
|
|
42
|
-
children: function(renderProps) {
|
|
42
|
+
children: function children(renderProps) {
|
|
43
43
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.MenuControl, {
|
|
44
44
|
count: renderProps.items.length,
|
|
45
45
|
selected: renderProps.selected,
|
|
46
46
|
onSelect: renderProps.onItemSelect,
|
|
47
47
|
onKeyDown: renderProps.onItemKeyDown,
|
|
48
|
-
children: function(menuRenderProps) {
|
|
48
|
+
children: function children(menuRenderProps) {
|
|
49
49
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.CardPos, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
50
50
|
type: "relative",
|
|
51
51
|
ref: renderProps.containerRef,
|
|
@@ -94,10 +94,10 @@ var ContentSuggest = function(_param) {
|
|
|
94
94
|
minWidth: 1,
|
|
95
95
|
show: props.items !== undefined && renderProps.focused && (props.items.length > 0 || props.empty !== undefined || props.loading === true),
|
|
96
96
|
rootClose: false,
|
|
97
|
-
container: function() {
|
|
97
|
+
container: function container() {
|
|
98
98
|
return renderProps.containerRef.current;
|
|
99
99
|
},
|
|
100
|
-
target: function() {
|
|
100
|
+
target: function target() {
|
|
101
101
|
return renderProps.inputRef.current;
|
|
102
102
|
},
|
|
103
103
|
onHide: renderProps.onHide,
|
|
@@ -196,7 +196,7 @@ var ContentSuggest = function(_param) {
|
|
|
196
196
|
};
|
|
197
197
|
ContentSuggest.displayName = 'ContentSuggest';
|
|
198
198
|
ContentSuggest.defaultProps = {
|
|
199
|
-
equals: function(a, b) {
|
|
199
|
+
equals: function equals(a, b) {
|
|
200
200
|
return a === b;
|
|
201
201
|
}
|
|
202
202
|
};
|
|
@@ -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,
|
|
@@ -25,8 +25,8 @@ var bottomDots = {
|
|
|
25
25
|
m: '7px',
|
|
26
26
|
l: '9px'
|
|
27
27
|
};
|
|
28
|
-
var Details = function(
|
|
29
|
-
var children =
|
|
28
|
+
var Details = function Details(_0) {
|
|
29
|
+
var children = _0.children, dots = _0.dots, titleWidth = _0.titleWidth, contentWidth = _0.contentWidth, _0_size = _0.size, size = _0_size === void 0 ? 'm' : _0_size, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, rest = _object_without_properties_loose._(_0, [
|
|
30
30
|
"children",
|
|
31
31
|
"dots",
|
|
32
32
|
"titleWidth",
|
|
@@ -14,19 +14,19 @@ 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 Transition = function(props) {
|
|
17
|
+
var Transition = function Transition(props) {
|
|
18
18
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
19
19
|
timeout: {
|
|
20
20
|
enter: 300,
|
|
21
21
|
exit: 200
|
|
22
22
|
},
|
|
23
|
-
enterClassName: function(timeout) {
|
|
23
|
+
enterClassName: function enterClassName(timeout) {
|
|
24
24
|
return (0, _pijmacore.css)({
|
|
25
25
|
opacity: 1,
|
|
26
26
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
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
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
@@ -35,8 +35,8 @@ var Transition = function(props) {
|
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
37
37
|
Transition.displayName = 'Transition';
|
|
38
|
-
var DropDown = function(
|
|
39
|
-
var show =
|
|
38
|
+
var DropDown = function DropDown(_0) {
|
|
39
|
+
var show = _0.show, offset = _0.offset, width = _0.width, minWidth = _0.minWidth, maxWidth = _0.maxWidth, _0_rootClose = _0.rootClose, rootClose = _0_rootClose === void 0 ? true : _0_rootClose, _0_stub = _0.stub, stub = _0_stub === void 0 ? false : _0_stub, _0_placement = _0.placement, placement = _0_placement === void 0 ? 'bottom' : _0_placement, target = _0.target, container = _0.container, onHide = _0.onHide, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
40
40
|
"show",
|
|
41
41
|
"offset",
|
|
42
42
|
"width",
|
|
@@ -69,7 +69,7 @@ var DropDown = function(_param) {
|
|
|
69
69
|
}
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
|
-
children: function(renderProps) {
|
|
72
|
+
children: function children1(renderProps) {
|
|
73
73
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
74
74
|
role: "listbox",
|
|
75
75
|
type: "absolute",
|
|
@@ -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_stub = param.stub, stub = _param_stub === void 0 ? false : _param_stub, _param_disabled = param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _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
|
]);
|
|
@@ -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 Header = function(props) {
|
|
16
|
+
var Header = function Header(props) {
|
|
17
17
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Card, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
18
18
|
bg: "#fff",
|
|
19
19
|
s: props.underline ? 'inset 0px -1px 0px 0px #e6e6e6' : undefined,
|
|
@@ -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 HeaderBankCardLink = function(props) {
|
|
17
|
+
var HeaderBankCardLink = function HeaderBankCardLink(props) {
|
|
18
18
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.LinkControl, {
|
|
19
19
|
href: props.href,
|
|
20
20
|
target: props.target,
|
|
@@ -23,7 +23,7 @@ var HeaderBankCardLink = function(props) {
|
|
|
23
23
|
onClick: props.onClick,
|
|
24
24
|
onFocus: props.onFocus,
|
|
25
25
|
onBlur: props.onBlur,
|
|
26
|
-
children: function(renderProps) {
|
|
26
|
+
children: function children(renderProps) {
|
|
27
27
|
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_pijmacore.BoxLnk, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
28
28
|
display: "block",
|
|
29
29
|
width: 56,
|
|
@@ -14,19 +14,19 @@ 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 Transition = function(props) {
|
|
17
|
+
var Transition = function Transition(props) {
|
|
18
18
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.SimpleTransition, _extends._({}, props, {
|
|
19
19
|
timeout: {
|
|
20
20
|
enter: 300,
|
|
21
21
|
exit: 200
|
|
22
22
|
},
|
|
23
|
-
enterClassName: function(timeout) {
|
|
23
|
+
enterClassName: function enterClassName(timeout) {
|
|
24
24
|
return (0, _pijmacore.css)({
|
|
25
25
|
opacity: 1,
|
|
26
26
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
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
|
transition: "opacity " + timeout + "ms cubic-bezier(0.4, 0.0, 0.2, 1)"
|
|
@@ -35,8 +35,8 @@ var Transition = function(props) {
|
|
|
35
35
|
}));
|
|
36
36
|
};
|
|
37
37
|
Transition.displayName = 'Transition';
|
|
38
|
-
var HeaderDropDown = function(
|
|
39
|
-
var show =
|
|
38
|
+
var HeaderDropDown = function HeaderDropDown(_0) {
|
|
39
|
+
var show = _0.show, target = _0.target, container = _0.container, onHide = _0.onHide, children = _0.children, rest = _object_without_properties_loose._(_0, [
|
|
40
40
|
"show",
|
|
41
41
|
"target",
|
|
42
42
|
"container",
|
|
@@ -59,7 +59,7 @@ var HeaderDropDown = function(_param) {
|
|
|
59
59
|
}
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
|
-
children: function(renderProps) {
|
|
62
|
+
children: function children1(renderProps) {
|
|
63
63
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Pos, _extends._({}, (0, _pijmacore.getDataProps)(rest), {
|
|
64
64
|
role: "listbox",
|
|
65
65
|
type: "absolute",
|
|
@@ -15,7 +15,7 @@ var _pijmacore = require("@qiwi/pijma-core");
|
|
|
15
15
|
var _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
16
16
|
var _link = require("../link/index.js");
|
|
17
17
|
var _HeaderMenuItem = require("./HeaderMenuItem.js");
|
|
18
|
-
var HeaderMenu = function(props) {
|
|
18
|
+
var HeaderMenu = function HeaderMenu(props) {
|
|
19
19
|
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_pijmacore.Flex, _extends._({}, (0, _pijmacore.getDataProps)(props), {
|
|
20
20
|
height: 1,
|
|
21
21
|
width: 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',
|