1mpacto-react-ui 0.0.103 → 0.0.105

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,5 +1,6 @@
1
1
  import { BigNumber as TypeBigNumber } from 'bignumber.js';
2
2
 
3
+ type TBigNumber = string | number;
3
4
  interface BigNumberConfig {
4
5
  EXPONENTIAL_AT?: number | [number, number];
5
6
  DECIMAL_PLACES?: number;
@@ -8,4 +9,4 @@ interface BigNumberConfig {
8
9
  declare const defaultConfig: BigNumberConfig;
9
10
  declare const createBigNumber: (value: TypeBigNumber.Value, base?: number) => TypeBigNumber;
10
11
  export { createBigNumber as BigNumber, defaultConfig };
11
- export type { BigNumberConfig, TypeBigNumber };
12
+ export type { BigNumberConfig, TypeBigNumber, TBigNumber };
@@ -1,7 +1,7 @@
1
- import { IPopover } from '1mpacto-react-ui';
2
1
  import { FloatingArrowProps, UseFloatingOptions } from '@floating-ui/react';
3
2
  import { default as React } from 'react';
4
3
  import { IColor } from '../../../config/tailwind/colors';
4
+ import { IPopover } from '../Popover';
5
5
 
6
6
  export interface ITooltip {
7
7
  id?: string;
@@ -0,0 +1,27 @@
1
+ import { TBigNumber } from '../config/bigNumber';
2
+ import * as yup from 'yup';
3
+ export declare function minBig(min: TBigNumber, message?: string): {
4
+ name: string;
5
+ message: string;
6
+ test(this: yup.TestContext, value: unknown): boolean | yup.ValidationError;
7
+ };
8
+ export declare function maxBig(max: TBigNumber, message?: string): {
9
+ name: string;
10
+ message: string;
11
+ test(this: yup.TestContext, value: unknown): boolean | yup.ValidationError;
12
+ };
13
+ export declare function moreThanBig(min: TBigNumber, message?: string): {
14
+ name: string;
15
+ message: string;
16
+ test(this: yup.TestContext, value: unknown): boolean | yup.ValidationError;
17
+ };
18
+ export declare function lessThanBig(max: TBigNumber, message?: string): {
19
+ name: string;
20
+ message: string;
21
+ test(this: yup.TestContext, value: unknown): boolean | yup.ValidationError;
22
+ };
23
+ export declare function betweenBig(min: TBigNumber, max: TBigNumber, message?: string): {
24
+ name: string;
25
+ message: string;
26
+ test(this: yup.TestContext, value: unknown): boolean | yup.ValidationError;
27
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.103",
4
+ "version": "0.0.105",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",
@@ -14,8 +14,8 @@
14
14
  "watch:build": "npx watch \"npm run build\" ./src",
15
15
  "storybook": "storybook dev -p 6006",
16
16
  "build-storybook": "storybook build",
17
- "postbuild": "cp -r src/types/* dist/",
18
- "postinstall": "copyfiles -f dist/table.d.ts ../../src/types/"
17
+ "postbuild": "copyfiles -f src/types/* dist/types-external/",
18
+ "install": "copyfiles -f dist/types-external/* ../../src/types/"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@chromatic-com/storybook": "^3.2.2",
@@ -34,7 +34,6 @@
34
34
  "@typescript-eslint/parser": "^7.13.1",
35
35
  "@vitejs/plugin-react-swc": "^3.5.0",
36
36
  "autoprefixer": "^10.4.19",
37
- "copyfiles": "^2.4.1",
38
37
  "eslint": "^8.57.0",
39
38
  "eslint-config-prettier": "^9.1.0",
40
39
  "eslint-plugin-prettier": "^5.1.3",
@@ -57,7 +56,8 @@
57
56
  },
58
57
  "peerDependencies": {
59
58
  "react": ">=17.0.0 <19.0.0",
60
- "react-dom": ">=17.0.0 <19.0.0"
59
+ "react-dom": ">=17.0.0 <19.0.0",
60
+ "yup": ">=1.4.0"
61
61
  },
62
62
  "main": "./dist/index.cjs",
63
63
  "module": "dist/index.mjs",
@@ -92,6 +92,7 @@
92
92
  "@tanstack/react-table": "^8.19.2",
93
93
  "bignumber.js": "^9.1.2",
94
94
  "chart.js": "^4.4.3",
95
+ "copyfiles": "^2.4.1",
95
96
  "date-fns": "^3.6.0",
96
97
  "js-cookie": "^3.0.5",
97
98
  "react-aria": "^3.33.1",
File without changes