@proprioo/salatim 26.0.0 → 26.1.0
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/CHANGELOG.md +8 -0
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js +3 -3
- package/lib/forms/src/offerSignatoryForm/OfferSignatoryForm.js.map +1 -1
- package/lib/index.js +353 -354
- package/lib/index.js.map +1 -1
- package/lib/ui/src/modal/Modal.d.ts +10 -7
- package/lib/ui/src/modal/Modal.js +61 -42
- package/lib/ui/src/modal/Modal.js.map +1 -1
- package/lib/ui/src/modal/Modal.stories.js +41 -79
- package/lib/ui/src/modal/Modal.stories.js.map +1 -1
- package/lib/ui/src/modal/Modal.styles.d.ts +6 -3
- package/lib/ui/src/modal/Modal.styles.js +96 -70
- package/lib/ui/src/modal/Modal.styles.js.map +1 -1
- package/lib/ui/src/modal/Modal.test.js +43 -36
- package/lib/ui/src/modal/Modal.test.js.map +1 -1
- package/package.json +1 -1
- package/lib/ui/src/background/Background.styles.d.ts +0 -4
- package/lib/ui/src/background/Background.styles.js +0 -71
- package/lib/ui/src/background/Background.styles.js.map +0 -1
- package/lib/ui/src/modal/Modal.reducer.d.ts +0 -31
- package/lib/ui/src/modal/Modal.reducer.js +0 -57
- package/lib/ui/src/modal/Modal.reducer.js.map +0 -1
|
@@ -23,22 +23,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Text = exports.Title = exports.IconContainer = exports.Header = exports.MobileTitle = exports.Layout = exports.CloseLayout = void 0;
|
|
26
|
+
exports.BackgroundLayout = exports.Text = exports.Title = exports.IconContainer = exports.Header = exports.MobileTitle = exports.Layout = exports.CloseLayout = void 0;
|
|
27
|
+
const polished_1 = require("polished");
|
|
27
28
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
28
29
|
const utils_1 = require("../../../utils");
|
|
29
30
|
const Title_1 = require("../title/Title");
|
|
30
|
-
const
|
|
31
|
-
exports.CloseLayout = styled_components_1.default.
|
|
31
|
+
const Modal_1 = require("./Modal");
|
|
32
|
+
exports.CloseLayout = styled_components_1.default.button `
|
|
33
|
+
${utils_1.resetCssButton};
|
|
32
34
|
position: absolute;
|
|
33
|
-
top: ${(0, utils_1.convertPxToRem)(8)};
|
|
34
35
|
right: ${(0, utils_1.convertPxToRem)(8)};
|
|
35
|
-
|
|
36
|
-
z-index: 1;
|
|
36
|
+
top: ${(0, utils_1.convertPxToRem)(8)};
|
|
37
37
|
height: ${(0, utils_1.convertPxToRem)(32)};
|
|
38
|
+
width: ${(0, utils_1.convertPxToRem)(32)};
|
|
38
39
|
|
|
39
40
|
svg {
|
|
40
|
-
width: 100%;
|
|
41
41
|
height: 100%;
|
|
42
|
+
width: 100%;
|
|
42
43
|
|
|
43
44
|
path {
|
|
44
45
|
fill: ${({ hasTitle }) => (hasTitle ? 'white' : utils_1.colors.dark.base40)};
|
|
@@ -56,8 +57,8 @@ exports.CloseLayout = styled_components_1.default.div `
|
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
@media (min-width: ${utils_1.breakpoints.small}px) {
|
|
59
|
-
top: ${(0, utils_1.convertPxToRem)(12)};
|
|
60
60
|
right: ${(0, utils_1.convertPxToRem)(12)};
|
|
61
|
+
top: ${(0, utils_1.convertPxToRem)(12)};
|
|
61
62
|
|
|
62
63
|
svg {
|
|
63
64
|
path {
|
|
@@ -66,62 +67,22 @@ exports.CloseLayout = styled_components_1.default.div `
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
`;
|
|
69
|
-
const layoutFadeIn = (0, styled_components_1.keyframes) `
|
|
70
|
-
0% {
|
|
71
|
-
opacity: 0;
|
|
72
|
-
transform: translate(-50%, -80%);
|
|
73
|
-
}
|
|
74
|
-
50% {
|
|
75
|
-
opacity: 1;
|
|
76
|
-
}
|
|
77
|
-
100% {
|
|
78
|
-
transform: translate(-50%, -50%);
|
|
79
|
-
}
|
|
80
|
-
`;
|
|
81
|
-
const layoutFadeOut = (0, styled_components_1.keyframes) `
|
|
82
|
-
0% {
|
|
83
|
-
opacity: 1;
|
|
84
|
-
transform: translate(-50%, -50%);
|
|
85
|
-
}
|
|
86
|
-
50% {
|
|
87
|
-
opacity: 0;
|
|
88
|
-
}
|
|
89
|
-
100% {
|
|
90
|
-
transform: translate(-50%, -100%);
|
|
91
|
-
}
|
|
92
|
-
`;
|
|
93
70
|
exports.Layout = styled_components_1.default.div `
|
|
94
71
|
position: fixed;
|
|
95
|
-
z-index: 1001;
|
|
96
|
-
top: 50%;
|
|
97
72
|
left: 50%;
|
|
98
|
-
|
|
73
|
+
top: 50%;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
height: 100%;
|
|
99
77
|
max-height: 100%;
|
|
78
|
+
width: 100%;
|
|
100
79
|
overflow-y: auto;
|
|
101
80
|
background: white;
|
|
102
81
|
color: ${utils_1.colors.dark.base};
|
|
103
82
|
box-shadow: ${utils_1.shadows.level5};
|
|
83
|
+
opacity: 1;
|
|
104
84
|
cursor: auto;
|
|
105
85
|
transform: translate(-50%, -50%);
|
|
106
|
-
opacity: 1;
|
|
107
|
-
height: 100%;
|
|
108
|
-
display: flex;
|
|
109
|
-
flex-direction: column;
|
|
110
|
-
|
|
111
|
-
${({ fade }) => {
|
|
112
|
-
if (fade === Modal_reducer_1.ModalFade.IN) {
|
|
113
|
-
return (0, styled_components_1.css) `
|
|
114
|
-
animation: ${layoutFadeIn} 0.3s linear;
|
|
115
|
-
`;
|
|
116
|
-
}
|
|
117
|
-
else if (fade === Modal_reducer_1.ModalFade.OUT) {
|
|
118
|
-
return (0, styled_components_1.css) `
|
|
119
|
-
transform: translate(-50%, -100%);
|
|
120
|
-
opacity: 0;
|
|
121
|
-
animation: ${layoutFadeOut} 0.3s linear;
|
|
122
|
-
`;
|
|
123
|
-
}
|
|
124
|
-
}}
|
|
125
86
|
|
|
126
87
|
${({ noPadding }) => !noPadding &&
|
|
127
88
|
(0, styled_components_1.css) `
|
|
@@ -139,26 +100,20 @@ exports.Layout = styled_components_1.default.div `
|
|
|
139
100
|
`}
|
|
140
101
|
|
|
141
102
|
@media (min-width: ${utils_1.breakpoints.small}px) {
|
|
142
|
-
min-width: ${(0, utils_1.convertPxToRem)(640)};
|
|
143
|
-
max-height: 85%;
|
|
144
103
|
height: auto;
|
|
104
|
+
max-height: 85%;
|
|
105
|
+
width: ${({ isFullScreen }) => (isFullScreen ? '95%' : '50%')};
|
|
106
|
+
min-width: ${(0, utils_1.convertPxToRem)(640)};
|
|
145
107
|
border-radius: ${utils_1.radius.big};
|
|
146
|
-
${({ isFullScreen }) => isFullScreen
|
|
147
|
-
? (0, styled_components_1.css) `
|
|
148
|
-
width: 95%;
|
|
149
|
-
`
|
|
150
|
-
: (0, styled_components_1.css) `
|
|
151
|
-
width: 50%;
|
|
152
|
-
`}
|
|
153
108
|
}
|
|
154
109
|
`;
|
|
155
110
|
exports.MobileTitle = styled_components_1.default.div `
|
|
156
111
|
position: absolute;
|
|
157
|
-
top: 0;
|
|
158
112
|
left: 0;
|
|
159
113
|
right: 0;
|
|
160
|
-
|
|
114
|
+
top: 0;
|
|
161
115
|
padding: ${(0, utils_1.convertPxToRem)(16)} ${(0, utils_1.convertPxToRem)(8)};
|
|
116
|
+
background: ${utils_1.colors.green.base};
|
|
162
117
|
color: white;
|
|
163
118
|
|
|
164
119
|
@media (min-width: ${utils_1.breakpoints.small}px) {
|
|
@@ -166,10 +121,10 @@ exports.MobileTitle = styled_components_1.default.div `
|
|
|
166
121
|
}
|
|
167
122
|
`;
|
|
168
123
|
exports.Header = styled_components_1.default.div `
|
|
169
|
-
margin-bottom: ${(0, utils_1.convertPxToRem)(8)};
|
|
170
124
|
display: flex;
|
|
171
|
-
flex-direction: column;
|
|
172
125
|
align-items: center;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
margin-bottom: ${(0, utils_1.convertPxToRem)(8)};
|
|
173
128
|
text-align: center;
|
|
174
129
|
`;
|
|
175
130
|
exports.IconContainer = styled_components_1.default.div `
|
|
@@ -177,12 +132,12 @@ exports.IconContainer = styled_components_1.default.div `
|
|
|
177
132
|
|
|
178
133
|
@media (min-width: ${utils_1.breakpoints.small}px) {
|
|
179
134
|
display: block;
|
|
180
|
-
width: ${(0, utils_1.convertPxToRem)(48)};
|
|
181
135
|
height: ${(0, utils_1.convertPxToRem)(48)};
|
|
136
|
+
width: ${(0, utils_1.convertPxToRem)(48)};
|
|
182
137
|
|
|
183
138
|
svg {
|
|
184
|
-
width: 100%;
|
|
185
139
|
height: 100%;
|
|
140
|
+
width: 100%;
|
|
186
141
|
}
|
|
187
142
|
}
|
|
188
143
|
`;
|
|
@@ -192,8 +147,8 @@ exports.Title = styled_components_1.default.p `
|
|
|
192
147
|
@media (min-width: ${utils_1.breakpoints.small}px) {
|
|
193
148
|
${Title_1.titles.h6};
|
|
194
149
|
display: block;
|
|
195
|
-
font-weight: bold;
|
|
196
150
|
margin: 0;
|
|
151
|
+
font-weight: bold;
|
|
197
152
|
}
|
|
198
153
|
`;
|
|
199
154
|
exports.Text = styled_components_1.default.p `
|
|
@@ -205,4 +160,75 @@ exports.Text = styled_components_1.default.p `
|
|
|
205
160
|
text-align: left;
|
|
206
161
|
}
|
|
207
162
|
`;
|
|
163
|
+
const backgroundFadeIn = (0, styled_components_1.keyframes) `
|
|
164
|
+
from {
|
|
165
|
+
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
166
|
+
} to {
|
|
167
|
+
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
168
|
+
}
|
|
169
|
+
`;
|
|
170
|
+
const backgroundFadeOut = (0, styled_components_1.keyframes) `
|
|
171
|
+
from {
|
|
172
|
+
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
173
|
+
} to {
|
|
174
|
+
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
175
|
+
}
|
|
176
|
+
`;
|
|
177
|
+
const layoutFadeIn = (0, styled_components_1.keyframes) `
|
|
178
|
+
0% {
|
|
179
|
+
opacity: 0;
|
|
180
|
+
transform: translate(-50%, -80%);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
50% {
|
|
184
|
+
opacity: 1;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
100% {
|
|
188
|
+
transform: translate(-50%, -50%);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
`;
|
|
192
|
+
const layoutFadeOut = (0, styled_components_1.keyframes) `
|
|
193
|
+
0% {
|
|
194
|
+
opacity: 1;
|
|
195
|
+
transform: translate(-50%, -50%);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
50% {
|
|
199
|
+
opacity: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
100% {
|
|
203
|
+
transform: translate(-50%, -100%);
|
|
204
|
+
}
|
|
205
|
+
`;
|
|
206
|
+
exports.BackgroundLayout = styled_components_1.default.div `
|
|
207
|
+
position: fixed;
|
|
208
|
+
bottom: 0;
|
|
209
|
+
left: 0;
|
|
210
|
+
right: 0;
|
|
211
|
+
top: 0;
|
|
212
|
+
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
|
|
215
|
+
${({ fade }) => fade === Modal_1.FadeEnum.IN
|
|
216
|
+
? (0, styled_components_1.css) `
|
|
217
|
+
animation: ${backgroundFadeIn} 0.2s linear;
|
|
218
|
+
|
|
219
|
+
${exports.Layout} {
|
|
220
|
+
animation: ${layoutFadeIn} 0.3s linear;
|
|
221
|
+
}
|
|
222
|
+
`
|
|
223
|
+
: (0, styled_components_1.css) `
|
|
224
|
+
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
225
|
+
animation: ${backgroundFadeOut} 0.2s linear;
|
|
226
|
+
|
|
227
|
+
${exports.Layout} {
|
|
228
|
+
opacity: 0;
|
|
229
|
+
transform: translate(-50%, -100%);
|
|
230
|
+
animation: ${layoutFadeOut} 0.3s linear;
|
|
231
|
+
}
|
|
232
|
+
`}
|
|
233
|
+
`;
|
|
208
234
|
//# sourceMappingURL=Modal.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.styles.js","sourceRoot":"","sources":["../../../../packages/ui/src/modal/Modal.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uEAA2D;AAE3D,
|
|
1
|
+
{"version":3,"file":"Modal.styles.js","sourceRoot":"","sources":["../../../../packages/ui/src/modal/Modal.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA0C;AAC1C,uEAA2D;AAE3D,0CAQwB;AACxB,0CAAwC;AACxC,mCAA+C;AAIlC,QAAA,WAAW,GAAG,2BAAM,CAAC,MAAM,CAAuB;IAC3D,sBAAc;;WAEP,IAAA,sBAAc,EAAC,CAAC,CAAC;SACnB,IAAA,sBAAc,EAAC,CAAC,CAAC;YACd,IAAA,sBAAc,EAAC,EAAE,CAAC;WACnB,IAAA,sBAAc,EAAC,EAAE,CAAC;;;;;;;cAOf,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,cAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;;;;;;;;gBASzD,cAAM,CAAC,IAAI,CAAC,MAAM;;;;;uBAKX,mBAAW,CAAC,KAAK;aAC3B,IAAA,sBAAc,EAAC,EAAE,CAAC;WACpB,IAAA,sBAAc,EAAC,EAAE,CAAC;;;;gBAIb,cAAM,CAAC,IAAI,CAAC,MAAM;;;;CAIjC,CAAC;AAEW,QAAA,MAAM,GAAG,2BAAM,CAAC,GAAG,CAAa;;;;;;;;;;;WAWlC,cAAM,CAAC,IAAI,CAAC,IAAI;gBACX,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CAAC,CAAC,IAAA,uBAAG,EAAA;wBACa,IAAA,yBAAc,EAAC,CAAC,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;uBACpC,iBAAiB;;YAE5B,cAAM;;;yBAGO,aAAa;;SAE7B;CACR,CAAC"}
|
|
@@ -1,4 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -12,57 +35,41 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
35
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
36
|
};
|
|
14
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const react_1 =
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
16
39
|
const react_2 = require("@testing-library/react");
|
|
17
40
|
const user_event_1 = __importDefault(require("@testing-library/user-event"));
|
|
18
41
|
const Modal_1 = __importDefault(require("./Modal"));
|
|
19
42
|
const mockOnOpen = jest.fn();
|
|
20
43
|
const mockOnClose = jest.fn();
|
|
21
44
|
const mockOnAbort = jest.fn();
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
react_1.default.createElement("button", { "data-test": "open", onClick: () => openModal() }, "onOpen"),
|
|
31
|
-
react_1.default.createElement("button", { "data-test": "close", onClick: () => closeModal() }, "onClose"),
|
|
45
|
+
const MockModal = () => {
|
|
46
|
+
const { createModal, openModal } = (0, Modal_1.default)({
|
|
47
|
+
onAbort: mockOnAbort,
|
|
48
|
+
onClose: mockOnClose,
|
|
49
|
+
onOpen: mockOnOpen
|
|
50
|
+
});
|
|
51
|
+
return (react_1.default.createElement(react_1.Fragment, null,
|
|
52
|
+
react_1.default.createElement("button", { "data-test": "open", onClick: openModal }),
|
|
32
53
|
createModal({
|
|
33
|
-
title: 'test',
|
|
34
|
-
text: 'text',
|
|
35
54
|
icon: react_1.default.createElement("span", null),
|
|
55
|
+
text: 'text',
|
|
56
|
+
title: 'test',
|
|
36
57
|
children: react_1.default.createElement("div", { "data-test": "content" })
|
|
37
58
|
})));
|
|
38
59
|
};
|
|
39
|
-
describe('
|
|
40
|
-
it('should
|
|
41
|
-
(0, react_2.render)(react_1.default.createElement(MockModal,
|
|
42
|
-
expect(react_2.screen.queryByTestId('
|
|
43
|
-
expect(react_2.screen.queryByTestId('modal-title
|
|
44
|
-
expect(react_2.screen.queryByTestId('modal-text
|
|
45
|
-
expect(react_2.screen.queryByTestId('
|
|
60
|
+
describe('useModal', () => {
|
|
61
|
+
it('should open modal', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
62
|
+
(0, react_2.render)(react_1.default.createElement(MockModal, null));
|
|
63
|
+
expect(react_2.screen.queryByTestId('modal-icon')).not.toBeInTheDocument();
|
|
64
|
+
expect(react_2.screen.queryByTestId('modal-title')).not.toBeInTheDocument();
|
|
65
|
+
expect(react_2.screen.queryByTestId('modal-text')).not.toBeInTheDocument();
|
|
66
|
+
expect(react_2.screen.queryByTestId('content')).not.toBeInTheDocument();
|
|
46
67
|
yield user_event_1.default.click(react_2.screen.getByTestId('open'));
|
|
47
68
|
expect(mockOnOpen).toHaveBeenCalledTimes(1);
|
|
48
|
-
expect(react_2.screen.getByTestId('
|
|
69
|
+
expect(react_2.screen.getByTestId('modal-icon')).toBeInTheDocument();
|
|
49
70
|
expect(react_2.screen.getByTestId('modal-title')).toBeInTheDocument();
|
|
50
71
|
expect(react_2.screen.getByTestId('modal-text')).toBeInTheDocument();
|
|
51
|
-
expect(react_2.screen.getByTestId('
|
|
52
|
-
}));
|
|
53
|
-
it('should call onClose', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
(0, react_2.render)(react_1.default.createElement(MockModal, Object.assign({}, defaultProps)));
|
|
55
|
-
yield user_event_1.default.click(react_2.screen.getByTestId('open'));
|
|
56
|
-
yield user_event_1.default.click(react_2.screen.getByTestId('close'));
|
|
57
|
-
// Close annimation
|
|
58
|
-
setTimeout(() => {
|
|
59
|
-
expect(mockOnClose).toHaveBeenCalledTimes(1);
|
|
60
|
-
expect(mockOnAbort).toHaveBeenCalledTimes(1);
|
|
61
|
-
expect(react_2.screen.queryByTestId('content')).not.toBeInTheDocument();
|
|
62
|
-
expect(react_2.screen.queryByTestId('modal-title')).not.toBeInTheDocument();
|
|
63
|
-
expect(react_2.screen.queryByTestId('modal-text')).not.toBeInTheDocument();
|
|
64
|
-
expect(react_2.screen.queryByTestId('modal-icon')).not.toBeInTheDocument();
|
|
65
|
-
}, 500);
|
|
72
|
+
expect(react_2.screen.getByTestId('content')).toBeInTheDocument();
|
|
66
73
|
}));
|
|
67
74
|
});
|
|
68
75
|
//# sourceMappingURL=Modal.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.test.js","sourceRoot":"","sources":["../../../../packages/ui/src/modal/Modal.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.test.js","sourceRoot":"","sources":["../../../../packages/ui/src/modal/Modal.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAExC,kDAAwD;AACxD,6EAAoD;AAEpD,oDAA+B;AAE/B,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAC7B,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAC9B,MAAM,WAAW,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;AAE9B,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,IAAA,eAAQ,EAAC;QAC1C,OAAO,EAAE,WAAW;QACpB,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC;IAEH,OAAO,CACL,8BAAC,gBAAQ;QACP,uDAAkB,MAAM,EAAC,OAAO,EAAE,SAAS,GAAI;QAC9C,WAAW,CAAC;YACX,IAAI,EAAE,2CAAQ;YACd,IAAI,EAAE,MAAM;YACZ,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,oDAAe,SAAS,GAAG;SACtC,CAAC,CACO,CACZ,CAAC;AACJ,CAAC,CAAC;AAEF,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,mBAAmB,EAAE,GAAS,EAAE;QACjC,IAAA,cAAM,EAAC,8BAAC,SAAS,OAAG,CAAC,CAAC;QAEtB,MAAM,CAAC,cAAM,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QACnE,MAAM,CAAC,cAAM,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QACpE,MAAM,CAAC,cAAM,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QACnE,MAAM,CAAC,cAAM,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;QAEhE,MAAM,oBAAS,CAAC,KAAK,CAAC,cAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;QAElD,MAAM,CAAC,UAAU,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC5C,MAAM,CAAC,cAAM,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC7D,MAAM,CAAC,cAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC9D,MAAM,CAAC,cAAM,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;QAC7D,MAAM,CAAC,cAAM,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,EAAE,CAAC;IAC5D,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.BackgroundLayout = void 0;
|
|
27
|
-
const polished_1 = require("polished");
|
|
28
|
-
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
|
-
const utils_1 = require("../../../utils");
|
|
30
|
-
const Modal_reducer_1 = require("../modal/Modal.reducer");
|
|
31
|
-
const backgroundFadeIn = (0, styled_components_1.keyframes) `
|
|
32
|
-
from {
|
|
33
|
-
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
34
|
-
}
|
|
35
|
-
to {
|
|
36
|
-
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
const backgroundFadeOut = (0, styled_components_1.keyframes) `
|
|
40
|
-
from {
|
|
41
|
-
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
exports.BackgroundLayout = styled_components_1.default.div `
|
|
48
|
-
position: fixed;
|
|
49
|
-
z-index: 1000;
|
|
50
|
-
top: 0;
|
|
51
|
-
right: 0;
|
|
52
|
-
bottom: 0;
|
|
53
|
-
left: 0;
|
|
54
|
-
cursor: pointer;
|
|
55
|
-
background: ${(0, polished_1.transparentize)(0.2, utils_1.colors.dark.base)};
|
|
56
|
-
|
|
57
|
-
${({ fade }) => {
|
|
58
|
-
if (fade === Modal_reducer_1.ModalFade.IN) {
|
|
59
|
-
return (0, styled_components_1.css) `
|
|
60
|
-
animation: ${backgroundFadeIn} 0.2s linear;
|
|
61
|
-
`;
|
|
62
|
-
}
|
|
63
|
-
else if (fade === Modal_reducer_1.ModalFade.OUT) {
|
|
64
|
-
return (0, styled_components_1.css) `
|
|
65
|
-
background: ${(0, polished_1.transparentize)(1, utils_1.colors.dark.base)};
|
|
66
|
-
animation: ${backgroundFadeOut} 0.2s linear;
|
|
67
|
-
`;
|
|
68
|
-
}
|
|
69
|
-
}}
|
|
70
|
-
`;
|
|
71
|
-
//# sourceMappingURL=Background.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Background.styles.js","sourceRoot":"","sources":["../../../../packages/ui/src/background/Background.styles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA0C;AAC1C,uEAA2D;AAE3D,0CAAwC;AACxC,0DAAmD;AAEnD,MAAM,gBAAgB,GAAG,IAAA,6BAAS,EAAA;;kBAEhB,IAAA,yBAAc,EAAC,CAAC,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;;kBAGnC,IAAA,yBAAc,EAAC,GAAG,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;CAEtD,CAAC;AAEF,MAAM,iBAAiB,GAAG,IAAA,6BAAS,EAAA;;kBAEjB,IAAA,yBAAc,EAAC,GAAG,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;;kBAGrC,IAAA,yBAAc,EAAC,CAAC,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;CAEpD,CAAC;AAEW,QAAA,gBAAgB,GAAG,2BAAM,CAAC,GAAG,CAAsB;;;;;;;;gBAQhD,IAAA,yBAAc,EAAC,GAAG,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;IAEjD,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IACb,IAAI,IAAI,KAAK,yBAAS,CAAC,EAAE,EAAE;QACzB,OAAO,IAAA,uBAAG,EAAA;qBACK,gBAAgB;OAC9B,CAAC;KACH;SAAM,IAAI,IAAI,KAAK,yBAAS,CAAC,GAAG,EAAE;QACjC,OAAO,IAAA,uBAAG,EAAA;sBACM,IAAA,yBAAc,EAAC,CAAC,EAAE,cAAM,CAAC,IAAI,CAAC,IAAI,CAAC;qBACpC,iBAAiB;OAC/B,CAAC;KACH;AACH,CAAC;CACF,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ActionsUnion } from '../../../utils';
|
|
2
|
-
export declare enum ModalFade {
|
|
3
|
-
IN = "in",
|
|
4
|
-
OUT = "out"
|
|
5
|
-
}
|
|
6
|
-
export interface ReducerModal {
|
|
7
|
-
isOpen: boolean;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
fade?: ModalFade;
|
|
10
|
-
}
|
|
11
|
-
declare enum ModalActionsEnum {
|
|
12
|
-
OPEN = "open",
|
|
13
|
-
CLOSE = "close",
|
|
14
|
-
SHOW = "show",
|
|
15
|
-
HIDE = "hide",
|
|
16
|
-
TOGGLE_LOAD = "toggleLoad"
|
|
17
|
-
}
|
|
18
|
-
export declare const ModalActions: {
|
|
19
|
-
open: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.OPEN>;
|
|
20
|
-
show: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.SHOW>;
|
|
21
|
-
hide: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.HIDE>;
|
|
22
|
-
toggleLoad: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.TOGGLE_LOAD>;
|
|
23
|
-
close: () => import("../../../utils").ActionsWithoutPayload<ModalActionsEnum.CLOSE>;
|
|
24
|
-
};
|
|
25
|
-
export declare type AcceptedActions = ActionsUnion<typeof ModalActions>;
|
|
26
|
-
export declare const reducerModal: (state: ReducerModal, { type }: AcceptedActions) => {
|
|
27
|
-
isLoading: boolean;
|
|
28
|
-
isOpen: boolean;
|
|
29
|
-
fade?: ModalFade | undefined;
|
|
30
|
-
};
|
|
31
|
-
export {};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.reducerModal = exports.ModalActions = exports.ModalFade = void 0;
|
|
15
|
-
const utils_1 = require("../../../utils");
|
|
16
|
-
var ModalFade;
|
|
17
|
-
(function (ModalFade) {
|
|
18
|
-
ModalFade["IN"] = "in";
|
|
19
|
-
ModalFade["OUT"] = "out";
|
|
20
|
-
})(ModalFade = exports.ModalFade || (exports.ModalFade = {}));
|
|
21
|
-
var ModalActionsEnum;
|
|
22
|
-
(function (ModalActionsEnum) {
|
|
23
|
-
ModalActionsEnum["OPEN"] = "open";
|
|
24
|
-
ModalActionsEnum["CLOSE"] = "close";
|
|
25
|
-
ModalActionsEnum["SHOW"] = "show";
|
|
26
|
-
ModalActionsEnum["HIDE"] = "hide";
|
|
27
|
-
ModalActionsEnum["TOGGLE_LOAD"] = "toggleLoad";
|
|
28
|
-
})(ModalActionsEnum || (ModalActionsEnum = {}));
|
|
29
|
-
exports.ModalActions = {
|
|
30
|
-
open: (0, utils_1.createAction)(ModalActionsEnum.OPEN),
|
|
31
|
-
show: (0, utils_1.createAction)(ModalActionsEnum.SHOW),
|
|
32
|
-
hide: (0, utils_1.createAction)(ModalActionsEnum.HIDE),
|
|
33
|
-
toggleLoad: (0, utils_1.createAction)(ModalActionsEnum.TOGGLE_LOAD),
|
|
34
|
-
close: (0, utils_1.createAction)(ModalActionsEnum.CLOSE)
|
|
35
|
-
};
|
|
36
|
-
const reducerModal = (state, { type }) => {
|
|
37
|
-
switch (type) {
|
|
38
|
-
case ModalActionsEnum.OPEN:
|
|
39
|
-
return Object.assign(Object.assign({}, state), { fade: ModalFade.IN, isOpen: true });
|
|
40
|
-
case ModalActionsEnum.SHOW:
|
|
41
|
-
const { fade } = state, rest = __rest(state, ["fade"]);
|
|
42
|
-
return Object.assign(Object.assign({}, rest), { isOpen: true });
|
|
43
|
-
case ModalActionsEnum.HIDE:
|
|
44
|
-
return Object.assign(Object.assign({}, state), { fade: ModalFade.OUT });
|
|
45
|
-
case ModalActionsEnum.TOGGLE_LOAD:
|
|
46
|
-
return Object.assign(Object.assign({}, state), { isLoading: !state.isLoading });
|
|
47
|
-
case ModalActionsEnum.CLOSE:
|
|
48
|
-
return {
|
|
49
|
-
isOpen: false,
|
|
50
|
-
isLoading: false
|
|
51
|
-
};
|
|
52
|
-
default:
|
|
53
|
-
throw new Error();
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
exports.reducerModal = reducerModal;
|
|
57
|
-
//# sourceMappingURL=Modal.reducer.js.map
|
|
@@ -1 +0,0 @@
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