@trii/components 2.0.100 → 2.0.101
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/dist/cjs/index.js +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +2 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +3 -1
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/hooks/useContactInfoPopup.d.ts +11 -0
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +41 -38
- package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +1 -0
- package/dist/types/components/EditContactModal/context/LanguageContext.d.ts +9 -0
- package/dist/types/components/EditContactModal/services/api.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +3 -4
- package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +10 -7
- package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +2 -3
- package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +1 -0
- package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +1 -0
- package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +1 -0
- package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +1 -0
- package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +2 -3
- package/package.json +130 -130
- package/readme +71 -71
package/package.json
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@trii/components",
|
|
3
|
-
"version": "2.0.
|
|
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": "npm-run-all --parallel dev:types dev:js",
|
|
13
|
-
"dev:types": "tsc --watch",
|
|
14
|
-
"dev:js": "rollup -c --watch",
|
|
15
|
-
"build": "npm-run-all --serial build:types build:js",
|
|
16
|
-
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
|
|
17
|
-
"build:js": "rollup -c",
|
|
18
|
-
"test": "jest --watchAll --verbose",
|
|
19
|
-
"storybook": "storybook dev -p 6006",
|
|
20
|
-
"build-storybook": "storybook build"
|
|
21
|
-
},
|
|
22
|
-
"author": "Ezequiel",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"babel": {
|
|
25
|
-
"sourceType": "unambiguous",
|
|
26
|
-
"presets": [
|
|
27
|
-
[
|
|
28
|
-
"@babel/preset-env",
|
|
29
|
-
{
|
|
30
|
-
"targets": {
|
|
31
|
-
"chrome": 100,
|
|
32
|
-
"safari": 15,
|
|
33
|
-
"firefox": 91
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
"@babel/preset-react",
|
|
39
|
-
{
|
|
40
|
-
"runtime": "automatic"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"@babel/preset-typescript"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"postcss": {
|
|
47
|
-
"plugins": {
|
|
48
|
-
"postcss-import": {}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"@babel/core": "^7.23.0",
|
|
53
|
-
"@babel/preset-env": "^7.22.20",
|
|
54
|
-
"@babel/preset-react": "^7.22.15",
|
|
55
|
-
"@babel/preset-typescript": "^7.23.0",
|
|
56
|
-
"@emotion/react": "^11.11.4",
|
|
57
|
-
"@emotion/styled": "^11.11.5",
|
|
58
|
-
"@fontsource/material-icons": "^5.0.18",
|
|
59
|
-
"@fontsource/roboto": "^5.0.13",
|
|
60
|
-
"@mui/icons-material": "^5.15.15",
|
|
61
|
-
"@mui/lab": "^5.0.0-alpha.176",
|
|
62
|
-
"@mui/material": "^5.18.0",
|
|
63
|
-
"@reduxjs/toolkit": "^2.11.2",
|
|
64
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
65
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
66
|
-
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
67
|
-
"@storybook/addon-essentials": "^8.5.3",
|
|
68
|
-
"@storybook/addon-interactions": "^8.5.3",
|
|
69
|
-
"@storybook/addon-links": "^8.5.3",
|
|
70
|
-
"@storybook/addon-onboarding": "^8.5.3",
|
|
71
|
-
"@storybook/addon-themes": "^8.5.3",
|
|
72
|
-
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
73
|
-
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
74
|
-
"@storybook/blocks": "^8.5.3",
|
|
75
|
-
"@storybook/react": "^8.5.3",
|
|
76
|
-
"@storybook/react-webpack5": "^8.5.3",
|
|
77
|
-
"@storybook/test": "^8.5.3",
|
|
78
|
-
"@testing-library/jest-dom": "^6.1.3",
|
|
79
|
-
"@testing-library/react": "^14.0.0",
|
|
80
|
-
"@types/google-libphonenumber": "^7.4.30",
|
|
81
|
-
"@types/google.maps": "^3.58.1",
|
|
82
|
-
"@types/jest": "^29.5.5",
|
|
83
|
-
"@types/react": "^18.2.23",
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
85
|
-
"@typescript-eslint/parser": "^8.53.0",
|
|
86
|
-
"axios": "^1.14.0",
|
|
87
|
-
"babel-jest": "^29.7.0",
|
|
88
|
-
"esbuild": "^0.27.2",
|
|
89
|
-
"eslint": "^9.39.2",
|
|
90
|
-
"eslint-config-prettier": "^10.1.8",
|
|
91
|
-
"eslint-plugin-import": "^2.32.0",
|
|
92
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
93
|
-
"eslint-plugin-react": "^7.37.5",
|
|
94
|
-
"eslint-plugin-react-hooks": "^7.0.1",
|
|
95
|
-
"google-libphonenumber": "^3.2.44",
|
|
96
|
-
"immer": "^11.1.4",
|
|
97
|
-
"jest": "^29.7.0",
|
|
98
|
-
"jest-environment-jsdom": "^29.7.0",
|
|
99
|
-
"npm-run-all": "^4.1.5",
|
|
100
|
-
"postcss": "^8.4.31",
|
|
101
|
-
"postcss-import": "^15.1.0",
|
|
102
|
-
"prettier": "^3.8.0",
|
|
103
|
-
"react": "^18.2.0",
|
|
104
|
-
"react-dom": "^18.2.0",
|
|
105
|
-
"rollup": "^3.29.4",
|
|
106
|
-
"rollup-plugin-dts": "^6.0.2",
|
|
107
|
-
"rollup-plugin-esbuild": "^6.2.1",
|
|
108
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
-
"storybook": "^8.5.3",
|
|
110
|
-
"tslib": "^2.6.2",
|
|
111
|
-
"typescript": "^5.2.2"
|
|
112
|
-
},
|
|
113
|
-
"peerDependencies": {
|
|
114
|
-
"@emotion/react": "^11.11.4",
|
|
115
|
-
"@mui/x-date-pickers": "^8.24.0",
|
|
116
|
-
"@mui/x-date-pickers-pro": "^8.24.0",
|
|
117
|
-
"@reduxjs/toolkit": ">=1.9.0",
|
|
118
|
-
"axios": ">=1.0.0",
|
|
119
|
-
"dayjs": "^1.11.19",
|
|
120
|
-
"google-libphonenumber": "^3.2.43",
|
|
121
|
-
"i18next": "^25.8.0",
|
|
122
|
-
"moment": "^2.30.1",
|
|
123
|
-
"react": ">=17.0.2 <19.0.0",
|
|
124
|
-
"react-dom": ">=17.0.2 <19.0.0",
|
|
125
|
-
"react-i18next": "^16.5.3"
|
|
126
|
-
},
|
|
127
|
-
"dependencies": {
|
|
128
|
-
"@trii/types": "^2.10.638"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@trii/components",
|
|
3
|
+
"version": "2.0.101",
|
|
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": "npm-run-all --parallel dev:types dev:js",
|
|
13
|
+
"dev:types": "tsc --watch",
|
|
14
|
+
"dev:js": "rollup -c --watch",
|
|
15
|
+
"build": "npm-run-all --serial build:types build:js",
|
|
16
|
+
"build:types": "tsc --project tsconfig.build.json --emitDeclarationOnly",
|
|
17
|
+
"build:js": "rollup -c",
|
|
18
|
+
"test": "jest --watchAll --verbose",
|
|
19
|
+
"storybook": "storybook dev -p 6006",
|
|
20
|
+
"build-storybook": "storybook build"
|
|
21
|
+
},
|
|
22
|
+
"author": "Ezequiel",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"babel": {
|
|
25
|
+
"sourceType": "unambiguous",
|
|
26
|
+
"presets": [
|
|
27
|
+
[
|
|
28
|
+
"@babel/preset-env",
|
|
29
|
+
{
|
|
30
|
+
"targets": {
|
|
31
|
+
"chrome": 100,
|
|
32
|
+
"safari": 15,
|
|
33
|
+
"firefox": 91
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"@babel/preset-react",
|
|
39
|
+
{
|
|
40
|
+
"runtime": "automatic"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"@babel/preset-typescript"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"postcss": {
|
|
47
|
+
"plugins": {
|
|
48
|
+
"postcss-import": {}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@babel/core": "^7.23.0",
|
|
53
|
+
"@babel/preset-env": "^7.22.20",
|
|
54
|
+
"@babel/preset-react": "^7.22.15",
|
|
55
|
+
"@babel/preset-typescript": "^7.23.0",
|
|
56
|
+
"@emotion/react": "^11.11.4",
|
|
57
|
+
"@emotion/styled": "^11.11.5",
|
|
58
|
+
"@fontsource/material-icons": "^5.0.18",
|
|
59
|
+
"@fontsource/roboto": "^5.0.13",
|
|
60
|
+
"@mui/icons-material": "^5.15.15",
|
|
61
|
+
"@mui/lab": "^5.0.0-alpha.176",
|
|
62
|
+
"@mui/material": "^5.18.0",
|
|
63
|
+
"@reduxjs/toolkit": "^2.11.2",
|
|
64
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
65
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
66
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
67
|
+
"@storybook/addon-essentials": "^8.5.3",
|
|
68
|
+
"@storybook/addon-interactions": "^8.5.3",
|
|
69
|
+
"@storybook/addon-links": "^8.5.3",
|
|
70
|
+
"@storybook/addon-onboarding": "^8.5.3",
|
|
71
|
+
"@storybook/addon-themes": "^8.5.3",
|
|
72
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.5",
|
|
73
|
+
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
74
|
+
"@storybook/blocks": "^8.5.3",
|
|
75
|
+
"@storybook/react": "^8.5.3",
|
|
76
|
+
"@storybook/react-webpack5": "^8.5.3",
|
|
77
|
+
"@storybook/test": "^8.5.3",
|
|
78
|
+
"@testing-library/jest-dom": "^6.1.3",
|
|
79
|
+
"@testing-library/react": "^14.0.0",
|
|
80
|
+
"@types/google-libphonenumber": "^7.4.30",
|
|
81
|
+
"@types/google.maps": "^3.58.1",
|
|
82
|
+
"@types/jest": "^29.5.5",
|
|
83
|
+
"@types/react": "^18.2.23",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
85
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
86
|
+
"axios": "^1.14.0",
|
|
87
|
+
"babel-jest": "^29.7.0",
|
|
88
|
+
"esbuild": "^0.27.2",
|
|
89
|
+
"eslint": "^9.39.2",
|
|
90
|
+
"eslint-config-prettier": "^10.1.8",
|
|
91
|
+
"eslint-plugin-import": "^2.32.0",
|
|
92
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
93
|
+
"eslint-plugin-react": "^7.37.5",
|
|
94
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
95
|
+
"google-libphonenumber": "^3.2.44",
|
|
96
|
+
"immer": "^11.1.4",
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
99
|
+
"npm-run-all": "^4.1.5",
|
|
100
|
+
"postcss": "^8.4.31",
|
|
101
|
+
"postcss-import": "^15.1.0",
|
|
102
|
+
"prettier": "^3.8.0",
|
|
103
|
+
"react": "^18.2.0",
|
|
104
|
+
"react-dom": "^18.2.0",
|
|
105
|
+
"rollup": "^3.29.4",
|
|
106
|
+
"rollup-plugin-dts": "^6.0.2",
|
|
107
|
+
"rollup-plugin-esbuild": "^6.2.1",
|
|
108
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
109
|
+
"storybook": "^8.5.3",
|
|
110
|
+
"tslib": "^2.6.2",
|
|
111
|
+
"typescript": "^5.2.2"
|
|
112
|
+
},
|
|
113
|
+
"peerDependencies": {
|
|
114
|
+
"@emotion/react": "^11.11.4",
|
|
115
|
+
"@mui/x-date-pickers": "^8.24.0",
|
|
116
|
+
"@mui/x-date-pickers-pro": "^8.24.0",
|
|
117
|
+
"@reduxjs/toolkit": ">=1.9.0",
|
|
118
|
+
"axios": ">=1.0.0",
|
|
119
|
+
"dayjs": "^1.11.19",
|
|
120
|
+
"google-libphonenumber": "^3.2.43",
|
|
121
|
+
"i18next": "^25.8.0",
|
|
122
|
+
"moment": "^2.30.1",
|
|
123
|
+
"react": ">=17.0.2 <19.0.0",
|
|
124
|
+
"react-dom": ">=17.0.2 <19.0.0",
|
|
125
|
+
"react-i18next": "^16.5.3"
|
|
126
|
+
},
|
|
127
|
+
"dependencies": {
|
|
128
|
+
"@trii/types": "^2.10.638"
|
|
129
|
+
}
|
|
130
|
+
}
|
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
|
+
```
|