@semcore/fullscreen-modal 16.0.0-prerelease.4 → 16.0.0-prerelease.7
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/esm/FullscreenModal.mjs +159 -133
- package/lib/esm/index.mjs +2 -2
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
- package/lib/esm/translations/de.json.mjs +8 -6
- package/lib/esm/translations/en.json.mjs +8 -6
- package/lib/esm/translations/es.json.mjs +8 -6
- package/lib/esm/translations/fr.json.mjs +8 -6
- package/lib/esm/translations/it.json.mjs +8 -6
- package/lib/esm/translations/ja.json.mjs +8 -6
- package/lib/esm/translations/ko.json.mjs +8 -6
- package/lib/esm/translations/nl.json.mjs +8 -6
- package/lib/esm/translations/pl.json.mjs +8 -6
- package/lib/esm/translations/pt.json.mjs +8 -6
- package/lib/esm/translations/sv.json.mjs +8 -6
- package/lib/esm/translations/tr.json.mjs +8 -6
- package/lib/esm/translations/vi.json.mjs +8 -6
- package/lib/esm/translations/zh.json.mjs +8 -6
- package/package.json +7 -7
|
@@ -1,179 +1,205 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { sstyled
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { Box
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { Text
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { localizedMessages
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
var
|
|
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 _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import Modal from "@semcore/modal";
|
|
11
|
+
import { Box, Flex } from "@semcore/flex-box";
|
|
12
|
+
import CloseIcon from "@semcore/icon/Close/l";
|
|
13
|
+
import ArrowLeft from "@semcore/icon/ArrowLeft/m";
|
|
14
|
+
import { Text } from "@semcore/typography";
|
|
15
|
+
import Button from "@semcore/button";
|
|
16
|
+
import fire from "@semcore/core/lib/utils/fire";
|
|
17
|
+
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
18
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
19
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
20
|
+
import keyboardFocusEnhance from "@semcore/core/lib/utils/enhances/keyboardFocusEnhance";
|
|
21
|
+
var style = (
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
|
-
(
|
|
23
|
+
(sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
25
|
'.___SFullscreenOverlay_4xen9_gg_{padding:0}.___SFullscreenModal_4xen9_gg_{height:100%;display:flex;flex-direction:column;width:100%;background:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:0;padding:0}.___SClose_4xen9_gg_{position:absolute;top:17px;right:24px}.___SBack_4xen9_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_4xen9_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SBack_4xen9_gg_.__keyboardFocused_4xen9_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SBackText_4xen9_gg_{margin-left:var(--intergalactic-spacing-1x, 4px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBackText_4xen9_gg_,.___SDescription_4xen9_gg_,.___STitle_4xen9_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___STitle_4xen9_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_4xen9_gg_{display:flex;align-items:baseline;font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);color:var(--intergalactic-text-secondary, #6c6e79)}.___SDescription_4xen9_gg_::before{content:"";position:relative;top:var(--intergalactic-spacing-1x, 4px);display:block;margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px);height:24px;width:1px;background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SHeader_4xen9_gg_{display:flex;align-items:baseline;padding-left:var(--intergalactic-spacing-8x, 32px);padding-bottom:var(--intergalactic-spacing-2x, 8px);padding-right:calc(var(--intergalactic-spacing-20x, 80px) - var(--intergalactic-spacing-2x, 8px));padding-top:var(--intergalactic-spacing-10x, 40px);min-height:76px;box-shadow:inset 0-1px 0 var(--intergalactic-border-primary, #c4c7cf);box-sizing:border-box}.___SFooter_4xen9_gg_{min-height:52px;box-shadow:inset 0 1px 1px 0 var(--intergalactic-border-primary, #c4c7cf);box-sizing:border-box}.___SBody_4xen9_gg_{display:flex;height:100%;overflow:auto}.___SSection_4xen9_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_4xen9_gg_{transition:none}}',
|
|
26
26
|
"4xen9_gg_"
|
|
27
27
|
), {
|
|
28
|
-
__SFullscreenOverlay: "___SFullscreenOverlay_4xen9_gg_",
|
|
29
|
-
__SFullscreenModal: "___SFullscreenModal_4xen9_gg_",
|
|
30
|
-
__SClose: "___SClose_4xen9_gg_",
|
|
31
|
-
__SBack: "___SBack_4xen9_gg_",
|
|
32
|
-
_keyboardFocused: "__keyboardFocused_4xen9_gg_",
|
|
33
|
-
__SBackText: "___SBackText_4xen9_gg_",
|
|
34
|
-
__STitle: "___STitle_4xen9_gg_",
|
|
35
|
-
__SDescription: "___SDescription_4xen9_gg_",
|
|
36
|
-
__SHeader: "___SHeader_4xen9_gg_",
|
|
37
|
-
__SFooter: "___SFooter_4xen9_gg_",
|
|
38
|
-
__SBody: "___SBody_4xen9_gg_",
|
|
39
|
-
__SSection: "___SSection_4xen9_gg_"
|
|
28
|
+
"__SFullscreenOverlay": "___SFullscreenOverlay_4xen9_gg_",
|
|
29
|
+
"__SFullscreenModal": "___SFullscreenModal_4xen9_gg_",
|
|
30
|
+
"__SClose": "___SClose_4xen9_gg_",
|
|
31
|
+
"__SBack": "___SBack_4xen9_gg_",
|
|
32
|
+
"_keyboardFocused": "__keyboardFocused_4xen9_gg_",
|
|
33
|
+
"__SBackText": "___SBackText_4xen9_gg_",
|
|
34
|
+
"__STitle": "___STitle_4xen9_gg_",
|
|
35
|
+
"__SDescription": "___SDescription_4xen9_gg_",
|
|
36
|
+
"__SHeader": "___SHeader_4xen9_gg_",
|
|
37
|
+
"__SFooter": "___SFooter_4xen9_gg_",
|
|
38
|
+
"__SBody": "___SBody_4xen9_gg_",
|
|
39
|
+
"__SSection": "___SSection_4xen9_gg_"
|
|
40
40
|
})
|
|
41
|
-
)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
);
|
|
42
|
+
var FullscreenModalRoot = /* @__PURE__ */ function(_Component) {
|
|
43
|
+
_inherits(FullscreenModalRoot2, _Component);
|
|
44
|
+
var _super = _createSuper(FullscreenModalRoot2);
|
|
45
|
+
function FullscreenModalRoot2() {
|
|
46
|
+
var _this;
|
|
47
|
+
_classCallCheck(this, FullscreenModalRoot2);
|
|
48
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
49
|
+
args[_key] = arguments[_key];
|
|
50
|
+
}
|
|
51
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
52
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
53
|
+
hasTitle: false
|
|
54
|
+
});
|
|
55
|
+
_defineProperty(_assertThisInitialized(_this), "bindHandlerClose", function(trigger) {
|
|
56
|
+
return function(e) {
|
|
57
|
+
fire(_assertThisInitialized(_this), "onClose", trigger, e);
|
|
54
58
|
};
|
|
55
|
-
})
|
|
59
|
+
});
|
|
60
|
+
return _this;
|
|
56
61
|
}
|
|
57
|
-
|
|
62
|
+
_createClass(FullscreenModalRoot2, [{
|
|
58
63
|
key: "getCloseProps",
|
|
59
|
-
value: function() {
|
|
60
|
-
var
|
|
64
|
+
value: function getCloseProps() {
|
|
65
|
+
var getI18nText = this.asProps.getI18nText;
|
|
61
66
|
return {
|
|
62
67
|
onClick: this.bindHandlerClose("onCloseClick"),
|
|
63
|
-
getI18nText
|
|
68
|
+
getI18nText
|
|
64
69
|
};
|
|
65
70
|
}
|
|
66
71
|
}, {
|
|
67
72
|
key: "getBackProps",
|
|
68
|
-
value: function() {
|
|
73
|
+
value: function getBackProps() {
|
|
69
74
|
return {
|
|
70
75
|
onClick: this.bindHandlerClose("onBackClick")
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
}, {
|
|
74
79
|
key: "getTitleProps",
|
|
75
|
-
value: function() {
|
|
76
|
-
var
|
|
77
|
-
|
|
78
|
-
|
|
80
|
+
value: function getTitleProps() {
|
|
81
|
+
var _this2 = this;
|
|
82
|
+
var uid = this.asProps.uid;
|
|
83
|
+
var setHasTitle = function setHasTitle2() {
|
|
84
|
+
return _this2.setState({
|
|
85
|
+
hasTitle: true
|
|
79
86
|
});
|
|
80
87
|
};
|
|
81
88
|
return {
|
|
82
|
-
id: "igc-".concat(
|
|
83
|
-
setHasTitle
|
|
89
|
+
id: "igc-".concat(uid, "-title"),
|
|
90
|
+
setHasTitle
|
|
84
91
|
};
|
|
85
92
|
}
|
|
86
93
|
}, {
|
|
87
94
|
key: "render",
|
|
88
|
-
value: function() {
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
95
|
+
value: function render() {
|
|
96
|
+
var _ref = this.asProps, _ref10;
|
|
97
|
+
var SFullscreenModal = Modal.Window;
|
|
98
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, Children = _this$asProps.Children, onClose = _this$asProps.onClose, visible = _this$asProps.visible, closable = _this$asProps.closable, duration = _this$asProps.duration, disablePortal = _this$asProps.disablePortal, getI18nText = _this$asProps.getI18nText, uid = _this$asProps.uid;
|
|
99
|
+
var hasTitle = this.state.hasTitle;
|
|
100
|
+
var SFullscreenOverlay = Modal.Overlay;
|
|
101
|
+
return _ref10 = sstyled(styles), /* @__PURE__ */ React.createElement(Modal, _ref10.cn("Modal", {
|
|
102
|
+
"closable": false,
|
|
103
|
+
"visible": visible,
|
|
104
|
+
"onClose": onClose,
|
|
105
|
+
"duration": duration,
|
|
106
|
+
"disablePortal": disablePortal
|
|
107
|
+
}), /* @__PURE__ */ React.createElement(SFullscreenOverlay, _ref10.cn("SFullscreenOverlay", {}), /* @__PURE__ */ React.createElement(SFullscreenModal, _ref10.cn("SFullscreenModal", _objectSpread({}, assignProps({
|
|
108
|
+
"aria-label": hasTitle ? void 0 : getI18nText("title"),
|
|
109
|
+
"aria-labelledby": hasTitle ? "igc-".concat(uid, "-title") : void 0
|
|
110
|
+
}, _ref))), closable && /* @__PURE__ */ React.createElement(FullscreenModal.Close, null), /* @__PURE__ */ React.createElement(Children, _ref10.cn("Children", {})))));
|
|
100
111
|
}
|
|
101
|
-
}])
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
112
|
+
}]);
|
|
113
|
+
return FullscreenModalRoot2;
|
|
114
|
+
}(Component);
|
|
115
|
+
_defineProperty(FullscreenModalRoot, "displayName", "FullscreenModal");
|
|
116
|
+
_defineProperty(FullscreenModalRoot, "style", style);
|
|
117
|
+
_defineProperty(FullscreenModalRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhancement()]);
|
|
118
|
+
_defineProperty(FullscreenModalRoot, "defaultProps", {
|
|
119
|
+
i18n: localizedMessages,
|
|
108
120
|
locale: "en"
|
|
109
121
|
});
|
|
110
|
-
function
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}),
|
|
115
|
-
children:
|
|
116
|
-
}), /* @__PURE__ */
|
|
122
|
+
function Header(props) {
|
|
123
|
+
var _ref2 = arguments[0], _ref11;
|
|
124
|
+
var SHeader = Box;
|
|
125
|
+
var Children = props.Children, styles = props.styles, title = props.title, description = props.description;
|
|
126
|
+
return _ref11 = sstyled(styles), /* @__PURE__ */ React.createElement(SHeader, _ref11.cn("SHeader", _objectSpread({}, assignProps({}, _ref2))), title && /* @__PURE__ */ React.createElement(FullscreenModal.Title, {
|
|
127
|
+
children: title
|
|
128
|
+
}), description && /* @__PURE__ */ React.createElement(FullscreenModal.Description, {
|
|
129
|
+
children: description
|
|
130
|
+
}), /* @__PURE__ */ React.createElement(Children, _ref11.cn("Children", {})));
|
|
117
131
|
}
|
|
118
|
-
function
|
|
119
|
-
var
|
|
120
|
-
|
|
132
|
+
function Body(props) {
|
|
133
|
+
var _ref3 = arguments[0], _ref12;
|
|
134
|
+
var SBody = Box;
|
|
135
|
+
return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SBody, _ref12.cn("SBody", _objectSpread({}, assignProps({}, _ref3))));
|
|
121
136
|
}
|
|
122
|
-
function
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
137
|
+
function Section(props) {
|
|
138
|
+
var _ref4 = arguments[0], _ref13;
|
|
139
|
+
var SSection = Box;
|
|
140
|
+
return _ref13 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SSection, _ref13.cn("SSection", _objectSpread({}, assignProps({
|
|
141
|
+
"tag": "section"
|
|
142
|
+
}, _ref4))));
|
|
127
143
|
}
|
|
128
|
-
function
|
|
129
|
-
var
|
|
130
|
-
|
|
144
|
+
function Footer(props) {
|
|
145
|
+
var _ref5 = arguments[0], _ref14;
|
|
146
|
+
var SFooter = Flex;
|
|
147
|
+
return _ref14 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SFooter, _ref14.cn("SFooter", _objectSpread({}, assignProps({}, _ref5))));
|
|
131
148
|
}
|
|
132
|
-
function
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
"
|
|
139
|
-
|
|
149
|
+
function Close(props) {
|
|
150
|
+
var _ref6 = arguments[0], _ref15;
|
|
151
|
+
var SClose = Button;
|
|
152
|
+
var getI18nText = props.getI18nText;
|
|
153
|
+
return _ref15 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SClose, _ref15.cn("SClose", _objectSpread({}, assignProps({
|
|
154
|
+
"use": "tertiary",
|
|
155
|
+
"size": "l",
|
|
156
|
+
"theme": "muted",
|
|
157
|
+
"aria-label": getI18nText("close")
|
|
158
|
+
}, _ref6))), /* @__PURE__ */ React.createElement(Button.Addon, {
|
|
140
159
|
ml: "7px",
|
|
141
160
|
mr: "7px"
|
|
142
|
-
}, /* @__PURE__ */
|
|
143
|
-
title:
|
|
161
|
+
}, /* @__PURE__ */ React.createElement(CloseIcon, _ref15.cn("CloseIcon", {
|
|
162
|
+
"title": getI18nText("close")
|
|
144
163
|
}))));
|
|
145
164
|
}
|
|
146
|
-
function
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
165
|
+
function Title(props) {
|
|
166
|
+
var _ref7 = arguments[0], _ref16;
|
|
167
|
+
var STitle = Text;
|
|
168
|
+
var setHasTitle = props.setHasTitle;
|
|
169
|
+
React.useEffect(function() {
|
|
170
|
+
return setHasTitle();
|
|
171
|
+
});
|
|
172
|
+
return _ref16 = sstyled(props.styles), /* @__PURE__ */ React.createElement(STitle, _ref16.cn("STitle", _objectSpread({}, assignProps({
|
|
173
|
+
"tag": "h2"
|
|
174
|
+
}, _ref7))));
|
|
153
175
|
}
|
|
154
|
-
function
|
|
155
|
-
var
|
|
156
|
-
|
|
176
|
+
function Description(props) {
|
|
177
|
+
var _ref8 = arguments[0], _ref17;
|
|
178
|
+
var SDescription = Text;
|
|
179
|
+
return _ref17 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SDescription, _ref17.cn("SDescription", _objectSpread({}, assignProps({}, _ref8))));
|
|
157
180
|
}
|
|
158
|
-
function
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
181
|
+
function Back(props) {
|
|
182
|
+
var _ref9 = arguments[0], _ref18;
|
|
183
|
+
var SBack = Box;
|
|
184
|
+
var SBackText = Text;
|
|
185
|
+
var Children = props.Children, styles = props.styles;
|
|
186
|
+
return _ref18 = sstyled(styles), /* @__PURE__ */ React.createElement(SBack, _ref18.cn("SBack", _objectSpread({}, assignProps({
|
|
187
|
+
"tag": "button"
|
|
188
|
+
}, _ref9))), /* @__PURE__ */ React.createElement(ArrowLeft, _ref18.cn("ArrowLeft", {})), /* @__PURE__ */ React.createElement(SBackText, _ref18.cn("SBackText", {}), /* @__PURE__ */ React.createElement(Children, _ref18.cn("Children", {}))));
|
|
163
189
|
}
|
|
164
|
-
|
|
165
|
-
var
|
|
166
|
-
Header
|
|
167
|
-
Footer
|
|
168
|
-
Close
|
|
169
|
-
Back
|
|
170
|
-
Body
|
|
171
|
-
Section
|
|
172
|
-
Title
|
|
173
|
-
Description
|
|
190
|
+
Back.enhance = [keyboardFocusEnhance()];
|
|
191
|
+
var FullscreenModal = createComponent(FullscreenModalRoot, {
|
|
192
|
+
Header,
|
|
193
|
+
Footer,
|
|
194
|
+
Close,
|
|
195
|
+
Back,
|
|
196
|
+
Body,
|
|
197
|
+
Section,
|
|
198
|
+
Title,
|
|
199
|
+
Description
|
|
174
200
|
}, {
|
|
175
|
-
parent:
|
|
201
|
+
parent: Modal
|
|
176
202
|
});
|
|
177
203
|
export {
|
|
178
|
-
|
|
204
|
+
FullscreenModal as default
|
|
179
205
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
var
|
|
16
|
-
de
|
|
17
|
-
en
|
|
18
|
-
es
|
|
19
|
-
fr
|
|
20
|
-
it
|
|
21
|
-
ja
|
|
22
|
-
ko
|
|
23
|
-
nl
|
|
24
|
-
pt
|
|
25
|
-
tr
|
|
26
|
-
vi
|
|
27
|
-
zh
|
|
28
|
-
pl
|
|
29
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import tr from "./tr.json.mjs";
|
|
11
|
+
import vi from "./vi.json.mjs";
|
|
12
|
+
import zh from "./zh.json.mjs";
|
|
13
|
+
import pl from "./pl.json.mjs";
|
|
14
|
+
import sv from "./sv.json.mjs";
|
|
15
|
+
var localizedMessages = {
|
|
16
|
+
de,
|
|
17
|
+
en,
|
|
18
|
+
es,
|
|
19
|
+
fr,
|
|
20
|
+
it,
|
|
21
|
+
ja,
|
|
22
|
+
ko,
|
|
23
|
+
nl,
|
|
24
|
+
pt,
|
|
25
|
+
tr,
|
|
26
|
+
vi,
|
|
27
|
+
zh,
|
|
28
|
+
pl,
|
|
29
|
+
sv
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
localizedMessages
|
|
33
33
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Dialogfenster";
|
|
2
|
+
const close = "Schließen";
|
|
3
|
+
const de = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
de as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Modal window";
|
|
2
|
+
const close = "Close";
|
|
3
|
+
const en = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
en as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Ventana modal";
|
|
2
|
+
const close = "Cerrar";
|
|
3
|
+
const es = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
es as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Fenêtre modale";
|
|
2
|
+
const close = "Fermer";
|
|
3
|
+
const fr = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
fr as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Finestra modale";
|
|
2
|
+
const close = "Chiudi";
|
|
3
|
+
const it = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
it as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Modaal venster";
|
|
2
|
+
const close = "Sluiten";
|
|
3
|
+
const nl = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
nl as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Okno modalne";
|
|
2
|
+
const close = "Zamknij";
|
|
3
|
+
const pl = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
pl as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Janela modal";
|
|
2
|
+
const close = "Fechar";
|
|
3
|
+
const pt = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
pt as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Modalt fönster";
|
|
2
|
+
const close = "Stäng";
|
|
3
|
+
const sv = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
sv as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Modal pencere";
|
|
2
|
+
const close = "Kapat";
|
|
3
|
+
const tr = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
tr as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const title = "Cửa sổ phương thức";
|
|
2
|
+
const close = "Đóng";
|
|
3
|
+
const vi = {
|
|
4
|
+
title,
|
|
5
|
+
close
|
|
4
6
|
};
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
close,
|
|
9
|
+
vi as default,
|
|
10
|
+
title
|
|
9
11
|
};
|
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.0.0-prerelease.
|
|
4
|
+
"version": "16.0.0-prerelease.7",
|
|
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,14 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/icon": "16.0.0-prerelease.
|
|
18
|
-
"@semcore/modal": "16.0.0-prerelease.
|
|
19
|
-
"@semcore/typography": "16.0.0-prerelease.
|
|
20
|
-
"@semcore/button": "16.0.0-prerelease.
|
|
21
|
-
"@semcore/flex-box": "16.0.0-prerelease.
|
|
17
|
+
"@semcore/icon": "16.0.0-prerelease.7",
|
|
18
|
+
"@semcore/modal": "16.0.0-prerelease.7",
|
|
19
|
+
"@semcore/typography": "16.0.0-prerelease.7",
|
|
20
|
+
"@semcore/button": "16.0.0-prerelease.7",
|
|
21
|
+
"@semcore/flex-box": "16.0.0-prerelease.7"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/base-components": "^16.0.0-prerelease.
|
|
24
|
+
"@semcore/base-components": "^16.0.0-prerelease.7"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|