@fctc/sme-widget-ui 1.3.1 → 1.3.3

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/.babelrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-react",
5
+ "@babel/preset-typescript"
6
+ ]
7
+ }
@@ -0,0 +1,10 @@
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
@@ -0,0 +1,6 @@
1
+ dist
2
+ .cache
3
+ package-lock.json
4
+ public
5
+ node_modules
6
+ yarn.lock
@@ -0,0 +1,66 @@
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
+ }
@@ -0,0 +1,4 @@
1
+ /.yarn/** linguist-vendored
2
+ /.yarn/releases/* binary
3
+ /.yarn/plugins/**/* binary
4
+ /.pnp.* binary linguist-generated
@@ -0,0 +1,4 @@
1
+ {
2
+ "singleQuote": true,
3
+ "semi": false
4
+ }
package/dist/icons.d.mts CHANGED
@@ -12,7 +12,7 @@ declare const AttachIcon: () => JSX.Element;
12
12
 
13
13
  declare const BackIcon: () => JSX.Element;
14
14
 
15
- declare const CalandarIcon: () => JSX.Element;
15
+ declare const CalendarIcon: () => JSX.Element;
16
16
 
17
17
  declare const CheckIcon: () => JSX.Element;
18
18
 
@@ -85,4 +85,4 @@ declare const GoogleIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGEle
85
85
 
86
86
  declare const EyeClosedIcon: () => JSX.Element;
87
87
 
88
- export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalandarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon };
88
+ export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalendarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon };
package/dist/icons.d.ts CHANGED
@@ -12,7 +12,7 @@ declare const AttachIcon: () => JSX.Element;
12
12
 
13
13
  declare const BackIcon: () => JSX.Element;
14
14
 
15
- declare const CalandarIcon: () => JSX.Element;
15
+ declare const CalendarIcon: () => JSX.Element;
16
16
 
17
17
  declare const CheckIcon: () => JSX.Element;
18
18
 
