@dartcom/ui-kit 10.0.8 → 10.0.10

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 (54) hide show
  1. package/dist/components/buttons/button/index.d.ts +1 -0
  2. package/dist/components/buttons/button/index.d.ts.map +1 -1
  3. package/dist/components/buttons/index.d.ts +1 -0
  4. package/dist/components/buttons/index.d.ts.map +1 -1
  5. package/dist/components/buttons/upload/index.d.ts +2 -0
  6. package/dist/components/buttons/upload/index.d.ts.map +1 -0
  7. package/dist/components/buttons/upload/styles.d.ts +2 -0
  8. package/dist/components/buttons/upload/styles.d.ts.map +1 -0
  9. package/dist/components/buttons/upload/upload.d.ts +15 -0
  10. package/dist/components/buttons/upload/upload.d.ts.map +1 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/index.d.ts.map +1 -1
  13. package/dist/components/layers/leaflet/constants.d.ts.map +1 -1
  14. package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts +6 -29
  15. package/dist/components/layers/leaflet/layers/traffic-sign/constants.d.ts.map +1 -1
  16. package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts +24 -10
  17. package/dist/components/layers/leaflet/layers/traffic-sign/types.d.ts.map +1 -1
  18. package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts +4 -3
  19. package/dist/components/layers/leaflet/layers/traffic-sign/utils.d.ts.map +1 -1
  20. package/dist/components/upload/excel/excel.d.ts +8 -0
  21. package/dist/components/upload/excel/excel.d.ts.map +1 -0
  22. package/dist/components/upload/excel/excel.stories.d.ts +7 -0
  23. package/dist/components/upload/excel/excel.stories.d.ts.map +1 -0
  24. package/dist/components/upload/excel/index.d.ts +2 -0
  25. package/dist/components/upload/excel/index.d.ts.map +1 -0
  26. package/dist/components/upload/excel/styles.d.ts +2 -0
  27. package/dist/components/upload/excel/styles.d.ts.map +1 -0
  28. package/dist/components/upload/index.d.ts +2 -0
  29. package/dist/components/upload/index.d.ts.map +1 -0
  30. package/dist/components/uploader/csv/csv.d.ts +46 -0
  31. package/dist/components/uploader/csv/csv.d.ts.map +1 -0
  32. package/dist/components/uploader/csv/csv.stories.d.ts +8 -0
  33. package/dist/components/uploader/csv/csv.stories.d.ts.map +1 -0
  34. package/dist/components/uploader/csv/index.d.ts +2 -0
  35. package/dist/components/uploader/csv/index.d.ts.map +1 -0
  36. package/dist/components/uploader/excel/excel.d.ts +8 -0
  37. package/dist/components/uploader/excel/excel.d.ts.map +1 -0
  38. package/dist/components/uploader/excel/excel.stories.d.ts +7 -0
  39. package/dist/components/uploader/excel/excel.stories.d.ts.map +1 -0
  40. package/dist/components/uploader/excel/index.d.ts +2 -0
  41. package/dist/components/uploader/excel/index.d.ts.map +1 -0
  42. package/dist/components/uploader/excel/styles.d.ts +2 -0
  43. package/dist/components/uploader/excel/styles.d.ts.map +1 -0
  44. package/dist/components/uploader/index.d.ts +3 -0
  45. package/dist/components/uploader/index.d.ts.map +1 -0
  46. package/dist/index.cjs +10911 -7471
  47. package/dist/index.cjs.map +1 -1
  48. package/dist/index.esm.js +8 -2
  49. package/dist/index.esm.js.map +1 -1
  50. package/dist/lib/types.d.ts +4 -0
  51. package/dist/lib/types.d.ts.map +1 -1
  52. package/dist/lib/utils.d.ts +1 -0
  53. package/dist/lib/utils.d.ts.map +1 -1
  54. package/package.json +160 -149
@@ -13,4 +13,8 @@ export type User = {
13
13
  login: string;
14
14
  roles: GuardRole[];
15
15
  };
16
+ export type CoordinateFields = {
17
+ lat: number;
18
+ lon: number;
19
+ };
16
20
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;SACnB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE;QACT,IAAI,CAAC,EAAE;YACL,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;SACnB,CAAC;KACH,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,IAAI,GAAG;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { StringOrNumber } from '../types';
2
2
  export declare const encodeString: (string: string) => string;
3
3
  export declare const getUrlencodedBody: (body: Record<string, StringOrNumber>) => string;
