@i-novus/n2o-components 7.27.14 → 7.28.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.
@@ -1,2 +1,31 @@
1
1
  import React from 'react';
2
- export declare const Alert: React.ComponentType<import("react-i18next").Omit<import("react-i18next").WithTranslation, keyof import("react-i18next").WithTranslation> & import("react-i18next").WithTranslationProps>;
2
+ import { AlertProps } from './types';
3
+ export declare const Alert: React.ComponentType<Omit<Pick<import("react-i18next/helpers").$Subtract<import("../../types").TBaseProps & {
4
+ animate?: boolean | undefined;
5
+ closeButton?: boolean | undefined;
6
+ href?: string | undefined;
7
+ loader?: boolean | undefined;
8
+ onDismiss?(): void;
9
+ placement?: string | undefined;
10
+ severity?: import("./types").Severity | undefined;
11
+ stacktrace?: string | string[] | null | undefined;
12
+ stopRemoving?(): void;
13
+ t?(arg: string): string;
14
+ text?: string | undefined;
15
+ timestamp?: number | undefined;
16
+ title?: string | undefined;
17
+ }, import("react-i18next").WithTranslationProps>, never> & Partial<Pick<import("react-i18next/helpers").$Subtract<import("../../types").TBaseProps & {
18
+ animate?: boolean | undefined;
19
+ closeButton?: boolean | undefined;
20
+ href?: string | undefined;
21
+ loader?: boolean | undefined;
22
+ onDismiss?(): void;
23
+ placement?: string | undefined;
24
+ severity?: import("./types").Severity | undefined;
25
+ stacktrace?: string | string[] | null | undefined;
26
+ stopRemoving?(): void;
27
+ t?(arg: string): string;
28
+ text?: string | undefined;
29
+ timestamp?: number | undefined;
30
+ title?: string | undefined;
31
+ }, import("react-i18next").WithTranslationProps>, "title" | "href" | "text" | "animate" | "placement" | keyof import("../../types").TBaseProps | "t" | "loader" | "stopRemoving" | "closeButton" | "onDismiss" | "severity" | "stacktrace" | "timestamp">> & Partial<Pick<AlertProps, never>>, keyof import("react-i18next").WithTranslation<Ns, undefined>> & import("react-i18next").WithTranslationProps>;
@@ -151,6 +151,7 @@ export declare function Block<TTag>({ tag, className, disabled, ...props }: Prop
151
151
  unselectable?: "on" | "off" | undefined;
152
152
  inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
153
153
  is?: string | undefined;
154
+ children?: (React.ReactNode | Record<string, unknown>) | Iterable<React.ReactNode | Record<string, unknown>>;
154
155
  'aria-activedescendant'?: string | undefined;
155
156
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
156
157
  'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
@@ -199,7 +200,6 @@ export declare function Block<TTag>({ tag, className, disabled, ...props }: Prop
199
200
  'aria-valuemin'?: number | undefined;
200
201
  'aria-valuenow'?: number | undefined;
201
202
  'aria-valuetext'?: string | undefined;
202
- children?: React.ReactNode;
203
203
  dangerouslySetInnerHTML?: {
204
204
  __html: string;
205
205
  } | undefined;
@@ -1,2 +1,25 @@
1
1
  import React from 'react';
2
- export declare const Pagination: React.ComponentType<import("react-i18next").Omit<import("react-i18next").WithTranslation, keyof import("react-i18next").WithTranslation> & import("react-i18next").WithTranslationProps>;
2
+ import { Layout } from './types';
3
+ export declare const Pagination: React.ComponentType<Omit<import("react-i18next/helpers").$Subtract<import("../../types").TBaseProps & {
4
+ activePage?: number | undefined;
5
+ count?: number | undefined;
6
+ first?: boolean | undefined;
7
+ firstIcon?: string | undefined;
8
+ firstLabel?: string | undefined;
9
+ last?: boolean | undefined;
10
+ lastIcon?: string | undefined;
11
+ lastLabel?: string | undefined;
12
+ layout?: Layout | undefined;
13
+ maxPages?: number | undefined;
14
+ next?: boolean | undefined;
15
+ nextIcon?: string | undefined;
16
+ nextLabel?: string | undefined;
17
+ onSelect?(): void;
18
+ prev?: boolean | undefined;
19
+ prevIcon?: string | undefined;
20
+ prevLabel?: string | undefined;
21
+ showCount?: boolean | undefined;
22
+ showSinglePage?: boolean | undefined;
23
+ size?: number | undefined;
24
+ t?(str: string, obj?: object | undefined): string;
25
+ }, import("react-i18next").WithTranslationProps>, keyof import("react-i18next").WithTranslation<Ns, undefined>> & import("react-i18next").WithTranslationProps>;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import type { Placement } from 'popper.js';
2
+ import { PopoverProps } from 'reactstrap';
3
3
  interface Props {
4
4
  help: string;
5
5
  icon?: string;
6
- placement?: Placement;
6
+ placement?: PopoverProps['placement'];
7
7
  }
8
8
  export declare const HelpPopover: React.MemoExoticComponent<({ help, placement, icon }: Props) => JSX.Element>;
9
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"HelpPopover.js","sourceRoot":"","sources":["../../src/helpers/HelpPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7D,OAAO,SAAS,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAOhC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAC3B,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,EAAE,IAAI,GAAG,uBAAuB,EAAS,EAAE,EAAE;IACrE,MAAM,MAAM,GAAG,EAAE,EAAE,CAAA;IAEnB,OAAO,CACH,6BAAK,SAAS,EAAC,aAAa;QACxB,gCAAQ,SAAS,EAAC,iBAAiB,EAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC,QAAQ;YACzD,2BAAG,SAAS,EAAE,IAAI,GAAI,CACjB;QACT,oBAAC,mBAAmB,IAChB,SAAS,EAAC,kBAAkB,EAC5B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,OAAO;YAEf,oBAAC,WAAW;gBAER,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAI,CAC5D,CACI,CACpB,CACT,CAAA;AACL,CAAC,CAEJ,CAAA"}
1
+ {"version":3,"file":"HelpPopover.js","sourceRoot":"","sources":["../../src/helpers/HelpPopover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAA;AAC3E,OAAO,SAAS,MAAM,WAAW,CAAA;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAA;AAOhC,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAC3B,CAAC,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,EAAE,IAAI,GAAG,uBAAuB,EAAS,EAAE,EAAE;IACrE,MAAM,MAAM,GAAG,EAAE,EAAE,CAAA;IAEnB,OAAO,CACH,6BAAK,SAAS,EAAC,aAAa;QACxB,gCAAQ,SAAS,EAAC,iBAAiB,EAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAC,QAAQ;YACzD,2BAAG,SAAS,EAAE,IAAI,GAAI,CACjB;QACT,oBAAC,mBAAmB,IAChB,SAAS,EAAC,kBAAkB,EAC5B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,OAAO;YAEf,oBAAC,WAAW;gBAER,6BAAK,uBAAuB,EAAE,EAAE,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAI,CAC5D,CACI,CACpB,CACT,CAAA;AACL,CAAC,CAEJ,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@i-novus/n2o-components",
3
- "version": "7.27.14",
3
+ "version": "7.28.0",
4
4
  "description": "UI components for N2O framework",
5
5
  "author": "I-Novus LLC<n2o@i-novus.ru>",
6
6
  "license": "Apache-2.0",
@@ -51,23 +51,23 @@
51
51
  "draftjs-to-html": "0.8.4",
52
52
  "font-awesome": "4.7.0",
53
53
  "html-to-draftjs": "1.4.0",
54
- "lodash": "^4.17.15",
55
- "moment": "^2.24.0",
54
+ "lodash": "^4.17.21",
55
+ "moment": "^2.29.2",
56
56
  "numeral": "2.0.6",
57
57
  "rc-drawer": "^3.0.2",
58
58
  "rc-slider": "^8.6.11",
59
59
  "rc-switch": "4.1.0",
60
- "rc-tree-select": "5.11.0",
60
+ "rc-tree-select": "^5.22.0",
61
61
  "react": "17.0.2",
62
62
  "react-ace": "11.0.1",
63
63
  "react-copy-to-clipboard": "^5.0.1",
64
64
  "react-dom": "17.0.2",
65
65
  "react-draft-wysiwyg": "1.15.0",
66
- "react-i18next": "11.7.3",
66
+ "react-i18next": "14.1.2",
67
67
  "react-onclickoutside": "6.7.1",
68
68
  "react-popper": "2.2.4",
69
69
  "react-router-dom": "5.2.0",
70
- "react-syntax-highlighter": "^11.0.2",
70
+ "react-syntax-highlighter": "^15.5.0",
71
71
  "react-text-mask": "5.5.0",
72
72
  "react-textarea-autosize": "7.0.4",
73
73
  "reactstrap": "8.10.1-popper2-beta.0",
@@ -108,7 +108,7 @@
108
108
  "babel-jest": "^28.1.1",
109
109
  "babel-loader": "^8.2.2",
110
110
  "babel-plugin-require-context-hook": "^1.0.0",
111
- "concurrently": "^3.5.1",
111
+ "concurrently": "^8.2.2",
112
112
  "copyfiles": "^2.4.1",
113
113
  "cross-env": "^7.0.3",
114
114
  "enzyme": "^3.9.0",
@@ -129,7 +129,7 @@
129
129
  "jest": "^28.1.1",
130
130
  "jest-cli": "28.1.1",
131
131
  "jest-environment-jsdom": "^28.1.1",
132
- "rimraf": "^5.0.1",
132
+ "rimraf": "5.0.7",
133
133
  "sinon": "^4.1.3",
134
134
  "stylelint": "^13.12.0",
135
135
  "stylelint-config-standard": "^21.0.0",