@dashadmin/dash-components 1.0.0 → 1.3.17

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/package.json CHANGED
@@ -1,62 +1,131 @@
1
1
  {
2
2
  "name": "@dashadmin/dash-components",
3
- "version": "1.0.0",
4
- "description": "dash-components — DASH framework package",
5
- "license": "MIT",
6
- "author": "Francisco Aranda <farandal@gmail.com>",
3
+ "version": "1.3.17",
4
+ "private": false,
5
+ "main": "src/index.tsx",
7
6
  "type": "module",
8
- "main": "index.js",
9
- "module": "index.js",
10
- "types": "index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./index.d.ts",
14
- "import": "./index.js"
15
- }
7
+ "scripts": {
8
+ "lint": "eslint --ext .ts,.tsx .",
9
+ "format": "pnpm prettier --write . && pnpm format-check && pnpm lint",
10
+ "lint:check": "pnpm prettier --check .",
11
+ "lint:fix": "pnpm prettier --write .",
12
+ "check-updates": "pnpm npm-check-updates",
13
+ "updates-packages": "pnpm npm-check-updates -u",
14
+ "build": "vite build"
15
+ },
16
+ "browserslist": {
17
+ "production": [
18
+ ">0.2%",
19
+ "not dead",
20
+ "not op_mini all"
21
+ ],
22
+ "development": [
23
+ "last 1 chrome version",
24
+ "last 1 firefox version",
25
+ "last 1 safari version"
26
+ ]
16
27
  },
