@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.
@@ -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, assignProps, Component } from "@semcore/core";
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
- var style = (
15
+ const style = (
21
16
  /*__reshadow_css_start__*/
22
17
  (sstyled.insert(
23
18
  /*__inner_css_start__*/
24
- '.___SFullscreenModal_wf9a4_gg_,.___SFullscreenOverlay_wf9a4_gg_>div{padding:0;width:100%;height:100%}.___SFullscreenModal_wf9a4_gg_{display:flex;flex-direction:column;background:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:0}.___SClose_wf9a4_gg_{position:absolute;top:17px;right:24px}.___SBack_wf9a4_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_wf9a4_gg_:hover{color:var(--intergalactic-icon-primary-neutral-hover-active, #565861)}}.___SBackText_wf9a4_gg_{margin-left:var(--intergalactic-spacing-1x, 4px);font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SBackText_wf9a4_gg_,.___SDescription_wf9a4_gg_,.___STitle_wf9a4_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___STitle_wf9a4_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_wf9a4_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_wf9a4_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_wf9a4_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_wf9a4_gg_{min-height:52px;box-shadow:inset 0 1px 1px 0 var(--intergalactic-border-primary, #c4c7cf);box-sizing:border-box}.___SBody_wf9a4_gg_{display:flex;height:100%;overflow:auto}.___SSection_wf9a4_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_wf9a4_gg_{transition:none}}',
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
- "wf9a4_gg_"
21
+ "16ww4_gg_"
27
22
  ), /*__reshadow_css_end__*/
28
23
  {
29
- "__SFullscreenModal": "___SFullscreenModal_wf9a4_gg_",
30
- "__SClose": "___SClose_wf9a4_gg_",
31
- "__SBackText": "___SBackText_wf9a4_gg_",
32
- "__STitle": "___STitle_wf9a4_gg_",
33
- "__SDescription": "___SDescription_wf9a4_gg_",
34
- "__SHeader": "___SHeader_wf9a4_gg_",
35
- "__SFooter": "___SFooter_wf9a4_gg_",
36
- "__SBody": "___SBody_wf9a4_gg_",
37
- "__SSection": "___SSection_wf9a4_gg_",
38
- "__SFullscreenOverlay": "___SFullscreenOverlay_wf9a4_gg_",
39
- "__SBack": "___SBack_wf9a4_gg_"
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
- var FullscreenModalRoot = /* @__PURE__ */ (function(_Component) {
43
- function FullscreenModalRoot2() {
44
- var _this;
45
- _classCallCheck(this, FullscreenModalRoot2);
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(_this, "bindHandlerClose", function(trigger) {
54
- return function(e) {
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
- _inherits(FullscreenModalRoot2, _Component);
61
- return _createClass(FullscreenModalRoot2, [{
62
- key: "getCloseProps",
63
- value: function getCloseProps() {
64
- var getI18nText = this.asProps.getI18nText;
65
- return {
66
- onClick: this.bindHandlerClose("onCloseClick"),
67
- getI18nText
68
- };
69
- }
70
- }, {
71
- key: "getBackProps",
72
- value: function getBackProps() {
73
- return {
74
- onClick: this.bindHandlerClose("onBackClick")
75
- };
76
- }
77
- }, {
78
- key: "getTitleProps",
79
- value: function getTitleProps() {
80
- var _this2 = this;
81
- var uid = this.asProps.uid;
82
- var setHasTitle = function setHasTitle2() {
83
- return _this2.setState({
84
- hasTitle: true
85
- });
86
- };
87
- return {
88
- id: "igc-".concat(uid, "-title"),
89
- setHasTitle
90
- };
91
- }
92
- }, {
93
- key: "render",
94
- value: function render() {
95
- var _ref = this.asProps, _ref0;
96
- var SFullscreenModal = Modal.Window;
97
- 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;
98
- var hasTitle = this.state.hasTitle;
99
- var SFullscreenOverlay = Modal.Overlay;
100
- return _ref0 = sstyled(styles), /* @__PURE__ */ React.createElement(Modal, _ref0.cn("Modal", {
101
- "closable": false,
102
- "visible": visible,
103
- "onClose": onClose,
104
- "duration": duration,
105
- "disablePortal": disablePortal
106
- }), /* @__PURE__ */ React.createElement(SFullscreenOverlay, _ref0.cn("SFullscreenOverlay", {}), /* @__PURE__ */ React.createElement(SFullscreenModal, _ref0.cn("SFullscreenModal", _objectSpread({}, assignProps({
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 ? "igc-".concat(uid, "-title") : void 0
110
- }, _ref))), closable && /* @__PURE__ */ React.createElement(FullscreenModal.Close, null), /* @__PURE__ */ React.createElement(Children, _ref0.cn("Children", {})))));
111
- }
112
- }]);
113
- })(Component);
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
- var SHeader = Box;
124
- var Children = props.Children, styles = props.styles, title = props.title, description = props.description;
125
- return _ref1 = sstyled(styles), /* @__PURE__ */ React.createElement(SHeader, _ref1.cn("SHeader", _objectSpread({}, assignProps({}, _ref2))), title && /* @__PURE__ */ React.createElement(FullscreenModal.Title, {
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
- var SBody = Box;
134
- return _ref10 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SBody, _ref10.cn("SBody", _objectSpread({}, assignProps({}, _ref3))));
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
- var SSection = Box;
139
- return _ref11 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SSection, _ref11.cn("SSection", _objectSpread({}, assignProps({
140
- "tag": "section"
141
- }, _ref4))));
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
- var SFooter = Flex;
146
- return _ref12 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SFooter, _ref12.cn("SFooter", _objectSpread({}, assignProps({}, _ref5))));
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
- var SClose = Button;
151
- var getI18nText = props.getI18nText;
152
- return _ref13 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SClose, _ref13.cn("SClose", _objectSpread({}, assignProps({
153
- "use": "tertiary",
154
- "size": "l",
155
- "theme": "muted",
156
- "aria-label": getI18nText("close")
157
- }, _ref6))), /* @__PURE__ */ React.createElement(Button.Addon, {
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
- var STitle = Text;
167
- var setHasTitle = props.setHasTitle;
168
- React.useEffect(function() {
169
- return setHasTitle();
170
- });
171
- return _ref14 = sstyled(props.styles), /* @__PURE__ */ React.createElement(STitle, _ref14.cn("STitle", _objectSpread({}, assignProps({
172
- "tag": "h2"
173
- }, _ref7))));
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
- var SDescription = Text;
178
- return _ref15 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SDescription, _ref15.cn("SDescription", _objectSpread({}, assignProps({}, _ref8))));
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
- var SBack = Box;
183
- var SBackText = Text;
184
- var Children = props.Children, styles = props.styles;
185
- return _ref16 = sstyled(styles), /* @__PURE__ */ React.createElement(SBack, _ref16.cn("SBack", _objectSpread({}, assignProps({
186
- "tag": "button",
187
- "tabIndex": 0
188
- }, _ref9))), /* @__PURE__ */ React.createElement(ArrowLeft, _ref16.cn("ArrowLeft", {})), /* @__PURE__ */ React.createElement(SBackText, _ref16.cn("SBackText", {}), /* @__PURE__ */ React.createElement(Children, _ref16.cn("Children", {}))));
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
- var FullscreenModal = createComponent(FullscreenModalRoot, {
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
- white-space: nowrap;
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
- align-items: baseline;
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-2x, 8px);
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
  }
@@ -12,7 +12,7 @@ import sv from "./sv.json.mjs";
12
12
  import tr from "./tr.json.mjs";
13
13
  import vi from "./vi.json.mjs";
14
14
  import zh from "./zh.json.mjs";
15
- var localizedMessages = {
15
+ const localizedMessages = {
16
16
  de,
17
17
  en,
18
18
  es,
@@ -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, UnknownProperties, Intergalactic } from '@semcore/core';
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.2",
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.0.0"
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/testing-utils": "1.0.0",
33
- "@semcore/core": "16.5.1"
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"