@fctc/sme-widget-ui 1.3.3 → 1.3.4

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/README.md CHANGED
@@ -1,93 +1,93 @@
1
- # edu-widget-ui
2
-
3
-
4
-
5
- ## Getting started
6
-
7
- To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
-
9
- Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
-
11
- ## Add your files
12
-
13
- - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
- - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
-
16
- ```
17
- cd existing_repo
18
- git remote add origin https://gitlab.atomsolution.vn/education-erp/edu-widget-ui.git
19
- git branch -M main
20
- git push -uf origin main
21
- ```
22
-
23
- ## Integrate with your tools
24
-
25
- - [ ] [Set up project integrations](https://gitlab.atomsolution.vn/education-erp/edu-widget-ui/-/settings/integrations)
26
-
27
- ## Collaborate with your team
28
-
29
- - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
- - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
- - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
- - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
- - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
-
35
- ## Test and Deploy
36
-
37
- Use the built-in continuous integration in GitLab.
38
-
39
- - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
- - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
- - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
- - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
- - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
-
45
- ***
46
-
47
- # Editing this README
48
-
49
- When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
-
51
- ## Suggestions for a good README
52
-
53
- Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
-
55
- ## Name
56
- Choose a self-explaining name for your project.
57
-
58
- ## Description
59
- Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
-
61
- ## Badges
62
- On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
-
64
- ## Visuals
65
- Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
-
67
- ## Installation
68
- Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
-
70
- ## Usage
71
- Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
-
73
- ## Support
74
- Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
-
76
- ## Roadmap
77
- If you have ideas for releases in the future, it is a good idea to list them in the README.
78
-
79
- ## Contributing
80
- State if you are open to contributions and what your requirements are for accepting them.
81
-
82
- For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
-
84
- You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
-
86
- ## Authors and acknowledgment
87
- Show your appreciation to those who have contributed to the project.
88
-
89
- ## License
90
- For open source projects, say how it is licensed.
91
-
92
- ## Project status
93
- If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
1
+ # edu-widget-ui
2
+
3
+
4
+
5
+ ## Getting started
6
+
7
+ To make it easy for you to get started with GitLab, here's a list of recommended next steps.
8
+
9
+ Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
10
+
11
+ ## Add your files
12
+
13
+ - [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14
+ - [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
15
+
16
+ ```
17
+ cd existing_repo
18
+ git remote add origin https://gitlab.atomsolution.vn/education-erp/edu-widget-ui.git
19
+ git branch -M main
20
+ git push -uf origin main
21
+ ```
22
+
23
+ ## Integrate with your tools
24
+
25
+ - [ ] [Set up project integrations](https://gitlab.atomsolution.vn/education-erp/edu-widget-ui/-/settings/integrations)
26
+
27
+ ## Collaborate with your team
28
+
29
+ - [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30
+ - [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31
+ - [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32
+ - [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33
+ - [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
34
+
35
+ ## Test and Deploy
36
+
37
+ Use the built-in continuous integration in GitLab.
38
+
39
+ - [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40
+ - [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41
+ - [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42
+ - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43
+ - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
44
+
45
+ ***
46
+
47
+ # Editing this README
48
+
49
+ When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
50
+
51
+ ## Suggestions for a good README
52
+
53
+ Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
54
+
55
+ ## Name
56
+ Choose a self-explaining name for your project.
57
+
58
+ ## Description
59
+ Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
60
+
61
+ ## Badges
62
+ On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
63
+
64
+ ## Visuals
65
+ Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
66
+
67
+ ## Installation
68
+ Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
69
+
70
+ ## Usage
71
+ Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
72
+
73
+ ## Support
74
+ Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
75
+
76
+ ## Roadmap
77
+ If you have ideas for releases in the future, it is a good idea to list them in the README.
78
+
79
+ ## Contributing
80
+ State if you are open to contributions and what your requirements are for accepting them.
81
+
82
+ For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
83
+
84
+ You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
85
+
86
+ ## Authors and acknowledgment
87
+ Show your appreciation to those who have contributed to the project.
88
+
89
+ ## License
90
+ For open source projects, say how it is licensed.
91
+
92
+ ## Project status
93
+ If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
package/dist/index.js CHANGED
@@ -34253,6 +34253,7 @@ var Many2ManyField = (props) => {
34253
34253
  setPage,
34254
34254
  evalJSONContext,
34255
34255
  searchController,
34256
+ tableGroupController,
34256
34257
  viewData,
34257
34258
  setDomain,
34258
34259
  isDisplayCheckbox,
@@ -34282,7 +34283,7 @@ var Many2ManyField = (props) => {
34282
34283
  "div",
34283
34284
  {
34284
34285
  style: {
34285
- zIndex: 99999
34286
+ zIndex: 999
34286
34287
  },
34287
34288
  className: "fixed bottom-0 left-0 right-0 top-0",
34288
34289
  children: [
@@ -34376,6 +34377,7 @@ var Many2ManyField = (props) => {
34376
34377
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34377
34378
  TableBody,
34378
34379
  {
34380
+ tableGroupController,
34379
34381
  columns,
34380
34382
  rows,
34381
34383
  rootField,
@@ -34582,7 +34584,7 @@ var Many2OneField = (props) => {
34582
34584
  classNames: {
34583
34585
  control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34584
34586
  valueContainer: () => "!m-0 !p-0 ",
34585
- singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34587
+ singleValue: () => `!m-0`,
34586
34588
  input: () => "!m-0 !p-0",
34587
34589
  dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34588
34590
  clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
package/dist/index.mjs CHANGED
@@ -34134,6 +34134,7 @@ var Many2ManyField = (props) => {
34134
34134
  setPage,
34135
34135
  evalJSONContext,
34136
34136
  searchController,
34137
+ tableGroupController,
34137
34138
  viewData,
34138
34139
  setDomain,
34139
34140
  isDisplayCheckbox,
@@ -34163,7 +34164,7 @@ var Many2ManyField = (props) => {
34163
34164
  "div",
34164
34165
  {
34165
34166
  style: {
34166
- zIndex: 99999
34167
+ zIndex: 999
34167
34168
  },
34168
34169
  className: "fixed bottom-0 left-0 right-0 top-0",
34169
34170
  children: [
@@ -34257,6 +34258,7 @@ var Many2ManyField = (props) => {
34257
34258
  /* @__PURE__ */ jsx103(
34258
34259
  TableBody,
34259
34260
  {
34261
+ tableGroupController,
34260
34262
  columns,
34261
34263
  rows,
34262
34264
  rootField,
@@ -34463,7 +34465,7 @@ var Many2OneField = (props) => {
34463
34465
  classNames: {
34464
34466
  control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34465
34467
  valueContainer: () => "!m-0 !p-0 ",
34466
- singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34468
+ singleValue: () => `!m-0`,
34467
34469
  input: () => "!m-0 !p-0",
34468
34470
  dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34469
34471
  clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
@@ -424,6 +424,7 @@ interface Many2ManyProps extends IInputFieldProps {
424
424
  setPage?: (page: number) => void;
425
425
  setDomain?: Dispatch<SetStateAction<any>>;
426
426
  searchController: SearchController;
427
+ tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
427
428
  evalJSONContext?: any;
428
429
  checkedAll?: any;
429
430
  handleCheckBoxAll?: any;
package/dist/widgets.d.ts CHANGED
@@ -424,6 +424,7 @@ interface Many2ManyProps extends IInputFieldProps {
424
424
  setPage?: (page: number) => void;
425
425
  setDomain?: Dispatch<SetStateAction<any>>;
426
426
  searchController: SearchController;
427
+ tableGroupController: (props: TableGroupControllerProps) => TableGroupControllerReturn;
427
428
  evalJSONContext?: any;
428
429
  checkedAll?: any;
429
430
  handleCheckBoxAll?: any;
package/dist/widgets.js CHANGED
@@ -33879,6 +33879,7 @@ var Many2ManyField = (props) => {
33879
33879
  setPage,
33880
33880
  evalJSONContext,
33881
33881
  searchController,
33882
+ tableGroupController,
33882
33883
  viewData,
33883
33884
  setDomain,
33884
33885
  isDisplayCheckbox,
@@ -33908,7 +33909,7 @@ var Many2ManyField = (props) => {
33908
33909
  "div",
33909
33910
  {
33910
33911
  style: {
33911
- zIndex: 99999
33912
+ zIndex: 999
33912
33913
  },
33913
33914
  className: "fixed bottom-0 left-0 right-0 top-0",
33914
33915
  children: [
@@ -34002,6 +34003,7 @@ var Many2ManyField = (props) => {
34002
34003
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34003
34004
  TableBody,
34004
34005
  {
34006
+ tableGroupController,
34005
34007
  columns,
34006
34008
  rows,
34007
34009
  rootField,
@@ -34208,7 +34210,7 @@ var Many2OneField = (props) => {
34208
34210
  classNames: {
34209
34211
  control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34210
34212
  valueContainer: () => "!m-0 !p-0 ",
34211
- singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34213
+ singleValue: () => `!m-0`,
34212
34214
  input: () => "!m-0 !p-0",
34213
34215
  dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34214
34216
  clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
package/dist/widgets.mjs CHANGED
@@ -33816,6 +33816,7 @@ var Many2ManyField = (props) => {
33816
33816
  setPage,
33817
33817
  evalJSONContext,
33818
33818
  searchController,
33819
+ tableGroupController,
33819
33820
  viewData,
33820
33821
  setDomain,
33821
33822
  isDisplayCheckbox,
@@ -33845,7 +33846,7 @@ var Many2ManyField = (props) => {
33845
33846
  "div",
33846
33847
  {
33847
33848
  style: {
33848
- zIndex: 99999
33849
+ zIndex: 999
33849
33850
  },
33850
33851
  className: "fixed bottom-0 left-0 right-0 top-0",
33851
33852
  children: [
@@ -33939,6 +33940,7 @@ var Many2ManyField = (props) => {
33939
33940
  /* @__PURE__ */ jsx103(
33940
33941
  TableBody,
33941
33942
  {
33943
+ tableGroupController,
33942
33944
  columns,
33943
33945
  rows,
33944
33946
  rootField,
@@ -34145,7 +34147,7 @@ var Many2OneField = (props) => {
34145
34147
  classNames: {
34146
34148
  control: ({ isFocused }) => `w-full flex h-full ring-0 cursor-pointer outline-0 bg-white shadow-none rounded-[10px] py-2 px-3 text-sm text-[#1A1A1B] font-normal cursor-pointer gap-2 opacity-100 leading-5 resize-none overflow-hidden field-sizing-content ${isForm && (isFocused ? "border-[1px] border-primary !ring-0 outline-none" : "border border-[rgba(66,66,66,0.12)]")} ${readonly && "!cursor-not-allowed"} ${isEditTable && "md:!min-w-[300px] max-w-[300px] !rounded-none !border !border-transparent !border-b !border-[#f7f7f7] hover:border-b-primary !bg-transparent min-h-auto"}`,
34147
34149
  valueContainer: () => "!m-0 !p-0 ",
34148
- singleValue: () => `!m-0 ${readonly ? "!text-[#5c5a5a]" : ""}`,
34150
+ singleValue: () => `!m-0`,
34149
34151
  input: () => "!m-0 !p-0",
34150
34152
  dropdownIndicator: () => `${isEditTable ? "invisible group-hover:visible" : ""} !m-0 !p-0`,
34151
34153
  clearIndicator: () => `${isEditTable ? "invisible group-hover:visible !m-0 !p-0" : ""} `,
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
- {
2
- "name": "@fctc/sme-widget-ui",
3
- "version": "1.3.3",
4
- "main": "dist/index.cjs",
5
- "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
7
- "exports": {
8
- ".": {
9
- "types": "./dist/index.d.ts",
10
- "import": "./dist/index.mjs",
11
- "require": "./dist/index.cjs"
12
- },
13
- "./hooks": {
14
- "types": "./dist/hooks.d.ts",
15
- "import": "./dist/hooks.mjs",
16
- "require": "./dist/hooks.cjs"
17
- },
18
- "./icons": {
19
- "types": "./dist/icons.d.ts",
20
- "import": "./dist/icons.mjs",
21
- "require": "./dist/icons.cjs"
22
- },
23
- "./types": {
24
- "types": "./dist/types.d.ts",
25
- "import": "./dist/types.mjs",
26
- "require": "./dist/types.cjs"
27
- },
28
- "./widgets": {
29
- "types": "./dist/widgets.d.ts",
30
- "import": "./dist/widgets.mjs",
31
- "require": "./dist/widgets.cjs"
32
- },
33
- "./utils": {
34
- "types": "./dist/utils.d.ts",
35
- "import": "./dist/utils.mjs",
36
- "require": "./dist/utils.cjs"
37
- }
38
- },
39
- "files": [
40
- "dist"
41
- ],
42
- "scripts": {
43
- "build": "tsup",
44
- "test": "jest"
45
- },
46
- "dependencies": {
47
- "@headlessui/react": "^2.2.7",
48
- "@types/react-dom": "^19.1.7",
49
- "react-dom": "18.0.0",
50
- "zod": "^3.24.2"
51
- },
52
- "devDependencies": {
53
- "@hookform/resolvers": "^4.1.3",
54
- "@types/react": "18.0.0",
55
- "i18next": "^24.2.3",
56
- "i18next-browser-languagedetector": "^8.0.4",
57
- "jest": "^29.7.0",
58
- "moment": "^2.30.1",
59
- "react": "18.0.0",
60
- "react-datepicker": "^8.2.1",
61
- "react-hook-form": "^7.54.2",
62
- "react-i18next": "^15.4.1",
63
- "react-redux": "^9.2.0",
64
- "react-select": "^5.10.1",
65
- "react-toastify": "^11.0.5",
66
- "react-tooltip": "^5.28.0",
67
- "tailwindcss": "^3",
68
- "tsup": "^8.0.0",
69
- "typescript": "^5.8.2"
70
- }
71
- }
1
+ {
2
+ "name": "@fctc/sme-widget-ui",
3
+ "version": "1.3.4",
4
+ "main": "dist/index.cjs",
5
+ "module": "dist/index.mjs",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./hooks": {
14
+ "types": "./dist/hooks.d.ts",
15
+ "import": "./dist/hooks.mjs",
16
+ "require": "./dist/hooks.cjs"
17
+ },
18
+ "./icons": {
19
+ "types": "./dist/icons.d.ts",
20
+ "import": "./dist/icons.mjs",
21
+ "require": "./dist/icons.cjs"
22
+ },
23
+ "./types": {
24
+ "types": "./dist/types.d.ts",
25
+ "import": "./dist/types.mjs",
26
+ "require": "./dist/types.cjs"
27
+ },
28
+ "./widgets": {
29
+ "types": "./dist/widgets.d.ts",
30
+ "import": "./dist/widgets.mjs",
31
+ "require": "./dist/widgets.cjs"
32
+ },
33
+ "./utils": {
34
+ "types": "./dist/utils.d.ts",
35
+ "import": "./dist/utils.mjs",
36
+ "require": "./dist/utils.cjs"
37
+ }
38
+ },
39
+ "files": [
40
+ "dist"
41
+ ],
42
+ "scripts": {
43
+ "build": "tsup",
44
+ "test": "jest"
45
+ },
46
+ "dependencies": {
47
+ "@headlessui/react": "^2.2.7",
48
+ "@types/react-dom": "^19.1.7",
49
+ "react-dom": "18.0.0",
50
+ "zod": "^3.24.2"
51
+ },
52
+ "devDependencies": {
53
+ "@hookform/resolvers": "^4.1.3",
54
+ "@types/react": "18.0.0",
55
+ "i18next": "^24.2.3",
56
+ "i18next-browser-languagedetector": "^8.0.4",
57
+ "jest": "^29.7.0",
58
+ "moment": "^2.30.1",
59
+ "react": "18.0.0",
60
+ "react-datepicker": "^8.2.1",
61
+ "react-hook-form": "^7.54.2",
62
+ "react-i18next": "^15.4.1",
63
+ "react-redux": "^9.2.0",
64
+ "react-select": "^5.10.1",
65
+ "react-toastify": "^11.0.5",
66
+ "react-tooltip": "^5.28.0",
67
+ "tailwindcss": "^3",
68
+ "tsup": "^8.0.0",
69
+ "typescript": "^5.8.2"
70
+ }
71
+ }
package/dist/.babelrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env",
4
- "@babel/preset-react",
5
- "@babel/preset-typescript"
6
- ]
7
- }
@@ -1,10 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- end_of_line = lf
5
- insert_final_newline = true
6
-
7
- [*.{js,json,yml}]
8
- charset = utf-8
9
- indent_style = space
10
- indent_size = 2
@@ -1,6 +0,0 @@
1
- dist
2
- .cache
3
- package-lock.json
4
- public
5
- node_modules
6
- yarn.lock
@@ -1,66 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: { browser: true, es2020: true },
4
- extends: [
5
- 'eslint:recommended',
6
- 'plugin:@typescript-eslint/recommended',
7
- 'plugin:prettier/recommended',
8
- ],
9
- ignorePatterns: ['dist', '.eslintrc.cjs', 'commitlint.config.cjs'],
10
- parser: '@typescript-eslint/parser',
11
- overrides: [
12
- {
13
- files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.cjs'],
14
- plugins: [
15
- '@typescript-eslint',
16
- 'unused-imports',
17
- 'simple-import-sort',
18
- 'react-refresh',
19
- ],
20
- rules: {
21
- 'react-refresh/only-export-components': [
22
- 'warn',
23
- { allowConstantExport: true },
24
- ],
25
- 'import/prefer-default-export': 'off',
26
- 'simple-import-sort/imports': [
27
- 'error',
28
- {
29
- groups: [
30
- // Packages `react` related packages come first.
31
- ['^react', '^@?\\w'],
32
- // Internal packages.
33
- ['^(@|components)(/.*|$)'],
34
- // Side effect imports.
35
- ['^\\u0000'],
36
- // Parent imports. Put `..` last.
37
- ['^\\.\\.(?!/?$)', '^\\.\\./?$'],
38
- // Other relative imports. Put same-folder imports and `.` last.
39
- ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'],
40
- // Style imports.
41
- ['^.+\\.?(css)$'],
42
- ],
43
- },
44
- ],
45
- 'prettier/prettier': [
46
- 'error',
47
- {
48
- endOfLine: 'auto',
49
- },
50
- ],
51
- 'react/react-in-jsx-scope': 'off',
52
- 'no-param-reassign': 'off',
53
- 'simple-import-sort/exports': 'error',
54
- '@typescript-eslint/no-unused-vars': 'off',
55
- '@typescript-eslint/no-non-null-assertion': 'off',
56
- '@typescript-eslint/no-explicit-any': 'off',
57
- '@typescript-eslint/ban-ts-comment': 'off',
58
- '@typescript-eslint/ban-types': 'off',
59
- 'unused-imports/no-unused-imports': 'error',
60
- 'unused-imports/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
61
- 'no-plusplus': 'off',
62
- 'no-case-declarations': 'off',
63
- },
64
- },
65
- ],
66
- }
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated
package/dist/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "singleQuote": true,
3
- "semi": false
4
- }