@trii/components 2.0.3 → 2.0.6

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
  /// <reference types="react" />
2
2
  import { IContact } from '@trii/types/dist/Contacts';
3
+ import { SxProps, Theme } from '@mui/material';
3
4
  export interface ContactInfoPopupProps {
4
5
  open: boolean;
5
6
  anchorEl: HTMLElement | null;
@@ -8,6 +9,7 @@ export interface ContactInfoPopupProps {
8
9
  contactData?: IContact;
9
10
  avatarImgUrl?: string;
10
11
  handleNavigateToContacts?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
12
+ sx?: SxProps<Theme>;
11
13
  }
12
14
  declare const ContactInfoPopup: ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts, t, }: ContactInfoPopupProps) => import("react/jsx-runtime").JSX.Element;
13
15
  export default ContactInfoPopup;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { IContact } from '@trii/types/dist/Contacts';
4
+ import { SxProps, Theme } from '@mui/material';
4
5
 
5
6
  interface TestBoxProps {
6
7
  /**
@@ -18,6 +19,7 @@ interface ContactInfoPopupProps {
18
19
  contactData?: IContact;
19
20
  avatarImgUrl?: string;
20
21
  handleNavigateToContacts?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
22
+ sx?: SxProps<Theme>;
21
23
  }
22
24
  declare const ContactInfoPopup: ({ open, anchorEl, onClose, contactData, avatarImgUrl, handleNavigateToContacts, t, }: ContactInfoPopupProps) => react_jsx_runtime.JSX.Element;
23
25
 
package/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "@trii/components",
3
- "version": "2.0.3",
4
- "description": "Trii components package",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist"
10
- ],
11
- "scripts": {
12
- "dev": "rollup -c --watch",
13
- "build": "rollup -c",
14
- "test": "jest --watchAll --verbose",
15
- "storybook": "storybook dev -p 6006",
16
- "build-storybook": "storybook build"
17
- },
18
- "author": "Ezequiel",
19
- "license": "MIT",
20
- "babel": {
21
- "sourceType": "unambiguous",
22
- "presets": [
23
- [
24
- "@babel/preset-env",
25
- {
26
- "targets": {
27
- "chrome": 100,
28
- "safari": 15,
29
- "firefox": 91
30
- }
31
- }
32
- ],
33
- [
34
- "@babel/preset-react",
35
- {
36
- "runtime": "automatic"
37
- }
38
- ],
39
- "@babel/preset-typescript"
40
- ]
41
- },
42
- "postcss": {
43
- "plugins": {
44
- "postcss-import": {}
45
- }
46
- },
47
- "devDependencies": {
48
- "@babel/core": "^7.23.0",
49
- "@babel/preset-env": "^7.22.20",
50
- "@babel/preset-react": "^7.22.15",
51
- "@babel/preset-typescript": "^7.23.0",
52
- "@emotion/react": "^11.11.4",
53
- "@emotion/styled": "^11.11.5",
54
- "@fontsource/material-icons": "^5.0.18",
55
- "@fontsource/roboto": "^5.0.13",
56
- "@mui/icons-material": "^5.15.15",
57
- "@mui/material": "^5.15.15",
58
- "@rollup/plugin-commonjs": "^25.0.4",
59
- "@rollup/plugin-node-resolve": "^15.2.1",
60
- "@rollup/plugin-typescript": "^11.1.4",
61
- "@storybook/addon-essentials": "^8.5.3",
62
- "@storybook/addon-interactions": "^8.5.3",
63
- "@storybook/addon-links": "^8.5.3",
64
- "@storybook/addon-onboarding": "^8.5.3",
65
- "@storybook/addon-themes": "^8.5.3",
66
- "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
67
- "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
68
- "@storybook/blocks": "^8.5.3",
69
- "@storybook/react": "^8.5.3",
70
- "@storybook/react-webpack5": "^8.5.3",
71
- "@storybook/test": "^8.5.3",
72
- "@testing-library/jest-dom": "^6.1.3",
73
- "@testing-library/react": "^14.0.0",
74
- "@types/jest": "^29.5.5",
75
- "@types/react": "^18.2.23",
76
- "babel-jest": "^29.7.0",
77
- "jest": "^29.7.0",
78
- "jest-environment-jsdom": "^29.7.0",
79
- "postcss": "^8.4.31",
80
- "postcss-import": "^15.1.0",
81
- "react": "^18.2.0",
82
- "react-dom": "^18.2.0",
83
- "rollup": "^3.29.4",
84
- "rollup-plugin-dts": "^6.0.2",
85
- "rollup-plugin-postcss": "^4.0.2",
86
- "storybook": "^8.5.3",
87
- "tslib": "^2.6.2",
88
- "typescript": "^5.2.2"
89
- },
90
- "peerDependencies": {
91
- "@emotion/react": "^11.11.4",
92
- "react": ">=17.0.2 <19.0.0",
93
- "react-dom": ">=17.0.2 <19.0.0"
94
- },
95
- "dependencies": {
96
- "@trii/types": "^2.10.398",
97
- "moment": "^2.30.1"
98
- }
99
- }
1
+ {
2
+ "name": "@trii/components",
3
+ "version": "2.0.6",
4
+ "description": "Trii components package",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "dev": "rollup -c --watch",
13
+ "build": "rollup -c",
14
+ "test": "jest --watchAll --verbose",
15
+ "storybook": "storybook dev -p 6006",
16
+ "build-storybook": "storybook build"
17
+ },
18
+ "author": "Ezequiel",
19
+ "license": "MIT",
20
+ "babel": {
21
+ "sourceType": "unambiguous",
22
+ "presets": [
23
+ [
24
+ "@babel/preset-env",
25
+ {
26
+ "targets": {
27
+ "chrome": 100,
28
+ "safari": 15,
29
+ "firefox": 91
30
+ }
31
+ }
32
+ ],
33
+ [
34
+ "@babel/preset-react",
35
+ {
36
+ "runtime": "automatic"
37
+ }
38
+ ],
39
+ "@babel/preset-typescript"
40
+ ]
41
+ },
42
+ "postcss": {
43
+ "plugins": {
44
+ "postcss-import": {}
45
+ }
46
+ },
47
+ "devDependencies": {
48
+ "@babel/core": "^7.23.0",
49
+ "@babel/preset-env": "^7.22.20",
50
+ "@babel/preset-react": "^7.22.15",
51
+ "@babel/preset-typescript": "^7.23.0",
52
+ "@emotion/react": "^11.11.4",
53
+ "@emotion/styled": "^11.11.5",
54
+ "@fontsource/material-icons": "^5.0.18",
55
+ "@fontsource/roboto": "^5.0.13",
56
+ "@mui/icons-material": "^5.15.15",
57
+ "@mui/material": "^5.15.15",
58
+ "@rollup/plugin-commonjs": "^25.0.4",
59
+ "@rollup/plugin-node-resolve": "^15.2.1",
60
+ "@rollup/plugin-typescript": "^11.1.4",
61
+ "@storybook/addon-essentials": "^8.5.3",
62
+ "@storybook/addon-interactions": "^8.5.3",
63
+ "@storybook/addon-links": "^8.5.3",
64
+ "@storybook/addon-onboarding": "^8.5.3",
65
+ "@storybook/addon-themes": "^8.5.3",
66
+ "@storybook/addon-webpack5-compiler-babel": "^3.0.5",
67
+ "@storybook/addon-webpack5-compiler-swc": "^2.0.0",
68
+ "@storybook/blocks": "^8.5.3",
69
+ "@storybook/react": "^8.5.3",
70
+ "@storybook/react-webpack5": "^8.5.3",
71
+ "@storybook/test": "^8.5.3",
72
+ "@testing-library/jest-dom": "^6.1.3",
73
+ "@testing-library/react": "^14.0.0",
74
+ "@types/jest": "^29.5.5",
75
+ "@types/react": "^18.2.23",
76
+ "babel-jest": "^29.7.0",
77
+ "jest": "^29.7.0",
78
+ "jest-environment-jsdom": "^29.7.0",
79
+ "postcss": "^8.4.31",
80
+ "postcss-import": "^15.1.0",
81
+ "react": "^18.2.0",
82
+ "react-dom": "^18.2.0",
83
+ "rollup": "^3.29.4",
84
+ "rollup-plugin-dts": "^6.0.2",
85
+ "rollup-plugin-postcss": "^4.0.2",
86
+ "storybook": "^8.5.3",
87
+ "tslib": "^2.6.2",
88
+ "typescript": "^5.2.2"
89
+ },
90
+ "peerDependencies": {
91
+ "@emotion/react": "^11.11.4",
92
+ "react": ">=17.0.2 <19.0.0",
93
+ "react-dom": ">=17.0.2 <19.0.0"
94
+ },
95
+ "dependencies": {
96
+ "@trii/types": "^2.10.398",
97
+ "moment": "^2.30.1"
98
+ }
99
+ }
package/readme CHANGED
@@ -1,71 +1,71 @@
1
- # Trii Components
2
-
3
- ## Introduction
4
-
5
- This project contains reusable components for the Trii application.
6
-
7
- ## Prerequisites
8
-
9
- - Node.js (v14 or higher)
10
- - npm (v6 or higher) or yarn (v1.22 or higher)
11
-
12
- ## Installation
13
-
14
- 1. Clone the repository:
15
- ```sh
16
- git clone https://github.com/yourusername/trii-components.git
17
- ```
18
- 2. Navigate to the project directory:
19
- ```sh
20
- cd trii-components
21
- ```
22
- 3. Install dependencies:
23
- ```sh
24
- npm install
25
- ```
26
- or
27
- ```sh
28
- yarn install
29
- ```
30
-
31
- ## Running the Project
32
-
33
- To start the development server, run:
34
-
35
- ```sh
36
- npm run storybook
37
- ```
38
-
39
- or
40
-
41
- ```sh
42
- yarn storybook
43
- ```
44
-
45
- ## Building the Project
46
-
47
- To build the project, run:
48
-
49
- ```sh
50
- npm run build
51
- ```
52
-
53
- or
54
-
55
- ```sh
56
- yarn build
57
- ```
58
-
59
- ## Upload build to NPM
60
-
61
- To upload the build to NPM, run:
62
-
63
- ```sh
64
- npm publish
65
- ```
66
-
67
- or
68
-
69
- ```sh
70
- yarn publish
71
- ```
1
+ # Trii Components
2
+
3
+ ## Introduction
4
+
5
+ This project contains reusable components for the Trii application.
6
+
7
+ ## Prerequisites
8
+
9
+ - Node.js (v14 or higher)
10
+ - npm (v6 or higher) or yarn (v1.22 or higher)
11
+
12
+ ## Installation
13
+
14
+ 1. Clone the repository:
15
+ ```sh
16
+ git clone https://github.com/yourusername/trii-components.git
17
+ ```
18
+ 2. Navigate to the project directory:
19
+ ```sh
20
+ cd trii-components
21
+ ```
22
+ 3. Install dependencies:
23
+ ```sh
24
+ npm install
25
+ ```
26
+ or
27
+ ```sh
28
+ yarn install
29
+ ```
30
+
31
+ ## Running the Project
32
+
33
+ To start the development server, run:
34
+
35
+ ```sh
36
+ npm run storybook
37
+ ```
38
+
39
+ or
40
+
41
+ ```sh
42
+ yarn storybook
43
+ ```
44
+
45
+ ## Building the Project
46
+
47
+ To build the project, run:
48
+
49
+ ```sh
50
+ npm run build
51
+ ```
52
+
53
+ or
54
+
55
+ ```sh
56
+ yarn build
57
+ ```
58
+
59
+ ## Upload build to NPM
60
+
61
+ To upload the build to NPM, run:
62
+
63
+ ```sh
64
+ npm publish
65
+ ```
66
+
67
+ or
68
+
69
+ ```sh
70
+ yarn publish
71
+ ```