@snack-uikit/drawer 0.10.8-preview-95f36d41.0 → 0.10.9

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,26 @@
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.10.9 (2024-12-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **FF-5734:** eslint fixes ([5ce6f1f](https://github.com/cloud-ru-tech/snack-uikit/commit/5ce6f1f22d3ac3dd367cbdd184e5873e67837c8b))
12
+
13
+
14
+
15
+
16
+
17
+ ## 0.10.8 (2024-12-25)
18
+
19
+ ### Only dependencies have been changed
20
+ * [@snack-uikit/truncate-string@0.6.3](https://github.com/cloud-ru-tech/snack-uikit/blob/master/packages/truncate-string/CHANGELOG.md)
21
+
22
+
23
+
24
+
25
+
6
26
  ## 0.10.7 (2024-12-17)
7
27
 
8
28
  ### Only dependencies have been changed
package/README.md CHANGED
@@ -24,7 +24,6 @@
24
24
  | container | `string \| HTMLElement` | - | Контейнер в котором будет рендерится Drawer. По-умолчанию - body |
25
25
  | nestedDrawer | `ReactElement<DrawerCustomProps, string \| JSXElementConstructor<any>>` | - | Вложенный Drawer |
26
26
  ## DrawerCustom.Header
27
- Вспомогательный компонент для добавления "шапки" в DrawerCustom
28
27
  ### Props
29
28
  | name | type | default value | description |
30
29
  |------|------|---------------|-------------|
@@ -34,14 +33,12 @@
34
33
  | subtitle | `ReactNode` | - | Подзаголовок |
35
34
  | className | `string` | - | CSS-класс |
36
35
  ## DrawerCustom.Body
37
- Вспомогательный компонент для добавления "тела" в DrawerCustom
38
36
  ### Props
39
37
  | name | type | default value | description |
40
38
  |------|------|---------------|-------------|
41
39
  | content* | `ReactNode` | - | Контент |
42
40
  | className | `string` | - | CSS-класс |
43
41
  ## DrawerCustom.Footer
44
- Вспомогательный компонент для добавления "футера" в DrawerCustom
45
42
  ### Props
46
43
  | name | type | default value | description |
47
44
  |------|------|---------------|-------------|
@@ -27,13 +27,11 @@ export type DrawerCustomProps = WithSupportProps<PropsWithChildren<{
27
27
  nestedDrawer?: ReactElement<DrawerCustomProps>;
28
28
  }>>;
29
29
  export declare function DrawerCustom({ open, mode, position, onClose, rootClassName, className, size, push, container, children, nestedDrawer, ...rest }: DrawerCustomProps): import("react/jsx-runtime").JSX.Element;
30
- export declare namespace DrawerCustom {
31
- var Header: typeof DrawerHeader;
32
- var Body: typeof DrawerBody;
33
- var Footer: typeof DrawerFooter;
34
- }
35
30
  export declare namespace DrawerCustom {
36
31
  type HeaderProps = DrawerHeaderProps;
37
32
  type BodyProps = DrawerBodyProps;
38
33
  type FooterProps = DrawerFooterProps;
34
+ const Header: typeof DrawerHeader;
35
+ const Body: typeof DrawerBody;
36
+ const Footer: typeof DrawerFooter;
39
37
  }
@@ -70,6 +70,8 @@ function DrawerCustom(_a) {
70
70
  }), children, nestedDrawer]
71
71
  }));
72
72
  }
73
- DrawerCustom.Header = helperComponents_1.DrawerHeader;
74
- DrawerCustom.Body = helperComponents_1.DrawerBody;
75
- DrawerCustom.Footer = helperComponents_1.DrawerFooter;
73
+ (function (DrawerCustom) {
74
+ DrawerCustom.Header = helperComponents_1.DrawerHeader;
75
+ DrawerCustom.Body = helperComponents_1.DrawerBody;
76
+ DrawerCustom.Footer = helperComponents_1.DrawerFooter;
77
+ })(DrawerCustom || (exports.DrawerCustom = DrawerCustom = {}));
@@ -27,13 +27,11 @@ export type DrawerCustomProps = WithSupportProps<PropsWithChildren<{
27
27
  nestedDrawer?: ReactElement<DrawerCustomProps>;
28
28
  }>>;