17
- "files": [
18
- "**/*"
19
- ],
20
- "sideEffects": false,
21
28
  "dependencies": {
22
29
  "@emotion/react": "latest",
23
30
  "@emotion/styled": "latest",
24
31
  "@hello-pangea/dnd": "^18.0.1",
25
32
  "@mui/material": "^7.3.10",
26
- "@dashadmin/dash-auto-admin": "^1.0.0",
27
- "@dashadmin/dash-dialog": "^1.0.0",
28
- "@dashadmin/dash-modal": "^1.0.0",
29
- "@dashadmin/dash-utils": "^1.0.0",
33
+ "@rollup/plugin-alias": "latest",
34
+ "@rollup/plugin-commonjs": "latest",
35
+ "@rollup/plugin-node-resolve": "latest",
36
+ "@rollup/plugin-replace": "latest",
37
+ "@rollup/plugin-typescript": "latest",
38
+ "@dashadmin/dash-auto-admin": "workspace:*",
39
+ "@dashadmin/dash-dialog": "workspace:*",
40
+ "@dashadmin/dash-modal": "workspace:*",
41
+ "@dashadmin/dash-utils": "workspace:*",
30
42
  "numeral": "^2.0.6",
31
43
  "react-number-format": "^5.4.4",
32
- "@dashadmin/dash-auth": "^1.0.0",
33
- "@dashadmin/dash-admin-state": "^1.0.0",
34
- "@dashadmin/dash-axios-hook": "^1.0.0",
35
- "@dashadmin/dash-interfaces": "^1.0.0",
36
- "@dashadmin/dash-styles": "^1.0.0",
44
+ "@dashadmin/dash-auth": "workspace:*",
45
+ "@dashadmin/dash-admin-state": "workspace:*",
46
+ "@dashadmin/dash-axios-hook": "workspace:*",
47
+ "@dashadmin/dash-interfaces": "workspace:*",
48
+ "@dashadmin/dash-styles": "workspace:*",
37
49
  "query-string": "latest",
38
- "react-admin": "5.14.6",
50
+ "react-admin": "5.14.7",
39
51
  "react-color": "^2.19.3",
40
52
  "react-custom-scrollbars-2": "latest",
41
- "react-hook-form": "latest",
42
- "react-loading-overlay-ts": "latest",
53
+ "react-hook-form": "^7.78.0",
54
+ "@achmadk/react-loading-overlay": "latest",
43
55
  "react-query": "latest",
44
56
  "react-redux": "latest",
45
- "react-router": "^7.9.6",
46
- "react-router-dom": "^7.9.6",
57
+ "react-router": "7.17.0",
58
+ "react-router-dom": "7.17.0",
47
59
  "react-spinners": "latest",
48
- "react-toastify": "latest"
60
+ "react-toastify": "latest",
61
+ "rollup-plugin-cleaner": "latest",
62
+ "rollup-plugin-dts": "latest",
63
+ "rollup-plugin-peer-deps-external": "latest",
64
+ "rollup-plugin-svg": "latest"
65
+ },
66
+ "devDependencies": {
67
+ "@babel/core": "latest",
68
+ "@babel/preset-env": "latest",
69
+ "@babel/preset-react": "latest",
70
+ "@babel/preset-typescript": "latest",
71
+ "@commitlint/config-conventional": "latest",
72
+ "@types/node": "latest",
73
+ "@types/react": "latest",
74
+ "@types/react-dom": "latest",
75
+ "@zerollup/ts-transform-paths": "latest",
76
+ "babel-loader": "latest",
77
+ "@dashadmin/dash-eslint": "workspace:*",
78
+ "@dashadmin/dash-tsconfig": "workspace:*",
79
+ "eslint": "latest",
80
+ "eslint-config-airbnb": "latest",
81
+ "eslint-config-airbnb-typescript": "latest",
82
+ "eslint-config-prettier": "latest",
83
+ "eslint-import-resolver-typescript": "latest",
84
+ "eslint-plugin-html": "latest",
85
+ "eslint-plugin-import": "latest",
86
+ "eslint-plugin-jsdoc": "latest",
87
+ "eslint-plugin-json": "latest",
88
+ "eslint-plugin-jsx-a11y": "latest",
89
+ "eslint-plugin-prettier": "latest",
90
+ "eslint-plugin-react": "latest",
91
+ "eslint-plugin-react-hooks": "latest",
92
+ "eslint-plugin-storybook": "latest",
93
+ "@dashadmin/dash-prettier": "workspace:*",
94
+ "query-string": "latest",
95
+ "react-dom": "latest",
96
+ "rollup": "latest",
97
+ "rollup-plugin-copy-assets": "latest",
98
+ "rollup-plugin-external-globals": "latest",
99
+ "rollup-plugin-includepaths": "latest",
100
+ "rollup-plugin-less": "latest",
101
+ "@rollup/plugin-node-resolve": "latest",
102
+ "rollup-plugin-postcss": "latest",
103
+ "rollup-plugin-sourcemaps": "latest",
104
+ "rollup-plugin-typescript2": "latest",
105
+ "tsc-alias": "latest",
106
+ "typescript": "latest",
107
+ "vite": "^5.2.0"
49
108
  },
50
109
  "peerDependencies": {
51
110
  "react": "latest",
52
- "react-beautiful-dnd": "latest",
111
+ "@hello-pangea/dnd": "latest",
53
112
  "react-custom-scrollbars-2": "latest",
54
113
  "react-dom": "latest"
55
114
  },
115
+ "eslintConfig": {
116
+ "extends": "react-app"
117
+ },
56
118
  "publishConfig": {
57
- "access": "public"
119
+ "name": "@dashadmin/dash-components",
120
+ "access": "public",
121
+ "main": "dist/index.js",
122
+ "exports": {
123
+ ".": {
124
+ "import": "./dist/index.js"
125
+ }
126
+ }
58
127
  },
59
- "engines": {
60
- "node": ">=18"
61
- }
128
+ "files": [
129
+ "dist"
130
+ ]
62
131
  }
