@snack-uikit/drawer 0.14.3-preview-02d918ac.0 → 0.14.3

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,16 @@
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
+ ## 0.14.3 (2026-07-03)
7
+
8
+ ### Only dependencies have been changed
9
+ * [@snack-uikit/tooltip@0.18.15]($PUBLIC_PROJECT_URL/blob/master/packages/tooltip/CHANGELOG.md)
10
+ * [@snack-uikit/truncate-string@0.7.14]($PUBLIC_PROJECT_URL/blob/master/packages/truncate-string/CHANGELOG.md)
11
+
12
+
13
+
14
+
15
+
6
16
  ## 0.14.2 (2026-06-24)
7
17
 
8
18
  ### Only dependencies have been changed
@@ -20,18 +20,16 @@ const WithTooltip_1 = require("../../helperComponents/WithTooltip");
20
20
  const DrawerCustom_1 = require("../DrawerCustom");
21
21
  /** Готовый компонент Drawer */
22
22
  function Drawer(_a) {
23
- var {
24
- title,
25
- titleTooltip,
26
- subtitle,
27
- image,
28
- content,
29
- approveButton,
30
- cancelButton,
31
- additionalButton,
32
- nestedDrawer,
33
- truncate
34
- } = _a,
23
+ var title = _a.title,
24
+ titleTooltip = _a.titleTooltip,
25
+ subtitle = _a.subtitle,
26
+ image = _a.image,
27
+ content = _a.content,
28
+ approveButton = _a.approveButton,
29
+ cancelButton = _a.cancelButton,
30
+ additionalButton = _a.additionalButton,
31
+ nestedDrawer = _a.nestedDrawer,
32
+ truncate = _a.truncate,
35
33
  rest = __rest(_a, ["title", "titleTooltip", "subtitle", "image", "content", "approveButton", "cancelButton", "additionalButton", "nestedDrawer", "truncate"]);
36
34
  const needFooter = Boolean(approveButton) || Boolean(cancelButton) || Boolean(additionalButton);
37
35
  return (0, jsx_runtime_1.jsxs)(DrawerCustom_1.DrawerCustom, Object.assign({}, rest, {
@@ -27,20 +27,21 @@ const helperComponents_1 = require("../../helperComponents");
27
27
  const constants_2 = require("./constants");
28
28
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
29
29
  function DrawerCustom(_a) {
30
- var {
31
- open,
32
- mode = constants_1.MODE.Regular,
33
- position = constants_1.POSITION.Right,
34
- onClose,
35
- rootClassName,
36
- className,
37
- size = constants_1.SIZE.S,
38
- push,
39
- container,
40
- children,
41
- nestedDrawer,
42
- closeOnPopstate
43
- } = _a,
30
+ var open = _a.open,
31
+ _a$mode = _a.mode,
32
+ mode = _a$mode === void 0 ? constants_1.MODE.Regular : _a$mode,
33
+ _a$position = _a.position,
34
+ position = _a$position === void 0 ? constants_1.POSITION.Right : _a$position,
35
+ onClose = _a.onClose,
36
+ rootClassName = _a.rootClassName,
37
+ className = _a.className,
38
+ _a$size = _a.size,
39
+ size = _a$size === void 0 ? constants_1.SIZE.S : _a$size,
40
+ push = _a.push,
41
+ container = _a.container,
42
+ children = _a.children,
43
+ nestedDrawer = _a.nestedDrawer,
44
+ closeOnPopstate = _a.closeOnPopstate,
44
45
  rest = __rest(_a, ["open", "mode", "position", "onClose", "rootClassName", "className", "size", "push", "container", "children", "nestedDrawer", "closeOnPopstate"]);
45
46
  const isRegular = mode === constants_1.MODE.Regular;
46
47
  const isPredefinedSize = typeof size === 'string' && constants_1.SIZE_AS_VALUES.includes(size);
@@ -11,7 +11,7 @@ exports.maskMotion = {
11
11
  };
12
12
  const motion = placement => ({
13
13
  motionAppear: true,
14
- motionName: `panelMotion-${placement}`
14
+ motionName: "panelMotion-".concat(placement)
15
15
  });
16
16
  exports.motion = motion;
17
17
  exports.motionProps = {
@@ -24,10 +24,8 @@ const utils_1 = require("@snack-uikit/utils");
24
24
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
25
25
  /** Вспомогательный компонент для добавления "тела" в DrawerCustom */
26
26
  function DrawerBody(_a) {
27
- var {
28
- content,
29
- className
30
- } = _a,
27
+ var content = _a.content,
28
+ className = _a.className,
31
29
  rest = __rest(_a, ["content", "className"]);
32
30
  return (0, jsx_runtime_1.jsx)(scroll_1.Scroll, Object.assign({
33
31
  size: 'm',
@@ -14,9 +14,7 @@ const icons_1 = require("@snack-uikit/icons");
14
14
  const constants_1 = require("../../constants");
15
15
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
16
16
  function ButtonClose(_ref) {
17
- let {
18
- onClick
19
- } = _ref;
17
+ let onClick = _ref.onClick;
20
18
  return (0, jsx_runtime_1.jsx)("button", {
21
19
  type: 'button',
22
20
  className: styles_module_scss_1.default.buttonClose,
@@ -24,10 +24,8 @@ const constants_1 = require("../../constants");
24
24
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
25
25
  /** Вспомогательный компонент для добавления "футера" в DrawerCustom */
26
26
  function DrawerFooter(_a) {
27
- var {
28
- actions,
29
- className
30
- } = _a,
27
+ var actions = _a.actions,
28
+ className = _a.className,
31
29
  rest = __rest(_a, ["actions", "className"]);
32
30
  return (0, jsx_runtime_1.jsx)("div", Object.assign({
33
31
  className: (0, classnames_1.default)(styles_module_scss_1.default.footer, className)
@@ -26,13 +26,11 @@ const constants_1 = require("../../constants");
26
26
  const styles_module_scss_1 = __importDefault(require('./styles.module.css'));
27
27
  /** Вспомогательный компонент для добавления "шапки" в DrawerCustom */
28
28
  function DrawerHeader(_a) {
29
- var {
30
- title,
31
- titleTooltip,
32
- subtitle,
33
- image,
34
- className
35
- } = _a,
29
+ var title = _a.title,
30
+ titleTooltip = _a.titleTooltip,
31
+ subtitle = _a.subtitle,
32
+ image = _a.image,
33
+ className = _a.className,
36
34
  rest = __rest(_a, ["title", "titleTooltip", "subtitle", "image", "className"]);
37
35
  return (0, jsx_runtime_1.jsxs)("div", Object.assign({
38
36
  className: (0, classnames_1.default)(styles_module_scss_1.default.drawerHeader, className)
@@ -7,10 +7,8 @@ exports.WithTooltip = WithTooltip;
7
7
  const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const tooltip_1 = require("@snack-uikit/tooltip");
9
9
  function WithTooltip(_ref) {
10
- let {
11
- tooltip,
12
- children
13
- } = _ref;
10
+ let tooltip = _ref.tooltip,
11
+ children = _ref.children;
14
12
  if (!tooltip) {
15
13
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {
16
14
  children: children
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Drawer",
7
- "version": "0.14.3-preview-02d918ac.0",
7
+ "version": "0.14.3",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -39,12 +39,12 @@
39
39
  "@snack-uikit/button": "0.19.19",
40
40
  "@snack-uikit/icons": "0.27.7",
41
41
  "@snack-uikit/scroll": "0.11.0",
42
- "@snack-uikit/tooltip": "0.18.15-preview-02d918ac.0",
43
- "@snack-uikit/truncate-string": "0.7.14-preview-02d918ac.0",
42
+ "@snack-uikit/tooltip": "0.18.15",
43
+ "@snack-uikit/truncate-string": "0.7.14",
44
44
  "@snack-uikit/typography": "0.8.13",
45
45
  "@snack-uikit/utils": "4.0.2",
46
46
  "classnames": "2.5.1",
47
47
  "rc-drawer": "6.4.1"
48
48
  },
49
- "gitHead": "00136e44a3f59e0cf80df069e32dac42b3a8d88a"
49
+ "gitHead": "864821fceaa6bbb61080166d14f1682fa16e3f85"
50
50
  }