@semcore/fullscreen-modal 16.1.12 → 16.1.13-prerelease.12
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 +6 -0
- package/README.md +4 -4
- package/lib/cjs/FullscreenModal.js +161 -154
- package/lib/cjs/FullscreenModal.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +3 -3
- package/lib/cjs/style/fullscreen-modal.shadow.css +5 -20
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +16 -16
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/FullscreenModal.js +150 -143
- package/lib/es6/FullscreenModal.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/style/fullscreen-modal.shadow.css +5 -20
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +15 -15
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/FullscreenModal.mjs +144 -124
- package/lib/esm/style/fullscreen-modal.shadow.css +5 -20
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +1 -1
- package/lib/types/index.d.ts +2 -10
- package/package.json +9 -8
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
-
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
-
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
|
-
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
-
import { createComponent, sstyled,
|
|
2
|
+
import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
|
|
3
|
+
import { Box, Flex } from "@semcore/base-components";
|
|
8
4
|
import Button from "@semcore/button";
|
|
9
5
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
6
|
import fire from "@semcore/core/lib/utils/fire";
|
|
11
7
|
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
-
import { Box, Flex } from "@semcore/flex-box";
|
|
13
8
|
import ArrowLeft from "@semcore/icon/ArrowLeft/m";
|
|
14
9
|
import CloseIcon from "@semcore/icon/Close/l";
|
|
15
10
|
import Modal from "@semcore/modal";
|
|
@@ -17,100 +12,97 @@ import { Text } from "@semcore/typography";
|
|
|
17
12
|
import React from "react";
|
|
18
13
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
19
14
|
/*!__reshadow-styles__:"./style/fullscreen-modal.shadow.css"*/
|
|
20
|
-
|
|
15
|
+
const style = (
|
|
21
16
|
/*__reshadow_css_start__*/
|
|
22
17
|
(sstyled.insert(
|
|
23
18
|
/*__inner_css_start__*/
|
|
24
|
-
|
|
19
|
+
".___SFullscreenModal_16ww4_gg_,.___SFullscreenOverlay_16ww4_gg_>div{padding:0;width:100%;height:100%}.___SFullscreenModal_16ww4_gg_{display:flex;flex-direction:column;background:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:0}.___SClose_16ww4_gg_{position:absolute;top:17px;right:24px}.___SBack_16ww4_gg_{cursor:pointer;position:absolute;z-index:1;top:8px;left:32px;display:flex;align-items:center;margin-bottom:var(--intergalactic-spacing-3x, 12px);color:var(--intergalactic-icon-primary-neutral, #6c6e79);font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);background:0 0;padding:0;border:0;outline:0}@media (hover:hover){.___SBack_16ww4_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SBackText_16ww4_gg_{margin-left:var(--intergalactic-spacing-1x, 4px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SDescription_16ww4_gg_,.___STitle_16ww4_gg_{word-wrap:break-word}.___STitle_16ww4_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-bold, 700);color:var(--intergalactic-text-primary, #191b23)}.___SDescription_16ww4_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);color:var(--intergalactic-text-secondary, #6c6e79)}.___SHeader_16ww4_gg_{display:flex;flex-direction:column;gap:var(--intergalactic-spacing-2x, 8px);align-items:flex-start;padding-left:var(--intergalactic-spacing-8x, 32px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-right:calc(var(--intergalactic-spacing-20x, 80px) - var(--intergalactic-spacing-2x, 8px));padding-top:var(--intergalactic-spacing-10x, 40px);box-shadow:inset 0-1px 0 var(--intergalactic-border-primary, #c4c7cf);box-sizing:border-box}.___SFooter_16ww4_gg_{min-height:52px;box-shadow:inset 0 1px 1px 0 var(--intergalactic-border-primary, #c4c7cf);box-sizing:border-box}.___SBody_16ww4_gg_{display:flex;height:100%;overflow:auto}.___SSection_16ww4_gg_{padding-top:var(--intergalactic-spacing-6x, 24px);padding-bottom:var(--intergalactic-spacing-6x, 24px);padding-left:var(--intergalactic-spacing-8x, 32px);padding-right:var(--intergalactic-spacing-8x, 32px);flex:1 1 auto}@media (prefers-reduced-motion){.___SBackText_16ww4_gg_{transition:none}}",
|
|
25
20
|
/*__inner_css_end__*/
|
|
26
|
-
"
|
|
21
|
+
"16ww4_gg_"
|
|
27
22
|
), /*__reshadow_css_end__*/
|
|
28
23
|
{
|
|
29
|
-
"__SFullscreenModal": "
|
|
30
|
-
"__SClose": "
|
|
31
|
-
"__SBackText": "
|
|
32
|
-
"__STitle": "
|
|
33
|
-
"__SDescription": "
|
|
34
|
-
"__SHeader": "
|
|
35
|
-
"__SFooter": "
|
|
36
|
-
"__SBody": "
|
|
37
|
-
"__SSection": "
|
|
38
|
-
"__SFullscreenOverlay": "
|
|
39
|
-
"__SBack": "
|
|
24
|
+
"__SFullscreenModal": "___SFullscreenModal_16ww4_gg_",
|
|
25
|
+
"__SClose": "___SClose_16ww4_gg_",
|
|
26
|
+
"__SBackText": "___SBackText_16ww4_gg_",
|
|
27
|
+
"__STitle": "___STitle_16ww4_gg_",
|
|
28
|
+
"__SDescription": "___SDescription_16ww4_gg_",
|
|
29
|
+
"__SHeader": "___SHeader_16ww4_gg_",
|
|
30
|
+
"__SFooter": "___SFooter_16ww4_gg_",
|
|
31
|
+
"__SBody": "___SBody_16ww4_gg_",
|
|
32
|
+
"__SSection": "___SSection_16ww4_gg_",
|
|
33
|
+
"__SFullscreenOverlay": "___SFullscreenOverlay_16ww4_gg_",
|
|
34
|
+
"__SBack": "___SBack_16ww4_gg_"
|
|
40
35
|
})
|
|
41
36
|
);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
47
|
-
args[_key] = arguments[_key];
|
|
48
|
-
}
|
|
49
|
-
_this = _callSuper(this, FullscreenModalRoot2, [].concat(args));
|
|
50
|
-
_defineProperty(_this, "state", {
|
|
37
|
+
class FullscreenModalRoot extends Component {
|
|
38
|
+
constructor(...args) {
|
|
39
|
+
super(...args);
|
|
40
|
+
_defineProperty(this, "state", {
|
|
51
41
|
hasTitle: false
|
|
52
42
|
});
|
|
53
|
-
_defineProperty(
|
|
54
|
-
|
|
55
|
-
fire(_this, "onClose", trigger, e);
|
|
56
|
-
};
|
|
43
|
+
_defineProperty(this, "bindHandlerClose", (trigger) => (e) => {
|
|
44
|
+
fire(this, "onClose", trigger, e);
|
|
57
45
|
});
|
|
58
|
-
return _this;
|
|
59
46
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
47
|
+
getCloseProps() {
|
|
48
|
+
const {
|
|
49
|
+
getI18nText
|
|
50
|
+
} = this.asProps;
|
|
51
|
+
return {
|
|
52
|
+
onClick: this.bindHandlerClose("onCloseClick"),
|
|
53
|
+
getI18nText
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
getBackProps() {
|
|
57
|
+
return {
|
|
58
|
+
onClick: this.bindHandlerClose("onBackClick")
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
getTitleProps() {
|
|
62
|
+
const {
|
|
63
|
+
uid
|
|
64
|
+
} = this.asProps;
|
|
65
|
+
const setHasTitle = () => this.setState({
|
|
66
|
+
hasTitle: true
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
id: `igc-${uid}-title`,
|
|
70
|
+
setHasTitle
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
var _ref = this.asProps, _ref0;
|
|
75
|
+
const SFullscreenModal = Modal.Window;
|
|
76
|
+
const {
|
|
77
|
+
styles,
|
|
78
|
+
Children,
|
|
79
|
+
onClose,
|
|
80
|
+
visible,
|
|
81
|
+
closable,
|
|
82
|
+
duration,
|
|
83
|
+
disablePortal,
|
|
84
|
+
getI18nText,
|
|
85
|
+
uid
|
|
86
|
+
} = this.asProps;
|
|
87
|
+
const {
|
|
88
|
+
hasTitle
|
|
89
|
+
} = this.state;
|
|
90
|
+
const SFullscreenOverlay = Modal.Overlay;
|
|
91
|
+
return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(Modal, _ref0.cn("Modal", {
|
|
92
|
+
"closable": false,
|
|
93
|
+
"visible": visible,
|
|
94
|
+
"onClose": onClose,
|
|
95
|
+
"duration": duration,
|
|
96
|
+
"disablePortal": disablePortal
|
|
97
|
+
}), /* @__PURE__ */ React.createElement(SFullscreenOverlay, _ref0.cn("SFullscreenOverlay", {}), /* @__PURE__ */ React.createElement(SFullscreenModal, _ref0.cn("SFullscreenModal", {
|
|
98
|
+
...assignProps({
|
|
107
99
|
"use:closable": false,
|
|
108
100
|
"aria-label": hasTitle ? void 0 : getI18nText("title"),
|
|
109
|
-
"aria-labelledby": hasTitle ?
|
|
110
|
-
}, _ref)
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
101
|
+
"aria-labelledby": hasTitle ? `igc-${uid}-title` : void 0
|
|
102
|
+
}, _ref)
|
|
103
|
+
}), closable && /* @__PURE__ */ React.createElement(FullscreenModal.Close, null), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})))));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
114
106
|
_defineProperty(FullscreenModalRoot, "displayName", "FullscreenModal");
|
|
115
107
|
_defineProperty(FullscreenModalRoot, "style", style);
|
|
116
108
|
_defineProperty(FullscreenModalRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhancement()]);
|
|
@@ -120,9 +112,16 @@ _defineProperty(FullscreenModalRoot, "defaultProps", {
|
|
|
120
112
|
});
|
|
121
113
|
function Header(props) {
|
|
122
114
|
var _ref2 = arguments[0], _ref1;
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
const SHeader = Box;
|
|
116
|
+
const {
|
|
117
|
+
Children,
|
|
118
|
+
styles,
|
|
119
|
+
title,
|
|
120
|
+
description
|
|
121
|
+
} = props;
|
|
122
|
+
return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SHeader, _ref1.cn("SHeader", {
|
|
123
|
+
...assignProps({}, _ref2)
|
|
124
|
+
}), title && /* @__PURE__ */ React.createElement(FullscreenModal.Title, {
|
|
126
125
|
children: title
|
|
127
126
|
}), description && /* @__PURE__ */ React.createElement(FullscreenModal.Description, {
|
|
128
127
|
children: description
|
|
@@ -130,31 +129,41 @@ function Header(props) {
|
|
|
130
129
|
}
|
|
131
130
|
function Body(props) {
|
|
132
131
|
var _ref3 = arguments[0], _ref10;
|
|
133
|
-
|
|
134
|
-
return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SBody, _ref10.cn("SBody",
|
|
132
|
+
const SBody = Box;
|
|
133
|
+
return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SBody, _ref10.cn("SBody", {
|
|
134
|
+
...assignProps({}, _ref3)
|
|
135
|
+
}));
|
|
135
136
|
}
|
|
136
137
|
function Section(props) {
|
|
137
138
|
var _ref4 = arguments[0], _ref11;
|
|
138
|
-
|
|
139
|
-
return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SSection, _ref11.cn("SSection",
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
const SSection = Box;
|
|
140
|
+
return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SSection, _ref11.cn("SSection", {
|
|
141
|
+
...assignProps({
|
|
142
|
+
"tag": "section"
|
|
143
|
+
}, _ref4)
|
|
144
|
+
}));
|
|
142
145
|
}
|
|
143
146
|
function Footer(props) {
|
|
144
147
|
var _ref5 = arguments[0], _ref12;
|
|
145
|
-
|
|
146
|
-
return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SFooter, _ref12.cn("SFooter",
|
|
148
|
+
const SFooter = Flex;
|
|
149
|
+
return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SFooter, _ref12.cn("SFooter", {
|
|
150
|
+
...assignProps({}, _ref5)
|
|
151
|
+
}));
|
|
147
152
|
}
|
|
148
153
|
function Close(props) {
|
|
149
154
|
var _ref6 = arguments[0], _ref13;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
const SClose = Button;
|
|
156
|
+
const {
|
|
157
|
+
getI18nText
|
|
158
|
+
} = props;
|
|
159
|
+
return _ref13 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SClose, _ref13.cn("SClose", {
|
|
160
|
+
...assignProps({
|
|
161
|
+
"use": "tertiary",
|
|
162
|
+
"size": "l",
|
|
163
|
+
"theme": "muted",
|
|
164
|
+
"aria-label": getI18nText("close")
|
|
165
|
+
}, _ref6)
|
|
166
|
+
}), /* @__PURE__ */ React.createElement(Button.Addon, {
|
|
158
167
|
ml: "7px",
|
|
159
168
|
mr: "7px"
|
|
160
169
|
}, /* @__PURE__ */ React.createElement(CloseIcon, _ref13.cn("CloseIcon", {
|
|
@@ -163,31 +172,42 @@ function Close(props) {
|
|
|
163
172
|
}
|
|
164
173
|
function Title(props) {
|
|
165
174
|
var _ref7 = arguments[0], _ref14;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
return _ref14 = sstyled(props.styles), /* @__PURE__ */ React.createElement(STitle, _ref14.cn("STitle",
|
|
172
|
-
|
|
173
|
-
|
|
175
|
+
const STitle = Text;
|
|
176
|
+
const {
|
|
177
|
+
setHasTitle
|
|
178
|
+
} = props;
|
|
179
|
+
React.useEffect(() => setHasTitle());
|
|
180
|
+
return _ref14 = sstyled(props.styles), /* @__PURE__ */ React.createElement(STitle, _ref14.cn("STitle", {
|
|
181
|
+
...assignProps({
|
|
182
|
+
"tag": "h2"
|
|
183
|
+
}, _ref7)
|
|
184
|
+
}));
|
|
174
185
|
}
|
|
175
186
|
function Description(props) {
|
|
176
187
|
var _ref8 = arguments[0], _ref15;
|
|
177
|
-
|
|
178
|
-
return _ref15 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SDescription, _ref15.cn("SDescription",
|
|
188
|
+
const SDescription = Text;
|
|
189
|
+
return _ref15 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SDescription, _ref15.cn("SDescription", {
|
|
190
|
+
...assignProps({
|
|
191
|
+
"tag": "p"
|
|
192
|
+
}, _ref8)
|
|
193
|
+
}));
|
|
179
194
|
}
|
|
180
195
|
function Back(props) {
|
|
181
196
|
var _ref9 = arguments[0], _ref16;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
197
|
+
const SBack = Box;
|
|
198
|
+
const SBackText = Text;
|
|
199
|
+
const {
|
|
200
|
+
Children,
|
|
201
|
+
styles
|
|
202
|
+
} = props;
|
|
203
|
+
return _ref16 = sstyled(styles), /* @__PURE__ */ React.createElement(SBack, _ref16.cn("SBack", {
|
|
204
|
+
...assignProps({
|
|
205
|
+
"tag": "button",
|
|
206
|
+
"tabIndex": 0
|
|
207
|
+
}, _ref9)
|
|
208
|
+
}), /* @__PURE__ */ React.createElement(ArrowLeft, _ref16.cn("ArrowLeft", {})), /* @__PURE__ */ React.createElement(SBackText, _ref16.cn("SBackText", {}), /* @__PURE__ */ React.createElement(Children, _ref16.cn("Children", {}))));
|
|
189
209
|
}
|
|
190
|
-
|
|
210
|
+
const FullscreenModal = createComponent(FullscreenModalRoot, {
|
|
191
211
|
Header,
|
|
192
212
|
Footer,
|
|
193
213
|
Close,
|
|
@@ -55,9 +55,7 @@ SBackText {
|
|
|
55
55
|
|
|
56
56
|
STitle,
|
|
57
57
|
SDescription {
|
|
58
|
-
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
text-overflow: ellipsis;
|
|
58
|
+
overflow-wrap: break-word;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
STitle {
|
|
@@ -68,35 +66,22 @@ STitle {
|
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
SDescription {
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: baseline;
|
|
73
69
|
font-size: var(--intergalactic-fs-100, 12px);
|
|
74
70
|
line-height: var(--intergalactic-lh-100, 133%);
|
|
75
71
|
color: var(--intergalactic-text-secondary, #6c6e79);
|
|
76
|
-
|
|
77
|
-
&::before {
|
|
78
|
-
content: '';
|
|
79
|
-
position: relative;
|
|
80
|
-
top: var(--intergalactic-spacing-1x, 4px);
|
|
81
|
-
display: block;
|
|
82
|
-
margin-left: var(--intergalactic-spacing-3x, 12px);
|
|
83
|
-
margin-right: var(--intergalactic-spacing-3x, 12px);
|
|
84
|
-
height: 24px;
|
|
85
|
-
width: 1px;
|
|
86
|
-
background-color: var(--intergalactic-border-primary, #c4c7cf);
|
|
87
|
-
}
|
|
88
72
|
}
|
|
89
73
|
|
|
90
74
|
SHeader {
|
|
91
75
|
display: flex;
|
|
92
|
-
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: var(--intergalactic-spacing-2x, 8px);
|
|
78
|
+
align-items: flex-start;
|
|
93
79
|
padding-left: var(--intergalactic-spacing-8x, 32px);
|
|
94
|
-
padding-bottom: var(--intergalactic-spacing-
|
|
80
|
+
padding-bottom: var(--intergalactic-spacing-4x, 16px);
|
|
95
81
|
padding-right: calc(
|
|
96
82
|
var(--intergalactic-spacing-20x, 80px) - var(--intergalactic-spacing-2x, 8px)
|
|
97
83
|
);
|
|
98
84
|
padding-top: var(--intergalactic-spacing-10x, 40px);
|
|
99
|
-
min-height: 76px;
|
|
100
85
|
box-shadow: inset 0 -1px 0 var(--intergalactic-border-primary, #c4c7cf);
|
|
101
86
|
box-sizing: border-box;
|
|
102
87
|
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { Flex, Box, BoxProps } from '@semcore/base-components';
|
|
1
2
|
import type Button from '@semcore/button';
|
|
2
|
-
import type { PropGetterFn,
|
|
3
|
-
import type { Flex, Box, BoxProps } from '@semcore/flex-box';
|
|
3
|
+
import type { PropGetterFn, Intergalactic } from '@semcore/core';
|
|
4
4
|
import type { ModalProps } from '@semcore/modal';
|
|
5
5
|
import type { Text } from '@semcore/typography';
|
|
6
6
|
|
|
7
|
-
/** @deprecated */
|
|
8
|
-
export interface IFullscreenModalProps extends FullscreenModalProps, UnknownProperties {}
|
|
9
7
|
export type FullscreenModalProps = ModalProps & {
|
|
10
8
|
/** Function that is invoked when hiding a component */
|
|
11
9
|
onClose?: (
|
|
@@ -14,10 +12,6 @@ export type FullscreenModalProps = ModalProps & {
|
|
|
14
12
|
) => void;
|
|
15
13
|
};
|
|
16
14
|
|
|
17
|
-
/** @deprecated */
|
|
18
|
-
export interface IFullscreenModalHeaderProps
|
|
19
|
-
extends FullscreenModalHeaderProps,
|
|
20
|
-
UnknownProperties {}
|
|
21
15
|
export type FullscreenModalHeaderProps = BoxProps & {
|
|
22
16
|
/** Title content displayed in the modal header */
|
|
23
17
|
title?: React.ReactNode;
|
|
@@ -25,8 +19,6 @@ export type FullscreenModalHeaderProps = BoxProps & {
|
|
|
25
19
|
description?: React.ReactNode;
|
|
26
20
|
};
|
|
27
21
|
|
|
28
|
-
/** @deprecated */
|
|
29
|
-
export interface IFullscreenModalContext extends FullscreenModalContext, UnknownProperties {}
|
|
30
22
|
export type FullscreenModalContext = {
|
|
31
23
|
getBackProps: PropGetterFn;
|
|
32
24
|
getCloseProps: PropGetterFn;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/fullscreen-modal",
|
|
3
3
|
"description": "Semrush FullscreenModal Component",
|
|
4
|
-
"version": "16.1.12",
|
|
4
|
+
"version": "16.1.13-prerelease.12",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/icon": "16.7.3",
|
|
18
17
|
"@semcore/modal": "16.1.12",
|
|
19
|
-
"@semcore/typography": "16.3.
|
|
20
|
-
"@semcore/button": "16.0.12"
|
|
21
|
-
"@semcore/flex-box": "16.0.11"
|
|
18
|
+
"@semcore/typography": "16.3.3-prerelease.12",
|
|
19
|
+
"@semcore/button": "16.0.13-prerelease.12"
|
|
22
20
|
},
|
|
23
21
|
"peerDependencies": {
|
|
24
|
-
"@semcore/base-components": "^16.
|
|
22
|
+
"@semcore/base-components": "^16.4.3-prerelease.12",
|
|
23
|
+
"@semcore/icon": "^16.7.2-prerelease.12"
|
|
25
24
|
},
|
|
26
25
|
"repository": {
|
|
27
26
|
"type": "git",
|
|
@@ -29,8 +28,10 @@
|
|
|
29
28
|
"directory": "semcore/fullscreen-modal"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
|
-
"@semcore/
|
|
33
|
-
"@semcore/
|
|
31
|
+
"@semcore/core": "16.5.1",
|
|
32
|
+
"@semcore/base-components": "16.4.3-prerelease.12",
|
|
33
|
+
"@semcore/icon": "16.7.2-prerelease.12",
|
|
34
|
+
"@semcore/testing-utils": "1.0.0"
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
36
37
|
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|