@myunisoft/design-system 1.3.4 → 1.4.0-REV-537

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.
Files changed (57) hide show
  1. package/dist/assets/I18n/locales/en.d.ts +58 -2
  2. package/dist/assets/I18n/locales/fr.d.ts +59 -2
  3. package/dist/components/Autocomplete/Autocomplete/AutocompleteTag/index.d.ts +1 -1
  4. package/dist/components/Autocomplete/Autocomplete/types.d.ts +3 -0
  5. package/dist/components/Autocomplete/AutocompleteMultiple/Results/styles.d.ts +1 -1
  6. package/dist/components/DocumentComposer/Treeview/SkeletonTreeItem.d.ts +3 -0
  7. package/dist/components/DocumentComposer/Treeview/TreeviewSkeleton.d.ts +2 -0
  8. package/dist/components/DocumentComposer/Treeview/slots/LabelInputSlot.d.ts +1 -0
  9. package/dist/components/DocumentComposer/Treeview/types.d.ts +5 -0
  10. package/dist/components/DocumentComposer/hooks/useTemporarySection.d.ts +2 -2
  11. package/dist/components/DocumentComposer/index.d.ts +7 -8
  12. package/dist/components/RichTextEditor/components/AlignmentSplitButton.d.ts +10 -0
  13. package/dist/components/RichTextEditor/components/EditorToolbarButton.d.ts +7 -0
  14. package/dist/components/RichTextEditor/components/FontColorButton.d.ts +5 -0
  15. package/dist/components/RichTextEditor/components/ImageButton.d.ts +7 -0
  16. package/dist/components/RichTextEditor/components/ImageResizeObserver.d.ts +2 -0
  17. package/dist/components/RichTextEditor/components/LinkButton.d.ts +8 -0
  18. package/dist/components/RichTextEditor/components/SplitButton.d.ts +16 -0
  19. package/dist/components/RichTextEditor/components/TableBubbleMenu.d.ts +2 -0
  20. package/dist/components/RichTextEditor/components/Toolbar.d.ts +22 -0
  21. package/dist/components/RichTextEditor/extensions/TableWithAlignment.d.ts +1 -0
  22. package/dist/components/RichTextEditor/index.d.ts +18 -0
  23. package/dist/components/RichTextEditor/styles.d.ts +1 -0
  24. package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
  25. package/dist/components/VirtualTable/components/ColumnsSetting/Table/index.d.ts +2 -1
  26. package/dist/components/VirtualTable/components/ColumnsSetting/useColumnsConfig.d.ts +102 -0
  27. package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
  28. package/dist/components/VirtualTable/components/Header/Cell/styles.d.ts +1 -1
  29. package/dist/components/VirtualTable/components/Image/styles.d.ts +1 -1
  30. package/dist/components/VirtualTable/helpers/group.d.ts +1 -1
  31. package/dist/components/VirtualTable/hooks/useGroupHelpers.d.ts +3 -0
  32. package/dist/components/VirtualTable/styles.d.ts +1 -1
  33. package/dist/components/VirtualTable/utils.d.ts +1 -1
  34. package/dist/constants/i18n.d.ts +1 -0
  35. package/dist/helpers/validation/index.d.ts +3 -1
  36. package/dist/helpers/validation/useValidators.d.ts +8 -0
  37. package/dist/helpers/validation/validatorFactories.d.ts +10 -0
  38. package/dist/helpers/validation/validators.d.ts +2 -7
  39. package/dist/hooks/useDSTranslation.d.ts +4 -0
  40. package/dist/i18n/instance.d.ts +1 -0
  41. package/dist/index.d.ts +2 -0
  42. package/dist/index.js +5 -5
  43. package/dist/providers/DSProvider/index.d.ts +7 -0
  44. package/package.json +159 -115
  45. package/dist/components/AnchoredPopper/index.d.ts +0 -14
  46. package/dist/components/Autocomplete/Autocomplete/example-usage.d.ts +0 -4
  47. package/dist/components/DataGrid/components/toolbar/buttons/AddButton.d.ts +0 -6
  48. package/dist/components/DataGrid/components/toolbar/buttons/ExportButton.d.ts +0 -9
  49. package/dist/components/DataGrid/types/index.d.ts +0 -428
  50. package/dist/components/DocumentComposer/hooks/useDragVisualFeedback.d.ts +0 -15
  51. package/dist/components/DocumentComposer/types/props.d.ts +0 -67
  52. package/dist/components/DocumentComposer/types/section.d.ts +0 -33
  53. package/dist/components/DocumentComposer/types.d.ts +0 -56
  54. package/dist/components/Export/index.d.ts +0 -3
  55. package/dist/components/Export/style/index.d.ts +0 -9
  56. package/dist/components/Export/types/index.d.ts +0 -30
  57. package/dist/components/VirtualTable/components/ColumnsSetting/config.d.ts +0 -9
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from 'react';
2
+ type DSProviderProps = {
3
+ children: ReactNode;
4
+ locale?: 'fr' | 'en';
5
+ };
6
+ declare const DSProvider: ({ children, locale }: DSProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default DSProvider;
package/package.json CHANGED
@@ -1,115 +1,159 @@
1
- {
2
- "name": "@myunisoft/design-system",
3
- "version": "1.3.4",
4
- "description": "Design System of MyUnisoft",
5
- "main": "dist/index.js",
6
- "source": "src/index.ts",
7
- "types": "dist/index.d.ts",
8
- "scripts": {
9
- "start": "cd website && npm start -- --port=3002",
10
- "build": "rm -r dist & node esbuild",
11
- "build-cypress": "rm -r dist & node esbuild-cypress",
12
- "prepublishOnly": "npm run build",
13
- "test": "jest --transformIgnorePatterns \"node_modules/(?!@exceljs)/\" ",
14
- "cypress": "npm run build-cypress && npx cypress open --component --browser chrome",
15
- "cy:run": "npx cypress run --component --browser chrome",
16
- "lint-staged": "biome lint --staged --files-ignore-unknown=true --no-errors-on-unmatched --diagnostic-level=warn && biome lint --staged --files-ignore-unknown=true --no-errors-on-unmatched --diagnostic-level=error",
17
- "prepare": "husky"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+ssh://git@bitbucket.org/myunibucket/design-system.git"
22
- },
23
- "keywords": [],
24
- "files": [
25
- "dist"
26
- ],
27
- "publishConfig": {
28
- "@myunisoft:registry": "https://registry.npmjs.org/"
29
- },
30
- "author": "MyUnisoft",
31
- "license": "MIT",
32
- "homepage": "https://myunisoft.github.io/design-system/",
33
- "dependencies": {
34
- "@babel/runtime": "7.20.6",
35
- "@emotion/react": "11.14.0",
36
- "@emotion/styled": "11.14.1",
37
- "@mui/material": "7.3.6",
38
- "@mui/utils": "7.3.6",
39
- "@mui/x-data-grid-pro": "7.29.9",
40
- "@mui/x-tree-view-pro": "8.17.0",
41
- "@myunisoft/mui-symbols-material-w300-esm": "0.7.3",
42
- "@myunisoft/mui-symbols-material-w400-esm": "0.7.3",
43
- "@testing-library/dom": "10.1.0",
44
- "autosuggest-highlight": "3.3.4",
45
- "classnames": "2.3.2",
46
- "exceljs": "4.4.0",
47
- "i18next": "22.4.6",
48
- "jspdf": "3.0.1",
49
- "jspdf-autotable": "3.5.28",
50
- "localforage": "1.10.0",
51
- "lodash": "4.17.21",
52
- "moment": "2.30.1",
53
- "numeral": "2.0.6",
54
- "pretty-bytes": "6.0.0",
55
- "prop-types": "15.8.1",
56
- "react": "19.2.1",
57
- "react-color": "2.19.3",
58
- "react-dom": "19.2.1",
59
- "react-draft-wysiwyg": "1.15.0",
60
- "react-draggable": "4.4.6",
61
- "react-dropzone": "14.2.3",
62
- "react-input-autosize": "3.0.0",
63
- "react-spinners": "0.13.8",
64
- "react-window": "2.2.3",
65
- "reselect": "4.1.7",
66
- "robot3": "0.3.2",
67
- "sortablejs": "1.15.0",
68
- "svgo": "3.0.2",
69
- "tss-react": "4.9.18"
70
- },
71
- "resolutions": {
72
- "cheerio": "<1.0.0",
73
- "@mui/material": "7.3.6",
74
- "@babel/core": "7.26.0"
75
- },
76
- "devDependencies": {
77
- "@4tw/cypress-drag-drop": "2.3.0",
78
- "@babel/core": "7.26.0",
79
- "@babel/plugin-proposal-class-properties": "7.18.6",
80
- "@babel/plugin-transform-runtime": "7.28.5",
81
- "@babel/preset-env": "7.28.5",
82
- "@babel/preset-react": "7.28.5",
83
- "@babel/preset-typescript": "7.28.5",
84
- "@biomejs/biome": "2.3.5",
85
- "@testing-library/react": "16.3.0",
86
- "@types/jest": "30.0.0",
87
- "@types/mocha": "10.0.10",
88
- "@types/react": "19.1.0",
89
- "@types/react-dom": "19.1.0",
90
- "babel-jest": "29.3.1",
91
- "babel-loader": "9.1.0",
92
- "cheerio": "<1.0.0",
93
- "css-loader": "6.7.3",
94
- "cypress": "14.5.0",
95
- "esbuild": "0.21.5",
96
- "esbuild-sass-plugin": "2.4.4",
97
- "html-webpack-plugin": "5.5.0",
98
- "husky": "9.1.7",
99
- "jest": "29.3.1",
100
- "jest-canvas-mock": "2.4.0",
101
- "jest-environment-jsdom": "29.3.1",
102
- "react-test-renderer": "18.3.1",
103
- "sass": "1.57.1",
104
- "sass-loader": "13.2.0",
105
- "style-loader": "3.3.1",
106
- "svg-inline-loader": "0.8.2",
107
- "typescript": "5.5.4",
108
- "webpack": "5.75.0"
109
- },
110
- "peerDependencies": {
111
- "@mui/material": "7.3.6",
112
- "react": "19.2.1",
113
- "react-dom": "19.2.1"
114
- }
115
- }
1
+ {
2
+ "name": "@myunisoft/design-system",
3
+ "version": "1.4.0-REV-537",
4
+ "description": "Design System of MyUnisoft",
5
+ "main": "dist/index.js",
6
+ "source": "src/index.ts",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "scripts": {
16
+ "start": "cd website && npm start -- --port=3002",
17
+ "build": "rm -rf dist && node esbuild",
18
+ "build-cypress": "rm -r dist & node esbuild-cypress",
19
+ "prepublishOnly": "npm run build",
20
+ "test": "jest --transformIgnorePatterns \"node_modules/(?!@exceljs)/\" ",
21
+ "cypress": "npm run build-cypress && npx cypress open --component --browser chrome",
22
+ "cy:run": "npx cypress run --component --browser chrome",
23
+ "lint-staged": "biome lint --staged --files-ignore-unknown=true --no-errors-on-unmatched --diagnostic-level=warn && biome lint --staged --files-ignore-unknown=true --no-errors-on-unmatched --diagnostic-level=error",
24
+ "prepare": "husky"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+ssh://git@bitbucket.org/myunibucket/design-system.git"
29
+ },
30
+ "keywords": [],
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "publishConfig": {
35
+ "@myunisoft:registry": "https://registry.npmjs.org/"
36
+ },
37
+ "author": "MyUnisoft",
38
+ "license": "MIT",
39
+ "homepage": "https://myunisoft.github.io/design-system/",
40
+ "dependencies": {
41
+ "@babel/runtime": "7.20.6",
42
+ "@emotion/react": "11.14.0",
43
+ "@emotion/styled": "11.14.1",
44
+ "@floating-ui/dom": "1.7.4",
45
+ "@mui/lab": "7.0.1-beta.21",
46
+ "@mui/material": "7.3.6",
47
+ "@mui/utils": "7.3.6",
48
+ "@mui/x-data-grid-pro": "7.29.9",
49
+ "@mui/x-tree-view-pro": "8.17.0",
50
+ "@myunisoft/mui-symbols-material-w300-esm": "0.7.3",
51
+ "@myunisoft/mui-symbols-material-w400-esm": "0.7.3",
52
+ "@testing-library/dom": "10.1.0",
53
+ "@tiptap/core": "3.15.3",
54
+ "@tiptap/extension-blockquote": "3.15.3",
55
+ "@tiptap/extension-bold": "3.15.3",
56
+ "@tiptap/extension-bubble-menu": "3.15.3",
57
+ "@tiptap/extension-bullet-list": "3.15.3",
58
+ "@tiptap/extension-color": "3.15.3",
59
+ "@tiptap/extension-document": "3.15.3",
60
+ "@tiptap/extension-history": "3.15.3",
61
+ "@tiptap/extension-image": "3.15.3",
62
+ "@tiptap/extension-italic": "3.15.3",
63
+ "@tiptap/extension-link": "3.15.3",
64
+ "@tiptap/extension-list": "3.15.3",
65
+ "@tiptap/extension-list-item": "3.15.3",
66
+ "@tiptap/extension-mention": "3.15.3",
67
+ "@tiptap/extension-ordered-list": "3.15.3",
68
+ "@tiptap/extension-paragraph": "3.15.3",
69
+ "@tiptap/extension-placeholder": "3.15.3",
70
+ "@tiptap/extension-strike": "3.15.3",
71
+ "@tiptap/extension-subscript": "3.15.3",
72
+ "@tiptap/extension-superscript": "3.15.3",
73
+ "@tiptap/extension-table": "3.15.3",
74
+ "@tiptap/extension-table-cell": "3.15.3",
75
+ "@tiptap/extension-table-header": "3.15.3",
76
+ "@tiptap/extension-table-row": "3.15.3",
77
+ "@tiptap/extension-text": "3.15.3",
78
+ "@tiptap/extension-text-align": "3.15.3",
79
+ "@tiptap/extension-text-style": "3.15.3",
80
+ "@tiptap/extension-underline": "3.15.3",
81
+ "@tiptap/extensions": "3.15.3",
82
+ "@tiptap/pm": "3.15.3",
83
+ "@tiptap/react": "3.15.3",
84
+ "@tiptap/suggestion": "3.15.3",
85
+ "autosuggest-highlight": "3.3.4",
86
+ "classnames": "2.3.2",
87
+ "exceljs": "4.4.0",
88
+ "i18next": "22.4.6",
89
+ "jspdf": "4.0.0",
90
+ "jspdf-autotable": "5.0.7",
91
+ "localforage": "1.10.0",
92
+ "lodash": "4.17.21",
93
+ "moment": "2.30.1",
94
+ "numeral": "2.0.6",
95
+ "pretty-bytes": "6.0.0",
96
+ "prop-types": "15.8.1",
97
+ "react": "19.2.3",
98
+ "react-color": "2.19.3",
99
+ "react-dom": "19.2.3",
100
+ "react-draft-wysiwyg": "1.15.0",
101
+ "react-draggable": "4.4.6",
102
+ "react-dropzone": "14.2.3",
103
+ "react-input-autosize": "3.0.0",
104
+ "react-spinners": "0.13.8",
105
+ "react-window": "2.2.3",
106
+ "reselect": "4.1.7",
107
+ "robot3": "0.3.2",
108
+ "sortablejs": "1.15.0",
109
+ "svgo": "3.0.2",
110
+ "tss-react": "4.9.18"
111
+ },
112
+ "resolutions": {
113
+ "cheerio": "<1.0.0",
114
+ "@mui/material": "7.3.6",
115
+ "@babel/core": "7.26.0",
116
+ "@types/react": "19.2.8"
117
+ },
118
+ "devDependencies": {
119
+ "@4tw/cypress-drag-drop": "2.3.0",
120
+ "@babel/core": "7.26.0",
121
+ "@babel/plugin-proposal-class-properties": "7.18.6",
122
+ "@babel/plugin-transform-runtime": "7.28.5",
123
+ "@babel/preset-env": "7.28.5",
124
+ "@babel/preset-react": "7.28.5",
125
+ "@babel/preset-typescript": "7.28.5",
126
+ "@biomejs/biome": "2.3.5",
127
+ "@testing-library/react": "16.3.0",
128
+ "@types/jest": "30.0.0",
129
+ "@types/mocha": "10.0.10",
130
+ "@types/react": "19.2.8",
131
+ "@types/react-dom": "19.2.3",
132
+ "babel-jest": "29.3.1",
133
+ "babel-loader": "9.1.0",
134
+ "cheerio": "<1.0.0",
135
+ "css-loader": "6.7.3",
136
+ "cypress": "14.5.0",
137
+ "esbuild": "0.21.5",
138
+ "esbuild-sass-plugin": "2.4.4",
139
+ "html-webpack-plugin": "5.5.0",
140
+ "husky": "9.1.7",
141
+ "jest": "29.3.1",
142
+ "jest-canvas-mock": "2.4.0",
143
+ "jest-environment-jsdom": "29.3.1",
144
+ "react-test-renderer": "19.2.3",
145
+ "sass": "1.57.1",
146
+ "sass-loader": "13.2.0",
147
+ "style-loader": "3.3.1",
148
+ "svg-inline-loader": "0.8.2",
149
+ "typescript": "5.5.4",
150
+ "webpack": "5.75.0",
151
+ "react-i18next": "15.7.1"
152
+ },
153
+ "peerDependencies": {
154
+ "@mui/material": "7.3.6",
155
+ "react": "19.2.3",
156
+ "react-dom": "19.2.1",
157
+ "react-i18next": ">=15.0.0"
158
+ }
159
+ }
@@ -1,14 +0,0 @@
1
- import type { ReactNode, RefObject } from 'react';
2
- import { PopperPlacementType } from '@mui/material';
3
- type AnchoredPopperProps = {
4
- open: boolean;
5
- anchorRef: RefObject<HTMLElement | null>;
6
- onClose: () => void;
7
- placement?: PopperPlacementType;
8
- children: ReactNode;
9
- minWidth?: number | string;
10
- zIndex?: number;
11
- elevation?: number;
12
- };
13
- declare const AnchoredPopper: ({ open, anchorRef, onClose, placement, children, minWidth, zIndex, elevation }: AnchoredPopperProps) => import("react/jsx-runtime").JSX.Element;
14
- export default AnchoredPopper;
@@ -1,4 +0,0 @@
1
- declare const BasicExample: () => import("react/jsx-runtime").JSX.Element;
2
- declare const CustomOptionExample: () => import("react/jsx-runtime").JSX.Element;
3
- declare const ProductExample: () => import("react/jsx-runtime").JSX.Element;
4
- export { BasicExample, CustomOptionExample, ProductExample };
@@ -1,6 +0,0 @@
1
- type AddButtonProps = {
2
- onClick: () => void;
3
- disabled?: boolean;
4
- };
5
- declare const AddButton: ({ onClick, disabled }: AddButtonProps) => import("react/jsx-runtime").JSX.Element;
6
- export default AddButton;
@@ -1,9 +0,0 @@
1
- import { GridExportFormat } from '@mui/x-data-grid-pro';
2
- type ExportButtonProps = {
3
- exportAction?: {
4
- onExport: (format: GridExportFormat) => void;
5
- exportFormats: GridExportFormat[];
6
- };
7
- };
8
- declare const ExportButton: ({ exportAction }: ExportButtonProps) => import("react/jsx-runtime").JSX.Element;
9
- export default ExportButton;