@semcore/modal 16.1.13 → 17.0.0-prerelease.17

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/Modal.mjs CHANGED
@@ -1,12 +1,6 @@
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";
8
- import { FadeInOut, Slide } from "@semcore/animation";
9
- import { Flex } from "@semcore/base-components";
2
+ import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
3
+ import { Portal, FadeInOut, Flex, OutsideClick, Slide, PortalProvider } from "@semcore/base-components";
10
4
  import Button from "@semcore/button";
11
5
  import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
12
6
  import { isAdvanceMode } from "@semcore/core/lib/utils/findComponent";
@@ -19,122 +13,123 @@ import usePreventScroll from "@semcore/core/lib/utils/use/usePreventScroll";
19
13
  import { cssVariableEnhance } from "@semcore/core/lib/utils/useCssVariable";
20
14
  import { useZIndexStacking, ZIndexStackingContextProvider } from "@semcore/core/lib/utils/zIndexStacking";
21
15
  import CloseIcon from "@semcore/icon/Close/l";
22
- import OutsideClick from "@semcore/outside-click";
23
- import Portal, { PortalProvider } from "@semcore/portal";
24
16
  import { Text } from "@semcore/typography";
25
17
  import React from "react";
26
18
  import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
27
19
  /*!__reshadow-styles__:"./style/modal.shadow.css"*/
