@cloud-ru/uikit-product-mobile-modal 2.1.7-preview-cbb93940.0 → 2.2.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 2.2.0 (2026-06-26)
7
+
8
+
9
+ ### Features
10
+
11
+ * **SITE-11454:** update modal ([50a4b14](https://github.com/cloud-ru-tech/uikit-product/commit/50a4b1475f4a6624f9c922848349839e2ffad353))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 2.1.6 (2026-06-15)
7
18
 
8
19
  ### Only dependencies have been changed
@@ -5,6 +5,6 @@ import { MobileModalCustom } from '../MobileModalCustom';
5
5
  export type AdaptiveModalProps = WithLayoutType<Omit<ModalProps, 'size'> & {
6
6
  size?: ModalProps['size'] | MobileModalProps['size'];
7
7
  }>;
8
- export declare function AdaptiveModal({ layoutType, size, ...props }: AdaptiveModalProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function AdaptiveModal({ layoutType, size, animationDuration, animationDurationPercent, ...props }: AdaptiveModalProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare function useAdaptiveModalCustom({ layoutType }: WithLayoutType): typeof MobileModalCustom | typeof ModalCustom;
10
10
  export type { ModalProps };
@@ -19,10 +19,11 @@ const constants_1 = require("../../constants");
19
19
  const MobileModal_1 = require("../MobileModal");
20
20
  const MobileModalCustom_1 = require("../MobileModalCustom");
21
21
  function AdaptiveModal(_a) {
22
- var { layoutType, size } = _a, props = __rest(_a, ["layoutType", "size"]);
22
+ var { layoutType, size, animationDuration, animationDurationPercent } = _a, props = __rest(_a, ["layoutType", "size", "animationDuration", "animationDurationPercent"]);
23
23
  const isMobile = layoutType === 'mobile';
24
24
  const mobileSize = size && Object.values(constants_1.SIZE).includes(size) ? size : undefined;
25
- const desktopProps = Object.assign(Object.assign({}, props), { size: size && ['s', 'm', 'l'].includes(size) ? size : undefined });
25
+ const desktopProps = Object.assign(Object.assign({}, props), { animationDuration,
26
+ animationDurationPercent, size: size && ['s', 'm', 'l'].includes(size) ? size : undefined });
26
27
  return isMobile ? (0, jsx_runtime_1.jsx)(MobileModal_1.MobileModal, Object.assign({ size: mobileSize }, props)) : (0, jsx_runtime_1.jsx)(modal_1.Modal, Object.assign({}, desktopProps));
27
28
  }
28
29
  function useAdaptiveModalCustom({ layoutType }) {
@@ -5,6 +5,6 @@ import { MobileModalCustom } from '../MobileModalCustom';
5
5
  export type AdaptiveModalProps = WithLayoutType<Omit<ModalProps, 'size'> & {
6
6
  size?: ModalProps['size'] | MobileModalProps['size'];
7
7
  }>;
8
- export declare function AdaptiveModal({ layoutType, size, ...props }: AdaptiveModalProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function AdaptiveModal({ layoutType, size, animationDuration, animationDurationPercent, ...props }: AdaptiveModalProps): import("react/jsx-runtime").JSX.Element;
9
9
  export declare function useAdaptiveModalCustom({ layoutType }: WithLayoutType): typeof MobileModalCustom | typeof ModalCustom;
10
10
  export type { ModalProps };
@@ -15,10 +15,11 @@ import { SIZE } from '../../constants';
15
15
  import { MobileModal } from '../MobileModal';
16
16
  import { MobileModalCustom } from '../MobileModalCustom';
17
17
  export function AdaptiveModal(_a) {
18
- var { layoutType, size } = _a, props = __rest(_a, ["layoutType", "size"]);
18
+ var { layoutType, size, animationDuration, animationDurationPercent } = _a, props = __rest(_a, ["layoutType", "size", "animationDuration", "animationDurationPercent"]);
19
19
  const isMobile = layoutType === 'mobile';
20
20
  const mobileSize = size && Object.values(SIZE).includes(size) ? size : undefined;
21
- const desktopProps = Object.assign(Object.assign({}, props), { size: size && ['s', 'm', 'l'].includes(size) ? size : undefined });
21
+ const desktopProps = Object.assign(Object.assign({}, props), { animationDuration,
22
+ animationDurationPercent, size: size && ['s', 'm', 'l'].includes(size) ? size : undefined });
22
23
  return isMobile ? _jsx(MobileModal, Object.assign({ size: mobileSize }, props)) : _jsx(Modal, Object.assign({}, desktopProps));
23
24
  }
24
25
  export function useAdaptiveModalCustom({ layoutType }) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloud-ru/uikit-product-mobile-modal",
3
3
  "title": "Mobile Modal",
4
- "version": "2.1.7-preview-cbb93940.0",
4
+ "version": "2.2.0",
5
5
  "sideEffects": [
6
6
  "*.css",
7
7
  "*.woff",
@@ -36,17 +36,17 @@
36
36
  },
37
37
  "scripts": {},
38
38
  "dependencies": {
39
- "@cloud-ru/uikit-product-mobile-drawer": "2.0.16",
40
- "@cloud-ru/uikit-product-mobile-tooltip": "1.1.14",
39
+ "@cloud-ru/uikit-product-mobile-drawer": "2.0.17",
40
+ "@cloud-ru/uikit-product-mobile-tooltip": "1.1.15",
41
41
  "@cloud-ru/uikit-product-utils": "9.1.0",
42
42
  "@snack-uikit/button": "0.19.15",
43
43
  "@snack-uikit/drawer": "0.14.0",
44
44
  "@snack-uikit/link": "0.17.20",
45
45
  "@snack-uikit/loaders": "0.9.8",
46
- "@snack-uikit/modal": "0.20.0",
46
+ "@snack-uikit/modal": "0.20.1",
47
47
  "@snack-uikit/typography": "0.8.10",
48
48
  "@snack-uikit/utils": "3.10.1",
49
49
  "classnames": "2.5.1"
50
50
  },
51
- "gitHead": "44b53c295315c3d4f779ab1bfbffe418f6886c5c"
51
+ "gitHead": "7e5052322e20a0a7fcd9dc03ff788a9ccf2167d4"
52
52
  }
@@ -12,11 +12,19 @@ export type AdaptiveModalProps = WithLayoutType<
12
12
  }
13
13
  >;
14
14
 
15
- export function AdaptiveModal({ layoutType, size, ...props }: AdaptiveModalProps) {
15
+ export function AdaptiveModal({
16
+ layoutType,
17
+ size,
18
+ animationDuration,
19
+ animationDurationPercent,
20
+ ...props
21
+ }: AdaptiveModalProps) {
16
22
  const isMobile = layoutType === 'mobile';
17
23
  const mobileSize = size && Object.values<string>(SIZE).includes(size) ? (size as Size) : undefined;
18
24
  const desktopProps = {
19
25
  ...props,
26
+ animationDuration,
27
+ animationDurationPercent,
20
28
  size: size && ['s', 'm', 'l'].includes(size) ? size : undefined,
21
29
  } as ModalProps;
22
30