4
+ export declare const copyInformation: <T>(json: T) => Promise<boolean>;
4
5
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,WAgB1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,WAQrE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,WAgB1C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,WAQrE,CAAC;AAEF,eAAO,MAAM,eAAe,GAAU,CAAC,EAAE,MAAM,CAAC,qBAgB/C,CAAC"}
package/package.json CHANGED
@@ -1,149 +1,160 @@
1
- {
2
- "name": "@dartcom/ui-kit",
3
- "version": "10.0.8",
4
- "description": "Кастомная библиотека комопнентов Dartcom",
5
- "type": "module",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.esm.js",
8
- "types": "./dist/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "types": "./dist/index.d.ts",
12
- "import": "./dist/index.esm.js",
13
- "require": "./dist/index.cjs"
14
- }
15
- },
16
- "files": [
17
- "dist"
18
- ],
19
- "scripts": {
20
- "build": "rollup -c",
21
- "build:watch": "rollup -c -w",
22
- "library:pack": "npm run build && npm pack",
23
- "test": "jest",
24
- "test:watch": "jest --watch",
25
- "storybook": "storybook dev -p 6006",
26
- "storybook:build": "storybook build",
27
- "lint": "eslint src --ext .ts,.tsx",
28
- "lint:fix": "eslint src --ext .ts,.tsx --fix",
29
- "format": "prettier --write src/**/*.{ts,tsx}",
30
- "prepare": "husky",
31
- "push:develop": "git push gitlab develop && git push origin develop",
32
- "prepublishOnly": "npm run lint && npm test && npm run build",
33
- "library:publish": "npm publish --access public",
34
- "version:patch": "npm version patch",
35
- "version:minor": "npm version minor",
36
- "version:major": "npm version major"
37
- },
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/jeni2d/tiles_library.git"
41
- },
42
- "keywords": [
43
- "react",
44
- "typescript",
45
- "ui",
46
- "components",
47
- "library"
48
- ],
49
- "author": "Artemidas",
50
- "license": "ISC",
51
- "bugs": {
52
- "url": "https://github.com/jeni2d/tiles_library/issues"
53
- },
54
- "homepage": "https://github.com/jeni2d/tiles_library#readme",
55
- "peerDependencies": {
56
- "@emotion/react": "^11.14.0",
57
- "@emotion/styled": "^11.14.1",
58
- "@mui/icons-material": "^7.3.6",
59
- "@mui/lab": "^7.0.1-beta.20",
60
- "@mui/material": "^7.3.6",
61
- "@mui/x-date-pickers": "^8.21.0",
62
- "react": "^19.2.0",
63
- "react-dom": "^19.2.0"
64
- },
65
- "devDependencies": {
66
- "@eslint/compat": "^2.0.0",
67
- "@eslint/eslintrc": "^3.3.3",
68
- "@eslint/js": "^9.39.1",
69
- "@rollup/plugin-alias": "^6.0.0",
70
- "@rollup/plugin-commonjs": "^29.0.0",
71
- "@rollup/plugin-node-resolve": "^16.0.3",
72
- "@rollup/plugin-terser": "^0.4.4",
73
- "@rollup/plugin-typescript": "^12.3.0",
74
- "@rollup/plugin-yaml": "^4.1.2",
75
- "@semantic-release/changelog": "^6.0.3",
76
- "@semantic-release/git": "^10.0.1",
77
- "@storybook/addon-docs": "^10.1.10",
78
- "@storybook/addon-onboarding": "^10.1.10",
79
- "@storybook/addon-themes": "^10.1.10",
80
- "@storybook/react-vite": "^10.1.10",
81
- "@testing-library/jest-dom": "^6.9.1",
82
- "@testing-library/react": "^16.3.1",
83
- "@types/jest": "^30.0.0",
84
- "@types/leaflet": "^1.9.21",
85
- "@types/node": "^24.10.1",
86
- "@types/react": "^19.2.7",
87
- "@types/react-dom": "^19.2.3",
88
- "@types/rollup-plugin-peer-deps-external": "^2.2.6",
89
- "@typescript-eslint/eslint-plugin": "^8.48.1",
90
- "@typescript-eslint/parser": "^8.48.1",
91
- "axios": "^1.13.2",
92
- "eslint": "^9.39.1",
93
- "eslint-config-prettier": "^10.1.8",
94
- "eslint-plugin-jest": "^28.14.0",
95
- "eslint-plugin-prettier": "^5.5.4",
96
- "eslint-plugin-react": "^7.37.5",
97
- "eslint-plugin-react-hooks": "^7.0.1",
98
- "eslint-plugin-react-refresh": "^0.4.24",
99
- "eslint-plugin-simple-import-sort": "^12.1.1",
100
- "globals": "^16.5.0",
101
- "husky": "^9.1.7",
102
- "jest": "^30.2.0",
103
- "jest-environment-jsdom": "^30.2.0",
104
- "lint-staged": "^16.2.7",
105
- "prettier": "^3.7.4",
106
- "rollup": "^4.53.3",
107
- "rollup-plugin-peer-deps-external": "^2.2.4",
108
- "rollup-plugin-postcss": "^4.0.2",
109
- "rollup-plugin-preserve-directives": "^0.4.0",
110
- "rollup-plugin-tsc-alias": "^1.1.4",
111
- "rollup-plugin-tsconfig-paths": "^1.5.2",
112
- "semantic-release": "^25.0.2",
113
- "storybook": "^10.1.10",
114
- "ts-jest": "^29.4.6",
115
- "ts-node": "^10.9.2",
116
- "typescript": "^5.9.3",
117
- "typescript-eslint": "^8.48.1",
118
- "typescript-transform-paths": "^3.5.5",
119
- "vite": "^7.2.6",
120
- "vite-tsconfig-paths": "^5.1.4",
121
- "eslint-plugin-storybook": "10.1.10"
122
- },
123
- "lint-staged": {
124
- "src/**/*.{ts,tsx}": [
125
- "eslint --fix",
126
- "prettier --write",
127
- "git add"
128
- ]
129
- },
130
- "dependencies": {
131
- "@dnd-kit/core": "^6.3.1",
132
- "@dnd-kit/sortable": "^10.0.0",
133
- "@dnd-kit/utilities": "^3.2.2",
134
- "@hookform/resolvers": "^5.2.2",
135
- "@tanstack/react-query": "^5.90.12",
136
- "date-fns": "^4.1.0",
137
- "leaflet": "^1.9.4",
138
- "mobx": "^6.15.0",
139
- "mobx-react-lite": "^4.1.1",
140
- "notistack": "^3.0.2",
141
- "react-error-boundary": "^6.0.0",
142
- "react-hook-form": "^7.68.0",
143
- "react-leaflet": "^5.0.0",
144
- "react-router-dom": "^7.10.1",
145
- "react-uuid": "^2.0.0",
146
- "tangram": "^0.22.0",
147
- "yup": "^1.7.1"
148
- }
149
- }
1
+ {
2
+ "name": "@dartcom/ui-kit",
3
+ "version": "10.0.10",
4
+ "description": "Кастомная библиотека комопнентов Dartcom",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.esm.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "scripts": {
20
+ "build": "rollup -c",
21
+ "build:watch": "rollup -c -w",
22
+ "library:pack": "npm run build && npm pack",
23
+ "test": "jest",
24
+ "test:watch": "jest --watch",
25
+ "storybook": "storybook dev -p 6006",
26
+ "storybook:build": "storybook build",
27
+ "lint": "eslint src --ext .ts,.tsx",
28
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
29
+ "format": "prettier --write src/**/*.{ts,tsx}",
30
+ "prepare": "husky",
31
+ "push:develop": "git push gitlab develop && git push origin develop",
32
+ "prepublishOnly": "npm run lint && npm test && npm run build",
33
+ "library:publish": "npm publish --access public",
34
+ "version:patch": "npm version patch",
35
+ "version:minor": "npm version minor",
36
+ "version:major": "npm version major"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/jeni2d/tiles_library.git"
41
+ },
42
+ "keywords": [
43
+ "react",
44
+ "typescript",
45
+ "ui",
46
+ "components",
47
+ "library"
48
+ ],
49
+ "author": "Artemidas",
50
+ "license": "ISC",
51
+ "bugs": {
52
+ "url": "https://github.com/jeni2d/tiles_library/issues"
53
+ },
54
+ "homepage": "https://github.com/jeni2d/tiles_library#readme",
55
+ "peerDependencies": {
56
+ "@emotion/react": "^11.14.0",
57
+ "@emotion/styled": "^11.14.1",
58
+ "@mui/icons-material": "^7.3.6",
59
+ "@mui/lab": "^7.0.1-beta.20",
60
+ "@mui/material": "^7.3.6",
61
+ "@mui/x-date-pickers": "^8.21.0",
62
+ "react": "^19.2.0",
63
+ "react-dom": "^19.2.0"
64
+ },
65
+ "devDependencies": {
66
+ "@eslint/compat": "^2.0.0",
67
+ "@eslint/eslintrc": "^3.3.3",
68
+ "@eslint/js": "^9.39.1",
69
+ "@rollup/plugin-alias": "^6.0.0",
70
+ "@rollup/plugin-commonjs": "^29.0.0",
71
+ "@rollup/plugin-node-resolve": "^16.0.3",
72
+ "@rollup/plugin-replace": "^6.0.3",
73
+ "@rollup/plugin-terser": "^0.4.4",
74
+ "@rollup/plugin-typescript": "^12.3.0",
75
+ "@rollup/plugin-yaml": "^4.1.2",
76
+ "@semantic-release/changelog": "^6.0.3",
77
+ "@semantic-release/git": "^10.0.1",
78
+ "@storybook/addon-docs": "^10.1.10",
79
+ "@storybook/addon-onboarding": "^10.1.10",
80
+ "@storybook/addon-themes": "^10.1.10",
81
+ "@storybook/addon-vitest": "^10.1.10",
82
+ "@storybook/react-vite": "^10.1.10",
83
+ "@testing-library/jest-dom": "^6.9.1",
84
+ "@testing-library/react": "^16.3.1",
85
+ "@types/jest": "^30.0.0",
86
+ "@types/leaflet": "^1.9.21",
87
+ "@types/node": "^24.10.1",
88
+ "@types/papaparse": "^5.5.2",
89
+ "@types/react": "^19.2.7",
90
+ "@types/react-dom": "^19.2.3",
91
+ "@types/rollup-plugin-peer-deps-external": "^2.2.6",
92
+ "@types/xlsx": "^0.0.35",
93
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
94
+ "@typescript-eslint/parser": "^8.48.1",
95
+ "@vitest/browser-playwright": "^4.0.16",
96
+ "@vitest/coverage-v8": "^4.0.16",
97
+ "axios": "^1.13.2",
98
+ "dotenv": "^17.2.3",
99
+ "eslint": "^9.39.1",
100
+ "eslint-config-prettier": "^10.1.8",
101
+ "eslint-plugin-jest": "^28.14.0",
102
+ "eslint-plugin-prettier": "^5.5.4",
103
+ "eslint-plugin-react": "^7.37.5",
104
+ "eslint-plugin-react-hooks": "^7.0.1",
105
+ "eslint-plugin-react-refresh": "^0.4.24",
106
+ "eslint-plugin-simple-import-sort": "^12.1.1",
107
+ "eslint-plugin-storybook": "10.1.10",
108
+ "globals": "^16.5.0",
109
+ "husky": "^9.1.7",
110
+ "jest": "^30.2.0",
111
+ "jest-environment-jsdom": "^30.2.0",
112
+ "lint-staged": "^16.2.7",
113
+ "playwright": "^1.57.0",
114
+ "prettier": "^3.7.4",
115
+ "rollup": "^4.53.3",
116
+ "rollup-plugin-peer-deps-external": "^2.2.4",
117
+ "rollup-plugin-postcss": "^4.0.2",
118
+ "rollup-plugin-preserve-directives": "^0.4.0",
119
+ "rollup-plugin-tsc-alias": "^1.1.4",
120
+ "rollup-plugin-tsconfig-paths": "^1.5.2",
121
+ "semantic-release": "^25.0.2",
122
+ "storybook": "^10.1.10",
123
+ "ts-jest": "^29.4.6",
124
+ "ts-node": "^10.9.2",
125
+ "typescript": "^5.9.3",
126
+ "typescript-eslint": "^8.48.1",
127
+ "typescript-transform-paths": "^3.5.5",
128
+ "vite": "^7.2.6",
129
+ "vite-tsconfig-paths": "^5.1.4",
130
+ "vitest": "^4.0.16"
131
+ },
132
+ "lint-staged": {
133
+ "src/**/*.{ts,tsx}": [
134
+ "eslint --fix",
135
+ "prettier --write",
136
+ "git add"
137
+ ]
138
+ },
139
+ "dependencies": {
140
+ "@dnd-kit/core": "^6.3.1",
141
+ "@dnd-kit/sortable": "^10.0.0",
142
+ "@dnd-kit/utilities": "^3.2.2",
143
+ "@hookform/resolvers": "^5.2.2",
144
+ "@tanstack/react-query": "^5.90.12",
145
+ "date-fns": "^4.1.0",
146
+ "leaflet": "^1.9.4",
147
+ "mobx": "^6.15.0",
148
+ "mobx-react-lite": "^4.1.1",
149
+ "notistack": "^3.0.2",
150
+ "react-error-boundary": "^6.0.0",
151
+ "react-hook-form": "^7.68.0",
152
+ "react-leaflet": "^5.0.0",
153
+ "react-papaparse": "^4.4.0",
154
+ "react-router-dom": "^7.10.1",
155
+ "react-uuid": "^2.0.0",
156
+ "read-excel-file": "^6.0.1",
157
+ "tangram": "^0.22.0",
158
+ "yup": "^1.7.1"
159
+ }
160
+ }