28
- var style = (
20
+ const style = (
29
21
  /*__reshadow_css_start__*/
30
22
  (sstyled.insert(
31
23
  /*__inner_css_start__*/
32
- ".___SWindow_5oobv_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_5oobv_gg_:focus{outline:0}.___SWindow_5oobv_gg_ .___STitle_5oobv_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-4x, 16px)}.___SWindow_5oobv_gg_ .___STitle_5oobv_gg_.__color_5oobv_gg_{color:var(--color_5oobv)}.___SWindow_5oobv_gg_ .___SClose_5oobv_gg_{display:inline-flex;position:absolute;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SWindow_5oobv_gg_ .___SClose_5oobv_gg_.__ghost_5oobv_gg_{right:0;top:0}.___SWindow_5oobv_gg_.__ghost_5oobv_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlayContentWrapper_5oobv_gg_{flex:1;max-width:100%;box-sizing:border-box;padding:var(--intergalactic-spacing-10x, 40px)}.___SOverlay_5oobv_gg_{display:flex;justify-content:center;flex-wrap:wrap;position:fixed;top:0;bottom:0;left:0;right:0;margin:0;background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;-webkit-overflow-scrolling:touch}.___SOverlay_5oobv_gg_ .___SOverlay_5oobv_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}@media (max-width:767px){.___SWindow_5oobv_gg_{min-width:60%}.___SOverlayContentWrapper_5oobv_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}",
24
+ ".___SWindow_1ij8i_gg_{position:relative;border-radius:var(--intergalactic-modal-rounded, 12px);background:var(--intergalactic-bg-primary-neutral, #ffffff);box-sizing:border-box;margin:auto;padding:var(--intergalactic-spacing-10x, 40px);box-shadow:var(--intergalactic-box-shadow-modal, 0px 3px 8px 0px rgba(25, 27, 35, 0.2));color:var(--intergalactic-text-primary, #191b23)}.___SWindow_1ij8i_gg_:focus{outline:0}.___SWindow_1ij8i_gg_ .___STitle_1ij8i_gg_{color:var(--intergalactic-text-primary, #191b23);font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin-bottom:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-4x, 16px)}.___SWindow_1ij8i_gg_ .___STitle_1ij8i_gg_.__color_1ij8i_gg_{color:var(--color_1ij8i)}.___SWindow_1ij8i_gg_ .___SClose_1ij8i_gg_{display:inline-flex;position:absolute;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SWindow_1ij8i_gg_ .___SClose_1ij8i_gg_.__ghost_1ij8i_gg_{right:0;top:0}.___SWindow_1ij8i_gg_.__ghost_1ij8i_gg_{background:0 0;padding:0;box-shadow:none}.___SOverlayContentWrapper_1ij8i_gg_{flex:1;max-width:100%;box-sizing:border-box;padding:var(--intergalactic-spacing-10x, 40px)}.___SOverlay_1ij8i_gg_{display:flex;justify-content:center;flex-wrap:wrap;position:fixed;top:0;bottom:0;left:0;right:0;margin:0;background:var(--intergalactic-overlay-primary, rgba(25, 27, 35, 0.7));overflow:auto;-webkit-overflow-scrolling:touch}.___SOverlay_1ij8i_gg_ .___SOverlay_1ij8i_gg_{background:var(--intergalactic-overlay-secondary, rgba(25, 27, 35, 0.4))}@media (max-width:767px){.___SWindow_1ij8i_gg_{min-width:60%}.___SOverlayContentWrapper_1ij8i_gg_{padding:var(--intergalactic-spacing-3x, 12px)}}",
33
25
  /*__inner_css_end__*/
34
- "5oobv_gg_"
26
+ "1ij8i_gg_"
35
27
  ), /*__reshadow_css_end__*/
36
28
  {
37
- "__SWindow": "___SWindow_5oobv_gg_",
38
- "_ghost": "__ghost_5oobv_gg_",
39
- "__SOverlayContentWrapper": "___SOverlayContentWrapper_5oobv_gg_",
40
- "__STitle": "___STitle_5oobv_gg_",
41
- "_color": "__color_5oobv_gg_",
42
- "--color": "--color_5oobv",
43
- "__SClose": "___SClose_5oobv_gg_",
44
- "__SOverlay": "___SOverlay_5oobv_gg_"
29
+ "__SWindow": "___SWindow_1ij8i_gg_",
30
+ "_ghost": "__ghost_1ij8i_gg_",
31
+ "__SOverlayContentWrapper": "___SOverlayContentWrapper_1ij8i_gg_",
32
+ "__STitle": "___STitle_1ij8i_gg_",
33
+ "_color": "__color_1ij8i_gg_",
34
+ "--color": "--color_1ij8i",
35
+ "__SClose": "___SClose_1ij8i_gg_",
36
+ "__SOverlay": "___SOverlay_1ij8i_gg_"
45
37
  })
46
38
  );
47
- var ModalRoot = /* @__PURE__ */ (function(_Component) {
48
- function ModalRoot2() {
49
- var _this;
50
- _classCallCheck(this, ModalRoot2);
51
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
52
- args[_key] = arguments[_key];
53
- }
54
- _this = _callSuper(this, ModalRoot2, [].concat(args));
55
- _defineProperty(_this, "state", {
39
+ class ModalRoot extends Component {
40
+ constructor(...args) {
41
+ super(...args);
42
+ _defineProperty(this, "state", {
56
43
  hasTitle: false
57
44
  });
58
- _defineProperty(_this, "handleKeyDown", function(e) {
45
+ _defineProperty(this, "handleKeyDown", (e) => {
59
46
  if (e.key === "Escape") {
60
47
  e.stopPropagation();
61
- fire(_this, "onClose", "onEscape", e);
48
+ fire(this, "onClose", "onEscape", e);
62
49
  }
63
50
  });
64
- _defineProperty(_this, "handleIconCloseClick", function(e) {
65
- fire(_this, "onClose", "onCloseClick", e);
51
+ _defineProperty(this, "handleIconCloseClick", (e) => {
52
+ fire(this, "onClose", "onCloseClick", e);
66
53
  });
67
- _defineProperty(_this, "handleOutsideClick", function(e) {
68
- fire(_this, "onClose", "onOutsideClick", e);
54
+ _defineProperty(this, "handleOutsideClick", (e) => {
55
+ fire(this, "onClose", "onOutsideClick", e);
69
56
  });
70
- return _this;
71
57
  }
72
- _inherits(ModalRoot2, _Component);
73
- return _createClass(ModalRoot2, [{
74
- key: "getOverlayProps",
75
- value: function getOverlayProps() {
76
- var _this$asProps = this.asProps, duration = _this$asProps.duration, visible = _this$asProps.visible, animationsDisabled = _this$asProps.animationsDisabled, disablePreventScroll = _this$asProps.disablePreventScroll;
77
- return {
78
- duration,
79
- visible,
80
- onOutsideClick: this.handleOutsideClick,
81
- animationsDisabled,
82
- disablePreventScroll
83
- };
84
- }
85
- }, {
86
- key: "getWindowProps",
87
- value: function getWindowProps() {
88
- var _this$asProps2 = this.asProps, visible = _this$asProps2.visible, closable = _this$asProps2.closable, getI18nText = _this$asProps2.getI18nText, uid = _this$asProps2.uid, duration = _this$asProps2.duration, animationsDisabled = _this$asProps2.animationsDisabled;
89
- var hasTitle = this.state.hasTitle;
90
- return {
91
- visible,
92
- closable,
93
- "onKeyDown": this.handleKeyDown,
94
- "aria-label": hasTitle ? void 0 : getI18nText("title"),
95
- "aria-labelledby": hasTitle ? "igc-".concat(uid, "-title") : void 0,
96
- duration,
97
- animationsDisabled
98
- };
99
- }
100
- }, {
101
- key: "getCloseProps",
102
- value: function getCloseProps() {
103
- var _this$asProps3 = this.asProps, getI18nText = _this$asProps3.getI18nText, ghost = _this$asProps3.ghost;
104
- return {
105
- onClick: this.handleIconCloseClick,
106
- getI18nText,
107
- ghost
108
- };
109
- }
110
- }, {
111
- key: "getTitleProps",
112
- value: function getTitleProps() {
113
- var _this2 = this;
114
- var uid = this.asProps.uid;
115
- var setHasTitle = function setHasTitle2() {
116
- return _this2.setState({
117
- hasTitle: true
118
- });
119
- };
120
- return {
121
- id: "igc-".concat(uid, "-title"),
122
- setHasTitle
123
- };
124
- }
125
- }, {
126
- key: "render",
127
- value: function render() {
128
- var _ref = this.asProps;
129
- var _this$asProps4 = this.asProps, Children = _this$asProps4.Children, disablePortal = _this$asProps4.disablePortal, forcedAdvancedMode = _this$asProps4.forcedAdvancedMode, ignorePortalsStacking = _this$asProps4.ignorePortalsStacking;
130
- var advancedMode = forcedAdvancedMode || isAdvanceMode(Children, [Modal.Overlay.displayName, Modal.Window.displayName]);
131
- return /* @__PURE__ */ React.createElement(Portal, {
132
- disablePortal,
133
- ignorePortalsStacking
134
- }, advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(Modal.Overlay, null, /* @__PURE__ */ React.createElement(Modal.Window, assignProps({}, _ref))));
135
- }
136
- }]);
137
- })(Component);
58
+ getOverlayProps() {
59
+ const {
60
+ duration,
61
+ visible,
62
+ animationsDisabled,
63
+ disablePreventScroll
64
+ } = this.asProps;
65
+ return {
66
+ duration,
67
+ visible,
68
+ onOutsideClick: this.handleOutsideClick,
69
+ animationsDisabled,
70
+ disablePreventScroll
71
+ };
72
+ }
73
+ getWindowProps() {
74
+ const {
75
+ visible,
76
+ closable,
77
+ getI18nText,
78
+ uid,
79
+ duration,
80
+ animationsDisabled
81
+ } = this.asProps;
82
+ const {
83
+ hasTitle
84
+ } = this.state;
85
+ return {
86
+ visible,
87
+ closable,
88
+ "onKeyDown": this.handleKeyDown,
89
+ "aria-label": hasTitle ? void 0 : getI18nText("title"),
90
+ "aria-labelledby": hasTitle ? `igc-${uid}-title` : void 0,
91
+ duration,
92
+ animationsDisabled
93
+ };
94
+ }
95
+ getCloseProps() {
96
+ const {
97
+ getI18nText,
98
+ ghost
99
+ } = this.asProps;
100
+ return {
101
+ onClick: this.handleIconCloseClick,
102
+ getI18nText,
103
+ ghost
104
+ };
105
+ }
106
+ getTitleProps() {
107
+ const {
108
+ uid
109
+ } = this.asProps;
110
+ const setHasTitle = () => this.setState({
111
+ hasTitle: true
112
+ });
113
+ return {
114
+ id: `igc-${uid}-title`,
115
+ setHasTitle
116
+ };
117
+ }
118
+ render() {
119
+ var _ref = this.asProps;
120
+ const {
121
+ Children,
122
+ disablePortal,
123
+ forcedAdvancedMode,
124
+ ignorePortalsStacking
125
+ } = this.asProps;
126
+ const advancedMode = forcedAdvancedMode || isAdvanceMode(Children, [Modal.Overlay.displayName, Modal.Window.displayName]);
127
+ return /* @__PURE__ */ React.createElement(Portal, {
128
+ disablePortal,
129
+ ignorePortalsStacking
130
+ }, advancedMode ? /* @__PURE__ */ React.createElement(Children, null) : /* @__PURE__ */ React.createElement(Modal.Overlay, null, /* @__PURE__ */ React.createElement(Modal.Window, assignProps({}, _ref))));
131
+ }
132
+ }
138
133
  _defineProperty(ModalRoot, "displayName", "Modal");
139
134
  _defineProperty(ModalRoot, "style", style);
140
135
  _defineProperty(ModalRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhancement(), cssVariableEnhance({
@@ -151,20 +146,28 @@ _defineProperty(ModalRoot, "defaultProps", {
151
146
  });
152
147
  function Window(props) {
153
148
  var _ref2 = arguments[0], _ref6;
154
- var SWindow = Slide;
155
- var Children = props.Children, styles = props.styles, visible = props.visible, closable = props.closable, duration = props.duration;
156
- var windowRef = React.useRef(null);
149
+ const SWindow = Slide;
150
+ const {
151
+ Children,
152
+ styles,
153
+ visible,
154
+ closable,
155
+ duration
156
+ } = props;
157
+ const windowRef = React.useRef(null);
157
158
  useFocusLock(windowRef, "enforced", "auto", !visible, true);
158
- return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SWindow, _ref6.cn("SWindow", _objectSpread({}, assignProps({
159
- "initialAnimation": true,
160
- "slideOrigin": "top",
161
- "visible": visible,
162
- "role": "dialog",
163
- "aria-modal": true,
164
- "duration": duration,
165
- "ref": windowRef,
166
- "tabIndex": -1
167
- }, _ref2))), /* @__PURE__ */ React.createElement(ZIndexStackingContextProvider, _ref6.cn("ZIndexStackingContextProvider", {
159
+ return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SWindow, _ref6.cn("SWindow", {
160
+ ...assignProps({
161
+ "initialAnimation": true,
162
+ "slideOrigin": "top",
163
+ "visible": visible,
164
+ "role": "dialog",
165
+ "aria-modal": true,
166
+ "duration": duration,
167
+ "ref": windowRef,
168
+ "tabIndex": -1
169
+ }, _ref2)
170
+ }), /* @__PURE__ */ React.createElement(ZIndexStackingContextProvider, _ref6.cn("ZIndexStackingContextProvider", {
168
171
  "designToken": "z-index-modal"
169
172
  }), /* @__PURE__ */ React.createElement(PortalProvider, _ref6.cn("PortalProvider", {
170
173
  "value": windowRef
@@ -172,16 +175,23 @@ function Window(props) {
172
175
  }
173
176
  function Overlay(props) {
174
177
  var _ref3 = arguments[0], _ref7;
175
- var SOverlay = FadeInOut;
176
- var SOverlayContentWrapper = Flex;
177
- var Children = props.Children, styles = props.styles, onOutsideClick = props.onOutsideClick, visible = props.visible;
178
- var overlayContentWrapperRef = React.useRef(null);
178
+ const SOverlay = FadeInOut;
179
+ const SOverlayContentWrapper = Flex;
180
+ const {
181
+ Children,
182
+ styles,
183
+ onOutsideClick,
184
+ visible
185
+ } = props;
186
+ const overlayContentWrapperRef = React.useRef(null);
179
187
  usePreventScroll(visible, props.disablePreventScroll);
180
188
  useContextTheme(overlayContentWrapperRef, visible);
181
- var zIndex = useZIndexStacking("z-index-modal");
182
- return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SOverlay, _ref7.cn("SOverlay", _objectSpread({}, assignProps({
183
- "zIndex": zIndex
184
- }, _ref3))), /* @__PURE__ */ React.createElement(SOverlayContentWrapper, _ref7.cn("SOverlayContentWrapper", {
189
+ const zIndex = useZIndexStacking("z-index-modal");
190
+ return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SOverlay, _ref7.cn("SOverlay", {
191
+ ...assignProps({
192
+ "zIndex": zIndex
193
+ }, _ref3)
194
+ }), /* @__PURE__ */ React.createElement(SOverlayContentWrapper, _ref7.cn("SOverlayContentWrapper", {
185
195
  "data-ui-name": "Modal.Overlay.ContentWrapper",
186
196
  "ref": overlayContentWrapperRef
187
197
  }), /* @__PURE__ */ React.createElement(OutsideClick, _ref7.cn("OutsideClick", {
@@ -191,14 +201,21 @@ function Overlay(props) {
191
201
  }
192
202
  function Close(props) {
193
203
  var _ref4 = arguments[0], _ref8;
194
- var SClose = Button;
195
- var Children = props.Children, hasChildren = props.children, getI18nText = props.getI18nText, ghost = props.ghost;
196
- return _ref8 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SClose, _ref8.cn("SClose", _objectSpread({}, assignProps({
197
- "use": "tertiary",
198
- "size": "l",
199
- "theme": ghost ? "invert" : "muted",
200
- "aria-label": getI18nText("close")
201
- }, _ref4))), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})) : /* @__PURE__ */ React.createElement(Button.Addon, {
204
+ const SClose = Button;
205
+ const {
206
+ Children,
207
+ children: hasChildren,
208
+ getI18nText,
209
+ ghost
210
+ } = props;
211
+ return _ref8 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SClose, _ref8.cn("SClose", {
212
+ ...assignProps({
213
+ "use": "tertiary",
214
+ "size": "l",
215
+ "theme": ghost ? "invert" : "muted",
216
+ "aria-label": getI18nText("close")
217
+ }, _ref4)
218
+ }), hasChildren ? /* @__PURE__ */ React.createElement(Children, _ref8.cn("Children", {})) : /* @__PURE__ */ React.createElement(Button.Addon, {
202
219
  ml: "7px",
203
220
  mr: "7px"
204
221
  }, /* @__PURE__ */ React.createElement(CloseIcon, _ref8.cn("CloseIcon", {
@@ -207,18 +224,22 @@ function Close(props) {
207
224
  }
208
225
  function Title(props) {
209
226
  var _ref5 = arguments[0], _ref9;
210
- var setHasTitle = props.setHasTitle, styles = props.styles, color = props.color;
211
- var STitle = Text;
212
- var resolveColor = useColorResolver();
213
- React.useEffect(function() {
214
- return setHasTitle();
215
- });
216
- return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref9.cn("STitle", _objectSpread({}, assignProps({
217
- "tag": "h2",
218
- "use:color": resolveColor(color)
219
- }, _ref5))));
227
+ const {
228
+ setHasTitle,
229
+ styles,
230
+ color
231
+ } = props;
232
+ const STitle = Text;
233
+ const resolveColor = useColorResolver();
234
+ React.useEffect(() => setHasTitle());
235
+ return _ref9 = sstyled(styles), /* @__PURE__ */ React.createElement(STitle, _ref9.cn("STitle", {
236
+ ...assignProps({
237
+ "tag": "h2",
238
+ "use:color": resolveColor(color)
239
+ }, _ref5)
240
+ }));
220
241
  }
221
- var Modal = createComponent(ModalRoot, {
242
+ const Modal = createComponent(ModalRoot, {
222
243
  Window,
223
244
  Overlay,
224
245
  Close,
@@ -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,13 +1,9 @@
1
- import type { FadeInOutProps, SlideProps } from '@semcore/animation';
1
+ import type { FadeInOutProps, SlideProps, Box, BoxProps, PortalProps } from '@semcore/base-components';
2
2
  import type Button from '@semcore/button';
3
- import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
4
- import type { Box, BoxProps } from '@semcore/flex-box';
5
- import type { PortalProps } from '@semcore/portal';
3
+ import type { PropGetterFn, Intergalactic } from '@semcore/core';
6
4
  import type { TextProps } from '@semcore/typography';
7
5
  import type React from 'react';
8
6
 
9
- /** @deprecated */
10
- export interface IModalProps extends ModalProps, UnknownProperties {}
11
7
  export type ModalProps = PortalProps &
12
8
  BoxProps &
13
9
  FadeInOutProps & {
@@ -39,12 +35,8 @@ export type ModalProps = PortalProps &
39
35
  ghost?: boolean;
40
36
  };
41
37
 
42
- /** @deprecated */
43
- export interface IWindowProps extends WindowProps, UnknownProperties {}
44
38
  export type WindowProps = BoxProps & SlideProps & {};
45
39
 
46
- /** @deprecated */
47
- export interface IModalContext extends ModalContext, UnknownProperties {}
48
40
  export type ModalContext = {
49
41
  getOverlayProps: PropGetterFn;
50
42
  getWindowProps: PropGetterFn;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/modal",
3
3
  "description": "Semrush Modal Component",
4
- "version": "16.1.13",
4
+ "version": "17.0.0-prerelease.17",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,16 +14,12 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/button": "16.0.12",
18
- "@semcore/icon": "16.7.3",
19
- "@semcore/typography": "16.3.2",
20
- "@semcore/animation": "16.0.7",
21
- "@semcore/flex-box": "16.0.11",
22
- "@semcore/outside-click": "16.0.11",
23
- "@semcore/portal": "16.0.11"
17
+ "@semcore/button": "^16.0.13-prerelease.17",
18
+ "@semcore/typography": "^16.3.3-prerelease.17"
24
19
  },
25
20
  "peerDependencies": {
26
- "@semcore/base-components": "^16.0.0"
21
+ "@semcore/base-components": "^17.0.0-prerelease.17",
22
+ "@semcore/icon": "^16.7.2-prerelease.17"
27
23
  },
28
24
  "repository": {
29
25
  "type": "git",
@@ -31,8 +27,10 @@
31
27
  "directory": "semcore/modal"
32
28
  },
33
29
  "devDependencies": {
30
+ "@semcore/core": "17.0.0-prerelease.17",
34
31
  "@semcore/testing-utils": "1.0.0",
35
- "@semcore/core": "16.5.1"
32
+ "@semcore/base-components": "17.0.0-prerelease.17",
33
+ "@semcore/icon": "16.7.2-prerelease.17"
36
34
  },
37
35
  "scripts": {
38
36
  "build": "pnpm semcore-builder --source=js && pnpm vite build"