29
29
  export declare function DrawerCustom({ open, mode, position, onClose, rootClassName, className, size, push, container, children, nestedDrawer, ...rest }: DrawerCustomProps): import("react/jsx-runtime").JSX.Element;
30
- export declare namespace DrawerCustom {
31
- var Header: typeof DrawerHeader;
32
- var Body: typeof DrawerBody;
33
- var Footer: typeof DrawerFooter;
34
- }
35
30
  export declare namespace DrawerCustom {
36
31
  type HeaderProps = DrawerHeaderProps;
37
32
  type BodyProps = DrawerBodyProps;
38
33
  type FooterProps = DrawerFooterProps;
34
+ const Header: typeof DrawerHeader;
35
+ const Body: typeof DrawerBody;
36
+ const Footer: typeof DrawerFooter;
39
37
  }
@@ -24,6 +24,8 @@ export function DrawerCustom(_a) {
24
24
  const isPredefinedSize = typeof size === 'string' && SIZE_AS_VALUES.includes(size);
25
25
  return (_jsxs(RcDrawer, Object.assign({ mask: isRegular, maskClosable: isRegular, maskClassName: styles.mask, keyboard: isRegular, width: isPredefinedSize ? 'null' : size, open: open, placement: position, destroyOnClose: true, push: push, onClose: onClose, getContainer: container, className: cn(styles.drawer, className), rootClassName: cn(styles.drawerRoot, rootClassName) }, extractSupportProps(rest), { "data-content-wrapper": true, "data-size": isPredefinedSize ? size : undefined, "data-mode": mode }, motionProps, { children: [_jsx("div", { className: styles.headerElements, children: _jsx(ButtonClose, { onClick: onClose }) }), children, nestedDrawer] })));
26
26
  }
27
- DrawerCustom.Header = DrawerHeader;
28
- DrawerCustom.Body = DrawerBody;
29
- DrawerCustom.Footer = DrawerFooter;
27
+ (function (DrawerCustom) {
28
+ DrawerCustom.Header = DrawerHeader;
29
+ DrawerCustom.Body = DrawerBody;
30
+ DrawerCustom.Footer = DrawerFooter;
31
+ })(DrawerCustom || (DrawerCustom = {}));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "access": "public"
5
5
  },
6
6
  "title": "Drawer",
7
- "version": "0.10.8-preview-95f36d41.0",
7
+ "version": "0.10.9",
8
8
  "sideEffects": [
9
9
  "*.css",
10
10
  "*.woff",
@@ -39,12 +39,12 @@
39
39
  "@snack-uikit/button": "0.19.5",
40
40
  "@snack-uikit/icons": "0.24.1",
41
41
  "@snack-uikit/scroll": "0.9.2",
42
- "@snack-uikit/tooltip": "0.15.3-preview-95f36d41.0",
43
- "@snack-uikit/truncate-string": "0.6.3-preview-95f36d41.0",
42
+ "@snack-uikit/tooltip": "0.15.3",
43
+ "@snack-uikit/truncate-string": "0.6.4",
44
44
  "@snack-uikit/typography": "0.8.3",
45
45
  "@snack-uikit/utils": "3.6.0",
46
46
  "classnames": "2.5.1",
47
47
  "rc-drawer": "6.4.1"
48
48
  },
49
- "gitHead": "e866724aaa8b037109a05efa3e188a2c17989aa6"
49
+ "gitHead": "33621b09b3ca6d177fd8f41e5516566dee9f416a"
50
50
  }
@@ -94,12 +94,11 @@ export function DrawerCustom({
94
94
  );
95
95
  }
96
96
 
97
- DrawerCustom.Header = DrawerHeader;
98
- DrawerCustom.Body = DrawerBody;
99
- DrawerCustom.Footer = DrawerFooter;
100
-
101
97
  export namespace DrawerCustom {
102
98
  export type HeaderProps = DrawerHeaderProps;
103
99
  export type BodyProps = DrawerBodyProps;
104
100
  export type FooterProps = DrawerFooterProps;
101
+ export const Header = DrawerHeader;
102
+ export const Body = DrawerBody;
103
+ export const Footer = DrawerFooter;
105
104
  }