@qiwi/pijma-mobile 1.151.0 → 1.151.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/lib/es5/drop-up/DropUp.js +2 -0
- package/lib/es5/input-modal/InputModal.js +2 -0
- package/lib/es5/modal/SimpleModal.js +21 -21
- package/lib/es5/suggest-field/SuggestField.js +3 -1
- package/lib/es6/drop-up/DropUp.js +2 -0
- package/lib/es6/input-modal/InputModal.js +2 -0
- package/lib/es6/modal/SimpleModal.js +20 -20
- package/lib/es6/suggest-field/SuggestField.js +3 -1
- package/package.json +3 -3
|
@@ -109,6 +109,7 @@ var DropUp = function(props) {
|
|
|
109
109
|
onKeyDown: props.onKeyDown
|
|
110
110
|
}, dialogProps, {
|
|
111
111
|
children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(FlexPosCard, {
|
|
112
|
+
role: "document",
|
|
112
113
|
display: "flex",
|
|
113
114
|
direction: "column",
|
|
114
115
|
width: 1,
|
|
@@ -144,6 +145,7 @@ var DropUp = function(props) {
|
|
|
144
145
|
children: props.title
|
|
145
146
|
}),
|
|
146
147
|
/*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
148
|
+
"aria-label": "close",
|
|
147
149
|
width: 6,
|
|
148
150
|
height: 6,
|
|
149
151
|
ml: "auto",
|
|
@@ -59,6 +59,7 @@ var InputModal = function(props) {
|
|
|
59
59
|
overflow: "auto"
|
|
60
60
|
}, dialogProps, {
|
|
61
61
|
children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Card, {
|
|
62
|
+
role: "document",
|
|
62
63
|
width: 1,
|
|
63
64
|
height: 1,
|
|
64
65
|
bg: "#fff",
|
|
@@ -73,6 +74,7 @@ var InputModal = function(props) {
|
|
|
73
74
|
s: "0 0 25px 0 rgba(0, 0, 0, 0.08)",
|
|
74
75
|
children: [
|
|
75
76
|
props.onBack ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.FlexItem, {
|
|
77
|
+
"aria-label": "back",
|
|
76
78
|
shrink: 0,
|
|
77
79
|
mr: 4,
|
|
78
80
|
onClick: props.onBack,
|
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "SimpleModal", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
var _extends = require("@swc/helpers/lib/_extends.js").default;
|
|
12
|
-
var
|
|
12
|
+
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
var _pijmaCore = require("@qiwi/pijma-core");
|
|
15
|
-
var _react = /*#__PURE__*/
|
|
15
|
+
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
|
|
16
16
|
var ContentTransition = function(props) {
|
|
17
17
|
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.SimpleTransition, _extends({}, props));
|
|
18
18
|
};
|
|
@@ -100,33 +100,33 @@ var SimpleModal = function(param) {
|
|
|
100
100
|
zIndex: zIndex
|
|
101
101
|
}, dialogProps, {
|
|
102
102
|
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Pos, {
|
|
103
|
+
role: "document",
|
|
103
104
|
type: "relative",
|
|
104
105
|
width: 1,
|
|
105
106
|
height: 1,
|
|
106
|
-
children: /*#__PURE__*/ (0, _jsxRuntime.
|
|
107
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Card, {
|
|
107
108
|
bg: "#fff",
|
|
108
109
|
p: 6,
|
|
109
110
|
width: 1,
|
|
110
111
|
height: 1,
|
|
111
112
|
overflow: "auto",
|
|
112
|
-
children:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
})
|
|
113
|
+
children: [
|
|
114
|
+
closable && onHide ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Pos, {
|
|
115
|
+
"aria-label": "close",
|
|
116
|
+
type: "absolute",
|
|
117
|
+
top: 6,
|
|
118
|
+
right: 6,
|
|
119
|
+
width: 6,
|
|
120
|
+
height: 6,
|
|
121
|
+
cursor: "pointer",
|
|
122
|
+
onClick: onHide,
|
|
123
|
+
children: /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Icon, {
|
|
124
|
+
name: "cross",
|
|
125
|
+
color: "#000"
|
|
126
|
+
})
|
|
127
|
+
}) : null,
|
|
128
|
+
children
|
|
129
|
+
]
|
|
130
130
|
})
|
|
131
131
|
})
|
|
132
132
|
}));
|
|
@@ -115,9 +115,11 @@ var SuggestField = function(_param) {
|
|
|
115
115
|
}) : /*#__PURE__*/ (0, _jsxRuntime.jsxs)(_pijmaCore.Spacer, {
|
|
116
116
|
size: "s",
|
|
117
117
|
children: [
|
|
118
|
-
menuRenderProps.items.length > 0 ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(
|
|
118
|
+
menuRenderProps.items.length > 0 ? /*#__PURE__*/ (0, _jsxRuntime.jsx)(_pijmaCore.Box, {
|
|
119
|
+
role: "listbox",
|
|
119
120
|
children: menuRenderProps.items.map(function(item, key) {
|
|
120
121
|
return /*#__PURE__*/ (0, _jsxRuntime.jsx)(CardItem, {
|
|
122
|
+
role: "option",
|
|
121
123
|
ref: item.ref,
|
|
122
124
|
onClick: item.onClick,
|
|
123
125
|
onMouseEnter: item.onMouseEnter,
|
|
@@ -83,6 +83,7 @@ export const DropUp = (props)=>/*#__PURE__*/ _jsx(Modal, {
|
|
|
83
83
|
onKeyDown: props.onKeyDown,
|
|
84
84
|
...dialogProps,
|
|
85
85
|
children: /*#__PURE__*/ _jsxs(FlexPosCard, {
|
|
86
|
+
role: "document",
|
|
86
87
|
display: "flex",
|
|
87
88
|
direction: "column",
|
|
88
89
|
width: 1,
|
|
@@ -118,6 +119,7 @@ export const DropUp = (props)=>/*#__PURE__*/ _jsx(Modal, {
|
|
|
118
119
|
children: props.title
|
|
119
120
|
}),
|
|
120
121
|
/*#__PURE__*/ _jsx(Box, {
|
|
122
|
+
"aria-label": "close",
|
|
121
123
|
width: 6,
|
|
122
124
|
height: 6,
|
|
123
125
|
ml: "auto",
|
|
@@ -41,6 +41,7 @@ export const InputModal = (props)=>/*#__PURE__*/ _jsx(Modal, {
|
|
|
41
41
|
overflow: "auto",
|
|
42
42
|
...dialogProps,
|
|
43
43
|
children: /*#__PURE__*/ _jsxs(Card, {
|
|
44
|
+
role: "document",
|
|
44
45
|
width: 1,
|
|
45
46
|
height: 1,
|
|
46
47
|
bg: "#fff",
|
|
@@ -55,6 +56,7 @@ export const InputModal = (props)=>/*#__PURE__*/ _jsx(Modal, {
|
|
|
55
56
|
s: "0 0 25px 0 rgba(0, 0, 0, 0.08)",
|
|
56
57
|
children: [
|
|
57
58
|
props.onBack ? /*#__PURE__*/ _jsx(FlexItem, {
|
|
59
|
+
"aria-label": "back",
|
|
58
60
|
shrink: 0,
|
|
59
61
|
mr: 4,
|
|
60
62
|
onClick: props.onBack,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box, Card, css, Icon, Modal, Pos, SimpleTransition } from '@qiwi/pijma-core';
|
|
3
|
-
import React
|
|
3
|
+
import React from 'react';
|
|
4
4
|
const ContentTransition = (props)=>/*#__PURE__*/ _jsx(SimpleTransition, {
|
|
5
5
|
...props
|
|
6
6
|
});
|
|
@@ -75,33 +75,33 @@ export const SimpleModal = ({ stub , children , show , escapeClose , onShow , on
|
|
|
75
75
|
zIndex: zIndex,
|
|
76
76
|
...dialogProps,
|
|
77
77
|
children: /*#__PURE__*/ _jsx(Pos, {
|
|
78
|
+
role: "document",
|
|
78
79
|
type: "relative",
|
|
79
80
|
width: 1,
|
|
80
81
|
height: 1,
|
|
81
|
-
children: /*#__PURE__*/
|
|
82
|
+
children: /*#__PURE__*/ _jsxs(Card, {
|
|
82
83
|
bg: "#fff",
|
|
83
84
|
p: 6,
|
|
84
85
|
width: 1,
|
|
85
86
|
height: 1,
|
|
86
87
|
overflow: "auto",
|
|
87
|
-
children:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
})
|
|
88
|
+
children: [
|
|
89
|
+
closable && onHide ? /*#__PURE__*/ _jsx(Pos, {
|
|
90
|
+
"aria-label": "close",
|
|
91
|
+
type: "absolute",
|
|
92
|
+
top: 6,
|
|
93
|
+
right: 6,
|
|
94
|
+
width: 6,
|
|
95
|
+
height: 6,
|
|
96
|
+
cursor: "pointer",
|
|
97
|
+
onClick: onHide,
|
|
98
|
+
children: /*#__PURE__*/ _jsx(Icon, {
|
|
99
|
+
name: "cross",
|
|
100
|
+
color: "#000"
|
|
101
|
+
})
|
|
102
|
+
}) : null,
|
|
103
|
+
children
|
|
104
|
+
]
|
|
105
105
|
})
|
|
106
106
|
})
|
|
107
107
|
})
|
|
@@ -93,8 +93,10 @@ export const SuggestField = ({ equals =(a, b)=>a === b , ...props })=>props.stub
|
|
|
93
93
|
}, key)) : /*#__PURE__*/ _jsxs(Spacer, {
|
|
94
94
|
size: "s",
|
|
95
95
|
children: [
|
|
96
|
-
menuRenderProps.items.length > 0 ? /*#__PURE__*/ _jsx(
|
|
96
|
+
menuRenderProps.items.length > 0 ? /*#__PURE__*/ _jsx(Box, {
|
|
97
|
+
role: "listbox",
|
|
97
98
|
children: menuRenderProps.items.map((item, key)=>/*#__PURE__*/ _jsx(CardItem, {
|
|
99
|
+
role: "option",
|
|
98
100
|
ref: item.ref,
|
|
99
101
|
onClick: item.onClick,
|
|
100
102
|
onMouseEnter: item.onMouseEnter,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qiwi/pijma-mobile",
|
|
3
|
-
"version": "1.151.
|
|
3
|
+
"version": "1.151.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/es5/index.js",
|
|
6
6
|
"module": "./lib/es6/index.js",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"lib"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@qiwi/pijma-core": "1.153.
|
|
40
|
+
"@qiwi/pijma-core": "1.153.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@qiwi/pijma-infra": "1.8.
|
|
43
|
+
"@qiwi/pijma-infra": "1.8.1",
|
|
44
44
|
"concurrently": "7.2.2",
|
|
45
45
|
"css-loader": "4.3.0",
|
|
46
46
|
"eslint": "8.19.0",
|