@@ -85,4 +85,4 @@ declare const GoogleIcon: ({ width, height, ...props }: React.SVGProps<SVGSVGEle
85
85
 
86
86
  declare const EyeClosedIcon: () => JSX.Element;
87
87
 
88
- export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalandarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon };
88
+ export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalendarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon };
package/dist/icons.js CHANGED
@@ -26,7 +26,7 @@ __export(icons_exports, {
26
26
  ArrowRightIcon: () => ArrowRightIcon,
27
27
  AttachIcon: () => AttachIcon,
28
28
  BackIcon: () => BackIcon,
29
- CalandarIcon: () => CalandarIcon,
29
+ CalendarIcon: () => CalendarIcon,
30
30
  CheckIcon: () => CheckIcon,
31
31
  ChevronBottomIcon: () => ChevronBottomIcon,
32
32
  CloseIcon: () => CloseIcon,
@@ -198,9 +198,9 @@ var BackIcon = () => {
198
198
  );
199
199
  };
200
200
 
201
- // src/icons/calandar-icon.tsx
201
+ // src/icons/calendar-icon.tsx
202
202
  var import_jsx_runtime7 = require("react/jsx-runtime");
203
- var CalandarIcon = () => {
203
+ var CalendarIcon = () => {
204
204
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
205
205
  "svg",
206
206
  {
@@ -1810,7 +1810,7 @@ var EyeClosedIcon = () => {
1810
1810
  ArrowRightIcon,
1811
1811
  AttachIcon,
1812
1812
  BackIcon,
1813
- CalandarIcon,
1813
+ CalendarIcon,
1814
1814
  CheckIcon,
1815
1815
  ChevronBottomIcon,
1816
1816
  CloseIcon,
package/dist/icons.mjs CHANGED
@@ -137,9 +137,9 @@ var BackIcon = () => {
137
137
  );
138
138
  };
139
139
 
140
- // src/icons/calandar-icon.tsx
140
+ // src/icons/calendar-icon.tsx
141
141
  import { jsx as jsx7, jsxs } from "react/jsx-runtime";
142
- var CalandarIcon = () => {
142
+ var CalendarIcon = () => {
143
143
  return /* @__PURE__ */ jsxs(
144
144
  "svg",
145
145
  {
@@ -1748,7 +1748,7 @@ export {
1748
1748
  ArrowRightIcon,
1749
1749
  AttachIcon,
1750
1750
  BackIcon,
1751
- CalandarIcon,
1751
+ CalendarIcon,
1752
1752
  CheckIcon,
1753
1753
  ChevronBottomIcon,
1754
1754
  CloseIcon,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { useClickOutside } from './hooks.mjs';
2
- export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalandarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon } from './icons.mjs';
2
+ export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalendarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon } from './icons.mjs';
3
3
  export { IInputFieldProps, LoginData, LoginProps, Provider, ValuePropsType, loginSchema } from './types.mjs';
4
4
  export { ActiveBadgeField, AvatarField, BinaryField, ButtonBadgeField, ButtonField, ButtonSelectFiles, CharField, CheckboxField, ColorField, ColorWrapper, CopyLinkButtonField, DateField, DateOptionField, DownLoadBinaryField, DownloadFileField, DropdownField, EmptyTable, FeeField, FileUploadField, FloatField, FloatTimeField, HtmlField, IActiveBadgeProps, IAvatarProps, IBinaryFieldProps, IButtonBadgeProps, IButtonProps, ICharFieldProps, IColorFieldProps, IColorWrapperProps, ICopyLinkButtonProps, IDateFieldProps, IDownLoadBinary, IDownloadFileProps, IDurationProps, IFileUploadProps, IMany2ManyTagsProps, IMonetaryProps, IOptionProps, IPaginationProps, IPriorityFieldProps, IRadioGroupProps, IRatingStarProps, ISelectDropdownProps, IStatusDropdownFieldProps, ImageField, InfomationField, IntegerField, LayerLoading, LoadingSmall, Login, Many2ManyField, Many2ManyProps, Many2ManyTagField, Many2OneField, Many2OneProps, ModalConfirm, ModalDetail, ModalLayer, MonetaryField, PaginationView, PaidBadgedField, PriorityField, RadioGroupField, RatingStarField, RemainingDaysField, RenderFiles, Row, Search, SelectDropdownField, StatusBarOptionField, StatusDropdownField, StatusbarDurationField, TDropdownSelectorProps, TableBody, TableFilter, TableFooter, TableGroup, TableHead, TextAreaField, ToggleButtonField, VideoPlayer, usePagination } from './widgets.mjs';
5
5
  export { COLORS, DOTS, SearchType, checkIsImageLink, convertFloatToTime, convertTimeToFloat, formatFileSize, formatFloatNumber, formatNumberOnly, getPasswordMessage, isBase64Image, isObjectEmpty, parseFormattedNumber, range, typeStyles, useFormatDate, validateAndParseDate, validateInput } from './utils.mjs';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { useClickOutside } from './hooks.js';
2
- export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalandarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon } from './icons.js';
2
+ export { AddIcon, ArchiveIcon, ArrowDownIcon, ArrowRightIcon, AttachIcon, BackIcon, CalendarIcon, CheckIcon, ChevronBottomIcon, CloseIcon, CopyIcon, DeleteIcon, DownloadIcon, ExcelIcon, ExportIcon, EyeClosedIcon, EyeIcon, FilterIcon, GoogleIcon, GroupByIcon, KanbanIcon, ListIcon, LoadingIcon, MoreIcon, PaidIcon, PdfIcon, PlaceHolderIcon, PlayIcon, ResetIcon, SearchIcon, SettingIcon, StarIcon, TriangleIcon, UnArchiveIcon, VectorIcon, ZipIcon } from './icons.js';
3
3
  export { IInputFieldProps, LoginData, LoginProps, Provider, ValuePropsType, loginSchema } from './types.js';
4
4
  export { ActiveBadgeField, AvatarField, BinaryField, ButtonBadgeField, ButtonField, ButtonSelectFiles, CharField, CheckboxField, ColorField, ColorWrapper, CopyLinkButtonField, DateField, DateOptionField, DownLoadBinaryField, DownloadFileField, DropdownField, EmptyTable, FeeField, FileUploadField, FloatField, FloatTimeField, HtmlField, IActiveBadgeProps, IAvatarProps, IBinaryFieldProps, IButtonBadgeProps, IButtonProps, ICharFieldProps, IColorFieldProps, IColorWrapperProps, ICopyLinkButtonProps, IDateFieldProps, IDownLoadBinary, IDownloadFileProps, IDurationProps, IFileUploadProps, IMany2ManyTagsProps, IMonetaryProps, IOptionProps, IPaginationProps, IPriorityFieldProps, IRadioGroupProps, IRatingStarProps, ISelectDropdownProps, IStatusDropdownFieldProps, ImageField, InfomationField, IntegerField, LayerLoading, LoadingSmall, Login, Many2ManyField, Many2ManyProps, Many2ManyTagField, Many2OneField, Many2OneProps, ModalConfirm, ModalDetail, ModalLayer, MonetaryField, PaginationView, PaidBadgedField, PriorityField, RadioGroupField, RatingStarField, RemainingDaysField, RenderFiles, Row, Search, SelectDropdownField, StatusBarOptionField, StatusDropdownField, StatusbarDurationField, TDropdownSelectorProps, TableBody, TableFilter, TableFooter, TableGroup, TableHead, TextAreaField, ToggleButtonField, VideoPlayer, usePagination } from './widgets.js';
5
5
  export { COLORS, DOTS, SearchType, checkIsImageLink, convertFloatToTime, convertTimeToFloat, formatFileSize, formatFloatNumber, formatNumberOnly, getPasswordMessage, isBase64Image, isObjectEmpty, parseFormattedNumber, range, typeStyles, useFormatDate, validateAndParseDate, validateInput } from './utils.js';
package/dist/index.js CHANGED
@@ -4951,7 +4951,7 @@ __export(index_exports, {
4951
4951
  ButtonField: () => ButtonField,
4952
4952
  ButtonSelectFiles: () => ButtonSelectFiles,
4953
4953
  COLORS: () => COLORS,
4954
- CalandarIcon: () => CalandarIcon,
4954
+ CalendarIcon: () => CalendarIcon,
4955
4955
  CharField: () => CharField,
4956
4956
  CheckIcon: () => CheckIcon,
4957
4957
  CheckboxField: () => CheckboxField,
@@ -5225,9 +5225,9 @@ var BackIcon = () => {
5225
5225
  );
5226
5226
  };
5227
5227
 
5228
- // src/icons/calandar-icon.tsx
5228
+ // src/icons/calendar-icon.tsx
5229
5229
  var import_jsx_runtime7 = require("react/jsx-runtime");
5230
- var CalandarIcon = () => {
5230
+ var CalendarIcon = () => {
5231
5231
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
5232
5232
  "svg",
5233
5233
  {
@@ -15419,7 +15419,7 @@ var Search = ({
15419
15419
  "div",
15420
15420
  {
15421
15421
  ref: popupFilterRef,
15422
- className: `search gap-[8px] p-2 items-center ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15422
+ className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15423
15423
  children: [
15424
15424
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SearchIcon, {}) }),
15425
15425
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -18122,7 +18122,8 @@ var BinaryField = (props) => {
18122
18122
  handleImageChange,
18123
18123
  handleRemoveImage,
18124
18124
  checkIsImageLink: checkIsImageLink2,
18125
- getImageBase64WithMimeType
18125
+ getImageBase64WithMimeType,
18126
+ image
18126
18127
  } = props;
18127
18128
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18128
18129
  Controller,
@@ -18135,7 +18136,7 @@ var BinaryField = (props) => {
18135
18136
  "div",
18136
18137
  {
18137
18138
  ref: binaryRef,
18138
- className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
18139
+ className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
18139
18140
  children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative group", children: [
18140
18141
  renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18141
18142
  "img",
@@ -18165,9 +18166,8 @@ var BinaryField = (props) => {
18165
18166
  "label",
18166
18167
  {
18167
18168
  htmlFor: inputId,
18168
- className: `flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border-4 border-dashed border-gray-300 bg-white transition-colors duration-300 hover:bg-gray-200 ${readonly && "pointer-events-none"}`,
18169
+ className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
18169
18170
  children: [
18170
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(AddIcon, {}) }),
18171
18171
  /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18172
18172
  "input",
18173
18173
  {
@@ -18177,7 +18177,38 @@ var BinaryField = (props) => {
18177
18177
  placeholder,
18178
18178
  required: !invisible && required,
18179
18179
  onChange: (e3) => handleImageChange(e3, field.onChange),
18180
- className: "hidden"
18180
+ className: "hidden z-10 relative"
18181
+ }
18182
+ ),
18183
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
18184
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18185
+ "div",
18186
+ {
18187
+ className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
18188
+ style: {
18189
+ bottom: "-8px",
18190
+ left: "-8px",
18191
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
18192
+ },
18193
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18194
+ "svg",
18195
+ {
18196
+ xmlns: "http://www.w3.org/2000/svg",
18197
+ width: "14",
18198
+ height: "14",
18199
+ viewBox: "0 0 14 14",
18200
+ fill: "none",
18201
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
18202
+ "path",
18203
+ {
18204
+ "fill-rule": "evenodd",
18205
+ "clip-rule": "evenodd",
18206
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
18207
+ fill: "black"
18208
+ }
18209
+ )
18210
+ }
18211
+ )
18181
18212
  }
18182
18213
  )
18183
18214
  ]
@@ -26398,7 +26429,7 @@ var Calendar = (
26398
26429
  return Calendar2;
26399
26430
  }(import_react42.Component)
26400
26431
  );
26401
- var CalendarIcon = function(_a2) {
26432
+ var CalendarIcon2 = function(_a2) {
26402
26433
  var icon = _a2.icon, _b = _a2.className, className = _b === void 0 ? "" : _b, onClick = _a2.onClick;
26403
26434
  var defaultClass = "react-datepicker__calendar-icon";
26404
26435
  if (typeof icon === "string") {
@@ -27343,7 +27374,7 @@ var DatePicker = (
27343
27374
  return import_react42.default.createElement(
27344
27375
  "div",
27345
27376
  { className: "react-datepicker__input-container".concat(showIcon ? " react-datepicker__view-calendar-icon" : "") },
27346
- showIcon && import_react42.default.createElement(CalendarIcon, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
27377
+ showIcon && import_react42.default.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
27347
27378
  onClick: this.toggleCalendar
27348
27379
  } : null)),
27349
27380
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -32466,7 +32497,7 @@ var DateField = (props) => {
32466
32497
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
32467
32498
  }
32468
32499
  ),
32469
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CalandarIcon, {})
32500
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CalendarIcon, {})
32470
32501
  ] })
32471
32502
  );
32472
32503
  if (!isForm && !isEditTable) {
@@ -34268,7 +34299,7 @@ var Many2ManyField = (props) => {
34268
34299
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
34269
34300
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CloseIcon, {}) })
34270
34301
  ] }),
34271
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
34302
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "grid grid-cols-2 gap-2 items-center py-2", children: [
34272
34303
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
34273
34304
  Search,
34274
34305
  {
@@ -34866,7 +34897,7 @@ var DateOptionField = (props) => {
34866
34897
  ButtonField,
34867
34898
  ButtonSelectFiles,
34868
34899
  COLORS,
34869
- CalandarIcon,
34900
+ CalendarIcon,
34870
34901
  CharField,
34871
34902
  CheckIcon,
34872
34903
  CheckboxField,
package/dist/index.mjs CHANGED
@@ -5106,9 +5106,9 @@ var BackIcon = () => {
5106
5106
  );
5107
5107
  };
5108
5108
 
5109
- // src/icons/calandar-icon.tsx
5109
+ // src/icons/calendar-icon.tsx
5110
5110
  import { jsx as jsx7, jsxs } from "react/jsx-runtime";
5111
- var CalandarIcon = () => {
5111
+ var CalendarIcon = () => {
5112
5112
  return /* @__PURE__ */ jsxs(
5113
5113
  "svg",
5114
5114
  {
@@ -15300,7 +15300,7 @@ var Search = ({
15300
15300
  "div",
15301
15301
  {
15302
15302
  ref: popupFilterRef,
15303
- className: `search gap-[8px] p-2 items-center ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15303
+ className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15304
15304
  children: [
15305
15305
  /* @__PURE__ */ jsx58("div", { className: "size-5", children: /* @__PURE__ */ jsx58(SearchIcon, {}) }),
15306
15306
  /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -18003,7 +18003,8 @@ var BinaryField = (props) => {
18003
18003
  handleImageChange,
18004
18004
  handleRemoveImage,
18005
18005
  checkIsImageLink: checkIsImageLink2,
18006
- getImageBase64WithMimeType
18006
+ getImageBase64WithMimeType,
18007
+ image
18007
18008
  } = props;
18008
18009
  return /* @__PURE__ */ jsx69(
18009
18010
  Controller,
@@ -18016,7 +18017,7 @@ var BinaryField = (props) => {
18016
18017
  "div",
18017
18018
  {
18018
18019
  ref: binaryRef,
18019
- className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
18020
+ className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
18020
18021
  children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
18021
18022
  renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx69(
18022
18023
  "img",
@@ -18046,9 +18047,8 @@ var BinaryField = (props) => {
18046
18047
  "label",
18047
18048
  {
18048
18049
  htmlFor: inputId,
18049
- className: `flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border-4 border-dashed border-gray-300 bg-white transition-colors duration-300 hover:bg-gray-200 ${readonly && "pointer-events-none"}`,
18050
+ className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
18050
18051
  children: [
18051
- /* @__PURE__ */ jsx69("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ jsx69(AddIcon, {}) }),
18052
18052
  /* @__PURE__ */ jsx69(
18053
18053
  "input",
18054
18054
  {
@@ -18058,7 +18058,38 @@ var BinaryField = (props) => {
18058
18058
  placeholder,
18059
18059
  required: !invisible && required,
18060
18060
  onChange: (e3) => handleImageChange(e3, field.onChange),
18061
- className: "hidden"
18061
+ className: "hidden z-10 relative"
18062
+ }
18063
+ ),
18064
+ /* @__PURE__ */ jsx69("img", { src: image, alt: "", className: "z-0 relative" }),
18065
+ /* @__PURE__ */ jsx69(
18066
+ "div",
18067
+ {
18068
+ className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
18069
+ style: {
18070
+ bottom: "-8px",
18071
+ left: "-8px",
18072
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
18073
+ },
18074
+ children: /* @__PURE__ */ jsx69(
18075
+ "svg",
18076
+ {
18077
+ xmlns: "http://www.w3.org/2000/svg",
18078
+ width: "14",
18079
+ height: "14",
18080
+ viewBox: "0 0 14 14",
18081
+ fill: "none",
18082
+ children: /* @__PURE__ */ jsx69(
18083
+ "path",
18084
+ {
18085
+ "fill-rule": "evenodd",
18086
+ "clip-rule": "evenodd",
18087
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
18088
+ fill: "black"
18089
+ }
18090
+ )
18091
+ }
18092
+ )
18062
18093
  }
18063
18094
  )
18064
18095
  ]
@@ -26279,7 +26310,7 @@ var Calendar = (
26279
26310
  return Calendar2;
26280
26311
  }(Component)
26281
26312
  );
26282
- var CalendarIcon = function(_a2) {
26313
+ var CalendarIcon2 = function(_a2) {
26283
26314
  var icon = _a2.icon, _b = _a2.className, className = _b === void 0 ? "" : _b, onClick = _a2.onClick;
26284
26315
  var defaultClass = "react-datepicker__calendar-icon";
26285
26316
  if (typeof icon === "string") {
@@ -27224,7 +27255,7 @@ var DatePicker = (
27224
27255
  return React9.createElement(
27225
27256
  "div",
27226
27257
  { className: "react-datepicker__input-container".concat(showIcon ? " react-datepicker__view-calendar-icon" : "") },
27227
- showIcon && React9.createElement(CalendarIcon, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
27258
+ showIcon && React9.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
27228
27259
  onClick: this.toggleCalendar
27229
27260
  } : null)),
27230
27261
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -32347,7 +32378,7 @@ var DateField = (props) => {
32347
32378
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
32348
32379
  }
32349
32380
  ),
32350
- isForm2 && /* @__PURE__ */ jsx80(CalandarIcon, {})
32381
+ isForm2 && /* @__PURE__ */ jsx80(CalendarIcon, {})
32351
32382
  ] })
32352
32383
  );
32353
32384
  if (!isForm && !isEditTable) {
@@ -34149,7 +34180,7 @@ var Many2ManyField = (props) => {
34149
34180
  /* @__PURE__ */ jsx103("div", { className: "text-[20px] font-semibold", children: title }),
34150
34181
  /* @__PURE__ */ jsx103("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx103(CloseIcon, {}) })
34151
34182
  ] }),
34152
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
34183
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-2 gap-2 items-center py-2", children: [
34153
34184
  /* @__PURE__ */ jsx103("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx103(
34154
34185
  Search,
34155
34186
  {
@@ -34746,7 +34777,7 @@ export {
34746
34777
  ButtonField,
34747
34778
  ButtonSelectFiles,
34748
34779
  COLORS,
34749
- CalandarIcon,
34780
+ CalendarIcon,
34750
34781
  CharField,
34751
34782
  CheckIcon,
34752
34783
  CheckboxField,
@@ -166,6 +166,7 @@ interface IBinaryFieldProps extends IInputFieldProps {
166
166
  handleRemoveImage: any;
167
167
  checkIsImageLink: any;
168
168
  getImageBase64WithMimeType: any;
169
+ image: any;
169
170
  }
170
171
 
171
172
  declare const BinaryField: (props: IBinaryFieldProps) => JSX.Element;
package/dist/widgets.d.ts CHANGED
@@ -166,6 +166,7 @@ interface IBinaryFieldProps extends IInputFieldProps {
166
166
  handleRemoveImage: any;
167
167
  checkIsImageLink: any;
168
168
  getImageBase64WithMimeType: any;
169
+ image: any;
169
170
  }
170
171
 
171
172
  declare const BinaryField: (props: IBinaryFieldProps) => JSX.Element;
package/dist/widgets.js CHANGED
@@ -8148,26 +8148,6 @@ var loadLanguages2 = instance.loadLanguages;
8148
8148
 
8149
8149
  // src/icons/add-icon.tsx
8150
8150
  var import_jsx_runtime3 = require("react/jsx-runtime");
8151
- var AddIcon = () => {
8152
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
8153
- "svg",
8154
- {
8155
- xmlns: "http://www.w3.org/2000/svg",
8156
- width: "16",
8157
- height: "16",
8158
- viewBox: "0 0 16 16",
8159
- fill: "none",
8160
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
8161
- "path",
8162
- {
8163
- d: "M8.09961 4.30078V7.90039H11.7002V8.10059H8.09961V11.7012H7.89941V8.10059H4.2998V7.90039H7.89941V4.30078H8.09961Z",
8164
- fill: "#060606",
8165
- stroke: "currentColor"
8166
- }
8167
- )
8168
- }
8169
- );
8170
- };
8171
8151
 
8172
8152
  // src/icons/archive-icon.tsx
8173
8153
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -8204,9 +8184,9 @@ var AttachIcon = () => {
8204
8184
  // src/icons/back-icon.tsx
8205
8185
  var import_jsx_runtime8 = require("react/jsx-runtime");
8206
8186
 
8207
- // src/icons/calandar-icon.tsx
8187
+ // src/icons/calendar-icon.tsx
8208
8188
  var import_jsx_runtime9 = require("react/jsx-runtime");
8209
- var CalandarIcon = () => {
8189
+ var CalendarIcon = () => {
8210
8190
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
8211
8191
  "svg",
8212
8192
  {
@@ -15065,7 +15045,7 @@ var Search = ({
15065
15045
  "div",
15066
15046
  {
15067
15047
  ref: popupFilterRef,
15068
- className: `search gap-[8px] p-2 items-center ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15048
+ className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15069
15049
  children: [
15070
15050
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "size-5", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SearchIcon, {}) }),
15071
15051
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -17768,7 +17748,8 @@ var BinaryField = (props) => {
17768
17748
  handleImageChange,
17769
17749
  handleRemoveImage,
17770
17750
  checkIsImageLink: checkIsImageLink2,
17771
- getImageBase64WithMimeType
17751
+ getImageBase64WithMimeType,
17752
+ image
17772
17753
  } = props;
17773
17754
  return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17774
17755
  Controller,
@@ -17781,7 +17762,7 @@ var BinaryField = (props) => {
17781
17762
  "div",
17782
17763
  {
17783
17764
  ref: binaryRef,
17784
- className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17765
+ className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17785
17766
  children: renderImage ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "relative group", children: [
17786
17767
  renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17787
17768
  "img",
@@ -17811,9 +17792,8 @@ var BinaryField = (props) => {
17811
17792
  "label",
17812
17793
  {
17813
17794
  htmlFor: inputId,
17814
- className: `flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border-4 border-dashed border-gray-300 bg-white transition-colors duration-300 hover:bg-gray-200 ${readonly && "pointer-events-none"}`,
17795
+ className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
17815
17796
  children: [
17816
- /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(AddIcon, {}) }),
17817
17797
  /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17818
17798
  "input",
17819
17799
  {
@@ -17823,7 +17803,38 @@ var BinaryField = (props) => {
17823
17803
  placeholder,
17824
17804
  required: !invisible && required,
17825
17805
  onChange: (e3) => handleImageChange(e3, field.onChange),
17826
- className: "hidden"
17806
+ className: "hidden z-10 relative"
17807
+ }
17808
+ ),
17809
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("img", { src: image, alt: "", className: "z-0 relative" }),
17810
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17811
+ "div",
17812
+ {
17813
+ className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
17814
+ style: {
17815
+ bottom: "-8px",
17816
+ left: "-8px",
17817
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17818
+ },
17819
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17820
+ "svg",
17821
+ {
17822
+ xmlns: "http://www.w3.org/2000/svg",
17823
+ width: "14",
17824
+ height: "14",
17825
+ viewBox: "0 0 14 14",
17826
+ fill: "none",
17827
+ children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
17828
+ "path",
17829
+ {
17830
+ "fill-rule": "evenodd",
17831
+ "clip-rule": "evenodd",
17832
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
17833
+ fill: "black"
17834
+ }
17835
+ )
17836
+ }
17837
+ )
17827
17838
  }
17828
17839
  )
17829
17840
  ]
@@ -26044,7 +26055,7 @@ var Calendar = (
26044
26055
  return Calendar2;
26045
26056
  }(import_react42.Component)
26046
26057
  );
26047
- var CalendarIcon = function(_a2) {
26058
+ var CalendarIcon2 = function(_a2) {
26048
26059
  var icon = _a2.icon, _b = _a2.className, className = _b === void 0 ? "" : _b, onClick = _a2.onClick;
26049
26060
  var defaultClass = "react-datepicker__calendar-icon";
26050
26061
  if (typeof icon === "string") {
@@ -26989,7 +27000,7 @@ var DatePicker = (
26989
27000
  return import_react42.default.createElement(
26990
27001
  "div",
26991
27002
  { className: "react-datepicker__input-container".concat(showIcon ? " react-datepicker__view-calendar-icon" : "") },
26992
- showIcon && import_react42.default.createElement(CalendarIcon, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
27003
+ showIcon && import_react42.default.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
26993
27004
  onClick: this.toggleCalendar
26994
27005
  } : null)),
26995
27006
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -32112,7 +32123,7 @@ var DateField = (props) => {
32112
32123
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
32113
32124
  }
32114
32125
  ),
32115
- isForm2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CalandarIcon, {})
32126
+ isForm2 && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(CalendarIcon, {})
32116
32127
  ] })
32117
32128
  );
32118
32129
  if (!isForm && !isEditTable) {
@@ -33914,7 +33925,7 @@ var Many2ManyField = (props) => {
33914
33925
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "text-[20px] font-semibold", children: title }),
33915
33926
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(CloseIcon, {}) })
33916
33927
  ] }),
33917
- /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33928
+ /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)("div", { className: "grid grid-cols-2 gap-2 items-center py-2", children: [
33918
33929
  /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
33919
33930
  Search,
33920
33931
  {
package/dist/widgets.mjs CHANGED
@@ -8085,26 +8085,6 @@ var loadLanguages2 = instance.loadLanguages;
8085
8085
 
8086
8086
  // src/icons/add-icon.tsx
8087
8087
  import { jsx as jsx3 } from "react/jsx-runtime";
8088
- var AddIcon = () => {
8089
- return /* @__PURE__ */ jsx3(
8090
- "svg",
8091
- {
8092
- xmlns: "http://www.w3.org/2000/svg",
8093
- width: "16",
8094
- height: "16",
8095
- viewBox: "0 0 16 16",
8096
- fill: "none",
8097
- children: /* @__PURE__ */ jsx3(
8098
- "path",
8099
- {
8100
- d: "M8.09961 4.30078V7.90039H11.7002V8.10059H8.09961V11.7012H7.89941V8.10059H4.2998V7.90039H7.89941V4.30078H8.09961Z",
8101
- fill: "#060606",
8102
- stroke: "currentColor"
8103
- }
8104
- )
8105
- }
8106
- );
8107
- };
8108
8088
 
8109
8089
  // src/icons/archive-icon.tsx
8110
8090
  import { jsx as jsx4 } from "react/jsx-runtime";
@@ -8141,9 +8121,9 @@ var AttachIcon = () => {
8141
8121
  // src/icons/back-icon.tsx
8142
8122
  import { jsx as jsx8 } from "react/jsx-runtime";
8143
8123
 
8144
- // src/icons/calandar-icon.tsx
8124
+ // src/icons/calendar-icon.tsx
8145
8125
  import { jsx as jsx9, jsxs as jsxs2 } from "react/jsx-runtime";
8146
- var CalandarIcon = () => {
8126
+ var CalendarIcon = () => {
8147
8127
  return /* @__PURE__ */ jsxs2(
8148
8128
  "svg",
8149
8129
  {
@@ -15002,7 +14982,7 @@ var Search = ({
15002
14982
  "div",
15003
14983
  {
15004
14984
  ref: popupFilterRef,
15005
- className: `search gap-[8px] p-2 items-center ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
14985
+ className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
15006
14986
  children: [
15007
14987
  /* @__PURE__ */ jsx58("div", { className: "size-5", children: /* @__PURE__ */ jsx58(SearchIcon, {}) }),
15008
14988
  /* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -17705,7 +17685,8 @@ var BinaryField = (props) => {
17705
17685
  handleImageChange,
17706
17686
  handleRemoveImage,
17707
17687
  checkIsImageLink: checkIsImageLink2,
17708
- getImageBase64WithMimeType
17688
+ getImageBase64WithMimeType,
17689
+ image
17709
17690
  } = props;
17710
17691
  return /* @__PURE__ */ jsx69(
17711
17692
  Controller,
@@ -17718,7 +17699,7 @@ var BinaryField = (props) => {
17718
17699
  "div",
17719
17700
  {
17720
17701
  ref: binaryRef,
17721
- className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17702
+ className: "flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
17722
17703
  children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
17723
17704
  renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx69(
17724
17705
  "img",
@@ -17748,9 +17729,8 @@ var BinaryField = (props) => {
17748
17729
  "label",
17749
17730
  {
17750
17731
  htmlFor: inputId,
17751
- className: `flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border-4 border-dashed border-gray-300 bg-white transition-colors duration-300 hover:bg-gray-200 ${readonly && "pointer-events-none"}`,
17732
+ className: `relative p-2 flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border border-gray-300 hover:border-gray-500 bg-white transition-colors duration-300 ${readonly && "pointer-events-none"}`,
17752
17733
  children: [
17753
- /* @__PURE__ */ jsx69("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ jsx69(AddIcon, {}) }),
17754
17734
  /* @__PURE__ */ jsx69(
17755
17735
  "input",
17756
17736
  {
@@ -17760,7 +17740,38 @@ var BinaryField = (props) => {
17760
17740
  placeholder,
17761
17741
  required: !invisible && required,
17762
17742
  onChange: (e3) => handleImageChange(e3, field.onChange),
17763
- className: "hidden"
17743
+ className: "hidden z-10 relative"
17744
+ }
17745
+ ),
17746
+ /* @__PURE__ */ jsx69("img", { src: image, alt: "", className: "z-0 relative" }),
17747
+ /* @__PURE__ */ jsx69(
17748
+ "div",
17749
+ {
17750
+ className: "absolute size-8 bg-white rounded-full flex justify-center items-center z-20",
17751
+ style: {
17752
+ bottom: "-8px",
17753
+ left: "-8px",
17754
+ boxShadow: "0 1px 2px 0 rgba(228, 229, 231, 0.24)"
17755
+ },
17756
+ children: /* @__PURE__ */ jsx69(
17757
+ "svg",
17758
+ {
17759
+ xmlns: "http://www.w3.org/2000/svg",
17760
+ width: "14",
17761
+ height: "14",
17762
+ viewBox: "0 0 14 14",
17763
+ fill: "none",
17764
+ children: /* @__PURE__ */ jsx69(
17765
+ "path",
17766
+ {
17767
+ "fill-rule": "evenodd",
17768
+ "clip-rule": "evenodd",
17769
+ d: "M13.1868 0.813097C12.7961 0.422532 12.2663 0.203125 11.7139 0.203125C11.1615 0.203125 10.6317 0.422532 10.241 0.813097L9.35765 1.69726L12.3035 4.64393L12.0085 4.9381L11.7143 5.2331L8.76765 2.28643L1.40182 9.65226C1.34395 9.7104 1.30452 9.78432 1.28848 9.86476L0.698483 12.8114C0.685057 12.8787 0.688459 12.9483 0.708387 13.014C0.728316 13.0796 0.764154 13.1394 0.812719 13.1878C0.861283 13.2363 0.92107 13.2721 0.986769 13.2919C1.05247 13.3117 1.12204 13.315 1.18932 13.3014L4.13515 12.7123C4.21599 12.6961 4.29023 12.6564 4.34848 12.5981L13.1868 3.75976C13.3803 3.5663 13.5338 3.33661 13.6386 3.08381C13.7433 2.83102 13.7972 2.56006 13.7972 2.28643C13.7972 2.0128 13.7433 1.74184 13.6386 1.48905C13.5338 1.23625 13.3803 1.00656 13.1868 0.813097Z",
17770
+ fill: "black"
17771
+ }
17772
+ )
17773
+ }
17774
+ )
17764
17775
  }
17765
17776
  )
17766
17777
  ]
@@ -25981,7 +25992,7 @@ var Calendar = (
25981
25992
  return Calendar2;
25982
25993
  }(Component)
25983
25994
  );
25984
- var CalendarIcon = function(_a2) {
25995
+ var CalendarIcon2 = function(_a2) {
25985
25996
  var icon = _a2.icon, _b = _a2.className, className = _b === void 0 ? "" : _b, onClick = _a2.onClick;
25986
25997
  var defaultClass = "react-datepicker__calendar-icon";
25987
25998
  if (typeof icon === "string") {
@@ -26926,7 +26937,7 @@ var DatePicker = (
26926
26937
  return React9.createElement(
26927
26938
  "div",
26928
26939
  { className: "react-datepicker__input-container".concat(showIcon ? " react-datepicker__view-calendar-icon" : "") },
26929
- showIcon && React9.createElement(CalendarIcon, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
26940
+ showIcon && React9.createElement(CalendarIcon2, _assign({ icon, className: clsx(calendarIconClassName, !calendarIconClassName && calendarIconClassname, open && "react-datepicker-ignore-onclickoutside") }, toggleCalendarOnIconClick ? {
26930
26941
  onClick: this.toggleCalendar
26931
26942
  } : null)),
26932
26943
  this.state.isRenderAriaLiveMessage && this.renderAriaLiveRegion(),
@@ -32049,7 +32060,7 @@ var DateField = (props) => {
32049
32060
  value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
32050
32061
  }
32051
32062
  ),
32052
- isForm2 && /* @__PURE__ */ jsx80(CalandarIcon, {})
32063
+ isForm2 && /* @__PURE__ */ jsx80(CalendarIcon, {})
32053
32064
  ] })
32054
32065
  );
32055
32066
  if (!isForm && !isEditTable) {
@@ -33851,7 +33862,7 @@ var Many2ManyField = (props) => {
33851
33862
  /* @__PURE__ */ jsx103("div", { className: "text-[20px] font-semibold", children: title }),
33852
33863
  /* @__PURE__ */ jsx103("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx103(CloseIcon, {}) })
33853
33864
  ] }),
33854
- /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
33865
+ /* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-2 gap-2 items-center py-2", children: [
33855
33866
  /* @__PURE__ */ jsx103("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx103(
33856
33867
  Search,
33857
33868
  {
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
- {
2
- "name": "@fctc/sme-widget-ui",
3
- "version": "1.3.1",
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.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
+ }