@broxus/react-uikit 0.19.0 → 0.19.2

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,9 +1,13 @@
1
1
  import * as React from 'react';
2
- export type HeaderProps = {
2
+ export interface HeaderProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
- };
6
+ /** @private Internal filled key. Do not set it directly */
7
+ eventKey?: string;
8
+ /** @private Do not use. Private warning empty usage */
9
+ warnKey?: boolean;
10
+ }
7
11
  export declare function Header(props: HeaderProps): React.JSX.Element;
8
12
  export declare namespace Header {
9
13
  var displayName: string;
@@ -37,13 +37,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Header = Header;
40
+ const omit_1 = __importDefault(require("@rc-component/util/lib/omit"));
40
41
  const classnames_1 = __importDefault(require("classnames"));
41
42
  const React = __importStar(require("react"));
42
43
  const NavContext_1 = require("../../components/Nav/context/NavContext");
43
44
  function Header(props) {
44
45
  const { className, ...restProps } = props;
45
46
  const { prefixCls } = React.useContext(NavContext_1.NavContext);
46
- return React.createElement("li", { className: (0, classnames_1.default)(`${prefixCls}-header`, className), ...restProps });
47
+ return React.createElement("li", { className: (0, classnames_1.default)(`${prefixCls}-header`, className), ...(0, omit_1.default)(restProps, ['eventKey', 'warnKey']) });
47
48
  }
48
49
  if (process.env.NODE_ENV !== 'production') {
49
50
  Header.displayName = 'Nav.Header';
@@ -53,7 +53,7 @@ exports.Item = React.memo(({ eventKey, ...restProps }) => {
53
53
  if (measure) {
54
54
  return null;
55
55
  }
56
- return React.createElement(InternalNavItem_1.InternalNavItem, { ...restProps });
56
+ return React.createElement(InternalNavItem_1.InternalNavItem, { eventKey: eventKey, ...restProps });
57
57
  });
58
58
  if (process.env.NODE_ENV !== 'production') {
59
59
  exports.Item.displayName = 'Nav.Item';
@@ -1,9 +1,13 @@
1
1
  import * as React from 'react';
2
- export type HeaderProps = {
2
+ export interface HeaderProps {
3
3
  children: React.ReactNode;
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
- };
6
+ /** @private Internal filled key. Do not set it directly */
7
+ eventKey?: string;
8
+ /** @private Do not use. Private warning empty usage */
9
+ warnKey?: boolean;
10
+ }
7
11
  export declare function Header(props: HeaderProps): React.JSX.Element;
8
12
  export declare namespace Header {
9
13
  var displayName: string;
@@ -1,10 +1,11 @@
1
+ import omit from '@rc-component/util/lib/omit';
1
2
  import classNames from 'classnames';
2
3
  import * as React from 'react';
3
4
  import { NavContext } from '../../components/Nav/context/NavContext';
4
5
  export function Header(props) {
5
6
  const { className, ...restProps } = props;
6
7
  const { prefixCls } = React.useContext(NavContext);
7
- return React.createElement("li", { className: classNames(`${prefixCls}-header`, className), ...restProps });
8
+ return React.createElement("li", { className: classNames(`${prefixCls}-header`, className), ...omit(restProps, ['eventKey', 'warnKey']) });
8
9
  }
9
10
  if (process.env.NODE_ENV !== 'production') {
10
11
  Header.displayName = 'Nav.Header';
@@ -17,7 +17,7 @@ export const Item = React.memo(({ eventKey, ...restProps }) => {
17
17
  if (measure) {
18
18
  return null;
19
19
  }
20
- return React.createElement(InternalNavItem, { ...restProps });
20
+ return React.createElement(InternalNavItem, { eventKey: eventKey, ...restProps });
21
21
  });
22
22
  if (process.env.NODE_ENV !== 'production') {
23
23
  Item.displayName = 'Nav.Item';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broxus/react-uikit",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "React-based UIkit library",
5
5
  "license": "AGPL-3.0",
6
6
  "keywords": [
@@ -57,19 +57,19 @@
57
57
  "prepare": "npx yarn cleanup && npx yarn build"
58
58
  },
59
59
  "dependencies": {
60
- "@broxus/js-utils": "^1.3.15",
60
+ "@broxus/js-utils": "^1.3.16",
61
61
  "@rc-component/collapse": "^1.0.1",
62
62
  "@rc-component/dialog": "^1.2.0",
63
63
  "@rc-component/drawer": "^1.0.0",
64
64
  "@rc-component/dropdown": "^1.0.0",
65
- "@rc-component/input-number": "^1.0.0",
65
+ "@rc-component/input-number": "^1.1.0",
66
66
  "@rc-component/motion": "^1.1.4",
67
- "@rc-component/picker": "^1.2.3",
67
+ "@rc-component/picker": "^1.3.0",
68
68
  "@rc-component/resize-observer": "^1.0.0",
69
69
  "@rc-component/segmented": "^1.1.0",
70
- "@rc-component/select": "^1.0.2",
70
+ "@rc-component/select": "^1.0.3",
71
71
  "@rc-component/switch": "^1.0.0",
72
- "@rc-component/tabs": "^1.3.0",
72
+ "@rc-component/tabs": "^1.4.1",
73
73
  "@rc-component/textarea": "^1.0.0",
74
74
  "@rc-component/trigger": "^3.2.0",
75
75
  "@rc-component/util": "^1.2.1",
@@ -80,11 +80,11 @@
80
80
  "rc-slider": "^11.1.8",
81
81
  "rc-util": "npm:@rc-component/util@^1.2.1",
82
82
  "shallowequal": "^1.1.0",
83
- "uikit": "^3.23.5"
83
+ "uikit": "^3.23.6"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "react": "^16.8.0 || ^17.x || ^18.x || ^19.x",
87
87
  "react-dom": "^16.8.0 || ^17.x || ^18.x || ^19.x"
88
88
  },
89
- "gitHead": "925261cf60db9dec9800ae7d3892fa7b6278d4fa"
89
+ "gitHead": "d6a9cf57bc7a032f8afff930e16e018b09d250b1"
90
90
  }