package/src/index.tsx ADDED
@@ -0,0 +1,77 @@
1
+ export { default as PackageRadioButtonGroup } from './components/custom/PackageRadioButtonGroup';
2
+ export { default as PackageCopyMethod } from './components/custom/PackageCopyMethod';
3
+ export { default as NotResults } from './components/theme/NotResults';
4
+ export { default as NotFound } from './components/theme/NotFound';
5
+ export { default as QuickSearch } from './components/dialog/QuickSearch';
6
+
7
+ export { default as PaginationComponent } from './components/tables/PaginationComponent';
8
+
9
+ export { default as AutocompleteCheckBoxArrayInput } from './components/AutoCompleteArrayInput/AutocompleteCheckBoxArrayInput';
10
+ export { default as AutoCompleteCheckBoxInput } from './components/AutoCompleteArrayInput/AutoCompleteCheckBoxInput';
11
+ export { default as AutocompleteCheckBoxArrayInputAutoSearch } from './components/AutoCompleteArrayInputAutoSearch/AutocompleteCheckBoxArrayInput';
12
+ export { default as AutoCompleteCheckBoxInputAutoSearch } from './components/AutoCompleteArrayInputAutoSearch/AutoCompleteCheckBoxInput';
13
+ // TODO: AutocompleteCheckBoxArrayAutoSearch.tsx.wip
14
+ export { default as SortableDatagrid } from './components/SortableDataGrid/SortableDataGrid';
15
+
16
+ export { default as SearchableSelectCheckboxes } from './components/SearchableSelects/SearchableSelectCheckboxes';
17
+ export { default as SingleImageUploader } from './components/Upload/SingleImageUploader'
18
+ export { default as ListActive } from './components/ListActive/ListActive';
19
+
20
+ // Custom Components
21
+
22
+ export { default as JsonColorSelector } from './components/JsonColorSelector/JsonColorSelector'
23
+ export { default as JsonColorSelectorEnhanced } from './components/JsonColorSelector/JsonColorSelectorEnhanced'
24
+ //export { default as useAsyncColorThief } from ''
25
+ export { default as Json } from './components/Json/Json'
26
+ export { default as JsonCssVarValues } from './components/JsonColorSelector/JsonCssVarValues'
27
+ export { default as NotificationPreferences } from './components/NotificationPreferences/NotificationPreferences'
28
+
29
+ // Audit Log Component
30
+ export { AuditLog } from './components/AuditLog';
31
+ export type { AuditLogProps, ActivityLogRecord } from './components/AuditLog';
32
+
33
+ // Notifications Components
34
+ export {
35
+ NotificationsCenter,
36
+ NotificationButton,
37
+ NotificationsMenu,
38
+ NotificationMenuItem,
39
+ ToastNotificationsStack,
40
+ DraggableNotificationDialog,
41
+ useNotificationsCenter,
42
+ formatTimeAgo,
43
+ generateNotificationId,
44
+ } from './components/notifications';
45
+
46
+ export type {
47
+ NotificationData,
48
+ ToastNotification as NotificationToast,
49
+ DialogNotification as NotificationDialog,
50
+ NotificationsCenterConfig,
51
+ NotificationsCenterLabels,
52
+ NotificationsCenterIcons,
53
+ NotificationButtonProps,
54
+ NotificationsMenuProps,
55
+ NotificationMenuItemProps,
56
+ ToastNotificationsStackProps,
57
+ DraggableNotificationDialogProps,
58
+ NotificationsCenterProps,
59
+ UseNotificationsCenterReturn,
60
+ } from './components/notifications';
61
+
62
+ // Hooks - Re-exported from dash-utils for backward compatibility
63
+ // @deprecated Import directly from '@dashadmin/dash-utils' instead
64
+ export { useDraggable } from './hooks/useDraggable';
65
+ export type { DraggablePosition, UseDraggableOptions, UseDraggableReturn } from './hooks/useDraggable';
66
+
67
+ export { useNotifications } from './hooks/useNotifications';
68
+ export type {
69
+ ProcessedNotification,
70
+ ToastNotification,
71
+ DialogNotification,
72
+ UseNotificationsOptions,
73
+ UseNotificationsReturn
74
+ } from './hooks/useNotifications';
75
+
76
+ export { useQuickSearch } from './hooks/useQuickSearch';
77
+ export type { UseQuickSearchReturn } from './hooks/useQuickSearch';
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- // Auto-generated permissive types for @dashadmin/dash-components.
2
- // Full typings can be regenerated with a tolerant tsc emit.
3
- export {};
File without changes